@ndla/primitives 0.0.17 → 0.0.19

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 (55) hide show
  1. package/dist/panda.buildinfo.json +52 -19
  2. package/dist/styles.css +166 -32
  3. package/es/Accordion.js +58 -30
  4. package/es/ArticleLists.js +70 -18
  5. package/es/Button.js +1 -1
  6. package/es/Card/Card.js +77 -0
  7. package/es/Checkbox.js +12 -4
  8. package/es/Combobox.js +33 -10
  9. package/es/Dialog.js +9 -3
  10. package/es/Menu.js +21 -7
  11. package/es/Pagination.js +15 -5
  12. package/es/Popover.js +30 -10
  13. package/es/RadioGroup.js +12 -4
  14. package/es/Select.js +39 -12
  15. package/es/Slider.js +15 -5
  16. package/es/Switch.js +9 -3
  17. package/es/Tabs.js +28 -14
  18. package/es/TagsInput.js +27 -9
  19. package/es/Toast.js +9 -3
  20. package/es/Tooltip.js +15 -5
  21. package/es/createStyleContext.js +4 -10
  22. package/es/index.js +4 -3
  23. package/lib/Accordion.d.ts +41 -2
  24. package/lib/Accordion.js +58 -30
  25. package/lib/ArticleLists.d.ts +56 -11
  26. package/lib/ArticleLists.js +69 -17
  27. package/lib/Badge.d.ts +1 -0
  28. package/lib/Button.d.ts +1 -1
  29. package/lib/Button.js +1 -1
  30. package/lib/Card/Card.d.ts +19 -0
  31. package/lib/Card/Card.js +83 -0
  32. package/lib/Checkbox.js +12 -4
  33. package/lib/Combobox.d.ts +49 -13
  34. package/lib/Combobox.js +34 -11
  35. package/lib/Dialog.js +9 -3
  36. package/lib/Menu.js +21 -7
  37. package/lib/Pagination.d.ts +6 -2
  38. package/lib/Pagination.js +15 -5
  39. package/lib/Popover.js +30 -10
  40. package/lib/RadioGroup.js +12 -4
  41. package/lib/Select.d.ts +3 -0
  42. package/lib/Select.js +40 -13
  43. package/lib/Slider.js +15 -5
  44. package/lib/Switch.js +9 -3
  45. package/lib/Tabs.d.ts +12 -7
  46. package/lib/Tabs.js +27 -13
  47. package/lib/TagsInput.d.ts +15 -2
  48. package/lib/TagsInput.js +27 -9
  49. package/lib/Toast.js +9 -3
  50. package/lib/Tooltip.js +15 -5
  51. package/lib/createStyleContext.d.ts +5 -2
  52. package/lib/createStyleContext.js +4 -10
  53. package/lib/index.d.ts +7 -6
  54. package/lib/index.js +49 -0
  55. package/package.json +3 -3
@@ -6,16 +6,13 @@
6
6
  *
7
7
  */
8
8
 
9
- import { forwardRef } from "react";
9
+ import { forwardRef, useMemo } from "react";
10
10
  import { ark } from "@ark-ui/react";
11
11
  import { css, cva } from "@ndla/styled-system/css";
12
12
  import { styled } from "@ndla/styled-system/jsx";
13
13
  import { jsx as _jsx } from "react/jsx-runtime";
