@publishfx/publish-components 2.1.1 → 2.1.3

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.
@@ -107,9 +107,10 @@ const TimePickerSelect = (props)=>{
107
107
  },
108
108
  children: options.map((option)=>{
109
109
  const isSelected = currentValue.includes(option.value);
110
- return /*#__PURE__*/ jsxs("div", {
111
- className: `${index_module.optionItem} ${isSelected ? index_module.optionItemSelected : ""} ${option.disabled ? index_module.optionItemDisabled : ""}`,
112
- onClick: ()=>{
110
+ return /*#__PURE__*/ jsx(Checkbox, {
111
+ checked: isSelected,
112
+ disabled: option.disabled,
113
+ onChange: ()=>{
113
114
  if (option.disabled) return;
114
115
  const newValue = isSelected ? currentValue.filter((v)=>v !== option.value) : [
115
116
  ...currentValue,
@@ -117,27 +118,11 @@ const TimePickerSelect = (props)=>{
117
118
  ];
118
119
  handleChange(newValue);
119
120
  },
120
- children: [
121
- /*#__PURE__*/ jsx("div", {
122
- className: `${index_module.checkbox} ${isSelected ? index_module.checkboxChecked : ""}`,
123
- children: isSelected && /*#__PURE__*/ jsx("svg", {
124
- viewBox: "0 0 14 14",
125
- fill: "none",
126
- className: index_module.checkIcon,
127
- children: /*#__PURE__*/ jsx("path", {
128
- d: "M2.5 7L5.5 10L11.5 4",
129
- stroke: "currentColor",
130
- strokeWidth: "2",
131
- strokeLinecap: "round",
132
- strokeLinejoin: "round"
133
- })
134
- })
135
- }),
136
- /*#__PURE__*/ jsx("span", {
137
- className: index_module.optionLabel,
138
- children: option.label
139
- })
140
- ]
121
+ className: `${index_module.optionCheckbox} ${isSelected ? index_module.optionCheckboxSelected : ""} ${option.disabled ? index_module.optionCheckboxDisabled : ""}`,
122
+ children: /*#__PURE__*/ jsx("span", {
123
+ className: index_module.optionLabel,
124
+ children: option.label
125
+ })
141
126
  }, option.value);
142
127
  })
143
128
  })
@@ -12,12 +12,9 @@ const index_module = {
12
12
  selectAllText: "selectAllText-XhWUCP",
13
13
  clearBtn: "clearBtn-aUkoKx",
14
14
  optionsGrid: "optionsGrid-aFw9nI",
15
- optionItem: "optionItem-hSQko7",
16
- optionItemSelected: "optionItemSelected-gxv5lv",
17
- optionLabel: "optionLabel-KSY4BV",
18
- optionItemDisabled: "optionItemDisabled-fYreur",
19
- checkbox: "checkbox-_flWUW",
20
- checkboxChecked: "checkboxChecked-uaxISg",
21
- checkIcon: "checkIcon-y7k1OL"
15
+ optionCheckbox: "optionCheckbox-FLZ7GF",
16
+ optionCheckboxSelected: "optionCheckboxSelected-FFTvH6",
17
+ optionCheckboxDisabled: "optionCheckboxDisabled-lcXcnC",
18
+ optionLabel: "optionLabel-KSY4BV"
22
19
  };
23
20
  export { index_module as default };
@@ -7,7 +7,7 @@
7
7
  }
8
8
 
9
9
  .selectLabel-j8XQLR {
10
- color: #000000d9;
10
+ color: var(--color-text-1);
11
11
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif;
12
12
  font-size: 14px;
13
13
  font-weight: normal;
@@ -19,26 +19,26 @@
19
19
  }
20
20
 
21
21
  .timePickerSelect_select-xuD_LK .arco-select-view {
22
- background-color: #fff;
23
- border: 1px solid #d9d9d9;
24
- border-radius: 2px;
22
+ background-color: var(--color-bg-2);
23
+ border: 1px solid var(--color-border-2);
24
+ border-radius: var(--border-radius-small);
25
25
  min-height: 32px;
26
26
  padding: 4px 12px;
27
27
  transition: all .2s;
28
28
  }
29
29
 
30
30
  .timePickerSelect_select-xuD_LK .arco-select-view:hover {
31
- border-color: #40a9ff;
31
+ border-color: rgb(var(--primary-5));
32
32
  }
33
33
 
34
34
  .timePickerSelect_select-xuD_LK .arco-select-view-focused {
35
- border-color: #1890ff;
36
- box-shadow: 0 0 0 2px #1890ff33;
35
+ border-color: rgb(var(--primary-6));
36
+ box-shadow: 0 0 0 2px var(--color-primary-light-2);
37
37
  }
38
38
 
39
39
  .timePickerSelect_select-xuD_LK .arco-select-view-disabled {
40
+ background-color: var(--color-fill-2);
40
41
  cursor: not-allowed;
41
- background-color: #fafafa;
42
42
  }
43
43
 
44
44
  .timePickerSelect_select-xuD_LK .arco-select-view-selector {
@@ -49,12 +49,12 @@
49
49
  }
50
50
 
51
51
  .timePickerSelect_select-xuD_LK .arco-select-view-placeholder {
52
- color: #00000073;
52
+ color: var(--color-text-3);
53
53
  font-size: 14px;
54
54
  }
55
55
 
56
56
  .timePickerSelect_select-xuD_LK .arco-select-arrow-icon {
57
- color: #00000073;
57
+ color: var(--color-text-2);
58
58
  font-size: 16px;
59
59
  transition: transform .2s;
60
60
  }
@@ -63,39 +63,39 @@
63
63
  transform: rotate(180deg);
64
64
  }
