@nearform/quantum 1.1.1 → 1.2.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
@@ -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,7 +122,8 @@ __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
128
  module.exports = __toCommonJS(src_exports);
127
129
 
@@ -470,9 +472,9 @@ var colors_default = __spreadValues({
470
472
  }, colors);
471
473
 
472
474
  // src/components/Accordion/index.tsx
473
- var React = __toESM(require("react"));
474
475
  var AccordionPrimitive = __toESM(require("@radix-ui/react-accordion"));
475
476
  var import_class_variance_authority = require("class-variance-authority");
477
+ var React = __toESM(require("react"));
476
478
 
477
479
  // src/assets/index.ts
478
480
  var assets_exports = {};
@@ -537,7 +539,7 @@ var AccordionItem = React.forwardRef((_a, ref) => {
537
539
  AccordionPrimitive.Item,
538
540
  __spreadProps(__spreadValues({
539
541
  className: cn(
540
- "px-4 overflow-hidden first:mt-0 first:rounded-t last:rounded-b border-b border-grey-200 dark:border-grey-700 last:border-0",
542
+ "overflow-hidden first:mt-0 first:rounded-t last:rounded-b border-b border-grey-200 dark:border-grey-700 last:border-0",
541
543
  className
542
544
  )
543
545
  }, props), {
@@ -552,7 +554,7 @@ var AccordionHeader = React.forwardRef((_a, ref) => {
552
554
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
553
555
  AccordionPrimitive.Header,
554
556
  __spreadProps(__spreadValues({
555
- className: cn("flex font-semibold py-4", className)
557
+ className: cn("flex font-semibold", className)
556
558
  }, props), {
557
559
  ref,
558
560
  children
@@ -566,7 +568,7 @@ var AccordionTrigger = React.forwardRef((_a, ref) => {
566
568
  AccordionPrimitive.Trigger,
567
569
  __spreadProps(__spreadValues({
568
570
  className: cn(
569
- "dark:bg-grey-900 dark:text-white group flex flex-1 cursor-default items-center justify-between bg-white leading-none",
571
+ "px-4 py-4 dark:bg-grey-900 dark:text-white group flex flex-1 cursor-default items-center justify-between bg-white leading-none",
570
572
  className
571
573
  )
572
574
  }, props), {
@@ -596,7 +598,7 @@ var AccordionContent = React.forwardRef((_a, ref) => {
596
598
  )
597
599
  }, props), {
598
600
  ref,
599
- children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "pb-3", children })
601
+ children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "pb-3 px-4", children })
600
602
  })
601
603
  );
602
604
  });
@@ -1291,11 +1293,12 @@ var inputVariants = (0, import_class_variance_authority9.cva)(
1291
1293
  }
1292
1294
  }
1293
1295
  );
1294
- var convertTypeToComponent = {
1295
- left: {
1296
- text: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(assets_exports.BsPersonFill, {}),
1296
+ var convertTypeToLeftComponent = (type) => {
1297
+ var _a;
1298
+ const mapping = {
1297
1299
  search: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(assets_exports.BsSearch, {})
1298
- }
1300
+ };
1301
+ return (_a = mapping[type]) != null ? _a : null;
1299
1302
  };
1300
1303
  var Input = import_react3.default.forwardRef(
1301
1304
  (_a, ref) => {
@@ -1318,14 +1321,14 @@ var Input = import_react3.default.forwardRef(
1318
1321
  "rightSideChild",
1319
1322
  "onClear"
1320
1323
  ]);
1321
- const leftSideComponent = leftSideChild != null ? leftSideChild : convertTypeToComponent.left[`${type}`];
1324
+ const leftSideComponent = leftSideChild != null ? leftSideChild : convertTypeToLeftComponent(type);
1322
1325
  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 }),
1326
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("label", { className: cn(formVariants({ variant }), formClassName), children: [
1327
+ leftSideComponent && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: cn(leftSideVariants(), leftSideClassName), children: leftSideComponent }),
1325
1328
  /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1326
1329
  "input",
1327
1330
  __spreadValues({
1328
- type: "text",
1331
+ type,
1329
1332
  className: cn(inputVariants({ variant }), className),
1330
1333
  ref
1331
1334
  }, props)
@@ -1668,14 +1671,72 @@ var Pagination = import_react5.default.forwardRef(
1668
1671
  }
1669
1672
  );
1670
1673
 
1674
+ // src/components/Password/index.tsx
1675
+ var import_react6 = __toESM(require("react"));
1676
+ var import_class_variance_authority12 = require("class-variance-authority");
1677
+ var import_jsx_runtime14 = require("react/jsx-runtime");
1678
+ var toggleMaskVariants = (0, import_class_variance_authority12.cva)(["flex", "self-center text-inherit"]);
1679
+ var passwordVariants = (0, import_class_variance_authority12.cva)(
1680
+ ["flex", "flex-grow", "items-center", "outline-none", "bg-transparent"],
1681
+ {
1682
+ variants: {
1683
+ variant: {
1684
+ primary: ["text-foreground", "dark:text-foreground-dark"],
1685
+ error: ["text-feedback-red"],
1686
+ success: ["text-green-700"]
1687
+ }
1688
+ },
1689
+ defaultVariants: {
1690
+ variant: "primary"
1691
+ }
1692
+ }
1693
+ );
1694
+ var Password = import_react6.default.forwardRef(
1695
+ (_a, ref) => {
1696
+ var _b = _a, {
1697
+ className,
1698
+ formClassName,
1699
+ variant = "primary",
1700
+ toggleMask = true
1701
+ } = _b, props = __objRest(_b, [
1702
+ "className",
1703
+ "formClassName",
1704
+ "variant",
1705
+ "toggleMask"
1706
+ ]);
1707
+ const [isMaskOn, setIsMaskOn] = (0, import_react6.useState)(true);
1708
+ const onToggleMask = () => setIsMaskOn((isMaskOn2) => !isMaskOn2);
1709
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("label", { className: cn(formVariants({ variant }), formClassName), children: [
1710
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1711
+ "input",
1712
+ __spreadValues({
1713
+ type: isMaskOn ? "password" : "text",
1714
+ className: cn(passwordVariants({ variant }), className),
1715
+ ref
1716
+ }, props)
1717
+ ),
1718
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "input-right-side" }),
1719
+ toggleMask && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1720
+ "button",
1721
+ {
1722
+ type: "button",
1723
+ onClick: onToggleMask,
1724
+ className: toggleMaskVariants(),
1725
+ children: isMaskOn ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(assets_exports.BsEye, {}) : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(assets_exports.BsEyeSlash, {})
1726
+ }
1727
+ )
1728
+ ] });
1729
+ }
1730
+ );
1731
+
1671
1732
  // src/components/Popover/index.tsx
