@sanity/ui 5.0.0-alpha.1 → 5.0.0-alpha.11

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 (93) hide show
  1. package/README.md +1 -1
  2. package/dist/LazyRefractor-CQ22IeXB.js +19 -0
  3. package/dist/LazyRefractor-CQ22IeXB.js.map +1 -0
  4. package/dist/cli/install.js +2 -1
  5. package/dist/index.d.ts +662 -796
  6. package/dist/index.d.ts.map +1 -0
  7. package/dist/index.js +2081 -1758
  8. package/dist/index.js.map +1 -1
  9. package/dist/polyfills.d.ts +1 -0
  10. package/dist/polyfills.js +5 -0
  11. package/dist/polyfills.js.map +1 -0
  12. package/dist/styles.css +1 -1
  13. package/package.json +16 -9
  14. package/src/cli/install.ts +2 -1
  15. package/src/components/badge/Badge.tsx +53 -0
  16. package/src/components/badge/badge.css +6 -0
  17. package/src/components/badge/badge.props.ts +31 -0
  18. package/src/components/box/box.css +5 -0
  19. package/src/components/box/box.props.ts +7 -2
  20. package/src/components/button/button.props.ts +27 -9
  21. package/src/components/card/card.props.ts +6 -2
  22. package/src/components/checkbox/Checkbox.tsx +4 -3
  23. package/src/components/checkbox/checkbox.props.ts +11 -3
  24. package/src/components/code/code.props.ts +10 -3
  25. package/src/components/container/Container.tsx +5 -1
  26. package/src/components/container/container.css +4 -0
  27. package/src/components/container/container.props.ts +6 -2
  28. package/src/components/dialog/Dialog.tsx +139 -0
  29. package/src/components/dialog/dialog.css +49 -0
  30. package/src/components/dialog/dialog.props.ts +45 -0
  31. package/src/components/eyebrow/Eyebrow.tsx +1 -1
  32. package/src/components/eyebrow/eyebrow.props.ts +6 -2
  33. package/src/components/flex/flex.css +5 -0
  34. package/src/components/flex/flex.props.ts +6 -2
  35. package/src/components/grid/grid.css +5 -0
  36. package/src/components/grid/grid.props.ts +6 -2
  37. package/src/components/h-stack/HStack.tsx +8 -14
  38. package/src/components/h-stack/hStack.props.ts +5 -13
  39. package/src/components/heading/Heading.tsx +1 -1
  40. package/src/components/heading/heading.props.ts +8 -2
  41. package/src/components/icon/icon.props.ts +6 -2
  42. package/src/components/icon-button/iconButton.props.ts +7 -2
  43. package/src/components/index.css +4 -0
  44. package/src/components/indicator/indicator.props.ts +6 -2
  45. package/src/components/indicator-stack/indicatorStack.props.ts +3 -1
  46. package/src/components/inline/inline.props.ts +6 -2
  47. package/src/components/label/label.props.ts +7 -1
  48. package/src/components/link/link.props.ts +4 -4
  49. package/src/components/list/list.props.ts +27 -9
  50. package/src/components/popover/Popover.tsx +85 -0
  51. package/src/components/popover/popover.css +21 -0
  52. package/src/components/popover/popover.props.ts +38 -0
  53. package/src/components/press-area/pressArea.props.ts +3 -1
  54. package/src/components/radio/Radio.tsx +1 -1
  55. package/src/components/radio/radio.props.ts +7 -2
  56. package/src/components/select/Select.tsx +47 -0
  57. package/src/components/select/select.css +67 -0
  58. package/src/components/select/select.props.ts +25 -0
  59. package/src/components/skip-to-content/skipToContent.props.ts +9 -3
  60. package/src/components/spinner/Spinner.tsx +1 -1
  61. package/src/components/spinner/spinner.props.ts +3 -0
  62. package/src/components/switch/Switch.tsx +1 -1
  63. package/src/components/switch/switch.props.ts +7 -2
  64. package/src/components/text/Text.tsx +1 -1
  65. package/src/components/text/text.props.ts +6 -2
  66. package/src/components/tooltip/Tooltip.tsx +59 -55
  67. package/src/components/tooltip/tooltip.css +19 -40
  68. package/src/components/tooltip/tooltip.props.ts +24 -8
  69. package/src/components/tooltip-group/TooltipGroup.tsx +2 -5
  70. package/src/components/tooltip-group/tooltipGroup.props.ts +3 -1
  71. package/src/components/v-stack/VStack.tsx +8 -14
  72. package/src/components/v-stack/vStack.props.ts +5 -13
  73. package/src/components/visually-hidden/visuallyHidden.props.ts +6 -2
  74. package/src/css/classes/generic/display.css +8 -8
  75. package/src/css/classes/generic/placement.css +31 -0
  76. package/src/css/classes/local/animation.css +4 -0
  77. package/src/css/classes/local/index.css +2 -0
  78. package/src/css/classes/local/top-anchor.css +4 -0
  79. package/src/css/classes/system/shadow.css +6 -6
  80. package/src/css/global/reset.css +32 -19
  81. package/src/css/tokens/semantic.css +4 -0
  82. package/src/css/tokens/surface.css +2 -0
  83. package/src/hooks/useIsClient.ts +10 -0
  84. package/src/index.ts +8 -0
  85. package/src/polyfills.ts +17 -0
  86. package/src/props/formElement.ts +34 -0
  87. package/src/types/FormElement.ts +2 -0
  88. package/src/utils/getProps.ts +1 -1
  89. package/src/utils/mergeTriggerProps.ts +66 -0
  90. package/src/utils/renderPortal.tsx +14 -0
  91. package/src/version.ts +2 -2
  92. package/dist/_chunks-es/LazyRefractor.js +0 -20
  93. package/dist/_chunks-es/LazyRefractor.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,1872 +1,2195 @@
1
1
  "use client";
2
- import { jsx, jsxs, Fragment } from "react/jsx-runtime";
3
2
  import { c } from "react/compiler-runtime";
4
3
  import clsx from "clsx";
5
- import { isValidElement, useRef, useEffect, lazy, Suspense, Children, useId, useState, cloneElement } from "react";
6
- import { SpinnerIcon, RemoveIcon, CheckmarkIcon } from "@sanity/icons";
7
- const PREFIX = "sui", BREAKPOINTS_LENGTH = 6;
4
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
5
+ import { Activity, Children, Suspense, cloneElement, isValidElement, lazy, useEffect, useId, useRef, useState, useSyncExternalStore } from "react";
6
+ import { SpinnerIcon } from "@sanity/icons/Spinner";
7
+ import { CheckmarkIcon } from "@sanity/icons/Checkmark";
8
+ import { RemoveIcon } from "@sanity/icons/Remove";
9
+ import { CloseIcon } from "@sanity/icons/Close";
10
+ import { createPortal } from "react-dom";
11
+ import SelectIcon from "@sanity/icons/Select";
8
12
  function getProps(componentProps, propDefs) {
9
- const {
10
- allComponentProps,
11
- allPropDefs
12
- } = flattenCompositeProps(componentProps, propDefs), restProps = {};
13
- let className = componentProps?.className || "", style = componentProps?.style || {};
14
- for (const key in allComponentProps) {
15
- const propDef = allPropDefs?.[key], propValue = allComponentProps[key];
16
- if (!(propDef && "className" in propDef && propDef.className || propDef?.type === "conditional")) {
17
- restProps[key] = propValue;
18
- continue;
19
- }
20
- if (Array.isArray(propValue))
21
- for (let i = 0, len = Math.min(propValue.length, BREAKPOINTS_LENGTH); i < len; i++) {
22
- const resolvedPropDef = getResolvedPropDef(propValue[i], propDef);
23
- resolvedPropDef && (className = clsx(className, getClassName(propValue[i], resolvedPropDef, i)), style = {
24
- ...style,
25
- ...getStyle(propValue[i], resolvedPropDef, i)
26
- });
27
- }
28
- else {
29
- const resolvedPropDef = getResolvedPropDef(propValue, propDef);
30
- if (!resolvedPropDef) {
31
- restProps[key] = propValue;
32
- continue;
33
- }
34
- className = clsx(className, getClassName(propValue, resolvedPropDef)), style = {
35
- ...style,
36
- ...getStyle(propValue, resolvedPropDef)
37
- };
38
- }
39
- }
40
- return {
41
- ...restProps,
42
- className,
43
- style
44
- };
13
+ let { allComponentProps, allPropDefs } = flattenCompositeProps(componentProps, propDefs), restProps = {}, className = componentProps?.className || "", style = componentProps?.style || {};
14
+ for (let key in allComponentProps) {
15
+ let propDef = allPropDefs?.[key], propValue = allComponentProps[key];
16
+ if (!(propDef && "className" in propDef && propDef.className || propDef?.type === "conditional")) {
17
+ restProps[key] = propValue;
18
+ continue;
19
+ }
20
+ if (Array.isArray(propValue)) for (let i = 0, len = Math.min(propValue.length, 6); i < len; i++) {
21
+ let resolvedPropDef = getResolvedPropDef(propValue[i], propDef);
22
+ resolvedPropDef && (className = clsx(className, getClassName(propValue[i], resolvedPropDef, i)), style = {
23
+ ...style,
24
+ ...getStyle(propValue[i], resolvedPropDef, i)
25
+ });
26
+ }
27
+ else {
28
+ let resolvedPropDef = getResolvedPropDef(propValue, propDef);
29
+ if (!resolvedPropDef) {
30
+ restProps[key] = propValue;
31
+ continue;
32
+ }
33
+ className = clsx(className, getClassName(propValue, resolvedPropDef)), style = {
34
+ ...style,
35
+ ...getStyle(propValue, resolvedPropDef)
36
+ };
37
+ }
38
+ }
39
+ return {
40
+ ...restProps,
41
+ className,
42
+ style
43
+ };
45
44
  }
46
45
  function getResolvedPropDef(propValue, propDef) {
47
- if (propDef?.type !== "conditional")
48
- return propDef;
49
- const resolvedPropDef = propDef.resolve(propValue);
50
- return resolvedPropDef && "className" in resolvedPropDef && resolvedPropDef.className ? resolvedPropDef : null;
46
+ if (propDef?.type !== "conditional") return propDef;
47
+ let resolvedPropDef = propDef.resolve(propValue);
48
+ return resolvedPropDef && "className" in resolvedPropDef && resolvedPropDef.className ? resolvedPropDef : null;
51
49
  }
52
50
  function getClassName(propValue, propDef, bp) {
53
- if (propDef.type === "union" && propDef.values?.includes(propValue))
54
- return `${PREFIX}-${propDef.className}${typeof propValue == "string" ? `-${propValue}` : propValue}${bp ? `-bp-${bp}` : ""}`;
55
- if (propDef.type === "string" || propDef.type === "number")
56
- return `${PREFIX}-${propDef.className}${bp ? `-bp-${bp}` : ""}`;
57
- if (propDef.type === "boolean") {
58
- if (propValue)
59
- return `${PREFIX}-${propDef.className}${bp ? `-bp-${bp}` : ""}`;
60
- if (!propValue && propDef.inverseClassName)
61
- return `${PREFIX}-${propDef.inverseClassName}${bp ? `-bp-${bp}` : ""}`;
62
- }
63
- return "";
51
+ if (propDef.type === "union" && propDef.values?.includes(propValue)) return `sui-${propDef.className}${typeof propValue == "string" ? `-${propValue}` : propValue}${bp ? `-bp-${bp}` : ""}`;
52
+ if (propDef.type === "string" || propDef.type === "number") return `sui-${propDef.className}${bp ? `-bp-${bp}` : ""}`;
53
+ if (propDef.type === "boolean") {
54
+ if (propValue) return `sui-${propDef.className}${bp ? `-bp-${bp}` : ""}`;
55
+ if (!propValue && propDef.inverseClassName) return `sui-${propDef.inverseClassName}${bp ? `-bp-${bp}` : ""}`;
56
+ }
57
+ return "";
64
58
  }
65
59
  function getStyle(propValue, propDef, bp) {
66
- return (propDef.type === "string" || propDef.type === "number") && propDef.variable ? {
67
- [`${propDef.variable}${bp ? `-bp-${bp}` : ""}`]: propValue
68
- } : {};
60
+ return (propDef.type === "string" || propDef.type === "number") && propDef.variable ? { [`${propDef.variable}${bp ? `-bp-${bp}` : ""}`]: propValue } : {};
69
61
  }
70
62
  function flattenCompositeProps(componentProps, propDefs) {
71
- const props = {
72
- allComponentProps: {},
73
- allPropDefs: {}
74
- };
75
- for (const key in componentProps)
76
- if (propDefs?.[key] && propDefs?.[key].type === "composite")
77
- for (const compositeKey in propDefs?.[key].composition) {
78
- const compositeValue = getCompositeValue(componentProps[key], propDefs[key], compositeKey);
79
- props.allComponentProps[compositeKey] = compositeValue, props.allPropDefs[compositeKey] = propDefs[key].composition[compositeKey]?.propDef;
80
- }
81
- else
82
- props.allComponentProps[key] = componentProps[key], props.allPropDefs[key] = propDefs?.[key];
83
- return props;
63
+ let props = {
64
+ allComponentProps: {},
65
+ allPropDefs: {}
66
+ };
67
+ for (let key in componentProps) if (propDefs?.[key] && propDefs?.[key].type === "composite") for (let compositeKey in propDefs?.[key].composition) {
68
+ let compositeValue = getCompositeValue(componentProps[key], propDefs[key], compositeKey);
69
+ props.allComponentProps[compositeKey] = compositeValue, props.allPropDefs[compositeKey] = propDefs[key].composition[compositeKey]?.propDef;
70
+ }
71
+ else props.allComponentProps[key] = componentProps[key], props.allPropDefs[key] = propDefs?.[key];
72
+ return props;
84
73
  }
85
74
  function getCompositeValue(propValue, propDef, key) {
86
- if (!("composition" in propDef))
87
- return;
88
- const mapping = propDef.composition[key]?.mapping;
89
- let compositeValue;
90
- if (Array.isArray(propValue)) {
91
- compositeValue = [];
92
- for (let i = 0, len = propValue.length; i < len; i++)
93
- compositeValue[i] = mapping?.[propValue[i]];
94
- } else
95
- compositeValue = mapping?.[propValue];
96
- return compositeValue;
75
+ if (!("composition" in propDef)) return;
76
+ let mapping = propDef.composition[key]?.mapping, compositeValue;
77
+ if (Array.isArray(propValue)) {
78
+ compositeValue = [];
79
+ for (let i = 0, len = propValue.length; i < len; i++) compositeValue[i] = mapping?.[propValue[i]];
80
+ } else compositeValue = mapping?.[propValue];
81
+ return compositeValue;
97
82
  }
98
- const HASH = "162541";
99
83
  function suffixClassName(className) {
100
- return `${className}-${HASH}`;
84
+ return `${className}-8b95a0`;
101
85
  }
102
- const RADIUS = [0, 1, 2, 3, 4, 5, 6, "full"], borderProps = {
103
- border: {
104
- type: "boolean",
105
- className: "border",
106
- inverseClassName: "border-none"
107
- },
108
- borderTop: {
109
- type: "boolean",
110
- className: "border-top",
111
- inverseClassName: "border-top-none"
112
- },
113
- borderRight: {
114
- type: "boolean",
115
- className: "border-right",
116
- inverseClassName: "border-right-none"
117
- },
118
- borderBottom: {
119
- type: "boolean",
120
- className: "border-bottom",
121
- inverseClassName: "border-bottom-none"
122
- },
123
- borderLeft: {
124
- type: "boolean",
125
- className: "border-left",
126
- inverseClassName: "border-left-none"
127
- },
128
- radius: {
129
- type: "union",
130
- className: "radius",
131
- values: RADIUS
132
- }
86
+ const borderProps = {
87
+ border: {
88
+ type: "boolean",
89
+ className: "border",
90
+ inverseClassName: "border-none"
91
+ },
92
+ borderTop: {
93
+ type: "boolean",
94
+ className: "border-top",
95
+ inverseClassName: "border-top-none"
96
+ },
97
+ borderRight: {
98
+ type: "boolean",
99
+ className: "border-right",
100
+ inverseClassName: "border-right-none"
101
+ },
102
+ borderBottom: {
103
+ type: "boolean",
104
+ className: "border-bottom",
105
+ inverseClassName: "border-bottom-none"
106
+ },
107
+ borderLeft: {
108
+ type: "boolean",
109
+ className: "border-left",
110
+ inverseClassName: "border-left-none"
111
+ },
112
+ radius: {
113
+ type: "union",
114
+ className: "radius",
115
+ values: [
116
+ 0,
117
+ 1,
118
+ 2,
119
+ 3,
120
+ 4,
121
+ 5,
122
+ 6,
123
+ "full"
124
+ ]
125
+ }
133
126
  }, flexChildProps = {
134
- flexBasis: {
135
- type: "string",
136
- className: "flex-basis",
137
- variable: "--flex-basis"
138
- },
139
- flexGrow: {
140
- type: "number",
141
- className: "flex-grow",
142
- variable: "--flex-grow"
143
- },
144
- flexShrink: {
145
- type: "number",
146
- className: "flex-shrink",
147
- variable: "--flex-shrink"
148
- }
127
+ flexBasis: {
128
+ type: "string",
129
+ className: "flex-basis",
130
+ variable: "--flex-basis"
131
+ },
132
+ flexGrow: {
133
+ type: "number",
134
+ className: "flex-grow",
135
+ variable: "--flex-grow"
136
+ },
137
+ flexShrink: {
138
+ type: "number",
139
+ className: "flex-shrink",
140
+ variable: "--flex-shrink"
141
+ }
149
142
  }, gridChildProps = {
150
- gridColumn: {
151
- type: "string",
152
- className: "grid-column",
153
- variable: "--grid-column"
154
- },
155
- gridColumnStart: {
156
- type: "string",
157
- className: "grid-column-start",
158
- variable: "--grid-column-start"
159
- },
160
- gridColumnEnd: {
161
- type: "string",
162
- className: "grid-column-end",
163
- variable: "--grid-column-end"
164
- },
165
- gridRow: {
166
- type: "string",
167
- className: "grid-row",
168
- variable: "--grid-row"
169
- },
170
- gridRowStart: {
171
- type: "string",
172
- className: "grid-row-start",
173
- variable: "--grid-row-start"
174
- },
175
- gridRowEnd: {
176
- type: "string",
177
- className: "grid-row-end",
178
- variable: "--grid-row-end"
179
- }
143
+ gridColumn: {
144
+ type: "string",
145
+ className: "grid-column",
146
+ variable: "--grid-column"
147
+ },
148
+ gridColumnStart: {
149
+ type: "string",
150
+ className: "grid-column-start",
151
+ variable: "--grid-column-start"
152
+ },
153
+ gridColumnEnd: {
154
+ type: "string",
155
+ className: "grid-column-end",
156
+ variable: "--grid-column-end"
157
+ },
158
+ gridRow: {
159
+ type: "string",
160
+ className: "grid-row",
161
+ variable: "--grid-row"
162
+ },
163
+ gridRowStart: {
164
+ type: "string",
165
+ className: "grid-row-start",
166
+ variable: "--grid-row-start"
167
+ },
168
+ gridRowEnd: {
169
+ type: "string",
170
+ className: "grid-row-end",
171
+ variable: "--grid-row-end"
172
+ }
180
173
  }, heightProps = {
181
- height: {
182
- type: "string",
183
- className: "height",
184
- variable: "--height"
185
- },
186
- minHeight: {
187
- type: "string",
188
- className: "min-height",
189
- variable: "--min-height"
190
- },
191
- maxHeight: {
192
- type: "string",
193
- className: "max-height",
194
- variable: "--max-height"
195
- }
196
- }, SPACE = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], SPACE_AUTO = [...SPACE, "auto"], SPACE_INHERIT = [...SPACE, "inherit"], SPACE_AUTO_NEGATIVE = [-9, -8, -7, -6, -5, -4, -3, -2, -1, ...SPACE, "auto"], marginProps = {
197
- margin: {
198
- type: "union",
199
- className: "m",
200
- values: SPACE_AUTO_NEGATIVE
201
- },
202
- marginX: {
203
- type: "union",
204
- className: "mx",
205
- values: SPACE_AUTO_NEGATIVE
206
- },
207
- marginY: {
208
- type: "union",
209
- className: "my",
210
- values: SPACE_AUTO_NEGATIVE
211
- },
212
- marginTop: {
213
- type: "union",
214
- className: "mt",
215
- values: SPACE_AUTO_NEGATIVE
216
- },
217
- marginRight: {
218
- type: "union",
219
- className: "mr",
220
- values: SPACE_AUTO_NEGATIVE
221
- },
222
- marginBottom: {
223
- type: "union",
224
- className: "mb",
225
- values: SPACE_AUTO_NEGATIVE
226
- },
227
- marginLeft: {
228
- type: "union",
229
- className: "ml",
230
- values: SPACE_AUTO_NEGATIVE
231
- }
232
- }, OVERFLOW = ["visible", "hidden", "auto", "scroll", "clip"], overflowProps = {
233
- overflow: {
234
- type: "union",
235
- className: "overflow",
236
- values: OVERFLOW
237
- },
238
- overflowX: {
239
- type: "union",
240
- className: "overflow-x",
241
- values: OVERFLOW
242
- },
243
- overflowY: {
244
- type: "union",
245
- className: "overflow-y",
246
- values: OVERFLOW
247
- }
174
+ height: {
175
+ type: "string",
176
+ className: "height",
177
+ variable: "--height"
178
+ },
179
+ minHeight: {
180
+ type: "string",
181
+ className: "min-height",
182
+ variable: "--min-height"
183
+ },
184
+ maxHeight: {
185
+ type: "string",
186
+ className: "max-height",
187
+ variable: "--max-height"
188
+ }
189
+ }, SPACE = [
190
+ 0,
191
+ 1,
192
+ 2,
193
+ 3,
194
+ 4,
195
+ 5,
196
+ 6,
197
+ 7,
198
+ 8,
199
+ 9
200
+ ], SPACE_AUTO = [...SPACE, "auto"], SPACE_INHERIT = [...SPACE, "inherit"], SPACE_AUTO_NEGATIVE = [
201
+ -9,
202
+ -8,
203
+ -7,
204
+ -6,
205
+ -5,
206
+ -4,
207
+ -3,
208
+ -2,
209
+ -1,
210
+ ...SPACE,
211
+ "auto"
212
+ ], marginProps = {
213
+ margin: {
214
+ type: "union",
215
+ className: "m",
216
+ values: SPACE_AUTO_NEGATIVE
217
+ },
218
+ marginX: {
219
+ type: "union",
220
+ className: "mx",
221
+ values: SPACE_AUTO_NEGATIVE
222
+ },
223
+ marginY: {
224
+ type: "union",
225
+ className: "my",
226
+ values: SPACE_AUTO_NEGATIVE
227
+ },
228
+ marginTop: {
229
+ type: "union",
230
+ className: "mt",
231
+ values: SPACE_AUTO_NEGATIVE
232
+ },
233
+ marginRight: {
234
+ type: "union",
235
+ className: "mr",
236
+ values: SPACE_AUTO_NEGATIVE
237
+ },
238
+ marginBottom: {
239
+ type: "union",
240
+ className: "mb",
241
+ values: SPACE_AUTO_NEGATIVE
242
+ },
243
+ marginLeft: {
244
+ type: "union",
245
+ className: "ml",
246
+ values: SPACE_AUTO_NEGATIVE
247
+ }
248
+ }, OVERFLOW = [
249
+ "visible",
250
+ "hidden",
251
+ "auto",
252
+ "scroll",
253
+ "clip"
254
+ ], overflowProps = {
255
+ overflow: {
256
+ type: "union",
257
+ className: "overflow",
258
+ values: OVERFLOW
259
+ },
260
+ overflowX: {
261
+ type: "union",
262
+ className: "overflow-x",
263
+ values: OVERFLOW
264
+ },
265
+ overflowY: {
266
+ type: "union",
267
+ className: "overflow-y",
268
+ values: OVERFLOW
269
+ }
248
270
  }, paddingProps = {
249
- padding: {
250
- type: "union",
251
- className: "p",
252
- values: SPACE
253
- },
254
- paddingX: {
255
- type: "union",
256
- className: "px",
257
- values: SPACE
258
- },
259
- paddingY: {
260
- type: "union",
261
- className: "py",
262
- values: SPACE
263
- },
264
- paddingTop: {
265
- type: "union",
266
- className: "pt",
267
- values: SPACE
268
- },
269
- paddingRight: {
270
- type: "union",
271
- className: "pr",
272
- values: SPACE
273
- },
274
- paddingBottom: {
275
- type: "union",
276
- className: "pb",
277
- values: SPACE
278
- },
279
- paddingLeft: {
280
- type: "union",
281
- className: "pl",
282
- values: SPACE
283
- }
284
- }, POSITION = ["absolute", "fixed", "relative", "static", "sticky"], positionProps = {
285
- position: {
286
- type: "union",
287
- className: "position",
288
- values: POSITION
289
- },
290
- inset: {
291
- type: "union",
292
- className: "inset",
293
- values: SPACE_AUTO
294
- },
295
- top: {
296
- type: "union",
297
- className: "top",
298
- values: SPACE_AUTO
299
- },
300
- right: {
301
- type: "union",
302
- className: "right",
303
- values: SPACE_AUTO
304
- },
305
- bottom: {
306
- type: "union",
307
- className: "bottom",
308
- values: SPACE_AUTO
309
- },
310
- left: {
311
- type: "union",
312
- className: "left",
313
- values: SPACE_AUTO
314
- }
315
- }, SHADOW = [0, 1, 2, 3, 4, 5], shadowProps = {
316
- shadow: {
317
- type: "union",
318
- className: "shadow",
319
- values: SHADOW
320
- }
321
- }, TONE = ["neutral", "positive", "suggest", "caution", "critical"], toneProps = {
322
- tone: {
323
- type: "union",
324
- className: "tone",
325
- values: TONE
326
- }
327
- }, widthProps = {
328
- width: {
329
- type: "string",
330
- className: "width",
331
- variable: "--width"
332
- },
333
- minWidth: {
334
- type: "string",
335
- className: "min-width",
336
- variable: "--min-width"
337
- },
338
- maxWidth: {
339
- type: "string",
340
- className: "max-width",
341
- variable: "--max-width"
342
- }
343
- }, zIndexProps = {
344
- zIndex: {
345
- type: "number",
346
- className: "z-index",
347
- variable: "--z-index"
348
- }
349
- }, layoutProps = {
350
- ...toneProps,
351
- ...widthProps,
352
- ...heightProps,
353
- ...marginProps,
354
- ...borderProps,
355
- ...paddingProps,
356
- ...positionProps,
357
- ...overflowProps,
358
- ...flexChildProps,
359
- ...gridChildProps,
360
- ...shadowProps,
361
- ...zIndexProps
362
- }, DISPLAY_BLOCK = ["block", "inline-block", "none"], DISPLAY_FLEX = ["flex", "inline-flex", "none"], DISPLAY_GRID = ["grid", "inline-grid", "none"], boxProps = {
363
- as: {
364
- type: "string"
365
- },
366
- display: {
367
- type: "union",
368
- className: "display",
369
- values: DISPLAY_BLOCK
370
- },
371
- ...layoutProps
271
+ padding: {
272
+ type: "union",
273
+ className: "p",
274
+ values: SPACE
275
+ },
276
+ paddingX: {
277
+ type: "union",
278
+ className: "px",
279
+ values: SPACE
280
+ },
281
+ paddingY: {
282
+ type: "union",
283
+ className: "py",
284
+ values: SPACE
285
+ },
286
+ paddingTop: {
287
+ type: "union",
288
+ className: "pt",
289
+ values: SPACE
290
+ },
291
+ paddingRight: {
292
+ type: "union",
293
+ className: "pr",
294
+ values: SPACE
295
+ },
296
+ paddingBottom: {
297
+ type: "union",
298
+ className: "pb",
299
+ values: SPACE
300
+ },
301
+ paddingLeft: {
302
+ type: "union",
303
+ className: "pl",
304
+ values: SPACE
305
+ }
306
+ }, positionProps = {
307
+ position: {
308
+ type: "union",
309
+ className: "position",
310
+ values: [
311
+ "absolute",
312
+ "fixed",
313
+ "relative",
314
+ "static",
315
+ "sticky"
316
+ ]
317
+ },
318
+ inset: {
319
+ type: "union",
320
+ className: "inset",
321
+ values: SPACE_AUTO
322
+ },
323
+ top: {
324
+ type: "union",
325
+ className: "top",
326
+ values: SPACE_AUTO
327
+ },
328
+ right: {
329
+ type: "union",
330
+ className: "right",
331
+ values: SPACE_AUTO
332
+ },
333
+ bottom: {
334
+ type: "union",
335
+ className: "bottom",
336
+ values: SPACE_AUTO
337
+ },
338
+ left: {
339
+ type: "union",
340
+ className: "left",
341
+ values: SPACE_AUTO
342
+ }
343
+ }, shadowProps = { shadow: {
344
+ type: "union",
345
+ className: "shadow",
346
+ values: [
347
+ 0,
348
+ 1,
349
+ 2,
350
+ 3,
351
+ 4,
352
+ 5
353
+ ]
354
+ } }, toneProps = { tone: {
355
+ type: "union",
356
+ className: "tone",
357
+ values: [
358
+ "neutral",
359
+ "positive",
360
+ "suggest",
361
+ "caution",
362
+ "critical"
363
+ ]
364
+ } }, widthProps = {
365
+ width: {
366
+ type: "string",
367
+ className: "width",
368
+ variable: "--width"
369
+ },
370
+ minWidth: {
371
+ type: "string",
372
+ className: "min-width",
373
+ variable: "--min-width"
374
+ },
375
+ maxWidth: {
376
+ type: "string",
377
+ className: "max-width",
378
+ variable: "--max-width"
379
+ }
380
+ }, zIndexProps = { zIndex: {
381
+ type: "number",
382
+ className: "z-index",
383
+ variable: "--z-index"
384
+ } }, layoutProps = {
385
+ ...toneProps,
386
+ ...widthProps,
387
+ ...heightProps,
388
+ ...marginProps,
389
+ ...borderProps,
390
+ ...paddingProps,
391
+ ...positionProps,
392
+ ...overflowProps,
393
+ ...flexChildProps,
394
+ ...gridChildProps,
395
+ ...shadowProps,
396
+ ...zIndexProps
397
+ }, DISPLAY_BLOCK = [
398
+ "block",
399
+ "inline-block",
400
+ "none"
401
+ ], DISPLAY_FLEX = [
402
+ "flex",
403
+ "inline-flex",
404
+ "none"
405
+ ], DISPLAY_GRID = [
406
+ "grid",
407
+ "inline-grid",
408
+ "none"
409
+ ], boxProps = {
410
+ as: { type: "string" },
411
+ display: {
412
+ type: "union",
413
+ className: "display",
414
+ values: DISPLAY_BLOCK
415
+ },
416
+ ...layoutProps
372
417
  }, boxClassName = suffixClassName("sui-Box");
