@webiny/admin-ui 6.4.0-beta.2 → 6.4.0-beta.4

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 (261) hide show
  1. package/Accordion/Accordion.stories.d.ts +1 -1
  2. package/Accordion/Accordion.stories.js.map +1 -1
  3. package/AdminUiProvider/AdminUiProvider.d.ts +3 -0
  4. package/AdminUiProvider/AdminUiProvider.js +15 -5
  5. package/AdminUiProvider/AdminUiProvider.js.map +1 -1
  6. package/AdminUiProvider/FileUrlFormatter.d.ts +7 -0
  7. package/AdminUiProvider/FileUrlFormatter.js +0 -0
  8. package/AdminUiProvider/index.d.ts +1 -0
  9. package/AdminUiProvider/index.js +1 -0
  10. package/Alert/Alert.stories.d.ts +1 -1
  11. package/Alert/Alert.stories.js.map +1 -1
  12. package/AutoComplete/AutoComplete.stories.d.ts +1 -1
  13. package/AutoComplete/AutoComplete.stories.js.map +1 -1
  14. package/AutoComplete/primitives/AutoCompletePrimitive.stories.d.ts +1 -1
  15. package/AutoComplete/primitives/AutoCompletePrimitive.stories.js.map +1 -1
  16. package/Avatar/Avatar.stories.d.ts +1 -1
  17. package/Avatar/Avatar.stories.js.map +1 -1
  18. package/Button/Button.stories.d.ts +1 -1
  19. package/Button/Button.stories.js.map +1 -1
  20. package/Button/IconButton.stories.d.ts +1 -1
  21. package/Button/IconButton.stories.js.map +1 -1
  22. package/Card/Card.stories.d.ts +1 -1
  23. package/Card/Card.stories.js.map +1 -1
  24. package/Checkbox/Checkbox.stories.d.ts +1 -1
  25. package/Checkbox/Checkbox.stories.js.map +1 -1
  26. package/Checkbox/primitives/CheckboxPrimitive.stories.d.ts +1 -1
  27. package/Checkbox/primitives/CheckboxPrimitive.stories.js.map +1 -1
  28. package/CheckboxGroup/CheckboxGroup.stories.d.ts +1 -1
  29. package/CheckboxGroup/CheckboxGroup.stories.js.map +1 -1
  30. package/CheckboxGroup/primitives/CheckboxGroupPrimitive.stories.d.ts +1 -1
  31. package/CheckboxGroup/primitives/CheckboxGroupPrimitive.stories.js.map +1 -1
  32. package/CodeEditor/CodeEditor.stories.d.ts +1 -1
  33. package/CodeEditor/CodeEditor.stories.js.map +1 -1
  34. package/CodeEditor/CodeEditorPrimitive.stories.d.ts +1 -1
  35. package/CodeEditor/CodeEditorPrimitive.stories.js.map +1 -1
  36. package/ColorPicker/ColorPicker.stories.d.ts +1 -1
  37. package/ColorPicker/ColorPicker.stories.js.map +1 -1
  38. package/ColorPicker/primitives/ColorPickerPrimitive.stories.d.ts +1 -1
  39. package/ColorPicker/primitives/ColorPickerPrimitive.stories.js.map +1 -1
  40. package/DataTable/DataTable.stories.d.ts +1 -1
  41. package/DataTable/DataTable.stories.js.map +1 -1
  42. package/DatePicker/DatePicker.stories.d.ts +1 -1
  43. package/DatePicker/DatePicker.stories.js.map +1 -1
  44. package/DatePicker/primitives/components/DatePickerTrigger.js +1 -1
  45. package/DatePicker/primitives/components/DatePickerTrigger.js.map +1 -1
  46. package/Dialog/Dialog.stories.d.ts +1 -1
  47. package/Dialog/Dialog.stories.js.map +1 -1
  48. package/DragCursor/DragCursor.d.ts +7 -0
  49. package/DragCursor/DragCursor.js +21 -0
  50. package/DragCursor/DragCursor.js.map +1 -0
  51. package/DragCursor/DragCursor.stories.d.ts +10 -0
  52. package/DragCursor/DragCursor.stories.js +97 -0
  53. package/DragCursor/DragCursor.stories.js.map +1 -0
  54. package/DragCursor/index.d.ts +1 -0
  55. package/DragCursor/index.js +1 -0
  56. package/Drawer/Drawer.stories.d.ts +1 -1
  57. package/Drawer/Drawer.stories.js.map +1 -1
  58. package/DropdownMenu/DropdownMenu.stories.d.ts +1 -1
  59. package/DropdownMenu/DropdownMenu.stories.js.map +1 -1
  60. package/FilePicker/FilePicker.stories.d.ts +1 -1
  61. package/FilePicker/FilePicker.stories.js.map +1 -1
  62. package/FilePicker/domains/FileItem.js +3 -2
  63. package/FilePicker/domains/FileItem.js.map +1 -1
  64. package/FilePicker/domains/FileItemDto.d.ts +9 -2
  65. package/FilePicker/primitives/FilePickerPrimitive.stories.d.ts +1 -1
  66. package/FilePicker/primitives/FilePickerPrimitive.stories.js.map +1 -1
  67. package/FilePicker/primitives/components/previews/FilePreview.js +5 -3
  68. package/FilePicker/primitives/components/previews/FilePreview.js.map +1 -1
  69. package/FilePicker/primitives/useFilePicker.js +24 -1
  70. package/FilePicker/primitives/useFilePicker.js.map +1 -1
  71. package/FillViewport/FillViewport.d.ts +60 -0
  72. package/FillViewport/FillViewport.js +67 -0
  73. package/FillViewport/FillViewport.js.map +1 -0
  74. package/FillViewport/index.d.ts +1 -0
  75. package/FillViewport/index.js +1 -0
  76. package/Grid/Grid.d.ts +1 -1
  77. package/Grid/Grid.js.map +1 -1
  78. package/Grid/Grid.stories.d.ts +1 -1
  79. package/Grid/Grid.stories.js.map +1 -1
  80. package/HeaderBar/HeaderBar.stories.d.ts +1 -1
  81. package/HeaderBar/HeaderBar.stories.js.map +1 -1
  82. package/Heading/Heading.stories.d.ts +1 -1
  83. package/Heading/Heading.stories.js.map +1 -1
  84. package/Icon/Icon.stories.d.ts +1 -1
  85. package/Icon/Icon.stories.js.map +1 -1
  86. package/IconPicker/IconPicker.stories.d.ts +1 -1
  87. package/IconPicker/IconPicker.stories.js.map +1 -1
  88. package/IconPicker/primitives/IconPickerPrimitive.stories.d.ts +1 -1
  89. package/IconPicker/primitives/IconPickerPrimitive.stories.js.map +1 -1
  90. package/Input/Input.stories.d.ts +1 -1
  91. package/Input/Input.stories.js.map +1 -1
  92. package/Input/InputPrimitive.stories.d.ts +1 -1
  93. package/Input/InputPrimitive.stories.js.map +1 -1
  94. package/Label/Label.stories.d.ts +1 -1
  95. package/Label/Label.stories.js.map +1 -1
  96. package/Link/Link.stories.d.ts +1 -1
  97. package/Link/Link.stories.js.map +1 -1
  98. package/List/List.stories.d.ts +1 -1
  99. package/List/List.stories.js.map +1 -1
  100. package/Loader/Loader.stories.d.ts +1 -1
  101. package/Loader/Loader.stories.js.map +1 -1
  102. package/Loader/OverlayLoader.stories.d.ts +1 -1
  103. package/Loader/OverlayLoader.stories.js.map +1 -1
  104. package/MultiAutoComplete/MultiAutoComplete.stories.d.ts +1 -1
  105. package/MultiAutoComplete/MultiAutoComplete.stories.js.map +1 -1
  106. package/MultiAutoComplete/primitives/MultiAutoCompletePrimitive.stories.d.ts +1 -1
  107. package/MultiAutoComplete/primitives/MultiAutoCompletePrimitive.stories.js.map +1 -1
  108. package/MultiFilePicker/MultiFilePicker.stories.d.ts +1 -1
  109. package/MultiFilePicker/MultiFilePicker.stories.js.map +1 -1
  110. package/MultiFilePicker/primitives/MultiFilePickerPrimitive.stories.d.ts +1 -1
  111. package/MultiFilePicker/primitives/MultiFilePickerPrimitive.stories.js.map +1 -1
  112. package/MultiSelect/MultiSelect.stories.d.ts +1 -1
  113. package/MultiSelect/MultiSelect.stories.js.map +1 -1
  114. package/Popover/Popover.stories.d.ts +1 -1
  115. package/Popover/Popover.stories.js.map +1 -1
  116. package/ProgressBar/ProgressBar.stories.d.ts +1 -1
  117. package/ProgressBar/ProgressBar.stories.js.map +1 -1
  118. package/RadioGroup/RadioGroup.stories.d.ts +1 -1
  119. package/RadioGroup/RadioGroup.stories.js.map +1 -1
  120. package/RadioGroup/primitives/RadioGroupPrimitive.stories.d.ts +1 -1
  121. package/RadioGroup/primitives/RadioGroupPrimitive.stories.js.map +1 -1
  122. package/RangeSlider/RangeSlider.stories.d.ts +1 -1
  123. package/RangeSlider/RangeSlider.stories.js.map +1 -1
  124. package/RangeSlider/primitives/RangeSliderPrimitive.stories.d.ts +1 -1
  125. package/RangeSlider/primitives/RangeSliderPrimitive.stories.js.map +1 -1
  126. package/ScrollArea/ScrollArea.stories.d.ts +1 -1
  127. package/ScrollArea/ScrollArea.stories.js.map +1 -1
  128. package/SegmentedControl/SegmentedControl.d.ts +4 -0
  129. package/SegmentedControl/SegmentedControl.js +6 -2
  130. package/SegmentedControl/SegmentedControl.js.map +1 -1
  131. package/SegmentedControl/SegmentedControl.stories.d.ts +5 -1
  132. package/SegmentedControl/SegmentedControl.stories.js +100 -2
  133. package/SegmentedControl/SegmentedControl.stories.js.map +1 -1
  134. package/SegmentedControl/SegmentedControlTab.d.ts +10 -0
  135. package/SegmentedControl/SegmentedControlTab.js +21 -0
  136. package/SegmentedControl/SegmentedControlTab.js.map +1 -0
  137. package/SegmentedControl/SegmentedControlTabs.d.ts +11 -0
  138. package/SegmentedControl/SegmentedControlTabs.js +71 -0
  139. package/SegmentedControl/SegmentedControlTabs.js.map +1 -0
  140. package/SegmentedControl/SegmentedControlTabsContext.d.ts +19 -0
  141. package/SegmentedControl/SegmentedControlTabsContext.js +11 -0
  142. package/SegmentedControl/SegmentedControlTabsContext.js.map +1 -0
  143. package/SegmentedControl/index.d.ts +2 -0
  144. package/SegmentedControl/index.js +2 -0
  145. package/SegmentedControl/primitives/SegmentedControlPrimitive.d.ts +5 -1
  146. package/SegmentedControl/primitives/SegmentedControlPrimitive.js +4 -3
  147. package/SegmentedControl/primitives/SegmentedControlPrimitive.js.map +1 -1
  148. package/SegmentedControl/primitives/SegmentedControlPrimitive.stories.d.ts +2 -1
  149. package/SegmentedControl/primitives/SegmentedControlPrimitive.stories.js +8 -1
  150. package/SegmentedControl/primitives/SegmentedControlPrimitive.stories.js.map +1 -1
  151. package/Select/Select.stories.d.ts +1 -1
  152. package/Select/Select.stories.js.map +1 -1
  153. package/Select/primitives/SelectPrimitive.stories.d.ts +1 -1
  154. package/Select/primitives/SelectPrimitive.stories.js.map +1 -1
  155. package/Separator/Separator.stories.d.ts +1 -1
  156. package/Separator/Separator.stories.js.map +1 -1
  157. package/Sidebar/Sidebar.d.ts +2 -0
  158. package/Sidebar/Sidebar.stories.d.ts +1 -1
  159. package/Sidebar/Sidebar.stories.js.map +1 -1
  160. package/Sidebar/components/items/SidebarMenuItem.d.ts +4 -1
  161. package/Sidebar/components/items/SidebarMenuItem.js +3 -1
  162. package/Sidebar/components/items/SidebarMenuItem.js.map +1 -1
  163. package/Sidebar/components/items/SidebarMenuItemBadge.d.ts +6 -0
  164. package/Sidebar/components/items/SidebarMenuItemBadge.js +7 -0
  165. package/Sidebar/components/items/SidebarMenuItemBadge.js.map +1 -0
  166. package/Sidebar/components/items/SidebarMenuLink.d.ts +3 -1
  167. package/Sidebar/components/items/SidebarMenuLink.js +3 -1
  168. package/Sidebar/components/items/SidebarMenuLink.js.map +1 -1
  169. package/Sidebar/components/items/SidebarMenuRootButton.d.ts +1 -1
  170. package/Sidebar/components/items/SidebarMenuRootButton.js +8 -3
  171. package/Sidebar/components/items/SidebarMenuRootButton.js.map +1 -1
  172. package/Sidebar/components/items/SidebarMenuSubButton.d.ts +1 -1
  173. package/Sidebar/components/items/SidebarMenuSubButton.js +8 -3
  174. package/Sidebar/components/items/SidebarMenuSubButton.js.map +1 -1
  175. package/Sidebar/components/items/SidebarMenuSubItemIndentation.js +2 -1
  176. package/Sidebar/components/items/SidebarMenuSubItemIndentation.js.map +1 -1
  177. package/Skeleton/Skeleton.stories.d.ts +1 -1
  178. package/Skeleton/Skeleton.stories.js.map +1 -1
  179. package/Slider/Slider.stories.d.ts +1 -1
  180. package/Slider/Slider.stories.js.map +1 -1
  181. package/Slider/primitives/SliderPrimitive.stories.d.ts +1 -1
  182. package/Slider/primitives/SliderPrimitive.stories.js.map +1 -1
  183. package/SteppedProgress/SteppedProgress.stories.d.ts +1 -1
  184. package/SteppedProgress/SteppedProgress.stories.js.map +1 -1
  185. package/Switch/Switch.stories.d.ts +1 -1
  186. package/Switch/Switch.stories.js.map +1 -1
  187. package/Switch/primitives/SwitchPrimitive.stories.d.ts +1 -1
  188. package/Switch/primitives/SwitchPrimitive.stories.js.map +1 -1
  189. package/Tabs/Tabs.js.map +1 -1
  190. package/Tabs/Tabs.stories.d.ts +1 -1
  191. package/Tabs/Tabs.stories.js.map +1 -1
  192. package/Tag/Tag.stories.d.ts +1 -1
  193. package/Tag/Tag.stories.js.map +1 -1
  194. package/Tags/Tags.stories.d.ts +1 -1
  195. package/Tags/Tags.stories.js.map +1 -1
  196. package/Tags/primitives/TagsPrimitive.stories.d.ts +1 -1
  197. package/Tags/primitives/TagsPrimitive.stories.js.map +1 -1
  198. package/Text/Text.stories.d.ts +1 -1
  199. package/Text/Text.stories.js.map +1 -1
  200. package/Textarea/Textarea.stories.d.ts +1 -1
  201. package/Textarea/Textarea.stories.js.map +1 -1
  202. package/Textarea/TextareaPrimitive.stories.d.ts +1 -1
  203. package/Textarea/TextareaPrimitive.stories.js.map +1 -1
  204. package/TimeAgo/TimeAgo.d.ts +3 -0
  205. package/TimeAgo/TimeAgo.js +45 -0
  206. package/TimeAgo/TimeAgo.js.map +1 -0
  207. package/TimeAgo/TimeAgo.stories.d.ts +15 -0
  208. package/TimeAgo/TimeAgo.stories.js +71 -0
  209. package/TimeAgo/TimeAgo.stories.js.map +1 -0
  210. package/TimeAgo/formatElapsed.d.ts +1 -0
  211. package/TimeAgo/formatElapsed.js +27 -0
  212. package/TimeAgo/formatElapsed.js.map +1 -0
  213. package/TimeAgo/getElapsedSeconds.d.ts +2 -0
  214. package/TimeAgo/getElapsedSeconds.js +9 -0
  215. package/TimeAgo/getElapsedSeconds.js.map +1 -0
  216. package/TimeAgo/getUpdateDelay.d.ts +3 -0
  217. package/TimeAgo/getUpdateDelay.js +24 -0
  218. package/TimeAgo/getUpdateDelay.js.map +1 -0
  219. package/TimeAgo/index.d.ts +2 -3
  220. package/TimeAgo/index.js +1 -1
  221. package/TimeAgo/toEpochMs.d.ts +2 -0
  222. package/TimeAgo/toEpochMs.js +8 -0
  223. package/TimeAgo/toEpochMs.js.map +1 -0
  224. package/TimeAgo/toISOString.d.ts +2 -0
  225. package/TimeAgo/toISOString.js +8 -0
  226. package/TimeAgo/toISOString.js.map +1 -0
  227. package/TimeAgo/types.d.ts +18 -0
  228. package/TimeAgo/types.js +0 -0
  229. package/Toast/useToast.stories.d.ts +1 -1
  230. package/Toast/useToast.stories.js.map +1 -1
  231. package/Toggle/Toggle.stories.d.ts +1 -1
  232. package/Toggle/Toggle.stories.js.map +1 -1
  233. package/Toggle/primitives/TogglePrimitive.stories.d.ts +1 -1
  234. package/Toggle/primitives/TogglePrimitive.stories.js.map +1 -1
  235. package/ToggleGroup/ToggleGroup.stories.d.ts +1 -1
  236. package/ToggleGroup/ToggleGroup.stories.js.map +1 -1
  237. package/ToggleGroup/domains/ToggleGroupItem.d.ts +3 -0
  238. package/ToggleGroup/domains/ToggleGroupItem.js +6 -1
  239. package/ToggleGroup/domains/ToggleGroupItem.js.map +1 -1
  240. package/ToggleGroup/domains/ToggleGroupItemFormatted.d.ts +1 -0
  241. package/ToggleGroup/domains/ToggleGroupItemFormatter.js +2 -1
  242. package/ToggleGroup/domains/ToggleGroupItemFormatter.js.map +1 -1
  243. package/ToggleGroup/domains/ToggleGroupItemParams.d.ts +1 -0
  244. package/ToggleGroup/primitives/ToggleGroupPrimitive.js +11 -2
  245. package/ToggleGroup/primitives/ToggleGroupPrimitive.js.map +1 -1
  246. package/ToggleGroup/primitives/ToggleGroupPrimitive.stories.d.ts +1 -1
  247. package/ToggleGroup/primitives/ToggleGroupPrimitive.stories.js.map +1 -1
  248. package/Tooltip/Tooltip.stories.d.ts +1 -1
  249. package/Tooltip/Tooltip.stories.js.map +1 -1
  250. package/Tree/Tree.stories.d.ts +1 -1
  251. package/Tree/Tree.stories.js.map +1 -1
  252. package/Widget/Widget.stories.d.ts +1 -1
  253. package/Widget/Widget.stories.js.map +1 -1
  254. package/exports/admin/ui.d.ts +1 -0
  255. package/exports/admin/ui.js +1 -0
  256. package/index.d.ts +2 -0
  257. package/index.js +2 -0
  258. package/package.json +24 -26
  259. package/theme.css +3 -1
  260. package/utils.js +1 -0
  261. package/utils.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Input/InputPrimitive.stories.js","sources":["../../src/Input/InputPrimitive.stories.tsx"],"sourcesContent":["import React, { useState } from \"react\";\nimport type { Meta, StoryObj } from \"@storybook/react-webpack5\";\nimport { ReactComponent as NotificationsIcon } from \"@webiny/icons/notifications.svg\";\nimport { ReactComponent as CalendarIcon } from \"@webiny/icons/calendar_month.svg\";\n\nimport { InputPrimitive } from \"./InputPrimitive.js\";\nimport { Icon } from \"~/Icon/index.js\";\n\nconst meta: Meta<typeof InputPrimitive> = {\n title: \"Components/Form Primitives/Input\",\n component: InputPrimitive,\n argTypes: {\n onChange: { action: \"onChange\" },\n onEnter: { action: \"onEnter\" },\n onKeyDown: { action: \"onKeyDown\" },\n type: {\n control: \"select\",\n options: [\n \"text\",\n \"number\",\n \"email\",\n \"password\",\n \"tel\",\n \"url\",\n \"search\",\n \"date\",\n \"datetime-local\",\n \"month\",\n \"week\",\n \"time\",\n \"color\",\n \"file\",\n \"checkbox\",\n \"radio\",\n \"range\",\n \"hidden\",\n \"button\",\n \"submit\",\n \"reset\",\n \"image\"\n ],\n defaultValue: \"text\"\n }\n },\n parameters: {\n layout: \"padded\"\n },\n render: args => {\n const [value, setValue] = useState(args.value);\n return (\n <div className={\"w-full\"}>\n <InputPrimitive {...args} value={value} onChange={setValue} />\n <div className={\"mt-4 text-center\"}>\n Current selected value: <pre>{value}</pre>\n </div>\n </div>\n );\n }\n};\n\nexport default meta;\ntype Story = StoryObj<typeof InputPrimitive>;\n\nexport const Default: Story = {};\n\nexport const MediumSize: Story = {\n args: {\n placeholder: \"Custom placeholder\",\n size: \"md\"\n }\n};\n\nexport const LargeSize: Story = {\n args: {\n placeholder: \"Custom placeholder\",\n size: \"lg\"\n }\n};\n\nexport const ExtraLargeSize: Story = {\n args: {\n placeholder: \"Custom placeholder\",\n size: \"xl\"\n }\n};\n\nexport const WithStartIcon: Story = {\n args: {\n placeholder: \"Custom placeholder\",\n startIcon: <Icon label={\"Bell\"} icon={<NotificationsIcon />} />\n }\n};\n\nexport const WithEndIcon: Story = {\n args: {\n placeholder: \"Custom placeholder\",\n endIcon: <Icon label={\"Calendar\"} icon={<CalendarIcon />} />\n }\n};\n\nexport const WithStartAndEndIcons: Story = {\n args: {\n placeholder: \"Custom placeholder\",\n startIcon: <Icon label={\"Bell\"} icon={<NotificationsIcon />} />,\n endIcon: <Icon label={\"Calendar\"} icon={<CalendarIcon />} />\n }\n};\n\nexport const PrimaryVariant: Story = {\n args: {\n ...WithStartAndEndIcons.args,\n variant: \"primary\",\n placeholder: \"Custom placeholder\"\n }\n};\n\nexport const PrimaryVariantDisabled: Story = {\n args: {\n ...PrimaryVariant.args,\n disabled: true\n }\n};\n\nexport const PrimaryVariantInvalid: Story = {\n args: {\n ...PrimaryVariant.args,\n invalid: true\n }\n};\n\nexport const SecondaryVariant: Story = {\n args: {\n ...WithStartAndEndIcons.args,\n variant: \"secondary\",\n placeholder: \"Custom placeholder\"\n }\n};\n\nexport const SecondaryVariantDisabled: Story = {\n args: {\n ...SecondaryVariant.args,\n disabled: true\n }\n};\n\nexport const SecondaryVariantInvalid: Story = {\n args: {\n ...SecondaryVariant.args,\n invalid: true\n }\n};\n\nexport const GhostVariant: Story = {\n args: {\n ...WithStartAndEndIcons.args,\n variant: \"ghost\",\n placeholder: \"Custom placeholder\"\n }\n};\n\nexport const GhostVariantDisabled: Story = {\n args: {\n ...GhostVariant.args,\n disabled: true\n }\n};\n\nexport const GhostVariantInvalid: Story = {\n args: {\n ...GhostVariant.args,\n invalid: true\n }\n};\n\nexport const GhostNegativeVariant: Story = {\n args: {\n ...WithStartAndEndIcons.args,\n variant: \"ghost-negative\",\n placeholder: \"Custom placeholder\"\n },\n decorators: [\n Story => (\n <div className=\"bg-neutral-dark text-neutral-light p-xl\">\n <Story />\n </div>\n )\n ]\n};\n\nexport const GhostNegativeVariantDisabled: Story = {\n args: {\n ...GhostNegativeVariant.args,\n disabled: true\n },\n decorators: [\n Story => (\n <div className=\"bg-neutral-dark text-neutral-light p-xl\">\n <Story />\n </div>\n )\n ]\n};\n\nexport const GhostNegativeVariantInvalid: Story = {\n args: {\n ...GhostNegativeVariant.args,\n invalid: true\n },\n decorators: [\n Story => (\n <div className=\"bg-neutral-dark text-neutral-light p-xl\">\n <Story />\n </div>\n )\n ]\n};\n\nexport const WithForwardEventOnChange: Story = {\n args: {\n ...Default.args,\n forwardEventOnChange: true\n }\n};\n"],"names":["meta","InputPrimitive","args","value","setValue","useState","Default","MediumSize","LargeSize","ExtraLargeSize","WithStartIcon","Icon","NotificationsIcon","WithEndIcon","CalendarIcon","WithStartAndEndIcons","PrimaryVariant","PrimaryVariantDisabled","PrimaryVariantInvalid","SecondaryVariant","SecondaryVariantDisabled","SecondaryVariantInvalid","GhostVariant","GhostVariantDisabled","GhostVariantInvalid","GhostNegativeVariant","Story","GhostNegativeVariantDisabled","GhostNegativeVariantInvalid","WithForwardEventOnChange"],"mappings":";;;;;AAQA,MAAMA,OAAoC;IACtC,OAAO;IACP,WAAWC;IACX,UAAU;QACN,UAAU;YAAE,QAAQ;QAAW;QAC/B,SAAS;YAAE,QAAQ;QAAU;QAC7B,WAAW;YAAE,QAAQ;QAAY;QACjC,MAAM;YACF,SAAS;YACT,SAAS;gBACL;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;aACH;YACD,cAAc;QAClB;IACJ;IACA,YAAY;QACR,QAAQ;IACZ;IACA,QAAQC,CAAAA;QACJ,MAAM,CAACC,OAAOC,SAAS,GAAGC,SAASH,KAAK,KAAK;QAC7C,OAAO,WAAP,GACI,oBAAC;YAAI,WAAW;yBACZ,oBAACD,gBAAcA;YAAE,GAAGC,IAAI;YAAE,OAAOC;YAAO,UAAUC;0BAClD,oBAAC;YAAI,WAAW;WAAoB,0CACR,oBAAC,aAAKD;IAI9C;AACJ;AAEA,+BAAeH;AAGR,MAAMM,UAAiB,CAAC;AAExB,MAAMC,aAAoB;IAC7B,MAAM;QACF,aAAa;QACb,MAAM;IACV;AACJ;AAEO,MAAMC,YAAmB;IAC5B,MAAM;QACF,aAAa;QACb,MAAM;IACV;AACJ;AAEO,MAAM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AAU;IACd;AACJ;AAEO,MAAME,sBAA6B;IACtC,MAAM;QACF,GAAGF,aAAa,IAAI;QACpB,SAAS;IACb;AACJ;AAEO,MAAMG,uBAA8B;IACvC,MAAM;QACF,GAAGV,qBAAqB,IAAI;QAC5B,SAAS;QACT,aAAa;IACjB;IACA,YAAY;QACRW,CAAAA,QAAAA,WAAAA,GACI,oBAAC;gBAAI,WAAU;6BACX,oBAACA,OAAAA;KAGZ;AACL;AAEO,MAAMC,+BAAsC;IAC/C,MAAM;QACF,GAAGF,qBAAqB,IAAI;QAC5B,UAAU;IACd;IACA,YAAY;QACRC,CAAAA,QAAAA,WAAAA,GACI,oBAAC;gBAAI,WAAU;6BACX,oBAACA,OAAAA;KAGZ;AACL;AAEO,MAAME,8BAAqC;IAC9C,MAAM;QACF,GAAGH,qBAAqB,IAAI;QAC5B,SAAS;IACb;IACA,YAAY;QACRC,CAAAA,QAAAA,WAAAA,GACI,oBAAC;gBAAI,WAAU;6BACX,oBAACA,OAAAA;KAGZ;AACL;AAEO,MAAMG,2BAAkC;IAC3C,MAAM;QACF,GAAGvB,QAAQ,IAAI;QACf,sBAAsB;IAC1B;AACJ"}
