@impulse-ui-native/theme 8.3.0 → 9.1.1
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 +9 -3
- package/dist/constants/style.constants.js +0 -1
- package/dist/constants/style.constants.js.map +1 -1
- package/dist/hooks/index.d.mts +3 -2
- package/dist/hooks/use-colors.hook.d.mts +4 -3
- package/dist/hooks/use-components-tokens.hook.d.mts +4 -3
- package/dist/hooks/use-theme.hook.d.mts +4 -3
- package/dist/hooks/use-themed-styles.d.mts +3 -2
- package/dist/index.d.mts +5 -3
- package/dist/providers/index.d.mts +4 -3
- package/dist/providers/theme.provider.d.mts +4 -3
- package/dist/theme/create-accordion-tokens.d.mts +4 -3
- package/dist/theme/create-avatar-tokens.d.mts +4 -3
- package/dist/theme/create-badge-tokens.d.mts +4 -3
- package/dist/theme/create-button-tokens.d.mts +4 -3
- package/dist/theme/create-card-tokens.d.mts +4 -3
- package/dist/theme/create-carousel-tokens.d.mts +4 -3
- package/dist/theme/create-charts-tokens.d.mts +7 -5
- package/dist/theme/create-charts-tokens.js +30 -2
- package/dist/theme/create-charts-tokens.js.map +1 -1
- package/dist/theme/create-checkbox-tokens.d.mts +4 -3
- package/dist/theme/create-color-picker-tokens.d.mts +43 -0
- package/dist/theme/create-color-picker-tokens.js +76 -0
- package/dist/theme/create-color-picker-tokens.js.map +1 -0
- package/dist/theme/create-control-tokens.d.mts +4 -3
- package/dist/theme/create-data-state-tokens.d.mts +4 -3
- package/dist/theme/create-datetime-picker.d.mts +4 -3
- package/dist/theme/create-divider-tokens.d.mts +4 -3
- package/dist/theme/create-flyout-tokens.d.mts +4 -3
- package/dist/theme/create-icon-button-tokens.d.mts +4 -3
- package/dist/theme/create-list-tokens.d.mts +4 -3
- package/dist/theme/create-modal-tokens.d.mts +4 -3
- package/dist/theme/create-pagination-tokens.d.mts +4 -3
- package/dist/theme/create-popover-tokens.d.mts +4 -3
- package/dist/theme/create-progress-tokens.d.mts +4 -3
- package/dist/theme/create-radio-tokens.d.mts +4 -3
- package/dist/theme/create-segmented-control-tokens.d.mts +4 -3
- package/dist/theme/create-select-tokens.d.mts +4 -3
- package/dist/theme/create-skeleton-tokens.d.mts +4 -3
- package/dist/theme/create-slider-tokens.d.mts +4 -3
- package/dist/theme/create-slider-tokens.js +1 -0
- package/dist/theme/create-slider-tokens.js.map +1 -1
- package/dist/theme/create-spinner-tokens.d.mts +4 -3
- package/dist/theme/create-stepper-tokens.d.mts +4 -3
- package/dist/theme/create-switch-tokens.d.mts +4 -3
- package/dist/theme/create-tabs-tokens.d.mts +4 -3
- package/dist/theme/create-tag-tokens.d.mts +4 -3
- package/dist/theme/create-textarea-tokens.d.mts +4 -3
- package/dist/theme/create-time-picker-tokens.d.mts +4 -3
- package/dist/theme/create-toast-tokens.d.mts +4 -3
- package/dist/theme/dark.theme.d.mts +4 -3
- package/dist/theme/index.d.mts +6 -4
- package/dist/theme/index.js +1 -0
- package/dist/theme/index.js.map +1 -1
- package/dist/theme/light.theme.d.mts +4 -3
- package/dist/theme/tokens.theme.d.mts +3 -2
- package/dist/theme/tokens.theme.js +2 -0
- package/dist/theme/tokens.theme.js.map +1 -1
- package/dist/{theme-provider.types-CLjz9-IY.d.mts → theme-provider.types-CIh3wHN_.d.mts} +2 -0
- package/dist/types/charts-tokens.types.d.mts +34 -1
- package/dist/types/color-picker-tokens.types.d.mts +50 -0
- package/dist/types/color-picker-tokens.types.js +1 -0
- package/dist/types/color-picker-tokens.types.js.map +1 -0
- package/dist/types/index.d.mts +3 -2
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/slider-tokens.types.d.mts +1 -0
- package/dist/types/theme-provider.types.d.mts +3 -2
- package/dist/types/toast-tokens.types.d.mts +3 -2
- package/dist/types/typography.types.d.mts +0 -1
- package/dist/utils/index.d.mts +2 -1
- package/dist/utils/style.utils.d.mts +2 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -139,9 +139,15 @@ motion tokens.
|
|
|
139
139
|
</ThemeProvider>
|
|
140
140
|
```
|
|
141
141
|
|
|
142
|
-
`createChartsTokens` and `ChartsTokens` define the chart palette,
|
|
143
|
-
insets, axis/grid/line widths, axis tick length and label gap, bar padding
|
|
144
|
-
|
|
142
|
+
`createChartsTokens` and `ChartsTokens` define the chart palette, shared chart
|
|
143
|
+
insets, axis/grid/line widths, axis tick length and label gap, bar padding/rounding,
|
|
144
|
+
pie ring padding/rounding, typography, selection markers, legends, and tooltip
|
|
145
|
+
placement. `createChartsLabelTokens` and `ChartsLabelTokens` provide the same font
|
|
146
|
+
family, weight, size, and color defaults for native chart text and Skia labels.
|
|
147
|
+
Chart tooltip surface, border, radius, text color, padding, and gap come from
|
|
148
|
+
`components.charts.tooltip`; legend press feedback and
|
|
149
|
+
hidden opacity reuse Pressable tokens. New appearance groups are optional for
|
|
150
|
+
compatibility with older complete chart token objects. The palette defaults to `ChartColorTokens`; override
|
|
145
151
|
`components.charts.palette` to customize series colors. Explicit component and
|
|
146
152
|
series props continue to take precedence.
|
|
147
153
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/constants/style.constants.ts"],"sourcesContent":["import { ShadowIntensity, ShadowLevel, StyleProps } from \"../types\";\n\nconst StylePropsRecord: Record<keyof StyleProps, number> = {\n margin: 0,\n marginTop: 0,\n marginBottom: 0,\n marginLeft: 0,\n marginRight: 0,\n marginHorizontal: 0,\n marginVertical: 0,\n padding: 0,\n paddingTop: 0,\n paddingBottom: 0,\n paddingLeft: 0,\n paddingRight: 0,\n paddingHorizontal: 0,\n paddingVertical: 0,\n color: 0,\n backgroundColor: 0,\n opacity: 0,\n shadow: 0,\n shadowPosition: 0,\n shadowColor: 0,\n shadowOpacity: 0,\n shadowRadius: 0,\n shadowOffset: 0,\n elevation: 0,\n borderRadius: 0,\n borderTopLeftRadius: 0,\n borderTopRightRadius: 0,\n borderBottomLeftRadius: 0,\n borderBottomRightRadius: 0,\n borderWidth: 0,\n borderTopWidth: 0,\n borderRightWidth: 0,\n borderBottomWidth: 0,\n borderLeftWidth: 0,\n borderColor: 0,\n borderTopColor: 0,\n borderRightColor: 0,\n borderBottomColor: 0,\n borderLeftColor: 0,\n borderStyle: 0,\n fontSize: 0,\n fontFamily: 0,\n fontWeight: 0,\n fontStyle: 0,\n fontVariant: 0,\n letterSpacing: 0,\n lineHeight: 0,\n textAlign: 0,\n textDecorationLine: 0,\n textDecorationStyle: 0,\n textDecorationColor: 0,\n textTransform: 0,\n includeFontPadding: 0,\n textAlignVertical: 0,\n
|
|
1
|
+
{"version":3,"sources":["../../src/constants/style.constants.ts"],"sourcesContent":["import { ShadowIntensity, ShadowLevel, StyleProps } from \"../types\";\n\nconst StylePropsRecord: Record<keyof StyleProps, number> = {\n margin: 0,\n marginTop: 0,\n marginBottom: 0,\n marginLeft: 0,\n marginRight: 0,\n marginHorizontal: 0,\n marginVertical: 0,\n padding: 0,\n paddingTop: 0,\n paddingBottom: 0,\n paddingLeft: 0,\n paddingRight: 0,\n paddingHorizontal: 0,\n paddingVertical: 0,\n color: 0,\n backgroundColor: 0,\n opacity: 0,\n shadow: 0,\n shadowPosition: 0,\n shadowColor: 0,\n shadowOpacity: 0,\n shadowRadius: 0,\n shadowOffset: 0,\n elevation: 0,\n borderRadius: 0,\n borderTopLeftRadius: 0,\n borderTopRightRadius: 0,\n borderBottomLeftRadius: 0,\n borderBottomRightRadius: 0,\n borderWidth: 0,\n borderTopWidth: 0,\n borderRightWidth: 0,\n borderBottomWidth: 0,\n borderLeftWidth: 0,\n borderColor: 0,\n borderTopColor: 0,\n borderRightColor: 0,\n borderBottomColor: 0,\n borderLeftColor: 0,\n borderStyle: 0,\n fontSize: 0,\n fontFamily: 0,\n fontWeight: 0,\n fontStyle: 0,\n fontVariant: 0,\n letterSpacing: 0,\n lineHeight: 0,\n textAlign: 0,\n textDecorationLine: 0,\n textDecorationStyle: 0,\n textDecorationColor: 0,\n textTransform: 0,\n includeFontPadding: 0,\n textAlignVertical: 0,\n flex: 0,\n flexGrow: 0,\n flexShrink: 0,\n flexBasis: 0,\n flexDirection: 0,\n flexWrap: 0,\n justifyContent: 0,\n alignItems: 0,\n alignSelf: 0,\n alignContent: 0,\n gap: 0,\n rowGap: 0,\n columnGap: 0,\n position: 0,\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n zIndex: 0,\n width: 0,\n height: 0,\n minWidth: 0,\n maxWidth: 0,\n minHeight: 0,\n maxHeight: 0,\n aspectRatio: 0,\n overflow: 0,\n} as const;\n\nexport const StylePropsSet = new Set<keyof StyleProps>(\n Object.keys(StylePropsRecord) as (keyof StyleProps)[],\n);\n\nexport const ShadowScale: Record<ShadowLevel, ShadowIntensity> = {\n none: { radius: 0, opacity: 0, elevation: 0 },\n xs: { radius: 2, opacity: 0.08, elevation: 1 },\n sm: { radius: 4, opacity: 0.1, elevation: 2 },\n md: { radius: 8, opacity: 0.15, elevation: 4 },\n lg: { radius: 16, opacity: 0.18, elevation: 8 },\n xl: { radius: 24, opacity: 0.22, elevation: 12 },\n};\n"],"mappings":"AAEA,MAAM,mBAAqD;AAAA,EACzD,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,cAAc;AAAA,EACd,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,kBAAkB;AAAA,EAClB,gBAAgB;AAAA,EAChB,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,eAAe;AAAA,EACf,aAAa;AAAA,EACb,cAAc;AAAA,EACd,mBAAmB;AAAA,EACnB,iBAAiB;AAAA,EACjB,OAAO;AAAA,EACP,iBAAiB;AAAA,EACjB,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,gBAAgB;AAAA,EAChB,aAAa;AAAA,EACb,eAAe;AAAA,EACf,cAAc;AAAA,EACd,cAAc;AAAA,EACd,WAAW;AAAA,EACX,cAAc;AAAA,EACd,qBAAqB;AAAA,EACrB,sBAAsB;AAAA,EACtB,wBAAwB;AAAA,EACxB,yBAAyB;AAAA,EACzB,aAAa;AAAA,EACb,gBAAgB;AAAA,EAChB,kBAAkB;AAAA,EAClB,mBAAmB;AAAA,EACnB,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,gBAAgB;AAAA,EAChB,kBAAkB;AAAA,EAClB,mBAAmB;AAAA,EACnB,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,aAAa;AAAA,EACb,eAAe;AAAA,EACf,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,oBAAoB;AAAA,EACpB,qBAAqB;AAAA,EACrB,qBAAqB;AAAA,EACrB,eAAe;AAAA,EACf,oBAAoB;AAAA,EACpB,mBAAmB;AAAA,EACnB,MAAM;AAAA,EACN,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,eAAe;AAAA,EACf,UAAU;AAAA,EACV,gBAAgB;AAAA,EAChB,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,cAAc;AAAA,EACd,KAAK;AAAA,EACL,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,UAAU;AAAA,EACV,KAAK;AAAA,EACL,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,UAAU;AAAA,EACV,WAAW;AAAA,EACX,WAAW;AAAA,EACX,aAAa;AAAA,EACb,UAAU;AACZ;AAEO,MAAM,gBAAgB,IAAI;AAAA,EAC/B,OAAO,KAAK,gBAAgB;AAC9B;AAEO,MAAM,cAAoD;AAAA,EAC/D,MAAM,EAAE,QAAQ,GAAG,SAAS,GAAG,WAAW,EAAE;AAAA,EAC5C,IAAI,EAAE,QAAQ,GAAG,SAAS,MAAM,WAAW,EAAE;AAAA,EAC7C,IAAI,EAAE,QAAQ,GAAG,SAAS,KAAK,WAAW,EAAE;AAAA,EAC5C,IAAI,EAAE,QAAQ,GAAG,SAAS,MAAM,WAAW,EAAE;AAAA,EAC7C,IAAI,EAAE,QAAQ,IAAI,SAAS,MAAM,WAAW,EAAE;AAAA,EAC9C,IAAI,EAAE,QAAQ,IAAI,SAAS,MAAM,WAAW,GAAG;AACjD;","names":[]}
|
package/dist/hooks/index.d.mts
CHANGED
|
@@ -7,19 +7,20 @@ export { useStyleProps } from './use-style-props.hook.mjs';
|
|
|
7
7
|
export { useTheme } from './use-theme.hook.mjs';
|
|
8
8
|
export { useThemedStyles } from './use-themed-styles.mjs';
|
|
9
9
|
import '../types/tokens.types.mjs';
|
|
10
|
-
import '../theme-provider.types-
|
|
10
|
+
import '../theme-provider.types-CIh3wHN_.mjs';
|
|
11
11
|
import '../types/badge-tokens.types.mjs';
|
|
12
12
|
import '../types/components.types.mjs';
|
|
13
13
|
import '../types/carousel-tokens.types.mjs';
|
|
14
14
|
import '../types/charts-tokens.types.mjs';
|
|
15
|
+
import 'react-native';
|
|
15
16
|
import '../types/chart.types.mjs';
|
|
16
17
|
import '../types/checkbox-tokens.types.mjs';
|
|
18
|
+
import '../types/color-picker-tokens.types.mjs';
|
|
17
19
|
import '../types/list-tokens.types.mjs';
|
|
18
20
|
import '../types/modal-tokens.types.mjs';
|
|
19
21
|
import '../types/popover-tokens.types.mjs';
|
|
20
22
|
import '../types/radio-tokens.types.mjs';
|
|
21
23
|
import '../types/shadow.types.mjs';
|
|
22
|
-
import 'react-native';
|
|
23
24
|
import '../types/tabs-tokens.types.mjs';
|
|
24
25
|
import '../types/accordion-tokens.types.mjs';
|
|
25
26
|
import '../types/avatar-tokens.types.mjs';
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { T as ThemeColors } from '../theme-provider.types-
|
|
1
|
+
import { T as ThemeColors } from '../theme-provider.types-CIh3wHN_.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
5
|
import '../types/charts-tokens.types.mjs';
|
|
6
|
+
import 'react-native';
|
|
6
7
|
import '../types/chart.types.mjs';
|
|
8
|
+
import '../types/tokens.types.mjs';
|
|
7
9
|
import '../types/checkbox-tokens.types.mjs';
|
|
10
|
+
import '../types/color-picker-tokens.types.mjs';
|
|
8
11
|
import '../types/list-tokens.types.mjs';
|
|
9
12
|
import '../types/modal-tokens.types.mjs';
|
|
10
13
|
import '../types/popover-tokens.types.mjs';
|
|
11
14
|
import '../types/radio-tokens.types.mjs';
|
|
12
15
|
import '../types/shadow.types.mjs';
|
|
13
|
-
import 'react-native';
|
|
14
16
|
import '../types/tabs-tokens.types.mjs';
|
|
15
17
|
import '../types/accordion-tokens.types.mjs';
|
|
16
18
|
import '../types/avatar-tokens.types.mjs';
|
|
@@ -35,7 +37,6 @@ import '../types/switch-tokens.types.mjs';
|
|
|
35
37
|
import '../types/tag-tokens.types.mjs';
|
|
36
38
|
import '../types/textarea-tokens.types.mjs';
|
|
37
39
|
import '../types/time-picker-token.types.mjs';
|
|
38
|
-
import '../types/tokens.types.mjs';
|
|
39
40
|
|
|
40
41
|
declare function useColors(): ThemeColors;
|
|
41
42
|
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { c as ComponentsTokens } from '../theme-provider.types-
|
|
1
|
+
import { c as ComponentsTokens } from '../theme-provider.types-CIh3wHN_.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
5
|
import '../types/charts-tokens.types.mjs';
|
|
6
|
+
import 'react-native';
|
|
6
7
|
import '../types/chart.types.mjs';
|
|
8
|
+
import '../types/tokens.types.mjs';
|
|
7
9
|
import '../types/checkbox-tokens.types.mjs';
|
|
10
|
+
import '../types/color-picker-tokens.types.mjs';
|
|
8
11
|
import '../types/list-tokens.types.mjs';
|
|
9
12
|
import '../types/modal-tokens.types.mjs';
|
|
10
13
|
import '../types/popover-tokens.types.mjs';
|
|
11
14
|
import '../types/radio-tokens.types.mjs';
|
|
12
15
|
import '../types/shadow.types.mjs';
|
|
13
|
-
import 'react-native';
|
|
14
16
|
import '../types/tabs-tokens.types.mjs';
|
|
15
17
|
import '../types/accordion-tokens.types.mjs';
|
|
16
18
|
import '../types/avatar-tokens.types.mjs';
|
|
@@ -35,7 +37,6 @@ import '../types/switch-tokens.types.mjs';
|
|
|
35
37
|
import '../types/tag-tokens.types.mjs';
|
|
36
38
|
import '../types/textarea-tokens.types.mjs';
|
|
37
39
|
import '../types/time-picker-token.types.mjs';
|
|
38
|
-
import '../types/tokens.types.mjs';
|
|
39
40
|
|
|
40
41
|
declare function useComponentsTokens(): ComponentsTokens;
|
|
41
42
|
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { A as AppTheme } from '../theme-provider.types-
|
|
1
|
+
import { A as AppTheme } from '../theme-provider.types-CIh3wHN_.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
5
|
import '../types/charts-tokens.types.mjs';
|
|
6
|
+
import 'react-native';
|
|
6
7
|
import '../types/chart.types.mjs';
|
|
8
|
+
import '../types/tokens.types.mjs';
|
|
7
9
|
import '../types/checkbox-tokens.types.mjs';
|
|
10
|
+
import '../types/color-picker-tokens.types.mjs';
|
|
8
11
|
import '../types/list-tokens.types.mjs';
|
|
9
12
|
import '../types/modal-tokens.types.mjs';
|
|
10
13
|
import '../types/popover-tokens.types.mjs';
|
|
11
14
|
import '../types/radio-tokens.types.mjs';
|
|
12
15
|
import '../types/shadow.types.mjs';
|
|
13
|
-
import 'react-native';
|
|
14
16
|
import '../types/tabs-tokens.types.mjs';
|
|
15
17
|
import '../types/accordion-tokens.types.mjs';
|
|
16
18
|
import '../types/avatar-tokens.types.mjs';
|
|
@@ -35,7 +37,6 @@ import '../types/switch-tokens.types.mjs';
|
|
|
35
37
|
import '../types/tag-tokens.types.mjs';
|
|
36
38
|
import '../types/textarea-tokens.types.mjs';
|
|
37
39
|
import '../types/time-picker-token.types.mjs';
|
|
38
|
-
import '../types/tokens.types.mjs';
|
|
39
40
|
|
|
40
41
|
declare function useTheme(): AppTheme;
|
|
41
42
|
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { StyleSheet } from 'react-native';
|
|
2
|
-
import { A as AppTheme } from '../theme-provider.types-
|
|
2
|
+
import { A as AppTheme } from '../theme-provider.types-CIh3wHN_.mjs';
|
|
3
3
|
import '../types/badge-tokens.types.mjs';
|
|
4
4
|
import '../types/components.types.mjs';
|
|
5
5
|
import '../types/carousel-tokens.types.mjs';
|
|
6
6
|
import '../types/charts-tokens.types.mjs';
|
|
7
7
|
import '../types/chart.types.mjs';
|
|
8
|
+
import '../types/tokens.types.mjs';
|
|
8
9
|
import '../types/checkbox-tokens.types.mjs';
|
|
10
|
+
import '../types/color-picker-tokens.types.mjs';
|
|
9
11
|
import '../types/list-tokens.types.mjs';
|
|
10
12
|
import '../types/modal-tokens.types.mjs';
|
|
11
13
|
import '../types/popover-tokens.types.mjs';
|
|
@@ -35,7 +37,6 @@ import '../types/switch-tokens.types.mjs';
|
|
|
35
37
|
import '../types/tag-tokens.types.mjs';
|
|
36
38
|
import '../types/textarea-tokens.types.mjs';
|
|
37
39
|
import '../types/time-picker-token.types.mjs';
|
|
38
|
-
import '../types/tokens.types.mjs';
|
|
39
40
|
|
|
40
41
|
type ThemedStyles<T extends StyleSheet.NamedStyles<T>> = T;
|
|
41
42
|
type StyledFunctionNoProps<T extends StyleSheet.NamedStyles<T>> = (theme: AppTheme) => ThemedStyles<T>;
|
package/dist/index.d.mts
CHANGED
|
@@ -11,7 +11,7 @@ export { ThemeProvider, useThemeContext } from './providers/theme.provider.mjs';
|
|
|
11
11
|
export { DarkTheme } from './theme/dark.theme.mjs';
|
|
12
12
|
export { LightTheme } from './theme/light.theme.mjs';
|
|
13
13
|
export { BorderSizeTokens, CodeFontFamilyToken, DarkColors, FontFamilyTokens, FontFamilyWeightsItalicTokens, FontFamilyWeightsNormalTokens, FontSizeTokens, FontWeightTokens, LetterSpacingTokens, LightColors, LineHeightTokens, NeutralColorTokens, RadiiTokens, SpaceTokens, createComponentsTokens } from './theme/tokens.theme.mjs';
|
|
14
|
-
export { createChartsTokens } from './theme/create-charts-tokens.mjs';
|
|
14
|
+
export { createChartsLabelTokens, createChartsTokens } from './theme/create-charts-tokens.mjs';
|
|
15
15
|
export { createPaginationTokens } from './theme/create-pagination-tokens.mjs';
|
|
16
16
|
export { createSliderTokens } from './theme/create-slider-tokens.mjs';
|
|
17
17
|
export { createSegmentedControlTokens } from './theme/create-segmented-control-tokens.mjs';
|
|
@@ -20,17 +20,18 @@ export { createCarouselTokens } from './theme/create-carousel-tokens.mjs';
|
|
|
20
20
|
export { createToastTokens } from './theme/create-toast-tokens.mjs';
|
|
21
21
|
export { createPopoverTokens } from './theme/create-popover-tokens.mjs';
|
|
22
22
|
export { createModalTokens } from './theme/create-modal-tokens.mjs';
|
|
23
|
+
export { createColorPickerTokens } from './theme/create-color-picker-tokens.mjs';
|
|
23
24
|
export { BorderProps } from './types/border.types.mjs';
|
|
24
25
|
export { ColorProps } from './types/color.types.mjs';
|
|
25
26
|
export { ChartColorPalette } from './types/chart.types.mjs';
|
|
26
|
-
export { ChartsTokens } from './types/charts-tokens.types.mjs';
|
|
27
|
+
export { ChartsLabelTokens, ChartsTokens } from './types/charts-tokens.types.mjs';
|
|
27
28
|
export { ActionState, ActionVariant, ActionVisualState, AvailabilityState, AvailabilityVisualState, ComponentSize, ComponentVariant, ControlState, ControlVisualState, DisplayVariant, FieldState, FieldVariant, FieldVisualState, SelectionItemState, SelectionItemVisualState, SelectionState, SelectionVariant, SelectionVisualState, VisualStateTokens } from './types/components.types.mjs';
|
|
28
29
|
export { DimensionProps } from './types/dimension.types.mjs';
|
|
29
30
|
export { FlexProps } from './types/flex.types.mjs';
|
|
30
31
|
export { ShadowIntensity, ShadowLevel, ShadowPosition, ShadowProps, ShadowScaleTokens } from './types/shadow.types.mjs';
|
|
31
32
|
export { SpacingProps } from './types/spacing.types.mjs';
|
|
32
33
|
export { StylePropKey, StyleProps } from './types/style.types.mjs';
|
|
33
|
-
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-
|
|
34
|
+
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-CIh3wHN_.mjs';
|
|
34
35
|
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 './types/tokens.types.mjs';
|
|
35
36
|
export { TypographyPresetKey, TypographyProps } from './types/typography.types.mjs';
|
|
36
37
|
export { ActionAppearanceTokens, ButtonSizeTokens, ButtonTokens, ButtonVariantTokens, IconButtonSizeTokens, IconButtonTokens, IconButtonVariantTokens } from './types/buttons-tokens.types.mjs';
|
|
@@ -64,6 +65,7 @@ export { ListTokens } from './types/list-tokens.types.mjs';
|
|
|
64
65
|
export { CarouselCounterAppearanceTokens, CarouselIndicatorAppearanceTokens, CarouselTokens } from './types/carousel-tokens.types.mjs';
|
|
65
66
|
export { PopoverTokens } from './types/popover-tokens.types.mjs';
|
|
66
67
|
export { ModalTokens } from './types/modal-tokens.types.mjs';
|
|
68
|
+
export { ColorPickerPreset, ColorPickerTokens } from './types/color-picker-tokens.types.mjs';
|
|
67
69
|
export { getActionStateTokens } from './utils/action-state.utils.mjs';
|
|
68
70
|
export { getAvailabilityStateTokens } from './utils/availability-state.utils.mjs';
|
|
69
71
|
export { getControlStateTokens } from './utils/control-state.utils.mjs';
|
|
@@ -2,19 +2,21 @@ export { ThemeProvider, useThemeContext } from './theme.provider.mjs';
|
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import '@impulse-ui-native/core';
|
|
5
|
-
import '../theme-provider.types-
|
|
5
|
+
import '../theme-provider.types-CIh3wHN_.mjs';
|
|
6
6
|
import '../types/badge-tokens.types.mjs';
|
|
7
7
|
import '../types/components.types.mjs';
|
|
8
8
|
import '../types/carousel-tokens.types.mjs';
|
|
9
9
|
import '../types/charts-tokens.types.mjs';
|
|
10
|
+
import 'react-native';
|
|
10
11
|
import '../types/chart.types.mjs';
|
|
12
|
+
import '../types/tokens.types.mjs';
|
|
11
13
|
import '../types/checkbox-tokens.types.mjs';
|
|
14
|
+
import '../types/color-picker-tokens.types.mjs';
|
|
12
15
|
import '../types/list-tokens.types.mjs';
|
|
13
16
|
import '../types/modal-tokens.types.mjs';
|
|
14
17
|
import '../types/popover-tokens.types.mjs';
|
|
15
18
|
import '../types/radio-tokens.types.mjs';
|
|
16
19
|
import '../types/shadow.types.mjs';
|
|
17
|
-
import 'react-native';
|
|
18
20
|
import '../types/tabs-tokens.types.mjs';
|
|
19
21
|
import '../types/accordion-tokens.types.mjs';
|
|
20
22
|
import '../types/avatar-tokens.types.mjs';
|
|
@@ -39,4 +41,3 @@ import '../types/switch-tokens.types.mjs';
|
|
|
39
41
|
import '../types/tag-tokens.types.mjs';
|
|
40
42
|
import '../types/textarea-tokens.types.mjs';
|
|
41
43
|
import '../types/time-picker-token.types.mjs';
|
|
42
|
-
import '../types/tokens.types.mjs';
|
|
@@ -2,19 +2,21 @@ import * as react from 'react';
|
|
|
2
2
|
import { PropsWithChildren } from 'react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { DeepPartial } from '@impulse-ui-native/core';
|
|
5
|
-
import { a as ColorScheme, P as PrimitiveThemeTokens, c as ComponentsTokens, A as AppTheme } from '../theme-provider.types-
|
|
5
|
+
import { a as ColorScheme, P as PrimitiveThemeTokens, c as ComponentsTokens, A as AppTheme } from '../theme-provider.types-CIh3wHN_.mjs';
|
|
6
6
|
import '../types/badge-tokens.types.mjs';
|
|
7
7
|
import '../types/components.types.mjs';
|
|
8
8
|
import '../types/carousel-tokens.types.mjs';
|
|
9
9
|
import '../types/charts-tokens.types.mjs';
|
|
10
|
+
import 'react-native';
|
|
10
11
|
import '../types/chart.types.mjs';
|
|
12
|
+
import '../types/tokens.types.mjs';
|
|
11
13
|
import '../types/checkbox-tokens.types.mjs';
|
|
14
|
+
import '../types/color-picker-tokens.types.mjs';
|
|
12
15
|
import '../types/list-tokens.types.mjs';
|
|
13
16
|
import '../types/modal-tokens.types.mjs';
|
|
14
17
|
import '../types/popover-tokens.types.mjs';
|
|
15
18
|
import '../types/radio-tokens.types.mjs';
|
|
16
19
|
import '../types/shadow.types.mjs';
|
|
17
|
-
import 'react-native';
|
|
18
20
|
import '../types/tabs-tokens.types.mjs';
|
|
19
21
|
import '../types/accordion-tokens.types.mjs';
|
|
20
22
|
import '../types/avatar-tokens.types.mjs';
|
|
@@ -39,7 +41,6 @@ import '../types/switch-tokens.types.mjs';
|
|
|
39
41
|
import '../types/tag-tokens.types.mjs';
|
|
40
42
|
import '../types/textarea-tokens.types.mjs';
|
|
41
43
|
import '../types/time-picker-token.types.mjs';
|
|
42
|
-
import '../types/tokens.types.mjs';
|
|
43
44
|
|
|
44
45
|
interface ThemeProviderProps {
|
|
45
46
|
scheme?: ColorScheme;
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-CIh3wHN_.mjs';
|
|
2
2
|
import { AccordionTokens } from '../types/accordion-tokens.types.mjs';
|
|
3
3
|
import '../types/badge-tokens.types.mjs';
|
|
4
4
|
import '../types/components.types.mjs';
|
|
5
5
|
import '../types/carousel-tokens.types.mjs';
|
|
6
6
|
import '../types/charts-tokens.types.mjs';
|
|
7
|
+
import 'react-native';
|
|
7
8
|
import '../types/chart.types.mjs';
|
|
9
|
+
import '../types/tokens.types.mjs';
|
|
8
10
|
import '../types/checkbox-tokens.types.mjs';
|
|
11
|
+
import '../types/color-picker-tokens.types.mjs';
|
|
9
12
|
import '../types/list-tokens.types.mjs';
|
|
10
13
|
import '../types/modal-tokens.types.mjs';
|
|
11
14
|
import '../types/popover-tokens.types.mjs';
|
|
12
15
|
import '../types/radio-tokens.types.mjs';
|
|
13
16
|
import '../types/shadow.types.mjs';
|
|
14
|
-
import 'react-native';
|
|
15
17
|
import '../types/tabs-tokens.types.mjs';
|
|
16
18
|
import '../types/avatar-tokens.types.mjs';
|
|
17
19
|
import '../types/buttons-tokens.types.mjs';
|
|
@@ -35,7 +37,6 @@ import '../types/switch-tokens.types.mjs';
|
|
|
35
37
|
import '../types/tag-tokens.types.mjs';
|
|
36
38
|
import '../types/textarea-tokens.types.mjs';
|
|
37
39
|
import '../types/time-picker-token.types.mjs';
|
|
38
|
-
import '../types/tokens.types.mjs';
|
|
39
40
|
|
|
40
41
|
declare function createAccordionTokens(tokens: PrimitiveThemeTokens): AccordionTokens;
|
|
41
42
|
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-CIh3wHN_.mjs';
|
|
2
2
|
import { AvatarTokens } from '../types/avatar-tokens.types.mjs';
|
|
3
3
|
import '../types/badge-tokens.types.mjs';
|
|
4
4
|
import '../types/components.types.mjs';
|
|
5
5
|
import '../types/carousel-tokens.types.mjs';
|
|
6
6
|
import '../types/charts-tokens.types.mjs';
|
|
7
|
+
import 'react-native';
|
|
7
8
|
import '../types/chart.types.mjs';
|
|
9
|
+
import '../types/tokens.types.mjs';
|
|
8
10
|
import '../types/checkbox-tokens.types.mjs';
|
|
11
|
+
import '../types/color-picker-tokens.types.mjs';
|
|
9
12
|
import '../types/list-tokens.types.mjs';
|
|
10
13
|
import '../types/modal-tokens.types.mjs';
|
|
11
14
|
import '../types/popover-tokens.types.mjs';
|
|
12
15
|
import '../types/radio-tokens.types.mjs';
|
|
13
16
|
import '../types/shadow.types.mjs';
|
|
14
|
-
import 'react-native';
|
|
15
17
|
import '../types/tabs-tokens.types.mjs';
|
|
16
18
|
import '../types/accordion-tokens.types.mjs';
|
|
17
19
|
import '../types/buttons-tokens.types.mjs';
|
|
@@ -35,7 +37,6 @@ import '../types/switch-tokens.types.mjs';
|
|
|
35
37
|
import '../types/tag-tokens.types.mjs';
|
|
36
38
|
import '../types/textarea-tokens.types.mjs';
|
|
37
39
|
import '../types/time-picker-token.types.mjs';
|
|
38
|
-
import '../types/tokens.types.mjs';
|
|
39
40
|
|
|
40
41
|
declare function createAvatarTokens(tokens: PrimitiveThemeTokens): AvatarTokens;
|
|
41
42
|
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-CIh3wHN_.mjs';
|
|
2
2
|
import { BadgeTokens } from '../types/badge-tokens.types.mjs';
|
|
3
3
|
import '../types/carousel-tokens.types.mjs';
|
|
4
4
|
import '../types/components.types.mjs';
|
|
5
5
|
import '../types/charts-tokens.types.mjs';
|
|
6
|
+
import 'react-native';
|
|
6
7
|
import '../types/chart.types.mjs';
|
|
8
|
+
import '../types/tokens.types.mjs';
|
|
7
9
|
import '../types/checkbox-tokens.types.mjs';
|
|
10
|
+
import '../types/color-picker-tokens.types.mjs';
|
|
8
11
|
import '../types/list-tokens.types.mjs';
|
|
9
12
|
import '../types/modal-tokens.types.mjs';
|
|
10
13
|
import '../types/popover-tokens.types.mjs';
|
|
11
14
|
import '../types/radio-tokens.types.mjs';
|
|
12
15
|
import '../types/shadow.types.mjs';
|
|
13
|
-
import 'react-native';
|
|
14
16
|
import '../types/tabs-tokens.types.mjs';
|
|
15
17
|
import '../types/accordion-tokens.types.mjs';
|
|
16
18
|
import '../types/avatar-tokens.types.mjs';
|
|
@@ -35,7 +37,6 @@ import '../types/switch-tokens.types.mjs';
|
|
|
35
37
|
import '../types/tag-tokens.types.mjs';
|
|
36
38
|
import '../types/textarea-tokens.types.mjs';
|
|
37
39
|
import '../types/time-picker-token.types.mjs';
|
|
38
|
-
import '../types/tokens.types.mjs';
|
|
39
40
|
|
|
40
41
|
declare function createBadgeTokens(tokens: PrimitiveThemeTokens): BadgeTokens;
|
|
41
42
|
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-CIh3wHN_.mjs';
|
|
2
2
|
import { ButtonTokens } from '../types/buttons-tokens.types.mjs';
|
|
3
3
|
import '../types/badge-tokens.types.mjs';
|
|
4
4
|
import '../types/components.types.mjs';
|
|
5
5
|
import '../types/carousel-tokens.types.mjs';
|
|
6
6
|
import '../types/charts-tokens.types.mjs';
|
|
7
|
+
import 'react-native';
|
|
7
8
|
import '../types/chart.types.mjs';
|
|
9
|
+
import '../types/tokens.types.mjs';
|
|
8
10
|
import '../types/checkbox-tokens.types.mjs';
|
|
11
|
+
import '../types/color-picker-tokens.types.mjs';
|
|
9
12
|
import '../types/list-tokens.types.mjs';
|
|
10
13
|
import '../types/modal-tokens.types.mjs';
|
|
11
14
|
import '../types/popover-tokens.types.mjs';
|
|
12
15
|
import '../types/radio-tokens.types.mjs';
|
|
13
16
|
import '../types/shadow.types.mjs';
|
|
14
|
-
import 'react-native';
|
|
15
17
|
import '../types/tabs-tokens.types.mjs';
|
|
16
18
|
import '../types/accordion-tokens.types.mjs';
|
|
17
19
|
import '../types/avatar-tokens.types.mjs';
|
|
@@ -35,7 +37,6 @@ import '../types/switch-tokens.types.mjs';
|
|
|
35
37
|
import '../types/tag-tokens.types.mjs';
|
|
36
38
|
import '../types/textarea-tokens.types.mjs';
|
|
37
39
|
import '../types/time-picker-token.types.mjs';
|
|
38
|
-
import '../types/tokens.types.mjs';
|
|
39
40
|
|
|
40
41
|
declare function createButtonTokens(tokens: PrimitiveThemeTokens): ButtonTokens;
|
|
41
42
|
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-CIh3wHN_.mjs';
|
|
2
2
|
import { CardTokens } from '../types/card-tokens.types.mjs';
|
|
3
3
|
import '../types/badge-tokens.types.mjs';
|
|
4
4
|
import '../types/components.types.mjs';
|
|
5
5
|
import '../types/carousel-tokens.types.mjs';
|
|
6
6
|
import '../types/charts-tokens.types.mjs';
|
|
7
|
+
import 'react-native';
|
|
7
8
|
import '../types/chart.types.mjs';
|
|
9
|
+
import '../types/tokens.types.mjs';
|
|
8
10
|
import '../types/checkbox-tokens.types.mjs';
|
|
11
|
+
import '../types/color-picker-tokens.types.mjs';
|
|
9
12
|
import '../types/list-tokens.types.mjs';
|
|
10
13
|
import '../types/modal-tokens.types.mjs';
|
|
11
14
|
import '../types/popover-tokens.types.mjs';
|
|
12
15
|
import '../types/radio-tokens.types.mjs';
|
|
13
16
|
import '../types/shadow.types.mjs';
|
|
14
|
-
import 'react-native';
|
|
15
17
|
import '../types/tabs-tokens.types.mjs';
|
|
16
18
|
import '../types/accordion-tokens.types.mjs';
|
|
17
19
|
import '../types/avatar-tokens.types.mjs';
|
|
@@ -35,7 +37,6 @@ import '../types/switch-tokens.types.mjs';
|
|
|
35
37
|
import '../types/tag-tokens.types.mjs';
|
|
36
38
|
import '../types/textarea-tokens.types.mjs';
|
|
37
39
|
import '../types/time-picker-token.types.mjs';
|
|
38
|
-
import '../types/tokens.types.mjs';
|
|
39
40
|
|
|
40
41
|
declare function createCardTokens(tokens: PrimitiveThemeTokens): CardTokens;
|
|
41
42
|
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-CIh3wHN_.mjs';
|
|
2
2
|
import { CarouselTokens } from '../types/carousel-tokens.types.mjs';
|
|
3
3
|
import '../types/badge-tokens.types.mjs';
|
|
4
4
|
import '../types/components.types.mjs';
|
|
5
5
|
import '../types/charts-tokens.types.mjs';
|
|
6
|
+
import 'react-native';
|
|
6
7
|
import '../types/chart.types.mjs';
|
|
8
|
+
import '../types/tokens.types.mjs';
|
|
7
9
|
import '../types/checkbox-tokens.types.mjs';
|
|
10
|
+
import '../types/color-picker-tokens.types.mjs';
|
|
8
11
|
import '../types/list-tokens.types.mjs';
|
|
9
12
|
import '../types/modal-tokens.types.mjs';
|
|
10
13
|
import '../types/popover-tokens.types.mjs';
|
|
11
14
|
import '../types/radio-tokens.types.mjs';
|
|
12
15
|
import '../types/shadow.types.mjs';
|
|
13
|
-
import 'react-native';
|
|
14
16
|
import '../types/tabs-tokens.types.mjs';
|
|
15
17
|
import '../types/accordion-tokens.types.mjs';
|
|
16
18
|
import '../types/avatar-tokens.types.mjs';
|
|
@@ -35,7 +37,6 @@ import '../types/switch-tokens.types.mjs';
|
|
|
35
37
|
import '../types/tag-tokens.types.mjs';
|
|
36
38
|
import '../types/textarea-tokens.types.mjs';
|
|
37
39
|
import '../types/time-picker-token.types.mjs';
|
|
38
|
-
import '../types/tokens.types.mjs';
|
|
39
40
|
|
|
40
41
|
declare function createCarouselTokens(tokens: PrimitiveThemeTokens): CarouselTokens;
|
|
41
42
|
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { ChartsTokens } from '../types/charts-tokens.types.mjs';
|
|
2
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { ChartsLabelTokens, ChartsTokens } from '../types/charts-tokens.types.mjs';
|
|
2
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-CIh3wHN_.mjs';
|
|
3
|
+
import 'react-native';
|
|
3
4
|
import '../types/chart.types.mjs';
|
|
5
|
+
import '../types/tokens.types.mjs';
|
|
4
6
|
import '../types/badge-tokens.types.mjs';
|
|
5
7
|
import '../types/components.types.mjs';
|
|
6
8
|
import '../types/carousel-tokens.types.mjs';
|
|
7
9
|
import '../types/checkbox-tokens.types.mjs';
|
|
10
|
+
import '../types/color-picker-tokens.types.mjs';
|
|
8
11
|
import '../types/list-tokens.types.mjs';
|
|
9
12
|
import '../types/modal-tokens.types.mjs';
|
|
10
13
|
import '../types/popover-tokens.types.mjs';
|
|
11
14
|
import '../types/radio-tokens.types.mjs';
|
|
12
15
|
import '../types/shadow.types.mjs';
|
|
13
|
-
import 'react-native';
|
|
14
16
|
import '../types/tabs-tokens.types.mjs';
|
|
15
17
|
import '../types/accordion-tokens.types.mjs';
|
|
16
18
|
import '../types/avatar-tokens.types.mjs';
|
|
@@ -35,8 +37,8 @@ import '../types/switch-tokens.types.mjs';
|
|
|
35
37
|
import '../types/tag-tokens.types.mjs';
|
|
36
38
|
import '../types/textarea-tokens.types.mjs';
|
|
37
39
|
import '../types/time-picker-token.types.mjs';
|
|
38
|
-
import '../types/tokens.types.mjs';
|
|
39
40
|
|
|
40
41
|
declare function createChartsTokens(tokens: PrimitiveThemeTokens): ChartsTokens;
|
|
42
|
+
declare function createChartsLabelTokens(tokens: PrimitiveThemeTokens): ChartsLabelTokens;
|
|
41
43
|
|
|
42
|
-
export { createChartsTokens };
|
|
44
|
+
export { createChartsLabelTokens, createChartsTokens };
|
|
@@ -15,11 +15,39 @@ function createChartsTokens(tokens) {
|
|
|
15
15
|
},
|
|
16
16
|
grid: { width: tokens.borderSize.sm },
|
|
17
17
|
line: { width: tokens.borderSize.md },
|
|
18
|
-
bar: { categoryPadding: 0.2, seriesPadding: 0.1 },
|
|
19
|
-
pie: { ringPadding: tokens.borderSize.md }
|
|
18
|
+
bar: { categoryPadding: 0.2, seriesPadding: 0.1, radius: tokens.radii.sm },
|
|
19
|
+
pie: { ringPadding: tokens.borderSize.md, cornerRadius: tokens.radii.sm },
|
|
20
|
+
label: createChartsLabelTokens(tokens),
|
|
21
|
+
selection: { radius: tokens.space.xxs, width: tokens.borderSize.md },
|
|
22
|
+
legend: {
|
|
23
|
+
gap: tokens.space.xs,
|
|
24
|
+
padding: tokens.space.xs,
|
|
25
|
+
swatchSize: tokens.space.mxs,
|
|
26
|
+
swatchRadius: tokens.radii.sm
|
|
27
|
+
},
|
|
28
|
+
tooltip: {
|
|
29
|
+
offset: tokens.space.xs,
|
|
30
|
+
maxWidth: "90%",
|
|
31
|
+
backgroundColor: tokens.colors.surface.elevated.value,
|
|
32
|
+
color: tokens.colors.text.primary,
|
|
33
|
+
borderColor: tokens.colors.border.subtle.value,
|
|
34
|
+
borderWidth: tokens.borderSize.sm,
|
|
35
|
+
borderRadius: tokens.radii.sm,
|
|
36
|
+
padding: tokens.space.xs,
|
|
37
|
+
gap: tokens.space.xs
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function createChartsLabelTokens(tokens) {
|
|
42
|
+
return {
|
|
43
|
+
color: tokens.colors.text.secondary,
|
|
44
|
+
fontSize: tokens.fontSize.xs,
|
|
45
|
+
fontFamily: tokens.fontFamily.normal[tokens.fontWeight.regular],
|
|
46
|
+
fontWeight: tokens.fontWeight.regular
|
|
20
47
|
};
|
|
21
48
|
}
|
|
22
49
|
export {
|
|
50
|
+
createChartsLabelTokens,
|
|
23
51
|
createChartsTokens
|
|
24
52
|
};
|
|
25
53
|
//# sourceMappingURL=create-charts-tokens.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/theme/create-charts-tokens.ts"],"sourcesContent":["import type {
|
|
1
|
+
{"version":3,"sources":["../../src/theme/create-charts-tokens.ts"],"sourcesContent":["import type {\n ChartsLabelTokens,\n ChartsTokens,\n PrimitiveThemeTokens,\n} from \"../types\";\nimport { ChartColorTokens } from \"./chart-color-tokens\";\n\nexport function createChartsTokens(tokens: PrimitiveThemeTokens): ChartsTokens {\n return {\n palette: ChartColorTokens,\n insets: {\n top: tokens.space.md,\n right: tokens.space.md,\n bottom: tokens.space.md,\n left: tokens.space.md,\n },\n axis: {\n width: tokens.borderSize.sm,\n tickLength: tokens.space.xxs,\n labelGap: tokens.space.xxs,\n },\n grid: { width: tokens.borderSize.sm },\n line: { width: tokens.borderSize.md },\n bar: { categoryPadding: 0.2, seriesPadding: 0.1, radius: tokens.radii.sm },\n pie: { ringPadding: tokens.borderSize.md, cornerRadius: tokens.radii.sm },\n label: createChartsLabelTokens(tokens),\n selection: { radius: tokens.space.xxs, width: tokens.borderSize.md },\n legend: {\n gap: tokens.space.xs,\n padding: tokens.space.xs,\n swatchSize: tokens.space.mxs,\n swatchRadius: tokens.radii.sm,\n },\n tooltip: {\n offset: tokens.space.xs,\n maxWidth: \"90%\",\n backgroundColor: tokens.colors.surface.elevated.value,\n color: tokens.colors.text.primary,\n borderColor: tokens.colors.border.subtle.value,\n borderWidth: tokens.borderSize.sm,\n borderRadius: tokens.radii.sm,\n padding: tokens.space.xs,\n gap: tokens.space.xs,\n },\n };\n}\n\nexport function createChartsLabelTokens(\n tokens: PrimitiveThemeTokens,\n): ChartsLabelTokens {\n return {\n color: tokens.colors.text.secondary,\n fontSize: tokens.fontSize.xs,\n fontFamily: tokens.fontFamily.normal[tokens.fontWeight.regular],\n fontWeight: tokens.fontWeight.regular,\n };\n}\n"],"mappings":"AAKA,SAAS,wBAAwB;AAE1B,SAAS,mBAAmB,QAA4C;AAC7E,SAAO;AAAA,IACL,SAAS;AAAA,IACT,QAAQ;AAAA,MACN,KAAK,OAAO,MAAM;AAAA,MAClB,OAAO,OAAO,MAAM;AAAA,MACpB,QAAQ,OAAO,MAAM;AAAA,MACrB,MAAM,OAAO,MAAM;AAAA,IACrB;AAAA,IACA,MAAM;AAAA,MACJ,OAAO,OAAO,WAAW;AAAA,MACzB,YAAY,OAAO,MAAM;AAAA,MACzB,UAAU,OAAO,MAAM;AAAA,IACzB;AAAA,IACA,MAAM,EAAE,OAAO,OAAO,WAAW,GAAG;AAAA,IACpC,MAAM,EAAE,OAAO,OAAO,WAAW,GAAG;AAAA,IACpC,KAAK,EAAE,iBAAiB,KAAK,eAAe,KAAK,QAAQ,OAAO,MAAM,GAAG;AAAA,IACzE,KAAK,EAAE,aAAa,OAAO,WAAW,IAAI,cAAc,OAAO,MAAM,GAAG;AAAA,IACxE,OAAO,wBAAwB,MAAM;AAAA,IACrC,WAAW,EAAE,QAAQ,OAAO,MAAM,KAAK,OAAO,OAAO,WAAW,GAAG;AAAA,IACnE,QAAQ;AAAA,MACN,KAAK,OAAO,MAAM;AAAA,MAClB,SAAS,OAAO,MAAM;AAAA,MACtB,YAAY,OAAO,MAAM;AAAA,MACzB,cAAc,OAAO,MAAM;AAAA,IAC7B;AAAA,IACA,SAAS;AAAA,MACP,QAAQ,OAAO,MAAM;AAAA,MACrB,UAAU;AAAA,MACV,iBAAiB,OAAO,OAAO,QAAQ,SAAS;AAAA,MAChD,OAAO,OAAO,OAAO,KAAK;AAAA,MAC1B,aAAa,OAAO,OAAO,OAAO,OAAO;AAAA,MACzC,aAAa,OAAO,WAAW;AAAA,MAC/B,cAAc,OAAO,MAAM;AAAA,MAC3B,SAAS,OAAO,MAAM;AAAA,MACtB,KAAK,OAAO,MAAM;AAAA,IACpB;AAAA,EACF;AACF;AAEO,SAAS,wBACd,QACmB;AACnB,SAAO;AAAA,IACL,OAAO,OAAO,OAAO,KAAK;AAAA,IAC1B,UAAU,OAAO,SAAS;AAAA,IAC1B,YAAY,OAAO,WAAW,OAAO,OAAO,WAAW,OAAO;AAAA,IAC9D,YAAY,OAAO,WAAW;AAAA,EAChC;AACF;","names":[]}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-CIh3wHN_.mjs';
|
|
2
2
|
import { CheckboxTokens } from '../types/checkbox-tokens.types.mjs';
|
|
3
3
|
import '../types/badge-tokens.types.mjs';
|
|
4
4
|
import '../types/components.types.mjs';
|
|
5
5
|
import '../types/carousel-tokens.types.mjs';
|
|
6
6
|
import '../types/charts-tokens.types.mjs';
|
|
7
|
+
import 'react-native';
|
|
7
8
|
import '../types/chart.types.mjs';
|
|
9
|
+
import '../types/tokens.types.mjs';
|
|
10
|
+
import '../types/color-picker-tokens.types.mjs';
|
|
8
11
|
import '../types/list-tokens.types.mjs';
|
|
9
12
|
import '../types/modal-tokens.types.mjs';
|
|
10
13
|
import '../types/popover-tokens.types.mjs';
|
|
11
14
|
import '../types/radio-tokens.types.mjs';
|
|
12
15
|
import '../types/shadow.types.mjs';
|
|
13
|
-
import 'react-native';
|
|
14
16
|
import '../types/tabs-tokens.types.mjs';
|
|
15
17
|
import '../types/accordion-tokens.types.mjs';
|
|
16
18
|
import '../types/avatar-tokens.types.mjs';
|
|
@@ -35,7 +37,6 @@ import '../types/switch-tokens.types.mjs';
|
|
|
35
37
|
import '../types/tag-tokens.types.mjs';
|
|
36
38
|
import '../types/textarea-tokens.types.mjs';
|
|
37
39
|
import '../types/time-picker-token.types.mjs';
|
|
38
|
-
import '../types/tokens.types.mjs';
|
|
39
40
|
|
|
40
41
|
declare function createCheckboxTokens(tokens: PrimitiveThemeTokens): CheckboxTokens;
|
|
41
42
|
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-CIh3wHN_.mjs';
|
|
2
|
+
import { ColorPickerTokens } from '../types/color-picker-tokens.types.mjs';
|
|
3
|
+
import '../types/badge-tokens.types.mjs';
|
|
4
|
+
import '../types/components.types.mjs';
|
|
5
|
+
import '../types/carousel-tokens.types.mjs';
|
|
6
|
+
import '../types/charts-tokens.types.mjs';
|
|
7
|
+
import 'react-native';
|
|
8
|
+
import '../types/chart.types.mjs';
|
|
9
|
+
import '../types/tokens.types.mjs';
|
|
10
|
+
import '../types/checkbox-tokens.types.mjs';
|
|
11
|
+
import '../types/list-tokens.types.mjs';
|
|
12
|
+
import '../types/modal-tokens.types.mjs';
|
|
13
|
+
import '../types/popover-tokens.types.mjs';
|
|
14
|
+
import '../types/radio-tokens.types.mjs';
|
|
15
|
+
import '../types/shadow.types.mjs';
|
|
16
|
+
import '../types/tabs-tokens.types.mjs';
|
|
17
|
+
import '../types/accordion-tokens.types.mjs';
|
|
18
|
+
import '../types/avatar-tokens.types.mjs';
|
|
19
|
+
import '../types/buttons-tokens.types.mjs';
|
|
20
|
+
import '../types/card-tokens.types.mjs';
|
|
21
|
+
import '../types/control-tokens.types.mjs';
|
|
22
|
+
import '../types/data-state-tokens.types.mjs';
|
|
23
|
+
import '../types/datetime-picker-tokens.types.mjs';
|
|
24
|
+
import '../types/divider-tokens.types.mjs';
|
|
25
|
+
import '../types/flyout-tokens.types.mjs';
|
|
26
|
+
import '../types/icon-tokens.types.mjs';
|
|
27
|
+
import '../types/pagination-tokens.types.mjs';
|
|
28
|
+
import '../types/pressable-tokens.types.mjs';
|
|
29
|
+
import '../types/progress-tokens.types.mjs';
|
|
30
|
+
import '../types/spinner-tokens.types.mjs';
|
|
31
|
+
import '../types/segmented-control-tokens.types.mjs';
|
|
32
|
+
import '../types/select-tokens.types.mjs';
|
|
33
|
+
import '../types/skeleton-tokens.types.mjs';
|
|
34
|
+
import '../types/slider-tokens.types.mjs';
|
|
35
|
+
import '../types/stepper-tokens.types.mjs';
|
|
36
|
+
import '../types/switch-tokens.types.mjs';
|
|
37
|
+
import '../types/tag-tokens.types.mjs';
|
|
38
|
+
import '../types/textarea-tokens.types.mjs';
|
|
39
|
+
import '../types/time-picker-token.types.mjs';
|
|
40
|
+
|
|
41
|
+
declare function createColorPickerTokens(tokens: PrimitiveThemeTokens): ColorPickerTokens;
|
|
42
|
+
|
|
43
|
+
export { createColorPickerTokens };
|