@webiny/admin-ui 6.2.0-beta.0 → 6.3.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/Accordion/Accordion.d.ts +1 -1
  2. package/Accordion/Accordion.mdx +437 -463
  3. package/Accordion/components/AccordionContent.js.map +1 -1
  4. package/Alert/Alert.d.ts +1 -1
  5. package/Alert/Alert.js.map +1 -1
  6. package/Alert/Alert.mdx +80 -83
  7. package/AutoComplete/AutoComplete.mdx +63 -55
  8. package/Avatar/Avatar.d.ts +1 -1
  9. package/Avatar/Avatar.js.map +1 -1
  10. package/Avatar/Avatar.mdx +52 -43
  11. package/Button/Button.d.ts +1 -1
  12. package/Button/Button.js.map +1 -1
  13. package/Button/Button.mdx +50 -42
  14. package/Button/IconButton.d.ts +1 -1
  15. package/Button/IconButton.js.map +1 -1
  16. package/Card/components/CardContent.d.ts +1 -1
  17. package/Card/components/CardTitle.d.ts +1 -1
  18. package/Checkbox/Checkbox.mdx +51 -49
  19. package/Checkbox/primitives/CheckboxPrimitive.d.ts +1 -1
  20. package/CheckboxGroup/CheckboxGroup.mdx +51 -53
  21. package/CodeEditor/CodeEditor.mdx +44 -43
  22. package/ColorPicker/ColorPicker.mdx +41 -40
  23. package/Command/components/Item.d.ts +1 -1
  24. package/Command/components/Item.js.map +1 -1
  25. package/DataTable/DataTable.mdx +537 -542
  26. package/DataTable/components/ColumnSorter.d.ts +1 -1
  27. package/DataTable/components/ColumnSorter.js.map +1 -1
  28. package/Dialog/Dialog.js.map +1 -1
  29. package/Dialog/components/DialogContent.d.ts +1 -1
  30. package/Dialog/components/DialogContent.js +1 -1
  31. package/Dialog/components/DialogContent.js.map +1 -1
  32. package/Dialog/components/DialogFooter.d.ts +1 -1
  33. package/Dialog/components/DialogFooter.js.map +1 -1
  34. package/Dialog/components/DialogTitle.d.ts +1 -1
  35. package/Drawer/Drawer.js.map +1 -1
  36. package/Drawer/Drawer.mdx +73 -64
  37. package/Drawer/components/DrawerContent.d.ts +1 -1
  38. package/Drawer/components/DrawerContent.js.map +1 -1
  39. package/DropdownMenu/DropdownMenu.js.map +1 -1
  40. package/DropdownMenu/DropdownMenu.mdx +155 -256
  41. package/DropdownMenu/components/DropdownMenuCheckboxItem.js.map +1 -1
  42. package/DropdownMenu/components/DropdownMenuLabel.js.map +1 -1
  43. package/FilePicker/FilePicker.mdx +69 -69
  44. package/FilePicker/primitives/FilePickerPrimitive.d.ts +19 -19
  45. package/FilePicker/primitives/FilePickerPrimitive.js.map +1 -1
  46. package/FilePicker/primitives/components/Trigger.d.ts +1 -1
  47. package/FilePicker/primitives/components/previews/TextOnlyPreview/TextOnlyPreview.d.ts +1 -1
  48. package/FilePicker/primitives/components/previews/variants.d.ts +1 -1
  49. package/FilePicker/primitives/components/types.js.map +1 -1
  50. package/FormComponent/Description.d.ts +1 -1
  51. package/FormComponent/ErrorMessage.d.ts +1 -1
  52. package/FormComponent/Note.d.ts +1 -1
  53. package/Grid/Grid.d.ts +2 -2
  54. package/Grid/Grid.js.map +1 -1
  55. package/Grid/Grid.mdx +111 -121
  56. package/HeaderBar/HeaderBar.mdx +98 -99
  57. package/Heading/Heading.d.ts +1 -1
  58. package/Heading/Heading.js.map +1 -1
  59. package/Heading/Heading.mdx +63 -58
  60. package/Icon/Icon.d.ts +1 -1
  61. package/Icon/Icon.js.map +1 -1
  62. package/Icon/Icon.mdx +79 -147
  63. package/IconPicker/IconPicker.mdx +66 -64
  64. package/IconPicker/primitives/IconPickerPrimitive.d.ts +1 -1
  65. package/IconPicker/primitives/components/IconPickerTrigger.d.ts +1 -1
  66. package/Image/Image.js.map +1 -1
  67. package/Input/Input.mdx +67 -56
  68. package/Input/InputPrimitive.d.ts +1 -1
  69. package/Label/Label.d.ts +1 -1
  70. package/Label/Label.js.map +1 -1
  71. package/Label/Label.mdx +42 -42
  72. package/Label/components/LabelDescription.d.ts +1 -1
  73. package/Label/components/LabelRequired.d.ts +1 -1
  74. package/Label/components/LabelValue.d.ts +1 -1
  75. package/Link/Link.d.ts +1 -1
  76. package/Link/Link.mdx +129 -116
  77. package/List/List.d.ts +1 -1
  78. package/List/List.js.map +1 -1
  79. package/List/List.mdx +317 -329
  80. package/List/components/ListItem.d.ts +1 -1
  81. package/List/components/ListItem.js.map +1 -1
  82. package/Loader/Loader.d.ts +2 -2
  83. package/Loader/Loader.js.map +1 -1
  84. package/Loader/Loader.mdx +96 -91
  85. package/MultiAutoComplete/MultiAutoComplete.mdx +52 -51
  86. package/MultiAutoComplete/primitives/components/MultiAutoCompleteInput.d.ts +1 -1
  87. package/MultiAutoComplete/primitives/presenters/MultiAutoCompleteListOptionsPresenter.js.map +1 -1
  88. package/MultiAutoComplete/primitives/presenters/MultiAutoCompleteListOptionsPresenterWithUniqueValues.js.map +1 -1
  89. package/MultiAutoComplete/primitives/presenters/MultiAutoCompleteSelectedOptionsPresenter.js.map +1 -1
  90. package/MultiAutoComplete/primitives/presenters/MultiAutoCompleteTemporaryOptionPresenter.js.map +1 -1
  91. package/MultiFilePicker/MultiFilePicker.mdx +84 -80
  92. package/MultiFilePicker/primitives/MultiFilePickerPrimitive.js.map +1 -1
  93. package/Popover/Popover.mdx +112 -118
  94. package/Popover/primitives/components/PopoverArrow.d.ts +1 -1
  95. package/Popover/primitives/components/PopoverContent.d.ts +1 -1
  96. package/RadioGroup/RadioGroup.mdx +62 -59
  97. package/RadioGroup/primitives/RadioGroupPrimitive.js.map +1 -1
  98. package/RangeSlider/RangeSlider.mdx +48 -47
  99. package/RangeSlider/primitives/RangeSliderPrimitive.js.map +1 -1
  100. package/RangeSlider/primitives/components/RangeSliderValue.d.ts +1 -1
  101. package/RangeSlider/primitives/components/RangeSliderValue.js.map +1 -1
  102. package/ScrollArea/ScrollArea.js.map +1 -1
  103. package/SegmentedControl/SegmentedControl.mdx +59 -59
  104. package/SegmentedControl/primitives/SegmentedControlPrimitive.d.ts +1 -1
  105. package/SegmentedControl/primitives/SegmentedControlPrimitive.js.map +1 -1
  106. package/Select/Select.mdx +52 -43
  107. package/Select/primitives/components/SelectTrigger.d.ts +1 -1
  108. package/Select/primitives/components/SelectTrigger.js.map +1 -1
  109. package/Select/primitives/presenters/SelectPresenter.d.ts +1 -1
  110. package/Separator/Separator.d.ts +1 -1
  111. package/Separator/Separator.mdx +139 -150
  112. package/Sidebar/Sidebar.js.map +1 -1
  113. package/Sidebar/Sidebar.mdx +66 -88
  114. package/Sidebar/components/items/SidebarMenuSubItemIndentation.d.ts +1 -1
  115. package/Sidebar/components/items/SidebarMenuSubItemIndentation.js.map +1 -1
  116. package/Skeleton/Skeleton.d.ts +1 -1
  117. package/Skeleton/Skeleton.js.map +1 -1
  118. package/Skeleton/Skeleton.mdx +37 -37
  119. package/Slider/Slider.mdx +48 -47
  120. package/Slider/primitives/SliderPrimitive.js.map +1 -1
  121. package/Slider/primitives/components/SliderSideValue.d.ts +1 -1
  122. package/Slider/primitives/components/SliderSideValue.js.map +1 -1
  123. package/Slider/primitives/components/SliderTooltip.d.ts +1 -1
  124. package/SteppedProgress/components/SteppedProgressIcon.d.ts +1 -1
  125. package/SteppedProgress/components/SteppedProgressIcon.js.map +1 -1
  126. package/SteppedProgress/components/SteppedProgressIndicator.d.ts +1 -1
  127. package/SteppedProgress/components/SteppedProgressIndicator.js.map +1 -1
  128. package/Switch/Switch.mdx +44 -42
  129. package/Switch/primitives/SwitchPrimitive.d.ts +1 -1
  130. package/Table/Table.d.ts +1 -1
  131. package/Table/Table.js.map +1 -1
  132. package/Table/components/Direction.d.ts +1 -1
  133. package/Table/components/Direction.js.map +1 -1
  134. package/Table/components/Header.d.ts +1 -1
  135. package/Table/components/Header.js.map +1 -1
  136. package/Table/components/Resizer.d.ts +1 -1
  137. package/Table/components/Resizer.js.map +1 -1
  138. package/Table/components/Row.d.ts +1 -1
  139. package/Table/components/Row.js.map +1 -1
  140. package/Tabs/Tabs.mdx +297 -292
  141. package/Tabs/components/Content.d.ts +1 -1
  142. package/Tabs/components/List.d.ts +1 -1
  143. package/Tabs/components/Trigger.d.ts +1 -1
  144. package/Tag/Tag.d.ts +1 -1
  145. package/Tag/Tag.js.map +1 -1
  146. package/Tag/Tag.mdx +68 -64
  147. package/Tags/primitives/TagsPrimitive.js.map +1 -1
  148. package/Text/Text.d.ts +1 -1
  149. package/Text/Text.mdx +54 -48
  150. package/Textarea/Textarea.mdx +49 -39
  151. package/Textarea/TextareaPrimitive.d.ts +1 -1
  152. package/Textarea/TextareaPrimitive.js.map +1 -1
  153. package/Toast/Toast.mdx +63 -53
  154. package/Toast/components/ToastRoot.d.ts +1 -1
  155. package/Tooltip/Tooltip.mdx +197 -198
  156. package/Tooltip/components/TooltipArrow.d.ts +1 -1
  157. package/Tooltip/components/TooltipContent.d.ts +1 -1
  158. package/Tree/components/Item.d.ts +1 -1
  159. package/Tree/useTree.d.ts +1 -1
  160. package/Widget/components/WidgetContent.d.ts +1 -1
  161. package/package.json +15 -15
