@oneblink/apps-react 0.5.6 → 0.5.7

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.
@@ -1,3 +1,92 @@
1
+ .ob-steps-navigation__header {
2
+ display: none;
3
+ }
4
+
5
+ .ob-form-container {
6
+ .steps {
7
+ &.is-small {
8
+ font-size: $size-6;
9
+ }
10
+
11
+ .step-item {
12
+ font-size: $size-7;
13
+ cursor: pointer;
14
+
15
+ &:focus {
16
+ outline: none;
17
+ }
18
+
19
+ &.is-disabled {
20
+ .step-marker {
21
+ opacity: 0.2;
22
+ }
23
+ }
24
+
25
+ &.is-error {
26
+ .step-marker {
27
+ background-color: transparent;
28
+ border-color: transparent;
29
+
30
+ .material-icons {
31
+ background-color: $white;
32
+ }
33
+ }
34
+ }
35
+ }
36
+
37
+ .steps-content {
38
+ width: 100%;
39
+
40
+ .step-content {
41
+ width: 100%;
42
+
43
+ &.is-invisible {
44
+ position: fixed;
45
+ top: 0;
46
+ bottom: 0;
47
+ overflow: hidden;
48
+ }
49
+ }
50
+
51
+ &.is-single-step {
52
+ margin-top: 0;
53
+ margin-bottom: 0;
54
+ }
55
+ }
56
+
57
+ .step-progress-mobile {
58
+ display: none;
59
+ }
60
+ }
61
+ }
62
+
63
+ .steps-header-active-page-icon {
64
+ color: $primary;
65
+ border: 0.2em solid $primary;
66
+ border-radius: 50%;
67
+ min-height: $size-4;
68
+ min-width: $size-4;
69
+ font-size: $size-7;
70
+ margin-right: $size-8;
71
+ display: inline-flex;
72
+ justify-content: center;
73
+ align-items: center;
74
+ }
75
+
76
+ @media only screen and (min-width: $tablet) {
77
+ .ob-steps-navigation__steps {
78
+ .steps.is-small {
79
+ flex-wrap: nowrap;
80
+ overflow-x: auto;
81
+
82
+ .step-item {
83
+ min-width: 100px;
84
+ margin: $size-8;
85
+ }
86
+ }
87
+ }
88
+ }
89
+
1
90
  @media only screen and (max-width: $tablet) {
2
91
  .steps.is-horizontal-tablet {
3
92
  flex-direction: column;
@@ -44,4 +133,96 @@
44
133
  }
45
134
  }
46
135
  }
136
+
137
+ .ob-steps-navigation {
138
+ position: relative;
139
+ }
140
+
141
+ .ob-steps-navigation__header {
142
+ z-index: 30;
143
+ height: $size-1;
144
+ display: flex;
145
+ align-items: center;
146
+ background-color: $white-ter;
147
+ box-shadow: $elevation-2;
148
+ -webkit-transition: box-shadow 0.2s ease;
149
+ -moz-transition: box-shadow 0.2s ease;
150
+ -o-transition: box-shadow 0.2s ease;
151
+ transition: box-shadow 0.2s ease;
152
+
153
+ &:focus {
154
+ outline: none;
155
+ }
156
+
157
+ &.is-active {
158
+ box-shadow: none;
159
+
160
+ & > .dropdown.icon {
161
+ transform: rotate(180deg);
162
+ }
163
+ }
164
+
165
+ .steps-header-active-page {
166
+ flex: 1;
167
+ min-width: 0;
168
+ display: flex;
169
+ justify-content: center;
170
+ align-items: center;
171
+
172
+ .icon {
173
+ margin-right: $size-8;
174
+ }
175
+ }
176
+
177
+ .steps-header-active-page-label {
178
+ white-space: nowrap;
179
+ overflow: hidden;
180
+ text-overflow: ellipsis;
181
+ }
182
+
183
+ .icon {
184
+ padding: $size-7;
185
+ line-height: 1;
186
+ -webkit-transition: transform 0.2s linear;
187
+ -moz-transition: transform 0.2s linear;
188
+ -o-transition: transform 0.2s linear;
189
+ transition: transform 0.2s linear;
190
+ }
191
+ }
192
+
193
+ .ob-steps-navigation__steps {
194
+ z-index: 30;
195
+ position: absolute;
196
+ top: $size-1;
197
+ right: 0;
198
+ left: 0;
199
+ background-color: $white;
200
+ box-shadow: none;
201
+ max-height: 0;
202
+ overflow-y: auto;
203
+ -webkit-transition: box-shadow 0.2s ease, max-height 0.2s ease;
204
+ -moz-transition: box-shadow 0.2s ease, max-height 0.2s ease;
205
+ -o-transition: box-shadow 0.2s ease, max-height 0.2s ease;
206
+ transition: box-shadow 0.2s ease, max-height 0.2s ease;
207
+
208
+ &.is-active {
209
+ box-shadow: $elevation-3;
210
+ max-height: 40vh;
211
+ }
212
+
213
+ .steps {
214
+ padding: $size-4;
215
+ }
216
+ }
217
+
218
+ .ob-steps-navigation__background.is-active {
219
+ background-color: $black;
220
+ opacity: 0.2;
221
+ z-index: 20;
222
+ position: absolute;
223
+ top: 0;
224
+ bottom: 0;
225
+ right: 0;
226
+ left: 0;
227
+ }
47
228
  }
