dawn-ui-react 1.0.0-alpha.2 → 1.0.0-alpha.20

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 (153) hide show
  1. package/dist/CompositeItem-CH9gluPn.js +45 -0
  2. package/dist/CompositeListContext-DMNULDos.js +15 -0
  3. package/dist/FieldItemContext-D1iEutzE.js +9 -0
  4. package/dist/FormContext-DmYxHG1e.js +26 -0
  5. package/dist/{Input-DXDwtOqf.js → Input-DXQc6T_w.js} +16 -10
  6. package/dist/LabelableContext-mL6rBiul.js +85 -0
  7. package/dist/RadioGroupContext-zHzEliyD.js +9 -0
  8. package/dist/clamp-63kvPeUJ.js +801 -0
  9. package/dist/{cn-CXogf8HW.js → cn-BSNuKelt.js} +349 -307
  10. package/dist/components/badge/badge.d.ts +1 -1
  11. package/dist/components/badge/badge.types.d.ts +1 -0
  12. package/dist/components/chart/chart-container.d.ts +5 -0
  13. package/dist/components/chart/chart-legend-content.d.ts +8 -0
  14. package/dist/components/chart/chart-legend-icon.d.ts +2 -0
  15. package/dist/components/chart/chart-legend-indicator.d.ts +2 -0
  16. package/dist/components/chart/chart-legend-label.d.ts +2 -0
  17. package/dist/components/chart/chart-legend.d.ts +2 -0
  18. package/dist/components/chart/chart-linear-gradient.d.ts +2 -0
  19. package/dist/components/chart/chart-tooltip-content.d.ts +3 -0
  20. package/dist/components/chart/chart-tooltip-icon.d.ts +2 -0
  21. package/dist/components/chart/chart-tooltip-indicator.d.ts +2 -0
  22. package/dist/components/chart/chart-tooltip-label.d.ts +2 -0
  23. package/dist/components/chart/chart-tooltip-name.d.ts +2 -0
  24. package/dist/components/chart/chart-tooltip-payload.d.ts +4 -0
  25. package/dist/components/chart/chart-tooltip-value.d.ts +2 -0
  26. package/dist/components/chart/chart-tooltip.d.ts +2 -0
  27. package/dist/components/chart/chart.types.d.ts +50 -0
  28. package/dist/components/chart/chart.utils.d.ts +11 -0
  29. package/dist/components/chart/index.d.ts +19 -0
  30. package/dist/components/code-block/code-block-actions.d.ts +2 -0
  31. package/dist/components/code-block/code-block-copy.d.ts +2 -0
  32. package/dist/components/code-block/code-block-download.d.ts +2 -0
  33. package/dist/components/code-block/code-block-header.d.ts +3 -0
  34. package/dist/components/code-block/code-block-name.d.ts +2 -0
  35. package/dist/components/code-block/code-block-select.d.ts +2 -0
  36. package/dist/components/code-block/code-block-tabs.d.ts +2 -0
  37. package/dist/components/code-block/code-block-window.d.ts +2 -0
  38. package/dist/components/code-block/code-block.d.ts +3 -0
  39. package/dist/components/code-block/code-block.types.d.ts +26 -0
  40. package/dist/components/code-block/index.d.ts +10 -0
  41. package/dist/components/combobox/combobox-virtualized-list.d.ts +2 -0
  42. package/dist/components/combobox/combobox.types.d.ts +9 -0
  43. package/dist/components/combobox/index.d.ts +2 -1
  44. package/dist/components/dialog/index.d.ts +1 -1
  45. package/dist/components/drawer/drawer-close.d.ts +2 -0
  46. package/dist/components/drawer/drawer-content.d.ts +2 -0
  47. package/dist/components/drawer/drawer-description.d.ts +2 -0
  48. package/dist/components/drawer/drawer-header.d.ts +2 -0
  49. package/dist/components/drawer/drawer-popup.d.ts +2 -0
  50. package/dist/components/drawer/drawer-provider.d.ts +2 -0
  51. package/dist/components/drawer/drawer-title.d.ts +2 -0
  52. package/dist/components/drawer/drawer-trigger.d.ts +2 -0
  53. package/dist/components/drawer/drawer.d.ts +2 -0
  54. package/dist/components/drawer/drawer.types.d.ts +10 -0
  55. package/dist/components/drawer/index.d.ts +10 -0
  56. package/dist/components/field/field-radio.d.ts +2 -0
  57. package/dist/components/field/field-set.d.ts +2 -0
  58. package/dist/components/field/field.types.d.ts +3 -1
  59. package/dist/components/field/index.d.ts +5 -1
  60. package/dist/components/form/form-context.d.ts +56 -14
  61. package/dist/components/index.d.ts +3 -0
  62. package/dist/components/input/input.d.ts +1 -1
  63. package/dist/components/input/input.types.d.ts +3 -1
  64. package/dist/components/input-otp/index.d.ts +2 -1
  65. package/dist/components/input-otp/input-otp-separator.d.ts +2 -0
  66. package/dist/components/input-otp/input-otp-slot.d.ts +1 -1
  67. package/dist/components/input-otp/input-otp.types.d.ts +4 -3
  68. package/dist/components/layer-tree/index.d.ts +5 -1
  69. package/dist/components/layer-tree/layer-tree-body.d.ts +1 -1
  70. package/dist/components/layer-tree/layer-tree-footer.d.ts +2 -0
  71. package/dist/components/layer-tree/layer-tree-node-toggle.d.ts +1 -1
  72. package/dist/components/layer-tree/layer-tree-node.d.ts +1 -1
  73. package/dist/components/layer-tree/layer-tree-row.d.ts +1 -1
  74. package/dist/components/layer-tree/layer-tree-search.d.ts +1 -1
  75. package/dist/components/layer-tree/layer-tree-sort.d.ts +2 -0
  76. package/dist/components/layer-tree/layer-tree-utils.d.ts +83 -0
  77. package/dist/components/layer-tree/layer-tree.d.ts +9 -4
  78. package/dist/components/layer-tree/layer-tree.types.d.ts +16 -5
  79. package/dist/components/number-field/number-field.d.ts +1 -1
  80. package/dist/components/popover/index.d.ts +2 -1
  81. package/dist/components/popover/popover-button.d.ts +2 -0
  82. package/dist/components/popover/popover.types.d.ts +2 -0
  83. package/dist/components/profile/index.d.ts +5 -1
  84. package/dist/components/profile/profile-action.d.ts +2 -0
  85. package/dist/components/profile/profile-content.d.ts +2 -0
  86. package/dist/components/profile/profile-name.d.ts +2 -0
  87. package/dist/components/profile/profile-subname.d.ts +2 -0
  88. package/dist/components/profile/profile.d.ts +1 -1
  89. package/dist/components/profile/profile.types.d.ts +6 -14
  90. package/dist/components/scroll-area/scroll-area.d.ts +1 -1
  91. package/dist/components/scroll-area/scroll-area.types.d.ts +6 -2
  92. package/dist/components/select/select.types.d.ts +5 -0
  93. package/dist/components/separator/separator.d.ts +1 -1
  94. package/dist/components/separator/separator.types.d.ts +3 -1
  95. package/dist/components/slider/slider.d.ts +1 -1
  96. package/dist/components/slider/slider.types.d.ts +7 -1
  97. package/dist/components/table/index.d.ts +15 -2
  98. package/dist/components/table/table-body.d.ts +1 -1
  99. package/dist/components/table/table-column-toggle.d.ts +2 -0
  100. package/dist/components/table/table-container.d.ts +2 -0
  101. package/dist/components/table/table-data-set-select.d.ts +2 -0
  102. package/dist/components/table/table-data-set-tabs.d.ts +2 -0
  103. package/dist/components/table/table-filter-form.d.ts +3 -0
  104. package/dist/components/table/table-filter.d.ts +1 -1
  105. package/dist/components/table/table-filters.d.ts +2 -0
  106. package/dist/components/table/table-pagination.d.ts +1 -1
  107. package/dist/components/table/table-paging.d.ts +2 -0
  108. package/dist/components/table/table-row-grid.d.ts +1 -1
  109. package/dist/components/table/table-row-list.d.ts +1 -1
  110. package/dist/components/table/table-sort.d.ts +1 -1
  111. package/dist/components/table/table-toolbar.d.ts +2 -0
  112. package/dist/components/table/table.constants.d.ts +64 -0
  113. package/dist/components/table/table.d.ts +14 -5
  114. package/dist/components/table/table.types.d.ts +73 -15
  115. package/dist/components/table/table.utils.d.ts +4 -0
  116. package/dist/components/tabs/tabs.d.ts +1 -1
  117. package/dist/components/tabs/tabs.types.d.ts +4 -1
  118. package/dist/components/toggle-group/toggle-group.d.ts +1 -1
  119. package/dist/components/toggle-group/toggle-group.types.d.ts +1 -0
  120. package/dist/composite-8Z1YCmUf.js +161 -0
  121. package/dist/composite-DTxBFZq_.js +328 -0
  122. package/dist/createBaseUIEventDetails-BHkB1IRT.js +36 -0
  123. package/dist/dawn-ui-react.js +38096 -11606
  124. package/dist/dawn-ui-react.umd.cjs +176 -27
  125. package/dist/{form-context-DqrRdk0d.js → form-context-CpevRrMx.js} +541 -515
  126. package/dist/input.types-DDZuq7AK.js +21 -0
  127. package/dist/label-C57cQsPN.js +50 -0
  128. package/dist/owner-CZ-bExcn.js +6 -0
  129. package/dist/serializeValue-DadF0djs.js +12 -0
  130. package/dist/shadowDom-nxuQhD_O.js +25 -0
  131. package/dist/styles.css +149 -118
  132. package/dist/useBaseUiId-DJ56dhex.js +25 -0
  133. package/dist/useCompositeListItem-CuKiOJnK.js +53 -0
  134. package/dist/useControlled-kefeIBTp.js +48 -0
  135. package/dist/useLabelableId-Cb5S9nao.js +39 -0
  136. package/dist/useOpenChangeComplete-D1bYAEWf.js +178 -0
  137. package/dist/useRegisterFieldControl-I4gdfodR.js +27 -0
  138. package/dist/visuallyHidden-C0MRt467.js +21 -0
  139. package/package.json +42 -37
  140. package/dist/clamp-CYKyjuJR.js +0 -3033
  141. package/dist/field-description-BDRJXMS8.js +0 -12
  142. package/dist/field-errors-DVQtEKG3.js +0 -19
  143. package/dist/field-input-Doplzz0V.js +0 -58
  144. package/dist/field-input-group-CzX_hAjq.js +0 -18
  145. package/dist/field-input-group-input-micw-J2Y.js +0 -20
  146. package/dist/field-label-C2atREm0.js +0 -16
  147. package/dist/field-select--mY7GbNz.js +0 -2149
  148. package/dist/field-slider-D54-Z8Ds.js +0 -2167
  149. package/dist/input-group-DgFUfXr7.js +0 -12
  150. package/dist/input-group-input-DNZQ6g-3.js +0 -11
  151. package/dist/input.types-D8b-1Bcm.js +0 -21
  152. package/dist/rolldown-runtime-CAFD8bLK.js +0 -11
  153. package/dist/useLabelableId-BaWKrZ8_.js +0 -271
