amotify 0.0.0

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.
Files changed (148) hide show
  1. package/dist/@comps/@core/bios.d.ts +14 -0
  2. package/dist/@comps/@core/bios.js +228 -0
  3. package/dist/@comps/@core/exe.d.ts +9 -0
  4. package/dist/@comps/@core/exe.js +12 -0
  5. package/dist/@comps/@core/jsminAmotifyExtension/_.d.ts +4 -0
  6. package/dist/@comps/@core/jsminAmotifyExtension/_.js +6 -0
  7. package/dist/@comps/@core/jsminAmotifyExtension/fetch.d.ts +9 -0
  8. package/dist/@comps/@core/jsminAmotifyExtension/fetch.js +199 -0
  9. package/dist/@comps/@core/jsminAmotifyExtension/formCollect.d.ts +1 -0
  10. package/dist/@comps/@core/jsminAmotifyExtension/formCollect.js +137 -0
  11. package/dist/@comps/@core/jsminAmotifyExtension/spreadSheet.d.ts +4 -0
  12. package/dist/@comps/@core/jsminAmotifyExtension/spreadSheet.js +314 -0
  13. package/dist/@comps/@core/jsminAmotifyExtension/variables.d.ts +0 -0
  14. package/dist/@comps/@core/jsminAmotifyExtension/variables.js +186 -0
  15. package/dist/@comps/@core/styleConverter.d.ts +2 -0
  16. package/dist/@comps/@core/styleConverter.js +349 -0
  17. package/dist/@comps/Atoms/@export.d.ts +4 -0
  18. package/dist/@comps/Atoms/@export.js +29 -0
  19. package/dist/@comps/Atoms/FAIcon/parts.d.ts +2 -0
  20. package/dist/@comps/Atoms/FAIcon/parts.js +153 -0
  21. package/dist/@comps/Atoms/Logo/parts.d.ts +1 -0
  22. package/dist/@comps/Atoms/Logo/parts.js +154 -0
  23. package/dist/@comps/Atoms/Various/parts.d.ts +9 -0
  24. package/dist/@comps/Atoms/Various/parts.js +113 -0
  25. package/dist/@comps/Functions/@export.d.ts +12 -0
  26. package/dist/@comps/Functions/@export.js +38 -0
  27. package/dist/@comps/Functions/Button/_.d.ts +1 -0
  28. package/dist/@comps/Functions/Button/_.js +270 -0
  29. package/dist/@comps/Functions/Cropper/parts.d.ts +1 -0
  30. package/dist/@comps/Functions/Cropper/parts.js +783 -0
  31. package/dist/@comps/Functions/Effects/Fade.d.ts +1 -0
  32. package/dist/@comps/Functions/Effects/Fade.js +80 -0
  33. package/dist/@comps/Functions/Effects/Ripple.d.ts +1 -0
  34. package/dist/@comps/Functions/Effects/Ripple.js +107 -0
  35. package/dist/@comps/Functions/Effects/_.d.ts +3 -0
  36. package/dist/@comps/Functions/Effects/_.js +43 -0
  37. package/dist/@comps/Functions/Input/Chips/Selector.d.ts +1 -0
  38. package/dist/@comps/Functions/Input/Chips/Selector.js +356 -0
  39. package/dist/@comps/Functions/Input/Chips/_.d.ts +2 -0
  40. package/dist/@comps/Functions/Input/Chips/_.js +218 -0
  41. package/dist/@comps/Functions/Input/DigitCharacters.d.ts +1 -0
  42. package/dist/@comps/Functions/Input/DigitCharacters.js +178 -0
  43. package/dist/@comps/Functions/Input/File/_.d.ts +2 -0
  44. package/dist/@comps/Functions/Input/File/_.js +458 -0
  45. package/dist/@comps/Functions/Input/Hidden.d.ts +1 -0
  46. package/dist/@comps/Functions/Input/Hidden.js +30 -0
  47. package/dist/@comps/Functions/Input/List/_.d.ts +1 -0
  48. package/dist/@comps/Functions/Input/List/_.js +232 -0
  49. package/dist/@comps/Functions/Input/Segmented/_.d.ts +1 -0
  50. package/dist/@comps/Functions/Input/Segmented/_.js +111 -0
  51. package/dist/@comps/Functions/Input/Select/_.d.ts +1 -0
  52. package/dist/@comps/Functions/Input/Select/_.js +154 -0
  53. package/dist/@comps/Functions/Input/Slider/_.d.ts +1 -0
  54. package/dist/@comps/Functions/Input/Slider/_.js +308 -0
  55. package/dist/@comps/Functions/Input/Switch/_.d.ts +1 -0
  56. package/dist/@comps/Functions/Input/Switch/_.js +120 -0
  57. package/dist/@comps/Functions/Input/Text.d.ts +5 -0
  58. package/dist/@comps/Functions/Input/Text.js +340 -0
  59. package/dist/@comps/Functions/Input/TextArea.d.ts +1 -0
  60. package/dist/@comps/Functions/Input/TextArea.js +98 -0
  61. package/dist/@comps/Functions/Input/Time/Picker.d.ts +1 -0
  62. package/dist/@comps/Functions/Input/Time/Picker.js +581 -0
  63. package/dist/@comps/Functions/Input/Time/_.d.ts +2 -0
  64. package/dist/@comps/Functions/Input/Time/_.js +567 -0
  65. package/dist/@comps/Functions/Input/_.d.ts +5 -0
  66. package/dist/@comps/Functions/Input/_.js +446 -0
  67. package/dist/@comps/Functions/Input/core.d.ts +34 -0
  68. package/dist/@comps/Functions/Input/core.js +324 -0
  69. package/dist/@comps/Functions/Inputs/_.d.ts +3 -0
  70. package/dist/@comps/Functions/Inputs/_.js +7 -0
  71. package/dist/@comps/Functions/Inputs/text.d.ts +12 -0
  72. package/dist/@comps/Functions/Inputs/text.js +46 -0
  73. package/dist/@comps/Functions/Layout/PageNotFound.d.ts +1 -0
  74. package/dist/@comps/Functions/Layout/PageNotFound.js +30 -0
  75. package/dist/@comps/Functions/Layout/PageRouter.d.ts +2 -0
  76. package/dist/@comps/Functions/Layout/PageRouter.js +65 -0
  77. package/dist/@comps/Functions/Layout/PageViewController/parts.d.ts +1 -0
  78. package/dist/@comps/Functions/Layout/PageViewController/parts.js +30 -0
  79. package/dist/@comps/Functions/Layout/Plate.d.ts +1 -0
  80. package/dist/@comps/Functions/Layout/Plate.js +39 -0
  81. package/dist/@comps/Functions/Layout/RootViewController/parts.d.ts +1 -0
  82. package/dist/@comps/Functions/Layout/RootViewController/parts.js +202 -0
  83. package/dist/@comps/Functions/Layout/SwipeView/parts.d.ts +2 -0
  84. package/dist/@comps/Functions/Layout/SwipeView/parts.js +319 -0
  85. package/dist/@comps/Functions/Layout/TabBar.d.ts +1 -0
  86. package/dist/@comps/Functions/Layout/TabBar.js +49 -0
  87. package/dist/@comps/Functions/Layout/_.d.ts +2 -0
  88. package/dist/@comps/Functions/Layout/_.js +20 -0
  89. package/dist/@comps/Functions/Loader/corner.d.ts +1 -0
  90. package/dist/@comps/Functions/Loader/corner.js +59 -0
  91. package/dist/@comps/Functions/Loader/mini.d.ts +33 -0
  92. package/dist/@comps/Functions/Loader/mini.js +126 -0
  93. package/dist/@comps/Functions/Loader/parts.d.ts +3 -0
  94. package/dist/@comps/Functions/Loader/parts.js +108 -0
  95. package/dist/@comps/Functions/Loader/top.d.ts +1 -0
  96. package/dist/@comps/Functions/Loader/top.js +69 -0
  97. package/dist/@comps/Functions/Sheet/parts.d.ts +2 -0
  98. package/dist/@comps/Functions/Sheet/parts.js +724 -0
  99. package/dist/@comps/Functions/SnackBar/parts.d.ts +2 -0
  100. package/dist/@comps/Functions/SnackBar/parts.js +171 -0
  101. package/dist/@comps/Functions/Table/Data/parts.d.ts +3 -0
  102. package/dist/@comps/Functions/Table/Data/parts.js +629 -0
  103. package/dist/@comps/Functions/Table/Drag/parts.d.ts +1 -0
  104. package/dist/@comps/Functions/Table/Drag/parts.js +359 -0
  105. package/dist/@comps/Functions/Table/Normal/parts.d.ts +1 -0
  106. package/dist/@comps/Functions/Table/Normal/parts.js +92 -0
  107. package/dist/@comps/Functions/Table/_.d.ts +9 -0
  108. package/dist/@comps/Functions/Table/_.js +153 -0
  109. package/dist/@comps/Functions/Tooltips/parts.d.ts +2 -0
  110. package/dist/@comps/Functions/Tooltips/parts.js +71 -0
  111. package/dist/@comps/Molecules/@export.d.ts +21 -0
  112. package/dist/@comps/Molecules/@export.js +50 -0
  113. package/dist/@comps/Molecules/Accordion/parts.d.ts +2 -0
  114. package/dist/@comps/Molecules/Accordion/parts.js +165 -0
  115. package/dist/@comps/Molecules/LinkifyText/parts.d.ts +1 -0
  116. package/dist/@comps/Molecules/LinkifyText/parts.js +39 -0
  117. package/dist/@comps/Molecules/List.d.ts +1 -0
  118. package/dist/@comps/Molecules/List.js +35 -0
  119. package/dist/@comps/Organisms/@export.d.ts +2 -0
  120. package/dist/@comps/Organisms/@export.js +9 -0
  121. package/dist/@comps/Organisms/DisplayStyleInput/_.d.ts +1 -0
  122. package/dist/@comps/Organisms/DisplayStyleInput/_.js +15 -0
  123. package/dist/@comps/Organisms/DisplayStyleInput/darkmode.d.ts +1 -0
  124. package/dist/@comps/Organisms/DisplayStyleInput/darkmode.js +77 -0
  125. package/dist/@comps/Organisms/DisplayStyleInput/themeColor.d.ts +27 -0
  126. package/dist/@comps/Organisms/DisplayStyleInput/themeColor.js +185 -0
  127. package/dist/@comps/Templates/@export.d.ts +2 -0
  128. package/dist/@comps/Templates/@export.js +9 -0
  129. package/dist/@comps/Templates/PlayGround/parts.d.ts +1 -0
  130. package/dist/@comps/Templates/PlayGround/parts.js +55 -0
  131. package/dist/@types/_.d.ts +6 -0
  132. package/dist/@types/_.js +8 -0
  133. package/dist/@types/amot.d.ts +260 -0
  134. package/dist/@types/amot.js +2 -0
  135. package/dist/@types/fn.d.ts +1040 -0
  136. package/dist/@types/fn.js +2 -0
  137. package/dist/@types/index.d.ts +59 -0
  138. package/dist/@types/index.js +2 -0
  139. package/dist/@types/jsminAmotifyExtension.d.ts +134 -0
  140. package/dist/@types/jsminAmotifyExtension.js +2 -0
  141. package/dist/@types/module.d.ts +2 -0
  142. package/dist/@types/module.js +1 -0
  143. package/dist/@types/state.d.ts +145 -0
  144. package/dist/@types/state.js +2 -0
  145. package/dist/launch.d.ts +3 -0
  146. package/dist/launch.js +282 -0
  147. package/package.json +65 -0
  148. package/tsconfig.json +48 -0
