@dt-dds/react-select 1.0.0-beta.47 → 1.0.0-beta.49
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/CHANGELOG.md +39 -0
- package/dist/index.js +14 -14
- package/dist/index.mjs +14 -14
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,44 @@
|
|
|
1
1
|
# @dt-ui/react-select
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.49
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- refactor(themes): consolidate theme structure
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @dt-dds/react-checkbox@1.0.0-beta.43
|
|
10
|
+
- @dt-dds/react-core@1.0.0-beta.44
|
|
11
|
+
- @dt-dds/react-icon@1.0.0-beta.45
|
|
12
|
+
- @dt-dds/react-icon-button@1.0.0-beta.12
|
|
13
|
+
- @dt-dds/react-label-field@1.0.0-beta.40
|
|
14
|
+
- @dt-dds/react-tooltip@1.0.0-beta.52
|
|
15
|
+
- @dt-dds/react-typography@1.0.0-beta.35
|
|
16
|
+
- @dt-dds/themes@1.0.0-beta.4
|
|
17
|
+
|
|
18
|
+
## 1.0.0-beta.48
|
|
19
|
+
|
|
20
|
+
### Minor Changes
|
|
21
|
+
|
|
22
|
+
- feat: add components generator
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- chore: fix test coverage configuration
|
|
27
|
+
- chore: increase themes test coverage
|
|
28
|
+
- chore: fix sonarqube issues
|
|
29
|
+
- Updated dependencies
|
|
30
|
+
- Updated dependencies
|
|
31
|
+
- Updated dependencies
|
|
32
|
+
- Updated dependencies
|
|
33
|
+
- @dt-dds/react-checkbox@1.0.0-beta.42
|
|
34
|
+
- @dt-dds/react-core@1.0.0-beta.43
|
|
35
|
+
- @dt-dds/react-icon@1.0.0-beta.44
|
|
36
|
+
- @dt-dds/react-icon-button@1.0.0-beta.11
|
|
37
|
+
- @dt-dds/react-label-field@1.0.0-beta.39
|
|
38
|
+
- @dt-dds/react-tooltip@1.0.0-beta.51
|
|
39
|
+
- @dt-dds/react-typography@1.0.0-beta.34
|
|
40
|
+
- @dt-dds/themes@1.0.0-beta.3
|
|
41
|
+
|
|
3
42
|
## 1.0.0-beta.47
|
|
4
43
|
|
|
5
44
|
### Minor Changes
|
package/dist/index.js
CHANGED
|
@@ -115,15 +115,15 @@ var SelectOptionStyled = import_styled.default.li`
|
|
|
115
115
|
${({ theme, isMulti, isHighlighted }) => `
|
|
116
116
|
cursor:pointer;
|
|
117
117
|
align-items: center;
|
|
118
|
-
${!isMulti && `padding: ${theme.spacing
|
|
119
|
-
gap: ${isMulti ? theme.spacing
|
|
118
|
+
${!isMulti && `padding: ${theme.spacing.spacing_30} ${theme.spacing.spacing_50}`};
|
|
119
|
+
gap: ${isMulti ? theme.spacing.spacing_30 : theme.spacing.spacing_20};
|
|
120
120
|
background-color: ${isHighlighted && !isMulti ? theme.palette.primary.light : theme.palette.surface.contrast};
|
|
121
121
|
|
|
122
122
|
color: ${theme.palette.content.default};
|
|
123
|
-
${theme.fontStyles.
|
|
123
|
+
${theme.fontStyles.bodyMdRegular}
|
|
124
124
|
|
|
125
125
|
& > label {
|
|
126
|
-
${isMulti && `padding: ${theme.spacing
|
|
126
|
+
${isMulti && `padding: ${theme.spacing.spacing_30} ${theme.spacing.spacing_50}`};
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
&:hover,&:focus-within {
|
|
@@ -146,7 +146,7 @@ var SelectOptionContentStyled = import_styled.default.div`
|
|
|
146
146
|
width: 100%;
|
|
147
147
|
|
|
148
148
|
${({ theme, isSelected }) => `
|
|
149
|
-
${theme.fontStyles[isSelected ? "
|
|
149
|
+
${theme.fontStyles[isSelected ? "bodyMdBold" : "bodyMdRegular"]};
|
|
150
150
|
`}
|
|
151
151
|
`;
|
|
152
152
|
|
|
@@ -219,12 +219,12 @@ var SelectMenuStyled = import_styled2.default.ul`
|
|
|
219
219
|
overflow: auto;
|
|
220
220
|
|
|
221
221
|
${({ isOpen, theme }) => `
|
|
222
|
-
margin-top:${theme.spacing
|
|
223
|
-
padding: ${theme.spacing
|
|
222
|
+
margin-top:${theme.spacing.spacing_20};
|
|
223
|
+
padding: ${theme.spacing.spacing_50} ${theme.spacing.spacing_0};
|
|
224
224
|
background-color: ${theme.palette.surface.contrast};
|
|
225
225
|
display: ${isOpen ? "block" : "none"};
|
|
226
226
|
border-radius: ${theme.shape.formField};
|
|
227
|
-
box-shadow: ${theme.shadows.
|
|
227
|
+
box-shadow: ${theme.shadows.elevation_200};
|
|
228
228
|
`}
|
|
229
229
|
`;
|
|
230
230
|
var SelectValueContainerStyled = import_styled2.default.div`
|
|
@@ -239,7 +239,7 @@ var SelectValueStyled = import_styled2.default.div`
|
|
|
239
239
|
white-space: nowrap;
|
|
240
240
|
|
|
241
241
|
${({ theme }) => `
|
|
242
|
-
${theme.fontStyles.
|
|
242
|
+
${theme.fontStyles.bodyMdRegular}
|
|
243
243
|
color: ${theme.palette.content.default};
|
|
244
244
|
`}
|
|
245
245
|
`;
|
|
@@ -259,10 +259,10 @@ var SelectContainerStyled = import_styled2.default.div`
|
|
|
259
259
|
variant = "outlined",
|
|
260
260
|
fill = "default"
|
|
261
261
|
}) => `
|
|
262
|
-
${theme.fontStyles.
|
|
262
|
+
${theme.fontStyles.bodyMdRegular}
|
|
263
263
|
color: ${disabled ? theme.palette.content.light : theme.palette.content.default};
|
|
264
|
-
padding: ${theme.spacing
|
|
265
|
-
gap: ${theme.spacing
|
|
264
|
+
padding: ${theme.spacing.spacing_30} ${theme.spacing.spacing_40};
|
|
265
|
+
gap: ${theme.spacing.spacing_30} ;
|
|
266
266
|
background-color: ${getThemedBackgroundFill(fill, theme)};
|
|
267
267
|
border-radius: ${theme.shape.formField};
|
|
268
268
|
cursor: ${disabled ? "not-allowed" : "pointer"};
|
|
@@ -283,7 +283,7 @@ var SelectActionContainerStyled = import_styled2.default.div`
|
|
|
283
283
|
`;
|
|
284
284
|
var HelperSelectFieldMessageStyled = import_styled2.default.div`
|
|
285
285
|
${({ theme }) => `
|
|
286
|
-
padding-left: ${theme.spacing
|
|
286
|
+
padding-left: ${theme.spacing.spacing_50};
|
|
287
287
|
`}
|
|
288
288
|
`;
|
|
289
289
|
|
|
@@ -493,7 +493,7 @@ var Select = ({
|
|
|
493
493
|
{
|
|
494
494
|
color: hasError ? "error.default" : "content.light",
|
|
495
495
|
element: "span",
|
|
496
|
-
fontStyles: "
|
|
496
|
+
fontStyles: "bodySmRegular",
|
|
497
497
|
children: helperMessage
|
|
498
498
|
}
|
|
499
499
|
) }) : null
|
package/dist/index.mjs
CHANGED
|
@@ -90,15 +90,15 @@ var SelectOptionStyled = styled.li`
|
|
|
90
90
|
${({ theme, isMulti, isHighlighted }) => `
|
|
91
91
|
cursor:pointer;
|
|
92
92
|
align-items: center;
|
|
93
|
-
${!isMulti && `padding: ${theme.spacing
|
|
94
|
-
gap: ${isMulti ? theme.spacing
|
|
93
|
+
${!isMulti && `padding: ${theme.spacing.spacing_30} ${theme.spacing.spacing_50}`};
|
|
94
|
+
gap: ${isMulti ? theme.spacing.spacing_30 : theme.spacing.spacing_20};
|
|
95
95
|
background-color: ${isHighlighted && !isMulti ? theme.palette.primary.light : theme.palette.surface.contrast};
|
|
96
96
|
|
|
97
97
|
color: ${theme.palette.content.default};
|
|
98
|
-
${theme.fontStyles.
|
|
98
|
+
${theme.fontStyles.bodyMdRegular}
|
|
99
99
|
|
|
100
100
|
& > label {
|
|
101
|
-
${isMulti && `padding: ${theme.spacing
|
|
101
|
+
${isMulti && `padding: ${theme.spacing.spacing_30} ${theme.spacing.spacing_50}`};
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
&:hover,&:focus-within {
|
|
@@ -121,7 +121,7 @@ var SelectOptionContentStyled = styled.div`
|
|
|
121
121
|
width: 100%;
|
|
122
122
|
|
|
123
123
|
${({ theme, isSelected }) => `
|
|
124
|
-
${theme.fontStyles[isSelected ? "
|
|
124
|
+
${theme.fontStyles[isSelected ? "bodyMdBold" : "bodyMdRegular"]};
|
|
125
125
|
`}
|
|
126
126
|
`;
|
|
127
127
|
|
|
@@ -194,12 +194,12 @@ var SelectMenuStyled = styled2.ul`
|
|
|
194
194
|
overflow: auto;
|
|
195
195
|
|
|
196
196
|
${({ isOpen, theme }) => `
|
|
197
|
-
margin-top:${theme.spacing
|
|
198
|
-
padding: ${theme.spacing
|
|
197
|
+
margin-top:${theme.spacing.spacing_20};
|
|
198
|
+
padding: ${theme.spacing.spacing_50} ${theme.spacing.spacing_0};
|
|
199
199
|
background-color: ${theme.palette.surface.contrast};
|
|
200
200
|
display: ${isOpen ? "block" : "none"};
|
|
201
201
|
border-radius: ${theme.shape.formField};
|
|
202
|
-
box-shadow: ${theme.shadows.
|
|
202
|
+
box-shadow: ${theme.shadows.elevation_200};
|
|
203
203
|
`}
|
|
204
204
|
`;
|
|
205
205
|
var SelectValueContainerStyled = styled2.div`
|
|
@@ -214,7 +214,7 @@ var SelectValueStyled = styled2.div`
|
|
|
214
214
|
white-space: nowrap;
|
|
215
215
|
|
|
216
216
|
${({ theme }) => `
|
|
217
|
-
${theme.fontStyles.
|
|
217
|
+
${theme.fontStyles.bodyMdRegular}
|
|
218
218
|
color: ${theme.palette.content.default};
|
|
219
219
|
`}
|
|
220
220
|
`;
|
|
@@ -234,10 +234,10 @@ var SelectContainerStyled = styled2.div`
|
|
|
234
234
|
variant = "outlined",
|
|
235
235
|
fill = "default"
|
|
236
236
|
}) => `
|
|
237
|
-
${theme.fontStyles.
|
|
237
|
+
${theme.fontStyles.bodyMdRegular}
|
|
238
238
|
color: ${disabled ? theme.palette.content.light : theme.palette.content.default};
|
|
239
|
-
padding: ${theme.spacing
|
|
240
|
-
gap: ${theme.spacing
|
|
239
|
+
padding: ${theme.spacing.spacing_30} ${theme.spacing.spacing_40};
|
|
240
|
+
gap: ${theme.spacing.spacing_30} ;
|
|
241
241
|
background-color: ${getThemedBackgroundFill(fill, theme)};
|
|
242
242
|
border-radius: ${theme.shape.formField};
|
|
243
243
|
cursor: ${disabled ? "not-allowed" : "pointer"};
|
|
@@ -258,7 +258,7 @@ var SelectActionContainerStyled = styled2.div`
|
|
|
258
258
|
`;
|
|
259
259
|
var HelperSelectFieldMessageStyled = styled2.div`
|
|
260
260
|
${({ theme }) => `
|
|
261
|
-
padding-left: ${theme.spacing
|
|
261
|
+
padding-left: ${theme.spacing.spacing_50};
|
|
262
262
|
`}
|
|
263
263
|
`;
|
|
264
264
|
|
|
@@ -468,7 +468,7 @@ var Select = ({
|
|
|
468
468
|
{
|
|
469
469
|
color: hasError ? "error.default" : "content.light",
|
|
470
470
|
element: "span",
|
|
471
|
-
fontStyles: "
|
|
471
|
+
fontStyles: "bodySmRegular",
|
|
472
472
|
children: helperMessage
|
|
473
473
|
}
|
|
474
474
|
) }) : null
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dt-dds/react-select",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.49",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dist/index.js"
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
"test:update:snapshot": "jest -u"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@dt-dds/react-checkbox": "1.0.0-beta.
|
|
24
|
-
"@dt-dds/react-core": "1.0.0-beta.
|
|
25
|
-
"@dt-dds/react-icon": "1.0.0-beta.
|
|
26
|
-
"@dt-dds/react-icon-button": "1.0.0-beta.
|
|
27
|
-
"@dt-dds/react-label-field": "1.0.0-beta.
|
|
28
|
-
"@dt-dds/react-tooltip": "1.0.0-beta.
|
|
29
|
-
"@dt-dds/react-typography": "1.0.0-beta.
|
|
30
|
-
"@dt-dds/themes": "1.0.0-beta.
|
|
23
|
+
"@dt-dds/react-checkbox": "1.0.0-beta.43",
|
|
24
|
+
"@dt-dds/react-core": "1.0.0-beta.44",
|
|
25
|
+
"@dt-dds/react-icon": "1.0.0-beta.45",
|
|
26
|
+
"@dt-dds/react-icon-button": "1.0.0-beta.12",
|
|
27
|
+
"@dt-dds/react-label-field": "1.0.0-beta.40",
|
|
28
|
+
"@dt-dds/react-tooltip": "1.0.0-beta.52",
|
|
29
|
+
"@dt-dds/react-typography": "1.0.0-beta.35",
|
|
30
|
+
"@dt-dds/themes": "1.0.0-beta.4",
|
|
31
31
|
"downshift": "^9.0.4"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|