418
+ /** @public */
373
419
  function Box(t0) {
374
- const $ = c(12);
375
- let T0, children, rest, style, t1;
376
- if ($[0] !== t0) {
377
- const {
378
- display: t22,
379
- ...props
380
- } = t0, display = t22 === void 0 ? "block" : t22, {
381
- as,
382
- children: t3,
383
- className,
384
- style: t4,
385
- ...t5
386
- } = getProps({
387
- display,
388
- ...props
389
- }, boxProps);
390
- children = t3, style = t4, rest = t5, T0 = as || "div", t1 = clsx(boxClassName, className), $[0] = t0, $[1] = T0, $[2] = children, $[3] = rest, $[4] = style, $[5] = t1;
391
- } else
392
- T0 = $[1], children = $[2], rest = $[3], style = $[4], t1 = $[5];
393
- let t2;
394
- return $[6] !== T0 || $[7] !== children || $[8] !== rest || $[9] !== style || $[10] !== t1 ? (t2 = /* @__PURE__ */ jsx(T0, { className: t1, style, "data-ui": "Box", ...rest, children }), $[6] = T0, $[7] = children, $[8] = rest, $[9] = style, $[10] = t1, $[11] = t2) : t2 = $[11], t2;
420
+ let $ = c(12), T0, children, rest, style, t1;
421
+ if ($[0] !== t0) {
422
+ let { display: t2, ...props } = t0, { as, children: t3, className, style: t4, ...t5 } = getProps({
423
+ display: t2 === void 0 ? "block" : t2,
424
+ ...props
425
+ }, boxProps);
426
+ children = t3, style = t4, rest = t5, T0 = as || "div", t1 = clsx(boxClassName, className), $[0] = t0, $[1] = T0, $[2] = children, $[3] = rest, $[4] = style, $[5] = t1;
427
+ } else T0 = $[1], children = $[2], rest = $[3], style = $[4], t1 = $[5];
428
+ let t2;
429
+ return $[6] !== T0 || $[7] !== children || $[8] !== rest || $[9] !== style || $[10] !== t1 ? (t2 = /* @__PURE__ */ jsx(T0, {
430
+ className: t1,
431
+ style,
432
+ "data-ui": "Box",
433
+ ...rest,
434
+ children
435
+ }), $[6] = T0, $[7] = children, $[8] = rest, $[9] = style, $[10] = t1, $[11] = t2) : t2 = $[11], t2;
395
436
  }