package/dist/styles.css CHANGED
@@ -8829,6 +8829,73 @@ button on-loading {
8829
8829
  font-size: 50px;
8830
8830
  }
8831
8831
 
8832
+ .ob-steps-navigation__header {
8833
+ display: none;
8834
+ }
8835
+
8836
+ .ob-form-container .steps.is-small {
8837
+ font-size: 1rem;
8838
+ }
8839
+ .ob-form-container .steps .step-item {
8840
+ font-size: 0.75rem;
8841
+ cursor: pointer;
8842
+ }
8843
+ .ob-form-container .steps .step-item:focus {
8844
+ outline: none;
8845
+ }
8846
+ .ob-form-container .steps .step-item.is-disabled .step-marker {
8847
+ opacity: 0.2;
8848
+ }
8849
+ .ob-form-container .steps .step-item.is-error .step-marker {
8850
+ background-color: transparent;
8851
+ border-color: transparent;
8852
+ }
8853
+ .ob-form-container .steps .step-item.is-error .step-marker .material-icons {
8854
+ background-color: white;
8855
+ }
8856
+ .ob-form-container .steps .steps-content {
8857
+ width: 100%;
8858
+ }
8859
+ .ob-form-container .steps .steps-content .step-content {
8860
+ width: 100%;
8861
+ }
8862
+ .ob-form-container .steps .steps-content .step-content.is-invisible {
8863
+ position: fixed;
8864
+ top: 0;
8865
+ bottom: 0;
8866
+ overflow: hidden;
8867
+ }
8868
+ .ob-form-container .steps .steps-content.is-single-step {
8869
+ margin-top: 0;
8870
+ margin-bottom: 0;
8871
+ }
8872
+ .ob-form-container .steps .step-progress-mobile {
8873
+ display: none;
8874
+ }
8875
+
8876
+ .steps-header-active-page-icon {
8877
+ color: #4c8da7;
8878
+ border: 0.2em solid #4c8da7;
8879
+ border-radius: 50%;
8880
+ min-height: 1.5rem;
8881
+ min-width: 1.5rem;
8882
+ font-size: 0.75rem;
8883
+ margin-right: 0.5rem;
8884
+ display: inline-flex;
8885
+ justify-content: center;
8886
+ align-items: center;
8887
+ }
8888
+
8889
+ @media only screen and (min-width: 769px) {
8890
+ .ob-steps-navigation__steps .steps.is-small {
8891
+ flex-wrap: nowrap;
8892
+ overflow-x: auto;
8893
+ }
8894
+ .ob-steps-navigation__steps .steps.is-small .step-item {
8895
+ min-width: 100px;
8896
+ margin: 0.5rem;
8897
+ }
8898
+ }
8832
8899
  @media only screen and (max-width: 769px) {
8833
8900
  .steps.is-horizontal-tablet {
8834
8901
  flex-direction: column;
@@ -8868,6 +8935,89 @@ button on-loading {
8868
8935
  .steps.is-horizontal-tablet .step-item .step-details .step-subtitle {
8869
8936
  position: absolute;
8870
8937
  }
8938
+
8939
+ .ob-steps-navigation {
8940
+ position: relative;
8941
+ }
8942
+
8943
+ .ob-steps-navigation__header {
8944
+ z-index: 30;
8945
+ height: 3rem;
8946
+ display: flex;
8947
+ align-items: center;
8948
+ background-color: whitesmoke;
8949
+ box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12);
8950
+ -webkit-transition: box-shadow 0.2s ease;
8951
+ -moz-transition: box-shadow 0.2s ease;
8952
+ -o-transition: box-shadow 0.2s ease;
8953
+ transition: box-shadow 0.2s ease;
8954
+ }
8955
+ .ob-steps-navigation__header:focus {
8956
+ outline: none;
8957
+ }
8958
+ .ob-steps-navigation__header.is-active {
8959
+ box-shadow: none;
8960
+ }
8961
+ .ob-steps-navigation__header.is-active > .dropdown.icon {
8962
+ transform: rotate(180deg);
8963
+ }
8964
+ .ob-steps-navigation__header .steps-header-active-page {
8965
+ flex: 1;
8966
+ min-width: 0;
8967
+ display: flex;
8968
+ justify-content: center;
8969
+ align-items: center;
8970
+ }
8971
+ .ob-steps-navigation__header .steps-header-active-page .icon {
8972
+ margin-right: 0.5rem;
8973
+ }
8974
+ .ob-steps-navigation__header .steps-header-active-page-label {
8975
+ white-space: nowrap;
8976
+ overflow: hidden;
8977
+ text-overflow: ellipsis;
8978
+ }
8979
+ .ob-steps-navigation__header .icon {
8980
+ padding: 0.75rem;
8981
+ line-height: 1;
8982
+ -webkit-transition: transform 0.2s linear;
8983
+ -moz-transition: transform 0.2s linear;
8984
+ -o-transition: transform 0.2s linear;
8985
+ transition: transform 0.2s linear;
8986
+ }
8987
+
8988
+ .ob-steps-navigation__steps {
8989
+ z-index: 30;
8990
+ position: absolute;
8991
+ top: 3rem;
8992
+ right: 0;
8993
+ left: 0;
8994
+ background-color: white;
8995
+ box-shadow: none;
8996
+ max-height: 0;
8997
+ overflow-y: auto;
8998
+ -webkit-transition: box-shadow 0.2s ease, max-height 0.2s ease;
8999
+ -moz-transition: box-shadow 0.2s ease, max-height 0.2s ease;
9000
+ -o-transition: box-shadow 0.2s ease, max-height 0.2s ease;
9001
+ transition: box-shadow 0.2s ease, max-height 0.2s ease;
9002
+ }
9003
+ .ob-steps-navigation__steps.is-active {
9004
+ box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 0.2), 0 3px 4px 0 rgba(0, 0, 0, 0.14), 0 3px 3px -2px rgba(0, 0, 0, 0.12);
9005
+ max-height: 40vh;
9006
+ }
9007
+ .ob-steps-navigation__steps .steps {
9008
+ padding: 1.5rem;
9009
+ }
9010
+
9011
+ .ob-steps-navigation__background.is-active {
9012
+ background-color: #0a0a0a;
9013
+ opacity: 0.2;
9014
+ z-index: 20;
9015
+ position: absolute;
9016
+ top: 0;
9017
+ bottom: 0;
9018
+ right: 0;
9019
+ left: 0;
9020
+ }
8871
9021
  }
