@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.
Files changed (224) hide show
  1. package/README.md +3 -3
  2. package/components/Announcer/Announcer.d.ts +9 -4
  3. package/components/Announcer/Announcer.stories.d.ts +142 -0
  4. package/components/Announcer/{Announcer.stories.js → Announcer.stories.tsx} +36 -31
  5. package/components/Announcer/Announcer.styles.d.ts +24 -12
  6. package/components/Announcer/{Announcer.styles.js → Announcer.styles.ts} +43 -18
  7. package/components/Announcer/Announcer.tsx +62 -47
  8. package/components/Badge/Badge.d.ts +4 -2
  9. package/components/Badge/Badge.stories.d.ts +61 -0
  10. package/components/Badge/{Badge.stories.js → Badge.stories.tsx} +5 -5
  11. package/components/Badge/Badge.styles.d.ts +20 -5
  12. package/components/Badge/{Badge.styles.js → Badge.styles.ts} +14 -1
  13. package/components/Badge/Badge.tsx +8 -4
  14. package/components/Box/Box.d.ts +3 -3
  15. package/components/Box/Box.stories.d.ts +240 -0
  16. package/components/Box/{Box.stories.js → Box.stories.tsx} +2 -2
  17. package/components/Box/Box.styles.d.ts +19 -4
  18. package/components/Box/{Box.styles.js → Box.styles.ts} +17 -4
  19. package/components/Box/Box.tsx +4 -4
  20. package/components/Breadcrumbs/Breadcrumbs.d.ts +2 -2
  21. package/components/Breadcrumbs/Breadcrumbs.stories.d.ts +52 -0
  22. package/components/Breadcrumbs/{Breadcrumbs.stories.js → Breadcrumbs.stories.tsx} +17 -15
  23. package/components/Breadcrumbs/Breadcrumbs.styles.d.ts +5 -4
  24. package/components/Breadcrumbs/Breadcrumbs.tsx +2 -2
  25. package/components/Button/Button.d.ts +21 -6
  26. package/components/Button/Button.stories.d.ts +103 -0
  27. package/components/Button/{Button.stories.js → Button.stories.tsx} +5 -1
  28. package/components/Button/Button.styles.d.ts +1 -1
  29. package/components/Button/{Button.styles.js → Button.styles.ts} +100 -6
  30. package/components/Button/Button.tsx +51 -18
  31. package/components/Button/ButtonLink.d.ts +4 -4
  32. package/components/Button/ButtonLink.stories.d.ts +30 -0
  33. package/components/Button/ButtonLink.styles.d.ts +1 -1
  34. package/components/Button/ButtonLink.tsx +5 -5
  35. package/components/Button/IconButton.d.ts +3 -29
  36. package/components/Button/IconButton.stories.d.ts +60 -0
  37. package/components/Button/{IconButton.stories.js → IconButton.stories.tsx} +27 -0
  38. package/components/Button/IconButton.tsx +2 -42
  39. package/components/Checkbox/Checkbox.d.ts +3 -3
  40. package/components/Checkbox/Checkbox.stories.d.ts +88 -0
  41. package/components/Checkbox/Checkbox.styles.d.ts +2 -2
  42. package/components/Checkbox/Checkbox.tsx +3 -6
  43. package/components/Chip/Chip.d.ts +5 -4
  44. package/components/Chip/Chip.stories.d.ts +153 -0
  45. package/components/Chip/{Chip.stories.js → Chip.stories.tsx} +4 -5
  46. package/components/Chip/Chip.styles.d.ts +11 -8
  47. package/components/Chip/{Chip.styles.js → Chip.styles.ts} +4 -4
  48. package/components/Chip/Chip.tsx +19 -12
  49. package/components/CurrencyInput/CurrencyInput.d.ts +3 -56
  50. package/components/CurrencyInput/CurrencyInput.stories.d.ts +104 -0
  51. package/components/CurrencyInput/{CurrencyInput.stories.js → CurrencyInput.stories.tsx} +2 -2
  52. package/components/CurrencyInput/CurrencyInput.styles.d.ts +16 -10
  53. package/components/CurrencyInput/{CurrencyInput.styles.js → CurrencyInput.styles.ts} +23 -9
  54. package/components/CurrencyInput/CurrencyInput.tsx +7 -61
  55. package/components/Dropdown/Dropdown.d.ts +22 -7
  56. package/components/Dropdown/Dropdown.stories.d.ts +148 -0
  57. package/components/Dropdown/{Dropdown.stories.js → Dropdown.stories.tsx} +115 -1
  58. package/components/Dropdown/Dropdown.styles.d.ts +10 -0
  59. package/components/Dropdown/Dropdown.styles.ts +42 -0
  60. package/components/Dropdown/Dropdown.tsx +120 -24
  61. package/components/Grid/Col.d.ts +2 -2
  62. package/components/Grid/Col.tsx +6 -3
  63. package/components/Grid/Grid.styles.d.ts +25 -5
  64. package/components/Grid/{Grid.styles.js → Grid.styles.ts} +16 -3
  65. package/components/Grid/aGrid.stories.d.ts +127 -0
  66. package/components/Grid/bCol.stories.d.ts +74 -0
  67. package/components/Input/Input.d.ts +14 -10
  68. package/components/Input/Input.stories.d.ts +226 -0
  69. package/components/Input/{Input.stories.js → Input.stories.tsx} +20 -16
  70. package/components/Input/Input.styles.d.ts +22 -11
  71. package/components/Input/{Input.styles.js → Input.styles.ts} +29 -7
  72. package/components/Input/Input.tsx +22 -20
  73. package/components/Popover/Popover.d.ts +44 -0
  74. package/components/Popover/Popover.stories.d.ts +53 -0
  75. package/components/Popover/Popover.stories.tsx +133 -0
  76. package/components/Popover/Popover.tsx +121 -0
  77. package/components/RadioButton/RadioButton.d.ts +5 -6
  78. package/components/RadioButton/RadioButton.stories.d.ts +94 -0
  79. package/components/RadioButton/RadioButton.styles.d.ts +7 -3
  80. package/components/RadioButton/{RadioButton.styles.js → RadioButton.styles.ts} +1 -1
  81. package/components/RadioButton/RadioButton.tsx +5 -11
  82. package/components/RowItem/RowItem.d.ts +27 -9
  83. package/components/RowItem/RowItem.stories.d.ts +131 -0
  84. package/components/RowItem/RowItem.stories.tsx +710 -0
  85. package/components/RowItem/RowItem.styles.d.ts +31 -10
  86. package/components/RowItem/{RowItem.styles.js → RowItem.styles.ts} +41 -13
  87. package/components/RowItem/RowItem.tsx +106 -42
  88. package/components/ShapeIcon/ShapeIcon.d.ts +23 -16
  89. package/components/ShapeIcon/ShapeIcon.stories.d.ts +91 -0
  90. package/components/ShapeIcon/{ShapeIcon.stories.js → ShapeIcon.stories.tsx} +21 -8
  91. package/components/ShapeIcon/ShapeIcon.styles.d.ts +8 -3
  92. package/components/ShapeIcon/{ShapeIcon.styles.js → ShapeIcon.styles.ts} +6 -3
  93. package/components/ShapeIcon/ShapeIcon.tsx +25 -21
  94. package/components/Slider/Slider.d.ts +9 -7
  95. package/components/Slider/Slider.stories.d.ts +81 -0
  96. package/components/Slider/{Slider.stories.js → Slider.stories.tsx} +7 -7
  97. package/components/Slider/Slider.styles.d.ts +15 -11
  98. package/components/Slider/{Slider.styles.js → Slider.styles.ts} +1 -1
  99. package/components/Slider/Slider.tsx +21 -16
  100. package/components/Snack/Snack.d.ts +4 -5
  101. package/components/Snack/Snack.stories.d.ts +87 -0
  102. package/components/Snack/Snack.styles.d.ts +9 -8
  103. package/components/Snack/{Snack.styles.js → Snack.styles.ts} +4 -4
  104. package/components/Snack/Snack.tsx +14 -11
  105. package/components/Tabs/Tab.d.ts +6 -6
  106. package/components/Tabs/Tab.tsx +6 -7
  107. package/components/Tabs/Tabs.d.ts +7 -4
  108. package/components/Tabs/Tabs.stories.d.ts +64 -0
  109. package/components/Tabs/{Tabs.stories.js → Tabs.stories.tsx} +2 -2
  110. package/components/Tabs/Tabs.styles.d.ts +30 -12
  111. package/components/Tabs/{Tabs.styles.js → Tabs.styles.ts} +4 -4
  112. package/components/Tabs/Tabs.tsx +11 -7
  113. package/components/TextArea/TextArea.d.ts +24 -11
  114. package/components/TextArea/TextArea.stories.d.ts +151 -0
  115. package/components/TextArea/{TextArea.stories.js → TextArea.stories.tsx} +5 -96
  116. package/components/TextArea/TextArea.styles.d.ts +18 -16
  117. package/components/TextArea/{TextArea.styles.js → TextArea.styles.ts} +39 -19
  118. package/components/TextArea/TextArea.tsx +85 -31
  119. package/components/TextLabel/TextLabel.d.ts +35 -0
  120. package/components/TextLabel/TextLabel.stories.d.ts +40 -0
  121. package/components/TextLabel/TextLabel.stories.tsx +177 -0
  122. package/components/TextLabel/TextLabel.styles.d.ts +9 -0
  123. package/components/TextLabel/TextLabel.styles.ts +24 -0
  124. package/components/TextLabel/TextLabel.tsx +112 -0
  125. package/components/ToggleSwitch/ToggleSwitch.d.ts +2 -2
  126. package/components/ToggleSwitch/ToggleSwitch.stories.d.ts +38 -0
  127. package/components/ToggleSwitch/ToggleSwitch.styles.d.ts +21 -14
  128. package/components/ToggleSwitch/{ToggleSwitch.styles.js → ToggleSwitch.styles.ts} +8 -12
  129. package/components/ToggleSwitch/ToggleSwitch.tsx +12 -6
  130. package/components/Tooltip/Tooltip.d.ts +9 -3
  131. package/components/Tooltip/Tooltip.spec.js +5 -3
  132. package/components/Tooltip/Tooltip.styles.d.ts +7 -8
  133. package/components/Tooltip/Tooltip.tsx +10 -3
  134. package/components/index.d.ts +2 -0
  135. package/components/index.ts +2 -0
  136. package/icons/PrivateSellerAvatar.d.ts +3 -0
  137. package/icons/PrivateSellerAvatar.js +3 -0
  138. package/icons/Sda.d.ts +5 -2
  139. package/icons/Sda.js +7 -7
  140. package/icons/VerifiedShop.d.ts +3 -0
  141. package/icons/VerifiedShop.js +3 -0
  142. package/package.json +6 -6
  143. package/patterns/Drawer/Drawer.d.ts +13 -13
  144. package/patterns/Drawer/Drawer.stories.d.ts +90 -0
  145. package/patterns/Drawer/{Drawer.stories.js → Drawer.stories.tsx} +25 -0
  146. package/patterns/Drawer/Drawer.styles.d.ts +30 -26
  147. package/patterns/Drawer/{Drawer.styles.js → Drawer.styles.ts} +2 -5
  148. package/patterns/Drawer/Drawer.tsx +20 -41
  149. package/patterns/EmptyState/EmptyState.d.ts +5 -4
  150. package/patterns/EmptyState/EmptyState.stories.d.ts +40 -0
  151. package/patterns/EmptyState/EmptyState.styles.d.ts +10 -10
  152. package/patterns/EmptyState/{EmptyState.styles.js → EmptyState.styles.ts} +5 -4
  153. package/patterns/EmptyState/EmptyState.tsx +14 -12
  154. package/patterns/InputGroup/InputGroup.d.ts +4 -0
  155. package/patterns/InputGroup/InputGroup.styles.d.ts +5 -4
  156. package/patterns/InputGroup/InputGroup.tsx +11 -5
  157. package/patterns/LegacyDialog/DialogMainIcon.d.ts +1 -0
  158. package/patterns/LegacyDialog/DialogMainIcon.js +51 -0
  159. package/patterns/LegacyDialog/LegacyDialog.d.ts +3 -3
  160. package/patterns/LegacyDialog/LegacyDialog.styles.d.ts +8 -10
  161. package/patterns/LegacyDialog/LegacyDialog.styles.js +1 -46
  162. package/patterns/LegacyDialog/LegacyDialog.tsx +5 -11
  163. package/patterns/LegacyPopup/LegacyPopup.d.ts +4 -4
  164. package/patterns/LegacyPopup/LegacyPopup.styles.d.ts +18 -13
  165. package/patterns/LegacyPopup/{LegacyPopup.styles.js → LegacyPopup.styles.ts} +3 -1
  166. package/patterns/LegacyPopup/LegacyPopup.tsx +4 -6
  167. package/patterns/MultiSearchDropdown/MultiSearchDropdown.d.ts +20 -17
  168. package/patterns/MultiSearchDropdown/MultiSearchDropdown.stories.d.ts +125 -0
  169. package/patterns/MultiSearchDropdown/{MultiSearchDropdown.stories.js → MultiSearchDropdown.stories.tsx} +31 -30
  170. package/patterns/MultiSearchDropdown/MultiSearchDropdown.styles.d.ts +22 -21
  171. package/patterns/MultiSearchDropdown/{MultiSearchDropdown.styles.js → MultiSearchDropdown.styles.ts} +1 -7
  172. package/patterns/MultiSearchDropdown/MultiSearchDropdown.tsx +33 -32
  173. package/patterns/Popup/Popup.d.ts +8 -7
  174. package/patterns/Popup/Popup.stories.d.ts +102 -0
  175. package/patterns/Popup/Popup.styles.d.ts +41 -30
  176. package/patterns/Popup/{Popup.styles.js → Popup.styles.ts} +26 -33
  177. package/patterns/Popup/Popup.tsx +14 -33
  178. package/patterns/SearchInput/SearchInput.d.ts +38 -21
  179. package/patterns/SearchInput/SearchInput.stories.d.ts +186 -0
  180. package/patterns/SearchInput/{SearchInput.stories.js → SearchInput.stories.tsx} +78 -45
  181. package/patterns/SearchInput/SearchInput.styles.d.ts +6 -5
  182. package/patterns/SearchInput/{SearchInput.styles.js → SearchInput.styles.ts} +7 -4
  183. package/patterns/SearchInput/SearchInput.tsx +53 -34
  184. package/patterns/TagCloud/TagCloud.d.ts +19 -6
  185. package/patterns/TagCloud/TagCloud.stories.d.ts +159 -0
  186. package/patterns/TagCloud/{TagCloud.stories.js → TagCloud.stories.tsx} +59 -14
  187. package/patterns/TagCloud/TagCloud.styles.d.ts +12 -8
  188. package/patterns/TagCloud/{TagCloud.styles.js → TagCloud.styles.ts} +6 -7
  189. package/patterns/TagCloud/TagCloud.tsx +24 -8
  190. package/patterns/TagCloud/TagCloudMultiActive.d.ts +6 -4
  191. package/patterns/TagCloud/TagCloudMultiActive.tsx +5 -5
  192. package/patterns/TagCloud/TagCloudSingleActive.d.ts +5 -2
  193. package/patterns/TagCloud/TagCloudSingleActive.tsx +18 -5
  194. package/patterns/patterns-index.spec.js +1 -1
  195. package/storybook/GuideImage.d.ts +2 -2
  196. package/storybook/Swatch.d.ts +2 -2
  197. package/theme/__snapshots__/chotot.spec.js.snap +2 -2
  198. package/theme/chotot-color1.d.ts +7 -14
  199. package/theme/chotot.d.ts +32 -32
  200. package/theme/chotot.js +4 -4
  201. package/theme/ct-job.d.ts +6 -14
  202. package/theme/ct-pty.d.ts +6 -8
  203. package/theme/mudah.d.ts +14 -13
  204. package/types.d.ts +0 -9
  205. package/utils/_simulateChangeEvent.d.ts +18 -3
  206. package/utils/_simulateChangeEvent.js +13 -6
  207. package/utils/_simulateChangeEvent.spec.js +1 -1
  208. package/utils/cx.d.ts +8 -4
  209. package/utils/cx.js +8 -4
  210. package/utils/sx.d.ts +12 -4192
  211. package/components/RowItem/RowItem.stories.js +0 -560
  212. /package/components/Breadcrumbs/{Breadcrumbs.styles.js → Breadcrumbs.styles.ts} +0 -0
  213. /package/components/Button/{ButtonLink.stories.js → ButtonLink.stories.tsx} +0 -0
  214. /package/components/Button/{ButtonLink.styles.js → ButtonLink.styles.ts} +0 -0
  215. /package/components/Checkbox/{Checkbox.stories.js → Checkbox.stories.tsx} +0 -0
  216. /package/components/Checkbox/{Checkbox.styles.js → Checkbox.styles.ts} +0 -0
  217. /package/components/Grid/{aGrid.stories.js → aGrid.stories.tsx} +0 -0
  218. /package/components/Grid/{bCol.stories.js → bCol.stories.tsx} +0 -0
  219. /package/components/RadioButton/{RadioButton.stories.js → RadioButton.stories.tsx} +0 -0
  220. /package/components/Snack/{Snack.stories.js → Snack.stories.tsx} +0 -0
  221. /package/components/ToggleSwitch/{ToggleSwitch.stories.js → ToggleSwitch.stories.tsx} +0 -0
  222. /package/patterns/EmptyState/{EmptyState.stories.js → EmptyState.stories.tsx} +0 -0
  223. /package/patterns/InputGroup/{InputGroup.styles.js → InputGroup.styles.ts} +0 -0
  224. /package/patterns/Popup/{Popup.stories.js → Popup.stories.tsx} +0 -0