1
+ {"version":3,"file":"Input/InputPrimitive.stories.js","sources":["../../src/Input/InputPrimitive.stories.tsx"],"sourcesContent":["import React, { useState } from \"react\";\nimport type { Meta, StoryObj } from \"@storybook/react\";\nimport { ReactComponent as NotificationsIcon } from \"@webiny/icons/notifications.svg\";\nimport { ReactComponent as CalendarIcon } from \"@webiny/icons/calendar_month.svg\";\n\nimport { InputPrimitive } from \"./InputPrimitive.js\";\nimport { Icon } from \"~/Icon/index.js\";\n\nconst meta: Meta<typeof InputPrimitive> = {\n title: \"Components/Form Primitives/Input\",\n component: InputPrimitive,\n argTypes: {\n onChange: { action: \"onChange\" },\n onEnter: { action: \"onEnter\" },\n onKeyDown: { action: \"onKeyDown\" },\n type: {\n control: \"select\",\n options: [\n \"text\",\n \"number\",\n \"email\",\n \"password\",\n \"tel\",\n \"url\",\n \"search\",\n \"date\",\n \"datetime-local\",\n \"month\",\n \"week\",\n \"time\",\n \"color\",\n \"file\",\n \"checkbox\",\n \"radio\",\n \"range\",\n \"hidden\",\n \"button\",\n \"submit\",\n \"reset\",\n \"image\"\n ],\n defaultValue: \"text\"\n }\n },\n parameters: {\n layout: \"padded\"\n },\n render: args => {\n const [value, setValue] = useState(args.value);\n return (\n <div className={\"w-full\"}>\n <InputPrimitive {...args} value={value} onChange={setValue} />\n <div className={\"mt-4 text-center\"}>\n Current selected value: <pre>{value}</pre>\n </div>\n </div>\n );\n }\n};\n\nexport default meta;\ntype Story = StoryObj<typeof InputPrimitive>;\n\nexport const Default: Story = {};\n\nexport const MediumSize: Story = {\n args: {\n placeholder: \"Custom placeholder\",\n size: \"md\"\n }\n};\n\nexport const LargeSize: Story = {\n args: {\n placeholder: \"Custom placeholder\",\n size: \"lg\"\n }\n};\n\nexport const ExtraLargeSize: Story = {\n args: {\n placeholder: \"Custom placeholder\",\n size: \"xl\"\n }\n};\n\nexport const WithStartIcon: Story = {\n args: {\n placeholder: \"Custom placeholder\",\n startIcon: <Icon label={\"Bell\"} icon={<NotificationsIcon />} />\n }\n};\n\nexport const WithEndIcon: Story = {\n args: {\n placeholder: \"Custom placeholder\",\n endIcon: <Icon label={\"Calendar\"} icon={<CalendarIcon />} />\n }\n};\n\nexport const WithStartAndEndIcons: Story = {\n args: {\n placeholder: \"Custom placeholder\",\n startIcon: <Icon label={\"Bell\"} icon={<NotificationsIcon />} />,\n endIcon: <Icon label={\"Calendar\"} icon={<CalendarIcon />} />\n }\n};\n\nexport const PrimaryVariant: Story = {\n args: {\n ...WithStartAndEndIcons.args,\n variant: \"primary\",\n placeholder: \"Custom placeholder\"\n }\n};\n\nexport const PrimaryVariantDisabled: Story = {\n args: {\n ...PrimaryVariant.args,\n disabled: true\n }\n};\n\nexport const PrimaryVariantInvalid: Story = {\n args: {\n ...PrimaryVariant.args,\n invalid: true\n }\n};\n\nexport const SecondaryVariant: Story = {\n args: {\n ...WithStartAndEndIcons.args,\n variant: \"secondary\",\n placeholder: \"Custom placeholder\"\n }\n};\n\nexport const SecondaryVariantDisabled: Story = {\n args: {\n ...SecondaryVariant.args,\n disabled: true\n }\n};\n\nexport const SecondaryVariantInvalid: Story = {\n args: {\n ...SecondaryVariant.args,\n invalid: true\n }\n};\n\nexport const GhostVariant: Story = {\n args: {\n ...WithStartAndEndIcons.args,\n variant: \"ghost\",\n placeholder: \"Custom placeholder\"\n }\n};\n\nexport const GhostVariantDisabled: Story = {\n args: {\n ...GhostVariant.args,\n disabled: true\n }\n};\n\nexport const GhostVariantInvalid: Story = {\n args: {\n ...GhostVariant.args,\n invalid: true\n }\n};\n\nexport const GhostNegativeVariant: Story = {\n args: {\n ...WithStartAndEndIcons.args,\n variant: \"ghost-negative\",\n placeholder: \"Custom placeholder\"\n },\n decorators: [\n Story => (\n <div className=\"bg-neutral-dark text-neutral-light p-xl\">\n <Story />\n </div>\n )\n ]\n};\n\nexport const GhostNegativeVariantDisabled: Story = {\n args: {\n ...GhostNegativeVariant.args,\n disabled: true\n },\n decorators: [\n Story => (\n <div className=\"bg-neutral-dark text-neutral-light p-xl\">\n <Story />\n </div>\n )\n ]\n};\n\nexport const GhostNegativeVariantInvalid: Story = {\n args: {\n ...GhostNegativeVariant.args,\n invalid: true\n },\n decorators: [\n Story => (\n <div className=\"bg-neutral-dark text-neutral-light p-xl\">\n <Story />\n </div>\n )\n ]\n};\n\nexport const WithForwardEventOnChange: Story = {\n args: {\n ...Default.args,\n forwardEventOnChange: true\n }\n};\n"],"names":["meta","InputPrimitive","args","value","setValue","useState","Default","MediumSize","LargeSize","ExtraLargeSize","WithStartIcon","Icon","NotificationsIcon","WithEndIcon","CalendarIcon","WithStartAndEndIcons","PrimaryVariant","PrimaryVariantDisabled","PrimaryVariantInvalid","SecondaryVariant","SecondaryVariantDisabled","SecondaryVariantInvalid","GhostVariant","GhostVariantDisabled","GhostVariantInvalid","GhostNegativeVariant","Story","GhostNegativeVariantDisabled","GhostNegativeVariantInvalid","WithForwardEventOnChange"],"mappings":";;;;;AAQA,MAAMA,OAAoC;IACtC,OAAO;IACP,WAAWC;IACX,UAAU;QACN,UAAU;YAAE,QAAQ;QAAW;QAC/B,SAAS;YAAE,QAAQ;QAAU;QAC7B,WAAW;YAAE,QAAQ;QAAY;QACjC,MAAM;YACF,SAAS;YACT,SAAS;gBACL;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;aACH;YACD,cAAc;QAClB;IACJ;IACA,YAAY;QACR,QAAQ;IACZ;IACA,QAAQC,CAAAA;QACJ,MAAM,CAACC,OAAOC,SAAS,GAAGC,SAASH,KAAK,KAAK;QAC7C,OAAO,WAAP,GACI,oBAAC;YAAI,WAAW;yBACZ,oBAACD,gBAAcA;YAAE,GAAGC,IAAI;YAAE,OAAOC;YAAO,UAAUC;0BAClD,oBAAC;YAAI,WAAW;WAAoB,0CACR,oBAAC,aAAKD;IAI9C;AACJ;AAEA,+BAAeH;AAGR,MAAMM,UAAiB,CAAC;AAExB,MAAMC,aAAoB;IAC7B,MAAM;QACF,aAAa;QACb,MAAM;IACV;AACJ;AAEO,MAAMC,YAAmB;IAC5B,MAAM;QACF,aAAa;QACb,MAAM;IACV;AACJ;AAEO,MAAMC,iBAAwB;IACjC,MAAM;QACF,aAAa;QACb,MAAM;IACV;AACJ;AAEO,MAAMC,gBAAuB;IAChC,MAAM;QACF,aAAa;QACb,WAAW,WAAX,GAAW,oBAACC,MAAIA;YAAC,OAAO;YAAQ,oBAAM,oBAACC,gBAAiBA;;IAC5D;AACJ;AAEO,MAAMC,cAAqB;IAC9B,MAAM;QACF,aAAa;QACb,SAAS,WAAT,GAAS,oBAACF,MAAIA;YAAC,OAAO;YAAY,oBAAM,oBAACG,mCAAYA;;IACzD;AACJ;AAEO,MAAMC,uBAA8B;IACvC,MA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IACA,YAAY;QACRC,CAAAA,QAAAA,WAAAA,GACI,oBAAC;gBAAI,WAAU;6BACX,oBAACA,OAAAA;KAGZ;AACL;AAEO,MAAME,8BAAqC;IAC9C,MAAM;QACF,GAAGH,qBAAqB,IAAI;QAC5B,SAAS;IACb;IACA,YAAY;QACRC,CAAAA,QAAAA,WAAAA,GACI,oBAAC;gBAAI,WAAU;6BACX,oBAACA,OAAAA;KAGZ;AACL;AAEO,MAAMG,2BAAkC;IAC3C,MAAM;QACF,GAAGvB,QAAQ,IAAI;QACf,sBAAsB;IAC1B;AACJ"}
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from "@storybook/react-webpack5";
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { Label } from "./Label.js";
3
3
  declare const meta: Meta<typeof Label>;
4
4
  export default meta;
