@capillarytech/blaze-ui 1.2.7 → 1.2.8-beta.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/README.md +208 -0
- package/dist/CapAlert/index.js +1 -1
- package/dist/CapAlert/index.js.map +1 -1
- package/dist/CapButton/index.js +1 -1
- package/dist/CapButton/index.js.map +1 -1
- package/dist/CapCheckbox/index.js +9 -5
- package/dist/CapCheckbox/index.js.map +1 -1
- package/dist/CapDivider/CapDivider.d.ts +0 -1
- package/dist/CapDivider/CapDivider.d.ts.map +1 -1
- package/dist/CapDivider/index.js +3 -5
- package/dist/CapDivider/index.js.map +1 -1
- package/dist/CapDropdown/index.js +1 -1
- package/dist/CapDropdown/index.js.map +1 -1
- package/dist/CapInput/index.js +2 -5
- package/dist/CapInput/index.js.map +1 -1
- package/dist/CapLabel/CapLabel.d.ts +2 -2
- package/dist/CapLabel/CapLabel.d.ts.map +1 -1
- package/dist/CapLabel/index.js +8 -4
- package/dist/CapLabel/index.js.map +1 -1
- package/dist/CapMenu/CapMenu.d.ts +1 -1
- package/dist/CapMenu/CapMenu.d.ts.map +1 -1
- package/dist/CapRadio/index.js +9 -5
- package/dist/CapRadio/index.js.map +1 -1
- package/dist/CapSwitch/index.js +2 -4
- package/dist/CapSwitch/index.js.map +1 -1
- package/dist/CapTab/index.js +1 -1
- package/dist/CapTab/index.js.map +1 -1
- package/dist/CapTable/index.js +1 -1
- package/dist/CapTable/index.js.map +1 -1
- package/dist/CapTooltip/CapTooltip.d.ts.map +1 -1
- package/dist/CapTooltip/index.js +2 -6
- package/dist/CapTooltip/index.js.map +1 -1
- package/dist/CapTooltipWithInfo/index.js +2 -6
- package/dist/CapTooltipWithInfo/index.js.map +1 -1
- package/dist/CapUnifiedSelect/CapUnifiedSelect.d.ts +1 -1
- package/dist/CapUnifiedSelect/CapUnifiedSelect.d.ts.map +1 -1
- package/dist/CapUnifiedSelect/CustomDropdown.d.ts.map +1 -1
- package/dist/CapUnifiedSelect/index.js +33187 -39857
- package/dist/CapUnifiedSelect/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +47412 -53756
- package/dist/index.js.map +1 -1
- package/dist/utils/getCapThemeConfig.d.ts +23 -0
- package/dist/utils/getCapThemeConfig.d.ts.map +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +523 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +4 -7
- package/dist/CapTestSelect/CapTestSelect.d.ts +0 -24
- package/dist/CapTestSelect/CapTestSelect.d.ts.map +0 -1
- package/dist/CapTestSelect/CapTestSelect.test.d.ts +0 -2
- package/dist/CapTestSelect/CapTestSelect.test.d.ts.map +0 -1
- package/dist/CapTestSelect/index.d.ts +0 -3
- package/dist/CapTestSelect/index.d.ts.map +0 -1
- package/dist/CapTestSelect/index.js +0 -130
- package/dist/CapTestSelect/index.js.map +0 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ThemeConfig } from 'antd-v5';
|
|
2
|
+
/**
|
|
3
|
+
* Get Capillary theme configuration for Ant Design v5+
|
|
4
|
+
* This function maps Capillary design tokens to Ant Design tokens,
|
|
5
|
+
* eliminating the need for SCSS overrides.
|
|
6
|
+
*
|
|
7
|
+
* @param options - Optional theme configuration overrides
|
|
8
|
+
* @returns Ant Design ThemeConfig object
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* import { ConfigProvider } from 'antd-v5';
|
|
13
|
+
* import { getCapThemeConfig } from '@capillarytech/blaze-ui/utils';
|
|
14
|
+
*
|
|
15
|
+
* const App = () => (
|
|
16
|
+
* <ConfigProvider theme={getCapThemeConfig()}>
|
|
17
|
+
* <YourApp />
|
|
18
|
+
* </ConfigProvider>
|
|
19
|
+
* );
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function getCapThemeConfig(options?: Partial<ThemeConfig>): ThemeConfig;
|
|
23
|
+
//# sourceMappingURL=getCapThemeConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCapThemeConfig.d.ts","sourceRoot":"","sources":["../../components/utils/getCapThemeConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAwCtC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,GAAG,WAAW,CAwP7E"}
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../components/utils/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,UAAU,CAAC;AAElB,cAAc,SAAS,CAAC;AACxB,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../components/utils/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,UAAU,CAAC;AAElB,cAAc,SAAS,CAAC;AACxB,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,UAAU;IAC/C,4DAA4D;IAC5D,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,WAAW,GAAI,SAAQ,aAAkB,KAAG,IAWxD,CAAC"}
|
package/dist/utils/index.js
CHANGED
|
@@ -238,6 +238,321 @@ module.exports = function (item) {
|
|
|
238
238
|
|
|
239
239
|
/***/ }),
|
|
240
240
|
|
|
241
|
+
/***/ 1563:
|
|
242
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
exports.__esModule = true;
|
|
247
|
+
exports.getCapThemeConfig = getCapThemeConfig;
|
|
248
|
+
var styledVars = _interopRequireWildcard(__webpack_require__(9941));
|
|
249
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
250
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
251
|
+
/**
|
|
252
|
+
* Converts rem values to pixels (number).
|
|
253
|
+
* Base font size is 14px, so 1rem = 14px.
|
|
254
|
+
*
|
|
255
|
+
* @param remValue - Rem value as string (e.g., '1rem', '0.857rem') or number
|
|
256
|
+
* @returns Number in pixels
|
|
257
|
+
*
|
|
258
|
+
* @example
|
|
259
|
+
* remToPx('1rem') // returns 14
|
|
260
|
+
* remToPx('0.857rem') // returns 12
|
|
261
|
+
* remToPx(14) // returns 14 (if already a number)
|
|
262
|
+
*/
|
|
263
|
+
function remToPx(remValue, fallback) {
|
|
264
|
+
if (fallback === void 0) {
|
|
265
|
+
fallback = '1rem';
|
|
266
|
+
}
|
|
267
|
+
if (typeof remValue === 'number') {
|
|
268
|
+
return remValue;
|
|
269
|
+
}
|
|
270
|
+
const value = remValue || fallback;
|
|
271
|
+
const remMatch = typeof value === 'string' ? value.match(/^([\d.]+)rem$/) : null;
|
|
272
|
+
if (remMatch) {
|
|
273
|
+
const rem = parseFloat(remMatch[1]);
|
|
274
|
+
return rem * 14; // Base font size is 14px
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
// If it's already a number string, parse it
|
|
278
|
+
const numMatch = typeof value === 'string' ? value.match(/^([\d.]+)$/) : null;
|
|
279
|
+
if (numMatch) {
|
|
280
|
+
return parseFloat(numMatch[1]);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
// Default fallback: parse the fallback value
|
|
284
|
+
const fallbackMatch = fallback.match(/^([\d.]+)rem$/);
|
|
285
|
+
return fallbackMatch ? parseFloat(fallbackMatch[1]) * 14 : 14;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* Get Capillary theme configuration for Ant Design v5+
|
|
290
|
+
* This function maps Capillary design tokens to Ant Design tokens,
|
|
291
|
+
* eliminating the need for SCSS overrides.
|
|
292
|
+
*
|
|
293
|
+
* @param options - Optional theme configuration overrides
|
|
294
|
+
* @returns Ant Design ThemeConfig object
|
|
295
|
+
*
|
|
296
|
+
* @example
|
|
297
|
+
* ```tsx
|
|
298
|
+
* import { ConfigProvider } from 'antd-v5';
|
|
299
|
+
* import { getCapThemeConfig } from '@capillarytech/blaze-ui/utils';
|
|
300
|
+
*
|
|
301
|
+
* const App = () => (
|
|
302
|
+
* <ConfigProvider theme={getCapThemeConfig()}>
|
|
303
|
+
* <YourApp />
|
|
304
|
+
* </ConfigProvider>
|
|
305
|
+
* );
|
|
306
|
+
* ```
|
|
307
|
+
*/
|
|
308
|
+
function getCapThemeConfig(options) {
|
|
309
|
+
var _styledVars$CAP_PRIMA, _styledVars$CAP_PRIMA2, _styledVars$CAP_PRIMA3, _styledVars$CAP_PRIMA4, _styledVars$CAP_PRIMA5, _styledVars$CAP_PRIMA6, _styledVars$CAP_PRIMA7, _styledVars$CAP_PRIMA8, _styledVars$CAP_PRIMA9, _styledVars$CAP_PRIMA0, _styledVars$CAP_PRIMA1, _styledVars$CAP_PRIMA10, _styledVars$CAP_PRIMA11;
|
|
310
|
+
const baseTheme = {
|
|
311
|
+
token: {
|
|
312
|
+
// Primary colors
|
|
313
|
+
colorPrimary: ((_styledVars$CAP_PRIMA = styledVars.CAP_PRIMARY) == null ? void 0 : _styledVars$CAP_PRIMA.base) || '#47af46',
|
|
314
|
+
colorPrimaryHover: ((_styledVars$CAP_PRIMA2 = styledVars.CAP_PRIMARY) == null ? void 0 : _styledVars$CAP_PRIMA2.hover) || '#1f9a1d',
|
|
315
|
+
colorPrimaryActive: ((_styledVars$CAP_PRIMA3 = styledVars.CAP_PRIMARY) == null ? void 0 : _styledVars$CAP_PRIMA3.hover) || '#1f9a1d',
|
|
316
|
+
// Success colors
|
|
317
|
+
colorSuccess: styledVars.CAP_COLOR_06 || '#42B040',
|
|
318
|
+
colorSuccessBg: styledVars.CAP_COLOR_01 || '#dbefda',
|
|
319
|
+
// Alert success background
|
|
320
|
+
colorSuccessBgHover: styledVars.CAP_COLOR_14 || '#9BC79A',
|
|
321
|
+
colorSuccessBorder: styledVars.CAP_COLOR_06 || '#42B040',
|
|
322
|
+
// Warning colors
|
|
323
|
+
colorWarning: styledVars.CAP_COLOR_10 || '#f79600',
|
|
324
|
+
colorWarningBg: styledVars.CAP_COLOR_02 || '#fee5d3',
|
|
325
|
+
// Alert warning background
|
|
326
|
+
colorWarningBgHover: styledVars.CAP_COLOR_15 || '#F6BA8E',
|
|
327
|
+
colorWarningBorder: styledVars.CAP_COLOR_10 || '#f79600',
|
|
328
|
+
// Error colors
|
|
329
|
+
colorError: styledVars.CAP_COLOR_03 || '#e83135',
|
|
330
|
+
colorErrorBg: styledVars.CAP_COLOR_05 || '#fbd3d8',
|
|
331
|
+
// Alert error background
|
|
332
|
+
colorErrorBgHover: '#f5a5ab',
|
|
333
|
+
colorErrorBorder: styledVars.CAP_COLOR_03 || '#e83135',
|
|
334
|
+
// Info colors
|
|
335
|
+
colorInfo: styledVars.CAP_COLOR_11 || '#2388de',
|
|
336
|
+
colorInfoBg: styledVars.CAP_COLOR_04 || '#fff4d6',
|
|
337
|
+
// Alert info background
|
|
338
|
+
colorInfoBgHover: styledVars.CAP_COLOR_26 || '#FFE9AD',
|
|
339
|
+
colorInfoBorder: styledVars.CAP_COLOR_11 || '#2388de',
|
|
340
|
+
// Text colors
|
|
341
|
+
colorText: styledVars.FONT_COLOR_01 || '#091e42',
|
|
342
|
+
colorTextSecondary: styledVars.FONT_COLOR_02 || '#5e6c84',
|
|
343
|
+
colorTextTertiary: styledVars.FONT_COLOR_03 || '#97a0af',
|
|
344
|
+
colorTextQuaternary: styledVars.FONT_COLOR_04 || '#b3bac5',
|
|
345
|
+
// Background colors
|
|
346
|
+
colorBgContainer: styledVars.CAP_WHITE || '#ffffff',
|
|
347
|
+
colorBgElevated: styledVars.CAP_G10 || '#fafbfc',
|
|
348
|
+
colorBgLayout: styledVars.CAP_G09 || '#f4f5f7',
|
|
349
|
+
colorBgSpotlight: styledVars.CAP_G08 || '#ebecf0',
|
|
350
|
+
// Border colors
|
|
351
|
+
colorBorder: styledVars.CAP_G07 || '#dfe2e7',
|
|
352
|
+
colorBorderSecondary: styledVars.CAP_G08 || '#ebecf0',
|
|
353
|
+
// Font
|
|
354
|
+
fontFamily: styledVars.FONT_FAMILY || '"Roboto", sans-serif',
|
|
355
|
+
fontSize: remToPx(styledVars.FONT_SIZE_M, '1rem'),
|
|
356
|
+
// 14px
|
|
357
|
+
fontSizeSM: remToPx(styledVars.FONT_SIZE_S, '0.857rem'),
|
|
358
|
+
// 12px
|
|
359
|
+
fontSizeLG: remToPx(styledVars.FONT_SIZE_L, '1.143rem'),
|
|
360
|
+
// 16px
|
|
361
|
+
fontSizeXL: remToPx(styledVars.FONT_SIZE_VL, '1.714rem'),
|
|
362
|
+
// 24px
|
|
363
|
+
|
|
364
|
+
// Border radius
|
|
365
|
+
borderRadius: remToPx(styledVars.RADIUS_08, '0.571rem'),
|
|
366
|
+
// 8px
|
|
367
|
+
borderRadiusSM: remToPx(styledVars.RADIUS_04, '0.286rem'),
|
|
368
|
+
// 4px
|
|
369
|
+
borderRadiusLG: remToPx(styledVars.RADIUS_08, '0.571rem'),
|
|
370
|
+
// 8px
|
|
371
|
+
|
|
372
|
+
// Spacing
|
|
373
|
+
padding: remToPx(styledVars.SPACING_12, '0.857rem'),
|
|
374
|
+
// 12px
|
|
375
|
+
paddingSM: remToPx(styledVars.SPACING_08, '0.571rem'),
|
|
376
|
+
// 8px
|
|
377
|
+
paddingLG: remToPx(styledVars.SPACING_16, '1.143rem'),
|
|
378
|
+
// 16px
|
|
379
|
+
paddingXL: remToPx(styledVars.SPACING_24, '1.714rem'),
|
|
380
|
+
// 24px
|
|
381
|
+
|
|
382
|
+
// Line height
|
|
383
|
+
lineHeight: styledVars.NORMAL_LINE_HEIGHT === 'normal' ? 1.5 : remToPx(styledVars.NORMAL_LINE_HEIGHT, '1.5')
|
|
384
|
+
},
|
|
385
|
+
components: {
|
|
386
|
+
// Alert component tokens
|
|
387
|
+
Alert: {
|
|
388
|
+
fontSize: remToPx(styledVars.FONT_SIZE_S, '0.857rem'),
|
|
389
|
+
// 12px
|
|
390
|
+
borderRadius: 0,
|
|
391
|
+
// No border radius as per current design
|
|
392
|
+
// Success alert
|
|
393
|
+
colorSuccess: styledVars.CAP_COLOR_06 || '#42B040',
|
|
394
|
+
colorSuccessBg: styledVars.CAP_COLOR_01 || '#dbefda',
|
|
395
|
+
colorSuccessBorder: 'transparent',
|
|
396
|
+
// Info alert
|
|
397
|
+
colorInfo: styledVars.CAP_COLOR_11 || '#2388de',
|
|
398
|
+
colorInfoBg: styledVars.CAP_COLOR_04 || '#fff4d6',
|
|
399
|
+
colorInfoBorder: 'transparent',
|
|
400
|
+
// Warning alert
|
|
401
|
+
colorWarning: styledVars.CAP_COLOR_10 || '#f79600',
|
|
402
|
+
colorWarningBg: styledVars.CAP_COLOR_02 || '#fee5d3',
|
|
403
|
+
colorWarningBorder: 'transparent',
|
|
404
|
+
// Error alert
|
|
405
|
+
colorError: styledVars.CAP_COLOR_03 || '#e83135',
|
|
406
|
+
colorErrorBg: styledVars.CAP_COLOR_05 || '#fbd3d8',
|
|
407
|
+
colorErrorBorder: 'transparent'
|
|
408
|
+
},
|
|
409
|
+
// Button component tokens
|
|
410
|
+
Button: {
|
|
411
|
+
fontWeight: 500,
|
|
412
|
+
// Medium weight
|
|
413
|
+
fontSize: remToPx(styledVars.FONT_SIZE_M, '1rem'),
|
|
414
|
+
// 14px
|
|
415
|
+
paddingInline: remToPx(styledVars.SPACING_24, '1.714rem'),
|
|
416
|
+
// 24px
|
|
417
|
+
paddingBlock: 0,
|
|
418
|
+
controlHeight: remToPx(styledVars.BUTTON_HEIGHT, '2.857rem'),
|
|
419
|
+
// 40px
|
|
420
|
+
borderRadius: remToPx(styledVars.RADIUS_08, '0.571rem'),
|
|
421
|
+
// 8px
|
|
422
|
+
// Primary button
|
|
423
|
+
colorPrimary: ((_styledVars$CAP_PRIMA4 = styledVars.CAP_PRIMARY) == null ? void 0 : _styledVars$CAP_PRIMA4.base) || '#47af46',
|
|
424
|
+
colorPrimaryHover: ((_styledVars$CAP_PRIMA5 = styledVars.CAP_PRIMARY) == null ? void 0 : _styledVars$CAP_PRIMA5.hover) || '#1f9a1d',
|
|
425
|
+
colorPrimaryActive: ((_styledVars$CAP_PRIMA6 = styledVars.CAP_PRIMARY) == null ? void 0 : _styledVars$CAP_PRIMA6.hover) || '#1f9a1d',
|
|
426
|
+
// Disabled state
|
|
427
|
+
colorTextDisabled: styledVars.CAP_WHITE || '#ffffff',
|
|
428
|
+
colorBgContainerDisabled: ((_styledVars$CAP_PRIMA7 = styledVars.CAP_PRIMARY) == null ? void 0 : _styledVars$CAP_PRIMA7.disabled) || '#a1d8a0',
|
|
429
|
+
// Default button
|
|
430
|
+
defaultBg: styledVars.CAP_G10 || '#fafbfc',
|
|
431
|
+
defaultColor: styledVars.FONT_COLOR_02 || '#5e6c84',
|
|
432
|
+
defaultBorderColor: styledVars.CAP_G06 || '#b3bac5',
|
|
433
|
+
defaultHoverBg: styledVars.CAP_G10 || '#fafbfc',
|
|
434
|
+
defaultHoverColor: styledVars.FONT_COLOR_01 || '#091e42',
|
|
435
|
+
defaultHoverBorderColor: styledVars.CAP_G06 || '#b3bac5',
|
|
436
|
+
defaultActiveBg: styledVars.CAP_G10 || '#fafbfc',
|
|
437
|
+
defaultActiveColor: styledVars.FONT_COLOR_01 || '#091e42',
|
|
438
|
+
defaultActiveBorderColor: styledVars.CAP_G06 || '#b3bac5',
|
|
439
|
+
defaultBgDisabled: styledVars.CAP_G09 || '#f4f5f7'
|
|
440
|
+
},
|
|
441
|
+
// Form component tokens
|
|
442
|
+
Form: {
|
|
443
|
+
labelFontSize: remToPx(styledVars.FONT_SIZE_M, '1rem'),
|
|
444
|
+
labelColor: styledVars.FONT_COLOR_01 || '#091e42',
|
|
445
|
+
itemMarginBottom: remToPx(styledVars.SPACING_24, '1.714rem') // 24px
|
|
446
|
+
},
|
|
447
|
+
// Input component tokens
|
|
448
|
+
Input: {
|
|
449
|
+
controlHeight: remToPx(styledVars.INPUT_HEIGHT, '2.286rem'),
|
|
450
|
+
// 32px
|
|
451
|
+
fontSize: remToPx(styledVars.FONT_SIZE_M, '1rem'),
|
|
452
|
+
// 14px
|
|
453
|
+
colorText: styledVars.FONT_COLOR_01 || '#091e42',
|
|
454
|
+
colorTextPlaceholder: styledVars.FONT_COLOR_03 || '#97a0af',
|
|
455
|
+
colorBorder: styledVars.CAP_G07 || '#dfe2e7',
|
|
456
|
+
colorPrimaryHover: styledVars.FONT_COLOR_01 || '#091e42',
|
|
457
|
+
colorError: styledVars.CAP_RED || '#ea213a',
|
|
458
|
+
colorErrorHover: styledVars.CAP_RED || '#ea213a',
|
|
459
|
+
colorBgContainerDisabled: styledVars.CAP_G08 || '#ebecf0',
|
|
460
|
+
borderRadius: remToPx(styledVars.RADIUS_08, '0.571rem') // 8px
|
|
461
|
+
},
|
|
462
|
+
// Card component tokens
|
|
463
|
+
Card: {
|
|
464
|
+
borderRadius: remToPx(styledVars.RADIUS_08, '0.571rem'),
|
|
465
|
+
// 8px
|
|
466
|
+
paddingLG: remToPx(styledVars.SPACING_24, '1.714rem') // 24px
|
|
467
|
+
},
|
|
468
|
+
// Table component tokens
|
|
469
|
+
Table: {
|
|
470
|
+
fontSize: remToPx(styledVars.FONT_SIZE_M, '1rem'),
|
|
471
|
+
// 14px
|
|
472
|
+
colorText: styledVars.FONT_COLOR_01 || '#091e42',
|
|
473
|
+
colorTextHeading: styledVars.FONT_COLOR_01 || '#091e42',
|
|
474
|
+
colorBorderSecondary: styledVars.CAP_G08 || '#ebecf0',
|
|
475
|
+
headerBg: styledVars.CAP_G10 || '#fafbfc',
|
|
476
|
+
headerColor: styledVars.FONT_COLOR_01 || '#091e42',
|
|
477
|
+
rowHoverBg: styledVars.CAP_G09 || '#f4f5f7'
|
|
478
|
+
},
|
|
479
|
+
// Checkbox component tokens
|
|
480
|
+
Checkbox: {
|
|
481
|
+
colorPrimary: ((_styledVars$CAP_PRIMA8 = styledVars.CAP_PRIMARY) == null ? void 0 : _styledVars$CAP_PRIMA8.base) || '#47af46',
|
|
482
|
+
colorPrimaryHover: ((_styledVars$CAP_PRIMA9 = styledVars.CAP_PRIMARY) == null ? void 0 : _styledVars$CAP_PRIMA9.hover) || '#1f9a1d',
|
|
483
|
+
colorTextDisabled: styledVars.CAP_G04 || '#5e6c84',
|
|
484
|
+
colorBgContainerDisabled: styledVars.CAP_G09 || '#f4f5f7',
|
|
485
|
+
colorBorder: styledVars.CAP_G04 || '#5e6c84',
|
|
486
|
+
borderRadius: remToPx(styledVars.RADIUS_04, '0.286rem') // 4px
|
|
487
|
+
},
|
|
488
|
+
// Radio component tokens
|
|
489
|
+
Radio: {
|
|
490
|
+
colorPrimary: ((_styledVars$CAP_PRIMA0 = styledVars.CAP_PRIMARY) == null ? void 0 : _styledVars$CAP_PRIMA0.base) || '#47af46',
|
|
491
|
+
colorPrimaryHover: ((_styledVars$CAP_PRIMA1 = styledVars.CAP_PRIMARY) == null ? void 0 : _styledVars$CAP_PRIMA1.hover) || '#1f9a1d',
|
|
492
|
+
colorTextDisabled: styledVars.CAP_G03 || '#42526e',
|
|
493
|
+
dotColorDisabled: styledVars.CAP_WHITE || '#ffffff'
|
|
494
|
+
},
|
|
495
|
+
// Switch component tokens
|
|
496
|
+
Switch: {
|
|
497
|
+
colorPrimary: ((_styledVars$CAP_PRIMA10 = styledVars.CAP_PRIMARY) == null ? void 0 : _styledVars$CAP_PRIMA10.base) || '#47af46',
|
|
498
|
+
colorPrimaryHover: ((_styledVars$CAP_PRIMA11 = styledVars.CAP_PRIMARY) == null ? void 0 : _styledVars$CAP_PRIMA11.hover) || '#1f9a1d'
|
|
499
|
+
},
|
|
500
|
+
// Tab component tokens
|
|
501
|
+
Tabs: {
|
|
502
|
+
colorText: styledVars.CAP_G04 || '#5e6c84',
|
|
503
|
+
colorTextDisabled: styledVars.CAP_G04 || '#5e6c84',
|
|
504
|
+
colorPrimary: styledVars.FONT_COLOR_01 || '#091e42',
|
|
505
|
+
itemHoverColor: styledVars.FONT_COLOR_01 || '#091e42',
|
|
506
|
+
itemActiveColor: styledVars.FONT_COLOR_01 || '#091e42',
|
|
507
|
+
itemSelectedColor: styledVars.FONT_COLOR_01 || '#091e42',
|
|
508
|
+
inkBarColor: styledVars.FONT_COLOR_01 || '#091e42',
|
|
509
|
+
cardBg: '#faf9f4'
|
|
510
|
+
},
|
|
511
|
+
// Dropdown component tokens
|
|
512
|
+
Dropdown: {
|
|
513
|
+
colorBgElevated: styledVars.CAP_WHITE || '#ffffff',
|
|
514
|
+
colorText: styledVars.FONT_COLOR_01 || '#091e42',
|
|
515
|
+
controlItemBgHover: styledVars.CAP_COLOR_08 || '#faf9f4'
|
|
516
|
+
},
|
|
517
|
+
// Tooltip component tokens
|
|
518
|
+
Tooltip: {
|
|
519
|
+
colorBgSpotlight: styledVars.FONT_COLOR_01 || '#091e42',
|
|
520
|
+
colorTextLightSolid: styledVars.CAP_WHITE || '#ffffff'
|
|
521
|
+
},
|
|
522
|
+
// Divider component tokens
|
|
523
|
+
Divider: {
|
|
524
|
+
colorSplit: styledVars.CAP_G07 || '#dfe2e7'
|
|
525
|
+
},
|
|
526
|
+
// Select component tokens (for CapUnifiedSelect)
|
|
527
|
+
Select: {
|
|
528
|
+
colorText: styledVars.FONT_COLOR_01 || '#091e42',
|
|
529
|
+
colorTextPlaceholder: styledVars.CAP_G05 || '#97a0af',
|
|
530
|
+
colorBorder: styledVars.CAP_G11 || '#7a869a',
|
|
531
|
+
colorPrimaryHover: styledVars.FONT_COLOR_01 || '#091e42',
|
|
532
|
+
colorBgContainer: styledVars.CAP_WHITE || '#ffffff',
|
|
533
|
+
colorBgElevated: styledVars.CAP_WHITE || '#ffffff',
|
|
534
|
+
controlItemBgHover: styledVars.CAP_COLOR_08 || '#faf9f4',
|
|
535
|
+
colorTextDisabled: styledVars.CAP_G06 || '#b3bac5',
|
|
536
|
+
colorBgContainerDisabled: styledVars.CAP_WHITE || '#ffffff'
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
};
|
|
540
|
+
|
|
541
|
+
// Merge with custom options if provided
|
|
542
|
+
if (options) {
|
|
543
|
+
return {
|
|
544
|
+
token: _extends({}, baseTheme.token, options.token),
|
|
545
|
+
components: _extends({}, baseTheme.components, options.components),
|
|
546
|
+
algorithm: options.algorithm,
|
|
547
|
+
cssVar: options.cssVar,
|
|
548
|
+
hashed: options.hashed
|
|
549
|
+
};
|
|
550
|
+
}
|
|
551
|
+
return baseTheme;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
/***/ }),
|
|
555
|
+
|
|
241
556
|
/***/ 2232:
|
|
242
557
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
243
558
|
|
|
@@ -245,9 +560,10 @@ module.exports = function (item) {
|
|
|
245
560
|
|
|
246
561
|
exports.__esModule = true;
|
|
247
562
|
var _exportNames = {
|
|
563
|
+
getCapThemeConfig: true,
|
|
248
564
|
loadBlazeUI: true
|
|
249
565
|
};
|
|
250
|
-
exports.loadBlazeUI = void 0;
|
|
566
|
+
exports.loadBlazeUI = exports.getCapThemeConfig = void 0;
|
|
251
567
|
var _fonts = __webpack_require__(170);
|
|
252
568
|
Object.keys(_fonts).forEach(function (key) {
|
|
253
569
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -256,6 +572,8 @@ Object.keys(_fonts).forEach(function (key) {
|
|
|
256
572
|
exports[key] = _fonts[key];
|
|
257
573
|
});
|
|
258
574
|
__webpack_require__(7668);
|
|
575
|
+
var _getCapThemeConfig = __webpack_require__(1563);
|
|
576
|
+
exports.getCapThemeConfig = _getCapThemeConfig.getCapThemeConfig;
|
|
259
577
|
const _excluded = ["baseFontSize"];
|
|
260
578
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
261
579
|
/**
|
|
@@ -1060,6 +1378,210 @@ function domAPI(options) {
|
|
|
1060
1378
|
}
|
|
1061
1379
|
module.exports = domAPI;
|
|
1062
1380
|
|
|
1381
|
+
/***/ }),
|
|
1382
|
+
|
|
1383
|
+
/***/ 9941:
|
|
1384
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
1385
|
+
|
|
1386
|
+
|
|
1387
|
+
|
|
1388
|
+
exports.__esModule = true;
|
|
1389
|
+
exports.CAP_SPACE_52 = exports.CAP_SPACE_48 = exports.CAP_SPACE_44 = exports.CAP_SPACE_42 = exports.CAP_SPACE_40 = exports.CAP_SPACE_36 = exports.CAP_SPACE_32 = exports.CAP_SPACE_28 = exports.CAP_SPACE_24 = exports.CAP_SPACE_23 = exports.CAP_SPACE_20 = exports.CAP_SPACE_19 = exports.CAP_SPACE_18 = exports.CAP_SPACE_16 = exports.CAP_SPACE_12 = exports.CAP_SPACE_08 = exports.CAP_SPACE_06 = exports.CAP_SPACE_04 = exports.CAP_SPACE_03 = exports.CAP_SPACE_02 = exports.CAP_SPACE_01 = exports.CAP_SPACE_00 = exports.CAP_SECONDARY = exports.CAP_RED03 = exports.CAP_RED02 = exports.CAP_RED01 = exports.CAP_RED = exports.CAP_PURPLE04 = exports.CAP_PURPLE03 = exports.CAP_PURPLE02 = exports.CAP_PURPLE01 = exports.CAP_PURPLE = exports.CAP_PRIMARY = exports.CAP_PINK = exports.CAP_PALE_GREY = exports.CAP_ORANGE02 = exports.CAP_ORANGE01 = exports.CAP_ORANGE = exports.CAP_ICON = exports.CAP_GREEN02 = exports.CAP_GREEN01 = exports.CAP_G20 = exports.CAP_G19 = exports.CAP_G18 = exports.CAP_G17 = exports.CAP_G16 = exports.CAP_G15 = exports.CAP_G14 = exports.CAP_G13 = exports.CAP_G12 = exports.CAP_G11 = exports.CAP_G10 = exports.CAP_G09 = exports.CAP_G08 = exports.CAP_G07 = exports.CAP_G06 = exports.CAP_G05 = exports.CAP_G04 = exports.CAP_G03 = exports.CAP_G02 = exports.CAP_G01 = exports.CAP_COLOR_27 = exports.CAP_COLOR_26 = exports.CAP_COLOR_25 = exports.CAP_COLOR_24 = exports.CAP_COLOR_23 = exports.CAP_COLOR_22 = exports.CAP_COLOR_21 = exports.CAP_COLOR_20 = exports.CAP_COLOR_19 = exports.CAP_COLOR_18 = exports.CAP_COLOR_17 = exports.CAP_COLOR_16 = exports.CAP_COLOR_15 = exports.CAP_COLOR_14 = exports.CAP_COLOR_13 = exports.CAP_COLOR_12 = exports.CAP_COLOR_11 = exports.CAP_COLOR_10 = exports.CAP_COLOR_09 = exports.CAP_COLOR_08 = exports.CAP_COLOR_07 = exports.CAP_COLOR_06 = exports.CAP_COLOR_05 = exports.CAP_COLOR_04 = exports.CAP_COLOR_03 = exports.CAP_COLOR_02 = exports.CAP_COLOR_01 = exports.CAP_BLUE02 = exports.CAP_BLUE01 = exports.CAP_BLUE = exports.CAP_BLACK_ALPHA01 = exports.CAP_BLACK = exports.BUTTON_HEIGHT = exports.BORDER_WIDTH_2 = exports.BORDER_WIDTH_1 = exports.BG_08 = exports.BG_03 = exports.BG_02 = exports.BG_01 = void 0;
|
|
1390
|
+
exports.TRANSITION_ALL = exports.SPACING_32 = exports.SPACING_24 = exports.SPACING_16 = exports.SPACING_12 = exports.SPACING_08 = exports.SPACING_04 = exports.RADIUS_08 = exports.RADIUS_04 = exports.NORMAL_LINE_HEIGHT = exports.INPUT_HEIGHT = exports.ICON_SIZE_XS = exports.ICON_SIZE_S = exports.ICON_SIZE_M = exports.ICON_SIZE_L = exports.FONT_WEIGHT_REGULAR = exports.FONT_WEIGHT_MEDIUM = exports.FONT_SIZE_VS = exports.FONT_SIZE_VL = exports.FONT_SIZE_S = exports.FONT_SIZE_M = exports.FONT_SIZE_L = exports.FONT_FAMILY = exports.FONT_COLOR_06 = exports.FONT_COLOR_05 = exports.FONT_COLOR_04 = exports.FONT_COLOR_03 = exports.FONT_COLOR_02 = exports.FONT_COLOR_01 = exports.COLOR_WARNING = exports.COLOR_SUCCESS = exports.COLOR_INFO = exports.COLOR_ERROR = exports.CAP_YELLOW02 = exports.CAP_YELLOW01 = exports.CAP_YELLOW = exports.CAP_WHITE_OVERLAY = exports.CAP_WHITE = exports.CAP_SPACE_80 = exports.CAP_SPACE_72 = exports.CAP_SPACE_64 = exports.CAP_SPACE_60 = exports.CAP_SPACE_56 = void 0;
|
|
1391
|
+
/* Color Palette */
|
|
1392
|
+
//========================
|
|
1393
|
+
|
|
1394
|
+
// Primary colors
|
|
1395
|
+
const CAP_PRIMARY = exports.CAP_PRIMARY = {
|
|
1396
|
+
base: '#47af46',
|
|
1397
|
+
hover: '#1f9a1d',
|
|
1398
|
+
disabled: '#a1d8a0'
|
|
1399
|
+
};
|
|
1400
|
+
|
|
1401
|
+
// Secondary colors
|
|
1402
|
+
const CAP_SECONDARY = exports.CAP_SECONDARY = {
|
|
1403
|
+
base: '#2466ea',
|
|
1404
|
+
light: 'rgba(36, 102, 234, 0.1)'
|
|
1405
|
+
};
|
|
1406
|
+
const NORMAL_LINE_HEIGHT = exports.NORMAL_LINE_HEIGHT = 'normal';
|
|
1407
|
+
|
|
1408
|
+
// Custom colors
|
|
1409
|
+
const CAP_ORANGE = exports.CAP_ORANGE = '#f87d23';
|
|
1410
|
+
const CAP_ORANGE01 = exports.CAP_ORANGE01 = '#ffe5d2';
|
|
1411
|
+
const CAP_ORANGE02 = exports.CAP_ORANGE02 = '#fa7d02';
|
|
1412
|
+
const CAP_YELLOW = exports.CAP_YELLOW = '#fec52e';
|
|
1413
|
+
const CAP_YELLOW01 = exports.CAP_YELLOW01 = '#e8bc25';
|
|
1414
|
+
const CAP_YELLOW02 = exports.CAP_YELLOW02 = '#f9d438';
|
|
1415
|
+
const CAP_BLUE = exports.CAP_BLUE = '#23cccc';
|
|
1416
|
+
const CAP_PURPLE = exports.CAP_PURPLE = '#8517e5';
|
|
1417
|
+
const CAP_PINK = exports.CAP_PINK = '#e51fa3';
|
|
1418
|
+
const CAP_RED = exports.CAP_RED = '#ea213a';
|
|
1419
|
+
const CAP_ICON = exports.CAP_ICON = '#7a869a';
|
|
1420
|
+
const CAP_PALE_GREY = exports.CAP_PALE_GREY = '#e9f0fe';
|
|
1421
|
+
const CAP_BLUE01 = exports.CAP_BLUE01 = '#2466eb';
|
|
1422
|
+
const CAP_BLUE02 = exports.CAP_BLUE02 = '#1d61ee';
|
|
1423
|
+
const CAP_RED01 = exports.CAP_RED01 = '#e51fa3';
|
|
1424
|
+
const CAP_RED02 = exports.CAP_RED02 = '#f5222d';
|
|
1425
|
+
const CAP_RED03 = exports.CAP_RED03 = '#ed1b34';
|
|
1426
|
+
const CAP_PURPLE01 = exports.CAP_PURPLE01 = '#6563ff';
|
|
1427
|
+
const CAP_PURPLE02 = exports.CAP_PURPLE02 = '#a451ff';
|
|
1428
|
+
const CAP_PURPLE03 = exports.CAP_PURPLE03 = '#f2e7fe';
|
|
1429
|
+
const CAP_PURPLE04 = exports.CAP_PURPLE04 = '#d4e1fc';
|
|
1430
|
+
const CAP_GREEN01 = exports.CAP_GREEN01 = '#6bb56b';
|
|
1431
|
+
const CAP_GREEN02 = exports.CAP_GREEN02 = '#ecf7ec';
|
|
1432
|
+
|
|
1433
|
+
// Grey colors
|
|
1434
|
+
const CAP_G01 = exports.CAP_G01 = '#091e42';
|
|
1435
|
+
const CAP_G02 = exports.CAP_G02 = '#253858';
|
|
1436
|
+
const CAP_G03 = exports.CAP_G03 = '#42526e';
|
|
1437
|
+
const CAP_G04 = exports.CAP_G04 = '#5e6c84';
|
|
1438
|
+
const CAP_G05 = exports.CAP_G05 = '#97a0af';
|
|
1439
|
+
const CAP_G06 = exports.CAP_G06 = '#b3bac5';
|
|
1440
|
+
const CAP_G07 = exports.CAP_G07 = '#dfe2e7';
|
|
1441
|
+
const CAP_G08 = exports.CAP_G08 = '#ebecf0';
|
|
1442
|
+
const CAP_G09 = exports.CAP_G09 = '#f4f5f7';
|
|
1443
|
+
const CAP_G10 = exports.CAP_G10 = '#fafbfc';
|
|
1444
|
+
const CAP_G11 = exports.CAP_G11 = '#7a869a';
|
|
1445
|
+
const CAP_G12 = exports.CAP_G12 = '#e8e8e8';
|
|
1446
|
+
const CAP_G13 = exports.CAP_G13 = '#ecece7';
|
|
1447
|
+
const CAP_G14 = exports.CAP_G14 = '#e9f0fd';
|
|
1448
|
+
const CAP_G15 = exports.CAP_G15 = '#efefef';
|
|
1449
|
+
const CAP_G16 = exports.CAP_G16 = '#2a2a2a';
|
|
1450
|
+
const CAP_G17 = exports.CAP_G17 = '#5d6b85';
|
|
1451
|
+
const CAP_G18 = exports.CAP_G18 = '#dcdee2';
|
|
1452
|
+
const CAP_G19 = exports.CAP_G19 = '#8a9ab2';
|
|
1453
|
+
const CAP_G20 = exports.CAP_G20 = '#c2c2c2';
|
|
1454
|
+
const CAP_WHITE = exports.CAP_WHITE = '#ffffff';
|
|
1455
|
+
const CAP_WHITE_OVERLAY = exports.CAP_WHITE_OVERLAY = 'rgba(255, 255, 255, 0.8)';
|
|
1456
|
+
const CAP_BLACK = exports.CAP_BLACK = '#000000';
|
|
1457
|
+
const CAP_BLACK_ALPHA01 = exports.CAP_BLACK_ALPHA01 = '#00000022';
|
|
1458
|
+
|
|
1459
|
+
// Semantic colors
|
|
1460
|
+
const COLOR_ERROR = exports.COLOR_ERROR = '#ff4d4f';
|
|
1461
|
+
const COLOR_SUCCESS = exports.COLOR_SUCCESS = '#52c41a';
|
|
1462
|
+
const COLOR_WARNING = exports.COLOR_WARNING = '#faad14';
|
|
1463
|
+
const COLOR_INFO = exports.COLOR_INFO = '#1890ff';
|
|
1464
|
+
|
|
1465
|
+
// Color variants (CAP_COLOR_01 to CAP_COLOR_27)
|
|
1466
|
+
const CAP_COLOR_01 = exports.CAP_COLOR_01 = '#dbefda';
|
|
1467
|
+
const CAP_COLOR_02 = exports.CAP_COLOR_02 = '#fee5d3';
|
|
1468
|
+
const CAP_COLOR_03 = exports.CAP_COLOR_03 = '#e83135';
|
|
1469
|
+
const CAP_COLOR_04 = exports.CAP_COLOR_04 = '#fff4d6';
|
|
1470
|
+
const CAP_COLOR_05 = exports.CAP_COLOR_05 = '#fbd3d8';
|
|
1471
|
+
const CAP_COLOR_06 = exports.CAP_COLOR_06 = '#42B040';
|
|
1472
|
+
const CAP_COLOR_07 = exports.CAP_COLOR_07 = '#E9F0FC';
|
|
1473
|
+
const CAP_COLOR_08 = exports.CAP_COLOR_08 = '#faf9f4';
|
|
1474
|
+
const CAP_COLOR_09 = exports.CAP_COLOR_09 = '#7765d5';
|
|
1475
|
+
const CAP_COLOR_10 = exports.CAP_COLOR_10 = '#f79600';
|
|
1476
|
+
const CAP_COLOR_11 = exports.CAP_COLOR_11 = '#2388de';
|
|
1477
|
+
const CAP_COLOR_12 = exports.CAP_COLOR_12 = '#efba00';
|
|
1478
|
+
const CAP_COLOR_13 = exports.CAP_COLOR_13 = '#bcd0fa';
|
|
1479
|
+
const CAP_COLOR_14 = exports.CAP_COLOR_14 = '#9BC79A';
|
|
1480
|
+
const CAP_COLOR_15 = exports.CAP_COLOR_15 = '#F6BA8E';
|
|
1481
|
+
const CAP_COLOR_16 = exports.CAP_COLOR_16 = '#d9d9d9';
|
|
1482
|
+
const CAP_COLOR_17 = exports.CAP_COLOR_17 = '#1d61ee';
|
|
1483
|
+
const CAP_COLOR_18 = exports.CAP_COLOR_18 = '#d0d7ff';
|
|
1484
|
+
const CAP_COLOR_19 = exports.CAP_COLOR_19 = '#44ddff';
|
|
1485
|
+
const CAP_COLOR_20 = exports.CAP_COLOR_20 = '#4a67ff';
|
|
1486
|
+
const CAP_COLOR_21 = exports.CAP_COLOR_21 = '#ace0ff';
|
|
1487
|
+
const CAP_COLOR_22 = exports.CAP_COLOR_22 = '#DBB7F9';
|
|
1488
|
+
const CAP_COLOR_23 = exports.CAP_COLOR_23 = '#F8BAE4';
|
|
1489
|
+
const CAP_COLOR_24 = exports.CAP_COLOR_24 = '#BCD0FA';
|
|
1490
|
+
const CAP_COLOR_25 = exports.CAP_COLOR_25 = '#ACE1F1';
|
|
1491
|
+
const CAP_COLOR_26 = exports.CAP_COLOR_26 = '#FFE9AD';
|
|
1492
|
+
const CAP_COLOR_27 = exports.CAP_COLOR_27 = '#F4F7FE';
|
|
1493
|
+
|
|
1494
|
+
// Background Colors
|
|
1495
|
+
const BG_01 = exports.BG_01 = '#faf9f4';
|
|
1496
|
+
const BG_02 = exports.BG_02 = '#fefcf0';
|
|
1497
|
+
const BG_03 = exports.BG_03 = '#ebf8ff';
|
|
1498
|
+
const BG_08 = exports.BG_08 = '#ecf7ec';
|
|
1499
|
+
|
|
1500
|
+
/* Fonts */
|
|
1501
|
+
// ==============
|
|
1502
|
+
const FONT_FAMILY = exports.FONT_FAMILY = '"Roboto", sans-serif';
|
|
1503
|
+
const FONT_WEIGHT_REGULAR = exports.FONT_WEIGHT_REGULAR = 400;
|
|
1504
|
+
const FONT_WEIGHT_MEDIUM = exports.FONT_WEIGHT_MEDIUM = 500;
|
|
1505
|
+
|
|
1506
|
+
// Font colors
|
|
1507
|
+
const FONT_COLOR_01 = exports.FONT_COLOR_01 = '#091e42';
|
|
1508
|
+
const FONT_COLOR_02 = exports.FONT_COLOR_02 = '#5e6c84';
|
|
1509
|
+
const FONT_COLOR_03 = exports.FONT_COLOR_03 = '#97a0af';
|
|
1510
|
+
const FONT_COLOR_04 = exports.FONT_COLOR_04 = '#b3bac5';
|
|
1511
|
+
const FONT_COLOR_05 = exports.FONT_COLOR_05 = '#2466ea';
|
|
1512
|
+
const FONT_COLOR_06 = exports.FONT_COLOR_06 = '#ffffff';
|
|
1513
|
+
|
|
1514
|
+
// Font sizes (1rem = 14px)
|
|
1515
|
+
const FONT_SIZE_VL = exports.FONT_SIZE_VL = '1.714rem'; // 24px
|
|
1516
|
+
const FONT_SIZE_L = exports.FONT_SIZE_L = '1.143rem'; // 16px
|
|
1517
|
+
const FONT_SIZE_M = exports.FONT_SIZE_M = '1rem'; // 14px
|
|
1518
|
+
const FONT_SIZE_S = exports.FONT_SIZE_S = '0.857rem'; // 12px
|
|
1519
|
+
const FONT_SIZE_VS = exports.FONT_SIZE_VS = '0.714rem'; // 10px
|
|
1520
|
+
|
|
1521
|
+
// Icon sizes (1rem = 14px)
|
|
1522
|
+
const ICON_SIZE_XS = exports.ICON_SIZE_XS = '0.857rem'; // 12px
|
|
1523
|
+
const ICON_SIZE_S = exports.ICON_SIZE_S = '1.143rem'; // 16px
|
|
1524
|
+
const ICON_SIZE_M = exports.ICON_SIZE_M = '1.714rem'; // 24px
|
|
1525
|
+
const ICON_SIZE_L = exports.ICON_SIZE_L = '2.286rem'; // 32px
|
|
1526
|
+
|
|
1527
|
+
/* Spacing */
|
|
1528
|
+
// ==============
|
|
1529
|
+
// Note: 1rem = 14px as base font size
|
|
1530
|
+
const SPACING_04 = exports.SPACING_04 = '0.286rem'; // 4px
|
|
1531
|
+
const SPACING_08 = exports.SPACING_08 = '0.571rem'; // 8px
|
|
1532
|
+
const SPACING_12 = exports.SPACING_12 = '0.857rem'; // 12px
|
|
1533
|
+
const SPACING_16 = exports.SPACING_16 = '1.143rem'; // 16px
|
|
1534
|
+
const SPACING_24 = exports.SPACING_24 = '1.714rem'; // 24px
|
|
1535
|
+
const SPACING_32 = exports.SPACING_32 = '2.286rem'; // 32px;
|
|
1536
|
+
|
|
1537
|
+
// CAP_SPACE values (using rem units - 1rem = 14px in old system)
|
|
1538
|
+
const CAP_SPACE_00 = exports.CAP_SPACE_00 = '0rem';
|
|
1539
|
+
const CAP_SPACE_01 = exports.CAP_SPACE_01 = '0.071rem'; // ~1px
|
|
1540
|
+
const CAP_SPACE_02 = exports.CAP_SPACE_02 = '0.142rem'; // ~2px
|
|
1541
|
+
const CAP_SPACE_03 = exports.CAP_SPACE_03 = '0.214rem'; // ~3px
|
|
1542
|
+
const CAP_SPACE_04 = exports.CAP_SPACE_04 = '0.285rem'; // ~4px
|
|
1543
|
+
const CAP_SPACE_06 = exports.CAP_SPACE_06 = '0.428rem'; // ~6px
|
|
1544
|
+
const CAP_SPACE_08 = exports.CAP_SPACE_08 = '0.571rem'; // ~8px
|
|
1545
|
+
const CAP_SPACE_12 = exports.CAP_SPACE_12 = '0.857rem'; // ~12px
|
|
1546
|
+
const CAP_SPACE_16 = exports.CAP_SPACE_16 = '1.142rem'; // ~16px
|
|
1547
|
+
const CAP_SPACE_18 = exports.CAP_SPACE_18 = '1.285rem'; // ~18px
|
|
1548
|
+
const CAP_SPACE_19 = exports.CAP_SPACE_19 = '1.3rem'; // ~18.2px
|
|
1549
|
+
const CAP_SPACE_20 = exports.CAP_SPACE_20 = '1.428rem'; // ~20px
|
|
1550
|
+
const CAP_SPACE_23 = exports.CAP_SPACE_23 = '1.614rem'; // ~22.6px
|
|
1551
|
+
const CAP_SPACE_24 = exports.CAP_SPACE_24 = '1.714rem'; // ~24px
|
|
1552
|
+
const CAP_SPACE_28 = exports.CAP_SPACE_28 = '2rem'; // ~28px
|
|
1553
|
+
const CAP_SPACE_32 = exports.CAP_SPACE_32 = '2.285rem'; // ~32px
|
|
1554
|
+
const CAP_SPACE_36 = exports.CAP_SPACE_36 = '2.571rem'; // ~36px
|
|
1555
|
+
const CAP_SPACE_40 = exports.CAP_SPACE_40 = '2.857rem'; // ~40px
|
|
1556
|
+
const CAP_SPACE_42 = exports.CAP_SPACE_42 = '3rem'; // ~42px
|
|
1557
|
+
const CAP_SPACE_44 = exports.CAP_SPACE_44 = '3.142rem'; // ~44px
|
|
1558
|
+
const CAP_SPACE_48 = exports.CAP_SPACE_48 = '3.428rem'; // ~48px
|
|
1559
|
+
const CAP_SPACE_52 = exports.CAP_SPACE_52 = '3.714rem'; // ~52px
|
|
1560
|
+
const CAP_SPACE_56 = exports.CAP_SPACE_56 = '4rem'; // ~56px
|
|
1561
|
+
const CAP_SPACE_60 = exports.CAP_SPACE_60 = '4.286rem'; // ~60px
|
|
1562
|
+
const CAP_SPACE_64 = exports.CAP_SPACE_64 = '4.571rem'; // ~64px
|
|
1563
|
+
const CAP_SPACE_72 = exports.CAP_SPACE_72 = '5.143rem'; // ~72px
|
|
1564
|
+
const CAP_SPACE_80 = exports.CAP_SPACE_80 = '5.714rem'; // ~80px
|
|
1565
|
+
|
|
1566
|
+
/* Component Heights */
|
|
1567
|
+
// ==============
|
|
1568
|
+
const INPUT_HEIGHT = exports.INPUT_HEIGHT = '2.286rem'; // 32px
|
|
1569
|
+
const BUTTON_HEIGHT = exports.BUTTON_HEIGHT = '2.857rem'; // 40px
|
|
1570
|
+
|
|
1571
|
+
/* Border Radius */
|
|
1572
|
+
// ==============
|
|
1573
|
+
const RADIUS_04 = exports.RADIUS_04 = '0.286rem'; // 4px
|
|
1574
|
+
const RADIUS_08 = exports.RADIUS_08 = '0.571rem'; // 8px
|
|
1575
|
+
|
|
1576
|
+
/* Border Width */
|
|
1577
|
+
// ==============
|
|
1578
|
+
const BORDER_WIDTH_1 = exports.BORDER_WIDTH_1 = '0.071rem'; // 1px
|
|
1579
|
+
const BORDER_WIDTH_2 = exports.BORDER_WIDTH_2 = '0.143rem'; // 2px
|
|
1580
|
+
|
|
1581
|
+
/* Transition */
|
|
1582
|
+
// ==============
|
|
1583
|
+
const TRANSITION_ALL = exports.TRANSITION_ALL = 'all 0.3s ease';
|
|
1584
|
+
|
|
1063
1585
|
/***/ })
|
|
1064
1586
|
|
|
1065
1587
|
/******/ });
|