@dxc-technology/halstack-react 9.0.1 → 10.0.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/HalstackContext.d.ts +2 -2
- package/HalstackContext.js +2 -2
- package/accordion/Accordion.d.ts +1 -1
- package/accordion/Accordion.js +2 -14
- package/accordion/Accordion.stories.tsx +3 -101
- package/accordion/types.d.ts +0 -12
- package/accordion-group/AccordionGroup.d.ts +4 -3
- package/accordion-group/AccordionGroup.js +21 -42
- package/accordion-group/AccordionGroup.stories.tsx +77 -76
- package/accordion-group/AccordionGroup.test.js +6 -16
- package/accordion-group/AccordionGroupAccordion.d.ts +4 -0
- package/accordion-group/AccordionGroupAccordion.js +43 -0
- package/accordion-group/types.d.ts +0 -12
- package/alert/Alert.js +1 -3
- package/bleed/Bleed.stories.tsx +1 -0
- package/box/Box.d.ts +1 -1
- package/box/Box.js +5 -22
- package/box/Box.stories.tsx +25 -53
- package/box/types.d.ts +0 -12
- package/bulleted-list/BulletedList.js +4 -2
- package/bulleted-list/BulletedList.stories.tsx +7 -1
- package/bulleted-list/types.d.ts +31 -4
- package/button/Button.d.ts +1 -1
- package/button/Button.js +45 -55
- package/button/Button.stories.tsx +4 -4
- package/button/Button.test.js +11 -0
- package/button/types.d.ts +4 -0
- package/card/Card.d.ts +1 -1
- package/card/Card.js +18 -35
- package/card/Card.stories.tsx +0 -29
- package/card/types.d.ts +1 -7
- package/chip/Chip.js +23 -36
- package/chip/Chip.stories.tsx +25 -17
- package/common/OpenSans.css +68 -80
- package/common/coreTokens.d.ts +146 -0
- package/common/coreTokens.js +167 -0
- package/common/variables.d.ts +1 -144
- package/common/variables.js +952 -1095
- package/date-input/Calendar.js +2 -2
- package/dialog/Dialog.d.ts +1 -1
- package/dialog/Dialog.js +4 -22
- package/dialog/Dialog.stories.tsx +52 -176
- package/dialog/types.d.ts +0 -13
- package/dropdown/DropdownMenu.js +5 -1
- package/file-input/FileItem.js +2 -2
- package/file-input/types.d.ts +1 -1
- package/flex/Flex.js +4 -2
- package/flex/Flex.stories.tsx +35 -26
- package/flex/types.d.ts +70 -5
- package/footer/Footer.d.ts +1 -1
- package/footer/Footer.js +43 -61
- package/footer/Footer.stories.tsx +12 -89
- package/footer/Footer.test.js +3 -1
- package/footer/types.d.ts +10 -12
- package/grid/Grid.d.ts +7 -0
- package/grid/Grid.js +91 -0
- package/grid/Grid.stories.tsx +219 -0
- package/grid/types.d.ts +115 -0
- package/grid/types.js +5 -0
- package/header/Header.d.ts +1 -1
- package/header/Header.js +3 -30
- package/header/Header.stories.tsx +7 -71
- package/header/types.d.ts +0 -14
- package/inset/Inset.stories.tsx +2 -1
- package/layout/ApplicationLayout.d.ts +4 -4
- package/layout/ApplicationLayout.js +7 -4
- package/layout/types.d.ts +2 -3
- package/link/Link.js +1 -1
- package/main.d.ts +2 -1
- package/main.js +8 -0
- package/nav-tabs/NavTabs.d.ts +2 -2
- package/nav-tabs/NavTabs.js +7 -10
- package/nav-tabs/NavTabs.stories.tsx +14 -0
- package/nav-tabs/Tab.js +22 -26
- package/nav-tabs/types.d.ts +8 -9
- package/package.json +1 -1
- package/paginator/Paginator.js +1 -1
- package/paginator/Paginator.test.js +13 -0
- package/radio-group/Radio.js +10 -10
- package/radio-group/RadioGroup.js +8 -10
- package/sidenav/Icons.d.ts +7 -0
- package/sidenav/Icons.js +51 -0
- package/sidenav/Sidenav.d.ts +2 -2
- package/sidenav/Sidenav.js +65 -93
- package/sidenav/Sidenav.stories.tsx +60 -60
- package/sidenav/types.d.ts +21 -18
- package/tabs/Tab.js +1 -2
- package/tabs/Tabs.js +10 -14
- package/text-input/TextInput.js +1 -1
- package/text-input/TextInput.stories.tsx +1 -1
- package/textarea/Textarea.js +0 -1
- package/textarea/Textarea.test.js +1 -3
- package/toggle-group/ToggleGroup.d.ts +2 -2
- package/useTheme.d.ts +1 -1
- package/utils/FocusLock.js +3 -4
- package/card/ice-cream.jpg +0 -0
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var CORE_TOKENS = {
|
|
8
|
+
inherit: "inherit",
|
|
9
|
+
// Color
|
|
10
|
+
// Absolutes
|
|
11
|
+
color_black: "#000000",
|
|
12
|
+
color_white: "#ffffff",
|
|
13
|
+
color_transparent: "transparent",
|
|
14
|
+
// Greyscale
|
|
15
|
+
// Solid variants
|
|
16
|
+
color_grey_50: "#fafafa",
|
|
17
|
+
color_grey_100: "#f2f2f2",
|
|
18
|
+
color_grey_200: "#e6e6e6",
|
|
19
|
+
color_grey_300: "#cccccc",
|
|
20
|
+
color_grey_400: "#bfbfbf",
|
|
21
|
+
color_grey_500: "#999999",
|
|
22
|
+
color_grey_600: "#808080",
|
|
23
|
+
color_grey_700: "#666666",
|
|
24
|
+
color_grey_800: "#4d4d4d",
|
|
25
|
+
color_grey_900: "#333333",
|
|
26
|
+
// Transparent variants
|
|
27
|
+
color_grey_50_a: "#00000005",
|
|
28
|
+
color_grey_100_a: "#0000000d",
|
|
29
|
+
color_grey_200_a: "#0000001a",
|
|
30
|
+
color_grey_300_a: "#00000033",
|
|
31
|
+
color_grey_400_a: "#0000004d",
|
|
32
|
+
color_grey_500_a: "#00000066",
|
|
33
|
+
color_grey_600_a: "#00000080",
|
|
34
|
+
color_grey_700_a: "#00000099",
|
|
35
|
+
color_grey_800_a: "#000000b3",
|
|
36
|
+
color_grey_900_a: "#000000cc",
|
|
37
|
+
// Purple
|
|
38
|
+
color_purple_50: "#faf7fd",
|
|
39
|
+
color_purple_100: "#f2eafa",
|
|
40
|
+
color_purple_200: "#e5d5f6",
|
|
41
|
+
color_purple_300: "#cbacec",
|
|
42
|
+
color_purple_400: "#b182e3",
|
|
43
|
+
color_purple_500: "#a46ede",
|
|
44
|
+
color_purple_600: "#7d2fd0",
|
|
45
|
+
color_purple_700: "#5f249f",
|
|
46
|
+
color_purple_800: "#4b1c7d",
|
|
47
|
+
color_purple_900: "#321353",
|
|
48
|
+
// Blue
|
|
49
|
+
color_blue_50: "#f5fbff",
|
|
50
|
+
color_blue_100: "#e6f4ff",
|
|
51
|
+
color_blue_200: "#cceaff",
|
|
52
|
+
color_blue_300: "#99d5ff",
|
|
53
|
+
color_blue_400: "#66bfff",
|
|
54
|
+
color_blue_500: "#33aaff",
|
|
55
|
+
color_blue_600: "#0095ff",
|
|
56
|
+
color_blue_700: "#0086e6",
|
|
57
|
+
color_blue_800: "#0067b3",
|
|
58
|
+
color_blue_900: "#003c66",
|
|
59
|
+
// Red
|
|
60
|
+
color_red_50: "#fff5f6",
|
|
61
|
+
color_red_100: "#ffe6e9",
|
|
62
|
+
color_red_200: "#ffccd3",
|
|
63
|
+
color_red_300: "#fe9aa7",
|
|
64
|
+
color_red_400: "#fe677b",
|
|
65
|
+
color_red_500: "#fe344f",
|
|
66
|
+
color_red_600: "#fe0123",
|
|
67
|
+
color_red_700: "#d0011b",
|
|
68
|
+
color_red_800: "#980115",
|
|
69
|
+
color_red_900: "#65010e",
|
|
70
|
+
// Green
|
|
71
|
+
color_green_50: "#f7fdf9",
|
|
72
|
+
color_green_100: "#eafaef",
|
|
73
|
+
color_green_200: "#d5f6df",
|
|
74
|
+
color_green_300: "#acecbe",
|
|
75
|
+
color_green_400: "#82e39e",
|
|
76
|
+
color_green_500: "#59d97d",
|
|
77
|
+
color_green_600: "#2fd05d",
|
|
78
|
+
color_green_700: "#24a148",
|
|
79
|
+
color_green_800: "#1c7d38",
|
|
80
|
+
color_green_900: "#135325",
|
|
81
|
+
// Yellow
|
|
82
|
+
color_yellow_50: "#fffdf5",
|
|
83
|
+
color_yellow_100: "#fef9e6",
|
|
84
|
+
color_yellow_200: "#fdf4ce",
|
|
85
|
+
color_yellow_300: "#fbe89d",
|
|
86
|
+
color_yellow_400: "#fadd6b",
|
|
87
|
+
color_yellow_500: "#f7cf2b",
|
|
88
|
+
color_yellow_600: "#f6c709",
|
|
89
|
+
color_yellow_700: "#c59f07",
|
|
90
|
+
color_yellow_800: "#947705",
|
|
91
|
+
color_yellow_900: "#624f04",
|
|
92
|
+
// Orange
|
|
93
|
+
color_orange_50: "#fefaf5",
|
|
94
|
+
color_orange_100: "#fef3e7",
|
|
95
|
+
color_orange_200: "#fce7cf",
|
|
96
|
+
color_orange_300: "#facf9e",
|
|
97
|
+
color_orange_400: "#f7b76e",
|
|
98
|
+
color_orange_500: "#f59f3d",
|
|
99
|
+
color_orange_600: "#f38f20",
|
|
100
|
+
color_orange_700: "#c26c0a",
|
|
101
|
+
color_orange_800: "#915108",
|
|
102
|
+
color_orange_900: "#613605",
|
|
103
|
+
// Typography
|
|
104
|
+
type_sans: "Open Sans, sans-serif",
|
|
105
|
+
type_scale_root: "16px",
|
|
106
|
+
type_scale_08: "3.75rem",
|
|
107
|
+
type_scale_07: "2.5rem",
|
|
108
|
+
type_scale_06: "2rem",
|
|
109
|
+
type_scale_05: "1.5rem",
|
|
110
|
+
type_scale_04: "1.25rem",
|
|
111
|
+
type_scale_03: "1rem",
|
|
112
|
+
type_scale_02: "0.875rem",
|
|
113
|
+
type_scale_01: "0.75rem",
|
|
114
|
+
type_light: "300",
|
|
115
|
+
type_regular: "400",
|
|
116
|
+
type_semibold: "600",
|
|
117
|
+
type_bold: "bold",
|
|
118
|
+
type_italic: "italic",
|
|
119
|
+
type_normal: "normal",
|
|
120
|
+
type_spacing_tight_02: "-0.05em",
|
|
121
|
+
type_spacing_tight_01: "-0.025em",
|
|
122
|
+
type_spacing_normal: "0em",
|
|
123
|
+
type_spacing_wide_01: "0.025em",
|
|
124
|
+
type_spacing_wide_02: "0.05em",
|
|
125
|
+
type_spacing_wide_03: "0.1em",
|
|
126
|
+
type_initial: "initial",
|
|
127
|
+
type_uppercase: "uppercase",
|
|
128
|
+
type_no_line: "none",
|
|
129
|
+
type_underline: "underline",
|
|
130
|
+
type_line_through: "line-through",
|
|
131
|
+
type_leading_compact_03: "1em",
|
|
132
|
+
type_leading_compact_02: "1.25em",
|
|
133
|
+
type_leading_compact_01: "1.365em",
|
|
134
|
+
type_leading_normal: "1.5em",
|
|
135
|
+
type_leading_loose_01: "1.715em",
|
|
136
|
+
type_leading_loose_02: "2em",
|
|
137
|
+
// Spacing
|
|
138
|
+
spacing_0: "0rem",
|
|
139
|
+
spacing_2: "0.125rem",
|
|
140
|
+
spacing_4: "0.25rem",
|
|
141
|
+
spacing_8: "0.5rem",
|
|
142
|
+
spacing_12: "0.75rem",
|
|
143
|
+
spacing_16: "1rem",
|
|
144
|
+
spacing_24: "1.5rem",
|
|
145
|
+
spacing_32: "2rem",
|
|
146
|
+
spacing_40: "2.5rem",
|
|
147
|
+
spacing_48: "3rem",
|
|
148
|
+
spacing_56: "3.5rem",
|
|
149
|
+
spacing_64: "4rem",
|
|
150
|
+
spacing_80: "5rem",
|
|
151
|
+
spacing_96: "6rem",
|
|
152
|
+
spacing_112: "7rem",
|
|
153
|
+
// Border
|
|
154
|
+
border_width_0: "0px",
|
|
155
|
+
border_width_1: "1px",
|
|
156
|
+
border_width_2: "2px",
|
|
157
|
+
border_width_4: "4px",
|
|
158
|
+
border_radius_none: "0rem",
|
|
159
|
+
border_radius_small: "0.125rem",
|
|
160
|
+
border_radius_medium: "0.25rem",
|
|
161
|
+
border_radius_large: "0.375rem",
|
|
162
|
+
border_solid: "solid",
|
|
163
|
+
border_dashed: "dashed",
|
|
164
|
+
border_none: "none"
|
|
165
|
+
};
|
|
166
|
+
var _default = CORE_TOKENS;
|
|
167
|
+
exports["default"] = _default;
|
package/common/variables.d.ts
CHANGED
|
@@ -1,146 +1,3 @@
|
|
|
1
|
-
export declare const globalTokens: {
|
|
2
|
-
inherit: string;
|
|
3
|
-
transparent: string;
|
|
4
|
-
hal_white: string;
|
|
5
|
-
hal_grey_l_95: string;
|
|
6
|
-
hal_grey_l_90: string;
|
|
7
|
-
hal_grey_l_80: string;
|
|
8
|
-
hal_grey_l_75: string;
|
|
9
|
-
hal_grey_l_60: string;
|
|
10
|
-
hal_grey_s_40: string;
|
|
11
|
-
hal_black: string;
|
|
12
|
-
color_grey_800: string;
|
|
13
|
-
color_grey_600: string;
|
|
14
|
-
color_grey_50: string;
|
|
15
|
-
color_grey_a_100: string;
|
|
16
|
-
color_grey_a_200: string;
|
|
17
|
-
color_grey_a_300: string;
|
|
18
|
-
color_grey_a_800: string;
|
|
19
|
-
color_grey_a_900: string;
|
|
20
|
-
hal_purple_l_95: string;
|
|
21
|
-
hal_purple_l_90: string;
|
|
22
|
-
hal_purple_l_65: string;
|
|
23
|
-
hal_purple_s_38: string;
|
|
24
|
-
hal_purple_d_30: string;
|
|
25
|
-
hal_purple_d_20: string;
|
|
26
|
-
hal_purple_d_70: string;
|
|
27
|
-
color_purple_600: string;
|
|
28
|
-
color_purple_300: string;
|
|
29
|
-
hal_blue_l_95: string;
|
|
30
|
-
hal_blue_l_80: string;
|
|
31
|
-
hal_blue_l_50: string;
|
|
32
|
-
hal_blue_l_45: string;
|
|
33
|
-
hal_blue_s_35: string;
|
|
34
|
-
hal_blue_d_20: string;
|
|
35
|
-
color_blue_200: string;
|
|
36
|
-
color_blue_500: string;
|
|
37
|
-
color_blue_50: string;
|
|
38
|
-
hal_red_l_95: string;
|
|
39
|
-
hal_red_l_80: string;
|
|
40
|
-
hal_red_l_60: string;
|
|
41
|
-
hal_red_s_41: string;
|
|
42
|
-
hal_red_d_30: string;
|
|
43
|
-
hal_red_d_20: string;
|
|
44
|
-
color_red_700: string;
|
|
45
|
-
color_red_50: string;
|
|
46
|
-
color_red_600: string;
|
|
47
|
-
hal_green_l_95: string;
|
|
48
|
-
hal_green_l_80: string;
|
|
49
|
-
hal_green_s_39: string;
|
|
50
|
-
hal_green_d_30: string;
|
|
51
|
-
hal_green_d_20: string;
|
|
52
|
-
hal_yellow_l_95: string;
|
|
53
|
-
hal_yellow_l_80: string;
|
|
54
|
-
hal_yellow_s_57: string;
|
|
55
|
-
hal_yellow_d_40: string;
|
|
56
|
-
hal_yellow_d_30: string;
|
|
57
|
-
hal_orange_s_54: string;
|
|
58
|
-
lightBlack: string;
|
|
59
|
-
yellow: string;
|
|
60
|
-
lightGrey: string;
|
|
61
|
-
lightRed: string;
|
|
62
|
-
lightBlue: string;
|
|
63
|
-
lightYellow: string;
|
|
64
|
-
lightPink: string;
|
|
65
|
-
lightGreen: string;
|
|
66
|
-
blue: string;
|
|
67
|
-
lighterGrey: string;
|
|
68
|
-
violet: string;
|
|
69
|
-
darkBlue: string;
|
|
70
|
-
purple: string;
|
|
71
|
-
mediumPurple: string;
|
|
72
|
-
lightPurple: string;
|
|
73
|
-
lighterPurple: string;
|
|
74
|
-
mediumWhite: string;
|
|
75
|
-
softBlue: string;
|
|
76
|
-
darkWhite: string;
|
|
77
|
-
lighterBlack: string;
|
|
78
|
-
mediumBlack: string;
|
|
79
|
-
mediumGreyBlack: string;
|
|
80
|
-
softGrey: string;
|
|
81
|
-
softBlack: string;
|
|
82
|
-
type_sans: string;
|
|
83
|
-
type_scale_root: string;
|
|
84
|
-
type_scale_08: string;
|
|
85
|
-
type_scale_07: string;
|
|
86
|
-
type_scale_06: string;
|
|
87
|
-
type_scale_05: string;
|
|
88
|
-
type_scale_04: string;
|
|
89
|
-
type_scale_03: string;
|
|
90
|
-
type_scale_02: string;
|
|
91
|
-
type_scale_01: string;
|
|
92
|
-
type_light: string;
|
|
93
|
-
type_regular: string;
|
|
94
|
-
type_semibold: string;
|
|
95
|
-
type_bold: string;
|
|
96
|
-
type_italic: string;
|
|
97
|
-
type_normal: string;
|
|
98
|
-
type_spacing_tight_02: string;
|
|
99
|
-
type_spacing_tight_01: string;
|
|
100
|
-
type_spacing_normal: string;
|
|
101
|
-
type_spacing_wide_01: string;
|
|
102
|
-
type_spacing_wide_02: string;
|
|
103
|
-
type_spacing_wide_03: string;
|
|
104
|
-
type_initial: string;
|
|
105
|
-
type_uppercase: string;
|
|
106
|
-
type_no_line: string;
|
|
107
|
-
type_underline: string;
|
|
108
|
-
type_line_through: string;
|
|
109
|
-
type_leading_compact_03: string;
|
|
110
|
-
type_leading_compact_02: string;
|
|
111
|
-
type_leading_compact_01: string;
|
|
112
|
-
type_leading_normal: string;
|
|
113
|
-
type_leading_loose_01: string;
|
|
114
|
-
type_leading_loose_02: string;
|
|
115
|
-
fontSize10: string;
|
|
116
|
-
spacing_00: string;
|
|
117
|
-
spacing_01: string;
|
|
118
|
-
spacing_02: string;
|
|
119
|
-
spacing_03: string;
|
|
120
|
-
spacing_04: string;
|
|
121
|
-
spacing_05: string;
|
|
122
|
-
spacing_06: string;
|
|
123
|
-
spacing_07: string;
|
|
124
|
-
spacing_08: string;
|
|
125
|
-
spacing_09: string;
|
|
126
|
-
spacing_10: string;
|
|
127
|
-
spacing_11: string;
|
|
128
|
-
spacing_12: string;
|
|
129
|
-
spacing_13: string;
|
|
130
|
-
spacing_14: string;
|
|
131
|
-
border_width_0: string;
|
|
132
|
-
border_width_1: string;
|
|
133
|
-
border_width_2: string;
|
|
134
|
-
border_width_4: string;
|
|
135
|
-
border_radius_none: string;
|
|
136
|
-
border_radius_small: string;
|
|
137
|
-
border_radius_medium: string;
|
|
138
|
-
border_radius_large: string;
|
|
139
|
-
border_radius_full: string;
|
|
140
|
-
border_solid: string;
|
|
141
|
-
border_dashed: string;
|
|
142
|
-
border_none: string;
|
|
143
|
-
};
|
|
144
1
|
export declare const componentTokens: {
|
|
145
2
|
accordion: {
|
|
146
3
|
backgroundColor: string;
|
|
@@ -642,7 +499,7 @@ export declare const componentTokens: {
|
|
|
642
499
|
underlineSpacing: string;
|
|
643
500
|
underlineStyle: string;
|
|
644
501
|
underlineThickness: string;
|
|
645
|
-
|
|
502
|
+
disabledFontColor: string;
|
|
646
503
|
hoverFontColor: string;
|
|
647
504
|
hoverUnderlineColor: string;
|
|
648
505
|
visitedFontColor: string;
|