@impulse-ui-native/theme 8.0.0 → 8.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 +2 -1
- package/dist/hooks/use-colors.hook.d.mts +2 -1
- package/dist/hooks/use-components-tokens.hook.d.mts +2 -1
- package/dist/hooks/use-theme.hook.d.mts +2 -1
- package/dist/hooks/use-themed-styles.d.mts +2 -1
- package/dist/index.d.mts +4 -1
- package/dist/providers/index.d.mts +2 -1
- package/dist/providers/theme.provider.d.mts +2 -1
- package/dist/theme/create-accordion-tokens.d.mts +2 -1
- package/dist/theme/create-avatar-tokens.d.mts +2 -1
- package/dist/theme/create-badge-tokens.d.mts +2 -1
- package/dist/theme/create-button-tokens.d.mts +2 -1
- package/dist/theme/create-card-tokens.d.mts +2 -1
- package/dist/theme/create-carousel-tokens.d.mts +2 -1
- package/dist/theme/create-checkbox-tokens.d.mts +2 -1
- package/dist/theme/create-control-tokens.d.mts +2 -1
- package/dist/theme/create-data-state-tokens.d.mts +2 -1
- package/dist/theme/create-datetime-picker.d.mts +2 -1
- package/dist/theme/create-divider-tokens.d.mts +2 -1
- package/dist/theme/create-flyout-tokens.d.mts +2 -1
- package/dist/theme/create-icon-button-tokens.d.mts +2 -1
- package/dist/theme/create-list-tokens.d.mts +2 -1
- package/dist/theme/create-modal-tokens.d.mts +2 -1
- package/dist/theme/create-pagination-tokens.d.mts +2 -1
- package/dist/theme/create-popover-tokens.d.mts +2 -1
- package/dist/theme/create-progress-tokens.d.mts +2 -1
- package/dist/theme/create-radio-tokens.d.mts +2 -1
- package/dist/theme/create-segmented-control-tokens.d.mts +2 -1
- package/dist/theme/create-select-tokens.d.mts +2 -1
- package/dist/theme/create-skeleton-tokens.d.mts +2 -1
- package/dist/theme/create-slider-tokens.d.mts +2 -1
- package/dist/theme/create-spinner-tokens.d.mts +2 -1
- package/dist/theme/create-stepper-tokens.d.mts +2 -1
- package/dist/theme/create-switch-tokens.d.mts +2 -1
- package/dist/theme/create-tabs-tokens.d.mts +38 -0
- package/dist/theme/create-tabs-tokens.js +57 -0
- package/dist/theme/create-tabs-tokens.js.map +1 -0
- package/dist/theme/create-tag-tokens.d.mts +2 -1
- package/dist/theme/create-textarea-tokens.d.mts +2 -1
- package/dist/theme/create-time-picker-tokens.d.mts +2 -1
- package/dist/theme/create-toast-tokens.d.mts +2 -1
- package/dist/theme/dark.theme.d.mts +2 -1
- package/dist/theme/index.d.mts +3 -1
- package/dist/theme/index.js +1 -0
- package/dist/theme/index.js.map +1 -1
- package/dist/theme/light.theme.d.mts +2 -1
- package/dist/theme/tokens.theme.d.mts +2 -1
- package/dist/theme/tokens.theme.js +2 -0
- package/dist/theme/tokens.theme.js.map +1 -1
- package/dist/{theme-provider.types-CPFMVXUS.d.mts → theme-provider.types-B4jCf93c.d.mts} +2 -0
- package/dist/types/index.d.mts +2 -1
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/tabs-tokens.types.d.mts +30 -0
- package/dist/types/tabs-tokens.types.js +1 -0
- package/dist/types/tabs-tokens.types.js.map +1 -0
- package/dist/types/theme-provider.types.d.mts +2 -1
- package/dist/types/toast-tokens.types.d.mts +2 -1
- package/dist/utils/index.d.mts +3 -1
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/style.utils.d.mts +2 -1
- package/dist/utils/tabs-state.utils.d.mts +6 -0
- package/dist/utils/tabs-state.utils.js +12 -0
- package/dist/utils/tabs-state.utils.js.map +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
function createTabsTokens(tokens) {
|
|
2
|
+
return {
|
|
3
|
+
borderColor: tokens.colors.border.subtle.value,
|
|
4
|
+
borderWidth: tokens.borderSize.sm,
|
|
5
|
+
indicatorHeight: tokens.borderSize.md,
|
|
6
|
+
panelGap: tokens.space.msm,
|
|
7
|
+
states: {
|
|
8
|
+
unselected: {
|
|
9
|
+
color: tokens.colors.text.secondary,
|
|
10
|
+
indicatorColor: tokens.colors.primary.value,
|
|
11
|
+
indicatorOpacity: 0
|
|
12
|
+
},
|
|
13
|
+
selected: {
|
|
14
|
+
color: tokens.colors.primary.value,
|
|
15
|
+
indicatorColor: tokens.colors.primary.value,
|
|
16
|
+
indicatorOpacity: 1
|
|
17
|
+
},
|
|
18
|
+
disabledUnselected: {
|
|
19
|
+
color: tokens.colors.text.disabled,
|
|
20
|
+
indicatorColor: tokens.colors.text.disabled,
|
|
21
|
+
indicatorOpacity: 0
|
|
22
|
+
},
|
|
23
|
+
disabledSelected: {
|
|
24
|
+
color: tokens.colors.text.disabled,
|
|
25
|
+
indicatorColor: tokens.colors.text.disabled,
|
|
26
|
+
indicatorOpacity: 1
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
sizes: {
|
|
30
|
+
small: {
|
|
31
|
+
fontSize: tokens.fontSize.xsm,
|
|
32
|
+
minHeight: 32,
|
|
33
|
+
hitSlop: 6,
|
|
34
|
+
paddingHorizontal: tokens.space.xs,
|
|
35
|
+
paddingVertical: tokens.space.xxs
|
|
36
|
+
},
|
|
37
|
+
medium: {
|
|
38
|
+
fontSize: tokens.fontSize.sm,
|
|
39
|
+
minHeight: 40,
|
|
40
|
+
hitSlop: 2,
|
|
41
|
+
paddingHorizontal: tokens.space.mxs,
|
|
42
|
+
paddingVertical: tokens.space.xs
|
|
43
|
+
},
|
|
44
|
+
large: {
|
|
45
|
+
fontSize: tokens.fontSize.sm,
|
|
46
|
+
minHeight: 48,
|
|
47
|
+
hitSlop: 0,
|
|
48
|
+
paddingHorizontal: tokens.space.sm,
|
|
49
|
+
paddingVertical: tokens.space.mxs
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export {
|
|
55
|
+
createTabsTokens
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=create-tabs-tokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/theme/create-tabs-tokens.ts"],"sourcesContent":["import type { PrimitiveThemeTokens, TabsTokens } from \"../types\";\n\nexport function createTabsTokens(tokens: PrimitiveThemeTokens): TabsTokens {\n return {\n borderColor: tokens.colors.border.subtle.value,\n borderWidth: tokens.borderSize.sm,\n indicatorHeight: tokens.borderSize.md,\n panelGap: tokens.space.msm,\n states: {\n unselected: {\n color: tokens.colors.text.secondary,\n indicatorColor: tokens.colors.primary.value,\n indicatorOpacity: 0,\n },\n selected: {\n color: tokens.colors.primary.value,\n indicatorColor: tokens.colors.primary.value,\n indicatorOpacity: 1,\n },\n disabledUnselected: {\n color: tokens.colors.text.disabled,\n indicatorColor: tokens.colors.text.disabled,\n indicatorOpacity: 0,\n },\n disabledSelected: {\n color: tokens.colors.text.disabled,\n indicatorColor: tokens.colors.text.disabled,\n indicatorOpacity: 1,\n },\n },\n sizes: {\n small: {\n fontSize: tokens.fontSize.xsm,\n minHeight: 32,\n hitSlop: 6,\n paddingHorizontal: tokens.space.xs,\n paddingVertical: tokens.space.xxs,\n },\n medium: {\n fontSize: tokens.fontSize.sm,\n minHeight: 40,\n hitSlop: 2,\n paddingHorizontal: tokens.space.mxs,\n paddingVertical: tokens.space.xs,\n },\n large: {\n fontSize: tokens.fontSize.sm,\n minHeight: 48,\n hitSlop: 0,\n paddingHorizontal: tokens.space.sm,\n paddingVertical: tokens.space.mxs,\n },\n },\n };\n}\n"],"mappings":"AAEO,SAAS,iBAAiB,QAA0C;AACzE,SAAO;AAAA,IACL,aAAa,OAAO,OAAO,OAAO,OAAO;AAAA,IACzC,aAAa,OAAO,WAAW;AAAA,IAC/B,iBAAiB,OAAO,WAAW;AAAA,IACnC,UAAU,OAAO,MAAM;AAAA,IACvB,QAAQ;AAAA,MACN,YAAY;AAAA,QACV,OAAO,OAAO,OAAO,KAAK;AAAA,QAC1B,gBAAgB,OAAO,OAAO,QAAQ;AAAA,QACtC,kBAAkB;AAAA,MACpB;AAAA,MACA,UAAU;AAAA,QACR,OAAO,OAAO,OAAO,QAAQ;AAAA,QAC7B,gBAAgB,OAAO,OAAO,QAAQ;AAAA,QACtC,kBAAkB;AAAA,MACpB;AAAA,MACA,oBAAoB;AAAA,QAClB,OAAO,OAAO,OAAO,KAAK;AAAA,QAC1B,gBAAgB,OAAO,OAAO,KAAK;AAAA,QACnC,kBAAkB;AAAA,MACpB;AAAA,MACA,kBAAkB;AAAA,QAChB,OAAO,OAAO,OAAO,KAAK;AAAA,QAC1B,gBAAgB,OAAO,OAAO,KAAK;AAAA,QACnC,kBAAkB;AAAA,MACpB;AAAA,IACF;AAAA,IACA,OAAO;AAAA,MACL,OAAO;AAAA,QACL,UAAU,OAAO,SAAS;AAAA,QAC1B,WAAW;AAAA,QACX,SAAS;AAAA,QACT,mBAAmB,OAAO,MAAM;AAAA,QAChC,iBAAiB,OAAO,MAAM;AAAA,MAChC;AAAA,MACA,QAAQ;AAAA,QACN,UAAU,OAAO,SAAS;AAAA,QAC1B,WAAW;AAAA,QACX,SAAS;AAAA,QACT,mBAAmB,OAAO,MAAM;AAAA,QAChC,iBAAiB,OAAO,MAAM;AAAA,MAChC;AAAA,MACA,OAAO;AAAA,QACL,UAAU,OAAO,SAAS;AAAA,QAC1B,WAAW;AAAA,QACX,SAAS;AAAA,QACT,mBAAmB,OAAO,MAAM;AAAA,QAChC,iBAAiB,OAAO,MAAM;AAAA,MAChC;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-B4jCf93c.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';
|
|
@@ -8,6 +8,7 @@ import '../types/list-tokens.types.mjs';
|
|
|
8
8
|
import '../types/modal-tokens.types.mjs';
|
|
9
9
|
import '../types/popover-tokens.types.mjs';
|
|
10
10
|
import '../types/radio-tokens.types.mjs';
|
|
11
|
+
import '../types/tabs-tokens.types.mjs';
|
|
11
12
|
import '../types/accordion-tokens.types.mjs';
|
|
12
13
|
import '../types/avatar-tokens.types.mjs';
|
|
13
14
|
import '../types/buttons-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-B4jCf93c.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';
|
|
@@ -8,6 +8,7 @@ import '../types/list-tokens.types.mjs';
|
|
|
8
8
|
import '../types/modal-tokens.types.mjs';
|
|
9
9
|
import '../types/popover-tokens.types.mjs';
|
|
10
10
|
import '../types/radio-tokens.types.mjs';
|
|
11
|
+
import '../types/tabs-tokens.types.mjs';
|
|
11
12
|
import '../types/accordion-tokens.types.mjs';
|
|
12
13
|
import '../types/avatar-tokens.types.mjs';
|
|
13
14
|
import '../types/buttons-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-B4jCf93c.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';
|
|
@@ -8,6 +8,7 @@ import '../types/list-tokens.types.mjs';
|
|
|
8
8
|
import '../types/modal-tokens.types.mjs';
|
|
9
9
|
import '../types/popover-tokens.types.mjs';
|
|
10
10
|
import '../types/radio-tokens.types.mjs';
|
|
11
|
+
import '../types/tabs-tokens.types.mjs';
|
|
11
12
|
import '../types/accordion-tokens.types.mjs';
|
|
12
13
|
import '../types/avatar-tokens.types.mjs';
|
|
13
14
|
import '../types/buttons-tokens.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-B4jCf93c.mjs';
|
|
2
2
|
import '../types/badge-tokens.types.mjs';
|
|
3
3
|
import '../types/components.types.mjs';
|
|
4
4
|
import '../types/carousel-tokens.types.mjs';
|
|
@@ -7,6 +7,7 @@ import '../types/list-tokens.types.mjs';
|
|
|
7
7
|
import '../types/modal-tokens.types.mjs';
|
|
8
8
|
import '../types/popover-tokens.types.mjs';
|
|
9
9
|
import '../types/radio-tokens.types.mjs';
|
|
10
|
+
import '../types/tabs-tokens.types.mjs';
|
|
10
11
|
import '../types/accordion-tokens.types.mjs';
|
|
11
12
|
import '../types/avatar-tokens.types.mjs';
|
|
12
13
|
import '../types/buttons-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-B4jCf93c.mjs';
|
|
2
2
|
import '../types/badge-tokens.types.mjs';
|
|
3
3
|
import '../types/components.types.mjs';
|
|
4
4
|
import '../types/carousel-tokens.types.mjs';
|
|
@@ -7,6 +7,7 @@ import '../types/list-tokens.types.mjs';
|
|
|
7
7
|
import '../types/modal-tokens.types.mjs';
|
|
8
8
|
import '../types/popover-tokens.types.mjs';
|
|
9
9
|
import '../types/radio-tokens.types.mjs';
|
|
10
|
+
import '../types/tabs-tokens.types.mjs';
|
|
10
11
|
import '../types/accordion-tokens.types.mjs';
|
|
11
12
|
import '../types/avatar-tokens.types.mjs';
|
|
12
13
|
import '../types/buttons-tokens.types.mjs';
|
package/dist/theme/index.d.mts
CHANGED
|
@@ -4,11 +4,12 @@ export { BorderSizeTokens, ChartColorTokens, DarkColors, FontFamilyTokens, FontF
|
|
|
4
4
|
export { createPaginationTokens } from './create-pagination-tokens.mjs';
|
|
5
5
|
export { createSliderTokens } from './create-slider-tokens.mjs';
|
|
6
6
|
export { createSegmentedControlTokens } from './create-segmented-control-tokens.mjs';
|
|
7
|
+
export { createTabsTokens } from './create-tabs-tokens.mjs';
|
|
7
8
|
export { createCarouselTokens } from './create-carousel-tokens.mjs';
|
|
8
9
|
export { createToastTokens } from './create-toast-tokens.mjs';
|
|
9
10
|
export { createPopoverTokens } from './create-popover-tokens.mjs';
|
|
10
11
|
export { createModalTokens } from './create-modal-tokens.mjs';
|
|
11
|
-
import '../theme-provider.types-
|
|
12
|
+
import '../theme-provider.types-B4jCf93c.mjs';
|
|
12
13
|
import '../types/badge-tokens.types.mjs';
|
|
13
14
|
import '../types/components.types.mjs';
|
|
14
15
|
import '../types/carousel-tokens.types.mjs';
|
|
@@ -17,6 +18,7 @@ import '../types/list-tokens.types.mjs';
|
|
|
17
18
|
import '../types/modal-tokens.types.mjs';
|
|
18
19
|
import '../types/popover-tokens.types.mjs';
|
|
19
20
|
import '../types/radio-tokens.types.mjs';
|
|
21
|
+
import '../types/tabs-tokens.types.mjs';
|
|
20
22
|
import '../types/accordion-tokens.types.mjs';
|
|
21
23
|
import '../types/avatar-tokens.types.mjs';
|
|
22
24
|
import '../types/buttons-tokens.types.mjs';
|
package/dist/theme/index.js
CHANGED
|
@@ -4,6 +4,7 @@ export * from "./tokens.theme";
|
|
|
4
4
|
export * from "./create-pagination-tokens";
|
|
5
5
|
export * from "./create-slider-tokens";
|
|
6
6
|
export * from "./create-segmented-control-tokens";
|
|
7
|
+
export * from "./create-tabs-tokens";
|
|
7
8
|
export * from "./create-carousel-tokens";
|
|
8
9
|
export * from "./create-toast-tokens";
|
|
9
10
|
export * from "./create-popover-tokens";
|
package/dist/theme/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/theme/index.ts"],"sourcesContent":["export { DarkTheme } from \"./dark.theme\";\nexport { LightTheme } from \"./light.theme\";\nexport * from \"./tokens.theme\";\nexport * from \"./create-pagination-tokens\";\nexport * from \"./create-slider-tokens\";\nexport * from \"./create-segmented-control-tokens\";\nexport * from \"./create-carousel-tokens\";\n\nexport * from \"./create-toast-tokens\";\nexport * from \"./create-popover-tokens\";\nexport * from \"./create-modal-tokens\";\n"],"mappings":"AAAA,SAAS,iBAAiB;AAC1B,SAAS,kBAAkB;AAC3B,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/theme/index.ts"],"sourcesContent":["export { DarkTheme } from \"./dark.theme\";\nexport { LightTheme } from \"./light.theme\";\nexport * from \"./tokens.theme\";\nexport * from \"./create-pagination-tokens\";\nexport * from \"./create-slider-tokens\";\nexport * from \"./create-segmented-control-tokens\";\nexport * from \"./create-tabs-tokens\";\nexport * from \"./create-carousel-tokens\";\n\nexport * from \"./create-toast-tokens\";\nexport * from \"./create-popover-tokens\";\nexport * from \"./create-modal-tokens\";\n"],"mappings":"AAAA,SAAS,iBAAiB;AAC1B,SAAS,kBAAkB;AAC3B,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PrimitiveThemeTokens } from '../theme-provider.types-
|
|
1
|
+
import { P as PrimitiveThemeTokens } from '../theme-provider.types-B4jCf93c.mjs';
|
|
2
2
|
import '../types/badge-tokens.types.mjs';
|
|
3
3
|
import '../types/components.types.mjs';
|
|
4
4
|
import '../types/carousel-tokens.types.mjs';
|
|
@@ -7,6 +7,7 @@ import '../types/list-tokens.types.mjs';
|
|
|
7
7
|
import '../types/modal-tokens.types.mjs';
|
|
8
8
|
import '../types/popover-tokens.types.mjs';
|
|
9
9
|
import '../types/radio-tokens.types.mjs';
|
|
10
|
+
import '../types/tabs-tokens.types.mjs';
|
|
10
11
|
import '../types/accordion-tokens.types.mjs';
|
|
11
12
|
import '../types/avatar-tokens.types.mjs';
|
|
12
13
|
import '../types/buttons-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-B4jCf93c.mjs';
|
|
4
4
|
import '../types/badge-tokens.types.mjs';
|
|
5
5
|
import '../types/components.types.mjs';
|
|
6
6
|
import '../types/carousel-tokens.types.mjs';
|
|
@@ -9,6 +9,7 @@ import '../types/list-tokens.types.mjs';
|
|
|
9
9
|
import '../types/modal-tokens.types.mjs';
|
|
10
10
|
import '../types/popover-tokens.types.mjs';
|
|
11
11
|
import '../types/radio-tokens.types.mjs';
|
|
12
|
+
import '../types/tabs-tokens.types.mjs';
|
|
12
13
|
import '../types/accordion-tokens.types.mjs';
|
|
13
14
|
import '../types/avatar-tokens.types.mjs';
|
|
14
15
|
import '../types/buttons-tokens.types.mjs';
|
|
@@ -32,6 +32,7 @@ import { createSliderTokens } from "./create-slider-tokens";
|
|
|
32
32
|
import { createSpinnerTokens } from "./create-spinner-tokens";
|
|
33
33
|
import { createStepperTokens } from "./create-stepper-tokens";
|
|
34
34
|
import { createSwitchTokens } from "./create-switch-tokens";
|
|
35
|
+
import { createTabsTokens } from "./create-tabs-tokens";
|
|
35
36
|
import { createTagTokens } from "./create-tag-tokens";
|
|
36
37
|
import { createTextareaTokens } from "./create-textarea-tokens";
|
|
37
38
|
import { createTimePickerTokens } from "./create-time-picker-tokens";
|
|
@@ -359,6 +360,7 @@ function createComponentsTokens(tokens) {
|
|
|
359
360
|
controlLabel: createControlLabelTokens(tokens),
|
|
360
361
|
select: createSelectTokens(tokens),
|
|
361
362
|
segmentedControl: createSegmentedControlTokens(tokens),
|
|
363
|
+
tabs: createTabsTokens(tokens),
|
|
362
364
|
datetimePicker: createDatetimePickerTokens(tokens),
|
|
363
365
|
divider: createDividerTokens(tokens),
|
|
364
366
|
timePicker: createTimePickerTokens(tokens),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/theme/tokens.theme.ts"],"sourcesContent":["import type {\n BorderSize,\n ChartColorPalette,\n ComponentsTokens,\n FontFamily,\n FontSize,\n FontWeight,\n FontWeightItalic,\n FontWeightNormal,\n FontWeightValue,\n LetterSpacings,\n LineHeight,\n NeutralColor,\n PrimitiveThemeTokens,\n Radii,\n Space,\n ThemeColors,\n} from \"../types\";\nimport { createAccordionTokens } from \"./create-accordion-tokens\";\nimport { createAvatarTokens } from \"./create-avatar-tokens\";\nimport { createBadgeTokens } from \"./create-badge-tokens\";\nimport { createButtonTokens } from \"./create-button-tokens\";\nimport { createCardTokens } from \"./create-card-tokens\";\nimport { createCarouselTokens } from \"./create-carousel-tokens\";\nimport { createCheckboxTokens } from \"./create-checkbox-tokens\";\nimport {\n createControlAddonTokens,\n createControlContainerTokens,\n createControlErrorTokens,\n createControlInputTokens,\n createControlLabelTokens,\n} from \"./create-control-tokens\";\nimport { createDataStateTokens } from \"./create-data-state-tokens\";\nimport { createDatetimePickerTokens } from \"./create-datetime-picker\";\nimport { createDividerTokens } from \"./create-divider-tokens\";\nimport { createFlyoutTokens } from \"./create-flyout-tokens\";\nimport { createIconButtonTokens } from \"./create-icon-button-tokens\";\nimport { createIconTokens } from \"./create-icon-tokens\";\nimport { createListTokens } from \"./create-list-tokens\";\nimport { createModalTokens } from \"./create-modal-tokens\";\nimport { createPaginationTokens } from \"./create-pagination-tokens\";\nimport { createPopoverTokens } from \"./create-popover-tokens\";\nimport { createPressableTokens } from \"./create-pressable-tokens\";\nimport { createProgressTokens } from \"./create-progress-tokens\";\nimport { createRadioTokens } from \"./create-radio-tokens\";\nimport { createSegmentedControlTokens } from \"./create-segmented-control-tokens\";\nimport { createSelectTokens } from \"./create-select-tokens\";\nimport { createSkeletonTokens } from \"./create-skeleton-tokens\";\nimport { createSliderTokens } from \"./create-slider-tokens\";\nimport { createSpinnerTokens } from \"./create-spinner-tokens\";\nimport { createStepperTokens } from \"./create-stepper-tokens\";\nimport { createSwitchTokens } from \"./create-switch-tokens\";\nimport { createTagTokens } from \"./create-tag-tokens\";\nimport { createTextareaTokens } from \"./create-textarea-tokens\";\nimport { createTimePickerTokens } from \"./create-time-picker-tokens\";\nimport { createToastTokens } from \"./create-toast-tokens\";\n\nexport const ChartColorTokens: ChartColorPalette = [\n \"#F55D6B\",\n \"#2563eb\",\n \"#16a34a\",\n \"#9333ea\",\n \"#ea580c\",\n \"#0891b2\",\n \"#db2777\",\n \"#65a30d\",\n \"#4f46e5\",\n \"#0d9488\",\n \"#ca8a04\",\n \"#c026d3\",\n \"#0284c7\",\n \"#7c3aed\",\n \"#9f5f3f\",\n];\n\nexport const SpaceTokens: Space = {\n none: 0,\n xxs: 4,\n xs: 8,\n mxs: 12,\n sm: 16,\n msm: 24,\n md: 32,\n lg: 48,\n xl: 64,\n xxl: 96,\n};\n\nexport const BorderSizeTokens: BorderSize = {\n sm: 1,\n md: 2,\n lg: 3,\n xl: 5,\n xxl: 10,\n};\n\nexport const RadiiTokens: Radii = {\n sm: 4,\n md: 8,\n lg: 16,\n xl: 32,\n xxl: 64,\n xxxl: 128,\n round: 100000,\n};\n\nexport const FontSizeTokens: FontSize = {\n xxs: 8,\n xs: 12,\n xsm: 14,\n sm: 16,\n md: 18,\n lg: 20,\n xl: 24,\n xxl: 28,\n xxxl: 32,\n huge: 36,\n massive: 40,\n giant: 48,\n colossal: 56,\n};\n\nexport const LineHeightTokens: LineHeight = {\n xxs: 12,\n xs: 16,\n xsm: 20,\n sm: 24,\n md: 26,\n lg: 28,\n xl: 32,\n xxl: 36,\n xxxl: 40,\n huge: 44,\n massive: 48,\n giant: 56,\n colossal: 64,\n};\n\nexport const LetterSpacingTokens: LetterSpacings = {\n tightest: -1,\n tighter: -0.5,\n tight: -0.25,\n normal: 0,\n wide: 0.25,\n wider: 0.5,\n widest: 0.75,\n ultraWide: 1,\n};\n\nexport const FontWeightTokens: FontWeight = {\n thin: 100,\n extraLight: 200,\n light: 300,\n regular: 400,\n medium: 500,\n semiBold: 600,\n bold: 700,\n extraBold: 800,\n black: 900,\n};\n\nexport const FontFamilyWeightsNormalTokens: Record<\n FontWeightValue,\n FontWeightNormal\n> = {\n 100: \"Montserrat_100Thin\",\n 200: \"Montserrat_200ExtraLight\",\n 300: \"Montserrat_300Light\",\n 400: \"Montserrat_400Regular\",\n 500: \"Montserrat_500Medium\",\n 600: \"Montserrat_600SemiBold\",\n 700: \"Montserrat_700Bold\",\n 800: \"Montserrat_800ExtraBold\",\n 900: \"Montserrat_900Black\",\n};\n\nexport const FontFamilyWeightsItalicTokens: Record<\n FontWeightValue,\n FontWeightItalic\n> = {\n 100: \"Montserrat_100Thin_Italic\",\n 200: \"Montserrat_200ExtraLight_Italic\",\n 300: \"Montserrat_300Light_Italic\",\n 400: \"Montserrat_400Regular_Italic\",\n 500: \"Montserrat_500Medium_Italic\",\n 600: \"Montserrat_600SemiBold_Italic\",\n 700: \"Montserrat_700Bold_Italic\",\n 800: \"Montserrat_800ExtraBold_Italic\",\n 900: \"Montserrat_900Black_Italic\",\n};\n\nexport const FontFamilyTokens: FontFamily = {\n normal: FontFamilyWeightsNormalTokens,\n italic: FontFamilyWeightsItalicTokens,\n};\n\nexport const NeutralColorTokens: NeutralColor = {\n \"0\": \"#ffffff\",\n \"1\": \"#f8f9fa\",\n \"2\": \"#f1f3f5\",\n \"3\": \"#e9ecef\",\n \"4\": \"#dee2e6\",\n \"5\": \"#ced4da\",\n \"6\": \"#adb5bd\",\n \"7\": \"#868e96\",\n \"8\": \"#495057\",\n \"9\": \"#343a40\",\n \"10\": \"#212529\",\n \"11\": \"#16191d\",\n \"12\": \"#0d0f12\",\n \"13\": \"#000000\",\n};\n\nexport const LightColors: ThemeColors = {\n primary: {\n value: \"#F55D6B\",\n contrast: NeutralColorTokens[\"0\"],\n },\n\n accent: {\n value: \"#FA9EA7\",\n contrast: NeutralColorTokens[\"11\"],\n },\n\n secondary: {\n value: \"#FEE7E9\",\n contrast: \"#c92a3b\",\n },\n\n neutral: NeutralColorTokens,\n\n surface: {\n primary: {\n value: NeutralColorTokens[\"2\"],\n contrast: NeutralColorTokens[\"11\"],\n },\n secondary: {\n value: NeutralColorTokens[\"0\"],\n contrast: NeutralColorTokens[\"11\"],\n },\n elevated: {\n value: NeutralColorTokens[\"0\"],\n contrast: NeutralColorTokens[\"11\"],\n },\n inverse: {\n value: NeutralColorTokens[\"13\"],\n contrast: NeutralColorTokens[\"0\"],\n },\n },\n\n text: {\n primary: NeutralColorTokens[\"11\"],\n secondary: NeutralColorTokens[\"10\"],\n tertiary: NeutralColorTokens[\"9\"],\n inverse: NeutralColorTokens[\"0\"],\n disabled: NeutralColorTokens[\"7\"],\n },\n\n border: {\n subtle: {\n value: NeutralColorTokens[\"3\"],\n contrast: NeutralColorTokens[\"9\"],\n },\n default: {\n value: NeutralColorTokens[\"4\"],\n contrast: NeutralColorTokens[\"10\"],\n },\n strong: {\n value: NeutralColorTokens[\"6\"],\n contrast: NeutralColorTokens[\"11\"],\n },\n focus: {\n value: \"#c92a3b\",\n contrast: NeutralColorTokens[\"0\"],\n },\n },\n\n feedback: {\n error: {\n value: \"#c92a2a\",\n contrast: \"#fff5f5\",\n },\n warning: {\n value: \"#a65300\",\n contrast: \"#fff4e6\",\n },\n success: {\n value: \"#526b00\",\n contrast: \"#f4fce3\",\n },\n info: {\n value: \"#1864ab\",\n contrast: \"#e7f5ff\",\n },\n },\n\n overlay: \"rgba(0, 0, 0, 0.45)\",\n\n white: NeutralColorTokens[\"0\"],\n black: NeutralColorTokens[\"13\"],\n};\n\nexport const DarkColors: ThemeColors = {\n primary: {\n value: \"#FA9EA7\",\n contrast: NeutralColorTokens[\"11\"],\n },\n\n accent: {\n value: \"#f55d6b\",\n contrast: NeutralColorTokens[\"11\"],\n },\n\n secondary: {\n value: \"#3b2027\",\n contrast: \"#FA9EA7\",\n },\n\n neutral: NeutralColorTokens,\n\n surface: {\n primary: {\n value: NeutralColorTokens[\"11\"],\n contrast: NeutralColorTokens[\"0\"],\n },\n secondary: {\n value: NeutralColorTokens[\"10\"],\n contrast: NeutralColorTokens[\"0\"],\n },\n elevated: {\n value: NeutralColorTokens[\"9\"],\n contrast: NeutralColorTokens[\"0\"],\n },\n inverse: {\n value: NeutralColorTokens[\"0\"],\n contrast: NeutralColorTokens[\"11\"],\n },\n },\n\n text: {\n primary: NeutralColorTokens[\"0\"],\n secondary: NeutralColorTokens[\"2\"],\n tertiary: NeutralColorTokens[\"6\"],\n inverse: NeutralColorTokens[\"11\"],\n disabled: NeutralColorTokens[\"7\"],\n },\n\n border: {\n subtle: {\n value: NeutralColorTokens[\"7\"],\n contrast: NeutralColorTokens[\"6\"],\n },\n default: {\n value: NeutralColorTokens[\"6\"],\n contrast: NeutralColorTokens[\"2\"],\n },\n strong: {\n value: NeutralColorTokens[\"5\"],\n contrast: NeutralColorTokens[\"0\"],\n },\n focus: {\n value: \"#FA9EA7\",\n contrast: NeutralColorTokens[\"11\"],\n },\n },\n\n feedback: {\n error: {\n value: \"#ff8787\",\n contrast: \"#3b1515\",\n },\n warning: {\n value: \"#ffc078\",\n contrast: \"#3b250f\",\n },\n success: {\n value: \"#c0eb75\",\n contrast: \"#26320f\",\n },\n info: {\n value: \"#74c0fc\",\n contrast: \"#102a43\",\n },\n },\n\n overlay: \"rgba(0, 0, 0, 0.65)\",\n\n white: NeutralColorTokens[\"0\"],\n black: NeutralColorTokens[\"13\"],\n};\n\nexport function createComponentsTokens(\n tokens: PrimitiveThemeTokens,\n): ComponentsTokens {\n return {\n modal: createModalTokens(tokens),\n toast: createToastTokens(tokens),\n popover: createPopoverTokens(tokens),\n carousel: createCarouselTokens(tokens),\n accordion: createAccordionTokens(tokens),\n avatar: createAvatarTokens(tokens),\n badge: createBadgeTokens(tokens),\n button: createButtonTokens(tokens),\n card: createCardTokens(tokens),\n list: createListTokens(tokens),\n checkbox: createCheckboxTokens(tokens),\n iconButton: createIconButtonTokens(tokens),\n icon: createIconTokens(),\n pagination: createPaginationTokens(tokens),\n pressable: createPressableTokens(),\n progress: createProgressTokens(tokens),\n radio: createRadioTokens(tokens),\n tag: createTagTokens(tokens),\n controlAddon: createControlAddonTokens(tokens),\n controlContainer: createControlContainerTokens(tokens),\n controlError: createControlErrorTokens(tokens),\n controlInput: createControlInputTokens(tokens),\n controlLabel: createControlLabelTokens(tokens),\n select: createSelectTokens(tokens),\n segmentedControl: createSegmentedControlTokens(tokens),\n datetimePicker: createDatetimePickerTokens(tokens),\n divider: createDividerTokens(tokens),\n timePicker: createTimePickerTokens(tokens),\n flyout: createFlyoutTokens(tokens),\n skeleton: createSkeletonTokens(tokens),\n slider: createSliderTokens(tokens),\n spinner: createSpinnerTokens(tokens),\n stepper: createStepperTokens(tokens),\n switch: createSwitchTokens(tokens),\n textarea: createTextareaTokens(tokens),\n dataState: createDataStateTokens(tokens),\n };\n}\n"],"mappings":"AAkBA,SAAS,6BAA6B;AACtC,SAAS,0BAA0B;AACnC,SAAS,yBAAyB;AAClC,SAAS,0BAA0B;AACnC,SAAS,wBAAwB;AACjC,SAAS,4BAA4B;AACrC,SAAS,4BAA4B;AACrC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,6BAA6B;AACtC,SAAS,kCAAkC;AAC3C,SAAS,2BAA2B;AACpC,SAAS,0BAA0B;AACnC,SAAS,8BAA8B;AACvC,SAAS,wBAAwB;AACjC,SAAS,wBAAwB;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MAAM;AAAA,IACrC,YAAY,uBAAuB,MAAM;AAAA,IACzC,MAAM,iBAAiB;AAAA,IACvB,YAAY,uBAAuB,MAAM;AAAA,IACzC,WAAW,sBAAsB;AAAA,IACjC,UAAU,qBAAqB,MAAM;AAAA,IACrC,OAAO,kBAAkB,MAAM;AAAA,IAC/B,KAAK,gBAAgB,MAAM;AAAA,IAC3B,cAAc,yBAAyB,MAAM;AAAA,IAC7C,kBAAkB,6BAA6B,MAAM;AAAA,IACrD,cAAc,yBAAyB,MAAM;AAAA,IAC7C,cAAc,yBAAyB,MAAM;AAAA,IAC7C,cAAc,yBAAyB,MAAM;AAAA,IAC7C,QAAQ,mBAAmB,MAAM;AAAA,IACjC,kBAAkB,6BAA6B,MAAM;AAAA,IACrD,gBAAgB,2BAA2B,MAAM;AAAA,IACjD,SAAS,oBAAoB,MAAM;AAAA,IACnC,YAAY,uBAAuB,MAAM;AAAA,IACzC,QAAQ,mBAAmB,MAAM;AAAA,IACjC,UAAU,qBAAqB,MAAM;AAAA,IACrC,QAAQ,mBAAmB,MAAM;AAAA,IACjC,SAAS,oBAAoB,MAAM;AAAA,IACnC,SAAS,oBAAoB,MAAM;AAAA,IACnC,QAAQ,mBAAmB,MAAM;AAAA,IACjC,UAAU,qBAAqB,MAAM;AAAA,IACrC,WAAW,sBAAsB,MAAM;AAAA,EACzC;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/theme/tokens.theme.ts"],"sourcesContent":["import type {\n BorderSize,\n ChartColorPalette,\n ComponentsTokens,\n FontFamily,\n FontSize,\n FontWeight,\n FontWeightItalic,\n FontWeightNormal,\n FontWeightValue,\n LetterSpacings,\n LineHeight,\n NeutralColor,\n PrimitiveThemeTokens,\n Radii,\n Space,\n ThemeColors,\n} from \"../types\";\nimport { createAccordionTokens } from \"./create-accordion-tokens\";\nimport { createAvatarTokens } from \"./create-avatar-tokens\";\nimport { createBadgeTokens } from \"./create-badge-tokens\";\nimport { createButtonTokens } from \"./create-button-tokens\";\nimport { createCardTokens } from \"./create-card-tokens\";\nimport { createCarouselTokens } from \"./create-carousel-tokens\";\nimport { createCheckboxTokens } from \"./create-checkbox-tokens\";\nimport {\n createControlAddonTokens,\n createControlContainerTokens,\n createControlErrorTokens,\n createControlInputTokens,\n createControlLabelTokens,\n} from \"./create-control-tokens\";\nimport { createDataStateTokens } from \"./create-data-state-tokens\";\nimport { createDatetimePickerTokens } from \"./create-datetime-picker\";\nimport { createDividerTokens } from \"./create-divider-tokens\";\nimport { createFlyoutTokens } from \"./create-flyout-tokens\";\nimport { createIconButtonTokens } from \"./create-icon-button-tokens\";\nimport { createIconTokens } from \"./create-icon-tokens\";\nimport { createListTokens } from \"./create-list-tokens\";\nimport { createModalTokens } from \"./create-modal-tokens\";\nimport { createPaginationTokens } from \"./create-pagination-tokens\";\nimport { createPopoverTokens } from \"./create-popover-tokens\";\nimport { createPressableTokens } from \"./create-pressable-tokens\";\nimport { createProgressTokens } from \"./create-progress-tokens\";\nimport { createRadioTokens } from \"./create-radio-tokens\";\nimport { createSegmentedControlTokens } from \"./create-segmented-control-tokens\";\nimport { createSelectTokens } from \"./create-select-tokens\";\nimport { createSkeletonTokens } from \"./create-skeleton-tokens\";\nimport { createSliderTokens } from \"./create-slider-tokens\";\nimport { createSpinnerTokens } from \"./create-spinner-tokens\";\nimport { createStepperTokens } from \"./create-stepper-tokens\";\nimport { createSwitchTokens } from \"./create-switch-tokens\";\nimport { createTabsTokens } from \"./create-tabs-tokens\";\nimport { createTagTokens } from \"./create-tag-tokens\";\nimport { createTextareaTokens } from \"./create-textarea-tokens\";\nimport { createTimePickerTokens } from \"./create-time-picker-tokens\";\nimport { createToastTokens } from \"./create-toast-tokens\";\n\nexport const ChartColorTokens: ChartColorPalette = [\n \"#F55D6B\",\n \"#2563eb\",\n \"#16a34a\",\n \"#9333ea\",\n \"#ea580c\",\n \"#0891b2\",\n \"#db2777\",\n \"#65a30d\",\n \"#4f46e5\",\n \"#0d9488\",\n \"#ca8a04\",\n \"#c026d3\",\n \"#0284c7\",\n \"#7c3aed\",\n \"#9f5f3f\",\n];\n\nexport const SpaceTokens: Space = {\n none: 0,\n xxs: 4,\n xs: 8,\n mxs: 12,\n sm: 16,\n msm: 24,\n md: 32,\n lg: 48,\n xl: 64,\n xxl: 96,\n};\n\nexport const BorderSizeTokens: BorderSize = {\n sm: 1,\n md: 2,\n lg: 3,\n xl: 5,\n xxl: 10,\n};\n\nexport const RadiiTokens: Radii = {\n sm: 4,\n md: 8,\n lg: 16,\n xl: 32,\n xxl: 64,\n xxxl: 128,\n round: 100000,\n};\n\nexport const FontSizeTokens: FontSize = {\n xxs: 8,\n xs: 12,\n xsm: 14,\n sm: 16,\n md: 18,\n lg: 20,\n xl: 24,\n xxl: 28,\n xxxl: 32,\n huge: 36,\n massive: 40,\n giant: 48,\n colossal: 56,\n};\n\nexport const LineHeightTokens: LineHeight = {\n xxs: 12,\n xs: 16,\n xsm: 20,\n sm: 24,\n md: 26,\n lg: 28,\n xl: 32,\n xxl: 36,\n xxxl: 40,\n huge: 44,\n massive: 48,\n giant: 56,\n colossal: 64,\n};\n\nexport const LetterSpacingTokens: LetterSpacings = {\n tightest: -1,\n tighter: -0.5,\n tight: -0.25,\n normal: 0,\n wide: 0.25,\n wider: 0.5,\n widest: 0.75,\n ultraWide: 1,\n};\n\nexport const FontWeightTokens: FontWeight = {\n thin: 100,\n extraLight: 200,\n light: 300,\n regular: 400,\n medium: 500,\n semiBold: 600,\n bold: 700,\n extraBold: 800,\n black: 900,\n};\n\nexport const FontFamilyWeightsNormalTokens: Record<\n FontWeightValue,\n FontWeightNormal\n> = {\n 100: \"Montserrat_100Thin\",\n 200: \"Montserrat_200ExtraLight\",\n 300: \"Montserrat_300Light\",\n 400: \"Montserrat_400Regular\",\n 500: \"Montserrat_500Medium\",\n 600: \"Montserrat_600SemiBold\",\n 700: \"Montserrat_700Bold\",\n 800: \"Montserrat_800ExtraBold\",\n 900: \"Montserrat_900Black\",\n};\n\nexport const FontFamilyWeightsItalicTokens: Record<\n FontWeightValue,\n FontWeightItalic\n> = {\n 100: \"Montserrat_100Thin_Italic\",\n 200: \"Montserrat_200ExtraLight_Italic\",\n 300: \"Montserrat_300Light_Italic\",\n 400: \"Montserrat_400Regular_Italic\",\n 500: \"Montserrat_500Medium_Italic\",\n 600: \"Montserrat_600SemiBold_Italic\",\n 700: \"Montserrat_700Bold_Italic\",\n 800: \"Montserrat_800ExtraBold_Italic\",\n 900: \"Montserrat_900Black_Italic\",\n};\n\nexport const FontFamilyTokens: FontFamily = {\n normal: FontFamilyWeightsNormalTokens,\n italic: FontFamilyWeightsItalicTokens,\n};\n\nexport const NeutralColorTokens: NeutralColor = {\n \"0\": \"#ffffff\",\n \"1\": \"#f8f9fa\",\n \"2\": \"#f1f3f5\",\n \"3\": \"#e9ecef\",\n \"4\": \"#dee2e6\",\n \"5\": \"#ced4da\",\n \"6\": \"#adb5bd\",\n \"7\": \"#868e96\",\n \"8\": \"#495057\",\n \"9\": \"#343a40\",\n \"10\": \"#212529\",\n \"11\": \"#16191d\",\n \"12\": \"#0d0f12\",\n \"13\": \"#000000\",\n};\n\nexport const LightColors: ThemeColors = {\n primary: {\n value: \"#F55D6B\",\n contrast: NeutralColorTokens[\"0\"],\n },\n\n accent: {\n value: \"#FA9EA7\",\n contrast: NeutralColorTokens[\"11\"],\n },\n\n secondary: {\n value: \"#FEE7E9\",\n contrast: \"#c92a3b\",\n },\n\n neutral: NeutralColorTokens,\n\n surface: {\n primary: {\n value: NeutralColorTokens[\"2\"],\n contrast: NeutralColorTokens[\"11\"],\n },\n secondary: {\n value: NeutralColorTokens[\"0\"],\n contrast: NeutralColorTokens[\"11\"],\n },\n elevated: {\n value: NeutralColorTokens[\"0\"],\n contrast: NeutralColorTokens[\"11\"],\n },\n inverse: {\n value: NeutralColorTokens[\"13\"],\n contrast: NeutralColorTokens[\"0\"],\n },\n },\n\n text: {\n primary: NeutralColorTokens[\"11\"],\n secondary: NeutralColorTokens[\"10\"],\n tertiary: NeutralColorTokens[\"9\"],\n inverse: NeutralColorTokens[\"0\"],\n disabled: NeutralColorTokens[\"7\"],\n },\n\n border: {\n subtle: {\n value: NeutralColorTokens[\"3\"],\n contrast: NeutralColorTokens[\"9\"],\n },\n default: {\n value: NeutralColorTokens[\"4\"],\n contrast: NeutralColorTokens[\"10\"],\n },\n strong: {\n value: NeutralColorTokens[\"6\"],\n contrast: NeutralColorTokens[\"11\"],\n },\n focus: {\n value: \"#c92a3b\",\n contrast: NeutralColorTokens[\"0\"],\n },\n },\n\n feedback: {\n error: {\n value: \"#c92a2a\",\n contrast: \"#fff5f5\",\n },\n warning: {\n value: \"#a65300\",\n contrast: \"#fff4e6\",\n },\n success: {\n value: \"#526b00\",\n contrast: \"#f4fce3\",\n },\n info: {\n value: \"#1864ab\",\n contrast: \"#e7f5ff\",\n },\n },\n\n overlay: \"rgba(0, 0, 0, 0.45)\",\n\n white: NeutralColorTokens[\"0\"],\n black: NeutralColorTokens[\"13\"],\n};\n\nexport const DarkColors: ThemeColors = {\n primary: {\n value: \"#FA9EA7\",\n contrast: NeutralColorTokens[\"11\"],\n },\n\n accent: {\n value: \"#f55d6b\",\n contrast: NeutralColorTokens[\"11\"],\n },\n\n secondary: {\n value: \"#3b2027\",\n contrast: \"#FA9EA7\",\n },\n\n neutral: NeutralColorTokens,\n\n surface: {\n primary: {\n value: NeutralColorTokens[\"11\"],\n contrast: NeutralColorTokens[\"0\"],\n },\n secondary: {\n value: NeutralColorTokens[\"10\"],\n contrast: NeutralColorTokens[\"0\"],\n },\n elevated: {\n value: NeutralColorTokens[\"9\"],\n contrast: NeutralColorTokens[\"0\"],\n },\n inverse: {\n value: NeutralColorTokens[\"0\"],\n contrast: NeutralColorTokens[\"11\"],\n },\n },\n\n text: {\n primary: NeutralColorTokens[\"0\"],\n secondary: NeutralColorTokens[\"2\"],\n tertiary: NeutralColorTokens[\"6\"],\n inverse: NeutralColorTokens[\"11\"],\n disabled: NeutralColorTokens[\"7\"],\n },\n\n border: {\n subtle: {\n value: NeutralColorTokens[\"7\"],\n contrast: NeutralColorTokens[\"6\"],\n },\n default: {\n value: NeutralColorTokens[\"6\"],\n contrast: NeutralColorTokens[\"2\"],\n },\n strong: {\n value: NeutralColorTokens[\"5\"],\n contrast: NeutralColorTokens[\"0\"],\n },\n focus: {\n value: \"#FA9EA7\",\n contrast: NeutralColorTokens[\"11\"],\n },\n },\n\n feedback: {\n error: {\n value: \"#ff8787\",\n contrast: \"#3b1515\",\n },\n warning: {\n value: \"#ffc078\",\n contrast: \"#3b250f\",\n },\n success: {\n value: \"#c0eb75\",\n contrast: \"#26320f\",\n },\n info: {\n value: \"#74c0fc\",\n contrast: \"#102a43\",\n },\n },\n\n overlay: \"rgba(0, 0, 0, 0.65)\",\n\n white: NeutralColorTokens[\"0\"],\n black: NeutralColorTokens[\"13\"],\n};\n\nexport function createComponentsTokens(\n tokens: PrimitiveThemeTokens,\n): ComponentsTokens {\n return {\n modal: createModalTokens(tokens),\n toast: createToastTokens(tokens),\n popover: createPopoverTokens(tokens),\n carousel: createCarouselTokens(tokens),\n accordion: createAccordionTokens(tokens),\n avatar: createAvatarTokens(tokens),\n badge: createBadgeTokens(tokens),\n button: createButtonTokens(tokens),\n card: createCardTokens(tokens),\n list: createListTokens(tokens),\n checkbox: createCheckboxTokens(tokens),\n iconButton: createIconButtonTokens(tokens),\n icon: createIconTokens(),\n pagination: createPaginationTokens(tokens),\n pressable: createPressableTokens(),\n progress: createProgressTokens(tokens),\n radio: createRadioTokens(tokens),\n tag: createTagTokens(tokens),\n controlAddon: createControlAddonTokens(tokens),\n controlContainer: createControlContainerTokens(tokens),\n controlError: createControlErrorTokens(tokens),\n controlInput: createControlInputTokens(tokens),\n controlLabel: createControlLabelTokens(tokens),\n select: createSelectTokens(tokens),\n segmentedControl: createSegmentedControlTokens(tokens),\n tabs: createTabsTokens(tokens),\n datetimePicker: createDatetimePickerTokens(tokens),\n divider: createDividerTokens(tokens),\n timePicker: createTimePickerTokens(tokens),\n flyout: createFlyoutTokens(tokens),\n skeleton: createSkeletonTokens(tokens),\n slider: createSliderTokens(tokens),\n spinner: createSpinnerTokens(tokens),\n stepper: createStepperTokens(tokens),\n switch: createSwitchTokens(tokens),\n textarea: createTextareaTokens(tokens),\n dataState: createDataStateTokens(tokens),\n };\n}\n"],"mappings":"AAkBA,SAAS,6BAA6B;AACtC,SAAS,0BAA0B;AACnC,SAAS,yBAAyB;AAClC,SAAS,0BAA0B;AACnC,SAAS,wBAAwB;AACjC,SAAS,4BAA4B;AACrC,SAAS,4BAA4B;AACrC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,6BAA6B;AACtC,SAAS,kCAAkC;AAC3C,SAAS,2BAA2B;AACpC,SAAS,0BAA0B;AACnC,SAAS,8BAA8B;AACvC,SAAS,wBAAwB;AACjC,SAAS,wBAAwB;AACjC,SAAS,yBAAyB;AAClC,SAAS,8BAA8B;AACvC,SAAS,2BAA2B;AACpC,SAAS,6BAA6B;AACtC,SAAS,4BAA4B;AACrC,SAAS,yBAAyB;AAClC,SAAS,oCAAoC;AAC7C,SAAS,0BAA0B;AACnC,SAAS,4BAA4B;AACrC,SAAS,0BAA0B;AACnC,SAAS,2BAA2B;AACpC,SAAS,2BAA2B;AACpC,SAAS,0BAA0B;AACnC,SAAS,wBAAwB;AACjC,SAAS,uBAAuB;AAChC,SAAS,4BAA4B;AACrC,SAAS,8BAA8B;AACvC,SAAS,yBAAyB;AAE3B,MAAM,mBAAsC;AAAA,EACjD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEO,MAAM,cAAqB;AAAA,EAChC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,IAAI;AAAA,EACJ,KAAK;AAAA,EACL,IAAI;AAA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BAAqB,MAAM;AAAA,IACrC,QAAQ,mBAAmB,MAAM;AAAA,IACjC,SAAS,oBAAoB,MAAM;AAAA,IACnC,SAAS,oBAAoB,MAAM;AAAA,IACnC,QAAQ,mBAAmB,MAAM;AAAA,IACjC,UAAU,qBAAqB,MAAM;AAAA,IACrC,WAAW,sBAAsB,MAAM;AAAA,EACzC;AACF;","names":[]}
|
|
@@ -5,6 +5,7 @@ import { ListTokens } from './types/list-tokens.types.mjs';
|
|
|
5
5
|
import { ModalTokens } from './types/modal-tokens.types.mjs';
|
|
6
6
|
import { PopoverTokens } from './types/popover-tokens.types.mjs';
|
|
7
7
|
import { RadioTokens } from './types/radio-tokens.types.mjs';
|
|
8
|
+
import { TabsTokens } from './types/tabs-tokens.types.mjs';
|
|
8
9
|
import { AccordionTokens } from './types/accordion-tokens.types.mjs';
|
|
9
10
|
import { AvatarTokens } from './types/avatar-tokens.types.mjs';
|
|
10
11
|
import { ButtonTokens, IconButtonTokens } from './types/buttons-tokens.types.mjs';
|
|
@@ -133,6 +134,7 @@ interface ComponentsTokens {
|
|
|
133
134
|
controlLabel: ControlLabelTokens;
|
|
134
135
|
select: SelectTokens;
|
|
135
136
|
segmentedControl: SegmentedControlTokens;
|
|
137
|
+
tabs: TabsTokens;
|
|
136
138
|
datetimePicker: DatetimePickerTokens;
|
|
137
139
|
divider: DividerTokens;
|
|
138
140
|
timePicker: TimePickerTokens;
|
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-B4jCf93c.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';
|
|
@@ -29,6 +29,7 @@ export { PaginationAppearanceTokens, PaginationSizeToken, PaginationState, Pagin
|
|
|
29
29
|
export { ProgressColorTokens, ProgressSizeTokens, ProgressTokens, ProgressTone, ProgressVariant } from './progress-tokens.types.mjs';
|
|
30
30
|
export { RadioAppearanceTokens, RadioSizeTokens, RadioTokens, RadioVariantTokens } from './radio-tokens.types.mjs';
|
|
31
31
|
export { ResolvedSegmentedControlItemTokens, SegmentedControlAppearanceTokens, SegmentedControlItemLayout, SegmentedControlItemLayoutTokens, SegmentedControlItemTokenState, SegmentedControlSizeToken, SegmentedControlSizeTokens, SegmentedControlTokens, SegmentedControlVariantTokens } from './segmented-control-tokens.types.mjs';
|
|
32
|
+
export { ResolvedTabsItemTokens, TabsItemAppearanceTokens, TabsItemTokenState, TabsSizeTokens, TabsTokens } from './tabs-tokens.types.mjs';
|
|
32
33
|
export { SkeletonBoneTokens, SkeletonTextTokens, SkeletonTokens } from './skeleton-tokens.types.mjs';
|
|
33
34
|
export { ResolvedSliderTrackTokens, SliderAppearanceTokens, SliderSizeTokens, SliderTokens, SliderTrackLayout, SliderTrackLayoutTokens, SliderTrackTokenState, SliderVariant, SliderVariantTokens } from './slider-tokens.types.mjs';
|
|
34
35
|
export { SpinnerTokens, SpinnerTone } from './spinner-tokens.types.mjs';
|
package/dist/types/index.js
CHANGED
|
@@ -29,6 +29,7 @@ export * from "./pagination-tokens.types";
|
|
|
29
29
|
export * from "./progress-tokens.types";
|
|
30
30
|
export * from "./radio-tokens.types";
|
|
31
31
|
export * from "./segmented-control-tokens.types";
|
|
32
|
+
export * from "./tabs-tokens.types";
|
|
32
33
|
export * from "./skeleton-tokens.types";
|
|
33
34
|
export * from "./slider-tokens.types";
|
|
34
35
|
export * from "./spinner-tokens.types";
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/index.ts"],"sourcesContent":["export * from \"./border.types\";\nexport * from \"./color.types\";\nexport * from \"./chart.types\";\nexport * from \"./components.types\";\nexport * from \"./dimension.types\";\nexport * from \"./flex.types\";\nexport * from \"./shadow.types\";\nexport * from \"./spacing.types\";\nexport * from \"./style.types\";\nexport * from \"./theme-provider.types\";\nexport * from \"./tokens.types\";\nexport * from \"./typography.types\";\nexport * from \"./buttons-tokens.types\";\nexport * from \"./accordion-tokens.types\";\nexport * from \"./avatar-tokens.types\";\nexport * from \"./badge-tokens.types\";\nexport * from \"./card-tokens.types\";\nexport * from \"./checkbox-tokens.types\";\nexport * from \"./tag-tokens.types\";\nexport * from \"./control-tokens.types\";\nexport * from \"./select-tokens.types\";\nexport * from \"./datetime-picker-tokens.types\";\nexport * from \"./divider-tokens.types\";\nexport * from \"./time-picker-token.types\";\nexport * from \"./flyout-tokens.types\";\nexport * from \"./icon-tokens.types\";\nexport * from \"./pressable-tokens.types\";\nexport * from \"./pagination-tokens.types\";\nexport * from \"./progress-tokens.types\";\nexport * from \"./radio-tokens.types\";\nexport * from \"./segmented-control-tokens.types\";\nexport * from \"./skeleton-tokens.types\";\nexport * from \"./slider-tokens.types\";\nexport * from \"./spinner-tokens.types\";\nexport * from \"./stepper-tokens.types\";\nexport * from \"./switch-tokens.types\";\nexport * from \"./textarea-tokens.types\";\nexport * from \"./data-state-tokens.types\";\n\nexport * from \"./list-tokens.types\";\nexport * from \"./carousel-tokens.types\";\n\nexport * from \"./toast-tokens.types\";\nexport * from \"./popover-tokens.types\";\nexport * from \"./modal-tokens.types\";\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,cAAc;AACd,cAAc;AAEd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/types/index.ts"],"sourcesContent":["export * from \"./border.types\";\nexport * from \"./color.types\";\nexport * from \"./chart.types\";\nexport * from \"./components.types\";\nexport * from \"./dimension.types\";\nexport * from \"./flex.types\";\nexport * from \"./shadow.types\";\nexport * from \"./spacing.types\";\nexport * from \"./style.types\";\nexport * from \"./theme-provider.types\";\nexport * from \"./tokens.types\";\nexport * from \"./typography.types\";\nexport * from \"./buttons-tokens.types\";\nexport * from \"./accordion-tokens.types\";\nexport * from \"./avatar-tokens.types\";\nexport * from \"./badge-tokens.types\";\nexport * from \"./card-tokens.types\";\nexport * from \"./checkbox-tokens.types\";\nexport * from \"./tag-tokens.types\";\nexport * from \"./control-tokens.types\";\nexport * from \"./select-tokens.types\";\nexport * from \"./datetime-picker-tokens.types\";\nexport * from \"./divider-tokens.types\";\nexport * from \"./time-picker-token.types\";\nexport * from \"./flyout-tokens.types\";\nexport * from \"./icon-tokens.types\";\nexport * from \"./pressable-tokens.types\";\nexport * from \"./pagination-tokens.types\";\nexport * from \"./progress-tokens.types\";\nexport * from \"./radio-tokens.types\";\nexport * from \"./segmented-control-tokens.types\";\nexport * from \"./tabs-tokens.types\";\nexport * from \"./skeleton-tokens.types\";\nexport * from \"./slider-tokens.types\";\nexport * from \"./spinner-tokens.types\";\nexport * from \"./stepper-tokens.types\";\nexport * from \"./switch-tokens.types\";\nexport * from \"./textarea-tokens.types\";\nexport * from \"./data-state-tokens.types\";\n\nexport * from \"./list-tokens.types\";\nexport * from \"./carousel-tokens.types\";\n\nexport * from \"./toast-tokens.types\";\nexport * from \"./popover-tokens.types\";\nexport * from \"./modal-tokens.types\";\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,cAAc;AACd,cAAc;AAEd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ComponentSize, VisualStateTokens, SelectionVisualState, SelectionState } from './components.types.mjs';
|
|
2
|
+
|
|
3
|
+
interface TabsSizeTokens {
|
|
4
|
+
fontSize: number;
|
|
5
|
+
minHeight: number;
|
|
6
|
+
hitSlop: number;
|
|
7
|
+
paddingHorizontal: number;
|
|
8
|
+
paddingVertical: number;
|
|
9
|
+
}
|
|
10
|
+
interface TabsItemAppearanceTokens {
|
|
11
|
+
color: string;
|
|
12
|
+
indicatorColor: string;
|
|
13
|
+
indicatorOpacity: number;
|
|
14
|
+
}
|
|
15
|
+
interface TabsTokens {
|
|
16
|
+
borderColor: string;
|
|
17
|
+
borderWidth: number;
|
|
18
|
+
indicatorHeight: number;
|
|
19
|
+
panelGap: number;
|
|
20
|
+
sizes: Record<ComponentSize, TabsSizeTokens>;
|
|
21
|
+
states: VisualStateTokens<SelectionVisualState, TabsItemAppearanceTokens>;
|
|
22
|
+
}
|
|
23
|
+
interface TabsItemTokenState extends SelectionState {
|
|
24
|
+
size: ComponentSize;
|
|
25
|
+
}
|
|
26
|
+
type ResolvedTabsItemTokens = TabsSizeTokens & TabsItemAppearanceTokens & {
|
|
27
|
+
indicatorHeight: number;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export type { ResolvedTabsItemTokens, TabsItemAppearanceTokens, TabsItemTokenState, TabsSizeTokens, TabsTokens };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=tabs-tokens.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -5,7 +5,8 @@ import './list-tokens.types.mjs';
|
|
|
5
5
|
import './modal-tokens.types.mjs';
|
|
6
6
|
import './popover-tokens.types.mjs';
|
|
7
7
|
import './radio-tokens.types.mjs';
|
|
8
|
-
|
|
8
|
+
import './tabs-tokens.types.mjs';
|
|
9
|
+
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-B4jCf93c.mjs';
|
|
9
10
|
import './accordion-tokens.types.mjs';
|
|
10
11
|
import './avatar-tokens.types.mjs';
|
|
11
12
|
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-B4jCf93c.mjs';
|
|
2
2
|
import './badge-tokens.types.mjs';
|
|
3
3
|
import './components.types.mjs';
|
|
4
4
|
import './carousel-tokens.types.mjs';
|
|
@@ -7,6 +7,7 @@ import './list-tokens.types.mjs';
|
|
|
7
7
|
import './modal-tokens.types.mjs';
|
|
8
8
|
import './popover-tokens.types.mjs';
|
|
9
9
|
import './radio-tokens.types.mjs';
|
|
10
|
+
import './tabs-tokens.types.mjs';
|
|
10
11
|
import './accordion-tokens.types.mjs';
|
|
11
12
|
import './avatar-tokens.types.mjs';
|
|
12
13
|
import './buttons-tokens.types.mjs';
|
package/dist/utils/index.d.mts
CHANGED
|
@@ -11,6 +11,7 @@ export { getSelectionStateTokens } from './selection-state.utils.mjs';
|
|
|
11
11
|
export { getSegmentedControlItemTokens } from './segmented-control-state.utils.mjs';
|
|
12
12
|
export { getSliderTrackTokens } from './slider-tokens.utils.mjs';
|
|
13
13
|
export { createStyleKey, extractStyleProps, getShadowStyle } from './style.utils.mjs';
|
|
14
|
+
export { getTabsItemTokens } from './tabs-state.utils.mjs';
|
|
14
15
|
import '../types/components.types.mjs';
|
|
15
16
|
import '../types/datetime-picker-tokens.types.mjs';
|
|
16
17
|
import '../types/divider-tokens.types.mjs';
|
|
@@ -28,7 +29,7 @@ import '../types/flex.types.mjs';
|
|
|
28
29
|
import '../types/spacing.types.mjs';
|
|
29
30
|
import '../types/typography.types.mjs';
|
|
30
31
|
import '../types/tokens.types.mjs';
|
|
31
|
-
import '../theme-provider.types-
|
|
32
|
+
import '../theme-provider.types-B4jCf93c.mjs';
|
|
32
33
|
import '../types/badge-tokens.types.mjs';
|
|
33
34
|
import '../types/carousel-tokens.types.mjs';
|
|
34
35
|
import '../types/checkbox-tokens.types.mjs';
|
|
@@ -36,6 +37,7 @@ import '../types/list-tokens.types.mjs';
|
|
|
36
37
|
import '../types/modal-tokens.types.mjs';
|
|
37
38
|
import '../types/popover-tokens.types.mjs';
|
|
38
39
|
import '../types/radio-tokens.types.mjs';
|
|
40
|
+
import '../types/tabs-tokens.types.mjs';
|
|
39
41
|
import '../types/accordion-tokens.types.mjs';
|
|
40
42
|
import '../types/avatar-tokens.types.mjs';
|
|
41
43
|
import '../types/buttons-tokens.types.mjs';
|
package/dist/utils/index.js
CHANGED
package/dist/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/utils/index.ts"],"sourcesContent":["export * from \"./action-state.utils\";\nexport * from \"./availability-state.utils\";\nexport * from \"./control-state.utils\";\nexport * from \"./datetime-picker-state.utils\";\nexport * from \"./divider-tokens.utils\";\nexport * from \"./field-state.utils\";\nexport * from \"./flyout-tokens.utils\";\nexport * from \"./pagination-state.utils\";\nexport * from \"./selection-item-state.utils\";\nexport * from \"./selection-state.utils\";\nexport * from \"./segmented-control-state.utils\";\nexport * from \"./slider-tokens.utils\";\nexport * from \"./style.utils\";\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;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/utils/index.ts"],"sourcesContent":["export * from \"./action-state.utils\";\nexport * from \"./availability-state.utils\";\nexport * from \"./control-state.utils\";\nexport * from \"./datetime-picker-state.utils\";\nexport * from \"./divider-tokens.utils\";\nexport * from \"./field-state.utils\";\nexport * from \"./flyout-tokens.utils\";\nexport * from \"./pagination-state.utils\";\nexport * from \"./selection-item-state.utils\";\nexport * from \"./selection-state.utils\";\nexport * from \"./segmented-control-state.utils\";\nexport * from \"./slider-tokens.utils\";\nexport * from \"./style.utils\";\nexport * from \"./tabs-state.utils\";\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;","names":[]}
|
|
@@ -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-B4jCf93c.mjs';
|
|
5
5
|
import '../types/border.types.mjs';
|
|
6
6
|
import '../types/color.types.mjs';
|
|
7
7
|
import '../types/dimension.types.mjs';
|
|
@@ -17,6 +17,7 @@ import '../types/list-tokens.types.mjs';
|
|
|
17
17
|
import '../types/modal-tokens.types.mjs';
|
|
18
18
|
import '../types/popover-tokens.types.mjs';
|
|
19
19
|
import '../types/radio-tokens.types.mjs';
|
|
20
|
+
import '../types/tabs-tokens.types.mjs';
|
|
20
21
|
import '../types/accordion-tokens.types.mjs';
|
|
21
22
|
import '../types/avatar-tokens.types.mjs';
|
|
22
23
|
import '../types/buttons-tokens.types.mjs';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TabsTokens, TabsItemTokenState, ResolvedTabsItemTokens } from '../types/tabs-tokens.types.mjs';
|
|
2
|
+
import '../types/components.types.mjs';
|
|
3
|
+
|
|
4
|
+
declare function getTabsItemTokens(tokens: TabsTokens, state: TabsItemTokenState): ResolvedTabsItemTokens;
|
|
5
|
+
|
|
6
|
+
export { getTabsItemTokens };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { getSelectionStateTokens } from "./selection-state.utils";
|
|
2
|
+
function getTabsItemTokens(tokens, state) {
|
|
3
|
+
return {
|
|
4
|
+
...tokens.sizes[state.size],
|
|
5
|
+
...getSelectionStateTokens(tokens.states, state),
|
|
6
|
+
indicatorHeight: tokens.indicatorHeight
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
getTabsItemTokens
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=tabs-state.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/utils/tabs-state.utils.ts"],"sourcesContent":["import type {\n ResolvedTabsItemTokens,\n TabsItemTokenState,\n TabsTokens,\n} from \"../types\";\nimport { getSelectionStateTokens } from \"./selection-state.utils\";\n\nexport function getTabsItemTokens(\n tokens: TabsTokens,\n state: TabsItemTokenState,\n): ResolvedTabsItemTokens {\n return {\n ...tokens.sizes[state.size],\n ...getSelectionStateTokens(tokens.states, state),\n indicatorHeight: tokens.indicatorHeight,\n };\n}\n"],"mappings":"AAKA,SAAS,+BAA+B;AAEjC,SAAS,kBACd,QACA,OACwB;AACxB,SAAO;AAAA,IACL,GAAG,OAAO,MAAM,MAAM,IAAI;AAAA,IAC1B,GAAG,wBAAwB,OAAO,QAAQ,KAAK;AAAA,IAC/C,iBAAiB,OAAO;AAAA,EAC1B;AACF;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@impulse-ui-native/theme",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.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": "8.
|
|
31
|
+
"@impulse-ui-native/core": "8.1.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",
|