8872
9022
  .select {
8873
9023
  width: 100%;
@@ -9062,52 +9212,9 @@ textarea:disabled {
9062
9212
  margin-left: 0.5rem;
9063
9213
  }
9064
9214
 
9065
- .ob-steps-navigation__header {
9066
- display: none;
9067
- }
9068
-
9069
9215
  .ob-form-container {
9070
9216
  position: relative;
9071
9217
  }
9072
- .ob-form-container .steps.is-small {
9073
- font-size: 1rem;
9074
- }
9075
- .ob-form-container .steps .step-item {
9076
- font-size: 0.75rem;
9077
- cursor: pointer;
9078
- }
9079
- .ob-form-container .steps .step-item:focus {
9080
- outline: none;
9081
- }
9082
- .ob-form-container .steps .step-item.is-disabled .step-marker {
9083
- opacity: 0.2;
9084
- }
9085
- .ob-form-container .steps .step-item.is-error .step-marker {
9086
- background-color: transparent;
9087
- border-color: transparent;
9088
- }
9089
- .ob-form-container .steps .step-item.is-error .step-marker .material-icons {
9090
- background-color: white;
9091
- }
9092
- .ob-form-container .steps .steps-content {
9093
- width: 100%;
9094
- }
9095
- .ob-form-container .steps .steps-content .step-content {
9096
- width: 100%;
9097
- }
9098
- .ob-form-container .steps .steps-content .step-content.is-invisible {
9099
- position: fixed;
9100
- top: 0;
9101
- bottom: 0;
9102
- overflow: hidden;
9103
- }
9104
- .ob-form-container .steps .steps-content.is-single-step {
9105
- margin-top: 0;
9106
- margin-bottom: 0;
9107
- }
9108
- .ob-form-container .steps .step-progress-mobile {
9109
- display: none;
9110
- }
9111
9218
  .ob-form-container .field {
9112
9219
  width: 100%;
9113
9220
  }
@@ -9123,19 +9230,6 @@ textarea:disabled {
9123
9230
  flex: 1;
9124
9231
  }
9125
9232
 
9126
- .steps-header-active-page-icon {
9127
- color: #4c8da7;
9128
- border: 0.2em solid #4c8da7;
9129
- border-radius: 50%;
9130
- min-height: 1.5rem;
9131
- min-width: 1.5rem;
9132
- font-size: 0.75rem;
9133
- margin-right: 0.5rem;
9134
- display: inline-flex;
9135
- justify-content: center;
9136
- align-items: center;
9137
- }
9138
-
9139
9233
  @media only screen and (max-width: 767px) {
9140
9234
  .ob-form-container .ob-button {
9141
9235
  flex: 1;
@@ -9149,90 +9243,6 @@ textarea:disabled {
9149
9243
  min-width: unset;
9150
9244
  }
9151
9245
  }
9152
- @media only screen and (max-width: 769px) {
9153
- .ob-steps-navigation {
9154
- position: relative;
9155
- }
9156
-
9157
- .ob-steps-navigation__header {
9158
- z-index: 30;
9159
- height: 3rem;
9160
- display: flex;
9161
- align-items: center;
9162
- background-color: whitesmoke;
9163
- box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12);
9164
- -webkit-transition: box-shadow 0.2s ease;
9165
- -moz-transition: box-shadow 0.2s ease;
9166
- -o-transition: box-shadow 0.2s ease;
9167
- transition: box-shadow 0.2s ease;
9168
- }
9169
- .ob-steps-navigation__header:focus {
9170
- outline: none;
9171
- }
9172
- .ob-steps-navigation__header.is-active {
9173
- box-shadow: none;
9174
- }
9175
- .ob-steps-navigation__header.is-active > .dropdown.icon {
9176
- transform: rotate(180deg);
9177
- }
9178
- .ob-steps-navigation__header .steps-header-active-page {
9179
- flex: 1;
9180
- min-width: 0;
9181
- display: flex;
9182
- justify-content: center;
9183
- align-items: center;
9184
- }
9185
- .ob-steps-navigation__header .steps-header-active-page .icon {
9186
- margin-right: 0.5rem;
9187
- }
9188
- .ob-steps-navigation__header .steps-header-active-page-label {
9189
- white-space: nowrap;
9190
- overflow: hidden;
9191
- text-overflow: ellipsis;
9192
- }
9193
- .ob-steps-navigation__header .icon {
9194
- padding: 0.75rem;
9195
- line-height: 1;
9196
- -webkit-transition: transform 0.2s linear;
9197
- -moz-transition: transform 0.2s linear;
9198
- -o-transition: transform 0.2s linear;
9199
- transition: transform 0.2s linear;
9200
- }
9201
-
9202
- .ob-steps-navigation__steps {
9203
- z-index: 30;
9204
- position: absolute;
9205
- top: 3rem;
9206
- right: 0;
9207
- left: 0;
9208
- background-color: white;
9209
- box-shadow: none;
9210
- max-height: 0;
9211
- overflow-y: auto;
9212
- -webkit-transition: box-shadow 0.2s ease, max-height 0.2s ease;
9213
- -moz-transition: box-shadow 0.2s ease, max-height 0.2s ease;
9214
- -o-transition: box-shadow 0.2s ease, max-height 0.2s ease;
9215
- transition: box-shadow 0.2s ease, max-height 0.2s ease;
9216
- }
9217
- .ob-steps-navigation__steps.is-active {
9218
- box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 0.2), 0 3px 4px 0 rgba(0, 0, 0, 0.14), 0 3px 3px -2px rgba(0, 0, 0, 0.12);
9219
- max-height: 40vh;
9220
- }
9221
- .ob-steps-navigation__steps .steps {
9222
- padding: 1.5rem;
9223
- }
9224
-
9225
- .ob-steps-navigation__background.is-active {
9226
- background-color: #0a0a0a;
9227
- opacity: 0.2;
9228
- z-index: 20;
9229
- position: absolute;
9230
- top: 0;
9231
- bottom: 0;
9232
- right: 0;
9233
- left: 0;
9234
- }
9235
- }
9236
9246
  .ob-hint-tooltip {
9237
9247
  max-width: 400px;
9238
9248
  }