@dt-dds/react-stepper 1.0.0-beta.43 → 1.0.0-beta.45
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 +26 -0
- package/dist/index.js +6 -6
- package/dist/index.mjs +2 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @dt-ui/react-stepper
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.45
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- feat(core): share responsive HOC from core package
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @dt-dds/react-core@1.0.0-beta.53
|
|
13
|
+
- @dt-dds/react-icon@1.0.0-beta.56
|
|
14
|
+
- @dt-dds/react-typography@1.0.0-beta.44
|
|
15
|
+
|
|
16
|
+
## 1.0.0-beta.44
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- fix(config): update ESLint, TS, and Storybook config
|
|
21
|
+
- fix(icon-button): add missing @dt-dds/react-icon devDependency
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
- @dt-dds/react-core@1.0.0-beta.52
|
|
25
|
+
- @dt-dds/react-icon@1.0.0-beta.55
|
|
26
|
+
- @dt-dds/react-typography@1.0.0-beta.43
|
|
27
|
+
- @dt-dds/themes@1.0.0-beta.10
|
|
28
|
+
|
|
3
29
|
## 1.0.0-beta.43
|
|
4
30
|
|
|
5
31
|
### Minor Changes
|
package/dist/index.js
CHANGED
|
@@ -78,10 +78,10 @@ var Stepper = ({
|
|
|
78
78
|
};
|
|
79
79
|
|
|
80
80
|
// src/components/Step/Step.tsx
|
|
81
|
+
var import_react = require("react");
|
|
82
|
+
var import_react2 = require("@emotion/react");
|
|
81
83
|
var import_react_icon = require("@dt-dds/react-icon");
|
|
82
84
|
var import_react_typography = require("@dt-dds/react-typography");
|
|
83
|
-
var import_react = require("@emotion/react");
|
|
84
|
-
var import_react2 = require("react");
|
|
85
85
|
|
|
86
86
|
// src/components/Counter/Counter.styled.ts
|
|
87
87
|
var import_styled2 = __toESM(require("@emotion/styled"));
|
|
@@ -152,9 +152,9 @@ var Step = ({
|
|
|
152
152
|
isDisabled = false,
|
|
153
153
|
isError = false
|
|
154
154
|
}) => {
|
|
155
|
-
const clonedChildren = (0,
|
|
156
|
-
() =>
|
|
157
|
-
return child && (0,
|
|
155
|
+
const clonedChildren = (0, import_react.useMemo)(
|
|
156
|
+
() => import_react.Children.map(children, (child) => {
|
|
157
|
+
return child && (0, import_react.cloneElement)(child, __spreadValues({
|
|
158
158
|
isActive,
|
|
159
159
|
isCompleted,
|
|
160
160
|
isDisabled,
|
|
@@ -172,7 +172,7 @@ var StepCounter = ({
|
|
|
172
172
|
isDisabled = false,
|
|
173
173
|
isError = false
|
|
174
174
|
}) => {
|
|
175
|
-
const theme = (0,
|
|
175
|
+
const theme = (0, import_react2.useTheme)();
|
|
176
176
|
const color = isError ? "error" : isDisabled ? "disabled" : "primary";
|
|
177
177
|
const bgColor = isError ? theme.palette.error.light : theme.palette.primary.light;
|
|
178
178
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
package/dist/index.mjs
CHANGED
|
@@ -42,10 +42,10 @@ var Stepper = ({
|
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
// src/components/Step/Step.tsx
|
|
45
|
+
import { Children, cloneElement, useMemo } from "react";
|
|
46
|
+
import { useTheme } from "@emotion/react";
|
|
45
47
|
import { Icon } from "@dt-dds/react-icon";
|
|
46
48
|
import { Typography } from "@dt-dds/react-typography";
|
|
47
|
-
import { useTheme } from "@emotion/react";
|
|
48
|
-
import { Children, cloneElement, useMemo } from "react";
|
|
49
49
|
|
|
50
50
|
// src/components/Counter/Counter.styled.ts
|
|
51
51
|
import styled2 from "@emotion/styled";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dt-dds/react-stepper",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.45",
|
|
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-typography": "1.0.0-beta.
|
|
25
|
-
"@dt-dds/react-icon": "1.0.0-beta.
|
|
26
|
-
"@dt-dds/themes": "1.0.0-beta.
|
|
23
|
+
"@dt-dds/react-core": "1.0.0-beta.53",
|
|
24
|
+
"@dt-dds/react-typography": "1.0.0-beta.44",
|
|
25
|
+
"@dt-dds/react-icon": "1.0.0-beta.56",
|
|
26
|
+
"@dt-dds/themes": "1.0.0-beta.10"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@babel/core": "^7.22.9",
|