@nearform/quantum 0.1.3 → 0.2.0
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/README.md +8 -2
- package/dist/colors/index.js +344 -0
- package/dist/colors/index.js.map +1 -0
- package/dist/global.css +190 -48
- package/dist/global.css.map +1 -1
- package/dist/index.d.ts +202 -2
- package/dist/index.js +307 -49
- package/dist/index.js.map +1 -1
- package/package.json +9 -8
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
+
import React__default from 'react';
|
|
3
4
|
import { VariantProps } from 'class-variance-authority';
|
|
4
5
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
5
6
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
6
7
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
8
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
7
9
|
|
|
8
|
-
declare const
|
|
10
|
+
declare const _default: {
|
|
9
11
|
grey: {
|
|
10
12
|
50: string;
|
|
11
13
|
100: string;
|
|
@@ -126,6 +128,186 @@ declare const colors: {
|
|
|
126
128
|
800: string;
|
|
127
129
|
900: string;
|
|
128
130
|
};
|
|
131
|
+
transparent: string;
|
|
132
|
+
current: string;
|
|
133
|
+
primary: {
|
|
134
|
+
50: string;
|
|
135
|
+
100: string;
|
|
136
|
+
200: string;
|
|
137
|
+
300: string;
|
|
138
|
+
400: string;
|
|
139
|
+
500: string;
|
|
140
|
+
600: string;
|
|
141
|
+
700: string;
|
|
142
|
+
800: string;
|
|
143
|
+
900: string;
|
|
144
|
+
};
|
|
145
|
+
secondary: {
|
|
146
|
+
50: string;
|
|
147
|
+
100: string;
|
|
148
|
+
200: string;
|
|
149
|
+
300: string;
|
|
150
|
+
400: string;
|
|
151
|
+
500: string;
|
|
152
|
+
600: string;
|
|
153
|
+
700: string;
|
|
154
|
+
800: string;
|
|
155
|
+
900: string;
|
|
156
|
+
};
|
|
157
|
+
foreground: {
|
|
158
|
+
DEFAULT: string;
|
|
159
|
+
dark: string;
|
|
160
|
+
muted: {
|
|
161
|
+
DEFAULT: string;
|
|
162
|
+
dark: string;
|
|
163
|
+
};
|
|
164
|
+
subtle: {
|
|
165
|
+
DEFAULT: string;
|
|
166
|
+
dark: string;
|
|
167
|
+
};
|
|
168
|
+
inverse: {
|
|
169
|
+
DEFAULT: string;
|
|
170
|
+
dark: string;
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
background: {
|
|
174
|
+
DEFAULT: string;
|
|
175
|
+
dark: string;
|
|
176
|
+
alt: {
|
|
177
|
+
DEFAULT: string;
|
|
178
|
+
dark: string;
|
|
179
|
+
};
|
|
180
|
+
subtle: {
|
|
181
|
+
DEFAULT: string;
|
|
182
|
+
dark: string;
|
|
183
|
+
};
|
|
184
|
+
inverse: {
|
|
185
|
+
DEFAULT: string;
|
|
186
|
+
dark: string;
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
accent: {
|
|
190
|
+
DEFAULT: string;
|
|
191
|
+
dark: string;
|
|
192
|
+
alt: {
|
|
193
|
+
DEFAULT: string;
|
|
194
|
+
dark: string;
|
|
195
|
+
};
|
|
196
|
+
hover: {
|
|
197
|
+
DEFAULT: string;
|
|
198
|
+
dark: string;
|
|
199
|
+
};
|
|
200
|
+
focus: {
|
|
201
|
+
DEFAULT: string;
|
|
202
|
+
dark: string;
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
border: {
|
|
206
|
+
DEFAULT: string;
|
|
207
|
+
dark: string;
|
|
208
|
+
hover: {
|
|
209
|
+
DEFAULT: string;
|
|
210
|
+
dark: string;
|
|
211
|
+
};
|
|
212
|
+
focus: {
|
|
213
|
+
DEFAULT: string;
|
|
214
|
+
dark: string;
|
|
215
|
+
};
|
|
216
|
+
subtle: {
|
|
217
|
+
DEFAULT: string;
|
|
218
|
+
dark: string;
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
feedback: {
|
|
222
|
+
green: string;
|
|
223
|
+
yellow: string;
|
|
224
|
+
orange: string;
|
|
225
|
+
red: string;
|
|
226
|
+
};
|
|
227
|
+
button: {
|
|
228
|
+
primary: {
|
|
229
|
+
DEFAULT: string;
|
|
230
|
+
dark: string;
|
|
231
|
+
hover: {
|
|
232
|
+
DEFAULT: string;
|
|
233
|
+
dark: string;
|
|
234
|
+
};
|
|
235
|
+
focus: {
|
|
236
|
+
DEFAULT: string;
|
|
237
|
+
dark: string;
|
|
238
|
+
};
|
|
239
|
+
disabled: {
|
|
240
|
+
DEFAULT: string;
|
|
241
|
+
dark: string;
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
secondary: {
|
|
245
|
+
DEFAULT: string;
|
|
246
|
+
dark: string;
|
|
247
|
+
hover: {
|
|
248
|
+
DEFAULT: string;
|
|
249
|
+
dark: string;
|
|
250
|
+
};
|
|
251
|
+
focus: {
|
|
252
|
+
DEFAULT: string;
|
|
253
|
+
dark: string;
|
|
254
|
+
};
|
|
255
|
+
disabled: {
|
|
256
|
+
DEFAULT: string;
|
|
257
|
+
dark: string;
|
|
258
|
+
};
|
|
259
|
+
border: {
|
|
260
|
+
DEFAULT: string;
|
|
261
|
+
dark: string;
|
|
262
|
+
hover: {
|
|
263
|
+
DEFAULT: string;
|
|
264
|
+
dark: string;
|
|
265
|
+
};
|
|
266
|
+
focus: {
|
|
267
|
+
DEFAULT: string;
|
|
268
|
+
dark: string;
|
|
269
|
+
};
|
|
270
|
+
disabled: {
|
|
271
|
+
DEFAULT: string;
|
|
272
|
+
dark: string;
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
tertiary: {
|
|
277
|
+
hover: {
|
|
278
|
+
DEFAULT: string;
|
|
279
|
+
dark: string;
|
|
280
|
+
};
|
|
281
|
+
focus: {
|
|
282
|
+
DEFAULT: string;
|
|
283
|
+
dark: string;
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
success: {
|
|
287
|
+
DEFAULT: string;
|
|
288
|
+
hover: {
|
|
289
|
+
DEFAULT: string;
|
|
290
|
+
};
|
|
291
|
+
focus: {
|
|
292
|
+
DEFAULT: string;
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
danger: {
|
|
296
|
+
DEFAULT: string;
|
|
297
|
+
hover: {
|
|
298
|
+
DEFAULT: string;
|
|
299
|
+
};
|
|
300
|
+
focus: {
|
|
301
|
+
DEFAULT: string;
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
};
|
|
305
|
+
white: {
|
|
306
|
+
DEFAULT: string;
|
|
307
|
+
};
|
|
308
|
+
black: {
|
|
309
|
+
DEFAULT: string;
|
|
310
|
+
};
|
|
129
311
|
};
|
|
130
312
|
|
|
131
313
|
declare const buttonVariants: (props?: ({
|
|
@@ -168,4 +350,22 @@ declare const TableCell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<
|
|
|
168
350
|
declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
|
|
169
351
|
declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
170
352
|
|
|
171
|
-
|
|
353
|
+
declare const buttonGroupVariants: (props?: ({
|
|
354
|
+
variant?: "primary" | "secondary" | null | undefined;
|
|
355
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
356
|
+
size?: "md" | "sm" | null | undefined;
|
|
357
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
358
|
+
interface ButtonGroupProps extends React__default.ComponentPropsWithoutRef<'div'>, VariantProps<typeof buttonGroupVariants> {
|
|
359
|
+
}
|
|
360
|
+
declare const ButtonGroup: React__default.ForwardRefExoticComponent<ButtonGroupProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
361
|
+
|
|
362
|
+
interface TooltipProps {
|
|
363
|
+
children?: React.ReactNode;
|
|
364
|
+
side?: TooltipPrimitive.TooltipContentProps['side'];
|
|
365
|
+
content?: React.ReactNode;
|
|
366
|
+
sideOffset?: number;
|
|
367
|
+
className?: string;
|
|
368
|
+
}
|
|
369
|
+
declare const Tooltip: React.ForwardRefExoticComponent<TooltipProps & React.RefAttributes<HTMLDivElement>>;
|
|
370
|
+
|
|
371
|
+
export { Button, ButtonGroup, ButtonGroupProps, ButtonProps, Checkbox, CheckboxProps, Label, LabelProps, RadioGroupItem as Radio, RadioGroup, RadioGroupItemProps, RadioGroupProps, Table, TableBody, TableBodyProps, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tooltip, TooltipProps, buttonVariants, _default as colors };
|
package/dist/index.js
CHANGED
|
@@ -1302,7 +1302,7 @@ var require_react_development = __commonJS({
|
|
|
1302
1302
|
}
|
|
1303
1303
|
return lazyType;
|
|
1304
1304
|
}
|
|
1305
|
-
function
|
|
1305
|
+
function forwardRef8(render) {
|
|
1306
1306
|
{
|
|
1307
1307
|
if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
|
|
1308
1308
|
error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).");
|
|
@@ -2199,7 +2199,7 @@ var require_react_development = __commonJS({
|
|
|
2199
2199
|
exports.createElement = createElement$1;
|
|
2200
2200
|
exports.createFactory = createFactory;
|
|
2201
2201
|
exports.createRef = createRef;
|
|
2202
|
-
exports.forwardRef =
|
|
2202
|
+
exports.forwardRef = forwardRef8;
|
|
2203
2203
|
exports.isValidElement = isValidElement;
|
|
2204
2204
|
exports.lazy = lazy;
|
|
2205
2205
|
exports.memo = memo;
|
|
@@ -2276,7 +2276,7 @@ var require_react_jsx_runtime_development = __commonJS({
|
|
|
2276
2276
|
if (process.env.NODE_ENV !== "production") {
|
|
2277
2277
|
(function() {
|
|
2278
2278
|
"use strict";
|
|
2279
|
-
var
|
|
2279
|
+
var React9 = require_react();
|
|
2280
2280
|
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
|
2281
2281
|
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
2282
2282
|
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
@@ -2302,7 +2302,7 @@ var require_react_jsx_runtime_development = __commonJS({
|
|
|
2302
2302
|
}
|
|
2303
2303
|
return null;
|
|
2304
2304
|
}
|
|
2305
|
-
var ReactSharedInternals =
|
|
2305
|
+
var ReactSharedInternals = React9.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
2306
2306
|
function error(format) {
|
|
2307
2307
|
{
|
|
2308
2308
|
{
|
|
@@ -3137,11 +3137,11 @@ var require_react_jsx_runtime_development = __commonJS({
|
|
|
3137
3137
|
return jsxWithValidation(type, props, key, false);
|
|
3138
3138
|
}
|
|
3139
3139
|
}
|
|
3140
|
-
var
|
|
3141
|
-
var
|
|
3140
|
+
var jsx13 = jsxWithValidationDynamic;
|
|
3141
|
+
var jsxs3 = jsxWithValidationStatic;
|
|
3142
3142
|
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
3143
|
-
exports.jsx =
|
|
3144
|
-
exports.jsxs =
|
|
3143
|
+
exports.jsx = jsx13;
|
|
3144
|
+
exports.jsxs = jsxs3;
|
|
3145
3145
|
})();
|
|
3146
3146
|
}
|
|
3147
3147
|
}
|
|
@@ -3163,6 +3163,7 @@ var require_jsx_runtime = __commonJS({
|
|
|
3163
3163
|
var src_exports = {};
|
|
3164
3164
|
__export(src_exports, {
|
|
3165
3165
|
Button: () => Button,
|
|
3166
|
+
ButtonGroup: () => ButtonGroup,
|
|
3166
3167
|
Checkbox: () => Checkbox,
|
|
3167
3168
|
Label: () => Label,
|
|
3168
3169
|
Radio: () => RadioGroupItem,
|
|
@@ -3175,12 +3176,13 @@ __export(src_exports, {
|
|
|
3175
3176
|
TableHead: () => TableHead,
|
|
3176
3177
|
TableHeader: () => TableHeader,
|
|
3177
3178
|
TableRow: () => TableRow,
|
|
3179
|
+
Tooltip: () => Tooltip,
|
|
3178
3180
|
buttonVariants: () => buttonVariants,
|
|
3179
|
-
colors: () =>
|
|
3181
|
+
colors: () => colors_default
|
|
3180
3182
|
});
|
|
3181
3183
|
module.exports = __toCommonJS(src_exports);
|
|
3182
3184
|
|
|
3183
|
-
// src/colors.ts
|
|
3185
|
+
// src/colors/base.ts
|
|
3184
3186
|
var colors = {
|
|
3185
3187
|
grey: {
|
|
3186
3188
|
50: "#F9FAFB",
|
|
@@ -3303,41 +3305,179 @@ var colors = {
|
|
|
3303
3305
|
900: "#731837"
|
|
3304
3306
|
}
|
|
3305
3307
|
};
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3308
|
+
|
|
3309
|
+
// src/colors/foreground.ts
|
|
3310
|
+
var foreground = {
|
|
3311
|
+
DEFAULT: colors.grey["900"],
|
|
3312
|
+
dark: "#FFF",
|
|
3313
|
+
muted: {
|
|
3314
|
+
DEFAULT: colors.grey["500"],
|
|
3315
|
+
dark: colors.grey["300"]
|
|
3316
|
+
},
|
|
3317
|
+
subtle: {
|
|
3318
|
+
DEFAULT: colors.grey["400"],
|
|
3319
|
+
dark: colors.grey["500"]
|
|
3320
|
+
},
|
|
3321
|
+
inverse: {
|
|
3322
|
+
DEFAULT: "#FFF",
|
|
3323
|
+
dark: colors.grey["900"]
|
|
3324
|
+
}
|
|
3325
|
+
};
|
|
3326
|
+
|
|
3327
|
+
// src/colors/background.ts
|
|
3328
|
+
var background = {
|
|
3329
|
+
DEFAULT: "#FFF",
|
|
3330
|
+
dark: "#000",
|
|
3331
|
+
alt: {
|
|
3332
|
+
DEFAULT: colors.grey["50"],
|
|
3333
|
+
dark: colors.grey["700"]
|
|
3334
|
+
},
|
|
3335
|
+
subtle: {
|
|
3336
|
+
DEFAULT: colors.purple["50"],
|
|
3337
|
+
dark: colors.grey["800"]
|
|
3338
|
+
},
|
|
3339
|
+
inverse: {
|
|
3312
3340
|
DEFAULT: colors.grey["900"],
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3341
|
+
dark: "#FFF"
|
|
3342
|
+
}
|
|
3343
|
+
};
|
|
3344
|
+
|
|
3345
|
+
// src/colors/accent.ts
|
|
3346
|
+
var accent = {
|
|
3347
|
+
DEFAULT: colors.blue["700"],
|
|
3348
|
+
dark: "#FFF",
|
|
3349
|
+
alt: {
|
|
3350
|
+
DEFAULT: colors.grey["300"],
|
|
3351
|
+
dark: colors.grey["600"]
|
|
3352
|
+
},
|
|
3353
|
+
hover: {
|
|
3354
|
+
DEFAULT: colors.grey["900"],
|
|
3355
|
+
dark: colors.grey["300"]
|
|
3356
|
+
},
|
|
3357
|
+
focus: {
|
|
3358
|
+
DEFAULT: "#000",
|
|
3359
|
+
dark: colors.grey["100"]
|
|
3360
|
+
}
|
|
3361
|
+
};
|
|
3362
|
+
|
|
3363
|
+
// src/colors/border.ts
|
|
3364
|
+
var border = {
|
|
3365
|
+
DEFAULT: colors.grey["300"],
|
|
3366
|
+
dark: colors.grey["500"],
|
|
3367
|
+
hover: {
|
|
3368
|
+
DEFAULT: colors.grey["400"],
|
|
3369
|
+
dark: colors.grey["300"]
|
|
3316
3370
|
},
|
|
3317
|
-
|
|
3371
|
+
focus: {
|
|
3372
|
+
DEFAULT: colors.grey["500"],
|
|
3373
|
+
dark: colors.grey["400"]
|
|
3374
|
+
},
|
|
3375
|
+
subtle: {
|
|
3376
|
+
DEFAULT: colors.grey["200"],
|
|
3377
|
+
dark: colors.grey["700"]
|
|
3378
|
+
}
|
|
3379
|
+
};
|
|
3380
|
+
|
|
3381
|
+
// src/colors/feedback.ts
|
|
3382
|
+
var feedback = {
|
|
3383
|
+
green: colors.green["400"],
|
|
3384
|
+
yellow: colors.yellow["300"],
|
|
3385
|
+
orange: colors.orange["400"],
|
|
3386
|
+
red: colors.red["600"]
|
|
3387
|
+
};
|
|
3388
|
+
|
|
3389
|
+
// src/colors/button.ts
|
|
3390
|
+
var button = {
|
|
3391
|
+
primary: {
|
|
3318
3392
|
DEFAULT: colors.blue["700"],
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3393
|
+
dark: "#FFF",
|
|
3394
|
+
hover: {
|
|
3395
|
+
DEFAULT: accent.hover.DEFAULT,
|
|
3396
|
+
dark: accent.hover.dark
|
|
3397
|
+
},
|
|
3398
|
+
focus: {
|
|
3399
|
+
DEFAULT: accent.focus.DEFAULT,
|
|
3400
|
+
dark: accent.focus.dark
|
|
3401
|
+
},
|
|
3402
|
+
disabled: {
|
|
3403
|
+
DEFAULT: background.subtle.DEFAULT,
|
|
3404
|
+
dark: background.subtle.dark
|
|
3405
|
+
}
|
|
3323
3406
|
},
|
|
3324
|
-
|
|
3325
|
-
DEFAULT:
|
|
3326
|
-
|
|
3327
|
-
|
|
3407
|
+
secondary: {
|
|
3408
|
+
DEFAULT: "#FFF",
|
|
3409
|
+
dark: "#000",
|
|
3410
|
+
hover: {
|
|
3411
|
+
DEFAULT: background.subtle.DEFAULT,
|
|
3412
|
+
dark: background.subtle.dark
|
|
3413
|
+
},
|
|
3414
|
+
focus: {
|
|
3415
|
+
DEFAULT: colors.blue["50"],
|
|
3416
|
+
dark: colors.blue["900"]
|
|
3417
|
+
},
|
|
3418
|
+
disabled: {
|
|
3419
|
+
DEFAULT: background.subtle.DEFAULT,
|
|
3420
|
+
dark: background.subtle.dark
|
|
3421
|
+
},
|
|
3422
|
+
border: {
|
|
3423
|
+
DEFAULT: border.DEFAULT,
|
|
3424
|
+
dark: border.dark,
|
|
3425
|
+
hover: {
|
|
3426
|
+
DEFAULT: border.hover.DEFAULT,
|
|
3427
|
+
dark: border.hover.dark
|
|
3428
|
+
},
|
|
3429
|
+
focus: {
|
|
3430
|
+
DEFAULT: border.focus.DEFAULT,
|
|
3431
|
+
dark: border.focus.dark
|
|
3432
|
+
},
|
|
3433
|
+
disabled: {
|
|
3434
|
+
DEFAULT: border.subtle.DEFAULT,
|
|
3435
|
+
dark: border.subtle.dark
|
|
3436
|
+
}
|
|
3437
|
+
}
|
|
3328
3438
|
},
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3439
|
+
tertiary: {
|
|
3440
|
+
hover: {
|
|
3441
|
+
DEFAULT: background.subtle.DEFAULT,
|
|
3442
|
+
dark: background.subtle.dark
|
|
3443
|
+
},
|
|
3444
|
+
focus: {
|
|
3445
|
+
DEFAULT: colors.blue["50"],
|
|
3446
|
+
dark: colors.blue["900"]
|
|
3447
|
+
}
|
|
3334
3448
|
},
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
hover:
|
|
3338
|
-
|
|
3339
|
-
|
|
3449
|
+
success: {
|
|
3450
|
+
DEFAULT: feedback.green,
|
|
3451
|
+
hover: {
|
|
3452
|
+
DEFAULT: colors.green["500"]
|
|
3453
|
+
},
|
|
3454
|
+
focus: {
|
|
3455
|
+
DEFAULT: colors.green["600"]
|
|
3456
|
+
}
|
|
3340
3457
|
},
|
|
3458
|
+
danger: {
|
|
3459
|
+
DEFAULT: feedback.red,
|
|
3460
|
+
hover: {
|
|
3461
|
+
DEFAULT: colors.red["700"]
|
|
3462
|
+
},
|
|
3463
|
+
focus: {
|
|
3464
|
+
DEFAULT: colors.red["800"]
|
|
3465
|
+
}
|
|
3466
|
+
}
|
|
3467
|
+
};
|
|
3468
|
+
|
|
3469
|
+
// src/colors/index.ts
|
|
3470
|
+
var colors_default = __spreadValues({
|
|
3471
|
+
transparent: "transparent",
|
|
3472
|
+
current: "currentColor",
|
|
3473
|
+
primary: colors.blue,
|
|
3474
|
+
secondary: colors.pink,
|
|
3475
|
+
foreground,
|
|
3476
|
+
background,
|
|
3477
|
+
accent,
|
|
3478
|
+
border,
|
|
3479
|
+
feedback,
|
|
3480
|
+
button,
|
|
3341
3481
|
white: {
|
|
3342
3482
|
DEFAULT: "#fff"
|
|
3343
3483
|
},
|
|
@@ -3463,9 +3603,9 @@ var buttonVariants = (0, import_class_variance_authority.cva)(
|
|
|
3463
3603
|
{
|
|
3464
3604
|
variants: {
|
|
3465
3605
|
variant: {
|
|
3466
|
-
primary: "bg-button-
|
|
3467
|
-
secondary: "bg-white text-grey-900 border-border hover:bg-button-
|
|
3468
|
-
tertiary: "bg-transparent border-transparent text-foreground hover:bg-
|
|
3606
|
+
primary: "bg-button-primary border-button-primary text-white hover:bg-button-primary-hover hover:border-button-primary-hover focus:bg-button-primary-focus focus:border-button-primary-focus disabled:bg-button-disabled disabled:text-foreground-subtle disabled:border-button-disabled",
|
|
3607
|
+
secondary: "bg-white text-grey-900 border-border hover:bg-button-secondary-hover hover:border-button-secondary-border-hover focus:bg-button-secondary-focus focus:border-button-secondary-border-focus disabled:bg-button-secondary-disabled disabled:border-button-secondary-border-disabled disabled:text-foreground-subtle",
|
|
3608
|
+
tertiary: "bg-transparent border-transparent text-foreground hover:bg-button-tertiary-hover hover:border-button-tertiary-hover focus:bg-button-tertiary-focus focus:border-button-tertiary-focus disabled:text-foreground-subtle",
|
|
3469
3609
|
success: "bg-green-400 border-green-400 text-black hover:bg-green-500 hover:border-green-500 focus:bg-green-600 focus:border-green-600 disabled:bg-button-disabled disabled:border-button-disabled disabled:text-foreground-subtle",
|
|
3470
3610
|
danger: "bg-red-600 border-red-600 text-white hover:bg-red-700 hover:border-red-700 focus:bg-red-800 focus:border-red-800 disabled:bg-button-disabled disabled:border-button-disabled disabled:text-foreground-subtle"
|
|
3471
3611
|
},
|
|
@@ -3555,16 +3695,16 @@ var checkboxVariants = (0, import_class_variance_authority2.cva)([
|
|
|
3555
3695
|
"border-border"
|
|
3556
3696
|
],
|
|
3557
3697
|
[
|
|
3558
|
-
"data-[state=checked]:border-
|
|
3559
|
-
"data-[state=checked]:bg-
|
|
3698
|
+
"data-[state=checked]:border-primary-600",
|
|
3699
|
+
"data-[state=checked]:bg-primary-600",
|
|
3560
3700
|
"data-[state=checked]:text-foreground-inverse",
|
|
3561
|
-
"data-[state=indeterminate]:border-
|
|
3562
|
-
"data-[state=indeterminate]:bg-
|
|
3701
|
+
"data-[state=indeterminate]:border-primary-600",
|
|
3702
|
+
"data-[state=indeterminate]:bg-primary-600",
|
|
3563
3703
|
"data-[state=indeterminate]:text-foreground-inverse"
|
|
3564
3704
|
],
|
|
3565
3705
|
[
|
|
3566
|
-
"dark:data-[state=unchecked]:bg-
|
|
3567
|
-
"dark:data-[state=unchecked]:border-
|
|
3706
|
+
"dark:data-[state=unchecked]:bg-background-alt-dark",
|
|
3707
|
+
"dark:data-[state=unchecked]:border-border-dark"
|
|
3568
3708
|
]
|
|
3569
3709
|
]);
|
|
3570
3710
|
var Checkbox = React2.forwardRef((_a, ref) => {
|
|
@@ -3649,7 +3789,7 @@ var radioVariant = (0, import_class_variance_authority4.cva)([
|
|
|
3649
3789
|
"rounded-full",
|
|
3650
3790
|
"border-[0.533px]",
|
|
3651
3791
|
"border-border",
|
|
3652
|
-
"bg-
|
|
3792
|
+
"bg-background-alt",
|
|
3653
3793
|
"disabled:opacity-50",
|
|
3654
3794
|
"text-foreground-inverse"
|
|
3655
3795
|
],
|
|
@@ -3658,7 +3798,7 @@ var radioVariant = (0, import_class_variance_authority4.cva)([
|
|
|
3658
3798
|
"data-[state=checked]:bg-primary-600",
|
|
3659
3799
|
"data-[state=checked]:bg-primary-600"
|
|
3660
3800
|
],
|
|
3661
|
-
["dark:bg-
|
|
3801
|
+
["dark:bg-background-alt-dark", "dark:border-border-dark"]
|
|
3662
3802
|
]);
|
|
3663
3803
|
var RadioGroupItem = React5.forwardRef((_a, ref) => {
|
|
3664
3804
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
@@ -3790,9 +3930,126 @@ var TableFooter = React6.forwardRef((_a, ref) => {
|
|
|
3790
3930
|
);
|
|
3791
3931
|
});
|
|
3792
3932
|
TableFooter.displayName = "TableFooter";
|
|
3933
|
+
|
|
3934
|
+
// src/components/ButtonGroup/index.tsx
|
|
3935
|
+
var import_react3 = __toESM(require_react());
|
|
3936
|
+
var import_class_variance_authority6 = require("class-variance-authority");
|
|
3937
|
+
var import_jsx_runtime11 = __toESM(require_jsx_runtime());
|
|
3938
|
+
var buttonGroupVariants = (0, import_class_variance_authority6.cva)(
|
|
3939
|
+
[
|
|
3940
|
+
"inline-flex",
|
|
3941
|
+
"[&>*]:flex",
|
|
3942
|
+
"[&>*]:rounded-none",
|
|
3943
|
+
"[&>*]:border-0",
|
|
3944
|
+
"divide-border-subtle",
|
|
3945
|
+
"p-0",
|
|
3946
|
+
"[&>*]:gap-[10px]",
|
|
3947
|
+
"[&>*]:items-center",
|
|
3948
|
+
"[&>*]:justify-center",
|
|
3949
|
+
"[&>*]:px-3",
|
|
3950
|
+
"items-start",
|
|
3951
|
+
"rounded-lg",
|
|
3952
|
+
"overflow-hidden"
|
|
3953
|
+
],
|
|
3954
|
+
{
|
|
3955
|
+
variants: {
|
|
3956
|
+
variant: {
|
|
3957
|
+
primary: [
|
|
3958
|
+
"dark:divide-border-subtle-dark",
|
|
3959
|
+
"dark:[&>*]:bg-button-primary-dark",
|
|
3960
|
+
"dark:[&>*]:text-foreground-inverse-dark",
|
|
3961
|
+
"dark:[&>*:hover]:bg-button-secondary-hover",
|
|
3962
|
+
"dark:[&>*:focus]:bg-button-secondary-focus"
|
|
3963
|
+
],
|
|
3964
|
+
secondary: [
|
|
3965
|
+
"bg-background",
|
|
3966
|
+
"border-[1px] border-border-subtle",
|
|
3967
|
+
"[&>*]:bg-white [&>*]:text-grey-900",
|
|
3968
|
+
"[&>*:focus]:bg-button-secondary-focus",
|
|
3969
|
+
"[&>*:hover]:bg-button-secondary-hover",
|
|
3970
|
+
"[&>*:disabled]:bg-button-secondary-disabled [&>*:disabled]:border-button-secondary-border-disabled [&>*:disabled]:text-foreground-subtle"
|
|
3971
|
+
]
|
|
3972
|
+
},
|
|
3973
|
+
orientation: {
|
|
3974
|
+
horizontal: ["inline-flex", "divide-x-[1px]"],
|
|
3975
|
+
vertical: ["flex-col", "divide-y-[1px]", "[&>*]:self-stretch"]
|
|
3976
|
+
},
|
|
3977
|
+
size: {
|
|
3978
|
+
md: ["[&>*]:py-2.5"],
|
|
3979
|
+
sm: ["[&>*]:py-2"]
|
|
3980
|
+
}
|
|
3981
|
+
},
|
|
3982
|
+
defaultVariants: {
|
|
3983
|
+
orientation: "horizontal",
|
|
3984
|
+
variant: "primary",
|
|
3985
|
+
size: "md"
|
|
3986
|
+
}
|
|
3987
|
+
}
|
|
3988
|
+
);
|
|
3989
|
+
var ButtonGroup = import_react3.default.forwardRef(
|
|
3990
|
+
(_a, ref) => {
|
|
3991
|
+
var _b = _a, { className, orientation, variant, size } = _b, props = __objRest(_b, ["className", "orientation", "variant", "size"]);
|
|
3992
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
3993
|
+
"div",
|
|
3994
|
+
__spreadProps(__spreadValues({
|
|
3995
|
+
className: cn(
|
|
3996
|
+
buttonGroupVariants({ orientation, variant, size }),
|
|
3997
|
+
className
|
|
3998
|
+
)
|
|
3999
|
+
}, props), {
|
|
4000
|
+
ref
|
|
4001
|
+
})
|
|
4002
|
+
);
|
|
4003
|
+
}
|
|
4004
|
+
);
|
|
4005
|
+
ButtonGroup.displayName = "ButtonGroup";
|
|
4006
|
+
|
|
4007
|
+
// src/components/Tooltip/index.tsx
|
|
4008
|
+
var React8 = __toESM(require_react());
|
|
4009
|
+
var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"));
|
|
4010
|
+
var import_class_variance_authority7 = require("class-variance-authority");
|
|
4011
|
+
var import_jsx_runtime12 = __toESM(require_jsx_runtime());
|
|
4012
|
+
var tooltipVariants = (0, import_class_variance_authority7.cva)([
|
|
4013
|
+
[
|
|
4014
|
+
"fill-accent",
|
|
4015
|
+
"bg-accent",
|
|
4016
|
+
"z-50",
|
|
4017
|
+
"overflow-hidden",
|
|
4018
|
+
"rounded",
|
|
4019
|
+
"p-2",
|
|
4020
|
+
"text-xs",
|
|
4021
|
+
"text-center",
|
|
4022
|
+
"text-foreground-inverse",
|
|
4023
|
+
"font-semibold"
|
|
4024
|
+
],
|
|
4025
|
+
[
|
|
4026
|
+
"dark:text-foreground-inverse-dark",
|
|
4027
|
+
"dark:bg-accent-dark",
|
|
4028
|
+
"dark:fill-accent-dark"
|
|
4029
|
+
]
|
|
4030
|
+
]);
|
|
4031
|
+
var Tooltip = React8.forwardRef(({ children, side, content, sideOffset, className }, ref) => {
|
|
4032
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(TooltipPrimitive.Provider, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(TooltipPrimitive.Root, { children: [
|
|
4033
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(TooltipPrimitive.Trigger, { children }),
|
|
4034
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
4035
|
+
TooltipPrimitive.Content,
|
|
4036
|
+
{
|
|
4037
|
+
side: side != null ? side : "top",
|
|
4038
|
+
sideOffset: sideOffset != null ? sideOffset : 4,
|
|
4039
|
+
className: cn(tooltipVariants(), className),
|
|
4040
|
+
ref,
|
|
4041
|
+
children: [
|
|
4042
|
+
content,
|
|
4043
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(TooltipPrimitive.Arrow, { className: "fill-inherit" })
|
|
4044
|
+
]
|
|
4045
|
+
}
|
|
4046
|
+
)
|
|
4047
|
+
] }) });
|
|
4048
|
+
});
|
|
3793
4049
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3794
4050
|
0 && (module.exports = {
|
|
3795
4051
|
Button,
|
|
4052
|
+
ButtonGroup,
|
|
3796
4053
|
Checkbox,
|
|
3797
4054
|
Label,
|
|
3798
4055
|
Radio,
|
|
@@ -3805,6 +4062,7 @@ TableFooter.displayName = "TableFooter";
|
|
|
3805
4062
|
TableHead,
|
|
3806
4063
|
TableHeader,
|
|
3807
4064
|
TableRow,
|
|
4065
|
+
Tooltip,
|
|
3808
4066
|
buttonVariants,
|
|
3809
4067
|
colors
|
|
3810
4068
|
});
|