@dt-dds/react-progress-bar 1.0.0-beta.37 → 1.0.0-beta.38

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 CHANGED
@@ -1,5 +1,15 @@
1
1
  # @dt-ui/react-progress-bar
2
2
 
3
+ ## 1.0.0-beta.38
4
+
5
+ ### Patch Changes
6
+
7
+ - refactor(themes): consolidate theme structure
8
+ - Updated dependencies
9
+ - @dt-dds/react-icon@1.0.0-beta.45
10
+ - @dt-dds/react-typography@1.0.0-beta.35
11
+ - @dt-dds/themes@1.0.0-beta.4
12
+
3
13
  ## 1.0.0-beta.37
4
14
 
5
15
  ### Minor Changes
package/dist/index.js CHANGED
@@ -71,7 +71,7 @@ var ProgressBarFieldStyled = import_styled.default.div`
71
71
  display: flex;
72
72
  flex-direction: column;
73
73
  align-items: flex-start;
74
- gap: ${theme.spacing["5xs"]};
74
+ gap: ${theme.spacing.spacing_20};
75
75
  min-width: 48px;
76
76
  `}
77
77
  `;
@@ -80,7 +80,7 @@ var ProgressBarWrapperStyled = import_styled.default.div`
80
80
  display: grid;
81
81
  grid-template-columns: minmax(48px, 1fr) 28px 16px;
82
82
  align-items: center;
83
- gap: ${theme.spacing["5xs"]};
83
+ gap: ${theme.spacing.spacing_20};
84
84
  width: 100%;
85
85
  height: 16px;
86
86
  `}
@@ -91,7 +91,7 @@ var ProgressBarStyled = import_styled.default.div`
91
91
  height: ${progressBarHeights[size]};
92
92
  background-color: ${progressBarColors(theme)[state].background};
93
93
  transition: width 0.2s ease-in-out;
94
- border-radius: ${theme.radius.none} ${theme.shape.progressbar} ${theme.shape.progressbar} ${theme.radius.none};
94
+ border-radius: ${theme.radius.radius_0} ${theme.shape.progressbar} ${theme.shape.progressbar} ${theme.radius.radius_0};
95
95
  `};
96
96
  `;
97
97
  var ProgressBarTrackStyled = import_styled.default.div`
@@ -104,13 +104,13 @@ var ProgressBarTrackStyled = import_styled.default.div`
104
104
  `;
105
105
  var ProgressBarHelperTextStyled = import_styled.default.p`
106
106
  ${({ theme, state }) => `
107
- ${theme.fontStyles.body3}
107
+ ${theme.fontStyles.bodySmRegular}
108
108
  color: ${progressBarColors(theme)[state].helper};
109
109
  `};
110
110
  `;
111
111
  var ProgressBarPercentageTextStyled = import_styled.default.div`
112
112
  ${({ theme, state }) => `
113
- ${theme.fontStyles.body3}
113
+ ${theme.fontStyles.bodySmRegular}
114
114
  text-align: center;
115
115
  color: ${progressBarColors(theme)[state].percentage};
116
116
  `};