@@ -1,6 +1,6 @@
1
- import { Canvas, Meta, Controls } from '@storybook/addon-docs/blocks';
1
+ import { Canvas, Meta, Controls } from "@storybook/addon-docs/blocks";
2
2
 
3
- import * as SidebarStories from './Sidebar.stories';
3
+ import * as SidebarStories from "./Sidebar.stories";
4
4
 
5
5
  <Meta of={SidebarStories} />
6
6
 
@@ -17,55 +17,44 @@ import { ReactComponent as CmsIcon } from "@webiny/icons/web.svg";
17
17
  import { ReactComponent as PageBuilderIcon } from "@webiny/icons/table_chart.svg";
18
18
 
19
19
  const SidebarExample = () => {
20
- return (
21
- <SidebarProvider>
22
- <Sidebar
23
- title={"Webiny"}
24
- icon={
25
- <Sidebar.Icon
26
- element={<img src="/logo.png" alt="Webiny" />}
27
- label={"Webiny"}
28
- />
29
- }
30
- >
31
- <Sidebar.Link
32
- text={"Headless CMS"}
33
- to={"/cms"}
34
- icon={<Sidebar.Item.Icon label="Headless CMS" element={<CmsIcon />} />}
35
- />
36
- <Sidebar.Item
37
- text={"Page Builder"}
38
- icon={<Sidebar.Item.Icon label="Page Builder" element={<PageBuilderIcon />} />}
39
- >
40
- <Sidebar.Group text={"Pages"} />
41
- <Sidebar.Link
42
- to={"/page-builder/pages"}
43
- text={"Pages"}
44
- />
45
- <Sidebar.Link
46
- to={"/page-builder/templates"}
47
- text={"Templates"}
48
- />
49
- </Sidebar.Item>
50
- </Sidebar>
51
- </SidebarProvider>
52
- );
53
- };
20
+ return (
21
+
22
+ <SidebarProvider>
23
+ <Sidebar
24
+ title={"Webiny"}
25
+ icon={<Sidebar.Icon element={<img src="/logo.png" alt="Webiny" />} label={"Webiny"} />}
26
+ >
27
+ <Sidebar.Link
28
+ text={"Headless CMS"}
29
+ to={"/cms"}
30
+ icon={<Sidebar.Item.Icon label="Headless CMS" element={<CmsIcon />} />}
31
+ />
32
+ <Sidebar.Item
33
+ text={"Page Builder"}
34
+ icon={<Sidebar.Item.Icon label="Page Builder" element={<PageBuilderIcon />} />}
35
+ >
36
+ <Sidebar.Group text={"Pages"} />
37
+ <Sidebar.Link to={"/page-builder/pages"} text={"Pages"} />
38
+ <Sidebar.Link to={"/page-builder/templates"} text={"Templates"} />
39
+ </Sidebar.Item>
40
+ </Sidebar>
41
+ </SidebarProvider>
42
+ ); };
54
43
 
55
44
  export default SidebarExample;
56
45
 
57
46
  ` } }
58
- additionalActions={[
59
- {
60
- title: 'Open in GitHub',
61
- onClick: () => {
62
- window.open(
63
- 'https://github.com/webiny/webiny-js/blob/feat/new-admin-ui/packages/admin-ui/src/Sidebar/Sidebar.tsx',
64
- '_blank'
65
- );
66
- },
67
- }
68
- ]}
47
+ additionalActions={[
48
+ {
49
+ title: 'Open in GitHub',
50
+ onClick: () => {
51
+ window.open(
52
+ 'https://github.com/webiny/webiny-js/blob/feat/new-admin-ui/packages/admin-ui/src/Sidebar/Sidebar.tsx',
53
+ '_blank'
54
+ );
55
+ },
56
+ }
57
+ ]}
69
58
  />
70
59
 
71
60
  ```tsx
@@ -75,39 +64,28 @@ import { ReactComponent as CmsIcon } from "@webiny/icons/web.svg";
75
64
  import { ReactComponent as PageBuilderIcon } from "@webiny/icons/table_chart.svg";
76
65
 
77
66
  const SidebarExample = () => {
78
- return (
79
- <SidebarProvider>
80
- <Sidebar
81
- title={"Webiny"}
82
- icon={
83
- <Sidebar.Icon
84
- element={<img src="/logo.png" alt="Webiny" />}
85
- label={"Webiny"}
86
- />
87
- }
88
- >
89
- <Sidebar.Link
90
- text={"Headless CMS"}
91
- to={"/cms"}
92
- icon={<Sidebar.Item.Icon label="Headless CMS" element={<CmsIcon />} />}
93
- />
94
- <Sidebar.Item
95
- text={"Page Builder"}
96
- icon={<Sidebar.Item.Icon label="Page Builder" element={<PageBuilderIcon />} />}
97
- >
98
- <Sidebar.Group text={"Pages"} />
99
- <Sidebar.Link
100
- to={"/page-builder/pages"}
101
- text={"Pages"}
102
- />
103
- <Sidebar.Link
104
- to={"/page-builder/templates"}
105
- text={"Templates"}
106
- />
107
- </Sidebar.Item>
108
- </Sidebar>
109
- </SidebarProvider>
110
- );
67
+ return (
68
+ <SidebarProvider>
69
+ <Sidebar
70
+ title={"Webiny"}
71
+ icon={<Sidebar.Icon element={<img src="/logo.png" alt="Webiny" />} label={"Webiny"} />}
72
+ >
73
+ <Sidebar.Link
74
+ text={"Headless CMS"}
75
+ to={"/cms"}
76
+ icon={<Sidebar.Item.Icon label="Headless CMS" element={<CmsIcon />} />}
77
+ />
78
+ <Sidebar.Item
79
+ text={"Page Builder"}
80
+ icon={<Sidebar.Item.Icon label="Page Builder" element={<PageBuilderIcon />} />}
81
+ >
82
+ <Sidebar.Group text={"Pages"} />
83
+ <Sidebar.Link to={"/page-builder/pages"} text={"Pages"} />
84
+ <Sidebar.Link to={"/page-builder/templates"} text={"Templates"} />
85
+ </Sidebar.Item>
86
+ </Sidebar>
87
+ </SidebarProvider>
88
+ );
111
89
  };
112
90
 
113
91
  export default SidebarExample;
@@ -123,11 +101,11 @@ The main container component that holds the entire sidebar structure.
123
101
 
124
102
  ```jsx
125
103
  <Sidebar
126
- title="Application Title"
127
- icon={<Sidebar.Icon element={<Logo />} label="Logo" />}
128
- footer={<FooterContent />}
104
+ title="Application Title"
105
+ icon={<Sidebar.Icon element={<Logo />} label="Logo" />}
106
+ footer={<FooterContent />}
129
107
  >
130
- {/* Menu items */}
108
+ {/* Menu items */}
131
109
  </Sidebar>
132
110
  ```
133
111
 
@@ -158,10 +136,10 @@ Used to create menu items that link to different routes in the application.
158
136
 
159
137
  ```jsx
160
138
  <Sidebar.Link
161
- text="Dashboard"
162
- to="/dashboard"
163
- icon={<Sidebar.Item.Icon label="Dashboard" element={<DashboardIcon />} />}
164
- active={currentPath === "/dashboard"}
139
+ text="Dashboard"
140
+ to="/dashboard"
141
+ icon={<Sidebar.Item.Icon label="Dashboard" element={<DashboardIcon />} />}
142
+ active={currentPath === "/dashboard"}
165
143
  />
166
144
  ```
167
145
 
@@ -2,7 +2,7 @@ import React from "react";
2
2
  import { type VariantProps } from "../../../utils.js";
