@epilot/zenith-react 0.2.0-next.7 → 0.3.0-next.1
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.
- package/CHANGELOG.md +278 -0
- package/codemods/README.md +5 -3
- package/codemods/migrate/volt/field-combobox.ts +37 -0
- package/codemods/migrate/volt/index.ts +2 -0
- package/codemods/migrate/volt/same-name.ts +2 -17
- package/codemods/radix-to-base-ui.ts +4 -1
- package/dist/_virtual/_zenith-runtime-family_autocomplete.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_autocomplete.js.map +1 -0
- package/dist/components/callout/callout.js +0 -1
- package/dist/components/callout/callout.js.map +1 -1
- package/dist/components/command/command.js +263 -179
- package/dist/components/command/command.js.map +1 -1
- package/dist/components/field/field-combobox.js +213 -177
- package/dist/components/field/field-combobox.js.map +1 -1
- package/dist/components/field/field.js +281 -247
- package/dist/components/field/field.js.map +1 -1
- package/dist/components/list/list-sortable.js +86 -72
- package/dist/components/list/list-sortable.js.map +1 -1
- package/dist/components/list/list.js +206 -205
- package/dist/components/list/list.js.map +1 -1
- package/dist/components/tooltip/tooltip.js +10 -11
- package/dist/components/tooltip/tooltip.js.map +1 -1
- package/dist/index.d.ts +91 -256
- package/dist/index.js +120 -119
- package/dist/renderer/runtime-contract.generated.js +4 -4
- package/dist/renderer/runtime-contract.generated.js.map +1 -1
- package/dist/tokens.json +1 -1
- package/package.json +40 -5
- package/dist/vendor/.bun/@radix-ui_primitive@1.1.3/vendor/@radix-ui/primitive/dist/index.js +0 -10
- package/dist/vendor/.bun/@radix-ui_primitive@1.1.3/vendor/@radix-ui/primitive/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-compose-refs@1.1.2_0ac650c021fb1b59/vendor/@radix-ui/react-compose-refs/dist/index.js +0 -30
- package/dist/vendor/.bun/@radix-ui_react-compose-refs@1.1.2_0ac650c021fb1b59/vendor/@radix-ui/react-compose-refs/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-context@1.1.2_0ac650c021fb1b59/vendor/@radix-ui/react-context/dist/index.js +0 -71
- package/dist/vendor/.bun/@radix-ui_react-context@1.1.2_0ac650c021fb1b59/vendor/@radix-ui/react-context/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-dialog@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-dialog/dist/index.js +0 -258
- package/dist/vendor/.bun/@radix-ui_react-dialog@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-dialog/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-dismissable-layer@1.1.11_2b23df507bdda662/vendor/@radix-ui/react-dismissable-layer/dist/index.js +0 -128
- package/dist/vendor/.bun/@radix-ui_react-dismissable-layer@1.1.11_2b23df507bdda662/vendor/@radix-ui/react-dismissable-layer/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-focus-guards@1.1.3_0ac650c021fb1b59/vendor/@radix-ui/react-focus-guards/dist/index.js +0 -18
- package/dist/vendor/.bun/@radix-ui_react-focus-guards@1.1.3_0ac650c021fb1b59/vendor/@radix-ui/react-focus-guards/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-focus-scope@1.1.7_2b23df507bdda662/vendor/@radix-ui/react-focus-scope/dist/index.js +0 -138
- package/dist/vendor/.bun/@radix-ui_react-focus-scope@1.1.7_2b23df507bdda662/vendor/@radix-ui/react-focus-scope/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-id@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-id/dist/index.js +0 -14
- package/dist/vendor/.bun/@radix-ui_react-id@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-id/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-portal@1.1.9_2b23df507bdda662/vendor/@radix-ui/react-portal/dist/index.js +0 -17
- package/dist/vendor/.bun/@radix-ui_react-portal@1.1.9_2b23df507bdda662/vendor/@radix-ui/react-portal/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-presence@1.1.5_2b23df507bdda662/vendor/@radix-ui/react-presence/dist/index.js +0 -72
- package/dist/vendor/.bun/@radix-ui_react-presence@1.1.5_2b23df507bdda662/vendor/@radix-ui/react-presence/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-primitive@2.1.3_2b23df507bdda662/vendor/@radix-ui/react-primitive/dist/index.js +0 -37
- package/dist/vendor/.bun/@radix-ui_react-primitive@2.1.3_2b23df507bdda662/vendor/@radix-ui/react-primitive/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-slot@1.2.3_0ac650c021fb1b59/vendor/@radix-ui/react-slot/dist/index.js +0 -51
- package/dist/vendor/.bun/@radix-ui_react-slot@1.2.3_0ac650c021fb1b59/vendor/@radix-ui/react-slot/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-use-callback-ref@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-use-callback-ref/dist/index.js +0 -14
- package/dist/vendor/.bun/@radix-ui_react-use-callback-ref@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-use-callback-ref/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-use-controllable-state@1.2.2_0ac650c021fb1b59/vendor/@radix-ui/react-use-controllable-state/dist/index.js +0 -55
- package/dist/vendor/.bun/@radix-ui_react-use-controllable-state@1.2.2_0ac650c021fb1b59/vendor/@radix-ui/react-use-controllable-state/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-use-escape-keydown@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-use-escape-keydown/dist/index.js +0 -15
- package/dist/vendor/.bun/@radix-ui_react-use-escape-keydown@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-use-escape-keydown/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-use-layout-effect@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-use-layout-effect/dist/index.js +0 -7
- package/dist/vendor/.bun/@radix-ui_react-use-layout-effect@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-use-layout-effect/dist/index.js.map +0 -1
- package/dist/vendor/.bun/aria-hidden@1.2.6/vendor/aria-hidden/dist/es2015/index.js +0 -53
- package/dist/vendor/.bun/aria-hidden@1.2.6/vendor/aria-hidden/dist/es2015/index.js.map +0 -1
- package/dist/vendor/.bun/cmdk@1.1.1_2b23df507bdda662/vendor/cmdk/dist/chunk-NZJY6EH4.js +0 -18
- package/dist/vendor/.bun/cmdk@1.1.1_2b23df507bdda662/vendor/cmdk/dist/chunk-NZJY6EH4.js.map +0 -1
- package/dist/vendor/.bun/cmdk@1.1.1_2b23df507bdda662/vendor/cmdk/dist/index.js +0 -313
- package/dist/vendor/.bun/cmdk@1.1.1_2b23df507bdda662/vendor/cmdk/dist/index.js.map +0 -1
- package/dist/vendor/.bun/get-nonce@1.0.1/vendor/get-nonce/dist/es2015/index.js +0 -8
- package/dist/vendor/.bun/get-nonce@1.0.1/vendor/get-nonce/dist/es2015/index.js.map +0 -1
- package/dist/vendor/.bun/react-remove-scroll-bar@2.3.8_0ac650c021fb1b59/vendor/react-remove-scroll-bar/dist/es2015/component.js +0 -72
- package/dist/vendor/.bun/react-remove-scroll-bar@2.3.8_0ac650c021fb1b59/vendor/react-remove-scroll-bar/dist/es2015/component.js.map +0 -1
- package/dist/vendor/.bun/react-remove-scroll-bar@2.3.8_0ac650c021fb1b59/vendor/react-remove-scroll-bar/dist/es2015/constants.js +0 -8
- package/dist/vendor/.bun/react-remove-scroll-bar@2.3.8_0ac650c021fb1b59/vendor/react-remove-scroll-bar/dist/es2015/constants.js.map +0 -1
- package/dist/vendor/.bun/react-remove-scroll-bar@2.3.8_0ac650c021fb1b59/vendor/react-remove-scroll-bar/dist/es2015/utils.js +0 -26
- package/dist/vendor/.bun/react-remove-scroll-bar@2.3.8_0ac650c021fb1b59/vendor/react-remove-scroll-bar/dist/es2015/utils.js.map +0 -1
- package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/Combination.js +0 -12
- package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/Combination.js.map +0 -1
- package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/SideEffect.js +0 -116
- package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/SideEffect.js.map +0 -1
- package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/UI.js +0 -32
- package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/UI.js.map +0 -1
- package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -17
- package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +0 -1
- package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/handleScroll.js +0 -69
- package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/handleScroll.js.map +0 -1
- package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/medium.js +0 -6
- package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/medium.js.map +0 -1
- package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/sidecar.js +0 -8
- package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/sidecar.js.map +0 -1
- package/dist/vendor/.bun/react-style-singleton@2.2.3_0ac650c021fb1b59/vendor/react-style-singleton/dist/es2015/component.js +0 -12
- package/dist/vendor/.bun/react-style-singleton@2.2.3_0ac650c021fb1b59/vendor/react-style-singleton/dist/es2015/component.js.map +0 -1
- package/dist/vendor/.bun/react-style-singleton@2.2.3_0ac650c021fb1b59/vendor/react-style-singleton/dist/es2015/hook.js +0 -16
- package/dist/vendor/.bun/react-style-singleton@2.2.3_0ac650c021fb1b59/vendor/react-style-singleton/dist/es2015/hook.js.map +0 -1
- package/dist/vendor/.bun/react-style-singleton@2.2.3_0ac650c021fb1b59/vendor/react-style-singleton/dist/es2015/singleton.js +0 -31
- package/dist/vendor/.bun/react-style-singleton@2.2.3_0ac650c021fb1b59/vendor/react-style-singleton/dist/es2015/singleton.js.map +0 -1
- package/dist/vendor/.bun/tslib@2.8.1/vendor/tslib/tslib.es6.js +0 -28
- package/dist/vendor/.bun/tslib@2.8.1/vendor/tslib/tslib.es6.js.map +0 -1
- package/dist/vendor/.bun/use-callback-ref@1.3.3_0ac650c021fb1b59/vendor/use-callback-ref/dist/es2015/assignRef.js +0 -7
- package/dist/vendor/.bun/use-callback-ref@1.3.3_0ac650c021fb1b59/vendor/use-callback-ref/dist/es2015/assignRef.js.map +0 -1
- package/dist/vendor/.bun/use-callback-ref@1.3.3_0ac650c021fb1b59/vendor/use-callback-ref/dist/es2015/useMergeRef.js +0 -27
- package/dist/vendor/.bun/use-callback-ref@1.3.3_0ac650c021fb1b59/vendor/use-callback-ref/dist/es2015/useMergeRef.js.map +0 -1
- package/dist/vendor/.bun/use-callback-ref@1.3.3_0ac650c021fb1b59/vendor/use-callback-ref/dist/es2015/useRef.js +0 -26
- package/dist/vendor/.bun/use-callback-ref@1.3.3_0ac650c021fb1b59/vendor/use-callback-ref/dist/es2015/useRef.js.map +0 -1
- package/dist/vendor/.bun/use-sidecar@1.1.3_0ac650c021fb1b59/vendor/use-sidecar/dist/es2015/exports.js +0 -19
- package/dist/vendor/.bun/use-sidecar@1.1.3_0ac650c021fb1b59/vendor/use-sidecar/dist/es2015/exports.js.map +0 -1
- package/dist/vendor/.bun/use-sidecar@1.1.3_0ac650c021fb1b59/vendor/use-sidecar/dist/es2015/medium.js +0 -68
- package/dist/vendor/.bun/use-sidecar@1.1.3_0ac650c021fb1b59/vendor/use-sidecar/dist/es2015/medium.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -38,48 +38,48 @@ import { Tooltip as lr, TooltipContent as ir, TooltipPortal as nr, TooltipProvid
|
|
|
38
38
|
import { CollapsibleSidebar as xr, CollapsibleSidebarCondensed as dr, CollapsibleSidebarContent as Cr, CollapsibleSidebarToggle as sr, useCollapsibleSidebar as ur } from "./components/collapsible-sidebar/collapsible-sidebar.js";
|
|
39
39
|
import { Field as Dr, FieldContent as gr, FieldDescription as Tr, FieldError as cr, FieldGroup as Sr, FieldGroupAddon as Fr, FieldInput as Pr, FieldInputGroup as wr, FieldLabel as Ar, FieldLabelContent as Lr, FieldSet as Ir, FieldTextarea as Gr, fieldDescriptionVariants as kr, fieldVariants as Or, inputGroupAddonVariants as Mr, useFieldContext as Rr } from "./components/field/field.js";
|
|
40
40
|
import { SelectTrigger as vr } from "./components/field/field-select.js";
|
|
41
|
-
import { Combobox as yr, ComboboxClear as Vr, ComboboxClearValue as Hr,
|
|
42
|
-
import { List as
|
|
43
|
-
import { OptionCard as
|
|
44
|
-
import { SegmentedControl as
|
|
45
|
-
import { DateTimePicker as
|
|
46
|
-
import { DateRangePicker as
|
|
47
|
-
import { Text as
|
|
48
|
-
import { CodeBlock as
|
|
49
|
-
import { CodeEditor as
|
|
50
|
-
import { CODE_LANGUAGES as
|
|
51
|
-
import { DataTable as
|
|
52
|
-
import { DataTableBody as
|
|
53
|
-
import { DataTableContent as
|
|
54
|
-
import { DataTableHeader as
|
|
55
|
-
import { DataTableLoading as
|
|
56
|
-
import { DataTableError as
|
|
57
|
-
import { DataTablePagination as
|
|
58
|
-
import { DataTableToolbar as
|
|
59
|
-
import { DataTableFooter as
|
|
60
|
-
import { DataTableResizeHandle as
|
|
61
|
-
import { DataTableColumnVisibility as
|
|
62
|
-
import { DataTableColumnOrder as
|
|
63
|
-
import { DataTableHeaderDraggable as
|
|
64
|
-
import { DataTableColumnHeader as
|
|
65
|
-
import { DataTableRow as
|
|
66
|
-
import { getSelectedRowData as
|
|
67
|
-
import { getPinnedColumnOffset as
|
|
68
|
-
import { DataTableVirtualizerContext as
|
|
69
|
-
import { TablePagination as
|
|
70
|
-
import { calculatePagination as
|
|
71
|
-
import { ClearButton as
|
|
72
|
-
import { Calendar as
|
|
73
|
-
import { DateTimePickerInput as
|
|
74
|
-
import { DateTimePickerPanel as
|
|
75
|
-
import { DateTimePickerPopover as
|
|
76
|
-
import { DateTimePickerRoot as
|
|
77
|
-
import { RangeCalendar as
|
|
78
|
-
import { TimePicker as
|
|
79
|
-
import { ensureCoreTokens as
|
|
80
|
-
import { useDataTable as
|
|
81
|
-
import { useDataTableContent as
|
|
82
|
-
import { useDataTableVirtualizer as
|
|
41
|
+
import { Combobox as yr, ComboboxClear as Vr, ComboboxClearValue as Hr, ComboboxCollection as Er, ComboboxContent as _r, ComboboxEmpty as zr, ComboboxGroup as Nr, ComboboxGroupLabel as Ur, ComboboxInput as Zr, ComboboxItem as jr, ComboboxItemCheckIcon as qr, ComboboxList as Jr, ComboboxLoading as Kr, ComboboxPlaceholder as Qr, ComboboxSeparator as Wr, ComboboxTrigger as Xr, ComboboxValue as Yr } from "./components/field/field-combobox.js";
|
|
42
|
+
import { List as ot, ListGroup as et, ListGroupContent as rt, ListGroupLabel as tt, ListItem as at, ListItemActions as lt, ListItemDescription as it, ListItemText as nt } from "./components/list/list.js";
|
|
43
|
+
import { OptionCard as mt, OptionCardContent as bt, OptionCardControl as xt, OptionCardDescription as dt, OptionCardGroup as Ct, OptionCardMedia as st, OptionCardTitle as ut } from "./components/option-card/option-card.js";
|
|
44
|
+
import { SegmentedControl as Dt, SegmentedControlItem as gt } from "./components/segmented-control/segmented-control.js";
|
|
45
|
+
import { DateTimePicker as ct } from "./components/date-time-picker/date-time-picker.js";
|
|
46
|
+
import { DateRangePicker as Ft } from "./components/date-range-picker/date-range-picker.js";
|
|
47
|
+
import { Text as wt } from "./components/text/text.js";
|
|
48
|
+
import { CodeBlock as Lt } from "./components/code-block/code-block.js";
|
|
49
|
+
import { CodeEditor as Gt } from "./components/code-editor/code-editor.js";
|
|
50
|
+
import { CODE_LANGUAGES as Ot, isCodeLanguageSupported as Mt, registerCodeLanguage as Rt } from "./lib/code-highlight.js";
|
|
51
|
+
import { DataTable as vt } from "./components/data-table/data-table.js";
|
|
52
|
+
import { DataTableBody as yt } from "./components/data-table/data-table-body.js";
|
|
53
|
+
import { DataTableContent as Ht } from "./components/data-table/data-table-content.js";
|
|
54
|
+
import { DataTableHeader as _t } from "./components/data-table/data-table-header.js";
|
|
55
|
+
import { DataTableLoading as Nt } from "./components/data-table/data-table-loading.js";
|
|
56
|
+
import { DataTableError as Zt } from "./components/data-table/data-table-error.js";
|
|
57
|
+
import { DataTablePagination as qt } from "./components/data-table/data-table-pagination.js";
|
|
58
|
+
import { DataTableToolbar as Kt } from "./components/data-table/data-table-toolbar.js";
|
|
59
|
+
import { DataTableFooter as Wt } from "./components/data-table/data-table-footer.js";
|
|
60
|
+
import { DataTableResizeHandle as Yt } from "./components/data-table/data-table-resize-handle.js";
|
|
61
|
+
import { DataTableColumnVisibility as oa } from "./components/data-table/data-table-column-visibility.js";
|
|
62
|
+
import { DataTableColumnOrder as ra } from "./components/data-table/data-table-column-order.js";
|
|
63
|
+
import { DataTableHeaderDraggable as aa } from "./components/data-table/data-table-header-draggable.js";
|
|
64
|
+
import { DataTableColumnHeader as ia } from "./components/data-table/data-table-column-header.js";
|
|
65
|
+
import { DataTableRow as pa } from "./components/data-table/data-table-row.js";
|
|
66
|
+
import { getSelectedRowData as ba } from "./components/data-table/get-selected-row-data.js";
|
|
67
|
+
import { getPinnedColumnOffset as da, isFirstRightPinnedColumn as Ca, isLastLeftPinnedColumn as sa } from "./components/data-table/data-table-pinning-utils.js";
|
|
68
|
+
import { DataTableVirtualizerContext as fa } from "./components/data-table/data-table-context.js";
|
|
69
|
+
import { TablePagination as ga } from "./components/table/table-pagination.js";
|
|
70
|
+
import { calculatePagination as ca, clampPage as Sa, getPageNumbers as Fa } from "./lib/pagination.js";
|
|
71
|
+
import { ClearButton as wa } from "./lib/clear-button.js";
|
|
72
|
+
import { Calendar as La } from "./components/date-time-picker/calendar.js";
|
|
73
|
+
import { DateTimePickerInput as Ga } from "./components/date-time-picker/date-time-picker-input.js";
|
|
74
|
+
import { DateTimePickerPanel as Oa } from "./components/date-time-picker/date-time-picker-panel.js";
|
|
75
|
+
import { DateTimePickerPopover as Ra } from "./components/date-time-picker/date-time-picker-popover.js";
|
|
76
|
+
import { DateTimePickerRoot as va } from "./components/date-time-picker/date-time-picker-context.js";
|
|
77
|
+
import { RangeCalendar as ya } from "./components/date-range-picker/range-calendar.js";
|
|
78
|
+
import { TimePicker as Ha } from "./components/date-time-picker/time-picker.js";
|
|
79
|
+
import { ensureCoreTokens as _a, ensurePaletteTokens as za, ensurePaletteTokensFor as Na, preparePaletteTokens as Ua } from "./packages/tokens/dist/install.js";
|
|
80
|
+
import { useDataTable as ja } from "./components/data-table/hooks/use-data-table.js";
|
|
81
|
+
import { useDataTableContent as Ja } from "./components/data-table/hooks/use-data-table-content.js";
|
|
82
|
+
import { useDataTableVirtualizer as Qa } from "./components/data-table/hooks/use-data-table-virtualizer.js";
|
|
83
83
|
export {
|
|
84
84
|
X as Accordion,
|
|
85
85
|
Y as AccordionContent,
|
|
@@ -107,8 +107,8 @@ export {
|
|
|
107
107
|
ao as ButtonGroup,
|
|
108
108
|
lo as ButtonGroupSeparator,
|
|
109
109
|
io as ButtonGroupText,
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
Ot as CODE_LANGUAGES,
|
|
111
|
+
La as Calendar,
|
|
112
112
|
D as Callout,
|
|
113
113
|
g as CalloutAction,
|
|
114
114
|
T as CalloutDescription,
|
|
@@ -121,35 +121,35 @@ export {
|
|
|
121
121
|
I as CardHeader,
|
|
122
122
|
G as CardTitle,
|
|
123
123
|
po as Checkbox,
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
124
|
+
wa as ClearButton,
|
|
125
|
+
Lt as CodeBlock,
|
|
126
|
+
Gt as CodeEditor,
|
|
127
127
|
xr as CollapsibleSidebar,
|
|
128
128
|
dr as CollapsibleSidebarCondensed,
|
|
129
129
|
Cr as CollapsibleSidebarContent,
|
|
130
130
|
sr as CollapsibleSidebarToggle,
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
131
|
+
vt as DataTable,
|
|
132
|
+
yt as DataTableBody,
|
|
133
|
+
ia as DataTableColumnHeader,
|
|
134
|
+
ra as DataTableColumnOrder,
|
|
135
|
+
oa as DataTableColumnVisibility,
|
|
136
|
+
Ht as DataTableContent,
|
|
137
|
+
Zt as DataTableError,
|
|
138
|
+
Wt as DataTableFooter,
|
|
139
|
+
_t as DataTableHeader,
|
|
140
|
+
aa as DataTableHeaderDraggable,
|
|
141
|
+
Nt as DataTableLoading,
|
|
142
|
+
qt as DataTablePagination,
|
|
143
|
+
Yt as DataTableResizeHandle,
|
|
144
|
+
pa as DataTableRow,
|
|
145
|
+
Kt as DataTableToolbar,
|
|
146
|
+
fa as DataTableVirtualizerContext,
|
|
147
|
+
Ft as DateRangePicker,
|
|
148
|
+
ct as DateTimePicker,
|
|
149
|
+
Ga as DateTimePickerInput,
|
|
150
|
+
Oa as DateTimePickerPanel,
|
|
151
|
+
Ra as DateTimePickerPopover,
|
|
152
|
+
va as DateTimePickerRoot,
|
|
153
153
|
qo as DensityProvider,
|
|
154
154
|
Qo as Dialog,
|
|
155
155
|
Wo as DialogClose,
|
|
@@ -190,19 +190,20 @@ export {
|
|
|
190
190
|
yr as FieldCombobox,
|
|
191
191
|
Vr as FieldComboboxClear,
|
|
192
192
|
Hr as FieldComboboxClearValue,
|
|
193
|
-
Er as
|
|
194
|
-
_r as
|
|
195
|
-
zr as
|
|
196
|
-
Nr as
|
|
197
|
-
Ur as
|
|
198
|
-
Zr as
|
|
199
|
-
jr as
|
|
200
|
-
qr as
|
|
201
|
-
Jr as
|
|
202
|
-
Kr as
|
|
203
|
-
Qr as
|
|
204
|
-
Wr as
|
|
205
|
-
Xr as
|
|
193
|
+
Er as FieldComboboxCollection,
|
|
194
|
+
_r as FieldComboboxContent,
|
|
195
|
+
zr as FieldComboboxEmpty,
|
|
196
|
+
Nr as FieldComboboxGroup,
|
|
197
|
+
Ur as FieldComboboxGroupLabel,
|
|
198
|
+
Zr as FieldComboboxInput,
|
|
199
|
+
jr as FieldComboboxItem,
|
|
200
|
+
qr as FieldComboboxItemCheckIcon,
|
|
201
|
+
Jr as FieldComboboxList,
|
|
202
|
+
Kr as FieldComboboxLoading,
|
|
203
|
+
Qr as FieldComboboxPlaceholder,
|
|
204
|
+
Wr as FieldComboboxSeparator,
|
|
205
|
+
Xr as FieldComboboxTrigger,
|
|
206
|
+
Yr as FieldComboboxValue,
|
|
206
207
|
gr as FieldContent,
|
|
207
208
|
Tr as FieldDescription,
|
|
208
209
|
cr as FieldError,
|
|
@@ -215,21 +216,21 @@ export {
|
|
|
215
216
|
Ir as FieldSet,
|
|
216
217
|
Gr as FieldTextarea,
|
|
217
218
|
bo as Label,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
219
|
+
ot as List,
|
|
220
|
+
et as ListGroup,
|
|
221
|
+
rt as ListGroupContent,
|
|
222
|
+
tt as ListGroupLabel,
|
|
223
|
+
at as ListItem,
|
|
224
|
+
lt as ListItemActions,
|
|
225
|
+
it as ListItemDescription,
|
|
226
|
+
nt as ListItemText,
|
|
227
|
+
mt as OptionCard,
|
|
228
|
+
bt as OptionCardContent,
|
|
229
|
+
xt as OptionCardControl,
|
|
230
|
+
dt as OptionCardDescription,
|
|
231
|
+
Ct as OptionCardGroup,
|
|
232
|
+
st as OptionCardMedia,
|
|
233
|
+
ut as OptionCardTitle,
|
|
233
234
|
R as PILL_COLORS,
|
|
234
235
|
h as Pill,
|
|
235
236
|
he as Popover,
|
|
@@ -239,13 +240,13 @@ export {
|
|
|
239
240
|
Ve as PopoverTrigger,
|
|
240
241
|
Co as RadioGroup,
|
|
241
242
|
so as RadioGroupItem,
|
|
242
|
-
|
|
243
|
+
ya as RangeCalendar,
|
|
243
244
|
i as SLOT_ATTR,
|
|
244
245
|
Ee as ScrollArea,
|
|
245
246
|
_e as ScrollAreaViewport,
|
|
246
247
|
Ne as ScrollOverflow,
|
|
247
|
-
|
|
248
|
-
|
|
248
|
+
Dt as SegmentedControl,
|
|
249
|
+
gt as SegmentedControlItem,
|
|
249
250
|
je as Select,
|
|
250
251
|
qe as SelectContent,
|
|
251
252
|
Je as SelectGroup,
|
|
@@ -270,14 +271,14 @@ export {
|
|
|
270
271
|
q as TableFooter,
|
|
271
272
|
J as TableHead,
|
|
272
273
|
K as TableHeader,
|
|
273
|
-
|
|
274
|
+
ga as TablePagination,
|
|
274
275
|
Q as TableRow,
|
|
275
276
|
Fo as Tabs,
|
|
276
277
|
Po as TabsContent,
|
|
277
278
|
wo as TabsList,
|
|
278
279
|
Ao as TabsTrigger,
|
|
279
|
-
|
|
280
|
-
|
|
280
|
+
wt as Text,
|
|
281
|
+
Ha as TimePicker,
|
|
281
282
|
rr as Toaster,
|
|
282
283
|
Io as Toggle,
|
|
283
284
|
ko as ToggleGroup,
|
|
@@ -288,32 +289,32 @@ export {
|
|
|
288
289
|
pr as TooltipProvider,
|
|
289
290
|
mr as TooltipTrigger,
|
|
290
291
|
n as assertAnchorIsFirstInHead,
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
292
|
+
ca as calculatePagination,
|
|
293
|
+
Sa as clampPage,
|
|
294
|
+
_a as ensureCoreTokens,
|
|
295
|
+
za as ensurePaletteTokens,
|
|
296
|
+
Na as ensurePaletteTokensFor,
|
|
296
297
|
kr as fieldDescriptionVariants,
|
|
297
298
|
Or as fieldVariants,
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
299
|
+
Fa as getPageNumbers,
|
|
300
|
+
da as getPinnedColumnOffset,
|
|
301
|
+
ba as getSelectedRowData,
|
|
301
302
|
Mr as inputGroupAddonVariants,
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
303
|
+
Mt as isCodeLanguageSupported,
|
|
304
|
+
Ca as isFirstRightPinnedColumn,
|
|
305
|
+
sa as isLastLeftPinnedColumn,
|
|
305
306
|
t as makeZenithResetStyles,
|
|
306
307
|
a as makeZenithStyles,
|
|
307
308
|
p as mergeClasses,
|
|
308
|
-
|
|
309
|
-
|
|
309
|
+
Ua as preparePaletteTokens,
|
|
310
|
+
Rt as registerCodeLanguage,
|
|
310
311
|
m as shorthands,
|
|
311
312
|
tr as toast,
|
|
312
313
|
o as tokens,
|
|
313
314
|
ur as useCollapsibleSidebar,
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
315
|
+
ja as useDataTable,
|
|
316
|
+
Ja as useDataTableContent,
|
|
317
|
+
Qa as useDataTableVirtualizer,
|
|
317
318
|
Jo as useDensity,
|
|
318
319
|
Rr as useFieldContext,
|
|
319
320
|
Ue as useScrollOverflow
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const o = "v1",
|
|
1
|
+
const o = "v1", t = "f407044b35", e = ["accordion", "alertDialog", "autocomplete", "avatar", "button", "checkbox", "cspProvider", "dialog", "directionProvider", "menu", "mergeProps", "popover", "radio", "radioGroup", "scrollArea", "select", "separator", "switch", "tabs", "toast", "toggle", "toggleGroup", "tooltip", "useRender"], r = ["6564a1491b1ddd6b"];
|
|
2
2
|
export {
|
|
3
3
|
o as EXPECTED_ABI_VERSION,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
t as EXPECTED_CLASS_SALT,
|
|
5
|
+
e as EXPECTED_PRIMITIVES,
|
|
6
|
+
r as EXPECTED_TOKEN_SHEETS
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=runtime-contract.generated.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-contract.generated.js","sources":["../../src/renderer/runtime-contract.generated.ts"],"sourcesContent":["/* GENERATED by scripts/emit-runtime-contract.ts — do not edit. */\nexport const EXPECTED_ABI_VERSION = \"v1\" as const\nexport const EXPECTED_CLASS_SALT = \"f407044b35\" as const\nexport const EXPECTED_GRIFFEL_VERSION = \"1.21.3\" as const\n/** Base UI families this package imports, by the runtime's `primitives` key; served by the runtime (D13). */\nexport const EXPECTED_PRIMITIVES = [\"accordion\", \"alertDialog\", \"avatar\", \"button\", \"checkbox\", \"cspProvider\", \"dialog\", \"directionProvider\", \"menu\", \"mergeProps\", \"popover\", \"radio\", \"radioGroup\", \"scrollArea\", \"select\", \"separator\", \"switch\", \"tabs\", \"toast\", \"toggle\", \"toggleGroup\", \"tooltip\", \"useRender\"] as const\n/** Token sheets this package was compiled against, by D3 content hash; served by the runtime (D13). */\nexport const EXPECTED_TOKEN_SHEETS = [\"6564a1491b1ddd6b\"] as const\n"],"names":["EXPECTED_ABI_VERSION","EXPECTED_CLASS_SALT","EXPECTED_PRIMITIVES","EXPECTED_TOKEN_SHEETS"],"mappings":"AACO,MAAMA,IAAuB,MACvBC,IAAsB,cAGtBC,IAAsB,CAAC,aAAa,eAAe,UAAU,UAAU,YAAY,eAAe,UAAU,qBAAqB,QAAQ,cAAc,WAAW,SAAS,cAAc,cAAc,UAAU,aAAa,UAAU,QAAQ,SAAS,UAAU,eAAe,WAAW,WAAW,
|
|
1
|
+
{"version":3,"file":"runtime-contract.generated.js","sources":["../../src/renderer/runtime-contract.generated.ts"],"sourcesContent":["/* GENERATED by scripts/emit-runtime-contract.ts — do not edit. */\nexport const EXPECTED_ABI_VERSION = \"v1\" as const\nexport const EXPECTED_CLASS_SALT = \"f407044b35\" as const\nexport const EXPECTED_GRIFFEL_VERSION = \"1.21.3\" as const\n/** Base UI families this package imports, by the runtime's `primitives` key; served by the runtime (D13). */\nexport const EXPECTED_PRIMITIVES = [\"accordion\", \"alertDialog\", \"autocomplete\", \"avatar\", \"button\", \"checkbox\", \"cspProvider\", \"dialog\", \"directionProvider\", \"menu\", \"mergeProps\", \"popover\", \"radio\", \"radioGroup\", \"scrollArea\", \"select\", \"separator\", \"switch\", \"tabs\", \"toast\", \"toggle\", \"toggleGroup\", \"tooltip\", \"useRender\"] as const\n/** Token sheets this package was compiled against, by D3 content hash; served by the runtime (D13). */\nexport const EXPECTED_TOKEN_SHEETS = [\"6564a1491b1ddd6b\"] as const\n"],"names":["EXPECTED_ABI_VERSION","EXPECTED_CLASS_SALT","EXPECTED_PRIMITIVES","EXPECTED_TOKEN_SHEETS"],"mappings":"AACO,MAAMA,IAAuB,MACvBC,IAAsB,cAGtBC,IAAsB,CAAC,aAAa,eAAe,gBAAgB,UAAU,UAAU,YAAY,eAAe,UAAU,qBAAqB,QAAQ,cAAc,WAAW,SAAS,cAAc,cAAc,UAAU,aAAa,UAAU,QAAQ,SAAS,UAAU,eAAe,WAAW,WAAW,GAExTC,IAAwB,CAAC,kBAAkB;"}
|
package/dist/tokens.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$comment": "GENERATED. Design token values for consumers that do not render this package's React components. Compile these into your own CSS under your own names at your own build time; do not reference this package's runtime custom properties, whose names are content-hashed and change with their values. `themes.light`/`themes.dark` are mode-resolved; `densities.compact`/`densities.normal`/`densities.comfortable` resolve the component layer's geometry tokens (WP9A-ACCEPTANCE-WP9B1) and carry no mode of their own — do not read a value out of `themes` for a key that only exists under `densities`, or the reverse. This file is copied verbatim to this package's public `tokens.json` export (`package.json`'s `build` script, `cp src/generated/values.generated.json dist/tokens.json`).",
|
|
3
3
|
"package": "@epilot/zenith-react",
|
|
4
|
-
"version": "0.2.0
|
|
4
|
+
"version": "0.2.0",
|
|
5
5
|
"themes": {
|
|
6
6
|
"light": {
|
|
7
7
|
"accent-1": "#fcfdfe",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/zenith-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0-next.1",
|
|
4
4
|
"description": "Zenith React components, styled with Griffel and designed for isolated micro-frontend delivery",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -50,7 +50,8 @@
|
|
|
50
50
|
"!codemods/tsconfig.fixtures.json",
|
|
51
51
|
"scripts/migration-sweep.mjs",
|
|
52
52
|
"scripts/migration-diagnostics.mjs",
|
|
53
|
-
"scripts/migration-diagnostics-core.mjs"
|
|
53
|
+
"scripts/migration-diagnostics-core.mjs",
|
|
54
|
+
"CHANGELOG.md"
|
|
54
55
|
],
|
|
55
56
|
"sideEffects": false,
|
|
56
57
|
"publishConfig": {
|
|
@@ -93,7 +94,7 @@
|
|
|
93
94
|
"verify:consumer": "bun ../../scripts/verify-packed-consumer.ts"
|
|
94
95
|
},
|
|
95
96
|
"dependencies": {
|
|
96
|
-
"@epilot/zenith-runtime": "0.
|
|
97
|
+
"@epilot/zenith-runtime": "0.3.0-next.1"
|
|
97
98
|
},
|
|
98
99
|
"peerDependencies": {
|
|
99
100
|
"react": ">=18",
|
|
@@ -104,7 +105,7 @@
|
|
|
104
105
|
"@dnd-kit/core": "6.3.1",
|
|
105
106
|
"@dnd-kit/sortable": "10.0.0",
|
|
106
107
|
"@dnd-kit/utilities": "3.2.2",
|
|
107
|
-
"@epilot/zenith-tokens": "0.2.0
|
|
108
|
+
"@epilot/zenith-tokens": "0.2.0",
|
|
108
109
|
"@tanstack/react-table": "8.21.3",
|
|
109
110
|
"@tanstack/react-virtual": "3.11.2",
|
|
110
111
|
"@testing-library/react": "^16.3.2",
|
|
@@ -112,7 +113,6 @@
|
|
|
112
113
|
"@types/jscodeshift": "17.3.0",
|
|
113
114
|
"@types/react": "^19.2.4",
|
|
114
115
|
"@types/react-dom": "^19.2.2",
|
|
115
|
-
"cmdk": "1.1.1",
|
|
116
116
|
"date-fns": "4.1.0",
|
|
117
117
|
"esbuild": "0.25.12",
|
|
118
118
|
"jscodeshift": "17.3.0",
|
|
@@ -146,5 +146,40 @@
|
|
|
146
146
|
"./dist/tokens.json"
|
|
147
147
|
]
|
|
148
148
|
}
|
|
149
|
+
},
|
|
150
|
+
"zenith": {
|
|
151
|
+
"next": {
|
|
152
|
+
"mainSha": "3031f4fede71e12d9166628155b4daa7ce0e9a5d",
|
|
153
|
+
"pipelineId": 3007941510,
|
|
154
|
+
"included": [
|
|
155
|
+
{
|
|
156
|
+
"iid": 151,
|
|
157
|
+
"headSha": "f25e7df7c7f2f3b00ed4fd7426dd84ecf0b6176a",
|
|
158
|
+
"url": "https://gitlab.com/e-pilot/product/frontend/zenith/-/merge_requests/151",
|
|
159
|
+
"order": 1
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"iid": 155,
|
|
163
|
+
"headSha": "27e177c932002439cdbffb41bdb2d3c46d161124",
|
|
164
|
+
"url": "https://gitlab.com/e-pilot/product/frontend/zenith/-/merge_requests/155",
|
|
165
|
+
"order": 2
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"iid": 156,
|
|
169
|
+
"headSha": "c11857ba20c6f1816d49a74e76f4239be9fae08a",
|
|
170
|
+
"url": "https://gitlab.com/e-pilot/product/frontend/zenith/-/merge_requests/156",
|
|
171
|
+
"order": 3
|
|
172
|
+
}
|
|
173
|
+
],
|
|
174
|
+
"leftOut": [],
|
|
175
|
+
"versions": {
|
|
176
|
+
"react": "0.3.0-next.1",
|
|
177
|
+
"runtime": "0.3.0-next.1"
|
|
178
|
+
},
|
|
179
|
+
"runtime": {
|
|
180
|
+
"source": "new",
|
|
181
|
+
"publish": true
|
|
182
|
+
}
|
|
183
|
+
}
|
|
149
184
|
}
|
|
150
185
|
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
function h(f, c, { checkForDefaultPrevented: p = !0 } = {}) {
|
|
2
|
-
return function(s) {
|
|
3
|
-
if (f == null || f(s), p === !1 || !s.defaultPrevented)
|
|
4
|
-
return c == null ? void 0 : c(s);
|
|
5
|
-
};
|
|
6
|
-
}
|
|
7
|
-
export {
|
|
8
|
-
h as composeEventHandlers
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
package/dist/vendor/.bun/@radix-ui_primitive@1.1.3/vendor/@radix-ui/primitive/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../../../node_modules/.bun/@radix-ui+primitive@1.1.3/node_modules/@radix-ui/primitive/dist/index.mjs"],"sourcesContent":["// src/primitive.tsx\nvar canUseDOM = !!(typeof window !== \"undefined\" && window.document && window.document.createElement);\nfunction composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {\n return function handleEvent(event) {\n originalEventHandler?.(event);\n if (checkForDefaultPrevented === false || !event.defaultPrevented) {\n return ourEventHandler?.(event);\n }\n };\n}\nfunction getOwnerWindow(element) {\n if (!canUseDOM) {\n throw new Error(\"Cannot access window outside of the DOM\");\n }\n return element?.ownerDocument?.defaultView ?? window;\n}\nfunction getOwnerDocument(element) {\n if (!canUseDOM) {\n throw new Error(\"Cannot access document outside of the DOM\");\n }\n return element?.ownerDocument ?? document;\n}\nfunction getActiveElement(node, activeDescendant = false) {\n const { activeElement } = getOwnerDocument(node);\n if (!activeElement?.nodeName) {\n return null;\n }\n if (isFrame(activeElement) && activeElement.contentDocument) {\n return getActiveElement(activeElement.contentDocument.body, activeDescendant);\n }\n if (activeDescendant) {\n const id = activeElement.getAttribute(\"aria-activedescendant\");\n if (id) {\n const element = getOwnerDocument(activeElement).getElementById(id);\n if (element) {\n return element;\n }\n }\n }\n return activeElement;\n}\nfunction isFrame(element) {\n return element.tagName === \"IFRAME\";\n}\nexport {\n canUseDOM,\n composeEventHandlers,\n getActiveElement,\n getOwnerDocument,\n getOwnerWindow,\n isFrame\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["composeEventHandlers","originalEventHandler","ourEventHandler","checkForDefaultPrevented","event"],"mappings":"AAEA,SAASA,EAAqBC,GAAsBC,GAAiB,EAAE,0BAAAC,IAA2B,GAAI,IAAK,IAAI;AAC7G,SAAO,SAAqBC,GAAO;AAEjC,QADAH,KAAA,QAAAA,EAAuBG,IACnBD,MAA6B,MAAS,CAACC,EAAM;AAC/C,aAAOF,KAAA,gBAAAA,EAAkBE;AAAA,EAE7B;AACF;","x_google_ignoreList":[0]}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as f from "react";
|
|
2
|
-
function l(n, o) {
|
|
3
|
-
if (typeof n == "function")
|
|
4
|
-
return n(o);
|
|
5
|
-
n != null && (n.current = o);
|
|
6
|
-
}
|
|
7
|
-
function i(...n) {
|
|
8
|
-
return (o) => {
|
|
9
|
-
let u = !1;
|
|
10
|
-
const c = n.map((t) => {
|
|
11
|
-
const e = l(t, o);
|
|
12
|
-
return !u && typeof e == "function" && (u = !0), e;
|
|
13
|
-
});
|
|
14
|
-
if (u)
|
|
15
|
-
return () => {
|
|
16
|
-
for (let t = 0; t < c.length; t++) {
|
|
17
|
-
const e = c[t];
|
|
18
|
-
typeof e == "function" ? e() : l(n[t], null);
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
function s(...n) {
|
|
24
|
-
return f.useCallback(i(...n), n);
|
|
25
|
-
}
|
|
26
|
-
export {
|
|
27
|
-
i as composeRefs,
|
|
28
|
-
s as useComposedRefs
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../../../node_modules/.bun/@radix-ui+react-compose-refs@1.1.2+0ac650c021fb1b59/node_modules/@radix-ui/react-compose-refs/dist/index.mjs"],"sourcesContent":["// packages/react/compose-refs/src/compose-refs.tsx\nimport * as React from \"react\";\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n } else if (ref !== null && ref !== void 0) {\n ref.current = value;\n }\n}\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup == \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup == \"function\") {\n cleanup();\n } else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\nfunction useComposedRefs(...refs) {\n return React.useCallback(composeRefs(...refs), refs);\n}\nexport {\n composeRefs,\n useComposedRefs\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["setRef","ref","value","composeRefs","refs","node","hasCleanup","cleanups","cleanup","i","useComposedRefs","React"],"mappings":";AAEA,SAASA,EAAOC,GAAKC,GAAO;AAC1B,MAAI,OAAOD,KAAQ;AACjB,WAAOA,EAAIC,CAAK;AACX,EAAID,KAAQ,SACjBA,EAAI,UAAUC;AAElB;AACA,SAASC,KAAeC,GAAM;AAC5B,SAAO,CAACC,MAAS;AACf,QAAIC,IAAa;AACjB,UAAMC,IAAWH,EAAK,IAAI,CAACH,MAAQ;AACjC,YAAMO,IAAUR,EAAOC,GAAKI,CAAI;AAChC,aAAI,CAACC,KAAc,OAAOE,KAAW,eACnCF,IAAa,KAERE;AAAA,IACT,CAAC;AACD,QAAIF;AACF,aAAO,MAAM;AACX,iBAASG,IAAI,GAAGA,IAAIF,EAAS,QAAQE,KAAK;AACxC,gBAAMD,IAAUD,EAASE,CAAC;AAC1B,UAAI,OAAOD,KAAW,aACpBA,EAAO,IAEPR,EAAOI,EAAKK,CAAC,GAAG,IAAI;AAAA,QAExB;AAAA,MACF;AAAA,EAEJ;AACF;AACA,SAASC,KAAmBN,GAAM;AAChC,SAAOO,EAAM,YAAYR,EAAY,GAAGC,CAAI,GAAGA,CAAI;AACrD;","x_google_ignoreList":[0]}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import * as u from "react";
|
|
2
|
-
import { jsx as h } from "react/jsx-runtime";
|
|
3
|
-
function w(e, c) {
|
|
4
|
-
const o = u.createContext(c), a = (r) => {
|
|
5
|
-
const { children: t, ...n } = r, s = u.useMemo(() => n, Object.values(n));
|
|
6
|
-
return /* @__PURE__ */ h(o.Provider, { value: s, children: t });
|
|
7
|
-
};
|
|
8
|
-
a.displayName = e + "Provider";
|
|
9
|
-
function i(r) {
|
|
10
|
-
const t = u.useContext(o);
|
|
11
|
-
if (t) return t;
|
|
12
|
-
if (c !== void 0) return c;
|
|
13
|
-
throw new Error(`\`${r}\` must be used within \`${e}\``);
|
|
14
|
-
}
|
|
15
|
-
return [a, i];
|
|
16
|
-
}
|
|
17
|
-
function _(e, c = []) {
|
|
18
|
-
let o = [];
|
|
19
|
-
function a(r, t) {
|
|
20
|
-
const n = u.createContext(t), s = o.length;
|
|
21
|
-
o = [...o, t];
|
|
22
|
-
const p = (d) => {
|
|
23
|
-
var S;
|
|
24
|
-
const { scope: x, children: C, ...m } = d, v = ((S = x == null ? void 0 : x[e]) == null ? void 0 : S[s]) || n, P = u.useMemo(() => m, Object.values(m));
|
|
25
|
-
return /* @__PURE__ */ h(v.Provider, { value: P, children: C });
|
|
26
|
-
};
|
|
27
|
-
p.displayName = r + "Provider";
|
|
28
|
-
function f(d, x) {
|
|
29
|
-
var v;
|
|
30
|
-
const C = ((v = x == null ? void 0 : x[e]) == null ? void 0 : v[s]) || n, m = u.useContext(C);
|
|
31
|
-
if (m) return m;
|
|
32
|
-
if (t !== void 0) return t;
|
|
33
|
-
throw new Error(`\`${d}\` must be used within \`${r}\``);
|
|
34
|
-
}
|
|
35
|
-
return [p, f];
|
|
36
|
-
}
|
|
37
|
-
const i = () => {
|
|
38
|
-
const r = o.map((t) => u.createContext(t));
|
|
39
|
-
return function(n) {
|
|
40
|
-
const s = (n == null ? void 0 : n[e]) || r;
|
|
41
|
-
return u.useMemo(
|
|
42
|
-
() => ({ [`__scope${e}`]: { ...n, [e]: s } }),
|
|
43
|
-
[n, s]
|
|
44
|
-
);
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
return i.scopeName = e, [a, l(i, ...c)];
|
|
48
|
-
}
|
|
49
|
-
function l(...e) {
|
|
50
|
-
const c = e[0];
|
|
51
|
-
if (e.length === 1) return c;
|
|
52
|
-
const o = () => {
|
|
53
|
-
const a = e.map((i) => ({
|
|
54
|
-
useScope: i(),
|
|
55
|
-
scopeName: i.scopeName
|
|
56
|
-
}));
|
|
57
|
-
return function(r) {
|
|
58
|
-
const t = a.reduce((n, { useScope: s, scopeName: p }) => {
|
|
59
|
-
const d = s(r)[`__scope${p}`];
|
|
60
|
-
return { ...n, ...d };
|
|
61
|
-
}, {});
|
|
62
|
-
return u.useMemo(() => ({ [`__scope${c.scopeName}`]: t }), [t]);
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
return o.scopeName = c.scopeName, o;
|
|
66
|
-
}
|
|
67
|
-
export {
|
|
68
|
-
w as createContext,
|
|
69
|
-
_ as createContextScope
|
|
70
|
-
};
|
|
71
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../../../node_modules/.bun/@radix-ui+react-context@1.1.2+0ac650c021fb1b59/node_modules/@radix-ui/react-context/dist/index.mjs"],"sourcesContent":["// packages/react/context/src/create-context.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createContext2(rootComponentName, defaultContext) {\n const Context = React.createContext(defaultContext);\n const Provider = (props) => {\n const { children, ...context } = props;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName) {\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n}\nfunction createContextScope(scopeName, createContextScopeDeps = []) {\n let defaultContexts = [];\n function createContext3(rootComponentName, defaultContext) {\n const BaseContext = React.createContext(defaultContext);\n const index = defaultContexts.length;\n defaultContexts = [...defaultContexts, defaultContext];\n const Provider = (props) => {\n const { scope, children, ...context } = props;\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName, scope) {\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n }\n const createScope = () => {\n const scopeContexts = defaultContexts.map((defaultContext) => {\n return React.createContext(defaultContext);\n });\n return function useScope(scope) {\n const contexts = scope?.[scopeName] || scopeContexts;\n return React.useMemo(\n () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),\n [scope, contexts]\n );\n };\n };\n createScope.scopeName = scopeName;\n return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];\n}\nfunction composeContextScopes(...scopes) {\n const baseScope = scopes[0];\n if (scopes.length === 1) return baseScope;\n const createScope = () => {\n const scopeHooks = scopes.map((createScope2) => ({\n useScope: createScope2(),\n scopeName: createScope2.scopeName\n }));\n return function useComposedScopes(overrideScopes) {\n const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {\n const scopeProps = useScope(overrideScopes);\n const currentScope = scopeProps[`__scope${scopeName}`];\n return { ...nextScopes2, ...currentScope };\n }, {});\n return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);\n };\n };\n createScope.scopeName = baseScope.scopeName;\n return createScope;\n}\nexport {\n createContext2 as createContext,\n createContextScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createContext2","rootComponentName","defaultContext","Context","React","Provider","props","children","context","value","jsx","useContext2","consumerName","createContextScope","scopeName","createContextScopeDeps","defaultContexts","createContext3","BaseContext","index","scope","_a","createScope","scopeContexts","contexts","composeContextScopes","scopes","baseScope","scopeHooks","createScope2","overrideScopes","nextScopes","nextScopes2","useScope","currentScope"],"mappings":"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","x_google_ignoreList":[0]}
|