@@ -1 +1 @@
1
- {"version":3,"file":"Label/Label.stories.js","sources":["../../src/Label/Label.stories.tsx"],"sourcesContent":["import React from \"react\";\nimport type { Meta, StoryObj } from \"@storybook/react-webpack5\";\n\nimport { Label } from \"./Label.js\";\nimport { Tooltip } from \"~/Tooltip/index.js\";\nimport { Input } from \"~/Input/index.js\";\n\nconst meta: Meta<typeof Label> = {\n title: \"Components/Form/Label\",\n component: Label,\n parameters: {\n layout: \"padded\"\n },\n decorators: [\n Story => (\n <Tooltip.Provider>\n <Story />\n </Tooltip.Provider>\n )\n ]\n};\n\nexport default meta;\ntype Story = StoryObj<typeof Label>;\n\nexport const Documentation: Story = {\n render: args => {\n const [value, setValue] = React.useState(\"\");\n\n return (\n <div className=\"mb-4 space-y-2\">\n <Label {...args} />\n <Input\n id={args.htmlFor}\n type=\"text\"\n placeholder=\"e.g. John Michael Doe\"\n required={args.required}\n value={value}\n onChange={e => setValue(e.target.value)}\n />\n </div>\n );\n },\n args: {\n text: \"Full Name\",\n htmlFor: \"full-name\",\n description: \"As shown on your government-issued ID\",\n hint: \"Include middle name if applicable\",\n required: true,\n disabled: false,\n weight: \"strong\",\n value: \"Label value will be shown here\",\n invalid: false\n },\n argTypes: {\n text: {\n description: \"The text content of the label\",\n control: \"text\"\n },\n htmlFor: {\n description: \"The ID of the form element this label is associated with\",\n control: \"text\"\n },\n description: {\n description: \"Additional descriptive text shown next to the label\",\n control: \"text\"\n },\n hint: {\n description: \"Tooltip hint text that appears on hover\",\n control: \"text\"\n },\n required: {\n description: \"Whether the associated form field is required\",\n control: \"boolean\"\n },\n disabled: {\n description: \"Whether the label should appear disabled\",\n control: \"boolean\"\n },\n weight: {\n description: \"The font weight of the label text\",\n control: \"select\",\n options: [\"strong\", \"light\"]\n },\n value: {\n description: \"Optional value to display on the right side of the label\",\n control: \"text\"\n },\n invalid: {\n description: \"Whether the label should appear in an invalid state\",\n control: \"boolean\"\n }\n }\n};\n\nexport const Default: Story = {\n args: {\n text: \"Test label\",\n htmlFor: \"test-field\"\n },\n render: args => (\n <>\n <input type=\"checkbox\" id={args.htmlFor} />\n <Label {...args} />\n </>\n )\n};\n\nexport const LightWeight: Story = {\n args: {\n ...Default.args,\n weight: \"light\"\n }\n};\n\nexport const Required: Story = {\n args: {\n ...Default.args,\n required: true\n }\n};\n\nexport const WithDescription: Story = {\n args: {\n ...Default.args,\n description: \"(description)\"\n }\n};\n\nexport const WithHint: Story = {\n args: {\n ...Default.args,\n hint: \"This is an additional message in case context to this label needs to be added\"\n }\n};\n\nexport const WithValue: Story = {\n args: {\n ...Default.args,\n value: 24\n },\n render: args => (\n <div className=\"w-64\">\n <Label {...args} />\n </div>\n )\n};\n\nexport const Disabled: Story = {\n args: {\n htmlFor: \"test-field-disabled\",\n text: \"Test label\",\n description: \"(description)\",\n hint: \"This is an additional message in case context to this label needs to be added\",\n required: true,\n disabled: true,\n value: 24\n },\n render: args => (\n <div className=\"w-64\">\n <Label {...args} />\n </div>\n )\n};\n"],"names":["meta","Label","Story","Tooltip","Documentation","args","value","setValue","React","Input","e","Default","LightWeight","Required","WithDescription","WithHint","WithValue","Disabled"],"mappings":";;;;AAOA,MAAM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B;IAC9B,MAAM;QACF,GAAGD,QAAQ,IAAI;QACf,QAAQ;IACZ;AACJ;AAEO,MAAME,WAAkB;IAC3B,MAAM;QACF,GAAGF,QAAQ,IAAI;QACf,UAAU;IACd;AACJ;AAEO,MAAMG,kBAAyB;IAClC,MAAM;QACF,GAAGH,QAAQ,IAAI;QACf,aAAa;IACjB;AACJ;AAEO,MAAMI,WAAkB;IAC3B,MAAM;QACF,GAAGJ,QAAQ,IAAI;QACf,MAAM;IACV;AACJ;AAEO,MAAMK,YAAmB;IAC5B,MAAM;QACF,GAAGL,QAAQ,IAAI;QACf,OAAO;IACX;IACA,QAAQN,CAAAA,OAAAA,WAAAA,GACJ,oBAAC;YAAI,WAAU;yBACX,oBAACJ,OAAUI;AAGvB;AAEO,MAAMY,WAAkB;IAC3B,MAAM;QACF,SAAS;QACT,MAAM;QACN,aAAa;QACb,MAAM;QACN,UAAU;QACV,UAAU;QACV,OAAO;IACX;IACA,QAAQZ,CAAAA,OAAAA,WAAAA,GACJ,oBAAC;YAAI,WAAU;yBACX,oBAACJ,OAAUI;AAGvB"}
1
+ {"version":3,"file":"Label/Label.stories.js","sources":["../../src/Label/Label.stories.tsx"],"sourcesContent":["import React from \"react\";\nimport type { Meta, StoryObj } from \"@storybook/react\";\n\nimport { Label } from \"./Label.js\";\nimport { Tooltip } from \"~/Tooltip/index.js\";\nimport { Input } from \"~/Input/index.js\";\n\nconst meta: Meta<typeof Label> = {\n title: \"Components/Form/Label\",\n component: Label,\n parameters: {\n layout: \"padded\"\n },\n decorators: [\n Story => (\n <Tooltip.Provider>\n <Story />\n </Tooltip.Provider>\n )\n ]\n};\n\nexport default meta;\ntype Story = StoryObj<typeof Label>;\n\nexport const Documentation: Story = {\n render: args => {\n const [value, setValue] = React.useState(\"\");\n\n return (\n <div className=\"mb-4 space-y-2\">\n <Label {...args} />\n <Input\n id={args.htmlFor}\n type=\"text\"\n placeholder=\"e.g. John Michael Doe\"\n required={args.required}\n value={value}\n onChange={e => setValue(e.target.value)}\n />\n </div>\n );\n },\n args: {\n text: \"Full Name\",\n htmlFor: \"full-name\",\n description: \"As shown on your government-issued ID\",\n hint: \"Include middle name if applicable\",\n required: true,\n disabled: false,\n weight: \"strong\",\n value: \"Label value will be shown here\",\n invalid: false\n },\n argTypes: {\n text: {\n description: \"The text content of the label\",\n control: \"text\"\n },\n htmlFor: {\n description: \"The ID of the form element this label is associated with\",\n control: \"text\"\n },\n description: {\n description: \"Additional descriptive text shown next to the label\",\n control: \"text\"\n },\n hint: {\n description: \"Tooltip hint text that appears on hover\",\n control: \"text\"\n },\n required: {\n description: \"Whether the associated form field is required\",\n control: \"boolean\"\n },\n disabled: {\n description: \"Whether the label should appear disabled\",\n control: \"boolean\"\n },\n weight: {\n description: \"The font weight of the label text\",\n control: \"select\",\n options: [\"strong\", \"light\"]\n },\n value: {\n description: \"Optional value to display on the right side of the label\",\n control: \"text\"\n },\n invalid: {\n description: \"Whether the label should appear in an invalid state\",\n control: \"boolean\"\n }\n }\n};\n\nexport const Default: Story = {\n args: {\n text: \"Test label\",\n htmlFor: \"test-field\"\n },\n render: args => (\n <>\n <input type=\"checkbox\" id={args.htmlFor} />\n <Label {...args} />\n </>\n )\n};\n\nexport const LightWeight: Story = {\n args: {\n ...Default.args,\n weight: \"light\"\n }\n};\n\nexport const Required: Story = {\n args: {\n ...Default.args,\n required: true\n }\n};\n\nexport const WithDescription: Story = {\n args: {\n ...Default.args,\n description: \"(description)\"\n }\n};\n\nexport const WithHint: Story = {\n args: {\n ...Default.args,\n hint: \"This is an additional message in case context to this label needs to be added\"\n }\n};\n\nexport const WithValue: Story = {\n args: {\n ...Default.args,\n value: 24\n },\n render: args => (\n <div className=\"w-64\">\n <Label {...args} />\n </div>\n )\n};\n\nexport const Disabled: Story = {\n args: {\n htmlFor: \"test-field-disabled\",\n text: \"Test label\",\n description: \"(description)\",\n hint: \"This is an additional message in case context to this label needs to be added\",\n required: true,\n disabled: true,\n value: 24\n },\n render: args => (\n <div className=\"w-64\">\n <Label {...args} />\n </div>\n )\n};\n"],"names":["meta","Label","Story","Tooltip","Documentation","args","value","setValue","React","Input","e","Default","LightWeight","Required","WithDescription","WithHint","WithValue","Disabled"],"mappings":";;;;AAOA,MAAMA,OAA2B;IAC7B,OAAO;IACP,WAAWC;IACX,YAAY;QACR,QAAQ;IACZ;IACA,YAAY;QACRC,CAAAA,QAAAA,WAAAA,GACI,oBAACC,QAAQ,QAAQ,sBACb,oBAACD,OAAAA;KAGZ;AACL;AAEA,sBAAeF;AAGR,MAAMI,gBAAuB;IAChC,QAAQC,CAAAA;QACJ,MAAM,CAACC,OAAOC,SAAS,GAAGC,MAAAA,QAAc,CAAC;QAEzC,OAAO,WAAP,GACI,oBAAC;YAAI,WAAU;yBACX,oBAACP,OAAUI,OAAAA,WAAAA,GACX,oBAACI,OAAKA;YACF,IAAIJ,KAAK,OAAO;YAChB,MAAK;YACL,aAAY;YACZ,UAAUA,KAAK,QAAQ;YACvB,OAAOC;YACP,UAAUI,CAAAA,IAAKH,SAASG,EAAE,MAAM,CAAC,KAAK;;IAItD;IACA,MAAM;QACF,MAAM;QACN,SAAS;QACT,aAAa;QACb,MAAM;QACN,UAAU;QACV,UAAU;QACV,QAAQ;QACR,OAAO;QACP,SAAS;IACb;IACA,UAAU;QACN,MAAM;YACF,aAAa;YACb,SAAS;QACb;QACA,SAAS;YACL,aAAa;YACb,SAAS;QACb;QACA,aAAa;YACT,aAAa;YACb,SAAS;QACb;QACA,MAAM;YACF,aAAa;YACb,SAAS;QACb;QACA,UAAU;YACN,aAAa;YACb,SAAS;QACb;QACA,UAAU;YACN,aAAa;YACb,SAAS;QACb;QACA,QAAQ;YACJ,aAAa;YACb,SAAS;YACT,SAAS;gBAAC;gBAAU;aAAQ;QAChC;QACA,OAAO;YACH,aAAa;YACb,SAAS;QACb;QACA,SAAS;YACL,aAAa;YACb,SAAS;QACb;IACJ;AACJ;AAEO,MAAMC,UAAiB;IAC1B,MAAM;QACF,MAAM;QACN,SAAS;IACb;IACA,QAAQN,CAAAA,OAAAA,WAAAA,GACJ,wDACI,oBAAC;YAAM,MAAK;YAAW,IAAIA,KAAK,OAAO;0BACvC,oBAACJ,OAAUI;AAGvB;AAEO,MAAMO,cAAqB;IAC9B,MAAM;QACF,GAAGD,QAAQ,IAAI;QACf,QAAQ;IACZ;AACJ;AAEO,MAAME,WAAkB;IAC3B,MAAM;QACF,GAAGF,QAAQ,IAAI;QACf,UAAU;IACd;AACJ;AAEO,MAAMG,kBAAyB;IAClC,MAAM;QACF,GAAGH,QAAQ,IAAI;QACf,aAAa;IACjB;AACJ;AAEO,MAAMI,WAAkB;IAC3B,MAAM;QACF,GAAGJ,QAAQ,IAAI;QACf,MAAM;IACV;AACJ;AAEO,MAAMK,YAAmB;IAC5B,MAAM;QACF,GAAGL,QAAQ,IAAI;QACf,OAAO;IACX;IACA,QAAQN,CAAAA,OAAAA,WAAAA,GACJ,oBAAC;YAAI,WAAU;yBACX,oBAACJ,OAAUI;AAGvB;AAEO,MAAMY,WAAkB;IAC3B,MAAM;QACF,SAAS;QACT,MAAM;QACN,aAAa;QACb,MAAM;QACN,UAAU;QACV,UAAU;QACV,OAAO;IACX;IACA,QAAQZ,CAAAA,OAAAA,WAAAA,GACJ,oBAAC;YAAI,WAAU;yBACX,oBAACJ,OAAUI;AAGvB"}
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from "@storybook/react-webpack5";
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { Link } from "./Link.js";
3
3
  declare const meta: Meta<typeof Link>;
4
4
  export default meta;
@@ -1 +1 @@
1
- {"version":3,"file":"Link/Link.stories.js","sources":["../../src/Link/Link.stories.tsx"],"sourcesContent":["import React from \"react\";\nimport type { Meta, StoryObj } from \"@storybook/react-webpack5\";\nimport { Link } from \"./Link.js\";\nimport { Text } from \"~/Text/index.js\";\nimport { AdminUiProvider } from \"~/AdminUiProvider/index.js\";\nimport { LinkComponentProps } from \"~/Link/LinkComponent.js\";\n\nconst NoopLinkComponent = ({ to, ...props }: LinkComponentProps) => {\n return (\n <a\n href={to}\n {...props}\n onClick={e => {\n e.preventDefault();\n }}\n />\n );\n};\n\nconst meta: Meta<typeof Link> = {\n title: \"Components/Link\",\n component: Link,\n decorators: [\n (Story: React.ComponentType) => (\n <AdminUiProvider linkComponent={NoopLinkComponent}>\n <Story />\n </AdminUiProvider>\n )\n ],\n argTypes: {\n size: { control: \"select\", options: [\"sm\", \"md\", \"lg\", \"xl\"] },\n variant: { control: \"select\", options: [\"primary\", \"secondary\"] }\n }\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof Link>;\n\nexport const Default: Story = {\n args: {\n to: \"#\",\n children:\n \"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce tempus tortor eu sapien interdum rhoncus.\"\n }\n};\n\nexport const LinkXl: Story = {\n args: {\n size: \"xl\",\n to: \"#\",\n children:\n \"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce tempus tortor eu sapien interdum rhoncus.\"\n }\n};\n\nexport const LinkLg: Story = {\n args: {\n size: \"lg\",\n to: \"#\",\n children:\n \"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce tempus tortor eu sapien interdum rhoncus.\"\n }\n};\n\nexport const LinkMd: Story = {\n args: {\n size: \"md\",\n to: \"#\",\n children:\n \"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce tempus tortor eu sapien interdum rhoncus.\"\n }\n};\n\nexport const LinkSm: Story = {\n args: {\n size: \"sm\",\n to: \"#\",\n children:\n \"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce tempus tortor eu sapien interdum rhoncus.\"\n }\n};\n\nexport const InheritedSize: Story = {\n name: \"Link with inherited size\",\n render: linkProps => {\n return (\n <Text>\n <Text size=\"lg\">\n Size of this text is set to large, so,&nbsp;\n <Link {...linkProps}>this link&apos;s</Link> size is also automatically set to\n large.\n </Text>\n </Text>\n );\n },\n args: {\n to: \"#\",\n children:\n \"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce tempus tortor eu sapien interdum rhoncus.\"\n }\n};\n\nexport const WithUnderline: Story = {\n args: {\n underline: true,\n to: \"#\",\n children:\n \"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce tempus tortor eu sapien interdum rhoncus.\"\n }\n};\n\nexport const PrimaryNegative: Story = {\n decorators: [\n Story => (\n <div className=\"bg-[#25292e] p-[300px] rounded-[5px] text-neutral-dimmed\">\n <Story />\n </div>\n )\n ],\n render: args => {\n return (\n <Text>\n Lorem <Link {...args}>ipsum dolor sit amet</Link>, consectetur adipiscing elit.\n Fusce tempus tortor eu sapien interdum rhoncus.\n </Text>\n );\n },\n args: {\n ...Default.args,\n variant: \"primary-negative\"\n }\n};\n\nexport const SecondaryNegative: Story = {\n decorators: [\n Story => (\n <div className=\"bg-[#25292e] p-[300px] rounded-[5px] text-neutral-dimmed\">\n <Story />\n </div>\n )\n ],\n render: args => {\n return (\n <Text>\n Lorem <Link {...args}>ipsum dolor sit amet</Link>, consectetur adipiscing elit.\n Fusce tempus tortor eu sapien interdum rhoncus.\n </Text>\n );\n },\n args: {\n ...Default.args,\n variant: \"secondary-negative\"\n }\n};\n\nexport const Documentation: Story = {\n args: {\n to: \"#\",\n variant: \"primary\",\n size: \"md\",\n underline: false,\n disabled: false,\n children: \"This is a link\"\n },\n argTypes: {\n to: {\n description:\n \"The URL or path the link points to. If it’s a relative path, you can pass it as-is—it will automatically resolve based on the parent route. For a full URL, be sure to pass the complete address starting with `https://...`\",\n control: \"text\",\n defaultValue: \"#\"\n },\n variant: {\n description: \"Visual style of the link\",\n control: \"select\",\n options: [\"primary\", \"secondary\", \"primary-negative\", \"secondary-negative\"],\n defaultValue: \"primary\"\n },\n size: {\n description: \"Size of the link text\",\n control: \"select\",\n options: [\"inherit\", \"sm\", \"md\", \"lg\", \"xl\"],\n defaultValue: \"inherit\"\n },\n underline: {\n description: \"Whether the link should be underlined by default\",\n control: \"boolean\",\n defaultValue: false\n },\n disabled: {\n description: \"Whether the link is disabled\",\n control: \"boolean\",\n defaultValue: false\n },\n children: {\n description: \"The content of the link. It can be any valid React node.\",\n control: \"text\",\n defaultValue: \"This is a link\"\n }\n }\n};\n"],"names":["NoopLinkComponent","to","props","e","meta","Link","Story","AdminUiProvider","Default","LinkXl","LinkLg","LinkMd","LinkSm","InheritedSize","linkProps","Text","WithUnderline","PrimaryNegative","args","SecondaryNegative","Documentation"],"mappings":";;;;AAOA,MAAMA,oBAAoB,CAAC,EAAEC,EAAE,EAAE,GAAGC,OAA2B,GACpD,WAAP,GACI,oBAAC;QACG,MAAMD;QACL,GAAGC,KAAK;QACT,SAASC,CAAAA;YACLA,EAAE,cAAc;QACpB;;AAKZ,MAAMC,OAA0B;IAC5B,OAAO;IACP,WAAWC;IACX,YAAY;QACR,CAACC,QAAAA,WAAAA,GACG,oBAACC,iBAAeA;gBAAC,eAAeP;6BAC5B,oBAACM,OAAAA;KAGZ;IACD,UAAU;QACN,MAAM;YAAE,SAAS;YAAU,SAAS;gBAAC;gBAAM;gBAAM;gBAAM;aAAK;QAAC;QAC7D,SAAS;YAAE,SAAS;YAAU,SAAS;gBAAC;gBAAW;aAAY;QAAC;IACpE;AACJ;AAEA,qBAAeF;AAIR,MAAMI,UAAiB;IAC1B,MAAM;QACF,IAAI;QACJ,UACI;IACR;AACJ;AAEO,MAAMC,SAAgB;IACzB,MAAM;QACF,MAAM;QACN,IAAI;QACJ,UACI;IACR;AACJ;AAEO,MAAMC,SAAgB;IACzB,MAAM;QACF,MAAM;QACN,IAAI;QACJ,UACI;IACR;AACJ;AAEO,MAAMC,SAAgB;IACzB,MAAM;QACF,MAAM;QACN,IAAI;QACJ,UACI;IACR;AACJ;AAEO,MAAMC,SAAgB;IACzB,MAAM;QACF,MAAM;QACN,IAAI;QACJ,UACI;IACR;AACJ;AAEO,MAAMC,gBAAuB;IAChC,MAAM;IACN,QAAQC,CAAAA,YACG,WAAP,GACI,oBAACC,MAAIA,MAAAA,WAAAA,GACD,oBA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ACJ;AACJ"}
1
+ {"version":3,"file":"Link/Link.stories.js","sources":["../../src/Link/Link.stories.tsx"],"sourcesContent":["import React from \"react\";\nimport type { Meta, StoryObj } from \"@storybook/react\";\nimport { Link } from \"./Link.js\";\nimport { Text } from \"~/Text/index.js\";\nimport { AdminUiProvider } from \"~/AdminUiProvider/index.js\";\nimport { LinkComponentProps } from \"~/Link/LinkComponent.js\";\n\nconst NoopLinkComponent = ({ to, ...props }: LinkComponentProps) => {\n return (\n <a\n href={to}\n {...props}\n onClick={e => {\n e.preventDefault();\n }}\n />\n );\n};\n\nconst meta: Meta<typeof Link> = {\n title: \"Components/Link\",\n component: Link,\n decorators: [\n (Story: React.ComponentType) => (\n <AdminUiProvider linkComponent={NoopLinkComponent}>\n <Story />\n </AdminUiProvider>\n )\n ],\n argTypes: {\n size: { control: \"select\", options: [\"sm\", \"md\", \"lg\", \"xl\"] },\n variant: { control: \"select\", options: [\"primary\", \"secondary\"] }\n }\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof Link>;\n\nexport const Default: Story = {\n args: {\n to: \"#\",\n children:\n \"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce tempus tortor eu sapien interdum rhoncus.\"\n }\n};\n\nexport const LinkXl: Story = {\n args: {\n size: \"xl\",\n to: \"#\",\n children:\n \"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce tempus tortor eu sapien interdum rhoncus.\"\n }\n};\n\nexport const LinkLg: Story = {\n args: {\n size: \"lg\",\n to: \"#\",\n children:\n \"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce tempus tortor eu sapien interdum rhoncus.\"\n }\n};\n\nexport const LinkMd: Story = {\n args: {\n size: \"md\",\n to: \"#\",\n children:\n \"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce tempus tortor eu sapien interdum rhoncus.\"\n }\n};\n\nexport const LinkSm: Story = {\n args: {\n size: \"sm\",\n to: \"#\",\n children:\n \"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce tempus tortor eu sapien interdum rhoncus.\"\n }\n};\n\nexport const InheritedSize: Story = {\n name: \"Link with inherited size\",\n render: linkProps => {\n return (\n <Text>\n <Text size=\"lg\">\n Size of this text is set to large, so,&nbsp;\n <Link {...linkProps}>this link&apos;s</Link> size is also automatically set to\n large.\n </Text>\n </Text>\n );\n },\n args: {\n to: \"#\",\n children:\n \"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce tempus tortor eu sapien interdum rhoncus.\"\n }\n};\n\nexport const WithUnderline: Story = {\n args: {\n underline: true,\n to: \"#\",\n children:\n \"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce tempus tortor eu sapien interdum rhoncus.\"\n }\n};\n\nexport const PrimaryNegative: Story = {\n decorators: [\n Story => (\n <div className=\"bg-[#25292e] p-[300px] rounded-[5px] text-neutral-dimmed\">\n <Story />\n </div>\n )\n ],\n render: args => {\n return (\n <Text>\n Lorem <Link {...args}>ipsum dolor sit amet</Link>, consectetur adipiscing elit.\n Fusce tempus tortor eu sapien interdum rhoncus.\n </Text>\n );\n },\n args: {\n ...Default.args,\n variant: \"primary-negative\"\n }\n};\n\nexport const SecondaryNegative: Story = {\n decorators: [\n Story => (\n <div className=\"bg-[#25292e] p-[300px] rounded-[5px] text-neutral-dimmed\">\n <Story />\n </div>\n )\n ],\n render: args => {\n return (\n <Text>\n Lorem <Link {...args}>ipsum dolor sit amet</Link>, consectetur adipiscing elit.\n Fusce tempus tortor eu sapien interdum rhoncus.\n </Text>\n );\n },\n args: {\n ...Default.args,\n variant: \"secondary-negative\"\n }\n};\n\nexport const Documentation: Story = {\n args: {\n to: \"#\",\n variant: \"primary\",\n size: \"md\",\n underline: false,\n disabled: false,\n children: \"This is a link\"\n },\n argTypes: {\n to: {\n description:\n \"The URL or path the link points to. If it’s a relative path, you can pass it as-is—it will automatically resolve based on the parent route. For a full URL, be sure to pass the complete address starting with `https://...`\",\n control: \"text\",\n defaultValue: \"#\"\n },\n variant: {\n description: \"Visual style of the link\",\n control: \"select\",\n options: [\"primary\", \"secondary\", \"primary-negative\", \"secondary-negative\"],\n defaultValue: \"primary\"\n },\n size: {\n description: \"Size of the link text\",\n control: \"select\",\n options: [\"inherit\", \"sm\", \"md\", \"lg\", \"xl\"],\n defaultValue: \"inherit\"\n },\n underline: {\n description: \"Whether the link should be underlined by default\",\n control: \"boolean\",\n defaultValue: false\n },\n disabled: {\n description: \"Whether the link is disabled\",\n control: \"boolean\",\n defaultValue: false\n },\n children: {\n description: \"The content of the link. It can be any valid React node.\",\n control: \"text\",\n defaultValue: \"This is a link\"\n }\n }\n};\n"],"names":["NoopLinkComponent","to","props","e","meta","Link","Story","AdminUiProvider","Default","LinkXl","LinkLg","LinkMd","LinkSm","InheritedSize","linkProps","Text","WithUnderline","PrimaryNegative","args","SecondaryNegative","Documentation"],"mappings":";;;;AAOA,MAAMA,oBAAoB,CAAC,EAAEC,EAAE,EAAE,GAAGC,OAA2B,GACpD,WAAP,GACI,oBAAC;QACG,MAAMD;QACL,GAAGC,KAAK;QACT,SAASC,CAAAA;YACLA,EAAE,cAAc;QACpB;;AAKZ,MAAMC,OAA0B;IAC5B,OAAO;IACP,WAAWC;IACX,YAAY;QACR,CAACC,QAAAA,WAAAA,GACG,oBAACC,iBAAeA;gBAAC,eAAeP;6BAC5B,oBAACM,OAAAA;KAGZ;IACD,UAAU;QACN,MAAM;YAAE,SAAS;YAAU,SAAS;gBAAC;gBAAM;gBAAM;gBAAM;aAAK;QAAC;QAC7D,SAAS;YAAE,SAAS;YAAU,SAAS;gBAAC;gBAAW;aAAY;QAAC;IACpE;AACJ;AAEA,qBAAeF;AAIR,MAAMI,UAAiB;IAC1B,MAAM;QACF,IAAI;QACJ,UACI;IACR;AACJ;AAEO,MAAMC,SAAgB;IACzB,MAAM;QACF,MAAM;QACN,IAAI;QACJ,UACI;IACR;AACJ;AAEO,MAAMC,SAAgB;IACzB,MAAM;QACF,MAAM;QACN,IAAI;QACJ,UACI;IACR;AACJ;AAE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QACA,MAAM;YACF,aAAa;YACb,SAAS;YACT,SAAS;gBAAC;gBAAW;gBAAM;gBAAM;gBAAM;aAAK;YAC5C,cAAc;QAClB;QACA,WAAW;YACP,aAAa;YACb,SAAS;YACT,cAAc;QAClB;QACA,UAAU;YACN,aAAa;YACb,SAAS;YACT,cAAc;QAClB;QACA,UAAU;YACN,aAAa;YACb,SAAS;YACT,cAAc;QAClB;IACJ;AACJ"}
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from "@storybook/react-webpack5";
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { List } from "./List.js";
3
3
  declare const meta: Meta<typeof List>;
