@lobehub/ui 6.0.0-beta.8 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/es/Accordion/style.d.mts +1 -1
- package/es/CodeDiff/DiffPanel.mjs +2 -2
- package/es/CodeDiff/DiffPanel.mjs.map +1 -1
- package/es/DatePicker/DatePicker.d.mts +5 -3
- package/es/DatePicker/DatePicker.mjs +7 -5
- package/es/DatePicker/DatePicker.mjs.map +1 -1
- package/es/DatePicker/DateRangePicker.d.mts +1 -1
- package/es/DatePicker/DayjsDatePicker.d.mts +12 -0
- package/es/DatePicker/DayjsDatePicker.mjs +19 -0
- package/es/DatePicker/DayjsDatePicker.mjs.map +1 -0
- package/es/DatePicker/DayjsDateRangePicker.d.mts +7 -0
- package/es/DatePicker/DayjsDateRangePicker.mjs +8 -0
- package/es/DatePicker/DayjsDateRangePicker.mjs.map +1 -0
- package/es/DatePicker/RangePicker.mjs +7 -1
- package/es/DatePicker/RangePicker.mjs.map +1 -1
- package/es/DatePicker/SinglePicker.mjs +3 -1
- package/es/DatePicker/SinglePicker.mjs.map +1 -1
- package/es/DatePicker/dateGenerateConfig.mjs +52 -0
- package/es/DatePicker/dateGenerateConfig.mjs.map +1 -0
- package/es/DatePicker/index.d.mts +4 -2
- package/es/DatePicker/index.mjs +3 -1
- package/es/DatePicker/legacyDate.mjs +58 -0
- package/es/DatePicker/legacyDate.mjs.map +1 -0
- package/es/DatePicker/type.d.mts +60 -34
- package/es/DatePicker/usePresetActive.mjs +1 -0
- package/es/DatePicker/usePresetActive.mjs.map +1 -1
- package/es/Drawer/style.mjs.map +1 -1
- package/es/FloatingPanel/style.mjs +3 -2
- package/es/FloatingPanel/style.mjs.map +1 -1
- package/es/Form/Form.mjs +6 -2
- package/es/Form/Form.mjs.map +1 -1
- package/es/Form/style.mjs +3 -3
- package/es/Form/style.mjs.map +1 -1
- package/es/Form/type.d.mts +7 -0
- package/es/Popover/style.mjs +1 -1
- package/es/Popover/style.mjs.map +1 -1
- package/es/ProTable/hooks/useFetchData.mjs +1 -1
- package/es/ProTable/hooks/useFetchData.mjs.map +1 -1
- package/es/ProTable/parts/FieldControl.mjs +32 -15
- package/es/ProTable/parts/FieldControl.mjs.map +1 -1
- package/es/ProTable/style.mjs +9 -0
- package/es/ProTable/style.mjs.map +1 -1
- package/es/ProTable/type.d.mts +5 -2
- package/es/Switch/Switch.mjs +8 -1
- package/es/Switch/Switch.mjs.map +1 -1
- package/es/Switch/atoms.d.mts +7 -1
- package/es/Switch/atoms.mjs +20 -4
- package/es/Switch/atoms.mjs.map +1 -1
- package/es/Switch/style.mjs +33 -2
- package/es/Switch/style.mjs.map +1 -1
- package/es/Table/Table.mjs +14 -5
- package/es/Table/Table.mjs.map +1 -1
- package/es/Table/render/FixedFrost.mjs +11 -2
- package/es/Table/render/FixedFrost.mjs.map +1 -1
- package/es/Table/style.mjs +4 -0
- package/es/Table/style.mjs.map +1 -1
- package/es/Tabs/style.d.mts +1 -1
- package/es/Text/style.d.mts +3 -3
- package/es/Toast/dodge.mjs +0 -1
- package/es/Toast/dodge.mjs.map +1 -1
- package/es/Toast/dodge.stylex.mjs +1 -4
- package/es/Toast/dodge.stylex.mjs.map +1 -1
- package/es/Toast/style.mjs +1 -1
- package/es/Toast/style.mjs.map +1 -1
- package/es/Tooltip/style.mjs +2 -2
- package/es/Tooltip/style.mjs.map +1 -1
- package/es/color/index.d.mts +2 -1
- package/es/color/index.mjs +2 -1
- package/es/color/status/error.mjs +67 -0
- package/es/color/status/error.mjs.map +1 -0
- package/es/color/status/index.d.mts +11 -0
- package/es/color/status/index.mjs +15 -0
- package/es/color/status/index.mjs.map +1 -0
- package/es/color/status/info.mjs +67 -0
- package/es/color/status/info.mjs.map +1 -0
- package/es/color/status/success.mjs +67 -0
- package/es/color/status/success.mjs.map +1 -0
- package/es/color/status/warning.mjs +67 -0
- package/es/color/status/warning.mjs.map +1 -0
- package/es/index.d.mts +6 -3
- package/es/index.mjs +5 -2
- package/es/style.css +114 -23
- package/es/styles/index.d.mts +3 -2
- package/es/styles/index.mjs +3 -2
- package/es/styles/stylex/cssVar.stylex.mjs +3 -0
- package/es/styles/stylex/cssVar.stylex.mjs.map +1 -1
- package/es/styles/theme/createLobeToken.d.mts +9 -5
- package/es/styles/theme/createLobeToken.mjs +3 -2
- package/es/styles/theme/createLobeToken.mjs.map +1 -1
- package/es/styles/theme/customPalette.d.mts +6 -0
- package/es/styles/theme/customPalette.mjs +28 -0
- package/es/styles/theme/customPalette.mjs.map +1 -0
- package/es/styles/theme/customPrimary.mjs +52 -17
- package/es/styles/theme/customPrimary.mjs.map +1 -1
- package/es/styles/theme/scope.d.mts +4 -2
- package/es/styles/theme/scope.mjs +53 -20
- package/es/styles/theme/scope.mjs.map +1 -1
- package/es/styles/theme/themeCss.d.mts +1 -0
- package/es/styles/theme/themeCss.mjs +16 -1
- package/es/styles/theme/themeCss.mjs.map +1 -1
- package/es/styles/theme/token/legacy.mjs +12 -12
- package/es/styles/theme/token/legacy.mjs.map +1 -1
- package/es/styles/theme/token/neutral.mjs +12 -4
- package/es/styles/theme/token/neutral.mjs.map +1 -1
- package/es/styles/theme/token/neutralText.mjs +91 -0
- package/es/styles/theme/token/neutralText.mjs.map +1 -0
- package/es/styles/theme/token/palette.mjs +16 -41
- package/es/styles/theme/token/palette.mjs.map +1 -1
- package/es/styles/theme/token/static.mjs +3 -0
- package/es/styles/theme/token/static.mjs.map +1 -1
- package/es/theme.css +293 -290
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
//#region src/styles/theme/token/legacy.ts
|
|
2
2
|
const legacyToken = {
|
|
3
3
|
dark: {
|
|
4
|
-
boxShadowCard: "\n 0 1px 2px -2px rgba(
|
|
5
|
-
boxShadowDrawerDown: "\n 0 -6px 16px 0 rgba(
|
|
6
|
-
boxShadowDrawerLeft: "\n 6px 0 16px 0 rgba(
|
|
7
|
-
boxShadowDrawerRight: "\n -6px 0 16px 0 rgba(
|
|
8
|
-
boxShadowDrawerUp: "\n 0 6px 16px 0 rgba(
|
|
9
|
-
boxShadowPopoverArrow: "2px 2px 5px rgba(
|
|
10
|
-
boxShadowTabsOverflowBottom: "inset 0 -10px 8px -8px rgba(
|
|
11
|
-
boxShadowTabsOverflowLeft: "inset 10px 0 8px -8px rgba(
|
|
12
|
-
boxShadowTabsOverflowRight: "inset -10px 0 8px -8px rgba(
|
|
13
|
-
boxShadowTabsOverflowTop: "inset 0 10px 8px -8px rgba(
|
|
4
|
+
boxShadowCard: "\n 0 1px 2px -2px rgba(0,0,0,0.16),\n 0 3px 6px 0 rgba(0,0,0,0.12),\n 0 5px 12px 4px rgba(0,0,0,0.09)\n ",
|
|
5
|
+
boxShadowDrawerDown: "\n 0 -6px 16px 0 rgba(0,0,0,0.08),\n 0 -3px 6px -4px rgba(0,0,0,0.12),\n 0 -9px 28px 8px rgba(0,0,0,0.05)\n ",
|
|
6
|
+
boxShadowDrawerLeft: "\n 6px 0 16px 0 rgba(0,0,0,0.08),\n 3px 0 6px -4px rgba(0,0,0,0.12),\n 9px 0 28px 8px rgba(0,0,0,0.05)\n ",
|
|
7
|
+
boxShadowDrawerRight: "\n -6px 0 16px 0 rgba(0,0,0,0.08),\n -3px 0 6px -4px rgba(0,0,0,0.12),\n -9px 0 28px 8px rgba(0,0,0,0.05)\n ",
|
|
8
|
+
boxShadowDrawerUp: "\n 0 6px 16px 0 rgba(0,0,0,0.08),\n 0 3px 6px -4px rgba(0,0,0,0.12),\n 0 9px 28px 8px rgba(0,0,0,0.05)\n ",
|
|
9
|
+
boxShadowPopoverArrow: "2px 2px 5px rgba(0,0,0,0.05)",
|
|
10
|
+
boxShadowTabsOverflowBottom: "inset 0 -10px 8px -8px rgba(0,0,0,0.08)",
|
|
11
|
+
boxShadowTabsOverflowLeft: "inset 10px 0 8px -8px rgba(0,0,0,0.08)",
|
|
12
|
+
boxShadowTabsOverflowRight: "inset -10px 0 8px -8px rgba(0,0,0,0.08)",
|
|
13
|
+
boxShadowTabsOverflowTop: "inset 0 10px 8px -8px rgba(0,0,0,0.08)",
|
|
14
14
|
colorBgBase: "#000",
|
|
15
15
|
colorBgBlur: "rgba(255,255,255,0.04)",
|
|
16
16
|
colorBgSolid: "rgba(255,255,255,0.95)",
|
|
@@ -19,9 +19,9 @@ const legacyToken = {
|
|
|
19
19
|
colorBorderDisabled: "#424242",
|
|
20
20
|
colorErrorBgActive: "#5b2526",
|
|
21
21
|
colorErrorBgFilledHover: "#441e1f",
|
|
22
|
-
colorShadow: "
|
|
22
|
+
colorShadow: "#000",
|
|
23
23
|
colorTextBase: "#fff",
|
|
24
|
-
dropShadowPopover: "drop-shadow(0 6px 16px rgba(
|
|
24
|
+
dropShadowPopover: "drop-shadow(0 6px 16px rgba(0,0,0,0.08)) drop-shadow(0 3px 6px rgba(0,0,0,0.12)) drop-shadow(0 9px 28px rgba(0,0,0,0.05))",
|
|
25
25
|
pink1: "#291321",
|
|
26
26
|
pink10: "#fad2e3",
|
|
27
27
|
pink2: "#40162f",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"legacy.mjs","names":[],"sources":["../../../../src/styles/theme/token/legacy.ts"],"sourcesContent":["export const legacyToken = {\n dark: {\n boxShadowCard:\n '\\n 0 1px 2px -2px rgba(
|
|
1
|
+
{"version":3,"file":"legacy.mjs","names":[],"sources":["../../../../src/styles/theme/token/legacy.ts"],"sourcesContent":["export const legacyToken = {\n dark: {\n boxShadowCard:\n '\\n 0 1px 2px -2px rgba(0,0,0,0.16),\\n 0 3px 6px 0 rgba(0,0,0,0.12),\\n 0 5px 12px 4px rgba(0,0,0,0.09)\\n ',\n boxShadowDrawerDown:\n '\\n 0 -6px 16px 0 rgba(0,0,0,0.08),\\n 0 -3px 6px -4px rgba(0,0,0,0.12),\\n 0 -9px 28px 8px rgba(0,0,0,0.05)\\n ',\n boxShadowDrawerLeft:\n '\\n 6px 0 16px 0 rgba(0,0,0,0.08),\\n 3px 0 6px -4px rgba(0,0,0,0.12),\\n 9px 0 28px 8px rgba(0,0,0,0.05)\\n ',\n boxShadowDrawerRight:\n '\\n -6px 0 16px 0 rgba(0,0,0,0.08),\\n -3px 0 6px -4px rgba(0,0,0,0.12),\\n -9px 0 28px 8px rgba(0,0,0,0.05)\\n ',\n boxShadowDrawerUp:\n '\\n 0 6px 16px 0 rgba(0,0,0,0.08),\\n 0 3px 6px -4px rgba(0,0,0,0.12),\\n 0 9px 28px 8px rgba(0,0,0,0.05)\\n ',\n boxShadowPopoverArrow: '2px 2px 5px rgba(0,0,0,0.05)',\n boxShadowTabsOverflowBottom: 'inset 0 -10px 8px -8px rgba(0,0,0,0.08)',\n boxShadowTabsOverflowLeft: 'inset 10px 0 8px -8px rgba(0,0,0,0.08)',\n boxShadowTabsOverflowRight: 'inset -10px 0 8px -8px rgba(0,0,0,0.08)',\n boxShadowTabsOverflowTop: 'inset 0 10px 8px -8px rgba(0,0,0,0.08)',\n colorBgBase: '#000',\n colorBgBlur: 'rgba(255,255,255,0.04)',\n colorBgSolid: 'rgba(255,255,255,0.95)',\n colorBgSolidActive: 'rgba(255,255,255,0.9)',\n colorBgSolidHover: 'rgb(255,255,255)',\n colorBorderDisabled: '#424242',\n colorErrorBgActive: '#5b2526',\n colorErrorBgFilledHover: '#441e1f',\n colorShadow: '#000',\n colorTextBase: '#fff',\n dropShadowPopover:\n 'drop-shadow(0 6px 16px rgba(0,0,0,0.08)) drop-shadow(0 3px 6px rgba(0,0,0,0.12)) drop-shadow(0 9px 28px rgba(0,0,0,0.05))',\n pink1: '#291321',\n pink10: '#fad2e3',\n pink2: '#40162f',\n pink3: '#551c3b',\n pink4: '#75204f',\n pink5: '#a02669',\n pink6: '#cb2b83',\n pink7: '#e0529c',\n pink8: '#f37fb7',\n pink9: '#f8a8cc',\n pinkActive: '#e0529c',\n pinkHover: '#a02669',\n },\n light: {\n boxShadowCard:\n '\\n 0 1px 2px -2px rgba(0,0,0,0.16),\\n 0 3px 6px 0 rgba(0,0,0,0.12),\\n 0 5px 12px 4px rgba(0,0,0,0.09)\\n ',\n boxShadowDrawerDown:\n '\\n 0 -6px 16px 0 rgba(0,0,0,0.08),\\n 0 -3px 6px -4px rgba(0,0,0,0.12),\\n 0 -9px 28px 8px rgba(0,0,0,0.05)\\n ',\n boxShadowDrawerLeft:\n '\\n 6px 0 16px 0 rgba(0,0,0,0.08),\\n 3px 0 6px -4px rgba(0,0,0,0.12),\\n 9px 0 28px 8px rgba(0,0,0,0.05)\\n ',\n boxShadowDrawerRight:\n '\\n -6px 0 16px 0 rgba(0,0,0,0.08),\\n -3px 0 6px -4px rgba(0,0,0,0.12),\\n -9px 0 28px 8px rgba(0,0,0,0.05)\\n ',\n boxShadowDrawerUp:\n '\\n 0 6px 16px 0 rgba(0,0,0,0.08),\\n 0 3px 6px -4px rgba(0,0,0,0.12),\\n 0 9px 28px 8px rgba(0,0,0,0.05)\\n ',\n boxShadowPopoverArrow: '2px 2px 5px rgba(0,0,0,0.05)',\n boxShadowTabsOverflowBottom: 'inset 0 -10px 8px -8px rgba(0,0,0,0.08)',\n boxShadowTabsOverflowLeft: 'inset 10px 0 8px -8px rgba(0,0,0,0.08)',\n boxShadowTabsOverflowRight: 'inset -10px 0 8px -8px rgba(0,0,0,0.08)',\n boxShadowTabsOverflowTop: 'inset 0 10px 8px -8px rgba(0,0,0,0.08)',\n colorBgBase: '#fff',\n colorBgBlur: 'transparent',\n colorBgSolid: 'rgb(0,0,0)',\n colorBgSolidActive: 'rgba(0,0,0,0.95)',\n colorBgSolidHover: 'rgba(0,0,0,0.75)',\n colorBorderDisabled: '#d9d9d9',\n colorErrorBgActive: '#ffccc7',\n colorErrorBgFilledHover: '#ffdfdc',\n colorShadow: '#000',\n colorTextBase: '#000',\n dropShadowPopover:\n 'drop-shadow(0 6px 16px rgba(0,0,0,0.08)) drop-shadow(0 3px 6px rgba(0,0,0,0.12)) drop-shadow(0 9px 28px rgba(0,0,0,0.05))',\n pink1: '#fff0f6',\n pink10: '#520339',\n pink2: '#ffd6e7',\n pink3: '#ffadd2',\n pink4: '#ff85c0',\n pink5: '#f759ab',\n pink6: '#eb2f96',\n pink7: '#c41d7f',\n pink8: '#9e1068',\n pink9: '#780650',\n pinkActive: '#c41d7f',\n pinkHover: '#f759ab',\n },\n};\n"],"mappings":";AAAA,MAAa,cAAc;CACzB,MAAM;EACJ,eACE;EACF,qBACE;EACF,qBACE;EACF,sBACE;EACF,mBACE;EACF,uBAAuB;EACvB,6BAA6B;EAC7B,2BAA2B;EAC3B,4BAA4B;EAC5B,0BAA0B;EAC1B,aAAa;EACb,aAAa;EACb,cAAc;EACd,oBAAoB;EACpB,mBAAmB;EACnB,qBAAqB;EACrB,oBAAoB;EACpB,yBAAyB;EACzB,aAAa;EACb,eAAe;EACf,mBACE;EACF,OAAO;EACP,QAAQ;EACR,OAAO;EACP,OAAO;EACP,OAAO;EACP,OAAO;EACP,OAAO;EACP,OAAO;EACP,OAAO;EACP,OAAO;EACP,YAAY;EACZ,WAAW;CACb;CACA,OAAO;EACL,eACE;EACF,qBACE;EACF,qBACE;EACF,sBACE;EACF,mBACE;EACF,uBAAuB;EACvB,6BAA6B;EAC7B,2BAA2B;EAC3B,4BAA4B;EAC5B,0BAA0B;EAC1B,aAAa;EACb,aAAa;EACb,cAAc;EACd,oBAAoB;EACpB,mBAAmB;EACnB,qBAAqB;EACrB,oBAAoB;EACpB,yBAAyB;EACzB,aAAa;EACb,eAAe;EACf,mBACE;EACF,OAAO;EACP,QAAQ;EACR,OAAO;EACP,OAAO;EACP,OAAO;EACP,OAAO;EACP,OAAO;EACP,OAAO;EACP,OAAO;EACP,OAAO;EACP,YAAY;EACZ,WAAW;CACb;AACF"}
|
|
@@ -2,6 +2,7 @@ import gray from "../../../color/colors/gray.mjs";
|
|
|
2
2
|
import { neutralColorScales } from "../../../color/neutrals/index.mjs";
|
|
3
3
|
import { mixColors, parseRgb } from "../../../utils/colorMath.mjs";
|
|
4
4
|
import { generateColorNeutralPalette } from "../generateColorPalette.mjs";
|
|
5
|
+
import { neutralText } from "./neutralText.mjs";
|
|
5
6
|
//#region src/styles/theme/token/neutral.ts
|
|
6
7
|
const isChannel = (value) => value >= 0 && value <= 255;
|
|
7
8
|
const getAlphaColor = (front, back) => {
|
|
@@ -21,10 +22,17 @@ const getAlphaColor = (front, back) => {
|
|
|
21
22
|
};
|
|
22
23
|
const createNeutralToken = (appearance, neutralColor, status) => {
|
|
23
24
|
const scale = neutralColor && neutralColorScales[neutralColor] || gray;
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
const [colorText, colorTextSecondary, colorTextTertiary, colorTextQuaternary] = neutralText[neutralColor && neutralColorScales[neutralColor] && neutralColor || "gray"][appearance];
|
|
26
|
+
const token = {
|
|
27
|
+
...generateColorNeutralPalette({
|
|
28
|
+
appearance,
|
|
29
|
+
scale
|
|
30
|
+
}),
|
|
31
|
+
colorText,
|
|
32
|
+
colorTextQuaternary,
|
|
33
|
+
colorTextSecondary,
|
|
34
|
+
colorTextTertiary
|
|
35
|
+
};
|
|
28
36
|
return {
|
|
29
37
|
...token,
|
|
30
38
|
colorBgContainerDisabled: token.colorFillTertiary,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"neutral.mjs","names":[],"sources":["../../../../src/styles/theme/token/neutral.ts"],"sourcesContent":["import { gray } from '@/color/colors';\nimport { neutralColorScales } from '@/color/neutrals';\nimport { mixColors, parseRgb } from '@/utils/colorMath';\n\nimport type { NeutralColors } from '../../customTheme';\nimport { generateColorNeutralPalette } from '../generateColorPalette';\n\nconst isChannel = (value: number) => value >= 0 && value <= 255;\n\n// port of antd's getAlphaColor: the most transparent rgba that renders `front` over `back`\nconst getAlphaColor = (front: string, back: string) => {\n const f = parseRgb(front);\n if (f.alpha !== undefined) return front;\n const b = parseRgb(back);\n\n for (let alpha = 0.01; alpha <= 1; alpha += 0.01) {\n const r = Math.round((f.red - b.red * (1 - alpha)) / alpha);\n const g = Math.round((f.green - b.green * (1 - alpha)) / alpha);\n const bl = Math.round((f.blue - b.blue * (1 - alpha)) / alpha);\n if (isChannel(r) && isChannel(g) && isChannel(bl)) {\n const a = Math.round(alpha * 100) / 100;\n return a === 1 ? `rgb(${r},${g},${bl})` : `rgba(${r},${g},${bl},${a})`;\n }\n }\n\n return `rgb(${f.red},${f.green},${f.blue})`;\n};\n\nexport const createNeutralToken = (\n appearance: 'light' | 'dark',\n neutralColor: NeutralColors | undefined,\n status: { colorErrorBg: string; colorWarningBg: string },\n) => {\n const scale = (neutralColor && neutralColorScales[neutralColor]) || gray;\n const token = generateColorNeutralPalette({ appearance, scale });\n\n return {\n ...token,\n colorBgContainerDisabled: token.colorFillTertiary,\n colorBgContainerSecondary: mixColors(0.5, token.colorBgLayout, token.colorBgContainer),\n colorBgTextActive: token.colorFill,\n colorBgTextHover: token.colorFillSecondary,\n colorBorderBg: token.colorBgContainer,\n colorErrorOutline: getAlphaColor(status.colorErrorBg, token.colorBgContainer),\n colorFillAlter: token.colorFillQuaternary,\n colorFillContent: token.colorFillSecondary,\n colorFillContentHover: token.colorFill,\n colorIcon: token.colorTextTertiary,\n colorIconHover: token.colorText,\n colorSplit: getAlphaColor(token.colorBorderSecondary, token.colorBgContainer),\n colorTextDescription: token.colorTextTertiary,\n colorTextDisabled: token.colorTextQuaternary,\n colorTextHeading: token.colorText,\n colorTextLabel: token.colorTextSecondary,\n colorTextPlaceholder: token.colorTextQuaternary,\n colorWarningOutline: getAlphaColor(status.colorWarningBg, token.colorBgContainer),\n controlItemBgActiveDisabled: token.colorFill,\n controlItemBgHover: token.colorFillTertiary,\n controlTmpOutline: token.colorFillQuaternary,\n };\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"neutral.mjs","names":[],"sources":["../../../../src/styles/theme/token/neutral.ts"],"sourcesContent":["import { gray } from '@/color/colors';\nimport { neutralColorScales } from '@/color/neutrals';\nimport { mixColors, parseRgb } from '@/utils/colorMath';\n\nimport type { NeutralColors } from '../../customTheme';\nimport { generateColorNeutralPalette } from '../generateColorPalette';\nimport { neutralText } from './neutralText';\n\nconst isChannel = (value: number) => value >= 0 && value <= 255;\n\n// port of antd's getAlphaColor: the most transparent rgba that renders `front` over `back`\nconst getAlphaColor = (front: string, back: string) => {\n const f = parseRgb(front);\n if (f.alpha !== undefined) return front;\n const b = parseRgb(back);\n\n for (let alpha = 0.01; alpha <= 1; alpha += 0.01) {\n const r = Math.round((f.red - b.red * (1 - alpha)) / alpha);\n const g = Math.round((f.green - b.green * (1 - alpha)) / alpha);\n const bl = Math.round((f.blue - b.blue * (1 - alpha)) / alpha);\n if (isChannel(r) && isChannel(g) && isChannel(bl)) {\n const a = Math.round(alpha * 100) / 100;\n return a === 1 ? `rgb(${r},${g},${bl})` : `rgba(${r},${g},${bl},${a})`;\n }\n }\n\n return `rgb(${f.red},${f.green},${f.blue})`;\n};\n\nexport const createNeutralToken = (\n appearance: 'light' | 'dark',\n neutralColor: NeutralColors | undefined,\n status: { colorErrorBg: string; colorWarningBg: string },\n) => {\n const scale = (neutralColor && neutralColorScales[neutralColor]) || gray;\n const [colorText, colorTextSecondary, colorTextTertiary, colorTextQuaternary] =\n neutralText[(neutralColor && neutralColorScales[neutralColor] && neutralColor) || 'gray'][\n appearance\n ];\n const token = {\n ...generateColorNeutralPalette({ appearance, scale }),\n colorText,\n colorTextQuaternary,\n colorTextSecondary,\n colorTextTertiary,\n };\n\n return {\n ...token,\n colorBgContainerDisabled: token.colorFillTertiary,\n colorBgContainerSecondary: mixColors(0.5, token.colorBgLayout, token.colorBgContainer),\n colorBgTextActive: token.colorFill,\n colorBgTextHover: token.colorFillSecondary,\n colorBorderBg: token.colorBgContainer,\n colorErrorOutline: getAlphaColor(status.colorErrorBg, token.colorBgContainer),\n colorFillAlter: token.colorFillQuaternary,\n colorFillContent: token.colorFillSecondary,\n colorFillContentHover: token.colorFill,\n colorIcon: token.colorTextTertiary,\n colorIconHover: token.colorText,\n colorSplit: getAlphaColor(token.colorBorderSecondary, token.colorBgContainer),\n colorTextDescription: token.colorTextTertiary,\n colorTextDisabled: token.colorTextQuaternary,\n colorTextHeading: token.colorText,\n colorTextLabel: token.colorTextSecondary,\n colorTextPlaceholder: token.colorTextQuaternary,\n colorWarningOutline: getAlphaColor(status.colorWarningBg, token.colorBgContainer),\n controlItemBgActiveDisabled: token.colorFill,\n controlItemBgHover: token.colorFillTertiary,\n controlTmpOutline: token.colorFillQuaternary,\n };\n};\n"],"mappings":";;;;;;AAQA,MAAM,aAAa,UAAkB,SAAS,KAAK,SAAS;AAG5D,MAAM,iBAAiB,OAAe,SAAiB;CACrD,MAAM,IAAI,SAAS,KAAK;CACxB,IAAI,EAAE,UAAU,KAAA,GAAW,OAAO;CAClC,MAAM,IAAI,SAAS,IAAI;CAEvB,KAAK,IAAI,QAAQ,KAAM,SAAS,GAAG,SAAS,KAAM;EAChD,MAAM,IAAI,KAAK,OAAO,EAAE,MAAM,EAAE,OAAO,IAAI,UAAU,KAAK;EAC1D,MAAM,IAAI,KAAK,OAAO,EAAE,QAAQ,EAAE,SAAS,IAAI,UAAU,KAAK;EAC9D,MAAM,KAAK,KAAK,OAAO,EAAE,OAAO,EAAE,QAAQ,IAAI,UAAU,KAAK;EAC7D,IAAI,UAAU,CAAC,KAAK,UAAU,CAAC,KAAK,UAAU,EAAE,GAAG;GACjD,MAAM,IAAI,KAAK,MAAM,QAAQ,GAAG,IAAI;GACpC,OAAO,MAAM,IAAI,OAAO,EAAE,GAAG,EAAE,GAAG,GAAG,KAAK,QAAQ,EAAE,GAAG,EAAE,GAAG,GAAG,GAAG,EAAE;EACtE;CACF;CAEA,OAAO,OAAO,EAAE,IAAI,GAAG,EAAE,MAAM,GAAG,EAAE,KAAK;AAC3C;AAEA,MAAa,sBACX,YACA,cACA,WACG;CACH,MAAM,QAAS,gBAAgB,mBAAmB,iBAAkB;CACpE,MAAM,CAAC,WAAW,oBAAoB,mBAAmB,uBACvD,YAAa,gBAAgB,mBAAmB,iBAAiB,gBAAiB,OAAO,CACvF;CAEJ,MAAM,QAAQ;EACZ,GAAG,4BAA4B;GAAE;GAAY;EAAM,CAAC;EACpD;EACA;EACA;EACA;CACF;CAEA,OAAO;EACL,GAAG;EACH,0BAA0B,MAAM;EAChC,2BAA2B,UAAU,IAAK,MAAM,eAAe,MAAM,gBAAgB;EACrF,mBAAmB,MAAM;EACzB,kBAAkB,MAAM;EACxB,eAAe,MAAM;EACrB,mBAAmB,cAAc,OAAO,cAAc,MAAM,gBAAgB;EAC5E,gBAAgB,MAAM;EACtB,kBAAkB,MAAM;EACxB,uBAAuB,MAAM;EAC7B,WAAW,MAAM;EACjB,gBAAgB,MAAM;EACtB,YAAY,cAAc,MAAM,sBAAsB,MAAM,gBAAgB;EAC5E,sBAAsB,MAAM;EAC5B,mBAAmB,MAAM;EACzB,kBAAkB,MAAM;EACxB,gBAAgB,MAAM;EACtB,sBAAsB,MAAM;EAC5B,qBAAqB,cAAc,OAAO,gBAAgB,MAAM,gBAAgB;EAChF,6BAA6B,MAAM;EACnC,oBAAoB,MAAM;EAC1B,mBAAmB,MAAM;CAC3B;AACF"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
//#region src/styles/theme/token/neutralText.ts
|
|
2
|
+
const neutralText = {
|
|
3
|
+
gray: {
|
|
4
|
+
dark: [
|
|
5
|
+
"#e6e6e6",
|
|
6
|
+
"#b4b4b4",
|
|
7
|
+
"#8f8f8f",
|
|
8
|
+
"#6b6b6b"
|
|
9
|
+
],
|
|
10
|
+
light: [
|
|
11
|
+
"#1f1f1f",
|
|
12
|
+
"#666666",
|
|
13
|
+
"#8a8a8a",
|
|
14
|
+
"#b0b0b0"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
mauve: {
|
|
18
|
+
dark: [
|
|
19
|
+
"#e9e5ec",
|
|
20
|
+
"#b6b3b9",
|
|
21
|
+
"#908e94",
|
|
22
|
+
"#6c6a70"
|
|
23
|
+
],
|
|
24
|
+
light: [
|
|
25
|
+
"#1f1f23",
|
|
26
|
+
"#67656b",
|
|
27
|
+
"#8b898f",
|
|
28
|
+
"#b1afb5"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
olive: {
|
|
32
|
+
dark: [
|
|
33
|
+
"#e5e7e1",
|
|
34
|
+
"#b2b5af",
|
|
35
|
+
"#8d908b",
|
|
36
|
+
"#696c67"
|
|
37
|
+
],
|
|
38
|
+
light: [
|
|
39
|
+
"#1d201c",
|
|
40
|
+
"#646762",
|
|
41
|
+
"#888b85",
|
|
42
|
+
"#aeb1aa"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
sage: {
|
|
46
|
+
dark: [
|
|
47
|
+
"#e3e7e4",
|
|
48
|
+
"#b0b5b3",
|
|
49
|
+
"#8b908e",
|
|
50
|
+
"#676c6a"
|
|
51
|
+
],
|
|
52
|
+
light: [
|
|
53
|
+
"#1b201e",
|
|
54
|
+
"#616765",
|
|
55
|
+
"#868c89",
|
|
56
|
+
"#abb1ae"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
sand: {
|
|
60
|
+
dark: [
|
|
61
|
+
"#e9e6dc",
|
|
62
|
+
"#b6b4ab",
|
|
63
|
+
"#918f87",
|
|
64
|
+
"#6c6b63"
|
|
65
|
+
],
|
|
66
|
+
light: [
|
|
67
|
+
"#1f201a",
|
|
68
|
+
"#67665f",
|
|
69
|
+
"#8b8a82",
|
|
70
|
+
"#b2b0a8"
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
slate: {
|
|
74
|
+
dark: [
|
|
75
|
+
"#e5e6ea",
|
|
76
|
+
"#b3b4b8",
|
|
77
|
+
"#8d8f93",
|
|
78
|
+
"#696b6f"
|
|
79
|
+
],
|
|
80
|
+
light: [
|
|
81
|
+
"#1d1f22",
|
|
82
|
+
"#646669",
|
|
83
|
+
"#888a8d",
|
|
84
|
+
"#aeb0b3"
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
//#endregion
|
|
89
|
+
export { neutralText };
|
|
90
|
+
|
|
91
|
+
//# sourceMappingURL=neutralText.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"neutralText.mjs","names":[],"sources":["../../../../src/styles/theme/token/neutralText.ts"],"sourcesContent":["export type NeutralTextLadder = Record<'dark' | 'light', [string, string, string, string]>;\n\nexport const neutralText: Record<string, NeutralTextLadder> = {\n gray: {\n dark: ['#e6e6e6', '#b4b4b4', '#8f8f8f', '#6b6b6b'],\n light: ['#1f1f1f', '#666666', '#8a8a8a', '#b0b0b0'],\n },\n mauve: {\n dark: ['#e9e5ec', '#b6b3b9', '#908e94', '#6c6a70'],\n light: ['#1f1f23', '#67656b', '#8b898f', '#b1afb5'],\n },\n olive: {\n dark: ['#e5e7e1', '#b2b5af', '#8d908b', '#696c67'],\n light: ['#1d201c', '#646762', '#888b85', '#aeb1aa'],\n },\n sage: {\n dark: ['#e3e7e4', '#b0b5b3', '#8b908e', '#676c6a'],\n light: ['#1b201e', '#616765', '#868c89', '#abb1ae'],\n },\n sand: {\n dark: ['#e9e6dc', '#b6b4ab', '#918f87', '#6c6b63'],\n light: ['#1f201a', '#67665f', '#8b8a82', '#b2b0a8'],\n },\n slate: {\n dark: ['#e5e6ea', '#b3b4b8', '#8d8f93', '#696b6f'],\n light: ['#1d1f22', '#646669', '#888a8d', '#aeb0b3'],\n },\n};\n"],"mappings":";AAEA,MAAa,cAAiD;CAC5D,MAAM;EACJ,MAAM;GAAC;GAAW;GAAW;GAAW;EAAS;EACjD,OAAO;GAAC;GAAW;GAAW;GAAW;EAAS;CACpD;CACA,OAAO;EACL,MAAM;GAAC;GAAW;GAAW;GAAW;EAAS;EACjD,OAAO;GAAC;GAAW;GAAW;GAAW;EAAS;CACpD;CACA,OAAO;EACL,MAAM;GAAC;GAAW;GAAW;GAAW;EAAS;EACjD,OAAO;GAAC;GAAW;GAAW;GAAW;EAAS;CACpD;CACA,MAAM;EACJ,MAAM;GAAC;GAAW;GAAW;GAAW;EAAS;EACjD,OAAO;GAAC;GAAW;GAAW;GAAW;EAAS;CACpD;CACA,MAAM;EACJ,MAAM;GAAC;GAAW;GAAW;GAAW;EAAS;EACjD,OAAO;GAAC;GAAW;GAAW;GAAW;EAAS;CACpD;CACA,OAAO;EACL,MAAM;GAAC;GAAW;GAAW;GAAW;EAAS;EACjD,OAAO;GAAC;GAAW;GAAW;GAAW;EAAS;CACpD;AACF"}
|
|
@@ -1,51 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
import geekblue from "../../../color/colors/geekblue.mjs";
|
|
3
|
-
import gold from "../../../color/colors/gold.mjs";
|
|
4
|
-
import green from "../../../color/colors/green.mjs";
|
|
5
|
-
import lime from "../../../color/colors/lime.mjs";
|
|
6
|
-
import red from "../../../color/colors/red.mjs";
|
|
7
|
-
import volcano from "../../../color/colors/volcano.mjs";
|
|
1
|
+
import { statusColorScales } from "../../../color/status/index.mjs";
|
|
8
2
|
import { generateColorPalette } from "../generateColorPalette.mjs";
|
|
9
3
|
import { generateCustomColorToken } from "../customToken.mjs";
|
|
10
4
|
import { legacyToken } from "./legacy.mjs";
|
|
11
5
|
import { shadowToken } from "./shadow.mjs";
|
|
12
6
|
//#region src/styles/theme/token/palette.ts
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
error: red,
|
|
16
|
-
info: blueGeekblueMix,
|
|
17
|
-
success: lime,
|
|
18
|
-
warning: gold
|
|
19
|
-
},
|
|
20
|
-
light: {
|
|
21
|
-
error: volcano,
|
|
22
|
-
info: geekblue,
|
|
23
|
-
success: green,
|
|
24
|
-
warning: gold
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
const createPaletteToken = (appearance) => {
|
|
28
|
-
const scales = statusScales[appearance];
|
|
29
|
-
const error = generateColorPalette({
|
|
30
|
-
appearance,
|
|
31
|
-
scale: scales.error,
|
|
32
|
-
type: "Error"
|
|
33
|
-
});
|
|
34
|
-
const info = generateColorPalette({
|
|
35
|
-
appearance,
|
|
36
|
-
scale: scales.info,
|
|
37
|
-
type: "Info"
|
|
38
|
-
});
|
|
39
|
-
const success = generateColorPalette({
|
|
7
|
+
const createStatusPalette = (appearance, scale, type) => {
|
|
8
|
+
const palette = generateColorPalette({
|
|
40
9
|
appearance,
|
|
41
|
-
scale
|
|
42
|
-
type
|
|
43
|
-
});
|
|
44
|
-
const warning = generateColorPalette({
|
|
45
|
-
appearance,
|
|
46
|
-
scale: scales.warning,
|
|
47
|
-
type: "Warning"
|
|
10
|
+
scale,
|
|
11
|
+
type
|
|
48
12
|
});
|
|
13
|
+
if (appearance === "dark") return palette;
|
|
14
|
+
return {
|
|
15
|
+
...palette,
|
|
16
|
+
[`color${type}Text`]: scale.light[10]
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
const createPaletteToken = (appearance, scales = statusColorScales) => {
|
|
20
|
+
const error = createStatusPalette(appearance, scales.error, "Error");
|
|
21
|
+
const info = createStatusPalette(appearance, scales.info, "Info");
|
|
22
|
+
const success = createStatusPalette(appearance, scales.success, "Success");
|
|
23
|
+
const warning = createStatusPalette(appearance, scales.warning, "Warning");
|
|
49
24
|
return {
|
|
50
25
|
...legacyToken[appearance],
|
|
51
26
|
...error,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"palette.mjs","names":[
|
|
1
|
+
{"version":3,"file":"palette.mjs","names":[],"sources":["../../../../src/styles/theme/token/palette.ts"],"sourcesContent":["import { type StatusColorScales, statusColorScales } from '@/color/status';\nimport type { ColorScaleItem } from '@/color/types';\n\nimport { generateCustomColorToken } from '../customToken';\nimport { generateColorPalette } from '../generateColorPalette';\nimport { legacyToken } from './legacy';\nimport { shadowToken } from './shadow';\n\nconst createStatusPalette = <T extends string>(\n appearance: 'light' | 'dark',\n scale: ColorScaleItem,\n type: T,\n) => {\n const palette = generateColorPalette({ appearance, scale, type });\n if (appearance === 'dark') return palette;\n return { ...palette, [`color${type}Text`]: scale.light[10] } as typeof palette;\n};\n\nexport const createPaletteToken = (\n appearance: 'light' | 'dark',\n scales: StatusColorScales = statusColorScales,\n) => {\n const error = createStatusPalette(appearance, scales.error, 'Error');\n const info = createStatusPalette(appearance, scales.info, 'Info');\n const success = createStatusPalette(appearance, scales.success, 'Success');\n const warning = createStatusPalette(appearance, scales.warning, 'Warning');\n\n return {\n ...legacyToken[appearance],\n ...error,\n ...info,\n ...success,\n ...warning,\n ...generateCustomColorToken(appearance === 'dark'),\n ...shadowToken[appearance],\n colorErrorAffix: error.colorError,\n colorHighlight: error.colorError,\n colorLink: info.colorInfoText,\n colorLinkActive: info.colorInfoTextActive,\n colorLinkHover: info.colorInfoTextHover,\n colorWarningAffix: warning.colorWarning,\n };\n};\n"],"mappings":";;;;;;AAQA,MAAM,uBACJ,YACA,OACA,SACG;CACH,MAAM,UAAU,qBAAqB;EAAE;EAAY;EAAO;CAAK,CAAC;CAChE,IAAI,eAAe,QAAQ,OAAO;CAClC,OAAO;EAAE,GAAG;GAAU,QAAQ,KAAK,QAAQ,MAAM,MAAM;CAAI;AAC7D;AAEA,MAAa,sBACX,YACA,SAA4B,sBACzB;CACH,MAAM,QAAQ,oBAAoB,YAAY,OAAO,OAAO,OAAO;CACnE,MAAM,OAAO,oBAAoB,YAAY,OAAO,MAAM,MAAM;CAChE,MAAM,UAAU,oBAAoB,YAAY,OAAO,SAAS,SAAS;CACzE,MAAM,UAAU,oBAAoB,YAAY,OAAO,SAAS,SAAS;CAEzE,OAAO;EACL,GAAG,YAAY;EACf,GAAG;EACH,GAAG;EACH,GAAG;EACH,GAAG;EACH,GAAG,yBAAyB,eAAe,MAAM;EACjD,GAAG,YAAY;EACf,iBAAiB,MAAM;EACvB,gBAAgB,MAAM;EACtB,WAAW,KAAK;EAChB,iBAAiB,KAAK;EACtB,gBAAgB,KAAK;EACrB,mBAAmB,QAAQ;CAC7B;AACF"}
|
|
@@ -60,6 +60,9 @@ const staticToken = {
|
|
|
60
60
|
motionEaseOutBack: "cubic-bezier(0.12, 0.4, 0.29, 1.46)",
|
|
61
61
|
motionEaseOutCirc: "cubic-bezier(0.08, 0.82, 0.17, 1)",
|
|
62
62
|
motionEaseOutQuint: "cubic-bezier(0.23, 1, 0.32, 1)",
|
|
63
|
+
motionSpringBouncy: "linear(0, 0.024, 0.086, 0.173, 0.274, 0.38, 0.485, 0.584, 0.675, 0.756, 0.825, 0.883, 0.931, 0.968, 0.997, 1.017, 1.031, 1.04, 1.045, 1.046, 1.045, 1.042, 1.038, 1.033, 1.028, 1.023, 1.019, 1.015, 1.011, 1.008, 1.005, 1)",
|
|
64
|
+
motionSpringSmooth: "linear(0, 0.036, 0.12, 0.225, 0.334, 0.438, 0.533, 0.616, 0.688, 0.748, 0.797, 0.838, 0.872, 0.898, 0.92, 0.937, 0.951, 0.962, 0.97, 0.977, 0.982, 0.986, 0.989, 0.992, 0.994, 0.995, 0.996, 0.997, 0.998, 0.998, 0.999, 1)",
|
|
65
|
+
motionSpringSnappy: "linear(0, 0.032, 0.111, 0.216, 0.33, 0.444, 0.552, 0.648, 0.731, 0.801, 0.858, 0.904, 0.939, 0.965, 0.984, 0.998, 1.006, 1.012, 1.014, 1.015, 1.015, 1.014, 1.012, 1.01, 1.009, 1.007, 1.006, 1.004, 1.003, 1.002, 1.002, 1)",
|
|
63
66
|
motionUnit: .1,
|
|
64
67
|
opacityImage: 1,
|
|
65
68
|
opacityLoading: .65,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static.mjs","names":[],"sources":["../../../../src/styles/theme/token/static.ts"],"sourcesContent":["import { baseToken } from './base';\n\nexport const staticToken = {\n borderRadiusOuter: 6,\n colorTextLightSolid: '#fff',\n colorWhite: '#fff',\n controlHeightLG: 45,\n controlHeightSM: 27,\n controlHeightXS: 18,\n controlInteractiveSize: 18,\n controlOutlineWidth: 2,\n controlPaddingHorizontal: 12,\n controlPaddingHorizontalSM: 8,\n fontHeight: 22,\n fontHeightLG: 24,\n fontHeightSM: 20,\n fontSize: 14,\n fontSizeHeading1: 38,\n fontSizeHeading2: 30,\n fontSizeHeading3: 24,\n fontSizeHeading4: 20,\n fontSizeHeading5: 16,\n fontSizeIcon: 12,\n fontSizeLG: 16,\n fontSizeSM: 12,\n fontSizeXL: 20,\n fontWeightStrong: 600,\n lineHeight: 1.5714285714285714,\n lineHeightHeading1: 1.2105263157894737,\n lineHeightHeading2: 1.2666666666666666,\n lineHeightHeading3: 1.3333333333333333,\n lineHeightHeading4: 1.4,\n lineHeightHeading5: 1.5,\n lineHeightLG: 1.5,\n lineHeightSM: 1.6666666666666667,\n lineType: 'solid',\n lineWidth: 1,\n lineWidthBold: 2,\n lineWidthFocus: 3,\n linkDecoration: 'none',\n linkFocusDecoration: 'none',\n linkHoverDecoration: 'none',\n margin: 16,\n marginLG: 24,\n marginMD: 20,\n marginSM: 12,\n marginXL: 32,\n marginXS: 8,\n marginXXL: 48,\n marginXXS: 4,\n motionBase: 0,\n motionDurationFast: '0.1s',\n motionDurationMid: '0.2s',\n motionDurationSlow: '0.3s',\n motionEaseInBack: 'cubic-bezier(0.71, -0.46, 0.88, 0.6)',\n motionEaseInOut: 'cubic-bezier(0.645, 0.045, 0.355, 1)',\n motionEaseInOutCirc: 'cubic-bezier(0.78, 0.14, 0.15, 0.86)',\n motionEaseInQuint: 'cubic-bezier(0.755, 0.05, 0.855, 0.06)',\n motionEaseOut: 'cubic-bezier(0.215, 0.61, 0.355, 1)',\n motionEaseOutBack: 'cubic-bezier(0.12, 0.4, 0.29, 1.46)',\n motionEaseOutCirc: 'cubic-bezier(0.08, 0.82, 0.17, 1)',\n motionEaseOutQuint: 'cubic-bezier(0.23, 1, 0.32, 1)',\n motionUnit: 0.1,\n opacityImage: 1,\n opacityLoading: 0.65,\n padding: 16,\n paddingContentHorizontal: 16,\n paddingContentHorizontalLG: 24,\n paddingContentHorizontalSM: 16,\n paddingContentVertical: 12,\n paddingContentVerticalLG: 16,\n paddingContentVerticalSM: 8,\n paddingLG: 24,\n paddingMD: 20,\n paddingSM: 12,\n paddingXL: 32,\n paddingXS: 8,\n paddingXXS: 4,\n pink: '#EB2F96',\n screenLG: 992,\n screenLGMax: 1199,\n screenLGMin: 992,\n screenMD: 768,\n screenMDMax: 991,\n screenMDMin: 768,\n screenSM: 576,\n screenSMMax: 767,\n screenSMMin: 576,\n screenXL: 1200,\n screenXLMax: 1599,\n screenXLMin: 1200,\n screenXS: 480,\n screenXSMax: 575,\n screenXSMin: 480,\n screenXXL: 1600,\n screenXXLMax: 1919,\n screenXXLMin: 1600,\n screenXXXL: 1920,\n screenXXXLMin: 1920,\n size: 16,\n sizeLG: 24,\n sizeMD: 20,\n sizeMS: 16,\n sizePopupArrow: 16,\n sizeSM: 12,\n sizeStep: 4,\n sizeUnit: 4,\n sizeXL: 32,\n sizeXS: 8,\n sizeXXL: 48,\n sizeXXS: 4,\n zIndexBase: 0,\n zIndexPopupBase: 1000,\n ...baseToken,\n};\n"],"mappings":";;AAEA,MAAa,cAAc;CACzB,mBAAmB;CACnB,qBAAqB;CACrB,YAAY;CACZ,iBAAiB;CACjB,iBAAiB;CACjB,iBAAiB;CACjB,wBAAwB;CACxB,qBAAqB;CACrB,0BAA0B;CAC1B,4BAA4B;CAC5B,YAAY;CACZ,cAAc;CACd,cAAc;CACd,UAAU;CACV,kBAAkB;CAClB,kBAAkB;CAClB,kBAAkB;CAClB,kBAAkB;CAClB,kBAAkB;CAClB,cAAc;CACd,YAAY;CACZ,YAAY;CACZ,YAAY;CACZ,kBAAkB;CAClB,YAAY;CACZ,oBAAoB;CACpB,oBAAoB;CACpB,oBAAoB;CACpB,oBAAoB;CACpB,oBAAoB;CACpB,cAAc;CACd,cAAc;CACd,UAAU;CACV,WAAW;CACX,eAAe;CACf,gBAAgB;CAChB,gBAAgB;CAChB,qBAAqB;CACrB,qBAAqB;CACrB,QAAQ;CACR,UAAU;CACV,UAAU;CACV,UAAU;CACV,UAAU;CACV,UAAU;CACV,WAAW;CACX,WAAW;CACX,YAAY;CACZ,oBAAoB;CACpB,mBAAmB;CACnB,oBAAoB;CACpB,kBAAkB;CAClB,iBAAiB;CACjB,qBAAqB;CACrB,mBAAmB;CACnB,eAAe;CACf,mBAAmB;CACnB,mBAAmB;CACnB,oBAAoB;CACpB,YAAY;CACZ,cAAc;CACd,gBAAgB;CAChB,SAAS;CACT,0BAA0B;CAC1B,4BAA4B;CAC5B,4BAA4B;CAC5B,wBAAwB;CACxB,0BAA0B;CAC1B,0BAA0B;CAC1B,WAAW;CACX,WAAW;CACX,WAAW;CACX,WAAW;CACX,WAAW;CACX,YAAY;CACZ,MAAM;CACN,UAAU;CACV,aAAa;CACb,aAAa;CACb,UAAU;CACV,aAAa;CACb,aAAa;CACb,UAAU;CACV,aAAa;CACb,aAAa;CACb,UAAU;CACV,aAAa;CACb,aAAa;CACb,UAAU;CACV,aAAa;CACb,aAAa;CACb,WAAW;CACX,cAAc;CACd,cAAc;CACd,YAAY;CACZ,eAAe;CACf,MAAM;CACN,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,gBAAgB;CAChB,QAAQ;CACR,UAAU;CACV,UAAU;CACV,QAAQ;CACR,QAAQ;CACR,SAAS;CACT,SAAS;CACT,YAAY;CACZ,iBAAiB;CACjB,GAAG;AACL"}
|
|
1
|
+
{"version":3,"file":"static.mjs","names":[],"sources":["../../../../src/styles/theme/token/static.ts"],"sourcesContent":["import { baseToken } from './base';\n\nexport const staticToken = {\n borderRadiusOuter: 6,\n colorTextLightSolid: '#fff',\n colorWhite: '#fff',\n controlHeightLG: 45,\n controlHeightSM: 27,\n controlHeightXS: 18,\n controlInteractiveSize: 18,\n controlOutlineWidth: 2,\n controlPaddingHorizontal: 12,\n controlPaddingHorizontalSM: 8,\n fontHeight: 22,\n fontHeightLG: 24,\n fontHeightSM: 20,\n fontSize: 14,\n fontSizeHeading1: 38,\n fontSizeHeading2: 30,\n fontSizeHeading3: 24,\n fontSizeHeading4: 20,\n fontSizeHeading5: 16,\n fontSizeIcon: 12,\n fontSizeLG: 16,\n fontSizeSM: 12,\n fontSizeXL: 20,\n fontWeightStrong: 600,\n lineHeight: 1.5714285714285714,\n lineHeightHeading1: 1.2105263157894737,\n lineHeightHeading2: 1.2666666666666666,\n lineHeightHeading3: 1.3333333333333333,\n lineHeightHeading4: 1.4,\n lineHeightHeading5: 1.5,\n lineHeightLG: 1.5,\n lineHeightSM: 1.6666666666666667,\n lineType: 'solid',\n lineWidth: 1,\n lineWidthBold: 2,\n lineWidthFocus: 3,\n linkDecoration: 'none',\n linkFocusDecoration: 'none',\n linkHoverDecoration: 'none',\n margin: 16,\n marginLG: 24,\n marginMD: 20,\n marginSM: 12,\n marginXL: 32,\n marginXS: 8,\n marginXXL: 48,\n marginXXS: 4,\n motionBase: 0,\n motionDurationFast: '0.1s',\n motionDurationMid: '0.2s',\n motionDurationSlow: '0.3s',\n motionEaseInBack: 'cubic-bezier(0.71, -0.46, 0.88, 0.6)',\n motionEaseInOut: 'cubic-bezier(0.645, 0.045, 0.355, 1)',\n motionEaseInOutCirc: 'cubic-bezier(0.78, 0.14, 0.15, 0.86)',\n motionEaseInQuint: 'cubic-bezier(0.755, 0.05, 0.855, 0.06)',\n motionEaseOut: 'cubic-bezier(0.215, 0.61, 0.355, 1)',\n motionEaseOutBack: 'cubic-bezier(0.12, 0.4, 0.29, 1.46)',\n motionEaseOutCirc: 'cubic-bezier(0.08, 0.82, 0.17, 1)',\n motionEaseOutQuint: 'cubic-bezier(0.23, 1, 0.32, 1)',\n motionSpringBouncy:\n 'linear(0, 0.024, 0.086, 0.173, 0.274, 0.38, 0.485, 0.584, 0.675, 0.756, 0.825, 0.883, 0.931, 0.968, 0.997, 1.017, 1.031, 1.04, 1.045, 1.046, 1.045, 1.042, 1.038, 1.033, 1.028, 1.023, 1.019, 1.015, 1.011, 1.008, 1.005, 1)',\n motionSpringSmooth:\n 'linear(0, 0.036, 0.12, 0.225, 0.334, 0.438, 0.533, 0.616, 0.688, 0.748, 0.797, 0.838, 0.872, 0.898, 0.92, 0.937, 0.951, 0.962, 0.97, 0.977, 0.982, 0.986, 0.989, 0.992, 0.994, 0.995, 0.996, 0.997, 0.998, 0.998, 0.999, 1)',\n motionSpringSnappy:\n 'linear(0, 0.032, 0.111, 0.216, 0.33, 0.444, 0.552, 0.648, 0.731, 0.801, 0.858, 0.904, 0.939, 0.965, 0.984, 0.998, 1.006, 1.012, 1.014, 1.015, 1.015, 1.014, 1.012, 1.01, 1.009, 1.007, 1.006, 1.004, 1.003, 1.002, 1.002, 1)',\n motionUnit: 0.1,\n opacityImage: 1,\n opacityLoading: 0.65,\n padding: 16,\n paddingContentHorizontal: 16,\n paddingContentHorizontalLG: 24,\n paddingContentHorizontalSM: 16,\n paddingContentVertical: 12,\n paddingContentVerticalLG: 16,\n paddingContentVerticalSM: 8,\n paddingLG: 24,\n paddingMD: 20,\n paddingSM: 12,\n paddingXL: 32,\n paddingXS: 8,\n paddingXXS: 4,\n pink: '#EB2F96',\n screenLG: 992,\n screenLGMax: 1199,\n screenLGMin: 992,\n screenMD: 768,\n screenMDMax: 991,\n screenMDMin: 768,\n screenSM: 576,\n screenSMMax: 767,\n screenSMMin: 576,\n screenXL: 1200,\n screenXLMax: 1599,\n screenXLMin: 1200,\n screenXS: 480,\n screenXSMax: 575,\n screenXSMin: 480,\n screenXXL: 1600,\n screenXXLMax: 1919,\n screenXXLMin: 1600,\n screenXXXL: 1920,\n screenXXXLMin: 1920,\n size: 16,\n sizeLG: 24,\n sizeMD: 20,\n sizeMS: 16,\n sizePopupArrow: 16,\n sizeSM: 12,\n sizeStep: 4,\n sizeUnit: 4,\n sizeXL: 32,\n sizeXS: 8,\n sizeXXL: 48,\n sizeXXS: 4,\n zIndexBase: 0,\n zIndexPopupBase: 1000,\n ...baseToken,\n};\n"],"mappings":";;AAEA,MAAa,cAAc;CACzB,mBAAmB;CACnB,qBAAqB;CACrB,YAAY;CACZ,iBAAiB;CACjB,iBAAiB;CACjB,iBAAiB;CACjB,wBAAwB;CACxB,qBAAqB;CACrB,0BAA0B;CAC1B,4BAA4B;CAC5B,YAAY;CACZ,cAAc;CACd,cAAc;CACd,UAAU;CACV,kBAAkB;CAClB,kBAAkB;CAClB,kBAAkB;CAClB,kBAAkB;CAClB,kBAAkB;CAClB,cAAc;CACd,YAAY;CACZ,YAAY;CACZ,YAAY;CACZ,kBAAkB;CAClB,YAAY;CACZ,oBAAoB;CACpB,oBAAoB;CACpB,oBAAoB;CACpB,oBAAoB;CACpB,oBAAoB;CACpB,cAAc;CACd,cAAc;CACd,UAAU;CACV,WAAW;CACX,eAAe;CACf,gBAAgB;CAChB,gBAAgB;CAChB,qBAAqB;CACrB,qBAAqB;CACrB,QAAQ;CACR,UAAU;CACV,UAAU;CACV,UAAU;CACV,UAAU;CACV,UAAU;CACV,WAAW;CACX,WAAW;CACX,YAAY;CACZ,oBAAoB;CACpB,mBAAmB;CACnB,oBAAoB;CACpB,kBAAkB;CAClB,iBAAiB;CACjB,qBAAqB;CACrB,mBAAmB;CACnB,eAAe;CACf,mBAAmB;CACnB,mBAAmB;CACnB,oBAAoB;CACpB,oBACE;CACF,oBACE;CACF,oBACE;CACF,YAAY;CACZ,cAAc;CACd,gBAAgB;CAChB,SAAS;CACT,0BAA0B;CAC1B,4BAA4B;CAC5B,4BAA4B;CAC5B,wBAAwB;CACxB,0BAA0B;CAC1B,0BAA0B;CAC1B,WAAW;CACX,WAAW;CACX,WAAW;CACX,WAAW;CACX,WAAW;CACX,YAAY;CACZ,MAAM;CACN,UAAU;CACV,aAAa;CACb,aAAa;CACb,UAAU;CACV,aAAa;CACb,aAAa;CACb,UAAU;CACV,aAAa;CACb,aAAa;CACb,UAAU;CACV,aAAa;CACb,aAAa;CACb,UAAU;CACV,aAAa;CACb,aAAa;CACb,WAAW;CACX,cAAc;CACd,cAAc;CACd,YAAY;CACZ,eAAe;CACf,MAAM;CACN,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,gBAAgB;CAChB,QAAQ;CACR,UAAU;CACV,UAAU;CACV,QAAQ;CACR,QAAQ;CACR,SAAS;CACT,SAAS;CACT,YAAY;CACZ,iBAAiB;CACjB,GAAG;AACL"}
|