@nar-bus/ui-kit 1.8.0 → 1.8.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/dist/atoms/Switch.d.ts.map +1 -1
- package/dist/index.js +7 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../src/atoms/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAG7D,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/F,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CAC1B;
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../src/atoms/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAG7D,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/F,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CAC1B;AAqBD,eAAO,MAAM,MAAM,0GA6ClB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -5070,8 +5070,13 @@ const ei = "has-[:focus-visible]:[box-shadow:0_0_0_1px_var(--color-primary),0_0_
|
|
|
5070
5070
|
);
|
|
5071
5071
|
ti.displayName = "RadioGroup";
|
|
5072
5072
|
const ri = {
|
|
5073
|
-
|
|
5074
|
-
|
|
5073
|
+
// Fixed px on the horizontal axis (track/thumb width + translate) so the thumb
|
|
5074
|
+
// lands with a symmetric 2px inset in EVERY density — the w-7/w-3 spacing
|
|
5075
|
+
// utilities are density-keyed (--space-7/-3 change per data-density) which
|
|
5076
|
+
// desynced the fixed translate. md already behaved this way (--space-9/-3.5
|
|
5077
|
+
// have no density override). Heights stay density-scaled (vertical is centered).
|
|
5078
|
+
sm: { track: "w-[26px] h-4", thumb: "w-[10px] h-3", translate: "translate-x-[12px]" },
|
|
5079
|
+
md: { track: "w-[36px] h-5", thumb: "w-[14px] h-3.5", translate: "translate-x-[18px]" }
|
|
5075
5080
|
}, ai = "has-[:focus-visible]:[box-shadow:0_0_0_1px_var(--color-primary),0_0_0_4px_color-mix(in_oklab,var(--color-primary)_25%,transparent),0_2px_14px_-2px_color-mix(in_oklab,var(--color-primary)_55%,transparent)]", oi = V(
|
|
5076
5081
|
({ label: e, switchSize: r = "md", checked: t, disabled: o, className: n, onChange: s, ...i }, l) => {
|
|
5077
5082
|
const d = ri[r];
|