@kanso-labs/kanso-ui 0.45.21 → 0.45.22

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 (46) hide show
  1. package/dist/calendar/index.js +119 -11
  2. package/dist/calendar/index.js.map +1 -1
  3. package/dist/calendar/styles.js +19 -1
  4. package/dist/calendar/styles.js.map +1 -1
  5. package/dist/components/app-bar/index.d.ts +8 -2
  6. package/dist/components/app-bar/index.js +123 -73
  7. package/dist/components/app-bar/index.js.map +1 -1
  8. package/dist/components/calendar/index.d.ts +3 -3
  9. package/dist/components/calendar/index.js +8 -19
  10. package/dist/components/calendar/index.js.map +1 -1
  11. package/dist/components/carousel/index.d.ts +22 -3
  12. package/dist/components/carousel/index.js +26 -14
  13. package/dist/components/carousel/index.js.map +1 -1
  14. package/dist/components/chip-group/index.js +3 -0
  15. package/dist/components/chip-group/index.js.map +1 -1
  16. package/dist/components/color-picker/index.js +64 -46
  17. package/dist/components/color-picker/index.js.map +1 -1
  18. package/dist/components/color-swatch/index.js +20 -16
  19. package/dist/components/color-swatch/index.js.map +1 -1
  20. package/dist/components/copy-field/index.js +1 -0
  21. package/dist/components/copy-field/index.js.map +1 -1
  22. package/dist/components/date-range-picker/index.js +165 -81
  23. package/dist/components/date-range-picker/index.js.map +1 -1
  24. package/dist/components/index.d.ts +2 -2
  25. package/dist/components/popover/index.js +14 -4
  26. package/dist/components/popover/index.js.map +1 -1
  27. package/dist/components/range-calendar/index.js +53 -80
  28. package/dist/components/range-calendar/index.js.map +1 -1
  29. package/dist/components/segmented-button/index.js +261 -145
  30. package/dist/components/segmented-button/index.js.map +1 -1
  31. package/dist/components/sheet/index.js +149 -82
  32. package/dist/components/sheet/index.js.map +1 -1
  33. package/dist/components/table/index.js +251 -123
  34. package/dist/components/table/index.js.map +1 -1
  35. package/dist/hooks/useRipple.js +3 -2
  36. package/dist/hooks/useRipple.js.map +1 -1
  37. package/dist/index.d.ts +2 -2
  38. package/dist/segments/index.js +2 -1
  39. package/dist/segments/index.js.map +1 -1
  40. package/dist/segments/styles.js +5 -1
  41. package/dist/segments/styles.js.map +1 -1
  42. package/dist/styles/focus.js.map +1 -1
  43. package/dist/styles.css +40 -8
  44. package/dist/swatch/index.js +19 -0
  45. package/dist/swatch/index.js.map +1 -0
  46. package/package.json +3 -3
@@ -11,9 +11,15 @@ import { overlay } from "../../styles/overlay.js";
11
11
  import { datePopoverClassName, picker, triggerClassName } from "../../styles/picker.js";
12
12
  import RangeCalendar$1 from "../range-calendar/index.js";
13
13
  import { c } from "react/compiler-runtime";
14
+ import { useLayoutEffect, useState } from "react";
14
15
  import { jsx, jsxs } from "react/jsx-runtime";
15
16
  import { Button, DateInput, DateRangePicker, Dialog, Group, Popover } from "react-aria-components";
16
17
  // src/components/date-range-picker/index.tsx
