@chotot/clad-ui 1.2.5 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/components/Announcer/Announcer.d.ts +9 -4
- package/components/Announcer/Announcer.stories.d.ts +142 -0
- package/components/Announcer/{Announcer.stories.js → Announcer.stories.tsx} +36 -31
- package/components/Announcer/Announcer.styles.d.ts +24 -12
- package/components/Announcer/{Announcer.styles.js → Announcer.styles.ts} +43 -18
- package/components/Announcer/Announcer.tsx +62 -47
- package/components/Badge/Badge.d.ts +4 -2
- package/components/Badge/Badge.stories.d.ts +61 -0
- package/components/Badge/{Badge.stories.js → Badge.stories.tsx} +5 -5
- package/components/Badge/Badge.styles.d.ts +20 -5
- package/components/Badge/{Badge.styles.js → Badge.styles.ts} +14 -1
- package/components/Badge/Badge.tsx +8 -4
- package/components/Box/Box.d.ts +3 -3
- package/components/Box/Box.stories.d.ts +240 -0
- package/components/Box/{Box.stories.js → Box.stories.tsx} +2 -2
- package/components/Box/Box.styles.d.ts +19 -4
- package/components/Box/{Box.styles.js → Box.styles.ts} +17 -4
- package/components/Box/Box.tsx +4 -4
- package/components/Breadcrumbs/Breadcrumbs.d.ts +2 -2
- package/components/Breadcrumbs/Breadcrumbs.stories.d.ts +52 -0
- package/components/Breadcrumbs/{Breadcrumbs.stories.js → Breadcrumbs.stories.tsx} +17 -15
- package/components/Breadcrumbs/Breadcrumbs.styles.d.ts +5 -4
- package/components/Breadcrumbs/Breadcrumbs.tsx +2 -2
- package/components/Button/Button.d.ts +21 -6
- package/components/Button/Button.stories.d.ts +103 -0
- package/components/Button/{Button.stories.js → Button.stories.tsx} +5 -1
- package/components/Button/Button.styles.d.ts +1 -1
- package/components/Button/{Button.styles.js → Button.styles.ts} +100 -6
- package/components/Button/Button.tsx +51 -18
- package/components/Button/ButtonLink.d.ts +4 -4
- package/components/Button/ButtonLink.stories.d.ts +30 -0
- package/components/Button/ButtonLink.styles.d.ts +1 -1
- package/components/Button/ButtonLink.tsx +5 -5
- package/components/Button/IconButton.d.ts +3 -29
- package/components/Button/IconButton.stories.d.ts +60 -0
- package/components/Button/{IconButton.stories.js → IconButton.stories.tsx} +27 -0
- package/components/Button/IconButton.tsx +2 -42
- package/components/Checkbox/Checkbox.d.ts +3 -3
- package/components/Checkbox/Checkbox.stories.d.ts +88 -0
- package/components/Checkbox/Checkbox.styles.d.ts +2 -2
- package/components/Checkbox/Checkbox.tsx +3 -6
- package/components/Chip/Chip.d.ts +5 -4
- package/components/Chip/Chip.stories.d.ts +153 -0
- package/components/Chip/{Chip.stories.js → Chip.stories.tsx} +4 -5
- package/components/Chip/Chip.styles.d.ts +11 -8
- package/components/Chip/{Chip.styles.js → Chip.styles.ts} +4 -4
- package/components/Chip/Chip.tsx +19 -12
- package/components/CurrencyInput/CurrencyInput.d.ts +3 -56
- package/components/CurrencyInput/CurrencyInput.stories.d.ts +104 -0
- package/components/CurrencyInput/{CurrencyInput.stories.js → CurrencyInput.stories.tsx} +2 -2
- package/components/CurrencyInput/CurrencyInput.styles.d.ts +16 -10
- package/components/CurrencyInput/{CurrencyInput.styles.js → CurrencyInput.styles.ts} +23 -9
- package/components/CurrencyInput/CurrencyInput.tsx +7 -61
- package/components/Dropdown/Dropdown.d.ts +22 -7
- package/components/Dropdown/Dropdown.stories.d.ts +148 -0
- package/components/Dropdown/{Dropdown.stories.js → Dropdown.stories.tsx} +115 -1
- package/components/Dropdown/Dropdown.styles.d.ts +10 -0
- package/components/Dropdown/Dropdown.styles.ts +42 -0
- package/components/Dropdown/Dropdown.tsx +120 -24
- package/components/Grid/Col.d.ts +2 -2
- package/components/Grid/Col.tsx +6 -3
- package/components/Grid/Grid.styles.d.ts +25 -5
- package/components/Grid/{Grid.styles.js → Grid.styles.ts} +16 -3
- package/components/Grid/aGrid.stories.d.ts +127 -0
- package/components/Grid/bCol.stories.d.ts +74 -0
- package/components/Input/Input.d.ts +14 -10
- package/components/Input/Input.stories.d.ts +226 -0
- package/components/Input/{Input.stories.js → Input.stories.tsx} +20 -16
- package/components/Input/Input.styles.d.ts +22 -11
- package/components/Input/{Input.styles.js → Input.styles.ts} +29 -7
- package/components/Input/Input.tsx +22 -20
- package/components/Popover/Popover.d.ts +44 -0
- package/components/Popover/Popover.stories.d.ts +53 -0
- package/components/Popover/Popover.stories.tsx +133 -0
- package/components/Popover/Popover.tsx +121 -0
- package/components/RadioButton/RadioButton.d.ts +5 -6
- package/components/RadioButton/RadioButton.stories.d.ts +94 -0
- package/components/RadioButton/RadioButton.styles.d.ts +7 -3
- package/components/RadioButton/{RadioButton.styles.js → RadioButton.styles.ts} +1 -1
- package/components/RadioButton/RadioButton.tsx +5 -11
- package/components/RowItem/RowItem.d.ts +27 -9
- package/components/RowItem/RowItem.stories.d.ts +131 -0
- package/components/RowItem/RowItem.stories.tsx +710 -0
- package/components/RowItem/RowItem.styles.d.ts +31 -10
- package/components/RowItem/{RowItem.styles.js → RowItem.styles.ts} +41 -13
- package/components/RowItem/RowItem.tsx +106 -42
- package/components/ShapeIcon/ShapeIcon.d.ts +23 -16
- package/components/ShapeIcon/ShapeIcon.stories.d.ts +91 -0
- package/components/ShapeIcon/{ShapeIcon.stories.js → ShapeIcon.stories.tsx} +21 -8
- package/components/ShapeIcon/ShapeIcon.styles.d.ts +8 -3
- package/components/ShapeIcon/{ShapeIcon.styles.js → ShapeIcon.styles.ts} +6 -3
- package/components/ShapeIcon/ShapeIcon.tsx +25 -21
- package/components/Slider/Slider.d.ts +9 -7
- package/components/Slider/Slider.stories.d.ts +81 -0
- package/components/Slider/{Slider.stories.js → Slider.stories.tsx} +7 -7
- package/components/Slider/Slider.styles.d.ts +15 -11
- package/components/Slider/{Slider.styles.js → Slider.styles.ts} +1 -1
- package/components/Slider/Slider.tsx +21 -16
- package/components/Snack/Snack.d.ts +4 -5
- package/components/Snack/Snack.stories.d.ts +87 -0
- package/components/Snack/Snack.styles.d.ts +9 -8
- package/components/Snack/{Snack.styles.js → Snack.styles.ts} +4 -4
- package/components/Snack/Snack.tsx +14 -11
- package/components/Tabs/Tab.d.ts +6 -6
- package/components/Tabs/Tab.tsx +6 -7
- package/components/Tabs/Tabs.d.ts +7 -4
- package/components/Tabs/Tabs.stories.d.ts +64 -0
- package/components/Tabs/{Tabs.stories.js → Tabs.stories.tsx} +2 -2
- package/components/Tabs/Tabs.styles.d.ts +30 -12
- package/components/Tabs/{Tabs.styles.js → Tabs.styles.ts} +4 -4
- package/components/Tabs/Tabs.tsx +11 -7
- package/components/TextArea/TextArea.d.ts +24 -11
- package/components/TextArea/TextArea.stories.d.ts +151 -0
- package/components/TextArea/{TextArea.stories.js → TextArea.stories.tsx} +5 -96
- package/components/TextArea/TextArea.styles.d.ts +18 -16
- package/components/TextArea/{TextArea.styles.js → TextArea.styles.ts} +39 -19
- package/components/TextArea/TextArea.tsx +85 -31
- package/components/TextLabel/TextLabel.d.ts +35 -0
- package/components/TextLabel/TextLabel.stories.d.ts +40 -0
- package/components/TextLabel/TextLabel.stories.tsx +177 -0
- package/components/TextLabel/TextLabel.styles.d.ts +9 -0
- package/components/TextLabel/TextLabel.styles.ts +24 -0
- package/components/TextLabel/TextLabel.tsx +112 -0
- package/components/ToggleSwitch/ToggleSwitch.d.ts +2 -2
- package/components/ToggleSwitch/ToggleSwitch.stories.d.ts +38 -0
- package/components/ToggleSwitch/ToggleSwitch.styles.d.ts +21 -14
- package/components/ToggleSwitch/{ToggleSwitch.styles.js → ToggleSwitch.styles.ts} +8 -12
- package/components/ToggleSwitch/ToggleSwitch.tsx +12 -6
- package/components/Tooltip/Tooltip.d.ts +9 -3
- package/components/Tooltip/Tooltip.spec.js +5 -3
- package/components/Tooltip/Tooltip.styles.d.ts +7 -8
- package/components/Tooltip/Tooltip.tsx +10 -3
- package/components/index.d.ts +2 -0
- package/components/index.ts +2 -0
- package/icons/PrivateSellerAvatar.d.ts +3 -0
- package/icons/PrivateSellerAvatar.js +3 -0
- package/icons/Sda.d.ts +5 -2
- package/icons/Sda.js +7 -7
- package/icons/VerifiedShop.d.ts +3 -0
- package/icons/VerifiedShop.js +3 -0
- package/package.json +6 -6
- package/patterns/Drawer/Drawer.d.ts +13 -13
- package/patterns/Drawer/Drawer.stories.d.ts +90 -0
- package/patterns/Drawer/{Drawer.stories.js → Drawer.stories.tsx} +25 -0
- package/patterns/Drawer/Drawer.styles.d.ts +30 -26
- package/patterns/Drawer/{Drawer.styles.js → Drawer.styles.ts} +2 -5
- package/patterns/Drawer/Drawer.tsx +20 -41
- package/patterns/EmptyState/EmptyState.d.ts +5 -4
- package/patterns/EmptyState/EmptyState.stories.d.ts +40 -0
- package/patterns/EmptyState/EmptyState.styles.d.ts +10 -10
- package/patterns/EmptyState/{EmptyState.styles.js → EmptyState.styles.ts} +5 -4
- package/patterns/EmptyState/EmptyState.tsx +14 -12
- package/patterns/InputGroup/InputGroup.d.ts +4 -0
- package/patterns/InputGroup/InputGroup.styles.d.ts +5 -4
- package/patterns/InputGroup/InputGroup.tsx +11 -5
- package/patterns/LegacyDialog/DialogMainIcon.d.ts +1 -0
- package/patterns/LegacyDialog/DialogMainIcon.js +51 -0
- package/patterns/LegacyDialog/LegacyDialog.d.ts +3 -3
- package/patterns/LegacyDialog/LegacyDialog.styles.d.ts +8 -10
- package/patterns/LegacyDialog/LegacyDialog.styles.js +1 -46
- package/patterns/LegacyDialog/LegacyDialog.tsx +5 -11
- package/patterns/LegacyPopup/LegacyPopup.d.ts +4 -4
- package/patterns/LegacyPopup/LegacyPopup.styles.d.ts +18 -13
- package/patterns/LegacyPopup/{LegacyPopup.styles.js → LegacyPopup.styles.ts} +3 -1
- package/patterns/LegacyPopup/LegacyPopup.tsx +4 -6
- package/patterns/MultiSearchDropdown/MultiSearchDropdown.d.ts +20 -17
- package/patterns/MultiSearchDropdown/MultiSearchDropdown.stories.d.ts +125 -0
- package/patterns/MultiSearchDropdown/{MultiSearchDropdown.stories.js → MultiSearchDropdown.stories.tsx} +31 -30
- package/patterns/MultiSearchDropdown/MultiSearchDropdown.styles.d.ts +22 -21
- package/patterns/MultiSearchDropdown/{MultiSearchDropdown.styles.js → MultiSearchDropdown.styles.ts} +1 -7
- package/patterns/MultiSearchDropdown/MultiSearchDropdown.tsx +33 -32
- package/patterns/Popup/Popup.d.ts +8 -7
- package/patterns/Popup/Popup.stories.d.ts +102 -0
- package/patterns/Popup/Popup.styles.d.ts +41 -30
- package/patterns/Popup/{Popup.styles.js → Popup.styles.ts} +26 -33
- package/patterns/Popup/Popup.tsx +14 -33
- package/patterns/SearchInput/SearchInput.d.ts +38 -21
- package/patterns/SearchInput/SearchInput.stories.d.ts +186 -0
- package/patterns/SearchInput/{SearchInput.stories.js → SearchInput.stories.tsx} +78 -45
- package/patterns/SearchInput/SearchInput.styles.d.ts +6 -5
- package/patterns/SearchInput/{SearchInput.styles.js → SearchInput.styles.ts} +7 -4
- package/patterns/SearchInput/SearchInput.tsx +53 -34
- package/patterns/TagCloud/TagCloud.d.ts +19 -6
- package/patterns/TagCloud/TagCloud.stories.d.ts +159 -0
- package/patterns/TagCloud/{TagCloud.stories.js → TagCloud.stories.tsx} +59 -14
- package/patterns/TagCloud/TagCloud.styles.d.ts +12 -8
- package/patterns/TagCloud/{TagCloud.styles.js → TagCloud.styles.ts} +6 -7
- package/patterns/TagCloud/TagCloud.tsx +24 -8
- package/patterns/TagCloud/TagCloudMultiActive.d.ts +6 -4
- package/patterns/TagCloud/TagCloudMultiActive.tsx +5 -5
- package/patterns/TagCloud/TagCloudSingleActive.d.ts +5 -2
- package/patterns/TagCloud/TagCloudSingleActive.tsx +18 -5
- package/patterns/patterns-index.spec.js +1 -1
- package/storybook/GuideImage.d.ts +2 -2
- package/storybook/Swatch.d.ts +2 -2
- package/theme/__snapshots__/chotot.spec.js.snap +2 -2
- package/theme/chotot-color1.d.ts +7 -14
- package/theme/chotot.d.ts +32 -32
- package/theme/chotot.js +4 -4
- package/theme/ct-job.d.ts +6 -14
- package/theme/ct-pty.d.ts +6 -8
- package/theme/mudah.d.ts +14 -13
- package/types.d.ts +0 -9
- package/utils/_simulateChangeEvent.d.ts +18 -3
- package/utils/_simulateChangeEvent.js +13 -6
- package/utils/_simulateChangeEvent.spec.js +1 -1
- package/utils/cx.d.ts +8 -4
- package/utils/cx.js +8 -4
- package/utils/sx.d.ts +12 -4192
- package/components/RowItem/RowItem.stories.js +0 -560
- /package/components/Breadcrumbs/{Breadcrumbs.styles.js → Breadcrumbs.styles.ts} +0 -0
- /package/components/Button/{ButtonLink.stories.js → ButtonLink.stories.tsx} +0 -0
- /package/components/Button/{ButtonLink.styles.js → ButtonLink.styles.ts} +0 -0
- /package/components/Checkbox/{Checkbox.stories.js → Checkbox.stories.tsx} +0 -0
- /package/components/Checkbox/{Checkbox.styles.js → Checkbox.styles.ts} +0 -0
- /package/components/Grid/{aGrid.stories.js → aGrid.stories.tsx} +0 -0
- /package/components/Grid/{bCol.stories.js → bCol.stories.tsx} +0 -0
- /package/components/RadioButton/{RadioButton.stories.js → RadioButton.stories.tsx} +0 -0
- /package/components/Snack/{Snack.stories.js → Snack.stories.tsx} +0 -0
- /package/components/ToggleSwitch/{ToggleSwitch.stories.js → ToggleSwitch.stories.tsx} +0 -0
- /package/patterns/EmptyState/{EmptyState.stories.js → EmptyState.stories.tsx} +0 -0
- /package/patterns/InputGroup/{InputGroup.styles.js → InputGroup.styles.ts} +0 -0
- /package/patterns/Popup/{Popup.stories.js → Popup.stories.tsx} +0 -0
package/components/index.d.ts
CHANGED
|
@@ -22,6 +22,8 @@ export { default as RowItem } from './RowItem/RowItem';
|
|
|
22
22
|
export { default as Badge } from './Badge/Badge';
|
|
23
23
|
export { default as ToggleSwitch } from './ToggleSwitch/ToggleSwitch';
|
|
24
24
|
export { default as Slider } from './Slider/Slider';
|
|
25
|
+
export { default as Popover } from './Popover/Popover';
|
|
26
|
+
export { default as TextLabel } from './TextLabel/TextLabel';
|
|
25
27
|
export type { AnnouncerProps } from './Announcer/Announcer';
|
|
26
28
|
export type { BoxProps } from './Box/Box';
|
|
27
29
|
export type { BreadcrumbsProps } from './Breadcrumbs/Breadcrumbs';
|
package/components/index.ts
CHANGED
|
@@ -22,6 +22,8 @@ export { default as RowItem } from './RowItem/RowItem';
|
|
|
22
22
|
export { default as Badge } from './Badge/Badge';
|
|
23
23
|
export { default as ToggleSwitch } from './ToggleSwitch/ToggleSwitch';
|
|
24
24
|
export { default as Slider } from './Slider/Slider';
|
|
25
|
+
export { default as Popover } from './Popover/Popover';
|
|
26
|
+
export { default as TextLabel } from './TextLabel/TextLabel';
|
|
25
27
|
export type { AnnouncerProps } from './Announcer/Announcer';
|
|
26
28
|
export type { BoxProps } from './Box/Box';
|
|
27
29
|
export type { BreadcrumbsProps } from './Breadcrumbs/Breadcrumbs';
|
package/icons/Sda.d.ts
CHANGED
package/icons/Sda.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const SvgSDA = (props) => (
|
|
4
4
|
<svg
|
|
5
|
+
data-type="monochrome"
|
|
5
6
|
width="1em"
|
|
6
7
|
height="1em"
|
|
7
8
|
viewBox="0 0 24 24"
|
|
@@ -9,14 +10,13 @@ const SvgSDAFilled = (props) => (
|
|
|
9
10
|
xmlns="http://www.w3.org/2000/svg"
|
|
10
11
|
{...props}
|
|
11
12
|
>
|
|
12
|
-
<circle cx="12.0005" cy="11.9992" r="10" fill="currentColor" />
|
|
13
13
|
<path
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
d="M3.6084 11.6211L6.22875 9.00074C6.56763 8.66684 7.02427 8.47966 7.5 8.47966C7.97574 8.47966 8.43238 8.66684 8.77125 9.00074L13.8 14.0295L16.1288 11.7007C16.4676 11.3668 16.9243 11.1797 17.4 11.1797C17.8757 11.1797 18.3324 11.3668 18.6713 11.7007L20.296 13.3255C20.3645 12.8937 20.4 12.451 20.4 12C20.4 7.36078 16.6392 3.59998 12 3.59998C7.48779 3.59998 3.80653 7.15774 3.6084 11.6211ZM16.5 7.64998C16.5 8.00802 16.3578 8.3514 16.1046 8.60457C15.8514 8.85774 15.508 8.99998 15.15 8.99998C14.792 8.99998 14.4486 8.85774 14.1954 8.60457C13.9422 8.3514 13.8 8.00802 13.8 7.64998C13.8 7.29193 13.9422 6.94856 14.1954 6.69538C14.4486 6.44221 14.792 6.29998 15.15 6.29998C15.508 6.29998 15.8514 6.44221 16.1046 6.69538C16.3578 6.94856 16.5 7.29193 16.5 7.64998Z"
|
|
17
|
-
fill="white"
|
|
14
|
+
fill="currentColor"
|
|
15
|
+
d="M 12 2 A 10 10 0 0 0 2 12 A 10 10 0 0 0 12 22 A 10 10 0 0 0 22 12 A 10 10 0 0 0 12 2 z M 12 3.5996094 C 16.639195 3.5996094 20.400391 7.3607846 20.400391 12 C 20.400391 12.451 20.365375 12.894372 20.296875 13.326172 L 18.671875 11.701172 C 18.332975 11.367272 17.87609 11.179688 17.400391 11.179688 C 16.924691 11.179687 16.467706 11.367272 16.128906 11.701172 L 13.800781 14.029297 L 8.7714844 9 C 8.4326147 8.6661003 7.9757395 8.4804688 7.5 8.4804688 C 7.0242705 8.4804688 6.5673953 8.6661003 6.2285156 9 L 3.609375 11.621094 C 3.8075048 7.1577382 7.4877945 3.5996094 12 3.5996094 z M 15.150391 6.3007812 C 14.792391 6.3007812 14.448512 6.4421428 14.195312 6.6953125 C 13.942113 6.9484922 13.800781 7.292341 13.800781 7.6503906 C 13.800781 8.0084303 13.942113 8.352299 14.195312 8.6054688 C 14.448512 8.8586385 14.792391 9 15.150391 9 C 15.50839 9 15.852269 8.8586385 16.105469 8.6054688 C 16.358668 8.352299 16.5 8.0084303 16.5 7.6503906 C 16.5 7.292341 16.358668 6.9484922 16.105469 6.6953125 C 15.852269 6.4421428 15.50839 6.3007812 15.150391 6.3007812 z "
|
|
18
16
|
/>
|
|
19
17
|
</svg>
|
|
20
18
|
);
|
|
21
19
|
|
|
22
|
-
|
|
20
|
+
SvgSDA.type = 'monochrome';
|
|
21
|
+
|
|
22
|
+
export default SvgSDA;
|
package/icons/VerifiedShop.d.ts
CHANGED
package/icons/VerifiedShop.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chotot/clad-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Classified Ads group (Carousell, Chotot, Mudah, Onekyat) design system",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@types/lodash": "4.14.191",
|
|
45
45
|
"@types/node": "^18.14.0",
|
|
46
46
|
"@types/node-fetch": "^2.6.2",
|
|
47
|
-
"@types/react": "18.
|
|
47
|
+
"@types/react": "18.2.1",
|
|
48
48
|
"@types/react-dom": "18.0.11",
|
|
49
49
|
"@types/react-is": "17.0.3",
|
|
50
50
|
"babel-plugin-module-resolver": "5.0.0",
|
|
@@ -65,18 +65,18 @@
|
|
|
65
65
|
"rimraf": "^3.0.2",
|
|
66
66
|
"sort-package-json": "2.4.1",
|
|
67
67
|
"stylelint": "*",
|
|
68
|
-
"@clad-ui/dotfiles": "0.3.
|
|
68
|
+
"@clad-ui/dotfiles": "0.3.1"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
|
-
"@linaria/core": "4.2.10",
|
|
72
|
-
"@linaria/react": "4.3.8",
|
|
71
|
+
"@linaria/core": "^4.2.10",
|
|
72
|
+
"@linaria/react": "^4.3.8",
|
|
73
73
|
"babel-plugin-module-resolver": "^4.1.0 || ^5.0.0",
|
|
74
74
|
"react": ">=16.8.0",
|
|
75
75
|
"react-dom": ">=16.8.0",
|
|
76
76
|
"react-laag": "^2.0.5"
|
|
77
77
|
},
|
|
78
78
|
"engines": {
|
|
79
|
-
"node": ">=
|
|
79
|
+
"node": ">=18"
|
|
80
80
|
},
|
|
81
81
|
"scripts": {
|
|
82
82
|
"build": "run-s clean typedef",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
2
|
+
import { type ButtonColor } from '../../components/Button/Button';
|
|
3
|
+
export interface DrawerProps {
|
|
3
4
|
/**
|
|
4
5
|
* className (can be used to add more styles to mainIcon by targeting `main-icon` class in case of using a custom string)
|
|
5
6
|
*/
|
|
@@ -21,10 +22,9 @@ export type DrawerProps = {
|
|
|
21
22
|
/**
|
|
22
23
|
* Secondary button label
|
|
23
24
|
*
|
|
24
|
-
* Leave it empty to hide button
|
|
25
|
+
* Leave it empty to hide button group
|
|
25
26
|
*/
|
|
26
27
|
secondaryBtnLabel?: string;
|
|
27
|
-
/**
|
|
28
28
|
/**
|
|
29
29
|
* Optional button label can be icon or text
|
|
30
30
|
*
|
|
@@ -46,27 +46,23 @@ export type DrawerProps = {
|
|
|
46
46
|
/**
|
|
47
47
|
* Callback when close icon is clicked. Normally, it is used to update `open` prop to close.
|
|
48
48
|
*/
|
|
49
|
-
onClose?:
|
|
49
|
+
onClose?: React.MouseEventHandler<HTMLElement>;
|
|
50
50
|
/**
|
|
51
51
|
* Callback when main button is clicked
|
|
52
52
|
*/
|
|
53
|
-
onPrimaryButtonClick?:
|
|
53
|
+
onPrimaryButtonClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
54
54
|
/**
|
|
55
55
|
* Callback when secondary button is clicked
|
|
56
56
|
*/
|
|
57
|
-
onSecondaryButtonClick?:
|
|
57
|
+
onSecondaryButtonClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
58
58
|
/**
|
|
59
59
|
* Callback when optional button is clicked
|
|
60
60
|
*/
|
|
61
|
-
onOptionalBtnClick?:
|
|
61
|
+
onOptionalBtnClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
62
62
|
/**
|
|
63
63
|
* Primary Button Color
|
|
64
64
|
*/
|
|
65
|
-
primaryColor?:
|
|
66
|
-
/**
|
|
67
|
-
* Secondary Button Color
|
|
68
|
-
*/
|
|
69
|
-
secondaryColor?: 'accent' | 'caution' | 'chotot' | 'critical' | 'error' | 'info' | 'neutral' | 'positive' | 'primary' | 'success' | 'tertiary';
|
|
65
|
+
primaryColor?: ButtonColor;
|
|
70
66
|
/**
|
|
71
67
|
* To apply `overflow-y: visible` for the `ChildrenWrapper` in some specific case that have to use some `custom Dropdown relatives` inside Popup
|
|
72
68
|
*/
|
|
@@ -79,7 +75,11 @@ export type DrawerProps = {
|
|
|
79
75
|
* Drawer close icon on the right. Default is **`X`** mark icon. It can be changed by passing another `React component` or a `string`.
|
|
80
76
|
*/
|
|
81
77
|
closeIcon?: React.ReactNode;
|
|
82
|
-
|
|
78
|
+
/**
|
|
79
|
+
* Whether to show close icon or not
|
|
80
|
+
*/
|
|
81
|
+
haveClose?: boolean;
|
|
82
|
+
}
|
|
83
83
|
/**
|
|
84
84
|
* Drawer is a window sitting overtop of the main content to provide information or inquire confirmation.
|
|
85
85
|
* Drawer is very intrusive toward user and should be used sparingly.
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const DrawerStories: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: React.FC<import("./Drawer").DrawerProps>;
|
|
5
|
+
tags: string[];
|
|
6
|
+
parameters: {
|
|
7
|
+
docs: {
|
|
8
|
+
description: {
|
|
9
|
+
component: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
argTypes: {
|
|
14
|
+
children: {
|
|
15
|
+
control: {
|
|
16
|
+
type: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
open: {};
|
|
20
|
+
className: {
|
|
21
|
+
control: null;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
args: {
|
|
25
|
+
title: string;
|
|
26
|
+
primaryBtnLabel: string;
|
|
27
|
+
secondaryBtnLabel: string;
|
|
28
|
+
children: string;
|
|
29
|
+
onSecondaryButtonClick: null;
|
|
30
|
+
img: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export default DrawerStories;
|
|
34
|
+
export declare const Overview: {
|
|
35
|
+
render: (args: any) => JSX.Element;
|
|
36
|
+
};
|
|
37
|
+
export declare const WithChildren: {
|
|
38
|
+
render: () => JSX.Element;
|
|
39
|
+
name: string;
|
|
40
|
+
parameters: {
|
|
41
|
+
docs: {
|
|
42
|
+
description: {
|
|
43
|
+
story: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export declare const CustomizeWithImage: {
|
|
49
|
+
render: () => JSX.Element;
|
|
50
|
+
name: string;
|
|
51
|
+
parameters: {
|
|
52
|
+
docs: {
|
|
53
|
+
description: {
|
|
54
|
+
story: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
export declare const CustomizeHeader: {
|
|
60
|
+
render: () => JSX.Element;
|
|
61
|
+
name: string;
|
|
62
|
+
parameters: {
|
|
63
|
+
docs: {
|
|
64
|
+
description: {
|
|
65
|
+
story: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
export declare const ButtonsPosition: {
|
|
71
|
+
render: () => JSX.Element;
|
|
72
|
+
parameters: {
|
|
73
|
+
docs: {
|
|
74
|
+
description: {
|
|
75
|
+
story: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
export declare const EmptyDrawer: {
|
|
81
|
+
render: () => JSX.Element;
|
|
82
|
+
name: string;
|
|
83
|
+
parameters: {
|
|
84
|
+
docs: {
|
|
85
|
+
description: {
|
|
86
|
+
story: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
};
|
|
@@ -395,6 +395,31 @@ export const CustomizeHeader = {
|
|
|
395
395
|
</ChildrenWrapper>
|
|
396
396
|
</Drawer>
|
|
397
397
|
</Box>
|
|
398
|
+
<p className={mt24}>No Close button example</p>
|
|
399
|
+
<Box width="full" className={popupInlineClass}>
|
|
400
|
+
<Drawer
|
|
401
|
+
open
|
|
402
|
+
haveClose={false}
|
|
403
|
+
onClose={() => alert('Close clicked')}
|
|
404
|
+
title="With Optional Button Icon"
|
|
405
|
+
onPrimaryButtonClick={onMainBtnClick}
|
|
406
|
+
primaryBtnLabel="Primary"
|
|
407
|
+
>
|
|
408
|
+
<ChildrenWrapper>
|
|
409
|
+
<ChildrenTextWrapper>
|
|
410
|
+
<h5>Section 1</h5>
|
|
411
|
+
<p>
|
|
412
|
+
Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint Amet
|
|
413
|
+
minim mollit non deserunt ullamco est sit aliqua dolor do amet sint
|
|
414
|
+
</p>
|
|
415
|
+
<p>
|
|
416
|
+
Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint Amet
|
|
417
|
+
minim mollit non deserunt ullamco est sit aliqua dolor do amet sint
|
|
418
|
+
</p>
|
|
419
|
+
</ChildrenTextWrapper>
|
|
420
|
+
</ChildrenWrapper>
|
|
421
|
+
</Drawer>
|
|
422
|
+
</Box>
|
|
398
423
|
</>
|
|
399
424
|
);
|
|
400
425
|
},
|
|
@@ -1,35 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
as?: import("react").ElementType
|
|
1
|
+
declare const Modal: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
2
|
+
as?: import("react").ElementType;
|
|
3
3
|
}>;
|
|
4
|
-
|
|
5
|
-
as?: import("react").ElementType
|
|
4
|
+
declare const Backdrop: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
5
|
+
as?: import("react").ElementType;
|
|
6
6
|
}>;
|
|
7
|
-
|
|
8
|
-
as?: import("react").ElementType
|
|
7
|
+
declare const StyledPopup: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
8
|
+
as?: import("react").ElementType;
|
|
9
9
|
}>;
|
|
10
|
-
|
|
11
|
-
as?: import("react").ElementType
|
|
10
|
+
declare const StyledHeader: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
11
|
+
as?: import("react").ElementType;
|
|
12
12
|
}>;
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
declare const StyledButtonGroup: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
14
|
+
position: {
|
|
15
|
+
justifyContent: string;
|
|
16
|
+
};
|
|
17
|
+
} & {
|
|
18
|
+
as?: import("react").ElementType;
|
|
15
19
|
}>;
|
|
16
|
-
|
|
17
|
-
|
|
20
|
+
declare const buttonClass: import("@linaria/core").LinariaClassName;
|
|
21
|
+
declare const preventBodyScrollClass: import("@linaria/core").LinariaClassName;
|
|
22
|
+
declare const CloseButton: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown> & {
|
|
23
|
+
as?: import("react").ElementType;
|
|
18
24
|
}>;
|
|
19
|
-
|
|
20
|
-
as?: import("react").ElementType
|
|
25
|
+
declare const OptionButton: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown> & {
|
|
26
|
+
as?: import("react").ElementType;
|
|
21
27
|
}>;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
*/
|
|
25
|
-
export const StyledButtonGroup: React.FC<any>;
|
|
26
|
-
export const Backdrop: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
27
|
-
as?: import("react").ElementType<any> | undefined;
|
|
28
|
+
declare const ChildrenWrapper: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
29
|
+
as?: import("react").ElementType;
|
|
28
30
|
}>;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
export const HeaderTopBar: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
32
|
-
as?: import("react").ElementType<any> | undefined;
|
|
31
|
+
declare const ChildrenContent: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
32
|
+
as?: import("react").ElementType;
|
|
33
33
|
}>;
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
declare const showChildrenOverflowClass: import("@linaria/core").LinariaClassName;
|
|
35
|
+
declare const HeaderTopBar: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
36
|
+
as?: import("react").ElementType;
|
|
37
|
+
}>;
|
|
38
|
+
declare const noSpacingClass: import("@linaria/core").LinariaClassName;
|
|
39
|
+
export { Modal, StyledPopup, CloseButton, OptionButton, StyledHeader, ChildrenWrapper, ChildrenContent, StyledButtonGroup, Backdrop, buttonClass, showChildrenOverflowClass, HeaderTopBar, noSpacingClass, preventBodyScrollClass, };
|
|
@@ -113,10 +113,7 @@ const StyledHeader = styled.div`
|
|
|
113
113
|
height: ${sizes.xl};
|
|
114
114
|
`;
|
|
115
115
|
|
|
116
|
-
|
|
117
|
-
* @type {React.FC<any>}
|
|
118
|
-
*/
|
|
119
|
-
const StyledButtonGroup = styled.div`
|
|
116
|
+
const StyledButtonGroup = styled.div<{ position: { justifyContent: string } }>`
|
|
120
117
|
display: flex;
|
|
121
118
|
padding: calc(${space.xxs} + ${space.xs}) ${space.md};
|
|
122
119
|
width: ${sizes.full};
|
|
@@ -266,7 +263,7 @@ const ChildrenContent = styled.div`
|
|
|
266
263
|
/* move scrollbar to edge so that is doesn't overlie text */
|
|
267
264
|
width: calc(${sizes.full} + ${space.md} * 2);
|
|
268
265
|
max-height: calc(${sizes.vH} - 120px); /* full popup on mobile has 12px of extra space on top */
|
|
269
|
-
padding:
|
|
266
|
+
padding: ${space.sm} ${space.md};
|
|
270
267
|
margin: 0 -${space.md} 0;
|
|
271
268
|
overflow-y: auto;
|
|
272
269
|
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { cx, noop } from '../../utils';
|
|
3
3
|
import useScrollTop from '../../utils/scrollTop';
|
|
4
4
|
import createUniversalPortal from '../../utils/createUniversalPortal';
|
|
5
|
-
import Button from '../../components/Button/Button';
|
|
5
|
+
import Button, { type ButtonColor } from '../../components/Button/Button';
|
|
6
6
|
import {
|
|
7
7
|
Modal,
|
|
8
8
|
StyledPopup,
|
|
@@ -34,7 +34,7 @@ const BTN_GROUP_POSITION = {
|
|
|
34
34
|
},
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
-
export
|
|
37
|
+
export interface DrawerProps {
|
|
38
38
|
/**
|
|
39
39
|
* className (can be used to add more styles to mainIcon by targeting `main-icon` class in case of using a custom string)
|
|
40
40
|
*/
|
|
@@ -56,10 +56,9 @@ export type DrawerProps = {
|
|
|
56
56
|
/**
|
|
57
57
|
* Secondary button label
|
|
58
58
|
*
|
|
59
|
-
* Leave it empty to hide button
|
|
59
|
+
* Leave it empty to hide button group
|
|
60
60
|
*/
|
|
61
61
|
secondaryBtnLabel?: string;
|
|
62
|
-
/**
|
|
63
62
|
/**
|
|
64
63
|
* Optional button label can be icon or text
|
|
65
64
|
*
|
|
@@ -81,49 +80,23 @@ export type DrawerProps = {
|
|
|
81
80
|
/**
|
|
82
81
|
* Callback when close icon is clicked. Normally, it is used to update `open` prop to close.
|
|
83
82
|
*/
|
|
84
|
-
onClose?:
|
|
83
|
+
onClose?: React.MouseEventHandler<HTMLElement>;
|
|
85
84
|
/**
|
|
86
85
|
* Callback when main button is clicked
|
|
87
86
|
*/
|
|
88
|
-
onPrimaryButtonClick?:
|
|
87
|
+
onPrimaryButtonClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
89
88
|
/**
|
|
90
89
|
* Callback when secondary button is clicked
|
|
91
90
|
*/
|
|
92
|
-
onSecondaryButtonClick?:
|
|
91
|
+
onSecondaryButtonClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
93
92
|
/**
|
|
94
93
|
* Callback when optional button is clicked
|
|
95
94
|
*/
|
|
96
|
-
onOptionalBtnClick?:
|
|
95
|
+
onOptionalBtnClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
97
96
|
/**
|
|
98
97
|
* Primary Button Color
|
|
99
98
|
*/
|
|
100
|
-
primaryColor?:
|
|
101
|
-
| 'accent'
|
|
102
|
-
| 'caution'
|
|
103
|
-
| 'chotot'
|
|
104
|
-
| 'critical'
|
|
105
|
-
| 'error'
|
|
106
|
-
| 'info'
|
|
107
|
-
| 'neutral'
|
|
108
|
-
| 'positive'
|
|
109
|
-
| 'primary'
|
|
110
|
-
| 'success'
|
|
111
|
-
| 'tertiary';
|
|
112
|
-
/**
|
|
113
|
-
* Secondary Button Color
|
|
114
|
-
*/
|
|
115
|
-
secondaryColor?:
|
|
116
|
-
| 'accent'
|
|
117
|
-
| 'caution'
|
|
118
|
-
| 'chotot'
|
|
119
|
-
| 'critical'
|
|
120
|
-
| 'error'
|
|
121
|
-
| 'info'
|
|
122
|
-
| 'neutral'
|
|
123
|
-
| 'positive'
|
|
124
|
-
| 'primary'
|
|
125
|
-
| 'success'
|
|
126
|
-
| 'tertiary';
|
|
99
|
+
primaryColor?: ButtonColor;
|
|
127
100
|
/**
|
|
128
101
|
* To apply `overflow-y: visible` for the `ChildrenWrapper` in some specific case that have to use some `custom Dropdown relatives` inside Popup
|
|
129
102
|
*/
|
|
@@ -136,7 +109,11 @@ export type DrawerProps = {
|
|
|
136
109
|
* Drawer close icon on the right. Default is **`X`** mark icon. It can be changed by passing another `React component` or a `string`.
|
|
137
110
|
*/
|
|
138
111
|
closeIcon?: React.ReactNode;
|
|
139
|
-
|
|
112
|
+
/**
|
|
113
|
+
* Whether to show close icon or not
|
|
114
|
+
*/
|
|
115
|
+
haveClose?: boolean;
|
|
116
|
+
}
|
|
140
117
|
|
|
141
118
|
/**
|
|
142
119
|
* Drawer is a window sitting overtop of the main content to provide information or inquire confirmation.
|
|
@@ -157,7 +134,6 @@ const Drawer: React.FC<DrawerProps> = ({
|
|
|
157
134
|
primaryBtnLabel,
|
|
158
135
|
secondaryBtnLabel,
|
|
159
136
|
primaryColor = 'primary',
|
|
160
|
-
secondaryColor = 'tertiary',
|
|
161
137
|
optionalBtnLabel,
|
|
162
138
|
onOptionalBtnClick,
|
|
163
139
|
btnRowPosition = 'justify',
|
|
@@ -167,6 +143,7 @@ const Drawer: React.FC<DrawerProps> = ({
|
|
|
167
143
|
onSecondaryButtonClick = null,
|
|
168
144
|
childrenOverflowVisible = false,
|
|
169
145
|
isEmptyDrawer = false,
|
|
146
|
+
haveClose = true,
|
|
170
147
|
closeIcon = <Close />,
|
|
171
148
|
}) => {
|
|
172
149
|
const { useEffect, useRef, useState } = React;
|
|
@@ -264,9 +241,11 @@ const Drawer: React.FC<DrawerProps> = ({
|
|
|
264
241
|
{/* HEADER */}
|
|
265
242
|
<StyledHeader>
|
|
266
243
|
<HeaderTopBar>
|
|
267
|
-
|
|
268
|
-
{
|
|
269
|
-
|
|
244
|
+
{!!haveClose && (
|
|
245
|
+
<CloseButton type="button" onClick={onClose} className={closeIconClass}>
|
|
246
|
+
{closeIcon}
|
|
247
|
+
</CloseButton>
|
|
248
|
+
)}
|
|
270
249
|
<div>{!!title && <h5>{title}</h5>}</div>
|
|
271
250
|
{!!optionalBtnLabel && (
|
|
272
251
|
<OptionButton
|
|
@@ -312,7 +291,7 @@ const Drawer: React.FC<DrawerProps> = ({
|
|
|
312
291
|
{!!secondaryBtnLabel && (
|
|
313
292
|
<Button
|
|
314
293
|
variant="outline"
|
|
315
|
-
color=
|
|
294
|
+
color="tertiary"
|
|
316
295
|
extraClasses={cx(
|
|
317
296
|
// Keep button width maintain on column direction
|
|
318
297
|
btnRowPosition === 'justify' && buttonClass
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export type
|
|
2
|
+
export type EmptyStateType = 'connectionError' | 'emptyAd' | 'noFilterResult' | 'noNetwork' | 'noResult' | 'notFound' | 'other' | 'underMaintenance';
|
|
3
|
+
export interface EmptyStateProps {
|
|
3
4
|
/**
|
|
4
5
|
* Type of Empty State
|
|
5
6
|
*/
|
|
6
|
-
type:
|
|
7
|
+
type: EmptyStateType;
|
|
7
8
|
/**
|
|
8
9
|
* Action Button on Click
|
|
9
10
|
*/
|
|
10
|
-
onButtonClick?:
|
|
11
|
+
onButtonClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
11
12
|
/**
|
|
12
13
|
* Custom title
|
|
13
14
|
*/
|
|
@@ -24,7 +25,7 @@ export type EmptyStateProps = {
|
|
|
24
25
|
* Custom buttonLabel
|
|
25
26
|
*/
|
|
26
27
|
buttonLabel?: string;
|
|
27
|
-
}
|
|
28
|
+
}
|
|
28
29
|
/**
|
|
29
30
|
*
|
|
30
31
|
*
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const emptyStateStories: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: React.FC<import("./EmptyState").EmptyStateProps>;
|
|
5
|
+
tags: string[];
|
|
6
|
+
parameters: {
|
|
7
|
+
docs: {
|
|
8
|
+
description: {
|
|
9
|
+
component: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
args: {
|
|
14
|
+
type: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default emptyStateStories;
|
|
18
|
+
export declare const Overview: {
|
|
19
|
+
render: (args: any) => JSX.Element;
|
|
20
|
+
};
|
|
21
|
+
export declare const OverrideStyle: {
|
|
22
|
+
render: () => JSX.Element;
|
|
23
|
+
parameters: {
|
|
24
|
+
docs: {
|
|
25
|
+
description: {
|
|
26
|
+
story: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export declare const OthersType: {
|
|
32
|
+
render: () => JSX.Element;
|
|
33
|
+
parameters: {
|
|
34
|
+
docs: {
|
|
35
|
+
description: {
|
|
36
|
+
story: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export const StyledEmptyState: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
2
|
-
as?: import("react").ElementType
|
|
1
|
+
export declare const StyledEmptyState: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
2
|
+
as?: import("react").ElementType;
|
|
3
3
|
}>;
|
|
4
|
-
export const StyledEmptyHeaderText: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<
|
|
5
|
-
as?: import("react").ElementType
|
|
4
|
+
export declare const StyledEmptyHeaderText: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLHeadingElement> & import("react").HTMLAttributes<HTMLHeadingElement> & Record<never, unknown> & {
|
|
5
|
+
as?: import("react").ElementType;
|
|
6
6
|
}>;
|
|
7
|
-
export const StyledEmptyBodyText: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<
|
|
8
|
-
as?: import("react").ElementType
|
|
7
|
+
export declare const StyledEmptyBodyText: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLParagraphElement> & import("react").HTMLAttributes<HTMLParagraphElement> & Record<never, unknown> & {
|
|
8
|
+
as?: import("react").ElementType;
|
|
9
9
|
}>;
|
|
10
|
-
export const StyledSVGWrapper: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
11
|
-
as?: import("react").ElementType
|
|
10
|
+
export declare const StyledSVGWrapper: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
11
|
+
as?: import("react").ElementType;
|
|
12
12
|
}>;
|
|
13
|
-
export const StyledButtonWrapper: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
14
|
-
as?: import("react").ElementType
|
|
13
|
+
export declare const StyledButtonWrapper: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
14
|
+
as?: import("react").ElementType;
|
|
15
15
|
}>;
|