@adam-milo/ui 1.0.147 β 1.0.149
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/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +1 -1
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +1 -1
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +1 -2
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +2 -1
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +1 -1
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +1 -1
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +1 -1
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +1 -9
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +9 -13
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +13 -1
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +1 -1
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +1 -1
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +1 -1
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +1 -1
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +1 -1
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +1 -10
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +10 -16
- package/dist/index115.cjs +1 -1
- package/dist/index115.js +16 -3
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +3 -1
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +1 -1
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +1 -1
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +1 -1
- package/dist/index12.cjs +1 -1
- package/dist/index12.js +1 -1
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +1 -1
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +1 -1
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +1 -1
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +1 -1
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +1 -1
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +1 -1
- package/dist/index126.cjs +1 -1
- package/dist/index126.js +1 -1
- package/dist/index127.cjs +1 -1
- package/dist/index127.js +1 -1
- package/dist/index128.cjs +1 -1
- package/dist/index128.js +1 -1
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +1 -1
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +4 -4
- package/dist/index130.cjs +1 -1
- package/dist/index130.js +1 -1
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +1 -1
- package/dist/index132.cjs +1 -1
- package/dist/index132.js +1 -1
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +1 -1
- package/dist/index134.cjs +1 -1
- package/dist/index134.js +1 -1
- package/dist/index135.cjs +1 -1
- package/dist/index135.js +1 -1
- package/dist/index136.cjs +1 -1
- package/dist/index136.js +1 -1
- package/dist/index137.cjs +1 -1
- package/dist/index137.js +1 -1
- package/dist/index138.cjs +1 -1
- package/dist/index138.js +1 -1
- package/dist/index139.cjs +1 -1
- package/dist/index139.js +1 -1
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +1 -9
- package/dist/index140.cjs +1 -1
- package/dist/index140.js +1 -1
- package/dist/index141.cjs +1 -1
- package/dist/index141.js +1 -1
- package/dist/index142.cjs +1 -1
- package/dist/index142.js +1 -1
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +1 -1
- package/dist/index144.cjs +1 -1
- package/dist/index144.js +1 -1
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +1 -1
- package/dist/index146.cjs +1 -1
- package/dist/index146.js +1 -1
- package/dist/index147.cjs +1 -1
- package/dist/index147.js +1 -1
- package/dist/index148.cjs +1 -0
- package/dist/index148.js +1 -0
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +9 -16
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +16 -2
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +2 -5
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +5 -8
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +8 -3
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +3 -6
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +6 -2
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +2 -2
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +2 -2
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +2 -2
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +2 -2
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +2 -2
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +2 -2
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +2 -2
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +2 -2
- package/dist/index3.cjs +1 -1
- package/dist/index3.js +1 -1
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +2 -2
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +2 -2
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +2 -4
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +4 -2
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +2 -2
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +2 -4
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +4 -8
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +8 -2
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +2 -4
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +4 -8
- package/dist/index4.cjs +1 -1
- package/dist/index4.js +1 -1
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +8 -8
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +8 -11
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +11 -9
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +9 -7
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +7 -3
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +3 -8
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +8 -2
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +2 -5
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +5 -2
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +2 -2
- package/dist/index5.cjs +1 -1
- package/dist/index5.js +1 -1
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +2 -3
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +3 -3
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +3 -24
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +24 -10
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +10 -13
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +13 -38
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +38 -10
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +10 -1
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +1 -9
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +9 -2
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +1 -1
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +2 -2
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +2 -2
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +2 -4
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +4 -2
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +2 -3
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +3 -2
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +2 -2
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +2 -2
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +2 -2
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +2 -10
- package/dist/index7.cjs +1 -1
- package/dist/index7.js +1 -1
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +10 -11
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +11 -1
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +1 -1
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +1 -1
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +1 -1
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +1 -1
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +1 -1
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +1 -1
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +1 -1
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +1 -9
- package/dist/index8.cjs +1 -1
- package/dist/index8.js +1 -1
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +9 -1
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +1 -1
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +1 -1
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +1 -1
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +1 -2
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +2 -1
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +1 -1
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +1 -1
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +1 -1
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +1 -1
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +1 -1
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +1 -7
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +7 -1
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +1 -1
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +1 -1
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +1 -1
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +1 -1
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +1 -1
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +1 -1
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +1 -1
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +1 -1
- package/dist/src/components/data-display/bar-chart/BarChart.styles.d.ts +1 -1
- package/dist/src/components/data-display/bar-chart/BarChart.styles.d.ts.map +1 -1
- package/dist/src/components/feedback/toast/Toast.styles.d.ts +2 -2
- package/dist/src/components/feedback/toast/Toast.styles.d.ts.map +1 -1
- package/dist/src/components/forms/radio/Radio.component.d.ts.map +1 -1
- package/dist/src/components/forms/radio/Radio.constants.d.ts +6 -0
- package/dist/src/components/forms/radio/Radio.constants.d.ts.map +1 -0
- package/dist/src/components/forms/radio/Radio.styles.d.ts +4 -0
- package/dist/src/components/forms/radio/Radio.styles.d.ts.map +1 -1
- package/dist/src/components/forms/radio/Radio.types.d.ts +3 -0
- package/dist/src/components/forms/radio/Radio.types.d.ts.map +1 -1
- package/dist/src/components/overlays/dialog/Dialog.component.d.ts.map +1 -1
- package/dist/src/components/overlays/dialog/Dialog.styles.d.ts +1 -0
- package/dist/src/components/overlays/dialog/Dialog.styles.d.ts.map +1 -1
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -2
package/dist/index134.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=["0","1","2","3","4","5","6","7","8","10","12","14"],t=t=>Object.fromEntries(e.map(e=>[e,`${t}-${e}`])),s=t=>Object.fromEntries(e.map(e=>[e,`${t}-${e}`])),i={m:t("m"),mt:t("mt"),mb:t("mb"),ms:t("ms"),me:t("me")},r={p:s("p"),pt:s("pt"),pb:s("pb"),ps:s("ps"),pe:s("pe")};exports.alignStyles={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},exports.directionStyles={horizontal:"flex-row",vertical:"flex-col"},exports.heightPresetStyles={full:"h-full",screen:"h-screen",auto:"h-auto",fit:"h-fit"},exports.isSizePreset=function(e){return void 0!==e&&["full","screen","auto","fit","min","max"].includes(e)},exports.isSpacingToken=function(t){return void 0!==t&&e.includes(t)},exports.justifyStyles={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around"},exports.marginStyles=i,exports.maxHeightPresetStyles={full:"max-h-full",screen:"max-h-screen",auto:"max-h-auto",fit:"max-h-fit",max:"max-h-full"},exports.maxWidthPresetStyles={full:"max-w-full",screen:"max-w-screen",auto:"max-w-auto",fit:"max-w-fit",max:"max-w-full"},exports.minHeightPresetStyles={full:"min-h-full",screen:"min-h-screen",auto:"min-h-auto",fit:"min-h-fit",min:"min-h-0"},exports.minWidthPresetStyles={full:"min-w-full",screen:"min-w-screen",auto:"min-w-auto",fit:"min-w-fit",min:"min-w-0"},exports.paddingStyles=r,exports.spacingStyles={0:"gap-0",1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",7:"gap-7",8:"gap-8",10:"gap-10",12:"gap-12",14:"gap-14"},exports.widthPresetStyles={full:"w-full",screen:"w-screen",auto:"w-auto",fit:"w-fit"};
|
package/dist/index134.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const t={horizontal:"flex-row",vertical:"flex-col"},e=["0","1","2","3","4","5","6","7","8","10","12","14"],n={0:"gap-0",1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",7:"gap-7",8:"gap-8",10:"gap-10",12:"gap-12",14:"gap-14"},a=t=>Object.fromEntries(e.map(e=>[e,`${t}-${e}`])),i=t=>Object.fromEntries(e.map(e=>[e,`${t}-${e}`])),m={m:a("m"),mt:a("mt"),mb:a("mb"),ms:a("ms"),me:a("me")},u={p:i("p"),pt:i("pt"),pb:i("pb"),ps:i("ps"),pe:i("pe")},f={full:"w-full",screen:"w-screen",auto:"w-auto",fit:"w-fit"},l={full:"min-w-full",screen:"min-w-screen",auto:"min-w-auto",fit:"min-w-fit",min:"min-w-0"},r={full:"max-w-full",screen:"max-w-screen",auto:"max-w-auto",fit:"max-w-fit",max:"max-w-full"},s={full:"h-full",screen:"h-screen",auto:"h-auto",fit:"h-fit"},c={full:"min-h-full",screen:"min-h-screen",auto:"min-h-auto",fit:"min-h-fit",min:"min-h-0"},o={full:"max-h-full",screen:"max-h-screen",auto:"max-h-auto",fit:"max-h-fit",max:"max-h-full"},p={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},h={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around"};function w(t){return void 0!==t&&e.includes(t)}function x(t){return void 0!==t&&["full","screen","auto","fit","min","max"].includes(t)}export{p as alignStyles,t as directionStyles,s as heightPresetStyles,x as isSizePreset,w as isSpacingToken,h as justifyStyles,m as marginStyles,o as maxHeightPresetStyles,r as maxWidthPresetStyles,c as minHeightPresetStyles,l as minWidthPresetStyles,u as paddingStyles,n as spacingStyles,f as widthPresetStyles};
|
package/dist/index135.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.maxWidthMap={sm:"max-w-[40rem]",md:"max-w-[48rem]",lg:"max-w-[64rem]",xl:"max-w-[80rem]",full:"max-w-full"},exports.paddingMap={none:"px-0",sm:"px-4 md:px-6",md:"px-6 md:px-8",lg:"px-8 md:px-12",xl:"px-12 md:px-16 lg:px-20"};
|
package/dist/index135.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const x={sm:"max-w-[40rem]",md:"max-w-[48rem]",lg:"max-w-[64rem]",xl:"max-w-[80rem]",full:"max-w-full"},m={none:"px-0",sm:"px-4 md:px-6",md:"px-6 md:px-8",lg:"px-8 md:px-12",xl:"px-12 md:px-16 lg:px-20"};export{x as maxWidthMap,m as paddingMap};
|
package/dist/index136.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.baseStyles="bg-[var(--color-border)] shrink-0",exports.orientationStyles={horizontal:"h-px w-full",vertical:"w-px h-full"},exports.spacingHorizontalMap={0:"my-0",1:"my-1",2:"my-2",3:"my-3",4:"my-4",5:"my-5",6:"my-6",8:"my-8",10:"my-10",12:"my-12"},exports.spacingVerticalMap={0:"mx-0",1:"mx-1",2:"mx-2",3:"mx-3",4:"mx-4",5:"mx-5",6:"mx-6",8:"mx-8",10:"mx-10",12:"mx-12"};
|
package/dist/index136.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const m="bg-[var(--color-border)] shrink-0",x={horizontal:"h-px w-full",vertical:"w-px h-full"},y={0:"my-0",1:"my-1",2:"my-2",3:"my-3",4:"my-4",5:"my-5",6:"my-6",8:"my-8",10:"my-10",12:"my-12"},r={0:"mx-0",1:"mx-1",2:"mx-2",3:"mx-3",4:"mx-4",5:"mx-5",6:"mx-6",8:"mx-8",10:"mx-10",12:"mx-12"};export{m as baseStyles,x as orientationStyles,y as spacingHorizontalMap,r as spacingVerticalMap};
|
package/dist/index137.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=["z-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="relative w-full flex flex-col",r="bg-[var(--color-bg)]",t=[e,"min-h-[100dvh]",r].join(" "),o=[e,"h-[100dvh] overflow-hidden",r].join(" "),a=["fixed inset-0 z-0 pointer-events-none","bg-[var(--color-bg-auth)]","max-lg:[background-image:var(--gradient-auth-bg-mobile)]","lg:[background-image:var(--gradient-auth-bg)]"].join(" "),n=["max-sm:flex-1 max-sm:justify-center max-sm:min-w-0","max-sm:[&>*]:shrink-0","max-lg:flex-1 max-lg:justify-center max-lg:min-w-0 max-lg:[&>*]:shrink-0"].join(" "),s=["sticky top-0 z-20 shrink-0 flex flex-row items-center lg:justify-between bg-transparent border-0 border-none","backdrop-blur-[8px] [-webkit-backdrop-filter:blur(8px)]","h-[5.3125rem] px-8","max-sm:h-auto max-sm:min-h-[3.125rem] max-sm:py-5 max-sm:px-4 max-sm:gap-0 max-sm:justify-center"].join(" "),l=["flex items-center shrink-0 min-w-0 border-0 border-none","h-8 max-w-[11.875rem] max-lg:h-7 max-lg:max-w-[10rem] max-md:h-7 max-md:max-w-[9.875rem]","[&_img]:h-full [&_img]:w-auto [&_img]:max-w-full [&_img]:object-contain [&_svg]:h-full [&_svg]:w-auto [&_svg]:max-w-full [&_svg]:object-contain"].join(" "),i=["cursor-pointer bg-transparent p-0 inline-flex","auth-logo-focus"].join(" "),m=["flex items-center shrink-0 border-0 border-none","gap-[var(--spacing-3)]","lg:w-[11.875rem] lg:justify-end","motion-reduce:[&_button]:!transition-none"].join(" ");exports.backgroundStyles=a,exports.headerBaseStyles=s,exports.headerDesktopLayoutAlwaysStyles="max-sm:justify-between max-lg:justify-between",exports.headerMobileLogoCenterStyles="max-lg:justify-center",exports.headerWithNavStyles="!border-b !border-[color-mix(in_srgb,var(--color-teal)_19%,transparent)] !border-solid",exports.logoButtonStyles=i,exports.logoWrapperBaseStyles=l,exports.logoWrapperMobileCenterStyles=n,exports.menuWrapperStyles=m,exports.navWrapperStyles="flex items-center max-lg:hidden",exports.rootAutoStyles=t,exports.rootContainedStyles=o;
|
package/dist/index137.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const e="relative w-full flex flex-col",r="bg-[var(--color-bg)]",n=[e,"min-h-[100dvh]",r].join(" "),m=[e,"h-[100dvh] overflow-hidden",r].join(" "),a=["fixed inset-0 z-0 pointer-events-none","bg-[var(--color-bg-auth)]","max-lg:[background-image:var(--gradient-auth-bg-mobile)]","lg:[background-image:var(--gradient-auth-bg)]"].join(" "),i="max-lg:justify-center",o="max-sm:justify-between max-lg:justify-between",t=["max-sm:flex-1 max-sm:justify-center max-sm:min-w-0","max-sm:[&>*]:shrink-0","max-lg:flex-1 max-lg:justify-center max-lg:min-w-0 max-lg:[&>*]:shrink-0"].join(" "),l=["sticky top-0 z-20 shrink-0 flex flex-row items-center lg:justify-between bg-transparent border-0 border-none","backdrop-blur-[8px] [-webkit-backdrop-filter:blur(8px)]","h-[5.3125rem] px-8","max-sm:h-auto max-sm:min-h-[3.125rem] max-sm:py-5 max-sm:px-4 max-sm:gap-0 max-sm:justify-center"].join(" "),s=["flex items-center shrink-0 min-w-0 border-0 border-none","h-8 max-w-[11.875rem] max-lg:h-7 max-lg:max-w-[10rem] max-md:h-7 max-md:max-w-[9.875rem]","[&_img]:h-full [&_img]:w-auto [&_img]:max-w-full [&_img]:object-contain [&_svg]:h-full [&_svg]:w-auto [&_svg]:max-w-full [&_svg]:object-contain"].join(" "),x=["cursor-pointer bg-transparent p-0 inline-flex","auth-logo-focus"].join(" "),g=["flex items-center shrink-0 border-0 border-none","gap-[var(--spacing-3)]","lg:w-[11.875rem] lg:justify-end","motion-reduce:[&_button]:!transition-none"].join(" "),b="!border-b !border-[color-mix(in_srgb,var(--color-teal)_19%,transparent)] !border-solid",u="flex items-center max-lg:hidden";export{a as backgroundStyles,l as headerBaseStyles,o as headerDesktopLayoutAlwaysStyles,i as headerMobileLogoCenterStyles,b as headerWithNavStyles,x as logoButtonStyles,s as logoWrapperBaseStyles,t as logoWrapperMobileCenterStyles,g as menuWrapperStyles,u as navWrapperStyles,n as rootAutoStyles,m as rootContainedStyles};
|
package/dist/index138.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=["z-10 w-full flex-1 min-h-0 flex flex-col overflow-y-auto overflow-x-hidden","[-webkit-overflow-scrolling:touch]"].join(" ");exports.mainContentBaseStyles=e;
|
package/dist/index138.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const o=["z-10 w-full flex-1 min-h-0 flex flex-col overflow-y-auto overflow-x-hidden","[-webkit-overflow-scrolling:touch]"].join(" ");export{o as mainContentBaseStyles};
|
package/dist/index139.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.alignMap={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},exports.columnGapMap={0:"gap-x-0",1:"gap-x-1",2:"gap-x-2",3:"gap-x-3",4:"gap-x-4",5:"gap-x-5",6:"gap-x-6",8:"gap-x-8",10:"gap-x-10",12:"gap-x-12"},exports.gapMap={0:"gap-0",1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",8:"gap-8",10:"gap-10",12:"gap-12"},exports.gridColumnsMap={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12",auto:"grid-cols-[repeat(auto-fit,minmax(var(--grid-auto-fit-min,15rem),1fr))]"},exports.gridRowsMap={1:"grid-rows-1",2:"grid-rows-2",3:"grid-rows-3",4:"grid-rows-4",5:"grid-rows-5",6:"grid-rows-6",7:"grid-rows-7",8:"grid-rows-8",9:"grid-rows-9",10:"grid-rows-10",11:"grid-rows-11",12:"grid-rows-12",auto:"auto-rows-auto"},exports.justifyMap={start:"justify-items-start",center:"justify-items-center",end:"justify-items-end",stretch:"justify-items-stretch"},exports.rowGapMap={0:"gap-y-0",1:"gap-y-1",2:"gap-y-2",3:"gap-y-3",4:"gap-y-4",5:"gap-y-5",6:"gap-y-6",8:"gap-y-8",10:"gap-y-10",12:"gap-y-12"};
|
package/dist/index139.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const g={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12",auto:"grid-cols-[repeat(auto-fit,minmax(var(--grid-auto-fit-min,15rem),1fr))]"},r={1:"grid-rows-1",2:"grid-rows-2",3:"grid-rows-3",4:"grid-rows-4",5:"grid-rows-5",6:"grid-rows-6",7:"grid-rows-7",8:"grid-rows-8",9:"grid-rows-9",10:"grid-rows-10",11:"grid-rows-11",12:"grid-rows-12",auto:"auto-rows-auto"},s={0:"gap-0",1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",8:"gap-8",10:"gap-10",12:"gap-12"},a={0:"gap-y-0",1:"gap-y-1",2:"gap-y-2",3:"gap-y-3",4:"gap-y-4",5:"gap-y-5",6:"gap-y-6",8:"gap-y-8",10:"gap-y-10",12:"gap-y-12"},t={0:"gap-x-0",1:"gap-x-1",2:"gap-x-2",3:"gap-x-3",4:"gap-x-4",5:"gap-x-5",6:"gap-x-6",8:"gap-x-8",10:"gap-x-10",12:"gap-x-12"},i={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},o={start:"justify-items-start",center:"justify-items-center",end:"justify-items-end",stretch:"justify-items-stretch"};export{i as alignMap,t as columnGapMap,s as gapMap,g as gridColumnsMap,r as gridRowsMap,o as justifyMap,a as rowGapMap};
|
package/dist/index14.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.RADIO_ACCENT={DEFAULT:"default",SYSTEM:"system"};
|
package/dist/index14.js
CHANGED
|
@@ -1,9 +1 @@
|
|
|
1
|
-
|
|
2
|
-
return a("div",{className:d(x,v&&g),"data-cy":`${M}-wrapper`,"data-testid":`${O}-wrapper`,children:[i&&/* @__PURE__ */e("label",{id:B,htmlFor:W,className:d(u,c&&y,I&&N),"data-cy":`${M}-label`,"data-testid":`${O}-label`,children:P}),
|
|
3
|
-
/* @__PURE__ */a(s.Trigger,{ref:V,id:W,className:d(b,c&&f,!w&&$,t),"aria-invalid":c?"true":"false","aria-describedby":c?F:n?G:void 0,"aria-labelledby":i?B:void 0,"aria-required":T?"true":void 0,"data-cy":M,"data-testid":O,disabled:I,...C,children:[
|
|
4
|
-
/* @__PURE__ */e("span",{className:o,children:w?l:/* @__PURE__ */e("span",{"data-cy":`${M}-placeholder`,"data-testid":`${O}-placeholder`,children:S||i})}),
|
|
5
|
-
/* @__PURE__ */e(s.Icon,{className:m,"data-cy":`${M}-icon`,"data-testid":`${O}-icon`,children:/* @__PURE__ */e("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:/* @__PURE__ */e("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),c&&/* @__PURE__ */e("span",{id:F,className:p,role:"alert","data-cy":`${M}-error`,"data-testid":`${O}-error`,children:c}),n&&!c&&/* @__PURE__ */e("span",{id:G,className:h,"data-cy":`${M}-helper`,"data-testid":`${O}-helper`,children:n})]})});k.displayName="SelectTrigger";const I=s.Value,T=t(({className:a,children:t,position:r="popper","data-cy":l,"data-testid":c,...n},o)=>{const m=l||"select-content",p=c||"select-content";/* @__PURE__ */
|
|
6
|
-
return e(s.Portal,{children:/* @__PURE__ */e(s.Content,{ref:o,className:d(v,a),position:r,sideOffset:0,"data-cy":m,"data-testid":p,...n,children:/* @__PURE__ */e(s.Viewport,{className:i,children:t})})})});T.displayName="SelectContent";const C=t(({className:t,children:r,value:i,flag:o,icon:m,"data-cy":p,"data-testid":h,...N},y)=>{const u=p||`select-item-${i}`,$=h||`select-item-${i}`;/* @__PURE__ */
|
|
7
|
-
return e(s.Item,{ref:y,className:d(w,t),value:i,"data-cy":u,"data-testid":$,...N,children:/* @__PURE__ */e(s.ItemText,{children:/* @__PURE__ */a("span",{className:"inline-flex items-center gap-3",children:[m&&/* @__PURE__ */e("span",{className:c,"aria-hidden":"true","data-cy":`${u}-icon`,"data-testid":`${$}-icon`,children:m}),o&&/* @__PURE__ */e(l,{flag:o,className:n}),r]})})})});C.displayName="SelectItem";const V=s.Group,q=t(({className:a,"data-cy":t,"data-testid":r,...l},i)=>{const c=t||"select-label",n=r||"select-label";/* @__PURE__ */
|
|
8
|
-
return e(s.Label,{ref:i,className:d(S,a),"data-cy":c,"data-testid":n,...l})});q.displayName="SelectLabel";const W=t(({className:a,"data-cy":t,"data-testid":r,...l},i)=>{const c=t||"select-separator",n=r||"select-separator";/* @__PURE__ */
|
|
9
|
-
return e(s.Separator,{ref:i,className:d(L,a),"data-cy":c,"data-testid":n,...l})});W.displayName="SelectSeparator";export{j as Select,T as SelectContent,V as SelectGroup,C as SelectItem,q as SelectLabel,W as SelectSeparator,k as SelectTrigger,I as SelectValue};
|
|
1
|
+
const t={DEFAULT:"default",SYSTEM:"system"};export{t as RADIO_ACCENT};
|
package/dist/index140.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.alignStyles={start:"text-start",center:"text-center",end:"text-end"
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.alignStyles={start:"text-start",center:"text-center",end:"text-end"},exports.colorStyles={text:"text-[var(--color-text)]",action:"text-[var(--color-action)]",clickable:"text-[var(--color-clickable)]",popup:"text-[var(--color-popup)]",error:"text-[var(--color-error)]",secondary:"text-[var(--color-secondary)]","system-text":"text-[var(--color-system-text)]","grey-07":"text-[var(--color-grey-07)]"},exports.rootStyles="m-0 leading-normal",exports.sizeStyles={xs:"text-12 leading-16",sm:"text-14 leading-20",md:"text-16 leading-24",lg:"text-18 leading-28",xl:"text-20 leading-28"},exports.weightStyles={regular:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"};
|
package/dist/index140.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const t={
|
|
1
|
+
const t={xs:"text-12 leading-16",sm:"text-14 leading-20",md:"text-16 leading-24",lg:"text-18 leading-28",xl:"text-20 leading-28"},e={regular:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"},o={text:"text-[var(--color-text)]",action:"text-[var(--color-action)]",clickable:"text-[var(--color-clickable)]",popup:"text-[var(--color-popup)]",error:"text-[var(--color-error)]",secondary:"text-[var(--color-secondary)]","system-text":"text-[var(--color-system-text)]","grey-07":"text-[var(--color-grey-07)]"},r={start:"text-start",center:"text-center",end:"text-end"},l="m-0 leading-normal";export{r as alignStyles,o as colorStyles,l as rootStyles,t as sizeStyles,e as weightStyles};
|
package/dist/index141.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.alignStyles={start:"text-start",center:"text-center",end:"text-end",responsive:"text-center md:text-start"},exports.colorStyles={text:"text-[var(--color-text)]",action:"text-[var(--color-action)]",clickable:"text-[var(--color-clickable)]",popup:"text-[var(--color-popup)]",error:"text-[var(--color-error)]",secondary:"text-[var(--color-secondary)]","system-text":"text-[var(--color-system-text)]","grey-07":"text-[var(--color-grey-07)]"},exports.levelToSizeMap={1:"2xl",2:"xl",3:"lg",4:"md",5:"sm",6:"xs"},exports.rootStyles="m-0 leading-tight",exports.sizeStyles={xs:"text-12 leading-16",sm:"text-14 leading-20",md:"text-16 leading-24",lg:"text-18 leading-28",xl:"text-20 leading-28","2xl":"text-24 leading-32","3xl":"text-38 leading-normal"},exports.weightStyles={medium:"font-medium",semibold:"font-semibold",bold:"font-bold",black:"font-black"};
|
package/dist/index141.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const t={1:"2xl",2:"xl",3:"lg",4:"md",5:"sm",6:"xs"},e={xs:"text-12 leading-16",sm:"text-14 leading-20",md:"text-16 leading-24",lg:"text-18 leading-28",xl:"text-20 leading-28","2xl":"text-24 leading-32","3xl":"text-38 leading-normal"},o={medium:"font-medium",semibold:"font-semibold",bold:"font-bold",black:"font-black"},r={text:"text-[var(--color-text)]",action:"text-[var(--color-action)]",clickable:"text-[var(--color-clickable)]",popup:"text-[var(--color-popup)]",error:"text-[var(--color-error)]",secondary:"text-[var(--color-secondary)]","system-text":"text-[var(--color-system-text)]","grey-07":"text-[var(--color-grey-07)]"},l={start:"text-start",center:"text-center",end:"text-end",responsive:"text-center md:text-start"},x="m-0 leading-tight";export{l as alignStyles,r as colorStyles,t as levelToSizeMap,x as rootStyles,e as sizeStyles,o as weightStyles};
|
package/dist/index142.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=["bg-transparent border-none p-0 m-0 font-[inherit] no-underline cursor-pointer transition-[color_150ms_ease-in-out,opacity_150ms_ease-in-out]","focus-visible:outline-2 focus-visible:outline-[var(--color-clickable)] focus-visible:outline-offset-2 focus-visible:rounded-sm","hover:opacity-80 active:opacity-60"].join(" ");exports.colorClasses={action:"text-[var(--color-action)]",clickable:"text-[var(--color-clickable)]",orange:"text-[var(--color-button-orange)]",text:"text-[var(--color-text)]","system-text":"text-[var(--color-system-text)]"},exports.disabledStyles="opacity-40 cursor-not-allowed pointer-events-none",exports.rootStyles=e,exports.sizeClasses={sm:"text-12 leading-[1.4]",md:"text-16 leading-[1.5]",lg:"text-20 leading-[1.4]"},exports.underlineStyles="underline underline-offset-2",exports.weightClasses={regular:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"};
|
package/dist/index142.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const e={action:"text-[var(--color-action)]",clickable:"text-[var(--color-clickable)]",orange:"text-[var(--color-button-orange)]",text:"text-[var(--color-text)]","system-text":"text-[var(--color-system-text)]"},o={sm:"text-12 leading-[1.4]",md:"text-16 leading-[1.5]",lg:"text-20 leading-[1.4]"},t={regular:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"},n=["bg-transparent border-none p-0 m-0 font-[inherit] no-underline cursor-pointer transition-[color_150ms_ease-in-out,opacity_150ms_ease-in-out]","focus-visible:outline-2 focus-visible:outline-[var(--color-clickable)] focus-visible:outline-offset-2 focus-visible:rounded-sm","hover:opacity-80 active:opacity-60"].join(" "),i="underline underline-offset-2",r="opacity-40 cursor-not-allowed pointer-events-none";export{e as colorClasses,r as disabledStyles,n as rootStyles,o as sizeClasses,i as underlineStyles,t as weightClasses};
|
package/dist/index143.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.colorStyles={action:"text-[var(--color-action)]",orange:"text-[var(--color-button-orange)]",white:"text-[var(--color-card)]",text:"text-[var(--color-text)]",teal:"text-[var(--color-dialog-icon-teal)]",gray:"text-[var(--color-system-text)]"},exports.rootStyles="inline-flex items-center justify-center",exports.sizeStyles={sm:"w-4 h-4",md:"w-6 h-6",lg:"w-8 h-8",xl:"w-12 h-12",verify:"w-[7.875rem] h-[7.875rem] shrink-0 aspect-square"},exports.svgStyles="animate-spin w-full h-full";
|
package/dist/index143.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const t={sm:"w-4 h-4",md:"w-6 h-6",lg:"w-8 h-8",xl:"w-12 h-12",verify:"w-[7.875rem] h-[7.875rem] shrink-0 aspect-square"},e={action:"text-[var(--color-action)]",orange:"text-[var(--color-button-orange)]",white:"text-[var(--color-card)]",text:"text-[var(--color-text)]",teal:"text-[var(--color-dialog-icon-teal)]",gray:"text-[var(--color-system-text)]"},r="inline-flex items-center justify-center",o="animate-spin w-full h-full";export{e as colorStyles,r as rootStyles,t as sizeStyles,o as svgStyles};
|
package/dist/index144.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.containerStyles={sm:"w-[3.875rem] h-[3.875rem]",md:"w-[7.688rem] h-[8.125rem]",lg:"w-[12.375rem] h-[13rem]"},exports.rootStyles="inline-flex items-center justify-center relative";
|
package/dist/index144.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const e={sm:"w-[3.875rem] h-[3.875rem]",md:"w-[7.688rem] h-[8.125rem]",lg:"w-[12.375rem] h-[13rem]"},r="inline-flex items-center justify-center relative";export{e as containerStyles,r as rootStyles};
|
package/dist/index145.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.FONT_SIZE_SCALE=["12","14","15","16","17","18","20","22","24","28","30","32","36","38","40","48","52","64"],exports.LINE_HEIGHT_SCALE=["11","12","13","14","15","16","17","18","19","20","21","22","24","26","28","32"];
|
package/dist/index145.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const o=["12","14","15","16","17","18","20","22","24","28","30","32","36","38","40","48","52","64"],t=["11","12","13","14","15","16","17","18","19","20","21","22","24","26","28","32"];export{o as FONT_SIZE_SCALE,t as LINE_HEIGHT_SCALE};
|
package/dist/index146.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=["p-0.5 m-0 border-none bg-transparent","flex items-center justify-center flex-shrink-0","text-[var(--color-icon-secondary)] cursor-pointer rounded","transition-colors duration-150","hover:text-[var(--color-system-text)]","focus:outline-2 focus:outline-[var(--color-clickable)] focus:outline-offset-1","focus:not(:focus-visible):outline-none"].join(" "),o=["z-[100] max-w-[var(--max-width-xs)] px-3 py-2","bg-[var(--color-text)] rounded-md shadow-[0_0.25rem_0.75rem_var(--shadow-color-lg)]","text-12 font-normal leading-relaxed text-[var(--color-card)]","animate-in fade-in-0 zoom-in-95"].join(" "),t=["flex items-center self-stretch w-full","h-[var(--input-height)] p-[0.875rem]","text-16 leading-none text-[var(--color-text)]","bg-[var(--color-card)] border border-[var(--color-border)] rounded-[var(--radius-md)]","transition-[border-color,box-shadow] duration-200 ease-in-out","cursor-text","placeholder:text-[var(--color-icon-secondary)]","focus:outline-none focus:border-[var(--color-button-blue)]","hover:enabled:border-[var(--color-button-blue)]","disabled:cursor-not-allowed disabled:opacity-50 disabled:pointer-events-none","disabled:[-webkit-text-fill-color:var(--color-text)]"].join(" "),r=["absolute top-1/2 start-3 -translate-y-1/2","flex items-center justify-center","text-[var(--color-icon-secondary)] pointer-events-none"].join(" "),l=["absolute top-1/2 end-3.5 -translate-y-1/2","flex items-center justify-center w-8 h-8 p-0","bg-transparent border-none text-[var(--color-icon-secondary)] cursor-pointer","transition-colors duration-200","hover:text-[var(--color-system-text)]","focus:outline-2 focus:outline-[var(--color-clickable)] focus:outline-offset-2 focus:rounded-sm","focus:not(:focus-visible):outline-none","active:-translate-y-1/2 active:scale-95"].join(" ");exports.errorStyles="text-12 font-normal leading-none text-[var(--color-error)]",exports.fieldContainerStyles="relative flex items-center w-full",exports.helperStyles="text-12 leading-none text-[var(--color-grey-07)]",exports.inputBaseStyles=t,exports.inputErrorStyles="border-[var(--color-error)] focus:border-[var(--color-error)] hover:enabled:border-[var(--color-error)]",exports.inputWithLeftIconStyles="ps-10",exports.inputWithToggleStyles="pe-12",exports.labelRowStyles="flex items-center justify-between h-4 w-full",exports.labelStyles="text-16 font-normal text-[var(--color-grey-07)] leading-none",exports.leftIconStyles=r,exports.toggleStyles=l,exports.tooltipContentStyles=o,exports.tooltipTriggerStyles=e,exports.wrapperStyles="flex flex-col justify-center items-start gap-2 w-full";
|
package/dist/index146.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=(
|
|
1
|
+
const e="flex flex-col justify-center items-start gap-2 w-full",o="flex items-center justify-between h-4 w-full",r="text-16 font-normal text-[var(--color-grey-07)] leading-none",t=["p-0.5 m-0 border-none bg-transparent","flex items-center justify-center flex-shrink-0","text-[var(--color-icon-secondary)] cursor-pointer rounded","transition-colors duration-150","hover:text-[var(--color-system-text)]","focus:outline-2 focus:outline-[var(--color-clickable)] focus:outline-offset-1","focus:not(:focus-visible):outline-none"].join(" "),n=["z-[100] max-w-[var(--max-width-xs)] px-3 py-2","bg-[var(--color-text)] rounded-md shadow-[0_0.25rem_0.75rem_var(--shadow-color-lg)]","text-12 font-normal leading-relaxed text-[var(--color-card)]","animate-in fade-in-0 zoom-in-95"].join(" "),l="relative flex items-center w-full",a=["flex items-center self-stretch w-full","h-[var(--input-height)] p-[0.875rem]","text-16 leading-none text-[var(--color-text)]","bg-[var(--color-card)] border border-[var(--color-border)] rounded-[var(--radius-md)]","transition-[border-color,box-shadow] duration-200 ease-in-out","cursor-text","placeholder:text-[var(--color-icon-secondary)]","focus:outline-none focus:border-[var(--color-button-blue)]","hover:enabled:border-[var(--color-button-blue)]","disabled:cursor-not-allowed disabled:opacity-50 disabled:pointer-events-none","disabled:[-webkit-text-fill-color:var(--color-text)]"].join(" "),c="border-[var(--color-error)] focus:border-[var(--color-error)] hover:enabled:border-[var(--color-error)]",s="ps-10",i="pe-12",d=["absolute top-1/2 start-3 -translate-y-1/2","flex items-center justify-center","text-[var(--color-icon-secondary)] pointer-events-none"].join(" "),u=["absolute top-1/2 end-3.5 -translate-y-1/2","flex items-center justify-center w-8 h-8 p-0","bg-transparent border-none text-[var(--color-icon-secondary)] cursor-pointer","transition-colors duration-200","hover:text-[var(--color-system-text)]","focus:outline-2 focus:outline-[var(--color-clickable)] focus:outline-offset-2 focus:rounded-sm","focus:not(:focus-visible):outline-none","active:-translate-y-1/2 active:scale-95"].join(" "),f="text-12 leading-none text-[var(--color-grey-07)]",x="text-12 font-normal leading-none text-[var(--color-error)]";export{x as errorStyles,l as fieldContainerStyles,f as helperStyles,a as inputBaseStyles,c as inputErrorStyles,s as inputWithLeftIconStyles,i as inputWithToggleStyles,o as labelRowStyles,r as labelStyles,d as leftIconStyles,u as toggleStyles,n as tooltipContentStyles,t as tooltipTriggerStyles,e as wrapperStyles};
|
package/dist/index147.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.calculateFittingChips=(e,t,r,a,s)=>{let n=0,l=0;for(let u=0;u<e.length;u++){const c=e[u],i=t.get(c.value)||0;if(0===i){l++;break}const o=n+(u>0?a:0)+i;if(u<e.length-1){if(o+a+s>r&&l>0)break}else if(o>r&&l>0)break;n=o,l++}return Math.max(1,l)},exports.parseGapValue=(e,t,r)=>{if(!e)return.5*t;const a=e.match(/^([\d.]+)(px|rem|em)?/);if(!a)return.5*t;const s=parseFloat(a[1]);switch(a[2]||"px"){case"px":return s;case"rem":return s*t;case"em":return s*r;default:return.5*t}};
|
package/dist/index147.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const e=(e,t,r)=>{if(!e)return.5*t;const n=e.match(/^([\d.]+)(px|rem|em)?/);if(!n)return.5*t;const a=parseFloat(n[1]);switch(n[2]||"px"){case"px":return a;case"rem":return a*t;case"em":return a*r;default:return.5*t}},t=(e,t,r,n,a)=>{let s=0,c=0;for(let u=0;u<e.length;u++){const f=e[u],l=t.get(f.value)||0;if(0===l){c++;break}const o=s+(u>0?n:0)+l;if(u<e.length-1){if(o+n+a>r&&c>0)break}else if(o>r&&c>0)break;s=o,c++}return Math.max(1,c)};export{t as calculateFittingChips,e as parseGapValue};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=(t,e)=>{const n=document.createElement("span");n.dataset.datatableMeasure="true",n.style.cssText="position:absolute;top:-9999px;left:-9999px;white-space:nowrap;pointer-events:none;",n.style.font=getComputedStyle(t).font,n.textContent=e,t.ownerDocument.body.appendChild(n);const o=n.getBoundingClientRect().width;return n.remove(),o},e=(...t)=>{for(const e of t){const t=Number.parseFloat(e);if(Number.isFinite(t))return t}return 0};exports.isTextOverflowing=(n,o)=>{if(!o)return!1;const r=n.closest("td")??n,i=getComputedStyle(r),s=e(i.paddingInlineStart,i.paddingLeft)+e(i.paddingInlineEnd,i.paddingRight),d=r.getBoundingClientRect().width-s;return d>0&&t(n,o)>d+1},exports.measureTextWidth=t;
|
package/dist/index148.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t=(t,e)=>{const n=document.createElement("span");n.dataset.datatableMeasure="true",n.style.cssText="position:absolute;top:-9999px;left:-9999px;white-space:nowrap;pointer-events:none;",n.style.font=getComputedStyle(t).font,n.textContent=e,t.ownerDocument.body.appendChild(n);const o=n.getBoundingClientRect().width;return n.remove(),o},e=(...t)=>{for(const e of t){const t=Number.parseFloat(e);if(Number.isFinite(t))return t}return 0},n=(n,o)=>{if(!o)return!1;const i=n.closest("td")??n,r=getComputedStyle(i),d=e(r.paddingInlineStart,r.paddingLeft)+e(r.paddingInlineEnd,r.paddingRight),s=i.getBoundingClientRect().width-d;return s>0&&t(n,o)>s+1};export{n as isTextOverflowing,t as measureTextWidth};
|
package/dist/index15.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),a=require("react-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),a=require("@radix-ui/react-select"),r=require("./index72.cjs"),s=require("./index85.cjs"),l=require("./index86.cjs");function c(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const a in e)if("default"!==a){const r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,r.get?r:{enumerable:!0,get:()=>e[a]})}return t.default=e,Object.freeze(t)}const i=c(a),d=i.Root,n=t.forwardRef(({className:a,children:s,label:c,error:d,helperText:n,fullWidth:o=!1,hasValue:p=!1,placeholder:g,id:u,"data-cy":y,"data-testid":m,disabled:h,required:x,...S},f)=>{const j=t.useId(),b=u||j,N=`${b}-label`,$=`${b}-error`,w=`${b}-helper`,v=y||"select-trigger",L=m||"select-trigger",q=c&&x&&!c.includes("*")?`${c} *`:c;return e.jsxs("div",{className:r.cn(l.triggerWrapperStyles,o&&l.triggerWrapperFullWidthStyles),"data-cy":`${v}-wrapper`,"data-testid":`${L}-wrapper`,children:[c&&e.jsx("label",{id:N,htmlFor:b,className:r.cn(l.triggerLabelStyles,d&&l.triggerLabelErrorStyles,h&&l.triggerLabelDisabledStyles),"data-cy":`${v}-label`,"data-testid":`${L}-label`,children:q}),e.jsxs(i.Trigger,{ref:f,id:b,className:r.cn(l.triggerButtonStyles,d&&l.triggerButtonErrorStyles,!p&&l.triggerButtonPlaceholderStyles,a),"aria-invalid":d?"true":"false","aria-describedby":d?$:n?w:void 0,"aria-labelledby":c?N:void 0,"aria-required":x?"true":void 0,"data-cy":v,"data-testid":L,disabled:h,...S,children:[e.jsx("span",{className:l.triggerValueStyles,children:p?s:e.jsx("span",{"data-cy":`${v}-placeholder`,"data-testid":`${L}-placeholder`,children:g||c})}),e.jsx(i.Icon,{className:l.triggerIconStyles,"data-cy":`${v}-icon`,"data-testid":`${L}-icon`,children:e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:e.jsx("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),d&&e.jsx("span",{id:$,className:l.triggerErrorStyles,role:"alert","data-cy":`${v}-error`,"data-testid":`${L}-error`,children:d}),n&&!d&&e.jsx("span",{id:w,className:l.triggerHelperStyles,"data-cy":`${v}-helper`,"data-testid":`${L}-helper`,children:n})]})});n.displayName="SelectTrigger";const o=i.Value,p=t.forwardRef(({className:t,children:a,position:s="popper","data-cy":c,"data-testid":d,...n},o)=>{const p=c||"select-content",g=d||"select-content";return e.jsx(i.Portal,{children:e.jsx(i.Content,{ref:o,className:r.cn(l.contentStyles,t),position:s,sideOffset:0,"data-cy":p,"data-testid":g,...n,children:e.jsx(i.Viewport,{className:l.viewportStyles,children:a})})})});p.displayName="SelectContent";const g=t.forwardRef(({className:t,children:a,value:c,flag:d,icon:n,"data-cy":o,"data-testid":p,...g},u)=>{const y=o||`select-item-${c}`,m=p||`select-item-${c}`;return e.jsx(i.Item,{ref:u,className:r.cn(l.itemStyles,t),value:c,"data-cy":y,"data-testid":m,...g,children:e.jsx(i.ItemText,{children:e.jsxs("span",{className:"inline-flex items-center gap-3",children:[n&&e.jsx("span",{className:l.itemIconStyles,"aria-hidden":"true","data-cy":`${y}-icon`,"data-testid":`${m}-icon`,children:n}),d&&e.jsx(s.CountryFlag,{flag:d,className:l.itemFlagStyles}),a]})})})});g.displayName="SelectItem";const u=i.Group,y=t.forwardRef(({className:t,"data-cy":a,"data-testid":s,...c},d)=>{const n=a||"select-label",o=s||"select-label";return e.jsx(i.Label,{ref:d,className:r.cn(l.labelStyles,t),"data-cy":n,"data-testid":o,...c})});y.displayName="SelectLabel";const m=t.forwardRef(({className:t,"data-cy":a,"data-testid":s,...c},d)=>{const n=a||"select-separator",o=s||"select-separator";return e.jsx(i.Separator,{ref:d,className:r.cn(l.separatorStyles,t),"data-cy":n,"data-testid":o,...c})});m.displayName="SelectSeparator",exports.Select=d,exports.SelectContent=p,exports.SelectGroup=u,exports.SelectItem=g,exports.SelectLabel=y,exports.SelectSeparator=m,exports.SelectTrigger=n,exports.SelectValue=o;
|
package/dist/index15.js
CHANGED
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return
|
|
3
|
-
/* @__PURE__ */
|
|
4
|
-
/* @__PURE__ */e("
|
|
5
|
-
/* @__PURE__ */
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/* @__PURE__ */e("div",{className:x,children:[
|
|
11
|
-
/* @__PURE__ */t("span",{className:L,children:/* @__PURE__ */t(m,{name:"MagnifyingGlassIcon",size:"sm",color:"icon-secondary",decorative:!0})}),
|
|
12
|
-
/* @__PURE__ */t("input",{ref:Pe,type:"text",role:"combobox",className:k,value:Le,onChange:e=>{const t=e.target.value;ke(t);const a=ae.filter(e=>O(e,t));xe(a.length>0?0:-1)},onKeyDown:ot,placeholder:re,"aria-label":re,"aria-autocomplete":"list","aria-expanded":"true","aria-controls":Te,"aria-activedescendant":Ne>=0&&He[Ne]?`${Te}-option-${He[Ne].code.toLowerCase()}`:void 0,"data-cy":`${Re}-country-search`,"data-testid":`${Ve}-country-search`}),Le&&/* @__PURE__ */t("button",{type:"button",className:D,onClick:()=>{ke(""),xe(ae.length>0?0:-1),Pe.current?.focus()},"aria-label":"Clear search","data-cy":`${Re}-country-search-clear`,"data-testid":`${Ve}-country-search-clear`,children:/* @__PURE__ */t(m,{name:"Cross2Icon",size:"sm",color:"icon-secondary",decorative:!0})})]}),
|
|
13
|
-
/* @__PURE__ */t("div",{id:Te,role:"listbox","aria-label":"Select country",className:E,"data-cy":`${Re}-country-list`,"data-testid":`${Ve}-country-list`,children:0===He.length?/* @__PURE__ */t("div",{role:"status","aria-live":"polite",className:M,"data-cy":`${Re}-country-no-results`,"data-testid":`${Ve}-country-no-results`,children:oe}):He.map((a,r)=>/* @__PURE__ */e("div",{ref:e=>{Ue.current[r]=e},id:`${Te}-option-${a.code.toLowerCase()}`,role:"option",tabIndex:-1,"aria-selected":a.code===Ie,className:u(q,r===Ne&&F,a.code===Ie&&z),onClick:()=>rt(a),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),rt(a))},onMouseEnter:()=>xe(r),"data-cy":`${Re}-option-${a.code.toLowerCase()}`,"data-testid":`${Ve}-option-${a.code.toLowerCase()}`,children:[
|
|
14
|
-
/* @__PURE__ */t($,{flag:a.flag,className:S}),
|
|
15
|
-
/* @__PURE__ */t("span",{className:I,children:a.name}),
|
|
16
|
-
/* @__PURE__ */t("span",{className:j,children:a.dialCode})]},a.code))})]}),document.body),v&&/* @__PURE__ */t("span",{id:Fe,className:T,role:"alert","data-cy":`${Re}-error`,"data-testid":`${Ve}-error`,children:v}),Q&&!v&&/* @__PURE__ */t("span",{id:qe,className:W,"data-cy":`${Re}-helper`,"data-testid":`${Ve}-helper`,children:Q})]})});Q.displayName="PhoneInput";export{y as E164_MAX_NATIONAL_DIGITS,Q as PhoneInput,p as defaultPhoneMask,f as formatWithMask,h as getPhoneDigits,v as isValidPhoneLength};
|
|
1
|
+
import{jsx as e,jsxs as a}from"react/jsx-runtime";import{forwardRef as t,useId as r}from"react";import*as s from"@radix-ui/react-select";import{cn as d}from"./index72.js";import{CountryFlag as l}from"./index85.js";import{viewportStyles as i,itemIconStyles as c,itemFlagStyles as n,triggerValueStyles as o,triggerIconStyles as m,triggerErrorStyles as p,triggerHelperStyles as h,triggerLabelDisabledStyles as N,triggerLabelErrorStyles as y,triggerLabelStyles as u,triggerButtonPlaceholderStyles as $,triggerButtonErrorStyles as f,triggerButtonStyles as b,triggerWrapperFullWidthStyles as g,triggerWrapperStyles as x,contentStyles as v,itemStyles as w,labelStyles as S,separatorStyles as L}from"./index86.js";const j=s.Root,k=t(({className:t,children:l,label:i,error:c,helperText:n,fullWidth:v=!1,hasValue:w=!1,placeholder:S,id:L,"data-cy":j,"data-testid":k,disabled:I,required:T,...C},V)=>{const q=r(),W=L||q,B=`${W}-label`,F=`${W}-error`,G=`${W}-helper`,M=j||"select-trigger",O=k||"select-trigger",P=i&&T&&!i.includes("*")?`${i} *`:i;/* @__PURE__ */
|
|
2
|
+
return a("div",{className:d(x,v&&g),"data-cy":`${M}-wrapper`,"data-testid":`${O}-wrapper`,children:[i&&/* @__PURE__ */e("label",{id:B,htmlFor:W,className:d(u,c&&y,I&&N),"data-cy":`${M}-label`,"data-testid":`${O}-label`,children:P}),
|
|
3
|
+
/* @__PURE__ */a(s.Trigger,{ref:V,id:W,className:d(b,c&&f,!w&&$,t),"aria-invalid":c?"true":"false","aria-describedby":c?F:n?G:void 0,"aria-labelledby":i?B:void 0,"aria-required":T?"true":void 0,"data-cy":M,"data-testid":O,disabled:I,...C,children:[
|
|
4
|
+
/* @__PURE__ */e("span",{className:o,children:w?l:/* @__PURE__ */e("span",{"data-cy":`${M}-placeholder`,"data-testid":`${O}-placeholder`,children:S||i})}),
|
|
5
|
+
/* @__PURE__ */e(s.Icon,{className:m,"data-cy":`${M}-icon`,"data-testid":`${O}-icon`,children:/* @__PURE__ */e("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:/* @__PURE__ */e("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),c&&/* @__PURE__ */e("span",{id:F,className:p,role:"alert","data-cy":`${M}-error`,"data-testid":`${O}-error`,children:c}),n&&!c&&/* @__PURE__ */e("span",{id:G,className:h,"data-cy":`${M}-helper`,"data-testid":`${O}-helper`,children:n})]})});k.displayName="SelectTrigger";const I=s.Value,T=t(({className:a,children:t,position:r="popper","data-cy":l,"data-testid":c,...n},o)=>{const m=l||"select-content",p=c||"select-content";/* @__PURE__ */
|
|
6
|
+
return e(s.Portal,{children:/* @__PURE__ */e(s.Content,{ref:o,className:d(v,a),position:r,sideOffset:0,"data-cy":m,"data-testid":p,...n,children:/* @__PURE__ */e(s.Viewport,{className:i,children:t})})})});T.displayName="SelectContent";const C=t(({className:t,children:r,value:i,flag:o,icon:m,"data-cy":p,"data-testid":h,...N},y)=>{const u=p||`select-item-${i}`,$=h||`select-item-${i}`;/* @__PURE__ */
|
|
7
|
+
return e(s.Item,{ref:y,className:d(w,t),value:i,"data-cy":u,"data-testid":$,...N,children:/* @__PURE__ */e(s.ItemText,{children:/* @__PURE__ */a("span",{className:"inline-flex items-center gap-3",children:[m&&/* @__PURE__ */e("span",{className:c,"aria-hidden":"true","data-cy":`${u}-icon`,"data-testid":`${$}-icon`,children:m}),o&&/* @__PURE__ */e(l,{flag:o,className:n}),r]})})})});C.displayName="SelectItem";const V=s.Group,q=t(({className:a,"data-cy":t,"data-testid":r,...l},i)=>{const c=t||"select-label",n=r||"select-label";/* @__PURE__ */
|
|
8
|
+
return e(s.Label,{ref:i,className:d(S,a),"data-cy":c,"data-testid":n,...l})});q.displayName="SelectLabel";const W=t(({className:a,"data-cy":t,"data-testid":r,...l},i)=>{const c=t||"select-separator",n=r||"select-separator";/* @__PURE__ */
|
|
9
|
+
return e(s.Separator,{ref:i,className:d(L,a),"data-cy":c,"data-testid":n,...l})});W.displayName="SelectSeparator";export{j as Select,T as SelectContent,V as SelectGroup,C as SelectItem,q as SelectLabel,W as SelectSeparator,k as SelectTrigger,I as SelectValue};
|
package/dist/index16.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),a=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),a=require("react-dom"),r=require("./index72.cjs"),o=require("@adam-milo/icons"),s=require("./index74.cjs"),n=require("./index85.cjs"),l=require("./index87.cjs"),i={name:"United States",dialCode:"+1",flag:"πΊπΈ",mask:s.defaultPhoneMask},c=(e,t)=>{const a=t.trim().toLocaleLowerCase();if(!a)return!0;const r=a.replace(/\D/g,""),o=e.dialCode.replace(/\D/g,"");return e.name.toLocaleLowerCase().includes(a)||e.code.toLocaleLowerCase().includes(a)||e.dialCode.toLocaleLowerCase().includes(a)||r.length>0&&o.includes(r)},d=t.forwardRef(({label:d,error:u,helperText:h,fullWidth:p=!0,value:y="",onChange:f,countryCode:m,initialCountryCode:g,onCountryChange:x,countries:S,countrySearchPlaceholder:v="Search countries",countrySearchNoResultsText:w="No countries found",enableFormatting:b=!0,maxNationalDigits:$=s.E164_MAX_NATIONAL_DIGITS,onValidationChange:C,disabled:N,required:j,placeholder:L,id:k,"data-cy":D,"data-testid":I,className:E,onFocus:M,onBlur:P,...A},T)=>{const[q,_]=t.useState(!1),[F,R]=t.useState(!1),[W,z]=t.useState(0),[B,G]=t.useState(""),[O,V]=t.useState({top:0,left:0,width:0}),[X,K]=t.useState(()=>m??g??"US"),U=m??X,H=t.useId(),J=k||H,Q=`${J}-error`,Y=`${J}-helper`,Z=`${J}-listbox`,ee=t.useRef(null),te=t.useRef(null),ae=t.useRef(null),re=t.useRef(null),oe=t.useRef(null),se=t.useRef([]),ne=D||"phone-input",le=I||"phone-input",ie=S.find(e=>e.code===U)||S[0]||i,ce=t.useMemo(()=>S.filter(e=>c(e,B)),[S,B]),de=ie.mask??s.defaultPhoneMask,ue=Number.isFinite($)?Math.max(Math.floor($),1):s.E164_MAX_NATIONAL_DIGITS,he=L??de.placeholder,pe=d&&j&&!d.includes("*")?`${d}*`:d,ye=ie.dialCode.replace(/\D/g,"").length,fe=s.getPhoneDigits(y),me=y.startsWith("+")?fe.slice(ye):fe,ge=b?s.formatWithMask(me,de,ue):me,xe=t.useCallback(()=>{if(N)return;G("");const e=S.findIndex(e=>e.code===U);z(0===S.length?-1:Math.max(0,e)),_(!0)},[S,U,N]),Se=t.useCallback(()=>{_(!1),G(""),z(0)},[]);t.useEffect(()=>{q&&oe.current?.focus()},[q]),t.useEffect(()=>{!q||W<0||se.current[W]?.scrollIntoView?.({block:"nearest"})},[W,q]),t.useLayoutEffect(()=>{if(!q||!te.current)return;const e=()=>{if(te.current){const e=te.current.getBoundingClientRect();V({top:e.bottom+8,left:e.left,width:Math.max(e.width,320)})}};return e(),window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e)}},[q]),t.useEffect(()=>{const e=e=>{const t=e.target,a=ee.current?.contains(t),r=ae.current?.contains(t);a||r||Se()};return q&&document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[Se,q]),t.useEffect(()=>{if(!q)return;const e=ae.current;if(!e)return;const t=e=>e.stopPropagation(),a={passive:!1};return e.addEventListener("touchmove",t,a),e.addEventListener("wheel",t,a),()=>{e.removeEventListener("touchmove",t),e.removeEventListener("wheel",t)}},[q]);const ve=t.useCallback(e=>{void 0===m&&K(e.code),x?.(e);const t=s.getPhoneDigits(y),a=ie.dialCode.replace(/\D/g,"").length,r=y.startsWith("+")?t.slice(a):t;f?.(`${e.dialCode}${r}`),Se(),setTimeout(()=>{const e=ee.current?.querySelector("input");e?.focus()},0)},[Se,m,x,f,y,ie.dialCode]),we=t.useCallback(e=>{switch(e.key){case"ArrowDown":e.preventDefault(),z(e=>0===ce.length?-1:Math.min(e+1,ce.length-1));break;case"ArrowUp":e.preventDefault(),z(e=>0===ce.length?-1:Math.max(e-1,0));break;case"Enter":W>=0&&ce[W]&&(e.preventDefault(),ve(ce[W]));break;case"Escape":e.preventDefault(),Se(),re.current?.focus();break;case"Tab":Se()}},[Se,ce,W,ve]),be=N?"disabled":u?"error":F||q?"focus":"idle";return e.jsxs("div",{ref:ee,className:r.cn(l.wrapperStyles,p&&l.wrapperFullWidthStyles),"data-cy":`${ne}-wrapper`,"data-testid":`${le}-wrapper`,children:[d&&e.jsx("label",{htmlFor:J,className:l.labelStyles,"data-cy":`${ne}-label`,"data-testid":`${le}-label`,children:pe}),e.jsxs("div",{ref:te,className:r.cn(l.containerBaseStyles,p&&l.containerFullWidthStyles,"focus"===be&&l.containerFocusStyles,"error"===be&&l.containerErrorStyles,"disabled"===be&&l.containerDisabledStyles,"idle"===be&&l.containerIdleStyles),"data-state":be,"data-cy":`${ne}-container`,"data-testid":`${le}-container`,children:[e.jsxs("button",{ref:re,type:"button",className:l.triggerStyles,onClick:()=>q?Se():xe(),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key&&"ArrowDown"!==e.key||(e.preventDefault(),xe())},disabled:N,"aria-haspopup":"listbox","aria-expanded":q,"aria-controls":Z,"aria-label":`Select country. Current: ${ie.name}`,"data-cy":`${ne}-country-trigger`,"data-testid":`${le}-country-trigger`,children:[e.jsx(n.CountryFlag,{flag:ie.flag,className:l.flagStyles,"data-cy":`${ne}-flag`,"data-testid":`${le}-flag`}),e.jsx(o.Icon,{name:"ChevronDownIcon",size:"sm",color:F||q?"clickable":"text",decorative:!0,"data-cy":`${ne}-chevron`})]}),e.jsx("span",{className:l.dialCodeStyles,"data-cy":`${ne}-dial-code`,"data-testid":`${le}-dial-code`,children:ie.dialCode}),e.jsx("input",{ref:T,id:J,type:"tel",inputMode:"numeric",value:ge,onChange:e=>{const t=e.target.value,a=(b?s.getPhoneDigits(t):t.replace(/[^0-9]/g,"")).slice(0,ue);f?.(`${ie.dialCode}${a}`),C?.(a.length>0)},onFocus:e=>{R(!0),M?.(e)},onBlur:e=>{R(!1),P?.(e)},placeholder:he,disabled:N,required:j,className:r.cn(l.inputStyles,E),"aria-invalid":u?"true":"false","aria-required":j?"true":void 0,"aria-describedby":u?Q:h?Y:void 0,"data-cy":ne,"data-testid":le,...A})]}),q&&a.createPortal(e.jsxs("div",{ref:ae,className:l.dropdownStyles,style:{top:O.top,left:O.left,width:O.width,minWidth:"20rem"},"data-cy":`${ne}-dropdown`,"data-testid":`${le}-dropdown`,children:[e.jsxs("div",{className:l.searchWrapperStyles,children:[e.jsx("span",{className:l.searchIconStyles,children:e.jsx(o.Icon,{name:"MagnifyingGlassIcon",size:"sm",color:"icon-secondary",decorative:!0})}),e.jsx("input",{ref:oe,type:"text",role:"combobox",className:l.searchInputStyles,value:B,onChange:e=>{const t=e.target.value;G(t);const a=S.filter(e=>c(e,t));z(a.length>0?0:-1)},onKeyDown:we,placeholder:v,"aria-label":v,"aria-autocomplete":"list","aria-expanded":"true","aria-controls":Z,"aria-activedescendant":W>=0&&ce[W]?`${Z}-option-${ce[W].code.toLowerCase()}`:void 0,"data-cy":`${ne}-country-search`,"data-testid":`${le}-country-search`}),B&&e.jsx("button",{type:"button",className:l.clearSearchStyles,onClick:()=>{G(""),z(S.length>0?0:-1),oe.current?.focus()},"aria-label":"Clear search","data-cy":`${ne}-country-search-clear`,"data-testid":`${le}-country-search-clear`,children:e.jsx(o.Icon,{name:"Cross2Icon",size:"sm",color:"icon-secondary",decorative:!0})})]}),e.jsx("div",{id:Z,role:"listbox","aria-label":"Select country",className:l.dropdownViewportStyles,"data-cy":`${ne}-country-list`,"data-testid":`${le}-country-list`,children:0===ce.length?e.jsx("div",{role:"status","aria-live":"polite",className:l.noResultsStyles,"data-cy":`${ne}-country-no-results`,"data-testid":`${le}-country-no-results`,children:w}):ce.map((t,a)=>e.jsxs("div",{ref:e=>{se.current[a]=e},id:`${Z}-option-${t.code.toLowerCase()}`,role:"option",tabIndex:-1,"aria-selected":t.code===U,className:r.cn(l.optionBaseStyles,a===W&&l.optionHighlightedStyles,t.code===U&&l.optionSelectedStyles),onClick:()=>ve(t),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),ve(t))},onMouseEnter:()=>z(a),"data-cy":`${ne}-option-${t.code.toLowerCase()}`,"data-testid":`${le}-option-${t.code.toLowerCase()}`,children:[e.jsx(n.CountryFlag,{flag:t.flag,className:l.optionFlagStyles}),e.jsx("span",{className:l.optionNameStyles,children:t.name}),e.jsx("span",{className:l.optionDialCodeStyles,children:t.dialCode})]},t.code))})]}),document.body),u&&e.jsx("span",{id:Q,className:l.errorStyles,role:"alert","data-cy":`${ne}-error`,"data-testid":`${le}-error`,children:u}),h&&!u&&e.jsx("span",{id:Y,className:l.helperStyles,"data-cy":`${ne}-helper`,"data-testid":`${le}-helper`,children:h})]})});d.displayName="PhoneInput",exports.E164_MAX_NATIONAL_DIGITS=s.E164_MAX_NATIONAL_DIGITS,exports.defaultPhoneMask=s.defaultPhoneMask,exports.formatWithMask=s.formatWithMask,exports.getPhoneDigits=s.getPhoneDigits,exports.isValidPhoneLength=s.isValidPhoneLength,exports.PhoneInput=d;
|