4
4
  export default meta;
@@ -1 +1 @@
1
- {"version":3,"file":"List/List.stories.js","sources":["../../src/List/List.stories.tsx"],"sourcesContent":["import React from \"react\";\nimport { ReactComponent as ChartIcon } from \"@webiny/icons/insert_chart.svg\";\nimport { ReactComponent as MoreIcon } from \"@webiny/icons/more_vert.svg\";\nimport { ReactComponent as OpenIcon } from \"@webiny/icons/visibility.svg\";\nimport { ReactComponent as EditIcon } from \"@webiny/icons/edit.svg\";\nimport { ReactComponent as TrashIcon } from \"@webiny/icons/delete.svg\";\nimport { ReactComponent as UserIcon } from \"@webiny/icons/person.svg\";\nimport { ReactComponent as SettingsIcon } from \"@webiny/icons/settings.svg\";\nimport { ReactComponent as HelpIcon } from \"@webiny/icons/help.svg\";\nimport type { Meta, StoryObj } from \"@storybook/react-webpack5\";\nimport { List, type ListItemProps as BaseListItemProps } from \"./List.js\";\nimport { Avatar } from \"~/Avatar/index.js\";\n\nconst meta: Meta<typeof List> = {\n title: \"Components/List\",\n component: List,\n parameters: {\n layout: \"padded\"\n }\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof List>;\n\ninterface ListItemProps extends Omit<BaseListItemProps, \"title\"> {\n index: number;\n}\n\nconst ListItem = (props: ListItemProps) => {\n return <List.Item title={`List item ${props.index}`} {...props} />;\n};\n\nexport const Default: Story = {\n args: {\n children: (\n <>\n <ListItem index={1} />\n <ListItem index={2} />\n <ListItem index={3} />\n </>\n )\n }\n};\n\nexport const WithTransparentBackground: Story = {\n args: {\n background: \"transparent\",\n children: (\n <>\n <List.Item\n icon={<UserIcon />}\n title=\"User Profile\"\n description=\"View and edit your profile information\"\n />\n <List.Item\n icon={<SettingsIcon />}\n title=\"Settings\"\n description=\"Configure application settings\"\n />\n <List.Item\n icon={<HelpIcon />}\n title=\"Help & Support\"\n description=\"Get assistance and view documentation\"\n />\n </>\n )\n },\n decorators: [\n Story => (\n <div className=\"bg-neutral-light p-md\">\n <Story />\n </div>\n )\n ]\n};\n\nexport const WithBaseBackground: Story = {\n args: {\n ...Default.args,\n background: \"base\"\n }\n};\n\nexport const WithLightBackground: Story = {\n args: {\n background: \"light\",\n children: (\n <>\n <List.Item\n icon={<UserIcon />}\n title=\"User Profile\"\n description=\"View and edit your profile information\"\n />\n <List.Item\n icon={<SettingsIcon />}\n title=\"Settings\"\n description=\"Configure application settings\"\n />\n <List.Item\n icon={<HelpIcon />}\n title=\"Help & Support\"\n description=\"Get assistance and view documentation\"\n />\n </>\n )\n }\n};\n\nexport const WithUnderlineVariant: Story = {\n args: {\n ...Default.args,\n variant: \"underline\"\n }\n};\n\nexport const WithContainerVariant: Story = {\n args: {\n variant: \"container\",\n children: (\n <>\n <List.Item\n icon={<UserIcon />}\n title=\"User Profile\"\n description=\"View and edit your profile information\"\n />\n <List.Item\n icon={<SettingsIcon />}\n title=\"Settings\"\n description=\"Configure application settings\"\n />\n <List.Item\n icon={<HelpIcon />}\n title=\"Help & Support\"\n description=\"Get assistance and view documentation\"\n />\n </>\n )\n },\n decorators: [\n Story => (\n <div className=\"bg-neutral-light p-md\">\n <Story />\n </div>\n )\n ]\n};\n\nexport const WithDescription: Story = {\n args: {\n children: (\n <>\n <List.Item\n title=\"User Profile\"\n description=\"View and edit your profile information\"\n />\n <List.Item title=\"Settings\" description=\"Configure application settings\" />\n <List.Item\n title=\"Help & Support\"\n description=\"Get assistance and view documentation\"\n />\n </>\n )\n }\n};\n\nexport const WithIcon: Story = {\n args: {\n children: (\n <>\n <List.Item icon={<UserIcon />} title=\"User Profile\" />\n <List.Item icon={<SettingsIcon />} title=\"Settings\" />\n <List.Item icon={<HelpIcon />} title=\"Help & Support\" />\n </>\n )\n }\n};\n\nexport const WithIconsAndDescriptions: Story = {\n args: {\n children: (\n <>\n <List.Item\n icon={<UserIcon />}\n title=\"User Profile\"\n description=\"View and edit your profile information\"\n />\n <List.Item\n icon={<SettingsIcon />}\n title=\"Settings\"\n description=\"Configure application settings\"\n />\n <List.Item\n icon={<HelpIcon />}\n title=\"Help & Support\"\n description=\"Get assistance and view documentation\"\n />\n </>\n )\n }\n};\n\nexport const WithAvatar: Story = {\n args: {\n ...Default.args,\n children: (\n <>\n <ListItem\n index={1}\n description=\"Lorem ipsum dolor sit amet, consectetur adipiscing elit.\"\n icon={\n <Avatar\n image={\n <Avatar.Image src=\"https://i.pravatar.cc/300?img=1\" alt=\"@webiny\" />\n }\n fallback={<Avatar.Fallback>W</Avatar.Fallback>}\n />\n }\n />\n <ListItem\n index={2}\n description=\"Lorem ipsum dolor sit amet, consectetur adipiscing elit.\"\n icon={\n <Avatar\n image={\n <Avatar.Image src=\"https://i.pravatar.cc/300?img=2\" alt=\"@webiny\" />\n }\n fallback={<Avatar.Fallback>W</Avatar.Fallback>}\n />\n }\n />\n </>\n )\n }\n};\n\nexport const WithHandle: Story = {\n args: {\n ...Default.args,\n children: (\n <>\n <ListItem\n index={1}\n description=\"Lorem ipsum dolor sit amet, consectetur adipiscing elit.\"\n handle={<List.Item.Handle />}\n />\n <ListItem\n index={2}\n description=\"Lorem ipsum dolor sit amet, consectetur adipiscing elit.\"\n handle={<List.Item.Handle />}\n />\n </>\n )\n }\n};\n\nexport const WithActions: Story = {\n ...Default,\n args: {\n children: (\n <>\n <ListItem\n index={1}\n description=\"Lorem ipsum dolor sit amet, consectetur adipiscing elit.\"\n icon={<List.Item.Icon icon={<ChartIcon />} label={\"Chart\"} />}\n actions={\n <>\n <List.Item.Action icon={<EditIcon />} />\n <List.Item.Action icon={<TrashIcon />} />\n <List.Item.Action.Separator />\n <List.Item.Action icon={<OpenIcon />} />\n <List.Item.Action icon={<MoreIcon />} />\n </>\n }\n />\n <ListItem\n index={2}\n description=\"Lorem ipsum dolor sit amet, consectetur adipiscing elit.\"\n icon={<List.Item.Icon icon={<ChartIcon />} label={\"Chart\"} />}\n actions={\n <>\n <List.Item.Action icon={<EditIcon />} />\n <List.Item.Action icon={<TrashIcon />} />\n <List.Item.Action.Separator />\n <List.Item.Action icon={<OpenIcon />} />\n <List.Item.Action icon={<MoreIcon />} />\n </>\n }\n />\n </>\n )\n }\n};\n\nexport const WithDisabled: Story = {\n args: {\n children: (\n <>\n <List.Item\n title=\"User Profile\"\n description=\"View and edit your profile information\"\n onClick={() => alert(\"User Profile clicked\")}\n />\n <List.Item\n title=\"Settings\"\n description=\"Configure application settings\"\n disabled={true}\n onClick={() => alert(\"This alert won't show because the item is disabled\")}\n />\n <List.Item\n title=\"Help & Support\"\n description=\"Get assistance and view documentation\"\n onClick={() => alert(\"Help & Support clicked\")}\n />\n </>\n )\n }\n};\n\nexport const WithActivated: Story = {\n args: {\n children: (\n <>\n <List.Item\n title=\"User Profile\"\n description=\"View and edit your profile information\"\n activated={true}\n onClick={() => console.log(\"User Profile clicked\")}\n />\n <List.Item\n title=\"Settings\"\n description=\"Configure application settings\"\n onClick={() => console.log(\"Settings clicked\")}\n />\n <List.Item\n title=\"Help & Support\"\n description=\"Get assistance and view documentation\"\n onClick={() => console.log(\"Help & Support clicked\")}\n />\n </>\n )\n }\n};\n\nexport const WithClickHandlers: Story = {\n args: {\n children: (\n <>\n <List.Item\n title=\"User Profile\"\n description=\"View and edit your profile information\"\n onClick={() => alert(\"User Profile clicked\")}\n />\n <List.Item\n title=\"Settings\"\n description=\"Configure application settings\"\n onClick={() => alert(\"Settings clicked\")}\n />\n <List.Item\n title=\"Help & Support\"\n description=\"Get assistance and view documentation\"\n onClick={() => alert(\"Help & Support clicked\")}\n />\n </>\n )\n }\n};\n\nexport const WithSelectedItem: Story = {\n render: () => {\n // Using render function to handle state\n const [selectedIndex, setSelectedIndex] = React.useState(0);\n\n return (\n <List>\n <List.Item\n title=\"User Profile\"\n description=\"View and edit your profile information\"\n selected={selectedIndex === 0}\n onClick={() => setSelectedIndex(0)}\n />\n <List.Item\n title=\"Settings\"\n description=\"Configure application settings\"\n selected={selectedIndex === 1}\n onClick={() => setSelectedIndex(1)}\n />\n <List.Item\n title=\"Help & Support\"\n description=\"Get assistance and view documentation\"\n selected={selectedIndex === 2}\n onClick={() => setSelectedIndex(2)}\n />\n </List>\n );\n }\n};\n\nexport const Documentation: Story = {\n args: {\n variant: \"underline\",\n background: \"base\",\n children: (\n <>\n <List.Item\n icon={<UserIcon />}\n title=\"User Profile\"\n description=\"View and edit your profile information\"\n onClick={() => console.log(\"User Profile clicked\")}\n />\n <List.Item\n icon={<SettingsIcon />}\n title=\"Settings\"\n description=\"Configure application settings\"\n onClick={() => console.log(\"Settings clicked\")}\n />\n <List.Item\n icon={<HelpIcon />}\n title=\"Help & Support\"\n description=\"Get assistance and view documentation\"\n onClick={() => console.log(\"Help & Support clicked\")}\n />\n </>\n )\n },\n argTypes: {\n variant: {\n control: \"select\",\n options: [\"underline\", \"container\"],\n description: \"The visual style of the list\"\n },\n background: {\n control: \"select\",\n options: [\"base\", \"light\", \"transparent\"],\n description: \"The background color of the list\"\n },\n children: {\n description: \"The content of the list. Please refer to the example code for details.\"\n }\n },\n parameters: {\n docs: {\n description: {\n story: \"This example shows a List with icons, titles, descriptions, and click handlers.\"\n }\n }\n }\n};\n"],"names":["meta","List","ListItem","props","Default","WithTransparentBackground","UserIcon","SettingsIcon","HelpIcon","Story","WithBaseBackground","WithLightBackground","WithUnderlineVariant","WithContainerVariant","WithDescription","WithIcon","WithIconsAndDescriptions","WithAvatar","Avatar","WithHandle","WithActions","ChartIcon","EditIcon","TrashIcon","OpenIcon","MoreIcon","WithDisabled","alert","WithActivated","console","WithClickHandlers","WithSelectedItem","selectedIndex","setSelectedIndex","React","Documentation"],"mappings":";;;;;;;;;;;AAaA,MAAMA,OAA0B;IAC5B,OAAO;IACP,WAAWC;IACX,YAAY;QACR,QAAQ;IACZ;AACJ;AAEA,qBAAeD;AAQf,MAAME,WAAW,CAACC,QACP,WAAP,GAAO,oBAACF,KAAK,IAAI;QAAC,OAAO,CAAC,UAAU,EAAEE,MAAM,KAAK,EAAE;QAAG,GAAGA,KAAK;;AAG3D,MAAMC,UAAiB;IAC1B,MAAM;QACF,UAAU,WAAV,GACI,wDACI,oBAACF,UAAQA;YAAC,OAAO;0BACjB,oBAACA,UAAQA;YAAC,OAAO;0BACjB,oBAACA,UAAQA;YAAC,OAAO;;IAG7B;AACJ;AAEO,MAAMG,4BAAmC;IAC5C,MAAM;QACF,YAAY;QACZ,UAAU,WAAV,GACI,wDACI,oBAACJ,KAAK,IAAI;YACN,oBAAM,oBAACK,2BAAQA;YACf,OAAM;YACN,aAAY;0BAEhB,oBAACL,KAAK,IAAI;YACN,oBAAM,oBAACM,6BAAYA;YACnB,OAAM;YACN,aAAY;0BAEhB,oBAACN,KAAK,IAAI;YACN,oBAAM,oBAACO,yBAAQA;YACf,OAAM;YACN,aAAY;;IAI5B;IACA,YAAY;QACRC,CAAAA,QAAAA,WAAAA,GACI,oBAAC;gBAAI,WAAU;6BACX,oBAACA,OAAAA;KAGZ;AACL;AAEO,MAAMC,qBAA4B;IACrC,MAAM;QACF,GAAGN,QAAQ,IAAI;QACf,YAAY;IAChB;AACJ;AAEO,MAAMO,sBAA6B;IACtC,MAAM;QACF,YAAY;QACZ,UAAU,WAAV,GACI,wDACI,oBAACV,KAAK,IAAI;YACN,oBAAM,oBAACK,2BAAQA;YACf,OAAM;YACN,aAAY;0BAEhB,oBAACL,KAAK,IAAI;YACN,oBAAM,oBAACM,6BAAYA;YACnB,OAAM;YACN,aAAY;0BAEhB,oBAACN,KAAK,IAAI;YACN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YACN,aAAY;YACZ,SAAS,IAAMqB,QAAQ,GAAG,CAAC;;IAI3C;IACA,UAAU;QACN,SAAS;YACL,SAAS;YACT,SAAS;gBAAC;gBAAa;aAAY;YACnC,aAAa;QACjB;QACA,YAAY;YACR,SAAS;YACT,SAAS;gBAAC;gBAAQ;gBAAS;aAAc;YACzC,aAAa;QACjB;QACA,UAAU;YACN,aAAa;QACjB;IACJ;IACA,YAAY;QACR,MAAM;YACF,aAAa;gBACT,OAAO;YACX;QACJ;IACJ;AACJ"}
1
+ {"version":3,"file":"List/List.stories.js","sources":["../../src/List/List.stories.tsx"],"sourcesContent":["import React from \"react\";\nimport { ReactComponent as ChartIcon } from \"@webiny/icons/insert_chart.svg\";\nimport { ReactComponent as MoreIcon } from \"@webiny/icons/more_vert.svg\";\nimport { ReactComponent as OpenIcon } from \"@webiny/icons/visibility.svg\";\nimport { ReactComponent as EditIcon } from \"@webiny/icons/edit.svg\";\nimport { ReactComponent as TrashIcon } from \"@webiny/icons/delete.svg\";\nimport { ReactComponent as UserIcon } from \"@webiny/icons/person.svg\";\nimport { ReactComponent as SettingsIcon } from \"@webiny/icons/settings.svg\";\nimport { ReactComponent as HelpIcon } from \"@webiny/icons/help.svg\";\nimport type { Meta, StoryObj } from \"@storybook/react\";\nimport { List, type ListItemProps as BaseListItemProps } from \"./List.js\";\nimport { Avatar } from \"~/Avatar/index.js\";\n\nconst meta: Meta<typeof List> = {\n title: \"Components/List\",\n component: List,\n parameters: {\n layout: \"padded\"\n }\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof List>;\n\ninterface ListItemProps extends Omit<BaseListItemProps, \"title\"> {\n index: number;\n}\n\nconst ListItem = (props: ListItemProps) => {\n return <List.Item title={`List item ${props.index}`} {...props} />;\n};\n\nexport const Default: Story = {\n args: {\n children: (\n <>\n <ListItem index={1} />\n <ListItem index={2} />\n <ListItem index={3} />\n </>\n )\n }\n};\n\nexport const WithTransparentBackground: Story = {\n args: {\n background: \"transparent\",\n children: (\n <>\n <List.Item\n icon={<UserIcon />}\n title=\"User Profile\"\n description=\"View and edit your profile information\"\n />\n <List.Item\n icon={<SettingsIcon />}\n title=\"Settings\"\n description=\"Configure application settings\"\n />\n <List.Item\n icon={<HelpIcon />}\n title=\"Help & Support\"\n description=\"Get assistance and view documentation\"\n />\n </>\n )\n },\n decorators: [\n Story => (\n <div className=\"bg-neutral-light p-md\">\n <Story />\n </div>\n )\n ]\n};\n\nexport const WithBaseBackground: Story = {\n args: {\n ...Default.args,\n background: \"base\"\n }\n};\n\nexport const WithLightBackground: Story = {\n args: {\n background: \"light\",\n children: (\n <>\n <List.Item\n icon={<UserIcon />}\n title=\"User Profile\"\n description=\"View and edit your profile information\"\n />\n <List.Item\n icon={<SettingsIcon />}\n title=\"Settings\"\n description=\"Configure application settings\"\n />\n <List.Item\n icon={<HelpIcon />}\n title=\"Help & Support\"\n description=\"Get assistance and view documentation\"\n />\n </>\n )\n }\n};\n\nexport const WithUnderlineVariant: Story = {\n args: {\n ...Default.args,\n variant: \"underline\"\n }\n};\n\nexport const WithContainerVariant: Story = {\n args: {\n variant: \"container\",\n children: (\n <>\n <List.Item\n icon={<UserIcon />}\n title=\"User Profile\"\n description=\"View and edit your profile information\"\n />\n <List.Item\n icon={<SettingsIcon />}\n title=\"Settings\"\n description=\"Configure application settings\"\n />\n <List.Item\n icon={<HelpIcon />}\n title=\"Help & Support\"\n description=\"Get assistance and view documentation\"\n />\n </>\n )\n },\n decorators: [\n Story => (\n <div className=\"bg-neutral-light p-md\">\n <Story />\n </div>\n )\n ]\n};\n\nexport const WithDescription: Story = {\n args: {\n children: (\n <>\n <List.Item\n title=\"User Profile\"\n description=\"View and edit your profile information\"\n />\n <List.Item title=\"Settings\" description=\"Configure application settings\" />\n <List.Item\n title=\"Help & Support\"\n description=\"Get assistance and view documentation\"\n />\n </>\n )\n }\n};\n\nexport const WithIcon: Story = {\n args: {\n children: (\n <>\n <List.Item icon={<UserIcon />} title=\"User Profile\" />\n <List.Item icon={<SettingsIcon />} title=\"Settings\" />\n <List.Item icon={<HelpIcon />} title=\"Help & Support\" />\n </>\n )\n }\n};\n\nexport const WithIconsAndDescriptions: Story = {\n args: {\n children: (\n <>\n <List.Item\n icon={<UserIcon />}\n title=\"User Profile\"\n description=\"View and edit your profile information\"\n />\n <List.Item\n icon={<SettingsIcon />}\n title=\"Settings\"\n description=\"Configure application settings\"\n />\n <List.Item\n icon={<HelpIcon />}\n title=\"Help & Support\"\n description=\"Get assistance and view documentation\"\n />\n </>\n )\n }\n};\n\nexport const WithAvatar: Story = {\n args: {\n ...Default.args,\n children: (\n <>\n <ListItem\n index={1}\n description=\"Lorem ipsum dolor sit amet, consectetur adipiscing elit.\"\n icon={\n <Avatar\n image={\n <Avatar.Image src=\"https://i.pravatar.cc/300?img=1\" alt=\"@webiny\" />\n }\n fallback={<Avatar.Fallback>W</Avatar.Fallback>}\n />\n }\n />\n <ListItem\n index={2}\n description=\"Lorem ipsum dolor sit amet, consectetur adipiscing elit.\"\n icon={\n <Avatar\n image={\n <Avatar.Image src=\"https://i.pravatar.cc/300?img=2\" alt=\"@webiny\" />\n }\n fallback={<Avatar.Fallback>W</Avatar.Fallback>}\n />\n }\n />\n </>\n )\n }\n};\n\nexport const WithHandle: Story = {\n args: {\n ...Default.args,\n children: (\n <>\n <ListItem\n index={1}\n description=\"Lorem ipsum dolor sit amet, consectetur adipiscing elit.\"\n handle={<List.Item.Handle />}\n />\n <ListItem\n index={2}\n description=\"Lorem ipsum dolor sit amet, consectetur adipiscing elit.\"\n handle={<List.Item.Handle />}\n />\n </>\n )\n }\n};\n\nexport const WithActions: Story = {\n ...Default,\n args: {\n children: (\n <>\n <ListItem\n index={1}\n description=\"Lorem ipsum dolor sit amet, consectetur adipiscing elit.\"\n icon={<List.Item.Icon icon={<ChartIcon />} label={\"Chart\"} />}\n actions={\n <>\n <List.Item.Action icon={<EditIcon />} />\n <List.Item.Action icon={<TrashIcon />} />\n <List.Item.Action.Separator />\n <List.Item.Action icon={<OpenIcon />} />\n <List.Item.Action icon={<MoreIcon />} />\n </>\n }\n />\n <ListItem\n index={2}\n description=\"Lorem ipsum dolor sit amet, consectetur adipiscing elit.\"\n icon={<List.Item.Icon icon={<ChartIcon />} label={\"Chart\"} />}\n actions={\n <>\n <List.Item.Action icon={<EditIcon />} />\n <List.Item.Action icon={<TrashIcon />} />\n <List.Item.Action.Separator />\n <List.Item.Action icon={<OpenIcon />} />\n <List.Item.Action icon={<MoreIcon />} />\n </>\n }\n />\n </>\n )\n }\n};\n\nexport const WithDisabled: Story = {\n args: {\n children: (\n <>\n <List.Item\n title=\"User Profile\"\n description=\"View and edit your profile information\"\n onClick={() => alert(\"User Profile clicked\")}\n />\n <List.Item\n title=\"Settings\"\n description=\"Configure application settings\"\n disabled={true}\n onClick={() => alert(\"This alert won't show because the item is disabled\")}\n />\n <List.Item\n title=\"Help & Support\"\n description=\"Get assistance and view documentation\"\n onClick={() => alert(\"Help & Support clicked\")}\n />\n </>\n )\n }\n};\n\nexport const WithActivated: Story = {\n args: {\n children: (\n <>\n <List.Item\n title=\"User Profile\"\n description=\"View and edit your profile information\"\n activated={true}\n onClick={() => console.log(\"User Profile clicked\")}\n />\n <List.Item\n title=\"Settings\"\n description=\"Configure application settings\"\n onClick={() => console.log(\"Settings clicked\")}\n />\n <List.Item\n title=\"Help & Support\"\n description=\"Get assistance and view documentation\"\n onClick={() => console.log(\"Help & Support clicked\")}\n />\n </>\n )\n }\n};\n\nexport const WithClickHandlers: Story = {\n args: {\n children: (\n <>\n <List.Item\n title=\"User Profile\"\n description=\"View and edit your profile information\"\n onClick={() => alert(\"User Profile clicked\")}\n />\n <List.Item\n title=\"Settings\"\n description=\"Configure application settings\"\n onClick={() => alert(\"Settings clicked\")}\n />\n <List.Item\n title=\"Help & Support\"\n description=\"Get assistance and view documentation\"\n onClick={() => alert(\"Help & Support clicked\")}\n />\n </>\n )\n }\n};\n\nexport const WithSelectedItem: Story = {\n render: () => {\n // Using render function to handle state\n const [selectedIndex, setSelectedIndex] = React.useState(0);\n\n return (\n <List>\n <List.Item\n title=\"User Profile\"\n description=\"View and edit your profile information\"\n selected={selectedIndex === 0}\n onClick={() => setSelectedIndex(0)}\n />\n <List.Item\n title=\"Settings\"\n description=\"Configure application settings\"\n selected={selectedIndex === 1}\n onClick={() => setSelectedIndex(1)}\n />\n <List.Item\n title=\"Help & Support\"\n description=\"Get assistance and view documentation\"\n selected={selectedIndex === 2}\n onClick={() => setSelectedIndex(2)}\n />\n </List>\n );\n }\n};\n\nexport const Documentation: Story = {\n args: {\n variant: \"underline\",\n background: \"base\",\n children: (\n <>\n <List.Item\n icon={<UserIcon />}\n title=\"User Profile\"\n description=\"View and edit your profile information\"\n onClick={() => console.log(\"User Profile clicked\")}\n />\n <List.Item\n icon={<SettingsIcon />}\n title=\"Settings\"\n description=\"Configure application settings\"\n onClick={() => console.log(\"Settings clicked\")}\n />\n <List.Item\n icon={<HelpIcon />}\n title=\"Help & Support\"\n description=\"Get assistance and view documentation\"\n onClick={() => console.log(\"Help & Support clicked\")}\n />\n </>\n )\n },\n argTypes: {\n variant: {\n control: \"select\",\n options: [\"underline\", \"container\"],\n description: \"The visual style of the list\"\n },\n background: {\n control: \"select\",\n options: [\"base\", \"light\", \"transparent\"],\n description: \"The background color of the list\"\n },\n children: {\n description: \"The content of the list. Please refer to the example code for details.\"\n }\n },\n parameters: {\n docs: {\n description: {\n story: \"This example shows a List with icons, titles, descriptions, and click handlers.\"\n }\n }\n }\n};\n"],"names":["meta","List","ListItem","props","Default","WithTransparentBackground","UserIcon","SettingsIcon","HelpIcon","Story","WithBaseBackground","WithLightBackground","WithUnderlineVariant","WithContainerVariant","WithDescription","WithIcon","WithIconsAndDescriptions","WithAvatar","Avatar","WithHandle","WithActions","ChartIcon","EditIcon","TrashIcon","OpenIcon","MoreIcon","WithDisabled","alert","WithActivated","console","WithClickHandlers","WithSelectedItem","selectedIndex","setSelectedIndex","React","Documentation"],"mappings":";;;;;;;;;;;AAaA,MAAMA,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AAa;aAAY;YACnC,aAAa;QACjB;QACA,YAAY;YACR,SAAS;YACT,SAAS;gBAAC;gBAAQ;gBAAS;aAAc;YACzC,aAAa;QACjB;QACA,UAAU;YACN,aAAa;QACjB;IACJ;IACA,YAAY;QACR,MAAM;YACF,aAAa;gBACT,OAAO;YACX;QACJ;IACJ;AACJ"}
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from "@storybook/react-webpack5";
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { Loader } from "./Loader.js";
3
3
  declare const meta: Meta<typeof Loader>;
