ssovee-os-web-ui 0.1.12 → 0.1.13
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 +67 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +6 -0
- package/dist/index.js +67 -18
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -224,11 +224,14 @@ var Input = React20__namespace.default.forwardRef(
|
|
|
224
224
|
),
|
|
225
225
|
rightIcon && !showSubmitButton && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute right-3 top-1/2 transform -translate-y-1/2 text-neutral-400", children: rightIcon }),
|
|
226
226
|
showSubmitButton && /* @__PURE__ */ jsxRuntime.jsx(
|
|
227
|
-
|
|
227
|
+
"button",
|
|
228
228
|
{
|
|
229
|
-
|
|
229
|
+
type: "button",
|
|
230
230
|
onClick: onSubmit,
|
|
231
|
-
|
|
231
|
+
disabled: props.disabled || props.readOnly || !onSubmit,
|
|
232
|
+
className: "absolute right-3 top-1/2 -translate-y-1/2 text-neutral-300 transition-colors hover:text-neutral-400 disabled:cursor-not-allowed disabled:opacity-50",
|
|
233
|
+
"aria-label": "Submit input",
|
|
234
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(react.ArrowCircleRightIcon, { size: 20 })
|
|
232
235
|
}
|
|
233
236
|
)
|
|
234
237
|
] }),
|
|
@@ -389,6 +392,7 @@ var Checkbox = React20__namespace.default.forwardRef(
|
|
|
389
392
|
indeterminate = false,
|
|
390
393
|
checked,
|
|
391
394
|
onChange,
|
|
395
|
+
disabled,
|
|
392
396
|
...props
|
|
393
397
|
}, ref) => {
|
|
394
398
|
const baseClasses = "transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 cursor-pointer rounded-[6px]";
|
|
@@ -419,6 +423,7 @@ var Checkbox = React20__namespace.default.forwardRef(
|
|
|
419
423
|
),
|
|
420
424
|
defaultChecked: checked,
|
|
421
425
|
onChange,
|
|
426
|
+
disabled,
|
|
422
427
|
...props
|
|
423
428
|
}
|
|
424
429
|
),
|
|
@@ -431,7 +436,16 @@ var Checkbox = React20__namespace.default.forwardRef(
|
|
|
431
436
|
}
|
|
432
437
|
) })
|
|
433
438
|
] }),
|
|
434
|
-
label && /* @__PURE__ */ jsxRuntime.jsx(
|
|
439
|
+
label && /* @__PURE__ */ jsxRuntime.jsx(
|
|
440
|
+
"label",
|
|
441
|
+
{
|
|
442
|
+
className: cn(
|
|
443
|
+
"text-sm text-neutral-400 select-none",
|
|
444
|
+
disabled ? "cursor-not-allowed opacity-60" : "cursor-pointer"
|
|
445
|
+
),
|
|
446
|
+
children: label
|
|
447
|
+
}
|
|
448
|
+
)
|
|
435
449
|
] }),
|
|
436
450
|
(error || helperText) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-1 ml-6", children: [
|
|
437
451
|
error && /* @__PURE__ */ jsxRuntime.jsx(Typography_default, { variant: "p", className: "text-xs text-red-500", children: error }),
|
|
@@ -518,7 +532,18 @@ var Toggle = React20__namespace.default.forwardRef(
|
|
|
518
532
|
)
|
|
519
533
|
}
|
|
520
534
|
),
|
|
521
|
-
label && /* @__PURE__ */ jsxRuntime.jsx(
|
|
535
|
+
label && /* @__PURE__ */ jsxRuntime.jsx(
|
|
536
|
+
"span",
|
|
537
|
+
{
|
|
538
|
+
className: cn(
|
|
539
|
+
"text-sm text-neutral-500 select-none",
|
|
540
|
+
disabled ? "cursor-not-allowed opacity-60" : "cursor-pointer"
|
|
541
|
+
),
|
|
542
|
+
onClick: disabled ? void 0 : handleClick,
|
|
543
|
+
"aria-disabled": disabled,
|
|
544
|
+
children: label
|
|
545
|
+
}
|
|
546
|
+
)
|
|
522
547
|
] }),
|
|
523
548
|
helperText && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-1 ml-12", children: /* @__PURE__ */ jsxRuntime.jsx(Typography_default, { variant: "p", className: "text-xs text-neutral-400", children: helperText }) })
|
|
524
549
|
] });
|
|
@@ -574,7 +599,15 @@ var Dropdown = ({
|
|
|
574
599
|
lg: "h-12 px-4 text-lg"
|
|
575
600
|
};
|
|
576
601
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: dropdownRef, className: "", children: [
|
|
577
|
-
trigger ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
602
|
+
trigger ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
603
|
+
"div",
|
|
604
|
+
{
|
|
605
|
+
onClick: handleToggle,
|
|
606
|
+
className: cn(disabled ? "cursor-not-allowed opacity-50" : "cursor-pointer"),
|
|
607
|
+
"aria-disabled": disabled,
|
|
608
|
+
children: trigger
|
|
609
|
+
}
|
|
610
|
+
) : /* @__PURE__ */ jsxRuntime.jsxs(
|
|
578
611
|
"button",
|
|
579
612
|
{
|
|
580
613
|
onClick: handleToggle,
|
|
@@ -1800,6 +1833,7 @@ var Radio = React20__namespace.default.forwardRef(
|
|
|
1800
1833
|
variant = "default",
|
|
1801
1834
|
error,
|
|
1802
1835
|
helperText,
|
|
1836
|
+
disabled,
|
|
1803
1837
|
...props
|
|
1804
1838
|
}, ref) => {
|
|
1805
1839
|
const baseClasses = "transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 cursor-pointer rounded-[6px]";
|
|
@@ -1828,12 +1862,22 @@ var Radio = React20__namespace.default.forwardRef(
|
|
|
1828
1862
|
error && "border-red-500 focus:border-red-500 focus:ring-red-500/50",
|
|
1829
1863
|
className
|
|
1830
1864
|
),
|
|
1865
|
+
disabled,
|
|
1831
1866
|
...props
|
|
1832
1867
|
}
|
|
1833
1868
|
),
|
|
1834
1869
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 flex items-center justify-center pointer-events-none", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-1/2 h-1/2 bg-white rounded-full opacity-0 checked:opacity-100" }) })
|
|
1835
1870
|
] }),
|
|
1836
|
-
label && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1871
|
+
label && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1872
|
+
"label",
|
|
1873
|
+
{
|
|
1874
|
+
className: cn(
|
|
1875
|
+
"text-sm text-neutral-400 select-none",
|
|
1876
|
+
disabled ? "cursor-not-allowed opacity-60" : "cursor-pointer"
|
|
1877
|
+
),
|
|
1878
|
+
children: label
|
|
1879
|
+
}
|
|
1880
|
+
)
|
|
1837
1881
|
] }),
|
|
1838
1882
|
(error || helperText) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-1 ml-6", children: [
|
|
1839
1883
|
error && /* @__PURE__ */ jsxRuntime.jsx(Typography_default, { variant: "p", className: "text-xs text-red-500", children: error }),
|
|
@@ -1945,17 +1989,22 @@ var TableFooter = React20__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
1945
1989
|
}
|
|
1946
1990
|
));
|
|
1947
1991
|
TableFooter.displayName = "TableFooter";
|
|
1948
|
-
var TableRow = React20__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
1949
|
-
"
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1992
|
+
var TableRow = React20__namespace.forwardRef(({ className, onClick, ...props }, ref) => {
|
|
1993
|
+
const isInteractive = typeof onClick === "function";
|
|
1994
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1995
|
+
"tr",
|
|
1996
|
+
{
|
|
1997
|
+
ref,
|
|
1998
|
+
onClick,
|
|
1999
|
+
className: cn(
|
|
2000
|
+
"border-t border-surface-1 group hover:bg-surface-4 hover:text-neutral-500",
|
|
2001
|
+
isInteractive ? "cursor-pointer" : "cursor-default",
|
|
2002
|
+
className
|
|
2003
|
+
),
|
|
2004
|
+
...props
|
|
2005
|
+
}
|
|
2006
|
+
);
|
|
2007
|
+
});
|
|
1959
2008
|
TableRow.displayName = "TableRow";
|
|
1960
2009
|
var TableHead = React20__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1961
2010
|
"th",
|