@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,10 @@
|
|
|
1
|
+
export type logoVarUnion = "base" | "green" | "blue" | "full-g-base" | "full-g-white" | "full-g-blue" | "full-b-base" | "full-b-white" | "full-b-green";
|
|
2
|
+
export declare const LogoVariations: Record<string, logoVarUnion>;
|
|
3
|
+
type LogoColors = {
|
|
4
|
+
colorPrimary: string;
|
|
5
|
+
colorSecondary: string;
|
|
6
|
+
colorBackground: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const LOGO_COLOR_MAP: Record<logoVarUnion, LogoColors>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=logoVariations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logoVariations.d.ts","sourceRoot":"","sources":["../../../../../src/components/custom/icons/logo/logoVariations.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GACpB,MAAM,GACN,OAAO,GACP,MAAM,GACN,aAAa,GACb,cAAc,GACd,aAAa,GACb,aAAa,GACb,cAAc,GACd,cAAc,CAAC;AAEnB,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAUvD,CAAC;AAEF,KAAK,UAAU,GAAG;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAQF,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,YAAY,EAAE,UAAU,CAgD3D,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
const r = {
|
|
2
|
+
BASE: "base",
|
|
3
|
+
GREEN: "green",
|
|
4
|
+
BLUE: "blue",
|
|
5
|
+
FULL_G_BASE: "full-g-base",
|
|
6
|
+
FULL_G_WHITE: "full-g-white",
|
|
7
|
+
FULL_G_BLUE: "full-g-blue",
|
|
8
|
+
FULL_B_BASE: "full-b-base",
|
|
9
|
+
FULL_B_WHITE: "full-b-white",
|
|
10
|
+
FULL_B_GREEN: "full-b-green"
|
|
11
|
+
}, o = {
|
|
12
|
+
BLUE: "#002c62",
|
|
13
|
+
GREEN: "#8ec549",
|
|
14
|
+
WHITE: "#ffffff"
|
|
15
|
+
}, l = {
|
|
16
|
+
base: {
|
|
17
|
+
colorPrimary: o.BLUE,
|
|
18
|
+
colorSecondary: o.GREEN,
|
|
19
|
+
colorBackground: ""
|
|
20
|
+
},
|
|
21
|
+
green: {
|
|
22
|
+
colorPrimary: o.GREEN,
|
|
23
|
+
colorSecondary: o.GREEN,
|
|
24
|
+
colorBackground: ""
|
|
25
|
+
},
|
|
26
|
+
blue: {
|
|
27
|
+
colorPrimary: o.BLUE,
|
|
28
|
+
colorSecondary: o.BLUE,
|
|
29
|
+
colorBackground: ""
|
|
30
|
+
},
|
|
31
|
+
"full-g-base": {
|
|
32
|
+
colorPrimary: o.WHITE,
|
|
33
|
+
colorSecondary: o.BLUE,
|
|
34
|
+
colorBackground: o.GREEN
|
|
35
|
+
},
|
|
36
|
+
"full-g-white": {
|
|
37
|
+
colorPrimary: o.WHITE,
|
|
38
|
+
colorSecondary: o.WHITE,
|
|
39
|
+
colorBackground: o.GREEN
|
|
40
|
+
},
|
|
41
|
+
"full-g-blue": {
|
|
42
|
+
colorPrimary: o.BLUE,
|
|
43
|
+
colorSecondary: o.BLUE,
|
|
44
|
+
colorBackground: o.GREEN
|
|
45
|
+
},
|
|
46
|
+
"full-b-base": {
|
|
47
|
+
colorPrimary: o.WHITE,
|
|
48
|
+
colorSecondary: o.GREEN,
|
|
49
|
+
colorBackground: o.BLUE
|
|
50
|
+
},
|
|
51
|
+
"full-b-white": {
|
|
52
|
+
colorPrimary: o.WHITE,
|
|
53
|
+
colorSecondary: o.WHITE,
|
|
54
|
+
colorBackground: o.BLUE
|
|
55
|
+
},
|
|
56
|
+
"full-b-green": {
|
|
57
|
+
colorPrimary: o.GREEN,
|
|
58
|
+
colorSecondary: o.GREEN,
|
|
59
|
+
colorBackground: o.BLUE
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
export {
|
|
63
|
+
l as LOGO_COLOR_MAP,
|
|
64
|
+
r as LogoVariations
|
|
65
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Accordion as AccordionPrimitive } from 'radix-ui';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function Accordion({ ...props }: React.ComponentProps<typeof AccordionPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function AccordionItem({ className, ...props }: React.ComponentProps<typeof AccordionPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function AccordionTrigger({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function AccordionContent({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
|
|
8
|
+
//# sourceMappingURL=accordion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../src/components/ui/accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,SAAS,IAAI,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAI1D,iBAAS,SAAS,CAAC,EACjB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,IAAI,CAAC,2CAEtD;AAED,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,IAAI,CAAC,2CAQtD;AAED,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,OAAO,CAAC,2CAgBzD;AAED,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,OAAO,CAAC,2CAUzD;AAED,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { cn as r } from "../../lib/utils.js";
|
|
4
|
+
import a from "../../node_modules/lucide-react/dist/esm/icons/chevron-down.js";
|
|
5
|
+
import { Root as s, Content as d, Item as c, Header as l, Trigger as m } from "../../node_modules/@radix-ui/react-accordion/dist/index.js";
|
|
6
|
+
function x({
|
|
7
|
+
...t
|
|
8
|
+
}) {
|
|
9
|
+
return /* @__PURE__ */ e(s, { "data-slot": "accordion", ...t });
|
|
10
|
+
}
|
|
11
|
+
function v({
|
|
12
|
+
className: t,
|
|
13
|
+
...o
|
|
14
|
+
}) {
|
|
15
|
+
return /* @__PURE__ */ e(
|
|
16
|
+
c,
|
|
17
|
+
{
|
|
18
|
+
"data-slot": "accordion-item",
|
|
19
|
+
className: r("border-b last:border-b-0", t),
|
|
20
|
+
...o
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
function h({
|
|
25
|
+
className: t,
|
|
26
|
+
children: o,
|
|
27
|
+
...n
|
|
28
|
+
}) {
|
|
29
|
+
return /* @__PURE__ */ e(l, { className: "flex", children: /* @__PURE__ */ i(
|
|
30
|
+
m,
|
|
31
|
+
{
|
|
32
|
+
"data-slot": "accordion-trigger",
|
|
33
|
+
className: r(
|
|
34
|
+
"focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 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",
|
|
35
|
+
t
|
|
36
|
+
),
|
|
37
|
+
...n,
|
|
38
|
+
children: [
|
|
39
|
+
o,
|
|
40
|
+
/* @__PURE__ */ e(a, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" })
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
) });
|
|
44
|
+
}
|
|
45
|
+
function N({
|
|
46
|
+
className: t,
|
|
47
|
+
children: o,
|
|
48
|
+
...n
|
|
49
|
+
}) {
|
|
50
|
+
return /* @__PURE__ */ e(
|
|
51
|
+
d,
|
|
52
|
+
{
|
|
53
|
+
"data-slot": "accordion-content",
|
|
54
|
+
className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
|
|
55
|
+
...n,
|
|
56
|
+
children: /* @__PURE__ */ e("div", { className: r("pt-0 pb-4", t), children: o })
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
export {
|
|
61
|
+
x as Accordion,
|
|
62
|
+
N as AccordionContent,
|
|
63
|
+
v as AccordionItem,
|
|
64
|
+
h as AccordionTrigger
|
|
65
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { buttonVariants } from './buttonVariants';
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
5
|
+
asChild?: boolean;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { Button };
|
|
8
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAI7D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,iBAAS,MAAM,CAAC,EACd,SAAS,EACT,OAAmB,EACnB,IAAgB,EAChB,OAAe,EACf,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,GAC/B,YAAY,CAAC,OAAO,cAAc,CAAC,GAAG;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,2CAeF;AAED,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { Root as f } from "../../node_modules/@radix-ui/react-slot/dist/index.js";
|
|
4
|
+
import { cn as e } from "../../lib/utils.js";
|
|
5
|
+
import { buttonVariants as i } from "./buttonVariants.js";
|
|
6
|
+
function b({
|
|
7
|
+
className: a,
|
|
8
|
+
variant: t = "default",
|
|
9
|
+
size: o = "default",
|
|
10
|
+
asChild: r = !1,
|
|
11
|
+
...m
|
|
12
|
+
}) {
|
|
13
|
+
return /* @__PURE__ */ n(
|
|
14
|
+
r ? f : "button",
|
|
15
|
+
{
|
|
16
|
+
"data-slot": "button",
|
|
17
|
+
"data-variant": t,
|
|
18
|
+
"data-size": o,
|
|
19
|
+
className: e(
|
|
20
|
+
i({ variant: t, size: o, className: a }),
|
|
21
|
+
"overflow-hidden"
|
|
22
|
+
),
|
|
23
|
+
...m
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
b as Button
|
|
29
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const buttonVariants: (props?: {
|
|
2
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link";
|
|
3
|
+
size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg";
|
|
4
|
+
} & import('class-variance-authority/types').ClassProp) => string;
|
|
5
|
+
//# sourceMappingURL=buttonVariants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buttonVariants.d.ts","sourceRoot":"","sources":["../../../src/components/ui/buttonVariants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc;;;iEA+B1B,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { cva as e } from "../../node_modules/class-variance-authority/dist/index.js";
|
|
2
|
+
const i = e(
|
|
3
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all 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 text-white",
|
|
4
|
+
{
|
|
5
|
+
variants: {
|
|
6
|
+
variant: {
|
|
7
|
+
default: "bg-primary text-white hover:bg-primary/90",
|
|
8
|
+
destructive: "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
9
|
+
outline: "text-foreground border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
10
|
+
secondary: "text-primary border border-primary hover:bg-primary/15",
|
|
11
|
+
ghost: "text-foreground hover:bg-[var(--primary)] hover:text-accent-foreground dark:hover:bg-[var(--primary)]/50",
|
|
12
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
13
|
+
},
|
|
14
|
+
size: {
|
|
15
|
+
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
16
|
+
xs: "h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",
|
|
17
|
+
sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
18
|
+
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
19
|
+
icon: "size-9",
|
|
20
|
+
"icon-xs": "size-6 rounded-md [&_svg:not([class*='size-'])]:size-3",
|
|
21
|
+
"icon-sm": "size-8",
|
|
22
|
+
"icon-lg": "size-10"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
defaultVariants: {
|
|
26
|
+
variant: "default",
|
|
27
|
+
size: "default"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
export {
|
|
32
|
+
i as buttonVariants
|
|
33
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { Label } from './label';
|
|
3
|
+
declare function FieldSet({ className, ...props }: React.ComponentProps<"fieldset">): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function FieldLegend({ className, variant, ...props }: React.ComponentProps<"legend"> & {
|
|
5
|
+
variant?: "legend" | "label";
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function FieldGroup({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare const fieldVariants: (props?: {
|
|
9
|
+
orientation?: "horizontal" | "vertical" | "responsive";
|
|
10
|
+
} & import('class-variance-authority/types').ClassProp) => string;
|
|
11
|
+
declare function Field({ className, orientation, ...props }: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function FieldContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function FieldTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function FieldDescription({ className, ...props }: React.ComponentProps<"p">): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare function FieldSeparator({ children, className, ...props }: React.ComponentProps<"div"> & {
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare function FieldError({ className, children, errors, ...props }: React.ComponentProps<"div"> & {
|
|
20
|
+
errors?: Array<{
|
|
21
|
+
message?: string;
|
|
22
|
+
} | undefined>;
|
|
23
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export { Field, FieldLabel, FieldDescription, FieldError, FieldGroup, FieldLegend, FieldSeparator, FieldSet, FieldContent, FieldTitle, };
|
|
25
|
+
//# sourceMappingURL=field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../src/components/ui/field.tsx"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGlE,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAG9C,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,2CAY1E;AAED,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,OAAkB,EAClB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAA;CAAE,2CAcnE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAWvE;AAED,QAAA,MAAM,aAAa;;iEAsBlB,CAAC;AAEF,iBAAS,KAAK,CAAC,EACb,SAAS,EACT,WAAwB,EACxB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,2CAUlE;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAWzE;AAED,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,2CAapC;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAWvE;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,2CAa3E;AAED,iBAAS,cAAc,CAAC,EACtB,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAC/B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,2CAsBA;AAED,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,QAAQ,EACR,MAAM,EACN,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAC/B,MAAM,CAAC,EAAE,KAAK,CAAC;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC,CAAC;CAClD,2CA0CA;AAED,OAAO,EACL,KAAK,EACL,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,UAAU,EACV,WAAW,EACX,cAAc,EACd,QAAQ,EACR,YAAY,EACZ,UAAU,GACX,CAAC"}
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { jsx as a, jsxs as f } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as u } from "react";
|
|
3
|
+
import { cva as c } from "../../node_modules/class-variance-authority/dist/index.js";
|
|
4
|
+
import { cn as l } from "../../lib/utils.js";
|
|
5
|
+
import { Label as m } from "./label.js";
|
|
6
|
+
import { Separator as p } from "./separator.js";
|
|
7
|
+
function k({ className: t, ...e }) {
|
|
8
|
+
return /* @__PURE__ */ a(
|
|
9
|
+
"fieldset",
|
|
10
|
+
{
|
|
11
|
+
"data-slot": "field-set",
|
|
12
|
+
className: l(
|
|
13
|
+
"flex flex-col gap-6",
|
|
14
|
+
"has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",
|
|
15
|
+
t
|
|
16
|
+
),
|
|
17
|
+
...e
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
function F({
|
|
22
|
+
className: t,
|
|
23
|
+
variant: e = "legend",
|
|
24
|
+
...o
|
|
25
|
+
}) {
|
|
26
|
+
return /* @__PURE__ */ a(
|
|
27
|
+
"legend",
|
|
28
|
+
{
|
|
29
|
+
"data-slot": "field-legend",
|
|
30
|
+
"data-variant": e,
|
|
31
|
+
className: l(
|
|
32
|
+
"mb-3 font-medium",
|
|
33
|
+
"data-[variant=legend]:text-base",
|
|
34
|
+
"data-[variant=label]:text-sm",
|
|
35
|
+
t
|
|
36
|
+
),
|
|
37
|
+
...o
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
function y({ className: t, ...e }) {
|
|
42
|
+
return /* @__PURE__ */ a(
|
|
43
|
+
"div",
|
|
44
|
+
{
|
|
45
|
+
"data-slot": "field-group",
|
|
46
|
+
className: l(
|
|
47
|
+
"group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4",
|
|
48
|
+
t
|
|
49
|
+
),
|
|
50
|
+
...e
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
const g = c(
|
|
55
|
+
"group/field flex w-full gap-3 data-[invalid=true]:text-destructive",
|
|
56
|
+
{
|
|
57
|
+
variants: {
|
|
58
|
+
orientation: {
|
|
59
|
+
vertical: ["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],
|
|
60
|
+
horizontal: [
|
|
61
|
+
"flex-row items-center",
|
|
62
|
+
"[&>[data-slot=field-label]]:flex-auto",
|
|
63
|
+
"has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
|
|
64
|
+
],
|
|
65
|
+
responsive: [
|
|
66
|
+
"flex-col [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto",
|
|
67
|
+
"@md/field-group:[&>[data-slot=field-label]]:flex-auto",
|
|
68
|
+
"@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
defaultVariants: {
|
|
73
|
+
orientation: "vertical"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
);
|
|
77
|
+
function L({
|
|
78
|
+
className: t,
|
|
79
|
+
orientation: e = "vertical",
|
|
80
|
+
...o
|
|
81
|
+
}) {
|
|
82
|
+
return /* @__PURE__ */ a(
|
|
83
|
+
"div",
|
|
84
|
+
{
|
|
85
|
+
role: "group",
|
|
86
|
+
"data-slot": "field",
|
|
87
|
+
"data-orientation": e,
|
|
88
|
+
className: l(g({ orientation: e }), t),
|
|
89
|
+
...o
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
function S({ className: t, ...e }) {
|
|
94
|
+
return /* @__PURE__ */ a(
|
|
95
|
+
"div",
|
|
96
|
+
{
|
|
97
|
+
"data-slot": "field-content",
|
|
98
|
+
className: l(
|
|
99
|
+
"group/field-content flex flex-1 flex-col gap-1.5 leading-snug",
|
|
100
|
+
t
|
|
101
|
+
),
|
|
102
|
+
...e
|
|
103
|
+
}
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
function j({
|
|
107
|
+
className: t,
|
|
108
|
+
...e
|
|
109
|
+
}) {
|
|
110
|
+
return /* @__PURE__ */ a(
|
|
111
|
+
m,
|
|
112
|
+
{
|
|
113
|
+
"data-slot": "field-label",
|
|
114
|
+
className: l(
|
|
115
|
+
"group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50",
|
|
116
|
+
"has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4",
|
|
117
|
+
"has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10",
|
|
118
|
+
t
|
|
119
|
+
),
|
|
120
|
+
...e
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
function z({ className: t, ...e }) {
|
|
125
|
+
return /* @__PURE__ */ a(
|
|
126
|
+
"div",
|
|
127
|
+
{
|
|
128
|
+
"data-slot": "field-label",
|
|
129
|
+
className: l(
|
|
130
|
+
"flex w-fit items-center gap-2 text-sm leading-snug font-medium group-data-[disabled=true]/field:opacity-50",
|
|
131
|
+
t
|
|
132
|
+
),
|
|
133
|
+
...e
|
|
134
|
+
}
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
function E({ className: t, ...e }) {
|
|
138
|
+
return /* @__PURE__ */ a(
|
|
139
|
+
"p",
|
|
140
|
+
{
|
|
141
|
+
"data-slot": "field-description",
|
|
142
|
+
className: l(
|
|
143
|
+
"text-muted-foreground text-sm leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance",
|
|
144
|
+
"last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5",
|
|
145
|
+
"[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",
|
|
146
|
+
t
|
|
147
|
+
),
|
|
148
|
+
...e
|
|
149
|
+
}
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
function M({
|
|
153
|
+
children: t,
|
|
154
|
+
className: e,
|
|
155
|
+
...o
|
|
156
|
+
}) {
|
|
157
|
+
return /* @__PURE__ */ f(
|
|
158
|
+
"div",
|
|
159
|
+
{
|
|
160
|
+
"data-slot": "field-separator",
|
|
161
|
+
"data-content": !!t,
|
|
162
|
+
className: l(
|
|
163
|
+
"relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2",
|
|
164
|
+
e
|
|
165
|
+
),
|
|
166
|
+
...o,
|
|
167
|
+
children: [
|
|
168
|
+
/* @__PURE__ */ a(p, { className: "absolute inset-0 top-1/2" }),
|
|
169
|
+
t && /* @__PURE__ */ a(
|
|
170
|
+
"span",
|
|
171
|
+
{
|
|
172
|
+
className: "bg-background text-muted-foreground relative mx-auto block w-fit px-2",
|
|
173
|
+
"data-slot": "field-separator-content",
|
|
174
|
+
children: t
|
|
175
|
+
}
|
|
176
|
+
)
|
|
177
|
+
]
|
|
178
|
+
}
|
|
179
|
+
);
|
|
180
|
+
}
|
|
181
|
+
function V({
|
|
182
|
+
className: t,
|
|
183
|
+
children: e,
|
|
184
|
+
errors: o,
|
|
185
|
+
...n
|
|
186
|
+
}) {
|
|
187
|
+
const i = u(() => {
|
|
188
|
+
if (e)
|
|
189
|
+
return e;
|
|
190
|
+
if (!o?.length)
|
|
191
|
+
return null;
|
|
192
|
+
const r = [
|
|
193
|
+
...new Map(o.map((d) => [d?.message, d])).values()
|
|
194
|
+
];
|
|
195
|
+
return r?.length == 1 ? r[0]?.message : /* @__PURE__ */ a("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: r.map(
|
|
196
|
+
(d, s) => d?.message && /* @__PURE__ */ a("li", { children: d.message }, s)
|
|
197
|
+
) });
|
|
198
|
+
}, [e, o]);
|
|
199
|
+
return i ? /* @__PURE__ */ a(
|
|
200
|
+
"div",
|
|
201
|
+
{
|
|
202
|
+
role: "alert",
|
|
203
|
+
"data-slot": "field-error",
|
|
204
|
+
className: l("text-destructive text-sm font-normal", t),
|
|
205
|
+
...n,
|
|
206
|
+
children: i
|
|
207
|
+
}
|
|
208
|
+
) : null;
|
|
209
|
+
}
|
|
210
|
+
export {
|
|
211
|
+
L as Field,
|
|
212
|
+
S as FieldContent,
|
|
213
|
+
E as FieldDescription,
|
|
214
|
+
V as FieldError,
|
|
215
|
+
y as FieldGroup,
|
|
216
|
+
j as FieldLabel,
|
|
217
|
+
F as FieldLegend,
|
|
218
|
+
M as FieldSeparator,
|
|
219
|
+
k as FieldSet,
|
|
220
|
+
z as FieldTitle
|
|
221
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/components/ui/input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,iBAAS,KAAK,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAc1E;AAED,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { cn as n } from "../../lib/utils.js";
|
|
4
|
+
function l({ className: e, type: i, ...r }) {
|
|
5
|
+
return /* @__PURE__ */ t(
|
|
6
|
+
"input",
|
|
7
|
+
{
|
|
8
|
+
type: i,
|
|
9
|
+
"data-slot": "input",
|
|
10
|
+
className: n(
|
|
11
|
+
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
12
|
+
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
13
|
+
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
14
|
+
e
|
|
15
|
+
),
|
|
16
|
+
...r
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
l as Input
|
|
22
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
3
|
+
declare function Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export { Label };
|
|
5
|
+
//# sourceMappingURL=label.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../src/components/ui/label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAA;AAIvD,iBAAS,KAAK,CAAC,EACb,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,IAAI,CAAC,2CAWlD;AAED,OAAO,EAAE,KAAK,EAAE,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { Root as r } from "../../node_modules/@radix-ui/react-label/dist/index.js";
|
|
4
|
+
import { cn as a } from "../../lib/utils.js";
|
|
5
|
+
function p({
|
|
6
|
+
className: e,
|
|
7
|
+
...t
|
|
8
|
+
}) {
|
|
9
|
+
return /* @__PURE__ */ o(
|
|
10
|
+
r,
|
|
11
|
+
{
|
|
12
|
+
"data-slot": "label",
|
|
13
|
+
className: a(
|
|
14
|
+
"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
|
|
15
|
+
e
|
|
16
|
+
),
|
|
17
|
+
...t
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
p as Label
|
|
23
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
3
|
+
declare function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function SelectGroup({ ...props }: React.ComponentProps<typeof SelectPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
7
|
+
size?: "sm" | "default";
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function SelectContent({ className, children, position, align, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
|
|
16
|
+
//# sourceMappingURL=select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/components/ui/select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAK1D,iBAAS,MAAM,CAAC,EACd,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,2CAEnD;AAED,iBAAS,WAAW,CAAC,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,2CAEpD;AAED,iBAAS,WAAW,CAAC,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,2CAEpD;AAED,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,IAAgB,EAChB,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,GAAG;IACxD,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;CACzB,2CAiBA;AAED,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,QAAQ,EACR,QAAyB,EACzB,KAAgB,EAChB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,2CA6BtD;AAED,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,2CAQpD;AAED,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,2CAqBnD;AAED,iBAAS,eAAe,CAAC,EACvB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,SAAS,CAAC,2CAQxD;AAED,iBAAS,oBAAoB,CAAC,EAC5B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,cAAc,CAAC,2CAa7D;AAED,iBAAS,sBAAsB,CAAC,EAC9B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,gBAAgB,CAAC,2CAa/D;AAED,OAAO,EACL,MAAM,EACN,aAAa,EACb,WAAW,EACX,UAAU,EACV,WAAW,EACX,sBAAsB,EACtB,oBAAoB,EACpB,eAAe,EACf,aAAa,EACb,WAAW,GACZ,CAAC"}
|