65
65
 
66
- .arco-tag {
67
- color: #000000d9;
68
- background-color: #fafafa;
69
- border: 1px solid #d9d9d9;
70
- border-radius: 2px;
66
+ .timePickerSelect_select-xuD_LK .arco-tag {
67
+ background-color: var(--color-fill-2);
68
+ border: 1px solid var(--color-border-2);
69
+ border-radius: var(--border-radius-small);
70
+ height: 24px;
71
+ color: var(--color-text-1);
71
72
  align-items: center;
72
73
  gap: 4px;
73
- height: 24px;
74
74
  padding: 0 8px;
75
75
  font-size: 12px;
76
76
  display: inline-flex;
77
77
  }
78
78
 
79
- .arco-tag .arco-tag-content {
79
+ .timePickerSelect_select-xuD_LK .arco-tag .arco-tag-content {
80
80
  line-height: 1;
81
81
  }
82
82
 
83
- .arco-tag .arco-tag-icon-hover {
84
- color: #00000073;
85
- justify-content: center;
86
- align-items: center;
83
+ .timePickerSelect_select-xuD_LK .arco-tag .arco-tag-icon-hover {
87
84
  width: 12px;
88
85
  height: 12px;
86
+ color: var(--color-text-2);
87
+ justify-content: center;
88
+ align-items: center;
89
89
  margin-left: 0;
90
90
  transition: color .2s;
91
91
  display: flex;
92
92
  }
93
93
 
94
- .arco-tag .arco-tag-icon-hover:hover {
95
- color: #000000a6;
94
+ .timePickerSelect_select-xuD_LK .arco-tag .arco-tag-icon-hover:hover {
95
+ color: var(--color-text-1);
96
96
  }
97
97
 
98
- .arco-tag .arco-tag-icon-hover svg {
98
+ .timePickerSelect_select-xuD_LK .arco-tag .arco-tag-icon-hover svg {
99
99
  font-size: 12px;
100
100
  }
101
101
 
@@ -107,16 +107,16 @@
107
107
  }
108
108
 
109
109
  .dropdownContent-OfV283 {
110
- background-color: #fff;
111
- border: 1px solid #d9d9d9;
112
- border-radius: 2px;
110
+ background-color: var(--color-bg-2);
111
+ border: 1px solid var(--color-border-2);
112
+ border-radius: var(--border-radius-small);
113
+ box-shadow: var(--shadow2-down);
113
114
  min-width: 320px;
114
115
  padding: 8px;
115
- box-shadow: 0 2px 8px #0000001a;
116
116
  }
117
117
 
118
118
  .dropdownHeader-nILpAL {
119
- border-bottom: 1px solid #fafafa;
119
+ border-bottom: 1px solid var(--color-border-1);
120
120
  justify-content: space-between;
121
121
  align-items: center;
122
122
  height: 32px;
@@ -138,19 +138,19 @@
138
138
  }
139
139
 
140
140
  .dropdownHeader-nILpAL .selectAll-H78Ezl .selectAllText-XhWUCP {
141
- color: #1890ff;
141
+ color: rgb(var(--primary-6));
142
142
  font-size: 14px;
143
143
  }
144
144
 
145
145
  .dropdownHeader-nILpAL .clearBtn-aUkoKx {
146
- color: #00000073;
146
+ color: var(--color-text-3);
147
147
  cursor: pointer;
148
148
  font-size: 14px;
149
149
  transition: color .2s;
150
150
  }
151
151
 
152
152
  .dropdownHeader-nILpAL .clearBtn-aUkoKx:hover {
153
- color: #1890ff;
153
+ color: rgb(var(--primary-6));
154
154
  }
155
155
 
156
156
  .optionsGrid-aFw9nI {
@@ -160,56 +160,56 @@
160
160
  overflow-y: auto;
161
161
  }
162
162
 
163
- .optionItem-hSQko7 {
164
- cursor: pointer;
165
- border-radius: 2px;
163
+ .optionCheckbox-FLZ7GF {
164
+ border-radius: var(--border-radius-small);
166
165
  align-items: center;
167
- gap: 4px;
168
166
  height: 32px;
167
+ margin: 0;
169
168
  padding: 0 4px;
170
169
  transition: background-color .2s;
171
170
  display: flex;
172
171
  }
173
172
 
174
- .optionItem-hSQko7:hover {
175
- background-color: #fafafa;
173
+ .optionCheckbox-FLZ7GF:hover {
174
+ background-color: var(--color-fill-2);
176
175
  }
177
176
 
178
- .optionItem-hSQko7.optionItemSelected-gxv5lv .optionLabel-KSY4BV {
179
- color: #000000d9;
177
+ .optionCheckbox-FLZ7GF .arco-checkbox-inner {
178
+ border-radius: var(--border-radius-small);
179
+ border-color: var(--color-border-2);
180
+ width: 16px;
181
+ height: 16px;
180
182
  }
181
183
 
182
- .optionItem-hSQko7.optionItemDisabled-fYreur {
183
- opacity: .5;
184
- cursor: not-allowed;
184
+ .optionCheckbox-FLZ7GF .arco-checkbox-inner:after {
185
+ border-width: 2px;
186
+ width: 5px;
187
+ height: 9px;
188
+ top: 46%;
189
+ left: 24%;
185
190
  }
186
191
 
187
- .checkbox-_flWUW {
188
- background-color: #fff;
189
- border: 1px solid #d9d9d9;
190
- border-radius: 2px;
191
- flex-shrink: 0;
192
- justify-content: center;
193
- align-items: center;
194
- width: 16px;
195
- height: 16px;
196
- transition: all .2s;
197
- display: flex;
192
+ .optionCheckbox-FLZ7GF.optionCheckboxSelected-FFTvH6 .arco-checkbox-inner {
193
+ background-color: rgb(var(--primary-6));
194
+ border-color: rgb(var(--primary-6));
198
195
  }
199
196
 
200
- .checkbox-_flWUW.checkboxChecked-uaxISg {
201
- background-color: #1890ff;
202
- border-color: #1890ff;
197
+ .optionCheckbox-FLZ7GF.optionCheckboxDisabled-lcXcnC {
198
+ opacity: .5;
199
+ cursor: not-allowed;
203
200
  }
204
201
 
205
- .checkIcon-y7k1OL {
206
- color: #fff;
207
- width: 14px;
208
- height: 14px;
202
+ .optionCheckbox-FLZ7GF.optionCheckboxDisabled-lcXcnC .arco-checkbox-inner {
203
+ background-color: var(--color-fill-2);
204
+ border-color: var(--color-border-2);
205
+ }
206
+
207
+ .optionCheckbox-FLZ7GF .arco-checkbox-text {
208
+ margin-left: 4px;
209
209
  }
210
210
 
211
211
  .optionLabel-KSY4BV {
212
- color: #000000d9;
212
+ color: var(--color-text-1);
213
213
  user-select: none;
214
214
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif;
215
215
  font-size: 14px;
@@ -224,11 +224,11 @@
224
224
  }
225
225
 
226
226
  .optionsGrid-aFw9nI::-webkit-scrollbar-thumb {
227
- background: #d9d9d9;
227
+ background: var(--color-border-2);
228
228
  border-radius: 3px;
229
229
  }
230
230
 
231
231
  .optionsGrid-aFw9nI::-webkit-scrollbar-thumb:hover {
232
- background: #00000073;
232
+ background: var(--color-text-3);
233
233
  }
234
234
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@publishfx/publish-components",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "description": "A React UI component library for the Publish platform, including ActionButton component",
5
5
  "type": "module",
6
6
  "keywords": [