1672
- var React11 = __toESM(require("react"));
1733
+ var React12 = __toESM(require("react"));
1673
1734
  var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
1674
- var import_class_variance_authority12 = require("class-variance-authority");
1735
+ var import_class_variance_authority13 = require("class-variance-authority");
1675
1736
  var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"));
1676
1737
  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)([
1738
+ var import_jsx_runtime15 = require("react/jsx-runtime");
1739
+ var popoverVariants = (0, import_class_variance_authority13.cva)([
1679
1740
  "z-50",
1680
1741
  "border border-2 border-border-subtle dark:border-border-dark",
1681
1742
  "rounded-lg",
@@ -1689,10 +1750,10 @@ var popoverVariants = (0, import_class_variance_authority12.cva)([
1689
1750
  var Popover = PopoverPrimitive.Root;
1690
1751
  var PopoverTrigger = PopoverPrimitive.Trigger;
1691
1752
  var PopoverClose = PopoverPrimitive.Close;
1692
- var PopoverContent = React11.forwardRef(
1753
+ var PopoverContent = React12.forwardRef(
1693
1754
  (_a, ref) => {
1694
1755
  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)(
1756
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1696
1757
  PopoverPrimitive.Content,
1697
1758
  __spreadProps(__spreadValues({
1698
1759
  ref,
@@ -1710,22 +1771,22 @@ var PopoverScrollArea = ({
1710
1771
  className,
1711
1772
  children
1712
1773
  }) => {
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)(
1774
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(ScrollArea.Root, { className: cn("w-full h-full", className), type: "auto", children: [
1775
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ScrollArea.Viewport, { className: "w-full h-full", children }),
1776
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1716
1777
  ScrollArea.Scrollbar,
1717
1778
  {
1718
1779
  orientation: "vertical",
1719
1780
  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" })
1781
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ScrollArea.Thumb, { className: "bg-grey-200 w-2 rounded-lg" })
1721
1782
  }
1722
1783
  )
1723
1784
  ] });
1724
1785
  };
1725
- var PopoverSeparator = React11.forwardRef(
1786
+ var PopoverSeparator = React12.forwardRef(
1726
1787
  (_a, ref) => {
1727
1788
  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)(
1789
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "w-full", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1729
1790
  SeparatorPrimitive.Root,
1730
1791
  __spreadValues({
1731
1792
  ref,
@@ -1746,28 +1807,28 @@ var PopoverHeader = ({
1746
1807
  className,
1747
1808
  children
1748
1809
  }) => {
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 })
1810
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_jsx_runtime15.Fragment, { children: [
1811
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: cn("w-full pb-4", className), children }),
1812
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(PopoverSeparator, { fullLength: true })
1752
1813
  ] });
1753
1814
  };
1754
1815
  var PopoverFooter = ({
1755
1816
  className,
1756
1817
  children
1757
1818
  }) => {
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 })
1819
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "w-full -mb-3", children: [
1820
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(PopoverSeparator, { fullLength: true }),
1821
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: cn("py-2", className), children })
1761
1822
  ] });
1762
1823
  };
1763
1824
 
1764
1825
  // src/components/Radio/RadioGroup.tsx
1765
- var React12 = __toESM(require("react"));
1826
+ var React13 = __toESM(require("react"));
1766
1827
  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) => {
1828
+ var import_jsx_runtime16 = require("react/jsx-runtime");
1829
+ var RadioGroup = React13.forwardRef((_a, ref) => {
1769
1830
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1770
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1831
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1771
1832
  RadioGroupPrimitive.Root,
1772
1833
  __spreadProps(__spreadValues({
1773
1834
  className: cn("flex flex-col space-y-3", className)
@@ -1779,11 +1840,11 @@ var RadioGroup = React12.forwardRef((_a, ref) => {
1779
1840
  RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
1780
1841
 
1781
1842
  // src/components/Radio/RadioGroupItem.tsx
1782
- var React13 = __toESM(require("react"));
1843
+ var React14 = __toESM(require("react"));
1783
1844
  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)([
1845
+ var import_class_variance_authority14 = require("class-variance-authority");
1846
+ var import_jsx_runtime17 = require("react/jsx-runtime");
1847
+ var radioVariant = (0, import_class_variance_authority14.cva)([
1787
1848
  [
1788
1849
  "h-5 w-5",
1789
1850
  "rounded-full",
@@ -1800,15 +1861,15 @@ var radioVariant = (0, import_class_variance_authority13.cva)([
1800
1861
  "dark:data-[state=checked]:bg-border-dark"
1801
1862
  ]
1802
1863
  ]);
1803
- var RadioGroupItem = React13.forwardRef((_a, ref) => {
1864
+ var RadioGroupItem = React14.forwardRef((_a, ref) => {
1804
1865
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1805
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1866
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1806
1867
  RadioGroupPrimitive2.Item,
1807
1868
  __spreadProps(__spreadValues({
1808
1869
  ref,
1809
1870
  className: cn(radioVariant(), className)
1810
1871
  }, props), {
1811
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(RadioGroupPrimitive2.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1872
+ children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(RadioGroupPrimitive2.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1812
1873
  assets_exports.BsCircleFill,
1813
1874
  {
1814
1875
  size: "8",
@@ -1821,16 +1882,16 @@ var RadioGroupItem = React13.forwardRef((_a, ref) => {
1821
1882
  RadioGroupItem.displayName = RadioGroupPrimitive2.Item.displayName;
1822
1883
 
1823
1884
  // src/components/Select/index.tsx
1824
- var React14 = __toESM(require("react"));
1885
+ var React15 = __toESM(require("react"));
1825
1886
  var SelectPrimitive = __toESM(require("@radix-ui/react-select"));
1826
- var import_class_variance_authority14 = require("class-variance-authority");
1887
+ var import_class_variance_authority15 = require("class-variance-authority");
1827
1888
  var ScrollArea2 = __toESM(require("@radix-ui/react-scroll-area"));
1828
- var import_jsx_runtime17 = require("react/jsx-runtime");
1889
+ var import_jsx_runtime18 = require("react/jsx-runtime");
1829
1890
  var Select = SelectPrimitive.Root;
1830
1891
  var SelectGroup = SelectPrimitive.Group;
1831
1892
  var SelectValue = SelectPrimitive.Value;
1832
1893
  var SelectPortal = SelectPrimitive.Portal;
1833
- var triggerVariants = (0, import_class_variance_authority14.cva)(
1894
+ var triggerVariants = (0, import_class_variance_authority15.cva)(
1834
1895
  [
1835
1896
  [
1836
1897
  "flex",
@@ -1892,9 +1953,9 @@ var triggerVariants = (0, import_class_variance_authority14.cva)(
1892
1953
  }
1893
1954
  }
1894
1955
  );
1895
- var SelectTrigger = React14.forwardRef((_a, ref) => {
1956
+ var SelectTrigger = React15.forwardRef((_a, ref) => {
1896
1957
  var _b = _a, { variant, size, className, children } = _b, props = __objRest(_b, ["variant", "size", "className", "children"]);
1897
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
1958
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1898
1959
  SelectPrimitive.Trigger,
1899
1960
  __spreadProps(__spreadValues({
1900
1961
  ref,
@@ -1902,13 +1963,13 @@ var SelectTrigger = React14.forwardRef((_a, ref) => {
1902
1963
  }, props), {
1903
1964
  children: [
1904
1965
  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" }) })
1966
+ /* @__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
1967
  ]
1907
1968
  })
1908
1969
  );
1909
1970
  });
1910
1971
  SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
1911
- var contentVariants = (0, import_class_variance_authority14.cva)([
1972
+ var contentVariants = (0, import_class_variance_authority15.cva)([
1912
1973
  "relative",
1913
1974
  "z-50",
1914
1975
  "min-w-[8rem]",
@@ -1926,9 +1987,9 @@ var contentVariants = (0, import_class_variance_authority14.cva)([
1926
1987
  "dark:border-border-subtle-dark",
1927
1988
  "dark:text-foreground-dark"
1928
1989
  ]);
1929
- var SelectContent = React14.forwardRef((_a, ref) => {
1990
+ var SelectContent = React15.forwardRef((_a, ref) => {
1930
1991
  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)(
1992
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1932
1993
  SelectPrimitive.Content,
1933
1994
  __spreadProps(__spreadValues({
1934
1995
  ref,
@@ -1939,8 +2000,8 @@ var SelectContent = React14.forwardRef((_a, ref) => {
1939
2000
  ),
1940
2001
  position
1941
2002
  }, 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)(
2003
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(ScrollArea2.Root, { className: "w-full h-full", type: "auto", children: [
2004
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1944
2005
  SelectPrimitive.Viewport,
1945
2006
  {
1946
2007
  asChild: true,
@@ -1948,7 +2009,7 @@ var SelectContent = React14.forwardRef((_a, ref) => {
1948
2009
  "p-1",
1949
2010
  position === "popper" && "max-h-[var(--radix-select-content-available-height)] w-full min-w-[var(--radix-select-trigger-width)]"
1950
2011
  ),
1951
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2012
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1952
2013
  ScrollArea2.Viewport,
1953
2014
  {
1954
2015
  className: "w-full h-full",
@@ -1958,15 +2019,15 @@ var SelectContent = React14.forwardRef((_a, ref) => {
1958
2019
  )
1959
2020
  }
1960
2021
  ),
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" }) })
2022
+ /* @__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
2023
  ] })
1963
2024
  })
1964
2025
  ) });
1965
2026
  });
1966
2027
  SelectContent.displayName = SelectPrimitive.Content.displayName;
1967
- var SelectLabel = React14.forwardRef((_a, ref) => {
2028
+ var SelectLabel = React15.forwardRef((_a, ref) => {
1968
2029
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1969
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2030
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1970
2031
  SelectPrimitive.Label,
1971
2032
  __spreadValues({
1972
2033
  ref,
@@ -1975,7 +2036,7 @@ var SelectLabel = React14.forwardRef((_a, ref) => {
1975
2036
  );
1976
2037
  });
1977
2038
  SelectLabel.displayName = SelectPrimitive.Label.displayName;
1978
- var itemVariants = (0, import_class_variance_authority14.cva)([
2039
+ var itemVariants = (0, import_class_variance_authority15.cva)([
1979
2040
  [
1980
2041
  "relative",
1981
2042
  "flex",
@@ -1997,22 +2058,22 @@ var itemVariants = (0, import_class_variance_authority14.cva)([
1997
2058
  "dark:hover:bg-background-alt-dark"
1998
2059
  ]
1999
2060
  ]);
2000
- var SelectItem = React14.forwardRef((_a, ref) => {
2061
+ var SelectItem = React15.forwardRef((_a, ref) => {
2001
2062
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
2002
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2063
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2003
2064
  SelectPrimitive.Item,
2004
2065
  __spreadProps(__spreadValues({
2005
2066
  ref,
2006
2067
  className: cn(itemVariants(), className)
2007
2068
  }, props), {
2008
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(SelectPrimitive.ItemText, { children })
2069
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SelectPrimitive.ItemText, { children })
2009
2070
  })
2010
2071
  );
2011
2072
  });
2012
2073
  SelectItem.displayName = SelectPrimitive.Item.displayName;
2013
- var SelectSeparator = React14.forwardRef((_a, ref) => {
2074
+ var SelectSeparator = React15.forwardRef((_a, ref) => {
2014
2075
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2015
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2076
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2016
2077
  SelectPrimitive.Separator,
2017
2078
  __spreadValues({
2018
2079
  ref,
@@ -2026,11 +2087,11 @@ var SelectSeparator = React14.forwardRef((_a, ref) => {
2026
2087
  SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
2027
2088
 
2028
2089
  // src/components/Switch/index.tsx
2029
- var React15 = __toESM(require("react"));
2090
+ var React16 = __toESM(require("react"));
2030
2091
  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)([
2092
+ var import_class_variance_authority16 = require("class-variance-authority");
2093
+ var import_jsx_runtime19 = require("react/jsx-runtime");
2094
+ var switchVariants = (0, import_class_variance_authority16.cva)([
2034
2095
  [
2035
2096
  "peer",
2036
2097
  "inline-flex",
@@ -2060,15 +2121,15 @@ var switchVariants = (0, import_class_variance_authority15.cva)([
2060
2121
  "disabled:bg-grey-200"
2061
2122
  ]
2062
2123
  ]);
2063
- var Switch = React15.forwardRef((_a, ref) => {
2124
+ var Switch = React16.forwardRef((_a, ref) => {
2064
2125
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2065
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2126
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2066
2127
  SwitchPrimitives.Root,
2067
2128
  __spreadProps(__spreadValues({
2068
2129
  className: cn(switchVariants(), className)
2069
2130
  }, props), {
2070
2131
  ref,
2071
- children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2132
+ children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2072
2133
  SwitchPrimitives.Thumb,
2073
2134
  {
2074
2135
  className: cn([
@@ -2094,10 +2155,10 @@ var Switch = React15.forwardRef((_a, ref) => {
2094
2155
  Switch.displayName = SwitchPrimitives.Root.displayName;
2095
2156
 
2096
2157
  // 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", {
2158
+ var React17 = __toESM(require("react"));
2159
+ var import_class_variance_authority17 = require("class-variance-authority");
2160
+ var import_jsx_runtime20 = require("react/jsx-runtime");
2161
+ var tableBodyVariants = (0, import_class_variance_authority17.cva)("bg-background dark:bg-grey-900", {
2101
2162
  variants: {
2102
2163
  variant: {
2103
2164
  zebra: [
@@ -2107,9 +2168,9 @@ var tableBodyVariants = (0, import_class_variance_authority16.cva)("bg-backgroun
2107
2168
  }
2108
2169
  }
2109
2170
  });
2110
- var Table = React16.forwardRef((_a, ref) => {
2171
+ var Table = React17.forwardRef((_a, ref) => {
2111
2172
  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)(
2173
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2113
2174
  "table",
2114
2175
  __spreadValues({
2115
2176
  ref,
@@ -2118,9 +2179,9 @@ var Table = React16.forwardRef((_a, ref) => {
2118
2179
  ) });
2119
2180
  });
2120
2181
  Table.displayName = "Table";
2121
- var TableHeader = React16.forwardRef((_a, ref) => {
2182
+ var TableHeader = React17.forwardRef((_a, ref) => {
2122
2183
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2123
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2184
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2124
2185
  "thead",
2125
2186
  __spreadValues({
2126
2187
  ref,
@@ -2132,9 +2193,9 @@ var TableHeader = React16.forwardRef((_a, ref) => {
2132
2193
  );
2133
2194
  });
2134
2195
  TableHeader.displayName = "TableHeader";
2135
- var TableHead = React16.forwardRef((_a, ref) => {
2196
+ var TableHead = React17.forwardRef((_a, ref) => {
2136
2197
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2137
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2198
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2138
2199
  "th",
2139
2200
  __spreadValues({
2140
2201
  ref,
@@ -2143,10 +2204,10 @@ var TableHead = React16.forwardRef((_a, ref) => {
2143
2204
  );
2144
2205
  });
2145
2206
  TableHead.displayName = "TableHead";
2146
- var TableBody = React16.forwardRef(
2207
+ var TableBody = React17.forwardRef(
2147
2208
  (_a, ref) => {
2148
2209
  var _b = _a, { className, variant } = _b, props = __objRest(_b, ["className", "variant"]);
2149
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2210
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2150
2211
  "tbody",
2151
2212
  __spreadValues({
2152
2213
  ref,
@@ -2156,9 +2217,9 @@ var TableBody = React16.forwardRef(
2156
2217
  }
2157
2218
  );
2158
2219
  TableBody.displayName = "TableBody";
2159
- var TableRow = React16.forwardRef((_a, ref) => {
2220
+ var TableRow = React17.forwardRef((_a, ref) => {
2160
2221
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2161
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2222
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2162
2223
  "tr",
2163
2224
  __spreadValues({
2164
2225
  ref,
@@ -2170,19 +2231,19 @@ var TableRow = React16.forwardRef((_a, ref) => {
2170
2231
  );
2171
2232
  });
2172
2233
  TableRow.displayName = "TableRow";
2173
- var TableCell = React16.forwardRef((_a, ref) => {
2234
+ var TableCell = React17.forwardRef((_a, ref) => {
2174
2235
  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));
2236
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("td", __spreadValues({ ref, className: cn("p-4", className) }, props));
2176
2237
  });
2177
2238
  TableCell.displayName = "TableCell";
2178
- var TableCaption = React16.forwardRef((_a, ref) => {
2239
+ var TableCaption = React17.forwardRef((_a, ref) => {
2179
2240
  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));
2241
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("caption", __spreadValues({ ref, className: cn("mt-4", className) }, props));
2181
2242
  });
2182
2243
  TableCaption.displayName = "TableCaption";
2183
- var TableFooter = React16.forwardRef((_a, ref) => {
2244
+ var TableFooter = React17.forwardRef((_a, ref) => {
2184
2245
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2185
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2246
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2186
2247
  "tfoot",
2187
2248
  __spreadValues({
2188
2249
  ref,
@@ -2193,11 +2254,11 @@ var TableFooter = React16.forwardRef((_a, ref) => {
2193
2254
  TableFooter.displayName = "TableFooter";
2194
2255
 
2195
2256
  // src/components/Tooltip/index.tsx
2196
- var React17 = __toESM(require("react"));
2257
+ var React18 = __toESM(require("react"));
2197
2258
  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)([
2259
+ var import_class_variance_authority18 = require("class-variance-authority");
2260
+ var import_jsx_runtime21 = require("react/jsx-runtime");
2261
+ var tooltipVariants = (0, import_class_variance_authority18.cva)([
2201
2262
  [
2202
2263
  "fill-accent",
2203
2264
  "bg-accent",
@@ -2216,10 +2277,10 @@ var tooltipVariants = (0, import_class_variance_authority17.cva)([
2216
2277
  "dark:fill-accent-dark"
2217
2278
  ]
2218
2279
  ]);
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)(
2280
+ var Tooltip = React18.forwardRef(({ children, side, content, sideOffset }, ref) => {
2281
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(TooltipPrimitive.Provider, { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(TooltipPrimitive.Root, { delayDuration: 100, children: [
2282
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(TooltipPrimitive.Trigger, { children }),
2283
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
2223
2284
  TooltipPrimitive.Content,
2224
2285
  {
2225
2286
  side: side != null ? side : "top",
@@ -2228,7 +2289,7 @@ var Tooltip = React17.forwardRef(({ children, side, content, sideOffset }, ref)
2228
2289
  ref,
2229
2290
  children: [
2230
2291
  content,
2231
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(TooltipPrimitive.Arrow, { className: "fill-inherit" })
2292
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(TooltipPrimitive.Arrow, { className: "fill-inherit" })
2232
2293
  ]
2233
2294
  }
2234
2295
  )
@@ -2236,10 +2297,10 @@ var Tooltip = React17.forwardRef(({ children, side, content, sideOffset }, ref)
2236
2297
  });
2237
2298
 
2238
2299
  // 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)(
2300
+ var import_class_variance_authority19 = require("class-variance-authority");
2301
+ var import_react7 = __toESM(require("react"));
2302
+ var import_jsx_runtime22 = require("react/jsx-runtime");
2303
+ var websiteFooterVariants = (0, import_class_variance_authority19.cva)(
2243
2304
  ["flex", "flex-col", "w-full", "items-center", "px-16", "py-4"],
2244
2305
  {
2245
2306
  variants: {
@@ -2255,7 +2316,7 @@ var websiteFooterVariants = (0, import_class_variance_authority18.cva)(
2255
2316
  defaultVariants: { size: "standard" }
2256
2317
  }
2257
2318
  );
2258
- var footerStatementVariants = (0, import_class_variance_authority18.cva)(
2319
+ var footerStatementVariants = (0, import_class_variance_authority19.cva)(
2259
2320
  [
2260
2321
  "flex",
2261
2322
  "flex-col",
@@ -2275,7 +2336,7 @@ var footerStatementVariants = (0, import_class_variance_authority18.cva)(
2275
2336
  defaultVariants: { size: "standard" }
2276
2337
  }
2277
2338
  );
2278
- var linkRowVariants = (0, import_class_variance_authority18.cva)([
2339
+ var linkRowVariants = (0, import_class_variance_authority19.cva)([
2279
2340
  "flex",
2280
2341
  "w-full",
2281
2342
  "justify-between",
@@ -2283,7 +2344,7 @@ var linkRowVariants = (0, import_class_variance_authority18.cva)([
2283
2344
  "[&>*]:font-normal",
2284
2345
  "[&>*]:text-sm"
2285
2346
  ]);
2286
- var linkColumnVariants = (0, import_class_variance_authority18.cva)(
2347
+ var linkColumnVariants = (0, import_class_variance_authority19.cva)(
2287
2348
  [
2288
2349
  "flex",
2289
2350
  "flex-col",
@@ -2318,10 +2379,10 @@ var linkColumnVariants = (0, import_class_variance_authority18.cva)(
2318
2379
  }
2319
2380
  }
2320
2381
  );
2321
- var WebsiteFooter = import_react6.default.forwardRef(
2382
+ var WebsiteFooter = import_react7.default.forwardRef(
2322
2383
  (_a, ref) => {
2323
2384
  var _b = _a, { className, size } = _b, props = __objRest(_b, ["className", "size"]);
2324
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2385
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2325
2386
  "div",
2326
2387
  __spreadProps(__spreadValues({
2327
2388
  className: cn(websiteFooterVariants({ size }), className)
@@ -2331,10 +2392,10 @@ var WebsiteFooter = import_react6.default.forwardRef(
2331
2392
  );
2332
2393
  }
2333
2394
  );
2334
- var FooterStatement = import_react6.default.forwardRef(
2395
+ var FooterStatement = import_react7.default.forwardRef(
2335
2396
  (_a, ref) => {
2336
2397
  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)(
2398
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2338
2399
  "div",
2339
2400
  __spreadProps(__spreadValues({
2340
2401
  className: cn(footerStatementVariants({ size }), className)
@@ -2344,10 +2405,10 @@ var FooterStatement = import_react6.default.forwardRef(
2344
2405
  ) });
2345
2406
  }
2346
2407
  );
2347
- var LinkRow = import_react6.default.forwardRef(
2408
+ var LinkRow = import_react7.default.forwardRef(
2348
2409
  (_a, ref) => {
2349
2410
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2350
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2411
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2351
2412
  "div",
2352
2413
  __spreadProps(__spreadValues({
2353
2414
  className: cn(linkRowVariants(), className)
@@ -2357,17 +2418,17 @@ var LinkRow = import_react6.default.forwardRef(
2357
2418
  );
2358
2419
  }
2359
2420
  );
2360
- var LinkColumn = import_react6.default.forwardRef(
2421
+ var LinkColumn = import_react7.default.forwardRef(
2361
2422
  (_a, ref) => {
2362
2423
  var _b = _a, { className, size, title, children } = _b, props = __objRest(_b, ["className", "size", "title", "children"]);
2363
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
2424
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
2364
2425
  "div",
2365
2426
  __spreadProps(__spreadValues({
2366
2427
  className: cn(linkColumnVariants({ size }), className)
2367
2428
  }, props), {
2368
2429
  ref,
2369
2430
  children: [
2370
- title && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { children: title }),
2431
+ title && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { children: title }),
2371
2432
  children
2372
2433
  ]
2373
2434
  })
@@ -2409,6 +2470,7 @@ __reExport(src_exports, assets_exports, module.exports);
2409
2470
  ModalTrigger,
2410
2471
  OpenSourceIcon,
2411
2472
  Pagination,
2473
+ Password,
2412
2474
  Popover,
2413
2475
  PopoverClose,
2414
2476
  PopoverContent,
@@ -2440,6 +2502,7 @@ __reExport(src_exports, assets_exports, module.exports);
2440
2502
  Tooltip,
2441
2503
  WebsiteFooter,
2442
2504
  buttonVariants,
2443
- colors
2505
+ colors,
2506
+ formVariants
2444
2507
  });
2445
2508
  //# sourceMappingURL=index.js.map