Skip to content

Commit 407f800

Browse files
authored
Merge pull request #2509 from coingaming/develop
Deploy 10.11.0
2 parents 4119a7c + 8830923 commit 407f800

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+54453
-42747
lines changed

docs/CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# docs
22

3+
## 10.11.0
4+
5+
### Minor Changes
6+
7+
- Deploy 10.11.0
8+
9+
### Patch Changes
10+
11+
- Updated dependencies
12+
- @heathmont/moon-themes-tw@10.11.0
13+
- @heathmont/moon-core-tw@10.11.0
14+
- @heathmont/moon-base-tw@10.11.0
15+
- @heathmont/moon-cmdk-tw@10.11.0
16+
317
## 10.10.7
418

519
### Patch Changes

docs/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "docs",
3-
"version": "10.10.7",
3+
"version": "10.11.0",
44
"private": true,
55
"type": "module",
66
"scripts": {
@@ -11,11 +11,11 @@
1111
"lint": "next lint"
1212
},
1313
"dependencies": {
14-
"@heathmont/moon-base-tw": "workspace:^10.10.7",
15-
"@heathmont/moon-cmdk-tw": "workspace:^10.10.7",
16-
"@heathmont/moon-core-tw": "workspace:^10.10.7",
14+
"@heathmont/moon-base-tw": "workspace:^10.11.0",
15+
"@heathmont/moon-cmdk-tw": "workspace:^10.11.0",
16+
"@heathmont/moon-core-tw": "workspace:^10.11.0",
1717
"@heathmont/moon-icons-tw": "9.28.6",
18-
"@heathmont/moon-themes-tw": "workspace:^10.10.7",
18+
"@heathmont/moon-themes-tw": "workspace:^10.11.0",
1919
"@types/node": "20.4.9",
2020
"@types/react": "18.2.19",
2121
"@types/react-dom": "18.2.7",

next-docs/CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Change Log
22

3+
## 10.11.0
4+
5+
### Minor Changes
6+
7+
- Deploy 10.11.0
8+
9+
### Patch Changes
10+
11+
- Updated dependencies
12+
- @heathmont/moon-table-tw@10.11.0
13+
- @heathmont/moon-themes-tw@10.11.0
14+
- @heathmont/moon-core-tw@10.11.0
15+
- @heathmont/moon-cmdk-tw@10.11.0
16+
317
## 10.10.7
418

519
### Patch Changes

next-docs/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "next-docs",
3-
"version": "10.10.7",
3+
"version": "10.11.0",
44
"private": true,
55
"scripts": {
66
"dev": "next dev",
@@ -19,9 +19,9 @@
1919
"@heathmont/moon-assets": "workspace:^10.7.1",
2020
"@heathmont/moon-charts": "workspace:^10.7.1",
2121
"@heathmont/moon-components": "workspace:^10.7.1",
22-
"@heathmont/moon-cmdk-tw": "workspace:^10.10.7",
22+
"@heathmont/moon-cmdk-tw": "workspace:^10.11.0",
2323
"@heathmont/moon-core": "workspace:^10.7.1",
24-
"@heathmont/moon-core-tw": "workspace:^10.10.7",
24+
"@heathmont/moon-core-tw": "workspace:^10.11.0",
2525
"@heathmont/moon-datepicker": "workspace:^10.7.1",
2626
"@heathmont/moon-draggabletable": "workspace:^10.7.1",
2727
"@heathmont/moon-icons": "workspace:^10.7.1",
@@ -30,9 +30,9 @@
3030
"@heathmont/moon-select": "workspace:^10.7.1",
3131
"@heathmont/moon-sidebar": "workspace:^10.7.1",
3232
"@heathmont/moon-table": "workspace:^10.7.1",
33-
"@heathmont/moon-table-tw": "workspace:^10.10.7",
33+
"@heathmont/moon-table-tw": "workspace:^10.11.0",
3434
"@heathmont/moon-themes": "workspace:^10.7.1",
35-
"@heathmont/moon-themes-tw": "workspace:^10.10.7",
35+
"@heathmont/moon-themes-tw": "workspace:^10.11.0",
3636
"@heathmont/moon-utils": "workspace:^10.7.1",
3737
"@heathmont/moon-icons-tw": "9.28.6",
3838
"@hookform/resolvers": "3.2.0",
@@ -60,7 +60,7 @@
6060
"react-hook-form": "7.45.4",
6161
"react-syntax-highlighter": "15.5.0",
6262
"react-test-renderer": "18.2.0",
63-
"sharp": "0.32.4",
63+
"sharp": "0.32.6",
6464
"styled-components": "5.3.11",
6565
"swr": "1.3.0",
6666
"tailwindcss": "3.3.3",

next-docs/pages/components/chip.tsx

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
import { ReactNode } from 'react';
22
import Preview from '../../components/codePreview/Preview';
33
import ComponentPageDescription from '../../components/ComponentPageDescription';
4+
import type { ComponentNames } from '../../components/getComponent';
45
import Layout from '../../components/Layout';
56
import PropsTable from '../../components/PropsTable';
67
import Active from '../../public/examples/chip/Active';
8+
import States from '../../public/examples/chip/States';
9+
import Customization from '../../public/examples/chip/Customization';
710
import Default from '../../public/examples/chip/Default';
11+
import Disabled from '../../public/examples/chip/Disabled';
812
import Icons from '../../public/examples/chip/Icons';
913
import IsStroke from '../../public/examples/chip/IsStroke';
1014
import IsStrokeIcons from '../../public/examples/chip/IsStrokeIcons';
1115
import OnClick from '../../public/examples/chip/OnClick';
1216
import Sizes from '../../public/examples/chip/Sizes';
1317
import Variants from '../../public/examples/chip/Variants';
1418
import useComponent from '../../utils/useComponent';
15-
import type { ComponentNames } from '../../components/getComponent';
1619

1720
const COMPONENT_NAME: ComponentNames = 'Chip';
1821

@@ -43,11 +46,26 @@ const PageChip = () => {
4346
preview={<Variants />}
4447
code={examples ? examples.Variants : 'Loading'}
4548
/>
49+
<Preview
50+
title="Maintain state on click"
51+
preview={<States />}
52+
code={examples ? examples.States : 'Loading'}
53+
/>
54+
<Preview
55+
title="Customization"
56+
preview={<Customization />}
57+
code={examples ? examples.Customization : 'Loading'}
58+
/>
4659
<Preview
4760
title="Active"
4861
preview={<Active />}
4962
code={examples ? examples.Active : 'Loading'}
5063
/>
64+
<Preview
65+
title="Disabled"
66+
preview={<Disabled />}
67+
code={examples ? examples.Disabled : 'Loading'}
68+
/>
5169
<Preview
5270
title="Icons"
5371
preview={<Icons />}
@@ -78,6 +96,13 @@ const PageChip = () => {
7896
default: '-',
7997
description: 'Children content',
8098
},
99+
{
100+
name: 'disabled',
101+
type: 'boolean',
102+
required: false,
103+
default: 'false',
104+
description: 'Disabled Chip',
105+
},
81106
{
82107
name: 'iconLeft',
83108
type: 'React.ReactNode',
@@ -118,14 +143,14 @@ const PageChip = () => {
118143
type: 'sm | md',
119144
required: false,
120145
default: 'md',
121-
description: 'Size of chip',
146+
description: 'Size of Chip',
122147
},
123148
{
124149
name: 'variant',
125150
type: 'default | ghost',
126151
required: false,
127152
default: 'default',
128-
description: 'Visual/Logical variant of chip',
153+
description: 'Visual/Logical variant of Chip',
129154
},
130155
]}
131156
/>

next-docs/pages/components/popover.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import ComponentPageDescription from '../../components/ComponentPageDescription'
44
import type { ComponentNames } from '../../components/getComponent';
55
import Layout from '../../components/Layout';
66
import PropsTable from '../../components/PropsTable';
7+
import AutoPositionDisable from '../../public/examples/popover/AutoPositionDisable';
78
import Default from '../../public/examples/popover/Default';
89
import Position from '../../public/examples/popover/Position';
910
import TooltipView from '../../public/examples/popover/TooltipView';
@@ -80,6 +81,12 @@ const PagePopover = () => {
8081
code={examples ? examples.TooltipView : 'Loading'}
8182
/>
8283

84+
<Preview
85+
title="Disable flip on component"
86+
preview={<AutoPositionDisable />}
87+
code={examples ? examples.AutoPositionDisable : 'Loading'}
88+
/>
89+
8390
<PropsTable
8491
title="Popover"
8592
data={[
@@ -90,6 +97,13 @@ const PagePopover = () => {
9097
default: 'bottom',
9198
description: 'Set placement for popover',
9299
},
100+
{
101+
name: 'autoPositionDisable',
102+
type: 'boolean',
103+
required: false,
104+
default: 'false',
105+
description: 'Disable flip on component',
106+
},
93107
{
94108
name: 'Render Props: ',
95109
type: '',

next-docs/pages/components/tabs.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import type { ComponentNames } from '../../components/getComponent';
66
import Layout from '../../components/Layout';
77
import PropsTable from '../../components/PropsTable';
88
import Default from '../../public/examples/tabs/Default';
9+
import SelectedIndex from '../../public/examples/tabs/SelectedIndex';
10+
import SelectedIndexSegment from '../../public/examples/tabs/SelectedIndexSegment';
911
import DefaultPills from '../../public/examples/tabs/DefaultPills';
1012
import NoPanels from '../../public/examples/tabs/NoPanels';
1113
import Segment from '../../public/examples/tabs/Segment';
@@ -75,6 +77,16 @@ const PageTabs = () => {
7577
preview={<DefaultPills />}
7678
code={examples ? examples.DefaultPills : 'Loading'}
7779
/>
80+
<Preview
81+
title="Selected Index"
82+
preview={<SelectedIndex />}
83+
code={examples ? examples.SelectedIndex : 'Loading'}
84+
/>
85+
<Preview
86+
title="Selected Index - Segment control view"
87+
preview={<SelectedIndexSegment />}
88+
code={examples ? examples.SelectedIndexSegment : 'Loading'}
89+
/>
7890
<Preview
7991
title="Tabs only view"
8092
preview={<NoPanels />}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { Chip } from '@heathmont/moon-core-tw';
2+
import { useCallback, useState } from 'react';
3+
4+
const Example = () => {
5+
const [isActive, setIsActive] = useState(false);
6+
const onClick = useCallback(() => {
7+
setIsActive(!isActive)
8+
}, [setIsActive, isActive])
9+
10+
return <>
11+
<Chip
12+
onClick={onClick}
13+
isActive={isActive}
14+
isStroke
15+
className={isActive ? 'text-bulma hover:text-chichi shadow shadow-bulma hover:shadow-bulma' : 'text-chichi'}
16+
>
17+
Custom
18+
</Chip>
19+
</>
20+
};
21+
22+
export default Example;
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { Chip } from '@heathmont/moon-core-tw';
2+
3+
const Example = () => (
4+
<>
5+
<Chip variant="ghost" disabled>
6+
Ghost variant
7+
</Chip>
8+
<Chip disabled>Default variant</Chip>
9+
</>
10+
);
11+
12+
export default Example;
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { Chip } from '@heathmont/moon-core-tw';
2+
import { useCallback, useState } from 'react';
3+
4+
const Example = () => {
5+
const [isActive, setIsActive] = useState(false);
6+
const onClick = useCallback(() => {
7+
setIsActive(!isActive)
8+
}, [setIsActive, isActive])
9+
10+
return <Chip
11+
onClick={onClick}
12+
isActive={isActive}
13+
isStroke
14+
>
15+
Chip
16+
</Chip>
17+
};
18+
19+
export default Example;

0 commit comments

Comments
 (0)