@acronis-platform/ui-react 0.55.0 → 0.56.0
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 +1 -1
- package/package.json +4 -2
- package/dist/components/ui/accordion/accordion.js +0 -53
- package/dist/components/ui/accordion/accordion.js.map +0 -1
- package/dist/components/ui/alert/alert.js +0 -99
- package/dist/components/ui/alert/alert.js.map +0 -1
- package/dist/components/ui/app-shell/app-shell.js +0 -75
- package/dist/components/ui/app-shell/app-shell.js.map +0 -1
- package/dist/components/ui/auth-layout/auth-layout.js +0 -56
- package/dist/components/ui/auth-layout/auth-layout.js.map +0 -1
- package/dist/components/ui/avatar/avatar.js +0 -70
- package/dist/components/ui/avatar/avatar.js.map +0 -1
- package/dist/components/ui/breadcrumb/breadcrumb.js +0 -116
- package/dist/components/ui/breadcrumb/breadcrumb.js.map +0 -1
- package/dist/components/ui/button/button.js +0 -50
- package/dist/components/ui/button/button.js.map +0 -1
- package/dist/components/ui/button-icon/button-icon.js +0 -35
- package/dist/components/ui/button-icon/button-icon.js.map +0 -1
- package/dist/components/ui/button-menu/button-menu.js +0 -52
- package/dist/components/ui/button-menu/button-menu.js.map +0 -1
- package/dist/components/ui/card/card.js +0 -92
- package/dist/components/ui/card/card.js.map +0 -1
- package/dist/components/ui/card-filter/card-filter.js +0 -63
- package/dist/components/ui/card-filter/card-filter.js.map +0 -1
- package/dist/components/ui/chart/chart.js +0 -213
- package/dist/components/ui/chart/chart.js.map +0 -1
- package/dist/components/ui/checkbox/checkbox.js +0 -70
- package/dist/components/ui/checkbox/checkbox.js.map +0 -1
- package/dist/components/ui/chip/chip.js +0 -70
- package/dist/components/ui/chip/chip.js.map +0 -1
- package/dist/components/ui/collapsible/collapsible.js +0 -22
- package/dist/components/ui/collapsible/collapsible.js.map +0 -1
- package/dist/components/ui/combobox/combobox.js +0 -153
- package/dist/components/ui/combobox/combobox.js.map +0 -1
- package/dist/components/ui/data-table/data-table-column-header.js +0 -36
- package/dist/components/ui/data-table/data-table-column-header.js.map +0 -1
- package/dist/components/ui/data-table/data-table-pagination.js +0 -89
- package/dist/components/ui/data-table/data-table-pagination.js.map +0 -1
- package/dist/components/ui/data-table/data-table-toolbar.js +0 -46
- package/dist/components/ui/data-table/data-table-toolbar.js.map +0 -1
- package/dist/components/ui/data-table/data-table-view-options.js +0 -40
- package/dist/components/ui/data-table/data-table-view-options.js.map +0 -1
- package/dist/components/ui/data-table/data-table.js +0 -89
- package/dist/components/ui/data-table/data-table.js.map +0 -1
- package/dist/components/ui/description-list/description-list.js +0 -54
- package/dist/components/ui/description-list/description-list.js.map +0 -1
- package/dist/components/ui/dialog/dialog.js +0 -141
- package/dist/components/ui/dialog/dialog.js.map +0 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu.js +0 -160
- package/dist/components/ui/dropdown-menu/dropdown-menu.js.map +0 -1
- package/dist/components/ui/empty/empty.js +0 -78
- package/dist/components/ui/empty/empty.js.map +0 -1
- package/dist/components/ui/field/field.js +0 -189
- package/dist/components/ui/field/field.js.map +0 -1
- package/dist/components/ui/filter-search/filter-search.js +0 -28
- package/dist/components/ui/filter-search/filter-search.js.map +0 -1
- package/dist/components/ui/form/form.js +0 -16
- package/dist/components/ui/form/form.js.map +0 -1
- package/dist/components/ui/grid/grid.js +0 -69
- package/dist/components/ui/grid/grid.js.map +0 -1
- package/dist/components/ui/input/input.js +0 -22
- package/dist/components/ui/input/input.js.map +0 -1
- package/dist/components/ui/input-date-picker/input-date-picker.js +0 -104
- package/dist/components/ui/input-date-picker/input-date-picker.js.map +0 -1
- package/dist/components/ui/input-search/input-search.js +0 -56
- package/dist/components/ui/input-search/input-search.js.map +0 -1
- package/dist/components/ui/input-select/input-select.js +0 -269
- package/dist/components/ui/input-select/input-select.js.map +0 -1
- package/dist/components/ui/input-text/input-text.js +0 -87
- package/dist/components/ui/input-text/input-text.js.map +0 -1
- package/dist/components/ui/input-text-area/input-text-area.js +0 -77
- package/dist/components/ui/input-text-area/input-text-area.js.map +0 -1
- package/dist/components/ui/label/label.js +0 -12
- package/dist/components/ui/label/label.js.map +0 -1
- package/dist/components/ui/link/link.js +0 -39
- package/dist/components/ui/link/link.js.map +0 -1
- package/dist/components/ui/number-field/number-field.js +0 -61
- package/dist/components/ui/number-field/number-field.js.map +0 -1
- package/dist/components/ui/page-content/page-content.js +0 -19
- package/dist/components/ui/page-content/page-content.js.map +0 -1
- package/dist/components/ui/page-header/page-header.js +0 -74
- package/dist/components/ui/page-header/page-header.js.map +0 -1
- package/dist/components/ui/pagination/pagination.js +0 -87
- package/dist/components/ui/pagination/pagination.js.map +0 -1
- package/dist/components/ui/popover/popover.js +0 -49
- package/dist/components/ui/popover/popover.js.map +0 -1
- package/dist/components/ui/progress/progress.js +0 -30
- package/dist/components/ui/progress/progress.js.map +0 -1
- package/dist/components/ui/progress-circle/progress-circle.js +0 -115
- package/dist/components/ui/progress-circle/progress-circle.js.map +0 -1
- package/dist/components/ui/radio/radio.js +0 -44
- package/dist/components/ui/radio/radio.js.map +0 -1
- package/dist/components/ui/resizable/resizable.js +0 -44
- package/dist/components/ui/resizable/resizable.js.map +0 -1
- package/dist/components/ui/scroll-area/scroll-area.js +0 -61
- package/dist/components/ui/scroll-area/scroll-area.js.map +0 -1
- package/dist/components/ui/search/search.js +0 -93
- package/dist/components/ui/search/search.js.map +0 -1
- package/dist/components/ui/search-global/search-global.js +0 -60
- package/dist/components/ui/search-global/search-global.js.map +0 -1
- package/dist/components/ui/section/section.js +0 -37
- package/dist/components/ui/section/section.js.map +0 -1
- package/dist/components/ui/separator/separator.js +0 -22
- package/dist/components/ui/separator/separator.js.map +0 -1
- package/dist/components/ui/sheet/sheet-details.js +0 -80
- package/dist/components/ui/sheet/sheet-details.js.map +0 -1
- package/dist/components/ui/sheet/sheet.js +0 -139
- package/dist/components/ui/sheet/sheet.js.map +0 -1
- package/dist/components/ui/sidebar-primary/sidebar-primary.js +0 -318
- package/dist/components/ui/sidebar-primary/sidebar-primary.js.map +0 -1
- package/dist/components/ui/sidebar-secondary/sidebar-secondary.js +0 -624
- package/dist/components/ui/sidebar-secondary/sidebar-secondary.js.map +0 -1
- package/dist/components/ui/skeleton/skeleton.js +0 -22
- package/dist/components/ui/skeleton/skeleton.js.map +0 -1
- package/dist/components/ui/slider/slider.js +0 -42
- package/dist/components/ui/slider/slider.js.map +0 -1
- package/dist/components/ui/spinner/spinner.js +0 -38
- package/dist/components/ui/spinner/spinner.js.map +0 -1
- package/dist/components/ui/stack/stack.js +0 -61
- package/dist/components/ui/stack/stack.js.map +0 -1
- package/dist/components/ui/switch/switch.js +0 -41
- package/dist/components/ui/switch/switch.js.map +0 -1
- package/dist/components/ui/table/table.js +0 -118
- package/dist/components/ui/table/table.js.map +0 -1
- package/dist/components/ui/tabs/tabs.js +0 -44
- package/dist/components/ui/tabs/tabs.js.map +0 -1
- package/dist/components/ui/tag/tag.js +0 -47
- package/dist/components/ui/tag/tag.js.map +0 -1
- package/dist/components/ui/toast/toast.js +0 -85
- package/dist/components/ui/toast/toast.js.map +0 -1
- package/dist/components/ui/toggle-group/toggle-group.js +0 -47
- package/dist/components/ui/toggle-group/toggle-group.js.map +0 -1
- package/dist/components/ui/tooltip/tooltip.js +0 -53
- package/dist/components/ui/tooltip/tooltip.js.map +0 -1
- package/dist/components/ui/widget-placeholder/widget-placeholder.js +0 -106
- package/dist/components/ui/widget-placeholder/widget-placeholder.js.map +0 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -361
- package/dist/index.js.map +0 -1
- package/dist/lib/portal-container.js +0 -14
- package/dist/lib/portal-container.js.map +0 -1
- package/dist/lib/utils.js +0 -9
- package/dist/lib/utils.js.map +0 -1
- package/dist/node_modules/.pnpm/@tanstack_react-table@8.21.3_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-table/build/lib/index.js +0 -104
- package/dist/node_modules/.pnpm/@tanstack_react-table@8.21.3_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-table/build/lib/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@tanstack_table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/index.js +0 -1900
- package/dist/node_modules/.pnpm/@tanstack_table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/index.js.map +0 -1
- package/dist/node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js +0 -36
- package/dist/node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js +0 -17
- package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js.map +0 -1
- package/dist/node_modules/.pnpm/react-resizable-panels@4.11.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/react-resizable-panels/dist/react-resizable-panels.js +0 -2093
- package/dist/node_modules/.pnpm/react-resizable-panels@4.11.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/react-resizable-panels/dist/react-resizable-panels.js.map +0 -1
- package/dist/node_modules/.pnpm/tailwind-merge@3.6.0/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -2996
- package/dist/node_modules/.pnpm/tailwind-merge@3.6.0/node_modules/tailwind-merge/dist/bundle-mjs.js.map +0 -1
- package/dist/react.d.ts +0 -2
- package/dist/react.js +0 -361
- package/dist/react.js.map +0 -1
- package/dist/src/components/ui/accordion/accordion.d.ts +0 -7
- package/dist/src/components/ui/accordion/index.d.ts +0 -1
- package/dist/src/components/ui/alert/alert.d.ts +0 -14
- package/dist/src/components/ui/alert/index.d.ts +0 -2
- package/dist/src/components/ui/app-shell/app-shell.d.ts +0 -8
- package/dist/src/components/ui/app-shell/index.d.ts +0 -1
- package/dist/src/components/ui/auth-layout/auth-layout.d.ts +0 -6
- package/dist/src/components/ui/auth-layout/index.d.ts +0 -1
- package/dist/src/components/ui/avatar/avatar.d.ts +0 -27
- package/dist/src/components/ui/avatar/index.d.ts +0 -1
- package/dist/src/components/ui/breadcrumb/breadcrumb.d.ts +0 -30
- package/dist/src/components/ui/breadcrumb/index.d.ts +0 -1
- package/dist/src/components/ui/button/button.d.ts +0 -16
- package/dist/src/components/ui/button/index.d.ts +0 -1
- package/dist/src/components/ui/button-icon/button-icon.d.ts +0 -20
- package/dist/src/components/ui/button-icon/index.d.ts +0 -1
- package/dist/src/components/ui/button-menu/button-menu.d.ts +0 -29
- package/dist/src/components/ui/button-menu/index.d.ts +0 -1
- package/dist/src/components/ui/card/card.d.ts +0 -17
- package/dist/src/components/ui/card/index.d.ts +0 -1
- package/dist/src/components/ui/card-filter/card-filter.d.ts +0 -27
- package/dist/src/components/ui/card-filter/index.d.ts +0 -1
- package/dist/src/components/ui/chart/chart.d.ts +0 -55
- package/dist/src/components/ui/chart/index.d.ts +0 -2
- package/dist/src/components/ui/checkbox/checkbox.d.ts +0 -10
- package/dist/src/components/ui/checkbox/index.d.ts +0 -1
- package/dist/src/components/ui/chip/chip.d.ts +0 -20
- package/dist/src/components/ui/chip/index.d.ts +0 -1
- package/dist/src/components/ui/collapsible/collapsible.d.ts +0 -5
- package/dist/src/components/ui/collapsible/index.d.ts +0 -1
- package/dist/src/components/ui/combobox/combobox.d.ts +0 -28
- package/dist/src/components/ui/combobox/index.d.ts +0 -2
- package/dist/src/components/ui/data-table/data-table-column-header.d.ts +0 -8
- package/dist/src/components/ui/data-table/data-table-pagination.d.ts +0 -8
- package/dist/src/components/ui/data-table/data-table-toolbar.d.ts +0 -9
- package/dist/src/components/ui/data-table/data-table-view-options.d.ts +0 -6
- package/dist/src/components/ui/data-table/data-table.d.ts +0 -24
- package/dist/src/components/ui/data-table/data-table.docs.d.ts +0 -22
- package/dist/src/components/ui/data-table/index.d.ts +0 -5
- package/dist/src/components/ui/description-list/description-list.d.ts +0 -8
- package/dist/src/components/ui/description-list/index.d.ts +0 -1
- package/dist/src/components/ui/dialog/dialog.d.ts +0 -39
- package/dist/src/components/ui/dialog/dialog.docs.d.ts +0 -24
- package/dist/src/components/ui/dialog/index.d.ts +0 -1
- package/dist/src/components/ui/dropdown-menu/dropdown-menu.d.ts +0 -39
- package/dist/src/components/ui/dropdown-menu/dropdown-menu.docs.d.ts +0 -25
- package/dist/src/components/ui/dropdown-menu/index.d.ts +0 -1
- package/dist/src/components/ui/empty/empty.d.ts +0 -9
- package/dist/src/components/ui/empty/index.d.ts +0 -1
- package/dist/src/components/ui/field/field.d.ts +0 -39
- package/dist/src/components/ui/field/field.docs.d.ts +0 -27
- package/dist/src/components/ui/field/index.d.ts +0 -2
- package/dist/src/components/ui/filter-search/filter-search.d.ts +0 -6
- package/dist/src/components/ui/filter-search/index.d.ts +0 -2
- package/dist/src/components/ui/form/form.d.ts +0 -6
- package/dist/src/components/ui/form/index.d.ts +0 -1
- package/dist/src/components/ui/grid/grid.d.ts +0 -15
- package/dist/src/components/ui/grid/index.d.ts +0 -1
- package/dist/src/components/ui/input/index.d.ts +0 -1
- package/dist/src/components/ui/input/input.d.ts +0 -4
- package/dist/src/components/ui/input-date-picker/index.d.ts +0 -1
- package/dist/src/components/ui/input-date-picker/input-date-picker.d.ts +0 -27
- package/dist/src/components/ui/input-search/index.d.ts +0 -1
- package/dist/src/components/ui/input-search/input-search.d.ts +0 -10
- package/dist/src/components/ui/input-select/index.d.ts +0 -1
- package/dist/src/components/ui/input-select/input-select.d.ts +0 -46
- package/dist/src/components/ui/input-text/index.d.ts +0 -1
- package/dist/src/components/ui/input-text/input-text.d.ts +0 -20
- package/dist/src/components/ui/input-text-area/index.d.ts +0 -1
- package/dist/src/components/ui/input-text-area/input-text-area.d.ts +0 -16
- package/dist/src/components/ui/label/index.d.ts +0 -1
- package/dist/src/components/ui/label/label.d.ts +0 -5
- package/dist/src/components/ui/label/label.docs.d.ts +0 -10
- package/dist/src/components/ui/link/index.d.ts +0 -1
- package/dist/src/components/ui/link/link.d.ts +0 -15
- package/dist/src/components/ui/number-field/index.d.ts +0 -1
- package/dist/src/components/ui/number-field/number-field.d.ts +0 -7
- package/dist/src/components/ui/page-content/index.d.ts +0 -1
- package/dist/src/components/ui/page-content/page-content.d.ts +0 -4
- package/dist/src/components/ui/page-header/index.d.ts +0 -1
- package/dist/src/components/ui/page-header/page-header.d.ts +0 -8
- package/dist/src/components/ui/pagination/index.d.ts +0 -2
- package/dist/src/components/ui/pagination/pagination.d.ts +0 -25
- package/dist/src/components/ui/popover/index.d.ts +0 -1
- package/dist/src/components/ui/popover/popover.d.ts +0 -27
- package/dist/src/components/ui/popover/popover.docs.d.ts +0 -25
- package/dist/src/components/ui/progress/index.d.ts +0 -1
- package/dist/src/components/ui/progress/progress.d.ts +0 -9
- package/dist/src/components/ui/progress/progress.docs.d.ts +0 -16
- package/dist/src/components/ui/progress-circle/index.d.ts +0 -1
- package/dist/src/components/ui/progress-circle/progress-circle.d.ts +0 -47
- package/dist/src/components/ui/progress-circle/progress-circle.docs.d.ts +0 -21
- package/dist/src/components/ui/radio/index.d.ts +0 -1
- package/dist/src/components/ui/radio/radio.d.ts +0 -8
- package/dist/src/components/ui/resizable/index.d.ts +0 -2
- package/dist/src/components/ui/resizable/resizable.d.ts +0 -6
- package/dist/src/components/ui/scroll-area/index.d.ts +0 -1
- package/dist/src/components/ui/scroll-area/scroll-area.d.ts +0 -10
- package/dist/src/components/ui/search/index.d.ts +0 -1
- package/dist/src/components/ui/search/search.d.ts +0 -7
- package/dist/src/components/ui/search-global/index.d.ts +0 -1
- package/dist/src/components/ui/search-global/search-global.d.ts +0 -7
- package/dist/src/components/ui/section/index.d.ts +0 -1
- package/dist/src/components/ui/section/section.d.ts +0 -7
- package/dist/src/components/ui/select/index.d.ts +0 -1
- package/dist/src/components/ui/select/select.d.ts +0 -1
- package/dist/src/components/ui/separator/index.d.ts +0 -1
- package/dist/src/components/ui/separator/separator.d.ts +0 -3
- package/dist/src/components/ui/sheet/index.d.ts +0 -3
- package/dist/src/components/ui/sheet/sheet-details.d.ts +0 -42
- package/dist/src/components/ui/sheet/sheet.d.ts +0 -36
- package/dist/src/components/ui/sheet/sheet.docs.d.ts +0 -21
- package/dist/src/components/ui/sidebar-primary/index.d.ts +0 -1
- package/dist/src/components/ui/sidebar-primary/sidebar-primary.d.ts +0 -99
- package/dist/src/components/ui/sidebar-secondary/index.d.ts +0 -1
- package/dist/src/components/ui/sidebar-secondary/sidebar-secondary.d.ts +0 -117
- package/dist/src/components/ui/skeleton/index.d.ts +0 -1
- package/dist/src/components/ui/skeleton/skeleton.d.ts +0 -4
- package/dist/src/components/ui/slider/index.d.ts +0 -1
- package/dist/src/components/ui/slider/slider.d.ts +0 -7
- package/dist/src/components/ui/spinner/index.d.ts +0 -1
- package/dist/src/components/ui/spinner/spinner.d.ts +0 -9
- package/dist/src/components/ui/stack/index.d.ts +0 -1
- package/dist/src/components/ui/stack/stack.d.ts +0 -13
- package/dist/src/components/ui/switch/index.d.ts +0 -1
- package/dist/src/components/ui/switch/switch.d.ts +0 -8
- package/dist/src/components/ui/table/index.d.ts +0 -1
- package/dist/src/components/ui/table/table.d.ts +0 -23
- package/dist/src/components/ui/tabs/index.d.ts +0 -1
- package/dist/src/components/ui/tabs/tabs.d.ts +0 -6
- package/dist/src/components/ui/tabs/tabs.docs.d.ts +0 -25
- package/dist/src/components/ui/tag/index.d.ts +0 -1
- package/dist/src/components/ui/tag/tag.d.ts +0 -12
- package/dist/src/components/ui/toast/index.d.ts +0 -1
- package/dist/src/components/ui/toast/toast.d.ts +0 -48
- package/dist/src/components/ui/toast/toast.docs.d.ts +0 -12
- package/dist/src/components/ui/toggle-group/index.d.ts +0 -1
- package/dist/src/components/ui/toggle-group/toggle-group.d.ts +0 -7
- package/dist/src/components/ui/tooltip/index.d.ts +0 -1
- package/dist/src/components/ui/tooltip/tooltip.d.ts +0 -13
- package/dist/src/components/ui/widget-placeholder/index.d.ts +0 -1
- package/dist/src/components/ui/widget-placeholder/widget-placeholder.d.ts +0 -18
- package/dist/src/components/ui/widget-placeholder/widget-placeholder.docs.d.ts +0 -14
- package/dist/src/index.d.ts +0 -68
- package/dist/src/lib/portal-container.d.ts +0 -36
- package/dist/src/lib/utils.d.ts +0 -2
- package/dist/src/react.d.ts +0 -1
- package/dist/styles.d.ts +0 -1
- package/dist/ui-react.css +0 -1
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { useRender } from '@base-ui/react/use-render';
|
|
2
|
-
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
/**
|
|
5
|
-
* Tracks whether `ref`'s element is clipping its own content (`scrollWidth >
|
|
6
|
-
* clientWidth`) — used to gate a tooltip so it only opens when a truncated
|
|
7
|
-
* label is actually cut off. Re-measures via `ResizeObserver` (covers the
|
|
8
|
-
* rail's expand/collapse width transition); `enabled` skips measurement
|
|
9
|
-
* entirely (e.g. while collapsed, where the label is `sr-only`).
|
|
10
|
-
*/
|
|
11
|
-
declare function useIsOverflowing<T extends Element>(ref: React.RefObject<T | null>, { enabled }: {
|
|
12
|
-
enabled: boolean;
|
|
13
|
-
}): boolean;
|
|
14
|
-
export interface SidebarPrimaryProps extends React.ComponentPropsWithoutRef<'nav'> {
|
|
15
|
-
/** Controlled expanded (rail width) state. */
|
|
16
|
-
expanded?: boolean;
|
|
17
|
-
/** Uncontrolled initial expanded state. Defaults to `true` (full width). */
|
|
18
|
-
defaultExpanded?: boolean;
|
|
19
|
-
/** Fires when the expanded state changes (e.g. a consumer toggle). */
|
|
20
|
-
onExpandedChange?: (expanded: boolean) => void;
|
|
21
|
-
/**
|
|
22
|
-
* Replace the rendered `<nav>` with another element or component
|
|
23
|
-
* (Base UI composition). Accepts a React element or a render function.
|
|
24
|
-
*/
|
|
25
|
-
render?: useRender.RenderProp;
|
|
26
|
-
}
|
|
27
|
-
declare const SidebarPrimary: React.ForwardRefExoticComponent<SidebarPrimaryProps & React.RefAttributes<HTMLElement>>;
|
|
28
|
-
export interface SidebarPrimaryHeaderProps extends React.ComponentPropsWithoutRef<'div'> {
|
|
29
|
-
/**
|
|
30
|
-
* Logo content shown while the rail is expanded (e.g. a full lockup).
|
|
31
|
-
* Pairs with `collapsedLogo` to swap distinct graphics per rail state
|
|
32
|
-
* instead of resizing one. When neither `logo` nor `collapsedLogo` is
|
|
33
|
-
* given, `children` renders in both states (the original single-slot
|
|
34
|
-
* behavior).
|
|
35
|
-
*/
|
|
36
|
-
logo?: React.ReactNode;
|
|
37
|
-
/**
|
|
38
|
-
* Logo content shown while the rail is collapsed (e.g. a monogram mark).
|
|
39
|
-
* Falls back to `logo` when omitted.
|
|
40
|
-
*/
|
|
41
|
-
collapsedLogo?: React.ReactNode;
|
|
42
|
-
}
|
|
43
|
-
declare const SidebarPrimaryHeader: React.ForwardRefExoticComponent<SidebarPrimaryHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
44
|
-
declare const SidebarPrimaryContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
45
|
-
declare const SidebarPrimaryFooter: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
46
|
-
declare const SidebarPrimarySection: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
47
|
-
declare const SidebarPrimaryMenu: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
48
|
-
declare const sidebarPrimaryMenuItemVariants: (props?: ({
|
|
49
|
-
variant?: "selected" | "unselected" | null | undefined;
|
|
50
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
51
|
-
export interface SidebarPrimaryMenuItemProps extends Omit<React.ComponentPropsWithoutRef<'a'>, 'children'>, Omit<VariantProps<typeof sidebarPrimaryMenuItemVariants>, 'variant'> {
|
|
52
|
-
/** Marks the current route: sets the `selected` variant + `aria-current="page"`. */
|
|
53
|
-
selected?: boolean;
|
|
54
|
-
/** Leading 16px icon (from `@acronis-platform/icons-react`). */
|
|
55
|
-
icon?: React.ReactNode;
|
|
56
|
-
children?: React.ReactNode;
|
|
57
|
-
/**
|
|
58
|
-
* Trailing affordance — a `SidebarPrimaryMenuItemExtras` element. Rendered as
|
|
59
|
-
* a flex sibling of the label (its own `gap` from `_global/container/gap`),
|
|
60
|
-
* not nested inside the label's truncating span — nesting it there collapses
|
|
61
|
-
* the row gap and lets `truncate` clip the affordance. Hidden in collapsed/rail
|
|
62
|
-
* mode regardless of node type — the parent wraps it, so this holds even for
|
|
63
|
-
* a raw node rather than `SidebarPrimaryMenuItemExtras`.
|
|
64
|
-
*/
|
|
65
|
-
extras?: React.ReactNode;
|
|
66
|
-
/**
|
|
67
|
-
* Replace the rendered `<a>` with another element or component (e.g. a router
|
|
68
|
-
* `Link` or a `<button>`) via Base UI composition.
|
|
69
|
-
*/
|
|
70
|
-
render?: useRender.RenderProp;
|
|
71
|
-
}
|
|
72
|
-
declare const SidebarPrimaryMenuItem: React.ForwardRefExoticComponent<SidebarPrimaryMenuItemProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
73
|
-
export interface SidebarPrimaryMenuItemExtrasProps extends React.ComponentPropsWithoutRef<'span'> {
|
|
74
|
-
/** Which trailing affordance to render. */
|
|
75
|
-
variant: 'tag' | 'externalLink' | 'shortcut' | 'tag-externalLink';
|
|
76
|
-
/** Shortcut text (e.g. "⌘H") for the `shortcut` variant. */
|
|
77
|
-
shortcut?: string;
|
|
78
|
-
/**
|
|
79
|
-
* Tag content for the `tag` / `tag-externalLink` variants. Figma constrains
|
|
80
|
-
* this slot's `Tag` instance to `size="sm"` (no other size is offered on
|
|
81
|
-
* MenuItemExtras) — always pass a `<Tag variant="info" size="sm">`, never the
|
|
82
|
-
* default size.
|
|
83
|
-
*/
|
|
84
|
-
tag?: React.ReactNode;
|
|
85
|
-
}
|
|
86
|
-
declare const SidebarPrimaryMenuItemExtras: React.ForwardRefExoticComponent<SidebarPrimaryMenuItemExtrasProps & React.RefAttributes<HTMLSpanElement>>;
|
|
87
|
-
export interface SidebarPrimaryCollapseTriggerProps extends Omit<React.ComponentPropsWithoutRef<'button'>, 'children'> {
|
|
88
|
-
/** Leading 16px icon (e.g. a panel-left glyph). */
|
|
89
|
-
icon?: React.ReactNode;
|
|
90
|
-
children?: React.ReactNode;
|
|
91
|
-
/**
|
|
92
|
-
* Trailing affordance — a `SidebarPrimaryMenuItemExtras` element (Figma
|
|
93
|
-
* shows a `⌘H` shortcut here). Rendered as a flex sibling of the label, same
|
|
94
|
-
* as `SidebarPrimaryMenuItem`'s `extras` prop.
|
|
95
|
-
*/
|
|
96
|
-
extras?: React.ReactNode;
|
|
97
|
-
}
|
|
98
|
-
declare const SidebarPrimaryCollapseTrigger: React.ForwardRefExoticComponent<SidebarPrimaryCollapseTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
99
|
-
export { SidebarPrimary, SidebarPrimaryHeader, SidebarPrimaryContent, SidebarPrimaryFooter, SidebarPrimarySection, SidebarPrimaryMenu, SidebarPrimaryMenuItem, SidebarPrimaryMenuItemExtras, SidebarPrimaryCollapseTrigger, useIsOverflowing, sidebarPrimaryMenuItemVariants, };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SidebarSecondary, SidebarSecondaryHeader, SidebarSecondaryContent, SidebarSecondaryFooter, SidebarSecondarySection, SidebarSecondarySectionLabel, SidebarSecondaryMenu, SidebarSecondaryMenuItem, SidebarSecondaryMenuItemExtras, SidebarSecondaryCollapseTrigger, sidebarSecondaryMenuItemVariants, type SidebarSecondaryProps, type SidebarSecondaryHeaderProps, type SidebarSecondaryMenuItemProps, type SidebarSecondaryMenuItemExtrasProps, type SidebarSecondaryCollapseTriggerProps, } from './sidebar-secondary';
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { useRender } from '@base-ui/react/use-render';
|
|
2
|
-
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
export interface SidebarSecondaryProps extends React.ComponentPropsWithoutRef<'nav'> {
|
|
5
|
-
/** Controlled expanded (rail width) state. */
|
|
6
|
-
expanded?: boolean;
|
|
7
|
-
/** Uncontrolled initial expanded state. Defaults to `true` (full width). */
|
|
8
|
-
defaultExpanded?: boolean;
|
|
9
|
-
/** Fires when the expanded state changes (e.g. a consumer toggle). */
|
|
10
|
-
onExpandedChange?: (expanded: boolean) => void;
|
|
11
|
-
/**
|
|
12
|
-
* Enable the draggable resize edge on the right border.
|
|
13
|
-
* When `true`, the sidebar can be resized between the expanded-width token
|
|
14
|
-
* and twice that value.
|
|
15
|
-
*/
|
|
16
|
-
resizable?: boolean;
|
|
17
|
-
/** Controlled width in px (only used when `resizable`). */
|
|
18
|
-
width?: number;
|
|
19
|
-
/** Fires when the width changes due to a drag interaction. */
|
|
20
|
-
onWidthChange?: (width: number) => void;
|
|
21
|
-
/** Accessible label for the resize edge (`role="separator"`). Defaults to `'Resize sidebar'`. */
|
|
22
|
-
resizeAriaLabel?: string;
|
|
23
|
-
/** Tooltip content shown when the sidebar is expanded. Pass `null` to hide the tooltip entirely. */
|
|
24
|
-
resizeTooltipExpanded?: React.ReactNode;
|
|
25
|
-
/** Tooltip content shown when the sidebar is collapsed. Pass `null` to hide the tooltip entirely. */
|
|
26
|
-
resizeTooltipCollapsed?: React.ReactNode;
|
|
27
|
-
/**
|
|
28
|
-
* Replace the rendered `<nav>` with another element or component
|
|
29
|
-
* (Base UI composition). Accepts a React element or a render function.
|
|
30
|
-
*/
|
|
31
|
-
render?: useRender.RenderProp;
|
|
32
|
-
}
|
|
33
|
-
declare const SidebarSecondary: React.ForwardRefExoticComponent<SidebarSecondaryProps & React.RefAttributes<HTMLElement>>;
|
|
34
|
-
export interface SidebarSecondaryHeaderProps extends React.ComponentPropsWithoutRef<'div'> {
|
|
35
|
-
/** Heading text (or pass as children). */
|
|
36
|
-
label?: React.ReactNode;
|
|
37
|
-
}
|
|
38
|
-
declare const SidebarSecondaryHeader: React.ForwardRefExoticComponent<SidebarSecondaryHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
39
|
-
declare const SidebarSecondaryContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
40
|
-
export interface SidebarSecondaryCollapsedBreadcrumbProps extends React.ComponentPropsWithoutRef<'div'> {
|
|
41
|
-
/**
|
|
42
|
-
* The parent section label (breadcrumbLabel).
|
|
43
|
-
* Auto-derived from the `SidebarSecondaryHeader` label when omitted.
|
|
44
|
-
*/
|
|
45
|
-
parentLabel?: React.ReactNode;
|
|
46
|
-
/**
|
|
47
|
-
* The current page label (labelCurrentPage).
|
|
48
|
-
* Auto-derived from the selected `SidebarSecondaryMenuItem` when omitted.
|
|
49
|
-
*/
|
|
50
|
-
currentLabel?: React.ReactNode;
|
|
51
|
-
/** Separator between the two; defaults to a 16px ChevronDownIcon. */
|
|
52
|
-
separator?: React.ReactNode;
|
|
53
|
-
}
|
|
54
|
-
declare const SidebarSecondaryCollapsedBreadcrumb: React.ForwardRefExoticComponent<SidebarSecondaryCollapsedBreadcrumbProps & React.RefAttributes<HTMLDivElement>>;
|
|
55
|
-
declare const SidebarSecondaryFooter: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
56
|
-
export interface SidebarSecondarySectionProps extends React.ComponentPropsWithoutRef<'div'> {
|
|
57
|
-
/**
|
|
58
|
-
* Make the section a collapsible disclosure: the `SidebarSecondarySectionLabel`
|
|
59
|
-
* becomes a chevron toggle and the `SidebarSecondaryMenu` becomes its panel.
|
|
60
|
-
*/
|
|
61
|
-
expandable?: boolean;
|
|
62
|
-
/** Controlled open state (expandable sections only). */
|
|
63
|
-
open?: boolean;
|
|
64
|
-
/** Uncontrolled initial open state (expandable sections only). Defaults to open. */
|
|
65
|
-
defaultOpen?: boolean;
|
|
66
|
-
/** Fires with the next open value when an expandable section toggles. */
|
|
67
|
-
onOpenChange?: (open: boolean) => void;
|
|
68
|
-
}
|
|
69
|
-
declare const SidebarSecondarySection: React.ForwardRefExoticComponent<SidebarSecondarySectionProps & React.RefAttributes<HTMLDivElement>>;
|
|
70
|
-
export interface SidebarSecondarySectionLabelProps extends React.ComponentPropsWithoutRef<'div'> {
|
|
71
|
-
/** Trailing header actions (e.g. a ghost `ButtonIcon`). Rendered outside the toggle. */
|
|
72
|
-
actions?: React.ReactNode;
|
|
73
|
-
/**
|
|
74
|
-
* A rollup badge (e.g. a `Tag` with an unread count) shown in the header only
|
|
75
|
-
* when an expandable section is collapsed. Ignored for static sections.
|
|
76
|
-
*/
|
|
77
|
-
unreadRollup?: React.ReactNode;
|
|
78
|
-
}
|
|
79
|
-
declare const SidebarSecondarySectionLabel: React.ForwardRefExoticComponent<SidebarSecondarySectionLabelProps & React.RefAttributes<HTMLDivElement>>;
|
|
80
|
-
declare const SidebarSecondaryMenu: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
81
|
-
declare const sidebarSecondaryMenuItemVariants: (props?: ({
|
|
82
|
-
variant?: "selected" | "unselected" | null | undefined;
|
|
83
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
84
|
-
export interface SidebarSecondaryMenuItemProps extends Omit<React.ComponentPropsWithoutRef<'a'>, 'children'>, Omit<VariantProps<typeof sidebarSecondaryMenuItemVariants>, 'variant'> {
|
|
85
|
-
/** Marks the current route: sets the `selected` variant + `aria-current="page"`. */
|
|
86
|
-
selected?: boolean;
|
|
87
|
-
/** Optional leading 16px icon (`hasIcon` in Figma). */
|
|
88
|
-
icon?: React.ReactNode;
|
|
89
|
-
/** Trailing extras (tag, shortcut, external-link icon — `hasExtras` in Figma). */
|
|
90
|
-
extras?: React.ReactNode;
|
|
91
|
-
children?: React.ReactNode;
|
|
92
|
-
/** Replace the rendered `<a>` (e.g. a router `Link` or a `<button>`). */
|
|
93
|
-
render?: useRender.RenderProp;
|
|
94
|
-
}
|
|
95
|
-
declare const SidebarSecondaryMenuItem: React.ForwardRefExoticComponent<SidebarSecondaryMenuItemProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
96
|
-
export interface SidebarSecondaryMenuItemExtrasProps extends React.ComponentPropsWithoutRef<'span'> {
|
|
97
|
-
/** Which trailing affordance to render. */
|
|
98
|
-
variant: 'tag' | 'externalLink' | 'shortcut' | 'tag-externalLink';
|
|
99
|
-
/** Shortcut text for the `shortcut` variant. */
|
|
100
|
-
shortcut?: string;
|
|
101
|
-
/** Tag content for the `tag` / `tag-externalLink` variants. */
|
|
102
|
-
tag?: React.ReactNode;
|
|
103
|
-
}
|
|
104
|
-
declare const SidebarSecondaryMenuItemExtras: React.ForwardRefExoticComponent<SidebarSecondaryMenuItemExtrasProps & React.RefAttributes<HTMLSpanElement>>;
|
|
105
|
-
export interface SidebarSecondaryCollapseTriggerProps extends Omit<React.ComponentPropsWithoutRef<'button'>, 'children'> {
|
|
106
|
-
/** Icon shown when the sidebar is expanded (collapse affordance). */
|
|
107
|
-
icon?: React.ReactNode;
|
|
108
|
-
/** Icon shown when the sidebar is collapsed (expand affordance). Falls back to `icon` when omitted. */
|
|
109
|
-
expandIcon?: React.ReactNode;
|
|
110
|
-
/** Tooltip text shown when the sidebar is collapsed. Defaults to `'Expand'`. */
|
|
111
|
-
expandTooltip?: React.ReactNode;
|
|
112
|
-
/** Trailing extras (e.g. a keyboard shortcut hint), same slot as `SidebarSecondaryMenuItem`. */
|
|
113
|
-
extras?: React.ReactNode;
|
|
114
|
-
children?: React.ReactNode;
|
|
115
|
-
}
|
|
116
|
-
declare const SidebarSecondaryCollapseTrigger: React.ForwardRefExoticComponent<SidebarSecondaryCollapseTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
117
|
-
export { SidebarSecondary, SidebarSecondaryHeader, SidebarSecondaryContent, SidebarSecondaryCollapsedBreadcrumb, SidebarSecondaryFooter, SidebarSecondarySection, SidebarSecondarySectionLabel, SidebarSecondaryMenu, SidebarSecondaryMenuItem, SidebarSecondaryMenuItemExtras, SidebarSecondaryCollapseTrigger, sidebarSecondaryMenuItemVariants, };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Skeleton, type SkeletonProps } from './skeleton';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Slider, type SliderProps } from './slider';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Slider as SliderPrimitive } from '@base-ui/react/slider';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
export type SliderProps = React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>;
|
|
4
|
-
declare const Slider: React.ForwardRefExoticComponent<Omit<SliderPrimitive.Root.Props<number | readonly number[]> & {
|
|
5
|
-
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
6
|
-
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
-
export { Slider };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Spinner, spinnerVariants, type SpinnerProps } from './spinner';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
declare const spinnerVariants: (props?: ({
|
|
4
|
-
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
5
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
-
export interface SpinnerProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof spinnerVariants> {
|
|
7
|
-
}
|
|
8
|
-
declare const Spinner: React.ForwardRefExoticComponent<SpinnerProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
-
export { Spinner, spinnerVariants };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Stack, stackVariants, type StackProps } from './stack';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
declare const stackVariants: (props?: ({
|
|
4
|
-
direction?: "horizontal" | "vertical" | null | undefined;
|
|
5
|
-
gap?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
6
|
-
align?: "center" | "end" | "start" | "stretch" | null | undefined;
|
|
7
|
-
justify?: "center" | "end" | "start" | "between" | null | undefined;
|
|
8
|
-
wrap?: boolean | null | undefined;
|
|
9
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
|
-
export interface StackProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof stackVariants> {
|
|
11
|
-
}
|
|
12
|
-
declare const Stack: React.ForwardRefExoticComponent<StackProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
-
export { Stack, stackVariants };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Switch, type SwitchProps } from './switch';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Switch as SwitchPrimitive } from '@base-ui/react/switch';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
export interface SwitchProps extends React.ComponentPropsWithoutRef<typeof SwitchPrimitive.Root> {
|
|
4
|
-
/** Optional label rendered beside the toggle; names the control. */
|
|
5
|
-
label?: React.ReactNode;
|
|
6
|
-
}
|
|
7
|
-
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLElement>>;
|
|
8
|
-
export { Switch };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, type TableRowProps, type TableHeadProps, } from './table';
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
declare const Table: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableElement> & React.RefAttributes<HTMLTableElement>>;
|
|
3
|
-
declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
4
|
-
declare const TableBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
5
|
-
declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
6
|
-
export interface TableRowProps extends React.HTMLAttributes<HTMLTableRowElement> {
|
|
7
|
-
/** Mark the row as selected — applies the active row token + `data-state`. */
|
|
8
|
-
selected?: boolean;
|
|
9
|
-
}
|
|
10
|
-
declare const TableRow: React.ForwardRefExoticComponent<TableRowProps & React.RefAttributes<HTMLTableRowElement>>;
|
|
11
|
-
type SortDirection = 'asc' | 'desc' | false;
|
|
12
|
-
export interface TableHeadProps extends React.ThHTMLAttributes<HTMLTableCellElement> {
|
|
13
|
-
/** Render the column as sortable — adds a sort affordance and `aria-sort`. */
|
|
14
|
-
sortable?: boolean;
|
|
15
|
-
/** Current sort direction for this column (`false` = sortable but unsorted). */
|
|
16
|
-
sortDirection?: SortDirection;
|
|
17
|
-
/** Invoked when the user activates a sortable header (click / Enter / Space). */
|
|
18
|
-
onSort?: () => void;
|
|
19
|
-
}
|
|
20
|
-
declare const TableHead: React.ForwardRefExoticComponent<TableHeadProps & React.RefAttributes<HTMLTableCellElement>>;
|
|
21
|
-
declare const TableCell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
22
|
-
declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
|
|
23
|
-
export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Tabs, TabsList, TabsTrigger, TabsContent } from './tabs';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
declare const Tabs: React.ForwardRefExoticComponent<Omit<import('@base-ui/react').TabsRootProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3
|
-
declare const TabsList: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').TabsListProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
-
declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').TabsTabProps, "ref"> & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
5
|
-
declare const TabsContent: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').TabsPanelProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
-
export { Tabs, TabsList, TabsTrigger, TabsContent };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type * as React from 'react';
|
|
2
|
-
/** Props for `Tabs` (the root). */
|
|
3
|
-
export interface TabsProps {
|
|
4
|
-
/** Controlled selected-tab value. Pair with `onValueChange`. */
|
|
5
|
-
value?: string | number;
|
|
6
|
-
/** Initially selected tab value (uncontrolled). */
|
|
7
|
-
defaultValue?: string | number;
|
|
8
|
-
/** Fired with the newly selected tab value. */
|
|
9
|
-
onValueChange?: (value: string | number, eventDetails: unknown) => void;
|
|
10
|
-
/** Layout and arrow-key navigation orientation. Defaults to `horizontal`. */
|
|
11
|
-
orientation?: 'horizontal' | 'vertical';
|
|
12
|
-
/** A `TabsList` of `TabsTrigger`s plus matching `TabsContent` panels. */
|
|
13
|
-
children?: React.ReactNode;
|
|
14
|
-
}
|
|
15
|
-
/** Props shared by `TabsTrigger` and `TabsContent`. */
|
|
16
|
-
export interface TabsPartProps {
|
|
17
|
-
/**
|
|
18
|
-
* Identifies the tab: a `TabsTrigger` and the `TabsContent` it controls share
|
|
19
|
-
* the same `value`.
|
|
20
|
-
*/
|
|
21
|
-
value: string | number;
|
|
22
|
-
/** On `TabsTrigger` — disables selecting that tab. */
|
|
23
|
-
disabled?: boolean;
|
|
24
|
-
children?: React.ReactNode;
|
|
25
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Tag, tagVariants, type TagProps } from './tag';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
declare const tagVariants: (props?: ({
|
|
4
|
-
variant?: "info" | "success" | "warning" | "critical" | "ai" | "neutral" | "danger" | null | undefined;
|
|
5
|
-
size?: "default" | "sm" | null | undefined;
|
|
6
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
-
export interface TagProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof tagVariants> {
|
|
8
|
-
/** Optional leading icon, rendered at 16px before the label. */
|
|
9
|
-
icon?: React.ReactNode;
|
|
10
|
-
}
|
|
11
|
-
declare const Tag: React.ForwardRefExoticComponent<TagProps & React.RefAttributes<HTMLSpanElement>>;
|
|
12
|
-
export { Tag, tagVariants };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { toast, Toaster, type ToasterProps, type ToastType, type ToastOptions, } from './toast';
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { Toast as ToastPrimitive } from '@base-ui/react/toast';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
export type ToastType = 'success' | 'info' | 'warning' | 'error' | 'loading';
|
|
4
|
-
export interface ToastOptions {
|
|
5
|
-
/** Secondary line under the title. */
|
|
6
|
-
description?: React.ReactNode;
|
|
7
|
-
/** Auto-dismiss delay in ms; `0` keeps the toast until dismissed. */
|
|
8
|
-
timeout?: number;
|
|
9
|
-
/** A single inline action button (e.g. Undo). */
|
|
10
|
-
action?: {
|
|
11
|
-
label: React.ReactNode;
|
|
12
|
-
onClick?: () => void;
|
|
13
|
-
};
|
|
14
|
-
/** Stable id — re-adding with the same id updates the toast in place. */
|
|
15
|
-
id?: string;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Imperative toast API. `toast(title, options)` shows a neutral toast;
|
|
19
|
-
* `toast.success` / `info` / `warning` / `error` / `loading` set the variant.
|
|
20
|
-
* `toast.dismiss(id?)` closes one (or all) and `toast.promise` ties a toast to a
|
|
21
|
-
* promise's lifecycle.
|
|
22
|
-
*/
|
|
23
|
-
declare const toast: ((title: React.ReactNode, options?: ToastOptions) => string) & {
|
|
24
|
-
success: (title: React.ReactNode, options?: ToastOptions) => string;
|
|
25
|
-
info: (title: React.ReactNode, options?: ToastOptions) => string;
|
|
26
|
-
warning: (title: React.ReactNode, options?: ToastOptions) => string;
|
|
27
|
-
error: (title: React.ReactNode, options?: ToastOptions) => string;
|
|
28
|
-
loading: (title: React.ReactNode, options?: ToastOptions) => string;
|
|
29
|
-
dismiss: (id?: string) => void;
|
|
30
|
-
promise: <Value, T extends any = any>(promiseValue: Promise<Value>, options: import('@base-ui/react').ToastManagerPromiseOptions<Value, T>) => Promise<Value>;
|
|
31
|
-
};
|
|
32
|
-
export interface ToasterProps {
|
|
33
|
-
/** Default auto-dismiss delay in ms for toasts that don't set one. */
|
|
34
|
-
timeout?: number;
|
|
35
|
-
/** Max toasts shown at once; the oldest is dropped past the limit. */
|
|
36
|
-
limit?: number;
|
|
37
|
-
/**
|
|
38
|
-
* Portal container for the toast stack. Pass a shadow-root mount for
|
|
39
|
-
* isolated-style previews (the docs demos do this via `useShadowMount`).
|
|
40
|
-
*/
|
|
41
|
-
portalContainer?: ToastPrimitive.Portal.Props['container'];
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* The toast region. Render once near the app root; it portals a bottom-right
|
|
45
|
-
* stack and renders every queued toast. Trigger toasts with the `toast` API.
|
|
46
|
-
*/
|
|
47
|
-
declare function Toaster({ timeout, limit, portalContainer }: ToasterProps): import("react/jsx-runtime").JSX.Element;
|
|
48
|
-
export { toast, Toaster };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/** Props for `<Toaster>` — the toast region rendered once near the app root. */
|
|
2
|
-
export interface ToasterProps {
|
|
3
|
-
/** Default auto-dismiss delay in ms for toasts that don't set one (default 5000). */
|
|
4
|
-
timeout?: number;
|
|
5
|
-
/** Max toasts shown at once; the oldest is dropped past the limit (default 3). */
|
|
6
|
-
limit?: number;
|
|
7
|
-
/**
|
|
8
|
-
* Portal container for the toast stack. Pass a shadow-root mount for
|
|
9
|
-
* isolated-style previews (the docs demos do this via `useShadowMount`).
|
|
10
|
-
*/
|
|
11
|
-
portalContainer?: HTMLElement | null;
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Toggle, ToggleGroup, ToggleGroupItem } from './toggle-group';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Toggle as TogglePrimitive } from '@base-ui/react/toggle';
|
|
2
|
-
import { ToggleGroup as ToggleGroupPrimitive } from '@base-ui/react/toggle-group';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
declare const Toggle: React.ForwardRefExoticComponent<Omit<TogglePrimitive.Props<string> & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
-
declare const ToggleGroup: React.ForwardRefExoticComponent<Omit<ToggleGroupPrimitive.Props<string> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
-
declare const ToggleGroupItem: React.ForwardRefExoticComponent<Omit<TogglePrimitive.Props<string> & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
-
export { Toggle, ToggleGroup, ToggleGroupItem };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider, } from './tooltip';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Tooltip as TooltipPrimitive } from '@base-ui/react/tooltip';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
declare const TooltipProvider: React.FC<import('@base-ui/react').TooltipProviderProps>;
|
|
4
|
-
declare const Tooltip: <Payload>(props: TooltipPrimitive.Root.Props<Payload>) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare const TooltipTrigger: TooltipPrimitive.Trigger;
|
|
6
|
-
declare const TooltipContent: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').TooltipPopupProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
7
|
-
sideOffset?: number;
|
|
8
|
-
side?: TooltipPrimitive.Positioner.Props["side"];
|
|
9
|
-
align?: TooltipPrimitive.Positioner.Props["align"];
|
|
10
|
-
portalContainer?: TooltipPrimitive.Portal.Props["container"];
|
|
11
|
-
keepMounted?: TooltipPrimitive.Portal.Props["keepMounted"];
|
|
12
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
-
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { WidgetPlaceholder, WidgetPlaceholderHeader, WidgetPlaceholderTitle, WidgetPlaceholderIcon, WidgetPlaceholderContent, WidgetPlaceholderImage, WidgetPlaceholderText, WidgetPlaceholderAction, WidgetPlaceholderFooter, type WidgetPlaceholderProps, } from './widget-placeholder';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface WidgetPlaceholderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
/**
|
|
4
|
-
* Make the whole widget focusable and clickable (hover/active surface + focus
|
|
5
|
-
* ring). Wire the behavior via `onClick`.
|
|
6
|
-
*/
|
|
7
|
-
interactive?: boolean;
|
|
8
|
-
}
|
|
9
|
-
declare const WidgetPlaceholder: React.ForwardRefExoticComponent<WidgetPlaceholderProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
-
declare const WidgetPlaceholderHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
-
declare const WidgetPlaceholderTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
-
declare const WidgetPlaceholderIcon: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
-
declare const WidgetPlaceholderContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
-
declare const WidgetPlaceholderImage: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
-
declare const WidgetPlaceholderText: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
-
declare const WidgetPlaceholderAction: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
-
declare const WidgetPlaceholderFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
-
export { WidgetPlaceholder, WidgetPlaceholderHeader, WidgetPlaceholderTitle, WidgetPlaceholderIcon, WidgetPlaceholderContent, WidgetPlaceholderImage, WidgetPlaceholderText, WidgetPlaceholderAction, WidgetPlaceholderFooter, };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type * as React from 'react';
|
|
2
|
-
/** Props for `WidgetPlaceholder` — the root widget card. */
|
|
3
|
-
export interface WidgetPlaceholderProps {
|
|
4
|
-
/**
|
|
5
|
-
* Make the whole widget focusable (`tabindex=0`) and clickable — adds
|
|
6
|
-
* hover/active surface tints and a focus ring. Wire the behavior with
|
|
7
|
-
* `onClick`.
|
|
8
|
-
*/
|
|
9
|
-
interactive?: boolean;
|
|
10
|
-
/** Extra classes merged onto the root. */
|
|
11
|
-
className?: string;
|
|
12
|
-
/** The composed parts (header / content / footer). */
|
|
13
|
-
children?: React.ReactNode;
|
|
14
|
-
}
|
package/dist/src/index.d.ts
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
export { cn } from './lib/utils';
|
|
2
|
-
export { PortalContainerProvider, usePortalContainer, type PortalContainerProviderProps, } from './lib/portal-container';
|
|
3
|
-
export * from './components/ui/accordion';
|
|
4
|
-
export * from './components/ui/alert';
|
|
5
|
-
export * from './components/ui/app-shell';
|
|
6
|
-
export * from './components/ui/auth-layout';
|
|
7
|
-
export * from './components/ui/avatar';
|
|
8
|
-
export * from './components/ui/breadcrumb';
|
|
9
|
-
export * from './components/ui/button';
|
|
10
|
-
export * from './components/ui/button-menu';
|
|
11
|
-
export * from './components/ui/card';
|
|
12
|
-
export * from './components/ui/card-filter';
|
|
13
|
-
export * from './components/ui/chart';
|
|
14
|
-
export * from './components/ui/checkbox';
|
|
15
|
-
export * from './components/ui/chip';
|
|
16
|
-
export * from './components/ui/collapsible';
|
|
17
|
-
export * from './components/ui/combobox';
|
|
18
|
-
export * from './components/ui/data-table';
|
|
19
|
-
export * from './components/ui/description-list';
|
|
20
|
-
export * from './components/ui/dialog';
|
|
21
|
-
export * from './components/ui/dropdown-menu';
|
|
22
|
-
export * from './components/ui/empty';
|
|
23
|
-
export * from './components/ui/field';
|
|
24
|
-
export * from './components/ui/grid';
|
|
25
|
-
export * from './components/ui/form';
|
|
26
|
-
export * from './components/ui/radio';
|
|
27
|
-
export * from './components/ui/input';
|
|
28
|
-
export * from './components/ui/input-date-picker';
|
|
29
|
-
export * from './components/ui/input-search';
|
|
30
|
-
export * from './components/ui/input-select';
|
|
31
|
-
export * from './components/ui/input-text';
|
|
32
|
-
export * from './components/ui/input-text-area';
|
|
33
|
-
export * from './components/ui/label';
|
|
34
|
-
export * from './components/ui/link';
|
|
35
|
-
export * from './components/ui/number-field';
|
|
36
|
-
export * from './components/ui/page-content';
|
|
37
|
-
export * from './components/ui/page-header';
|
|
38
|
-
export * from './components/ui/pagination';
|
|
39
|
-
export * from './components/ui/popover';
|
|
40
|
-
export * from './components/ui/progress';
|
|
41
|
-
export * from './components/ui/progress-circle';
|
|
42
|
-
export * from './components/ui/scroll-area';
|
|
43
|
-
export * from './components/ui/search-global';
|
|
44
|
-
export { InputText as Input, type InputTextProps as InputProps, } from './components/ui/input-text';
|
|
45
|
-
export { InputSearch as Search, type InputSearchProps as SearchProps, } from './components/ui/input-search';
|
|
46
|
-
export { InputTextArea as Textarea, type InputTextAreaProps as TextareaProps, } from './components/ui/input-text-area';
|
|
47
|
-
export * from './components/ui/section';
|
|
48
|
-
export * from './components/ui/select';
|
|
49
|
-
export * from './components/ui/separator';
|
|
50
|
-
export * from './components/ui/sheet';
|
|
51
|
-
export * from './components/ui/skeleton';
|
|
52
|
-
export * from './components/ui/slider';
|
|
53
|
-
export * from './components/ui/spinner';
|
|
54
|
-
export * from './components/ui/stack';
|
|
55
|
-
export * from './components/ui/resizable';
|
|
56
|
-
export * from './components/ui/sidebar-primary';
|
|
57
|
-
export * from './components/ui/sidebar-secondary';
|
|
58
|
-
export * from './components/ui/button-icon';
|
|
59
|
-
export * from './components/ui/filter-search';
|
|
60
|
-
export * from './components/ui/switch';
|
|
61
|
-
export * from './components/ui/table';
|
|
62
|
-
export * from './components/ui/tabs';
|
|
63
|
-
export * from './components/ui/toast';
|
|
64
|
-
export * from './components/ui/toggle-group';
|
|
65
|
-
export * from './components/ui/tooltip';
|
|
66
|
-
export * from './components/ui/tag';
|
|
67
|
-
export { Tag as Badge, type TagProps as BadgeProps, } from './components/ui/tag';
|
|
68
|
-
export * from './components/ui/widget-placeholder';
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface PortalContainerProviderProps {
|
|
3
|
-
/**
|
|
4
|
-
* The DOM element portaled content should render into (e.g. a `<div>` inside
|
|
5
|
-
* a shadow root). When set, every ui-react portaling component
|
|
6
|
-
* (`Popover`, `DropdownMenu`, `Tooltip`, `Dialog`, `Sheet`, `Select`,
|
|
7
|
-
* `Combobox`, `Toast`) will mount its popup inside this element instead of
|
|
8
|
-
* `document.body`.
|
|
9
|
-
*/
|
|
10
|
-
container: HTMLElement | null;
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Provides a default portal container for all ui-react portaling components.
|
|
15
|
-
*
|
|
16
|
-
* Wrap your app (or a subtree) so that popups, dialogs, tooltips, toasts, etc.
|
|
17
|
-
* render inside the given container instead of `document.body`. This is the
|
|
18
|
-
* recommended way for shadow-DOM MFEs to keep portaled content inside the
|
|
19
|
-
* shadow root where adopted stylesheets apply.
|
|
20
|
-
*
|
|
21
|
-
* Individual components' `portalContainer` prop overrides this context.
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```tsx
|
|
25
|
-
* // Inside a shadow-DOM MFE — all portals go into the shadow root
|
|
26
|
-
* <PortalContainerProvider container={shadowRootMountDiv}>
|
|
27
|
-
* <App />
|
|
28
|
-
* </PortalContainerProvider>
|
|
29
|
-
* ```
|
|
30
|
-
*/
|
|
31
|
-
export declare function PortalContainerProvider({ container, children }: PortalContainerProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
-
/**
|
|
33
|
-
* Returns the portal container set by the nearest `PortalContainerProvider`,
|
|
34
|
-
* or `undefined` if none exists (letting Base UI default to `document.body`).
|
|
35
|
-
*/
|
|
36
|
-
export declare function usePortalContainer(): HTMLElement | null | undefined;
|
package/dist/src/lib/utils.d.ts
DELETED
package/dist/src/react.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './index';
|
package/dist/styles.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {}
|