@pablo2410/shared-ui 0.21.0 → 0.22.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/{chunk-57T6QK3M.js → chunk-4ERWOH67.js} +43 -1
- package/dist/chunk-4ERWOH67.js.map +1 -0
- 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/layout/index.js +3 -3
- package/dist/primitives/index.js +1 -1
- package/dist/reporting/index.js +1 -1
- package/dist/services/index.d.ts +19 -2
- package/dist/services/index.js +1 -1
- package/dist/shell/index.js +4 -4
- package/dist/shell/oplytics-shell.css +1 -1
- package/dist/tour/index.d.ts +16 -3
- package/dist/tour/index.js +440 -274
- package/dist/tour/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-57T6QK3M.js.map +0 -1
- /package/dist/{chunk-VJEXXX2P.js.map → chunk-RSFGV7CG.js.map} +0 -0
- /package/dist/{chunk-LR5TUYFD.js.map → chunk-S4UQSTZN.js.map} +0 -0
|
@@ -25,6 +25,20 @@ var SERVICE_CATALOG = [
|
|
|
25
25
|
"Catchball \u2014 where the plan actually gets built: negotiate objectives and projects up and down the org, add a metric to a project.",
|
|
26
26
|
"Actions \u2014 every task that comes out of the plan, tracked to closure."
|
|
27
27
|
],
|
|
28
|
+
features: [
|
|
29
|
+
{
|
|
30
|
+
name: "X-Matrix",
|
|
31
|
+
detail: "The whole plan at a glance \u2014 goals, objectives, and projects on one grid, with dots showing exactly which project moves which goal, so nobody's guessing why a project exists."
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: "Catchball",
|
|
35
|
+
detail: "Where the plan actually gets negotiated \u2014 objectives and projects get pitched up and down the org until everyone agrees, and that's also where a project picks up the metric it'll be measured on."
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: "Actions",
|
|
39
|
+
detail: "Every task the plan generates, tracked to closure by pillar \u2014 so a strategic project never quietly stalls because nobody was assigned the next step."
|
|
40
|
+
}
|
|
41
|
+
],
|
|
28
42
|
firstAction: { label: "Open X-Matrix", path: "/xmatrix" },
|
|
29
43
|
emptyStateHint: `No plan yet for this enterprise \u2014 say so plainly and point at Catchball's "Create your first plan" instead of X-Matrix's empty state.`
|
|
30
44
|
}
|
|
@@ -47,6 +61,20 @@ var SERVICE_CATALOG = [
|
|
|
47
61
|
"Safety Manager / Quality Manager tabs \u2014 the deeper pillar-specific views inside SQDCP.",
|
|
48
62
|
"If AI Facilitator is on, Opi runs the huddle itself \u2014 drafts the line for each red pillar, opens the action review by name."
|
|
49
63
|
],
|
|
64
|
+
features: [
|
|
65
|
+
{
|
|
66
|
+
name: "Rooms",
|
|
67
|
+
detail: "One room per team, tiered from Team Huddle up to Area/Plant Review to Monthly Review \u2014 each level feeds the one above, so a problem raised on the floor is visible all the way up without anyone re-typing it into a slide deck."
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: "Data Entry",
|
|
71
|
+
detail: "Where actuals get logged against each pillar's metrics \u2014 this is the one habit that makes everything else here true; skip it and the board just goes stale, not red."
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: "Safety & Quality Manager",
|
|
75
|
+
detail: "The deeper pillar-specific views inside SQDCP \u2014 ISO-aligned gap analysis for Safety and Quality, one level below the daily board for when a red needs more than a glance."
|
|
76
|
+
}
|
|
77
|
+
],
|
|
50
78
|
firstAction: { label: "Open Rooms", path: "/" },
|
|
51
79
|
emptyStateHint: "No rooms configured yet \u2014 this needs an admin to set up rooms first; point at Admin rather than Rooms."
|
|
52
80
|
}
|
|
@@ -80,6 +108,20 @@ var SERVICE_CATALOG = [
|
|
|
80
108
|
"List and Calendar \u2014 the same actions, sorted or scheduled instead.",
|
|
81
109
|
"Improvement (A3) \u2014 structured 7-box root-cause work for the actions that need more than a quick fix."
|
|
82
110
|
],
|
|
111
|
+
features: [
|
|
112
|
+
{
|
|
113
|
+
name: "Board",
|
|
114
|
+
detail: "The default working view \u2014 a kanban of every open action, so a team can see what's moving and what's stuck without opening a single report."
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
name: "List & Calendar",
|
|
118
|
+
detail: "The same actions, just sorted or scheduled instead of columned \u2014 List for triaging a long backlog, Calendar for seeing what's due this week before it becomes overdue."
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
name: "Improvement (A3)",
|
|
122
|
+
detail: "Structured 7-box root-cause work for the actions that keep coming back \u2014 Background through Follow-up, one page, so a real fix gets the same rigor a quick fix doesn't need."
|
|
123
|
+
}
|
|
124
|
+
],
|
|
83
125
|
firstAction: { label: "Open Board", path: "/board" },
|
|
84
126
|
emptyStateHint: "Zero actions yet \u2014 say this is normal on day one, actions will start showing up as SQDCP and Policy Deployment generate them, rather than describing an empty board as broken."
|
|
85
127
|
}
|
|
@@ -194,4 +236,4 @@ export {
|
|
|
194
236
|
normalizeServiceSlug,
|
|
195
237
|
buildCrossServiceLinks
|
|
196
238
|
};
|
|
197
|
-
//# sourceMappingURL=chunk-
|
|
239
|
+
//# sourceMappingURL=chunk-4ERWOH67.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/services/catalog.ts","../src/services/crossNav.ts"],"sourcesContent":["/**\n * Shared Service Catalog — Single source of truth for all Oplytics.digital services.\n *\n * Consumed by:\n * - oplytics-subdomains (ServiceHub.tsx) — service cards, access gating\n * - oplytics-marketing-site (services.ts) — marketing pages, hero sections\n *\n * Each consumer extends with context-specific fields locally:\n * - Platform adds: route, external URL, React icon component\n * - Marketing adds: heroImage, demoImage, problem, howItWorks, results, aiFeatures\n */\n\nimport { platformUrl } from \"./platformDomain\";\n\n// ---------------------------------------------------------------------------\n// Types\n// ---------------------------------------------------------------------------\n\nexport type ServiceStatus = \"live\" | \"in-development\" | \"coming-soon\";\nexport type ServiceCategory = \"core\" | \"hub\";\n\nexport interface ServiceDefinition {\n /** Unique identifier used for DB lookups, URL slugs, and cross-referencing */\n slug: string;\n /** Display name shown in cards, headers, and navigation */\n name: string;\n /** Short one-line value proposition */\n tagline: string;\n /** Longer description (1-2 sentences) for cards and summaries */\n description: string;\n /** Lucide icon name (string) — consumers resolve to component locally */\n icon: string;\n /** Hex accent color for cards, badges, and theming */\n accentColor: string;\n /** Current availability status */\n status: ServiceStatus;\n /** Core = standalone product, Hub = extension/add-on module */\n category: ServiceCategory;\n /**\n * Subdomain label on the platform domain (e.g. \"sqdcp\") — null if hosted\n * on portal. Full URLs are built via getServiceUrl(), which resolves the\n * platform domain at runtime (see ./platformDomain).\n */\n subdomainLabel: string | null;\n /**\n * Scripted content for the Opi onboarding tour (see @pablo2410/shared-ui/tour).\n * Optional and deliberately sparse — only services with a real, verified\n * first-run path should have this filled in. A service with no `onboarding`\n * block is skipped by the tour entirely rather than shown with placeholder\n * copy. Marketing/other consumers ignore this field.\n */\n onboarding?: ServiceOnboardingContent;\n}\n\nexport interface ServiceOnboardingContent {\n /** Opi's scripted opening line for this step — the always-available fallback if the live LLM narration call fails or AI is gated off. */\n hook: string;\n /** 2-4 short bullets: what's actually here, in plain language. Superseded\n * by `features` for display when both are present — kept for back-compat\n * and as the fallback shape for any service not yet upgraded. */\n highlights: string[];\n /**\n * Named feature call-outs, richer than a flat bullet — one sentence each\n * on what it does AND why the user should care, not just what it's\n * called. Convention (not enforced): aim for 3 per service. Each `name`\n * doubles as the natural spotlight-target label a later in-app tour\n * (inside the service's own subdomain, once the tour follows the user\n * in) can reuse — this is deliberately the same data written once.\n */\n features?: ServiceOnboardingFeature[];\n /** The one thing the step ends on. */\n firstAction: {\n label: string;\n /** Path relative to the service's own root (e.g. \"/xmatrix\"). */\n path: string;\n };\n /** What Opi should say instead when the service has no data yet for this enterprise (empty-state framing), rather than pointing at the normal firstAction. */\n emptyStateHint?: string;\n}\n\nexport interface ServiceOnboardingFeature {\n /** Short feature name, e.g. \"X-Matrix\". */\n name: string;\n /** One deeper sentence — what it does and why the user should care. */\n detail: string;\n}\n\n// ---------------------------------------------------------------------------\n// Catalog\n// ---------------------------------------------------------------------------\n\nexport const SERVICE_CATALOG: ServiceDefinition[] = [\n // ─── CORE SERVICES ───\n {\n slug: \"policy-deployment\",\n name: \"Policy Deployment\",\n tagline: \"Align strategy to execution\",\n description:\n \"Hoshin Kanri and X-matrix planning. Cascade strategic objectives through every level of your organisation with live tracking and bowling charts.\",\n icon: \"Target\",\n accentColor: \"#F59E0B\",\n status: \"live\",\n category: \"core\",\n subdomainLabel: \"policy\",\n onboarding: {\n hook: \"This is where your strategy becomes a plan everyone can see. Long-term goals break into this year's objectives, objectives break into projects, and projects carry the metrics that prove it's working.\",\n highlights: [\n \"X-Matrix — the rollup view: goals, objectives, and projects, with dots showing which project moves which goal.\",\n \"Catchball — where the plan actually gets built: negotiate objectives and projects up and down the org, add a metric to a project.\",\n \"Actions — every task that comes out of the plan, tracked to closure.\",\n ],\n features: [\n {\n name: \"X-Matrix\",\n detail:\n \"The whole plan at a glance — goals, objectives, and projects on one grid, with dots showing exactly which project moves which goal, so nobody's guessing why a project exists.\",\n },\n {\n name: \"Catchball\",\n detail:\n \"Where the plan actually gets negotiated — objectives and projects get pitched up and down the org until everyone agrees, and that's also where a project picks up the metric it'll be measured on.\",\n },\n {\n name: \"Actions\",\n detail:\n \"Every task the plan generates, tracked to closure by pillar — so a strategic project never quietly stalls because nobody was assigned the next step.\",\n },\n ],\n firstAction: { label: \"Open X-Matrix\", path: \"/xmatrix\" },\n emptyStateHint:\n \"No plan yet for this enterprise — say so plainly and point at Catchball's \\\"Create your first plan\\\" instead of X-Matrix's empty state.\",\n },\n },\n {\n slug: \"sqdcp\",\n name: \"SQDCP Dashboard\",\n tagline: \"Daily management boards, digitised\",\n description:\n \"Digital SQDCP boards that drive daily accountability. Safety, Quality, Delivery, Cost, and People metrics at a glance for every team.\",\n icon: \"LayoutGrid\",\n accentColor: \"#1DB8CE\",\n status: \"live\",\n category: \"core\",\n subdomainLabel: \"sqdcp\",\n onboarding: {\n hook: \"This is your daily board — Safety, Quality, Delivery, Cost, People, live. Every team has a room; the huddle happens here, and the numbers you log in Data Entry are what turn the board green or red.\",\n highlights: [\n \"Rooms — one per team, tiered (Team Huddle → Area/Plant Review → Monthly Review), each feeding the one above.\",\n \"Data Entry — where actuals get logged against each pillar's metrics.\",\n \"Safety Manager / Quality Manager tabs — the deeper pillar-specific views inside SQDCP.\",\n \"If AI Facilitator is on, Opi runs the huddle itself — drafts the line for each red pillar, opens the action review by name.\",\n ],\n features: [\n {\n name: \"Rooms\",\n detail:\n \"One room per team, tiered from Team Huddle up to Area/Plant Review to Monthly Review — each level feeds the one above, so a problem raised on the floor is visible all the way up without anyone re-typing it into a slide deck.\",\n },\n {\n name: \"Data Entry\",\n detail:\n \"Where actuals get logged against each pillar's metrics — this is the one habit that makes everything else here true; skip it and the board just goes stale, not red.\",\n },\n {\n name: \"Safety & Quality Manager\",\n detail:\n \"The deeper pillar-specific views inside SQDCP — ISO-aligned gap analysis for Safety and Quality, one level below the daily board for when a red needs more than a glance.\",\n },\n ],\n firstAction: { label: \"Open Rooms\", path: \"/\" },\n emptyStateHint:\n \"No rooms configured yet — this needs an admin to set up rooms first; point at Admin rather than Rooms.\",\n },\n },\n {\n slug: \"oee-manager\",\n name: \"OEE Manager\",\n tagline: \"Real-time equipment effectiveness tracking\",\n description:\n \"Monitor Overall Equipment Effectiveness in real-time. Track availability, performance, and quality metrics across your entire production line.\",\n icon: \"Gauge\",\n accentColor: \"#8C34E9\",\n status: \"live\",\n category: \"core\",\n subdomainLabel: \"oeemanager\",\n // No `onboarding` block yet — held back for a later cohort (2026-09-11 decision).\n },\n {\n slug: \"action-manager\",\n name: \"Action Manager\",\n tagline: \"Track every action to closure\",\n description:\n \"Capture, assign, and track corrective and preventive actions from any source. Ensure nothing falls through the cracks.\",\n icon: \"ClipboardCheck\",\n accentColor: \"#22C55E\",\n status: \"live\",\n category: \"core\",\n subdomainLabel: \"actionmanager\",\n onboarding: {\n hook: \"Every action from every service lands here — SQDCP huddles, Policy Deployment projects, safety reports, all in one place, tracked until someone closes it out.\",\n highlights: [\n \"Board — kanban view, the default way most people work actions day to day.\",\n \"List and Calendar — the same actions, sorted or scheduled instead.\",\n \"Improvement (A3) — structured 7-box root-cause work for the actions that need more than a quick fix.\",\n ],\n features: [\n {\n name: \"Board\",\n detail:\n \"The default working view — a kanban of every open action, so a team can see what's moving and what's stuck without opening a single report.\",\n },\n {\n name: \"List & Calendar\",\n detail:\n \"The same actions, just sorted or scheduled instead of columned — List for triaging a long backlog, Calendar for seeing what's due this week before it becomes overdue.\",\n },\n {\n name: \"Improvement (A3)\",\n detail:\n \"Structured 7-box root-cause work for the actions that keep coming back — Background through Follow-up, one page, so a real fix gets the same rigor a quick fix doesn't need.\",\n },\n ],\n firstAction: { label: \"Open Board\", path: \"/board\" },\n emptyStateHint:\n \"Zero actions yet — say this is normal on day one, actions will start showing up as SQDCP and Policy Deployment generate them, rather than describing an empty board as broken.\",\n },\n },\n {\n slug: \"connect\",\n name: \"OplyticsConnect\",\n tagline: \"Integrate machines, sensors, and systems\",\n description:\n \"Industrial IoT connectivity layer. Connect PLCs, sensors, and legacy systems to the Oplytics platform with zero-code configuration.\",\n icon: \"Plug\",\n accentColor: \"#1DB8CE\",\n status: \"in-development\",\n category: \"core\",\n subdomainLabel: \"connect\",\n },\n\n // ─── HUB SERVICES ───\n {\n slug: \"safety-manager\",\n name: \"Safety Manager\",\n tagline: \"Proactive safety culture, powered by data\",\n description:\n \"Incident reporting, hazard tracking, safety observations, and compliance management in one unified platform.\",\n icon: \"Shield\",\n accentColor: \"#EF4444\",\n status: \"coming-soon\",\n category: \"hub\",\n subdomainLabel: \"safetymanager\",\n },\n {\n slug: \"quality-manager\",\n name: \"Quality Manager\",\n tagline: \"End-to-end quality assurance\",\n description:\n \"Non-conformance tracking, CAPA management, audit scheduling, and quality metrics dashboards.\",\n icon: \"CheckCircle\",\n accentColor: \"#22C55E\",\n status: \"coming-soon\",\n category: \"hub\",\n subdomainLabel: null,\n },\n {\n slug: \"certification-manager\",\n name: \"Certification Manager\",\n tagline: \"Stay audit-ready, always\",\n description:\n \"Manage ISO, IATF, and other certification requirements. Document control, audit trails, and compliance tracking.\",\n icon: \"Award\",\n accentColor: \"#F97316\",\n status: \"coming-soon\",\n category: \"hub\",\n subdomainLabel: null,\n },\n];\n\n// ---------------------------------------------------------------------------\n// Derived helpers\n// ---------------------------------------------------------------------------\n\nexport const coreServices = SERVICE_CATALOG.filter(s => s.category === \"core\");\nexport const hubServices = SERVICE_CATALOG.filter(s => s.category === \"hub\");\nexport const liveServices = SERVICE_CATALOG.filter(s => s.status === \"live\");\nexport const inDevServices = SERVICE_CATALOG.filter(\n s => s.status === \"in-development\"\n);\nexport const comingSoonServices = SERVICE_CATALOG.filter(\n s => s.status === \"coming-soon\"\n);\n/** Services with a scripted onboarding tour step, in catalog order. */\nexport const onboardingTourServices = SERVICE_CATALOG.filter(\n s => s.onboarding !== undefined\n);\n\nexport function getServiceBySlug(slug: string): ServiceDefinition | undefined {\n return SERVICE_CATALOG.find(s => s.slug === slug);\n}\n\nexport function getServiceUrl(service: ServiceDefinition): string | null {\n if (service.subdomainLabel) {\n return platformUrl(service.subdomainLabel);\n }\n return null;\n}\n","/**\n * crossNav — build the sidebar cross-service links (service → service jump\n * without going through the Portal Service Hub).\n *\n * Visibility mirrors the Portal ServiceHub rule: platform_admin and\n * enterprise_admin see every live service; everyone else only sees the\n * services granted in the portal `user_services` table. The current service\n * never links to itself. Each link URL carries the caller's current\n * org-hierarchy selection (?oh=…) so the breadcrumb arrives pre-aligned.\n */\nimport type { OrgHierarchySelection } from \"../hierarchy/orgHierarchy\";\nimport { appendSelectionParam } from \"../hierarchy/selectionParams\";\nimport { SERVICE_CATALOG, getServiceUrl } from \"./catalog\";\n\n/** Roles that see every live service regardless of individual grants. */\nexport const ADMIN_SEE_ALL_ROLES = [\n \"platform_admin\",\n \"enterprise_admin\",\n] as const;\n\n/**\n * Legacy grant slugs → canonical catalog slugs. Auto-provisioned accounts\n * were granted \"sqdcp-logic\" while the catalog slug is \"sqdcp\".\n */\nexport const SLUG_ALIASES: Record<string, string> = {\n \"sqdcp-logic\": \"sqdcp\",\n};\n\nexport function normalizeServiceSlug(slug: string): string {\n return SLUG_ALIASES[slug] ?? slug;\n}\n\n/** Display-ready cross-service link entry. */\nexport interface CrossServiceLink {\n slug: string;\n name: string;\n /** Lucide icon name from the service catalog (consumers resolve locally). */\n icon: string;\n accentColor: string;\n /** Absolute URL including the ?oh= hierarchy selection param. */\n url: string;\n}\n\nexport interface BuildCrossServiceLinksOptions {\n /** Catalog slug of the service doing the rendering (excluded from links). */\n currentSlug: string;\n /** Grant slugs from the portal (raw — aliases are normalized here). */\n grantedSlugs: string[];\n /** Portal role of the current user (drives the admin see-all rule). */\n role?: string | null;\n /** Current org-hierarchy selection to carry across (may be empty/null). */\n selection?: OrgHierarchySelection | null;\n}\n\nexport function buildCrossServiceLinks(\n options: BuildCrossServiceLinksOptions\n): CrossServiceLink[] {\n const { currentSlug, grantedSlugs, role, selection } = options;\n\n const isAdmin =\n !!role && (ADMIN_SEE_ALL_ROLES as readonly string[]).includes(role);\n const granted = new Set(grantedSlugs.map(normalizeServiceSlug));\n const current = normalizeServiceSlug(currentSlug);\n\n return SERVICE_CATALOG.filter(\n svc =>\n svc.status === \"live\" &&\n svc.subdomainLabel !== null &&\n svc.slug !== current &&\n (isAdmin || granted.has(svc.slug))\n ).map(svc => ({\n slug: svc.slug,\n name: svc.name,\n icon: svc.icon,\n accentColor: svc.accentColor,\n url: appendSelectionParam(getServiceUrl(svc)!, selection),\n }));\n}\n"],"mappings":";;;;;;;;AA2FO,IAAM,kBAAuC;AAAA;AAAA,EAElD;AAAA,IACE,MAAM;AAA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a,IAAI;AAAA,IACjB,KAAK,qBAAqB,cAAc,GAAG,GAAI,SAAS;AAAA,EAC1D,EAAE;AACJ;","names":[]}
|
|
@@ -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
|