@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,57 +1,57 @@
|
|
|
1
1
|
import { cn as e } from "../../lib/utils.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { cva as n } from "class-variance-authority";
|
|
4
4
|
//#region src/components/ui/empty.tsx
|
|
5
|
-
function r({ className:
|
|
6
|
-
return /* @__PURE__ */
|
|
5
|
+
function r({ className: n, ...r }) {
|
|
6
|
+
return /* @__PURE__ */ t("div", {
|
|
7
7
|
"data-slot": "empty",
|
|
8
|
-
className: e("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 text-balance rounded-lg border-dashed p-6 text-center md:p-12",
|
|
8
|
+
className: e("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 text-balance rounded-lg border-dashed p-6 text-center md:p-12", n),
|
|
9
9
|
...r
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
|
-
function i({ className:
|
|
13
|
-
return /* @__PURE__ */
|
|
12
|
+
function i({ className: n, ...r }) {
|
|
13
|
+
return /* @__PURE__ */ t("div", {
|
|
14
14
|
"data-slot": "empty-header",
|
|
15
|
-
className: e("flex max-w-sm flex-col items-center gap-2 text-center",
|
|
15
|
+
className: e("flex max-w-sm flex-col items-center gap-2 text-center", n),
|
|
16
16
|
...r
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
|
-
var a =
|
|
19
|
+
var a = n("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0", {
|
|
20
20
|
variants: { variant: {
|
|
21
21
|
default: "bg-transparent",
|
|
22
22
|
icon: "bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6"
|
|
23
23
|
} },
|
|
24
24
|
defaultVariants: { variant: "default" }
|
|
25
25
|
});
|
|
26
|
-
function o({ className:
|
|
27
|
-
return /* @__PURE__ */
|
|
26
|
+
function o({ className: n, variant: r = "default", ...i }) {
|
|
27
|
+
return /* @__PURE__ */ t("div", {
|
|
28
28
|
"data-slot": "empty-icon",
|
|
29
29
|
"data-variant": r,
|
|
30
30
|
className: e(a({
|
|
31
31
|
variant: r,
|
|
32
|
-
className:
|
|
32
|
+
className: n
|
|
33
33
|
})),
|
|
34
34
|
...i
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
|
-
function s({ className:
|
|
38
|
-
return /* @__PURE__ */
|
|
37
|
+
function s({ className: n, ...r }) {
|
|
38
|
+
return /* @__PURE__ */ t("div", {
|
|
39
39
|
"data-slot": "empty-title",
|
|
40
|
-
className: e("text-lg font-medium tracking-tight",
|
|
40
|
+
className: e("text-lg font-medium tracking-tight", n),
|
|
41
41
|
...r
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
|
-
function c({ className:
|
|
45
|
-
return /* @__PURE__ */
|
|
44
|
+
function c({ className: n, ...r }) {
|
|
45
|
+
return /* @__PURE__ */ t("div", {
|
|
46
46
|
"data-slot": "empty-description",
|
|
47
|
-
className: e("text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4",
|
|
47
|
+
className: e("text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4", n),
|
|
48
48
|
...r
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
|
-
function l({ className:
|
|
52
|
-
return /* @__PURE__ */
|
|
51
|
+
function l({ className: n, ...r }) {
|
|
52
|
+
return /* @__PURE__ */ t("div", {
|
|
53
53
|
"data-slot": "empty-content",
|
|
54
|
-
className: e("flex w-full min-w-0 max-w-sm flex-col items-center gap-4 text-balance text-sm",
|
|
54
|
+
className: e("flex w-full min-w-0 max-w-sm flex-col items-center gap-4 text-balance text-sm", n),
|
|
55
55
|
...r
|
|
56
56
|
});
|
|
57
57
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn as e } from "../../lib/utils.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
3
|
+
import { Separator as t } from "./separator.js";
|
|
4
|
+
import { Label as n } from "./label.js";
|
|
5
|
+
import { useMemo as r } from "react";
|
|
6
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
7
|
+
import { cva as o } from "class-variance-authority";
|
|
8
8
|
//#region src/components/ui/field.tsx
|
|
9
9
|
function s({ className: t, ...n }) {
|
|
10
|
-
return /* @__PURE__ */
|
|
10
|
+
return /* @__PURE__ */ i("fieldset", {
|
|
11
11
|
"data-slot": "field-set",
|
|
12
12
|
className: e("flex flex-col gap-6", "has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3", t),
|
|
13
13
|
...n
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
16
|
function c({ className: t, variant: n = "legend", ...r }) {
|
|
17
|
-
return /* @__PURE__ */
|
|
17
|
+
return /* @__PURE__ */ i("legend", {
|
|
18
18
|
"data-slot": "field-legend",
|
|
19
19
|
"data-variant": n,
|
|
20
20
|
className: e("mb-3 font-medium", "data-[variant=legend]:text-base", "data-[variant=label]:text-sm", t),
|
|
@@ -22,13 +22,13 @@ function c({ className: t, variant: n = "legend", ...r }) {
|
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
function l({ className: t, ...n }) {
|
|
25
|
-
return /* @__PURE__ */
|
|
25
|
+
return /* @__PURE__ */ i("div", {
|
|
26
26
|
"data-slot": "field-group",
|
|
27
27
|
className: e("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4", t),
|
|
28
28
|
...n
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
|
-
var u =
|
|
31
|
+
var u = o("group/field data-[invalid=true]:text-destructive flex w-full gap-3", {
|
|
32
32
|
variants: { orientation: {
|
|
33
33
|
vertical: ["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],
|
|
34
34
|
horizontal: [
|
|
@@ -45,7 +45,7 @@ var u = t("group/field data-[invalid=true]:text-destructive flex w-full gap-3",
|
|
|
45
45
|
defaultVariants: { orientation: "vertical" }
|
|
46
46
|
});
|
|
47
47
|
function d({ className: t, orientation: n = "vertical", ...r }) {
|
|
48
|
-
return /* @__PURE__ */
|
|
48
|
+
return /* @__PURE__ */ i("div", {
|
|
49
49
|
role: "group",
|
|
50
50
|
"data-slot": "field",
|
|
51
51
|
"data-orientation": n,
|
|
@@ -54,52 +54,52 @@ function d({ className: t, orientation: n = "vertical", ...r }) {
|
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
function f({ className: t, ...n }) {
|
|
57
|
-
return /* @__PURE__ */
|
|
57
|
+
return /* @__PURE__ */ i("div", {
|
|
58
58
|
"data-slot": "field-content",
|
|
59
59
|
className: e("group/field-content flex flex-1 flex-col gap-1.5 leading-snug", t),
|
|
60
60
|
...n
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
-
function p({ className: t, ...
|
|
64
|
-
return /* @__PURE__ */
|
|
63
|
+
function p({ className: t, ...r }) {
|
|
64
|
+
return /* @__PURE__ */ i(n, {
|
|
65
65
|
"data-slot": "field-label",
|
|
66
66
|
className: e("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50", "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>[data-slot=field]]:p-4", "has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10", t),
|
|
67
|
-
...
|
|
67
|
+
...r
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
70
|
function m({ className: t, ...n }) {
|
|
71
|
-
return /* @__PURE__ */
|
|
71
|
+
return /* @__PURE__ */ i("div", {
|
|
72
72
|
"data-slot": "field-label",
|
|
73
73
|
className: e("flex w-fit items-center gap-2 text-sm font-medium leading-snug group-data-[disabled=true]/field:opacity-50", t),
|
|
74
74
|
...n
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
77
|
function h({ className: t, ...n }) {
|
|
78
|
-
return /* @__PURE__ */
|
|
78
|
+
return /* @__PURE__ */ i("p", {
|
|
79
79
|
"data-slot": "field-description",
|
|
80
80
|
className: e("text-muted-foreground text-sm font-normal leading-normal group-has-[[data-orientation=horizontal]]/field:text-balance", "nth-last-2:-mt-1 last:mt-0 [[data-variant=legend]+&]:-mt-1.5", "[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4", t),
|
|
81
81
|
...n
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
|
-
function g({ children:
|
|
85
|
-
return /* @__PURE__ */
|
|
84
|
+
function g({ children: n, className: r, ...o }) {
|
|
85
|
+
return /* @__PURE__ */ a("div", {
|
|
86
86
|
"data-slot": "field-separator",
|
|
87
|
-
"data-content": !!
|
|
87
|
+
"data-content": !!n,
|
|
88
88
|
className: e("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2", r),
|
|
89
|
-
...
|
|
90
|
-
children: [/* @__PURE__ */
|
|
89
|
+
...o,
|
|
90
|
+
children: [/* @__PURE__ */ i(t, { className: "absolute inset-0 top-1/2" }), n && /* @__PURE__ */ i("span", {
|
|
91
91
|
className: "bg-background text-muted-foreground relative mx-auto block w-fit px-2",
|
|
92
92
|
"data-slot": "field-separator-content",
|
|
93
|
-
children:
|
|
93
|
+
children: n
|
|
94
94
|
})]
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
|
-
function _({ className: t, children: n, errors:
|
|
98
|
-
let s =
|
|
97
|
+
function _({ className: t, children: n, errors: a, ...o }) {
|
|
98
|
+
let s = r(() => n || (a ? a?.length === 1 && a[0]?.message ? a[0].message : /* @__PURE__ */ i("ul", {
|
|
99
99
|
className: "ml-4 flex list-disc flex-col gap-1",
|
|
100
|
-
children:
|
|
101
|
-
}) : null), [n,
|
|
102
|
-
return s ? /* @__PURE__ */
|
|
100
|
+
children: a.map((e, t) => e?.message && /* @__PURE__ */ i("li", { children: e.message }, t))
|
|
101
|
+
}) : null), [n, a]);
|
|
102
|
+
return s ? /* @__PURE__ */ i("div", {
|
|
103
103
|
role: "alert",
|
|
104
104
|
"data-slot": "field-error",
|
|
105
105
|
className: e("text-destructive text-sm font-normal", t),
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../lib/utils.js";
|
|
3
|
+
import { Label as t } from "./label.js";
|
|
4
|
+
import * as n from "react";
|
|
5
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
6
|
+
import { Slot as i } from "@radix-ui/react-slot";
|
|
7
|
+
import "@radix-ui/react-label";
|
|
8
|
+
import { Controller as a, FormProvider as o, useFormContext as s, useFormState as c } from "react-hook-form";
|
|
9
|
+
//#region src/components/ui/form.tsx
|
|
10
|
+
var l = o, u = n.createContext({}), d = ({ ...e }) => /* @__PURE__ */ r(u.Provider, {
|
|
11
|
+
value: { name: e.name },
|
|
12
|
+
children: /* @__PURE__ */ r(a, { ...e })
|
|
13
|
+
}), f = () => {
|
|
14
|
+
let e = n.useContext(u), t = n.useContext(p), { getFieldState: r } = s(), i = c({ name: e.name }), a = r(e.name, i);
|
|
15
|
+
if (!e) throw Error("useFormField should be used within <FormField>");
|
|
16
|
+
let { id: o } = t;
|
|
17
|
+
return {
|
|
18
|
+
id: o,
|
|
19
|
+
name: e.name,
|
|
20
|
+
formItemId: `${o}-form-item`,
|
|
21
|
+
formDescriptionId: `${o}-form-item-description`,
|
|
22
|
+
formMessageId: `${o}-form-item-message`,
|
|
23
|
+
...a
|
|
24
|
+
};
|
|
25
|
+
}, p = n.createContext({});
|
|
26
|
+
function m({ className: t, ...i }) {
|
|
27
|
+
let a = n.useId();
|
|
28
|
+
return /* @__PURE__ */ r(p.Provider, {
|
|
29
|
+
value: { id: a },
|
|
30
|
+
children: /* @__PURE__ */ r("div", {
|
|
31
|
+
"data-slot": "form-item",
|
|
32
|
+
className: e("grid gap-2", t),
|
|
33
|
+
...i
|
|
34
|
+
})
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
function h({ className: n, ...i }) {
|
|
38
|
+
let { error: a, formItemId: o } = f();
|
|
39
|
+
return /* @__PURE__ */ r(t, {
|
|
40
|
+
"data-slot": "form-label",
|
|
41
|
+
"data-error": !!a,
|
|
42
|
+
className: e("data-[error=true]:text-destructive", n),
|
|
43
|
+
htmlFor: o,
|
|
44
|
+
...i
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
function g({ ...e }) {
|
|
48
|
+
let { error: t, formItemId: n, formDescriptionId: a, formMessageId: o } = f();
|
|
49
|
+
return /* @__PURE__ */ r(i, {
|
|
50
|
+
"data-slot": "form-control",
|
|
51
|
+
id: n,
|
|
52
|
+
"aria-describedby": t ? `${a} ${o}` : `${a}`,
|
|
53
|
+
"aria-invalid": !!t,
|
|
54
|
+
...e
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
function _({ className: t, ...n }) {
|
|
58
|
+
let { formDescriptionId: i } = f();
|
|
59
|
+
return /* @__PURE__ */ r("p", {
|
|
60
|
+
"data-slot": "form-description",
|
|
61
|
+
id: i,
|
|
62
|
+
className: e("text-muted-foreground text-sm", t),
|
|
63
|
+
...n
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
function v({ className: t, ...n }) {
|
|
67
|
+
let { error: i, formMessageId: a } = f(), o = i ? String(i?.message ?? "") : n.children;
|
|
68
|
+
return o ? /* @__PURE__ */ r("p", {
|
|
69
|
+
"data-slot": "form-message",
|
|
70
|
+
id: a,
|
|
71
|
+
className: e("text-destructive text-sm", t),
|
|
72
|
+
...n,
|
|
73
|
+
children: o
|
|
74
|
+
}) : null;
|
|
75
|
+
}
|
|
76
|
+
//#endregion
|
|
77
|
+
export { l as Form, g as FormControl, _ as FormDescription, d as FormField, m as FormItem, h as FormLabel, v as FormMessage, f as useFormField };
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn as e } from "../../lib/utils.js";
|
|
3
|
-
import { Content2 as t, Portal as n, Root2 as r, Trigger as i } from "../../../node_modules/.pnpm/@radix-ui_react-hover-card@_8a3f4d1399bacc84c908e03b45229f87/node_modules/@radix-ui/react-hover-card/dist/index.js";
|
|
4
3
|
import "react";
|
|
5
|
-
import { jsx as
|
|
4
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
5
|
+
import * as n from "@radix-ui/react-hover-card";
|
|
6
6
|
//#region src/components/ui/hover-card.tsx
|
|
7
|
-
function
|
|
8
|
-
return /* @__PURE__ */
|
|
7
|
+
function r({ ...e }) {
|
|
8
|
+
return /* @__PURE__ */ t(n.Root, {
|
|
9
9
|
"data-slot": "hover-card",
|
|
10
10
|
...e
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
return /* @__PURE__ */
|
|
13
|
+
function i({ className: r, ...i }) {
|
|
14
|
+
return /* @__PURE__ */ t(n.Trigger, {
|
|
15
15
|
"data-slot": "hover-card-trigger",
|
|
16
|
-
className: e("cursor-pointer",
|
|
17
|
-
...
|
|
16
|
+
className: e("cursor-pointer", r),
|
|
17
|
+
...i
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
function
|
|
21
|
-
return /* @__PURE__ */
|
|
20
|
+
function a({ className: r, align: i = "center", sideOffset: a = 4, ...o }) {
|
|
21
|
+
return /* @__PURE__ */ t(n.Portal, {
|
|
22
22
|
"data-slot": "hover-card-portal",
|
|
23
|
-
children: /* @__PURE__ */
|
|
23
|
+
children: /* @__PURE__ */ t(n.Content, {
|
|
24
24
|
"data-slot": "hover-card-content",
|
|
25
25
|
align: i,
|
|
26
|
-
sideOffset:
|
|
26
|
+
sideOffset: a,
|
|
27
27
|
className: e("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden", r),
|
|
28
|
-
...
|
|
28
|
+
...o
|
|
29
29
|
})
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
//#endregion
|
|
33
|
-
export {
|
|
33
|
+
export { r as HoverCard, a as HoverCardContent, i as HoverCardTrigger };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn as e } from "../../lib/utils.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { Textarea as i } from "./textarea.js";
|
|
3
|
+
import { Button as t } from "./button.js";
|
|
4
|
+
import { Input as n } from "./input.js";
|
|
5
|
+
import { Textarea as r } from "./textarea.js";
|
|
7
6
|
import "react";
|
|
8
|
-
import { jsx as
|
|
7
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
8
|
+
import { cva as a } from "class-variance-authority";
|
|
9
9
|
//#region src/components/ui/input-group.tsx
|
|
10
10
|
function o({ className: t, ...n }) {
|
|
11
|
-
return /* @__PURE__ */
|
|
11
|
+
return /* @__PURE__ */ i("div", {
|
|
12
12
|
"data-slot": "input-group",
|
|
13
13
|
role: "group",
|
|
14
14
|
className: e("group/input-group border-input dark:bg-input/30 shadow-xs relative flex w-full items-center rounded-md border outline-none transition-[color,box-shadow]", "h-9 has-[>textarea]:h-auto", "has-[>[data-align=inline-start]]:[&>input]:pl-2", "has-[>[data-align=inline-end]]:[&>input]:pr-2", "has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3", "has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3", "has-[[data-slot=input-group-control]:focus-visible]:ring-ring has-[[data-slot=input-group-control]:focus-visible]:ring-1", "has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40", t),
|
|
15
15
|
...n
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
|
-
var s =
|
|
18
|
+
var s = a("text-muted-foreground flex h-auto cursor-text select-none items-center justify-center gap-2 py-1.5 text-sm font-medium group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4", {
|
|
19
19
|
variants: { align: {
|
|
20
20
|
"inline-start": "order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]",
|
|
21
21
|
"inline-end": "order-last pr-3 has-[>button]:mr-[-0.4rem] has-[>kbd]:mr-[-0.35rem]",
|
|
@@ -25,7 +25,7 @@ var s = t("text-muted-foreground flex h-auto cursor-text select-none items-cente
|
|
|
25
25
|
defaultVariants: { align: "inline-start" }
|
|
26
26
|
});
|
|
27
27
|
function c({ className: t, align: n = "inline-start", ...r }) {
|
|
28
|
-
return /* @__PURE__ */
|
|
28
|
+
return /* @__PURE__ */ i("div", {
|
|
29
29
|
role: "group",
|
|
30
30
|
"data-slot": "input-group-addon",
|
|
31
31
|
"data-align": n,
|
|
@@ -36,7 +36,7 @@ function c({ className: t, align: n = "inline-start", ...r }) {
|
|
|
36
36
|
...r
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
|
-
var l =
|
|
39
|
+
var l = a("flex items-center gap-2 text-sm shadow-none", {
|
|
40
40
|
variants: { size: {
|
|
41
41
|
xs: "h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-2 has-[>svg]:px-2 [&>svg:not([class*='size-'])]:size-3.5",
|
|
42
42
|
sm: "h-8 gap-1.5 rounded-md px-2.5 has-[>svg]:px-2.5",
|
|
@@ -45,30 +45,30 @@ var l = t("flex items-center gap-2 text-sm shadow-none", {
|
|
|
45
45
|
} },
|
|
46
46
|
defaultVariants: { size: "xs" }
|
|
47
47
|
});
|
|
48
|
-
function u({ className:
|
|
49
|
-
return /* @__PURE__ */
|
|
48
|
+
function u({ className: n, type: r = "button", variant: a = "ghost", size: o = "xs", ...s }) {
|
|
49
|
+
return /* @__PURE__ */ i(t, {
|
|
50
50
|
type: r,
|
|
51
51
|
"data-size": o,
|
|
52
|
-
variant:
|
|
53
|
-
className: e(l({ size: o }),
|
|
52
|
+
variant: a,
|
|
53
|
+
className: e(l({ size: o }), n),
|
|
54
54
|
...s
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
function d({ className: t, ...n }) {
|
|
58
|
-
return /* @__PURE__ */
|
|
58
|
+
return /* @__PURE__ */ i("span", {
|
|
59
59
|
className: e("text-muted-foreground flex items-center gap-2 text-sm [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none", t),
|
|
60
60
|
...n
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
-
function f({ className: t, ...
|
|
64
|
-
return /* @__PURE__ */
|
|
63
|
+
function f({ className: t, ...r }) {
|
|
64
|
+
return /* @__PURE__ */ i(n, {
|
|
65
65
|
"data-slot": "input-group-control",
|
|
66
66
|
className: e("flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent", t),
|
|
67
|
-
...
|
|
67
|
+
...r
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
70
|
function p({ className: t, ...n }) {
|
|
71
|
-
return /* @__PURE__ */
|
|
71
|
+
return /* @__PURE__ */ i(r, {
|
|
72
72
|
"data-slot": "input-group-control",
|
|
73
73
|
className: e("flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent", t),
|
|
74
74
|
...n
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn as e } from "../../lib/utils.js";
|
|
3
3
|
import * as t from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { Dot as n } from "lucide-react";
|
|
5
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
6
6
|
import { OTPInput as a, OTPInputContext as o } from "input-otp";
|
|
7
7
|
//#region src/components/ui/input-otp.tsx
|
|
8
|
-
var s = t.forwardRef(({ className: t, containerClassName:
|
|
8
|
+
var s = t.forwardRef(({ className: t, containerClassName: n, ...i }, o) => /* @__PURE__ */ r(a, {
|
|
9
9
|
ref: o,
|
|
10
|
-
containerClassName: e("flex items-center gap-2 has-[:disabled]:opacity-50",
|
|
10
|
+
containerClassName: e("flex items-center gap-2 has-[:disabled]:opacity-50", n),
|
|
11
11
|
className: e("disabled:cursor-not-allowed", t),
|
|
12
12
|
...i
|
|
13
13
|
}));
|
|
14
14
|
s.displayName = "InputOTP";
|
|
15
|
-
var c = t.forwardRef(({ className: t, ...
|
|
15
|
+
var c = t.forwardRef(({ className: t, ...n }, i) => /* @__PURE__ */ r("div", {
|
|
16
16
|
ref: i,
|
|
17
17
|
className: e("flex items-center", t),
|
|
18
|
-
...
|
|
18
|
+
...n
|
|
19
19
|
}));
|
|
20
20
|
c.displayName = "InputOTPGroup";
|
|
21
|
-
var l = t.forwardRef(({ index:
|
|
22
|
-
let { char: l, hasFakeCaret: u, isActive: d } = t.useContext(o).slots[
|
|
23
|
-
return /* @__PURE__ */
|
|
21
|
+
var l = t.forwardRef(({ index: n, className: a, ...s }, c) => {
|
|
22
|
+
let { char: l, hasFakeCaret: u, isActive: d } = t.useContext(o).slots[n];
|
|
23
|
+
return /* @__PURE__ */ i("div", {
|
|
24
24
|
ref: c,
|
|
25
25
|
className: e("relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md", d && "z-10 ring-2 ring-ring ring-offset-background", a),
|
|
26
26
|
...s,
|
|
27
|
-
children: [l, u && /* @__PURE__ */
|
|
27
|
+
children: [l, u && /* @__PURE__ */ r("div", {
|
|
28
28
|
className: "pointer-events-none absolute inset-0 flex items-center justify-center",
|
|
29
|
-
children: /* @__PURE__ */
|
|
29
|
+
children: /* @__PURE__ */ r("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" })
|
|
30
30
|
})]
|
|
31
31
|
});
|
|
32
32
|
});
|
|
33
33
|
l.displayName = "InputOTPSlot";
|
|
34
|
-
var u = t.forwardRef(({ ...e }, t) => /* @__PURE__ */
|
|
34
|
+
var u = t.forwardRef(({ ...e }, t) => /* @__PURE__ */ r("div", {
|
|
35
35
|
ref: t,
|
|
36
36
|
role: "separator",
|
|
37
37
|
...e,
|
|
38
|
-
children: /* @__PURE__ */ n
|
|
38
|
+
children: /* @__PURE__ */ r(n, {})
|
|
39
39
|
}));
|
|
40
40
|
u.displayName = "InputOTPSeparator";
|
|
41
41
|
//#endregion
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { cn as e } from "../../lib/utils.js";
|
|
2
|
+
import { Separator as t } from "./separator.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
5
|
+
import { cva as r } from "class-variance-authority";
|
|
6
|
+
import { Slot as i } from "@radix-ui/react-slot";
|
|
7
|
+
//#region src/components/ui/item.tsx
|
|
8
|
+
function a({ className: t, ...r }) {
|
|
9
|
+
return /* @__PURE__ */ n("div", {
|
|
10
|
+
role: "list",
|
|
11
|
+
"data-slot": "item-group",
|
|
12
|
+
className: e("group/item-group flex flex-col", t),
|
|
13
|
+
...r
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
function o({ className: r, ...i }) {
|
|
17
|
+
return /* @__PURE__ */ n(t, {
|
|
18
|
+
"data-slot": "item-separator",
|
|
19
|
+
orientation: "horizontal",
|
|
20
|
+
className: e("my-0", r),
|
|
21
|
+
...i
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
var s = r("group/item [a]:hover:bg-accent/50 focus-visible:border-ring focus-visible:ring-ring/50 [a]:transition-colors flex flex-wrap items-center rounded-md border border-transparent text-sm outline-none transition-colors duration-100 focus-visible:ring-[3px]", {
|
|
25
|
+
variants: {
|
|
26
|
+
variant: {
|
|
27
|
+
default: "bg-transparent",
|
|
28
|
+
outline: "border-border",
|
|
29
|
+
muted: "bg-muted/50"
|
|
30
|
+
},
|
|
31
|
+
size: {
|
|
32
|
+
default: "gap-4 p-4 ",
|
|
33
|
+
sm: "gap-2.5 px-4 py-3"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
defaultVariants: {
|
|
37
|
+
variant: "default",
|
|
38
|
+
size: "default"
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
function c({ className: t, variant: r = "default", size: a = "default", asChild: o = !1, ...c }) {
|
|
42
|
+
return /* @__PURE__ */ n(o ? i : "div", {
|
|
43
|
+
"data-slot": "item",
|
|
44
|
+
"data-variant": r,
|
|
45
|
+
"data-size": a,
|
|
46
|
+
className: e(s({
|
|
47
|
+
variant: r,
|
|
48
|
+
size: a,
|
|
49
|
+
className: t
|
|
50
|
+
})),
|
|
51
|
+
...c
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
var l = r("flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:translate-y-0.5 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none", {
|
|
55
|
+
variants: { variant: {
|
|
56
|
+
default: "bg-transparent",
|
|
57
|
+
icon: "bg-muted size-8 rounded-sm border [&_svg:not([class*='size-'])]:size-4",
|
|
58
|
+
image: "size-10 overflow-hidden rounded-sm [&_img]:size-full [&_img]:object-cover"
|
|
59
|
+
} },
|
|
60
|
+
defaultVariants: { variant: "default" }
|
|
61
|
+
});
|
|
62
|
+
function u({ className: t, variant: r = "default", ...i }) {
|
|
63
|
+
return /* @__PURE__ */ n("div", {
|
|
64
|
+
"data-slot": "item-media",
|
|
65
|
+
"data-variant": r,
|
|
66
|
+
className: e(l({
|
|
67
|
+
variant: r,
|
|
68
|
+
className: t
|
|
69
|
+
})),
|
|
70
|
+
...i
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
function d({ className: t, ...r }) {
|
|
74
|
+
return /* @__PURE__ */ n("div", {
|
|
75
|
+
"data-slot": "item-content",
|
|
76
|
+
className: e("flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none", t),
|
|
77
|
+
...r
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
function f({ className: t, ...r }) {
|
|
81
|
+
return /* @__PURE__ */ n("div", {
|
|
82
|
+
"data-slot": "item-title",
|
|
83
|
+
className: e("flex w-fit items-center gap-2 text-sm font-medium leading-snug", t),
|
|
84
|
+
...r
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
function p({ className: t, ...r }) {
|
|
88
|
+
return /* @__PURE__ */ n("p", {
|
|
89
|
+
"data-slot": "item-description",
|
|
90
|
+
className: e("text-muted-foreground line-clamp-2 text-balance text-sm font-normal leading-normal", "[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4", t),
|
|
91
|
+
...r
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
function m({ className: t, ...r }) {
|
|
95
|
+
return /* @__PURE__ */ n("div", {
|
|
96
|
+
"data-slot": "item-actions",
|
|
97
|
+
className: e("flex items-center gap-2", t),
|
|
98
|
+
...r
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
function h({ className: t, ...r }) {
|
|
102
|
+
return /* @__PURE__ */ n("div", {
|
|
103
|
+
"data-slot": "item-header",
|
|
104
|
+
className: e("flex basis-full items-center justify-between gap-2", t),
|
|
105
|
+
...r
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
function g({ className: t, ...r }) {
|
|
109
|
+
return /* @__PURE__ */ n("div", {
|
|
110
|
+
"data-slot": "item-footer",
|
|
111
|
+
className: e("flex basis-full items-center justify-between gap-2", t),
|
|
112
|
+
...r
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
//#endregion
|
|
116
|
+
export { c as Item, m as ItemActions, d as ItemContent, p as ItemDescription, g as ItemFooter, a as ItemGroup, h as ItemHeader, u as ItemMedia, o as ItemSeparator, f as ItemTitle };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn as e } from "../../lib/utils.js";
|
|
3
|
-
import { Root as t } from "../../../node_modules/.pnpm/@radix-ui_react-label@2.1.9_386dd2eabe41e70ee233c5790da58dd5/node_modules/@radix-ui/react-label/dist/index.js";
|
|
4
3
|
import "react";
|
|
5
|
-
import { jsx as
|
|
4
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
5
|
+
import * as n from "@radix-ui/react-label";
|
|
6
6
|
//#region src/components/ui/label.tsx
|
|
7
7
|
function r({ className: r, ...i }) {
|
|
8
|
-
return /* @__PURE__ */ n
|
|
8
|
+
return /* @__PURE__ */ t(n.Root, {
|
|
9
9
|
"data-slot": "label",
|
|
10
10
|
className: e("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", r),
|
|
11
11
|
...i
|