@pingux/astro 2.128.0 → 2.129.0-alpha.0

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 (264) hide show
  1. package/lib/cjs/components/AIComponents/AIPanel/AIPanel.stories.d.ts +1 -4
  2. package/lib/cjs/components/AIComponents/AIPanel/AIPanel.stories.js +4 -1
  3. package/lib/cjs/components/AIComponents/Prompt/Prompt.stories.js +4 -1
  4. package/lib/cjs/components/AIComponents/PromptInput/PromptInput.stories.d.ts +1 -16
  5. package/lib/cjs/components/AIComponents/PromptInput/PromptInput.stories.js +2 -4
  6. package/lib/cjs/components/AIComponents/Response/Response.stories.d.ts +2 -13
  7. package/lib/cjs/components/AIComponents/Response/Response.stories.js +3 -5
  8. package/lib/cjs/components/AIComponents/Suggestions/Suggestions.stories.d.ts +1 -4
  9. package/lib/cjs/components/AIComponents/Suggestions/Suggestions.stories.js +2 -1
  10. package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.stories.js +2 -1
  11. package/lib/cjs/components/AccordionGroup/AccordionGroup.stories.d.ts +22 -3
  12. package/lib/cjs/components/AccordionGroup/AccordionGroup.stories.js +35 -21
  13. package/lib/cjs/components/ArrayField/ArrayField.stories.d.ts +2 -6
  14. package/lib/cjs/components/ArrayField/ArrayField.stories.js +28 -21
  15. package/lib/cjs/components/AstroProvider/AstroProvider.stories.js +2 -1
  16. package/lib/cjs/components/Avatar/Avatar.stories.js +20 -3
  17. package/lib/cjs/components/Badge/Badge.stories.js +26 -22
  18. package/lib/cjs/components/Box/Box.stories.d.ts +43 -0
  19. package/lib/cjs/components/Box/Box.stories.js +9 -4
  20. package/lib/cjs/components/Bracket/Bracket.stories.js +32 -5
  21. package/lib/cjs/components/Breadcrumbs/Breadcrumbs.stories.js +15 -12
  22. package/lib/cjs/components/Button/Button.stories.d.ts +6 -23
  23. package/lib/cjs/components/Button/Button.stories.js +30 -26
  24. package/lib/cjs/components/ButtonBar/ButtonBar.stories.js +14 -11
  25. package/lib/cjs/components/Callout/Callout.stories.js +15 -12
  26. package/lib/cjs/components/Card/Card.stories.d.ts +3 -3
  27. package/lib/cjs/components/Card/Card.stories.js +20 -15
  28. package/lib/cjs/components/CheckboxField/CheckboxField.stories.js +28 -18
  29. package/lib/cjs/components/CodeEditor/CodeEditor.stories.d.ts +0 -3
  30. package/lib/cjs/components/CodeEditor/CodeEditor.stories.js +10 -12
  31. package/lib/cjs/components/CodeView/CodeView.stories.js +22 -15
  32. package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.stories.js +5 -3
  33. package/lib/cjs/components/ColorField/ColorField.stories.js +5 -3
  34. package/lib/cjs/components/ComboBoxField/ComboBoxField.stories.js +4 -4
  35. package/lib/cjs/components/CopyText/CopyText.stories.d.ts +1 -1
  36. package/lib/cjs/components/CopyText/CopyText.stories.js +5 -0
  37. package/lib/cjs/components/DataTable/DataTable.stories.d.ts +3 -180
  38. package/lib/cjs/components/DataTable/DataTable.stories.js +10 -11
  39. package/lib/cjs/components/DatePicker/DatePicker.stories.js +3 -5
  40. package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.stories.d.ts +19 -4
  41. package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.stories.js +18 -7
  42. package/lib/cjs/components/FieldHelperText/FieldHelperText.stories.d.ts +3 -3
  43. package/lib/cjs/components/FieldHelperText/FieldHelperText.stories.js +10 -9
  44. package/lib/cjs/components/FileInputField/FileInputField.stories.js +15 -18
  45. package/lib/cjs/components/Footer/Footer.stories.js +2 -1
  46. package/lib/cjs/components/Grid/Grid.stories.js +32 -7
  47. package/lib/cjs/components/HelpHint/HelpHint.stories.js +13 -8
  48. package/lib/cjs/components/HelpHint/HelpHint.styles.js +2 -1
  49. package/lib/cjs/components/Icon/Icon.stories.js +19 -7
  50. package/lib/cjs/components/IconBadge/IconBadge.stories.js +7 -3
  51. package/lib/cjs/components/IconButton/IconButton.stories.d.ts +3 -1
  52. package/lib/cjs/components/IconButton/IconButton.stories.js +17 -8
  53. package/lib/cjs/components/IconButtonToggle/IconButtonToggle.stories.js +7 -0
  54. package/lib/cjs/components/IconWrapper/IconWrapper.stories.js +6 -3
  55. package/lib/cjs/components/Image/Image.stories.d.ts +1 -33
  56. package/lib/cjs/components/Image/Image.stories.js +28 -13
  57. package/lib/cjs/components/ImageUploadField/ImageUploadField.stories.js +10 -13
  58. package/lib/cjs/components/Input/Input.stories.d.ts +1 -14
  59. package/lib/cjs/components/Input/Input.styles.js +1 -1
  60. package/lib/cjs/components/Label/Label.stories.js +3 -3
  61. package/lib/cjs/components/Link/Link.stories.js +5 -0
  62. package/lib/cjs/components/LinkSelectField/LinkSelectField.stories.js +23 -17
  63. package/lib/cjs/components/ListView/ListView.stories.d.ts +1 -132
  64. package/lib/cjs/components/ListView/ListView.stories.js +11 -13
  65. package/lib/cjs/components/ListViewItem/ListViewItem.stories.js +2 -1
  66. package/lib/cjs/components/Loader/Loader.stories.js +8 -3
  67. package/lib/cjs/components/Messages/Messages.stories.d.ts +10 -29
  68. package/lib/cjs/components/Messages/Messages.stories.js +40 -32
  69. package/lib/cjs/components/Modal/Modal.stories.js +2 -1
  70. package/lib/cjs/components/MultivaluesField/MultivaluesField.stories.js +2 -4
  71. package/lib/cjs/components/NavBar/NavBar.stories.js +2 -1
  72. package/lib/cjs/components/NavSideBar/NavSideBar.stories.js +2 -1
  73. package/lib/cjs/components/NavigationHeader/NavigationHeader.stories.js +2 -4
  74. package/lib/cjs/components/NumberField/NumberField.stories.js +25 -27
  75. package/lib/cjs/components/OverlayPanel/OverlayPanel.stories.js +2 -4
  76. package/lib/cjs/components/PageHeader/PageHeader.stories.js +14 -12
  77. package/lib/cjs/components/Pagination/Pagination.stories.d.ts +1 -33
  78. package/lib/cjs/components/Pagination/Pagination.stories.js +2 -1
  79. package/lib/cjs/components/PanelHeader/PanelHeader.stories.js +10 -6
  80. package/lib/cjs/components/PanelHeader/controls/PanelHeaderCloseButton.stories.js +2 -1
  81. package/lib/cjs/components/PanelHeader/controls/PanelHeaderMenu.stories.js +2 -1
  82. package/lib/cjs/components/PanelHeader/controls/PanelHeaderSwitchField.stories.js +2 -1
  83. package/lib/cjs/components/PasswordField/PasswordField.stories.js +0 -3
  84. package/lib/cjs/components/PopoverMenu/PopoverMenu.stories.js +22 -15
  85. package/lib/cjs/components/ProgressBar/ProgressBar.stories.js +0 -3
  86. package/lib/cjs/components/RadioGroupField/RadioGroupField.stories.d.ts +5 -18
  87. package/lib/cjs/components/RadioGroupField/RadioGroupField.stories.js +18 -12
  88. package/lib/cjs/components/RangeCalendar/RangeCalendar.stories.d.ts +1 -93
  89. package/lib/cjs/components/RangeCalendar/RangeCalendar.stories.js +9 -12
  90. package/lib/cjs/components/RequirementsList/RequirementsList.stories.js +5 -0
  91. package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.stories.js +18 -4
  92. package/lib/cjs/components/SearchField/SearchField.stories.js +8 -6
  93. package/lib/cjs/components/SelectField/Select.styles.js +1 -0
  94. package/lib/cjs/components/SelectField/SelectField.stories.d.ts +32 -24
  95. package/lib/cjs/components/SelectField/SelectField.stories.js +49 -27
  96. package/lib/cjs/components/Separator/Separator.stories.d.ts +3 -1
  97. package/lib/cjs/components/Separator/Separator.stories.js +5 -4
  98. package/lib/cjs/components/Skeleton/Skeleton.stories.d.ts +1 -1
  99. package/lib/cjs/components/Skeleton/Skeleton.stories.js +13 -8
  100. package/lib/cjs/components/SliderField/SliderField.stories.d.ts +2 -2
  101. package/lib/cjs/components/SliderField/SliderField.stories.js +6 -6
  102. package/lib/cjs/components/Stepper/Stepper.stories.js +24 -16
  103. package/lib/cjs/components/SwitchField/SwitchField.stories.js +13 -15
  104. package/lib/cjs/components/Table/Table.stories.js +13 -2
  105. package/lib/cjs/components/Tabs/Tabs.stories.js +30 -4
  106. package/lib/cjs/components/Text/Text.stories.d.ts +2 -1
  107. package/lib/cjs/components/Text/Text.stories.js +28 -17
  108. package/lib/cjs/components/TextAreaField/TextAreaField.stories.d.ts +11 -35
  109. package/lib/cjs/components/TextAreaField/TextAreaField.stories.js +30 -33
  110. package/lib/cjs/components/TextField/TextField.stories.js +44 -47
  111. package/lib/cjs/components/TimeField/TimeField.stories.d.ts +1 -25
  112. package/lib/cjs/components/TimeField/TimeField.stories.js +3 -6
  113. package/lib/cjs/components/TimeZonePicker/TimeZonePicker.stories.js +7 -6
  114. package/lib/cjs/components/TooltipTrigger/TooltipTrigger.js +5 -3
  115. package/lib/cjs/components/TooltipTrigger/TooltipTrigger.stories.js +34 -27
  116. package/lib/cjs/components/TreeView/TreeView.stories.js +2 -4
  117. package/lib/cjs/recipes/AccordionCard.stories.js +4 -1
  118. package/lib/cjs/recipes/AttributeMapping.stories.js +4 -1
  119. package/lib/cjs/recipes/CollapsiblePanel.stories.js +4 -1
  120. package/lib/cjs/recipes/ConditionFilter.stories.js +2 -1
  121. package/lib/cjs/recipes/CopyToClipboard.stories.js +4 -1
  122. package/lib/cjs/recipes/CountryPicker.stories.js +4 -1
  123. package/lib/cjs/recipes/DataVisualization.stories.js +4 -1
  124. package/lib/cjs/recipes/DateTimeRangePicker.stories.js +4 -1
  125. package/lib/cjs/recipes/InlineEditing.stories.js +4 -1
  126. package/lib/cjs/recipes/ListAndPanel.stories.js +2 -1
  127. package/lib/cjs/recipes/LogoTabs.stories.js +4 -1
  128. package/lib/cjs/recipes/MaskedValue.stories.js +2 -1
  129. package/lib/cjs/recipes/MultipagePopup.stories.js +2 -1
  130. package/lib/cjs/recipes/NoAccess.stories.d.ts +1 -4
  131. package/lib/cjs/recipes/NoAccess.stories.js +4 -1
  132. package/lib/cjs/recipes/OneWayToBidirectionalArrow.stories.js +4 -1
  133. package/lib/cjs/recipes/PanelContent.stories.js +2 -1
  134. package/lib/cjs/recipes/ScrollableListView.stories.js +4 -1
  135. package/lib/cjs/recipes/Slider.stories.js +4 -1
  136. package/lib/cjs/recipes/TrialExperienceIndustryButtons.stories.js +4 -1
  137. package/lib/cjs/recipes/TrialExperienceStatusBar.stories.js +4 -1
  138. package/lib/cjs/styles/templates/Nav/Nav.stories.js +2 -1
  139. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/input.d.ts +8 -0
  140. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/input.js +8 -0
  141. package/lib/cjs/styles/themes/next-gen/colors/colors.js +1 -1
  142. package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +11 -2
  143. package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +6 -0
  144. package/lib/cjs/styles/themes/next-gen/variants/button.js +7 -1
  145. package/lib/cjs/styles/themes/next-gen/variants/popoverMenu.d.ts +4 -2
  146. package/lib/cjs/styles/themes/next-gen/variants/popoverMenu.js +4 -2
  147. package/lib/cjs/styles/themes/next-gen/variants/tooltip.d.ts +1 -0
  148. package/lib/cjs/styles/themes/next-gen/variants/tooltip.js +3 -2
  149. package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +5 -2
  150. package/lib/cjs/types/tooltipTrigger.d.ts +1 -0
  151. package/lib/components/AIComponents/AIPanel/AIPanel.stories.js +4 -1
  152. package/lib/components/AIComponents/Prompt/Prompt.stories.js +4 -1
  153. package/lib/components/AIComponents/PromptInput/PromptInput.stories.js +2 -4
  154. package/lib/components/AIComponents/Response/Response.stories.js +3 -5
  155. package/lib/components/AIComponents/Suggestions/Suggestions.stories.js +2 -1
  156. package/lib/components/AccordionGridGroup/AccordionGridGroup.stories.js +2 -1
  157. package/lib/components/AccordionGroup/AccordionGroup.stories.js +26 -12
  158. package/lib/components/ArrayField/ArrayField.stories.js +28 -21
  159. package/lib/components/AstroProvider/AstroProvider.stories.js +2 -1
  160. package/lib/components/Avatar/Avatar.stories.js +20 -3
  161. package/lib/components/Badge/Badge.stories.js +26 -22
  162. package/lib/components/Box/Box.stories.js +8 -3
  163. package/lib/components/Bracket/Bracket.stories.js +32 -5
  164. package/lib/components/Breadcrumbs/Breadcrumbs.stories.js +9 -6
  165. package/lib/components/Button/Button.stories.js +30 -26
  166. package/lib/components/ButtonBar/ButtonBar.stories.js +14 -11
  167. package/lib/components/Callout/Callout.stories.js +15 -12
  168. package/lib/components/Card/Card.stories.js +20 -15
  169. package/lib/components/CheckboxField/CheckboxField.stories.js +28 -18
  170. package/lib/components/CodeEditor/CodeEditor.stories.js +10 -12
  171. package/lib/components/CodeView/CodeView.stories.js +22 -15
  172. package/lib/components/CollapsiblePanel/CollapsiblePanel.stories.js +5 -3
  173. package/lib/components/ColorField/ColorField.stories.js +5 -3
  174. package/lib/components/ComboBoxField/ComboBoxField.stories.js +4 -4
  175. package/lib/components/CopyText/CopyText.stories.js +5 -0
  176. package/lib/components/DataTable/DataTable.stories.js +10 -11
  177. package/lib/components/DatePicker/DatePicker.stories.js +3 -5
  178. package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.stories.js +17 -6
  179. package/lib/components/FieldHelperText/FieldHelperText.stories.js +10 -9
  180. package/lib/components/FileInputField/FileInputField.stories.js +15 -18
  181. package/lib/components/Footer/Footer.stories.js +2 -1
  182. package/lib/components/Grid/Grid.stories.js +32 -7
  183. package/lib/components/HelpHint/HelpHint.stories.js +13 -8
  184. package/lib/components/HelpHint/HelpHint.styles.js +2 -1
  185. package/lib/components/Icon/Icon.stories.js +18 -6
  186. package/lib/components/IconBadge/IconBadge.stories.js +7 -3
  187. package/lib/components/IconButton/IconButton.stories.js +17 -8
  188. package/lib/components/IconButtonToggle/IconButtonToggle.stories.js +7 -0
  189. package/lib/components/IconWrapper/IconWrapper.stories.js +6 -3
  190. package/lib/components/Image/Image.stories.js +27 -12
  191. package/lib/components/ImageUploadField/ImageUploadField.stories.js +10 -13
  192. package/lib/components/Input/Input.styles.js +1 -1
  193. package/lib/components/Label/Label.stories.js +3 -3
  194. package/lib/components/Link/Link.stories.js +5 -0
  195. package/lib/components/LinkSelectField/LinkSelectField.stories.js +22 -16
  196. package/lib/components/ListView/ListView.stories.js +4 -6
  197. package/lib/components/ListViewItem/ListViewItem.stories.js +2 -1
  198. package/lib/components/Loader/Loader.stories.js +8 -3
  199. package/lib/components/Messages/Messages.stories.js +28 -20
  200. package/lib/components/Modal/Modal.stories.js +2 -1
  201. package/lib/components/MultivaluesField/MultivaluesField.stories.js +2 -4
  202. package/lib/components/NavBar/NavBar.stories.js +2 -1
  203. package/lib/components/NavSideBar/NavSideBar.stories.js +2 -1
  204. package/lib/components/NavigationHeader/NavigationHeader.stories.js +2 -4
  205. package/lib/components/NumberField/NumberField.stories.js +25 -27
  206. package/lib/components/OverlayPanel/OverlayPanel.stories.js +2 -4
  207. package/lib/components/PageHeader/PageHeader.stories.js +14 -12
  208. package/lib/components/Pagination/Pagination.stories.js +2 -1
  209. package/lib/components/PanelHeader/PanelHeader.stories.js +10 -6
  210. package/lib/components/PanelHeader/controls/PanelHeaderCloseButton.stories.js +2 -1
  211. package/lib/components/PanelHeader/controls/PanelHeaderMenu.stories.js +2 -1
  212. package/lib/components/PanelHeader/controls/PanelHeaderSwitchField.stories.js +2 -1
  213. package/lib/components/PasswordField/PasswordField.stories.js +0 -3
  214. package/lib/components/PopoverMenu/PopoverMenu.stories.js +22 -15
  215. package/lib/components/ProgressBar/ProgressBar.stories.js +0 -3
  216. package/lib/components/RadioGroupField/RadioGroupField.stories.js +18 -12
  217. package/lib/components/RangeCalendar/RangeCalendar.stories.js +9 -12
  218. package/lib/components/RequirementsList/RequirementsList.stories.js +5 -0
  219. package/lib/components/RockerButtonGroup/RockerButtonGroup.stories.js +17 -3
  220. package/lib/components/SearchField/SearchField.stories.js +8 -6
  221. package/lib/components/SelectField/Select.styles.js +1 -0
  222. package/lib/components/SelectField/SelectField.stories.js +49 -27
  223. package/lib/components/Separator/Separator.stories.js +5 -4
  224. package/lib/components/Skeleton/Skeleton.stories.js +13 -8
  225. package/lib/components/SliderField/SliderField.stories.js +6 -6
  226. package/lib/components/Stepper/Stepper.stories.js +13 -5
  227. package/lib/components/SwitchField/SwitchField.stories.js +13 -15
  228. package/lib/components/Table/Table.stories.js +13 -2
  229. package/lib/components/Tabs/Tabs.stories.js +29 -3
  230. package/lib/components/Text/Text.stories.js +28 -17
  231. package/lib/components/TextAreaField/TextAreaField.stories.js +30 -33
  232. package/lib/components/TextField/TextField.stories.js +44 -47
  233. package/lib/components/TimeField/TimeField.stories.js +3 -6
  234. package/lib/components/TimeZonePicker/TimeZonePicker.stories.js +7 -6
  235. package/lib/components/TooltipTrigger/TooltipTrigger.js +5 -3
  236. package/lib/components/TooltipTrigger/TooltipTrigger.stories.js +34 -27
  237. package/lib/components/TreeView/TreeView.stories.js +2 -4
  238. package/lib/recipes/AccordionCard.stories.js +4 -1
  239. package/lib/recipes/AttributeMapping.stories.js +4 -1
  240. package/lib/recipes/CollapsiblePanel.stories.js +4 -1
  241. package/lib/recipes/ConditionFilter.stories.js +2 -1
  242. package/lib/recipes/CopyToClipboard.stories.js +4 -1
  243. package/lib/recipes/CountryPicker.stories.js +4 -1
  244. package/lib/recipes/DataVisualization.stories.js +4 -1
  245. package/lib/recipes/DateTimeRangePicker.stories.js +4 -1
  246. package/lib/recipes/InlineEditing.stories.js +4 -1
  247. package/lib/recipes/ListAndPanel.stories.js +2 -1
  248. package/lib/recipes/LogoTabs.stories.js +4 -1
  249. package/lib/recipes/MaskedValue.stories.js +2 -1
  250. package/lib/recipes/MultipagePopup.stories.js +2 -1
  251. package/lib/recipes/NoAccess.stories.js +4 -1
  252. package/lib/recipes/OneWayToBidirectionalArrow.stories.js +4 -1
  253. package/lib/recipes/PanelContent.stories.js +2 -1
  254. package/lib/recipes/ScrollableListView.stories.js +4 -1
  255. package/lib/recipes/Slider.stories.js +4 -1
  256. package/lib/recipes/TrialExperienceIndustryButtons.stories.js +4 -1
  257. package/lib/recipes/TrialExperienceStatusBar.stories.js +4 -1
  258. package/lib/styles/templates/Nav/Nav.stories.js +2 -1
  259. package/lib/styles/themeOverrides/nextGenDarkMode/variants/input.js +8 -0
  260. package/lib/styles/themes/next-gen/colors/colors.js +1 -1
  261. package/lib/styles/themes/next-gen/variants/button.js +7 -1
  262. package/lib/styles/themes/next-gen/variants/popoverMenu.js +4 -2
  263. package/lib/styles/themes/next-gen/variants/tooltip.js +3 -2
  264. package/package.json +2 -1
