amotify 0.1.33 → 0.1.34
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/@declaration/_.js +1 -1
- package/dist/@declaration/property.d.ts +2 -2
- package/dist/@styles/componentClasses/_.css +1 -1
- package/dist/@styles/index.css +1 -1
- package/dist/@styles/init.css +1 -1
- package/dist/@styles/style.css +31 -1
- package/dist/@styles/var.css +1 -1
- package/dist/@utils/GenerateClassName.js +1 -470
- package/dist/@utils/LaunchReactApp.d.ts +1 -1
- package/dist/@utils/LaunchReactApp.js +1 -78
- package/dist/@utils/_.js +1 -12
- package/dist/@utils/collectForm.js +1 -96
- package/dist/@utils/color.js +1 -103
- package/dist/@utils/config.js +1 -101
- package/dist/@utils/fin.js +1 -39
- package/dist/@utils/getElement.js +1 -13
- package/dist/@utils/jsminEx.js +1 -172
- package/dist/@utils/pageTransit.js +1 -33
- package/dist/@utils/useRecycle.js +1 -44
- package/dist/@utils/useStore.js +1 -54
- package/dist/atoms/Box.js +1 -20
- package/dist/atoms/FAI.js +1 -148
- package/dist/atoms/Flex.js +1 -34
- package/dist/atoms/Grid.js +1 -17
- package/dist/atoms/Img.js +1 -65
- package/dist/atoms/Logo.js +51 -359
- package/dist/atoms/P.js +1 -20
- package/dist/atoms/Placeholder.js +1 -44
- package/dist/atoms/Span.js +1 -20
- package/dist/atoms/_.js +1 -9
- package/dist/chunk-VY3566IV.js +1 -0
- package/dist/fn/Button.js +1 -316
- package/dist/fn/Cropper.js +1 -1009
- package/dist/fn/Effect/Fade.js +1 -88
- package/dist/fn/Effect/Pudding.js +1 -22
- package/dist/fn/Effect/Ripple.js +3 -117
- package/dist/fn/Effect/_.js +1 -14
- package/dist/fn/Input/AutoHeightText.js +1 -112
- package/dist/fn/Input/Checker.js +1 -36
- package/dist/fn/Input/Chips/Selector.js +1 -472
- package/dist/fn/Input/Chips/_.js +1 -349
- package/dist/fn/Input/Contenteditable.js +1 -160
- package/dist/fn/Input/DigitCharacters.js +1 -275
- package/dist/fn/Input/Filer.js +1 -619
- package/dist/fn/Input/Hidden.js +1 -48
- package/dist/fn/Input/List.js +1 -450
- package/dist/fn/Input/Parts.js +1 -121
- package/dist/fn/Input/Plain.js +1 -12
- package/dist/fn/Input/RichSelect.js +1 -279
- package/dist/fn/Input/Search.js +1 -53
- package/dist/fn/Input/Segmented.js +1 -245
- package/dist/fn/Input/Select.js +1 -278
- package/dist/fn/Input/Slider.js +1 -538
- package/dist/fn/Input/Switch.js +1 -221
- package/dist/fn/Input/Text.js +1 -626
- package/dist/fn/Input/TextArea.js +1 -151
- package/dist/fn/Input/Time/Picker.js +1 -1457
- package/dist/fn/Input/Time/_.js +1 -867
- package/dist/fn/Input/_.js +1 -48
- package/dist/fn/Input/core.js +1 -626
- package/dist/fn/Layout/PageNotFound.js +1 -90
- package/dist/fn/Layout/PageRouter.js +1 -87
- package/dist/fn/Layout/PageViewController.js +1 -29
- package/dist/fn/Layout/Plate.js +1 -37
- package/dist/fn/Layout/RootViewController.js +1 -315
- package/dist/fn/Layout/SwipeView.js +1 -348
- package/dist/fn/Layout/TabBar.js +1 -72
- package/dist/fn/Layout/_.js +1 -22
- package/dist/fn/Loader/_.js +1 -104
- package/dist/fn/Loader/corner.js +1 -85
- package/dist/fn/Loader/mini.js +1 -125
- package/dist/fn/Loader/top.js +1 -73
- package/dist/fn/Sheet.js +1 -1100
- package/dist/fn/Snackbar.js +1 -216
- package/dist/fn/Table/Data.js +1 -974
- package/dist/fn/Table/Drag.js +1 -435
- package/dist/fn/Table/Normal.js +1 -136
- package/dist/fn/Table/Parts.js +1 -41
- package/dist/fn/Table/Wrapper.js +1 -60
- package/dist/fn/Table/_.js +1 -16
- package/dist/fn/Table/cellStyling.js +1 -51
- package/dist/fn/Tooltips.js +1 -58
- package/dist/fn/_.js +1 -10
- package/dist/index.js +1 -20
- package/dist/mols/Accordion.js +1 -152
- package/dist/mols/Column.js +1 -16
- package/dist/mols/LinkifyText.js +1 -42
- package/dist/mols/List.js +1 -42
- package/dist/mols/Row.js +1 -47
- package/dist/mols/Text.js +1 -67
- package/dist/mols/_.js +1 -6
- package/dist/temps/_.js +1 -1
- package/dist/temps/designBook.js +20 -3636
- package/package.json +1 -1
- package/dist/chunk-JJ3PEWPN.js +0 -60
package/dist/@declaration/_.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import"./module";
|
|
@@ -45,9 +45,9 @@ export declare namespace Borders {
|
|
|
45
45
|
borderBottomLeftRadius?: Radius;
|
|
46
46
|
borderBottomRightRadius?: Radius;
|
|
47
47
|
};
|
|
48
|
-
type Border = boolean | '0.trans' | '1.thin' | '2.normal' | '
|
|
48
|
+
type Border = boolean | '0.trans' | '1.thin' | '2.normal' | 'dark' | 'unset';
|
|
49
49
|
type Width = 0 | 1 | 2 | 3 | 4;
|
|
50
|
-
type Color = '0.trans' | '1.thin' | '2.normal' | '
|
|
50
|
+
type Color = '0.trans' | '1.thin' | '2.normal' | 'dark' | 'theme' | 'posi' | 'nega' | 'warn' | 'white';
|
|
51
51
|
type Style = 'solid' | 'dashed' | 'double' | 'dotted' | 'none';
|
|
52
52
|
type Radius = 0 | '1/3' | '2/3' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 'sphere' | 'inherit' | '1.tone.primary' | '2.tone.secondary' | '3.tone.tertiary';
|
|
53
53
|
}
|
package/dist/@styles/index.css
CHANGED
package/dist/@styles/init.css
CHANGED
package/dist/@styles/style.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license amotify
|
|
3
|
-
* amotify 0.1.
|
|
3
|
+
* amotify 0.1.34
|
|
4
4
|
* https://mingoo.co.jp/
|
|
5
5
|
|
|
6
6
|
* Copyright (c) mingoo, LLC.
|
|
@@ -4336,6 +4336,9 @@ amotify-app {
|
|
|
4336
4336
|
.amotf_b_t_ss2 {
|
|
4337
4337
|
border-top: 1px solid var(--border-color-normal);
|
|
4338
4338
|
}
|
|
4339
|
+
.amotf_b_t_ssdark {
|
|
4340
|
+
border-top: 1px solid var(--color-dark);
|
|
4341
|
+
}
|
|
4339
4342
|
.amotf_b_t_ssunset {
|
|
4340
4343
|
border-top-style: unset !important;
|
|
4341
4344
|
border-top-width: unset !important;
|
|
@@ -4350,6 +4353,9 @@ amotify-app {
|
|
|
4350
4353
|
.amotf_b_r_ss2 {
|
|
4351
4354
|
border-right: 1px solid var(--border-color-normal);
|
|
4352
4355
|
}
|
|
4356
|
+
.amotf_b_r_ssdark {
|
|
4357
|
+
border-right: 1px solid var(--color-dark);
|
|
4358
|
+
}
|
|
4353
4359
|
.amotf_b_r_ssunset {
|
|
4354
4360
|
border-right-style: unset !important;
|
|
4355
4361
|
border-right-width: unset !important;
|
|
@@ -4364,6 +4370,9 @@ amotify-app {
|
|
|
4364
4370
|
.amotf_b_b_ss2 {
|
|
4365
4371
|
border-bottom: 1px solid var(--border-color-normal);
|
|
4366
4372
|
}
|
|
4373
|
+
.amotf_b_b_ssdark {
|
|
4374
|
+
border-bottom: 1px solid var(--color-dark);
|
|
4375
|
+
}
|
|
4367
4376
|
.amotf_b_b_ssunset {
|
|
4368
4377
|
border-bottom-style: unset !important;
|
|
4369
4378
|
border-bottom-width: unset !important;
|
|
@@ -4378,6 +4387,9 @@ amotify-app {
|
|
|
4378
4387
|
.amotf_b_l_ss2 {
|
|
4379
4388
|
border-left: 1px solid var(--border-color-normal);
|
|
4380
4389
|
}
|
|
4390
|
+
.amotf_b_l_ssdark {
|
|
4391
|
+
border-left: 1px solid var(--color-dark);
|
|
4392
|
+
}
|
|
4381
4393
|
.amotf_b_l_ssunset {
|
|
4382
4394
|
border-left-style: unset !important;
|
|
4383
4395
|
border-left-width: unset !important;
|
|
@@ -4407,6 +4419,9 @@ amotify-app {
|
|
|
4407
4419
|
.amotf_b_cl2 {
|
|
4408
4420
|
border-color: var(--border-color-normal);
|
|
4409
4421
|
}
|
|
4422
|
+
.amotf_b_cldark {
|
|
4423
|
+
border-color: var(--color-dark);
|
|
4424
|
+
}
|
|
4410
4425
|
.amotf_b_cltheme {
|
|
4411
4426
|
border-color: hsl(var(--color-theme-hsl));
|
|
4412
4427
|
}
|
|
@@ -6561,6 +6576,9 @@ amotify-app {
|
|
|
6561
6576
|
.amotf_bpb_t_ss2 {
|
|
6562
6577
|
border-top: 1px solid var(--border-color-normal);
|
|
6563
6578
|
}
|
|
6579
|
+
.amotf_bpb_t_ssdark {
|
|
6580
|
+
border-top: 1px solid var(--color-dark);
|
|
6581
|
+
}
|
|
6564
6582
|
.amotf_bpb_t_ssunset {
|
|
6565
6583
|
border-top-style: unset !important;
|
|
6566
6584
|
border-top-width: unset !important;
|
|
@@ -6575,6 +6593,9 @@ amotify-app {
|
|
|
6575
6593
|
.amotf_bpb_r_ss2 {
|
|
6576
6594
|
border-right: 1px solid var(--border-color-normal);
|
|
6577
6595
|
}
|
|
6596
|
+
.amotf_bpb_r_ssdark {
|
|
6597
|
+
border-right: 1px solid var(--color-dark);
|
|
6598
|
+
}
|
|
6578
6599
|
.amotf_bpb_r_ssunset {
|
|
6579
6600
|
border-right-style: unset !important;
|
|
6580
6601
|
border-right-width: unset !important;
|
|
@@ -6589,6 +6610,9 @@ amotify-app {
|
|
|
6589
6610
|
.amotf_bpb_b_ss2 {
|
|
6590
6611
|
border-bottom: 1px solid var(--border-color-normal);
|
|
6591
6612
|
}
|
|
6613
|
+
.amotf_bpb_b_ssdark {
|
|
6614
|
+
border-bottom: 1px solid var(--color-dark);
|
|
6615
|
+
}
|
|
6592
6616
|
.amotf_bpb_b_ssunset {
|
|
6593
6617
|
border-bottom-style: unset !important;
|
|
6594
6618
|
border-bottom-width: unset !important;
|
|
@@ -6603,6 +6627,9 @@ amotify-app {
|
|
|
6603
6627
|
.amotf_bpb_l_ss2 {
|
|
6604
6628
|
border-left: 1px solid var(--border-color-normal);
|
|
6605
6629
|
}
|
|
6630
|
+
.amotf_bpb_l_ssdark {
|
|
6631
|
+
border-left: 1px solid var(--color-dark);
|
|
6632
|
+
}
|
|
6606
6633
|
.amotf_bpb_l_ssunset {
|
|
6607
6634
|
border-left-style: unset !important;
|
|
6608
6635
|
border-left-width: unset !important;
|
|
@@ -6632,6 +6659,9 @@ amotify-app {
|
|
|
6632
6659
|
.amotf_bpb_cl2 {
|
|
6633
6660
|
border-color: var(--border-color-normal);
|
|
6634
6661
|
}
|
|
6662
|
+
.amotf_bpb_cldark {
|
|
6663
|
+
border-color: var(--color-dark);
|
|
6664
|
+
}
|
|
6635
6665
|
.amotf_bpb_cltheme {
|
|
6636
6666
|
border-color: hsl(var(--color-theme-hsl));
|
|
6637
6667
|
}
|
package/dist/@styles/var.css
CHANGED
|
@@ -1,470 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__objRest,
|
|
3
|
-
__spreadProps,
|
|
4
|
-
__spreadValues
|
|
5
|
-
} from "../chunk-JJ3PEWPN.js";
|
|
6
|
-
import {
|
|
7
|
-
$$,
|
|
8
|
-
Config
|
|
9
|
-
} from "./_";
|
|
10
|
-
const FNs = {
|
|
11
|
-
toConcreteBorderRadius: (br) => {
|
|
12
|
-
let roundness = Config.get().roundness | 0;
|
|
13
|
-
if (br == "1.tone.primary") {
|
|
14
|
-
br = [0, 2, 3, 4, 5, 5][roundness];
|
|
15
|
-
} else if (br == "2.tone.secondary") {
|
|
16
|
-
br = [0, 1, 2, 3, 4, 5][roundness];
|
|
17
|
-
} else if (br == "3.tone.tertiary") {
|
|
18
|
-
br = [0, "1/3", "2/3", 1, 2, 3][roundness];
|
|
19
|
-
}
|
|
20
|
-
return br;
|
|
21
|
-
},
|
|
22
|
-
ev: (v) => $$.is.nullish(v),
|
|
23
|
-
ClassNames: (type, params) => {
|
|
24
|
-
var _b, _c, _d, _e, _f, _g, _h;
|
|
25
|
-
let CLS = [];
|
|
26
|
-
let _a = params, {
|
|
27
|
-
gap,
|
|
28
|
-
display: disp,
|
|
29
|
-
position,
|
|
30
|
-
overflow,
|
|
31
|
-
fontColor,
|
|
32
|
-
fontSize,
|
|
33
|
-
fontWeight,
|
|
34
|
-
backgroundColor: bgc,
|
|
35
|
-
textAlign,
|
|
36
|
-
boxShadow,
|
|
37
|
-
margin: mrg,
|
|
38
|
-
marginTop: mrgT,
|
|
39
|
-
marginRight: mrgR,
|
|
40
|
-
marginBottom: mrgB,
|
|
41
|
-
marginLeft: mrgL,
|
|
42
|
-
padding: pd,
|
|
43
|
-
paddingTop: pdT,
|
|
44
|
-
paddingRight: pdR,
|
|
45
|
-
paddingBottom: pdB,
|
|
46
|
-
paddingLeft: pdL,
|
|
47
|
-
top: T,
|
|
48
|
-
right: R,
|
|
49
|
-
bottom: B,
|
|
50
|
-
left: L,
|
|
51
|
-
border: b,
|
|
52
|
-
borderTop: bT,
|
|
53
|
-
borderRight: bR,
|
|
54
|
-
borderBottom: bB,
|
|
55
|
-
borderLeft: bL,
|
|
56
|
-
borderWidth: bWidth,
|
|
57
|
-
borderColor: bColor,
|
|
58
|
-
borderStyle: bStyle,
|
|
59
|
-
borderRadius: br,
|
|
60
|
-
borderTopLeftRadius: brTL,
|
|
61
|
-
borderTopRightRadius: brTR,
|
|
62
|
-
borderBottomLeftRadius: brBL,
|
|
63
|
-
borderBottomRightRadius: brBR,
|
|
64
|
-
flexSizing,
|
|
65
|
-
flexWrap,
|
|
66
|
-
flexType,
|
|
67
|
-
flexChilds,
|
|
68
|
-
flexGrid,
|
|
69
|
-
horizontalAlign,
|
|
70
|
-
verticalAlign,
|
|
71
|
-
transition,
|
|
72
|
-
gridCenter,
|
|
73
|
-
gridCols,
|
|
74
|
-
maxHeight,
|
|
75
|
-
minHeight,
|
|
76
|
-
maxWidth,
|
|
77
|
-
minWidth,
|
|
78
|
-
width,
|
|
79
|
-
height,
|
|
80
|
-
unitHeight,
|
|
81
|
-
unitWidth,
|
|
82
|
-
opacity
|
|
83
|
-
} = _a, others = __objRest(_a, [
|
|
84
|
-
"gap",
|
|
85
|
-
"display",
|
|
86
|
-
"position",
|
|
87
|
-
"overflow",
|
|
88
|
-
"fontColor",
|
|
89
|
-
"fontSize",
|
|
90
|
-
"fontWeight",
|
|
91
|
-
"backgroundColor",
|
|
92
|
-
"textAlign",
|
|
93
|
-
"boxShadow",
|
|
94
|
-
"margin",
|
|
95
|
-
"marginTop",
|
|
96
|
-
"marginRight",
|
|
97
|
-
"marginBottom",
|
|
98
|
-
"marginLeft",
|
|
99
|
-
"padding",
|
|
100
|
-
"paddingTop",
|
|
101
|
-
"paddingRight",
|
|
102
|
-
"paddingBottom",
|
|
103
|
-
"paddingLeft",
|
|
104
|
-
"top",
|
|
105
|
-
"right",
|
|
106
|
-
"bottom",
|
|
107
|
-
"left",
|
|
108
|
-
"border",
|
|
109
|
-
"borderTop",
|
|
110
|
-
"borderRight",
|
|
111
|
-
"borderBottom",
|
|
112
|
-
"borderLeft",
|
|
113
|
-
"borderWidth",
|
|
114
|
-
// borderTopWidth: bTWidth,
|
|
115
|
-
// borderRightWidth: bRWidth,
|
|
116
|
-
// borderBottomWidth: bBWidth,
|
|
117
|
-
// borderLeftWidth: bLWidth,
|
|
118
|
-
"borderColor",
|
|
119
|
-
// borderTopColor: bTColor,
|
|
120
|
-
// borderRightColor: bRColor,
|
|
121
|
-
// borderBottomColor: bBColor,
|
|
122
|
-
// borderLeftColor: bLColor,
|
|
123
|
-
"borderStyle",
|
|
124
|
-
// borderTopStyle: bTStyle,
|
|
125
|
-
// borderRightStyle: bRStyle,
|
|
126
|
-
// borderBottomStyle: bBStyle,
|
|
127
|
-
// borderLeftStyle: bLStyle,
|
|
128
|
-
"borderRadius",
|
|
129
|
-
"borderTopLeftRadius",
|
|
130
|
-
"borderTopRightRadius",
|
|
131
|
-
"borderBottomLeftRadius",
|
|
132
|
-
"borderBottomRightRadius",
|
|
133
|
-
"flexSizing",
|
|
134
|
-
"flexWrap",
|
|
135
|
-
"flexType",
|
|
136
|
-
"flexChilds",
|
|
137
|
-
"flexGrid",
|
|
138
|
-
"horizontalAlign",
|
|
139
|
-
"verticalAlign",
|
|
140
|
-
"transition",
|
|
141
|
-
"gridCenter",
|
|
142
|
-
"gridCols",
|
|
143
|
-
"maxHeight",
|
|
144
|
-
"minHeight",
|
|
145
|
-
"maxWidth",
|
|
146
|
-
"minWidth",
|
|
147
|
-
"width",
|
|
148
|
-
"height",
|
|
149
|
-
"unitHeight",
|
|
150
|
-
"unitWidth",
|
|
151
|
-
"opacity"
|
|
152
|
-
]);
|
|
153
|
-
{
|
|
154
|
-
FNs.ev(disp) || CLS.push("dsp" + disp);
|
|
155
|
-
if (overflow) {
|
|
156
|
-
let arr = $$.flatArray(overflow);
|
|
157
|
-
CLS.push("ovfl-x-" + arr[0]);
|
|
158
|
-
CLS.push("ovfl-y-" + (arr[1] || arr[0]));
|
|
159
|
-
}
|
|
160
|
-
FNs.ev(position) || CLS.push("ps" + position);
|
|
161
|
-
FNs.ev(textAlign) || CLS.push("txalg" + textAlign);
|
|
162
|
-
FNs.ev(fontColor) || CLS.push("ftcl" + ((_b = String(fontColor)) == null ? void 0 : _b.replace(/\..*/, "")));
|
|
163
|
-
FNs.ev(fontSize) || CLS.push("ftsz" + ((_c = String(fontSize)) == null ? void 0 : _c.replace(/\..*/, "")));
|
|
164
|
-
FNs.ev(fontWeight) || CLS.push("ftwt" + (fontWeight == null ? void 0 : fontWeight.replace(/\..*/, "")));
|
|
165
|
-
FNs.ev(bgc) || CLS.push("bgc" + ((_d = String(bgc)) == null ? void 0 : _d.replace(/\..*/, "")));
|
|
166
|
-
FNs.ev(boxShadow) || CLS.push("bs" + boxShadow);
|
|
167
|
-
let _mrgT, _mrgR, _mrgB, _mrgL;
|
|
168
|
-
if ($$.is.exist(mrg)) {
|
|
169
|
-
if ($$.is.array(mrg)) {
|
|
170
|
-
if (mrg.length == 2)
|
|
171
|
-
[_mrgT, _mrgR, _mrgB, _mrgL] = [...mrg, ...mrg];
|
|
172
|
-
else if (mrg.length == 4)
|
|
173
|
-
[_mrgT, _mrgR, _mrgB, _mrgL] = mrg;
|
|
174
|
-
} else
|
|
175
|
-
_mrgT = _mrgR = _mrgB = _mrgL = mrg;
|
|
176
|
-
mrgT = mrgT != null ? mrgT : _mrgT;
|
|
177
|
-
mrgR = mrgR != null ? mrgR : _mrgR;
|
|
178
|
-
mrgB = mrgB != null ? mrgB : _mrgB;
|
|
179
|
-
mrgL = mrgL != null ? mrgL : _mrgL;
|
|
180
|
-
}
|
|
181
|
-
FNs.ev(mrgT) || CLS.push("mrgt" + mrgT);
|
|
182
|
-
FNs.ev(mrgR) || CLS.push("mrgr" + mrgR);
|
|
183
|
-
FNs.ev(mrgB) || CLS.push("mrgb" + mrgB);
|
|
184
|
-
FNs.ev(mrgL) || CLS.push("mrgl" + mrgL);
|
|
185
|
-
let _pdT, _pdR, _pdB, _pdL;
|
|
186
|
-
if ($$.is.exist(pd)) {
|
|
187
|
-
if ($$.is.array(pd)) {
|
|
188
|
-
if (pd.length == 2)
|
|
189
|
-
[_pdT, _pdR, _pdB, _pdL] = [...pd, ...pd];
|
|
190
|
-
else if (pd.length == 4)
|
|
191
|
-
[_pdT, _pdR, _pdB, _pdL] = pd;
|
|
192
|
-
} else
|
|
193
|
-
_pdT = _pdR = _pdB = _pdL = pd;
|
|
194
|
-
pdT = pdT != null ? pdT : _pdT;
|
|
195
|
-
pdR = pdR != null ? pdR : _pdR;
|
|
196
|
-
pdB = pdB != null ? pdB : _pdB;
|
|
197
|
-
pdL = pdL != null ? pdL : _pdL;
|
|
198
|
-
}
|
|
199
|
-
FNs.ev(pdT) || CLS.push("pdt" + pdT);
|
|
200
|
-
FNs.ev(pdR) || CLS.push("pdr" + pdR);
|
|
201
|
-
FNs.ev(pdB) || CLS.push("pdb" + pdB);
|
|
202
|
-
FNs.ev(pdL) || CLS.push("pdl" + pdL);
|
|
203
|
-
FNs.ev(T) || CLS.push("pstt" + T);
|
|
204
|
-
FNs.ev(R) || CLS.push("pstr" + R);
|
|
205
|
-
FNs.ev(B) || CLS.push("pstb" + B);
|
|
206
|
-
FNs.ev(L) || CLS.push("pstl" + L);
|
|
207
|
-
{
|
|
208
|
-
{
|
|
209
|
-
if ($$.is.exist(b)) {
|
|
210
|
-
bT = bT != null ? bT : b;
|
|
211
|
-
bR = bR != null ? bR : b;
|
|
212
|
-
bB = bB != null ? bB : b;
|
|
213
|
-
bL = bL != null ? bL : b;
|
|
214
|
-
}
|
|
215
|
-
if ($$.is.boolean(bT))
|
|
216
|
-
bT = ["unset", "2.normal"][Number(bT)];
|
|
217
|
-
if ($$.is.boolean(bR))
|
|
218
|
-
bR = ["unset", "2.normal"][Number(bR)];
|
|
219
|
-
if ($$.is.boolean(bB))
|
|
220
|
-
bB = ["unset", "2.normal"][Number(bB)];
|
|
221
|
-
if ($$.is.boolean(bL))
|
|
222
|
-
bL = ["unset", "2.normal"][Number(bL)];
|
|
223
|
-
FNs.ev(bT) || CLS.push("b_t_ss" + ((_e = String(bT)) == null ? void 0 : _e.replace(/\..*/, "")));
|
|
224
|
-
FNs.ev(bR) || CLS.push("b_r_ss" + ((_f = String(bR)) == null ? void 0 : _f.replace(/\..*/, "")));
|
|
225
|
-
FNs.ev(bB) || CLS.push("b_b_ss" + ((_g = String(bB)) == null ? void 0 : _g.replace(/\..*/, "")));
|
|
226
|
-
FNs.ev(bL) || CLS.push("b_l_ss" + ((_h = String(bL)) == null ? void 0 : _h.replace(/\..*/, "")));
|
|
227
|
-
}
|
|
228
|
-
if ($$.is.exist(bWidth))
|
|
229
|
-
CLS.push("b_wth" + String(bWidth));
|
|
230
|
-
if ($$.is.exist(bColor))
|
|
231
|
-
CLS.push("b_cl" + String(bColor));
|
|
232
|
-
if ($$.is.exist(bStyle))
|
|
233
|
-
CLS.push("b_st" + String(bStyle));
|
|
234
|
-
{
|
|
235
|
-
let _brTL, _brTR, _brBL, _brBR;
|
|
236
|
-
if ($$.is.exist(br)) {
|
|
237
|
-
if ($$.is.array(br)) {
|
|
238
|
-
if (br.length == 4)
|
|
239
|
-
[_brTL, _brTR, _brBR, _brBL] = br;
|
|
240
|
-
} else {
|
|
241
|
-
_brTL = _brTR = _brBL = _brBR = br;
|
|
242
|
-
}
|
|
243
|
-
brTL = brTL != null ? brTL : _brTL;
|
|
244
|
-
brTR = brTR != null ? brTR : _brTR;
|
|
245
|
-
brBL = brBL != null ? brBL : _brBL;
|
|
246
|
-
brBR = brBR != null ? brBR : _brBR;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
FNs.ev(brTL) || CLS.push("br_tl" + FNs.toConcreteBorderRadius(brTL));
|
|
250
|
-
FNs.ev(brTR) || CLS.push("br_tr" + FNs.toConcreteBorderRadius(brTR));
|
|
251
|
-
FNs.ev(brBL) || CLS.push("br_bl" + FNs.toConcreteBorderRadius(brBL));
|
|
252
|
-
FNs.ev(brBR) || CLS.push("br_br" + FNs.toConcreteBorderRadius(brBR));
|
|
253
|
-
}
|
|
254
|
-
FNs.ev(opacity) || CLS.push("op" + opacity);
|
|
255
|
-
if ($$.is.exist(gap)) {
|
|
256
|
-
let gapRow, gapCol;
|
|
257
|
-
if ($$.is.array(gap))
|
|
258
|
-
gapRow = gap[0], gapCol = gap[1];
|
|
259
|
-
else
|
|
260
|
-
gapRow = gapCol = gap;
|
|
261
|
-
CLS.push(...["gapRow" + gapRow, "gapCol" + gapCol]);
|
|
262
|
-
}
|
|
263
|
-
FNs.ev(flexSizing) || CLS.push("flsz" + flexSizing);
|
|
264
|
-
FNs.ev(flexWrap) || CLS.push("flwrp" + flexWrap);
|
|
265
|
-
FNs.ev(flexType) || CLS.push("fltyp" + flexType);
|
|
266
|
-
FNs.ev(flexChilds) || CLS.push("flchld" + flexChilds);
|
|
267
|
-
FNs.ev(flexGrid) || CLS.push("flgrid" + flexGrid);
|
|
268
|
-
FNs.ev(verticalAlign) || CLS.push("flvrt" + verticalAlign);
|
|
269
|
-
FNs.ev(horizontalAlign) || CLS.push("flhrz" + horizontalAlign);
|
|
270
|
-
FNs.ev(gridCenter) || CLS.push("grcnt" + gridCenter);
|
|
271
|
-
FNs.ev(gridCols) || CLS.push("grcol" + gridCols);
|
|
272
|
-
FNs.ev(height) || CLS.push("hgt" + height);
|
|
273
|
-
FNs.ev(width) || CLS.push("wdt" + width);
|
|
274
|
-
FNs.ev(unitHeight) || CLS.push("unthgt" + unitHeight);
|
|
275
|
-
FNs.ev(unitWidth) || CLS.push("untwdt" + unitWidth);
|
|
276
|
-
FNs.ev(transition) || CLS.push("trnst" + transition);
|
|
277
|
-
FNs.ev(maxHeight) || CLS.push("maxh" + maxHeight);
|
|
278
|
-
FNs.ev(minHeight) || CLS.push("minh" + minHeight);
|
|
279
|
-
FNs.ev(maxWidth) || CLS.push("maxw" + maxWidth);
|
|
280
|
-
FNs.ev(minWidth) || CLS.push("minw" + minWidth);
|
|
281
|
-
}
|
|
282
|
-
return {
|
|
283
|
-
otherParams: others,
|
|
284
|
-
className: CLS.length ? type + CLS.join(" " + type) : ""
|
|
285
|
-
};
|
|
286
|
-
}
|
|
287
|
-
};
|
|
288
|
-
const ReadStyleSet = (rawParams) => {
|
|
289
|
-
let params = __spreadValues({}, rawParams);
|
|
290
|
-
let _a = params, {
|
|
291
|
-
gradients,
|
|
292
|
-
ssCardBox,
|
|
293
|
-
ssSphere,
|
|
294
|
-
ssSquare,
|
|
295
|
-
ssPushable,
|
|
296
|
-
ssAbsoluteCovered,
|
|
297
|
-
ssTextEllipsis,
|
|
298
|
-
flexCenter,
|
|
299
|
-
flexNewLine,
|
|
300
|
-
isLightFont,
|
|
301
|
-
isBoldFont,
|
|
302
|
-
isSemiBoldFont,
|
|
303
|
-
isRounded
|
|
304
|
-
} = _a, ReturnParams = __objRest(_a, [
|
|
305
|
-
"gradients",
|
|
306
|
-
"ssCardBox",
|
|
307
|
-
"ssSphere",
|
|
308
|
-
"ssSquare",
|
|
309
|
-
"ssPushable",
|
|
310
|
-
"ssAbsoluteCovered",
|
|
311
|
-
"ssTextEllipsis",
|
|
312
|
-
"flexCenter",
|
|
313
|
-
"flexNewLine",
|
|
314
|
-
"isLightFont",
|
|
315
|
-
"isBoldFont",
|
|
316
|
-
"isSemiBoldFont",
|
|
317
|
-
"isRounded"
|
|
318
|
-
]);
|
|
319
|
-
if (gradients) {
|
|
320
|
-
let {
|
|
321
|
-
deg,
|
|
322
|
-
colors
|
|
323
|
-
} = gradients;
|
|
324
|
-
ReturnParams = __spreadProps(__spreadValues({}, ReturnParams), {
|
|
325
|
-
freeCSS: __spreadProps(__spreadValues({}, ReturnParams.freeCSS), {
|
|
326
|
-
background: `linear-gradient(${deg}deg,${colors.join(",")})`
|
|
327
|
-
})
|
|
328
|
-
});
|
|
329
|
-
}
|
|
330
|
-
if (ssCardBox) {
|
|
331
|
-
if (ssCardBox === true) {
|
|
332
|
-
ssCardBox = "border";
|
|
333
|
-
}
|
|
334
|
-
let exStyles = {
|
|
335
|
-
backgroundColor: "1.layer.base",
|
|
336
|
-
borderRadius: "1.tone.primary",
|
|
337
|
-
boxShadow: "0.thin",
|
|
338
|
-
freeCSS: {
|
|
339
|
-
zIndex: 1
|
|
340
|
-
}
|
|
341
|
-
};
|
|
342
|
-
if (ssCardBox == "border") {
|
|
343
|
-
exStyles.border = true;
|
|
344
|
-
} else if (ssCardBox == "layer") {
|
|
345
|
-
exStyles.backgroundColor = "1.layer.base";
|
|
346
|
-
} else if (ssCardBox == "cloud") {
|
|
347
|
-
exStyles.backgroundColor = "cloud";
|
|
348
|
-
} else if (ssCardBox == "shadow") {
|
|
349
|
-
exStyles.boxShadow = "0.normal";
|
|
350
|
-
}
|
|
351
|
-
if (["dim", "dark"].includes(Config.get().darkMode))
|
|
352
|
-
exStyles.boxShadow = "1.remark";
|
|
353
|
-
ReturnParams = __spreadProps(__spreadValues(__spreadValues({}, exStyles), ReturnParams), {
|
|
354
|
-
freeCSS: __spreadValues(__spreadValues({}, exStyles.freeCSS), ReturnParams.freeCSS),
|
|
355
|
-
UnderBreakPointStyles: __spreadValues(__spreadValues({}, exStyles.UnderBreakPointStyles), ReturnParams.UnderBreakPointStyles)
|
|
356
|
-
});
|
|
357
|
-
}
|
|
358
|
-
if (ssSphere) {
|
|
359
|
-
flexCenter = flexCenter != null ? flexCenter : true;
|
|
360
|
-
ReturnParams = __spreadValues({
|
|
361
|
-
padding: 0,
|
|
362
|
-
unitWidth: ssSphere,
|
|
363
|
-
unitHeight: ssSphere,
|
|
364
|
-
borderRadius: "sphere",
|
|
365
|
-
flexSizing: "none"
|
|
366
|
-
}, ReturnParams);
|
|
367
|
-
}
|
|
368
|
-
if (ssSquare) {
|
|
369
|
-
flexCenter = flexCenter != null ? flexCenter : true;
|
|
370
|
-
ReturnParams = __spreadValues({
|
|
371
|
-
padding: 0,
|
|
372
|
-
unitWidth: ssSquare,
|
|
373
|
-
unitHeight: ssSquare,
|
|
374
|
-
flexSizing: "none"
|
|
375
|
-
}, ReturnParams);
|
|
376
|
-
}
|
|
377
|
-
!ssPushable || (ReturnParams = __spreadProps(__spreadValues({
|
|
378
|
-
transition: "middle"
|
|
379
|
-
}, ReturnParams), {
|
|
380
|
-
className: [
|
|
381
|
-
ReturnParams.className,
|
|
382
|
-
"ssPushable"
|
|
383
|
-
].join(" ")
|
|
384
|
-
}));
|
|
385
|
-
!ssAbsoluteCovered || (ReturnParams = __spreadValues({
|
|
386
|
-
position: "absolute",
|
|
387
|
-
top: 0,
|
|
388
|
-
left: 0,
|
|
389
|
-
right: 0,
|
|
390
|
-
bottom: 0
|
|
391
|
-
}, ReturnParams));
|
|
392
|
-
!ssTextEllipsis || (ReturnParams = __spreadProps(__spreadValues({
|
|
393
|
-
overflow: "hidden"
|
|
394
|
-
}, ReturnParams), {
|
|
395
|
-
freeCSS: __spreadValues({
|
|
396
|
-
whiteSpace: "nowrap",
|
|
397
|
-
textOverflow: "ellipsis"
|
|
398
|
-
}, ReturnParams.freeCSS)
|
|
399
|
-
}));
|
|
400
|
-
!flexNewLine || (ReturnParams = __spreadValues({
|
|
401
|
-
width: 1,
|
|
402
|
-
flexSizing: "none"
|
|
403
|
-
}, ReturnParams));
|
|
404
|
-
!flexCenter || (ReturnParams = __spreadValues({
|
|
405
|
-
display: "flex",
|
|
406
|
-
horizontalAlign: "center",
|
|
407
|
-
verticalAlign: "center"
|
|
408
|
-
}, ReturnParams));
|
|
409
|
-
!isLightFont || (ReturnParams = __spreadProps(__spreadValues({}, ReturnParams), {
|
|
410
|
-
fontWeight: "1.light"
|
|
411
|
-
}));
|
|
412
|
-
!isSemiBoldFont || (ReturnParams = __spreadProps(__spreadValues({}, ReturnParams), {
|
|
413
|
-
fontWeight: "3.semiBold"
|
|
414
|
-
}));
|
|
415
|
-
!isBoldFont || (ReturnParams = __spreadProps(__spreadValues({}, ReturnParams), {
|
|
416
|
-
fontWeight: "4.bold"
|
|
417
|
-
}));
|
|
418
|
-
!isRounded || (ReturnParams = __spreadProps(__spreadValues({}, ReturnParams), {
|
|
419
|
-
borderRadius: "sphere"
|
|
420
|
-
}));
|
|
421
|
-
return ReturnParams;
|
|
422
|
-
};
|
|
423
|
-
const GenerateClassName = (rawParams) => {
|
|
424
|
-
let params = ReadStyleSet(rawParams);
|
|
425
|
-
let _a = params, {
|
|
426
|
-
componentID,
|
|
427
|
-
UnderBreakPointStyles = {},
|
|
428
|
-
className = "",
|
|
429
|
-
freeCSS = {},
|
|
430
|
-
ssEffectsOnActive,
|
|
431
|
-
ssLastChildLossBorder
|
|
432
|
-
} = _a, others = __objRest(_a, [
|
|
433
|
-
"componentID",
|
|
434
|
-
"UnderBreakPointStyles",
|
|
435
|
-
"className",
|
|
436
|
-
"freeCSS",
|
|
437
|
-
"ssEffectsOnActive",
|
|
438
|
-
"ssLastChildLossBorder"
|
|
439
|
-
]);
|
|
440
|
-
let ClassNames = [className];
|
|
441
|
-
if (ssLastChildLossBorder) {
|
|
442
|
-
ClassNames.push("ssLastChildLossBorder_" + ssLastChildLossBorder);
|
|
443
|
-
}
|
|
444
|
-
if (ssEffectsOnActive) {
|
|
445
|
-
ssEffectsOnActive = $$.flatArray(ssEffectsOnActive);
|
|
446
|
-
for (let effect of ssEffectsOnActive)
|
|
447
|
-
ClassNames.push(...["eff_" + effect, "eff_" + effect.split(".")[0]]);
|
|
448
|
-
}
|
|
449
|
-
{
|
|
450
|
-
let result = FNs.ClassNames("amotf_", others);
|
|
451
|
-
ClassNames.push(result.className);
|
|
452
|
-
others = result.otherParams;
|
|
453
|
-
}
|
|
454
|
-
if (UnderBreakPointStyles)
|
|
455
|
-
ClassNames.push(FNs.ClassNames("amotf_bp", UnderBreakPointStyles).className);
|
|
456
|
-
let states = __spreadValues({}, others);
|
|
457
|
-
if (freeCSS)
|
|
458
|
-
states.style = __spreadValues(__spreadValues({}, freeCSS), states.style);
|
|
459
|
-
if (componentID || states["data-component-id"]) {
|
|
460
|
-
states["data-component-id"] = states["data-component-id"] || componentID;
|
|
461
|
-
}
|
|
462
|
-
if (ClassNames.length) {
|
|
463
|
-
states.className = ClassNames.join(" ").trim().replace(/%/ig, "P").replace(/\d+px/ig, "PIX").replace(/\s+/ig, " ").replace(/\//ig, "_").replace(/\./ig, "-");
|
|
464
|
-
}
|
|
465
|
-
return states;
|
|
466
|
-
};
|
|
467
|
-
export {
|
|
468
|
-
GenerateClassName,
|
|
469
|
-
ReadStyleSet
|
|
470
|
-
};
|
|
1
|
+
import{b as t,c as f,d as X}from"../chunk-VY3566IV.js";import{$$ as o,Config as ke}from"./_";const r={toConcreteBorderRadius:l=>{let T=ke.get().roundness|0;return l=="1.tone.primary"?l=[0,2,3,4,5,5][T]:l=="2.tone.secondary"?l=[0,1,2,3,4,5][T]:l=="3.tone.tertiary"&&(l=[0,"1/3","2/3",1,2,3][T]),l},ev:l=>o.is.nullish(l),ClassNames:(l,T)=>{var _e,Be,Te,Re,Pe,we,Ne;let e=[],xe=T,{gap:n,display:x,position:m,overflow:b,fontColor:R,fontSize:_,fontWeight:i,backgroundColor:p,textAlign:P,boxShadow:h,margin:u,marginTop:B,marginRight:s,marginBottom:c,marginLeft:a,padding:g,paddingTop:N,paddingRight:k,paddingBottom:L,paddingLeft:z,top:Q,right:V,bottom:Y,left:Z,border:E,borderTop:v,borderRight:S,borderBottom:y,borderLeft:C,borderWidth:ee,borderColor:re,borderStyle:se,borderRadius:F,borderTopLeftRadius:W,borderTopRightRadius:A,borderBottomLeftRadius:H,borderBottomRightRadius:j,flexSizing:te,flexWrap:ie,flexType:oe,flexChilds:ae,flexGrid:le,horizontalAlign:ne,verticalAlign:pe,transition:de,gridCenter:he,gridCols:ue,maxHeight:ge,minHeight:fe,maxWidth:me,minWidth:be,width:ce,height:ve,unitHeight:Se,unitWidth:ye,opacity:Ce}=xe,Le=X(xe,["gap","display","position","overflow","fontColor","fontSize","fontWeight","backgroundColor","textAlign","boxShadow","margin","marginTop","marginRight","marginBottom","marginLeft","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","top","right","bottom","left","border","borderTop","borderRight","borderBottom","borderLeft","borderWidth","borderColor","borderStyle","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","flexSizing","flexWrap","flexType","flexChilds","flexGrid","horizontalAlign","verticalAlign","transition","gridCenter","gridCols","maxHeight","minHeight","maxWidth","minWidth","width","height","unitHeight","unitWidth","opacity"]);{if(r.ev(x)||e.push("dsp"+x),b){let d=o.flatArray(b);e.push("ovfl-x-"+d[0]),e.push("ovfl-y-"+(d[1]||d[0]))}r.ev(m)||e.push("ps"+m),r.ev(P)||e.push("txalg"+P),r.ev(R)||e.push("ftcl"+((_e=String(R))==null?void 0:_e.replace(/\..*/,""))),r.ev(_)||e.push("ftsz"+((Be=String(_))==null?void 0:Be.replace(/\..*/,""))),r.ev(i)||e.push("ftwt"+(i==null?void 0:i.replace(/\..*/,""))),r.ev(p)||e.push("bgc"+((Te=String(p))==null?void 0:Te.replace(/\..*/,""))),r.ev(h)||e.push("bs"+h);let U,$,I,G;o.is.exist(u)&&(o.is.array(u)?u.length==2?[U,$,I,G]=[...u,...u]:u.length==4&&([U,$,I,G]=u):U=$=I=G=u,B=B!=null?B:U,s=s!=null?s:$,c=c!=null?c:I,a=a!=null?a:G),r.ev(B)||e.push("mrgt"+B),r.ev(s)||e.push("mrgr"+s),r.ev(c)||e.push("mrgb"+c),r.ev(a)||e.push("mrgl"+a);let O,q,D,M;o.is.exist(g)&&(o.is.array(g)?g.length==2?[O,q,D,M]=[...g,...g]:g.length==4&&([O,q,D,M]=g):O=q=D=M=g,N=N!=null?N:O,k=k!=null?k:q,L=L!=null?L:D,z=z!=null?z:M),r.ev(N)||e.push("pdt"+N),r.ev(k)||e.push("pdr"+k),r.ev(L)||e.push("pdb"+L),r.ev(z)||e.push("pdl"+z),r.ev(Q)||e.push("pstt"+Q),r.ev(V)||e.push("pstr"+V),r.ev(Y)||e.push("pstb"+Y),r.ev(Z)||e.push("pstl"+Z);{o.is.exist(E)&&(v=v!=null?v:E,S=S!=null?S:E,y=y!=null?y:E,C=C!=null?C:E),o.is.boolean(v)&&(v=["unset","2.normal"][Number(v)]),o.is.boolean(S)&&(S=["unset","2.normal"][Number(S)]),o.is.boolean(y)&&(y=["unset","2.normal"][Number(y)]),o.is.boolean(C)&&(C=["unset","2.normal"][Number(C)]),r.ev(v)||e.push("b_t_ss"+((Re=String(v))==null?void 0:Re.replace(/\..*/,""))),r.ev(S)||e.push("b_r_ss"+((Pe=String(S))==null?void 0:Pe.replace(/\..*/,""))),r.ev(y)||e.push("b_b_ss"+((we=String(y))==null?void 0:we.replace(/\..*/,""))),r.ev(C)||e.push("b_l_ss"+((Ne=String(C))==null?void 0:Ne.replace(/\..*/,""))),o.is.exist(ee)&&e.push("b_wth"+String(ee)),o.is.exist(re)&&e.push("b_cl"+String(re)),o.is.exist(se)&&e.push("b_st"+String(se));{let d,w,J,K;o.is.exist(F)&&(o.is.array(F)?F.length==4&&([d,w,K,J]=F):d=w=J=K=F,W=W!=null?W:d,A=A!=null?A:w,H=H!=null?H:J,j=j!=null?j:K)}r.ev(W)||e.push("br_tl"+r.toConcreteBorderRadius(W)),r.ev(A)||e.push("br_tr"+r.toConcreteBorderRadius(A)),r.ev(H)||e.push("br_bl"+r.toConcreteBorderRadius(H)),r.ev(j)||e.push("br_br"+r.toConcreteBorderRadius(j))}if(r.ev(Ce)||e.push("op"+Ce),o.is.exist(n)){let d,w;o.is.array(n)?(d=n[0],w=n[1]):d=w=n,e.push("gapRow"+d,"gapCol"+w)}r.ev(te)||e.push("flsz"+te),r.ev(ie)||e.push("flwrp"+ie),r.ev(oe)||e.push("fltyp"+oe),r.ev(ae)||e.push("flchld"+ae),r.ev(le)||e.push("flgrid"+le),r.ev(pe)||e.push("flvrt"+pe),r.ev(ne)||e.push("flhrz"+ne),r.ev(he)||e.push("grcnt"+he),r.ev(ue)||e.push("grcol"+ue),r.ev(ve)||e.push("hgt"+ve),r.ev(ce)||e.push("wdt"+ce),r.ev(Se)||e.push("unthgt"+Se),r.ev(ye)||e.push("untwdt"+ye),r.ev(de)||e.push("trnst"+de),r.ev(ge)||e.push("maxh"+ge),r.ev(fe)||e.push("minh"+fe),r.ev(me)||e.push("maxw"+me),r.ev(be)||e.push("minw"+be)}return{otherParams:Le,className:e.length?l+e.join(" "+l):""}}},ze=l=>{let c=t({},l),{gradients:e,ssCardBox:n,ssSphere:x,ssSquare:m,ssPushable:b,ssAbsoluteCovered:R,ssTextEllipsis:_,flexCenter:i,flexNewLine:p,isLightFont:P,isBoldFont:h,isSemiBoldFont:u,isRounded:B}=c,s=X(c,["gradients","ssCardBox","ssSphere","ssSquare","ssPushable","ssAbsoluteCovered","ssTextEllipsis","flexCenter","flexNewLine","isLightFont","isBoldFont","isSemiBoldFont","isRounded"]);if(e){let{deg:a,colors:g}=e;s=f(t({},s),{freeCSS:f(t({},s.freeCSS),{background:`linear-gradient(${a}deg,${g.join(",")})`})})}if(n){n===!0&&(n="border");let a={backgroundColor:"1.layer.base",borderRadius:"1.tone.primary",boxShadow:"0.thin",freeCSS:{zIndex:1}};n=="border"?a.border=!0:n=="layer"?a.backgroundColor="1.layer.base":n=="cloud"?a.backgroundColor="cloud":n=="shadow"&&(a.boxShadow="0.normal"),["dim","dark"].includes(ke.get().darkMode)&&(a.boxShadow="1.remark"),s=f(t(t({},a),s),{freeCSS:t(t({},a.freeCSS),s.freeCSS),UnderBreakPointStyles:t(t({},a.UnderBreakPointStyles),s.UnderBreakPointStyles)})}return x&&(i=i!=null?i:!0,s=t({padding:0,unitWidth:x,unitHeight:x,borderRadius:"sphere",flexSizing:"none"},s)),m&&(i=i!=null?i:!0,s=t({padding:0,unitWidth:m,unitHeight:m,flexSizing:"none"},s)),!b||(s=f(t({transition:"middle"},s),{className:[s.className,"ssPushable"].join(" ")})),!R||(s=t({position:"absolute",top:0,left:0,right:0,bottom:0},s)),!_||(s=f(t({overflow:"hidden"},s),{freeCSS:t({whiteSpace:"nowrap",textOverflow:"ellipsis"},s.freeCSS)})),!p||(s=t({width:1,flexSizing:"none"},s)),!i||(s=t({display:"flex",horizontalAlign:"center",verticalAlign:"center"},s)),!P||(s=f(t({},s),{fontWeight:"1.light"})),!u||(s=f(t({},s),{fontWeight:"3.semiBold"})),!h||(s=f(t({},s),{fontWeight:"4.bold"})),!B||(s=f(t({},s),{borderRadius:"sphere"})),s},je=l=>{let P=ze(l),{componentID:e,UnderBreakPointStyles:n={},className:x="",freeCSS:m={},ssEffectsOnActive:b,ssLastChildLossBorder:R}=P,_=X(P,["componentID","UnderBreakPointStyles","className","freeCSS","ssEffectsOnActive","ssLastChildLossBorder"]),i=[x];if(R&&i.push("ssLastChildLossBorder_"+R),b){b=o.flatArray(b);for(let h of b)i.push("eff_"+h,"eff_"+h.split(".")[0])}{let h=r.ClassNames("amotf_",_);i.push(h.className),_=h.otherParams}n&&i.push(r.ClassNames("amotf_bp",n).className);let p=t({},_);return m&&(p.style=t(t({},m),p.style)),(e||p["data-component-id"])&&(p["data-component-id"]=p["data-component-id"]||e),i.length&&(p.className=i.join(" ").trim().replace(/%/ig,"P").replace(/\d+px/ig,"PIX").replace(/\s+/ig," ").replace(/\//ig,"_").replace(/\./ig,"-")),p};export{je as GenerateClassName,ze as ReadStyleSet};
|