@codefast/ui 0.4.0-canary.5 → 0.4.0-canary.6
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,18 @@
|
|
|
1
1
|
# @codefast/ui
|
|
2
2
|
|
|
3
|
+
## 0.4.0-canary.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`8a1a2e7`](https://github.com/codefastlabs/codefast/commit/8a1a2e74d985ae36a00855938c8ed7ab8699ad48) Thanks [@thevuong](https://github.com/thevuong)! - refactor(motion): shorten control transition durations (container 200→100ms, indicator 300→200ms) for snappier switches, checkboxes, and radios
|
|
8
|
+
|
|
9
|
+
- [`354c97e`](https://github.com/codefastlabs/codefast/commit/354c97ec3109bd7d59e1200171a78da17dbdc59c) Thanks [@thevuong](https://github.com/thevuong)! - fix(menubar): align `menubar-label` styling with the dropdown/context menu family — use `text-xs` and `text-muted-foreground` to match `dropdown-menu-label` and `context-menu-label`
|
|
10
|
+
|
|
11
|
+
- [`e3ea150`](https://github.com/codefastlabs/codefast/commit/e3ea15046bc5a23d777719aa0f4ba46efda6d15d) Thanks [@thevuong](https://github.com/thevuong)! - fix(radio-group): lay the root out as a flex column instead of a grid so items stack predictably
|
|
12
|
+
|
|
13
|
+
- Updated dependencies []:
|
|
14
|
+
- @codefast/tailwind-variants@0.4.0-canary.6
|
|
15
|
+
|
|
3
16
|
## 0.4.0-canary.5
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
|
@@ -148,7 +148,7 @@ function MenubarRadioItem({ children, className, inset, ...props }) {
|
|
|
148
148
|
*/
|
|
149
149
|
function MenubarLabel({ className, inset, ...props }) {
|
|
150
150
|
return /* @__PURE__ */ jsx(Menubar$1.Label, {
|
|
151
|
-
className: cn("px-2 py-1.5 text-
|
|
151
|
+
className: cn("px-2 py-1.5 text-xs font-medium text-muted-foreground data-inset:ps-8", className),
|
|
152
152
|
"data-inset": inset,
|
|
153
153
|
"data-slot": "menubar-label",
|
|
154
154
|
...props
|
|
@@ -7,7 +7,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
7
7
|
*/
|
|
8
8
|
function RadioGroup({ className, ...props }) {
|
|
9
9
|
return /* @__PURE__ */ jsx(RadioGroup$1.Root, {
|
|
10
|
-
className: cn("
|
|
10
|
+
className: cn("flex flex-col gap-3", className),
|
|
11
11
|
"data-slot": "radio-group",
|
|
12
12
|
...props
|
|
13
13
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codefast/ui",
|
|
3
|
-
"version": "0.4.0-canary.
|
|
3
|
+
"version": "0.4.0-canary.6",
|
|
4
4
|
"description": "Core UI components library built with React and Tailwind CSS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"components",
|
|
@@ -526,36 +526,36 @@
|
|
|
526
526
|
"cmdk": "^1.1.1",
|
|
527
527
|
"embla-carousel-react": "^8.6.0",
|
|
528
528
|
"input-otp": "^1.4.2",
|
|
529
|
-
"lucide-react": "^1.
|
|
529
|
+
"lucide-react": "^1.18.0",
|
|
530
530
|
"next-themes": "^0.4.6",
|
|
531
|
-
"radix-ui": "^1.
|
|
532
|
-
"react-hook-form": "^7.
|
|
531
|
+
"radix-ui": "^1.6.0-rc.1781217402884",
|
|
532
|
+
"react-hook-form": "^7.79.0",
|
|
533
533
|
"react-resizable-panels": "^4.11.2",
|
|
534
534
|
"recharts": "^3.8.1",
|
|
535
535
|
"sonner": "^2.0.7",
|
|
536
536
|
"tw-animate-css": "^1.4.0",
|
|
537
537
|
"vaul": "^1.1.2",
|
|
538
|
-
"@codefast/tailwind-variants": "0.4.0-canary.
|
|
538
|
+
"@codefast/tailwind-variants": "0.4.0-canary.6"
|
|
539
539
|
},
|
|
540
540
|
"devDependencies": {
|
|
541
|
-
"@tailwindcss/postcss": "^4.3.
|
|
541
|
+
"@tailwindcss/postcss": "^4.3.1",
|
|
542
542
|
"@testing-library/dom": "^10.4.1",
|
|
543
543
|
"@testing-library/jest-dom": "^6.9.1",
|
|
544
544
|
"@testing-library/react": "^16.3.2",
|
|
545
545
|
"@testing-library/user-event": "^14.6.1",
|
|
546
546
|
"@types/jest-axe": "^3.5.9",
|
|
547
547
|
"@types/node": "^25.9.3",
|
|
548
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
548
|
+
"@typescript/native-preview": "7.0.0-dev.20260615.1",
|
|
549
549
|
"@vitejs/plugin-react": "^6.0.2",
|
|
550
|
-
"@vitest/coverage-v8": "^4.1.
|
|
550
|
+
"@vitest/coverage-v8": "^4.1.9",
|
|
551
551
|
"jest-axe": "^10.0.0",
|
|
552
552
|
"jsdom": "^29.1.1",
|
|
553
553
|
"postcss": "^8.5.15",
|
|
554
|
-
"tailwindcss": "^4.3.
|
|
554
|
+
"tailwindcss": "^4.3.1",
|
|
555
555
|
"tsdown": "^0.22.2",
|
|
556
556
|
"typescript": "^6.0.3",
|
|
557
|
-
"vitest": "^4.1.
|
|
558
|
-
"@codefast/typescript-config": "0.4.0-canary.
|
|
557
|
+
"vitest": "^4.1.9",
|
|
558
|
+
"@codefast/typescript-config": "0.4.0-canary.6"
|
|
559
559
|
},
|
|
560
560
|
"peerDependencies": {
|
|
561
561
|
"@types/react": ">=19.0.0",
|
|
@@ -327,7 +327,7 @@ interface MenubarLabelProps extends ComponentProps<typeof MenubarPrimitive.Label
|
|
|
327
327
|
function MenubarLabel({ className, inset, ...props }: MenubarLabelProps): JSX.Element {
|
|
328
328
|
return (
|
|
329
329
|
<MenubarPrimitive.Label
|
|
330
|
-
className={cn("px-2 py-1.5 text-
|
|
330
|
+
className={cn("px-2 py-1.5 text-xs font-medium text-muted-foreground data-inset:ps-8", className)}
|
|
331
331
|
data-inset={inset}
|
|
332
332
|
data-slot="menubar-label"
|
|
333
333
|
{...props}
|
|
@@ -16,7 +16,9 @@ type RadioGroupProps = ComponentProps<typeof RadioGroupPrimitive.Root>;
|
|
|
16
16
|
* @since 0.3.16-canary.0
|
|
17
17
|
*/
|
|
18
18
|
function RadioGroup({ className, ...props }: RadioGroupProps): JSX.Element {
|
|
19
|
-
return
|
|
19
|
+
return (
|
|
20
|
+
<RadioGroupPrimitive.Root className={cn("flex flex-col gap-3", className)} data-slot="radio-group" {...props} />
|
|
21
|
+
);
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
/* -----------------------------------------------------------------------------
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
* transition and the indicator keyframe.
|
|
50
50
|
* ---------------------------------------------------------------------- */
|
|
51
51
|
|
|
52
|
-
--transition-duration-control:
|
|
53
|
-
--transition-duration-control-indicator:
|
|
52
|
+
--transition-duration-control: 100ms; /* Container / ring: switch track, checkbox & radio box */
|
|
53
|
+
--transition-duration-control-indicator: 200ms; /* Moving part: switch thumb, check, radio dot */
|
|
54
54
|
|
|
55
55
|
/* ----------------------------------------------------------------------
|
|
56
56
|
* Keyframes
|