mainstack-design-system 1.19.9 → 1.19.11

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.
@@ -10,9 +10,9 @@
10
10
  --color-primary: var(--mds-color-neutral-375);
11
11
  --color-secondary: var(--mds-color-neutral-300);
12
12
  --color-tertiary: var(--mds-color-neutral-275);
13
- --color-accent: var(--mds-color-indigo-275);
13
+ --color-accent: var(--mds-color-persimmon-275);
14
14
 
15
- --color-accent-hover: var(--mds-color-indigo-350);
15
+ --color-accent-hover: var(--mds-color-persimmon-350);
16
16
  --color-disabled: var(--mds-color-neutral-250);
17
17
  --color-success: var(--mds-color-green-400);
18
18
  --color-success-hover: var(--mds-color-green-450);
@@ -30,7 +30,7 @@
30
30
  --color-on-secondary-disabled: var(--mds-color-neutral-250);
31
31
  --color-on-ghost: var(--mds-color-neutral-375);
32
32
 
33
- --color-on-accent: var(--mds-color-indigo-50);
33
+ --color-on-accent: var(--mds-color-persimmon-50);
34
34
  --color-on-success: var(--mds-color-green-50);
35
35
  --color-on-success-disabled: var(--mds-color-muted-green-325);
36
36
  --color-on-success-light: var(--mds-color-green-425);
@@ -51,9 +51,9 @@
51
51
  --color-on-info-light: var(--mds-color-cobalt-425);
52
52
  --color-on-info-light-disabled: var(--mds-color-muted-cobalt-325);
53
53
 
54
- --color-interactive-primary: var(--mds-color-indigo-275);
55
- --color-interactive-primary-hover: var(--mds-color-indigo-300);
56
- --color-interactive-primary-pressed: var(--mds-color-indigo-300);
54
+ --color-interactive-primary: var(--mds-color-persimmon-275);
55
+ --color-interactive-primary-hover: var(--mds-color-persimmon-300);
56
+ --color-interactive-primary-pressed: var(--mds-color-persimmon-300);
57
57
  --color-interactive-primary-disabled: var(--mds-color-neutral-150);
58
58
 
59
59
  --color-interactive-secondary: var(--mds-color-neutral-125);
@@ -65,10 +65,10 @@
65
65
  --color-interactive-ghost-hover: var(--mds-color-neutral-150);
66
66
  --color-interactive-ghost-pressed: var(--mds-color-neutral-175);
67
67
 
68
- --color-interactive-accent: var(--mds-color-indigo-275);
69
- --color-interactive-accent-hover: var(--mds-color-indigo-350);
70
- --color-interactive-accent-pressed: var(--mds-color-indigo-400);
71
- --color-interactive-accent-disabled: var(--mds-color-indigo-125);
68
+ --color-interactive-accent: var(--mds-color-persimmon-275);
69
+ --color-interactive-accent-hover: var(--mds-color-persimmon-350);
70
+ --color-interactive-accent-pressed: var(--mds-color-persimmon-400);
71
+ --color-interactive-accent-disabled: var(--mds-color-persimmon-125);
72
72
 
73
73
  --color-interactive-success: var(--mds-color-green-400);
74
74
  --color-interactive-success-hover: var(--mds-color-green-450);
@@ -110,6 +110,11 @@
110
110
  --color-interactive-info-light-pressed: var(--mds-color-cobalt-125);
111
111
  --color-interactive-info-light-disabled: var(--mds-color-muted-cobalt-225);
112
112
 
113
+ --color-interactive-neutral: var(--mds-color-neutral-400);
114
+ --color-interactive-neutral-hover: var(--mds-color-neutral-450);
115
+ --color-interactive-neutral-pressed: var(--mds-color-neutral-500);
116
+ --color-interactive-neutral-disabled: var(--mds-color-neutral-150);
117
+
113
118
  --color-surface-neutral-l1: var(--mds-color-neutral-50);
114
119
  --color-surface-neutral-l2: var(--mds-color-neutral-75);
115
120
  --color-surface-neutral-l3: var(--mds-color-neutral-100);
@@ -122,17 +127,17 @@
122
127
  --color-surface-neutral-invert-l4: var(--mds-color-neutral-425);
123
128
  --color-surface-neutral-invert-l5: var(--mds-color-neutral-400);
124
129
 
125
- --color-surface-accent-l1: var(--mds-color-indigo-50);
126
- --color-surface-accent-l2: var(--mds-color-indigo-75);
127
- --color-surface-accent-l3: var(--mds-color-indigo-100);
128
- --color-surface-accent-l4: var(--mds-color-indigo-125);
129
- --color-surface-accent-l5: var(--mds-color-indigo-150);
130
+ --color-surface-accent-l1: var(--mds-color-persimmon-50);
131
+ --color-surface-accent-l2: var(--mds-color-persimmon-75);
132
+ --color-surface-accent-l3: var(--mds-color-persimmon-100);
133
+ --color-surface-accent-l4: var(--mds-color-persimmon-125);
134
+ --color-surface-accent-l5: var(--mds-color-persimmon-150);
130
135
 
131
- --color-surface-accent-invert-l1: var(--mds-color-indigo-500);
132
- --color-surface-accent-invert-l2: var(--mds-color-indigo-475);
133
- --color-surface-accent-invert-l3: var(--mds-color-indigo-450);
134
- --color-surface-accent-invert-l4: var(--mds-color-indigo-425);
135
- --color-surface-accent-invert-l5: var(--mds-color-indigo-400);
136
+ --color-surface-accent-invert-l1: var(--mds-color-persimmon-500);
137
+ --color-surface-accent-invert-l2: var(--mds-color-persimmon-475);
138
+ --color-surface-accent-invert-l3: var(--mds-color-persimmon-450);
139
+ --color-surface-accent-invert-l4: var(--mds-color-persimmon-425);
140
+ --color-surface-accent-invert-l5: var(--mds-color-persimmon-400);
136
141
 
137
142
  --color-surface-success-l1: var(--mds-color-green-50);
138
143
  --color-surface-success-l2: var(--mds-color-green-75);
@@ -184,17 +189,32 @@
184
189
 
185
190
  --color-border-interactive-primary: var(--mds-color-neutral-150);
186
191
  --color-border-interactive-primary-hover: var(--mds-color-neutral-175);
187
- --color-border-interactive-primary-pressed: var(--mds-color-indigo-225);
192
+ --color-border-interactive-primary-pressed: var(--mds-color-persimmon-225);
188
193
  --color-border-interactive-primary-disabled: var(--mds-color-neutral-150);
189
- --color-border-interactive-primary-active: var(--mds-color-indigo-200);
190
- --color-border-interactive-primary-active-hover: var(--mds-color-indigo-225);
194
+ --color-border-interactive-primary-active: var(--mds-color-persimmon-200);
195
+ --color-border-interactive-primary-active-hover: var(
196
+ --mds-color-persimmon-225
197
+ );
191
198
  --color-border-interactive-primary-active-pressed: var(
192
- --mds-color-indigo-275
199
+ --mds-color-persimmon-275
193
200
  );
194
201
  --color-border-interactive-primary-active-disabled: var(
195
202
  --mds-color-muted-indigo-225
196
203
  );
197
204
 
205
+ --color-border-interactive-neutral: var(--mds-color-neutral-150);
206
+ --color-border-interactive-neutral-hover: var(--mds-color-neutral-175);
207
+ --color-border-interactive-neutral-pressed: var(--mds-color-neutrl-450);
208
+ --color-border-interactive-neutral-disabled: var(--mds-color-neutral-150);
209
+ --color-border-interactive-neutral-active: var(--mds-color-neutral-400);
210
+ --color-border-interactive-neutral-active-hover: var(--mds-color-neutral-450);
211
+ --color-border-interactive-neutral-active-pressed: var(
212
+ --mds-color-neutral-450
213
+ );
214
+ --color-border-interactive-neutral-active-disabled: var(
215
+ --mds-color-neutral-300
216
+ );
217
+
198
218
  --color-border-interactive-neutral-inverse: var(--mds-color-neutral-450);
