@ndla/primitives 0.0.17 → 0.0.18

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 (51) hide show
  1. package/dist/panda.buildinfo.json +12 -10
  2. package/dist/styles.css +18 -10
  3. package/es/Accordion.js +58 -30
  4. package/es/Button.js +1 -1
  5. package/es/Card/Card.js +77 -0
  6. package/es/Checkbox.js +12 -4
  7. package/es/Combobox.js +30 -10
  8. package/es/Dialog.js +9 -3
  9. package/es/Menu.js +21 -7
  10. package/es/Pagination.js +15 -5
  11. package/es/Popover.js +30 -10
  12. package/es/RadioGroup.js +12 -4
  13. package/es/Select.js +36 -12
  14. package/es/Slider.js +15 -5
  15. package/es/Switch.js +9 -3
  16. package/es/Tabs.js +15 -5
  17. package/es/TagsInput.js +27 -9
  18. package/es/Toast.js +9 -3
  19. package/es/Tooltip.js +15 -5
  20. package/es/createStyleContext.js +4 -10
  21. package/es/index.js +2 -1
  22. package/lib/Accordion.d.ts +41 -2
  23. package/lib/Accordion.js +58 -30
  24. package/lib/Badge.d.ts +1 -0
  25. package/lib/Button.d.ts +1 -1
  26. package/lib/Button.js +1 -1
  27. package/lib/Card/Card.d.ts +19 -0
  28. package/lib/Card/Card.js +83 -0
  29. package/lib/Checkbox.js +12 -4
  30. package/lib/Combobox.d.ts +45 -13
  31. package/lib/Combobox.js +30 -10
  32. package/lib/Dialog.js +9 -3
  33. package/lib/Menu.js +21 -7
  34. package/lib/Pagination.d.ts +6 -2
  35. package/lib/Pagination.js +15 -5
  36. package/lib/Popover.js +30 -10
  37. package/lib/RadioGroup.js +12 -4
  38. package/lib/Select.js +36 -12
  39. package/lib/Slider.js +15 -5
  40. package/lib/Switch.js +9 -3
  41. package/lib/Tabs.d.ts +4 -1
  42. package/lib/Tabs.js +15 -5
  43. package/lib/TagsInput.d.ts +15 -2
  44. package/lib/TagsInput.js +27 -9
  45. package/lib/Toast.js +9 -3
  46. package/lib/Tooltip.js +15 -5
  47. package/lib/createStyleContext.d.ts +5 -2
  48. package/lib/createStyleContext.js +4 -10
  49. package/lib/index.d.ts +5 -4
  50. package/lib/index.js +37 -0
  51. package/package.json +3 -3
@@ -9,23 +9,23 @@
9
9
  "justifyContent]___[value:space-between",
10
10
  "background]___[value:surface.default",
11
11
  "cursor]___[value:pointer",
12
- "paddingInline]___[value:medium",
13
- "paddingBlock]___[value:medium",
14
- "boxShadowColor]___[value:stroke.subtle",
15
- "boxShadow]___[value:inset 0 0 0 1px var(--shadow-color)",
16
- "borderRadius]___[value:xsmall",
17
12
  "transitionDuration]___[value:fast",
18
13
  "transitionTimingFunction]___[value:default",
19
14
  "transitionProperty]___[value:background, border-color, border, border-radius",
20
- "width]___[value:100%",
21
15
  "transitionProperty]___[value:background, border-color, border, border-radius]___[cond:_closed",
22
16
  "cursor]___[value:not-allowed]___[cond:_disabled",
23
- "background]___[value:surface..disabled.subtle]___[cond:_disabled",
17
+ "background]___[value:surface.disabled.subtle]___[cond:_disabled",
24
18
  "boxShadowColor]___[value:stroke.disabled]___[cond:_disabled",
25
19
  "color]___[value:text.disabled]___[cond:_disabled",
26
20
  "background]___[value:surface.disabled.subtle]___[cond:_disabled<___>_hover",
27
21
  "boxShadowColor]___[value:stroke.disabled]___[cond:_disabled<___>_hover",
28
22
  "color]___[value:text.disabled]___[cond:_disabled<___>_hover",
23
+ "paddingInline]___[value:medium",
24
+ "paddingBlock]___[value:medium",
25
+ "width]___[value:100%",
26
+ "borderRadius]___[value:xsmall",
27
+ "boxShadowColor]___[value:stroke.subtle",
28
+ "boxShadow]___[value:inset 0 0 0 1px var(--shadow-color)",
29
29
  "background]___[value:surface.actionSubtle.hover]___[cond:_hover",
