@dt-dds/react-segmented-control 1.0.0-beta.31 → 1.0.0-beta.32
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 +11 -0
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @dt-ui/react-segmented-control
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.32
|
|
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-icon@1.0.0-beta.45
|
|
11
|
+
- @dt-dds/react-tooltip@1.0.0-beta.52
|
|
12
|
+
- @dt-dds/themes@1.0.0-beta.4
|
|
13
|
+
|
|
3
14
|
## 1.0.0-beta.31
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|
package/dist/index.js
CHANGED
|
@@ -118,17 +118,17 @@ var SegmentedControlProvider = ({
|
|
|
118
118
|
var import_styled = __toESM(require("@emotion/styled"));
|
|
119
119
|
var SegmentedControlOptionStyled = import_styled.default.button`
|
|
120
120
|
${({ theme, showLabel }) => `
|
|
121
|
-
${theme.fontStyles.
|
|
121
|
+
${theme.fontStyles.bodyMdRegular};
|
|
122
122
|
|
|
123
123
|
display: flex;
|
|
124
124
|
align-items: center;
|
|
125
|
-
gap: ${theme.spacing
|
|
125
|
+
gap: ${theme.spacing.spacing_20};
|
|
126
126
|
cursor: pointer;
|
|
127
127
|
background-color: ${theme.palette.surface.contrast};
|
|
128
128
|
color: ${theme.palette.content.default};
|
|
129
129
|
border: none;
|
|
130
130
|
border-radius: ${theme.shape.button};
|
|
131
|
-
padding: ${theme.spacing
|
|
131
|
+
padding: ${theme.spacing.spacing_20} ${theme.spacing[showLabel ? "spacing_40" : "spacing_20"]};
|
|
132
132
|
|
|
133
133
|
&:not(:disabled):hover {
|
|
134
134
|
background-color: ${theme.palette.primary.light};
|
|
@@ -198,7 +198,7 @@ var SegmentedControlStyled = import_styled2.default.div`
|
|
|
198
198
|
${({ theme }) => `
|
|
199
199
|
display: inline-flex;
|
|
200
200
|
align-items: center;
|
|
201
|
-
padding: ${theme.spacing
|
|
201
|
+
padding: ${theme.spacing.spacing_20};
|
|
202
202
|
border: 1px solid ${theme.palette.border.default};
|
|
203
203
|
border-radius: ${theme.shape.segmentedControl};
|
|
204
204
|
`}
|
package/dist/index.mjs
CHANGED
|
@@ -90,17 +90,17 @@ var SegmentedControlProvider = ({
|
|
|
90
90
|
import styled from "@emotion/styled";
|
|
91
91
|
var SegmentedControlOptionStyled = styled.button`
|
|
92
92
|
${({ theme, showLabel }) => `
|
|
93
|
-
${theme.fontStyles.
|
|
93
|
+
${theme.fontStyles.bodyMdRegular};
|
|
94
94
|
|
|
95
95
|
display: flex;
|
|
96
96
|
align-items: center;
|
|
97
|
-
gap: ${theme.spacing
|
|
97
|
+
gap: ${theme.spacing.spacing_20};
|
|
98
98
|
cursor: pointer;
|
|
99
99
|
background-color: ${theme.palette.surface.contrast};
|
|
100
100
|
color: ${theme.palette.content.default};
|
|
101
101
|
border: none;
|
|
102
102
|
border-radius: ${theme.shape.button};
|
|
103
|
-
padding: ${theme.spacing
|
|
103
|
+
padding: ${theme.spacing.spacing_20} ${theme.spacing[showLabel ? "spacing_40" : "spacing_20"]};
|
|
104
104
|
|
|
105
105
|
&:not(:disabled):hover {
|
|
106
106
|
background-color: ${theme.palette.primary.light};
|
|
@@ -170,7 +170,7 @@ var SegmentedControlStyled = styled2.div`
|
|
|
170
170
|
${({ theme }) => `
|
|
171
171
|
display: inline-flex;
|
|
172
172
|
align-items: center;
|
|
173
|
-
padding: ${theme.spacing
|
|
173
|
+
padding: ${theme.spacing.spacing_20};
|
|
174
174
|
border: 1px solid ${theme.palette.border.default};
|
|
175
175
|
border-radius: ${theme.shape.segmentedControl};
|
|
176
176
|
`}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dt-dds/react-segmented-control",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.32",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dist/index.js"
|
|
@@ -20,10 +20,10 @@
|
|
|
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-icon": "1.0.0-beta.
|
|
25
|
-
"@dt-dds/react-tooltip": "1.0.0-beta.
|
|
26
|
-
"@dt-dds/themes": "1.0.0-beta.
|
|
23
|
+
"@dt-dds/react-core": "1.0.0-beta.44",
|
|
24
|
+
"@dt-dds/react-icon": "1.0.0-beta.45",
|
|
25
|
+
"@dt-dds/react-tooltip": "1.0.0-beta.52",
|
|
26
|
+
"@dt-dds/themes": "1.0.0-beta.4"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@babel/core": "^7.22.9",
|