@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
@@ -6,8 +6,8 @@ import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/inst
6
6
  import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
7
7
  import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
8
8
  import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
9
- import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
10
9
  import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
10
+ import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
11
11
  import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
12
12
  var _excluded = ["isConfigured"];
13
13
  function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
@@ -33,12 +33,16 @@ export default {
33
33
  },
34
34
  parameters: {
35
35
  docs: {
36
- source: {
37
- type: 'code'
38
- },
39
36
  page: function page() {
40
37
  return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(ButtonReadme, null), ___EmotionJSX(DocsLayout, null));
41
38
  }
39
+ },
40
+ codesandbox: {
41
+ mapComponent: {
42
+ '@pingux/astro': ['Box', 'Button', 'Icon', 'Text'],
43
+ '@pingux/mdi-react/PlusIcon': 'PlusIcon',
44
+ '@pingux/mdi-react/CreateIcon': 'CreateIcon'
45
+ }
42
46
  }
43
47
  }
44
48
  };
@@ -51,10 +55,10 @@ Default.parameters = {
51
55
  url: FIGMA_LINKS.button["default"]
52
56
  }
53
57
  };
54
- export var Primary = function Primary() {
55
- return ___EmotionJSX(Button, {
58
+ export var Primary = function Primary(args) {
59
+ return ___EmotionJSX(Button, _extends({}, args, {
56
60
  variant: "primary"
57
- }, "Button Text");
61
+ }), "Button Text");
58
62
  };
59
63
  Primary.parameters = {
60
64
  design: {
@@ -62,10 +66,10 @@ Primary.parameters = {
62
66
  url: FIGMA_LINKS.button.primary
63
67
  }
64
68
  };
65
- export var Critical = function Critical() {
66
- return ___EmotionJSX(Button, {
69
+ export var Critical = function Critical(args) {
70
+ return ___EmotionJSX(Button, _extends({}, args, {
67
71
  variant: "critical"
68
- }, "Button Text");
72
+ }), "Button Text");
69
73
  };
70
74
  Critical.parameters = {
71
75
  design: {
@@ -73,16 +77,16 @@ Critical.parameters = {
73
77
  url: FIGMA_LINKS.button.critical
74
78
  }
75
79
  };
76
- export var InlineButton = function InlineButton() {
77
- return ___EmotionJSX(Box, null, ___EmotionJSX(Button, {
80
+ export var InlineButton = function InlineButton(args) {
81
+ return ___EmotionJSX(Box, null, ___EmotionJSX(Button, _extends({}, args, {
78
82
  mb: "sm",
79
83
  mr: "auto",
80
84
  variant: "inline"
81
- }, "Button Text"), ___EmotionJSX(Button, {
85
+ }), "Button Text"), ___EmotionJSX(Button, _extends({}, args, {
82
86
  mb: "sm",
83
87
  mr: "auto",
84
88
  variant: "inlinePrimary"
85
- }, "Button Text"));
89
+ }), "Button Text"));
86
90
  };
87
91
  InlineButton.parameters = {
88
92
  design: {
@@ -90,13 +94,13 @@ InlineButton.parameters = {
90
94
  url: FIGMA_LINKS.button.inlineButton
91
95
  }
92
96
  };
93
- export var TextIconButton = function TextIconButton() {
97
+ export var TextIconButton = function TextIconButton(args) {
94
98
  return ___EmotionJSX(Box, {
95
99
  width: 20
96
- }, ___EmotionJSX(Button, {
100
+ }, ___EmotionJSX(Button, _extends({}, args, {
97
101
  mb: "sm",
98
102
  variant: "withIcon"
99
- }, ___EmotionJSX(Icon, {
103
+ }), ___EmotionJSX(Icon, {
100
104
  icon: PlusIcon,
101
105
  mr: "xs",
102
106
  color: "accent.30",
@@ -104,10 +108,10 @@ export var TextIconButton = function TextIconButton() {
104
108
  title: {
105
109
  name: 'Add Circle Icon'
106
110
  }
107
- }), "Button Text"), ___EmotionJSX(Button, {
111
+ }), "Button Text"), ___EmotionJSX(Button, _extends({}, args, {
108
112
  mb: "sm",
109
113
  variant: "primaryWithIcon"
110
- }, ___EmotionJSX(Icon, {
114
+ }), ___EmotionJSX(Icon, {
111
115
  mr: "xs",
112
116
  icon: PlusIcon,
113
117
  color: "white",
@@ -115,11 +119,11 @@ export var TextIconButton = function TextIconButton() {
115
119
  title: {
116
120
  name: 'Add Circle Icon'
117
121
  }
118
- }), "Button Text"), ___EmotionJSX(Button, {
122
+ }), "Button Text"), ___EmotionJSX(Button, _extends({}, args, {
119
123
  mb: "sm",
120
124
  mr: "auto",
121
125
  variant: "inlineWithIcon"
122
- }, ___EmotionJSX(Icon, {
126
+ }), ___EmotionJSX(Icon, {
123
127
  icon: PlusIcon,
124
128
  mr: "xs",
125
129
  color: "accent.30",
@@ -127,11 +131,11 @@ export var TextIconButton = function TextIconButton() {
127
131
  title: {
128
132
  name: 'Add Circle Icon'
129
133
  }
130
- }), "Button Text"), ___EmotionJSX(Button, {
134
+ }), "Button Text"), ___EmotionJSX(Button, _extends({}, args, {
131
135
  mb: "sm",
132
136
  mr: "auto",
133
137
  variant: "inlinePrimaryWithIcon"
134
- }, ___EmotionJSX(Icon, {
138
+ }), ___EmotionJSX(Icon, {
135
139
  icon: PlusIcon,
136
140
  mr: "xs",
137
141
  color: "accent.30",
@@ -147,10 +151,10 @@ TextIconButton.parameters = {
147
151
  url: FIGMA_LINKS.button.textIconButton
148
152
  }
149
153
  };
150
- export var Disabled = function Disabled() {
151
- return ___EmotionJSX(Button, {
154
+ export var Disabled = function Disabled(args) {
155
+ return ___EmotionJSX(Button, _extends({}, args, {
152
156
  isDisabled: true
153
- }, "Button Text");
157
+ }), "Button Text");
154
158
  };
155
159
  Disabled.parameters = {
156
160
  design: {
@@ -1,3 +1,4 @@
1
+ import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
1
2
  import React from 'react';
2
3
  import DocsLayout from '../../../.storybook/storybookDocsLayout';
3
4
  import { Button, ButtonBar } from '../../index';
@@ -9,12 +10,14 @@ export default {
9
10
  component: ButtonBar,
10
11
  parameters: {
11
12
  docs: {
12
- source: {
13
- type: 'code'
14
- },
15
13
  page: function page() {
16
14
  return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(ButtonBarReadme, null), ___EmotionJSX(DocsLayout, null));
17
15
  }
16
+ },
17
+ codesandbox: {
18
+ mapComponent: {
19
+ '@pingux/astro': ['Button', 'ButtonBar']
20
+ }
18
21
  }
19
22
  },
20
23
  argTypes: {
@@ -46,10 +49,10 @@ Default.parameters = {
46
49
  url: FIGMA_LINKS.buttonBar["default"]
47
50
  }
48
51
  };
49
- export var RightAligned = function RightAligned() {
50
- return ___EmotionJSX(ButtonBar, {
52
+ export var RightAligned = function RightAligned(args) {
53
+ return ___EmotionJSX(ButtonBar, _extends({}, args, {
51
54
  align: "right"
52
- }, ___EmotionJSX(Button, {
55
+ }), ___EmotionJSX(Button, {
53
56
  variant: "link",
54
57
  "data-id": "cancel-button",
55
58
  onPress: function onPress() {
@@ -69,8 +72,8 @@ RightAligned.parameters = {
69
72
  url: FIGMA_LINKS.buttonBar.rightAligned
70
73
  }
71
74
  };
72
- export var Secondary = function Secondary() {
73
- return ___EmotionJSX(ButtonBar, null, ___EmotionJSX(Button, {
75
+ export var Secondary = function Secondary(args) {
76
+ return ___EmotionJSX(ButtonBar, args, ___EmotionJSX(Button, {
74
77
  variant: "primary",
75
78
  "data-id": "save-button",
76
79
  onPress: function onPress() {
@@ -95,10 +98,10 @@ Secondary.parameters = {
95
98
  url: FIGMA_LINKS.buttonBar.secondary
96
99
  }
97
100
  };
98
- export var SecondaryRightAligned = function SecondaryRightAligned() {
99
- return ___EmotionJSX(ButtonBar, {
101
+ export var SecondaryRightAligned = function SecondaryRightAligned(args) {
102
+ return ___EmotionJSX(ButtonBar, _extends({
100
103
  align: "right"
101
- }, ___EmotionJSX(Button, {
104
+ }, args), ___EmotionJSX(Button, {
102
105
  variant: "link",
103
106
  "data-id": "cancel-button",
104
107
  onPress: function onPress() {
@@ -6,6 +6,7 @@ import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/inst
6
6
  import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
7
7
  import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
8
8
  import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
9
+ import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
9
10
  import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
10
11
  function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11
12
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
@@ -26,12 +27,14 @@ export default {
26
27
  argTypes: _objectSpread({}, statusArgTypes),
27
28
  parameters: {
28
29
  docs: {
29
- source: {
30
- type: 'code'
31
- },
32
30
  page: function page() {
33
31
  return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(CalloutReadme, null), ___EmotionJSX(DocsLayout, null));
34
32
  }
33
+ },
34
+ codesandbox: {
35
+ mapComponent: {
36
+ '@pingux/astro': ['Callout', 'Link', 'Text']
37
+ }
35
38
  }
36
39
  }
37
40
  };
@@ -46,10 +49,10 @@ Default.parameters = {
46
49
  url: FIGMA_LINKS.callout["default"]
47
50
  }
48
51
  };
49
- export var ErrorStatus = function ErrorStatus() {
50
- return ___EmotionJSX(Callout, {
52
+ export var ErrorStatus = function ErrorStatus(args) {
53
+ return ___EmotionJSX(Callout, _extends({
51
54
  status: statuses.ERROR
52
- }, ___EmotionJSX(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."));
55
+ }, args), ___EmotionJSX(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."));
53
56
  };
54
57
  ErrorStatus.parameters = {
55
58
  design: {
@@ -60,10 +63,10 @@ ErrorStatus.parameters = {
60
63
 
61
64
  // Avoiding using Error as the function name due to it being a JS built-in method
62
65
  ErrorStatus.storyName = 'Error';
63
- export var Success = function Success() {
64
- return ___EmotionJSX(Callout, {
66
+ export var Success = function Success(args) {
67
+ return ___EmotionJSX(Callout, _extends({
65
68
  status: statuses.SUCCESS
66
- }, ___EmotionJSX(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."));
69
+ }, args), ___EmotionJSX(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."));
67
70
  };
68
71
  Success.parameters = {
69
72
  design: {
@@ -85,10 +88,10 @@ WithLink.parameters = {
85
88
  url: FIGMA_LINKS.callout.withLink
86
89
  }
87
90
  };
88
- export var Warning = function Warning() {
89
- return ___EmotionJSX(Callout, {
91
+ export var Warning = function Warning(args) {
92
+ return ___EmotionJSX(Callout, _extends({
90
93
  status: statuses.WARNING
91
- }, ___EmotionJSX(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."));
94
+ }, args), ___EmotionJSX(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."));
92
95
  };
93
96
  Warning.parameters = {
94
97
  design: {
@@ -28,6 +28,11 @@ export default {
28
28
  page: function page() {
29
29
  return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(CardReadme, null), ___EmotionJSX(DocsLayout, null));
30
30
  }
31
+ },
32
+ codesandbox: {
33
+ mapComponent: {
34
+ '@pingux/astro': ['Box', 'Button', 'Card', 'Text', 'TextField']
35
+ }
31
36
  }
32
37
  },
33
38
  argTypes: _objectSpread({}, cardArgTypes),
@@ -38,6 +43,12 @@ export default {
38
43
  export var Default = function Default(args) {
39
44
  return ___EmotionJSX(Card, args);
40
45
  };
46
+ Default.parameters = {
47
+ design: {
48
+ type: 'figma',
49
+ url: FIGMA_LINKS.card["default"]
50
+ }
51
+ };
41
52
  export var HeaderAndFooter = function HeaderAndFooter(args) {
42
53
  var textStyling = {
43
54
  fontSize: 'md',
@@ -89,12 +100,6 @@ CardWidth.parameters = {
89
100
  url: FIGMA_LINKS.card.cardWidth
90
101
  }
91
102
  };
92
- Default.parameters = {
93
- design: {
94
- type: 'figma',
95
- url: FIGMA_LINKS.card["default"]
96
- }
97
- };
98
103
  export var CardRow = function CardRow(args) {
99
104
  var sx = {
100
105
  li: {
@@ -134,7 +139,7 @@ CardRow.parameters = {
134
139
  url: FIGMA_LINKS.card.cardRow
135
140
  }
136
141
  };
137
- export var InteractiveCard = function InteractiveCard() {
142
+ export var InteractiveCard = function InteractiveCard(args) {
138
143
  var sx = {
139
144
  alignContent: 'center',
140
145
  height: '221px',
@@ -142,7 +147,7 @@ export var InteractiveCard = function InteractiveCard() {
142
147
  textAlign: 'center',
143
148
  maxWidth: '233px'
144
149
  };
145
- return ___EmotionJSX(Card, {
150
+ return ___EmotionJSX(Card, _extends({}, args, {
146
151
  onPress: function onPress() {
147
152
  return console.log('card pressed');
148
153
  },
@@ -152,7 +157,7 @@ export var InteractiveCard = function InteractiveCard() {
152
157
  tabIndex: "0",
153
158
  variant: "cards.interactive",
154
159
  sx: sx
155
- }, "Interactive Card");
160
+ }), "Interactive Card");
156
161
  };
157
162
  InteractiveCard.parameters = {
158
163
  design: {
@@ -160,16 +165,16 @@ InteractiveCard.parameters = {
160
165
  url: FIGMA_LINKS.card.interactiveCard
161
166
  }
162
167
  };
163
- export var WithInteractiveContent = function WithInteractiveContent() {
164
- return ___EmotionJSX(Card, {
168
+ export var WithInteractiveContent = function WithInteractiveContent(args) {
169
+ return ___EmotionJSX(Card, _extends({
165
170
  isInteractiveWithin: true
166
- }, ___EmotionJSX(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."), ___EmotionJSX(TextField, {
171
+ }, args), ___EmotionJSX(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."), ___EmotionJSX(TextField, {
167
172
  label: "Interactive TextField",
168
173
  mt: "md",
169
174
  width: "300px"
170
175
  }));
171
176
  };
172
- export var ActiveCard = function ActiveCard() {
177
+ export var ActiveCard = function ActiveCard(args) {
173
178
  var sx = {
174
179
  alignContent: 'center',
175
180
  height: '221px',
@@ -181,7 +186,7 @@ export var ActiveCard = function ActiveCard() {
181
186
  _React$useState2 = _slicedToArray(_React$useState, 2),
182
187
  isSelected = _React$useState2[0],
183
188
  setIsSelected = _React$useState2[1];
184
- return ___EmotionJSX(Card, {
189
+ return ___EmotionJSX(Card, _extends({}, args, {
185
190
  tabIndex: "0",
186
191
  variant: "cards.activeCard",
187
192
  sx: sx,
@@ -189,5 +194,5 @@ export var ActiveCard = function ActiveCard() {
189
194
  onPress: function onPress() {
190
195
  return setIsSelected(!isSelected);
191
196
  }
192
- }, "Active Card");
197
+ }), "Active Card");
193
198
  };
@@ -7,6 +7,7 @@ import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-st
7
7
  import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
8
8
  import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
9
9
  import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
10
+ import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
10
11
  import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
11
12
  import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
12
13
  import _everyInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/every";
@@ -30,9 +31,11 @@ export default {
30
31
  docs: {
31
32
  page: function page() {
32
33
  return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(CheckboxFieldReadme, null), ___EmotionJSX(DocsLayout, null));
33
- },
34
- source: {
35
- type: 'code'
34
+ }
35
+ },
36
+ codesandbox: {
37
+ mapComponent: {
38
+ '@pingux/astro': ['Badge', 'Box', 'CheckboxField', 'IconButtonToggle', 'Link', 'SwitchField', 'Text']
36
39
  }
37
40
  }
38
41
  },
@@ -74,11 +77,11 @@ export default {
74
77
  export var Default = function Default(args) {
75
78
  return ___EmotionJSX(CheckboxField, args);
76
79
  };
77
- export var DefaultSelected = function DefaultSelected() {
78
- return ___EmotionJSX(CheckboxField, {
80
+ export var DefaultSelected = function DefaultSelected(args) {
81
+ return ___EmotionJSX(CheckboxField, _extends({}, args, {
79
82
  isDefaultSelected: true,
80
83
  label: "Click me"
81
- });
84
+ }));
82
85
  };
83
86
  export var Controlled = function Controlled() {
84
87
  var _React$useState = React.useState(false),
@@ -93,21 +96,24 @@ export var Controlled = function Controlled() {
93
96
  label: "Click me"
94
97
  });
95
98
  };
96
- export var Required = function Required() {
97
- return ___EmotionJSX(CheckboxField, {
99
+ Controlled.parameters = {
100
+ codesandbox: false
101
+ };
102
+ export var Required = function Required(args) {
103
+ return ___EmotionJSX(CheckboxField, _extends({}, args, {
98
104
  isRequired: true,
99
105
  label: ___EmotionJSX(Text, null, "I agree to the", ' ', ___EmotionJSX(Link, {
100
106
  href: "https://pingidentity.com",
101
107
  target: "_blank"
102
108
  }, "Terms and Conditions"))
103
- });
109
+ }));
104
110
  };
105
- export var HelperText = function HelperText() {
106
- return ___EmotionJSX(CheckboxField, {
111
+ export var HelperText = function HelperText(args) {
112
+ return ___EmotionJSX(CheckboxField, _extends({}, args, {
107
113
  status: statuses.ERROR,
108
114
  helperText: "Here is some helpful text...",
109
115
  label: "Click me"
110
- });
116
+ }));
111
117
  };
112
118
  export var ExpandableAndToggleableIndeterminate = function ExpandableAndToggleableIndeterminate() {
113
119
  var _useState = useState(false),
@@ -234,6 +240,9 @@ export var ExpandableAndToggleableIndeterminate = function ExpandableAndToggleab
234
240
  }));
235
241
  })));
236
242
  };
243
+ ExpandableAndToggleableIndeterminate.parameters = {
244
+ codesandbox: false
245
+ };
237
246
  export var Indeterminate = function Indeterminate() {
238
247
  // Whether the parent checkbox is indeterminate (default is true for our example)
239
248
  var _useState11 = useState(true),
@@ -320,19 +329,20 @@ Indeterminate.parameters = {
320
329
  description: {
321
330
  story: 'When a `CheckboxField` is indeterminate, it\'s necessary to control the state in order to determine how it should function when pressed. Here is an example of how to do that.'
322
331
  }
323
- }
332
+ },
333
+ codesandbox: false
324
334
  };
325
- export var Disabled = function Disabled() {
326
- return ___EmotionJSX(Box, null, ___EmotionJSX(CheckboxField, {
335
+ export var Disabled = function Disabled(args) {
336
+ return ___EmotionJSX(Box, null, ___EmotionJSX(CheckboxField, _extends({}, args, {
327
337
  isDisabled: true,
328
338
  label: "Disabled"
329
- }), ___EmotionJSX(CheckboxField, {
339
+ })), ___EmotionJSX(CheckboxField, _extends({}, args, {
330
340
  isDisabled: true,
331
341
  isSelected: true,
332
342
  label: "Disabled"
333
- }), ___EmotionJSX(CheckboxField, {
343
+ })), ___EmotionJSX(CheckboxField, _extends({}, args, {
334
344
  isDisabled: true,
335
345
  isIndeterminate: true,
336
346
  label: "Disabled"
337
- }));
347
+ })));
338
348
  };
@@ -1,3 +1,4 @@
1
+ import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
1
2
  import React from 'react';
2
3
  import DocsLayout from '../../../.storybook/storybookDocsLayout';
3
4
  import { CodeEditor } from '../../index';
@@ -10,9 +11,6 @@ export default {
10
11
  docs: {
11
12
  page: function page() {
12
13
  return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(CodeEditorReadme, null), ___EmotionJSX(DocsLayout, null));
13
- },
14
- source: {
15
- type: 'code'
16
14
  }
17
15
  },
18
16
  a11y: {
@@ -31,26 +29,26 @@ export default {
31
29
  var jsonCode = "{\n \"name\": \"Luke Skywalker\", \n \"height\": \"172\", \n \"mass\": \"77\", \n \"hair_color\": \"blond\", \n \"skin_color\": \"fair\", \n \"eye_color\": \"blue\", \n \"birth_year\": \"19BBY\", \n \"gender\": \"male\", \n \"homeworld\": \"https://swapi.dev/api/planets/1/\", \n \"films\": [\n \"https://swapi.dev/api/films/1/\", \n \"https://swapi.dev/api/films/2/\", \n \"https://swapi.dev/api/films/3/\", \n \"https://swapi.dev/api/films/6/\"\n ],\n \"starships\": [\n \"https://swapi.dev/api/starships/12/\", \n \"https://swapi.dev/api/starships/22/\"\n ]\n}";
32
30
  var tsCode = "const stringValue: string = 15;\n\nfunction addOne(integer: number) {\n return integer + 1;\n}\n\naddOne('I am a string');\n";
33
31
  var jsCode = "\nfunction factorial(n) {\n if (n === 0 || n === 1) {\n return 1;\n } else {\n return n * factorial(n - 1);\n }\n}\n\nconsole.log(factorial(5));\n\n(a) => {};\n";
34
- export var TypescriptEditor = function TypescriptEditor() {
35
- return ___EmotionJSX(CodeEditor, {
32
+ export var TypescriptEditor = function TypescriptEditor(args) {
33
+ return ___EmotionJSX(CodeEditor, _extends({}, args, {
36
34
  defaultValue: tsCode,
37
35
  language: "typescript",
38
36
  height: "200px"
39
- });
37
+ }));
40
38
  };
41
- export var JavascriptEditor = function JavascriptEditor() {
42
- return ___EmotionJSX(CodeEditor, {
39
+ export var JavascriptEditor = function JavascriptEditor(args) {
40
+ return ___EmotionJSX(CodeEditor, _extends({}, args, {
43
41
  defaultValue: jsCode,
44
42
  language: "javascript",
45
43
  height: "200px"
46
- });
44
+ }));
47
45
  };
48
- export var JsonEditor = function JsonEditor() {
49
- return ___EmotionJSX(CodeEditor, {
46
+ export var JsonEditor = function JsonEditor(args) {
47
+ return ___EmotionJSX(CodeEditor, _extends({}, args, {
50
48
  defaultValue: jsonCode,
51
49
  language: "json",
52
50
  height: "200px"
53
- });
51
+ }));
54
52
  };
55
53
  export var ReadOnly = function ReadOnly() {
56
54
  return ___EmotionJSX(CodeEditor, {
@@ -46,6 +46,11 @@ export default {
46
46
  selector: '.prism-code'
47
47
  }]
48
48
  }
49
+ },
50
+ codesandbox: {
51
+ mapComponent: {
52
+ '@pingux/astro': ['CodeView']
53
+ }
49
54
  }
50
55
  }
51
56
  };
@@ -70,10 +75,10 @@ Default.parameters = {
70
75
  }
71
76
  }
72
77
  };
73
- export var WithLineNumbers = function WithLineNumbers() {
74
- return ___EmotionJSX(CodeView, {
78
+ export var WithLineNumbers = function WithLineNumbers(args) {
79
+ return ___EmotionJSX(CodeView, _extends({}, args, {
75
80
  hasLineNumbers: true
76
- }, code);
81
+ }), code);
77
82
  };
78
83
  WithLineNumbers.parameters = {
79
84
  docs: {
@@ -88,15 +93,15 @@ WithLineNumbers.parameters = {
88
93
  }
89
94
  }
90
95
  };
91
- export var WithCustomSize = function WithCustomSize() {
92
- return ___EmotionJSX(CodeView, {
96
+ export var WithCustomSize = function WithCustomSize(args) {
97
+ return ___EmotionJSX(CodeView, _extends({}, args, {
93
98
  language: "jsx",
94
99
  sx: {
95
100
  width: '100%',
96
101
  height: 300
97
102
  },
98
103
  hasNoCopyButton: true
99
- }, "\nconst BadgeWithIcon = () => (\n <>\n <Badge label=\"Badge with Icon Button\" bg=\"navy\">\n <IconButton aria-label=\"Clear Badge with Icon Button\" variant=\"inverted\">\n <Icon icon={Clear} ml=\"xs\" size=\"14px\" title={{ name: 'Clear Icon' }} />\n </IconButton>\n </Badge>\n\n <div style={{ padding: '5px' }} />\n\n <Badge label=\"Badge with Icon Button\">\n <IconButton aria-label=\"Clear Badge with Icon Button\" variant=\"inverted\">\n <Icon icon={Earth} ml=\"xs\" size=\"14px\" title={{ name: 'Earth Icon' }} />\n </IconButton>\n </Badge>\n\n <div style={{ padding: '5px' }} />\n\n <Badge label=\"Badge with Icon\" bg=\"green\">\n <Icon icon={ContentCopy} ml=\"xs\" size=\"14px\" color=\"white\" title={{ name: 'Copy Icon' }} />\n </Badge>\n </>\n);\n ");
104
+ }), "\nconst BadgeWithIcon = () => (\n <>\n <Badge label=\"Badge with Icon Button\" bg=\"navy\">\n <IconButton aria-label=\"Clear Badge with Icon Button\" variant=\"inverted\">\n <Icon icon={Clear} ml=\"xs\" size=\"14px\" title={{ name: 'Clear Icon' }} />\n </IconButton>\n </Badge>\n\n <div style={{ padding: '5px' }} />\n\n <Badge label=\"Badge with Icon Button\">\n <IconButton aria-label=\"Clear Badge with Icon Button\" variant=\"inverted\">\n <Icon icon={Earth} ml=\"xs\" size=\"14px\" title={{ name: 'Earth Icon' }} />\n </IconButton>\n </Badge>\n\n <div style={{ padding: '5px' }} />\n\n <Badge label=\"Badge with Icon\" bg=\"green\">\n <Icon icon={ContentCopy} ml=\"xs\" size=\"14px\" color=\"white\" title={{ name: 'Copy Icon' }} />\n </Badge>\n </>\n);\n ");
100
105
  };
101
106
  WithCustomSize.parameters = {
102
107
  docs: {
@@ -111,13 +116,13 @@ WithCustomSize.parameters = {
111
116
  }
112
117
  }
113
118
  };
114
- export var WithAdditionalLanguage = function WithAdditionalLanguage() {
119
+ export var WithAdditionalLanguage = function WithAdditionalLanguage(args) {
115
120
  var _context;
116
121
  var cssCode = _trimInstanceProperty(_context = "\n body {\n margin: 0;\n font-family: Roboto, sans-serif;\n }\n \n h1 {\n color: red;\n margin-left: 40px;\n }\n ").call(_context);
117
- return ___EmotionJSX(CodeView, {
122
+ return ___EmotionJSX(CodeView, _extends({}, args, {
118
123
  language: "css",
119
124
  Prism: Prism
120
- }, cssCode);
125
+ }), cssCode);
121
126
  };
122
127
  WithAdditionalLanguage.parameters = {
123
128
  docs: {
@@ -130,7 +135,8 @@ WithAdditionalLanguage.parameters = {
130
135
  enabled: false
131
136
  }]
132
137
  }
133
- }
138
+ },
139
+ codesandbox: false
134
140
  };
135
141
  export var WithChangedCopiedValue = function WithChangedCopiedValue(args) {
136
142
  return ___EmotionJSX(CodeView, _extends({
@@ -147,17 +153,17 @@ WithChangedCopiedValue.parameters = {
147
153
  }
148
154
  }
149
155
  };
150
- export var WithCustomLanguage = function WithCustomLanguage() {
156
+ export var WithCustomLanguage = function WithCustomLanguage(args) {
151
157
  var _context2, _context3;
152
158
  var javaCode = _trimInstanceProperty(_context2 = "\n public class Factorial {\n public static void main(String[] args) {\n int num = 5;\n int factorial = 1;\n for (int i = 1; i <= num; i++) {\n factorial *= i;\n }\n System.out.println(\"Factorial of \" + num + \" is: \" + factorial);\n }\n}\n ").call(_context2);
153
159
  var powershellCode = _trimInstanceProperty(_context3 = "\n Get-Process\n Get-Process -Name \"notepad\"\n Stop-Process -Name \"notepad\"\n Get-Service\n Start-Service -Name \"service_name\"\n Get-Date\n Get-Date -Format \"yyyy-MM-dd HH:mm:ss\"\n Get-WmiObject -Class Win32_OperatingSystem\n $env:COMPUTERNAME\n ").call(_context3);
154
- return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(CodeView, {
160
+ return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(CodeView, _extends({}, args, {
155
161
  language: "java",
156
162
  Prism: Prism
157
- }, javaCode), ___EmotionJSX(CodeView, {
163
+ }), javaCode), ___EmotionJSX(CodeView, _extends({}, args, {
158
164
  language: "powershell",
159
165
  Prism: Prism
160
- }, powershellCode));
166
+ }), powershellCode));
161
167
  };
162
168
  WithCustomLanguage.parameters = {
163
169
  a11y: {
@@ -167,5 +173,6 @@ WithCustomLanguage.parameters = {
167
173
  enabled: false
168
174
  }]
169
175
  }
170
- }
176
+ },
177
+ codesandbox: false
171
178
  };
@@ -13,9 +13,11 @@ export default {
13
13
  docs: {
14
14
  page: function page() {
15
15
  return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(CollapsiblePanelReadme, null), ___EmotionJSX(DocsLayout, null));
16
- },
17
- source: {
18
- type: 'code'
16
+ }
17
+ },
18
+ codesandbox: {
19
+ mapComponent: {
20
+ '@pingux/astro': ['CollapsiblePanel']
19
21
  }
20
22
  }
21
23
  },
@@ -27,9 +27,11 @@ export default {
27
27
  docs: {
28
28
  page: function page() {
29
29
  return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(ColorFieldReadme, null), ___EmotionJSX(DocsLayout, null));
30
- },
31
- source: {
32
- type: 'code'
30
+ }
31
+ },
32
+ codesandbox: {
33
+ mapComponent: {
34
+ '@pingux/astro': ['ColorField', 'OverlayProvider']
33
35
  }
34
36
  }
35
37
  },