@nearform/quantum 1.4.1 → 1.4.3
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 +111 -5
- package/dist/animations/index.mjs +8 -0
- package/dist/animations/index.mjs.map +1 -0
- package/dist/chunk-36NLQKQR.mjs +22 -0
- package/dist/chunk-36NLQKQR.mjs.map +1 -0
- package/dist/chunk-3FFF7Q7C.mjs +55 -0
- package/dist/chunk-3FFF7Q7C.mjs.map +1 -0
- package/dist/chunk-KGI2Q7KG.mjs +352 -0
- package/dist/chunk-KGI2Q7KG.mjs.map +1 -0
- package/dist/colors/index.mjs +8 -0
- package/dist/colors/index.mjs.map +1 -0
- package/dist/global.css +1938 -2071
- package/dist/global.css.map +1 -1
- package/dist/index.d.mts +594 -0
- package/dist/index.js +25 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2221 -0
- package/dist/index.mjs.map +1 -0
- package/dist/tailwind-plugin.js +18 -1200
- package/dist/tailwind-plugin.js.map +1 -1
- package/dist/tailwind-plugin.mjs +77 -0
- package/dist/tailwind-plugin.mjs.map +1 -0
- package/package.json +31 -31
package/dist/index.js
CHANGED
|
@@ -615,7 +615,7 @@ var buttonVariants = (0, import_class_variance_authority2.cva)(
|
|
|
615
615
|
"inline-flex items-center justify-center",
|
|
616
616
|
"rounded-lg",
|
|
617
617
|
"transition-colors",
|
|
618
|
-
"focus-visible:outline-
|
|
618
|
+
"focus-visible:outline-hidden",
|
|
619
619
|
"disabled:pointer-events-none",
|
|
620
620
|
"cursor-pointer",
|
|
621
621
|
"disabled:cursor-default"
|
|
@@ -911,7 +911,7 @@ var calendarVariants = (0, import_class_variance_authority4.cva)([], {
|
|
|
911
911
|
"items-center",
|
|
912
912
|
"shrink-0",
|
|
913
913
|
"focus-visible:shadow-blue",
|
|
914
|
-
"outline-
|
|
914
|
+
"outline-hidden"
|
|
915
915
|
]),
|
|
916
916
|
day_selected: ["text-foreground-inverse"],
|
|
917
917
|
day_outside: [
|
|
@@ -964,8 +964,16 @@ function Calendar(_a) {
|
|
|
964
964
|
day_hidden: "invisible"
|
|
965
965
|
}, classNames),
|
|
966
966
|
components: {
|
|
967
|
-
|
|
968
|
-
|
|
967
|
+
Chevron: (props2) => {
|
|
968
|
+
switch (props2.orientation) {
|
|
969
|
+
case "left":
|
|
970
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(assets_exports.BsArrowLeft, { className: "h-5 w-5 fill-current stroke-current" });
|
|
971
|
+
case "right":
|
|
972
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(assets_exports.BsArrowRight, { className: "h-5 w-5 fill-current stroke-current" });
|
|
973
|
+
default:
|
|
974
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react_day_picker.Chevron, __spreadValues({}, props2));
|
|
975
|
+
}
|
|
976
|
+
}
|
|
969
977
|
}
|
|
970
978
|
}, props)
|
|
971
979
|
);
|
|
@@ -1042,7 +1050,7 @@ var chipVariants = (0, import_class_variance_authority6.cva)(
|
|
|
1042
1050
|
"font-semibold",
|
|
1043
1051
|
"leading-normal",
|
|
1044
1052
|
"text-foreground",
|
|
1045
|
-
"focus-visible:outline-
|
|
1053
|
+
"focus-visible:outline-hidden",
|
|
1046
1054
|
"focus-visible:shadow-blue"
|
|
1047
1055
|
],
|
|
1048
1056
|
[
|
|
@@ -1280,7 +1288,7 @@ var formVariants = (0, import_class_variance_authority9.cva)(
|
|
|
1280
1288
|
}
|
|
1281
1289
|
);
|
|
1282
1290
|
var inputVariants = (0, import_class_variance_authority9.cva)(
|
|
1283
|
-
["flex", "flex-grow", "items-center", "outline-
|
|
1291
|
+
["flex", "flex-grow", "items-center", "outline-hidden", "bg-transparent"],
|
|
1284
1292
|
{
|
|
1285
1293
|
variants: {
|
|
1286
1294
|
variant: {
|
|
@@ -1357,7 +1365,7 @@ var Link = import_react4.default.forwardRef(
|
|
|
1357
1365
|
"py-1 px-1.5",
|
|
1358
1366
|
"rounded",
|
|
1359
1367
|
"cursor-pointer",
|
|
1360
|
-
"outline-
|
|
1368
|
+
"outline-hidden",
|
|
1361
1369
|
"dark:text-white",
|
|
1362
1370
|
selected ? selectedClasses : `${hoverClasses} ${focusClasses}`,
|
|
1363
1371
|
className
|
|
@@ -1485,7 +1493,7 @@ var ModalClose = React9.forwardRef((_a, ref) => {
|
|
|
1485
1493
|
__spreadProps(__spreadValues({
|
|
1486
1494
|
ref,
|
|
1487
1495
|
className: cn(
|
|
1488
|
-
"rounded-
|
|
1496
|
+
"rounded-xs opacity-70 ring-offset-background transition-opacity disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-foreground-muted",
|
|
1489
1497
|
className
|
|
1490
1498
|
)
|
|
1491
1499
|
}, props), {
|
|
@@ -1543,7 +1551,7 @@ var PageNumberStyles = (0, import_class_variance_authority11.cva)([
|
|
|
1543
1551
|
"h-10",
|
|
1544
1552
|
"px-4",
|
|
1545
1553
|
"py-2",
|
|
1546
|
-
"rounded-
|
|
1554
|
+
"rounded-xs",
|
|
1547
1555
|
"text-foreground-muted",
|
|
1548
1556
|
"active:bg-accent",
|
|
1549
1557
|
"active:text-primary-10",
|
|
@@ -1625,7 +1633,7 @@ var Pagination = import_react5.default.forwardRef(
|
|
|
1625
1633
|
if (currentPage !== 1) setCurrentPage(currentPage - 1);
|
|
1626
1634
|
};
|
|
1627
1635
|
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("nav", __spreadProps(__spreadValues({ className: cn(PaginationVariants(), className), ref }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("ul", { children: [
|
|
1628
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("li", { className: "hover:bg-background px-4 dark:hover:bg-background-dark rounded-
|
|
1636
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("li", { className: "hover:bg-background px-4 dark:hover:bg-background-dark rounded-xs", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1629
1637
|
"button",
|
|
1630
1638
|
{
|
|
1631
1639
|
onClick: goToPrevPage,
|
|
@@ -1653,7 +1661,7 @@ var Pagination = import_react5.default.forwardRef(
|
|
|
1653
1661
|
) }),
|
|
1654
1662
|
pgNumber === 1 && showLeftDots ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "px-4 max-w-40 min-w-40 text-foreground-muted", children: "..." }) }) : null
|
|
1655
1663
|
] }, pgNumber)) }),
|
|
1656
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("li", { className: "hover:bg-background px-4 dark:hover:bg-background-dark rounded-
|
|
1664
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("li", { className: "hover:bg-background px-4 dark:hover:bg-background-dark rounded-xs", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1657
1665
|
"button",
|
|
1658
1666
|
{
|
|
1659
1667
|
onClick: goToNextPage,
|
|
@@ -1676,7 +1684,7 @@ var import_class_variance_authority12 = require("class-variance-authority");
|
|
|
1676
1684
|
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
1677
1685
|
var toggleMaskVariants = (0, import_class_variance_authority12.cva)(["flex", "self-center text-inherit"]);
|
|
1678
1686
|
var passwordVariants = (0, import_class_variance_authority12.cva)(
|
|
1679
|
-
["flex", "flex-grow", "items-center", "outline-
|
|
1687
|
+
["flex", "flex-grow", "items-center", "outline-hidden", "bg-transparent"],
|
|
1680
1688
|
{
|
|
1681
1689
|
variants: {
|
|
1682
1690
|
variant: {
|
|
@@ -1742,7 +1750,7 @@ var popoverVariants = (0, import_class_variance_authority13.cva)([
|
|
|
1742
1750
|
"bg-background dark:bg-background-dark",
|
|
1743
1751
|
"text-foreground text-sm font-normal dark:text-white",
|
|
1744
1752
|
"shadow",
|
|
1745
|
-
"outline-
|
|
1753
|
+
"outline-hidden",
|
|
1746
1754
|
"min-w-72",
|
|
1747
1755
|
"pl-2 pr-[20px] py-3"
|
|
1748
1756
|
]);
|
|
@@ -1903,7 +1911,7 @@ var triggerVariants = (0, import_class_variance_authority15.cva)(
|
|
|
1903
1911
|
"px-3",
|
|
1904
1912
|
"py-2",
|
|
1905
1913
|
"text-sm",
|
|
1906
|
-
"focus:outline-
|
|
1914
|
+
"focus:outline-hidden",
|
|
1907
1915
|
"focus-visible:shadow-blue",
|
|
1908
1916
|
"disabled:cursor-not-allowed",
|
|
1909
1917
|
"disabled:opacity-50",
|
|
@@ -2046,7 +2054,7 @@ var itemVariants = (0, import_class_variance_authority15.cva)([
|
|
|
2046
2054
|
"py-2",
|
|
2047
2055
|
"px-4",
|
|
2048
2056
|
"text-sm",
|
|
2049
|
-
"outline-
|
|
2057
|
+
"outline-hidden",
|
|
2050
2058
|
"data-[disabled]:pointer-events-none",
|
|
2051
2059
|
"data-[disabled]:opacity-50",
|
|
2052
2060
|
"hover:bg-background-alt",
|
|
@@ -2104,7 +2112,7 @@ var switchVariants = (0, import_class_variance_authority16.cva)([
|
|
|
2104
2112
|
"rounded-full",
|
|
2105
2113
|
"border-none",
|
|
2106
2114
|
"transition-colors ",
|
|
2107
|
-
"focus-visible:outline-
|
|
2115
|
+
"focus-visible:outline-hidden",
|
|
2108
2116
|
"focus-visible:shadow-brandGreen",
|
|
2109
2117
|
"disabled:cursor-not-allowed"
|
|
2110
2118
|
],
|
|
@@ -2260,7 +2268,7 @@ var textareaVariants = (0, import_class_variance_authority18.cva)(
|
|
|
2260
2268
|
[
|
|
2261
2269
|
"flex",
|
|
2262
2270
|
"flex-grow",
|
|
2263
|
-
"outline-
|
|
2271
|
+
"outline-hidden",
|
|
2264
2272
|
"resize-none",
|
|
2265
2273
|
"border",
|
|
2266
2274
|
"border-2",
|