@impulse-ui-native/theme 2.4.0 → 2.6.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 +23 -0
- package/dist/hooks/index.d.mts +6 -1
- 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-components-tokens.hook.js.map +1 -1
- package/dist/hooks/use-theme.hook.d.mts +6 -1
- package/dist/hooks/use-themed-styles.d.mts +6 -1
- package/dist/index.d.mts +7 -2
- package/dist/providers/index.d.mts +6 -1
- package/dist/providers/theme.provider.d.mts +6 -1
- package/dist/providers/theme.provider.js +12 -11
- package/dist/providers/theme.provider.js.map +1 -1
- package/dist/theme/create-button-tokens.d.mts +6 -1
- package/dist/theme/create-checkbox-tokens.d.mts +21 -0
- package/dist/theme/create-checkbox-tokens.js +63 -0
- package/dist/theme/create-checkbox-tokens.js.map +1 -0
- package/dist/theme/create-control-tokens.d.mts +6 -1
- package/dist/theme/create-control-tokens.js +30 -3
- package/dist/theme/create-control-tokens.js.map +1 -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-flyout-tokens.d.mts +6 -1
- package/dist/theme/create-icon-button-tokens.d.mts +6 -1
- package/dist/theme/create-icon-tokens.d.mts +6 -0
- package/dist/theme/create-icon-tokens.js +13 -0
- package/dist/theme/create-icon-tokens.js.map +1 -0
- package/dist/theme/create-pressable-tokens.d.mts +5 -0
- package/dist/theme/create-pressable-tokens.js +10 -0
- package/dist/theme/create-pressable-tokens.js.map +1 -0
- package/dist/theme/create-radio-tokens.d.mts +21 -0
- package/dist/theme/create-radio-tokens.js +63 -0
- package/dist/theme/create-radio-tokens.js.map +1 -0
- package/dist/theme/create-select-tokens.d.mts +6 -1
- package/dist/theme/create-select-tokens.js +3 -0
- package/dist/theme/create-select-tokens.js.map +1 -1
- package/dist/theme/create-skeleton-tokens.d.mts +6 -1
- package/dist/theme/create-stepper-tokens.d.mts +21 -0
- package/dist/theme/create-stepper-tokens.js +12 -0
- package/dist/theme/create-stepper-tokens.js.map +1 -0
- package/dist/theme/create-tag-tokens.d.mts +6 -1
- package/dist/theme/create-tag-tokens.js +1 -0
- package/dist/theme/create-tag-tokens.js.map +1 -1
- package/dist/theme/create-time-picker-tokens.d.mts +6 -1
- package/dist/theme/dark.theme.d.mts +6 -1
- package/dist/theme/dark.theme.js +3 -1
- package/dist/theme/dark.theme.js.map +1 -1
- package/dist/theme/index.d.mts +7 -2
- package/dist/theme/light.theme.d.mts +6 -1
- package/dist/theme/light.theme.js +3 -1
- package/dist/theme/light.theme.js.map +1 -1
- package/dist/theme/tokens.theme.d.mts +9 -3
- package/dist/theme/tokens.theme.js +21 -0
- package/dist/theme/tokens.theme.js.map +1 -1
- package/dist/types/checkbox-tokens.types.d.mts +25 -0
- package/dist/types/checkbox-tokens.types.js +1 -0
- package/dist/types/checkbox-tokens.types.js.map +1 -0
- package/dist/types/control-tokes.types.d.mts +8 -5
- package/dist/types/icon-tokens.types.d.mts +7 -0
- package/dist/types/icon-tokens.types.js +1 -0
- package/dist/types/icon-tokens.types.js.map +1 -0
- package/dist/types/index.d.mts +6 -1
- package/dist/types/index.js +5 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/pressable-tokens.types.d.mts +6 -0
- package/dist/types/pressable-tokens.types.js +1 -0
- package/dist/types/pressable-tokens.types.js.map +1 -0
- package/dist/types/radio-tokens.types.d.mts +25 -0
- package/dist/types/radio-tokens.types.js +1 -0
- package/dist/types/radio-tokens.types.js.map +1 -0
- package/dist/types/select-tokens.types.d.mts +3 -0
- package/dist/types/stepper-tokens.types.d.mts +9 -0
- package/dist/types/stepper-tokens.types.js +1 -0
- package/dist/types/stepper-tokens.types.js.map +1 -0
- package/dist/types/tag-tokens.types.d.mts +1 -0
- package/dist/types/theme-provider.types.d.mts +12 -1
- package/dist/utils/index.d.mts +6 -1
- package/dist/utils/style.utils.d.mts +6 -1
- package/package.json +4 -4
package/dist/types/index.d.mts
CHANGED
|
@@ -11,12 +11,17 @@ export { AppTheme, ColorPair, ColorScheme, ComponentsThemes, ComponentsTokens, E
|
|
|
11
11
|
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
12
|
export { TypographyPresetKey, TypographyProps } from './typography.types.mjs';
|
|
13
13
|
export { ButtonSizeTokens, ButtonTokens, ButtonVariantTokens, IconButtonSizeTokens, IconButtonTokens, IconButtonVariantTokens } from './buttons-tokens.types.mjs';
|
|
14
|
+
export { CheckboxSizeTokens, CheckboxTokens, CheckboxVariantTokens } from './checkbox-tokens.types.mjs';
|
|
14
15
|
export { TagColor, TagColorTokens, TagSizeTokens, TagTokens, TagVariantTokens } from './tag-tokens.types.mjs';
|
|
15
|
-
export { ControlAddonTokens, ControlContainerSizeTokens, ControlContainerTokens, ControlContainerVariantTokens, ControlErrorTokens, ControlInputSizeTokens, ControlInputTokens, ControlInputVariantTokens, ControlLabelTokens } from './control-tokes.types.mjs';
|
|
16
|
+
export { ControlAddonTokens, ControlAddonVariantTokens, ControlContainerSizeTokens, ControlContainerTokens, ControlContainerVariantTokens, ControlErrorTokens, ControlInputSizeTokens, ControlInputTokens, ControlInputVariantTokens, ControlLabelTokens } from './control-tokes.types.mjs';
|
|
16
17
|
export { SelectOptionTokens, SelectTokens } from './select-tokens.types.mjs';
|
|
17
18
|
export { DatePickerFlyoutTokens, DatetimePickerCalendarTokens, DatetimePickerDayTokens, DatetimePickerFlyoutActionsTokens, DatetimePickerFlyoutTokens, DatetimePickerQuickDateOptionsTokens, DatetimePickerTokens, DatetimePickerVisibleDateSelectTokens, DatetimeRangePickerFlyoutTokens } from './datetime-picker-tokens.types.mjs';
|
|
18
19
|
export { TimePickerColumnTokens, TimePickerColumnsTokens, TimePickerFlyoutTokens, TimePickerTokens } from './time-picker-token.types.mjs';
|
|
19
20
|
export { FlyoutHandleTokens, FlyoutTitleTokens, FlyoutTokens } from './flyout-tokens.types.mjs';
|
|
21
|
+
export { IconTokens } from './icon-tokens.types.mjs';
|
|
22
|
+
export { PressableTokens } from './pressable-tokens.types.mjs';
|
|
23
|
+
export { RadioSizeTokens, RadioTokens, RadioVariantTokens } from './radio-tokens.types.mjs';
|
|
20
24
|
export { SkeletonBoneTokens, SkeletonTextTokens, SkeletonTokens } from './skeleton-tokens.types.mjs';
|
|
25
|
+
export { StepperNavigationTokens, StepperTokens } from './stepper-tokens.types.mjs';
|
|
21
26
|
export { DataStateActionsFooterTokens, DataStateContentTokens, DataStateDetailsTokens, DataStateLoadingTokens, DataStateTokens } from './data-state-tokens.types.mjs';
|
|
22
27
|
import 'react-native';
|
package/dist/types/index.js
CHANGED
|
@@ -11,12 +11,17 @@ export * from "./theme-provider.types";
|
|
|
11
11
|
export * from "./tokens.types";
|
|
12
12
|
export * from "./typography.types";
|
|
13
13
|
export * from "./buttons-tokens.types";
|
|
14
|
+
export * from "./checkbox-tokens.types";
|
|
14
15
|
export * from "./tag-tokens.types";
|
|
15
16
|
export * from "./control-tokes.types";
|
|
16
17
|
export * from "./select-tokens.types";
|
|
17
18
|
export * from "./datetime-picker-tokens.types";
|
|
18
19
|
export * from "./time-picker-token.types";
|
|
19
20
|
export * from "./flyout-tokens.types";
|
|
21
|
+
export * from "./icon-tokens.types";
|
|
22
|
+
export * from "./pressable-tokens.types";
|
|
23
|
+
export * from "./radio-tokens.types";
|
|
20
24
|
export * from "./skeleton-tokens.types";
|
|
25
|
+
export * from "./stepper-tokens.types";
|
|
21
26
|
export * from "./data-state-tokens.types";
|
|
22
27
|
//# sourceMappingURL=index.js.map
|
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 \"./tag-tokens.types\";\nexport * from \"./control-tokes.types\";\nexport * from \"./select-tokens.types\";\nexport * from \"./datetime-picker-tokens.types\";\nexport * from \"./time-picker-token.types\";\nexport * from \"./flyout-tokens.types\";\nexport * from \"./skeleton-tokens.types\";\nexport * from \"./data-state-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;","names":[]}
|
|
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 \"./checkbox-tokens.types\";\nexport * from \"./tag-tokens.types\";\nexport * from \"./control-tokes.types\";\nexport * from \"./select-tokens.types\";\nexport * from \"./datetime-picker-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 \"./radio-tokens.types\";\nexport * from \"./skeleton-tokens.types\";\nexport * from \"./stepper-tokens.types\";\nexport * from \"./data-state-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;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=pressable-tokens.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComponentSize, ComponentVariant } from './components.types.mjs';
|
|
2
|
+
|
|
3
|
+
type RadioSizeTokens = Record<ComponentSize, {
|
|
4
|
+
size: number;
|
|
5
|
+
indicatorSize: number;
|
|
6
|
+
hitSlop: number;
|
|
7
|
+
}>;
|
|
8
|
+
type RadioVariantTokens = Record<ComponentVariant, {
|
|
9
|
+
backgroundColor: string;
|
|
10
|
+
borderColor: string;
|
|
11
|
+
color: string;
|
|
12
|
+
}>;
|
|
13
|
+
interface RadioTokens {
|
|
14
|
+
borderWidth: number;
|
|
15
|
+
borderRadius: number;
|
|
16
|
+
uncheckedBackgroundColor: string;
|
|
17
|
+
uncheckedBorderColor: string;
|
|
18
|
+
disabledBackgroundColor: string;
|
|
19
|
+
disabledBorderColor: string;
|
|
20
|
+
disabledColor: string;
|
|
21
|
+
sizes: RadioSizeTokens;
|
|
22
|
+
variants: RadioVariantTokens;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type { RadioSizeTokens, RadioTokens, RadioVariantTokens };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=radio-tokens.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=stepper-tokens.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,13 +1,18 @@
|
|
|
1
|
+
import { CheckboxTokens } from './checkbox-tokens.types.mjs';
|
|
2
|
+
import { RadioTokens } from './radio-tokens.types.mjs';
|
|
1
3
|
import { ButtonTokens, IconButtonTokens } from './buttons-tokens.types.mjs';
|
|
2
4
|
import { ControlAddonTokens, ControlContainerTokens, ControlErrorTokens, ControlInputTokens, ControlLabelTokens } from './control-tokes.types.mjs';
|
|
3
5
|
import { DataStateTokens } from './data-state-tokens.types.mjs';
|
|
4
6
|
import { DatetimePickerTokens } from './datetime-picker-tokens.types.mjs';
|
|
5
7
|
import { FlyoutTokens } from './flyout-tokens.types.mjs';
|
|
8
|
+
import { IconTokens } from './icon-tokens.types.mjs';
|
|
9
|
+
import { PressableTokens } from './pressable-tokens.types.mjs';
|
|
6
10
|
import { SelectTokens } from './select-tokens.types.mjs';
|
|
7
11
|
import { SkeletonTokens } from './skeleton-tokens.types.mjs';
|
|
12
|
+
import { StepperTokens } from './stepper-tokens.types.mjs';
|
|
8
13
|
import { TagTokens } from './tag-tokens.types.mjs';
|
|
9
14
|
import { TimePickerTokens } from './time-picker-token.types.mjs';
|
|
10
|
-
import { NeutralColor, Space, Radii, BorderSize, FontFamily, FontWeight, FontSize, LineHeight } from './tokens.types.mjs';
|
|
15
|
+
import { NeutralColor, Space, Radii, BorderSize, FontFamily, FontWeight, FontSize, LineHeight, LetterSpacings } from './tokens.types.mjs';
|
|
11
16
|
import './components.types.mjs';
|
|
12
17
|
|
|
13
18
|
interface ThemeContextData {
|
|
@@ -59,7 +64,11 @@ interface ComponentsThemes {
|
|
|
59
64
|
}
|
|
60
65
|
interface ComponentsTokens {
|
|
61
66
|
button: ButtonTokens;
|
|
67
|
+
checkbox: CheckboxTokens;
|
|
62
68
|
iconButton: IconButtonTokens;
|
|
69
|
+
icon: IconTokens;
|
|
70
|
+
pressable: PressableTokens;
|
|
71
|
+
radio: RadioTokens;
|
|
63
72
|
tag: TagTokens;
|
|
64
73
|
controlAddon: ControlAddonTokens;
|
|
65
74
|
controlContainer: ControlContainerTokens;
|
|
@@ -71,6 +80,7 @@ interface ComponentsTokens {
|
|
|
71
80
|
timePicker: TimePickerTokens;
|
|
72
81
|
flyout: FlyoutTokens;
|
|
73
82
|
skeleton: SkeletonTokens;
|
|
83
|
+
stepper: StepperTokens;
|
|
74
84
|
dataState: DataStateTokens;
|
|
75
85
|
}
|
|
76
86
|
interface PrimitiveThemeTokens {
|
|
@@ -82,6 +92,7 @@ interface PrimitiveThemeTokens {
|
|
|
82
92
|
fontWeight: FontWeight;
|
|
83
93
|
fontSize: FontSize;
|
|
84
94
|
lineHeight: LineHeight;
|
|
95
|
+
letterSpacing: LetterSpacings;
|
|
85
96
|
}
|
|
86
97
|
interface AppTheme extends PrimitiveThemeTokens {
|
|
87
98
|
components: ComponentsTokens;
|
package/dist/utils/index.d.mts
CHANGED
|
@@ -10,13 +10,18 @@ import '../types/spacing.types.mjs';
|
|
|
10
10
|
import '../types/typography.types.mjs';
|
|
11
11
|
import '../types/tokens.types.mjs';
|
|
12
12
|
import '../types/theme-provider.types.mjs';
|
|
13
|
-
import '../types/
|
|
13
|
+
import '../types/checkbox-tokens.types.mjs';
|
|
14
14
|
import '../types/components.types.mjs';
|
|
15
|
+
import '../types/radio-tokens.types.mjs';
|
|
16
|
+
import '../types/buttons-tokens.types.mjs';
|
|
15
17
|
import '../types/control-tokes.types.mjs';
|
|
16
18
|
import '../types/data-state-tokens.types.mjs';
|
|
17
19
|
import '../types/datetime-picker-tokens.types.mjs';
|
|
18
20
|
import '../types/flyout-tokens.types.mjs';
|
|
21
|
+
import '../types/icon-tokens.types.mjs';
|
|
22
|
+
import '../types/pressable-tokens.types.mjs';
|
|
19
23
|
import '../types/select-tokens.types.mjs';
|
|
20
24
|
import '../types/skeleton-tokens.types.mjs';
|
|
25
|
+
import '../types/stepper-tokens.types.mjs';
|
|
21
26
|
import '../types/tag-tokens.types.mjs';
|
|
22
27
|
import '../types/time-picker-token.types.mjs';
|
|
@@ -9,14 +9,19 @@ import '../types/flex.types.mjs';
|
|
|
9
9
|
import '../types/spacing.types.mjs';
|
|
10
10
|
import '../types/typography.types.mjs';
|
|
11
11
|
import '../types/tokens.types.mjs';
|
|
12
|
-
import '../types/
|
|
12
|
+
import '../types/checkbox-tokens.types.mjs';
|
|
13
13
|
import '../types/components.types.mjs';
|
|
14
|
+
import '../types/radio-tokens.types.mjs';
|
|
15
|
+
import '../types/buttons-tokens.types.mjs';
|
|
14
16
|
import '../types/control-tokes.types.mjs';
|
|
15
17
|
import '../types/data-state-tokens.types.mjs';
|
|
16
18
|
import '../types/datetime-picker-tokens.types.mjs';
|
|
17
19
|
import '../types/flyout-tokens.types.mjs';
|
|
20
|
+
import '../types/icon-tokens.types.mjs';
|
|
21
|
+
import '../types/pressable-tokens.types.mjs';
|
|
18
22
|
import '../types/select-tokens.types.mjs';
|
|
19
23
|
import '../types/skeleton-tokens.types.mjs';
|
|
24
|
+
import '../types/stepper-tokens.types.mjs';
|
|
20
25
|
import '../types/tag-tokens.types.mjs';
|
|
21
26
|
import '../types/time-picker-token.types.mjs';
|
|
22
27
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@impulse-ui-native/theme",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"description": "Theme tokens, providers, and styling utilities for ImpulseUI Native.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
],
|
|
29
29
|
"sideEffects": false,
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@impulse-ui-native/core": "2.
|
|
31
|
+
"@impulse-ui-native/core": "2.6.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/react": "~19.2.14",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"react": "19.2.3",
|
|
38
38
|
"react-native": "0.86.2",
|
|
39
39
|
"typescript": "~6.0.3",
|
|
40
|
+
"@impulse-ui-native/eslint-config": "1.0.0",
|
|
40
41
|
"@impulse-ui-native/prettier-config": "1.0.0",
|
|
41
|
-
"@impulse-ui-native/tsconfig": "1.0.0"
|
|
42
|
-
"@impulse-ui-native/eslint-config": "1.0.0"
|
|
42
|
+
"@impulse-ui-native/tsconfig": "1.0.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": ">=18",
|