@@ -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';
@@ -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';
@@ -1,2 +1,5 @@
1
1
  export default PrivateSellerAvatar;
2
2
  declare function PrivateSellerAvatar(props: any): JSX.Element;
3
+ declare namespace PrivateSellerAvatar {
4
+ let type: string;
5
+ }
@@ -21,4 +21,7 @@ const PrivateSellerAvatar = (props) => (
21
21
  </svg>
22
22
  </svg>
23
23
  );
24
+
25
+ PrivateSellerAvatar.type = 'color';
26
+
24
27
  export default PrivateSellerAvatar;
package/icons/Sda.d.ts CHANGED
@@ -1,2 +1,5 @@
1
- export default SvgSDAFilled;
2
- declare function SvgSDAFilled(props: any): JSX.Element;
1
+ export default SvgSDA;
2
+ declare function SvgSDA(props: any): JSX.Element;
3
+ declare namespace SvgSDA {
4
+ let type: string;
5
+ }
package/icons/Sda.js CHANGED
@@ -1,7 +1,8 @@
1
1
  import * as React from 'react';
2
2
 
3
- const SvgSDAFilled = (props) => (
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
- fillRule="evenodd"
15
- clipRule="evenodd"
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
- export default SvgSDAFilled;
20
+ SvgSDA.type = 'monochrome';
21
+
22
+ export default SvgSDA;
@@ -1,2 +1,5 @@
1
1
  export default VerifiedShop;
2
2
  declare function VerifiedShop(props: any): JSX.Element;
3
+ declare namespace VerifiedShop {
4
+ let type: string;
5
+ }
@@ -19,4 +19,7 @@ const VerifiedShop = (props) => (
19
19
  </svg>
20
20
  </svg>
21
21
  );
22
+
23
+ VerifiedShop.type = 'color';
24
+
22
25
  export default VerifiedShop;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chotot/clad-ui",
3
- "version": "1.2.5",
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.0.28",
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.0"
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": ">=14"
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
- export type DrawerProps = {
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?: () => void;
49
+ onClose?: React.MouseEventHandler<HTMLElement>;
50
50
  /**
51
51
  * Callback when main button is clicked
52
52
  */
53
- onPrimaryButtonClick?: () => void;
53
+ onPrimaryButtonClick?: React.MouseEventHandler<HTMLButtonElement>;
54
54
  /**
55
55
  * Callback when secondary button is clicked
56
56
  */
57
- onSecondaryButtonClick?: () => void;
57
+ onSecondaryButtonClick?: React.MouseEventHandler<HTMLButtonElement>;
58
58
  /**
59
59
  * Callback when optional button is clicked
60
60
  */
61
- onOptionalBtnClick?: () => void;
61
+ onOptionalBtnClick?: React.MouseEventHandler<HTMLButtonElement>;
62
62
  /**
63
63
  * Primary Button Color
64
64
  */
65
- primaryColor?: 'accent' | 'caution' | 'chotot' | 'critical' | 'error' | 'info' | 'neutral' | 'positive' | 'primary' | 'success' | 'tertiary';
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
- export 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<any> | undefined;
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
- export const StyledPopup: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
5
- as?: import("react").ElementType<any> | undefined;
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
- export const CloseButton: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown> & {
8
- as?: import("react").ElementType<any> | undefined;
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
- export const OptionButton: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown> & {
11
- as?: import("react").ElementType<any> | undefined;
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
- export const StyledHeader: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
14
- as?: import("react").ElementType<any> | undefined;
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
- export const ChildrenWrapper: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
17
- as?: import("react").ElementType<any> | undefined;
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
- export const ChildrenContent: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
20
- as?: import("react").ElementType<any> | undefined;
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
- * @type {React.FC<any>}
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
- export const buttonClass: import("@linaria/core").LinariaClassName;
30
- export const showChildrenOverflowClass: import("@linaria/core").LinariaClassName;
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
- export const noSpacingClass: import("@linaria/core").LinariaClassName;
35
- export const preventBodyScrollClass: import("@linaria/core").LinariaClassName;
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: 0 ${space.md};
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 type DrawerProps = {
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?: () => void;
83
+ onClose?: React.MouseEventHandler<HTMLElement>;
85
84
  /**
86
85
  * Callback when main button is clicked
87
86
  */
88
- onPrimaryButtonClick?: () => void;
87
+ onPrimaryButtonClick?: React.MouseEventHandler<HTMLButtonElement>;
89
88
  /**
90
89
  * Callback when secondary button is clicked
91
90
  */
92
- onSecondaryButtonClick?: () => void;
91
+ onSecondaryButtonClick?: React.MouseEventHandler<HTMLButtonElement>;
93
92
  /**
94
93
  * Callback when optional button is clicked
95
94
  */
96
- onOptionalBtnClick?: () => void;
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
- <CloseButton type="button" onClick={onClose} className={closeIconClass}>
268
- {closeIcon}
269
- </CloseButton>
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={secondaryColor}
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 EmptyStateProps = {
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: 'connectionError' | 'emptyAd' | 'noFilterResult' | 'noNetwork' | 'noResult' | 'notFound' | 'other' | 'underMaintenance';
7
+ type: EmptyStateType;
7
8
  /**
8
9
  * Action Button on Click
9
10
  */
10
- onButtonClick?: () => void;
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<any> | undefined;
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<HTMLParagraphElement> & import("react").HTMLAttributes<HTMLParagraphElement> & Record<never, unknown> & {
5
- as?: import("react").ElementType<any> | undefined;
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<HTMLPreElement> & import("react").HTMLAttributes<HTMLPreElement> & Record<never, unknown> & {
8
- as?: import("react").ElementType<any> | undefined;
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<any> | undefined;
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<any> | undefined;
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
  }>;