@epilot/zenith-react 0.2.0-next.1 → 0.2.0-next.4
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/README.md +25 -0
- package/codemods/README.md +168 -0
- package/codemods/migrate/base-elements/accordion.ts +132 -0
- package/codemods/migrate/base-elements/alert.ts +81 -0
- package/codemods/migrate/base-elements/avatar.ts +116 -0
- package/codemods/migrate/base-elements/button.ts +188 -0
- package/codemods/migrate/base-elements/checkbox.ts +17 -0
- package/codemods/migrate/base-elements/chip.ts +87 -0
- package/codemods/migrate/base-elements/chip360.ts +162 -0
- package/codemods/migrate/base-elements/circular-progress.ts +73 -0
- package/codemods/migrate/base-elements/dialog.ts +323 -0
- package/codemods/migrate/base-elements/divider.ts +61 -0
- package/codemods/migrate/base-elements/feedback-message.ts +95 -0
- package/codemods/migrate/base-elements/icon-button.ts +203 -0
- package/codemods/migrate/base-elements/index.ts +55 -0
- package/codemods/migrate/base-elements/mui-props.ts +29 -0
- package/codemods/migrate/base-elements/notification.ts +98 -0
- package/codemods/migrate/base-elements/paper.ts +78 -0
- package/codemods/migrate/base-elements/select.ts +328 -0
- package/codemods/migrate/base-elements/shared.ts +910 -0
- package/codemods/migrate/base-elements/skeleton.ts +83 -0
- package/codemods/migrate/base-elements/switch.ts +19 -0
- package/codemods/migrate/base-elements/tabs.ts +222 -0
- package/codemods/migrate/base-elements/text-field.ts +425 -0
- package/codemods/migrate/base-elements/toggle-button.ts +185 -0
- package/codemods/migrate/base-elements/tooltip.ts +231 -0
- package/codemods/migrate/base-elements/typography.ts +247 -0
- package/codemods/migrate/base-elements/unsupported.ts +277 -0
- package/codemods/migrate/from-base-elements.ts +20 -0
- package/codemods/migrate/from-volt.ts +20 -0
- package/codemods/migrate/lib/imports.ts +399 -0
- package/codemods/migrate/lib/jsx.ts +313 -0
- package/codemods/migrate/lib/run-migration.ts +528 -0
- package/codemods/migrate/lib/source.ts +6 -0
- package/codemods/migrate/lib/todo.ts +107 -0
- package/codemods/migrate/lib/types.ts +114 -0
- package/codemods/migrate/volt/class-helpers.ts +37 -0
- package/codemods/migrate/volt/index.ts +18 -0
- package/codemods/migrate/volt/pagination.ts +26 -0
- package/codemods/migrate/volt/same-name.ts +293 -0
- package/codemods/migrate/volt/stylesheets.ts +18 -0
- package/codemods/migrate/volt/tanstack-types.ts +20 -0
- package/codemods/radix-to-base-ui.ts +389 -0
- package/dist/_virtual/_zenith-runtime-family_accordion.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_accordion.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_alert-dialog.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_alert-dialog.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_avatar.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_avatar.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_button.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_button.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_checkbox.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_checkbox.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_csp-provider.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_csp-provider.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_dialog.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_dialog.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_direction-provider.js +8 -0
- package/dist/_virtual/_zenith-runtime-family_direction-provider.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_menu.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_menu.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_merge-props.js +11 -0
- package/dist/_virtual/_zenith-runtime-family_merge-props.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_popover.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_popover.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_radio-group.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_radio-group.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_radio.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_radio.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_scroll-area.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_scroll-area.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_select.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_select.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_separator.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_separator.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_switch.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_switch.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_tabs.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_tabs.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_toast.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_toast.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_toggle-group.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_toggle-group.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_toggle.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_toggle.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_tooltip.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_tooltip.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_use-render.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_use-render.js.map +1 -0
- package/dist/components/accordion/accordion.js +179 -96
- package/dist/components/accordion/accordion.js.map +1 -1
- package/dist/components/alert-dialog/alert-dialog.js +243 -206
- package/dist/components/alert-dialog/alert-dialog.js.map +1 -1
- package/dist/components/avatar/avatar.js +94 -82
- package/dist/components/avatar/avatar.js.map +1 -1
- package/dist/components/badge/badge.js +11 -11
- package/dist/components/breadcrumb/breadcrumb.js +69 -70
- package/dist/components/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/components/button/button.js +119 -102
- package/dist/components/button/button.js.map +1 -1
- package/dist/components/checkbox/checkbox.js +68 -51
- package/dist/components/checkbox/checkbox.js.map +1 -1
- package/dist/components/data-table/data-table-header.js +113 -99
- package/dist/components/data-table/data-table-header.js.map +1 -1
- package/dist/components/data-table/data-table-row.js +49 -40
- package/dist/components/data-table/data-table-row.js.map +1 -1
- package/dist/components/date-range-picker/date-range-picker.js +100 -90
- package/dist/components/date-range-picker/date-range-picker.js.map +1 -1
- package/dist/components/date-time-picker/date-time-picker-input.js +118 -108
- package/dist/components/date-time-picker/date-time-picker-input.js.map +1 -1
- package/dist/components/date-time-picker/date-time-picker-panel.js +91 -94
- package/dist/components/date-time-picker/date-time-picker-panel.js.map +1 -1
- package/dist/components/dialog/dialog.js +238 -228
- package/dist/components/dialog/dialog.js.map +1 -1
- package/dist/components/drawer/drawer.js +260 -322
- package/dist/components/drawer/drawer.js.map +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.js +533 -279
- package/dist/components/dropdown-menu/dropdown-menu.js.map +1 -1
- package/dist/components/field/field-combobox.js +87 -77
- package/dist/components/field/field-combobox.js.map +1 -1
- package/dist/components/list/list-sortable.js +104 -0
- package/dist/components/list/list-sortable.js.map +1 -0
- package/dist/components/list/list.js +246 -324
- package/dist/components/list/list.js.map +1 -1
- package/dist/components/option-card/option-card.js +121 -117
- package/dist/components/option-card/option-card.js.map +1 -1
- package/dist/components/pill/pill.js +7 -7
- package/dist/components/popover/popover.js +223 -127
- package/dist/components/popover/popover.js.map +1 -1
- package/dist/components/radio/radio-group-base.js +54 -0
- package/dist/components/radio/radio-group-base.js.map +1 -0
- package/dist/components/radio/radio.js +71 -60
- package/dist/components/radio/radio.js.map +1 -1
- package/dist/components/scroll-area/scroll-area.js +142 -108
- package/dist/components/scroll-area/scroll-area.js.map +1 -1
- package/dist/components/scroll-overflow/scroll-overflow.js +156 -127
- package/dist/components/scroll-overflow/scroll-overflow.js.map +1 -1
- package/dist/components/segmented-control/segmented-control.js +93 -81
- package/dist/components/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/select/select.js +485 -310
- package/dist/components/select/select.js.map +1 -1
- package/dist/components/separator/separator.js.map +1 -1
- package/dist/components/slot/compose-as-child.js +15 -12
- package/dist/components/slot/compose-as-child.js.map +1 -1
- package/dist/components/switch/switch.js +75 -68
- package/dist/components/switch/switch.js.map +1 -1
- package/dist/components/table/table-pagination.js +212 -175
- package/dist/components/table/table-pagination.js.map +1 -1
- package/dist/components/tabs/tabs.js +193 -190
- package/dist/components/tabs/tabs.js.map +1 -1
- package/dist/components/toast/toast.js +610 -148
- package/dist/components/toast/toast.js.map +1 -1
- package/dist/components/toggle/toggle-group.js +143 -32
- package/dist/components/toggle/toggle-group.js.map +1 -1
- package/dist/components/toggle/toggle.js +83 -53
- package/dist/components/toggle/toggle.js.map +1 -1
- package/dist/components/tooltip/tooltip.js +298 -138
- package/dist/components/tooltip/tooltip.js.map +1 -1
- package/dist/index.d.ts +2335 -2129
- package/dist/index.js +24 -23
- package/dist/list/sortable/index.d.ts +29 -0
- package/dist/list/sortable/index.js +5 -0
- package/dist/{_virtual → list/sortable}/index.js.map +1 -1
- package/dist/packages/tokens/dist/delivery/index.js +10 -10
- package/dist/packages/tokens/dist/delivery/index.js.map +1 -1
- package/dist/packages/tokens/dist/generated/core.generated.js +6 -15
- package/dist/packages/tokens/dist/generated/core.generated.js.map +1 -1
- package/dist/packages/tokens/dist/generated/palette.generated.js +4 -5
- package/dist/packages/tokens/dist/generated/palette.generated.js.map +1 -1
- package/dist/packages/tokens/dist/generated/palette.meta.generated.js +5 -0
- package/dist/packages/tokens/dist/generated/palette.meta.generated.js.map +1 -0
- package/dist/packages/tokens/dist/install.js +40 -17
- package/dist/packages/tokens/dist/install.js.map +1 -1
- package/dist/renderer/runtime-contract.generated.js +8 -0
- package/dist/renderer/runtime-contract.generated.js.map +1 -0
- package/dist/renderer/served.js +34 -0
- package/dist/renderer/served.js.map +1 -0
- package/dist/tokens/core.meta.generated.js +2 -2
- package/dist/tokens/core.meta.generated.js.map +1 -1
- package/dist/tokens/index.d.ts +1028 -1028
- package/dist/tokens/index.js +863 -863
- package/dist/tokens/index.js.map +1 -1
- package/dist/tokens/palette.meta.generated.js +5 -0
- package/dist/tokens/palette.meta.generated.js.map +1 -0
- package/dist/tokens.json +1 -1
- package/dist/vendor/.bun/@radix-ui_react-dialog@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-dialog/dist/index.js +57 -62
- package/dist/vendor/.bun/@radix-ui_react-dialog@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-dialog/dist/index.js.map +1 -1
- package/dist/vendor/.bun/@radix-ui_react-slot@1.2.3_0ac650c021fb1b59/vendor/@radix-ui/react-slot/dist/index.js +32 -38
- package/dist/vendor/.bun/@radix-ui_react-slot@1.2.3_0ac650c021fb1b59/vendor/@radix-ui/react-slot/dist/index.js.map +1 -1
- package/package.json +29 -21
- package/scripts/migration-diagnostics-core.mjs +18 -10
- package/scripts/migration-diagnostics.mjs +31 -8
- package/dist/_virtual/index.js +0 -6
- package/dist/_virtual/index2.js +0 -5
- package/dist/_virtual/index2.js.map +0 -1
- package/dist/_virtual/use-sync-external-store-shim.development.js +0 -5
- package/dist/_virtual/use-sync-external-store-shim.development.js.map +0 -1
- package/dist/_virtual/use-sync-external-store-shim.production.js +0 -5
- package/dist/_virtual/use-sync-external-store-shim.production.js.map +0 -1
- package/dist/tokens/palette.generated.js +0 -5
- package/dist/tokens/palette.generated.js.map +0 -1
- package/dist/vendor/.bun/@floating-ui_core@1.8.0/vendor/@floating-ui/core/dist/floating-ui.core.js +0 -512
- package/dist/vendor/.bun/@floating-ui_core@1.8.0/vendor/@floating-ui/core/dist/floating-ui.core.js.map +0 -1
- package/dist/vendor/.bun/@floating-ui_dom@1.8.0/vendor/@floating-ui/dom/dist/floating-ui.dom.js +0 -396
- package/dist/vendor/.bun/@floating-ui_dom@1.8.0/vendor/@floating-ui/dom/dist/floating-ui.dom.js.map +0 -1
- package/dist/vendor/.bun/@floating-ui_react-dom@2.1.9_6f4b9a1cfb20c0ae/vendor/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -233
- package/dist/vendor/.bun/@floating-ui_react-dom@2.1.9_6f4b9a1cfb20c0ae/vendor/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +0 -1
- package/dist/vendor/.bun/@floating-ui_utils@0.2.12/vendor/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -137
- package/dist/vendor/.bun/@floating-ui_utils@0.2.12/vendor/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +0 -1
- package/dist/vendor/.bun/@floating-ui_utils@0.2.12/vendor/@floating-ui/utils/dist/floating-ui.utils.js +0 -129
- package/dist/vendor/.bun/@floating-ui_utils@0.2.12/vendor/@floating-ui/utils/dist/floating-ui.utils.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_number@1.1.1/vendor/@radix-ui/number/dist/index.js +0 -7
- package/dist/vendor/.bun/@radix-ui_number@1.1.1/vendor/@radix-ui/number/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-accordion@1.2.12_2b23df507bdda662/vendor/@radix-ui/react-accordion/dist/index.js +0 -240
- package/dist/vendor/.bun/@radix-ui_react-accordion@1.2.12_2b23df507bdda662/vendor/@radix-ui/react-accordion/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-alert-dialog@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-alert-dialog/dist/index.js +0 -128
- package/dist/vendor/.bun/@radix-ui_react-alert-dialog@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-alert-dialog/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-arrow@1.1.7_2b23df507bdda662/vendor/@radix-ui/react-arrow/dist/index.js +0 -25
- package/dist/vendor/.bun/@radix-ui_react-arrow@1.1.7_2b23df507bdda662/vendor/@radix-ui/react-arrow/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-avatar@1.1.10_2b23df507bdda662/vendor/@radix-ui/react-avatar/dist/index.js +0 -76
- package/dist/vendor/.bun/@radix-ui_react-avatar@1.1.10_2b23df507bdda662/vendor/@radix-ui/react-avatar/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-checkbox@1.3.3_2b23df507bdda662/vendor/@radix-ui/react-checkbox/dist/index.js +0 -252
- package/dist/vendor/.bun/@radix-ui_react-checkbox@1.3.3_2b23df507bdda662/vendor/@radix-ui/react-checkbox/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-collapsible@1.1.12_2b23df507bdda662/vendor/@radix-ui/react-collapsible/dist/index.js +0 -121
- package/dist/vendor/.bun/@radix-ui_react-collapsible@1.1.12_2b23df507bdda662/vendor/@radix-ui/react-collapsible/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-collection@1.1.7_2b23df507bdda662/vendor/@radix-ui/react-collection/dist/index.js +0 -49
- package/dist/vendor/.bun/@radix-ui_react-collection@1.1.7_2b23df507bdda662/vendor/@radix-ui/react-collection/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-direction@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-direction/dist/index.js +0 -11
- package/dist/vendor/.bun/@radix-ui_react-direction@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-direction/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-dropdown-menu@2.1.16_2b23df507bdda662/vendor/@radix-ui/react-dropdown-menu/dist/index.js +0 -228
- package/dist/vendor/.bun/@radix-ui_react-dropdown-menu@2.1.16_2b23df507bdda662/vendor/@radix-ui/react-dropdown-menu/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-menu@2.1.16_2b23df507bdda662/vendor/@radix-ui/react-menu/dist/index.js +0 -653
- package/dist/vendor/.bun/@radix-ui_react-menu@2.1.16_2b23df507bdda662/vendor/@radix-ui/react-menu/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-popover@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-popover/dist/index.js +0 -244
- package/dist/vendor/.bun/@radix-ui_react-popover@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-popover/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-popper@1.2.8_2b23df507bdda662/vendor/@radix-ui/react-popper/dist/index.js +0 -222
- package/dist/vendor/.bun/@radix-ui_react-popper@1.2.8_2b23df507bdda662/vendor/@radix-ui/react-popper/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-radio-group@1.3.8_2b23df507bdda662/vendor/@radix-ui/react-radio-group/dist/index.js +0 -239
- package/dist/vendor/.bun/@radix-ui_react-radio-group@1.3.8_2b23df507bdda662/vendor/@radix-ui/react-radio-group/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-roving-focus@1.1.11_2b23df507bdda662/vendor/@radix-ui/react-roving-focus/dist/index.js +0 -184
- package/dist/vendor/.bun/@radix-ui_react-roving-focus@1.1.11_2b23df507bdda662/vendor/@radix-ui/react-roving-focus/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-scroll-area@1.2.10_2b23df507bdda662/vendor/@radix-ui/react-scroll-area/dist/index.js +0 -535
- package/dist/vendor/.bun/@radix-ui_react-scroll-area@1.2.10_2b23df507bdda662/vendor/@radix-ui/react-scroll-area/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-select@2.2.6_2b23df507bdda662/vendor/@radix-ui/react-select/dist/index.js +0 -863
- package/dist/vendor/.bun/@radix-ui_react-select@2.2.6_2b23df507bdda662/vendor/@radix-ui/react-select/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-slot@1.2.4_0ac650c021fb1b59/vendor/@radix-ui/react-slot/dist/index.js +0 -63
- package/dist/vendor/.bun/@radix-ui_react-slot@1.2.4_0ac650c021fb1b59/vendor/@radix-ui/react-slot/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-switch@1.2.6_2b23df507bdda662/vendor/@radix-ui/react-switch/dist/index.js +0 -133
- package/dist/vendor/.bun/@radix-ui_react-switch@1.2.6_2b23df507bdda662/vendor/@radix-ui/react-switch/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-tabs@1.1.13_2b23df507bdda662/vendor/@radix-ui/react-tabs/dist/index.js +0 -164
- package/dist/vendor/.bun/@radix-ui_react-tabs@1.1.13_2b23df507bdda662/vendor/@radix-ui/react-tabs/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-toggle-group@1.1.11_2b23df507bdda662/vendor/@radix-ui/react-toggle-group/dist/index.js +0 -138
- package/dist/vendor/.bun/@radix-ui_react-toggle-group@1.1.11_2b23df507bdda662/vendor/@radix-ui/react-toggle-group/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-toggle@1.1.10_2b23df507bdda662/vendor/@radix-ui/react-toggle/dist/index.js +0 -34
- package/dist/vendor/.bun/@radix-ui_react-toggle@1.1.10_2b23df507bdda662/vendor/@radix-ui/react-toggle/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-tooltip@1.2.8_2b23df507bdda662/vendor/@radix-ui/react-tooltip/dist/index.js +0 -340
- package/dist/vendor/.bun/@radix-ui_react-tooltip@1.2.8_2b23df507bdda662/vendor/@radix-ui/react-tooltip/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-use-is-hydrated@0.1.0_0ac650c021fb1b59/vendor/@radix-ui/react-use-is-hydrated/dist/index.js +0 -16
- package/dist/vendor/.bun/@radix-ui_react-use-is-hydrated@0.1.0_0ac650c021fb1b59/vendor/@radix-ui/react-use-is-hydrated/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-use-previous@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-use-previous/dist/index.js +0 -9
- package/dist/vendor/.bun/@radix-ui_react-use-previous@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-use-previous/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-use-size@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-use-size/dist/index.js +0 -28
- package/dist/vendor/.bun/@radix-ui_react-use-size@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-use-size/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-visually-hidden@1.2.3_2b23df507bdda662/vendor/@radix-ui/react-visually-hidden/dist/index.js +0 -33
- package/dist/vendor/.bun/@radix-ui_react-visually-hidden@1.2.3_2b23df507bdda662/vendor/@radix-ui/react-visually-hidden/dist/index.js.map +0 -1
- package/dist/vendor/.bun/sonner@2.0.7_6f4b9a1cfb20c0ae/vendor/sonner/dist/index.js +0 -747
- package/dist/vendor/.bun/sonner@2.0.7_6f4b9a1cfb20c0ae/vendor/sonner/dist/index.js.map +0 -1
- package/dist/vendor/.bun/use-sync-external-store@1.7.0_62547eec5a2188e3/vendor/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +0 -68
- package/dist/vendor/.bun/use-sync-external-store@1.7.0_62547eec5a2188e3/vendor/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +0 -1
- package/dist/vendor/.bun/use-sync-external-store@1.7.0_62547eec5a2188e3/vendor/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +0 -56
- package/dist/vendor/.bun/use-sync-external-store@1.7.0_62547eec5a2188e3/vendor/use-sync-external-store/cjs/use-sync-external-store-shim.production.js.map +0 -1
- package/dist/vendor/.bun/use-sync-external-store@1.7.0_62547eec5a2188e3/vendor/use-sync-external-store/shim/index.js +0 -11
- package/dist/vendor/.bun/use-sync-external-store@1.7.0_62547eec5a2188e3/vendor/use-sync-external-store/shim/index.js.map +0 -1
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The contract between an entry transform (`from-volt.ts`, `from-base-elements.ts`) and the rule
|
|
3
|
+
* modules it runs. A rule module is one file per legacy component:
|
|
4
|
+
*
|
|
5
|
+
* export const handles = ["CircularProgress", "CircularProgressProps"]
|
|
6
|
+
* export function migrate(ctx: MigrateContext) { … }
|
|
7
|
+
*
|
|
8
|
+
* and is listed in its source's registry (`migrate/<source>/index.ts`). The entry finds the legacy
|
|
9
|
+
* imports, calls `migrate` once per file for every rule with at least one handled name imported,
|
|
10
|
+
* then rewrites the imports from the rule's `move`/`keep` decisions and prints one report line
|
|
11
|
+
* per TODO. A rule never touches import declarations itself.
|
|
12
|
+
*/
|
|
13
|
+
import type {
|
|
14
|
+
ASTPath,
|
|
15
|
+
Collection,
|
|
16
|
+
FileInfo,
|
|
17
|
+
Identifier,
|
|
18
|
+
JSCodeshift,
|
|
19
|
+
JSXElement,
|
|
20
|
+
ImportDeclaration,
|
|
21
|
+
} from "jscodeshift"
|
|
22
|
+
import type { JsxHelpers } from "./jsx"
|
|
23
|
+
|
|
24
|
+
export const ZENITH = "@epilot/zenith-react"
|
|
25
|
+
|
|
26
|
+
/** The marker in every comment the migration leaves behind; `rg 'TODO\(zenith-migrate\)'` lists them. */
|
|
27
|
+
export const TODO_TAG = "TODO(zenith-migrate)"
|
|
28
|
+
|
|
29
|
+
export type MigrationRule = {
|
|
30
|
+
/**
|
|
31
|
+
* Export names of the legacy package this rule owns, value and type names alike. The runner
|
|
32
|
+
* rejects a registry where two rules claim the same name.
|
|
33
|
+
*/
|
|
34
|
+
handles: readonly string[]
|
|
35
|
+
/**
|
|
36
|
+
* Bare module specifiers this rule owns besides named exports, such as a stylesheet
|
|
37
|
+
* (`<package>/style.css`). The rule runs when the file imports any of them.
|
|
38
|
+
*/
|
|
39
|
+
handlesModules?: readonly string[]
|
|
40
|
+
migrate(ctx: MigrateContext): void
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type MigrateContext = {
|
|
44
|
+
j: JSCodeshift
|
|
45
|
+
root: Collection
|
|
46
|
+
file: FileInfo
|
|
47
|
+
/** The legacy package, e.g. `@epilot/base-elements`. */
|
|
48
|
+
source: string
|
|
49
|
+
/** Legacy export name → local binding, for every name this file imports from `source`. */
|
|
50
|
+
names: Readonly<Record<string, string>>
|
|
51
|
+
/** Zenith export name → local binding, for what the file already imports from Zenith. */
|
|
52
|
+
zenith: Readonly<Record<string, string>>
|
|
53
|
+
/** JSX helpers bound to this file's `j`. */
|
|
54
|
+
jsx: JsxHelpers
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Move legacy export `name` onto the Zenith import as `target` (default: the same name). An
|
|
58
|
+
* un-aliased binding is renamed throughout the file (`<CircularProgress>` → `<Spinner>`); an
|
|
59
|
+
* alias is kept (`CircularProgress as Progress` → `Spinner as Progress`). No-op when the
|
|
60
|
+
* file does not import `name`.
|
|
61
|
+
*/
|
|
62
|
+
move(name: string, target?: string): void
|
|
63
|
+
/**
|
|
64
|
+
* Like `move`, onto another package's import (a type Zenith does not re-export but its
|
|
65
|
+
* upstream library does). The import is created next to the Zenith one when missing.
|
|
66
|
+
*/
|
|
67
|
+
moveTo(module: string, name: string, target?: string): void
|
|
68
|
+
/**
|
|
69
|
+
* Leave legacy export `name` on its import and report why, as one TODO at the import. The
|
|
70
|
+
* message is the fix: say what to use instead, in one line, so the reader needs no mapping doc.
|
|
71
|
+
* Without a message the name is kept silently, for a rule that already reported every use
|
|
72
|
+
* site (one report per TODO comment stays true).
|
|
73
|
+
*/
|
|
74
|
+
keep(name: string, message?: string): void
|
|
75
|
+
/**
|
|
76
|
+
* References to legacy export `name` as a value outside JSX tags: `styled(X)`, `component={X}`,
|
|
77
|
+
* `const Y = X`, `export { X }`. Moving such a binding swaps the component under code the
|
|
78
|
+
* rule did not rewrite, so a rule checks this before `move` or uses `moveElements`.
|
|
79
|
+
*/
|
|
80
|
+
valueUses(name: string): Collection<Identifier>
|
|
81
|
+
/**
|
|
82
|
+
* `move(name, target)` when `name` is only used as JSX tags; otherwise the JSX elements are
|
|
83
|
+
* retagged to the Zenith export (`ensureZenith(target)`), the legacy binding is kept silently
|
|
84
|
+
* and each value use gets a TODO. Returns the local tag the elements now carry, or undefined
|
|
85
|
+
* when nothing was imported.
|
|
86
|
+
*/
|
|
87
|
+
moveElements(name: string, target?: string): string | undefined
|
|
88
|
+
/**
|
|
89
|
+
* Remove legacy export `name` from its import with no TODO and no Zenith counterpart, for a
|
|
90
|
+
* name whose every use the rule rewrote away (MUI's DialogContent body → `<div>`). Wins over
|
|
91
|
+
* `move` and `keep`; the declaration is pruned when nothing is left on it.
|
|
92
|
+
*/
|
|
93
|
+
drop(name: string): void
|
|
94
|
+
/**
|
|
95
|
+
* Report a TODO at `path`: a `TODO(zenith-migrate): <component>: <message>` comment on the node
|
|
96
|
+
* (a JSX comment sibling inside JSX children) plus one report line `<line> <component>: <message>`.
|
|
97
|
+
* A moved element must still compile against Zenith's types: drop what has no equivalent and
|
|
98
|
+
* name it here (`dropped value={progress}: …`).
|
|
99
|
+
*/
|
|
100
|
+
todo(path: ASTPath, component: string, message: string): void
|
|
101
|
+
/**
|
|
102
|
+
* Import Zenith export `name` (added to the Zenith import when missing) and return its local
|
|
103
|
+
* binding. For rules that rewrite one element at a time instead of moving the whole binding.
|
|
104
|
+
*/
|
|
105
|
+
ensureZenith(name: string): string
|
|
106
|
+
/** JSX elements whose tag is the local binding of legacy export `name`. */
|
|
107
|
+
elements(name: string): Collection<JSXElement>
|
|
108
|
+
/** Import declarations of exactly this module specifier (for `handlesModules`). */
|
|
109
|
+
imports(moduleSpecifier: string): Collection<ImportDeclaration>
|
|
110
|
+
/** Remove an import declaration (a stylesheet, for instance). */
|
|
111
|
+
removeImport(path: ASTPath<ImportDeclaration>): void
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export type TodoEntry = { line: number; component: string; message: string }
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Volt's Tailwind-era class helpers have no Zenith equivalent: Zenith styles with Griffel atoms
|
|
3
|
+
* (`makeZenithStyles`) and composes class names with `mergeClasses`. Each stays on the Volt import
|
|
4
|
+
* with the replacement in its TODO.
|
|
5
|
+
*/
|
|
6
|
+
import type { MigrateContext } from "../lib/types"
|
|
7
|
+
|
|
8
|
+
const VARIANTS = [
|
|
9
|
+
"buttonVariants",
|
|
10
|
+
"textVariants",
|
|
11
|
+
"toggleVariants",
|
|
12
|
+
"avatarVariants",
|
|
13
|
+
"badgeVariants",
|
|
14
|
+
"pillVariants",
|
|
15
|
+
"skeletonVariants",
|
|
16
|
+
] as const
|
|
17
|
+
|
|
18
|
+
export const handles = ["cn", "CloseIcon", ...VARIANTS] as const
|
|
19
|
+
|
|
20
|
+
export function migrate(ctx: MigrateContext): void {
|
|
21
|
+
ctx.keep(
|
|
22
|
+
"cn",
|
|
23
|
+
"use mergeClasses from @epilot/zenith-react for class strings (no object syntax, no Tailwind dedupe); Tailwind utilities become makeZenithStyles atoms"
|
|
24
|
+
)
|
|
25
|
+
ctx.keep(
|
|
26
|
+
"CloseIcon",
|
|
27
|
+
"not exported by Zenith; render your icon set's X (lucide-react `X`) at 1rem, or use DialogClose/DrawerClose which draw their own"
|
|
28
|
+
)
|
|
29
|
+
for (const name of VARIANTS) {
|
|
30
|
+
const component = name.replace(/Variants$/, "")
|
|
31
|
+
const Component = component[0].toUpperCase() + component.slice(1)
|
|
32
|
+
ctx.keep(
|
|
33
|
+
name,
|
|
34
|
+
`no class-variance helpers in Zenith; render <${Component} variant size> or compose with makeZenithStyles + mergeClasses`
|
|
35
|
+
)
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Registry of Volt rules. One module per family or concern; every module exports `handles` and
|
|
3
|
+
* `migrate` (see `../lib/types.ts`).
|
|
4
|
+
*/
|
|
5
|
+
import type { MigrationRule } from "../lib/types"
|
|
6
|
+
import * as classHelpers from "./class-helpers"
|
|
7
|
+
import * as pagination from "./pagination"
|
|
8
|
+
import * as sameName from "./same-name"
|
|
9
|
+
import * as stylesheets from "./stylesheets"
|
|
10
|
+
import * as tanstackTypes from "./tanstack-types"
|
|
11
|
+
|
|
12
|
+
export const rules: readonly MigrationRule[] = [
|
|
13
|
+
sameName,
|
|
14
|
+
stylesheets,
|
|
15
|
+
tanstackTypes,
|
|
16
|
+
classHelpers,
|
|
17
|
+
pagination,
|
|
18
|
+
]
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `useClientPagination` did not move to Zenith; its pure parts (`calculatePagination`,
|
|
3
|
+
* `clampPage`, `getPageNumbers`) did, so the hook is a few lines of `useState` on top of them.
|
|
4
|
+
*/
|
|
5
|
+
import type { MigrateContext } from "../lib/types"
|
|
6
|
+
|
|
7
|
+
export const handles = [
|
|
8
|
+
"useClientPagination",
|
|
9
|
+
"UseClientPaginationOptions",
|
|
10
|
+
"UseClientPaginationReturn",
|
|
11
|
+
] as const
|
|
12
|
+
|
|
13
|
+
export function migrate(ctx: MigrateContext): void {
|
|
14
|
+
ctx.keep(
|
|
15
|
+
"useClientPagination",
|
|
16
|
+
"not in Zenith; keep page/pageSize in useState and derive the slice with calculatePagination + clampPage from @epilot/zenith-react"
|
|
17
|
+
)
|
|
18
|
+
ctx.keep(
|
|
19
|
+
"UseClientPaginationOptions",
|
|
20
|
+
"not in Zenith; type the options of your own hook (see useClientPagination)"
|
|
21
|
+
)
|
|
22
|
+
ctx.keep(
|
|
23
|
+
"UseClientPaginationReturn",
|
|
24
|
+
"not in Zenith; PaginationMeta from @epilot/zenith-react covers the derived part"
|
|
25
|
+
)
|
|
26
|
+
}
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zenith kept Volt's names: everything listed here moves onto the Zenith import unchanged
|
|
3
|
+
* (components, hooks, helpers and their prop types). The list is Volt 1.7's barrel intersected
|
|
4
|
+
* with Zenith's public exports; `same-name.test.ts` keeps it honest against `src/index.ts`. A Volt
|
|
5
|
+
* name missing here is kept on the Volt import with a TODO, never silently mapped.
|
|
6
|
+
*/
|
|
7
|
+
import type { MigrateContext } from "../lib/types"
|
|
8
|
+
|
|
9
|
+
export const handles = [
|
|
10
|
+
"ClearButton",
|
|
11
|
+
"Breadcrumb",
|
|
12
|
+
"BreadcrumbItem",
|
|
13
|
+
"Button",
|
|
14
|
+
"ButtonGroup",
|
|
15
|
+
"ButtonGroupSeparator",
|
|
16
|
+
"ButtonGroupText",
|
|
17
|
+
"Field",
|
|
18
|
+
"FieldSet",
|
|
19
|
+
"FieldContent",
|
|
20
|
+
"FieldDescription",
|
|
21
|
+
"FieldError",
|
|
22
|
+
"FieldGroup",
|
|
23
|
+
"FieldLabel",
|
|
24
|
+
"FieldLabelContent",
|
|
25
|
+
"useFieldContext",
|
|
26
|
+
"FieldInput",
|
|
27
|
+
"FieldInputGroup",
|
|
28
|
+
"FieldGroupAddon",
|
|
29
|
+
"FieldTextarea",
|
|
30
|
+
"FieldCombobox",
|
|
31
|
+
"FieldComboboxGroup",
|
|
32
|
+
"FieldComboboxGroupLabel",
|
|
33
|
+
"FieldComboboxValue",
|
|
34
|
+
"FieldComboboxTrigger",
|
|
35
|
+
"FieldComboboxContent",
|
|
36
|
+
"FieldComboboxItem",
|
|
37
|
+
"FieldComboboxItemCheckIcon",
|
|
38
|
+
"FieldComboboxEmpty",
|
|
39
|
+
"FieldComboboxSeparator",
|
|
40
|
+
"FieldComboboxInput",
|
|
41
|
+
"FieldComboboxList",
|
|
42
|
+
"FieldComboboxLoading",
|
|
43
|
+
"FieldComboboxClear",
|
|
44
|
+
"FieldComboboxClearValue",
|
|
45
|
+
"FieldComboboxPlaceholder",
|
|
46
|
+
"Select",
|
|
47
|
+
"SelectContent",
|
|
48
|
+
"SelectGroup",
|
|
49
|
+
"SelectItem",
|
|
50
|
+
"SelectLabel",
|
|
51
|
+
"SelectScrollDownButton",
|
|
52
|
+
"SelectScrollUpButton",
|
|
53
|
+
"SelectSeparator",
|
|
54
|
+
"SelectTrigger",
|
|
55
|
+
"SelectTriggerClear",
|
|
56
|
+
"SelectValue",
|
|
57
|
+
"Label",
|
|
58
|
+
"List",
|
|
59
|
+
"ListItem",
|
|
60
|
+
"ListItemActions",
|
|
61
|
+
"ListItemText",
|
|
62
|
+
"ListItemDescription",
|
|
63
|
+
"ListGroup",
|
|
64
|
+
"ListGroupLabel",
|
|
65
|
+
"ListGroupContent",
|
|
66
|
+
"ListProps",
|
|
67
|
+
"ListItemProps",
|
|
68
|
+
"ListItemActionsProps",
|
|
69
|
+
"ListItemTextProps",
|
|
70
|
+
"ListItemDescriptionProps",
|
|
71
|
+
"ListGroupProps",
|
|
72
|
+
"ListGroupLabelProps",
|
|
73
|
+
"ListGroupContentProps",
|
|
74
|
+
"ListDensity",
|
|
75
|
+
"ListItemStatus",
|
|
76
|
+
"Text",
|
|
77
|
+
"Tooltip",
|
|
78
|
+
"TooltipTrigger",
|
|
79
|
+
"TooltipContent",
|
|
80
|
+
"TooltipProvider",
|
|
81
|
+
"Switch",
|
|
82
|
+
"Toggle",
|
|
83
|
+
"ToggleProps",
|
|
84
|
+
"ToggleGroup",
|
|
85
|
+
"ToggleGroupItem",
|
|
86
|
+
"ToggleGroupProps",
|
|
87
|
+
"ToggleGroupItemProps",
|
|
88
|
+
"Separator",
|
|
89
|
+
"Popover",
|
|
90
|
+
"PopoverTrigger",
|
|
91
|
+
"PopoverContent",
|
|
92
|
+
"PopoverAnchor",
|
|
93
|
+
"PopoverPortal",
|
|
94
|
+
"Dialog",
|
|
95
|
+
"DialogClose",
|
|
96
|
+
"DialogContent",
|
|
97
|
+
"DialogDescription",
|
|
98
|
+
"DialogFooter",
|
|
99
|
+
"DialogHeader",
|
|
100
|
+
"DialogOverlay",
|
|
101
|
+
"DialogPortal",
|
|
102
|
+
"DialogTitle",
|
|
103
|
+
"DialogTrigger",
|
|
104
|
+
"Drawer",
|
|
105
|
+
"DrawerClose",
|
|
106
|
+
"DrawerContent",
|
|
107
|
+
"DrawerDescription",
|
|
108
|
+
"DrawerFooter",
|
|
109
|
+
"DrawerHeader",
|
|
110
|
+
"DrawerOverlay",
|
|
111
|
+
"DrawerPortal",
|
|
112
|
+
"DrawerTitle",
|
|
113
|
+
"DrawerTrigger",
|
|
114
|
+
"Checkbox",
|
|
115
|
+
"RadioGroup",
|
|
116
|
+
"RadioGroupItem",
|
|
117
|
+
"SegmentedControl",
|
|
118
|
+
"SegmentedControlItem",
|
|
119
|
+
"SegmentedControlProps",
|
|
120
|
+
"SegmentedControlItemProps",
|
|
121
|
+
"SegmentedControlLayout",
|
|
122
|
+
"OptionCard",
|
|
123
|
+
"OptionCardGroup",
|
|
124
|
+
"OptionCardMedia",
|
|
125
|
+
"OptionCardContent",
|
|
126
|
+
"OptionCardTitle",
|
|
127
|
+
"OptionCardDescription",
|
|
128
|
+
"OptionCardControl",
|
|
129
|
+
"OptionCardProps",
|
|
130
|
+
"OptionCardGroupProps",
|
|
131
|
+
"OptionCardLayout",
|
|
132
|
+
"OptionCardControlType",
|
|
133
|
+
"OptionCardControlProps",
|
|
134
|
+
"OptionCardContentProps",
|
|
135
|
+
"OptionCardMediaProps",
|
|
136
|
+
"OptionCardMediaVariant",
|
|
137
|
+
"OptionCardTitleProps",
|
|
138
|
+
"OptionCardDescriptionProps",
|
|
139
|
+
"Avatar",
|
|
140
|
+
"AvatarProps",
|
|
141
|
+
"AvatarColor",
|
|
142
|
+
"AvatarSize",
|
|
143
|
+
"AvatarGroup",
|
|
144
|
+
"AvatarGroupProps",
|
|
145
|
+
"Badge",
|
|
146
|
+
"Pill",
|
|
147
|
+
"Callout",
|
|
148
|
+
"CalloutTitle",
|
|
149
|
+
"CalloutDescription",
|
|
150
|
+
"CalloutAction",
|
|
151
|
+
"Accordion",
|
|
152
|
+
"AccordionItem",
|
|
153
|
+
"AccordionTrigger",
|
|
154
|
+
"AccordionContent",
|
|
155
|
+
"AlertDialog",
|
|
156
|
+
"AlertDialogPortal",
|
|
157
|
+
"AlertDialogOverlay",
|
|
158
|
+
"AlertDialogTrigger",
|
|
159
|
+
"AlertDialogContent",
|
|
160
|
+
"AlertDialogHeader",
|
|
161
|
+
"AlertDialogFooter",
|
|
162
|
+
"AlertDialogTitle",
|
|
163
|
+
"AlertDialogDescription",
|
|
164
|
+
"AlertDialogAction",
|
|
165
|
+
"AlertDialogCancel",
|
|
166
|
+
"Toaster",
|
|
167
|
+
"toast",
|
|
168
|
+
"Tabs",
|
|
169
|
+
"TabsList",
|
|
170
|
+
"TabsTrigger",
|
|
171
|
+
"TabsContent",
|
|
172
|
+
"Card",
|
|
173
|
+
"CardHeader",
|
|
174
|
+
"CardFooter",
|
|
175
|
+
"CardTitle",
|
|
176
|
+
"CardAction",
|
|
177
|
+
"CardDescription",
|
|
178
|
+
"CardContent",
|
|
179
|
+
"Skeleton",
|
|
180
|
+
"Spinner",
|
|
181
|
+
"Table",
|
|
182
|
+
"TableHeader",
|
|
183
|
+
"TableBody",
|
|
184
|
+
"TableFooter",
|
|
185
|
+
"TableRow",
|
|
186
|
+
"TableHead",
|
|
187
|
+
"TableCell",
|
|
188
|
+
"TableCaption",
|
|
189
|
+
"TablePagination",
|
|
190
|
+
"TablePaginationProps",
|
|
191
|
+
"TablePaginationLabels",
|
|
192
|
+
"calculatePagination",
|
|
193
|
+
"clampPage",
|
|
194
|
+
"getPageNumbers",
|
|
195
|
+
"PaginationParams",
|
|
196
|
+
"PaginationMeta",
|
|
197
|
+
"PageItem",
|
|
198
|
+
"DropdownMenu",
|
|
199
|
+
"DropdownMenuTrigger",
|
|
200
|
+
"DropdownMenuContent",
|
|
201
|
+
"DropdownMenuItem",
|
|
202
|
+
"DropdownMenuCheckboxItem",
|
|
203
|
+
"DropdownMenuRadioItem",
|
|
204
|
+
"DropdownMenuLabel",
|
|
205
|
+
"DropdownMenuSeparator",
|
|
206
|
+
"DropdownMenuShortcut",
|
|
207
|
+
"DropdownMenuGroup",
|
|
208
|
+
"DropdownMenuPortal",
|
|
209
|
+
"DropdownMenuSub",
|
|
210
|
+
"DropdownMenuSubContent",
|
|
211
|
+
"DropdownMenuSubTrigger",
|
|
212
|
+
"DropdownMenuRadioGroup",
|
|
213
|
+
"DataTable",
|
|
214
|
+
"DataTableProps",
|
|
215
|
+
"useDataTable",
|
|
216
|
+
"useDataTableVirtualizer",
|
|
217
|
+
"getSelectedRowData",
|
|
218
|
+
"DataTableVirtualizerContext",
|
|
219
|
+
"DataTableContextValue",
|
|
220
|
+
"DataTablePaginationConfig",
|
|
221
|
+
"DataTableVirtualizationConfig",
|
|
222
|
+
"DataTableVirtualizerContextValue",
|
|
223
|
+
"DataTableCellOverflow",
|
|
224
|
+
"DataTableContent",
|
|
225
|
+
"DataTableContentProps",
|
|
226
|
+
"DataTableHeader",
|
|
227
|
+
"DataTableHeaderProps",
|
|
228
|
+
"DataTableBody",
|
|
229
|
+
"DataTableBodyProps",
|
|
230
|
+
"DataTableLoading",
|
|
231
|
+
"DataTableLoadingProps",
|
|
232
|
+
"DataTableError",
|
|
233
|
+
"DataTableErrorProps",
|
|
234
|
+
"DataTableRow",
|
|
235
|
+
"DataTableRowProps",
|
|
236
|
+
"DataTablePagination",
|
|
237
|
+
"DataTablePaginationProps",
|
|
238
|
+
"DataTableColumnHeader",
|
|
239
|
+
"DataTableColumnHeaderProps",
|
|
240
|
+
"DataTableColumnVisibility",
|
|
241
|
+
"DataTableColumnVisibilityProps",
|
|
242
|
+
"DataTableColumnOrder",
|
|
243
|
+
"DataTableColumnOrderProps",
|
|
244
|
+
"DataTableToolbar",
|
|
245
|
+
"DataTableToolbarProps",
|
|
246
|
+
"DataTableFooter",
|
|
247
|
+
"DataTableFooterProps",
|
|
248
|
+
"DataTableResizeHandle",
|
|
249
|
+
"DataTableResizeHandleProps",
|
|
250
|
+
"getPinnedColumnOffset",
|
|
251
|
+
"isLastLeftPinnedColumn",
|
|
252
|
+
"isFirstRightPinnedColumn",
|
|
253
|
+
"PinningPosition",
|
|
254
|
+
"ColumnDef",
|
|
255
|
+
"ColumnSizingState",
|
|
256
|
+
"RowSelectionState",
|
|
257
|
+
"SortingState",
|
|
258
|
+
"VisibilityState",
|
|
259
|
+
"DateTimePicker",
|
|
260
|
+
"DateTimePickerRoot",
|
|
261
|
+
"DateTimePickerInput",
|
|
262
|
+
"DateTimePickerPopover",
|
|
263
|
+
"DateTimePickerPanel",
|
|
264
|
+
"Calendar",
|
|
265
|
+
"TimePicker",
|
|
266
|
+
"DateTimePickerProps",
|
|
267
|
+
"DateTimePickerRootProps",
|
|
268
|
+
"DateTimePickerInputProps",
|
|
269
|
+
"DateTimePickerPopoverProps",
|
|
270
|
+
"DateTimePickerPanelProps",
|
|
271
|
+
"CalendarProps",
|
|
272
|
+
"TimePickerProps",
|
|
273
|
+
"DateTimePickerLocale",
|
|
274
|
+
"DateRangePicker",
|
|
275
|
+
"RangeCalendar",
|
|
276
|
+
"DateRangePickerProps",
|
|
277
|
+
"DateRange",
|
|
278
|
+
"RangeCalendarProps",
|
|
279
|
+
"CollapsibleSidebar",
|
|
280
|
+
"CollapsibleSidebarContent",
|
|
281
|
+
"CollapsibleSidebarCondensed",
|
|
282
|
+
"CollapsibleSidebarToggle",
|
|
283
|
+
"useCollapsibleSidebar",
|
|
284
|
+
"ScrollOverflow",
|
|
285
|
+
"ScrollOverflowProps",
|
|
286
|
+
"useScrollOverflow",
|
|
287
|
+
"UseScrollOverflowOptions",
|
|
288
|
+
"UseScrollOverflowReturn",
|
|
289
|
+
] as const
|
|
290
|
+
|
|
291
|
+
export function migrate(ctx: MigrateContext): void {
|
|
292
|
+
for (const name of handles) ctx.move(name)
|
|
293
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Volt's stylesheet imports are removed: Zenith injects its Griffel styles at runtime and ships
|
|
3
|
+
* no CSS files. `preflight.css` was a Tailwind reset; Zenith's AppearanceBoundary scopes its own.
|
|
4
|
+
*/
|
|
5
|
+
import type { MigrateContext } from "../lib/types"
|
|
6
|
+
|
|
7
|
+
export const handles = [] as const
|
|
8
|
+
|
|
9
|
+
export const handlesModules = [
|
|
10
|
+
"@epilot/volt-ui-react/style.css",
|
|
11
|
+
"@epilot/volt-ui-react/preflight.css",
|
|
12
|
+
"@epilot/volt-ui-react/font.css",
|
|
13
|
+
] as const
|
|
14
|
+
|
|
15
|
+
export function migrate(ctx: MigrateContext): void {
|
|
16
|
+
for (const m of handlesModules)
|
|
17
|
+
ctx.imports(m).forEach((path) => ctx.removeImport(path))
|
|
18
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Volt re-exported more TanStack Table types than Zenith does. The ones Zenith does not re-export
|
|
3
|
+
* come from `@tanstack/react-table` directly (a dependency the consumer already has through its
|
|
4
|
+
* table code; add it if not).
|
|
5
|
+
*/
|
|
6
|
+
import type { MigrateContext } from "../lib/types"
|
|
7
|
+
|
|
8
|
+
export const TANSTACK = "@tanstack/react-table"
|
|
9
|
+
|
|
10
|
+
export const handles = [
|
|
11
|
+
"ColumnFiltersState",
|
|
12
|
+
"ColumnOrderState",
|
|
13
|
+
"ColumnPinningState",
|
|
14
|
+
"FilterFn",
|
|
15
|
+
"PaginationState",
|
|
16
|
+
] as const
|
|
17
|
+
|
|
18
|
+
export function migrate(ctx: MigrateContext): void {
|
|
19
|
+
for (const name of handles) ctx.moveTo(TANSTACK, name)
|
|
20
|
+
}
|