14
14
  const orderedListRecipe = cva({
15
15
  base: {
16
- listStyle: "revert",
17
- listStylePosition: "inside",
18
- paddingInlineStart: "small",
19
16
  "& li": {
20
17
  marginBlock: "small"
21
18
  }
@@ -26,29 +23,74 @@ const orderedListRecipe = cva({
26
23
  variants: {
27
24
  variant: {
28
25
  numbers: {
26
+ counterReset: "level1",
27
+ "&[data-count='true']": {
28
+ counterReset: "level1 var(--start, 0)"
29
+ },
30
+ marginInline: "small",
29
31
  "& > li": {
32
+ counterIncrement: "level1",
30
33
  _marker: {
31
- content: "counters(list-item, '.') '. '"
34
+ content: "counter(level1, decimal) '. '"
35
+ },
36
+ "& > ol:not([data-variant='letters'])": {
37
+ marginInlineStart: "xlarge",
38
+ counterReset: "level2",
39
+ "&[data-count='true']": {
40
+ counterReset: "level2 var(--start, 0)"
41
+ },
42
+ "& > li": {
43
+ counterIncrement: "level2",
44
+ _marker: {
45
+ content: "counter(level1, decimal) '.' counter(level2, decimal) '. '"
46
+ },
47
+ "& > ol:not([data-variant='letters'])": {
48
+ marginInlineStart: "xxlarge",
49
+ counterReset: "level3",
50
+ "&[data-count='true']": {
51
+ counterReset: "level3 var(--start, 0)"
52
+ },
53
+ "& > li": {
54
+ counterIncrement: "level3",
55
+ _marker: {
56
+ content: "counter(level1, decimal) '.' counter(level2, decimal) '.' counter(level3, decimal) '. '"
57
+ }
58
+ },
59
+ "& > ol:not([data-variant='letters'])": {
60
+ counterReset: "level4",
61
+ "&[data-count='true']": {
62
+ counterReset: "level4 var(--start, 0)"
63
+ },
64
+ "& > li": {
65
+ counterIncrement: "level4",
66
+ _marker: {
67
+ content: "counter(level1, decimal) '.' counter(level2, decimal) '.' counter(level3, decimal) '.' counter(level4, decimal) '. '"
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
32
73
  }
33
74
  }
34
75
  },
35
76
  letters: {
36
- "& ol[data-variant='numbers'] > li": {
37
- _marker: {
38
- content: "counter(list-item, numeric) '. '"
39
- }
77
+ counterReset: "level1",
78
+ "&[data-count='true']": {
79
+ counterReset: "level1 var(--start, 0)"
40
80
  },
41
- "& li": {
81
+ paddingInlineStart: "small",
82
+ "& > li": {
83
+ counterIncrement: "level1",
42
84
  _marker: {
43
- content: "counter(list-item, upper-alpha) '. '"
85
+ content: "counter(level1, upper-alpha) '. '"
44
86
  },
45
- "& > ol > li": {
87
+ "& > ol[data-variant='letters'] > li": {
46
88
  _marker: {
47
- content: "counter(list-item, lower-alpha) '. '"
89
+ content: "counter(level1, lower-alpha) '. '"
48
90
  },
49
- "& li": {
91
+ "& > ol[data-variant='letters'] > li": {
50
92
  _marker: {
51
- content: "counter(list-item, lower-roman) '. '"
93
+ content: "counter(level1, lower-roman) '. '"
52
94
  }
53
95
  }
54
96
  }
@@ -64,26 +106,36 @@ export const OrderedList = /*#__PURE__*/forwardRef((_ref, ref) => {
64
106
  let {
65
107
  variant,
66
108
  css: cssProp,
109
+ start,
67
110
  ...props
68
111
  } = _ref;
112
+ const style = useMemo(() => ({
113
+ "--start": start ? start - 1 : undefined
114
+ }), [start]);
69
115
  return /*#__PURE__*/_jsx(StyledOrderedList, {
116
+ "data-variant": variant,
117
+ "data-count": start !== undefined,
70
118
  css: css.raw(orderedListRecipe.raw({
71
119
  variant
72
120
  }), cssProp),
73
- ...props,
74
- ref: ref
121
+ style: style,
122
+ ref: ref,
123
+ ...props
75
124
  });
76
125
  });
77
126
  export const UnOrderedList = styled("ul", {
78
127
  base: {
79
128
  listStyle: "revert",
80
129
  listStylePosition: "inside",
81
- paddingInlineStart: "small",
130
+ paddingInlineStart: "medium",
82
131
  "& li": {
83
132
  marginBlock: "small",
84
133
  _marker: {
85
134
  color: "icon.strong"
86
135
  }
136
+ },
137
+ "& li > *:not(ol, ul, li)": {
138
+ display: "inline"
87
139
  }
88
140
  }
89
141
  });
package/es/Button.js CHANGED
@@ -153,7 +153,7 @@ export const buttonRecipe = cva({
153
153
  variants: {
154
154
  size: {
155
155
  default: {
156
- paddingInline: "medium",
156
+ paddingInline: "xsmall",
157
157
  paddingBlock: "xxsmall",
158
158
  minHeight: "24"
159
159
  },
@@ -0,0 +1,77 @@
1
+ /**
2
+ * Copyright (c) 2024-present, NDLA.
3
+ *
4
+ * This source code is licensed under the GPLv3 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+
9
+ import { forwardRef } from "react";
10
+ import { ark } from "@ark-ui/react";
11
+ import { sva } from "@ndla/styled-system/css";
12
+ import { createStyleContext } from "../createStyleContext";
13
+ import { Image } from "../Image";
14
+ import { Heading } from "../Text";
15
+ import { jsx as _jsx } from "react/jsx-runtime";
16
+ const cardRecipe = sva({
17
+ slots: ["root", "title", "content", "image"],
18
+ base: {
19
+ root: {
20
+ position: "relative",
21
+ border: "1px solid",
22
+ borderRadius: "xsmall",
23
+ borderColor: "stroke.subtle",
24
+ transitionDuration: "fast",
25
+ transitionProperty: "background, color",
26
+ transitionTimingFunction: "default",
27
+ background: "surface.default",
28
+ _hover: {
29
+ background: "surface.actionSubtle.hover",
30
+ borderColor: "stroke.hover"
31
+ }
32
+ },
33
+ content: {
34
+ display: "flex",
35
+ flexDirection: "column",
36
+ gap: "xsmall",
37
+ paddingBlock: "xsmall",
38
+ paddingInline: "medium"
39
+ },
40
+ title: {
41
+ textDecoration: "underline",
42
+ _hover: {
43
+ textDecoration: "none"
44
+ }
45
+ },
46
+ image: {
47
+ height: "200px",
48
+ objectFit: "cover",
49
+ width: "100%"
50
+ }
51
+ }
52
+ });
53
+ const {
54
+ withProvider,
55
+ withContext
56
+ } = createStyleContext(cardRecipe);
57
+ export const CardRoot = withProvider(ark.article, "root", {
58
+ baseComponent: true
59
+ });
60
+ const InternalCardHeading = /*#__PURE__*/forwardRef((_ref, ref) => {
61
+ let {
62
+ textStyle = "label.large",
63
+ fontWeight = "bold",
64
+ ...props
65
+ } = _ref;
66
+ return /*#__PURE__*/_jsx(Heading, {
67
+ textStyle: textStyle,
68
+ fontWeight: fontWeight,
69
+ ...props,
70
+ ref: ref
71
+ });
72
+ });
73
+ export const CardHeading = withContext(InternalCardHeading, "title");
74
+ export const CardContent = withContext(ark.div, "content", {
75
+ baseComponent: true
76
+ });
77
+ export const CardImage = withContext(Image, "image");
package/es/Checkbox.js CHANGED
@@ -209,8 +209,12 @@ const {
209
209
  withProvider,
210
210
  withContext
211
211
  } = createStyleContext(checkboxRecipe);
212
- export const CheckboxRoot = withProvider(Checkbox.Root, "root");
213
- export const CheckboxIndicator = withContext(Checkbox.Indicator, "indicator");
212
+ export const CheckboxRoot = withProvider(Checkbox.Root, "root", {
213
+ baseComponent: true
214
+ });
215
+ export const CheckboxIndicator = withContext(Checkbox.Indicator, "indicator", {
216
+ baseComponent: true
217
+ });
214
218
  const InternalCheckboxLabel = withContext(Checkbox.Label, "label");
215
219
  export const CheckboxLabel = _ref => {
216
220
  let {
@@ -227,6 +231,10 @@ export const CheckboxLabel = _ref => {
227
231
  })
228
232
  });
229
233
  };
230
- export const CheckboxControl = withContext(Checkbox.Control, "control");
231
- export const CheckboxGroup = withProvider(Checkbox.Group, "group");
234
+ export const CheckboxControl = withContext(Checkbox.Control, "control", {
235
+ baseComponent: true
236
+ });
237
+ export const CheckboxGroup = withProvider(Checkbox.Group, "group", {
238
+ baseComponent: true
239
+ });
232
240
  export const CheckboxHiddenInput = Checkbox.HiddenInput;
package/es/Combobox.js CHANGED
@@ -147,7 +147,9 @@ const {
147
147
  withProvider,
148
148
  withContext
149
149
  } = createStyleContext(comboboxRecipe);
150
- const InternalComboboxRoot = withProvider(Combobox.Root, "root");
150
+ const InternalComboboxRoot = withProvider(Combobox.Root, "root", {
151
+ baseComponent: true
152
+ });
151
153
  export const ComboboxRoot = _ref => {
152
154
  let {
153
155
  ...props
@@ -160,10 +162,18 @@ export const ComboboxRoot = _ref => {
160
162
  })
161
163
  );
162
164
  };
163
- export const ComboboxClearTrigger = withContext(Combobox.ClearTrigger, "clearTrigger");
164
- export const ComboboxContent = withContext(Combobox.Content, "content");
165
- export const ComboboxControl = withContext(Combobox.Control, "control");
166
- export const ComboboxInput = withContext(Combobox.Input, "input");
165
+ export const ComboboxClearTrigger = withContext(Combobox.ClearTrigger, "clearTrigger", {
166
+ baseComponent: true
167
+ });
168
+ export const ComboboxContent = withContext(Combobox.Content, "content", {
169
+ baseComponent: true
170
+ });
171
+ export const ComboboxControl = withContext(Combobox.Control, "control", {
172
+ baseComponent: true
173
+ });
174
+ export const ComboboxInput = withContext(Combobox.Input, "input", {
175
+ baseComponent: true
176
+ });
167
177
  const InternalComboboxItemGroupLabel = withContext(Combobox.ItemGroupLabel, "itemGroupLabel");
168
178
  export const ComboboxItemGroupLabel = _ref2 => {
169
179
  let {
@@ -186,9 +196,15 @@ export const ComboboxItemGroupLabel = _ref2 => {
186
196
  })
187
197
  });
188
198
  };
189
- export const ComboboxItemGroup = withContext(Combobox.ItemGroup, "itemGroup");
190
- export const ComboboxItemIndicator = withContext(Combobox.ItemIndicator, "itemIndicator");
191
- export const ComboboxItem = withContext(Combobox.Item, "item");
199
+ export const ComboboxItemGroup = withContext(Combobox.ItemGroup, "itemGroup", {
200
+ baseComponent: true
201
+ });
202
+ export const ComboboxItemIndicator = withContext(Combobox.ItemIndicator, "itemIndicator", {
203
+ baseComponent: true
204
+ });
205
+ export const ComboboxItem = withContext(Combobox.Item, "item", {
206
+ baseComponent: true
207
+ });
192
208
  const InternalComboboxItemText = withContext(Combobox.ItemText, "itemText");
193
209
  export const ComboboxItemText = _ref3 => {
194
210
  let {
@@ -225,5 +241,12 @@ export const ComboboxLabel = _ref4 => {
225
241
  })
226
242
  });
227
243
  };
228
- export const ComboboxPositioner = withContext(Combobox.Positioner, "positioner");
229
- export const ComboboxTrigger = withContext(Combobox.Trigger, "trigger");
244
+ export const ComboboxPositioner = withContext(Combobox.Positioner, "positioner", {
245
+ baseComponent: true
246
+ });
247
+ export const ComboboxTrigger = withContext(Combobox.Trigger, "trigger", {
248
+ baseComponent: true
249
+ });
250
+ export const ComboboxList = withContext(Combobox.List, "list", {
251
+ baseComponent: true
252
+ });
package/es/Dialog.js CHANGED
@@ -265,9 +265,15 @@ export const DialogRoot = _ref => {
265
265
  ...props
266
266
  });
267
267
  };
268
- export const DialogBackdrop = withContext(Dialog.Backdrop, "backdrop");
269
- export const DialogStandaloneContent = withContext(Dialog.Content, "content");
270
- export const DialogPositioner = withContext(Dialog.Positioner, "positioner");
268
+ export const DialogBackdrop = withContext(Dialog.Backdrop, "backdrop", {
269
+ baseComponent: true
270
+ });
271
+ export const DialogStandaloneContent = withContext(Dialog.Content, "content", {
272
+ baseComponent: true
273
+ });
274
+ export const DialogPositioner = withContext(Dialog.Positioner, "positioner", {
275
+ baseComponent: true
276
+ });
271
277
  export const DialogContent = /*#__PURE__*/forwardRef((props, ref) => /*#__PURE__*/_jsxs(_Fragment, {
272
278
  children: [/*#__PURE__*/_jsx(DialogBackdrop, {}), /*#__PURE__*/_jsx(DialogPositioner, {
273
279
  children: /*#__PURE__*/_jsx(DialogStandaloneContent, {
package/es/Menu.js CHANGED
@@ -141,7 +141,9 @@ export const MenuRoot = _ref => {
141
141
  ...props
142
142
  });
143
143
  };
144
- export const MenuContent = withContext(Menu.Content, "content");
144
+ export const MenuContent = withContext(Menu.Content, "content", {
145
+ baseComponent: true
146
+ });
145
147
  const InternalMenuItemGroupLabel = withContext(Menu.ItemGroupLabel, "itemGroupLabel");
146
148
  export const MenuItemGroupLabel = _ref2 => {
147
149
  let {
@@ -160,8 +162,12 @@ export const MenuItemGroupLabel = _ref2 => {
160
162
  })
161
163
  });
162
164
  };
163
- export const MenuItemGroup = withContext(Menu.ItemGroup, "itemGroup");
164
- const InternalMenuItem = withContext(Menu.Item, "item");
165
+ export const MenuItemGroup = withContext(Menu.ItemGroup, "itemGroup", {
166
+ baseComponent: true
167
+ });
168
+ const InternalMenuItem = withContext(Menu.Item, "item", {
169
+ baseComponent: true
170
+ });
165
171
  export const MenuItem = /*#__PURE__*/forwardRef((_ref3, ref) => {
166
172
  let {
167
173
  css: cssProp = {},
@@ -176,8 +182,12 @@ export const MenuItem = /*#__PURE__*/forwardRef((_ref3, ref) => {
176
182
  ref: ref
177
183
  });
178
184
  });
179
- export const MenuPositioner = withContext(Menu.Positioner, "positioner");
180
- const InternalMenuTriggerItem = withContext(Menu.TriggerItem, "triggerItem");
185
+ export const MenuPositioner = withContext(Menu.Positioner, "positioner", {
186
+ baseComponent: true
187
+ });
188
+ const InternalMenuTriggerItem = withContext(Menu.TriggerItem, "triggerItem", {
189
+ baseComponent: true
190
+ });
181
191
  export const MenuTriggerItem = /*#__PURE__*/forwardRef((_ref4, ref) => {
182
192
  let {
183
193
  css: cssProp = {},
@@ -192,5 +202,9 @@ export const MenuTriggerItem = /*#__PURE__*/forwardRef((_ref4, ref) => {
192
202
  ref: ref
193
203
  });
194
204
  });
195
- export const MenuTrigger = withContext(Menu.Trigger, "trigger");
196
- export const MenuSeparator = withContext(Menu.Separator, "separator");
205
+ export const MenuTrigger = withContext(Menu.Trigger, "trigger", {
206
+ baseComponent: true
207
+ });
208
+ export const MenuSeparator = withContext(Menu.Separator, "separator", {
209
+ baseComponent: true
210
+ });
package/es/Pagination.js CHANGED
@@ -29,8 +29,18 @@ const {
29
29
  withProvider,
30
30
  withContext
31
31
  } = createStyleContext(paginationRecipe);
32
- export const PaginationRoot = withProvider(Pagination.Root, "root");
33
- export const PaginationItem = withContext(Pagination.Item, "item");
34
- export const PaginationEllipsis = withContext(Pagination.Ellipsis, "ellipsis");
35
- export const PaginationPrevTrigger = withContext(Pagination.PrevTrigger, "prevTrigger");
36
- export const PaginationNextTrigger = withContext(Pagination.NextTrigger, "nextTrigger");
32
+ export const PaginationRoot = withProvider(Pagination.Root, "root", {
33
+ baseComponent: true
34
+ });
35
+ export const PaginationItem = withContext(Pagination.Item, "item", {
36
+ baseComponent: true
37
+ });
38
+ export const PaginationEllipsis = withContext(Pagination.Ellipsis, "ellipsis", {
39
+ baseComponent: true
40
+ });
41
+ export const PaginationPrevTrigger = withContext(Pagination.PrevTrigger, "prevTrigger", {
42
+ baseComponent: true
43
+ });
44
+ export const PaginationNextTrigger = withContext(Pagination.NextTrigger, "nextTrigger", {
45
+ baseComponent: true
46
+ });
package/es/Popover.js CHANGED
@@ -55,23 +55,43 @@ export const PopoverRoot = _ref => {
55
55
  ...props
56
56
  });
57
57
  };
58
- export const PopoverAnchor = withContext(Popover.Anchor, "anchor");
59
- export const PopoverArrowStandalone = withContext(Popover.Arrow, "arrow");
58
+ export const PopoverAnchor = withContext(Popover.Anchor, "anchor", {
59
+ baseComponent: true
60
+ });
61
+ export const PopoverArrowStandalone = withContext(Popover.Arrow, "arrow", {
62
+ baseComponent: true
63
+ });
60
64
  export const PopoverArrow = props => /*#__PURE__*/_jsx(PopoverArrowStandalone, {
61
65
  children: /*#__PURE__*/_jsx(PopoverArrowTip, {
62
66
  ...props
63
67
  })
64
68
  });
65
- export const PopoverArrowTip = withContext(Popover.ArrowTip, "arrowTip");
66
- export const PopoverCloseTrigger = withContext(Popover.CloseTrigger, "closeTrigger");
67
- export const PopoverContentStandalone = withContext(Popover.Content, "content");
69
+ export const PopoverArrowTip = withContext(Popover.ArrowTip, "arrowTip", {
70
+ baseComponent: true
71
+ });
72
+ export const PopoverCloseTrigger = withContext(Popover.CloseTrigger, "closeTrigger", {
73
+ baseComponent: true
74
+ });
75
+ export const PopoverContentStandalone = withContext(Popover.Content, "content", {
76
+ baseComponent: true
77
+ });
68
78
  export const PopoverContent = props => /*#__PURE__*/_jsx(PopoverPositioner, {
69
79
  children: /*#__PURE__*/_jsx(PopoverContentStandalone, {
70
80
  ...props
71
81
  })
72
82
  });
73
- export const PopoverDescription = withContext(Popover.Description, "description");
74
- export const PopoverIndicator = withContext(Popover.Indicator, "indicator");
75
- export const PopoverPositioner = withContext(Popover.Positioner, "positioner");
76
- export const PopoverTitle = withContext(Popover.Title, "title");
77
- export const PopoverTrigger = withContext(Popover.Trigger, "trigger");
83
+ export const PopoverDescription = withContext(Popover.Description, "description", {
84
+ baseComponent: true
85
+ });
86
+ export const PopoverIndicator = withContext(Popover.Indicator, "indicator", {
87
+ baseComponent: true
88
+ });
89
+ export const PopoverPositioner = withContext(Popover.Positioner, "positioner", {
90
+ baseComponent: true
91
+ });
92
+ export const PopoverTitle = withContext(Popover.Title, "title", {
93
+ baseComponent: true
94
+ });
95
+ export const PopoverTrigger = withContext(Popover.Trigger, "trigger", {
96
+ baseComponent: true
97
+ });
package/es/RadioGroup.js CHANGED
@@ -90,10 +90,18 @@ const {
90
90
  withProvider,
91
91
  withContext
92
92
  } = createStyleContext(radioGroupRecipe);
93
- export const RadioGroupRoot = withProvider(RadioGroup.Root, "root");
94
- export const RadioGroupIndicator = withContext(RadioGroup.Indicator, "indicator");
95
- export const RadioGroupItemControl = withContext(RadioGroup.ItemControl, "itemControl");
96
- export const RadioGroupItem = withContext(RadioGroup.Item, "item");
93
+ export const RadioGroupRoot = withProvider(RadioGroup.Root, "root", {
94
+ baseComponent: true
95
+ });
96
+ export const RadioGroupIndicator = withContext(RadioGroup.Indicator, "indicator", {
97
+ baseComponent: true
98
+ });
99
+ export const RadioGroupItemControl = withContext(RadioGroup.ItemControl, "itemControl", {
100
+ baseComponent: true
101
+ });
102
+ export const RadioGroupItem = withContext(RadioGroup.Item, "item", {
103
+ baseComponent: true
104
+ });
97
105
  const InternalRadioGroupItemText = withContext(RadioGroup.ItemText, "itemText");
98
106
  export const RadioGroupItemText = _ref => {
99
107
  let {
package/es/Select.js CHANGED
@@ -132,7 +132,9 @@ const {
132
132
  withProvider,
133
133
  withContext
134
134
  } = createStyleContext(selectRecipe);
135
- const InternalSelectRoot = withProvider(Select.Root, "root");
135
+ const InternalSelectRoot = withProvider(Select.Root, "root", {
136
+ baseComponent: true
137
+ });
136
138
  export const SelectRoot = _ref => {
137
139
  let {
138
140
  lazyMount = true,
@@ -149,10 +151,18 @@ export const SelectRoot = _ref => {
149
151
  })
150
152
  );
151
153
  };
152
- export const SelectClearTrigger = withContext(Select.ClearTrigger, "clearTrigger");
153
- export const SelectContent = withContext(Select.Content, "content");
154
- export const SelectControl = withContext(Select.Control, "control");
155
- export const SelectIndicator = withContext(Select.Indicator, "indicator");
154
+ export const SelectClearTrigger = withContext(Select.ClearTrigger, "clearTrigger", {
155
+ baseComponent: true
156
+ });
157
+ export const SelectContent = withContext(Select.Content, "content", {
158
+ baseComponent: true
159
+ });
160
+ export const SelectControl = withContext(Select.Control, "control", {
161
+ baseComponent: true
162
+ });
163
+ export const SelectIndicator = withContext(Select.Indicator, "indicator", {
164
+ baseComponent: true
165
+ });
156
166
  export const SelectItemGroupLabel = /*#__PURE__*/forwardRef((_ref2, ref) => {
157
167
  let {
158
168
  children,
@@ -172,10 +182,18 @@ export const SelectItemGroupLabel = /*#__PURE__*/forwardRef((_ref2, ref) => {
172
182
  });
173
183
  });
174
184
  const InternalSelectItemGroupLabel = withContext(Select.ItemGroupLabel, "itemGroupLabel");
175
- export const SelectItemGroup = withContext(Select.ItemGroup, "itemGroup");
176
- export const SelectItemIndicator = withContext(Select.ItemIndicator, "itemIndicator");
177
- export const SelectItem = withContext(Select.Item, "item");
178
- export const SelectItemText = withContext(Select.ItemText, "itemText");
185
+ export const SelectItemGroup = withContext(Select.ItemGroup, "itemGroup", {
186
+ baseComponent: true
187
+ });
188
+ export const SelectItemIndicator = withContext(Select.ItemIndicator, "itemIndicator", {
189
+ baseComponent: true
190
+ });
191
+ export const SelectItem = withContext(Select.Item, "item", {
192
+ baseComponent: true
193
+ });
194
+ export const SelectItemText = withContext(Select.ItemText, "itemText", {
195
+ baseComponent: true
196
+ });
179
197
  const InternalSelectLabel = withContext(Select.Label, "label");
180
198
  export const SelectLabel = /*#__PURE__*/forwardRef((_ref3, ref) => {
181
199
  let {
@@ -191,6 +209,15 @@ export const SelectLabel = /*#__PURE__*/forwardRef((_ref3, ref) => {
191
209
  })
192
210
  });
193
211
  });
194
- export const SelectPositioner = withContext(Select.Positioner, "positioner");
195
- export const SelectTrigger = withContext(Select.Trigger, "trigger");
196
- export const SelectValueText = withContext(Select.ValueText, "valueText");
212
+ export const SelectPositioner = withContext(Select.Positioner, "positioner", {
213
+ baseComponent: true
214
+ });
215
+ export const SelectTrigger = withContext(Select.Trigger, "trigger", {
216
+ baseComponent: true
217
+ });
218
+ export const SelectValueText = withContext(Select.ValueText, "valueText", {
219
+ baseComponent: true
220
+ });
221
+ export const SelectList = withContext(Select.List, "list", {
222
+ baseComponent: true
223
+ });
package/es/Slider.js CHANGED
@@ -79,11 +79,21 @@ const {
79
79
  withProvider,
80
80
  withContext
81
81
  } = createStyleContext(sliderRecipe);
82
- export const SliderRoot = withProvider(Slider.Root, "root");
83
- export const SliderControl = withContext(Slider.Control, "control");
84
- export const SliderTrack = withContext(Slider.Track, "track");
85
- export const SliderRange = withContext(Slider.Range, "range");
86
- export const SliderThumb = withContext(Slider.Thumb, "thumb");
82
+ export const SliderRoot = withProvider(Slider.Root, "root", {
83
+ baseComponent: true
84
+ });
85
+ export const SliderControl = withContext(Slider.Control, "control", {
86
+ baseComponent: true
87
+ });
88
+ export const SliderTrack = withContext(Slider.Track, "track", {
89
+ baseComponent: true
90
+ });
91
+ export const SliderRange = withContext(Slider.Range, "range", {
92
+ baseComponent: true
93
+ });
94
+ export const SliderThumb = withContext(Slider.Thumb, "thumb", {
95
+ baseComponent: true
96
+ });
87
97
  const InternalSliderLabel = withContext(Slider.Label, "label");
88
98
  export const SliderLabel = _ref => {
89
99
  let {
package/es/Switch.js CHANGED
@@ -97,9 +97,15 @@ const {
97
97
  withProvider,
98
98
  withContext
99
99
  } = createStyleContext(switchRecipe);
100
- export const SwitchRoot = withProvider(Switch.Root, "root");
101
- export const SwitchControl = withContext(Switch.Control, "control");
102
- export const SwitchThumb = withContext(Switch.Thumb, "thumb");
100
+ export const SwitchRoot = withProvider(Switch.Root, "root", {
101
+ baseComponent: true
102
+ });
103
+ export const SwitchControl = withContext(Switch.Control, "control", {
104
+ baseComponent: true
105
+ });
106
+ export const SwitchThumb = withContext(Switch.Thumb, "thumb", {
107
+ baseComponent: true
108
+ });
103
109
  const InternalSwitchLabel = withContext(Switch.Label, "label");
104
110
  export const SwitchLabel = _ref => {
105
111
  let {