199
219
  --color-border-interactive-neutral-inverse-hover: var(
200
220
  --mds-color-neutral-275
@@ -245,7 +265,7 @@
245
265
  --color-border-surface-info-strong: var(--mds-color-cobalt-325);
246
266
 
247
267
  --color-border-surface-spread-neutral: var(--mds-color-neutral-125);
248
- --color-border-surface-spread-primary: var(--mds-color-indigo-50);
268
+ --color-border-surface-spread-primary: var(--mds-color-persimmon-50);
249
269
  --color-border-surface-spread-success: var(--mds-color-green-175);
250
270
  --color-border-surface-spread-error: var(--mds-color-red-175);
251
271
  --color-border-surface-spread-warning: var(--mds-color-lemon-175);
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime"),a=require("react"),y=require("./mainstack-design-system25.cjs"),P=require("./index-C8aODXfJ.cjs"),R=require("./utils-DgHSufYV.cjs"),m=({values:l,onValuesChange:p,defaultValues:t=[],isDisabled:n,accept:v={"image/png":[".png",".jpeg",".jpg",".webp"]},maxFiles:b=4,maxSize:h,onError:r,children:C,className:f,isError:i,...j})=>{const[o,c]=P.useControllableState({prop:l,defaultProp:t,onChange:p}),[d,u]=a.useState(()=>{const e=l||t;return e&&e.length>0?e[e.length-1]:null});o&&o.length>0&&!d&&u(o[o.length-1]);const[x,s]=a.useState(null),I=a.useCallback(e=>{s(null),c(e)},[c]),U=a.useCallback(e=>{const q=e instanceof Error?e.message:"An error occurred";s(q),r&&r(e)},[r]);return g.jsx(y.ImageUploaderContext.Provider,{value:{values:o,defaultValues:t,mainPreviewFile:d,isDisabled:n,accept:v,maxFiles:b,maxSize:h,setMainPreviewFile:u,onValuesChange:I,error:x,setError:s,onError:U,isError:i},children:g.jsx("div",{"data-disabled":n,"aria-disabled":n,"data-error":i,"data-slot":"image-uploader-root",className:R.cn("mds:relative mds:flex mds:flex-col mds:gap-12 mds:body-font-family",f),...j,children:C})})};m.displayName="ImageUploaderRoot";exports.ImageUploaderRoot=m;
2
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime"),a=require("react"),y=require("./mainstack-design-system25.cjs"),P=require("./index-C8aODXfJ.cjs"),R=require("./utils-DgHSufYV.cjs"),m=({values:l,onValuesChange:p,defaultValues:t=[],isDisabled:r,accept:v={"image/png":[".png",".jpeg",".jpg",".webp"]},maxFiles:b=4,maxSize:C,onError:n,children:f,className:h,isError:i,...j})=>{const[o,c]=P.useControllableState({prop:l,defaultProp:t,onChange:p}),[d,u]=a.useState(()=>{const e=l||t;return e&&e.length>0?e[0]:null});o&&o.length>0&&!d&&u(o[0]);const[x,s]=a.useState(null),I=a.useCallback(e=>{s(null),c(e)},[c]),U=a.useCallback(e=>{const q=e instanceof Error?e.message:"An error occurred";s(q),n&&n(e)},[n]);return g.jsx(y.ImageUploaderContext.Provider,{value:{values:o,defaultValues:t,mainPreviewFile:d,isDisabled:r,accept:v,maxFiles:b,maxSize:C,setMainPreviewFile:u,onValuesChange:I,error:x,setError:s,onError:U,isError:i},children:g.jsx("div",{"data-disabled":r,"aria-disabled":r,"data-error":i,"data-slot":"image-uploader-root",className:R.cn("mds:relative mds:flex mds:flex-col mds:gap-12 mds:body-font-family",h),...j,children:f})})};m.displayName="ImageUploaderRoot";exports.ImageUploaderRoot=m;
@@ -1,6 +1,6 @@
1
1
  'use client';
2
- import { jsx as g } from "react/jsx-runtime";
3
- import { useState as d, useCallback as c } from "react";
2
+ import { jsx as d } from "react/jsx-runtime";
3
+ import { useState as g, useCallback as c } from "react";
4
4
  import { ImageUploaderContext as I } from "./mainstack-design-system25.js";
5
5
  import { u as U } from "./index-437EL2iq.js";
6
6
  import { c as F } from "./utils-DLi4dp19.js";
@@ -10,46 +10,46 @@ const N = ({
10
10
  defaultValues: a = [],
11
11
  isDisabled: r,
12
12
  accept: f = { "image/png": [".png", ".jpeg", ".jpg", ".webp"] },
13
- maxFiles: h = 4,
14
- maxSize: v,
13
+ maxFiles: v = 4,
14
+ maxSize: h,
15
15
  onError: t,
16
16
  children: C,
17
17
  className: b,
18
18
  isError: l,
19
19
  ...P
20
20
  }) => {
21
- const [o, m] = U({
21
+ const [e, m] = U({
22
22
  prop: s,
23
23
  defaultProp: a,
24
24
  onChange: u
25
- }), [i, p] = d(() => {
26
- const e = s || a;
27
- return e && e.length > 0 ? e[e.length - 1] : null;
25
+ }), [i, p] = g(() => {
26
+ const o = s || a;
27
+ return o && o.length > 0 ? o[0] : null;
28
28
  });
29
- o && o.length > 0 && !i && p(o[o.length - 1]);
30
- const [j, n] = d(null), w = c(
31
- (e) => {
32
- n(null), m(e);
29
+ e && e.length > 0 && !i && p(e[0]);
30
+ const [j, n] = g(null), w = c(
31
+ (o) => {
32
+ n(null), m(o);
33
33
  },
34
34
  [m]
35
35
  ), x = c(
36
- (e) => {
37
- const y = e instanceof Error ? e.message : "An error occurred";
38
- n(y), t && t(e);
36
+ (o) => {
37
+ const y = o instanceof Error ? o.message : "An error occurred";
38
+ n(y), t && t(o);
39
39
  },
40
40
  [t]
41
41
  );
42
- return /* @__PURE__ */ g(
42
+ return /* @__PURE__ */ d(
43
43
  I.Provider,
44
44
  {
45
45
  value: {
46
- values: o,
46
+ values: e,
47
47
  defaultValues: a,
48
48
  mainPreviewFile: i,
49
49
  isDisabled: r,
50
50
  accept: f,
51
- maxFiles: h,
52
- maxSize: v,
51
+ maxFiles: v,
52
+ maxSize: h,
53
53
  setMainPreviewFile: p,
54
54
  onValuesChange: w,
55
55
  error: j,
@@ -57,7 +57,7 @@ const N = ({
57
57
  onError: x,
58
58
  isError: l
59
59
  },
60
- children: /* @__PURE__ */ g(
60
+ children: /* @__PURE__ */ d(
61
61
  "div",
62
62
  {
63
63
  "data-disabled": r,
@@ -6,10 +6,10 @@
6
6
 
7
7
  mds:active:bg-content-special mds:active:shadow-special-button-pressed mds:active:ring-2 mds:ring-offset-2 mds:ring-border-surface-spread-neutral
8
8
  mds:disabled:bg-none mds:disabled:border-none mds:disabled:shadow-none mds:disabled:outline-none mds:disabled:bg-interactive-primary-disabled mds:disabled:text-on-primary-disabled`},{status:"default",variant:"primary",class:`mds:bg-primary mds:text-on-primary
9
- mds:hover:bg-interactive-primary-hover
9
+ mds:hover:bg-interactive-neutral-hover
10
10
 
11
- mds:active:bg-interactive-primary-pressed mds:active:ring-3 mds:active:ring-border-surface-spread-primary
12
- mds:disabled:bg-interactive-primary-disabled mds:disabled:text-on-primary-disabled`},{status:"default",variant:"secondary",class:`mds:bg-interactive-secondary mds:text-on-secondary
11
+ mds:active:bg-interactive-neutral-pressed mds:active:ring-3 mds:active:ring-border-surface-spread-neutral
12
+ mds:disabled:bg-interactive-neutral-disabled mds:disabled:text-on-primary-disabled`},{status:"default",variant:"secondary",class:`mds:bg-interactive-secondary mds:text-on-secondary
13
13
  mds:hover:bg-interactive-secondary-hover
14
14
 
15
15
  mds:active:bg-interactive-secondary-pressed mds:active:ring-2 mds:active:ring-border-surface-spread-primary
@@ -47,10 +47,10 @@ const r = e(
47
47
  status: "default",
48
48
  variant: "primary",
49
49
  class: `mds:bg-primary mds:text-on-primary
50
- mds:hover:bg-interactive-primary-hover
50
+ mds:hover:bg-interactive-neutral-hover
51
51
 
52
- mds:active:bg-interactive-primary-pressed mds:active:ring-3 mds:active:ring-border-surface-spread-primary
53
- mds:disabled:bg-interactive-primary-disabled mds:disabled:text-on-primary-disabled`
52
+ mds:active:bg-interactive-neutral-pressed mds:active:ring-3 mds:active:ring-border-surface-spread-neutral
53
+ mds:disabled:bg-interactive-neutral-disabled mds:disabled:text-on-primary-disabled`
54
54
  },
55
55
  {
56
56
  status: "default",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-CAgJYdlN.cjs"),e=r.cva(["mds:group/parent mds:flex mds:items-center mds:justify-center mds:gap-4 mds:w-full mds:rounded-full mds:outline-none mds:transition-colors mds:body-extrasmall-medium mds:bg-surface-neutral-l1 mds:border mds:border-border-interactive-primary mds:text-primary mds:cursor-pointer","mds:active:transition-transform mds:ease-out-cubic mds:duration-150 mds:active:scale-[0.85] mds:focus:transition-background mds:focus:ease-out","mds:hover:bg-interactive-secondary","mds:aria-disabled:bg-interactive-neutral-disabled mds:aria-disabled:text-disabled mds:aria-disabled:pointer-events-none mds:aria-disabled:cursor-not-allowed","mds:focus-visible:ring-2 mds:focus-visible:ring-offset-0 mds:focus-visible:outline-2 mds:focus-visible:outline-border-interactive-primary mds:focus-visible:ring-border-surface-spread-focus","mds:active:ring-3 mds:active:border-1 mds:active:border-border-interactive-primary-pressed mds:active:ring-border-surface-spread-primary","mds:data-[selected=true]:ring-3 mds:data-[selected=true]:ring-border-surface-spread-primary mds:data-[selected=true]:border-1 mds:data-[selected=true]:border-border-interactive-primary-active","mds:active:**:data-[slot=checkbox-indicator]:ring-3 mds:active:**:data-[slot=checkbox-indicator]:ring-border-surface-spread-primary mds:active:**:data-[slot=checkbox-indicator]:border-2 mds:active:**:data-[slot=checkbox-indicator]:border-border-interactive-primary-pressed","mds:hover:**:data-[slot=checkbox-indicator]:bg-interactive-secondary mds:hover:**:data-[slot=checkbox-indicator]:border-border-interactive-primary-hover","mds:focus-visible:**:data-[slot=checkbox-indicator]:ring-2 mds:focus-visible:**:data-[slot=checkbox-indicator]:ring-border-surface-spread-focus","mds:data-[selected=true]:**:data-[slot=checkbox-indicator]:bg-interactive-primary","mds:flex mds:gap-4"],{variants:{size:{tiny:"mds:h-32",xs:"mds:h-36 ",sm:"mds:h-40"}},defaultVariants:{size:"sm"}}),d=r.cva(["mds:pointer-events-none mds:rounded-full mds:size-15 mds:border mds:border-border-surface-neutral-l1","mds:group-hover:bg-interactive-secondary mds:group-hover:border-border-surface-neutral-l1","mds:group-focus-visible:border-2 mds:group-focus-visible:border-border-surface-spread-focus","mds:group-active:ring-3 mds:group-active:rounded-full! mds:group-active:border-2 mds:group-active:border-border-interactive-primary-pressed mds:group-active:ring-border-surface-spread-primary","mds:group-data-[selected=true]:border-2 mds:group-data-[selected=true]:border-border-interactive-primary-active","mds:[&_svg]:size-15"]);exports.chipCheckboxVariants=d;exports.chipVariants=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CAgJYdlN.cjs"),r=e.cva(["mds:group/parent mds:flex mds:items-center mds:justify-center mds:gap-4 mds:w-full mds:rounded-full mds:outline-none mds:transition-colors mds:body-extrasmall-medium mds:bg-surface-neutral-l1 mds:border mds:border-border-interactive-primary mds:text-primary mds:cursor-pointer","mds:active:transition-transform mds:ease-out-cubic mds:duration-150 mds:active:scale-[0.85] mds:focus:transition-background mds:focus:ease-out","mds:hover:bg-interactive-secondary","mds:aria-disabled:bg-interactive-neutral-disabled mds:aria-disabled:text-disabled mds:aria-disabled:pointer-events-none mds:aria-disabled:cursor-not-allowed","mds:focus-visible:ring-2 mds:focus-visible:ring-offset-0 mds:focus-visible:outline-2 mds:focus-visible:outline-border-interactive-primary mds:focus-visible:ring-border-surface-spread-focus","mds:active:ring-3 mds:active:border-1 mds:active:border-border-interactive-neutral-pressed mds:active:ring-border-surface-spread-neutral","mds:data-[selected=true]:ring-1 mds:data-[selected=true]:ring-border-interactive-neutral-active mds:data-[selected=true]:border-1 mds:data-[selected=true]:border-border-interactive-neutral-active","mds:active:**:data-[slot=checkbox-indicator]:ring-3 mds:active:**:data-[slot=checkbox-indicator]:ring-border-surface-spread-primary mds:active:**:data-[slot=checkbox-indicator]:border-2 mds:active:**:data-[slot=checkbox-indicator]:border-border-interactive-neutral-pressed","mds:hover:**:data-[slot=checkbox-indicator]:bg-interactive-secondary mds:hover:**:data-[slot=checkbox-indicator]:border-border-interactive-primary-hover","mds:focus-visible:**:data-[slot=checkbox-indicator]:ring-2 mds:focus-visible:**:data-[slot=checkbox-indicator]:ring-border-surface-spread-focus","mds:data-[selected=true]:**:data-[slot=checkbox-indicator]:bg-interactive-primary","mds:flex mds:gap-4"],{variants:{size:{tiny:"mds:h-32",xs:"mds:h-36 ",sm:"mds:h-40"}},defaultVariants:{size:"sm"}}),d=e.cva(["mds:pointer-events-none mds:rounded-full mds:size-15 mds:border mds:border-border-surface-neutral-l1","mds:group-hover:bg-interactive-secondary mds:group-hover:border-border-surface-neutral-l1","mds:group-focus-visible:border-2 mds:group-focus-visible:border-border-surface-spread-focus","mds:group-active:ring-3 mds:group-active:rounded-full! mds:group-active:border-2 mds:group-active:border-border-interactive-neutral-pressed mds:group-active:ring-border-surface-spread-primary","mds:group-data-[selected=true]:border-2 mds:group-data-[selected=true]:border-border-interactive-neutral-active","mds:[&_svg]:size-15"]);exports.chipCheckboxVariants=d;exports.chipVariants=r;
@@ -1,14 +1,14 @@
1
- import { c as r } from "./index-D29mdTf5.js";
2
- const d = r(
1
+ import { c as e } from "./index-D29mdTf5.js";
2
+ const d = e(
3
3
  [
4
4
  "mds:group/parent mds:flex mds:items-center mds:justify-center mds:gap-4 mds:w-full mds:rounded-full mds:outline-none mds:transition-colors mds:body-extrasmall-medium mds:bg-surface-neutral-l1 mds:border mds:border-border-interactive-primary mds:text-primary mds:cursor-pointer",
5
5
  "mds:active:transition-transform mds:ease-out-cubic mds:duration-150 mds:active:scale-[0.85] mds:focus:transition-background mds:focus:ease-out",
6
6
  "mds:hover:bg-interactive-secondary",
7
7
  "mds:aria-disabled:bg-interactive-neutral-disabled mds:aria-disabled:text-disabled mds:aria-disabled:pointer-events-none mds:aria-disabled:cursor-not-allowed",
8
8
  "mds:focus-visible:ring-2 mds:focus-visible:ring-offset-0 mds:focus-visible:outline-2 mds:focus-visible:outline-border-interactive-primary mds:focus-visible:ring-border-surface-spread-focus",
9
- "mds:active:ring-3 mds:active:border-1 mds:active:border-border-interactive-primary-pressed mds:active:ring-border-surface-spread-primary",
10
- "mds:data-[selected=true]:ring-3 mds:data-[selected=true]:ring-border-surface-spread-primary mds:data-[selected=true]:border-1 mds:data-[selected=true]:border-border-interactive-primary-active",
11
- "mds:active:**:data-[slot=checkbox-indicator]:ring-3 mds:active:**:data-[slot=checkbox-indicator]:ring-border-surface-spread-primary mds:active:**:data-[slot=checkbox-indicator]:border-2 mds:active:**:data-[slot=checkbox-indicator]:border-border-interactive-primary-pressed",
9
+ "mds:active:ring-3 mds:active:border-1 mds:active:border-border-interactive-neutral-pressed mds:active:ring-border-surface-spread-neutral",
10
+ "mds:data-[selected=true]:ring-1 mds:data-[selected=true]:ring-border-interactive-neutral-active mds:data-[selected=true]:border-1 mds:data-[selected=true]:border-border-interactive-neutral-active",
11
+ "mds:active:**:data-[slot=checkbox-indicator]:ring-3 mds:active:**:data-[slot=checkbox-indicator]:ring-border-surface-spread-primary mds:active:**:data-[slot=checkbox-indicator]:border-2 mds:active:**:data-[slot=checkbox-indicator]:border-border-interactive-neutral-pressed",
12
12
  "mds:hover:**:data-[slot=checkbox-indicator]:bg-interactive-secondary mds:hover:**:data-[slot=checkbox-indicator]:border-border-interactive-primary-hover",
13
13
  "mds:focus-visible:**:data-[slot=checkbox-indicator]:ring-2 mds:focus-visible:**:data-[slot=checkbox-indicator]:ring-border-surface-spread-focus",
14
14
  "mds:data-[selected=true]:**:data-[slot=checkbox-indicator]:bg-interactive-primary",
@@ -26,12 +26,12 @@ const d = r(
26
26
  size: "sm"
27
27
  }
28
28
  }
29
- ), s = r([
29
+ ), s = e([
30
30
  "mds:pointer-events-none mds:rounded-full mds:size-15 mds:border mds:border-border-surface-neutral-l1",
31
31
  "mds:group-hover:bg-interactive-secondary mds:group-hover:border-border-surface-neutral-l1",
32
32
  "mds:group-focus-visible:border-2 mds:group-focus-visible:border-border-surface-spread-focus",
33
- "mds:group-active:ring-3 mds:group-active:rounded-full! mds:group-active:border-2 mds:group-active:border-border-interactive-primary-pressed mds:group-active:ring-border-surface-spread-primary",
34
- "mds:group-data-[selected=true]:border-2 mds:group-data-[selected=true]:border-border-interactive-primary-active",
33
+ "mds:group-active:ring-3 mds:group-active:rounded-full! mds:group-active:border-2 mds:group-active:border-border-interactive-neutral-pressed mds:group-active:ring-border-surface-spread-primary",
34
+ "mds:group-data-[selected=true]:border-2 mds:group-data-[selected=true]:border-border-interactive-neutral-active",
35
35
  "mds:[&_svg]:size-15"
36
36
  ]);
37
37
  export {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),r=require("./index-DX47zPiS.cjs"),m=require("./utils-DgHSufYV.cjs"),d=t.forwardRef(({className:s,...a},i)=>e.jsx(r.Item2,{"data-slot":"radio-item-indicator",className:m.cn("mds:peer mds:relative mds:flex mds:items-center mds:gap-12 mds:border mds:cursor-pointer mds:rounded-full mds:border-border-interactive-primary mds:bg-on-primary mds:size-20 mds:active:transition-transform mds:ease-out-cubic mds:duration-150 mds:active:scale-[0.85] mds:focus:ring-2 mds:active:ring-2 mds:active:ring-border-surface-spread-primary mds:focus:ring-border-surface-spread-focus mds:ring-offset-0 mds:group-data-[error=true]:border-border-surface-error-l1 mds:group-data-[radio-size=large]:size-32 mds:disabled:bg-interactive-primary-disabled mds:hover:border-border-interactive-primary-active-hover mds:aria-checked:bg-interactive-primary mds:disabled:aria-checked:bg-disabled mds:disabled:border-bg-interactive-primary-disabled mds:disabled:cursor-not-allowed ",s),ref:i,...a,children:e.jsx(r.Indicator,{className:"mds:absolute mds:left-1/2 mds:top-1/2 mds:-translate-1/2 mds:flex mds:items-center mds:justify-center mds:size-full mds:after:content-[''] mds:after:block mds:after:size-10 mds:after:rounded-full mds:after:bg-on-primary mds:group-data-[radio-size=large]:after:size-16 "})}));d.displayName="RadioItemIndicator";exports.RadioItemIndicator=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("react"),r=require("./index-DX47zPiS.cjs"),o=require("./utils-DgHSufYV.cjs"),d=i.forwardRef(({className:s,...a},t)=>e.jsx(r.Item2,{"data-slot":"radio-item-indicator",className:o.cn("mds:peer mds:relative mds:flex mds:items-center mds:gap-12 mds:border mds:cursor-pointer mds:rounded-full mds:border-border-interactive-neutral mds:bg-on-primary mds:size-20 mds:active:transition-transform mds:ease-out-cubic mds:duration-150 mds:active:scale-[0.85] mds:focus:ring-2 mds:active:ring-2 mds:active:ring-border-surface-spread-primary mds:focus:ring-border-surface-spread-focus mds:ring-offset-0 mds:group-data-[error=true]:border-border-surface-error-l1 mds:group-data-[radio-size=large]:size-32 mds:disabled:bg-interactive-neutral-disabled mds:hover:border-border-interactive-neutral-active-hover mds:aria-checked:bg-interactive-neutral mds:disabled:aria-checked:bg-disabled mds:disabled:border-bg-interactive-neutral-disabled mds:disabled:cursor-not-allowed ",s),ref:t,...a,children:e.jsx(r.Indicator,{className:"mds:absolute mds:left-1/2 mds:top-1/2 mds:-translate-1/2 mds:flex mds:items-center mds:justify-center mds:size-full mds:after:content-[''] mds:after:block mds:after:size-10 mds:after:rounded-full mds:after:bg-on-primary mds:group-data-[radio-size=large]:after:size-16 "})}));d.displayName="RadioItemIndicator";exports.RadioItemIndicator=d;
@@ -1,19 +1,19 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import { forwardRef as a } from "react";
3
- import { I as i, a as m } from "./index-CUPSVQUe.js";
4
- import { c as t } from "./utils-DLi4dp19.js";
3
+ import { I as t, a as i } from "./index-CUPSVQUe.js";
4
+ import { c as m } from "./utils-DLi4dp19.js";
5
5
  const o = a(
6
6
  ({ className: e, ...d }, s) => /* @__PURE__ */ r(
7
- i,
7
+ t,
8
8
  {
9
9
  "data-slot": "radio-item-indicator",
10
- className: t(
11
- "mds:peer mds:relative mds:flex mds:items-center mds:gap-12 mds:border mds:cursor-pointer mds:rounded-full mds:border-border-interactive-primary mds:bg-on-primary mds:size-20 mds:active:transition-transform mds:ease-out-cubic mds:duration-150 mds:active:scale-[0.85] mds:focus:ring-2 mds:active:ring-2 mds:active:ring-border-surface-spread-primary mds:focus:ring-border-surface-spread-focus mds:ring-offset-0 mds:group-data-[error=true]:border-border-surface-error-l1 mds:group-data-[radio-size=large]:size-32 mds:disabled:bg-interactive-primary-disabled mds:hover:border-border-interactive-primary-active-hover mds:aria-checked:bg-interactive-primary mds:disabled:aria-checked:bg-disabled mds:disabled:border-bg-interactive-primary-disabled mds:disabled:cursor-not-allowed ",
10
+ className: m(
11
+ "mds:peer mds:relative mds:flex mds:items-center mds:gap-12 mds:border mds:cursor-pointer mds:rounded-full mds:border-border-interactive-neutral mds:bg-on-primary mds:size-20 mds:active:transition-transform mds:ease-out-cubic mds:duration-150 mds:active:scale-[0.85] mds:focus:ring-2 mds:active:ring-2 mds:active:ring-border-surface-spread-primary mds:focus:ring-border-surface-spread-focus mds:ring-offset-0 mds:group-data-[error=true]:border-border-surface-error-l1 mds:group-data-[radio-size=large]:size-32 mds:disabled:bg-interactive-neutral-disabled mds:hover:border-border-interactive-neutral-active-hover mds:aria-checked:bg-interactive-neutral mds:disabled:aria-checked:bg-disabled mds:disabled:border-bg-interactive-neutral-disabled mds:disabled:cursor-not-allowed ",
12
12
  e
13
13
  ),
14
14
  ref: s,
15
15
  ...d,
16
- children: /* @__PURE__ */ r(m, { className: "mds:absolute mds:left-1/2 mds:top-1/2 mds:-translate-1/2 mds:flex mds:items-center mds:justify-center mds:size-full mds:after:content-[''] mds:after:block mds:after:size-10 mds:after:rounded-full mds:after:bg-on-primary mds:group-data-[radio-size=large]:after:size-16 " })
16
+ children: /* @__PURE__ */ r(i, { className: "mds:absolute mds:left-1/2 mds:top-1/2 mds:-translate-1/2 mds:flex mds:items-center mds:justify-center mds:size-full mds:after:content-[''] mds:after:block mds:after:size-10 mds:after:rounded-full mds:after:bg-on-primary mds:group-data-[radio-size=large]:after:size-16 " })
17
17
  }
18
18
  )
19
19
  );
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CAgJYdlN.cjs"),s=e.cva(["mds:group mds:w-full mds:rounded-18 mds:body-font-family mds:gap-12 mds:select-none mds:relative mds:flex mds:cursor-pointer mds:items-center mds:p-18 mds:border mds:border-border-interactive-primary mds:bg-surface-neutral-l1","mds:transition-transform mds:ease-out-pressed mds:duration-100 mds:active:scale-[0.96]","mds:has-[>[data-slot=tile-header]]:flex-col mds:has-[>[data-slot=tile-header]]:items-start","mds:data-[selected=true]:border-1 mds:data-[selected=true]:border-border-interactive-primary-active","mds:focus-visible:ring-2 mds:focus-visible:ring-offset-0 mds:focus-visible:outline-2 mds:focus-visible:outline-border-surface-spread-focus mds:focus-visible:ring-border-surface-spread-focus","mds:active:ring-3 mds:active:border-1 mds:active:border-border-interactive-primary-pressed mds:active:ring-border-surface-spread-primary","mds:data-[selected=true]:ring-3 mds:data-[selected=true]:ring-border-surface-spread-primary"],{variants:{disabled:{true:["mds:pointer-events-none mds:opacity-60","mds:data-[disabled=true]:[&_[data-slot=tile-content]]:text-disabled"]}}});exports.tileVariants=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CAgJYdlN.cjs"),s=e.cva(["mds:group mds:w-full mds:rounded-18 mds:body-font-family mds:gap-12 mds:select-none mds:relative mds:flex mds:cursor-pointer mds:items-center mds:p-18 mds:border mds:border-border-interactive-neutral mds:bg-surface-neutral-l1","mds:transition-transform mds:ease-out-pressed mds:duration-100 mds:active:scale-[0.96]","mds:has-[>[data-slot=tile-header]]:flex-col mds:has-[>[data-slot=tile-header]]:items-start","mds:data-[selected=true]:border-1 mds:data-[selected=true]:border-border-interactive-neutral-active","mds:focus-visible:ring-2 mds:focus-visible:ring-offset-0 mds:focus-visible:outline-2 mds:focus-visible:outline-border-surface-spread-focus mds:focus-visible:ring-border-surface-spread-focus","mds:active:ring-1 mds:active:border-1 mds:active:border-border-interactive-neutral-pressed mds:active:ring-border-interactive-neutral-active","mds:data-[selected=true]:ring-1 mds:data-[selected=true]:ring-border-interactive-neutral-active"],{variants:{disabled:{true:["mds:pointer-events-none mds:opacity-60","mds:data-[disabled=true]:[&_[data-slot=tile-content]]:text-disabled"]}}});exports.tileVariants=s;
@@ -1,13 +1,13 @@
1
1
  import { c as e } from "./index-D29mdTf5.js";
2
- const r = e(
2
+ const t = e(
3
3
  [
4
- "mds:group mds:w-full mds:rounded-18 mds:body-font-family mds:gap-12 mds:select-none mds:relative mds:flex mds:cursor-pointer mds:items-center mds:p-18 mds:border mds:border-border-interactive-primary mds:bg-surface-neutral-l1",
4
+ "mds:group mds:w-full mds:rounded-18 mds:body-font-family mds:gap-12 mds:select-none mds:relative mds:flex mds:cursor-pointer mds:items-center mds:p-18 mds:border mds:border-border-interactive-neutral mds:bg-surface-neutral-l1",
5
5
  "mds:transition-transform mds:ease-out-pressed mds:duration-100 mds:active:scale-[0.96]",
6
6
  "mds:has-[>[data-slot=tile-header]]:flex-col mds:has-[>[data-slot=tile-header]]:items-start",
7
- "mds:data-[selected=true]:border-1 mds:data-[selected=true]:border-border-interactive-primary-active",
7
+ "mds:data-[selected=true]:border-1 mds:data-[selected=true]:border-border-interactive-neutral-active",
8
8
  "mds:focus-visible:ring-2 mds:focus-visible:ring-offset-0 mds:focus-visible:outline-2 mds:focus-visible:outline-border-surface-spread-focus mds:focus-visible:ring-border-surface-spread-focus",
9
- "mds:active:ring-3 mds:active:border-1 mds:active:border-border-interactive-primary-pressed mds:active:ring-border-surface-spread-primary",
10
- "mds:data-[selected=true]:ring-3 mds:data-[selected=true]:ring-border-surface-spread-primary"
9
+ "mds:active:ring-1 mds:active:border-1 mds:active:border-border-interactive-neutral-pressed mds:active:ring-border-interactive-neutral-active",
10
+ "mds:data-[selected=true]:ring-1 mds:data-[selected=true]:ring-border-interactive-neutral-active"
11
11
  ],
12
12
  {
13
13
  variants: {
@@ -21,5 +21,5 @@ const r = e(
21
21
  }
22
22
  );
23
23
  export {
24
- r as tileVariants
24
+ t as tileVariants
25
25
  };
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),E=require("react"),q=require("./index-_XxjJPRD.cjs"),v=require("./index-5OKsHRWb.cjs"),F=require("./index-C8aODXfJ.cjs"),H=require("./index-DYxWvftI.cjs"),L=require("./index-bSPhqlcX.cjs"),G=require("./index-Bd0gQB0k.cjs");require("./mainstack-design-system366.cjs");const K=require("./mainstack-design-system104.cjs");require("./player-DeknzY43.cjs");const U=require("./utils-DgHSufYV.cjs");function X(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const c=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,c.get?c:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const i=X(E);var _="Checkbox",[J]=v.createContextScope(_),[Q,P]=J(_);function V(e){const{__scopeCheckbox:o,checked:t,children:c,defaultChecked:a,disabled:r,form:b,name:p,onCheckedChange:u,required:h,value:k="on",internal_do_not_use_render:l}=e,[m,g]=F.useControllableState({prop:t,defaultProp:a??!1,onChange:u,caller:_}),[x,C]=i.useState(null),[y,s]=i.useState(null),d=i.useRef(!1),R=x?!!b||!!x.closest("form"):!0,I={checked:m,disabled:r,setChecked:g,control:x,setControl:C,name:p,form:b,value:k,hasConsumerStoppedPropagationRef:d,required:h,defaultChecked:f(a)?!1:a,isFormControl:R,bubbleInput:y,setBubbleInput:s};return n.jsx(Q,{scope:o,...I,children:W(l)?l(I):c})}var S="CheckboxTrigger",N=i.forwardRef(({__scopeCheckbox:e,onKeyDown:o,onClick:t,...c},a)=>{const{control:r,value:b,disabled:p,checked:u,required:h,setControl:k,setChecked:l,hasConsumerStoppedPropagationRef:m,isFormControl:g,bubbleInput:x}=P(S,e),C=q.useComposedRefs(a,k),y=i.useRef(u);return i.useEffect(()=>{const s=r?.form;if(s){const d=()=>l(y.current);return s.addEventListener("reset",d),()=>s.removeEventListener("reset",d)}},[r,l]),n.jsx(v.Primitive.button,{type:"button",role:"checkbox","aria-checked":f(u)?"mixed":u,"aria-required":h,"data-state":T(u),"data-disabled":p?"":void 0,disabled:p,value:b,...c,ref:C,onKeyDown:v.composeEventHandlers(o,s=>{s.key==="Enter"&&s.preventDefault()}),onClick:v.composeEventHandlers(t,s=>{l(d=>f(d)?!0:!d),x&&g&&(m.current=s.isPropagationStopped(),m.current||s.stopPropagation())})})});N.displayName=S;var z=i.forwardRef((e,o)=>{const{__scopeCheckbox:t,name:c,checked:a,defaultChecked:r,required:b,disabled:p,value:u,onCheckedChange:h,form:k,...l}=e;return n.jsx(V,{__scopeCheckbox:t,checked:a,defaultChecked:r,disabled:p,required:b,onCheckedChange:h,name:c,form:k,value:u,internal_do_not_use_render:({isFormControl:m})=>n.jsxs(n.Fragment,{children:[n.jsx(N,{...l,ref:o,__scopeCheckbox:t}),m&&n.jsx(M,{__scopeCheckbox:t})]})})});z.displayName=_;var w="CheckboxIndicator",O=i.forwardRef((e,o)=>{const{__scopeCheckbox:t,forceMount:c,...a}=e,r=P(w,t);return n.jsx(G.Presence,{present:c||f(r.checked)||r.checked===!0,children:n.jsx(v.Primitive.span,{"data-state":T(r.checked),"data-disabled":r.disabled?"":void 0,...a,ref:o,style:{pointerEvents:"none",...e.style}})})});O.displayName=w;var B="CheckboxBubbleInput",M=i.forwardRef(({__scopeCheckbox:e,...o},t)=>{const{control:c,hasConsumerStoppedPropagationRef:a,checked:r,defaultChecked:b,required:p,disabled:u,name:h,value:k,form:l,bubbleInput:m,setBubbleInput:g}=P(B,e),x=q.useComposedRefs(t,g),C=H.usePrevious(r),y=L.useSize(c);i.useEffect(()=>{const d=m;if(!d)return;const R=window.HTMLInputElement.prototype,j=Object.getOwnPropertyDescriptor(R,"checked").set,$=!a.current;if(C!==r&&j){const A=new Event("click",{bubbles:$});d.indeterminate=f(r),j.call(d,f(r)?!1:r),d.dispatchEvent(A)}},[m,C,r,a]);const s=i.useRef(f(r)?!1:r);return n.jsx(v.Primitive.input,{type:"checkbox","aria-hidden":!0,defaultChecked:b??s.current,required:p,disabled:u,name:h,value:k,form:l,...o,tabIndex:-1,ref:x,style:{...o.style,...y,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});M.displayName=B;function W(e){return typeof e=="function"}function f(e){return e==="indeterminate"}function T(e){return f(e)?"indeterminate":e?"checked":"unchecked"}const D=E.forwardRef(({className:e,...o},t)=>n.jsx(z,{"data-slot":"checkbox-indicator",className:U.cn("mds:peer mds:relative mds:flex mds:justify-center mds:items-center mds:cursor-pointer mds:gap-12 mds:border mds:rounded-6 mds:border-border-interactive-primary mds:bg-on-primary mds:active:transition-transform mds:ease-out-cubic mds:duration-150 mds:active:scale-[0.85] mds:focus:ring-2 mds:active:ring-2 mds:focus:ring-border-surface-spread-focus mds:active:ring-border-surface-spread-primary mds:ring-offset-0 mds:size-20 mds:group-data-[checkbox-shape=full-radius]:rounded-full mds:group-data-[error=true]:border-border-surface-error-l1 mds:group-data-[checkbox-size=large]:size-32 mds:group-data-[checkbox-size=extra-small]:size-18 mds:disabled:cursor-not-allowed mds:disabled:bg-interactive-primary-disabled mds:group-hover:border-border-interactive-primary-active-hover mds:aria-checked:bg-interactive-primary mds:disabled:aria-checked:bg-disabled mds:disabled:border-bg-interactive-primary-disabled ",e),ref:t,...o,children:n.jsx(O,{children:n.jsx(K,{className:"mds:size-24 mds:text-on-primary mds:group-data-[checkbox-size=small]:size-16 mds:group-data-[checkbox-size=extra-small]:size-14"})})}));D.displayName="CheckboxIndicator";exports.CheckboxIndicator=D;
2
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),E=require("react"),q=require("./index-_XxjJPRD.cjs"),v=require("./index-5OKsHRWb.cjs"),F=require("./index-C8aODXfJ.cjs"),H=require("./index-DYxWvftI.cjs"),L=require("./index-bSPhqlcX.cjs"),G=require("./index-Bd0gQB0k.cjs");require("./mainstack-design-system366.cjs");const K=require("./mainstack-design-system104.cjs");require("./player-DeknzY43.cjs");const U=require("./utils-DgHSufYV.cjs");function X(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const c=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,c.get?c:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const i=X(E);var _="Checkbox",[J]=v.createContextScope(_),[Q,P]=J(_);function V(e){const{__scopeCheckbox:o,checked:t,children:c,defaultChecked:a,disabled:r,form:m,name:f,onCheckedChange:u,required:h,value:k="on",internal_do_not_use_render:l}=e,[b,g]=F.useControllableState({prop:t,defaultProp:a??!1,onChange:u,caller:_}),[x,C]=i.useState(null),[y,n]=i.useState(null),d=i.useRef(!1),R=x?!!m||!!x.closest("form"):!0,I={checked:b,disabled:r,setChecked:g,control:x,setControl:C,name:f,form:m,value:k,hasConsumerStoppedPropagationRef:d,required:h,defaultChecked:p(a)?!1:a,isFormControl:R,bubbleInput:y,setBubbleInput:n};return s.jsx(Q,{scope:o,...I,children:W(l)?l(I):c})}var S="CheckboxTrigger",N=i.forwardRef(({__scopeCheckbox:e,onKeyDown:o,onClick:t,...c},a)=>{const{control:r,value:m,disabled:f,checked:u,required:h,setControl:k,setChecked:l,hasConsumerStoppedPropagationRef:b,isFormControl:g,bubbleInput:x}=P(S,e),C=q.useComposedRefs(a,k),y=i.useRef(u);return i.useEffect(()=>{const n=r?.form;if(n){const d=()=>l(y.current);return n.addEventListener("reset",d),()=>n.removeEventListener("reset",d)}},[r,l]),s.jsx(v.Primitive.button,{type:"button",role:"checkbox","aria-checked":p(u)?"mixed":u,"aria-required":h,"data-state":T(u),"data-disabled":f?"":void 0,disabled:f,value:m,...c,ref:C,onKeyDown:v.composeEventHandlers(o,n=>{n.key==="Enter"&&n.preventDefault()}),onClick:v.composeEventHandlers(t,n=>{l(d=>p(d)?!0:!d),x&&g&&(b.current=n.isPropagationStopped(),b.current||n.stopPropagation())})})});N.displayName=S;var z=i.forwardRef((e,o)=>{const{__scopeCheckbox:t,name:c,checked:a,defaultChecked:r,required:m,disabled:f,value:u,onCheckedChange:h,form:k,...l}=e;return s.jsx(V,{__scopeCheckbox:t,checked:a,defaultChecked:r,disabled:f,required:m,onCheckedChange:h,name:c,form:k,value:u,internal_do_not_use_render:({isFormControl:b})=>s.jsxs(s.Fragment,{children:[s.jsx(N,{...l,ref:o,__scopeCheckbox:t}),b&&s.jsx(M,{__scopeCheckbox:t})]})})});z.displayName=_;var w="CheckboxIndicator",O=i.forwardRef((e,o)=>{const{__scopeCheckbox:t,forceMount:c,...a}=e,r=P(w,t);return s.jsx(G.Presence,{present:c||p(r.checked)||r.checked===!0,children:s.jsx(v.Primitive.span,{"data-state":T(r.checked),"data-disabled":r.disabled?"":void 0,...a,ref:o,style:{pointerEvents:"none",...e.style}})})});O.displayName=w;var B="CheckboxBubbleInput",M=i.forwardRef(({__scopeCheckbox:e,...o},t)=>{const{control:c,hasConsumerStoppedPropagationRef:a,checked:r,defaultChecked:m,required:f,disabled:u,name:h,value:k,form:l,bubbleInput:b,setBubbleInput:g}=P(B,e),x=q.useComposedRefs(t,g),C=H.usePrevious(r),y=L.useSize(c);i.useEffect(()=>{const d=b;if(!d)return;const R=window.HTMLInputElement.prototype,j=Object.getOwnPropertyDescriptor(R,"checked").set,$=!a.current;if(C!==r&&j){const A=new Event("click",{bubbles:$});d.indeterminate=p(r),j.call(d,p(r)?!1:r),d.dispatchEvent(A)}},[b,C,r,a]);const n=i.useRef(p(r)?!1:r);return s.jsx(v.Primitive.input,{type:"checkbox","aria-hidden":!0,defaultChecked:m??n.current,required:f,disabled:u,name:h,value:k,form:l,...o,tabIndex:-1,ref:x,style:{...o.style,...y,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});M.displayName=B;function W(e){return typeof e=="function"}function p(e){return e==="indeterminate"}function T(e){return p(e)?"indeterminate":e?"checked":"unchecked"}const D=E.forwardRef(({className:e,...o},t)=>s.jsx(z,{"data-slot":"checkbox-indicator",className:U.cn("mds:peer mds:relative mds:flex mds:justify-center mds:items-center mds:cursor-pointer mds:gap-12 mds:border mds:rounded-6 mds:border-border-interactive-primary mds:bg-on-primary mds:active:transition-transform mds:ease-out-cubic mds:duration-150 mds:active:scale-[0.85] mds:focus:ring-2 mds:active:ring-2 mds:focus:ring-border-surface-spread-neutral mds:active:ring-border-surface-spread-neutral mds:ring-offset-0 mds:size-20 mds:group-data-[checkbox-shape=full-radius]:rounded-full mds:group-data-[error=true]:border-border-surface-error-l1 mds:group-data-[checkbox-size=large]:size-32 mds:group-data-[checkbox-size=extra-small]:size-18 mds:disabled:cursor-not-allowed mds:disabled:bg-interactive-neutral-disabled mds:group-hover:border-border-interactive-neutral-active-hover mds:aria-checked:bg-interactive-neutral mds:disabled:aria-checked:bg-disabled mds:disabled:border-bg-interactive-neutral-disabled ",e),ref:t,...o,children:s.jsx(O,{children:s.jsx(K,{className:"mds:size-24 mds:text-on-primary mds:group-data-[checkbox-size=small]:size-16 mds:group-data-[checkbox-size=extra-small]:size-14"})})}));D.displayName="CheckboxIndicator";exports.CheckboxIndicator=D;
@@ -17,7 +17,7 @@ function Y(r) {
17
17
  const {
18
18
  __scopeCheckbox: s,
19
19
  checked: t,
20
- children: m,
20
+ children: l,
21
21
  defaultChecked: a,
22
22
  disabled: e,
23
23
  form: p,
@@ -27,7 +27,7 @@ function Y(r) {
27
27
  value: k = "on",
28
28
  // @ts-expect-error
29
29
  internal_do_not_use_render: u
30
- } = r, [l, x] = K({
30
+ } = r, [m, x] = K({
31
31
  prop: t,
32
32
  defaultProp: a ?? !1,
33
33
  onChange: i,
@@ -36,7 +36,7 @@ function Y(r) {
36
36
  // We set this to true by default so that events bubble to forms without JS (SSR)
37
37
  !0
38
38
  ), R = {
39
- checked: l,
39
+ checked: m,
40
40
  disabled: e,
41
41
  setChecked: x,
42
42
  control: C,
@@ -56,12 +56,12 @@ function Y(r) {
56
56
  {
57
57
  scope: s,
58
58
  ...R,
59
- children: Z(u) ? u(R) : m
59
+ children: Z(u) ? u(R) : l
60
60
  }
61
61
  );
62
62
  }
63
63
  var S = "CheckboxTrigger", w = d.forwardRef(
64
- ({ __scopeCheckbox: r, onKeyDown: s, onClick: t, ...m }, a) => {
64
+ ({ __scopeCheckbox: r, onKeyDown: s, onClick: t, ...l }, a) => {
65
65
  const {
66
66
  control: e,
67
67
  value: p,
@@ -70,7 +70,7 @@ var S = "CheckboxTrigger", w = d.forwardRef(
70
70
  required: h,
71
71
  setControl: k,
72
72
  setChecked: u,
73
- hasConsumerStoppedPropagationRef: l,
73
+ hasConsumerStoppedPropagationRef: m,
74
74
  isFormControl: x,
75
75
  bubbleInput: C
76
76
  } = _(S, r), v = z(a, k), g = d.useRef(i);
@@ -91,13 +91,13 @@ var S = "CheckboxTrigger", w = d.forwardRef(
91
91
  "data-disabled": f ? "" : void 0,
92
92
  disabled: f,
93
93
  value: p,
94
- ...m,
94
+ ...l,
95
95
  ref: v,
96
96
  onKeyDown: N(s, (o) => {
97
97
  o.key === "Enter" && o.preventDefault();
98
98
  }),
99
99
  onClick: N(t, (o) => {
100
- u((n) => b(n) ? !0 : !n), C && x && (l.current = o.isPropagationStopped(), l.current || o.stopPropagation());
100
+ u((n) => b(n) ? !0 : !n), C && x && (m.current = o.isPropagationStopped(), m.current || o.stopPropagation());
101
101
  })
102
102
  }
103
103
  );
@@ -108,7 +108,7 @@ var B = d.forwardRef(
108
108
  (r, s) => {
109
109
  const {
110
110
  __scopeCheckbox: t,
111
- name: m,
111
+ name: l,
112
112
  checked: a,
113
113
  defaultChecked: e,
114
114
  required: p,
@@ -127,10 +127,10 @@ var B = d.forwardRef(
127
127
  disabled: f,
128
128
  required: p,
129
129
  onCheckedChange: h,
130
- name: m,
130
+ name: l,
131
131
  form: k,
132
132
  value: i,
133
- internal_do_not_use_render: ({ isFormControl: l }) => /* @__PURE__ */ L(O, { children: [
133
+ internal_do_not_use_render: ({ isFormControl: m }) => /* @__PURE__ */ L(O, { children: [
134
134
  /* @__PURE__ */ c(
135
135
  w,
136
136
  {
@@ -139,7 +139,7 @@ var B = d.forwardRef(
139
139
  __scopeCheckbox: t
140
140
  }
141
141
  ),
142
- l && /* @__PURE__ */ c(
142
+ m && /* @__PURE__ */ c(
143
143
  A,
144
144
  {
145
145
  __scopeCheckbox: t
@@ -153,11 +153,11 @@ var B = d.forwardRef(
153
153
  B.displayName = y;
154
154
  var M = "CheckboxIndicator", T = d.forwardRef(
155
155
  (r, s) => {
156
- const { __scopeCheckbox: t, forceMount: m, ...a } = r, e = _(M, t);
156
+ const { __scopeCheckbox: t, forceMount: l, ...a } = r, e = _(M, t);
157
157
  return /* @__PURE__ */ c(
158
158
  $,
159
159
  {
160
- present: m || b(e.checked) || e.checked === !0,
160
+ present: l || b(e.checked) || e.checked === !0,
161
161
  children: /* @__PURE__ */ c(
162
162
  P.span,
163
163
  {
@@ -176,7 +176,7 @@ T.displayName = M;
176
176
  var q = "CheckboxBubbleInput", A = d.forwardRef(
177
177
  ({ __scopeCheckbox: r, ...s }, t) => {
178
178
  const {
179
- control: m,
179
+ control: l,
180
180
  hasConsumerStoppedPropagationRef: a,
181
181
  checked: e,
182
182
  defaultChecked: p,
@@ -185,11 +185,11 @@ var q = "CheckboxBubbleInput", A = d.forwardRef(
185
185
  name: h,
186
186
  value: k,
187
187
  form: u,
188
- bubbleInput: l,
188
+ bubbleInput: m,
189
189
  setBubbleInput: x
190
- } = _(q, r), C = z(t, x), v = U(e), g = X(m);
190
+ } = _(q, r), C = z(t, x), v = U(e), g = X(l);
191
191
  d.useEffect(() => {
192
- const n = l;
192
+ const n = m;
193
193
  if (!n) return;
194
194
  const I = window.HTMLInputElement.prototype, E = Object.getOwnPropertyDescriptor(
195
195
  I,
@@ -199,7 +199,7 @@ var q = "CheckboxBubbleInput", A = d.forwardRef(
199
199
  const F = new Event("click", { bubbles: D });
200
200
  n.indeterminate = b(e), E.call(n, b(e) ? !1 : e), n.dispatchEvent(F);
201
201
  }
202
- }, [l, v, e, a]);
202
+ }, [m, v, e, a]);
203
203
  const o = d.useRef(b(e) ? !1 : e);
204
204
  return /* @__PURE__ */ c(
205
205
  P.input,
@@ -247,7 +247,7 @@ const ee = H(
247
247
  {
248
248
  "data-slot": "checkbox-indicator",
249
249
  className: Q(
250
- "mds:peer mds:relative mds:flex mds:justify-center mds:items-center mds:cursor-pointer mds:gap-12 mds:border mds:rounded-6 mds:border-border-interactive-primary mds:bg-on-primary mds:active:transition-transform mds:ease-out-cubic mds:duration-150 mds:active:scale-[0.85] mds:focus:ring-2 mds:active:ring-2 mds:focus:ring-border-surface-spread-focus mds:active:ring-border-surface-spread-primary mds:ring-offset-0 mds:size-20 mds:group-data-[checkbox-shape=full-radius]:rounded-full mds:group-data-[error=true]:border-border-surface-error-l1 mds:group-data-[checkbox-size=large]:size-32 mds:group-data-[checkbox-size=extra-small]:size-18 mds:disabled:cursor-not-allowed mds:disabled:bg-interactive-primary-disabled mds:group-hover:border-border-interactive-primary-active-hover mds:aria-checked:bg-interactive-primary mds:disabled:aria-checked:bg-disabled mds:disabled:border-bg-interactive-primary-disabled ",
250
+ "mds:peer mds:relative mds:flex mds:justify-center mds:items-center mds:cursor-pointer mds:gap-12 mds:border mds:rounded-6 mds:border-border-interactive-primary mds:bg-on-primary mds:active:transition-transform mds:ease-out-cubic mds:duration-150 mds:active:scale-[0.85] mds:focus:ring-2 mds:active:ring-2 mds:focus:ring-border-surface-spread-neutral mds:active:ring-border-surface-spread-neutral mds:ring-offset-0 mds:size-20 mds:group-data-[checkbox-shape=full-radius]:rounded-full mds:group-data-[error=true]:border-border-surface-error-l1 mds:group-data-[checkbox-size=large]:size-32 mds:group-data-[checkbox-size=extra-small]:size-18 mds:disabled:cursor-not-allowed mds:disabled:bg-interactive-neutral-disabled mds:group-hover:border-border-interactive-neutral-active-hover mds:aria-checked:bg-interactive-neutral mds:disabled:aria-checked:bg-disabled mds:disabled:border-bg-interactive-neutral-disabled ",
251
251
  r
252
252
  ),
253
253
  ref: t,
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),y=require("react"),h=require("./index-5OKsHRWb.cjs"),P=require("./index-_XxjJPRD.cjs"),O=require("./index-C8aODXfJ.cjs"),B=require("./index-DYxWvftI.cjs"),I=require("./index-bSPhqlcX.cjs"),C=require("./utils-DgHSufYV.cjs");function M(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const s=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,s.get?s:{enumerable:!0,get:()=>t[e]})}}return r.default=t,Object.freeze(r)}const c=M(y);var b="Switch",[H]=h.createContextScope(b),[$,z]=H(b),R=c.forwardRef((t,r)=>{const{__scopeSwitch:e,name:s,checked:o,defaultChecked:g,required:d,disabled:a,value:u="on",onCheckedChange:w,form:i,...v}=t,[l,f]=c.useState(null),S=P.useComposedRefs(r,p=>f(p)),x=c.useRef(!1),k=l?i||!!l.closest("form"):!0,[m,E]=O.useControllableState({prop:o,defaultProp:g??!1,onChange:w,caller:b});return n.jsxs($,{scope:e,checked:m,disabled:a,children:[n.jsx(h.Primitive.button,{type:"button",role:"switch","aria-checked":m,"aria-required":d,"data-state":q(m),"data-disabled":a?"":void 0,disabled:a,value:u,...v,ref:S,onClick:h.composeEventHandlers(t.onClick,p=>{E(N=>!N),k&&(x.current=p.isPropagationStopped(),x.current||p.stopPropagation())})}),k&&n.jsx(T,{control:l,bubbles:!x.current,name:s,value:u,checked:m,required:d,disabled:a,form:i,style:{transform:"translateX(-100%)"}})]})});R.displayName=b;var j="SwitchThumb",_=c.forwardRef((t,r)=>{const{__scopeSwitch:e,...s}=t,o=z(j,e);return n.jsx(h.Primitive.span,{"data-state":q(o.checked),"data-disabled":o.disabled?"":void 0,...s,ref:r})});_.displayName=j;var A="SwitchBubbleInput",T=c.forwardRef(({__scopeSwitch:t,control:r,checked:e,bubbles:s=!0,...o},g)=>{const d=c.useRef(null),a=P.useComposedRefs(d,g),u=B.usePrevious(e),w=I.useSize(r);return c.useEffect(()=>{const i=d.current;if(!i)return;const v=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(v,"checked").set;if(u!==e&&f){const S=new Event("click",{bubbles:s});f.call(i,e),i.dispatchEvent(S)}},[u,e,s]),n.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:e,...o,tabIndex:-1,ref:a,style:{...o.style,...w,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});T.displayName=A;function q(t){return t?"checked":"unchecked"}var D=R,U=_;const L=y.forwardRef(({className:t,...r},e)=>n.jsx(D,{"data-slot":"toggle-switch",tabIndex:0,className:C.cn("mds:inline-flex mds:items-center mds:shrink-0 mds:relative mds:bg-surface-neutral-l4 mds:rounded-full mds:hover:bg-surface-neutral-l5 mds:focus:outline-2 mds:focus:outline-border-surface-spread-focus mds:aria-checked:bg-interactive-primary mds:checked:disabled:bg-surface-neutral-l5 mds:disabled:cursor-not-allowed ",t),ref:e,...r,children:n.jsx(U,{"data-slot":"toggle-thumb",className:C.cn("mds:block mds:rounded-full mds:bg-surface-neutral-l1 mds:shrink-0 mds:transition-transform mds:shadow-50")})}));exports.ToggleSwitch=L;
2
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),P=require("react"),h=require("./index-5OKsHRWb.cjs"),y=require("./index-_XxjJPRD.cjs"),O=require("./index-C8aODXfJ.cjs"),B=require("./index-DYxWvftI.cjs"),I=require("./index-bSPhqlcX.cjs"),C=require("./utils-DgHSufYV.cjs");function M(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const s=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,s.get?s:{enumerable:!0,get:()=>t[e]})}}return r.default=t,Object.freeze(r)}const c=M(P);var b="Switch",[H]=h.createContextScope(b),[$,z]=H(b),R=c.forwardRef((t,r)=>{const{__scopeSwitch:e,name:s,checked:o,defaultChecked:g,required:d,disabled:a,value:u="on",onCheckedChange:w,form:i,...v}=t,[l,f]=c.useState(null),S=y.useComposedRefs(r,p=>f(p)),x=c.useRef(!1),k=l?i||!!l.closest("form"):!0,[m,E]=O.useControllableState({prop:o,defaultProp:g??!1,onChange:w,caller:b});return n.jsxs($,{scope:e,checked:m,disabled:a,children:[n.jsx(h.Primitive.button,{type:"button",role:"switch","aria-checked":m,"aria-required":d,"data-state":q(m),"data-disabled":a?"":void 0,disabled:a,value:u,...v,ref:S,onClick:h.composeEventHandlers(t.onClick,p=>{E(N=>!N),k&&(x.current=p.isPropagationStopped(),x.current||p.stopPropagation())})}),k&&n.jsx(T,{control:l,bubbles:!x.current,name:s,value:u,checked:m,required:d,disabled:a,form:i,style:{transform:"translateX(-100%)"}})]})});R.displayName=b;var j="SwitchThumb",_=c.forwardRef((t,r)=>{const{__scopeSwitch:e,...s}=t,o=z(j,e);return n.jsx(h.Primitive.span,{"data-state":q(o.checked),"data-disabled":o.disabled?"":void 0,...s,ref:r})});_.displayName=j;var A="SwitchBubbleInput",T=c.forwardRef(({__scopeSwitch:t,control:r,checked:e,bubbles:s=!0,...o},g)=>{const d=c.useRef(null),a=y.useComposedRefs(d,g),u=B.usePrevious(e),w=I.useSize(r);return c.useEffect(()=>{const i=d.current;if(!i)return;const v=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(v,"checked").set;if(u!==e&&f){const S=new Event("click",{bubbles:s});f.call(i,e),i.dispatchEvent(S)}},[u,e,s]),n.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:e,...o,tabIndex:-1,ref:a,style:{...o.style,...w,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});T.displayName=A;function q(t){return t?"checked":"unchecked"}var D=R,U=_;const L=P.forwardRef(({className:t,...r},e)=>n.jsx(D,{"data-slot":"toggle-switch",tabIndex:0,className:C.cn("mds:inline-flex mds:items-center mds:shrink-0 mds:relative mds:bg-surface-neutral-l4 mds:rounded-full mds:hover:bg-surface-neutral-l5 mds:focus:outline-2 mds:focus:outline-border-surface-spread-focus mds:aria-checked:bg-interactive-neutral mds:checked:disabled:bg-surface-neutral-l5 mds:disabled:cursor-not-allowed ",t),ref:e,...r,children:n.jsx(U,{"data-slot":"toggle-thumb",className:C.cn("mds:block mds:rounded-full mds:bg-surface-neutral-l1 mds:shrink-0 mds:transition-transform mds:shadow-50")})}));exports.ToggleSwitch=L;