mainstack-design-system 1.19.3 → 1.19.4
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/assets/styles.css +1 -1
- package/dist/assets/theme/lightDarkModeTheme.css +1 -0
- package/dist/assets/theme/tokenTheme.css +9 -18
- package/dist/mainstack-design-system366.cjs +1 -1
- package/dist/mainstack-design-system366.js +1 -1
- package/dist/mainstack-design-system406.cjs +5 -6
- package/dist/mainstack-design-system406.js +5 -6
- package/dist/mainstack-design-system420.cjs +1 -1
- package/dist/mainstack-design-system420.js +10 -10
- package/dist/mainstack-design-system422.cjs +1 -1
- package/dist/mainstack-design-system422.js +18 -18
- package/dist/mainstack-design-system437.cjs +1 -1
- package/dist/mainstack-design-system437.js +14 -14
- package/dist/mainstack-design-system440.cjs +1 -1
- package/dist/mainstack-design-system440.js +1 -1
- package/dist/mainstack-design-system451.cjs +1 -1
- package/dist/mainstack-design-system451.js +9 -9
- package/dist/mainstack-design-system461.cjs +1 -1
- package/dist/mainstack-design-system461.js +16 -16
- package/dist/mainstack-design-system472.cjs +1 -1
- package/dist/mainstack-design-system472.js +2 -2
- package/dist/mainstack-design-system494.cjs +1 -1
- package/dist/mainstack-design-system494.js +10 -10
- package/dist/mainstack-design-system544.cjs +1 -1
- package/dist/mainstack-design-system544.js +6 -6
- package/dist/mainstack-design-system560.cjs +1 -1
- package/dist/mainstack-design-system560.js +30 -27
- package/dist/mainstack-design-system561.cjs +1 -1
- package/dist/mainstack-design-system561.js +10 -10
- package/dist/mainstack-design-system586.cjs +1 -1
- package/dist/mainstack-design-system586.js +1 -1
- package/dist/mainstack-design-system611.cjs +1 -1
- package/dist/mainstack-design-system611.js +2 -1
- package/dist/mainstack-design-system621.cjs +1 -1
- package/dist/mainstack-design-system621.js +8 -8
- package/dist/mainstack-design-system627.cjs +1 -1
- package/dist/mainstack-design-system627.js +15 -15
- package/dist/mainstack-design-system632.cjs +1 -1
- package/dist/mainstack-design-system632.js +1 -0
- package/dist/mainstack-design-system633.cjs +1 -1
- package/dist/mainstack-design-system633.js +1 -1
- package/package.json +1 -1
|
@@ -244,6 +244,7 @@
|
|
|
244
244
|
--color-border-surface-info-subtle: var(--mds-color-cobalt-275);
|
|
245
245
|
--color-border-surface-info-strong: var(--mds-color-cobalt-325);
|
|
246
246
|
|
|
247
|
+
--color-border-surface-spread-neutral: var(--mds-color-neutral-125);
|
|
247
248
|
--color-border-surface-spread-primary: var(--mds-color-indigo-50);
|
|
248
249
|
--color-border-surface-spread-success: var(--mds-color-green-175);
|
|
249
250
|
--color-border-surface-spread-error: var(--mds-color-red-175);
|
|
@@ -966,28 +966,19 @@ E.g: public:p-20 will apply padding 20px when data-ui-theme="public in html root
|
|
|
966
966
|
0 -1px 0 0 var(--mds-color-elevation-shadow-10) inset;
|
|
967
967
|
|
|
968
968
|
--shadow-special-button-default:
|
|
969
|
-
-
|
|
970
|
-
0 -
|
|
971
|
-
|
|
972
|
-
0 2px 0 0 var(--mds-color-neutral-400) inset,
|
|
973
|
-
0 4px 8px 0 var(--mds-color-elevation-shadow-20),
|
|
974
|
-
0 0 0 0.8px var(--mds-color-neutral-500);
|
|
969
|
+
-0.5px -0.5px 1px 1px var(--mds-color-neutral-350) inset,
|
|
970
|
+
-0.5px -0.5px 0.5px 1px var(--mds-color-neutral-350) inset,
|
|
971
|
+
0.5px 0.5px 0.5px 1px var(--mds-color-neutral-350) inset;
|
|
975
972
|
|
|
976
973
|
--shadow-special-button-hover:
|
|
977
|
-
0
|
|
978
|
-
0 0
|
|
979
|
-
0 -
|
|
980
|
-
0 2px 0 0 var(--mds-color-neutral-500) inset,
|
|
981
|
-
-2px 0 0 0 var(--mds-color-neutral-500) inset,
|
|
982
|
-
2px 0 0 0 var(--mds-color-neutral-500) inset;
|
|
974
|
+
0.5px 0.5px 0.5px 1px var(--mds-color-neutral-375) inset,
|
|
975
|
+
-0.5px -0.5px 1px 1px var(--mds-color-neutral-375) inset,
|
|
976
|
+
-0.5px -0.5px 0.5px 1px var(--mds-color-neutral-375) inset;
|
|
983
977
|
|
|
984
978
|
--shadow-special-button-pressed:
|
|
985
|
-
0
|
|
986
|
-
0
|
|
987
|
-
0
|
|
988
|
-
0 -2px 0 0 var(--mds-color-neutral-500) inset,
|
|
989
|
-
2px 0 0 0 var(--mds-color-neutral-500) inset,
|
|
990
|
-
-2px 0 0 0 var(--mds-color-neutral-500) inset;
|
|
979
|
+
0.521px 0.521px 0 0 var(--mds-color-neutral-375) inset,
|
|
980
|
+
0 6.25px 0 0 var(--mds-color-neutral-500) inset,
|
|
981
|
+
0 0 0 0 var(--mds-color-neutral-375) inset;
|
|
991
982
|
|
|
992
983
|
--background-image-content-special: linear-gradient(
|
|
993
984
|
0deg,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("react/jsx-runtime"),s=require("react"),w=require("./utils-BJ1u234q.cjs"),c=s.forwardRef(({children:u,className:l,...r},m)=>{const i=`mask-${s.useId()}`,t=r.width||"24",n=r.height||"24",p=s.Children.map(u,e=>{if(!s.isValidElement(e))return e;const a=e.props,d=typeof e.type=="string"&&e.type.toLowerCase()==="g",k="mask"in a;return d&&k?s.cloneElement(e,{...a,mask:`url(#${i})`}):e});return o.jsxs("svg",{ref:m,xmlns:"http://www.w3.org/2000/svg",width:t,height:n,viewBox:`0 0 ${t} ${n}`,fill:"currentColor",stroke:"none",strokeWidth:"1",style:{maskType:"alpha"},className:w.cn("mds:size-
|
|
1
|
+
"use strict";const o=require("react/jsx-runtime"),s=require("react"),w=require("./utils-BJ1u234q.cjs"),c=s.forwardRef(({children:u,className:l,...r},m)=>{const i=`mask-${s.useId()}`,t=r.width||"24",n=r.height||"24",p=s.Children.map(u,e=>{if(!s.isValidElement(e))return e;const a=e.props,d=typeof e.type=="string"&&e.type.toLowerCase()==="g",k="mask"in a;return d&&k?s.cloneElement(e,{...a,mask:`url(#${i})`}):e});return o.jsxs("svg",{ref:m,xmlns:"http://www.w3.org/2000/svg",width:t,height:n,viewBox:`0 0 ${t} ${n}`,fill:"currentColor",stroke:"none",strokeWidth:"1",style:{maskType:"alpha"},className:w.cn("mds:size-20",l),...r,children:[o.jsx("mask",{id:i,maskUnits:"userSpaceOnUse",x:"0",y:"0",width:t,height:n,children:o.jsx("rect",{width:t,height:n,fill:"white"})}),p]})});c.displayName="Icon";module.exports=c;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CAgJYdlN.cjs"),s=e.cva(`mds:group/buttonroot mds:inline-flex mds:items-center mds:justify-center mds:cursor-pointer mds:gap-4 mds:body-extrasmall-medium
|
|
2
2
|
mds:active:transition-transform mds:ease-out-cubic mds:duration-150 mds:active:scale-[0.85] mds:focus:transition-background mds:focus:ease-out
|
|
3
3
|
mds:focus-visible:ring-2 mds:focus-visible:ring-border-interactive-info-light-focused mds:disabled:cursor-not-allowed`,{variants:{status:{default:"",warning:"",success:"",error:"",info:""},variant:{special:"",primary:"",secondary:"",outline:"",ghost:""},size:{tiny:"mds:body-tiny-medium mds:h-30 mds:p-6",xs:"mds:h-36 mds:px-14 mds:py-8",sm:"mds:h-40 mds:p-16",md:"mds:h-48 mds:px-16 mds:py-12",lg:"mds:h-56 mds:p-16"},rounded:{sm:"mds:rounded-full",md:"mds:rounded-10"}},compoundVariants:[{status:"default",variant:"special",class:`mds:bg-content-special mds:text-on-primary mds:shadow-special-button-default
|
|
4
|
-
|
|
5
|
-
mds:hover:bg-content-special-hover mds:hover:shadow-special-button-hover mds:outline-2 mds:outline-neutral-500
|
|
4
|
+
mds:hover:bg-content-special-hover mds:hover:shadow-special-button-hover mds:outline-2 mds:outline-neutral-500
|
|
6
5
|
|
|
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-
|
|
6
|
+
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
7
|
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
8
|
mds:hover:bg-interactive-primary-hover
|
|
10
9
|
|
|
@@ -15,12 +14,12 @@
|
|
|
15
14
|
mds:active:bg-interactive-secondary-pressed mds:active:ring-2 mds:active:ring-border-surface-spread-primary
|
|
16
15
|
mds:disabled:bg-interactive-primary-disabled mds:disabled:text-on-primary-disabled`},{status:"default",variant:"outline",class:`mds:border mds:bg-surface-neutral-l1 mds:border-border-interactive-primary mds:text-primary
|
|
17
16
|
mds:hover:bg-interactive-secondary mds:hover:border-interactive-secondary
|
|
18
|
-
mds:focus-visible:border-border-surface-spread-
|
|
19
|
-
mds:active:outline-2 mds:active:ring-offset-2 mds:active:ring-border-surface-spread-
|
|
17
|
+
mds:focus-visible:border-border-surface-spread-neutral
|
|
18
|
+
mds:active:outline-2 mds:active:ring-offset-2 mds:active:ring-border-surface-spread-neutral mds:active:ring-2 mds:active:outline-border-interactive-primary-pressed
|
|
20
19
|
mds:disabled:border mds:disabled:border-border-interactive-primary-disabled mds:disabled:text-on-primary-disabled`},{status:"default",variant:"ghost",class:`mds:bg-transparent
|
|
21
20
|
mds:hover:bg-interactive-ghost-hover
|
|
22
21
|
|
|
23
|
-
mds:active:bg-interactive-ghost-pressed mds:active:ring-2 mds:active:ring-border-surface-spread-
|
|
22
|
+
mds:active:bg-interactive-ghost-pressed mds:active:ring-2 mds:active:ring-border-surface-spread-neutral
|
|
24
23
|
mds:disabled:bg-transparent mds:disabled:text-on-primary-disabled`},{status:"warning",variant:"primary",class:`mds:bg-interactive-warning mds:text-on-warning
|
|
25
24
|
mds:hover:bg-interactive-warning-hover
|
|
26
25
|
mds:focus-visible:bg-warning mds:focus-visible:shadow-none
|
|
@@ -37,10 +37,9 @@ const r = e(
|
|
|
37
37
|
status: "default",
|
|
38
38
|
variant: "special",
|
|
39
39
|
class: `mds:bg-content-special mds:text-on-primary mds:shadow-special-button-default
|
|
40
|
-
|
|
41
|
-
mds:hover:bg-content-special-hover mds:hover:shadow-special-button-hover mds:outline-2 mds:outline-neutral-500
|
|
40
|
+
mds:hover:bg-content-special-hover mds:hover:shadow-special-button-hover mds:outline-2 mds:outline-neutral-500
|
|
42
41
|
|
|
43
|
-
mds:active:bg-content-special mds:active:shadow-special-button-pressed mds:active:ring-2 mds:ring-offset-2 mds:ring-border-surface-spread-
|
|
42
|
+
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
|
|
44
43
|
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`
|
|
45
44
|
},
|
|
46
45
|
{
|
|
@@ -66,8 +65,8 @@ const r = e(
|
|
|
66
65
|
variant: "outline",
|
|
67
66
|
class: `mds:border mds:bg-surface-neutral-l1 mds:border-border-interactive-primary mds:text-primary
|
|
68
67
|
mds:hover:bg-interactive-secondary mds:hover:border-interactive-secondary
|
|
69
|
-
mds:focus-visible:border-border-surface-spread-
|
|
70
|
-
mds:active:outline-2 mds:active:ring-offset-2 mds:active:ring-border-surface-spread-
|
|
68
|
+
mds:focus-visible:border-border-surface-spread-neutral
|
|
69
|
+
mds:active:outline-2 mds:active:ring-offset-2 mds:active:ring-border-surface-spread-neutral mds:active:ring-2 mds:active:outline-border-interactive-primary-pressed
|
|
71
70
|
mds:disabled:border mds:disabled:border-border-interactive-primary-disabled mds:disabled:text-on-primary-disabled`
|
|
72
71
|
},
|
|
73
72
|
{
|
|
@@ -76,7 +75,7 @@ const r = e(
|
|
|
76
75
|
class: `mds:bg-transparent
|
|
77
76
|
mds:hover:bg-interactive-ghost-hover
|
|
78
77
|
|
|
79
|
-
mds:active:bg-interactive-ghost-pressed mds:active:ring-2 mds:active:ring-border-surface-spread-
|
|
78
|
+
mds:active:bg-interactive-ghost-pressed mds:active:ring-2 mds:active:ring-border-surface-spread-neutral
|
|
80
79
|
mds:disabled:bg-transparent mds:disabled:text-on-primary-disabled`
|
|
81
80
|
},
|
|
82
81
|
// WARNING BUTTONS
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),i=require("react"),n=require("./index-BgXU_6PU.cjs"),m=require("./utils-BJ1u234q.cjs"),r=i.forwardRef(({className:d,children:s,isError:e,...t},a)=>o.jsx(n.Item,{"data-slot":"accordion-item",className:m.cn("mds:w-full mds:p-16 mds:rounded-18 mds:bg-surface-neutral-l1 mds:hover:bg-interactive-secondary mds:flex mds:flex-col mds:gap-16",'mds:data-[state="open"]:bg-surface-neutral-l1',e?"mds:ring-border-surface-error-l1 mds:ring-2":"mds:ring-border-interactive-primary mds:ring-1",e&&'mds:data-[state="open"]:ring-border-surface-error-l1',"mds:transition-all mds:duration-300 mds:ease-in-out","mds:data-disabled:opacity-50 mds:data-disabled:cursor-not-allowed",d),ref:a,...t,children:s}));r.displayName="AccordionItem";exports.AccordionItem=r;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import t from "react";
|
|
3
3
|
import { I as m } from "./index-Z8GhkKSz.js";
|
|
4
4
|
import { c as i } from "./utils-DH-0D-9U.js";
|
|
5
|
-
const n =
|
|
6
|
-
({ className:
|
|
5
|
+
const n = t.forwardRef(
|
|
6
|
+
({ className: d, children: a, isError: r, ...e }, s) => /* @__PURE__ */ o(
|
|
7
7
|
m,
|
|
8
8
|
{
|
|
9
9
|
"data-slot": "accordion-item",
|
|
10
10
|
className: i(
|
|
11
11
|
"mds:w-full mds:p-16 mds:rounded-18 mds:bg-surface-neutral-l1 mds:hover:bg-interactive-secondary mds:flex mds:flex-col mds:gap-16",
|
|
12
|
-
'mds:data-[state="open"]:bg-surface-neutral-l1
|
|
12
|
+
'mds:data-[state="open"]:bg-surface-neutral-l1',
|
|
13
13
|
r ? "mds:ring-border-surface-error-l1 mds:ring-2" : "mds:ring-border-interactive-primary mds:ring-1",
|
|
14
|
-
r
|
|
14
|
+
r && 'mds:data-[state="open"]:ring-border-surface-error-l1',
|
|
15
15
|
"mds:transition-all mds:duration-300 mds:ease-in-out",
|
|
16
16
|
"mds:data-disabled:opacity-50 mds:data-disabled:cursor-not-allowed",
|
|
17
|
-
|
|
17
|
+
d
|
|
18
18
|
),
|
|
19
|
-
ref:
|
|
20
|
-
...
|
|
21
|
-
children:
|
|
19
|
+
ref: s,
|
|
20
|
+
...e,
|
|
21
|
+
children: a
|
|
22
22
|
}
|
|
23
23
|
)
|
|
24
24
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("react"),r=require("./index-BgXU_6PU.cjs"),s=require("./utils-BJ1u234q.cjs");require("./mainstack-design-system366.cjs");const c=require("./mainstack-design-system196.cjs");require("./player-C6X6nrWe.cjs");const o=i.forwardRef(({className:t,children:n,...d},a)=>e.jsxs(r.Header,{"data-slot":"accordion-header",ref:a,className:s.cn("mds:group mds:flex mds:items-center mds:gap-8 mds:w-full",t),...d,children:[n,e.jsx(r.Trigger2,{asChild:!0,children:e.jsx(c,{className:s.cn("mds:transition-transform mds:cursor-pointer mds:duration-300 mds:ease-in-out",'mds:group-data-[state="open"]:rotate-180')})})]}));o.displayName="AccordionHeader";exports.AccordionHeader=o;
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { H as i } from "./index-Z8GhkKSz.js";
|
|
4
|
-
import { c as
|
|
1
|
+
import { jsxs as d, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import m from "react";
|
|
3
|
+
import { H as i, T as n } from "./index-Z8GhkKSz.js";
|
|
4
|
+
import { c as o } from "./utils-DH-0D-9U.js";
|
|
5
5
|
import "./mainstack-design-system366.js";
|
|
6
|
-
import
|
|
6
|
+
import c from "./mainstack-design-system196.js";
|
|
7
7
|
import "./player-DlPlWw5L.js";
|
|
8
|
-
const
|
|
9
|
-
({ className:
|
|
8
|
+
const p = m.forwardRef(
|
|
9
|
+
({ className: e, children: a, ...s }, t) => /* @__PURE__ */ d(
|
|
10
10
|
i,
|
|
11
11
|
{
|
|
12
12
|
"data-slot": "accordion-header",
|
|
13
|
-
ref:
|
|
14
|
-
className:
|
|
13
|
+
ref: t,
|
|
14
|
+
className: o(
|
|
15
15
|
"mds:group mds:flex mds:items-center mds:gap-8 mds:w-full",
|
|
16
|
-
|
|
16
|
+
e
|
|
17
17
|
),
|
|
18
|
-
...
|
|
18
|
+
...s,
|
|
19
19
|
children: [
|
|
20
20
|
a,
|
|
21
|
-
/* @__PURE__ */
|
|
22
|
-
|
|
21
|
+
/* @__PURE__ */ r(n, { asChild: !0, children: /* @__PURE__ */ r(
|
|
22
|
+
c,
|
|
23
23
|
{
|
|
24
|
-
className:
|
|
25
|
-
"mds:transition-transform mds:duration-300 mds:ease-in-out",
|
|
24
|
+
className: o(
|
|
25
|
+
"mds:transition-transform mds:cursor-pointer mds:duration-300 mds:ease-in-out",
|
|
26
26
|
'mds:group-data-[state="open"]:rotate-180'
|
|
27
27
|
)
|
|
28
28
|
}
|
|
29
|
-
)
|
|
29
|
+
) })
|
|
30
30
|
]
|
|
31
31
|
}
|
|
32
32
|
)
|
|
33
33
|
);
|
|
34
|
-
|
|
34
|
+
p.displayName = "AccordionHeader";
|
|
35
35
|
export {
|
|
36
|
-
|
|
36
|
+
p as AccordionHeader
|
|
37
37
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),l=require("react"),a=require("./index-CpE6WAgy.cjs"),u=require("./utils-BJ1u234q.cjs");function d(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(s,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return s.default=e,Object.freeze(s)}const m=d(l),n=m.forwardRef(({className:e,asChild:s=!1,children:t,...r},i)=>{const o=s?a.Slot:"span";return c.jsx(o,{ref:i,"data-slot":"chip-slot",className:u.cn("mds:inline-flex mds:items-center mds:justify-center mds:shrink-0 mds:[&:first-child_svg]:text-primary mds:[&:last-child_svg]:text-secondary",e),...r,children:t})});n.displayName="ChipSlot";exports.ChipSlot=n;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import { S as
|
|
4
|
-
import { c as
|
|
5
|
-
const
|
|
6
|
-
({ className: s, asChild: t = !1, children:
|
|
7
|
-
t ?
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import * as i from "react";
|
|
3
|
+
import { S as a } from "./index-BtQfgaSF.js";
|
|
4
|
+
import { c as l } from "./utils-DH-0D-9U.js";
|
|
5
|
+
const p = i.forwardRef(
|
|
6
|
+
({ className: s, asChild: t = !1, children: m, ...o }, r) => /* @__PURE__ */ e(
|
|
7
|
+
t ? a : "span",
|
|
8
8
|
{
|
|
9
|
-
ref:
|
|
9
|
+
ref: r,
|
|
10
10
|
"data-slot": "chip-slot",
|
|
11
|
-
className:
|
|
12
|
-
"mds:inline-flex mds:items-center mds:justify-center mds:shrink-0 mds:[
|
|
11
|
+
className: l(
|
|
12
|
+
"mds:inline-flex mds:items-center mds:justify-center mds:shrink-0 mds:[&:first-child_svg]:text-primary mds:[&:last-child_svg]:text-secondary",
|
|
13
13
|
s
|
|
14
14
|
),
|
|
15
|
-
...
|
|
16
|
-
children:
|
|
15
|
+
...o,
|
|
16
|
+
children: m
|
|
17
17
|
}
|
|
18
18
|
)
|
|
19
19
|
);
|
|
20
|
-
|
|
20
|
+
p.displayName = "ChipSlot";
|
|
21
21
|
export {
|
|
22
|
-
|
|
22
|
+
p as ChipSlot
|
|
23
23
|
};
|
|
@@ -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]: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"}}),
|
|
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;
|
|
@@ -7,7 +7,7 @@ const d = r(
|
|
|
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
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]:border-1 mds:data-[selected=true]:border-border-interactive-primary-active",
|
|
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
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",
|
|
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",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),o=require("react"),u=require("./utils-BJ1u234q.cjs"),e=o.forwardRef(({className:t,shape:r="rounded",isError:d,isSuccess:s,...a},l)=>n.jsx("input",{ref:l,"data-slot":"input-field","data-error":d,"data-success":s,"data-shape":r,className:u.cn("mds:body-extrasmall-regular","mds:peer mds:flex-1 mds:border-none mds:outline-none mds:h-full mds:placeholder:text-tertiary mds:disabled:cursor-not-allowed",t),...a}));e.displayName="InputField";exports.InputField=e;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as l } from "react";
|
|
3
3
|
import { c as m } from "./utils-DH-0D-9U.js";
|
|
4
4
|
const n = l(
|
|
5
5
|
({
|
|
6
6
|
className: e,
|
|
7
|
-
shape:
|
|
8
|
-
isError:
|
|
9
|
-
isSuccess:
|
|
7
|
+
shape: r = "rounded",
|
|
8
|
+
isError: d,
|
|
9
|
+
isSuccess: a,
|
|
10
10
|
...s
|
|
11
|
-
}, t) => /* @__PURE__ */
|
|
11
|
+
}, t) => /* @__PURE__ */ o(
|
|
12
12
|
"input",
|
|
13
13
|
{
|
|
14
14
|
ref: t,
|
|
15
15
|
"data-slot": "input-field",
|
|
16
|
-
"data-error":
|
|
17
|
-
"data-success":
|
|
18
|
-
"data-shape":
|
|
16
|
+
"data-error": d,
|
|
17
|
+
"data-success": a,
|
|
18
|
+
"data-shape": r,
|
|
19
19
|
className: m(
|
|
20
|
-
"mds:body-extrasmall-
|
|
20
|
+
"mds:body-extrasmall-regular",
|
|
21
21
|
"mds:peer mds:flex-1 mds:border-none mds:outline-none mds:h-full mds:placeholder:text-tertiary mds:disabled:cursor-not-allowed",
|
|
22
22
|
e
|
|
23
23
|
),
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),g=require("react"),m=require("./mainstack-design-system450.cjs"),F=require("./mainstack-design-system451.cjs");require("./mainstack-design-system449.cjs");const e=require("./utils-BJ1u234q.cjs"),C=require("./mainstack-design-system605.cjs"),P=require("./mainstack-design-system398.cjs"),c=g.forwardRef(({placeholder:
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),g=require("react"),m=require("./mainstack-design-system450.cjs"),F=require("./mainstack-design-system451.cjs");require("./mainstack-design-system449.cjs");const e=require("./utils-BJ1u234q.cjs"),C=require("./mainstack-design-system605.cjs"),P=require("./mainstack-design-system398.cjs"),c=g.forwardRef(({placeholder:o="0.00",disabled:s,...l},u)=>{const{activeCountry:i,isDisabled:d,value:_,onValueChange:r}=C.usePriceFieldContext(),p=P.COUNTRIES_ISO2_CODE_TO_CURRENCY_CODE_MAP[i];return t.jsxs(m.InputRoot,{"data-slot":"price-field-digit-field",className:"mds:has-disabled:opacity-50",children:[t.jsx("p",{className:e.cn("mds:body-extrasmall-regular"),children:p??""}),t.jsx(F.InputField,{...l,disabled:s||d,placeholder:o,value:e.formatPriceDigit(e.sanitizePriceInputValue(_)),onChange:n=>{const a=e.getPriceDigitMetadataValueObject({value:n.target.value,activeCountry:i});r&&(n.target.value=a.digit,r(a))},ref:u})]})});c.displayName="PriceFieldDigitField";exports.PriceFieldDigitField=c;
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { forwardRef as
|
|
2
|
+
import { jsxs as u, jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as p } from "react";
|
|
4
4
|
import { InputRoot as f } from "./mainstack-design-system450.js";
|
|
5
5
|
import { InputField as g } from "./mainstack-design-system451.js";
|
|
6
6
|
import "./mainstack-design-system449.js";
|
|
7
|
-
import { c as C, d as _, l as
|
|
8
|
-
import { usePriceFieldContext as
|
|
9
|
-
import { COUNTRIES_ISO2_CODE_TO_CURRENCY_CODE_MAP as
|
|
10
|
-
const y =
|
|
11
|
-
({ placeholder: o = "0.00", disabled:
|
|
12
|
-
const { activeCountry:
|
|
13
|
-
return /* @__PURE__ */
|
|
7
|
+
import { c as C, d as _, l as v, b as D } from "./utils-DH-0D-9U.js";
|
|
8
|
+
import { usePriceFieldContext as P } from "./mainstack-design-system605.js";
|
|
9
|
+
import { COUNTRIES_ISO2_CODE_TO_CURRENCY_CODE_MAP as b } from "./mainstack-design-system398.js";
|
|
10
|
+
const y = p(
|
|
11
|
+
({ placeholder: o = "0.00", disabled: l, ...d }, s) => {
|
|
12
|
+
const { activeCountry: e, isDisabled: c, value: m, onValueChange: i } = P(), n = b[e];
|
|
13
|
+
return /* @__PURE__ */ u(
|
|
14
14
|
f,
|
|
15
15
|
{
|
|
16
16
|
"data-slot": "price-field-digit-field",
|
|
17
17
|
className: "mds:has-disabled:opacity-50",
|
|
18
18
|
children: [
|
|
19
|
-
/* @__PURE__ */ r("p", { className: C("mds:body-extrasmall-
|
|
19
|
+
/* @__PURE__ */ r("p", { className: C("mds:body-extrasmall-regular"), children: n ?? "" }),
|
|
20
20
|
/* @__PURE__ */ r(
|
|
21
21
|
g,
|
|
22
22
|
{
|
|
23
|
-
...
|
|
24
|
-
disabled:
|
|
23
|
+
...d,
|
|
24
|
+
disabled: l || c,
|
|
25
25
|
placeholder: o,
|
|
26
|
-
value: _(
|
|
26
|
+
value: _(D(m)),
|
|
27
27
|
onChange: (t) => {
|
|
28
|
-
const a =
|
|
28
|
+
const a = v({
|
|
29
29
|
value: t.target.value,
|
|
30
|
-
activeCountry:
|
|
30
|
+
activeCountry: e
|
|
31
31
|
});
|
|
32
|
-
|
|
32
|
+
i && (t.target.value = a.digit, i(a));
|
|
33
33
|
},
|
|
34
34
|
ref: s
|
|
35
35
|
}
|
|
@@ -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-BJ1u234q.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-
|
|
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-BJ1u234q.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;
|
|
@@ -8,12 +8,12 @@ const o = a(
|
|
|
8
8
|
{
|
|
9
9
|
"data-slot": "radio-item-indicator",
|
|
10
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-
|
|
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 ",
|
|
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-
|
|
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 " })
|
|
17
17
|
}
|
|
18
18
|
)
|
|
19
19
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),o=require("react"),i=require("./utils-BJ1u234q.cjs"),e=o.forwardRef(({className:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),o=require("react"),i=require("./utils-BJ1u234q.cjs"),e=o.forwardRef(({className:r,isError:a,isSuccess:t,...s},d)=>l.jsx("textarea",{ref:d,"data-slot":"textarea-field","data-error":a,"data-success":t,className:i.cn("mds:body-extrasmall-regular","mds:flex-1 mds:border-none mds:outline-none mds:h-full mds:placeholder:text-tertiary mds:disabled:cursor-not-allowed mds:resize-none mds:min-h-80 mds:min-w-full mds:max-w-full",r),...s}));e.displayName="TextareaField";exports.TextareaField=e;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
const
|
|
5
|
-
({ className: e, isError:
|
|
2
|
+
import { forwardRef as t } from "react";
|
|
3
|
+
import { c as l } from "./utils-DH-0D-9U.js";
|
|
4
|
+
const o = t(
|
|
5
|
+
({ className: e, isError: r, isSuccess: a, ...d }, s) => /* @__PURE__ */ m(
|
|
6
6
|
"textarea",
|
|
7
7
|
{
|
|
8
8
|
ref: s,
|
|
9
9
|
"data-slot": "textarea-field",
|
|
10
|
-
"data-error":
|
|
11
|
-
"data-success":
|
|
12
|
-
className:
|
|
13
|
-
"mds:body-extrasmall-
|
|
10
|
+
"data-error": r,
|
|
11
|
+
"data-success": a,
|
|
12
|
+
className: l(
|
|
13
|
+
"mds:body-extrasmall-regular",
|
|
14
14
|
"mds:flex-1 mds:border-none mds:outline-none mds:h-full mds:placeholder:text-tertiary mds:disabled:cursor-not-allowed mds:resize-none mds:min-h-80 mds:min-w-full mds:max-w-full",
|
|
15
15
|
e
|
|
16
16
|
),
|
|
@@ -18,7 +18,7 @@ const l = o(
|
|
|
18
18
|
}
|
|
19
19
|
)
|
|
20
20
|
);
|
|
21
|
-
|
|
21
|
+
o.displayName = "TextareaField";
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
o as TextareaField
|
|
24
24
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("./index-HSoR75mY.cjs"),
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("./index-HSoR75mY.cjs"),u=require("react"),c=require("./utils-BJ1u234q.cjs"),l=require("./mainstack-design-system401.cjs");require("./mainstack-design-system402.cjs");const a=require("./mainstack-design-system403.cjs");require("./mainstack-design-system404.cjs");require("./mainstack-design-system405.cjs");require("./mainstack-design-system366.cjs");const d=require("./mainstack-design-system108.cjs");require("./player-C6X6nrWe.cjs");const t=u.forwardRef(({children:o,className:n,...r},s)=>e.jsx(i.DialogClose,{"data-slot":"modal-close",className:c.cn(n),ref:s,asChild:!0,...r,children:o||e.jsx(a.ButtonRoot,{size:"sm",iconOnly:!0,rounded:"sm",variant:"secondary",className:"mds:min-w-36 mds:min-h-36",children:e.jsx(l.ButtonIcon,{children:e.jsx(d,{})})})}));t.displayName="ModalClose";exports.ModalClose=t;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as o } from "react/jsx-runtime";
|
|
3
|
-
import { b as
|
|
4
|
-
import { forwardRef as
|
|
3
|
+
import { b as s } from "./index-DDHQjaCF.js";
|
|
4
|
+
import { forwardRef as a } from "react";
|
|
5
5
|
import { c as e } from "./utils-DH-0D-9U.js";
|
|
6
6
|
import { ButtonIcon as l } from "./mainstack-design-system401.js";
|
|
7
7
|
import "./mainstack-design-system402.js";
|
|
@@ -9,11 +9,11 @@ import { ButtonRoot as n } from "./mainstack-design-system403.js";
|
|
|
9
9
|
import "./mainstack-design-system404.js";
|
|
10
10
|
import "./mainstack-design-system405.js";
|
|
11
11
|
import "./mainstack-design-system366.js";
|
|
12
|
-
import d from "./mainstack-design-
|
|
12
|
+
import d from "./mainstack-design-system108.js";
|
|
13
13
|
import "./player-DlPlWw5L.js";
|
|
14
|
-
const p =
|
|
14
|
+
const p = a(
|
|
15
15
|
({ children: r, className: m, ...t }, i) => /* @__PURE__ */ o(
|
|
16
|
-
|
|
16
|
+
s,
|
|
17
17
|
{
|
|
18
18
|
"data-slot": "modal-close",
|
|
19
19
|
className: e(m),
|
|
@@ -28,7 +28,7 @@ const p = s(
|
|
|
28
28
|
rounded: "sm",
|
|
29
29
|
variant: "secondary",
|
|
30
30
|
className: "mds:min-w-36 mds:min-h-36",
|
|
31
|
-
children: /* @__PURE__ */ o(l, { children: /* @__PURE__ */ o(d, {
|
|
31
|
+
children: /* @__PURE__ */ o(l, { children: /* @__PURE__ */ o(d, {}) })
|
|
32
32
|
}
|
|
33
33
|
)
|
|
34
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),p=require("./utils-BJ1u234q.cjs"),e=require("react"),w=require("./mainstack-design-system618.cjs"),a=({className:c,...u})=>{const[t,l]=e.useState(null),[d,r]=e.useState(!1),[m,f]=e.useState(!1),[b,v]=e.useState(!0),[S,T]=e.useState(!1);return e.useEffect(()=>{if(!t)return;let o;const s=()=>{r(!0),o&&clearTimeout(o),o=setTimeout(()=>r(!1),150);const{scrollTop:g,scrollHeight:h,clientHeight:L,scrollLeft:n,scrollWidth:R,clientWidth:x}=t;f(g+L>=h-1),v(n<=2),T(n+x>=R-2)};return t.addEventListener("scroll",s),window.addEventListener("resize",s),s(),()=>{t.removeEventListener("scroll",s),window.removeEventListener("resize",s),o&&clearTimeout(o)}},[t]),i.jsx(w.TableContext.Provider,{value:{isScrolling:d,atBottom:m,atLeft:b,atRight:S,setScrollContainer:l},children:i.jsx("div",{ref:l,className:p.cn("mds:w-full mds:[border-top:none] mds:[border-bottom:none] mds:mx-auto mds:relative",c),...u})})};a.displayName="TableRoot";exports.TableRoot=a;
|