@@ -1,9 +1,32 @@
1
+ import { MenuTrigger } from '../menu';
2
+ import { SelectTrigger } from '../select';
3
+ import { Tabs } from '../tabs';
1
4
  import { Button } from '../button';
2
5
  import { inputVariants } from '../input/input.types';
3
- import { TableView } from './table';
4
- import { Row, Table as TanstackTable } from '@tanstack/react-table';
6
+ import { filterDefinitions } from './table.constants';
7
+ import { Column, ColumnDef, Row, Table as TanstackTable } from '@tanstack/react-table';
5
8
  import { VariantProps } from 'class-variance-authority';
6
- export type TableFilterProps = React.ComponentProps<typeof Button>;
9
+ import { z } from 'zod';
10
+ export type FilterOperator = 'equals' | 'notEquals' | 'contains' | 'notContains' | 'startsWith' | 'endsWith' | 'greaterThan' | 'greaterThanOrEqual' | 'lessThan' | 'lessThanOrEqual' | 'before' | 'after' | 'between' | 'anyOf' | 'noneOf' | 'empty' | 'notEmpty';
11
+ export type TextOperator = Extract<FilterOperator, 'equals' | 'notEquals' | 'contains' | 'notContains' | 'startsWith' | 'endsWith'>;
12
+ export type SelectOperator = Extract<FilterOperator, 'equals' | 'notEquals' | 'anyOf' | 'noneOf'>;
13
+ export type NumberOperator = Extract<FilterOperator, 'equals' | 'notEquals' | 'greaterThan' | 'greaterThanOrEqual' | 'lessThan' | 'lessThanOrEqual' | 'between'>;
14
+ export type FilterType = 'text' | 'select' | 'number';
15
+ export type TextFilterValue = {
16
+ filterOperator: TextOperator;
17
+ filterValue: string;
18
+ };
19
+ export type SelectFilterValue = {
20
+ filterOperator: SelectOperator;
21
+ filterValue: string | string[];
22
+ };
23
+ export type NumberFilterValue = {
24
+ filterOperator: NumberOperator;
25
+ filterValue: number | [number, number];
26
+ };
27
+ export type TableFilterProps = React.ComponentProps<typeof MenuTrigger> & {
28
+ operatorLabels?: Partial<Record<FilterOperator, string>>;
29
+ };
7
30
  export type TableFirstPageProps = React.ComponentProps<typeof Button>;
