@cryptlex/web-components 3.8.1 → 4.1.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/dist/components/data-table/data-table-filter.es.js +178 -0
- package/dist/components/data-table/data-table-filter.es.js.map +1 -0
- package/dist/components/data-table/data-table.es.js +402 -153
- package/dist/components/data-table/data-table.es.js.map +1 -1
- package/dist/components/data-table/table-commons.es.js +267 -19
- package/dist/components/data-table/table-commons.es.js.map +1 -1
- package/dist/components/inputs/calendar.es.js +12 -12
- package/dist/components/inputs/calendar.es.js.map +1 -1
- package/dist/components/inputs/checkbox.es.js +13 -13
- package/dist/components/inputs/checkbox.es.js.map +1 -1
- package/dist/components/inputs/country-select.es.js +3 -3
- package/dist/components/inputs/country-select.es.js.map +1 -1
- package/dist/components/inputs/form-field.es.js +1 -1
- package/dist/components/inputs/input-otp.es.js +2 -2
- package/dist/components/inputs/input-otp.es.js.map +1 -1
- package/dist/components/inputs/input.es.js +7 -7
- package/dist/components/inputs/input.es.js.map +1 -1
- package/dist/components/inputs/multi-select.es.js +7 -7
- package/dist/components/inputs/multi-select.es.js.map +1 -1
- package/dist/components/inputs/radio-group.es.js +1 -1
- package/dist/components/inputs/search-input.es.js.map +1 -1
- package/dist/components/inputs/select.es.js +10 -10
- package/dist/components/inputs/select.es.js.map +1 -1
- package/dist/components/inputs/textarea.es.js +4 -4
- package/dist/components/key-value-card/key-value-card.es.js +6 -9
- package/dist/components/key-value-card/key-value-card.es.js.map +1 -1
- package/dist/components/ui/accordion.es.js +6 -6
- package/dist/components/ui/accordion.es.js.map +1 -1
- package/dist/components/ui/alert.es.js +4 -4
- package/dist/components/ui/avatar.es.js +1 -1
- package/dist/components/ui/badge.es.js +1 -1
- package/dist/components/ui/breadcrumb.es.js +2 -2
- package/dist/components/ui/breadcrumb.es.js.map +1 -1
- package/dist/components/ui/button.es.js +27 -25
- package/dist/components/ui/button.es.js.map +1 -1
- package/dist/components/ui/card.es.js +8 -8
- package/dist/components/ui/card.es.js.map +1 -1
- package/dist/components/ui/copy-button.es.js +12 -14
- package/dist/components/ui/copy-button.es.js.map +1 -1
- package/dist/components/ui/dialog.es.js +4 -4
- package/dist/components/ui/dialog.es.js.map +1 -1
- package/dist/components/ui/drawer.es.js +10 -10
- package/dist/components/ui/drawer.es.js.map +1 -1
- package/dist/components/ui/dropdown-menu.es.js +13 -13
- package/dist/components/ui/dropdown-menu.es.js.map +1 -1
- package/dist/components/ui/label.es.js +1 -1
- package/dist/components/ui/loader.es.js +3 -3
- package/dist/components/ui/pagination.es.js +2 -2
- package/dist/components/ui/pagination.es.js.map +1 -1
- package/dist/components/ui/popover.es.js +5 -5
- package/dist/components/ui/popover.es.js.map +1 -1
- package/dist/components/ui/separator.es.js +1 -1
- package/dist/components/ui/sheet.es.js +59 -55
- package/dist/components/ui/sheet.es.js.map +1 -1
- package/dist/components/ui/sidebar.es.js +105 -105
- package/dist/components/ui/sidebar.es.js.map +1 -1
- package/dist/components/ui/skeleton.es.js +1 -1
- package/dist/components/ui/static-data-table.es.js +1 -1
- package/dist/components/ui/static-data-table.es.js.map +1 -1
- package/dist/components/ui/table.es.js +8 -8
- package/dist/components/ui/table.es.js.map +1 -1
- package/dist/components/ui/tabs.es.js +1 -1
- package/dist/components/ui/tabs.es.js.map +1 -1
- package/dist/components/ui/timeline.es.js +3 -3
- package/dist/components/ui/timeline.es.js.map +1 -1
- package/dist/components/ui/tooltip.es.js +1 -1
- package/dist/index.es.d.ts +128 -32
- package/dist/index.es.js +237 -238
- package/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@date-fns_tz@1.2.0/node_modules/@date-fns/tz/date/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@date-fns_tz@1.2.0/node_modules/@date-fns/tz/date/mini.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@date-fns_tz@1.2.0/node_modules/@date-fns/tz/tzOffset/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.2/node_modules/@floating-ui/core/dist/floating-ui.core.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.2/node_modules/@floating-ui/dom/dist/floating-ui.dom.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.4_react-dom@19.1.0_react@19.1.0/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.2/node_modules/@radix-ui/primitive/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-accordion@1.2.11_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-accordion/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-collapsible@1.1.11_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-collapsible/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-collection@1.1.7_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-collection/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.2_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1.2_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-context/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-dialog@1.1.14_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-dialog/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.10_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-dropdown-menu@2.1.15_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-dropdown-menu/dist/index.es.js +10 -10
- package/dist/node_modules/.pnpm/@radix-ui_react-dropdown-menu@2.1.15_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-dropdown-menu/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.2_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-focus-guards/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.7_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-focus-scope/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.1_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-id/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-label@2.1.7_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-label/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.1.15_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-menu/dist/index.es.js +4 -4
- package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.1.15_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-menu/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-popover@1.1.14_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-popover/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.2.7_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-popper/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-presence@1.1.4_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-presence/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.3_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-radio-group@1.3.7_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-radio-group/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-roving-focus@1.1.10_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-roving-focus/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.2.3_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-slot/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-tabs@1.1.12_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-tabs/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-tooltip@1.2.7_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-tooltip/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.1_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.2.2_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.1.1_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1.1.1_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-use-size/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.es.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.es.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchFn.es.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/DayPicker.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/classes/CalendarDay.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/classes/DateLib.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/DayButton.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/Nav.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getDates.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getDays.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getMonths.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/selection/useMulti.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/selection/useRange.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/selection/useSingle.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/useAnimation.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/useCalendar.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/useFocus.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/utils/addToRange.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.1.0_react@19.1.0/node_modules/react-remove-scroll-bar/dist/es2015/component.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.1.0_react@19.1.0/node_modules/react-remove-scroll-bar/dist/es2015/utils.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.1.0_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/Combination.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.1.0_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.1.0_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.1.0_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.1.0_react@19.1.0/node_modules/react-style-singleton/dist/es2015/component.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.1.0_react@19.1.0/node_modules/react-style-singleton/dist/es2015/hook.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.1.0_react@19.1.0/node_modules/react-style-singleton/dist/es2015/singleton.es.js.map +1 -1
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.es.js.map +1 -1
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.1.0_react@19.1.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.es.js.map +1 -1
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.1.0_react@19.1.0/node_modules/use-callback-ref/dist/es2015/useRef.es.js.map +1 -1
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.1.0_react@19.1.0/node_modules/use-sidecar/dist/es2015/medium.es.js.map +1 -1
- package/dist/utils/{index.es.js → primitives.es.js} +1 -1
- package/dist/utils/primitives.es.js.map +1 -0
- package/dist/{hooks → utils}/use-mobile.es.js.map +1 -1
- package/lib/theme.css +10 -12
- package/lib/tokens.css +3 -3
- package/lib/utilities.css +8 -8
- package/package.json +9 -11
- package/dist/components/data-table/column-picker.es.js +0 -50
- package/dist/components/data-table/column-picker.es.js.map +0 -1
- package/dist/components/data-table/page-size.es.js +0 -25
- package/dist/components/data-table/page-size.es.js.map +0 -1
- package/dist/components/data-table/paginator.es.js +0 -64
- package/dist/components/data-table/paginator.es.js.map +0 -1
- package/dist/components/data-table/table-actions.es.js +0 -26
- package/dist/components/data-table/table-actions.es.js.map +0 -1
- package/dist/components/data-table/table-content.es.js +0 -65
- package/dist/components/data-table/table-content.es.js.map +0 -1
- package/dist/components/data-table/table-utils/constants.es.js +0 -288
- package/dist/components/data-table/table-utils/constants.es.js.map +0 -1
- package/dist/components/data-table/table-utils/createTableFetchFn.es.js +0 -25
- package/dist/components/data-table/table-utils/createTableFetchFn.es.js.map +0 -1
- package/dist/components/data-table/table-utils/date.es.js +0 -12
- package/dist/components/data-table/table-utils/date.es.js.map +0 -1
- package/dist/components/data-table/table-utils/string.es.js +0 -19
- package/dist/components/data-table/table-utils/string.es.js.map +0 -1
- package/dist/components/data-table/table-utils/types.es.js +0 -5
- package/dist/components/data-table/table-utils/types.es.js.map +0 -1
- package/dist/utils/index.es.js.map +0 -1
- /package/dist/{hooks → utils}/use-mobile.es.js +0 -0
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as a, jsxs as p } from "react/jsx-runtime";
|
|
3
3
|
import { Root as h } from "../../node_modules/.pnpm/@radix-ui_react-slot@1.2.3_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-slot/dist/index.es.js";
|
|
4
|
-
import { PanelLeft as
|
|
4
|
+
import { PanelLeft as z } from "lucide-react";
|
|
5
5
|
import * as d from "react";
|
|
6
6
|
import { Button as T } from "./button.es.js";
|
|
7
7
|
import { Sheet as I, SheetContent as D, SheetHeader as B, SheetTitle as R, SheetDescription as E } from "./sheet.es.js";
|
|
8
8
|
import { Skeleton as N } from "./skeleton.es.js";
|
|
9
9
|
import { TooltipProvider as O, Tooltip as A, TooltipTrigger as H, TooltipContent as j } from "./tooltip.es.js";
|
|
10
|
-
import { useIsMobile as L } from "../../
|
|
11
|
-
import { cn as i } from "../../utils/
|
|
10
|
+
import { useIsMobile as L } from "../../utils/use-mobile.es.js";
|
|
11
|
+
import { cn as i } from "../../utils/primitives.es.js";
|
|
12
12
|
const G = "16rem", K = "18rem", P = "3rem", W = "b", y = d.createContext(null);
|
|
13
13
|
function w() {
|
|
14
|
-
const
|
|
15
|
-
if (!
|
|
14
|
+
const t = d.useContext(y);
|
|
15
|
+
if (!t)
|
|
16
16
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
17
|
-
return
|
|
17
|
+
return t;
|
|
18
18
|
}
|
|
19
19
|
function ee({
|
|
20
|
-
defaultOpen:
|
|
20
|
+
defaultOpen: t = !0,
|
|
21
21
|
open: e,
|
|
22
22
|
onOpenChange: r,
|
|
23
23
|
className: n,
|
|
@@ -25,10 +25,10 @@ function ee({
|
|
|
25
25
|
children: u,
|
|
26
26
|
...m
|
|
27
27
|
}) {
|
|
28
|
-
const l = L(), [c, f] = d.useState(!1), [
|
|
28
|
+
const l = L(), [c, f] = d.useState(!1), [C, M] = d.useState(t), g = e ?? C, x = d.useCallback(
|
|
29
29
|
(s) => {
|
|
30
30
|
const b = typeof s == "function" ? s(g) : s;
|
|
31
|
-
r ? r(b) :
|
|
31
|
+
r ? r(b) : M(b);
|
|
32
32
|
},
|
|
33
33
|
[r, g]
|
|
34
34
|
), v = d.useCallback(() => l ? f((s) => !s) : x((s) => !s), [l, x, f]);
|
|
@@ -38,7 +38,7 @@ function ee({
|
|
|
38
38
|
};
|
|
39
39
|
return window.addEventListener("keydown", s), () => window.removeEventListener("keydown", s);
|
|
40
40
|
}, [v]);
|
|
41
|
-
const S = g ? "expanded" : "collapsed",
|
|
41
|
+
const S = g ? "expanded" : "collapsed", _ = d.useMemo(
|
|
42
42
|
() => ({
|
|
43
43
|
state: S,
|
|
44
44
|
open: g,
|
|
@@ -50,7 +50,7 @@ function ee({
|
|
|
50
50
|
}),
|
|
51
51
|
[S, g, x, l, c, f, v]
|
|
52
52
|
);
|
|
53
|
-
return /* @__PURE__ */
|
|
53
|
+
return /* @__PURE__ */ a(y.Provider, { value: _, children: /* @__PURE__ */ a(O, { delayDuration: 0, children: /* @__PURE__ */ a(
|
|
54
54
|
"div",
|
|
55
55
|
{
|
|
56
56
|
style: {
|
|
@@ -59,7 +59,7 @@ function ee({
|
|
|
59
59
|
...o
|
|
60
60
|
},
|
|
61
61
|
className: i(
|
|
62
|
-
"group/sidebar-wrapper flex w-full has-[[data-variant=inset]]:bg-sidebar",
|
|
62
|
+
"group/sidebar-wrapper flex w-full has-[[data-variant=inset]]:bg-sidebar-background",
|
|
63
63
|
n
|
|
64
64
|
),
|
|
65
65
|
...m,
|
|
@@ -67,8 +67,8 @@ function ee({
|
|
|
67
67
|
}
|
|
68
68
|
) }) });
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
side:
|
|
70
|
+
function te({
|
|
71
|
+
side: t = "left",
|
|
72
72
|
variant: e = "sidebar",
|
|
73
73
|
collapsible: r = "offcanvas",
|
|
74
74
|
className: n,
|
|
@@ -76,32 +76,32 @@ function ae({
|
|
|
76
76
|
...u
|
|
77
77
|
}) {
|
|
78
78
|
const { isMobile: m, state: l, openMobile: c, setOpenMobile: f } = w();
|
|
79
|
-
return r === "none" ? /* @__PURE__ */
|
|
79
|
+
return r === "none" ? /* @__PURE__ */ a(
|
|
80
80
|
"div",
|
|
81
81
|
{
|
|
82
82
|
className: i(
|
|
83
|
-
"flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",
|
|
83
|
+
"flex h-full w-[--sidebar-width] flex-col bg-sidebar-background text-sidebar-foreground",
|
|
84
84
|
n
|
|
85
85
|
),
|
|
86
86
|
...u,
|
|
87
87
|
children: o
|
|
88
88
|
}
|
|
89
|
-
) : m ? /* @__PURE__ */
|
|
89
|
+
) : m ? /* @__PURE__ */ a(I, { open: c, onOpenChange: f, ...u, children: /* @__PURE__ */ p(
|
|
90
90
|
D,
|
|
91
91
|
{
|
|
92
92
|
"data-sidebar": "sidebar",
|
|
93
93
|
"data-mobile": "true",
|
|
94
|
-
className: "w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",
|
|
94
|
+
className: "w-[--sidebar-width] bg-sidebar-background p-0 text-sidebar-foreground [&>button]:hidden",
|
|
95
95
|
style: {
|
|
96
96
|
"--sidebar-width": K
|
|
97
97
|
},
|
|
98
|
-
side:
|
|
98
|
+
side: t,
|
|
99
99
|
children: [
|
|
100
100
|
/* @__PURE__ */ p(B, { className: "sr-only", children: [
|
|
101
|
-
/* @__PURE__ */
|
|
102
|
-
/* @__PURE__ */
|
|
101
|
+
/* @__PURE__ */ a(R, { children: "Sidebar" }),
|
|
102
|
+
/* @__PURE__ */ a(E, { children: "Displays the mobile sidebar." })
|
|
103
103
|
] }),
|
|
104
|
-
/* @__PURE__ */
|
|
104
|
+
/* @__PURE__ */ a("div", { className: "flex h-full w-full flex-col", children: o })
|
|
105
105
|
]
|
|
106
106
|
}
|
|
107
107
|
) }) : /* @__PURE__ */ p(
|
|
@@ -111,35 +111,35 @@ function ae({
|
|
|
111
111
|
"data-state": l,
|
|
112
112
|
"data-collapsible": l === "collapsed" ? r : "",
|
|
113
113
|
"data-variant": e,
|
|
114
|
-
"data-side":
|
|
114
|
+
"data-side": t,
|
|
115
115
|
children: [
|
|
116
|
-
/* @__PURE__ */
|
|
116
|
+
/* @__PURE__ */ a(
|
|
117
117
|
"div",
|
|
118
118
|
{
|
|
119
119
|
className: i(
|
|
120
|
-
"relative w-(--sidebar-width) bg-sidebar transition-[width] duration-200 ease-linear",
|
|
120
|
+
"relative w-(--sidebar-width) bg-sidebar-background transition-[width] duration-200 ease-linear",
|
|
121
121
|
"group-data-[collapsible=offcanvas]:w-0",
|
|
122
122
|
"group-data-[side=right]:rotate-180",
|
|
123
123
|
e === "floating" || e === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]" : "group-data-[collapsible=icon]:w-[--sidebar-width-icon]"
|
|
124
124
|
)
|
|
125
125
|
}
|
|
126
126
|
),
|
|
127
|
-
/* @__PURE__ */
|
|
127
|
+
/* @__PURE__ */ a(
|
|
128
128
|
"div",
|
|
129
129
|
{
|
|
130
130
|
className: i(
|
|
131
131
|
"absolute z-10 hidden w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
|
|
132
|
-
|
|
132
|
+
t === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
|
|
133
133
|
// Adjust the padding for floating and inset variants.
|
|
134
134
|
e === "floating" || e === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]" : "group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",
|
|
135
135
|
n
|
|
136
136
|
),
|
|
137
137
|
...u,
|
|
138
|
-
children: /* @__PURE__ */
|
|
138
|
+
children: /* @__PURE__ */ a(
|
|
139
139
|
"div",
|
|
140
140
|
{
|
|
141
141
|
"data-sidebar": "sidebar",
|
|
142
|
-
className: "flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",
|
|
142
|
+
className: "flex h-full w-full flex-col bg-sidebar-background group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",
|
|
143
143
|
children: o
|
|
144
144
|
}
|
|
145
145
|
)
|
|
@@ -149,7 +149,7 @@ function ae({
|
|
|
149
149
|
}
|
|
150
150
|
);
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function ae({ className: t, onClick: e, ...r }) {
|
|
153
153
|
const { toggleSidebar: n } = w();
|
|
154
154
|
return /* @__PURE__ */ p(
|
|
155
155
|
T,
|
|
@@ -162,15 +162,15 @@ function te({ className: a, onClick: e, ...r }) {
|
|
|
162
162
|
},
|
|
163
163
|
...r,
|
|
164
164
|
children: [
|
|
165
|
-
/* @__PURE__ */
|
|
166
|
-
/* @__PURE__ */
|
|
165
|
+
/* @__PURE__ */ a(z, {}),
|
|
166
|
+
/* @__PURE__ */ a("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
167
167
|
]
|
|
168
168
|
}
|
|
169
169
|
);
|
|
170
170
|
}
|
|
171
|
-
const q = d.forwardRef(({ className:
|
|
171
|
+
const q = d.forwardRef(({ className: t, ...e }, r) => {
|
|
172
172
|
const { toggleSidebar: n } = w();
|
|
173
|
-
return /* @__PURE__ */
|
|
173
|
+
return /* @__PURE__ */ a(
|
|
174
174
|
"button",
|
|
175
175
|
{
|
|
176
176
|
ref: r,
|
|
@@ -180,193 +180,193 @@ const q = d.forwardRef(({ className: a, ...e }, r) => {
|
|
|
180
180
|
onClick: n,
|
|
181
181
|
title: "Toggle Sidebar",
|
|
182
182
|
className: i(
|
|
183
|
-
"absolute inset-y-0 z-20 hidden w-
|
|
183
|
+
"absolute inset-y-0 z-20 hidden w-icon -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-icon group-data-[side=right]:left-0 sm:flex",
|
|
184
184
|
"[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize",
|
|
185
185
|
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
|
|
186
|
-
"group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar",
|
|
186
|
+
"group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar-background",
|
|
187
187
|
"[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",
|
|
188
188
|
"[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",
|
|
189
|
-
|
|
189
|
+
t
|
|
190
190
|
),
|
|
191
191
|
...e
|
|
192
192
|
}
|
|
193
193
|
);
|
|
194
194
|
});
|
|
195
195
|
q.displayName = "SidebarRail";
|
|
196
|
-
function re({ className:
|
|
197
|
-
return /* @__PURE__ */
|
|
196
|
+
function re({ className: t, ...e }) {
|
|
197
|
+
return /* @__PURE__ */ a(
|
|
198
198
|
"main",
|
|
199
199
|
{
|
|
200
200
|
className: i(
|
|
201
201
|
"relative flex w-full flex-1 flex-col bg-background",
|
|
202
202
|
"md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",
|
|
203
|
-
|
|
203
|
+
t
|
|
204
204
|
),
|
|
205
205
|
...e
|
|
206
206
|
}
|
|
207
207
|
);
|
|
208
208
|
}
|
|
209
|
-
function ie({ className:
|
|
210
|
-
return /* @__PURE__ */
|
|
209
|
+
function ie({ className: t, ...e }) {
|
|
210
|
+
return /* @__PURE__ */ a(
|
|
211
211
|
"div",
|
|
212
212
|
{
|
|
213
213
|
"data-sidebar": "header",
|
|
214
|
-
className: i("flex flex-col gap-2 p-2",
|
|
214
|
+
className: i("flex flex-col gap-2 p-2", t),
|
|
215
215
|
...e
|
|
216
216
|
}
|
|
217
217
|
);
|
|
218
218
|
}
|
|
219
|
-
function ne({ className:
|
|
220
|
-
return /* @__PURE__ */
|
|
219
|
+
function ne({ className: t, ...e }) {
|
|
220
|
+
return /* @__PURE__ */ a(
|
|
221
221
|
"div",
|
|
222
222
|
{
|
|
223
223
|
"data-sidebar": "footer",
|
|
224
|
-
className: i("flex flex-col gap-2 p-2",
|
|
224
|
+
className: i("flex flex-col gap-2 p-2", t),
|
|
225
225
|
...e
|
|
226
226
|
}
|
|
227
227
|
);
|
|
228
228
|
}
|
|
229
|
-
function oe({ className:
|
|
230
|
-
return /* @__PURE__ */
|
|
229
|
+
function oe({ className: t, ...e }) {
|
|
230
|
+
return /* @__PURE__ */ a(
|
|
231
231
|
"div",
|
|
232
232
|
{
|
|
233
233
|
"data-sidebar": "content",
|
|
234
234
|
className: i(
|
|
235
235
|
"flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
|
|
236
|
-
|
|
236
|
+
t
|
|
237
237
|
),
|
|
238
238
|
...e
|
|
239
239
|
}
|
|
240
240
|
);
|
|
241
241
|
}
|
|
242
|
-
function se({ className:
|
|
243
|
-
return /* @__PURE__ */
|
|
242
|
+
function se({ className: t, ...e }) {
|
|
243
|
+
return /* @__PURE__ */ a(
|
|
244
244
|
"div",
|
|
245
245
|
{
|
|
246
246
|
"data-sidebar": "group",
|
|
247
|
-
className: i("relative flex w-full min-w-0 flex-col p-2",
|
|
247
|
+
className: i("relative flex w-full min-w-0 flex-col p-2", t),
|
|
248
248
|
...e
|
|
249
249
|
}
|
|
250
250
|
);
|
|
251
251
|
}
|
|
252
|
-
function de({ className:
|
|
253
|
-
return /* @__PURE__ */
|
|
252
|
+
function de({ className: t, asChild: e = !1, ...r }) {
|
|
253
|
+
return /* @__PURE__ */ a(
|
|
254
254
|
e ? h : "div",
|
|
255
255
|
{
|
|
256
256
|
"data-sidebar": "group-label",
|
|
257
257
|
className: i(
|
|
258
|
-
"flex h-
|
|
259
|
-
"group-data-[collapsible=icon]:-mt-
|
|
260
|
-
|
|
258
|
+
"flex h-input shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-icon [&>svg]:shrink-0",
|
|
259
|
+
"group-data-[collapsible=icon]:-mt-input group-data-[collapsible=icon]:opacity-0",
|
|
260
|
+
t
|
|
261
261
|
),
|
|
262
262
|
...r
|
|
263
263
|
}
|
|
264
264
|
);
|
|
265
265
|
}
|
|
266
|
-
function le({ className:
|
|
267
|
-
return /* @__PURE__ */
|
|
266
|
+
function le({ className: t, asChild: e = !1, ...r }) {
|
|
267
|
+
return /* @__PURE__ */ a(
|
|
268
268
|
e ? h : "button",
|
|
269
269
|
{
|
|
270
270
|
"data-sidebar": "group-action",
|
|
271
271
|
className: i(
|
|
272
|
-
"absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-
|
|
272
|
+
"absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 [&>svg]:size-icon [&>svg]:shrink-0",
|
|
273
273
|
// Increases the hit area of the button on mobile.
|
|
274
274
|
"after:absolute after:-inset-2 after:md:hidden",
|
|
275
275
|
"group-data-[collapsible=icon]:hidden",
|
|
276
|
-
|
|
276
|
+
t
|
|
277
277
|
),
|
|
278
278
|
...r
|
|
279
279
|
}
|
|
280
280
|
);
|
|
281
281
|
}
|
|
282
|
-
function ue({ className:
|
|
283
|
-
return /* @__PURE__ */
|
|
282
|
+
function ue({ className: t, ...e }) {
|
|
283
|
+
return /* @__PURE__ */ a(
|
|
284
284
|
"div",
|
|
285
285
|
{
|
|
286
286
|
"data-sidebar": "group-content",
|
|
287
|
-
className: i("w-full text-sm",
|
|
287
|
+
className: i("w-full text-sm", t),
|
|
288
288
|
...e
|
|
289
289
|
}
|
|
290
290
|
);
|
|
291
291
|
}
|
|
292
|
-
function ce({ className:
|
|
293
|
-
return /* @__PURE__ */
|
|
292
|
+
function ce({ className: t, ...e }) {
|
|
293
|
+
return /* @__PURE__ */ a(
|
|
294
294
|
"ul",
|
|
295
295
|
{
|
|
296
296
|
"data-sidebar": "menu",
|
|
297
|
-
className: i("flex w-full min-w-0 flex-col gap-1",
|
|
297
|
+
className: i("flex w-full min-w-0 flex-col gap-1", t),
|
|
298
298
|
...e
|
|
299
299
|
}
|
|
300
300
|
);
|
|
301
301
|
}
|
|
302
|
-
function be({ className:
|
|
303
|
-
return /* @__PURE__ */
|
|
302
|
+
function be({ className: t, ...e }) {
|
|
303
|
+
return /* @__PURE__ */ a(
|
|
304
304
|
"li",
|
|
305
305
|
{
|
|
306
306
|
"data-sidebar": "menu-item",
|
|
307
|
-
className: i("group/menu-item relative list-none",
|
|
307
|
+
className: i("group/menu-item relative list-none", t),
|
|
308
308
|
...e
|
|
309
309
|
}
|
|
310
310
|
);
|
|
311
311
|
}
|
|
312
|
-
function fe({ className:
|
|
313
|
-
return /* @__PURE__ */
|
|
312
|
+
function fe({ className: t, asChild: e = !1, showOnHover: r = !1, ...n }) {
|
|
313
|
+
return /* @__PURE__ */ a(
|
|
314
314
|
e ? h : "button",
|
|
315
315
|
{
|
|
316
316
|
"data-sidebar": "menu-action",
|
|
317
317
|
className: i(
|
|
318
|
-
"absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-
|
|
318
|
+
"absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-accent-foreground [&>svg]:size-icon [&>svg]:shrink-0",
|
|
319
319
|
// Increases the hit area of the button on mobile.
|
|
320
320
|
"after:absolute after:-inset-2 after:md:hidden",
|
|
321
321
|
"peer-data-[size=sm]/menu-button:top-1",
|
|
322
322
|
"peer-data-[size=default]/menu-button:top-1.5",
|
|
323
323
|
"peer-data-[size=lg]/menu-button:top-2.5",
|
|
324
324
|
"group-data-[collapsible=icon]:hidden",
|
|
325
|
-
r && "group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-
|
|
326
|
-
|
|
325
|
+
r && "group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-accent-foreground md:opacity-0",
|
|
326
|
+
t
|
|
327
327
|
),
|
|
328
328
|
...n
|
|
329
329
|
}
|
|
330
330
|
);
|
|
331
331
|
}
|
|
332
|
-
function pe({ className:
|
|
333
|
-
return /* @__PURE__ */
|
|
332
|
+
function pe({ className: t, ...e }) {
|
|
333
|
+
return /* @__PURE__ */ a(
|
|
334
334
|
"div",
|
|
335
335
|
{
|
|
336
336
|
"data-sidebar": "menu-badge",
|
|
337
337
|
className: i(
|
|
338
338
|
"pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground",
|
|
339
|
-
"peer-hover/menu-button:text-
|
|
339
|
+
"peer-hover/menu-button:text-accent-foreground peer-data-[active=true]/menu-button:text-accent-foreground",
|
|
340
340
|
"peer-data-[size=sm]/menu-button:top-1",
|
|
341
341
|
"peer-data-[size=default]/menu-button:top-1.5",
|
|
342
342
|
"peer-data-[size=lg]/menu-button:top-2.5",
|
|
343
343
|
"group-data-[collapsible=icon]:hidden",
|
|
344
|
-
|
|
344
|
+
t
|
|
345
345
|
),
|
|
346
346
|
...e
|
|
347
347
|
}
|
|
348
348
|
);
|
|
349
349
|
}
|
|
350
|
-
function me({ className:
|
|
350
|
+
function me({ className: t, showIcon: e = !1, ...r }) {
|
|
351
351
|
const n = d.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
|
|
352
352
|
return /* @__PURE__ */ p(
|
|
353
353
|
"div",
|
|
354
354
|
{
|
|
355
355
|
"data-sidebar": "menu-skeleton",
|
|
356
|
-
className: i("flex h-
|
|
356
|
+
className: i("flex h-input items-center gap-2 rounded-md px-2", t),
|
|
357
357
|
...r,
|
|
358
358
|
children: [
|
|
359
|
-
e && /* @__PURE__ */
|
|
359
|
+
e && /* @__PURE__ */ a(
|
|
360
360
|
N,
|
|
361
361
|
{
|
|
362
|
-
className: "size-
|
|
362
|
+
className: "size-icon rounded-md",
|
|
363
363
|
"data-sidebar": "menu-skeleton-icon"
|
|
364
364
|
}
|
|
365
365
|
),
|
|
366
|
-
/* @__PURE__ */
|
|
366
|
+
/* @__PURE__ */ a(
|
|
367
367
|
N,
|
|
368
368
|
{
|
|
369
|
-
className: "h-
|
|
369
|
+
className: "h-icon max-w-[--skeleton-width] flex-1",
|
|
370
370
|
"data-sidebar": "menu-skeleton-text",
|
|
371
371
|
style: {
|
|
372
372
|
"--skeleton-width": n
|
|
@@ -377,47 +377,47 @@ function me({ className: a, showIcon: e = !1, ...r }) {
|
|
|
377
377
|
}
|
|
378
378
|
);
|
|
379
379
|
}
|
|
380
|
-
function ge({ className:
|
|
381
|
-
return /* @__PURE__ */
|
|
380
|
+
function ge({ className: t, ...e }) {
|
|
381
|
+
return /* @__PURE__ */ a(
|
|
382
382
|
"ul",
|
|
383
383
|
{
|
|
384
384
|
"data-sidebar": "menu-sub",
|
|
385
385
|
className: i(
|
|
386
386
|
"mx-2 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2",
|
|
387
387
|
"group-data-[collapsible=icon]:hidden",
|
|
388
|
-
|
|
388
|
+
t
|
|
389
389
|
),
|
|
390
390
|
...e
|
|
391
391
|
}
|
|
392
392
|
);
|
|
393
393
|
}
|
|
394
|
-
function he({ className:
|
|
395
|
-
return /* @__PURE__ */
|
|
394
|
+
function he({ className: t, ...e }) {
|
|
395
|
+
return /* @__PURE__ */ a("li", { className: i("list-none ms-0", t), ...e });
|
|
396
396
|
}
|
|
397
|
-
const
|
|
397
|
+
const k = "flex w-full items-center gap-2 truncate p-2 text-sm btn btn-ghost h-input text-accent data-[active=true]:bg-primary/20 data-[active=true]:font-medium data-[active=true]:text-primary [&>span:last-child]:truncate [&>svg]:size-icon [&>svg]:shrink-0";
|
|
398
398
|
function xe({
|
|
399
|
-
asChild:
|
|
399
|
+
asChild: t = !1,
|
|
400
400
|
isActive: e = !1,
|
|
401
401
|
tooltip: r,
|
|
402
402
|
className: n,
|
|
403
403
|
...o
|
|
404
404
|
}) {
|
|
405
|
-
const u =
|
|
405
|
+
const u = t ? h : "button", { isMobile: m, state: l } = w(), c = /* @__PURE__ */ a(
|
|
406
406
|
u,
|
|
407
407
|
{
|
|
408
408
|
"data-sidebar": "menu-button",
|
|
409
409
|
"data-active": e,
|
|
410
410
|
className: i(
|
|
411
|
-
"peer/menu-button group-has-[[data-sidebar=menu-action]]/menu-item:pr-
|
|
412
|
-
|
|
411
|
+
"peer/menu-button group-has-[[data-sidebar=menu-action]]/menu-item:pr-input group-data-[collapsible=icon]:!size-icon group-data-[collapsible=icon]:!p-2 ",
|
|
412
|
+
k,
|
|
413
413
|
n
|
|
414
414
|
),
|
|
415
415
|
...o
|
|
416
416
|
}
|
|
417
417
|
);
|
|
418
418
|
return r ? /* @__PURE__ */ p(A, { children: [
|
|
419
|
-
/* @__PURE__ */
|
|
420
|
-
/* @__PURE__ */
|
|
419
|
+
/* @__PURE__ */ a(H, { asChild: !0, children: c }),
|
|
420
|
+
/* @__PURE__ */ a(
|
|
421
421
|
j,
|
|
422
422
|
{
|
|
423
423
|
side: "right",
|
|
@@ -428,16 +428,16 @@ function xe({
|
|
|
428
428
|
)
|
|
429
429
|
] }) : c;
|
|
430
430
|
}
|
|
431
|
-
function ve({ asChild:
|
|
432
|
-
return /* @__PURE__ */
|
|
433
|
-
|
|
431
|
+
function ve({ asChild: t = !1, isActive: e, className: r, ...n }) {
|
|
432
|
+
return /* @__PURE__ */ a(
|
|
433
|
+
t ? h : "a",
|
|
434
434
|
{
|
|
435
435
|
"data-sidebar": "menu-sub-button",
|
|
436
436
|
"data-active": e,
|
|
437
437
|
className: i(
|
|
438
|
-
"-translate-x-px [&>svg]:text-
|
|
438
|
+
"-translate-x-px [&>svg]:text-accent-foreground",
|
|
439
439
|
"group-data-[collapsible=icon]:hidden",
|
|
440
|
-
|
|
440
|
+
k,
|
|
441
441
|
r
|
|
442
442
|
),
|
|
443
443
|
...n
|
|
@@ -445,7 +445,7 @@ function ve({ asChild: a = !1, isActive: e, className: r, ...n }) {
|
|
|
445
445
|
);
|
|
446
446
|
}
|
|
447
447
|
export {
|
|
448
|
-
|
|
448
|
+
te as Sidebar,
|
|
449
449
|
oe as SidebarContent,
|
|
450
450
|
y as SidebarContext,
|
|
451
451
|
ne as SidebarFooter,
|
|
@@ -466,7 +466,7 @@ export {
|
|
|
466
466
|
he as SidebarMenuSubItem,
|
|
467
467
|
ee as SidebarProvider,
|
|
468
468
|
q as SidebarRail,
|
|
469
|
-
|
|
469
|
+
ae as SidebarTrigger,
|
|
470
470
|
w as useSidebar
|
|
471
471
|
};
|
|
472
472
|
//# sourceMappingURL=sidebar.es.js.map
|