@ndla/primitives 1.0.130-alpha.0 → 1.0.132-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (225) hide show
  1. package/dist/panda.buildinfo.json +25 -1
  2. package/dist/styles.css +100 -4
  3. package/es/Accordion.mjs +1 -1
  4. package/es/Accordion.mjs.map +1 -1
  5. package/es/ArticleLists.mjs +1 -1
  6. package/es/ArticleLists.mjs.map +1 -1
  7. package/es/Badge.mjs +1 -1
  8. package/es/Badge.mjs.map +1 -1
  9. package/es/BlockQuote.mjs +1 -1
  10. package/es/BlockQuote.mjs.map +1 -1
  11. package/es/Button.mjs +1 -1
  12. package/es/Button.mjs.map +1 -1
  13. package/es/Card/Card.mjs +1 -1
  14. package/es/Card/Card.mjs.map +1 -1
  15. package/es/Checkbox.mjs +2 -1
  16. package/es/Checkbox.mjs.map +1 -1
  17. package/es/Combobox.mjs +1 -1
  18. package/es/Combobox.mjs.map +1 -1
  19. package/es/DatePicker.mjs +1 -1
  20. package/es/DatePicker.mjs.map +1 -1
  21. package/es/Dialog.mjs +1 -1
  22. package/es/Dialog.mjs.map +1 -1
  23. package/es/ErrorMessage/ErrorMessage.mjs +1 -1
  24. package/es/ErrorMessage/ErrorMessage.mjs.map +1 -1
  25. package/es/ExpandableBox.mjs +1 -1
  26. package/es/ExpandableBox.mjs.map +1 -1
  27. package/es/Field.mjs +2 -1
  28. package/es/Field.mjs.map +1 -1
  29. package/es/FieldErrorMessage.mjs +2 -1
  30. package/es/FieldErrorMessage.mjs.map +1 -1
  31. package/es/FieldHelper.mjs +2 -1
  32. package/es/FieldHelper.mjs.map +1 -1
  33. package/es/Figure.mjs +1 -1
  34. package/es/Figure.mjs.map +1 -1
  35. package/es/FileUpload.mjs +1 -1
  36. package/es/FileUpload.mjs.map +1 -1
  37. package/es/FramedContent.mjs +1 -1
  38. package/es/FramedContent.mjs.map +1 -1
  39. package/es/Hero.mjs +1 -1
  40. package/es/Hero.mjs.map +1 -1
  41. package/es/Image.mjs +1 -1
  42. package/es/Image.mjs.map +1 -1
  43. package/es/Input.mjs +2 -1
  44. package/es/Input.mjs.map +1 -1
  45. package/es/Label.mjs +3 -1
  46. package/es/Label.mjs.map +1 -1
  47. package/es/Layout/PageContainer.mjs +1 -1
  48. package/es/Layout/PageContainer.mjs.map +1 -1
  49. package/es/Layout/PageContent.mjs +1 -1
  50. package/es/Layout/PageContent.mjs.map +1 -1
  51. package/es/ListItem/ListItem.mjs +1 -1
  52. package/es/ListItem/ListItem.mjs.map +1 -1
  53. package/es/Menu.mjs +1 -1
  54. package/es/Menu.mjs.map +1 -1
  55. package/es/MessageBox.mjs +1 -1
  56. package/es/MessageBox.mjs.map +1 -1
  57. package/es/Pagination.mjs +1 -1
  58. package/es/Pagination.mjs.map +1 -1
  59. package/es/Popover.mjs +1 -1
  60. package/es/Popover.mjs.map +1 -1
  61. package/es/RadioGroup.mjs +2 -1
  62. package/es/RadioGroup.mjs.map +1 -1
  63. package/es/RainbowSpinner.mjs +66 -0
  64. package/es/RainbowSpinner.mjs.map +1 -0
  65. package/es/Select.mjs +1 -1
  66. package/es/Select.mjs.map +1 -1
  67. package/es/Skeleton.mjs +1 -1
  68. package/es/Skeleton.mjs.map +1 -1
  69. package/es/Slider.mjs +1 -1
  70. package/es/Slider.mjs.map +1 -1
  71. package/es/Spinner.mjs +1 -1
  72. package/es/Spinner.mjs.map +1 -1
  73. package/es/Switch.mjs +1 -1
  74. package/es/Switch.mjs.map +1 -1
  75. package/es/Table.mjs +1 -1
  76. package/es/Table.mjs.map +1 -1
  77. package/es/Tabs.mjs +1 -1
  78. package/es/Tabs.mjs.map +1 -1
  79. package/es/TagsInput.mjs +1 -1
  80. package/es/TagsInput.mjs.map +1 -1
  81. package/es/Text.mjs +1 -1
  82. package/es/Text.mjs.map +1 -1
  83. package/es/Toast.mjs +1 -1
  84. package/es/Toast.mjs.map +1 -1
  85. package/es/ToggleGroup.mjs +1 -1
  86. package/es/ToggleGroup.mjs.map +1 -1
  87. package/es/Tooltip.mjs +1 -1
  88. package/es/Tooltip.mjs.map +1 -1
  89. package/es/Tree/Tree.mjs +1 -1
  90. package/es/Tree/Tree.mjs.map +1 -1
  91. package/es/index.mjs +3 -2
  92. package/lib/Accordion.d.ts +1 -1
  93. package/lib/Accordion.js +7 -7
  94. package/lib/Accordion.js.map +1 -1
  95. package/lib/ArticleLists.d.ts +1 -1
  96. package/lib/ArticleLists.js +2 -2
  97. package/lib/ArticleLists.js.map +1 -1
  98. package/lib/Badge.d.ts +1 -1
  99. package/lib/Badge.js +2 -2
  100. package/lib/Badge.js.map +1 -1
  101. package/lib/BlockQuote.d.ts +1 -1
  102. package/lib/BlockQuote.js +2 -2
  103. package/lib/BlockQuote.js.map +1 -1
  104. package/lib/Button.d.ts +1 -1
  105. package/lib/Button.js +2 -2
  106. package/lib/Button.js.map +1 -1
  107. package/lib/Card/Card.d.ts +3 -3
  108. package/lib/Card/Card.js +3 -3
  109. package/lib/Card/Card.js.map +1 -1
  110. package/lib/Checkbox.d.ts +2 -1
  111. package/lib/Checkbox.js +9 -8
  112. package/lib/Checkbox.js.map +1 -1
  113. package/lib/Combobox.d.ts +1 -1
  114. package/lib/Combobox.js +16 -16
  115. package/lib/Combobox.js.map +1 -1
  116. package/lib/DatePicker.d.ts +2 -2
  117. package/lib/DatePicker.js +26 -26
  118. package/lib/DatePicker.js.map +1 -1
  119. package/lib/Dialog.d.ts +2 -2
  120. package/lib/Dialog.js +12 -12
  121. package/lib/Dialog.js.map +1 -1
  122. package/lib/ErrorMessage/ErrorMessage.d.ts +4 -4
  123. package/lib/ErrorMessage/ErrorMessage.js +4 -4
  124. package/lib/ErrorMessage/ErrorMessage.js.map +1 -1
  125. package/lib/ExpandableBox.d.ts +1 -1
  126. package/lib/ExpandableBox.js +3 -3
  127. package/lib/ExpandableBox.js.map +1 -1
  128. package/lib/Field.d.ts +2 -1
  129. package/lib/Field.js +4 -3
  130. package/lib/Field.js.map +1 -1
  131. package/lib/FieldErrorMessage.d.ts +2 -1
  132. package/lib/FieldErrorMessage.js +4 -3
  133. package/lib/FieldErrorMessage.js.map +1 -1
  134. package/lib/FieldHelper.d.ts +2 -1
  135. package/lib/FieldHelper.js +4 -3
  136. package/lib/FieldHelper.js.map +1 -1
  137. package/lib/Figure.d.ts +1 -1
  138. package/lib/Figure.js +2 -2
  139. package/lib/Figure.js.map +1 -1
  140. package/lib/FileUpload.d.ts +1 -1
  141. package/lib/FileUpload.js +15 -15
  142. package/lib/FileUpload.js.map +1 -1
  143. package/lib/FramedContent.d.ts +1 -1
  144. package/lib/FramedContent.js +2 -2
  145. package/lib/FramedContent.js.map +1 -1
  146. package/lib/Hero.d.ts +4 -4
  147. package/lib/Hero.js +6 -5
  148. package/lib/Hero.js.map +1 -1
  149. package/lib/Image.js +2 -2
  150. package/lib/Image.js.map +1 -1
  151. package/lib/Input.d.ts +1 -1
  152. package/lib/Input.js +7 -6
  153. package/lib/Input.js.map +1 -1
  154. package/lib/Label.d.ts +2 -1
  155. package/lib/Label.js +7 -5
  156. package/lib/Label.js.map +1 -1
  157. package/lib/Layout/PageContainer.d.ts +1 -1
  158. package/lib/Layout/PageContainer.js +1 -1
  159. package/lib/Layout/PageContainer.js.map +1 -1
  160. package/lib/Layout/PageContent.d.ts +2 -2
  161. package/lib/Layout/PageContent.js +3 -3
  162. package/lib/Layout/PageContent.js.map +1 -1
  163. package/lib/ListItem/ListItem.d.ts +3 -3
  164. package/lib/ListItem/ListItem.js +3 -3
  165. package/lib/ListItem/ListItem.js.map +1 -1
  166. package/lib/Menu.d.ts +1 -1
  167. package/lib/Menu.js +12 -12
  168. package/lib/Menu.js.map +1 -1
  169. package/lib/MessageBox.d.ts +1 -1
  170. package/lib/MessageBox.js +2 -2
  171. package/lib/MessageBox.js.map +1 -1
  172. package/lib/Pagination.d.ts +1 -1
  173. package/lib/Pagination.js +10 -9
  174. package/lib/Pagination.js.map +1 -1
  175. package/lib/Popover.d.ts +2 -2
  176. package/lib/Popover.js +15 -15
  177. package/lib/Popover.js.map +1 -1
  178. package/lib/RadioGroup.d.ts +1 -1
  179. package/lib/RadioGroup.js +12 -11
  180. package/lib/RadioGroup.js.map +1 -1
  181. package/lib/RainbowSpinner.d.ts +26 -0
  182. package/lib/RainbowSpinner.js +66 -0
  183. package/lib/RainbowSpinner.js.map +1 -0
  184. package/lib/Select.d.ts +1 -1
  185. package/lib/Select.js +18 -18
  186. package/lib/Select.js.map +1 -1
  187. package/lib/Skeleton.d.ts +2 -2
  188. package/lib/Skeleton.js +3 -2
  189. package/lib/Skeleton.js.map +1 -1
  190. package/lib/Slider.d.ts +1 -1
  191. package/lib/Slider.js +9 -9
  192. package/lib/Slider.js.map +1 -1
  193. package/lib/Spinner.d.ts +1 -1
  194. package/lib/Spinner.js +2 -2
  195. package/lib/Spinner.js.map +1 -1
  196. package/lib/Switch.d.ts +1 -1
  197. package/lib/Switch.js +7 -7
  198. package/lib/Switch.js.map +1 -1
  199. package/lib/Table.d.ts +2 -2
  200. package/lib/Table.js +3 -2
  201. package/lib/Table.js.map +1 -1
  202. package/lib/Tabs.d.ts +1 -1
  203. package/lib/Tabs.js +6 -6
  204. package/lib/Tabs.js.map +1 -1
  205. package/lib/TagsInput.d.ts +1 -1
  206. package/lib/TagsInput.js +12 -12
  207. package/lib/TagsInput.js.map +1 -1
  208. package/lib/Text.d.ts +1 -1
  209. package/lib/Text.js +3 -3
  210. package/lib/Text.js.map +1 -1
  211. package/lib/Toast.d.ts +1 -1
  212. package/lib/Toast.js +7 -7
  213. package/lib/Toast.js.map +1 -1
  214. package/lib/ToggleGroup.d.ts +1 -1
  215. package/lib/ToggleGroup.js +6 -5
  216. package/lib/ToggleGroup.js.map +1 -1
  217. package/lib/Tooltip.d.ts +1 -1
  218. package/lib/Tooltip.js +8 -8
  219. package/lib/Tooltip.js.map +1 -1
  220. package/lib/Tree/Tree.d.ts +2 -2
  221. package/lib/Tree/Tree.js +19 -19
  222. package/lib/Tree/Tree.js.map +1 -1
  223. package/lib/index.d.ts +2 -1
  224. package/lib/index.js +6 -3
  225. package/package.json +5 -5
package/lib/Tabs.d.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { Tabs } from "@ark-ui/react";
8
+ import { Tabs } from "@ark-ui/react/tabs";
9
9
  import { type RecipeVariantProps } from "@ndla/styled-system/css";
10
10
  import type { StyledProps } from "@ndla/styled-system/types";
11
11
  import type { RefAttributes } from "react";
package/lib/Tabs.js CHANGED
@@ -1,7 +1,7 @@
1
- let _ark_ui_react = require("@ark-ui/react");
2
1
  let _ndla_styled_system_css = require("@ndla/styled-system/css");
3
2
  let _ndla_styled_system_jsx = require("@ndla/styled-system/jsx");
4
3
  let react_jsx_runtime = require("react/jsx-runtime");
4
+ let _ark_ui_react_tabs = require("@ark-ui/react/tabs");
5
5
  //#region src/Tabs.tsx
