@impulse-ui-native/theme 6.0.0 → 6.1.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/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/use-colors.hook.d.mts +1 -1
- package/dist/hooks/use-components-tokens.hook.d.mts +1 -1
- package/dist/hooks/use-theme.hook.d.mts +1 -1
- package/dist/hooks/use-themed-styles.d.mts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/providers/index.d.mts +1 -1
- package/dist/providers/theme.provider.d.mts +1 -1
- package/dist/theme/create-accordion-tokens.d.mts +1 -1
- package/dist/theme/create-avatar-tokens.d.mts +1 -1
- package/dist/theme/create-badge-tokens.d.mts +1 -1
- package/dist/theme/create-button-tokens.d.mts +1 -1
- package/dist/theme/create-card-tokens.d.mts +1 -1
- package/dist/theme/create-carousel-tokens.d.mts +1 -1
- package/dist/theme/create-checkbox-tokens.d.mts +1 -1
- package/dist/theme/create-control-tokens.d.mts +1 -1
- package/dist/theme/create-data-state-tokens.d.mts +1 -1
- package/dist/theme/create-datetime-picker.d.mts +1 -1
- package/dist/theme/create-divider-tokens.d.mts +1 -1
- package/dist/theme/create-flyout-tokens.d.mts +1 -1
- package/dist/theme/create-icon-button-tokens.d.mts +1 -1
- package/dist/theme/create-list-tokens.d.mts +1 -1
- package/dist/theme/create-pagination-tokens.d.mts +1 -1
- package/dist/theme/create-progress-tokens.d.mts +1 -1
- package/dist/theme/create-radio-tokens.d.mts +1 -1
- package/dist/theme/create-segmented-control-tokens.d.mts +1 -1
- package/dist/theme/create-select-tokens.d.mts +1 -1
- package/dist/theme/create-skeleton-tokens.d.mts +1 -1
- package/dist/theme/create-slider-tokens.d.mts +1 -1
- package/dist/theme/create-spinner-tokens.d.mts +1 -1
- package/dist/theme/create-stepper-tokens.d.mts +1 -1
- package/dist/theme/create-switch-tokens.d.mts +1 -1
- package/dist/theme/create-tag-tokens.d.mts +1 -1
- package/dist/theme/create-textarea-tokens.d.mts +1 -1
- package/dist/theme/create-time-picker-tokens.d.mts +1 -1
- package/dist/theme/create-toast-tokens.d.mts +1 -1
- package/dist/theme/create-toast-tokens.js +2 -0
- package/dist/theme/create-toast-tokens.js.map +1 -1
- package/dist/theme/dark.theme.d.mts +1 -1
- package/dist/theme/index.d.mts +1 -1
- package/dist/theme/light.theme.d.mts +1 -1
- package/dist/theme/tokens.theme.d.mts +1 -1
- package/dist/{theme-provider.types-BSPyJjfq.d.mts → theme-provider.types-xNjF46Bv.d.mts} +2 -0
- package/dist/types/index.d.mts +1 -1
- package/dist/types/theme-provider.types.d.mts +1 -1
- package/dist/types/toast-tokens.types.d.mts +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/style.utils.d.mts +1 -1
- package/package.json +4 -4
package/dist/hooks/index.d.mts
CHANGED
|
@@ -7,7 +7,7 @@ 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-xNjF46Bv.mjs';
|
|
11
11
|
import '../types/badge-tokens.types.mjs';
|
|
12
12
|
import '../types/components.types.mjs';
|
|
13
13
|
import '../types/carousel-tokens.types.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as ThemeColors } from '../theme-provider.types-
|
|
1
|
+
import { T as ThemeColors } from '../theme-provider.types-xNjF46Bv.mjs';
|
|
2
2
|
import '../types/badge-tokens.types.mjs';
|
|
3
3
|
import '../types/components.types.mjs';
|
|
4
4
|
import '../types/carousel-tokens.types.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as ComponentsTokens } from '../theme-provider.types-
|
|
1
|
+
import { c as ComponentsTokens } from '../theme-provider.types-xNjF46Bv.mjs';
|
|
2
2
|
import '../types/badge-tokens.types.mjs';
|
|
3
3
|
import '../types/components.types.mjs';
|
|
4
4
|
import '../types/carousel-tokens.types.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AppTheme } from '../theme-provider.types-
|
|
1
|
+
import { A as AppTheme } from '../theme-provider.types-xNjF46Bv.mjs';
|
|
2
2
|
import '../types/badge-tokens.types.mjs';
|
|
3
3
|
import '../types/components.types.mjs';
|
|
4
4
|
import '../types/carousel-tokens.types.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
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-xNjF46Bv.mjs';
|
|
3
3
|
import '../types/badge-tokens.types.mjs';
|
|
4
4
|
import '../types/components.types.mjs';
|
|
5
5
|
import '../types/carousel-tokens.types.mjs';
|
package/dist/index.d.mts
CHANGED
|
@@ -25,7 +25,7 @@ export { FlexProps } from './types/flex.types.mjs';
|
|
|
25
25
|
export { ShadowIntensity, ShadowLevel, ShadowPosition, ShadowProps } from './types/shadow.types.mjs';
|
|
26
26
|
export { SpacingProps } from './types/spacing.types.mjs';
|
|
27
27
|
export { StylePropKey, StyleProps } from './types/style.types.mjs';
|
|
28
|
-
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-
|
|
28
|
+
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-xNjF46Bv.mjs';
|
|
29
29
|
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';
|
|
30
30
|
export { TypographyPresetKey, TypographyProps } from './types/typography.types.mjs';
|
|
31
31
|
export { ActionAppearanceTokens, ButtonSizeTokens, ButtonTokens, ButtonVariantTokens, IconButtonSizeTokens, IconButtonTokens, IconButtonVariantTokens } from './types/buttons-tokens.types.mjs';
|
|
@@ -2,7 +2,7 @@ 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-xNjF46Bv.mjs';
|
|
6
6
|
import '../types/badge-tokens.types.mjs';
|
|
7
7
|
import '../types/components.types.mjs';
|
|
8
8
|
import '../types/carousel-tokens.types.mjs';
|
|
@@ -2,7 +2,7 @@ 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-xNjF46Bv.mjs';
|
|
6
6
|
import '../types/badge-tokens.types.mjs';
|
|
7
7
|
import '../types/components.types.mjs';
|
|
8
8
|
import '../types/carousel-tokens.types.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-xNjF46Bv.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';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-xNjF46Bv.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';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-xNjF46Bv.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';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-xNjF46Bv.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';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-xNjF46Bv.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';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-xNjF46Bv.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';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-xNjF46Bv.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';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-xNjF46Bv.mjs';
|
|
2
2
|
import { ControlAddonTokens, ControlContainerTokens, ControlErrorTokens, ControlInputTokens, ControlLabelTokens } from '../types/control-tokens.types.mjs';
|
|
3
3
|
import '../types/badge-tokens.types.mjs';
|
|
4
4
|
import '../types/components.types.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-xNjF46Bv.mjs';
|
|
2
2
|
import { DataStateTokens } from '../types/data-state-tokens.types.mjs';
|
|
3
3
|
import '../types/badge-tokens.types.mjs';
|
|
4
4
|
import '../types/components.types.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-xNjF46Bv.mjs';
|
|
2
2
|
import { DatetimePickerTokens } from '../types/datetime-picker-tokens.types.mjs';
|
|
3
3
|
import '../types/badge-tokens.types.mjs';
|
|
4
4
|
import '../types/components.types.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-xNjF46Bv.mjs';
|
|
2
2
|
import { DividerTokens } from '../types/divider-tokens.types.mjs';
|
|
3
3
|
import '../types/badge-tokens.types.mjs';
|
|
4
4
|
import '../types/components.types.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-xNjF46Bv.mjs';
|
|
2
2
|
import { FlyoutTokens } from '../types/flyout-tokens.types.mjs';
|
|
3
3
|
import '../types/badge-tokens.types.mjs';
|
|
4
4
|
import '../types/components.types.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-xNjF46Bv.mjs';
|
|
2
2
|
import { IconButtonTokens } from '../types/buttons-tokens.types.mjs';
|
|
3
3
|
import '../types/badge-tokens.types.mjs';
|
|
4
4
|
import '../types/components.types.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-xNjF46Bv.mjs';
|
|
2
2
|
import { ListTokens } from '../types/list-tokens.types.mjs';
|
|
3
3
|
import '../types/badge-tokens.types.mjs';
|
|
4
4
|
import '../types/components.types.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-xNjF46Bv.mjs';
|
|
2
2
|
import { PaginationTokens } from '../types/pagination-tokens.types.mjs';
|
|
3
3
|
import '../types/badge-tokens.types.mjs';
|
|
4
4
|
import '../types/components.types.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-xNjF46Bv.mjs';
|
|
2
2
|
import { ProgressTokens } from '../types/progress-tokens.types.mjs';
|
|
3
3
|
import '../types/badge-tokens.types.mjs';
|
|
4
4
|
import '../types/components.types.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-xNjF46Bv.mjs';
|
|
2
2
|
import { RadioTokens } from '../types/radio-tokens.types.mjs';
|
|
3
3
|
import '../types/badge-tokens.types.mjs';
|
|
4
4
|
import '../types/components.types.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-xNjF46Bv.mjs';
|
|
2
2
|
import { SegmentedControlTokens } from '../types/segmented-control-tokens.types.mjs';
|
|
3
3
|
import '../types/badge-tokens.types.mjs';
|
|
4
4
|
import '../types/components.types.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-xNjF46Bv.mjs';
|
|
2
2
|
import { SelectTokens } from '../types/select-tokens.types.mjs';
|
|
3
3
|
import '../types/badge-tokens.types.mjs';
|
|
4
4
|
import '../types/components.types.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-xNjF46Bv.mjs';
|
|
2
2
|
import { SkeletonTokens } from '../types/skeleton-tokens.types.mjs';
|
|
3
3
|
import '../types/badge-tokens.types.mjs';
|
|
4
4
|
import '../types/components.types.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-xNjF46Bv.mjs';
|
|
2
2
|
import { SliderTokens } from '../types/slider-tokens.types.mjs';
|
|
3
3
|
import '../types/badge-tokens.types.mjs';
|
|
4
4
|
import '../types/components.types.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-xNjF46Bv.mjs';
|
|
2
2
|
import { SpinnerTokens } from '../types/spinner-tokens.types.mjs';
|
|
3
3
|
import '../types/badge-tokens.types.mjs';
|
|
4
4
|
import '../types/components.types.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-xNjF46Bv.mjs';
|
|
2
2
|
import { StepperTokens } from '../types/stepper-tokens.types.mjs';
|
|
3
3
|
import '../types/badge-tokens.types.mjs';
|
|
4
4
|
import '../types/components.types.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-xNjF46Bv.mjs';
|
|
2
2
|
import { SwitchTokens } from '../types/switch-tokens.types.mjs';
|
|
3
3
|
import '../types/badge-tokens.types.mjs';
|
|
4
4
|
import '../types/components.types.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-xNjF46Bv.mjs';
|
|
2
2
|
import { TagTokens } from '../types/tag-tokens.types.mjs';
|
|
3
3
|
import '../types/badge-tokens.types.mjs';
|
|
4
4
|
import '../types/components.types.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-xNjF46Bv.mjs';
|
|
2
2
|
import { TextareaTokens } from '../types/textarea-tokens.types.mjs';
|
|
3
3
|
import '../types/badge-tokens.types.mjs';
|
|
4
4
|
import '../types/components.types.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-xNjF46Bv.mjs';
|
|
2
2
|
import { TimePickerTokens } from '../types/time-picker-token.types.mjs';
|
|
3
3
|
import '../types/badge-tokens.types.mjs';
|
|
4
4
|
import '../types/components.types.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens, e as ToastTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens, e as ToastTokens } from '../theme-provider.types-xNjF46Bv.mjs';
|
|
2
2
|
import '../types/badge-tokens.types.mjs';
|
|
3
3
|
import '../types/components.types.mjs';
|
|
4
4
|
import '../types/carousel-tokens.types.mjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/theme/create-toast-tokens.ts"],"sourcesContent":["import type { PrimitiveThemeTokens, ToastTokens } from \"../types\";\n\nexport function createToastTokens(tokens: PrimitiveThemeTokens): ToastTokens {\n return {\n backgroundColor: tokens.colors.surface.elevated.value,\n borderColor: tokens.colors.border.subtle.value,\n borderWidth: tokens.borderSize.sm,\n borderRadius: tokens.radii.lg,\n padding: tokens.space.sm,\n gap: tokens.space.xs,\n contentGap: tokens.space.xxs,\n edgeOffset: tokens.space.sm,\n topOffset: tokens.space.xs,\n iconSize: 24,\n iconContainerSize: tokens.space.md,\n actionMinSize: tokens.space.md,\n titleColor: tokens.colors.text.primary,\n descriptionColor: tokens.colors.text.secondary,\n actionColor: tokens.colors.primary.value,\n disabledColor: tokens.colors.text.disabled,\n titleFontSize: tokens.fontSize.sm,\n titleLineHeight: tokens.lineHeight.sm,\n descriptionFontSize: tokens.fontSize.xsm,\n descriptionLineHeight: tokens.lineHeight.xsm,\n zIndexBase: 2000,\n tones: { ...tokens.colors.feedback },\n };\n}\n"],"mappings":"AAEO,SAAS,kBAAkB,QAA2C;AAC3E,SAAO;AAAA,IACL,iBAAiB,OAAO,OAAO,QAAQ,SAAS;AAAA,IAChD,aAAa,OAAO,OAAO,OAAO,OAAO;AAAA,IACzC,aAAa,OAAO,WAAW;AAAA,IAC/B,cAAc,OAAO,MAAM;AAAA,IAC3B,SAAS,OAAO,MAAM;AAAA,IACtB,KAAK,OAAO,MAAM;AAAA,IAClB,YAAY,OAAO,MAAM;AAAA,IACzB,YAAY,OAAO,MAAM;AAAA,IACzB,WAAW,OAAO,MAAM;AAAA,IACxB,UAAU;AAAA,IACV,mBAAmB,OAAO,MAAM;AAAA,IAChC,eAAe,OAAO,MAAM;AAAA,IAC5B,YAAY,OAAO,OAAO,KAAK;AAAA,IAC/B,kBAAkB,OAAO,OAAO,KAAK;AAAA,IACrC,aAAa,OAAO,OAAO,QAAQ;AAAA,IACnC,eAAe,OAAO,OAAO,KAAK;AAAA,IAClC,eAAe,OAAO,SAAS;AAAA,IAC/B,iBAAiB,OAAO,WAAW;AAAA,IACnC,qBAAqB,OAAO,SAAS;AAAA,IACrC,uBAAuB,OAAO,WAAW;AAAA,IACzC,YAAY;AAAA,IACZ,OAAO,EAAE,GAAG,OAAO,OAAO,SAAS;AAAA,EACrC;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/theme/create-toast-tokens.ts"],"sourcesContent":["import type { PrimitiveThemeTokens, ToastTokens } from \"../types\";\n\nexport function createToastTokens(tokens: PrimitiveThemeTokens): ToastTokens {\n return {\n backgroundColor: tokens.colors.surface.elevated.value,\n borderColor: tokens.colors.border.subtle.value,\n borderWidth: tokens.borderSize.sm,\n borderRadius: tokens.radii.lg,\n padding: tokens.space.sm,\n gap: tokens.space.xs,\n stackLimit: 5,\n stackScaleStep: 0.04,\n contentGap: tokens.space.xxs,\n edgeOffset: tokens.space.sm,\n topOffset: tokens.space.xs,\n iconSize: 24,\n iconContainerSize: tokens.space.md,\n actionMinSize: tokens.space.md,\n titleColor: tokens.colors.text.primary,\n descriptionColor: tokens.colors.text.secondary,\n actionColor: tokens.colors.primary.value,\n disabledColor: tokens.colors.text.disabled,\n titleFontSize: tokens.fontSize.sm,\n titleLineHeight: tokens.lineHeight.sm,\n descriptionFontSize: tokens.fontSize.xsm,\n descriptionLineHeight: tokens.lineHeight.xsm,\n zIndexBase: 2000,\n tones: { ...tokens.colors.feedback },\n };\n}\n"],"mappings":"AAEO,SAAS,kBAAkB,QAA2C;AAC3E,SAAO;AAAA,IACL,iBAAiB,OAAO,OAAO,QAAQ,SAAS;AAAA,IAChD,aAAa,OAAO,OAAO,OAAO,OAAO;AAAA,IACzC,aAAa,OAAO,WAAW;AAAA,IAC/B,cAAc,OAAO,MAAM;AAAA,IAC3B,SAAS,OAAO,MAAM;AAAA,IACtB,KAAK,OAAO,MAAM;AAAA,IAClB,YAAY;AAAA,IACZ,gBAAgB;AAAA,IAChB,YAAY,OAAO,MAAM;AAAA,IACzB,YAAY,OAAO,MAAM;AAAA,IACzB,WAAW,OAAO,MAAM;AAAA,IACxB,UAAU;AAAA,IACV,mBAAmB,OAAO,MAAM;AAAA,IAChC,eAAe,OAAO,MAAM;AAAA,IAC5B,YAAY,OAAO,OAAO,KAAK;AAAA,IAC/B,kBAAkB,OAAO,OAAO,KAAK;AAAA,IACrC,aAAa,OAAO,OAAO,QAAQ;AAAA,IACnC,eAAe,OAAO,OAAO,KAAK;AAAA,IAClC,eAAe,OAAO,SAAS;AAAA,IAC/B,iBAAiB,OAAO,WAAW;AAAA,IACnC,qBAAqB,OAAO,SAAS;AAAA,IACrC,uBAAuB,OAAO,WAAW;AAAA,IACzC,YAAY;AAAA,IACZ,OAAO,EAAE,GAAG,OAAO,OAAO,SAAS;AAAA,EACrC;AACF;","names":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-xNjF46Bv.mjs';
|
|
2
2
|
import '../types/badge-tokens.types.mjs';
|
|
3
3
|
import '../types/components.types.mjs';
|
|
4
4
|
import '../types/carousel-tokens.types.mjs';
|
package/dist/theme/index.d.mts
CHANGED
|
@@ -6,7 +6,7 @@ export { createSliderTokens } from './create-slider-tokens.mjs';
|
|
|
6
6
|
export { createSegmentedControlTokens } from './create-segmented-control-tokens.mjs';
|
|
7
7
|
export { createCarouselTokens } from './create-carousel-tokens.mjs';
|
|
8
8
|
export { createToastTokens } from './create-toast-tokens.mjs';
|
|
9
|
-
import '../theme-provider.types-
|
|
9
|
+
import '../theme-provider.types-xNjF46Bv.mjs';
|
|
10
10
|
import '../types/badge-tokens.types.mjs';
|
|
11
11
|
import '../types/components.types.mjs';
|
|
12
12
|
import '../types/carousel-tokens.types.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-xNjF46Bv.mjs';
|
|
2
2
|
import '../types/badge-tokens.types.mjs';
|
|
3
3
|
import '../types/components.types.mjs';
|
|
4
4
|
import '../types/carousel-tokens.types.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChartColorPalette } from '../types/chart.types.mjs';
|
|
2
2
|
import { BorderSize, FontFamily, FontWeightValue, FontWeightItalic, FontWeightNormal, FontSize, FontWeight, LetterSpacings, LineHeight, NeutralColor, Radii, Space } from '../types/tokens.types.mjs';
|
|
3
|
-
import { T as ThemeColors, P as PrimitiveThemeTokens, c as ComponentsTokens } from '../theme-provider.types-
|
|
3
|
+
import { T as ThemeColors, P as PrimitiveThemeTokens, c as ComponentsTokens } from '../theme-provider.types-xNjF46Bv.mjs';
|
|
4
4
|
import '../types/badge-tokens.types.mjs';
|
|
5
5
|
import '../types/components.types.mjs';
|
|
6
6
|
import '../types/carousel-tokens.types.mjs';
|
package/dist/types/index.d.mts
CHANGED
|
@@ -7,7 +7,7 @@ export { FlexProps } from './flex.types.mjs';
|
|
|
7
7
|
export { ShadowIntensity, ShadowLevel, ShadowPosition, ShadowProps } from './shadow.types.mjs';
|
|
8
8
|
export { SpacingProps } from './spacing.types.mjs';
|
|
9
9
|
export { StylePropKey, StyleProps } from './style.types.mjs';
|
|
10
|
-
export { A as AppTheme, C as ColorPair, a as ColorScheme, b as ComponentsThemes, c as ComponentsTokens, E as ExtendedThemeColors, P as PrimitiveThemeTokens, T as ThemeColors, d as ThemeContextData, e as ToastTokens, f as ToastTone } from '../theme-provider.types-
|
|
10
|
+
export { A as AppTheme, C as ColorPair, a as ColorScheme, b as ComponentsThemes, c as ComponentsTokens, E as ExtendedThemeColors, P as PrimitiveThemeTokens, T as ThemeColors, d as ThemeContextData, e as ToastTokens, f as ToastTone } from '../theme-provider.types-xNjF46Bv.mjs';
|
|
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 { ActionAppearanceTokens, ButtonSizeTokens, ButtonTokens, ButtonVariantTokens, IconButtonSizeTokens, IconButtonTokens, IconButtonVariantTokens } from './buttons-tokens.types.mjs';
|
|
@@ -3,7 +3,7 @@ import './carousel-tokens.types.mjs';
|
|
|
3
3
|
import './checkbox-tokens.types.mjs';
|
|
4
4
|
import './list-tokens.types.mjs';
|
|
5
5
|
import './radio-tokens.types.mjs';
|
|
6
|
-
export { A as AppTheme, C as ColorPair, a as ColorScheme, b as ComponentsThemes, c as ComponentsTokens, E as ExtendedThemeColors, P as PrimitiveThemeTokens, T as ThemeColors, d as ThemeContextData } from '../theme-provider.types-
|
|
6
|
+
export { A as AppTheme, C as ColorPair, a as ColorScheme, b as ComponentsThemes, c as ComponentsTokens, E as ExtendedThemeColors, P as PrimitiveThemeTokens, T as ThemeColors, d as ThemeContextData } from '../theme-provider.types-xNjF46Bv.mjs';
|
|
7
7
|
import './accordion-tokens.types.mjs';
|
|
8
8
|
import './avatar-tokens.types.mjs';
|
|
9
9
|
import './buttons-tokens.types.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { e as ToastTokens, f as ToastTone } from '../theme-provider.types-
|
|
1
|
+
export { e as ToastTokens, f as ToastTone } from '../theme-provider.types-xNjF46Bv.mjs';
|
|
2
2
|
import './badge-tokens.types.mjs';
|
|
3
3
|
import './components.types.mjs';
|
|
4
4
|
import './carousel-tokens.types.mjs';
|
package/dist/utils/index.d.mts
CHANGED
|
@@ -28,7 +28,7 @@ import '../types/flex.types.mjs';
|
|
|
28
28
|
import '../types/spacing.types.mjs';
|
|
29
29
|
import '../types/typography.types.mjs';
|
|
30
30
|
import '../types/tokens.types.mjs';
|
|
31
|
-
import '../theme-provider.types-
|
|
31
|
+
import '../theme-provider.types-xNjF46Bv.mjs';
|
|
32
32
|
import '../types/badge-tokens.types.mjs';
|
|
33
33
|
import '../types/carousel-tokens.types.mjs';
|
|
34
34
|
import '../types/checkbox-tokens.types.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ViewStyle } from 'react-native';
|
|
2
2
|
import { ShadowLevel, ShadowPosition } from '../types/shadow.types.mjs';
|
|
3
3
|
import { StyleProps } from '../types/style.types.mjs';
|
|
4
|
-
import { T as ThemeColors } from '../theme-provider.types-
|
|
4
|
+
import { T as ThemeColors } from '../theme-provider.types-xNjF46Bv.mjs';
|
|
5
5
|
import '../types/border.types.mjs';
|
|
6
6
|
import '../types/color.types.mjs';
|
|
7
7
|
import '../types/dimension.types.mjs';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@impulse-ui-native/theme",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.1.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": "6.
|
|
31
|
+
"@impulse-ui-native/core": "6.1.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/react": "~19.2.14",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"react-native": "0.86.2",
|
|
39
39
|
"typescript": "~6.0.3",
|
|
40
40
|
"@impulse-ui-native/prettier-config": "1.0.0",
|
|
41
|
-
"@impulse-ui-native/
|
|
42
|
-
"@impulse-ui-native/
|
|
41
|
+
"@impulse-ui-native/tsconfig": "1.0.0",
|
|
42
|
+
"@impulse-ui-native/eslint-config": "1.0.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": ">=18",
|