@instructure/ui-tree-browser 11.7.3 → 11.7.4-pr-snapshot-1781695314229

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 (86) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/LICENSE.md +1 -0
  3. package/{lib/TreeBrowser/v1/TreeNode/props.js → babel.config.cjs} +12 -7
  4. package/es/TreeBrowser/v1/TreeButton/index.js +8 -5
  5. package/es/TreeBrowser/v1/TreeCollection/index.js +6 -6
  6. package/es/TreeBrowser/v1/TreeNode/index.js +8 -5
  7. package/es/TreeBrowser/v1/index.js +9 -9
  8. package/es/TreeBrowser/v2/TreeButton/index.js +7 -4
  9. package/es/TreeBrowser/v2/TreeCollection/index.js +5 -5
  10. package/es/TreeBrowser/v2/TreeNode/index.js +6 -4
  11. package/es/TreeBrowser/v2/index.js +8 -11
  12. package/es/exports/a.js +5 -4
  13. package/es/exports/b.js +5 -4
  14. package/package.json +13 -18
  15. package/src/TreeBrowser/v1/TreeButton/index.tsx +5 -4
  16. package/src/TreeBrowser/v1/TreeCollection/index.tsx +7 -6
  17. package/src/TreeBrowser/v1/TreeCollection/props.ts +1 -1
  18. package/src/TreeBrowser/v1/TreeNode/index.tsx +5 -4
  19. package/src/TreeBrowser/v1/TreeNode/props.ts +1 -1
  20. package/src/TreeBrowser/v1/index.tsx +8 -7
  21. package/src/TreeBrowser/v2/TreeButton/index.tsx +4 -3
  22. package/src/TreeBrowser/v2/TreeCollection/index.tsx +6 -5
  23. package/src/TreeBrowser/v2/TreeCollection/props.ts +1 -1
  24. package/src/TreeBrowser/v2/TreeNode/index.tsx +4 -3
  25. package/src/TreeBrowser/v2/TreeNode/props.ts +1 -1
  26. package/src/TreeBrowser/v2/index.tsx +7 -13
  27. package/src/exports/a.ts +4 -4
  28. package/src/exports/b.ts +4 -4
  29. package/tsconfig.build.tsbuildinfo +1 -1
  30. package/types/TreeBrowser/v1/TreeButton/index.d.ts +4 -3
  31. package/types/TreeBrowser/v1/TreeButton/index.d.ts.map +1 -1
  32. package/types/TreeBrowser/v1/TreeCollection/index.d.ts +5 -4
  33. package/types/TreeBrowser/v1/TreeCollection/index.d.ts.map +1 -1
  34. package/types/TreeBrowser/v1/TreeCollection/props.d.ts +1 -1
  35. package/types/TreeBrowser/v1/TreeCollection/props.d.ts.map +1 -1
  36. package/types/TreeBrowser/v1/TreeNode/index.d.ts +3 -2
  37. package/types/TreeBrowser/v1/TreeNode/index.d.ts.map +1 -1
  38. package/types/TreeBrowser/v1/TreeNode/props.d.ts +1 -1
  39. package/types/TreeBrowser/v1/TreeNode/props.d.ts.map +1 -1
  40. package/types/TreeBrowser/v1/index.d.ts +4 -3
  41. package/types/TreeBrowser/v1/index.d.ts.map +1 -1
  42. package/types/TreeBrowser/v2/TreeButton/index.d.ts +4 -3
  43. package/types/TreeBrowser/v2/TreeButton/index.d.ts.map +1 -1
  44. package/types/TreeBrowser/v2/TreeCollection/index.d.ts +5 -4
  45. package/types/TreeBrowser/v2/TreeCollection/index.d.ts.map +1 -1
  46. package/types/TreeBrowser/v2/TreeCollection/props.d.ts +1 -1
  47. package/types/TreeBrowser/v2/TreeCollection/props.d.ts.map +1 -1
  48. package/types/TreeBrowser/v2/TreeNode/index.d.ts +3 -2
  49. package/types/TreeBrowser/v2/TreeNode/index.d.ts.map +1 -1
  50. package/types/TreeBrowser/v2/TreeNode/props.d.ts +1 -1
  51. package/types/TreeBrowser/v2/TreeNode/props.d.ts.map +1 -1
  52. package/types/TreeBrowser/v2/index.d.ts +4 -4
  53. package/types/TreeBrowser/v2/index.d.ts.map +1 -1
  54. package/types/exports/a.d.ts +4 -4
  55. package/types/exports/a.d.ts.map +1 -1
  56. package/types/exports/b.d.ts +4 -4
  57. package/types/exports/b.d.ts.map +1 -1
  58. package/lib/TreeBrowser/v1/TreeBrowserContext.js +0 -44
  59. package/lib/TreeBrowser/v1/TreeButton/index.js +0 -169
  60. package/lib/TreeBrowser/v1/TreeButton/props.js +0 -31
  61. package/lib/TreeBrowser/v1/TreeButton/styles.js +0 -338
  62. package/lib/TreeBrowser/v1/TreeButton/theme.js +0 -86
  63. package/lib/TreeBrowser/v1/TreeCollection/index.js +0 -382
  64. package/lib/TreeBrowser/v1/TreeCollection/props.js +0 -31
  65. package/lib/TreeBrowser/v1/TreeCollection/styles.js +0 -140
  66. package/lib/TreeBrowser/v1/TreeCollection/theme.js +0 -55
  67. package/lib/TreeBrowser/v1/TreeNode/index.js +0 -122
  68. package/lib/TreeBrowser/v1/index.js +0 -329
  69. package/lib/TreeBrowser/v1/props.js +0 -40
  70. package/lib/TreeBrowser/v1/styles.js +0 -75
  71. package/lib/TreeBrowser/v1/theme.js +0 -51
  72. package/lib/TreeBrowser/v2/TreeBrowserContext.js +0 -44
  73. package/lib/TreeBrowser/v2/TreeButton/index.js +0 -219
  74. package/lib/TreeBrowser/v2/TreeButton/props.js +0 -31
  75. package/lib/TreeBrowser/v2/TreeButton/styles.js +0 -314
  76. package/lib/TreeBrowser/v2/TreeCollection/index.js +0 -383
  77. package/lib/TreeBrowser/v2/TreeCollection/props.js +0 -31
  78. package/lib/TreeBrowser/v2/TreeCollection/styles.js +0 -151
  79. package/lib/TreeBrowser/v2/TreeNode/index.js +0 -168
  80. package/lib/TreeBrowser/v2/TreeNode/props.js +0 -31
  81. package/lib/TreeBrowser/v2/index.js +0 -366
  82. package/lib/TreeBrowser/v2/props.js +0 -40
  83. package/lib/TreeBrowser/v2/styles.js +0 -77
  84. package/lib/exports/a.js +0 -33
  85. package/lib/exports/b.js +0 -33
  86. package/lib/package.json +0 -1
