@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,624 +0,0 @@
|
|
|
1
|
-
import { jsxs as f, Fragment as _, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import * as n from "react";
|
|
3
|
-
import { mergeProps as j } from "@base-ui/react/merge-props";
|
|
4
|
-
import { useRender as q } from "@base-ui/react/use-render";
|
|
5
|
-
import { Collapsible as X } from "@base-ui/react/collapsible";
|
|
6
|
-
import { SquareArrowUpRightIcon as ae, ChevronDownIcon as G } from "@acronis-platform/icons-react/stroke-mono";
|
|
7
|
-
import { cva as te } from "../../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js";
|
|
8
|
-
import { cn as b } from "../../../lib/utils.js";
|
|
9
|
-
import { Tooltip as P, TooltipTrigger as A, TooltipContent as M } from "../tooltip/tooltip.js";
|
|
10
|
-
function J() {
|
|
11
|
-
const [t, r] = n.useState("ltr");
|
|
12
|
-
return n.useEffect(() => {
|
|
13
|
-
r(document.documentElement.dir === "rtl" ? "rtl" : "ltr");
|
|
14
|
-
}, []), t;
|
|
15
|
-
}
|
|
16
|
-
function K(t, { enabled: r }) {
|
|
17
|
-
const [s, l] = n.useState(!1);
|
|
18
|
-
return n.useEffect(() => {
|
|
19
|
-
const i = t.current;
|
|
20
|
-
if (!r || !i) {
|
|
21
|
-
l(!1);
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
const a = () => l(i.scrollWidth > i.clientWidth);
|
|
25
|
-
a();
|
|
26
|
-
const o = new ResizeObserver(a);
|
|
27
|
-
return o.observe(i), () => o.disconnect();
|
|
28
|
-
}, [t, r]), s;
|
|
29
|
-
}
|
|
30
|
-
const R = 256, Q = R * 2, Y = /* @__PURE__ */ f(_, { children: [
|
|
31
|
-
/* @__PURE__ */ e("span", { className: "font-semibold", children: "Resize:" }),
|
|
32
|
-
" Drag",
|
|
33
|
-
/* @__PURE__ */ e("br", {}),
|
|
34
|
-
/* @__PURE__ */ e("span", { className: "font-semibold", children: "Collapse:" }),
|
|
35
|
-
" Click",
|
|
36
|
-
/* @__PURE__ */ e("br", {}),
|
|
37
|
-
/* @__PURE__ */ e("span", { className: "font-semibold", children: "Reset size:" }),
|
|
38
|
-
" Double click"
|
|
39
|
-
] }), Z = /* @__PURE__ */ f(_, { children: [
|
|
40
|
-
/* @__PURE__ */ e("span", { className: "font-semibold", children: "Resize:" }),
|
|
41
|
-
" Drag",
|
|
42
|
-
/* @__PURE__ */ e("br", {}),
|
|
43
|
-
/* @__PURE__ */ e("span", { className: "font-semibold", children: "Expand:" }),
|
|
44
|
-
" Click"
|
|
45
|
-
] }), $ = n.createContext(null);
|
|
46
|
-
function I() {
|
|
47
|
-
return n.useContext($) ?? {
|
|
48
|
-
expanded: !0,
|
|
49
|
-
toggleExpanded: () => {
|
|
50
|
-
},
|
|
51
|
-
resizable: !1,
|
|
52
|
-
width: R,
|
|
53
|
-
setWidth: () => {
|
|
54
|
-
},
|
|
55
|
-
minWidth: R,
|
|
56
|
-
maxWidth: Q,
|
|
57
|
-
defaultWidth: R,
|
|
58
|
-
headerLabel: void 0,
|
|
59
|
-
setHeaderLabel: () => {
|
|
60
|
-
},
|
|
61
|
-
selectedLabel: void 0,
|
|
62
|
-
setSelectedLabel: () => {
|
|
63
|
-
},
|
|
64
|
-
resizeAriaLabel: "Resize sidebar",
|
|
65
|
-
resizeTooltipExpanded: Y,
|
|
66
|
-
resizeTooltipCollapsed: Z
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
function ne(t, r, s) {
|
|
70
|
-
const [l, i] = n.useState(r), a = t !== void 0, o = a ? t : l, u = n.useCallback(
|
|
71
|
-
(d) => {
|
|
72
|
-
a || i(d), s == null || s(d);
|
|
73
|
-
},
|
|
74
|
-
[a, s]
|
|
75
|
-
);
|
|
76
|
-
return [o, u];
|
|
77
|
-
}
|
|
78
|
-
function ie() {
|
|
79
|
-
const t = I(), { expanded: r, toggleExpanded: s, resizable: l } = t, i = J(), a = n.useRef(t);
|
|
80
|
-
a.current = t;
|
|
81
|
-
const o = n.useRef(!1), [u, d] = n.useState(!1), [c, v] = n.useState(!1), m = n.useRef(
|
|
82
|
-
null
|
|
83
|
-
);
|
|
84
|
-
if (n.useEffect(() => () => {
|
|
85
|
-
m.current && clearTimeout(m.current);
|
|
86
|
-
}, []), !l) return null;
|
|
87
|
-
const S = (p) => {
|
|
88
|
-
p.preventDefault();
|
|
89
|
-
const C = p.currentTarget;
|
|
90
|
-
C.setPointerCapture(p.pointerId), o.current = !1, v(!0), d(!1);
|
|
91
|
-
const h = C.closest("[data-state]");
|
|
92
|
-
if (!h) {
|
|
93
|
-
v(!1), C.releasePointerCapture(p.pointerId);
|
|
94
|
-
return;
|
|
95
|
-
}
|
|
96
|
-
h.style.transitionProperty = "none";
|
|
97
|
-
const w = getComputedStyle(h).direction === "rtl", N = h.getBoundingClientRect(), { minWidth: x, maxWidth: T } = a.current, y = x / 2, z = (O) => {
|
|
98
|
-
o.current = !0;
|
|
99
|
-
const D = w ? N.right - O.clientX : O.clientX - N.left, { expanded: B } = a.current;
|
|
100
|
-
B ? D < y ? a.current.toggleExpanded() : a.current.setWidth(
|
|
101
|
-
Math.min(Math.max(D, x), T)
|
|
102
|
-
) : D > y && a.current.toggleExpanded();
|
|
103
|
-
}, W = () => {
|
|
104
|
-
v(!1), h && (h.style.transitionProperty = ""), window.removeEventListener("pointermove", z), window.removeEventListener("pointerup", W);
|
|
105
|
-
};
|
|
106
|
-
window.addEventListener("pointermove", z), window.addEventListener("pointerup", W);
|
|
107
|
-
}, E = () => {
|
|
108
|
-
o.current || (m.current && clearTimeout(m.current), m.current = setTimeout(() => {
|
|
109
|
-
s();
|
|
110
|
-
}, 250));
|
|
111
|
-
}, L = () => {
|
|
112
|
-
m.current && (clearTimeout(m.current), m.current = null), r || s(), a.current.setWidth(a.current.defaultWidth);
|
|
113
|
-
}, g = (p) => {
|
|
114
|
-
const {
|
|
115
|
-
minWidth: C,
|
|
116
|
-
maxWidth: h,
|
|
117
|
-
defaultWidth: w,
|
|
118
|
-
width: N,
|
|
119
|
-
setWidth: x,
|
|
120
|
-
expanded: T,
|
|
121
|
-
toggleExpanded: y
|
|
122
|
-
} = a.current, z = 16, W = i === "rtl" ? "ArrowLeft" : "ArrowRight", O = i === "rtl" ? "ArrowRight" : "ArrowLeft";
|
|
123
|
-
if (p.key === W && T)
|
|
124
|
-
p.preventDefault(), x(Math.min(N + z, h));
|
|
125
|
-
else if (p.key === O && T) {
|
|
126
|
-
p.preventDefault();
|
|
127
|
-
const D = N - z;
|
|
128
|
-
D < C ? y() : x(D);
|
|
129
|
-
} else p.key === "Enter" ? (p.preventDefault(), y()) : p.key === "Home" && (p.preventDefault(), T || y(), x(w));
|
|
130
|
-
};
|
|
131
|
-
return /* @__PURE__ */ f(P, { open: u, onOpenChange: (p) => {
|
|
132
|
-
c || d(p);
|
|
133
|
-
}, children: [
|
|
134
|
-
/* @__PURE__ */ e(
|
|
135
|
-
A,
|
|
136
|
-
{
|
|
137
|
-
render: /* @__PURE__ */ e(
|
|
138
|
-
"div",
|
|
139
|
-
{
|
|
140
|
-
role: "separator",
|
|
141
|
-
"aria-orientation": "vertical",
|
|
142
|
-
"aria-label": t.resizeAriaLabel,
|
|
143
|
-
className: b(
|
|
144
|
-
// 9px hit area matching ResizableHandle, absolutely positioned on inline-end edge.
|
|
145
|
-
// No after: divider — the sidebar's own border-e changes color via :has() on hover/active/focus.
|
|
146
|
-
"absolute end-0 top-0 h-full w-[9px] ltr:translate-x-1/2 rtl:-translate-x-1/2 cursor-[var(--ui-resizable-cursor,ew-resize)] z-10",
|
|
147
|
-
"focus-visible:outline-none"
|
|
148
|
-
),
|
|
149
|
-
tabIndex: 0,
|
|
150
|
-
onKeyDown: g,
|
|
151
|
-
onPointerDown: S,
|
|
152
|
-
onClick: E,
|
|
153
|
-
onDoubleClick: L
|
|
154
|
-
}
|
|
155
|
-
)
|
|
156
|
-
}
|
|
157
|
-
),
|
|
158
|
-
(r ? t.resizeTooltipExpanded : t.resizeTooltipCollapsed) != null && /* @__PURE__ */ e(M, { side: i === "rtl" ? "left" : "right", align: "center", children: r ? t.resizeTooltipExpanded : t.resizeTooltipCollapsed })
|
|
159
|
-
] });
|
|
160
|
-
}
|
|
161
|
-
const se = n.forwardRef(
|
|
162
|
-
({
|
|
163
|
-
className: t,
|
|
164
|
-
expanded: r,
|
|
165
|
-
defaultExpanded: s = !0,
|
|
166
|
-
onExpandedChange: l,
|
|
167
|
-
resizable: i = !0,
|
|
168
|
-
width: a,
|
|
169
|
-
onWidthChange: o,
|
|
170
|
-
resizeAriaLabel: u = "Resize sidebar",
|
|
171
|
-
resizeTooltipExpanded: d = Y,
|
|
172
|
-
resizeTooltipCollapsed: c = Z,
|
|
173
|
-
"aria-label": v = "Section navigation",
|
|
174
|
-
render: m,
|
|
175
|
-
children: S,
|
|
176
|
-
...E
|
|
177
|
-
}, L) => {
|
|
178
|
-
const [g, k] = ne(
|
|
179
|
-
r,
|
|
180
|
-
s,
|
|
181
|
-
l
|
|
182
|
-
), [p, C] = n.useState(R), h = a !== void 0, w = h ? a : p, N = n.useCallback(
|
|
183
|
-
(F) => {
|
|
184
|
-
h || C(F), o == null || o(F);
|
|
185
|
-
},
|
|
186
|
-
[h, o]
|
|
187
|
-
), [x, T] = n.useState(void 0), [y, z] = n.useState(void 0), W = n.useMemo(
|
|
188
|
-
() => ({
|
|
189
|
-
expanded: g,
|
|
190
|
-
toggleExpanded: () => k(!g),
|
|
191
|
-
resizable: i,
|
|
192
|
-
width: w,
|
|
193
|
-
setWidth: N,
|
|
194
|
-
minWidth: R,
|
|
195
|
-
maxWidth: Q,
|
|
196
|
-
defaultWidth: R,
|
|
197
|
-
headerLabel: x,
|
|
198
|
-
setHeaderLabel: T,
|
|
199
|
-
selectedLabel: y,
|
|
200
|
-
setSelectedLabel: z,
|
|
201
|
-
resizeAriaLabel: u,
|
|
202
|
-
resizeTooltipExpanded: d,
|
|
203
|
-
resizeTooltipCollapsed: c
|
|
204
|
-
}),
|
|
205
|
-
[
|
|
206
|
-
g,
|
|
207
|
-
k,
|
|
208
|
-
i,
|
|
209
|
-
w,
|
|
210
|
-
N,
|
|
211
|
-
x,
|
|
212
|
-
y,
|
|
213
|
-
u,
|
|
214
|
-
d,
|
|
215
|
-
c
|
|
216
|
-
]
|
|
217
|
-
), B = q({
|
|
218
|
-
render: m,
|
|
219
|
-
ref: L,
|
|
220
|
-
defaultTagName: "nav",
|
|
221
|
-
props: j(
|
|
222
|
-
{
|
|
223
|
-
"aria-label": v,
|
|
224
|
-
"data-state": g ? "expanded" : "collapsed",
|
|
225
|
-
style: i && g && (h || w !== R) ? { width: w } : void 0,
|
|
226
|
-
className: b(
|
|
227
|
-
"group/sidebar relative flex h-full flex-col bg-[var(--ui-sidebar-secondary-global-container-color)] border-e border-[var(--ui-sidebar-secondary-global-container-border-color)] [border-inline-end-width:var(--ui-sidebar-secondary-global-container-border-width)] w-[var(--ui-sidebar-secondary-collapsed-container-width)] data-[state=expanded]:w-[var(--ui-sidebar-secondary-expanded-container-width)] transition-[width]",
|
|
228
|
-
i && "transition-[width,border-color] has-[[role=separator]:hover]:border-[var(--ui-resizable-border-color-hover)] has-[[role=separator]:active]:border-[var(--ui-resizable-border-color-active)] has-[[role=separator]:focus-visible]:border-[var(--ui-resizable-border-color-hover)] has-[[role=separator]:focus-visible]:ring-[3px] has-[[role=separator]:focus-visible]:ring-[var(--ui-focus-primary)]",
|
|
229
|
-
t
|
|
230
|
-
),
|
|
231
|
-
children: /* @__PURE__ */ f(_, { children: [
|
|
232
|
-
/* @__PURE__ */ e(ee, {}),
|
|
233
|
-
S,
|
|
234
|
-
/* @__PURE__ */ e(ie, {})
|
|
235
|
-
] })
|
|
236
|
-
},
|
|
237
|
-
E
|
|
238
|
-
)
|
|
239
|
-
});
|
|
240
|
-
return /* @__PURE__ */ e($.Provider, { value: W, children: B });
|
|
241
|
-
}
|
|
242
|
-
);
|
|
243
|
-
se.displayName = "SidebarSecondary";
|
|
244
|
-
const oe = n.forwardRef(({ className: t, label: r, children: s, ...l }, i) => {
|
|
245
|
-
const { setHeaderLabel: a } = I(), o = r ?? s;
|
|
246
|
-
return n.useEffect(() => {
|
|
247
|
-
a(o);
|
|
248
|
-
}, [o, a]), /* @__PURE__ */ e(
|
|
249
|
-
"div",
|
|
250
|
-
{
|
|
251
|
-
ref: i,
|
|
252
|
-
className: b(
|
|
253
|
-
"hidden items-center shrink-0",
|
|
254
|
-
"group-data-[state=expanded]/sidebar:flex",
|
|
255
|
-
"px-[var(--ui-sidebar-secondary-global-container-header-padding-x)] py-[var(--ui-sidebar-secondary-global-container-header-padding-y)]",
|
|
256
|
-
t
|
|
257
|
-
),
|
|
258
|
-
...l,
|
|
259
|
-
children: /* @__PURE__ */ e("h2", { className: "ui-sidebar-secondary-global-header-label-text-style truncate text-[var(--ui-sidebar-secondary-global-header-label-color)]", children: o })
|
|
260
|
-
}
|
|
261
|
-
);
|
|
262
|
-
});
|
|
263
|
-
oe.displayName = "SidebarSecondaryHeader";
|
|
264
|
-
const le = n.forwardRef(({ className: t, ...r }, s) => (
|
|
265
|
-
// Expanded: the section list. Hidden in collapsed mode, where the
|
|
266
|
-
// CollapsedBreadcrumb sibling takes over.
|
|
267
|
-
/* @__PURE__ */ e(
|
|
268
|
-
"div",
|
|
269
|
-
{
|
|
270
|
-
ref: s,
|
|
271
|
-
className: b(
|
|
272
|
-
"flex flex-1 flex-col overflow-y-auto gap-[var(--ui-sidebar-secondary-global-section-list-gap)]",
|
|
273
|
-
"hidden group-data-[state=expanded]/sidebar:flex",
|
|
274
|
-
t
|
|
275
|
-
),
|
|
276
|
-
...r
|
|
277
|
-
}
|
|
278
|
-
)
|
|
279
|
-
));
|
|
280
|
-
le.displayName = "SidebarSecondaryContent";
|
|
281
|
-
const ee = n.forwardRef(({ className: t, parentLabel: r, currentLabel: s, separator: l, ...i }, a) => {
|
|
282
|
-
const { headerLabel: o, selectedLabel: u } = I(), d = r ?? o, c = s ?? u;
|
|
283
|
-
return (
|
|
284
|
-
// Shown only in collapsed mode — toggled by the same data-[state] selector so
|
|
285
|
-
// it stays in the DOM (SSR-present) with no JS branch. Laid out vertically:
|
|
286
|
-
// parent → separator → current page.
|
|
287
|
-
/* @__PURE__ */ f(
|
|
288
|
-
"div",
|
|
289
|
-
{
|
|
290
|
-
ref: a,
|
|
291
|
-
className: b(
|
|
292
|
-
"flex flex-1 flex-col items-center min-h-0",
|
|
293
|
-
"gap-[var(--ui-sidebar-secondary-collapsed-container-content-gap)] py-[var(--ui-sidebar-secondary-collapsed-container-content-padding-y)]",
|
|
294
|
-
"flex group-data-[state=expanded]/sidebar:hidden",
|
|
295
|
-
t
|
|
296
|
-
),
|
|
297
|
-
...i,
|
|
298
|
-
children: [
|
|
299
|
-
/* @__PURE__ */ e("span", { className: "[writing-mode:vertical-rl] [direction:ltr] shrink-0 ui-sidebar-secondary-collapsed-breadcrumb-label-text-style text-[var(--ui-sidebar-secondary-collapsed-breadcrumb-label-color)]", children: d }),
|
|
300
|
-
/* @__PURE__ */ e(
|
|
301
|
-
"span",
|
|
302
|
-
{
|
|
303
|
-
"aria-hidden": "true",
|
|
304
|
-
className: "inline-flex items-center text-[var(--ui-sidebar-secondary-collapsed-icon-separator-color)] [&>svg]:size-[var(--ui-sidebar-secondary-collapsed-icon-separator-size)]",
|
|
305
|
-
children: l ?? /* @__PURE__ */ e(G, { size: 16 })
|
|
306
|
-
}
|
|
307
|
-
),
|
|
308
|
-
/* @__PURE__ */ e("span", { className: "[writing-mode:vertical-rl] [direction:ltr] flex-1 min-h-0 overflow-hidden ui-sidebar-secondary-collapsed-label-current-page-text-style text-[var(--ui-sidebar-secondary-collapsed-label-current-page-color)]", children: c })
|
|
309
|
-
]
|
|
310
|
-
}
|
|
311
|
-
)
|
|
312
|
-
);
|
|
313
|
-
});
|
|
314
|
-
ee.displayName = "SidebarSecondaryCollapsedBreadcrumb";
|
|
315
|
-
const de = n.forwardRef(({ className: t, ...r }, s) => /* @__PURE__ */ e(
|
|
316
|
-
"div",
|
|
317
|
-
{
|
|
318
|
-
ref: s,
|
|
319
|
-
className: b(
|
|
320
|
-
"flex flex-col shrink-0",
|
|
321
|
-
"border-t border-[var(--ui-sidebar-secondary-global-container-footer-border-color)] [border-top-width:var(--ui-sidebar-secondary-global-container-footer-border-width)]",
|
|
322
|
-
"py-[var(--ui-sidebar-secondary-section-container-padding-y)]",
|
|
323
|
-
t
|
|
324
|
-
),
|
|
325
|
-
...r
|
|
326
|
-
}
|
|
327
|
-
));
|
|
328
|
-
de.displayName = "SidebarSecondaryFooter";
|
|
329
|
-
const H = n.createContext({
|
|
330
|
-
expandable: !1
|
|
331
|
-
}), ce = {
|
|
332
|
-
expandable: !1
|
|
333
|
-
}, ue = {
|
|
334
|
-
expandable: !0
|
|
335
|
-
}, be = n.forwardRef(
|
|
336
|
-
({
|
|
337
|
-
className: t,
|
|
338
|
-
expandable: r = !1,
|
|
339
|
-
open: s,
|
|
340
|
-
defaultOpen: l = !0,
|
|
341
|
-
onOpenChange: i,
|
|
342
|
-
children: a,
|
|
343
|
-
...o
|
|
344
|
-
}, u) => {
|
|
345
|
-
const d = b(
|
|
346
|
-
"flex flex-col py-[var(--ui-sidebar-secondary-section-container-padding-y)]",
|
|
347
|
-
t
|
|
348
|
-
);
|
|
349
|
-
return r ? /* @__PURE__ */ e(H.Provider, { value: ue, children: /* @__PURE__ */ e(
|
|
350
|
-
X.Root,
|
|
351
|
-
{
|
|
352
|
-
ref: u,
|
|
353
|
-
open: s,
|
|
354
|
-
defaultOpen: l,
|
|
355
|
-
onOpenChange: i,
|
|
356
|
-
render: /* @__PURE__ */ e("div", { className: d }),
|
|
357
|
-
...o,
|
|
358
|
-
children: a
|
|
359
|
-
}
|
|
360
|
-
) }) : /* @__PURE__ */ e(H.Provider, { value: ce, children: /* @__PURE__ */ e("div", { ref: u, className: d, ...o, children: a }) });
|
|
361
|
-
}
|
|
362
|
-
);
|
|
363
|
-
be.displayName = "SidebarSecondarySection";
|
|
364
|
-
const U = "ui-sidebar-secondary-section-label-section-text-style text-[var(--ui-sidebar-secondary-section-label-section-color)]", V = "min-h-[var(--ui-sidebar-secondary-menu-item-global-container-height-min)] py-[var(--ui-sidebar-secondary-section-container-header-padding-y)] px-[var(--ui-sidebar-secondary-section-container-header-padding-x)]", pe = n.forwardRef(({ className: t, actions: r, unreadRollup: s, children: l, ...i }, a) => {
|
|
365
|
-
const { expandable: o } = n.useContext(H), u = n.useRef(null), d = K(u, { enabled: !0 }), c = /* @__PURE__ */ f(P, { disabled: !d, children: [
|
|
366
|
-
/* @__PURE__ */ e(
|
|
367
|
-
A,
|
|
368
|
-
{
|
|
369
|
-
render: /* @__PURE__ */ e(
|
|
370
|
-
"span",
|
|
371
|
-
{
|
|
372
|
-
ref: u,
|
|
373
|
-
className: "min-w-0 flex-1 truncate"
|
|
374
|
-
}
|
|
375
|
-
),
|
|
376
|
-
children: l
|
|
377
|
-
}
|
|
378
|
-
),
|
|
379
|
-
/* @__PURE__ */ e(M, { children: l })
|
|
380
|
-
] });
|
|
381
|
-
if (!o) {
|
|
382
|
-
const v = b(U, V, t);
|
|
383
|
-
return r == null ? /* @__PURE__ */ e(
|
|
384
|
-
"div",
|
|
385
|
-
{
|
|
386
|
-
ref: a,
|
|
387
|
-
className: b(
|
|
388
|
-
v,
|
|
389
|
-
"flex items-center"
|
|
390
|
-
),
|
|
391
|
-
...i,
|
|
392
|
-
children: c
|
|
393
|
-
}
|
|
394
|
-
) : /* @__PURE__ */ f(
|
|
395
|
-
"div",
|
|
396
|
-
{
|
|
397
|
-
ref: a,
|
|
398
|
-
className: b(
|
|
399
|
-
v,
|
|
400
|
-
"flex items-center gap-[var(--ui-sidebar-secondary-section-container-header-gap)]"
|
|
401
|
-
),
|
|
402
|
-
...i,
|
|
403
|
-
children: [
|
|
404
|
-
c,
|
|
405
|
-
/* @__PURE__ */ e("span", { className: "flex shrink-0 items-center", children: r })
|
|
406
|
-
]
|
|
407
|
-
}
|
|
408
|
-
);
|
|
409
|
-
}
|
|
410
|
-
return /* @__PURE__ */ f(
|
|
411
|
-
"div",
|
|
412
|
-
{
|
|
413
|
-
ref: a,
|
|
414
|
-
className: b(
|
|
415
|
-
"flex items-center gap-[var(--ui-sidebar-secondary-section-container-header-gap)]",
|
|
416
|
-
V,
|
|
417
|
-
t
|
|
418
|
-
),
|
|
419
|
-
...i,
|
|
420
|
-
children: [
|
|
421
|
-
/* @__PURE__ */ f(
|
|
422
|
-
X.Trigger,
|
|
423
|
-
{
|
|
424
|
-
className: b(
|
|
425
|
-
"group/section flex min-w-0 flex-1 items-center gap-[var(--ui-sidebar-secondary-section-container-header-gap)] text-start",
|
|
426
|
-
U,
|
|
427
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ui-focus-brand)] focus-visible:ring-inset"
|
|
428
|
-
),
|
|
429
|
-
children: [
|
|
430
|
-
/* @__PURE__ */ e(
|
|
431
|
-
G,
|
|
432
|
-
{
|
|
433
|
-
size: 16,
|
|
434
|
-
"aria-hidden": "true",
|
|
435
|
-
className: "shrink-0 ltr:-rotate-90 rtl:rotate-90 transition-transform group-data-[panel-open]/section:rotate-0 text-[var(--ui-sidebar-secondary-section-icon-arrow-color)]"
|
|
436
|
-
}
|
|
437
|
-
),
|
|
438
|
-
c,
|
|
439
|
-
s != null && /* @__PURE__ */ e("span", { className: "flex shrink-0 items-center group-data-[panel-open]/section:hidden", children: s })
|
|
440
|
-
]
|
|
441
|
-
}
|
|
442
|
-
),
|
|
443
|
-
r != null && /* @__PURE__ */ e("span", { className: "flex shrink-0 items-center", children: r })
|
|
444
|
-
]
|
|
445
|
-
}
|
|
446
|
-
);
|
|
447
|
-
});
|
|
448
|
-
pe.displayName = "SidebarSecondarySectionLabel";
|
|
449
|
-
const me = n.forwardRef(({ className: t, ...r }, s) => {
|
|
450
|
-
const { expandable: l } = n.useContext(H), i = /* @__PURE__ */ e(
|
|
451
|
-
"ul",
|
|
452
|
-
{
|
|
453
|
-
ref: s,
|
|
454
|
-
className: b(
|
|
455
|
-
"flex flex-col gap-[var(--ui-sidebar-secondary-section-menu-item-list-gap)]",
|
|
456
|
-
t
|
|
457
|
-
),
|
|
458
|
-
...r
|
|
459
|
-
}
|
|
460
|
-
);
|
|
461
|
-
return l ? /* @__PURE__ */ e(X.Panel, { children: i }) : i;
|
|
462
|
-
});
|
|
463
|
-
me.displayName = "SidebarSecondaryMenu";
|
|
464
|
-
const fe = "group/row flex w-full items-start gap-[var(--ui-sidebar-secondary-menu-item-global-container-gap)] min-h-[var(--ui-sidebar-secondary-menu-item-global-container-height-min)] px-[var(--ui-sidebar-secondary-menu-item-global-container-padding-x)] py-[var(--ui-sidebar-secondary-menu-item-global-container-padding-y)] no-underline ui-sidebar-secondary-menu-item-global-label-text-style transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ui-focus-brand)] focus-visible:ring-inset text-[var(--ui-sidebar-secondary-menu-item-global-label-color-color)] [&_svg]:shrink-0 [&_svg]:size-[var(--ui-sidebar-secondary-menu-item-global-icon-size)] [&_svg]:text-[var(--ui-sidebar-secondary-menu-item-global-icon-color-color)]", re = te(fe, {
|
|
465
|
-
variants: {
|
|
466
|
-
variant: {
|
|
467
|
-
unselected: "bg-[var(--ui-sidebar-secondary-menu-item-unselected-container-color-idle)] hover:bg-[var(--ui-sidebar-secondary-menu-item-unselected-container-color-hover)] active:bg-[var(--ui-sidebar-secondary-menu-item-unselected-container-color-active)]",
|
|
468
|
-
selected: "bg-[var(--ui-sidebar-secondary-menu-item-selected-container-color-idle)] hover:bg-[var(--ui-sidebar-secondary-menu-item-selected-container-color-hover)] active:bg-[var(--ui-sidebar-secondary-menu-item-selected-container-color-active)]"
|
|
469
|
-
}
|
|
470
|
-
},
|
|
471
|
-
defaultVariants: {
|
|
472
|
-
variant: "unselected"
|
|
473
|
-
}
|
|
474
|
-
}), ve = n.forwardRef(
|
|
475
|
-
({ className: t, selected: r = !1, icon: s, extras: l, render: i, children: a, ...o }, u) => {
|
|
476
|
-
const { expanded: d, setSelectedLabel: c } = I(), { expandable: v } = n.useContext(H), m = n.useRef(null), S = K(m, { enabled: d });
|
|
477
|
-
n.useEffect(() => {
|
|
478
|
-
r && c(a);
|
|
479
|
-
}, [r, a, c]);
|
|
480
|
-
const E = q({
|
|
481
|
-
render: i,
|
|
482
|
-
ref: u,
|
|
483
|
-
defaultTagName: "a",
|
|
484
|
-
props: j(
|
|
485
|
-
{
|
|
486
|
-
className: b(
|
|
487
|
-
re({
|
|
488
|
-
variant: r ? "selected" : "unselected"
|
|
489
|
-
}),
|
|
490
|
-
// Inside an expandable section, increase start padding so the
|
|
491
|
-
// label aligns with the section header text (after chevron + gap)
|
|
492
|
-
// while keeping the container full-width for hover/active fills.
|
|
493
|
-
v && "ps-[calc(var(--ui-sidebar-secondary-menu-item-global-container-padding-x)+var(--ui-sidebar-secondary-section-container-header-gap)+16px)]",
|
|
494
|
-
t
|
|
495
|
-
),
|
|
496
|
-
"aria-current": r ? "page" : void 0,
|
|
497
|
-
children: /* @__PURE__ */ f(_, { children: [
|
|
498
|
-
s != null && /* @__PURE__ */ e("span", { className: "flex shrink-0 items-center self-start mt-[var(--ui-sidebar-secondary-menu-item-global-icon-margin-t)]", children: s }),
|
|
499
|
-
/* @__PURE__ */ f(P, { disabled: !S, children: [
|
|
500
|
-
/* @__PURE__ */ e(
|
|
501
|
-
A,
|
|
502
|
-
{
|
|
503
|
-
render: /* @__PURE__ */ e(
|
|
504
|
-
"span",
|
|
505
|
-
{
|
|
506
|
-
ref: m,
|
|
507
|
-
className: b(
|
|
508
|
-
"flex-1 min-w-[60px] truncate text-start",
|
|
509
|
-
!d && "sr-only"
|
|
510
|
-
)
|
|
511
|
-
}
|
|
512
|
-
),
|
|
513
|
-
children: a
|
|
514
|
-
}
|
|
515
|
-
),
|
|
516
|
-
/* @__PURE__ */ e(M, { children: a })
|
|
517
|
-
] }),
|
|
518
|
-
l
|
|
519
|
-
] })
|
|
520
|
-
},
|
|
521
|
-
o
|
|
522
|
-
)
|
|
523
|
-
});
|
|
524
|
-
return /* @__PURE__ */ e("li", { className: "contents", children: E });
|
|
525
|
-
}
|
|
526
|
-
);
|
|
527
|
-
ve.displayName = "SidebarSecondaryMenuItem";
|
|
528
|
-
const he = n.forwardRef(({ className: t, variant: r, shortcut: s, tag: l, children: i, ...a }, o) => {
|
|
529
|
-
const { expanded: u } = I(), d = r === "tag" || r === "tag-externalLink", c = r === "externalLink" || r === "tag-externalLink", v = r === "shortcut";
|
|
530
|
-
return /* @__PURE__ */ f(
|
|
531
|
-
"span",
|
|
532
|
-
{
|
|
533
|
-
ref: o,
|
|
534
|
-
className: b(
|
|
535
|
-
"inline-flex items-center shrink-0 min-h-6 overflow-clip gap-[var(--ui-sidebar-secondary-menu-item-extras-global-container-gap)]",
|
|
536
|
-
!u && "hidden",
|
|
537
|
-
t
|
|
538
|
-
),
|
|
539
|
-
...a,
|
|
540
|
-
children: [
|
|
541
|
-
d && (l ?? i),
|
|
542
|
-
v && /* @__PURE__ */ e("span", { className: "ui-sidebar-secondary-menu-item-extras-global-shortcut-text-style text-[var(--ui-sidebar-secondary-menu-item-extras-global-shortcut-color)]", children: s ?? i }),
|
|
543
|
-
c && /* @__PURE__ */ e(
|
|
544
|
-
ae,
|
|
545
|
-
{
|
|
546
|
-
size: 16,
|
|
547
|
-
className: "text-[var(--ui-sidebar-secondary-menu-item-extras-global-external-icon-color)] size-[var(--ui-sidebar-secondary-menu-item-extras-global-external-icon-size)]"
|
|
548
|
-
}
|
|
549
|
-
)
|
|
550
|
-
]
|
|
551
|
-
}
|
|
552
|
-
);
|
|
553
|
-
});
|
|
554
|
-
he.displayName = "SidebarSecondaryMenuItemExtras";
|
|
555
|
-
const ge = n.forwardRef(
|
|
556
|
-
({
|
|
557
|
-
className: t,
|
|
558
|
-
icon: r,
|
|
559
|
-
expandIcon: s,
|
|
560
|
-
expandTooltip: l = "Expand",
|
|
561
|
-
extras: i,
|
|
562
|
-
children: a,
|
|
563
|
-
onClick: o,
|
|
564
|
-
...u
|
|
565
|
-
}, d) => {
|
|
566
|
-
const { expanded: c, toggleExpanded: v } = I(), m = J(), S = n.useRef(null), E = K(S, { enabled: c }), L = c ? r : s ?? r, g = /* @__PURE__ */ f(
|
|
567
|
-
"button",
|
|
568
|
-
{
|
|
569
|
-
ref: d,
|
|
570
|
-
type: "button",
|
|
571
|
-
"aria-expanded": c,
|
|
572
|
-
className: b(
|
|
573
|
-
re({ variant: "unselected" }),
|
|
574
|
-
"text-start",
|
|
575
|
-
t
|
|
576
|
-
),
|
|
577
|
-
onClick: (k) => {
|
|
578
|
-
o == null || o(k), k.defaultPrevented || v();
|
|
579
|
-
},
|
|
580
|
-
...u,
|
|
581
|
-
children: [
|
|
582
|
-
L != null && /* @__PURE__ */ e("span", { className: "flex shrink-0 items-center self-start mt-[var(--ui-sidebar-secondary-menu-item-global-icon-margin-t)] rtl:-scale-x-100", children: L }),
|
|
583
|
-
/* @__PURE__ */ f(P, { disabled: !E, children: [
|
|
584
|
-
/* @__PURE__ */ e(
|
|
585
|
-
A,
|
|
586
|
-
{
|
|
587
|
-
render: /* @__PURE__ */ e(
|
|
588
|
-
"span",
|
|
589
|
-
{
|
|
590
|
-
ref: S,
|
|
591
|
-
className: b("flex-1 min-w-[60px] truncate", !c && "sr-only")
|
|
592
|
-
}
|
|
593
|
-
),
|
|
594
|
-
children: a
|
|
595
|
-
}
|
|
596
|
-
),
|
|
597
|
-
/* @__PURE__ */ e(M, { children: a })
|
|
598
|
-
] }),
|
|
599
|
-
i
|
|
600
|
-
]
|
|
601
|
-
}
|
|
602
|
-
);
|
|
603
|
-
return /* @__PURE__ */ e("li", { className: "contents", children: c ? g : /* @__PURE__ */ f(P, { children: [
|
|
604
|
-
/* @__PURE__ */ e(A, { render: g }),
|
|
605
|
-
/* @__PURE__ */ e(M, { side: m === "rtl" ? "left" : "right", children: l })
|
|
606
|
-
] }) });
|
|
607
|
-
}
|
|
608
|
-
);
|
|
609
|
-
ge.displayName = "SidebarSecondaryCollapseTrigger";
|
|
610
|
-
export {
|
|
611
|
-
se as SidebarSecondary,
|
|
612
|
-
ge as SidebarSecondaryCollapseTrigger,
|
|
613
|
-
ee as SidebarSecondaryCollapsedBreadcrumb,
|
|
614
|
-
le as SidebarSecondaryContent,
|
|
615
|
-
de as SidebarSecondaryFooter,
|
|
616
|
-
oe as SidebarSecondaryHeader,
|
|
617
|
-
me as SidebarSecondaryMenu,
|
|
618
|
-
ve as SidebarSecondaryMenuItem,
|
|
619
|
-
he as SidebarSecondaryMenuItemExtras,
|
|
620
|
-
be as SidebarSecondarySection,
|
|
621
|
-
pe as SidebarSecondarySectionLabel,
|
|
622
|
-
re as sidebarSecondaryMenuItemVariants
|
|
623
|
-
};
|
|
624
|
-
//# sourceMappingURL=sidebar-secondary.js.map
|