@inspirare/design-system 0.0.21 → 0.0.22
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 +1 -1
- 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,249 +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 { composeEventHandlers as n } from "../../../../../@radix-ui_primitive@1.1.4/node_modules/@radix-ui/primitive/dist/index.js";
|
|
5
|
-
import { useControllableState as r } from "../../../../../@radix-ui_react-use-control_e3b0d353471f209a120bf58c8d35c552/node_modules/@radix-ui/react-use-controllable-state/dist/index.js";
|
|
6
|
-
import { Primitive as i } from "../../../../../@radix-ui_react-primitive@2_9b6ae4cdaf3918ddbf0b21069e38e2ef/node_modules/@radix-ui/react-primitive/dist/index.js";
|
|
7
|
-
import { Presence as a } from "../../../../../@radix-ui_react-presence@1._dc6e30df35507eb8a116c12c3da26e18/node_modules/@radix-ui/react-presence/dist/index.js";
|
|
8
|
-
import { useDirection as o } from "../../../../../@radix-ui_react-direction@1_2157d1ab8e201288009ff536bb11c468/node_modules/@radix-ui/react-direction/dist/index.js";
|
|
9
|
-
import { usePrevious as s } from "../../../../../@radix-ui_react-use-previou_58b78c95af3b98dc4c1bc8bce73c779d/node_modules/@radix-ui/react-use-previous/dist/index.js";
|
|
10
|
-
import { useSize as c } from "../../../../../@radix-ui_react-use-size@1._4b75a7cfb879b922004e7a6caa492077/node_modules/@radix-ui/react-use-size/dist/index.js";
|
|
11
|
-
import { Item as l, Root as u, createRovingFocusGroupScope as d } from "../../../../../@radix-ui_react-roving-focu_d783d3abe701a7f2fb2c68867b8f1f65/node_modules/@radix-ui/react-roving-focus/dist/index.js";
|
|
12
|
-
import * as f from "react";
|
|
13
|
-
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
14
|
-
//#region node_modules/.pnpm/@radix-ui+react-radio-group_385226f717d657e4aea3688d6214f1c0/node_modules/@radix-ui/react-radio-group/dist/index.mjs
|
|
15
|
-
var g = "Radio", [_, v] = e(g), [y, b] = _(g);
|
|
16
|
-
function x(e) {
|
|
17
|
-
let { __scopeRadio: t, checked: n = !1, children: r, disabled: i, form: a, name: o, onCheck: s, required: c, value: l = "on", internal_do_not_use_render: u } = e, [d, p] = f.useState(null), [h, g] = f.useState(null), _ = {
|
|
18
|
-
checked: n,
|
|
19
|
-
disabled: i,
|
|
20
|
-
required: c,
|
|
21
|
-
name: o,
|
|
22
|
-
form: a,
|
|
23
|
-
value: l,
|
|
24
|
-
control: d,
|
|
25
|
-
setControl: p,
|
|
26
|
-
hasConsumerStoppedPropagationRef: f.useRef(!1),
|
|
27
|
-
isFormControl: d ? !!a || !!d.closest("form") : !0,
|
|
28
|
-
bubbleInput: h,
|
|
29
|
-
setBubbleInput: g,
|
|
30
|
-
onCheck: () => s?.()
|
|
31
|
-
};
|
|
32
|
-
return /* @__PURE__ */ m(y, {
|
|
33
|
-
scope: t,
|
|
34
|
-
..._,
|
|
35
|
-
children: k(u) ? u(_) : r
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
var S = "RadioTrigger", C = f.forwardRef(({ __scopeRadio: e, onClick: r, ...a }, o) => {
|
|
39
|
-
let { checked: s, disabled: c, value: l, setControl: u, onCheck: d, hasConsumerStoppedPropagationRef: f, isFormControl: p, bubbleInput: h } = b(S, e), g = t(o, u);
|
|
40
|
-
return /* @__PURE__ */ m(i.button, {
|
|
41
|
-
type: "button",
|
|
42
|
-
role: "radio",
|
|
43
|
-
"aria-checked": s,
|
|
44
|
-
"data-state": A(s),
|
|
45
|
-
"data-disabled": c ? "" : void 0,
|
|
46
|
-
disabled: c,
|
|
47
|
-
value: l,
|
|
48
|
-
...a,
|
|
49
|
-
ref: g,
|
|
50
|
-
onClick: n(r, (e) => {
|
|
51
|
-
s || d(), h && p && (f.current = e.isPropagationStopped(), f.current || e.stopPropagation());
|
|
52
|
-
})
|
|
53
|
-
});
|
|
54
|
-
});
|
|
55
|
-
C.displayName = S;
|
|
56
|
-
var w = f.forwardRef((e, t) => {
|
|
57
|
-
let { __scopeRadio: n, name: r, checked: i, required: a, disabled: o, value: s, onCheck: c, form: l, ...u } = e;
|
|
58
|
-
return /* @__PURE__ */ m(x, {
|
|
59
|
-
__scopeRadio: n,
|
|
60
|
-
checked: i,
|
|
61
|
-
disabled: o,
|
|
62
|
-
required: a,
|
|
63
|
-
onCheck: c,
|
|
64
|
-
name: r,
|
|
65
|
-
form: l,
|
|
66
|
-
value: s,
|
|
67
|
-
internal_do_not_use_render: ({ isFormControl: e }) => /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(C, {
|
|
68
|
-
...u,
|
|
69
|
-
ref: t,
|
|
70
|
-
__scopeRadio: n
|
|
71
|
-
}), e && /* @__PURE__ */ m(O, { __scopeRadio: n })] })
|
|
72
|
-
});
|
|
73
|
-
});
|
|
74
|
-
w.displayName = g;
|
|
75
|
-
var T = "RadioIndicator", E = f.forwardRef((e, t) => {
|
|
76
|
-
let { __scopeRadio: n, forceMount: r, ...o } = e, s = b(T, n);
|
|
77
|
-
return /* @__PURE__ */ m(a, {
|
|
78
|
-
present: r || s.checked,
|
|
79
|
-
children: /* @__PURE__ */ m(i.span, {
|
|
80
|
-
"data-state": A(s.checked),
|
|
81
|
-
"data-disabled": s.disabled ? "" : void 0,
|
|
82
|
-
...o,
|
|
83
|
-
ref: t
|
|
84
|
-
})
|
|
85
|
-
});
|
|
86
|
-
});
|
|
87
|
-
E.displayName = T;
|
|
88
|
-
var D = "RadioBubbleInput", O = f.forwardRef(({ __scopeRadio: e, ...n }, r) => {
|
|
89
|
-
let { control: a, checked: o, required: l, disabled: u, name: d, value: p, form: h, bubbleInput: g, setBubbleInput: _, hasConsumerStoppedPropagationRef: v } = b(D, e), y = t(r, _), x = s(o), S = c(a);
|
|
90
|
-
f.useEffect(() => {
|
|
91
|
-
let e = g;
|
|
92
|
-
if (!e) return;
|
|
93
|
-
let t = window.HTMLInputElement.prototype, n = Object.getOwnPropertyDescriptor(t, "checked").set, r = !v.current;
|
|
94
|
-
if (x !== o && n) {
|
|
95
|
-
let t = new Event("click", { bubbles: r });
|
|
96
|
-
n.call(e, o), e.dispatchEvent(t);
|
|
97
|
-
}
|
|
98
|
-
}, [
|
|
99
|
-
g,
|
|
100
|
-
x,
|
|
101
|
-
o,
|
|
102
|
-
v
|
|
103
|
-
]);
|
|
104
|
-
let C = f.useRef(o);
|
|
105
|
-
return /* @__PURE__ */ m(i.input, {
|
|
106
|
-
type: "radio",
|
|
107
|
-
"aria-hidden": !0,
|
|
108
|
-
defaultChecked: C.current,
|
|
109
|
-
required: l,
|
|
110
|
-
disabled: u,
|
|
111
|
-
name: d,
|
|
112
|
-
value: p,
|
|
113
|
-
form: h,
|
|
114
|
-
...n,
|
|
115
|
-
tabIndex: -1,
|
|
116
|
-
ref: y,
|
|
117
|
-
style: {
|
|
118
|
-
...n.style,
|
|
119
|
-
...S,
|
|
120
|
-
position: "absolute",
|
|
121
|
-
pointerEvents: "none",
|
|
122
|
-
opacity: 0,
|
|
123
|
-
margin: 0,
|
|
124
|
-
transform: "translateX(-100%)"
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
});
|
|
128
|
-
O.displayName = D;
|
|
129
|
-
function k(e) {
|
|
130
|
-
return typeof e == "function";
|
|
131
|
-
}
|
|
132
|
-
function A(e) {
|
|
133
|
-
return e ? "checked" : "unchecked";
|
|
134
|
-
}
|
|
135
|
-
var j = [
|
|
136
|
-
"ArrowUp",
|
|
137
|
-
"ArrowDown",
|
|
138
|
-
"ArrowLeft",
|
|
139
|
-
"ArrowRight"
|
|
140
|
-
], M = "RadioGroup", [N, P] = e(M, [d, v]), F = d(), I = v(), [L, R] = N(M), z = f.forwardRef((e, t) => {
|
|
141
|
-
let { __scopeRadioGroup: n, name: a, defaultValue: s, value: c, required: l = !1, disabled: d = !1, orientation: f, dir: p, loop: h = !0, onValueChange: g, ..._ } = e, v = F(n), y = o(p), [b, x] = r({
|
|
142
|
-
prop: c,
|
|
143
|
-
defaultProp: s ?? null,
|
|
144
|
-
onChange: g,
|
|
145
|
-
caller: M
|
|
146
|
-
});
|
|
147
|
-
return /* @__PURE__ */ m(L, {
|
|
148
|
-
scope: n,
|
|
149
|
-
name: a,
|
|
150
|
-
required: l,
|
|
151
|
-
disabled: d,
|
|
152
|
-
value: b,
|
|
153
|
-
onValueChange: x,
|
|
154
|
-
children: /* @__PURE__ */ m(u, {
|
|
155
|
-
asChild: !0,
|
|
156
|
-
...v,
|
|
157
|
-
orientation: f,
|
|
158
|
-
dir: y,
|
|
159
|
-
loop: h,
|
|
160
|
-
children: /* @__PURE__ */ m(i.div, {
|
|
161
|
-
role: "radiogroup",
|
|
162
|
-
"aria-required": l,
|
|
163
|
-
"aria-orientation": f,
|
|
164
|
-
"data-disabled": d ? "" : void 0,
|
|
165
|
-
dir: y,
|
|
166
|
-
..._,
|
|
167
|
-
ref: t
|
|
168
|
-
})
|
|
169
|
-
})
|
|
170
|
-
});
|
|
171
|
-
});
|
|
172
|
-
z.displayName = M;
|
|
173
|
-
var B = "RadioGroupItem", V = "RadioGroupItemProvider", H = "RadioGroupItemTrigger", U = "RadioGroupItemBubbleInput";
|
|
174
|
-
function W(e) {
|
|
175
|
-
let { __scopeRadioGroup: t, value: n, disabled: r, children: i, internal_do_not_use_render: a } = e, o = R(V, t), s = I(t), c = o.disabled || r;
|
|
176
|
-
return /* @__PURE__ */ m(x, {
|
|
177
|
-
...s,
|
|
178
|
-
checked: o.value === n,
|
|
179
|
-
disabled: c,
|
|
180
|
-
required: o.required,
|
|
181
|
-
name: o.name,
|
|
182
|
-
value: n,
|
|
183
|
-
onCheck: () => o.onValueChange(n),
|
|
184
|
-
internal_do_not_use_render: a,
|
|
185
|
-
children: i
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
var G = f.forwardRef((e, r) => {
|
|
189
|
-
let { __scopeRadioGroup: i, ...a } = e, o = F(i), s = I(i), { checked: c, disabled: u } = b(H, s.__scopeRadio), d = f.useRef(null), p = t(r, d), h = f.useRef(!1);
|
|
190
|
-
return f.useEffect(() => {
|
|
191
|
-
let e = (e) => {
|
|
192
|
-
j.includes(e.key) && (h.current = !0);
|
|
193
|
-
}, t = () => h.current = !1;
|
|
194
|
-
return document.addEventListener("keydown", e), document.addEventListener("keyup", t), () => {
|
|
195
|
-
document.removeEventListener("keydown", e), document.removeEventListener("keyup", t);
|
|
196
|
-
};
|
|
197
|
-
}, []), /* @__PURE__ */ m(l, {
|
|
198
|
-
asChild: !0,
|
|
199
|
-
...o,
|
|
200
|
-
focusable: !u,
|
|
201
|
-
active: c,
|
|
202
|
-
children: /* @__PURE__ */ m(C, {
|
|
203
|
-
...s,
|
|
204
|
-
...a,
|
|
205
|
-
ref: p,
|
|
206
|
-
onKeyDown: n(a.onKeyDown, (e) => {
|
|
207
|
-
e.key === "Enter" && e.preventDefault();
|
|
208
|
-
}),
|
|
209
|
-
onFocus: n(a.onFocus, () => {
|
|
210
|
-
h.current && d.current?.click();
|
|
211
|
-
})
|
|
212
|
-
})
|
|
213
|
-
});
|
|
214
|
-
});
|
|
215
|
-
G.displayName = H;
|
|
216
|
-
var K = f.forwardRef((e, t) => {
|
|
217
|
-
let { __scopeRadioGroup: n, value: r, disabled: i, ...a } = e;
|
|
218
|
-
return /* @__PURE__ */ m(W, {
|
|
219
|
-
__scopeRadioGroup: n,
|
|
220
|
-
value: r,
|
|
221
|
-
disabled: i,
|
|
222
|
-
internal_do_not_use_render: ({ isFormControl: e }) => /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(G, {
|
|
223
|
-
...a,
|
|
224
|
-
ref: t,
|
|
225
|
-
__scopeRadioGroup: n
|
|
226
|
-
}), e && /* @__PURE__ */ m(q, { __scopeRadioGroup: n })] })
|
|
227
|
-
});
|
|
228
|
-
});
|
|
229
|
-
K.displayName = B;
|
|
230
|
-
var q = f.forwardRef((e, t) => {
|
|
231
|
-
let { __scopeRadioGroup: n, ...r } = e;
|
|
232
|
-
return /* @__PURE__ */ m(O, {
|
|
233
|
-
...I(n),
|
|
234
|
-
...r,
|
|
235
|
-
ref: t
|
|
236
|
-
});
|
|
237
|
-
});
|
|
238
|
-
q.displayName = U;
|
|
239
|
-
var J = "RadioGroupIndicator", Y = f.forwardRef((e, t) => {
|
|
240
|
-
let { __scopeRadioGroup: n, ...r } = e;
|
|
241
|
-
return /* @__PURE__ */ m(E, {
|
|
242
|
-
...I(n),
|
|
243
|
-
...r,
|
|
244
|
-
ref: t
|
|
245
|
-
});
|
|
246
|
-
});
|
|
247
|
-
Y.displayName = J;
|
|
248
|
-
//#endregion
|
|
249
|
-
export { z as RadioGroup, Y as RadioGroupIndicator, K as RadioGroupItem };
|
|
@@ -1,154 +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 { useCallbackRef as c } from "../../../../../@radix-ui_react-use-callbac_5106d65c013fadfe178f87486239c7af/node_modules/@radix-ui/react-use-callback-ref/dist/index.js";
|
|
11
|
-
import * as l from "react";
|
|
12
|
-
import { jsx as u } from "react/jsx-runtime";
|
|
13
|
-
//#region node_modules/.pnpm/@radix-ui+react-roving-focu_d783d3abe701a7f2fb2c68867b8f1f65/node_modules/@radix-ui/react-roving-focus/dist/index.mjs
|
|
14
|
-
var d = "rovingFocusGroup.onEntryFocus", f = {
|
|
15
|
-
bubbles: !1,
|
|
16
|
-
cancelable: !0
|
|
17
|
-
}, p = "RovingFocusGroup", [m, h, g] = n(p), [_, v] = e(p, [g]), [y, b] = _(p), x = l.forwardRef((e, t) => /* @__PURE__ */ u(m.Provider, {
|
|
18
|
-
scope: e.__scopeRovingFocusGroup,
|
|
19
|
-
children: /* @__PURE__ */ u(m.Slot, {
|
|
20
|
-
scope: e.__scopeRovingFocusGroup,
|
|
21
|
-
children: /* @__PURE__ */ u(S, {
|
|
22
|
-
...e,
|
|
23
|
-
ref: t
|
|
24
|
-
})
|
|
25
|
-
})
|
|
26
|
-
}));
|
|
27
|
-
x.displayName = p;
|
|
28
|
-
var S = l.forwardRef((e, n) => {
|
|
29
|
-
let { __scopeRovingFocusGroup: o, orientation: m, loop: g = !1, dir: _, currentTabStopId: v, defaultCurrentTabStopId: b, onCurrentTabStopIdChange: x, onEntryFocus: S, preventScrollOnEntryFocus: C = !1, ...w } = e, T = l.useRef(null), E = t(n, T), D = s(_), [k, A] = i({
|
|
30
|
-
prop: v,
|
|
31
|
-
defaultProp: b ?? null,
|
|
32
|
-
onChange: x,
|
|
33
|
-
caller: p
|
|
34
|
-
}), [j, M] = l.useState(!1), N = c(S), P = h(o), F = l.useRef(!1), [I, L] = l.useState(0);
|
|
35
|
-
return l.useEffect(() => {
|
|
36
|
-
let e = T.current;
|
|
37
|
-
if (e) return e.addEventListener(d, N), () => e.removeEventListener(d, N);
|
|
38
|
-
}, [N]), /* @__PURE__ */ u(y, {
|
|
39
|
-
scope: o,
|
|
40
|
-
orientation: m,
|
|
41
|
-
dir: D,
|
|
42
|
-
loop: g,
|
|
43
|
-
currentTabStopId: k,
|
|
44
|
-
onItemFocus: l.useCallback((e) => A(e), [A]),
|
|
45
|
-
onItemShiftTab: l.useCallback(() => M(!0), []),
|
|
46
|
-
onFocusableItemAdd: l.useCallback(() => L((e) => e + 1), []),
|
|
47
|
-
onFocusableItemRemove: l.useCallback(() => L((e) => e - 1), []),
|
|
48
|
-
children: /* @__PURE__ */ u(a.div, {
|
|
49
|
-
tabIndex: j || I === 0 ? -1 : 0,
|
|
50
|
-
"data-orientation": m,
|
|
51
|
-
...w,
|
|
52
|
-
ref: E,
|
|
53
|
-
style: {
|
|
54
|
-
outline: "none",
|
|
55
|
-
...e.style
|
|
56
|
-
},
|
|
57
|
-
onMouseDown: r(e.onMouseDown, () => {
|
|
58
|
-
F.current = !0;
|
|
59
|
-
}),
|
|
60
|
-
onFocus: r(e.onFocus, (e) => {
|
|
61
|
-
let t = !F.current;
|
|
62
|
-
if (e.target === e.currentTarget && t && !j) {
|
|
63
|
-
let t = new CustomEvent(d, f);
|
|
64
|
-
if (e.currentTarget.dispatchEvent(t), !t.defaultPrevented) {
|
|
65
|
-
let e = P().filter((e) => e.focusable);
|
|
66
|
-
O([
|
|
67
|
-
e.find((e) => e.active),
|
|
68
|
-
e.find((e) => e.id === k),
|
|
69
|
-
...e
|
|
70
|
-
].filter(Boolean).map((e) => e.ref.current), C);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
F.current = !1;
|
|
74
|
-
}),
|
|
75
|
-
onBlur: r(e.onBlur, () => M(!1))
|
|
76
|
-
})
|
|
77
|
-
});
|
|
78
|
-
}), C = "RovingFocusGroupItem", w = l.forwardRef((e, t) => {
|
|
79
|
-
let { __scopeRovingFocusGroup: n, focusable: i = !0, active: s = !1, tabStopId: c, children: d, ...f } = e, p = o(), g = c || p, _ = b(C, n), v = _.currentTabStopId === g, y = h(n), { onFocusableItemAdd: x, onFocusableItemRemove: S, currentTabStopId: w } = _;
|
|
80
|
-
return l.useEffect(() => {
|
|
81
|
-
if (i) return x(), () => S();
|
|
82
|
-
}, [
|
|
83
|
-
i,
|
|
84
|
-
x,
|
|
85
|
-
S
|
|
86
|
-
]), /* @__PURE__ */ u(m.ItemSlot, {
|
|
87
|
-
scope: n,
|
|
88
|
-
id: g,
|
|
89
|
-
focusable: i,
|
|
90
|
-
active: s,
|
|
91
|
-
children: /* @__PURE__ */ u(a.span, {
|
|
92
|
-
tabIndex: v ? 0 : -1,
|
|
93
|
-
"data-orientation": _.orientation,
|
|
94
|
-
...f,
|
|
95
|
-
ref: t,
|
|
96
|
-
onMouseDown: r(e.onMouseDown, (e) => {
|
|
97
|
-
i ? _.onItemFocus(g) : e.preventDefault();
|
|
98
|
-
}),
|
|
99
|
-
onFocus: r(e.onFocus, () => _.onItemFocus(g)),
|
|
100
|
-
onKeyDown: r(e.onKeyDown, (e) => {
|
|
101
|
-
if (e.key === "Tab" && e.shiftKey) {
|
|
102
|
-
_.onItemShiftTab();
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
if (e.target !== e.currentTarget) return;
|
|
106
|
-
let t = D(e, _.orientation, _.dir);
|
|
107
|
-
if (t !== void 0) {
|
|
108
|
-
if (e.metaKey || e.ctrlKey || e.altKey || e.shiftKey) return;
|
|
109
|
-
e.preventDefault();
|
|
110
|
-
let n = y().filter((e) => e.focusable).map((e) => e.ref.current);
|
|
111
|
-
if (t === "last") n.reverse();
|
|
112
|
-
else if (t === "prev" || t === "next") {
|
|
113
|
-
t === "prev" && n.reverse();
|
|
114
|
-
let r = n.indexOf(e.currentTarget);
|
|
115
|
-
n = _.loop ? k(n, r + 1) : n.slice(r + 1);
|
|
116
|
-
}
|
|
117
|
-
setTimeout(() => O(n));
|
|
118
|
-
}
|
|
119
|
-
}),
|
|
120
|
-
children: typeof d == "function" ? d({
|
|
121
|
-
isCurrentTabStop: v,
|
|
122
|
-
hasTabStop: w != null
|
|
123
|
-
}) : d
|
|
124
|
-
})
|
|
125
|
-
});
|
|
126
|
-
});
|
|
127
|
-
w.displayName = C;
|
|
128
|
-
var T = {
|
|
129
|
-
ArrowLeft: "prev",
|
|
130
|
-
ArrowUp: "prev",
|
|
131
|
-
ArrowRight: "next",
|
|
132
|
-
ArrowDown: "next",
|
|
133
|
-
PageUp: "first",
|
|
134
|
-
Home: "first",
|
|
135
|
-
PageDown: "last",
|
|
136
|
-
End: "last"
|
|
137
|
-
};
|
|
138
|
-
function E(e, t) {
|
|
139
|
-
return t === "rtl" ? e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e : e;
|
|
140
|
-
}
|
|
141
|
-
function D(e, t, n) {
|
|
142
|
-
let r = E(e.key, n);
|
|
143
|
-
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) return T[r];
|
|
144
|
-
}
|
|
145
|
-
function O(e, t = !1) {
|
|
146
|
-
let n = document.activeElement;
|
|
147
|
-
for (let r of e) if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
148
|
-
}
|
|
149
|
-
function k(e, t) {
|
|
150
|
-
return e.map((n, r) => e[(t + r) % e.length]);
|
|
151
|
-
}
|
|
152
|
-
var A = x, j = w;
|
|
153
|
-
//#endregion
|
|
154
|
-
export { j as Item, A as Root, v as createRovingFocusGroupScope };
|