@codefast/ui 0.13.0 → 0.14.1
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 +59 -0
- package/README.md +3 -1
- package/dist/components/avatar.d.ts +2 -2
- package/dist/components/button-group.d.ts +2 -1
- package/dist/components/button.d.ts +2 -3
- package/dist/components/calendar.d.ts +4 -2
- package/dist/components/card.d.ts +2 -2
- package/dist/components/chart.d.ts +5 -4
- package/dist/components/direction.d.ts +2 -2
- package/dist/components/empty.d.ts +2 -1
- package/dist/components/field.d.ts +6 -5
- package/dist/components/input-group.d.ts +4 -2
- package/dist/components/input-number.js +2 -2
- package/dist/components/item.d.ts +4 -3
- package/dist/components/message-scroller.d.ts +2 -1
- package/dist/components/native-select.d.ts +2 -2
- package/dist/components/native-select.js +1 -1
- package/dist/components/resizable.js +1 -1
- package/dist/components/scroll-area.d.ts +2 -1
- package/dist/components/select.js +1 -1
- package/dist/components/sidebar.js +4 -4
- package/dist/components/sonner.d.ts +2 -0
- package/dist/components/sonner.js +5 -3
- package/dist/components/spinner.js +1 -1
- package/dist/components/switch.d.ts +2 -2
- package/dist/components/tabs.d.ts +2 -1
- package/dist/components/toggle-group.d.ts +4 -1
- package/dist/lib/message-scroller/types.d.ts +8 -8
- package/dist/primitives/checkbox-group.d.ts +4 -1
- package/dist/primitives/input-number.d.ts +2 -0
- package/dist/primitives/input.d.ts +4 -1
- package/dist/variants/sidebar.js +1 -1
- package/package.json +8 -8
- package/src/css/foundation/base.css +9 -2
- package/src/css/foundation/motion.css +17 -0
- package/src/css/foundation/utilities.css +0 -8
- package/src/css/preset.css +1 -1
- package/src/css/themes/amber.css +1 -1
- package/src/css/themes/blue.css +1 -1
- package/src/css/themes/cyan.css +1 -1
- package/src/css/themes/emerald.css +1 -1
- package/src/css/themes/fuchsia.css +1 -1
- package/src/css/themes/gray.css +1 -1
- package/src/css/themes/green.css +1 -1
- package/src/css/themes/indigo.css +1 -1
- package/src/css/themes/lime.css +1 -1
- package/src/css/themes/neutral.css +1 -1
- package/src/css/themes/orange.css +1 -1
- package/src/css/themes/pink.css +1 -1
- package/src/css/themes/purple.css +1 -1
- package/src/css/themes/red.css +1 -1
- package/src/css/themes/rose.css +1 -1
- package/src/css/themes/sky.css +1 -1
- package/src/css/themes/slate.css +1 -1
- package/src/css/themes/stone.css +1 -1
- package/src/css/themes/teal.css +1 -1
- package/src/css/themes/violet.css +1 -1
- package/src/css/themes/yellow.css +1 -1
- package/src/css/themes/zinc.css +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,64 @@
|
|
|
1
1
|
# @codefast/ui
|
|
2
2
|
|
|
3
|
+
## 0.14.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1140](https://github.com/codefastlabs/codefast/pull/1140) `SelectTrigger` truncates long values with an ellipsis instead of overflowing: the trigger can shrink (`min-w-0`,
|
|
8
|
+
`max-w-full`) and `SelectValue` renders as a truncating block. `line-clamp-1` combined with `flex` gave no ellipsis.
|
|
9
|
+
Icons inside the value stay inline. `NativeSelect` ends a long value in an ellipsis too, instead of clipping it
|
|
10
|
+
mid-letter.
|
|
11
|
+
- Updated dependencies:
|
|
12
|
+
- @codefast/theme@0.11.0
|
|
13
|
+
|
|
14
|
+
## 0.14.0
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- [#1068](https://github.com/codefastlabs/codefast/pull/1068) Lower the Node.js floor from 24 to the lowest release the package, its dependencies and its full test suite run on:
|
|
19
|
+
22.12 for `@codefast/cli` and `@codefast/tailwind-variants`, 22.18 for `@codefast/di` and `@codefast/di-testing`, and
|
|
20
|
+
22.22.2 for `@codefast/theme`, `@codefast/tracking` and `@codefast/ui`. Each floor is type-checked against what Node 22
|
|
21
|
+
ships and proven by running the package's tests on that release in CI.
|
|
22
|
+
|
|
23
|
+
- [#1125](https://github.com/codefastlabs/codefast/pull/1125) **Breaking:** `Toaster` takes its color scheme from `@codefast/theme` instead of `next-themes`, so toasts follow the
|
|
24
|
+
user's appearance like every other component rather than falling back to `"system"` in an app with no `next-themes`
|
|
25
|
+
provider. `@codefast/theme` 0.10 or later — the version this release ships — is now a peer dependency, `next-themes` is
|
|
26
|
+
no longer a dependency, and `Toaster` must render inside an `AppearanceProvider` — outside one it throws, as
|
|
27
|
+
`useAppearance` does.
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- [#1060](https://github.com/codefastlabs/codefast/pull/1060) Every focusable element now draws the same solid 2px `ring` outline, offset 2px, as `Button`. An element with no focus
|
|
32
|
+
style of its own (a plain link, `<summary>`, a custom `tabIndex` element) gets it from the base layer instead of the
|
|
33
|
+
browser's two-tone `auto` outline, and a component's own `outline-*` utilities still override it. The sidebar parts
|
|
34
|
+
(`SidebarMenuButton`, `SidebarMenuSubButton`, `SidebarMenuAction`, `SidebarGroupLabel`, `SidebarGroupAction`) and
|
|
35
|
+
`ResizableSeparator` draw focus as that outline instead of a box-shadow ring, so it also shows in forced-colors mode.
|
|
36
|
+
|
|
37
|
+
- [#1124](https://github.com/codefastlabs/codefast/pull/1124) Secondary text now meets WCAG 2.2 AA contrast in every palette. In the light scheme `muted-foreground` moves from the
|
|
38
|
+
500 step of the palette's neutral to its 600 step (`zinc-600`, or `gray-600`, `neutral-600`, `slate-600`, `stone-600`),
|
|
39
|
+
so descriptions, placeholders, table captions and `Kbd` clear 4.5:1 on `muted` as well as on `background`, `card` and
|
|
40
|
+
`popover`; the 500 step measured 4.3–4.5:1 on `muted`. The dark scheme already cleared it and is unchanged.
|
|
41
|
+
`tests/unit/css/themes.test.ts` now checks `muted-foreground` on all four surfaces in every palette and both schemes.
|
|
42
|
+
|
|
43
|
+
- [#1071](https://github.com/codefastlabs/codefast/pull/1071) Component props that add their own members or join a variants type are declared as interfaces instead of `&`
|
|
44
|
+
intersections — `ButtonProps`, `CardProps`, `FieldProps`, `ScrollAreaProps` and the other 24 — so a prop that clashes
|
|
45
|
+
with the element's own now fails where it is declared rather than narrowing to `never`. Each accepts exactly the props
|
|
46
|
+
it did, with one exception: `ChartLegendContentProps` takes Recharts' legend-content type for every member the two
|
|
47
|
+
share, where the intersection demanded a value that satisfied both a `div` handler and a Recharts one, so it now accepts
|
|
48
|
+
more. `CalendarProps`, `ToggleGroupProps` and the internal `ScopedProps` helpers stay intersections, because their base
|
|
49
|
+
is a union or a type parameter.
|
|
50
|
+
|
|
51
|
+
- [#1090](https://github.com/codefastlabs/codefast/pull/1090) The preset now honours `prefers-reduced-motion` with one global rule: under `reduce`, every animation and transition,
|
|
52
|
+
including those on `::before` and `::after`, runs for a near-zero duration and plays once. Closed dialogs, popovers,
|
|
53
|
+
sheets and menus still unmount, because `animationend` and `transitionend` keep firing. The rule sits outside every
|
|
54
|
+
cascade layer, so it beats every utility, and a layered `!important` such as `motion-reduce:duration-200!` still opts
|
|
55
|
+
essential motion back in. This restores the reduced-motion coverage that most components had lost, and the per-component
|
|
56
|
+
`motion-reduce:` guards on `Spinner` and `InputNumber` and the `shimmer` utility's own reduced-motion block are gone,
|
|
57
|
+
since the global rule covers them.
|
|
58
|
+
- Updated dependencies:
|
|
59
|
+
- @codefast/tailwind-variants@0.10.0
|
|
60
|
+
- @codefast/theme@0.10.0
|
|
61
|
+
|
|
3
62
|
## 0.13.0
|
|
4
63
|
|
|
5
64
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -33,12 +33,14 @@ Or the equivalent with your package manager: `npm install @codefast/ui`, `yarn a
|
|
|
33
33
|
|
|
34
34
|
`@codefast/ui` requires:
|
|
35
35
|
|
|
36
|
-
- Node.js
|
|
36
|
+
- Node.js 22.22.2 or later.
|
|
37
37
|
- TypeScript 7 or later for its types.
|
|
38
38
|
- Chrome and Edge 136, Firefox 136, or Safari 18.4 or later in the browser
|
|
39
39
|
([support policy](../../SUPPORT.md#browsers)).
|
|
40
40
|
- React 19 — `react` and `react-dom` (19 or later) are peer dependencies; `@types/react` and `@types/react-dom` are
|
|
41
41
|
optional peers.
|
|
42
|
+
- `@codefast/theme` 0.9 or later — a peer dependency, because `Toaster` takes its color scheme from the enclosing
|
|
43
|
+
`AppearanceProvider`.
|
|
42
44
|
- Tailwind CSS 4 at build time — the stylesheets are Tailwind source, and rely on your Tailwind pipeline to compile
|
|
43
45
|
them.
|
|
44
46
|
|
|
@@ -3,9 +3,9 @@ import type { ComponentProps, JSX } from "react";
|
|
|
3
3
|
/**
|
|
4
4
|
* @since 0.3.16-canary.0
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
interface AvatarProps extends ComponentProps<typeof AvatarPrimitive.Root> {
|
|
7
7
|
size?: "default" | "sm" | "lg";
|
|
8
|
-
}
|
|
8
|
+
}
|
|
9
9
|
/**
|
|
10
10
|
* @since 0.3.16-canary.0
|
|
11
11
|
*/
|
|
@@ -4,7 +4,8 @@ import type { ButtonGroupVariants } from "#variants/button-group";
|
|
|
4
4
|
/**
|
|
5
5
|
* @since 0.3.16-canary.0
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
interface ButtonGroupProps extends ComponentProps<"div">, ButtonGroupVariants {
|
|
8
|
+
}
|
|
8
9
|
/**
|
|
9
10
|
* @since 0.3.16-canary.0
|
|
10
11
|
*/
|
|
@@ -3,10 +3,9 @@ import type { ButtonVariants } from "#variants/button";
|
|
|
3
3
|
/**
|
|
4
4
|
* @since 0.3.16-canary.0
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
interface ButtonProps extends ComponentProps<"button">, ButtonVariants {
|
|
7
7
|
asChild?: boolean;
|
|
8
|
-
|
|
9
|
-
};
|
|
8
|
+
}
|
|
10
9
|
/**
|
|
11
10
|
* @since 0.3.16-canary.0
|
|
12
11
|
*/
|
|
@@ -3,6 +3,8 @@ import { DayPicker } from "@daypicker/react";
|
|
|
3
3
|
import type { ComponentProps, JSX } from "react";
|
|
4
4
|
import { Button } from "#components/button";
|
|
5
5
|
/**
|
|
6
|
+
* @remarks A type alias, since DayPicker's props are a union over `mode` that only `&` distributes into.
|
|
7
|
+
*
|
|
6
8
|
* @since 0.3.16-canary.0
|
|
7
9
|
*/
|
|
8
10
|
type CalendarProps = ComponentProps<typeof DayPicker> & {
|
|
@@ -15,9 +17,9 @@ declare function Calendar({ buttonVariant, captionLayout, className, classNames,
|
|
|
15
17
|
/**
|
|
16
18
|
* @since 0.3.16-canary.0
|
|
17
19
|
*/
|
|
18
|
-
|
|
20
|
+
interface CalendarDayButtonProps extends ComponentProps<typeof DayButton> {
|
|
19
21
|
locale?: Partial<Locale> | undefined;
|
|
20
|
-
}
|
|
22
|
+
}
|
|
21
23
|
/**
|
|
22
24
|
* @since 0.3.16-canary.0
|
|
23
25
|
*/
|
|
@@ -2,9 +2,9 @@ import type { ComponentProps, JSX } from "react";
|
|
|
2
2
|
/**
|
|
3
3
|
* @since 0.3.16-canary.0
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
interface CardProps extends ComponentProps<"div"> {
|
|
6
6
|
size?: "default" | "sm";
|
|
7
|
-
}
|
|
7
|
+
}
|
|
8
8
|
/**
|
|
9
9
|
* @since 0.3.16-canary.0
|
|
10
10
|
*/
|
|
@@ -5,6 +5,7 @@ import * as RechartsPrimitive from "recharts";
|
|
|
5
5
|
import type { NameType, Payload, ValueType } from "recharts/types/component/DefaultTooltipContent";
|
|
6
6
|
type ExtractProps<T> = T extends (props: infer P) => ReactNode ? P : never;
|
|
7
7
|
type MakeOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
8
|
+
type LegendContentProps = ExtractProps<RechartsPrimitive.LegendProps["content"]>;
|
|
8
9
|
declare const THEMES: {
|
|
9
10
|
readonly dark: ".dark";
|
|
10
11
|
readonly light: "";
|
|
@@ -63,7 +64,7 @@ declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
|
|
|
63
64
|
/**
|
|
64
65
|
* @since 0.3.16-canary.0
|
|
65
66
|
*/
|
|
66
|
-
|
|
67
|
+
interface ChartTooltipContentProps<TValue extends ValueType, TName extends NameType> extends Omit<MakeOptional<TooltipContentProps<TValue, TName>, "accessibilityLayer" | "active" | "activeIndex" | "coordinate" | "payload">, "payload"> {
|
|
67
68
|
hideIndicator?: boolean;
|
|
68
69
|
hideLabel?: boolean;
|
|
69
70
|
indicator?: "dashed" | "dot" | "line";
|
|
@@ -72,7 +73,7 @@ type ChartTooltipContentProps<TValue extends ValueType, TName extends NameType>
|
|
|
72
73
|
color?: string | undefined;
|
|
73
74
|
className?: string | undefined;
|
|
74
75
|
payload?: Array<Payload<TValue, TName>>;
|
|
75
|
-
}
|
|
76
|
+
}
|
|
76
77
|
/**
|
|
77
78
|
* @since 0.3.16-canary.0
|
|
78
79
|
*/
|
|
@@ -88,10 +89,10 @@ declare const ChartLegend: typeof RechartsPrimitive.Legend;
|
|
|
88
89
|
/**
|
|
89
90
|
* @since 0.3.16-canary.0
|
|
90
91
|
*/
|
|
91
|
-
|
|
92
|
+
interface ChartLegendContentProps extends Omit<ComponentProps<"div">, keyof LegendContentProps>, LegendContentProps {
|
|
92
93
|
hideIcon?: boolean;
|
|
93
94
|
nameKey?: string;
|
|
94
|
-
}
|
|
95
|
+
}
|
|
95
96
|
/**
|
|
96
97
|
* @since 0.3.16-canary.0
|
|
97
98
|
*/
|
|
@@ -3,9 +3,9 @@ import type { ComponentProps } from "react";
|
|
|
3
3
|
/**
|
|
4
4
|
* @since 0.4.0-canary.4
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
interface DirectionProviderProps extends ComponentProps<typeof Direction.DirectionProvider> {
|
|
7
7
|
direction?: ComponentProps<typeof Direction.DirectionProvider>["dir"];
|
|
8
|
-
}
|
|
8
|
+
}
|
|
9
9
|
/**
|
|
10
10
|
* @since 0.4.0-canary.4
|
|
11
11
|
*/
|
|
@@ -19,7 +19,8 @@ declare function EmptyHeader({ className, ...props }: EmptyHeaderProps): JSX.Ele
|
|
|
19
19
|
/**
|
|
20
20
|
* @since 0.3.16-canary.0
|
|
21
21
|
*/
|
|
22
|
-
|
|
22
|
+
interface EmptyMediaProps extends ComponentProps<"div">, EmptyMediaVariants {
|
|
23
|
+
}
|
|
23
24
|
/**
|
|
24
25
|
* @since 0.3.16-canary.0
|
|
25
26
|
*/
|
|
@@ -12,9 +12,9 @@ declare function FieldSet({ className, ...props }: FieldSetProps): JSX.Element;
|
|
|
12
12
|
/**
|
|
13
13
|
* @since 0.3.16-canary.0
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
interface FieldLegendProps extends ComponentProps<"legend"> {
|
|
16
16
|
variant?: "label" | "legend";
|
|
17
|
-
}
|
|
17
|
+
}
|
|
18
18
|
/**
|
|
19
19
|
* @since 0.3.16-canary.0
|
|
20
20
|
*/
|
|
@@ -30,7 +30,8 @@ declare function FieldGroup({ className, ...props }: FieldGroupProps): JSX.Eleme
|
|
|
30
30
|
/**
|
|
31
31
|
* @since 0.3.16-canary.0
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
interface FieldProps extends ComponentProps<"div">, FieldVariants {
|
|
34
|
+
}
|
|
34
35
|
/**
|
|
35
36
|
* @since 0.3.16-canary.0
|
|
36
37
|
*/
|
|
@@ -70,9 +71,9 @@ declare function FieldDescription({ className, ...props }: FieldDescriptionProps
|
|
|
70
71
|
/**
|
|
71
72
|
* @since 0.3.16-canary.0
|
|
72
73
|
*/
|
|
73
|
-
|
|
74
|
+
interface FieldSeparatorProps extends ComponentProps<"div"> {
|
|
74
75
|
children?: ComponentProps<"span">["children"];
|
|
75
|
-
}
|
|
76
|
+
}
|
|
76
77
|
/**
|
|
77
78
|
* @since 0.3.16-canary.0
|
|
78
79
|
*/
|
|
@@ -14,7 +14,8 @@ declare function InputGroup({ className, ...props }: InputGroupProps): JSX.Eleme
|
|
|
14
14
|
/**
|
|
15
15
|
* @since 0.3.16-canary.0
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
interface InputGroupAddonProps extends ComponentProps<"div">, InputGroupAddonVariants {
|
|
18
|
+
}
|
|
18
19
|
/**
|
|
19
20
|
* @since 0.3.16-canary.0
|
|
20
21
|
*/
|
|
@@ -22,7 +23,8 @@ declare function InputGroupAddon({ align, className, ...props }: InputGroupAddon
|
|
|
22
23
|
/**
|
|
23
24
|
* @since 0.3.16-canary.0
|
|
24
25
|
*/
|
|
25
|
-
|
|
26
|
+
interface InputGroupButtonProps extends Omit<ButtonProps, "size">, InputGroupButtonVariants {
|
|
27
|
+
}
|
|
26
28
|
/**
|
|
27
29
|
* @since 0.3.16-canary.0
|
|
28
30
|
*/
|
|
@@ -12,7 +12,7 @@ import { buttonVariants } from "#variants/button";
|
|
|
12
12
|
* @since 0.3.16-canary.0
|
|
13
13
|
*/
|
|
14
14
|
function InputNumber({ className, decrementLabel = "Decrement", incrementLabel = "Increment", spinner, ...props }) {
|
|
15
|
-
return (_jsx(InputNumberPrimitive.Root, { className: cn("group/input-number relative flex h-8 w-full min-w-0 items-center overflow-hidden rounded-lg bg-transparent text-base inset-ring inset-ring-input transition-[color,box-shadow] not-has-[input:disabled]:shadow-xs has-aria-invalid:ring-3 has-aria-invalid:ring-destructive/20 has-aria-invalid:inset-ring-destructive has-[input:disabled]:bg-input/50 has-[input:disabled]:opacity-50 has-[input:focus-visible]:outline-2 has-[input:focus-visible]:outline-offset-2 has-[input:focus-visible]:outline-ring has-[input:focus-visible]:outline-solid
|
|
15
|
+
return (_jsx(InputNumberPrimitive.Root, { className: cn("group/input-number relative flex h-8 w-full min-w-0 items-center overflow-hidden rounded-lg bg-transparent text-base inset-ring inset-ring-input transition-[color,box-shadow] not-has-[input:disabled]:shadow-xs has-aria-invalid:ring-3 has-aria-invalid:ring-destructive/20 has-aria-invalid:inset-ring-destructive has-[input:disabled]:bg-input/50 has-[input:disabled]:opacity-50 has-[input:focus-visible]:outline-2 has-[input:focus-visible]:outline-offset-2 has-[input:focus-visible]:outline-ring has-[input:focus-visible]:outline-solid md:text-sm dark:bg-input/30 dark:has-aria-invalid:ring-destructive/40 dark:has-aria-invalid:inset-ring-destructive/50 dark:has-[input:disabled]:bg-input/80 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className), "data-slot": "input-number", decrementLabel: decrementLabel, incrementLabel: incrementLabel, spinner: spinner ?? _jsx(Spinner, {}), ...props }));
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
18
|
* The editable numeric input.
|
|
@@ -29,7 +29,7 @@ function InputNumberField({ className, ...props }) {
|
|
|
29
29
|
* @since 0.5.0-canary.6
|
|
30
30
|
*/
|
|
31
31
|
function InputNumberStepper({ className, ...props }) {
|
|
32
|
-
return (_jsxs("div", { className: cn("grid h-full w-8 shrink-0 grid-rows-2 divide-y divide-input border-s border-s-input transition-colors group-has-aria-invalid/input-number:divide-destructive group-has-aria-invalid/input-number:border-s-destructive
|
|
32
|
+
return (_jsxs("div", { className: cn("grid h-full w-8 shrink-0 grid-rows-2 divide-y divide-input border-s border-s-input transition-colors group-has-aria-invalid/input-number:divide-destructive group-has-aria-invalid/input-number:border-s-destructive group-has-aria-invalid/input-number:*:[button]:focus-visible:bg-destructive/20 dark:group-has-aria-invalid/input-number:*:[button]:focus-visible:bg-destructive/40", className), "data-slot": "input-number-stepper", ...props, children: [_jsx(InputNumberPrimitive.IncrementButton, { className: buttonVariants({
|
|
33
33
|
className: "h-full min-w-0 rounded-none px-0 text-muted-foreground focus-visible:-outline-offset-2",
|
|
34
34
|
variant: "ghost",
|
|
35
35
|
}), "data-slot": "input-number-increment", children: _jsx(ChevronUpIcon, { className: "size-3.5" }) }), _jsx(InputNumberPrimitive.DecrementButton, { className: buttonVariants({
|
|
@@ -20,9 +20,9 @@ declare function ItemSeparator({ className, ...props }: ItemSeparatorProps): JSX
|
|
|
20
20
|
/**
|
|
21
21
|
* @since 0.3.16-canary.0
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
interface ItemProps extends ComponentProps<"div">, ItemVariants {
|
|
24
24
|
asChild?: boolean;
|
|
25
|
-
}
|
|
25
|
+
}
|
|
26
26
|
/**
|
|
27
27
|
* @since 0.3.16-canary.0
|
|
28
28
|
*/
|
|
@@ -30,7 +30,8 @@ declare function Item({ asChild, className, size, variant, ...props }: ItemProps
|
|
|
30
30
|
/**
|
|
31
31
|
* @since 0.3.16-canary.0
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
interface ItemMediaProps extends ComponentProps<"div">, ItemMediaVariants {
|
|
34
|
+
}
|
|
34
35
|
/**
|
|
35
36
|
* @since 0.3.16-canary.0
|
|
36
37
|
*/
|
|
@@ -56,7 +56,8 @@ declare function MessageScrollerItem({ className, isScrollAnchor, ...props }: Me
|
|
|
56
56
|
*
|
|
57
57
|
* @since 0.5.0-canary.3
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
interface MessageScrollerButtonProps extends ComponentProps<typeof MessageScrollerButtonPrimitive>, Pick<ComponentProps<typeof Button>, "size" | "variant"> {
|
|
60
|
+
}
|
|
60
61
|
/**
|
|
61
62
|
* @since 0.5.0-canary.3
|
|
62
63
|
*/
|
|
@@ -2,9 +2,9 @@ import type { ComponentProps, JSX } from "react";
|
|
|
2
2
|
/**
|
|
3
3
|
* @since 0.3.16-canary.0
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
interface NativeSelectProps extends Omit<ComponentProps<"select">, "size"> {
|
|
6
6
|
size?: "default" | "sm";
|
|
7
|
-
}
|
|
7
|
+
}
|
|
8
8
|
/**
|
|
9
9
|
* @since 0.3.16-canary.0
|
|
10
10
|
*/
|
|
@@ -5,7 +5,7 @@ import { cn } from "#lib/utils";
|
|
|
5
5
|
* @since 0.3.16-canary.0
|
|
6
6
|
*/
|
|
7
7
|
function NativeSelect({ className, size = "default", ...props }) {
|
|
8
|
-
return (_jsxs("div", { className: cn("group/native-select relative w-fit has-[select:disabled]:opacity-50", className), "data-size": size, "data-slot": "native-select-wrapper", children: [_jsx("select", { className: "h-8 w-full min-w-0 appearance-none rounded-lg border border-input bg-transparent py-1 ps-2.5 pe-8 text-sm shadow-xs transition-[color,box-shadow] outline-none select-none selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring focus-visible:outline-solid disabled:pointer-events-none disabled:cursor-not-allowed aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-[size=sm]:py-0.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40", "data-size": size, "data-slot": "native-select", ...props }), _jsx(ChevronDownIcon, { "aria-hidden": "true", className: "pointer-events-none absolute inset-e-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground select-none", "data-slot": "native-select-icon" })] }));
|
|
8
|
+
return (_jsxs("div", { className: cn("group/native-select relative w-fit has-[select:disabled]:opacity-50", className), "data-size": size, "data-slot": "native-select-wrapper", children: [_jsx("select", { className: "h-8 w-full min-w-0 appearance-none truncate rounded-lg border border-input bg-transparent py-1 ps-2.5 pe-8 text-sm shadow-xs transition-[color,box-shadow] outline-none select-none selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring focus-visible:outline-solid disabled:pointer-events-none disabled:cursor-not-allowed aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-[size=sm]:py-0.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40", "data-size": size, "data-slot": "native-select", ...props }), _jsx(ChevronDownIcon, { "aria-hidden": "true", className: "pointer-events-none absolute inset-e-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground select-none", "data-slot": "native-select-icon" })] }));
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* @since 0.3.16-canary.0
|
|
@@ -17,7 +17,7 @@ function ResizablePanel({ ...props }) {
|
|
|
17
17
|
* @since 0.3.16-canary.0
|
|
18
18
|
*/
|
|
19
19
|
function ResizableSeparator({ className, withHandle, ...props }) {
|
|
20
|
-
return (_jsx(ResizablePrimitive.Separator, { className: cn("relative flex w-px items-center justify-center bg-border
|
|
20
|
+
return (_jsx(ResizablePrimitive.Separator, { className: cn("relative flex w-px items-center justify-center bg-border outline-none after:absolute after:inset-y-0 after:inset-s-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring focus-visible:outline-solid aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:inset-s-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:translate-x-0 aria-[orientation=horizontal]:after:-translate-y-1/2 rtl:after:translate-x-1/2 rtl:aria-[orientation=horizontal]:after:translate-x-0 [&[aria-orientation=horizontal]>div]:rotate-90", className), "data-slot": "resizable-separator", ...props, children: withHandle ? _jsx("div", { className: "z-10 flex h-6 w-1 shrink-0 rounded-lg bg-border" }) : null }));
|
|
21
21
|
}
|
|
22
22
|
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
23
23
|
export { ResizableGroup, ResizablePanel, ResizableSeparator };
|
|
@@ -9,7 +9,8 @@ type ScrollAreaContextValue = Pick<ScrollAreaScrollbarVariants, "size">;
|
|
|
9
9
|
/**
|
|
10
10
|
* @since 0.3.16-canary.0
|
|
11
11
|
*/
|
|
12
|
-
|
|
12
|
+
interface ScrollAreaProps extends ScopedProps<ComponentProps<typeof ScrollAreaPrimitive.Root>>, ScrollAreaContextValue {
|
|
13
|
+
}
|
|
13
14
|
/**
|
|
14
15
|
* @since 0.3.16-canary.0
|
|
15
16
|
*/
|
|
@@ -25,7 +25,7 @@ function SelectValue({ ...props }) {
|
|
|
25
25
|
* @since 0.3.16-canary.0
|
|
26
26
|
*/
|
|
27
27
|
function SelectTrigger({ children, className, size = "default", ...props }) {
|
|
28
|
-
return (_jsxs(SelectPrimitive.Trigger, { className: cn("flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 ps-2.5 pe-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring focus-visible:outline-solid disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:
|
|
28
|
+
return (_jsxs(SelectPrimitive.Trigger, { className: cn("flex w-fit max-w-full min-w-0 items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 ps-2.5 pe-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring focus-visible:outline-solid disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:block *:data-[slot=select-value]:min-w-0 *:data-[slot=select-value]:truncate dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_[data-slot=select-value]_svg]:me-1.5 [&_[data-slot=select-value]_svg]:inline-block [&_[data-slot=select-value]_svg]:align-[-0.125em] [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className), "data-size": size, "data-slot": "select-trigger", ...props, children: [children, _jsx(SelectPrimitive.Icon, { asChild: true, children: _jsx(ChevronDownIcon, { className: "pointer-events-none size-4 text-muted-foreground" }) })] }));
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
31
|
* @since 0.3.16-canary.0
|
|
@@ -176,14 +176,14 @@ function SidebarGroup({ className, ...props }) {
|
|
|
176
176
|
*/
|
|
177
177
|
function SidebarGroupLabel({ asChild = false, className, ...props }) {
|
|
178
178
|
const Component = asChild ? Slot.Root : "div";
|
|
179
|
-
return (_jsx(Component, { className: cn("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70
|
|
179
|
+
return (_jsx(Component, { className: cn("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 transition-[margin,opacity] duration-200 ease-gentle outline-none group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-sidebar-ring focus-visible:outline-solid [&>svg]:size-4 [&>svg]:shrink-0", className), "data-sidebar": "group-label", "data-slot": "sidebar-group-label", ...props }));
|
|
180
180
|
}
|
|
181
181
|
/**
|
|
182
182
|
* @since 0.3.16-canary.0
|
|
183
183
|
*/
|
|
184
184
|
function SidebarGroupAction({ asChild = false, className, ...props }) {
|
|
185
185
|
const Component = asChild ? Slot.Root : "button";
|
|
186
|
-
return (_jsx(Component, { className: cn("absolute inset-e-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground
|
|
186
|
+
return (_jsx(Component, { className: cn("absolute inset-e-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground transition-transform outline-none group-data-[collapsible=icon]:hidden after:absolute after:-inset-2 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-sidebar-ring focus-visible:outline-solid sidebar:after:hidden [&>svg]:size-4 [&>svg]:shrink-0", className), "data-sidebar": "group-action", "data-slot": "sidebar-group-action", ...props }));
|
|
187
187
|
}
|
|
188
188
|
/**
|
|
189
189
|
* @since 0.3.16-canary.0
|
|
@@ -227,7 +227,7 @@ function SidebarMenuButton({ asChild = false, className, isActive = false, size
|
|
|
227
227
|
*/
|
|
228
228
|
function SidebarMenuAction({ asChild = false, className, showOnHover = false, ...props }) {
|
|
229
229
|
const Component = asChild ? Slot.Root : "button";
|
|
230
|
-
return (_jsx(Component, { className: cn("absolute inset-e-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground
|
|
230
|
+
return (_jsx(Component, { className: cn("absolute inset-e-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground transition-transform outline-none group-data-[collapsible=icon]:hidden peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 after:absolute after:-inset-2 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-sidebar-ring focus-visible:outline-solid sidebar:after:hidden [&>svg]:size-4 [&>svg]:shrink-0", showOnHover &&
|
|
231
231
|
"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 peer-data-active/menu-button:text-sidebar-accent-foreground aria-expanded:opacity-100 sidebar:opacity-0", className), "data-sidebar": "menu-action", "data-slot": "sidebar-menu-action", ...props }));
|
|
232
232
|
}
|
|
233
233
|
/**
|
|
@@ -268,7 +268,7 @@ function SidebarMenuSubItem({ className, ...props }) {
|
|
|
268
268
|
*/
|
|
269
269
|
function SidebarMenuSubButton({ asChild = false, className, isActive = false, size = "md", ...props }) {
|
|
270
270
|
const Component = asChild ? Slot.Root : "a";
|
|
271
|
-
return (_jsx(Component, { className: cn("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground
|
|
271
|
+
return (_jsx(Component, { className: cn("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none group-data-[collapsible=icon]:hidden hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-sidebar-ring focus-visible:outline-solid active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[size=md]:text-sm data-[size=sm]:text-xs rtl:translate-x-px data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground", className), "data-active": isActive, "data-sidebar": "menu-sub-button", "data-size": size, "data-slot": "sidebar-menu-sub-button", ...props }));
|
|
272
272
|
}
|
|
273
273
|
// ── Helpers ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
274
274
|
// The sheet takes over below the preset's `sidebar:` breakpoint, so JS matches the value that CSS resolved.
|
|
@@ -5,6 +5,8 @@ import type { ToasterProps as SonnerToasterProps } from "sonner";
|
|
|
5
5
|
*/
|
|
6
6
|
type ToasterProps = SonnerToasterProps;
|
|
7
7
|
/**
|
|
8
|
+
* Renders the toast region in the color scheme resolved by the enclosing `AppearanceProvider`.
|
|
9
|
+
*
|
|
8
10
|
* @since 0.3.16-canary.0
|
|
9
11
|
*/
|
|
10
12
|
declare function Toaster({ ...props }: ToasterProps): JSX.Element;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useAppearance } from "@codefast/theme";
|
|
2
3
|
import { CircleCheckIcon, InfoIcon, Loader2Icon, OctagonXIcon, TriangleAlertIcon } from "lucide-react";
|
|
3
|
-
import { useTheme } from "next-themes";
|
|
4
4
|
import { Toaster as Sonner } from "sonner";
|
|
5
5
|
/**
|
|
6
|
+
* Renders the toast region in the color scheme resolved by the enclosing `AppearanceProvider`.
|
|
7
|
+
*
|
|
6
8
|
* @since 0.3.16-canary.0
|
|
7
9
|
*/
|
|
8
10
|
function Toaster({ ...props }) {
|
|
9
|
-
const {
|
|
11
|
+
const { colorScheme } = useAppearance();
|
|
10
12
|
return (_jsx(Sonner, { className: "toaster group", icons: {
|
|
11
13
|
error: _jsx(OctagonXIcon, { className: "size-4" }),
|
|
12
14
|
info: _jsx(InfoIcon, { className: "size-4" }),
|
|
@@ -18,7 +20,7 @@ function Toaster({ ...props }) {
|
|
|
18
20
|
"--normal-bg": "var(--popover)",
|
|
19
21
|
"--normal-border": "var(--border)",
|
|
20
22
|
"--normal-text": "var(--popover-foreground)",
|
|
21
|
-
}, theme:
|
|
23
|
+
}, theme: colorScheme, toastOptions: {
|
|
22
24
|
classNames: {
|
|
23
25
|
toast: "rounded-2xl",
|
|
24
26
|
},
|
|
@@ -10,7 +10,7 @@ function Spinner({ children, className, loading = true, ...props }) {
|
|
|
10
10
|
if (!loading) {
|
|
11
11
|
return children;
|
|
12
12
|
}
|
|
13
|
-
const spinner = (_jsx("span", { className: cn("relative flex size-4 items-center justify-center opacity-60", className), ...props, children: Array.from({ length: SPINNER_COUNT }, (_, index) => (_jsx("span", { className: "absolute h-full rotate-(--spinner-rotate) before:block before:h-1/3 before:w-full before:animate-out before:rounded-full before:bg-current before:delay-(--spinner-delay) before:animation-duration-(--spinner-duration) before:fade-out-25 before:repeat-infinite
|
|
13
|
+
const spinner = (_jsx("span", { className: cn("relative flex size-4 items-center justify-center opacity-60", className), ...props, children: Array.from({ length: SPINNER_COUNT }, (_, index) => (_jsx("span", { className: "absolute h-full rotate-(--spinner-rotate) before:block before:h-1/3 before:w-full before:animate-out before:rounded-full before:bg-current before:delay-(--spinner-delay) before:animation-duration-(--spinner-duration) before:fade-out-25 before:repeat-infinite", style: {
|
|
14
14
|
"--spinner-delay": `-${((SPINNER_COUNT - index) * 100).toString()}ms`,
|
|
15
15
|
"--spinner-duration": `${(SPINNER_COUNT * 100).toString()}ms`,
|
|
16
16
|
"--spinner-rotate": `${((360 / SPINNER_COUNT) * index).toString()}deg`,
|
|
@@ -3,9 +3,9 @@ import type { ComponentProps, JSX } from "react";
|
|
|
3
3
|
/**
|
|
4
4
|
* @since 0.3.16-canary.0
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
interface SwitchProps extends ComponentProps<typeof SwitchPrimitives.Root> {
|
|
7
7
|
size?: "default" | "sm";
|
|
8
|
-
}
|
|
8
|
+
}
|
|
9
9
|
/**
|
|
10
10
|
* @since 0.3.16-canary.0
|
|
11
11
|
*/
|
|
@@ -12,7 +12,8 @@ declare function Tabs({ className, orientation, ...props }: TabsProps): JSX.Elem
|
|
|
12
12
|
/**
|
|
13
13
|
* @since 0.3.16-canary.0
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
interface TabsListProps extends ComponentProps<typeof TabsPrimitive.List>, TabsListVariants {
|
|
16
|
+
}
|
|
16
17
|
/**
|
|
17
18
|
* @since 0.3.16-canary.0
|
|
18
19
|
*/
|
|
@@ -7,6 +7,8 @@ type ScopedProps<P> = P & {
|
|
|
7
7
|
__scopeToggleGroup?: Context.Scope;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
|
+
* @remarks A type alias, since Radix's root props are a union over `type` that only `&` distributes into.
|
|
11
|
+
*
|
|
10
12
|
* @since 0.3.16-canary.0
|
|
11
13
|
*/
|
|
12
14
|
type ToggleGroupProps = ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants> & {
|
|
@@ -20,7 +22,8 @@ declare function ToggleGroup({ __scopeToggleGroup, children, className, orientat
|
|
|
20
22
|
/**
|
|
21
23
|
* @since 0.3.16-canary.0
|
|
22
24
|
*/
|
|
23
|
-
|
|
25
|
+
interface ToggleGroupItemProps extends ScopedProps<ComponentProps<typeof ToggleGroupPrimitive.Item>>, VariantProps<typeof toggleVariants> {
|
|
26
|
+
}
|
|
24
27
|
/**
|
|
25
28
|
* @since 0.3.16-canary.0
|
|
26
29
|
*/
|
|
@@ -129,26 +129,26 @@ type MessageScrollerProps = ComponentProps<"div">;
|
|
|
129
129
|
*
|
|
130
130
|
* @since 0.5.0-canary.3
|
|
131
131
|
*/
|
|
132
|
-
|
|
132
|
+
interface MessageScrollerViewportProps extends ComponentProps<"div"> {
|
|
133
133
|
preserveScrollOnPrepend?: boolean;
|
|
134
|
-
}
|
|
134
|
+
}
|
|
135
135
|
/**
|
|
136
136
|
* Transcript row container. Every direct child should be a MessageScrollerItem.
|
|
137
137
|
*
|
|
138
138
|
* @since 0.5.0-canary.3
|
|
139
139
|
*/
|
|
140
|
-
|
|
140
|
+
interface MessageScrollerContentProps extends ComponentProps<"div"> {
|
|
141
141
|
spacerClassName?: string;
|
|
142
|
-
}
|
|
142
|
+
}
|
|
143
143
|
/**
|
|
144
144
|
* One transcript row: a message, marker, typing row, separator, or load-more row.
|
|
145
145
|
*
|
|
146
146
|
* @since 0.5.0-canary.3
|
|
147
147
|
*/
|
|
148
|
-
|
|
148
|
+
interface MessageScrollerItemProps extends ComponentProps<"div"> {
|
|
149
149
|
messageId?: string;
|
|
150
150
|
isScrollAnchor?: boolean;
|
|
151
|
-
}
|
|
151
|
+
}
|
|
152
152
|
/**
|
|
153
153
|
* State passed to MessageScrollerButton's render prop.
|
|
154
154
|
*
|
|
@@ -163,10 +163,10 @@ type MessageScrollerButtonRenderState = {
|
|
|
163
163
|
*
|
|
164
164
|
* @since 0.5.0-canary.3
|
|
165
165
|
*/
|
|
166
|
-
|
|
166
|
+
interface MessageScrollerButtonProps extends UseRenderComponentProps<"button", MessageScrollerButtonRenderState> {
|
|
167
167
|
behavior?: ScrollBehavior;
|
|
168
168
|
direction?: MessageScrollerButtonDirection;
|
|
169
|
-
}
|
|
169
|
+
}
|
|
170
170
|
/**
|
|
171
171
|
* Minimal external store backing useMessageScrollerScrollable, consumed via
|
|
172
172
|
* useSyncExternalStore.
|
|
@@ -4,6 +4,8 @@ import { RovingFocus } from "radix-ui/internal";
|
|
|
4
4
|
import type { ComponentProps, JSX } from "react";
|
|
5
5
|
/**
|
|
6
6
|
* Type for components that can be scoped within the CheckboxGroup context
|
|
7
|
+
*
|
|
8
|
+
* @remarks A type alias, since an interface cannot extend the type parameter `P` it scopes.
|
|
7
9
|
*/
|
|
8
10
|
type ScopedProps<P> = P & {
|
|
9
11
|
/**
|
|
@@ -90,7 +92,8 @@ interface CheckboxGroupBaseProps {
|
|
|
90
92
|
*
|
|
91
93
|
* @since 0.3.16-canary.0
|
|
92
94
|
*/
|
|
93
|
-
|
|
95
|
+
interface CheckboxGroupProps extends CheckboxGroupBaseProps, Omit<ComponentProps<"div">, keyof CheckboxGroupBaseProps> {
|
|
96
|
+
}
|
|
94
97
|
/**
|
|
95
98
|
* CheckboxGroup component that manages a group of checkboxes with roving focus
|
|
96
99
|
*
|
|
@@ -3,6 +3,8 @@ import type { ComponentProps, JSX } from "react";
|
|
|
3
3
|
import * as InputPrimitive from "#primitives/input";
|
|
4
4
|
/**
|
|
5
5
|
* Props that include an optional scope for the InputNumber component.
|
|
6
|
+
*
|
|
7
|
+
* @remarks A type alias, since an interface cannot extend the type parameter `P` it scopes.
|
|
6
8
|
*/
|
|
7
9
|
type ScopedProps<P> = P & {
|
|
8
10
|
/**
|
|
@@ -2,6 +2,8 @@ import { Context } from "radix-ui/internal";
|
|
|
2
2
|
import type { ComponentProps, JSX, PropsWithChildren, ReactNode } from "react";
|
|
3
3
|
/**
|
|
4
4
|
* Type for adding scope to component props
|
|
5
|
+
*
|
|
6
|
+
* @remarks A type alias, since an interface cannot extend the type parameter `P` it scopes.
|
|
5
7
|
*/
|
|
6
8
|
type ScopedProps<P> = P & {
|
|
7
9
|
/**
|
|
@@ -57,7 +59,8 @@ interface InputBehaviorProps {
|
|
|
57
59
|
*
|
|
58
60
|
* @since 0.3.16-canary.0
|
|
59
61
|
*/
|
|
60
|
-
|
|
62
|
+
interface InputProps extends PropsWithChildren<InputBehaviorProps>, InputVisualProps {
|
|
63
|
+
}
|
|
61
64
|
/**
|
|
62
65
|
* @since 0.3.16-canary.0
|
|
63
66
|
*/
|
package/dist/variants/sidebar.js
CHANGED
|
@@ -4,7 +4,7 @@ import { tv } from "#lib/utils";
|
|
|
4
4
|
* @since 0.3.16-canary.0
|
|
5
5
|
*/
|
|
6
6
|
const sidebarMenuButtonVariants = tv({
|
|
7
|
-
base: "peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-start text-sm
|
|
7
|
+
base: "peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-start text-sm transition-[width,height,padding] outline-none group-has-data-[sidebar=menu-action]/menu-item:pe-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-sidebar-ring focus-visible:outline-solid active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate",
|
|
8
8
|
defaultVariants: {
|
|
9
9
|
size: "default",
|
|
10
10
|
variant: "default",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codefast/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.1",
|
|
4
4
|
"description": "Core UI components library built with React and Tailwind CSS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"components",
|
|
@@ -468,16 +468,15 @@
|
|
|
468
468
|
"access": "public"
|
|
469
469
|
},
|
|
470
470
|
"dependencies": {
|
|
471
|
-
"@codefast/tailwind-variants": "0.
|
|
471
|
+
"@codefast/tailwind-variants": "0.10.0",
|
|
472
472
|
"@daypicker/react": "^10.0.2",
|
|
473
473
|
"cmdk": "^1.1.1",
|
|
474
474
|
"embla-carousel-react": "^8.6.0",
|
|
475
475
|
"input-otp": "^1.5.0",
|
|
476
|
-
"lucide-react": "^1.
|
|
477
|
-
"
|
|
478
|
-
"
|
|
479
|
-
"react-
|
|
480
|
-
"react-resizable-panels": "^4.14.3",
|
|
476
|
+
"lucide-react": "^1.57.0",
|
|
477
|
+
"radix-ui": "^1.8.1",
|
|
478
|
+
"react-hook-form": "^7.90.0",
|
|
479
|
+
"react-resizable-panels": "^4.14.5",
|
|
481
480
|
"recharts": "^3.10.1",
|
|
482
481
|
"sonner": "^2.0.8",
|
|
483
482
|
"tailwind-merge": "^3.7.0",
|
|
@@ -485,6 +484,7 @@
|
|
|
485
484
|
"vaul": "^1.1.2"
|
|
486
485
|
},
|
|
487
486
|
"peerDependencies": {
|
|
487
|
+
"@codefast/theme": ">=0.11.0",
|
|
488
488
|
"@types/react": ">=19.0.0",
|
|
489
489
|
"@types/react-dom": ">=19.0.0",
|
|
490
490
|
"react": ">=19.0.0",
|
|
@@ -499,6 +499,6 @@
|
|
|
499
499
|
}
|
|
500
500
|
},
|
|
501
501
|
"engines": {
|
|
502
|
-
"node": ">=
|
|
502
|
+
"node": ">=22.22.2"
|
|
503
503
|
}
|
|
504
504
|
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Base
|
|
3
3
|
*
|
|
4
4
|
* Global element defaults layered into Tailwind's `base` cascade: default
|
|
5
|
-
* border/outline colors, scrollbar styling, document
|
|
6
|
-
* native input appearance resets.
|
|
5
|
+
* border/outline colors, a solid focus outline, scrollbar styling, document
|
|
6
|
+
* background, and native input appearance resets.
|
|
7
7
|
* ------------------------------------------------------------------------- */
|
|
8
8
|
|
|
9
9
|
@layer base {
|
|
@@ -18,6 +18,13 @@
|
|
|
18
18
|
outline-color: var(--color-ring);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
/* A solid ring for focusables with no focus style of their own, instead of the UA's two-tone `auto` outline. */
|
|
22
|
+
:focus-visible {
|
|
23
|
+
outline-style: solid;
|
|
24
|
+
outline-width: 2px;
|
|
25
|
+
outline-offset: 2px;
|
|
26
|
+
}
|
|
27
|
+
|
|
21
28
|
/* ----------------------------------------------------------------------
|
|
22
29
|
* Scrollbars — WebKit (size + colors) and Firefox (thin + colors)
|
|
23
30
|
* ---------------------------------------------------------------------- */
|
|
@@ -63,3 +63,20 @@
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
+
|
|
67
|
+
/* ── Reduced motion ──────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
68
|
+
|
|
69
|
+
/*
|
|
70
|
+
* Unlayered so its `!important` beats every utility, yet a layered `!important` (`motion-reduce:duration-200!`) still
|
|
71
|
+
* opts essential motion back in. A near-zero duration, not `none`, keeps `animationend`/`transitionend` firing, which
|
|
72
|
+
* Radix Presence waits on before unmounting closed content.
|
|
73
|
+
*/
|
|
74
|
+
@media (prefers-reduced-motion: reduce) {
|
|
75
|
+
*,
|
|
76
|
+
*::before,
|
|
77
|
+
*::after {
|
|
78
|
+
animation-duration: 0.001ms !important;
|
|
79
|
+
animation-iteration-count: 1 !important;
|
|
80
|
+
transition-duration: 0.001ms !important;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -441,11 +441,3 @@
|
|
|
441
441
|
@utility shimmer-angle-* {
|
|
442
442
|
--shimmer-angle: calc(--value(integer) * 1deg);
|
|
443
443
|
}
|
|
444
|
-
|
|
445
|
-
@media (prefers-reduced-motion: reduce) {
|
|
446
|
-
.shimmer {
|
|
447
|
-
animation: none;
|
|
448
|
-
background-image: none;
|
|
449
|
-
-webkit-text-fill-color: currentColor;
|
|
450
|
-
}
|
|
451
|
-
}
|
package/src/css/preset.css
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Aggregates the foundation layers in cascade order. Import this from an app
|
|
5
5
|
* after `tailwindcss` and a theme to pull in @codefast/ui's variants, tokens,
|
|
6
|
-
* motion, utilities, and base styles.
|
|
6
|
+
* motion (with its reduced-motion override), utilities, and base styles.
|
|
7
7
|
* ------------------------------------------------------------------------- */
|
|
8
8
|
|
|
9
9
|
@import "./foundation/source.css";
|
package/src/css/themes/amber.css
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
--destructive: oklch(0.577 0.245 27.325); /* --color-red-600 */
|
|
22
22
|
|
|
23
23
|
--muted: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
24
|
-
--muted-foreground: oklch(0.
|
|
24
|
+
--muted-foreground: oklch(0.442 0.017 285.786); /* --color-zinc-600 */
|
|
25
25
|
|
|
26
26
|
--accent: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
27
27
|
--accent-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
package/src/css/themes/blue.css
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
--destructive: oklch(0.577 0.245 27.325); /* --color-red-600 */
|
|
22
22
|
|
|
23
23
|
--muted: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
24
|
-
--muted-foreground: oklch(0.
|
|
24
|
+
--muted-foreground: oklch(0.442 0.017 285.786); /* --color-zinc-600 */
|
|
25
25
|
|
|
26
26
|
--accent: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
27
27
|
--accent-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
package/src/css/themes/cyan.css
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
--destructive: oklch(0.577 0.245 27.325); /* --color-red-600 */
|
|
22
22
|
|
|
23
23
|
--muted: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
24
|
-
--muted-foreground: oklch(0.
|
|
24
|
+
--muted-foreground: oklch(0.442 0.017 285.786); /* --color-zinc-600 */
|
|
25
25
|
|
|
26
26
|
--accent: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
27
27
|
--accent-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
--destructive: oklch(0.577 0.245 27.325); /* --color-red-600 */
|
|
22
22
|
|
|
23
23
|
--muted: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
24
|
-
--muted-foreground: oklch(0.
|
|
24
|
+
--muted-foreground: oklch(0.442 0.017 285.786); /* --color-zinc-600 */
|
|
25
25
|
|
|
26
26
|
--accent: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
27
27
|
--accent-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
--destructive: oklch(0.577 0.245 27.325); /* --color-red-600 */
|
|
22
22
|
|
|
23
23
|
--muted: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
24
|
-
--muted-foreground: oklch(0.
|
|
24
|
+
--muted-foreground: oklch(0.442 0.017 285.786); /* --color-zinc-600 */
|
|
25
25
|
|
|
26
26
|
--accent: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
27
27
|
--accent-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
package/src/css/themes/gray.css
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
--destructive: oklch(0.577 0.245 27.325); /* --color-red-600 */
|
|
22
22
|
|
|
23
23
|
--muted: oklch(0.97 0 265); /* --color-gray-100 */
|
|
24
|
-
--muted-foreground: oklch(0.
|
|
24
|
+
--muted-foreground: oklch(0.45 0.03 257); /* --color-gray-600 */
|
|
25
25
|
|
|
26
26
|
--accent: oklch(0.97 0 265); /* --color-gray-100 */
|
|
27
27
|
--accent-foreground: oklch(0.21 0.03 265); /* --color-gray-900 */
|
package/src/css/themes/green.css
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
--destructive: oklch(0.577 0.245 27.325); /* --color-red-600 */
|
|
22
22
|
|
|
23
23
|
--muted: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
24
|
-
--muted-foreground: oklch(0.
|
|
24
|
+
--muted-foreground: oklch(0.442 0.017 285.786); /* --color-zinc-600 */
|
|
25
25
|
|
|
26
26
|
--accent: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
27
27
|
--accent-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
--destructive: oklch(0.577 0.245 27.325); /* --color-red-600 */
|
|
22
22
|
|
|
23
23
|
--muted: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
24
|
-
--muted-foreground: oklch(0.
|
|
24
|
+
--muted-foreground: oklch(0.442 0.017 285.786); /* --color-zinc-600 */
|
|
25
25
|
|
|
26
26
|
--accent: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
27
27
|
--accent-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
package/src/css/themes/lime.css
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
--destructive: oklch(0.577 0.245 27.325); /* --color-red-600 */
|
|
22
22
|
|
|
23
23
|
--muted: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
24
|
-
--muted-foreground: oklch(0.
|
|
24
|
+
--muted-foreground: oklch(0.442 0.017 285.786); /* --color-zinc-600 */
|
|
25
25
|
|
|
26
26
|
--accent: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
27
27
|
--accent-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
--destructive: oklch(0.577 0.245 27.325); /* --color-red-600 */
|
|
22
22
|
|
|
23
23
|
--muted: oklch(0.97 0 0); /* --color-neutral-100 */
|
|
24
|
-
--muted-foreground: oklch(0.
|
|
24
|
+
--muted-foreground: oklch(0.439 0 0); /* --color-neutral-600 */
|
|
25
25
|
|
|
26
26
|
--accent: oklch(0.97 0 0); /* --color-neutral-100 */
|
|
27
27
|
--accent-foreground: oklch(0.205 0 0); /* --color-neutral-900 */
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
--destructive: oklch(0.577 0.245 27.325); /* --color-red-600 */
|
|
22
22
|
|
|
23
23
|
--muted: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
24
|
-
--muted-foreground: oklch(0.
|
|
24
|
+
--muted-foreground: oklch(0.442 0.017 285.786); /* --color-zinc-600 */
|
|
25
25
|
|
|
26
26
|
--accent: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
27
27
|
--accent-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
package/src/css/themes/pink.css
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
--destructive: oklch(0.577 0.245 27.325); /* --color-red-600 */
|
|
22
22
|
|
|
23
23
|
--muted: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
24
|
-
--muted-foreground: oklch(0.
|
|
24
|
+
--muted-foreground: oklch(0.442 0.017 285.786); /* --color-zinc-600 */
|
|
25
25
|
|
|
26
26
|
--accent: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
27
27
|
--accent-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
--destructive: oklch(0.577 0.245 27.325); /* --color-red-600 */
|
|
22
22
|
|
|
23
23
|
--muted: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
24
|
-
--muted-foreground: oklch(0.
|
|
24
|
+
--muted-foreground: oklch(0.442 0.017 285.786); /* --color-zinc-600 */
|
|
25
25
|
|
|
26
26
|
--accent: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
27
27
|
--accent-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
package/src/css/themes/red.css
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
--destructive: oklch(0.577 0.245 27.325); /* --color-red-600 */
|
|
22
22
|
|
|
23
23
|
--muted: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
24
|
-
--muted-foreground: oklch(0.
|
|
24
|
+
--muted-foreground: oklch(0.442 0.017 285.786); /* --color-zinc-600 */
|
|
25
25
|
|
|
26
26
|
--accent: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
27
27
|
--accent-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
package/src/css/themes/rose.css
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
--destructive: oklch(0.577 0.245 27.325); /* --color-red-600 */
|
|
22
22
|
|
|
23
23
|
--muted: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
24
|
-
--muted-foreground: oklch(0.
|
|
24
|
+
--muted-foreground: oklch(0.442 0.017 285.786); /* --color-zinc-600 */
|
|
25
25
|
|
|
26
26
|
--accent: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
27
27
|
--accent-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
package/src/css/themes/sky.css
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
--destructive: oklch(0.577 0.245 27.325); /* --color-red-600 */
|
|
22
22
|
|
|
23
23
|
--muted: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
24
|
-
--muted-foreground: oklch(0.
|
|
24
|
+
--muted-foreground: oklch(0.442 0.017 285.786); /* --color-zinc-600 */
|
|
25
25
|
|
|
26
26
|
--accent: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
27
27
|
--accent-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
package/src/css/themes/slate.css
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
--destructive: oklch(0.577 0.245 27.325); /* --color-red-600 */
|
|
22
22
|
|
|
23
23
|
--muted: oklch(0.97 0.01 248); /* --color-slate-100 */
|
|
24
|
-
--muted-foreground: oklch(0.
|
|
24
|
+
--muted-foreground: oklch(0.45 0.04 257); /* --color-slate-600 */
|
|
25
25
|
|
|
26
26
|
--accent: oklch(0.97 0.01 248); /* --color-slate-100 */
|
|
27
27
|
--accent-foreground: oklch(0.21 0.04 266); /* --color-slate-900 */
|
package/src/css/themes/stone.css
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
--destructive: oklch(0.577 0.245 27.325); /* --color-red-600 */
|
|
22
22
|
|
|
23
23
|
--muted: oklch(0.97 0.001 106.424); /* --color-stone-100 */
|
|
24
|
-
--muted-foreground: oklch(0.
|
|
24
|
+
--muted-foreground: oklch(0.444 0.011 73.639); /* --color-stone-600 */
|
|
25
25
|
|
|
26
26
|
--accent: oklch(0.97 0.001 106.424); /* --color-stone-100 */
|
|
27
27
|
--accent-foreground: oklch(0.216 0.006 56.043); /* --color-stone-900 */
|
package/src/css/themes/teal.css
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
--destructive: oklch(0.577 0.245 27.325); /* --color-red-600 */
|
|
22
22
|
|
|
23
23
|
--muted: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
24
|
-
--muted-foreground: oklch(0.
|
|
24
|
+
--muted-foreground: oklch(0.442 0.017 285.786); /* --color-zinc-600 */
|
|
25
25
|
|
|
26
26
|
--accent: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
27
27
|
--accent-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
--destructive: oklch(0.577 0.245 27.325); /* --color-red-600 */
|
|
22
22
|
|
|
23
23
|
--muted: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
24
|
-
--muted-foreground: oklch(0.
|
|
24
|
+
--muted-foreground: oklch(0.442 0.017 285.786); /* --color-zinc-600 */
|
|
25
25
|
|
|
26
26
|
--accent: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
27
27
|
--accent-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
--destructive: oklch(0.577 0.245 27.325); /* --color-red-600 */
|
|
22
22
|
|
|
23
23
|
--muted: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
24
|
-
--muted-foreground: oklch(0.
|
|
24
|
+
--muted-foreground: oklch(0.442 0.017 285.786); /* --color-zinc-600 */
|
|
25
25
|
|
|
26
26
|
--accent: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
27
27
|
--accent-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
package/src/css/themes/zinc.css
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
--destructive: oklch(0.577 0.245 27.325); /* --color-red-600 */
|
|
22
22
|
|
|
23
23
|
--muted: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
24
|
-
--muted-foreground: oklch(0.
|
|
24
|
+
--muted-foreground: oklch(0.442 0.017 285.786); /* --color-zinc-600 */
|
|
25
25
|
|
|
26
26
|
--accent: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
27
27
|
--accent-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|