30
30
  "boxShadowColor]___[value:stroke.hover]___[cond:_hover",
31
31
  "backgroundColor]___[value:surface.actionSubtle.active]___[cond:_open",
@@ -43,12 +43,12 @@
43
43
  "transitionProperty]___[value:padding-bottom",
44
44
  "paddingBlock]___[value:xsmall",
45
45
  "paddingInline]___[value:small",
46
+ "animation]___[value:collapse-in]___[cond:_open",
47
+ "animation]___[value:collapse-out]___[cond:_closed",
46
48
  "borderBottomRadius]___[value:xsmall",
47
49
  "borderWidth]___[value:0 1px 1px",
48
50
  "borderStyle]___[value:solid",
49
51
  "borderColor]___[value:stroke.default",
50
- "animation]___[value:collapse-in]___[cond:_open",
51
- "animation]___[value:collapse-out]___[cond:_closed",
52
52
  "listStyle]___[value:revert",
53
53
  "listStylePosition]___[value:inside",
54
54
  "paddingInlineStart]___[value:small",
@@ -543,7 +543,9 @@
543
543
  "right]___[value:xxsmall",
544
544
  "paddingInline]___[value:xxsmall",
545
545
  "--arrow-size]___[value:spacing.xxsmall",
546
- "--arrow-background]___[value:colors.surface.action"
546
+ "--arrow-background]___[value:colors.surface.action",
547
+ "height]___[value:200px",
548
+ "objectFit]___[value:cover"
547
549
  ],
548
550
  "recipes": {}
549
551
  }
package/dist/styles.css CHANGED
@@ -109,20 +109,20 @@
109
109
  padding-block: var(--spacing-medium);
110
110
  }
111
111
 
