@indico-data/design-system 3.4.0 → 3.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/lib/components/icons/types.d.ts +1 -1
  2. package/lib/docs/BaseColorPalette/BaseColorPalette.d.ts +1 -0
  3. package/lib/docs/BaseColorPalette/BaseColorsPalette.stories.d.ts +6 -0
  4. package/lib/docs/SemanticTokens/ColorSwatch.d.ts +6 -0
  5. package/lib/docs/SemanticTokens/SemanticTokens.stories.d.ts +9 -0
  6. package/lib/index.css +6682 -3683
  7. package/lib/index.d.ts +1 -1
  8. package/lib/index.esm.css +6682 -3683
  9. package/lib/index.esm.js +2 -2
  10. package/lib/index.esm.js.map +1 -1
  11. package/lib/index.js +2 -2
  12. package/lib/index.js.map +1 -1
  13. package/package.json +1 -1
  14. package/src/components/badge/styles/Badge.scss +10 -10
  15. package/src/components/button/styles/Button.scss +7 -7
  16. package/src/components/button/styles/_variables.scss +5 -5
  17. package/src/components/card/styles/Card.scss +11 -13
  18. package/src/components/floatUI/styles/FloatUI.scss +3 -3
  19. package/src/components/forms/checkbox/styles/Checkbox.scss +11 -23
  20. package/src/components/forms/date/datePicker/styles/DatePicker.scss +25 -25
  21. package/src/components/forms/form/styles/Form.scss +19 -53
  22. package/src/components/forms/input/styles/Input.scss +10 -10
  23. package/src/components/forms/numberInput/styles/NumberInput.scss +13 -18
  24. package/src/components/forms/passwordInput/styles/PasswordInput.scss +12 -12
  25. package/src/components/forms/radio/styles/Radio.scss +8 -22
  26. package/src/components/forms/select/styles/Select.scss +38 -54
  27. package/src/components/forms/textarea/styles/Textarea.scss +11 -11
  28. package/src/components/forms/toggle/styles/Toggle.scss +14 -31
  29. package/src/components/icons/Icon.mdx +1 -1
  30. package/src/components/icons/Icon.stories.tsx +10 -9
  31. package/src/components/icons/styles/Icon.scss +2 -0
  32. package/src/components/icons/types.ts +1 -1
  33. package/src/components/menu/styles/Menu.scss +9 -9
  34. package/src/components/modal/styles/Modal.scss +23 -56
  35. package/src/components/pagination/styles/Pagination.scss +1 -1
  36. package/src/components/pill/styles/Pill.scss +8 -6
  37. package/src/components/skeleton/styles/Skeleton.scss +3 -3
  38. package/src/components/stepper/examples/constants.ts +2 -2
  39. package/src/components/stepper/styles/Stepper.scss +25 -71
  40. package/src/components/table/styles/Table.scss +8 -8
  41. package/src/components/tanstackTable/components/ActionBar/ActionBar.scss +3 -3
  42. package/src/components/tanstackTable/components/NoResults/NoResults.scss +3 -3
  43. package/src/components/tanstackTable/styles/table.scss +39 -40
  44. package/src/components/toast/styles/Toast.scss +20 -36
  45. package/src/components/tooltip/Tooltip.tsx +2 -2
  46. package/src/docs/BaseColorPalette/BaseColorPalette.mdx +35 -0
  47. package/src/docs/BaseColorPalette/BaseColorPalette.tsx +51 -0
  48. package/src/docs/BaseColorPalette/BaseColorsPalette.stories.tsx +13 -0
  49. package/src/{stylesAndAnimations/colors → docs/BaseColorPalette}/Swatch.tsx +32 -3
  50. package/src/docs/Primitives.mdx +110 -0
  51. package/src/docs/SemanticTokens/ColorSwatch.tsx +22 -0
  52. package/src/docs/SemanticTokens/SemanticTokens.mdx +53 -0
  53. package/src/docs/SemanticTokens/SemanticTokens.stories.tsx +152 -0
  54. package/src/styles/_borders.scss +16 -19
  55. package/src/styles/_colors.scss +16 -6
  56. package/src/styles/_spacing-utilities.scss +185 -0
  57. package/src/styles/_typography.scss +4 -4
  58. package/src/styles/globals.scss +7 -77
  59. package/src/styles/index.scss +5 -5
  60. package/src/styles/primitives/_borders.scss +27 -0
  61. package/src/styles/primitives/_breakpoints.scss +9 -0
  62. package/src/styles/{variables → primitives}/_colors.scss +26 -52
  63. package/src/styles/primitives/_iconSizes.scss +10 -0
  64. package/src/styles/primitives/_shadows.scss +9 -0
  65. package/src/styles/primitives/_spacing.scss +68 -0
  66. package/src/styles/primitives/_typography.scss +28 -0
  67. package/src/styles/primitives/index.scss +7 -0
  68. package/src/styles/storybook.scss +9 -9
  69. package/src/styles/tokens/_semantic-tokens.scss +172 -0
  70. package/src/styles/variables/index.scss +0 -7
  71. package/src/stylesAndAnimations/borders/BorderColor.tsx +0 -4
  72. package/src/stylesAndAnimations/sizing/Sizing.mdx +4 -1
  73. package/src/stylesAndAnimations/utilityClasses/UtilityClassesData.ts +2 -1
  74. package/lib/stylesAndAnimations/colors/Colors.d.ts +0 -1
  75. package/lib/stylesAndAnimations/colors/Colors.stories.d.ts +0 -6
  76. package/lib/stylesAndAnimations/colors/constants.d.ts +0 -34
  77. package/lib/stylesAndAnimations/colors/index.d.ts +0 -1
  78. package/src/components/tooltip/styles/Tooltip.scss +0 -12
  79. package/src/styles/_gap.scss +0 -18
  80. package/src/styles/_margin.scss +0 -41
  81. package/src/styles/_padding.scss +0 -30
  82. package/src/styles/_sheets.scss +0 -7
  83. package/src/styles/variables/_borders.scss +0 -46
  84. package/src/styles/variables/_gap.scss +0 -19
  85. package/src/styles/variables/_icons.scss +0 -7
  86. package/src/styles/variables/_margin.scss +0 -37
  87. package/src/styles/variables/_padding.scss +0 -19
  88. package/src/styles/variables/_size.scss +0 -19
  89. package/src/stylesAndAnimations/colors/BaseColorPalette.mdx +0 -56
  90. package/src/stylesAndAnimations/colors/Colors.stories.tsx +0 -13
  91. package/src/stylesAndAnimations/colors/Colors.tsx +0 -64
  92. package/src/stylesAndAnimations/colors/constants.ts +0 -280
  93. package/src/stylesAndAnimations/colors/index.ts +0 -1
  94. /package/lib/{stylesAndAnimations/colors → docs/BaseColorPalette}/Swatch.d.ts +0 -0
  95. /package/src/{stylesAndAnimations/colors → docs/BaseColorPalette}/swatches.scss +0 -0
