@kaizen/components 3.0.2 → 3.0.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.
- package/dist/cjs/src/ClearButton/ClearButton.cjs +1 -1
- package/dist/cjs/src/ClearButton/ClearButton.module.css.cjs +8 -0
- package/dist/esm/src/ClearButton/ClearButton.mjs +1 -1
- package/dist/esm/src/ClearButton/ClearButton.module.css.mjs +6 -0
- package/dist/styles.css +33 -24
- package/locales/kk-KZ.json +259 -0
- package/package.json +6 -6
- package/src/ClearButton/{ClearButton.module.scss → ClearButton.module.css} +12 -10
- package/src/ClearButton/ClearButton.tsx +1 -1
- package/dist/cjs/src/ClearButton/ClearButton.module.scss.cjs +0 -8
- package/dist/esm/src/ClearButton/ClearButton.module.scss.mjs +0 -6
|
@@ -4,7 +4,7 @@ var tslib = require('tslib');
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var classnames = require('classnames');
|
|
6
6
|
var Icon = require('../Icon/Icon.cjs');
|
|
7
|
-
var ClearButton_module = require('./ClearButton.module.
|
|
7
|
+
var ClearButton_module = require('./ClearButton.module.css.cjs');
|
|
8
8
|
function _interopDefault(e) {
|
|
9
9
|
return e && e.__esModule ? e : {
|
|
10
10
|
default: e
|
|
@@ -2,7 +2,7 @@ import { __rest, __assign } from 'tslib';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import { Icon } from '../Icon/Icon.mjs';
|
|
5
|
-
import styles from './ClearButton.module.
|
|
5
|
+
import styles from './ClearButton.module.css.mjs';
|
|
6
6
|
const ClearButton = /*#__PURE__*/function () {
|
|
7
7
|
const ClearButton = function (_a) {
|
|
8
8
|
var classNameOverride = _a.classNameOverride,
|
package/dist/styles.css
CHANGED
|
@@ -2575,12 +2575,10 @@
|
|
|
2575
2575
|
margin-bottom: 0;
|
|
2576
2576
|
}
|
|
2577
2577
|
}
|
|
2578
|
-
/** THIS IS AN AUTOGENERATED FILE **/
|
|
2579
|
-
/** THIS IS AN AUTOGENERATED FILE **/
|
|
2580
2578
|
@layer kz-components {
|
|
2581
|
-
.ClearButton-
|
|
2579
|
+
.ClearButton-module_clearButton__qOM0I {
|
|
2580
|
+
/* Button reset */
|
|
2582
2581
|
appearance: none;
|
|
2583
|
-
display: inline;
|
|
2584
2582
|
background: transparent;
|
|
2585
2583
|
color: inherit;
|
|
2586
2584
|
font: inherit;
|
|
@@ -2590,30 +2588,41 @@
|
|
|
2590
2588
|
position: relative;
|
|
2591
2589
|
display: inline-flex;
|
|
2592
2590
|
border-radius: 100%;
|
|
2591
|
+
|
|
2592
|
+
&:hover {
|
|
2593
|
+
cursor: pointer;
|
|
2594
|
+
}
|
|
2595
|
+
|
|
2596
|
+
&:focus-visible {
|
|
2597
|
+
outline: var(--border-focus-ring-border-width) var(--border-focus-ring-border-style)
|
|
2598
|
+
var(--color-blue-500);
|
|
2599
|
+
outline-offset: -1px;
|
|
2600
|
+
}
|
|
2593
2601
|
}
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
color: var(--color-gray-500, #878792);
|
|
2603
|
-
}
|
|
2604
|
-
.ClearButton-module_default__lBJxw:hover, .ClearButton-module_default__lBJxw:focus-visible {
|
|
2605
|
-
color: var(--color-purple-800, #2f2438);
|
|
2606
|
-
}
|
|
2607
|
-
.ClearButton-module_reversed__0I2DC {
|
|
2608
|
-
color: rgba(var(--color-white-rgb, 255, 255, 255), 0.8);
|
|
2609
|
-
}
|
|
2610
|
-
.ClearButton-module_reversed__0I2DC:hover, .ClearButton-module_reversed__0I2DC:focus-visible {
|
|
2611
|
-
color: var(--color-white, #ffffff);
|
|
2602
|
+
|
|
2603
|
+
.ClearButton-module_default__0y2mv {
|
|
2604
|
+
color: var(--color-gray-500);
|
|
2605
|
+
|
|
2606
|
+
&:hover,
|
|
2607
|
+
&:focus-visible {
|
|
2608
|
+
color: var(--color-purple-800);
|
|
2609
|
+
}
|
|
2612
2610
|
}
|
|
2613
|
-
|
|
2614
|
-
|
|
2611
|
+
|
|
2612
|
+
.ClearButton-module_reversed__AfUH1 {
|
|
2613
|
+
color: rgb(var(--color-white-rgb), 0.8);
|
|
2614
|
+
|
|
2615
|
+
&:hover,
|
|
2616
|
+
&:focus-visible {
|
|
2617
|
+
color: var(--color-white);
|
|
2618
|
+
}
|
|
2619
|
+
|
|
2620
|
+
&:focus-visible {
|
|
2621
|
+
outline-color: var(--color-blue-300);
|
|
2622
|
+
}
|
|
2615
2623
|
}
|
|
2616
2624
|
}
|
|
2625
|
+
|
|
2617
2626
|
/** THIS IS AN AUTOGENERATED FILE **/
|
|
2618
2627
|
/** THIS IS AN AUTOGENERATED FILE **/
|
|
2619
2628
|
/** THIS IS AN AUTOGENERATED FILE **/
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
{
|
|
2
|
+
"smartling" : {
|
|
3
|
+
"string_format" : "icu",
|
|
4
|
+
"translate_paths" : [
|
|
5
|
+
{
|
|
6
|
+
"instruction" : "*/description",
|
|
7
|
+
"key" : "{*}/message",
|
|
8
|
+
"path" : "*/message"
|
|
9
|
+
}],
|
|
10
|
+
"variants_enabled" : true
|
|
11
|
+
},
|
|
12
|
+
"date.validation.invalidDate" : {
|
|
13
|
+
"description" : "Error message when the user enters an invalid date and we do not know their input value",
|
|
14
|
+
"message" : "Date is invalid"
|
|
15
|
+
},
|
|
16
|
+
"date.validation.invalidDateWithValue" : {
|
|
17
|
+
"description" : "Error message when the user enters an invalid date and we know their input value",
|
|
18
|
+
"message" : "{inputValue} is an invalid date"
|
|
19
|
+
},
|
|
20
|
+
"date.validation.rangeEndBeforeRangeStart" : {
|
|
21
|
+
"description" : "Error message when the user tries to select an end date earlier than the start date",
|
|
22
|
+
"message" : "Cannot be earlier than the selection in \"{startDateFieldLabel}\""
|
|
23
|
+
},
|
|
24
|
+
"date.validation.unavailableDate" : {
|
|
25
|
+
"description" : "Error message when the user tries to select a date that is unavailable",
|
|
26
|
+
"message" : "{inputValue} is not available, try another date"
|
|
27
|
+
},
|
|
28
|
+
"dateInputDescription.inputFormat" : {
|
|
29
|
+
"description" : "Label for the 'Input format' field",
|
|
30
|
+
"message" : "Input format"
|
|
31
|
+
},
|
|
32
|
+
"datePicker.calendarLabelDescription" : {
|
|
33
|
+
"description" : "Label for the search input",
|
|
34
|
+
"message" : "Select date from calendar for:"
|
|
35
|
+
},
|
|
36
|
+
"filterBar.addFiltersMenu.buttonLabel" : {
|
|
37
|
+
"description" : "Menu button label to show additional available filter options",
|
|
38
|
+
"message" : "Add filters"
|
|
39
|
+
},
|
|
40
|
+
"filterBar.clearAllButton.ariaLabel" : {
|
|
41
|
+
"description" : "Button aria-label to clear all values within the filter bar",
|
|
42
|
+
"message" : "Clear all filters"
|
|
43
|
+
},
|
|
44
|
+
"filterBar.clearAllButton.label" : {
|
|
45
|
+
"description" : "Button label to clear all values within the filter bar",
|
|
46
|
+
"message" : "Clear all"
|
|
47
|
+
},
|
|
48
|
+
"filterButton.removable.removeButtonLabel" : {
|
|
49
|
+
"description" : "Button label to remove a single filter from the filter bar",
|
|
50
|
+
"message" : "Remove filter - {filterLabel}"
|
|
51
|
+
},
|
|
52
|
+
"filterDatePickerDateInputField.dateInputLabelFallback" : {
|
|
53
|
+
"description" : "Default label for date input field",
|
|
54
|
+
"message" : "Date"
|
|
55
|
+
},
|
|
56
|
+
"filterDateRangePicker.dateFrom" : {
|
|
57
|
+
"description" : "Label for the 'Date from' field",
|
|
58
|
+
"message" : "Date from"
|
|
59
|
+
},
|
|
60
|
+
"filterDateRangePicker.dateTo" : {
|
|
61
|
+
"description" : "Label for the 'date to' field",
|
|
62
|
+
"message" : "Date to"
|
|
63
|
+
},
|
|
64
|
+
"filterMultiSelectClearButton.label" : {
|
|
65
|
+
"description" : "Clear button label for filter multi-select",
|
|
66
|
+
"message" : "Clear<VisuallyHidden> selections</VisuallyHidden>"
|
|
67
|
+
},
|
|
68
|
+
"filterMultiSelectMultiSelectOption.available" : {
|
|
69
|
+
"description" : "Number of filter items available",
|
|
70
|
+
"message" : "<Badge>{count}</Badge><VisuallyHidden> available</VisuallyHidden>"
|
|
71
|
+
},
|
|
72
|
+
"filterMultiSelectSearchInput.label" : {
|
|
73
|
+
"description" : "Label for the search input",
|
|
74
|
+
"message" : "Filter options by search query"
|
|
75
|
+
},
|
|
76
|
+
"filterMultiSelectSearchInput.placeholder" : {
|
|
77
|
+
"description" : "Placeholder for the search input",
|
|
78
|
+
"message" : "Search…"
|
|
79
|
+
},
|
|
80
|
+
"filterMultiSelectSelectAllButton.label" : {
|
|
81
|
+
"description" : "Select all button in filter multi select",
|
|
82
|
+
"message" : "Select all"
|
|
83
|
+
},
|
|
84
|
+
"inputSearch.clear" : {
|
|
85
|
+
"description" : "Label for the clear search button",
|
|
86
|
+
"message" : "Clear search"
|
|
87
|
+
},
|
|
88
|
+
"kz.rte.bold" : {
|
|
89
|
+
"description" : "Label for the \"Bold\" button in a text editor",
|
|
90
|
+
"message" : "Bold"
|
|
91
|
+
},
|
|
92
|
+
"kz.rte.bullet_list" : {
|
|
93
|
+
"description" : "Label for the \"Bullet list\" button in a text editor",
|
|
94
|
+
"message" : "Bullet list"
|
|
95
|
+
},
|
|
96
|
+
"kz.rte.decrease_indent" : {
|
|
97
|
+
"description" : "Label for the \"Decrease indent\" button in a text editor",
|
|
98
|
+
"message" : "Decrease indent"
|
|
99
|
+
},
|
|
100
|
+
"kz.rte.increase_indent" : {
|
|
101
|
+
"description" : "Label for the \"Increase indent\" button in a text editor",
|
|
102
|
+
"message" : "Increase indent"
|
|
103
|
+
},
|
|
104
|
+
"kz.rte.italic" : {
|
|
105
|
+
"description" : "Label for the \"Italic\" button in a text editor",
|
|
106
|
+
"message" : "Italic"
|
|
107
|
+
},
|
|
108
|
+
"kz.rte.link" : {
|
|
109
|
+
"description" : "Label for the \"Link\" button in a text editor that allows the creation of hyperlinks in the text",
|
|
110
|
+
"message" : "Link"
|
|
111
|
+
},
|
|
112
|
+
"kz.rte.numbered_list" : {
|
|
113
|
+
"description" : "Label for the \"Numbered list\" button in a text editor",
|
|
114
|
+
"message" : "Numbered list"
|
|
115
|
+
},
|
|
116
|
+
"kz.rte.toolbar.aria_label" : {
|
|
117
|
+
"description" : "Label for the text formatting toolbar in a Rich Text Editor",
|
|
118
|
+
"message" : "Text formatting"
|
|
119
|
+
},
|
|
120
|
+
"kz.rte.underline" : {
|
|
121
|
+
"description" : "Label for the \"Underline\" button in a text editor",
|
|
122
|
+
"message" : "Underline"
|
|
123
|
+
},
|
|
124
|
+
"kzErrorPage" : {
|
|
125
|
+
"description" : "Label for contact button",
|
|
126
|
+
"message" : "Contact support"
|
|
127
|
+
},
|
|
128
|
+
"kzErrorPage.400.message" : {
|
|
129
|
+
"description" : "Call to action instructions for the user",
|
|
130
|
+
"message" : "Problem loading page right now. Try again or head home."
|
|
131
|
+
},
|
|
132
|
+
"kzErrorPage.400.title" : {
|
|
133
|
+
"description" : "Heading for page",
|
|
134
|
+
"message" : "Problem loading page"
|
|
135
|
+
},
|
|
136
|
+
"kzErrorPage.401.message" : {
|
|
137
|
+
"description" : "Call to action instructions for the user",
|
|
138
|
+
"message" : "Sorry but we can't verify if you're able to view this page. Go back and try again, or head to Home"
|
|
139
|
+
},
|
|
140
|
+
"kzErrorPage.401.title" : {
|
|
141
|
+
"description" : "Main title for page",
|
|
142
|
+
"message" : "You can't view this page"
|
|
143
|
+
},
|
|
144
|
+
"kzErrorPage.403.message" : {
|
|
145
|
+
"description" : "Call to action instructions for the user",
|
|
146
|
+
"message" : "Sorry but it looks like you don’t have permission to view this page. Go back and try again, or head to Home"
|
|
147
|
+
},
|
|
148
|
+
"kzErrorPage.403.title" : {
|
|
149
|
+
"description" : "Main title for page",
|
|
150
|
+
"message" : "You can't view this page"
|
|
151
|
+
},
|
|
152
|
+
"kzErrorPage.404.message" : {
|
|
153
|
+
"description" : "Call to action instructions for the user",
|
|
154
|
+
"message" : "Sorry but we can't find the page you're looking for. Go back and try again, or head to Home"
|
|
155
|
+
},
|
|
156
|
+
"kzErrorPage.404.title" : {
|
|
157
|
+
"description" : "Main title of page",
|
|
158
|
+
"message" : "Page not found"
|
|
159
|
+
},
|
|
160
|
+
"kzErrorPage.413" : {
|
|
161
|
+
"description" : "Call to action instructions for the user",
|
|
162
|
+
"message" : "Sorry there's an issue with our system and this page can't be displayed. Go back and try again, or head to Home"
|
|
163
|
+
},
|
|
164
|
+
"kzErrorPage.413.title" : {
|
|
165
|
+
"description" : "Main title of page",
|
|
166
|
+
"message" : "Something's gone wrong on our side"
|
|
167
|
+
},
|
|
168
|
+
"kzErrorPage.422.message" : {
|
|
169
|
+
"description" : "Call to action instructions for the user",
|
|
170
|
+
"message" : "Sorry but your change couldn't be made. Go back and try again, or head to Home"
|
|
171
|
+
},
|
|
172
|
+
"kzErrorPage.422.title" : {
|
|
173
|
+
"description" : "Main title of page",
|
|
174
|
+
"message" : "Change couldn't be made"
|
|
175
|
+
},
|
|
176
|
+
"kzErrorPage.500" : {
|
|
177
|
+
"description" : "Call to action instructions for the user",
|
|
178
|
+
"message" : "Sorry there's an issue with our system and this page can't be displayed. Go back and try again, or head to Home"
|
|
179
|
+
},
|
|
180
|
+
"kzErrorPage.500.title" : {
|
|
181
|
+
"description" : "Main title of page",
|
|
182
|
+
"message" : "Something's gone wrong on our side"
|
|
183
|
+
},
|
|
184
|
+
"kzErrorPage.502.message" : {
|
|
185
|
+
"description" : "Call to action instructions for the user",
|
|
186
|
+
"message" : "Sorry about this. The best thing to do is go back and try again."
|
|
187
|
+
},
|
|
188
|
+
"kzErrorPage.502.title" : {
|
|
189
|
+
"description" : "Main title of page",
|
|
190
|
+
"message" : "You can't view this page"
|
|
191
|
+
},
|
|
192
|
+
"kzErrorPage.503.message" : {
|
|
193
|
+
"description" : "Call to action instructions for the user",
|
|
194
|
+
"message" : "Sorry about this. The best thing to do is go back and try again."
|
|
195
|
+
},
|
|
196
|
+
"kzErrorPage.503.title" : {
|
|
197
|
+
"description" : "Main title of page",
|
|
198
|
+
"message" : "You can't view this page"
|
|
199
|
+
},
|
|
200
|
+
"kzErrorPage.504.message" : {
|
|
201
|
+
"description" : "Call to action instructions for the user",
|
|
202
|
+
"message" : "Sorry about this. The best thing to do is go back and try again."
|
|
203
|
+
},
|
|
204
|
+
"kzErrorPage.504.title" : {
|
|
205
|
+
"description" : "Main title of page",
|
|
206
|
+
"message" : "You can't view this page"
|
|
207
|
+
},
|
|
208
|
+
"kzErrorPage.errorCode" : {
|
|
209
|
+
"message" : "Error code {code}"
|
|
210
|
+
},
|
|
211
|
+
"kzErrorPage.goToHome" : {
|
|
212
|
+
"description" : "Home button label",
|
|
213
|
+
"message" : "Go to Home"
|
|
214
|
+
},
|
|
215
|
+
"kzGenericTile.infoButtonLabel" : {
|
|
216
|
+
"description" : "Prompts user to interact with button to reveal more information",
|
|
217
|
+
"message" : "View more information:"
|
|
218
|
+
},
|
|
219
|
+
"kzGenericTile.infoButtonReturnLabel" : {
|
|
220
|
+
"description" : "Prompts user to interact with button to hide information",
|
|
221
|
+
"message" : "Hide information:"
|
|
222
|
+
},
|
|
223
|
+
"kzTitleBlock.combinedOverflowMenuLabel" : {
|
|
224
|
+
"description" : "Label for the dropdown menu which displays additional action items and secondary actions",
|
|
225
|
+
"message" : "Open combined secondary and overflow menu"
|
|
226
|
+
},
|
|
227
|
+
"kzTitleBlock.defaultActionMinimizedOverflowMenuLabel" : {
|
|
228
|
+
"description" : "Label for the dropdown menu which displays the default action item",
|
|
229
|
+
"message" : "Open default action overflow menu"
|
|
230
|
+
},
|
|
231
|
+
"kzTitleBlock.hamburgerMenuLabel" : {
|
|
232
|
+
"description" : "Label for the dropdown menu which displays navigation items",
|
|
233
|
+
"message" : "Мәзірді ашу"
|
|
234
|
+
},
|
|
235
|
+
"kzTitleBlock.overflowMenuAriaLabel" : {
|
|
236
|
+
"description" : "Aria Label for the dropdown menu which displays additional action items",
|
|
237
|
+
"message" : "Opens overflow menu"
|
|
238
|
+
},
|
|
239
|
+
"kzTitleBlock.overflowMenuLabel" : {
|
|
240
|
+
"description" : "Label for the dropdown menu which displays additional action items",
|
|
241
|
+
"message" : "Menu"
|
|
242
|
+
},
|
|
243
|
+
"kzTitleBlock.secondaryAndOverflowMenuLabel" : {
|
|
244
|
+
"description" : "Label for the dropdown menu which displays additional actions",
|
|
245
|
+
"message" : "Open secondary and overflow menu"
|
|
246
|
+
},
|
|
247
|
+
"select.clearButtonAlt" : {
|
|
248
|
+
"description" : "Alt text for the clear selection button. The button clears the selection the user has made via a dropdown. The field placeholder is the label of the dropdown.",
|
|
249
|
+
"message" : "Clear selection: {field}"
|
|
250
|
+
},
|
|
251
|
+
"singleSelect.chevronButton" : {
|
|
252
|
+
"description" : "Aria label text for the SingleSelect button to open and close suggestions list",
|
|
253
|
+
"message" : "Show suggestions for {field}"
|
|
254
|
+
},
|
|
255
|
+
"singleSelect.clearButtonAlt_v2" : {
|
|
256
|
+
"description" : "Alt text for the clear selection button. The button clears the selection the user has made via a dropdown. The field placeholder is the label of the dropdown.",
|
|
257
|
+
"message" : "Clear selection: {field}"
|
|
258
|
+
}
|
|
259
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kaizen/components",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
4
4
|
"description": "Kaizen component library",
|
|
5
5
|
"author": "Geoffrey Chong <geoff.chong@cultureamp.com>",
|
|
6
6
|
"homepage": "https://cultureamp.design",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"kaizen-codemod": "./bin/codemod.sh"
|
|
78
78
|
},
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"@floating-ui/react-dom": "^2.1.
|
|
80
|
+
"@floating-ui/react-dom": "^2.1.8",
|
|
81
81
|
"@headlessui/react": "^2.2.9",
|
|
82
82
|
"@internationalized/date": "^3.8.2",
|
|
83
83
|
"@popperjs/core": "^2.11.8",
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
},
|
|
131
131
|
"devDependencies": {
|
|
132
132
|
"@cultureamp/frontend-apis": "13.3.0",
|
|
133
|
-
"@cultureamp/i18n-react-intl": "^
|
|
133
|
+
"@cultureamp/i18n-react-intl": "^4.0.0",
|
|
134
134
|
"@cultureamp/package-bundler": "^2.4.4",
|
|
135
135
|
"@testing-library/dom": "^10.4.1",
|
|
136
136
|
"@types/jest-axe": "^3.5.9",
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
"jest-axe": "^10.0.0",
|
|
145
145
|
"lodash.isempty": "^4.4.0",
|
|
146
146
|
"normalize.css": "^8.0.1",
|
|
147
|
-
"postcss": "^8.5.
|
|
147
|
+
"postcss": "^8.5.8",
|
|
148
148
|
"postcss-cli": "^11.0.1",
|
|
149
149
|
"postcss-import": "^16.1.1",
|
|
150
150
|
"postcss-preset-env": "^11.2.0",
|
|
@@ -157,11 +157,11 @@
|
|
|
157
157
|
"rollup": "^4.59.0",
|
|
158
158
|
"sass": "1.79.6",
|
|
159
159
|
"serialize-query-params": "^2.0.4",
|
|
160
|
-
"svgo": "^4.0.
|
|
160
|
+
"svgo": "^4.0.1",
|
|
161
161
|
"ts-patch": "^3.3.0",
|
|
162
162
|
"tslib": "^2.8.1",
|
|
163
163
|
"tsx": "^4.21.0",
|
|
164
|
-
"@kaizen/design-tokens": "11.0.
|
|
164
|
+
"@kaizen/design-tokens": "11.0.2"
|
|
165
165
|
},
|
|
166
166
|
"devDependenciesComments": {
|
|
167
167
|
"sass": "Prevent deprecation warnings introduced in 1.80 as we plan to move away from sass",
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
@import '~@kaizen/design-tokens/sass/border';
|
|
2
|
-
@import '~@kaizen/design-tokens/sass/color';
|
|
3
|
-
@import '../../styles/utils/button-reset';
|
|
4
|
-
|
|
5
1
|
@layer kz-components {
|
|
6
2
|
.clearButton {
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
/* Button reset */
|
|
4
|
+
appearance: none;
|
|
5
|
+
background: transparent;
|
|
6
|
+
color: inherit;
|
|
7
|
+
font: inherit;
|
|
8
|
+
margin: 0;
|
|
9
|
+
padding: 0;
|
|
10
|
+
border: none;
|
|
9
11
|
position: relative;
|
|
10
12
|
display: inline-flex;
|
|
11
13
|
border-radius: 100%;
|
|
@@ -22,20 +24,20 @@
|
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
.default {
|
|
25
|
-
color:
|
|
27
|
+
color: var(--color-gray-500);
|
|
26
28
|
|
|
27
29
|
&:hover,
|
|
28
30
|
&:focus-visible {
|
|
29
|
-
color:
|
|
31
|
+
color: var(--color-purple-800);
|
|
30
32
|
}
|
|
31
33
|
}
|
|
32
34
|
|
|
33
35
|
.reversed {
|
|
34
|
-
color:
|
|
36
|
+
color: rgb(var(--color-white-rgb), 0.8);
|
|
35
37
|
|
|
36
38
|
&:hover,
|
|
37
39
|
&:focus-visible {
|
|
38
|
-
color:
|
|
40
|
+
color: var(--color-white);
|
|
39
41
|
}
|
|
40
42
|
|
|
41
43
|
&:focus-visible {
|
|
@@ -2,7 +2,7 @@ import React, { type ButtonHTMLAttributes } from 'react'
|
|
|
2
2
|
import classnames from 'classnames'
|
|
3
3
|
import { Icon } from '~components/Icon'
|
|
4
4
|
import { type OverrideClassName } from '~components/types/OverrideClassName'
|
|
5
|
-
import styles from './ClearButton.module.
|
|
5
|
+
import styles from './ClearButton.module.css'
|
|
6
6
|
|
|
7
7
|
export type ClearButtonProps = {
|
|
8
8
|
isReversed?: boolean
|