@@ -0,0 +1,43 @@
1
+ import React from 'react';
2
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
3
+ export default _default;
4
+ export declare const Default: ({ ...args }: {
5
+ [x: string]: any;
6
+ }) => React.JSX.Element;
7
+ export declare const Disabled: {
8
+ ({ ...args }: {
9
+ [x: string]: any;
10
+ }): React.JSX.Element;
11
+ parameters: {
12
+ docs: {
13
+ description: {
14
+ story: string;
15
+ };
16
+ };
17
+ };
18
+ args: {
19
+ isDisabled: {
20
+ defaultValue: boolean;
21
+ };
22
+ bg: {
23
+ control: {
24
+ type: string;
25
+ options: any;
26
+ };
27
+ defaultValue: string;
28
+ };
29
+ sx: {
30
+ border: string;
31
+ borderColor: string;
32
+ display: string;
33
+ flexDirection: string;
34
+ gap: string;
35
+ };
36
+ };
37
+ };
38
+ export declare const BoxesWithGaps: {
39
+ (): React.JSX.Element;
40
+ parameters: {
41
+ codesandbox: boolean;
42
+ };
43
+ };
@@ -25,9 +25,11 @@ var _default = {
25
25
  docs: {
26
26
  page: function page() {
27
27
  return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_Box["default"], null), (0, _react2.jsx)(_storybookDocsLayout["default"], null));
28
- },
29
- source: {
30
- type: 'code'
28
+ }
29
+ },
30
+ codesandbox: {
31
+ mapComponent: {
32
+ '@pingux/astro': ['Box', 'Image', 'Text']
31
33
  }
32
34
  }