@@ -1,31 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.allowedProps = void 0;
7
- /*
8
- * The MIT License (MIT)
9
- *
10
- * Copyright (c) 2015 - present Instructure, Inc.
11
- *
12
- * Permission is hereby granted, free of charge, to any person obtaining a copy
13
- * of this software and associated documentation files (the "Software"), to deal
14
- * in the Software without restriction, including without limitation the rights
15
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
- * copies of the Software, and to permit persons to whom the Software is
17
- * furnished to do so, subject to the following conditions:
18
- *
19
- * The above copyright notice and this permission notice shall be included in all
20
- * copies or substantial portions of the Software.
21
- *
22
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
- * SOFTWARE.
29
- */
30
-
31
- const allowedProps = exports.allowedProps = ['id', 'name', 'descriptor', 'type', 'size', 'variant', 'collectionIcon', 'collectionIconExpanded', 'itemIcon', 'thumbnail', 'onClick', 'expanded', 'selected', 'focused', 'level', 'containerRef', 'renderContent'];
@@ -1,338 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _emotion = require("@instructure/emotion");
8
- /*
9
- * The MIT License (MIT)
10
- *
11
- * Copyright (c) 2015 - present Instructure, Inc.
12
- *
13
- * Permission is hereby granted, free of charge, to any person obtaining a copy
14
- * of this software and associated documentation files (the "Software"), to deal
15
- * in the Software without restriction, including without limitation the rights
16
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
17
- * copies of the Software, and to permit persons to whom the Software is
18
- * furnished to do so, subject to the following conditions:
19
- *
20
- * The above copyright notice and this permission notice shall be included in all
21
- * copies or substantial portions of the Software.
22
- *
23
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
26
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
28
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
29
- * SOFTWARE.
30
- */
31
-
32
- const transform = (0, _emotion.keyframes)`
33
- 50% {
34
- opacity: 0.5;
35
- transform: translate3d(2%, 0, 0);
36
- }
37
-
38
- 100% {
39
- opacity: 1;
40
- transform: translate3d(0, 0, 0);
41
- }`;
42
- /**
43
- *
44
- * ---
45
- * private: true
46
- * ---
47
- * Generates the style object from the theme and provided additional information
48
- * @param {Object} componentTheme The theme variable object.
49
- * @param {Object} props the props of the component, the style is applied to
50
- * @param {Object} state the state of the component, the style is applied to
51
- * @return {Object} The final style object, which will be used in the component
52
- */
53
- const generateStyles = (componentTheme, props, state) => {
54
- const {
55
- size,
56
- variant,
57
- selected,
58
- focused,
59
- level
60
- } = props;
61
- const isRootButton = level && level === 1;
62
- const sizeMap = {
63
- small: {
64
- folderTree: {
65
- before: {
66
- width: `calc(${componentTheme.baseSpacingSmall} - 0.0625rem)`
67
- },
68
- icon: {
69
- fontSize: `calc(${componentTheme.baseSpacingSmall} * 2)`,
70
- marginInlineEnd: componentTheme.baseSpacingSmall,
71
- marginInlineStart: '0'
72
- },
73
- thumbnail: {
74
- height: `calc(${componentTheme.baseSpacingSmall} * 2)`,
75
- width: `calc(${componentTheme.baseSpacingSmall}* 2)`,
76
- marginInlineEnd: componentTheme.baseSpacingSmall,
77
- marginInlineStart: '0'
78
- }
79
- },
80
- indent: {
81
- icon: {
82
- fontSize: `calc(${componentTheme.baseSpacingSmall} * 2)`,
83
- marginInlineEnd: `calc(${componentTheme.baseSpacingSmall} / 2)`,
84
- marginInlineStart: '0'
85
- },
86
- thumbnail: {
87
- height: `calc(${componentTheme.baseSpacingSmall} * 2)`,
88
- width: `calc(${componentTheme.baseSpacingSmall} * 2)`,
89
- marginInlineEnd: `calc(${componentTheme.baseSpacingSmall} / 2)`,
90
- marginInlineStart: '0'
91
- }
92
- },
93
- textName: {
94
- fontSize: componentTheme.nameFontSizeSmall
95
- },
96
- textDescriptor: {
97
- fontSize: componentTheme.descriptorFontSizeSmall
98
- }
99
- },
100
- medium: {
101
- folderTree: {
102
- before: {
103
- width: `calc(${componentTheme.baseSpacingMedium} - 0.0625rem)`
104
- },
105
- icon: {
106
- fontSize: `calc(${componentTheme.baseSpacingMedium} * 2)`,
107
- marginInlineEnd: componentTheme.baseSpacingMedium,
108
- marginInlineStart: '0'
109
- },
110
- thumbnail: {
111
- height: `calc(${componentTheme.baseSpacingMedium} * 2)`,
112
- width: `calc(${componentTheme.baseSpacingMedium} * 2)`,
113
- marginInlineEnd: componentTheme.baseSpacingMedium,
114
- marginInlineStart: '0'
115
- }
116
- },
117
- indent: {
118
- icon: {
119
- fontSize: `calc(${componentTheme.baseSpacingMedium} * 2)`,
120
- marginInlineEnd: `calc(${componentTheme.baseSpacingMedium} / 2)`,
121
- marginInlineStart: '0'
122
- },
123
- thumbnail: {
124
- height: `calc(${componentTheme.baseSpacingMedium} * 2)`,
125
- width: `calc(${componentTheme.baseSpacingMedium} * 2)`,
126
- marginInlineEnd: `calc(${componentTheme.baseSpacingMedium} / 2)`,
127
- marginInlineStart: '0'
128
- }
129
- },
130
- textName: {
131
- fontSize: componentTheme.nameFontSizeMedium
132
- },
133
- textDescriptor: {
134
- fontSize: componentTheme.descriptorFontSizeMedium
135
- }
136
- },
137
- large: {
138
- folderTree: {
139
- before: {
140
- width: `calc(${componentTheme.baseSpacingLarge} - 0.0625rem)`
141
- },
142
- icon: {
143
- fontSize: `calc(${componentTheme.baseSpacingLarge} * 2)`,
144
- marginInlineEnd: componentTheme.baseSpacingLarge,
145
- marginInlineStart: '0'
146
- },
147
- thumbnail: {
148
- height: `calc(${componentTheme.baseSpacingLarge} * 2)`,
149
- width: `calc(${componentTheme.baseSpacingLarge} * 2)`,
150
- marginInlineEnd: componentTheme.baseSpacingLarge,
151
- marginInlineStart: '0'
152
- }
153
- },
154
- indent: {
155
- icon: {
156
- fontSize: `calc(${componentTheme.baseSpacingLarge} * 2)`,
157
- marginInlineEnd: `calc(${componentTheme.baseSpacingLarge} / 2)`,
158
- marginInlineStart: '0'
159
- },
160
- thumbnail: {
161
- height: `calc(${componentTheme.baseSpacingLarge} * 2)`,
162
- width: `calc(${componentTheme.baseSpacingLarge}* 2)`,
163
- marginInlineEnd: `calc(${componentTheme.baseSpacingLarge} / 2)`,
164
- marginInlineStart: '0'
165
- }
166
- },
167
- textName: {
168
- fontSize: componentTheme.nameFontSizeLarge
169
- },
170
- textDescriptor: {
171
- fontSize: componentTheme.descriptorFontSizeLarge
172
- }
173
- }
174
- };
175
- const textStyle = {
176
- minWidth: '0.0625rem',
177
- lineHeight: componentTheme.textLineHeight,
178
- flex: 1
179
- };
180
- const textNameStyle = {
181
- display: 'block',
182
- overflow: 'hidden',
183
- whiteSpace: 'nowrap',
184
- textOverflow: 'ellipsis',
185
- ...sizeMap[size].textName
186
- };
187
- const layoutPadding = {
188
- small: {
189
- folderTree: {
190
- padding: `calc(${componentTheme.baseSpacingSmall} / 3) ${componentTheme.baseSpacingSmall}`
191
- },
192
- indent: {
193
- padding: `calc(${componentTheme.baseSpacingSmall} / 3) calc(${componentTheme.baseSpacingSmall} / 2)`
194
- }
195
- },
196
- medium: {
197
- folderTree: {
198
- padding: `calc(${componentTheme.baseSpacingMedium} / 3) ${componentTheme.baseSpacingMedium}`
199
- },
200
- indent: {
201
- padding: `calc(${componentTheme.baseSpacingMedium} / 3) calc(${componentTheme.baseSpacingMedium} / 2)`
202
- }
203
- },
204
- large: {
205
- folderTree: {
206
- padding: `calc(${componentTheme.baseSpacingLarge} / 3) ${componentTheme.baseSpacingLarge}`
207
- },
208
- indent: {
209
- padding: `calc(${componentTheme.baseSpacingLarge} / 3) calc(${componentTheme.baseSpacingLarge} / 2)`
210
- }
211
- }
212
- };
213
- return {
214
- treeButton: {
215
- label: 'treeButton',
216
- boxSizing: 'border-box',
217
- display: 'block',
218
- width: '100%',
219
- margin: '0',
220
- backgroundColor: 'transparent',
221
- textAlign: 'start',
222
- fontFamily: 'inherit',
223
- userSelect: 'none',
224
- cursor: 'pointer',
225
- border: 'none',
226
- borderRadius: componentTheme.borderRadius,
227
- position: 'relative',
228
- zIndex: 1,
229
- ...(state.animation ? {
230
- transform: 'translate3d(-2%, 0, 0)',
231
- opacity: 0.01,
232
- transformOrigin: 'left center',
233
- animationName: transform,
234
- animationDuration: '0.2s',
235
- animationFillMode: 'forwards',
236
- animationTimingFunction: 'ease-out',
237
- animationDelay: '0.2s'
238
- } : {}),
239
- outline: '0',
240
- padding: '0',
241
- ...(variant === 'folderTree' && !isRootButton && {
242
- '&::before': {
243
- content: '""',
244
- height: componentTheme.borderWidth,
245
- background: componentTheme.borderColor,
246
- position: 'absolute',
247
- insetInlineStart: '0',
248
- insetInlineEnd: 'auto',
249
- top: '50%',
250
- ...(selected && {
251
- visibility: 'hidden'
252
- }),
253
- ...sizeMap[size][variant].before
254
- },
255
- '&:hover::before': {
256
- visibility: 'hidden'
257
- }
258
- }),
259
- '&::after': {
260
- content: '""',
261
- pointerEvents: 'none',
262
- boxSizing: 'border-box',
263
- display: 'block',
264
- position: 'absolute',
265
- top: '-0.25rem',
266
- bottom: '-0.25rem',
267
- left: '-0.25rem',
268
- right: '-0.25rem',
269
- border: `${componentTheme.focusOutlineWidth} ${componentTheme.focusOutlineStyle} ${componentTheme.focusOutlineColor}`,
270
- borderRadius: `calc(${componentTheme.borderRadius} * 1.5)`,
271
- transition: 'all 0.2s',
272
- opacity: 0,
273
- transform: 'scale(0.95)',
274
- ...(focused && {
275
- opacity: 1,
276
- transform: 'scale(1)'
277
- })
278
- },
279
- '&:hover': {
280
- backgroundColor: selected ? componentTheme.selectedBackgroundColor : componentTheme.hoverBackgroundColor,
281
- '[class$=-treeButton__textName], [class$=-treeButton__textDescriptor], [class$=-treeButton__icon], [class$=-treeButton__node]': {
282
- color: componentTheme.hoverTextColor
283
- }
284
- },
285
- ...(selected && {
286
- backgroundColor: componentTheme.selectedBackgroundColor
287
- })
288
- },
289
- layout: {
290
- label: 'treeButton__layout',
291
- display: 'flex',
292
- alignItems: 'center',
293
- lineHeight: 1,
294
- minHeight: '2rem',
295
- ...layoutPadding[size][variant]
296
- },
297
- text: {
298
- label: 'treeButton__text',
299
- ...textStyle
300
- },
301
- textName: {
302
- label: 'treeButton__textName',
303
- ...textNameStyle,
304
- color: selected ? componentTheme.selectedTextColor : componentTheme.nameTextColor
305
- },
306
- textDescriptor: {
307
- label: 'treeButton__textDescriptor',
308
- display: 'block',
309
- overflow: 'hidden',
310
- whiteSpace: 'nowrap',
311
- textOverflow: 'ellipsis',
312
- marginTop: componentTheme.descriptorMarginTop,
313
- color: selected ? componentTheme.selectedTextColor : componentTheme.descriptorTextColor,
314
- ...sizeMap[size].textDescriptor
315
- },
316
- icon: {
317
- label: 'treeButton__icon',
318
- minWidth: '0.0625rem',
319
- position: 'relative',
320
- zIndex: 1,
321
- color: selected ? componentTheme.selectedTextColor : componentTheme.iconColor,
322
- display: 'flex',
323
- alignItems: 'center',
324
- justifyContent: 'center',
325
- ...sizeMap[size][variant].icon
326
- },
327
- thumbnail: {
328
- label: 'treeButton__thumbnail',
329
- ...sizeMap[size][variant].thumbnail
330
- },
331
- node: {
332
- label: 'treeButton__node',
333
- ...textStyle,
334
- ...textNameStyle
335
- }
336
- };
337
- };
338
- var _default = exports.default = generateStyles;
@@ -1,86 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- /*
8
- * The MIT License (MIT)
9
- *
10
- * Copyright (c) 2015 - present Instructure, Inc.
11
- *
12
- * Permission is hereby granted, free of charge, to any person obtaining a copy
13
- * of this software and associated documentation files (the "Software"), to deal
14
- * in the Software without restriction, including without limitation the rights
15
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
- * copies of the Software, and to permit persons to whom the Software is
17
- * furnished to do so, subject to the following conditions:
18
- *
19
- * The above copyright notice and this permission notice shall be included in all
20
- * copies or substantial portions of the Software.
21
- *
22
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
- * SOFTWARE.
29
- */
30
-
31
- /**
32
- * Generates the theme object for the component from the theme and provided additional information
33
- * @param {Object} theme The actual theme object.
34
- * @return {Object} The final theme object with the overrides and component variables
35
- */
36
- const generateComponentTheme = theme => {
37
- const {
38
- colors,
39
- borders,
40
- typography,
41
- key: themeName,
42
- spacing
43
- } = theme;
44
- const themeSpecificStyles = {
45
- canvas: {
46
- iconColor: theme['ic-brand-font-color-dark'],
47
- hoverBackgroundColor: theme['ic-brand-primary'],
48
- focusOutlineColor: theme['ic-brand-primary'],
49
- nameTextColor: theme['ic-brand-primary'],
50
- descriptorTextColor: theme['ic-brand-font-color-dark']
51
- }
52
- };
53
- const componentVariables = {
54
- hoverBackgroundColor: colors?.contrasts?.blue4570,
55
- hoverTextColor: colors?.contrasts?.white1010,
56
- focusOutlineWidth: borders?.widthMedium,
57
- focusOutlineColor: colors?.contrasts?.blue4570,
58
- focusOutlineStyle: borders?.style,
59
- iconColor: colors?.contrasts?.grey125125,
60
- iconsMarginRight: spacing?.xSmall,
61
- descriptorMarginTop: spacing?.xxxSmall,
62
- descriptorTextColor: colors?.contrasts?.grey125125,
63
- descriptorFontSizeSmall: typography?.fontSizeXSmall,
64
- descriptorFontSizeMedium: typography?.fontSizeXSmall,
65
- descriptorFontSizeLarge: typography?.fontSizeSmall,
66
- nameTextColor: colors?.contrasts?.blue4570,
67
- nameFontSizeSmall: typography?.fontSizeXSmall,
68
- nameFontSizeMedium: typography?.fontSizeSmall,
69
- nameFontSizeLarge: typography?.fontSizeMedium,
70
- baseSpacingSmall: spacing?.xSmall,
71
- baseSpacingMedium: spacing?.small,
72
- baseSpacingLarge: '1rem',
73
- borderWidth: borders?.widthSmall,
74
- borderRadius: borders?.radiusMedium,
75
- borderColor: colors?.contrasts?.grey4570,
76
- textLineHeight: typography?.lineHeightCondensed,
77
- selectedTextColor: colors?.contrasts?.white1010,
78
- selectedBackgroundColor: colors?.contrasts?.grey4570,
79
- selectedOutlineWidth: borders?.widthLarge
80
- };
81
- return {
82
- ...componentVariables,
83
- ...themeSpecificStyles[themeName]
84
- };
85
- };
86
- var _default = exports.default = generateComponentTheme;