@cambly/syntax-core 2.0.0 → 2.2.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.
- package/dist/index.css +1551 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +313 -2
- package/dist/index.js +311 -82
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +307 -79
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,10 +1,39 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defProps = Object.defineProperties;
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
5
7
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
9
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
10
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
+
var __spreadValues = (a, b) => {
|
|
14
|
+
for (var prop in b || (b = {}))
|
|
15
|
+
if (__hasOwnProp.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
if (__getOwnPropSymbols)
|
|
18
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
+
if (__propIsEnum.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
}
|
|
22
|
+
return a;
|
|
23
|
+
};
|
|
24
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
|
+
var __objRest = (source, exclude) => {
|
|
26
|
+
var target = {};
|
|
27
|
+
for (var prop in source)
|
|
28
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
29
|
+
target[prop] = source[prop];
|
|
30
|
+
if (source != null && __getOwnPropSymbols)
|
|
31
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
32
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
33
|
+
target[prop] = source[prop];
|
|
34
|
+
}
|
|
35
|
+
return target;
|
|
36
|
+
};
|
|
8
37
|
var __commonJS = (cb, mod) => function __require() {
|
|
9
38
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
39
|
};
|
|
@@ -37,7 +66,7 @@ var require_classnames = __commonJS({
|
|
|
37
66
|
"use strict";
|
|
38
67
|
var hasOwn = {}.hasOwnProperty;
|
|
39
68
|
var nativeCodeString = "[native code]";
|
|
40
|
-
function
|
|
69
|
+
function classNames8() {
|
|
41
70
|
var classes = [];
|
|
42
71
|
for (var i = 0; i < arguments.length; i++) {
|
|
43
72
|
var arg = arguments[i];
|
|
@@ -48,7 +77,7 @@ var require_classnames = __commonJS({
|
|
|
48
77
|
classes.push(arg);
|
|
49
78
|
} else if (Array.isArray(arg)) {
|
|
50
79
|
if (arg.length) {
|
|
51
|
-
var inner =
|
|
80
|
+
var inner = classNames8.apply(null, arg);
|
|
52
81
|
if (inner) {
|
|
53
82
|
classes.push(inner);
|
|
54
83
|
}
|
|
@@ -68,14 +97,14 @@ var require_classnames = __commonJS({
|
|
|
68
97
|
return classes.join(" ");
|
|
69
98
|
}
|
|
70
99
|
if (typeof module2 !== "undefined" && module2.exports) {
|
|
71
|
-
|
|
72
|
-
module2.exports =
|
|
100
|
+
classNames8.default = classNames8;
|
|
101
|
+
module2.exports = classNames8;
|
|
73
102
|
} else if (typeof define === "function" && typeof define.amd === "object" && define.amd) {
|
|
74
103
|
define("classnames", [], function() {
|
|
75
|
-
return
|
|
104
|
+
return classNames8;
|
|
76
105
|
});
|
|
77
106
|
} else {
|
|
78
|
-
window.classNames =
|
|
107
|
+
window.classNames = classNames8;
|
|
79
108
|
}
|
|
80
109
|
})();
|
|
81
110
|
}
|
|
@@ -85,6 +114,7 @@ var require_classnames = __commonJS({
|
|
|
85
114
|
var src_exports = {};
|
|
86
115
|
__export(src_exports, {
|
|
87
116
|
Avatar: () => Avatar_default,
|
|
117
|
+
Box: () => Box,
|
|
88
118
|
Button: () => Button_default,
|
|
89
119
|
ButtonGroup: () => ButtonGroup_default,
|
|
90
120
|
Card: () => Card_default,
|
|
@@ -122,30 +152,231 @@ var Avatar = ({
|
|
|
122
152
|
};
|
|
123
153
|
var Avatar_default = Avatar;
|
|
124
154
|
|
|
125
|
-
// src/
|
|
155
|
+
// src/Box/Box.tsx
|
|
126
156
|
var import_classnames2 = __toESM(require_classnames());
|
|
127
157
|
|
|
128
|
-
// css-module:./
|
|
158
|
+
// css-module:./Box.module.css#css-module
|
|
159
|
+
var Box_module_default = { "box": "_box_sfdi9_1", "flexWrap": "_flexWrap_sfdi9_5", "alignItemscenter": "_alignItemscenter_sfdi9_10", "alignItemsstart": "_alignItemsstart_sfdi9_14", "alignItemsend": "_alignItemsend_sfdi9_18", "alignItemsstretch": "_alignItemsstretch_sfdi9_22", "alignItemsbaseline": "_alignItemsbaseline_sfdi9_26", "alignItemscenterSmall": "_alignItemscenterSmall_sfdi9_32", "alignItemsstartSmall": "_alignItemsstartSmall_sfdi9_36", "alignItemsendSmall": "_alignItemsendSmall_sfdi9_40", "alignItemsstretchSmall": "_alignItemsstretchSmall_sfdi9_44", "alignItemsbaselineSmall": "_alignItemsbaselineSmall_sfdi9_48", "alignItemscenterLarge": "_alignItemscenterLarge_sfdi9_55", "alignItemsstartLarge": "_alignItemsstartLarge_sfdi9_59", "alignItemsendLarge": "_alignItemsendLarge_sfdi9_63", "alignItemsstretchLarge": "_alignItemsstretchLarge_sfdi9_67", "alignItemsbaselineLarge": "_alignItemsbaselineLarge_sfdi9_71", "alignSelfcenter": "_alignSelfcenter_sfdi9_77", "alignSelfstart": "_alignSelfstart_sfdi9_81", "alignSelfend": "_alignSelfend_sfdi9_85", "alignSelfstretch": "_alignSelfstretch_sfdi9_89", "alignSelfbaseline": "_alignSelfbaseline_sfdi9_93", "alignSelfauto": "_alignSelfauto_sfdi9_97", "roundingsm": "_roundingsm_sfdi9_102", "roundingmd": "_roundingmd_sfdi9_106", "roundinglg": "_roundinglg_sfdi9_110", "roundingxl": "_roundingxl_sfdi9_114", "roundingpill": "_roundingpill_sfdi9_118", "block": "_block_sfdi9_123", "flex": "_flex_sfdi9_5", "inlineBlock": "_inlineBlock_sfdi9_131", "none": "_none_sfdi9_135", "visuallyHidden": "_visuallyHidden_sfdi9_139", "blockSmall": "_blockSmall_sfdi9_153", "flexSmall": "_flexSmall_sfdi9_157", "inlineBlockSmall": "_inlineBlockSmall_sfdi9_161", "noneSmall": "_noneSmall_sfdi9_165", "visuallyHiddenSmall": "_visuallyHiddenSmall_sfdi9_169", "blockLarge": "_blockLarge_sfdi9_184", "flexLarge": "_flexLarge_sfdi9_188", "inlineBlockLarge": "_inlineBlockLarge_sfdi9_192", "noneLarge": "_noneLarge_sfdi9_196", "visuallyHiddenLarge": "_visuallyHiddenLarge_sfdi9_200", "column": "_column_sfdi9_214", "row": "_row_sfdi9_218", "columnSmall": "_columnSmall_sfdi9_224", "rowSmall": "_rowSmall_sfdi9_228", "columnLarge": "_columnLarge_sfdi9_235", "rowLarge": "_rowLarge_sfdi9_239", "gap0": "_gap0_sfdi9_245", "gap1": "_gap1_sfdi9_249", "gap2": "_gap2_sfdi9_253", "gap3": "_gap3_sfdi9_257", "gap4": "_gap4_sfdi9_261", "gap5": "_gap5_sfdi9_265", "gap6": "_gap6_sfdi9_269", "gap7": "_gap7_sfdi9_273", "gap8": "_gap8_sfdi9_277", "gap9": "_gap9_sfdi9_281", "gap10": "_gap10_sfdi9_285", "gap11": "_gap11_sfdi9_289", "gap12": "_gap12_sfdi9_293", "justifyContentcenter": "_justifyContentcenter_sfdi9_298", "justifyContentstart": "_justifyContentstart_sfdi9_302", "justifyContentend": "_justifyContentend_sfdi9_306", "justifyContentbetween": "_justifyContentbetween_sfdi9_310", "justifyContentaround": "_justifyContentaround_sfdi9_314", "justifyContentevenly": "_justifyContentevenly_sfdi9_318", "justifyContentcenterSmall": "_justifyContentcenterSmall_sfdi9_324", "justifyContentstartSmall": "_justifyContentstartSmall_sfdi9_328", "justifyContentendSmall": "_justifyContentendSmall_sfdi9_332", "justifyContentbetweenSmall": "_justifyContentbetweenSmall_sfdi9_336", "justifyContentaroundSmall": "_justifyContentaroundSmall_sfdi9_340", "justifyContentevenlySmall": "_justifyContentevenlySmall_sfdi9_344", "justifyContentcenterLarge": "_justifyContentcenterLarge_sfdi9_351", "justifyContentstartLarge": "_justifyContentstartLarge_sfdi9_355", "justifyContentendLarge": "_justifyContentendLarge_sfdi9_359", "justifyContentbetweenLarge": "_justifyContentbetweenLarge_sfdi9_363", "justifyContentaroundLarge": "_justifyContentaroundLarge_sfdi9_367", "justifyContentevenlyLarge": "_justifyContentevenlyLarge_sfdi9_371", "fixed": "_fixed_sfdi9_377", "relative": "_relative_sfdi9_381", "absolute": "_absolute_sfdi9_385" };
|
|
160
|
+
|
|
161
|
+
// css-module:./margin.module.css#css-module
|
|
162
|
+
var margin_module_default = { "marginBottom-12": "_marginBottom-12_1whn1_2", "marginBottom-11": "_marginBottom-11_1whn1_6", "marginBottom-10": "_marginBottom-10_1whn1_10", "marginBottom-9": "_marginBottom-9_1whn1_14", "marginBottom-8": "_marginBottom-8_1whn1_18", "marginBottom-7": "_marginBottom-7_1whn1_22", "marginBottom-6": "_marginBottom-6_1whn1_26", "marginBottom-5": "_marginBottom-5_1whn1_30", "marginBottom-4": "_marginBottom-4_1whn1_34", "marginBottom-3": "_marginBottom-3_1whn1_38", "marginBottom-2": "_marginBottom-2_1whn1_42", "marginBottom-1": "_marginBottom-1_1whn1_2", "marginBottom0": "_marginBottom0_1whn1_50", "marginBottom1": "_marginBottom1_1whn1_54", "marginBottom2": "_marginBottom2_1whn1_58", "marginBottom3": "_marginBottom3_1whn1_62", "marginBottom4": "_marginBottom4_1whn1_66", "marginBottom5": "_marginBottom5_1whn1_70", "marginBottom6": "_marginBottom6_1whn1_74", "marginBottom7": "_marginBottom7_1whn1_78", "marginBottom8": "_marginBottom8_1whn1_82", "marginBottom9": "_marginBottom9_1whn1_86", "marginBottom10": "_marginBottom10_1whn1_90", "marginBottom11": "_marginBottom11_1whn1_94", "marginBottom12": "_marginBottom12_1whn1_98", "marginBottomauto": "_marginBottomauto_1whn1_102", "marginEnd-12": "_marginEnd-12_1whn1_107", "marginEnd-11": "_marginEnd-11_1whn1_111", "marginEnd-10": "_marginEnd-10_1whn1_115", "marginEnd-9": "_marginEnd-9_1whn1_119", "marginEnd-8": "_marginEnd-8_1whn1_123", "marginEnd-7": "_marginEnd-7_1whn1_127", "marginEnd-6": "_marginEnd-6_1whn1_131", "marginEnd-5": "_marginEnd-5_1whn1_135", "marginEnd-4": "_marginEnd-4_1whn1_139", "marginEnd-3": "_marginEnd-3_1whn1_143", "marginEnd-2": "_marginEnd-2_1whn1_147", "marginEnd-1": "_marginEnd-1_1whn1_107", "marginEnd0": "_marginEnd0_1whn1_155", "marginEnd1": "_marginEnd1_1whn1_159", "marginEnd2": "_marginEnd2_1whn1_163", "marginEnd3": "_marginEnd3_1whn1_167", "marginEnd4": "_marginEnd4_1whn1_171", "marginEnd5": "_marginEnd5_1whn1_175", "marginEnd6": "_marginEnd6_1whn1_179", "marginEnd7": "_marginEnd7_1whn1_183", "marginEnd8": "_marginEnd8_1whn1_187", "marginEnd9": "_marginEnd9_1whn1_191", "marginEnd10": "_marginEnd10_1whn1_195", "marginEnd11": "_marginEnd11_1whn1_199", "marginEnd12": "_marginEnd12_1whn1_203", "marginEndauto": "_marginEndauto_1whn1_207", "marginStart-12": "_marginStart-12_1whn1_212", "marginStart-11": "_marginStart-11_1whn1_216", "marginStart-10": "_marginStart-10_1whn1_220", "marginStart-9": "_marginStart-9_1whn1_224", "marginStart-8": "_marginStart-8_1whn1_228", "marginStart-7": "_marginStart-7_1whn1_232", "marginStart-6": "_marginStart-6_1whn1_236", "marginStart-5": "_marginStart-5_1whn1_240", "marginStart-4": "_marginStart-4_1whn1_244", "marginStart-3": "_marginStart-3_1whn1_248", "marginStart-2": "_marginStart-2_1whn1_252", "marginStart-1": "_marginStart-1_1whn1_212", "marginStart0": "_marginStart0_1whn1_260", "marginStart1": "_marginStart1_1whn1_264", "marginStart2": "_marginStart2_1whn1_268", "marginStart3": "_marginStart3_1whn1_272", "marginStart4": "_marginStart4_1whn1_276", "marginStart5": "_marginStart5_1whn1_280", "marginStart6": "_marginStart6_1whn1_284", "marginStart7": "_marginStart7_1whn1_288", "marginStart8": "_marginStart8_1whn1_292", "marginStart9": "_marginStart9_1whn1_296", "marginStart10": "_marginStart10_1whn1_300", "marginStart11": "_marginStart11_1whn1_304", "marginStart12": "_marginStart12_1whn1_308", "marginStartauto": "_marginStartauto_1whn1_312", "marginTop-12": "_marginTop-12_1whn1_317", "marginTop-11": "_marginTop-11_1whn1_321", "marginTop-10": "_marginTop-10_1whn1_325", "marginTop-9": "_marginTop-9_1whn1_329", "marginTop-8": "_marginTop-8_1whn1_333", "marginTop-7": "_marginTop-7_1whn1_337", "marginTop-6": "_marginTop-6_1whn1_341", "marginTop-5": "_marginTop-5_1whn1_345", "marginTop-4": "_marginTop-4_1whn1_349", "marginTop-3": "_marginTop-3_1whn1_353", "marginTop-2": "_marginTop-2_1whn1_357", "marginTop-1": "_marginTop-1_1whn1_317", "marginTop0": "_marginTop0_1whn1_365", "marginTop1": "_marginTop1_1whn1_369", "marginTop2": "_marginTop2_1whn1_373", "marginTop3": "_marginTop3_1whn1_377", "marginTop4": "_marginTop4_1whn1_381", "marginTop5": "_marginTop5_1whn1_385", "marginTop6": "_marginTop6_1whn1_389", "marginTop7": "_marginTop7_1whn1_393", "marginTop8": "_marginTop8_1whn1_397", "marginTop9": "_marginTop9_1whn1_401", "marginTop10": "_marginTop10_1whn1_405", "marginTop11": "_marginTop11_1whn1_409", "marginTop12": "_marginTop12_1whn1_413", "marginTopauto": "_marginTopauto_1whn1_417", "marginBottom-12Small": "_marginBottom-12Small_1whn1_423", "marginBottom-11Small": "_marginBottom-11Small_1whn1_427", "marginBottom-10Small": "_marginBottom-10Small_1whn1_431", "marginBottom-9Small": "_marginBottom-9Small_1whn1_435", "marginBottom-8Small": "_marginBottom-8Small_1whn1_439", "marginBottom-7Small": "_marginBottom-7Small_1whn1_443", "marginBottom-6Small": "_marginBottom-6Small_1whn1_447", "marginBottom-5Small": "_marginBottom-5Small_1whn1_451", "marginBottom-4Small": "_marginBottom-4Small_1whn1_455", "marginBottom-3Small": "_marginBottom-3Small_1whn1_459", "marginBottom-2Small": "_marginBottom-2Small_1whn1_463", "marginBottom-1Small": "_marginBottom-1Small_1whn1_467", "marginBottom0Small": "_marginBottom0Small_1whn1_471", "marginBottom1Small": "_marginBottom1Small_1whn1_475", "marginBottom2Small": "_marginBottom2Small_1whn1_479", "marginBottom3Small": "_marginBottom3Small_1whn1_483", "marginBottom4Small": "_marginBottom4Small_1whn1_487", "marginBottom5Small": "_marginBottom5Small_1whn1_491", "marginBottom6Small": "_marginBottom6Small_1whn1_495", "marginBottom7Small": "_marginBottom7Small_1whn1_499", "marginBottom8Small": "_marginBottom8Small_1whn1_503", "marginBottom9Small": "_marginBottom9Small_1whn1_507", "marginBottom10Small": "_marginBottom10Small_1whn1_511", "marginBottom11Small": "_marginBottom11Small_1whn1_515", "marginBottom12Small": "_marginBottom12Small_1whn1_519", "marginBottomautoSmall": "_marginBottomautoSmall_1whn1_523", "marginEnd-12Small": "_marginEnd-12Small_1whn1_527", "marginEnd-11Small": "_marginEnd-11Small_1whn1_531", "marginEnd-10Small": "_marginEnd-10Small_1whn1_535", "marginEnd-9Small": "_marginEnd-9Small_1whn1_539", "marginEnd-8Small": "_marginEnd-8Small_1whn1_543", "marginEnd-7Small": "_marginEnd-7Small_1whn1_547", "marginEnd-6Small": "_marginEnd-6Small_1whn1_551", "marginEnd-5Small": "_marginEnd-5Small_1whn1_555", "marginEnd-4Small": "_marginEnd-4Small_1whn1_559", "marginEnd-3Small": "_marginEnd-3Small_1whn1_563", "marginEnd-2Small": "_marginEnd-2Small_1whn1_567", "marginEnd-1Small": "_marginEnd-1Small_1whn1_571", "marginEnd0Small": "_marginEnd0Small_1whn1_575", "marginEnd1Small": "_marginEnd1Small_1whn1_579", "marginEnd2Small": "_marginEnd2Small_1whn1_583", "marginEnd3Small": "_marginEnd3Small_1whn1_587", "marginEnd4Small": "_marginEnd4Small_1whn1_591", "marginEnd5Small": "_marginEnd5Small_1whn1_595", "marginEnd6Small": "_marginEnd6Small_1whn1_599", "marginEnd7Small": "_marginEnd7Small_1whn1_603", "marginEnd8Small": "_marginEnd8Small_1whn1_607", "marginEnd9Small": "_marginEnd9Small_1whn1_611", "marginEnd10Small": "_marginEnd10Small_1whn1_615", "marginEnd11Small": "_marginEnd11Small_1whn1_619", "marginEnd12Small": "_marginEnd12Small_1whn1_623", "marginEndautoSmall": "_marginEndautoSmall_1whn1_627", "marginStart-12Small": "_marginStart-12Small_1whn1_631", "marginStart-11Small": "_marginStart-11Small_1whn1_635", "marginStart-10Small": "_marginStart-10Small_1whn1_639", "marginStart-9Small": "_marginStart-9Small_1whn1_643", "marginStart-8Small": "_marginStart-8Small_1whn1_647", "marginStart-7Small": "_marginStart-7Small_1whn1_651", "marginStart-6Small": "_marginStart-6Small_1whn1_655", "marginStart-5Small": "_marginStart-5Small_1whn1_659", "marginStart-4Small": "_marginStart-4Small_1whn1_663", "marginStart-3Small": "_marginStart-3Small_1whn1_667", "marginStart-2Small": "_marginStart-2Small_1whn1_671", "marginStart-1Small": "_marginStart-1Small_1whn1_675", "marginStart0Small": "_marginStart0Small_1whn1_679", "marginStart1Small": "_marginStart1Small_1whn1_683", "marginStart2Small": "_marginStart2Small_1whn1_687", "marginStart3Small": "_marginStart3Small_1whn1_691", "marginStart4Small": "_marginStart4Small_1whn1_695", "marginStart5Small": "_marginStart5Small_1whn1_699", "marginStart6Small": "_marginStart6Small_1whn1_703", "marginStart7Small": "_marginStart7Small_1whn1_707", "marginStart8Small": "_marginStart8Small_1whn1_711", "marginStart9Small": "_marginStart9Small_1whn1_715", "marginStart10Small": "_marginStart10Small_1whn1_719", "marginStart11Small": "_marginStart11Small_1whn1_723", "marginStart12Small": "_marginStart12Small_1whn1_727", "marginStartautoSmall": "_marginStartautoSmall_1whn1_731", "marginTop-12Small": "_marginTop-12Small_1whn1_735", "marginTop-11Small": "_marginTop-11Small_1whn1_739", "marginTop-10Small": "_marginTop-10Small_1whn1_743", "marginTop-9Small": "_marginTop-9Small_1whn1_747", "marginTop-8Small": "_marginTop-8Small_1whn1_751", "marginTop-7Small": "_marginTop-7Small_1whn1_755", "marginTop-6Small": "_marginTop-6Small_1whn1_759", "marginTop-5Small": "_marginTop-5Small_1whn1_763", "marginTop-4Small": "_marginTop-4Small_1whn1_767", "marginTop-3Small": "_marginTop-3Small_1whn1_771", "marginTop-2Small": "_marginTop-2Small_1whn1_775", "marginTop-1Small": "_marginTop-1Small_1whn1_779", "marginTop0Small": "_marginTop0Small_1whn1_783", "marginTop1Small": "_marginTop1Small_1whn1_787", "marginTop2Small": "_marginTop2Small_1whn1_791", "marginTop3Small": "_marginTop3Small_1whn1_795", "marginTop4Small": "_marginTop4Small_1whn1_799", "marginTop5Small": "_marginTop5Small_1whn1_803", "marginTop6Small": "_marginTop6Small_1whn1_807", "marginTop7Small": "_marginTop7Small_1whn1_811", "marginTop8Small": "_marginTop8Small_1whn1_815", "marginTop9Small": "_marginTop9Small_1whn1_819", "marginTop10Small": "_marginTop10Small_1whn1_823", "marginTop11Small": "_marginTop11Small_1whn1_827", "marginTop12Small": "_marginTop12Small_1whn1_831", "marginTopautoSmall": "_marginTopautoSmall_1whn1_835", "marginBottom-12Large": "_marginBottom-12Large_1whn1_842", "marginBottom-11Large": "_marginBottom-11Large_1whn1_846", "marginBottom-10Large": "_marginBottom-10Large_1whn1_850", "marginBottom-9Large": "_marginBottom-9Large_1whn1_854", "marginBottom-8Large": "_marginBottom-8Large_1whn1_858", "marginBottom-7Large": "_marginBottom-7Large_1whn1_862", "marginBottom-6Large": "_marginBottom-6Large_1whn1_866", "marginBottom-5Large": "_marginBottom-5Large_1whn1_870", "marginBottom-4Large": "_marginBottom-4Large_1whn1_874", "marginBottom-3Large": "_marginBottom-3Large_1whn1_878", "marginBottom-2Large": "_marginBottom-2Large_1whn1_882", "marginBottom-1Large": "_marginBottom-1Large_1whn1_886", "marginBottom0Large": "_marginBottom0Large_1whn1_890", "marginBottom1Large": "_marginBottom1Large_1whn1_894", "marginBottom2Large": "_marginBottom2Large_1whn1_898", "marginBottom3Large": "_marginBottom3Large_1whn1_902", "marginBottom4Large": "_marginBottom4Large_1whn1_906", "marginBottom5Large": "_marginBottom5Large_1whn1_910", "marginBottom6Large": "_marginBottom6Large_1whn1_914", "marginBottom7Large": "_marginBottom7Large_1whn1_918", "marginBottom8Large": "_marginBottom8Large_1whn1_922", "marginBottom9Large": "_marginBottom9Large_1whn1_926", "marginBottom10Large": "_marginBottom10Large_1whn1_930", "marginBottom11Large": "_marginBottom11Large_1whn1_934", "marginBottom12Large": "_marginBottom12Large_1whn1_938", "marginBottomautoLarge": "_marginBottomautoLarge_1whn1_942", "marginEnd-12Large": "_marginEnd-12Large_1whn1_946", "marginEnd-11Large": "_marginEnd-11Large_1whn1_950", "marginEnd-10Large": "_marginEnd-10Large_1whn1_954", "marginEnd-9Large": "_marginEnd-9Large_1whn1_958", "marginEnd-8Large": "_marginEnd-8Large_1whn1_962", "marginEnd-7Large": "_marginEnd-7Large_1whn1_966", "marginEnd-6Large": "_marginEnd-6Large_1whn1_970", "marginEnd-5Large": "_marginEnd-5Large_1whn1_974", "marginEnd-4Large": "_marginEnd-4Large_1whn1_978", "marginEnd-3Large": "_marginEnd-3Large_1whn1_982", "marginEnd-2Large": "_marginEnd-2Large_1whn1_986", "marginEnd-1Large": "_marginEnd-1Large_1whn1_990", "marginEnd0Large": "_marginEnd0Large_1whn1_994", "marginEnd1Large": "_marginEnd1Large_1whn1_998", "marginEnd2Large": "_marginEnd2Large_1whn1_1002", "marginEnd3Large": "_marginEnd3Large_1whn1_1006", "marginEnd4Large": "_marginEnd4Large_1whn1_1010", "marginEnd5Large": "_marginEnd5Large_1whn1_1014", "marginEnd6Large": "_marginEnd6Large_1whn1_1018", "marginEnd7Large": "_marginEnd7Large_1whn1_1022", "marginEnd8Large": "_marginEnd8Large_1whn1_1026", "marginEnd9Large": "_marginEnd9Large_1whn1_1030", "marginEnd10Large": "_marginEnd10Large_1whn1_1034", "marginEnd11Large": "_marginEnd11Large_1whn1_1038", "marginEnd12Large": "_marginEnd12Large_1whn1_1042", "marginEndautoLarge": "_marginEndautoLarge_1whn1_1046", "marginStart-12Large": "_marginStart-12Large_1whn1_1050", "marginStart-11Large": "_marginStart-11Large_1whn1_1054", "marginStart-10Large": "_marginStart-10Large_1whn1_1058", "marginStart-9Large": "_marginStart-9Large_1whn1_1062", "marginStart-8Large": "_marginStart-8Large_1whn1_1066", "marginStart-7Large": "_marginStart-7Large_1whn1_1070", "marginStart-6Large": "_marginStart-6Large_1whn1_1074", "marginStart-5Large": "_marginStart-5Large_1whn1_1078", "marginStart-4Large": "_marginStart-4Large_1whn1_1082", "marginStart-3Large": "_marginStart-3Large_1whn1_1086", "marginStart-2Large": "_marginStart-2Large_1whn1_1090", "marginStart-1Large": "_marginStart-1Large_1whn1_1094", "marginStart0Large": "_marginStart0Large_1whn1_1098", "marginStart1Large": "_marginStart1Large_1whn1_1102", "marginStart2Large": "_marginStart2Large_1whn1_1106", "marginStart3Large": "_marginStart3Large_1whn1_1110", "marginStart4Large": "_marginStart4Large_1whn1_1114", "marginStart5Large": "_marginStart5Large_1whn1_1118", "marginStart6Large": "_marginStart6Large_1whn1_1122", "marginStart7Large": "_marginStart7Large_1whn1_1126", "marginStart8Large": "_marginStart8Large_1whn1_1130", "marginStart9Large": "_marginStart9Large_1whn1_1134", "marginStart10Large": "_marginStart10Large_1whn1_1138", "marginStart11Large": "_marginStart11Large_1whn1_1142", "marginStart12Large": "_marginStart12Large_1whn1_1146", "marginStartautoLarge": "_marginStartautoLarge_1whn1_1150", "marginTop-12Large": "_marginTop-12Large_1whn1_1154", "marginTop-11Large": "_marginTop-11Large_1whn1_1158", "marginTop-10Large": "_marginTop-10Large_1whn1_1162", "marginTop-9Large": "_marginTop-9Large_1whn1_1166", "marginTop-8Large": "_marginTop-8Large_1whn1_1170", "marginTop-7Large": "_marginTop-7Large_1whn1_1174", "marginTop-6Large": "_marginTop-6Large_1whn1_1178", "marginTop-5Large": "_marginTop-5Large_1whn1_1182", "marginTop-4Large": "_marginTop-4Large_1whn1_1186", "marginTop-3Large": "_marginTop-3Large_1whn1_1190", "marginTop-2Large": "_marginTop-2Large_1whn1_1194", "marginTop-1Large": "_marginTop-1Large_1whn1_1198", "marginTop0Large": "_marginTop0Large_1whn1_1202", "marginTop1Large": "_marginTop1Large_1whn1_1206", "marginTop2Large": "_marginTop2Large_1whn1_1210", "marginTop3Large": "_marginTop3Large_1whn1_1214", "marginTop4Large": "_marginTop4Large_1whn1_1218", "marginTop5Large": "_marginTop5Large_1whn1_1222", "marginTop6Large": "_marginTop6Large_1whn1_1226", "marginTop7Large": "_marginTop7Large_1whn1_1230", "marginTop8Large": "_marginTop8Large_1whn1_1234", "marginTop9Large": "_marginTop9Large_1whn1_1238", "marginTop10Large": "_marginTop10Large_1whn1_1242", "marginTop11Large": "_marginTop11Large_1whn1_1246", "marginTop12Large": "_marginTop12Large_1whn1_1250", "marginTopautoLarge": "_marginTopautoLarge_1whn1_1254" };
|
|
163
|
+
|
|
164
|
+
// css-module:./padding.module.css#css-module
|
|
165
|
+
var padding_module_default = { "paddingX0": "_paddingX0_1aqye_2", "paddingX1": "_paddingX1_1aqye_7", "paddingX2": "_paddingX2_1aqye_12", "paddingX3": "_paddingX3_1aqye_17", "paddingX4": "_paddingX4_1aqye_22", "paddingX5": "_paddingX5_1aqye_27", "paddingX6": "_paddingX6_1aqye_32", "paddingX7": "_paddingX7_1aqye_37", "paddingX8": "_paddingX8_1aqye_42", "paddingX9": "_paddingX9_1aqye_47", "paddingX10": "_paddingX10_1aqye_52", "paddingX11": "_paddingX11_1aqye_57", "paddingX12": "_paddingX12_1aqye_62", "paddingY0": "_paddingY0_1aqye_67", "paddingY1": "_paddingY1_1aqye_72", "paddingY2": "_paddingY2_1aqye_77", "paddingY3": "_paddingY3_1aqye_82", "paddingY4": "_paddingY4_1aqye_87", "paddingY5": "_paddingY5_1aqye_92", "paddingY6": "_paddingY6_1aqye_97", "paddingY7": "_paddingY7_1aqye_102", "paddingY8": "_paddingY8_1aqye_107", "paddingY9": "_paddingY9_1aqye_112", "paddingY10": "_paddingY10_1aqye_117", "paddingY11": "_paddingY11_1aqye_122", "paddingY12": "_paddingY12_1aqye_127", "paddingX0Small": "_paddingX0Small_1aqye_134", "paddingX1Small": "_paddingX1Small_1aqye_139", "paddingX2Small": "_paddingX2Small_1aqye_144", "paddingX3Small": "_paddingX3Small_1aqye_149", "paddingX4Small": "_paddingX4Small_1aqye_154", "paddingX5Small": "_paddingX5Small_1aqye_159", "paddingX6Small": "_paddingX6Small_1aqye_164", "paddingX7Small": "_paddingX7Small_1aqye_169", "paddingX8Small": "_paddingX8Small_1aqye_174", "paddingX9Small": "_paddingX9Small_1aqye_179", "paddingX10Small": "_paddingX10Small_1aqye_184", "paddingX11Small": "_paddingX11Small_1aqye_189", "paddingX12Small": "_paddingX12Small_1aqye_194", "paddingY0Small": "_paddingY0Small_1aqye_199", "paddingY1Small": "_paddingY1Small_1aqye_204", "paddingY2Small": "_paddingY2Small_1aqye_209", "paddingY3Small": "_paddingY3Small_1aqye_214", "paddingY4Small": "_paddingY4Small_1aqye_219", "paddingY5Small": "_paddingY5Small_1aqye_224", "paddingY6Small": "_paddingY6Small_1aqye_229", "paddingY7Small": "_paddingY7Small_1aqye_234", "paddingY8Small": "_paddingY8Small_1aqye_239", "paddingY9Small": "_paddingY9Small_1aqye_244", "paddingY10Small": "_paddingY10Small_1aqye_249", "paddingY11Small": "_paddingY11Small_1aqye_254", "paddingY12Small": "_paddingY12Small_1aqye_259", "paddingX0Large": "_paddingX0Large_1aqye_267", "paddingX1Large": "_paddingX1Large_1aqye_272", "paddingX2Large": "_paddingX2Large_1aqye_277", "paddingX3Large": "_paddingX3Large_1aqye_282", "paddingX4Large": "_paddingX4Large_1aqye_287", "paddingX5Large": "_paddingX5Large_1aqye_292", "paddingX6Large": "_paddingX6Large_1aqye_297", "paddingX7Large": "_paddingX7Large_1aqye_302", "paddingX8Large": "_paddingX8Large_1aqye_307", "paddingX9Large": "_paddingX9Large_1aqye_312", "paddingX10Large": "_paddingX10Large_1aqye_317", "paddingX11Large": "_paddingX11Large_1aqye_322", "paddingX12Large": "_paddingX12Large_1aqye_327", "paddingY0Large": "_paddingY0Large_1aqye_332", "paddingY1Large": "_paddingY1Large_1aqye_337", "paddingY2Large": "_paddingY2Large_1aqye_342", "paddingY3Large": "_paddingY3Large_1aqye_347", "paddingY4Large": "_paddingY4Large_1aqye_352", "paddingY5Large": "_paddingY5Large_1aqye_357", "paddingY6Large": "_paddingY6Large_1aqye_362", "paddingY7Large": "_paddingY7Large_1aqye_367", "paddingY8Large": "_paddingY8Large_1aqye_372", "paddingY9Large": "_paddingY9Large_1aqye_377", "paddingY10Large": "_paddingY10Large_1aqye_382", "paddingY11Large": "_paddingY11Large_1aqye_387", "paddingY12Large": "_paddingY12Large_1aqye_392" };
|
|
166
|
+
|
|
167
|
+
// css-module:../colors/colors.module.css#css-module
|
|
129
168
|
var colors_module_default = { "inheritColor": "_inheritColor_j1pwm_2", "destructive700Color": "_destructive700Color_j1pwm_6", "gray700Color": "_gray700Color_j1pwm_10", "gray900Color": "_gray900Color_j1pwm_14", "primary700Color": "_primary700Color_j1pwm_18", "whiteColor": "_whiteColor_j1pwm_22", "blackBackgroundColor": "_blackBackgroundColor_j1pwm_27", "destructive100BackgroundColor": "_destructive100BackgroundColor_j1pwm_31", "destructive200BackgroundColor": "_destructive200BackgroundColor_j1pwm_35", "destructive300BackgroundColor": "_destructive300BackgroundColor_j1pwm_39", "destructive700BackgroundColor": "_destructive700BackgroundColor_j1pwm_43", "destructive800BackgroundColor": "_destructive800BackgroundColor_j1pwm_47", "destructive900BackgroundColor": "_destructive900BackgroundColor_j1pwm_51", "gray10BackgroundColor": "_gray10BackgroundColor_j1pwm_55", "gray30BackgroundColor": "_gray30BackgroundColor_j1pwm_59", "gray80BackgroundColor": "_gray80BackgroundColor_j1pwm_63", "gray100BackgroundColor": "_gray100BackgroundColor_j1pwm_67", "gray200BackgroundColor": "_gray200BackgroundColor_j1pwm_71", "gray300BackgroundColor": "_gray300BackgroundColor_j1pwm_75", "gray700BackgroundColor": "_gray700BackgroundColor_j1pwm_79", "gray800BackgroundColor": "_gray800BackgroundColor_j1pwm_83", "gray900BackgroundColor": "_gray900BackgroundColor_j1pwm_87", "orange100BackgroundColor": "_orange100BackgroundColor_j1pwm_91", "orange200BackgroundColor": "_orange200BackgroundColor_j1pwm_95", "orange300BackgroundColor": "_orange300BackgroundColor_j1pwm_99", "orange700BackgroundColor": "_orange700BackgroundColor_j1pwm_103", "orange800BackgroundColor": "_orange800BackgroundColor_j1pwm_107", "orange900BackgroundColor": "_orange900BackgroundColor_j1pwm_111", "primary100BackgroundColor": "_primary100BackgroundColor_j1pwm_115", "primary200BackgroundColor": "_primary200BackgroundColor_j1pwm_119", "primary300BackgroundColor": "_primary300BackgroundColor_j1pwm_123", "primary700BackgroundColor": "_primary700BackgroundColor_j1pwm_127", "primary800BackgroundColor": "_primary800BackgroundColor_j1pwm_131", "primary900BackgroundColor": "_primary900BackgroundColor_j1pwm_135", "success100BackgroundColor": "_success100BackgroundColor_j1pwm_139", "success200BackgroundColor": "_success200BackgroundColor_j1pwm_143", "success300BackgroundColor": "_success300BackgroundColor_j1pwm_147", "success700BackgroundColor": "_success700BackgroundColor_j1pwm_151", "success800BackgroundColor": "_success800BackgroundColor_j1pwm_155", "success900BackgroundColor": "_success900BackgroundColor_j1pwm_159", "purple100BackgroundColor": "_purple100BackgroundColor_j1pwm_163", "purple200BackgroundColor": "_purple200BackgroundColor_j1pwm_167", "purple300BackgroundColor": "_purple300BackgroundColor_j1pwm_171", "purple700BackgroundColor": "_purple700BackgroundColor_j1pwm_175", "purple800BackgroundColor": "_purple800BackgroundColor_j1pwm_179", "purple900BackgroundColor": "_purple900BackgroundColor_j1pwm_183", "whiteBackgroundColor": "_whiteBackgroundColor_j1pwm_187", "yellow100BackgroundColor": "_yellow100BackgroundColor_j1pwm_191", "yellow200BackgroundColor": "_yellow200BackgroundColor_j1pwm_195", "yellow300BackgroundColor": "_yellow300BackgroundColor_j1pwm_199", "yellow700BackgroundColor": "_yellow700BackgroundColor_j1pwm_203", "yellow800BackgroundColor": "_yellow800BackgroundColor_j1pwm_207", "yellow900BackgroundColor": "_yellow900BackgroundColor_j1pwm_211" };
|
|
130
169
|
|
|
170
|
+
// src/Box/Box.tsx
|
|
171
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
172
|
+
function Box(props) {
|
|
173
|
+
var _c;
|
|
174
|
+
const _a = props, { as: BoxElement = "div", children } = _a, boxProps = __objRest(_a, ["as", "children"]);
|
|
175
|
+
const _b = boxProps, {
|
|
176
|
+
alignItems: alignItems,
|
|
177
|
+
smAlignItems,
|
|
178
|
+
lgAlignItems,
|
|
179
|
+
alignSelf,
|
|
180
|
+
color,
|
|
181
|
+
direction,
|
|
182
|
+
smDirection,
|
|
183
|
+
lgDirection,
|
|
184
|
+
display,
|
|
185
|
+
smDisplay,
|
|
186
|
+
lgDisplay,
|
|
187
|
+
flexWrap,
|
|
188
|
+
gap: gap2,
|
|
189
|
+
justifyContent,
|
|
190
|
+
smJustifyContent,
|
|
191
|
+
lgJustifyContent,
|
|
192
|
+
margin: margin,
|
|
193
|
+
marginBottom,
|
|
194
|
+
marginEnd,
|
|
195
|
+
marginStart,
|
|
196
|
+
marginTop,
|
|
197
|
+
smMargin,
|
|
198
|
+
smMarginBottom,
|
|
199
|
+
smMarginEnd,
|
|
200
|
+
smMarginStart,
|
|
201
|
+
smMarginTop,
|
|
202
|
+
lgMargin,
|
|
203
|
+
lgMarginBottom,
|
|
204
|
+
lgMarginEnd,
|
|
205
|
+
lgMarginStart,
|
|
206
|
+
lgMarginTop,
|
|
207
|
+
padding: padding,
|
|
208
|
+
paddingX,
|
|
209
|
+
paddingY,
|
|
210
|
+
smPadding,
|
|
211
|
+
smPaddingX,
|
|
212
|
+
smPaddingY,
|
|
213
|
+
lgPadding,
|
|
214
|
+
lgPaddingX,
|
|
215
|
+
lgPaddingY,
|
|
216
|
+
position,
|
|
217
|
+
rounding,
|
|
218
|
+
dangerouslySetInlineStyle: dangerouslySetInlineStyle,
|
|
219
|
+
height,
|
|
220
|
+
maxHeight,
|
|
221
|
+
maxWidth,
|
|
222
|
+
minHeight,
|
|
223
|
+
minWidth,
|
|
224
|
+
width
|
|
225
|
+
} = _b, maybePassThroughProps = __objRest(_b, [
|
|
226
|
+
// Classname
|
|
227
|
+
"alignItems",
|
|
228
|
+
"smAlignItems",
|
|
229
|
+
"lgAlignItems",
|
|
230
|
+
"alignSelf",
|
|
231
|
+
"color",
|
|
232
|
+
"direction",
|
|
233
|
+
"smDirection",
|
|
234
|
+
"lgDirection",
|
|
235
|
+
"display",
|
|
236
|
+
"smDisplay",
|
|
237
|
+
"lgDisplay",
|
|
238
|
+
"flexWrap",
|
|
239
|
+
"gap",
|
|
240
|
+
"justifyContent",
|
|
241
|
+
"smJustifyContent",
|
|
242
|
+
"lgJustifyContent",
|
|
243
|
+
// Margin
|
|
244
|
+
"margin",
|
|
245
|
+
"marginBottom",
|
|
246
|
+
"marginEnd",
|
|
247
|
+
"marginStart",
|
|
248
|
+
"marginTop",
|
|
249
|
+
"smMargin",
|
|
250
|
+
"smMarginBottom",
|
|
251
|
+
"smMarginEnd",
|
|
252
|
+
"smMarginStart",
|
|
253
|
+
"smMarginTop",
|
|
254
|
+
"lgMargin",
|
|
255
|
+
"lgMarginBottom",
|
|
256
|
+
"lgMarginEnd",
|
|
257
|
+
"lgMarginStart",
|
|
258
|
+
"lgMarginTop",
|
|
259
|
+
// Padding
|
|
260
|
+
"padding",
|
|
261
|
+
"paddingX",
|
|
262
|
+
"paddingY",
|
|
263
|
+
"smPadding",
|
|
264
|
+
"smPaddingX",
|
|
265
|
+
"smPaddingY",
|
|
266
|
+
"lgPadding",
|
|
267
|
+
"lgPaddingX",
|
|
268
|
+
"lgPaddingY",
|
|
269
|
+
"position",
|
|
270
|
+
"rounding",
|
|
271
|
+
// Style
|
|
272
|
+
"dangerouslySetInlineStyle",
|
|
273
|
+
"height",
|
|
274
|
+
"maxHeight",
|
|
275
|
+
"maxWidth",
|
|
276
|
+
"minHeight",
|
|
277
|
+
"minWidth",
|
|
278
|
+
"width"
|
|
279
|
+
]);
|
|
280
|
+
const parsedProps = {
|
|
281
|
+
className: (0, import_classnames2.default)(
|
|
282
|
+
Box_module_default.box,
|
|
283
|
+
alignItems && Box_module_default[`alignItems${alignItems}`],
|
|
284
|
+
smAlignItems && Box_module_default[`alignItems${smAlignItems}Small`],
|
|
285
|
+
lgAlignItems && Box_module_default[`alignItems${lgAlignItems}Large`],
|
|
286
|
+
alignSelf && Box_module_default[`alignSelf${alignSelf}`],
|
|
287
|
+
color && colors_module_default[`${color}BackgroundColor`],
|
|
288
|
+
direction && Box_module_default[direction],
|
|
289
|
+
smDirection && Box_module_default[`${smDirection}Small`],
|
|
290
|
+
lgDirection && Box_module_default[`${lgDirection}Large`],
|
|
291
|
+
display && Box_module_default[display],
|
|
292
|
+
smDisplay && Box_module_default[`${smDisplay}Small`],
|
|
293
|
+
lgDisplay && Box_module_default[`${lgDisplay}Large`],
|
|
294
|
+
flexWrap && Box_module_default.flexWrap,
|
|
295
|
+
gap2 != null && Box_module_default[`gap${gap2}`],
|
|
296
|
+
margin != null && !marginBottom && margin_module_default[`marginBottom${margin}`],
|
|
297
|
+
margin != null && !marginEnd && margin_module_default[`marginEnd${margin}`],
|
|
298
|
+
margin != null && !marginStart && margin_module_default[`marginStart${margin}`],
|
|
299
|
+
margin != null && !marginTop && margin_module_default[`marginTop${margin}`],
|
|
300
|
+
marginBottom != null && margin_module_default[`marginBottom${marginBottom}`],
|
|
301
|
+
marginEnd != null && margin_module_default[`marginEnd${marginEnd}`],
|
|
302
|
+
marginStart != null && margin_module_default[`marginStart${marginStart}`],
|
|
303
|
+
marginTop != null && margin_module_default[`marginTop${marginTop}`],
|
|
304
|
+
smMargin != null && !smMarginBottom && margin_module_default[`marginBottom${smMargin}Small`],
|
|
305
|
+
smMargin != null && !smMarginEnd && margin_module_default[`marginEnd${smMargin}Small`],
|
|
306
|
+
smMargin != null && !smMarginStart && margin_module_default[`marginStart${smMargin}Small`],
|
|
307
|
+
smMargin != null && !smMarginTop && margin_module_default[`marginTop${smMargin}Small`],
|
|
308
|
+
smMarginBottom != null && margin_module_default[`marginBottom${smMarginBottom}Small`],
|
|
309
|
+
smMarginEnd != null && margin_module_default[`marginEnd${smMarginEnd}Small`],
|
|
310
|
+
smMarginStart != null && margin_module_default[`marginStart${smMarginStart}Small`],
|
|
311
|
+
smMarginTop != null && margin_module_default[`marginTop${smMarginTop}Small`],
|
|
312
|
+
lgMargin != null && !lgMarginBottom && margin_module_default[`marginBottom${lgMargin}Large`],
|
|
313
|
+
lgMargin != null && !lgMarginEnd && margin_module_default[`marginEnd${lgMargin}Large`],
|
|
314
|
+
lgMargin != null && !lgMarginStart && margin_module_default[`marginStart${lgMargin}Large`],
|
|
315
|
+
lgMargin != null && !lgMarginTop && margin_module_default[`marginTop${lgMargin}Large`],
|
|
316
|
+
lgMarginBottom != null && margin_module_default[`marginBottom${lgMarginBottom}Large`],
|
|
317
|
+
lgMarginEnd != null && margin_module_default[`marginEnd${lgMarginEnd}Large`],
|
|
318
|
+
lgMarginStart != null && margin_module_default[`marginStart${lgMarginStart}Large`],
|
|
319
|
+
lgMarginTop != null && margin_module_default[`marginTop${lgMarginTop}Large`],
|
|
320
|
+
padding != null && !paddingX && padding_module_default[`paddingX${padding}`],
|
|
321
|
+
padding != null && !paddingY && padding_module_default[`paddingY${padding}`],
|
|
322
|
+
paddingX != null && padding_module_default[`paddingX${paddingX}`],
|
|
323
|
+
paddingY != null && padding_module_default[`paddingY${paddingY}`],
|
|
324
|
+
smPadding != null && !smPaddingX && padding_module_default[`paddingX${smPadding}Small`],
|
|
325
|
+
smPadding != null && !smPaddingY && padding_module_default[`paddingY${smPadding}Small`],
|
|
326
|
+
smPaddingX != null && padding_module_default[`paddingX${smPaddingX}Small`],
|
|
327
|
+
smPaddingY != null && padding_module_default[`paddingY${smPaddingY}Small`],
|
|
328
|
+
lgPadding != null && !lgPaddingX && padding_module_default[`paddingX${lgPadding}Large`],
|
|
329
|
+
lgPadding != null && !lgPaddingX && padding_module_default[`paddingY${lgPadding}Large`],
|
|
330
|
+
lgPaddingX != null && padding_module_default[`paddingX${lgPaddingX}Large`],
|
|
331
|
+
lgPaddingY != null && padding_module_default[`paddingY${lgPaddingY}Large`],
|
|
332
|
+
justifyContent && Box_module_default[`justifyContent${justifyContent}`],
|
|
333
|
+
smJustifyContent && Box_module_default[`justifyContent${smJustifyContent}Small`],
|
|
334
|
+
lgJustifyContent && Box_module_default[`justifyContent${lgJustifyContent}Large`],
|
|
335
|
+
position && position !== "static" && Box_module_default[position],
|
|
336
|
+
rounding && rounding !== "none" && Box_module_default[`rounding${rounding}`]
|
|
337
|
+
),
|
|
338
|
+
style: __spreadValues({
|
|
339
|
+
height,
|
|
340
|
+
maxHeight,
|
|
341
|
+
maxWidth,
|
|
342
|
+
minHeight,
|
|
343
|
+
minWidth,
|
|
344
|
+
width
|
|
345
|
+
}, (_c = dangerouslySetInlineStyle == null ? void 0 : dangerouslySetInlineStyle.__style) != null ? _c : {})
|
|
346
|
+
};
|
|
347
|
+
const passthroughProps = Object.entries(maybePassThroughProps).reduce((acc, [key]) => {
|
|
348
|
+
if (key === "id" || key.startsWith("aria-") || key.startsWith("data-testid")) {
|
|
349
|
+
acc[key] = maybePassThroughProps[key];
|
|
350
|
+
}
|
|
351
|
+
return acc;
|
|
352
|
+
}, {});
|
|
353
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(BoxElement, __spreadProps(__spreadValues(__spreadValues({}, parsedProps), passthroughProps), { children }));
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
// src/Button/Button.tsx
|
|
357
|
+
var import_classnames3 = __toESM(require_classnames());
|
|
358
|
+
|
|
359
|
+
// css-module:./colors.module.css#css-module
|
|
360
|
+
var colors_module_default2 = { "inheritColor": "_inheritColor_j1pwm_2", "destructive700Color": "_destructive700Color_j1pwm_6", "gray700Color": "_gray700Color_j1pwm_10", "gray900Color": "_gray900Color_j1pwm_14", "primary700Color": "_primary700Color_j1pwm_18", "whiteColor": "_whiteColor_j1pwm_22", "blackBackgroundColor": "_blackBackgroundColor_j1pwm_27", "destructive100BackgroundColor": "_destructive100BackgroundColor_j1pwm_31", "destructive200BackgroundColor": "_destructive200BackgroundColor_j1pwm_35", "destructive300BackgroundColor": "_destructive300BackgroundColor_j1pwm_39", "destructive700BackgroundColor": "_destructive700BackgroundColor_j1pwm_43", "destructive800BackgroundColor": "_destructive800BackgroundColor_j1pwm_47", "destructive900BackgroundColor": "_destructive900BackgroundColor_j1pwm_51", "gray10BackgroundColor": "_gray10BackgroundColor_j1pwm_55", "gray30BackgroundColor": "_gray30BackgroundColor_j1pwm_59", "gray80BackgroundColor": "_gray80BackgroundColor_j1pwm_63", "gray100BackgroundColor": "_gray100BackgroundColor_j1pwm_67", "gray200BackgroundColor": "_gray200BackgroundColor_j1pwm_71", "gray300BackgroundColor": "_gray300BackgroundColor_j1pwm_75", "gray700BackgroundColor": "_gray700BackgroundColor_j1pwm_79", "gray800BackgroundColor": "_gray800BackgroundColor_j1pwm_83", "gray900BackgroundColor": "_gray900BackgroundColor_j1pwm_87", "orange100BackgroundColor": "_orange100BackgroundColor_j1pwm_91", "orange200BackgroundColor": "_orange200BackgroundColor_j1pwm_95", "orange300BackgroundColor": "_orange300BackgroundColor_j1pwm_99", "orange700BackgroundColor": "_orange700BackgroundColor_j1pwm_103", "orange800BackgroundColor": "_orange800BackgroundColor_j1pwm_107", "orange900BackgroundColor": "_orange900BackgroundColor_j1pwm_111", "primary100BackgroundColor": "_primary100BackgroundColor_j1pwm_115", "primary200BackgroundColor": "_primary200BackgroundColor_j1pwm_119", "primary300BackgroundColor": "_primary300BackgroundColor_j1pwm_123", "primary700BackgroundColor": "_primary700BackgroundColor_j1pwm_127", "primary800BackgroundColor": "_primary800BackgroundColor_j1pwm_131", "primary900BackgroundColor": "_primary900BackgroundColor_j1pwm_135", "success100BackgroundColor": "_success100BackgroundColor_j1pwm_139", "success200BackgroundColor": "_success200BackgroundColor_j1pwm_143", "success300BackgroundColor": "_success300BackgroundColor_j1pwm_147", "success700BackgroundColor": "_success700BackgroundColor_j1pwm_151", "success800BackgroundColor": "_success800BackgroundColor_j1pwm_155", "success900BackgroundColor": "_success900BackgroundColor_j1pwm_159", "purple100BackgroundColor": "_purple100BackgroundColor_j1pwm_163", "purple200BackgroundColor": "_purple200BackgroundColor_j1pwm_167", "purple300BackgroundColor": "_purple300BackgroundColor_j1pwm_171", "purple700BackgroundColor": "_purple700BackgroundColor_j1pwm_175", "purple800BackgroundColor": "_purple800BackgroundColor_j1pwm_179", "purple900BackgroundColor": "_purple900BackgroundColor_j1pwm_183", "whiteBackgroundColor": "_whiteBackgroundColor_j1pwm_187", "yellow100BackgroundColor": "_yellow100BackgroundColor_j1pwm_191", "yellow200BackgroundColor": "_yellow200BackgroundColor_j1pwm_195", "yellow300BackgroundColor": "_yellow300BackgroundColor_j1pwm_199", "yellow700BackgroundColor": "_yellow700BackgroundColor_j1pwm_203", "yellow800BackgroundColor": "_yellow800BackgroundColor_j1pwm_207", "yellow900BackgroundColor": "_yellow900BackgroundColor_j1pwm_211" };
|
|
361
|
+
|
|
131
362
|
// src/colors/backgroundColor.ts
|
|
132
363
|
function backgroundColor(color) {
|
|
133
364
|
switch (color) {
|
|
134
365
|
case "secondary":
|
|
135
|
-
return
|
|
366
|
+
return colors_module_default2.primary100BackgroundColor;
|
|
136
367
|
case "destructive-primary":
|
|
137
|
-
return
|
|
368
|
+
return colors_module_default2.destructive700BackgroundColor;
|
|
138
369
|
case "destructive-secondary":
|
|
139
|
-
return
|
|
370
|
+
return colors_module_default2.destructive100BackgroundColor;
|
|
140
371
|
case "success":
|
|
141
|
-
return
|
|
372
|
+
return colors_module_default2.success700BackgroundColor;
|
|
142
373
|
case "tertiary":
|
|
143
374
|
case "destructive-tertiary":
|
|
144
|
-
return
|
|
375
|
+
return colors_module_default2.whiteBackgroundColor;
|
|
145
376
|
case "branded":
|
|
146
|
-
return
|
|
377
|
+
return colors_module_default2.yellow700BackgroundColor;
|
|
147
378
|
default:
|
|
148
|
-
return
|
|
379
|
+
return colors_module_default2.primary700BackgroundColor;
|
|
149
380
|
}
|
|
150
381
|
}
|
|
151
382
|
|
|
@@ -154,14 +385,14 @@ function foregroundColor(color) {
|
|
|
154
385
|
switch (color) {
|
|
155
386
|
case "secondary":
|
|
156
387
|
case "tertiary":
|
|
157
|
-
return
|
|
388
|
+
return colors_module_default2.primary700Color;
|
|
158
389
|
case "destructive-secondary":
|
|
159
390
|
case "destructive-tertiary":
|
|
160
|
-
return
|
|
391
|
+
return colors_module_default2.destructive700Color;
|
|
161
392
|
case "branded":
|
|
162
|
-
return
|
|
393
|
+
return colors_module_default2.gray900Color;
|
|
163
394
|
default:
|
|
164
|
-
return
|
|
395
|
+
return colors_module_default2.whiteColor;
|
|
165
396
|
}
|
|
166
397
|
}
|
|
167
398
|
|
|
@@ -180,7 +411,7 @@ var ButtonGroupContext_default = ButtonGroupContext;
|
|
|
180
411
|
var Button_module_default = { "button": "_button_1p2nl_1", "buttonGap": "_buttonGap_1p2nl_9", "fullWidth": "_fullWidth_1p2nl_50", "sm": "_sm_1p2nl_54", "md": "_md_1p2nl_61", "lg": "_lg_1p2nl_68", "icon": "_icon_1p2nl_75", "smIcon": "_smIcon_1p2nl_79", "mdIcon": "_mdIcon_1p2nl_86", "lgIcon": "_lgIcon_1p2nl_93", "textContainer": "_textContainer_1p2nl_100", "loading": "_loading_1p2nl_115", "syntaxButtonLoadingRotate": "_syntaxButtonLoadingRotate_1p2nl_1", "loadingCircle": "_loadingCircle_1p2nl_119", "buttonText": "_buttonText_1p2nl_127", "buttonTextSmall": "_buttonTextSmall_1p2nl_134", "buttonTextMedium": "_buttonTextMedium_1p2nl_138", "buttonTextLarge": "_buttonTextLarge_1p2nl_142" };
|
|
181
412
|
|
|
182
413
|
// src/Button/Button.tsx
|
|
183
|
-
var
|
|
414
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
184
415
|
var textVariant = {
|
|
185
416
|
// Replace with `Typography` once it lands in `syntax-core`
|
|
186
417
|
["sm"]: Button_module_default.buttonTextSmall,
|
|
@@ -215,7 +446,7 @@ var Button = ({
|
|
|
215
446
|
const size = (contextProps == null ? void 0 : contextProps.size) || sizeProp;
|
|
216
447
|
const disabled = (contextProps == null ? void 0 : contextProps.disabled) || disabledProp;
|
|
217
448
|
const fullWidth = (contextProps == null ? void 0 : contextProps.fullWidth) || fullWidthProp;
|
|
218
|
-
return /* @__PURE__ */ (0,
|
|
449
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
219
450
|
"button",
|
|
220
451
|
{
|
|
221
452
|
"aria-label": accessibilityLabel,
|
|
@@ -223,7 +454,7 @@ var Button = ({
|
|
|
223
454
|
title: tooltip,
|
|
224
455
|
disabled: disabled || loading,
|
|
225
456
|
onClick,
|
|
226
|
-
className: (0,
|
|
457
|
+
className: (0, import_classnames3.default)(
|
|
227
458
|
Button_module_default.button,
|
|
228
459
|
foregroundColor(color),
|
|
229
460
|
backgroundColor(color),
|
|
@@ -234,17 +465,17 @@ var Button = ({
|
|
|
234
465
|
}
|
|
235
466
|
),
|
|
236
467
|
children: [
|
|
237
|
-
!loading && StartIcon && /* @__PURE__ */ (0,
|
|
238
|
-
(loading && loadingText || !loading && text) && /* @__PURE__ */ (0,
|
|
239
|
-
!loading && EndIcon && /* @__PURE__ */ (0,
|
|
240
|
-
loading && /* @__PURE__ */ (0,
|
|
468
|
+
!loading && StartIcon && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(StartIcon, { className: (0, import_classnames3.default)(Button_module_default.icon, iconSize[size]) }),
|
|
469
|
+
(loading && loadingText || !loading && text) && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: Button_module_default.textContainer, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: (0, import_classnames3.default)(Button_module_default.buttonText, textVariant[size]), children: loading ? loadingText : text }) }),
|
|
470
|
+
!loading && EndIcon && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(EndIcon, { className: (0, import_classnames3.default)(Button_module_default.icon, iconSize[size]) }),
|
|
471
|
+
loading && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
241
472
|
"svg",
|
|
242
473
|
{
|
|
243
|
-
className: (0,
|
|
474
|
+
className: (0, import_classnames3.default)(Button_module_default.loading, foregroundColor(color)),
|
|
244
475
|
viewBox: "22 22 44 44",
|
|
245
476
|
width: loadingIconSize[size],
|
|
246
477
|
height: loadingIconSize[size],
|
|
247
|
-
children: /* @__PURE__ */ (0,
|
|
478
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
248
479
|
"circle",
|
|
249
480
|
{
|
|
250
481
|
className: Button_module_default.loadingCircle,
|
|
@@ -270,8 +501,8 @@ var import_react3 = require("react");
|
|
|
270
501
|
var ButtonGroup_module_default = { "buttonGroup": "_buttonGroup_184aa_1", "horizontal": "_horizontal_184aa_6", "vertical": "_vertical_184aa_10", "smallGap": "_smallGap_184aa_14", "mediumGap": "_mediumGap_184aa_18", "largeGap": "_largeGap_184aa_22" };
|
|
271
502
|
|
|
272
503
|
// src/ButtonGroup/ButtonGroup.tsx
|
|
273
|
-
var
|
|
274
|
-
var
|
|
504
|
+
var import_classnames4 = __toESM(require_classnames());
|
|
505
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
275
506
|
var gap = {
|
|
276
507
|
["sm"]: ButtonGroup_module_default.smallGap,
|
|
277
508
|
["md"]: ButtonGroup_module_default.mediumGap,
|
|
@@ -288,11 +519,11 @@ var ButtonGroup = ({
|
|
|
288
519
|
() => ({ disabled, fullWidth, size }),
|
|
289
520
|
[disabled, fullWidth, size]
|
|
290
521
|
);
|
|
291
|
-
const classnames2 = (0,
|
|
522
|
+
const classnames2 = (0, import_classnames4.default)(ButtonGroup_module_default.buttonGroup, gap[size], {
|
|
292
523
|
[ButtonGroup_module_default.horizontal]: orientation === "horizontal",
|
|
293
524
|
[ButtonGroup_module_default.vertical]: orientation === "vertical"
|
|
294
525
|
});
|
|
295
|
-
return /* @__PURE__ */ (0,
|
|
526
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ButtonGroupContext_default.Provider, { value: context, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: classnames2, children }) });
|
|
296
527
|
};
|
|
297
528
|
var ButtonGroup_default = ButtonGroup;
|
|
298
529
|
|
|
@@ -300,47 +531,44 @@ var ButtonGroup_default = ButtonGroup;
|
|
|
300
531
|
var Card_module_default = { "card": "_card_hvz2b_1" };
|
|
301
532
|
|
|
302
533
|
// src/Card/Card.tsx
|
|
303
|
-
var
|
|
534
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
304
535
|
var Card = ({
|
|
305
536
|
children
|
|
306
|
-
}) => /* @__PURE__ */ (0,
|
|
537
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: Card_module_default.card, children });
|
|
307
538
|
var Card_default = Card;
|
|
308
539
|
|
|
309
540
|
// css-module:./Divider.module.css#css-module
|
|
310
541
|
var Divider_module_default = { "divider": "_divider_1ddgq_1" };
|
|
311
542
|
|
|
312
543
|
// src/Divider/Divider.tsx
|
|
313
|
-
var
|
|
544
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
314
545
|
function Divider({}) {
|
|
315
|
-
return /* @__PURE__ */ (0,
|
|
546
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("hr", { className: Divider_module_default.divider });
|
|
316
547
|
}
|
|
317
548
|
Divider.displayName = "Divider";
|
|
318
549
|
|
|
319
550
|
// src/Typography/Typography.tsx
|
|
320
|
-
var
|
|
551
|
+
var import_classnames5 = __toESM(require_classnames());
|
|
321
552
|
|
|
322
553
|
// css-module:./Typography.module.css#css-module
|
|
323
554
|
var Typography_module_default = { "typography": "_typography_1krnf_1", "size100": "_size100_1krnf_8", "size200": "_size200_1krnf_12", "size300": "_size300_1krnf_16", "size500": "_size500_1krnf_20", "size600": "_size600_1krnf_24", "size700": "_size700_1krnf_28", "size800": "_size800_1krnf_32", "center": "_center_1krnf_37", "forceLeft": "_forceLeft_1krnf_41", "forceRight": "_forceRight_1krnf_45", "start": "_start_1krnf_49", "end": "_end_1krnf_53", "bold": "_bold_1krnf_58", "regular": "_regular_1krnf_62", "semiBold": "_semiBold_1krnf_66", "heavy": "_heavy_1krnf_70", "underline": "_underline_1krnf_74", "inline": "_inline_1krnf_78", "uppercase": "_uppercase_1krnf_82" };
|
|
324
555
|
|
|
325
|
-
// css-module:../colors/colors.module.css#css-module
|
|
326
|
-
var colors_module_default2 = { "inheritColor": "_inheritColor_j1pwm_2", "destructive700Color": "_destructive700Color_j1pwm_6", "gray700Color": "_gray700Color_j1pwm_10", "gray900Color": "_gray900Color_j1pwm_14", "primary700Color": "_primary700Color_j1pwm_18", "whiteColor": "_whiteColor_j1pwm_22", "blackBackgroundColor": "_blackBackgroundColor_j1pwm_27", "destructive100BackgroundColor": "_destructive100BackgroundColor_j1pwm_31", "destructive200BackgroundColor": "_destructive200BackgroundColor_j1pwm_35", "destructive300BackgroundColor": "_destructive300BackgroundColor_j1pwm_39", "destructive700BackgroundColor": "_destructive700BackgroundColor_j1pwm_43", "destructive800BackgroundColor": "_destructive800BackgroundColor_j1pwm_47", "destructive900BackgroundColor": "_destructive900BackgroundColor_j1pwm_51", "gray10BackgroundColor": "_gray10BackgroundColor_j1pwm_55", "gray30BackgroundColor": "_gray30BackgroundColor_j1pwm_59", "gray80BackgroundColor": "_gray80BackgroundColor_j1pwm_63", "gray100BackgroundColor": "_gray100BackgroundColor_j1pwm_67", "gray200BackgroundColor": "_gray200BackgroundColor_j1pwm_71", "gray300BackgroundColor": "_gray300BackgroundColor_j1pwm_75", "gray700BackgroundColor": "_gray700BackgroundColor_j1pwm_79", "gray800BackgroundColor": "_gray800BackgroundColor_j1pwm_83", "gray900BackgroundColor": "_gray900BackgroundColor_j1pwm_87", "orange100BackgroundColor": "_orange100BackgroundColor_j1pwm_91", "orange200BackgroundColor": "_orange200BackgroundColor_j1pwm_95", "orange300BackgroundColor": "_orange300BackgroundColor_j1pwm_99", "orange700BackgroundColor": "_orange700BackgroundColor_j1pwm_103", "orange800BackgroundColor": "_orange800BackgroundColor_j1pwm_107", "orange900BackgroundColor": "_orange900BackgroundColor_j1pwm_111", "primary100BackgroundColor": "_primary100BackgroundColor_j1pwm_115", "primary200BackgroundColor": "_primary200BackgroundColor_j1pwm_119", "primary300BackgroundColor": "_primary300BackgroundColor_j1pwm_123", "primary700BackgroundColor": "_primary700BackgroundColor_j1pwm_127", "primary800BackgroundColor": "_primary800BackgroundColor_j1pwm_131", "primary900BackgroundColor": "_primary900BackgroundColor_j1pwm_135", "success100BackgroundColor": "_success100BackgroundColor_j1pwm_139", "success200BackgroundColor": "_success200BackgroundColor_j1pwm_143", "success300BackgroundColor": "_success300BackgroundColor_j1pwm_147", "success700BackgroundColor": "_success700BackgroundColor_j1pwm_151", "success800BackgroundColor": "_success800BackgroundColor_j1pwm_155", "success900BackgroundColor": "_success900BackgroundColor_j1pwm_159", "purple100BackgroundColor": "_purple100BackgroundColor_j1pwm_163", "purple200BackgroundColor": "_purple200BackgroundColor_j1pwm_167", "purple300BackgroundColor": "_purple300BackgroundColor_j1pwm_171", "purple700BackgroundColor": "_purple700BackgroundColor_j1pwm_175", "purple800BackgroundColor": "_purple800BackgroundColor_j1pwm_179", "purple900BackgroundColor": "_purple900BackgroundColor_j1pwm_183", "whiteBackgroundColor": "_whiteBackgroundColor_j1pwm_187", "yellow100BackgroundColor": "_yellow100BackgroundColor_j1pwm_191", "yellow200BackgroundColor": "_yellow200BackgroundColor_j1pwm_195", "yellow300BackgroundColor": "_yellow300BackgroundColor_j1pwm_199", "yellow700BackgroundColor": "_yellow700BackgroundColor_j1pwm_203", "yellow800BackgroundColor": "_yellow800BackgroundColor_j1pwm_207", "yellow900BackgroundColor": "_yellow900BackgroundColor_j1pwm_211" };
|
|
327
|
-
|
|
328
556
|
// src/Typography/Typography.tsx
|
|
329
|
-
var
|
|
557
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
330
558
|
function textColor(color) {
|
|
331
559
|
switch (color) {
|
|
332
560
|
case "gray700":
|
|
333
|
-
return
|
|
561
|
+
return colors_module_default.gray700Color;
|
|
334
562
|
case "white":
|
|
335
|
-
return
|
|
563
|
+
return colors_module_default.whiteColor;
|
|
336
564
|
case "inherit":
|
|
337
|
-
return
|
|
565
|
+
return colors_module_default.inheritColor;
|
|
338
566
|
case "primary":
|
|
339
|
-
return
|
|
567
|
+
return colors_module_default.primary700Color;
|
|
340
568
|
case "destructive-primary":
|
|
341
|
-
return
|
|
569
|
+
return colors_module_default.destructive700Color;
|
|
342
570
|
default:
|
|
343
|
-
return
|
|
571
|
+
return colors_module_default.gray900Color;
|
|
344
572
|
}
|
|
345
573
|
}
|
|
346
574
|
var Typography = ({
|
|
@@ -356,10 +584,10 @@ var Typography = ({
|
|
|
356
584
|
weight = "regular"
|
|
357
585
|
}) => {
|
|
358
586
|
const Tag = as;
|
|
359
|
-
return /* @__PURE__ */ (0,
|
|
587
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
360
588
|
Tag,
|
|
361
589
|
{
|
|
362
|
-
className: (0,
|
|
590
|
+
className: (0, import_classnames5.default)(
|
|
363
591
|
Typography_module_default.typography,
|
|
364
592
|
Typography_module_default[align],
|
|
365
593
|
Typography_module_default[weight],
|
|
@@ -377,7 +605,7 @@ var Typography = ({
|
|
|
377
605
|
var Typography_default = Typography;
|
|
378
606
|
|
|
379
607
|
// src/Heading/Heading.tsx
|
|
380
|
-
var
|
|
608
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
381
609
|
var Heading = ({
|
|
382
610
|
align = "start",
|
|
383
611
|
as = "h1",
|
|
@@ -386,19 +614,19 @@ var Heading = ({
|
|
|
386
614
|
size = 500
|
|
387
615
|
}) => {
|
|
388
616
|
const weight = [700, 800].includes(size) ? "heavy" : "bold";
|
|
389
|
-
return /* @__PURE__ */ (0,
|
|
617
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Typography_default, { align, as, color, size, weight, children });
|
|
390
618
|
};
|
|
391
619
|
var Heading_default = Heading;
|
|
392
620
|
|
|
393
621
|
// src/IconButton/IconButton.tsx
|
|
394
|
-
var
|
|
622
|
+
var import_classnames6 = __toESM(require_classnames());
|
|
395
623
|
var import_react4 = require("react");
|
|
396
624
|
|
|
397
625
|
// css-module:./IconButton.module.css#css-module
|
|
398
626
|
var IconButton_module_default = { "iconButton": "_iconButton_dzhn0_1", "sm": "_sm_dzhn0_46", "md": "_md_dzhn0_51", "lg": "_lg_dzhn0_56", "smIcon": "_smIcon_dzhn0_61", "mdIcon": "_mdIcon_dzhn0_68", "lgIcon": "_lgIcon_dzhn0_75" };
|
|
399
627
|
|
|
400
628
|
// src/IconButton/IconButton.tsx
|
|
401
|
-
var
|
|
629
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
402
630
|
var iconSize2 = {
|
|
403
631
|
["sm"]: IconButton_module_default.smIcon,
|
|
404
632
|
["md"]: IconButton_module_default.mdIcon,
|
|
@@ -416,7 +644,7 @@ var IconButton = ({
|
|
|
416
644
|
const contextProps = (0, import_react4.useContext)(ButtonGroupContext_default);
|
|
417
645
|
const size = (contextProps == null ? void 0 : contextProps.size) || sizeProp;
|
|
418
646
|
const disabled = (contextProps == null ? void 0 : contextProps.disabled) || disabledProp;
|
|
419
|
-
return /* @__PURE__ */ (0,
|
|
647
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
420
648
|
"button",
|
|
421
649
|
{
|
|
422
650
|
"aria-label": accessibilityLabel,
|
|
@@ -424,13 +652,13 @@ var IconButton = ({
|
|
|
424
652
|
title: tooltip,
|
|
425
653
|
disabled,
|
|
426
654
|
onClick,
|
|
427
|
-
className: (0,
|
|
655
|
+
className: (0, import_classnames6.default)(
|
|
428
656
|
IconButton_module_default.iconButton,
|
|
429
657
|
foregroundColor(color),
|
|
430
658
|
backgroundColor(color),
|
|
431
659
|
IconButton_module_default[size]
|
|
432
660
|
),
|
|
433
|
-
children: /* @__PURE__ */ (0,
|
|
661
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { className: iconSize2[size] })
|
|
434
662
|
}
|
|
435
663
|
);
|
|
436
664
|
};
|
|
@@ -438,13 +666,13 @@ var IconButton_default = IconButton;
|
|
|
438
666
|
|
|
439
667
|
// src/Checkbox/Checkbox.tsx
|
|
440
668
|
var import_react5 = require("react");
|
|
441
|
-
var
|
|
669
|
+
var import_classnames7 = __toESM(require_classnames());
|
|
442
670
|
|
|
443
671
|
// css-module:./Checkbox.module.css#css-module
|
|
444
672
|
var Checkbox_module_default = { "mainContainer": "_mainContainer_p0un4_1", "checkboxContainer": "_checkboxContainer_p0un4_8", "inputOverlay": "_inputOverlay_p0un4_13", "focusedCheckbox": "_focusedCheckbox_p0un4_21", "checkbox": "_checkbox_p0un4_8", "uncheckedBox": "_uncheckedBox_p0un4_35", "uncheckedBorder": "_uncheckedBorder_p0un4_39", "uncheckedErrorBorder": "_uncheckedErrorBorder_p0un4_43", "checkedBox": "_checkedBox_p0un4_47", "checkedNonError": "_checkedNonError_p0un4_51", "checkedError": "_checkedError_p0un4_55", "sm": "_sm_p0un4_59", "md": "_md_p0un4_65" };
|
|
445
673
|
|
|
446
674
|
// src/Checkbox/Checkbox.tsx
|
|
447
|
-
var
|
|
675
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
448
676
|
var typographySize = {
|
|
449
677
|
sm: 100,
|
|
450
678
|
md: 200
|
|
@@ -462,24 +690,24 @@ var Checkbox = ({
|
|
|
462
690
|
onChange
|
|
463
691
|
}) => {
|
|
464
692
|
const [isFocused, setIsFocused] = (0, import_react5.useState)(false);
|
|
465
|
-
const checkboxStyling = (0,
|
|
466
|
-
const uncheckedStyling = (0,
|
|
693
|
+
const checkboxStyling = (0, import_classnames7.default)(Checkbox_module_default.checkbox, Checkbox_module_default[size]);
|
|
694
|
+
const uncheckedStyling = (0, import_classnames7.default)(checkboxStyling, Checkbox_module_default.uncheckedBox, {
|
|
467
695
|
[Checkbox_module_default.uncheckedBorder]: !error,
|
|
468
696
|
[Checkbox_module_default.uncheckedErrorBorder]: error,
|
|
469
697
|
[Checkbox_module_default.focusedCheckbox]: isFocused
|
|
470
698
|
});
|
|
471
|
-
const checkedStyling = (0,
|
|
699
|
+
const checkedStyling = (0, import_classnames7.default)(checkboxStyling, Checkbox_module_default.checkedBox, {
|
|
472
700
|
[Checkbox_module_default.checkedNonError]: !error,
|
|
473
701
|
[Checkbox_module_default.checkedError]: error,
|
|
474
702
|
[Checkbox_module_default.focusedCheckbox]: isFocused
|
|
475
703
|
});
|
|
476
|
-
return /* @__PURE__ */ (0,
|
|
477
|
-
/* @__PURE__ */ (0,
|
|
478
|
-
/* @__PURE__ */ (0,
|
|
704
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("label", { className: (0, import_classnames7.default)(Checkbox_module_default.mainContainer), children: [
|
|
705
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: Checkbox_module_default.checkboxContainer, children: [
|
|
706
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
479
707
|
"input",
|
|
480
708
|
{
|
|
481
709
|
type: "checkbox",
|
|
482
|
-
className: (0,
|
|
710
|
+
className: (0, import_classnames7.default)(Checkbox_module_default.inputOverlay, Checkbox_module_default[size]),
|
|
483
711
|
checked,
|
|
484
712
|
onChange,
|
|
485
713
|
disabled,
|
|
@@ -491,7 +719,7 @@ var Checkbox = ({
|
|
|
491
719
|
}
|
|
492
720
|
}
|
|
493
721
|
),
|
|
494
|
-
/* @__PURE__ */ (0,
|
|
722
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: checked ? checkedStyling : uncheckedStyling, children: checked && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", width: iconWidth[size], children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
495
723
|
"path",
|
|
496
724
|
{
|
|
497
725
|
fill: "#fff",
|
|
@@ -499,7 +727,7 @@ var Checkbox = ({
|
|
|
499
727
|
}
|
|
500
728
|
) }) })
|
|
501
729
|
] }),
|
|
502
|
-
/* @__PURE__ */ (0,
|
|
730
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
503
731
|
Typography_default,
|
|
504
732
|
{
|
|
505
733
|
size: typographySize[size],
|
|
@@ -515,21 +743,21 @@ var Checkbox_default = Checkbox;
|
|
|
515
743
|
var MiniActionCard_module_default = { "miniActionCard": "_miniActionCard_qebkn_1", "card": "_card_qebkn_9" };
|
|
516
744
|
|
|
517
745
|
// src/MiniActionCard/MiniActionCard.tsx
|
|
518
|
-
var
|
|
746
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
519
747
|
var MiniActionCard = ({
|
|
520
748
|
children
|
|
521
|
-
}) => /* @__PURE__ */ (0,
|
|
749
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: MiniActionCard_module_default.miniActionCard, children });
|
|
522
750
|
var MiniActionCard_default = MiniActionCard;
|
|
523
751
|
|
|
524
752
|
// src/RadioButton/RadioButton.tsx
|
|
525
753
|
var import_react6 = require("react");
|
|
526
|
-
var
|
|
754
|
+
var import_classnames8 = __toESM(require_classnames());
|
|
527
755
|
|
|
528
756
|
// css-module:./RadioButton.module.css#css-module
|
|
529
757
|
var RadioButton_module_default = { "radioButton": "_radioButton_1dde1_1", "focusedRadioButton": "_focusedRadioButton_1dde1_8", "smBase": "_smBase_1dde1_13", "mdBase": "_mdBase_1dde1_18", "radioStyleOverride": "_radioStyleOverride_1dde1_23", "smOverride": "_smOverride_1dde1_28", "mdOverride": "_mdOverride_1dde1_33", "outer": "_outer_1dde1_38", "sm": "_sm_1dde1_13", "md": "_md_1dde1_18", "errorOuterBackgroundColor": "_errorOuterBackgroundColor_1dde1_57", "outerBackgroundColor": "_outerBackgroundColor_1dde1_61", "background": "_background_1dde1_65", "errorBorderColor": "_errorBorderColor_1dde1_71", "borderColor": "_borderColor_1dde1_75", "circle": "_circle_1dde1_79", "smInner": "_smInner_1dde1_83", "mdInner": "_mdInner_1dde1_89" };
|
|
530
758
|
|
|
531
759
|
// src/RadioButton/RadioButton.tsx
|
|
532
|
-
var
|
|
760
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
533
761
|
var RadioButton = ({
|
|
534
762
|
checked = false,
|
|
535
763
|
disabled = false,
|
|
@@ -540,19 +768,19 @@ var RadioButton = ({
|
|
|
540
768
|
value = ""
|
|
541
769
|
}) => {
|
|
542
770
|
const [isFocused, setIsFocused] = (0, import_react6.useState)(false);
|
|
543
|
-
return /* @__PURE__ */ (0,
|
|
771
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
544
772
|
"label",
|
|
545
773
|
{
|
|
546
|
-
className: (0,
|
|
774
|
+
className: (0, import_classnames8.default)(RadioButton_module_default.radioButton, {
|
|
547
775
|
[RadioButton_module_default.smBase]: size === "sm",
|
|
548
776
|
[RadioButton_module_default.mdBase]: size === "md"
|
|
549
777
|
}),
|
|
550
778
|
children: [
|
|
551
|
-
/* @__PURE__ */ (0,
|
|
779
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
552
780
|
"input",
|
|
553
781
|
{
|
|
554
782
|
type: "radio",
|
|
555
|
-
className: (0,
|
|
783
|
+
className: (0, import_classnames8.default)(RadioButton_module_default.radioStyleOverride, {
|
|
556
784
|
[RadioButton_module_default.smOverride]: size === "sm",
|
|
557
785
|
[RadioButton_module_default.mdOverride]: size === "md"
|
|
558
786
|
}),
|
|
@@ -568,35 +796,35 @@ var RadioButton = ({
|
|
|
568
796
|
}
|
|
569
797
|
}
|
|
570
798
|
),
|
|
571
|
-
checked ? /* @__PURE__ */ (0,
|
|
799
|
+
checked ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
572
800
|
"div",
|
|
573
801
|
{
|
|
574
|
-
className: (0,
|
|
802
|
+
className: (0, import_classnames8.default)(RadioButton_module_default.outer, RadioButton_module_default[size], {
|
|
575
803
|
[RadioButton_module_default.errorOuterBackgroundColor]: error,
|
|
576
804
|
[RadioButton_module_default.outerBackgroundColor]: !error,
|
|
577
805
|
[RadioButton_module_default.focusedRadioButton]: isFocused
|
|
578
806
|
}),
|
|
579
|
-
children: /* @__PURE__ */ (0,
|
|
807
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
580
808
|
"div",
|
|
581
809
|
{
|
|
582
|
-
className: (0,
|
|
810
|
+
className: (0, import_classnames8.default)(RadioButton_module_default.circle, {
|
|
583
811
|
[RadioButton_module_default.smInner]: size === "sm",
|
|
584
812
|
[RadioButton_module_default.mdInner]: size === "md"
|
|
585
813
|
})
|
|
586
814
|
}
|
|
587
815
|
)
|
|
588
816
|
}
|
|
589
|
-
) : /* @__PURE__ */ (0,
|
|
817
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
590
818
|
"div",
|
|
591
819
|
{
|
|
592
|
-
className: (0,
|
|
820
|
+
className: (0, import_classnames8.default)(RadioButton_module_default.background, RadioButton_module_default[size], {
|
|
593
821
|
[RadioButton_module_default.errorBorderColor]: error,
|
|
594
822
|
[RadioButton_module_default.borderColor]: !error,
|
|
595
823
|
[RadioButton_module_default.focusedRadioButton]: isFocused
|
|
596
824
|
})
|
|
597
825
|
}
|
|
598
826
|
),
|
|
599
|
-
/* @__PURE__ */ (0,
|
|
827
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
600
828
|
Typography_default,
|
|
601
829
|
{
|
|
602
830
|
size: size === "md" ? 200 : 100,
|
|
@@ -612,6 +840,7 @@ var RadioButton_default = RadioButton;
|
|
|
612
840
|
// Annotate the CommonJS export names for ESM import in node:
|
|
613
841
|
0 && (module.exports = {
|
|
614
842
|
Avatar,
|
|
843
|
+
Box,
|
|
615
844
|
Button,
|
|
616
845
|
ButtonGroup,
|
|
617
846
|
Card,
|