@inspirare/design-system 0.0.18 → 0.0.20
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/index.css +1 -1
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.js +359 -0
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +328 -0
- package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1._f1bed12861163fa290e602839f1ebdb9/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +212 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +97 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +106 -0
- package/dist/node_modules/.pnpm/@radix-ui_number@1.1.2/node_modules/@radix-ui/number/dist/index.js +6 -0
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.4/node_modules/@radix-ui/primitive/dist/index.js +8 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-accordion@1_90771884ca9639bf31e5f01b1faf83e4/node_modules/@radix-ui/react-accordion/dist/index.js +195 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-alert-dialo_0211f1deb04a7e512244dbbc3e4765ed/node_modules/@radix-ui/react-alert-dialog/dist/index.js +119 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-arrow@1.1.9_b34b7156178de4198a23e93f83c57da5/node_modules/@radix-ui/react-arrow/dist/index.js +20 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-aspect-rati_62430dda2e5090a076c492dea1ecc5d8/node_modules/@radix-ui/react-aspect-ratio/dist/index.js +31 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-avatar@1.1._d460f1c45278b86e7424fb8ae25577de/node_modules/@radix-ui/react-avatar/dist/index.js +73 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-checkbox@1._e21be6412c310c083d6755285c4c1ad9/node_modules/@radix-ui/react-checkbox/dist/index.js +158 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-collapsible_d381d44d4b8a6d58d9dfaae3a0126ca3/node_modules/@radix-ui/react-collapsible/dist/index.js +97 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-collection@_9d7b7379fb7a1e56af9d4a8d107ecba8/node_modules/@radix-ui/react-collection/dist/index.js +62 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-compose-ref_1124f78b370d43bfeceaaa9b791be73d/node_modules/@radix-ui/react-compose-refs/dist/index.js +25 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-context-men_f76d1e5eaec57e990fe72d3c41a037df/node_modules/@radix-ui/react-context-menu/dist/index.js +240 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1_796eddd33de3050019fa09b10c68d7ca/node_modules/@radix-ui/react-context/dist/index.js +80 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dialog@1.1._ef5419b1d5914b6ed85fc377af02cd8c/node_modules/@radix-ui/react-dialog/dist/index.js +225 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-direction@1_2157d1ab8e201288009ff536bb11c468/node_modules/@radix-ui/react-direction/dist/index.js +11 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dismissable_1202449cfd75d4d3d4e876187986c0d8/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +108 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dropdown-me_9dd0889a66ea847559fd572aaa20379b/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +225 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-guard_6b3d65e71789b2986a17d5efdb8859bf/node_modules/@radix-ui/react-focus-guards/dist/index.js +22 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope_c97f9e7487f0abcea30d185973e4d237/node_modules/@radix-ui/react-focus-scope/dist/index.js +146 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-hover-card@_8a3f4d1399bacc84c908e03b45229f87/node_modules/@radix-ui/react-hover-card/dist/index.js +161 -0
- 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 +12 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-label@2.1.9_386dd2eabe41e70ee233c5790da58dd5/node_modules/@radix-ui/react-label/dist/index.js +16 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.1.17_cc73edd868dbfc82392e3731b66f2e59/node_modules/@radix-ui/react-menu/dist/index.js +563 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-menubar@1.1_52e1207bf5981387ca85fb7a6f7b2195/node_modules/@radix-ui/react-menubar/dist/index.js +312 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-navigation-_ce246f1abffb4c1bd00bc4d15b1887f5/node_modules/@radix-ui/react-navigation-menu/dist/index.js +553 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-popover@1.1_0f96f9f03b66af70568af721c965c5cd/node_modules/@radix-ui/react-popover/dist/index.js +199 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.3._bd7668c1d3a757f9e8c97f0d7e635b5d/node_modules/@radix-ui/react-popper/dist/index.js +203 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1._32b1caf40ac61f8d30d412d28d60b4ca/node_modules/@radix-ui/react-portal/dist/index.js +19 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-presence@1._dc6e30df35507eb8a116c12c3da26e18/node_modules/@radix-ui/react-presence/dist/index.js +85 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2_9b6ae4cdaf3918ddbf0b21069e38e2ef/node_modules/@radix-ui/react-primitive/dist/index.js +41 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-progress@1._4cd7f31ebaa5416f0f0f54265ec22793/node_modules/@radix-ui/react-progress/dist/index.js +71 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-radio-group_385226f717d657e4aea3688d6214f1c0/node_modules/@radix-ui/react-radio-group/dist/index.js +249 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-roving-focu_d783d3abe701a7f2fb2c68867b8f1f65/node_modules/@radix-ui/react-roving-focus/dist/index.js +154 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-select@2.3._b9232b5aa23e604443839e7a081b7527/node_modules/@radix-ui/react-select/dist/index.js +727 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-separator@1_f5efb6a4d38fd7cb82808cb6f7a6326a/node_modules/@radix-ui/react-separator/dist/index.js +23 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-slider@1.4._cfb70bb4d45c3eedb16b2d4d4cf80f46/node_modules/@radix-ui/react-slider/dist/index.js +404 -0
- 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 +71 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-switch@1.3._d2f9574497ecbe08e0e7c2298fb35dc1/node_modules/@radix-ui/react-switch/dist/index.js +138 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-tabs@1.1.14_769bbb0130198553b196f258bd99ab92/node_modules/@radix-ui/react-tabs/dist/index.js +120 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle-grou_9d4cd233d31c4687b287c174e894620a/node_modules/@radix-ui/react-toggle-group/dist/index.js +125 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle@1.1._afb5f705be3deb4ba78b89b6c70d5cf9/node_modules/@radix-ui/react-toggle/dist/index.js +30 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-tooltip@1.2_02a5bba0cb45f3ddbe548efab47eabcc/node_modules/@radix-ui/react-tooltip/dist/index.js +351 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-callbac_5106d65c013fadfe178f87486239c7af/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +10 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-control_e3b0d353471f209a120bf58c8d35c552/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +45 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-_c83bcf92add652965a36806e6d79891c/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +14 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-is-hydr_d8b55bd05f5d50f7ea21f52744760552/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +19 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-_ad41f999ca2019252b887df955038ce1/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +5 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-previou_58b78c95af3b98dc4c1bc8bce73c779d/node_modules/@radix-ui/react-use-previous/dist/index.js +11 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1._4b75a7cfb879b922004e7a6caa492077/node_modules/@radix-ui/react-use-size/dist/index.js +29 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-visually-hi_fbf0dd0d68bb58b2410fc7a153ed1d9c/node_modules/@radix-ui/react-visually-hidden/dist/index.js +27 -0
- package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js +46 -0
- package/dist/node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js +33 -0
- package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js +7 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3_24279af7608b4a4e9fe00320b3c0cae7/node_modules/react-remove-scroll-bar/dist/es2015/component.js +70 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3_24279af7608b4a4e9fe00320b3c0cae7/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +4 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3_24279af7608b4a4e9fe00320b3c0cae7/node_modules/react-remove-scroll-bar/dist/es2015/index.js +3 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3_24279af7608b4a4e9fe00320b3c0cae7/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +27 -0
- 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 +14 -0
- 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 +116 -0
- 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 +52 -0
- 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 +13 -0
- 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 +52 -0
- 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 +5 -0
- 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 +7 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_64be49a27fe392764e1764f59e110241/node_modules/react-style-singleton/dist/es2015/component.js +11 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_64be49a27fe392764e1764f59e110241/node_modules/react-style-singleton/dist/es2015/hook.js +15 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_64be49a27fe392764e1764f59e110241/node_modules/react-style-singleton/dist/es2015/index.js +3 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_64be49a27fe392764e1764f59e110241/node_modules/react-style-singleton/dist/es2015/singleton.js +28 -0
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js +19 -0
- 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 +6 -0
- 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 +26 -0
- 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 +22 -0
- 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 +16 -0
- 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 +69 -0
- package/dist/src/components/ui/accessibility-improvements.js +60 -0
- package/dist/src/components/ui/accordion.js +44 -0
- package/dist/src/components/ui/alert-dialog.js +61 -0
- package/dist/src/components/ui/alert.js +32 -0
- package/dist/src/components/ui/aspect-ratio.js +6 -0
- package/dist/src/components/ui/avatar.js +29 -0
- package/dist/src/components/ui/badge.js +24 -0
- package/dist/src/components/ui/breadcrumb.js +60 -0
- package/dist/src/components/ui/button-group.js +38 -0
- package/dist/src/components/ui/button.js +41 -0
- package/dist/src/components/ui/calendar.js +89 -0
- package/dist/src/components/ui/card.js +55 -0
- package/dist/src/components/ui/carousel.js +116 -0
- package/dist/src/components/ui/chart.js +128 -0
- package/dist/src/components/ui/checkbox.js +21 -0
- package/dist/src/components/ui/collapsible.js +26 -0
- package/dist/src/components/ui/color-picker.js +133 -0
- package/dist/src/components/ui/combobox.js +42 -0
- package/dist/src/components/ui/command.js +86 -0
- package/dist/src/components/ui/context-menu.js +72 -0
- package/dist/src/components/ui/dialog.js +88 -0
- package/dist/src/components/ui/drawer.js +80 -0
- package/dist/src/components/ui/dropdown-menu.js +124 -0
- package/dist/src/components/ui/empty.js +59 -0
- package/dist/src/components/ui/field.js +111 -0
- package/dist/src/components/ui/form.js +76 -0
- package/dist/src/components/ui/hover-card.js +33 -0
- package/dist/src/components/ui/input-group.js +78 -0
- package/dist/src/components/ui/input-otp.js +42 -0
- package/dist/src/components/ui/input.js +14 -0
- package/dist/src/components/ui/item.js +116 -0
- package/dist/src/components/ui/kbd.js +19 -0
- package/dist/src/components/ui/label.js +15 -0
- package/dist/src/components/ui/menubar.js +105 -0
- package/dist/src/components/ui/navigation-menu.js +58 -0
- package/dist/src/components/ui/pagination.js +62 -0
- package/dist/src/components/ui/popover.js +36 -0
- package/dist/src/components/ui/progress.js +20 -0
- package/dist/src/components/ui/radio-group.js +27 -0
- package/dist/src/components/ui/resizable.js +19 -0
- package/dist/src/components/ui/scroll-area.js +18 -0
- package/dist/src/components/ui/select.js +96 -0
- package/dist/src/components/ui/separator.js +17 -0
- package/dist/src/components/ui/sheet.js +84 -0
- package/dist/src/components/ui/sidebar.js +326 -0
- package/dist/src/components/ui/skeleton.js +49 -0
- package/dist/src/components/ui/slider.js +36 -0
- package/dist/src/components/ui/sonner.js +20 -0
- package/dist/src/components/ui/spinner.js +14 -0
- package/dist/src/components/ui/switch.js +20 -0
- package/dist/src/components/ui/table.js +67 -0
- package/dist/src/components/ui/tabs.js +36 -0
- package/dist/src/components/ui/textarea.js +13 -0
- package/dist/src/components/ui/theme-toggle.js +56 -0
- package/dist/src/components/ui/toggle-group.js +44 -0
- package/dist/src/components/ui/toggle.js +37 -0
- package/dist/src/components/ui/tooltip.js +37 -0
- package/dist/src/hooks/use-mobile.js +14 -0
- package/dist/src/index.js +61 -0
- package/dist/src/lib/utils.js +8 -0
- package/package.json +9 -6
- package/src/index.css +9 -42
- package/dist/index.js +0 -22051
|
@@ -0,0 +1,19 @@
|
|
|
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 };
|
|
@@ -0,0 +1,6 @@
|
|
|
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 };
|
|
@@ -0,0 +1,26 @@
|
|
|
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 };
|
|
@@ -0,0 +1,22 @@
|
|
|
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 };
|
|
@@ -0,0 +1,16 @@
|
|
|
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 };
|
|
@@ -0,0 +1,69 @@
|
|
|
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 };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useEffect as e } from "react";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/ui/accessibility-improvements.tsx
|
|
5
|
+
function n(t, n) {
|
|
6
|
+
e(() => {
|
|
7
|
+
if (!t) return;
|
|
8
|
+
let e = (e) => {
|
|
9
|
+
e.key === "Escape" && n();
|
|
10
|
+
};
|
|
11
|
+
document.addEventListener("keydown", e);
|
|
12
|
+
let r = document.querySelectorAll("button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])");
|
|
13
|
+
return r.length > 0 && r[0].focus(), () => {
|
|
14
|
+
document.removeEventListener("keydown", e);
|
|
15
|
+
};
|
|
16
|
+
}, [t, n]);
|
|
17
|
+
}
|
|
18
|
+
function r(t, n, r) {
|
|
19
|
+
e(() => {
|
|
20
|
+
let e = (e) => {
|
|
21
|
+
if (e.target && e.target.getAttribute("role") === "tab") {
|
|
22
|
+
let i = n.findIndex((e) => e.id === t);
|
|
23
|
+
switch (e.key) {
|
|
24
|
+
case "ArrowRight":
|
|
25
|
+
case "ArrowDown":
|
|
26
|
+
e.preventDefault(), r(n[(i + 1) % n.length].id);
|
|
27
|
+
break;
|
|
28
|
+
case "ArrowLeft":
|
|
29
|
+
case "ArrowUp":
|
|
30
|
+
e.preventDefault(), r(n[i === 0 ? n.length - 1 : i - 1].id);
|
|
31
|
+
break;
|
|
32
|
+
case "Home":
|
|
33
|
+
e.preventDefault(), r(n[0].id);
|
|
34
|
+
break;
|
|
35
|
+
case "End":
|
|
36
|
+
e.preventDefault(), r(n[n.length - 1].id);
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
42
|
+
}, [
|
|
43
|
+
t,
|
|
44
|
+
n,
|
|
45
|
+
r
|
|
46
|
+
]);
|
|
47
|
+
}
|
|
48
|
+
function i({ message: e, priority: n = "polite" }) {
|
|
49
|
+
return /* @__PURE__ */ t("div", {
|
|
50
|
+
"aria-live": n,
|
|
51
|
+
"aria-atomic": "true",
|
|
52
|
+
className: "sr-only",
|
|
53
|
+
children: e
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
function a(e, t) {
|
|
57
|
+
return `${e.size} de ${t} seções obrigatórias completas`;
|
|
58
|
+
}
|
|
59
|
+
//#endregion
|
|
60
|
+
export { i as ScreenReaderAnnouncement, n as useModalAccessibility, a as useProgressAnnouncement, r as useTabKeyboardNavigation };
|
|
@@ -0,0 +1,44 @@
|
|
|
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 };
|
|
@@ -0,0 +1,61 @@
|
|
|
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 };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { cn as e } from "../../lib/utils.js";
|
|
2
|
+
import { cva as t } from "../../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js";
|
|
3
|
+
import * as n from "react";
|
|
4
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/ui/alert.tsx
|
|
6
|
+
var i = t("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground", {
|
|
7
|
+
variants: { variant: {
|
|
8
|
+
default: "bg-background text-foreground",
|
|
9
|
+
destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"
|
|
10
|
+
} },
|
|
11
|
+
defaultVariants: { variant: "default" }
|
|
12
|
+
}), a = n.forwardRef(({ className: t, variant: n, ...a }, o) => /* @__PURE__ */ r("div", {
|
|
13
|
+
ref: o,
|
|
14
|
+
role: "alert",
|
|
15
|
+
className: e(i({ variant: n }), t),
|
|
16
|
+
...a
|
|
17
|
+
}));
|
|
18
|
+
a.displayName = "Alert";
|
|
19
|
+
var o = n.forwardRef(({ className: t, ...n }, i) => /* @__PURE__ */ r("h5", {
|
|
20
|
+
ref: i,
|
|
21
|
+
className: e("mb-1 font-medium leading-none tracking-tight", t),
|
|
22
|
+
...n
|
|
23
|
+
}));
|
|
24
|
+
o.displayName = "AlertTitle";
|
|
25
|
+
var s = n.forwardRef(({ className: t, ...n }, i) => /* @__PURE__ */ r("div", {
|
|
26
|
+
ref: i,
|
|
27
|
+
className: e("text-sm [&_p]:leading-relaxed", t),
|
|
28
|
+
...n
|
|
29
|
+
}));
|
|
30
|
+
s.displayName = "AlertDescription";
|
|
31
|
+
//#endregion
|
|
32
|
+
export { a as Alert, s as AlertDescription, o as AlertTitle };
|
|
@@ -0,0 +1,6 @@
|
|
|
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 };
|
|
@@ -0,0 +1,29 @@
|
|
|
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 };
|
|
@@ -0,0 +1,24 @@
|
|
|
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 "react";
|
|
5
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/ui/badge.tsx
|
|
7
|
+
var i = n("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden", {
|
|
8
|
+
variants: { variant: {
|
|
9
|
+
default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
|
|
10
|
+
secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
|
|
11
|
+
destructive: "border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
12
|
+
outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
|
|
13
|
+
} },
|
|
14
|
+
defaultVariants: { variant: "default" }
|
|
15
|
+
});
|
|
16
|
+
function a({ className: n, variant: a, asChild: o = !1, ...s }) {
|
|
17
|
+
return /* @__PURE__ */ r(o ? e : "span", {
|
|
18
|
+
"data-slot": "badge",
|
|
19
|
+
className: t(i({ variant: a }), n),
|
|
20
|
+
...s
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
export { a as Badge, i as badgeVariants };
|
|
@@ -0,0 +1,60 @@
|
|
|
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 };
|
|
@@ -0,0 +1,38 @@
|
|
|
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 };
|
|
@@ -0,0 +1,41 @@
|
|
|
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 "react";
|
|
5
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/ui/button.tsx
|
|
7
|
+
var i = n("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all cursor-pointer disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", {
|
|
8
|
+
variants: {
|
|
9
|
+
variant: {
|
|
10
|
+
default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
|
|
11
|
+
destructive: "bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
12
|
+
outline: "border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-card dark:border-border dark:hover:bg-accent dark:hover:text-accent-foreground",
|
|
13
|
+
secondary: "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80 dark:bg-secondary/20 dark:text-secondary-foreground dark:hover:bg-secondary/30",
|
|
14
|
+
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent dark:hover:text-accent-foreground",
|
|
15
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
16
|
+
},
|
|
17
|
+
size: {
|
|
18
|
+
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
19
|
+
sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
20
|
+
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
21
|
+
icon: "size-9"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
defaultVariants: {
|
|
25
|
+
variant: "default",
|
|
26
|
+
size: "default"
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
function a({ className: n, variant: a, size: o, asChild: s = !1, ...c }) {
|
|
30
|
+
return /* @__PURE__ */ r(s ? e : "button", {
|
|
31
|
+
"data-slot": "button",
|
|
32
|
+
className: t(i({
|
|
33
|
+
variant: a,
|
|
34
|
+
size: o,
|
|
35
|
+
className: n
|
|
36
|
+
})),
|
|
37
|
+
...c
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
export { a as Button, i as buttonVariants };
|