@dgithiomi/sbui-web 1.0.3 → 1.0.5
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 +2 -2
- package/dist/index.cjs +25 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +25 -16
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
#
|
|
1
|
+
# SB UI — Sport Betting Component Library
|
|
2
2
|
|
|
3
3
|
A **React** component library and **interactive playground** for building, previewing, and stress-testing UI used in the Uniicy sports-betting experience. The repo is a **Bun + Turborepo** monorepo: design tokens and shared utilities live in `packages/`, publishable web components live in `components/web`, and the playground in `apps/playground` is the live workbench for developers and QA.
|
|
4
4
|
|
|
5
|
-

|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
package/dist/index.cjs
CHANGED
|
@@ -12299,35 +12299,42 @@ var TOAST_VARIANTS = {
|
|
|
12299
12299
|
backgroundColor: "rgb(var(--color-fg))",
|
|
12300
12300
|
textColor: "rgb(var(--color-fg-inverse))",
|
|
12301
12301
|
iconBackground: "rgb(var(--color-success-400))",
|
|
12302
|
-
toastContentColor: "rgb(var(--color-success-
|
|
12302
|
+
toastContentColor: "rgb(var(--color-success-600))",
|
|
12303
12303
|
icon: /* @__PURE__ */ import_react37.default.createElement(
|
|
12304
12304
|
Success,
|
|
12305
12305
|
{
|
|
12306
|
-
|
|
12307
|
-
className: "rounded-full"
|
|
12306
|
+
size: 16,
|
|
12307
|
+
className: "rounded-full",
|
|
12308
|
+
color: "rgb(var(--color-success-600))"
|
|
12308
12309
|
}
|
|
12309
12310
|
)
|
|
12310
12311
|
},
|
|
12311
12312
|
error: {
|
|
12312
12313
|
backgroundColor: "rgb(var(--color-fg))",
|
|
12313
12314
|
textColor: "rgb(var(--color-fg-inverse))",
|
|
12314
|
-
|
|
12315
|
-
|
|
12316
|
-
icon: /* @__PURE__ */ import_react37.default.createElement(XFill, { color: "rgb(var(--color-error-
|
|
12315
|
+
toastContentColor: "rgb(var(--color-error-600))",
|
|
12316
|
+
iconBackground: "rgb(var(--color-error-400) / 80%)",
|
|
12317
|
+
icon: /* @__PURE__ */ import_react37.default.createElement(XFill, { size: 16, color: "rgb(var(--color-error-600))" })
|
|
12317
12318
|
},
|
|
12318
12319
|
warning: {
|
|
12319
12320
|
backgroundColor: "rgb(var(--color-fg))",
|
|
12320
12321
|
textColor: "rgb(var(--color-fg-inverse))",
|
|
12321
|
-
iconBackground: "rgb(var(--color-warning-
|
|
12322
|
-
toastContentColor: "rgb(var(--color-warning-
|
|
12323
|
-
icon: /* @__PURE__ */ import_react37.default.createElement(Warning, { color: "rgb(var(--color-warning-
|
|
12322
|
+
iconBackground: "rgb(var(--color-warning-500))",
|
|
12323
|
+
toastContentColor: "rgb(var(--color-warning-600))",
|
|
12324
|
+
icon: /* @__PURE__ */ import_react37.default.createElement(Warning, { size: 16, color: "rgb(var(--color-warning-600))" })
|
|
12324
12325
|
},
|
|
12325
12326
|
info: {
|
|
12326
12327
|
backgroundColor: "rgb(var(--color-fg))",
|
|
12327
12328
|
textColor: "rgb(var(--color-fg-inverse))",
|
|
12328
|
-
iconBackground: "rgb(var(--color-
|
|
12329
|
-
toastContentColor: "rgb(var(--color-
|
|
12330
|
-
icon: /* @__PURE__ */ import_react37.default.createElement(
|
|
12329
|
+
iconBackground: "rgb(var(--color-primary-400))",
|
|
12330
|
+
toastContentColor: "rgb(var(--color-primary-600))",
|
|
12331
|
+
icon: /* @__PURE__ */ import_react37.default.createElement(
|
|
12332
|
+
CircledInformation,
|
|
12333
|
+
{
|
|
12334
|
+
size: 16,
|
|
12335
|
+
color: "rgb(var(--color-primary-600))"
|
|
12336
|
+
}
|
|
12337
|
+
)
|
|
12331
12338
|
}
|
|
12332
12339
|
};
|
|
12333
12340
|
function secondsToMillis(seconds) {
|
|
@@ -12339,7 +12346,7 @@ var Toast = ({
|
|
|
12339
12346
|
title,
|
|
12340
12347
|
message,
|
|
12341
12348
|
onClose,
|
|
12342
|
-
variant,
|
|
12349
|
+
variant = "success",
|
|
12343
12350
|
duration = "short"
|
|
12344
12351
|
}) => {
|
|
12345
12352
|
const isMobile = useIsMobile();
|
|
@@ -12420,9 +12427,9 @@ var Toast = ({
|
|
|
12420
12427
|
style: {
|
|
12421
12428
|
borderColor: toastColors.closeIconBorderColor
|
|
12422
12429
|
},
|
|
12423
|
-
className: `cursor-pointer rounded-full border p-
|
|
12430
|
+
className: `cursor-pointer rounded-full border p-1 opacity-50 hover:opacity-100`
|
|
12424
12431
|
},
|
|
12425
|
-
/* @__PURE__ */ import_react39.default.createElement(X, { color: toastColors.closeIconColor })
|
|
12432
|
+
/* @__PURE__ */ import_react39.default.createElement(X, { size: 16, color: toastColors.closeIconColor })
|
|
12426
12433
|
)),
|
|
12427
12434
|
/* @__PURE__ */ import_react39.default.createElement(
|
|
12428
12435
|
motion.div,
|
|
@@ -12441,6 +12448,9 @@ var Toast = ({
|
|
|
12441
12448
|
);
|
|
12442
12449
|
};
|
|
12443
12450
|
|
|
12451
|
+
// src/molecules/Toast/useToast.ts
|
|
12452
|
+
var import_react43 = require("react");
|
|
12453
|
+
|
|
12444
12454
|
// src/molecules/Toast/Toast.provider.tsx
|
|
12445
12455
|
var import_react40 = __toESM(require("react"), 1);
|
|
12446
12456
|
var import_react_dom = require("react-dom");
|
|
@@ -12500,7 +12510,6 @@ var ToastProvider = ({
|
|
|
12500
12510
|
};
|
|
12501
12511
|
|
|
12502
12512
|
// src/molecules/Toast/useToast.ts
|
|
12503
|
-
var import_react43 = require("react");
|
|
12504
12513
|
function useToast() {
|
|
12505
12514
|
const toastContext = (0, import_react43.useContext)(ToastContext);
|
|
12506
12515
|
if (!toastContext) {
|