@@ -0,0 +1,349 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __rest = (this && this.__rest) || function (s, e) {
14
+ var t = {};
15
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
+ t[p] = s[p];
17
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
+ t[p[i]] = s[p[i]];
21
+ }
22
+ return t;
23
+ };
24
+ var __read = (this && this.__read) || function (o, n) {
25
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
26
+ if (!m) return o;
27
+ var i = m.call(o), r, ar = [], e;
28
+ try {
29
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
30
+ }
31
+ catch (error) { e = { error: error }; }
32
+ finally {
33
+ try {
34
+ if (r && !r.done && (m = i["return"])) m.call(i);
35
+ }
36
+ finally { if (e) throw e.error; }
37
+ }
38
+ return ar;
39
+ };
40
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
41
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
42
+ if (ar || !(i in from)) {
43
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
44
+ ar[i] = from[i];
45
+ }
46
+ }
47
+ return to.concat(ar || Array.prototype.slice.call(from));
48
+ };
49
+ var __values = (this && this.__values) || function(o) {
50
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
51
+ if (m) return m.call(o);
52
+ if (o && typeof o.length === "number") return {
53
+ next: function () {
54
+ if (o && i >= o.length) o = void 0;
55
+ return { value: o && o[i++], done: !o };
56
+ }
57
+ };
58
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
59
+ };
60
+ Object.defineProperty(exports, "__esModule", { value: true });
61
+ exports.ToClassName = exports.ReadStyleSet = void 0;
62
+ var FNs = {
63
+ toConcreteBorderRadius: function (br) {
64
+ var roundness = amotify.config.roundness | 0;
65
+ if (br == '1.tone.primary') {
66
+ br = [0, 2, 3, 4, 5, 5][roundness];
67
+ }
68
+ else if (br == '2.tone.secondary') {
69
+ br = [0, 1, 2, 3, 4, 5][roundness];
70
+ }
71
+ else if (br == '3.tone.tertiary') {
72
+ br = [0, '1/3', '2/3', 1, 2, 3][roundness];
73
+ }
74
+ return br;
75
+ },
76
+ ev: function (v) { return $.is.nullish(v); },
77
+ ClassNames: function (type, params) {
78
+ var _a, _b, _c, _d, _e;
79
+ var _f, _g, _h, _j, _k, _l, _m;
80
+ var CLS = [];
81
+ var gap = params.gap, disp = params.display, position = params.position, overflow = params.overflow, fontColor = params.fontColor, fontSize = params.fontSize, fontWeight = params.fontWeight, bgc = params.backgroundColor, textAlign = params.textAlign, boxShadow = params.boxShadow, mrg = params.margin, mrgT = params.marginTop, mrgR = params.marginRight, mrgB = params.marginBottom, mrgL = params.marginLeft, pd = params.padding, pdT = params.paddingTop, pdR = params.paddingRight, pdB = params.paddingBottom, pdL = params.paddingLeft, T = params.top, R = params.right, B = params.bottom, L = params.left, b = params.border, bT = params.borderTop, bR = params.borderRight, bB = params.borderBottom, bL = params.borderLeft, bWidth = params.borderWidth,
82
+ // borderTopWidth: bTWidth,
83
+ // borderRightWidth: bRWidth,
84
+ // borderBottomWidth: bBWidth,
85
+ // borderLeftWidth: bLWidth,
86
+ bColor = params.borderColor,
87
+ // borderTopColor: bTColor,
88
+ // borderRightColor: bRColor,
89
+ // borderBottomColor: bBColor,
90
+ // borderLeftColor: bLColor,
91
+ bStyle = params.borderStyle,
92
+ // borderTopStyle: bTStyle,
93
+ // borderRightStyle: bRStyle,
94
+ // borderBottomStyle: bBStyle,
95
+ // borderLeftStyle: bLStyle,
96
+ br = params.borderRadius, brTL = params.borderTopLeftRadius, brTR = params.borderTopRightRadius, brBL = params.borderBottomLeftRadius, brBR = params.borderBottomRightRadius, flexSizing = params.flexSizing, flexWrap = params.flexWrap, flexType = params.flexType, flexChilds = params.flexChilds, flexGrid = params.flexGrid, horizontalAlign = params.horizontalAlign, verticalAlign = params.verticalAlign, transition = params.transition, gridCenter = params.gridCenter, gridCols = params.gridCols, maxHeight = params.maxHeight, minHeight = params.minHeight, maxWidth = params.maxWidth, minWidth = params.minWidth, width = params.width, height = params.height, unitHeight = params.unitHeight, unitWidth = params.unitWidth, opacity = params.opacity, others = __rest(params, ["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"]);
97
+ {
98
+ FNs.ev(disp) || CLS.push('dsp' + disp);
99
+ if (overflow) {
100
+ var arr = $.flatArray(overflow);
101
+ CLS.push('ovfl-x-' + arr[0]);
102
+ CLS.push('ovfl-y-' + (arr[1] || arr[0]));
103
+ }
104
+ FNs.ev(position) || (CLS.push('ps' + position));
105
+ FNs.ev(textAlign) || (CLS.push('txalg' + textAlign));
106
+ FNs.ev(fontColor) || (CLS.push('ftcl' + ((_f = String(fontColor)) === null || _f === void 0 ? void 0 : _f.replace(/\..*/, ''))));
107
+ FNs.ev(fontSize) || (CLS.push('ftsz' + ((_g = String(fontSize)) === null || _g === void 0 ? void 0 : _g.replace(/\..*/, ''))));
108
+ FNs.ev(fontWeight) || (CLS.push('ftwt' + (fontWeight === null || fontWeight === void 0 ? void 0 : fontWeight.replace(/\..*/, ''))));
109
+ FNs.ev(bgc) || CLS.push('bgc' + ((_h = String(bgc)) === null || _h === void 0 ? void 0 : _h.replace(/\..*/, '')));
110
+ FNs.ev(boxShadow) || (CLS.push('bs' + boxShadow));
111
+ var _mrgT = void 0, _mrgR = void 0, _mrgB = void 0, _mrgL = void 0;
112
+ if ($.is.exist(mrg)) {
113
+ if ($.is.array(mrg)) {
114
+ if (mrg.length == 2)
115
+ _a = __read(__spreadArray(__spreadArray([], __read(mrg), false), __read(mrg), false), 4), _mrgT = _a[0], _mrgR = _a[1], _mrgB = _a[2], _mrgL = _a[3];
116
+ else if (mrg.length == 4)
117
+ _b = __read(mrg, 4), _mrgT = _b[0], _mrgR = _b[1], _mrgB = _b[2], _mrgL = _b[3];
118
+ }
119
+ else
120
+ _mrgT = _mrgR = _mrgB = _mrgL = mrg;
121
+ mrgT = mrgT !== null && mrgT !== void 0 ? mrgT : _mrgT;
122
+ mrgR = mrgR !== null && mrgR !== void 0 ? mrgR : _mrgR;
123
+ mrgB = mrgB !== null && mrgB !== void 0 ? mrgB : _mrgB;
124
+ mrgL = mrgL !== null && mrgL !== void 0 ? mrgL : _mrgL;
125
+ }
126
+ FNs.ev(mrgT) || (CLS.push('mrgt' + mrgT));
127
+ FNs.ev(mrgR) || (CLS.push('mrgr' + mrgR));
128
+ FNs.ev(mrgB) || (CLS.push('mrgb' + mrgB));
129
+ FNs.ev(mrgL) || (CLS.push('mrgl' + mrgL));
130
+ var _pdT = void 0, _pdR = void 0, _pdB = void 0, _pdL = void 0;
131
+ if ($.is.exist(pd)) {
132
+ if ($.is.array(pd)) {
133
+ if (pd.length == 2)
134
+ _c = __read(__spreadArray(__spreadArray([], __read(pd), false), __read(pd), false), 4), _pdT = _c[0], _pdR = _c[1], _pdB = _c[2], _pdL = _c[3];
135
+ else if (pd.length == 4)
136
+ _d = __read(pd, 4), _pdT = _d[0], _pdR = _d[1], _pdB = _d[2], _pdL = _d[3];
137
+ }
138
+ else
139
+ _pdT = _pdR = _pdB = _pdL = pd;
140
+ pdT = pdT !== null && pdT !== void 0 ? pdT : _pdT;
141
+ pdR = pdR !== null && pdR !== void 0 ? pdR : _pdR;
142
+ pdB = pdB !== null && pdB !== void 0 ? pdB : _pdB;
143
+ pdL = pdL !== null && pdL !== void 0 ? pdL : _pdL;
144
+ }
145
+ FNs.ev(pdT) || (CLS.push('pdt' + pdT));
146
+ FNs.ev(pdR) || (CLS.push('pdr' + pdR));
147
+ FNs.ev(pdB) || (CLS.push('pdb' + pdB));
148
+ FNs.ev(pdL) || (CLS.push('pdl' + pdL));
149
+ FNs.ev(T) || (CLS.push('pstt' + T));
150
+ FNs.ev(R) || (CLS.push('pstr' + R));
151
+ FNs.ev(B) || (CLS.push('pstb' + B));
152
+ FNs.ev(L) || (CLS.push('pstl' + L));
153
+ {
154
+ {
155
+ if ($.is.exist(b)) {
156
+ bT = bT !== null && bT !== void 0 ? bT : b;
157
+ bR = bR !== null && bR !== void 0 ? bR : b;
158
+ bB = bB !== null && bB !== void 0 ? bB : b;
159
+ bL = bL !== null && bL !== void 0 ? bL : b;
160
+ }
161
+ if ($.is.boolean(bT))
162
+ bT = ['unset', '2.normal'][Number(bT)];
163
+ if ($.is.boolean(bR))
164
+ bR = ['unset', '2.normal'][Number(bR)];
165
+ if ($.is.boolean(bB))
166
+ bB = ['unset', '2.normal'][Number(bB)];
167
+ if ($.is.boolean(bL))
168
+ bL = ['unset', '2.normal'][Number(bL)];
169
+ FNs.ev(bT) || (CLS.push('b_t_ss' + ((_j = String(bT)) === null || _j === void 0 ? void 0 : _j.replace(/\..*/, ''))));
170
+ FNs.ev(bR) || (CLS.push('b_r_ss' + ((_k = String(bR)) === null || _k === void 0 ? void 0 : _k.replace(/\..*/, ''))));
171
+ FNs.ev(bB) || (CLS.push('b_b_ss' + ((_l = String(bB)) === null || _l === void 0 ? void 0 : _l.replace(/\..*/, ''))));
172
+ FNs.ev(bL) || (CLS.push('b_l_ss' + ((_m = String(bL)) === null || _m === void 0 ? void 0 : _m.replace(/\..*/, ''))));
173
+ }
174
+ if ($.is.exist(bWidth))
175
+ CLS.push('b_wth' + String(bWidth));
176
+ if ($.is.exist(bColor))
177
+ CLS.push('b_cl' + String(bColor));
178
+ if ($.is.exist(bStyle))
179
+ CLS.push('b_st' + String(bStyle));
180
+ {
181
+ var _brTL = void 0, _brTR = void 0, _brBL = void 0, _brBR = void 0;
182
+ if ($.is.exist(br)) {
183
+ if ($.is.array(br)) {
184
+ if (br.length == 4)
185
+ _e = __read(br, 4), _brTL = _e[0], _brTR = _e[1], _brBR = _e[2], _brBL = _e[3];
186
+ }
187
+ else {
188
+ _brTL = _brTR = _brBL = _brBR = br;
189
+ }
190
+ brTL = brTL !== null && brTL !== void 0 ? brTL : _brTL;
191
+ brTR = brTR !== null && brTR !== void 0 ? brTR : _brTR;
192
+ brBL = brBL !== null && brBL !== void 0 ? brBL : _brBL;
193
+ brBR = brBR !== null && brBR !== void 0 ? brBR : _brBR;
194
+ }
195
+ }
196
+ FNs.ev(brTL) || (CLS.push('br_tl' + FNs.toConcreteBorderRadius(brTL)));
197
+ FNs.ev(brTR) || (CLS.push('br_tr' + FNs.toConcreteBorderRadius(brTR)));
198
+ FNs.ev(brBL) || (CLS.push('br_bl' + FNs.toConcreteBorderRadius(brBL)));
199
+ FNs.ev(brBR) || (CLS.push('br_br' + FNs.toConcreteBorderRadius(brBR)));
200
+ }
201
+ FNs.ev(opacity) || (CLS.push('op' + opacity));
202
+ if ($.is.exist(gap)) {
203
+ var gapRow = void 0, gapCol = void 0;
204
+ if ($.is.array(gap))
205
+ gapRow = gap[0], gapCol = gap[1];
206
+ else
207
+ gapRow = gapCol = gap;
208
+ CLS.push.apply(CLS, ['gapRow' + gapRow, 'gapCol' + gapCol]);
209
+ }
210
+ FNs.ev(flexSizing) || (CLS.push('flsz' + flexSizing));
211
+ FNs.ev(flexWrap) || (CLS.push('flwrp' + flexWrap));
212
+ FNs.ev(flexType) || (CLS.push('fltyp' + flexType));
213
+ FNs.ev(flexChilds) || (CLS.push('flchld' + flexChilds));
214
+ FNs.ev(flexGrid) || (CLS.push('flgrid' + flexGrid));
215
+ FNs.ev(verticalAlign) || (CLS.push('flvrt' + verticalAlign));
216
+ FNs.ev(horizontalAlign) || (CLS.push('flhrz' + horizontalAlign));
217
+ FNs.ev(gridCenter) || (CLS.push('grcnt' + gridCenter));
218
+ FNs.ev(gridCols) || (CLS.push('grcol' + gridCols));
219
+ FNs.ev(height) || (CLS.push('hgt' + height));
220
+ FNs.ev(width) || (CLS.push('wdt' + width));
221
+ FNs.ev(unitHeight) || (CLS.push('unthgt' + unitHeight));
222
+ FNs.ev(unitWidth) || (CLS.push('untwdt' + unitWidth));
223
+ FNs.ev(transition) || (CLS.push('trnst' + transition));
224
+ FNs.ev(maxHeight) || (CLS.push('maxh' + maxHeight));
225
+ FNs.ev(minHeight) || (CLS.push('minh' + minHeight));
226
+ FNs.ev(maxWidth) || (CLS.push('maxw' + maxWidth));
227
+ FNs.ev(minWidth) || (CLS.push('minw' + minWidth));
228
+ }
229
+ return {
230
+ otherParams: others,
231
+ className: CLS.length ? type + CLS.join(' ' + type) : ''
232
+ };
233
+ }
234
+ };
235
+ var ReadStyleSet = function (rawParams) {
236
+ var params = __assign({}, rawParams);
237
+ var gradients = params.gradients, ssCardBox = params.ssCardBox, ssSphere = params.ssSphere, ssSquare = params.ssSquare, ssPushable = params.ssPushable, ssAbsoluteCovered = params.ssAbsoluteCovered, ssTextEllipsis = params.ssTextEllipsis, flexCenter = params.flexCenter, flexNewLine = params.flexNewLine, isBoldFont = params.isBoldFont, isRounded = params.isRounded, ReturnParams = __rest(params, ["gradients", "ssCardBox", "ssSphere", "ssSquare", "ssPushable", "ssAbsoluteCovered", "ssTextEllipsis", "flexCenter", "flexNewLine", "isBoldFont", "isRounded"]);
238
+ if (gradients) {
239
+ var deg = gradients.deg, colors = gradients.colors;
240
+ ReturnParams = __assign(__assign({}, ReturnParams), { freeCSS: {
241
+ background: "linear-gradient(".concat(deg, "deg,").concat(colors.join(','), ")"),
242
+ } });
243
+ }
244
+ if (ssCardBox) {
245
+ if (ssCardBox === true) {
246
+ ssCardBox = 'border';
247
+ if (amotify.config.tone == 'flat')
248
+ ssCardBox = 'cloud';
249
+ }
250
+ var exStyles = {
251
+ backgroundColor: '1.layer.base',
252
+ borderRadius: '1.tone.primary',
253
+ boxShadow: 0,
254
+ freeCSS: {
255
+ zIndex: 1
256
+ }
257
+ };
258
+ if (ssCardBox == 'border') {
259
+ exStyles.border = true;
260
+ }
261
+ else if (ssCardBox == 'layer') {
262
+ exStyles.backgroundColor = '1.layer.base';
263
+ }
264
+ else if (ssCardBox == 'cloud') {
265
+ exStyles.backgroundColor = 'cloud';
266
+ }
267
+ else if (ssCardBox == 'shadow') {
268
+ exStyles.boxShadow = 1;
269
+ }
270
+ if (['dim', 'dark'].includes(amotify.config.darkMode))
271
+ exStyles.boxShadow = 2;
272
+ ReturnParams = $.deepMerge(exStyles, ReturnParams);
273
+ }
274
+ if (ssSphere) {
275
+ flexCenter = flexCenter !== null && flexCenter !== void 0 ? flexCenter : true;
276
+ ReturnParams = __assign({ padding: 0, unitWidth: ssSphere, unitHeight: ssSphere, borderRadius: 'sphere', flexSizing: 'none' }, ReturnParams);
277
+ }
278
+ if (ssSquare) {
279
+ flexCenter = flexCenter !== null && flexCenter !== void 0 ? flexCenter : true;
280
+ ReturnParams = __assign({ padding: 0, unitWidth: ssSquare, unitHeight: ssSquare, flexSizing: 'none' }, ReturnParams);
281
+ }
282
+ !ssPushable || (ReturnParams = __assign(__assign({ transition: 'middle' }, ReturnParams), { className: [
283
+ ReturnParams.className,
284
+ 'ssPushable'
285
+ ].join(' ') }));
286
+ !ssAbsoluteCovered || (ReturnParams = __assign({ position: 'absolute', top: 0, left: 0, right: 0, bottom: 0 }, ReturnParams));
287
+ !ssTextEllipsis || (ReturnParams = __assign(__assign({ overflow: 'hidden' }, ReturnParams), { freeCSS: __assign({ whiteSpace: 'nowrap', textOverflow: 'ellipsis' }, ReturnParams.freeCSS) }));
288
+ !flexNewLine || (ReturnParams = __assign({ width: 1, flexSizing: 'none' }, ReturnParams));
289
+ !flexCenter || (ReturnParams = __assign({ display: 'flex', horizontalAlign: 'center', verticalAlign: 'center' }, ReturnParams));
290
+ !isBoldFont || (ReturnParams = __assign(__assign({}, ReturnParams), { fontWeight: '3.bold' }));
291
+ !isRounded || (ReturnParams = __assign(__assign({}, ReturnParams), { borderRadius: 'sphere' }));
292
+ return ReturnParams;
293
+ };
294
+ exports.ReadStyleSet = ReadStyleSet;
295
+ var ToClassName = function (rawParams) {
296
+ var e_1, _a;
297
+ var params = (0, exports.ReadStyleSet)(rawParams);
298
+ var componentID = params.componentID, _b = params.UnderBreakPointStyles, UnderBreakPointStyles = _b === void 0 ? {} : _b, _c = params.hoverStyles, hoverStyles = _c === void 0 ? {} : _c, _d = params.focusStyles, focusStyles = _d === void 0 ? {} : _d, _e = params.activeStyles, activeStyles = _e === void 0 ? {} : _e, _f = params.className, className = _f === void 0 ? '' : _f, _g = params.freeCSS, freeCSS = _g === void 0 ? {} : _g, ssEffectsOnActive = params.ssEffectsOnActive, ssLastChildLossBorder = params.ssLastChildLossBorder, others = __rest(params, ["componentID", "UnderBreakPointStyles", "hoverStyles", "focusStyles", "activeStyles", "className", "freeCSS", "ssEffectsOnActive", "ssLastChildLossBorder"]);
299
+ var ClassNames = [className];
300
+ if (ssLastChildLossBorder) {
301
+ ClassNames.push('ssLastChildLossBorder_' + ssLastChildLossBorder);
302
+ }
303
+ if (ssEffectsOnActive) {
304
+ ssEffectsOnActive = $.flatArray(ssEffectsOnActive);
305
+ try {
306
+ for (var _h = __values(ssEffectsOnActive), _j = _h.next(); !_j.done; _j = _h.next()) {
307
+ var effect = _j.value;
308
+ ClassNames.push.apply(ClassNames, ['eff_' + effect, 'eff_' + effect.split('.')[0]]);
309
+ }
310
+ }
311
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
312
+ finally {
313
+ try {
314
+ if (_j && !_j.done && (_a = _h.return)) _a.call(_h);
315
+ }
316
+ finally { if (e_1) throw e_1.error; }
317
+ }
318
+ }
319
+ {
320
+ var result = FNs.ClassNames('¥', others);
321
+ ClassNames.push(result.className);
322
+ others = result.otherParams;
323
+ }
324
+ if (UnderBreakPointStyles)
325
+ ClassNames.push(FNs.ClassNames('¥bk', UnderBreakPointStyles).className);
326
+ if (hoverStyles)
327
+ ClassNames.push(FNs.ClassNames('¥_h', hoverStyles).className);
328
+ if (focusStyles)
329
+ ClassNames.push(FNs.ClassNames('¥_f', focusStyles).className);
330
+ if (activeStyles)
331
+ ClassNames.push(FNs.ClassNames('¥_a', activeStyles).className);
332
+ var states = __assign({}, others);
333
+ if (freeCSS)
334
+ states.style = __assign(__assign({}, freeCSS), states.style);
335
+ if (componentID || states['data-component-id']) {
336
+ states['data-component-id'] = states['data-component-id'] || componentID;
337
+ }
338
+ if (ClassNames.length) {
339
+ states.className = ClassNames.join(' ')
340
+ .trim()
341
+ .replace(/%/ig, 'P')
342
+ .replace(/\d+px/ig, 'PIX')
343
+ .replace(/\s+/ig, ' ')
344
+ .replace(/\//ig, '_')
345
+ .replace(/\./ig, '-');
346
+ }
347
+ return states;
348
+ };
349
+ exports.ToClassName = ToClassName;
@@ -0,0 +1,4 @@
1
+ import { Box, Span, Img, Flex, FlexBr, Grid, Paragraph, Placeholder } from './Various/parts';
2
+ import { FAIcon } from './FAIcon/parts';
3
+ import { Logo } from './Logo/parts';
4
+ export { Flex, FlexBr, FAIcon, Placeholder, Grid, Logo, Box, Span, Paragraph, Img };
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Img = exports.Paragraph = exports.Span = exports.Box = exports.Logo = exports.Grid = exports.Placeholder = exports.FAIcon = exports.FlexBr = exports.Flex = void 0;
4
+ var parts_1 = require("./Various/parts");
5
+ Object.defineProperty(exports, "Box", { enumerable: true, get: function () { return parts_1.Box; } });
6
+ Object.defineProperty(exports, "Span", { enumerable: true, get: function () { return parts_1.Span; } });
7
+ Object.defineProperty(exports, "Img", { enumerable: true, get: function () { return parts_1.Img; } });
8
+ Object.defineProperty(exports, "Flex", { enumerable: true, get: function () { return parts_1.Flex; } });
9
+ Object.defineProperty(exports, "FlexBr", { enumerable: true, get: function () { return parts_1.FlexBr; } });
10
+ Object.defineProperty(exports, "Grid", { enumerable: true, get: function () { return parts_1.Grid; } });
11
+ Object.defineProperty(exports, "Paragraph", { enumerable: true, get: function () { return parts_1.Paragraph; } });
12
+ Object.defineProperty(exports, "Placeholder", { enumerable: true, get: function () { return parts_1.Placeholder; } });
13
+ var parts_2 = require("./FAIcon/parts");
14
+ Object.defineProperty(exports, "FAIcon", { enumerable: true, get: function () { return parts_2.FAIcon; } });
15
+ var parts_3 = require("./Logo/parts");
16
+ Object.defineProperty(exports, "Logo", { enumerable: true, get: function () { return parts_3.Logo; } });
17
+ global.amotify.atoms = {
18
+ Flex: parts_1.Flex,
19
+ FlexBr: parts_1.FlexBr,
20
+ FAIcon: parts_2.FAIcon,
21
+ Placeholder: parts_1.Placeholder,
22
+ Grid: parts_1.Grid,
23
+ Logo: parts_3.Logo,
24
+ Box: parts_1.Box,
25
+ Span: parts_1.Span,
26
+ Paragraph: parts_1.Paragraph,
27
+ Img: parts_1.Img
28
+ };
29
+ Object.freeze(global.amotify.atoms);
@@ -0,0 +1,2 @@
1
+ declare const FAIcon: amotify.atoms.FAIcon.Method;
2
+ export { FAIcon };
@@ -0,0 +1,153 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __rest = (this && this.__rest) || function (s, e) {
14
+ var t = {};
15
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
+ t[p] = s[p];
17
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
+ t[p[i]] = s[p[i]];
21
+ }
22
+ return t;
23
+ };
24
+ var __read = (this && this.__read) || function (o, n) {
25
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
26
+ if (!m) return o;
27
+ var i = m.call(o), r, ar = [], e;
28
+ try {
29
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
30
+ }
31
+ catch (error) { e = { error: error }; }
32
+ finally {
33
+ try {
34
+ if (r && !r.done && (m = i["return"])) m.call(i);
35
+ }
36
+ finally { if (e) throw e.error; }
37
+ }
38
+ return ar;
39
+ };
40
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
41
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
42
+ if (ar || !(i in from)) {
43
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
44
+ ar[i] = from[i];
45
+ }
46
+ }
47
+ return to.concat(ar || Array.prototype.slice.call(from));
48
+ };
49
+ var __values = (this && this.__values) || function(o) {
50
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
51
+ if (m) return m.call(o);
52
+ if (o && typeof o.length === "number") return {
53
+ next: function () {
54
+ if (o && i >= o.length) o = void 0;
55
+ return { value: o && o[i++], done: !o };
56
+ }
57
+ };
58
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
59
+ };
60
+ var __importDefault = (this && this.__importDefault) || function (mod) {
61
+ return (mod && mod.__esModule) ? mod : { "default": mod };
62
+ };
63
+ var e_1, _a;
64
+ Object.defineProperty(exports, "__esModule", { value: true });
65
+ exports.FAIcon = void 0;
66
+ var StyleConverter = amotify.glob.StyleConverter;
67
+ var style_module_scss_1 = __importDefault(require("./style.module.scss"));
68
+ var parts_1 = require("../Various/parts");
69
+ var FaIconComp = function (params) {
70
+ var _a = params.iconAnimation, iconAnimation = _a === void 0 ? false : _a, iconFamily = params.iconFamily, isSolidIcon = params.isSolidIcon, isRegularIcon = params.isRegularIcon, isLightIcon = params.isLightIcon, isThinIcon = params.isThinIcon, isDuotoneIcon = params.isDuotoneIcon, _b = params.isBrandIcon, isBrandIcon = _b === void 0 ? false : _b, _c = params.d, d = _c === void 0 ? 'image-slash' : _c, others = __rest(params, ["iconAnimation", "iconFamily", "isSolidIcon", "isRegularIcon", "isLightIcon", "isThinIcon", "isDuotoneIcon", "isBrandIcon", "d"]);
71
+ var ClassNames = [
72
+ style_module_scss_1.default.FAIcon,
73
+ 'fa-' + d,
74
+ 'fa-fw'
75
+ ];
76
+ if (!isBrandIcon) {
77
+ var tone = amotify.config.tone;
78
+ if (!isSolidIcon && !isRegularIcon && !isLightIcon && !isThinIcon && !isDuotoneIcon)
79
+ isRegularIcon = true;
80
+ if (tone == 'default') {
81
+ }
82
+ else if (tone == 'sharp') {
83
+ iconFamily = iconFamily || 'sharp';
84
+ }
85
+ var iconStyle = isSolidIcon ? 'solid' :
86
+ isRegularIcon ? 'regular' :
87
+ isLightIcon ? 'light' :
88
+ isThinIcon ? 'thin' :
89
+ isDuotoneIcon ? 'duotone' :
90
+ 'regular';
91
+ iconFamily = iconFamily || 'classic';
92
+ if (iconAnimation == 'spin-reverse')
93
+ iconAnimation = 'spin fa-spin-reverse';
94
+ ClassNames = __spreadArray([
95
+ 'fa-' + iconFamily,
96
+ 'fa-' + iconStyle
97
+ ], __read(ClassNames), false);
98
+ if (iconAnimation)
99
+ ClassNames.push('fa-' + iconAnimation);
100
+ }
101
+ else {
102
+ ClassNames = __spreadArray([
103
+ 'fa-brands'
104
+ ], __read(ClassNames), false);
105
+ }
106
+ return (React.createElement(parts_1.Box, __assign({ verticalAlign: 'center', horizontalAlign: 'center' }, others, { freeCSS: __assign({ display: 'inline-flex' }, others.freeCSS) }),
107
+ React.createElement("i", { className: ClassNames.join(' ') })));
108
+ };
109
+ var FAIcon = FaIconComp;
110
+ exports.FAIcon = FAIcon;
111
+ var shortKeys = [
112
+ 'user',
113
+ 'times',
114
+ 'descktop',
115
+ 'angle-right', 'angle-left', 'angle-up', 'angle-down',
116
+ 'chevron-left', 'chevron-right', 'chevron-up', 'chevron-down',
117
+ 'caret-left', 'caretRight', 'caret-up', 'caret-down',
118
+ 'arrow-left', 'arrow-right', 'arrow-up', 'arrow-down',
119
+ 'rotate', 'rotate-left', 'rotate-right', 'redo',
120
+ 'play', 'pause', 'stop', 'forward-step', 'backward-step',
121
+ 'check', 'check-circle',
122
+ 'question', 'question-circle', 'exclamation', 'exclamation-triangle',
123
+ 'home', 'share', 'volume',
124
+ 'search', 'yen-sign', 'heart', 'star',
125
+ 'edit', 'pen', 'copy', 'files', 'file',
126
+ 'backspace',
127
+ 'trash-alt',
128
+ 'bars',
129
+ 'download',
130
+ 'link', 'link-slash', 'external-link-alt',
131
+ 'gear',
132
+ 'plus', 'minus', 'equals', 'calculator',
133
+ 'image',
134
+ 'badge-percent'
135
+ ];
136
+ var _loop_1 = function (key) {
137
+ FAIcon[key.toCapital()] = function (params) {
138
+ return React.createElement(FaIconComp, __assign({ d: key }, params));
139
+ };
140
+ };
141
+ try {
142
+ for (var shortKeys_1 = __values(shortKeys), shortKeys_1_1 = shortKeys_1.next(); !shortKeys_1_1.done; shortKeys_1_1 = shortKeys_1.next()) {
143
+ var key = shortKeys_1_1.value;
144
+ _loop_1(key);
145
+ }
146
+ }
147
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
148
+ finally {
149
+ try {
150
+ if (shortKeys_1_1 && !shortKeys_1_1.done && (_a = shortKeys_1.return)) _a.call(shortKeys_1);
151
+ }
152
+ finally { if (e_1) throw e_1.error; }
153
+ }
@@ -0,0 +1 @@
1
+ export declare const Logo: amotify.atoms.Logos.Methods;