@maxsteinwender/sort-ui 1.0.3 → 1.0.4
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.d.mts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +23 -5
- package/dist/index.mjs +23 -5
- package/dist/styles.css +9 -9
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -197,6 +197,8 @@ interface BadgeProps extends React$1.HTMLAttributes<HTMLSpanElement> {
|
|
|
197
197
|
variant?: BadgeVariant;
|
|
198
198
|
/** Image src — required for variant="image" */
|
|
199
199
|
src?: string;
|
|
200
|
+
/** Leading icon node — used when variant="icon". Pass any Remix icon, e.g. <i className="ri-bank-fill" /> */
|
|
201
|
+
icon?: React$1.ReactNode;
|
|
200
202
|
/** Show 1px border using border-default token. Default: false */
|
|
201
203
|
border?: boolean;
|
|
202
204
|
/** When provided, renders a close button on the right. */
|
|
@@ -207,7 +209,7 @@ interface BadgeProps extends React$1.HTMLAttributes<HTMLSpanElement> {
|
|
|
207
209
|
*/
|
|
208
210
|
closeAsSpan?: boolean;
|
|
209
211
|
}
|
|
210
|
-
declare function Badge({ color, size, shape, variant, src, border, onClose, closeAsSpan, className, children, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
212
|
+
declare function Badge({ color, size, shape, variant, src, icon, border, onClose, closeAsSpan, className, children, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
211
213
|
|
|
212
214
|
declare const Breadcrumb: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
213
215
|
separator?: React$1.ReactNode;
|
|
@@ -1404,6 +1406,8 @@ interface RadioButtonCardProps extends VariantProps<typeof radioButtonCardVarian
|
|
|
1404
1406
|
supporterDescription?: string;
|
|
1405
1407
|
radioPosition?: "off" | "right" | "left";
|
|
1406
1408
|
layout?: "horizontal" | "vertical";
|
|
1409
|
+
/** Leading icon node rendered above the title. Pass any Remix icon, e.g. <i className="ri-bank-fill" /> */
|
|
1410
|
+
icon?: React$1.ReactNode;
|
|
1407
1411
|
value: string;
|
|
1408
1412
|
disabled?: boolean;
|
|
1409
1413
|
className?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -197,6 +197,8 @@ interface BadgeProps extends React$1.HTMLAttributes<HTMLSpanElement> {
|
|
|
197
197
|
variant?: BadgeVariant;
|
|
198
198
|
/** Image src — required for variant="image" */
|
|
199
199
|
src?: string;
|
|
200
|
+
/** Leading icon node — used when variant="icon". Pass any Remix icon, e.g. <i className="ri-bank-fill" /> */
|
|
201
|
+
icon?: React$1.ReactNode;
|
|
200
202
|
/** Show 1px border using border-default token. Default: false */
|
|
201
203
|
border?: boolean;
|
|
202
204
|
/** When provided, renders a close button on the right. */
|
|
@@ -207,7 +209,7 @@ interface BadgeProps extends React$1.HTMLAttributes<HTMLSpanElement> {
|
|
|
207
209
|
*/
|
|
208
210
|
closeAsSpan?: boolean;
|
|
209
211
|
}
|
|
210
|
-
declare function Badge({ color, size, shape, variant, src, border, onClose, closeAsSpan, className, children, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
212
|
+
declare function Badge({ color, size, shape, variant, src, icon, border, onClose, closeAsSpan, className, children, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
211
213
|
|
|
212
214
|
declare const Breadcrumb: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
213
215
|
separator?: React$1.ReactNode;
|
|
@@ -1404,6 +1406,8 @@ interface RadioButtonCardProps extends VariantProps<typeof radioButtonCardVarian
|
|
|
1404
1406
|
supporterDescription?: string;
|
|
1405
1407
|
radioPosition?: "off" | "right" | "left";
|
|
1406
1408
|
layout?: "horizontal" | "vertical";
|
|
1409
|
+
/** Leading icon node rendered above the title. Pass any Remix icon, e.g. <i className="ri-bank-fill" /> */
|
|
1410
|
+
icon?: React$1.ReactNode;
|
|
1407
1411
|
value: string;
|
|
1408
1412
|
disabled?: boolean;
|
|
1409
1413
|
className?: string;
|
package/dist/index.js
CHANGED
|
@@ -1334,6 +1334,7 @@ function Badge(_a) {
|
|
|
1334
1334
|
shape = "rounded",
|
|
1335
1335
|
variant = "label",
|
|
1336
1336
|
src,
|
|
1337
|
+
icon,
|
|
1337
1338
|
border = false,
|
|
1338
1339
|
onClose,
|
|
1339
1340
|
closeAsSpan = false,
|
|
@@ -1345,6 +1346,7 @@ function Badge(_a) {
|
|
|
1345
1346
|
"shape",
|
|
1346
1347
|
"variant",
|
|
1347
1348
|
"src",
|
|
1349
|
+
"icon",
|
|
1348
1350
|
"border",
|
|
1349
1351
|
"onClose",
|
|
1350
1352
|
"closeAsSpan",
|
|
@@ -1374,13 +1376,17 @@ function Badge(_a) {
|
|
|
1374
1376
|
variant === "label" && // Inner frame: px-1 (4px) each side — same for lg and sm
|
|
1375
1377
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "px-1", children }),
|
|
1376
1378
|
variant === "icon" && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1377
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1378
|
-
"
|
|
1379
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1380
|
+
"span",
|
|
1379
1381
|
{
|
|
1380
|
-
className: cn(
|
|
1381
|
-
|
|
1382
|
+
className: cn(
|
|
1383
|
+
"flex size-4 shrink-0 items-center justify-center leading-none",
|
|
1384
|
+
iconFontSize[size]
|
|
1385
|
+
),
|
|
1386
|
+
"aria-hidden": "true",
|
|
1387
|
+
children: icon != null ? icon : /* @__PURE__ */ jsxRuntime.jsx("i", { className: "ri-user-3-fill" })
|
|
1382
1388
|
}
|
|
1383
|
-
)
|
|
1389
|
+
),
|
|
1384
1390
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "pl-0.5 pr-1", children })
|
|
1385
1391
|
] }),
|
|
1386
1392
|
variant === "image" && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -8638,6 +8644,7 @@ var RadioButtonCard = React77__namespace.forwardRef(
|
|
|
8638
8644
|
variant = "default",
|
|
8639
8645
|
radioPosition = "off",
|
|
8640
8646
|
layout = "horizontal",
|
|
8647
|
+
icon,
|
|
8641
8648
|
value,
|
|
8642
8649
|
disabled = false,
|
|
8643
8650
|
className
|
|
@@ -8690,6 +8697,17 @@ var RadioButtonCard = React77__namespace.forwardRef(
|
|
|
8690
8697
|
"flex flex-col gap-1 text-left",
|
|
8691
8698
|
isHorizontal ? "flex-1 min-w-0" : "w-full"
|
|
8692
8699
|
), children: [
|
|
8700
|
+
icon && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8701
|
+
"span",
|
|
8702
|
+
{
|
|
8703
|
+
className: cn(
|
|
8704
|
+
"flex size-4 shrink-0 items-center leading-none text-base",
|
|
8705
|
+
disabled ? "text-sui-text-hint" : "text-icon-default-subtle"
|
|
8706
|
+
),
|
|
8707
|
+
"aria-hidden": "true",
|
|
8708
|
+
children: icon
|
|
8709
|
+
}
|
|
8710
|
+
),
|
|
8693
8711
|
/* @__PURE__ */ jsxRuntime.jsx("span", { id: titleId, className: titleClass, children: title }),
|
|
8694
8712
|
description && /* @__PURE__ */ jsxRuntime.jsx("span", { id: descriptionId, className: descriptionClass, children: description })
|
|
8695
8713
|
] }),
|
package/dist/index.mjs
CHANGED
|
@@ -1291,6 +1291,7 @@ function Badge(_a) {
|
|
|
1291
1291
|
shape = "rounded",
|
|
1292
1292
|
variant = "label",
|
|
1293
1293
|
src,
|
|
1294
|
+
icon,
|
|
1294
1295
|
border = false,
|
|
1295
1296
|
onClose,
|
|
1296
1297
|
closeAsSpan = false,
|
|
@@ -1302,6 +1303,7 @@ function Badge(_a) {
|
|
|
1302
1303
|
"shape",
|
|
1303
1304
|
"variant",
|
|
1304
1305
|
"src",
|
|
1306
|
+
"icon",
|
|
1305
1307
|
"border",
|
|
1306
1308
|
"onClose",
|
|
1307
1309
|
"closeAsSpan",
|
|
@@ -1331,13 +1333,17 @@ function Badge(_a) {
|
|
|
1331
1333
|
variant === "label" && // Inner frame: px-1 (4px) each side — same for lg and sm
|
|
1332
1334
|
/* @__PURE__ */ jsx("span", { className: "px-1", children }),
|
|
1333
1335
|
variant === "icon" && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1334
|
-
/* @__PURE__ */ jsx(
|
|
1335
|
-
"
|
|
1336
|
+
/* @__PURE__ */ jsx(
|
|
1337
|
+
"span",
|
|
1336
1338
|
{
|
|
1337
|
-
className: cn(
|
|
1338
|
-
|
|
1339
|
+
className: cn(
|
|
1340
|
+
"flex size-4 shrink-0 items-center justify-center leading-none",
|
|
1341
|
+
iconFontSize[size]
|
|
1342
|
+
),
|
|
1343
|
+
"aria-hidden": "true",
|
|
1344
|
+
children: icon != null ? icon : /* @__PURE__ */ jsx("i", { className: "ri-user-3-fill" })
|
|
1339
1345
|
}
|
|
1340
|
-
)
|
|
1346
|
+
),
|
|
1341
1347
|
/* @__PURE__ */ jsx("span", { className: "pl-0.5 pr-1", children })
|
|
1342
1348
|
] }),
|
|
1343
1349
|
variant === "image" && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -8595,6 +8601,7 @@ var RadioButtonCard = React77.forwardRef(
|
|
|
8595
8601
|
variant = "default",
|
|
8596
8602
|
radioPosition = "off",
|
|
8597
8603
|
layout = "horizontal",
|
|
8604
|
+
icon,
|
|
8598
8605
|
value,
|
|
8599
8606
|
disabled = false,
|
|
8600
8607
|
className
|
|
@@ -8647,6 +8654,17 @@ var RadioButtonCard = React77.forwardRef(
|
|
|
8647
8654
|
"flex flex-col gap-1 text-left",
|
|
8648
8655
|
isHorizontal ? "flex-1 min-w-0" : "w-full"
|
|
8649
8656
|
), children: [
|
|
8657
|
+
icon && /* @__PURE__ */ jsx(
|
|
8658
|
+
"span",
|
|
8659
|
+
{
|
|
8660
|
+
className: cn(
|
|
8661
|
+
"flex size-4 shrink-0 items-center leading-none text-base",
|
|
8662
|
+
disabled ? "text-sui-text-hint" : "text-icon-default-subtle"
|
|
8663
|
+
),
|
|
8664
|
+
"aria-hidden": "true",
|
|
8665
|
+
children: icon
|
|
8666
|
+
}
|
|
8667
|
+
),
|
|
8650
8668
|
/* @__PURE__ */ jsx("span", { id: titleId, className: titleClass, children: title }),
|
|
8651
8669
|
description && /* @__PURE__ */ jsx("span", { id: descriptionId, className: descriptionClass, children: description })
|
|
8652
8670
|
] }),
|
package/dist/styles.css
CHANGED
|
@@ -13906,9 +13906,9 @@ video {
|
|
|
13906
13906
|
--bg-muted: #f4f4f5;
|
|
13907
13907
|
--bg-card: #ffffff;
|
|
13908
13908
|
--bg-inverted: #18181b;
|
|
13909
|
-
--bg-state-primary: #
|
|
13910
|
-
--bg-state-primary-hover: #
|
|
13911
|
-
--bg-state-primary-press: #
|
|
13909
|
+
--bg-state-primary: #437dfc;
|
|
13910
|
+
--bg-state-primary-hover: #65a0fd;
|
|
13911
|
+
--bg-state-primary-press: #437dfc;
|
|
13912
13912
|
--bg-state-disabled: rgba(39, 39, 42, 0.08);
|
|
13913
13913
|
--bg-state-secondary: #ffffff;
|
|
13914
13914
|
--bg-state-secondary-hover: #fafafa;
|
|
@@ -14486,9 +14486,9 @@ video {
|
|
|
14486
14486
|
--bg-muted: #f5f5f4;
|
|
14487
14487
|
--bg-card: #ffffff;
|
|
14488
14488
|
--bg-inverted: #24211e;
|
|
14489
|
-
--bg-state-primary: #
|
|
14490
|
-
--bg-state-primary-hover: #
|
|
14491
|
-
--bg-state-primary-press: #
|
|
14489
|
+
--bg-state-primary: #f27313;
|
|
14490
|
+
--bg-state-primary-hover: #f38f36;
|
|
14491
|
+
--bg-state-primary-press: #f27313;
|
|
14492
14492
|
--bg-state-disabled: rgba(39, 39, 42, 0.08);
|
|
14493
14493
|
--bg-state-secondary: #ffffff;
|
|
14494
14494
|
--bg-state-secondary-hover: #fafaf9;
|
|
@@ -14773,9 +14773,9 @@ video {
|
|
|
14773
14773
|
--bg-muted: #0c0a09;
|
|
14774
14774
|
--bg-card: #301108;
|
|
14775
14775
|
--bg-inverted: #ffffff;
|
|
14776
|
-
--bg-state-primary: #
|
|
14777
|
-
--bg-state-primary-hover: #
|
|
14778
|
-
--bg-state-primary-press: #
|
|
14776
|
+
--bg-state-primary: #e35706;
|
|
14777
|
+
--bg-state-primary-hover: #f27313;
|
|
14778
|
+
--bg-state-primary-press: #e35706;
|
|
14779
14779
|
--bg-state-disabled: rgba(255, 255, 255, 0.08);
|
|
14780
14780
|
--bg-state-secondary: rgba(255, 255, 255, 0.04);
|
|
14781
14781
|
--bg-state-secondary-hover: rgba(255, 255, 255, 0.08);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maxsteinwender/sort-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "A coded design system based on Sort UI Kit — Figma components as production-ready Next.js/Tailwind components",
|
|
5
5
|
"author": "Max Steinwender",
|
|
6
6
|
"license": "UNLICENSED",
|