@dynamic-framework/ui-react 1.30.1 → 1.31.0
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/dist/css/dynamic-ui-non-root.css +45 -25
- package/dist/css/dynamic-ui-non-root.min.css +2 -2
- package/dist/css/dynamic-ui-root.css +7 -6
- package/dist/css/dynamic-ui-root.min.css +2 -2
- package/dist/css/dynamic-ui.css +51 -30
- package/dist/css/dynamic-ui.min.css +2 -2
- package/dist/index.esm.js +6 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/dist/types/components/DStepperDesktop/DStepperDesktop.d.ts +3 -1
- package/package.json +6 -3
- package/src/style/abstracts/variables/_+import.scss +0 -1
- package/src/style/abstracts/variables/_forms.scss +3 -3
- package/src/style/abstracts/variables/_tooltip.scss +4 -4
- package/src/style/base/_form-check.scss +6 -2
- package/src/style/base/_label.scss +1 -0
- package/src/style/components/_d-stepper-desktop.scss +25 -5
- package/src/style/components/_d-stepper-mobile.scss +6 -6
- package/src/style/root/_root.scss +2 -1
- package/src/style/abstracts/variables/_box-shadow.scss +0 -6
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { BaseProps } from '../interface';
|
|
2
2
|
type Step = {
|
|
3
3
|
label: string;
|
|
4
|
+
description?: string;
|
|
4
5
|
value: number;
|
|
5
6
|
};
|
|
6
7
|
type Props = BaseProps & {
|
|
@@ -12,6 +13,7 @@ type Props = BaseProps & {
|
|
|
12
13
|
iconSuccessMaterialStyle?: boolean;
|
|
13
14
|
vertical?: boolean;
|
|
14
15
|
completed?: boolean;
|
|
16
|
+
alignStart?: boolean;
|
|
15
17
|
};
|
|
16
|
-
export default function DStepper({ options, currentStep, iconSuccess: iconSuccessProp, iconSuccessFamilyClass, iconSuccessFamilyPrefix, iconSuccessMaterialStyle, vertical, completed, className, style, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export default function DStepper({ options, currentStep, iconSuccess: iconSuccessProp, iconSuccessFamilyClass, iconSuccessFamilyPrefix, iconSuccessMaterialStyle, vertical, completed, alignStart, className, style, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
17
19
|
export {};
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"sideEffects": [
|
|
4
4
|
"*.css"
|
|
5
5
|
],
|
|
6
|
-
"version": "1.
|
|
6
|
+
"version": "1.31.0",
|
|
7
7
|
"description": "React Dynamic Framework",
|
|
8
8
|
"license": "https://github.com/dynamic-framework/dynamic-ui/blob/master/libraries/dynamic-ui-react/LICENSE.md",
|
|
9
9
|
"repository": {
|
|
@@ -60,7 +60,10 @@
|
|
|
60
60
|
"eslint:test": "eslint src/**/*.spec.tsx",
|
|
61
61
|
"stylelint": "stylelint \"**/*.{css,scss}\" --rd",
|
|
62
62
|
"postversion": "pnpm build:scss",
|
|
63
|
-
"publish:cdn": "
|
|
63
|
+
"publish:cdn": "pnpm publish:cdn-version && pnpm publish:cdn-latest",
|
|
64
|
+
"publish:cdn-version": "node scripts/publish-cdn.js",
|
|
65
|
+
"publish:cdn-latest": "aws s3 sync ./dist/ s3://dynamicframework-cdn/assets/latest/ui-react --delete --acl public-read",
|
|
66
|
+
"publish:cdn-rc": "aws s3 sync ./dist/ s3://dynamicframework-cdn/assets/rc/ui-react --delete --acl public-read",
|
|
64
67
|
"lint-staged": "lint-staged"
|
|
65
68
|
},
|
|
66
69
|
"main": "./dist/index.js",
|
|
@@ -161,5 +164,5 @@
|
|
|
161
164
|
"optional": true
|
|
162
165
|
}
|
|
163
166
|
},
|
|
164
|
-
"gitHead": "
|
|
167
|
+
"gitHead": "215888b4375e8906c7a36f68c92754a4fa7ad53e"
|
|
165
168
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// scss-docs-start form-text-variables
|
|
2
|
-
$form-text-margin-top: $spacer-
|
|
2
|
+
$form-text-margin-top: var(--#{$prefix}ref-spacer-1) !default;
|
|
3
3
|
$form-text-color: var(--#{$prefix}body-color) !default;
|
|
4
4
|
// scss-docs-end form-text-variables
|
|
5
5
|
|
|
@@ -23,7 +23,7 @@ $input-padding-y-lg: $spacer-4 !default;
|
|
|
23
23
|
$input-font-size-lg: var(--#{$prefix}ref-spacer-5) !default;
|
|
24
24
|
|
|
25
25
|
$input-bg: var(--#{$prefix}white) !default;
|
|
26
|
-
$input-disabled-color: var(--#{$prefix}
|
|
26
|
+
$input-disabled-color: var(--#{$prefix}body-color) !default;
|
|
27
27
|
$input-disabled-bg: var(--#{$prefix}gray-100) !default;
|
|
28
28
|
$input-disabled-border-color: var(--#{$prefix}gray-300) !default;
|
|
29
29
|
|
|
@@ -79,7 +79,7 @@ $input-group-addon-border-color: transparent !default;
|
|
|
79
79
|
|
|
80
80
|
// custom
|
|
81
81
|
$form-text-padding-y: 0 !default;
|
|
82
|
-
$form-text-padding-x:
|
|
82
|
+
$form-text-padding-x: 0 !default;
|
|
83
83
|
// end custom
|
|
84
84
|
|
|
85
85
|
// scss-docs-start form-select-variables
|
|
@@ -5,12 +5,12 @@ $tooltip-color: var(--#{$prefix}body-bg) !default;
|
|
|
5
5
|
$tooltip-bg: var(--#{$prefix}emphasis-color) !default;
|
|
6
6
|
$tooltip-border-radius: var(--#{$prefix}ref-spacer-1) !default;
|
|
7
7
|
$tooltip-opacity: 1 !default;
|
|
8
|
-
$tooltip-padding-y: var(--#{$prefix}ref-spacer-
|
|
9
|
-
$tooltip-padding-x: var(--#{$prefix}ref-spacer-
|
|
8
|
+
$tooltip-padding-y: var(--#{$prefix}ref-spacer-2) !default;
|
|
9
|
+
$tooltip-padding-x: var(--#{$prefix}ref-spacer-1) !default;
|
|
10
10
|
|
|
11
11
|
// custom
|
|
12
|
-
$tooltip-font-size-sm: var(--#{$prefix}fs-small) !default;
|
|
13
|
-
$tooltip-font-size-lg: var(--#{$prefix}fs-
|
|
12
|
+
$tooltip-font-size-sm: var(--#{$prefix}fs-body-small) !default;
|
|
13
|
+
$tooltip-font-size-lg: var(--#{$prefix}fs-body-medium) !default;
|
|
14
14
|
// end custom
|
|
15
15
|
|
|
16
16
|
// scss-docs-end tooltip-variables
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
.form-check-label {
|
|
2
|
+
--#{$prefix}label-padding-x: var(--#{$prefix}ref-spacer-2);
|
|
3
|
+
}
|
|
4
|
+
|
|
1
5
|
.form-check-input {
|
|
2
|
-
|
|
3
|
-
|
|
6
|
+
--#{$prefix}form-check-input-focus-border-color: #{$component-focus-border-color};
|
|
7
|
+
--#{$prefix}form-check-input-focus-box-shadow: #{$input-btn-focus-box-shadow};
|
|
4
8
|
}
|
|
@@ -5,6 +5,7 @@ label {
|
|
|
5
5
|
gap: var(--#{$prefix}ref-spacer-1);
|
|
6
6
|
align-items: center;
|
|
7
7
|
padding: var(--#{$prefix}label-padding-y) var(--#{$prefix}label-padding-x);
|
|
8
|
+
margin-bottom: var(--#{$prefix}label-margin-bottom);
|
|
8
9
|
font-size: var(--#{$prefix}label-font-size);
|
|
9
10
|
font-weight: var(--#{$prefix}label-font-weight);
|
|
10
11
|
color: var(--#{$prefix}label-color);
|
|
@@ -29,9 +29,10 @@
|
|
|
29
29
|
--#{$prefix}step-line-color: var(--#{$prefix}secondary);
|
|
30
30
|
|
|
31
31
|
/* Step label */
|
|
32
|
-
--#{$prefix}step-label-padding: var(--#{$prefix}ref-spacer-
|
|
32
|
+
--#{$prefix}step-label-padding: var(--#{$prefix}ref-spacer-4);
|
|
33
33
|
--#{$prefix}step-vertical-label-padding: var(--#{$prefix}ref-spacer-4);
|
|
34
|
-
|
|
34
|
+
--#{$prefix}step-label-font-size: var(--#{$prefix}body-font-size);
|
|
35
|
+
--#{$prefix}step-description-font-size: var(--#{$prefix}fs-body-tiny);
|
|
35
36
|
|
|
36
37
|
position: relative;
|
|
37
38
|
display: flex;
|
|
@@ -97,10 +98,25 @@
|
|
|
97
98
|
width: 50%;
|
|
98
99
|
}
|
|
99
100
|
|
|
100
|
-
.d-step-
|
|
101
|
+
.d-step-text-container {
|
|
101
102
|
padding-right: var(--#{$prefix}step-label-padding);
|
|
102
103
|
padding-left: var(--#{$prefix}step-label-padding);
|
|
103
104
|
text-align: center;
|
|
105
|
+
|
|
106
|
+
.d-step-label {
|
|
107
|
+
font-size: var(--#{$prefix}step-label-font-size);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.d-step-description {
|
|
111
|
+
font-size: var(--#{$prefix}step-description-font-size);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&.is-align-start {
|
|
117
|
+
.d-step-text-container {
|
|
118
|
+
text-align: left;
|
|
119
|
+
transform: translateX(calc(50% - (var(--#{$prefix}step-icon-container-size) / 2) - var(--#{$prefix}step-label-padding)));
|
|
104
120
|
}
|
|
105
121
|
}
|
|
106
122
|
|
|
@@ -116,12 +132,16 @@
|
|
|
116
132
|
height: 100%;
|
|
117
133
|
}
|
|
118
134
|
|
|
119
|
-
.d-step-
|
|
135
|
+
.d-step-text-container {
|
|
120
136
|
display: flex;
|
|
137
|
+
flex-direction: column;
|
|
121
138
|
flex-grow: 1;
|
|
122
|
-
align-items:
|
|
139
|
+
align-items: flex-start;
|
|
123
140
|
min-height: var(--#{$prefix}step-label-height);
|
|
124
141
|
padding: var(--#{$prefix}step-vertical-label-padding);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.d-step-label {
|
|
125
145
|
text-align: left;
|
|
126
146
|
}
|
|
127
147
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
--#{$prefix}step-progress-outter-size: 62px;
|
|
7
7
|
--#{$prefix}step-progress-outter-z-index: 1;
|
|
8
8
|
--#{$prefix}step-progress-outter-fill-background-color: var(--#{$prefix}secondary-500);
|
|
9
|
-
--#{$prefix}step-progress-outter-background-color: var(--#{$prefix}
|
|
9
|
+
--#{$prefix}step-progress-outter-background-color: var(--#{$prefix}secondary-100);
|
|
10
10
|
|
|
11
11
|
/* Inner circle */
|
|
12
12
|
--#{$prefix}step-progress-inner-size: 50px;
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
|
|
16
16
|
/* Current step */
|
|
17
17
|
--#{$prefix}step-current-step-z-index: 3;
|
|
18
|
-
--#{$prefix}step-current-step-font-weight: var(--#{$prefix}fw-
|
|
19
|
-
--#{$prefix}step-current-step-color: var(--#{$prefix}
|
|
18
|
+
--#{$prefix}step-current-step-font-weight: var(--#{$prefix}fw-normal);
|
|
19
|
+
--#{$prefix}step-current-step-color: var(--#{$prefix}secondary-500);
|
|
20
20
|
|
|
21
21
|
/* Info circle */
|
|
22
22
|
--#{$prefix}step-info-max-width: 12rem;
|
|
23
|
-
--#{$prefix}step-info-label-font-size: var(--#{$prefix}
|
|
24
|
-
--#{$prefix}step-info-description-font-size: var(--#{$prefix}fs-
|
|
25
|
-
--#{$prefix}step-info-description-color: var(--#{$prefix}
|
|
23
|
+
--#{$prefix}step-info-label-font-size: var(--#{$prefix}body-font-size);
|
|
24
|
+
--#{$prefix}step-info-description-font-size: var(--#{$prefix}fs-body-tiny);
|
|
25
|
+
--#{$prefix}step-info-description-color: var(--#{$prefix}body-color);
|
|
26
26
|
|
|
27
27
|
display: flex;
|
|
28
28
|
gap: var(--#{$prefix}step-container-gap);
|
|
@@ -208,7 +208,8 @@
|
|
|
208
208
|
--#{$prefix}fw-bolder: #{$font-weight-bolder-value};
|
|
209
209
|
|
|
210
210
|
--#{$prefix}label-padding-y: var(--#{$prefix}ref-spacer-0);
|
|
211
|
-
--#{$prefix}label-padding-x: var(--#{$prefix}ref-spacer-
|
|
211
|
+
--#{$prefix}label-padding-x: var(--#{$prefix}ref-spacer-0);
|
|
212
|
+
--#{$prefix}label-margin-bottom: var(--#{$prefix}ref-spacer-1);
|
|
212
213
|
--#{$prefix}label-font-size: var(--#{$prefix}fs-small);
|
|
213
214
|
--#{$prefix}label-font-weight: var(--#{$prefix}fw-normal);
|
|
214
215
|
--#{$prefix}label-color: var(--#{$prefix}gray-700);
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
// scss-docs-start box-shadow-variables
|
|
2
|
-
$box-shadow: 0 12px 14px 0 rgba($dark, .2) !default;
|
|
3
|
-
$box-shadow-sm: 0 8px 12px 0 rgba($dark, .05) !default;
|
|
4
|
-
$box-shadow-lg: 0 20px 22px 0 rgba($dark, .25) !default;
|
|
5
|
-
$box-shadow-inset: inset 0 1px 2px rgba($black, .75) !default;
|
|
6
|
-
// scss-docs-end box-shadow-variables
|