4
4
  export default meta;
@@ -1 +1 @@
1
- {"version":3,"file":"Loader/Loader.stories.js","sources":["../../src/Loader/Loader.stories.tsx"],"sourcesContent":["import React, { useState, useEffect } from \"react\";\nimport type { Meta, StoryObj } from \"@storybook/react-webpack5\";\nimport { Loader } from \"./Loader.js\";\n\nconst meta: Meta<typeof Loader> = {\n title: \"Components/Loader\",\n component: Loader,\n parameters: {\n layout: \"padded\"\n }\n};\n\nexport default meta;\ntype Story = StoryObj<typeof Loader>;\n\nexport const Documentation: Story = {\n args: {\n size: \"md\",\n variant: \"accent\",\n indeterminate: true,\n value: 66,\n min: 0,\n max: 100,\n text: \"Loading...\",\n className: undefined\n },\n argTypes: {\n size: {\n description: \"Size of the loader\",\n control: \"select\",\n options: [\"xs\", \"sm\", \"md\", \"lg\"]\n },\n variant: {\n description: \"Visual style variant of the loader\",\n control: \"select\",\n options: [\"accent\", \"subtle\", \"negative\"]\n },\n indeterminate: {\n description: \"Whether the loader should show indeterminate progress\",\n control: \"boolean\"\n },\n value: {\n description: \"Current progress value (when not indeterminate)\",\n control: { type: \"number\", min: 0, max: 100 }\n },\n min: {\n description: \"Minimum value for progress calculation\",\n control: \"number\"\n },\n max: {\n description: \"Maximum value for progress calculation\",\n control: \"number\"\n },\n text: {\n description: \"Optional text to display below the loader\",\n control: \"text\"\n },\n className: {\n description:\n \"Additional CSS class names. You can pass multiple class names, separated by commas or spaces.\"\n }\n }\n};\n\nexport const Default: Story = {};\n\nexport const ExtraSmall: Story = {\n args: {\n size: \"xs\"\n }\n};\n\nexport const Small: Story = {\n args: {\n size: \"sm\"\n }\n};\n\nexport const Medium: Story = {\n args: {\n size: \"md\"\n }\n};\n\nexport const Large: Story = {\n args: {\n size: \"lg\"\n }\n};\n\nexport const Accent: Story = {\n args: {\n variant: \"accent\"\n }\n};\n\nexport const Subtle: Story = {\n args: {\n variant: \"subtle\"\n }\n};\n\nexport const Negative: Story = {\n args: {\n variant: \"negative\"\n },\n decorators: [\n Story => (\n <div className=\"bg-primary p-md rounded-md\">\n <Story />\n </div>\n )\n ]\n};\n\nexport const WithControlledValue: Story = {\n args: {\n value: 0,\n indeterminate: false\n },\n render: args => {\n const [value, setValue] = useState(args.value);\n\n useEffect(() => {\n const interval = setInterval(() => {\n setValue((prevValue = 0) => {\n if (prevValue === 100) {\n return prevValue;\n }\n return prevValue + 5;\n });\n }, 50);\n\n return () => clearInterval(interval);\n }, []);\n\n return <Loader {...args} value={value} text={`Loading ${value}%`} />;\n }\n};\n\nexport const WithText: Story = {\n args: {\n text: \"Loading...\"\n }\n};\n"],"names":["meta","Loader","Documentation","undefined","Default","ExtraSmall","Small","Medium","Large","Accent","Subtle","Negative","Story","WithControlledValue","args","value","setValue","useState","useEffect","interval","setInterval","prevValue","clearInterval","WithText"],"mappings":";;AAIA,MAAMA,OAA4B;IAC9B,OAAO;IACP,WAAWC;IACX,YAAY;QACR,QAAQ;IACZ;AACJ;AAEA,uBAAeD;AAGR,MAAME,gBAAuB;IAChC,MAAM;QACF,MAAM;QACN,SAAS;QACT,eAAe;QACf,OAAO;QACP,KAAK;QACL,KAAK;QACL,MAAM;QACN,WAAWC;IACf;IACA,UAAU;QACN,MAAM;YACF,aAAa;YACb,SAAS;YACT,SAAS;gBAAC;gBAAM;gBAAM;gBAAM;aAAK;QACrC;QACA,SAAS;YACL,aAAa;YACb,SAAS;YACT,SAAS;gBAAC;gBAAU;gBAAU;aAAW;QAC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pE;AACJ;AAEO,MAAMQ,WAAkB;IAC3B,MAAM;QACF,MAAM;IACV;AACJ"}
1
+ {"version":3,"file":"Loader/Loader.stories.js","sources":["../../src/Loader/Loader.stories.tsx"],"sourcesContent":["import React, { useState, useEffect } from \"react\";\nimport type { Meta, StoryObj } from \"@storybook/react\";\nimport { Loader } from \"./Loader.js\";\n\nconst meta: Meta<typeof Loader> = {\n title: \"Components/Loader\",\n component: Loader,\n parameters: {\n layout: \"padded\"\n }\n};\n\nexport default meta;\ntype Story = StoryObj<typeof Loader>;\n\nexport const Documentation: Story = {\n args: {\n size: \"md\",\n variant: \"accent\",\n indeterminate: true,\n value: 66,\n min: 0,\n max: 100,\n text: \"Loading...\",\n className: undefined\n },\n argTypes: {\n size: {\n description: \"Size of the loader\",\n control: \"select\",\n options: [\"xs\", \"sm\", \"md\", \"lg\"]\n },\n variant: {\n description: \"Visual style variant of the loader\",\n control: \"select\",\n options: [\"accent\", \"subtle\", \"negative\"]\n },\n indeterminate: {\n description: \"Whether the loader should show indeterminate progress\",\n control: \"boolean\"\n },\n value: {\n description: \"Current progress value (when not indeterminate)\",\n control: { type: \"number\", min: 0, max: 100 }\n },\n min: {\n description: \"Minimum value for progress calculation\",\n control: \"number\"\n },\n max: {\n description: \"Maximum value for progress calculation\",\n control: \"number\"\n },\n text: {\n description: \"Optional text to display below the loader\",\n control: \"text\"\n },\n className: {\n description:\n \"Additional CSS class names. You can pass multiple class names, separated by commas or spaces.\"\n }\n }\n};\n\nexport const Default: Story = {};\n\nexport const ExtraSmall: Story = {\n args: {\n size: \"xs\"\n }\n};\n\nexport const Small: Story = {\n args: {\n size: \"sm\"\n }\n};\n\nexport const Medium: Story = {\n args: {\n size: \"md\"\n }\n};\n\nexport const Large: Story = {\n args: {\n size: \"lg\"\n }\n};\n\nexport const Accent: Story = {\n args: {\n variant: \"accent\"\n }\n};\n\nexport const Subtle: Story = {\n args: {\n variant: \"subtle\"\n }\n};\n\nexport const Negative: Story = {\n args: {\n variant: \"negative\"\n },\n decorators: [\n Story => (\n <div className=\"bg-primary p-md rounded-md\">\n <Story />\n </div>\n )\n ]\n};\n\nexport const WithControlledValue: Story = {\n args: {\n value: 0,\n indeterminate: false\n },\n render: args => {\n const [value, setValue] = useState(args.value);\n\n useEffect(() => {\n const interval = setInterval(() => {\n setValue((prevValue = 0) => {\n if (prevValue === 100) {\n return prevValue;\n }\n return prevValue + 5;\n });\n }, 50);\n\n return () => clearInterval(interval);\n }, []);\n\n return <Loader {...args} value={value} text={`Loading ${value}%`} />;\n }\n};\n\nexport const WithText: Story = {\n args: {\n text: \"Loading...\"\n }\n};\n"],"names":["meta","Loader","Documentation","undefined","Default","ExtraSmall","Small","Medium","Large","Accent","Subtle","Negative","Story","WithControlledValue","args","value","setValue","useState","useEffect","interval","setInterval","prevValue","clearInterval","WithText"],"mappings":";;AAIA,MAAMA,OAA4B;IAC9B,OAAO;IACP,WAAWC;IACX,YAAY;QACR,QAAQ;IACZ;AACJ;AAEA,uBAAeD;AAGR,MAAME,gBAAuB;IAChC,MAAM;QACF,MAAM;QACN,SAAS;QACT,eAAe;QACf,OAAO;QACP,KAAK;QACL,KAAK;QACL,MAAM;QACN,WAAWC;IACf;IACA,UAAU;QACN,MAAM;YACF,aAAa;YACb,SAAS;YACT,SAAS;gBAAC;gBAAM;gBAAM;gBAAM;aAAK;QACrC;QACA,SAAS;YACL,aAAa;YACb,SAAS;YACT,SAAS;gBAAC;gBAAU;gBAAU;aAAW;QAC7C;QACA,eAAe;YACX,aAAa;YACb,SAAS;QACb;QACA,OAAO;YACH,aAAa;YACb,SAAS;gBAAE,MAAM;gBAAU,KAAK;gBAAG,KAAK;YAAI;QAChD;QACA,KAAK;YACD,aAAa;YACb,SAAS;QACb;QACA,KAAK;YACD,aAAa;YACb,SAAS;QACb;QACA,MAAM;YACF,aAAa;YACb,SAAS;QACb;QACA,WAAW;YACP,aACI;QACR;IACJ;AACJ;AAEO,MAAMC,UAAiB,CAAC;AAExB,MAAMC,aAAoB;IAC7B,MAAM;QACF,MAAM;IACV;AACJ;AAEO,MAAMC,QAAe;IACxB,MAAM;QACF,MAAM;IACV;AACJ;AAEO,MAAMC,SAAgB;IACzB,MAAM;QACF,MAAM;IACV;AACJ;AAEO,MAAMC,QAAe;IACxB,MAAM;QACF,MAAM;IACV;AACJ;AAEO,MAAMC,SAAgB;IACzB,MAAM;QACF,SAAS;IACb;AACJ;AAEO,MAAMC,SAAgB;IACzB,MAAM;QACF,SAAS;IACb;AACJ;AAEO,MAAMC,WAAkB;IAC3B,MAAM;QACF,SAAS;IACb;IACA,YAAY;QACRC,CAAAA,QAAAA,WAAAA,GACI,oBAAC;gBAAI,WAAU;6BACX,oBAACA,OAAAA;KAGZ;AACL;AAEO,MAAMC,sBAA6B;IACtC,MAAM;QACF,OAAO;QACP,eAAe;IACnB;IACA,QAAQC,CAAAA;QACJ,MAAM,CAACC,OAAOC,SAAS,GAAGC,SAASH,KAAK,KAAK;QAE7CI,UAAU;YACN,MAAMC,WAAWC,YAAY;gBACzBJ,SAAS,CAACK,YAAY,CAAC;oBACnB,IAAIA,AAAc,QAAdA,WACA,OAAOA;oBAEX,OAAOA,YAAY;gBACvB;YACJ,GAAG;YAEH,OAAO,IAAMC,cAAcH;QAC/B,GAAG,EAAE;QAEL,OAAO,WAAP,GAAO,oBAAClB,QAAMA;YAAE,GAAGa,IAAI;YAAE,OAAOC;YAAO,MAAM,CAAC,QAAQ,EAAEA,MAAM,CAAC,CAAC;;IACpE;AACJ;AAEO,MAAMQ,WAAkB;IAC3B,MAAM;QACF,MAAM;IACV;AACJ"}
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from "@storybook/react-webpack5";
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { OverlayLoader } from "./OverlayLoader.js";
3
3
  declare const meta: Meta<typeof OverlayLoader>;
4
4
  export default meta;
