@impulse-ui-native/theme 2.5.0 → 2.7.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 +5 -1
- package/dist/hooks/use-colors.hook.d.mts +5 -1
- package/dist/hooks/use-components-tokens.hook.d.mts +5 -1
- package/dist/hooks/use-theme.hook.d.mts +5 -1
- package/dist/hooks/use-themed-styles.d.mts +5 -1
- package/dist/index.d.mts +5 -1
- package/dist/providers/index.d.mts +5 -1
- package/dist/providers/theme.provider.d.mts +5 -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 +5 -1
- package/dist/theme/create-checkbox-tokens.d.mts +23 -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 +5 -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 +5 -1
- package/dist/theme/create-datetime-picker.d.mts +5 -1
- package/dist/theme/create-flyout-tokens.d.mts +5 -1
- package/dist/theme/create-icon-button-tokens.d.mts +5 -1
- package/dist/theme/create-radio-tokens.d.mts +23 -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 +5 -1
- package/dist/theme/create-skeleton-tokens.d.mts +5 -1
- package/dist/theme/create-stepper-tokens.d.mts +5 -1
- package/dist/theme/create-switch-tokens.d.mts +23 -0
- package/dist/theme/create-switch-tokens.js +76 -0
- package/dist/theme/create-switch-tokens.js.map +1 -0
- package/dist/theme/create-tag-tokens.d.mts +5 -1
- package/dist/theme/create-textarea-tokens.d.mts +23 -0
- package/dist/theme/create-textarea-tokens.js +28 -0
- package/dist/theme/create-textarea-tokens.js.map +1 -0
- package/dist/theme/create-time-picker-tokens.d.mts +5 -1
- package/dist/theme/dark.theme.d.mts +5 -1
- package/dist/theme/index.d.mts +5 -1
- package/dist/theme/index.js.map +1 -1
- package/dist/theme/light.theme.d.mts +5 -1
- package/dist/theme/tokens.theme.d.mts +5 -1
- package/dist/theme/tokens.theme.js +8 -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/index.d.mts +5 -1
- package/dist/types/index.js +4 -0
- package/dist/types/index.js.map +1 -1
- 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/switch-tokens.types.d.mts +32 -0
- package/dist/types/switch-tokens.types.js +1 -0
- package/dist/types/switch-tokens.types.js.map +1 -0
- package/dist/types/textarea-tokens.types.d.mts +17 -0
- package/dist/types/textarea-tokens.types.js +1 -0
- package/dist/types/textarea-tokens.types.js.map +1 -0
- package/dist/types/theme-provider.types.d.mts +8 -0
- package/dist/utils/index.d.mts +5 -1
- package/dist/utils/style.utils.d.mts +5 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -51,3 +51,26 @@ export function App() {
|
|
|
51
51
|
```
|
|
52
52
|
|
|
53
53
|
Theme overrides are deep partials, so only the tokens you want to change need to be supplied.
|
|
54
|
+
|
|
55
|
+
Component-token overrides can be supplied as a deep-partial object or as a
|
|
56
|
+
callback that receives the resolved primitive theme:
|
|
57
|
+
|
|
58
|
+
```tsx
|
|
59
|
+
<ThemeProvider
|
|
60
|
+
components={(theme) => ({
|
|
61
|
+
button: {
|
|
62
|
+
borderRadius: theme.radii.lg,
|
|
63
|
+
variants: {
|
|
64
|
+
filled: {
|
|
65
|
+
backgroundColor: theme.colors.accent.value,
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
})}
|
|
70
|
+
>
|
|
71
|
+
{/* application */}
|
|
72
|
+
</ThemeProvider>
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Component overrides are merged with the generated defaults, so unspecified
|
|
76
|
+
tokens retain their theme-derived values.
|
package/dist/hooks/index.d.mts
CHANGED
|
@@ -8,8 +8,10 @@ export { useTheme } from './use-theme.hook.mjs';
|
|
|
8
8
|
export { useThemedStyles } from './use-themed-styles.mjs';
|
|
9
9
|
import '../types/tokens.types.mjs';
|
|
10
10
|
import '../types/theme-provider.types.mjs';
|
|
11
|
-
import '../types/
|
|
11
|
+
import '../types/checkbox-tokens.types.mjs';
|
|
12
12
|
import '../types/components.types.mjs';
|
|
13
|
+
import '../types/radio-tokens.types.mjs';
|
|
14
|
+
import '../types/buttons-tokens.types.mjs';
|
|
13
15
|
import '../types/control-tokes.types.mjs';
|
|
14
16
|
import '../types/data-state-tokens.types.mjs';
|
|
15
17
|
import '../types/datetime-picker-tokens.types.mjs';
|
|
@@ -19,7 +21,9 @@ import '../types/pressable-tokens.types.mjs';
|
|
|
19
21
|
import '../types/select-tokens.types.mjs';
|
|
20
22
|
import '../types/skeleton-tokens.types.mjs';
|
|
21
23
|
import '../types/stepper-tokens.types.mjs';
|
|
24
|
+
import '../types/switch-tokens.types.mjs';
|
|
22
25
|
import '../types/tag-tokens.types.mjs';
|
|
26
|
+
import '../types/textarea-tokens.types.mjs';
|
|
23
27
|
import '../types/time-picker-token.types.mjs';
|
|
24
28
|
import '../types/border.types.mjs';
|
|
25
29
|
import 'react-native';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ThemeColors } from '../types/theme-provider.types.mjs';
|
|
2
|
-
import '../types/
|
|
2
|
+
import '../types/checkbox-tokens.types.mjs';
|
|
3
3
|
import '../types/components.types.mjs';
|
|
4
|
+
import '../types/radio-tokens.types.mjs';
|
|
5
|
+
import '../types/buttons-tokens.types.mjs';
|
|
4
6
|
import '../types/control-tokes.types.mjs';
|
|
5
7
|
import '../types/data-state-tokens.types.mjs';
|
|
6
8
|
import '../types/datetime-picker-tokens.types.mjs';
|
|
@@ -10,7 +12,9 @@ import '../types/pressable-tokens.types.mjs';
|
|
|
10
12
|
import '../types/select-tokens.types.mjs';
|
|
11
13
|
import '../types/skeleton-tokens.types.mjs';
|
|
12
14
|
import '../types/stepper-tokens.types.mjs';
|
|
15
|
+
import '../types/switch-tokens.types.mjs';
|
|
13
16
|
import '../types/tag-tokens.types.mjs';
|
|
17
|
+
import '../types/textarea-tokens.types.mjs';
|
|
14
18
|
import '../types/time-picker-token.types.mjs';
|
|
15
19
|
import '../types/tokens.types.mjs';
|
|
16
20
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ComponentsTokens } from '../types/theme-provider.types.mjs';
|
|
2
|
-
import '../types/
|
|
2
|
+
import '../types/checkbox-tokens.types.mjs';
|
|
3
3
|
import '../types/components.types.mjs';
|
|
4
|
+
import '../types/radio-tokens.types.mjs';
|
|
5
|
+
import '../types/buttons-tokens.types.mjs';
|
|
4
6
|
import '../types/control-tokes.types.mjs';
|
|
5
7
|
import '../types/data-state-tokens.types.mjs';
|
|
6
8
|
import '../types/datetime-picker-tokens.types.mjs';
|
|
@@ -10,7 +12,9 @@ import '../types/pressable-tokens.types.mjs';
|
|
|
10
12
|
import '../types/select-tokens.types.mjs';
|
|
11
13
|
import '../types/skeleton-tokens.types.mjs';
|
|
12
14
|
import '../types/stepper-tokens.types.mjs';
|
|
15
|
+
import '../types/switch-tokens.types.mjs';
|
|
13
16
|
import '../types/tag-tokens.types.mjs';
|
|
17
|
+
import '../types/textarea-tokens.types.mjs';
|
|
14
18
|
import '../types/time-picker-token.types.mjs';
|
|
15
19
|
import '../types/tokens.types.mjs';
|
|
16
20
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { AppTheme } from '../types/theme-provider.types.mjs';
|
|
2
|
-
import '../types/
|
|
2
|
+
import '../types/checkbox-tokens.types.mjs';
|
|
3
3
|
import '../types/components.types.mjs';
|
|
4
|
+
import '../types/radio-tokens.types.mjs';
|
|
5
|
+
import '../types/buttons-tokens.types.mjs';
|
|
4
6
|
import '../types/control-tokes.types.mjs';
|
|
5
7
|
import '../types/data-state-tokens.types.mjs';
|
|
6
8
|
import '../types/datetime-picker-tokens.types.mjs';
|
|
@@ -10,7 +12,9 @@ import '../types/pressable-tokens.types.mjs';
|
|
|
10
12
|
import '../types/select-tokens.types.mjs';
|
|
11
13
|
import '../types/skeleton-tokens.types.mjs';
|
|
12
14
|
import '../types/stepper-tokens.types.mjs';
|
|
15
|
+
import '../types/switch-tokens.types.mjs';
|
|
13
16
|
import '../types/tag-tokens.types.mjs';
|
|
17
|
+
import '../types/textarea-tokens.types.mjs';
|
|
14
18
|
import '../types/time-picker-token.types.mjs';
|
|
15
19
|
import '../types/tokens.types.mjs';
|
|
16
20
|
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { StyleSheet } from 'react-native';
|
|
2
2
|
import { AppTheme } from '../types/theme-provider.types.mjs';
|
|
3
|
-
import '../types/
|
|
3
|
+
import '../types/checkbox-tokens.types.mjs';
|
|
4
4
|
import '../types/components.types.mjs';
|
|
5
|
+
import '../types/radio-tokens.types.mjs';
|
|
6
|
+
import '../types/buttons-tokens.types.mjs';
|
|
5
7
|
import '../types/control-tokes.types.mjs';
|
|
6
8
|
import '../types/data-state-tokens.types.mjs';
|
|
7
9
|
import '../types/datetime-picker-tokens.types.mjs';
|
|
@@ -11,7 +13,9 @@ import '../types/pressable-tokens.types.mjs';
|
|
|
11
13
|
import '../types/select-tokens.types.mjs';
|
|
12
14
|
import '../types/skeleton-tokens.types.mjs';
|
|
13
15
|
import '../types/stepper-tokens.types.mjs';
|
|
16
|
+
import '../types/switch-tokens.types.mjs';
|
|
14
17
|
import '../types/tag-tokens.types.mjs';
|
|
18
|
+
import '../types/textarea-tokens.types.mjs';
|
|
15
19
|
import '../types/time-picker-token.types.mjs';
|
|
16
20
|
import '../types/tokens.types.mjs';
|
|
17
21
|
|
package/dist/index.d.mts
CHANGED
|
@@ -24,16 +24,20 @@ export { AppTheme, ColorPair, ColorScheme, ComponentsThemes, ComponentsTokens, E
|
|
|
24
24
|
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';
|
|
25
25
|
export { TypographyPresetKey, TypographyProps } from './types/typography.types.mjs';
|
|
26
26
|
export { ButtonSizeTokens, ButtonTokens, ButtonVariantTokens, IconButtonSizeTokens, IconButtonTokens, IconButtonVariantTokens } from './types/buttons-tokens.types.mjs';
|
|
27
|
+
export { CheckboxSizeTokens, CheckboxTokens, CheckboxVariantTokens } from './types/checkbox-tokens.types.mjs';
|
|
27
28
|
export { TagColor, TagColorTokens, TagSizeTokens, TagTokens, TagVariantTokens } from './types/tag-tokens.types.mjs';
|
|
28
|
-
export { ControlAddonTokens, ControlContainerSizeTokens, ControlContainerTokens, ControlContainerVariantTokens, ControlErrorTokens, ControlInputSizeTokens, ControlInputTokens, ControlInputVariantTokens, ControlLabelTokens } from './types/control-tokes.types.mjs';
|
|
29
|
+
export { ControlAddonTokens, ControlAddonVariantTokens, ControlContainerSizeTokens, ControlContainerTokens, ControlContainerVariantTokens, ControlErrorTokens, ControlInputSizeTokens, ControlInputTokens, ControlInputVariantTokens, ControlLabelTokens } from './types/control-tokes.types.mjs';
|
|
29
30
|
export { SelectOptionTokens, SelectTokens } from './types/select-tokens.types.mjs';
|
|
30
31
|
export { DatePickerFlyoutTokens, DatetimePickerCalendarTokens, DatetimePickerDayTokens, DatetimePickerFlyoutActionsTokens, DatetimePickerFlyoutTokens, DatetimePickerQuickDateOptionsTokens, DatetimePickerTokens, DatetimePickerVisibleDateSelectTokens, DatetimeRangePickerFlyoutTokens } from './types/datetime-picker-tokens.types.mjs';
|
|
31
32
|
export { TimePickerColumnTokens, TimePickerColumnsTokens, TimePickerFlyoutTokens, TimePickerTokens } from './types/time-picker-token.types.mjs';
|
|
32
33
|
export { FlyoutHandleTokens, FlyoutTitleTokens, FlyoutTokens } from './types/flyout-tokens.types.mjs';
|
|
33
34
|
export { IconTokens } from './types/icon-tokens.types.mjs';
|
|
34
35
|
export { PressableTokens } from './types/pressable-tokens.types.mjs';
|
|
36
|
+
export { RadioSizeTokens, RadioTokens, RadioVariantTokens } from './types/radio-tokens.types.mjs';
|
|
35
37
|
export { SkeletonBoneTokens, SkeletonTextTokens, SkeletonTokens } from './types/skeleton-tokens.types.mjs';
|
|
36
38
|
export { StepperNavigationTokens, StepperTokens } from './types/stepper-tokens.types.mjs';
|
|
39
|
+
export { SwitchSizeTokens, SwitchTokens, SwitchVariantTokens } from './types/switch-tokens.types.mjs';
|
|
40
|
+
export { TextareaSizeTokens, TextareaTokens } from './types/textarea-tokens.types.mjs';
|
|
37
41
|
export { DataStateActionsFooterTokens, DataStateContentTokens, DataStateDetailsTokens, DataStateLoadingTokens, DataStateTokens } from './types/data-state-tokens.types.mjs';
|
|
38
42
|
export { createStyleKey, extractStyleProps, getShadowStyle } from './utils/style.utils.mjs';
|
|
39
43
|
import 'react-native';
|
|
@@ -3,8 +3,10 @@ import 'react';
|
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import '@impulse-ui-native/core';
|
|
5
5
|
import '../types/theme-provider.types.mjs';
|
|
6
|
-
import '../types/
|
|
6
|
+
import '../types/checkbox-tokens.types.mjs';
|
|
7
7
|
import '../types/components.types.mjs';
|
|
8
|
+
import '../types/radio-tokens.types.mjs';
|
|
9
|
+
import '../types/buttons-tokens.types.mjs';
|
|
8
10
|
import '../types/control-tokes.types.mjs';
|
|
9
11
|
import '../types/data-state-tokens.types.mjs';
|
|
10
12
|
import '../types/datetime-picker-tokens.types.mjs';
|
|
@@ -14,6 +16,8 @@ import '../types/pressable-tokens.types.mjs';
|
|
|
14
16
|
import '../types/select-tokens.types.mjs';
|
|
15
17
|
import '../types/skeleton-tokens.types.mjs';
|
|
16
18
|
import '../types/stepper-tokens.types.mjs';
|
|
19
|
+
import '../types/switch-tokens.types.mjs';
|
|
17
20
|
import '../types/tag-tokens.types.mjs';
|
|
21
|
+
import '../types/textarea-tokens.types.mjs';
|
|
18
22
|
import '../types/time-picker-token.types.mjs';
|
|
19
23
|
import '../types/tokens.types.mjs';
|
|
@@ -3,8 +3,10 @@ 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
5
|
import { ColorScheme, PrimitiveThemeTokens, ComponentsTokens, AppTheme } from '../types/theme-provider.types.mjs';
|
|
6
|
-
import '../types/
|
|
6
|
+
import '../types/checkbox-tokens.types.mjs';
|
|
7
7
|
import '../types/components.types.mjs';
|
|
8
|
+
import '../types/radio-tokens.types.mjs';
|
|
9
|
+
import '../types/buttons-tokens.types.mjs';
|
|
8
10
|
import '../types/control-tokes.types.mjs';
|
|
9
11
|
import '../types/data-state-tokens.types.mjs';
|
|
10
12
|
import '../types/datetime-picker-tokens.types.mjs';
|
|
@@ -14,7 +16,9 @@ import '../types/pressable-tokens.types.mjs';
|
|
|
14
16
|
import '../types/select-tokens.types.mjs';
|
|
15
17
|
import '../types/skeleton-tokens.types.mjs';
|
|
16
18
|
import '../types/stepper-tokens.types.mjs';
|
|
19
|
+
import '../types/switch-tokens.types.mjs';
|
|
17
20
|
import '../types/tag-tokens.types.mjs';
|
|
21
|
+
import '../types/textarea-tokens.types.mjs';
|
|
18
22
|
import '../types/time-picker-token.types.mjs';
|
|
19
23
|
import '../types/tokens.types.mjs';
|
|
20
24
|
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
createContext,
|
|
4
|
-
memo,
|
|
5
|
-
useContext,
|
|
6
|
-
useMemo
|
|
7
|
-
} from "react";
|
|
2
|
+
import { createContext, memo, useContext, useMemo } from "react";
|
|
8
3
|
import { merge } from "@impulse-ui-native/core";
|
|
9
4
|
import { createComponentsTokens, DarkTheme, LightTheme } from "../theme";
|
|
10
5
|
const ThemeContext = createContext(void 0);
|
|
11
6
|
const ThemeProvider = memo(function ThemeProvider2(props) {
|
|
12
|
-
const
|
|
7
|
+
const {
|
|
8
|
+
children,
|
|
9
|
+
components: componentsOverride,
|
|
10
|
+
scheme = "light",
|
|
11
|
+
theme: themeOverride
|
|
12
|
+
} = props;
|
|
13
13
|
const context = useMemo(() => {
|
|
14
14
|
const baseTheme = scheme === "light" ? LightTheme : DarkTheme;
|
|
15
|
-
const customBaseTheme =
|
|
15
|
+
const customBaseTheme = themeOverride?.[scheme];
|
|
16
16
|
const theme = merge(baseTheme, customBaseTheme);
|
|
17
|
+
const customComponents = typeof componentsOverride === "function" ? componentsOverride(theme) : componentsOverride;
|
|
17
18
|
return {
|
|
18
19
|
...theme,
|
|
19
|
-
components: createComponentsTokens(theme)
|
|
20
|
+
components: merge(createComponentsTokens(theme), customComponents)
|
|
20
21
|
};
|
|
21
|
-
}, [scheme,
|
|
22
|
-
return /* @__PURE__ */ jsx(ThemeContext.Provider, { value: context, children
|
|
22
|
+
}, [scheme, themeOverride, componentsOverride]);
|
|
23
|
+
return /* @__PURE__ */ jsx(ThemeContext.Provider, { value: context, children });
|
|
23
24
|
});
|
|
24
25
|
function useThemeContext() {
|
|
25
26
|
const context = useContext(ThemeContext);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/providers/theme.provider.tsx"],"sourcesContent":["import {\
|
|
1
|
+
{"version":3,"sources":["../../src/providers/theme.provider.tsx"],"sourcesContent":["import type { PropsWithChildren } from \"react\";\nimport { createContext, memo, useContext, useMemo } from \"react\";\n\nimport type { DeepPartial } from \"@impulse-ui-native/core\";\nimport { merge } from \"@impulse-ui-native/core\";\n\nimport type {\n AppTheme,\n ColorScheme,\n ComponentsTokens,\n PrimitiveThemeTokens,\n} from \"../types\";\nimport { createComponentsTokens, DarkTheme, LightTheme } from \"../theme\";\n\nconst ThemeContext = createContext<AppTheme | undefined>(undefined);\n\ninterface ThemeProviderProps {\n scheme?: ColorScheme;\n theme?: DeepPartial<{\n light: PrimitiveThemeTokens;\n dark: PrimitiveThemeTokens;\n }>;\n components?:\n | ((theme: PrimitiveThemeTokens) => DeepPartial<ComponentsTokens>)\n | DeepPartial<ComponentsTokens>;\n}\n\nexport const ThemeProvider = memo(function ThemeProvider(\n props: PropsWithChildren<ThemeProviderProps>,\n) {\n const {\n children,\n components: componentsOverride,\n scheme = \"light\",\n theme: themeOverride,\n } = props;\n\n const context = useMemo<AppTheme>(() => {\n const baseTheme = scheme === \"light\" ? LightTheme : DarkTheme;\n const customBaseTheme = themeOverride?.[scheme];\n const theme = merge(baseTheme, customBaseTheme);\n const customComponents =\n typeof componentsOverride === \"function\"\n ? componentsOverride(theme)\n : componentsOverride;\n\n return {\n ...theme,\n components: merge(createComponentsTokens(theme), customComponents),\n };\n }, [scheme, themeOverride, componentsOverride]);\n\n return (\n <ThemeContext.Provider value={context}>{children}</ThemeContext.Provider>\n );\n});\n\nexport function useThemeContext() {\n const context = useContext(ThemeContext);\n\n if (!context) {\n throw new Error(\"useThemeContext must be used within a ThemeProvider\");\n }\n\n return context;\n}\n"],"mappings":"AAqDI;AApDJ,SAAS,eAAe,MAAM,YAAY,eAAe;AAGzD,SAAS,aAAa;AAQtB,SAAS,wBAAwB,WAAW,kBAAkB;AAE9D,MAAM,eAAe,cAAoC,MAAS;AAa3D,MAAM,gBAAgB,KAAK,SAASA,eACzC,OACA;AACA,QAAM;AAAA,IACJ;AAAA,IACA,YAAY;AAAA,IACZ,SAAS;AAAA,IACT,OAAO;AAAA,EACT,IAAI;AAEJ,QAAM,UAAU,QAAkB,MAAM;AACtC,UAAM,YAAY,WAAW,UAAU,aAAa;AACpD,UAAM,kBAAkB,gBAAgB,MAAM;AAC9C,UAAM,QAAQ,MAAM,WAAW,eAAe;AAC9C,UAAM,mBACJ,OAAO,uBAAuB,aAC1B,mBAAmB,KAAK,IACxB;AAEN,WAAO;AAAA,MACL,GAAG;AAAA,MACH,YAAY,MAAM,uBAAuB,KAAK,GAAG,gBAAgB;AAAA,IACnE;AAAA,EACF,GAAG,CAAC,QAAQ,eAAe,kBAAkB,CAAC;AAE9C,SACE,oBAAC,aAAa,UAAb,EAAsB,OAAO,SAAU,UAAS;AAErD,CAAC;AAEM,SAAS,kBAAkB;AAChC,QAAM,UAAU,WAAW,YAAY;AAEvC,MAAI,CAAC,SAAS;AACZ,UAAM,IAAI,MAAM,qDAAqD;AAAA,EACvE;AAEA,SAAO;AACT;","names":["ThemeProvider"]}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { PrimitiveThemeTokens } from '../types/theme-provider.types.mjs';
|
|
2
2
|
import { ButtonTokens } from '../types/buttons-tokens.types.mjs';
|
|
3
|
-
import '../types/
|
|
3
|
+
import '../types/checkbox-tokens.types.mjs';
|
|
4
4
|
import '../types/components.types.mjs';
|
|
5
|
+
import '../types/radio-tokens.types.mjs';
|
|
6
|
+
import '../types/control-tokes.types.mjs';
|
|
5
7
|
import '../types/data-state-tokens.types.mjs';
|
|
6
8
|
import '../types/datetime-picker-tokens.types.mjs';
|
|
7
9
|
import '../types/flyout-tokens.types.mjs';
|
|
@@ -10,7 +12,9 @@ import '../types/pressable-tokens.types.mjs';
|
|
|
10
12
|
import '../types/select-tokens.types.mjs';
|
|
11
13
|
import '../types/skeleton-tokens.types.mjs';
|
|
12
14
|
import '../types/stepper-tokens.types.mjs';
|
|
15
|
+
import '../types/switch-tokens.types.mjs';
|
|
13
16
|
import '../types/tag-tokens.types.mjs';
|
|
17
|
+
import '../types/textarea-tokens.types.mjs';
|
|
14
18
|
import '../types/time-picker-token.types.mjs';
|
|
15
19
|
import '../types/tokens.types.mjs';
|
|
16
20
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { PrimitiveThemeTokens } from '../types/theme-provider.types.mjs';
|
|
2
|
+
import { CheckboxTokens } from '../types/checkbox-tokens.types.mjs';
|
|
3
|
+
import '../types/radio-tokens.types.mjs';
|
|
4
|
+
import '../types/components.types.mjs';
|
|
5
|
+
import '../types/buttons-tokens.types.mjs';
|
|
6
|
+
import '../types/control-tokes.types.mjs';
|
|
7
|
+
import '../types/data-state-tokens.types.mjs';
|
|
8
|
+
import '../types/datetime-picker-tokens.types.mjs';
|
|
9
|
+
import '../types/flyout-tokens.types.mjs';
|
|
10
|
+
import '../types/icon-tokens.types.mjs';
|
|
11
|
+
import '../types/pressable-tokens.types.mjs';
|
|
12
|
+
import '../types/select-tokens.types.mjs';
|
|
13
|
+
import '../types/skeleton-tokens.types.mjs';
|
|
14
|
+
import '../types/stepper-tokens.types.mjs';
|
|
15
|
+
import '../types/switch-tokens.types.mjs';
|
|
16
|
+
import '../types/tag-tokens.types.mjs';
|
|
17
|
+
import '../types/textarea-tokens.types.mjs';
|
|
18
|
+
import '../types/time-picker-token.types.mjs';
|
|
19
|
+
import '../types/tokens.types.mjs';
|
|
20
|
+
|
|
21
|
+
declare function createCheckboxTokens(tokens: PrimitiveThemeTokens): CheckboxTokens;
|
|
22
|
+
|
|
23
|
+
export { createCheckboxTokens };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
function createCheckboxTokens(tokens) {
|
|
2
|
+
const primary = tokens.colors.primary.value;
|
|
3
|
+
const primaryContrast = tokens.colors.primary.contrast;
|
|
4
|
+
const secondary = tokens.colors.secondary.value;
|
|
5
|
+
const secondaryContrast = tokens.colors.secondary.contrast;
|
|
6
|
+
return {
|
|
7
|
+
borderWidth: tokens.borderSize.md,
|
|
8
|
+
borderRadius: tokens.radii.sm,
|
|
9
|
+
uncheckedBackgroundColor: "transparent",
|
|
10
|
+
uncheckedBorderColor: tokens.colors.border.strong.value,
|
|
11
|
+
disabledBackgroundColor: tokens.colors.neutral["3"],
|
|
12
|
+
disabledBorderColor: tokens.colors.neutral["5"],
|
|
13
|
+
disabledColor: tokens.colors.text.disabled,
|
|
14
|
+
sizes: {
|
|
15
|
+
small: {
|
|
16
|
+
size: 20,
|
|
17
|
+
iconSize: 14,
|
|
18
|
+
hitSlop: 12
|
|
19
|
+
},
|
|
20
|
+
medium: {
|
|
21
|
+
size: 24,
|
|
22
|
+
iconSize: 18,
|
|
23
|
+
hitSlop: 10
|
|
24
|
+
},
|
|
25
|
+
large: {
|
|
26
|
+
size: 28,
|
|
27
|
+
iconSize: 22,
|
|
28
|
+
hitSlop: 8
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
variants: {
|
|
32
|
+
filled: {
|
|
33
|
+
backgroundColor: primary,
|
|
34
|
+
borderColor: primary,
|
|
35
|
+
color: primaryContrast
|
|
36
|
+
},
|
|
37
|
+
outlined: {
|
|
38
|
+
backgroundColor: "transparent",
|
|
39
|
+
borderColor: primary,
|
|
40
|
+
color: primary
|
|
41
|
+
},
|
|
42
|
+
soft: {
|
|
43
|
+
backgroundColor: secondary,
|
|
44
|
+
borderColor: secondary,
|
|
45
|
+
color: secondaryContrast
|
|
46
|
+
},
|
|
47
|
+
ghost: {
|
|
48
|
+
backgroundColor: "transparent",
|
|
49
|
+
borderColor: "transparent",
|
|
50
|
+
color: primary
|
|
51
|
+
},
|
|
52
|
+
plain: {
|
|
53
|
+
backgroundColor: "transparent",
|
|
54
|
+
borderColor: "transparent",
|
|
55
|
+
color: primary
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
export {
|
|
61
|
+
createCheckboxTokens
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=create-checkbox-tokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/theme/create-checkbox-tokens.ts"],"sourcesContent":["import type { CheckboxTokens, PrimitiveThemeTokens } from \"../types\";\n\nexport function createCheckboxTokens(\n tokens: PrimitiveThemeTokens,\n): CheckboxTokens {\n const primary = tokens.colors.primary.value;\n const primaryContrast = tokens.colors.primary.contrast;\n const secondary = tokens.colors.secondary.value;\n const secondaryContrast = tokens.colors.secondary.contrast;\n\n return {\n borderWidth: tokens.borderSize.md,\n borderRadius: tokens.radii.sm,\n uncheckedBackgroundColor: \"transparent\",\n uncheckedBorderColor: tokens.colors.border.strong.value,\n disabledBackgroundColor: tokens.colors.neutral[\"3\"],\n disabledBorderColor: tokens.colors.neutral[\"5\"],\n disabledColor: tokens.colors.text.disabled,\n\n sizes: {\n small: {\n size: 20,\n iconSize: 14,\n hitSlop: 12,\n },\n medium: {\n size: 24,\n iconSize: 18,\n hitSlop: 10,\n },\n large: {\n size: 28,\n iconSize: 22,\n hitSlop: 8,\n },\n },\n\n variants: {\n filled: {\n backgroundColor: primary,\n borderColor: primary,\n color: primaryContrast,\n },\n outlined: {\n backgroundColor: \"transparent\",\n borderColor: primary,\n color: primary,\n },\n soft: {\n backgroundColor: secondary,\n borderColor: secondary,\n color: secondaryContrast,\n },\n ghost: {\n backgroundColor: \"transparent\",\n borderColor: \"transparent\",\n color: primary,\n },\n plain: {\n backgroundColor: \"transparent\",\n borderColor: \"transparent\",\n color: primary,\n },\n },\n };\n}\n"],"mappings":"AAEO,SAAS,qBACd,QACgB;AAChB,QAAM,UAAU,OAAO,OAAO,QAAQ;AACtC,QAAM,kBAAkB,OAAO,OAAO,QAAQ;AAC9C,QAAM,YAAY,OAAO,OAAO,UAAU;AAC1C,QAAM,oBAAoB,OAAO,OAAO,UAAU;AAElD,SAAO;AAAA,IACL,aAAa,OAAO,WAAW;AAAA,IAC/B,cAAc,OAAO,MAAM;AAAA,IAC3B,0BAA0B;AAAA,IAC1B,sBAAsB,OAAO,OAAO,OAAO,OAAO;AAAA,IAClD,yBAAyB,OAAO,OAAO,QAAQ,GAAG;AAAA,IAClD,qBAAqB,OAAO,OAAO,QAAQ,GAAG;AAAA,IAC9C,eAAe,OAAO,OAAO,KAAK;AAAA,IAElC,OAAO;AAAA,MACL,OAAO;AAAA,QACL,MAAM;AAAA,QACN,UAAU;AAAA,QACV,SAAS;AAAA,MACX;AAAA,MACA,QAAQ;AAAA,QACN,MAAM;AAAA,QACN,UAAU;AAAA,QACV,SAAS;AAAA,MACX;AAAA,MACA,OAAO;AAAA,QACL,MAAM;AAAA,QACN,UAAU;AAAA,QACV,SAAS;AAAA,MACX;AAAA,IACF;AAAA,IAEA,UAAU;AAAA,MACR,QAAQ;AAAA,QACN,iBAAiB;AAAA,QACjB,aAAa;AAAA,QACb,OAAO;AAAA,MACT;AAAA,MACA,UAAU;AAAA,QACR,iBAAiB;AAAA,QACjB,aAAa;AAAA,QACb,OAAO;AAAA,MACT;AAAA,MACA,MAAM;AAAA,QACJ,iBAAiB;AAAA,QACjB,aAAa;AAAA,QACb,OAAO;AAAA,MACT;AAAA,MACA,OAAO;AAAA,QACL,iBAAiB;AAAA,QACjB,aAAa;AAAA,QACb,OAAO;AAAA,MACT;AAAA,MACA,OAAO;AAAA,QACL,iBAAiB;AAAA,QACjB,aAAa;AAAA,QACb,OAAO;AAAA,MACT;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { PrimitiveThemeTokens } from '../types/theme-provider.types.mjs';
|
|
2
2
|
import { ControlAddonTokens, ControlContainerTokens, ControlErrorTokens, ControlInputTokens, ControlLabelTokens } from '../types/control-tokes.types.mjs';
|
|
3
|
-
import '../types/
|
|
3
|
+
import '../types/checkbox-tokens.types.mjs';
|
|
4
4
|
import '../types/components.types.mjs';
|
|
5
|
+
import '../types/radio-tokens.types.mjs';
|
|
6
|
+
import '../types/buttons-tokens.types.mjs';
|
|
5
7
|
import '../types/data-state-tokens.types.mjs';
|
|
6
8
|
import '../types/datetime-picker-tokens.types.mjs';
|
|
7
9
|
import '../types/flyout-tokens.types.mjs';
|
|
@@ -10,7 +12,9 @@ import '../types/pressable-tokens.types.mjs';
|
|
|
10
12
|
import '../types/select-tokens.types.mjs';
|
|
11
13
|
import '../types/skeleton-tokens.types.mjs';
|
|
12
14
|
import '../types/stepper-tokens.types.mjs';
|
|
15
|
+
import '../types/switch-tokens.types.mjs';
|
|
13
16
|
import '../types/tag-tokens.types.mjs';
|
|
17
|
+
import '../types/textarea-tokens.types.mjs';
|
|
14
18
|
import '../types/time-picker-token.types.mjs';
|
|
15
19
|
import '../types/tokens.types.mjs';
|
|
16
20
|
|
|
@@ -1,10 +1,37 @@
|
|
|
1
1
|
function createControlAddonTokens(tokens) {
|
|
2
|
+
const DefaultIconColor = tokens.colors.text.primary;
|
|
3
|
+
const DisabledIconColor = tokens.colors.text.disabled;
|
|
4
|
+
const SoftIconColor = tokens.colors.accent.contrast;
|
|
2
5
|
return {
|
|
3
6
|
marginHorizontal: tokens.space.xxs,
|
|
4
7
|
hitSlop: tokens.space.sm,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
+
variants: {
|
|
9
|
+
filled: {
|
|
10
|
+
iconColor: DefaultIconColor,
|
|
11
|
+
errorIconColor: DefaultIconColor,
|
|
12
|
+
disabledIconColor: DisabledIconColor
|
|
13
|
+
},
|
|
14
|
+
outlined: {
|
|
15
|
+
iconColor: DefaultIconColor,
|
|
16
|
+
errorIconColor: DefaultIconColor,
|
|
17
|
+
disabledIconColor: DisabledIconColor
|
|
18
|
+
},
|
|
19
|
+
soft: {
|
|
20
|
+
iconColor: SoftIconColor,
|
|
21
|
+
errorIconColor: SoftIconColor,
|
|
22
|
+
disabledIconColor: DisabledIconColor
|
|
23
|
+
},
|
|
24
|
+
ghost: {
|
|
25
|
+
iconColor: DefaultIconColor,
|
|
26
|
+
errorIconColor: DefaultIconColor,
|
|
27
|
+
disabledIconColor: DisabledIconColor
|
|
28
|
+
},
|
|
29
|
+
plain: {
|
|
30
|
+
iconColor: DefaultIconColor,
|
|
31
|
+
errorIconColor: DefaultIconColor,
|
|
32
|
+
disabledIconColor: DisabledIconColor
|
|
33
|
+
}
|
|
34
|
+
}
|
|
8
35
|
};
|
|
9
36
|
}
|
|
10
37
|
function createControlContainerTokens(tokens) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/theme/create-control-tokens.ts"],"sourcesContent":["import {\
|
|
1
|
+
{"version":3,"sources":["../../src/theme/create-control-tokens.ts"],"sourcesContent":["import {\n ControlAddonTokens,\n ControlContainerTokens,\n ControlErrorTokens,\n ControlInputTokens,\n ControlLabelTokens,\n PrimitiveThemeTokens,\n} from \"../types\";\n\nexport function createControlAddonTokens(\n tokens: PrimitiveThemeTokens,\n): ControlAddonTokens {\n const DefaultIconColor = tokens.colors.text.primary;\n const DisabledIconColor = tokens.colors.text.disabled;\n const SoftIconColor = tokens.colors.accent.contrast;\n\n return {\n marginHorizontal: tokens.space.xxs,\n hitSlop: tokens.space.sm,\n variants: {\n filled: {\n iconColor: DefaultIconColor,\n errorIconColor: DefaultIconColor,\n disabledIconColor: DisabledIconColor,\n },\n outlined: {\n iconColor: DefaultIconColor,\n errorIconColor: DefaultIconColor,\n disabledIconColor: DisabledIconColor,\n },\n soft: {\n iconColor: SoftIconColor,\n errorIconColor: SoftIconColor,\n disabledIconColor: DisabledIconColor,\n },\n ghost: {\n iconColor: DefaultIconColor,\n errorIconColor: DefaultIconColor,\n disabledIconColor: DisabledIconColor,\n },\n plain: {\n iconColor: DefaultIconColor,\n errorIconColor: DefaultIconColor,\n disabledIconColor: DisabledIconColor,\n },\n },\n };\n}\n\nexport function createControlContainerTokens(\n tokens: PrimitiveThemeTokens,\n): ControlContainerTokens {\n const ErrorColor = tokens.colors.feedback.error.value;\n const TransparentColor = \"transparent\";\n\n return {\n borderWidth: tokens.borderSize.sm,\n borderRadius: tokens.radii.sm,\n disabledOpacity: 0.7,\n\n sizes: {\n small: {\n height: 32,\n paddingHorizontal: tokens.space.xs,\n },\n medium: {\n height: 40,\n paddingHorizontal: tokens.space.xs,\n },\n large: {\n height: 48,\n paddingHorizontal: tokens.space.xs,\n },\n },\n\n variants: {\n filled: {\n backgroundColor: tokens.colors.surface.secondary.value,\n borderColor: TransparentColor,\n\n errorBorderColor: ErrorColor,\n\n disabledBackgroundColor: tokens.colors.neutral[\"2\"],\n disabledBorderColor: TransparentColor,\n },\n\n outlined: {\n backgroundColor: TransparentColor,\n borderColor: tokens.colors.neutral[\"5\"],\n\n errorBorderColor: ErrorColor,\n\n disabledBackgroundColor: TransparentColor,\n disabledBorderColor: tokens.colors.neutral[\"5\"],\n },\n\n soft: {\n backgroundColor: tokens.colors.accent.value,\n borderColor: TransparentColor,\n\n errorBorderColor: ErrorColor,\n\n disabledBackgroundColor: tokens.colors.neutral[\"2\"],\n disabledBorderColor: TransparentColor,\n },\n\n ghost: {\n backgroundColor: TransparentColor,\n borderColor: TransparentColor,\n\n errorBorderColor: ErrorColor,\n\n disabledBackgroundColor: TransparentColor,\n disabledBorderColor: TransparentColor,\n },\n\n plain: {\n backgroundColor: TransparentColor,\n borderColor: TransparentColor,\n\n errorBorderColor: ErrorColor,\n\n disabledBackgroundColor: TransparentColor,\n disabledBorderColor: TransparentColor,\n },\n },\n };\n}\n\nexport function createControlErrorTokens(\n tokens: PrimitiveThemeTokens,\n): ControlErrorTokens {\n return {\n marginTop: tokens.space.xxs,\n color: tokens.colors.feedback.error.value,\n fontSize: tokens.fontSize.xs,\n };\n}\n\nexport function createControlInputTokens(\n tokens: PrimitiveThemeTokens,\n): ControlInputTokens {\n return {\n flex: 1,\n fontFamily: tokens.fontFamily.normal[400],\n paddingHorizontal: tokens.space.xxs,\n\n sizes: {\n small: {\n fontSize: tokens.fontSize.xs,\n },\n medium: {\n fontSize: tokens.fontSize.xsm,\n },\n large: {\n fontSize: tokens.fontSize.sm,\n },\n },\n\n variants: {\n filled: {\n color: tokens.colors.text.primary,\n placeholderColor: tokens.colors.text.disabled,\n\n disabledColor: tokens.colors.text.disabled,\n disabledPlaceholderColor: tokens.colors.text.disabled,\n\n errorColor: tokens.colors.text.primary,\n errorPlaceholderColor: tokens.colors.feedback.error.value,\n },\n\n outlined: {\n color: tokens.colors.text.primary,\n placeholderColor: tokens.colors.text.disabled,\n\n disabledColor: tokens.colors.text.disabled,\n disabledPlaceholderColor: tokens.colors.text.disabled,\n\n errorColor: tokens.colors.text.primary,\n errorPlaceholderColor: tokens.colors.feedback.error.value,\n },\n\n soft: {\n color: tokens.colors.accent.contrast,\n placeholderColor: tokens.colors.accent.contrast,\n\n disabledColor: tokens.colors.text.disabled,\n disabledPlaceholderColor: tokens.colors.text.disabled,\n\n errorColor: tokens.colors.accent.contrast,\n errorPlaceholderColor: tokens.colors.feedback.error.value,\n },\n\n ghost: {\n color: tokens.colors.text.primary,\n placeholderColor: tokens.colors.text.disabled,\n\n disabledColor: tokens.colors.text.disabled,\n disabledPlaceholderColor: tokens.colors.text.disabled,\n\n errorColor: tokens.colors.text.primary,\n errorPlaceholderColor: tokens.colors.feedback.error.value,\n },\n\n plain: {\n color: tokens.colors.text.primary,\n placeholderColor: tokens.colors.text.disabled,\n\n disabledColor: tokens.colors.text.disabled,\n disabledPlaceholderColor: tokens.colors.text.disabled,\n\n errorColor: tokens.colors.text.primary,\n errorPlaceholderColor: tokens.colors.feedback.error.value,\n },\n },\n };\n}\n\nexport function createControlLabelTokens(\n tokens: PrimitiveThemeTokens,\n): ControlLabelTokens {\n return {\n marginBottom: tokens.space.xxs,\n fontSize: tokens.fontSize.xsm,\n\n color: tokens.colors.text.secondary,\n disabledColor: tokens.colors.text.disabled,\n errorColor: tokens.colors.feedback.error.value,\n };\n}\n"],"mappings":"AASO,SAAS,yBACd,QACoB;AACpB,QAAM,mBAAmB,OAAO,OAAO,KAAK;AAC5C,QAAM,oBAAoB,OAAO,OAAO,KAAK;AAC7C,QAAM,gBAAgB,OAAO,OAAO,OAAO;AAE3C,SAAO;AAAA,IACL,kBAAkB,OAAO,MAAM;AAAA,I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A,IAC3B,UAAU,OAAO,SAAS;AAAA,IAE1B,OAAO,OAAO,OAAO,KAAK;AAAA,IAC1B,eAAe,OAAO,OAAO,KAAK;AAAA,IAClC,YAAY,OAAO,OAAO,SAAS,MAAM;AAAA,EAC3C;AACF;","names":[]}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { PrimitiveThemeTokens } from '../types/theme-provider.types.mjs';
|
|
2
2
|
import { DataStateTokens } from '../types/data-state-tokens.types.mjs';
|
|
3
|
-
import '../types/
|
|
3
|
+
import '../types/checkbox-tokens.types.mjs';
|
|
4
4
|
import '../types/components.types.mjs';
|
|
5
|
+
import '../types/radio-tokens.types.mjs';
|
|
6
|
+
import '../types/buttons-tokens.types.mjs';
|
|
5
7
|
import '../types/control-tokes.types.mjs';
|
|
6
8
|
import '../types/datetime-picker-tokens.types.mjs';
|
|
7
9
|
import '../types/flyout-tokens.types.mjs';
|
|
@@ -10,7 +12,9 @@ import '../types/pressable-tokens.types.mjs';
|
|
|
10
12
|
import '../types/select-tokens.types.mjs';
|
|
11
13
|
import '../types/skeleton-tokens.types.mjs';
|
|
12
14
|
import '../types/stepper-tokens.types.mjs';
|
|
15
|
+
import '../types/switch-tokens.types.mjs';
|
|
13
16
|
import '../types/tag-tokens.types.mjs';
|
|
17
|
+
import '../types/textarea-tokens.types.mjs';
|
|
14
18
|
import '../types/time-picker-token.types.mjs';
|
|
15
19
|
import '../types/tokens.types.mjs';
|
|
16
20
|
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { PrimitiveThemeTokens } from '../types/theme-provider.types.mjs';
|
|
2
2
|
import { DatetimePickerTokens } from '../types/datetime-picker-tokens.types.mjs';
|
|
3
|
-
import '../types/
|
|
3
|
+
import '../types/checkbox-tokens.types.mjs';
|
|
4
4
|
import '../types/components.types.mjs';
|
|
5
|
+
import '../types/radio-tokens.types.mjs';
|
|
6
|
+
import '../types/buttons-tokens.types.mjs';
|
|
5
7
|
import '../types/control-tokes.types.mjs';
|
|
6
8
|
import '../types/data-state-tokens.types.mjs';
|
|
7
9
|
import '../types/flyout-tokens.types.mjs';
|
|
@@ -10,7 +12,9 @@ import '../types/pressable-tokens.types.mjs';
|
|
|
10
12
|
import '../types/select-tokens.types.mjs';
|
|
11
13
|
import '../types/skeleton-tokens.types.mjs';
|
|
12
14
|
import '../types/stepper-tokens.types.mjs';
|
|
15
|
+
import '../types/switch-tokens.types.mjs';
|
|
13
16
|
import '../types/tag-tokens.types.mjs';
|
|
17
|
+
import '../types/textarea-tokens.types.mjs';
|
|
14
18
|
import '../types/time-picker-token.types.mjs';
|
|
15
19
|
import '../types/tokens.types.mjs';
|
|
16
20
|
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { PrimitiveThemeTokens } from '../types/theme-provider.types.mjs';
|
|
2
2
|
import { FlyoutTokens } from '../types/flyout-tokens.types.mjs';
|
|
3
|
-
import '../types/
|
|
3
|
+
import '../types/checkbox-tokens.types.mjs';
|
|
4
4
|
import '../types/components.types.mjs';
|
|
5
|
+
import '../types/radio-tokens.types.mjs';
|
|
6
|
+
import '../types/buttons-tokens.types.mjs';
|
|
5
7
|
import '../types/control-tokes.types.mjs';
|
|
6
8
|
import '../types/data-state-tokens.types.mjs';
|
|
7
9
|
import '../types/datetime-picker-tokens.types.mjs';
|
|
@@ -10,7 +12,9 @@ import '../types/pressable-tokens.types.mjs';
|
|
|
10
12
|
import '../types/select-tokens.types.mjs';
|
|
11
13
|
import '../types/skeleton-tokens.types.mjs';
|
|
12
14
|
import '../types/stepper-tokens.types.mjs';
|
|
15
|
+
import '../types/switch-tokens.types.mjs';
|
|
13
16
|
import '../types/tag-tokens.types.mjs';
|
|
17
|
+
import '../types/textarea-tokens.types.mjs';
|
|
14
18
|
import '../types/time-picker-token.types.mjs';
|
|
15
19
|
import '../types/tokens.types.mjs';
|
|
16
20
|
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { PrimitiveThemeTokens } from '../types/theme-provider.types.mjs';
|
|
2
2
|
import { IconButtonTokens } from '../types/buttons-tokens.types.mjs';
|
|
3
|
-
import '../types/
|
|
3
|
+
import '../types/checkbox-tokens.types.mjs';
|
|
4
4
|
import '../types/components.types.mjs';
|
|
5
|
+
import '../types/radio-tokens.types.mjs';
|
|
6
|
+
import '../types/control-tokes.types.mjs';
|
|
5
7
|
import '../types/data-state-tokens.types.mjs';
|
|
6
8
|
import '../types/datetime-picker-tokens.types.mjs';
|
|
7
9
|
import '../types/flyout-tokens.types.mjs';
|
|
@@ -10,7 +12,9 @@ import '../types/pressable-tokens.types.mjs';
|
|
|
10
12
|
import '../types/select-tokens.types.mjs';
|
|
11
13
|
import '../types/skeleton-tokens.types.mjs';
|
|
12
14
|
import '../types/stepper-tokens.types.mjs';
|
|
15
|
+
import '../types/switch-tokens.types.mjs';
|
|
13
16
|
import '../types/tag-tokens.types.mjs';
|
|
17
|
+
import '../types/textarea-tokens.types.mjs';
|
|
14
18
|
import '../types/time-picker-token.types.mjs';
|
|
15
19
|
import '../types/tokens.types.mjs';
|
|
16
20
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { PrimitiveThemeTokens } from '../types/theme-provider.types.mjs';
|
|
2
|
+
import { RadioTokens } from '../types/radio-tokens.types.mjs';
|
|
3
|
+
import '../types/checkbox-tokens.types.mjs';
|
|
4
|
+
import '../types/components.types.mjs';
|
|
5
|
+
import '../types/buttons-tokens.types.mjs';
|
|
6
|
+
import '../types/control-tokes.types.mjs';
|
|
7
|
+
import '../types/data-state-tokens.types.mjs';
|
|
8
|
+
import '../types/datetime-picker-tokens.types.mjs';
|
|
9
|
+
import '../types/flyout-tokens.types.mjs';
|
|
10
|
+
import '../types/icon-tokens.types.mjs';
|
|
11
|
+
import '../types/pressable-tokens.types.mjs';
|
|
12
|
+
import '../types/select-tokens.types.mjs';
|
|
13
|
+
import '../types/skeleton-tokens.types.mjs';
|
|
14
|
+
import '../types/stepper-tokens.types.mjs';
|
|
15
|
+
import '../types/switch-tokens.types.mjs';
|
|
16
|
+
import '../types/tag-tokens.types.mjs';
|
|
17
|
+
import '../types/textarea-tokens.types.mjs';
|
|
18
|
+
import '../types/time-picker-token.types.mjs';
|
|
19
|
+
import '../types/tokens.types.mjs';
|
|
20
|
+
|
|
21
|
+
declare function createRadioTokens(tokens: PrimitiveThemeTokens): RadioTokens;
|
|
22
|
+
|
|
23
|
+
export { createRadioTokens };
|