396
- const ALIGN_ITEMS = ["baseline", "center", "flex-end", "flex-start", "stretch"], JUSTIFY_CONTENT = ["flex-start", "flex-end", "center", "space-between", "space-around", "space-evenly"], FLEX_DIRECTION = ["row", "row-reverse", "column", "column-reverse"], FLEX_WRAP = ["wrap", "wrap-reverse", "nowrap"], flexParentProps = {
397
- alignItems: {
398
- type: "union",
399
- className: "align-items",
400
- values: ALIGN_ITEMS
401
- },
402
- justifyContent: {
403
- type: "union",
404
- className: "justify-content",
405
- values: JUSTIFY_CONTENT
406
- },
407
- flexDirection: {
408
- type: "union",
409
- className: "flex-direction",
410
- values: FLEX_DIRECTION
411
- },
412
- flexWrap: {
413
- type: "union",
414
- className: "flex",
415
- values: FLEX_WRAP
416
- }
437
+ const flexParentProps = {
438
+ alignItems: {
439
+ type: "union",
440
+ className: "align-items",
441
+ values: [
442
+ "baseline",
443
+ "center",
444
+ "flex-end",
445
+ "flex-start",
446
+ "stretch"
447
+ ]
448
+ },
449
+ justifyContent: {
450
+ type: "union",
451
+ className: "justify-content",
452
+ values: [
453
+ "flex-start",
454
+ "flex-end",
455
+ "center",
456
+ "space-between",
457
+ "space-around",
458
+ "space-evenly"
459
+ ]
460
+ },
461
+ flexDirection: {
462
+ type: "union",
463
+ className: "flex-direction",
464
+ values: [
465
+ "row",
466
+ "row-reverse",
467
+ "column",
468
+ "column-reverse"
469
+ ]
470
+ },
471
+ flexWrap: {
472
+ type: "union",
473
+ className: "flex",
474
+ values: [
475
+ "wrap",
476
+ "wrap-reverse",
477
+ "nowrap"
478
+ ]
479
+ }
417
480
  }, gapProps = {
418
- gap: {
419
- type: "union",
420
- className: "gap",
421
- values: SPACE_INHERIT
422
- },
423
- rowGap: {
424
- type: "union",
425
- className: "row-gap",
426
- values: SPACE_INHERIT
427
- },
428
- columnGap: {
429
- type: "union",
430
- className: "column-gap",
431
- values: SPACE_INHERIT
432
- }
481
+ gap: {
482
+ type: "union",
483
+ className: "gap",
484
+ values: SPACE_INHERIT
485
+ },
486
+ rowGap: {
487
+ type: "union",
488
+ className: "row-gap",
489
+ values: SPACE_INHERIT
490
+ },
491
+ columnGap: {
492
+ type: "union",
493
+ className: "column-gap",
494
+ values: SPACE_INHERIT
495
+ }
433
496
  }, flexProps = {
434
- as: {
435
- type: "string"
436
- },
437
- display: {
438
- type: "union",
439
- className: "display",
440
- values: DISPLAY_FLEX
441
- },
442
- ...flexParentProps,
443
- ...gapProps,
444
- ...layoutProps
497
+ as: { type: "string" },
498
+ display: {
499
+ type: "union",
500
+ className: "display",
501
+ values: DISPLAY_FLEX
502
+ },
503
+ ...flexParentProps,
504
+ ...gapProps,
505
+ ...layoutProps
445
506
  }, flexClassName = suffixClassName("sui-Flex");
507
+ /** @public */
446
508
  function Flex(t0) {
447
- const $ = c(12);
448
- let T0, children, rest, style, t1;
449
- if ($[0] !== t0) {
450
- const {
451
- display: t22,
452
- ...props
453
- } = t0, display = t22 === void 0 ? "flex" : t22, {
454
- as,
455
- children: t3,
456
- className,
457
- style: t4,
458
- ...t5
459
- } = getProps({
460
- display,
461
- ...props
462
- }, flexProps);
463
- children = t3, style = t4, rest = t5, T0 = as || "div", t1 = clsx(flexClassName, className), $[0] = t0, $[1] = T0, $[2] = children, $[3] = rest, $[4] = style, $[5] = t1;
464
- } else
465
- T0 = $[1], children = $[2], rest = $[3], style = $[4], t1 = $[5];
466
- let t2;
467
- return $[6] !== T0 || $[7] !== children || $[8] !== rest || $[9] !== style || $[10] !== t1 ? (t2 = /* @__PURE__ */ jsx(T0, { className: t1, style, "data-ui": "Flex", ...rest, children }), $[6] = T0, $[7] = children, $[8] = rest, $[9] = style, $[10] = t1, $[11] = t2) : t2 = $[11], t2;
509
+ let $ = c(12), T0, children, rest, style, t1;
510
+ if ($[0] !== t0) {
511
+ let { display: t2, ...props } = t0, { as, children: t3, className, style: t4, ...t5 } = getProps({
512
+ display: t2 === void 0 ? "flex" : t2,
513
+ ...props
514
+ }, flexProps);
515
+ children = t3, style = t4, rest = t5, T0 = as || "div", t1 = clsx(flexClassName, className), $[0] = t0, $[1] = T0, $[2] = children, $[3] = rest, $[4] = style, $[5] = t1;
516
+ } else T0 = $[1], children = $[2], rest = $[3], style = $[4], t1 = $[5];
517
+ let t2;
518
+ return $[6] !== T0 || $[7] !== children || $[8] !== rest || $[9] !== style || $[10] !== t1 ? (t2 = /* @__PURE__ */ jsx(T0, {
519
+ className: t1,
520
+ style,
521
+ "data-ui": "Flex",
522
+ ...rest,
523
+ children
524
+ }), $[6] = T0, $[7] = children, $[8] = rest, $[9] = style, $[10] = t1, $[11] = t2) : t2 = $[11], t2;
468
525
  }
469
- const FONT_WEIGHT = ["regular", "medium", "semibold", "bold"], TEXT_ALIGN = ["left", "center", "right", "justify"], typographyProps = {
470
- align: {
471
- type: "union",
472
- className: "text",
473
- values: TEXT_ALIGN
474
- },
475
- muted: {
476
- type: "boolean",
477
- className: "text-muted",
478
- inverseClassName: "text-default"
479
- },
480
- trim: {
481
- type: "boolean",
482
- className: "text-trim",
483
- inverseClassName: "text-trim-none"
484
- },
485
- truncate: {
486
- type: "conditional",
487
- resolve: (value) => value === 1 ? {
488
- type: "number",
489
- className: "text-overflow"
490
- } : {
491
- type: "number",
492
- className: "line-clamp",
493
- variable: "--line-clamp"
494
- }
495
- },
496
- weight: {
497
- type: "union",
498
- className: "weight",
499
- values: FONT_WEIGHT
500
- },
501
- ...marginProps,
502
- ...toneProps
503
- }, ICON_SIZE = [0, 1, 2, 3, 4], iconProps = {
504
- icon: {
505
- type: "string"
506
- },
507
- size: {
508
- type: "union",
509
- className: "icon-body",
510
- values: ICON_SIZE
511
- },
512
- muted: typographyProps.muted,
513
- ...toneProps,
514
- ...marginProps
526
+ const typographyProps = {
527
+ align: {
528
+ type: "union",
529
+ className: "text",
530
+ values: [
531
+ "left",
532
+ "center",
533
+ "right",
534
+ "justify"
535
+ ]
536
+ },
537
+ muted: {
538
+ type: "boolean",
539
+ className: "text-muted",
540
+ inverseClassName: "text-default"
541
+ },
542
+ trim: {
543
+ type: "boolean",
544
+ className: "text-trim",
545
+ inverseClassName: "text-trim-none"
546
+ },
547
+ truncate: {
548
+ type: "conditional",
549
+ resolve: (value) => value === 1 ? {
550
+ type: "number",
551
+ className: "text-overflow"
552
+ } : {
553
+ type: "number",
554
+ className: "line-clamp",
555
+ variable: "--line-clamp"
556
+ }
557
+ },
558
+ weight: {
559
+ type: "union",
560
+ className: "weight",
561
+ values: [
562
+ "regular",
563
+ "medium",
564
+ "semibold",
565
+ "bold"
566
+ ]
567
+ },
568
+ ...marginProps,
569
+ ...toneProps
570
+ }, ICON_SIZE = [
571
+ 0,
572
+ 1,
573
+ 2,
574
+ 3,
575
+ 4
576
+ ], iconProps = {
577
+ icon: { type: "string" },
578
+ size: {
579
+ type: "union",
580
+ className: "icon-body",
581
+ values: ICON_SIZE
582
+ },
583
+ muted: typographyProps.muted,
584
+ ...toneProps,
585
+ ...marginProps
515
586
  }, iconClassName = suffixClassName("sui-Icon");
587
+ /** @public */
516
588
  function Icon(t0) {
517
- const $ = c(12);
518
- let T0, props, rest, style, t1;
519
- if ($[0] !== t0) {
520
- const {
521
- size: t22,
522
- ...t32
523
- } = t0;
524
- props = t32;
525
- const size = t22 === void 0 ? 2 : t22, {
526
- className,
527
- style: t4,
528
- icon: Component,
529
- ...t5
530
- } = getProps({
531
- size,
532
- ...props
533
- }, iconProps);
534
- style = t4, rest = t5, T0 = Component, t1 = clsx(iconClassName, className), $[0] = t0, $[1] = T0, $[2] = props, $[3] = rest, $[4] = style, $[5] = t1;
535
- } else
536
- T0 = $[1], props = $[2], rest = $[3], style = $[4], t1 = $[5];
537
- const t2 = props["aria-label"] ? void 0 : !0;
538
- let t3;
539
- return $[6] !== T0 || $[7] !== rest || $[8] !== style || $[9] !== t1 || $[10] !== t2 ? (t3 = /* @__PURE__ */ jsx(T0, { className: t1, "data-ui": "Icon", style, "aria-hidden": t2, ...rest }), $[6] = T0, $[7] = rest, $[8] = style, $[9] = t1, $[10] = t2, $[11] = t3) : t3 = $[11], t3;
589
+ let $ = c(12), T0, props, rest, style, t1;
590
+ if ($[0] !== t0) {
591
+ let { size: t2, ...t3 } = t0;
592
+ props = t3;
593
+ let { className, style: t4, icon: Component, ...t5 } = getProps({
594
+ size: t2 === void 0 ? 2 : t2,
595
+ ...props
596
+ }, iconProps);
597
+ style = t4, rest = t5, T0 = Component, t1 = clsx(iconClassName, className), $[0] = t0, $[1] = T0, $[2] = props, $[3] = rest, $[4] = style, $[5] = t1;
598
+ } else T0 = $[1], props = $[2], rest = $[3], style = $[4], t1 = $[5];
599
+ let t2 = !props["aria-label"] || void 0, t3;
600
+ return $[6] !== T0 || $[7] !== rest || $[8] !== style || $[9] !== t1 || $[10] !== t2 ? (t3 = /* @__PURE__ */ jsx(T0, {
601
+ className: t1,
602
+ "data-ui": "Icon",
603
+ style,
604
+ "aria-hidden": t2,
605
+ ...rest
606
+ }), $[6] = T0, $[7] = rest, $[8] = style, $[9] = t1, $[10] = t2, $[11] = t3) : t3 = $[11], t3;
540
607
  }
541
- const spinnerProps = {
542
- size: {
543
- type: "union",
544
- className: "icon-body",
545
- values: ICON_SIZE
546
- }
547
- }, spinnerClassName = suffixClassName("sui-Spinner");
608
+ const spinnerProps = { size: {
609
+ type: "union",
610
+ className: "icon-body",
611
+ values: ICON_SIZE
612
+ } }, spinnerClassName = suffixClassName("sui-Spinner");
613
+ /** @public */
548
614
  function Spinner(t0) {
549
- const $ = c(12);
550
- let T0, rest, style, t1, t2;
551
- if ($[0] !== t0) {
552
- const {
553
- size: t32,
554
- ...props
555
- } = t0, size = t32 === void 0 ? 2 : t32, {
556
- className,
557
- style: t4,
558
- ...t5
559
- } = getProps({
560
- size,
561
- ...props
562
- }, spinnerProps);
563
- style = t4, rest = t5, T0 = Icon, t1 = SpinnerIcon, t2 = clsx(spinnerClassName, className), $[0] = t0, $[1] = T0, $[2] = rest, $[3] = style, $[4] = t1, $[5] = t2;
564
- } else
565
- T0 = $[1], rest = $[2], style = $[3], t1 = $[4], t2 = $[5];
566
- let t3;
567
- return $[6] !== T0 || $[7] !== rest || $[8] !== style || $[9] !== t1 || $[10] !== t2 ? (t3 = /* @__PURE__ */ jsx(T0, { icon: t1, className: t2, style, "data-ui": "Spinner", role: "status", "aria-label": "Loading...", ...rest }), $[6] = T0, $[7] = rest, $[8] = style, $[9] = t1, $[10] = t2, $[11] = t3) : t3 = $[11], t3;
615
+ let $ = c(12), T0, rest, style, t1, t2;
616
+ if ($[0] !== t0) {
617
+ let { size: t3, ...props } = t0, { className, style: t4, ...t5 } = getProps({
618
+ size: t3 === void 0 ? 2 : t3,
619
+ ...props
620
+ }, spinnerProps);
621
+ style = t4, rest = t5, T0 = Icon, t1 = SpinnerIcon, t2 = clsx(spinnerClassName, className), $[0] = t0, $[1] = T0, $[2] = rest, $[3] = style, $[4] = t1, $[5] = t2;
622
+ } else T0 = $[1], rest = $[2], style = $[3], t1 = $[4], t2 = $[5];
623
+ let t3;
624
+ return $[6] !== T0 || $[7] !== rest || $[8] !== style || $[9] !== t1 || $[10] !== t2 ? (t3 = /* @__PURE__ */ jsx(T0, {
625
+ icon: t1,
626
+ className: t2,
627
+ style,
628
+ "data-ui": "Spinner",
629
+ role: "status",
630
+ "aria-label": "Loading...",
631
+ ...rest
632
+ }), $[6] = T0, $[7] = rest, $[8] = style, $[9] = t1, $[10] = t2, $[11] = t3) : t3 = $[11], t3;
568
633
  }
569
- const TEXT_SIZE = [0, 1, 2, 3, 4], textProps = {
570
- as: {
571
- type: "string"
572
- },
573
- size: {
574
- type: "union",
575
- className: "text-body",
576
- values: TEXT_SIZE
577
- },
578
- ...typographyProps
634
+ const textProps = {
635
+ as: { type: "string" },
636
+ size: {
637
+ type: "union",
638
+ className: "text-body",
639
+ values: [
640
+ 0,
641
+ 1,
642
+ 2,
643
+ 3,
644
+ 4
645
+ ]
646
+ },
647
+ ...typographyProps
579
648
  }, textClassName = suffixClassName("sui-Text");
649
+ /** @public */
580
650
  function Text(t0) {
581
- const $ = c(15);
582
- let T0, children, rest, style, t1, t2;
583
- if ($[0] !== t0) {
584
- t2 = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
585
- bb0: {
586
- const {
587
- size: t32,
588
- ...props
589
- } = t0, size = t32 === void 0 ? 2 : t32, {
590
- as,
591
- children: t4,
592
- className,
593
- style: t5,
594
- ...t6
595
- } = getProps({
596
- size,
597
- ...props
598
- }, textProps);
599
- children = t4, style = t5, rest = t6;
600
- const Component = as || "span";
601
- if (props.truncate && props.trim) {
602
- const t7 = clsx(textClassName, className?.replace("sui-line-clamp", "").replace("sui-text-overflow", "")), t8 = props.truncate === 1 ? "sui-text-overflow" : "sui-line-clamp";
603
- let t9;
604
- $[7] !== t8 ? (t9 = clsx("sui-overflow-hidden", t8), $[7] = t8, $[8] = t9) : t9 = $[8], t2 = /* @__PURE__ */ jsx(Component, { className: t7, style, "data-ui": "Text", ...rest, children: /* @__PURE__ */ jsx("span", { className: t9, children }) });
605
- break bb0;
606
- }
607
- T0 = Component, t1 = clsx(textClassName, "sui-overflow-hidden", className);
608
- }
609
- $[0] = t0, $[1] = T0, $[2] = children, $[3] = rest, $[4] = style, $[5] = t1, $[6] = t2;
610
- } else
611
- T0 = $[1], children = $[2], rest = $[3], style = $[4], t1 = $[5], t2 = $[6];
612
- if (t2 !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel"))
613
- return t2;
614
- let t3;
615
- return $[9] !== T0 || $[10] !== children || $[11] !== rest || $[12] !== style || $[13] !== t1 ? (t3 = /* @__PURE__ */ jsx(T0, { className: t1, style, "data-ui": "Text", ...rest, children }), $[9] = T0, $[10] = children, $[11] = rest, $[12] = style, $[13] = t1, $[14] = t3) : t3 = $[14], t3;
651
+ let $ = c(15), T0, children, rest, style, t1, t2;
652
+ if ($[0] !== t0) {
653
+ t2 = Symbol.for("react.early_return_sentinel");
654
+ bb0: {
655
+ let { size: t3, ...props } = t0, { as, children: t4, className, style: t5, ...t6 } = getProps({
656
+ size: t3 === void 0 ? 2 : t3,
657
+ ...props
658
+ }, textProps);
659
+ children = t4, style = t5, rest = t6;
660
+ let Component = as || "span";
661
+ if (props.truncate && props.trim) {
662
+ let t7 = clsx(textClassName, className?.replace("sui-line-clamp", "").replace("sui-text-overflow", "")), t8 = props.truncate === 1 ? "sui-text-overflow" : "sui-line-clamp", t9;
663
+ $[7] === t8 ? t9 = $[8] : (t9 = clsx("sui-overflow-hidden", t8), $[7] = t8, $[8] = t9), t2 = /* @__PURE__ */ jsx(Component, {
664
+ className: t7,
665
+ style,
666
+ "data-ui": "Text",
667
+ ...rest,
668
+ children: /* @__PURE__ */ jsx("span", {
669
+ className: t9,
670
+ children
671
+ })
672
+ });
673
+ break bb0;
674
+ }
675
+ T0 = Component, t1 = clsx(textClassName, props.truncate && "sui-overflow-hidden", className);
676
+ }
677
+ $[0] = t0, $[1] = T0, $[2] = children, $[3] = rest, $[4] = style, $[5] = t1, $[6] = t2;
678
+ } else T0 = $[1], children = $[2], rest = $[3], style = $[4], t1 = $[5], t2 = $[6];
679
+ if (t2 !== Symbol.for("react.early_return_sentinel")) return t2;
680
+ let t3;
681
+ return $[9] !== T0 || $[10] !== children || $[11] !== rest || $[12] !== style || $[13] !== t1 ? (t3 = /* @__PURE__ */ jsx(T0, {
682
+ className: t1,
683
+ style,
684
+ "data-ui": "Text",
685
+ ...rest,
686
+ children
687
+ }), $[9] = T0, $[10] = children, $[11] = rest, $[12] = style, $[13] = t1, $[14] = t3) : t3 = $[14], t3;
616
688
  }
617
- const BUTTON_DENSITY = ["regular", "loose"], BUTTON_LEVEL = ["primary", "secondary", "tertiary"], BUTTON_TONE = ["neutral", "critical"], buttonProps = {
618
- as: {
619
- type: "string"
620
- },
621
- density: {
622
- type: "composite",
623
- values: BUTTON_DENSITY,
624
- composition: {
625
- gap: {
626
- propDef: gapProps.gap,
627
- mapping: {
628
- regular: 2,
629
- loose: 3
630
- }
631
- },
632
- padding: {
633
- propDef: paddingProps.padding,
634
- mapping: {
635
- regular: 2,
636
- loose: 3
637
- }
638
- },
639
- minHeight: {
640
- propDef: heightProps.minHeight,
641
- mapping: {
642
- regular: "25px",
643
- loose: "33px"
644
- }
645
- },
646
- minWidth: {
647
- propDef: widthProps.minWidth,
648
- mapping: {
649
- regular: "25px",
650
- loose: "33px"
651
- }
652
- }
653
- }
654
- },
655
- fullWidth: {
656
- type: "boolean",
657
- className: "width-full",
658
- inverseClassName: "width-auto"
659
- },
660
- iconStart: {
661
- type: "string"
662
- },
663
- iconEnd: {
664
- type: "string"
665
- },
666
- level: {
667
- type: "union",
668
- className: "button-level",
669
- values: BUTTON_LEVEL
670
- },
671
- loading: {
672
- type: "boolean"
673
- },
674
- text: {
675
- type: "string"
676
- },
677
- tone: {
678
- type: "union",
679
- className: "tone",
680
- values: BUTTON_TONE
681
- }
689
+ const buttonProps = {
690
+ as: { type: "string" },
691
+ density: {
692
+ type: "composite",
693
+ values: ["regular", "loose"],
694
+ composition: {
695
+ gap: {
696
+ propDef: gapProps.gap,
697
+ mapping: {
698
+ regular: 2,
699
+ loose: 3
700
+ }
701
+ },
702
+ padding: {
703
+ propDef: paddingProps.padding,
704
+ mapping: {
705
+ regular: 2,
706
+ loose: 3
707
+ }
708
+ },
709
+ minHeight: {
710
+ propDef: heightProps.minHeight,
711
+ mapping: {
712
+ regular: "25px",
713
+ loose: "33px"
714
+ }
715
+ },
716
+ minWidth: {
717
+ propDef: widthProps.minWidth,
718
+ mapping: {
719
+ regular: "25px",
720
+ loose: "33px"
721
+ }
722
+ }
723
+ }
724
+ },
725
+ fullWidth: {
726
+ type: "boolean",
727
+ className: "width-full",
728
+ inverseClassName: "width-auto"
729
+ },
730
+ iconStart: { type: "string" },
731
+ iconEnd: { type: "string" },
732
+ level: {
733
+ type: "union",
734
+ className: "button-level",
735
+ values: [
736
+ "primary",
737
+ "secondary",
738
+ "tertiary"
739
+ ]
740
+ },
741
+ loading: { type: "boolean" },
742
+ text: { type: "string" },
743
+ tone: {
744
+ type: "union",
745
+ className: "tone",
746
+ values: ["neutral", "critical"]
747
+ }
682
748
  }, buttonClassName = suffixClassName("sui-Button");
749
+ /** @public */
683
750
  function Button(t0) {
684
- const $ = c(26);
685
- let T0, t1, t10, t11, t2, t3, t4, t5, t6, t7, t8, t9;
686
- if ($[0] !== t0) {
687
- const {
688
- density: t122,
689
- level: t13,
690
- tone: t14,
691
- ...props
692
- } = t0, density = t122 === void 0 ? "regular" : t122, level = t13 === void 0 ? "primary" : t13, tone = t14 === void 0 ? "neutral" : t14, {
693
- as,
694
- children,
695
- className,
696
- disabled,
697
- style,
698
- iconStart: IconStart,
699
- iconEnd: IconEnd,
700
- loading,
701
- text,
702
- ...rest
703
- } = getProps({
704
- density,
705
- level,
706
- tone,
707
- ...props
708
- }, buttonProps);
709
- T0 = as || "button", t1 = clsx(buttonClassName, "sui-display-inline-flex sui-align-items-center sui-justify-content-center sui-radius2 sui-position-relative sui-overflow-hidden", className), t2 = style, t3 = "Button", t4 = disabled || loading, t5 = loading ? !0 : void 0, t6 = rest, t7 = loading && /* @__PURE__ */ jsx(Flex, { position: "absolute", inset: 0, alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ jsx(Spinner, {}) }), t8 = IconStart && (isValidElement(IconStart) ? IconStart : /* @__PURE__ */ jsx(Icon, { icon: IconStart, marginX: -1, marginY: -2, size: 1 })), t9 = text && /* @__PURE__ */ jsx(Text, { size: 1, weight: "medium", trim: !0, children: text }), t10 = children, t11 = IconEnd && (isValidElement(IconEnd) ? IconEnd : /* @__PURE__ */ jsx(Icon, { icon: IconEnd, marginX: -1, marginY: -2, size: 1 })), $[0] = t0, $[1] = T0, $[2] = t1, $[3] = t10, $[4] = t11, $[5] = t2, $[6] = t3, $[7] = t4, $[8] = t5, $[9] = t6, $[10] = t7, $[11] = t8, $[12] = t9;
710
- } else
711
- T0 = $[1], t1 = $[2], t10 = $[3], t11 = $[4], t2 = $[5], t3 = $[6], t4 = $[7], t5 = $[8], t6 = $[9], t7 = $[10], t8 = $[11], t9 = $[12];
712
- let t12;
713
- return $[13] !== T0 || $[14] !== t1 || $[15] !== t10 || $[16] !== t11 || $[17] !== t2 || $[18] !== t3 || $[19] !== t4 || $[20] !== t5 || $[21] !== t6 || $[22] !== t7 || $[23] !== t8 || $[24] !== t9 ? (t12 = /* @__PURE__ */ jsxs(T0, { className: t1, style: t2, "data-ui": t3, disabled: t4, "aria-busy": t5, ...t6, children: [
714
- t7,
715
- t8,
716
- t9,
717
- t10,
718
- t11
719
- ] }), $[13] = T0, $[14] = t1, $[15] = t10, $[16] = t11, $[17] = t2, $[18] = t3, $[19] = t4, $[20] = t5, $[21] = t6, $[22] = t7, $[23] = t8, $[24] = t9, $[25] = t12) : t12 = $[25], t12;
751
+ let $ = c(26), T0, t1, t10, t11, t2, t3, t4, t5, t6, t7, t8, t9;
752
+ if ($[0] !== t0) {
753
+ let { density: t12, level: t13, tone: t14, ...props } = t0, { as, children, className, disabled, style, iconStart: IconStart, iconEnd: IconEnd, loading, text, ...rest } = getProps({
754
+ density: t12 === void 0 ? "regular" : t12,
755
+ level: t13 === void 0 ? "primary" : t13,
756
+ tone: t14 === void 0 ? "neutral" : t14,
757
+ ...props
758
+ }, buttonProps);
759
+ T0 = as || "button", t1 = clsx(buttonClassName, "sui-display-inline-flex sui-align-items-center sui-justify-content-center sui-radius2 sui-position-relative sui-overflow-hidden", className), t2 = style, t3 = "Button", t4 = disabled || loading, t5 = loading ? !0 : void 0, t6 = rest, t7 = loading && /* @__PURE__ */ jsx(Flex, {
760
+ position: "absolute",
761
+ inset: 0,
762
+ alignItems: "center",
763
+ justifyContent: "center",
764
+ children: /* @__PURE__ */ jsx(Spinner, {})
765
+ }), t8 = IconStart && (isValidElement(IconStart) ? IconStart : /* @__PURE__ */ jsx(Icon, {
766
+ icon: IconStart,
767
+ marginX: -1,
768
+ marginY: -2,
769
+ size: 1
770
+ })), t9 = text && /* @__PURE__ */ jsx(Text, {
771
+ size: 1,
772
+ weight: "medium",
773
+ trim: !0,
774
+ children: text
775
+ }), t10 = children, t11 = IconEnd && (isValidElement(IconEnd) ? IconEnd : /* @__PURE__ */ jsx(Icon, {
776
+ icon: IconEnd,
777
+ marginX: -1,
778
+ marginY: -2,
779
+ size: 1
780
+ })), $[0] = t0, $[1] = T0, $[2] = t1, $[3] = t10, $[4] = t11, $[5] = t2, $[6] = t3, $[7] = t4, $[8] = t5, $[9] = t6, $[10] = t7, $[11] = t8, $[12] = t9;
781
+ } else T0 = $[1], t1 = $[2], t10 = $[3], t11 = $[4], t2 = $[5], t3 = $[6], t4 = $[7], t5 = $[8], t6 = $[9], t7 = $[10], t8 = $[11], t9 = $[12];
782
+ let t12;
783
+ return $[13] !== T0 || $[14] !== t1 || $[15] !== t10 || $[16] !== t11 || $[17] !== t2 || $[18] !== t3 || $[19] !== t4 || $[20] !== t5 || $[21] !== t6 || $[22] !== t7 || $[23] !== t8 || $[24] !== t9 ? (t12 = /* @__PURE__ */ jsxs(T0, {
784
+ className: t1,
785
+ style: t2,
786
+ "data-ui": t3,
787
+ disabled: t4,
788
+ "aria-busy": t5,
789
+ ...t6,
790
+ children: [
791
+ t7,
792
+ t8,
793
+ t9,
794
+ t10,
795
+ t11
796
+ ]
797
+ }), $[13] = T0, $[14] = t1, $[15] = t10, $[16] = t11, $[17] = t2, $[18] = t3, $[19] = t4, $[20] = t5, $[21] = t6, $[22] = t7, $[23] = t8, $[24] = t9, $[25] = t12) : t12 = $[25], t12;
720
798
  }
721
- const DENSITY = ["compact", "regular", "loose"], cardProps = {
722
- as: {
723
- type: "string"
724
- },
725
- density: {
726
- type: "composite",
727
- values: DENSITY,
728
- composition: {
729
- gap: {
730
- propDef: gapProps.gap,
731
- mapping: {
732
- compact: 2,
733
- regular: 3,
734
- loose: 4
735
- }
736
- },
737
- padding: {
738
- propDef: paddingProps.padding,
739
- mapping: {
740
- compact: 3,
741
- regular: 4,
742
- loose: 5
743
- }
744
- },
745
- radius: {
746
- propDef: borderProps.radius,
747
- mapping: {
748
- compact: 2,
749
- regular: 3,
750
- loose: 4
751
- }
752
- }
753
- }
754
- },
755
- ...toneProps,
756
- ...marginProps
799
+ const DENSITY = [
800
+ "compact",
801
+ "regular",
802
+ "loose"
803
+ ], cardProps = {
804
+ as: { type: "string" },
805
+ density: {
806
+ type: "composite",
807
+ values: DENSITY,
808
+ composition: {
809
+ gap: {
810
+ propDef: gapProps.gap,
811
+ mapping: {
812
+ compact: 2,
813
+ regular: 3,
814
+ loose: 4
815
+ }
816
+ },
817
+ padding: {
818
+ propDef: paddingProps.padding,
819
+ mapping: {
820
+ compact: 3,
821
+ regular: 4,
822
+ loose: 5
823
+ }
824
+ },
825
+ radius: {
826
+ propDef: borderProps.radius,
827
+ mapping: {
828
+ compact: 2,
829
+ regular: 3,
830
+ loose: 4
831
+ }
832
+ }
833
+ }
834
+ },
835
+ ...toneProps,
836
+ ...marginProps
757
837
  }, cardClassName = suffixClassName("sui-Card");
838
+ /** @public */
758
839
  function Card(t0) {
759
- const $ = c(12);
760
- let T0, children, rest, style, t1;
761
- if ($[0] !== t0) {
762
- const {
763
- density: t22,
764
- tone: t3,
765
- ...props
766
- } = t0, density = t22 === void 0 ? "regular" : t22, tone = t3 === void 0 ? "neutral" : t3, {
767
- as,
768
- children: t4,
769
- className,
770
- style: t5,
771
- ...t6
772
- } = getProps({
773
- density,
774
- tone,
775
- ...props
776
- }, cardProps);
777
- children = t4, style = t5, rest = t6, T0 = as || "div", t1 = clsx(cardClassName, "sui-border", className), $[0] = t0, $[1] = T0, $[2] = children, $[3] = rest, $[4] = style, $[5] = t1;
778
- } else
779
- T0 = $[1], children = $[2], rest = $[3], style = $[4], t1 = $[5];
780
- let t2;
781
- return $[6] !== T0 || $[7] !== children || $[8] !== rest || $[9] !== style || $[10] !== t1 ? (t2 = /* @__PURE__ */ jsx(T0, { className: t1, style, "data-ui": "Card", ...rest, children }), $[6] = T0, $[7] = children, $[8] = rest, $[9] = style, $[10] = t1, $[11] = t2) : t2 = $[11], t2;
840
+ let $ = c(12), T0, children, rest, style, t1;
841
+ if ($[0] !== t0) {
842
+ let { density: t2, tone: t3, ...props } = t0, { as, children: t4, className, style: t5, ...t6 } = getProps({
843
+ density: t2 === void 0 ? "regular" : t2,
844
+ tone: t3 === void 0 ? "neutral" : t3,
845
+ ...props
846
+ }, cardProps);
847
+ children = t4, style = t5, rest = t6, T0 = as || "div", t1 = clsx(cardClassName, "sui-border", className), $[0] = t0, $[1] = T0, $[2] = children, $[3] = rest, $[4] = style, $[5] = t1;
848
+ } else T0 = $[1], children = $[2], rest = $[3], style = $[4], t1 = $[5];
849
+ let t2;
850
+ return $[6] !== T0 || $[7] !== children || $[8] !== rest || $[9] !== style || $[10] !== t1 ? (t2 = /* @__PURE__ */ jsx(T0, {
851
+ className: t1,
852
+ style,
853
+ "data-ui": "Card",
854
+ ...rest,
855
+ children
856
+ }), $[6] = T0, $[7] = children, $[8] = rest, $[9] = style, $[10] = t1, $[11] = t2) : t2 = $[11], t2;
782
857
  }
783
858
  const labelProps = {
784
- disabled: {
785
- type: "boolean"
786
- },
787
- error: {
788
- type: "boolean"
789
- },
790
- ...marginProps
859
+ disabled: { type: "boolean" },
860
+ error: { type: "boolean" },
861
+ ...marginProps
791
862
  }, labelClassName = suffixClassName("sui-Label");
863
+ /** @beta */
792
864
  function Label(props) {
793
- const $ = c(18);
794
- let T0, children, rest, style, t0, t1, t2, t3;
795
- if ($[0] !== props) {
796
- const {
797
- children: t42,
798
- className,
799
- style: t5,
800
- disabled,
801
- error,
802
- ...t6
803
- } = getProps(props, labelProps);
804
- children = t42, style = t5, rest = t6, T0 = Text, t0 = "label", t1 = 1, t2 = disabled, t3 = clsx(labelClassName, "sui-display-flex sui-align-items-center sui-gap2", error && "sui-error", className), $[0] = props, $[1] = T0, $[2] = children, $[3] = rest, $[4] = style, $[5] = t0, $[6] = t1, $[7] = t2, $[8] = t3;
805
- } else
806
- T0 = $[1], children = $[2], rest = $[3], style = $[4], t0 = $[5], t1 = $[6], t2 = $[7], t3 = $[8];
807
- let t4;
808
- return $[9] !== T0 || $[10] !== children || $[11] !== rest || $[12] !== style || $[13] !== t0 || $[14] !== t1 || $[15] !== t2 || $[16] !== t3 ? (t4 = /* @__PURE__ */ jsx(T0, { as: t0, size: t1, muted: t2, className: t3, style, "data-ui": "Label", ...rest, children }), $[9] = T0, $[10] = children, $[11] = rest, $[12] = style, $[13] = t0, $[14] = t1, $[15] = t2, $[16] = t3, $[17] = t4) : t4 = $[17], t4;
865
+ let $ = c(18), T0, children, rest, style, t0, t1, t2, t3;
866
+ if ($[0] !== props) {
867
+ let { children: t4, className, style: t5, disabled, error, ...t6 } = getProps(props, labelProps);
868
+ children = t4, style = t5, rest = t6, T0 = Text, t0 = "label", t1 = 1, t2 = disabled, t3 = clsx(labelClassName, "sui-display-flex sui-align-items-center sui-gap2", error && "sui-error", className), $[0] = props, $[1] = T0, $[2] = children, $[3] = rest, $[4] = style, $[5] = t0, $[6] = t1, $[7] = t2, $[8] = t3;
869
+ } else T0 = $[1], children = $[2], rest = $[3], style = $[4], t0 = $[5], t1 = $[6], t2 = $[7], t3 = $[8];
870
+ let t4;
871
+ return $[9] !== T0 || $[10] !== children || $[11] !== rest || $[12] !== style || $[13] !== t0 || $[14] !== t1 || $[15] !== t2 || $[16] !== t3 ? (t4 = /* @__PURE__ */ jsx(T0, {
872
+ as: t0,
873
+ size: t1,
874
+ muted: t2,
875
+ className: t3,
876
+ style,
877
+ "data-ui": "Label",
878
+ ...rest,
879
+ children
880
+ }), $[9] = T0, $[10] = children, $[11] = rest, $[12] = style, $[13] = t0, $[14] = t1, $[15] = t2, $[16] = t3, $[17] = t4) : t4 = $[17], t4;
809
881
  }
810
882
  const visuallyHiddenProps = {
811
- as: {
812
- type: "string"
813
- },
814
- visibleOnFocus: {
815
- type: "boolean",
816
- className: "sui-visually-hidden-visible"
817
- }
883
+ as: { type: "string" },
884
+ visibleOnFocus: {
885
+ type: "boolean",
886
+ className: "sui-visually-hidden-visible"
887
+ }
818
888
  }, visuallyHiddenClassName = suffixClassName("sui-VisuallyHidden");
889
+ /** @public */
819
890
  function VisuallyHidden(props) {
820
- const $ = c(12);
821
- let T0, children, rest, style, t0;
822
- if ($[0] !== props) {
823
- const {
824
- as,
825
- children: t12,
826
- className,
827
- style: t2,
828
- ...t3
829
- } = getProps(props, visuallyHiddenProps);
830
- children = t12, style = t2, rest = t3, T0 = as || "span", t0 = clsx(visuallyHiddenClassName, className), $[0] = props, $[1] = T0, $[2] = children, $[3] = rest, $[4] = style, $[5] = t0;
831
- } else
832
- T0 = $[1], children = $[2], rest = $[3], style = $[4], t0 = $[5];
833
- let t1;
834
- return $[6] !== T0 || $[7] !== children || $[8] !== rest || $[9] !== style || $[10] !== t0 ? (t1 = /* @__PURE__ */ jsx(T0, { className: t0, style, "data-ui": "VisuallyHidden", ...rest, children }), $[6] = T0, $[7] = children, $[8] = rest, $[9] = style, $[10] = t0, $[11] = t1) : t1 = $[11], t1;
891
+ let $ = c(12), T0, children, rest, style, t0;
892
+ if ($[0] !== props) {
893
+ let { as, children: t1, className, style: t2, ...t3 } = getProps(props, visuallyHiddenProps);
894
+ children = t1, style = t2, rest = t3, T0 = as || "span", t0 = clsx(visuallyHiddenClassName, className), $[0] = props, $[1] = T0, $[2] = children, $[3] = rest, $[4] = style, $[5] = t0;
895
+ } else T0 = $[1], children = $[2], rest = $[3], style = $[4], t0 = $[5];
896
+ let t1;
897
+ return $[6] !== T0 || $[7] !== children || $[8] !== rest || $[9] !== style || $[10] !== t0 ? (t1 = /* @__PURE__ */ jsx(T0, {
898
+ className: t0,
899
+ style,
900
+ "data-ui": "VisuallyHidden",
901
+ ...rest,
902
+ children
903
+ }), $[6] = T0, $[7] = children, $[8] = rest, $[9] = style, $[10] = t0, $[11] = t1) : t1 = $[11], t1;
835
904
  }
836
905
  const checkboxProps = {
837
- error: {
838
- type: "boolean"
839
- },
840
- indeterminate: {
841
- type: "boolean"
842
- },
843
- label: {
844
- type: "string"
845
- },
846
- ...marginProps
906
+ error: { type: "boolean" },
907
+ indeterminate: { type: "boolean" },
908
+ label: { type: "string" },
909
+ ...marginProps
847
910
  }, checkboxClassName = suffixClassName("sui-Checkbox"), checkboxInputClassName = suffixClassName("sui-CheckboxInput"), checkboxMarkClassName = suffixClassName("sui-CheckboxMark");
911
+ /** @beta */
848
912
  function Checkbox(props) {
849
- const $ = c(6), inputRef = useRef(null), {
850
- className,
851
- style,
852
- disabled,
853
- error,
854
- indeterminate,
855
- label,
856
- ...rest
857
- } = getProps(props, checkboxProps);
858
- useEffect(() => {
859
- inputRef.current && (inputRef.current.indeterminate = indeterminate);
860
- }, [indeterminate]);
861
- const t0 = clsx(checkboxClassName, className), T0 = Box, t1 = "span", t2 = clsx(checkboxMarkClassName, error && "sui-error");
862
- let t3;
863
- $[0] !== indeterminate ? (t3 = indeterminate ? /* @__PURE__ */ jsx(RemoveIcon, {}) : /* @__PURE__ */ jsx(CheckmarkIcon, {}), $[0] = indeterminate, $[1] = t3) : t3 = $[1];
864
- let t4;
865
- return $[2] !== T0 || $[3] !== t2 || $[4] !== t3 ? (t4 = /* @__PURE__ */ jsx(T0, { as: t1, className: t2, position: "relative", radius: 2, width: "17px", height: "17px", children: t3 }), $[2] = T0, $[3] = t2, $[4] = t3, $[5] = t4) : t4 = $[5], /* @__PURE__ */ jsxs(Label, { className: t0, style, "data-ui": "Checkbox", disabled, error, children: [
866
- /* @__PURE__ */ jsx(VisuallyHidden, { as: "input", type: "checkbox", className: checkboxInputClassName, ref: inputRef, disabled, ...rest }),
867
- t4,
868
- label
869
- ] });
913
+ let $ = c(6), inputRef = useRef(null), { className, style, disabled, error, indeterminate, label, ...rest } = getProps(props, checkboxProps);
914
+ useEffect(() => {
915
+ inputRef.current && (inputRef.current.indeterminate = indeterminate);
916
+ }, [indeterminate, inputRef]);
917
+ let t0 = clsx(checkboxClassName, "sui-position-relative", className), T0 = Box, t2 = clsx(checkboxMarkClassName, error && "sui-error"), t3;
918
+ $[0] === indeterminate ? t3 = $[1] : (t3 = jsx(indeterminate ? RemoveIcon : CheckmarkIcon, {}), $[0] = indeterminate, $[1] = t3);
919
+ let t4;
920
+ return $[2] !== T0 || $[3] !== t2 || $[4] !== t3 ? (t4 = /* @__PURE__ */ jsx(T0, {
921
+ as: "span",
922
+ className: t2,
923
+ position: "relative",
924
+ radius: 2,
925
+ width: "17px",
926
+ height: "17px",
927
+ children: t3
928
+ }), $[2] = T0, $[3] = t2, $[4] = t3, $[5] = t4) : t4 = $[5], /* @__PURE__ */ jsxs(Label, {
929
+ className: t0,
930
+ style,
931
+ "data-ui": "Checkbox",
932
+ disabled,
933
+ error,
934
+ children: [
935
+ /* @__PURE__ */ jsx(VisuallyHidden, {
936
+ as: "input",
937
+ type: "checkbox",
938
+ className: checkboxInputClassName,
939
+ ref: inputRef,
940
+ disabled,
941
+ ...rest
942
+ }),
943
+ t4,
944
+ label
945
+ ]
946
+ });
870
947
  }
871
- const CODE_TAG = ["pre", "span"], CODE_SIZE = [0, 1, 2, 3, 4], codeProps = {
872
- as: {
873
- type: "union",
874
- values: CODE_TAG
875
- },
876
- language: {
877
- type: "string"
878
- },
879
- size: {
880
- type: "union",
881
- className: "text-code",
882
- values: CODE_SIZE
883
- },
884
- muted: typographyProps.muted,
885
- trim: typographyProps.trim,
886
- weight: typographyProps.weight,
887
- ...marginProps
888
- }, LazyRefractor = lazy(() => import("./_chunks-es/LazyRefractor.js")), codeClassName = suffixClassName("sui-Code");
948
+ const codeProps = {
949
+ as: {
950
+ type: "union",
951
+ values: ["pre", "span"]
952
+ },
953
+ language: { type: "string" },
954
+ size: {
955
+ type: "union",
956
+ className: "text-code",
957
+ values: [
958
+ 0,
959
+ 1,
960
+ 2,
961
+ 3,
962
+ 4
963
+ ]
964
+ },
965
+ muted: typographyProps.muted,
966
+ trim: typographyProps.trim,
967
+ weight: typographyProps.weight,
968
+ ...marginProps
969
+ }, LazyRefractor = lazy(() => import("./LazyRefractor-CQ22IeXB.js")), codeClassName = suffixClassName("sui-Code");
970
+ /** @public */
889
971
  function Code(t0) {
890
- const $ = c(22);
891
- let T0, children, language, rest, style, t1, t2;
892
- if ($[0] !== t0) {
893
- t2 = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
894
- bb0: {
895
- const {
896
- size: t32,
897
- ...props
898
- } = t0, size = t32 === void 0 ? 2 : t32, {
899
- as,
900
- children: t42,
901
- className,
902
- language: t52,
903
- style: t62,
904
- ...t7
905
- } = getProps({
906
- size,
907
- ...props
908
- }, codeProps);
909
- children = t42, language = t52, style = t62, rest = t7;
910
- const Component = as || "pre";
911
- if (!language) {
912
- t2 = /* @__PURE__ */ jsx(Component, { className: clsx(codeClassName, className), style, "data-ui": "Code", ...rest, children: /* @__PURE__ */ jsx("code", { children }) });
913
- break bb0;
914
- }
915
- T0 = Component, t1 = clsx(codeClassName, className);
916
- }
917
- $[0] = t0, $[1] = T0, $[2] = children, $[3] = language, $[4] = rest, $[5] = style, $[6] = t1, $[7] = t2;
918
- } else
919
- T0 = $[1], children = $[2], language = $[3], rest = $[4], style = $[5], t1 = $[6], t2 = $[7];
920
- if (t2 !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel"))
921
- return t2;
922
- let t3;
923
- $[8] !== children ? (t3 = /* @__PURE__ */ jsx("code", { children }), $[8] = children, $[9] = t3) : t3 = $[9];
924
- let t4;
925
- $[10] !== children || $[11] !== language ? (t4 = /* @__PURE__ */ jsx(LazyRefractor, { language, value: children }), $[10] = children, $[11] = language, $[12] = t4) : t4 = $[12];
926
- let t5;
927
- $[13] !== t3 || $[14] !== t4 ? (t5 = /* @__PURE__ */ jsx(Suspense, { fallback: t3, children: t4 }), $[13] = t3, $[14] = t4, $[15] = t5) : t5 = $[15];
928
- let t6;
929
- return $[16] !== T0 || $[17] !== rest || $[18] !== style || $[19] !== t1 || $[20] !== t5 ? (t6 = /* @__PURE__ */ jsx(T0, { className: t1, style, "data-ui": "Code", ...rest, children: t5 }), $[16] = T0, $[17] = rest, $[18] = style, $[19] = t1, $[20] = t5, $[21] = t6) : t6 = $[21], t6;
972
+ let $ = c(22), T0, children, language, rest, style, t1, t2;
973
+ if ($[0] !== t0) {
974
+ t2 = Symbol.for("react.early_return_sentinel");
975
+ bb0: {
976
+ let { size: t3, ...props } = t0, { as, children: t4, className, language: t5, style: t6, ...t7 } = getProps({
977
+ size: t3 === void 0 ? 2 : t3,
978
+ ...props
979
+ }, codeProps);
980
+ children = t4, language = t5, style = t6, rest = t7;
981
+ let Component = as || "pre";
982
+ if (!language) {
983
+ t2 = /* @__PURE__ */ jsx(Component, {
984
+ className: clsx(codeClassName, className),
985
+ style,
986
+ "data-ui": "Code",
987
+ ...rest,
988
+ children: /* @__PURE__ */ jsx("code", { children })
989
+ });
990
+ break bb0;
991
+ }
992
+ T0 = Component, t1 = clsx(codeClassName, className);
993
+ }
994
+ $[0] = t0, $[1] = T0, $[2] = children, $[3] = language, $[4] = rest, $[5] = style, $[6] = t1, $[7] = t2;
995
+ } else T0 = $[1], children = $[2], language = $[3], rest = $[4], style = $[5], t1 = $[6], t2 = $[7];
996
+ if (t2 !== Symbol.for("react.early_return_sentinel")) return t2;
997
+ let t3;
998
+ $[8] === children ? t3 = $[9] : (t3 = /* @__PURE__ */ jsx("code", { children }), $[8] = children, $[9] = t3);
999
+ let t4;
1000
+ $[10] !== children || $[11] !== language ? (t4 = /* @__PURE__ */ jsx(LazyRefractor, {
1001
+ language,
1002
+ value: children
1003
+ }), $[10] = children, $[11] = language, $[12] = t4) : t4 = $[12];
1004
+ let t5;
1005
+ $[13] !== t3 || $[14] !== t4 ? (t5 = /* @__PURE__ */ jsx(Suspense, {
1006
+ fallback: t3,
1007
+ children: t4
1008
+ }), $[13] = t3, $[14] = t4, $[15] = t5) : t5 = $[15];
1009
+ let t6;
1010
+ return $[16] !== T0 || $[17] !== rest || $[18] !== style || $[19] !== t1 || $[20] !== t5 ? (t6 = /* @__PURE__ */ jsx(T0, {
1011
+ className: t1,
1012
+ style,
1013
+ "data-ui": "Code",
1014
+ ...rest,
1015
+ children: t5
1016
+ }), $[16] = T0, $[17] = rest, $[18] = style, $[19] = t1, $[20] = t5, $[21] = t6) : t6 = $[21], t6;
930
1017
  }
931
- const CONTAINER_SIZE = [0, 1, 2, 3, 4, 5], containerProps = {
932
- as: {
933
- type: "string"
934
- },
935
- size: {
936
- type: "union",
937
- className: "container",
938
- values: CONTAINER_SIZE
939
- },
940
- ...layoutProps
1018
+ const CONTAINER_SIZE = [
1019
+ 0,
1020
+ 1,
1021
+ 2,
1022
+ 3,
1023
+ 4,
1024
+ 5
1025
+ ], containerProps = {
1026
+ as: { type: "string" },
1027
+ size: {
1028
+ type: "union",
1029
+ className: "container",
1030
+ values: CONTAINER_SIZE
1031
+ },
1032
+ ...layoutProps
941
1033
  }, containerClassName = suffixClassName("sui-Container");
1034
+ /** @public */
942
1035
  function Container(t0) {
943
- const $ = c(12);
944
- let T0, children, rest, style, t1;
945
- if ($[0] !== t0) {
946
- const {
947
- marginX: t22,
948
- ...props
949
- } = t0, marginX = t22 === void 0 ? "auto" : t22, {
950
- as,
951
- children: t3,
952
- className,
953
- style: t4,
954
- ...t5
955
- } = getProps({
956
- marginX,
957
- ...props
958
- }, containerProps);
959
- children = t3, style = t4, rest = t5, T0 = as || "div", t1 = clsx(containerClassName, className), $[0] = t0, $[1] = T0, $[2] = children, $[3] = rest, $[4] = style, $[5] = t1;
960
- } else
961
- T0 = $[1], children = $[2], rest = $[3], style = $[4], t1 = $[5];
962
- let t2;
963
- return $[6] !== T0 || $[7] !== children || $[8] !== rest || $[9] !== style || $[10] !== t1 ? (t2 = /* @__PURE__ */ jsx(T0, { className: t1, style, "data-ui": "Container", ...rest, children }), $[6] = T0, $[7] = children, $[8] = rest, $[9] = style, $[10] = t1, $[11] = t2) : t2 = $[11], t2;
1036
+ let $ = c(12), T0, children, rest, style, t1;
1037
+ if ($[0] !== t0) {
1038
+ let { marginX: t2, size: t3, ...props } = t0, { as, children: t4, className, style: t5, ...t6 } = getProps({
1039
+ marginX: t2 === void 0 ? "auto" : t2,
1040
+ size: t3 === void 0 ? 2 : t3,
1041
+ ...props
1042
+ }, containerProps);
1043
+ children = t4, style = t5, rest = t6, T0 = as || "div", t1 = clsx(containerClassName, className), $[0] = t0, $[1] = T0, $[2] = children, $[3] = rest, $[4] = style, $[5] = t1;
1044
+ } else T0 = $[1], children = $[2], rest = $[3], style = $[4], t1 = $[5];
1045
+ let t2;
1046
+ return $[6] !== T0 || $[7] !== children || $[8] !== rest || $[9] !== style || $[10] !== t1 ? (t2 = /* @__PURE__ */ jsx(T0, {
1047
+ className: t1,
1048
+ style,
1049
+ "data-ui": "Container",
1050
+ ...rest,
1051
+ children
1052
+ }), $[6] = T0, $[7] = children, $[8] = rest, $[9] = style, $[10] = t1, $[11] = t2) : t2 = $[11], t2;
964
1053
  }
965
- const dividerProps = {
966
- ...marginProps
967
- }, dividerClassName = suffixClassName("sui-Divider");
1054
+ const headingProps = {
1055
+ as: {
1056
+ type: "union",
1057
+ values: [
1058
+ "h1",
1059
+ "h2",
1060
+ "h3",
1061
+ "h4",
1062
+ "h5",
1063
+ "h6"
1064
+ ]
1065
+ },
1066
+ size: {
1067
+ type: "union",
1068
+ className: "text-heading",
1069
+ values: [
1070
+ 0,
1071
+ 1,
1072
+ 2,
1073
+ 3,
1074
+ 4,
1075
+ 5,
1076
+ 6,
1077
+ 7,
1078
+ 8,
1079
+ 9
1080
+ ]
1081
+ },
1082
+ ...typographyProps
1083
+ }, headingClassName = suffixClassName("sui-Heading");
1084
+ /** @public */
1085
+ function Heading(t0) {
1086
+ let $ = c(15), T0, children, rest, style, t1, t2;
1087
+ if ($[0] !== t0) {
1088
+ t2 = Symbol.for("react.early_return_sentinel");
1089
+ bb0: {
1090
+ let { size: t3, weight: t4, ...props } = t0, { as, children: t5, className, style: t6, ...t7 } = getProps({
1091
+ size: t3 === void 0 ? 2 : t3,
1092
+ weight: t4 === void 0 ? "bold" : t4,
1093
+ ...props
1094
+ }, headingProps);
1095
+ children = t5, style = t6, rest = t7;
1096
+ let Component = as || "h2";
1097
+ if (props.truncate && props.trim) {
1098
+ let t8 = clsx(headingClassName, className?.replace("sui-line-clamp", "").replace("sui-text-overflow", "")), t9 = props.truncate === 1 ? "sui-text-overflow" : "sui-line-clamp", t10;
1099
+ $[7] === t9 ? t10 = $[8] : (t10 = clsx("sui-overflow-hidden", t9), $[7] = t9, $[8] = t10), t2 = /* @__PURE__ */ jsx(Component, {
1100
+ className: t8,
1101
+ style,
1102
+ "data-ui": "Heading",
1103
+ ...rest,
1104
+ children: /* @__PURE__ */ jsx("span", {
1105
+ className: t10,
1106
+ children
1107
+ })
1108
+ });
1109
+ break bb0;
1110
+ }
1111
+ T0 = Component, t1 = clsx(headingClassName, props.truncate && "sui-overflow-hidden", className);
1112
+ }
1113
+ $[0] = t0, $[1] = T0, $[2] = children, $[3] = rest, $[4] = style, $[5] = t1, $[6] = t2;
1114
+ } else T0 = $[1], children = $[2], rest = $[3], style = $[4], t1 = $[5], t2 = $[6];
1115
+ if (t2 !== Symbol.for("react.early_return_sentinel")) return t2;
1116
+ let t3;
1117
+ return $[9] !== T0 || $[10] !== children || $[11] !== rest || $[12] !== style || $[13] !== t1 ? (t3 = /* @__PURE__ */ jsx(T0, {
1118
+ className: t1,
1119
+ style,
1120
+ "data-ui": "Heading",
1121
+ ...rest,
1122
+ children
1123
+ }), $[9] = T0, $[10] = children, $[11] = rest, $[12] = style, $[13] = t1, $[14] = t3) : t3 = $[14], t3;
1124
+ }
1125
+ const iconButtonProps = {
1126
+ "aria-label": { type: "string" },
1127
+ as: buttonProps.as,
1128
+ icon: { type: "string" }
1129
+ }, iconButtonClassName = suffixClassName("sui-IconButton");
1130
+ /** @public */
1131
+ function IconButton(props) {
1132
+ let $ = c(16), IconProp, T0, rest, style, t0, t1;
1133
+ if ($[0] !== props) {
1134
+ let { as, className, style: t2, icon: t3, ...t4 } = getProps(props, iconButtonProps);
1135
+ style = t2, IconProp = t3, rest = t4;
1136
+ let Component = as || "button";
1137
+ T0 = Button, t0 = Component, t1 = clsx(iconButtonClassName, className), $[0] = props, $[1] = IconProp, $[2] = T0, $[3] = rest, $[4] = style, $[5] = t0, $[6] = t1;
1138
+ } else IconProp = $[1], T0 = $[2], rest = $[3], style = $[4], t0 = $[5], t1 = $[6];
1139
+ let t2;
1140
+ $[7] === IconProp ? t2 = $[8] : (t2 = /* @__PURE__ */ jsx(Icon, {
1141
+ icon: IconProp,
1142
+ margin: -2,
1143
+ size: 1
1144
+ }), $[7] = IconProp, $[8] = t2);
1145
+ let t3;
1146
+ return $[9] !== T0 || $[10] !== rest || $[11] !== style || $[12] !== t0 || $[13] !== t1 || $[14] !== t2 ? (t3 = /* @__PURE__ */ jsx(T0, {
1147
+ as: t0,
1148
+ className: t1,
1149
+ style,
1150
+ "data-ui": "IconButton",
1151
+ ...rest,
1152
+ children: t2
1153
+ }), $[9] = T0, $[10] = rest, $[11] = style, $[12] = t0, $[13] = t1, $[14] = t2, $[15] = t3) : t3 = $[15], t3;
1154
+ }
1155
+ const dialogProps = {
1156
+ header: { type: "string" },
1157
+ open: { type: "boolean" },
1158
+ size: {
1159
+ type: "union",
1160
+ className: "container",
1161
+ values: CONTAINER_SIZE
1162
+ },
1163
+ topAnchor: {
1164
+ type: "string",
1165
+ className: "top-anchor",
1166
+ variable: "--top-anchor"
1167
+ }
1168
+ }, dialogClassName = suffixClassName("sui-Dialog"), dialogContentClassName = suffixClassName("sui-DialogContent"), dialogFooterClassName = suffixClassName("sui-DialogFooter");
1169
+ function DialogRoot(t0) {
1170
+ let $ = c(17), { open: t1, size: t2, ...props } = t0, open = t1 !== void 0 && t1, { children, className, style, header, onClose, ...rest } = getProps({
1171
+ size: t2 === void 0 ? 0 : t2,
1172
+ ...props
1173
+ }, dialogProps), dialogRef = useRef(null), headerId = useId(), dialogClasses = clsx(dialogClassName, `${props.topAnchor ? "sui-mx-auto" : "sui-m-auto"} sui-radius5 sui-shadow3 sui-p4 sui-flex-direction-column sui-gap4 sui-overflow-y-auto`), t3, t4;
1174
+ $[0] === open ? (t3 = $[1], t4 = $[2]) : (t3 = () => {
1175
+ let dialogElement = dialogRef.current;
1176
+ if (dialogElement) return open ? dialogElement.open || dialogElement.showModal() : dialogElement.open && dialogElement.close(), () => {
1177
+ dialogElement.close();
1178
+ };
1179
+ }, t4 = [open], $[0] = open, $[1] = t3, $[2] = t4), useEffect(t3, t4);
1180
+ let t6 = header ? headerId : void 0, t7 = clsx(dialogClasses, className), t8;
1181
+ $[3] !== header || $[4] !== headerId ? (t8 = header ? /* @__PURE__ */ jsx(Heading, {
1182
+ trim: !0,
1183
+ size: 1,
1184
+ id: headerId,
1185
+ children: header
1186
+ }) : /* @__PURE__ */ jsx("div", {}), $[3] = header, $[4] = headerId, $[5] = t8) : t8 = $[5];
1187
+ let t9;
1188
+ $[6] === Symbol.for("react.memo_cache_sentinel") ? (t9 = /* @__PURE__ */ jsx(IconButton, {
1189
+ "aria-label": "Close",
1190
+ level: "tertiary",
1191
+ icon: CloseIcon,
1192
+ onClick: () => dialogRef.current?.close()
1193
+ }), $[6] = t9) : t9 = $[6];
1194
+ let t10;
1195
+ $[7] === t8 ? t10 = $[8] : (t10 = /* @__PURE__ */ jsxs(Flex, {
1196
+ flexShrink: 0,
1197
+ justifyContent: "space-between",
1198
+ alignItems: "center",
1199
+ children: [t8, t9]
1200
+ }), $[7] = t8, $[8] = t10);
1201
+ let t11;
1202
+ return $[9] !== children || $[10] !== onClose || $[11] !== rest || $[12] !== style || $[13] !== t10 || $[14] !== t6 || $[15] !== t7 ? (t11 = /* @__PURE__ */ jsxs("dialog", {
1203
+ ...rest,
1204
+ ref: dialogRef,
1205
+ closedby: "any",
1206
+ "aria-labelledby": t6,
1207
+ onClose,
1208
+ className: t7,
1209
+ style,
1210
+ "data-ui": "Dialog",
1211
+ children: [t10, children]
1212
+ }), $[9] = children, $[10] = onClose, $[11] = rest, $[12] = style, $[13] = t10, $[14] = t6, $[15] = t7, $[16] = t11) : t11 = $[16], t11;
1213
+ }
1214
+ function DialogContent(props) {
1215
+ let $ = c(12), T0, children, style, t0, t1;
1216
+ if ($[0] !== props) {
1217
+ let { children: t2, className, style: t3, ...rest } = getProps(props, {});
1218
+ children = t2, style = t3, T0 = Box, t0 = rest, t1 = clsx(dialogContentClassName, className), $[0] = props, $[1] = T0, $[2] = children, $[3] = style, $[4] = t0, $[5] = t1;
1219
+ } else T0 = $[1], children = $[2], style = $[3], t0 = $[4], t1 = $[5];
1220
+ let t2;
1221
+ return $[6] !== T0 || $[7] !== children || $[8] !== style || $[9] !== t0 || $[10] !== t1 ? (t2 = /* @__PURE__ */ jsx(T0, {
1222
+ ...t0,
1223
+ className: t1,
1224
+ style,
1225
+ "data-ui": "DialogContent",
1226
+ flexGrow: 1,
1227
+ overflowY: "auto",
1228
+ children
1229
+ }), $[6] = T0, $[7] = children, $[8] = style, $[9] = t0, $[10] = t1, $[11] = t2) : t2 = $[11], t2;
1230
+ }
1231
+ function DialogFooter(props) {
1232
+ let $ = c(12), T0, children, style, t0, t1;
1233
+ if ($[0] !== props) {
1234
+ let { children: t2, className, style: t3, ...rest } = getProps(props, {});
1235
+ children = t2, style = t3, T0 = Box, t0 = rest, t1 = clsx(dialogFooterClassName, className), $[0] = props, $[1] = T0, $[2] = children, $[3] = style, $[4] = t0, $[5] = t1;
1236
+ } else T0 = $[1], children = $[2], style = $[3], t0 = $[4], t1 = $[5];
1237
+ let t2;
1238
+ return $[6] !== T0 || $[7] !== children || $[8] !== style || $[9] !== t0 || $[10] !== t1 ? (t2 = /* @__PURE__ */ jsx(T0, {
1239
+ ...t0,
1240
+ className: t1,
1241
+ style,
1242
+ "data-ui": "DialogFooter",
1243
+ flexShrink: 0,
1244
+ children
1245
+ }), $[6] = T0, $[7] = children, $[8] = style, $[9] = t0, $[10] = t1, $[11] = t2) : t2 = $[11], t2;
1246
+ }
1247
+ DialogRoot.displayName = "Dialog";
1248
+ /**
1249
+ * @beta
1250
+ *
1251
+ * Renders a modal dialog element — should not be used for nonmodal dialogs.
1252
+ * Modal dialogs make their containing documents inert, and render on the topmost
1253
+ * layer within that containing document; they must be dimissed before the containing
1254
+ * document and its contents become unblocked. They also trap focus within the bounds
1255
+ * of the dialog element and its descendants.
1256
+ *
1257
+ * For more on dialogs and modality, refer to the HTML specification for the dialog element:
1258
+ * https://html.spec.whatwg.org/dev/interactive-elements.html#the-dialog-element
1259
+ */
1260
+ const Dialog = DialogRoot;
1261
+ DialogRoot.Content = DialogContent, DialogRoot.Footer = DialogFooter;
1262
+ const dividerProps = { ...marginProps }, dividerClassName = suffixClassName("sui-Divider");
1263
+ /** @public */
968
1264
  function Divider(props) {
969
- const $ = c(8);
970
- let rest, style, t0;
971
- if ($[0] !== props) {
972
- const {
973
- className,
974
- style: t12,
975
- ...t2
976
- } = getProps(props, dividerProps);
977
- style = t12, rest = t2, t0 = clsx(dividerClassName, "sui-border-none sui-border-top", className), $[0] = props, $[1] = rest, $[2] = style, $[3] = t0;
978
- } else
979
- rest = $[1], style = $[2], t0 = $[3];
980
- let t1;
981
- return $[4] !== rest || $[5] !== style || $[6] !== t0 ? (t1 = /* @__PURE__ */ jsx("hr", { className: t0, style, "data-ui": "Divider", ...rest }), $[4] = rest, $[5] = style, $[6] = t0, $[7] = t1) : t1 = $[7], t1;
1265
+ let $ = c(8), rest, style, t0;
1266
+ if ($[0] !== props) {
1267
+ let { className, style: t1, ...t2 } = getProps(props, dividerProps);
1268
+ style = t1, rest = t2, t0 = clsx(dividerClassName, "sui-border-none sui-border-top", className), $[0] = props, $[1] = rest, $[2] = style, $[3] = t0;
1269
+ } else rest = $[1], style = $[2], t0 = $[3];
1270
+ let t1;
1271
+ return $[4] !== rest || $[5] !== style || $[6] !== t0 ? (t1 = /* @__PURE__ */ jsx("hr", {
1272
+ className: t0,
1273
+ style,
1274
+ "data-ui": "Divider",
1275
+ ...rest
1276
+ }), $[4] = rest, $[5] = style, $[6] = t0, $[7] = t1) : t1 = $[7], t1;
982
1277
  }
983
- const EYEBROW_SIZE = [0, 1, 2, 3, 4], eyebrowProps = {
984
- as: {
985
- type: "string"
986
- },
987
- size: {
988
- type: "union",
989
- className: "text-eyebrow",
990
- values: EYEBROW_SIZE
991
- },
992
- ...typographyProps
1278
+ const eyebrowProps = {
1279
+ as: { type: "string" },
1280
+ size: {
1281
+ type: "union",
1282
+ className: "text-eyebrow",
1283
+ values: [
1284
+ 0,
1285
+ 1,
1286
+ 2,
1287
+ 3,
1288
+ 4
1289
+ ]
1290
+ },
1291
+ ...typographyProps
993
1292
  }, eyebrowClassName = suffixClassName("sui-Eyebrow");
1293
+ /** @public */
994
1294
  function Eyebrow(t0) {
995
- const $ = c(15);
996
- let T0, children, rest, style, t1, t2;
997
- if ($[0] !== t0) {
998
- t2 = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
999
- bb0: {
1000
- const {
1001
- size: t32,
1002
- weight: t4,
1003
- ...props
1004
- } = t0, size = t32 === void 0 ? 2 : t32, weight = t4 === void 0 ? "semibold" : t4, {
1005
- as,
1006
- children: t5,
1007
- className,
1008
- style: t6,
1009
- ...t7
1010
- } = getProps({
1011
- size,
1012
- weight,
1013
- ...props
1014
- }, eyebrowProps);
1015
- children = t5, style = t6, rest = t7;
1016
- const Component = as || "span";
1017
- if (props.truncate && props.trim) {
1018
- const t8 = clsx(eyebrowClassName, className?.replace("sui-line-clamp", "").replace("sui-text-overflow", "")), t9 = props.truncate === 1 ? "sui-text-overflow" : "sui-line-clamp";
1019
- let t10;
1020
- $[7] !== t9 ? (t10 = clsx("sui-overflow-hidden", t9), $[7] = t9, $[8] = t10) : t10 = $[8], t2 = /* @__PURE__ */ jsx(Component, { className: t8, style, "data-ui": "Eyebrow", ...rest, children: /* @__PURE__ */ jsx("span", { className: t10, children }) });
1021
- break bb0;
1022
- }
1023
- T0 = Component, t1 = clsx(eyebrowClassName, "sui-overflow-hidden", className);
1024
- }
1025
- $[0] = t0, $[1] = T0, $[2] = children, $[3] = rest, $[4] = style, $[5] = t1, $[6] = t2;
1026
- } else
1027
- T0 = $[1], children = $[2], rest = $[3], style = $[4], t1 = $[5], t2 = $[6];
1028
- if (t2 !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel"))
1029
- return t2;
1030
- let t3;
1031
- return $[9] !== T0 || $[10] !== children || $[11] !== rest || $[12] !== style || $[13] !== t1 ? (t3 = /* @__PURE__ */ jsx(T0, { className: t1, style, "data-ui": "Eyebrow", ...rest, children }), $[9] = T0, $[10] = children, $[11] = rest, $[12] = style, $[13] = t1, $[14] = t3) : t3 = $[14], t3;
1295
+ let $ = c(15), T0, children, rest, style, t1, t2;
1296
+ if ($[0] !== t0) {
1297
+ t2 = Symbol.for("react.early_return_sentinel");
1298
+ bb0: {
1299
+ let { size: t3, weight: t4, ...props } = t0, { as, children: t5, className, style: t6, ...t7 } = getProps({
1300
+ size: t3 === void 0 ? 2 : t3,
1301
+ weight: t4 === void 0 ? "semibold" : t4,
1302
+ ...props
1303
+ }, eyebrowProps);
1304
+ children = t5, style = t6, rest = t7;
1305
+ let Component = as || "span";
1306
+ if (props.truncate && props.trim) {
1307
+ let t8 = clsx(eyebrowClassName, className?.replace("sui-line-clamp", "").replace("sui-text-overflow", "")), t9 = props.truncate === 1 ? "sui-text-overflow" : "sui-line-clamp", t10;
1308
+ $[7] === t9 ? t10 = $[8] : (t10 = clsx("sui-overflow-hidden", t9), $[7] = t9, $[8] = t10), t2 = /* @__PURE__ */ jsx(Component, {
1309
+ className: t8,
1310
+ style,
1311
+ "data-ui": "Eyebrow",
1312
+ ...rest,
1313
+ children: /* @__PURE__ */ jsx("span", {
1314
+ className: t10,
1315
+ children
1316
+ })
1317
+ });
1318
+ break bb0;
1319
+ }
1320
+ T0 = Component, t1 = clsx(eyebrowClassName, props.truncate && "sui-overflow-hidden", className);
1321
+ }
1322
+ $[0] = t0, $[1] = T0, $[2] = children, $[3] = rest, $[4] = style, $[5] = t1, $[6] = t2;
1323
+ } else T0 = $[1], children = $[2], rest = $[3], style = $[4], t1 = $[5], t2 = $[6];
1324
+ if (t2 !== Symbol.for("react.early_return_sentinel")) return t2;
1325
+ let t3;
1326
+ return $[9] !== T0 || $[10] !== children || $[11] !== rest || $[12] !== style || $[13] !== t1 ? (t3 = /* @__PURE__ */ jsx(T0, {
1327
+ className: t1,
1328
+ style,
1329
+ "data-ui": "Eyebrow",
1330
+ ...rest,
1331
+ children
1332
+ }), $[9] = T0, $[10] = children, $[11] = rest, $[12] = style, $[13] = t1, $[14] = t3) : t3 = $[14], t3;
1032
1333
  }
1033
- const GRID_AUTO_FLOW = ["row", "column", "row dense", "column dense", "dense"], gridParentProps = {
1034
- gridAutoFlow: {
1035
- type: "union",
1036
- className: "grid-auto-flow",
1037
- values: GRID_AUTO_FLOW
1038
- },
1039
- gridAutoColumns: {
1040
- type: "string",
1041
- className: "grid-auto-columns",
1042
- variable: "--grid-auto-columns"
1043
- },
1044
- gridAutoRows: {
1045
- type: "string",
1046
- className: "grid-auto-rows",
1047
- variable: "--grid-auto-rows"
1048
- },
1049
- gridTemplateColumns: {
1050
- type: "string",
1051
- className: "grid-template-columns",
1052
- variable: "--grid-template-columns"
1053
- },
1054
- gridTemplateRows: {
1055
- type: "string",
1056
- className: "grid-template-rows",
1057
- variable: "--grid-template-rows"
1058
- }
1059
- }, gridProps = {
1060
- as: {
1061
- type: "string"
1062
- },
1063
- display: {
1064
- type: "union",
1065
- className: "display",
1066
- values: DISPLAY_GRID
1067
- },
1068
- ...gridParentProps,
1069
- ...gapProps,
1070
- ...layoutProps
1334
+ const gridProps = {
1335
+ as: { type: "string" },
1336
+ display: {
1337
+ type: "union",
1338
+ className: "display",
1339
+ values: DISPLAY_GRID
1340
+ },
1341
+ gridAutoFlow: {
1342
+ type: "union",
1343
+ className: "grid-auto-flow",
1344
+ values: [
1345
+ "row",
1346
+ "column",
1347
+ "row dense",
1348
+ "column dense",
1349
+ "dense"
1350
+ ]
1351
+ },
1352
+ gridAutoColumns: {
1353
+ type: "string",
1354
+ className: "grid-auto-columns",
1355
+ variable: "--grid-auto-columns"
1356
+ },
1357
+ gridAutoRows: {
1358
+ type: "string",
1359
+ className: "grid-auto-rows",
1360
+ variable: "--grid-auto-rows"
1361
+ },
1362
+ gridTemplateColumns: {
1363
+ type: "string",
1364
+ className: "grid-template-columns",
1365
+ variable: "--grid-template-columns"
1366
+ },
1367
+ gridTemplateRows: {
1368
+ type: "string",
1369
+ className: "grid-template-rows",
1370
+ variable: "--grid-template-rows"
1371
+ },
1372
+ ...gapProps,
1373
+ ...layoutProps
1071
1374
  }, gridClassName = suffixClassName("sui-Grid");
1375
+ /** @public */
1072
1376
  function Grid(t0) {
1073
- const $ = c(12);
1074
- let T0, children, rest, style, t1;
1075
- if ($[0] !== t0) {
1076
- const {
1077
- display: t22,
1078
- ...props
1079
- } = t0, display = t22 === void 0 ? "grid" : t22, {
1080
- as,
1081
- children: t3,
1082
- className,
1083
- style: t4,
1084
- ...t5
1085
- } = getProps({
1086
- display,
1087
- ...props
1088
- }, gridProps);
1089
- children = t3, style = t4, rest = t5, T0 = as || "div", t1 = clsx(gridClassName, className), $[0] = t0, $[1] = T0, $[2] = children, $[3] = rest, $[4] = style, $[5] = t1;
1090
- } else
1091
- T0 = $[1], children = $[2], rest = $[3], style = $[4], t1 = $[5];
1092
- let t2;
1093
- return $[6] !== T0 || $[7] !== children || $[8] !== rest || $[9] !== style || $[10] !== t1 ? (t2 = /* @__PURE__ */ jsx(T0, { className: t1, style, "data-ui": "Grid", ...rest, children }), $[6] = T0, $[7] = children, $[8] = rest, $[9] = style, $[10] = t1, $[11] = t2) : t2 = $[11], t2;
1094
- }
1095
- const hStackProps = {
1096
- as: {
1097
- type: "string"
1098
- },
1099
- gap: gapProps.gap
1100
- }, hStackClassName = suffixClassName("sui-HStack");
1101
- function HStack(props) {
1102
- const $ = c(14);
1103
- let T0, children, rest, style, t0, t1;
1104
- if ($[0] !== props) {
1105
- const {
1106
- as,
1107
- children: t22,
1108
- className,
1109
- style: t3,
1110
- ...t4
1111
- } = getProps(props, hStackProps);
1112
- children = t22, style = t3, rest = t4;
1113
- const Component = as || "div";
1114
- T0 = Flex, t0 = Component, t1 = clsx(hStackClassName, className), $[0] = props, $[1] = T0, $[2] = children, $[3] = rest, $[4] = style, $[5] = t0, $[6] = t1;
1115
- } else
1116
- T0 = $[1], children = $[2], rest = $[3], style = $[4], t0 = $[5], t1 = $[6];
1117
- let t2;
1118
- return $[7] !== T0 || $[8] !== children || $[9] !== rest || $[10] !== style || $[11] !== t0 || $[12] !== t1 ? (t2 = /* @__PURE__ */ jsx(T0, { as: t0, className: t1, style, "data-ui": "HStack", display: "inline-flex", alignItems: "center", flexWrap: "wrap", ...rest, children }), $[7] = T0, $[8] = children, $[9] = rest, $[10] = style, $[11] = t0, $[12] = t1, $[13] = t2) : t2 = $[13], t2;
1119
- }
1120
- const HEADING_TAG = ["h1", "h2", "h3", "h4", "h5", "h6"], HEADING_SIZE = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], headingProps = {
1121
- as: {
1122
- type: "union",
1123
- values: HEADING_TAG
1124
- },
1125
- size: {
1126
- type: "union",
1127
- className: "text-heading",
1128
- values: HEADING_SIZE
1129
- },
1130
- ...typographyProps
1131
- }, headingClassName = suffixClassName("sui-Heading");
1132
- function Heading(t0) {
1133
- const $ = c(15);
1134
- let T0, children, rest, style, t1, t2;
1135
- if ($[0] !== t0) {
1136
- t2 = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
1137
- bb0: {
1138
- const {
1139
- size: t32,
1140
- weight: t4,
1141
- ...props
1142
- } = t0, size = t32 === void 0 ? 2 : t32, weight = t4 === void 0 ? "bold" : t4, {
1143
- as,
1144
- children: t5,
1145
- className,
1146
- style: t6,
1147
- ...t7
1148
- } = getProps({
1149
- size,
1150
- weight,
1151
- ...props
1152
- }, headingProps);
1153
- children = t5, style = t6, rest = t7;
1154
- const Component = as || "h2";
1155
- if (props.truncate && props.trim) {
1156
- const t8 = clsx(headingClassName, className?.replace("sui-line-clamp", "").replace("sui-text-overflow", "")), t9 = props.truncate === 1 ? "sui-text-overflow" : "sui-line-clamp";
1157
- let t10;
1158
- $[7] !== t9 ? (t10 = clsx("sui-overflow-hidden", t9), $[7] = t9, $[8] = t10) : t10 = $[8], t2 = /* @__PURE__ */ jsx(Component, { className: t8, style, "data-ui": "Heading", ...rest, children: /* @__PURE__ */ jsx("span", { className: t10, children }) });
1159
- break bb0;
1160
- }
1161
- T0 = Component, t1 = clsx(headingClassName, "sui-overflow-hidden", className);
1162
- }
1163
- $[0] = t0, $[1] = T0, $[2] = children, $[3] = rest, $[4] = style, $[5] = t1, $[6] = t2;
1164
- } else
1165
- T0 = $[1], children = $[2], rest = $[3], style = $[4], t1 = $[5], t2 = $[6];
1166
- if (t2 !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel"))
1167
- return t2;
1168
- let t3;
1169
- return $[9] !== T0 || $[10] !== children || $[11] !== rest || $[12] !== style || $[13] !== t1 ? (t3 = /* @__PURE__ */ jsx(T0, { className: t1, style, "data-ui": "Heading", ...rest, children }), $[9] = T0, $[10] = children, $[11] = rest, $[12] = style, $[13] = t1, $[14] = t3) : t3 = $[14], t3;
1377
+ let $ = c(12), T0, children, rest, style, t1;
1378
+ if ($[0] !== t0) {
1379
+ let { display: t2, ...props } = t0, { as, children: t3, className, style: t4, ...t5 } = getProps({
1380
+ display: t2 === void 0 ? "grid" : t2,
1381
+ ...props
1382
+ }, gridProps);
1383
+ children = t3, style = t4, rest = t5, T0 = as || "div", t1 = clsx(gridClassName, className), $[0] = t0, $[1] = T0, $[2] = children, $[3] = rest, $[4] = style, $[5] = t1;
1384
+ } else T0 = $[1], children = $[2], rest = $[3], style = $[4], t1 = $[5];
1385
+ let t2;
1386
+ return $[6] !== T0 || $[7] !== children || $[8] !== rest || $[9] !== style || $[10] !== t1 ? (t2 = /* @__PURE__ */ jsx(T0, {
1387
+ className: t1,
1388
+ style,
1389
+ "data-ui": "Grid",
1390
+ ...rest,
1391
+ children
1392
+ }), $[6] = T0, $[7] = children, $[8] = rest, $[9] = style, $[10] = t1, $[11] = t2) : t2 = $[11], t2;
1170
1393
  }
1171
- const iconButtonProps = {
1172
- "aria-label": {
1173
- type: "string"
1174
- },
1175
- as: buttonProps.as,
1176
- icon: {
1177
- type: "string"
1178
- }
1179
- }, iconButtonClassName = suffixClassName("sui-IconButton");
1180
- function IconButton(props) {
1181
- const $ = c(16);
1182
- let IconProp, T0, rest, style, t0, t1;
1183
- if ($[0] !== props) {
1184
- const {
1185
- as,
1186
- className,
1187
- style: t22,
1188
- icon: t32,
1189
- ...t4
1190
- } = getProps(props, iconButtonProps);
1191
- style = t22, IconProp = t32, rest = t4;
1192
- const Component = as || "button";
1193
- T0 = Button, t0 = Component, t1 = clsx(iconButtonClassName, className), $[0] = props, $[1] = IconProp, $[2] = T0, $[3] = rest, $[4] = style, $[5] = t0, $[6] = t1;
1194
- } else
1195
- IconProp = $[1], T0 = $[2], rest = $[3], style = $[4], t0 = $[5], t1 = $[6];
1196
- let t2;
1197
- $[7] !== IconProp ? (t2 = /* @__PURE__ */ jsx(Icon, { icon: IconProp, margin: -2, size: 1 }), $[7] = IconProp, $[8] = t2) : t2 = $[8];
1198
- let t3;
1199
- return $[9] !== T0 || $[10] !== rest || $[11] !== style || $[12] !== t0 || $[13] !== t1 || $[14] !== t2 ? (t3 = /* @__PURE__ */ jsx(T0, { as: t0, className: t1, style, "data-ui": "IconButton", ...rest, children: t2 }), $[9] = T0, $[10] = rest, $[11] = style, $[12] = t0, $[13] = t1, $[14] = t2, $[15] = t3) : t3 = $[15], t3;
1394
+ const hStackClassName = suffixClassName("sui-HStack");
1395
+ /** @public */
1396
+ function HStack(t0) {
1397
+ let $ = c(8), className, props;
1398
+ $[0] === t0 ? (className = $[1], props = $[2]) : ({className, ...props} = t0, $[0] = t0, $[1] = className, $[2] = props);
1399
+ let t1;
1400
+ $[3] === className ? t1 = $[4] : (t1 = clsx(hStackClassName, className), $[3] = className, $[4] = t1);
1401
+ let t2 = props, t3;
1402
+ return $[5] !== t1 || $[6] !== t2 ? (t3 = /* @__PURE__ */ jsx(Flex, {
1403
+ className: t1,
1404
+ "data-ui": "HStack",
1405
+ display: "inline-flex",
1406
+ alignItems: "center",
1407
+ flexWrap: "wrap",
1408
+ ...t2
1409
+ }), $[5] = t1, $[6] = t2, $[7] = t3) : t3 = $[7], t3;
1200
1410
  }
1201
1411
  const indicatorProps = {
1202
- as: {
1203
- type: "string"
1204
- },
1205
- label: {
1206
- type: "string"
1207
- },
1208
- ...toneProps
1412
+ as: { type: "string" },
1413
+ label: { type: "string" },
1414
+ ...toneProps
1209
1415
  }, indicatorClassName = suffixClassName("sui-Indicator");
1416
+ /** @beta */
1210
1417
  function Indicator(t0) {
1211
- const $ = c(18);
1212
- let T0, ariaLabel, children, rest, style, t1, t2;
1213
- if ($[0] !== t0) {
1214
- const {
1215
- tone: t32,
1216
- ...props
1217
- } = t0, tone = t32 === void 0 ? "neutral" : t32, {
1218
- as,
1219
- children: t42,
1220
- className,
1221
- style: t52,
1222
- label,
1223
- ...t6
1224
- } = getProps({
1225
- tone,
1226
- ...props
1227
- }, indicatorProps);
1228
- children = t42, style = t52, rest = t6;
1229
- const Component = as || "span";
1230
- ariaLabel = label || rest["aria-label"], T0 = Box, t1 = Component, t2 = clsx(indicatorClassName, className), $[0] = t0, $[1] = T0, $[2] = ariaLabel, $[3] = children, $[4] = rest, $[5] = style, $[6] = t1, $[7] = t2;
1231
- } else
1232
- T0 = $[1], ariaLabel = $[2], children = $[3], rest = $[4], style = $[5], t1 = $[6], t2 = $[7];
1233
- const t3 = ariaLabel ? void 0 : !0, t4 = ariaLabel ? "img" : void 0;
1234
- let t5;
1235
- return $[8] !== T0 || $[9] !== ariaLabel || $[10] !== children || $[11] !== rest || $[12] !== style || $[13] !== t1 || $[14] !== t2 || $[15] !== t3 || $[16] !== t4 ? (t5 = /* @__PURE__ */ jsx(T0, { as: t1, className: t2, style, "data-ui": "Indicator", width: "5px", height: "5px", radius: "full", "aria-label": ariaLabel, "aria-hidden": t3, role: t4, ...rest, children }), $[8] = T0, $[9] = ariaLabel, $[10] = children, $[11] = rest, $[12] = style, $[13] = t1, $[14] = t2, $[15] = t3, $[16] = t4, $[17] = t5) : t5 = $[17], t5;
1418
+ let $ = c(18), T0, ariaLabel, children, rest, style, t1, t2;
1419
+ if ($[0] !== t0) {
1420
+ let { tone: t3, ...props } = t0, { as, children: t4, className, style: t5, label, ...t6 } = getProps({
1421
+ tone: t3 === void 0 ? "neutral" : t3,
1422
+ ...props
1423
+ }, indicatorProps);
1424
+ children = t4, style = t5, rest = t6;
1425
+ let Component = as || "span";
1426
+ ariaLabel = label || rest["aria-label"], T0 = Box, t1 = Component, t2 = clsx(indicatorClassName, className), $[0] = t0, $[1] = T0, $[2] = ariaLabel, $[3] = children, $[4] = rest, $[5] = style, $[6] = t1, $[7] = t2;
1427
+ } else T0 = $[1], ariaLabel = $[2], children = $[3], rest = $[4], style = $[5], t1 = $[6], t2 = $[7];
1428
+ let t3 = !ariaLabel || void 0, t4 = ariaLabel ? "img" : void 0, t5;
1429
+ return $[8] !== T0 || $[9] !== ariaLabel || $[10] !== children || $[11] !== rest || $[12] !== style || $[13] !== t1 || $[14] !== t2 || $[15] !== t3 || $[16] !== t4 ? (t5 = /* @__PURE__ */ jsx(T0, {
1430
+ as: t1,
1431
+ className: t2,
1432
+ style,
1433
+ "data-ui": "Indicator",
1434
+ width: "5px",
1435
+ height: "5px",
1436
+ radius: "full",
1437
+ "aria-label": ariaLabel,
1438
+ "aria-hidden": t3,
1439
+ role: t4,
1440
+ ...rest,
1441
+ children
1442
+ }), $[8] = T0, $[9] = ariaLabel, $[10] = children, $[11] = rest, $[12] = style, $[13] = t1, $[14] = t2, $[15] = t3, $[16] = t4, $[17] = t5) : t5 = $[17], t5;
1236
1443
  }
1237
- const indicatorStackProps = {
1238
- as: {
1239
- type: "string"
1240
- }
1241
- }, indicatorStackClassName = suffixClassName("sui-IndicatorStack");
1444
+ const indicatorStackProps = { as: { type: "string" } }, indicatorStackClassName = suffixClassName("sui-IndicatorStack");
1445
+ /** @public */
1242
1446
  function IndicatorStack(props) {
1243
- const $ = c(14);
1244
- let T0, children, rest, style, t0, t1;
1245
- if ($[0] !== props) {
1246
- const {
1247
- as,
1248
- children: t22,
1249
- className,
1250
- style: t3,
1251
- ...t4
1252
- } = getProps(props, indicatorStackProps);
1253
- children = t22, style = t3, rest = t4;
1254
- const Component = as || "div";
1255
- T0 = HStack, t0 = Component, t1 = clsx(indicatorStackClassName, className), $[0] = props, $[1] = T0, $[2] = children, $[3] = rest, $[4] = style, $[5] = t0, $[6] = t1;
1256
- } else
1257
- T0 = $[1], children = $[2], rest = $[3], style = $[4], t0 = $[5], t1 = $[6];
1258
- let t2;
1259
- return $[7] !== T0 || $[8] !== children || $[9] !== rest || $[10] !== style || $[11] !== t0 || $[12] !== t1 ? (t2 = /* @__PURE__ */ jsx(T0, { as: t0, className: t1, style, "data-ui": "IndicatorStack", ...rest, children }), $[7] = T0, $[8] = children, $[9] = rest, $[10] = style, $[11] = t0, $[12] = t1, $[13] = t2) : t2 = $[13], t2;
1447
+ let $ = c(14), T0, children, rest, style, t0, t1;
1448
+ if ($[0] !== props) {
1449
+ let { as, children: t2, className, style: t3, ...t4 } = getProps(props, indicatorStackProps);
1450
+ children = t2, style = t3, rest = t4;
1451
+ let Component = as || "div";
1452
+ T0 = HStack, t0 = Component, t1 = clsx(indicatorStackClassName, className), $[0] = props, $[1] = T0, $[2] = children, $[3] = rest, $[4] = style, $[5] = t0, $[6] = t1;
1453
+ } else T0 = $[1], children = $[2], rest = $[3], style = $[4], t0 = $[5], t1 = $[6];
1454
+ let t2;
1455
+ return $[7] !== T0 || $[8] !== children || $[9] !== rest || $[10] !== style || $[11] !== t0 || $[12] !== t1 ? (t2 = /* @__PURE__ */ jsx(T0, {
1456
+ as: t0,
1457
+ className: t1,
1458
+ style,
1459
+ "data-ui": "IndicatorStack",
1460
+ ...rest,
1461
+ children
1462
+ }), $[7] = T0, $[8] = children, $[9] = rest, $[10] = style, $[11] = t0, $[12] = t1, $[13] = t2) : t2 = $[13], t2;
1260
1463
  }
1261
1464
  const inlineProps = {
1262
- as: {
1263
- type: "string"
1264
- },
1265
- gap: {
1266
- type: "composite",
1267
- values: SPACE,
1268
- composition: {
1269
- marginTop: {
1270
- propDef: marginProps.marginTop,
1271
- mapping: {
1272
- 0: 0,
1273
- 1: -1,
1274
- 2: -2,
1275
- 3: -3,
1276
- 4: -4,
1277
- 5: -5,
1278
- 6: -6,
1279
- 7: -7,
1280
- 8: -8,
1281
- 9: -9
1282
- }
1283
- },
1284
- marginLeft: {
1285
- propDef: marginProps.marginLeft,
1286
- mapping: {
1287
- 0: 0,
1288
- 1: -1,
1289
- 2: -2,
1290
- 3: -3,
1291
- 4: -4,
1292
- 5: -5,
1293
- 6: -6,
1294
- 7: -7,
1295
- 8: -8,
1296
- 9: -9
1297
- }
1298
- }
1299
- }
1300
- },
1301
- ...paddingProps
1302
- }, inlineChildrenProps = {
1303
- gap: {
1304
- type: "composite",
1305
- values: SPACE,
1306
- composition: {
1307
- paddingTop: {
1308
- propDef: paddingProps.paddingTop,
1309
- mapping: {
1310
- 0: 0,
1311
- 1: 1,
1312
- 2: 2,
1313
- 3: 3,
1314
- 4: 4,
1315
- 5: 5,
1316
- 6: 6,
1317
- 7: 7,
1318
- 8: 8,
1319
- 9: 9
1320
- }
1321
- },
1322
- paddingLeft: {
1323
- propDef: paddingProps.paddingLeft,
1324
- mapping: {
1325
- 0: 0,
1326
- 1: 1,
1327
- 2: 2,
1328
- 3: 3,
1329
- 4: 4,
1330
- 5: 5,
1331
- 6: 6,
1332
- 7: 7,
1333
- 8: 8,
1334
- 9: 9
1335
- }
1336
- }
1337
- }
1338
- }
1339
- }, inlineClassName = suffixClassName("sui-Inline");
1465
+ as: { type: "string" },
1466
+ gap: {
1467
+ type: "composite",
1468
+ values: SPACE,
1469
+ composition: {
1470
+ marginTop: {
1471
+ propDef: marginProps.marginTop,
1472
+ mapping: {
1473
+ 0: 0,
1474
+ 1: -1,
1475
+ 2: -2,
1476
+ 3: -3,
1477
+ 4: -4,
1478
+ 5: -5,
1479
+ 6: -6,
1480
+ 7: -7,
1481
+ 8: -8,
1482
+ 9: -9
1483
+ }
1484
+ },
1485
+ marginLeft: {
1486
+ propDef: marginProps.marginLeft,
1487
+ mapping: {
1488
+ 0: 0,
1489
+ 1: -1,
1490
+ 2: -2,
1491
+ 3: -3,
1492
+ 4: -4,
1493
+ 5: -5,
1494
+ 6: -6,
1495
+ 7: -7,
1496
+ 8: -8,
1497
+ 9: -9
1498
+ }
1499
+ }
1500
+ }
1501
+ },
1502
+ ...paddingProps
1503
+ }, inlineChildrenProps = { gap: {
1504
+ type: "composite",
1505
+ values: SPACE,
1506
+ composition: {
1507
+ paddingTop: {
1508
+ propDef: paddingProps.paddingTop,
1509
+ mapping: {
1510
+ 0: 0,
1511
+ 1: 1,
1512
+ 2: 2,
1513
+ 3: 3,
1514
+ 4: 4,
1515
+ 5: 5,
1516
+ 6: 6,
1517
+ 7: 7,
1518
+ 8: 8,
1519
+ 9: 9
1520
+ }
1521
+ },
1522
+ paddingLeft: {
1523
+ propDef: paddingProps.paddingLeft,
1524
+ mapping: {
1525
+ 0: 0,
1526
+ 1: 1,
1527
+ 2: 2,
1528
+ 3: 3,
1529
+ 4: 4,
1530
+ 5: 5,
1531
+ 6: 6,
1532
+ 7: 7,
1533
+ 8: 8,
1534
+ 9: 9
1535
+ }
1536
+ }
1537
+ }
1538
+ } }, inlineClassName = suffixClassName("sui-Inline");
1539
+ /** @deprecated Use HStack component instead */
1540
+ /** @public */
1340
1541
  function Inline(props) {
1341
- const $ = c(14);
1342
- let T0, children, rest, style, t0;
1343
- if ($[0] !== props) {
1344
- const {
1345
- as,
1346
- children: childrenProp,
1347
- className,
1348
- style: t12,
1349
- ...t2
1350
- } = getProps(props, inlineProps);
1351
- style = t12, rest = t2;
1352
- const {
1353
- className: childrenClassName
1354
- } = getProps(props, inlineChildrenProps), Component = as || "div";
1355
- let t3;
1356
- $[6] !== childrenClassName ? (t3 = (child) => child && /* @__PURE__ */ jsx("div", { className: childrenClassName, children: child }), $[6] = childrenClassName, $[7] = t3) : t3 = $[7], children = Children.map(childrenProp, t3), T0 = Component, t0 = clsx(inlineClassName, className), $[0] = props, $[1] = T0, $[2] = children, $[3] = rest, $[4] = style, $[5] = t0;
1357
- } else
1358
- T0 = $[1], children = $[2], rest = $[3], style = $[4], t0 = $[5];
1359
- let t1;
1360
- return $[8] !== T0 || $[9] !== children || $[10] !== rest || $[11] !== style || $[12] !== t0 ? (t1 = /* @__PURE__ */ jsx(T0, { className: t0, style, "data-ui": "Inline", ...rest, children }), $[8] = T0, $[9] = children, $[10] = rest, $[11] = style, $[12] = t0, $[13] = t1) : t1 = $[13], t1;
1542
+ let $ = c(14), T0, children, rest, style, t0;
1543
+ if ($[0] !== props) {
1544
+ let { as, children: childrenProp, className, style: t1, ...t2 } = getProps(props, inlineProps);
1545
+ style = t1, rest = t2;
1546
+ let { className: childrenClassName } = getProps(props, inlineChildrenProps), Component = as || "div", t3;
1547
+ $[6] === childrenClassName ? t3 = $[7] : (t3 = (child) => child && /* @__PURE__ */ jsx("div", {
1548
+ className: childrenClassName,
1549
+ children: child
1550
+ }), $[6] = childrenClassName, $[7] = t3), children = Children.map(childrenProp, t3), T0 = Component, t0 = clsx(inlineClassName, className), $[0] = props, $[1] = T0, $[2] = children, $[3] = rest, $[4] = style, $[5] = t0;
1551
+ } else T0 = $[1], children = $[2], rest = $[3], style = $[4], t0 = $[5];
1552
+ let t1;
1553
+ return $[8] !== T0 || $[9] !== children || $[10] !== rest || $[11] !== style || $[12] !== t0 ? (t1 = /* @__PURE__ */ jsx(T0, {
1554
+ className: t0,
1555
+ style,
1556
+ "data-ui": "Inline",
1557
+ ...rest,
1558
+ children
1559
+ }), $[8] = T0, $[9] = children, $[10] = rest, $[11] = style, $[12] = t0, $[13] = t1) : t1 = $[13], t1;
1361
1560
  }
1362
1561
  const linkProps = {
1363
- openInNewTab: {
1364
- type: "boolean"
1365
- },
1366
- underlined: {
1367
- type: "boolean",
1368
- className: "underlined"
1369
- }
1562
+ openInNewTab: { type: "boolean" },
1563
+ underlined: {
1564
+ type: "boolean",
1565
+ className: "underlined"
1566
+ }
1370
1567
  }, linkClassName = suffixClassName("sui-Link");
1568
+ /** @beta */
1371
1569
  function Link(t0) {
1372
- const $ = c(14);
1373
- let children, openInNewTab, rest, style, t1;
1374
- if ($[0] !== t0) {
1375
- const {
1376
- underlined: t22,
1377
- ...props
1378
- } = t0, underlined = t22 === void 0 ? !0 : t22, {
1379
- children: t32,
1380
- className,
1381
- style: t4,
1382
- openInNewTab: t5,
1383
- ...t6
1384
- } = getProps({
1385
- underlined,
1386
- ...props
1387
- }, linkProps);
1388
- children = t32, style = t4, openInNewTab = t5, rest = t6, t1 = clsx(linkClassName, className), $[0] = t0, $[1] = children, $[2] = openInNewTab, $[3] = rest, $[4] = style, $[5] = t1;
1389
- } else
1390
- children = $[1], openInNewTab = $[2], rest = $[3], style = $[4], t1 = $[5];
1391
- let t2;
1392
- $[6] !== openInNewTab ? (t2 = openInNewTab ? {
1393
- target: "_blank",
1394
- rel: "noopener noreferrer"
1395
- } : {}, $[6] = openInNewTab, $[7] = t2) : t2 = $[7];
1396
- let t3;
1397
- return $[8] !== children || $[9] !== rest || $[10] !== style || $[11] !== t1 || $[12] !== t2 ? (t3 = /* @__PURE__ */ jsx("a", { className: t1, style, "data-ui": "Link", ...t2, ...rest, children }), $[8] = children, $[9] = rest, $[10] = style, $[11] = t1, $[12] = t2, $[13] = t3) : t3 = $[13], t3;
1570
+ let $ = c(14), children, openInNewTab, rest, style, t1;
1571
+ if ($[0] !== t0) {
1572
+ let { underlined: t2, ...props } = t0, { children: t3, className, style: t4, openInNewTab: t5, ...t6 } = getProps({
1573
+ underlined: t2 === void 0 || t2,
1574
+ ...props
1575
+ }, linkProps);
1576
+ children = t3, style = t4, openInNewTab = t5, rest = t6, t1 = clsx(linkClassName, className), $[0] = t0, $[1] = children, $[2] = openInNewTab, $[3] = rest, $[4] = style, $[5] = t1;
1577
+ } else children = $[1], openInNewTab = $[2], rest = $[3], style = $[4], t1 = $[5];
1578
+ let t2;
1579
+ $[6] === openInNewTab ? t2 = $[7] : (t2 = openInNewTab ? {
1580
+ target: "_blank",
1581
+ rel: "noopener noreferrer"
1582
+ } : {}, $[6] = openInNewTab, $[7] = t2);
1583
+ let t3;
1584
+ return $[8] !== children || $[9] !== rest || $[10] !== style || $[11] !== t1 || $[12] !== t2 ? (t3 = /* @__PURE__ */ jsx("a", {
1585
+ className: t1,
1586
+ style,
1587
+ "data-ui": "Link",
1588
+ ...t2,
1589
+ ...rest,
1590
+ children
1591
+ }), $[8] = children, $[9] = rest, $[10] = style, $[11] = t1, $[12] = t2, $[13] = t3) : t3 = $[13], t3;
1398
1592
  }
1399
- const pressAreaProps = {
1400
- as: {
1401
- type: "string"
1402
- }
1403
- }, pressAreaClassName = suffixClassName("sui-PressArea");
1593
+ const pressAreaProps = { as: { type: "string" } }, pressAreaClassName = suffixClassName("sui-PressArea");
1594
+ /** @public */
1404
1595
  function PressArea(props) {
1405
- const $ = c(12);
1406
- let T0, children, rest, style, t0;
1407
- if ($[0] !== props) {
1408
- const {
1409
- as,
1410
- children: t12,
1411
- className,
1412
- style: t2,
1413
- ...t3
1414
- } = getProps(props, pressAreaProps);
1415
- children = t12, style = t2, rest = t3, T0 = as || "button", t0 = clsx(pressAreaClassName, "sui-width-full", className), $[0] = props, $[1] = T0, $[2] = children, $[3] = rest, $[4] = style, $[5] = t0;
1416
- } else
1417
- T0 = $[1], children = $[2], rest = $[3], style = $[4], t0 = $[5];
1418
- let t1;
1419
- return $[6] !== T0 || $[7] !== children || $[8] !== rest || $[9] !== style || $[10] !== t0 ? (t1 = /* @__PURE__ */ jsx(T0, { className: t0, style, "data-ui": "PressArea", ...rest, children }), $[6] = T0, $[7] = children, $[8] = rest, $[9] = style, $[10] = t0, $[11] = t1) : t1 = $[11], t1;
1596
+ let $ = c(12), T0, children, rest, style, t0;
1597
+ if ($[0] !== props) {
1598
+ let { as, children: t1, className, style: t2, ...t3 } = getProps(props, pressAreaProps);
1599
+ children = t1, style = t2, rest = t3, T0 = as || "button", t0 = clsx(pressAreaClassName, "sui-width-full", className), $[0] = props, $[1] = T0, $[2] = children, $[3] = rest, $[4] = style, $[5] = t0;
1600
+ } else T0 = $[1], children = $[2], rest = $[3], style = $[4], t0 = $[5];
1601
+ let t1;
1602
+ return $[6] !== T0 || $[7] !== children || $[8] !== rest || $[9] !== style || $[10] !== t0 ? (t1 = /* @__PURE__ */ jsx(T0, {
1603
+ className: t0,
1604
+ style,
1605
+ "data-ui": "PressArea",
1606
+ ...rest,
1607
+ children
1608
+ }), $[6] = T0, $[7] = children, $[8] = rest, $[9] = style, $[10] = t0, $[11] = t1) : t1 = $[11], t1;
1420
1609
  }
1421
- const vStackProps = {
1422
- as: {
1423
- type: "string"
1424
- },
1425
- gap: gapProps.gap
1426
- }, vStackClassName = suffixClassName("sui-VStack");
1427
- function VStack(props) {
1428
- const $ = c(14);
1429
- let T0, children, rest, style, t0, t1;
1430
- if ($[0] !== props) {
1431
- const {
1432
- as,
1433
- children: t22,
1434
- className,
1435
- style: t3,
1436
- ...t4
1437
- } = getProps(props, vStackProps);
1438
- children = t22, style = t3, rest = t4;
1439
- const Component = as || "div";
1440
- T0 = Flex, t0 = Component, t1 = clsx(vStackClassName, className), $[0] = props, $[1] = T0, $[2] = children, $[3] = rest, $[4] = style, $[5] = t0, $[6] = t1;
1441
- } else
1442
- T0 = $[1], children = $[2], rest = $[3], style = $[4], t0 = $[5], t1 = $[6];
1443
- let t2;
1444
- return $[7] !== T0 || $[8] !== children || $[9] !== rest || $[10] !== style || $[11] !== t0 || $[12] !== t1 ? (t2 = /* @__PURE__ */ jsx(T0, { as: t0, className: t1, style, "data-ui": "VStack", flexDirection: "column", ...rest, children }), $[7] = T0, $[8] = children, $[9] = rest, $[10] = style, $[11] = t0, $[12] = t1, $[13] = t2) : t2 = $[13], t2;
1610
+ const vStackClassName = suffixClassName("sui-VStack");
1611
+ /** @public */
1612
+ function VStack(t0) {
1613
+ let $ = c(8), className, props;
1614
+ $[0] === t0 ? (className = $[1], props = $[2]) : ({className, ...props} = t0, $[0] = t0, $[1] = className, $[2] = props);
1615
+ let t1;
1616
+ $[3] === className ? t1 = $[4] : (t1 = clsx(vStackClassName, className), $[3] = className, $[4] = t1);
1617
+ let t2 = props, t3;
1618
+ return $[5] !== t1 || $[6] !== t2 ? (t3 = /* @__PURE__ */ jsx(Flex, {
1619
+ className: t1,
1620
+ "data-ui": "VStack",
1621
+ flexDirection: "column",
1622
+ ...t2
1623
+ }), $[5] = t1, $[6] = t2, $[7] = t3) : t3 = $[7], t3;
1445
1624
  }
1446
1625
  const listProps = {
1447
- as: {
1448
- type: "string"
1449
- },
1450
- gap: gapProps.gap
1626
+ as: { type: "string" },
1627
+ gap: gapProps.gap
1451
1628
  }, listItemProps = {
1452
- density: {
1453
- type: "composite",
1454
- values: DENSITY,
1455
- composition: {
1456
- gap: {
1457
- propDef: gapProps.gap,
1458
- mapping: {
1459
- compact: 2,
1460
- regular: 2,
1461
- loose: 3
1462
- }
1463
- },
1464
- minHeight: {
1465
- propDef: heightProps.minHeight,
1466
- mapping: {
1467
- compact: "33px",
1468
- regular: "37px",
1469
- loose: "45px"
1470
- }
1471
- },
1472
- paddingX: {
1473
- propDef: paddingProps.padding,
1474
- mapping: {
1475
- compact: 1,
1476
- regular: 2,
1477
- loose: 3
1478
- }
1479
- }
1480
- }
1481
- },
1482
- end: {
1483
- type: "string"
1484
- },
1485
- start: {
1486
- type: "string"
1487
- }
1629
+ density: {
1630
+ type: "composite",
1631
+ values: DENSITY,
1632
+ composition: {
1633
+ gap: {
1634
+ propDef: gapProps.gap,
1635
+ mapping: {
1636
+ compact: 2,
1637
+ regular: 2,
1638
+ loose: 3
1639
+ }
1640
+ },
1641
+ minHeight: {
1642
+ propDef: heightProps.minHeight,
1643
+ mapping: {
1644
+ compact: "33px",
1645
+ regular: "37px",
1646
+ loose: "45px"
1647
+ }
1648
+ },
1649
+ paddingX: {
1650
+ propDef: paddingProps.padding,
1651
+ mapping: {
1652
+ compact: 1,
1653
+ regular: 2,
1654
+ loose: 3
1655
+ }
1656
+ }
1657
+ }
1658
+ },
1659
+ end: { type: "string" },
1660
+ start: { type: "string" }
1488
1661
  }, listButtonItemProps = {
1489
- as: {
1490
- type: "string"
1491
- },
1492
- selected: {
1493
- type: "boolean"
1494
- },
1495
- ...listItemProps
1662
+ as: { type: "string" },
1663
+ selected: { type: "boolean" },
1664
+ ...listItemProps
1496
1665
  }, listItemTextProps = {
1497
- as: {
1498
- type: "string"
1499
- },
1500
- title: {
1501
- type: "string"
1502
- },
1503
- subtitle: {
1504
- type: "string"
1505
- }
1666
+ as: { type: "string" },
1667
+ title: { type: "string" },
1668
+ subtitle: { type: "string" }
1506
1669
  }, listClassName = suffixClassName("sui-List"), listItemClassName = suffixClassName("sui-ListItem"), listButtonItemClassName = suffixClassName("sui-ListButtonItem"), listItemTextClassName = suffixClassName("sui-ListItemText"), listItemImageClassName = suffixClassName("sui-ListItemImage");
1507
1670
  function ListRoot(props) {
1508
- const $ = c(14);
1509
- let T0, children, rest, style, t0, t1;
1510
- if ($[0] !== props) {
1511
- const {
1512
- as,
1513
- children: t22,
1514
- className,
1515
- style: t3,
1516
- ...t4
1517
- } = getProps(props, listProps);
1518
- children = t22, style = t3, rest = t4;
1519
- const Component = as || "ul";
1520
- T0 = VStack, t0 = Component, t1 = clsx(listClassName, className), $[0] = props, $[1] = T0, $[2] = children, $[3] = rest, $[4] = style, $[5] = t0, $[6] = t1;
1521
- } else
1522
- T0 = $[1], children = $[2], rest = $[3], style = $[4], t0 = $[5], t1 = $[6];
1523
- let t2;
1524
- return $[7] !== T0 || $[8] !== children || $[9] !== rest || $[10] !== style || $[11] !== t0 || $[12] !== t1 ? (t2 = /* @__PURE__ */ jsx(T0, { as: t0, className: t1, style, "data-ui": "List", ...rest, children }), $[7] = T0, $[8] = children, $[9] = rest, $[10] = style, $[11] = t0, $[12] = t1, $[13] = t2) : t2 = $[13], t2;
1671
+ let $ = c(14), T0, children, rest, style, t0, t1;
1672
+ if ($[0] !== props) {
1673
+ let { as, children: t2, className, style: t3, ...t4 } = getProps(props, listProps);
1674
+ children = t2, style = t3, rest = t4;
1675
+ let Component = as || "ul";
1676
+ T0 = VStack, t0 = Component, t1 = clsx(listClassName, className), $[0] = props, $[1] = T0, $[2] = children, $[3] = rest, $[4] = style, $[5] = t0, $[6] = t1;
1677
+ } else T0 = $[1], children = $[2], rest = $[3], style = $[4], t0 = $[5], t1 = $[6];
1678
+ let t2;
1679
+ return $[7] !== T0 || $[8] !== children || $[9] !== rest || $[10] !== style || $[11] !== t0 || $[12] !== t1 ? (t2 = /* @__PURE__ */ jsx(T0, {
1680
+ as: t0,
1681
+ className: t1,
1682
+ style,
1683
+ "data-ui": "List",
1684
+ ...rest,
1685
+ children
1686
+ }), $[7] = T0, $[8] = children, $[9] = rest, $[10] = style, $[11] = t0, $[12] = t1, $[13] = t2) : t2 = $[13], t2;
1525
1687
  }
1526
1688
  function ListItem(t0) {
1527
- const $ = c(16);
1528
- let children, end, rest, start, style, t1;
1529
- if ($[0] !== t0) {
1530
- const {
1531
- density: t22,
1532
- ...props
1533
- } = t0, density = t22 === void 0 ? "regular" : t22, {
1534
- children: t32,
1535
- className,
1536
- style: t4,
1537
- end: t5,
1538
- start: t6,
1539
- ...t7
1540
- } = getProps({
1541
- density,
1542
- ...props
1543
- }, listItemProps);
1544
- children = t32, style = t4, end = t5, start = t6, rest = t7, t1 = clsx(listItemClassName, "sui-width-full sui-display-flex sui-align-items-center", className), $[0] = t0, $[1] = children, $[2] = end, $[3] = rest, $[4] = start, $[5] = style, $[6] = t1;
1545
- } else
1546
- children = $[1], end = $[2], rest = $[3], start = $[4], style = $[5], t1 = $[6];
1547
- let t2;
1548
- $[7] !== children ? (t2 = /* @__PURE__ */ jsx(Flex, { flexGrow: 1, gap: "inherit", children }), $[7] = children, $[8] = t2) : t2 = $[8];
1549
- let t3;
1550
- return $[9] !== end || $[10] !== rest || $[11] !== start || $[12] !== style || $[13] !== t1 || $[14] !== t2 ? (t3 = /* @__PURE__ */ jsxs("li", { className: t1, style, "data-ui": "ListItem", ...rest, children: [
1551
- start,
1552
- t2,
1553
- end
1554
- ] }), $[9] = end, $[10] = rest, $[11] = start, $[12] = style, $[13] = t1, $[14] = t2, $[15] = t3) : t3 = $[15], t3;
1689
+ let $ = c(16), children, end, rest, start, style, t1;
1690
+ if ($[0] !== t0) {
1691
+ let { density: t2, ...props } = t0, { children: t3, className, style: t4, end: t5, start: t6, ...t7 } = getProps({
1692
+ density: t2 === void 0 ? "regular" : t2,
1693
+ ...props
1694
+ }, listItemProps);
1695
+ children = t3, style = t4, end = t5, start = t6, rest = t7, t1 = clsx(listItemClassName, "sui-width-full sui-display-flex sui-align-items-center", className), $[0] = t0, $[1] = children, $[2] = end, $[3] = rest, $[4] = start, $[5] = style, $[6] = t1;
1696
+ } else children = $[1], end = $[2], rest = $[3], start = $[4], style = $[5], t1 = $[6];
1697
+ let t2;
1698
+ $[7] === children ? t2 = $[8] : (t2 = /* @__PURE__ */ jsx(Flex, {
1699
+ flexGrow: 1,
1700
+ gap: "inherit",
1701
+ children
1702
+ }), $[7] = children, $[8] = t2);
1703
+ let t3;
1704
+ return $[9] !== end || $[10] !== rest || $[11] !== start || $[12] !== style || $[13] !== t1 || $[14] !== t2 ? (t3 = /* @__PURE__ */ jsxs("li", {
1705
+ className: t1,
1706
+ style,
1707
+ "data-ui": "ListItem",
1708
+ ...rest,
1709
+ children: [
1710
+ start,
1711
+ t2,
1712
+ end
1713
+ ]
1714
+ }), $[9] = end, $[10] = rest, $[11] = start, $[12] = style, $[13] = t1, $[14] = t2, $[15] = t3) : t3 = $[15], t3;
1555
1715
  }
1556
1716
  function ListButtonItem(t0) {
1557
- const $ = c(22);
1558
- let T0, children, end, rest, selected, start, style, t1, t2;
1559
- if ($[0] !== t0) {
1560
- const {
1561
- density: t32,
1562
- ...props
1563
- } = t0, density = t32 === void 0 ? "regular" : t32, {
1564
- as,
1565
- children: t42,
1566
- className,
1567
- style: t5,
1568
- end: t6,
1569
- start: t7,
1570
- selected: t8,
1571
- ...t9
1572
- } = getProps({
1573
- density,
1574
- ...props
1575
- }, listButtonItemProps);
1576
- children = t42, style = t5, end = t6, start = t7, selected = t8, rest = t9;
1577
- const Component = as || "button";
1578
- T0 = PressArea, t1 = Component, t2 = clsx(listButtonItemClassName, "sui-width-full sui-display-flex sui-align-items-center sui-radius2", className), $[0] = t0, $[1] = T0, $[2] = children, $[3] = end, $[4] = rest, $[5] = selected, $[6] = start, $[7] = style, $[8] = t1, $[9] = t2;
1579
- } else
1580
- T0 = $[1], children = $[2], end = $[3], rest = $[4], selected = $[5], start = $[6], style = $[7], t1 = $[8], t2 = $[9];
1581
- let t3;
1582
- $[10] !== children ? (t3 = /* @__PURE__ */ jsx(Flex, { flexGrow: 1, gap: "inherit", children }), $[10] = children, $[11] = t3) : t3 = $[11];
1583
- let t4;
1584
- return $[12] !== T0 || $[13] !== end || $[14] !== rest || $[15] !== selected || $[16] !== start || $[17] !== style || $[18] !== t1 || $[19] !== t2 || $[20] !== t3 ? (t4 = /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(T0, { as: t1, className: t2, style, "data-ui": "ListButtonItem", "data-selected": selected, ...rest, children: [
1585
- start,
1586
- t3,
1587
- end
1588
- ] }) }), $[12] = T0, $[13] = end, $[14] = rest, $[15] = selected, $[16] = start, $[17] = style, $[18] = t1, $[19] = t2, $[20] = t3, $[21] = t4) : t4 = $[21], t4;
1717
+ let $ = c(22), T0, children, end, rest, selected, start, style, t1, t2;
1718
+ if ($[0] !== t0) {
1719
+ let { density: t3, ...props } = t0, { as, children: t4, className, style: t5, end: t6, start: t7, selected: t8, ...t9 } = getProps({
1720
+ density: t3 === void 0 ? "regular" : t3,
1721
+ ...props
1722
+ }, listButtonItemProps);
1723
+ children = t4, style = t5, end = t6, start = t7, selected = t8, rest = t9;
1724
+ let Component = as || "button";
1725
+ T0 = PressArea, t1 = Component, t2 = clsx(listButtonItemClassName, "sui-width-full sui-display-flex sui-align-items-center sui-radius2", className), $[0] = t0, $[1] = T0, $[2] = children, $[3] = end, $[4] = rest, $[5] = selected, $[6] = start, $[7] = style, $[8] = t1, $[9] = t2;
1726
+ } else T0 = $[1], children = $[2], end = $[3], rest = $[4], selected = $[5], start = $[6], style = $[7], t1 = $[8], t2 = $[9];
1727
+ let t3;
1728
+ $[10] === children ? t3 = $[11] : (t3 = /* @__PURE__ */ jsx(Flex, {
1729
+ flexGrow: 1,
1730
+ gap: "inherit",
1731
+ children
1732
+ }), $[10] = children, $[11] = t3);
1733
+ let t4;
1734
+ return $[12] !== T0 || $[13] !== end || $[14] !== rest || $[15] !== selected || $[16] !== start || $[17] !== style || $[18] !== t1 || $[19] !== t2 || $[20] !== t3 ? (t4 = /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(T0, {
1735
+ as: t1,
1736
+ className: t2,
1737
+ style,
1738
+ "data-ui": "ListButtonItem",
1739
+ "data-selected": selected,
1740
+ ...rest,
1741
+ children: [
1742
+ start,
1743
+ t3,
1744
+ end
1745
+ ]
1746
+ }) }), $[12] = T0, $[13] = end, $[14] = rest, $[15] = selected, $[16] = start, $[17] = style, $[18] = t1, $[19] = t2, $[20] = t3, $[21] = t4) : t4 = $[21], t4;
1589
1747
  }
1590
1748
  function ListItemText(props) {
1591
- const $ = c(20);
1592
- let T0, rest, style, subtitle, t0, t1, title;
1593
- if ($[0] !== props) {
1594
- const {
1595
- as,
1596
- className,
1597
- style: t22,
1598
- title: t32,
1599
- subtitle: t42,
1600
- ...t5
1601
- } = getProps(props, listItemTextProps);
1602
- style = t22, title = t32, subtitle = t42, rest = t5;
1603
- const Component = as || "div";
1604
- T0 = Flex, t0 = Component, t1 = clsx(listItemTextClassName, className), $[0] = props, $[1] = T0, $[2] = rest, $[3] = style, $[4] = subtitle, $[5] = t0, $[6] = t1, $[7] = title;
1605
- } else
1606
- T0 = $[1], rest = $[2], style = $[3], subtitle = $[4], t0 = $[5], t1 = $[6], title = $[7];
1607
- let t2;
1608
- $[8] !== title ? (t2 = title && /* @__PURE__ */ jsx(Text, { size: 1, weight: "medium", trim: !0, truncate: 1, children: title }), $[8] = title, $[9] = t2) : t2 = $[9];
1609
- let t3;
1610
- $[10] !== subtitle ? (t3 = subtitle && /* @__PURE__ */ jsx(Text, { size: 1, muted: !0, trim: !0, truncate: 1, children: subtitle }), $[10] = subtitle, $[11] = t3) : t3 = $[11];
1611
- let t4;
1612
- return $[12] !== T0 || $[13] !== rest || $[14] !== style || $[15] !== t0 || $[16] !== t1 || $[17] !== t2 || $[18] !== t3 ? (t4 = /* @__PURE__ */ jsxs(T0, { as: t0, className: t1, style, "data-ui": "ListItemText", flexDirection: "column", justifyContent: "center", gap: 2, flexGrow: 1, ...rest, children: [
1613
- t2,
1614
- t3
1615
- ] }), $[12] = T0, $[13] = rest, $[14] = style, $[15] = t0, $[16] = t1, $[17] = t2, $[18] = t3, $[19] = t4) : t4 = $[19], t4;
1749
+ let $ = c(20), T0, rest, style, subtitle, t0, t1, title;
1750
+ if ($[0] !== props) {
1751
+ let { as, className, style: t2, title: t3, subtitle: t4, ...t5 } = getProps(props, listItemTextProps);
1752
+ style = t2, title = t3, subtitle = t4, rest = t5;
1753
+ let Component = as || "div";
1754
+ T0 = Flex, t0 = Component, t1 = clsx(listItemTextClassName, className), $[0] = props, $[1] = T0, $[2] = rest, $[3] = style, $[4] = subtitle, $[5] = t0, $[6] = t1, $[7] = title;
1755
+ } else T0 = $[1], rest = $[2], style = $[3], subtitle = $[4], t0 = $[5], t1 = $[6], title = $[7];
1756
+ let t2;
1757
+ $[8] === title ? t2 = $[9] : (t2 = title && /* @__PURE__ */ jsx(Text, {
1758
+ size: 1,
1759
+ weight: "medium",
1760
+ trim: !0,
1761
+ truncate: 1,
1762
+ children: title
1763
+ }), $[8] = title, $[9] = t2);
1764
+ let t3;
1765
+ $[10] === subtitle ? t3 = $[11] : (t3 = subtitle && /* @__PURE__ */ jsx(Text, {
1766
+ size: 1,
1767
+ muted: !0,
1768
+ trim: !0,
1769
+ truncate: 1,
1770
+ children: subtitle
1771
+ }), $[10] = subtitle, $[11] = t3);
1772
+ let t4;
1773
+ return $[12] !== T0 || $[13] !== rest || $[14] !== style || $[15] !== t0 || $[16] !== t1 || $[17] !== t2 || $[18] !== t3 ? (t4 = /* @__PURE__ */ jsxs(T0, {
1774
+ as: t0,
1775
+ className: t1,
1776
+ style,
1777
+ "data-ui": "ListItemText",
1778
+ flexDirection: "column",
1779
+ justifyContent: "center",
1780
+ gap: 2,
1781
+ flexGrow: 1,
1782
+ ...rest,
1783
+ children: [t2, t3]
1784
+ }), $[12] = T0, $[13] = rest, $[14] = style, $[15] = t0, $[16] = t1, $[17] = t2, $[18] = t3, $[19] = t4) : t4 = $[19], t4;
1616
1785
  }
1617
1786
  function ListItemImage(props) {
1618
- const $ = c(8);
1619
- let rest, style, t0;
1620
- if ($[0] !== props) {
1621
- const {
1622
- className,
1623
- style: t12,
1624
- ...t2
1625
- } = getProps(props, {});
1626
- style = t12, rest = t2, t0 = clsx(listItemImageClassName, "sui-radius2", className), $[0] = props, $[1] = rest, $[2] = style, $[3] = t0;
1627
- } else
1628
- rest = $[1], style = $[2], t0 = $[3];
1629
- let t1;
1630
- return $[4] !== rest || $[5] !== style || $[6] !== t0 ? (t1 = /* @__PURE__ */ jsx("img", { className: t0, style, "data-ui": "ListItemImage", ...rest }), $[4] = rest, $[5] = style, $[6] = t0, $[7] = t1) : t1 = $[7], t1;
1787
+ let $ = c(8), rest, style, t0;
1788
+ if ($[0] !== props) {
1789
+ let { className, style: t1, ...t2 } = getProps(props, {});
1790
+ style = t1, rest = t2, t0 = clsx(listItemImageClassName, "sui-radius2", className), $[0] = props, $[1] = rest, $[2] = style, $[3] = t0;
1791
+ } else rest = $[1], style = $[2], t0 = $[3];
1792
+ let t1;
1793
+ return $[4] !== rest || $[5] !== style || $[6] !== t0 ? (t1 = /* @__PURE__ */ jsx("img", {
1794
+ className: t0,
1795
+ style,
1796
+ "data-ui": "ListItemImage",
1797
+ ...rest
1798
+ }), $[4] = rest, $[5] = style, $[6] = t0, $[7] = t1) : t1 = $[7], t1;
1631
1799
  }
1632
1800
  ListRoot.displayName = "List";
1801
+ /** @beta */
1633
1802
  const List = ListRoot;
1634
- ListRoot.Item = ListItem;
1635
- ListRoot.ButtonItem = ListButtonItem;
1636
- ListRoot.ItemText = ListItemText;
1637
- ListRoot.ItemImage = ListItemImage;
1638
- const radioProps = {
1639
- error: {
1640
- type: "boolean"
1641
- },
1642
- label: {
1643
- type: "string"
1644
- },
1645
- ...marginProps
1803
+ ListRoot.Item = ListItem, ListRoot.ButtonItem = ListButtonItem, ListRoot.ItemText = ListItemText, ListRoot.ItemImage = ListItemImage;
1804
+ /** @public */
1805
+ function useIsClient() {
1806
+ return useSyncExternalStore(_temp2, _temp3, _temp4);
1807
+ }
1808
+ function _temp4() {
1809
+ return !1;
1810
+ }
1811
+ function _temp3() {
1812
+ return !0;
1813
+ }
1814
+ function _temp2() {
1815
+ return _temp;
1816
+ }
1817
+ function _temp() {}
1818
+ function isReactEventHandler(key, value) {
1819
+ return /^on[A-Z]/.test(key) && typeof value == "function";
1820
+ }
1821
+ function chainEventHandlers(...handlers) {
1822
+ let defined = handlers.filter(Boolean);
1823
+ if (defined.length !== 0) return defined.length === 1 ? defined[0] : (e) => {
1824
+ for (let handler of defined) handler(e);
1825
+ };
1826
+ }
1827
+ function mergeTriggerProps(childProps, forwardedProps, ownProps) {
1828
+ let result = {};
1829
+ for (let source of [forwardedProps, ownProps]) if (source) {
1830
+ for (let [key, value] of Object.entries(source)) if (key !== "style") {
1831
+ if (isReactEventHandler(key, value)) {
1832
+ result[key] = chainEventHandlers(result[key], value);
1833
+ continue;
1834
+ }
1835
+ value !== void 0 && (result[key] = value);
1836
+ }
1837
+ }
1838
+ result.style = {
1839
+ ...childProps.style,
1840
+ ...forwardedProps?.style,
1841
+ ...ownProps?.style
1842
+ };
1843
+ for (let [key, value] of Object.entries(childProps)) isReactEventHandler(key, value) && (result[key] = chainEventHandlers(result[key], value));
1844
+ return result;
1845
+ }
1846
+ function renderPortal(node, mounted, portal) {
1847
+ return portal ? mounted ? createPortal(node, document.body) : null : node;
1848
+ }
1849
+ const placementProps = { placement: {
1850
+ type: "union",
1851
+ className: "placement",
1852
+ values: [
1853
+ "top",
1854
+ "top-start",
1855
+ "top-end",
1856
+ "right",
1857
+ "right-start",
1858
+ "right-end",
1859
+ "bottom",
1860
+ "bottom-start",
1861
+ "bottom-end",
1862
+ "left",
1863
+ "left-start",
1864
+ "left-end"
1865
+ ]
1866
+ } }, popoverProps = {
1867
+ anchorName: { type: "string" },
1868
+ content: { type: "string" },
1869
+ portal: { type: "boolean" },
1870
+ ...placementProps
1871
+ }, popoverClassName = suffixClassName("sui-PopoverContent");
1872
+ function PopoverRoot(t0) {
1873
+ let $ = c(4), { placement: t1, ...props } = t0, { children, className, style, id: idProp, anchorName, content, portal, triggerProps: forwardedTriggerProps, ...rest } = getProps({
1874
+ placement: t1 === void 0 ? "bottom" : t1,
1875
+ ...props
1876
+ }, popoverProps), reactId = useId(), id = idProp || reactId, [open, setOpen] = useState(!1), isClient = useIsClient(), t2;
1877
+ $[0] === Symbol.for("react.memo_cache_sentinel") ? (t2 = (e) => {
1878
+ setOpen(e.newState === "open");
1879
+ }, $[0] = t2) : t2 = $[0];
1880
+ let handleToggle = t2, triggerProps = {
1881
+ popoverTarget: id,
1882
+ style: { anchorName: `--anchor-${anchorName || id}` }
1883
+ }, trigger = children.type.forwardsTriggerProps ? cloneElement(children, { triggerProps }) : cloneElement(children, mergeTriggerProps(children.props, forwardedTriggerProps, triggerProps)), t3 = renderPortal(/* @__PURE__ */ jsx(Activity, {
1884
+ mode: open ? "visible" : "hidden",
1885
+ children: /* @__PURE__ */ jsx("div", {
1886
+ className: clsx(popoverClassName, "sui-px2 sui-py1 sui-radius2 sui-position-fixed sui-shadow2", className),
1887
+ style: {
1888
+ ...style,
1889
+ positionAnchor: `--anchor-${anchorName || id}`
1890
+ },
1891
+ "data-ui": "Popover",
1892
+ popover: "auto",
1893
+ id,
1894
+ onToggle: handleToggle,
1895
+ ...rest,
1896
+ children: content
1897
+ })
1898
+ }), isClient, portal), t4;
1899
+ return $[1] !== t3 || $[2] !== trigger ? (t4 = /* @__PURE__ */ jsxs(Fragment, { children: [trigger, t3] }), $[1] = t3, $[2] = trigger, $[3] = t4) : t4 = $[3], t4;
1900
+ }
1901
+ /** @beta */
1902
+ const Popover = Object.assign(PopoverRoot, { forwardsTriggerProps: !0 }), radioProps = {
1903
+ error: { type: "boolean" },
1904
+ label: { type: "string" },
1905
+ ...marginProps
1646
1906
  }, radioClassName = suffixClassName("sui-Radio"), radioInputClassName = suffixClassName("sui-RadioInput"), radioMarkClassName = suffixClassName("sui-RadioMark");
1907
+ /** @beta */
1647
1908
  function Radio(props) {
1648
- const $ = c(26);
1649
- let T0, T1, label, t0, t1, t2, t3, t4, t5, t6, t7;
1650
- if ($[0] !== props) {
1651
- const {
1652
- className,
1653
- style,
1654
- label: t82,
1655
- disabled,
1656
- error,
1657
- ...rest
1658
- } = getProps(props, radioProps);
1659
- label = t82, T1 = Label, t2 = clsx(radioClassName, className), t3 = style, t4 = "Radio", t5 = disabled, t6 = error, t7 = /* @__PURE__ */ jsx(VisuallyHidden, { as: "input", type: "radio", className: radioInputClassName, disabled, ...rest }), T0 = Box, t0 = "span", t1 = clsx(radioMarkClassName, error && "sui-error"), $[0] = props, $[1] = T0, $[2] = T1, $[3] = label, $[4] = t0, $[5] = t1, $[6] = t2, $[7] = t3, $[8] = t4, $[9] = t5, $[10] = t6, $[11] = t7;
1660
- } else
1661
- T0 = $[1], T1 = $[2], label = $[3], t0 = $[4], t1 = $[5], t2 = $[6], t3 = $[7], t4 = $[8], t5 = $[9], t6 = $[10], t7 = $[11];
1662
- let t8;
1663
- $[12] !== T0 || $[13] !== t0 || $[14] !== t1 ? (t8 = /* @__PURE__ */ jsx(T0, { as: t0, className: t1, position: "relative", radius: "full", width: "17px", height: "17px" }), $[12] = T0, $[13] = t0, $[14] = t1, $[15] = t8) : t8 = $[15];
1664
- let t9;
1665
- return $[16] !== T1 || $[17] !== label || $[18] !== t2 || $[19] !== t3 || $[20] !== t4 || $[21] !== t5 || $[22] !== t6 || $[23] !== t7 || $[24] !== t8 ? (t9 = /* @__PURE__ */ jsxs(T1, { className: t2, style: t3, "data-ui": t4, disabled: t5, error: t6, children: [
1666
- t7,
1667
- t8,
1668
- label
1669
- ] }), $[16] = T1, $[17] = label, $[18] = t2, $[19] = t3, $[20] = t4, $[21] = t5, $[22] = t6, $[23] = t7, $[24] = t8, $[25] = t9) : t9 = $[25], t9;
1909
+ let $ = c(26), T0, T1, label, t0, t1, t2, t3, t4, t5, t6, t7;
1910
+ if ($[0] !== props) {
1911
+ let { className, style, label: t8, disabled, error, ...rest } = getProps(props, radioProps);
1912
+ label = t8, T1 = Label, t2 = clsx(radioClassName, "sui-position-relative", className), t3 = style, t4 = "Radio", t5 = disabled, t6 = error, t7 = /* @__PURE__ */ jsx(VisuallyHidden, {
1913
+ as: "input",
1914
+ type: "radio",
1915
+ className: radioInputClassName,
1916
+ disabled,
1917
+ ...rest
1918
+ }), T0 = Box, t0 = "span", t1 = clsx(radioMarkClassName, error && "sui-error"), $[0] = props, $[1] = T0, $[2] = T1, $[3] = label, $[4] = t0, $[5] = t1, $[6] = t2, $[7] = t3, $[8] = t4, $[9] = t5, $[10] = t6, $[11] = t7;
1919
+ } else T0 = $[1], T1 = $[2], label = $[3], t0 = $[4], t1 = $[5], t2 = $[6], t3 = $[7], t4 = $[8], t5 = $[9], t6 = $[10], t7 = $[11];
1920
+ let t8;
1921
+ $[12] !== T0 || $[13] !== t0 || $[14] !== t1 ? (t8 = /* @__PURE__ */ jsx(T0, {
1922
+ as: t0,
1923
+ className: t1,
1924
+ position: "relative",
1925
+ radius: "full",
1926
+ width: "17px",
1927
+ height: "17px"
1928
+ }), $[12] = T0, $[13] = t0, $[14] = t1, $[15] = t8) : t8 = $[15];
1929
+ let t9;
1930
+ return $[16] !== T1 || $[17] !== label || $[18] !== t2 || $[19] !== t3 || $[20] !== t4 || $[21] !== t5 || $[22] !== t6 || $[23] !== t7 || $[24] !== t8 ? (t9 = /* @__PURE__ */ jsxs(T1, {
1931
+ className: t2,
1932
+ style: t3,
1933
+ "data-ui": t4,
1934
+ disabled: t5,
1935
+ error: t6,
1936
+ children: [
1937
+ t7,
1938
+ t8,
1939
+ label
1940
+ ]
1941
+ }), $[16] = T1, $[17] = label, $[18] = t2, $[19] = t3, $[20] = t4, $[21] = t5, $[22] = t6, $[23] = t7, $[24] = t8, $[25] = t9) : t9 = $[25], t9;
1942
+ }
1943
+ const selectProps = {
1944
+ disabled: { type: "boolean" },
1945
+ hasError: { type: "boolean" },
1946
+ density: {
1947
+ type: "composite",
1948
+ values: ["regular", "loose"],
1949
+ composition: {
1950
+ paddingX: {
1951
+ propDef: paddingProps.paddingX,
1952
+ mapping: {
1953
+ regular: 2,
1954
+ loose: 3
1955
+ }
1956
+ },
1957
+ paddingY: {
1958
+ propDef: paddingProps.paddingY,
1959
+ mapping: {
1960
+ regular: 1,
1961
+ loose: 2
1962
+ }
1963
+ }
1964
+ }
1965
+ }
1966
+ }, selectClassName = suffixClassName("sui-Select");
1967
+ /** @public */
1968
+ function Select(t0) {
1969
+ let $ = c(17), { density: t1, hasError: t2, ...props } = t0, density = t1 === void 0 ? "regular" : t1, hasError = t2 !== void 0 && t2, { children, className, style, ...rest } = getProps({
1970
+ density,
1971
+ ...props
1972
+ }, selectProps), anchorName = `--anchor-${useId()}`, selectClasses = clsx(selectClassName, hasError && "sui-error", "sui-radius2", "sui-width-full", className), t3;
1973
+ $[0] !== anchorName || $[1] !== style ? (t3 = {
1974
+ ...style,
1975
+ anchorName
1976
+ }, $[0] = anchorName, $[1] = style, $[2] = t3) : t3 = $[2];
1977
+ let t4 = hasError || void 0, t5;
1978
+ $[3] !== children || $[4] !== rest || $[5] !== selectClasses || $[6] !== t3 || $[7] !== t4 ? (t5 = /* @__PURE__ */ jsx("select", {
1979
+ "data-ui": "Select",
1980
+ className: selectClasses,
1981
+ style: t3,
1982
+ ...rest,
1983
+ "aria-invalid": t4,
1984
+ children
1985
+ }), $[3] = children, $[4] = rest, $[5] = selectClasses, $[6] = t3, $[7] = t4, $[8] = t5) : t5 = $[8];
1986
+ let t6;
1987
+ $[9] === anchorName ? t6 = $[10] : (t6 = { positionAnchor: anchorName }, $[9] = anchorName, $[10] = t6);
1988
+ let t7;
1989
+ $[11] === Symbol.for("react.memo_cache_sentinel") ? (t7 = /* @__PURE__ */ jsx(Icon, {
1990
+ icon: SelectIcon,
1991
+ size: 1
1992
+ }), $[11] = t7) : t7 = $[11];
1993
+ let t8;
1994
+ $[12] === t6 ? t8 = $[13] : (t8 = /* @__PURE__ */ jsx("div", {
1995
+ className: "sui-position-absolute sui-display-flex sui-align-items-center sui-px1",
1996
+ "data-ui": "Select-icon",
1997
+ style: t6,
1998
+ children: t7
1999
+ }), $[12] = t6, $[13] = t8);
2000
+ let t9;
2001
+ return $[14] !== t5 || $[15] !== t8 ? (t9 = /* @__PURE__ */ jsxs(Fragment, { children: [t5, t8] }), $[14] = t5, $[15] = t8, $[16] = t9) : t9 = $[16], t9;
1670
2002
  }
1671
- const skipToContentProps = {
1672
- label: {
1673
- type: "string"
1674
- }
1675
- }, skipToContentClassName = suffixClassName("sui-SkipToContent");
2003
+ const skipToContentProps = { label: { type: "string" } }, skipToContentClassName = suffixClassName("sui-SkipToContent");
2004
+ /** @beta */
1676
2005
  function SkipToContent(props) {
1677
- const $ = c(18);
1678
- let T0, label, rest, style, t0, t1, t2;
1679
- if ($[0] !== props) {
1680
- const {
1681
- className,
1682
- label: t32,
1683
- style: t42,
1684
- ...t5
1685
- } = getProps(props, skipToContentProps);
1686
- label = t32, style = t42, rest = t5, T0 = VisuallyHidden, t0 = Link, t1 = !1, t2 = clsx(skipToContentClassName, "sui-position-absolute sui-top2 sui-left2 sui-display-inline-block sui-z-index sui-py2 sui-px3 sui-radius2 sui-text-body1", className), $[0] = props, $[1] = T0, $[2] = label, $[3] = rest, $[4] = style, $[5] = t0, $[6] = t1, $[7] = t2;
1687
- } else
1688
- T0 = $[1], label = $[2], rest = $[3], style = $[4], t0 = $[5], t1 = $[6], t2 = $[7];
1689
- let t3;
1690
- $[8] !== label ? (t3 = /* @__PURE__ */ jsx(Text, { size: 1, children: label }), $[8] = label, $[9] = t3) : t3 = $[9];
1691
- let t4;
1692
- return $[10] !== T0 || $[11] !== rest || $[12] !== style || $[13] !== t0 || $[14] !== t1 || $[15] !== t2 || $[16] !== t3 ? (t4 = /* @__PURE__ */ jsx(T0, { as: t0, underlined: t1, className: t2, style, "data-ui": "SkipToContent", visibleOnFocus: !0, ...rest, children: t3 }), $[10] = T0, $[11] = rest, $[12] = style, $[13] = t0, $[14] = t1, $[15] = t2, $[16] = t3, $[17] = t4) : t4 = $[17], t4;
2006
+ let $ = c(18), T0, label, rest, style, t0, t1, t2;
2007
+ if ($[0] !== props) {
2008
+ let { className, label: t3, style: t4, ...t5 } = getProps(props, skipToContentProps);
2009
+ label = t3, style = t4, rest = t5, T0 = VisuallyHidden, t0 = Link, t1 = !1, t2 = clsx(skipToContentClassName, "sui-position-absolute sui-top2 sui-left2 sui-display-inline-block sui-z-index sui-py2 sui-px3 sui-radius2 sui-text-body1", className), $[0] = props, $[1] = T0, $[2] = label, $[3] = rest, $[4] = style, $[5] = t0, $[6] = t1, $[7] = t2;
2010
+ } else T0 = $[1], label = $[2], rest = $[3], style = $[4], t0 = $[5], t1 = $[6], t2 = $[7];
2011
+ let t3;
2012
+ $[8] === label ? t3 = $[9] : (t3 = /* @__PURE__ */ jsx(Text, {
2013
+ size: 1,
2014
+ children: label
2015
+ }), $[8] = label, $[9] = t3);
2016
+ let t4;
2017
+ return $[10] !== T0 || $[11] !== rest || $[12] !== style || $[13] !== t0 || $[14] !== t1 || $[15] !== t2 || $[16] !== t3 ? (t4 = /* @__PURE__ */ jsx(T0, {
2018
+ as: t0,
2019
+ underlined: t1,
2020
+ className: t2,
2021
+ style,
2022
+ "data-ui": "SkipToContent",
2023
+ visibleOnFocus: !0,
2024
+ ...rest,
2025
+ children: t3
2026
+ }), $[10] = T0, $[11] = rest, $[12] = style, $[13] = t0, $[14] = t1, $[15] = t2, $[16] = t3, $[17] = t4) : t4 = $[17], t4;
1693
2027
  }
1694
2028
  const switchProps = {
1695
- error: {
1696
- type: "boolean"
1697
- },
1698
- label: {
1699
- type: "string"
1700
- },
1701
- ...marginProps
2029
+ error: { type: "boolean" },
2030
+ label: { type: "string" },
2031
+ ...marginProps
1702
2032
  }, switchClassName = suffixClassName("sui-Switch"), switchInputClassName = suffixClassName("sui-SwitchInput"), switchMarkClassName = suffixClassName("sui-SwitchMark");
2033
+ /** @beta */
1703
2034
  function Switch(props) {
1704
- const $ = c(26);
1705
- let T0, T1, label, t0, t1, t2, t3, t4, t5, t6, t7;
1706
- if ($[0] !== props) {
1707
- const {
1708
- className,
1709
- style,
1710
- disabled,
1711
- error,
1712
- label: t82,
1713
- ...rest
1714
- } = getProps(props, switchProps);
1715
- label = t82, T1 = Label, t2 = clsx(switchClassName, className), t3 = style, t4 = "Switch", t5 = props.disabled, t6 = error, t7 = /* @__PURE__ */ jsx(VisuallyHidden, { as: "input", type: "checkbox", role: "switch", className: switchInputClassName, disabled, ...rest }), T0 = Flex, t0 = "span", t1 = clsx(switchMarkClassName, error && "sui-error"), $[0] = props, $[1] = T0, $[2] = T1, $[3] = label, $[4] = t0, $[5] = t1, $[6] = t2, $[7] = t3, $[8] = t4, $[9] = t5, $[10] = t6, $[11] = t7;
1716
- } else
1717
- T0 = $[1], T1 = $[2], label = $[3], t0 = $[4], t1 = $[5], t2 = $[6], t3 = $[7], t4 = $[8], t5 = $[9], t6 = $[10], t7 = $[11];
1718
- let t8;
1719
- $[12] !== T0 || $[13] !== t0 || $[14] !== t1 ? (t8 = /* @__PURE__ */ jsx(T0, { as: t0, className: t1, alignItems: "center", radius: 6, "aria-hidden": "true" }), $[12] = T0, $[13] = t0, $[14] = t1, $[15] = t8) : t8 = $[15];
1720
- let t9;
1721
- return $[16] !== T1 || $[17] !== label || $[18] !== t2 || $[19] !== t3 || $[20] !== t4 || $[21] !== t5 || $[22] !== t6 || $[23] !== t7 || $[24] !== t8 ? (t9 = /* @__PURE__ */ jsxs(T1, { className: t2, style: t3, "data-ui": t4, disabled: t5, error: t6, children: [
1722
- t7,
1723
- t8,
1724
- label
1725
- ] }), $[16] = T1, $[17] = label, $[18] = t2, $[19] = t3, $[20] = t4, $[21] = t5, $[22] = t6, $[23] = t7, $[24] = t8, $[25] = t9) : t9 = $[25], t9;
2035
+ let $ = c(26), T0, T1, label, t0, t1, t2, t3, t4, t5, t6, t7;
2036
+ if ($[0] !== props) {
2037
+ let { className, style, disabled, error, label: t8, ...rest } = getProps(props, switchProps);
2038
+ label = t8, T1 = Label, t2 = clsx(switchClassName, "sui-position-relative", className), t3 = style, t4 = "Switch", t5 = props.disabled, t6 = error, t7 = /* @__PURE__ */ jsx(VisuallyHidden, {
2039
+ as: "input",
2040
+ type: "checkbox",
2041
+ role: "switch",
2042
+ className: switchInputClassName,
2043
+ disabled,
2044
+ ...rest
2045
+ }), T0 = Flex, t0 = "span", t1 = clsx(switchMarkClassName, error && "sui-error"), $[0] = props, $[1] = T0, $[2] = T1, $[3] = label, $[4] = t0, $[5] = t1, $[6] = t2, $[7] = t3, $[8] = t4, $[9] = t5, $[10] = t6, $[11] = t7;
2046
+ } else T0 = $[1], T1 = $[2], label = $[3], t0 = $[4], t1 = $[5], t2 = $[6], t3 = $[7], t4 = $[8], t5 = $[9], t6 = $[10], t7 = $[11];
2047
+ let t8;
2048
+ $[12] !== T0 || $[13] !== t0 || $[14] !== t1 ? (t8 = /* @__PURE__ */ jsx(T0, {
2049
+ as: t0,
2050
+ className: t1,
2051
+ alignItems: "center",
2052
+ radius: 6,
2053
+ "aria-hidden": "true"
2054
+ }), $[12] = T0, $[13] = t0, $[14] = t1, $[15] = t8) : t8 = $[15];
2055
+ let t9;
2056
+ return $[16] !== T1 || $[17] !== label || $[18] !== t2 || $[19] !== t3 || $[20] !== t4 || $[21] !== t5 || $[22] !== t6 || $[23] !== t7 || $[24] !== t8 ? (t9 = /* @__PURE__ */ jsxs(T1, {
2057
+ className: t2,
2058
+ style: t3,
2059
+ "data-ui": t4,
2060
+ disabled: t5,
2061
+ error: t6,
2062
+ children: [
2063
+ t7,
2064
+ t8,
2065
+ label
2066
+ ]
2067
+ }), $[16] = T1, $[17] = label, $[18] = t2, $[19] = t3, $[20] = t4, $[21] = t5, $[22] = t6, $[23] = t7, $[24] = t8, $[25] = t9) : t9 = $[25], t9;
1726
2068
  }
1727
- const PLACEMENT = ["top", "top-start", "top-end", "right", "right-start", "right-end", "bottom", "bottom-start", "bottom-end", "left", "left-start", "left-end"], placementProps = {
1728
- placement: {
1729
- type: "union",
1730
- className: "placement",
1731
- values: PLACEMENT
1732
- }
1733
- }, tooltipProps = {
1734
- text: {
1735
- type: "string"
1736
- },
1737
- disabled: {
1738
- type: "boolean"
1739
- },
1740
- ...placementProps
1741
- }, tooltipClassName = suffixClassName("sui-Tooltip"), tooltipDismissedClassName = suffixClassName("sui-Tooltip-Dismissed");
1742
- function Tooltip(t0) {
1743
- const $ = c(16), {
1744
- placement: t1,
1745
- ...props
1746
- } = t0, placement = t1 === void 0 ? "bottom" : t1, {
1747
- children,
1748
- className,
1749
- style,
1750
- disabled,
1751
- id: idProp,
1752
- text,
1753
- ...rest
1754
- } = getProps({
1755
- placement,
1756
- ...props
1757
- }, tooltipProps), reactId = useId(), id = idProp || reactId, [dismissed, setDismissed] = useState(!1);
1758
- let t2, t3;
1759
- $[0] !== dismissed ? (t2 = () => {
1760
- if (dismissed)
1761
- return;
1762
- const handleKeyDown = (e) => {
1763
- e.key === "Escape" && setDismissed(!0);
1764
- };
1765
- return window.addEventListener("keydown", handleKeyDown), () => window.removeEventListener("keydown", handleKeyDown);
1766
- }, t3 = [dismissed], $[0] = dismissed, $[1] = t2, $[2] = t3) : (t2 = $[1], t3 = $[2]), useEffect(t2, t3);
1767
- const trigger = cloneElement(children, {
1768
- "aria-describedby": id,
1769
- onMouseEnter: (e_0) => {
1770
- setDismissed(!1), children.props.onMouseEnter?.(e_0);
1771
- },
1772
- onFocus: (e_1) => {
1773
- setDismissed(!1), children.props.onFocus?.(e_1);
1774
- },
1775
- onClick: (e_2) => {
1776
- setDismissed(!0), children.props.onClick?.(e_2);
1777
- },
1778
- style: {
1779
- ...children.props.style,
1780
- anchorName: `--tooltip-anchor-${id}`
1781
- }
1782
- });
1783
- if (disabled)
1784
- return children;
1785
- const T0 = Box, t4 = clsx(tooltipClassName, dismissed ? tooltipDismissedClassName : "", className), t5 = `--tooltip-anchor-${id}`;
1786
- let t6;
1787
- $[3] !== style || $[4] !== t5 ? (t6 = {
1788
- ...style,
1789
- positionAnchor: t5
1790
- }, $[3] = style, $[4] = t5, $[5] = t6) : t6 = $[5];
1791
- let t7;
1792
- $[6] !== T0 || $[7] !== id || $[8] !== rest || $[9] !== t4 || $[10] !== t6 || $[11] !== text ? (t7 = /* @__PURE__ */ jsx(T0, { className: t4, role: "tooltip", style: t6, "data-ui": "Tooltip", id, paddingX: 2, paddingY: 1, radius: 2, position: "fixed", zIndex: 9999, shadow: 2, ...rest, children: text }), $[6] = T0, $[7] = id, $[8] = rest, $[9] = t4, $[10] = t6, $[11] = text, $[12] = t7) : t7 = $[12];
1793
- let t8;
1794
- return $[13] !== t7 || $[14] !== trigger ? (t8 = /* @__PURE__ */ jsxs(Fragment, { children: [
1795
- trigger,
1796
- t7
1797
- ] }), $[13] = t7, $[14] = trigger, $[15] = t8) : t8 = $[15], t8;
2069
+ const tooltipProps = {
2070
+ anchorName: { type: "string" },
2071
+ content: { type: "string" },
2072
+ portal: { type: "boolean" },
2073
+ ...placementProps
2074
+ }, tooltipClassName = suffixClassName("sui-Tooltip");
2075
+ function TooltipRoot(t0) {
2076
+ let $ = c(7), { placement: t1, ...props } = t0, { children, className, style, id: idProp, anchorName, content, portal, triggerProps: forwardedTriggerProps, ...rest } = getProps({
2077
+ placement: t1 === void 0 ? "bottom" : t1,
2078
+ ...props
2079
+ }, tooltipProps), reactId = useId(), id = idProp || reactId, [dismissed, setDismissed] = useState(!1), isClient = useIsClient(), t2, t3;
2080
+ $[0] === Symbol.for("react.memo_cache_sentinel") ? (t2 = () => {
2081
+ setDismissed(!1);
2082
+ }, t3 = () => {
2083
+ setDismissed(!1);
2084
+ }, $[0] = t2, $[1] = t3) : (t2 = $[0], t3 = $[1]);
2085
+ let triggerProps = {
2086
+ "aria-describedby": id,
2087
+ interestfor: id,
2088
+ style: { anchorName: `--anchor-${anchorName || id}` },
2089
+ onMouseLeave: t2,
2090
+ onBlur: t3,
2091
+ onClick: () => {
2092
+ setDismissed(!0), document.getElementById(id)?.hidePopover();
2093
+ }
2094
+ }, trigger = children.type.forwardsTriggerProps ? cloneElement(children, { triggerProps }) : cloneElement(children, mergeTriggerProps(children.props, forwardedTriggerProps, triggerProps)), t4;
2095
+ $[2] === dismissed ? t4 = $[3] : (t4 = (e) => {
2096
+ e.newState === "open" && dismissed && e.preventDefault();
2097
+ }, $[2] = dismissed, $[3] = t4);
2098
+ let handleBeforeToggle = t4, t5 = renderPortal(/* @__PURE__ */ jsx("div", {
2099
+ className: clsx(tooltipClassName, "sui-px2 sui-py1 sui-radius2 sui-position-fixed sui-shadow2", className),
2100
+ style: {
2101
+ ...style,
2102
+ positionAnchor: `--anchor-${anchorName || id}`
2103
+ },
2104
+ "data-ui": "Tooltip",
2105
+ role: "tooltip",
2106
+ popover: "hint",
2107
+ id,
2108
+ onBeforeToggle: handleBeforeToggle,
2109
+ ...rest,
2110
+ children: content
2111
+ }), isClient, portal), t6;
2112
+ return $[4] !== t5 || $[5] !== trigger ? (t6 = /* @__PURE__ */ jsxs(Fragment, { children: [trigger, t5] }), $[4] = t5, $[5] = trigger, $[6] = t6) : t6 = $[6], t6;
1798
2113
  }
1799
- const tooltipGroupProps = {
1800
- as: {
1801
- type: "string"
1802
- }
1803
- }, tooltipGroupClassName = suffixClassName("sui-TooltipGroup");
2114
+ /** @beta */
2115
+ const Tooltip = Object.assign(TooltipRoot, { forwardsTriggerProps: !0 }), tooltipGroupProps = { as: { type: "string" } }, tooltipGroupClassName = suffixClassName("sui-TooltipGroup");
2116
+ /** @public */
1804
2117
  function TooltipGroup(props) {
1805
- const $ = c(17), {
1806
- as,
1807
- children,
1808
- className,
1809
- style,
1810
- ...rest
1811
- } = getProps(props, tooltipGroupProps), Component = as || "div", ref = useRef(null), [isActive, setIsActive] = useState(!1);
1812
- let t0;
1813
- $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = (e) => {
1814
- const tooltip = e.target.closest('[data-ui="Tooltip"]');
1815
- tooltip && e.propertyName === "visibility" && window.getComputedStyle(tooltip).visibility !== "hidden" && setIsActive(!0);
1816
- }, $[0] = t0) : t0 = $[0];
1817
- const handleTransitionEnd = t0;
1818
- let t1;
1819
- $[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = () => {
1820
- setIsActive(!1);
1821
- }, $[1] = t1) : t1 = $[1];
1822
- const handleMouseLeave = t1;
1823
- let t2;
1824
- $[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t2 = (e_0) => {
1825
- ref.current && ref.current.contains(e_0.relatedTarget) || setIsActive(!1);
1826
- }, $[2] = t2) : t2 = $[2];
1827
- const handleBlur = t2, t3 = clsx(tooltipGroupClassName, className);
1828
- let t4;
1829
- $[3] !== isActive ? (t4 = isActive && {
1830
- "--tooltip-delay-group": 0
1831
- }, $[3] = isActive, $[4] = t4) : t4 = $[4];
1832
- let t5;
1833
- $[5] !== style || $[6] !== t4 ? (t5 = {
1834
- ...style,
1835
- ...t4
1836
- }, $[5] = style, $[6] = t4, $[7] = t5) : t5 = $[7];
1837
- let t6;
1838
- return $[8] !== Component || $[9] !== children || $[10] !== handleBlur || $[11] !== handleMouseLeave || $[12] !== handleTransitionEnd || $[13] !== rest || $[14] !== t3 || $[15] !== t5 ? (t6 = /* @__PURE__ */ jsx(Component, { className: t3, style: t5, "data-ui": "TooltipGroup", ref, onTransitionEnd: handleTransitionEnd, onMouseLeave: handleMouseLeave, onBlur: handleBlur, ...rest, children }), $[8] = Component, $[9] = children, $[10] = handleBlur, $[11] = handleMouseLeave, $[12] = handleTransitionEnd, $[13] = rest, $[14] = t3, $[15] = t5, $[16] = t6) : t6 = $[16], t6;
2118
+ let $ = c(17), { as, children, className, style, ...rest } = getProps(props, tooltipGroupProps), Component = as || "div", ref = useRef(null), [isActive, setIsActive] = useState(!1), t0;
2119
+ $[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = (e) => {
2120
+ let tooltip = e.target.closest("[data-ui=\"Tooltip\"]");
2121
+ tooltip && e.propertyName === "opacity" && window.getComputedStyle(tooltip).opacity !== "0" && setIsActive(!0);
2122
+ }, $[0] = t0) : t0 = $[0];
2123
+ let handleTransitionEnd = t0, t1;
2124
+ $[1] === Symbol.for("react.memo_cache_sentinel") ? (t1 = () => {
2125
+ setIsActive(!1);
2126
+ }, $[1] = t1) : t1 = $[1];
2127
+ let handleMouseLeave = t1, t2;
2128
+ $[2] === Symbol.for("react.memo_cache_sentinel") ? (t2 = (e_0) => {
2129
+ ref.current && ref.current.contains(e_0.relatedTarget) || setIsActive(!1);
2130
+ }, $[2] = t2) : t2 = $[2];
2131
+ let handleBlur = t2, t3 = clsx(tooltipGroupClassName, className), t4;
2132
+ $[3] === isActive ? t4 = $[4] : (t4 = isActive && { "--tooltip-delay-group": "0ms" }, $[3] = isActive, $[4] = t4);
2133
+ let t5;
2134
+ $[5] !== style || $[6] !== t4 ? (t5 = {
2135
+ ...style,
2136
+ ...t4
2137
+ }, $[5] = style, $[6] = t4, $[7] = t5) : t5 = $[7];
2138
+ let t6;
2139
+ return $[8] !== Component || $[9] !== children || $[10] !== handleBlur || $[11] !== handleMouseLeave || $[12] !== handleTransitionEnd || $[13] !== rest || $[14] !== t3 || $[15] !== t5 ? (t6 = /* @__PURE__ */ jsx(Component, {
2140
+ className: t3,
2141
+ style: t5,
2142
+ "data-ui": "TooltipGroup",
2143
+ ref,
2144
+ onTransitionEnd: handleTransitionEnd,
2145
+ onMouseLeave: handleMouseLeave,
2146
+ onBlur: handleBlur,
2147
+ ...rest,
2148
+ children
2149
+ }), $[8] = Component, $[9] = children, $[10] = handleBlur, $[11] = handleMouseLeave, $[12] = handleTransitionEnd, $[13] = rest, $[14] = t3, $[15] = t5, $[16] = t6) : t6 = $[16], t6;
2150
+ }
2151
+ const badgeProps = {
2152
+ as: { type: "string" },
2153
+ iconStart: { type: "string" },
2154
+ text: { type: "string" },
2155
+ ...toneProps
2156
+ }, badgeClassName = suffixClassName("sui-Badge");
2157
+ /** @public */
2158
+ function Badge(t0) {
2159
+ let $ = c(20), T0, children, t1, t2, t3, t4, t5, text;
2160
+ if ($[0] !== t0) {
2161
+ let { tone: t6, ...props } = t0, { as, children: t7, className, style, iconStart: IconStart, text: t8, ...rest } = getProps({
2162
+ tone: t6 === void 0 ? "neutral" : t6,
2163
+ ...props
2164
+ }, badgeProps);
2165
+ children = t7, text = t8;
2166
+ let Component = as || "span", badgeClasses = clsx(badgeClassName, `${IconStart ? "sui-p1" : "sui-px2 sui-py1"} sui-radius-full sui-display-inline-flex sui-align-items-center sui-gap1`);
2167
+ T0 = Component, t1 = clsx(badgeClasses, className), t2 = style, t3 = "Badge", t4 = rest, t5 = IconStart && (isValidElement(IconStart) ? IconStart : /* @__PURE__ */ jsx(Icon, {
2168
+ icon: IconStart,
2169
+ marginX: -1,
2170
+ marginY: -2,
2171
+ size: 0
2172
+ })), $[0] = t0, $[1] = T0, $[2] = children, $[3] = t1, $[4] = t2, $[5] = t3, $[6] = t4, $[7] = t5, $[8] = text;
2173
+ } else T0 = $[1], children = $[2], t1 = $[3], t2 = $[4], t3 = $[5], t4 = $[6], t5 = $[7], text = $[8];
2174
+ let t6;
2175
+ $[9] === text ? t6 = $[10] : (t6 = text && /* @__PURE__ */ jsx(Text, {
2176
+ size: 1,
2177
+ trim: !0,
2178
+ children: text
2179
+ }), $[9] = text, $[10] = t6);
2180
+ let t7;
2181
+ return $[11] !== T0 || $[12] !== children || $[13] !== t1 || $[14] !== t2 || $[15] !== t3 || $[16] !== t4 || $[17] !== t5 || $[18] !== t6 ? (t7 = /* @__PURE__ */ jsxs(T0, {
2182
+ className: t1,
2183
+ style: t2,
2184
+ "data-ui": t3,
2185
+ ...t4,
2186
+ children: [
2187
+ t5,
2188
+ t6,
2189
+ children
2190
+ ]
2191
+ }), $[11] = T0, $[12] = children, $[13] = t1, $[14] = t2, $[15] = t3, $[16] = t4, $[17] = t5, $[18] = t6, $[19] = t7) : t7 = $[19], t7;
1839
2192
  }
1840
- export {
1841
- Box,
1842
- Button,
1843
- Card,
1844
- Checkbox,
1845
- Code,
1846
- Container,
1847
- Divider,
1848
- Eyebrow,
1849
- Flex,
1850
- Grid,
1851
- HStack,
1852
- Heading,
1853
- Icon,
1854
- IconButton,
1855
- Indicator,
1856
- IndicatorStack,
1857
- Inline,
1858
- Label,
1859
- Link,
1860
- List,
1861
- PressArea,
1862
- Radio,
1863
- SkipToContent,
1864
- Spinner,
1865
- Switch,
1866
- Text,
1867
- Tooltip,
1868
- TooltipGroup,
1869
- VStack,
1870
- VisuallyHidden
1871
- };
1872
- //# sourceMappingURL=index.js.map
2193
+ export { Badge, Box, Button, Card, Checkbox, Code, Container, Dialog, Divider, Eyebrow, Flex, Grid, HStack, Heading, Icon, IconButton, Indicator, IndicatorStack, Inline, Label, Link, List, Popover, PressArea, Radio, Select, SkipToContent, Spinner, Switch, Text, Tooltip, TooltipGroup, VStack, VisuallyHidden, useIsClient };
2194
+
2195
+ //# sourceMappingURL=index.js.map