8
31
  export type TableFooterProps = React.ComponentProps<'tfoot'>;
9
32
  export type TableHeaderProps = React.ComponentProps<'thead'>;
@@ -19,21 +42,56 @@ export type TableResultsProps = Omit<React.ComponentProps<'div'>, 'children'> &
19
42
  export type TablePreviousPageProps = React.ComponentProps<typeof Button>;
20
43
  export type TableRefreshProps = React.ComponentProps<typeof Button>;
21
44
  export type TableSearchProps = React.ComponentProps<'input'> & VariantProps<typeof inputVariants>;
22
- export type TableProps = React.ComponentProps<'div'> & {
45
+ export type TableProps<TData, TValue> = React.ComponentProps<'div'> & {
46
+ table: TanstackTable<TData>;
47
+ dataSets?: TableDataSet<TData, TValue>[];
48
+ currentDataSet?: TableDataSet<TData, TValue>;
49
+ setCurrentDataSet?: React.Dispatch<React.SetStateAction<TableDataSet<TData, TValue>>>;
23
50
  defaultView?: TableView;
24
- table: TanstackTable<any>;
25
51
  };
26
- export type TableSortProps = React.ComponentProps<typeof Button>;
27
- export type TableRowListProps = React.ComponentProps<'tr'> & {
28
- row: Row<any>;
52
+ export type TableColumnToggleProps = React.ComponentProps<typeof MenuTrigger>;
53
+ export type TableRowListProps<TData> = React.ComponentProps<'tr'> & {
54
+ row: Row<TData>;
29
55
  };
30
- export type TableBodyProps = Omit<React.ComponentProps<'tbody'>, 'children'> & {
31
- children?: (row: Row<any>) => React.ReactNode;
32
- rowGridOverride?: React.ComponentType<TableRowGridProps>;
33
- rowListOverride?: React.ComponentType<TableRowListProps>;
56
+ export type TableBodyProps<TData> = Omit<React.ComponentProps<'tbody'>, 'children'> & {
57
+ children?: (row: Row<TData>) => React.ReactNode;
58
+ rowGridOverride?: React.ComponentType<TableRowGridProps<TData>>;
59
+ rowListOverride?: React.ComponentType<TableRowListProps<TData>>;
34
60
  };
35
- export type TableRowGridProps = React.ComponentProps<'tr'> & {
36
- row: Row<any>;
61
+ export type TableRowGridProps<TData> = React.ComponentProps<'tr'> & {
62
+ row: Row<TData>;
37
63
  };
38
64
  export type TableNavProps = React.ComponentProps<'div'>;
39
- export type TableContentProps = React.ComponentProps<'table'>;
65
+ export type TableContentProps = React.ComponentProps<'div'>;
66
+ export type TablePagingProps = React.ComponentProps<'div'> & {
67
+ min?: number;
68
+ max?: number;
69
+ };
70
+ export type TableContainerProps = React.ComponentProps<'table'>;
71
+ export type TableToolbarProps = React.ComponentProps<'div'>;
72
+ export type TableFiltersProps = React.ComponentProps<'ul'> & {
73
+ operatorLabels?: Partial<Record<FilterOperator, string>>;
74
+ };
75
+ export type TableFilterFormProps<TData, TValue, TFilterType extends keyof typeof filterDefinitions> = React.ComponentProps<'form'> & {
76
+ column: Column<TData, TValue>;
77
+ filterType: TFilterType;
78
+ operatorLabels?: Partial<Record<FilterOperator, string>>;
79
+ clearLabel?: React.ReactNode;
80
+ submitLabel?: React.ReactNode;
81
+ renderClearButton?: (defaultButton: React.ReactNode) => React.ReactNode;
82
+ renderSubmitButton?: (defaultButton: React.ReactNode) => React.ReactNode;
83
+ };
84
+ export type FilterValue<T extends keyof typeof filterDefinitions> = z.infer<(typeof filterDefinitions)[T]['schema']>;
85
+ export type TableSortProps = React.ComponentProps<typeof MenuTrigger> & {
86
+ ascendingLabel?: string;
87
+ descendingLabel?: string;
88
+ };
89
+ export type TableDataSet<TData, TValue> = {
90
+ id: string;
91
+ label: string;
92
+ data: TData[];
93
+ columns: ColumnDef<TData, TValue>[];
94
+ };
95
+ export type TableView = 'grid' | 'list';
96
+ export type TableDataSetSelectProps = React.ComponentProps<typeof SelectTrigger>;
97
+ export type TableDataSetTabsProps = React.ComponentProps<typeof Tabs>;
@@ -0,0 +1,4 @@
1
+ import { FilterFn } from '@tanstack/react-table';
2
+ export declare const textFilterFn: FilterFn<any>;
3
+ export declare const selectFilterFn: FilterFn<any>;
4
+ export declare const numberFilterFn: FilterFn<any>;
@@ -1,2 +1,2 @@
1
1
  import { TabsProps } from '.';
2
- export declare const Tabs: ({ variant, fill, className, ref, ...props }: TabsProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const Tabs: ({ size, tone, variant, fill, className, ref, ...props }: TabsProps) => import("react/jsx-runtime").JSX.Element;
@@ -6,7 +6,10 @@ export type TabsTabProps = ComponentProps<typeof BaseTabs.Tab>;
6
6
  export type TabsIndicatorProps = ComponentProps<typeof BaseTabs.Indicator>;
7
7
  export type TabsListProps = ComponentProps<typeof BaseTabs.List>;
8
8
  export declare const tabsVariants: (props?: ({
9
- variant?: "default" | "underline" | null | undefined;
9
+ size?: "small" | "large" | "medium" | null | undefined;
10
+ tone?: "brand" | "accent" | "neutral" | "error" | "info" | "success" | "warning" | null | undefined;
11
+ variant?: "ghost" | "default" | "underline" | null | undefined;
10
12
  fill?: boolean | null | undefined;
11
13
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
12
14
  export type TabsProps = React.ComponentProps<typeof BaseTabs.Root> & VariantProps<typeof tabsVariants>;
15
+ export type TabsTabValue = TabsTabProps['value'];
@@ -1,2 +1,2 @@
1
1
  import { ToggleGroupProps } from './toggle-group.types';
2
- export declare const ToggleGroup: ({ size, className, children, ref, ...props }: ToggleGroupProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const ToggleGroup: ({ size, variant, className, children, ref, ...props }: ToggleGroupProps) => import("react/jsx-runtime").JSX.Element;
@@ -2,5 +2,6 @@ import { VariantProps } from 'class-variance-authority';
2
2
  import { ToggleGroup } from '@base-ui/react/toggle-group';
3
3
  export declare const toggleGroupVariants: (props?: ({
4
4
  size?: "small" | "large" | "medium" | null | undefined;
5
+ variant?: "ghost" | "default" | null | undefined;
5
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
7
  export type ToggleGroupProps = React.ComponentProps<typeof ToggleGroup> & VariantProps<typeof toggleGroupVariants>;
@@ -0,0 +1,161 @@
1
+ import { M as e, Q as t, X as n, Z as r } from "./form-context-CpevRrMx.js";
2
+ import { t as i } from "./CompositeListContext-DMNULDos.js";
3
+ import * as a from "react";
4
+ import { jsx as o } from "react/jsx-runtime";
5
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/internals/composite/list/CompositeList.js
6
+ function s(e) {
7
+ let { children: s, elementsRef: d, labelsRef: f, onMapChange: p } = e, m = r(p), h = a.useRef(0), g = t(l).current, _ = t(c).current, [v, y] = a.useState(0), b = a.useRef(v), x = r((e, t) => {
8
+ _.set(e, t ?? null), b.current += 1, y(b.current);
9
+ }), S = r((e) => {
10
+ _.delete(e), b.current += 1, y(b.current);
11
+ }), C = a.useMemo(() => {
12
+ let e = /* @__PURE__ */ new Map();
13
+ return Array.from(_.keys()).filter((e) => e.isConnected).sort(u).forEach((t, n) => {
14
+ let r = _.get(t) ?? {};
15
+ e.set(t, {
16
+ ...r,
17
+ index: n
18
+ });
19
+ }), e;
20
+ }, [_, v]);
21
+ n(() => {
22
+ if (typeof MutationObserver != "function" || C.size === 0) return;
23
+ let e = new MutationObserver((e) => {
24
+ let t = /* @__PURE__ */ new Set(), n = (e) => t.has(e) ? t.delete(e) : t.add(e);
25
+ e.forEach((e) => {
26
+ e.removedNodes.forEach(n), e.addedNodes.forEach(n);
27
+ }), t.size === 0 && (b.current += 1, y(b.current));
28
+ });
29
+ return C.forEach((t, n) => {
30
+ n.parentElement && e.observe(n.parentElement, { childList: !0 });
31
+ }), () => {
32
+ e.disconnect();
33
+ };
34
+ }, [C]), n(() => {
35
+ b.current === v && (d.current.length !== C.size && (d.current.length = C.size), f && f.current.length !== C.size && (f.current.length = C.size), h.current = C.size), m(C);
36
+ }, [
37
+ m,
38
+ C,
39
+ d,
40
+ f,
41
+ v
42
+ ]), n(() => () => {
43
+ d.current = [];
44
+ }, [d]), n(() => () => {
45
+ f && (f.current = []);
46
+ }, [f]);
47
+ let w = r((e) => (g.add(e), () => {
48
+ g.delete(e);
49
+ }));
50
+ n(() => {
51
+ g.forEach((e) => e(C));
52
+ }, [g, C]);
53
+ let T = a.useMemo(() => ({
54
+ register: x,
55
+ unregister: S,
56
+ subscribeMapChange: w,
57
+ elementsRef: d,
58
+ labelsRef: f,
59
+ nextIndexRef: h
60
+ }), [
61
+ x,
62
+ S,
63
+ w,
64
+ d,
65
+ f,
66
+ h
67
+ ]);
68
+ return /* @__PURE__ */ o(i.Provider, {
69
+ value: T,
70
+ children: s
71
+ });
72
+ }
73
+ function c() {
74
+ return /* @__PURE__ */ new Map();
75
+ }
76
+ function l() {
77
+ return /* @__PURE__ */ new Set();
78
+ }
79
+ function u(e, t) {
80
+ let n = e.compareDocumentPosition(t);
81
+ return n & Node.DOCUMENT_POSITION_FOLLOWING || n & Node.DOCUMENT_POSITION_CONTAINED_BY ? -1 : n & Node.DOCUMENT_POSITION_PRECEDING || n & Node.DOCUMENT_POSITION_CONTAINS ? 1 : 0;
82
+ }
83
+ //#endregion
84
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/internals/direction-context/DirectionContext.js
85
+ var d = /* @__PURE__ */ a.createContext(void 0);
86
+ process.env.NODE_ENV !== "production" && (d.displayName = "DirectionContext");
87
+ function f() {
88
+ return a.useContext(d)?.direction ?? "ltr";
89
+ }
90
+ //#endregion
91
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/internals/composite/composite.js
92
+ var p = "ArrowUp", m = "ArrowDown", h = "ArrowLeft", g = "ArrowRight", _ = "Home", v = "PageUp", y = "PageDown", b = new Set([h, g]), x = new Set([
93
+ h,
94
+ g,
95
+ _,
96
+ "End"
97
+ ]), S = new Set([p, m]), C = new Set([
98
+ p,
99
+ m,
100
+ _,
101
+ "End"
102
+ ]), w = new Set([...b, ...S]), T = new Set([
103
+ ...w,
104
+ _,
105
+ "End"
106
+ ]), E = new Set([
107
+ p,
108
+ m,
109
+ h,
110
+ g,
111
+ _,
112
+ "End"
113
+ ]), D = "Shift", O = new Set([
114
+ D,
115
+ "Control",
116
+ "Alt",
117
+ "Meta"
118
+ ]);
119
+ function k(t) {
120
+ return e(t) && t.tagName === "INPUT";
121
+ }
122
+ function A(t) {
123
+ return !!(k(t) && t.selectionStart != null || e(t) && t.tagName === "TEXTAREA");
124
+ }
125
+ function j(e, t, n, r) {
126
+ if (!e || !t || !t.scrollTo) return;
127
+ let i = e.scrollLeft, a = e.scrollTop, o = e.clientWidth < e.scrollWidth, s = e.clientHeight < e.scrollHeight;
128
+ if (o && r !== "vertical") {
129
+ let r = M(e, t, "left"), a = N(e), o = N(t);
130
+ n === "ltr" && (r + t.offsetWidth + o.scrollMarginRight > e.scrollLeft + e.clientWidth - a.scrollPaddingRight ? i = r + t.offsetWidth + o.scrollMarginRight - e.clientWidth + a.scrollPaddingRight : r - o.scrollMarginLeft < e.scrollLeft + a.scrollPaddingLeft && (i = r - o.scrollMarginLeft - a.scrollPaddingLeft)), n === "rtl" && (r - o.scrollMarginRight < e.scrollLeft + a.scrollPaddingLeft ? i = r - o.scrollMarginLeft - a.scrollPaddingLeft : r + t.offsetWidth + o.scrollMarginRight > e.scrollLeft + e.clientWidth - a.scrollPaddingRight && (i = r + t.offsetWidth + o.scrollMarginRight - e.clientWidth + a.scrollPaddingRight));
131
+ }
132
+ if (s && r !== "horizontal") {
133
+ let n = M(e, t, "top"), r = N(e), i = N(t);
134
+ n - i.scrollMarginTop < e.scrollTop + r.scrollPaddingTop ? a = n - i.scrollMarginTop - r.scrollPaddingTop : n + t.offsetHeight + i.scrollMarginBottom > e.scrollTop + e.clientHeight - r.scrollPaddingBottom && (a = n + t.offsetHeight + i.scrollMarginBottom - e.clientHeight + r.scrollPaddingBottom);
135
+ }
136
+ e.scrollTo({
137
+ left: i,
138
+ top: a,
139
+ behavior: "auto"
140
+ });
141
+ }
142
+ function M(e, t, n) {
143
+ let r = n === "left" ? "offsetLeft" : "offsetTop", i = 0;
144
+ for (; t.offsetParent && (i += t[r], t.offsetParent !== e);) t = t.offsetParent;
145
+ return i;
146
+ }
147
+ function N(e) {
148
+ let t = getComputedStyle(e);
149
+ return {
150
+ scrollMarginTop: parseFloat(t.scrollMarginTop) || 0,
151
+ scrollMarginRight: parseFloat(t.scrollMarginRight) || 0,
152
+ scrollMarginBottom: parseFloat(t.scrollMarginBottom) || 0,
153
+ scrollMarginLeft: parseFloat(t.scrollMarginLeft) || 0,
154
+ scrollPaddingTop: parseFloat(t.scrollPaddingTop) || 0,
155
+ scrollPaddingRight: parseFloat(t.scrollPaddingRight) || 0,
156
+ scrollPaddingBottom: parseFloat(t.scrollPaddingBottom) || 0,
157
+ scrollPaddingLeft: parseFloat(t.scrollPaddingLeft) || 0
158
+ };
159
+ }
160
+ //#endregion
161
+ export { A as _, g as a, s as b, _ as c, O as d, y as f, C as g, S as h, h as i, b as l, D as m, m as n, p as o, v as p, w as r, E as s, T as t, x as u, j as v, f as y };
@@ -0,0 +1,328 @@
1
+ import { x as e } from "./form-context-CpevRrMx.js";
2
+ //#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/utils/esm/detectBrowser.js
3
+ var t = typeof navigator < "u", n = f(), r = m(), i = p(), a = typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter:none"), o = n.platform === "MacIntel" && n.maxTouchPoints > 1 ? !0 : /iP(hone|ad|od)|iOS/.test(n.platform), s = t && /firefox/i.test(i), c = t && /apple/i.test(navigator.vendor);
4
+ t && /Edg/i.test(i);
5
+ var l = t && /android/i.test(r) || /android/i.test(i), u = t && r.toLowerCase().startsWith("mac") && !navigator.maxTouchPoints, d = i.includes("jsdom/");
6
+ function f() {
7
+ if (!t) return {
8
+ platform: "",
9
+ maxTouchPoints: -1
10
+ };
11
+ let e = navigator.userAgentData;
12
+ return e?.platform ? {
13
+ platform: e.platform,
14
+ maxTouchPoints: navigator.maxTouchPoints
15
+ } : {
16
+ platform: navigator.platform ?? "",
17
+ maxTouchPoints: navigator.maxTouchPoints ?? -1
18
+ };
19
+ }
20
+ function p() {
21
+ if (!t) return "";
22
+ let e = navigator.userAgentData;
23
+ return e && Array.isArray(e.brands) ? e.brands.map(({ brand: e, version: t }) => `${e}/${t}`).join(" ") : navigator.userAgent;
24
+ }
25
+ function m() {
26
+ if (!t) return "";
27
+ let e = navigator.userAgentData;
28
+ return e?.platform ? e.platform : navigator.platform ?? "";
29
+ }
30
+ //#endregion
31
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/floating-ui-react/utils/constants.js
32
+ var h = "data-base-ui-focusable", g = "active", _ = "selected", v = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])", y = "ArrowLeft", b = "ArrowRight", x = "ArrowUp", S = "ArrowDown";
33
+ //#endregion
34
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/floating-ui-react/utils/event.js
35
+ function C(e) {
36
+ e.preventDefault(), e.stopPropagation();
37
+ }
38
+ function ee(e) {
39
+ return "nativeEvent" in e;
40
+ }
41
+ function te(e) {
42
+ return e.pointerType === "" && e.isTrusted ? !0 : l && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
43
+ }
44
+ function w(e) {
45
+ return d ? !1 : !l && e.width === 0 && e.height === 0 || l && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse" || e.width < 1 && e.height < 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "touch";
46
+ }
47
+ function ne(e, t) {
48
+ let n = ["mouse", "pen"];
49
+ return t || n.push("", void 0), n.includes(e);
50
+ }
51
+ function re(e) {
52
+ let t = e.type;
53
+ return t === "click" || t === "mousedown" || t === "keydown" || t === "keyup";
54
+ }
55
+ //#endregion
56
+ //#region node_modules/.pnpm/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
57
+ var ie = [
58
+ "top",
59
+ "right",
60
+ "bottom",
61
+ "left"
62
+ ], T = Math.min, E = Math.max, D = Math.round, O = Math.floor, k = (e) => ({
63
+ x: e,
64
+ y: e
65
+ }), A = {
66
+ left: "right",
67
+ right: "left",
68
+ bottom: "top",
69
+ top: "bottom"
70
+ };
71
+ function j(e, t, n) {
72
+ return E(e, T(t, n));
73
+ }
74
+ function ae(e, t) {
75
+ return typeof e == "function" ? e(t) : e;
76
+ }
77
+ function M(e) {
78
+ return e.split("-")[0];
79
+ }
80
+ function N(e) {
81
+ return e.split("-")[1];
82
+ }
83
+ function P(e) {
84
+ return e === "x" ? "y" : "x";
85
+ }
86
+ function F(e) {
87
+ return e === "y" ? "height" : "width";
88
+ }
89
+ function I(e) {
90
+ let t = e[0];
91
+ return t === "t" || t === "b" ? "y" : "x";
92
+ }
93
+ function L(e) {
94
+ return P(I(e));
95
+ }
96
+ function R(e, t, n) {
97
+ n === void 0 && (n = !1);
98
+ let r = N(e), i = L(e), a = F(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
99
+ return t.reference[a] > t.floating[a] && (o = q(o)), [o, q(o)];
100
+ }
101
+ function z(e) {
102
+ let t = q(e);
103
+ return [
104
+ B(e),
105
+ t,
106
+ B(t)
107
+ ];
108
+ }
109
+ function B(e) {
110
+ return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
111
+ }
112
+ var V = ["left", "right"], H = ["right", "left"], U = ["top", "bottom"], W = ["bottom", "top"];
113
+ function G(e, t, n) {
114
+ switch (e) {
115
+ case "top":
116
+ case "bottom": return n ? t ? H : V : t ? V : H;
117
+ case "left":
118
+ case "right": return t ? U : W;
119
+ default: return [];
120
+ }
121
+ }
122
+ function K(e, t, n, r) {
123
+ let i = N(e), a = G(M(e), n === "start", r);
124
+ return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(B)))), a;
125
+ }
126
+ function q(e) {
127
+ let t = M(e);
128
+ return A[t] + e.slice(t.length);
129
+ }
130
+ function oe(e) {
131
+ return {
132
+ top: 0,
133
+ right: 0,
134
+ bottom: 0,
135
+ left: 0,
136
+ ...e
137
+ };
138
+ }
139
+ function se(e) {
140
+ return typeof e == "number" ? {
141
+ top: e,
142
+ right: e,
143
+ bottom: e,
144
+ left: e
145
+ } : oe(e);
146
+ }
147
+ function ce(e) {
148
+ let { x: t, y: n, width: r, height: i } = e;
149
+ return {
150
+ width: r,
151
+ height: i,
152
+ top: n,
153
+ left: t,
154
+ right: t + r,
155
+ bottom: n + i,
156
+ x: t,
157
+ y: n
158
+ };
159
+ }
160
+ //#endregion
161
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/floating-ui-react/utils/composite.js
162
+ function J(e, t, n) {
163
+ return Math.floor(e / t) !== n;
164
+ }
165
+ function Y(e, t) {
166
+ return t < 0 || t >= e.length;
167
+ }
168
+ function le(e, t) {
169
+ return Z(e.current, { disabledIndices: t });
170
+ }
171
+ function X(e, t) {
172
+ return Z(e.current, {
173
+ decrement: !0,
174
+ startingIndex: e.current.length,
175
+ disabledIndices: t
176
+ });
177
+ }
178
+ function Z(e, { startingIndex: t = -1, decrement: n = !1, disabledIndices: r, amount: i = 1 } = {}) {
179
+ let a = t;
180
+ do
181
+ a += n ? -i : i;
182
+ while (a >= 0 && a <= e.length - 1 && Q(e, a, r));
183
+ return a;
184
+ }
185
+ function ue(e, { event: t, orientation: n, loopFocus: r, onLoop: i, rtl: a, cols: o, disabledIndices: s, minIndex: c, maxIndex: l, prevIndex: u, stopEvent: d = !1 }) {
186
+ let f = u, p;
187
+ if (t.key === "ArrowUp" ? p = "up" : t.key === "ArrowDown" && (p = "down"), p) {
188
+ let n = [], a = [], m = !1, h = 0;
189
+ {
190
+ let t = null, r = -1;
191
+ e.forEach((e, i) => {
192
+ if (e == null) return;
193
+ h += 1;
194
+ let o = e.closest("[role=\"row\"]");
195
+ o && (m = !0), (o !== t || r === -1) && (t = o, r += 1, n[r] = []), n[r].push(i), a[i] = r;
196
+ });
197
+ }
198
+ let g = !1, _ = 0;
199
+ if (m) for (let e of n) {
200
+ let t = e.length;
201
+ t > _ && (_ = t), t !== o && (g = !0);
202
+ }
203
+ let v = g && h < e.length, y = _ || o, b = (o) => {
204
+ if (!g || u === -1) return;
205
+ let c = a[u];
206
+ if (c == null) return;
207
+ let l = n[c].indexOf(u), d = o === "up" ? -1 : 1;
208
+ for (let o = c + d, f = 0; f < n.length; f += 1, o += d) {
209
+ if (o < 0 || o >= n.length) {
210
+ if (!r || v) return;
211
+ if (o = o < 0 ? n.length - 1 : 0, i) {
212
+ let e = Math.min(l, n[o].length - 1);
213
+ o = a[i(t, u, n[o][e] ?? n[o][0])] ?? o;
214
+ }
215
+ }
216
+ let c = n[o];
217
+ for (let t = Math.min(l, c.length - 1); t >= 0; --t) {
218
+ let n = c[t];
219
+ if (!Q(e, n, s)) return n;
220
+ }
221
+ }
222
+ }, x = (t) => {
223
+ if (!v || u === -1) return;
224
+ let n = u % y, i = t === "up" ? -y : y, a = l - l % y, o = O(l / y) + 1;
225
+ for (let t = u - n + i, c = 0; c < o; c += 1, t += i) {
226
+ if (t < 0 || t > l) {
227
+ if (!r) return;
228
+ t = t < 0 ? a : 0;
229
+ }
230
+ let i = Math.min(t + y - 1, l);
231
+ for (let r = Math.min(t + n, i); r >= t; --r) if (!Q(e, r, s)) return r;
232
+ }
233
+ };
234
+ d && C(t);
235
+ let S = b(p) ?? x(p);
236
+ if (S !== void 0) f = S;
237
+ else if (u === -1) f = p === "up" ? l : c;
238
+ else if (f = Z(e, {
239
+ startingIndex: u,
240
+ amount: y,
241
+ decrement: p === "up",
242
+ disabledIndices: s
243
+ }), r) {
244
+ if (p === "up" && (u - y < c || f < 0)) {
245
+ let e = u % y, n = l % y, r = l - (n - e);
246
+ f = n === e ? l : n > e ? r : r - y, i && (f = i(t, u, f));
247
+ }
248
+ p === "down" && u + y > l && (f = Z(e, {
249
+ startingIndex: u % y - y,
250
+ amount: y,
251
+ disabledIndices: s
252
+ }), i && (f = i(t, u, f)));
253
+ }
254
+ Y(e, f) && (f = u);
255
+ }
256
+ if (n === "both") {
257
+ let n = O(u / o);
258
+ t.key === (a ? "ArrowLeft" : "ArrowRight") && (d && C(t), u % o === o - 1 ? r && (f = Z(e, {
259
+ startingIndex: u - u % o - 1,
260
+ disabledIndices: s
261
+ }), i && (f = i(t, u, f))) : (f = Z(e, {
262
+ startingIndex: u,
263
+ disabledIndices: s
264
+ }), r && J(f, o, n) && (f = Z(e, {
265
+ startingIndex: u - u % o - 1,
266
+ disabledIndices: s
267
+ }), i && (f = i(t, u, f)))), J(f, o, n) && (f = u)), t.key === (a ? "ArrowRight" : "ArrowLeft") && (d && C(t), u % o === 0 ? r && (f = Z(e, {
268
+ startingIndex: u + (o - u % o),
269
+ decrement: !0,
270
+ disabledIndices: s
271
+ }), i && (f = i(t, u, f))) : (f = Z(e, {
272
+ startingIndex: u,
273
+ decrement: !0,
274
+ disabledIndices: s
275
+ }), r && J(f, o, n) && (f = Z(e, {
276
+ startingIndex: u + (o - u % o),
277
+ decrement: !0,
278
+ disabledIndices: s
279
+ }), i && (f = i(t, u, f)))), J(f, o, n) && (f = u));
280
+ let c = O(l / o) === n;
281
+ Y(e, f) && (r && c ? (f = t.key === (a ? "ArrowRight" : "ArrowLeft") ? l : Z(e, {
282
+ startingIndex: u - u % o - 1,
283
+ disabledIndices: s
284
+ }), i && (f = i(t, u, f))) : f = u);
285
+ }
286
+ return f;
287
+ }
288
+ function de(e, t, n) {
289
+ let r = [], i = 0;
290
+ return e.forEach(({ width: e, height: a }, o) => {
291
+ if (e > t && process.env.NODE_ENV !== "production") throw Error(`[Floating UI]: Invalid grid - item width at index ${o} is greater than grid columns`);
292
+ let s = !1;
293
+ for (n && (i = 0); !s;) {
294
+ let n = [];
295
+ for (let r = 0; r < e; r += 1) for (let e = 0; e < a; e += 1) n.push(i + r + e * t);
296
+ i % t + e <= t && n.every((e) => r[e] == null) ? (n.forEach((e) => {
297
+ r[e] = o;
298
+ }), s = !0) : i += 1;
299
+ }
300
+ }), [...r];
301
+ }
302
+ function fe(e, t, n, r, i) {
303
+ if (e === -1) return -1;
304
+ let a = n.indexOf(e), o = t[e];
305
+ switch (i) {
306
+ case "tl": return a;
307
+ case "tr": return o ? a + o.width - 1 : a;
308
+ case "bl": return o ? a + (o.height - 1) * r : a;
309
+ case "br": return n.lastIndexOf(e);
310
+ default: return -1;
311
+ }
312
+ }
313
+ function pe(e, t) {
314
+ return t.flatMap((t, n) => e.includes(t) ? [n] : []);
315
+ }
316
+ function Q(e, t, n) {
317
+ if (typeof n == "function" ? n(t) : n?.includes(t) ?? !1) return !0;
318
+ let r = e[t];
319
+ return r ? $(r) ? !n && (r.hasAttribute("disabled") || r.getAttribute("aria-disabled") === "true") : !0 : !1;
320
+ }
321
+ function me(e) {
322
+ return e.visibility === "hidden" || e.visibility === "collapse";
323
+ }
324
+ function $(t, n = t ? e(t) : null) {
325
+ return !t || !t.isConnected || !n || me(n) ? !1 : typeof t.checkVisibility == "function" ? t.checkVisibility() : n.display !== "none" && n.display !== "contents";
326
+ }
327
+ //#endregion
328
+ export { ie as A, b as B, se as C, T as D, E, w as F, l as G, h as H, C as I, d as J, s as K, g as L, ne as M, ee as N, ce as O, te as P, S as R, q as S, I as T, _ as U, x as V, v as W, c as X, u as Y, a as Z, R as _, ue as a, P as b, $ as c, j as d, k as f, L as g, N as h, pe as i, re as j, D as k, Y as l, O as m, Z as n, X as o, ae as p, o as q, fe as r, le as s, de as t, Q as u, F as v, M as w, K as x, z as y, y as z };
@@ -0,0 +1,36 @@
1
+ import { W as e } from "./form-context-CpevRrMx.js";
2
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/internals/reason-parts.js
3
+ var t = "none", n = "trigger-press", r = "trigger-hover", i = "trigger-focus", a = "outside-press", o = "item-press", s = "close-press", c = "clear-press", l = "chip-remove-press", u = "track-press", d = "increment-press", f = "decrement-press", p = "input-change", m = "input-clear", h = "input-blur", g = "input-paste", _ = "input-press", v = "focus-out", y = "escape-key", b = "close-watcher", x = "list-navigation", S = "keyboard", C = "pointer", w = "drag", T = "scrub", E = "cancel-open", D = "sibling-open", O = "disabled", k = "imperative-action", A = "swipe", j = "window-resize";
4
+ //#endregion
5
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/internals/createBaseUIEventDetails.js
6
+ function M(t, n, r, i) {
7
+ let a = !1, o = !1, s = i ?? e;
8
+ return {
9
+ reason: t,
10
+ event: n ?? new Event("base-ui"),
11
+ cancel() {
12
+ a = !0;
13
+ },
14
+ allowPropagation() {
15
+ o = !0;
16
+ },
17
+ get isCanceled() {
18
+ return a;
19
+ },
20
+ get isPropagationAllowed() {
21
+ return o;
22
+ },
23
+ trigger: r,
24
+ ...s
25
+ };
26
+ }
27
+ function N(t, n, r) {
28
+ let i = r ?? e;
29
+ return {
30
+ reason: t,
31
+ event: n ?? new Event("base-ui"),
32
+ ...i
33
+ };
34
+ }
35
+ //#endregion
36
+ export { i as A, t as C, D, T as E, n as M, j as N, A as O, x as S, C as T, m as _, c as a, o as b, f as c, y as d, v as f, p as g, h, l as i, r as j, u as k, O as l, d as m, N as n, s as o, k as p, E as r, b as s, M as t, w as u, g as v, a as w, S as x, _ as y };