@@ -136,7 +136,7 @@ var ProgressBar = ({
136
136
  );
137
137
  const theme = (0, import_react.useTheme)();
138
138
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(ProgressBarFieldStyled, { children: [
139
- label ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_typography.Typography, { color: "content.default", fontStyles: "body2Bold", children: label }) : null,
139
+ label ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_typography.Typography, { color: "content.default", fontStyles: "bodyMdBold", children: label }) : null,
140
140
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(ProgressBarWrapperStyled, { children: [
141
141
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
142
142
  ProgressBarTrackStyled,
package/dist/index.mjs CHANGED
@@ -35,7 +35,7 @@ var ProgressBarFieldStyled = styled.div`
35
35
  display: flex;
36
36
  flex-direction: column;
37
37
  align-items: flex-start;
38
- gap: ${theme.spacing["5xs"]};
38
+ gap: ${theme.spacing.spacing_20};
39
39
  min-width: 48px;
40
40
  `}
41
41
  `;
@@ -44,7 +44,7 @@ var ProgressBarWrapperStyled = styled.div`
44
44
  display: grid;
45
45
  grid-template-columns: minmax(48px, 1fr) 28px 16px;
46
46
  align-items: center;
47
- gap: ${theme.spacing["5xs"]};
47
+ gap: ${theme.spacing.spacing_20};
48
48
  width: 100%;
49
49
  height: 16px;
50
50
  `}
@@ -55,7 +55,7 @@ var ProgressBarStyled = styled.div`
55
55
  height: ${progressBarHeights[size]};
56
56
  background-color: ${progressBarColors(theme)[state].background};
57
57
  transition: width 0.2s ease-in-out;
58
- border-radius: ${theme.radius.none} ${theme.shape.progressbar} ${theme.shape.progressbar} ${theme.radius.none};
58
+ border-radius: ${theme.radius.radius_0} ${theme.shape.progressbar} ${theme.shape.progressbar} ${theme.radius.radius_0};
59
59
  `};
60
60
  `;
61
61
  var ProgressBarTrackStyled = styled.div`
@@ -68,13 +68,13 @@ var ProgressBarTrackStyled = styled.div`
68
68
  `;
69
69
  var ProgressBarHelperTextStyled = styled.p`
70
70
  ${({ theme, state }) => `
71
- ${theme.fontStyles.body3}
71
+ ${theme.fontStyles.bodySmRegular}
72
72
  color: ${progressBarColors(theme)[state].helper};
73
73
  `};
74
74
  `;
75
75
  var ProgressBarPercentageTextStyled = styled.div`
76
76
  ${({ theme, state }) => `
77
- ${theme.fontStyles.body3}
77
+ ${theme.fontStyles.bodySmRegular}
78
78
  text-align: center;
79
79
  color: ${progressBarColors(theme)[state].percentage};
80
80
  `};
@@ -100,7 +100,7 @@ var ProgressBar = ({
100
100
  );
101
101
  const theme = useTheme();
102
102
  return /* @__PURE__ */ jsxs(ProgressBarFieldStyled, { children: [
103
- label ? /* @__PURE__ */ jsx(Typography, { color: "content.default", fontStyles: "body2Bold", children: label }) : null,
103
+ label ? /* @__PURE__ */ jsx(Typography, { color: "content.default", fontStyles: "bodyMdBold", children: label }) : null,
104
104
  /* @__PURE__ */ jsxs(ProgressBarWrapperStyled, { children: [
105
105
  /* @__PURE__ */ jsx(
106
106
  ProgressBarTrackStyled,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dt-dds/react-progress-bar",
3
- "version": "1.0.0-beta.37",
3
+ "version": "1.0.0-beta.38",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./dist/index.js"
@@ -20,16 +20,16 @@
20
20
  "test:update:snapshot": "jest -u"
21
21
  },
22
22
  "dependencies": {
23
- "@dt-dds/react-icon": "1.0.0-beta.44",
24
- "@dt-dds/react-typography": "1.0.0-beta.34",
25
- "@dt-dds/themes": "1.0.0-beta.3"
23
+ "@dt-dds/react-icon": "1.0.0-beta.45",
24
+ "@dt-dds/react-typography": "1.0.0-beta.35",
25
+ "@dt-dds/themes": "1.0.0-beta.4"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@babel/core": "^7.22.9",
29
29
  "@babel/preset-env": "^7.22.9",
30
30
  "@babel/preset-react": "^7.22.5",
31
31
  "@babel/preset-typescript": "^7.23.3",
32
- "@dt-dds/react-core": "1.0.0-beta.43",
32
+ "@dt-dds/react-core": "1.0.0-beta.44",
33
33
  "@emotion/babel-plugin": "^11.11.0",
34
34
  "@emotion/css": "^11.7.1",
35
35
  "@emotion/jest": "^11.10.0",