33
35
  },
@@ -275,4 +277,7 @@ var BoxesWithGaps = function BoxesWithGaps() {
275
277
  bg: "decorativeDark.10"
276
278
  })));
277
279
  };
278
- exports.BoxesWithGaps = BoxesWithGaps;
280
+ exports.BoxesWithGaps = BoxesWithGaps;
281
+ BoxesWithGaps.parameters = {
282
+ codesandbox: false
283
+ };
@@ -17,21 +17,48 @@ var _default = {
17
17
  component: _index.Bracket,
18
18
  parameters: {
19
19
  docs: {
20
- source: {
21
- type: 'code'
22
- },
23
20
  page: function page() {
24
21
  return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_Bracket["default"], null), (0, _react2.jsx)(_storybookDocsLayout["default"], null));
25
22
  }
23
+ },
24
+ codesandbox: {
25
+ mapComponent: {
26
+ '@pingux/astro': ['Box', 'Bracket']
27
+ }
28
+ }
29
+ },
30
+ argTypes: {
31
+ isLast: {
32
+ control: {
33
+ type: 'boolean'
34
+ },
35
+ description: 'If true, the bracket will be displayed as the last one.'
36
+ },
37
+ color: {
38
+ control: {
39
+ type: 'text'
40
+ }
41
+ },
42
+ variant: {
43
+ control: false
44
+ },
45
+ as: {
46
+ control: false
47
+ },
48
+ role: {
49
+ control: false
50
+ },
51
+ 'data-testid': {
52
+ control: false
26
53
  }
27
54
  }