@@ -1 +1 @@
1
- {"version":3,"file":"Loader/OverlayLoader.stories.js","sources":["../../src/Loader/OverlayLoader.stories.tsx"],"sourcesContent":["import React from \"react\";\nimport type { Meta, StoryObj } from \"@storybook/react-webpack5\";\nimport { OverlayLoader } from \"./OverlayLoader.js\";\n\nconst meta: Meta<typeof OverlayLoader> = {\n title: \"Components/Overlay Loader\",\n component: OverlayLoader,\n parameters: {\n layout: \"padded\"\n },\n decorators: [\n Story => (\n <div>\n <Story />\n The OverlayLoader component covers its parent container with a semi-transparent\n overlay, typically used to indicate a loading state while keeping the background\n content visible but inactive.\n </div>\n )\n ]\n};\n\nexport default meta;\ntype Story = StoryObj<typeof OverlayLoader>;\n\nexport const Documentation: Story = {\n args: {\n size: \"lg\",\n variant: \"accent\",\n indeterminate: true,\n value: 66,\n min: 0,\n max: 100,\n text: \"Loading...\",\n className: undefined\n },\n argTypes: {\n size: {\n description: \"Size of the loader\",\n control: \"select\",\n options: [\"xs\", \"sm\", \"md\", \"lg\"]\n },\n variant: {\n description: \"Visual style variant of the loader\",\n control: \"select\",\n options: [\"accent\", \"subtle\", \"negative\"]\n },\n indeterminate: {\n description: \"Whether the loader should show indeterminate progress\",\n control: \"boolean\"\n },\n value: {\n description: \"Current progress value (when not indeterminate)\",\n control: { type: \"number\", min: 0, max: 100 }\n },\n min: {\n description: \"Minimum value for progress calculation\",\n control: \"number\"\n },\n max: {\n description: \"Maximum value for progress calculation\",\n control: \"number\"\n },\n text: {\n description: \"Optional text to display below the loader\",\n control: \"text\"\n },\n className: {\n description:\n \"Additional CSS class names. You can pass multiple class names, separated by commas or spaces.\"\n }\n }\n};\n\nexport const Default: Story = {};\n\nexport const CircularProgressWithText: Story = {\n name: \"With text\",\n args: {\n text: \"Loading...\"\n }\n};\n"],"names":["meta","OverlayLoader","Story","Documentation","undefined","Default","CircularProgressWithText"],"mappings":";;AAIA,MAAMA,OAAmC;IACrC,OAAO;IACP,WAAWC;IACX,YAAY;QACR,QAAQ;IACZ;IACA,YAAY;QACRC,CAAAA,QAAAA,WAAAA,GACI,oBAAC,2BACG,oBAACA,OAAAA,OAAQ;KAMpB;AACL;AAEA,8BAAeF;AAGR,MAAMG,gBAAuB;IAChC,MAAM;QACF,MAAM;QACN,SAAS;QACT,eAAe;QACf,OAAO;QACP,KAAK;QACL,KAAK;QACL,MAAM;QACN,WAAWC;IACf;IACA,UAAU;QACN,MAAM;YACF,aAAa;YACb,SAAS;YACT,SAAS;gBAAC;gBAAM;gBAAM;gBAAM;aAAK;QACrC;QACA,SAAS;YACL,aAAa;YACb,SAAS;YACT,SAAS;gBAAC;gBAAU;gBAAU;aAAW;QAC7C;QACA,eAAe;YACX,aAAa;YACb,SAAS;QACb;QACA,OAAO;YACH,aAAa;YACb,SAAS;gBAAE,MAAM;gBAAU,KAAK;gBAAG,KAAK;YAAI;QAChD;QACA,KAAK;YACD,aAAa;YACb,SAAS;QACb;QACA,KAAK;YACD,aAAa;YACb,SAAS;QACb;QACA,MAAM;YACF,aAAa;YACb,SAAS;QACb;QACA,WAAW;YACP,aACI;QACR;IACJ;AACJ;AAEO,MAAMC,UAAiB,CAAC;AAExB,MAAMC,2BAAkC;IAC3C,MAAM;IACN,MAAM;QACF,MAAM;IACV;AACJ"}
1
+ {"version":3,"file":"Loader/OverlayLoader.stories.js","sources":["../../src/Loader/OverlayLoader.stories.tsx"],"sourcesContent":["import React from \"react\";\nimport type { Meta, StoryObj } from \"@storybook/react\";\nimport { OverlayLoader } from \"./OverlayLoader.js\";\n\nconst meta: Meta<typeof OverlayLoader> = {\n title: \"Components/Overlay Loader\",\n component: OverlayLoader,\n parameters: {\n layout: \"padded\"\n },\n decorators: [\n Story => (\n <div>\n <Story />\n The OverlayLoader component covers its parent container with a semi-transparent\n overlay, typically used to indicate a loading state while keeping the background\n content visible but inactive.\n </div>\n )\n ]\n};\n\nexport default meta;\ntype Story = StoryObj<typeof OverlayLoader>;\n\nexport const Documentation: Story = {\n args: {\n size: \"lg\",\n variant: \"accent\",\n indeterminate: true,\n value: 66,\n min: 0,\n max: 100,\n text: \"Loading...\",\n className: undefined\n },\n argTypes: {\n size: {\n description: \"Size of the loader\",\n control: \"select\",\n options: [\"xs\", \"sm\", \"md\", \"lg\"]\n },\n variant: {\n description: \"Visual style variant of the loader\",\n control: \"select\",\n options: [\"accent\", \"subtle\", \"negative\"]\n },\n indeterminate: {\n description: \"Whether the loader should show indeterminate progress\",\n control: \"boolean\"\n },\n value: {\n description: \"Current progress value (when not indeterminate)\",\n control: { type: \"number\", min: 0, max: 100 }\n },\n min: {\n description: \"Minimum value for progress calculation\",\n control: \"number\"\n },\n max: {\n description: \"Maximum value for progress calculation\",\n control: \"number\"\n },\n text: {\n description: \"Optional text to display below the loader\",\n control: \"text\"\n },\n className: {\n description:\n \"Additional CSS class names. You can pass multiple class names, separated by commas or spaces.\"\n }\n }\n};\n\nexport const Default: Story = {};\n\nexport const CircularProgressWithText: Story = {\n name: \"With text\",\n args: {\n text: \"Loading...\"\n }\n};\n"],"names":["meta","OverlayLoader","Story","Documentation","undefined","Default","CircularProgressWithText"],"mappings":";;AAIA,MAAMA,OAAmC;IACrC,OAAO;IACP,WAAWC;IACX,YAAY;QACR,QAAQ;IACZ;IACA,YAAY;QACRC,CAAAA,QAAAA,WAAAA,GACI,oBAAC,2BACG,oBAACA,OAAAA,OAAQ;KAMpB;AACL;AAEA,8BAAeF;AAGR,MAAMG,gBAAuB;IAChC,MAAM;QACF,MAAM;QACN,SAAS;QACT,eAAe;QACf,OAAO;QACP,KAAK;QACL,KAAK;QACL,MAAM;QACN,WAAWC;IACf;IACA,UAAU;QACN,MAAM;YACF,aAAa;YACb,SAAS;YACT,SAAS;gBAAC;gBAAM;gBAAM;gBAAM;aAAK;QACrC;QACA,SAAS;YACL,aAAa;YACb,SAAS;YACT,SAAS;gBAAC;gBAAU;gBAAU;aAAW;QAC7C;QACA,eAAe;YACX,aAAa;YACb,SAAS;QACb;QACA,OAAO;YACH,aAAa;YACb,SAAS;gBAAE,MAAM;gBAAU,KAAK;gBAAG,KAAK;YAAI;QAChD;QACA,KAAK;YACD,aAAa;YACb,SAAS;QACb;QACA,KAAK;YACD,aAAa;YACb,SAAS;QACb;QACA,MAAM;YACF,aAAa;YACb,SAAS;QACb;QACA,WAAW;YACP,aACI;QACR;IACJ;AACJ;AAEO,MAAMC,UAAiB,CAAC;AAExB,MAAMC,2BAAkC;IAC3C,MAAM;IACN,MAAM;QACF,MAAM;IACV;AACJ"}
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from "@storybook/react-webpack5";
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { MultiAutoComplete } from "./MultiAutoComplete.js";
3
3
  declare const meta: Meta<typeof MultiAutoComplete>;
4
4
  export default meta;
@@ -1 +1 @@
1
- {"version":3,"file":"MultiAutoComplete/MultiAutoComplete.stories.js","sources":["../../src/MultiAutoComplete/MultiAutoComplete.stories.tsx"],"sourcesContent":["import React, { useState, useEffect } from \"react\";\nimport type { Meta, StoryObj } from \"@storybook/react-webpack5\";\nimport { MultiAutoComplete } from \"./MultiAutoComplete.js\";\n\nconst meta: Meta<typeof MultiAutoComplete> = {\n title: \"Components/Form/Multi AutoComplete\",\n component: MultiAutoComplete,\n argTypes: {\n onValuesChange: { action: \"onValuesChange\" },\n onOpenChange: { action: \"onOpenChange\" },\n disabled: {\n control: \"boolean\",\n defaultValue: false\n }\n },\n parameters: {\n layout: \"padded\"\n },\n render: args => {\n const [values, setValues] = useState(args.values);\n return <MultiAutoComplete {...args} values={values} onValuesChange={setValues} />;\n }\n};\n\nexport default meta;\ntype Story = StoryObj<typeof MultiAutoComplete>;\n\nexport const Default: Story = {\n args: {\n options: [\n \"Eastern Standard Time (EST)\",\n \"Central Standard Time (CST)\",\n \"Pacific Standard Time (PST)\",\n \"Greenwich Mean Time (GMT)\",\n \"Central European Time (CET)\",\n \"Central Africa Time (CAT)\",\n \"India Standard Time (IST)\",\n \"China Standard Time (CST)\",\n \"Japan Standard Time (JST)\",\n \"Australian Western Standard Time (AWST)\",\n \"New Zealand Standard Time (NZST)\",\n \"Fiji Time (FJT)\",\n \"Argentina Time (ART)\",\n \"Bolivia Time (BOT)\",\n \"Brasilia Time (BRT)\"\n ]\n }\n};\n\nexport const WithLabel: Story = {\n args: {\n ...Default.args,\n label: \"Any field label\"\n }\n};\n\nexport const WithRequiredLabel: Story = {\n args: {\n ...Default.args,\n label: \"Any field label\",\n required: true\n }\n};\n\nexport const WithDescription: Story = {\n args: {\n ...Default.args,\n description: \"Provide the required information for processing your request.\"\n }\n};\n\nexport const WithNotes: Story = {\n args: {\n ...Default.args,\n note: \"Note: Ensure your selection or input is accurate before proceeding.\"\n }\n};\n\nexport const WithErrors: Story = {\n args: {\n ...Default.args,\n validation: {\n isValid: false,\n message: \"This field is required.\"\n }\n }\n};\n\nexport const Disabled: Story = {\n args: {\n ...Default.args,\n label: \"Any field label\",\n disabled: true\n }\n};\n\nexport const FullExample: Story = {\n args: {\n ...Default.args,\n label: \"Any field label\",\n required: true,\n description: \"Provide the required information for processing your request.\",\n note: \"Note: Ensure your selection or input is accurate before proceeding.\",\n validation: {\n isValid: false,\n message: \"This field is required.\"\n }\n }\n};\n\nexport const Documentation: Story = {\n render: args => {\n const [values, setValues] = useState(args.values || []);\n const [validation, setValidation] = useState({ isValid: true, message: \"\" });\n\n // Update validation when values change\n useEffect(() => {\n if (args.required && (!values || values.length === 0)) {\n setValidation({ isValid: false, message: \"Please select at least one option\" });\n } else {\n setValidation({ isValid: true, message: \"\" });\n }\n }, [values, args.required]);\n\n return (\n <MultiAutoComplete\n {...args}\n values={values}\n onValuesChange={setValues}\n validation={validation}\n />\n );\n },\n args: {\n label: \"Time Zones\",\n description: \"Select one or more time zones\",\n placeholder: \"Search or select time zones\",\n required: true,\n allowFreeInput: true,\n note: \"You can add custom time zones if needed\",\n options: [\n \"Eastern Standard Time (EST)\",\n \"Central Standard Time (CST)\",\n \"Pacific Standard Time (PST)\",\n \"Greenwich Mean Time (GMT)\"\n ],\n values: [],\n onValuesChange: undefined,\n disabled: false,\n validation: undefined,\n onOpenChange: undefined\n },\n argTypes: {\n label: {\n description: \"Label text for the component\",\n control: \"text\"\n },\n description: {\n description: \"Additional description text displayed below the label\",\n control: \"text\"\n },\n placeholder: {\n description: \"Placeholder text for the input\",\n control: \"text\"\n },\n required: {\n description: \"Marks the field as required when true\",\n control: \"boolean\"\n },\n disabled: {\n description: \"Disables the component when set to true\",\n control: \"boolean\"\n },\n allowFreeInput: {\n description: \"Allows users to add custom values not in the options list\",\n control: \"boolean\"\n },\n note: {\n description: \"Additional note text displayed below the component\",\n control: \"text\"\n },\n options: {\n description: \"Array of options to display in the dropdown\",\n control: \"object\"\n },\n values: {\n description: \"Array of currently selected values\",\n control: \"object\"\n },\n onValuesChange: {\n description: \"Callback fired when selected values change\"\n },\n validation: {\n description:\n \"Object containing validation state and message. Please refer to the example code for details on usage.\"\n },\n onOpenChange: {\n description:\n \"Callback triggered when the dropdown opens or closes, allowing you to respond to changes in its open state.\"\n }\n }\n};\n"],"names":["meta","MultiAutoComplete","args","values","setValues","useState","Default","WithLabel","WithRequiredLabel","WithDescription","WithNotes","WithErrors","Disabled","FullExample","Documentation","validation","setValidation","useEffect","undefined"],"mappings":";;AAIA,MAAMA,OAAuC;IACzC,OAAO;IACP,WAAWC;IACX,UAAU;QACN,gBAAgB;YAAE,QAAQ;QAAiB;QAC3C,cAAc;YAAE,QAAQ;QAAe;QACvC,UAAU;YACN,SAAS;YACT,cAAc;QAClB;IACJ;IACA,YAAY;QACR,QAAQ;IACZ;IACA,QAAQC,CAAAA;QACJ,MAAM,CAACC,QAAQC,UAAU,GAAGC,SAASH,KAAK,MAAM;QAChD,OAAO,WAAP,GAAO,oBAACD,mBAAiBA;YAAE,GAAGC,IAAI;YAAE,QAAQC;YAAQ,gBAAgBC;;IACxE;AACJ;AAEA,kCAAeJ;AAGR,MAAMM,UAAiB;IAC1B,MAAM;QACF,SAAS;YACL;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;SACH;IACL;AACJ;AAEO,MAAMC,YAAmB;IAC5B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AAU;QACV,gBAAgB;QAChB,MAAM;QACN,SAAS;YACL;YACA;YACA;YACA;SACH;QACD,QAAQ,EAAE;QACV,gBAAgBG;QAChB,UAAU;QACV,YAAYA;QACZ,cAAcA;IAClB;IACA,UAAU;QACN,OAAO;YACH,aAAa;YACb,SAAS;QACb;QACA,aAAa;YACT,aAAa;YACb,SAAS;QACb;QACA,aAAa;YACT,aAAa;YACb,SAAS;QACb;QACA,UAAU;YACN,aAAa;YACb,SAAS;QACb;QACA,UAAU;YACN,aAAa;YACb,SAAS;QACb;QACA,gBAAgB;YACZ,aAAa;YACb,SAAS;QACb;QACA,MAAM;YACF,aAAa;YACb,SAAS;QACb;QACA,SAAS;YACL,aAAa;YACb,SAAS;QACb;QACA,QAAQ;YACJ,aAAa;YACb,SAAS;QACb;QACA,gBAAgB;YACZ,aAAa;QACjB;QACA,YAAY;YACR,aACI;QACR;QACA,cAAc;YACV,aACI;QACR;IACJ;AACJ"}
1
+ {"version":3,"file":"MultiAutoComplete/MultiAutoComplete.stories.js","sources":["../../src/MultiAutoComplete/MultiAutoComplete.stories.tsx"],"sourcesContent":["import React, { useState, useEffect } from \"react\";\nimport type { Meta, StoryObj } from \"@storybook/react\";\nimport { MultiAutoComplete } from \"./MultiAutoComplete.js\";\n\nconst meta: Meta<typeof MultiAutoComplete> = {\n title: \"Components/Form/Multi AutoComplete\",\n component: MultiAutoComplete,\n argTypes: {\n onValuesChange: { action: \"onValuesChange\" },\n onOpenChange: { action: \"onOpenChange\" },\n disabled: {\n control: \"boolean\",\n defaultValue: false\n }\n },\n parameters: {\n layout: \"padded\"\n },\n render: args => {\n const [values, setValues] = useState(args.values);\n return <MultiAutoComplete {...args} values={values} onValuesChange={setValues} />;\n }\n};\n\nexport default meta;\ntype Story = StoryObj<typeof MultiAutoComplete>;\n\nexport const Default: Story = {\n args: {\n options: [\n \"Eastern Standard Time (EST)\",\n \"Central Standard Time (CST)\",\n \"Pacific Standard Time (PST)\",\n \"Greenwich Mean Time (GMT)\",\n \"Central European Time (CET)\",\n \"Central Africa Time (CAT)\",\n \"India Standard Time (IST)\",\n \"China Standard Time (CST)\",\n \"Japan Standard Time (JST)\",\n \"Australian Western Standard Time (AWST)\",\n \"New Zealand Standard Time (NZST)\",\n \"Fiji Time (FJT)\",\n \"Argentina Time (ART)\",\n \"Bolivia Time (BOT)\",\n \"Brasilia Time (BRT)\"\n ]\n }\n};\n\nexport const WithLabel: Story = {\n args: {\n ...Default.args,\n label: \"Any field label\"\n }\n};\n\nexport const WithRequiredLabel: Story = {\n args: {\n ...Default.args,\n label: \"Any field label\",\n required: true\n }\n};\n\nexport const WithDescription: Story = {\n args: {\n ...Default.args,\n description: \"Provide the required information for processing your request.\"\n }\n};\n\nexport const WithNotes: Story = {\n args: {\n ...Default.args,\n note: \"Note: Ensure your selection or input is accurate before proceeding.\"\n }\n};\n\nexport const WithErrors: Story = {\n args: {\n ...Default.args,\n validation: {\n isValid: false,\n message: \"This field is required.\"\n }\n }\n};\n\nexport const Disabled: Story = {\n args: {\n ...Default.args,\n label: \"Any field label\",\n disabled: true\n }\n};\n\nexport const FullExample: Story = {\n args: {\n ...Default.args,\n label: \"Any field label\",\n required: true,\n description: \"Provide the required information for processing your request.\",\n note: \"Note: Ensure your selection or input is accurate before proceeding.\",\n validation: {\n isValid: false,\n message: \"This field is required.\"\n }\n }\n};\n\nexport const Documentation: Story = {\n render: args => {\n const [values, setValues] = useState(args.values || []);\n const [validation, setValidation] = useState({ isValid: true, message: \"\" });\n\n // Update validation when values change\n useEffect(() => {\n if (args.required && (!values || values.length === 0)) {\n setValidation({ isValid: false, message: \"Please select at least one option\" });\n } else {\n setValidation({ isValid: true, message: \"\" });\n }\n }, [values, args.required]);\n\n return (\n <MultiAutoComplete\n {...args}\n values={values}\n onValuesChange={setValues}\n validation={validation}\n />\n );\n },\n args: {\n label: \"Time Zones\",\n description: \"Select one or more time zones\",\n placeholder: \"Search or select time zones\",\n required: true,\n allowFreeInput: true,\n note: \"You can add custom time zones if needed\",\n options: [\n \"Eastern Standard Time (EST)\",\n \"Central Standard Time (CST)\",\n \"Pacific Standard Time (PST)\",\n \"Greenwich Mean Time (GMT)\"\n ],\n values: [],\n onValuesChange: undefined,\n disabled: false,\n validation: undefined,\n onOpenChange: undefined\n },\n argTypes: {\n label: {\n description: \"Label text for the component\",\n control: \"text\"\n },\n description: {\n description: \"Additional description text displayed below the label\",\n control: \"text\"\n },\n placeholder: {\n description: \"Placeholder text for the input\",\n control: \"text\"\n },\n required: {\n description: \"Marks the field as required when true\",\n control: \"boolean\"\n },\n disabled: {\n description: \"Disables the component when set to true\",\n control: \"boolean\"\n },\n allowFreeInput: {\n description: \"Allows users to add custom values not in the options list\",\n control: \"boolean\"\n },\n note: {\n description: \"Additional note text displayed below the component\",\n control: \"text\"\n },\n options: {\n description: \"Array of options to display in the dropdown\",\n control: \"object\"\n },\n values: {\n description: \"Array of currently selected values\",\n control: \"object\"\n },\n onValuesChange: {\n description: \"Callback fired when selected values change\"\n },\n validation: {\n description:\n \"Object containing validation state and message. Please refer to the example code for details on usage.\"\n },\n onOpenChange: {\n description:\n \"Callback triggered when the dropdown opens or closes, allowing you to respond to changes in its open state.\"\n }\n }\n};\n"],"names":["meta","MultiAutoComplete","args","values","setValues","useState","Default","WithLabel","WithRequiredLabel","WithDescription","WithNotes","WithErrors","Disabled","FullExample","Documentation","validation","setValidation","useEffect","undefined"],"mappings":";;AAIA,MAAMA,OAAuC;IACzC,OAAO;IACP,WAAWC;IACX,UAAU;QACN,gBAAgB;YAAE,QAAQ;QAAiB;QAC3C,cAAc;YAAE,QAAQ;QAAe;QACvC,UAAU;YACN,SAAS;YACT,cAAc;QAClB;IACJ;IACA,YAAY;QACR,QAAQ;IACZ;IACA,QAAQC,CAAAA;QACJ,MAAM,CAACC,QAAQC,UAAU,GAAGC,SAASH,KAAK,MAAM;QAChD,OAAO,WAAP,GAAO,oBAACD,mBAAiBA;YAAE,GAAGC,IAAI;YAAE,QAAQC;YAAQ,gBAAgBC;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AACb;YAAQD,KAAK,QAAQ;SAAC;QAE1B,OAAO,WAAP,GACI,oBAACD,mBAAiBA;YACb,GAAGC,IAAI;YACR,QAAQC;YACR,gBAAgBC;YAChB,YAAYW;;IAGxB;IACA,MAAM;QACF,OAAO;QACP,aAAa;QACb,aAAa;QACb,UAAU;QACV,gBAAgB;QAChB,MAAM;QACN,SAAS;YACL;YACA;YACA;YACA;SACH;QACD,QAAQ,EAAE;QACV,gBAAgBG;QAChB,UAAU;QACV,YAAYA;QACZ,cAAcA;IAClB;IACA,UAAU;QACN,OAAO;YACH,aAAa;YACb,SAAS;QACb;QACA,aAAa;YACT,aAAa;YACb,SAAS;QACb;QACA,aAAa;YACT,aAAa;YACb,SAAS;QACb;QACA,UAAU;YACN,aAAa;YACb,SAAS;QACb;QACA,UAAU;YACN,aAAa;YACb,SAAS;QACb;QACA,gBAAgB;YACZ,aAAa;YACb,SAAS;QACb;QACA,MAAM;YACF,aAAa;YACb,SAAS;QACb;QACA,SAAS;YACL,aAAa;YACb,SAAS;QACb;QACA,QAAQ;YACJ,aAAa;YACb,SAAS;QACb;QACA,gBAAgB;YACZ,aAAa;QACjB;QACA,YAAY;YACR,aACI;QACR;QACA,cAAc;YACV,aACI;QACR;IACJ;AACJ"}
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from "@storybook/react-webpack5";
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { MultiAutoCompletePrimitive } from "./MultiAutoCompletePrimitive.js";
3
3
  declare const meta: Meta<typeof MultiAutoCompletePrimitive>;
4
4
  export default meta;
