@devalok/shilp-sutra 0.23.0 → 0.23.2
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/composed/avatar-group.d.ts +2 -2
- package/dist/composed/avatar-group.d.ts.map +1 -1
- package/dist/composed/avatar-group.js +2 -2
- package/dist/tailwind/index.cjs +1 -12
- package/dist/tailwind/preset.d.ts.map +1 -1
- package/dist/tailwind/preset.js +1 -12
- package/dist/tokens/semantic.css +0 -14
- package/dist/ui/segmented-control.js +1 -1
- package/dist/ui/sidebar.js +3 -3
- package/llms-full.txt +1 -1
- package/llms.txt +2 -2
- package/package.json +699 -699
|
@@ -14,8 +14,8 @@ export interface AvatarGroupProps extends React.HTMLAttributes<HTMLDivElement>,
|
|
|
14
14
|
users: AvatarUser[];
|
|
15
15
|
max?: number;
|
|
16
16
|
showTooltip?: boolean;
|
|
17
|
-
/** Border color for the group avatars. @default 'surface-
|
|
18
|
-
borderColor?: 'surface-
|
|
17
|
+
/** Border color for the group avatars. @default 'surface-raised' */
|
|
18
|
+
borderColor?: 'surface-base' | 'surface-raised';
|
|
19
19
|
/** Callback when the "+N" overflow badge is clicked */
|
|
20
20
|
onOverflowClick?: () => void;
|
|
21
21
|
/** Custom render function for each avatar */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar-group.d.ts","sourceRoot":"","sources":["../../src/composed/avatar-group.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAOjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAgB9C,QAAA,MAAM,kBAAkB;;8EAgBvB,CAAA;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,IAAI,CAAC,EAAE,UAA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AAG,SAAS,GAAG,MAAM,CAAA;CAC9C;AAED,QAAA,MAAM,WAAW,yFAqLhB,CAAA;AAGD,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -32,7 +32,7 @@ const w = {
|
|
|
32
32
|
max: m = 4,
|
|
33
33
|
size: n,
|
|
34
34
|
showTooltip: M = !0,
|
|
35
|
-
borderColor: T = "surface-
|
|
35
|
+
borderColor: T = "surface-raised",
|
|
36
36
|
onOverflowClick: p,
|
|
37
37
|
renderAvatar: h,
|
|
38
38
|
expandDirection: z = "right",
|
|
@@ -46,7 +46,7 @@ const w = {
|
|
|
46
46
|
md: "-ml-ds-03",
|
|
47
47
|
lg: "-ml-ds-04",
|
|
48
48
|
xl: "-ml-ds-05"
|
|
49
|
-
}[n ?? "md"], g = T === "surface-
|
|
49
|
+
}[n ?? "md"], g = T === "surface-base" ? "border-surface-base" : "border-surface-raised", [A, d] = v.useState(!1), P = {
|
|
50
50
|
xs: 8,
|
|
51
51
|
sm: 10,
|
|
52
52
|
md: 12,
|
package/dist/tailwind/index.cjs
CHANGED
|
@@ -188,11 +188,6 @@ const o = {
|
|
|
188
188
|
"surface-inverted-fg": "var(--color-surface-inverted-fg)",
|
|
189
189
|
"surface-disabled": "var(--color-surface-disabled)",
|
|
190
190
|
"surface-fg-disabled": "var(--color-surface-fg-disabled)",
|
|
191
|
-
// Deprecated — remove in next major
|
|
192
|
-
"surface-1": "var(--color-surface-base)",
|
|
193
|
-
"surface-2": "var(--color-surface-raised)",
|
|
194
|
-
"surface-3": "var(--color-surface-raised-hover)",
|
|
195
|
-
"surface-4": "var(--color-surface-raised-active)",
|
|
196
191
|
"surface-fg": "var(--color-surface-fg)",
|
|
197
192
|
"surface-fg-muted": "var(--color-surface-fg-muted)",
|
|
198
193
|
"surface-fg-subtle": "var(--color-surface-fg-subtle)",
|
|
@@ -331,13 +326,7 @@ const o = {
|
|
|
331
326
|
glow: "var(--shadow-glow)",
|
|
332
327
|
inset: "var(--shadow-inset)",
|
|
333
328
|
"ring-sm": "var(--shadow-ring-sm)",
|
|
334
|
-
ring: "var(--shadow-ring)"
|
|
335
|
-
// Deprecated — remove in next major
|
|
336
|
-
"01": "var(--shadow-raised)",
|
|
337
|
-
"02": "var(--shadow-raised-hover)",
|
|
338
|
-
"03": "var(--shadow-floating)",
|
|
339
|
-
"04": "var(--shadow-overlay)",
|
|
340
|
-
"05": "var(--shadow-overlay)"
|
|
329
|
+
ring: "var(--shadow-ring)"
|
|
341
330
|
},
|
|
342
331
|
transitionDuration: {
|
|
343
332
|
instant: "var(--duration-instant)",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preset.d.ts","sourceRoot":"","sources":["../../src/tailwind/preset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAGzC,QAAA,MAAM,MAAM,EAAE,OAAO,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"preset.d.ts","sourceRoot":"","sources":["../../src/tailwind/preset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAGzC,QAAA,MAAM,MAAM,EAAE,OAAO,CAAC,MAAM,CA4Y3B,CAAA;AAED,eAAe,MAAM,CAAA"}
|
package/dist/tailwind/preset.js
CHANGED
|
@@ -188,11 +188,6 @@ const o = {
|
|
|
188
188
|
"surface-inverted-fg": "var(--color-surface-inverted-fg)",
|
|
189
189
|
"surface-disabled": "var(--color-surface-disabled)",
|
|
190
190
|
"surface-fg-disabled": "var(--color-surface-fg-disabled)",
|
|
191
|
-
// Deprecated — remove in next major
|
|
192
|
-
"surface-1": "var(--color-surface-base)",
|
|
193
|
-
"surface-2": "var(--color-surface-raised)",
|
|
194
|
-
"surface-3": "var(--color-surface-raised-hover)",
|
|
195
|
-
"surface-4": "var(--color-surface-raised-active)",
|
|
196
191
|
"surface-fg": "var(--color-surface-fg)",
|
|
197
192
|
"surface-fg-muted": "var(--color-surface-fg-muted)",
|
|
198
193
|
"surface-fg-subtle": "var(--color-surface-fg-subtle)",
|
|
@@ -331,13 +326,7 @@ const o = {
|
|
|
331
326
|
glow: "var(--shadow-glow)",
|
|
332
327
|
inset: "var(--shadow-inset)",
|
|
333
328
|
"ring-sm": "var(--shadow-ring-sm)",
|
|
334
|
-
ring: "var(--shadow-ring)"
|
|
335
|
-
// Deprecated — remove in next major
|
|
336
|
-
"01": "var(--shadow-raised)",
|
|
337
|
-
"02": "var(--shadow-raised-hover)",
|
|
338
|
-
"03": "var(--shadow-floating)",
|
|
339
|
-
"04": "var(--shadow-overlay)",
|
|
340
|
-
"05": "var(--shadow-overlay)"
|
|
329
|
+
ring: "var(--shadow-ring)"
|
|
341
330
|
},
|
|
342
331
|
transitionDuration: {
|
|
343
332
|
instant: "var(--duration-instant)",
|
package/dist/tokens/semantic.css
CHANGED
|
@@ -109,12 +109,6 @@
|
|
|
109
109
|
--color-surface-disabled: var(--neutral-2);
|
|
110
110
|
--color-surface-fg-disabled: var(--neutral-8);
|
|
111
111
|
|
|
112
|
-
/* Deprecated — remove in next major */
|
|
113
|
-
--color-surface-1: var(--color-surface-base);
|
|
114
|
-
--color-surface-2: var(--color-surface-raised);
|
|
115
|
-
--color-surface-3: var(--color-surface-raised-hover);
|
|
116
|
-
--color-surface-4: var(--color-surface-raised-active);
|
|
117
|
-
|
|
118
112
|
--color-surface-fg: var(--neutral-12);
|
|
119
113
|
--color-surface-fg-muted: var(--neutral-11);
|
|
120
114
|
--color-surface-fg-subtle: var(--neutral-8);
|
|
@@ -307,7 +301,6 @@
|
|
|
307
301
|
0 8px 16px -4px oklch(var(--shadow-color) / calc(0.04 * var(--shadow-strength))),
|
|
308
302
|
0 18px 34px -8px oklch(var(--shadow-color) / calc(0.03 * var(--shadow-strength))),
|
|
309
303
|
0 40px 64px -16px oklch(var(--shadow-color) / calc(0.025 * var(--shadow-strength)));
|
|
310
|
-
--shadow-05: 0 4px 8px oklch(0 0 0 / 0.10), 0 16px 32px oklch(0 0 0 / 0.16), 0 32px 64px oklch(0 0 0 / 0.14);
|
|
311
304
|
|
|
312
305
|
/* Semantic elevation shadows (public API) */
|
|
313
306
|
--shadow-raised: var(--shadow-xs);
|
|
@@ -322,12 +315,6 @@
|
|
|
322
315
|
--shadow-ring-sm: 0 0 0 1px var(--color-surface-border);
|
|
323
316
|
--shadow-ring: 0 0 0 2px oklch(0.55 0.19 360 / 0.30);
|
|
324
317
|
|
|
325
|
-
/* Deprecated shadow aliases */
|
|
326
|
-
--shadow-01: var(--shadow-raised);
|
|
327
|
-
--shadow-02: var(--shadow-raised-hover);
|
|
328
|
-
--shadow-03: var(--shadow-floating);
|
|
329
|
-
--shadow-04: var(--shadow-overlay);
|
|
330
|
-
|
|
331
318
|
/* ═══════════════════════════════════════════════════════════
|
|
332
319
|
SIZES
|
|
333
320
|
═══════════════════════════════════════════════════════════ */
|
|
@@ -443,7 +430,6 @@
|
|
|
443
430
|
|
|
444
431
|
/* Shadows (heavier in dark mode) */
|
|
445
432
|
--shadow-strength: 2.5;
|
|
446
|
-
--shadow-05: 0 4px 8px oklch(0 0 0 / 0.25), 0 16px 32px oklch(0 0 0 / 0.40), 0 32px 64px oklch(0 0 0 / 0.35);
|
|
447
433
|
--shadow-brand: 0 2px 8px oklch(0.55 0.19 360 / 0.30), 0 6px 20px oklch(0.55 0.19 360 / 0.20);
|
|
448
434
|
--shadow-glow: 0 0 0 1.5px oklch(0.55 0.19 360 / 0.35), 0 0 10px oklch(0.55 0.19 360 / 0.20);
|
|
449
435
|
--shadow-ring: 0 0 0 2px oklch(0.55 0.19 360 / 0.45);
|
package/dist/ui/sidebar.js
CHANGED
|
@@ -98,7 +98,7 @@ const te = i(
|
|
|
98
98
|
"div",
|
|
99
99
|
{
|
|
100
100
|
className: r(
|
|
101
|
-
"flex h-full w-[--sidebar-width] flex-col bg-surface-
|
|
101
|
+
"flex h-full w-[--sidebar-width] flex-col bg-surface-sunken text-surface-fg",
|
|
102
102
|
d
|
|
103
103
|
),
|
|
104
104
|
ref: u,
|
|
@@ -152,7 +152,7 @@ const te = i(
|
|
|
152
152
|
"div",
|
|
153
153
|
{
|
|
154
154
|
"data-sidebar": "sidebar",
|
|
155
|
-
className: "flex h-full w-full flex-col bg-surface-
|
|
155
|
+
className: "flex h-full w-full flex-col bg-surface-sunken group-data-[variant=floating]:rounded-ds-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-surface-border group-data-[variant=floating]:shadow",
|
|
156
156
|
children: o
|
|
157
157
|
}
|
|
158
158
|
)
|
|
@@ -234,7 +234,7 @@ const de = i(({ className: a, ...e }, t) => /* @__PURE__ */ s(
|
|
|
234
234
|
ref: t,
|
|
235
235
|
"data-sidebar": "input",
|
|
236
236
|
className: r(
|
|
237
|
-
"h-ds-sm w-full bg-surface-
|
|
237
|
+
"h-ds-sm w-full bg-surface-sunken shadow-none focus-visible:ring-2 focus-visible:ring-accent-9",
|
|
238
238
|
a
|
|
239
239
|
),
|
|
240
240
|
...e
|
package/llms-full.txt
CHANGED
package/llms.txt
CHANGED
|
@@ -42,7 +42,7 @@ Same pattern for `border-surface-*`, `text-surface-*`, `ring-surface-*`.
|
|
|
42
42
|
|
|
43
43
|
**Hard rule: never combine explicit border + shadow.** Shadows include a 1px ring layer. Adding a CSS border creates a 2px edge. Use shadow OR border, never both.
|
|
44
44
|
|
|
45
|
-
**
|
|
45
|
+
**Breaking:** Old numeric aliases (`--color-surface-1..4`, `--shadow-01..05`, Tailwind `bg-surface-1..4`, `shadow-01..05`) have been removed. Use the semantic names listed above.
|
|
46
46
|
|
|
47
47
|
**Component Decision Matrix:**
|
|
48
48
|
| Building... | Surface | Shadow |
|
|
@@ -138,7 +138,7 @@ Same pattern for `border-surface-*`, `text-surface-*`, `ring-surface-*`.
|
|
|
138
138
|
- Step purposes: 1=app-bg, 2=subtle-bg, 3=component-bg, 4=hover, 5=active, 6=border-subtle, 7=border, 8=border-strong, 9=solid/accent, 10=solid-hover, 11=lo-contrast-text, 12=hi-contrast-text
|
|
139
139
|
- New semantic tokens: --color-accent-{1-12}, --color-secondary-{1-12}, --color-surface-{base,raised,raised-hover,raised-active,sunken,overlay,inverted,disabled}, --color-surface-fg/fg-muted/fg-subtle/border/border-subtle
|
|
140
140
|
- Status tokens: --color-error-{3,7,9,11,fg}, --color-success-{3,7,9,11,fg}, --color-warning-{3,7,9,11,fg}, --color-info-{3,7,9,11,fg}
|
|
141
|
-
- New Tailwind utilities: accent-1..12, secondary-1..12, surface-base/raised/sunken/overlay/inverted/disabled
|
|
141
|
+
- New Tailwind utilities: accent-1..12, secondary-1..12, surface-base/raised/sunken/overlay/inverted/disabled, status/category step utilities
|
|
142
142
|
- Backward compat: ALL old semantic token names preserved as aliases. --color-interactive still works → maps to --color-accent-9
|
|
143
143
|
- Consumer rebranding: override --color-accent-1..12 CSS vars OR use generateScale() utility with a seed color
|
|
144
144
|
- Dark mode: algorithmically derived (OKLCH curves), NOT hex overrides. Surfaces lighten with elevation.
|