@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,19 +0,0 @@
|
|
|
1
|
-
//#region node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs
|
|
2
|
-
var e = function() {
|
|
3
|
-
return e = Object.assign || function(e) {
|
|
4
|
-
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
5
|
-
return e;
|
|
6
|
-
}, e.apply(this, arguments);
|
|
7
|
-
};
|
|
8
|
-
function t(e, t) {
|
|
9
|
-
var n = {};
|
|
10
|
-
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
11
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
12
|
-
return n;
|
|
13
|
-
}
|
|
14
|
-
function n(e, t, n) {
|
|
15
|
-
if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
|
|
16
|
-
return e.concat(a || Array.prototype.slice.call(t));
|
|
17
|
-
}
|
|
18
|
-
//#endregion
|
|
19
|
-
export { e as __assign, t as __rest, n as __spreadArray };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
//#region 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
|
|
2
|
-
function e(e, t) {
|
|
3
|
-
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
4
|
-
}
|
|
5
|
-
//#endregion
|
|
6
|
-
export { e as assignRef };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { assignRef as e } from "./assignRef.js";
|
|
2
|
-
import { useCallbackRef as t } from "./useRef.js";
|
|
3
|
-
import * as n from "react";
|
|
4
|
-
//#region 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
|
|
5
|
-
var r = typeof window < "u" ? n.useLayoutEffect : n.useEffect, i = /* @__PURE__ */ new WeakMap();
|
|
6
|
-
function a(n, a) {
|
|
7
|
-
var o = t(a || null, function(t) {
|
|
8
|
-
return n.forEach(function(n) {
|
|
9
|
-
return e(n, t);
|
|
10
|
-
});
|
|
11
|
-
});
|
|
12
|
-
return r(function() {
|
|
13
|
-
var t = i.get(o);
|
|
14
|
-
if (t) {
|
|
15
|
-
var r = new Set(t), a = new Set(n), s = o.current;
|
|
16
|
-
r.forEach(function(t) {
|
|
17
|
-
a.has(t) || e(t, null);
|
|
18
|
-
}), a.forEach(function(t) {
|
|
19
|
-
r.has(t) || e(t, s);
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
i.set(o, n);
|
|
23
|
-
}, [n]), o;
|
|
24
|
-
}
|
|
25
|
-
//#endregion
|
|
26
|
-
export { a as useMergeRefs };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { useState as e } from "react";
|
|
2
|
-
//#region 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
|
|
3
|
-
function t(t, n) {
|
|
4
|
-
var r = e(function() {
|
|
5
|
-
return {
|
|
6
|
-
value: t,
|
|
7
|
-
callback: n,
|
|
8
|
-
facade: {
|
|
9
|
-
get current() {
|
|
10
|
-
return r.value;
|
|
11
|
-
},
|
|
12
|
-
set current(e) {
|
|
13
|
-
var t = r.value;
|
|
14
|
-
t !== e && (r.value = e, r.callback(e, t));
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
})[0];
|
|
19
|
-
return r.callback = n, r.facade;
|
|
20
|
-
}
|
|
21
|
-
//#endregion
|
|
22
|
-
export { t as useCallbackRef };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { __assign as e, __rest as t } from "../../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.js";
|
|
2
|
-
import * as n from "react";
|
|
3
|
-
//#region 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
|
|
4
|
-
var r = function(r) {
|
|
5
|
-
var i = r.sideCar, a = t(r, ["sideCar"]);
|
|
6
|
-
if (!i) throw Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
7
|
-
var o = i.read();
|
|
8
|
-
if (!o) throw Error("Sidecar medium not found");
|
|
9
|
-
return n.createElement(o, e({}, a));
|
|
10
|
-
};
|
|
11
|
-
r.isSideCarExport = !0;
|
|
12
|
-
function i(e, t) {
|
|
13
|
-
return e.useMedium(t), r;
|
|
14
|
-
}
|
|
15
|
-
//#endregion
|
|
16
|
-
export { i as exportSidecar };
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { __assign as e } from "../../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.js";
|
|
2
|
-
//#region 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
|
|
3
|
-
function t(e) {
|
|
4
|
-
return e;
|
|
5
|
-
}
|
|
6
|
-
function n(e, n) {
|
|
7
|
-
n === void 0 && (n = t);
|
|
8
|
-
var r = [], i = !1;
|
|
9
|
-
return {
|
|
10
|
-
read: function() {
|
|
11
|
-
if (i) throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
|
|
12
|
-
return r.length ? r[r.length - 1] : e;
|
|
13
|
-
},
|
|
14
|
-
useMedium: function(e) {
|
|
15
|
-
var t = n(e, i);
|
|
16
|
-
return r.push(t), function() {
|
|
17
|
-
r = r.filter(function(e) {
|
|
18
|
-
return e !== t;
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
},
|
|
22
|
-
assignSyncMedium: function(e) {
|
|
23
|
-
for (i = !0; r.length;) {
|
|
24
|
-
var t = r;
|
|
25
|
-
r = [], t.forEach(e);
|
|
26
|
-
}
|
|
27
|
-
r = {
|
|
28
|
-
push: function(t) {
|
|
29
|
-
return e(t);
|
|
30
|
-
},
|
|
31
|
-
filter: function() {
|
|
32
|
-
return r;
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
},
|
|
36
|
-
assignMedium: function(e) {
|
|
37
|
-
i = !0;
|
|
38
|
-
var t = [];
|
|
39
|
-
if (r.length) {
|
|
40
|
-
var n = r;
|
|
41
|
-
r = [], n.forEach(e), t = r;
|
|
42
|
-
}
|
|
43
|
-
var a = function() {
|
|
44
|
-
var n = t;
|
|
45
|
-
t = [], n.forEach(e);
|
|
46
|
-
}, o = function() {
|
|
47
|
-
return Promise.resolve().then(a);
|
|
48
|
-
};
|
|
49
|
-
o(), r = {
|
|
50
|
-
push: function(e) {
|
|
51
|
-
t.push(e), o();
|
|
52
|
-
},
|
|
53
|
-
filter: function(e) {
|
|
54
|
-
return t = t.filter(e), r;
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
function r(t) {
|
|
61
|
-
t === void 0 && (t = {});
|
|
62
|
-
var r = n(null);
|
|
63
|
-
return r.options = e({
|
|
64
|
-
async: !0,
|
|
65
|
-
ssr: !1
|
|
66
|
-
}, t), r;
|
|
67
|
-
}
|
|
68
|
-
//#endregion
|
|
69
|
-
export { r as createSidecarMedium };
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { Content2 as e, Header as t, Item as n, Root2 as r, Trigger2 as i } from "../../../node_modules/.pnpm/@radix-ui_react-accordion@1_90771884ca9639bf31e5f01b1faf83e4/node_modules/@radix-ui/react-accordion/dist/index.js";
|
|
3
|
-
import { cn as a } from "../../lib/utils.js";
|
|
4
|
-
import "react";
|
|
5
|
-
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
|
-
import { ChevronDownIcon as c } from "lucide-react";
|
|
7
|
-
//#region src/components/ui/accordion.tsx
|
|
8
|
-
function l({ ...e }) {
|
|
9
|
-
return /* @__PURE__ */ o(r, {
|
|
10
|
-
"data-slot": "accordion",
|
|
11
|
-
...e
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
function u({ className: e, ...t }) {
|
|
15
|
-
return /* @__PURE__ */ o(n, {
|
|
16
|
-
"data-slot": "accordion-item",
|
|
17
|
-
className: a("border-b last:border-b-0", e),
|
|
18
|
-
...t
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
function d({ className: e, children: n, ...r }) {
|
|
22
|
-
return /* @__PURE__ */ o(t, {
|
|
23
|
-
className: "flex",
|
|
24
|
-
children: /* @__PURE__ */ s(i, {
|
|
25
|
-
"data-slot": "accordion-trigger",
|
|
26
|
-
className: a("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 cursor-pointer items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180", e),
|
|
27
|
-
...r,
|
|
28
|
-
children: [n, /* @__PURE__ */ o(c, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" })]
|
|
29
|
-
})
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
function f({ className: t, children: n, ...r }) {
|
|
33
|
-
return /* @__PURE__ */ o(e, {
|
|
34
|
-
"data-slot": "accordion-content",
|
|
35
|
-
className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
|
|
36
|
-
...r,
|
|
37
|
-
children: /* @__PURE__ */ o("div", {
|
|
38
|
-
className: a("pt-0 pb-4", t),
|
|
39
|
-
children: n
|
|
40
|
-
})
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
//#endregion
|
|
44
|
-
export { l as Accordion, f as AccordionContent, u as AccordionItem, d as AccordionTrigger };
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { cn as e } from "../../lib/utils.js";
|
|
3
|
-
import { Action as t, Cancel as n, Content2 as r, Description2 as i, Overlay2 as a, Portal2 as o, Root2 as s, Title2 as c, Trigger2 as l } from "../../../node_modules/.pnpm/@radix-ui_react-alert-dialo_0211f1deb04a7e512244dbbc3e4765ed/node_modules/@radix-ui/react-alert-dialog/dist/index.js";
|
|
4
|
-
import { buttonVariants as u } from "./button.js";
|
|
5
|
-
import * as d from "react";
|
|
6
|
-
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
7
|
-
//#region src/components/ui/alert-dialog.tsx
|
|
8
|
-
var m = s, h = d.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ f(l, {
|
|
9
|
-
className: e("cursor-pointer", t),
|
|
10
|
-
...n,
|
|
11
|
-
ref: r
|
|
12
|
-
}));
|
|
13
|
-
h.displayName = l.displayName;
|
|
14
|
-
var g = o, _ = d.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ f(a, {
|
|
15
|
-
className: e("fixed inset-0 z-50 bg-black/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", t),
|
|
16
|
-
...n,
|
|
17
|
-
ref: r
|
|
18
|
-
}));
|
|
19
|
-
_.displayName = a.displayName;
|
|
20
|
-
var v = d.forwardRef(({ className: t, ...n }, i) => /* @__PURE__ */ p(g, { children: [/* @__PURE__ */ f(_, {}), /* @__PURE__ */ f(r, {
|
|
21
|
-
ref: i,
|
|
22
|
-
className: e("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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 sm:rounded-lg", t),
|
|
23
|
-
...n
|
|
24
|
-
})] }));
|
|
25
|
-
v.displayName = r.displayName;
|
|
26
|
-
var y = ({ className: t, ...n }) => /* @__PURE__ */ f("div", {
|
|
27
|
-
className: e("flex flex-col space-y-2 text-center sm:text-left", t),
|
|
28
|
-
...n
|
|
29
|
-
});
|
|
30
|
-
y.displayName = "AlertDialogHeader";
|
|
31
|
-
var b = ({ className: t, ...n }) => /* @__PURE__ */ f("div", {
|
|
32
|
-
className: e("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", t),
|
|
33
|
-
...n
|
|
34
|
-
});
|
|
35
|
-
b.displayName = "AlertDialogFooter";
|
|
36
|
-
var x = d.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ f(c, {
|
|
37
|
-
ref: r,
|
|
38
|
-
className: e("text-lg font-semibold", t),
|
|
39
|
-
...n
|
|
40
|
-
}));
|
|
41
|
-
x.displayName = c.displayName;
|
|
42
|
-
var S = d.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ f(i, {
|
|
43
|
-
ref: r,
|
|
44
|
-
className: e("text-sm text-muted-foreground", t),
|
|
45
|
-
...n
|
|
46
|
-
}));
|
|
47
|
-
S.displayName = i.displayName;
|
|
48
|
-
var C = d.forwardRef(({ className: n, ...r }, i) => /* @__PURE__ */ f(t, {
|
|
49
|
-
ref: i,
|
|
50
|
-
className: e(u(), n),
|
|
51
|
-
...r
|
|
52
|
-
}));
|
|
53
|
-
C.displayName = t.displayName;
|
|
54
|
-
var w = d.forwardRef(({ className: t, ...r }, i) => /* @__PURE__ */ f(n, {
|
|
55
|
-
ref: i,
|
|
56
|
-
className: e(u({ variant: "outline" }), "mt-2 sm:mt-0", t),
|
|
57
|
-
...r
|
|
58
|
-
}));
|
|
59
|
-
w.displayName = n.displayName;
|
|
60
|
-
//#endregion
|
|
61
|
-
export { m as AlertDialog, C as AlertDialogAction, w as AlertDialogCancel, v as AlertDialogContent, S as AlertDialogDescription, b as AlertDialogFooter, y as AlertDialogHeader, _ as AlertDialogOverlay, g as AlertDialogPortal, x as AlertDialogTitle, h as AlertDialogTrigger };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { Root as e } from "../../../node_modules/.pnpm/@radix-ui_react-aspect-rati_62430dda2e5090a076c492dea1ecc5d8/node_modules/@radix-ui/react-aspect-ratio/dist/index.js";
|
|
3
|
-
//#region src/components/ui/aspect-ratio.tsx
|
|
4
|
-
var t = e;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { t as AspectRatio };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { cn as e } from "../../lib/utils.js";
|
|
3
|
-
import { Fallback as t, Image as n, Root as r } from "../../../node_modules/.pnpm/@radix-ui_react-avatar@1.1._d460f1c45278b86e7424fb8ae25577de/node_modules/@radix-ui/react-avatar/dist/index.js";
|
|
4
|
-
import "react";
|
|
5
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
6
|
-
//#region src/components/ui/avatar.tsx
|
|
7
|
-
function a({ className: t, ...n }) {
|
|
8
|
-
return /* @__PURE__ */ i(r, {
|
|
9
|
-
"data-slot": "avatar",
|
|
10
|
-
className: e("relative flex size-8 shrink-0 overflow-hidden rounded-full", t),
|
|
11
|
-
...n
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
function o({ className: t, ...r }) {
|
|
15
|
-
return /* @__PURE__ */ i(n, {
|
|
16
|
-
"data-slot": "avatar-image",
|
|
17
|
-
className: e("aspect-square size-full", t),
|
|
18
|
-
...r
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
function s({ className: n, ...r }) {
|
|
22
|
-
return /* @__PURE__ */ i(t, {
|
|
23
|
-
"data-slot": "avatar-fallback",
|
|
24
|
-
className: e("bg-muted flex size-full items-center justify-center rounded-full", n),
|
|
25
|
-
...r
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
//#endregion
|
|
29
|
-
export { a as Avatar, s as AvatarFallback, o as AvatarImage };
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { Slot as e } from "../../../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";
|
|
2
|
-
import { cn as t } from "../../lib/utils.js";
|
|
3
|
-
import * as n from "react";
|
|
4
|
-
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
-
import { ChevronRight as a, MoreHorizontal as o } from "lucide-react";
|
|
6
|
-
//#region src/components/ui/breadcrumb.tsx
|
|
7
|
-
var s = n.forwardRef(({ ...e }, t) => /* @__PURE__ */ r("nav", {
|
|
8
|
-
ref: t,
|
|
9
|
-
"aria-label": "breadcrumb",
|
|
10
|
-
...e
|
|
11
|
-
}));
|
|
12
|
-
s.displayName = "Breadcrumb";
|
|
13
|
-
var c = n.forwardRef(({ className: e, ...n }, i) => /* @__PURE__ */ r("ol", {
|
|
14
|
-
ref: i,
|
|
15
|
-
className: t("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5", e),
|
|
16
|
-
...n
|
|
17
|
-
}));
|
|
18
|
-
c.displayName = "BreadcrumbList";
|
|
19
|
-
var l = n.forwardRef(({ className: e, ...n }, i) => /* @__PURE__ */ r("li", {
|
|
20
|
-
ref: i,
|
|
21
|
-
className: t("inline-flex items-center gap-1.5", e),
|
|
22
|
-
...n
|
|
23
|
-
}));
|
|
24
|
-
l.displayName = "BreadcrumbItem";
|
|
25
|
-
var u = n.forwardRef(({ asChild: n, className: i, ...a }, o) => /* @__PURE__ */ r(n ? e : "a", {
|
|
26
|
-
ref: o,
|
|
27
|
-
className: t("transition-colors hover:text-foreground", i),
|
|
28
|
-
...a
|
|
29
|
-
}));
|
|
30
|
-
u.displayName = "BreadcrumbLink";
|
|
31
|
-
var d = n.forwardRef(({ className: e, ...n }, i) => /* @__PURE__ */ r("span", {
|
|
32
|
-
ref: i,
|
|
33
|
-
role: "link",
|
|
34
|
-
"aria-disabled": "true",
|
|
35
|
-
"aria-current": "page",
|
|
36
|
-
className: t("font-normal text-foreground", e),
|
|
37
|
-
...n
|
|
38
|
-
}));
|
|
39
|
-
d.displayName = "BreadcrumbPage";
|
|
40
|
-
var f = ({ children: e, className: n, ...i }) => /* @__PURE__ */ r("li", {
|
|
41
|
-
role: "presentation",
|
|
42
|
-
"aria-hidden": "true",
|
|
43
|
-
className: t("[&>svg]:w-3.5 [&>svg]:h-3.5", n),
|
|
44
|
-
...i,
|
|
45
|
-
children: e ?? /* @__PURE__ */ r(a, {})
|
|
46
|
-
});
|
|
47
|
-
f.displayName = "BreadcrumbSeparator";
|
|
48
|
-
var p = ({ className: e, ...n }) => /* @__PURE__ */ i("span", {
|
|
49
|
-
role: "presentation",
|
|
50
|
-
"aria-hidden": "true",
|
|
51
|
-
className: t("flex h-9 w-9 items-center justify-center", e),
|
|
52
|
-
...n,
|
|
53
|
-
children: [/* @__PURE__ */ r(o, { className: "h-4 w-4" }), /* @__PURE__ */ r("span", {
|
|
54
|
-
className: "sr-only",
|
|
55
|
-
children: "More"
|
|
56
|
-
})]
|
|
57
|
-
});
|
|
58
|
-
p.displayName = "BreadcrumbElipssis";
|
|
59
|
-
//#endregion
|
|
60
|
-
export { s as Breadcrumb, p as BreadcrumbEllipsis, l as BreadcrumbItem, u as BreadcrumbLink, c as BreadcrumbList, d as BreadcrumbPage, f as BreadcrumbSeparator };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Slot as e } from "../../../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";
|
|
2
|
-
import { cn as t } from "../../lib/utils.js";
|
|
3
|
-
import { cva as n } from "../../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js";
|
|
4
|
-
import { Separator as r } from "./separator.js";
|
|
5
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
6
|
-
//#region src/components/ui/button-group.tsx
|
|
7
|
-
var a = n("flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1", {
|
|
8
|
-
variants: { orientation: {
|
|
9
|
-
horizontal: "[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",
|
|
10
|
-
vertical: "flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"
|
|
11
|
-
} },
|
|
12
|
-
defaultVariants: { orientation: "horizontal" }
|
|
13
|
-
});
|
|
14
|
-
function o({ className: e, orientation: n, ...r }) {
|
|
15
|
-
return /* @__PURE__ */ i("div", {
|
|
16
|
-
role: "group",
|
|
17
|
-
"data-slot": "button-group",
|
|
18
|
-
"data-orientation": n,
|
|
19
|
-
className: t(a({ orientation: n }), e),
|
|
20
|
-
...r
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
function s({ className: n, asChild: r = !1, ...a }) {
|
|
24
|
-
return /* @__PURE__ */ i(r ? e : "div", {
|
|
25
|
-
className: t("bg-muted shadow-xs flex items-center gap-2 rounded-md border px-4 text-sm font-medium [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none", n),
|
|
26
|
-
...a
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
function c({ className: e, orientation: n = "vertical", ...a }) {
|
|
30
|
-
return /* @__PURE__ */ i(r, {
|
|
31
|
-
"data-slot": "button-group-separator",
|
|
32
|
-
orientation: n,
|
|
33
|
-
className: t("bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto", e),
|
|
34
|
-
...a
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
//#endregion
|
|
38
|
-
export { o as ButtonGroup, c as ButtonGroupSeparator, s as ButtonGroupText, a as buttonGroupVariants };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { CollapsibleContent as e, CollapsibleTrigger as t, Root as n } from "../../../node_modules/.pnpm/@radix-ui_react-collapsible_d381d44d4b8a6d58d9dfaae3a0126ca3/node_modules/@radix-ui/react-collapsible/dist/index.js";
|
|
3
|
-
import { cn as r } from "../../lib/utils.js";
|
|
4
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
5
|
-
//#region src/components/ui/collapsible.tsx
|
|
6
|
-
function a({ ...e }) {
|
|
7
|
-
return /* @__PURE__ */ i(n, {
|
|
8
|
-
"data-slot": "collapsible",
|
|
9
|
-
...e
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
function o({ className: e, ...n }) {
|
|
13
|
-
return /* @__PURE__ */ i(t, {
|
|
14
|
-
"data-slot": "collapsible-trigger",
|
|
15
|
-
className: r("cursor-pointer", e),
|
|
16
|
-
...n
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
function s({ ...t }) {
|
|
20
|
-
return /* @__PURE__ */ i(e, {
|
|
21
|
-
"data-slot": "collapsible-content",
|
|
22
|
-
...t
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
//#endregion
|
|
26
|
-
export { a as Collapsible, s as CollapsibleContent, o as CollapsibleTrigger };
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { Slot as e } from "../../../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";
|
|
3
|
-
import { cn as t } from "../../lib/utils.js";
|
|
4
|
-
import { Label as n } from "./label.js";
|
|
5
|
-
import * as r from "react";
|
|
6
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
7
|
-
import { Controller as a, FormProvider as o, useFormContext as s, useFormState as c } from "react-hook-form";
|
|
8
|
-
//#region src/components/ui/form.tsx
|
|
9
|
-
var l = o, u = r.createContext({}), d = ({ ...e }) => /* @__PURE__ */ i(u.Provider, {
|
|
10
|
-
value: { name: e.name },
|
|
11
|
-
children: /* @__PURE__ */ i(a, { ...e })
|
|
12
|
-
}), f = () => {
|
|
13
|
-
let e = r.useContext(u), t = r.useContext(p), { getFieldState: n } = s(), i = c({ name: e.name }), a = n(e.name, i);
|
|
14
|
-
if (!e) throw Error("useFormField should be used within <FormField>");
|
|
15
|
-
let { id: o } = t;
|
|
16
|
-
return {
|
|
17
|
-
id: o,
|
|
18
|
-
name: e.name,
|
|
19
|
-
formItemId: `${o}-form-item`,
|
|
20
|
-
formDescriptionId: `${o}-form-item-description`,
|
|
21
|
-
formMessageId: `${o}-form-item-message`,
|
|
22
|
-
...a
|
|
23
|
-
};
|
|
24
|
-
}, p = r.createContext({});
|
|
25
|
-
function m({ className: e, ...n }) {
|
|
26
|
-
let a = r.useId();
|
|
27
|
-
return /* @__PURE__ */ i(p.Provider, {
|
|
28
|
-
value: { id: a },
|
|
29
|
-
children: /* @__PURE__ */ i("div", {
|
|
30
|
-
"data-slot": "form-item",
|
|
31
|
-
className: t("grid gap-2", e),
|
|
32
|
-
...n
|
|
33
|
-
})
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
function h({ className: e, ...r }) {
|
|
37
|
-
let { error: a, formItemId: o } = f();
|
|
38
|
-
return /* @__PURE__ */ i(n, {
|
|
39
|
-
"data-slot": "form-label",
|
|
40
|
-
"data-error": !!a,
|
|
41
|
-
className: t("data-[error=true]:text-destructive", e),
|
|
42
|
-
htmlFor: o,
|
|
43
|
-
...r
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
function g({ ...t }) {
|
|
47
|
-
let { error: n, formItemId: r, formDescriptionId: a, formMessageId: o } = f();
|
|
48
|
-
return /* @__PURE__ */ i(e, {
|
|
49
|
-
"data-slot": "form-control",
|
|
50
|
-
id: r,
|
|
51
|
-
"aria-describedby": n ? `${a} ${o}` : `${a}`,
|
|
52
|
-
"aria-invalid": !!n,
|
|
53
|
-
...t
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
function _({ className: e, ...n }) {
|
|
57
|
-
let { formDescriptionId: r } = f();
|
|
58
|
-
return /* @__PURE__ */ i("p", {
|
|
59
|
-
"data-slot": "form-description",
|
|
60
|
-
id: r,
|
|
61
|
-
className: t("text-muted-foreground text-sm", e),
|
|
62
|
-
...n
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
function v({ className: e, ...n }) {
|
|
66
|
-
let { error: r, formMessageId: a } = f(), o = r ? String(r?.message ?? "") : n.children;
|
|
67
|
-
return o ? /* @__PURE__ */ i("p", {
|
|
68
|
-
"data-slot": "form-message",
|
|
69
|
-
id: a,
|
|
70
|
-
className: t("text-destructive text-sm", e),
|
|
71
|
-
...n,
|
|
72
|
-
children: o
|
|
73
|
-
}) : null;
|
|
74
|
-
}
|
|
75
|
-
//#endregion
|
|
76
|
-
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,116 +0,0 @@
|
|
|
1
|
-
import { Slot as e } from "../../../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";
|
|
2
|
-
import { cn as t } from "../../lib/utils.js";
|
|
3
|
-
import { cva as n } from "../../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js";
|
|
4
|
-
import { Separator as r } from "./separator.js";
|
|
5
|
-
import "react";
|
|
6
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
7
|
-
//#region src/components/ui/item.tsx
|
|
8
|
-
function a({ className: e, ...n }) {
|
|
9
|
-
return /* @__PURE__ */ i("div", {
|
|
10
|
-
role: "list",
|
|
11
|
-
"data-slot": "item-group",
|
|
12
|
-
className: t("group/item-group flex flex-col", e),
|
|
13
|
-
...n
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
function o({ className: e, ...n }) {
|
|
17
|
-
return /* @__PURE__ */ i(r, {
|
|
18
|
-
"data-slot": "item-separator",
|
|
19
|
-
orientation: "horizontal",
|
|
20
|
-
className: t("my-0", e),
|
|
21
|
-
...n
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
var s = n("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: n, variant: r = "default", size: a = "default", asChild: o = !1, ...c }) {
|
|
42
|
-
return /* @__PURE__ */ i(o ? e : "div", {
|
|
43
|
-
"data-slot": "item",
|
|
44
|
-
"data-variant": r,
|
|
45
|
-
"data-size": a,
|
|
46
|
-
className: t(s({
|
|
47
|
-
variant: r,
|
|
48
|
-
size: a,
|
|
49
|
-
className: n
|
|
50
|
-
})),
|
|
51
|
-
...c
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
var l = n("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: e, variant: n = "default", ...r }) {
|
|
63
|
-
return /* @__PURE__ */ i("div", {
|
|
64
|
-
"data-slot": "item-media",
|
|
65
|
-
"data-variant": n,
|
|
66
|
-
className: t(l({
|
|
67
|
-
variant: n,
|
|
68
|
-
className: e
|
|
69
|
-
})),
|
|
70
|
-
...r
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
function d({ className: e, ...n }) {
|
|
74
|
-
return /* @__PURE__ */ i("div", {
|
|
75
|
-
"data-slot": "item-content",
|
|
76
|
-
className: t("flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none", e),
|
|
77
|
-
...n
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
function f({ className: e, ...n }) {
|
|
81
|
-
return /* @__PURE__ */ i("div", {
|
|
82
|
-
"data-slot": "item-title",
|
|
83
|
-
className: t("flex w-fit items-center gap-2 text-sm font-medium leading-snug", e),
|
|
84
|
-
...n
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
function p({ className: e, ...n }) {
|
|
88
|
-
return /* @__PURE__ */ i("p", {
|
|
89
|
-
"data-slot": "item-description",
|
|
90
|
-
className: t("text-muted-foreground line-clamp-2 text-balance text-sm font-normal leading-normal", "[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4", e),
|
|
91
|
-
...n
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
function m({ className: e, ...n }) {
|
|
95
|
-
return /* @__PURE__ */ i("div", {
|
|
96
|
-
"data-slot": "item-actions",
|
|
97
|
-
className: t("flex items-center gap-2", e),
|
|
98
|
-
...n
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
function h({ className: e, ...n }) {
|
|
102
|
-
return /* @__PURE__ */ i("div", {
|
|
103
|
-
"data-slot": "item-header",
|
|
104
|
-
className: t("flex basis-full items-center justify-between gap-2", e),
|
|
105
|
-
...n
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
function g({ className: e, ...n }) {
|
|
109
|
-
return /* @__PURE__ */ i("div", {
|
|
110
|
-
"data-slot": "item-footer",
|
|
111
|
-
className: t("flex basis-full items-center justify-between gap-2", e),
|
|
112
|
-
...n
|
|
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 };
|