@@ -1 +1 @@
1
- {"version":3,"file":"MultiAutoComplete/primitives/MultiAutoCompletePrimitive.stories.js","sources":["../../../src/MultiAutoComplete/primitives/MultiAutoCompletePrimitive.stories.tsx"],"sourcesContent":["import React, { useState } from \"react\";\nimport type { Meta, StoryObj } from \"@storybook/react-webpack5\";\nimport { ReactComponent as SearchIcon } from \"@webiny/icons/search.svg\";\nimport { MultiAutoCompletePrimitive } from \"./MultiAutoCompletePrimitive.js\";\nimport { Button } from \"~/Button/index.js\";\nimport { Icon } from \"~/Icon/index.js\";\nimport { Tag } from \"~/Tag/index.js\";\n\nconst meta: Meta<typeof MultiAutoCompletePrimitive> = {\n title: \"Components/Form Primitives/Multi Autocomplete\",\n component: MultiAutoCompletePrimitive,\n parameters: {\n layout: \"padded\"\n },\n argTypes: {\n onValuesChange: { action: \"onValuesChange\" },\n onOpenChange: { action: \"onOpenChange\" },\n disabled: {\n control: {\n type: \"boolean\"\n }\n }\n },\n render: args => {\n const [values, setValues] = useState(args.values);\n return (\n <div className={\"w-full\"}>\n <MultiAutoCompletePrimitive {...args} values={values} onValuesChange={setValues} />\n <div className={\"mt-4 text-center\"}>\n Current selected values: {values?.join(\",\")}\n </div>\n </div>\n );\n }\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof MultiAutoCompletePrimitive>;\n\nexport const Default: Story = {\n args: {\n options: [\n \"Eastern Standard Time (EST)\",\n \"Central Standard Time (CST)\",\n \"Pacific Standard Time (PST)\",\n \"Greenwich Mean Time (GMT)\",\n \"Central European Time (CET)\",\n \"Central Africa Time (CAT)\",\n \"India Standard Time (IST)\",\n \"China Standard Time (CST)\",\n \"Japan Standard Time (JST)\",\n \"Australian Western Standard Time (AWST)\",\n \"New Zealand Standard Time (NZST)\",\n \"Fiji Time (FJT)\",\n \"Argentina Time (ART)\",\n \"Bolivia Time (BOT)\",\n \"Brasilia Time (BRT)\"\n ]\n }\n};\n\nexport const MediumSize: Story = {\n args: {\n ...Default.args,\n size: \"md\"\n }\n};\n\nexport const LargeSize: Story = {\n args: {\n ...Default.args,\n size: \"lg\"\n }\n};\n\nexport const ExtraLargeSize: Story = {\n args: {\n ...Default.args,\n size: \"xl\"\n }\n};\n\nexport const WithStartIcon: Story = {\n args: {\n ...Default.args,\n startIcon: <Icon label={\"Search\"} icon={<SearchIcon />} />\n }\n};\n\nexport const WithLoading: Story = {\n args: {\n ...Default.args,\n loading: true\n }\n};\n\nexport const WithoutResetAction: Story = {\n args: {\n ...Default.args,\n displayResetAction: false\n }\n};\n\nexport const PrimaryVariant: Story = {\n args: {\n ...Default.args,\n variant: \"primary\"\n }\n};\n\nexport const PrimaryVariantDisabled: Story = {\n args: {\n ...PrimaryVariant.args,\n disabled: true\n }\n};\n\nexport const PrimaryVariantInvalid: Story = {\n args: {\n ...PrimaryVariant.args,\n invalid: true\n }\n};\n\nexport const SecondaryVariant: Story = {\n args: {\n variant: \"secondary\",\n placeholder: \"Custom placeholder\"\n }\n};\n\nexport const SecondaryVariantDisabled: Story = {\n args: {\n ...SecondaryVariant.args,\n disabled: true\n }\n};\n\nexport const SecondaryVariantInvalid: Story = {\n args: {\n ...SecondaryVariant.args,\n invalid: true\n }\n};\n\nexport const GhostVariant: Story = {\n args: {\n variant: \"ghost\",\n placeholder: \"Custom placeholder\"\n }\n};\n\nexport const GhostVariantDisabled: Story = {\n args: {\n ...GhostVariant.args,\n disabled: true\n }\n};\n\nexport const GhostVariantInvalid: Story = {\n args: {\n ...GhostVariant.args,\n invalid: true\n }\n};\n\nexport const GhostNegativeVariant: Story = {\n args: {\n ...Default.args,\n variant: \"ghost-negative\",\n placeholder: \"Custom placeholder\"\n },\n decorators: [\n Story => (\n <div className=\"bg-neutral-dark text-neutral-light p-xl\">\n <Story />\n </div>\n )\n ]\n};\n\nexport const GhostNegativeVariantDisabled: Story = {\n args: {\n ...GhostNegativeVariant.args,\n disabled: true\n },\n decorators: [\n Story => (\n <div className=\"bg-neutral-dark text-neutral-light p-xl\">\n <Story />\n </div>\n )\n ]\n};\n\nexport const GhostNegativeVariantInvalid: Story = {\n args: {\n ...GhostNegativeVariant.args,\n invalid: true\n },\n decorators: [\n Story => (\n <div className=\"bg-neutral-dark text-neutral-light p-xl\">\n <Story />\n </div>\n )\n ]\n};\n\nexport const WithPredefinedValue: Story = {\n args: {\n ...Default.args,\n options: [\n { label: \"Eastern Standard Time (EST)\", value: \"est\" },\n { label: \"Central Standard Time (CST)\", value: \"cst\" },\n { label: \"Pacific Standard Time (PST)\", value: \"pst\" },\n { label: \"Greenwich Mean Time (GMT)\", value: \"gmt\" },\n { label: \"Central European Time (CET)\", value: \"cet\" },\n { label: \"Central Africa Time (CAT)\", value: \"cat\" },\n { label: \"India Standard Time (IST)\", value: \"ist\" },\n { label: \"China Standard Time (CST)\", value: \"cst_china\" },\n { label: \"Japan Standard Time (JST)\", value: \"jst\" },\n { label: \"Australian Western Standard Time (AWST)\", value: \"awst\" },\n { label: \"New Zealand Standard Time (NZST)\", value: \"nzst\" },\n { label: \"Fiji Time (FJT)\", value: \"fjt\" },\n { label: \"Argentina Time (ART)\", value: \"art\" },\n { label: \"Bolivia Time (BOT)\", value: \"bot\" },\n { label: \"Brasilia Time (BRT)\", value: \"brt\" }\n ],\n values: [\"est\", \"ist\", \"brt\"]\n }\n};\n\nexport const WithCustomPlaceholder: Story = {\n args: {\n ...Default.args,\n placeholder: \"Custom placeholder\"\n }\n};\n\nexport const WithCustomEmptyMessage: Story = {\n args: {\n ...Default.args,\n emptyMessage: \"Custom empty message\"\n }\n};\n\nexport const WithCustomInitialMessage: Story = {\n args: {\n ...Default.args,\n initialMessage: \"Custom initial message.\",\n options: []\n }\n};\n\nexport const WithAllowFreeInput: Story = {\n args: {\n ...Default.args,\n allowFreeInput: true\n }\n};\n\nexport const WithUniqueValues: Story = {\n args: {\n ...Default.args,\n uniqueValues: true,\n options: [\n { label: \"Eastern Standard Time (EST)\", value: \"est\" },\n { label: \"Central Standard Time (CST)\", value: \"cst\" },\n { label: \"Pacific Standard Time (PST)\", value: \"pst\" }\n ]\n }\n};\n\nexport const WithFormattedOptions: Story = {\n args: {\n ...Default.args,\n options: [\n { label: \"Eastern Standard Time (EST)\", value: \"est\" },\n { label: \"Central Standard Time (CST)\", value: \"cst\" },\n { label: \"Pacific Standard Time (PST)\", value: \"pst\" },\n { label: \"Greenwich Mean Time (GMT)\", value: \"gmt\" },\n { label: \"Central European Time (CET)\", value: \"cet\" },\n { label: \"Central Africa Time (CAT)\", value: \"cat\" },\n { label: \"India Standard Time (IST)\", value: \"ist\" },\n { label: \"China Standard Time (CST)\", value: \"cst_china\" },\n { label: \"Japan Standard Time (JST)\", value: \"jst\" },\n { label: \"Australian Western Standard Time (AWST)\", value: \"awst\" },\n { label: \"New Zealand Standard Time (NZST)\", value: \"nzst\" },\n { label: \"Fiji Time (FJT)\", value: \"fjt\" },\n { label: \"Argentina Time (ART)\", value: \"art\" },\n { label: \"Bolivia Time (BOT)\", value: \"bot\" },\n { label: \"Brasilia Time (BRT)\", value: \"brt\" }\n ]\n }\n};\n\nexport const WithCustomOptionRenderer: Story = {\n args: {\n ...Default.args,\n options: [\n {\n label: \"Eastern Standard Time (EST)\",\n value: \"est\",\n item: {\n name: \"Eastern Standard Time (EST)\",\n time_difference: \"-5:00\",\n flag: \"🇺🇸\",\n value: \"est\"\n }\n },\n {\n label: \"Central Standard Time (CST)\",\n value: \"cst\",\n item: {\n name: \"Central Standard Time (CST)\",\n time_difference: \"-6:00\",\n flag: \"🇺🇸\",\n value: \"cst\"\n }\n },\n {\n label: \"Pacific Standard Time (PST)\",\n value: \"pst\",\n item: {\n name: \"Pacific Standard Time (PST)\",\n time_difference: \"-8:00\",\n flag: \"🇺🇸\",\n value: \"pst\"\n }\n },\n {\n label: \"Greenwich Mean Time (GMT)\",\n value: \"gmt\",\n item: {\n name: \"Greenwich Mean Time (GMT)\",\n time_difference: \"±0:00\",\n flag: \"🇬🇧\",\n value: \"gmt\"\n }\n },\n {\n label: \"Central European Time (CET)\",\n value: \"cet\",\n item: {\n name: \"Central European Time (CET)\",\n time_difference: \"+1:00\",\n flag: \"🇪🇺\",\n value: \"cet\"\n }\n },\n {\n label: \"Central Africa Time (CAT)\",\n value: \"cat\",\n item: {\n name: \"Central Africa Time (CAT)\",\n time_difference: \"+2:00\",\n flag: \"🇿🇦\",\n value: \"cat\"\n }\n },\n {\n label: \"India Standard Time (IST)\",\n value: \"ist\",\n item: {\n name: \"India Standard Time (IST)\",\n time_difference: \"+5:30\",\n flag: \"🇮🇳\",\n value: \"ist\"\n }\n },\n {\n label: \"China Standard Time (CST)\",\n value: \"cst_china\",\n item: {\n name: \"China Standard Time (CST)\",\n time_difference: \"+8:00\",\n flag: \"🇨🇳\",\n value: \"cst_china\"\n }\n },\n {\n label: \"Japan Standard Time (JST)\",\n value: \"jst\",\n item: {\n name: \"Japan Standard Time (JST)\",\n time_difference: \"+9:00\",\n flag: \"🇯🇵\",\n value: \"jst\"\n }\n },\n {\n label: \"Australian Western Standard Time (AWST)\",\n value: \"awst\",\n item: {\n name: \"Australian Western Standard Time (AWST)\",\n time_difference: \"+8:00\",\n flag: \"🇦🇺\",\n value: \"awst\"\n }\n },\n {\n label: \"New Zealand Standard Time (NZST)\",\n value: \"nzst\",\n item: {\n name: \"New Zealand Standard Time (NZST)\",\n time_difference: \"+12:00\",\n flag: \"🇳🇿\",\n value: \"nzst\"\n }\n },\n {\n label: \"Fiji Time (FJT)\",\n value: \"fjt\",\n item: {\n name: \"Fiji Time (FJT)\",\n time_difference: \"+12:00\",\n flag: \"🇫🇯\",\n value: \"fjt\"\n }\n },\n {\n label: \"Argentina Time (ART)\",\n value: \"art\",\n item: {\n name: \"Argentina Time (ART)\",\n time_difference: \"-3:00\",\n flag: \"🇦🇷\",\n value: \"art\"\n }\n },\n {\n label: \"Bolivia Time (BOT)\",\n value: \"bot\",\n item: {\n name: \"Bolivia Time (BOT)\",\n time_difference: \"-4:00\",\n flag: \"🇧🇴\",\n value: \"bot\"\n }\n },\n {\n label: \"Brasilia Time (BRT)\",\n value: \"brt\",\n item: {\n name: \"Brasilia Time (BRT)\",\n time_difference: \"-3:00\",\n flag: \"🇧🇷\",\n value: \"brt\"\n }\n }\n ],\n optionRenderer: item => {\n return (\n <div className={\"w-full flex justify-between align-middle\"}>\n <div>\n <span className={\"mr-sm\"}>{item.flag}</span>\n {item.name}\n </div>\n <div className={\"text-sm\"}>{item.time_difference}</div>\n </div>\n );\n }\n }\n};\n\nexport const WithCustomSelectedOptionRenderer: Story = {\n args: {\n ...WithCustomOptionRenderer.args\n },\n render: args => {\n const [values, setValues] = useState(args.values || []);\n const selectedOptionRenderer = (item: any) => {\n return (\n <Tag\n variant={\"neutral-base\"}\n content={\n <>\n {item.flag} {item.name}\n </>\n }\n onDismiss={() => setValues(values.filter(value => value !== item.value))}\n />\n );\n };\n return (\n <div className={\"w-full\"}>\n <MultiAutoCompletePrimitive\n {...args}\n values={values}\n onValuesChange={setValues}\n selectedOptionRenderer={selectedOptionRenderer}\n />\n <div className={\"mt-4 text-center\"}>\n Current selected values: {values?.join(\",\")}\n </div>\n </div>\n );\n }\n};\n\nexport const WithSeparators: Story = {\n args: {\n ...Default.args,\n options: [\n { label: \"Eastern Standard Time (EST)\", value: \"est\" },\n { label: \"Central Standard Time (CST)\", value: \"cst\" },\n { label: \"Pacific Standard Time (PST)\", value: \"pst\", separator: true },\n { label: \"Greenwich Mean Time (GMT)\", value: \"gmt\" },\n { label: \"Central European Time (CET)\", value: \"cet\" },\n { label: \"Central Africa Time (CAT)\", value: \"cat\", separator: true },\n { label: \"India Standard Time (IST)\", value: \"ist\" },\n { label: \"China Standard Time (CST)\", value: \"cst_china\" },\n { label: \"Japan Standard Time (JST)\", value: \"jst\", separator: true },\n { label: \"Australian Western Standard Time (AWST)\", value: \"awst\" },\n { label: \"New Zealand Standard Time (NZST)\", value: \"nzst\" },\n { label: \"Fiji Time (FJT)\", value: \"fjt\", separator: true },\n { label: \"Argentina Time (ART)\", value: \"art\" },\n { label: \"Bolivia Time (BOT)\", value: \"bot\" },\n { label: \"Brasilia Time (BRT)\", value: \"brt\" }\n ]\n }\n};\n\nexport const WithDisabledOptions: Story = {\n args: {\n options: [\n { label: \"Eastern Standard Time (EST)\", value: \"est\", disabled: true },\n { label: \"Central Standard Time (CST)\", value: \"cst\", disabled: true },\n { label: \"Pacific Standard Time (PST)\", value: \"pst\", disabled: true },\n { label: \"Greenwich Mean Time (GMT)\", value: \"gmt\" },\n { label: \"Central European Time (CET)\", value: \"cet\" },\n { label: \"Central Africa Time (CAT)\", value: \"cat\" },\n { label: \"India Standard Time (IST)\", value: \"ist\" },\n { label: \"China Standard Time (CST)\", value: \"cst_china\" },\n { label: \"Japan Standard Time (JST)\", value: \"jst\" },\n { label: \"Australian Western Standard Time (AWST)\", value: \"awst\" },\n { label: \"New Zealand Standard Time (NZST)\", value: \"nzst\" },\n { label: \"Fiji Time (FJT)\", value: \"fjt\" },\n { label: \"Argentina Time (ART)\", value: \"art\" },\n { label: \"Bolivia Time (BOT)\", value: \"bot\" },\n { label: \"Brasilia Time (BRT)\", value: \"brt\" }\n ]\n }\n};\n\nexport const WithExternalValueControl: Story = {\n args: {\n ...Default.args,\n options: [\n { label: \"Eastern Standard Time (EST)\", value: \"est\" },\n { label: \"Central Standard Time (CST)\", value: \"cst\" },\n { label: \"Pacific Standard Time (PST)\", value: \"pst\" },\n { label: \"Greenwich Mean Time (GMT)\", value: \"gmt\" },\n { label: \"Central European Time (CET)\", value: \"cet\" },\n { label: \"Central Africa Time (CAT)\", value: \"cat\" },\n { label: \"India Standard Time (IST)\", value: \"ist\" },\n { label: \"China Standard Time (CST)\", value: \"cst_china\" },\n { label: \"Japan Standard Time (JST)\", value: \"jst\" },\n { label: \"Australian Western Standard Time (AWST)\", value: \"awst\" },\n { label: \"New Zealand Standard Time (NZST)\", value: \"nzst\" },\n { label: \"Fiji Time (FJT)\", value: \"fjt\" },\n { label: \"Argentina Time (ART)\", value: \"art\" },\n { label: \"Bolivia Time (BOT)\", value: \"bot\" },\n { label: \"Brasilia Time (BRT)\", value: \"brt\" }\n ]\n },\n render: args => {\n const [values, setValues] = useState(args.values);\n return (\n <div className={\"w-full\"}>\n <MultiAutoCompletePrimitive {...args} values={values} onValuesChange={setValues} />\n <div className={\"mt-4 text-center\"}>\n <Button text={\"Reset\"} onClick={() => setValues(args.values)} />\n </div>\n <div className={\"mt-4 text-center\"}>\n Current selected values: {values?.join(\",\")}\n </div>\n </div>\n );\n }\n};\n"],"names":["meta","MultiAutoCompletePrimitive","args","values","setValues","useState","Default","MediumSize","LargeSize","ExtraLargeSize","WithStartIcon","Icon","SearchIcon","WithLoading","WithoutResetAction","PrimaryVariant","PrimaryVariantDisabled","PrimaryVariantInvalid","SecondaryVariant","SecondaryVariantDisabled","SecondaryVariantInvalid","GhostVariant","GhostVariantDisabled","GhostVariantInvalid","GhostNegativeVariant","Story","GhostNegativeVariantDisabled","GhostNegativeVariantInvalid","WithPredefinedValue","WithCustomPlaceholder","WithCustomEmptyMessage","WithCustomInitialMessage","WithAllowFreeInput","WithUniqueValues","WithFormattedOptions","WithCustomOptionRenderer","item","WithCustomSelectedOptionRenderer","selectedOptionRenderer","Tag","value","WithSeparators","WithDisabledOptions","WithExternalValueControl","Button"],"mappings":";;;;;;AAQA,MAAMA,OAAgD;IAClD,OAAO;IACP,WAAWC;IACX,YAAY;QACR,QAAQ;IACZ;IACA,UAAU;QACN,gBAAgB;YAAE,QAAQ;QAAiB;QAC3C,cAAc;YAAE,QAAQ;QAAe;QACvC,UAAU;YACN,SAAS;gBACL,MAAM;YACV;QACJ;IACJ;IACA,QAAQC,CAAAA;QACJ,MAAM,CAACC,QAAQC,UAAU,GAAGC,SAASH,KAAK,MAAM;QAChD,OAAO,WAAP,GACI,oBAAC;YAAI,WAAW;yBACZ,oBAACD,4BAA0BA;YAAE,GAAGC,IAAI;YAAE,QAAQC;YAAQ,gBAAgBC;0BACtE,oBAAC;YAAI,WAAW;WAAoB,6BACND,QAAQ,KAAK;IAIvD;AACJ;AAEA,2CAAeH;AAIR,MAAMM,UAAiB;IAC1B,MAAM;QACF,SAAS;YACL;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;SACH;IACL;AACJ;AAEO,MAAMC,aAAoB;IAC7B,MAAM;QACF,GAAGD,QAAQ,IAAI;QACf,MAAM;IACV;AACJ;AAEO,MAAME,YAAmB;IAC5B,MAAM;QACF,GAAG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;QACF,GAAG7B,QAAQ,IAAI;QACf,SAAS;YACL;gBACI,OAAO;gBACP,OAAO;gBACP,MAAM;oBACF,MAAM;oBACN,iBAAiB;oBACjB,MAAM;oBACN,OAAO;gBACX;YACJ;YACA;gBACI,OAAO;gBACP,OAAO;gBACP,MAAM;oBACF,MAAM;oBACN,iBAAiB;oBACjB,MAAM;oBACN,OAAO;gBACX;YACJ;YACA;gBACI,OAAO;gBACP,OAAO;gBACP,MAAM;oBACF,MAAM;oBACN,iBAAiB;oBACjB,MAAM;oBACN,OAAO;gBACX;YACJ;YACA;gBACI,OAAO;gBACP,OAAO;gBACP,MAAM;oBACF,MAAM;oBACN,iBAAiB;oBACjB,MAAM;oBACN,OAAO;gBACX;YACJ;YACA;gBACI,OAAO;gBACP,OAAO;gBACP,MAAM;oBACF,MAAM;oBACN,iBAAiB;oBACjB,MAAM;oBACN,OAAO;gBACX;YACJ;YACA;gBACI,OAAO;gBACP,OAAO;gBACP,MAAM;oBACF,MAAM;oBACN,iBAAiB;oBACjB,MAAM;oBACN,OAAO;gBACX;YACJ;YACA;gBACI,OAAO;gBACP,OAAO;gBACP,MAAM;oBACF,MAAM;oBACN,iBAAiB;oBACjB,MAAM;oBACN,OAAO;gBACX;YACJ;YACA;gBACI,OAAO;gBACP,OAAO;gBACP,MAAM;oBACF,MAAM;oBACN,iBAAiB;oBACjB,MAAM;oBACN,OAAO;gBACX;YACJ;YACA;gBACI,OAAO;gBACP,OAAO;gBACP,MAAM;oBACF,MAAM;oBACN,iBAAiB;oBACjB,MAAM;oBACN,OAAO;gBACX;YACJ;YACA;gBACI,OAAO;gBACP,OAAO;gBACP,MAAM;oBACF,MAAM;oBACN,iBAAiB;oBACjB,MAAM;oBACN,OAAO;gBACX;YACJ;YACA;gBACI,OAAO;gBACP,OAAO;gBACP,MAAM;oBACF,MAAM;oBACN,iBAAiB;oBACjB,MAAM;oBACN,OAAO;gBACX;YACJ;YACA;gBACI,OAAO;gBACP,OAAO;gBACP,MAAM;o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":["../../../src/MultiAutoComplete/primitives/MultiAutoCompletePrimitive.stories.tsx"],"sourcesContent":["import React, { useState } from \"react\";\nimport type { Meta, StoryObj } from \"@storybook/react\";\nimport { ReactComponent as SearchIcon } from \"@webiny/icons/search.svg\";\nimport { MultiAutoCompletePrimitive } from \"./MultiAutoCompletePrimitive.js\";\nimport { Button } from \"~/Button/index.js\";\nimport { Icon } from \"~/Icon/index.js\";\nimport { Tag } from \"~/Tag/index.js\";\n\nconst meta: Meta<typeof MultiAutoCompletePrimitive> = {\n title: \"Components/Form Primitives/Multi Autocomplete\",\n component: MultiAutoCompletePrimitive,\n parameters: {\n layout: \"padded\"\n },\n argTypes: {\n onValuesChange: { action: \"onValuesChange\" },\n onOpenChange: { action: \"onOpenChange\" },\n disabled: {\n control: {\n type: \"boolean\"\n }\n }\n },\n render: args => {\n const [values, setValues] = useState(args.values);\n return (\n <div className={\"w-full\"}>\n <MultiAutoCompletePrimitive {...args} values={values} onValuesChange={setValues} />\n <div className={\"mt-4 text-center\"}>\n Current selected values: {values?.join(\",\")}\n </div>\n </div>\n );\n }\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof MultiAutoCompletePrimitive>;\n\nexport const Default: Story = {\n args: {\n options: [\n \"Eastern Standard Time (EST)\",\n \"Central Standard Time (CST)\",\n \"Pacific Standard Time (PST)\",\n \"Greenwich Mean Time (GMT)\",\n \"Central European Time (CET)\",\n \"Central Africa Time (CAT)\",\n \"India Standard Time (IST)\",\n \"China Standard Time (CST)\",\n \"Japan Standard Time (JST)\",\n \"Australian Western Standard Time (AWST)\",\n \"New Zealand Standard Time (NZST)\",\n \"Fiji Time (FJT)\",\n \"Argentina Time (ART)\",\n \"Bolivia Time (BOT)\",\n \"Brasilia Time (BRT)\"\n ]\n }\n};\n\nexport const MediumSize: Story = {\n args: {\n ...Default.args,\n size: \"md\"\n }\n};\n\nexport const LargeSize: Story = {\n args: {\n ...Default.args,\n size: \"lg\"\n }\n};\n\nexport const ExtraLargeSize: Story = {\n args: {\n ...Default.args,\n size: \"xl\"\n }\n};\n\nexport const WithStartIcon: Story = {\n args: {\n ...Default.args,\n startIcon: <Icon label={\"Search\"} icon={<SearchIcon />} />\n }\n};\n\nexport const WithLoading: Story = {\n args: {\n ...Default.args,\n loading: true\n }\n};\n\nexport const WithoutResetAction: Story = {\n args: {\n ...Default.args,\n displayResetAction: false\n }\n};\n\nexport const PrimaryVariant: Story = {\n args: {\n ...Default.args,\n variant: \"primary\"\n }\n};\n\nexport const PrimaryVariantDisabled: Story = {\n args: {\n ...PrimaryVariant.args,\n disabled: true\n }\n};\n\nexport const PrimaryVariantInvalid: Story = {\n args: {\n ...PrimaryVariant.args,\n invalid: true\n }\n};\n\nexport const SecondaryVariant: Story = {\n args: {\n variant: \"secondary\",\n placeholder: \"Custom placeholder\"\n }\n};\n\nexport const SecondaryVariantDisabled: Story = {\n args: {\n ...SecondaryVariant.args,\n disabled: true\n }\n};\n\nexport const SecondaryVariantInvalid: Story = {\n args: {\n ...SecondaryVariant.args,\n invalid: true\n }\n};\n\nexport const GhostVariant: Story = {\n args: {\n variant: \"ghost\",\n placeholder: \"Custom placeholder\"\n }\n};\n\nexport const GhostVariantDisabled: Story = {\n args: {\n ...GhostVariant.args,\n disabled: true\n }\n};\n\nexport const GhostVariantInvalid: Story = {\n args: {\n ...GhostVariant.args,\n invalid: true\n }\n};\n\nexport const GhostNegativeVariant: Story = {\n args: {\n ...Default.args,\n variant: \"ghost-negative\",\n placeholder: \"Custom placeholder\"\n },\n decorators: [\n Story => (\n <div className=\"bg-neutral-dark text-neutral-light p-xl\">\n <Story />\n </div>\n )\n ]\n};\n\nexport const GhostNegativeVariantDisabled: Story = {\n args: {\n ...GhostNegativeVariant.args,\n disabled: true\n },\n decorators: [\n Story => (\n <div className=\"bg-neutral-dark text-neutral-light p-xl\">\n <Story />\n </div>\n )\n ]\n};\n\nexport const GhostNegativeVariantInvalid: Story = {\n args: {\n ...GhostNegativeVariant.args,\n invalid: true\n },\n decorators: [\n Story => (\n <div className=\"bg-neutral-dark text-neutral-light p-xl\">\n <Story />\n </div>\n )\n ]\n};\n\nexport const WithPredefinedValue: Story = {\n args: {\n ...Default.args,\n options: [\n { label: \"Eastern Standard Time (EST)\", value: \"est\" },\n { label: \"Central Standard Time (CST)\", value: \"cst\" },\n { label: \"Pacific Standard Time (PST)\", value: \"pst\" },\n { label: \"Greenwich Mean Time (GMT)\", value: \"gmt\" },\n { label: \"Central European Time (CET)\", value: \"cet\" },\n { label: \"Central Africa Time (CAT)\", value: \"cat\" },\n { label: \"India Standard Time (IST)\", value: \"ist\" },\n { label: \"China Standard Time (CST)\", value: \"cst_china\" },\n { label: \"Japan Standard Time (JST)\", value: \"jst\" },\n { label: \"Australian Western Standard Time (AWST)\", value: \"awst\" },\n { label: \"New Zealand Standard Time (NZST)\", value: \"nzst\" },\n { label: \"Fiji Time (FJT)\", value: \"fjt\" },\n { label: \"Argentina Time (ART)\", value: \"art\" },\n { label: \"Bolivia Time (BOT)\", value: \"bot\" },\n { label: \"Brasilia Time (BRT)\", value: \"brt\" }\n ],\n values: [\"est\", \"ist\", \"brt\"]\n }\n};\n\nexport const WithCustomPlaceholder: Story = {\n args: {\n ...Default.args,\n placeholder: \"Custom placeholder\"\n }\n};\n\nexport const WithCustomEmptyMessage: Story = {\n args: {\n ...Default.args,\n emptyMessage: \"Custom empty message\"\n }\n};\n\nexport const WithCustomInitialMessage: Story = {\n args: {\n ...Default.args,\n initialMessage: \"Custom initial message.\",\n options: []\n }\n};\n\nexport const WithAllowFreeInput: Story = {\n args: {\n ...Default.args,\n allowFreeInput: true\n }\n};\n\nexport const WithUniqueValues: Story = {\n args: {\n ...Default.args,\n uniqueValues: true,\n options: [\n { label: \"Eastern Standard Time (EST)\", value: \"est\" },\n { label: \"Central Standard Time (CST)\", value: \"cst\" },\n { label: \"Pacific Standard Time (PST)\", value: \"pst\" }\n ]\n }\n};\n\nexport const WithFormattedOptions: Story = {\n args: {\n ...Default.args,\n options: [\n { label: \"Eastern Standard Time (EST)\", value: \"est\" },\n { label: \"Central Standard Time (CST)\", value: \"cst\" },\n { label: \"Pacific Standard Time (PST)\", value: \"pst\" },\n { label: \"Greenwich Mean Time (GMT)\", value: \"gmt\" },\n { label: \"Central European Time (CET)\", value: \"cet\" },\n { label: \"Central Africa Time (CAT)\", value: \"cat\" },\n { label: \"India Standard Time (IST)\", value: \"ist\" },\n { label: \"China Standard Time (CST)\", value: \"cst_china\" },\n { label: \"Japan Standard Time (JST)\", value: \"jst\" },\n { label: \"Australian Western Standard Time (AWST)\", value: \"awst\" },\n { label: \"New Zealand Standard Time (NZST)\", value: \"nzst\" },\n { label: \"Fiji Time (FJT)\", value: \"fjt\" },\n { label: \"Argentina Time (ART)\", value: \"art\" },\n { label: \"Bolivia Time (BOT)\", value: \"bot\" },\n { label: \"Brasilia Time (BRT)\", value: \"brt\" }\n ]\n }\n};\n\nexport const WithCustomOptionRenderer: Story = {\n args: {\n ...Default.args,\n options: [\n {\n label: \"Eastern Standard Time (EST)\",\n value: \"est\",\n item: {\n name: \"Eastern Standard Time (EST)\",\n time_difference: \"-5:00\",\n flag: \"🇺🇸\",\n value: \"est\"\n }\n },\n {\n label: \"Central Standard Time (CST)\",\n value: \"cst\",\n item: {\n name: \"Central Standard Time (CST)\",\n time_difference: \"-6:00\",\n flag: \"🇺🇸\",\n value: \"cst\"\n }\n },\n {\n label: \"Pacific Standard Time (PST)\",\n value: \"pst\",\n item: {\n name: \"Pacific Standard Time (PST)\",\n time_difference: \"-8:00\",\n flag: \"🇺🇸\",\n value: \"pst\"\n }\n },\n {\n label: \"Greenwich Mean Time (GMT)\",\n value: \"gmt\",\n item: {\n name: \"Greenwich Mean Time (GMT)\",\n time_difference: \"±0:00\",\n flag: \"🇬🇧\",\n value: \"gmt\"\n }\n },\n {\n label: \"Central European Time (CET)\",\n value: \"cet\",\n item: {\n name: \"Central European Time (CET)\",\n time_difference: \"+1:00\",\n flag: \"🇪🇺\",\n value: \"cet\"\n }\n },\n {\n label: \"Central Africa Time (CAT)\",\n value: \"cat\",\n item: {\n name: \"Central Africa Time (CAT)\",\n time_difference: \"+2:00\",\n flag: \"🇿🇦\",\n value: \"cat\"\n }\n },\n {\n label: \"India Standard Time (IST)\",\n value: \"ist\",\n item: {\n name: \"India Standard Time (IST)\",\n time_difference: \"+5:30\",\n flag: \"🇮🇳\",\n value: \"ist\"\n }\n },\n {\n label: \"China Standard Time (CST)\",\n value: \"cst_china\",\n item: {\n name: \"China Standard Time (CST)\",\n time_difference: \"+8:00\",\n flag: \"🇨🇳\",\n value: \"cst_china\"\n }\n },\n {\n label: \"Japan Standard Time (JST)\",\n value: \"jst\",\n item: {\n name: \"Japan Standard Time (JST)\",\n time_difference: \"+9:00\",\n flag: \"🇯🇵\",\n value: \"jst\"\n }\n },\n {\n label: \"Australian Western Standard Time (AWST)\",\n value: \"awst\",\n item: {\n name: \"Australian Western Standard Time (AWST)\",\n time_difference: \"+8:00\",\n flag: \"🇦🇺\",\n value: \"awst\"\n }\n },\n {\n label: \"New Zealand Standard Time (NZST)\",\n value: \"nzst\",\n item: {\n name: \"New Zealand Standard Time (NZST)\",\n time_difference: \"+12:00\",\n flag: \"🇳🇿\",\n value: \"nzst\"\n }\n },\n {\n label: \"Fiji Time (FJT)\",\n value: \"fjt\",\n item: {\n name: \"Fiji Time (FJT)\",\n time_difference: \"+12:00\",\n flag: \"🇫🇯\",\n value: \"fjt\"\n }\n },\n {\n label: \"Argentina Time (ART)\",\n value: \"art\",\n item: {\n name: \"Argentina Time (ART)\",\n time_difference: \"-3:00\",\n flag: \"🇦🇷\",\n value: \"art\"\n }\n },\n {\n label: \"Bolivia Time (BOT)\",\n value: \"bot\",\n item: {\n name: \"Bolivia Time (BOT)\",\n time_difference: \"-4:00\",\n flag: \"🇧🇴\",\n value: \"bot\"\n }\n },\n {\n label: \"Brasilia Time (BRT)\",\n value: \"brt\",\n item: {\n name: \"Brasilia Time (BRT)\",\n time_difference: \"-3:00\",\n flag: \"🇧🇷\",\n value: \"brt\"\n }\n }\n ],\n optionRenderer: item => {\n return (\n <div className={\"w-full flex justify-between align-middle\"}>\n <div>\n <span className={\"mr-sm\"}>{item.flag}</span>\n {item.name}\n </div>\n <div className={\"text-sm\"}>{item.time_difference}</div>\n </div>\n );\n }\n }\n};\n\nexport const WithCustomSelectedOptionRenderer: Story = {\n args: {\n ...WithCustomOptionRenderer.args\n },\n render: args => {\n const [values, setValues] = useState(args.values || []);\n const selectedOptionRenderer = (item: any) => {\n return (\n <Tag\n variant={\"neutral-base\"}\n content={\n <>\n {item.flag} {item.name}\n </>\n }\n onDismiss={() => setValues(values.filter(value => value !== item.value))}\n />\n );\n };\n return (\n <div className={\"w-full\"}>\n <MultiAutoCompletePrimitive\n {...args}\n values={values}\n onValuesChange={setValues}\n selectedOptionRenderer={selectedOptionRenderer}\n />\n <div className={\"mt-4 text-center\"}>\n Current selected values: {values?.join(\",\")}\n </div>\n </div>\n );\n }\n};\n\nexport const WithSeparators: Story = {\n args: {\n ...Default.args,\n options: [\n { label: \"Eastern Standard Time (EST)\", value: \"est\" },\n { label: \"Central Standard Time (CST)\", value: \"cst\" },\n { label: \"Pacific Standard Time (PST)\", value: \"pst\", separator: true },\n { label: \"Greenwich Mean Time (GMT)\", value: \"gmt\" },\n { label: \"Central European Time (CET)\", value: \"cet\" },\n { label: \"Central Africa Time (CAT)\", value: \"cat\", separator: true },\n { label: \"India Standard Time (IST)\", value: \"ist\" },\n { label: \"China Standard Time (CST)\", value: \"cst_china\" },\n { label: \"Japan Standard Time (JST)\", value: \"jst\", separator: true },\n { label: \"Australian Western Standard Time (AWST)\", value: \"awst\" },\n { label: \"New Zealand Standard Time (NZST)\", value: \"nzst\" },\n { label: \"Fiji Time (FJT)\", value: \"fjt\", separator: true },\n { label: \"Argentina Time (ART)\", value: \"art\" },\n { label: \"Bolivia Time (BOT)\", value: \"bot\" },\n { label: \"Brasilia Time (BRT)\", value: \"brt\" }\n ]\n }\n};\n\nexport const WithDisabledOptions: Story = {\n args: {\n options: [\n { label: \"Eastern Standard Time (EST)\", value: \"est\", disabled: true },\n { label: \"Central Standard Time (CST)\", value: \"cst\", disabled: true },\n { label: \"Pacific Standard Time (PST)\", value: \"pst\", disabled: true },\n { label: \"Greenwich Mean Time (GMT)\", value: \"gmt\" },\n { label: \"Central European Time (CET)\", value: \"cet\" },\n { label: \"Central Africa Time (CAT)\", value: \"cat\" },\n { label: \"India Standard Time (IST)\", value: \"ist\" },\n { label: \"China Standard Time (CST)\", value: \"cst_china\" },\n { label: \"Japan Standard Time (JST)\", value: \"jst\" },\n { label: \"Australian Western Standard Time (AWST)\", value: \"awst\" },\n { label: \"New Zealand Standard Time (NZST)\", value: \"nzst\" },\n { label: \"Fiji Time (FJT)\", value: \"fjt\" },\n { label: \"Argentina Time (ART)\", value: \"art\" },\n { label: \"Bolivia Time (BOT)\", value: \"bot\" },\n { label: \"Brasilia Time (BRT)\", value: \"brt\" }\n ]\n }\n};\n\nexport const WithExternalValueControl: Story = {\n args: {\n ...Default.args,\n options: [\n { label: \"Eastern Standard Time (EST)\", value: \"est\" },\n { label: \"Central Standard Time (CST)\", value: \"cst\" },\n { label: \"Pacific Standard Time (PST)\", value: \"pst\" },\n { label: \"Greenwich Mean Time (GMT)\", value: \"gmt\" },\n { label: \"Central European Time (CET)\", value: \"cet\" },\n { label: \"Central Africa Time (CAT)\", value: \"cat\" },\n { label: \"India Standard Time (IST)\", value: \"ist\" },\n { label: \"China Standard Time (CST)\", value: \"cst_china\" },\n { label: \"Japan Standard Time (JST)\", value: \"jst\" },\n { label: \"Australian Western Standard Time (AWST)\", value: \"awst\" },\n { label: \"New Zealand Standard Time (NZST)\", value: \"nzst\" },\n { label: \"Fiji Time (FJT)\", value: \"fjt\" },\n { label: \"Argentina Time (ART)\", value: \"art\" },\n { label: \"Bolivia Time (BOT)\", value: \"bot\" },\n { label: \"Brasilia Time (BRT)\", value: \"brt\" }\n ]\n },\n render: args => {\n const [values, setValues] = useState(args.values);\n return (\n <div className={\"w-full\"}>\n <MultiAutoCompletePrimitive {...args} values={values} onValuesChange={setValues} />\n <div className={\"mt-4 text-center\"}>\n <Button text={\"Reset\"} onClick={() => setValues(args.values)} />\n </div>\n <div className={\"mt-4 text-center\"}>\n Current selected values: {values?.join(\",\")}\n </div>\n </div>\n );\n }\n};\n"],"names":["meta","MultiAutoCompletePrimitive","args","values","setValues","useState","Default","MediumSize","LargeSize","ExtraLargeSize","WithStartIcon","Icon","SearchIcon","WithLoading","WithoutResetAction","PrimaryVariant","PrimaryVariantDisabled","PrimaryVariantInvalid","SecondaryVariant","SecondaryVariantDisabled","SecondaryVariantInvalid","GhostVariant","GhostVariantDisabled","GhostVariantInvalid","GhostNegativeVariant","Story","GhostNegativeVariantDisabled","GhostNegativeVariantInvalid","WithPredefinedValue","WithCustomPlaceholder","WithCustomEmptyMessage","WithCustomInitialMessage","WithAllowFreeInput","WithUniqueValues","WithFormattedOptions","WithCustomOptionRenderer","item","WithCustomSelectedOptionRenderer","selectedOptionRenderer","Tag","value","WithSeparators","WithDisabledOptions","WithExternalValueControl","Button"],"mappings":";;;;;;AAQA,MAAMA,OAAgD;IAClD,OAAO;IACP,WAAWC;IACX,YAAY;QACR,QAAQ;IACZ;IACA,UAAU;QACN,gBAAgB;YAAE,QAAQ;QAAiB;QAC3C,cAAc;YAAE,QAAQ;QAAe;QACvC,UAAU;YACN,SAAS;gBACL,MAAM;YACV;QACJ;IACJ;IACA,QAAQC,CAAAA;QACJ,MAAM,CAACC,QAAQC,UAAU,GAAGC,SAASH,KAAK,MAAM;QAChD,OAAO,WAAP,GACI,oBAAC;YAAI,WAAW;yBACZ,oBAACD,4BAA0BA;YAAE,GAAGC,IAAI;YAAE,QAAQC;YAAQ,gBAAgBC;0BACtE,oBAAC;YAAI,WAAW;WAAoB,6BACND,QAAQ,KAAK;IAIvD;AACJ;AAEA,2CAAeH;AAIR,MAAMM,UAAiB;IAC1B,MAAM;QACF,SAAS;YACL;YACA;YACA;YACA;YACA;YACA;YAC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C,MAAM;YAAS,SAAS,IAAMxC,UAAUF,KAAK,MAAM;2BAE/D,oBAAC;YAAI,WAAW;WAAoB,6BACNC,QAAQ,KAAK;IAIvD;AACJ"}
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from "@storybook/react-webpack5";
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { MultiFilePicker } from "../MultiFilePicker/index.js";
3
3
  declare const meta: Meta<typeof MultiFilePicker>;
4
4
  export default meta;