@grandbazar/ui-baza 1.5.4 → 1.6.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/dist/index.cjs +131 -54
- package/dist/index.d.ts +48 -18
- package/dist/index.js +131 -54
- package/dist/style.css +239 -41
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -51,35 +51,56 @@ function omit(object, ...keys) {
|
|
|
51
51
|
return Object.fromEntries(filteredEntries);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
const badge = "
|
|
55
|
-
const primary$4 = "
|
|
56
|
-
const secondary$5 = "
|
|
57
|
-
const
|
|
58
|
-
const
|
|
59
|
-
const
|
|
60
|
-
const
|
|
61
|
-
const
|
|
62
|
-
const
|
|
63
|
-
const
|
|
64
|
-
const
|
|
65
|
-
const
|
|
54
|
+
const badge = "_badge_x6ia4_2";
|
|
55
|
+
const primary$4 = "_primary_x6ia4_9";
|
|
56
|
+
const secondary$5 = "_secondary_x6ia4_13";
|
|
57
|
+
const glass$1 = "_glass_x6ia4_18";
|
|
58
|
+
const accent$5 = "_accent_x6ia4_23";
|
|
59
|
+
const violet = "_violet_x6ia4_28";
|
|
60
|
+
const pink = "_pink_x6ia4_33";
|
|
61
|
+
const red$1 = "_red_x6ia4_38";
|
|
62
|
+
const orange = "_orange_x6ia4_43";
|
|
63
|
+
const green$1 = "_green_x6ia4_48";
|
|
64
|
+
const neutral$3 = "_neutral_x6ia4_54";
|
|
65
|
+
const lg$7 = "_lg_x6ia4_59";
|
|
66
|
+
const md$a = "_md_x6ia4_66";
|
|
67
|
+
const sm$5 = "_sm_x6ia4_73";
|
|
68
|
+
const pill$2 = "_pill_x6ia4_80";
|
|
66
69
|
const styles$E = {
|
|
67
70
|
badge: badge,
|
|
68
71
|
primary: primary$4,
|
|
69
72
|
secondary: secondary$5,
|
|
70
|
-
|
|
73
|
+
glass: glass$1,
|
|
74
|
+
accent: accent$5,
|
|
71
75
|
violet: violet,
|
|
72
76
|
pink: pink,
|
|
73
77
|
red: red$1,
|
|
74
78
|
orange: orange,
|
|
75
|
-
green: green,
|
|
79
|
+
green: green$1,
|
|
76
80
|
neutral: neutral$3,
|
|
77
81
|
lg: lg$7,
|
|
78
|
-
md: md$a
|
|
82
|
+
md: md$a,
|
|
83
|
+
sm: sm$5,
|
|
84
|
+
pill: pill$2
|
|
79
85
|
};
|
|
80
86
|
|
|
81
|
-
function Badge({
|
|
82
|
-
|
|
87
|
+
function Badge({
|
|
88
|
+
children,
|
|
89
|
+
className,
|
|
90
|
+
size = "lg",
|
|
91
|
+
color = "accent",
|
|
92
|
+
mode = "primary",
|
|
93
|
+
shape = "default",
|
|
94
|
+
...props
|
|
95
|
+
}) {
|
|
96
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
97
|
+
"div",
|
|
98
|
+
{
|
|
99
|
+
className: classNames(styles$E.badge, styles$E[size], styles$E[color], styles$E[mode], styles$E[shape], className),
|
|
100
|
+
...props,
|
|
101
|
+
children
|
|
102
|
+
}
|
|
103
|
+
);
|
|
83
104
|
}
|
|
84
105
|
|
|
85
106
|
const badgeTabsItem = "_badgeTabsItem_10lit_2";
|
|
@@ -1290,37 +1311,48 @@ function Breadcrumbs({
|
|
|
1290
1311
|
}
|
|
1291
1312
|
Breadcrumbs.Item = BreadcrumbItem;
|
|
1292
1313
|
|
|
1293
|
-
const button = "
|
|
1294
|
-
const accent$
|
|
1295
|
-
const primary$2 = "
|
|
1296
|
-
const secondary$3 = "
|
|
1297
|
-
const tertiary = "
|
|
1298
|
-
const line = "
|
|
1299
|
-
const neutral$2 = "
|
|
1300
|
-
const
|
|
1301
|
-
const
|
|
1302
|
-
const
|
|
1314
|
+
const button = "_button_11nu9_2";
|
|
1315
|
+
const accent$4 = "_accent_11nu9_12";
|
|
1316
|
+
const primary$2 = "_primary_11nu9_13";
|
|
1317
|
+
const secondary$3 = "_secondary_11nu9_31";
|
|
1318
|
+
const tertiary = "_tertiary_11nu9_49";
|
|
1319
|
+
const line = "_line_11nu9_50";
|
|
1320
|
+
const neutral$2 = "_neutral_11nu9_79";
|
|
1321
|
+
const white$1 = "_white_11nu9_146";
|
|
1322
|
+
const lg$6 = "_lg_11nu9_213";
|
|
1323
|
+
const md$9 = "_md_11nu9_222";
|
|
1324
|
+
const sm$4 = "_sm_11nu9_240";
|
|
1325
|
+
const pill$1 = "_pill_11nu9_249";
|
|
1326
|
+
const circle = "_circle_11nu9_250";
|
|
1327
|
+
const square = "_square_11nu9_255";
|
|
1328
|
+
const elevated = "_elevated_11nu9_266";
|
|
1303
1329
|
const styles$z = {
|
|
1304
1330
|
button: button,
|
|
1305
|
-
accent: accent$
|
|
1331
|
+
accent: accent$4,
|
|
1306
1332
|
primary: primary$2,
|
|
1307
1333
|
secondary: secondary$3,
|
|
1308
1334
|
tertiary: tertiary,
|
|
1309
1335
|
line: line,
|
|
1310
1336
|
neutral: neutral$2,
|
|
1337
|
+
white: white$1,
|
|
1311
1338
|
lg: lg$6,
|
|
1312
1339
|
md: md$9,
|
|
1313
|
-
sm:
|
|
1340
|
+
"md-sm": "_md-sm_11nu9_231",
|
|
1341
|
+
sm: sm$4,
|
|
1342
|
+
pill: pill$1,
|
|
1343
|
+
circle: circle,
|
|
1344
|
+
square: square,
|
|
1345
|
+
elevated: elevated
|
|
1314
1346
|
};
|
|
1315
1347
|
|
|
1316
1348
|
const buttonFunction = "_buttonFunction_o8iku_2";
|
|
1317
|
-
const accent$
|
|
1349
|
+
const accent$3 = "_accent_o8iku_10";
|
|
1318
1350
|
const neutral$1 = "_neutral_o8iku_22";
|
|
1319
1351
|
const lg$5 = "_lg_o8iku_41";
|
|
1320
1352
|
const md$8 = "_md_o8iku_46";
|
|
1321
1353
|
const styles$y = {
|
|
1322
1354
|
buttonFunction: buttonFunction,
|
|
1323
|
-
accent: accent$
|
|
1355
|
+
accent: accent$3,
|
|
1324
1356
|
neutral: neutral$1,
|
|
1325
1357
|
lg: lg$5,
|
|
1326
1358
|
md: md$8
|
|
@@ -1353,6 +1385,8 @@ function Button({
|
|
|
1353
1385
|
color = "accent",
|
|
1354
1386
|
size = "lg",
|
|
1355
1387
|
mode = "primary",
|
|
1388
|
+
shape = "default",
|
|
1389
|
+
elevated,
|
|
1356
1390
|
asChild,
|
|
1357
1391
|
...props
|
|
1358
1392
|
}) {
|
|
@@ -1360,7 +1394,15 @@ function Button({
|
|
|
1360
1394
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1361
1395
|
Component,
|
|
1362
1396
|
{
|
|
1363
|
-
className: classNames(
|
|
1397
|
+
className: classNames(
|
|
1398
|
+
styles$z.button,
|
|
1399
|
+
styles$z[color],
|
|
1400
|
+
styles$z[size],
|
|
1401
|
+
styles$z[mode],
|
|
1402
|
+
styles$z[shape],
|
|
1403
|
+
elevated ? styles$z.elevated : void 0,
|
|
1404
|
+
className
|
|
1405
|
+
),
|
|
1364
1406
|
...!asChild && { type: "button" },
|
|
1365
1407
|
...props,
|
|
1366
1408
|
children
|
|
@@ -1370,11 +1412,11 @@ function Button({
|
|
|
1370
1412
|
Button.Function = ButtonFunction;
|
|
1371
1413
|
|
|
1372
1414
|
const checkboxWrapper = "_checkboxWrapper_k1shg_2";
|
|
1373
|
-
const icon$
|
|
1415
|
+
const icon$3 = "_icon_k1shg_23";
|
|
1374
1416
|
const checkbox = "_checkbox_k1shg_2";
|
|
1375
1417
|
const styles$x = {
|
|
1376
1418
|
checkboxWrapper: checkboxWrapper,
|
|
1377
|
-
icon: icon$
|
|
1419
|
+
icon: icon$3,
|
|
1378
1420
|
checkbox: checkbox
|
|
1379
1421
|
};
|
|
1380
1422
|
|
|
@@ -1396,21 +1438,48 @@ function Checkbox({ className, label, indeterminate, ...props }) {
|
|
|
1396
1438
|
);
|
|
1397
1439
|
}
|
|
1398
1440
|
|
|
1399
|
-
const chip = "
|
|
1441
|
+
const chip = "_chip_nge5j_2";
|
|
1442
|
+
const glass = "_glass_nge5j_36";
|
|
1443
|
+
const pill = "_pill_nge5j_59";
|
|
1444
|
+
const icon$2 = "_icon_nge5j_63";
|
|
1400
1445
|
const styles$w = {
|
|
1401
|
-
chip: chip
|
|
1446
|
+
chip: chip,
|
|
1447
|
+
glass: glass,
|
|
1448
|
+
pill: pill,
|
|
1449
|
+
icon: icon$2
|
|
1402
1450
|
};
|
|
1403
1451
|
|
|
1404
|
-
function
|
|
1452
|
+
function prependToChild(child, node) {
|
|
1453
|
+
if (!node || !React.isValidElement(child)) {
|
|
1454
|
+
return child;
|
|
1455
|
+
}
|
|
1456
|
+
return React.cloneElement(child, void 0, node, child.props.children);
|
|
1457
|
+
}
|
|
1458
|
+
function Chip({
|
|
1459
|
+
isSelected,
|
|
1460
|
+
children,
|
|
1461
|
+
className,
|
|
1462
|
+
disabled,
|
|
1463
|
+
icon,
|
|
1464
|
+
shape = "default",
|
|
1465
|
+
mode = "default",
|
|
1466
|
+
asChild,
|
|
1467
|
+
...props
|
|
1468
|
+
}) {
|
|
1469
|
+
const Component = asChild ? Slot : "div";
|
|
1470
|
+
const iconElement = icon ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$w.icon, "aria-hidden": "true", children: icon }) : void 0;
|
|
1405
1471
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1406
|
-
|
|
1472
|
+
Component,
|
|
1407
1473
|
{
|
|
1408
|
-
className: classNames(styles$w.chip, className),
|
|
1474
|
+
className: classNames(styles$w.chip, styles$w[shape], styles$w[mode], className),
|
|
1409
1475
|
"data-selected": isSelected,
|
|
1410
1476
|
"data-disabled": disabled,
|
|
1411
1477
|
"aria-disabled": disabled,
|
|
1412
1478
|
...props,
|
|
1413
|
-
children
|
|
1479
|
+
children: asChild ? prependToChild(children, iconElement) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1480
|
+
iconElement,
|
|
1481
|
+
children
|
|
1482
|
+
] })
|
|
1414
1483
|
}
|
|
1415
1484
|
);
|
|
1416
1485
|
}
|
|
@@ -1419,7 +1488,7 @@ const root$1 = "_root_ww0fb_2";
|
|
|
1419
1488
|
const lg$4 = "_lg_ww0fb_16";
|
|
1420
1489
|
const md$7 = "_md_ww0fb_24";
|
|
1421
1490
|
const red = "_red_ww0fb_32";
|
|
1422
|
-
const accent$
|
|
1491
|
+
const accent$2 = "_accent_ww0fb_37";
|
|
1423
1492
|
const neutral = "_neutral_ww0fb_42";
|
|
1424
1493
|
const secondary$2 = "_secondary_ww0fb_47";
|
|
1425
1494
|
const white = "_white_ww0fb_52";
|
|
@@ -1428,7 +1497,7 @@ const styles$v = {
|
|
|
1428
1497
|
lg: lg$4,
|
|
1429
1498
|
md: md$7,
|
|
1430
1499
|
red: red,
|
|
1431
|
-
accent: accent$
|
|
1500
|
+
accent: accent$2,
|
|
1432
1501
|
neutral: neutral,
|
|
1433
1502
|
secondary: secondary$2,
|
|
1434
1503
|
white: white
|
|
@@ -2353,7 +2422,7 @@ DropdownMenu.Item = DropdownItem;
|
|
|
2353
2422
|
DropdownMenu.Portal = DropdownPortal;
|
|
2354
2423
|
|
|
2355
2424
|
const notificationInline = "_notificationInline_1kerp_2";
|
|
2356
|
-
const accent = "_accent_1kerp_10";
|
|
2425
|
+
const accent$1 = "_accent_1kerp_10";
|
|
2357
2426
|
const negative = "_negative_1kerp_16";
|
|
2358
2427
|
const positive = "_positive_1kerp_22";
|
|
2359
2428
|
const warning = "_warning_1kerp_28";
|
|
@@ -2369,7 +2438,7 @@ const description = "_description_1kerp_100";
|
|
|
2369
2438
|
const actions = "_actions_1kerp_108";
|
|
2370
2439
|
const styles$o = {
|
|
2371
2440
|
notificationInline: notificationInline,
|
|
2372
|
-
accent: accent,
|
|
2441
|
+
accent: accent$1,
|
|
2373
2442
|
negative: negative,
|
|
2374
2443
|
positive: positive,
|
|
2375
2444
|
warning: warning,
|
|
@@ -2545,26 +2614,33 @@ function Pagination(props) {
|
|
|
2545
2614
|
}
|
|
2546
2615
|
Pagination.Item = PaginationItem;
|
|
2547
2616
|
|
|
2548
|
-
const root = "
|
|
2549
|
-
const segment = "
|
|
2550
|
-
const flexGrow = "
|
|
2551
|
-
const fill$1 = "
|
|
2552
|
-
const trail = "
|
|
2553
|
-
const
|
|
2554
|
-
const
|
|
2617
|
+
const root = "_root_1lyc4_2";
|
|
2618
|
+
const segment = "_segment_1lyc4_10";
|
|
2619
|
+
const flexGrow = "_flexGrow_1lyc4_19";
|
|
2620
|
+
const fill$1 = "_fill_1lyc4_23";
|
|
2621
|
+
const trail = "_trail_1lyc4_28";
|
|
2622
|
+
const xs = "_xs_1lyc4_32";
|
|
2623
|
+
const sm$2 = "_sm_1lyc4_36";
|
|
2624
|
+
const md$5 = "_md_1lyc4_40";
|
|
2625
|
+
const accent = "_accent_1lyc4_44";
|
|
2626
|
+
const green = "_green_1lyc4_48";
|
|
2555
2627
|
const styles$l = {
|
|
2556
2628
|
root: root,
|
|
2557
2629
|
segment: segment,
|
|
2558
2630
|
flexGrow: flexGrow,
|
|
2559
2631
|
fill: fill$1,
|
|
2560
2632
|
trail: trail,
|
|
2633
|
+
xs: xs,
|
|
2561
2634
|
sm: sm$2,
|
|
2562
|
-
md: md$5
|
|
2635
|
+
md: md$5,
|
|
2636
|
+
accent: accent,
|
|
2637
|
+
green: green
|
|
2563
2638
|
};
|
|
2564
2639
|
|
|
2565
2640
|
function ProgressBarLinear({
|
|
2566
2641
|
className,
|
|
2567
2642
|
size = "md",
|
|
2643
|
+
color = "accent",
|
|
2568
2644
|
percent,
|
|
2569
2645
|
showFillOnZero,
|
|
2570
2646
|
...props
|
|
@@ -2573,7 +2649,7 @@ function ProgressBarLinear({
|
|
|
2573
2649
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2574
2650
|
"div",
|
|
2575
2651
|
{
|
|
2576
|
-
className: classNames(styles$l.root, styles$l[size], className),
|
|
2652
|
+
className: classNames(styles$l.root, styles$l[size], styles$l[color], className),
|
|
2577
2653
|
role: "progressbar",
|
|
2578
2654
|
"aria-valuenow": clampedPercent,
|
|
2579
2655
|
"aria-valuemin": 0,
|
|
@@ -2601,6 +2677,7 @@ function ProgressBarLinear({
|
|
|
2601
2677
|
function ProgressBarSteps({
|
|
2602
2678
|
className,
|
|
2603
2679
|
size = "md",
|
|
2680
|
+
color = "accent",
|
|
2604
2681
|
currentStep,
|
|
2605
2682
|
totalSteps,
|
|
2606
2683
|
...props
|
|
@@ -2621,7 +2698,7 @@ function ProgressBarSteps({
|
|
|
2621
2698
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2622
2699
|
"div",
|
|
2623
2700
|
{
|
|
2624
|
-
className: classNames(styles$l.root, styles$l[size], className),
|
|
2701
|
+
className: classNames(styles$l.root, styles$l[size], styles$l[color], className),
|
|
2625
2702
|
role: "progressbar",
|
|
2626
2703
|
"aria-valuenow": clampedCurrent,
|
|
2627
2704
|
"aria-valuemin": 0,
|
package/dist/index.d.ts
CHANGED
|
@@ -10,17 +10,20 @@ import { SetStateAction } from 'react';
|
|
|
10
10
|
* Badge displays a label or indicator with customizable color and size.
|
|
11
11
|
* Supports multiple color schemes and display modes for different contexts.
|
|
12
12
|
*
|
|
13
|
-
* @param size - Size of the badge (lg, md)
|
|
14
|
-
* @param color - Color scheme (accent, violet, pink, red, orange, green, neutral)
|
|
15
|
-
* @param mode - Display mode (primary, secondary)
|
|
13
|
+
* @param size - Size of the badge (lg, md, sm)
|
|
14
|
+
* @param color - Color scheme (accent, violet, pink, red, orange, green, neutral); ignored in glass mode
|
|
15
|
+
* @param mode - Display mode (primary, secondary, glass); glass is a translucent white badge for colored backgrounds
|
|
16
|
+
* @param shape - Corner shape (default, pill); pill rounds the corners fully without changing paddings
|
|
16
17
|
*/
|
|
17
|
-
export declare function Badge({ children, className, size, color, mode, ...props }: TBadgeProps): JSX.Element;
|
|
18
|
+
export declare function Badge({ children, className, size, color, mode, shape, ...props }: TBadgeProps): JSX.Element;
|
|
18
19
|
|
|
19
20
|
declare const BADGE_COLORS: readonly ["accent", "violet", "pink", "red", "orange", "green", "neutral"];
|
|
20
21
|
|
|
21
|
-
declare const BADGE_MODES: readonly ["primary", "secondary"];
|
|
22
|
+
declare const BADGE_MODES: readonly ["primary", "secondary", "glass"];
|
|
22
23
|
|
|
23
|
-
declare const
|
|
24
|
+
declare const BADGE_SHAPES: readonly ["default", "pill"];
|
|
25
|
+
|
|
26
|
+
declare const BADGE_SIZES: readonly ["lg", "md", "sm"];
|
|
24
27
|
|
|
25
28
|
declare const BADGE_TABS_ITEM_MODES: readonly ["primary", "secondary"];
|
|
26
29
|
|
|
@@ -74,25 +77,31 @@ export declare namespace Breadcrumbs {
|
|
|
74
77
|
* Button renders a clickable button element with various styles.
|
|
75
78
|
* Supports the asChild pattern for polymorphic rendering via Slot.
|
|
76
79
|
*
|
|
77
|
-
* @param color - Color variant of the button (accent, neutral)
|
|
78
|
-
* @param size - Size of the button (lg, md, sm)
|
|
80
|
+
* @param color - Color variant of the button (accent, neutral, white); white is an inverted variant for colored backgrounds
|
|
81
|
+
* @param size - Size of the button (lg, md, sm, md-sm); md-sm is 40px high
|
|
79
82
|
* @param mode - Visual mode of the button (primary, secondary, tertiary, line)
|
|
83
|
+
* @param shape - Corner shape (default, pill, circle, square); circle and square render a square icon button as wide as the size is high
|
|
84
|
+
* @param elevated - Whether to cast a floating shadow, e.g. for a button over an image
|
|
80
85
|
* @param asChild - When true, merges props onto the child element instead of rendering a button
|
|
81
86
|
* @param children - Content to display inside the button
|
|
82
87
|
*/
|
|
83
|
-
export declare function Button({ children, className, color, size, mode, asChild, ...props }: TButtonPropsWithAsChild): JSX.Element;
|
|
88
|
+
export declare function Button({ children, className, color, size, mode, shape, elevated, asChild, ...props }: TButtonPropsWithAsChild): JSX.Element;
|
|
84
89
|
|
|
85
90
|
export declare namespace Button {
|
|
86
91
|
var Function: typeof ButtonFunction;
|
|
87
92
|
}
|
|
88
93
|
|
|
89
|
-
declare const BUTTON_COLORS: readonly ["accent", "neutral"];
|
|
94
|
+
declare const BUTTON_COLORS: readonly ["accent", "neutral", "white"];
|
|
95
|
+
|
|
96
|
+
declare const BUTTON_FUNCTION_COLORS: readonly ["accent", "neutral"];
|
|
90
97
|
|
|
91
98
|
declare const BUTTON_FUNCTION_SIZES: readonly ["lg", "md"];
|
|
92
99
|
|
|
93
100
|
declare const BUTTON_MODES: readonly ["primary", "secondary", "line", "tertiary"];
|
|
94
101
|
|
|
95
|
-
declare const
|
|
102
|
+
declare const BUTTON_SHAPES: readonly ["default", "pill", "circle", "square"];
|
|
103
|
+
|
|
104
|
+
declare const BUTTON_SIZES: readonly ["lg", "md", "sm", "md-sm"];
|
|
96
105
|
|
|
97
106
|
declare function ButtonFunction({ children, className, color, size, asChild, ...props }: TButtonFunctionProps): JSX.Element;
|
|
98
107
|
|
|
@@ -111,13 +120,22 @@ export declare function Checkbox({ className, label, indeterminate, ...props }:
|
|
|
111
120
|
/**
|
|
112
121
|
* Chip renders a compact, selectable tag element.
|
|
113
122
|
* Supports selected and disabled states for interactive filtering and selection.
|
|
123
|
+
* Supports the asChild pattern for polymorphic rendering via Slot, e.g. to render the chip as a link.
|
|
114
124
|
*
|
|
115
125
|
* @param isSelected - Whether the chip is in selected state
|
|
116
126
|
* @param disabled - Whether the chip is disabled
|
|
127
|
+
* @param icon - Leading icon; inherits the text color, accent while the chip is not selected
|
|
128
|
+
* @param shape - Corner shape (default, pill)
|
|
129
|
+
* @param mode - Visual mode (default, glass); glass is a translucent white chip for colored backgrounds
|
|
130
|
+
* @param asChild - When true, merges props onto the child element instead of rendering a div
|
|
117
131
|
* @param className - Additional CSS classes
|
|
118
132
|
* @param children - Content to display inside the chip
|
|
119
133
|
*/
|
|
120
|
-
export declare function Chip({ isSelected, children, className, disabled, ...props }: TChipProps): JSX.Element;
|
|
134
|
+
export declare function Chip({ isSelected, children, className, disabled, icon, shape, mode, asChild, ...props }: TChipProps): JSX.Element;
|
|
135
|
+
|
|
136
|
+
declare const CHIP_MODES: readonly ["default", "glass"];
|
|
137
|
+
|
|
138
|
+
declare const CHIP_SHAPES: readonly ["default", "pill"];
|
|
121
139
|
|
|
122
140
|
export declare function Counter({ className, size, color, ...props }: TCounterProps): JSX.Element;
|
|
123
141
|
|
|
@@ -476,13 +494,16 @@ declare function PaginationItem({ className, children, size, isCurrent, ...props
|
|
|
476
494
|
|
|
477
495
|
declare function PaginationRoot({ totalPages, currentPage, size, maxVisiblePages, showArrows, className, onPageChange, renderItem: PaginationItem, renderIconChevron: IconChevron, renderEllipsis: Ellipsis, ...props }: TPaginationRootProps): JSX.Element;
|
|
478
496
|
|
|
479
|
-
declare const
|
|
497
|
+
declare const PROGRESS_BAR_COLORS: readonly ["accent", "green"];
|
|
498
|
+
|
|
499
|
+
declare const PROGRESS_BAR_SIZES: readonly ["sm", "md", "xs"];
|
|
480
500
|
|
|
481
501
|
/**
|
|
482
502
|
* ProgressBar is a compound component for displaying progress indicators.
|
|
483
503
|
* Provides flexible building blocks for linear and step-based progress visualization.
|
|
484
504
|
*
|
|
485
|
-
* @param size - Size variant of the progress bar (sm, md)
|
|
505
|
+
* @param size - Size variant of the progress bar (sm, md, xs)
|
|
506
|
+
* @param color - Fill color (accent, green); the track stays the same
|
|
486
507
|
* @param percent - Progress percentage (0-100)
|
|
487
508
|
* @param showFillOnZero - Whether to render the fill segment at 0%
|
|
488
509
|
* @param className - Additional CSS classes
|
|
@@ -498,9 +519,9 @@ export declare namespace ProgressBar {
|
|
|
498
519
|
var Steps: typeof ProgressBarSteps;
|
|
499
520
|
}
|
|
500
521
|
|
|
501
|
-
declare function ProgressBarLinear({ className, size, percent, showFillOnZero, ...props }: TProgressBarLinearProps): JSX.Element;
|
|
522
|
+
declare function ProgressBarLinear({ className, size, color, percent, showFillOnZero, ...props }: TProgressBarLinearProps): JSX.Element;
|
|
502
523
|
|
|
503
|
-
declare function ProgressBarSteps({ className, size, currentStep, totalSteps, ...props }: TProgressBarStepsProps): JSX.Element;
|
|
524
|
+
declare function ProgressBarSteps({ className, size, color, currentStep, totalSteps, ...props }: TProgressBarStepsProps): JSX.Element;
|
|
504
525
|
|
|
505
526
|
/**
|
|
506
527
|
* RadioButton renders a radio input with label and visual indicator.
|
|
@@ -735,6 +756,7 @@ declare type TBadgeProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
|
735
756
|
size?: TArrayElement<typeof BADGE_SIZES>;
|
|
736
757
|
color?: TArrayElement<typeof BADGE_COLORS>;
|
|
737
758
|
mode?: TArrayElement<typeof BADGE_MODES>;
|
|
759
|
+
shape?: TArrayElement<typeof BADGE_SHAPES>;
|
|
738
760
|
};
|
|
739
761
|
|
|
740
762
|
declare type TBadgeTabsItemProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
@@ -763,11 +785,13 @@ declare type TButtonCommonProps = {
|
|
|
763
785
|
color?: TArrayElement<typeof BUTTON_COLORS>;
|
|
764
786
|
size?: TArrayElement<typeof BUTTON_SIZES>;
|
|
765
787
|
mode?: TArrayElement<typeof BUTTON_MODES>;
|
|
788
|
+
shape?: TArrayElement<typeof BUTTON_SHAPES>;
|
|
789
|
+
elevated?: boolean;
|
|
766
790
|
className?: string;
|
|
767
791
|
};
|
|
768
792
|
|
|
769
793
|
declare type TButtonFunctionProps = TAsChildProps<React.ButtonHTMLAttributes<HTMLButtonElement>> & {
|
|
770
|
-
color?: TArrayElement<typeof
|
|
794
|
+
color?: TArrayElement<typeof BUTTON_FUNCTION_COLORS>;
|
|
771
795
|
size?: TArrayElement<typeof BUTTON_FUNCTION_SIZES>;
|
|
772
796
|
className?: string;
|
|
773
797
|
disabled?: boolean;
|
|
@@ -792,9 +816,13 @@ declare type TCheckboxProps = React.InputHTMLAttributes<HTMLInputElement> & {
|
|
|
792
816
|
ref?: React.RefObject<HTMLInputElement | null>;
|
|
793
817
|
};
|
|
794
818
|
|
|
795
|
-
declare type TChipProps = React.HTMLAttributes<HTMLDivElement
|
|
819
|
+
declare type TChipProps = TAsChildProps<React.HTMLAttributes<HTMLDivElement>> & {
|
|
796
820
|
isSelected?: boolean;
|
|
797
821
|
disabled?: boolean;
|
|
822
|
+
icon?: React.ReactNode;
|
|
823
|
+
shape?: TArrayElement<typeof CHIP_SHAPES>;
|
|
824
|
+
mode?: TArrayElement<typeof CHIP_MODES>;
|
|
825
|
+
className?: string;
|
|
798
826
|
};
|
|
799
827
|
|
|
800
828
|
declare type TCounterProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
@@ -957,12 +985,14 @@ declare type TPortalPlacement = {
|
|
|
957
985
|
|
|
958
986
|
declare type TProgressBarLinearProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> & {
|
|
959
987
|
size?: TArrayElement<typeof PROGRESS_BAR_SIZES>;
|
|
988
|
+
color?: TArrayElement<typeof PROGRESS_BAR_COLORS>;
|
|
960
989
|
percent: number;
|
|
961
990
|
showFillOnZero?: boolean;
|
|
962
991
|
};
|
|
963
992
|
|
|
964
993
|
declare type TProgressBarStepsProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> & {
|
|
965
994
|
size?: TArrayElement<typeof PROGRESS_BAR_SIZES>;
|
|
995
|
+
color?: TArrayElement<typeof PROGRESS_BAR_COLORS>;
|
|
966
996
|
currentStep: number;
|
|
967
997
|
totalSteps: number;
|
|
968
998
|
};
|
package/dist/index.js
CHANGED
|
@@ -47,35 +47,56 @@ function omit(object, ...keys) {
|
|
|
47
47
|
return Object.fromEntries(filteredEntries);
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
const badge = "
|
|
51
|
-
const primary$4 = "
|
|
52
|
-
const secondary$5 = "
|
|
53
|
-
const
|
|
54
|
-
const
|
|
55
|
-
const
|
|
56
|
-
const
|
|
57
|
-
const
|
|
58
|
-
const
|
|
59
|
-
const
|
|
60
|
-
const
|
|
61
|
-
const
|
|
50
|
+
const badge = "_badge_x6ia4_2";
|
|
51
|
+
const primary$4 = "_primary_x6ia4_9";
|
|
52
|
+
const secondary$5 = "_secondary_x6ia4_13";
|
|
53
|
+
const glass$1 = "_glass_x6ia4_18";
|
|
54
|
+
const accent$5 = "_accent_x6ia4_23";
|
|
55
|
+
const violet = "_violet_x6ia4_28";
|
|
56
|
+
const pink = "_pink_x6ia4_33";
|
|
57
|
+
const red$1 = "_red_x6ia4_38";
|
|
58
|
+
const orange = "_orange_x6ia4_43";
|
|
59
|
+
const green$1 = "_green_x6ia4_48";
|
|
60
|
+
const neutral$3 = "_neutral_x6ia4_54";
|
|
61
|
+
const lg$7 = "_lg_x6ia4_59";
|
|
62
|
+
const md$a = "_md_x6ia4_66";
|
|
63
|
+
const sm$5 = "_sm_x6ia4_73";
|
|
64
|
+
const pill$2 = "_pill_x6ia4_80";
|
|
62
65
|
const styles$E = {
|
|
63
66
|
badge: badge,
|
|
64
67
|
primary: primary$4,
|
|
65
68
|
secondary: secondary$5,
|
|
66
|
-
|
|
69
|
+
glass: glass$1,
|
|
70
|
+
accent: accent$5,
|
|
67
71
|
violet: violet,
|
|
68
72
|
pink: pink,
|
|
69
73
|
red: red$1,
|
|
70
74
|
orange: orange,
|
|
71
|
-
green: green,
|
|
75
|
+
green: green$1,
|
|
72
76
|
neutral: neutral$3,
|
|
73
77
|
lg: lg$7,
|
|
74
|
-
md: md$a
|
|
78
|
+
md: md$a,
|
|
79
|
+
sm: sm$5,
|
|
80
|
+
pill: pill$2
|
|
75
81
|
};
|
|
76
82
|
|
|
77
|
-
function Badge({
|
|
78
|
-
|
|
83
|
+
function Badge({
|
|
84
|
+
children,
|
|
85
|
+
className,
|
|
86
|
+
size = "lg",
|
|
87
|
+
color = "accent",
|
|
88
|
+
mode = "primary",
|
|
89
|
+
shape = "default",
|
|
90
|
+
...props
|
|
91
|
+
}) {
|
|
92
|
+
return /* @__PURE__ */ jsx(
|
|
93
|
+
"div",
|
|
94
|
+
{
|
|
95
|
+
className: classNames(styles$E.badge, styles$E[size], styles$E[color], styles$E[mode], styles$E[shape], className),
|
|
96
|
+
...props,
|
|
97
|
+
children
|
|
98
|
+
}
|
|
99
|
+
);
|
|
79
100
|
}
|
|
80
101
|
|
|
81
102
|
const badgeTabsItem = "_badgeTabsItem_10lit_2";
|
|
@@ -1286,37 +1307,48 @@ function Breadcrumbs({
|
|
|
1286
1307
|
}
|
|
1287
1308
|
Breadcrumbs.Item = BreadcrumbItem;
|
|
1288
1309
|
|
|
1289
|
-
const button = "
|
|
1290
|
-
const accent$
|
|
1291
|
-
const primary$2 = "
|
|
1292
|
-
const secondary$3 = "
|
|
1293
|
-
const tertiary = "
|
|
1294
|
-
const line = "
|
|
1295
|
-
const neutral$2 = "
|
|
1296
|
-
const
|
|
1297
|
-
const
|
|
1298
|
-
const
|
|
1310
|
+
const button = "_button_11nu9_2";
|
|
1311
|
+
const accent$4 = "_accent_11nu9_12";
|
|
1312
|
+
const primary$2 = "_primary_11nu9_13";
|
|
1313
|
+
const secondary$3 = "_secondary_11nu9_31";
|
|
1314
|
+
const tertiary = "_tertiary_11nu9_49";
|
|
1315
|
+
const line = "_line_11nu9_50";
|
|
1316
|
+
const neutral$2 = "_neutral_11nu9_79";
|
|
1317
|
+
const white$1 = "_white_11nu9_146";
|
|
1318
|
+
const lg$6 = "_lg_11nu9_213";
|
|
1319
|
+
const md$9 = "_md_11nu9_222";
|
|
1320
|
+
const sm$4 = "_sm_11nu9_240";
|
|
1321
|
+
const pill$1 = "_pill_11nu9_249";
|
|
1322
|
+
const circle = "_circle_11nu9_250";
|
|
1323
|
+
const square = "_square_11nu9_255";
|
|
1324
|
+
const elevated = "_elevated_11nu9_266";
|
|
1299
1325
|
const styles$z = {
|
|
1300
1326
|
button: button,
|
|
1301
|
-
accent: accent$
|
|
1327
|
+
accent: accent$4,
|
|
1302
1328
|
primary: primary$2,
|
|
1303
1329
|
secondary: secondary$3,
|
|
1304
1330
|
tertiary: tertiary,
|
|
1305
1331
|
line: line,
|
|
1306
1332
|
neutral: neutral$2,
|
|
1333
|
+
white: white$1,
|
|
1307
1334
|
lg: lg$6,
|
|
1308
1335
|
md: md$9,
|
|
1309
|
-
sm:
|
|
1336
|
+
"md-sm": "_md-sm_11nu9_231",
|
|
1337
|
+
sm: sm$4,
|
|
1338
|
+
pill: pill$1,
|
|
1339
|
+
circle: circle,
|
|
1340
|
+
square: square,
|
|
1341
|
+
elevated: elevated
|
|
1310
1342
|
};
|
|
1311
1343
|
|
|
1312
1344
|
const buttonFunction = "_buttonFunction_o8iku_2";
|
|
1313
|
-
const accent$
|
|
1345
|
+
const accent$3 = "_accent_o8iku_10";
|
|
1314
1346
|
const neutral$1 = "_neutral_o8iku_22";
|
|
1315
1347
|
const lg$5 = "_lg_o8iku_41";
|
|
1316
1348
|
const md$8 = "_md_o8iku_46";
|
|
1317
1349
|
const styles$y = {
|
|
1318
1350
|
buttonFunction: buttonFunction,
|
|
1319
|
-
accent: accent$
|
|
1351
|
+
accent: accent$3,
|
|
1320
1352
|
neutral: neutral$1,
|
|
1321
1353
|
lg: lg$5,
|
|
1322
1354
|
md: md$8
|
|
@@ -1349,6 +1381,8 @@ function Button({
|
|
|
1349
1381
|
color = "accent",
|
|
1350
1382
|
size = "lg",
|
|
1351
1383
|
mode = "primary",
|
|
1384
|
+
shape = "default",
|
|
1385
|
+
elevated,
|
|
1352
1386
|
asChild,
|
|
1353
1387
|
...props
|
|
1354
1388
|
}) {
|
|
@@ -1356,7 +1390,15 @@ function Button({
|
|
|
1356
1390
|
return /* @__PURE__ */ jsx(
|
|
1357
1391
|
Component,
|
|
1358
1392
|
{
|
|
1359
|
-
className: classNames(
|
|
1393
|
+
className: classNames(
|
|
1394
|
+
styles$z.button,
|
|
1395
|
+
styles$z[color],
|
|
1396
|
+
styles$z[size],
|
|
1397
|
+
styles$z[mode],
|
|
1398
|
+
styles$z[shape],
|
|
1399
|
+
elevated ? styles$z.elevated : void 0,
|
|
1400
|
+
className
|
|
1401
|
+
),
|
|
1360
1402
|
...!asChild && { type: "button" },
|
|
1361
1403
|
...props,
|
|
1362
1404
|
children
|
|
@@ -1366,11 +1408,11 @@ function Button({
|
|
|
1366
1408
|
Button.Function = ButtonFunction;
|
|
1367
1409
|
|
|
1368
1410
|
const checkboxWrapper = "_checkboxWrapper_k1shg_2";
|
|
1369
|
-
const icon$
|
|
1411
|
+
const icon$3 = "_icon_k1shg_23";
|
|
1370
1412
|
const checkbox = "_checkbox_k1shg_2";
|
|
1371
1413
|
const styles$x = {
|
|
1372
1414
|
checkboxWrapper: checkboxWrapper,
|
|
1373
|
-
icon: icon$
|
|
1415
|
+
icon: icon$3,
|
|
1374
1416
|
checkbox: checkbox
|
|
1375
1417
|
};
|
|
1376
1418
|
|
|
@@ -1392,21 +1434,48 @@ function Checkbox({ className, label, indeterminate, ...props }) {
|
|
|
1392
1434
|
);
|
|
1393
1435
|
}
|
|
1394
1436
|
|
|
1395
|
-
const chip = "
|
|
1437
|
+
const chip = "_chip_nge5j_2";
|
|
1438
|
+
const glass = "_glass_nge5j_36";
|
|
1439
|
+
const pill = "_pill_nge5j_59";
|
|
1440
|
+
const icon$2 = "_icon_nge5j_63";
|
|
1396
1441
|
const styles$w = {
|
|
1397
|
-
chip: chip
|
|
1442
|
+
chip: chip,
|
|
1443
|
+
glass: glass,
|
|
1444
|
+
pill: pill,
|
|
1445
|
+
icon: icon$2
|
|
1398
1446
|
};
|
|
1399
1447
|
|
|
1400
|
-
function
|
|
1448
|
+
function prependToChild(child, node) {
|
|
1449
|
+
if (!node || !isValidElement(child)) {
|
|
1450
|
+
return child;
|
|
1451
|
+
}
|
|
1452
|
+
return cloneElement(child, void 0, node, child.props.children);
|
|
1453
|
+
}
|
|
1454
|
+
function Chip({
|
|
1455
|
+
isSelected,
|
|
1456
|
+
children,
|
|
1457
|
+
className,
|
|
1458
|
+
disabled,
|
|
1459
|
+
icon,
|
|
1460
|
+
shape = "default",
|
|
1461
|
+
mode = "default",
|
|
1462
|
+
asChild,
|
|
1463
|
+
...props
|
|
1464
|
+
}) {
|
|
1465
|
+
const Component = asChild ? Slot : "div";
|
|
1466
|
+
const iconElement = icon ? /* @__PURE__ */ jsx("span", { className: styles$w.icon, "aria-hidden": "true", children: icon }) : void 0;
|
|
1401
1467
|
return /* @__PURE__ */ jsx(
|
|
1402
|
-
|
|
1468
|
+
Component,
|
|
1403
1469
|
{
|
|
1404
|
-
className: classNames(styles$w.chip, className),
|
|
1470
|
+
className: classNames(styles$w.chip, styles$w[shape], styles$w[mode], className),
|
|
1405
1471
|
"data-selected": isSelected,
|
|
1406
1472
|
"data-disabled": disabled,
|
|
1407
1473
|
"aria-disabled": disabled,
|
|
1408
1474
|
...props,
|
|
1409
|
-
children
|
|
1475
|
+
children: asChild ? prependToChild(children, iconElement) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
1476
|
+
iconElement,
|
|
1477
|
+
children
|
|
1478
|
+
] })
|
|
1410
1479
|
}
|
|
1411
1480
|
);
|
|
1412
1481
|
}
|
|
@@ -1415,7 +1484,7 @@ const root$1 = "_root_ww0fb_2";
|
|
|
1415
1484
|
const lg$4 = "_lg_ww0fb_16";
|
|
1416
1485
|
const md$7 = "_md_ww0fb_24";
|
|
1417
1486
|
const red = "_red_ww0fb_32";
|
|
1418
|
-
const accent$
|
|
1487
|
+
const accent$2 = "_accent_ww0fb_37";
|
|
1419
1488
|
const neutral = "_neutral_ww0fb_42";
|
|
1420
1489
|
const secondary$2 = "_secondary_ww0fb_47";
|
|
1421
1490
|
const white = "_white_ww0fb_52";
|
|
@@ -1424,7 +1493,7 @@ const styles$v = {
|
|
|
1424
1493
|
lg: lg$4,
|
|
1425
1494
|
md: md$7,
|
|
1426
1495
|
red: red,
|
|
1427
|
-
accent: accent$
|
|
1496
|
+
accent: accent$2,
|
|
1428
1497
|
neutral: neutral,
|
|
1429
1498
|
secondary: secondary$2,
|
|
1430
1499
|
white: white
|
|
@@ -2349,7 +2418,7 @@ DropdownMenu.Item = DropdownItem;
|
|
|
2349
2418
|
DropdownMenu.Portal = DropdownPortal;
|
|
2350
2419
|
|
|
2351
2420
|
const notificationInline = "_notificationInline_1kerp_2";
|
|
2352
|
-
const accent = "_accent_1kerp_10";
|
|
2421
|
+
const accent$1 = "_accent_1kerp_10";
|
|
2353
2422
|
const negative = "_negative_1kerp_16";
|
|
2354
2423
|
const positive = "_positive_1kerp_22";
|
|
2355
2424
|
const warning = "_warning_1kerp_28";
|
|
@@ -2365,7 +2434,7 @@ const description = "_description_1kerp_100";
|
|
|
2365
2434
|
const actions = "_actions_1kerp_108";
|
|
2366
2435
|
const styles$o = {
|
|
2367
2436
|
notificationInline: notificationInline,
|
|
2368
|
-
accent: accent,
|
|
2437
|
+
accent: accent$1,
|
|
2369
2438
|
negative: negative,
|
|
2370
2439
|
positive: positive,
|
|
2371
2440
|
warning: warning,
|
|
@@ -2541,26 +2610,33 @@ function Pagination(props) {
|
|
|
2541
2610
|
}
|
|
2542
2611
|
Pagination.Item = PaginationItem;
|
|
2543
2612
|
|
|
2544
|
-
const root = "
|
|
2545
|
-
const segment = "
|
|
2546
|
-
const flexGrow = "
|
|
2547
|
-
const fill$1 = "
|
|
2548
|
-
const trail = "
|
|
2549
|
-
const
|
|
2550
|
-
const
|
|
2613
|
+
const root = "_root_1lyc4_2";
|
|
2614
|
+
const segment = "_segment_1lyc4_10";
|
|
2615
|
+
const flexGrow = "_flexGrow_1lyc4_19";
|
|
2616
|
+
const fill$1 = "_fill_1lyc4_23";
|
|
2617
|
+
const trail = "_trail_1lyc4_28";
|
|
2618
|
+
const xs = "_xs_1lyc4_32";
|
|
2619
|
+
const sm$2 = "_sm_1lyc4_36";
|
|
2620
|
+
const md$5 = "_md_1lyc4_40";
|
|
2621
|
+
const accent = "_accent_1lyc4_44";
|
|
2622
|
+
const green = "_green_1lyc4_48";
|
|
2551
2623
|
const styles$l = {
|
|
2552
2624
|
root: root,
|
|
2553
2625
|
segment: segment,
|
|
2554
2626
|
flexGrow: flexGrow,
|
|
2555
2627
|
fill: fill$1,
|
|
2556
2628
|
trail: trail,
|
|
2629
|
+
xs: xs,
|
|
2557
2630
|
sm: sm$2,
|
|
2558
|
-
md: md$5
|
|
2631
|
+
md: md$5,
|
|
2632
|
+
accent: accent,
|
|
2633
|
+
green: green
|
|
2559
2634
|
};
|
|
2560
2635
|
|
|
2561
2636
|
function ProgressBarLinear({
|
|
2562
2637
|
className,
|
|
2563
2638
|
size = "md",
|
|
2639
|
+
color = "accent",
|
|
2564
2640
|
percent,
|
|
2565
2641
|
showFillOnZero,
|
|
2566
2642
|
...props
|
|
@@ -2569,7 +2645,7 @@ function ProgressBarLinear({
|
|
|
2569
2645
|
return /* @__PURE__ */ jsxs(
|
|
2570
2646
|
"div",
|
|
2571
2647
|
{
|
|
2572
|
-
className: classNames(styles$l.root, styles$l[size], className),
|
|
2648
|
+
className: classNames(styles$l.root, styles$l[size], styles$l[color], className),
|
|
2573
2649
|
role: "progressbar",
|
|
2574
2650
|
"aria-valuenow": clampedPercent,
|
|
2575
2651
|
"aria-valuemin": 0,
|
|
@@ -2597,6 +2673,7 @@ function ProgressBarLinear({
|
|
|
2597
2673
|
function ProgressBarSteps({
|
|
2598
2674
|
className,
|
|
2599
2675
|
size = "md",
|
|
2676
|
+
color = "accent",
|
|
2600
2677
|
currentStep,
|
|
2601
2678
|
totalSteps,
|
|
2602
2679
|
...props
|
|
@@ -2617,7 +2694,7 @@ function ProgressBarSteps({
|
|
|
2617
2694
|
return /* @__PURE__ */ jsx(
|
|
2618
2695
|
"div",
|
|
2619
2696
|
{
|
|
2620
|
-
className: classNames(styles$l.root, styles$l[size], className),
|
|
2697
|
+
className: classNames(styles$l.root, styles$l[size], styles$l[color], className),
|
|
2621
2698
|
role: "progressbar",
|
|
2622
2699
|
"aria-valuenow": clampedCurrent,
|
|
2623
2700
|
"aria-valuemin": 0,
|
package/dist/style.css
CHANGED
|
@@ -251,6 +251,12 @@ textarea {
|
|
|
251
251
|
--color-white: #ffffff;
|
|
252
252
|
--color-transparent: transparent;
|
|
253
253
|
|
|
254
|
+
--color-white-alpha-500: color-mix(in srgb, var(--color-white) 50%, var(--color-transparent));
|
|
255
|
+
--color-white-alpha-400: color-mix(in srgb, var(--color-white) 40%, var(--color-transparent));
|
|
256
|
+
--color-white-alpha-300: color-mix(in srgb, var(--color-white) 30%, var(--color-transparent));
|
|
257
|
+
--color-white-alpha-200: color-mix(in srgb, var(--color-white) 20%, var(--color-transparent));
|
|
258
|
+
--color-white-alpha-100: color-mix(in srgb, var(--color-white) 10%, var(--color-transparent));
|
|
259
|
+
|
|
254
260
|
--color-neutral: #111217;
|
|
255
261
|
--color-neutral-920: color-mix(in srgb, var(--color-neutral) 92.1%, var(--color-white) 7.9%);
|
|
256
262
|
--color-neutral-880: color-mix(in srgb, var(--color-neutral) 87.8%, var(--color-white) 12.2%);
|
|
@@ -292,6 +298,7 @@ textarea {
|
|
|
292
298
|
--color-orange-alpha-100: color-mix(in srgb, var(--color-orange) 10%, var(--color-transparent));
|
|
293
299
|
|
|
294
300
|
--color-green: #00d06f;
|
|
301
|
+
--color-green-900: color-mix(in srgb, var(--color-green) 55%, var(--color-neutral));
|
|
295
302
|
--color-green-alpha-500: color-mix(in srgb, var(--color-green) 50%, var(--color-transparent));
|
|
296
303
|
--color-green-alpha-100: color-mix(in srgb, var(--color-green) 10%, var(--color-transparent));
|
|
297
304
|
|
|
@@ -350,6 +357,12 @@ textarea {
|
|
|
350
357
|
--font-weight-medium: 500;
|
|
351
358
|
--font-weight-bold: 600;
|
|
352
359
|
|
|
360
|
+
--shadow-card:
|
|
361
|
+
0 1px 2px color-mix(in srgb, var(--color-neutral) 4%, var(--color-transparent)),
|
|
362
|
+
0 8px 24px color-mix(in srgb, var(--color-neutral) 6%, var(--color-transparent));
|
|
363
|
+
--shadow-floating-button: 0 4px 14px color-mix(in srgb, var(--color-neutral) 16%, var(--color-transparent));
|
|
364
|
+
--shadow-capsule: 0 6px 20px color-mix(in srgb, var(--color-neutral) 10%, var(--color-transparent));
|
|
365
|
+
|
|
353
366
|
--transition-duration-default: 0.15s;
|
|
354
367
|
|
|
355
368
|
--aspect-ratio-square: 1 / 1;
|
|
@@ -358,70 +371,87 @@ textarea {
|
|
|
358
371
|
}
|
|
359
372
|
}
|
|
360
373
|
@layer ui_baza_components {
|
|
361
|
-
.
|
|
374
|
+
._badge_x6ia4_2 {
|
|
362
375
|
display: flex;
|
|
363
376
|
align-items: center;
|
|
364
377
|
justify-content: center;
|
|
365
378
|
color: var(--color-white);
|
|
366
379
|
font-weight: var(--font-weight-bold);
|
|
367
380
|
|
|
368
|
-
&.
|
|
381
|
+
&._primary_x6ia4_9 {
|
|
369
382
|
background-color: var(--badge-color);
|
|
370
383
|
}
|
|
371
384
|
|
|
372
|
-
&.
|
|
385
|
+
&._secondary_x6ia4_13 {
|
|
373
386
|
background-color: var(--badge-color-alpha);
|
|
374
|
-
color: var(--badge-color);
|
|
387
|
+
color: var(--badge-color-on-alpha, var(--badge-color));
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
&._glass_x6ia4_18 {
|
|
391
|
+
background-color: var(--color-white-alpha-200);
|
|
392
|
+
color: var(--color-white);
|
|
375
393
|
}
|
|
376
394
|
|
|
377
|
-
&.
|
|
395
|
+
&._accent_x6ia4_23 {
|
|
378
396
|
--badge-color: var(--color-accent);
|
|
379
397
|
--badge-color-alpha: var(--color-accent-alpha-100);
|
|
380
398
|
}
|
|
381
399
|
|
|
382
|
-
&.
|
|
400
|
+
&._violet_x6ia4_28 {
|
|
383
401
|
--badge-color: var(--color-violet);
|
|
384
402
|
--badge-color-alpha: var(--color-violet-alpha-100);
|
|
385
403
|
}
|
|
386
404
|
|
|
387
|
-
&.
|
|
405
|
+
&._pink_x6ia4_33 {
|
|
388
406
|
--badge-color: var(--color-pink);
|
|
389
407
|
--badge-color-alpha: var(--color-pink-alpha-100);
|
|
390
408
|
}
|
|
391
409
|
|
|
392
|
-
&.
|
|
410
|
+
&._red_x6ia4_38 {
|
|
393
411
|
--badge-color: var(--color-red);
|
|
394
412
|
--badge-color-alpha: var(--color-red-alpha-100);
|
|
395
413
|
}
|
|
396
414
|
|
|
397
|
-
&.
|
|
415
|
+
&._orange_x6ia4_43 {
|
|
398
416
|
--badge-color: var(--color-orange);
|
|
399
417
|
--badge-color-alpha: var(--color-orange-alpha-100);
|
|
400
418
|
}
|
|
401
419
|
|
|
402
|
-
&.
|
|
420
|
+
&._green_x6ia4_48 {
|
|
403
421
|
--badge-color: var(--color-green);
|
|
404
422
|
--badge-color-alpha: var(--color-green-alpha-100);
|
|
423
|
+
--badge-color-on-alpha: var(--color-green-900);
|
|
405
424
|
}
|
|
406
425
|
|
|
407
|
-
&.
|
|
426
|
+
&._neutral_x6ia4_54 {
|
|
408
427
|
--badge-color: var(--color-neutral);
|
|
409
428
|
--badge-color-alpha: var(--color-neutral-alpha-60);
|
|
410
429
|
}
|
|
411
430
|
|
|
412
|
-
&.
|
|
431
|
+
&._lg_x6ia4_59 {
|
|
413
432
|
padding: var(--space-sm);
|
|
414
433
|
border-radius: var(--radius-md);
|
|
415
434
|
font-size: var(--size-sm);
|
|
416
435
|
line-height: var(--line-height-md);
|
|
417
436
|
}
|
|
418
437
|
|
|
419
|
-
&.
|
|
438
|
+
&._md_x6ia4_66 {
|
|
420
439
|
padding: var(--space-xs);
|
|
421
440
|
border-radius: var(--radius-sm);
|
|
422
441
|
font-size: var(--size-xs);
|
|
423
442
|
line-height: var(--line-height-sm);
|
|
424
443
|
}
|
|
444
|
+
|
|
445
|
+
&._sm_x6ia4_73 {
|
|
446
|
+
padding: 0 var(--space-lg);
|
|
447
|
+
border-radius: var(--radius-sm);
|
|
448
|
+
font-size: var(--size-xs);
|
|
449
|
+
line-height: var(--line-height-lg);
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
&._pill_x6ia4_80 {
|
|
453
|
+
border-radius: var(--radius-full);
|
|
454
|
+
}
|
|
425
455
|
}
|
|
426
456
|
}
|
|
427
457
|
@layer ui_baza_components {
|
|
@@ -539,17 +569,18 @@ textarea {
|
|
|
539
569
|
}
|
|
540
570
|
}
|
|
541
571
|
@layer ui_baza_components {
|
|
542
|
-
.
|
|
572
|
+
._button_11nu9_2 {
|
|
543
573
|
--ring-width: 1px;
|
|
544
574
|
|
|
545
575
|
display: inline-flex;
|
|
546
576
|
align-items: center;
|
|
547
577
|
justify-content: center;
|
|
578
|
+
min-height: var(--button-height);
|
|
548
579
|
cursor: pointer;
|
|
549
580
|
transition: all var(--transition-duration-default) ease-in-out;
|
|
550
581
|
|
|
551
|
-
&.
|
|
552
|
-
&.
|
|
582
|
+
&._accent_11nu9_12 {
|
|
583
|
+
&._primary_11nu9_13 {
|
|
553
584
|
background-color: var(--color-accent);
|
|
554
585
|
color: var(--color-white);
|
|
555
586
|
|
|
@@ -567,7 +598,7 @@ textarea {
|
|
|
567
598
|
}
|
|
568
599
|
}
|
|
569
600
|
|
|
570
|
-
&.
|
|
601
|
+
&._secondary_11nu9_31 {
|
|
571
602
|
background-color: var(--color-accent-alpha-100);
|
|
572
603
|
color: var(--color-accent);
|
|
573
604
|
|
|
@@ -585,8 +616,8 @@ textarea {
|
|
|
585
616
|
}
|
|
586
617
|
}
|
|
587
618
|
|
|
588
|
-
&.
|
|
589
|
-
&.
|
|
619
|
+
&._tertiary_11nu9_49,
|
|
620
|
+
&._line_11nu9_50 {
|
|
590
621
|
background-color: var(--color-transparent);
|
|
591
622
|
color: var(--color-accent);
|
|
592
623
|
|
|
@@ -604,7 +635,7 @@ textarea {
|
|
|
604
635
|
}
|
|
605
636
|
}
|
|
606
637
|
|
|
607
|
-
&.
|
|
638
|
+
&._line_11nu9_50 {
|
|
608
639
|
--ring-color: var(--color-accent);
|
|
609
640
|
|
|
610
641
|
box-shadow: inset 0 0 0 var(--ring-width) var(--ring-color);
|
|
@@ -615,8 +646,8 @@ textarea {
|
|
|
615
646
|
}
|
|
616
647
|
}
|
|
617
648
|
|
|
618
|
-
&.
|
|
619
|
-
&.
|
|
649
|
+
&._neutral_11nu9_79 {
|
|
650
|
+
&._primary_11nu9_13 {
|
|
620
651
|
background-color: var(--color-neutral);
|
|
621
652
|
color: var(--color-white);
|
|
622
653
|
|
|
@@ -634,7 +665,7 @@ textarea {
|
|
|
634
665
|
}
|
|
635
666
|
}
|
|
636
667
|
|
|
637
|
-
&.
|
|
668
|
+
&._secondary_11nu9_31 {
|
|
638
669
|
background-color: var(--color-neutral-alpha-60);
|
|
639
670
|
color: var(--color-neutral);
|
|
640
671
|
|
|
@@ -652,8 +683,8 @@ textarea {
|
|
|
652
683
|
}
|
|
653
684
|
}
|
|
654
685
|
|
|
655
|
-
&.
|
|
656
|
-
&.
|
|
686
|
+
&._tertiary_11nu9_49,
|
|
687
|
+
&._line_11nu9_50 {
|
|
657
688
|
background-color: var(--color-transparent);
|
|
658
689
|
color: var(--color-neutral);
|
|
659
690
|
|
|
@@ -671,7 +702,7 @@ textarea {
|
|
|
671
702
|
}
|
|
672
703
|
}
|
|
673
704
|
|
|
674
|
-
&.
|
|
705
|
+
&._line_11nu9_50 {
|
|
675
706
|
--ring-color: var(--color-neutral-alpha-120);
|
|
676
707
|
|
|
677
708
|
box-shadow: inset 0 0 0 var(--ring-width) var(--ring-color);
|
|
@@ -682,29 +713,135 @@ textarea {
|
|
|
682
713
|
}
|
|
683
714
|
}
|
|
684
715
|
|
|
685
|
-
&.
|
|
686
|
-
|
|
716
|
+
&._white_11nu9_146 {
|
|
717
|
+
&._primary_11nu9_13 {
|
|
718
|
+
background-color: var(--color-white);
|
|
719
|
+
color: var(--color-neutral);
|
|
720
|
+
|
|
721
|
+
&:hover {
|
|
722
|
+
background-color: var(--color-neutral-40);
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
&:active {
|
|
726
|
+
background-color: var(--color-neutral-80);
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
&:disabled {
|
|
730
|
+
background-color: var(--button-disabled-background, var(--color-white-alpha-100));
|
|
731
|
+
color: var(--color-white-alpha-500);
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
&._secondary_11nu9_31 {
|
|
736
|
+
background-color: var(--color-white-alpha-200);
|
|
737
|
+
color: var(--color-white);
|
|
738
|
+
|
|
739
|
+
&:hover {
|
|
740
|
+
background-color: var(--color-white-alpha-300);
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
&:active {
|
|
744
|
+
background-color: var(--color-white-alpha-400);
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
&:disabled {
|
|
748
|
+
background-color: var(--button-disabled-background, var(--color-white-alpha-100));
|
|
749
|
+
color: var(--color-white-alpha-500);
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
&._tertiary_11nu9_49,
|
|
754
|
+
&._line_11nu9_50 {
|
|
755
|
+
background-color: var(--color-transparent);
|
|
756
|
+
color: var(--color-white);
|
|
757
|
+
|
|
758
|
+
&:hover {
|
|
759
|
+
background-color: var(--color-white-alpha-100);
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
&:active {
|
|
763
|
+
background-color: var(--color-white-alpha-200);
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
&:disabled {
|
|
767
|
+
background-color: var(--button-disabled-background, var(--color-transparent));
|
|
768
|
+
color: var(--color-white-alpha-500);
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
&._line_11nu9_50 {
|
|
773
|
+
--ring-color: var(--color-white-alpha-300);
|
|
774
|
+
|
|
775
|
+
box-shadow: inset 0 0 0 var(--ring-width) var(--ring-color);
|
|
776
|
+
|
|
777
|
+
&:disabled {
|
|
778
|
+
--ring-color: var(--color-white-alpha-200);
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
&._lg_11nu9_213 {
|
|
784
|
+
--button-height: calc(var(--line-height-lg) + var(--space-2xl) * 2);
|
|
785
|
+
|
|
687
786
|
padding: var(--space-2xl);
|
|
688
787
|
border-radius: var(--radius-xl);
|
|
689
788
|
font-size: var(--size-md);
|
|
690
789
|
line-height: var(--line-height-lg);
|
|
691
790
|
}
|
|
692
791
|
|
|
693
|
-
&.
|
|
694
|
-
|
|
792
|
+
&._md_11nu9_222 {
|
|
793
|
+
--button-height: calc(var(--line-height-lg) + var(--space-lg) * 2);
|
|
794
|
+
|
|
695
795
|
padding: var(--space-lg);
|
|
696
796
|
border-radius: var(--radius-lg);
|
|
697
797
|
font-size: var(--size-md);
|
|
698
798
|
line-height: var(--line-height-lg);
|
|
699
799
|
}
|
|
700
800
|
|
|
701
|
-
&.
|
|
702
|
-
|
|
801
|
+
&._md-sm_11nu9_231 {
|
|
802
|
+
--button-height: calc(var(--line-height-lg) + var(--space-md) * 2);
|
|
803
|
+
|
|
804
|
+
padding: var(--space-md);
|
|
805
|
+
border-radius: var(--radius-lg);
|
|
806
|
+
font-size: var(--size-md);
|
|
807
|
+
line-height: var(--line-height-lg);
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
&._sm_11nu9_240 {
|
|
811
|
+
--button-height: calc(var(--line-height-md) + var(--space-sm) * 2);
|
|
812
|
+
|
|
703
813
|
padding: var(--space-sm);
|
|
704
814
|
border-radius: var(--radius-md);
|
|
705
815
|
font-size: var(--size-sm);
|
|
706
816
|
line-height: var(--line-height-md);
|
|
707
817
|
}
|
|
818
|
+
|
|
819
|
+
&._pill_11nu9_249,
|
|
820
|
+
&._circle_11nu9_250 {
|
|
821
|
+
border-radius: var(--radius-full);
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
&._circle_11nu9_250,
|
|
825
|
+
&._square_11nu9_255 {
|
|
826
|
+
flex-shrink: 0;
|
|
827
|
+
aspect-ratio: var(--aspect-ratio-square);
|
|
828
|
+
width: var(--button-height);
|
|
829
|
+
padding-inline: 0;
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
&._square_11nu9_255 {
|
|
833
|
+
border-radius: var(--radius-xl);
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
&._elevated_11nu9_266 {
|
|
837
|
+
box-shadow: var(--shadow-floating-button);
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
&._line_11nu9_50._elevated_11nu9_266 {
|
|
841
|
+
box-shadow:
|
|
842
|
+
inset 0 0 0 var(--ring-width) var(--ring-color),
|
|
843
|
+
var(--shadow-floating-button);
|
|
844
|
+
}
|
|
708
845
|
}
|
|
709
846
|
}
|
|
710
847
|
@layer ui_baza_components {
|
|
@@ -823,7 +960,9 @@ textarea {
|
|
|
823
960
|
}
|
|
824
961
|
}
|
|
825
962
|
@layer ui_baza_components {
|
|
826
|
-
.
|
|
963
|
+
._chip_nge5j_2 {
|
|
964
|
+
--chip-icon-size: 16px;
|
|
965
|
+
|
|
827
966
|
display: flex;
|
|
828
967
|
align-items: center;
|
|
829
968
|
justify-content: center;
|
|
@@ -854,6 +993,53 @@ textarea {
|
|
|
854
993
|
color: var(--color-neutral-340);
|
|
855
994
|
pointer-events: none;
|
|
856
995
|
}
|
|
996
|
+
|
|
997
|
+
&._glass_nge5j_36 {
|
|
998
|
+
background-color: var(--color-white-alpha-200);
|
|
999
|
+
color: var(--color-white);
|
|
1000
|
+
|
|
1001
|
+
&:hover {
|
|
1002
|
+
background-color: var(--color-white-alpha-300);
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
&[data-selected='true'] {
|
|
1006
|
+
background-color: var(--color-white);
|
|
1007
|
+
color: var(--color-neutral);
|
|
1008
|
+
|
|
1009
|
+
&:hover {
|
|
1010
|
+
background-color: var(--color-neutral-40);
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
&[data-disabled='true'] {
|
|
1015
|
+
background-color: var(--color-white-alpha-100);
|
|
1016
|
+
color: var(--color-white-alpha-500);
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
&._pill_nge5j_59 {
|
|
1021
|
+
border-radius: var(--radius-full);
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
._icon_nge5j_63 {
|
|
1025
|
+
display: flex;
|
|
1026
|
+
flex-shrink: 0;
|
|
1027
|
+
width: var(--chip-icon-size);
|
|
1028
|
+
height: var(--chip-icon-size);
|
|
1029
|
+
margin-inline-end: var(--space-sm);
|
|
1030
|
+
color: var(--color-accent);
|
|
1031
|
+
|
|
1032
|
+
& > svg {
|
|
1033
|
+
width: 100%;
|
|
1034
|
+
height: 100%;
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
&[data-selected='true'] ._icon_nge5j_63,
|
|
1039
|
+
&[data-disabled='true'] ._icon_nge5j_63,
|
|
1040
|
+
&._glass_nge5j_36 ._icon_nge5j_63 {
|
|
1041
|
+
color: inherit;
|
|
1042
|
+
}
|
|
857
1043
|
}
|
|
858
1044
|
}
|
|
859
1045
|
@layer ui_baza_components {
|
|
@@ -1318,7 +1504,7 @@ textarea {
|
|
|
1318
1504
|
}
|
|
1319
1505
|
}
|
|
1320
1506
|
@layer ui_baza_components {
|
|
1321
|
-
.
|
|
1507
|
+
._root_1lyc4_2 {
|
|
1322
1508
|
display: flex;
|
|
1323
1509
|
align-items: center;
|
|
1324
1510
|
width: 100%;
|
|
@@ -1326,7 +1512,7 @@ textarea {
|
|
|
1326
1512
|
gap: var(--space-xs);
|
|
1327
1513
|
}
|
|
1328
1514
|
|
|
1329
|
-
.
|
|
1515
|
+
._segment_1lyc4_10 {
|
|
1330
1516
|
min-width: var(--progress-bar-height);
|
|
1331
1517
|
height: 100%;
|
|
1332
1518
|
border-radius: var(--radius-5xl);
|
|
@@ -1335,26 +1521,38 @@ textarea {
|
|
|
1335
1521
|
width var(--transition-duration-default) ease-in-out;
|
|
1336
1522
|
}
|
|
1337
1523
|
|
|
1338
|
-
.
|
|
1524
|
+
._flexGrow_1lyc4_19 {
|
|
1339
1525
|
flex: 1 1 0;
|
|
1340
1526
|
}
|
|
1341
1527
|
|
|
1342
|
-
.
|
|
1528
|
+
._fill_1lyc4_23 {
|
|
1343
1529
|
width: var(--clamped-percent);
|
|
1344
|
-
background-color: var(--color
|
|
1530
|
+
background-color: var(--progress-bar-fill-color);
|
|
1345
1531
|
}
|
|
1346
1532
|
|
|
1347
|
-
.
|
|
1533
|
+
._trail_1lyc4_28 {
|
|
1348
1534
|
background-color: var(--color-neutral-alpha-60);
|
|
1349
1535
|
}
|
|
1350
1536
|
|
|
1351
|
-
.
|
|
1537
|
+
._xs_1lyc4_32 {
|
|
1538
|
+
--progress-bar-height: 5px;
|
|
1539
|
+
}
|
|
1540
|
+
|
|
1541
|
+
._sm_1lyc4_36 {
|
|
1352
1542
|
--progress-bar-height: 8px;
|
|
1353
1543
|
}
|
|
1354
1544
|
|
|
1355
|
-
.
|
|
1545
|
+
._md_1lyc4_40 {
|
|
1356
1546
|
--progress-bar-height: 12px;
|
|
1357
1547
|
}
|
|
1548
|
+
|
|
1549
|
+
._accent_1lyc4_44 {
|
|
1550
|
+
--progress-bar-fill-color: var(--color-accent);
|
|
1551
|
+
}
|
|
1552
|
+
|
|
1553
|
+
._green_1lyc4_48 {
|
|
1554
|
+
--progress-bar-fill-color: var(--color-green-900);
|
|
1555
|
+
}
|
|
1358
1556
|
}
|
|
1359
1557
|
@layer ui_baza_components {
|
|
1360
1558
|
._radioWrapper_13xie_2 {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grandbazar/ui-baza",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "A lightweight and modular UI kit for building modern, accessible web interfaces. Designed for flexibility, scalability, and developer happiness.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|