@scaleflex/widget-common 4.0.7 → 4.1.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.
@@ -1,254 +1,254 @@
1
- @import '@scaleflex/widget-core/lib/_variables.scss';
2
-
3
- // packages/@filerobot/common/src/DatePicker/MyDatePicker.jsx
4
- .filerobot-common-datePicker{
5
- position: relative;
6
-
7
-
8
- * {
9
- -webkit-touch-callout: none; /* iOS Safari */
10
- -webkit-user-select: none; /* Chrome/Safari/Opera */
11
- -khtml-user-select: none; /* Konqueror */
12
- -moz-user-select: none; /* Firefox */
13
- -ms-user-select: none; /* Internet Explorer/Edge */
14
- user-select: none; /* Non-prefixed version, currently */
15
- }
16
-
17
- &-overlay {
18
- position: absolute;
19
- top: 0;
20
- left: 0;
21
- right: 0;
22
- bottom: 0;
23
- }
24
-
25
- &-input {
26
- overflow: hidden;
27
-
28
- input {
29
- cursor: pointer;
30
- }
31
-
32
- input:focus{
33
- outline: none;
34
- }
35
- }
36
-
37
- &-container {
38
- position: absolute;
39
- width: 215px;
40
- min-height: 200px;
41
- max-height: 240px;
42
- background: #fff;
43
- box-shadow: 10px 10px 40px rgba(0,0,0,0.2);
44
- border-radius: 4px;
45
- overflow: hidden;
46
- padding: 12px 12px;
47
- z-index: 11111111111111;
48
-
49
- &-head {
50
- display: flex;
51
- align-items: center;
52
- &-body{
53
- float: left;
54
- width: 120px;
55
- height: 100%;
56
-
57
- &-year{
58
- width: 100%;
59
- height: 30px;
60
- font-size: 27px;
61
- color: $active;
62
- font-weight: 200px;
63
- text-align: center;
64
- float: left;
65
- }
66
- &-month{
67
- float: left;
68
- width: 100%;
69
- height: 15px;
70
- font-size: 13px;
71
- color: $active;
72
- font-weight: 200px;
73
- text-align: center;
74
- }
75
- }
76
-
77
- &-button{
78
- width: 45px;
79
- height: 100%;
80
- box-sizing: border-box;
81
- position: relative;
82
- &-inner {
83
- float: left;
84
- height: 25px;
85
- width: 25px;
86
- background: #f4f4f4;
87
- border-radius: 2px;
88
- line-height: 35px;
89
- text-align: center;
90
- position: absolute;
91
- top:50%;
92
- left: 50%;
93
- margin-left: -17px;
94
- margin-top: -17px;
95
-
96
- &:hover > span{
97
- border-color: #555!important;
98
- }
99
-
100
- &:hover {
101
- cursor: pointer;
102
- background: #eee;
103
- }
104
- }
105
- }
106
- }
107
- }
108
-
109
- &-calendar {
110
- width: 100%;
111
- height: 100%;
112
-
113
- &-body,
114
- &-day span,
115
- &-day,
116
- &-day-container
117
- {
118
- position: relative;
119
- display: block;
120
- float: left;
121
- -webkit-box-sizing: border-box;
122
- -moz-box-sizing: border-box;
123
- box-sizing: border-box;
124
- }
125
-
126
- &-body {
127
- height: 250px;
128
- width: 100%;
129
- }
130
-
131
- &-day {
132
- width: 14%;
133
- height: 10%;
134
-
135
- &-container{
136
- width: 100%;
137
- height: 100%;
138
- font-size: 12px;
139
- font-weight: 300;
140
- color: $darkgrey;
141
- text-align: center;
142
-
143
- & span{
144
- width: 25px;
145
- height: 25px;
146
- margin-top: -15px;
147
- margin-left: -15px;
148
- left: 50%;
149
- top: 50%;
150
- font-weight: 400;
151
- border-radius: 2px;
152
- line-height: 30px;
153
-
154
- &:hover{
155
- cursor: pointer;
156
- background: $active-secondary;
157
- }
158
- }
159
- }
160
-
161
- &.disabled{
162
- pointer-events: none;
163
- }
164
- &.disabled &-container span{
165
- color: #ddd;
166
- }
167
- &.disabled &-container span{
168
- background: #fff!important;
169
- }
170
-
171
- &.highlight &-container span{
172
- background: $active;
173
- }
174
- &.highlight-green &-container span{
175
- background: $accent-active;
176
- color: $white;
177
- }
178
- }
179
-
180
- &-head {
181
- display: flex;
182
- height: 20px;
183
- width: 100%;
184
- margin-top: 2px;
185
- margin-bottom: 5px;
186
-
187
- &-name {
188
- width: 14.285%;
189
- height: 30px;
190
- line-height: 30px;
191
- font-weight: 700;
192
- color: $active;
193
- font-size: 9px;
194
- text-align: center;
195
- }
196
- }
197
- }
198
- }
199
-
200
-
201
-
202
-
203
-
204
- .mdpchbi-right-arrows:after,
205
- .mdpchbi-left-arrows:after,
206
- .mdpchbi-right-arrow,
207
- .mdpchbi-right-arrows,
208
- .mdpchbi-left-arrow,
209
- .mdpchbi-left-arrows{
210
- display: block;
211
- float: left;
212
- width: 6px;
213
- height: 6px;
214
- border-left: 2px solid #888;
215
- border-bottom: 2px solid #888;
216
- position: absolute;
217
- }
218
- .mdpchbi-right-arrow,
219
- .mdpchbi-right-arrows,
220
- .mdpchbi-left-arrow,
221
- .mdpchbi-left-arrows{
222
- transform: rotate(45deg);
223
- left: 50%;
224
- top:50%;
225
- margin-left: -2px;
226
- margin-top: -4px;
227
- }
228
- .mdpchbi-right-arrows,
229
- .mdpchbi-right-arrow {
230
- transform: rotate(225deg);
231
- margin-left: -4px;
232
- }
233
- .mdpchbi-right-arrows:after,
234
- .mdpchbi-left-arrows:after{
235
- content: '';
236
- }
237
-
238
- .mdpchbi-left-arrows{
239
- margin-left: -5px;
240
- }
241
- .mdpchbi-right-arrows{
242
- margin-left: -2px;
243
- }
244
- .mdpchbi-right-arrows:after,
245
- .mdpchbi-left-arrows:after{
246
- left: 3px;
247
- top: -5px
248
- }
249
-
250
-
251
-
252
-
253
-
254
-
1
+ @import '@scaleflex/widget-core/lib/_variables.scss';
2
+
3
+ // packages/@filerobot/common/src/DatePicker/MyDatePicker.jsx
4
+ .filerobot-common-datePicker{
5
+ position: relative;
6
+
7
+
8
+ * {
9
+ -webkit-touch-callout: none; /* iOS Safari */
10
+ -webkit-user-select: none; /* Chrome/Safari/Opera */
11
+ -khtml-user-select: none; /* Konqueror */
12
+ -moz-user-select: none; /* Firefox */
13
+ -ms-user-select: none; /* Internet Explorer/Edge */
14
+ user-select: none; /* Non-prefixed version, currently */
15
+ }
16
+
17
+ &-overlay {
18
+ position: absolute;
19
+ top: 0;
20
+ left: 0;
21
+ right: 0;
22
+ bottom: 0;
23
+ }
24
+
25
+ &-input {
26
+ overflow: hidden;
27
+
28
+ input {
29
+ cursor: pointer;
30
+ }
31
+
32
+ input:focus{
33
+ outline: none;
34
+ }
35
+ }
36
+
37
+ &-container {
38
+ position: absolute;
39
+ width: 215px;
40
+ min-height: 200px;
41
+ max-height: 240px;
42
+ background: #fff;
43
+ box-shadow: 10px 10px 40px rgba(0,0,0,0.2);
44
+ border-radius: 4px;
45
+ overflow: hidden;
46
+ padding: 12px 12px;
47
+ z-index: 11111111111111;
48
+
49
+ &-head {
50
+ display: flex;
51
+ align-items: center;
52
+ &-body{
53
+ float: left;
54
+ width: 120px;
55
+ height: 100%;
56
+
57
+ &-year{
58
+ width: 100%;
59
+ height: 30px;
60
+ font-size: 27px;
61
+ color: $active;
62
+ font-weight: 200px;
63
+ text-align: center;
64
+ float: left;
65
+ }
66
+ &-month{
67
+ float: left;
68
+ width: 100%;
69
+ height: 15px;
70
+ font-size: 13px;
71
+ color: $active;
72
+ font-weight: 200px;
73
+ text-align: center;
74
+ }
75
+ }
76
+
77
+ &-button{
78
+ width: 45px;
79
+ height: 100%;
80
+ box-sizing: border-box;
81
+ position: relative;
82
+ &-inner {
83
+ float: left;
84
+ height: 25px;
85
+ width: 25px;
86
+ background: #f4f4f4;
87
+ border-radius: 2px;
88
+ line-height: 35px;
89
+ text-align: center;
90
+ position: absolute;
91
+ top:50%;
92
+ left: 50%;
93
+ margin-left: -17px;
94
+ margin-top: -17px;
95
+
96
+ &:hover > span{
97
+ border-color: #555!important;
98
+ }
99
+
100
+ &:hover {
101
+ cursor: pointer;
102
+ background: #eee;
103
+ }
104
+ }
105
+ }
106
+ }
107
+ }
108
+
109
+ &-calendar {
110
+ width: 100%;
111
+ height: 100%;
112
+
113
+ &-body,
114
+ &-day span,
115
+ &-day,
116
+ &-day-container
117
+ {
118
+ position: relative;
119
+ display: block;
120
+ float: left;
121
+ -webkit-box-sizing: border-box;
122
+ -moz-box-sizing: border-box;
123
+ box-sizing: border-box;
124
+ }
125
+
126
+ &-body {
127
+ height: 250px;
128
+ width: 100%;
129
+ }
130
+
131
+ &-day {
132
+ width: 14%;
133
+ height: 10%;
134
+
135
+ &-container{
136
+ width: 100%;
137
+ height: 100%;
138
+ font-size: 12px;
139
+ font-weight: 300;
140
+ color: $darkgrey;
141
+ text-align: center;
142
+
143
+ & span{
144
+ width: 25px;
145
+ height: 25px;
146
+ margin-top: -15px;
147
+ margin-left: -15px;
148
+ left: 50%;
149
+ top: 50%;
150
+ font-weight: 400;
151
+ border-radius: 2px;
152
+ line-height: 30px;
153
+
154
+ &:hover{
155
+ cursor: pointer;
156
+ background: $active-secondary;
157
+ }
158
+ }
159
+ }
160
+
161
+ &.disabled{
162
+ pointer-events: none;
163
+ }
164
+ &.disabled &-container span{
165
+ color: #ddd;
166
+ }
167
+ &.disabled &-container span{
168
+ background: #fff!important;
169
+ }
170
+
171
+ &.highlight &-container span{
172
+ background: $active;
173
+ }
174
+ &.highlight-green &-container span{
175
+ background: $accent-active;
176
+ color: $white;
177
+ }
178
+ }
179
+
180
+ &-head {
181
+ display: flex;
182
+ height: 20px;
183
+ width: 100%;
184
+ margin-top: 2px;
185
+ margin-bottom: 5px;
186
+
187
+ &-name {
188
+ width: 14.285%;
189
+ height: 30px;
190
+ line-height: 30px;
191
+ font-weight: 700;
192
+ color: $active;
193
+ font-size: 9px;
194
+ text-align: center;
195
+ }
196
+ }
197
+ }
198
+ }
199
+
200
+
201
+
202
+
203
+
204
+ .mdpchbi-right-arrows:after,
205
+ .mdpchbi-left-arrows:after,
206
+ .mdpchbi-right-arrow,
207
+ .mdpchbi-right-arrows,
208
+ .mdpchbi-left-arrow,
209
+ .mdpchbi-left-arrows{
210
+ display: block;
211
+ float: left;
212
+ width: 6px;
213
+ height: 6px;
214
+ border-left: 2px solid #888;
215
+ border-bottom: 2px solid #888;
216
+ position: absolute;
217
+ }
218
+ .mdpchbi-right-arrow,
219
+ .mdpchbi-right-arrows,
220
+ .mdpchbi-left-arrow,
221
+ .mdpchbi-left-arrows{
222
+ transform: rotate(45deg);
223
+ left: 50%;
224
+ top:50%;
225
+ margin-left: -2px;
226
+ margin-top: -4px;
227
+ }
228
+ .mdpchbi-right-arrows,
229
+ .mdpchbi-right-arrow {
230
+ transform: rotate(225deg);
231
+ margin-left: -4px;
232
+ }
233
+ .mdpchbi-right-arrows:after,
234
+ .mdpchbi-left-arrows:after{
235
+ content: '';
236
+ }
237
+
238
+ .mdpchbi-left-arrows{
239
+ margin-left: -5px;
240
+ }
241
+ .mdpchbi-right-arrows{
242
+ margin-left: -2px;
243
+ }
244
+ .mdpchbi-right-arrows:after,
245
+ .mdpchbi-left-arrows:after{
246
+ left: 3px;
247
+ top: -5px
248
+ }
249
+
250
+
251
+
252
+
253
+
254
+
@@ -25,18 +25,18 @@ var FilterPopup = function FilterPopup(_ref) {
25
25
  zIndex = _ref$zIndex === void 0 ? 1200 : _ref$zIndex;
26
26
  var popupRef = useRef(null);
27
27
  useEffect(function () {
28
- /**
29
- * The popups created by components such as SFX DatePicker, Calendar, Select, etc.,
30
- * are appended directly to the DOM root element (body element).
31
- * Therefore, we cannot directly access these popups from within the filter Popover.
32
- *
33
- * To handle outside clicks, we need to:
34
- * 1. Check if the click happened inside our popup (referenced by popupRef).
35
- * 2. Check if the click happened inside any of the dynamically created poppers
36
- * (identified by the class name specified in SFX_CLASSES.POPPER).
37
- * 3. Check if the click happened on a filter item (identified by the class name specified in SFX_CLASSES.FILTER_ITEM).
38
- *
39
- * If the click did not occur within any of these elements, we trigger the onRequestClose callback.
28
+ /**
29
+ * The popups created by components such as SFX DatePicker, Calendar, Select, etc.,
30
+ * are appended directly to the DOM root element (body element).
31
+ * Therefore, we cannot directly access these popups from within the filter Popover.
32
+ *
33
+ * To handle outside clicks, we need to:
34
+ * 1. Check if the click happened inside our popup (referenced by popupRef).
35
+ * 2. Check if the click happened inside any of the dynamically created poppers
36
+ * (identified by the class name specified in SFX_CLASSES.POPPER).
37
+ * 3. Check if the click happened on a filter item (identified by the class name specified in SFX_CLASSES.FILTER_ITEM).
38
+ *
39
+ * If the click did not occur within any of these elements, we trigger the onRequestClose callback.
40
40
  */
41
41
  var handleClickOutside = function handleClickOutside(event) {
42
42
  if (!popupRef.current) return;
@@ -10,10 +10,10 @@ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i
10
10
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
11
11
  var baseClassName = 'filerobot-common-FormHelperText';
12
12
 
13
- /**
14
- * @param {object} props
15
- * @param {('small'|'medium')} [props.size='small']
16
- * @param {boolean} [props.noMargin=false]
13
+ /**
14
+ * @param {object} props
15
+ * @param {('small'|'medium')} [props.size='small']
16
+ * @param {boolean} [props.noMargin=false]
17
17
  */
18
18
  var FormHelperText = function FormHelperText(_ref) {
19
19
  var classes = _ref.classes,
@@ -9,8 +9,8 @@ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i
9
9
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
10
10
  import BaseButton from './BaseButton';
11
11
 
12
- /*
13
- * @size = small/medium/large/fullWidth
12
+ /*
13
+ * @size = small/medium/large/fullWidth
14
14
  */
15
15
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
16
  export default (function (_ref) {
@@ -1,49 +1,49 @@
1
- // usages in a few files
2
- // ==================================================================
3
- // ======================== TransitionWrapper =======================
4
- // ==================================================================
5
- .filerobot-TransitionWrapper {
6
- --translateX: 0;
7
- --translateY-shown: 0;
8
- --translateY-hidden: -105%;
9
- display: none;
10
- position: absolute;
11
- top: 0;
12
- background: $white;
13
- overflow-y: hidden;
14
-
15
- &.--applied {
16
- display: block;
17
- z-index: $zIndex-2;
18
- height: 100%;
19
- width: 100%;
20
- }
21
- }
22
-
23
- // ==================================================================
24
- // =========================== Transitions ==========================
25
- // ==================================================================
26
-
27
- // Slide down/up transition
28
-
29
- .filerobot-transition-slideDownUp-enter {
30
- opacity: 0.01;
31
- transform: translate3d(var(--translateX), var(--translateY-hidden), 0);
32
- transition: transform 0.25s ease-in-out, opacity 0.25s ease-in-out;
33
- }
34
-
35
- .filerobot-transition-slideDownUp-enter.filerobot-transition-slideDownUp-enter-active {
36
- opacity: 1;
37
- transform: translate3d(var(--translateX), var(--translateY-shown), 0);
38
- }
39
-
40
- .filerobot-transition-slideDownUp-leave {
41
- opacity: 1;
42
- transform: translate3d(var(--translateX), var(--translateY-shown), 0);
43
- transition: transform 0.25s ease-in-out, opacity 0.25s ease-in-out;
44
- }
45
-
46
- .filerobot-transition-slideDownUp-leave.filerobot-transition-slideDownUp-leave-active {
47
- opacity: 0.01;
48
- transform: translate3d(var(--translateX), var(--translateY-hidden), 0);
49
- }
1
+ // usages in a few files
2
+ // ==================================================================
3
+ // ======================== TransitionWrapper =======================
4
+ // ==================================================================
5
+ .filerobot-TransitionWrapper {
6
+ --translateX: 0;
7
+ --translateY-shown: 0;
8
+ --translateY-hidden: -105%;
9
+ display: none;
10
+ position: absolute;
11
+ top: 0;
12
+ background: $white;
13
+ overflow-y: hidden;
14
+
15
+ &.--applied {
16
+ display: block;
17
+ z-index: $zIndex-2;
18
+ height: 100%;
19
+ width: 100%;
20
+ }
21
+ }
22
+
23
+ // ==================================================================
24
+ // =========================== Transitions ==========================
25
+ // ==================================================================
26
+
27
+ // Slide down/up transition
28
+
29
+ .filerobot-transition-slideDownUp-enter {
30
+ opacity: 0.01;
31
+ transform: translate3d(var(--translateX), var(--translateY-hidden), 0);
32
+ transition: transform 0.25s ease-in-out, opacity 0.25s ease-in-out;
33
+ }
34
+
35
+ .filerobot-transition-slideDownUp-enter.filerobot-transition-slideDownUp-enter-active {
36
+ opacity: 1;
37
+ transform: translate3d(var(--translateX), var(--translateY-shown), 0);
38
+ }
39
+
40
+ .filerobot-transition-slideDownUp-leave {
41
+ opacity: 1;
42
+ transform: translate3d(var(--translateX), var(--translateY-shown), 0);
43
+ transition: transform 0.25s ease-in-out, opacity 0.25s ease-in-out;
44
+ }
45
+
46
+ .filerobot-transition-slideDownUp-leave.filerobot-transition-slideDownUp-leave-active {
47
+ opacity: 0.01;
48
+ transform: translate3d(var(--translateX), var(--translateY-hidden), 0);
49
+ }