@impulse-ui-native/theme 8.0.0 → 8.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -0
- package/dist/hooks/index.d.mts +6 -3
- package/dist/hooks/use-colors.hook.d.mts +6 -1
- package/dist/hooks/use-components-tokens.hook.d.mts +6 -1
- package/dist/hooks/use-theme.hook.d.mts +6 -1
- package/dist/hooks/use-themed-styles.d.mts +5 -1
- package/dist/index.d.mts +9 -3
- package/dist/providers/index.d.mts +6 -1
- package/dist/providers/theme.provider.d.mts +6 -1
- package/dist/theme/chart-color-tokens.d.mts +5 -0
- package/dist/theme/chart-color-tokens.js +21 -0
- package/dist/theme/chart-color-tokens.js.map +1 -0
- package/dist/theme/create-accordion-tokens.d.mts +6 -1
- package/dist/theme/create-avatar-tokens.d.mts +6 -1
- package/dist/theme/create-badge-tokens.d.mts +6 -1
- package/dist/theme/create-button-tokens.d.mts +6 -1
- package/dist/theme/create-card-tokens.d.mts +6 -1
- package/dist/theme/create-carousel-tokens.d.mts +6 -1
- package/dist/theme/create-charts-tokens.d.mts +42 -0
- package/dist/theme/create-charts-tokens.js +25 -0
- package/dist/theme/create-charts-tokens.js.map +1 -0
- package/dist/theme/create-checkbox-tokens.d.mts +6 -1
- package/dist/theme/create-control-tokens.d.mts +6 -1
- package/dist/theme/create-data-state-tokens.d.mts +6 -1
- package/dist/theme/create-datetime-picker.d.mts +6 -1
- package/dist/theme/create-divider-tokens.d.mts +6 -1
- package/dist/theme/create-flyout-tokens.d.mts +6 -1
- package/dist/theme/create-flyout-tokens.js +2 -0
- package/dist/theme/create-flyout-tokens.js.map +1 -1
- package/dist/theme/create-icon-button-tokens.d.mts +6 -1
- package/dist/theme/create-list-tokens.d.mts +6 -1
- package/dist/theme/create-modal-tokens.d.mts +6 -1
- package/dist/theme/create-modal-tokens.js +2 -0
- package/dist/theme/create-modal-tokens.js.map +1 -1
- package/dist/theme/create-pagination-tokens.d.mts +6 -1
- package/dist/theme/create-popover-tokens.d.mts +6 -1
- package/dist/theme/create-progress-tokens.d.mts +6 -1
- package/dist/theme/create-radio-tokens.d.mts +6 -1
- package/dist/theme/create-segmented-control-tokens.d.mts +6 -1
- package/dist/theme/create-select-tokens.d.mts +6 -1
- package/dist/theme/create-skeleton-tokens.d.mts +6 -1
- package/dist/theme/create-slider-tokens.d.mts +6 -1
- package/dist/theme/create-slider-tokens.js +3 -0
- package/dist/theme/create-slider-tokens.js.map +1 -1
- package/dist/theme/create-spinner-tokens.d.mts +6 -1
- package/dist/theme/create-stepper-tokens.d.mts +6 -1
- package/dist/theme/create-switch-tokens.d.mts +6 -1
- package/dist/theme/create-tabs-tokens.d.mts +42 -0
- package/dist/theme/create-tabs-tokens.js +57 -0
- package/dist/theme/create-tabs-tokens.js.map +1 -0
- package/dist/theme/create-tag-tokens.d.mts +6 -1
- package/dist/theme/create-textarea-tokens.d.mts +6 -1
- package/dist/theme/create-time-picker-tokens.d.mts +6 -1
- package/dist/theme/create-toast-tokens.d.mts +6 -1
- package/dist/theme/create-toast-tokens.js +4 -0
- package/dist/theme/create-toast-tokens.js.map +1 -1
- package/dist/theme/dark.theme.d.mts +6 -1
- package/dist/theme/dark.theme.js +4 -0
- package/dist/theme/dark.theme.js.map +1 -1
- package/dist/theme/index.d.mts +10 -3
- package/dist/theme/index.js +2 -0
- package/dist/theme/index.js.map +1 -1
- package/dist/theme/light.theme.d.mts +6 -1
- package/dist/theme/light.theme.js +4 -0
- package/dist/theme/light.theme.js.map +1 -1
- package/dist/theme/tokens.theme.d.mts +10 -4
- package/dist/theme/tokens.theme.js +7 -17
- package/dist/theme/tokens.theme.js.map +1 -1
- package/dist/{theme-provider.types-CPFMVXUS.d.mts → theme-provider.types-CLjz9-IY.d.mts} +12 -1
- package/dist/types/charts-tokens.types.d.mts +31 -0
- package/dist/types/charts-tokens.types.js +1 -0
- package/dist/types/charts-tokens.types.js.map +1 -0
- package/dist/types/flyout-tokens.types.d.mts +6 -0
- package/dist/types/index.d.mts +4 -2
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/modal-tokens.types.d.mts +2 -0
- package/dist/types/shadow.types.d.mts +2 -1
- package/dist/types/slider-tokens.types.d.mts +3 -0
- package/dist/types/tabs-tokens.types.d.mts +30 -0
- package/dist/types/tabs-tokens.types.js +1 -0
- package/dist/types/tabs-tokens.types.js.map +1 -0
- package/dist/types/theme-provider.types.d.mts +6 -1
- package/dist/types/toast-tokens.types.d.mts +7 -2
- package/dist/utils/index.d.mts +5 -1
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/style.utils.d.mts +6 -3
- package/dist/utils/style.utils.js +2 -2
- package/dist/utils/style.utils.js.map +1 -1
- package/dist/utils/tabs-state.utils.d.mts +6 -0
- package/dist/utils/tabs-state.utils.js +12 -0
- package/dist/utils/tabs-state.utils.js.map +1 -0
- package/package.json +4 -4
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-CLjz9-IY.mjs';
|
|
2
2
|
import '../types/badge-tokens.types.mjs';
|
|
3
3
|
import '../types/components.types.mjs';
|
|
4
4
|
import '../types/carousel-tokens.types.mjs';
|
|
5
|
+
import '../types/charts-tokens.types.mjs';
|
|
6
|
+
import '../types/chart.types.mjs';
|
|
5
7
|
import '../types/checkbox-tokens.types.mjs';
|
|
6
8
|
import '../types/list-tokens.types.mjs';
|
|
7
9
|
import '../types/modal-tokens.types.mjs';
|
|
8
10
|
import '../types/popover-tokens.types.mjs';
|
|
9
11
|
import '../types/radio-tokens.types.mjs';
|
|
12
|
+
import '../types/shadow.types.mjs';
|
|
13
|
+
import 'react-native';
|
|
14
|
+
import '../types/tabs-tokens.types.mjs';
|
|
10
15
|
import '../types/accordion-tokens.types.mjs';
|
|
11
16
|
import '../types/avatar-tokens.types.mjs';
|
|
12
17
|
import '../types/buttons-tokens.types.mjs';
|
package/dist/theme/dark.theme.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { ShadowScale } from "../constants";
|
|
1
2
|
import {
|
|
2
3
|
BorderSizeTokens,
|
|
4
|
+
CodeFontFamilyToken,
|
|
3
5
|
DarkColors,
|
|
4
6
|
FontFamilyTokens,
|
|
5
7
|
FontSizeTokens,
|
|
@@ -10,6 +12,8 @@ import {
|
|
|
10
12
|
SpaceTokens
|
|
11
13
|
} from "./tokens.theme";
|
|
12
14
|
const DarkTheme = {
|
|
15
|
+
shadows: ShadowScale,
|
|
16
|
+
codeFontFamily: CodeFontFamilyToken,
|
|
13
17
|
colors: DarkColors,
|
|
14
18
|
space: SpaceTokens,
|
|
15
19
|
radii: RadiiTokens,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/theme/dark.theme.ts"],"sourcesContent":["import { PrimitiveThemeTokens } from \"../types\";\nimport {\n BorderSizeTokens,\n DarkColors,\n FontFamilyTokens,\n FontSizeTokens,\n FontWeightTokens,\n LetterSpacingTokens,\n LineHeightTokens,\n RadiiTokens,\n SpaceTokens,\n} from \"./tokens.theme\";\n\nexport const DarkTheme: PrimitiveThemeTokens = {\n colors: DarkColors,\n space: SpaceTokens,\n radii: RadiiTokens,\n fontFamily: FontFamilyTokens,\n borderSize: BorderSizeTokens,\n fontSize: FontSizeTokens,\n fontWeight: FontWeightTokens,\n lineHeight: LineHeightTokens,\n letterSpacing: LetterSpacingTokens,\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/theme/dark.theme.ts"],"sourcesContent":["import { ShadowScale } from \"../constants\";\nimport { PrimitiveThemeTokens } from \"../types\";\nimport {\n BorderSizeTokens,\n CodeFontFamilyToken,\n DarkColors,\n FontFamilyTokens,\n FontSizeTokens,\n FontWeightTokens,\n LetterSpacingTokens,\n LineHeightTokens,\n RadiiTokens,\n SpaceTokens,\n} from \"./tokens.theme\";\n\nexport const DarkTheme: PrimitiveThemeTokens = {\n shadows: ShadowScale,\n codeFontFamily: CodeFontFamilyToken,\n colors: DarkColors,\n space: SpaceTokens,\n radii: RadiiTokens,\n fontFamily: FontFamilyTokens,\n borderSize: BorderSizeTokens,\n fontSize: FontSizeTokens,\n fontWeight: FontWeightTokens,\n lineHeight: LineHeightTokens,\n letterSpacing: LetterSpacingTokens,\n};\n"],"mappings":"AAAA,SAAS,mBAAmB;AAE5B;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEA,MAAM,YAAkC;AAAA,EAC7C,SAAS;AAAA,EACT,gBAAgB;AAAA,EAChB,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,eAAe;AACjB;","names":[]}
|
package/dist/theme/index.d.mts
CHANGED
|
@@ -1,22 +1,30 @@
|
|
|
1
1
|
export { DarkTheme } from './dark.theme.mjs';
|
|
2
2
|
export { LightTheme } from './light.theme.mjs';
|
|
3
|
-
export { BorderSizeTokens,
|
|
3
|
+
export { BorderSizeTokens, CodeFontFamilyToken, DarkColors, FontFamilyTokens, FontFamilyWeightsItalicTokens, FontFamilyWeightsNormalTokens, FontSizeTokens, FontWeightTokens, LetterSpacingTokens, LightColors, LineHeightTokens, NeutralColorTokens, RadiiTokens, SpaceTokens, createComponentsTokens } from './tokens.theme.mjs';
|
|
4
|
+
export { createChartsTokens } from './create-charts-tokens.mjs';
|
|
4
5
|
export { createPaginationTokens } from './create-pagination-tokens.mjs';
|
|
5
6
|
export { createSliderTokens } from './create-slider-tokens.mjs';
|
|
6
7
|
export { createSegmentedControlTokens } from './create-segmented-control-tokens.mjs';
|
|
8
|
+
export { createTabsTokens } from './create-tabs-tokens.mjs';
|
|
7
9
|
export { createCarouselTokens } from './create-carousel-tokens.mjs';
|
|
8
10
|
export { createToastTokens } from './create-toast-tokens.mjs';
|
|
9
11
|
export { createPopoverTokens } from './create-popover-tokens.mjs';
|
|
10
12
|
export { createModalTokens } from './create-modal-tokens.mjs';
|
|
11
|
-
|
|
13
|
+
export { ChartColorTokens } from './chart-color-tokens.mjs';
|
|
14
|
+
import '../theme-provider.types-CLjz9-IY.mjs';
|
|
12
15
|
import '../types/badge-tokens.types.mjs';
|
|
13
16
|
import '../types/components.types.mjs';
|
|
14
17
|
import '../types/carousel-tokens.types.mjs';
|
|
18
|
+
import '../types/charts-tokens.types.mjs';
|
|
19
|
+
import '../types/chart.types.mjs';
|
|
15
20
|
import '../types/checkbox-tokens.types.mjs';
|
|
16
21
|
import '../types/list-tokens.types.mjs';
|
|
17
22
|
import '../types/modal-tokens.types.mjs';
|
|
18
23
|
import '../types/popover-tokens.types.mjs';
|
|
19
24
|
import '../types/radio-tokens.types.mjs';
|
|
25
|
+
import '../types/shadow.types.mjs';
|
|
26
|
+
import 'react-native';
|
|
27
|
+
import '../types/tabs-tokens.types.mjs';
|
|
20
28
|
import '../types/accordion-tokens.types.mjs';
|
|
21
29
|
import '../types/avatar-tokens.types.mjs';
|
|
22
30
|
import '../types/buttons-tokens.types.mjs';
|
|
@@ -41,4 +49,3 @@ import '../types/tag-tokens.types.mjs';
|
|
|
41
49
|
import '../types/textarea-tokens.types.mjs';
|
|
42
50
|
import '../types/time-picker-token.types.mjs';
|
|
43
51
|
import '../types/tokens.types.mjs';
|
|
44
|
-
import '../types/chart.types.mjs';
|
package/dist/theme/index.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { DarkTheme } from "./dark.theme";
|
|
2
2
|
import { LightTheme } from "./light.theme";
|
|
3
3
|
export * from "./tokens.theme";
|
|
4
|
+
export * from "./create-charts-tokens";
|
|
4
5
|
export * from "./create-pagination-tokens";
|
|
5
6
|
export * from "./create-slider-tokens";
|
|
6
7
|
export * from "./create-segmented-control-tokens";
|
|
8
|
+
export * from "./create-tabs-tokens";
|
|
7
9
|
export * from "./create-carousel-tokens";
|
|
8
10
|
export * from "./create-toast-tokens";
|
|
9
11
|
export * from "./create-popover-tokens";
|
package/dist/theme/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/theme/index.ts"],"sourcesContent":["export { DarkTheme } from \"./dark.theme\";\nexport { LightTheme } from \"./light.theme\";\nexport * from \"./tokens.theme\";\nexport * from \"./create-pagination-tokens\";\nexport * from \"./create-slider-tokens\";\nexport * from \"./create-segmented-control-tokens\";\nexport * from \"./create-carousel-tokens\";\n\nexport * from \"./create-toast-tokens\";\nexport * from \"./create-popover-tokens\";\nexport * from \"./create-modal-tokens\";\n"],"mappings":"AAAA,SAAS,iBAAiB;AAC1B,SAAS,kBAAkB;AAC3B,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/theme/index.ts"],"sourcesContent":["export { DarkTheme } from \"./dark.theme\";\nexport { LightTheme } from \"./light.theme\";\nexport * from \"./tokens.theme\";\nexport * from \"./create-charts-tokens\";\nexport * from \"./create-pagination-tokens\";\nexport * from \"./create-slider-tokens\";\nexport * from \"./create-segmented-control-tokens\";\nexport * from \"./create-tabs-tokens\";\nexport * from \"./create-carousel-tokens\";\n\nexport * from \"./create-toast-tokens\";\nexport * from \"./create-popover-tokens\";\nexport * from \"./create-modal-tokens\";\n"],"mappings":"AAAA,SAAS,iBAAiB;AAC1B,SAAS,kBAAkB;AAC3B,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-CLjz9-IY.mjs';
|
|
2
2
|
import '../types/badge-tokens.types.mjs';
|
|
3
3
|
import '../types/components.types.mjs';
|
|
4
4
|
import '../types/carousel-tokens.types.mjs';
|
|
5
|
+
import '../types/charts-tokens.types.mjs';
|
|
6
|
+
import '../types/chart.types.mjs';
|
|
5
7
|
import '../types/checkbox-tokens.types.mjs';
|
|
6
8
|
import '../types/list-tokens.types.mjs';
|
|
7
9
|
import '../types/modal-tokens.types.mjs';
|
|
8
10
|
import '../types/popover-tokens.types.mjs';
|
|
9
11
|
import '../types/radio-tokens.types.mjs';
|
|
12
|
+
import '../types/shadow.types.mjs';
|
|
13
|
+
import 'react-native';
|
|
14
|
+
import '../types/tabs-tokens.types.mjs';
|
|
10
15
|
import '../types/accordion-tokens.types.mjs';
|
|
11
16
|
import '../types/avatar-tokens.types.mjs';
|
|
12
17
|
import '../types/buttons-tokens.types.mjs';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { ShadowScale } from "../constants";
|
|
1
2
|
import {
|
|
2
3
|
BorderSizeTokens,
|
|
4
|
+
CodeFontFamilyToken,
|
|
3
5
|
FontFamilyTokens,
|
|
4
6
|
FontSizeTokens,
|
|
5
7
|
FontWeightTokens,
|
|
@@ -10,6 +12,8 @@ import {
|
|
|
10
12
|
SpaceTokens
|
|
11
13
|
} from "./tokens.theme";
|
|
12
14
|
const LightTheme = {
|
|
15
|
+
shadows: ShadowScale,
|
|
16
|
+
codeFontFamily: CodeFontFamilyToken,
|
|
13
17
|
colors: LightColors,
|
|
14
18
|
space: SpaceTokens,
|
|
15
19
|
radii: RadiiTokens,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/theme/light.theme.ts"],"sourcesContent":["import { PrimitiveThemeTokens } from \"../types\";\nimport {\n BorderSizeTokens,\n FontFamilyTokens,\n FontSizeTokens,\n FontWeightTokens,\n LetterSpacingTokens,\n LightColors,\n LineHeightTokens,\n RadiiTokens,\n SpaceTokens,\n} from \"./tokens.theme\";\n\nexport const LightTheme: PrimitiveThemeTokens = {\n colors: LightColors,\n space: SpaceTokens,\n radii: RadiiTokens,\n fontFamily: FontFamilyTokens,\n borderSize: BorderSizeTokens,\n fontSize: FontSizeTokens,\n fontWeight: FontWeightTokens,\n lineHeight: LineHeightTokens,\n letterSpacing: LetterSpacingTokens,\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/theme/light.theme.ts"],"sourcesContent":["import { ShadowScale } from \"../constants\";\nimport { PrimitiveThemeTokens } from \"../types\";\nimport {\n BorderSizeTokens,\n CodeFontFamilyToken,\n FontFamilyTokens,\n FontSizeTokens,\n FontWeightTokens,\n LetterSpacingTokens,\n LightColors,\n LineHeightTokens,\n RadiiTokens,\n SpaceTokens,\n} from \"./tokens.theme\";\n\nexport const LightTheme: PrimitiveThemeTokens = {\n shadows: ShadowScale,\n codeFontFamily: CodeFontFamilyToken,\n colors: LightColors,\n space: SpaceTokens,\n radii: RadiiTokens,\n fontFamily: FontFamilyTokens,\n borderSize: BorderSizeTokens,\n fontSize: FontSizeTokens,\n fontWeight: FontWeightTokens,\n lineHeight: LineHeightTokens,\n letterSpacing: LetterSpacingTokens,\n};\n"],"mappings":"AAAA,SAAS,mBAAmB;AAE5B;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEA,MAAM,aAAmC;AAAA,EAC9C,SAAS;AAAA,EACT,gBAAgB;AAAA,EAChB,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,eAAe;AACjB;","names":[]}
|
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
import { ChartColorPalette } from '../types/chart.types.mjs';
|
|
2
1
|
import { BorderSize, FontFamily, FontWeightValue, FontWeightItalic, FontWeightNormal, FontSize, FontWeight, LetterSpacings, LineHeight, NeutralColor, Radii, Space } from '../types/tokens.types.mjs';
|
|
3
|
-
import { T as ThemeColors, P as PrimitiveThemeTokens, c as ComponentsTokens } from '../theme-provider.types-
|
|
2
|
+
import { T as ThemeColors, P as PrimitiveThemeTokens, c as ComponentsTokens } from '../theme-provider.types-CLjz9-IY.mjs';
|
|
3
|
+
export { ChartColorTokens } from './chart-color-tokens.mjs';
|
|
4
4
|
import '../types/badge-tokens.types.mjs';
|
|
5
5
|
import '../types/components.types.mjs';
|
|
6
6
|
import '../types/carousel-tokens.types.mjs';
|
|
7
|
+
import '../types/charts-tokens.types.mjs';
|
|
8
|
+
import '../types/chart.types.mjs';
|
|
7
9
|
import '../types/checkbox-tokens.types.mjs';
|
|
8
10
|
import '../types/list-tokens.types.mjs';
|
|
9
11
|
import '../types/modal-tokens.types.mjs';
|
|
10
12
|
import '../types/popover-tokens.types.mjs';
|
|
11
13
|
import '../types/radio-tokens.types.mjs';
|
|
14
|
+
import '../types/shadow.types.mjs';
|
|
15
|
+
import 'react-native';
|
|
16
|
+
import '../types/tabs-tokens.types.mjs';
|
|
12
17
|
import '../types/accordion-tokens.types.mjs';
|
|
13
18
|
import '../types/avatar-tokens.types.mjs';
|
|
14
19
|
import '../types/buttons-tokens.types.mjs';
|
|
@@ -33,7 +38,8 @@ import '../types/tag-tokens.types.mjs';
|
|
|
33
38
|
import '../types/textarea-tokens.types.mjs';
|
|
34
39
|
import '../types/time-picker-token.types.mjs';
|
|
35
40
|
|
|
36
|
-
declare const
|
|
41
|
+
declare const CodeFontFamilyToken = "monospace";
|
|
42
|
+
|
|
37
43
|
declare const SpaceTokens: Space;
|
|
38
44
|
declare const BorderSizeTokens: BorderSize;
|
|
39
45
|
declare const RadiiTokens: Radii;
|
|
@@ -49,4 +55,4 @@ declare const LightColors: ThemeColors;
|
|
|
49
55
|
declare const DarkColors: ThemeColors;
|
|
50
56
|
declare function createComponentsTokens(tokens: PrimitiveThemeTokens): ComponentsTokens;
|
|
51
57
|
|
|
52
|
-
export { BorderSizeTokens,
|
|
58
|
+
export { BorderSizeTokens, CodeFontFamilyToken, DarkColors, FontFamilyTokens, FontFamilyWeightsItalicTokens, FontFamilyWeightsNormalTokens, FontSizeTokens, FontWeightTokens, LetterSpacingTokens, LightColors, LineHeightTokens, NeutralColorTokens, RadiiTokens, SpaceTokens, createComponentsTokens };
|
|
@@ -4,6 +4,7 @@ import { createBadgeTokens } from "./create-badge-tokens";
|
|
|
4
4
|
import { createButtonTokens } from "./create-button-tokens";
|
|
5
5
|
import { createCardTokens } from "./create-card-tokens";
|
|
6
6
|
import { createCarouselTokens } from "./create-carousel-tokens";
|
|
7
|
+
import { createChartsTokens } from "./create-charts-tokens";
|
|
7
8
|
import { createCheckboxTokens } from "./create-checkbox-tokens";
|
|
8
9
|
import {
|
|
9
10
|
createControlAddonTokens,
|
|
@@ -32,27 +33,13 @@ import { createSliderTokens } from "./create-slider-tokens";
|
|
|
32
33
|
import { createSpinnerTokens } from "./create-spinner-tokens";
|
|
33
34
|
import { createStepperTokens } from "./create-stepper-tokens";
|
|
34
35
|
import { createSwitchTokens } from "./create-switch-tokens";
|
|
36
|
+
import { createTabsTokens } from "./create-tabs-tokens";
|
|
35
37
|
import { createTagTokens } from "./create-tag-tokens";
|
|
36
38
|
import { createTextareaTokens } from "./create-textarea-tokens";
|
|
37
39
|
import { createTimePickerTokens } from "./create-time-picker-tokens";
|
|
38
40
|
import { createToastTokens } from "./create-toast-tokens";
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
"#2563eb",
|
|
42
|
-
"#16a34a",
|
|
43
|
-
"#9333ea",
|
|
44
|
-
"#ea580c",
|
|
45
|
-
"#0891b2",
|
|
46
|
-
"#db2777",
|
|
47
|
-
"#65a30d",
|
|
48
|
-
"#4f46e5",
|
|
49
|
-
"#0d9488",
|
|
50
|
-
"#ca8a04",
|
|
51
|
-
"#c026d3",
|
|
52
|
-
"#0284c7",
|
|
53
|
-
"#7c3aed",
|
|
54
|
-
"#9f5f3f"
|
|
55
|
-
];
|
|
41
|
+
const CodeFontFamilyToken = "monospace";
|
|
42
|
+
import { ChartColorTokens } from "./chart-color-tokens";
|
|
56
43
|
const SpaceTokens = {
|
|
57
44
|
none: 0,
|
|
58
45
|
xxs: 4,
|
|
@@ -334,6 +321,7 @@ const DarkColors = {
|
|
|
334
321
|
};
|
|
335
322
|
function createComponentsTokens(tokens) {
|
|
336
323
|
return {
|
|
324
|
+
charts: createChartsTokens(tokens),
|
|
337
325
|
modal: createModalTokens(tokens),
|
|
338
326
|
toast: createToastTokens(tokens),
|
|
339
327
|
popover: createPopoverTokens(tokens),
|
|
@@ -359,6 +347,7 @@ function createComponentsTokens(tokens) {
|
|
|
359
347
|
controlLabel: createControlLabelTokens(tokens),
|
|
360
348
|
select: createSelectTokens(tokens),
|
|
361
349
|
segmentedControl: createSegmentedControlTokens(tokens),
|
|
350
|
+
tabs: createTabsTokens(tokens),
|
|
362
351
|
datetimePicker: createDatetimePickerTokens(tokens),
|
|
363
352
|
divider: createDividerTokens(tokens),
|
|
364
353
|
timePicker: createTimePickerTokens(tokens),
|
|
@@ -375,6 +364,7 @@ function createComponentsTokens(tokens) {
|
|
|
375
364
|
export {
|
|
376
365
|
BorderSizeTokens,
|
|
377
366
|
ChartColorTokens,
|
|
367
|
+
CodeFontFamilyToken,
|
|
378
368
|
DarkColors,
|
|
379
369
|
FontFamilyTokens,
|
|
380
370
|
FontFamilyWeightsItalicTokens,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/theme/tokens.theme.ts"],"sourcesContent":["import type {\n BorderSize,\n ChartColorPalette,\n ComponentsTokens,\n FontFamily,\n FontSize,\n FontWeight,\n FontWeightItalic,\n FontWeightNormal,\n FontWeightValue,\n LetterSpacings,\n LineHeight,\n NeutralColor,\n PrimitiveThemeTokens,\n Radii,\n Space,\n ThemeColors,\n} from \"../types\";\nimport { createAccordionTokens } from \"./create-accordion-tokens\";\nimport { createAvatarTokens } from \"./create-avatar-tokens\";\nimport { createBadgeTokens } from \"./create-badge-tokens\";\nimport { createButtonTokens } from \"./create-button-tokens\";\nimport { createCardTokens } from \"./create-card-tokens\";\nimport { createCarouselTokens } from \"./create-carousel-tokens\";\nimport { createCheckboxTokens } from \"./create-checkbox-tokens\";\nimport {\n createControlAddonTokens,\n createControlContainerTokens,\n createControlErrorTokens,\n createControlInputTokens,\n createControlLabelTokens,\n} from \"./create-control-tokens\";\nimport { createDataStateTokens } from \"./create-data-state-tokens\";\nimport { createDatetimePickerTokens } from \"./create-datetime-picker\";\nimport { createDividerTokens } from \"./create-divider-tokens\";\nimport { createFlyoutTokens } from \"./create-flyout-tokens\";\nimport { createIconButtonTokens } from \"./create-icon-button-tokens\";\nimport { createIconTokens } from \"./create-icon-tokens\";\nimport { createListTokens } from \"./create-list-tokens\";\nimport { createModalTokens } from \"./create-modal-tokens\";\nimport { createPaginationTokens } from \"./create-pagination-tokens\";\nimport { createPopoverTokens } from \"./create-popover-tokens\";\nimport { createPressableTokens } from \"./create-pressable-tokens\";\nimport { createProgressTokens } from \"./create-progress-tokens\";\nimport { createRadioTokens } from \"./create-radio-tokens\";\nimport { createSegmentedControlTokens } from \"./create-segmented-control-tokens\";\nimport { createSelectTokens } from \"./create-select-tokens\";\nimport { createSkeletonTokens } from \"./create-skeleton-tokens\";\nimport { createSliderTokens } from \"./create-slider-tokens\";\nimport { createSpinnerTokens } from \"./create-spinner-tokens\";\nimport { createStepperTokens } from \"./create-stepper-tokens\";\nimport { createSwitchTokens } from \"./create-switch-tokens\";\nimport { createTagTokens } from \"./create-tag-tokens\";\nimport { createTextareaTokens } from \"./create-textarea-tokens\";\nimport { createTimePickerTokens } from \"./create-time-picker-tokens\";\nimport { createToastTokens } from \"./create-toast-tokens\";\n\nexport const ChartColorTokens: ChartColorPalette = [\n \"#F55D6B\",\n \"#2563eb\",\n \"#16a34a\",\n \"#9333ea\",\n \"#ea580c\",\n \"#0891b2\",\n \"#db2777\",\n \"#65a30d\",\n \"#4f46e5\",\n \"#0d9488\",\n \"#ca8a04\",\n \"#c026d3\",\n \"#0284c7\",\n \"#7c3aed\",\n \"#9f5f3f\",\n];\n\nexport const SpaceTokens: Space = {\n none: 0,\n xxs: 4,\n xs: 8,\n mxs: 12,\n sm: 16,\n msm: 24,\n md: 32,\n lg: 48,\n xl: 64,\n xxl: 96,\n};\n\nexport const BorderSizeTokens: BorderSize = {\n sm: 1,\n md: 2,\n lg: 3,\n xl: 5,\n xxl: 10,\n};\n\nexport const RadiiTokens: Radii = {\n sm: 4,\n md: 8,\n lg: 16,\n xl: 32,\n xxl: 64,\n xxxl: 128,\n round: 100000,\n};\n\nexport const FontSizeTokens: FontSize = {\n xxs: 8,\n xs: 12,\n xsm: 14,\n sm: 16,\n md: 18,\n lg: 20,\n xl: 24,\n xxl: 28,\n xxxl: 32,\n huge: 36,\n massive: 40,\n giant: 48,\n colossal: 56,\n};\n\nexport const LineHeightTokens: LineHeight = {\n xxs: 12,\n xs: 16,\n xsm: 20,\n sm: 24,\n md: 26,\n lg: 28,\n xl: 32,\n xxl: 36,\n xxxl: 40,\n huge: 44,\n massive: 48,\n giant: 56,\n colossal: 64,\n};\n\nexport const LetterSpacingTokens: LetterSpacings = {\n tightest: -1,\n tighter: -0.5,\n tight: -0.25,\n normal: 0,\n wide: 0.25,\n wider: 0.5,\n widest: 0.75,\n ultraWide: 1,\n};\n\nexport const FontWeightTokens: FontWeight = {\n thin: 100,\n extraLight: 200,\n light: 300,\n regular: 400,\n medium: 500,\n semiBold: 600,\n bold: 700,\n extraBold: 800,\n black: 900,\n};\n\nexport const FontFamilyWeightsNormalTokens: Record<\n FontWeightValue,\n FontWeightNormal\n> = {\n 100: \"Montserrat_100Thin\",\n 200: \"Montserrat_200ExtraLight\",\n 300: \"Montserrat_300Light\",\n 400: \"Montserrat_400Regular\",\n 500: \"Montserrat_500Medium\",\n 600: \"Montserrat_600SemiBold\",\n 700: \"Montserrat_700Bold\",\n 800: \"Montserrat_800ExtraBold\",\n 900: \"Montserrat_900Black\",\n};\n\nexport const FontFamilyWeightsItalicTokens: Record<\n FontWeightValue,\n FontWeightItalic\n> = {\n 100: \"Montserrat_100Thin_Italic\",\n 200: \"Montserrat_200ExtraLight_Italic\",\n 300: \"Montserrat_300Light_Italic\",\n 400: \"Montserrat_400Regular_Italic\",\n 500: \"Montserrat_500Medium_Italic\",\n 600: \"Montserrat_600SemiBold_Italic\",\n 700: \"Montserrat_700Bold_Italic\",\n 800: \"Montserrat_800ExtraBold_Italic\",\n 900: \"Montserrat_900Black_Italic\",\n};\n\nexport const FontFamilyTokens: FontFamily = {\n normal: FontFamilyWeightsNormalTokens,\n italic: FontFamilyWeightsItalicTokens,\n};\n\nexport const NeutralColorTokens: NeutralColor = {\n \"0\": \"#ffffff\",\n \"1\": \"#f8f9fa\",\n \"2\": \"#f1f3f5\",\n \"3\": \"#e9ecef\",\n \"4\": \"#dee2e6\",\n \"5\": \"#ced4da\",\n \"6\": \"#adb5bd\",\n \"7\": \"#868e96\",\n \"8\": \"#495057\",\n \"9\": \"#343a40\",\n \"10\": \"#212529\",\n \"11\": \"#16191d\",\n \"12\": \"#0d0f12\",\n \"13\": \"#000000\",\n};\n\nexport const LightColors: ThemeColors = {\n primary: {\n value: \"#F55D6B\",\n contrast: NeutralColorTokens[\"0\"],\n },\n\n accent: {\n value: \"#FA9EA7\",\n contrast: NeutralColorTokens[\"11\"],\n },\n\n secondary: {\n value: \"#FEE7E9\",\n contrast: \"#c92a3b\",\n },\n\n neutral: NeutralColorTokens,\n\n surface: {\n primary: {\n value: NeutralColorTokens[\"2\"],\n contrast: NeutralColorTokens[\"11\"],\n },\n secondary: {\n value: NeutralColorTokens[\"0\"],\n contrast: NeutralColorTokens[\"11\"],\n },\n elevated: {\n value: NeutralColorTokens[\"0\"],\n contrast: NeutralColorTokens[\"11\"],\n },\n inverse: {\n value: NeutralColorTokens[\"13\"],\n contrast: NeutralColorTokens[\"0\"],\n },\n },\n\n text: {\n primary: NeutralColorTokens[\"11\"],\n secondary: NeutralColorTokens[\"10\"],\n tertiary: NeutralColorTokens[\"9\"],\n inverse: NeutralColorTokens[\"0\"],\n disabled: NeutralColorTokens[\"7\"],\n },\n\n border: {\n subtle: {\n value: NeutralColorTokens[\"3\"],\n contrast: NeutralColorTokens[\"9\"],\n },\n default: {\n value: NeutralColorTokens[\"4\"],\n contrast: NeutralColorTokens[\"10\"],\n },\n strong: {\n value: NeutralColorTokens[\"6\"],\n contrast: NeutralColorTokens[\"11\"],\n },\n focus: {\n value: \"#c92a3b\",\n contrast: NeutralColorTokens[\"0\"],\n },\n },\n\n feedback: {\n error: {\n value: \"#c92a2a\",\n contrast: \"#fff5f5\",\n },\n warning: {\n value: \"#a65300\",\n contrast: \"#fff4e6\",\n },\n success: {\n value: \"#526b00\",\n contrast: \"#f4fce3\",\n },\n info: {\n value: \"#1864ab\",\n contrast: \"#e7f5ff\",\n },\n },\n\n overlay: \"rgba(0, 0, 0, 0.45)\",\n\n white: NeutralColorTokens[\"0\"],\n black: NeutralColorTokens[\"13\"],\n};\n\nexport const DarkColors: ThemeColors = {\n primary: {\n value: \"#FA9EA7\",\n contrast: NeutralColorTokens[\"11\"],\n },\n\n accent: {\n value: \"#f55d6b\",\n contrast: NeutralColorTokens[\"11\"],\n },\n\n secondary: {\n value: \"#3b2027\",\n contrast: \"#FA9EA7\",\n },\n\n neutral: NeutralColorTokens,\n\n surface: {\n primary: {\n value: NeutralColorTokens[\"11\"],\n contrast: NeutralColorTokens[\"0\"],\n },\n secondary: {\n value: NeutralColorTokens[\"10\"],\n contrast: NeutralColorTokens[\"0\"],\n },\n elevated: {\n value: NeutralColorTokens[\"9\"],\n contrast: NeutralColorTokens[\"0\"],\n },\n inverse: {\n value: NeutralColorTokens[\"0\"],\n contrast: NeutralColorTokens[\"11\"],\n },\n },\n\n text: {\n primary: NeutralColorTokens[\"0\"],\n secondary: NeutralColorTokens[\"2\"],\n tertiary: NeutralColorTokens[\"6\"],\n inverse: NeutralColorTokens[\"11\"],\n disabled: NeutralColorTokens[\"7\"],\n },\n\n border: {\n subtle: {\n value: NeutralColorTokens[\"7\"],\n contrast: NeutralColorTokens[\"6\"],\n },\n default: {\n value: NeutralColorTokens[\"6\"],\n contrast: NeutralColorTokens[\"2\"],\n },\n strong: {\n value: NeutralColorTokens[\"5\"],\n contrast: NeutralColorTokens[\"0\"],\n },\n focus: {\n value: \"#FA9EA7\",\n contrast: NeutralColorTokens[\"11\"],\n },\n },\n\n feedback: {\n error: {\n value: \"#ff8787\",\n contrast: \"#3b1515\",\n },\n warning: {\n value: \"#ffc078\",\n contrast: \"#3b250f\",\n },\n success: {\n value: \"#c0eb75\",\n contrast: \"#26320f\",\n },\n info: {\n value: \"#74c0fc\",\n contrast: \"#102a43\",\n },\n },\n\n overlay: \"rgba(0, 0, 0, 0.65)\",\n\n white: NeutralColorTokens[\"0\"],\n black: NeutralColorTokens[\"13\"],\n};\n\nexport function createComponentsTokens(\n tokens: PrimitiveThemeTokens,\n): ComponentsTokens {\n return {\n modal: createModalTokens(tokens),\n toast: createToastTokens(tokens),\n popover: createPopoverTokens(tokens),\n carousel: createCarouselTokens(tokens),\n accordion: createAccordionTokens(tokens),\n avatar: createAvatarTokens(tokens),\n badge: createBadgeTokens(tokens),\n button: createButtonTokens(tokens),\n card: createCardTokens(tokens),\n list: createListTokens(tokens),\n checkbox: createCheckboxTokens(tokens),\n iconButton: createIconButtonTokens(tokens),\n icon: createIconTokens(),\n pagination: createPaginationTokens(tokens),\n pressable: createPressableTokens(),\n progress: createProgressTokens(tokens),\n radio: createRadioTokens(tokens),\n tag: createTagTokens(tokens),\n controlAddon: createControlAddonTokens(tokens),\n controlContainer: createControlContainerTokens(tokens),\n controlError: createControlErrorTokens(tokens),\n controlInput: createControlInputTokens(tokens),\n controlLabel: createControlLabelTokens(tokens),\n select: createSelectTokens(tokens),\n segmentedControl: createSegmentedControlTokens(tokens),\n datetimePicker: createDatetimePickerTokens(tokens),\n divider: createDividerTokens(tokens),\n timePicker: createTimePickerTokens(tokens),\n flyout: createFlyoutTokens(tokens),\n skeleton: createSkeletonTokens(tokens),\n slider: createSliderTokens(tokens),\n spinner: createSpinnerTokens(tokens),\n stepper: createStepperTokens(tokens),\n switch: createSwitchTokens(tokens),\n textarea: createTextareaTokens(tokens),\n dataState: createDataStateTokens(tokens),\n };\n}\n"],"mappings":"AAkBA,SAAS,6BAA6B;AACtC,SAAS,0BAA0B;AACnC,SAAS,yBAAyB;AAClC,SAAS,0BAA0B;AACnC,SAAS,wBAAwB;AACjC,SAAS,4BAA4B;AACrC,SAAS,4BAA4B;AACrC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,6BAA6B;AACtC,SAAS,kCAAkC;AAC3C,SAAS,2BAA2B;AACpC,SAAS,0BAA0B;AACnC,SAAS,8BAA8B;AACvC,SAAS,wBAAwB;AACjC,SAAS,wBAAwB;AACjC,SAAS,yBAAyB;AAClC,SAAS,8BAA8B;AACvC,SAAS,2BAA2B;AACpC,SAAS,6BAA6B;AACtC,SAAS,4BAA4B;AACrC,SAAS,yBAAyB;AAClC,SAAS,oCAAoC;AAC7C,SAAS,0BAA0B;AACnC,SAAS,4BAA4B;AACrC,SAAS,0BAA0B;AACnC,SAAS,2BAA2B;AACpC,SAAS,2BAA2B;AACpC,SAAS,0BAA0B;AACnC,SAAS,uBAAuB;AAChC,SAAS,4BAA4B;AACrC,SAAS,8BAA8B;AACvC,SAAS,yBAAyB;AAE3B,MAAM,mBAAsC;AAAA,EACjD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEO,MAAM,cAAqB;AAAA,EAChC,MAAM;AAA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,mBAAmB,MAAM;AAAA,IACjC,UAAU,qBAAqB,MAAM;AAAA,IACrC,QAAQ,mBAAmB,MAAM;AAAA,IACjC,SAAS,oBAAoB,MAAM;AAAA,IACnC,SAAS,oBAAoB,MAAM;AAAA,IACnC,QAAQ,mBAAmB,MAAM;AAAA,IACjC,UAAU,qBAAqB,MAAM;AAAA,IACrC,WAAW,sBAAsB,MAAM;AAAA,EACzC;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/theme/tokens.theme.ts"],"sourcesContent":["import type {\n BorderSize,\n ComponentsTokens,\n FontFamily,\n FontSize,\n FontWeight,\n FontWeightItalic,\n FontWeightNormal,\n FontWeightValue,\n LetterSpacings,\n LineHeight,\n NeutralColor,\n PrimitiveThemeTokens,\n Radii,\n Space,\n ThemeColors,\n} from \"../types\";\nimport { createAccordionTokens } from \"./create-accordion-tokens\";\nimport { createAvatarTokens } from \"./create-avatar-tokens\";\nimport { createBadgeTokens } from \"./create-badge-tokens\";\nimport { createButtonTokens } from \"./create-button-tokens\";\nimport { createCardTokens } from \"./create-card-tokens\";\nimport { createCarouselTokens } from \"./create-carousel-tokens\";\nimport { createChartsTokens } from \"./create-charts-tokens\";\nimport { createCheckboxTokens } from \"./create-checkbox-tokens\";\nimport {\n createControlAddonTokens,\n createControlContainerTokens,\n createControlErrorTokens,\n createControlInputTokens,\n createControlLabelTokens,\n} from \"./create-control-tokens\";\nimport { createDataStateTokens } from \"./create-data-state-tokens\";\nimport { createDatetimePickerTokens } from \"./create-datetime-picker\";\nimport { createDividerTokens } from \"./create-divider-tokens\";\nimport { createFlyoutTokens } from \"./create-flyout-tokens\";\nimport { createIconButtonTokens } from \"./create-icon-button-tokens\";\nimport { createIconTokens } from \"./create-icon-tokens\";\nimport { createListTokens } from \"./create-list-tokens\";\nimport { createModalTokens } from \"./create-modal-tokens\";\nimport { createPaginationTokens } from \"./create-pagination-tokens\";\nimport { createPopoverTokens } from \"./create-popover-tokens\";\nimport { createPressableTokens } from \"./create-pressable-tokens\";\nimport { createProgressTokens } from \"./create-progress-tokens\";\nimport { createRadioTokens } from \"./create-radio-tokens\";\nimport { createSegmentedControlTokens } from \"./create-segmented-control-tokens\";\nimport { createSelectTokens } from \"./create-select-tokens\";\nimport { createSkeletonTokens } from \"./create-skeleton-tokens\";\nimport { createSliderTokens } from \"./create-slider-tokens\";\nimport { createSpinnerTokens } from \"./create-spinner-tokens\";\nimport { createStepperTokens } from \"./create-stepper-tokens\";\nimport { createSwitchTokens } from \"./create-switch-tokens\";\nimport { createTabsTokens } from \"./create-tabs-tokens\";\nimport { createTagTokens } from \"./create-tag-tokens\";\nimport { createTextareaTokens } from \"./create-textarea-tokens\";\nimport { createTimePickerTokens } from \"./create-time-picker-tokens\";\nimport { createToastTokens } from \"./create-toast-tokens\";\n\nexport const CodeFontFamilyToken = \"monospace\";\n\nexport { ChartColorTokens } from \"./chart-color-tokens\";\n\nexport const SpaceTokens: Space = {\n none: 0,\n xxs: 4,\n xs: 8,\n mxs: 12,\n sm: 16,\n msm: 24,\n md: 32,\n lg: 48,\n xl: 64,\n xxl: 96,\n};\n\nexport const BorderSizeTokens: BorderSize = {\n sm: 1,\n md: 2,\n lg: 3,\n xl: 5,\n xxl: 10,\n};\n\nexport const RadiiTokens: Radii = {\n sm: 4,\n md: 8,\n lg: 16,\n xl: 32,\n xxl: 64,\n xxxl: 128,\n round: 100000,\n};\n\nexport const FontSizeTokens: FontSize = {\n xxs: 8,\n xs: 12,\n xsm: 14,\n sm: 16,\n md: 18,\n lg: 20,\n xl: 24,\n xxl: 28,\n xxxl: 32,\n huge: 36,\n massive: 40,\n giant: 48,\n colossal: 56,\n};\n\nexport const LineHeightTokens: LineHeight = {\n xxs: 12,\n xs: 16,\n xsm: 20,\n sm: 24,\n md: 26,\n lg: 28,\n xl: 32,\n xxl: 36,\n xxxl: 40,\n huge: 44,\n massive: 48,\n giant: 56,\n colossal: 64,\n};\n\nexport const LetterSpacingTokens: LetterSpacings = {\n tightest: -1,\n tighter: -0.5,\n tight: -0.25,\n normal: 0,\n wide: 0.25,\n wider: 0.5,\n widest: 0.75,\n ultraWide: 1,\n};\n\nexport const FontWeightTokens: FontWeight = {\n thin: 100,\n extraLight: 200,\n light: 300,\n regular: 400,\n medium: 500,\n semiBold: 600,\n bold: 700,\n extraBold: 800,\n black: 900,\n};\n\nexport const FontFamilyWeightsNormalTokens: Record<\n FontWeightValue,\n FontWeightNormal\n> = {\n 100: \"Montserrat_100Thin\",\n 200: \"Montserrat_200ExtraLight\",\n 300: \"Montserrat_300Light\",\n 400: \"Montserrat_400Regular\",\n 500: \"Montserrat_500Medium\",\n 600: \"Montserrat_600SemiBold\",\n 700: \"Montserrat_700Bold\",\n 800: \"Montserrat_800ExtraBold\",\n 900: \"Montserrat_900Black\",\n};\n\nexport const FontFamilyWeightsItalicTokens: Record<\n FontWeightValue,\n FontWeightItalic\n> = {\n 100: \"Montserrat_100Thin_Italic\",\n 200: \"Montserrat_200ExtraLight_Italic\",\n 300: \"Montserrat_300Light_Italic\",\n 400: \"Montserrat_400Regular_Italic\",\n 500: \"Montserrat_500Medium_Italic\",\n 600: \"Montserrat_600SemiBold_Italic\",\n 700: \"Montserrat_700Bold_Italic\",\n 800: \"Montserrat_800ExtraBold_Italic\",\n 900: \"Montserrat_900Black_Italic\",\n};\n\nexport const FontFamilyTokens: FontFamily = {\n normal: FontFamilyWeightsNormalTokens,\n italic: FontFamilyWeightsItalicTokens,\n};\n\nexport const NeutralColorTokens: NeutralColor = {\n \"0\": \"#ffffff\",\n \"1\": \"#f8f9fa\",\n \"2\": \"#f1f3f5\",\n \"3\": \"#e9ecef\",\n \"4\": \"#dee2e6\",\n \"5\": \"#ced4da\",\n \"6\": \"#adb5bd\",\n \"7\": \"#868e96\",\n \"8\": \"#495057\",\n \"9\": \"#343a40\",\n \"10\": \"#212529\",\n \"11\": \"#16191d\",\n \"12\": \"#0d0f12\",\n \"13\": \"#000000\",\n};\n\nexport const LightColors: ThemeColors = {\n primary: {\n value: \"#F55D6B\",\n contrast: NeutralColorTokens[\"0\"],\n },\n\n accent: {\n value: \"#FA9EA7\",\n contrast: NeutralColorTokens[\"11\"],\n },\n\n secondary: {\n value: \"#FEE7E9\",\n contrast: \"#c92a3b\",\n },\n\n neutral: NeutralColorTokens,\n\n surface: {\n primary: {\n value: NeutralColorTokens[\"2\"],\n contrast: NeutralColorTokens[\"11\"],\n },\n secondary: {\n value: NeutralColorTokens[\"0\"],\n contrast: NeutralColorTokens[\"11\"],\n },\n elevated: {\n value: NeutralColorTokens[\"0\"],\n contrast: NeutralColorTokens[\"11\"],\n },\n inverse: {\n value: NeutralColorTokens[\"13\"],\n contrast: NeutralColorTokens[\"0\"],\n },\n },\n\n text: {\n primary: NeutralColorTokens[\"11\"],\n secondary: NeutralColorTokens[\"10\"],\n tertiary: NeutralColorTokens[\"9\"],\n inverse: NeutralColorTokens[\"0\"],\n disabled: NeutralColorTokens[\"7\"],\n },\n\n border: {\n subtle: {\n value: NeutralColorTokens[\"3\"],\n contrast: NeutralColorTokens[\"9\"],\n },\n default: {\n value: NeutralColorTokens[\"4\"],\n contrast: NeutralColorTokens[\"10\"],\n },\n strong: {\n value: NeutralColorTokens[\"6\"],\n contrast: NeutralColorTokens[\"11\"],\n },\n focus: {\n value: \"#c92a3b\",\n contrast: NeutralColorTokens[\"0\"],\n },\n },\n\n feedback: {\n error: {\n value: \"#c92a2a\",\n contrast: \"#fff5f5\",\n },\n warning: {\n value: \"#a65300\",\n contrast: \"#fff4e6\",\n },\n success: {\n value: \"#526b00\",\n contrast: \"#f4fce3\",\n },\n info: {\n value: \"#1864ab\",\n contrast: \"#e7f5ff\",\n },\n },\n\n overlay: \"rgba(0, 0, 0, 0.45)\",\n\n white: NeutralColorTokens[\"0\"],\n black: NeutralColorTokens[\"13\"],\n};\n\nexport const DarkColors: ThemeColors = {\n primary: {\n value: \"#FA9EA7\",\n contrast: NeutralColorTokens[\"11\"],\n },\n\n accent: {\n value: \"#f55d6b\",\n contrast: NeutralColorTokens[\"11\"],\n },\n\n secondary: {\n value: \"#3b2027\",\n contrast: \"#FA9EA7\",\n },\n\n neutral: NeutralColorTokens,\n\n surface: {\n primary: {\n value: NeutralColorTokens[\"11\"],\n contrast: NeutralColorTokens[\"0\"],\n },\n secondary: {\n value: NeutralColorTokens[\"10\"],\n contrast: NeutralColorTokens[\"0\"],\n },\n elevated: {\n value: NeutralColorTokens[\"9\"],\n contrast: NeutralColorTokens[\"0\"],\n },\n inverse: {\n value: NeutralColorTokens[\"0\"],\n contrast: NeutralColorTokens[\"11\"],\n },\n },\n\n text: {\n primary: NeutralColorTokens[\"0\"],\n secondary: NeutralColorTokens[\"2\"],\n tertiary: NeutralColorTokens[\"6\"],\n inverse: NeutralColorTokens[\"11\"],\n disabled: NeutralColorTokens[\"7\"],\n },\n\n border: {\n subtle: {\n value: NeutralColorTokens[\"7\"],\n contrast: NeutralColorTokens[\"6\"],\n },\n default: {\n value: NeutralColorTokens[\"6\"],\n contrast: NeutralColorTokens[\"2\"],\n },\n strong: {\n value: NeutralColorTokens[\"5\"],\n contrast: NeutralColorTokens[\"0\"],\n },\n focus: {\n value: \"#FA9EA7\",\n contrast: NeutralColorTokens[\"11\"],\n },\n },\n\n feedback: {\n error: {\n value: \"#ff8787\",\n contrast: \"#3b1515\",\n },\n warning: {\n value: \"#ffc078\",\n contrast: \"#3b250f\",\n },\n success: {\n value: \"#c0eb75\",\n contrast: \"#26320f\",\n },\n info: {\n value: \"#74c0fc\",\n contrast: \"#102a43\",\n },\n },\n\n overlay: \"rgba(0, 0, 0, 0.65)\",\n\n white: NeutralColorTokens[\"0\"],\n black: NeutralColorTokens[\"13\"],\n};\n\nexport function createComponentsTokens(\n tokens: PrimitiveThemeTokens,\n): ComponentsTokens {\n return {\n charts: createChartsTokens(tokens),\n modal: createModalTokens(tokens),\n toast: createToastTokens(tokens),\n popover: createPopoverTokens(tokens),\n carousel: createCarouselTokens(tokens),\n accordion: createAccordionTokens(tokens),\n avatar: createAvatarTokens(tokens),\n badge: createBadgeTokens(tokens),\n button: createButtonTokens(tokens),\n card: createCardTokens(tokens),\n list: createListTokens(tokens),\n checkbox: createCheckboxTokens(tokens),\n iconButton: createIconButtonTokens(tokens),\n icon: createIconTokens(),\n pagination: createPaginationTokens(tokens),\n pressable: createPressableTokens(),\n progress: createProgressTokens(tokens),\n radio: createRadioTokens(tokens),\n tag: createTagTokens(tokens),\n controlAddon: createControlAddonTokens(tokens),\n controlContainer: createControlContainerTokens(tokens),\n controlError: createControlErrorTokens(tokens),\n controlInput: createControlInputTokens(tokens),\n controlLabel: createControlLabelTokens(tokens),\n select: createSelectTokens(tokens),\n segmentedControl: createSegmentedControlTokens(tokens),\n tabs: createTabsTokens(tokens),\n datetimePicker: createDatetimePickerTokens(tokens),\n divider: createDividerTokens(tokens),\n timePicker: createTimePickerTokens(tokens),\n flyout: createFlyoutTokens(tokens),\n skeleton: createSkeletonTokens(tokens),\n slider: createSliderTokens(tokens),\n spinner: createSpinnerTokens(tokens),\n stepper: createStepperTokens(tokens),\n switch: createSwitchTokens(tokens),\n textarea: createTextareaTokens(tokens),\n dataState: createDataStateTokens(tokens),\n };\n}\n"],"mappings":"AAiBA,SAAS,6BAA6B;AACtC,SAAS,0BAA0B;AACnC,SAAS,yBAAyB;AAClC,SAAS,0BAA0B;AACnC,SAAS,wBAAwB;AACjC,SAAS,4BAA4B;AACrC,SAAS,0BAA0B;AACnC,SAAS,4BAA4B;AACrC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,6BAA6B;AACtC,SAAS,kCAAkC;AAC3C,SAAS,2BAA2B;AACpC,SAAS,0BAA0B;AACnC,SAAS,8BAA8B;AACvC,SAAS,wBAAwB;AACjC,SAAS,wBAAwB;AACjC,SAAS,yBAAyB;AAClC,SAAS,8BAA8B;AACvC,SAAS,2BAA2B;AACpC,SAAS,6BAA6B;AACtC,SAAS,4BAA4B;AACrC,SAAS,yBAAyB;AAClC,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M;AAAA,IAC3B,cAAc,yBAAyB,MAAM;AAAA,IAC7C,kBAAkB,6BAA6B,MAAM;AAAA,IACrD,cAAc,yBAAyB,MAAM;AAAA,IAC7C,cAAc,yBAAyB,MAAM;AAAA,IAC7C,cAAc,yBAAyB,MAAM;AAAA,IAC7C,QAAQ,mBAAmB,MAAM;AAAA,IACjC,kBAAkB,6BAA6B,MAAM;AAAA,IACrD,MAAM,iBAAiB,MAAM;AAAA,IAC7B,gBAAgB,2BAA2B,MAAM;AAAA,IACjD,SAAS,oBAAoB,MAAM;AAAA,IACnC,YAAY,uBAAuB,MAAM;AAAA,IACzC,QAAQ,mBAAmB,MAAM;AAAA,IACjC,UAAU,qBAAqB,MAAM;AAAA,IACrC,QAAQ,mBAAmB,MAAM;AAAA,IACjC,SAAS,oBAAoB,MAAM;AAAA,IACnC,SAAS,oBAAoB,MAAM;AAAA,IACnC,QAAQ,mBAAmB,MAAM;AAAA,IACjC,UAAU,qBAAqB,MAAM;AAAA,IACrC,WAAW,sBAAsB,MAAM;AAAA,EACzC;AACF;","names":[]}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { BadgeTokens } from './types/badge-tokens.types.mjs';
|
|
2
2
|
import { CarouselTokens } from './types/carousel-tokens.types.mjs';
|
|
3
|
+
import { ChartsTokens } from './types/charts-tokens.types.mjs';
|
|
3
4
|
import { CheckboxTokens } from './types/checkbox-tokens.types.mjs';
|
|
4
5
|
import { ListTokens } from './types/list-tokens.types.mjs';
|
|
5
6
|
import { ModalTokens } from './types/modal-tokens.types.mjs';
|
|
6
7
|
import { PopoverTokens } from './types/popover-tokens.types.mjs';
|
|
7
8
|
import { RadioTokens } from './types/radio-tokens.types.mjs';
|
|
9
|
+
import { ShadowScaleTokens } from './types/shadow.types.mjs';
|
|
10
|
+
import { TabsTokens } from './types/tabs-tokens.types.mjs';
|
|
8
11
|
import { AccordionTokens } from './types/accordion-tokens.types.mjs';
|
|
9
12
|
import { AvatarTokens } from './types/avatar-tokens.types.mjs';
|
|
10
13
|
import { ButtonTokens, IconButtonTokens } from './types/buttons-tokens.types.mjs';
|
|
@@ -28,10 +31,14 @@ import { SwitchTokens } from './types/switch-tokens.types.mjs';
|
|
|
28
31
|
import { TagTokens } from './types/tag-tokens.types.mjs';
|
|
29
32
|
import { TextareaTokens } from './types/textarea-tokens.types.mjs';
|
|
30
33
|
import { TimePickerTokens } from './types/time-picker-token.types.mjs';
|
|
31
|
-
import { NeutralColor, Space, Radii, BorderSize, FontFamily, FontWeight, FontSize, LineHeight, LetterSpacings } from './types/tokens.types.mjs';
|
|
34
|
+
import { FontWeightValue, NeutralColor, Space, Radii, BorderSize, FontFamily, FontWeight, FontSize, LineHeight, LetterSpacings } from './types/tokens.types.mjs';
|
|
32
35
|
|
|
33
36
|
type ToastTone = "success" | "info" | "warning" | "error";
|
|
34
37
|
interface ToastTokens {
|
|
38
|
+
enterDuration: number;
|
|
39
|
+
exitDuration: number;
|
|
40
|
+
stackDuration: number;
|
|
41
|
+
actionFontWeight: FontWeightValue;
|
|
35
42
|
backgroundColor: string;
|
|
36
43
|
borderColor: string;
|
|
37
44
|
borderWidth: number;
|
|
@@ -108,6 +115,7 @@ interface ComponentsThemes {
|
|
|
108
115
|
(theme: PrimitiveThemeTokens): ComponentsTokens;
|
|
109
116
|
}
|
|
110
117
|
interface ComponentsTokens {
|
|
118
|
+
charts: ChartsTokens;
|
|
111
119
|
modal: ModalTokens;
|
|
112
120
|
popover: PopoverTokens;
|
|
113
121
|
toast: ToastTokens;
|
|
@@ -133,6 +141,7 @@ interface ComponentsTokens {
|
|
|
133
141
|
controlLabel: ControlLabelTokens;
|
|
134
142
|
select: SelectTokens;
|
|
135
143
|
segmentedControl: SegmentedControlTokens;
|
|
144
|
+
tabs: TabsTokens;
|
|
136
145
|
datetimePicker: DatetimePickerTokens;
|
|
137
146
|
divider: DividerTokens;
|
|
138
147
|
timePicker: TimePickerTokens;
|
|
@@ -146,6 +155,8 @@ interface ComponentsTokens {
|
|
|
146
155
|
dataState: DataStateTokens;
|
|
147
156
|
}
|
|
148
157
|
interface PrimitiveThemeTokens {
|
|
158
|
+
shadows: ShadowScaleTokens;
|
|
159
|
+
codeFontFamily: string;
|
|
149
160
|
colors: ThemeColors;
|
|
150
161
|
space: Space;
|
|
151
162
|
radii: Radii;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ChartColorPalette } from './chart.types.mjs';
|
|
2
|
+
|
|
3
|
+
interface ChartsTokens {
|
|
4
|
+
palette: ChartColorPalette;
|
|
5
|
+
insets: {
|
|
6
|
+
top: number;
|
|
7
|
+
right: number;
|
|
8
|
+
bottom: number;
|
|
9
|
+
left: number;
|
|
10
|
+
};
|
|
11
|
+
axis: {
|
|
12
|
+
width: number;
|
|
13
|
+
tickLength: number;
|
|
14
|
+
labelGap: number;
|
|
15
|
+
};
|
|
16
|
+
grid: {
|
|
17
|
+
width: number;
|
|
18
|
+
};
|
|
19
|
+
line: {
|
|
20
|
+
width: number;
|
|
21
|
+
};
|
|
22
|
+
bar: {
|
|
23
|
+
categoryPadding: number;
|
|
24
|
+
seriesPadding: number;
|
|
25
|
+
};
|
|
26
|
+
pie: {
|
|
27
|
+
ringPadding: number;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export type { ChartsTokens };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=charts-tokens.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -28,6 +28,12 @@ interface FlyoutTitleTokens {
|
|
|
28
28
|
lineHeight: number;
|
|
29
29
|
}
|
|
30
30
|
interface FlyoutTokens {
|
|
31
|
+
enterSpring: {
|
|
32
|
+
damping: number;
|
|
33
|
+
stiffness: number;
|
|
34
|
+
mass: number;
|
|
35
|
+
};
|
|
36
|
+
exitDuration: number;
|
|
31
37
|
zIndexBase: number;
|
|
32
38
|
maxHeightRatio: number;
|
|
33
39
|
overlayColor: string;
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
export { BorderProps } from './border.types.mjs';
|
|
2
2
|
export { ColorProps } from './color.types.mjs';
|
|
3
3
|
export { ChartColorPalette } from './chart.types.mjs';
|
|
4
|
+
export { ChartsTokens } from './charts-tokens.types.mjs';
|
|
4
5
|
export { ActionState, ActionVariant, ActionVisualState, AvailabilityState, AvailabilityVisualState, ComponentSize, ComponentVariant, ControlState, ControlVisualState, DisplayVariant, FieldState, FieldVariant, FieldVisualState, SelectionItemState, SelectionItemVisualState, SelectionState, SelectionVariant, SelectionVisualState, VisualStateTokens } from './components.types.mjs';
|
|
5
6
|
export { DimensionProps } from './dimension.types.mjs';
|
|
6
7
|
export { FlexProps } from './flex.types.mjs';
|
|
7
|
-
export { ShadowIntensity, ShadowLevel, ShadowPosition, ShadowProps } from './shadow.types.mjs';
|
|
8
|
+
export { ShadowIntensity, ShadowLevel, ShadowPosition, ShadowProps, ShadowScaleTokens } from './shadow.types.mjs';
|
|
8
9
|
export { SpacingProps } from './spacing.types.mjs';
|
|
9
10
|
export { StylePropKey, StyleProps } from './style.types.mjs';
|
|
10
|
-
export { A as AppTheme, C as ColorPair, a as ColorScheme, b as ComponentsThemes, c as ComponentsTokens, E as ExtendedThemeColors, P as PrimitiveThemeTokens, T as ThemeColors, d as ThemeContextData, e as ToastTokens, f as ToastTone } from '../theme-provider.types-
|
|
11
|
+
export { A as AppTheme, C as ColorPair, a as ColorScheme, b as ComponentsThemes, c as ComponentsTokens, E as ExtendedThemeColors, P as PrimitiveThemeTokens, T as ThemeColors, d as ThemeContextData, e as ToastTokens, f as ToastTone } from '../theme-provider.types-CLjz9-IY.mjs';
|
|
11
12
|
export { BorderSize, BorderSizeKey, FontFamily, FontSize, FontWeight, FontWeightItalic, FontWeightKeys, FontWeightNormal, FontWeightValue, LetterSpacingKey, LetterSpacings, LineHeight, NeutralColor, NeutralColorKey, Radii, RadiiBlob, RadiiConditional, RadiiDrawn, RadiusBlobKey, RadiusConditionalKey, RadiusDrawnKey, RadiusKey, Space, SpaceSizesKey, TypographyKey } from './tokens.types.mjs';
|
|
12
13
|
export { TypographyPresetKey, TypographyProps } from './typography.types.mjs';
|
|
13
14
|
export { ActionAppearanceTokens, ButtonSizeTokens, ButtonTokens, ButtonVariantTokens, IconButtonSizeTokens, IconButtonTokens, IconButtonVariantTokens } from './buttons-tokens.types.mjs';
|
|
@@ -29,6 +30,7 @@ export { PaginationAppearanceTokens, PaginationSizeToken, PaginationState, Pagin
|
|
|
29
30
|
export { ProgressColorTokens, ProgressSizeTokens, ProgressTokens, ProgressTone, ProgressVariant } from './progress-tokens.types.mjs';
|
|
30
31
|
export { RadioAppearanceTokens, RadioSizeTokens, RadioTokens, RadioVariantTokens } from './radio-tokens.types.mjs';
|
|
31
32
|
export { ResolvedSegmentedControlItemTokens, SegmentedControlAppearanceTokens, SegmentedControlItemLayout, SegmentedControlItemLayoutTokens, SegmentedControlItemTokenState, SegmentedControlSizeToken, SegmentedControlSizeTokens, SegmentedControlTokens, SegmentedControlVariantTokens } from './segmented-control-tokens.types.mjs';
|
|
33
|
+
export { ResolvedTabsItemTokens, TabsItemAppearanceTokens, TabsItemTokenState, TabsSizeTokens, TabsTokens } from './tabs-tokens.types.mjs';
|
|
32
34
|
export { SkeletonBoneTokens, SkeletonTextTokens, SkeletonTokens } from './skeleton-tokens.types.mjs';
|
|
33
35
|
export { ResolvedSliderTrackTokens, SliderAppearanceTokens, SliderSizeTokens, SliderTokens, SliderTrackLayout, SliderTrackLayoutTokens, SliderTrackTokenState, SliderVariant, SliderVariantTokens } from './slider-tokens.types.mjs';
|
|
34
36
|
export { SpinnerTokens, SpinnerTone } from './spinner-tokens.types.mjs';
|
package/dist/types/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./border.types";
|
|
2
2
|
export * from "./color.types";
|
|
3
3
|
export * from "./chart.types";
|
|
4
|
+
export * from "./charts-tokens.types";
|
|
4
5
|
export * from "./components.types";
|
|
5
6
|
export * from "./dimension.types";
|
|
6
7
|
export * from "./flex.types";
|
|
@@ -29,6 +30,7 @@ export * from "./pagination-tokens.types";
|
|
|
29
30
|
export * from "./progress-tokens.types";
|
|
30
31
|
export * from "./radio-tokens.types";
|
|
31
32
|
export * from "./segmented-control-tokens.types";
|
|
33
|
+
export * from "./tabs-tokens.types";
|
|
32
34
|
export * from "./skeleton-tokens.types";
|
|
33
35
|
export * from "./slider-tokens.types";
|
|
34
36
|
export * from "./spinner-tokens.types";
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/index.ts"],"sourcesContent":["export * from \"./border.types\";\nexport * from \"./color.types\";\nexport * from \"./chart.types\";\nexport * from \"./components.types\";\nexport * from \"./dimension.types\";\nexport * from \"./flex.types\";\nexport * from \"./shadow.types\";\nexport * from \"./spacing.types\";\nexport * from \"./style.types\";\nexport * from \"./theme-provider.types\";\nexport * from \"./tokens.types\";\nexport * from \"./typography.types\";\nexport * from \"./buttons-tokens.types\";\nexport * from \"./accordion-tokens.types\";\nexport * from \"./avatar-tokens.types\";\nexport * from \"./badge-tokens.types\";\nexport * from \"./card-tokens.types\";\nexport * from \"./checkbox-tokens.types\";\nexport * from \"./tag-tokens.types\";\nexport * from \"./control-tokens.types\";\nexport * from \"./select-tokens.types\";\nexport * from \"./datetime-picker-tokens.types\";\nexport * from \"./divider-tokens.types\";\nexport * from \"./time-picker-token.types\";\nexport * from \"./flyout-tokens.types\";\nexport * from \"./icon-tokens.types\";\nexport * from \"./pressable-tokens.types\";\nexport * from \"./pagination-tokens.types\";\nexport * from \"./progress-tokens.types\";\nexport * from \"./radio-tokens.types\";\nexport * from \"./segmented-control-tokens.types\";\nexport * from \"./skeleton-tokens.types\";\nexport * from \"./slider-tokens.types\";\nexport * from \"./spinner-tokens.types\";\nexport * from \"./stepper-tokens.types\";\nexport * from \"./switch-tokens.types\";\nexport * from \"./textarea-tokens.types\";\nexport * from \"./data-state-tokens.types\";\n\nexport * from \"./list-tokens.types\";\nexport * from \"./carousel-tokens.types\";\n\nexport * from \"./toast-tokens.types\";\nexport * from \"./popover-tokens.types\";\nexport * from \"./modal-tokens.types\";\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,cAAc;AACd,cAAc;AAEd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/types/index.ts"],"sourcesContent":["export * from \"./border.types\";\nexport * from \"./color.types\";\nexport * from \"./chart.types\";\nexport * from \"./charts-tokens.types\";\nexport * from \"./components.types\";\nexport * from \"./dimension.types\";\nexport * from \"./flex.types\";\nexport * from \"./shadow.types\";\nexport * from \"./spacing.types\";\nexport * from \"./style.types\";\nexport * from \"./theme-provider.types\";\nexport * from \"./tokens.types\";\nexport * from \"./typography.types\";\nexport * from \"./buttons-tokens.types\";\nexport * from \"./accordion-tokens.types\";\nexport * from \"./avatar-tokens.types\";\nexport * from \"./badge-tokens.types\";\nexport * from \"./card-tokens.types\";\nexport * from \"./checkbox-tokens.types\";\nexport * from \"./tag-tokens.types\";\nexport * from \"./control-tokens.types\";\nexport * from \"./select-tokens.types\";\nexport * from \"./datetime-picker-tokens.types\";\nexport * from \"./divider-tokens.types\";\nexport * from \"./time-picker-token.types\";\nexport * from \"./flyout-tokens.types\";\nexport * from \"./icon-tokens.types\";\nexport * from \"./pressable-tokens.types\";\nexport * from \"./pagination-tokens.types\";\nexport * from \"./progress-tokens.types\";\nexport * from \"./radio-tokens.types\";\nexport * from \"./segmented-control-tokens.types\";\nexport * from \"./tabs-tokens.types\";\nexport * from \"./skeleton-tokens.types\";\nexport * from \"./slider-tokens.types\";\nexport * from \"./spinner-tokens.types\";\nexport * from \"./stepper-tokens.types\";\nexport * from \"./switch-tokens.types\";\nexport * from \"./textarea-tokens.types\";\nexport * from \"./data-state-tokens.types\";\n\nexport * from \"./list-tokens.types\";\nexport * from \"./carousel-tokens.types\";\n\nexport * from \"./toast-tokens.types\";\nexport * from \"./popover-tokens.types\";\nexport * from \"./modal-tokens.types\";\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,cAAc;AACd,cAAc;AAEd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
|
@@ -7,6 +7,7 @@ type ShadowIntensity = {
|
|
|
7
7
|
opacity: number;
|
|
8
8
|
elevation: number;
|
|
9
9
|
};
|
|
10
|
+
type ShadowScaleTokens = Record<ShadowLevel, ShadowIntensity>;
|
|
10
11
|
type ShadowProps = {
|
|
11
12
|
shadow?: ShadowLevel;
|
|
12
13
|
shadowPosition?: ShadowPosition;
|
|
@@ -17,4 +18,4 @@ type ShadowProps = {
|
|
|
17
18
|
elevation?: ViewStyle["elevation"];
|
|
18
19
|
};
|
|
19
20
|
|
|
20
|
-
export type { ShadowIntensity, ShadowLevel, ShadowPosition, ShadowProps };
|
|
21
|
+
export type { ShadowIntensity, ShadowLevel, ShadowPosition, ShadowProps, ShadowScaleTokens };
|
|
@@ -35,6 +35,9 @@ interface SliderTokens {
|
|
|
35
35
|
valueBubblePaddingVertical: number;
|
|
36
36
|
valueBubbleGap: number;
|
|
37
37
|
labelGap: number;
|
|
38
|
+
markLabelWidth: number;
|
|
39
|
+
thumbHighlightSize: number;
|
|
40
|
+
valueBubbleMinWidth: number;
|
|
38
41
|
layouts: Record<SliderTrackLayout, SliderTrackLayoutTokens>;
|
|
39
42
|
sizes: SliderSizeTokens;
|
|
40
43
|
variants: SliderVariantTokens;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ComponentSize, VisualStateTokens, SelectionVisualState, SelectionState } from './components.types.mjs';
|
|
2
|
+
|
|
3
|
+
interface TabsSizeTokens {
|
|
4
|
+
fontSize: number;
|
|
5
|
+
minHeight: number;
|
|
6
|
+
hitSlop: number;
|
|
7
|
+
paddingHorizontal: number;
|
|
8
|
+
paddingVertical: number;
|
|
9
|
+
}
|
|
10
|
+
interface TabsItemAppearanceTokens {
|
|
11
|
+
color: string;
|
|
12
|
+
indicatorColor: string;
|
|
13
|
+
indicatorOpacity: number;
|
|
14
|
+
}
|
|
15
|
+
interface TabsTokens {
|
|
16
|
+
borderColor: string;
|
|
17
|
+
borderWidth: number;
|
|
18
|
+
indicatorHeight: number;
|
|
19
|
+
panelGap: number;
|
|
20
|
+
sizes: Record<ComponentSize, TabsSizeTokens>;
|
|
21
|
+
states: VisualStateTokens<SelectionVisualState, TabsItemAppearanceTokens>;
|
|
22
|
+
}
|
|
23
|
+
interface TabsItemTokenState extends SelectionState {
|
|
24
|
+
size: ComponentSize;
|
|
25
|
+
}
|
|
26
|
+
type ResolvedTabsItemTokens = TabsSizeTokens & TabsItemAppearanceTokens & {
|
|
27
|
+
indicatorHeight: number;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export type { ResolvedTabsItemTokens, TabsItemAppearanceTokens, TabsItemTokenState, TabsSizeTokens, TabsTokens };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=tabs-tokens.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import './badge-tokens.types.mjs';
|
|
2
2
|
import './carousel-tokens.types.mjs';
|
|
3
|
+
import './charts-tokens.types.mjs';
|
|
3
4
|
import './checkbox-tokens.types.mjs';
|
|
4
5
|
import './list-tokens.types.mjs';
|
|
5
6
|
import './modal-tokens.types.mjs';
|
|
6
7
|
import './popover-tokens.types.mjs';
|
|
7
8
|
import './radio-tokens.types.mjs';
|
|
8
|
-
|
|
9
|
+
import './shadow.types.mjs';
|
|
10
|
+
import './tabs-tokens.types.mjs';
|
|
11
|
+
export { A as AppTheme, C as ColorPair, a as ColorScheme, b as ComponentsThemes, c as ComponentsTokens, E as ExtendedThemeColors, P as PrimitiveThemeTokens, T as ThemeColors, d as ThemeContextData } from '../theme-provider.types-CLjz9-IY.mjs';
|
|
9
12
|
import './accordion-tokens.types.mjs';
|
|
10
13
|
import './avatar-tokens.types.mjs';
|
|
11
14
|
import './buttons-tokens.types.mjs';
|
|
@@ -31,3 +34,5 @@ import './textarea-tokens.types.mjs';
|
|
|
31
34
|
import './time-picker-token.types.mjs';
|
|
32
35
|
import './tokens.types.mjs';
|
|
33
36
|
import './components.types.mjs';
|
|
37
|
+
import './chart.types.mjs';
|
|
38
|
+
import 'react-native';
|