@pablo2410/shared-ui 0.22.0 → 0.23.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/{chunk-K6FHU4HN.js → chunk-JEHQIJS2.js} +20 -3
- package/dist/{chunk-K6FHU4HN.js.map → chunk-JEHQIJS2.js.map} +1 -1
- package/dist/{chunk-VJEXXX2P.js → chunk-RSFGV7CG.js} +2 -2
- package/dist/{chunk-LR5TUYFD.js → chunk-S4UQSTZN.js} +3 -3
- package/dist/hierarchy/index.js +2 -2
- package/dist/insights/index.d.ts +19 -1
- package/dist/insights/index.js +117 -0
- package/dist/insights/index.js.map +1 -1
- package/dist/layout/index.js +3 -3
- package/dist/primitives/index.js +1 -1
- package/dist/reporting/index.js +1 -1
- package/dist/shell/index.js +3 -3
- package/dist/shell/oplytics-shell.css +1 -1
- package/package.json +4 -4
- /package/dist/{chunk-VJEXXX2P.js.map → chunk-RSFGV7CG.js.map} +0 -0
- /package/dist/{chunk-LR5TUYFD.js.map → chunk-S4UQSTZN.js.map} +0 -0
|
@@ -4786,7 +4786,24 @@ function Switch({
|
|
|
4786
4786
|
{
|
|
4787
4787
|
"data-slot": "switch",
|
|
4788
4788
|
className: cn(
|
|
4789
|
-
|
|
4789
|
+
// The `!` suffix forces `!important` on these two background-color
|
|
4790
|
+
// utilities. Without it, Tailwind's own preflight (`button {
|
|
4791
|
+
// background-color: transparent }`, emitted into every consuming
|
|
4792
|
+
// app's own `base` layer) silently wins over this shell-shipped
|
|
4793
|
+
// rule: every subdomain wraps this pre-built shell CSS in a
|
|
4794
|
+
// `shell-shim` layer declared FIRST (lowest priority) specifically
|
|
4795
|
+
// so the app's own utilities always outrank it — see the
|
|
4796
|
+
// `@layer shell-shim, theme, base, components, utilities;`
|
|
4797
|
+
// statement each app's index.css carries. `base` sits above
|
|
4798
|
+
// `shell-shim`, so preflight's plain `button` selector beats this
|
|
4799
|
+
// component's `data-[state=...]` variant regardless of specificity,
|
|
4800
|
+
// leaving the switch permanently transparent. Confirmed live on
|
|
4801
|
+
// sqdcp.oplyticsdigital.net's Report-a-Problem "Is this blocking
|
|
4802
|
+
// you?" toggle, 2026-09-14 — same root cause as the cascade-layer
|
|
4803
|
+
// fixes in oplytics-shared-ui's styles.css `.shell-hidden` rule and
|
|
4804
|
+
// PRs #572/#118, just resurfacing on a component that didn't exist
|
|
4805
|
+
// yet when those landed.
|
|
4806
|
+
"peer data-[state=checked]:bg-primary! data-[state=unchecked]:bg-input! focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80! inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
4790
4807
|
className
|
|
4791
4808
|
),
|
|
4792
4809
|
...props,
|
|
@@ -4795,7 +4812,7 @@ function Switch({
|
|
|
4795
4812
|
{
|
|
4796
4813
|
"data-slot": "switch-thumb",
|
|
4797
4814
|
className: cn(
|
|
4798
|
-
"bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0"
|
|
4815
|
+
"bg-background! dark:data-[state=unchecked]:bg-foreground! dark:data-[state=checked]:bg-primary-foreground! pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0"
|
|
4799
4816
|
)
|
|
4800
4817
|
}
|
|
4801
4818
|
)
|
|
@@ -5340,4 +5357,4 @@ export {
|
|
|
5340
5357
|
ToggleGroup,
|
|
5341
5358
|
ToggleGroupItem
|
|
5342
5359
|
};
|
|
5343
|
-
//# sourceMappingURL=chunk-
|
|
5360
|
+
//# sourceMappingURL=chunk-JEHQIJS2.js.map
|