@dt-dds/react-tag 1.0.0-beta.44 → 1.0.0-beta.46
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 +29 -0
- package/dist/index.js +5 -5
- package/dist/index.mjs +5 -5
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @dt-ui/react-tag
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.46
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- refactor(themes): consolidate theme structure
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @dt-dds/react-core@1.0.0-beta.44
|
|
10
|
+
- @dt-dds/react-tooltip@1.0.0-beta.52
|
|
11
|
+
- @dt-dds/themes@1.0.0-beta.4
|
|
12
|
+
|
|
13
|
+
## 1.0.0-beta.45
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- feat: add components generator
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- chore: fix test coverage configuration
|
|
22
|
+
- chore: increase themes test coverage
|
|
23
|
+
- chore: fix sonarqube issues
|
|
24
|
+
- Updated dependencies
|
|
25
|
+
- Updated dependencies
|
|
26
|
+
- Updated dependencies
|
|
27
|
+
- Updated dependencies
|
|
28
|
+
- @dt-dds/react-core@1.0.0-beta.43
|
|
29
|
+
- @dt-dds/react-tooltip@1.0.0-beta.51
|
|
30
|
+
- @dt-dds/themes@1.0.0-beta.3
|
|
31
|
+
|
|
3
32
|
## 1.0.0-beta.44
|
|
4
33
|
|
|
5
34
|
### Minor Changes
|
package/dist/index.js
CHANGED
|
@@ -282,7 +282,7 @@ var tagVariantColors = ({
|
|
|
282
282
|
const colors = getColors(variant, theme, isDisabled, color);
|
|
283
283
|
return {
|
|
284
284
|
solid: __spreadValues({
|
|
285
|
-
border: theme.spacing.
|
|
285
|
+
border: theme.spacing.spacing_0,
|
|
286
286
|
color: theme.palette.content.contrast,
|
|
287
287
|
backgroundColor: colors == null ? void 0 : colors.bgColor
|
|
288
288
|
}, hasHover && {
|
|
@@ -311,14 +311,14 @@ var tagSizeStyles = (theme, size) => ({
|
|
|
311
311
|
fontSize: "0.75rem",
|
|
312
312
|
fontWeight: "700",
|
|
313
313
|
lineHeight: "1rem",
|
|
314
|
-
padding: `${theme.spacing
|
|
314
|
+
padding: `${theme.spacing.spacing_30} ${theme.spacing.spacing_40}`,
|
|
315
315
|
height: "32px"
|
|
316
316
|
},
|
|
317
317
|
small: {
|
|
318
318
|
fontSize: "0.625rem",
|
|
319
319
|
fontWeight: "700",
|
|
320
320
|
lineHeight: "0.875rem",
|
|
321
|
-
padding: `${theme.spacing
|
|
321
|
+
padding: `${theme.spacing.spacing_10} ${theme.spacing.spacing_30}`,
|
|
322
322
|
height: "18px"
|
|
323
323
|
}
|
|
324
324
|
})[size];
|
|
@@ -340,8 +340,8 @@ var TagStyled = import_styled.default.div(
|
|
|
340
340
|
textTransform: "uppercase",
|
|
341
341
|
alignItems: "center",
|
|
342
342
|
maxWidth: "max-content",
|
|
343
|
-
gap: theme.spacing
|
|
344
|
-
borderRadius: theme.radius[border === "rounded" ? "
|
|
343
|
+
gap: theme.spacing.spacing_20,
|
|
344
|
+
borderRadius: theme.radius[border === "rounded" ? "radius_70" : "radius_0"],
|
|
345
345
|
width: "150px",
|
|
346
346
|
["> :first-child"]: {
|
|
347
347
|
whiteSpace: "nowrap",
|
package/dist/index.mjs
CHANGED
|
@@ -249,7 +249,7 @@ var tagVariantColors = ({
|
|
|
249
249
|
const colors = getColors(variant, theme, isDisabled, color);
|
|
250
250
|
return {
|
|
251
251
|
solid: __spreadValues({
|
|
252
|
-
border: theme.spacing.
|
|
252
|
+
border: theme.spacing.spacing_0,
|
|
253
253
|
color: theme.palette.content.contrast,
|
|
254
254
|
backgroundColor: colors == null ? void 0 : colors.bgColor
|
|
255
255
|
}, hasHover && {
|
|
@@ -278,14 +278,14 @@ var tagSizeStyles = (theme, size) => ({
|
|
|
278
278
|
fontSize: "0.75rem",
|
|
279
279
|
fontWeight: "700",
|
|
280
280
|
lineHeight: "1rem",
|
|
281
|
-
padding: `${theme.spacing
|
|
281
|
+
padding: `${theme.spacing.spacing_30} ${theme.spacing.spacing_40}`,
|
|
282
282
|
height: "32px"
|
|
283
283
|
},
|
|
284
284
|
small: {
|
|
285
285
|
fontSize: "0.625rem",
|
|
286
286
|
fontWeight: "700",
|
|
287
287
|
lineHeight: "0.875rem",
|
|
288
|
-
padding: `${theme.spacing
|
|
288
|
+
padding: `${theme.spacing.spacing_10} ${theme.spacing.spacing_30}`,
|
|
289
289
|
height: "18px"
|
|
290
290
|
}
|
|
291
291
|
})[size];
|
|
@@ -307,8 +307,8 @@ var TagStyled = styled.div(
|
|
|
307
307
|
textTransform: "uppercase",
|
|
308
308
|
alignItems: "center",
|
|
309
309
|
maxWidth: "max-content",
|
|
310
|
-
gap: theme.spacing
|
|
311
|
-
borderRadius: theme.radius[border === "rounded" ? "
|
|
310
|
+
gap: theme.spacing.spacing_20,
|
|
311
|
+
borderRadius: theme.radius[border === "rounded" ? "radius_70" : "radius_0"],
|
|
312
312
|
width: "150px",
|
|
313
313
|
["> :first-child"]: {
|
|
314
314
|
whiteSpace: "nowrap",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dt-dds/react-tag",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.46",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dist/index.js"
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"test:update:snapshot": "jest -u"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@dt-dds/react-core": "1.0.0-beta.
|
|
24
|
-
"@dt-dds/react-tooltip": "1.0.0-beta.
|
|
25
|
-
"@dt-dds/themes": "1.0.0-beta.
|
|
23
|
+
"@dt-dds/react-core": "1.0.0-beta.44",
|
|
24
|
+
"@dt-dds/react-tooltip": "1.0.0-beta.52",
|
|
25
|
+
"@dt-dds/themes": "1.0.0-beta.4"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@babel/core": "^7.22.9",
|