6
6
  /**
7
7
  * Copyright (c) 2024-present, NDLA.
@@ -174,16 +174,16 @@ const { withProvider, withContext } = (0, _ndla_styled_system_jsx.createStyleCon
174
174
  }
175
175
  } }
176
176
  }));
177
- const InternalTabsRoot = withProvider(_ark_ui_react.Tabs.Root, "root", { baseComponent: true });
177
+ const InternalTabsRoot = withProvider(_ark_ui_react_tabs.Tabs.Root, "root", { baseComponent: true });
178
178
  const TabsRoot = ({ lazyMount = true, unmountOnExit = true, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(InternalTabsRoot, {
179
179
  lazyMount,
180
180
  unmountOnExit,
181
181
  ...props
182
182
  });
183
- const TabsContent = withContext(_ark_ui_react.Tabs.Content, "content", { baseComponent: true });
184
- const TabsIndicator = withContext(_ark_ui_react.Tabs.Indicator, "indicator", { baseComponent: true });
185
- const TabsList = withContext(_ark_ui_react.Tabs.List, "list", { baseComponent: true });
186
- const InternalTabsTrigger = withContext(_ark_ui_react.Tabs.Trigger, "trigger", { baseComponent: true });
183
+ const TabsContent = withContext(_ark_ui_react_tabs.Tabs.Content, "content", { baseComponent: true });
184
+ const TabsIndicator = withContext(_ark_ui_react_tabs.Tabs.Indicator, "indicator", { baseComponent: true });
185
+ const TabsList = withContext(_ark_ui_react_tabs.Tabs.List, "list", { baseComponent: true });
186
+ const InternalTabsTrigger = withContext(_ark_ui_react_tabs.Tabs.Trigger, "trigger", { baseComponent: true });
187
187
  const TabsTrigger = ({ className, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(InternalTabsTrigger, {
188
188
  className: (0, _ndla_styled_system_css.cx)("peer", className),
189
189
  ...props
package/lib/Tabs.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.js","names":["Tabs"],"sources":["../src/Tabs.tsx"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { Tabs } from \"@ark-ui/react\";\nimport { type RecipeVariantProps, cx, sva } from \"@ndla/styled-system/css\";\nimport { createStyleContext } from \"@ndla/styled-system/jsx\";\nimport type { StyledProps } from \"@ndla/styled-system/types\";\nimport type { RefAttributes } from \"react\";\n\nconst tabsRecipe = sva({\n // TODO: This still doesn't work. Need to figure out why we need to pass keys manually.\n // slots: tabsAnatomy.keys(),\n slots: [\"root\", \"list\", \"trigger\", \"content\", \"indicator\"],\n base: {\n root: {\n position: \"relative\",\n display: \"flex\",\n width: \"100%\",\n _horizontal: {\n flexDirection: \"column\",\n },\n _vertical: {\n flexDirection: \"row\",\n },\n },\n list: {\n position: \"relative\",\n display: \"flex\",\n flexShrink: \"0\",\n flexWrap: \"wrap\",\n _horizontal: {\n flexDirection: \"row\",\n },\n _vertical: {\n flexDirection: \"column\",\n },\n },\n trigger: {\n display: \"inline-flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n flexShrink: \"0\",\n cursor: \"pointer\",\n textStyle: \"label.small\",\n fontWeight: \"bold\",\n transitionDuration: \"normal\",\n transitionProperty: \"color, background, border-color\",\n transitionTimingFunction: \"default\",\n whiteSpace: \"nowrap\",\n paddingInline: \"small\",\n paddingBlock: \"3xsmall\",\n zIndex: \"1\",\n _hover: {\n color: \"text.action\",\n },\n _selected: {\n color: \"text.strong\",\n },\n _disabled: {\n color: \"text.subtle\",\n cursor: \"not-allowed\",\n _hover: {\n color: \"text.subtle\",\n },\n },\n _motionReduce: {\n transition: \"none\",\n transitionDuration: \"0s\",\n },\n },\n content: {\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"flex-start\",\n gap: \"xsmall\",\n },\n },\n defaultVariants: {\n variant: \"line\",\n },\n variants: {\n variant: {\n line: {\n trigger: {\n borderColor: \"stroke.default\",\n _hover: {\n borderColor: \"stroke.hover\",\n _focusVisible: {\n borderColor: \"stroke.default\",\n },\n },\n _horizontal: {\n borderBottom: \"1px solid\",\n },\n _disabled: {\n borderColor: \"stroke.default\",\n _hover: {\n borderColor: \"stroke.default\",\n },\n },\n _vertical: {\n borderLeft: \"1px solid\",\n justifyContent: \"flex-start\",\n },\n _focusVisible: {\n outline: \"none\",\n borderRadius: \"unset\",\n },\n },\n indicator: {\n background: \"stroke.default\",\n _peerFocusVisible: {\n height: \"var(--height)\",\n width: \"var(--width)\",\n outline: \"3px solid\",\n outlineOffset: \"-3px\",\n outlineColor: \"stroke.default\",\n background: \"transparent\",\n _horizontal: {\n borderTopRadius: \"xsmall\",\n },\n _vertical: {\n borderRightRadius: \"xsmall\",\n },\n },\n _horizontal: {\n top: \"calc(var(--top) + var(--height) - 6px)\",\n height: \"3\",\n width: \"var(--width)\",\n _peerFocusVisible: { top: \"var(--top)\" },\n },\n _vertical: {\n height: \"var(--height)\",\n left: \"0\",\n width: \"3\",\n },\n },\n content: {\n zIndex: \"1\",\n _horizontal: {\n paddingBlockStart: \"xsmall\",\n },\n _vertical: {\n paddingInlineStart: \"xsmall\",\n },\n _focusVisible: {\n outline: \"none\",\n boxShadow: \"0 0 0 3px var(--shadow-color)\",\n boxShadowColor: \"stroke.default\",\n },\n },\n },\n outline: {\n list: {\n _horizontal: {\n marginBlockEnd: \"-1px\",\n },\n _vertical: {\n marginInlineEnd: \"-1px\",\n },\n },\n trigger: {\n borderColor: \"transparent\",\n borderWidth: \"1px\",\n _horizontal: {\n borderTopRadius: \"xsmall\",\n },\n _vertical: {\n borderTopLeftRadius: \"xsmall\",\n borderBottomLeftRadius: \"xsmall\",\n },\n _selected: {\n background: \"surface.default\",\n borderColor: \"stroke.default\",\n _horizontal: {\n borderBottom: \"none\",\n },\n _vertical: {\n borderRight: \"none\",\n },\n },\n _focusVisible: {\n outline: \"3px solid\",\n outlineOffset: \"-3px\",\n outlineColor: \"stroke.default\",\n },\n },\n content: {\n borderWidth: \"1px\",\n borderColor: \"stroke.default\",\n background: \"surface.default\",\n width: \"100%\",\n padding: \"xsmall\",\n _vertical: {\n borderBottomRadius: \"xsmall\",\n borderRightRadius: \"xsmall\",\n },\n _horizontal: {\n borderRightRadius: \"xsmall\",\n borderBottomLeftRadius: \"xsmall\",\n },\n _focusVisible: {\n outline: \"3px solid\",\n outlineOffset: \"-3px\",\n outlineColor: \"stroke.default\",\n },\n },\n },\n },\n },\n});\n\nconst { withProvider, withContext } = createStyleContext(tabsRecipe);\n\nexport type TabsVariantProps = NonNullable<RecipeVariantProps<typeof tabsRecipe>>;\n\nexport interface TabsRootProps extends Tabs.RootProps, TabsVariantProps, StyledProps, RefAttributes<HTMLDivElement> {\n translations: Tabs.RootProps[\"translations\"];\n}\n\nconst InternalTabsRoot = withProvider(Tabs.Root, \"root\", { baseComponent: true });\n\nexport const TabsRoot = ({ lazyMount = true, unmountOnExit = true, ...props }: TabsRootProps) => (\n <InternalTabsRoot lazyMount={lazyMount} unmountOnExit={unmountOnExit} {...props} />\n);\n\nexport const TabsContent = withContext(Tabs.Content, \"content\", { baseComponent: true });\n\nexport const TabsIndicator = withContext(Tabs.Indicator, \"indicator\", { baseComponent: true });\n\nexport const TabsList = withContext(Tabs.List, \"list\", { baseComponent: true });\n\nconst InternalTabsTrigger = withContext(Tabs.Trigger, \"trigger\", { baseComponent: true });\n\ninterface TabsTriggerProps extends Tabs.TriggerProps, StyledProps, RefAttributes<HTMLButtonElement> {}\n\nexport const TabsTrigger = ({ className, ...props }: TabsTriggerProps) => (\n <InternalTabsTrigger className={cx(\"peer\", className)} {...props} />\n);\n"],"mappings":"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"}
1
+ {"version":3,"file":"Tabs.js","names":["Tabs"],"sources":["../src/Tabs.tsx"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { Tabs } from \"@ark-ui/react/tabs\";\nimport { type RecipeVariantProps, cx, sva } from \"@ndla/styled-system/css\";\nimport { createStyleContext } from \"@ndla/styled-system/jsx\";\nimport type { StyledProps } from \"@ndla/styled-system/types\";\nimport type { RefAttributes } from \"react\";\n\nconst tabsRecipe = sva({\n // TODO: This still doesn't work. Need to figure out why we need to pass keys manually.\n // slots: tabsAnatomy.keys(),\n slots: [\"root\", \"list\", \"trigger\", \"content\", \"indicator\"],\n base: {\n root: {\n position: \"relative\",\n display: \"flex\",\n width: \"100%\",\n _horizontal: {\n flexDirection: \"column\",\n },\n _vertical: {\n flexDirection: \"row\",\n },\n },\n list: {\n position: \"relative\",\n display: \"flex\",\n flexShrink: \"0\",\n flexWrap: \"wrap\",\n _horizontal: {\n flexDirection: \"row\",\n },\n _vertical: {\n flexDirection: \"column\",\n },\n },\n trigger: {\n display: \"inline-flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n flexShrink: \"0\",\n cursor: \"pointer\",\n textStyle: \"label.small\",\n fontWeight: \"bold\",\n transitionDuration: \"normal\",\n transitionProperty: \"color, background, border-color\",\n transitionTimingFunction: \"default\",\n whiteSpace: \"nowrap\",\n paddingInline: \"small\",\n paddingBlock: \"3xsmall\",\n zIndex: \"1\",\n _hover: {\n color: \"text.action\",\n },\n _selected: {\n color: \"text.strong\",\n },\n _disabled: {\n color: \"text.subtle\",\n cursor: \"not-allowed\",\n _hover: {\n color: \"text.subtle\",\n },\n },\n _motionReduce: {\n transition: \"none\",\n transitionDuration: \"0s\",\n },\n },\n content: {\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"flex-start\",\n gap: \"xsmall\",\n },\n },\n defaultVariants: {\n variant: \"line\",\n },\n variants: {\n variant: {\n line: {\n trigger: {\n borderColor: \"stroke.default\",\n _hover: {\n borderColor: \"stroke.hover\",\n _focusVisible: {\n borderColor: \"stroke.default\",\n },\n },\n _horizontal: {\n borderBottom: \"1px solid\",\n },\n _disabled: {\n borderColor: \"stroke.default\",\n _hover: {\n borderColor: \"stroke.default\",\n },\n },\n _vertical: {\n borderLeft: \"1px solid\",\n justifyContent: \"flex-start\",\n },\n _focusVisible: {\n outline: \"none\",\n borderRadius: \"unset\",\n },\n },\n indicator: {\n background: \"stroke.default\",\n _peerFocusVisible: {\n height: \"var(--height)\",\n width: \"var(--width)\",\n outline: \"3px solid\",\n outlineOffset: \"-3px\",\n outlineColor: \"stroke.default\",\n background: \"transparent\",\n _horizontal: {\n borderTopRadius: \"xsmall\",\n },\n _vertical: {\n borderRightRadius: \"xsmall\",\n },\n },\n _horizontal: {\n top: \"calc(var(--top) + var(--height) - 6px)\",\n height: \"3\",\n width: \"var(--width)\",\n _peerFocusVisible: { top: \"var(--top)\" },\n },\n _vertical: {\n height: \"var(--height)\",\n left: \"0\",\n width: \"3\",\n },\n },\n content: {\n zIndex: \"1\",\n _horizontal: {\n paddingBlockStart: \"xsmall\",\n },\n _vertical: {\n paddingInlineStart: \"xsmall\",\n },\n _focusVisible: {\n outline: \"none\",\n boxShadow: \"0 0 0 3px var(--shadow-color)\",\n boxShadowColor: \"stroke.default\",\n },\n },\n },\n outline: {\n list: {\n _horizontal: {\n marginBlockEnd: \"-1px\",\n },\n _vertical: {\n marginInlineEnd: \"-1px\",\n },\n },\n trigger: {\n borderColor: \"transparent\",\n borderWidth: \"1px\",\n _horizontal: {\n borderTopRadius: \"xsmall\",\n },\n _vertical: {\n borderTopLeftRadius: \"xsmall\",\n borderBottomLeftRadius: \"xsmall\",\n },\n _selected: {\n background: \"surface.default\",\n borderColor: \"stroke.default\",\n _horizontal: {\n borderBottom: \"none\",\n },\n _vertical: {\n borderRight: \"none\",\n },\n },\n _focusVisible: {\n outline: \"3px solid\",\n outlineOffset: \"-3px\",\n outlineColor: \"stroke.default\",\n },\n },\n content: {\n borderWidth: \"1px\",\n borderColor: \"stroke.default\",\n background: \"surface.default\",\n width: \"100%\",\n padding: \"xsmall\",\n _vertical: {\n borderBottomRadius: \"xsmall\",\n borderRightRadius: \"xsmall\",\n },\n _horizontal: {\n borderRightRadius: \"xsmall\",\n borderBottomLeftRadius: \"xsmall\",\n },\n _focusVisible: {\n outline: \"3px solid\",\n outlineOffset: \"-3px\",\n outlineColor: \"stroke.default\",\n },\n },\n },\n },\n },\n});\n\nconst { withProvider, withContext } = createStyleContext(tabsRecipe);\n\nexport type TabsVariantProps = NonNullable<RecipeVariantProps<typeof tabsRecipe>>;\n\nexport interface TabsRootProps extends Tabs.RootProps, TabsVariantProps, StyledProps, RefAttributes<HTMLDivElement> {\n translations: Tabs.RootProps[\"translations\"];\n}\n\nconst InternalTabsRoot = withProvider(Tabs.Root, \"root\", { baseComponent: true });\n\nexport const TabsRoot = ({ lazyMount = true, unmountOnExit = true, ...props }: TabsRootProps) => (\n <InternalTabsRoot lazyMount={lazyMount} unmountOnExit={unmountOnExit} {...props} />\n);\n\nexport const TabsContent = withContext(Tabs.Content, \"content\", { baseComponent: true });\n\nexport const TabsIndicator = withContext(Tabs.Indicator, \"indicator\", { baseComponent: true });\n\nexport const TabsList = withContext(Tabs.List, \"list\", { baseComponent: true });\n\nconst InternalTabsTrigger = withContext(Tabs.Trigger, \"trigger\", { baseComponent: true });\n\ninterface TabsTriggerProps extends Tabs.TriggerProps, StyledProps, RefAttributes<HTMLButtonElement> {}\n\nexport const TabsTrigger = ({ className, ...props }: TabsTriggerProps) => (\n <InternalTabsTrigger className={cx(\"peer\", className)} {...props} />\n);\n"],"mappings":"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"}
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { TagsInput } from "@ark-ui/react";
8
+ import { TagsInput } from "@ark-ui/react/tags-input";
9
9
  import type { StyledProps } from "@ndla/styled-system/types";
10
10
  import { type RefAttributes } from "react";
11
11
  import { type TextProps } from "./Text";
package/lib/TagsInput.js CHANGED
@@ -1,9 +1,9 @@
1
1
  const require_Label = require("./Label.js");
2
- let _ark_ui_react = require("@ark-ui/react");
3
2
  let _ndla_styled_system_css = require("@ndla/styled-system/css");
4
3
  let _ndla_styled_system_jsx = require("@ndla/styled-system/jsx");
5
4
  let react_jsx_runtime = require("react/jsx-runtime");
6
5
  let react = require("react");
6
+ let _ark_ui_react_tags_input = require("@ark-ui/react/tags-input");
7
7
  //#region src/TagsInput.tsx
8
8
  /**
9
9
  * Copyright (c) 2024-present, NDLA.
@@ -13,7 +13,7 @@ let react = require("react");
13
13
  *
14
14
  */