28
55
  };
29
56
  exports["default"] = _default;
30
- var Default = function Default() {
57
+ var Default = function Default(args) {
31
58
  return (0, _react2.jsx)(_index.Box, {
32
59
  p: "md",
33
60
  ml: "sm"
34
- }, (0, _react2.jsx)(_index.Bracket, null));
61
+ }, (0, _react2.jsx)(_index.Bracket, args));
35
62
  };
36
63
  exports.Default = Default;
37
64
  Default.parameters = {
@@ -8,7 +8,6 @@ _Object$defineProperty(exports, "__esModule", {
8
8
  exports["default"] = exports.Overflowing = exports.Default = void 0;
9
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
10
10
  var _react = _interopRequireDefault(require("react"));
11
- var _reactStately = require("react-stately");
12
11
  var _ChevronRightIcon = _interopRequireDefault(require("@pingux/mdi-react/ChevronRightIcon"));
13
12
  var _addonActions = require("@storybook/addon-actions");
14
13
  var _storybookAddonDesigns = require("storybook-addon-designs");
@@ -23,12 +22,15 @@ var _default = {
23
22
  decorators: [_storybookAddonDesigns.withDesign],
24
23
  parameters: {
25
24
  docs: {
26
- source: {
27
- type: 'code'
28
- },
29
25
  page: function page() {
30
26
  return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_Breadcrumbs["default"], null), (0, _react2.jsx)(_storybookDocsLayout["default"], null));
31
27
  }
28
+ },
29
+ codesandbox: {
30
+ mapComponent: {
31
+ '@pingux/astro': ['Box', 'Breadcrumbs', 'Item'],
32
+ '@pingux/mdi-react/ChevronRightIcon': 'ChevronRightIcon'
33
+ }
32
34
  }
33
35
  },
34
36
  argTypes: {
@@ -53,17 +55,17 @@ var Default = function Default(args) {
53
55
  return (0, _react2.jsx)(_index.Breadcrumbs, (0, _extends2["default"])({}, args, {
54
56
  onAction: onAction,
55
57
  icon: _ChevronRightIcon["default"]
56
- }), (0, _react2.jsx)(_reactStately.Item, {
58
+ }), (0, _react2.jsx)(_index.Item, {
57
59
  "aria-label": "home",
58
60
  "data-id": "home",
59
61
  href: "https://www.pingidentity.com",
60
62
  key: "home"
61
- }, "Home"), (0, _react2.jsx)(_reactStately.Item, {
63
+ }, "Home"), (0, _react2.jsx)(_index.Item, {
62
64
  "aria-label": "trendy",
63
65
  "data-id": "trendy",
64
66
  href: "https://www.pingidentity.com",
65
67
  key: "trendy"
66
- }, "Trendy"), (0, _react2.jsx)(_reactStately.Item, {
68
+ }, "Trendy"), (0, _react2.jsx)(_index.Item, {
67
69
  "aria-label": "march-2020-assets",
68
70
  "data-id": "march",
69
71
  key: "march 2020 assets"
@@ -83,24 +85,24 @@ var Overflowing = function Overflowing() {
83
85
  maxWidth: "385px"
84
86
  }, (0, _react2.jsx)(_index.Breadcrumbs, {
85
87
  icon: _ChevronRightIcon["default"]
86
- }, (0, _react2.jsx)(_reactStately.Item, {
88
+ }, (0, _react2.jsx)(_index.Item, {
87
89
  "aria-label": "breadcrumb_1",
88
90
  "data-id": "breadcrumb_1",
89
91
  href: "https://www.pingidentity.com",
90
92
  key: "breadcrumb_1"
91
- }, reallyLongText), (0, _react2.jsx)(_reactStately.Item, {
93
+ }, reallyLongText), (0, _react2.jsx)(_index.Item, {
92
94
  "aria-label": "breadcrumb_2",
93
95
  "data-id": "breadcrumb_2",
94
96
  href: "https://www.pingidentity.com",
95
97
  key: "breadcrumb_2"
96
98
  }, "Edit")), (0, _react2.jsx)(_index.Breadcrumbs, {
97
99
  icon: _ChevronRightIcon["default"]
98
- }, (0, _react2.jsx)(_reactStately.Item, {
100
+ }, (0, _react2.jsx)(_index.Item, {
99
101
  "aria-label": "breadcrumb_1",
100
102
  "data-id": "breadcrumb_1",
101
103
  href: "https://www.pingidentity.com",
102
104
  key: "breadcrumb_1"
103
- }, reallyLongText), (0, _react2.jsx)(_reactStately.Item, {
105
+ }, reallyLongText), (0, _react2.jsx)(_index.Item, {
104
106
  "aria-label": "breadcrumb_1",
105
107
  "data-id": "breadcrumb_2",
106
108
  href: "https://www.pingidentity.com",
@@ -120,5 +122,6 @@ Overflowing.parameters = {
120
122
  enabled: false
121
123
  }]
122
124
  }
123
- }
125
+ },
126
+ codesandbox: false
124
127
  };
@@ -1,28 +1,11 @@
1
1
  import React from 'react';
2
2
  import { StoryFn } from '@storybook/react';
3
3
  import { ButtonProps } from '../../types';
4
- declare const _default: {
5
- title: string;
6
- component: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
7
- decorators: ((...args: any) => any)[];
8
- argTypes: any;
9
- args: {
10
- variant: string;
11
- children: string;
12
- };
13
- parameters: {
14
- docs: {
15
- source: {
16
- type: string;
17
- };
18
- page: () => React.JSX.Element;
19
- };
20
- };
21
- };
4
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
22
5
  export default _default;
23
6
  export declare const Default: StoryFn<ButtonProps>;
24
7
  export declare const Primary: {
25
- (): React.JSX.Element;
8
+ (args: any): React.JSX.Element;
26
9
  parameters: {
27
10
  design: {
28
11
  type: string;
@@ -31,7 +14,7 @@ export declare const Primary: {
31
14
  };
32
15
  };
33
16
  export declare const Critical: {
34
- (): React.JSX.Element;
17
+ (args: any): React.JSX.Element;
35
18
  parameters: {
36
19
  design: {
37
20
  type: string;
@@ -40,7 +23,7 @@ export declare const Critical: {
40
23
  };
41
24
  };
42
25
  export declare const InlineButton: {
43
- (): React.JSX.Element;
26
+ (args: any): React.JSX.Element;
44
27
  parameters: {
45
28
  design: {
46
29
  type: string;
@@ -49,7 +32,7 @@ export declare const InlineButton: {
49
32
  };
50
33
  };
51
34
  export declare const TextIconButton: {
52
- (): React.JSX.Element;
35
+ (args: any): React.JSX.Element;
53
36
  parameters: {
54
37
  design: {
55
38
  type: string;
@@ -58,7 +41,7 @@ export declare const TextIconButton: {
58
41
  };
59
42
  };
60
43
  export declare const Disabled: {
61
- (): React.JSX.Element;
44
+ (args: any): React.JSX.Element;
62
45
  parameters: {
63
46
  design: {
64
47
  type: string;
@@ -13,8 +13,8 @@ _Object$defineProperty(exports, "__esModule", {
13
13
  value: true
14
14
  });
15
15
  exports["default"] = exports.TextIconButton = exports.Primary = exports.InlineButton = exports.Disabled = exports.Default = exports.Critical = exports.ColorBlockButton = void 0;
16
- var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
17
16
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/objectWithoutProperties"));
17
+ var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
18
18
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
19
19
  var _react = _interopRequireDefault(require("react"));
20
20
  var _CreateIcon = _interopRequireDefault(require("@pingux/mdi-react/CreateIcon"));
@@ -40,12 +40,16 @@ var _default = {
40
40
  },
41
41
  parameters: {
42
42
  docs: {
43
- source: {
44
- type: 'code'
45
- },
46
43
  page: function page() {
47
44
  return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_Button["default"], null), (0, _react2.jsx)(_storybookDocsLayout["default"], null));
48
45
  }
46
+ },
47
+ codesandbox: {
48
+ mapComponent: {
49
+ '@pingux/astro': ['Box', 'Button', 'Icon', 'Text'],
50
+ '@pingux/mdi-react/PlusIcon': 'PlusIcon',
51
+ '@pingux/mdi-react/CreateIcon': 'CreateIcon'
52
+ }
49
53
  }
50
54
  }
51
55
  };
@@ -60,10 +64,10 @@ Default.parameters = {
60
64
  url: _figmaLinks.FIGMA_LINKS.button["default"]
61
65
  }
62
66
  };
63
- var Primary = function Primary() {
64
- return (0, _react2.jsx)(_index.Button, {
67
+ var Primary = function Primary(args) {
68
+ return (0, _react2.jsx)(_index.Button, (0, _extends2["default"])({}, args, {
65
69
  variant: "primary"
66
- }, "Button Text");
70
+ }), "Button Text");
67
71
  };
68
72
  exports.Primary = Primary;
69
73
  Primary.parameters = {
@@ -72,10 +76,10 @@ Primary.parameters = {
72
76
  url: _figmaLinks.FIGMA_LINKS.button.primary
73
77
  }
74
78
  };
75
- var Critical = function Critical() {
76
- return (0, _react2.jsx)(_index.Button, {
79
+ var Critical = function Critical(args) {
80
+ return (0, _react2.jsx)(_index.Button, (0, _extends2["default"])({}, args, {
77
81
  variant: "critical"
78
- }, "Button Text");
82
+ }), "Button Text");
79
83
  };
80
84
  exports.Critical = Critical;
81
85
  Critical.parameters = {
@@ -84,16 +88,16 @@ Critical.parameters = {
84
88
  url: _figmaLinks.FIGMA_LINKS.button.critical
85
89
  }
86
90
  };
87
- var InlineButton = function InlineButton() {
88
- return (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Button, {
91
+ var InlineButton = function InlineButton(args) {
92
+ return (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Button, (0, _extends2["default"])({}, args, {
89
93
  mb: "sm",
90
94
  mr: "auto",
91
95
  variant: "inline"
92
- }, "Button Text"), (0, _react2.jsx)(_index.Button, {
96
+ }), "Button Text"), (0, _react2.jsx)(_index.Button, (0, _extends2["default"])({}, args, {
93
97
  mb: "sm",
94
98
  mr: "auto",
95
99
  variant: "inlinePrimary"
96
- }, "Button Text"));
100
+ }), "Button Text"));
97
101
  };
98
102
  exports.InlineButton = InlineButton;
99
103
  InlineButton.parameters = {
@@ -102,13 +106,13 @@ InlineButton.parameters = {
102
106
  url: _figmaLinks.FIGMA_LINKS.button.inlineButton
103
107
  }
104
108
  };
105
- var TextIconButton = function TextIconButton() {
109
+ var TextIconButton = function TextIconButton(args) {
106
110
  return (0, _react2.jsx)(_index.Box, {
107
111
  width: 20
108
- }, (0, _react2.jsx)(_index.Button, {
112
+ }, (0, _react2.jsx)(_index.Button, (0, _extends2["default"])({}, args, {
109
113
  mb: "sm",
110
114
  variant: "withIcon"
111
- }, (0, _react2.jsx)(_index.Icon, {
115
+ }), (0, _react2.jsx)(_index.Icon, {
112
116
  icon: _PlusIcon["default"],
113
117
  mr: "xs",
114
118
  color: "accent.30",
@@ -116,10 +120,10 @@ var TextIconButton = function TextIconButton() {
116
120
  title: {
117
121
  name: 'Add Circle Icon'
118
122
  }
119
- }), "Button Text"), (0, _react2.jsx)(_index.Button, {
123
+ }), "Button Text"), (0, _react2.jsx)(_index.Button, (0, _extends2["default"])({}, args, {
120
124
  mb: "sm",
121
125
  variant: "primaryWithIcon"
122
- }, (0, _react2.jsx)(_index.Icon, {
126
+ }), (0, _react2.jsx)(_index.Icon, {
123
127
  mr: "xs",
124
128
  icon: _PlusIcon["default"],
125
129
  color: "white",
@@ -127,11 +131,11 @@ var TextIconButton = function TextIconButton() {
127
131
  title: {
128
132
  name: 'Add Circle Icon'
129
133
  }
130
- }), "Button Text"), (0, _react2.jsx)(_index.Button, {
134
+ }), "Button Text"), (0, _react2.jsx)(_index.Button, (0, _extends2["default"])({}, args, {
131
135
  mb: "sm",
132
136
  mr: "auto",
133
137
  variant: "inlineWithIcon"
134
- }, (0, _react2.jsx)(_index.Icon, {
138
+ }), (0, _react2.jsx)(_index.Icon, {
135
139
  icon: _PlusIcon["default"],
136
140
  mr: "xs",
137
141
  color: "accent.30",
@@ -139,11 +143,11 @@ var TextIconButton = function TextIconButton() {
139
143
  title: {
140
144
  name: 'Add Circle Icon'
141
145
  }
142
- }), "Button Text"), (0, _react2.jsx)(_index.Button, {
146
+ }), "Button Text"), (0, _react2.jsx)(_index.Button, (0, _extends2["default"])({}, args, {
143
147
  mb: "sm",
144
148
  mr: "auto",
145
149
  variant: "inlinePrimaryWithIcon"
146
- }, (0, _react2.jsx)(_index.Icon, {
150
+ }), (0, _react2.jsx)(_index.Icon, {
147
151
  icon: _PlusIcon["default"],
148
152
  mr: "xs",
149
153
  color: "accent.30",
@@ -160,10 +164,10 @@ TextIconButton.parameters = {
160
164
  url: _figmaLinks.FIGMA_LINKS.button.textIconButton
161
165
  }
162
166
  };
163
- var Disabled = function Disabled() {
164
- return (0, _react2.jsx)(_index.Button, {
167
+ var Disabled = function Disabled(args) {
168
+ return (0, _react2.jsx)(_index.Button, (0, _extends2["default"])({}, args, {
165
169
  isDisabled: true
166
- }, "Button Text");
170
+ }), "Button Text");
167
171
  };
168
172
  exports.Disabled = Disabled;
169
173
  Disabled.parameters = {
@@ -6,6 +6,7 @@ _Object$defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports["default"] = exports.SecondaryRightAligned = exports.Secondary = exports.RightAligned = exports.Default = void 0;
9
+ var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
9
10
  var _react = _interopRequireDefault(require("react"));
10
11
  var _storybookDocsLayout = _interopRequireDefault(require("../../../.storybook/storybookDocsLayout"));
11
12
  var _index = require("../../index");
@@ -17,12 +18,14 @@ var _default = {
17
18
  component: _index.ButtonBar,
18
19
  parameters: {
19
20
  docs: {
20
- source: {
21
- type: 'code'
22
- },
23
21
  page: function page() {
24
22
  return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_ButtonBar["default"], null), (0, _react2.jsx)(_storybookDocsLayout["default"], null));
25
23
  }
24
+ },
25
+ codesandbox: {
26
+ mapComponent: {
27
+ '@pingux/astro': ['Button', 'ButtonBar']
28
+ }
26
29
  }
27
30
  },
28
31
  argTypes: {
@@ -56,10 +59,10 @@ Default.parameters = {
56
59
  url: _figmaLinks.FIGMA_LINKS.buttonBar["default"]
57
60
  }
58
61
  };
59
- var RightAligned = function RightAligned() {
60
- return (0, _react2.jsx)(_index.ButtonBar, {
62
+ var RightAligned = function RightAligned(args) {
63
+ return (0, _react2.jsx)(_index.ButtonBar, (0, _extends2["default"])({}, args, {
61
64
  align: "right"
62
- }, (0, _react2.jsx)(_index.Button, {
65
+ }), (0, _react2.jsx)(_index.Button, {
63
66
  variant: "link",
64
67
  "data-id": "cancel-button",
65
68
  onPress: function onPress() {
@@ -80,8 +83,8 @@ RightAligned.parameters = {
80
83
  url: _figmaLinks.FIGMA_LINKS.buttonBar.rightAligned
81
84
  }
82
85
  };
83
- var Secondary = function Secondary() {
84
- return (0, _react2.jsx)(_index.ButtonBar, null, (0, _react2.jsx)(_index.Button, {
86
+ var Secondary = function Secondary(args) {
87
+ return (0, _react2.jsx)(_index.ButtonBar, args, (0, _react2.jsx)(_index.Button, {
85
88
  variant: "primary",
86
89
  "data-id": "save-button",
87
90
  onPress: function onPress() {
@@ -107,10 +110,10 @@ Secondary.parameters = {
107
110
  url: _figmaLinks.FIGMA_LINKS.buttonBar.secondary
108
111
  }
109
112
  };
110
- var SecondaryRightAligned = function SecondaryRightAligned() {
111
- return (0, _react2.jsx)(_index.ButtonBar, {
113
+ var SecondaryRightAligned = function SecondaryRightAligned(args) {
114
+ return (0, _react2.jsx)(_index.ButtonBar, (0, _extends2["default"])({
112
115
  align: "right"
113
- }, (0, _react2.jsx)(_index.Button, {
116
+ }, args), (0, _react2.jsx)(_index.Button, {
114
117
  variant: "link",
115
118
  "data-id": "cancel-button",
116
119
  onPress: function onPress() {
@@ -13,6 +13,7 @@ _Object$defineProperty(exports, "__esModule", {
13
13
  value: true
14
14
  });
15
15
  exports["default"] = exports.WithLink = exports.WithCustomIcon = exports.Warning = exports.Success = exports.ErrorStatus = exports.Default = void 0;
16
+ var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
16
17
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
17
18
  var _react = _interopRequireDefault(require("react"));
18
19
  var _CheckBoldIcon = _interopRequireDefault(require("@pingux/mdi-react/CheckBoldIcon"));
@@ -33,12 +34,14 @@ var _default = {
33
34
  argTypes: _objectSpread({}, _statusProp.statusArgTypes),
34
35
  parameters: {
35
36
  docs: {
36
- source: {
37
- type: 'code'
38
- },
39
37
  page: function page() {
40
38
  return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_Callout["default"], null), (0, _react2.jsx)(_storybookDocsLayout["default"], null));
41
39
  }
40
+ },
41
+ codesandbox: {
42
+ mapComponent: {
43
+ '@pingux/astro': ['Callout', 'Link', 'Text']
44
+ }
42
45
  }
43
46
  }
44
47
  }; // main
@@ -53,10 +56,10 @@ Default.parameters = {
53
56
  url: _figmaLinks.FIGMA_LINKS.callout["default"]
54
57
  }
55
58
  };
56
- var ErrorStatus = function ErrorStatus() {
57
- return (0, _react2.jsx)(_index.Callout, {
59
+ var ErrorStatus = function ErrorStatus(args) {
60
+ return (0, _react2.jsx)(_index.Callout, (0, _extends2["default"])({
58
61
  status: _statuses["default"].ERROR
59
- }, (0, _react2.jsx)(_index.Text, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque vitae lacinia diam, nec ullamcorper neque. In egestas dui vel dolor tincidunt, sit amet ullamcorper leo consequat. Etiam at urna erat."));
62
+ }, args), (0, _react2.jsx)(_index.Text, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque vitae lacinia diam, nec ullamcorper neque. In egestas dui vel dolor tincidunt, sit amet ullamcorper leo consequat. Etiam at urna erat."));
60
63
  };
61
64
  exports.ErrorStatus = ErrorStatus;
62
65
  ErrorStatus.parameters = {
@@ -68,10 +71,10 @@ ErrorStatus.parameters = {
68
71
 
69
72
  // Avoiding using Error as the function name due to it being a JS built-in method
70
73
  ErrorStatus.storyName = 'Error';
71
- var Success = function Success() {
72
- return (0, _react2.jsx)(_index.Callout, {
74
+ var Success = function Success(args) {
75
+ return (0, _react2.jsx)(_index.Callout, (0, _extends2["default"])({
73
76
  status: _statuses["default"].SUCCESS
74
- }, (0, _react2.jsx)(_index.Text, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque vitae lacinia diam, nec ullamcorper neque. In egestas dui vel dolor tincidunt, sit amet ullamcorper leo consequat."));
77
+ }, args), (0, _react2.jsx)(_index.Text, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque vitae lacinia diam, nec ullamcorper neque. In egestas dui vel dolor tincidunt, sit amet ullamcorper leo consequat."));
75
78
  };
76
79
  exports.Success = Success;
77
80
  Success.parameters = {
@@ -95,10 +98,10 @@ WithLink.parameters = {
95
98
  url: _figmaLinks.FIGMA_LINKS.callout.withLink
96
99
  }
97
100
  };
98
- var Warning = function Warning() {
99
- return (0, _react2.jsx)(_index.Callout, {
101
+ var Warning = function Warning(args) {
102
+ return (0, _react2.jsx)(_index.Callout, (0, _extends2["default"])({
100
103
  status: _statuses["default"].WARNING
101
- }, (0, _react2.jsx)(_index.Text, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque vitae lacinia diam, nec ullamcorper neque. In egestas dui vel dolor tincidunt, sit amet ullamcorper leo consequat."));
104
+ }, args), (0, _react2.jsx)(_index.Text, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque vitae lacinia diam, nec ullamcorper neque. In egestas dui vel dolor tincidunt, sit amet ullamcorper leo consequat."));
102
105
  };
103
106
  exports.Warning = Warning;
104
107
  Warning.parameters = {
@@ -24,7 +24,7 @@ export declare const CardWidth: {
24
24
  };
25
25
  export declare const CardRow: StoryFn<CardProps>;
26
26
  export declare const InteractiveCard: {
27
- (): React.JSX.Element;
27
+ (args: any): React.JSX.Element;
28
28
  parameters: {
29
29
  design: {
30
30
  type: string;
@@ -32,5 +32,5 @@ export declare const InteractiveCard: {
32
32
  };
33
33
  };
34
34
  };
35
- export declare const WithInteractiveContent: () => React.JSX.Element;
36
- export declare const ActiveCard: () => React.JSX.Element;
35
+ export declare const WithInteractiveContent: (args: any) => React.JSX.Element;
36
+ export declare const ActiveCard: (args: any) => React.JSX.Element;
@@ -35,6 +35,11 @@ var _default = {
35
35
  page: function page() {
36
36
  return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_Card["default"], null), (0, _react2.jsx)(_storybookDocsLayout["default"], null));
37
37
  }
38
+ },
39
+ codesandbox: {
40
+ mapComponent: {
41
+ '@pingux/astro': ['Box', 'Button', 'Card', 'Text', 'TextField']
42
+ }
38
43
  }
39
44
  },
40
45
  argTypes: _objectSpread({}, _cardAttributes.cardArgTypes),
@@ -47,6 +52,12 @@ var Default = function Default(args) {
47
52
  return (0, _react2.jsx)(_index.Card, args);
48
53
  };
49
54
  exports.Default = Default;
55
+ Default.parameters = {
56
+ design: {
57
+ type: 'figma',
58
+ url: _figmaLinks.FIGMA_LINKS.card["default"]
59
+ }
60
+ };
50
61
  var HeaderAndFooter = function HeaderAndFooter(args) {
51
62
  var textStyling = {
52
63
  fontSize: 'md',
@@ -100,12 +111,6 @@ CardWidth.parameters = {
100
111
  url: _figmaLinks.FIGMA_LINKS.card.cardWidth
101
112
  }
102
113
  };
103
- Default.parameters = {
104
- design: {
105
- type: 'figma',
106
- url: _figmaLinks.FIGMA_LINKS.card["default"]
107
- }
108
- };
109
114
  var CardRow = function CardRow(args) {
110
115
  var sx = {
111
116
  li: {
@@ -146,7 +151,7 @@ CardRow.parameters = {
146
151
  url: _figmaLinks.FIGMA_LINKS.card.cardRow
147
152
  }
148
153
  };
149
- var InteractiveCard = function InteractiveCard() {
154
+ var InteractiveCard = function InteractiveCard(args) {
150
155
  var sx = {
151
156
  alignContent: 'center',
152
157
  height: '221px',
@@ -154,7 +159,7 @@ var InteractiveCard = function InteractiveCard() {
154
159
  textAlign: 'center',
155
160
  maxWidth: '233px'
156
161
  };
157
- return (0, _react2.jsx)(_index.Card, {
162
+ return (0, _react2.jsx)(_index.Card, (0, _extends2["default"])({}, args, {
158
163
  onPress: function onPress() {
159
164
  return console.log('card pressed');
160
165
  },
@@ -164,7 +169,7 @@ var InteractiveCard = function InteractiveCard() {
164
169
  tabIndex: "0",
165
170
  variant: "cards.interactive",
166
171
  sx: sx
167
- }, "Interactive Card");
172
+ }), "Interactive Card");
168
173
  };
169
174
  exports.InteractiveCard = InteractiveCard;
170
175
  InteractiveCard.parameters = {
@@ -173,17 +178,17 @@ InteractiveCard.parameters = {
173
178
  url: _figmaLinks.FIGMA_LINKS.card.interactiveCard
174
179
  }
175
180
  };
176
- var WithInteractiveContent = function WithInteractiveContent() {
177
- return (0, _react2.jsx)(_index.Card, {
181
+ var WithInteractiveContent = function WithInteractiveContent(args) {
182
+ return (0, _react2.jsx)(_index.Card, (0, _extends2["default"])({
178
183
  isInteractiveWithin: true
179
- }, (0, _react2.jsx)(_index.Text, null, "Lorem ipsum dolor sit amet consectetur adipisicing elit. Fuga sed ratione, recusandae ipsam explicabo, quasi vel maxime sint harum qui rerum perferendis. Voluptatem nisi eaque, distinctio accusamus nobis voluptas nemo."), (0, _react2.jsx)(_index.TextField, {
184
+ }, args), (0, _react2.jsx)(_index.Text, null, "Lorem ipsum dolor sit amet consectetur adipisicing elit. Fuga sed ratione, recusandae ipsam explicabo, quasi vel maxime sint harum qui rerum perferendis. Voluptatem nisi eaque, distinctio accusamus nobis voluptas nemo."), (0, _react2.jsx)(_index.TextField, {
180
185
  label: "Interactive TextField",
181
186
  mt: "md",
182
187
  width: "300px"
183
188
  }));
184
189
  };
185
190
  exports.WithInteractiveContent = WithInteractiveContent;
186
- var ActiveCard = function ActiveCard() {
191
+ var ActiveCard = function ActiveCard(args) {
187
192
  var sx = {
188
193
  alignContent: 'center',
189
194
  height: '221px',
@@ -195,7 +200,7 @@ var ActiveCard = function ActiveCard() {
195
200
  _React$useState2 = (0, _slicedToArray2["default"])(_React$useState, 2),
196
201
  isSelected = _React$useState2[0],
197
202
  setIsSelected = _React$useState2[1];
198
- return (0, _react2.jsx)(_index.Card, {
203
+ return (0, _react2.jsx)(_index.Card, (0, _extends2["default"])({}, args, {
199
204
  tabIndex: "0",
200
205
  variant: "cards.activeCard",
201
206
  sx: sx,
@@ -203,6 +208,6 @@ var ActiveCard = function ActiveCard() {
203
208
  onPress: function onPress() {
204
209
  return setIsSelected(!isSelected);
205
210
  }
206
- }, "Active Card");
211
+ }), "Active Card");
207
212
  };
208
213
  exports.ActiveCard = ActiveCard;