3
3
  declare const separatorVariants: (props?: ({
4
4
  variant?: "group-label" | null | undefined;
5
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
6
  export interface SidebarMenuSubItemIndentationProps extends Omit<React.HTMLAttributes<HTMLLIElement>, "content">, VariantProps<typeof separatorVariants> {
7
7
  lvl: number;
8
8
  }
@@ -1 +1 @@
1
- {"version":3,"names":["React","Separator","cva","separatorVariants","variants","variant","SidebarMenuSubItemIndentation","lvl","createElement","className","Array","from","length","_","index","key","orientation","margin"],"sources":["SidebarMenuSubItemIndentation.tsx"],"sourcesContent":["import React from \"react\";\nimport { Separator } from \"~/Separator/index.js\";\n\nimport { cva, type VariantProps } from \"~/utils.js\";\n\nconst separatorVariants = cva([\"h-xl ml-px\"], {\n variants: {\n variant: {\n \"group-label\": \"h-[38px]!\"\n }\n }\n});\n\nexport interface SidebarMenuSubItemIndentationProps\n extends Omit<React.HTMLAttributes<HTMLLIElement>, \"content\">,\n VariantProps<typeof separatorVariants> {\n lvl: number;\n}\n\nconst SidebarMenuSubItemIndentation = ({ lvl, variant }: SidebarMenuSubItemIndentationProps) => {\n return (\n <div data-sidebar=\"indentation\" className={\"gap-x-xs flex mr-sm\"}>\n {Array.from({ length: lvl }, (_, index) => (\n <div data-sidebar={\"indentation-element\"} className={\"ml-md\"} key={lvl + index}>\n <Separator\n orientation={\"vertical\"}\n margin={\"none\"}\n variant={\"strong\"}\n className={separatorVariants({ variant })}\n />\n </div>\n ))}\n </div>\n );\n};\n\nexport { SidebarMenuSubItemIndentation };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,SAAS;AAElB,SAASC,GAAG;AAEZ,MAAMC,iBAAiB,GAAGD,GAAG,CAAC,CAAC,YAAY,CAAC,EAAE;EAC1CE,QAAQ,EAAE;IACNC,OAAO,EAAE;MACL,aAAa,EAAE;IACnB;EACJ;AACJ,CAAC,CAAC;AAQF,MAAMC,6BAA6B,GAAGA,CAAC;EAAEC,GAAG;EAAEF;AAA4C,CAAC,KAAK;EAC5F,oBACIL,KAAA,CAAAQ,aAAA;IAAK,gBAAa,aAAa;IAACC,SAAS,EAAE;EAAsB,GAC5DC,KAAK,CAACC,IAAI,CAAC;IAAEC,MAAM,EAAEL;EAAI,CAAC,EAAE,CAACM,CAAC,EAAEC,KAAK,kBAClCd,KAAA,CAAAQ,aAAA;IAAK,gBAAc,qBAAsB;IAACC,SAAS,EAAE,OAAQ;IAACM,GAAG,EAAER,GAAG,GAAGO;EAAM,gBAC3Ed,KAAA,CAAAQ,aAAA,CAACP,SAAS;IACNe,WAAW,EAAE,UAAW;IACxBC,MAAM,EAAE,MAAO;IACfZ,OAAO,EAAE,QAAS;IAClBI,SAAS,EAAEN,iBAAiB,CAAC;MAAEE;IAAQ,CAAC;EAAE,CAC7C,CACA,CACR,CACA,CAAC;AAEd,CAAC;AAED,SAASC,6BAA6B","ignoreList":[]}
1
+ {"version":3,"names":["React","Separator","cva","separatorVariants","variants","variant","SidebarMenuSubItemIndentation","lvl","createElement","className","Array","from","length","_","index","key","orientation","margin"],"sources":["SidebarMenuSubItemIndentation.tsx"],"sourcesContent":["import React from \"react\";\nimport { Separator } from \"~/Separator/index.js\";\n\nimport { cva, type VariantProps } from \"~/utils.js\";\n\nconst separatorVariants = cva([\"h-xl ml-px\"], {\n variants: {\n variant: {\n \"group-label\": \"h-[38px]!\"\n }\n }\n});\n\nexport interface SidebarMenuSubItemIndentationProps\n extends\n Omit<React.HTMLAttributes<HTMLLIElement>, \"content\">,\n VariantProps<typeof separatorVariants> {\n lvl: number;\n}\n\nconst SidebarMenuSubItemIndentation = ({ lvl, variant }: SidebarMenuSubItemIndentationProps) => {\n return (\n <div data-sidebar=\"indentation\" className={\"gap-x-xs flex mr-sm\"}>\n {Array.from({ length: lvl }, (_, index) => (\n <div data-sidebar={\"indentation-element\"} className={\"ml-md\"} key={lvl + index}>\n <Separator\n orientation={\"vertical\"}\n margin={\"none\"}\n variant={\"strong\"}\n className={separatorVariants({ variant })}\n />\n </div>\n ))}\n </div>\n );\n};\n\nexport { SidebarMenuSubItemIndentation };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,SAAS;AAElB,SAASC,GAAG;AAEZ,MAAMC,iBAAiB,GAAGD,GAAG,CAAC,CAAC,YAAY,CAAC,EAAE;EAC1CE,QAAQ,EAAE;IACNC,OAAO,EAAE;MACL,aAAa,EAAE;IACnB;EACJ;AACJ,CAAC,CAAC;AASF,MAAMC,6BAA6B,GAAGA,CAAC;EAAEC,GAAG;EAAEF;AAA4C,CAAC,KAAK;EAC5F,oBACIL,KAAA,CAAAQ,aAAA;IAAK,gBAAa,aAAa;IAACC,SAAS,EAAE;EAAsB,GAC5DC,KAAK,CAACC,IAAI,CAAC;IAAEC,MAAM,EAAEL;EAAI,CAAC,EAAE,CAACM,CAAC,EAAEC,KAAK,kBAClCd,KAAA,CAAAQ,aAAA;IAAK,gBAAc,qBAAsB;IAACC,SAAS,EAAE,OAAQ;IAACM,GAAG,EAAER,GAAG,GAAGO;EAAM,gBAC3Ed,KAAA,CAAAQ,aAAA,CAACP,SAAS;IACNe,WAAW,EAAE,UAAW;IACxBC,MAAM,EAAE,MAAO;IACfZ,OAAO,EAAE,QAAS;IAClBI,SAAS,EAAEN,iBAAiB,CAAC;MAAEE;IAAQ,CAAC;EAAE,CAC7C,CACA,CACR,CACA,CAAC;AAEd,CAAC;AAED,SAASC,6BAA6B","ignoreList":[]}
@@ -3,7 +3,7 @@ import { type VariantProps } from "../utils.js";
3
3
  declare const skeletonVariants: (props?: ({
4
4
  type?: "area" | "text" | "thumbnail" | null | undefined;
5
5
  size?: "sm" | "md" | "lg" | "xl" | "xs" | "xxl" | "3xl" | null | undefined;
6
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
7
  interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof skeletonVariants> {
8
8
  }
9
9
  declare const Skeleton: (({ size, type, className, ...props }: SkeletonProps) => React.JSX.Element) & {
@@ -1 +1 @@
1
- {"version":3,"names":["React","cn","cva","makeDecoratable","skeletonVariants","variants","type","text","thumbnail","area","size","xs","sm","md","lg","xl","xxl","compoundVariants","class","defaultVariants","DecoratableSkeleton","className","props","createElement","Object","assign","Skeleton"],"sources":["Skeleton.tsx"],"sourcesContent":["import React from \"react\";\nimport { cn, cva, type VariantProps, makeDecoratable } from \"~/utils.js\";\n\nconst skeletonVariants = cva(\"animate-skeleton-pulse rounded-sm\", {\n variants: {\n type: {\n text: \"w-full\",\n thumbnail: \"aspect-square\",\n area: \"size-full\"\n },\n size: {\n xs: \"h-sm\",\n sm: \"h-sm-extra\",\n md: \"h-md\",\n lg: \"h-lg\",\n xl: \"h-xl\",\n xxl: \"h-[40px]\",\n \"3xl\": \"h-xxl\"\n }\n },\n compoundVariants: [\n // The following compound variants are not supported by the current version of the design system.\n {\n type: \"thumbnail\",\n size: \"xs\",\n class: \"hidden!\"\n },\n {\n type: \"text\",\n size: \"3xl\",\n class: \"hidden!\"\n }\n ],\n defaultVariants: {\n type: \"area\",\n size: \"lg\"\n }\n});\n\ninterface SkeletonProps\n extends React.HTMLAttributes<HTMLDivElement>,\n VariantProps<typeof skeletonVariants> {}\n\nconst DecoratableSkeleton = ({ size, type, className, ...props }: SkeletonProps) => {\n return <div className={cn(skeletonVariants({ size, type }), className)} {...props} />;\n};\n\nconst Skeleton = makeDecoratable(\"Skeleton\", DecoratableSkeleton);\n\nexport { Skeleton, type SkeletonProps };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,EAAE,EAAEC,GAAG,EAAqBC,eAAe;AAEpD,MAAMC,gBAAgB,GAAGF,GAAG,CAAC,mCAAmC,EAAE;EAC9DG,QAAQ,EAAE;IACNC,IAAI,EAAE;MACFC,IAAI,EAAE,QAAQ;MACdC,SAAS,EAAE,eAAe;MAC1BC,IAAI,EAAE;IACV,CAAC;IACDC,IAAI,EAAE;MACFC,EAAE,EAAE,MAAM;MACVC,EAAE,EAAE,YAAY;MAChBC,EAAE,EAAE,MAAM;MACVC,EAAE,EAAE,MAAM;MACVC,EAAE,EAAE,MAAM;MACVC,GAAG,EAAE,UAAU;MACf,KAAK,EAAE;IACX;EACJ,CAAC;EACDC,gBAAgB,EAAE;EACd;EACA;IACIX,IAAI,EAAE,WAAW;IACjBI,IAAI,EAAE,IAAI;IACVQ,KAAK,EAAE;EACX,CAAC,EACD;IACIZ,IAAI,EAAE,MAAM;IACZI,IAAI,EAAE,KAAK;IACXQ,KAAK,EAAE;EACX,CAAC,CACJ;EACDC,eAAe,EAAE;IACbb,IAAI,EAAE,MAAM;IACZI,IAAI,EAAE;EACV;AACJ,CAAC,CAAC;AAMF,MAAMU,mBAAmB,GAAGA,CAAC;EAAEV,IAAI;EAAEJ,IAAI;EAAEe,SAAS;EAAE,GAAGC;AAAqB,CAAC,KAAK;EAChF,oBAAOtB,KAAA,CAAAuB,aAAA,QAAAC,MAAA,CAAAC,MAAA;IAAKJ,SAAS,EAAEpB,EAAE,CAACG,gBAAgB,CAAC;MAAEM,IAAI;MAAEJ;IAAK,CAAC,CAAC,EAAEe,SAAS;EAAE,GAAKC,KAAK,CAAG,CAAC;AACzF,CAAC;AAED,MAAMI,QAAQ,GAAGvB,eAAe,CAAC,UAAU,EAAEiB,mBAAmB,CAAC;AAEjE,SAASM,QAAQ","ignoreList":[]}
1
+ {"version":3,"names":["React","cn","cva","makeDecoratable","skeletonVariants","variants","type","text","thumbnail","area","size","xs","sm","md","lg","xl","xxl","compoundVariants","class","defaultVariants","DecoratableSkeleton","className","props","createElement","Object","assign","Skeleton"],"sources":["Skeleton.tsx"],"sourcesContent":["import React from \"react\";\nimport { cn, cva, type VariantProps, makeDecoratable } from \"~/utils.js\";\n\nconst skeletonVariants = cva(\"animate-skeleton-pulse rounded-sm\", {\n variants: {\n type: {\n text: \"w-full\",\n thumbnail: \"aspect-square\",\n area: \"size-full\"\n },\n size: {\n xs: \"h-sm\",\n sm: \"h-sm-extra\",\n md: \"h-md\",\n lg: \"h-lg\",\n xl: \"h-xl\",\n xxl: \"h-[40px]\",\n \"3xl\": \"h-xxl\"\n }\n },\n compoundVariants: [\n // The following compound variants are not supported by the current version of the design system.\n {\n type: \"thumbnail\",\n size: \"xs\",\n class: \"hidden!\"\n },\n {\n type: \"text\",\n size: \"3xl\",\n class: \"hidden!\"\n }\n ],\n defaultVariants: {\n type: \"area\",\n size: \"lg\"\n }\n});\n\ninterface SkeletonProps\n extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof skeletonVariants> {}\n\nconst DecoratableSkeleton = ({ size, type, className, ...props }: SkeletonProps) => {\n return <div className={cn(skeletonVariants({ size, type }), className)} {...props} />;\n};\n\nconst Skeleton = makeDecoratable(\"Skeleton\", DecoratableSkeleton);\n\nexport { Skeleton, type SkeletonProps };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,EAAE,EAAEC,GAAG,EAAqBC,eAAe;AAEpD,MAAMC,gBAAgB,GAAGF,GAAG,CAAC,mCAAmC,EAAE;EAC9DG,QAAQ,EAAE;IACNC,IAAI,EAAE;MACFC,IAAI,EAAE,QAAQ;MACdC,SAAS,EAAE,eAAe;MAC1BC,IAAI,EAAE;IACV,CAAC;IACDC,IAAI,EAAE;MACFC,EAAE,EAAE,MAAM;MACVC,EAAE,EAAE,YAAY;MAChBC,EAAE,EAAE,MAAM;MACVC,EAAE,EAAE,MAAM;MACVC,EAAE,EAAE,MAAM;MACVC,GAAG,EAAE,UAAU;MACf,KAAK,EAAE;IACX;EACJ,CAAC;EACDC,gBAAgB,EAAE;EACd;EACA;IACIX,IAAI,EAAE,WAAW;IACjBI,IAAI,EAAE,IAAI;IACVQ,KAAK,EAAE;EACX,CAAC,EACD;IACIZ,IAAI,EAAE,MAAM;IACZI,IAAI,EAAE,KAAK;IACXQ,KAAK,EAAE;EACX,CAAC,CACJ;EACDC,eAAe,EAAE;IACbb,IAAI,EAAE,MAAM;IACZI,IAAI,EAAE;EACV;AACJ,CAAC,CAAC;AAKF,MAAMU,mBAAmB,GAAGA,CAAC;EAAEV,IAAI;EAAEJ,IAAI;EAAEe,SAAS;EAAE,GAAGC;AAAqB,CAAC,KAAK;EAChF,oBAAOtB,KAAA,CAAAuB,aAAA,QAAAC,MAAA,CAAAC,MAAA;IAAKJ,SAAS,EAAEpB,EAAE,CAACG,gBAAgB,CAAC;MAAEM,IAAI;MAAEJ;IAAK,CAAC,CAAC,EAAEe,SAAS;EAAE,GAAKC,KAAK,CAAG,CAAC;AACzF,CAAC;AAED,MAAMI,QAAQ,GAAGvB,eAAe,CAAC,UAAU,EAAEiB,mBAAmB,CAAC;AAEjE,SAASM,QAAQ","ignoreList":[]}
@@ -1,6 +1,6 @@
1
- import { Canvas, Meta, Controls } from '@storybook/addon-docs/blocks';
1
+ import { Canvas, Meta, Controls } from "@storybook/addon-docs/blocks";
2
2
 
3
- import * as SkeletonStories from './Skeleton.stories';
3
+ import * as SkeletonStories from "./Skeleton.stories";
4
4
 
5
5
  <Meta of={SkeletonStories} />
6
6
 
@@ -15,23 +15,23 @@ import React from "react";
15
15
  import { Skeleton } from "@webiny/admin-ui";
16
16
 
17
17
  const SkeletonExample = () => {
18
- return <Skeleton />;
18
+ return <Skeleton />;
19
19
  };
20
20
 
21
21
  export default SkeletonExample;
22
22
 
23
23
  ` } }
24
- additionalActions={[
25
- {
26
- title: 'Open in GitHub',
27
- onClick: () => {
28
- window.open(
29
- 'https://github.com/webiny/webiny-js/blob/feat/new-admin-ui/packages/admin-ui/src/Skeleton/Skeleton.tsx',
30
- '_blank'
31
- );
32
- },
33
- }
34
- ]}
24
+ additionalActions={[
25
+ {
26
+ title: 'Open in GitHub',
27
+ onClick: () => {
28
+ window.open(
29
+ 'https://github.com/webiny/webiny-js/blob/feat/new-admin-ui/packages/admin-ui/src/Skeleton/Skeleton.tsx',
30
+ '_blank'
31
+ );
32
+ },
33
+ }
34
+ ]}
35
35
  />
36
36
 
37
37
  <Controls of={SkeletonStories.Documentation} />
@@ -41,7 +41,7 @@ import React from "react";
41
41
  import { Skeleton } from "@webiny/admin-ui";
42
42
 
43
43
  const SkeletonExample = () => {
44
- return <Skeleton />;
44
+ return <Skeleton />;
45
45
  };
46
46
 
47
47
  export default SkeletonExample;
@@ -62,7 +62,7 @@ import React from "react";
62
62
  import { Skeleton } from "@webiny/admin-ui";
63
63
 
64
64
  const AreaSkeletonExample = () => {
65
- return <Skeleton type="area" className="w-1/2 h-32" />;
65
+ return <Skeleton type="area" className="w-1/2 h-32" />;
66
66
  };
67
67
 
68
68
  export default AreaSkeletonExample;
@@ -77,7 +77,7 @@ import React from "react";
77
77
  import { Skeleton } from "@webiny/admin-ui";
78
78
 
79
79
  const TextSkeletonExample = () => {
80
- return <Skeleton type="text" />;
80
+ return <Skeleton type="text" />;
81
81
  };
82
82
 
83
83
  export default TextSkeletonExample;
@@ -92,7 +92,7 @@ import React from "react";
92
92
  import { Skeleton } from "@webiny/admin-ui";
93
93
 
94
94
  const ThumbnailSkeletonExample = () => {
95
- return <Skeleton type="thumbnail" />;
95
+ return <Skeleton type="thumbnail" />;
96
96
  };
97
97
 
98
98
  export default ThumbnailSkeletonExample;
@@ -109,7 +109,7 @@ import React from "react";
109
109
  import { Skeleton } from "@webiny/admin-ui";
110
110
 
111
111
  const XsSkeletonExample = () => {
112
- return <Skeleton size="xs" />;
112
+ return <Skeleton size="xs" />;
113
113
  };
114
114
 
115
115
  export default XsSkeletonExample;
@@ -122,7 +122,7 @@ import React from "react";
122
122
  import { Skeleton } from "@webiny/admin-ui";
123
123
 
124
124
  const SmSkeletonExample = () => {
125
- return <Skeleton size="sm" />;
125
+ return <Skeleton size="sm" />;
126
126
  };
127
127
 
128
128
  export default SmSkeletonExample;
@@ -135,7 +135,7 @@ import React from "react";
135
135
  import { Skeleton } from "@webiny/admin-ui";
136
136
 
137
137
  const MdSkeletonExample = () => {
138
- return <Skeleton size="md" />;
138
+ return <Skeleton size="md" />;
139
139
  };
140
140
 
141
141
  export default MdSkeletonExample;
@@ -148,7 +148,7 @@ import React from "react";
148
148
  import { Skeleton } from "@webiny/admin-ui";
149
149
 
150
150
  const LgSkeletonExample = () => {
151
- return <Skeleton size="lg" />;
151
+ return <Skeleton size="lg" />;
152
152
  };
153
153
 
154
154
  export default LgSkeletonExample;
@@ -161,7 +161,7 @@ import React from "react";
161
161
  import { Skeleton } from "@webiny/admin-ui";
162
162
 
163
163
  const XlSkeletonExample = () => {
164
- return <Skeleton size="xl" />;
164
+ return <Skeleton size="xl" />;
165
165
  };
166
166
 
167
167
  export default XlSkeletonExample;
@@ -174,7 +174,7 @@ import React from "react";
174
174
  import { Skeleton } from "@webiny/admin-ui";
175
175
 
176
176
  const XxlSkeletonExample = () => {
177
- return <Skeleton size="xxl" />;
177
+ return <Skeleton size="xxl" />;
178
178
  };
179
179
 
180
180
  export default XxlSkeletonExample;
@@ -187,7 +187,7 @@ import React from "react";
187
187
  import { Skeleton } from "@webiny/admin-ui";
188
188
 
189
189
  const ThreeXlSkeletonExample = () => {
190
- return <Skeleton size="3xl" />;
190
+ return <Skeleton size="3xl" />;
191
191
  };
192
192
 
193
193
  export default ThreeXlSkeletonExample;
@@ -202,18 +202,18 @@ import React from "react";
202
202
  import { Skeleton } from "@webiny/admin-ui";
203
203
 
204
204
  const MultipleAreasExample = () => {
205
- return (
206
- <div className="flex gap-md">
207
- <div className="flex flex-col gap-md">
208
- <Skeleton type="area" className={"w-32 h-32"} />
209
- <Skeleton type="area" className={"w-32 h-32"} />
210
- </div>
211
- <div>
212
- <Skeleton type="area" className="w-32 h-full" />
213
- </div>
214
- </div>
215
- );
216
- };
205
+ return (
206
+
207
+ <div className="flex gap-md">
208
+ <div className="flex flex-col gap-md">
209
+ <Skeleton type="area" className={"w-32 h-32"} />
210
+ <Skeleton type="area" className={"w-32 h-32"} />
211
+ </div>
212
+ <div>
213
+ <Skeleton type="area" className="w-32 h-full" />
214
+ </div>
215
+ </div>
216
+ ); };
217
217
 
218
218
  export default MultipleAreasExample;
219
219
  ` } } />
package/Slider/Slider.mdx CHANGED
@@ -1,6 +1,6 @@
1
- import { Canvas, Meta, Controls } from '@storybook/addon-docs/blocks';
1
+ import { Canvas, Meta, Controls } from "@storybook/addon-docs/blocks";
2
2
 
3
- import * as SliderStories from './Slider.stories';
3
+ import * as SliderStories from "./Slider.stories";
4
4
 
5
5
  <Meta of={SliderStories} />
6
6
 
@@ -15,8 +15,8 @@ import React, { useState } from "react";
15
15
  import { Slider } from "@webiny/admin-ui";
16
16
 
17
17
  const SliderExample = () => {
18
- const [value, setValue] = useState(50);
19
- const [validation, setValidation] = useState({ isValid: true, message: "" });
18
+ const [value, setValue] = useState(50);
19
+ const [validation, setValidation] = useState({ isValid: true, message: "" });
20
20
 
21
21
  const handleChange = (newValue: number) => {
22
22
  setValue(newValue);
@@ -46,62 +46,63 @@ const SliderExample = () => {
46
46
  />
47
47
  </div>
48
48
  );
49
+
49
50
  };
50
51
 
51
52
  export default SliderExample;
52
53
 
53
54
  ` } }
54
- additionalActions={[
55
- {
56
- title: 'Open in GitHub',
57
- onClick: () => {
58
- window.open(
59
- 'https://github.com/webiny/webiny-js/blob/feat/new-admin-ui/packages/admin-ui/src/Slider/Slider.tsx',
60
- '_blank'
61
- );
62
- },
63
- }
64
- ]}
55
+ additionalActions={[
56
+ {
57
+ title: 'Open in GitHub',
58
+ onClick: () => {
59
+ window.open(
60
+ 'https://github.com/webiny/webiny-js/blob/feat/new-admin-ui/packages/admin-ui/src/Slider/Slider.tsx',
61
+ '_blank'
62
+ );
63
+ },
64
+ }
65
+ ]}
65
66
  />
66
67
 
67
- <Controls of={SliderStories.Documentation} exclude={["onValueChange", "onValueCommit"]}/>
68
+ <Controls of={SliderStories.Documentation} exclude={["onValueChange", "onValueCommit"]} />
68
69
 
69
70
  ```tsx
70
71
  import React, { useState } from "react";
71
72
  import { Slider } from "@webiny/admin-ui";
72
73
 
73
74
  const SliderExample = () => {
74
- const [value, setValue] = useState(50);
75
- const [validation, setValidation] = useState({ isValid: true, message: "" });
76
-
77
- const handleChange = (newValue: number) => {
78
- setValue(newValue);
79
-
80
- if (newValue === 0) {
81
- setValidation({ isValid: false, message: "Please select a value" });
82
- } else {
83
- setValidation({ isValid: true, message: "" });
84
- }
85
- };
86
-
87
- return (
88
- <div>
89
- <Slider
90
- label="Volume Level"
91
- description="Adjust the volume level of your device"
92
- note="Note: Higher values may cause distortion on some devices"
93
- min={0}
94
- max={100}
95
- step={1}
96
- value={value}
97
- required={true}
98
- onValueChange={handleChange}
99
- showTooltip={true}
100
- transformValue={(value) => `${value}%`}
101
- validation={validation}
102
- />
103
- </div>
104
- );
75
+ const [value, setValue] = useState(50);
76
+ const [validation, setValidation] = useState({ isValid: true, message: "" });
77
+
78
+ const handleChange = (newValue: number) => {
79
+ setValue(newValue);
80
+
81
+ if (newValue === 0) {
82
+ setValidation({ isValid: false, message: "Please select a value" });
83
+ } else {
84
+ setValidation({ isValid: true, message: "" });
85
+ }
86
+ };
87
+
88
+ return (
89
+ <div>
90
+ <Slider
91
+ label="Volume Level"
92
+ description="Adjust the volume level of your device"
93
+ note="Note: Higher values may cause distortion on some devices"
94
+ min={0}
95
+ max={100}
96
+ step={1}
97
+ value={value}
98
+ required={true}
99
+ onValueChange={handleChange}
100
+ showTooltip={true}
101
+ transformValue={value => `${value}%`}
102
+ validation={validation}
103
+ />
104
+ </div>
105
+ );
105
106
  };
106
107
 
107
108
  export default SliderExample;
@@ -1 +1 @@
1
- {"version":3,"names":["React","useSlider","SliderRoot","SliderThumb","SliderTrack","SliderPrimitiveRenderer","tooltipSide","textValue","showTooltip","sliderProps","createElement","className","SliderPrimitive","props","transformValue","restProps","vm","changeValue","commitValue","Object","assign","onValueChange","onValueCommit"],"sources":["SliderPrimitive.tsx"],"sourcesContent":["import * as React from \"react\";\nimport type { Slider as SliderPrimitives } from \"radix-ui\";\nimport { useSlider } from \"./useSlider.js\";\nimport { SliderRoot, SliderThumb, SliderTrack, type SliderThumbProps } from \"./components/index.js\";\n\ntype SliderRootProps = Omit<SliderPrimitives.SliderProps, \"min\"> & {\n min: number;\n};\n\ntype SliderPrimitiveRendererProps = SliderRootProps & SliderThumbProps;\n\nconst SliderPrimitiveRenderer = ({\n tooltipSide,\n textValue,\n showTooltip,\n ...sliderProps\n}: SliderPrimitiveVm) => {\n return (\n <div className={\"flex h-md w-full\"}>\n <SliderRoot {...sliderProps}>\n <SliderTrack />\n <SliderThumb\n textValue={textValue}\n showTooltip={showTooltip}\n tooltipSide={tooltipSide}\n />\n </SliderRoot>\n </div>\n );\n};\n\ninterface SliderPrimitiveProps\n extends Omit<\n SliderPrimitives.SliderProps,\n \"defaultValue\" | \"value\" | \"onValueChange\" | \"onValueCommit\"\n > {\n onValueChange: (value: number) => void;\n onValueCommit?: (value: number) => void;\n showTooltip?: boolean;\n tooltipSide?: \"top\" | \"bottom\";\n transformValue?: (value: number) => string;\n value?: number;\n}\n\ntype SliderPrimitiveVm = SliderRootProps & SliderThumbProps;\n\nconst SliderPrimitive = (props: SliderPrimitiveProps) => {\n const { transformValue, ...restProps } = props;\n const { vm, changeValue, commitValue } = useSlider({ ...restProps, transformValue });\n\n return (\n <SliderPrimitiveRenderer\n {...restProps}\n {...vm}\n onValueChange={changeValue}\n onValueCommit={commitValue}\n />\n );\n};\n\nexport {\n SliderPrimitive,\n SliderPrimitiveRenderer,\n type SliderPrimitiveVm,\n type SliderPrimitiveProps,\n type SliderPrimitiveRendererProps\n};\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAE9B,SAASC,SAAS;AAClB,SAASC,UAAU,EAAEC,WAAW,EAAEC,WAAW;AAQ7C,MAAMC,uBAAuB,GAAGA,CAAC;EAC7BC,WAAW;EACXC,SAAS;EACTC,WAAW;EACX,GAAGC;AACY,CAAC,KAAK;EACrB,oBACIT,KAAA,CAAAU,aAAA;IAAKC,SAAS,EAAE;EAAmB,gBAC/BX,KAAA,CAAAU,aAAA,CAACR,UAAU,EAAKO,WAAW,eACvBT,KAAA,CAAAU,aAAA,CAACN,WAAW,MAAE,CAAC,eACfJ,KAAA,CAAAU,aAAA,CAACP,WAAW;IACRI,SAAS,EAAEA,SAAU;IACrBC,WAAW,EAAEA,WAAY;IACzBF,WAAW,EAAEA;EAAY,CAC5B,CACO,CACX,CAAC;AAEd,CAAC;AAiBD,MAAMM,eAAe,GAAIC,KAA2B,IAAK;EACrD,MAAM;IAAEC,cAAc;IAAE,GAAGC;EAAU,CAAC,GAAGF,KAAK;EAC9C,MAAM;IAAEG,EAAE;IAAEC,WAAW;IAAEC;EAAY,CAAC,GAAGjB,SAAS,CAAC;IAAE,GAAGc,SAAS;IAAED;EAAe,CAAC,CAAC;EAEpF,oBACId,KAAA,CAAAU,aAAA,CAACL,uBAAuB,EAAAc,MAAA,CAAAC,MAAA,KAChBL,SAAS,EACTC,EAAE;IACNK,aAAa,EAAEJ,WAAY;IAC3BK,aAAa,EAAEJ;EAAY,EAC9B,CAAC;AAEV,CAAC;AAED,SACIN,eAAe,EACfP,uBAAuB","ignoreList":[]}
1
+ {"version":3,"names":["React","useSlider","SliderRoot","SliderThumb","SliderTrack","SliderPrimitiveRenderer","tooltipSide","textValue","showTooltip","sliderProps","createElement","className","SliderPrimitive","props","transformValue","restProps","vm","changeValue","commitValue","Object","assign","onValueChange","onValueCommit"],"sources":["SliderPrimitive.tsx"],"sourcesContent":["import * as React from \"react\";\nimport type { Slider as SliderPrimitives } from \"radix-ui\";\nimport { useSlider } from \"./useSlider.js\";\nimport { SliderRoot, SliderThumb, SliderTrack, type SliderThumbProps } from \"./components/index.js\";\n\ntype SliderRootProps = Omit<SliderPrimitives.SliderProps, \"min\"> & {\n min: number;\n};\n\ntype SliderPrimitiveRendererProps = SliderRootProps & SliderThumbProps;\n\nconst SliderPrimitiveRenderer = ({\n tooltipSide,\n textValue,\n showTooltip,\n ...sliderProps\n}: SliderPrimitiveVm) => {\n return (\n <div className={\"flex h-md w-full\"}>\n <SliderRoot {...sliderProps}>\n <SliderTrack />\n <SliderThumb\n textValue={textValue}\n showTooltip={showTooltip}\n tooltipSide={tooltipSide}\n />\n </SliderRoot>\n </div>\n );\n};\n\ninterface SliderPrimitiveProps extends Omit<\n SliderPrimitives.SliderProps,\n \"defaultValue\" | \"value\" | \"onValueChange\" | \"onValueCommit\"\n> {\n onValueChange: (value: number) => void;\n onValueCommit?: (value: number) => void;\n showTooltip?: boolean;\n tooltipSide?: \"top\" | \"bottom\";\n transformValue?: (value: number) => string;\n value?: number;\n}\n\ntype SliderPrimitiveVm = SliderRootProps & SliderThumbProps;\n\nconst SliderPrimitive = (props: SliderPrimitiveProps) => {\n const { transformValue, ...restProps } = props;\n const { vm, changeValue, commitValue } = useSlider({ ...restProps, transformValue });\n\n return (\n <SliderPrimitiveRenderer\n {...restProps}\n {...vm}\n onValueChange={changeValue}\n onValueCommit={commitValue}\n />\n );\n};\n\nexport {\n SliderPrimitive,\n SliderPrimitiveRenderer,\n type SliderPrimitiveVm,\n type SliderPrimitiveProps,\n type SliderPrimitiveRendererProps\n};\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAE9B,SAASC,SAAS;AAClB,SAASC,UAAU,EAAEC,WAAW,EAAEC,WAAW;AAQ7C,MAAMC,uBAAuB,GAAGA,CAAC;EAC7BC,WAAW;EACXC,SAAS;EACTC,WAAW;EACX,GAAGC;AACY,CAAC,KAAK;EACrB,oBACIT,KAAA,CAAAU,aAAA;IAAKC,SAAS,EAAE;EAAmB,gBAC/BX,KAAA,CAAAU,aAAA,CAACR,UAAU,EAAKO,WAAW,eACvBT,KAAA,CAAAU,aAAA,CAACN,WAAW,MAAE,CAAC,eACfJ,KAAA,CAAAU,aAAA,CAACP,WAAW;IACRI,SAAS,EAAEA,SAAU;IACrBC,WAAW,EAAEA,WAAY;IACzBF,WAAW,EAAEA;EAAY,CAC5B,CACO,CACX,CAAC;AAEd,CAAC;AAgBD,MAAMM,eAAe,GAAIC,KAA2B,IAAK;EACrD,MAAM;IAAEC,cAAc;IAAE,GAAGC;EAAU,CAAC,GAAGF,KAAK;EAC9C,MAAM;IAAEG,EAAE;IAAEC,WAAW;IAAEC;EAAY,CAAC,GAAGjB,SAAS,CAAC;IAAE,GAAGc,SAAS;IAAED;EAAe,CAAC,CAAC;EAEpF,oBACId,KAAA,CAAAU,aAAA,CAACL,uBAAuB,EAAAc,MAAA,CAAAC,MAAA,KAChBL,SAAS,EACTC,EAAE;IACNK,aAAa,EAAEJ,WAAY;IAC3BK,aAAa,EAAEJ;EAAY,EAC9B,CAAC;AAEV,CAAC;AAED,SACIN,eAAe,EACfP,uBAAuB","ignoreList":[]}
@@ -2,7 +2,7 @@ import * as React from "react";
2
2
  import { type VariantProps } from "../../../utils.js";
3
3
  declare const sliderValueVariants: (props?: ({
4
4
  disabled?: boolean | null | undefined;
5
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
6
  interface SliderValueProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof sliderValueVariants> {
7
7
  value?: string;
8
8
  }
@@ -1 +1 @@
1
- {"version":3,"names":["React","cn","cva","sliderValueVariants","variants","disabled","true","SliderValue","value","className","createElement"],"sources":["SliderSideValue.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { cn, cva, type VariantProps } from \"~/utils.js\";\n\nconst sliderValueVariants = cva(\"font-normal text-sm leading-none\", {\n variants: {\n disabled: {\n true: \"text-neutral-disabled cursor-not-allowed\"\n }\n }\n});\n\ninterface SliderValueProps\n extends React.HTMLAttributes<HTMLSpanElement>,\n VariantProps<typeof sliderValueVariants> {\n value?: string;\n}\n\nconst SliderValue = ({ value, disabled, className }: SliderValueProps) => {\n if (!value) {\n return null;\n }\n return <span className={cn(sliderValueVariants({ disabled }), className)}>{value}</span>;\n};\n\nexport { SliderValue, type SliderValueProps };\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,EAAE,EAAEC,GAAG;AAEhB,MAAMC,mBAAmB,GAAGD,GAAG,CAAC,kCAAkC,EAAE;EAChEE,QAAQ,EAAE;IACNC,QAAQ,EAAE;MACNC,IAAI,EAAE;IACV;EACJ;AACJ,CAAC,CAAC;AAQF,MAAMC,WAAW,GAAGA,CAAC;EAAEC,KAAK;EAAEH,QAAQ;EAAEI;AAA4B,CAAC,KAAK;EACtE,IAAI,CAACD,KAAK,EAAE;IACR,OAAO,IAAI;EACf;EACA,oBAAOR,KAAA,CAAAU,aAAA;IAAMD,SAAS,EAAER,EAAE,CAACE,mBAAmB,CAAC;MAAEE;IAAS,CAAC,CAAC,EAAEI,SAAS;EAAE,GAAED,KAAY,CAAC;AAC5F,CAAC;AAED,SAASD,WAAW","ignoreList":[]}
1
+ {"version":3,"names":["React","cn","cva","sliderValueVariants","variants","disabled","true","SliderValue","value","className","createElement"],"sources":["SliderSideValue.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { cn, cva, type VariantProps } from \"~/utils.js\";\n\nconst sliderValueVariants = cva(\"font-normal text-sm leading-none\", {\n variants: {\n disabled: {\n true: \"text-neutral-disabled cursor-not-allowed\"\n }\n }\n});\n\ninterface SliderValueProps\n extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof sliderValueVariants> {\n value?: string;\n}\n\nconst SliderValue = ({ value, disabled, className }: SliderValueProps) => {\n if (!value) {\n return null;\n }\n return <span className={cn(sliderValueVariants({ disabled }), className)}>{value}</span>;\n};\n\nexport { SliderValue, type SliderValueProps };\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,EAAE,EAAEC,GAAG;AAEhB,MAAMC,mBAAmB,GAAGD,GAAG,CAAC,kCAAkC,EAAE;EAChEE,QAAQ,EAAE;IACNC,QAAQ,EAAE;MACNC,IAAI,EAAE;IACV;EACJ;AACJ,CAAC,CAAC;AAOF,MAAMC,WAAW,GAAGA,CAAC;EAAEC,KAAK;EAAEH,QAAQ;EAAEI;AAA4B,CAAC,KAAK;EACtE,IAAI,CAACD,KAAK,EAAE;IACR,OAAO,IAAI;EACf;EACA,oBAAOR,KAAA,CAAAU,aAAA;IAAMD,SAAS,EAAER,EAAE,CAACE,mBAAmB,CAAC;MAAEE;IAAS,CAAC,CAAC,EAAEI,SAAS;EAAE,GAAED,KAAY,CAAC;AAC5F,CAAC;AAED,SAASD,WAAW","ignoreList":[]}
@@ -2,7 +2,7 @@ import * as React from "react";
2
2
  import { type VariantProps } from "../../../utils.js";
3
3
  declare const sliderTooltipVariants: (props?: ({
4
4
  side?: "bottom" | "top" | null | undefined;
5
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
6
  type SliderTooltipProps = VariantProps<typeof sliderTooltipVariants> & {
7
7
  textValue: string;
8
8
  showTooltip?: boolean;
@@ -5,7 +5,7 @@ declare const steppedProgressIconVariants: (props?: ({
5
5
  state?: ProgressItemState | null | undefined;
6
6
  disabled?: boolean | null | undefined;
7
7
  errored?: boolean | null | undefined;
8
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
8
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
9
  interface SteppedProgressIconProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof steppedProgressIconVariants> {
10
10
  }
11
11
  declare const SteppedProgressIcon: ({ state, errored, disabled, className, ...props }: SteppedProgressIconProps) => React.JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"names":["React","ReactComponent","CheckIcon","ErrorIcon","cn","cva","ProgressItemState","Icon","steppedProgressIconVariants","variants","state","IDLE","IN_PROGRESS","COMPLETED","COMPLETED_AFFIRMATIVE","disabled","true","errored","compoundVariants","className","defaultVariants","SteppedProgressIcon","props","icon","useMemo","createElement","label","size","Fragment","Object","assign"],"sources":["SteppedProgressIcon.tsx"],"sourcesContent":["import React from \"react\";\nimport { ReactComponent as CheckIcon } from \"@webiny/icons/check.svg\";\nimport { ReactComponent as ErrorIcon } from \"@webiny/icons/error_outline.svg\";\nimport { cn, cva, type VariantProps } from \"~/utils.js\";\nimport { ProgressItemState } from \"~/SteppedProgress/domains/index.js\";\nimport { Icon } from \"~/Icon/index.js\";\n\nconst steppedProgressIconVariants = cva(\n [\"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2\"],\n {\n variants: {\n state: {\n [ProgressItemState.IDLE]: \"hidden\",\n [ProgressItemState.IN_PROGRESS]: \"size-sm-extra rounded-full bg-primary\",\n [ProgressItemState.COMPLETED]: \"fill-neutral-base\",\n [ProgressItemState.COMPLETED_AFFIRMATIVE]: \"fill-neutral-base\"\n },\n disabled: {\n true: \"fill-neutral-base!\"\n },\n errored: {\n true: \"fill-destructive\"\n }\n },\n compoundVariants: [\n // disabled\n {\n state: ProgressItemState.IN_PROGRESS,\n disabled: true,\n className: \"bg-neutral-strong\"\n },\n // errored\n {\n state: ProgressItemState.IDLE,\n errored: true,\n className: \"block\"\n },\n {\n state: ProgressItemState.IN_PROGRESS,\n errored: true,\n className: \"size-auto rounded-none bg-transparent\"\n },\n {\n state: ProgressItemState.COMPLETED,\n errored: true,\n className: \"fill-neutral-base\"\n },\n {\n state: ProgressItemState.COMPLETED_AFFIRMATIVE,\n errored: true,\n className: \"fill-neutral-base\"\n }\n ],\n defaultVariants: {\n state: ProgressItemState.IDLE\n }\n }\n);\n\ninterface SteppedProgressIconProps\n extends React.HTMLAttributes<HTMLDivElement>,\n VariantProps<typeof steppedProgressIconVariants> {}\n\nconst SteppedProgressIcon = ({\n state,\n errored,\n disabled,\n className,\n ...props\n}: SteppedProgressIconProps) => {\n const icon = React.useMemo(() => {\n if (errored) {\n return <Icon icon={<ErrorIcon />} label={\"Error\"} size={\"sm\"} />;\n }\n\n if (\n state === ProgressItemState.COMPLETED ||\n state === ProgressItemState.COMPLETED_AFFIRMATIVE\n ) {\n return <Icon icon={<CheckIcon />} label={\"Completed\"} size={\"sm\"} />;\n }\n\n return <></>;\n }, [state, errored]);\n\n return (\n <div\n {...props}\n className={cn(steppedProgressIconVariants({ state, disabled, errored }), className)}\n >\n {icon}\n </div>\n );\n};\n\nexport { SteppedProgressIcon, type SteppedProgressIconProps };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,IAAIC,SAAS,QAAQ,yBAAyB;AACrE,SAASD,cAAc,IAAIE,SAAS,QAAQ,iCAAiC;AAC7E,SAASC,EAAE,EAAEC,GAAG;AAChB,SAASC,iBAAiB;AAC1B,SAASC,IAAI;AAEb,MAAMC,2BAA2B,GAAGH,GAAG,CACnC,CAAC,6DAA6D,CAAC,EAC/D;EACII,QAAQ,EAAE;IACNC,KAAK,EAAE;MACH,CAACJ,iBAAiB,CAACK,IAAI,GAAG,QAAQ;MAClC,CAACL,iBAAiB,CAACM,WAAW,GAAG,uCAAuC;MACxE,CAACN,iBAAiB,CAACO,SAAS,GAAG,mBAAmB;MAClD,CAACP,iBAAiB,CAACQ,qBAAqB,GAAG;IAC/C,CAAC;IACDC,QAAQ,EAAE;MACNC,IAAI,EAAE;IACV,CAAC;IACDC,OAAO,EAAE;MACLD,IAAI,EAAE;IACV;EACJ,CAAC;EACDE,gBAAgB,EAAE;EACd;EACA;IACIR,KAAK,EAAEJ,iBAAiB,CAACM,WAAW;IACpCG,QAAQ,EAAE,IAAI;IACdI,SAAS,EAAE;EACf,CAAC;EACD;EACA;IACIT,KAAK,EAAEJ,iBAAiB,CAACK,IAAI;IAC7BM,OAAO,EAAE,IAAI;IACbE,SAAS,EAAE;EACf,CAAC,EACD;IACIT,KAAK,EAAEJ,iBAAiB,CAACM,WAAW;IACpCK,OAAO,EAAE,IAAI;IACbE,SAAS,EAAE;EACf,CAAC,EACD;IACIT,KAAK,EAAEJ,iBAAiB,CAACO,SAAS;IAClCI,OAAO,EAAE,IAAI;IACbE,SAAS,EAAE;EACf,CAAC,EACD;IACIT,KAAK,EAAEJ,iBAAiB,CAACQ,qBAAqB;IAC9CG,OAAO,EAAE,IAAI;IACbE,SAAS,EAAE;EACf,CAAC,CACJ;EACDC,eAAe,EAAE;IACbV,KAAK,EAAEJ,iBAAiB,CAACK;EAC7B;AACJ,CACJ,CAAC;AAMD,MAAMU,mBAAmB,GAAGA,CAAC;EACzBX,KAAK;EACLO,OAAO;EACPF,QAAQ;EACRI,SAAS;EACT,GAAGG;AACmB,CAAC,KAAK;EAC5B,MAAMC,IAAI,GAAGvB,KAAK,CAACwB,OAAO,CAAC,MAAM;IAC7B,IAAIP,OAAO,EAAE;MACT,oBAAOjB,KAAA,CAAAyB,aAAA,CAAClB,IAAI;QAACgB,IAAI,eAAEvB,KAAA,CAAAyB,aAAA,CAACtB,SAAS,MAAE,CAAE;QAACuB,KAAK,EAAE,OAAQ;QAACC,IAAI,EAAE;MAAK,CAAE,CAAC;IACpE;IAEA,IACIjB,KAAK,KAAKJ,iBAAiB,CAACO,SAAS,IACrCH,KAAK,KAAKJ,iBAAiB,CAACQ,qBAAqB,EACnD;MACE,oBAAOd,KAAA,CAAAyB,aAAA,CAAClB,IAAI;QAACgB,IAAI,eAAEvB,KAAA,CAAAyB,aAAA,CAACvB,SAAS,MAAE,CAAE;QAACwB,KAAK,EAAE,WAAY;QAACC,IAAI,EAAE;MAAK,CAAE,CAAC;IACxE;IAEA,oBAAO3B,KAAA,CAAAyB,aAAA,CAAAzB,KAAA,CAAA4B,QAAA,MAAI,CAAC;EAChB,CAAC,EAAE,CAAClB,KAAK,EAAEO,OAAO,CAAC,CAAC;EAEpB,oBACIjB,KAAA,CAAAyB,aAAA,QAAAI,MAAA,CAAAC,MAAA,KACQR,KAAK;IACTH,SAAS,EAAEf,EAAE,CAACI,2BAA2B,CAAC;MAAEE,KAAK;MAAEK,QAAQ;MAAEE;IAAQ,CAAC,CAAC,EAAEE,SAAS;EAAE,IAEnFI,IACA,CAAC;AAEd,CAAC;AAED,SAASF,mBAAmB","ignoreList":[]}
1
+ {"version":3,"names":["React","ReactComponent","CheckIcon","ErrorIcon","cn","cva","ProgressItemState","Icon","steppedProgressIconVariants","variants","state","IDLE","IN_PROGRESS","COMPLETED","COMPLETED_AFFIRMATIVE","disabled","true","errored","compoundVariants","className","defaultVariants","SteppedProgressIcon","props","icon","useMemo","createElement","label","size","Fragment","Object","assign"],"sources":["SteppedProgressIcon.tsx"],"sourcesContent":["import React from \"react\";\nimport { ReactComponent as CheckIcon } from \"@webiny/icons/check.svg\";\nimport { ReactComponent as ErrorIcon } from \"@webiny/icons/error_outline.svg\";\nimport { cn, cva, type VariantProps } from \"~/utils.js\";\nimport { ProgressItemState } from \"~/SteppedProgress/domains/index.js\";\nimport { Icon } from \"~/Icon/index.js\";\n\nconst steppedProgressIconVariants = cva(\n [\"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2\"],\n {\n variants: {\n state: {\n [ProgressItemState.IDLE]: \"hidden\",\n [ProgressItemState.IN_PROGRESS]: \"size-sm-extra rounded-full bg-primary\",\n [ProgressItemState.COMPLETED]: \"fill-neutral-base\",\n [ProgressItemState.COMPLETED_AFFIRMATIVE]: \"fill-neutral-base\"\n },\n disabled: {\n true: \"fill-neutral-base!\"\n },\n errored: {\n true: \"fill-destructive\"\n }\n },\n compoundVariants: [\n // disabled\n {\n state: ProgressItemState.IN_PROGRESS,\n disabled: true,\n className: \"bg-neutral-strong\"\n },\n // errored\n {\n state: ProgressItemState.IDLE,\n errored: true,\n className: \"block\"\n },\n {\n state: ProgressItemState.IN_PROGRESS,\n errored: true,\n className: \"size-auto rounded-none bg-transparent\"\n },\n {\n state: ProgressItemState.COMPLETED,\n errored: true,\n className: \"fill-neutral-base\"\n },\n {\n state: ProgressItemState.COMPLETED_AFFIRMATIVE,\n errored: true,\n className: \"fill-neutral-base\"\n }\n ],\n defaultVariants: {\n state: ProgressItemState.IDLE\n }\n }\n);\n\ninterface SteppedProgressIconProps\n extends\n React.HTMLAttributes<HTMLDivElement>,\n VariantProps<typeof steppedProgressIconVariants> {}\n\nconst SteppedProgressIcon = ({\n state,\n errored,\n disabled,\n className,\n ...props\n}: SteppedProgressIconProps) => {\n const icon = React.useMemo(() => {\n if (errored) {\n return <Icon icon={<ErrorIcon />} label={\"Error\"} size={\"sm\"} />;\n }\n\n if (\n state === ProgressItemState.COMPLETED ||\n state === ProgressItemState.COMPLETED_AFFIRMATIVE\n ) {\n return <Icon icon={<CheckIcon />} label={\"Completed\"} size={\"sm\"} />;\n }\n\n return <></>;\n }, [state, errored]);\n\n return (\n <div\n {...props}\n className={cn(steppedProgressIconVariants({ state, disabled, errored }), className)}\n >\n {icon}\n </div>\n );\n};\n\nexport { SteppedProgressIcon, type SteppedProgressIconProps };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,IAAIC,SAAS,QAAQ,yBAAyB;AACrE,SAASD,cAAc,IAAIE,SAAS,QAAQ,iCAAiC;AAC7E,SAASC,EAAE,EAAEC,GAAG;AAChB,SAASC,iBAAiB;AAC1B,SAASC,IAAI;AAEb,MAAMC,2BAA2B,GAAGH,GAAG,CACnC,CAAC,6DAA6D,CAAC,EAC/D;EACII,QAAQ,EAAE;IACNC,KAAK,EAAE;MACH,CAACJ,iBAAiB,CAACK,IAAI,GAAG,QAAQ;MAClC,CAACL,iBAAiB,CAACM,WAAW,GAAG,uCAAuC;MACxE,CAACN,iBAAiB,CAACO,SAAS,GAAG,mBAAmB;MAClD,CAACP,iBAAiB,CAACQ,qBAAqB,GAAG;IAC/C,CAAC;IACDC,QAAQ,EAAE;MACNC,IAAI,EAAE;IACV,CAAC;IACDC,OAAO,EAAE;MACLD,IAAI,EAAE;IACV;EACJ,CAAC;EACDE,gBAAgB,EAAE;EACd;EACA;IACIR,KAAK,EAAEJ,iBAAiB,CAACM,WAAW;IACpCG,QAAQ,EAAE,IAAI;IACdI,SAAS,EAAE;EACf,CAAC;EACD;EACA;IACIT,KAAK,EAAEJ,iBAAiB,CAACK,IAAI;IAC7BM,OAAO,EAAE,IAAI;IACbE,SAAS,EAAE;EACf,CAAC,EACD;IACIT,KAAK,EAAEJ,iBAAiB,CAACM,WAAW;IACpCK,OAAO,EAAE,IAAI;IACbE,SAAS,EAAE;EACf,CAAC,EACD;IACIT,KAAK,EAAEJ,iBAAiB,CAACO,SAAS;IAClCI,OAAO,EAAE,IAAI;IACbE,SAAS,EAAE;EACf,CAAC,EACD;IACIT,KAAK,EAAEJ,iBAAiB,CAACQ,qBAAqB;IAC9CG,OAAO,EAAE,IAAI;IACbE,SAAS,EAAE;EACf,CAAC,CACJ;EACDC,eAAe,EAAE;IACbV,KAAK,EAAEJ,iBAAiB,CAACK;EAC7B;AACJ,CACJ,CAAC;AAOD,MAAMU,mBAAmB,GAAGA,CAAC;EACzBX,KAAK;EACLO,OAAO;EACPF,QAAQ;EACRI,SAAS;EACT,GAAGG;AACmB,CAAC,KAAK;EAC5B,MAAMC,IAAI,GAAGvB,KAAK,CAACwB,OAAO,CAAC,MAAM;IAC7B,IAAIP,OAAO,EAAE;MACT,oBAAOjB,KAAA,CAAAyB,aAAA,CAAClB,IAAI;QAACgB,IAAI,eAAEvB,KAAA,CAAAyB,aAAA,CAACtB,SAAS,MAAE,CAAE;QAACuB,KAAK,EAAE,OAAQ;QAACC,IAAI,EAAE;MAAK,CAAE,CAAC;IACpE;IAEA,IACIjB,KAAK,KAAKJ,iBAAiB,CAACO,SAAS,IACrCH,KAAK,KAAKJ,iBAAiB,CAACQ,qBAAqB,EACnD;MACE,oBAAOd,KAAA,CAAAyB,aAAA,CAAClB,IAAI;QAACgB,IAAI,eAAEvB,KAAA,CAAAyB,aAAA,CAACvB,SAAS,MAAE,CAAE;QAACwB,KAAK,EAAE,WAAY;QAACC,IAAI,EAAE;MAAK,CAAE,CAAC;IACxE;IAEA,oBAAO3B,KAAA,CAAAyB,aAAA,CAAAzB,KAAA,CAAA4B,QAAA,MAAI,CAAC;EAChB,CAAC,EAAE,CAAClB,KAAK,EAAEO,OAAO,CAAC,CAAC;EAEpB,oBACIjB,KAAA,CAAAyB,aAAA,QAAAI,MAAA,CAAAC,MAAA,KACQR,KAAK;IACTH,SAAS,EAAEf,EAAE,CAACI,2BAA2B,CAAC;MAAEE,KAAK;MAAEK,QAAQ;MAAEE;IAAQ,CAAC,CAAC,EAAEE,SAAS;EAAE,IAEnFI,IACA,CAAC;AAEd,CAAC;AAED,SAASF,mBAAmB","ignoreList":[]}