18
+ const styles = { groupWrapped: {
19
+ kwnvtZ: "x1a02dak",
20
+ khm7nJ: "xxs79tx",
21
+ $$css: true
22
+ } };
17
23
  function calendarTrigger(triggerLabel) {
18
24
  return /* @__PURE__ */ jsx(Button, {
19
25
  "aria-label": triggerLabel,
@@ -48,7 +54,7 @@ function calendarTrigger(triggerLabel) {
48
54
  * which is the element a layout positions.
49
55
  */
50
56
  function DateRangePicker$1(t0) {
51
- const $ = c(40);
57
+ const $ = c(46);
52
58
  const { container, description, error, floatingLabel: t1, isDisabled: t2, label, leadingIcon, separator: t3, showMonthYearMenus: t4, triggerLabel, variant: t5, visibleDuration, ...props$1 } = t0;
53
59
  const floatingLabel = t1 === void 0 ? true : t1;
54
60
  const isDisabled = t2 === void 0 ? false : t2;
@@ -56,6 +62,8 @@ function DateRangePicker$1(t0) {
56
62
  const showMonthYearMenus = t4 === void 0 ? false : t4;
57
63
  const variant = t5 === void 0 ? "filled" : t5;
58
64
  const validationBehavior = useFieldValidationBehavior();
65
+ const [group, setGroup] = useState(null);
66
+ const wrapped = useEndDateWrap(group);
59
67
  const T0 = DateRangePicker;
60
68
  let t6;
61
69
  if ($[0] !== error) {
@@ -72,139 +80,215 @@ function DateRangePicker$1(t0) {
72
80
  $[3] = t9;
73
81
  } else t9 = $[3];
74
82
  let t10;
75
- if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
76
- t10 = props(picker.group);
77
- $[4] = t10;
78
- } else t10 = $[4];
83
+ if ($[4] !== wrapped) {
84
+ t10 = props(picker.group, wrapped && styles.groupWrapped);
85
+ $[4] = wrapped;
86
+ $[5] = t10;
87
+ } else t10 = $[5];
79
88
  let t11;
80
- if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
89
+ if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
81
90
  t11 = /* @__PURE__ */ jsx(DateInput, {
82
91
  slot: "start",
83
92
  ...props(segmentStyles.input),
84
93
  children: renderSegment
85
94
  });
86
- $[5] = t11;
87
- } else t11 = $[5];
95
+ $[6] = t11;
96
+ } else t11 = $[6];
88
97
  let t12;
89
- if ($[6] !== separator) {
98
+ if ($[7] !== separator) {
90
99
  t12 = /* @__PURE__ */ jsx("span", {
91
100
  "aria-hidden": "true",
92
101
  className: "x1w5n3ug x2lah0s x16svsjw x1848etk xh7dzej",
93
102
  children: separator
94
103
  });
95
- $[6] = separator;
96
- $[7] = t12;
97
- } else t12 = $[7];
104
+ $[7] = separator;
105
+ $[8] = t12;
106
+ } else t12 = $[8];
98
107
  let t13;
99
- if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
100
- t13 = /* @__PURE__ */ jsx(DateInput, {
108
+ if ($[9] !== wrapped) {
109
+ t13 = wrapped && /* @__PURE__ */ jsx("span", {
110
+ "aria-hidden": "true",
111
+ className: "xqtp20y x9f619 x1l7klhg"
112
+ });
113
+ $[9] = wrapped;
114
+ $[10] = t13;
115
+ } else t13 = $[10];
116
+ let t14;
117
+ if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
118
+ t14 = /* @__PURE__ */ jsx(DateInput, {
101
119
  slot: "end",
102
120
  ...props(segmentStyles.input),
103
121
  children: renderSegment
104
122
  });
105
- $[8] = t13;
106
- } else t13 = $[8];
107
- let t14;
108
- if ($[9] !== t12) {
109
- t14 = /* @__PURE__ */ jsx(FieldSegments, { children: /* @__PURE__ */ jsxs(Group, {
123
+ $[11] = t14;
124
+ } else t14 = $[11];
125
+ let t15;
126
+ if ($[12] !== setGroup || $[13] !== t10 || $[14] !== t12 || $[15] !== t13) {
127
+ t15 = /* @__PURE__ */ jsx(FieldSegments, { children: /* @__PURE__ */ jsxs(Group, {
128
+ ref: setGroup,
110
129
  ...t10,
111
130
  children: [
112
131
  t11,
113
132
  t12,
114
- t13
133
+ t13,
134
+ t14
115
135
  ]
116
136
  }) });
117
- $[9] = t12;
118
- $[10] = t14;
119
- } else t14 = $[10];
120
- let t15;
121
- if ($[11] !== floatingLabel || $[12] !== label || $[13] !== leadingIcon || $[14] !== props$1.isRequired || $[15] !== t14 || $[16] !== t9 || $[17] !== variant) {
122
- t15 = /* @__PURE__ */ jsx(FieldBox, {
137
+ $[12] = setGroup;
138
+ $[13] = t10;
139
+ $[14] = t12;
140
+ $[15] = t13;
141
+ $[16] = t15;
142
+ } else t15 = $[16];
143
+ let t16;
144
+ if ($[17] !== floatingLabel || $[18] !== label || $[19] !== leadingIcon || $[20] !== props$1.isRequired || $[21] !== t15 || $[22] !== t9 || $[23] !== variant) {
145
+ t16 = /* @__PURE__ */ jsx(FieldBox, {
123
146
  floatingLabel,
124
147
  isPopulated: true,
125
148
  isRequired: t8,
126
149
  label,
127
150
  leading: leadingIcon,
151
+ multiline: true,
128
152
  trailing: t9,
129
153
  variant,
130
- children: t14
154
+ children: t15
131
155
  });
132
- $[11] = floatingLabel;
133
- $[12] = label;
134
- $[13] = leadingIcon;
135
- $[14] = props$1.isRequired;
136
- $[15] = t14;
137
- $[16] = t9;
138
- $[17] = variant;
139
- $[18] = t15;
140
- } else t15 = $[18];
141
- let t16;
142
- if ($[19] !== description || $[20] !== error) {
143
- t16 = /* @__PURE__ */ jsx(FieldMessage, {
156
+ $[17] = floatingLabel;
157
+ $[18] = label;
158
+ $[19] = leadingIcon;
159
+ $[20] = props$1.isRequired;
160
+ $[21] = t15;
161
+ $[22] = t9;
162
+ $[23] = variant;
163
+ $[24] = t16;
164
+ } else t16 = $[24];
165
+ let t17;
166
+ if ($[25] !== description || $[26] !== error) {
167
+ t17 = /* @__PURE__ */ jsx(FieldMessage, {
144
168
  description,
145
169
  error
146
170
  });
147
- $[19] = description;
148
- $[20] = error;
149
- $[21] = t16;
150
- } else t16 = $[21];
151
- let t17;
152
- if ($[22] === Symbol.for("react.memo_cache_sentinel")) {
153
- t17 = props(overlay.popupDialog, focus.ring);
154
- $[22] = t17;
155
- } else t17 = $[22];
171
+ $[25] = description;
172
+ $[26] = error;
173
+ $[27] = t17;
174
+ } else t17 = $[27];
156
175
  let t18;
157
- if ($[23] !== label || $[24] !== showMonthYearMenus || $[25] !== visibleDuration) {
158
- t18 = /* @__PURE__ */ jsx(Dialog, {
159
- ...t17,
176
+ if ($[28] === Symbol.for("react.memo_cache_sentinel")) {
177
+ t18 = props(overlay.popupDialog, focus.ring);
178
+ $[28] = t18;
179
+ } else t18 = $[28];
180
+ let t19;
181
+ if ($[29] !== label || $[30] !== showMonthYearMenus || $[31] !== visibleDuration) {
182
+ t19 = /* @__PURE__ */ jsx(Dialog, {
183
+ ...t18,
160
184
  children: /* @__PURE__ */ jsx(RangeCalendar$1, {
161
185
  "aria-label": label,
162
186
  showMonthYearMenus,
163
187
  visibleDuration
164
188
  })
165
189
  });
166
- $[23] = label;
167
- $[24] = showMonthYearMenus;
168
- $[25] = visibleDuration;
169
- $[26] = t18;
170
- } else t18 = $[26];
171
- let t19;
172
- if ($[27] !== container || $[28] !== t18) {
173
- t19 = /* @__PURE__ */ jsx(Popover, {
190
+ $[29] = label;
191
+ $[30] = showMonthYearMenus;
192
+ $[31] = visibleDuration;
193
+ $[32] = t19;
194
+ } else t19 = $[32];
195
+ let t20;
196
+ if ($[33] !== container || $[34] !== t19) {
197
+ t20 = /* @__PURE__ */ jsx(Popover, {
174
198
  className: datePopoverClassName,
175
199
  UNSTABLE_portalContainer: container,
176
- children: t18
200
+ children: t19
177
201
  });
178
- $[27] = container;
179
- $[28] = t18;
180
- $[29] = t19;
181
- } else t19 = $[29];
182
- let t20;
183
- if ($[30] !== T0 || $[31] !== isDisabled || $[32] !== props$1 || $[33] !== t15 || $[34] !== t16 || $[35] !== t19 || $[36] !== t6 || $[37] !== t7 || $[38] !== validationBehavior) {
184
- t20 = /* @__PURE__ */ jsxs(T0, {
202
+ $[33] = container;
203
+ $[34] = t19;
204
+ $[35] = t20;
205
+ } else t20 = $[35];
206
+ let t21;
207
+ if ($[36] !== T0 || $[37] !== isDisabled || $[38] !== props$1 || $[39] !== t16 || $[40] !== t17 || $[41] !== t20 || $[42] !== t6 || $[43] !== t7 || $[44] !== validationBehavior) {
208
+ t21 = /* @__PURE__ */ jsxs(T0, {
185
209
  isDisabled,
186
210
  isInvalid: t6,
187
211
  validationBehavior,
188
212
  ...props$1,
189
213
  ...t7,
190
214
  children: [
191
- t15,
192
215
  t16,
193
- t19
216
+ t17,
217
+ t20
194
218
  ]
195
219
  });
196
- $[30] = T0;
197
- $[31] = isDisabled;
198
- $[32] = props$1;
199
- $[33] = t15;
200
- $[34] = t16;
201
- $[35] = t19;
202
- $[36] = t6;
203
- $[37] = t7;
204
- $[38] = validationBehavior;
205
- $[39] = t20;
206
- } else t20 = $[39];
207
- return t20;
220
+ $[36] = T0;
221
+ $[37] = isDisabled;
222
+ $[38] = props$1;
223
+ $[39] = t16;
224
+ $[40] = t17;
225
+ $[41] = t20;
226
+ $[42] = t6;
227
+ $[43] = t7;
228
+ $[44] = validationBehavior;
229
+ $[45] = t21;
230
+ } else t21 = $[45];
231
+ return t21;
232
+ }
233
+ /**
234
+ * Whether the end date takes a line of its own: whenever the start date, the
235
+ * dash and the end date are wider together than the line they sit on.
236
+ *
237
+ * Decided afresh when the line's width changes or a font finishes loading,
238
+ * and otherwise only ever turned on, so a date narrowing as it is typed
239
+ * never moves the end date back up mid-entry — see the header. Read off the
240
+ * three parts' own widths rather than the line's overflow, since a wrapped
241
+ * line overflows nothing.
242
+ */
243
+ function useEndDateWrap(group) {
244
+ const $ = c(3);
245
+ const [wrapped, setWrapped] = useState(false);
246
+ let t0;
247
+ let t1;
248
+ if ($[0] !== group) {
249
+ t0 = () => {
250
+ if (group === null) return;
251
+ let decidedAt = null;
252
+ const measure = () => {
253
+ const room = group.getBoundingClientRect().width;
254
+ const parts = [...group.children].filter(_temp);
255
+ const gap = Number.parseFloat(getComputedStyle(group).columnGap) || 0;
256
+ const fits = parts.reduce(_temp2, gap * (parts.length - 1)) <= room + .5;
257
+ if (room !== decidedAt) {
258
+ decidedAt = room;
259
+ setWrapped(!fits);
260
+ } else if (!fits) setWrapped(true);
261
+ };
262
+ const redecide = () => {
263
+ decidedAt = null;
264
+ measure();
265
+ };
266
+ measure();
267
+ const resize = new ResizeObserver(measure);
268
+ resize.observe(group);
269
+ for (const part_1 of group.children) resize.observe(part_1);
270
+ document.fonts.addEventListener("loadingdone", redecide);
271
+ return () => {
272
+ resize.disconnect();
273
+ document.fonts.removeEventListener("loadingdone", redecide);
274
+ };
275
+ };
276
+ t1 = [group];
277
+ $[0] = group;
278
+ $[1] = t0;
279
+ $[2] = t1;
280
+ } else {
281
+ t0 = $[1];
282
+ t1 = $[2];
283
+ }
284
+ useLayoutEffect(t0, t1);
285
+ return wrapped;
286
+ }
287
+ function _temp2(sum, part_0) {
288
+ return sum + part_0.getBoundingClientRect().width;
289
+ }
290
+ function _temp(part) {
291
+ return part.getBoundingClientRect().height > 0;
208
292
  }
209
293
  export { DateRangePicker$1 as default };
210
294
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["c","_c","DateDuration","ReactNode","RefAttributes","DateValue","DateRangePickerProps","RACDateRangePickerProps","stylex","Button","RACButton","DateInput","RACDateInput","DateRangePicker","RACDateRangePicker","Dialog","RACDialog","Group","RACGroup","Popover","RACPopover","FieldVariant","FieldBox","FieldMessage","FieldSegments","fieldStyles","invalidFrom","useFieldValidationBehavior","CalendarGlyph","renderSegment","segmentStyles","focus","mergeStatefulStyles","overlay","datePopoverClassName","picker","triggerClassName","colors","typography","RangeCalendar","Omit","T","className","container","Element","description","error","floatingLabel","label","leadingIcon","separator","showMonthYearMenus","style","triggerLabel","variant","visibleDuration","calendarTrigger","props","triggerGlyph","t0","$","t1","isDisabled","t2","t3","t4","t5","undefined","validationBehavior","T0","t6","t7","root","t8","isRequired","t9","t10","Symbol","for","group","t11","input","t12","t13","t14","t15","t16","t17","popupDialog","ring","t18","t19","t20","RACButton","stylex.props","DateRangePicker","_c","props","RACDateRangePicker","RACDateInput","RACGroup","RACDialog","RangeCalendar","RACPopover"],"sources":["../../../src/components/date-range-picker/index.tsx"],"sourcesContent":["'use client';\n\nimport type { DateDuration } from '@internationalized/date';\nimport type { ReactNode, RefAttributes } from 'react';\nimport type { DateValue, DateRangePickerProps as RACDateRangePickerProps } from 'react-aria-components';\nimport * as stylex from '@stylexjs/stylex';\nimport { Button as RACButton, DateInput as RACDateInput, DateRangePicker as RACDateRangePicker, Dialog as RACDialog, Group as RACGroup, Popover as RACPopover } from 'react-aria-components';\nimport type { FieldVariant } from '../../field';\nimport { FieldBox, FieldMessage, FieldSegments } from '../../field';\nimport { fieldStyles, invalidFrom, useFieldValidationBehavior } from '../../field/root';\nimport { CalendarGlyph } from '../../glyphs';\nimport { renderSegment } from '../../segments';\nimport { segmentStyles } from '../../segments/styles';\nimport { focus } from '../../styles/focus';\nimport { mergeStatefulStyles } from '../../styles/merge';\nimport { overlay } from '../../styles/overlay';\nimport { datePopoverClassName, picker, triggerClassName } from '../../styles/picker';\nimport '../../tokens/design.tokens.stylex';\nimport { colors, typography } from '../../tokens/design.tokens.stylex';\nimport RangeCalendar from '../range-calendar';\n\n// `DatePicker` picking two dates rather than one. Every part it draws is\n// already here — the segments from `src/segments`, the trigger and the\n// overlay from `src/styles/picker`, the calendar from `RangeCalendar` — so\n// the two pickers cannot come apart. What a range adds is a second segment\n// group and the dash between them.\n//\n// The date pickers page draws a range as a configuration of the *modal*\n// picker: a full-screen selector with a header and two text fields, plus a\n// modal date input variant. It carries no docked range picker and no range\n// token of its own — its token set is `docked.*` and `modal.*`, and neither\n// names a range. So the docked shape here follows the docked single picker,\n// the same choice `RangeCalendar` records for the band it draws.\n//\n// Two things are this component's own.\n//\n// **The dash is decoration, not content.** It reads as a range to someone\n// looking, and React Aria has already told a screen reader which group is\n// which — every segment is named \"Start Date\" or \"End Date\" — so repeating\n// it aloud would be a third telling. It is `aria-hidden` and takes the muted\n// role, which is what keeps it quieter than the dates either side.\n//\n// **Both segment groups and the trigger sit in one React Aria `Group`.** The\n// box draws once around all three, so a reader tabs start, end, trigger\n// rather than meeting three controls in a row.\n\ntype DateRangePickerProps<T extends DateValue = DateValue> = Omit<RACDateRangePickerProps<T>, 'children' | 'className' | 'style'> & {\n /** A function may compute the class from the picker's render state. */\n className?: RACDateRangePickerProps<T>['className'];\n /**\n * Where to portal the calendar. Defaults to the container of the `ThemeScope`\n * around it, which keeps the calendar on that scope's tokens, or to the end\n * of `<body>` where there is none. A subtree themed through the `themeScope`\n * class has no container of its own, so point this inside it, or the calendar\n * renders outside and keeps the page's tokens.\n */\n container?: Element;\n /** Supporting text under the field. */\n description?: string;\n /**\n * The message shown instead of the description, which also marks the\n * field invalid.\n *\n * Outside a `Form` the message line arrives with the message, so the\n * field grows when this does and moves what is under it. A `Form` holds\n * that space from the start; so does a permanent `description`.\n */\n error?: string;\n /**\n * Whether the label floats into the box's top once the field holds a\n * value, rather than sitting above it.\n * @default true\n */\n floatingLabel?: boolean;\n /** What the field is for. Always rendered; never a placeholder. */\n label: string;\n /**\n * An icon at the box's leading end, in the page's 24dp size. An icon drawn\n * in `em` takes that size from the slot.\n */\n leadingIcon?: ReactNode;\n /**\n * What is drawn between the two segment groups. Decoration — a screen\n * reader is told which group is which by React Aria.\n * @default '–'\n */\n separator?: string;\n /**\n * Whether the calendar's header draws the month and the year as menu\n * buttons, each opening a list of them in the grid's place — see\n * `RangeCalendar`.\n * @default false\n */\n showMonthYearMenus?: boolean;\n /** A function may compute the style from the picker's render state. */\n style?: RACDateRangePickerProps<T>['style'];\n /**\n * What the button that opens the calendar is called, for a screen reader.\n * Left out, React Aria names it in the reader's locale — \"Calendar\" in\n * English, followed by the field's own label.\n */\n triggerLabel?: string;\n /**\n * Which of the text fields page's two boxes to draw.\n * @default 'filled'\n */\n variant?: FieldVariant;\n /**\n * How much of the calendar shows at once: `{ months: 2 }` draws two\n * months side by side, which is what a range is usually picked from.\n * Below the expanded breakpoint, where two do not fit, they stack instead\n * — see `RangeCalendar`.\n * @default { months: 1 }\n */\n visibleDuration?: DateDuration;\n};\n\n// Built by a call rather than written inline at the prop, which is what\n// react-perf's no-jsx-as-prop is after — the same reason Select builds its\n// chevron this way.\nfunction calendarTrigger(triggerLabel: string | undefined) {\n return <RACButton aria-label={triggerLabel} className={triggerClassName}>\n <CalendarGlyph {...stylex.props(picker.triggerGlyph)} />\n </RACButton>;\n}\n\n/**\n * A date range typed into a field, or picked from a calendar behind a\n * button. The value is React Aria's — pass `value` with `onChange` to\n * control it, or `defaultValue` — as a `{ start, end }` pair of\n * `@internationalized/date` values from this package's `./date` subpath.\n *\n * ```tsx\n * import { CalendarDate } from '@kanso-labs/kanso-ui/date'\n *\n * <DateRangePicker\n * defaultValue={{\n * end: new CalendarDate(2026, 9, 20),\n * start: new CalendarDate(2026, 9, 15),\n * }}\n * label=\"Label\"\n * />\n * ```\n *\n * The segments are `DateField`'s and the calendar is `RangeCalendar`, so\n * `granularity`, `minValue`, `maxValue` and `isDateUnavailable` all behave\n * as they do there. Above the medium breakpoint the calendar is docked to\n * the field; below it, it opens centred, the same swap `DatePicker` makes.\n *\n * The call site's `className` and `style` land on the picker as a whole,\n * which is the element a layout positions.\n */\nfunction DateRangePicker<T extends DateValue>({\n container,\n description,\n error,\n floatingLabel = true,\n isDisabled = false,\n label,\n leadingIcon,\n separator = '–',\n showMonthYearMenus = false,\n triggerLabel,\n variant = 'filled',\n visibleDuration,\n ...props\n}: DateRangePickerProps<T> & RefAttributes<HTMLDivElement>) {\n const validationBehavior = useFieldValidationBehavior();\n return <RACDateRangePicker<T> isDisabled={isDisabled} isInvalid={invalidFrom(error)} validationBehavior={validationBehavior} {...props} {...mergeStatefulStyles(stylex.props(fieldStyles.root), props)}>\n <FieldBox floatingLabel={floatingLabel}\n // Always populated, which buys exactly one thing: the outlined\n // notch. The box decides populated twice over — in CSS for the\n // label's type, and in React for the notch, since CSS cannot cut an\n // outline to a width it has no way to measure. React Aria renders a\n // hidden input per segment group, neither carrying a placeholder, so\n // the CSS half reads as populated on its own; the React half reads\n // React Aria's input context, which a picker does not provide.\n // Without this the notch stays shut across segments already showing\n // `mm/dd/yyyy`.\n isPopulated isRequired={props.isRequired} label={label} leading={leadingIcon}\n // In the chrome's trailing slot rather than on the segments' line —\n // see the same prop on DatePicker for what that slot does and why\n // the trigger still opens from there.\n trailing={calendarTrigger(triggerLabel)} variant={variant}>\n <FieldSegments>\n <RACGroup {...stylex.props(picker.group)}>\n <RACDateInput slot=\"start\" {...stylex.props(segmentStyles.input)}>\n {renderSegment}\n </RACDateInput>\n <span aria-hidden=\"true\" className=\"x1w5n3ug x2lah0s x16svsjw x1848etk xh7dzej\">\n {separator}\n </span>\n <RACDateInput slot=\"end\" {...stylex.props(segmentStyles.input)}>\n {renderSegment}\n </RACDateInput>\n </RACGroup>\n </FieldSegments>\n </FieldBox>\n <FieldMessage description={description} error={error} />\n <RACPopover className={datePopoverClassName}\n // oxlint-disable-next-line typescript/no-deprecated -- its replacement, UNSAFE_PortalProvider, is not exported by react-aria-components\n UNSTABLE_portalContainer={container}>\n <RACDialog {...stylex.props(overlay.popupDialog, focus.ring)}>\n <RangeCalendar aria-label={label} showMonthYearMenus={showMonthYearMenus} visibleDuration={visibleDuration} />\n </RACDialog>\n </RACPopover>\n </RACDateRangePicker>;\n}\nexport type { DateRangePickerProps };\nexport default DateRangePicker;"],"m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A,MAAA/B,EAAA;CAAA,IAAAgC;CAAA,IAAAhC,EAAA,QAAAS,MAAAT,EAAA,QAAAE,cAAAF,EAAA,QAAAH,WAAAG,EAAA,QAAAyB,OAAAzB,EAAA,QAAA0B,OAAA1B,EAAA,QAAA+B,OAAA/B,EAAA,QAAAU,MAAAV,EAAA,QAAAW,MAAAX,EAAA,QAAAQ,oBAAA;EArCVwB,MAAA,qBAAC,IAAD;GAAmC9B;GAAuB,WAAAQ;GAAwCF;GAAkB,GAAMX;GAAK,GAAMc;GAArI,UAAA;IACHc;IA6BAC;IACAK;GA/BsB;;EAsCH/B,EAAA,MAAAS;EAAAT,EAAA,MAAAE;EAAAF,EAAA,MAAAH;EAAAG,EAAA,MAAAyB;EAAAzB,EAAA,MAAA0B;EAAA1B,EAAA,MAAA+B;EAAA/B,EAAA,MAAAU;EAAAV,EAAA,MAAAW;EAAAX,EAAA,MAAAQ;EAAAR,EAAA,MAAAgC;CAAA,OAAAA,MAAAhC,EAAA;CAAA,OAtChBgC;AAsCgB"}
1
+ {"version":3,"file":"index.js","names":["c","_c","DateDuration","ReactNode","RefAttributes","DateValue","DateRangePickerProps","RACDateRangePickerProps","stylex","useLayoutEffect","useState","Button","RACButton","DateInput","RACDateInput","DateRangePicker","RACDateRangePicker","Dialog","RACDialog","Group","RACGroup","Popover","RACPopover","FieldVariant","FieldBox","FieldMessage","FieldSegments","fieldStyles","invalidFrom","useFieldValidationBehavior","CalendarGlyph","renderSegment","segmentStyles","focus","mergeStatefulStyles","overlay","datePopoverClassName","picker","triggerClassName","colors","typography","RangeCalendar","styles","groupWrapped","kwnvtZ","khm7nJ","$$css","Omit","T","className","container","Element","description","error","floatingLabel","label","leadingIcon","separator","showMonthYearMenus","style","triggerLabel","variant","visibleDuration","calendarTrigger","props","triggerGlyph","t0","$","t1","isDisabled","t2","t3","t4","t5","undefined","validationBehavior","group","setGroup","wrapped","useEndDateWrap","T0","t6","t7","root","t8","isRequired","t9","t10","t11","Symbol","for","input","t12","t13","t14","t15","t16","t17","t18","popupDialog","ring","t19","t20","t21","setWrapped","decidedAt","measure","room","getBoundingClientRect","width","parts","children","filter","_temp","gap","Number","parseFloat","getComputedStyle","columnGap","needs","reduce","_temp2","length","fits","redecide","resize","ResizeObserver","observe","part_1","part","document","fonts","addEventListener","disconnect","removeEventListener","sum","part_0","height","RACButton","stylex.props","DateRangePicker","_c","props","RACDateRangePicker","RACDateInput","RACGroup","RACDialog","RangeCalendar","RACPopover"],"sources":["../../../src/components/date-range-picker/index.tsx"],"sourcesContent":["'use client';\n\nimport type { DateDuration } from '@internationalized/date';\nimport type { ReactNode, RefAttributes } from 'react';\nimport type { DateValue, DateRangePickerProps as RACDateRangePickerProps } from 'react-aria-components';\nimport * as stylex from '@stylexjs/stylex';\nimport { useLayoutEffect, useState } from 'react';\nimport { Button as RACButton, DateInput as RACDateInput, DateRangePicker as RACDateRangePicker, Dialog as RACDialog, Group as RACGroup, Popover as RACPopover } from 'react-aria-components';\nimport type { FieldVariant } from '../../field';\nimport { FieldBox, FieldMessage, FieldSegments } from '../../field';\nimport { fieldStyles, invalidFrom, useFieldValidationBehavior } from '../../field/root';\nimport { CalendarGlyph } from '../../glyphs';\nimport { renderSegment } from '../../segments';\nimport { segmentStyles } from '../../segments/styles';\nimport { focus } from '../../styles/focus';\nimport { mergeStatefulStyles } from '../../styles/merge';\nimport { overlay } from '../../styles/overlay';\nimport { datePopoverClassName, picker, triggerClassName } from '../../styles/picker';\nimport '../../tokens/design.tokens.stylex';\nimport { colors, typography } from '../../tokens/design.tokens.stylex';\nimport RangeCalendar from '../range-calendar';\n\n// `DatePicker` picking two dates rather than one. Every part it draws is\n// already here — the segments from `src/segments`, the trigger and the\n// overlay from `src/styles/picker`, the calendar from `RangeCalendar` — so\n// the two pickers cannot come apart. What a range adds is a second segment\n// group and the dash between them.\n//\n// The date pickers page draws a range as a configuration of the *modal*\n// picker: a full-screen selector with a header and two text fields, plus a\n// modal date input variant. It carries no docked range picker and no range\n// token of its own — its token set is `docked.*` and `modal.*`, and neither\n// names a range. So the docked shape here follows the docked single picker,\n// the same choice `RangeCalendar` records for the band it draws.\n//\n// Two things are this component's own.\n//\n// **The dash is decoration, not content.** It reads as a range to someone\n// looking, and React Aria has already told a screen reader which group is\n// which — every segment is named \"Start Date\" or \"End Date\" — so repeating\n// it aloud would be a third telling. It is `aria-hidden` and takes the muted\n// role, which is what keeps it quieter than the dates either side.\n//\n// **Both segment groups and the trigger sit in one React Aria `Group`.** The\n// box draws once around all three, so a reader tabs start, end, trigger\n// rather than meeting three controls in a row.\n//\n// **The end date takes a line of its own where the two do not fit on one.**\n// The line the segments sit on clips them, as an input clips its text, and\n// two dates and the dash are wider than a phone's field: at 328px the empty\n// field showed 212px of the 281px its placeholders take, so most of the end\n// date was out of sight until it was typed in. Every segment is a place to\n// type, so none can be hidden, and shortening the placeholders would not hold\n// for a locale whose dates are longer. So the two groups wrap, the dash stays\n// after the start date, and the box grows by a line, as a text area's does,\n// from the page's 56dp. Where both fit, nothing moves: the box is 56dp and\n// the dates share their line.\n//\n// The wrap is decided by the line's width, and typing never undoes it. A date\n// is narrower filled than empty — `9` where `mm` was — so a field between the\n// two widths, which is where a 375 to 400px phone puts it, would otherwise\n// lift the end date back up beside the start and shrink the box while the\n// start date was being typed. So the end date goes onto its own line whenever\n// the three stop fitting, and comes back only when the line's width changes\n// or a font arrives — see `useEndDateWrap`.\n\nconst styles = {\n groupWrapped: {\n kwnvtZ: \"x1a02dak\",\n khm7nJ: \"xxs79tx\",\n $$css: true\n }\n};\ntype DateRangePickerProps<T extends DateValue = DateValue> = Omit<RACDateRangePickerProps<T>, 'children' | 'className' | 'style'> & {\n /** A function may compute the class from the picker's render state. */\n className?: RACDateRangePickerProps<T>['className'];\n /**\n * Where to portal the calendar. Defaults to the container of the `ThemeScope`\n * around it, which keeps the calendar on that scope's tokens, or to the end\n * of `<body>` where there is none. A subtree themed through the `themeScope`\n * class has no container of its own, so point this inside it, or the calendar\n * renders outside and keeps the page's tokens.\n */\n container?: Element;\n /** Supporting text under the field. */\n description?: string;\n /**\n * The message shown instead of the description, which also marks the\n * field invalid.\n *\n * Outside a `Form` the message line arrives with the message, so the\n * field grows when this does and moves what is under it. A `Form` holds\n * that space from the start; so does a permanent `description`.\n */\n error?: string;\n /**\n * Whether the label floats into the box's top once the field holds a\n * value, rather than sitting above it.\n * @default true\n */\n floatingLabel?: boolean;\n /** What the field is for. Always rendered; never a placeholder. */\n label: string;\n /**\n * An icon at the box's leading end, in the page's 24dp size. An icon drawn\n * in `em` takes that size from the slot.\n */\n leadingIcon?: ReactNode;\n /**\n * What is drawn between the two segment groups. Decoration — a screen\n * reader is told which group is which by React Aria.\n * @default '–'\n */\n separator?: string;\n /**\n * Whether the calendar's header draws the month and the year as menu\n * buttons, each opening a list of them in the grid's place — see\n * `RangeCalendar`.\n * @default false\n */\n showMonthYearMenus?: boolean;\n /** A function may compute the style from the picker's render state. */\n style?: RACDateRangePickerProps<T>['style'];\n /**\n * What the button that opens the calendar is called, for a screen reader.\n * Left out, React Aria names it in the reader's locale — \"Calendar\" in\n * English, followed by the field's own label.\n */\n triggerLabel?: string;\n /**\n * Which of the text fields page's two boxes to draw.\n * @default 'filled'\n */\n variant?: FieldVariant;\n /**\n * How much of the calendar shows at once: `{ months: 2 }` draws two\n * months side by side, which is what a range is usually picked from.\n * Below the expanded breakpoint, where two do not fit, they stack instead\n * — see `RangeCalendar`.\n * @default { months: 1 }\n */\n visibleDuration?: DateDuration;\n};\n\n// Built by a call rather than written inline at the prop, which is what\n// react-perf's no-jsx-as-prop is after — the same reason Select builds its\n// chevron this way.\nfunction calendarTrigger(triggerLabel: string | undefined) {\n return <RACButton aria-label={triggerLabel} className={triggerClassName}>\n <CalendarGlyph {...stylex.props(picker.triggerGlyph)} />\n </RACButton>;\n}\n\n/**\n * A date range typed into a field, or picked from a calendar behind a\n * button. The value is React Aria's — pass `value` with `onChange` to\n * control it, or `defaultValue` — as a `{ start, end }` pair of\n * `@internationalized/date` values from this package's `./date` subpath.\n *\n * ```tsx\n * import { CalendarDate } from '@kanso-labs/kanso-ui/date'\n *\n * <DateRangePicker\n * defaultValue={{\n * end: new CalendarDate(2026, 9, 20),\n * start: new CalendarDate(2026, 9, 15),\n * }}\n * label=\"Label\"\n * />\n * ```\n *\n * The segments are `DateField`'s and the calendar is `RangeCalendar`, so\n * `granularity`, `minValue`, `maxValue` and `isDateUnavailable` all behave\n * as they do there. Above the medium breakpoint the calendar is docked to\n * the field; below it, it opens centred, the same swap `DatePicker` makes.\n *\n * The call site's `className` and `style` land on the picker as a whole,\n * which is the element a layout positions.\n */\nfunction DateRangePicker<T extends DateValue>({\n container,\n description,\n error,\n floatingLabel = true,\n isDisabled = false,\n label,\n leadingIcon,\n separator = '–',\n showMonthYearMenus = false,\n triggerLabel,\n variant = 'filled',\n visibleDuration,\n ...props\n}: DateRangePickerProps<T> & RefAttributes<HTMLDivElement>) {\n const validationBehavior = useFieldValidationBehavior();\n const [group, setGroup] = useState<HTMLDivElement | null>(null);\n const wrapped = useEndDateWrap(group);\n return <RACDateRangePicker<T> isDisabled={isDisabled} isInvalid={invalidFrom(error)} validationBehavior={validationBehavior} {...props} {...mergeStatefulStyles(stylex.props(fieldStyles.root), props)}>\n <FieldBox floatingLabel={floatingLabel}\n // Always populated, which buys exactly one thing: the outlined\n // notch. The box decides populated twice over — in CSS for the\n // label's type, and in React for the notch, since CSS cannot cut an\n // outline to a width it has no way to measure. React Aria renders a\n // hidden input per segment group, neither carrying a placeholder, so\n // the CSS half reads as populated on its own; the React half reads\n // React Aria's input context, which a picker does not provide.\n // Without this the notch stays shut across segments already showing\n // `mm/dd/yyyy`.\n isPopulated isRequired={props.isRequired} label={label} leading={leadingIcon}\n // Grows by a line while the end date is on one of its own, and is\n // the page's 56dp otherwise — see the header.\n multiline\n // In the chrome's trailing slot rather than on the segments' line —\n // see the same prop on DatePicker for what that slot does and why\n // the trigger still opens from there.\n trailing={calendarTrigger(triggerLabel)} variant={variant}>\n <FieldSegments>\n <RACGroup ref={setGroup} {...stylex.props(picker.group, wrapped && styles.groupWrapped)}>\n <RACDateInput slot=\"start\" {...stylex.props(segmentStyles.input)}>\n {renderSegment}\n </RACDateInput>\n <span aria-hidden=\"true\" className=\"x1w5n3ug x2lah0s x16svsjw x1848etk xh7dzej\">\n {separator}\n </span>\n {wrapped && <span aria-hidden=\"true\" className=\"xqtp20y x9f619 x1l7klhg\" />}\n <RACDateInput slot=\"end\" {...stylex.props(segmentStyles.input)}>\n {renderSegment}\n </RACDateInput>\n </RACGroup>\n </FieldSegments>\n </FieldBox>\n <FieldMessage description={description} error={error} />\n <RACPopover className={datePopoverClassName}\n // oxlint-disable-next-line typescript/no-deprecated -- its replacement, UNSAFE_PortalProvider, is not exported by react-aria-components\n UNSTABLE_portalContainer={container}>\n <RACDialog {...stylex.props(overlay.popupDialog, focus.ring)}>\n <RangeCalendar aria-label={label} showMonthYearMenus={showMonthYearMenus} visibleDuration={visibleDuration} />\n </RACDialog>\n </RACPopover>\n </RACDateRangePicker>;\n}\n\n/**\n * Whether the end date takes a line of its own: whenever the start date, the\n * dash and the end date are wider together than the line they sit on.\n *\n * Decided afresh when the line's width changes or a font finishes loading,\n * and otherwise only ever turned on, so a date narrowing as it is typed\n * never moves the end date back up mid-entry — see the header. Read off the\n * three parts' own widths rather than the line's overflow, since a wrapped\n * line overflows nothing.\n */\nfunction useEndDateWrap(group: HTMLElement | null) {\n const [wrapped, setWrapped] = useState(false);\n useLayoutEffect(() => {\n if (group === null) {\n return undefined;\n }\n let decidedAt: null | number = null;\n const measure = () => {\n const room = group.getBoundingClientRect().width;\n // React Aria's hidden inputs sit in the group too, and so does the\n // break while the end date is held down. Neither takes a line's height,\n // and neither is a part the line has to hold.\n const parts = [...group.children].filter(part => part.getBoundingClientRect().height > 0);\n const gap = Number.parseFloat(getComputedStyle(group).columnGap) || 0;\n const needs = parts.reduce((sum, part) => sum + part.getBoundingClientRect().width, gap * (parts.length - 1));\n const fits = needs <= room + 0.5;\n if (room !== decidedAt) {\n decidedAt = room;\n setWrapped(!fits);\n } else if (!fits) {\n setWrapped(true);\n }\n };\n const redecide = () => {\n decidedAt = null;\n measure();\n };\n measure();\n const resize = new ResizeObserver(measure);\n resize.observe(group);\n for (const part of group.children) {\n resize.observe(part);\n }\n document.fonts.addEventListener('loadingdone', redecide);\n return () => {\n resize.disconnect();\n document.fonts.removeEventListener('loadingdone', redecide);\n };\n }, [group]);\n return wrapped;\n}\nexport type { DateRangePickerProps };\nexport default DateRangePicker;"],"mappings":";;;;;;;;;;;;;;;;;AAkEA,MAAM0C,SAAS,EACbC,cAAc;CACZC,QAAQ;CACRC,QAAQ;CACRC,OAAO;AACT,EACF;AA2EA,SAASiB,gBAAgBH,cAAkC;CACzD,OAAO,oBAAC8E,QAAD;EAAW,cAAY9E;EAAc,WAAWtB;EACnD,UAAA,oBAAC,eAAD,EAAe,GAAI9B,MAAa6B,OAAO4B,YAAY,EAAE,CAAA;CAC5C,CAAA;AACf;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,SAAAlD,kBAAAmD,IAAA;CAAA,MAAAC,IAAAlE,EAAA,EAAA;CAA8C,MAAA,EAAAiD,WAAAE,aAAAC,OAAAC,eAAAc,IAAAC,YAAAC,IAAAf,OAAAC,aAAAC,WAAAc,IAAAb,oBAAAc,IAAAZ,cAAAC,SAAAY,IAAAX,iBAAA,GAAAE,YAAAE;CAI5C,MAAAZ,gBAAAc,OAAAM,KAAAA,IAAA,OAAAN;CACA,MAAAC,aAAAC,OAAAI,KAAAA,IAAA,QAAAJ;CAGA,MAAAb,YAAAc,OAAAG,KAAAA,IAAA,MAAAH;CACA,MAAAb,qBAAAc,OAAAE,KAAAA,IAAA,QAAAF;CAEA,MAAAX,UAAAY,OAAAC,KAAAA,IAAA,WAAAD;CAIA,MAAAE,qBAA2B9C,2BAA2B;CACtD,MAAA,CAAA+C,OAAAC,YAA0BnE,SAAgC,IAAI;CAC9D,MAAAoE,UAAgBC,eAAeH,KAAK;C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C,OAAMQ,WAAY;IAClBH,SAAQC,MAAMG,oBAAqB,eAAeV,QAAQ;GAAC;EAC5D;EACAxD,KAAA,CAACQ,KAAK;EAACT,EAAA,KAAAS;EAAAT,EAAA,KAAAD;EAAAC,EAAA,KAAAC;CAAA,OAAA;EAAAF,KAAAC,EAAA;EAAAC,KAAAD,EAAA;CAAA;CApCV1D,gBAAgByD,IAoCbE,EAAO;CAAC,OACJU;AAAO;AAvChB,SAAA2C,OAAAc,KAAAC,QAAA;CAAA,OAcgDD,MAAMN,OAAIrB,sBAAuB,CAAC,CAAAC;AAAM;AAdxF,SAAAI,MAAAgB,MAAA;CAAA,OAYuDA,KAAIrB,sBAAuB,CAAC,CAAA6B,SAAU;AAAC"}
@@ -10,7 +10,7 @@ import ButtonGroup, { ButtonGroupProps, ButtonGroupVariant } from "./button-grou
10
10
  import Calendar, { CalendarProps } from "./calendar/index.js";
11
11
  import Card, { CardProps, CardVariant } from "./card/index.js";
12
12
  import { CarouselLayout } from "../carousel/arrangement.js";
13
- import Carousel, { CarouselItem, CarouselItemProps, CarouselProps } from "./carousel/index.js";
13
+ import Carousel, { CarouselItem, CarouselItemProps, CarouselItemRenderProps, CarouselProps } from "./carousel/index.js";
14
14
  import Checkbox, { CheckboxProps } from "./checkbox/index.js";
15
15
  import CheckboxGroup, { CheckboxGroupProps } from "./checkbox-group/index.js";
16
16
  import Chip, { ChipActionProps, ChipFilterProps, ChipProps, ChipVariant } from "./chip/index.js";
@@ -82,4 +82,4 @@ import TokenField, { TokenFieldProps, TokenSegment } from "./token-field/index.j
82
82
  import Toolbar, { ToolbarProps, ToolbarTone } from "./toolbar/index.js";
83
83
  import Tooltip, { TooltipAlign, TooltipProps, TooltipSide } from "./tooltip/index.js";
84
84
  import Tree, { TreeItem, TreeItemProps, TreeLoadMore, TreeLoadMoreProps, TreeProps, TreeSection, TreeSectionProps } from "./tree/index.js";
85
- export { AppBar, type AppBarProps, type AppBarScroll, type AppBarScrollOptions, Autocomplete, type AutocompleteFilter, type AutocompleteProps, Avatar, type AvatarProps, Badge, type BadgeProps, Breadcrumbs, BreadcrumbsItem, type BreadcrumbsItemProps, type BreadcrumbsProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonGroupVariant, type ButtonProps, type ButtonShape, type ButtonSize, type ButtonVariant, Calendar, type CalendarProps, Card, type CardProps, type CardVariant, Carousel, CarouselItem, type CarouselItemProps, type CarouselLayout, type CarouselProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, Chip, type ChipActionProps, type ChipFilterProps, ChipGroup, ChipGroupChip, type ChipGroupChipProps, type ChipGroupProps, type ChipProps, type ChipVariant, Code, type CodeProps, ColorArea, type ColorAreaProps, ColorField, type ColorFieldProps, ColorPicker, type ColorPickerProps, ColorSlider, type ColorSliderProps, ColorSwatch, ColorSwatchPicker, ColorSwatchPickerItem, type ColorSwatchPickerItemProps, type ColorSwatchPickerProps, type ColorSwatchProps, ColorWheel, type ColorWheelProps, ComboBox, type ComboBoxProps, type ComboBoxSelectionMode, Container, type ContainerProps, CopyField, type CopyFieldProps, Currency, type CurrencyDisplay, type CurrencyNotation, type CurrencyProps, type CurrencySignDisplay, type CurrencyTone, DateField, type DateFieldProps, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, Dialog, DialogBody, DialogContent, type DialogContentProps, DialogFooter, DialogHeader, type DialogProps, DialogTitle, type DialogTitleProps, Disclosure, DisclosureGroup, type DisclosureGroupProps, DisclosureHeader, type DisclosureHeaderProps, DisclosurePanel, type DisclosurePanelProps, type DisclosureProps, DropZone, type DropZoneProps, Fab, FabMenu, FabMenuItem, type FabMenuItemProps, type FabMenuProps, type FabProps, type FabSize, type FabTone, type FabVariant, Feed, type FeedProps, type FieldVariant, FileTrigger, type FileTriggerProps, Form, type FormProps, IconButton, type IconButtonProps, type IconButtonSize, type IconButtonVariant, Keycap, type KeycapProps, Link, type LinkProps, type LinkTone, type LinkUnderline, List, ListBox, ListBoxItem, type ListBoxItemProps, ListBoxLoadMore, type ListBoxLoadMoreProps, type ListBoxProps, ListBoxSection, type ListBoxSectionProps, ListDetail, type ListDetailProps, ListItem, type ListItemProps, ListLoadMore, type ListLoadMoreProps, type ListProps, ListRow, type ListRowProps, ListSection, type ListSectionProps, LoadingIndicator, type LoadingIndicatorProps, Menu, type MenuAlign, MenuContent, type MenuContentProps, MenuItem, type MenuItemProps, MenuLoadMore, type MenuLoadMoreProps, type MenuProps, MenuSection, type MenuSectionProps, MenuSeparator, type MenuSeparatorProps, type MenuSide, MenuSubmenu, type MenuSubmenuProps, Meter, type MeterProps, type MeterTone, NavigationBar, NavigationBarItem, type NavigationItemProps as NavigationBarItemProps, type NavigationBarProps, NavigationRail, NavigationRailItem, type NavigationItemProps as NavigationRailItemProps, type NavigationRailProps, NavigationTree, NavigationTreeItem, type NavigationTreeItemProps, type NavigationTreeProps, NavigationTreeSection, type NavigationTreeSectionProps, NumberField, type NumberFieldProps, Popover, type PopoverAlign, PopoverContent, type PopoverContentProps, PopoverDescription, type PopoverDescriptionProps, type PopoverProps, type PopoverSide, type PopoverSize, PopoverTitle, type PopoverTitleProps, type PopoverTrigger, ProductIcon, type ProductIconProps, ProgressIndicator, type ProgressIndicatorProps, type ProgressIndicatorShape, type ProgressIndicatorTone, type ProgressIndicatorVariant, Radio, RadioGroup, type RadioGroupProps, type RadioProps, RangeCalendar, type RangeCalendarProps, SearchField, type SearchFieldProps, SearchView, SearchViewContent, type SearchViewContentProps, type SearchViewProps, SegmentedButton, type SegmentedButtonProps, SegmentedButtonSegment, type SegmentedButtonSegmentProps, Select, type SelectProps, Separator, type SeparatorInset, type SeparatorProps, Sheet, SheetBody, SheetContent, type SheetContentProps, SheetFooter, SheetHandle, SheetHeader, type SheetProps, SheetTitle, type SheetTitleProps, Slider, type SliderProps, type SliderSize, Snackbar, type SnackbarAction, type SnackbarMessage, type SnackbarOptions, type SnackbarProps, type SnackbarQueue, type ToastRegionRenderProps as SnackbarRegionRenderProps, SplitButton, SplitButtonAction, type SplitButtonActionProps, SplitButtonMenu, type SplitButtonMenuProps, type SplitButtonProps, type SplitButtonVariant, Stack, type StackAlign, type StackGap, type StackJustify, type StackProps, SupportingPane, type SupportingPaneProps, Switch, type SwitchProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableColumn, type TableColumnProps, TableFooter, type TableFooterProps, TableHeader, type TableHeaderProps, TableLoadMore, type TableLoadMoreProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsLayout, TabsList, type TabsListProps, TabsPanel, type TabsPanelProps, TabsPanels, type TabsPanelsProps, type TabsProps, TabsTab, type TabsTabProps, type TabsVariant, Tag, type TagProps, type TagTone, type TagVariant, Text, TextArea, type TextAreaProps, TextField, type TextFieldProps, type TextProps, TimeField, type TimeFieldProps, TimePicker, type TimePickerMode, type TimePickerProps, TokenField, type TokenFieldProps, type TokenSegment, Toolbar, type ToolbarProps, type ToolbarTone, Tooltip, type TooltipAlign, type TooltipProps, type TooltipSide, Tree, TreeItem, type TreeItemProps, TreeLoadMore, type TreeLoadMoreProps, type TreeProps, TreeSection, type TreeSectionProps, useAppBarScroll };
85
+ export { AppBar, type AppBarProps, type AppBarScroll, type AppBarScrollOptions, Autocomplete, type AutocompleteFilter, type AutocompleteProps, Avatar, type AvatarProps, Badge, type BadgeProps, Breadcrumbs, BreadcrumbsItem, type BreadcrumbsItemProps, type BreadcrumbsProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonGroupVariant, type ButtonProps, type ButtonShape, type ButtonSize, type ButtonVariant, Calendar, type CalendarProps, Card, type CardProps, type CardVariant, Carousel, CarouselItem, type CarouselItemProps, type CarouselItemRenderProps, type CarouselLayout, type CarouselProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, Chip, type ChipActionProps, type ChipFilterProps, ChipGroup, ChipGroupChip, type ChipGroupChipProps, type ChipGroupProps, type ChipProps, type ChipVariant, Code, type CodeProps, ColorArea, type ColorAreaProps, ColorField, type ColorFieldProps, ColorPicker, type ColorPickerProps, ColorSlider, type ColorSliderProps, ColorSwatch, ColorSwatchPicker, ColorSwatchPickerItem, type ColorSwatchPickerItemProps, type ColorSwatchPickerProps, type ColorSwatchProps, ColorWheel, type ColorWheelProps, ComboBox, type ComboBoxProps, type ComboBoxSelectionMode, Container, type ContainerProps, CopyField, type CopyFieldProps, Currency, type CurrencyDisplay, type CurrencyNotation, type CurrencyProps, type CurrencySignDisplay, type CurrencyTone, DateField, type DateFieldProps, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, Dialog, DialogBody, DialogContent, type DialogContentProps, DialogFooter, DialogHeader, type DialogProps, DialogTitle, type DialogTitleProps, Disclosure, DisclosureGroup, type DisclosureGroupProps, DisclosureHeader, type DisclosureHeaderProps, DisclosurePanel, type DisclosurePanelProps, type DisclosureProps, DropZone, type DropZoneProps, Fab, FabMenu, FabMenuItem, type FabMenuItemProps, type FabMenuProps, type FabProps, type FabSize, type FabTone, type FabVariant, Feed, type FeedProps, type FieldVariant, FileTrigger, type FileTriggerProps, Form, type FormProps, IconButton, type IconButtonProps, type IconButtonSize, type IconButtonVariant, Keycap, type KeycapProps, Link, type LinkProps, type LinkTone, type LinkUnderline, List, ListBox, ListBoxItem, type ListBoxItemProps, ListBoxLoadMore, type ListBoxLoadMoreProps, type ListBoxProps, ListBoxSection, type ListBoxSectionProps, ListDetail, type ListDetailProps, ListItem, type ListItemProps, ListLoadMore, type ListLoadMoreProps, type ListProps, ListRow, type ListRowProps, ListSection, type ListSectionProps, LoadingIndicator, type LoadingIndicatorProps, Menu, type MenuAlign, MenuContent, type MenuContentProps, MenuItem, type MenuItemProps, MenuLoadMore, type MenuLoadMoreProps, type MenuProps, MenuSection, type MenuSectionProps, MenuSeparator, type MenuSeparatorProps, type MenuSide, MenuSubmenu, type MenuSubmenuProps, Meter, type MeterProps, type MeterTone, NavigationBar, NavigationBarItem, type NavigationItemProps as NavigationBarItemProps, type NavigationBarProps, NavigationRail, NavigationRailItem, type NavigationItemProps as NavigationRailItemProps, type NavigationRailProps, NavigationTree, NavigationTreeItem, type NavigationTreeItemProps, type NavigationTreeProps, NavigationTreeSection, type NavigationTreeSectionProps, NumberField, type NumberFieldProps, Popover, type PopoverAlign, PopoverContent, type PopoverContentProps, PopoverDescription, type PopoverDescriptionProps, type PopoverProps, type PopoverSide, type PopoverSize, PopoverTitle, type PopoverTitleProps, type PopoverTrigger, ProductIcon, type ProductIconProps, ProgressIndicator, type ProgressIndicatorProps, type ProgressIndicatorShape, type ProgressIndicatorTone, type ProgressIndicatorVariant, Radio, RadioGroup, type RadioGroupProps, type RadioProps, RangeCalendar, type RangeCalendarProps, SearchField, type SearchFieldProps, SearchView, SearchViewContent, type SearchViewContentProps, type SearchViewProps, SegmentedButton, type SegmentedButtonProps, SegmentedButtonSegment, type SegmentedButtonSegmentProps, Select, type SelectProps, Separator, type SeparatorInset, type SeparatorProps, Sheet, SheetBody, SheetContent, type SheetContentProps, SheetFooter, SheetHandle, SheetHeader, type SheetProps, SheetTitle, type SheetTitleProps, Slider, type SliderProps, type SliderSize, Snackbar, type SnackbarAction, type SnackbarMessage, type SnackbarOptions, type SnackbarProps, type SnackbarQueue, type ToastRegionRenderProps as SnackbarRegionRenderProps, SplitButton, SplitButtonAction, type SplitButtonActionProps, SplitButtonMenu, type SplitButtonMenuProps, type SplitButtonProps, type SplitButtonVariant, Stack, type StackAlign, type StackGap, type StackJustify, type StackProps, SupportingPane, type SupportingPaneProps, Switch, type SwitchProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableColumn, type TableColumnProps, TableFooter, type TableFooterProps, TableHeader, type TableHeaderProps, TableLoadMore, type TableLoadMoreProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsLayout, TabsList, type TabsListProps, TabsPanel, type TabsPanelProps, TabsPanels, type TabsPanelsProps, type TabsProps, TabsTab, type TabsTabProps, type TabsVariant, Tag, type TagProps, type TagTone, type TagVariant, Text, TextArea, type TextAreaProps, TextField, type TextFieldProps, type TextProps, TimeField, type TimeFieldProps, TimePicker, type TimePickerMode, type TimePickerProps, TokenField, type TokenFieldProps, type TokenSegment, Toolbar, type ToolbarProps, type ToolbarTone, Tooltip, type TooltipAlign, type TooltipProps, type TooltipSide, Tree, TreeItem, type TreeItemProps, TreeLoadMore, type TreeLoadMoreProps, type TreeProps, TreeSection, type TreeSectionProps, useAppBarScroll };
@@ -2,7 +2,6 @@
2
2
  import { props } from "../../node_modules/@stylexjs/stylex/lib/es/stylex.js";
3
3
  import { OverlayScope } from "../../overlay/index.js";
4
4
  import { mergeRefs } from "../../render/ref.js";
5
- import { focus } from "../../styles/focus.js";
6
5
  import { mergeStatefulStyles, mergeStyles } from "../../styles/merge.js";
7
6
  import { overlay, placementOf, popupOrigin } from "../../styles/overlay.js";
8
7
  import { c } from "react/compiler-runtime";
@@ -30,6 +29,17 @@ const styles = {
30
29
  kogj98: "x1ghz6dp",
31
30
  $$css: true
32
31
  },
32
+ dialog: {
33
+ k3XXqK: "x1t137rt",
34
+ $$css: true
35
+ },
36
+ dialogRing: {
37
+ kjBf7l: "xrgy624",
38
+ kInvED: "x2ssjo2",
39
+ k3XXqK: "xbrmr3i x1t137rt",
40
+ kMeerF: "x1de99jn",
41
+ $$css: true
42
+ },
33
43
  md: {
34
44
  ks0D6T: "x10u2fgw",
35
45
  $$css: true
@@ -196,7 +206,7 @@ function PanelDialog(t0) {
196
206
  const t13 = slot ?? void 0;
197
207
  let t14;
198
208
  if ($[21] === Symbol.for("react.memo_cache_sentinel")) {
199
- t14 = props(overlay.popupDialog, focus.ring);
209
+ t14 = props(overlay.popupDialog, styles.dialog);
200
210
  $[21] = t14;
201
211
  } else t14 = $[21];
202
212
  let t15;
@@ -558,7 +568,7 @@ function PopoverContent(t0) {
558
568
  const t19 = modal ? void 0 : isOutsideTrigger;
559
569
  let t20;
560
570
  if ($[35] !== size) {
561
- t20 = (render) => props(overlay.popup, styles.content, styles[size], popupOrigin(render.placement));
571
+ t20 = (render) => props(overlay.popup, styles.content, styles.dialogRing, styles[size], popupOrigin(render.placement));
562
572
  $[35] = size;
563
573
  $[36] = t20;
564
574
  } else t20 = $[36];
@@ -578,7 +588,7 @@ function PopoverContent(t0) {
578
588
  t22 = modal ? /* @__PURE__ */ jsx(Dialog, {
579
589
  "aria-describedby": describedBy,
580
590
  ...props$1,
581
- ...props(overlay.popupDialog, focus.ring),
591
+ ...props(overlay.popupDialog, styles.dialog),
582
592
  children: /* @__PURE__ */ jsx(DescriptionContext, {
583
593
  value: registerDescription,
584
594
  children