@codefast/ui 0.3.9 → 0.3.11-canary.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/CHANGELOG.md +30 -0
- package/README.md +277 -167
- package/dist/components/accordion.cjs +97 -1
- package/dist/components/accordion.js +51 -1
- package/dist/components/alert-dialog.cjs +155 -1
- package/dist/components/alert-dialog.d.ts +2 -2
- package/dist/components/alert-dialog.js +94 -1
- package/dist/components/alert.cjs +84 -1
- package/dist/components/alert.d.ts +1 -1
- package/dist/components/alert.js +41 -1
- package/dist/components/aspect-ratio.cjs +43 -1
- package/dist/components/aspect-ratio.js +9 -1
- package/dist/components/avatar.cjs +65 -1
- package/dist/components/avatar.js +25 -1
- package/dist/components/badge.cjs +66 -1
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/badge.js +29 -1
- package/dist/components/breadcrumb.cjs +124 -1
- package/dist/components/breadcrumb.js +72 -1
- package/dist/components/button-group.cjs +86 -1
- package/dist/components/button-group.d.ts +1 -1
- package/dist/components/button-group.js +43 -1
- package/dist/components/button.cjs +92 -1
- package/dist/components/button.d.ts +1 -1
- package/dist/components/button.js +55 -1
- package/dist/components/calendar.cjs +150 -1
- package/dist/components/calendar.d.ts +11 -18
- package/dist/components/calendar.js +113 -1
- package/dist/components/card.cjs +105 -1
- package/dist/components/card.js +53 -1
- package/dist/components/carousel.cjs +210 -1
- package/dist/components/carousel.d.ts +1 -1
- package/dist/components/carousel.js +151 -1
- package/dist/components/chart.cjs +250 -3
- package/dist/components/chart.d.ts +5 -4
- package/dist/components/chart.js +198 -3
- package/dist/components/checkbox-cards.cjs +69 -1
- package/dist/components/checkbox-cards.js +32 -1
- package/dist/components/checkbox-group.cjs +63 -1
- package/dist/components/checkbox-group.js +26 -1
- package/dist/components/checkbox.cjs +53 -1
- package/dist/components/checkbox.js +19 -1
- package/dist/components/collapsible.cjs +61 -1
- package/dist/components/collapsible.js +21 -1
- package/dist/components/command.cjs +167 -1
- package/dist/components/command.js +106 -1
- package/dist/components/context-menu.cjs +218 -1
- package/dist/components/context-menu.js +142 -1
- package/dist/components/dialog.cjs +164 -1
- package/dist/components/dialog.d.ts +2 -2
- package/dist/components/dialog.js +106 -1
- package/dist/components/drawer.cjs +143 -1
- package/dist/components/drawer.d.ts +1 -1
- package/dist/components/drawer.js +85 -1
- package/dist/components/dropdown-menu.cjs +221 -1
- package/dist/components/dropdown-menu.js +145 -1
- package/dist/components/empty.cjs +113 -1
- package/dist/components/empty.d.ts +1 -1
- package/dist/components/empty.js +61 -1
- package/dist/components/field.cjs +193 -1
- package/dist/components/field.d.ts +1 -1
- package/dist/components/field.js +129 -1
- package/dist/components/form.cjs +151 -1
- package/dist/components/form.d.ts +3 -3
- package/dist/components/form.js +96 -1
- package/dist/components/hover-card.cjs +77 -1
- package/dist/components/hover-card.js +34 -1
- package/dist/components/input-group.cjs +155 -1
- package/dist/components/input-group.d.ts +1 -1
- package/dist/components/input-group.js +97 -1
- package/dist/components/input-number.cjs +98 -1
- package/dist/components/input-number.js +64 -1
- package/dist/components/input-otp.cjs +101 -1
- package/dist/components/input-otp.js +49 -1
- package/dist/components/input-password.cjs +71 -1
- package/dist/components/input-password.js +37 -1
- package/dist/components/input-search.cjs +80 -1
- package/dist/components/input-search.js +46 -1
- package/dist/components/input.cjs +45 -1
- package/dist/components/input.js +11 -1
- package/dist/components/item.cjs +186 -1
- package/dist/components/item.d.ts +1 -1
- package/dist/components/item.js +119 -1
- package/dist/components/kbd.cjs +54 -1
- package/dist/components/kbd.js +17 -1
- package/dist/components/label.cjs +45 -1
- package/dist/components/label.js +11 -1
- package/dist/components/menubar.cjs +232 -1
- package/dist/components/menubar.js +153 -1
- package/dist/components/native-select.cjs +75 -1
- package/dist/components/native-select.js +35 -1
- package/dist/components/navigation-menu.cjs +146 -2
- package/dist/components/navigation-menu.js +94 -2
- package/dist/components/pagination.cjs +138 -1
- package/dist/components/pagination.d.ts +1 -1
- package/dist/components/pagination.js +86 -1
- package/dist/components/popover.cjs +86 -1
- package/dist/components/popover.js +40 -1
- package/dist/components/progress-circle.cjs +184 -1
- package/dist/components/progress-circle.d.ts +1 -1
- package/dist/components/progress-circle.js +147 -1
- package/dist/components/progress.cjs +52 -1
- package/dist/components/progress.js +18 -1
- package/dist/components/radio-cards.cjs +66 -1
- package/dist/components/radio-cards.js +29 -1
- package/dist/components/radio-group.cjs +59 -1
- package/dist/components/radio-group.js +22 -1
- package/dist/components/radio.cjs +47 -1
- package/dist/components/radio.js +13 -1
- package/dist/components/resizable.cjs +71 -1
- package/dist/components/resizable.d.ts +6 -6
- package/dist/components/resizable.js +31 -1
- package/dist/components/scroll-area.cjs +140 -1
- package/dist/components/scroll-area.d.ts +1 -1
- package/dist/components/scroll-area.js +100 -1
- package/dist/components/select.cjs +180 -1
- package/dist/components/select.d.ts +2 -2
- package/dist/components/select.js +119 -1
- package/dist/components/separator.cjs +82 -1
- package/dist/components/separator.d.ts +1 -1
- package/dist/components/separator.js +42 -1
- package/dist/components/sheet.cjs +184 -1
- package/dist/components/sheet.d.ts +2 -2
- package/dist/components/sheet.js +123 -1
- package/dist/components/sidebar.cjs +506 -1
- package/dist/components/sidebar.d.ts +1 -1
- package/dist/components/sidebar.js +400 -1
- package/dist/components/skeleton.cjs +44 -1
- package/dist/components/skeleton.js +10 -1
- package/dist/components/slider.cjs +79 -1
- package/dist/components/slider.js +45 -1
- package/dist/components/sonner.cjs +57 -1
- package/dist/components/sonner.js +17 -1
- package/dist/components/spinner.cjs +75 -1
- package/dist/components/spinner.js +41 -1
- package/dist/components/switch.cjs +49 -1
- package/dist/components/switch.js +15 -1
- package/dist/components/table.cjs +118 -1
- package/dist/components/table.js +63 -1
- package/dist/components/tabs.cjs +75 -1
- package/dist/components/tabs.d.ts +1 -1
- package/dist/components/tabs.js +32 -1
- package/dist/components/textarea.cjs +44 -1
- package/dist/components/textarea.js +10 -1
- package/dist/components/toggle-group.cjs +90 -1
- package/dist/components/toggle-group.d.ts +8 -10
- package/dist/components/toggle-group.js +53 -1
- package/dist/components/toggle.cjs +71 -1
- package/dist/components/toggle.d.ts +8 -10
- package/dist/components/toggle.js +34 -1
- package/dist/components/tooltip.cjs +90 -1
- package/dist/components/tooltip.js +44 -1
- package/dist/css/amber.css +95 -1
- package/dist/css/blue.css +95 -1
- package/dist/css/cyan.css +95 -1
- package/dist/css/emerald.css +95 -1
- package/dist/css/fuchsia.css +95 -1
- package/dist/css/gray.css +95 -1
- package/dist/css/green.css +95 -1
- package/dist/css/indigo.css +95 -1
- package/dist/css/lime.css +95 -1
- package/dist/css/neutral.css +95 -1
- package/dist/css/orange.css +95 -1
- package/dist/css/pink.css +95 -1
- package/dist/css/preset.css +118 -1
- package/dist/css/purple.css +95 -1
- package/dist/css/red.css +95 -1
- package/dist/css/rose.css +95 -1
- package/dist/css/sky.css +95 -1
- package/dist/css/slate.css +95 -1
- package/dist/css/stone.css +95 -1
- package/dist/css/style.css +3 -1
- package/dist/css/teal.css +95 -1
- package/dist/css/violet.css +95 -1
- package/dist/css/yellow.css +95 -1
- package/dist/css/zinc.css +95 -1
- package/dist/hooks/use-animated-value.cjs +74 -1
- package/dist/hooks/use-animated-value.d.ts +9 -10
- package/dist/hooks/use-animated-value.js +40 -1
- package/dist/hooks/use-copy-to-clipboard.cjs +57 -1
- package/dist/hooks/use-copy-to-clipboard.d.ts +17 -0
- package/dist/hooks/use-copy-to-clipboard.js +23 -1
- package/dist/hooks/use-is-mobile.cjs +39 -1
- package/dist/hooks/use-is-mobile.d.ts +15 -6
- package/dist/hooks/use-is-mobile.js +5 -1
- package/dist/hooks/use-media-query.cjs +56 -1
- package/dist/hooks/use-media-query.d.ts +11 -3
- package/dist/hooks/use-media-query.js +22 -1
- package/dist/hooks/use-mutation-observer.cjs +56 -1
- package/dist/hooks/use-mutation-observer.d.ts +7 -11
- package/dist/hooks/use-mutation-observer.js +22 -1
- package/dist/hooks/use-pagination.cjs +92 -1
- package/dist/hooks/use-pagination.d.ts +12 -10
- package/dist/hooks/use-pagination.js +55 -1
- package/dist/index.cjs +1081 -1
- package/dist/index.d.ts +4 -5
- package/dist/index.js +69 -1
- package/dist/primitives/checkbox-group.cjs +151 -1
- package/dist/primitives/checkbox-group.d.ts +1 -1
- package/dist/primitives/checkbox-group.js +99 -1
- package/dist/primitives/input-number.cjs +439 -1
- package/dist/primitives/input-number.d.ts +1 -1
- package/dist/primitives/input-number.js +381 -1
- package/dist/primitives/input.cjs +99 -1
- package/dist/primitives/input.d.ts +1 -1
- package/dist/primitives/input.js +53 -1
- package/dist/primitives/progress-circle.cjs +198 -1
- package/dist/primitives/progress-circle.d.ts +1 -1
- package/dist/primitives/progress-circle.js +128 -1
- package/package.json +405 -62
|
@@ -1 +1,44 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
Textarea: ()=>Textarea
|
|
28
|
+
});
|
|
29
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
|
+
const tailwind_variants_namespaceObject = require("@codefast/tailwind-variants");
|
|
31
|
+
function Textarea({ className, ...props }) {
|
|
32
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("textarea", {
|
|
33
|
+
className: (0, tailwind_variants_namespaceObject.cn)("flex min-h-16 w-full grow rounded-lg border border-input px-3 py-2 text-base shadow-xs outline-hidden transition placeholder:text-muted-foreground hover:not-disabled:not-focus-visible:border-ring/60 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:opacity-50 aria-invalid:border-destructive focus-within:aria-invalid:ring-destructive/20 hover:not-disabled:not-focus-within:aria-invalid:border-destructive/60 md:text-sm dark:bg-input/30 dark:focus-within:aria-invalid:ring-destructive/40", className),
|
|
34
|
+
"data-slot": "textarea",
|
|
35
|
+
...props
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
exports.Textarea = __webpack_exports__.Textarea;
|
|
39
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
40
|
+
"Textarea"
|
|
41
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
42
|
+
Object.defineProperty(exports, '__esModule', {
|
|
43
|
+
value: true
|
|
44
|
+
});
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
import{jsx
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "@codefast/tailwind-variants";
|
|
3
|
+
function Textarea({ className, ...props }) {
|
|
4
|
+
return /*#__PURE__*/ jsx("textarea", {
|
|
5
|
+
className: cn("flex min-h-16 w-full grow rounded-lg border border-input px-3 py-2 text-base shadow-xs outline-hidden transition placeholder:text-muted-foreground hover:not-disabled:not-focus-visible:border-ring/60 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:opacity-50 aria-invalid:border-destructive focus-within:aria-invalid:ring-destructive/20 hover:not-disabled:not-focus-within:aria-invalid:border-destructive/60 md:text-sm dark:bg-input/30 dark:focus-within:aria-invalid:ring-destructive/40", className),
|
|
6
|
+
"data-slot": "textarea",
|
|
7
|
+
...props
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
export { Textarea };
|
|
@@ -1,2 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
"use client";
|
|
2
|
-
|
|
3
|
+
var __webpack_require__ = {};
|
|
4
|
+
(()=>{
|
|
5
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
6
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: definition[key]
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
})();
|
|
12
|
+
(()=>{
|
|
13
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
14
|
+
})();
|
|
15
|
+
(()=>{
|
|
16
|
+
__webpack_require__.r = (exports1)=>{
|
|
17
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
18
|
+
value: 'Module'
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
21
|
+
value: true
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
})();
|
|
25
|
+
var __webpack_exports__ = {};
|
|
26
|
+
__webpack_require__.r(__webpack_exports__);
|
|
27
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
28
|
+
ToggleGroup: ()=>ToggleGroup,
|
|
29
|
+
ToggleGroupItem: ()=>ToggleGroupItem
|
|
30
|
+
});
|
|
31
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
32
|
+
const tailwind_variants_namespaceObject = require("@codefast/tailwind-variants");
|
|
33
|
+
const react_context_namespaceObject = require("@radix-ui/react-context");
|
|
34
|
+
const react_toggle_group_namespaceObject = require("@radix-ui/react-toggle-group");
|
|
35
|
+
const external_toggle_cjs_namespaceObject = require("./toggle.cjs");
|
|
36
|
+
const TOGGLE_GROUP_NAME = "ToggleGroup";
|
|
37
|
+
const [createToggleGroupContext] = (0, react_context_namespaceObject.createContextScope)(TOGGLE_GROUP_NAME, [
|
|
38
|
+
react_toggle_group_namespaceObject.createToggleGroupScope
|
|
39
|
+
]);
|
|
40
|
+
const useToggleGroupScope = (0, react_toggle_group_namespaceObject.createToggleGroupScope)();
|
|
41
|
+
const [ToggleGroupProvider, useToggleGroupContext] = createToggleGroupContext(TOGGLE_GROUP_NAME);
|
|
42
|
+
function ToggleGroup({ __scopeToggleGroup, children, className, size, spacing = 0, variant, ...props }) {
|
|
43
|
+
const toggleGroupScope = useToggleGroupScope(__scopeToggleGroup);
|
|
44
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ToggleGroupProvider, {
|
|
45
|
+
scope: __scopeToggleGroup,
|
|
46
|
+
size: size,
|
|
47
|
+
spacing: spacing,
|
|
48
|
+
variant: variant,
|
|
49
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_toggle_group_namespaceObject.Root, {
|
|
50
|
+
className: (0, tailwind_variants_namespaceObject.cn)("group/toggle-group flex w-fit items-center gap-[--spacing(var(--gap))] rounded-lg data-[spacing=default]:data-[variant=outline]:shadow-xs", className),
|
|
51
|
+
"data-size": size,
|
|
52
|
+
"data-slot": "toggle-group",
|
|
53
|
+
"data-spacing": spacing,
|
|
54
|
+
"data-variant": variant,
|
|
55
|
+
style: {
|
|
56
|
+
"--gap": spacing
|
|
57
|
+
},
|
|
58
|
+
...toggleGroupScope,
|
|
59
|
+
...props,
|
|
60
|
+
children: children
|
|
61
|
+
})
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
const TOGGLE_GROUP_ITEM_NAME = "ToggleGroupItem";
|
|
65
|
+
function ToggleGroupItem({ __scopeToggleGroup, children, className, ...props }) {
|
|
66
|
+
const { size, spacing, variant } = useToggleGroupContext(TOGGLE_GROUP_ITEM_NAME, __scopeToggleGroup);
|
|
67
|
+
const toggleGroupScope = useToggleGroupScope(__scopeToggleGroup);
|
|
68
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_toggle_group_namespaceObject.Item, {
|
|
69
|
+
className: (0, tailwind_variants_namespaceObject.cn)((0, external_toggle_cjs_namespaceObject.toggleVariants)({
|
|
70
|
+
className,
|
|
71
|
+
size,
|
|
72
|
+
variant
|
|
73
|
+
}), "w-auto min-w-0 shrink-0 px-3 focus:z-10 focus-visible:z-10", "data-[spacing=0]:rounded-none data-[spacing=0]:shadow-none data-[spacing=0]:first:rounded-l-lg data-[spacing=0]:last:rounded-r-lg data-[spacing=0]:data-[variant=outline]:border-l-0 data-[spacing=0]:data-[variant=outline]:first:border-l"),
|
|
74
|
+
"data-size": size,
|
|
75
|
+
"data-slot": "toggle-group-item",
|
|
76
|
+
"data-spacing": spacing,
|
|
77
|
+
"data-variant": variant,
|
|
78
|
+
...toggleGroupScope,
|
|
79
|
+
...props,
|
|
80
|
+
children: children
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
exports.ToggleGroup = __webpack_exports__.ToggleGroup;
|
|
84
|
+
exports.ToggleGroupItem = __webpack_exports__.ToggleGroupItem;
|
|
85
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
86
|
+
"ToggleGroup",
|
|
87
|
+
"ToggleGroupItem"
|
|
88
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
89
|
+
Object.defineProperty(exports, '__esModule', {
|
|
90
|
+
value: true
|
|
91
|
+
});
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import type { ComponentProps, JSX, ReactNode } from "react";
|
|
2
|
-
import type { VariantProps } from "@codefast/tailwind-variants";
|
|
3
1
|
import type { Scope } from "@radix-ui/react-context";
|
|
4
|
-
import {
|
|
2
|
+
import type { ComponentProps, JSX } from "react";
|
|
5
3
|
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
4
|
+
import type { ToggleVariants } from "./toggle";
|
|
6
5
|
type ScopedProps<P> = P & {
|
|
7
6
|
__scopeToggleGroup?: Scope;
|
|
8
7
|
};
|
|
9
|
-
type ToggleGroupProps = ComponentProps<typeof ToggleGroupPrimitive.Root> &
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
declare function ToggleGroupItem({ __scopeToggleGroup, children, className, prefix, suffix, ...props }: ToggleGroupItemProps): JSX.Element;
|
|
8
|
+
type ToggleGroupProps = ComponentProps<typeof ToggleGroupPrimitive.Root> & ToggleVariants & {
|
|
9
|
+
spacing?: number;
|
|
10
|
+
};
|
|
11
|
+
declare function ToggleGroup({ __scopeToggleGroup, children, className, size, spacing, variant, ...props }: ScopedProps<ToggleGroupProps>): JSX.Element;
|
|
12
|
+
type ToggleGroupItemProps = ScopedProps<ComponentProps<typeof ToggleGroupPrimitive.Item>>;
|
|
13
|
+
declare function ToggleGroupItem({ __scopeToggleGroup, children, className, ...props }: ToggleGroupItemProps): JSX.Element;
|
|
16
14
|
export { ToggleGroup, ToggleGroupItem };
|
|
17
15
|
export type { ToggleGroupItemProps, ToggleGroupProps };
|
|
@@ -1,2 +1,54 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { cn } from "@codefast/tailwind-variants";
|
|
4
|
+
import { createContextScope } from "@radix-ui/react-context";
|
|
5
|
+
import { Item, Root, createToggleGroupScope } from "@radix-ui/react-toggle-group";
|
|
6
|
+
import { toggleVariants } from "./toggle.js";
|
|
7
|
+
const TOGGLE_GROUP_NAME = "ToggleGroup";
|
|
8
|
+
const [createToggleGroupContext] = createContextScope(TOGGLE_GROUP_NAME, [
|
|
9
|
+
createToggleGroupScope
|
|
10
|
+
]);
|
|
11
|
+
const useToggleGroupScope = createToggleGroupScope();
|
|
12
|
+
const [ToggleGroupProvider, useToggleGroupContext] = createToggleGroupContext(TOGGLE_GROUP_NAME);
|
|
13
|
+
function ToggleGroup({ __scopeToggleGroup, children, className, size, spacing = 0, variant, ...props }) {
|
|
14
|
+
const toggleGroupScope = useToggleGroupScope(__scopeToggleGroup);
|
|
15
|
+
return /*#__PURE__*/ jsx(ToggleGroupProvider, {
|
|
16
|
+
scope: __scopeToggleGroup,
|
|
17
|
+
size: size,
|
|
18
|
+
spacing: spacing,
|
|
19
|
+
variant: variant,
|
|
20
|
+
children: /*#__PURE__*/ jsx(Root, {
|
|
21
|
+
className: cn("group/toggle-group flex w-fit items-center gap-[--spacing(var(--gap))] rounded-lg data-[spacing=default]:data-[variant=outline]:shadow-xs", className),
|
|
22
|
+
"data-size": size,
|
|
23
|
+
"data-slot": "toggle-group",
|
|
24
|
+
"data-spacing": spacing,
|
|
25
|
+
"data-variant": variant,
|
|
26
|
+
style: {
|
|
27
|
+
"--gap": spacing
|
|
28
|
+
},
|
|
29
|
+
...toggleGroupScope,
|
|
30
|
+
...props,
|
|
31
|
+
children: children
|
|
32
|
+
})
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
const TOGGLE_GROUP_ITEM_NAME = "ToggleGroupItem";
|
|
36
|
+
function ToggleGroupItem({ __scopeToggleGroup, children, className, ...props }) {
|
|
37
|
+
const { size, spacing, variant } = useToggleGroupContext(TOGGLE_GROUP_ITEM_NAME, __scopeToggleGroup);
|
|
38
|
+
const toggleGroupScope = useToggleGroupScope(__scopeToggleGroup);
|
|
39
|
+
return /*#__PURE__*/ jsx(Item, {
|
|
40
|
+
className: cn(toggleVariants({
|
|
41
|
+
className,
|
|
42
|
+
size,
|
|
43
|
+
variant
|
|
44
|
+
}), "w-auto min-w-0 shrink-0 px-3 focus:z-10 focus-visible:z-10", "data-[spacing=0]:rounded-none data-[spacing=0]:shadow-none data-[spacing=0]:first:rounded-l-lg data-[spacing=0]:last:rounded-r-lg data-[spacing=0]:data-[variant=outline]:border-l-0 data-[spacing=0]:data-[variant=outline]:first:border-l"),
|
|
45
|
+
"data-size": size,
|
|
46
|
+
"data-slot": "toggle-group-item",
|
|
47
|
+
"data-spacing": spacing,
|
|
48
|
+
"data-variant": variant,
|
|
49
|
+
...toggleGroupScope,
|
|
50
|
+
...props,
|
|
51
|
+
children: children
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
export { ToggleGroup, ToggleGroupItem };
|
|
@@ -1,2 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
"use client";
|
|
2
|
-
|
|
3
|
+
var __webpack_require__ = {};
|
|
4
|
+
(()=>{
|
|
5
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
6
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: definition[key]
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
})();
|
|
12
|
+
(()=>{
|
|
13
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
14
|
+
})();
|
|
15
|
+
(()=>{
|
|
16
|
+
__webpack_require__.r = (exports1)=>{
|
|
17
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
18
|
+
value: 'Module'
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
21
|
+
value: true
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
})();
|
|
25
|
+
var __webpack_exports__ = {};
|
|
26
|
+
__webpack_require__.r(__webpack_exports__);
|
|
27
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
28
|
+
Toggle: ()=>Toggle,
|
|
29
|
+
toggleVariants: ()=>toggleVariants
|
|
30
|
+
});
|
|
31
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
32
|
+
const tailwind_variants_namespaceObject = require("@codefast/tailwind-variants");
|
|
33
|
+
const react_toggle_namespaceObject = require("@radix-ui/react-toggle");
|
|
34
|
+
const toggleVariants = (0, tailwind_variants_namespaceObject.tv)({
|
|
35
|
+
base: "inline-flex items-center justify-center gap-2 rounded-lg text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none hover:bg-muted hover:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
36
|
+
variants: {
|
|
37
|
+
size: {
|
|
38
|
+
default: "h-9 min-w-9 px-2",
|
|
39
|
+
lg: "h-10 min-w-10 px-2.5",
|
|
40
|
+
sm: "h-8 min-w-8 px-1.5"
|
|
41
|
+
},
|
|
42
|
+
variant: {
|
|
43
|
+
default: "bg-transparent",
|
|
44
|
+
outline: "border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
defaultVariants: {
|
|
48
|
+
size: "default",
|
|
49
|
+
variant: "default"
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
function Toggle({ children, className, size, variant, ...props }) {
|
|
53
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_toggle_namespaceObject.Root, {
|
|
54
|
+
className: toggleVariants({
|
|
55
|
+
className,
|
|
56
|
+
size,
|
|
57
|
+
variant
|
|
58
|
+
}),
|
|
59
|
+
"data-slot": "toggle",
|
|
60
|
+
...props,
|
|
61
|
+
children: children
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
exports.Toggle = __webpack_exports__.Toggle;
|
|
65
|
+
exports.toggleVariants = __webpack_exports__.toggleVariants;
|
|
66
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
67
|
+
"Toggle",
|
|
68
|
+
"toggleVariants"
|
|
69
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
70
|
+
Object.defineProperty(exports, '__esModule', {
|
|
71
|
+
value: true
|
|
72
|
+
});
|
|
@@ -1,22 +1,20 @@
|
|
|
1
|
-
import type { ComponentProps, JSX, ReactNode } from "react";
|
|
2
1
|
import type { VariantProps } from "@codefast/tailwind-variants";
|
|
2
|
+
import type { ComponentProps, JSX } from "react";
|
|
3
3
|
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
4
4
|
declare const toggleVariants: import("@codefast/tailwind-variants").VariantFunctionType<{
|
|
5
5
|
size: {
|
|
6
|
-
|
|
7
|
-
md: string;
|
|
6
|
+
default: string;
|
|
8
7
|
lg: string;
|
|
8
|
+
sm: string;
|
|
9
9
|
};
|
|
10
10
|
variant: {
|
|
11
11
|
default: string;
|
|
12
12
|
outline: string;
|
|
13
13
|
};
|
|
14
14
|
}, Record<string, never>>;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
suffix?: ReactNode;
|
|
15
|
+
type ToggleVariants = VariantProps<typeof toggleVariants>;
|
|
16
|
+
interface ToggleProps extends ComponentProps<typeof TogglePrimitive.Root>, ToggleVariants {
|
|
18
17
|
}
|
|
19
|
-
declare function Toggle({ children, className,
|
|
20
|
-
export { toggleVariants };
|
|
21
|
-
export {
|
|
22
|
-
export type { ToggleProps };
|
|
18
|
+
declare function Toggle({ children, className, size, variant, ...props }: ToggleProps): JSX.Element;
|
|
19
|
+
export { Toggle, toggleVariants };
|
|
20
|
+
export type { ToggleProps, ToggleVariants };
|
|
@@ -1,2 +1,35 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { tv } from "@codefast/tailwind-variants";
|
|
4
|
+
import { Root } from "@radix-ui/react-toggle";
|
|
5
|
+
const toggleVariants = tv({
|
|
6
|
+
base: "inline-flex items-center justify-center gap-2 rounded-lg text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none hover:bg-muted hover:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
7
|
+
variants: {
|
|
8
|
+
size: {
|
|
9
|
+
default: "h-9 min-w-9 px-2",
|
|
10
|
+
lg: "h-10 min-w-10 px-2.5",
|
|
11
|
+
sm: "h-8 min-w-8 px-1.5"
|
|
12
|
+
},
|
|
13
|
+
variant: {
|
|
14
|
+
default: "bg-transparent",
|
|
15
|
+
outline: "border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
defaultVariants: {
|
|
19
|
+
size: "default",
|
|
20
|
+
variant: "default"
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
function Toggle({ children, className, size, variant, ...props }) {
|
|
24
|
+
return /*#__PURE__*/ jsx(Root, {
|
|
25
|
+
className: toggleVariants({
|
|
26
|
+
className,
|
|
27
|
+
size,
|
|
28
|
+
variant
|
|
29
|
+
}),
|
|
30
|
+
"data-slot": "toggle",
|
|
31
|
+
...props,
|
|
32
|
+
children: children
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
export { Toggle, toggleVariants };
|
|
@@ -1,2 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
"use client";
|
|
2
|
-
|
|
3
|
+
var __webpack_require__ = {};
|
|
4
|
+
(()=>{
|
|
5
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
6
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: definition[key]
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
})();
|
|
12
|
+
(()=>{
|
|
13
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
14
|
+
})();
|
|
15
|
+
(()=>{
|
|
16
|
+
__webpack_require__.r = (exports1)=>{
|
|
17
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
18
|
+
value: 'Module'
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
21
|
+
value: true
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
})();
|
|
25
|
+
var __webpack_exports__ = {};
|
|
26
|
+
__webpack_require__.r(__webpack_exports__);
|
|
27
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
28
|
+
Tooltip: ()=>Tooltip,
|
|
29
|
+
TooltipProvider: ()=>TooltipProvider,
|
|
30
|
+
TooltipTrigger: ()=>TooltipTrigger,
|
|
31
|
+
TooltipContent: ()=>TooltipContent,
|
|
32
|
+
TooltipArrow: ()=>TooltipArrow
|
|
33
|
+
});
|
|
34
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
35
|
+
const tailwind_variants_namespaceObject = require("@codefast/tailwind-variants");
|
|
36
|
+
const react_tooltip_namespaceObject = require("@radix-ui/react-tooltip");
|
|
37
|
+
function TooltipProvider({ ...props }) {
|
|
38
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_tooltip_namespaceObject.Provider, {
|
|
39
|
+
"data-slot": "tooltip-provider",
|
|
40
|
+
...props
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
function Tooltip({ ...props }) {
|
|
44
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_tooltip_namespaceObject.Root, {
|
|
45
|
+
"data-slot": "tooltip",
|
|
46
|
+
...props
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
function TooltipTrigger({ ...props }) {
|
|
50
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_tooltip_namespaceObject.Trigger, {
|
|
51
|
+
"data-slot": "tooltip-trigger",
|
|
52
|
+
...props
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
function TooltipContent({ children, className, sideOffset = 4, ...props }) {
|
|
56
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_tooltip_namespaceObject.Portal, {
|
|
57
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_tooltip_namespaceObject.Content, {
|
|
58
|
+
className: (0, tailwind_variants_namespaceObject.cn)("z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md bg-primary px-3 py-1.5 text-xs text-balance text-primary-foreground ease-ui data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-[state=delayed-open]:data-[side=bottom]:slide-in-from-top-2 data-[state=delayed-open]:data-[side=left]:slide-in-from-right-2 data-[state=delayed-open]:data-[side=right]:slide-in-from-left-2 data-[state=delayed-open]:data-[side=top]:slide-in-from-bottom-2", "max-w-(--radix-tooltip-content-available-width)", className),
|
|
59
|
+
collisionPadding: 8,
|
|
60
|
+
"data-slot": "tooltip-content",
|
|
61
|
+
sideOffset: sideOffset,
|
|
62
|
+
...props,
|
|
63
|
+
children: [
|
|
64
|
+
children,
|
|
65
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(TooltipArrow, {})
|
|
66
|
+
]
|
|
67
|
+
})
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
function TooltipArrow({ className, ...props }) {
|
|
71
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_tooltip_namespaceObject.Arrow, {
|
|
72
|
+
className: (0, tailwind_variants_namespaceObject.cn)("fill-primary", className),
|
|
73
|
+
"data-slot": "tooltip-arrow",
|
|
74
|
+
...props
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
exports.Tooltip = __webpack_exports__.Tooltip;
|
|
78
|
+
exports.TooltipArrow = __webpack_exports__.TooltipArrow;
|
|
79
|
+
exports.TooltipContent = __webpack_exports__.TooltipContent;
|
|
80
|
+
exports.TooltipProvider = __webpack_exports__.TooltipProvider;
|
|
81
|
+
exports.TooltipTrigger = __webpack_exports__.TooltipTrigger;
|
|
82
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
83
|
+
"Tooltip",
|
|
84
|
+
"TooltipArrow",
|
|
85
|
+
"TooltipContent",
|
|
86
|
+
"TooltipProvider",
|
|
87
|
+
"TooltipTrigger"
|
|
88
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
89
|
+
Object.defineProperty(exports, '__esModule', {
|
|
90
|
+
value: true
|
|
91
|
+
});
|
|
@@ -1,2 +1,45 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{jsx
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { cn } from "@codefast/tailwind-variants";
|
|
4
|
+
import { Arrow, Content, Portal, Provider, Root, Trigger } from "@radix-ui/react-tooltip";
|
|
5
|
+
function TooltipProvider({ ...props }) {
|
|
6
|
+
return /*#__PURE__*/ jsx(Provider, {
|
|
7
|
+
"data-slot": "tooltip-provider",
|
|
8
|
+
...props
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
function Tooltip({ ...props }) {
|
|
12
|
+
return /*#__PURE__*/ jsx(Root, {
|
|
13
|
+
"data-slot": "tooltip",
|
|
14
|
+
...props
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
function TooltipTrigger({ ...props }) {
|
|
18
|
+
return /*#__PURE__*/ jsx(Trigger, {
|
|
19
|
+
"data-slot": "tooltip-trigger",
|
|
20
|
+
...props
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
function TooltipContent({ children, className, sideOffset = 4, ...props }) {
|
|
24
|
+
return /*#__PURE__*/ jsx(Portal, {
|
|
25
|
+
children: /*#__PURE__*/ jsxs(Content, {
|
|
26
|
+
className: cn("z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md bg-primary px-3 py-1.5 text-xs text-balance text-primary-foreground ease-ui data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-[state=delayed-open]:data-[side=bottom]:slide-in-from-top-2 data-[state=delayed-open]:data-[side=left]:slide-in-from-right-2 data-[state=delayed-open]:data-[side=right]:slide-in-from-left-2 data-[state=delayed-open]:data-[side=top]:slide-in-from-bottom-2", "max-w-(--radix-tooltip-content-available-width)", className),
|
|
27
|
+
collisionPadding: 8,
|
|
28
|
+
"data-slot": "tooltip-content",
|
|
29
|
+
sideOffset: sideOffset,
|
|
30
|
+
...props,
|
|
31
|
+
children: [
|
|
32
|
+
children,
|
|
33
|
+
/*#__PURE__*/ jsx(TooltipArrow, {})
|
|
34
|
+
]
|
|
35
|
+
})
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function TooltipArrow({ className, ...props }) {
|
|
39
|
+
return /*#__PURE__*/ jsx(Arrow, {
|
|
40
|
+
className: cn("fill-primary", className),
|
|
41
|
+
"data-slot": "tooltip-arrow",
|
|
42
|
+
...props
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
export { Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger };
|
package/dist/css/amber.css
CHANGED
|
@@ -1 +1,95 @@
|
|
|
1
|
-
:root
|
|
1
|
+
:root {
|
|
2
|
+
--input: oklch(0.92 0.004 286.32); /* --color-zinc-200 */
|
|
3
|
+
--border: oklch(0.92 0.004 286.32); /* --color-zinc-200 */
|
|
4
|
+
|
|
5
|
+
--ring: oklch(0.84 0.16 84); /* --color-amber-400 */
|
|
6
|
+
|
|
7
|
+
--background: oklch(1 0 0); /* --color-zinc-50 */
|
|
8
|
+
--foreground: oklch(0.141 0.005 285.823); /* --color-zinc-950 */
|
|
9
|
+
|
|
10
|
+
--primary: oklch(0.67 0.16 58); /* --color-amber-600 */
|
|
11
|
+
--primary-foreground: oklch(0.99 0.02 95); /* --color-amber-50 */
|
|
12
|
+
|
|
13
|
+
--secondary: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
14
|
+
--secondary-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
|
15
|
+
|
|
16
|
+
--destructive: oklch(0.577 0.245 27.325); /* --color-red-600 */
|
|
17
|
+
|
|
18
|
+
--accent: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
19
|
+
--accent-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
|
20
|
+
|
|
21
|
+
--muted: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
22
|
+
--muted-foreground: oklch(0.552 0.016 285.938); /* --color-zinc-500 */
|
|
23
|
+
|
|
24
|
+
--popover: oklch(1 0 0); /* --color-zinc-50 */
|
|
25
|
+
--popover-foreground: oklch(0.141 0.005 285.823); /* --color-zinc-950 */
|
|
26
|
+
|
|
27
|
+
--card: oklch(1 0 0); /* --color-zinc-50 */
|
|
28
|
+
--card-foreground: oklch(0.141 0.005 285.823); /* --color-zinc-950 */
|
|
29
|
+
|
|
30
|
+
--sidebar: oklch(0.985 0 0); /* --color-zinc-50 */
|
|
31
|
+
--sidebar-foreground: oklch(0.141 0.005 285.823); /* --color-zinc-950 */
|
|
32
|
+
|
|
33
|
+
--sidebar-primary: oklch(0.67 0.16 58); /* --color-amber-600 */
|
|
34
|
+
--sidebar-primary-foreground: oklch(0.99 0.02 95); /* --color-amber-50 */
|
|
35
|
+
|
|
36
|
+
--sidebar-accent: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
37
|
+
--sidebar-accent-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
|
38
|
+
|
|
39
|
+
--sidebar-border: oklch(0.92 0.004 286.32); /* --color-zinc-200 */
|
|
40
|
+
--sidebar-ring: oklch(0.84 0.16 84); /* --color-amber-400 */
|
|
41
|
+
|
|
42
|
+
--chart-1: oklch(0.88 0.15 92); /* --color-amber-300 */
|
|
43
|
+
--chart-2: oklch(0.77 0.16 70); /* --color-amber-500 */
|
|
44
|
+
--chart-3: oklch(0.67 0.16 58); /* --color-amber-600 */
|
|
45
|
+
--chart-4: oklch(0.56 0.15 49); /* --color-amber-700 */
|
|
46
|
+
--chart-5: oklch(0.47 0.12 46); /* --color-amber-800 */
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.dark {
|
|
50
|
+
--input: oklch(1 0 0 / 15%); /* --color-white */
|
|
51
|
+
--border: oklch(1 0 0 / 10%); /* --color-white */
|
|
52
|
+
|
|
53
|
+
--ring: oklch(0.41 0.11 46); /* --color-amber-900 */
|
|
54
|
+
|
|
55
|
+
--background: oklch(0.141 0.005 285.823); /* --color-zinc-950 */
|
|
56
|
+
--foreground: oklch(0.985 0 0); /* --color-zinc-50 */
|
|
57
|
+
|
|
58
|
+
--primary: oklch(0.77 0.16 70); /* --color-amber-500 */
|
|
59
|
+
--primary-foreground: oklch(0.99 0.02 95); /* --color-amber-50 */
|
|
60
|
+
|
|
61
|
+
--secondary: oklch(0.274 0.006 286.033); /* --color-zinc-800 */
|
|
62
|
+
--secondary-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
|
|
63
|
+
|
|
64
|
+
--destructive: oklch(0.704 0.191 22.216); /* --color-red-400 */
|
|
65
|
+
|
|
66
|
+
--accent: oklch(0.274 0.006 286.033); /* --color-zinc-800 */
|
|
67
|
+
--accent-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
|
|
68
|
+
|
|
69
|
+
--muted: oklch(0.274 0.006 286.033); /* --color-zinc-800 */
|
|
70
|
+
--muted-foreground: oklch(0.705 0.015 286.067); /* --color-zinc-400 */
|
|
71
|
+
|
|
72
|
+
--popover: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
|
73
|
+
--popover-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
|
|
74
|
+
|
|
75
|
+
--card: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
|
76
|
+
--card-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
|
|
77
|
+
|
|
78
|
+
--sidebar: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
|
79
|
+
--sidebar-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
|
|
80
|
+
|
|
81
|
+
--sidebar-primary: oklch(0.77 0.16 70); /* --color-amber-500 */
|
|
82
|
+
--sidebar-primary-foreground: oklch(0.99 0.02 95); /* --color-amber-50 */
|
|
83
|
+
|
|
84
|
+
--sidebar-accent: oklch(0.274 0.006 286.033); /* --color-zinc-800 */
|
|
85
|
+
--sidebar-accent-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
|
|
86
|
+
|
|
87
|
+
--sidebar-border: oklch(1 0 0 / 10%); /* --color-white */
|
|
88
|
+
--sidebar-ring: oklch(0.41 0.11 46); /* --color-amber-900 */
|
|
89
|
+
|
|
90
|
+
--chart-1: oklch(0.88 0.15 92); /* --color-amber-300 */
|
|
91
|
+
--chart-2: oklch(0.77 0.16 70); /* --color-amber-500 */
|
|
92
|
+
--chart-3: oklch(0.67 0.16 58); /* --color-amber-600 */
|
|
93
|
+
--chart-4: oklch(0.56 0.15 49); /* --color-amber-700 */
|
|
94
|
+
--chart-5: oklch(0.47 0.12 46); /* --color-amber-800 */
|
|
95
|
+
}
|