react-artasys-ui 0.1.6 → 0.1.8

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.
@@ -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
- .select::after {
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
 
@@ -74,20 +64,47 @@
74
64
  visibility: visible;
75
65
  }
76
66
 
77
- .title, .select-list > li {
67
+ .optgpoup {
68
+ padding: 0;
69
+ margin: 0;
70
+ list-style-type: none;
71
+ }
72
+
73
+ .optgpoup > li.label {
74
+ padding: 10px;
75
+ font-weight: bold;
76
+ cursor: default;
77
+ }
78
+
79
+ .optgpoup > li.option {
80
+ padding-left: 5% !important;
81
+ }
82
+
83
+ .title, .select-list li {
78
84
  font-size: 20px;
79
85
  color: #1D1D1B;
86
+ user-select: none;
80
87
  }
81
88
 
82
89
  .title {
83
90
  flex: 1;
84
91
  }
85
92
 
86
- .select-list > li {
93
+ .select-list li.option {
94
+ display: flex;
95
+ justify-content: flex-start;
96
+ align-items: center;
97
+ min-height: 25px;
87
98
  padding: 5px;
88
99
  cursor: pointer;
89
100
  }
90
101
 
91
- .select-list > li:hover, .select-list > li.active {
102
+ .select-list li.option:hover, .select-list li.option.active {
92
103
  background-color: #BED4DB;
104
+ }
105
+
106
+ .select-list li.option.disabled {
107
+ background-color: #EFEFEF;
108
+ color: #CCCCCC;
109
+ cursor: default;
93
110
  }
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,