@dynamic-framework/ui-react 1.1.5 → 1.2.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-all.css +1 -0
- package/dist/css/dynamic-ui-react.css +1 -1
- package/dist/css/dynamic-ui.css +1 -0
- package/dist/index.esm.js +107 -26
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +117 -26
- package/dist/index.js.map +1 -1
- package/dist/types/components/MBoxFile.d.ts +1 -1
- package/dist/types/components/MCalendar.d.ts +1 -1
- package/dist/types/components/MCarousel.d.ts +7 -0
- package/dist/types/components/MCarouselSlide.d.ts +5 -0
- package/dist/types/components/MCollapse.d.ts +1 -1
- package/dist/types/components/MCurrencyText.d.ts +1 -2
- package/dist/types/components/MFormikInput.d.ts +1 -1
- package/dist/types/components/MFormikInputCurrency.d.ts +7 -0
- package/dist/types/components/MFormikInputSelect.d.ts +1 -1
- package/dist/types/components/MInputCurrency.d.ts +3 -1
- package/dist/types/components/MList.d.ts +10 -0
- package/dist/types/components/MListItem.d.ts +10 -0
- package/dist/types/components/MListItemMovement.d.ts +10 -0
- package/dist/types/components/MPaginator.d.ts +12 -0
- package/dist/types/components/MPopover.d.ts +1 -1
- package/dist/types/components/MSkeleton.d.ts +1 -1
- package/dist/types/components/MStepper.d.ts +12 -0
- package/dist/types/components/MTabContent.d.ts +1 -1
- package/dist/types/components/MTabs.d.ts +1 -1
- package/dist/types/components/MToastContainer.d.ts +1 -1
- package/dist/types/components/MTooltip.d.ts +1 -1
- package/dist/types/components/banking/MCollapseIconText.d.ts +1 -1
- package/dist/types/components/banking/MPermissionGroup.d.ts +1 -2
- package/dist/types/components/banking/MPermissionItem.d.ts +1 -2
- package/dist/types/components/banking/MSummaryCard.d.ts +1 -1
- package/dist/types/components/index.d.ts +7 -0
- package/dist/types/contexts/LiquidContext.d.ts +1 -1
- package/dist/types/contexts/ModalContext.d.ts +1 -1
- package/dist/types/contexts/OffcanvasContext.d.ts +1 -1
- package/dist/types/stories/components/MCarousel.stories.d.ts +9 -0
- package/dist/types/stories/components/MFormikInputCurrency.stories.d.ts +8 -0
- package/dist/types/stories/components/MList.stories.d.ts +10 -0
- package/dist/types/stories/components/MListItem.stories.d.ts +9 -0
- package/dist/types/stories/components/MListItemMovement.stories.d.ts +7 -0
- package/dist/types/stories/components/MPaginator.stories.d.ts +10 -0
- package/dist/types/stories/components/MStepper.stories.d.ts +7 -0
- package/dist/types/stories/hooks/useFormatCurrency.stories.d.ts +1 -2
- package/dist/types/stories/hooks/useModalContext.stories.d.ts +1 -2
- package/dist/types/stories/hooks/useOffcanvasContext.stories.d.ts +1 -2
- package/dist/types/stories/hooks/useToast.stories.d.ts +1 -2
- package/dist/types/utils/index.d.ts +1 -0
- package/package.json +16 -13
- package/src/style/components/_+import.scss +3 -0
- package/src/style/components/_m-carousel.scss +44 -0
- package/src/style/components/_m-paginator.scss +98 -0
- package/src/style/components/_m-stepper.scss +156 -0
- package/src/style/dynamic-ui-all.scss +3 -0
- package/src/style/dynamic-ui.scss +1 -0
- /package/dist/types/stories/{patterns → components}/MBadge.stories.d.ts +0 -0
- /package/dist/types/stories/{patterns → components}/MChip.stories.d.ts +0 -0
- /package/src/style/{main.scss → dynamic-ui-react.scss} +0 -0
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
.m-stepper {
|
|
2
|
+
/* Icon container */
|
|
3
|
+
--#{$prefix}m-step-icon-container-color: var(--#{$prefix}secondary);
|
|
4
|
+
--#{$prefix}m-step-icon-container-background-color: var(--#{$prefix}white);
|
|
5
|
+
--#{$prefix}m-step-icon-container-size: 34px;
|
|
6
|
+
--#{$prefix}m-step-icon-container-border-width: 1px;
|
|
7
|
+
--#{$prefix}m-step-icon-container-border-color: var(--#{$prefix}secondary);
|
|
8
|
+
--#{$prefix}m-step-icon-container-border-radius: 100%;
|
|
9
|
+
--#{$prefix}m-step-icon-container-z-index: 3;
|
|
10
|
+
|
|
11
|
+
/* Base step */
|
|
12
|
+
--#{$prefix}m-step-label-height: 3rem;
|
|
13
|
+
--#{$prefix}m-step-icon-size: 1.125rem;
|
|
14
|
+
--#{$prefix}m-step-gap: .5rem;
|
|
15
|
+
--#{$prefix}m-step-z-index: 2;
|
|
16
|
+
|
|
17
|
+
/* Checked step */
|
|
18
|
+
--#{$prefix}m-step-check-text-color: var(--#{$prefix}white);
|
|
19
|
+
--#{$prefix}m-step-check-background-color: var(--#{$prefix}success);
|
|
20
|
+
--#{$prefix}m-step-check-border-color: var(--#{$prefix}success);
|
|
21
|
+
|
|
22
|
+
/* Current step */
|
|
23
|
+
--#{$prefix}m-step-current-text-color: var(--#{$prefix}white);
|
|
24
|
+
--#{$prefix}m-step-current-background-color: var(--#{$prefix}secondary);
|
|
25
|
+
|
|
26
|
+
/* Step line */
|
|
27
|
+
--#{$prefix}m-step-line-stroke: 1px;
|
|
28
|
+
--#{$prefix}m-step-line-color: var(--#{$prefix}secondary);
|
|
29
|
+
|
|
30
|
+
/* Step label */
|
|
31
|
+
--#{$prefix}m-step-label-padding: var(--#{$prefix}ref-spacer-4);
|
|
32
|
+
--#{$prefix}m-vertical-step-label-padding: var(--#{$prefix}ref-spacer-3);
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
position: relative;
|
|
36
|
+
display: flex;
|
|
37
|
+
|
|
38
|
+
.m-step {
|
|
39
|
+
display: flex;
|
|
40
|
+
flex: 1 1 0;
|
|
41
|
+
flex-direction: column;
|
|
42
|
+
gap: var(--#{$prefix}m-step-gap);
|
|
43
|
+
|
|
44
|
+
.m-step-value {
|
|
45
|
+
position: relative;
|
|
46
|
+
display: flex;
|
|
47
|
+
justify-content: center;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.m-step-icon-container {
|
|
51
|
+
position: relative;
|
|
52
|
+
z-index: var(--#{$prefix}m-step-icon-container-z-index);
|
|
53
|
+
display: flex;
|
|
54
|
+
align-items: center;
|
|
55
|
+
justify-content: center;
|
|
56
|
+
width: var(--#{$prefix}m-step-icon-container-size);
|
|
57
|
+
height: var(--#{$prefix}m-step-icon-container-size);
|
|
58
|
+
|
|
59
|
+
color: var(--#{$prefix}m-step-icon-container-color);
|
|
60
|
+
background-color: var(--#{$prefix}m-step-icon-container-background-color);
|
|
61
|
+
border: var(--#{$prefix}m-step-icon-container-border-width) solid var(--#{$prefix}m-step-icon-container-border-color);
|
|
62
|
+
border-radius: var(--#{$prefix}m-step-icon-container-border-radius);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.m-step-check {
|
|
66
|
+
color: var(--#{$prefix}m-step-check-text-color);
|
|
67
|
+
background-color: var(--#{$prefix}m-step-check-background-color);
|
|
68
|
+
border-color: var(--#{$prefix}m-step-check-border-color);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.m-step-current {
|
|
72
|
+
color: var(--#{$prefix}m-step-current-text-color);
|
|
73
|
+
background-color: var(--#{$prefix}m-step-current-background-color);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.m-step-value::after {
|
|
77
|
+
position: absolute;
|
|
78
|
+
top: 50%;
|
|
79
|
+
z-index: var(--#{$prefix}m-step-z-index);
|
|
80
|
+
width: 100%;
|
|
81
|
+
height: var(--#{$prefix}m-step-line-stroke);
|
|
82
|
+
content: "";
|
|
83
|
+
background-color: var(--#{$prefix}m-step-line-color);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&:first-child .m-step-value::after {
|
|
87
|
+
left: 50%;
|
|
88
|
+
z-index: var(--#{$prefix}m-step-z-index);
|
|
89
|
+
width: 50%;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&:last-child .m-step-value::after {
|
|
93
|
+
right: 50%;
|
|
94
|
+
z-index: var(--#{$prefix}m-step-z-index);
|
|
95
|
+
width: 50%;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.m-step-label {
|
|
99
|
+
padding-right: var(--#{$prefix}m-step-label-padding);
|
|
100
|
+
padding-left: var(--#{$prefix}m-step-label-padding);
|
|
101
|
+
text-align: center;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&.is-vertical {
|
|
106
|
+
flex-direction: column;
|
|
107
|
+
|
|
108
|
+
.m-step {
|
|
109
|
+
flex-direction: row;
|
|
110
|
+
align-items: center;
|
|
111
|
+
|
|
112
|
+
.m-step-value {
|
|
113
|
+
align-items: center;
|
|
114
|
+
height: 100%;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.m-step-label {
|
|
118
|
+
display: flex;
|
|
119
|
+
flex-grow: 1;
|
|
120
|
+
align-items: center;
|
|
121
|
+
min-height: var(--#{$prefix}m-step-label-height);
|
|
122
|
+
padding: var(--#{$prefix}m-vertical-step-label-padding);
|
|
123
|
+
text-align: left;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.m-step-value::after {
|
|
127
|
+
position: absolute;
|
|
128
|
+
top: 0;
|
|
129
|
+
left: calc(50% - var(--#{$prefix}m-step-line-stroke));
|
|
130
|
+
z-index: var(--#{$prefix}m-step-z-index);
|
|
131
|
+
width: 0;
|
|
132
|
+
height: 100%;
|
|
133
|
+
content: "";
|
|
134
|
+
border: var(--#{$prefix}m-step-icon-container-border-width) solid var(--#{$prefix}m-step-icon-container-border-color);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
&:first-child .m-step-value::after {
|
|
138
|
+
top: 50%;
|
|
139
|
+
z-index: var(--#{$prefix}m-step-z-index);
|
|
140
|
+
width: 0;
|
|
141
|
+
height: 50%;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&:last-child .m-step-value::after {
|
|
145
|
+
z-index: var(--#{$prefix}m-step-z-index);
|
|
146
|
+
width: 0;
|
|
147
|
+
height: 50%;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.m-step-icon {
|
|
153
|
+
display: flex;
|
|
154
|
+
font-size: var(--#{$prefix}m-step-icon-size);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "@dynamic-framework/ui/src/style/dynamic-ui";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|