@axinom/mosaic-ui 0.67.0-rc.1 → 0.67.0-rc.2
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/components/Filters/Filter/Filter.d.ts.map +1 -1
- package/dist/components/Filters/SelectionTypes/DateTimeFilter/DateTimeFilter.d.ts.map +1 -1
- package/dist/index.es.js +4 -4
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Filters/Filter/Filter.scss +7 -1
- package/src/components/Filters/Filter/Filter.tsx +4 -2
- package/src/components/Filters/SelectionTypes/DateTimeFilter/DateTimeFilter.scss +12 -5
- package/src/components/Filters/SelectionTypes/DateTimeFilter/DateTimeFilter.tsx +28 -26
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axinom/mosaic-ui",
|
|
3
|
-
"version": "0.67.0-rc.
|
|
3
|
+
"version": "0.67.0-rc.2",
|
|
4
4
|
"description": "UI components for building Axinom Mosaic applications",
|
|
5
5
|
"author": "Axinom",
|
|
6
6
|
"license": "PROPRIETARY",
|
|
@@ -112,5 +112,5 @@
|
|
|
112
112
|
"publishConfig": {
|
|
113
113
|
"access": "public"
|
|
114
114
|
},
|
|
115
|
-
"gitHead": "
|
|
115
|
+
"gitHead": "2364d1ad780b65c4974987c3f3ac30e09dfe850e"
|
|
116
116
|
}
|
|
@@ -109,7 +109,7 @@ $input-inactive: 1px solid var(--input-border-color, $input-border-color);
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
.
|
|
112
|
+
.contentContainer {
|
|
113
113
|
display: grid;
|
|
114
114
|
grid-template-rows: 0fr;
|
|
115
115
|
transition: grid-template-rows 200ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -118,6 +118,12 @@ $input-inactive: 1px solid var(--input-border-color, $input-border-color);
|
|
|
118
118
|
grid-template-rows: 1fr;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
+
.content {
|
|
122
|
+
border-left: 1px solid transparent;
|
|
123
|
+
border-right: 1px solid transparent;
|
|
124
|
+
border-bottom: 1px solid transparent;
|
|
125
|
+
}
|
|
126
|
+
|
|
121
127
|
.active {
|
|
122
128
|
display: grid;
|
|
123
129
|
overflow: hidden;
|
|
@@ -274,7 +274,9 @@ export const Filter = <T extends Data>({
|
|
|
274
274
|
/>
|
|
275
275
|
</div>
|
|
276
276
|
<div
|
|
277
|
-
className={clsx(classes.
|
|
277
|
+
className={clsx(classes.contentContainer, {
|
|
278
|
+
[classes.expanded]: isExpanded,
|
|
279
|
+
})}
|
|
278
280
|
>
|
|
279
281
|
{hasValue && !isExpanded && (
|
|
280
282
|
<div
|
|
@@ -299,7 +301,7 @@ export const Filter = <T extends Data>({
|
|
|
299
301
|
{isExpanded && (
|
|
300
302
|
<div
|
|
301
303
|
data-test-id="filter-content"
|
|
302
|
-
className={clsx({ [classes.active]: isActive })}
|
|
304
|
+
className={clsx({ [classes.active]: isActive }, classes.content)}
|
|
303
305
|
>
|
|
304
306
|
{renderFilterContent()}
|
|
305
307
|
</div>
|
|
@@ -4,13 +4,24 @@
|
|
|
4
4
|
.container {
|
|
5
5
|
display: grid;
|
|
6
6
|
|
|
7
|
+
.dateTimeInputWrapper {
|
|
8
|
+
border: $input-inactive;
|
|
9
|
+
|
|
10
|
+
&:focus-within {
|
|
11
|
+
border: $input-active;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
7
14
|
.dateTimeInput {
|
|
8
15
|
display: grid;
|
|
9
16
|
grid-template-rows: 1fr;
|
|
10
17
|
grid-template-columns: 1fr min-content;
|
|
11
18
|
|
|
12
19
|
place-items: center;
|
|
13
|
-
border:
|
|
20
|
+
border: 2px solid transparent;
|
|
21
|
+
|
|
22
|
+
&:focus-within {
|
|
23
|
+
border: none;
|
|
24
|
+
}
|
|
14
25
|
|
|
15
26
|
.inputValue {
|
|
16
27
|
&:focus {
|
|
@@ -40,10 +51,6 @@
|
|
|
40
51
|
}
|
|
41
52
|
}
|
|
42
53
|
|
|
43
|
-
&:focus-within {
|
|
44
|
-
border: $input-active;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
54
|
&.hasError {
|
|
48
55
|
border: 3px solid
|
|
49
56
|
var(--input-invalid-border-color, $input-invalid-border-color);
|
|
@@ -106,32 +106,34 @@ export const DateTimeFilter: React.FC<DateTimeFilterProps> = ({
|
|
|
106
106
|
className,
|
|
107
107
|
)}
|
|
108
108
|
>
|
|
109
|
-
<div
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
e
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
109
|
+
<div className={clsx(classes.dateTimeInputWrapper)}>
|
|
110
|
+
<div
|
|
111
|
+
className={clsx(
|
|
112
|
+
classes.dateTimeInput,
|
|
113
|
+
'datetime-border-wrapper',
|
|
114
|
+
errorMsg && classes.hasError,
|
|
115
|
+
)}
|
|
116
|
+
ref={container}
|
|
117
|
+
>
|
|
118
|
+
<input
|
|
119
|
+
id={inputId}
|
|
120
|
+
autoFocus
|
|
121
|
+
className={clsx(classes.inputValue)}
|
|
122
|
+
onKeyDown={handleKeyDown}
|
|
123
|
+
onChange={(e) => setValue(e.target.value)}
|
|
124
|
+
value={value}
|
|
125
|
+
/>
|
|
126
|
+
<Button
|
|
127
|
+
className={clsx(classes.button)}
|
|
128
|
+
buttonContext={ButtonContext.None}
|
|
129
|
+
icon={IconName.Calendar}
|
|
130
|
+
onButtonClicked={(e) => {
|
|
131
|
+
e.persist();
|
|
132
|
+
e.preventDefault();
|
|
133
|
+
setShowPicker(!showPicker);
|
|
134
|
+
}}
|
|
135
|
+
/>
|
|
136
|
+
</div>
|
|
135
137
|
</div>
|
|
136
138
|
{errorMsg !== undefined && <small>{errorMsg}</small>}
|
|
137
139
|
</div>
|