@nearform/quantum 1.1.2 → 1.3.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.js CHANGED
@@ -58,8 +58,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
58
58
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
59
59
 
60
60
  // src/index.ts
61
- var src_exports = {};
62
- __export(src_exports, {
61
+ var index_exports = {};
62
+ __export(index_exports, {
63
63
  Accordion: () => Accordion,
64
64
  AccordionContent: () => AccordionContent,
65
65
  AccordionHeader: () => AccordionHeader,
@@ -90,6 +90,7 @@ __export(src_exports, {
90
90
  ModalTrigger: () => ModalTrigger,
91
91
  OpenSourceIcon: () => OpenSourceIcon,
92
92
  Pagination: () => Pagination,
93
+ Password: () => Password,
93
94
  Popover: () => Popover,
94
95
  PopoverClose: () => PopoverClose,
95
96
  PopoverContent: () => PopoverContent,
@@ -121,9 +122,10 @@ __export(src_exports, {
121
122
  Tooltip: () => Tooltip,
122
123
  WebsiteFooter: () => WebsiteFooter,
123
124
  buttonVariants: () => buttonVariants,
124
- colors: () => colors_default
125
+ colors: () => colors_default,
126
+ formVariants: () => formVariants
125
127
  });
126
- module.exports = __toCommonJS(src_exports);
128
+ module.exports = __toCommonJS(index_exports);
127
129
 
128
130
  // src/colors/base.ts
129
131
  var colors = {
@@ -757,8 +759,7 @@ var Button = React2.forwardRef(
757
759
  ref,
758
760
  disabled,
759
761
  onClick: (e) => {
760
- if (onClick)
761
- onClick(e);
762
+ if (onClick) onClick(e);
762
763
  }
763
764
  }, props), {
764
765
  children: [
@@ -1291,11 +1292,12 @@ var inputVariants = (0, import_class_variance_authority9.cva)(
1291
1292
  }
1292
1293
  }
1293
1294
  );
1294
- var convertTypeToComponent = {
1295
- left: {
1296
- text: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(assets_exports.BsPersonFill, {}),
1295
+ var convertTypeToLeftComponent = (type) => {
1296
+ var _a;
1297
+ const mapping = {
1297
1298
  search: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(assets_exports.BsSearch, {})
1298
- }
1299
+ };
1300
+ return (_a = mapping[type]) != null ? _a : null;
1299
1301
  };
1300
1302
  var Input = import_react3.default.forwardRef(
1301
1303
  (_a, ref) => {
@@ -1318,14 +1320,14 @@ var Input = import_react3.default.forwardRef(
1318
1320
  "rightSideChild",
1319
1321
  "onClear"
1320
1322
  ]);
1321
- const leftSideComponent = leftSideChild != null ? leftSideChild : convertTypeToComponent.left[`${type}`];
1323
+ const leftSideComponent = leftSideChild != null ? leftSideChild : convertTypeToLeftComponent(type);
1322
1324
  const rightSideComponent = rightSideChild != null ? rightSideChild : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(assets_exports.BsX, { strokeWidth: 0.6 });
1323
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: cn(formVariants({ variant }), formClassName), children: [
1324
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: cn(leftSideVariants(), leftSideClassName), children: leftSideComponent }),
1325
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("label", { className: cn(formVariants({ variant }), formClassName), children: [
1326
+ leftSideComponent && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: cn(leftSideVariants(), leftSideClassName), children: leftSideComponent }),
1325
1327
  /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1326
1328
  "input",
1327
1329
  __spreadValues({
1328
- type: "text",
1330
+ type,
1329
1331
  className: cn(inputVariants({ variant }), className),
1330
1332
  ref
1331
1333
  }, props)
@@ -1615,12 +1617,10 @@ var Pagination = import_react5.default.forwardRef(
1615
1617
  }
1616
1618
  }, [currentPage, totalPages]);
1617
1619
  const goToNextPage = () => {
1618
- if (currentPage !== totalPages)
1619
- setCurrentPage(currentPage + 1);
1620
+ if (currentPage !== totalPages) setCurrentPage(currentPage + 1);
1620
1621
  };
1621
1622
  const goToPrevPage = () => {
1622
- if (currentPage !== 1)
1623
- setCurrentPage(currentPage - 1);
1623
+ if (currentPage !== 1) setCurrentPage(currentPage - 1);
1624
1624
  };
1625
1625
  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: [
1626
1626
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("li", { className: "hover:bg-background px-4 dark:hover:bg-background-dark rounded-sm", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
@@ -1668,14 +1668,72 @@ var Pagination = import_react5.default.forwardRef(
1668
1668
  }
1669
1669
  );
1670
1670
 
1671
+ // src/components/Password/index.tsx
1672
+ var import_react6 = __toESM(require("react"));
1673
+ var import_class_variance_authority12 = require("class-variance-authority");
1674
+ var import_jsx_runtime14 = require("react/jsx-runtime");
1675
+ var toggleMaskVariants = (0, import_class_variance_authority12.cva)(["flex", "self-center text-inherit"]);
1676
+ var passwordVariants = (0, import_class_variance_authority12.cva)(
1677
+ ["flex", "flex-grow", "items-center", "outline-none", "bg-transparent"],
1678
+ {
1679
+ variants: {
1680
+ variant: {
1681
+ primary: ["text-foreground", "dark:text-foreground-dark"],
1682
+ error: ["text-feedback-red"],
1683
+ success: ["text-green-700"]
1684
+ }
1685
+ },
1686
+ defaultVariants: {
1687
+ variant: "primary"
1688
+ }
1689
+ }
1690
+ );
1691
+ var Password = import_react6.default.forwardRef(
1692
+ (_a, ref) => {
1693
+ var _b = _a, {
1694
+ className,
1695
+ formClassName,
1696
+ variant = "primary",
1697
+ toggleMask = true
1698
+ } = _b, props = __objRest(_b, [
1699
+ "className",
1700
+ "formClassName",
1701
+ "variant",
1702
+ "toggleMask"
1703
+ ]);
1704
+ const [isMaskOn, setIsMaskOn] = (0, import_react6.useState)(true);
1705
+ const onToggleMask = () => setIsMaskOn((isMaskOn2) => !isMaskOn2);
1706
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("label", { className: cn(formVariants({ variant }), formClassName), children: [
1707
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1708
+ "input",
1709
+ __spreadValues({
1710
+ type: isMaskOn ? "password" : "text",
1711
+ className: cn(passwordVariants({ variant }), className),
1712
+ ref
1713
+ }, props)
1714
+ ),
1715
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "input-right-side" }),
1716
+ toggleMask && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1717
+ "button",
1718
+ {
1719
+ type: "button",
1720
+ onClick: onToggleMask,
1721
+ className: toggleMaskVariants(),
1722
+ children: isMaskOn ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(assets_exports.BsEye, {}) : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(assets_exports.BsEyeSlash, {})
1723
+ }
1724
+ )
1725
+ ] });
1726
+ }
1727
+ );
1728
+
1671
1729
  // src/components/Popover/index.tsx
1672
- var React11 = __toESM(require("react"));
1730
+ var React12 = __toESM(require("react"));
1673
1731
  var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
1674
- var import_class_variance_authority12 = require("class-variance-authority");
1732
+ var import_class_variance_authority13 = require("class-variance-authority");
1675
1733
  var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"));
1676
1734
  var ScrollArea = __toESM(require("@radix-ui/react-scroll-area"));
1677
- var import_jsx_runtime14 = require("react/jsx-runtime");
1678
- var popoverVariants = (0, import_class_variance_authority12.cva)([
1735
+ var import_jsx_runtime15 = require("react/jsx-runtime");
1736
+ var popoverVariants = (0, import_class_variance_authority13.cva)([
1679
1737
  "z-50",
1680
1738
  "border border-2 border-border-subtle dark:border-border-dark",
1681
1739
  "rounded-lg",
@@ -1689,10 +1747,10 @@ var popoverVariants = (0, import_class_variance_authority12.cva)([
1689
1747
  var Popover = PopoverPrimitive.Root;
1690
1748
  var PopoverTrigger = PopoverPrimitive.Trigger;
1691
1749
  var PopoverClose = PopoverPrimitive.Close;
1692
- var PopoverContent = React11.forwardRef(
1750
+ var PopoverContent = React12.forwardRef(
1693
1751
  (_a, ref) => {
1694
1752
  var _b = _a, { className, align = "center", sideOffset = 4, children } = _b, props = __objRest(_b, ["className", "align", "sideOffset", "children"]);
1695
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1753
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1696
1754
  PopoverPrimitive.Content,
1697
1755
  __spreadProps(__spreadValues({
1698
1756
  ref,
@@ -1710,22 +1768,22 @@ var PopoverScrollArea = ({
1710
1768
  className,
1711
1769
  children
1712
1770
  }) => {
1713
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(ScrollArea.Root, { className: cn("w-full h-full", className), type: "auto", children: [
1714
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ScrollArea.Viewport, { className: "w-full h-full", children }),
1715
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1771
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(ScrollArea.Root, { className: cn("w-full h-full", className), type: "auto", children: [
1772
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ScrollArea.Viewport, { className: "w-full h-full", children }),
1773
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1716
1774
  ScrollArea.Scrollbar,
1717
1775
  {
1718
1776
  orientation: "vertical",
1719
1777
  className: "w-3 pr-1 py-2 -mr-[20px]",
1720
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ScrollArea.Thumb, { className: "bg-grey-200 w-2 rounded-lg" })
1778
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ScrollArea.Thumb, { className: "bg-grey-200 w-2 rounded-lg" })
1721
1779
  }
1722
1780
  )
1723
1781
  ] });
1724
1782
  };
1725
- var PopoverSeparator = React11.forwardRef(
1783
+ var PopoverSeparator = React12.forwardRef(
1726
1784
  (_a, ref) => {
1727
1785
  var _b = _a, { className, orientation = "horizontal", fullLength = false } = _b, props = __objRest(_b, ["className", "orientation", "fullLength"]);
1728
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "w-full", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1786
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "w-full", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1729
1787
  SeparatorPrimitive.Root,
1730
1788
  __spreadValues({
1731
1789
  ref,
@@ -1746,28 +1804,28 @@ var PopoverHeader = ({
1746
1804
  className,
1747
1805
  children
1748
1806
  }) => {
1749
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, { children: [
1750
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: cn("w-full pb-4", className), children }),
1751
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(PopoverSeparator, { fullLength: true })
1807
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_jsx_runtime15.Fragment, { children: [
1808
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: cn("w-full pb-4", className), children }),
1809
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(PopoverSeparator, { fullLength: true })
1752
1810
  ] });
1753
1811
  };
1754
1812
  var PopoverFooter = ({
1755
1813
  className,
1756
1814
  children
1757
1815
  }) => {
1758
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "w-full -mb-3", children: [
1759
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(PopoverSeparator, { fullLength: true }),
1760
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: cn("py-2", className), children })
1816
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "w-full -mb-3", children: [
1817
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(PopoverSeparator, { fullLength: true }),
1818
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: cn("py-2", className), children })
1761
1819
  ] });
1762
1820
  };
1763
1821
 
1764
1822
  // src/components/Radio/RadioGroup.tsx
1765
- var React12 = __toESM(require("react"));
1823
+ var React13 = __toESM(require("react"));
1766
1824
  var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"));
1767
- var import_jsx_runtime15 = require("react/jsx-runtime");
1768
- var RadioGroup = React12.forwardRef((_a, ref) => {
1825
+ var import_jsx_runtime16 = require("react/jsx-runtime");
1826
+ var RadioGroup = React13.forwardRef((_a, ref) => {
1769
1827
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1770
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1828
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1771
1829
  RadioGroupPrimitive.Root,
1772
1830
  __spreadProps(__spreadValues({
1773
1831
  className: cn("flex flex-col space-y-3", className)
@@ -1779,11 +1837,11 @@ var RadioGroup = React12.forwardRef((_a, ref) => {
1779
1837
  RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
1780
1838
 
1781
1839
  // src/components/Radio/RadioGroupItem.tsx
1782
- var React13 = __toESM(require("react"));
1840
+ var React14 = __toESM(require("react"));
1783
1841
  var RadioGroupPrimitive2 = __toESM(require("@radix-ui/react-radio-group"));
1784
- var import_class_variance_authority13 = require("class-variance-authority");
1785
- var import_jsx_runtime16 = require("react/jsx-runtime");
1786
- var radioVariant = (0, import_class_variance_authority13.cva)([
1842
+ var import_class_variance_authority14 = require("class-variance-authority");
1843
+ var import_jsx_runtime17 = require("react/jsx-runtime");
1844
+ var radioVariant = (0, import_class_variance_authority14.cva)([
1787
1845
  [
1788
1846
  "h-5 w-5",
1789
1847
  "rounded-full",
@@ -1800,15 +1858,15 @@ var radioVariant = (0, import_class_variance_authority13.cva)([
1800
1858
  "dark:data-[state=checked]:bg-border-dark"
1801
1859
  ]
1802
1860
  ]);
1803
- var RadioGroupItem = React13.forwardRef((_a, ref) => {
1861
+ var RadioGroupItem = React14.forwardRef((_a, ref) => {
1804
1862
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1805
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1863
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1806
1864
  RadioGroupPrimitive2.Item,
1807
1865
  __spreadProps(__spreadValues({
1808
1866
  ref,
1809
1867
  className: cn(radioVariant(), className)
1810
1868
  }, props), {
1811
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(RadioGroupPrimitive2.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1869
+ children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(RadioGroupPrimitive2.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1812
1870
  assets_exports.BsCircleFill,
1813
1871
  {
1814
1872
  size: "8",
@@ -1821,16 +1879,16 @@ var RadioGroupItem = React13.forwardRef((_a, ref) => {
1821
1879
  RadioGroupItem.displayName = RadioGroupPrimitive2.Item.displayName;
1822
1880
 
1823
1881
  // src/components/Select/index.tsx
1824
- var React14 = __toESM(require("react"));
1882
+ var React15 = __toESM(require("react"));
1825
1883
  var SelectPrimitive = __toESM(require("@radix-ui/react-select"));
1826
- var import_class_variance_authority14 = require("class-variance-authority");
1884
+ var import_class_variance_authority15 = require("class-variance-authority");
1827
1885
  var ScrollArea2 = __toESM(require("@radix-ui/react-scroll-area"));
1828
- var import_jsx_runtime17 = require("react/jsx-runtime");
1886
+ var import_jsx_runtime18 = require("react/jsx-runtime");
1829
1887
  var Select = SelectPrimitive.Root;
1830
1888
  var SelectGroup = SelectPrimitive.Group;
1831
1889
  var SelectValue = SelectPrimitive.Value;
1832
1890
  var SelectPortal = SelectPrimitive.Portal;
1833
- var triggerVariants = (0, import_class_variance_authority14.cva)(
1891
+ var triggerVariants = (0, import_class_variance_authority15.cva)(
1834
1892
  [
1835
1893
  [
1836
1894
  "flex",
@@ -1892,9 +1950,9 @@ var triggerVariants = (0, import_class_variance_authority14.cva)(
1892
1950
  }
1893
1951
  }
1894
1952
  );
1895
- var SelectTrigger = React14.forwardRef((_a, ref) => {
1953
+ var SelectTrigger = React15.forwardRef((_a, ref) => {
1896
1954
  var _b = _a, { variant, size, className, children } = _b, props = __objRest(_b, ["variant", "size", "className", "children"]);
1897
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
1955
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1898
1956
  SelectPrimitive.Trigger,
1899
1957
  __spreadProps(__spreadValues({
1900
1958
  ref,
@@ -1902,13 +1960,13 @@ var SelectTrigger = React14.forwardRef((_a, ref) => {
1902
1960
  }, props), {
1903
1961
  children: [
1904
1962
  children,
1905
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(SelectPrimitive.Icon, { asChild: true, className: "ml-6", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(assets_exports.BsChevronDown, { className: "h-2 w-2" }) })
1963
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SelectPrimitive.Icon, { asChild: true, className: "ml-6", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(assets_exports.BsChevronDown, { className: "h-2 w-2" }) })
1906
1964
  ]
1907
1965
  })
1908
1966
  );
1909
1967
  });
1910
1968
  SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
1911
- var contentVariants = (0, import_class_variance_authority14.cva)([
1969
+ var contentVariants = (0, import_class_variance_authority15.cva)([
1912
1970
  "relative",
1913
1971
  "z-50",
1914
1972
  "min-w-[8rem]",
@@ -1926,9 +1984,9 @@ var contentVariants = (0, import_class_variance_authority14.cva)([
1926
1984
  "dark:border-border-subtle-dark",
1927
1985
  "dark:text-foreground-dark"
1928
1986
  ]);
1929
- var SelectContent = React14.forwardRef((_a, ref) => {
1987
+ var SelectContent = React15.forwardRef((_a, ref) => {
1930
1988
  var _b = _a, { className, children, position = "popper" } = _b, props = __objRest(_b, ["className", "children", "position"]);
1931
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1989
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1932
1990
  SelectPrimitive.Content,
1933
1991
  __spreadProps(__spreadValues({
1934
1992
  ref,
@@ -1939,8 +1997,8 @@ var SelectContent = React14.forwardRef((_a, ref) => {
1939
1997
  ),
1940
1998
  position
1941
1999
  }, props), {
1942
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(ScrollArea2.Root, { className: "w-full h-full", type: "auto", children: [
1943
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2000
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(ScrollArea2.Root, { className: "w-full h-full", type: "auto", children: [
2001
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1944
2002
  SelectPrimitive.Viewport,
1945
2003
  {
1946
2004
  asChild: true,
@@ -1948,7 +2006,7 @@ var SelectContent = React14.forwardRef((_a, ref) => {
1948
2006
  "p-1",
1949
2007
  position === "popper" && "max-h-[var(--radix-select-content-available-height)] w-full min-w-[var(--radix-select-trigger-width)]"
1950
2008
  ),
1951
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2009
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1952
2010
  ScrollArea2.Viewport,
1953
2011
  {
1954
2012
  className: "w-full h-full",
@@ -1958,15 +2016,15 @@ var SelectContent = React14.forwardRef((_a, ref) => {
1958
2016
  )
1959
2017
  }
1960
2018
  ),
1961
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(ScrollArea2.Scrollbar, { orientation: "vertical", className: "w-3 pr-1 py-2", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(ScrollArea2.Thumb, { className: "bg-grey-200 w-2 rounded-lg" }) })
2019
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(ScrollArea2.Scrollbar, { orientation: "vertical", className: "w-3 pr-1 py-2", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(ScrollArea2.Thumb, { className: "bg-grey-200 w-2 rounded-lg" }) })
1962
2020
  ] })
1963
2021
  })
1964
2022
  ) });
1965
2023
  });
1966
2024
  SelectContent.displayName = SelectPrimitive.Content.displayName;
1967
- var SelectLabel = React14.forwardRef((_a, ref) => {
2025
+ var SelectLabel = React15.forwardRef((_a, ref) => {
1968
2026
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1969
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2027
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1970
2028
  SelectPrimitive.Label,
1971
2029
  __spreadValues({
1972
2030
  ref,
@@ -1975,7 +2033,7 @@ var SelectLabel = React14.forwardRef((_a, ref) => {
1975
2033
  );
1976
2034
  });
1977
2035
  SelectLabel.displayName = SelectPrimitive.Label.displayName;
1978
- var itemVariants = (0, import_class_variance_authority14.cva)([
2036
+ var itemVariants = (0, import_class_variance_authority15.cva)([
1979
2037
  [
1980
2038
  "relative",
1981
2039
  "flex",
@@ -1997,22 +2055,22 @@ var itemVariants = (0, import_class_variance_authority14.cva)([
1997
2055
  "dark:hover:bg-background-alt-dark"
1998
2056
  ]
1999
2057
  ]);
2000
- var SelectItem = React14.forwardRef((_a, ref) => {
2058
+ var SelectItem = React15.forwardRef((_a, ref) => {
2001
2059
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
2002
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2060
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2003
2061
  SelectPrimitive.Item,
2004
2062
  __spreadProps(__spreadValues({
2005
2063
  ref,
2006
2064
  className: cn(itemVariants(), className)
2007
2065
  }, props), {
2008
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(SelectPrimitive.ItemText, { children })
2066
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SelectPrimitive.ItemText, { children })
2009
2067
  })
2010
2068
  );
2011
2069
  });
2012
2070
  SelectItem.displayName = SelectPrimitive.Item.displayName;
2013
- var SelectSeparator = React14.forwardRef((_a, ref) => {
2071
+ var SelectSeparator = React15.forwardRef((_a, ref) => {
2014
2072
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2015
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2073
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2016
2074
  SelectPrimitive.Separator,
2017
2075
  __spreadValues({
2018
2076
  ref,
@@ -2026,11 +2084,11 @@ var SelectSeparator = React14.forwardRef((_a, ref) => {
2026
2084
  SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
2027
2085
 
2028
2086
  // src/components/Switch/index.tsx
2029
- var React15 = __toESM(require("react"));
2087
+ var React16 = __toESM(require("react"));
2030
2088
  var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"));
2031
- var import_class_variance_authority15 = require("class-variance-authority");
2032
- var import_jsx_runtime18 = require("react/jsx-runtime");
2033
- var switchVariants = (0, import_class_variance_authority15.cva)([
2089
+ var import_class_variance_authority16 = require("class-variance-authority");
2090
+ var import_jsx_runtime19 = require("react/jsx-runtime");
2091
+ var switchVariants = (0, import_class_variance_authority16.cva)([
2034
2092
  [
2035
2093
  "peer",
2036
2094
  "inline-flex",
@@ -2060,15 +2118,15 @@ var switchVariants = (0, import_class_variance_authority15.cva)([
2060
2118
  "disabled:bg-grey-200"
2061
2119
  ]
2062
2120
  ]);
2063
- var Switch = React15.forwardRef((_a, ref) => {
2121
+ var Switch = React16.forwardRef((_a, ref) => {
2064
2122
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2065
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2123
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2066
2124
  SwitchPrimitives.Root,
2067
2125
  __spreadProps(__spreadValues({
2068
2126
  className: cn(switchVariants(), className)
2069
2127
  }, props), {
2070
2128
  ref,
2071
- children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2129
+ children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2072
2130
  SwitchPrimitives.Thumb,
2073
2131
  {
2074
2132
  className: cn([
@@ -2094,10 +2152,10 @@ var Switch = React15.forwardRef((_a, ref) => {
2094
2152
  Switch.displayName = SwitchPrimitives.Root.displayName;
2095
2153
 
2096
2154
  // src/components/Table/index.tsx
2097
- var React16 = __toESM(require("react"));
2098
- var import_class_variance_authority16 = require("class-variance-authority");
2099
- var import_jsx_runtime19 = require("react/jsx-runtime");
2100
- var tableBodyVariants = (0, import_class_variance_authority16.cva)("bg-background dark:bg-grey-900", {
2155
+ var React17 = __toESM(require("react"));
2156
+ var import_class_variance_authority17 = require("class-variance-authority");
2157
+ var import_jsx_runtime20 = require("react/jsx-runtime");
2158
+ var tableBodyVariants = (0, import_class_variance_authority17.cva)("bg-background dark:bg-grey-900", {
2101
2159
  variants: {
2102
2160
  variant: {
2103
2161
  zebra: [
@@ -2107,9 +2165,9 @@ var tableBodyVariants = (0, import_class_variance_authority16.cva)("bg-backgroun
2107
2165
  }
2108
2166
  }
2109
2167
  });
2110
- var Table = React16.forwardRef((_a, ref) => {
2168
+ var Table = React17.forwardRef((_a, ref) => {
2111
2169
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2112
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2170
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2113
2171
  "table",
2114
2172
  __spreadValues({
2115
2173
  ref,
@@ -2118,9 +2176,9 @@ var Table = React16.forwardRef((_a, ref) => {
2118
2176
  ) });
2119
2177
  });
2120
2178
  Table.displayName = "Table";
2121
- var TableHeader = React16.forwardRef((_a, ref) => {
2179
+ var TableHeader = React17.forwardRef((_a, ref) => {
2122
2180
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2123
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2181
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2124
2182
  "thead",
2125
2183
  __spreadValues({
2126
2184
  ref,
@@ -2132,9 +2190,9 @@ var TableHeader = React16.forwardRef((_a, ref) => {
2132
2190
  );
2133
2191
  });
2134
2192
  TableHeader.displayName = "TableHeader";
2135
- var TableHead = React16.forwardRef((_a, ref) => {
2193
+ var TableHead = React17.forwardRef((_a, ref) => {
2136
2194
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2137
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2195
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2138
2196
  "th",
2139
2197
  __spreadValues({
2140
2198
  ref,
@@ -2143,10 +2201,10 @@ var TableHead = React16.forwardRef((_a, ref) => {
2143
2201
  );
2144
2202
  });
2145
2203
  TableHead.displayName = "TableHead";
2146
- var TableBody = React16.forwardRef(
2204
+ var TableBody = React17.forwardRef(
2147
2205
  (_a, ref) => {
2148
2206
  var _b = _a, { className, variant } = _b, props = __objRest(_b, ["className", "variant"]);
2149
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2207
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2150
2208
  "tbody",
2151
2209
  __spreadValues({
2152
2210
  ref,
@@ -2156,9 +2214,9 @@ var TableBody = React16.forwardRef(
2156
2214
  }
2157
2215
  );
2158
2216
  TableBody.displayName = "TableBody";
2159
- var TableRow = React16.forwardRef((_a, ref) => {
2217
+ var TableRow = React17.forwardRef((_a, ref) => {
2160
2218
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2161
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2219
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2162
2220
  "tr",
2163
2221
  __spreadValues({
2164
2222
  ref,
@@ -2170,19 +2228,19 @@ var TableRow = React16.forwardRef((_a, ref) => {
2170
2228
  );
2171
2229
  });
2172
2230
  TableRow.displayName = "TableRow";
2173
- var TableCell = React16.forwardRef((_a, ref) => {
2231
+ var TableCell = React17.forwardRef((_a, ref) => {
2174
2232
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2175
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("td", __spreadValues({ ref, className: cn("p-4", className) }, props));
2233
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("td", __spreadValues({ ref, className: cn("p-4", className) }, props));
2176
2234
  });
2177
2235
  TableCell.displayName = "TableCell";
2178
- var TableCaption = React16.forwardRef((_a, ref) => {
2236
+ var TableCaption = React17.forwardRef((_a, ref) => {
2179
2237
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2180
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("caption", __spreadValues({ ref, className: cn("mt-4", className) }, props));
2238
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("caption", __spreadValues({ ref, className: cn("mt-4", className) }, props));
2181
2239
  });
2182
2240
  TableCaption.displayName = "TableCaption";
2183
- var TableFooter = React16.forwardRef((_a, ref) => {
2241
+ var TableFooter = React17.forwardRef((_a, ref) => {
2184
2242
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2185
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2243
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2186
2244
  "tfoot",
2187
2245
  __spreadValues({
2188
2246
  ref,
@@ -2193,11 +2251,11 @@ var TableFooter = React16.forwardRef((_a, ref) => {
2193
2251
  TableFooter.displayName = "TableFooter";
2194
2252
 
2195
2253
  // src/components/Tooltip/index.tsx
2196
- var React17 = __toESM(require("react"));
2254
+ var React18 = __toESM(require("react"));
2197
2255
  var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"));
2198
- var import_class_variance_authority17 = require("class-variance-authority");
2199
- var import_jsx_runtime20 = require("react/jsx-runtime");
2200
- var tooltipVariants = (0, import_class_variance_authority17.cva)([
2256
+ var import_class_variance_authority18 = require("class-variance-authority");
2257
+ var import_jsx_runtime21 = require("react/jsx-runtime");
2258
+ var tooltipVariants = (0, import_class_variance_authority18.cva)([
2201
2259
  [
2202
2260
  "fill-accent",
2203
2261
  "bg-accent",
@@ -2216,10 +2274,10 @@ var tooltipVariants = (0, import_class_variance_authority17.cva)([
2216
2274
  "dark:fill-accent-dark"
2217
2275
  ]
2218
2276
  ]);
2219
- var Tooltip = React17.forwardRef(({ children, side, content, sideOffset }, ref) => {
2220
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(TooltipPrimitive.Provider, { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(TooltipPrimitive.Root, { delayDuration: 100, children: [
2221
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(TooltipPrimitive.Trigger, { children }),
2222
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
2277
+ var Tooltip = React18.forwardRef(({ children, side, content, sideOffset }, ref) => {
2278
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(TooltipPrimitive.Provider, { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(TooltipPrimitive.Root, { delayDuration: 100, children: [
2279
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(TooltipPrimitive.Trigger, { children }),
2280
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
2223
2281
  TooltipPrimitive.Content,
2224
2282
  {
2225
2283
  side: side != null ? side : "top",
@@ -2228,7 +2286,7 @@ var Tooltip = React17.forwardRef(({ children, side, content, sideOffset }, ref)
2228
2286
  ref,
2229
2287
  children: [
2230
2288
  content,
2231
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(TooltipPrimitive.Arrow, { className: "fill-inherit" })
2289
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(TooltipPrimitive.Arrow, { className: "fill-inherit" })
2232
2290
  ]
2233
2291
  }
2234
2292
  )
@@ -2236,10 +2294,10 @@ var Tooltip = React17.forwardRef(({ children, side, content, sideOffset }, ref)
2236
2294
  });
2237
2295
 
2238
2296
  // src/components/WebsiteFooter/index.tsx
2239
- var import_class_variance_authority18 = require("class-variance-authority");
2240
- var import_react6 = __toESM(require("react"));
2241
- var import_jsx_runtime21 = require("react/jsx-runtime");
2242
- var websiteFooterVariants = (0, import_class_variance_authority18.cva)(
2297
+ var import_class_variance_authority19 = require("class-variance-authority");
2298
+ var import_react7 = __toESM(require("react"));
2299
+ var import_jsx_runtime22 = require("react/jsx-runtime");
2300
+ var websiteFooterVariants = (0, import_class_variance_authority19.cva)(
2243
2301
  ["flex", "flex-col", "w-full", "items-center", "px-16", "py-4"],
2244
2302
  {
2245
2303
  variants: {
@@ -2255,7 +2313,7 @@ var websiteFooterVariants = (0, import_class_variance_authority18.cva)(
2255
2313
  defaultVariants: { size: "standard" }
2256
2314
  }
2257
2315
  );
2258
- var footerStatementVariants = (0, import_class_variance_authority18.cva)(
2316
+ var footerStatementVariants = (0, import_class_variance_authority19.cva)(
2259
2317
  [
2260
2318
  "flex",
2261
2319
  "flex-col",
@@ -2275,7 +2333,7 @@ var footerStatementVariants = (0, import_class_variance_authority18.cva)(
2275
2333
  defaultVariants: { size: "standard" }
2276
2334
  }
2277
2335
  );
2278
- var linkRowVariants = (0, import_class_variance_authority18.cva)([
2336
+ var linkRowVariants = (0, import_class_variance_authority19.cva)([
2279
2337
  "flex",
2280
2338
  "w-full",
2281
2339
  "justify-between",
@@ -2283,7 +2341,7 @@ var linkRowVariants = (0, import_class_variance_authority18.cva)([
2283
2341
  "[&>*]:font-normal",
2284
2342
  "[&>*]:text-sm"
2285
2343
  ]);
2286
- var linkColumnVariants = (0, import_class_variance_authority18.cva)(
2344
+ var linkColumnVariants = (0, import_class_variance_authority19.cva)(
2287
2345
  [
2288
2346
  "flex",
2289
2347
  "flex-col",
@@ -2318,10 +2376,10 @@ var linkColumnVariants = (0, import_class_variance_authority18.cva)(
2318
2376
  }
2319
2377
  }
2320
2378
  );
2321
- var WebsiteFooter = import_react6.default.forwardRef(
2379
+ var WebsiteFooter = import_react7.default.forwardRef(
2322
2380
  (_a, ref) => {
2323
2381
  var _b = _a, { className, size } = _b, props = __objRest(_b, ["className", "size"]);
2324
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2382
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2325
2383
  "div",
2326
2384
  __spreadProps(__spreadValues({
2327
2385
  className: cn(websiteFooterVariants({ size }), className)
@@ -2331,10 +2389,10 @@ var WebsiteFooter = import_react6.default.forwardRef(
2331
2389
  );
2332
2390
  }
2333
2391
  );
2334
- var FooterStatement = import_react6.default.forwardRef(
2392
+ var FooterStatement = import_react7.default.forwardRef(
2335
2393
  (_a, ref) => {
2336
2394
  var _b = _a, { className, size } = _b, props = __objRest(_b, ["className", "size"]);
2337
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2395
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2338
2396
  "div",
2339
2397
  __spreadProps(__spreadValues({
2340
2398
  className: cn(footerStatementVariants({ size }), className)
@@ -2344,10 +2402,10 @@ var FooterStatement = import_react6.default.forwardRef(
2344
2402
  ) });
2345
2403
  }
2346
2404
  );
2347
- var LinkRow = import_react6.default.forwardRef(
2405
+ var LinkRow = import_react7.default.forwardRef(
2348
2406
  (_a, ref) => {
2349
2407
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2350
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2408
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2351
2409
  "div",
2352
2410
  __spreadProps(__spreadValues({
2353
2411
  className: cn(linkRowVariants(), className)
@@ -2357,17 +2415,17 @@ var LinkRow = import_react6.default.forwardRef(
2357
2415
  );
2358
2416
  }
2359
2417
  );
2360
- var LinkColumn = import_react6.default.forwardRef(
2418
+ var LinkColumn = import_react7.default.forwardRef(
2361
2419
  (_a, ref) => {
2362
2420
  var _b = _a, { className, size, title, children } = _b, props = __objRest(_b, ["className", "size", "title", "children"]);
2363
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
2421
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
2364
2422
  "div",
2365
2423
  __spreadProps(__spreadValues({
2366
2424
  className: cn(linkColumnVariants({ size }), className)
2367
2425
  }, props), {
2368
2426
  ref,
2369
2427
  children: [
2370
- title && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { children: title }),
2428
+ title && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { children: title }),
2371
2429
  children
2372
2430
  ]
2373
2431
  })
@@ -2376,7 +2434,7 @@ var LinkColumn = import_react6.default.forwardRef(
2376
2434
  );
2377
2435
 
2378
2436
  // src/index.ts
2379
- __reExport(src_exports, assets_exports, module.exports);
2437
+ __reExport(index_exports, assets_exports, module.exports);
2380
2438
  // Annotate the CommonJS export names for ESM import in node:
2381
2439
  0 && (module.exports = {
2382
2440
  Accordion,
@@ -2409,6 +2467,7 @@ __reExport(src_exports, assets_exports, module.exports);
2409
2467
  ModalTrigger,
2410
2468
  OpenSourceIcon,
2411
2469
  Pagination,
2470
+ Password,
2412
2471
  Popover,
2413
2472
  PopoverClose,
2414
2473
  PopoverContent,
@@ -2440,6 +2499,7 @@ __reExport(src_exports, assets_exports, module.exports);
2440
2499
  Tooltip,
2441
2500
  WebsiteFooter,
2442
2501
  buttonVariants,
2443
- colors
2502
+ colors,
2503
+ formVariants
2444
2504
  });
2445
2505
  //# sourceMappingURL=index.js.map