@codefast/ui 0.5.0-canary.6 → 0.5.0-canary.8
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
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @codefast/ui
|
|
2
2
|
|
|
3
|
+
## 0.5.0-canary.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies []:
|
|
8
|
+
- @codefast/tailwind-variants@0.5.0-canary.8
|
|
9
|
+
|
|
10
|
+
## 0.5.0-canary.7
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies []:
|
|
15
|
+
- @codefast/tailwind-variants@0.5.0-canary.7
|
|
16
|
+
|
|
3
17
|
## 0.5.0-canary.6
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -11,7 +11,7 @@ type InputNumberProps = ComponentProps<typeof InputNumberPrimitive.Root>;
|
|
|
11
11
|
*
|
|
12
12
|
* @since 0.3.16-canary.0
|
|
13
13
|
*/
|
|
14
|
-
declare function InputNumber({ className, spinner, ...props }: InputNumberProps): JSX.Element;
|
|
14
|
+
declare function InputNumber({ ariaDecrementLabel, ariaIncrementLabel, className, spinner, ...props }: InputNumberProps): JSX.Element;
|
|
15
15
|
/**
|
|
16
16
|
* @since 0.5.0-canary.6
|
|
17
17
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-number.d.ts","sourceRoot":"","sources":["../../src/components/input-number.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAIjD,OAAO,KAAK,oBAAoB,MAAM,2BAA2B,CAAC;AAOlE;;GAEG;AACH,KAAK,gBAAgB,GAAG,cAAc,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,CAAC;AAEzE;;;;;;GAMG;AACH,iB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;;GAKG;AACH,iBAAS,oBAAoB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,yBAAyB,GAAG,GAAG,CAAC,OAAO,CAgBvG;AAMD,OAAO,EAAE,WAAW,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,CAAC;AACzG,YAAY,EACV,yBAAyB,EACzB,qBAAqB,EACrB,yBAAyB,EACzB,gBAAgB,EAChB,uBAAuB,GACxB,CAAC"}
|
|
@@ -11,8 +11,8 @@ import { buttonVariants } from "#/variants/button";
|
|
|
11
11
|
*
|
|
12
12
|
* @since 0.3.16-canary.0
|
|
13
13
|
*/
|
|
14
|
-
function InputNumber({ className, 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
|
|
14
|
+
function InputNumber({ ariaDecrementLabel = "Decrement", ariaIncrementLabel = "Increment", className, spinner, ...props }) {
|
|
15
|
+
return (_jsx(InputNumberPrimitive.Root, { ariaDecrementLabel: ariaDecrementLabel, ariaIncrementLabel: ariaIncrementLabel, 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]:ring-3 has-[input:focus-visible]:ring-ring/50 has-[input:focus-visible]:inset-ring-ring motion-reduce:transition-none 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", 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-
|
|
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 motion-reduce:transition-none *:[button]:focus-visible:bg-ring/50 *:[button]:focus-visible:ring-0 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",
|
|
34
34
|
variant: "ghost",
|
|
35
35
|
}), "data-slot": "input-number-increment", children: _jsx(ChevronUpIcon, { className: "size-3.5" }) }), _jsx(InputNumberPrimitive.DecrementButton, { className: buttonVariants({
|
|
@@ -45,7 +45,7 @@ function InputNumberStepper({ className, ...props }) {
|
|
|
45
45
|
*/
|
|
46
46
|
function InputNumberIncrement({ children, className, ...props }) {
|
|
47
47
|
return (_jsx(InputNumberPrimitive.IncrementButton, { className: buttonVariants({
|
|
48
|
-
className: cn("h-full w-8 shrink-0 rounded-none rounded-e-[calc(var(--radius-lg)-1px)] border-s border-s-input text-muted-foreground group-
|
|
48
|
+
className: cn("h-full w-8 shrink-0 rounded-none rounded-e-[calc(var(--radius-lg)-1px)] border-s border-s-input text-muted-foreground group-has-aria-invalid/input-number:border-s-destructive focus-visible:bg-ring/50 focus-visible:ring-0 group-has-aria-invalid/input-number:focus-visible:bg-destructive/20 dark:group-has-aria-invalid/input-number:focus-visible:bg-destructive/40", className),
|
|
49
49
|
variant: "ghost",
|
|
50
50
|
}), "data-slot": "input-number-increment", ...props, children: children ?? _jsx(PlusIcon, {}) }));
|
|
51
51
|
}
|
|
@@ -57,7 +57,7 @@ function InputNumberIncrement({ children, className, ...props }) {
|
|
|
57
57
|
*/
|
|
58
58
|
function InputNumberDecrement({ children, className, ...props }) {
|
|
59
59
|
return (_jsx(InputNumberPrimitive.DecrementButton, { className: buttonVariants({
|
|
60
|
-
className: cn("h-full w-8 shrink-0 rounded-none rounded-s-[calc(var(--radius-lg)-1px)] border-e border-e-input text-muted-foreground group-
|
|
60
|
+
className: cn("h-full w-8 shrink-0 rounded-none rounded-s-[calc(var(--radius-lg)-1px)] border-e border-e-input text-muted-foreground group-has-aria-invalid/input-number:border-e-destructive focus-visible:bg-ring/50 focus-visible:ring-0 group-has-aria-invalid/input-number:focus-visible:bg-destructive/20 dark:group-has-aria-invalid/input-number:focus-visible:bg-destructive/40", className),
|
|
61
61
|
variant: "ghost",
|
|
62
62
|
}), "data-slot": "input-number-decrement", ...props, children: children ?? _jsx(MinusIcon, {}) }));
|
|
63
63
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-number.js","sourceRoot":"","sources":["../../src/components/input-number.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGnF,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,KAAK,oBAAoB,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAWnD;;;;;;GAMG;AACH,SAAS,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"input-number.js","sourceRoot":"","sources":["../../src/components/input-number.tsx"],"names":[],"mappings":";AAAA,OA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
|
|
2
2
|
"name": "@codefast/ui",
|
|
3
|
-
"version": "0.5.0-canary.
|
|
3
|
+
"version": "0.5.0-canary.8",
|
|
4
4
|
"description": "Core UI components library built with React and Tailwind CSS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"components",
|
|
@@ -616,34 +616,34 @@
|
|
|
616
616
|
"cmdk": "^1.1.1",
|
|
617
617
|
"embla-carousel-react": "^8.6.0",
|
|
618
618
|
"input-otp": "^1.4.2",
|
|
619
|
-
"lucide-react": "^1.
|
|
619
|
+
"lucide-react": "^1.27.0",
|
|
620
620
|
"next-themes": "^0.4.6",
|
|
621
|
-
"radix-ui": "^1.6.
|
|
622
|
-
"react-hook-form": "^7.
|
|
621
|
+
"radix-ui": "^1.6.7",
|
|
622
|
+
"react-hook-form": "^7.83.0",
|
|
623
623
|
"react-resizable-panels": "^4.12.2",
|
|
624
|
-
"recharts": "^3.
|
|
624
|
+
"recharts": "^3.10.1",
|
|
625
625
|
"sonner": "^2.0.7",
|
|
626
626
|
"tw-animate-css": "^1.4.0",
|
|
627
627
|
"vaul": "^1.1.2",
|
|
628
|
-
"@codefast/tailwind-variants": "0.5.0-canary.
|
|
628
|
+
"@codefast/tailwind-variants": "0.5.0-canary.8"
|
|
629
629
|
},
|
|
630
630
|
"devDependencies": {
|
|
631
631
|
"@tailwindcss/postcss": "^4.3.3",
|
|
632
632
|
"@testing-library/dom": "^10.4.1",
|
|
633
|
-
"@testing-library/jest-dom": "^
|
|
633
|
+
"@testing-library/jest-dom": "^7.0.0",
|
|
634
634
|
"@testing-library/react": "^16.3.2",
|
|
635
635
|
"@testing-library/user-event": "^14.6.1",
|
|
636
636
|
"@types/jest-axe": "^3.5.9",
|
|
637
637
|
"@types/node": "^26.1.1",
|
|
638
|
-
"@vitejs/plugin-react": "^6.0.
|
|
638
|
+
"@vitejs/plugin-react": "^6.0.4",
|
|
639
639
|
"@vitest/coverage-v8": "^4.1.10",
|
|
640
|
-
"jest-axe": "^
|
|
640
|
+
"jest-axe": "^11.0.0",
|
|
641
641
|
"jsdom": "^29.1.1",
|
|
642
|
-
"postcss": "^8.5.
|
|
642
|
+
"postcss": "^8.5.23",
|
|
643
643
|
"tailwindcss": "^4.3.3",
|
|
644
644
|
"typescript": "^7.0.2",
|
|
645
645
|
"vitest": "^4.1.10",
|
|
646
|
-
"@codefast/typescript-config": "0.5.0-canary.
|
|
646
|
+
"@codefast/typescript-config": "0.5.0-canary.8"
|
|
647
647
|
},
|
|
648
648
|
"peerDependencies": {
|
|
649
649
|
"@types/react": ">=19.0.0",
|
|
@@ -22,11 +22,19 @@ type InputNumberProps = ComponentProps<typeof InputNumberPrimitive.Root>;
|
|
|
22
22
|
*
|
|
23
23
|
* @since 0.3.16-canary.0
|
|
24
24
|
*/
|
|
25
|
-
function InputNumber({
|
|
25
|
+
function InputNumber({
|
|
26
|
+
ariaDecrementLabel = "Decrement",
|
|
27
|
+
ariaIncrementLabel = "Increment",
|
|
28
|
+
className,
|
|
29
|
+
spinner,
|
|
30
|
+
...props
|
|
31
|
+
}: InputNumberProps): JSX.Element {
|
|
26
32
|
return (
|
|
27
33
|
<InputNumberPrimitive.Root
|
|
34
|
+
ariaDecrementLabel={ariaDecrementLabel}
|
|
35
|
+
ariaIncrementLabel={ariaIncrementLabel}
|
|
28
36
|
className={cn(
|
|
29
|
-
"group/input-number relative flex h-8 w-full min-w-0 items-center overflow-hidden rounded-lg
|
|
37
|
+
"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]:ring-3 has-[input:focus-visible]:ring-ring/50 has-[input:focus-visible]:inset-ring-ring motion-reduce:transition-none 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",
|
|
30
38
|
className,
|
|
31
39
|
)}
|
|
32
40
|
data-slot="input-number"
|
|
@@ -86,7 +94,7 @@ function InputNumberStepper({ className, ...props }: InputNumberStepperProps): J
|
|
|
86
94
|
return (
|
|
87
95
|
<div
|
|
88
96
|
className={cn(
|
|
89
|
-
"grid h-full w-8 shrink-0 grid-rows-2 divide-y divide-input border-s border-s-input transition-colors group-
|
|
97
|
+
"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 motion-reduce:transition-none *:[button]:focus-visible:bg-ring/50 *:[button]:focus-visible:ring-0 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",
|
|
90
98
|
className,
|
|
91
99
|
)}
|
|
92
100
|
data-slot="input-number-stepper"
|
|
@@ -135,7 +143,7 @@ function InputNumberIncrement({ children, className, ...props }: InputNumberIncr
|
|
|
135
143
|
<InputNumberPrimitive.IncrementButton
|
|
136
144
|
className={buttonVariants({
|
|
137
145
|
className: cn(
|
|
138
|
-
"h-full w-8 shrink-0 rounded-none rounded-e-[calc(var(--radius-lg)-1px)] border-s border-s-input text-muted-foreground group-
|
|
146
|
+
"h-full w-8 shrink-0 rounded-none rounded-e-[calc(var(--radius-lg)-1px)] border-s border-s-input text-muted-foreground group-has-aria-invalid/input-number:border-s-destructive focus-visible:bg-ring/50 focus-visible:ring-0 group-has-aria-invalid/input-number:focus-visible:bg-destructive/20 dark:group-has-aria-invalid/input-number:focus-visible:bg-destructive/40",
|
|
139
147
|
className,
|
|
140
148
|
),
|
|
141
149
|
variant: "ghost",
|
|
@@ -168,7 +176,7 @@ function InputNumberDecrement({ children, className, ...props }: InputNumberDecr
|
|
|
168
176
|
<InputNumberPrimitive.DecrementButton
|
|
169
177
|
className={buttonVariants({
|
|
170
178
|
className: cn(
|
|
171
|
-
"h-full w-8 shrink-0 rounded-none rounded-s-[calc(var(--radius-lg)-1px)] border-e border-e-input text-muted-foreground group-
|
|
179
|
+
"h-full w-8 shrink-0 rounded-none rounded-s-[calc(var(--radius-lg)-1px)] border-e border-e-input text-muted-foreground group-has-aria-invalid/input-number:border-e-destructive focus-visible:bg-ring/50 focus-visible:ring-0 group-has-aria-invalid/input-number:focus-visible:bg-destructive/20 dark:group-has-aria-invalid/input-number:focus-visible:bg-destructive/40",
|
|
172
180
|
className,
|
|
173
181
|
),
|
|
174
182
|
variant: "ghost",
|