@pedidopago/ui 1.7.21 → 1.7.23
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/Alert/styles.d.ts.map +1 -1
- package/dist/components/Alert/styles.js +1 -1
- package/dist/components/Avatar/styles.d.ts.map +1 -1
- package/dist/components/Avatar/styles.js +3 -3
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/Button/styles.d.ts.map +1 -1
- package/dist/components/Button/styles.js +3 -5
- package/dist/components/CheckboxInput/styles.d.ts +7 -8
- package/dist/components/CheckboxInput/styles.d.ts.map +1 -1
- package/dist/components/CheckboxInput/styles.js +13 -35
- package/dist/components/CollapseCard/styles.d.ts.map +1 -1
- package/dist/components/CollapseCard/styles.js +4 -1
- package/dist/components/ColorPicker/styles.d.ts.map +1 -1
- package/dist/components/ColorPicker/styles.js +5 -5
- package/dist/components/ComposeIcon/styles.d.ts.map +1 -1
- package/dist/components/ComposeIcon/styles.js +2 -2
- package/dist/components/DatePicker/styles.d.ts.map +1 -1
- package/dist/components/DatePicker/styles.js +4 -5
- package/dist/components/Dialog/index.d.ts.map +1 -1
- package/dist/components/Dialog/index.js +7 -8
- package/dist/components/Dialog/styles.d.ts +0 -2
- package/dist/components/Dialog/styles.d.ts.map +1 -1
- package/dist/components/Dialog/styles.js +4 -6
- package/dist/components/Dropzone/styles.js +1 -1
- package/dist/components/EmojiPicker/EmotePickerData/index.js +1 -1
- package/dist/components/EmojiPicker/EmotePickerData/styles.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmotePickerData/styles.js +27 -18
- package/dist/components/EmojiPicker/styles.d.ts.map +1 -1
- package/dist/components/EmojiPicker/styles.js +3 -6
- package/dist/components/Flex/styles.d.ts +168 -0
- package/dist/components/Flex/styles.d.ts.map +1 -1
- package/dist/components/Grid/styles.d.ts +168 -0
- package/dist/components/Grid/styles.d.ts.map +1 -1
- package/dist/components/Icon/data/illustrations.js +43 -43
- package/dist/components/Illustration/styles.d.ts.map +1 -1
- package/dist/components/Illustration/styles.js +4 -3
- package/dist/components/ImageItem/styles.d.ts.map +1 -1
- package/dist/components/ImageItem/styles.js +3 -4
- package/dist/components/Input/index.js +3 -1
- package/dist/components/Input/styles.d.ts +0 -4
- package/dist/components/Input/styles.d.ts.map +1 -1
- package/dist/components/Input/styles.js +44 -82
- package/dist/components/List/styles.d.ts.map +1 -1
- package/dist/components/List/styles.js +3 -9
- package/dist/components/Modal/styles.d.ts.map +1 -1
- package/dist/components/Modal/styles.js +1 -1
- package/dist/components/MultipleSelect/components/OptionsArea/styles.d.ts.map +1 -1
- package/dist/components/MultipleSelect/components/OptionsArea/styles.js +17 -7
- package/dist/components/MultipleSelect/components/SelectArea/SelectedOptionsArea.d.ts.map +1 -1
- package/dist/components/MultipleSelect/components/SelectArea/SelectedOptionsArea.js +1 -4
- package/dist/components/MultipleSelect/components/SelectArea/styles.d.ts.map +1 -1
- package/dist/components/MultipleSelect/components/SelectArea/styles.js +3 -3
- package/dist/components/NewSelect/Examples/index.d.ts.map +1 -1
- package/dist/components/NewSelect/Examples/index.js +36 -21
- package/dist/components/NewSelect/components/OptionsSelect/styles.js +1 -1
- package/dist/components/NewSelect/multiple/index.d.ts.map +1 -1
- package/dist/components/NewSelect/multiple/index.js +24 -13
- package/dist/components/NewSelect/single/index.d.ts.map +1 -1
- package/dist/components/NewSelect/single/index.js +15 -6
- package/dist/components/NewSelect/styles.d.ts.map +1 -1
- package/dist/components/NewSelect/styles.js +1 -4
- package/dist/components/Pagination/index.d.ts.map +1 -1
- package/dist/components/Pagination/index.js +2 -9
- package/dist/components/RadioInput/components/ChoiceList/index.d.ts.map +1 -1
- package/dist/components/RadioInput/components/ChoiceList/index.js +3 -2
- package/dist/components/RadioInput/styles.d.ts +4 -1
- package/dist/components/RadioInput/styles.d.ts.map +1 -1
- package/dist/components/RadioInput/styles.js +16 -5
- package/dist/components/RadioInput/types.d.ts +2 -1
- package/dist/components/RadioInput/types.d.ts.map +1 -1
- package/dist/components/Select/components/OptionsSelect/styles.js +1 -1
- package/dist/components/Select/styles.d.ts.map +1 -1
- package/dist/components/Select/styles.js +2 -2
- package/dist/components/Skeleton/styles.d.ts.map +1 -1
- package/dist/components/Skeleton/styles.js +2 -8
- package/dist/components/Slider/components/SliderPointer.d.ts.map +1 -1
- package/dist/components/Slider/components/SliderPointer.js +2 -1
- package/dist/components/Slider/styles.d.ts.map +1 -1
- package/dist/components/Slider/styles.js +2 -2
- package/dist/components/Spinner/styles.d.ts +168 -0
- package/dist/components/Spinner/styles.d.ts.map +1 -1
- package/dist/components/Spinner/styles.js +3 -3
- package/dist/components/Steps/styles.d.ts.map +1 -1
- package/dist/components/Steps/styles.js +3 -9
- package/dist/components/Switch/styles.d.ts.map +1 -1
- package/dist/components/Switch/styles.js +2 -4
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/index.js +1 -5
- package/dist/components/Table/styles.d.ts.map +1 -1
- package/dist/components/Table/styles.js +4 -52
- package/dist/components/Tabs/styles.d.ts.map +1 -1
- package/dist/components/Tabs/styles.js +4 -6
- package/dist/components/Tag/styles.d.ts +504 -0
- package/dist/components/Tag/styles.d.ts.map +1 -1
- package/dist/components/Tag/styles.js +3 -3
- package/dist/components/TextAreaInput/styles.d.ts.map +1 -1
- package/dist/components/TextAreaInput/styles.js +3 -6
- package/dist/components/Thumbnail/index.d.ts.map +1 -1
- package/dist/components/Thumbnail/index.js +7 -56
- package/dist/components/Thumbnail/styles.d.ts.map +1 -1
- package/dist/components/Thumbnail/styles.js +17 -27
- package/dist/components/Thumbnail/types.d.ts +1 -9
- package/dist/components/Thumbnail/types.d.ts.map +1 -1
- package/dist/components/TimeInput/styles.d.ts.map +1 -1
- package/dist/components/TimeInput/styles.js +7 -1
- package/dist/components/Timeline/components/Timeline.d.ts.map +1 -1
- package/dist/components/Timeline/components/Timeline.js +3 -16
- package/dist/components/Timeline/styles.d.ts.map +1 -1
- package/dist/components/Timeline/styles.js +5 -5
- package/dist/components/Timeline/timeline.test.js +0 -2
- package/dist/components/Timeline/types.d.ts +0 -1
- package/dist/components/Timeline/types.d.ts.map +1 -1
- package/dist/components/Tooltip/components/TooltipLabel.d.ts.map +1 -1
- package/dist/components/Tooltip/components/TooltipLabel.js +5 -5
- package/dist/components/Tooltip/index.d.ts.map +1 -1
- package/dist/components/Tooltip/index.js +5 -1
- package/dist/components/Tooltip/styles.d.ts.map +1 -1
- package/dist/components/Tooltip/styles.js +2 -4
- package/dist/components/Typography/index.d.ts.map +1 -1
- package/dist/components/Typography/index.js +4 -5
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -1
- package/dist/shared/hooks/useSystemTheme.d.ts +5 -0
- package/dist/shared/hooks/useSystemTheme.d.ts.map +1 -0
- package/dist/shared/hooks/useSystemTheme.js +38 -0
- package/dist/shared/theme/contexts/ThemeContext.d.ts +1 -1
- package/dist/shared/theme/contexts/ThemeContext.d.ts.map +1 -1
- package/dist/shared/theme/contexts/ThemeContext.js +37 -17
- package/dist/shared/theme/hooks/useColorMode.d.ts +1 -1
- package/dist/shared/theme/hooks/useColorMode.js +1 -1
- package/dist/shared/theme/hooks/useTheme.d.ts +168 -0
- package/dist/shared/theme/hooks/useTheme.d.ts.map +1 -1
- package/dist/shared/theme/objects/breakpoints.d.ts +9 -0
- package/dist/shared/theme/objects/breakpoints.d.ts.map +1 -0
- package/dist/shared/theme/objects/breakpoints.js +15 -0
- package/dist/shared/theme/objects/colors.d.ts +171 -0
- package/dist/shared/theme/objects/colors.d.ts.map +1 -0
- package/dist/shared/theme/objects/colors.js +177 -0
- package/dist/shared/theme/objects/shadows.d.ts +13 -0
- package/dist/shared/theme/objects/shadows.d.ts.map +1 -0
- package/dist/shared/theme/objects/shadows.js +19 -0
- package/dist/shared/theme/objects/sizes.d.ts +23 -0
- package/dist/shared/theme/objects/sizes.d.ts.map +1 -0
- package/dist/shared/theme/objects/sizes.js +33 -0
- package/dist/shared/theme/objects/spaces.d.ts +131 -0
- package/dist/shared/theme/objects/spaces.d.ts.map +1 -0
- package/dist/shared/theme/objects/spaces.js +75 -0
- package/dist/shared/theme/objects/transitions.d.ts +4 -0
- package/dist/shared/theme/objects/transitions.d.ts.map +1 -0
- package/dist/shared/theme/objects/transitions.js +10 -0
- package/dist/shared/theme/objects/typography.d.ts +14 -0
- package/dist/shared/theme/objects/typography.d.ts.map +1 -0
- package/dist/shared/theme/objects/typography.js +20 -0
- package/dist/shared/theme/objects/z-indexes.d.ts +14 -0
- package/dist/shared/theme/objects/z-indexes.d.ts.map +1 -0
- package/dist/shared/theme/objects/z-indexes.js +20 -0
- package/dist/shared/theme/theme.d.ts +168 -0
- package/dist/shared/theme/theme.d.ts.map +1 -1
- package/dist/shared/theme/theme.js +19 -225
- package/dist/shared/theme/theme.types.d.ts +9 -1
- package/dist/shared/theme/theme.types.d.ts.map +1 -1
- package/dist/utils/customColorMode.d.ts +2 -0
- package/dist/utils/customColorMode.d.ts.map +1 -0
- package/dist/utils/customColorMode.js +11 -0
- package/dist/utils/getColorValue.js +1 -1
- package/package.json +9 -3
- package/dist/components/Steps/components/StepIconMobile/index.d.ts +0 -4
- package/dist/components/Steps/components/StepIconMobile/index.d.ts.map +0 -1
- package/dist/components/Steps/components/StepIconMobile/index.js +0 -126
|
@@ -123,6 +123,174 @@ export declare const StyledSpinner: import("@emotion/styled").StyledComponent<{
|
|
|
123
123
|
gradient: string;
|
|
124
124
|
};
|
|
125
125
|
};
|
|
126
|
+
lightColors: {
|
|
127
|
+
body: {
|
|
128
|
+
light: string;
|
|
129
|
+
dark: string;
|
|
130
|
+
};
|
|
131
|
+
primary: {
|
|
132
|
+
alert: string;
|
|
133
|
+
disabled: string;
|
|
134
|
+
default: string;
|
|
135
|
+
hover: string;
|
|
136
|
+
focus: string;
|
|
137
|
+
transparent: string;
|
|
138
|
+
};
|
|
139
|
+
secondary: {
|
|
140
|
+
disabled: string;
|
|
141
|
+
default: string;
|
|
142
|
+
hover: string;
|
|
143
|
+
focus: string;
|
|
144
|
+
};
|
|
145
|
+
tertiary: {
|
|
146
|
+
disabled: string;
|
|
147
|
+
default: string;
|
|
148
|
+
hover: string;
|
|
149
|
+
focus: string;
|
|
150
|
+
};
|
|
151
|
+
neutral: {
|
|
152
|
+
white: string;
|
|
153
|
+
neutral1: string;
|
|
154
|
+
neutral2: string;
|
|
155
|
+
neutral3: string;
|
|
156
|
+
neutral4: string;
|
|
157
|
+
neutral5: string;
|
|
158
|
+
neutral6: string;
|
|
159
|
+
black: string;
|
|
160
|
+
};
|
|
161
|
+
background: {
|
|
162
|
+
linear1: string;
|
|
163
|
+
linear2: string;
|
|
164
|
+
linear3: string;
|
|
165
|
+
light: string;
|
|
166
|
+
};
|
|
167
|
+
informative: {
|
|
168
|
+
default: string;
|
|
169
|
+
blurred: string;
|
|
170
|
+
dark: string;
|
|
171
|
+
gradient: string;
|
|
172
|
+
};
|
|
173
|
+
success: {
|
|
174
|
+
default: string;
|
|
175
|
+
blurred: string;
|
|
176
|
+
dark: string;
|
|
177
|
+
gradient: string;
|
|
178
|
+
};
|
|
179
|
+
success_secondary: {
|
|
180
|
+
default: string;
|
|
181
|
+
blurred: string;
|
|
182
|
+
dark: string;
|
|
183
|
+
gradient: string;
|
|
184
|
+
};
|
|
185
|
+
warning: {
|
|
186
|
+
default: string;
|
|
187
|
+
blurred: string;
|
|
188
|
+
dark: string;
|
|
189
|
+
gradient: string;
|
|
190
|
+
};
|
|
191
|
+
warning_secondary: {
|
|
192
|
+
default: string;
|
|
193
|
+
blurred: string;
|
|
194
|
+
dark: string;
|
|
195
|
+
gradient: string;
|
|
196
|
+
};
|
|
197
|
+
error: {
|
|
198
|
+
default: string;
|
|
199
|
+
blurred: string;
|
|
200
|
+
dark: string;
|
|
201
|
+
gradient: string;
|
|
202
|
+
};
|
|
203
|
+
critical: {
|
|
204
|
+
default: string;
|
|
205
|
+
blurred: string;
|
|
206
|
+
dark: string;
|
|
207
|
+
gradient: string;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
darkColors: {
|
|
211
|
+
body: {
|
|
212
|
+
light: string;
|
|
213
|
+
dark: string;
|
|
214
|
+
};
|
|
215
|
+
primary: {
|
|
216
|
+
alert: string;
|
|
217
|
+
disabled: string;
|
|
218
|
+
default: string;
|
|
219
|
+
hover: string;
|
|
220
|
+
focus: string;
|
|
221
|
+
transparent: string;
|
|
222
|
+
};
|
|
223
|
+
secondary: {
|
|
224
|
+
disabled: string;
|
|
225
|
+
default: string;
|
|
226
|
+
hover: string;
|
|
227
|
+
focus: string;
|
|
228
|
+
};
|
|
229
|
+
tertiary: {
|
|
230
|
+
disabled: string;
|
|
231
|
+
default: string;
|
|
232
|
+
hover: string;
|
|
233
|
+
focus: string;
|
|
234
|
+
};
|
|
235
|
+
neutral: {
|
|
236
|
+
white: string;
|
|
237
|
+
neutral1: string;
|
|
238
|
+
neutral2: string;
|
|
239
|
+
neutral3: string;
|
|
240
|
+
neutral4: string;
|
|
241
|
+
neutral5: string;
|
|
242
|
+
neutral6: string;
|
|
243
|
+
black: string;
|
|
244
|
+
};
|
|
245
|
+
background: {
|
|
246
|
+
linear1: string;
|
|
247
|
+
linear2: string;
|
|
248
|
+
linear3: string;
|
|
249
|
+
light: string;
|
|
250
|
+
};
|
|
251
|
+
informative: {
|
|
252
|
+
default: string;
|
|
253
|
+
blurred: string;
|
|
254
|
+
dark: string;
|
|
255
|
+
gradient: string;
|
|
256
|
+
};
|
|
257
|
+
success: {
|
|
258
|
+
default: string;
|
|
259
|
+
blurred: string;
|
|
260
|
+
dark: string;
|
|
261
|
+
gradient: string;
|
|
262
|
+
};
|
|
263
|
+
success_secondary: {
|
|
264
|
+
default: string;
|
|
265
|
+
blurred: string;
|
|
266
|
+
dark: string;
|
|
267
|
+
gradient: string;
|
|
268
|
+
};
|
|
269
|
+
warning: {
|
|
270
|
+
default: string;
|
|
271
|
+
blurred: string;
|
|
272
|
+
dark: string;
|
|
273
|
+
gradient: string;
|
|
274
|
+
};
|
|
275
|
+
warning_secondary: {
|
|
276
|
+
default: string;
|
|
277
|
+
blurred: string;
|
|
278
|
+
dark: string;
|
|
279
|
+
gradient: string;
|
|
280
|
+
};
|
|
281
|
+
error: {
|
|
282
|
+
default: string;
|
|
283
|
+
blurred: string;
|
|
284
|
+
dark: string;
|
|
285
|
+
gradient: string;
|
|
286
|
+
};
|
|
287
|
+
critical: {
|
|
288
|
+
default: string;
|
|
289
|
+
blurred: string;
|
|
290
|
+
dark: string;
|
|
291
|
+
gradient: string;
|
|
292
|
+
};
|
|
293
|
+
};
|
|
126
294
|
space: {
|
|
127
295
|
px: string;
|
|
128
296
|
0.5: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Spinner/styles.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Spinner/styles.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yGAqCzB,CAAC"}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.StyledSpinner = void 0;
|
|
7
7
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
8
8
|
var _getColorValue = require("../../utils/getColorValue");
|
|
9
|
+
var _colorCheck = require("../../utils/colorCheck");
|
|
9
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
11
|
var StyledSpinner = _styled.default.div(function (_ref) {
|
|
11
12
|
var size = _ref.size,
|
|
@@ -14,10 +15,9 @@ var StyledSpinner = _styled.default.div(function (_ref) {
|
|
|
14
15
|
emptyColor = _ref.emptyColor,
|
|
15
16
|
thickness = _ref.thickness,
|
|
16
17
|
speed = _ref.speed;
|
|
17
|
-
var spinnerColor = (0, _getColorValue.getColorValue)(color || 'primary.default', theme);
|
|
18
18
|
var spinnerEmptyColor = (0, _getColorValue.getColorValue)(emptyColor || 'transparent', theme, 'transparent');
|
|
19
19
|
var modifiedSize = size === 'sm' ? '16px' : size === 'md' ? '24px' : size === 'lg' ? '32px' : size === 'xl' ? '48px' : '24px';
|
|
20
|
-
var borderColor = spinnerEmptyColor === 'currentColor' ? 'transparent' : theme.
|
|
21
|
-
return "\n display: inline-block;\n width: ".concat(modifiedSize, ";\n height: ").concat(modifiedSize, ";\n border: ").concat(thickness || '4px', " solid ").concat(
|
|
20
|
+
var borderColor = spinnerEmptyColor === 'currentColor' ? 'transparent' : theme.colors.neutral.neutral1;
|
|
21
|
+
return "\n display: inline-block;\n width: ".concat(modifiedSize, ";\n height: ").concat(modifiedSize, ";\n border: ").concat(thickness || '4px', " solid ").concat(color ? (0, _colorCheck.stripThemeColors)(color || '', theme.colors) || color : theme.colors.primary.default, ";\n border-radius: 9999999px;\n border-left-color: ").concat(borderColor, ";\n border-bottom-color: ").concat(borderColor, ";\n animation: spin ").concat(speed || '0.45s', " linear infinite;\n\n @keyframes spin {\n to {\n transform: rotate(360deg);\n }\n }\n ");
|
|
22
22
|
});
|
|
23
23
|
exports.StyledSpinner = StyledSpinner;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Steps/styles.ts"],"names":[],"mappings":";AAGA,eAAO,MAAM,cAAc;;;;;;;yGAiB1B,CAAC;AAEF,eAAO,MAAM,WAAW;;;;iBACT,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,OAAO;;;yGA+D5D,CAAC;AAEF,eAAO,MAAM,cAAc;;;yGAK1B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;eAClB,OAAO;yGAkBnB,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;yGAQjC,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;yGAKtC,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Steps/styles.ts"],"names":[],"mappings":";AAGA,eAAO,MAAM,cAAc;;;;;;;yGAiB1B,CAAC;AAEF,eAAO,MAAM,WAAW;;;;iBACT,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,OAAO;;;yGA+D5D,CAAC;AAEF,eAAO,MAAM,cAAc;;;yGAK1B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;eAClB,OAAO;yGAkBnB,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;yGAQjC,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;yGAKtC,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;iHAiCzB,CAAC"}
|
|
@@ -36,7 +36,7 @@ var StepsCircle = _styled.default.div(_templateObject2 || (_templateObject2 = _t
|
|
|
36
36
|
activeColor = _ref7.activeColor,
|
|
37
37
|
isFinished = _ref7.isFinished,
|
|
38
38
|
isCurrent = _ref7.isCurrent;
|
|
39
|
-
return theme.colors[activeColor] && "\n background-color: ".concat(isFinished ? theme.colors[activeColor].default : isCurrent ? activeColor === 'error' ? theme.colors.error.blurred : theme.colors[activeColor].disabled : 'transparent', ";\n color: ").concat(isFinished ? theme.colors.
|
|
39
|
+
return theme.colors[activeColor] && "\n background-color: ".concat(isFinished ? theme.colors[activeColor].default : isCurrent ? activeColor === 'error' ? theme.colors.error.blurred : theme.colors[activeColor].disabled : 'transparent', ";\n color: ").concat(isFinished ? theme.colors.neutral.white : isCurrent ? theme.colors.neutral.black : theme.colors.neutral.neutral3, ";\n\n ").concat(!isCurrent && !isFinished && "\n border: solid 2px ".concat(theme.colors.neutral.neutral1, ";\n "), "\n ");
|
|
40
40
|
}, function (_ref8) {
|
|
41
41
|
var theme = _ref8.theme;
|
|
42
42
|
return theme.colors.body.light;
|
|
@@ -86,15 +86,9 @@ var StepsItemText = _styled.default.h3(_templateObject9 || (_templateObject9 = _
|
|
|
86
86
|
var isDisabled = _ref18.isDisabled,
|
|
87
87
|
theme = _ref18.theme;
|
|
88
88
|
if (isDisabled) {
|
|
89
|
-
return "\n color: ".concat(
|
|
90
|
-
light: theme.colors.tertiary.hover,
|
|
91
|
-
dark: theme.colors.neutral.neutral4
|
|
92
|
-
}[theme.colorMode], ";\n ");
|
|
89
|
+
return "\n color: ".concat(theme.colors.tertiary.hover, ";\n ");
|
|
93
90
|
}
|
|
94
|
-
return "\n color: ".concat(
|
|
95
|
-
light: theme.colors.neutral.black,
|
|
96
|
-
dark: theme.colors.neutral.white
|
|
97
|
-
}[theme.colorMode], ";\n ");
|
|
91
|
+
return "\n color: ".concat(theme.colors.neutral.black, ";\n ");
|
|
98
92
|
}, function (_ref19) {
|
|
99
93
|
var isReducedSteps = _ref19.isReducedSteps;
|
|
100
94
|
return isReducedSteps ? "width: 100%;" : "";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/styles.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/styles.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,eAAO,MAAM,aAAa;;;uHAOzB,CAAC;AAEF,eAAO,MAAM,MAAM;;;uHAqBlB,CAAC;AAEF,eAAO,MAAM,WAAW;;;uHAgBvB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;yHAGpB,CAAC"}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.SwitchWrapper = exports.SwitchToken = exports.Switch = exports.HelpText = void 0;
|
|
7
7
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
|
-
var
|
|
9
|
+
var _customColorMode = require("../../utils/customColorMode");
|
|
10
10
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
12
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
@@ -49,9 +49,7 @@ function ActiveEffects(_ref8) {
|
|
|
49
49
|
type = _ref8.type;
|
|
50
50
|
if (!theme) return '';
|
|
51
51
|
var idleColor = type ? theme.colors[type].default : theme.colors.primary.default;
|
|
52
|
-
|
|
53
|
-
var focusColor = type ? (0, _colorFunctions.focusFunction)(theme.colors[type].default) : theme.colors.primary.focus;
|
|
54
|
-
return (0, _react.css)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n border-color: ", ";\n background-color: ", ";\n div.switch-token {\n transform: translateX(16px);\n background-color: ", ";\n }\n svg {\n color: ", ";\n }\n\n :hover {\n background-color: ", ";\n border-color: ", ";\n\n svg {\n color: ", ";\n }\n }\n\n :focus {\n background-color: ", ";\n border-color: ", ";\n box-shadow: 0 0 0 2px ", ";\n\n svg {\n color: ", ";\n }\n }\n "])), idleColor, idleColor, theme.colors.body.light, idleColor, hoverColor, hoverColor, hoverColor, focusColor, focusColor, type ? theme.colors[type].blurred : theme.colors.primary.disabled, focusColor);
|
|
52
|
+
return (0, _react.css)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n border-color: ", ";\n background-color: ", ";\n div.switch-token {\n transform: translateX(16px);\n background-color: ", ";\n }\n svg {\n color: ", ";\n }\n\n :hover {\n filter: brightness(0.9);\n }\n\n :focus {\n border-color: ", ";\n filter: brightness(0.9);\n box-shadow: 0 0 0 2px ", ";\n }\n "])), idleColor, idleColor, (0, _customColorMode.customColorMode)(theme.lightColors.neutral.white, theme.lightColors.neutral.white), idleColor, theme.colors.neutral.white, type ? theme.colors[type].blurred : theme.colors.primary.disabled);
|
|
55
53
|
}
|
|
56
54
|
function disabledStyle(_ref9) {
|
|
57
55
|
var theme = _ref9.theme;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Table/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAkD,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Table/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAkD,MAAM,OAAO,CAAC;AAoBjG,OAAO,EAAE,WAAW,EAAkB,MAAM,SAAS,CAAC;AAMtD,wBAAgB,KAAK,CAAC,EACpB,UAAU,EACV,cAAc,EACd,gBAAgB,EAChB,MAAM,EACN,IAAI,EACJ,SAAiB,EACjB,YAAgB,EAChB,cAAuB,EACvB,GAAG,IAAI,EACR,EAAE,WAAW,GAAG,wBAAwB,CAAC,OAAO,CAAC,eAoMjD"}
|
|
@@ -13,12 +13,10 @@ var _MenuItem = require("./components/MenuItem");
|
|
|
13
13
|
var _FocusLock = _interopRequireDefault(require("../../shared/components/FocusLock"));
|
|
14
14
|
var _TableSkeleton = require("./components/TableSkeleton");
|
|
15
15
|
var _styles = require("./styles");
|
|
16
|
-
var _useColorMode2 = require("../../shared/theme/hooks/useColorMode");
|
|
17
16
|
var _GenerateKey = require("../../utils/GenerateKey");
|
|
18
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
18
|
var _excluded = ["selectable", "primaryActions", "secondaryActions", "header", "rows", "isLoading", "skeletonRows", "skeletonHeight"]; // Components
|
|
20
19
|
// Styles
|
|
21
|
-
// Hooks
|
|
22
20
|
// Types
|
|
23
21
|
// Utils
|
|
24
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -71,8 +69,6 @@ function Table(_ref) {
|
|
|
71
69
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
72
70
|
openSelectDropDownMenu = _useState8[0],
|
|
73
71
|
setOpenSelectDropDownMenu = _useState8[1];
|
|
74
|
-
var _useColorMode = (0, _useColorMode2.useColorMode)(),
|
|
75
|
-
colorMode = _useColorMode.colorMode;
|
|
76
72
|
var rowsWithKey = (0, _react.useMemo)(function () {
|
|
77
73
|
return rows.map(function (row) {
|
|
78
74
|
return _objectSpread({
|
|
@@ -236,7 +232,7 @@ function Table(_ref) {
|
|
|
236
232
|
},
|
|
237
233
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, {
|
|
238
234
|
name: "more-vertical",
|
|
239
|
-
color:
|
|
235
|
+
color: 'neutral.black'
|
|
240
236
|
})
|
|
241
237
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_MenuItem.MenuItem, {
|
|
242
238
|
onClickOutside: function onClickOutside() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Table/styles.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAElD,eAAO,MAAM,WAAW;;;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Table/styles.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAElD,eAAO,MAAM,WAAW;;;uIAgFtB,CAAC;AAEH,eAAO,MAAM,cAAc;;;yGAG1B,CAAC;AAEF,eAAO,MAAM,aAAa;;;0IAmDxB,CAAC;AAEH,eAAO,MAAM,eAAe;;;yGAE3B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;0IAiBhC,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;yGAiB7B,CAAC;AAEF,eAAO,MAAM,eAAe;;;8HAmB3B,CAAC"}
|
|
@@ -11,56 +11,14 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
11
11
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
12
12
|
var StyledTable = _styled.default.table(function (props) {
|
|
13
13
|
var theme = props.theme;
|
|
14
|
-
return (0, _react.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n border-spacing: 0px;\n\n & > thead {\n & > tr {\n height: 64px;\n\n & > th {\n background: ", ";\n border-top: 1px solid
|
|
15
|
-
dark: "hsla(156, 13%, 92%, 0.05)",
|
|
16
|
-
light: "hsla(156, 13%, 92%, 0.5)"
|
|
17
|
-
}[theme.colorMode], {
|
|
18
|
-
dark: theme.colors.neutral.neutral5,
|
|
19
|
-
light: theme.colors.neutral.neutral2
|
|
20
|
-
}[theme.colorMode], {
|
|
21
|
-
dark: theme.colors.neutral.neutral5,
|
|
22
|
-
light: theme.colors.neutral.neutral2
|
|
23
|
-
}[theme.colorMode], {
|
|
24
|
-
dark: theme.colors.neutral.neutral5,
|
|
25
|
-
light: theme.colors.neutral.neutral2
|
|
26
|
-
}[theme.colorMode], {
|
|
27
|
-
dark: theme.colors.neutral.neutral5,
|
|
28
|
-
light: theme.colors.neutral.neutral2
|
|
29
|
-
}[theme.colorMode], {
|
|
30
|
-
dark: "hsla(150, 16%, 97%, 0.02)",
|
|
31
|
-
light: "hsla(150, 16%, 97%, 0.75)"
|
|
32
|
-
}[theme.colorMode], {
|
|
33
|
-
dark: 'hsla(161, 12%, 31%, 0.5)',
|
|
34
|
-
light: theme.colors.neutral.neutral1
|
|
35
|
-
}[theme.colorMode], {
|
|
36
|
-
dark: theme.colors.neutral.neutral6,
|
|
37
|
-
light: theme.colors.neutral.neutral1
|
|
38
|
-
}[theme.colorMode], theme.colors.primary.focus, {
|
|
39
|
-
dark: theme.colors.neutral.neutral6,
|
|
40
|
-
light: theme.colors.neutral.neutral1
|
|
41
|
-
}[theme.colorMode], theme.colors.neutral.neutral5);
|
|
14
|
+
return (0, _react.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n border-spacing: 0px;\n\n & > thead {\n & > tr {\n height: 64px;\n\n & > th {\n background: ", "90;\n border-top: 1px solid ", ";\n border-bottom: 1px solid ", ";\n padding-left: 16px;\n padding-right: 16px;\n text-align: left;\n\n &:first-of-type {\n border-left: 1px solid ", ";\n border-radius: 8px 0px 0px 0px;\n }\n\n &:last-child {\n border-right: 1px solid ", ";\n border-radius: 0px 8px 0px 0px;\n }\n }\n }\n }\n\n & > tbody {\n tr {\n height: 64px;\n &:nth-of-type(even) {\n background: ", "40;\n }\n &:not(:last-child) {\n & > td {\n border-bottom: 1px solid ", ";\n }\n }\n\n &:hover {\n & > td {\n background: ", ";\n\n &:first-of-type {\n border-radius: 4px 0px 0px 4px;\n }\n\n &:last-child {\n border-radius: 0px 4px 4px 0px;\n }\n }\n }\n\n &:focus {\n outline: 2px solid ", ";\n border-radius: 4px;\n }\n\n &[data-selected='true'] {\n & > td {\n background: ", ";\n }\n }\n\n & > td {\n padding-left: 16px;\n padding-right: 16px;\n\n text-align: left;\n\n color: ", ";\n }\n }\n }\n "])), theme.colors.neutral.neutral1, theme.colors.neutral.neutral2, theme.colors.neutral.neutral2, theme.colors.neutral.neutral2, theme.colors.neutral.neutral2, theme.colors.neutral.neutral1, theme.colors.neutral.neutral1, theme.colors.neutral.neutral1, theme.colors.primary.focus, theme.colors.neutral.neutral1, theme.colors.neutral.neutral5);
|
|
42
15
|
});
|
|
43
16
|
exports.StyledTable = StyledTable;
|
|
44
17
|
var SelectedHeader = _styled.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n"])));
|
|
45
18
|
exports.SelectedHeader = SelectedHeader;
|
|
46
19
|
var ActionsButton = _styled.default.button(function (props) {
|
|
47
20
|
var theme = props.theme;
|
|
48
|
-
return (0, _react.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n appearance: none;\n font-family: inherit;\n\n display: flex;\n align-items: center;\n gap: 8px;\n\n margin: 0px -2px 0px 0px;\n outline: none;\n border: 2px solid
|
|
49
|
-
dark: theme.colors.neutral.neutral4,
|
|
50
|
-
light: theme.colors.neutral.neutral2
|
|
51
|
-
}[theme.colorMode], theme.colors.neutral.neutral5, {
|
|
52
|
-
dark: theme.colors.neutral.black,
|
|
53
|
-
light: theme.colors.neutral.white
|
|
54
|
-
}[theme.colorMode], theme.transition.speed, theme.colors.neutral.black, {
|
|
55
|
-
dark: theme.colors.neutral.neutral4,
|
|
56
|
-
light: theme.colors.neutral.neutral3
|
|
57
|
-
}[theme.colorMode], {
|
|
58
|
-
dark: theme.colors.neutral.neutral5,
|
|
59
|
-
light: theme.colors.neutral.neutral1
|
|
60
|
-
}[theme.colorMode], {
|
|
61
|
-
dark: theme.colors.neutral.neutral4,
|
|
62
|
-
light: theme.colors.neutral.neutral2
|
|
63
|
-
}[theme.colorMode]);
|
|
21
|
+
return (0, _react.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n appearance: none;\n font-family: inherit;\n\n display: flex;\n align-items: center;\n gap: 8px;\n\n margin: 0px -2px 0px 0px;\n outline: none;\n border: 2px solid ", ";\n padding: 0px 24px;\n height: 44px;\n\n white-space: nowrap;\n\n color: ", ";\n background: ", ";\n\n transition: background-color linear ", ";\n\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n\n &:first-of-type {\n color: ", ";\n border-radius: 8px 0px 0px 8px;\n }\n\n &:last-of-type {\n border-radius: 0px 8px 8px 0px;\n }\n\n &:only-child {\n border-radius: 8px;\n }\n\n &:hover,\n &:focus {\n z-index: 1;\n\n border-color: ", ";\n background: ", ";\n }\n\n &:active {\n background: ", ";\n }\n "])), theme.colors.neutral.neutral2, theme.colors.neutral.neutral5, theme.colors.neutral.white, theme.transition.speed, theme.colors.neutral.black, theme.colors.neutral.neutral3, theme.colors.neutral.neutral1, theme.colors.neutral.neutral2);
|
|
64
22
|
});
|
|
65
23
|
exports.ActionsButton = ActionsButton;
|
|
66
24
|
var MenuItemWrapper = _styled.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n position: relative;\n"])));
|
|
@@ -86,17 +44,11 @@ var MenuItemContainer = _styled.default.div(_templateObject6 || (_templateObject
|
|
|
86
44
|
exports.MenuItemContainer = MenuItemContainer;
|
|
87
45
|
var MenuItemContent = _styled.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n border-radius: 8px;\n padding: 10px 35px;\n cursor: pointer;\n user-select: none;\n font-size: 1rem;\n white-space: nowrap;\n\n color: ", ";\n\n transition: background linear ", ";\n\n &:hover {\n background: ", ";\n }\n"])), function (_ref2) {
|
|
88
46
|
var theme = _ref2.theme;
|
|
89
|
-
return
|
|
90
|
-
dark: theme.colors.neutral.white,
|
|
91
|
-
light: theme.colors.neutral.black
|
|
92
|
-
}[theme.colorMode];
|
|
47
|
+
return theme.colors.neutral.black;
|
|
93
48
|
}, function (props) {
|
|
94
49
|
return props.theme.transition.speed;
|
|
95
50
|
}, function (_ref3) {
|
|
96
51
|
var theme = _ref3.theme;
|
|
97
|
-
return
|
|
98
|
-
dark: theme.colors.neutral.neutral4,
|
|
99
|
-
light: theme.colors.neutral.neutral1
|
|
100
|
-
}[theme.colorMode];
|
|
52
|
+
return theme.colors.neutral.neutral1;
|
|
101
53
|
});
|
|
102
54
|
exports.MenuItemContent = MenuItemContent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/styles.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/styles.ts"],"names":[],"mappings":";AAMA,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE5F,eAAO,MAAM,aAAa;;;;;yGAazB,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;qHA+DrB,CAAC;AAEF,eAAO,MAAM,aAAa;;;2GAGzB,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;yGAI3B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;6HAgC9B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;YACpB,OAAO;yGAGhB,CAAC;AAEF,eAAO,MAAM,YAAY;;;iNAqBvB,CAAC"}
|
|
@@ -7,17 +7,15 @@ exports.TabsContainer = exports.TabPanelWrapper = exports.TabPanelContainer = ex
|
|
|
7
7
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
8
8
|
var _getColorValue = require("../../utils/getColorValue");
|
|
9
9
|
var _colorToGray = require("../../utils/colorToGray");
|
|
10
|
+
var _customColorMode = require("../../utils/customColorMode");
|
|
10
11
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
11
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
13
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
13
14
|
var TabsContainer = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n width: 100%;\n\n > div[role='tablist'] {\n width: ", ";\n border-bottom: 2px solid\n ", ";\n }\n"])), function (_ref) {
|
|
14
15
|
var fullWidth = _ref.fullWidth;
|
|
15
16
|
return fullWidth ? '100%' : 'fit-content';
|
|
16
|
-
}, function (
|
|
17
|
-
return
|
|
18
|
-
light: props.theme.colors.neutral.neutral1,
|
|
19
|
-
dark: props.theme.colors.neutral.neutral6
|
|
20
|
-
}[props.theme.colorMode];
|
|
17
|
+
}, function () {
|
|
18
|
+
return (0, _customColorMode.customColorMode)('rgba(0, 0, 0, 0.2)', 'rgba(255, 255, 255, 0.4)');
|
|
21
19
|
});
|
|
22
20
|
exports.TabsContainer = TabsContainer;
|
|
23
21
|
var TabButton = _styled.default.button(function (_ref2) {
|
|
@@ -30,7 +28,7 @@ var TabButton = _styled.default.button(function (_ref2) {
|
|
|
30
28
|
var colorProps = (0, _colorToGray.convertColor)((0, _getColorValue.getColorValue)(indicatorColor || 'primary.default', theme));
|
|
31
29
|
var grayColor = colorProps.neutral2;
|
|
32
30
|
var whiteColor = colorProps.neutral1;
|
|
33
|
-
return "\n display: flex;\n ".concat(squeeze && 'flex: 1;', "\n align-items: center;\n justify-content: center;\n gap: 8px;\n padding: 1rem 2rem;\n\n font-family: inherit;\n font-weight: 600;\n font-size: ").concat(theme.fontSizes.xxs, ";\n\n color: ").concat(active ?
|
|
31
|
+
return "\n display: flex;\n ".concat(squeeze && 'flex: 1;', "\n align-items: center;\n justify-content: center;\n gap: 8px;\n padding: 1rem 2rem;\n\n font-family: inherit;\n font-weight: 600;\n font-size: ").concat(theme.fontSizes.xxs, ";\n\n color: ").concat(active ? (0, _customColorMode.customColorMode)("hsl(".concat(grayColor[0], ", ").concat(grayColor[1], "%, 30%)"), "hsl(".concat(whiteColor[0], ", ").concat(whiteColor[1], "%, ").concat(whiteColor[2], "%)")) : disabled ? theme.colors.neutral.neutral1 : "hsl(".concat(grayColor[0], ", ").concat(grayColor[1], "%, 75%)"), ";\n background: transparent;\n\n border: none;\n border-radius: 0;\n outline: 0;\n margin: 0;\n\n cursor: ").concat(disabled ? 'default' : 'pointer', ";\n vertical-align: middle;\n\n user-select: none;\n appearance: none;\n text-decoration: none;\n\n transition: all 250ms ease 0ms;\n\n & > span {\n ").concat(active && "\n color: ".concat((0, _getColorValue.getColorValue)(textColor || 'primary.default', theme), ";\n "), "\n }\n\n &:hover {\n color: ").concat(disabled ? 'none' : theme.colors.neutral.black, ";\n background: ").concat(disabled ? 'transparent' : 'rgba(0, 0, 0, 0.04)', ";\n }\n\n &:active {\n background: rgba(0, 0, 0, .1);\n }\n");
|
|
34
32
|
});
|
|
35
33
|
exports.TabButton = TabButton;
|
|
36
34
|
var TabButtonIcon = _styled.default.span(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n line-height: 0;\n transition: all 250ms ease 0ms;\n"])));
|