@cronocode/react-box 2.0.2 → 2.0.3
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/components/baseSvg.d.ts +1 -1
- package/core/boxStyles.d.ts +1 -1
- package/core/types.d.ts +12 -23
- package/core.cjs +8 -8
- package/core.mjs +93 -93
- package/package.json +1 -1
package/components/baseSvg.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { BoxSvgStyles } from '../core/types';
|
|
|
3
3
|
import { BoxTagProps } from '../box';
|
|
4
4
|
|
|
5
5
|
type BoxSvgTagProps = Omit<BoxTagProps<'svg'>, 'viewBox' | 'width' | 'height'>;
|
|
6
|
-
interface Props extends BoxSvgStyles {
|
|
6
|
+
interface Props extends Omit<BoxSvgStyles, 'width' | 'height'> {
|
|
7
7
|
children?: React.ReactNode | ((props: {
|
|
8
8
|
isHover: boolean;
|
|
9
9
|
}) => React.ReactNode);
|
package/core/boxStyles.d.ts
CHANGED
|
@@ -1103,7 +1103,7 @@ export declare const simpleBoxStyles: {
|
|
|
1103
1103
|
appearance: {
|
|
1104
1104
|
cssNames: string[];
|
|
1105
1105
|
values1: {
|
|
1106
|
-
values: readonly ["none"];
|
|
1106
|
+
values: readonly ["none", "auto", "menulist-button", "textfield", "button", "checkbox"];
|
|
1107
1107
|
};
|
|
1108
1108
|
values2: {
|
|
1109
1109
|
values: readonly [];
|
package/core/types.d.ts
CHANGED
|
@@ -13,15 +13,16 @@ type BoxStyles<T extends Record<string, StyleItem>> = {
|
|
|
13
13
|
[K in keyof T]?: T[K]['values1']['values'][number] | T[K]['values2']['values'][number] | T[K]['values3']['values'][number];
|
|
14
14
|
};
|
|
15
15
|
type BoxNormalStyles = BoxStyles<typeof simpleBoxStyles> & Augmented.BoxProps;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
type SvgNormalStyles = BoxStyles<typeof simpleBoxStyles> & Augmented.SvgProps;
|
|
17
|
+
interface BoxPseudoClasses<T> {
|
|
18
|
+
disabled?: boolean | [boolean, T];
|
|
19
|
+
disabledGroup?: string | Record<string, T>;
|
|
20
|
+
hover?: T;
|
|
21
|
+
hoverGroup?: string | Record<string, T>;
|
|
22
|
+
focus?: T;
|
|
23
|
+
focusGroup?: string | Record<string, T>;
|
|
24
|
+
active?: T;
|
|
25
|
+
activeGroup?: string | Record<string, T>;
|
|
25
26
|
}
|
|
26
27
|
interface BoxThemePseudoClassProps {
|
|
27
28
|
hover?: BoxNormalStyles;
|
|
@@ -39,18 +40,6 @@ export interface BoxBreakpoints<T = BoxThemeProps> {
|
|
|
39
40
|
xxl?: T;
|
|
40
41
|
}
|
|
41
42
|
export type BoxThemeProps = BoxNormalStyles & BoxThemePseudoClassProps & BoxBreakpoints;
|
|
42
|
-
export type BoxStyleProps = BoxNormalStyles & BoxPseudoClasses & ThemeComponentProps & BoxBreakpoints<BoxStyleProps>;
|
|
43
|
-
|
|
44
|
-
rotate?: BoxNormalStyles['rotate'];
|
|
45
|
-
flip?: BoxNormalStyles['flip'];
|
|
46
|
-
transitionDuration?: BoxNormalStyles['transitionDuration'];
|
|
47
|
-
disabledGroup?: Record<string, SvgNormalStyles>;
|
|
48
|
-
hover?: SvgNormalStyles;
|
|
49
|
-
hoverGroup?: string | Record<string, SvgNormalStyles>;
|
|
50
|
-
focus?: SvgNormalStyles;
|
|
51
|
-
focusGroup?: string | Record<string, SvgNormalStyles>;
|
|
52
|
-
active?: SvgNormalStyles;
|
|
53
|
-
activeGroup?: string | Record<string, SvgNormalStyles>;
|
|
54
|
-
}
|
|
55
|
-
export type BoxSvgStyles = SvgNormalStyles & ThemeComponentProps & Augmented.SvgProps;
|
|
43
|
+
export type BoxStyleProps = BoxNormalStyles & BoxPseudoClasses<BoxNormalStyles> & ThemeComponentProps & BoxBreakpoints<BoxStyleProps>;
|
|
44
|
+
export type BoxSvgStyles = SvgNormalStyles & BoxPseudoClasses<SvgNormalStyles> & ThemeComponentProps & BoxBreakpoints<BoxSvgStyles>;
|
|
56
45
|
export {};
|
package/core.cjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
"use strict";const G=require("react"),Y=require("./utils.cjs");var e;(a=>{(u=>{function t(o,m){return`${o}${m.replace("/","-")}`}u.fraction=t;function n(o){return[`${o} path`,`${o} circle`,`${o} rect`,`${o} line`]}u.svg=n})(a.ClassName||(a.ClassName={})),(u=>{function t(l,s){return`${s/4}rem`}u.rem=t;function n(l,s){return`${s}px`}u.px=n;function o(l,s){const[r,i]=s.split("/");return`${+r/+i*100}%`}u.fraction=o;function m(l,s){switch(s){case"fit":return"100%";case"fit-screen":return l.toLocaleLowerCase().includes("height")?"100vh":"100vw";default:return s}}u.widthHeight=m;function N(l){return(s,r)=>`var(--${l}${r});`}u.variables=N;function T(l){return(s,r)=>`var(--${l}${r});`}u.svgVariables=T;function S(l,s){return`repeat(${s},minmax(0,1fr))`}u.gridColumns=S;function c(l,s){return s==="full-row"?"1/-1":`span ${s}/span ${s}`}u.gridColumn=c;function f(l,s){return`${s}ms`}u.ms=f;function b(l,s){return`${s}deg`}u.rotate=b;function d(l,s){return s==="xAxis"?"-1 1":"1 -1"}u.flip=d})(a.Value||(a.Value={}))})(e||(e={}));const v=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,64,68,72,76,80,84,88,92,96,100,110,120,128,130,140,150,160,170,180,190,192,200,225,250,256,275,300,320,350,384,400],ae=[-1,-2,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-22,-24,-26,-28,-30,-32,-34,-36,-38,-40,-44,-48,-52,-56,-60,-64,-68,-72,-76,-80,-84,-88,-92,-96,-100],h=[...v,...ae],W=["solid","dashed","dotted","double","groove","ridge","inset","outset","none","hidden"],P=["auto","hidden","scroll","visible"],z=["1/2","1/3","2/3","1/4","2/4","3/4","1/5","2/5","3/5","4/5","1/6","2/6","3/6","4/6","5/6","1/12","2/12","3/12","4/12","5/12","6/12","7/12","8/12","9/12","10/12","11/12"],I=["fit","fit-screen","auto","fit-content","max-content","min-content"],K=["auto","flex-start","flex-end","center","baseline","stretch"],le={display:{cssNames:["display"],values1:{values:["none","block","inline-block","flex","inline-flex","grid","inline-grid","contents"]},values2:{values:[]},values3:{values:[]}},inline:{cssNames:["display"],values1:{values:[!0],formatValue:()=>"inline-block"},values2:{values:[]},values3:{values:[]}},boxSizing:{cssNames:["box-sizing"],values1:{values:["border-box","content-box"]},values2:{values:[]},values3:{values:[]}},width:{cssNames:["width"],values1:{values:I,formatValue:e.Value.widthHeight},values2:{values:v,formatValue:e.Value.rem},values3:{values:z,formatValue:e.Value.fraction}},minWidth:{cssNames:["min-width"],values1:{values:I,formatValue:e.Value.widthHeight},values2:{values:v,formatValue:e.Value.rem},values3:{values:z,formatValue:e.Value.fraction}},maxWidth:{cssNames:["max-width"],values1:{values:I,formatValue:e.Value.widthHeight},values2:{values:v,formatValue:e.Value.rem},values3:{values:z,formatValue:e.Value.fraction}},height:{cssNames:["height"],values1:{values:I,formatValue:e.Value.widthHeight},values2:{values:v,formatValue:e.Value.rem},values3:{values:z,formatValue:e.Value.fraction}},minHeight:{cssNames:["min-height"],values1:{values:I,formatValue:e.Value.widthHeight},values2:{values:v,formatValue:e.Value.rem},values3:{values:z,formatValue:e.Value.fraction}},maxHeight:{cssNames:["max-height"],values1:{values:I,formatValue:e.Value.widthHeight},values2:{values:v,formatValue:e.Value.rem},values3:{values:z,formatValue:e.Value.fraction}},position:{cssNames:["position"],values1:{values:["static","relative","absolute","fixed","sticky"]},values2:{values:[]},values3:{values:[]}},top:{cssNames:["top"],values1:{values:h,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},right:{cssNames:["right"],values1:{values:h,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},bottom:{cssNames:["bottom"],values1:{values:h,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},left:{cssNames:["left"],values1:{values:h,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},inset:{cssNames:["inset"],values1:{values:h,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},m:{cssNames:["margin"],values1:{values:h,formatValue:e.Value.rem},values2:{values:["auto"]},values3:{values:[]}},mx:{cssNames:["margin-inline"],values1:{values:h,formatValue:e.Value.rem},values2:{values:["auto"]},values3:{values:[]}},my:{cssNames:["margin-block"],values1:{values:h,formatValue:e.Value.rem},values2:{values:["auto"]},values3:{values:[]}},mt:{cssNames:["margin-top"],values1:{values:h,formatValue:e.Value.rem},values2:{values:["auto"]},values3:{values:[]}},mr:{cssNames:["margin-right"],values1:{values:h,formatValue:e.Value.rem},values2:{values:["auto"]},values3:{values:[]}},mb:{cssNames:["margin-bottom"],values1:{values:h,formatValue:e.Value.rem},values2:{values:["auto"]},values3:{values:[]}},ml:{cssNames:["margin-left"],values1:{values:h,formatValue:e.Value.rem},values2:{values:["auto"]},values3:{values:[]}},p:{cssNames:["padding"],values1:{values:h,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},px:{cssNames:["padding-inline"],values1:{values:h,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},py:{cssNames:["padding-block"],values1:{values:h,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},pt:{cssNames:["padding-top"],values1:{values:h,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},pr:{cssNames:["padding-right"],values1:{values:h,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},pb:{cssNames:["padding-bottom"],values1:{values:h,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},pl:{cssNames:["padding-left"],values1:{values:h,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},b:{cssNames:["border-width"],values1:{values:v,formatValue:e.Value.px},values2:{values:[]},values3:{values:[]}},bx:{cssNames:["border-inline-width"],values1:{values:h,formatValue:e.Value.px},values2:{values:[]},values3:{values:[]}},by:{cssNames:["border-block-width"],values1:{values:h,formatValue:e.Value.px},values2:{values:[]},values3:{values:[]}},bt:{cssNames:["border-top-width"],values1:{values:h,formatValue:e.Value.px},values2:{values:[]},values3:{values:[]}},br:{cssNames:["border-right-width"],values1:{values:h,formatValue:e.Value.px},values2:{values:[]},values3:{values:[]}},bb:{cssNames:["border-bottom-width"],values1:{values:h,formatValue:e.Value.px},values2:{values:[]},values3:{values:[]}},bl:{cssNames:["border-left-width"],values1:{values:h,formatValue:e.Value.px},values2:{values:[]},values3:{values:[]}},borderStyle:{cssNames:["border-style"],values1:{values:W},values2:{values:[]},values3:{values:[]}},borderRadius:{cssNames:["border-radius"],values1:{values:v,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},borderRadiusTop:{cssNames:["border-top-left-radius","border-top-right-radius"],values1:{values:v,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},borderRadiusRight:{cssNames:["border-top-right-radius","border-bottom-right-radius"],values1:{values:v,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},borderRadiusBottom:{cssNames:["border-bottom-left-radius","border-bottom-right-radius"],values1:{values:v,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},borderRadiusLeft:{cssNames:["border-top-left-radius","border-bottom-left-radius"],values1:{values:v,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},borderRadiusTopLeft:{cssNames:["border-top-left-radius"],values1:{values:v,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},borderRadiusTopRight:{cssNames:["border-top-right-radius"],values1:{values:v,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},borderRadiusBottomLeft:{cssNames:["border-bottom-left-radius"],values1:{values:v,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},borderRadiusBottomRight:{cssNames:["border-bottom-right-radius"],values1:{values:v,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},cursor:{cssNames:["cursor"],values1:{values:["auto","default","none","context-menu","help","pointer","progress","wait","cell","crosshair","text","vertical-text","alias","copy","move","no-drop","not-allowed","e-resize","n-resize","ne-resize","nw-resize","s-resize","se-resize","sw-resize","w-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","col-resize","row-resize","all-scroll","zoom-in","zoom-out","grab","grabbing"]},values2:{values:[]},values3:{values:[]}},zIndex:{cssNames:["z-index"],values1:{values:[1,2,3,4,5,10,11,12,13,14,15,100,101,102,103,104,105,1e3,1001,1002,1003,1004,1005]},values2:{values:[]},values3:{values:[]}},overflow:{cssNames:["overflow"],values1:{values:P},values2:{values:[]},values3:{values:[]}},overflowX:{cssNames:["overflow-x"],values1:{values:P},values2:{values:[]},values3:{values:[]}},overflowY:{cssNames:["overflow-y"],values1:{values:P},values2:{values:[]},values3:{values:[]}},opacity:{cssNames:["opacity"],values1:{values:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1]},values2:{values:[]},values3:{values:[]}},fontSize:{cssNames:["font-size"],values1:{values:v,formatValue:e.Value.px},values2:{values:["inherit"]},values3:{values:[]}},fontStyle:{cssNames:["font-style"],values1:{values:["italic","normal","oblique"]},values2:{values:[]},values3:{values:[]}},fontWeight:{cssNames:["font-weight"],values1:{values:[100,200,300,400,500,600,700,800,900]},values2:{values:[]},values3:{values:[]}},letterSpacing:{cssNames:["letter-spacing"],values1:{values:v,formatValue:e.Value.px},values2:{values:[]},values3:{values:[]}},lineHeight:{cssNames:["line-height"],values1:{values:v,formatValue:e.Value.px},values2:{values:["font-size"],formatValue:()=>"1"},values3:{values:[]}},textDecoration:{cssNames:["text-decoration"],values1:{values:["none","underline","overline","line-through"]},values2:{values:[]},values3:{values:[]}},textTransform:{cssNames:["text-transform"],values1:{values:["none","capitalize","lowercase","uppercase"]},values2:{values:[]},values3:{values:[]}},textAlign:{cssNames:["text-align"],values1:{values:["left","right","center","justify"]},values2:{values:[]},values3:{values:[]}},flexWrap:{cssNames:["flex-wrap"],values1:{values:["nowrap","wrap","wrap-reverse"]},values2:{values:[]},values3:{values:[]}},jc:{cssNames:["justify-content"],values1:{values:["start","end","flex-start","flex-end","center","left","right","space-between","space-around","space-evenly","stretch"]},values2:{values:[]},values3:{values:[]}},ai:{cssNames:["align-items"],values1:{values:["stretch","flex-start","flex-end","center","baseline","start","end","self-start","self-end"]},values2:{values:[]},values3:{values:[]}},alignContent:{cssNames:["align-content"],values1:{values:["flex-start","flex-end","center","space-between","space-around","space-evenly","stretch","start","end","baseline"]},values2:{values:[]},values3:{values:[]}},flex1:{cssNames:["flex"],values1:{values:[!0],formatValue:()=>"1"},values2:{values:[]},values3:{values:[]}},d:{cssNames:["flex-direction"],values1:{values:["row","row-reverse","column","column-reverse"]},values2:{values:[]},values3:{values:[]}},gap:{cssNames:["gap"],values1:{values:v,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},rowGap:{cssNames:["row-gap"],values1:{values:v,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},columnGap:{cssNames:["column-gap"],values1:{values:v,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},order:{cssNames:["order"],values1:{values:v},values2:{values:[]},values3:{values:[]}},flexGrow:{cssNames:["flex-grow"],values1:{values:v},values2:{values:[]},values3:{values:[]}},flexShrink:{cssNames:["flex-shrink"],values1:{values:v},values2:{values:[]},values3:{values:[]}},alignSelf:{cssNames:["align-self"],values1:{values:K},values2:{values:[]},values3:{values:[]}},justifySelf:{cssNames:["justify-self"],values1:{values:K},values2:{values:[]},values3:{values:[]}},gridColumns:{cssNames:["grid-template-columns"],values1:{values:v,formatValue:e.Value.gridColumns},values2:{values:[]},values3:{values:[]}},colSpan:{cssNames:["grid-column"],values1:{values:v,formatValue:e.Value.gridColumn},values2:{values:["full-row"],formatValue:e.Value.gridColumn},values3:{values:[]}},colStart:{cssNames:["grid-column-start"],values1:{values:v},values2:{values:[]},values3:{values:[]}},colEnd:{cssNames:["grid-column-end"],values1:{values:v},values2:{values:[]},values3:{values:[]}},outline:{cssNames:["outline-width"],values1:{values:v,formatValue:e.Value.px},values2:{values:[]},values3:{values:[]}},outlineStyle:{cssNames:["outline-style"],values1:{values:W},values2:{values:[]},values3:{values:[]}},outlineOffset:{cssNames:["outline-offset"],values1:{values:v,formatValue:e.Value.px},values2:{values:[]},values3:{values:[]}},transition:{cssNames:["transition-property"],values1:{values:["none","all"]},values2:{values:[]},values3:{values:[]}},transitionDuration:{cssNames:["transition-duration"],values1:{values:[50,100,150,200,250,300,350,400,450,500,550,600,650,700,750,800,850,900,950,1e3],formatValue:e.Value.ms},values2:{values:[]},values3:{values:[]}},userSelect:{cssNames:["user-select"],values1:{values:["none","auto","text","all"]},values2:{values:[]},values3:{values:[]}},appearance:{cssNames:["appearance"],values1:{values:["none"]},values2:{values:[]},values3:{values:[]}},pointerEvents:{cssNames:["pointer-events"],values1:{values:["none","auto","all"]},values2:{values:[]},values3:{values:[]}},whiteSpace:{cssNames:["white-space"],values1:{values:["break-spaces","normal","nowrap","pre","pre-line","pre-wrap"]},values2:{values:[]},values3:{values:[]}},textOverflow:{cssNames:["text-overflow"],values1:{values:["clip","ellipsis"]},values2:{values:[]},values3:{values:[]}},rotate:{cssNames:["rotate"],values1:{values:[0,90,180,270,-90,-180,-270],formatValue:e.Value.rotate},values2:{values:[]},values3:{values:[]}},flip:{cssNames:["scale"],values1:{values:["xAxis","yAxis"],formatValue:e.Value.flip},values2:{values:[]},values3:{values:[]}}},M={shadow:{cssNames:["box-shadow"],formatValue:e.Value.variables("shadow")},background:{cssNames:["background"],formatValue:e.Value.variables("background")},backgroundImage:{cssNames:["background-image"],formatValue:e.Value.variables("backgroundImage")},color:{cssNames:["color"],formatValue:e.Value.variables("color")},bgColor:{cssNames:["background-color"],formatValue:e.Value.variables("color")},borderColor:{cssNames:["border-color"],formatValue:e.Value.variables("color")},outlineColor:{cssNames:["outline-color"],formatValue:e.Value.variables("color")}},U={fill:{cssNames:["fill"],formatValue:e.Value.svgVariables("color"),formatSelector:e.ClassName.svg},stroke:{cssNames:["stroke"],formatValue:e.Value.svgVariables("color"),formatSelector:e.ClassName.svg}},D=["Hover","Focus","Active","Checked","Indeterminate","Valid","Invalid","Required","Optional","Disabled"],A=["sm","md","lg","xl","xxl"],ue={sm:640,md:768,lg:1024,xl:1280,xxl:1536};function J(){const a={...le};Object.keys(M).forEach(t=>{a[t]=M[t],a[t].isThemeStyle=!0}),Object.keys(U).forEach(t=>{a[t]=U[t],a[t].isThemeStyle=!0});let u=Object.keys(a);return D.forEach(t=>{u.forEach(n=>{a[`${n}${t}`]={...a[n],pseudoSuffix:t}})}),u=Object.keys(a),A.forEach(t=>{u.forEach(n=>{a[`${t}${n}`]={...a[n],breakpoint:t}})}),a}let C=J();function te(){C=J()}function oe(a,u,t){const n=Object.entries(C).filter(([o,m])=>m.pseudoSuffix===a&&!m.customPseudoSuffix&&!(`${o}${u}`in C)).map(([o])=>o);return n.forEach(o=>{C[`${o}${u}`]={...C[o],customPseudoSuffix:t+u}}),n.map(o=>`${o}${u}`)}class re{constructor(){this._index=0,this._cache={}}getIdentity(u){return this._cache[u]||(this._cache[u]=this.getByIndex(this._index++)),this._cache[u]}getByIndex(u){const{first:t,next:n}=ne,o=u-t.length;if(o<0)return t[u];const m=Math.floor(o/n.length),N=o-m*n.length;return this.getByIndex(m)+n[N]}}const ne={first:"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",next:"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"};var _;(a=>{a.boxClassName="_box",a.svgClassName="_svg",a.cronoStylesElementId="crono-styles";const u=`:root{--borderColor: black;--outlineColor: black;--lineHeight: 1.2;--fontSize: 14px;--transitionTime: 0.25s;--svgTransitionTime: 0.3s;#crono-box {position: absolute;top: 0;left: 0;height: 0;}}
|
|
1
|
+
"use strict";const G=require("react"),Y=require("./utils.cjs");var e;(a=>{(u=>{function t(o,m){return`${o}${m.replace("/","-")}`}u.fraction=t;function n(o){return[`${o} path`,`${o} circle`,`${o} rect`,`${o} line`]}u.svg=n})(a.ClassName||(a.ClassName={})),(u=>{function t(l,s){return`${s/4}rem`}u.rem=t;function n(l,s){return`${s}px`}u.px=n;function o(l,s){const[r,i]=s.split("/");return`${+r/+i*100}%`}u.fraction=o;function m(l,s){switch(s){case"fit":return"100%";case"fit-screen":return l.toLocaleLowerCase().includes("height")?"100vh":"100vw";default:return s}}u.widthHeight=m;function N(l){return(s,r)=>`var(--${l}${r});`}u.variables=N;function T(l){return(s,r)=>`var(--${l}${r});`}u.svgVariables=T;function S(l,s){return`repeat(${s},minmax(0,1fr))`}u.gridColumns=S;function c(l,s){return s==="full-row"?"1/-1":`span ${s}/span ${s}`}u.gridColumn=c;function d(l,s){return`${s}ms`}u.ms=d;function h(l,s){return`${s}deg`}u.rotate=h;function f(l,s){return s==="xAxis"?"-1 1":"1 -1"}u.flip=f})(a.Value||(a.Value={}))})(e||(e={}));const v=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,64,68,72,76,80,84,88,92,96,100,110,120,128,130,140,150,160,170,180,190,192,200,225,250,256,275,300,320,350,384,400],ae=[-1,-2,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-22,-24,-26,-28,-30,-32,-34,-36,-38,-40,-44,-48,-52,-56,-60,-64,-68,-72,-76,-80,-84,-88,-92,-96,-100],b=[...v,...ae],W=["solid","dashed","dotted","double","groove","ridge","inset","outset","none","hidden"],P=["auto","hidden","scroll","visible"],z=["1/2","1/3","2/3","1/4","2/4","3/4","1/5","2/5","3/5","4/5","1/6","2/6","3/6","4/6","5/6","1/12","2/12","3/12","4/12","5/12","6/12","7/12","8/12","9/12","10/12","11/12"],I=["fit","fit-screen","auto","fit-content","max-content","min-content"],K=["auto","flex-start","flex-end","center","baseline","stretch"],le={display:{cssNames:["display"],values1:{values:["none","block","inline-block","flex","inline-flex","grid","inline-grid","contents"]},values2:{values:[]},values3:{values:[]}},inline:{cssNames:["display"],values1:{values:[!0],formatValue:()=>"inline-block"},values2:{values:[]},values3:{values:[]}},boxSizing:{cssNames:["box-sizing"],values1:{values:["border-box","content-box"]},values2:{values:[]},values3:{values:[]}},width:{cssNames:["width"],values1:{values:I,formatValue:e.Value.widthHeight},values2:{values:v,formatValue:e.Value.rem},values3:{values:z,formatValue:e.Value.fraction}},minWidth:{cssNames:["min-width"],values1:{values:I,formatValue:e.Value.widthHeight},values2:{values:v,formatValue:e.Value.rem},values3:{values:z,formatValue:e.Value.fraction}},maxWidth:{cssNames:["max-width"],values1:{values:I,formatValue:e.Value.widthHeight},values2:{values:v,formatValue:e.Value.rem},values3:{values:z,formatValue:e.Value.fraction}},height:{cssNames:["height"],values1:{values:I,formatValue:e.Value.widthHeight},values2:{values:v,formatValue:e.Value.rem},values3:{values:z,formatValue:e.Value.fraction}},minHeight:{cssNames:["min-height"],values1:{values:I,formatValue:e.Value.widthHeight},values2:{values:v,formatValue:e.Value.rem},values3:{values:z,formatValue:e.Value.fraction}},maxHeight:{cssNames:["max-height"],values1:{values:I,formatValue:e.Value.widthHeight},values2:{values:v,formatValue:e.Value.rem},values3:{values:z,formatValue:e.Value.fraction}},position:{cssNames:["position"],values1:{values:["static","relative","absolute","fixed","sticky"]},values2:{values:[]},values3:{values:[]}},top:{cssNames:["top"],values1:{values:b,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},right:{cssNames:["right"],values1:{values:b,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},bottom:{cssNames:["bottom"],values1:{values:b,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},left:{cssNames:["left"],values1:{values:b,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},inset:{cssNames:["inset"],values1:{values:b,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},m:{cssNames:["margin"],values1:{values:b,formatValue:e.Value.rem},values2:{values:["auto"]},values3:{values:[]}},mx:{cssNames:["margin-inline"],values1:{values:b,formatValue:e.Value.rem},values2:{values:["auto"]},values3:{values:[]}},my:{cssNames:["margin-block"],values1:{values:b,formatValue:e.Value.rem},values2:{values:["auto"]},values3:{values:[]}},mt:{cssNames:["margin-top"],values1:{values:b,formatValue:e.Value.rem},values2:{values:["auto"]},values3:{values:[]}},mr:{cssNames:["margin-right"],values1:{values:b,formatValue:e.Value.rem},values2:{values:["auto"]},values3:{values:[]}},mb:{cssNames:["margin-bottom"],values1:{values:b,formatValue:e.Value.rem},values2:{values:["auto"]},values3:{values:[]}},ml:{cssNames:["margin-left"],values1:{values:b,formatValue:e.Value.rem},values2:{values:["auto"]},values3:{values:[]}},p:{cssNames:["padding"],values1:{values:b,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},px:{cssNames:["padding-inline"],values1:{values:b,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},py:{cssNames:["padding-block"],values1:{values:b,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},pt:{cssNames:["padding-top"],values1:{values:b,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},pr:{cssNames:["padding-right"],values1:{values:b,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},pb:{cssNames:["padding-bottom"],values1:{values:b,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},pl:{cssNames:["padding-left"],values1:{values:b,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},b:{cssNames:["border-width"],values1:{values:v,formatValue:e.Value.px},values2:{values:[]},values3:{values:[]}},bx:{cssNames:["border-inline-width"],values1:{values:b,formatValue:e.Value.px},values2:{values:[]},values3:{values:[]}},by:{cssNames:["border-block-width"],values1:{values:b,formatValue:e.Value.px},values2:{values:[]},values3:{values:[]}},bt:{cssNames:["border-top-width"],values1:{values:b,formatValue:e.Value.px},values2:{values:[]},values3:{values:[]}},br:{cssNames:["border-right-width"],values1:{values:b,formatValue:e.Value.px},values2:{values:[]},values3:{values:[]}},bb:{cssNames:["border-bottom-width"],values1:{values:b,formatValue:e.Value.px},values2:{values:[]},values3:{values:[]}},bl:{cssNames:["border-left-width"],values1:{values:b,formatValue:e.Value.px},values2:{values:[]},values3:{values:[]}},borderStyle:{cssNames:["border-style"],values1:{values:W},values2:{values:[]},values3:{values:[]}},borderRadius:{cssNames:["border-radius"],values1:{values:v,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},borderRadiusTop:{cssNames:["border-top-left-radius","border-top-right-radius"],values1:{values:v,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},borderRadiusRight:{cssNames:["border-top-right-radius","border-bottom-right-radius"],values1:{values:v,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},borderRadiusBottom:{cssNames:["border-bottom-left-radius","border-bottom-right-radius"],values1:{values:v,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},borderRadiusLeft:{cssNames:["border-top-left-radius","border-bottom-left-radius"],values1:{values:v,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},borderRadiusTopLeft:{cssNames:["border-top-left-radius"],values1:{values:v,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},borderRadiusTopRight:{cssNames:["border-top-right-radius"],values1:{values:v,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},borderRadiusBottomLeft:{cssNames:["border-bottom-left-radius"],values1:{values:v,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},borderRadiusBottomRight:{cssNames:["border-bottom-right-radius"],values1:{values:v,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},cursor:{cssNames:["cursor"],values1:{values:["auto","default","none","context-menu","help","pointer","progress","wait","cell","crosshair","text","vertical-text","alias","copy","move","no-drop","not-allowed","e-resize","n-resize","ne-resize","nw-resize","s-resize","se-resize","sw-resize","w-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","col-resize","row-resize","all-scroll","zoom-in","zoom-out","grab","grabbing"]},values2:{values:[]},values3:{values:[]}},zIndex:{cssNames:["z-index"],values1:{values:[1,2,3,4,5,10,11,12,13,14,15,100,101,102,103,104,105,1e3,1001,1002,1003,1004,1005]},values2:{values:[]},values3:{values:[]}},overflow:{cssNames:["overflow"],values1:{values:P},values2:{values:[]},values3:{values:[]}},overflowX:{cssNames:["overflow-x"],values1:{values:P},values2:{values:[]},values3:{values:[]}},overflowY:{cssNames:["overflow-y"],values1:{values:P},values2:{values:[]},values3:{values:[]}},opacity:{cssNames:["opacity"],values1:{values:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1]},values2:{values:[]},values3:{values:[]}},fontSize:{cssNames:["font-size"],values1:{values:v,formatValue:e.Value.px},values2:{values:["inherit"]},values3:{values:[]}},fontStyle:{cssNames:["font-style"],values1:{values:["italic","normal","oblique"]},values2:{values:[]},values3:{values:[]}},fontWeight:{cssNames:["font-weight"],values1:{values:[100,200,300,400,500,600,700,800,900]},values2:{values:[]},values3:{values:[]}},letterSpacing:{cssNames:["letter-spacing"],values1:{values:v,formatValue:e.Value.px},values2:{values:[]},values3:{values:[]}},lineHeight:{cssNames:["line-height"],values1:{values:v,formatValue:e.Value.px},values2:{values:["font-size"],formatValue:()=>"1"},values3:{values:[]}},textDecoration:{cssNames:["text-decoration"],values1:{values:["none","underline","overline","line-through"]},values2:{values:[]},values3:{values:[]}},textTransform:{cssNames:["text-transform"],values1:{values:["none","capitalize","lowercase","uppercase"]},values2:{values:[]},values3:{values:[]}},textAlign:{cssNames:["text-align"],values1:{values:["left","right","center","justify"]},values2:{values:[]},values3:{values:[]}},flexWrap:{cssNames:["flex-wrap"],values1:{values:["nowrap","wrap","wrap-reverse"]},values2:{values:[]},values3:{values:[]}},jc:{cssNames:["justify-content"],values1:{values:["start","end","flex-start","flex-end","center","left","right","space-between","space-around","space-evenly","stretch"]},values2:{values:[]},values3:{values:[]}},ai:{cssNames:["align-items"],values1:{values:["stretch","flex-start","flex-end","center","baseline","start","end","self-start","self-end"]},values2:{values:[]},values3:{values:[]}},alignContent:{cssNames:["align-content"],values1:{values:["flex-start","flex-end","center","space-between","space-around","space-evenly","stretch","start","end","baseline"]},values2:{values:[]},values3:{values:[]}},flex1:{cssNames:["flex"],values1:{values:[!0],formatValue:()=>"1"},values2:{values:[]},values3:{values:[]}},d:{cssNames:["flex-direction"],values1:{values:["row","row-reverse","column","column-reverse"]},values2:{values:[]},values3:{values:[]}},gap:{cssNames:["gap"],values1:{values:v,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},rowGap:{cssNames:["row-gap"],values1:{values:v,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},columnGap:{cssNames:["column-gap"],values1:{values:v,formatValue:e.Value.rem},values2:{values:[]},values3:{values:[]}},order:{cssNames:["order"],values1:{values:v},values2:{values:[]},values3:{values:[]}},flexGrow:{cssNames:["flex-grow"],values1:{values:v},values2:{values:[]},values3:{values:[]}},flexShrink:{cssNames:["flex-shrink"],values1:{values:v},values2:{values:[]},values3:{values:[]}},alignSelf:{cssNames:["align-self"],values1:{values:K},values2:{values:[]},values3:{values:[]}},justifySelf:{cssNames:["justify-self"],values1:{values:K},values2:{values:[]},values3:{values:[]}},gridColumns:{cssNames:["grid-template-columns"],values1:{values:v,formatValue:e.Value.gridColumns},values2:{values:[]},values3:{values:[]}},colSpan:{cssNames:["grid-column"],values1:{values:v,formatValue:e.Value.gridColumn},values2:{values:["full-row"],formatValue:e.Value.gridColumn},values3:{values:[]}},colStart:{cssNames:["grid-column-start"],values1:{values:v},values2:{values:[]},values3:{values:[]}},colEnd:{cssNames:["grid-column-end"],values1:{values:v},values2:{values:[]},values3:{values:[]}},outline:{cssNames:["outline-width"],values1:{values:v,formatValue:e.Value.px},values2:{values:[]},values3:{values:[]}},outlineStyle:{cssNames:["outline-style"],values1:{values:W},values2:{values:[]},values3:{values:[]}},outlineOffset:{cssNames:["outline-offset"],values1:{values:v,formatValue:e.Value.px},values2:{values:[]},values3:{values:[]}},transition:{cssNames:["transition-property"],values1:{values:["none","all"]},values2:{values:[]},values3:{values:[]}},transitionDuration:{cssNames:["transition-duration"],values1:{values:[50,100,150,200,250,300,350,400,450,500,550,600,650,700,750,800,850,900,950,1e3],formatValue:e.Value.ms},values2:{values:[]},values3:{values:[]}},userSelect:{cssNames:["user-select"],values1:{values:["none","auto","text","all"]},values2:{values:[]},values3:{values:[]}},appearance:{cssNames:["appearance"],values1:{values:["none","auto","menulist-button","textfield","button","checkbox"]},values2:{values:[]},values3:{values:[]}},pointerEvents:{cssNames:["pointer-events"],values1:{values:["none","auto","all"]},values2:{values:[]},values3:{values:[]}},whiteSpace:{cssNames:["white-space"],values1:{values:["break-spaces","normal","nowrap","pre","pre-line","pre-wrap"]},values2:{values:[]},values3:{values:[]}},textOverflow:{cssNames:["text-overflow"],values1:{values:["clip","ellipsis"]},values2:{values:[]},values3:{values:[]}},rotate:{cssNames:["rotate"],values1:{values:[0,90,180,270,-90,-180,-270],formatValue:e.Value.rotate},values2:{values:[]},values3:{values:[]}},flip:{cssNames:["scale"],values1:{values:["xAxis","yAxis"],formatValue:e.Value.flip},values2:{values:[]},values3:{values:[]}}},M={shadow:{cssNames:["box-shadow"],formatValue:e.Value.variables("shadow")},background:{cssNames:["background"],formatValue:e.Value.variables("background")},backgroundImage:{cssNames:["background-image"],formatValue:e.Value.variables("backgroundImage")},color:{cssNames:["color"],formatValue:e.Value.variables("color")},bgColor:{cssNames:["background-color"],formatValue:e.Value.variables("color")},borderColor:{cssNames:["border-color"],formatValue:e.Value.variables("color")},outlineColor:{cssNames:["outline-color"],formatValue:e.Value.variables("color")}},U={fill:{cssNames:["fill"],formatValue:e.Value.svgVariables("color"),formatSelector:e.ClassName.svg},stroke:{cssNames:["stroke"],formatValue:e.Value.svgVariables("color"),formatSelector:e.ClassName.svg}},D=["Hover","Focus","Active","Checked","Indeterminate","Valid","Invalid","Required","Optional","Disabled"],A=["sm","md","lg","xl","xxl"],ue={sm:640,md:768,lg:1024,xl:1280,xxl:1536};function J(){const a={...le};Object.keys(M).forEach(t=>{a[t]=M[t],a[t].isThemeStyle=!0}),Object.keys(U).forEach(t=>{a[t]=U[t],a[t].isThemeStyle=!0});let u=Object.keys(a);return D.forEach(t=>{u.forEach(n=>{a[`${n}${t}`]={...a[n],pseudoSuffix:t}})}),u=Object.keys(a),A.forEach(t=>{u.forEach(n=>{a[`${t}${n}`]={...a[n],breakpoint:t}})}),a}let C=J();function te(){C=J()}function oe(a,u,t){const n=Object.entries(C).filter(([o,m])=>m.pseudoSuffix===a&&!m.customPseudoSuffix&&!(`${o}${u}`in C)).map(([o])=>o);return n.forEach(o=>{C[`${o}${u}`]={...C[o],customPseudoSuffix:t+u}}),n.map(o=>`${o}${u}`)}class re{constructor(){this._index=0,this._cache={}}getIdentity(u){return this._cache[u]||(this._cache[u]=this.getByIndex(this._index++)),this._cache[u]}getByIndex(u){const{first:t,next:n}=ne,o=u-t.length;if(o<0)return t[u];const m=Math.floor(o/n.length),N=o-m*n.length;return this.getByIndex(m)+n[N]}}const ne={first:"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",next:"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"};var _;(a=>{a.boxClassName="_box",a.svgClassName="_svg",a.cronoStylesElementId="crono-styles";const u=`:root{--borderColor: black;--outlineColor: black;--lineHeight: 1.2;--fontSize: 14px;--transitionTime: 0.25s;--svgTransitionTime: 0.3s;#crono-box {position: absolute;top: 0;left: 0;height: 0;}}
|
|
2
2
|
html{font-size: 16px;font-family: Arial, sans-serif;}
|
|
3
3
|
body{margin: 0;line-height: var(--lineHeight);font-size: var(--fontSize);}
|
|
4
4
|
a,ul{all: unset;}
|
|
5
5
|
.${a.boxClassName}{display: block;border: 0 solid var(--borderColor);outline: 0px solid var(--outlineColor);margin: 0;padding: 0;background-color: initial;transition: all var(--transitionTime);box-sizing: border-box;font-family: inherit;font-size: inherit;}
|
|
6
|
-
.${a.svgClassName}{transition: all var(--svgTransitionTime);}.${a.svgClassName} path,.${a.svgClassName} circle,.${a.svgClassName} rect,.${a.svgClassName} line {transition: all var(--svgTransitionTime);}
|
|
7
|
-
`,t=new re;let n=!0,o={};T();function m(l,s,r){if(l in C)return c(l,s,r);if(["disabledGroup","hoverGroup","focusGroup","activeGroup"].includes(l))return l+s}a.get=m;function N(){if(n){let l=
|
|
8
|
-
`),i=Object.entries(
|
|
6
|
+
.${a.svgClassName}{display: block;border: 0 solid var(--borderColor);outline: 0px solid var(--outlineColor);margin: 0;padding: 0;transition: all var(--svgTransitionTime);}.${a.svgClassName} path,.${a.svgClassName} circle,.${a.svgClassName} rect,.${a.svgClassName} line {transition: all var(--svgTransitionTime);}
|
|
7
|
+
`,t=new re;let n=!0,o={};T();function m(l,s,r){if(l in C)return c(l,s,r);if(["disabledGroup","hoverGroup","focusGroup","activeGroup"].includes(l))return l+s}a.get=m;function N(){if(n){let l=d([u]);D.forEach(r=>{l=d(l,r)}),A.forEach(r=>{l.push(`@media(min-width: ${ue[r]}px){`),l=d(l,void 0,r),D.forEach(i=>{l=d(l,i,r)}),l.push("}")});const s=f();s.innerHTML=l.join(""),n=!1}}a.flush=N;function T(){te(),o=Object.keys(C).reduce((s,r)=>(s[r]=new Set,s),{})}a.clear=T;function S(l,s,r){oe(l,s,r).forEach(p=>{o[p]=new Set})}a.addCustomPseudoClass=S;function c(l,s,r){const i=(r??"")+l;o[i].has(s)||(n=!0,o[i].add(s));const p=`${i}${s}`;return process.env.NODE_ENV==="test"?p:t.getIdentity(p)}function d(l,s,r){return Object.entries(o).filter(([p,k])=>{var x,$;return((x=C[p])==null?void 0:x.pseudoSuffix)===s&&(($=C[p])==null?void 0:$.breakpoint)===r&&k.size>0}).reduce((p,[k,x])=>(x.forEach($=>{var L;const g=C[k],y=h(g,$),j=`.${c(k,$)}`;let w=[];s?s==="Hover"?w=i(j,g,y,"hover"):s==="Focus"?w=i(j,g,y,"focus-within"):s==="Active"?w=i(j,g,y,"active"):s==="Checked"?w=i(j,g,y,"checked"):s==="Indeterminate"?w=i(j,g,y,"indeterminate"):s==="Valid"?w=i(j,g,y,"valid"):s==="Invalid"?w=i(j,g,y,"invalid"):s==="Required"?w=i(j,g,y,"required"):s==="Optional"?w=i(j,g,y,"optional"):s==="Disabled"&&(w=i(j,g,y,"disabled")):w=i(j,g,y);const V=((L=y.formatValue)==null?void 0:L.call(y,k,$))??$,ee=C[k].cssNames.map(se=>`${se}:${V};`).join("");p.push(`${w.join(",")}{${ee}}`)}),p),l);function i(p,k,x,$){let g=p;return $&&(g=k.customPseudoSuffix?`.${k.customPseudoSuffix}:${$} ${p}`:`${p}:${$}`),x.formatSelector?x.formatSelector(g):[g]}}function h(l,s){return l.isThemeStyle?l:l.values1.values.includes(s)?l.values1:l.values2.values.includes(s)?l.values2:l.values3}function f(){const s=typeof window<"u"&&typeof window.document<"u"?window.document:global.document;let r=s.getElementById(a.cronoStylesElementId);return r||(r=s.createElement("style"),r.setAttribute("id",a.cronoStylesElementId),r.setAttribute("type","text/css"),s.head.insertBefore(r,s.head.firstChild)),r}a.getElement=f})(_||(_={}));const E=_,H={button:{styles:{display:"inline-block",p:3,cursor:"pointer",b:1,borderRadius:1,userSelect:"none",disabled:{cursor:"default"}}},checkbox:{styles:{display:"inline-block"}},radioButton:{styles:{display:"inline-block",b:1,p:2}},textbox:{styles:{display:"inline-block",b:1,borderRadius:1,p:3}},textarea:{styles:{display:"inline-block",b:1,borderRadius:1}}},ve={Hover:"hover",Focus:"focus",Active:"active",Checked:"checked",Indeterminate:"indeterminate",Valid:"valid",Invalid:"invalid",Required:"required",Optional:"optional",Disabled:"disabled"};var q;(a=>{a.Styles={};function u(c){a.Styles=o(H),a.Styles=n(c)}a.setup=u;function t(c,d){const{colors:h={},shadows:f={},backgrounds:l={},backgroundImages:s={}}=c;h.none="none",f.none="none",l.none="none",s.none="none";const r=Object.entries(h).map(([V,O])=>`--color${V}: ${O};`).join(`
|
|
8
|
+
`),i=Object.entries(f).map(([V,O])=>`--shadow${V}: ${O};`).join(`
|
|
9
9
|
`),p=Object.entries(l).map(([V,O])=>`--background${V}: ${O};`).join(`
|
|
10
10
|
`),k=Object.entries(s).map(([V,O])=>`--backgroundImage${V}: ${O};`).join(`
|
|
11
|
-
`),
|
|
11
|
+
`),x=[":root {"];r&&x.push(` ${r}`),i&&x.push(` ${i}`),p&&x.push(` ${p}`),k&&x.push(` ${k}`),x.push("}");const $=Object.keys(h).map(V=>`'${V}'`).join(" | "),g=Object.keys(l).map(V=>`'${V}'`).join(" | "),y=Object.keys(s).map(V=>`'${V}'`).join(" | "),j=Object.keys(f).map(V=>`'${V}'`).join(" | "),w=`import '@cronocode/react-box';
|
|
12
12
|
|
|
13
|
-
declare module '${(
|
|
13
|
+
declare module '${(d==null?void 0:d.namespacePath)??"@cronocode/react-box/core/types"}' {
|
|
14
14
|
type ColorType = ${$};
|
|
15
15
|
type BackgroundType = ${g};
|
|
16
16
|
type BackgroundImageType = ${y};
|
|
@@ -33,5 +33,5 @@ a,ul{all: unset;}
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
`;return{variables:
|
|
37
|
-
`),boxDts:
|
|
36
|
+
`;return{variables:x.join(`
|
|
37
|
+
`),boxDts:w}}a.setupAugmentedProps=t;function n(c){const d=o(c);return Object.keys(H).forEach(f=>{const l=d[f],s=H[f];l?l.styles={...s.styles,...l.styles}:d[f]=H[f]}),d}function o(c){return m(c),T(c),c}function m(c){if(!c.components)return;const d=Object.keys(c.components);for(const h of d){const f=c.components[h],l=N(h,f);delete f.children;for(const s of l){const[r,i]=s;c.components[r]=i}}}function N(c,d){if(!d.children)return[];const h=Object.keys(d.children),f=[];for(const l of h){const s=`${c}.${l}`,r=d.children[l],i=N(s,r);f.push(...i),delete r.children,f.push([s,r])}return f}function T(c){const{components:d,...h}=c,f=Object.values(h);d&&f.push(...Object.values(d));for(const l of f)S(l.styles),A.forEach(s=>{if(s in l.styles){const r=l.styles[s];S(r)}}),l.themes&&Object.values(l.themes).forEach(s=>{S(s),A.forEach(r=>{if(r in s){const i=s[r];S(i)}})})}function S(c){Object.entries(ve).forEach(([d,h])=>{if(h in c){const f=c[h];Object.entries(f).map(([l,s])=>{c[`${l}${d}`]=s}),delete c[h]}})}})(q||(q={}));const F=q;function ie(a){const{clean:u,theme:t,component:n}=a;return G.useMemo(()=>{var m,N;if(u)return;let o=F.Styles[n]??((m=F.Styles.components)==null?void 0:m[n]);if(o)return t?{...o.styles,...(N=o.themes)==null?void 0:N[t]}:o.styles},[n,u,t])}const ce=typeof window<"u"&&typeof window.document<"u",me=ce?G.useLayoutEffect:G.useEffect;function de(a,u){const t=ie(a);return me(E.flush,[a]),G.useMemo(()=>{const n=[u?E.svgClassName:E.boxClassName],o=t?{...t,...a}:{...a};return X(o),Object.entries(o).forEach(([m,N])=>{n.push(E.get(m,N))}),A.forEach(m=>{if(m in o){const N=o[m];X(N),Object.entries(N).forEach(([T,S])=>{n.push(E.get(T,S,m))}),delete o[m]}}),n},[a,t])}function X(a){B(a,"hover","Hover"),B(a,"focus","Focus"),B(a,"active","Active"),B(a,"disabled","Disabled"),R(a,"hoverGroup","Hover"),R(a,"focusGroup","Focus"),R(a,"activeGroup","Active"),R(a,"disabledGroup","Disabled")}function B(a,u,t){u in a&&Q(a,u,t,a[u])}function R(a,u,t){u in a&&Y.ObjectUtils.isObject(a[u])&&Object.entries(a[u]).forEach(([n,o])=>{E.addCustomPseudoClass(t,n,u),Q(a,u,t+n,o)})}function Q(a,u,t,n){Array.isArray(n)?(Object.entries(n[1]).forEach(([o,m])=>{a[`${o}${t}`]=m}),a[u]=n[0]):Y.ObjectUtils.isObject(n)&&(Object.entries(n).forEach(([o,m])=>{a[`${o}${t}`]=m}),delete a[u])}function Z(...a){return a.reduce((u,t)=>t?typeof t=="string"?(u.push(t),u):Array.isArray(t)?(u.push(...Z(...t)),u):(Object.entries(t).forEach(([n,o])=>{o&&u.push(n)}),u):u,[])}exports.StylesContext=E;exports.Theme=F;exports.classNames=Z;exports.useStyles=de;
|
package/core.mjs
CHANGED
|
@@ -52,18 +52,18 @@ var e;
|
|
|
52
52
|
return s === "full-row" ? "1/-1" : `span ${s}/span ${s}`;
|
|
53
53
|
}
|
|
54
54
|
u.gridColumn = c;
|
|
55
|
-
function
|
|
55
|
+
function d(l, s) {
|
|
56
56
|
return `${s}ms`;
|
|
57
57
|
}
|
|
58
|
-
u.ms =
|
|
59
|
-
function
|
|
58
|
+
u.ms = d;
|
|
59
|
+
function h(l, s) {
|
|
60
60
|
return `${s}deg`;
|
|
61
61
|
}
|
|
62
|
-
u.rotate =
|
|
63
|
-
function
|
|
62
|
+
u.rotate = h;
|
|
63
|
+
function f(l, s) {
|
|
64
64
|
return s === "xAxis" ? "-1 1" : "1 -1";
|
|
65
65
|
}
|
|
66
|
-
u.flip =
|
|
66
|
+
u.flip = f;
|
|
67
67
|
})(a.Value || (a.Value = {}));
|
|
68
68
|
})(e || (e = {}));
|
|
69
69
|
const v = [
|
|
@@ -185,7 +185,7 @@ const v = [
|
|
|
185
185
|
-92,
|
|
186
186
|
-96,
|
|
187
187
|
-100
|
|
188
|
-
],
|
|
188
|
+
], b = [...v, ...le], F = ["solid", "dashed", "dotted", "double", "groove", "ridge", "inset", "outset", "none", "hidden"], G = ["auto", "hidden", "scroll", "visible"], E = [
|
|
189
189
|
"1/2",
|
|
190
190
|
"1/3",
|
|
191
191
|
"2/3",
|
|
@@ -302,115 +302,115 @@ const v = [
|
|
|
302
302
|
},
|
|
303
303
|
top: {
|
|
304
304
|
cssNames: ["top"],
|
|
305
|
-
values1: { values:
|
|
305
|
+
values1: { values: b, formatValue: e.Value.rem },
|
|
306
306
|
values2: { values: [] },
|
|
307
307
|
values3: { values: [] }
|
|
308
308
|
},
|
|
309
309
|
right: {
|
|
310
310
|
cssNames: ["right"],
|
|
311
|
-
values1: { values:
|
|
311
|
+
values1: { values: b, formatValue: e.Value.rem },
|
|
312
312
|
values2: { values: [] },
|
|
313
313
|
values3: { values: [] }
|
|
314
314
|
},
|
|
315
315
|
bottom: {
|
|
316
316
|
cssNames: ["bottom"],
|
|
317
|
-
values1: { values:
|
|
317
|
+
values1: { values: b, formatValue: e.Value.rem },
|
|
318
318
|
values2: { values: [] },
|
|
319
319
|
values3: { values: [] }
|
|
320
320
|
},
|
|
321
321
|
left: {
|
|
322
322
|
cssNames: ["left"],
|
|
323
|
-
values1: { values:
|
|
323
|
+
values1: { values: b, formatValue: e.Value.rem },
|
|
324
324
|
values2: { values: [] },
|
|
325
325
|
values3: { values: [] }
|
|
326
326
|
},
|
|
327
327
|
inset: {
|
|
328
328
|
cssNames: ["inset"],
|
|
329
|
-
values1: { values:
|
|
329
|
+
values1: { values: b, formatValue: e.Value.rem },
|
|
330
330
|
values2: { values: [] },
|
|
331
331
|
values3: { values: [] }
|
|
332
332
|
},
|
|
333
333
|
m: {
|
|
334
334
|
cssNames: ["margin"],
|
|
335
|
-
values1: { values:
|
|
335
|
+
values1: { values: b, formatValue: e.Value.rem },
|
|
336
336
|
values2: { values: ["auto"] },
|
|
337
337
|
values3: { values: [] }
|
|
338
338
|
},
|
|
339
339
|
mx: {
|
|
340
340
|
cssNames: ["margin-inline"],
|
|
341
|
-
values1: { values:
|
|
341
|
+
values1: { values: b, formatValue: e.Value.rem },
|
|
342
342
|
values2: { values: ["auto"] },
|
|
343
343
|
values3: { values: [] }
|
|
344
344
|
},
|
|
345
345
|
my: {
|
|
346
346
|
cssNames: ["margin-block"],
|
|
347
|
-
values1: { values:
|
|
347
|
+
values1: { values: b, formatValue: e.Value.rem },
|
|
348
348
|
values2: { values: ["auto"] },
|
|
349
349
|
values3: { values: [] }
|
|
350
350
|
},
|
|
351
351
|
mt: {
|
|
352
352
|
cssNames: ["margin-top"],
|
|
353
|
-
values1: { values:
|
|
353
|
+
values1: { values: b, formatValue: e.Value.rem },
|
|
354
354
|
values2: { values: ["auto"] },
|
|
355
355
|
values3: { values: [] }
|
|
356
356
|
},
|
|
357
357
|
mr: {
|
|
358
358
|
cssNames: ["margin-right"],
|
|
359
|
-
values1: { values:
|
|
359
|
+
values1: { values: b, formatValue: e.Value.rem },
|
|
360
360
|
values2: { values: ["auto"] },
|
|
361
361
|
values3: { values: [] }
|
|
362
362
|
},
|
|
363
363
|
mb: {
|
|
364
364
|
cssNames: ["margin-bottom"],
|
|
365
|
-
values1: { values:
|
|
365
|
+
values1: { values: b, formatValue: e.Value.rem },
|
|
366
366
|
values2: { values: ["auto"] },
|
|
367
367
|
values3: { values: [] }
|
|
368
368
|
},
|
|
369
369
|
ml: {
|
|
370
370
|
cssNames: ["margin-left"],
|
|
371
|
-
values1: { values:
|
|
371
|
+
values1: { values: b, formatValue: e.Value.rem },
|
|
372
372
|
values2: { values: ["auto"] },
|
|
373
373
|
values3: { values: [] }
|
|
374
374
|
},
|
|
375
375
|
p: {
|
|
376
376
|
cssNames: ["padding"],
|
|
377
|
-
values1: { values:
|
|
377
|
+
values1: { values: b, formatValue: e.Value.rem },
|
|
378
378
|
values2: { values: [] },
|
|
379
379
|
values3: { values: [] }
|
|
380
380
|
},
|
|
381
381
|
px: {
|
|
382
382
|
cssNames: ["padding-inline"],
|
|
383
|
-
values1: { values:
|
|
383
|
+
values1: { values: b, formatValue: e.Value.rem },
|
|
384
384
|
values2: { values: [] },
|
|
385
385
|
values3: { values: [] }
|
|
386
386
|
},
|
|
387
387
|
py: {
|
|
388
388
|
cssNames: ["padding-block"],
|
|
389
|
-
values1: { values:
|
|
389
|
+
values1: { values: b, formatValue: e.Value.rem },
|
|
390
390
|
values2: { values: [] },
|
|
391
391
|
values3: { values: [] }
|
|
392
392
|
},
|
|
393
393
|
pt: {
|
|
394
394
|
cssNames: ["padding-top"],
|
|
395
|
-
values1: { values:
|
|
395
|
+
values1: { values: b, formatValue: e.Value.rem },
|
|
396
396
|
values2: { values: [] },
|
|
397
397
|
values3: { values: [] }
|
|
398
398
|
},
|
|
399
399
|
pr: {
|
|
400
400
|
cssNames: ["padding-right"],
|
|
401
|
-
values1: { values:
|
|
401
|
+
values1: { values: b, formatValue: e.Value.rem },
|
|
402
402
|
values2: { values: [] },
|
|
403
403
|
values3: { values: [] }
|
|
404
404
|
},
|
|
405
405
|
pb: {
|
|
406
406
|
cssNames: ["padding-bottom"],
|
|
407
|
-
values1: { values:
|
|
407
|
+
values1: { values: b, formatValue: e.Value.rem },
|
|
408
408
|
values2: { values: [] },
|
|
409
409
|
values3: { values: [] }
|
|
410
410
|
},
|
|
411
411
|
pl: {
|
|
412
412
|
cssNames: ["padding-left"],
|
|
413
|
-
values1: { values:
|
|
413
|
+
values1: { values: b, formatValue: e.Value.rem },
|
|
414
414
|
values2: { values: [] },
|
|
415
415
|
values3: { values: [] }
|
|
416
416
|
},
|
|
@@ -422,37 +422,37 @@ const v = [
|
|
|
422
422
|
},
|
|
423
423
|
bx: {
|
|
424
424
|
cssNames: ["border-inline-width"],
|
|
425
|
-
values1: { values:
|
|
425
|
+
values1: { values: b, formatValue: e.Value.px },
|
|
426
426
|
values2: { values: [] },
|
|
427
427
|
values3: { values: [] }
|
|
428
428
|
},
|
|
429
429
|
by: {
|
|
430
430
|
cssNames: ["border-block-width"],
|
|
431
|
-
values1: { values:
|
|
431
|
+
values1: { values: b, formatValue: e.Value.px },
|
|
432
432
|
values2: { values: [] },
|
|
433
433
|
values3: { values: [] }
|
|
434
434
|
},
|
|
435
435
|
bt: {
|
|
436
436
|
cssNames: ["border-top-width"],
|
|
437
|
-
values1: { values:
|
|
437
|
+
values1: { values: b, formatValue: e.Value.px },
|
|
438
438
|
values2: { values: [] },
|
|
439
439
|
values3: { values: [] }
|
|
440
440
|
},
|
|
441
441
|
br: {
|
|
442
442
|
cssNames: ["border-right-width"],
|
|
443
|
-
values1: { values:
|
|
443
|
+
values1: { values: b, formatValue: e.Value.px },
|
|
444
444
|
values2: { values: [] },
|
|
445
445
|
values3: { values: [] }
|
|
446
446
|
},
|
|
447
447
|
bb: {
|
|
448
448
|
cssNames: ["border-bottom-width"],
|
|
449
|
-
values1: { values:
|
|
449
|
+
values1: { values: b, formatValue: e.Value.px },
|
|
450
450
|
values2: { values: [] },
|
|
451
451
|
values3: { values: [] }
|
|
452
452
|
},
|
|
453
453
|
bl: {
|
|
454
454
|
cssNames: ["border-left-width"],
|
|
455
|
-
values1: { values:
|
|
455
|
+
values1: { values: b, formatValue: e.Value.px },
|
|
456
456
|
values2: { values: [] },
|
|
457
457
|
values3: { values: [] }
|
|
458
458
|
},
|
|
@@ -819,7 +819,7 @@ const v = [
|
|
|
819
819
|
},
|
|
820
820
|
appearance: {
|
|
821
821
|
cssNames: ["appearance"],
|
|
822
|
-
values1: { values: ["none"] },
|
|
822
|
+
values1: { values: ["none", "auto", "menulist-button", "textfield", "button", "checkbox"] },
|
|
823
823
|
values2: { values: [] },
|
|
824
824
|
values3: { values: [] }
|
|
825
825
|
},
|
|
@@ -950,7 +950,7 @@ html{font-size: 16px;font-family: Arial, sans-serif;}
|
|
|
950
950
|
body{margin: 0;line-height: var(--lineHeight);font-size: var(--fontSize);}
|
|
951
951
|
a,ul{all: unset;}
|
|
952
952
|
.${a.boxClassName}{display: block;border: 0 solid var(--borderColor);outline: 0px solid var(--outlineColor);margin: 0;padding: 0;background-color: initial;transition: all var(--transitionTime);box-sizing: border-box;font-family: inherit;font-size: inherit;}
|
|
953
|
-
.${a.svgClassName}{transition: all var(--svgTransitionTime);}.${a.svgClassName} path,.${a.svgClassName} circle,.${a.svgClassName} rect,.${a.svgClassName} line {transition: all var(--svgTransitionTime);}
|
|
953
|
+
.${a.svgClassName}{display: block;border: 0 solid var(--borderColor);outline: 0px solid var(--outlineColor);margin: 0;padding: 0;transition: all var(--svgTransitionTime);}.${a.svgClassName} path,.${a.svgClassName} circle,.${a.svgClassName} rect,.${a.svgClassName} line {transition: all var(--svgTransitionTime);}
|
|
954
954
|
`, t = new ne();
|
|
955
955
|
let n = !0, o = {};
|
|
956
956
|
T();
|
|
@@ -963,15 +963,15 @@ a,ul{all: unset;}
|
|
|
963
963
|
a.get = m;
|
|
964
964
|
function N() {
|
|
965
965
|
if (n) {
|
|
966
|
-
let l =
|
|
966
|
+
let l = d([u]);
|
|
967
967
|
P.forEach((r) => {
|
|
968
|
-
l =
|
|
968
|
+
l = d(l, r);
|
|
969
969
|
}), A.forEach((r) => {
|
|
970
|
-
l.push(`@media(min-width: ${te[r]}px){`), l =
|
|
971
|
-
l =
|
|
970
|
+
l.push(`@media(min-width: ${te[r]}px){`), l = d(l, void 0, r), P.forEach((i) => {
|
|
971
|
+
l = d(l, i, r);
|
|
972
972
|
}), l.push("}");
|
|
973
973
|
});
|
|
974
|
-
const s =
|
|
974
|
+
const s = f();
|
|
975
975
|
s.innerHTML = l.join(""), n = !1;
|
|
976
976
|
}
|
|
977
977
|
}
|
|
@@ -995,34 +995,34 @@ a,ul{all: unset;}
|
|
|
995
995
|
const p = `${i}${s}`;
|
|
996
996
|
return process.env.NODE_ENV === "test" ? p : t.getIdentity(p);
|
|
997
997
|
}
|
|
998
|
-
function
|
|
998
|
+
function d(l, s, r) {
|
|
999
999
|
return Object.entries(o).filter(
|
|
1000
1000
|
([p, k]) => {
|
|
1001
|
-
var
|
|
1002
|
-
return ((
|
|
1001
|
+
var x, $;
|
|
1002
|
+
return ((x = C[p]) == null ? void 0 : x.pseudoSuffix) === s && (($ = C[p]) == null ? void 0 : $.breakpoint) === r && k.size > 0;
|
|
1003
1003
|
}
|
|
1004
|
-
).reduce((p, [k,
|
|
1004
|
+
).reduce((p, [k, x]) => (x.forEach(($) => {
|
|
1005
1005
|
var q;
|
|
1006
|
-
const g = C[k], y =
|
|
1007
|
-
let
|
|
1008
|
-
s ? s === "Hover" ?
|
|
1006
|
+
const g = C[k], y = h(g, $), j = `.${c(k, $)}`;
|
|
1007
|
+
let w = [];
|
|
1008
|
+
s ? s === "Hover" ? w = i(j, g, y, "hover") : s === "Focus" ? w = i(j, g, y, "focus-within") : s === "Active" ? w = i(j, g, y, "active") : s === "Checked" ? w = i(j, g, y, "checked") : s === "Indeterminate" ? w = i(j, g, y, "indeterminate") : s === "Valid" ? w = i(j, g, y, "valid") : s === "Invalid" ? w = i(j, g, y, "invalid") : s === "Required" ? w = i(j, g, y, "required") : s === "Optional" ? w = i(j, g, y, "optional") : s === "Disabled" && (w = i(j, g, y, "disabled")) : w = i(j, g, y);
|
|
1009
1009
|
const V = ((q = y.formatValue) == null ? void 0 : q.call(y, k, $)) ?? $, Z = C[k].cssNames.map((ee) => `${ee}:${V};`).join("");
|
|
1010
|
-
p.push(`${
|
|
1010
|
+
p.push(`${w.join(",")}{${Z}}`);
|
|
1011
1011
|
}), p), l);
|
|
1012
|
-
function i(p, k,
|
|
1012
|
+
function i(p, k, x, $) {
|
|
1013
1013
|
let g = p;
|
|
1014
|
-
return $ && (g = k.customPseudoSuffix ? `.${k.customPseudoSuffix}:${$} ${p}` : `${p}:${$}`),
|
|
1014
|
+
return $ && (g = k.customPseudoSuffix ? `.${k.customPseudoSuffix}:${$} ${p}` : `${p}:${$}`), x.formatSelector ? x.formatSelector(g) : [g];
|
|
1015
1015
|
}
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1017
|
+
function h(l, s) {
|
|
1018
1018
|
return l.isThemeStyle ? l : l.values1.values.includes(s) ? l.values1 : l.values2.values.includes(s) ? l.values2 : l.values3;
|
|
1019
1019
|
}
|
|
1020
|
-
function
|
|
1020
|
+
function f() {
|
|
1021
1021
|
const s = typeof window < "u" && typeof window.document < "u" ? window.document : global.document;
|
|
1022
1022
|
let r = s.getElementById(a.cronoStylesElementId);
|
|
1023
1023
|
return r || (r = s.createElement("style"), r.setAttribute("id", a.cronoStylesElementId), r.setAttribute("type", "text/css"), s.head.insertBefore(r, s.head.firstChild)), r;
|
|
1024
1024
|
}
|
|
1025
|
-
a.getElement =
|
|
1025
|
+
a.getElement = f;
|
|
1026
1026
|
})(D || (D = {}));
|
|
1027
1027
|
const I = D, H = {
|
|
1028
1028
|
button: {
|
|
@@ -1084,18 +1084,18 @@ var _;
|
|
|
1084
1084
|
a.Styles = o(H), a.Styles = n(c);
|
|
1085
1085
|
}
|
|
1086
1086
|
a.setup = u;
|
|
1087
|
-
function t(c,
|
|
1088
|
-
const { colors:
|
|
1089
|
-
|
|
1090
|
-
const r = Object.entries(
|
|
1091
|
-
`), i = Object.entries(
|
|
1087
|
+
function t(c, d) {
|
|
1088
|
+
const { colors: h = {}, shadows: f = {}, backgrounds: l = {}, backgroundImages: s = {} } = c;
|
|
1089
|
+
h.none = "none", f.none = "none", l.none = "none", s.none = "none";
|
|
1090
|
+
const r = Object.entries(h).map(([V, O]) => `--color${V}: ${O};`).join(`
|
|
1091
|
+
`), i = Object.entries(f).map(([V, O]) => `--shadow${V}: ${O};`).join(`
|
|
1092
1092
|
`), p = Object.entries(l).map(([V, O]) => `--background${V}: ${O};`).join(`
|
|
1093
1093
|
`), k = Object.entries(s).map(([V, O]) => `--backgroundImage${V}: ${O};`).join(`
|
|
1094
|
-
`),
|
|
1095
|
-
r &&
|
|
1096
|
-
const $ = Object.keys(
|
|
1094
|
+
`), x = [":root {"];
|
|
1095
|
+
r && x.push(` ${r}`), i && x.push(` ${i}`), p && x.push(` ${p}`), k && x.push(` ${k}`), x.push("}");
|
|
1096
|
+
const $ = Object.keys(h).map((V) => `'${V}'`).join(" | "), g = Object.keys(l).map((V) => `'${V}'`).join(" | "), y = Object.keys(s).map((V) => `'${V}'`).join(" | "), j = Object.keys(f).map((V) => `'${V}'`).join(" | "), w = `import '@cronocode/react-box';
|
|
1097
1097
|
|
|
1098
|
-
declare module '${(
|
|
1098
|
+
declare module '${(d == null ? void 0 : d.namespacePath) ?? "@cronocode/react-box/core/types"}' {
|
|
1099
1099
|
type ColorType = ${$};
|
|
1100
1100
|
type BackgroundType = ${g};
|
|
1101
1101
|
type BackgroundImageType = ${y};
|
|
@@ -1120,18 +1120,18 @@ var _;
|
|
|
1120
1120
|
}
|
|
1121
1121
|
`;
|
|
1122
1122
|
return {
|
|
1123
|
-
variables:
|
|
1123
|
+
variables: x.join(`
|
|
1124
1124
|
`),
|
|
1125
|
-
boxDts:
|
|
1125
|
+
boxDts: w
|
|
1126
1126
|
};
|
|
1127
1127
|
}
|
|
1128
1128
|
a.setupAugmentedProps = t;
|
|
1129
1129
|
function n(c) {
|
|
1130
|
-
const
|
|
1131
|
-
return Object.keys(H).forEach((
|
|
1132
|
-
const l = f
|
|
1133
|
-
l ? l.styles = { ...s.styles, ...l.styles } : f
|
|
1134
|
-
}),
|
|
1130
|
+
const d = o(c);
|
|
1131
|
+
return Object.keys(H).forEach((f) => {
|
|
1132
|
+
const l = d[f], s = H[f];
|
|
1133
|
+
l ? l.styles = { ...s.styles, ...l.styles } : d[f] = H[f];
|
|
1134
|
+
}), d;
|
|
1135
1135
|
}
|
|
1136
1136
|
function o(c) {
|
|
1137
1137
|
return m(c), T(c), c;
|
|
@@ -1139,30 +1139,30 @@ var _;
|
|
|
1139
1139
|
function m(c) {
|
|
1140
1140
|
if (!c.components)
|
|
1141
1141
|
return;
|
|
1142
|
-
const
|
|
1143
|
-
for (const
|
|
1144
|
-
const
|
|
1145
|
-
delete
|
|
1142
|
+
const d = Object.keys(c.components);
|
|
1143
|
+
for (const h of d) {
|
|
1144
|
+
const f = c.components[h], l = N(h, f);
|
|
1145
|
+
delete f.children;
|
|
1146
1146
|
for (const s of l) {
|
|
1147
1147
|
const [r, i] = s;
|
|
1148
1148
|
c.components[r] = i;
|
|
1149
1149
|
}
|
|
1150
1150
|
}
|
|
1151
1151
|
}
|
|
1152
|
-
function N(c,
|
|
1153
|
-
if (!
|
|
1152
|
+
function N(c, d) {
|
|
1153
|
+
if (!d.children)
|
|
1154
1154
|
return [];
|
|
1155
|
-
const
|
|
1156
|
-
for (const l of
|
|
1157
|
-
const s = `${c}.${l}`, r =
|
|
1158
|
-
|
|
1155
|
+
const h = Object.keys(d.children), f = [];
|
|
1156
|
+
for (const l of h) {
|
|
1157
|
+
const s = `${c}.${l}`, r = d.children[l], i = N(s, r);
|
|
1158
|
+
f.push(...i), delete r.children, f.push([s, r]);
|
|
1159
1159
|
}
|
|
1160
|
-
return
|
|
1160
|
+
return f;
|
|
1161
1161
|
}
|
|
1162
1162
|
function T(c) {
|
|
1163
|
-
const { components:
|
|
1164
|
-
|
|
1165
|
-
for (const l of
|
|
1163
|
+
const { components: d, ...h } = c, f = Object.values(h);
|
|
1164
|
+
d && f.push(...Object.values(d));
|
|
1165
|
+
for (const l of f)
|
|
1166
1166
|
S(l.styles), A.forEach((s) => {
|
|
1167
1167
|
if (s in l.styles) {
|
|
1168
1168
|
const r = l.styles[s];
|
|
@@ -1178,12 +1178,12 @@ var _;
|
|
|
1178
1178
|
});
|
|
1179
1179
|
}
|
|
1180
1180
|
function S(c) {
|
|
1181
|
-
Object.entries(ie).forEach(([
|
|
1182
|
-
if (
|
|
1183
|
-
const
|
|
1184
|
-
Object.entries(
|
|
1185
|
-
c[`${l}${
|
|
1186
|
-
}), delete c[
|
|
1181
|
+
Object.entries(ie).forEach(([d, h]) => {
|
|
1182
|
+
if (h in c) {
|
|
1183
|
+
const f = c[h];
|
|
1184
|
+
Object.entries(f).map(([l, s]) => {
|
|
1185
|
+
c[`${l}${d}`] = s;
|
|
1186
|
+
}), delete c[h];
|
|
1187
1187
|
}
|
|
1188
1188
|
});
|
|
1189
1189
|
}
|
|
@@ -1200,10 +1200,10 @@ function ce(a) {
|
|
|
1200
1200
|
return t ? { ...o.styles, ...(N = o.themes) == null ? void 0 : N[t] } : o.styles;
|
|
1201
1201
|
}, [n, u, t]);
|
|
1202
1202
|
}
|
|
1203
|
-
const me = typeof window < "u" && typeof window.document < "u",
|
|
1203
|
+
const me = typeof window < "u" && typeof window.document < "u", de = me ? se : ae;
|
|
1204
1204
|
function ge(a, u) {
|
|
1205
1205
|
const t = ce(a);
|
|
1206
|
-
return
|
|
1206
|
+
return de(I.flush, [a]), X(() => {
|
|
1207
1207
|
const n = [u ? I.svgClassName : I.boxClassName], o = t ? { ...t, ...a } : { ...a };
|
|
1208
1208
|
return U(o), Object.entries(o).forEach(([m, N]) => {
|
|
1209
1209
|
n.push(I.get(m, N));
|
|
@@ -1235,14 +1235,14 @@ function Q(a, u, t, n) {
|
|
|
1235
1235
|
a[`${o}${t}`] = m;
|
|
1236
1236
|
}), delete a[u]);
|
|
1237
1237
|
}
|
|
1238
|
-
function
|
|
1239
|
-
return a.reduce((u, t) => t ? typeof t == "string" ? (u.push(t), u) : Array.isArray(t) ? (u.push(...
|
|
1238
|
+
function fe(...a) {
|
|
1239
|
+
return a.reduce((u, t) => t ? typeof t == "string" ? (u.push(t), u) : Array.isArray(t) ? (u.push(...fe(...t)), u) : (Object.entries(t).forEach(([n, o]) => {
|
|
1240
1240
|
o && u.push(n);
|
|
1241
1241
|
}), u) : u, []);
|
|
1242
1242
|
}
|
|
1243
1243
|
export {
|
|
1244
1244
|
I as S,
|
|
1245
1245
|
M as T,
|
|
1246
|
-
|
|
1246
|
+
fe as c,
|
|
1247
1247
|
ge as u
|
|
1248
1248
|
};
|