react-artasys-ui 0.1.7 → 0.1.9
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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/lib/Components/Arrow/Arrow.d.ts +6 -0
- package/lib/Components/Arrow/index.d.ts +2 -0
- package/lib/Dropdown/Dropdown.d.ts +13 -0
- package/lib/Dropdown/Item.d.ts +11 -0
- package/lib/Dropdown/index.d.ts +9 -0
- package/lib/Select/Optgroup.d.ts +8 -0
- package/lib/Select/Option.d.ts +2 -1
- package/lib/Select/Select.d.ts +5 -3
- package/lib/Select/index.d.ts +3 -1
- package/lib/index.d.ts +3 -2
- package/package.json +2 -2
- package/src/Components/Arrow/Arrow.tsx +18 -0
- package/src/Components/Arrow/index.tsx +3 -0
- package/src/Components/Arrow/style.module.css +40 -0
- package/src/Dropdown/Dropdown.tsx +109 -0
- package/src/Dropdown/Item.tsx +42 -0
- package/src/Dropdown/index.tsx +28 -0
- package/src/Dropdown/style.module.css +67 -0
- package/src/Select/Optgroup.tsx +19 -0
- package/src/Select/Option.tsx +9 -4
- package/src/Select/Select.tsx +16 -8
- package/src/Select/index.tsx +8 -2
- package/src/Select/style.module.css +45 -21
- package/src/Spinner/style.module.css +4 -0
- package/src/index.ts +9 -2
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
justify-content: center;
|
|
12
12
|
min-height: 25px;
|
|
13
|
+
outline: none;
|
|
13
14
|
cursor: pointer;
|
|
14
15
|
}
|
|
15
16
|
|
|
@@ -22,22 +23,11 @@
|
|
|
22
23
|
padding: 10px;
|
|
23
24
|
}
|
|
24
25
|
|
|
25
|
-
.
|
|
26
|
-
content: "";
|
|
27
|
-
display: block;
|
|
28
|
-
width: 0;
|
|
29
|
-
height: 0;
|
|
30
|
-
border-left: 5px solid transparent;
|
|
31
|
-
border-right: 5px solid transparent;
|
|
32
|
-
border-top: 10px solid #5EBED6;
|
|
33
|
-
transition: rotate 0.3s;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.container-element:has(input[type="hidden"]:disabled) .select::after {
|
|
26
|
+
.container-element:has(input[type="hidden"]:disabled) .arrow::after {
|
|
37
27
|
border-top-color: #CCCCCC;
|
|
38
28
|
}
|
|
39
29
|
|
|
40
|
-
.container.opened > .select::after {
|
|
30
|
+
.container.opened > .select > .arrow::after {
|
|
41
31
|
rotate: 180deg;
|
|
42
32
|
}
|
|
43
33
|
|
|
@@ -45,25 +35,32 @@
|
|
|
45
35
|
position: absolute;
|
|
46
36
|
display: flex;
|
|
47
37
|
flex-direction: column;
|
|
48
|
-
width: 100%;
|
|
38
|
+
min-width: 100%;
|
|
49
39
|
max-height: 40vh;
|
|
50
|
-
|
|
40
|
+
max-height: 40dvh;
|
|
51
41
|
top: calc(100% - 1px);
|
|
52
|
-
|
|
42
|
+
right: -1px;
|
|
53
43
|
margin: 0;
|
|
54
44
|
padding: 0;
|
|
55
45
|
list-style-type: none;
|
|
56
46
|
background-color: #FFFFFF;
|
|
57
47
|
box-shadow: 0px 4px 5px 0px rgb(0 0 0 / 10%);
|
|
58
|
-
|
|
48
|
+
border: 1px solid #CCCCCC;
|
|
59
49
|
overflow: auto;
|
|
60
|
-
border-top: 0;
|
|
61
50
|
opacity: 0;
|
|
62
51
|
visibility: hidden;
|
|
63
52
|
transform: translateY(-10%);
|
|
64
53
|
transition: transform 0.3s ease-in-out, opacity 0.3s, visibility 0.3s;
|
|
65
54
|
}
|
|
66
55
|
|
|
56
|
+
.container.left > .select-list {
|
|
57
|
+
left: -1px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.container.right > .select-list {
|
|
61
|
+
right: -1px;
|
|
62
|
+
}
|
|
63
|
+
|
|
67
64
|
.container.hidden > .select-list {
|
|
68
65
|
display: none;
|
|
69
66
|
}
|
|
@@ -74,20 +71,47 @@
|
|
|
74
71
|
visibility: visible;
|
|
75
72
|
}
|
|
76
73
|
|
|
77
|
-
.
|
|
74
|
+
.optgpoup {
|
|
75
|
+
padding: 0;
|
|
76
|
+
margin: 0;
|
|
77
|
+
list-style-type: none;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.optgpoup > li.label {
|
|
81
|
+
padding: 10px;
|
|
82
|
+
font-weight: bold;
|
|
83
|
+
cursor: default;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.optgpoup > li.option {
|
|
87
|
+
padding-left: 5% !important;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.title, .select-list li {
|
|
78
91
|
font-size: 20px;
|
|
79
92
|
color: #1D1D1B;
|
|
93
|
+
user-select: none;
|
|
80
94
|
}
|
|
81
95
|
|
|
82
96
|
.title {
|
|
83
97
|
flex: 1;
|
|
84
98
|
}
|
|
85
99
|
|
|
86
|
-
.select-list
|
|
100
|
+
.select-list li.option {
|
|
101
|
+
display: flex;
|
|
102
|
+
justify-content: flex-start;
|
|
103
|
+
align-items: center;
|
|
104
|
+
min-height: 25px;
|
|
87
105
|
padding: 5px;
|
|
88
106
|
cursor: pointer;
|
|
89
107
|
}
|
|
90
108
|
|
|
91
|
-
.select-list
|
|
109
|
+
.select-list li.option:hover, .select-list li.option.active {
|
|
92
110
|
background-color: #BED4DB;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.select-list li.option.disabled {
|
|
114
|
+
background-color: #EFEFEF;
|
|
115
|
+
color: #CCCCCC;
|
|
116
|
+
cursor: default;
|
|
93
117
|
}
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
.spinner {
|
|
4
4
|
--color-rgb: 94, 190, 214;
|
|
5
|
+
display: flex;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
align-items: center;
|
|
5
8
|
width: 100%;
|
|
6
9
|
height: 100%;
|
|
7
10
|
max-width: 100px;
|
|
@@ -9,6 +12,7 @@
|
|
|
9
12
|
aspect-ratio: 1/1;
|
|
10
13
|
padding-left: calc(-0.5rem / 2);
|
|
11
14
|
padding-right: calc(-0.5rem / 2);
|
|
15
|
+
overflow: hidden;
|
|
12
16
|
}
|
|
13
17
|
|
|
14
18
|
.spinner::before {
|
package/src/index.ts
CHANGED
|
@@ -21,8 +21,12 @@ import UploadImages,{
|
|
|
21
21
|
import Checkbox from "./Checkbox";
|
|
22
22
|
import Progress from "./Progress";
|
|
23
23
|
import Select,{
|
|
24
|
-
SelectOption
|
|
24
|
+
SelectOption,
|
|
25
|
+
SelectOptgroup
|
|
25
26
|
} from "./Select";
|
|
27
|
+
import Dropdown,{
|
|
28
|
+
DropdownItem
|
|
29
|
+
} from "./Dropdown";
|
|
26
30
|
|
|
27
31
|
const UI = {
|
|
28
32
|
|
|
@@ -42,7 +46,10 @@ export {
|
|
|
42
46
|
Checkbox,
|
|
43
47
|
Progress,
|
|
44
48
|
Select,
|
|
45
|
-
SelectOption
|
|
49
|
+
SelectOption,
|
|
50
|
+
SelectOptgroup,
|
|
51
|
+
Dropdown,
|
|
52
|
+
DropdownItem
|
|
46
53
|
};
|
|
47
54
|
export type {
|
|
48
55
|
TFileData,
|