112
- .bx-sh-c_stroke\.subtle {
113
- --shadow-color: var(--colors-stroke-subtle);
114
- }
115
-
116
- .bx-sh_inset_0_0_0_1px_var\(--shadow-color\) {
117
- box-shadow: inset 0 0 0 1px var(--shadow-color);
112
+ .w_100\% {
113
+ width: 100%;
118
114
  }
119
115
 
120
116
  .bdr_xsmall {
121
117
  border-radius: var(--radii-xsmall);
122
118
  }
123
119
 
124
- .w_100\% {
125
- width: 100%;
120
+ .bx-sh-c_stroke\.subtle {
121
+ --shadow-color: var(--colors-stroke-subtle);
122
+ }
123
+
124
+ .bx-sh_inset_0_0_0_1px_var\(--shadow-color\) {
125
+ box-shadow: inset 0 0 0 1px var(--shadow-color);
126
126
  }
127
127
 
128
128
  .c_icon\.strong {
@@ -832,6 +832,14 @@
832
832
  --arrow-background: var(--colors-surface-action);
833
833
  }
834
834
 
835
+ .h_200px {
836
+ height: 200px;
837
+ }
838
+
839
+ .obj-f_cover {
840
+ object-fit: cover;
841
+ }
842
+
835
843
  .flex-d_column {
836
844
  flex-direction: column;
837
845
  }
@@ -1131,8 +1139,8 @@
1131
1139
  cursor: not-allowed;
1132
1140
  }
1133
1141
 
1134
- .disabled\:bg_surface\.\.disabled\.subtle:is(:disabled, [disabled], [data-disabled]) {
1135
- background: surface..disabled.subtle;
1142
+ .disabled\:bg_surface\.disabled\.subtle:is(:disabled, [disabled], [data-disabled]) {
1143
+ background: var(--colors-surface-disabled-subtle);
1136
1144
  }
1137
1145
 
1138
1146
  .disabled\:bx-sh-c_stroke\.disabled:is(:disabled, [disabled], [data-disabled]) {
package/es/Accordion.js CHANGED
@@ -23,21 +23,15 @@ const accordionRecipe = sva({
23
23
  justifyContent: "space-between",
24
24
  background: "surface.default",
25
25
  cursor: "pointer",
26
- paddingInline: "medium",
27
- paddingBlock: "medium",
28
- boxShadowColor: "stroke.subtle",
29
- boxShadow: "inset 0 0 0 1px var(--shadow-color)",
30
- borderRadius: "xsmall",
31
26
  transitionDuration: "fast",
32
27
  transitionTimingFunction: "default",
33
28
  transitionProperty: "background, border-color, border, border-radius",
34
- width: "100%",
35
29
  _closed: {
36
30
  transitionProperty: "background, border-color, border, border-radius"
37
31
  },
38
32
  _disabled: {
39
33
  cursor: "not-allowed",
40
- background: "surface..disabled.subtle",
34
+ background: "surface.disabled.subtle",
41
35
  boxShadowColor: "stroke.disabled",
42
36
  color: "text.disabled",
43
37
  _hover: {
@@ -45,20 +39,6 @@ const accordionRecipe = sva({
45
39
  boxShadowColor: "stroke.disabled",
46
40
  color: "text.disabled"
47
41
  }
48
- },
49
- _hover: {
50
- background: "surface.actionSubtle.hover",
51
- boxShadowColor: "stroke.hover"
52
- },
53
- _open: {
54
- backgroundColor: "surface.actionSubtle.active",
55
- boxShadowColor: "stroke.default",
56
- borderBottomRadius: "sharp"
57
- },
58
- _focusVisible: {
59
- outline: "none",
60
- boxShadowColor: "stroke.default",
61
- boxShadow: "inset 0 0 0 2px var(--shadow-color)"
62
42
  }
63
43
  },
64
44
  itemIndicator: {
@@ -73,21 +53,59 @@ const accordionRecipe = sva({
73
53
  },
74
54
  itemContent: {
75
55
  overflow: "hidden",
56
+ // TODO: Is this needed?
76
57
  transitionProperty: "padding-bottom",
77
58
  transitionDuration: "normal",
78
59
  transitionTimingFunction: "default",
79
60
  paddingBlock: "xsmall",
80
61
  paddingInline: "small",
81
- borderBottomRadius: "xsmall",
82
- borderWidth: "0 1px 1px",
83
- borderStyle: "solid",
84
- borderColor: "stroke.default",
85
62
  _open: {
86
63
  animation: "collapse-in"
87
64
  },
88
65
  _closed: {
89
66
  animation: "collapse-out"
90
67
  }
68
+ },
69
+ item: {
70
+ width: "100%"
71
+ }
72
+ },
73
+ defaultVariants: {
74
+ variant: "bordered"
75
+ },
76
+ variants: {
77
+ variant: {
78
+ clean: {},
79
+ bordered: {
80
+ itemTrigger: {
81
+ paddingInline: "medium",
82
+ paddingBlock: "medium",
83
+ width: "100%",
84
+ borderRadius: "xsmall",
85
+ boxShadowColor: "stroke.subtle",
86
+ boxShadow: "inset 0 0 0 1px var(--shadow-color)",
87
+ _hover: {
88
+ background: "surface.actionSubtle.hover",
89
+ boxShadowColor: "stroke.hover"
90
+ },
91
+ _open: {
92
+ backgroundColor: "surface.actionSubtle.active",
93
+ boxShadowColor: "stroke.default",
94
+ borderBottomRadius: "sharp"
95
+ },
96
+ _focusVisible: {
97
+ outline: "none",
98
+ boxShadowColor: "stroke.default",
99
+ boxShadow: "inset 0 0 0 2px var(--shadow-color)"
100
+ }
101
+ },
102
+ itemContent: {
103
+ borderBottomRadius: "xsmall",
104
+ borderWidth: "0 1px 1px",
105
+ borderStyle: "solid",
106
+ borderColor: "stroke.default"
107
+ }
108
+ }
91
109
  }
92
110
  }
93
111
  });
@@ -95,8 +113,18 @@ const {
95
113
  withProvider,
96
114
  withContext
97
115
  } = createStyleContext(accordionRecipe);
98
- export const AccordionRoot = withProvider(Accordion.Root, "root");
99
- export const AccordionItemContent = withContext(Accordion.ItemContent, "itemContent");
100
- export const AccordionItemIndicator = withContext(Accordion.ItemIndicator, "itemIndicator");
101
- export const AccordionItem = withContext(Accordion.Item, "item");
102
- export const AccordionItemTrigger = withContext(Accordion.ItemTrigger, "itemTrigger");
116
+ export const AccordionRoot = withProvider(Accordion.Root, "root", {
117
+ baseComponent: true
118
+ });
119
+ export const AccordionItemContent = withContext(Accordion.ItemContent, "itemContent", {
120
+ baseComponent: true
121
+ });
122
+ export const AccordionItemIndicator = withContext(Accordion.ItemIndicator, "itemIndicator", {
123
+ baseComponent: true
124
+ });
125
+ export const AccordionItem = withContext(Accordion.Item, "item", {
126
+ baseComponent: true
127
+ });
128
+ export const AccordionItemTrigger = withContext(Accordion.ItemTrigger, "itemTrigger", {
129
+ baseComponent: true
130
+ });
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,9 @@ 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
+ });
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,12 @@ 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
+ });