15
15
  const { withProvider, withContext } = (0, _ndla_styled_system_jsx.createStyleContext)((0, _ndla_styled_system_css.sva)({
16
- slots: _ark_ui_react.tagsInputAnatomy.keys(),
16
+ slots: _ark_ui_react_tags_input.tagsInputAnatomy.keys(),
17
17
  base: {
18
18
  root: {
19
19
  display: "flex",
@@ -86,16 +86,16 @@ const { withProvider, withContext } = (0, _ndla_styled_system_jsx.createStyleCon
86
86
  }
87
87
  }
88
88
  }));
89
- const TagsInputRoot = withProvider(_ark_ui_react.TagsInput.Root, "root", { baseComponent: true });
90
- const TagsInputClearTrigger = withContext(_ark_ui_react.TagsInput.ClearTrigger, "clearTrigger", { baseComponent: true });
91
- const TagsInputControl = withContext(_ark_ui_react.TagsInput.Control, "control", { baseComponent: true });
92
- const TagsInputInput = withContext(_ark_ui_react.TagsInput.Input, "input", { baseComponent: true });
93
- const TagsInputItemDeleteTrigger = withContext(_ark_ui_react.TagsInput.ItemDeleteTrigger, "itemDeleteTrigger", { baseComponent: true });
94
- const TagsInputItemInput = withContext(_ark_ui_react.TagsInput.ItemInput, "itemInput", { baseComponent: true });
95
- const TagsInputItemPreview = withContext(_ark_ui_react.TagsInput.ItemPreview, "itemPreview", { baseComponent: true });
96
- const TagsInputItem = withContext(_ark_ui_react.TagsInput.Item, "item", { baseComponent: true });
97
- const TagsInputItemText = withContext(_ark_ui_react.TagsInput.ItemText, "itemText", { baseComponent: true });
98
- const InternalTagsInputLabel = withContext(_ark_ui_react.TagsInput.Label, "label");
89
+ const TagsInputRoot = withProvider(_ark_ui_react_tags_input.TagsInput.Root, "root", { baseComponent: true });
90
+ const TagsInputClearTrigger = withContext(_ark_ui_react_tags_input.TagsInput.ClearTrigger, "clearTrigger", { baseComponent: true });
91
+ const TagsInputControl = withContext(_ark_ui_react_tags_input.TagsInput.Control, "control", { baseComponent: true });
92
+ const TagsInputInput = withContext(_ark_ui_react_tags_input.TagsInput.Input, "input", { baseComponent: true });
93
+ const TagsInputItemDeleteTrigger = withContext(_ark_ui_react_tags_input.TagsInput.ItemDeleteTrigger, "itemDeleteTrigger", { baseComponent: true });
94
+ const TagsInputItemInput = withContext(_ark_ui_react_tags_input.TagsInput.ItemInput, "itemInput", { baseComponent: true });
95
+ const TagsInputItemPreview = withContext(_ark_ui_react_tags_input.TagsInput.ItemPreview, "itemPreview", { baseComponent: true });
96
+ const TagsInputItem = withContext(_ark_ui_react_tags_input.TagsInput.Item, "item", { baseComponent: true });
97
+ const TagsInputItemText = withContext(_ark_ui_react_tags_input.TagsInput.ItemText, "itemText", { baseComponent: true });
98
+ const InternalTagsInputLabel = withContext(_ark_ui_react_tags_input.TagsInput.Label, "label");
99
99
  const TagsInputLabel = (0, react.forwardRef)(({ children, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(InternalTagsInputLabel, {
100
100
  asChild: true,
101
101
  ref,
@@ -1 +1 @@
1
- {"version":3,"file":"TagsInput.js","names":["tagsInputAnatomy","TagsInput","Label"],"sources":["../src/TagsInput.tsx"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { TagsInput, tagsInputAnatomy } from \"@ark-ui/react\";\nimport { sva } from \"@ndla/styled-system/css\";\nimport { createStyleContext } from \"@ndla/styled-system/jsx\";\nimport type { StyledProps } from \"@ndla/styled-system/types\";\nimport { forwardRef, type RefAttributes } from \"react\";\nimport { Label } from \"./Label\";\nimport { type TextProps } from \"./Text\";\n\nconst tagsInputRecipe = sva({\n slots: tagsInputAnatomy.keys(),\n base: {\n root: {\n display: \"flex\",\n flexDirection: \"column\",\n gap: \"xxsmall\",\n width: \"full\",\n },\n control: {\n display: \"inline-flex\",\n gap: \"xxsmall\",\n alignItems: \"center\",\n flexWrap: \"wrap\",\n },\n item: {\n paddingBlock: \"3xsmall\",\n },\n itemPreview: {\n display: \"flex\",\n gap: \"1\",\n paddingBlock: \"4xsmall\",\n paddingInlineEnd: \"3xsmall\",\n paddingInlineStart: \"xsmall\",\n cursor: \"initial\",\n borderRadius: \"large\",\n outline: \"1px solid\",\n outlineColor: \"transparent\",\n backgroundColor: \"surface.action.selected\",\n color: \"text.onAction\",\n transitionDuration: \"normal\",\n transitionProperty: \"background, outline-color, color\",\n transitionTimingFunction: \"default\",\n textStyle: \"label.medium\",\n _hover: {\n backgroundColor: \"surface.actionSubtle.hover\",\n outlineColor: \"stroke.hover\",\n color: \"text.default\",\n \"& svg\": {\n color: \"stroke.hover\",\n },\n _motionReduce: {\n transition: \"none\",\n transitionDuration: \"0s\",\n },\n },\n _highlighted: {\n backgroundColor: \"surface.actionSubtle.hover\",\n outlineWidth: \"3px\",\n outlineOffset: \"-1px\",\n outlineColor: \"stroke.hover\",\n color: \"text.default\",\n \"& svg\": {\n color: \"stroke.hover\",\n },\n _motionReduce: {\n transition: \"none\",\n transitionDuration: \"0s\",\n },\n },\n },\n input: {\n flex: \"1\",\n },\n itemDeleteTrigger: {\n paddingBottom: \"1\",\n cursor: \"pointer\",\n \"& span\": {\n display: \"inline-block\",\n },\n \"& svg\": {\n marginInline: \"0\",\n marginBlock: \"0\",\n width: \"medium\",\n height: \"medium\",\n },\n },\n itemText: {\n paddingBottom: \"1\",\n },\n itemInput: {\n outline: \"none\",\n background: \"transparent\",\n },\n },\n});\nconst { withProvider, withContext } = createStyleContext(tagsInputRecipe);\n\nexport interface TagsInputRootProps extends TagsInput.RootProps, StyledProps {\n translations: TagsInput.RootProps[\"translations\"];\n}\n\nexport const TagsInputRoot = withProvider(TagsInput.Root, \"root\", {\n baseComponent: true,\n});\n\nexport interface TagsInputClearTriggerProps extends TagsInput.ClearTriggerProps, StyledProps {}\n\nexport const TagsInputClearTrigger = withContext(TagsInput.ClearTrigger, \"clearTrigger\", { baseComponent: true });\n\nexport interface TagsInputControlProps extends TagsInput.ControlProps, StyledProps {}\n\nexport const TagsInputControl = withContext(TagsInput.Control, \"control\", { baseComponent: true });\n\nexport interface TagsInputInputProps extends TagsInput.InputProps, StyledProps {}\n\nexport const TagsInputInput = withContext(TagsInput.Input, \"input\", { baseComponent: true });\n\nexport interface TagsInputItemDeleteTriggerProps extends TagsInput.ItemDeleteTriggerProps, StyledProps {}\n\nexport const TagsInputItemDeleteTrigger = withContext(TagsInput.ItemDeleteTrigger, \"itemDeleteTrigger\", {\n baseComponent: true,\n});\n\nexport interface TagsInputItemInputProps extends TagsInput.ItemInputProps, StyledProps {}\n\nexport const TagsInputItemInput = withContext(TagsInput.ItemInput, \"itemInput\", { baseComponent: true });\n\nexport interface TagsInputItemPreviewProps extends TagsInput.ItemPreviewProps, StyledProps {}\n\nexport const TagsInputItemPreview = withContext(TagsInput.ItemPreview, \"itemPreview\", { baseComponent: true });\n\nexport interface TagsInputItemProps extends TagsInput.ItemProps, StyledProps {}\n\nexport const TagsInputItem = withContext(TagsInput.Item, \"item\", { baseComponent: true });\n\nexport interface TagsInputItemTextProps extends TagsInput.ItemTextProps, StyledProps {}\n\nexport const TagsInputItemText = withContext(TagsInput.ItemText, \"itemText\", { baseComponent: true });\n\nconst InternalTagsInputLabel = withContext(TagsInput.Label, \"label\");\n\nexport interface TagsInputLabelProps\n extends Omit<TagsInput.LabelProps, \"color\">, StyledProps, TextProps, RefAttributes<HTMLLabelElement> {}\n\nexport const TagsInputLabel = forwardRef<HTMLLabelElement, TagsInputLabelProps>(({ children, ...props }, ref) => (\n <InternalTagsInputLabel asChild ref={ref} {...props}>\n <Label>{children}</Label>\n </InternalTagsInputLabel>\n));\n"],"mappings":";;;;;;;;;;;;;;AAsGA,MAAM,EAAE,cAAc,iBAAA,GAAA,wBAAA,qBAAA,GAAA,wBAAA,KAtFM;CAC1B,OAAOA,cAAAA,iBAAiB,KAAK;CAC7B,MAAM;EACJ,MAAM;GACJ,SAAS;GACT,eAAe;GACf,KAAK;GACL,OAAO;EACT;EACA,SAAS;GACP,SAAS;GACT,KAAK;GACL,YAAY;GACZ,UAAU;EACZ;EACA,MAAM,EACJ,cAAc,UAChB;EACA,aAAa;GACX,SAAS;GACT,KAAK;GACL,cAAc;GACd,kBAAkB;GAClB,oBAAoB;GACpB,QAAQ;GACR,cAAc;GACd,SAAS;GACT,cAAc;GACd,iBAAiB;GACjB,OAAO;GACP,oBAAoB;GACpB,oBAAoB;GACpB,0BAA0B;GAC1B,WAAW;GACX,QAAQ;IACN,iBAAiB;IACjB,cAAc;IACd,OAAO;IACP,SAAS,EACP,OAAO,eACT;IACA,eAAe;KACb,YAAY;KACZ,oBAAoB;IACtB;GACF;GACA,cAAc;IACZ,iBAAiB;IACjB,cAAc;IACd,eAAe;IACf,cAAc;IACd,OAAO;IACP,SAAS,EACP,OAAO,eACT;IACA,eAAe;KACb,YAAY;KACZ,oBAAoB;IACtB;GACF;EACF;EACA,OAAO,EACL,MAAM,IACR;EACA,mBAAmB;GACjB,eAAe;GACf,QAAQ;GACR,UAAU,EACR,SAAS,eACX;GACA,SAAS;IACP,cAAc;IACd,aAAa;IACb,OAAO;IACP,QAAQ;GACV;EACF;EACA,UAAU,EACR,eAAe,IACjB;EACA,WAAW;GACT,SAAS;GACT,YAAY;EACd;CACF;AACF,CACuE,CAAC;AAMxE,MAAa,gBAAgB,aAAaC,cAAAA,UAAU,MAAM,QAAQ,EAChE,eAAe,KACjB,CAAC;AAID,MAAa,wBAAwB,YAAYA,cAAAA,UAAU,cAAc,gBAAgB,EAAE,eAAe,KAAK,CAAC;AAIhH,MAAa,mBAAmB,YAAYA,cAAAA,UAAU,SAAS,WAAW,EAAE,eAAe,KAAK,CAAC;AAIjG,MAAa,iBAAiB,YAAYA,cAAAA,UAAU,OAAO,SAAS,EAAE,eAAe,KAAK,CAAC;AAI3F,MAAa,6BAA6B,YAAYA,cAAAA,UAAU,mBAAmB,qBAAqB,EACtG,eAAe,KACjB,CAAC;AAID,MAAa,qBAAqB,YAAYA,cAAAA,UAAU,WAAW,aAAa,EAAE,eAAe,KAAK,CAAC;AAIvG,MAAa,uBAAuB,YAAYA,cAAAA,UAAU,aAAa,eAAe,EAAE,eAAe,KAAK,CAAC;AAI7G,MAAa,gBAAgB,YAAYA,cAAAA,UAAU,MAAM,QAAQ,EAAE,eAAe,KAAK,CAAC;AAIxF,MAAa,oBAAoB,YAAYA,cAAAA,UAAU,UAAU,YAAY,EAAE,eAAe,KAAK,CAAC;AAEpG,MAAM,yBAAyB,YAAYA,cAAAA,UAAU,OAAO,OAAO;AAKnE,MAAa,kBAAA,GAAA,MAAA,aAAoE,EAAE,UAAU,GAAG,SAAS,QACvG,iBAAA,GAAA,kBAAA,KAAC,wBAAD;CAAwB,SAAA;CAAa;CAAK,GAAI;WAC5C,iBAAA,GAAA,kBAAA,KAACC,cAAAA,OAAD,EAAQ,SAAgB,CAAA;AACF,CAAA,CACzB"}
1
+ {"version":3,"file":"TagsInput.js","names":["tagsInputAnatomy","TagsInput","Label"],"sources":["../src/TagsInput.tsx"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { TagsInput, tagsInputAnatomy } from \"@ark-ui/react/tags-input\";\nimport { sva } from \"@ndla/styled-system/css\";\nimport { createStyleContext } from \"@ndla/styled-system/jsx\";\nimport type { StyledProps } from \"@ndla/styled-system/types\";\nimport { forwardRef, type RefAttributes } from \"react\";\nimport { Label } from \"./Label\";\nimport { type TextProps } from \"./Text\";\n\nconst tagsInputRecipe = sva({\n slots: tagsInputAnatomy.keys(),\n base: {\n root: {\n display: \"flex\",\n flexDirection: \"column\",\n gap: \"xxsmall\",\n width: \"full\",\n },\n control: {\n display: \"inline-flex\",\n gap: \"xxsmall\",\n alignItems: \"center\",\n flexWrap: \"wrap\",\n },\n item: {\n paddingBlock: \"3xsmall\",\n },\n itemPreview: {\n display: \"flex\",\n gap: \"1\",\n paddingBlock: \"4xsmall\",\n paddingInlineEnd: \"3xsmall\",\n paddingInlineStart: \"xsmall\",\n cursor: \"initial\",\n borderRadius: \"large\",\n outline: \"1px solid\",\n outlineColor: \"transparent\",\n backgroundColor: \"surface.action.selected\",\n color: \"text.onAction\",\n transitionDuration: \"normal\",\n transitionProperty: \"background, outline-color, color\",\n transitionTimingFunction: \"default\",\n textStyle: \"label.medium\",\n _hover: {\n backgroundColor: \"surface.actionSubtle.hover\",\n outlineColor: \"stroke.hover\",\n color: \"text.default\",\n \"& svg\": {\n color: \"stroke.hover\",\n },\n _motionReduce: {\n transition: \"none\",\n transitionDuration: \"0s\",\n },\n },\n _highlighted: {\n backgroundColor: \"surface.actionSubtle.hover\",\n outlineWidth: \"3px\",\n outlineOffset: \"-1px\",\n outlineColor: \"stroke.hover\",\n color: \"text.default\",\n \"& svg\": {\n color: \"stroke.hover\",\n },\n _motionReduce: {\n transition: \"none\",\n transitionDuration: \"0s\",\n },\n },\n },\n input: {\n flex: \"1\",\n },\n itemDeleteTrigger: {\n paddingBottom: \"1\",\n cursor: \"pointer\",\n \"& span\": {\n display: \"inline-block\",\n },\n \"& svg\": {\n marginInline: \"0\",\n marginBlock: \"0\",\n width: \"medium\",\n height: \"medium\",\n },\n },\n itemText: {\n paddingBottom: \"1\",\n },\n itemInput: {\n outline: \"none\",\n background: \"transparent\",\n },\n },\n});\nconst { withProvider, withContext } = createStyleContext(tagsInputRecipe);\n\nexport interface TagsInputRootProps extends TagsInput.RootProps, StyledProps {\n translations: TagsInput.RootProps[\"translations\"];\n}\n\nexport const TagsInputRoot = withProvider(TagsInput.Root, \"root\", {\n baseComponent: true,\n});\n\nexport interface TagsInputClearTriggerProps extends TagsInput.ClearTriggerProps, StyledProps {}\n\nexport const TagsInputClearTrigger = withContext(TagsInput.ClearTrigger, \"clearTrigger\", { baseComponent: true });\n\nexport interface TagsInputControlProps extends TagsInput.ControlProps, StyledProps {}\n\nexport const TagsInputControl = withContext(TagsInput.Control, \"control\", { baseComponent: true });\n\nexport interface TagsInputInputProps extends TagsInput.InputProps, StyledProps {}\n\nexport const TagsInputInput = withContext(TagsInput.Input, \"input\", { baseComponent: true });\n\nexport interface TagsInputItemDeleteTriggerProps extends TagsInput.ItemDeleteTriggerProps, StyledProps {}\n\nexport const TagsInputItemDeleteTrigger = withContext(TagsInput.ItemDeleteTrigger, \"itemDeleteTrigger\", {\n baseComponent: true,\n});\n\nexport interface TagsInputItemInputProps extends TagsInput.ItemInputProps, StyledProps {}\n\nexport const TagsInputItemInput = withContext(TagsInput.ItemInput, \"itemInput\", { baseComponent: true });\n\nexport interface TagsInputItemPreviewProps extends TagsInput.ItemPreviewProps, StyledProps {}\n\nexport const TagsInputItemPreview = withContext(TagsInput.ItemPreview, \"itemPreview\", { baseComponent: true });\n\nexport interface TagsInputItemProps extends TagsInput.ItemProps, StyledProps {}\n\nexport const TagsInputItem = withContext(TagsInput.Item, \"item\", { baseComponent: true });\n\nexport interface TagsInputItemTextProps extends TagsInput.ItemTextProps, StyledProps {}\n\nexport const TagsInputItemText = withContext(TagsInput.ItemText, \"itemText\", { baseComponent: true });\n\nconst InternalTagsInputLabel = withContext(TagsInput.Label, \"label\");\n\nexport interface TagsInputLabelProps\n extends Omit<TagsInput.LabelProps, \"color\">, StyledProps, TextProps, RefAttributes<HTMLLabelElement> {}\n\nexport const TagsInputLabel = forwardRef<HTMLLabelElement, TagsInputLabelProps>(({ children, ...props }, ref) => (\n <InternalTagsInputLabel asChild ref={ref} {...props}>\n <Label>{children}</Label>\n </InternalTagsInputLabel>\n));\n"],"mappings":";;;;;;;;;;;;;;AAsGA,MAAM,EAAE,cAAc,iBAAA,GAAA,wBAAA,qBAAA,GAAA,wBAAA,KAtFM;CAC1B,OAAOA,yBAAAA,iBAAiB,KAAK;CAC7B,MAAM;EACJ,MAAM;GACJ,SAAS;GACT,eAAe;GACf,KAAK;GACL,OAAO;EACT;EACA,SAAS;GACP,SAAS;GACT,KAAK;GACL,YAAY;GACZ,UAAU;EACZ;EACA,MAAM,EACJ,cAAc,UAChB;EACA,aAAa;GACX,SAAS;GACT,KAAK;GACL,cAAc;GACd,kBAAkB;GAClB,oBAAoB;GACpB,QAAQ;GACR,cAAc;GACd,SAAS;GACT,cAAc;GACd,iBAAiB;GACjB,OAAO;GACP,oBAAoB;GACpB,oBAAoB;GACpB,0BAA0B;GAC1B,WAAW;GACX,QAAQ;IACN,iBAAiB;IACjB,cAAc;IACd,OAAO;IACP,SAAS,EACP,OAAO,eACT;IACA,eAAe;KACb,YAAY;KACZ,oBAAoB;IACtB;GACF;GACA,cAAc;IACZ,iBAAiB;IACjB,cAAc;IACd,eAAe;IACf,cAAc;IACd,OAAO;IACP,SAAS,EACP,OAAO,eACT;IACA,eAAe;KACb,YAAY;KACZ,oBAAoB;IACtB;GACF;EACF;EACA,OAAO,EACL,MAAM,IACR;EACA,mBAAmB;GACjB,eAAe;GACf,QAAQ;GACR,UAAU,EACR,SAAS,eACX;GACA,SAAS;IACP,cAAc;IACd,aAAa;IACb,OAAO;IACP,QAAQ;GACV;EACF;EACA,UAAU,EACR,eAAe,IACjB;EACA,WAAW;GACT,SAAS;GACT,YAAY;EACd;CACF;AACF,CACuE,CAAC;AAMxE,MAAa,gBAAgB,aAAaC,yBAAAA,UAAU,MAAM,QAAQ,EAChE,eAAe,KACjB,CAAC;AAID,MAAa,wBAAwB,YAAYA,yBAAAA,UAAU,cAAc,gBAAgB,EAAE,eAAe,KAAK,CAAC;AAIhH,MAAa,mBAAmB,YAAYA,yBAAAA,UAAU,SAAS,WAAW,EAAE,eAAe,KAAK,CAAC;AAIjG,MAAa,iBAAiB,YAAYA,yBAAAA,UAAU,OAAO,SAAS,EAAE,eAAe,KAAK,CAAC;AAI3F,MAAa,6BAA6B,YAAYA,yBAAAA,UAAU,mBAAmB,qBAAqB,EACtG,eAAe,KACjB,CAAC;AAID,MAAa,qBAAqB,YAAYA,yBAAAA,UAAU,WAAW,aAAa,EAAE,eAAe,KAAK,CAAC;AAIvG,MAAa,uBAAuB,YAAYA,yBAAAA,UAAU,aAAa,eAAe,EAAE,eAAe,KAAK,CAAC;AAI7G,MAAa,gBAAgB,YAAYA,yBAAAA,UAAU,MAAM,QAAQ,EAAE,eAAe,KAAK,CAAC;AAIxF,MAAa,oBAAoB,YAAYA,yBAAAA,UAAU,UAAU,YAAY,EAAE,eAAe,KAAK,CAAC;AAEpG,MAAM,yBAAyB,YAAYA,yBAAAA,UAAU,OAAO,OAAO;AAKnE,MAAa,kBAAA,GAAA,MAAA,aAAoE,EAAE,UAAU,GAAG,SAAS,QACvG,iBAAA,GAAA,kBAAA,KAAC,wBAAD;CAAwB,SAAA;CAAa;CAAK,GAAI;WAC5C,iBAAA,GAAA,kBAAA,KAACC,cAAAA,OAAD,EAAQ,SAAgB,CAAA;AACF,CAAA,CACzB"}
package/lib/Text.d.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { type HTMLArkProps } from "@ark-ui/react";
8
+ import { type HTMLArkProps } from "@ark-ui/react/factory";
9
9
  import type { ColorToken, FontWeightToken } from "@ndla/styled-system/tokens";
10
10
  import type { StyledProps, UtilityValues } from "@ndla/styled-system/types";
11
11
  export interface TextProps {
package/lib/Text.js CHANGED
@@ -1,7 +1,7 @@
1
- let _ark_ui_react = require("@ark-ui/react");
2
1
  let _ndla_styled_system_css = require("@ndla/styled-system/css");
3
2
  let _ndla_styled_system_jsx = require("@ndla/styled-system/jsx");
4
3
  let react_jsx_runtime = require("react/jsx-runtime");
4
+ let _ark_ui_react_factory = require("@ark-ui/react/factory");
5
5
  let react = require("react");
6
6
  //#region src/Text.tsx
7
7
  /**
@@ -11,7 +11,7 @@ let react = require("react");
11
11
  * LICENSE file in the root directory of this source tree.
12
12
  *
13
13
  */
14
- const StyledP = (0, _ndla_styled_system_jsx.styled)(_ark_ui_react.ark.p, {}, { baseComponent: true });
14
+ const StyledP = (0, _ndla_styled_system_jsx.styled)(_ark_ui_react_factory.ark.p, {}, { baseComponent: true });
15
15
  const Text = (0, react.forwardRef)(({ textStyle = "body.medium", fontWeight, color, srOnly, css: cssProp, ...rest }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledP, {
16
16
  css: _ndla_styled_system_css.css.raw({
17
17
  textStyle,
@@ -22,7 +22,7 @@ const Text = (0, react.forwardRef)(({ textStyle = "body.medium", fontWeight, col
22
22
  ref,
23
23
  ...rest
24
24
  }));
25
- const StyledH1 = (0, _ndla_styled_system_jsx.styled)(_ark_ui_react.ark.h1, {}, { baseComponent: true });
25
+ const StyledH1 = (0, _ndla_styled_system_jsx.styled)(_ark_ui_react_factory.ark.h1, {}, { baseComponent: true });
26
26
  const Heading = (0, react.forwardRef)(({ textStyle = "heading.medium", fontWeight, color, srOnly, css: cssProp, ...rest }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledH1, {
27
27
  css: _ndla_styled_system_css.css.raw({
28
28
  textStyle,
package/lib/Text.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Text.js","names":["ark","css"],"sources":["../src/Text.tsx"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { type HTMLArkProps, ark } from \"@ark-ui/react\";\nimport { css } from \"@ndla/styled-system/css\";\nimport { styled } from \"@ndla/styled-system/jsx\";\nimport type { ColorToken, FontWeightToken } from \"@ndla/styled-system/tokens\";\nimport type { StyledProps, UtilityValues } from \"@ndla/styled-system/types\";\nimport { forwardRef } from \"react\";\n\nexport interface TextProps {\n textStyle?: UtilityValues[\"textStyle\"];\n fontWeight?: FontWeightToken;\n color?: ColorToken;\n srOnly?: boolean;\n}\n\nconst StyledP = styled(ark.p, {}, { baseComponent: true });\n\nexport interface TextComponentProps extends Omit<HTMLArkProps<\"p\">, \"color\">, StyledProps, TextProps {}\n\nexport const Text = forwardRef<HTMLParagraphElement, TextComponentProps>(\n ({ textStyle = \"body.medium\", fontWeight, color, srOnly, css: cssProp, ...rest }, ref) => (\n <StyledP css={css.raw({ textStyle, fontWeight, color, srOnly }, cssProp)} ref={ref} {...rest} />\n ),\n);\n\nconst StyledH1 = styled(ark.h1, {}, { baseComponent: true });\n\nexport interface HeadingComponentProps extends Omit<HTMLArkProps<\"h1\">, \"color\">, StyledProps, TextProps {}\n\nexport const Heading = forwardRef<HTMLHeadingElement, HeadingComponentProps>(\n ({ textStyle = \"heading.medium\", fontWeight, color, srOnly, css: cssProp, ...rest }, ref) => (\n <StyledH1 css={css.raw({ textStyle, fontWeight, color, srOnly }, cssProp)} ref={ref} {...rest} />\n ),\n);\n"],"mappings":";;;;;;;;;;;;;AAsBA,MAAM,WAAA,GAAA,wBAAA,QAAiBA,cAAAA,IAAI,GAAG,CAAC,GAAG,EAAE,eAAe,KAAK,CAAC;AAIzD,MAAa,QAAA,GAAA,MAAA,aACV,EAAE,YAAY,eAAe,YAAY,OAAO,QAAQ,KAAK,SAAS,GAAG,QAAQ,QAChF,iBAAA,GAAA,kBAAA,KAAC,SAAD;CAAS,KAAKC,wBAAAA,IAAI,IAAI;EAAE;EAAW;EAAY;EAAO;CAAO,GAAG,OAAO;CAAQ;CAAK,GAAI;AAAO,CAAA,CAEnG;AAEA,MAAM,YAAA,GAAA,wBAAA,QAAkBD,cAAAA,IAAI,IAAI,CAAC,GAAG,EAAE,eAAe,KAAK,CAAC;AAI3D,MAAa,WAAA,GAAA,MAAA,aACV,EAAE,YAAY,kBAAkB,YAAY,OAAO,QAAQ,KAAK,SAAS,GAAG,QAAQ,QACnF,iBAAA,GAAA,kBAAA,KAAC,UAAD;CAAU,KAAKC,wBAAAA,IAAI,IAAI;EAAE;EAAW;EAAY;EAAO;CAAO,GAAG,OAAO;CAAQ;CAAK,GAAI;AAAO,CAAA,CAEpG"}
1
+ {"version":3,"file":"Text.js","names":["ark","css"],"sources":["../src/Text.tsx"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { type HTMLArkProps, ark } from \"@ark-ui/react/factory\";\nimport { css } from \"@ndla/styled-system/css\";\nimport { styled } from \"@ndla/styled-system/jsx\";\nimport type { ColorToken, FontWeightToken } from \"@ndla/styled-system/tokens\";\nimport type { StyledProps, UtilityValues } from \"@ndla/styled-system/types\";\nimport { forwardRef } from \"react\";\n\nexport interface TextProps {\n textStyle?: UtilityValues[\"textStyle\"];\n fontWeight?: FontWeightToken;\n color?: ColorToken;\n srOnly?: boolean;\n}\n\nconst StyledP = styled(ark.p, {}, { baseComponent: true });\n\nexport interface TextComponentProps extends Omit<HTMLArkProps<\"p\">, \"color\">, StyledProps, TextProps {}\n\nexport const Text = forwardRef<HTMLParagraphElement, TextComponentProps>(\n ({ textStyle = \"body.medium\", fontWeight, color, srOnly, css: cssProp, ...rest }, ref) => (\n <StyledP css={css.raw({ textStyle, fontWeight, color, srOnly }, cssProp)} ref={ref} {...rest} />\n ),\n);\n\nconst StyledH1 = styled(ark.h1, {}, { baseComponent: true });\n\nexport interface HeadingComponentProps extends Omit<HTMLArkProps<\"h1\">, \"color\">, StyledProps, TextProps {}\n\nexport const Heading = forwardRef<HTMLHeadingElement, HeadingComponentProps>(\n ({ textStyle = \"heading.medium\", fontWeight, color, srOnly, css: cssProp, ...rest }, ref) => (\n <StyledH1 css={css.raw({ textStyle, fontWeight, color, srOnly }, cssProp)} ref={ref} {...rest} />\n ),\n);\n"],"mappings":";;;;;;;;;;;;;AAsBA,MAAM,WAAA,GAAA,wBAAA,QAAiBA,sBAAAA,IAAI,GAAG,CAAC,GAAG,EAAE,eAAe,KAAK,CAAC;AAIzD,MAAa,QAAA,GAAA,MAAA,aACV,EAAE,YAAY,eAAe,YAAY,OAAO,QAAQ,KAAK,SAAS,GAAG,QAAQ,QAChF,iBAAA,GAAA,kBAAA,KAAC,SAAD;CAAS,KAAKC,wBAAAA,IAAI,IAAI;EAAE;EAAW;EAAY;EAAO;CAAO,GAAG,OAAO;CAAQ;CAAK,GAAI;AAAO,CAAA,CAEnG;AAEA,MAAM,YAAA,GAAA,wBAAA,QAAkBD,sBAAAA,IAAI,IAAI,CAAC,GAAG,EAAE,eAAe,KAAK,CAAC;AAI3D,MAAa,WAAA,GAAA,MAAA,aACV,EAAE,YAAY,kBAAkB,YAAY,OAAO,QAAQ,KAAK,SAAS,GAAG,QAAQ,QACnF,iBAAA,GAAA,kBAAA,KAAC,UAAD;CAAU,KAAKC,wBAAAA,IAAI,IAAI;EAAE;EAAW;EAAY;EAAO;CAAO,GAAG,OAAO;CAAQ;CAAK,GAAI;AAAO,CAAA,CAEpG"}
package/lib/Toast.d.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { Toast } from "@ark-ui/react";
8
+ import { Toast } from "@ark-ui/react/toast";
9
9
  import type { StyledProps, RecipeVariantProps } from "@ndla/styled-system/types";
10
10
  import type { RefAttributes } from "react";
11
11
  import { type TextProps } from "./Text";
package/lib/Toast.js CHANGED
@@ -1,8 +1,8 @@
1
1
  const require_Text = require("./Text.js");
2
- let _ark_ui_react = require("@ark-ui/react");
3
2
  let _ndla_styled_system_css = require("@ndla/styled-system/css");
4
3
  let _ndla_styled_system_jsx = require("@ndla/styled-system/jsx");
5
4
  let react_jsx_runtime = require("react/jsx-runtime");
5
+ let _ark_ui_react_toast = require("@ark-ui/react/toast");
6
6
  //#region src/Toast.tsx
7
7
  /**
8
8
  * Copyright (c) 2024-present, NDLA.
@@ -12,7 +12,7 @@ let react_jsx_runtime = require("react/jsx-runtime");
12
12
  *
13
13
  */
14
14
  const { withProvider, withContext } = (0, _ndla_styled_system_jsx.createStyleContext)((0, _ndla_styled_system_css.sva)({
15
- slots: _ark_ui_react.toastAnatomy.keys(),
15
+ slots: _ark_ui_react_toast.toastAnatomy.keys(),
16
16
  base: {
17
17
  root: {
18
18
  position: "relative",
@@ -56,10 +56,10 @@ const { withProvider, withContext } = (0, _ndla_styled_system_jsx.createStyleCon
56
56
  } }
57
57
  } }
58
58
  }));
59
- const ToastRoot = withProvider(_ark_ui_react.Toast.Root, "root", { baseComponent: true });
60
- const ToastActionTrigger = withContext(_ark_ui_react.Toast.ActionTrigger, "actionTrigger", { baseComponent: true });
61
- const ToastCloseTrigger = withContext(_ark_ui_react.Toast.CloseTrigger, "closeTrigger", { baseComponent: true });
62
- const InternalToastDescription = withContext(_ark_ui_react.Toast.Description, "description");
59
+ const ToastRoot = withProvider(_ark_ui_react_toast.Toast.Root, "root", { baseComponent: true });
60
+ const ToastActionTrigger = withContext(_ark_ui_react_toast.Toast.ActionTrigger, "actionTrigger", { baseComponent: true });
61
+ const ToastCloseTrigger = withContext(_ark_ui_react_toast.Toast.CloseTrigger, "closeTrigger", { baseComponent: true });
62
+ const InternalToastDescription = withContext(_ark_ui_react_toast.Toast.Description, "description");
63
63
  const ToastDescription = ({ textStyle = "label.medium", children, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(InternalToastDescription, {
64
64
  asChild: true,
65
65
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Text, {
@@ -70,7 +70,7 @@ const ToastDescription = ({ textStyle = "label.medium", children, ...props }) =>
70
70
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children })
71
71
  })
72
72
  });
73
- const InternalToastTitle = withContext(_ark_ui_react.Toast.Title, "title");
73
+ const InternalToastTitle = withContext(_ark_ui_react_toast.Toast.Title, "title");
74
74
  const ToastTitle = ({ textStyle = "label.medium", fontWeight = "semibold", children, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(InternalToastTitle, {
75
75
  asChild: true,
76
76
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Text, {
package/lib/Toast.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.js","names":["toastAnatomy","Toast","Text"],"sources":["../src/Toast.tsx"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { Toast, toastAnatomy } from \"@ark-ui/react\";\nimport { sva } from \"@ndla/styled-system/css\";\nimport { createStyleContext } from \"@ndla/styled-system/jsx\";\nimport type { StyledProps, RecipeVariantProps } from \"@ndla/styled-system/types\";\nimport type { RefAttributes } from \"react\";\nimport { Text, type TextProps } from \"./Text\";\n\nconst toastRecipe = sva({\n slots: toastAnatomy.keys(),\n base: {\n root: {\n position: \"relative\",\n borderRadius: \"xsmall\",\n boxShadow: \"medium\",\n minWidth: \"20rem\",\n maxWidth: \"30rem\",\n height: \"var(--height)\",\n opacity: \"var(--opacity)\",\n overflowWrap: \"anywhere\",\n padding: \"small\",\n scale: \"var(--scale)\",\n translate: \"var(--x) var(--y) 0\",\n willChange: \"translate, scale, opacity, height\",\n zIndex: \"var(--z-index)\",\n transitionDuration: \"slow\",\n transitionProperty: \"translate, scale, opacity, height\",\n transitionTimingFunction: \"default\",\n _motionReduce: {\n transition: \"none\",\n transitionDuration: \"0s\",\n },\n },\n title: {\n paddingInlineEnd: \"xxlarge\",\n },\n closeTrigger: {\n position: \"absolute\",\n top: \"xxsmall\",\n right: \"xxsmall\",\n },\n description: {\n paddingInlineEnd: \"xxlarge\",\n },\n },\n defaultVariants: {\n variant: \"light\",\n },\n variants: {\n variant: {\n light: {\n root: {\n background: \"surface.brand.1.moderate\",\n color: \"text.default\",\n },\n },\n dark: {\n root: {\n background: \"surface.brand.1.strong\",\n color: \"text.onAction\",\n },\n },\n },\n },\n});\n\nconst { withProvider, withContext } = createStyleContext(toastRecipe);\n\nexport type ToastRootVariantProps = NonNullable<RecipeVariantProps<typeof toastRecipe>>;\n\nexport interface ToastRootProps extends Toast.RootProps, StyledProps, ToastRootVariantProps {}\nexport const ToastRoot = withProvider(Toast.Root, \"root\", { baseComponent: true });\n\nexport const ToastActionTrigger = withContext(Toast.ActionTrigger, \"actionTrigger\", { baseComponent: true });\n\nexport const ToastCloseTrigger = withContext(Toast.CloseTrigger, \"closeTrigger\", { baseComponent: true });\n\nconst InternalToastDescription = withContext(Toast.Description, \"description\");\n\ninterface ToastDescriptionProps\n extends Omit<Toast.DescriptionProps, \"color\">, TextProps, StyledProps, RefAttributes<HTMLDivElement> {}\n\nexport const ToastDescription = ({ textStyle = \"label.medium\", children, ...props }: ToastDescriptionProps) => (\n <InternalToastDescription asChild>\n <Text asChild consumeCss textStyle={textStyle} {...props}>\n <div>{children}</div>\n </Text>\n </InternalToastDescription>\n);\n\nconst InternalToastTitle = withContext(Toast.Title, \"title\");\n\ninterface ToastTitleProps\n extends Omit<Toast.TitleProps, \"color\">, TextProps, StyledProps, RefAttributes<HTMLDivElement> {}\n\nexport const ToastTitle = ({\n textStyle = \"label.medium\",\n fontWeight = \"semibold\",\n children,\n ...props\n}: ToastTitleProps) => (\n <InternalToastTitle asChild>\n <Text asChild consumeCss fontWeight={fontWeight} textStyle={textStyle} {...props}>\n <div>{children}</div>\n </Text>\n </InternalToastTitle>\n);\n"],"mappings":";;;;;;;;;;;;;AAyEA,MAAM,EAAE,cAAc,iBAAA,GAAA,wBAAA,qBAAA,GAAA,wBAAA,KA1DE;CACtB,OAAOA,cAAAA,aAAa,KAAK;CACzB,MAAM;EACJ,MAAM;GACJ,UAAU;GACV,cAAc;GACd,WAAW;GACX,UAAU;GACV,UAAU;GACV,QAAQ;GACR,SAAS;GACT,cAAc;GACd,SAAS;GACT,OAAO;GACP,WAAW;GACX,YAAY;GACZ,QAAQ;GACR,oBAAoB;GACpB,oBAAoB;GACpB,0BAA0B;GAC1B,eAAe;IACb,YAAY;IACZ,oBAAoB;GACtB;EACF;EACA,OAAO,EACL,kBAAkB,UACpB;EACA,cAAc;GACZ,UAAU;GACV,KAAK;GACL,OAAO;EACT;EACA,aAAa,EACX,kBAAkB,UACpB;CACF;CACA,iBAAiB,EACf,SAAS,QACX;CACA,UAAU,EACR,SAAS;EACP,OAAO,EACL,MAAM;GACJ,YAAY;GACZ,OAAO;EACT,EACF;EACA,MAAM,EACJ,MAAM;GACJ,YAAY;GACZ,OAAO;EACT,EACF;CACF,EACF;AACF,CAEmE,CAAC;AAKpE,MAAa,YAAY,aAAaC,cAAAA,MAAM,MAAM,QAAQ,EAAE,eAAe,KAAK,CAAC;AAEjF,MAAa,qBAAqB,YAAYA,cAAAA,MAAM,eAAe,iBAAiB,EAAE,eAAe,KAAK,CAAC;AAE3G,MAAa,oBAAoB,YAAYA,cAAAA,MAAM,cAAc,gBAAgB,EAAE,eAAe,KAAK,CAAC;AAExG,MAAM,2BAA2B,YAAYA,cAAAA,MAAM,aAAa,aAAa;AAK7E,MAAa,oBAAoB,EAAE,YAAY,gBAAgB,UAAU,GAAG,YAC1E,iBAAA,GAAA,kBAAA,KAAC,0BAAD;CAA0B,SAAA;WACxB,iBAAA,GAAA,kBAAA,KAACC,aAAAA,MAAD;EAAM,SAAA;EAAQ,YAAA;EAAsB;EAAW,GAAI;YACjD,iBAAA,GAAA,kBAAA,KAAC,OAAD,EAAM,SAAc,CAAA;CAChB,CAAA;AACkB,CAAA;AAG5B,MAAM,qBAAqB,YAAYD,cAAAA,MAAM,OAAO,OAAO;AAK3D,MAAa,cAAc,EACzB,YAAY,gBACZ,aAAa,YACb,UACA,GAAG,YAEH,iBAAA,GAAA,kBAAA,KAAC,oBAAD;CAAoB,SAAA;WAClB,iBAAA,GAAA,kBAAA,KAACC,aAAAA,MAAD;EAAM,SAAA;EAAQ,YAAA;EAAuB;EAAuB;EAAW,GAAI;YACzE,iBAAA,GAAA,kBAAA,KAAC,OAAD,EAAM,SAAc,CAAA;CAChB,CAAA;AACY,CAAA"}
1
+ {"version":3,"file":"Toast.js","names":["toastAnatomy","Toast","Text"],"sources":["../src/Toast.tsx"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { Toast, toastAnatomy } from \"@ark-ui/react/toast\";\nimport { sva } from \"@ndla/styled-system/css\";\nimport { createStyleContext } from \"@ndla/styled-system/jsx\";\nimport type { StyledProps, RecipeVariantProps } from \"@ndla/styled-system/types\";\nimport type { RefAttributes } from \"react\";\nimport { Text, type TextProps } from \"./Text\";\n\nconst toastRecipe = sva({\n slots: toastAnatomy.keys(),\n base: {\n root: {\n position: \"relative\",\n borderRadius: \"xsmall\",\n boxShadow: \"medium\",\n minWidth: \"20rem\",\n maxWidth: \"30rem\",\n height: \"var(--height)\",\n opacity: \"var(--opacity)\",\n overflowWrap: \"anywhere\",\n padding: \"small\",\n scale: \"var(--scale)\",\n translate: \"var(--x) var(--y) 0\",\n willChange: \"translate, scale, opacity, height\",\n zIndex: \"var(--z-index)\",\n transitionDuration: \"slow\",\n transitionProperty: \"translate, scale, opacity, height\",\n transitionTimingFunction: \"default\",\n _motionReduce: {\n transition: \"none\",\n transitionDuration: \"0s\",\n },\n },\n title: {\n paddingInlineEnd: \"xxlarge\",\n },\n closeTrigger: {\n position: \"absolute\",\n top: \"xxsmall\",\n right: \"xxsmall\",\n },\n description: {\n paddingInlineEnd: \"xxlarge\",\n },\n },\n defaultVariants: {\n variant: \"light\",\n },\n variants: {\n variant: {\n light: {\n root: {\n background: \"surface.brand.1.moderate\",\n color: \"text.default\",\n },\n },\n dark: {\n root: {\n background: \"surface.brand.1.strong\",\n color: \"text.onAction\",\n },\n },\n },\n },\n});\n\nconst { withProvider, withContext } = createStyleContext(toastRecipe);\n\nexport type ToastRootVariantProps = NonNullable<RecipeVariantProps<typeof toastRecipe>>;\n\nexport interface ToastRootProps extends Toast.RootProps, StyledProps, ToastRootVariantProps {}\nexport const ToastRoot = withProvider(Toast.Root, \"root\", { baseComponent: true });\n\nexport const ToastActionTrigger = withContext(Toast.ActionTrigger, \"actionTrigger\", { baseComponent: true });\n\nexport const ToastCloseTrigger = withContext(Toast.CloseTrigger, \"closeTrigger\", { baseComponent: true });\n\nconst InternalToastDescription = withContext(Toast.Description, \"description\");\n\ninterface ToastDescriptionProps\n extends Omit<Toast.DescriptionProps, \"color\">, TextProps, StyledProps, RefAttributes<HTMLDivElement> {}\n\nexport const ToastDescription = ({ textStyle = \"label.medium\", children, ...props }: ToastDescriptionProps) => (\n <InternalToastDescription asChild>\n <Text asChild consumeCss textStyle={textStyle} {...props}>\n <div>{children}</div>\n </Text>\n </InternalToastDescription>\n);\n\nconst InternalToastTitle = withContext(Toast.Title, \"title\");\n\ninterface ToastTitleProps\n extends Omit<Toast.TitleProps, \"color\">, TextProps, StyledProps, RefAttributes<HTMLDivElement> {}\n\nexport const ToastTitle = ({\n textStyle = \"label.medium\",\n fontWeight = \"semibold\",\n children,\n ...props\n}: ToastTitleProps) => (\n <InternalToastTitle asChild>\n <Text asChild consumeCss fontWeight={fontWeight} textStyle={textStyle} {...props}>\n <div>{children}</div>\n </Text>\n </InternalToastTitle>\n);\n"],"mappings":";;;;;;;;;;;;;AAyEA,MAAM,EAAE,cAAc,iBAAA,GAAA,wBAAA,qBAAA,GAAA,wBAAA,KA1DE;CACtB,OAAOA,oBAAAA,aAAa,KAAK;CACzB,MAAM;EACJ,MAAM;GACJ,UAAU;GACV,cAAc;GACd,WAAW;GACX,UAAU;GACV,UAAU;GACV,QAAQ;GACR,SAAS;GACT,cAAc;GACd,SAAS;GACT,OAAO;GACP,WAAW;GACX,YAAY;GACZ,QAAQ;GACR,oBAAoB;GACpB,oBAAoB;GACpB,0BAA0B;GAC1B,eAAe;IACb,YAAY;IACZ,oBAAoB;GACtB;EACF;EACA,OAAO,EACL,kBAAkB,UACpB;EACA,cAAc;GACZ,UAAU;GACV,KAAK;GACL,OAAO;EACT;EACA,aAAa,EACX,kBAAkB,UACpB;CACF;CACA,iBAAiB,EACf,SAAS,QACX;CACA,UAAU,EACR,SAAS;EACP,OAAO,EACL,MAAM;GACJ,YAAY;GACZ,OAAO;EACT,EACF;EACA,MAAM,EACJ,MAAM;GACJ,YAAY;GACZ,OAAO;EACT,EACF;CACF,EACF;AACF,CAEmE,CAAC;AAKpE,MAAa,YAAY,aAAaC,oBAAAA,MAAM,MAAM,QAAQ,EAAE,eAAe,KAAK,CAAC;AAEjF,MAAa,qBAAqB,YAAYA,oBAAAA,MAAM,eAAe,iBAAiB,EAAE,eAAe,KAAK,CAAC;AAE3G,MAAa,oBAAoB,YAAYA,oBAAAA,MAAM,cAAc,gBAAgB,EAAE,eAAe,KAAK,CAAC;AAExG,MAAM,2BAA2B,YAAYA,oBAAAA,MAAM,aAAa,aAAa;AAK7E,MAAa,oBAAoB,EAAE,YAAY,gBAAgB,UAAU,GAAG,YAC1E,iBAAA,GAAA,kBAAA,KAAC,0BAAD;CAA0B,SAAA;WACxB,iBAAA,GAAA,kBAAA,KAACC,aAAAA,MAAD;EAAM,SAAA;EAAQ,YAAA;EAAsB;EAAW,GAAI;YACjD,iBAAA,GAAA,kBAAA,KAAC,OAAD,EAAM,SAAc,CAAA;CAChB,CAAA;AACkB,CAAA;AAG5B,MAAM,qBAAqB,YAAYD,oBAAAA,MAAM,OAAO,OAAO;AAK3D,MAAa,cAAc,EACzB,YAAY,gBACZ,aAAa,YACb,UACA,GAAG,YAEH,iBAAA,GAAA,kBAAA,KAAC,oBAAD;CAAoB,SAAA;WAClB,iBAAA,GAAA,kBAAA,KAACC,aAAAA,MAAD;EAAM,SAAA;EAAQ,YAAA;EAAuB;EAAuB;EAAW,GAAI;YACzE,iBAAA,GAAA,kBAAA,KAAC,OAAD,EAAM,SAAc,CAAA;CAChB,CAAA;AACY,CAAA"}
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ToggleGroup } from "@ark-ui/react";
8
+ import { ToggleGroup } from "@ark-ui/react/toggle-group";
9
9
  import { type RecipeVariantProps } from "@ndla/styled-system/css";
10
10
  import type { StyledProps } from "@ndla/styled-system/types";
11
11
  declare const toggleGroupRecipe: import("@ndla/styled-system/types").SlotRecipeRuntimeFn<"root" | "item", import("@ndla/styled-system/types").SlotRecipeVariantRecord<"root" | "item">>;
@@ -1,5 +1,6 @@
1
- let _ark_ui_react = require("@ark-ui/react");
2
1
  let _ndla_styled_system_css = require("@ndla/styled-system/css");
2
+ let _ndla_styled_system_jsx = require("@ndla/styled-system/jsx");
3
+ let _ark_ui_react_toggle_group = require("@ark-ui/react/toggle-group");
3
4
  //#region src/ToggleGroup.tsx
4
5
  /**
5
6
  * Copyright (c) 2024-present, NDLA.
@@ -8,16 +9,16 @@ let _ndla_styled_system_css = require("@ndla/styled-system/css");
8
9
  * LICENSE file in the root directory of this source tree.
9
10
  *
10
11
  */
11
- const { withProvider, withContext } = (0, require("@ndla/styled-system/jsx").createStyleContext)((0, _ndla_styled_system_css.sva)({
12
- slots: _ark_ui_react.toggleGroupAnatomy.keys(),
12
+ const { withProvider, withContext } = (0, _ndla_styled_system_jsx.createStyleContext)((0, _ndla_styled_system_css.sva)({
13
+ slots: _ark_ui_react_toggle_group.toggleGroupAnatomy.keys(),
13
14
  base: { root: {
14
15
  display: "flex",
15
16
  flexDirection: "row",
16
17
  gap: "4xsmall"
17
18
  } }
18
19
  }));
19
- const ToggleGroupRoot = withProvider(_ark_ui_react.ToggleGroup.Root, "root", { baseComponent: true });
20
- const ToggleGroupItem = withContext(_ark_ui_react.ToggleGroup.Item, "item", { baseComponent: true });
20
+ const ToggleGroupRoot = withProvider(_ark_ui_react_toggle_group.ToggleGroup.Root, "root", { baseComponent: true });
21
+ const ToggleGroupItem = withContext(_ark_ui_react_toggle_group.ToggleGroup.Item, "item", { baseComponent: true });
21
22
  //#endregion
22
23
  exports.ToggleGroupItem = ToggleGroupItem;
23
24
  exports.ToggleGroupRoot = ToggleGroupRoot;
@@ -1 +1 @@
1
- {"version":3,"file":"ToggleGroup.js","names":["toggleGroupAnatomy","ToggleGroup"],"sources":["../src/ToggleGroup.tsx"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { toggleGroupAnatomy, ToggleGroup } from \"@ark-ui/react\";\nimport { type RecipeVariantProps, sva } from \"@ndla/styled-system/css\";\nimport { createStyleContext } from \"@ndla/styled-system/jsx\";\nimport type { StyledProps } from \"@ndla/styled-system/types\";\n\nconst toggleGroupRecipe = sva({\n slots: toggleGroupAnatomy.keys(),\n base: {\n root: {\n display: \"flex\",\n flexDirection: \"row\",\n gap: \"4xsmall\",\n },\n },\n});\n\nconst { withProvider, withContext } = createStyleContext(toggleGroupRecipe);\n\nexport type ToggleGroupVariantProps = NonNullable<RecipeVariantProps<typeof toggleGroupRecipe>>;\nexport interface ToggleGroupRootProps extends ToggleGroup.RootProps, StyledProps, ToggleGroupVariantProps {}\n\nexport const ToggleGroupRoot = withProvider(ToggleGroup.Root, \"root\", { baseComponent: true });\n\nexport interface ToggleGroupItemProps extends ToggleGroup.ItemProps, StyledProps {}\n\nexport const ToggleGroupItem = withContext(ToggleGroup.Item, \"item\", { baseComponent: true });\n"],"mappings":";;;;;;;;;;AAwBA,MAAM,EAAE,cAAc,iBAAA,oCAAA,EAAA,qBAAA,GAAA,wBAAA,KAXQ;CAC5B,OAAOA,cAAAA,mBAAmB,KAAK;CAC/B,MAAM,EACJ,MAAM;EACJ,SAAS;EACT,eAAe;EACf,KAAK;CACP,EACF;AACF,CAEyE,CAAC;AAK1E,MAAa,kBAAkB,aAAaC,cAAAA,YAAY,MAAM,QAAQ,EAAE,eAAe,KAAK,CAAC;AAI7F,MAAa,kBAAkB,YAAYA,cAAAA,YAAY,MAAM,QAAQ,EAAE,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"ToggleGroup.js","names":["toggleGroupAnatomy","ToggleGroup"],"sources":["../src/ToggleGroup.tsx"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { toggleGroupAnatomy, ToggleGroup } from \"@ark-ui/react/toggle-group\";\nimport { type RecipeVariantProps, sva } from \"@ndla/styled-system/css\";\nimport { createStyleContext } from \"@ndla/styled-system/jsx\";\nimport type { StyledProps } from \"@ndla/styled-system/types\";\n\nconst toggleGroupRecipe = sva({\n slots: toggleGroupAnatomy.keys(),\n base: {\n root: {\n display: \"flex\",\n flexDirection: \"row\",\n gap: \"4xsmall\",\n },\n },\n});\n\nconst { withProvider, withContext } = createStyleContext(toggleGroupRecipe);\n\nexport type ToggleGroupVariantProps = NonNullable<RecipeVariantProps<typeof toggleGroupRecipe>>;\nexport interface ToggleGroupRootProps extends ToggleGroup.RootProps, StyledProps, ToggleGroupVariantProps {}\n\nexport const ToggleGroupRoot = withProvider(ToggleGroup.Root, \"root\", { baseComponent: true });\n\nexport interface ToggleGroupItemProps extends ToggleGroup.ItemProps, StyledProps {}\n\nexport const ToggleGroupItem = withContext(ToggleGroup.Item, \"item\", { baseComponent: true });\n"],"mappings":";;;;;;;;;;;AAwBA,MAAM,EAAE,cAAc,iBAAA,GAAA,wBAAA,qBAAA,GAAA,wBAAA,KAXQ;CAC5B,OAAOA,2BAAAA,mBAAmB,KAAK;CAC/B,MAAM,EACJ,MAAM;EACJ,SAAS;EACT,eAAe;EACf,KAAK;CACP,EACF;AACF,CAEyE,CAAC;AAK1E,MAAa,kBAAkB,aAAaC,2BAAAA,YAAY,MAAM,QAAQ,EAAE,eAAe,KAAK,CAAC;AAI7F,MAAa,kBAAkB,YAAYA,2BAAAA,YAAY,MAAM,QAAQ,EAAE,eAAe,KAAK,CAAC"}
package/lib/Tooltip.d.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { Tooltip } from "@ark-ui/react";
8
+ import { Tooltip } from "@ark-ui/react/tooltip";
9
9
  import type { StyledProps } from "@ndla/styled-system/types";
10
10
  export type TooltipRootProps = Tooltip.RootProps;
11
11
  export declare const TooltipRoot: import("@ndla/styled-system/jsx").StyleContextRootProvider<(props: Tooltip.RootProps) => import("react/jsx-runtime").JSX.Element, import("@ndla/styled-system/types").SlotRecipeRuntimeFn<"content" | "trigger" | "positioner" | "arrow" | "arrowTip", import("@ndla/styled-system/types").SlotRecipeVariantRecord<"content" | "trigger" | "positioner" | "arrow" | "arrowTip">>>;
package/lib/Tooltip.js CHANGED
@@ -1,8 +1,8 @@
1
- let _ark_ui_react = require("@ark-ui/react");
2
1
  let _ndla_styled_system_css = require("@ndla/styled-system/css");
3
2
  let _ndla_styled_system_jsx = require("@ndla/styled-system/jsx");
4
3
  let react_jsx_runtime = require("react/jsx-runtime");
5
4
  let react = require("react");
5
+ let _ark_ui_react_tooltip = require("@ark-ui/react/tooltip");
6
6
  //#region src/Tooltip.tsx
7
7
  /**
8
8
  * Copyright (c) 2024-present, NDLA.
@@ -12,7 +12,7 @@ let react = require("react");
12
12
  *
13
13
  */
14
14
  const { withRootProvider, withContext } = (0, _ndla_styled_system_jsx.createStyleContext)((0, _ndla_styled_system_css.sva)({
15
- slots: _ark_ui_react.tooltipAnatomy.keys(),
15
+ slots: _ark_ui_react_tooltip.tooltipAnatomy.keys(),
16
16
  base: { content: {
17
17
  background: "surface.action",
18
18
  textStyle: "label.small",
@@ -31,17 +31,17 @@ const { withRootProvider, withContext } = (0, _ndla_styled_system_jsx.createStyl
31
31
  }
32
32
  } }
33
33
  }));
34
- const TooltipRoot = withRootProvider(_ark_ui_react.Tooltip.Root);
35
- const TooltipArrow = withContext(_ark_ui_react.Tooltip.Arrow, "arrow", { baseComponent: true });
36
- const TooltipArrowTip = withContext(_ark_ui_react.Tooltip.ArrowTip, "arrowTip", { baseComponent: true });
37
- const TooltipContentStandalone = withContext(_ark_ui_react.Tooltip.Content, "content", { baseComponent: true });
34
+ const TooltipRoot = withRootProvider(_ark_ui_react_tooltip.Tooltip.Root);
35
+ const TooltipArrow = withContext(_ark_ui_react_tooltip.Tooltip.Arrow, "arrow", { baseComponent: true });
36
+ const TooltipArrowTip = withContext(_ark_ui_react_tooltip.Tooltip.ArrowTip, "arrowTip", { baseComponent: true });
37
+ const TooltipContentStandalone = withContext(_ark_ui_react_tooltip.Tooltip.Content, "content", { baseComponent: true });
38
38
  const TooltipContent = (0, react.forwardRef)(({ children, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TooltipPositioner, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(TooltipContentStandalone, {
39
39
  ...props,
40
40
  ref,
41
41
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(TooltipArrow, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TooltipArrowTip, {}) }), children]
42
42
  }) }));
43
- const TooltipPositioner = withContext(_ark_ui_react.Tooltip.Positioner, "positioner", { baseComponent: true });
44
- const TooltipTrigger = withContext(_ark_ui_react.Tooltip.Trigger, "trigger", { baseComponent: true });
43
+ const TooltipPositioner = withContext(_ark_ui_react_tooltip.Tooltip.Positioner, "positioner", { baseComponent: true });
44
+ const TooltipTrigger = withContext(_ark_ui_react_tooltip.Tooltip.Trigger, "trigger", { baseComponent: true });
45
45
  //#endregion
46
46
  exports.TooltipArrow = TooltipArrow;
47
47
  exports.TooltipArrowTip = TooltipArrowTip;
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.js","names":["tooltipAnatomy","Tooltip"],"sources":["../src/Tooltip.tsx"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { Tooltip, tooltipAnatomy } from \"@ark-ui/react\";\nimport { sva } from \"@ndla/styled-system/css\";\nimport { createStyleContext } from \"@ndla/styled-system/jsx\";\nimport type { StyledProps } from \"@ndla/styled-system/types\";\nimport { forwardRef } from \"react\";\n\nconst tooltipRecipe = sva({\n slots: tooltipAnatomy.keys(),\n base: {\n content: {\n background: \"surface.action\",\n textStyle: \"label.small\",\n color: \"text.onAction\",\n paddingInline: \"xxsmall\",\n paddingBlock: \"4xsmall\",\n \"--arrow-size\": \"spacing.xxsmall\",\n \"--arrow-background\": \"colors.surface.action\",\n _open: {\n animation: \"fade-shift-in 0.2s ease-out\",\n _motionReduce: {\n animation: \"none\",\n },\n },\n _closed: {\n animation: \"fade-shift-out 0.2s ease-out\",\n _motionReduce: {\n animation: \"none\",\n },\n },\n },\n },\n});\n\nconst { withRootProvider, withContext } = createStyleContext(tooltipRecipe);\n\nexport type TooltipRootProps = Tooltip.RootProps;\nexport const TooltipRoot = withRootProvider(Tooltip.Root);\n\nexport const TooltipArrow = withContext(Tooltip.Arrow, \"arrow\", { baseComponent: true });\n\nexport const TooltipArrowTip = withContext(Tooltip.ArrowTip, \"arrowTip\", { baseComponent: true });\n\nexport const TooltipContentStandalone = withContext(Tooltip.Content, \"content\", { baseComponent: true });\n\ninterface TooltipContentProps extends Tooltip.ContentProps, StyledProps {}\n\nexport const TooltipContent = forwardRef<HTMLDivElement, TooltipContentProps>(({ children, ...props }, ref) => (\n <TooltipPositioner>\n <TooltipContentStandalone {...props} ref={ref}>\n <TooltipArrow>\n <TooltipArrowTip />\n </TooltipArrow>\n {children}\n </TooltipContentStandalone>\n </TooltipPositioner>\n));\n\nexport const TooltipPositioner = withContext(Tooltip.Positioner, \"positioner\", { baseComponent: true });\n\nexport const TooltipTrigger = withContext(Tooltip.Trigger, \"trigger\", { baseComponent: true });\n"],"mappings":";;;;;;;;;;;;;AAyCA,MAAM,EAAE,kBAAkB,iBAAA,GAAA,wBAAA,qBAAA,GAAA,wBAAA,KA3BA;CACxB,OAAOA,cAAAA,eAAe,KAAK;CAC3B,MAAM,EACJ,SAAS;EACP,YAAY;EACZ,WAAW;EACX,OAAO;EACP,eAAe;EACf,cAAc;EACd,gBAAgB;EAChB,sBAAsB;EACtB,OAAO;GACL,WAAW;GACX,eAAe,EACb,WAAW,OACb;EACF;EACA,SAAS;GACP,WAAW;GACX,eAAe,EACb,WAAW,OACb;EACF;CACF,EACF;AACF,CAEyE,CAAC;AAG1E,MAAa,cAAc,iBAAiBC,cAAAA,QAAQ,IAAI;AAExD,MAAa,eAAe,YAAYA,cAAAA,QAAQ,OAAO,SAAS,EAAE,eAAe,KAAK,CAAC;AAEvF,MAAa,kBAAkB,YAAYA,cAAAA,QAAQ,UAAU,YAAY,EAAE,eAAe,KAAK,CAAC;AAEhG,MAAa,2BAA2B,YAAYA,cAAAA,QAAQ,SAAS,WAAW,EAAE,eAAe,KAAK,CAAC;AAIvG,MAAa,kBAAA,GAAA,MAAA,aAAkE,EAAE,UAAU,GAAG,SAAS,QACrG,iBAAA,GAAA,kBAAA,KAAC,mBAAD,EAAA,UACE,iBAAA,GAAA,kBAAA,MAAC,0BAAD;CAA0B,GAAI;CAAY;WAA1C,CACE,iBAAA,GAAA,kBAAA,KAAC,cAAD,EAAA,UACE,iBAAA,GAAA,kBAAA,KAAC,iBAAD,CAAkB,CAAA,EACN,CAAA,GACb,QACuB;GACT,CAAA,CACpB;AAED,MAAa,oBAAoB,YAAYA,cAAAA,QAAQ,YAAY,cAAc,EAAE,eAAe,KAAK,CAAC;AAEtG,MAAa,iBAAiB,YAAYA,cAAAA,QAAQ,SAAS,WAAW,EAAE,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"Tooltip.js","names":["tooltipAnatomy","Tooltip"],"sources":["../src/Tooltip.tsx"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { Tooltip, tooltipAnatomy } from \"@ark-ui/react/tooltip\";\nimport { sva } from \"@ndla/styled-system/css\";\nimport { createStyleContext } from \"@ndla/styled-system/jsx\";\nimport type { StyledProps } from \"@ndla/styled-system/types\";\nimport { forwardRef } from \"react\";\n\nconst tooltipRecipe = sva({\n slots: tooltipAnatomy.keys(),\n base: {\n content: {\n background: \"surface.action\",\n textStyle: \"label.small\",\n color: \"text.onAction\",\n paddingInline: \"xxsmall\",\n paddingBlock: \"4xsmall\",\n \"--arrow-size\": \"spacing.xxsmall\",\n \"--arrow-background\": \"colors.surface.action\",\n _open: {\n animation: \"fade-shift-in 0.2s ease-out\",\n _motionReduce: {\n animation: \"none\",\n },\n },\n _closed: {\n animation: \"fade-shift-out 0.2s ease-out\",\n _motionReduce: {\n animation: \"none\",\n },\n },\n },\n },\n});\n\nconst { withRootProvider, withContext } = createStyleContext(tooltipRecipe);\n\nexport type TooltipRootProps = Tooltip.RootProps;\nexport const TooltipRoot = withRootProvider(Tooltip.Root);\n\nexport const TooltipArrow = withContext(Tooltip.Arrow, \"arrow\", { baseComponent: true });\n\nexport const TooltipArrowTip = withContext(Tooltip.ArrowTip, \"arrowTip\", { baseComponent: true });\n\nexport const TooltipContentStandalone = withContext(Tooltip.Content, \"content\", { baseComponent: true });\n\ninterface TooltipContentProps extends Tooltip.ContentProps, StyledProps {}\n\nexport const TooltipContent = forwardRef<HTMLDivElement, TooltipContentProps>(({ children, ...props }, ref) => (\n <TooltipPositioner>\n <TooltipContentStandalone {...props} ref={ref}>\n <TooltipArrow>\n <TooltipArrowTip />\n </TooltipArrow>\n {children}\n </TooltipContentStandalone>\n </TooltipPositioner>\n));\n\nexport const TooltipPositioner = withContext(Tooltip.Positioner, \"positioner\", { baseComponent: true });\n\nexport const TooltipTrigger = withContext(Tooltip.Trigger, \"trigger\", { baseComponent: true });\n"],"mappings":";;;;;;;;;;;;;AAyCA,MAAM,EAAE,kBAAkB,iBAAA,GAAA,wBAAA,qBAAA,GAAA,wBAAA,KA3BA;CACxB,OAAOA,sBAAAA,eAAe,KAAK;CAC3B,MAAM,EACJ,SAAS;EACP,YAAY;EACZ,WAAW;EACX,OAAO;EACP,eAAe;EACf,cAAc;EACd,gBAAgB;EAChB,sBAAsB;EACtB,OAAO;GACL,WAAW;GACX,eAAe,EACb,WAAW,OACb;EACF;EACA,SAAS;GACP,WAAW;GACX,eAAe,EACb,WAAW,OACb;EACF;CACF,EACF;AACF,CAEyE,CAAC;AAG1E,MAAa,cAAc,iBAAiBC,sBAAAA,QAAQ,IAAI;AAExD,MAAa,eAAe,YAAYA,sBAAAA,QAAQ,OAAO,SAAS,EAAE,eAAe,KAAK,CAAC;AAEvF,MAAa,kBAAkB,YAAYA,sBAAAA,QAAQ,UAAU,YAAY,EAAE,eAAe,KAAK,CAAC;AAEhG,MAAa,2BAA2B,YAAYA,sBAAAA,QAAQ,SAAS,WAAW,EAAE,eAAe,KAAK,CAAC;AAIvG,MAAa,kBAAA,GAAA,MAAA,aAAkE,EAAE,UAAU,GAAG,SAAS,QACrG,iBAAA,GAAA,kBAAA,KAAC,mBAAD,EAAA,UACE,iBAAA,GAAA,kBAAA,MAAC,0BAAD;CAA0B,GAAI;CAAY;WAA1C,CACE,iBAAA,GAAA,kBAAA,KAAC,cAAD,EAAA,UACE,iBAAA,GAAA,kBAAA,KAAC,iBAAD,CAAkB,CAAA,EACN,CAAA,GACb,QACuB;GACT,CAAA,CACpB;AAED,MAAa,oBAAoB,YAAYA,sBAAAA,QAAQ,YAAY,cAAc,EAAE,eAAe,KAAK,CAAC;AAEtG,MAAa,iBAAiB,YAAYA,sBAAAA,QAAQ,SAAS,WAAW,EAAE,eAAe,KAAK,CAAC"}
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { TreeView, type TreeNode } from "@ark-ui/react";
8
+ import { TreeView, type TreeNode } from "@ark-ui/react/tree-view";
9
9
  import type { StyledProps } from "@ndla/styled-system/types";
10
10
  import { type RefAttributes } from "react";
11
11
  import { type TextProps } from "../Text";
@@ -35,5 +35,5 @@ export declare const Tree: import("@ndla/styled-system/jsx").StyleContextConsume
35
35
  export declare const createTreeCollection: <T extends unknown>(options: import("@zag-js/collection").TreeCollectionOptions<T>) => import("@zag-js/collection").TreeCollection<T>;
36
36
  export declare const TreeNodeProvider: typeof TreeView.NodeProvider;
37
37
  export declare const TreeNodeContext: (props: TreeView.NodeContextProps) => import("react").ReactNode;
38
- export declare const useTreeView: <T extends unknown>(props: import("@ark-ui/react").UseTreeViewProps<T>) => import("@ark-ui/react").UseTreeViewReturn<T>;
38
+ export declare const useTreeView: <T extends unknown>(props: import("@ark-ui/react/tree-view").UseTreeViewProps<T>) => import("@ark-ui/react/tree-view").UseTreeViewReturn<T>;
39
39
  export {};
package/lib/Tree/Tree.js CHANGED
@@ -1,9 +1,9 @@
1
1
  const require_Text = require("../Text.js");
2
- let _ark_ui_react = require("@ark-ui/react");
3
2
  let _ndla_styled_system_css = require("@ndla/styled-system/css");
4
3
  let _ndla_styled_system_jsx = require("@ndla/styled-system/jsx");
5
4
  let react_jsx_runtime = require("react/jsx-runtime");
6
5
  let react = require("react");
6
+ let _ark_ui_react_tree_view = require("@ark-ui/react/tree-view");
7
7
  //#region src/Tree/Tree.tsx
8
8
  /**
9
9
  * Copyright (c) 2024-present, NDLA.
@@ -13,7 +13,7 @@ let react = require("react");
13
13
  *
14
14
  */
15
15
  const { withProvider, withContext } = (0, _ndla_styled_system_jsx.createStyleContext)((0, _ndla_styled_system_css.sva)({
16
- slots: _ark_ui_react.treeViewAnatomy.keys(),
16
+ slots: _ark_ui_react_tree_view.treeViewAnatomy.keys(),
17
17
  base: {
18
18
  root: { width: "100%" },
19
19
  branch: {
@@ -86,15 +86,15 @@ const { withProvider, withContext } = (0, _ndla_styled_system_jsx.createStyleCon
86
86
  }
87
87
  }
88
88
  }));
89
- const InternalTreeRoot = withProvider(_ark_ui_react.TreeView.Root, "root", { baseComponent: true });
89
+ const InternalTreeRoot = withProvider(_ark_ui_react_tree_view.TreeView.Root, "root", { baseComponent: true });
90
90
  const TreeRoot = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(InternalTreeRoot, { ...props });
91
- const InternalTreeRootProvider = withProvider(_ark_ui_react.TreeView.RootProvider, "root", { baseComponent: true });
91
+ const InternalTreeRootProvider = withProvider(_ark_ui_react_tree_view.TreeView.RootProvider, "root", { baseComponent: true });
92
92
  const TreeRootProvider = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(InternalTreeRootProvider, { ...props });
93
- const TreeBranchContent = withContext(_ark_ui_react.TreeView.BranchContent, "branchContent", { baseComponent: true });
94
- const TreeBranchControl = withContext(_ark_ui_react.TreeView.BranchControl, "branchControl", { baseComponent: true });
95
- const TreeBranchIndicator = withContext(_ark_ui_react.TreeView.BranchIndicator, "branchIndicator", { baseComponent: true });
96
- const TreeBranch = withContext(_ark_ui_react.TreeView.Branch, "branch", { baseComponent: true });
97
- const InternalTreeBranchText = withContext(_ark_ui_react.TreeView.BranchText, "branchText", { baseComponent: true });
93
+ const TreeBranchContent = withContext(_ark_ui_react_tree_view.TreeView.BranchContent, "branchContent", { baseComponent: true });
94
+ const TreeBranchControl = withContext(_ark_ui_react_tree_view.TreeView.BranchControl, "branchControl", { baseComponent: true });
95
+ const TreeBranchIndicator = withContext(_ark_ui_react_tree_view.TreeView.BranchIndicator, "branchIndicator", { baseComponent: true });
96
+ const TreeBranch = withContext(_ark_ui_react_tree_view.TreeView.Branch, "branch", { baseComponent: true });
97
+ const InternalTreeBranchText = withContext(_ark_ui_react_tree_view.TreeView.BranchText, "branchText", { baseComponent: true });
98
98
  const TreeBranchText = (0, react.forwardRef)(({ textStyle = "label.medium", fontWeight = "bold", children, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(InternalTreeBranchText, {
99
99
  asChild: true,
100
100
  ...props,
@@ -107,10 +107,10 @@ const TreeBranchText = (0, react.forwardRef)(({ textStyle = "label.medium", font
107
107
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children })
108
108
  })
109
109
  }));
110
- const TreeBranchTrigger = withContext(_ark_ui_react.TreeView.BranchTrigger, "branchTrigger", { baseComponent: true });
111
- const TreeItemIndicator = withContext(_ark_ui_react.TreeView.ItemIndicator, "itemIndicator", { baseComponent: true });
112
- const TreeItem = withContext(_ark_ui_react.TreeView.Item, "item", { baseComponent: true });
113
- const InternalTreeItemText = withContext(_ark_ui_react.TreeView.ItemText, "itemText", { baseComponent: true });
110
+ const TreeBranchTrigger = withContext(_ark_ui_react_tree_view.TreeView.BranchTrigger, "branchTrigger", { baseComponent: true });
111
+ const TreeItemIndicator = withContext(_ark_ui_react_tree_view.TreeView.ItemIndicator, "itemIndicator", { baseComponent: true });
112
+ const TreeItem = withContext(_ark_ui_react_tree_view.TreeView.Item, "item", { baseComponent: true });
113
+ const InternalTreeItemText = withContext(_ark_ui_react_tree_view.TreeView.ItemText, "itemText", { baseComponent: true });
114
114
  const TreeItemText = (0, react.forwardRef)(({ textStyle = "label.medium", fontWeight = "bold", children, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(InternalTreeItemText, {
115
115
  asChild: true,
116
116
  ...props,
@@ -123,7 +123,7 @@ const TreeItemText = (0, react.forwardRef)(({ textStyle = "label.medium", fontWe
123
123
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children })
124
124
  })
125
125
  }));
126
- const InternalTreeLabel = withContext(_ark_ui_react.TreeView.Label, "label", { baseComponent: true });
126
+ const InternalTreeLabel = withContext(_ark_ui_react_tree_view.TreeView.Label, "label", { baseComponent: true });
127
127
  const TreeLabel = (0, react.forwardRef)(({ children, textStyle = "label.medium", fontWeight = "bold", ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(InternalTreeLabel, {
128
128
  asChild: true,
129
129
  ...props,
@@ -136,11 +136,11 @@ const TreeLabel = (0, react.forwardRef)(({ children, textStyle = "label.medium",
136
136
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children })
137
137
  })
138
138
  }));
139
- const Tree = withContext(_ark_ui_react.TreeView.Tree, "tree", { baseComponent: true });
140
- const createTreeCollection = _ark_ui_react.createTreeCollection;
141
- const TreeNodeProvider = _ark_ui_react.TreeView.NodeProvider;
142
- const TreeNodeContext = _ark_ui_react.TreeView.NodeContext;
143
- const useTreeView = _ark_ui_react.useTreeView;
139
+ const Tree = withContext(_ark_ui_react_tree_view.TreeView.Tree, "tree", { baseComponent: true });
140
+ const createTreeCollection = _ark_ui_react_tree_view.createTreeCollection;
141
+ const TreeNodeProvider = _ark_ui_react_tree_view.TreeView.NodeProvider;
142
+ const TreeNodeContext = _ark_ui_react_tree_view.TreeView.NodeContext;
143
+ const useTreeView = _ark_ui_react_tree_view.useTreeView;
144
144
  //#endregion
145
145
  exports.Tree = Tree;
146
146
  exports.TreeBranch = TreeBranch;