@cambly/syntax-core 4.8.2 → 4.9.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 +242 -242
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +20 -4
- package/dist/index.js +145 -117
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +137 -110
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -128,9 +128,74 @@ var Avatar = ({
|
|
|
128
128
|
};
|
|
129
129
|
var Avatar_default = Avatar;
|
|
130
130
|
|
|
131
|
-
// src/
|
|
131
|
+
// src/Typography/Typography.tsx
|
|
132
132
|
var import_classnames2 = __toESM(require_classnames());
|
|
133
133
|
|
|
134
|
+
// css-module:./Typography.module.css#css-module
|
|
135
|
+
var Typography_module_default = { "typography": "_typography_1hx29_1", "size100": "_size100_1hx29_8", "size200": "_size200_1hx29_12", "size300": "_size300_1hx29_16", "size500": "_size500_1hx29_20", "size600": "_size600_1hx29_24", "size700": "_size700_1hx29_28", "size800": "_size800_1hx29_32", "center": "_center_1hx29_37", "forceLeft": "_forceLeft_1hx29_41", "forceRight": "_forceRight_1hx29_45", "start": "_start_1hx29_49", "end": "_end_1hx29_53", "bold": "_bold_1hx29_58", "regular": "_regular_1hx29_62", "semiBold": "_semiBold_1hx29_66", "heavy": "_heavy_1hx29_70", "underline": "_underline_1hx29_74", "inline": "_inline_1hx29_78", "uppercase": "_uppercase_1hx29_82", "lineClamp": "_lineClamp_1hx29_86" };
|
|
136
|
+
|
|
137
|
+
// css-module:../colors/colors.module.css#css-module
|
|
138
|
+
var colors_module_default = { "inheritColor": "_inheritColor_11wj3_2", "destructive700Color": "_destructive700Color_11wj3_6", "gray700Color": "_gray700Color_11wj3_10", "gray900Color": "_gray900Color_11wj3_14", "primary700Color": "_primary700Color_11wj3_18", "whiteColor": "_whiteColor_11wj3_22", "blackBackgroundColor": "_blackBackgroundColor_11wj3_27", "destructive100BackgroundColor": "_destructive100BackgroundColor_11wj3_31", "destructive200BackgroundColor": "_destructive200BackgroundColor_11wj3_35", "destructive300BackgroundColor": "_destructive300BackgroundColor_11wj3_39", "destructive700BackgroundColor": "_destructive700BackgroundColor_11wj3_43", "destructive800BackgroundColor": "_destructive800BackgroundColor_11wj3_47", "destructive900BackgroundColor": "_destructive900BackgroundColor_11wj3_51", "gray10BackgroundColor": "_gray10BackgroundColor_11wj3_55", "gray30BackgroundColor": "_gray30BackgroundColor_11wj3_59", "gray60BackgroundColor": "_gray60BackgroundColor_11wj3_63", "gray80BackgroundColor": "_gray80BackgroundColor_11wj3_67", "gray100BackgroundColor": "_gray100BackgroundColor_11wj3_71", "gray200BackgroundColor": "_gray200BackgroundColor_11wj3_75", "gray300BackgroundColor": "_gray300BackgroundColor_11wj3_79", "gray700BackgroundColor": "_gray700BackgroundColor_11wj3_83", "gray800BackgroundColor": "_gray800BackgroundColor_11wj3_87", "gray900BackgroundColor": "_gray900BackgroundColor_11wj3_91", "orange100BackgroundColor": "_orange100BackgroundColor_11wj3_95", "orange200BackgroundColor": "_orange200BackgroundColor_11wj3_99", "orange300BackgroundColor": "_orange300BackgroundColor_11wj3_103", "orange700BackgroundColor": "_orange700BackgroundColor_11wj3_107", "orange800BackgroundColor": "_orange800BackgroundColor_11wj3_111", "orange900BackgroundColor": "_orange900BackgroundColor_11wj3_115", "primary100BackgroundColor": "_primary100BackgroundColor_11wj3_119", "primary200BackgroundColor": "_primary200BackgroundColor_11wj3_123", "primary300BackgroundColor": "_primary300BackgroundColor_11wj3_127", "primary700BackgroundColor": "_primary700BackgroundColor_11wj3_131", "primary800BackgroundColor": "_primary800BackgroundColor_11wj3_135", "primary900BackgroundColor": "_primary900BackgroundColor_11wj3_139", "success100BackgroundColor": "_success100BackgroundColor_11wj3_143", "success200BackgroundColor": "_success200BackgroundColor_11wj3_147", "success300BackgroundColor": "_success300BackgroundColor_11wj3_151", "success700BackgroundColor": "_success700BackgroundColor_11wj3_155", "success800BackgroundColor": "_success800BackgroundColor_11wj3_159", "success900BackgroundColor": "_success900BackgroundColor_11wj3_163", "purple100BackgroundColor": "_purple100BackgroundColor_11wj3_167", "purple200BackgroundColor": "_purple200BackgroundColor_11wj3_171", "purple300BackgroundColor": "_purple300BackgroundColor_11wj3_175", "purple700BackgroundColor": "_purple700BackgroundColor_11wj3_179", "purple800BackgroundColor": "_purple800BackgroundColor_11wj3_183", "purple900BackgroundColor": "_purple900BackgroundColor_11wj3_187", "whiteBackgroundColor": "_whiteBackgroundColor_11wj3_191", "yellow100BackgroundColor": "_yellow100BackgroundColor_11wj3_195", "yellow200BackgroundColor": "_yellow200BackgroundColor_11wj3_199", "yellow300BackgroundColor": "_yellow300BackgroundColor_11wj3_203", "yellow700BackgroundColor": "_yellow700BackgroundColor_11wj3_207", "yellow800BackgroundColor": "_yellow800BackgroundColor_11wj3_211", "yellow900BackgroundColor": "_yellow900BackgroundColor_11wj3_215" };
|
|
139
|
+
|
|
140
|
+
// src/Typography/Typography.tsx
|
|
141
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
142
|
+
function textColor(color) {
|
|
143
|
+
switch (color) {
|
|
144
|
+
case "gray700":
|
|
145
|
+
return colors_module_default.gray700Color;
|
|
146
|
+
case "white":
|
|
147
|
+
return colors_module_default.whiteColor;
|
|
148
|
+
case "inherit":
|
|
149
|
+
return colors_module_default.inheritColor;
|
|
150
|
+
case "primary":
|
|
151
|
+
return colors_module_default.primary700Color;
|
|
152
|
+
case "destructive-primary":
|
|
153
|
+
return colors_module_default.destructive700Color;
|
|
154
|
+
default:
|
|
155
|
+
return colors_module_default.gray900Color;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
var Typography = ({
|
|
159
|
+
align = "start",
|
|
160
|
+
as = "div",
|
|
161
|
+
children,
|
|
162
|
+
color = "gray900",
|
|
163
|
+
inline = false,
|
|
164
|
+
lineClamp = void 0,
|
|
165
|
+
size = 200,
|
|
166
|
+
tooltip,
|
|
167
|
+
transform = "none",
|
|
168
|
+
underline = false,
|
|
169
|
+
weight = "regular"
|
|
170
|
+
}) => {
|
|
171
|
+
const Tag = as;
|
|
172
|
+
return /* @__PURE__ */ jsx2(
|
|
173
|
+
Tag,
|
|
174
|
+
{
|
|
175
|
+
className: (0, import_classnames2.default)(
|
|
176
|
+
Typography_module_default.typography,
|
|
177
|
+
Typography_module_default[align],
|
|
178
|
+
Typography_module_default[weight],
|
|
179
|
+
textColor(color),
|
|
180
|
+
inline && Typography_module_default.inline,
|
|
181
|
+
Typography_module_default[`size${size}`],
|
|
182
|
+
transform === "uppercase" && Typography_module_default.uppercase,
|
|
183
|
+
underline && Typography_module_default.underline,
|
|
184
|
+
lineClamp != null && Typography_module_default.lineClamp
|
|
185
|
+
),
|
|
186
|
+
style: {
|
|
187
|
+
WebkitLineClamp: lineClamp
|
|
188
|
+
},
|
|
189
|
+
title: tooltip,
|
|
190
|
+
children
|
|
191
|
+
}
|
|
192
|
+
);
|
|
193
|
+
};
|
|
194
|
+
var Typography_default = Typography;
|
|
195
|
+
|
|
196
|
+
// src/Box/Box.tsx
|
|
197
|
+
var import_classnames3 = __toESM(require_classnames());
|
|
198
|
+
|
|
134
199
|
// css-module:./Box.module.css#css-module
|
|
135
200
|
var Box_module_default = { "box": "_box_7x1a7_1", "flexWrap": "_flexWrap_7x1a7_5", "alignItemscenter": "_alignItemscenter_7x1a7_10", "alignItemsstart": "_alignItemsstart_7x1a7_14", "alignItemsend": "_alignItemsend_7x1a7_18", "alignItemsstretch": "_alignItemsstretch_7x1a7_22", "alignItemsbaseline": "_alignItemsbaseline_7x1a7_26", "alignItemscenterSmall": "_alignItemscenterSmall_7x1a7_32", "alignItemsstartSmall": "_alignItemsstartSmall_7x1a7_36", "alignItemsendSmall": "_alignItemsendSmall_7x1a7_40", "alignItemsstretchSmall": "_alignItemsstretchSmall_7x1a7_44", "alignItemsbaselineSmall": "_alignItemsbaselineSmall_7x1a7_48", "alignItemscenterLarge": "_alignItemscenterLarge_7x1a7_55", "alignItemsstartLarge": "_alignItemsstartLarge_7x1a7_59", "alignItemsendLarge": "_alignItemsendLarge_7x1a7_63", "alignItemsstretchLarge": "_alignItemsstretchLarge_7x1a7_67", "alignItemsbaselineLarge": "_alignItemsbaselineLarge_7x1a7_71", "alignSelfcenter": "_alignSelfcenter_7x1a7_77", "alignSelfstart": "_alignSelfstart_7x1a7_81", "alignSelfend": "_alignSelfend_7x1a7_85", "alignSelfstretch": "_alignSelfstretch_7x1a7_89", "alignSelfbaseline": "_alignSelfbaseline_7x1a7_93", "alignSelfauto": "_alignSelfauto_7x1a7_97", "roundingsm": "_roundingsm_7x1a7_102", "roundingmd": "_roundingmd_7x1a7_106", "roundinglg": "_roundinglg_7x1a7_110", "roundingxl": "_roundingxl_7x1a7_114", "roundingfull": "_roundingfull_7x1a7_118", "block": "_block_7x1a7_123", "flex": "_flex_7x1a7_5", "inlineBlock": "_inlineBlock_7x1a7_131", "none": "_none_7x1a7_135", "visuallyHidden": "_visuallyHidden_7x1a7_139", "blockSmall": "_blockSmall_7x1a7_153", "flexSmall": "_flexSmall_7x1a7_157", "inlineBlockSmall": "_inlineBlockSmall_7x1a7_161", "noneSmall": "_noneSmall_7x1a7_165", "visuallyHiddenSmall": "_visuallyHiddenSmall_7x1a7_169", "blockLarge": "_blockLarge_7x1a7_184", "flexLarge": "_flexLarge_7x1a7_188", "inlineBlockLarge": "_inlineBlockLarge_7x1a7_192", "noneLarge": "_noneLarge_7x1a7_196", "visuallyHiddenLarge": "_visuallyHiddenLarge_7x1a7_200", "column": "_column_7x1a7_214", "row": "_row_7x1a7_218", "columnSmall": "_columnSmall_7x1a7_224", "rowSmall": "_rowSmall_7x1a7_228", "columnLarge": "_columnLarge_7x1a7_235", "rowLarge": "_rowLarge_7x1a7_239", "gap0": "_gap0_7x1a7_245", "gap1": "_gap1_7x1a7_249", "gap2": "_gap2_7x1a7_253", "gap3": "_gap3_7x1a7_257", "gap4": "_gap4_7x1a7_261", "gap5": "_gap5_7x1a7_265", "gap6": "_gap6_7x1a7_269", "gap7": "_gap7_7x1a7_273", "gap8": "_gap8_7x1a7_277", "gap9": "_gap9_7x1a7_281", "gap10": "_gap10_7x1a7_285", "gap11": "_gap11_7x1a7_289", "gap12": "_gap12_7x1a7_293", "justifyContentcenter": "_justifyContentcenter_7x1a7_298", "justifyContentstart": "_justifyContentstart_7x1a7_302", "justifyContentend": "_justifyContentend_7x1a7_306", "justifyContentbetween": "_justifyContentbetween_7x1a7_310", "justifyContentaround": "_justifyContentaround_7x1a7_314", "justifyContentevenly": "_justifyContentevenly_7x1a7_318", "justifyContentcenterSmall": "_justifyContentcenterSmall_7x1a7_324", "justifyContentstartSmall": "_justifyContentstartSmall_7x1a7_328", "justifyContentendSmall": "_justifyContentendSmall_7x1a7_332", "justifyContentbetweenSmall": "_justifyContentbetweenSmall_7x1a7_336", "justifyContentaroundSmall": "_justifyContentaroundSmall_7x1a7_340", "justifyContentevenlySmall": "_justifyContentevenlySmall_7x1a7_344", "justifyContentcenterLarge": "_justifyContentcenterLarge_7x1a7_351", "justifyContentstartLarge": "_justifyContentstartLarge_7x1a7_355", "justifyContentendLarge": "_justifyContentendLarge_7x1a7_359", "justifyContentbetweenLarge": "_justifyContentbetweenLarge_7x1a7_363", "justifyContentaroundLarge": "_justifyContentaroundLarge_7x1a7_367", "justifyContentevenlyLarge": "_justifyContentevenlyLarge_7x1a7_371", "absolute": "_absolute_7x1a7_377", "fixed": "_fixed_7x1a7_381", "relative": "_relative_7x1a7_385", "sticky": "_sticky_7x1a7_389" };
|
|
136
201
|
|
|
@@ -140,12 +205,9 @@ var margin_module_default = { "marginBottom-12": "_marginBottom-12_1whn1_2", "ma
|
|
|
140
205
|
// css-module:./padding.module.css#css-module
|
|
141
206
|
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" };
|
|
142
207
|
|
|
143
|
-
// css-module:../colors/colors.module.css#css-module
|
|
144
|
-
var colors_module_default = { "inheritColor": "_inheritColor_11wj3_2", "destructive700Color": "_destructive700Color_11wj3_6", "gray700Color": "_gray700Color_11wj3_10", "gray900Color": "_gray900Color_11wj3_14", "primary700Color": "_primary700Color_11wj3_18", "whiteColor": "_whiteColor_11wj3_22", "blackBackgroundColor": "_blackBackgroundColor_11wj3_27", "destructive100BackgroundColor": "_destructive100BackgroundColor_11wj3_31", "destructive200BackgroundColor": "_destructive200BackgroundColor_11wj3_35", "destructive300BackgroundColor": "_destructive300BackgroundColor_11wj3_39", "destructive700BackgroundColor": "_destructive700BackgroundColor_11wj3_43", "destructive800BackgroundColor": "_destructive800BackgroundColor_11wj3_47", "destructive900BackgroundColor": "_destructive900BackgroundColor_11wj3_51", "gray10BackgroundColor": "_gray10BackgroundColor_11wj3_55", "gray30BackgroundColor": "_gray30BackgroundColor_11wj3_59", "gray60BackgroundColor": "_gray60BackgroundColor_11wj3_63", "gray80BackgroundColor": "_gray80BackgroundColor_11wj3_67", "gray100BackgroundColor": "_gray100BackgroundColor_11wj3_71", "gray200BackgroundColor": "_gray200BackgroundColor_11wj3_75", "gray300BackgroundColor": "_gray300BackgroundColor_11wj3_79", "gray700BackgroundColor": "_gray700BackgroundColor_11wj3_83", "gray800BackgroundColor": "_gray800BackgroundColor_11wj3_87", "gray900BackgroundColor": "_gray900BackgroundColor_11wj3_91", "orange100BackgroundColor": "_orange100BackgroundColor_11wj3_95", "orange200BackgroundColor": "_orange200BackgroundColor_11wj3_99", "orange300BackgroundColor": "_orange300BackgroundColor_11wj3_103", "orange700BackgroundColor": "_orange700BackgroundColor_11wj3_107", "orange800BackgroundColor": "_orange800BackgroundColor_11wj3_111", "orange900BackgroundColor": "_orange900BackgroundColor_11wj3_115", "primary100BackgroundColor": "_primary100BackgroundColor_11wj3_119", "primary200BackgroundColor": "_primary200BackgroundColor_11wj3_123", "primary300BackgroundColor": "_primary300BackgroundColor_11wj3_127", "primary700BackgroundColor": "_primary700BackgroundColor_11wj3_131", "primary800BackgroundColor": "_primary800BackgroundColor_11wj3_135", "primary900BackgroundColor": "_primary900BackgroundColor_11wj3_139", "success100BackgroundColor": "_success100BackgroundColor_11wj3_143", "success200BackgroundColor": "_success200BackgroundColor_11wj3_147", "success300BackgroundColor": "_success300BackgroundColor_11wj3_151", "success700BackgroundColor": "_success700BackgroundColor_11wj3_155", "success800BackgroundColor": "_success800BackgroundColor_11wj3_159", "success900BackgroundColor": "_success900BackgroundColor_11wj3_163", "purple100BackgroundColor": "_purple100BackgroundColor_11wj3_167", "purple200BackgroundColor": "_purple200BackgroundColor_11wj3_171", "purple300BackgroundColor": "_purple300BackgroundColor_11wj3_175", "purple700BackgroundColor": "_purple700BackgroundColor_11wj3_179", "purple800BackgroundColor": "_purple800BackgroundColor_11wj3_183", "purple900BackgroundColor": "_purple900BackgroundColor_11wj3_187", "whiteBackgroundColor": "_whiteBackgroundColor_11wj3_191", "yellow100BackgroundColor": "_yellow100BackgroundColor_11wj3_195", "yellow200BackgroundColor": "_yellow200BackgroundColor_11wj3_199", "yellow300BackgroundColor": "_yellow300BackgroundColor_11wj3_203", "yellow700BackgroundColor": "_yellow700BackgroundColor_11wj3_207", "yellow800BackgroundColor": "_yellow800BackgroundColor_11wj3_211", "yellow900BackgroundColor": "_yellow900BackgroundColor_11wj3_215" };
|
|
145
|
-
|
|
146
208
|
// src/Box/Box.tsx
|
|
147
209
|
import { forwardRef } from "react";
|
|
148
|
-
import { jsx as
|
|
210
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
149
211
|
var Box_default = forwardRef(function Box(props, ref) {
|
|
150
212
|
var _c;
|
|
151
213
|
const _a = props, { as: BoxElement = "div", children } = _a, boxProps = __objRest(_a, ["as", "children"]);
|
|
@@ -257,7 +319,7 @@ var Box_default = forwardRef(function Box(props, ref) {
|
|
|
257
319
|
"width"
|
|
258
320
|
]);
|
|
259
321
|
const parsedProps = {
|
|
260
|
-
className: (0,
|
|
322
|
+
className: (0, import_classnames3.default)(
|
|
261
323
|
Box_module_default.box,
|
|
262
324
|
alignItems && Box_module_default[`alignItems${alignItems}`],
|
|
263
325
|
smAlignItems && Box_module_default[`alignItems${smAlignItems}Small`],
|
|
@@ -330,11 +392,37 @@ var Box_default = forwardRef(function Box(props, ref) {
|
|
|
330
392
|
}
|
|
331
393
|
return acc;
|
|
332
394
|
}, {});
|
|
333
|
-
return /* @__PURE__ */
|
|
395
|
+
return /* @__PURE__ */ jsx3(BoxElement, __spreadProps(__spreadValues(__spreadValues({}, parsedProps), passthroughProps), { ref, children }));
|
|
334
396
|
});
|
|
335
397
|
|
|
398
|
+
// src/Badge/Badge.tsx
|
|
399
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
400
|
+
var Badge = ({
|
|
401
|
+
text,
|
|
402
|
+
color = "primary700"
|
|
403
|
+
}) => /* @__PURE__ */ jsx4(
|
|
404
|
+
Box_default,
|
|
405
|
+
{
|
|
406
|
+
display: "inlineBlock",
|
|
407
|
+
paddingX: 2,
|
|
408
|
+
paddingY: 1,
|
|
409
|
+
rounding: "full",
|
|
410
|
+
backgroundColor: color,
|
|
411
|
+
children: /* @__PURE__ */ jsx4(
|
|
412
|
+
Typography_default,
|
|
413
|
+
{
|
|
414
|
+
color: color === "yellow700" ? "gray900" : "white",
|
|
415
|
+
size: 100,
|
|
416
|
+
weight: "bold",
|
|
417
|
+
children: text
|
|
418
|
+
}
|
|
419
|
+
)
|
|
420
|
+
}
|
|
421
|
+
);
|
|
422
|
+
var Badge_default = Badge;
|
|
423
|
+
|
|
336
424
|
// src/Button/Button.tsx
|
|
337
|
-
var
|
|
425
|
+
var import_classnames4 = __toESM(require_classnames());
|
|
338
426
|
|
|
339
427
|
// css-module:./colors.module.css#css-module
|
|
340
428
|
var colors_module_default2 = { "inheritColor": "_inheritColor_11wj3_2", "destructive700Color": "_destructive700Color_11wj3_6", "gray700Color": "_gray700Color_11wj3_10", "gray900Color": "_gray900Color_11wj3_14", "primary700Color": "_primary700Color_11wj3_18", "whiteColor": "_whiteColor_11wj3_22", "blackBackgroundColor": "_blackBackgroundColor_11wj3_27", "destructive100BackgroundColor": "_destructive100BackgroundColor_11wj3_31", "destructive200BackgroundColor": "_destructive200BackgroundColor_11wj3_35", "destructive300BackgroundColor": "_destructive300BackgroundColor_11wj3_39", "destructive700BackgroundColor": "_destructive700BackgroundColor_11wj3_43", "destructive800BackgroundColor": "_destructive800BackgroundColor_11wj3_47", "destructive900BackgroundColor": "_destructive900BackgroundColor_11wj3_51", "gray10BackgroundColor": "_gray10BackgroundColor_11wj3_55", "gray30BackgroundColor": "_gray30BackgroundColor_11wj3_59", "gray60BackgroundColor": "_gray60BackgroundColor_11wj3_63", "gray80BackgroundColor": "_gray80BackgroundColor_11wj3_67", "gray100BackgroundColor": "_gray100BackgroundColor_11wj3_71", "gray200BackgroundColor": "_gray200BackgroundColor_11wj3_75", "gray300BackgroundColor": "_gray300BackgroundColor_11wj3_79", "gray700BackgroundColor": "_gray700BackgroundColor_11wj3_83", "gray800BackgroundColor": "_gray800BackgroundColor_11wj3_87", "gray900BackgroundColor": "_gray900BackgroundColor_11wj3_91", "orange100BackgroundColor": "_orange100BackgroundColor_11wj3_95", "orange200BackgroundColor": "_orange200BackgroundColor_11wj3_99", "orange300BackgroundColor": "_orange300BackgroundColor_11wj3_103", "orange700BackgroundColor": "_orange700BackgroundColor_11wj3_107", "orange800BackgroundColor": "_orange800BackgroundColor_11wj3_111", "orange900BackgroundColor": "_orange900BackgroundColor_11wj3_115", "primary100BackgroundColor": "_primary100BackgroundColor_11wj3_119", "primary200BackgroundColor": "_primary200BackgroundColor_11wj3_123", "primary300BackgroundColor": "_primary300BackgroundColor_11wj3_127", "primary700BackgroundColor": "_primary700BackgroundColor_11wj3_131", "primary800BackgroundColor": "_primary800BackgroundColor_11wj3_135", "primary900BackgroundColor": "_primary900BackgroundColor_11wj3_139", "success100BackgroundColor": "_success100BackgroundColor_11wj3_143", "success200BackgroundColor": "_success200BackgroundColor_11wj3_147", "success300BackgroundColor": "_success300BackgroundColor_11wj3_151", "success700BackgroundColor": "_success700BackgroundColor_11wj3_155", "success800BackgroundColor": "_success800BackgroundColor_11wj3_159", "success900BackgroundColor": "_success900BackgroundColor_11wj3_163", "purple100BackgroundColor": "_purple100BackgroundColor_11wj3_167", "purple200BackgroundColor": "_purple200BackgroundColor_11wj3_171", "purple300BackgroundColor": "_purple300BackgroundColor_11wj3_175", "purple700BackgroundColor": "_purple700BackgroundColor_11wj3_179", "purple800BackgroundColor": "_purple800BackgroundColor_11wj3_183", "purple900BackgroundColor": "_purple900BackgroundColor_11wj3_187", "whiteBackgroundColor": "_whiteBackgroundColor_11wj3_191", "yellow100BackgroundColor": "_yellow100BackgroundColor_11wj3_195", "yellow200BackgroundColor": "_yellow200BackgroundColor_11wj3_199", "yellow300BackgroundColor": "_yellow300BackgroundColor_11wj3_203", "yellow700BackgroundColor": "_yellow700BackgroundColor_11wj3_207", "yellow800BackgroundColor": "_yellow800BackgroundColor_11wj3_211", "yellow900BackgroundColor": "_yellow900BackgroundColor_11wj3_215" };
|
|
@@ -383,7 +471,7 @@ import { forwardRef as forwardRef2 } from "react";
|
|
|
383
471
|
var Button_module_default = { "button": "_button_13egy_1", "buttonGap": "_buttonGap_13egy_9", "fullWidth": "_fullWidth_13egy_50", "sm": "_sm_13egy_54", "md": "_md_13egy_61", "lg": "_lg_13egy_68", "icon": "_icon_13egy_75", "smIcon": "_smIcon_13egy_79", "mdIcon": "_mdIcon_13egy_86", "lgIcon": "_lgIcon_13egy_93", "textContainer": "_textContainer_13egy_100", "secondaryBorder": "_secondaryBorder_13egy_105", "secondaryDestructiveBorder": "_secondaryDestructiveBorder_13egy_109", "loading": "_loading_13egy_123", "syntaxButtonLoadingRotate": "_syntaxButtonLoadingRotate_13egy_1", "loadingCircle": "_loadingCircle_13egy_127", "buttonText": "_buttonText_13egy_135", "buttonTextSmall": "_buttonTextSmall_13egy_142", "buttonTextMedium": "_buttonTextMedium_13egy_146", "buttonTextLarge": "_buttonTextLarge_13egy_150" };
|
|
384
472
|
|
|
385
473
|
// src/Button/Button.tsx
|
|
386
|
-
import { jsx as
|
|
474
|
+
import { jsx as jsx5, jsxs } from "react/jsx-runtime";
|
|
387
475
|
var textVariant = {
|
|
388
476
|
// Replace with `Typography` once it lands in `syntax-core`
|
|
389
477
|
["sm"]: Button_module_default.buttonTextSmall,
|
|
@@ -424,7 +512,7 @@ var Button = forwardRef2(
|
|
|
424
512
|
title: tooltip,
|
|
425
513
|
disabled: disabled || loading,
|
|
426
514
|
onClick,
|
|
427
|
-
className: (0,
|
|
515
|
+
className: (0, import_classnames4.default)(
|
|
428
516
|
Button_module_default.button,
|
|
429
517
|
foregroundColor(color),
|
|
430
518
|
backgroundColor(color),
|
|
@@ -437,17 +525,17 @@ var Button = forwardRef2(
|
|
|
437
525
|
}
|
|
438
526
|
),
|
|
439
527
|
children: [
|
|
440
|
-
!loading && StartIcon && /* @__PURE__ */
|
|
441
|
-
(loading && loadingText || !loading && text) && /* @__PURE__ */
|
|
442
|
-
!loading && EndIcon && /* @__PURE__ */
|
|
443
|
-
loading && /* @__PURE__ */
|
|
528
|
+
!loading && StartIcon && /* @__PURE__ */ jsx5(StartIcon, { className: (0, import_classnames4.default)(Button_module_default.icon, iconSize[size]) }),
|
|
529
|
+
(loading && loadingText || !loading && text) && /* @__PURE__ */ jsx5("div", { className: Button_module_default.textContainer, children: /* @__PURE__ */ jsx5("div", { className: (0, import_classnames4.default)(Button_module_default.buttonText, textVariant[size]), children: loading ? loadingText : text }) }),
|
|
530
|
+
!loading && EndIcon && /* @__PURE__ */ jsx5(EndIcon, { className: (0, import_classnames4.default)(Button_module_default.icon, iconSize[size]) }),
|
|
531
|
+
loading && /* @__PURE__ */ jsx5(
|
|
444
532
|
"svg",
|
|
445
533
|
{
|
|
446
|
-
className: (0,
|
|
534
|
+
className: (0, import_classnames4.default)(Button_module_default.loading, foregroundColor(color)),
|
|
447
535
|
viewBox: "22 22 44 44",
|
|
448
536
|
width: loadingIconSize[size],
|
|
449
537
|
height: loadingIconSize[size],
|
|
450
|
-
children: /* @__PURE__ */
|
|
538
|
+
children: /* @__PURE__ */ jsx5(
|
|
451
539
|
"circle",
|
|
452
540
|
{
|
|
453
541
|
className: Button_module_default.loadingCircle,
|
|
@@ -472,8 +560,8 @@ var Button_default = Button;
|
|
|
472
560
|
var ButtonGroup_module_default = { "buttonGroup": "_buttonGroup_1f9x9_1", "horizontal": "_horizontal_1f9x9_5", "vertical": "_vertical_1f9x9_9", "smallGap": "_smallGap_1f9x9_13", "mediumGap": "_mediumGap_1f9x9_17", "largeGap": "_largeGap_1f9x9_21" };
|
|
473
561
|
|
|
474
562
|
// src/ButtonGroup/ButtonGroup.tsx
|
|
475
|
-
var
|
|
476
|
-
import { jsx as
|
|
563
|
+
var import_classnames5 = __toESM(require_classnames());
|
|
564
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
477
565
|
var gap = {
|
|
478
566
|
["sm"]: ButtonGroup_module_default.smallGap,
|
|
479
567
|
["md"]: ButtonGroup_module_default.mediumGap,
|
|
@@ -484,95 +572,33 @@ var ButtonGroup = ({
|
|
|
484
572
|
size = "md",
|
|
485
573
|
children
|
|
486
574
|
}) => {
|
|
487
|
-
const classnames2 = (0,
|
|
575
|
+
const classnames2 = (0, import_classnames5.default)(ButtonGroup_module_default.buttonGroup, gap[size], {
|
|
488
576
|
[ButtonGroup_module_default.horizontal]: orientation === "horizontal",
|
|
489
577
|
[ButtonGroup_module_default.vertical]: orientation === "vertical"
|
|
490
578
|
});
|
|
491
|
-
return /* @__PURE__ */
|
|
579
|
+
return /* @__PURE__ */ jsx6("div", { className: classnames2, children });
|
|
492
580
|
};
|
|
493
581
|
var ButtonGroup_default = ButtonGroup;
|
|
494
582
|
|
|
495
583
|
// src/Card/Card.tsx
|
|
496
|
-
import { jsx as
|
|
584
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
497
585
|
var Card = ({
|
|
498
586
|
children
|
|
499
|
-
}) => /* @__PURE__ */
|
|
587
|
+
}) => /* @__PURE__ */ jsx7(Box_default, { rounding: "xl", padding: 7, smPadding: 9, backgroundColor: "white", children });
|
|
500
588
|
var Card_default = Card;
|
|
501
589
|
|
|
502
590
|
// css-module:./Divider.module.css#css-module
|
|
503
591
|
var Divider_module_default = { "divider": "_divider_1ddgq_1" };
|
|
504
592
|
|
|
505
593
|
// src/Divider/Divider.tsx
|
|
506
|
-
import { jsx as
|
|
594
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
507
595
|
function Divider() {
|
|
508
|
-
return /* @__PURE__ */
|
|
596
|
+
return /* @__PURE__ */ jsx8("hr", { className: Divider_module_default.divider });
|
|
509
597
|
}
|
|
510
598
|
Divider.displayName = "Divider";
|
|
511
599
|
|
|
512
|
-
// src/Typography/Typography.tsx
|
|
513
|
-
var import_classnames5 = __toESM(require_classnames());
|
|
514
|
-
|
|
515
|
-
// css-module:./Typography.module.css#css-module
|
|
516
|
-
var Typography_module_default = { "typography": "_typography_1hx29_1", "size100": "_size100_1hx29_8", "size200": "_size200_1hx29_12", "size300": "_size300_1hx29_16", "size500": "_size500_1hx29_20", "size600": "_size600_1hx29_24", "size700": "_size700_1hx29_28", "size800": "_size800_1hx29_32", "center": "_center_1hx29_37", "forceLeft": "_forceLeft_1hx29_41", "forceRight": "_forceRight_1hx29_45", "start": "_start_1hx29_49", "end": "_end_1hx29_53", "bold": "_bold_1hx29_58", "regular": "_regular_1hx29_62", "semiBold": "_semiBold_1hx29_66", "heavy": "_heavy_1hx29_70", "underline": "_underline_1hx29_74", "inline": "_inline_1hx29_78", "uppercase": "_uppercase_1hx29_82", "lineClamp": "_lineClamp_1hx29_86" };
|
|
517
|
-
|
|
518
|
-
// src/Typography/Typography.tsx
|
|
519
|
-
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
520
|
-
function textColor(color) {
|
|
521
|
-
switch (color) {
|
|
522
|
-
case "gray700":
|
|
523
|
-
return colors_module_default.gray700Color;
|
|
524
|
-
case "white":
|
|
525
|
-
return colors_module_default.whiteColor;
|
|
526
|
-
case "inherit":
|
|
527
|
-
return colors_module_default.inheritColor;
|
|
528
|
-
case "primary":
|
|
529
|
-
return colors_module_default.primary700Color;
|
|
530
|
-
case "destructive-primary":
|
|
531
|
-
return colors_module_default.destructive700Color;
|
|
532
|
-
default:
|
|
533
|
-
return colors_module_default.gray900Color;
|
|
534
|
-
}
|
|
535
|
-
}
|
|
536
|
-
var Typography = ({
|
|
537
|
-
align = "start",
|
|
538
|
-
as = "div",
|
|
539
|
-
children,
|
|
540
|
-
color = "gray900",
|
|
541
|
-
inline = false,
|
|
542
|
-
lineClamp = void 0,
|
|
543
|
-
size = 200,
|
|
544
|
-
tooltip,
|
|
545
|
-
transform = "none",
|
|
546
|
-
underline = false,
|
|
547
|
-
weight = "regular"
|
|
548
|
-
}) => {
|
|
549
|
-
const Tag = as;
|
|
550
|
-
return /* @__PURE__ */ jsx7(
|
|
551
|
-
Tag,
|
|
552
|
-
{
|
|
553
|
-
className: (0, import_classnames5.default)(
|
|
554
|
-
Typography_module_default.typography,
|
|
555
|
-
Typography_module_default[align],
|
|
556
|
-
Typography_module_default[weight],
|
|
557
|
-
textColor(color),
|
|
558
|
-
inline && Typography_module_default.inline,
|
|
559
|
-
Typography_module_default[`size${size}`],
|
|
560
|
-
transform === "uppercase" && Typography_module_default.uppercase,
|
|
561
|
-
underline && Typography_module_default.underline,
|
|
562
|
-
lineClamp != null && Typography_module_default.lineClamp
|
|
563
|
-
),
|
|
564
|
-
style: {
|
|
565
|
-
WebkitLineClamp: lineClamp
|
|
566
|
-
},
|
|
567
|
-
title: tooltip,
|
|
568
|
-
children
|
|
569
|
-
}
|
|
570
|
-
);
|
|
571
|
-
};
|
|
572
|
-
var Typography_default = Typography;
|
|
573
|
-
|
|
574
600
|
// src/Heading/Heading.tsx
|
|
575
|
-
import { jsx as
|
|
601
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
576
602
|
var Heading = ({
|
|
577
603
|
align = "start",
|
|
578
604
|
as = "h1",
|
|
@@ -581,7 +607,7 @@ var Heading = ({
|
|
|
581
607
|
size = 500
|
|
582
608
|
}) => {
|
|
583
609
|
const weight = [700, 800].includes(size) ? "heavy" : "bold";
|
|
584
|
-
return /* @__PURE__ */
|
|
610
|
+
return /* @__PURE__ */ jsx9(Typography_default, { align, as, color, size, weight, children });
|
|
585
611
|
};
|
|
586
612
|
var Heading_default = Heading;
|
|
587
613
|
|
|
@@ -593,7 +619,7 @@ import { forwardRef as forwardRef3 } from "react";
|
|
|
593
619
|
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" };
|
|
594
620
|
|
|
595
621
|
// src/IconButton/IconButton.tsx
|
|
596
|
-
import { jsx as
|
|
622
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
597
623
|
var iconSize2 = {
|
|
598
624
|
["sm"]: IconButton_module_default.smIcon,
|
|
599
625
|
["md"]: IconButton_module_default.mdIcon,
|
|
@@ -609,7 +635,7 @@ var IconButton = forwardRef3(
|
|
|
609
635
|
tooltip,
|
|
610
636
|
onClick
|
|
611
637
|
}, ref) => {
|
|
612
|
-
return /* @__PURE__ */
|
|
638
|
+
return /* @__PURE__ */ jsx10(
|
|
613
639
|
"button",
|
|
614
640
|
{
|
|
615
641
|
"aria-label": accessibilityLabel,
|
|
@@ -624,7 +650,7 @@ var IconButton = forwardRef3(
|
|
|
624
650
|
IconButton_module_default[size]
|
|
625
651
|
),
|
|
626
652
|
ref,
|
|
627
|
-
children: /* @__PURE__ */
|
|
653
|
+
children: /* @__PURE__ */ jsx10(Icon, { className: iconSize2[size] })
|
|
628
654
|
}
|
|
629
655
|
);
|
|
630
656
|
}
|
|
@@ -733,7 +759,7 @@ var Checkbox_module_default = { "mainContainer": "_mainContainer_1jq7b_1", "chec
|
|
|
733
759
|
var Focus_module_default = { "accessibilityOutlineFocus": "_accessibilityOutlineFocus_1h8bq_1" };
|
|
734
760
|
|
|
735
761
|
// src/Checkbox/Checkbox.tsx
|
|
736
|
-
import { jsx as
|
|
762
|
+
import { jsx as jsx11, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
737
763
|
var typographySize = {
|
|
738
764
|
sm: 100,
|
|
739
765
|
md: 200
|
|
@@ -765,7 +791,7 @@ var Checkbox = ({
|
|
|
765
791
|
});
|
|
766
792
|
return /* @__PURE__ */ jsxs2("label", { className: (0, import_classnames7.default)(Checkbox_module_default.mainContainer), children: [
|
|
767
793
|
/* @__PURE__ */ jsxs2("div", { className: Checkbox_module_default.checkboxContainer, children: [
|
|
768
|
-
/* @__PURE__ */
|
|
794
|
+
/* @__PURE__ */ jsx11(
|
|
769
795
|
"input",
|
|
770
796
|
{
|
|
771
797
|
type: "checkbox",
|
|
@@ -781,7 +807,7 @@ var Checkbox = ({
|
|
|
781
807
|
}
|
|
782
808
|
}
|
|
783
809
|
),
|
|
784
|
-
/* @__PURE__ */
|
|
810
|
+
/* @__PURE__ */ jsx11("div", { className: checked ? checkedStyling : uncheckedStyling, children: checked && /* @__PURE__ */ jsx11("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", width: iconWidth[size], children: /* @__PURE__ */ jsx11(
|
|
785
811
|
"path",
|
|
786
812
|
{
|
|
787
813
|
fill: "#fff",
|
|
@@ -789,7 +815,7 @@ var Checkbox = ({
|
|
|
789
815
|
}
|
|
790
816
|
) }) })
|
|
791
817
|
] }),
|
|
792
|
-
/* @__PURE__ */
|
|
818
|
+
/* @__PURE__ */ jsx11(
|
|
793
819
|
Typography_default,
|
|
794
820
|
{
|
|
795
821
|
size: typographySize[size],
|
|
@@ -805,10 +831,10 @@ var Checkbox_default = Checkbox;
|
|
|
805
831
|
var MiniActionCard_module_default = { "miniActionCard": "_miniActionCard_qebkn_1", "card": "_card_qebkn_9" };
|
|
806
832
|
|
|
807
833
|
// src/MiniActionCard/MiniActionCard.tsx
|
|
808
|
-
import { jsx as
|
|
834
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
809
835
|
var MiniActionCard = ({
|
|
810
836
|
children
|
|
811
|
-
}) => /* @__PURE__ */
|
|
837
|
+
}) => /* @__PURE__ */ jsx12("div", { className: MiniActionCard_module_default.miniActionCard, children });
|
|
812
838
|
var MiniActionCard_default = MiniActionCard;
|
|
813
839
|
|
|
814
840
|
// src/RadioButton/RadioButton.tsx
|
|
@@ -819,7 +845,7 @@ import { useState as useState3 } from "react";
|
|
|
819
845
|
var RadioButton_module_default = { "radioBaseContainer": "_radioBaseContainer_ne98c_1", "smBase": "_smBase_ne98c_9", "mdBase": "_mdBase_ne98c_14", "radioStyleOverride": "_radioStyleOverride_ne98c_19", "smOverride": "_smOverride_ne98c_24", "mdOverride": "_mdOverride_ne98c_29", "background": "_background_ne98c_34", "sm": "_sm_ne98c_9", "md": "_md_ne98c_14", "neutralBorder": "_neutralBorder_ne98c_51", "smCheckedBorder": "_smCheckedBorder_ne98c_55", "mdCheckedBorder": "_mdCheckedBorder_ne98c_59", "errorBorderColor": "_errorBorderColor_ne98c_63", "borderColor": "_borderColor_ne98c_67" };
|
|
820
846
|
|
|
821
847
|
// src/RadioButton/RadioButton.tsx
|
|
822
|
-
import { jsx as
|
|
848
|
+
import { jsx as jsx13, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
823
849
|
var RadioButton = ({
|
|
824
850
|
checked = false,
|
|
825
851
|
disabled = false,
|
|
@@ -845,7 +871,7 @@ var RadioButton = ({
|
|
|
845
871
|
[RadioButton_module_default.mdBase]: size === "md"
|
|
846
872
|
}),
|
|
847
873
|
children: [
|
|
848
|
-
/* @__PURE__ */
|
|
874
|
+
/* @__PURE__ */ jsx13(
|
|
849
875
|
"input",
|
|
850
876
|
{
|
|
851
877
|
type: "radio",
|
|
@@ -866,7 +892,7 @@ var RadioButton = ({
|
|
|
866
892
|
}
|
|
867
893
|
}
|
|
868
894
|
),
|
|
869
|
-
checked ? /* @__PURE__ */
|
|
895
|
+
checked ? /* @__PURE__ */ jsx13(
|
|
870
896
|
"div",
|
|
871
897
|
{
|
|
872
898
|
className: (0, import_classnames8.default)(sharedStyles, {
|
|
@@ -874,8 +900,8 @@ var RadioButton = ({
|
|
|
874
900
|
[RadioButton_module_default.smCheckedBorder]: size === "sm"
|
|
875
901
|
})
|
|
876
902
|
}
|
|
877
|
-
) : /* @__PURE__ */
|
|
878
|
-
/* @__PURE__ */
|
|
903
|
+
) : /* @__PURE__ */ jsx13("div", { className: (0, import_classnames8.default)(sharedStyles, RadioButton_module_default.neutralBorder) }),
|
|
904
|
+
/* @__PURE__ */ jsx13(
|
|
879
905
|
Typography_default,
|
|
880
906
|
{
|
|
881
907
|
size: size === "md" ? 200 : 100,
|
|
@@ -904,12 +930,12 @@ var ColorBaseGray800 = "#353535";
|
|
|
904
930
|
var SelectList_module_default = { "selectContainer": "_selectContainer_1e7f9_1", "opacityOverlay": "_opacityOverlay_1e7f9_7", "outerTextContainer": "_outerTextContainer_1e7f9_11", "selectWrapper": "_selectWrapper_1e7f9_16", "selectBox": "_selectBox_1e7f9_21", "seletBoxMouseFocusStyling": "_seletBoxMouseFocusStyling_1e7f9_35", "unselected": "_unselected_1e7f9_40", "selected": "_selected_1e7f9_44", "arrowIcon": "_arrowIcon_1e7f9_48", "sm": "_sm_1e7f9_62", "md": "_md_1e7f9_67", "lg": "_lg_1e7f9_72", "selectError": "_selectError_1e7f9_77" };
|
|
905
931
|
|
|
906
932
|
// src/SelectList/SelectOption.tsx
|
|
907
|
-
import { jsx as
|
|
933
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
908
934
|
var SelectOption = ({
|
|
909
935
|
value,
|
|
910
936
|
label,
|
|
911
937
|
disabled = false
|
|
912
|
-
}) => /* @__PURE__ */
|
|
938
|
+
}) => /* @__PURE__ */ jsx14(
|
|
913
939
|
"option",
|
|
914
940
|
{
|
|
915
941
|
"data-testid": `syntax-select-${value}`,
|
|
@@ -921,7 +947,7 @@ var SelectOption = ({
|
|
|
921
947
|
var SelectOption_default = SelectOption;
|
|
922
948
|
|
|
923
949
|
// src/SelectList/SelectList.tsx
|
|
924
|
-
import { jsx as
|
|
950
|
+
import { jsx as jsx15, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
925
951
|
var iconSize3 = {
|
|
926
952
|
sm: 20,
|
|
927
953
|
md: 24,
|
|
@@ -948,7 +974,7 @@ var SelectList = ({
|
|
|
948
974
|
[SelectList_module_default.opacityOverlay]: disabled
|
|
949
975
|
}),
|
|
950
976
|
children: [
|
|
951
|
-
/* @__PURE__ */
|
|
977
|
+
/* @__PURE__ */ jsx15("label", { htmlFor: id, className: SelectList_module_default.outerTextContainer, children: /* @__PURE__ */ jsx15(Typography_default, { size: 100, color: "gray700", children: label }) }),
|
|
952
978
|
/* @__PURE__ */ jsxs4("div", { className: SelectList_module_default.selectWrapper, children: [
|
|
953
979
|
/* @__PURE__ */ jsxs4(
|
|
954
980
|
"select",
|
|
@@ -970,19 +996,19 @@ var SelectList = ({
|
|
|
970
996
|
onFocus: () => setIsFocused(true),
|
|
971
997
|
onBlur: () => setIsFocused(false),
|
|
972
998
|
children: [
|
|
973
|
-
placeholderText && /* @__PURE__ */
|
|
999
|
+
placeholderText && /* @__PURE__ */ jsx15("option", { disabled: true, value: placeholderText, children: placeholderText }),
|
|
974
1000
|
children
|
|
975
1001
|
]
|
|
976
1002
|
}
|
|
977
1003
|
),
|
|
978
|
-
/* @__PURE__ */
|
|
1004
|
+
/* @__PURE__ */ jsx15("div", { className: SelectList_module_default.arrowIcon, children: /* @__PURE__ */ jsx15(
|
|
979
1005
|
"svg",
|
|
980
1006
|
{
|
|
981
1007
|
focusable: "false",
|
|
982
1008
|
"aria-hidden": "true",
|
|
983
1009
|
viewBox: "0 0 24 24",
|
|
984
1010
|
width: iconSize3[size],
|
|
985
|
-
children: /* @__PURE__ */
|
|
1011
|
+
children: /* @__PURE__ */ jsx15(
|
|
986
1012
|
"path",
|
|
987
1013
|
{
|
|
988
1014
|
fill: errorText ? ColorBaseDestructive700 : ColorBaseGray800,
|
|
@@ -992,7 +1018,7 @@ var SelectList = ({
|
|
|
992
1018
|
}
|
|
993
1019
|
) })
|
|
994
1020
|
] }),
|
|
995
|
-
/* @__PURE__ */
|
|
1021
|
+
/* @__PURE__ */ jsx15("div", { className: SelectList_module_default.outerTextContainer, children: /* @__PURE__ */ jsx15(
|
|
996
1022
|
Typography_default,
|
|
997
1023
|
{
|
|
998
1024
|
size: 100,
|
|
@@ -1008,6 +1034,7 @@ var SelectList_default = SelectList;
|
|
|
1008
1034
|
SelectList.Option = SelectOption_default;
|
|
1009
1035
|
export {
|
|
1010
1036
|
Avatar_default as Avatar,
|
|
1037
|
+
Badge_default as Badge,
|
|
1011
1038
|
Box_default as Box,
|
|
1012
1039
|
Button_default as Button,
|
|
1013
1040
|
ButtonGroup_default as ButtonGroup,
|