@@ -1,64 +0,0 @@
1
- import React from 'react';
2
- import { Container, Row, Col } from 'react-grid-system';
3
- import { colorList, themeColors, utilityColorList } from './constants';
4
- import { Swatch } from './Swatch';
5
-
6
- export const Colors = () => {
7
- return (
8
- <Container>
9
- <Row>
10
- {colorList.map((color) => {
11
- const colorData = themeColors[color];
12
- if (!colorData || !('base' in colorData)) return null;
13
-
14
- const colorShades = Object.keys(colorData)
15
- .map(Number)
16
- .sort((a, b) => a - b);
17
-
18
- return (
19
- <Col sm={6} key={color}>
20
- <h1 className="text-capitalize my-5">{color}</h1>
21
-
22
- <div className="my-3">
23
- <Swatch key="base" color={color} colorValue={colorData.base || colorData['500']} />
24
- </div>
25
-
26
- {colorShades.map((shade) => {
27
- const colorValue = colorData[shade.toString() as keyof typeof colorData];
28
- if (!colorValue) return null;
29
- return <Swatch key={shade} color={color} shade={shade} colorValue={colorValue} />;
30
- })}
31
- </Col>
32
- );
33
- })}
34
- </Row>
35
- <Row>
36
- <Col sm={6} key="utility">
37
- <h1 className="text-capitalize my-5">Light Mode Utility Colors</h1>
38
- {utilityColorList.map((color) => {
39
- return (
40
- <Swatch
41
- key={'light-' + color}
42
- color={color}
43
- colorValue={themeColors.utilityLight[color]}
44
- />
45
- );
46
- })}
47
- </Col>
48
-
49
- <Col sm={6} key="utility">
50
- <h1 className="text-capitalize my-5">Dark Mode Utility Colors</h1>
51
- {utilityColorList.map((color) => {
52
- return (
53
- <Swatch
54
- key={'dark-' + color}
55
- color={color}
56
- colorValue={themeColors.utilityDark[color]}
57
- />
58
- );
59
- })}
60
- </Col>
61
- </Row>
62
- </Container>
63
- );
64
- };
@@ -1,280 +0,0 @@
1
- // Type definitions for color palettes
2
- interface ColorPalette {
3
- base: string;
4
- 50: string;
5
- 100: string;
6
- 150: string;
7
- 200: string;
8
- 250: string;
9
- 300: string;
10
- 400: string;
11
- 450: string;
12
- 500: string;
13
- 550?: string; // Optional since not all colors have this shade
14
- 600: string;
15
- 700: string;
16
- 800: string;
17
- 900: string;
18
- }
19
-
20
- interface UtilityColors {
21
- success: string;
22
- info: string;
23
- neutral: string;
24
- warning: string;
25
- error: string;
26
- brand: string;
27
- }
28
-
29
- interface ThemeColors {
30
- [key: string]: ColorPalette | UtilityColors;
31
- utilityDark: UtilityColors;
32
- utilityLight: UtilityColors;
33
- }
34
-
35
- export const colorList = [
36
- 'primary',
37
- 'secondary',
38
- 'tertiary',
39
- 'blue',
40
- 'gray',
41
- 'green',
42
- 'orange',
43
- 'pink',
44
- 'purple',
45
- 'red',
46
- 'teal',
47
- 'yellow',
48
- ] as const;
49
-
50
- export const utilityColorList = [
51
- 'success',
52
- 'info',
53
- 'neutral',
54
- 'warning',
55
- 'error',
56
- 'brand',
57
- ] as const;
58
-
59
- export const themeColors: ThemeColors = {
60
- blue: {
61
- base: '#2989ff',
62
- 50: '#f6fafd',
63
- 100: '#eef4fc',
64
- 150: '#e5effa',
65
- 200: '#d8e9fd',
66
- 250: '#bbd8fb',
67
- 300: '#9ec7fa',
68
- 400: '#2989ff',
69
- 450: '#0070f5',
70
- 500: '#005ccc',
71
- 550: '#0054b8',
72
- 600: '#004599',
73
- 700: '#06356f',
74
- 800: '#082345',
75
- 900: '#061323',
76
- },
77
- gray: {
78
- base: '#808080',
79
- 50: '#ffffff',
80
- 100: '#f7f7f7',
81
- 150: '#f2f2f2',
82
- 200: '#e6e6e6',
83
- 250: '#d9d9d9',
84
- 300: '#cccccc',
85
- 400: '#b2b2b2',
86
- 450: '#949494',
87
- 500: '#808080',
88
- 550: '#666666',
89
- 600: '#606060',
90
- 700: '#4d4d4d',
91
- 800: '#333333',
92
- 900: '#000000',
93
- },
94
- green: {
95
- base: '#14b869',
96
- 50: '#f7fdfa',
97
- 100: '#effbf5',
98
- 150: '#e7f9f0',
99
- 200: '#def7eb',
100
- 250: '#c2f4dc',
101
- 300: '#a8f0cd',
102
- 400: '#3eea97',
103
- 450: '#18dc7e',
104
- 500: '#14b869',
105
- 550: '#129e45',
106
- 600: '#17824e',
107
- 700: '#175e3c',
108
- 800: '#173627',
109
- 900: '#0e1b15',
110
- },
111
- orange: {
112
- base: '#994733',
113
- 50: '#fffbfa',
114
- 100: '#faf2f0',
115
- 150: '#f7ebe8',
116
- 200: '#f7e3de',
117
- 250: '#f4ccc2',
118
- 300: '#f5b4a3',
119
- 400: '#ea603e',
120
- 450: '#c44e31',
121
- 500: '#994733',
122
- 550: '#863f2a',
123
- 600: '#6b3a2e',
124
- 700: '#522d23',
125
- 800: '#321f1b',
126
- 900: '#1b110e',
127
- },
128
- pink: {
129
- base: '#a3292d',
130
- 50: '#fbf8f9',
131
- 100: '#f8f2f4',
132
- 150: '#f4ebee',
133
- 200: '#f1e4e9',
134
- 250: '#eacdd7',
135
- 300: '#ebadc3',
136
- 400: '#e6417b',
137
- 450: '#c3285e',
138
- 500: '#a32954',
139
- 550: '#922149',
140
- 600: '#6b2e43',
141
- 700: '#4c2935',
142
- 800: '#321b23',
143
- 900: '#1b0e13',
144
- },
145
- primary: {
146
- base: '#50647c',
147
- 50: '#f9fafb',
148
- 100: '#f3f5f7',
149
- 150: '#eceff3',
150
- 200: '#e6eaef',
151
- 250: '#d3dbe3',
152
- 300: '#c1cbd7',
153
- 400: '#7c92ab',
154
- 450: '#5f7895',
155
- 500: '#50647c',
156
- 600: '#243447',
157
- 700: '#192534',
158
- 800: '#111b28',
159
- 900: '#0c141d',
160
- },
161
- purple: {
162
- base: '#5c29a3',
163
- 50: '#f9f6fc',
164
- 100: '#f4f0fa',
165
- 150: '#eee8f7',
166
- 200: '#e9def7',
167
- 250: '#d8c6f1',
168
- 300: '#c7adeb',
169
- 400: '#8849df',
170
- 450: '#6e31c4',
171
- 500: '#5c29a3',
172
- 550: '#4e218f',
173
- 600: '#451f7a',
174
- 700: '#361d58',
175
- 800: '#241736',
176
- 900: '#130e1b',
177
- },
178
- red: {
179
- base: '#a3292d',
180
- 50: '#fdf6f8',
181
- 100: '#fceeee',
182
- 150: '#fae5e6',
183
- 200: '#f9dcdd',
184
- 250: '#f6acaf',
185
- 300: '#f28c90',
186
- 400: '#ea3e44',
187
- 450: '#d0252a',
188
- 500: '#a3292d',
189
- 550: '#8f2428',
190
- 600: '#732629',
191
- 700: '#522325',
192
- 800: '#321b1c',
193
- 900: '#181011',
194
- },
195
- secondary: {
196
- base: '#1474b8',
197
- 50: '#f8fafc',
198
- 100: '#f1f5f9',
199
- 150: '#e8f1f7',
200
- 200: '#deedf7',
201
- 250: '#c6dff1',
202
- 300: '#add1eb',
203
- 400: '#3ea2ea',
204
- 450: '#188bdc',
205
- 500: '#1474b8',
206
- 550: '#1268a5',
207
- 600: '#0f578a',
208
- 700: '#1d4058',
209
- 800: '#132939',
210
- 900: '#0e151b',
211
- },
212
- teal: {
213
- base: '#29a3a3',
214
- 50: '#f6fdfd',
215
- 100: '#eefcfc',
216
- 150: '#e5fafa',
217
- 200: '#dcf9f9',
218
- 250: '#bff8f8',
219
- 300: '#a3f5f5',
220
- 400: '#4edada',
221
- 450: '#25d0d0',
222
- 500: '#29a3a3',
223
- 550: '#267373',
224
- 600: '#1c5656',
225
- 700: '#235252',
226
- 800: '#1b3232',
227
- 900: '#101818',
228
- },
229
- tertiary: {
230
- base: '#6a7798',
231
- 50: '#f8fafb',
232
- 100: '#f4f7f9',
233
- 150: '#ebf0f4',
234
- 200: '#dae3eb',
235
- 250: '#c3d2de',
236
- 300: '#aabbcf',
237
- 400: '#94a5c0',
238
- 450: '#8593b3',
239
- 500: '#6a7798',
240
- 550: '#5f6a85',
241
- 600: '#58637b',
242
- 700: '#4b5364',
243
- 800: '#2c303a',
244
- 900: '#111317',
245
- },
246
- yellow: {
247
- base: '#ad871f',
248
- 50: '#fdfbf7',
249
- 100: '#fcf8ee',
250
- 150: '#faf5e5',
251
- 200: '#f9f1dc',
252
- 250: '#f4e7c2',
253
- 300: '#f0dda8',
254
- 400: '#eabc3e',
255
- 450: '#dca818',
256
- 500: '#ad871f',
257
- 550: '#976f00',
258
- 600: '#826517',
259
- 700: '#58481d',
260
- 800: '#322c1b',
261
- 900: '#1b160e',
262
- },
263
- utilityDark: {
264
- success: '#15b77d',
265
- info: '#198bdc',
266
- neutral: '#dcdcdc',
267
- warning: '#f29c22',
268
- error: '#ce6068',
269
- brand: '#0070f5',
270
- },
271
- // light mode utility colors
272
- utilityLight: {
273
- success: '#14b869',
274
- info: '#1474b8',
275
- neutral: '#b2b2b2',
276
- warning: '#ad791f',
277
- error: '#a3292d',
278
- brand: '#2960a3',
279
- },
280
- };
@@ -1 +0,0 @@
1
- export { Colors } from './Colors';