@devalok/shilp-sutra 0.10.0 → 0.12.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/dist/_chunks/checkbox.js +5 -5
- package/dist/_chunks/sidebar.js +21 -21
- package/dist/_chunks/utils.js +8 -5
- package/dist/composed/avatar-group.js +21 -21
- package/dist/tailwind/index.cjs +63 -4
- package/dist/tailwind/preset.d.ts.map +1 -1
- package/dist/tailwind/preset.js +63 -4
- package/dist/tokens/primitives.css +1 -0
- package/dist/tokens/semantic.css +246 -233
- package/dist/ui/checkbox.js +7 -7
- package/dist/ui/input.js +8 -8
- package/dist/ui/lib/utils.d.ts.map +1 -1
- package/dist/ui/lib/utils.js +8 -5
- package/llms-full.txt +2 -1
- package/llms.txt +10 -0
- package/package.json +656 -656
package/dist/ui/input.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as o, jsxs as f } from "react/jsx-runtime";
|
|
3
|
-
import * as
|
|
4
|
-
import { e as
|
|
3
|
+
import * as p from "react";
|
|
4
|
+
import { e as v } from "../_chunks/vendor-utils.js";
|
|
5
5
|
import { c as x } from "../_chunks/utils.js";
|
|
6
6
|
import { u as g } from "../_chunks/form.js";
|
|
7
|
-
const h =
|
|
7
|
+
const h = v(
|
|
8
8
|
[
|
|
9
9
|
"flex w-full font-sans",
|
|
10
10
|
"bg-field text-text-primary",
|
|
11
|
-
"border border-border rounded-ds-md",
|
|
11
|
+
"border border-border-subtle rounded-ds-md",
|
|
12
12
|
"placeholder:text-text-placeholder",
|
|
13
13
|
"hover:bg-field-hover",
|
|
14
14
|
"transition-colors duration-fast-01",
|
|
15
|
-
"focus-visible:outline-none focus-visible:ring-
|
|
15
|
+
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-focus/50 focus-visible:border-border-subtle",
|
|
16
16
|
"disabled:cursor-not-allowed disabled:opacity-[0.38]",
|
|
17
17
|
"read-only:bg-layer-02 read-only:cursor-default"
|
|
18
18
|
],
|
|
@@ -26,7 +26,7 @@ const h = p(
|
|
|
26
26
|
},
|
|
27
27
|
defaultVariants: { size: "md" }
|
|
28
28
|
}
|
|
29
|
-
), y =
|
|
29
|
+
), y = p.forwardRef(
|
|
30
30
|
({ className: d, type: l, state: n, size: c, startIcon: e, endIcon: r, ...t }, u) => {
|
|
31
31
|
const s = g(), i = n ?? (s.state === "helper" ? void 0 : s.state), b = t["aria-describedby"] ?? s.helperTextId, m = t["aria-required"] ?? s.required, a = /* @__PURE__ */ o(
|
|
32
32
|
"input",
|
|
@@ -34,8 +34,8 @@ const h = p(
|
|
|
34
34
|
type: l,
|
|
35
35
|
className: x(
|
|
36
36
|
h({ size: c }),
|
|
37
|
-
e && "pl-ds-
|
|
38
|
-
r && "pr-ds-
|
|
37
|
+
e && "pl-ds-07",
|
|
38
|
+
r && "pr-ds-07",
|
|
39
39
|
i === "error" && "border-border-error focus-visible:ring-error",
|
|
40
40
|
i === "warning" && "border-border-warning focus-visible:ring-warning",
|
|
41
41
|
i === "success" && "border-border-success focus-visible:ring-success",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/ui/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/ui/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,MAAM,CAAA;AAc5C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC"}
|
package/dist/ui/lib/utils.js
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import { h as
|
|
2
|
-
const
|
|
1
|
+
import { h as d, g as e } from "../../_chunks/vendor-utils.js";
|
|
2
|
+
const t = d({
|
|
3
3
|
extend: {
|
|
4
|
+
theme: {
|
|
5
|
+
spacing: ["ds-01", "ds-02", "ds-02b", "ds-03", "ds-04", "ds-05", "ds-05b", "ds-06", "ds-06b", "ds-07", "ds-08", "ds-09", "ds-10", "ds-11", "ds-12", "ds-13"]
|
|
6
|
+
},
|
|
4
7
|
classGroups: {
|
|
5
8
|
"font-size": [{ "text-ds": ["xs", "sm", "md"] }]
|
|
6
9
|
}
|
|
7
10
|
}
|
|
8
11
|
});
|
|
9
|
-
function
|
|
10
|
-
return
|
|
12
|
+
function r(...s) {
|
|
13
|
+
return t(e(s));
|
|
11
14
|
}
|
|
12
15
|
export {
|
|
13
|
-
|
|
16
|
+
r as cn
|
|
14
17
|
};
|
package/llms-full.txt
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
> All variant values and props verified from source CVA definitions.
|
|
6
6
|
>
|
|
7
7
|
> Package: @devalok/shilp-sutra
|
|
8
|
-
> Version: 0.
|
|
8
|
+
> Version: 0.12.0
|
|
9
9
|
|
|
10
10
|
---
|
|
11
11
|
|
|
@@ -594,6 +594,7 @@ Note: getFormFieldA11y() was removed in favor of useFormField() hook.
|
|
|
594
594
|
- HTML native "size" attribute is excluded — use CSS width instead
|
|
595
595
|
- state="error" sets aria-invalid automatically
|
|
596
596
|
- Inside FormField: auto-inherits state, aria-describedby, aria-required from context (explicit props override)
|
|
597
|
+
- Resting border is border-subtle (soft); focus ring is ring-1 at 50% opacity (v0.12.0)
|
|
597
598
|
|
|
598
599
|
## InputOTP
|
|
599
600
|
- Import: @devalok/shilp-sutra/ui/input-otp
|
package/llms.txt
CHANGED
|
@@ -4,6 +4,16 @@
|
|
|
4
4
|
> Built on the same primitives as shadcn/ui but with key API differences.
|
|
5
5
|
> Read this file BEFORE writing any UI code. Do NOT guess from shadcn/ui knowledge.
|
|
6
6
|
|
|
7
|
+
## CHANGES (v0.12.0)
|
|
8
|
+
- Input: Softer resting border (border-subtle instead of border), subtler focus ring (ring-1 ring-focus/50 instead of ring-2 ring-focus)
|
|
9
|
+
- Tailwind preset: 9 animation keyframes + utilities (fade-in, fade-out, slide-up, slide-right, scale-in, scale-out, glow-pulse, scale-bounce, lift)
|
|
10
|
+
- Tailwind preset: Stagger plugins — .delay-stagger (30ms × --stagger-index), .delay-stagger-50 (50ms × --stagger-index)
|
|
11
|
+
|
|
12
|
+
## BREAKING CHANGES (v0.11.0 — dark mode)
|
|
13
|
+
- Dark mode interactive colors shifted: --color-interactive pink-400→pink-500, --color-interactive-hover pink-300→pink-600, --color-interactive-active pink-200→pink-700, --color-interactive-subtle pink-950→pink-1000
|
|
14
|
+
- Dark mode text status colors shifted: --color-text-error red-200→red-300, --color-text-success green-200→green-300, --color-text-warning yellow-200→yellow-300, --color-text-link blue-200→blue-300, --color-text-brand pink-300→pink-400
|
|
15
|
+
- New primitive token: --pink-1000 (#150208) near-black
|
|
16
|
+
|
|
7
17
|
## BREAKING CHANGES (v0.8.0)
|
|
8
18
|
- Combobox: Now uses discriminated union. Single: `multiple?: false, value: string, onValueChange: (v: string) => void`. Multiple: `multiple: true, value: string[], onValueChange: (v: string[]) => void`. No more `v as string[]` casts.
|
|
9
19
|
- StatusBadge: Pass either `status` OR `color`, not both (discriminated union).
|