@inspirare/design-system 0.0.21 → 0.0.23
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/ui/accordion.js +44 -0
- package/dist/components/ui/alert-dialog.js +61 -0
- package/dist/{src/components → components}/ui/alert.js +10 -10
- package/dist/components/ui/aspect-ratio.js +6 -0
- package/dist/components/ui/avatar.js +29 -0
- package/dist/{src/components → components}/ui/badge.js +6 -6
- package/dist/components/ui/breadcrumb.js +60 -0
- package/dist/components/ui/button-group.js +38 -0
- package/dist/{src/components → components}/ui/button.js +6 -6
- package/dist/{src/components → components}/ui/calendar.js +16 -16
- package/dist/{src/components → components}/ui/carousel.js +29 -29
- package/dist/{src/components → components}/ui/checkbox.js +10 -10
- package/dist/components/ui/collapsible.js +26 -0
- package/dist/{src/components → components}/ui/combobox.js +10 -10
- package/dist/{src/components → components}/ui/command.js +17 -17
- package/dist/{src/components → components}/ui/context-menu.js +37 -37
- package/dist/{src/components → components}/ui/dialog.js +36 -36
- package/dist/{src/components → components}/ui/dropdown-menu.js +46 -46
- package/dist/{src/components → components}/ui/empty.js +21 -21
- package/dist/{src/components → components}/ui/field.js +27 -27
- package/dist/components/ui/form.js +77 -0
- package/dist/{src/components → components}/ui/hover-card.js +14 -14
- package/dist/{src/components → components}/ui/input-group.js +18 -18
- package/dist/{src/components → components}/ui/input-otp.js +13 -13
- package/dist/components/ui/item.js +116 -0
- package/dist/{src/components → components}/ui/label.js +3 -3
- package/dist/components/ui/menubar.js +105 -0
- package/dist/components/ui/navigation-menu.js +58 -0
- package/dist/{src/components → components}/ui/pagination.js +18 -18
- package/dist/components/ui/popover.js +36 -0
- package/dist/components/ui/progress.js +20 -0
- package/dist/{src/components → components}/ui/radio-group.js +14 -14
- package/dist/{src/components → components}/ui/resizable.js +7 -7
- package/dist/{src/components → components}/ui/select.js +44 -44
- package/dist/{src/components → components}/ui/separator.js +3 -3
- package/dist/{src/components → components}/ui/sheet.js +35 -35
- package/dist/{src/components → components}/ui/sidebar.js +124 -124
- package/dist/{src/components → components}/ui/slider.js +20 -20
- package/dist/{src/components → components}/ui/spinner.js +3 -3
- package/dist/{src/components → components}/ui/switch.js +9 -9
- package/dist/{src/components → components}/ui/tabs.js +19 -19
- package/dist/{src/components → components}/ui/theme-toggle.js +10 -10
- package/dist/components/ui/toggle-group.js +44 -0
- package/dist/{src/components → components}/ui/toggle.js +7 -7
- package/dist/components/ui/tooltip.js +37 -0
- package/package.json +5 -5
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -359
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -328
- package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1._f1bed12861163fa290e602839f1ebdb9/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -212
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -97
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -106
- package/dist/node_modules/.pnpm/@radix-ui_number@1.1.2/node_modules/@radix-ui/number/dist/index.js +0 -6
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.4/node_modules/@radix-ui/primitive/dist/index.js +0 -8
- package/dist/node_modules/.pnpm/@radix-ui_react-accordion@1_90771884ca9639bf31e5f01b1faf83e4/node_modules/@radix-ui/react-accordion/dist/index.js +0 -195
- package/dist/node_modules/.pnpm/@radix-ui_react-alert-dialo_0211f1deb04a7e512244dbbc3e4765ed/node_modules/@radix-ui/react-alert-dialog/dist/index.js +0 -119
- package/dist/node_modules/.pnpm/@radix-ui_react-arrow@1.1.9_b34b7156178de4198a23e93f83c57da5/node_modules/@radix-ui/react-arrow/dist/index.js +0 -20
- package/dist/node_modules/.pnpm/@radix-ui_react-aspect-rati_62430dda2e5090a076c492dea1ecc5d8/node_modules/@radix-ui/react-aspect-ratio/dist/index.js +0 -31
- package/dist/node_modules/.pnpm/@radix-ui_react-avatar@1.1._d460f1c45278b86e7424fb8ae25577de/node_modules/@radix-ui/react-avatar/dist/index.js +0 -73
- package/dist/node_modules/.pnpm/@radix-ui_react-checkbox@1._e21be6412c310c083d6755285c4c1ad9/node_modules/@radix-ui/react-checkbox/dist/index.js +0 -158
- package/dist/node_modules/.pnpm/@radix-ui_react-collapsible_d381d44d4b8a6d58d9dfaae3a0126ca3/node_modules/@radix-ui/react-collapsible/dist/index.js +0 -97
- package/dist/node_modules/.pnpm/@radix-ui_react-collection@_9d7b7379fb7a1e56af9d4a8d107ecba8/node_modules/@radix-ui/react-collection/dist/index.js +0 -62
- package/dist/node_modules/.pnpm/@radix-ui_react-compose-ref_1124f78b370d43bfeceaaa9b791be73d/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -25
- package/dist/node_modules/.pnpm/@radix-ui_react-context-men_f76d1e5eaec57e990fe72d3c41a037df/node_modules/@radix-ui/react-context-menu/dist/index.js +0 -240
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1_796eddd33de3050019fa09b10c68d7ca/node_modules/@radix-ui/react-context/dist/index.js +0 -80
- package/dist/node_modules/.pnpm/@radix-ui_react-dialog@1.1._ef5419b1d5914b6ed85fc377af02cd8c/node_modules/@radix-ui/react-dialog/dist/index.js +0 -225
- package/dist/node_modules/.pnpm/@radix-ui_react-direction@1_2157d1ab8e201288009ff536bb11c468/node_modules/@radix-ui/react-direction/dist/index.js +0 -11
- package/dist/node_modules/.pnpm/@radix-ui_react-dismissable_1202449cfd75d4d3d4e876187986c0d8/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -108
- package/dist/node_modules/.pnpm/@radix-ui_react-dropdown-me_9dd0889a66ea847559fd572aaa20379b/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +0 -225
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-guard_6b3d65e71789b2986a17d5efdb8859bf/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -22
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope_c97f9e7487f0abcea30d185973e4d237/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -146
- package/dist/node_modules/.pnpm/@radix-ui_react-hover-card@_8a3f4d1399bacc84c908e03b45229f87/node_modules/@radix-ui/react-hover-card/dist/index.js +0 -161
- package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.2_@types_react@18.3.31_react@18.3.1/node_modules/@radix-ui/react-id/dist/index.js +0 -12
- package/dist/node_modules/.pnpm/@radix-ui_react-label@2.1.9_386dd2eabe41e70ee233c5790da58dd5/node_modules/@radix-ui/react-label/dist/index.js +0 -16
- package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.1.17_cc73edd868dbfc82392e3731b66f2e59/node_modules/@radix-ui/react-menu/dist/index.js +0 -563
- package/dist/node_modules/.pnpm/@radix-ui_react-menubar@1.1_52e1207bf5981387ca85fb7a6f7b2195/node_modules/@radix-ui/react-menubar/dist/index.js +0 -312
- package/dist/node_modules/.pnpm/@radix-ui_react-navigation-_ce246f1abffb4c1bd00bc4d15b1887f5/node_modules/@radix-ui/react-navigation-menu/dist/index.js +0 -553
- package/dist/node_modules/.pnpm/@radix-ui_react-popover@1.1_0f96f9f03b66af70568af721c965c5cd/node_modules/@radix-ui/react-popover/dist/index.js +0 -199
- package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.3._bd7668c1d3a757f9e8c97f0d7e635b5d/node_modules/@radix-ui/react-popper/dist/index.js +0 -203
- package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1._32b1caf40ac61f8d30d412d28d60b4ca/node_modules/@radix-ui/react-portal/dist/index.js +0 -19
- package/dist/node_modules/.pnpm/@radix-ui_react-presence@1._dc6e30df35507eb8a116c12c3da26e18/node_modules/@radix-ui/react-presence/dist/index.js +0 -85
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2_9b6ae4cdaf3918ddbf0b21069e38e2ef/node_modules/@radix-ui/react-primitive/dist/index.js +0 -41
- package/dist/node_modules/.pnpm/@radix-ui_react-progress@1._4cd7f31ebaa5416f0f0f54265ec22793/node_modules/@radix-ui/react-progress/dist/index.js +0 -71
- package/dist/node_modules/.pnpm/@radix-ui_react-radio-group_385226f717d657e4aea3688d6214f1c0/node_modules/@radix-ui/react-radio-group/dist/index.js +0 -249
- package/dist/node_modules/.pnpm/@radix-ui_react-roving-focu_d783d3abe701a7f2fb2c68867b8f1f65/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -154
- package/dist/node_modules/.pnpm/@radix-ui_react-select@2.3._b9232b5aa23e604443839e7a081b7527/node_modules/@radix-ui/react-select/dist/index.js +0 -727
- package/dist/node_modules/.pnpm/@radix-ui_react-separator@1_f5efb6a4d38fd7cb82808cb6f7a6326a/node_modules/@radix-ui/react-separator/dist/index.js +0 -23
- package/dist/node_modules/.pnpm/@radix-ui_react-slider@1.4._cfb70bb4d45c3eedb16b2d4d4cf80f46/node_modules/@radix-ui/react-slider/dist/index.js +0 -404
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.2.5_@types_react@18.3.31_react@18.3.1/node_modules/@radix-ui/react-slot/dist/index.js +0 -71
- package/dist/node_modules/.pnpm/@radix-ui_react-switch@1.3._d2f9574497ecbe08e0e7c2298fb35dc1/node_modules/@radix-ui/react-switch/dist/index.js +0 -138
- package/dist/node_modules/.pnpm/@radix-ui_react-tabs@1.1.14_769bbb0130198553b196f258bd99ab92/node_modules/@radix-ui/react-tabs/dist/index.js +0 -120
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle-grou_9d4cd233d31c4687b287c174e894620a/node_modules/@radix-ui/react-toggle-group/dist/index.js +0 -125
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle@1.1._afb5f705be3deb4ba78b89b6c70d5cf9/node_modules/@radix-ui/react-toggle/dist/index.js +0 -30
- package/dist/node_modules/.pnpm/@radix-ui_react-tooltip@1.2_02a5bba0cb45f3ddbe548efab47eabcc/node_modules/@radix-ui/react-tooltip/dist/index.js +0 -351
- package/dist/node_modules/.pnpm/@radix-ui_react-use-callbac_5106d65c013fadfe178f87486239c7af/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -10
- package/dist/node_modules/.pnpm/@radix-ui_react-use-control_e3b0d353471f209a120bf58c8d35c552/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -45
- package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-_c83bcf92add652965a36806e6d79891c/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -14
- package/dist/node_modules/.pnpm/@radix-ui_react-use-is-hydr_d8b55bd05f5d50f7ea21f52744760552/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +0 -19
- package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-_ad41f999ca2019252b887df955038ce1/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -5
- package/dist/node_modules/.pnpm/@radix-ui_react-use-previou_58b78c95af3b98dc4c1bc8bce73c779d/node_modules/@radix-ui/react-use-previous/dist/index.js +0 -11
- package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1._4b75a7cfb879b922004e7a6caa492077/node_modules/@radix-ui/react-use-size/dist/index.js +0 -29
- package/dist/node_modules/.pnpm/@radix-ui_react-visually-hi_fbf0dd0d68bb58b2410fc7a153ed1d9c/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -27
- package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js +0 -46
- package/dist/node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js +0 -33
- package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js +0 -7
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3_24279af7608b4a4e9fe00320b3c0cae7/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -70
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3_24279af7608b4a4e9fe00320b3c0cae7/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -4
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3_24279af7608b4a4e9fe00320b3c0cae7/node_modules/react-remove-scroll-bar/dist/es2015/index.js +0 -3
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3_24279af7608b4a4e9fe00320b3c0cae7/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -27
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@18.3.31_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -14
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@18.3.31_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -116
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@18.3.31_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -52
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@18.3.31_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -13
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@18.3.31_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -52
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@18.3.31_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -5
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@18.3.31_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -7
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_64be49a27fe392764e1764f59e110241/node_modules/react-style-singleton/dist/es2015/component.js +0 -11
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_64be49a27fe392764e1764f59e110241/node_modules/react-style-singleton/dist/es2015/hook.js +0 -15
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_64be49a27fe392764e1764f59e110241/node_modules/react-style-singleton/dist/es2015/index.js +0 -3
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_64be49a27fe392764e1764f59e110241/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -28
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js +0 -19
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@18.3.31_react@18.3.1/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -6
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@18.3.31_react@18.3.1/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -26
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@18.3.31_react@18.3.1/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -22
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@18.3.31_react@18.3.1/node_modules/use-sidecar/dist/es2015/exports.js +0 -16
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@18.3.31_react@18.3.1/node_modules/use-sidecar/dist/es2015/medium.js +0 -69
- package/dist/src/components/ui/accordion.js +0 -44
- package/dist/src/components/ui/alert-dialog.js +0 -61
- package/dist/src/components/ui/aspect-ratio.js +0 -6
- package/dist/src/components/ui/avatar.js +0 -29
- package/dist/src/components/ui/breadcrumb.js +0 -60
- package/dist/src/components/ui/button-group.js +0 -38
- package/dist/src/components/ui/collapsible.js +0 -26
- package/dist/src/components/ui/form.js +0 -76
- package/dist/src/components/ui/item.js +0 -116
- package/dist/src/components/ui/menubar.js +0 -105
- package/dist/src/components/ui/navigation-menu.js +0 -58
- package/dist/src/components/ui/popover.js +0 -36
- package/dist/src/components/ui/progress.js +0 -20
- package/dist/src/components/ui/toggle-group.js +0 -44
- package/dist/src/components/ui/tooltip.js +0 -37
- /package/dist/{src/components → components}/ui/accessibility-improvements.js +0 -0
- /package/dist/{src/components → components}/ui/card.js +0 -0
- /package/dist/{src/components → components}/ui/chart.js +0 -0
- /package/dist/{src/components → components}/ui/color-picker.js +0 -0
- /package/dist/{src/components → components}/ui/drawer.js +0 -0
- /package/dist/{src/components → components}/ui/input.js +0 -0
- /package/dist/{src/components → components}/ui/kbd.js +0 -0
- /package/dist/{src/components → components}/ui/scroll-area.js +0 -0
- /package/dist/{src/components → components}/ui/skeleton.js +0 -0
- /package/dist/{src/components → components}/ui/sonner.js +0 -0
- /package/dist/{src/components → components}/ui/table.js +0 -0
- /package/dist/{src/components → components}/ui/textarea.js +0 -0
- /package/dist/{src/hooks → hooks}/use-mobile.js +0 -0
- /package/dist/{src/index.js → index.js} +0 -0
- /package/dist/{src/lib → lib}/utils.js +0 -0
|
@@ -1,312 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { createContextScope as e } from "../../../../../@radix-ui_react-context@1.1_796eddd33de3050019fa09b10c68d7ca/node_modules/@radix-ui/react-context/dist/index.js";
|
|
3
|
-
import { useComposedRefs as t } from "../../../../../@radix-ui_react-compose-ref_1124f78b370d43bfeceaaa9b791be73d/node_modules/@radix-ui/react-compose-refs/dist/index.js";
|
|
4
|
-
import { createCollection as n } from "../../../../../@radix-ui_react-collection@_9d7b7379fb7a1e56af9d4a8d107ecba8/node_modules/@radix-ui/react-collection/dist/index.js";
|
|
5
|
-
import { composeEventHandlers as r } from "../../../../../@radix-ui_primitive@1.1.4/node_modules/@radix-ui/primitive/dist/index.js";
|
|
6
|
-
import { useControllableState as i } from "../../../../../@radix-ui_react-use-control_e3b0d353471f209a120bf58c8d35c552/node_modules/@radix-ui/react-use-controllable-state/dist/index.js";
|
|
7
|
-
import { Primitive as a } from "../../../../../@radix-ui_react-primitive@2_9b6ae4cdaf3918ddbf0b21069e38e2ef/node_modules/@radix-ui/react-primitive/dist/index.js";
|
|
8
|
-
import { useId as o } from "../../../../../@radix-ui_react-id@1.1.2_@types_react@18.3.31_react@18.3.1/node_modules/@radix-ui/react-id/dist/index.js";
|
|
9
|
-
import { useDirection as s } from "../../../../../@radix-ui_react-direction@1_2157d1ab8e201288009ff536bb11c468/node_modules/@radix-ui/react-direction/dist/index.js";
|
|
10
|
-
import { Item as c, Root as l, createRovingFocusGroupScope as u } from "../../../../../@radix-ui_react-roving-focu_d783d3abe701a7f2fb2c68867b8f1f65/node_modules/@radix-ui/react-roving-focus/dist/index.js";
|
|
11
|
-
import { Anchor2 as d, Arrow2 as f, CheckboxItem as p, Content2 as m, Group as h, Item2 as g, ItemIndicator as _, Label as v, Portal as ee, RadioGroup as te, RadioItem as ne, Root3 as re, Separator as ie, Sub as y, SubContent as ae, SubTrigger as oe, createMenuScope as se } from "../../../../../@radix-ui_react-menu@2.1.17_cc73edd868dbfc82392e3731b66f2e59/node_modules/@radix-ui/react-menu/dist/index.js";
|
|
12
|
-
import * as b from "react";
|
|
13
|
-
import { jsx as x } from "react/jsx-runtime";
|
|
14
|
-
//#region node_modules/.pnpm/@radix-ui+react-menubar@1.1_52e1207bf5981387ca85fb7a6f7b2195/node_modules/@radix-ui/react-menubar/dist/index.mjs
|
|
15
|
-
var S = "Menubar", [C, w, ce] = n(S), [T, le] = e(S, [ce, u]), E = se(), D = u(), [O, k] = T(S), A = b.forwardRef((e, t) => {
|
|
16
|
-
let { __scopeMenubar: n, value: r, onValueChange: o, defaultValue: c, loop: u = !0, dir: d, ...f } = e, p = s(d), m = D(n), [h, g] = i({
|
|
17
|
-
prop: r,
|
|
18
|
-
onChange: o,
|
|
19
|
-
defaultProp: c ?? "",
|
|
20
|
-
caller: S
|
|
21
|
-
}), [_, v] = b.useState(null);
|
|
22
|
-
return /* @__PURE__ */ x(O, {
|
|
23
|
-
scope: n,
|
|
24
|
-
value: h,
|
|
25
|
-
onMenuOpen: b.useCallback((e) => {
|
|
26
|
-
g(e), v(e);
|
|
27
|
-
}, [g]),
|
|
28
|
-
onMenuClose: b.useCallback(() => g(""), [g]),
|
|
29
|
-
onMenuToggle: b.useCallback((e) => {
|
|
30
|
-
g((t) => t ? "" : e), v(e);
|
|
31
|
-
}, [g]),
|
|
32
|
-
dir: p,
|
|
33
|
-
loop: u,
|
|
34
|
-
children: /* @__PURE__ */ x(C.Provider, {
|
|
35
|
-
scope: n,
|
|
36
|
-
children: /* @__PURE__ */ x(C.Slot, {
|
|
37
|
-
scope: n,
|
|
38
|
-
children: /* @__PURE__ */ x(l, {
|
|
39
|
-
asChild: !0,
|
|
40
|
-
...m,
|
|
41
|
-
orientation: "horizontal",
|
|
42
|
-
loop: u,
|
|
43
|
-
dir: p,
|
|
44
|
-
currentTabStopId: _,
|
|
45
|
-
onCurrentTabStopIdChange: v,
|
|
46
|
-
children: /* @__PURE__ */ x(a.div, {
|
|
47
|
-
role: "menubar",
|
|
48
|
-
...f,
|
|
49
|
-
ref: t
|
|
50
|
-
})
|
|
51
|
-
})
|
|
52
|
-
})
|
|
53
|
-
})
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
A.displayName = S;
|
|
57
|
-
var j = "MenubarMenu", [ue, M] = T(j), N = (e) => {
|
|
58
|
-
let { __scopeMenubar: t, value: n, ...r } = e, i = o(), a = n || i || "LEGACY_REACT_AUTO_VALUE", s = k(j, t), c = E(t), l = b.useRef(null), u = b.useRef(!1), d = s.value === a;
|
|
59
|
-
return b.useEffect(() => {
|
|
60
|
-
d || (u.current = !1);
|
|
61
|
-
}, [d]), /* @__PURE__ */ x(ue, {
|
|
62
|
-
scope: t,
|
|
63
|
-
value: a,
|
|
64
|
-
triggerId: o(),
|
|
65
|
-
triggerRef: l,
|
|
66
|
-
contentId: o(),
|
|
67
|
-
wasKeyboardTriggerOpenRef: u,
|
|
68
|
-
children: /* @__PURE__ */ x(re, {
|
|
69
|
-
...c,
|
|
70
|
-
open: d,
|
|
71
|
-
onOpenChange: (e) => {
|
|
72
|
-
e || s.onMenuClose();
|
|
73
|
-
},
|
|
74
|
-
modal: !1,
|
|
75
|
-
dir: s.dir,
|
|
76
|
-
...r
|
|
77
|
-
})
|
|
78
|
-
});
|
|
79
|
-
};
|
|
80
|
-
N.displayName = j;
|
|
81
|
-
var P = "MenubarTrigger", F = b.forwardRef((e, n) => {
|
|
82
|
-
let { __scopeMenubar: i, disabled: o = !1, ...s } = e, l = D(i), u = E(i), f = k(P, i), p = M(P, i), m = b.useRef(null), h = t(n, m, p.triggerRef), [g, _] = b.useState(!1), v = f.value === p.value;
|
|
83
|
-
return /* @__PURE__ */ x(C.ItemSlot, {
|
|
84
|
-
scope: i,
|
|
85
|
-
value: p.value,
|
|
86
|
-
disabled: o,
|
|
87
|
-
children: /* @__PURE__ */ x(c, {
|
|
88
|
-
asChild: !0,
|
|
89
|
-
...l,
|
|
90
|
-
focusable: !o,
|
|
91
|
-
tabStopId: p.value,
|
|
92
|
-
children: /* @__PURE__ */ x(d, {
|
|
93
|
-
asChild: !0,
|
|
94
|
-
...u,
|
|
95
|
-
children: /* @__PURE__ */ x(a.button, {
|
|
96
|
-
type: "button",
|
|
97
|
-
role: "menuitem",
|
|
98
|
-
id: p.triggerId,
|
|
99
|
-
"aria-haspopup": "menu",
|
|
100
|
-
"aria-expanded": v,
|
|
101
|
-
"aria-controls": v ? p.contentId : void 0,
|
|
102
|
-
"data-highlighted": g ? "" : void 0,
|
|
103
|
-
"data-state": v ? "open" : "closed",
|
|
104
|
-
"data-disabled": o ? "" : void 0,
|
|
105
|
-
disabled: o,
|
|
106
|
-
...s,
|
|
107
|
-
ref: h,
|
|
108
|
-
onPointerDown: r(e.onPointerDown, (e) => {
|
|
109
|
-
!o && e.button === 0 && e.ctrlKey === !1 && (f.onMenuOpen(p.value), v || e.preventDefault());
|
|
110
|
-
}),
|
|
111
|
-
onPointerEnter: r(e.onPointerEnter, () => {
|
|
112
|
-
f.value && !v && (f.onMenuOpen(p.value), m.current?.focus());
|
|
113
|
-
}),
|
|
114
|
-
onKeyDown: r(e.onKeyDown, (e) => {
|
|
115
|
-
o || (["Enter", " "].includes(e.key) && f.onMenuToggle(p.value), e.key === "ArrowDown" && f.onMenuOpen(p.value), [
|
|
116
|
-
"Enter",
|
|
117
|
-
" ",
|
|
118
|
-
"ArrowDown"
|
|
119
|
-
].includes(e.key) && (p.wasKeyboardTriggerOpenRef.current = !0, e.preventDefault()));
|
|
120
|
-
}),
|
|
121
|
-
onFocus: r(e.onFocus, () => _(!0)),
|
|
122
|
-
onBlur: r(e.onBlur, () => _(!1))
|
|
123
|
-
})
|
|
124
|
-
})
|
|
125
|
-
})
|
|
126
|
-
});
|
|
127
|
-
});
|
|
128
|
-
F.displayName = P;
|
|
129
|
-
var de = "MenubarPortal", I = (e) => {
|
|
130
|
-
let { __scopeMenubar: t, ...n } = e;
|
|
131
|
-
return /* @__PURE__ */ x(ee, {
|
|
132
|
-
...E(t),
|
|
133
|
-
...n
|
|
134
|
-
});
|
|
135
|
-
};
|
|
136
|
-
I.displayName = de;
|
|
137
|
-
var L = "MenubarContent", R = b.forwardRef((e, t) => {
|
|
138
|
-
let { __scopeMenubar: n, align: i = "start", ...a } = e, o = E(n), s = k(L, n), c = M(L, n), l = w(n), u = b.useRef(!1);
|
|
139
|
-
return /* @__PURE__ */ x(m, {
|
|
140
|
-
id: c.contentId,
|
|
141
|
-
"aria-labelledby": c.triggerId,
|
|
142
|
-
"data-radix-menubar-content": "",
|
|
143
|
-
...o,
|
|
144
|
-
...a,
|
|
145
|
-
ref: t,
|
|
146
|
-
align: i,
|
|
147
|
-
onCloseAutoFocus: r(e.onCloseAutoFocus, (e) => {
|
|
148
|
-
!s.value && !u.current && c.triggerRef.current?.focus(), u.current = !1, e.preventDefault();
|
|
149
|
-
}),
|
|
150
|
-
onFocusOutside: r(e.onFocusOutside, (e) => {
|
|
151
|
-
let t = e.target;
|
|
152
|
-
l().some((e) => e.ref.current?.contains(t)) && e.preventDefault();
|
|
153
|
-
}),
|
|
154
|
-
onInteractOutside: r(e.onInteractOutside, () => {
|
|
155
|
-
u.current = !0;
|
|
156
|
-
}),
|
|
157
|
-
onEntryFocus: (e) => {
|
|
158
|
-
c.wasKeyboardTriggerOpenRef.current || e.preventDefault();
|
|
159
|
-
},
|
|
160
|
-
onKeyDown: r(e.onKeyDown, (e) => {
|
|
161
|
-
if (["ArrowRight", "ArrowLeft"].includes(e.key)) {
|
|
162
|
-
let t = e.target, n = t.hasAttribute("data-radix-menubar-subtrigger"), r = t.closest("[data-radix-menubar-content]") !== e.currentTarget, i = (s.dir === "rtl" ? "ArrowRight" : "ArrowLeft") === e.key;
|
|
163
|
-
if (!i && n || r && i) return;
|
|
164
|
-
let a = l().filter((e) => !e.disabled).map((e) => e.value);
|
|
165
|
-
i && a.reverse();
|
|
166
|
-
let o = a.indexOf(c.value);
|
|
167
|
-
a = s.loop ? xe(a, o + 1) : a.slice(o + 1);
|
|
168
|
-
let [u] = a;
|
|
169
|
-
u && s.onMenuOpen(u);
|
|
170
|
-
}
|
|
171
|
-
}, { checkForDefaultPrevented: !1 }),
|
|
172
|
-
style: {
|
|
173
|
-
...e.style,
|
|
174
|
-
"--radix-menubar-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
175
|
-
"--radix-menubar-content-available-width": "var(--radix-popper-available-width)",
|
|
176
|
-
"--radix-menubar-content-available-height": "var(--radix-popper-available-height)",
|
|
177
|
-
"--radix-menubar-trigger-width": "var(--radix-popper-anchor-width)",
|
|
178
|
-
"--radix-menubar-trigger-height": "var(--radix-popper-anchor-height)"
|
|
179
|
-
}
|
|
180
|
-
});
|
|
181
|
-
});
|
|
182
|
-
R.displayName = L;
|
|
183
|
-
var z = "MenubarGroup", B = b.forwardRef((e, t) => {
|
|
184
|
-
let { __scopeMenubar: n, ...r } = e;
|
|
185
|
-
return /* @__PURE__ */ x(h, {
|
|
186
|
-
...E(n),
|
|
187
|
-
...r,
|
|
188
|
-
ref: t
|
|
189
|
-
});
|
|
190
|
-
});
|
|
191
|
-
B.displayName = z;
|
|
192
|
-
var V = "MenubarLabel", H = b.forwardRef((e, t) => {
|
|
193
|
-
let { __scopeMenubar: n, ...r } = e;
|
|
194
|
-
return /* @__PURE__ */ x(v, {
|
|
195
|
-
...E(n),
|
|
196
|
-
...r,
|
|
197
|
-
ref: t
|
|
198
|
-
});
|
|
199
|
-
});
|
|
200
|
-
H.displayName = V;
|
|
201
|
-
var fe = "MenubarItem", U = b.forwardRef((e, t) => {
|
|
202
|
-
let { __scopeMenubar: n, ...r } = e;
|
|
203
|
-
return /* @__PURE__ */ x(g, {
|
|
204
|
-
...E(n),
|
|
205
|
-
...r,
|
|
206
|
-
ref: t
|
|
207
|
-
});
|
|
208
|
-
});
|
|
209
|
-
U.displayName = fe;
|
|
210
|
-
var W = "MenubarCheckboxItem", G = b.forwardRef((e, t) => {
|
|
211
|
-
let { __scopeMenubar: n, ...r } = e;
|
|
212
|
-
return /* @__PURE__ */ x(p, {
|
|
213
|
-
...E(n),
|
|
214
|
-
...r,
|
|
215
|
-
ref: t
|
|
216
|
-
});
|
|
217
|
-
});
|
|
218
|
-
G.displayName = W;
|
|
219
|
-
var pe = "MenubarRadioGroup", K = b.forwardRef((e, t) => {
|
|
220
|
-
let { __scopeMenubar: n, ...r } = e;
|
|
221
|
-
return /* @__PURE__ */ x(te, {
|
|
222
|
-
...E(n),
|
|
223
|
-
...r,
|
|
224
|
-
ref: t
|
|
225
|
-
});
|
|
226
|
-
});
|
|
227
|
-
K.displayName = pe;
|
|
228
|
-
var me = "MenubarRadioItem", q = b.forwardRef((e, t) => {
|
|
229
|
-
let { __scopeMenubar: n, ...r } = e;
|
|
230
|
-
return /* @__PURE__ */ x(ne, {
|
|
231
|
-
...E(n),
|
|
232
|
-
...r,
|
|
233
|
-
ref: t
|
|
234
|
-
});
|
|
235
|
-
});
|
|
236
|
-
q.displayName = me;
|
|
237
|
-
var he = "MenubarItemIndicator", J = b.forwardRef((e, t) => {
|
|
238
|
-
let { __scopeMenubar: n, ...r } = e;
|
|
239
|
-
return /* @__PURE__ */ x(_, {
|
|
240
|
-
...E(n),
|
|
241
|
-
...r,
|
|
242
|
-
ref: t
|
|
243
|
-
});
|
|
244
|
-
});
|
|
245
|
-
J.displayName = he;
|
|
246
|
-
var ge = "MenubarSeparator", Y = b.forwardRef((e, t) => {
|
|
247
|
-
let { __scopeMenubar: n, ...r } = e;
|
|
248
|
-
return /* @__PURE__ */ x(ie, {
|
|
249
|
-
...E(n),
|
|
250
|
-
...r,
|
|
251
|
-
ref: t
|
|
252
|
-
});
|
|
253
|
-
});
|
|
254
|
-
Y.displayName = ge;
|
|
255
|
-
var _e = "MenubarArrow", ve = b.forwardRef((e, t) => {
|
|
256
|
-
let { __scopeMenubar: n, ...r } = e;
|
|
257
|
-
return /* @__PURE__ */ x(f, {
|
|
258
|
-
...E(n),
|
|
259
|
-
...r,
|
|
260
|
-
ref: t
|
|
261
|
-
});
|
|
262
|
-
});
|
|
263
|
-
ve.displayName = _e;
|
|
264
|
-
var X = "MenubarSub", Z = (e) => {
|
|
265
|
-
let { __scopeMenubar: t, children: n, open: r, onOpenChange: a, defaultOpen: o } = e, s = E(t), [c, l] = i({
|
|
266
|
-
prop: r,
|
|
267
|
-
defaultProp: o ?? !1,
|
|
268
|
-
onChange: a,
|
|
269
|
-
caller: X
|
|
270
|
-
});
|
|
271
|
-
return /* @__PURE__ */ x(y, {
|
|
272
|
-
...s,
|
|
273
|
-
open: c,
|
|
274
|
-
onOpenChange: l,
|
|
275
|
-
children: n
|
|
276
|
-
});
|
|
277
|
-
};
|
|
278
|
-
Z.displayName = X;
|
|
279
|
-
var ye = "MenubarSubTrigger", Q = b.forwardRef((e, t) => {
|
|
280
|
-
let { __scopeMenubar: n, ...r } = e;
|
|
281
|
-
return /* @__PURE__ */ x(oe, {
|
|
282
|
-
"data-radix-menubar-subtrigger": "",
|
|
283
|
-
...E(n),
|
|
284
|
-
...r,
|
|
285
|
-
ref: t
|
|
286
|
-
});
|
|
287
|
-
});
|
|
288
|
-
Q.displayName = ye;
|
|
289
|
-
var be = "MenubarSubContent", $ = b.forwardRef((e, t) => {
|
|
290
|
-
let { __scopeMenubar: n, ...r } = e;
|
|
291
|
-
return /* @__PURE__ */ x(ae, {
|
|
292
|
-
...E(n),
|
|
293
|
-
"data-radix-menubar-content": "",
|
|
294
|
-
...r,
|
|
295
|
-
ref: t,
|
|
296
|
-
style: {
|
|
297
|
-
...e.style,
|
|
298
|
-
"--radix-menubar-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
299
|
-
"--radix-menubar-content-available-width": "var(--radix-popper-available-width)",
|
|
300
|
-
"--radix-menubar-content-available-height": "var(--radix-popper-available-height)",
|
|
301
|
-
"--radix-menubar-trigger-width": "var(--radix-popper-anchor-width)",
|
|
302
|
-
"--radix-menubar-trigger-height": "var(--radix-popper-anchor-height)"
|
|
303
|
-
}
|
|
304
|
-
});
|
|
305
|
-
});
|
|
306
|
-
$.displayName = be;
|
|
307
|
-
function xe(e, t) {
|
|
308
|
-
return e.map((n, r) => e[(t + r) % e.length]);
|
|
309
|
-
}
|
|
310
|
-
var Se = A, Ce = N, we = F, Te = I, Ee = R, De = B, Oe = H, ke = U, Ae = G, je = K, Me = q, Ne = J, Pe = Y, Fe = Z, Ie = Q, Le = $;
|
|
311
|
-
//#endregion
|
|
312
|
-
export { Ae as CheckboxItem2, Ee as Content2, De as Group2, ke as Item3, Ne as ItemIndicator2, Oe as Label2, Ce as Menu, Te as Portal2, je as RadioGroup2, Me as RadioItem2, Se as Root3, Pe as Separator2, Fe as Sub2, Le as SubContent2, Ie as SubTrigger2, we as Trigger };
|