@profiq/ui 0.1.0
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/README.md +36 -0
- package/dist/components/custom/basic/accordion.d.ts +31 -0
- package/dist/components/custom/basic/accordion.d.ts.map +1 -0
- package/dist/components/custom/basic/accordion.js +68 -0
- package/dist/components/custom/basic/button.d.ts +16 -0
- package/dist/components/custom/basic/button.d.ts.map +1 -0
- package/dist/components/custom/basic/button.js +46 -0
- package/dist/components/custom/basic/input.d.ts +22 -0
- package/dist/components/custom/basic/input.d.ts.map +1 -0
- package/dist/components/custom/basic/input.js +106 -0
- package/dist/components/custom/basic/select.d.ts +18 -0
- package/dist/components/custom/basic/select.d.ts.map +1 -0
- package/dist/components/custom/basic/select.js +67 -0
- package/dist/components/custom/basic/slider.d.ts +24 -0
- package/dist/components/custom/basic/slider.d.ts.map +1 -0
- package/dist/components/custom/basic/slider.js +54 -0
- package/dist/components/custom/basic/switch.d.ts +17 -0
- package/dist/components/custom/basic/switch.d.ts.map +1 -0
- package/dist/components/custom/basic/switch.js +105 -0
- package/dist/components/custom/basic/table.d.ts +9 -0
- package/dist/components/custom/basic/table.d.ts.map +1 -0
- package/dist/components/custom/basic/table.js +74 -0
- package/dist/components/custom/basic/text.d.ts +10 -0
- package/dist/components/custom/basic/text.d.ts.map +1 -0
- package/dist/components/custom/basic/text.js +26 -0
- package/dist/components/custom/basic/textarea.d.ts +7 -0
- package/dist/components/custom/basic/textarea.d.ts.map +1 -0
- package/dist/components/custom/basic/textarea.js +24 -0
- package/dist/components/custom/icons/Backpack.d.ts +3 -0
- package/dist/components/custom/icons/Backpack.d.ts.map +1 -0
- package/dist/components/custom/icons/Backpack.js +28 -0
- package/dist/components/custom/icons/CaretDown.d.ts +3 -0
- package/dist/components/custom/icons/CaretDown.d.ts.map +1 -0
- package/dist/components/custom/icons/CaretDown.js +20 -0
- package/dist/components/custom/icons/CaretUp.d.ts +3 -0
- package/dist/components/custom/icons/CaretUp.d.ts.map +1 -0
- package/dist/components/custom/icons/CaretUp.js +20 -0
- package/dist/components/custom/icons/DotsVertical.d.ts +3 -0
- package/dist/components/custom/icons/DotsVertical.d.ts.map +1 -0
- package/dist/components/custom/icons/DotsVertical.js +28 -0
- package/dist/components/custom/icons/HamburgerMenu.d.ts +3 -0
- package/dist/components/custom/icons/HamburgerMenu.d.ts.map +1 -0
- package/dist/components/custom/icons/HamburgerMenu.js +28 -0
- package/dist/components/custom/icons/Home.d.ts +3 -0
- package/dist/components/custom/icons/Home.d.ts.map +1 -0
- package/dist/components/custom/icons/Home.js +28 -0
- package/dist/components/custom/icons/Icons.d.ts +27 -0
- package/dist/components/custom/icons/Icons.d.ts.map +1 -0
- package/dist/components/custom/icons/Icons.js +23 -0
- package/dist/components/custom/icons/MagnifyingGlass.d.ts +3 -0
- package/dist/components/custom/icons/MagnifyingGlass.d.ts.map +1 -0
- package/dist/components/custom/icons/MagnifyingGlass.js +24 -0
- package/dist/components/custom/icons/Moon.d.ts +3 -0
- package/dist/components/custom/icons/Moon.d.ts.map +1 -0
- package/dist/components/custom/icons/Moon.js +28 -0
- package/dist/components/custom/icons/Sun.d.ts +3 -0
- package/dist/components/custom/icons/Sun.d.ts.map +1 -0
- package/dist/components/custom/icons/Sun.js +28 -0
- package/dist/components/custom/icons/logo/Profiq.d.ts +6 -0
- package/dist/components/custom/icons/logo/Profiq.d.ts.map +1 -0
- package/dist/components/custom/icons/logo/Profiq.js +92 -0
- package/dist/components/custom/icons/logo/logoVariations.d.ts +10 -0
- package/dist/components/custom/icons/logo/logoVariations.d.ts.map +1 -0
- package/dist/components/custom/icons/logo/logoVariations.js +65 -0
- package/dist/components/ui/accordion.d.ts +8 -0
- package/dist/components/ui/accordion.d.ts.map +1 -0
- package/dist/components/ui/accordion.js +65 -0
- package/dist/components/ui/button.d.ts +8 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/button.js +29 -0
- package/dist/components/ui/buttonVariants.d.ts +5 -0
- package/dist/components/ui/buttonVariants.d.ts.map +1 -0
- package/dist/components/ui/buttonVariants.js +33 -0
- package/dist/components/ui/field.d.ts +25 -0
- package/dist/components/ui/field.d.ts.map +1 -0
- package/dist/components/ui/field.js +221 -0
- package/dist/components/ui/input.d.ts +4 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/input.js +22 -0
- package/dist/components/ui/label.d.ts +5 -0
- package/dist/components/ui/label.d.ts.map +1 -0
- package/dist/components/ui/label.js +23 -0
- package/dist/components/ui/select.d.ts +16 -0
- package/dist/components/ui/select.d.ts.map +1 -0
- package/dist/components/ui/select.js +181 -0
- package/dist/components/ui/separator.d.ts +5 -0
- package/dist/components/ui/separator.d.ts.map +1 -0
- package/dist/components/ui/separator.js +27 -0
- package/dist/components/ui/slider.d.ts +13 -0
- package/dist/components/ui/slider.d.ts.map +1 -0
- package/dist/components/ui/slider.js +101 -0
- package/dist/components/ui/switch.d.ts +8 -0
- package/dist/components/ui/switch.d.ts.map +1 -0
- package/dist/components/ui/switch.js +36 -0
- package/dist/components/ui/table.d.ts +11 -0
- package/dist/components/ui/table.d.ts.map +1 -0
- package/dist/components/ui/table.js +115 -0
- package/dist/components/ui/textarea.d.ts +4 -0
- package/dist/components/ui/textarea.d.ts.map +1 -0
- package/dist/components/ui/textarea.js +19 -0
- package/dist/components/ui/tooltip.d.ts +10 -0
- package/dist/components/ui/tooltip.d.ts.map +1 -0
- package/dist/components/ui/tooltip.js +66 -0
- package/dist/fonts/Franklin_Gothic/FRANKGO.ttf +0 -0
- package/dist/fonts/Franklin_Gothic/Franklin Gothic Condensed.ttf +0 -0
- package/dist/fonts/Franklin_Gothic/FranklinGothic.ttf +0 -0
- package/dist/fonts/Franklin_Gothic/FranklinGothicITALIC.ttf +0 -0
- package/dist/fonts/Franklin_Gothic/fgwo____.ttf +0 -0
- package/dist/fonts/Roboto_Slab/LICENSE.txt +202 -0
- package/dist/fonts/Roboto_Slab/README.txt +71 -0
- package/dist/fonts/Roboto_Slab/RobotoSlab-VariableFont_wght.ttf +0 -0
- package/dist/fonts/Roboto_Slab/static/RobotoSlab-Black.ttf +0 -0
- package/dist/fonts/Roboto_Slab/static/RobotoSlab-Bold.ttf +0 -0
- package/dist/fonts/Roboto_Slab/static/RobotoSlab-ExtraBold.ttf +0 -0
- package/dist/fonts/Roboto_Slab/static/RobotoSlab-ExtraLight.ttf +0 -0
- package/dist/fonts/Roboto_Slab/static/RobotoSlab-Light.ttf +0 -0
- package/dist/fonts/Roboto_Slab/static/RobotoSlab-Medium.ttf +0 -0
- package/dist/fonts/Roboto_Slab/static/RobotoSlab-Regular.ttf +0 -0
- package/dist/fonts/Roboto_Slab/static/RobotoSlab-SemiBold.ttf +0 -0
- package/dist/fonts/Roboto_Slab/static/RobotoSlab-Thin.ttf +0 -0
- package/dist/index.css +571 -0
- package/dist/index.js +11 -0
- package/dist/lib/baseProps.d.ts +9 -0
- package/dist/lib/baseProps.d.ts.map +1 -0
- package/dist/lib/baseProps.js +13 -0
- package/dist/lib/buttonVariants.d.ts +3 -0
- package/dist/lib/buttonVariants.d.ts.map +1 -0
- package/dist/lib/hooks/useMakeTestId.d.ts +34 -0
- package/dist/lib/hooks/useMakeTestId.d.ts.map +1 -0
- package/dist/lib/hooks/useMakeTestId.js +26 -0
- package/dist/lib/index.d.ts +6 -0
- package/dist/lib/index.d.ts.map +1 -0
- package/dist/lib/text.types.d.ts +6 -0
- package/dist/lib/text.types.d.ts.map +1 -0
- package/dist/lib/text.types.js +17 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +8 -0
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +532 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +402 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +208 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +130 -0
- package/dist/node_modules/@radix-ui/number/dist/index.js +6 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +9 -0
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +235 -0
- package/dist/node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-primitive/dist/index.js +32 -0
- package/dist/node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +24 -0
- package/dist/node_modules/@radix-ui/react-arrow/node_modules/@radix-ui/react-primitive/dist/index.js +32 -0
- package/dist/node_modules/@radix-ui/react-arrow/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
- package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js +120 -0
- package/dist/node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-primitive/dist/index.js +32 -0
- package/dist/node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +50 -0
- package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +29 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +53 -0
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +10 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +127 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/node_modules/@radix-ui/react-primitive/dist/index.js +36 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +17 -0
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +136 -0
- package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.js +32 -0
- package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +13 -0
- package/dist/node_modules/@radix-ui/react-label/dist/index.js +19 -0
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +219 -0
- package/dist/node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-primitive/dist/index.js +32 -0
- package/dist/node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-portal/node_modules/@radix-ui/react-primitive/dist/index.js +32 -0
- package/dist/node_modules/@radix-ui/react-portal/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +70 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +32 -0
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +848 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-primitive/dist/index.js +32 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
- package/dist/node_modules/@radix-ui/react-separator/dist/index.js +24 -0
- package/dist/node_modules/@radix-ui/react-slider/dist/index.js +436 -0
- package/dist/node_modules/@radix-ui/react-slider/node_modules/@radix-ui/react-primitive/dist/index.js +32 -0
- package/dist/node_modules/@radix-ui/react-slider/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +61 -0
- package/dist/node_modules/@radix-ui/react-switch/dist/index.js +132 -0
- package/dist/node_modules/@radix-ui/react-switch/node_modules/@radix-ui/react-primitive/dist/index.js +32 -0
- package/dist/node_modules/@radix-ui/react-switch/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +338 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-primitive/dist/index.js +32 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.js +55 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +10 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +52 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +14 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +6 -0
- package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +8 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +27 -0
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +32 -0
- package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-primitive/dist/index.js +32 -0
- package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
- package/dist/node_modules/@tanstack/react-table/build/lib/index.js +88 -0
- package/dist/node_modules/@tanstack/table-core/build/lib/index.js +1667 -0
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +52 -0
- package/dist/node_modules/class-variance-authority/dist/index.js +35 -0
- package/dist/node_modules/clsx/dist/clsx.js +16 -0
- package/dist/node_modules/get-nonce/dist/es2015/index.js +7 -0
- package/dist/node_modules/lucide-react/dist/esm/Icon.js +36 -0
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +23 -0
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +14 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/check.js +6 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +6 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-up.js +6 -0
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.js +9 -0
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.js +4 -0
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.js +7 -0
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.js +4 -0
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toPascalCase.js +8 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +11 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +115 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +31 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +16 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +68 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +71 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +7 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +25 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +11 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +15 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +30 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +2924 -0
- package/dist/node_modules/tslib/tslib.es6.js +27 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +6 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +26 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +25 -0
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +18 -0
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +67 -0
- package/package.json +124 -0
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { Root as d, Portal as c, Content as u, Viewport as m, Group as p, Item as f, ItemIndicator as g, ItemText as v, Label as x, ScrollDownButton as h, ScrollUpButton as b, Separator as w, Trigger as y, Icon as S, Value as z } from "../../node_modules/@radix-ui/react-select/dist/index.js";
|
|
4
|
+
import { cn as r } from "../../lib/utils.js";
|
|
5
|
+
import N from "../../node_modules/lucide-react/dist/esm/icons/check.js";
|
|
6
|
+
import l from "../../node_modules/lucide-react/dist/esm/icons/chevron-down.js";
|
|
7
|
+
import _ from "../../node_modules/lucide-react/dist/esm/icons/chevron-up.js";
|
|
8
|
+
function G({
|
|
9
|
+
...e
|
|
10
|
+
}) {
|
|
11
|
+
return /* @__PURE__ */ t(d, { "data-slot": "select", ...e });
|
|
12
|
+
}
|
|
13
|
+
function L({
|
|
14
|
+
...e
|
|
15
|
+
}) {
|
|
16
|
+
return /* @__PURE__ */ t(p, { "data-slot": "select-group", ...e });
|
|
17
|
+
}
|
|
18
|
+
function R({
|
|
19
|
+
...e
|
|
20
|
+
}) {
|
|
21
|
+
return /* @__PURE__ */ t(z, { "data-slot": "select-value", ...e });
|
|
22
|
+
}
|
|
23
|
+
function P({
|
|
24
|
+
className: e,
|
|
25
|
+
size: a = "default",
|
|
26
|
+
children: s,
|
|
27
|
+
...o
|
|
28
|
+
}) {
|
|
29
|
+
return /* @__PURE__ */ n(
|
|
30
|
+
y,
|
|
31
|
+
{
|
|
32
|
+
"data-slot": "select-trigger",
|
|
33
|
+
"data-size": a,
|
|
34
|
+
className: r(
|
|
35
|
+
"border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
36
|
+
e
|
|
37
|
+
),
|
|
38
|
+
...o,
|
|
39
|
+
children: [
|
|
40
|
+
s,
|
|
41
|
+
/* @__PURE__ */ t(S, { asChild: !0, children: /* @__PURE__ */ t(l, { className: "size-4 opacity-50" }) })
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
function q({
|
|
47
|
+
className: e,
|
|
48
|
+
children: a,
|
|
49
|
+
position: s = "item-aligned",
|
|
50
|
+
align: o = "center",
|
|
51
|
+
...i
|
|
52
|
+
}) {
|
|
53
|
+
return /* @__PURE__ */ t(c, { children: /* @__PURE__ */ n(
|
|
54
|
+
u,
|
|
55
|
+
{
|
|
56
|
+
"data-slot": "select-content",
|
|
57
|
+
className: r(
|
|
58
|
+
"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 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
|
|
59
|
+
s === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
60
|
+
e
|
|
61
|
+
),
|
|
62
|
+
position: s,
|
|
63
|
+
align: o,
|
|
64
|
+
...i,
|
|
65
|
+
children: [
|
|
66
|
+
/* @__PURE__ */ t(C, {}),
|
|
67
|
+
/* @__PURE__ */ t(
|
|
68
|
+
m,
|
|
69
|
+
{
|
|
70
|
+
className: r(
|
|
71
|
+
"p-1",
|
|
72
|
+
s === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
|
|
73
|
+
),
|
|
74
|
+
children: a
|
|
75
|
+
}
|
|
76
|
+
),
|
|
77
|
+
/* @__PURE__ */ t(j, {})
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
) });
|
|
81
|
+
}
|
|
82
|
+
function A({
|
|
83
|
+
className: e,
|
|
84
|
+
...a
|
|
85
|
+
}) {
|
|
86
|
+
return /* @__PURE__ */ t(
|
|
87
|
+
x,
|
|
88
|
+
{
|
|
89
|
+
"data-slot": "select-label",
|
|
90
|
+
className: r("text-muted-foreground px-2 py-1.5 text-xs", e),
|
|
91
|
+
...a
|
|
92
|
+
}
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
function E({
|
|
96
|
+
className: e,
|
|
97
|
+
children: a,
|
|
98
|
+
...s
|
|
99
|
+
}) {
|
|
100
|
+
return /* @__PURE__ */ n(
|
|
101
|
+
f,
|
|
102
|
+
{
|
|
103
|
+
"data-slot": "select-item",
|
|
104
|
+
className: r(
|
|
105
|
+
"focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
|
|
106
|
+
e
|
|
107
|
+
),
|
|
108
|
+
...s,
|
|
109
|
+
children: [
|
|
110
|
+
/* @__PURE__ */ t(
|
|
111
|
+
"span",
|
|
112
|
+
{
|
|
113
|
+
"data-slot": "select-item-indicator",
|
|
114
|
+
className: "absolute right-2 flex size-3.5 items-center justify-center",
|
|
115
|
+
children: /* @__PURE__ */ t(g, { children: /* @__PURE__ */ t(N, { className: "size-4" }) })
|
|
116
|
+
}
|
|
117
|
+
),
|
|
118
|
+
/* @__PURE__ */ t(v, { children: a })
|
|
119
|
+
]
|
|
120
|
+
}
|
|
121
|
+
);
|
|
122
|
+
}
|
|
123
|
+
function F({
|
|
124
|
+
className: e,
|
|
125
|
+
...a
|
|
126
|
+
}) {
|
|
127
|
+
return /* @__PURE__ */ t(
|
|
128
|
+
w,
|
|
129
|
+
{
|
|
130
|
+
"data-slot": "select-separator",
|
|
131
|
+
className: r("bg-border pointer-events-none -mx-1 my-1 h-px", e),
|
|
132
|
+
...a
|
|
133
|
+
}
|
|
134
|
+
);
|
|
135
|
+
}
|
|
136
|
+
function C({
|
|
137
|
+
className: e,
|
|
138
|
+
...a
|
|
139
|
+
}) {
|
|
140
|
+
return /* @__PURE__ */ t(
|
|
141
|
+
b,
|
|
142
|
+
{
|
|
143
|
+
"data-slot": "select-scroll-up-button",
|
|
144
|
+
className: r(
|
|
145
|
+
"flex cursor-default items-center justify-center py-1",
|
|
146
|
+
e
|
|
147
|
+
),
|
|
148
|
+
...a,
|
|
149
|
+
children: /* @__PURE__ */ t(_, { className: "size-4" })
|
|
150
|
+
}
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
function j({
|
|
154
|
+
className: e,
|
|
155
|
+
...a
|
|
156
|
+
}) {
|
|
157
|
+
return /* @__PURE__ */ t(
|
|
158
|
+
h,
|
|
159
|
+
{
|
|
160
|
+
"data-slot": "select-scroll-down-button",
|
|
161
|
+
className: r(
|
|
162
|
+
"flex cursor-default items-center justify-center py-1",
|
|
163
|
+
e
|
|
164
|
+
),
|
|
165
|
+
...a,
|
|
166
|
+
children: /* @__PURE__ */ t(l, { className: "size-4" })
|
|
167
|
+
}
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
export {
|
|
171
|
+
G as Select,
|
|
172
|
+
q as SelectContent,
|
|
173
|
+
L as SelectGroup,
|
|
174
|
+
E as SelectItem,
|
|
175
|
+
A as SelectLabel,
|
|
176
|
+
j as SelectScrollDownButton,
|
|
177
|
+
C as SelectScrollUpButton,
|
|
178
|
+
F as SelectSeparator,
|
|
179
|
+
P as SelectTrigger,
|
|
180
|
+
R as SelectValue
|
|
181
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
3
|
+
declare function Separator({ className, orientation, decorative, ...props }: React.ComponentProps<typeof SeparatorPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export { Separator };
|
|
5
|
+
//# sourceMappingURL=separator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"separator.d.ts","sourceRoot":"","sources":["../../../src/components/ui/separator.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAA;AAI/D,iBAAS,SAAS,CAAC,EACjB,SAAS,EACT,WAA0B,EAC1B,UAAiB,EACjB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,IAAI,CAAC,2CAatD;AAED,OAAO,EAAE,SAAS,EAAE,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { Root as n } from "../../node_modules/@radix-ui/react-separator/dist/index.js";
|
|
4
|
+
import { cn as e } from "../../lib/utils.js";
|
|
5
|
+
function f({
|
|
6
|
+
className: t,
|
|
7
|
+
orientation: o = "horizontal",
|
|
8
|
+
decorative: r = !0,
|
|
9
|
+
...a
|
|
10
|
+
}) {
|
|
11
|
+
return /* @__PURE__ */ i(
|
|
12
|
+
n,
|
|
13
|
+
{
|
|
14
|
+
"data-slot": "separator",
|
|
15
|
+
decorative: r,
|
|
16
|
+
orientation: o,
|
|
17
|
+
className: e(
|
|
18
|
+
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
|
|
19
|
+
t
|
|
20
|
+
),
|
|
21
|
+
...a
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
f as Separator
|
|
27
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Slider as SliderPrimitive } from 'radix-ui';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function Slider({ className, defaultValue, thumbClassname, rangeClassname, tooltip, tooltipClassname, prefix, suffix, invalid, value, min, max, ...props }: {
|
|
4
|
+
thumbClassname?: string;
|
|
5
|
+
rangeClassname?: string;
|
|
6
|
+
tooltip?: boolean;
|
|
7
|
+
tooltipClassname?: string;
|
|
8
|
+
prefix?: string;
|
|
9
|
+
suffix?: string;
|
|
10
|
+
invalid?: boolean;
|
|
11
|
+
} & React.ComponentProps<typeof SliderPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export { Slider };
|
|
13
|
+
//# sourceMappingURL=slider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../../src/components/ui/slider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,UAAU,CAAC;AAUrD,iBAAS,MAAM,CAAC,EACd,SAAS,EACT,YAAY,EACZ,cAAmB,EACnB,cAAmB,EACnB,OAAe,EACf,gBAAqB,EACrB,MAAW,EACX,MAAW,EACX,OAAe,EACf,KAAK,EACL,GAAO,EACP,GAAS,EACT,GAAG,KAAK,EACT,EAAE;IACD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,2CAkFpD;AAED,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { jsx as r, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import * as w from "react";
|
|
3
|
+
import { TooltipProvider as y, Tooltip as T, TooltipTrigger as $, TooltipContent as k } from "./tooltip.js";
|
|
4
|
+
import { cn as l } from "../../lib/utils.js";
|
|
5
|
+
import { Root as N, Track as z, Range as A, Thumb as h } from "../../node_modules/@radix-ui/react-slider/dist/index.js";
|
|
6
|
+
function M({
|
|
7
|
+
className: b,
|
|
8
|
+
defaultValue: o,
|
|
9
|
+
thumbClassname: d = "",
|
|
10
|
+
rangeClassname: g = "",
|
|
11
|
+
tooltip: u = !1,
|
|
12
|
+
tooltipClassname: v = "",
|
|
13
|
+
prefix: f = "",
|
|
14
|
+
suffix: m = "",
|
|
15
|
+
invalid: e = !1,
|
|
16
|
+
value: i,
|
|
17
|
+
min: t = 0,
|
|
18
|
+
max: a = 100,
|
|
19
|
+
...p
|
|
20
|
+
}) {
|
|
21
|
+
const s = w.useMemo(
|
|
22
|
+
() => Array.isArray(i) ? i : Array.isArray(o) ? o : [t, a],
|
|
23
|
+
[i, o, t, a]
|
|
24
|
+
);
|
|
25
|
+
return /* @__PURE__ */ r(y, { children: /* @__PURE__ */ c(
|
|
26
|
+
N,
|
|
27
|
+
{
|
|
28
|
+
"data-slot": "slider",
|
|
29
|
+
defaultValue: o,
|
|
30
|
+
value: i,
|
|
31
|
+
min: t,
|
|
32
|
+
max: a,
|
|
33
|
+
className: l(
|
|
34
|
+
"relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",
|
|
35
|
+
b
|
|
36
|
+
),
|
|
37
|
+
...p,
|
|
38
|
+
children: [
|
|
39
|
+
/* @__PURE__ */ r(
|
|
40
|
+
z,
|
|
41
|
+
{
|
|
42
|
+
"data-slot": "slider-track",
|
|
43
|
+
className: l(
|
|
44
|
+
"bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"
|
|
45
|
+
),
|
|
46
|
+
children: /* @__PURE__ */ r(
|
|
47
|
+
A,
|
|
48
|
+
{
|
|
49
|
+
"data-slot": "slider-range",
|
|
50
|
+
className: l(
|
|
51
|
+
"bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full",
|
|
52
|
+
g,
|
|
53
|
+
e ? "bg-[var(--destructive)]" : "bg-[var(--foreground)]"
|
|
54
|
+
)
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
}
|
|
58
|
+
),
|
|
59
|
+
Array.from(
|
|
60
|
+
{ length: s.length },
|
|
61
|
+
(x, n) => u ? /* @__PURE__ */ c(T, { children: [
|
|
62
|
+
/* @__PURE__ */ r($, { asChild: !0, children: /* @__PURE__ */ r(
|
|
63
|
+
h,
|
|
64
|
+
{
|
|
65
|
+
"data-slot": "slider-thumb",
|
|
66
|
+
className: `border-primary ring-ring/50 block size-4 shrink-0 rounded-full border
|
|
67
|
+
bg-white shadow-sm transition-[color,box-shadow]
|
|
68
|
+
hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden
|
|
69
|
+
disabled:pointer-events-none disabled:opacity-50 ${d}
|
|
70
|
+
${e ? "!border-[var(--destructive)] !ring-[var(--destructive)]" : "!border-[var(--foreground)] !ring-[var(--foreground)]"}`
|
|
71
|
+
},
|
|
72
|
+
n
|
|
73
|
+
) }),
|
|
74
|
+
/* @__PURE__ */ r(
|
|
75
|
+
k,
|
|
76
|
+
{
|
|
77
|
+
className: v,
|
|
78
|
+
invalid: e,
|
|
79
|
+
children: `${f}${s[n]}${m}`
|
|
80
|
+
}
|
|
81
|
+
)
|
|
82
|
+
] }) : /* @__PURE__ */ r(
|
|
83
|
+
h,
|
|
84
|
+
{
|
|
85
|
+
"data-slot": "slider-thumb",
|
|
86
|
+
className: `border-primary ring-ring/50 block size-4 shrink-0 rounded-full border
|
|
87
|
+
bg-white shadow-sm transition-[color,box-shadow]
|
|
88
|
+
hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden
|
|
89
|
+
disabled:pointer-events-none disabled:opacity-50 ${d}
|
|
90
|
+
${e ? "!border-[var(--destructive)] !ring-[var(--destructive)]" : "!border-[var(--foreground)] !ring-[var(--foreground)]"}`
|
|
91
|
+
},
|
|
92
|
+
n
|
|
93
|
+
)
|
|
94
|
+
)
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
) });
|
|
98
|
+
}
|
|
99
|
+
export {
|
|
100
|
+
M as Slider
|
|
101
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Switch as SwitchPrimitive } from 'radix-ui';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function Switch({ className, size, thumbColor, ...props }: React.ComponentProps<typeof SwitchPrimitive.Root> & {
|
|
4
|
+
size?: "sm" | "default";
|
|
5
|
+
thumbColor?: string;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { Switch };
|
|
8
|
+
//# sourceMappingURL=switch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../src/components/ui/switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,UAAU,CAAC;AAIrD,iBAAS,MAAM,CAAC,EACd,SAAS,EACT,IAAgB,EAChB,UAAU,EACV,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,GAAG;IACrD,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,2CAoBA;AAED,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { cn as e } from "../../lib/utils.js";
|
|
4
|
+
import { Root as i, Thumb as o } from "../../node_modules/@radix-ui/react-switch/dist/index.js";
|
|
5
|
+
function h({
|
|
6
|
+
className: t,
|
|
7
|
+
size: r = "default",
|
|
8
|
+
thumbColor: s,
|
|
9
|
+
...d
|
|
10
|
+
}) {
|
|
11
|
+
return /* @__PURE__ */ a(
|
|
12
|
+
i,
|
|
13
|
+
{
|
|
14
|
+
"data-slot": "switch",
|
|
15
|
+
"data-size": r,
|
|
16
|
+
className: e(
|
|
17
|
+
"peer data-[state=checked]:bg-primary data-[state=unchecked]:!bg-[var(--secondary)] focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 group/switch inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6",
|
|
18
|
+
t
|
|
19
|
+
),
|
|
20
|
+
...d,
|
|
21
|
+
children: /* @__PURE__ */ a(
|
|
22
|
+
o,
|
|
23
|
+
{
|
|
24
|
+
"data-slot": "switch-thumb",
|
|
25
|
+
className: e(
|
|
26
|
+
"bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block rounded-full ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0",
|
|
27
|
+
s
|
|
28
|
+
)
|
|
29
|
+
}
|
|
30
|
+
)
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
h as Switch
|
|
36
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare function Table({ className, ...props }: React.ComponentProps<"table">): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function TableHeader({ className, ...props }: React.ComponentProps<"thead">): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function TableBody({ className, ...props }: React.ComponentProps<"tbody">): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function TableFooter({ className, ...props }: React.ComponentProps<"tfoot">): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function TableRow({ className, ...props }: React.ComponentProps<"tr">): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function TableHead({ className, ...props }: React.ComponentProps<"th">): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function TableCell({ className, ...props }: React.ComponentProps<"td">): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function TableCaption({ className, ...props }: React.ComponentProps<"caption">): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, };
|
|
11
|
+
//# sourceMappingURL=table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/components/ui/table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,iBAAS,KAAK,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAapE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAQ1E;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAQxE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAW1E;AAED,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAWpE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAWrE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAWrE;AAED,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,2CAQjC;AAED,OAAO,EACL,KAAK,EACL,WAAW,EACX,SAAS,EACT,WAAW,EACX,SAAS,EACT,QAAQ,EACR,SAAS,EACT,YAAY,GACb,CAAA"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { cn as o } from "../../lib/utils.js";
|
|
4
|
+
function s({ className: t, ...e }) {
|
|
5
|
+
return /* @__PURE__ */ a(
|
|
6
|
+
"div",
|
|
7
|
+
{
|
|
8
|
+
"data-slot": "table-container",
|
|
9
|
+
className: "relative w-full overflow-x-auto",
|
|
10
|
+
children: /* @__PURE__ */ a(
|
|
11
|
+
"table",
|
|
12
|
+
{
|
|
13
|
+
"data-slot": "table",
|
|
14
|
+
className: o("w-full caption-bottom text-sm", t),
|
|
15
|
+
...e
|
|
16
|
+
}
|
|
17
|
+
)
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
function d({ className: t, ...e }) {
|
|
22
|
+
return /* @__PURE__ */ a(
|
|
23
|
+
"thead",
|
|
24
|
+
{
|
|
25
|
+
"data-slot": "table-header",
|
|
26
|
+
className: o("[&_tr]:border-b", t),
|
|
27
|
+
...e
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
function c({ className: t, ...e }) {
|
|
32
|
+
return /* @__PURE__ */ a(
|
|
33
|
+
"tbody",
|
|
34
|
+
{
|
|
35
|
+
"data-slot": "table-body",
|
|
36
|
+
className: o("[&_tr:last-child]:border-0", t),
|
|
37
|
+
...e
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
function b({ className: t, ...e }) {
|
|
42
|
+
return /* @__PURE__ */ a(
|
|
43
|
+
"tfoot",
|
|
44
|
+
{
|
|
45
|
+
"data-slot": "table-footer",
|
|
46
|
+
className: o(
|
|
47
|
+
"bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",
|
|
48
|
+
t
|
|
49
|
+
),
|
|
50
|
+
...e
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
function i({ className: t, ...e }) {
|
|
55
|
+
return /* @__PURE__ */ a(
|
|
56
|
+
"tr",
|
|
57
|
+
{
|
|
58
|
+
"data-slot": "table-row",
|
|
59
|
+
className: o(
|
|
60
|
+
"hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",
|
|
61
|
+
t
|
|
62
|
+
),
|
|
63
|
+
...e
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
function m({ className: t, ...e }) {
|
|
68
|
+
return /* @__PURE__ */ a(
|
|
69
|
+
"th",
|
|
70
|
+
{
|
|
71
|
+
"data-slot": "table-head",
|
|
72
|
+
className: o(
|
|
73
|
+
"text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
74
|
+
t
|
|
75
|
+
),
|
|
76
|
+
...e
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
function u({ className: t, ...e }) {
|
|
81
|
+
return /* @__PURE__ */ a(
|
|
82
|
+
"td",
|
|
83
|
+
{
|
|
84
|
+
"data-slot": "table-cell",
|
|
85
|
+
className: o(
|
|
86
|
+
"p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
87
|
+
t
|
|
88
|
+
),
|
|
89
|
+
...e
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
function f({
|
|
94
|
+
className: t,
|
|
95
|
+
...e
|
|
96
|
+
}) {
|
|
97
|
+
return /* @__PURE__ */ a(
|
|
98
|
+
"caption",
|
|
99
|
+
{
|
|
100
|
+
"data-slot": "table-caption",
|
|
101
|
+
className: o("text-muted-foreground mt-4 text-sm", t),
|
|
102
|
+
...e
|
|
103
|
+
}
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
export {
|
|
107
|
+
s as Table,
|
|
108
|
+
c as TableBody,
|
|
109
|
+
f as TableCaption,
|
|
110
|
+
u as TableCell,
|
|
111
|
+
b as TableFooter,
|
|
112
|
+
m as TableHead,
|
|
113
|
+
d as TableHeader,
|
|
114
|
+
i as TableRow
|
|
115
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../../src/components/ui/textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,2CAW1E;AAED,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { cn as t } from "../../lib/utils.js";
|
|
4
|
+
function d({ className: r, ...e }) {
|
|
5
|
+
return /* @__PURE__ */ i(
|
|
6
|
+
"textarea",
|
|
7
|
+
{
|
|
8
|
+
"data-slot": "textarea",
|
|
9
|
+
className: t(
|
|
10
|
+
"border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
11
|
+
r
|
|
12
|
+
),
|
|
13
|
+
...e
|
|
14
|
+
}
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
d as Textarea
|
|
19
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Tooltip as TooltipPrimitive } from 'radix-ui';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function TooltipContent({ className, sideOffset, children, invalid, ...props }: {
|
|
7
|
+
invalid?: boolean;
|
|
8
|
+
} & React.ComponentProps<typeof TooltipPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
|
10
|
+
//# sourceMappingURL=tooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/ui/tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAIvD,iBAAS,eAAe,CAAC,EACvB,aAAiB,EACjB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,QAAQ,CAAC,2CAQxD;AAED,iBAAS,OAAO,CAAC,EACf,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,2CAEpD;AAED,iBAAS,cAAc,CAAC,EACtB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,2CAEvD;AAED,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,UAAc,EACd,QAAQ,EACR,OAAO,EACP,GAAG,KAAK,EACT,EAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,KAAK,CAAC,cAAc,CAC7C,OAAO,gBAAgB,CAAC,OAAO,CAChC,2CAuBA;AAED,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { jsx as o, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { cn as d } from "../../lib/utils.js";
|
|
4
|
+
import { Root as s, Portal as l, Content as f, Arrow as c, Provider as m, Trigger as p } from "../../node_modules/@radix-ui/react-tooltip/dist/index.js";
|
|
5
|
+
function v({
|
|
6
|
+
delayDuration: t = 0,
|
|
7
|
+
...r
|
|
8
|
+
}) {
|
|
9
|
+
return /* @__PURE__ */ o(
|
|
10
|
+
m,
|
|
11
|
+
{
|
|
12
|
+
"data-slot": "tooltip-provider",
|
|
13
|
+
delayDuration: t,
|
|
14
|
+
...r
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
function T({
|
|
19
|
+
...t
|
|
20
|
+
}) {
|
|
21
|
+
return /* @__PURE__ */ o(s, { "data-slot": "tooltip", ...t });
|
|
22
|
+
}
|
|
23
|
+
function z({
|
|
24
|
+
...t
|
|
25
|
+
}) {
|
|
26
|
+
return /* @__PURE__ */ o(p, { "data-slot": "tooltip-trigger", ...t });
|
|
27
|
+
}
|
|
28
|
+
function h({
|
|
29
|
+
className: t,
|
|
30
|
+
sideOffset: r = 0,
|
|
31
|
+
children: i,
|
|
32
|
+
invalid: e,
|
|
33
|
+
...a
|
|
34
|
+
}) {
|
|
35
|
+
return /* @__PURE__ */ o(l, { children: /* @__PURE__ */ n(
|
|
36
|
+
f,
|
|
37
|
+
{
|
|
38
|
+
"data-slot": "tooltip-content",
|
|
39
|
+
sideOffset: r,
|
|
40
|
+
className: d(
|
|
41
|
+
"bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
|
|
42
|
+
t,
|
|
43
|
+
e ? "bg-[var(--destructive)]" : ""
|
|
44
|
+
),
|
|
45
|
+
...a,
|
|
46
|
+
children: [
|
|
47
|
+
i,
|
|
48
|
+
/* @__PURE__ */ o(
|
|
49
|
+
c,
|
|
50
|
+
{
|
|
51
|
+
className: `bg-foreground fill-foreground
|
|
52
|
+
z-50 size-2.5 translate-y-[calc(-50%_-_2px)]
|
|
53
|
+
rotate-45 rounded-[2px]
|
|
54
|
+
${e ? "!fill-[var(--destructive)] !bg-[var(--destructive)]" : ""}`
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
) });
|
|
60
|
+
}
|
|
61
|
+
export {
|
|
62
|
+
T as Tooltip,
|
|
63
|
+
h as TooltipContent,
|
|
64
|
+
v as TooltipProvider,
|
|
65
|
+
z as TooltipTrigger
|
|
66
|
+
};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|