@szum-tech/design-system 2.0.3 → 2.1.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.
Files changed (116) hide show
  1. package/dist/chunk-463KEXY6.cjs +79 -0
  2. package/dist/chunk-4YZSPNLW.cjs +42 -0
  3. package/dist/chunk-5EN2HNFU.js +50 -0
  4. package/dist/chunk-5ENMEB5L.cjs +341 -0
  5. package/dist/chunk-AO4TMCYJ.js +88 -0
  6. package/dist/chunk-C5YRMEKV.js +319 -0
  7. package/dist/chunk-H2BWO3SI.cjs +0 -1
  8. package/dist/chunk-HFHADY43.js +36 -0
  9. package/dist/chunk-HIWVHD4V.js +56 -0
  10. package/dist/chunk-HXC3EALP.js +39 -0
  11. package/dist/chunk-IFBQNWVG.js +70 -0
  12. package/dist/chunk-INJBKPIE.js +88 -0
  13. package/dist/chunk-J264N6AZ.js +22 -0
  14. package/dist/chunk-J56UDYA3.js +70 -0
  15. package/dist/chunk-KPB3CBHE.cjs +40 -0
  16. package/dist/chunk-LI7IHIOM.cjs +30 -0
  17. package/dist/chunk-LND2W67K.cjs +17 -0
  18. package/dist/chunk-N7DXGCBJ.cjs +30 -0
  19. package/dist/chunk-PB3EGVTV.cjs +116 -0
  20. package/dist/chunk-QRSQCHBO.cjs +59 -0
  21. package/dist/chunk-RF5YR553.cjs +24 -0
  22. package/dist/chunk-TD2KDWNP.js +57 -0
  23. package/dist/chunk-TSN5DAKH.cjs +99 -0
  24. package/dist/chunk-US32J7DK.js +15 -0
  25. package/dist/chunk-UZBZFCWX.js +28 -0
  26. package/dist/chunk-V4POHGAW.cjs +60 -0
  27. package/dist/chunk-VFRIU5CV.cjs +16 -0
  28. package/dist/chunk-VQMM75HD.cjs +66 -0
  29. package/dist/chunk-WTVBTZ3P.js +29 -0
  30. package/dist/chunk-XGA2F5GG.cjs +72 -0
  31. package/dist/chunk-XPM62WMM.js +23 -0
  32. package/dist/chunk-YHU2OW52.js +14 -0
  33. package/dist/chunk-YXTTED5V.cjs +31 -0
  34. package/dist/chunk-ZD2QRAOX.js +0 -1
  35. package/dist/components/alert-dialog/index.cjs +43 -0
  36. package/dist/components/alert-dialog/index.d.cts +32 -0
  37. package/dist/components/alert-dialog/index.d.ts +32 -0
  38. package/dist/components/alert-dialog/index.js +2 -0
  39. package/dist/components/avatar/index.cjs +19 -0
  40. package/dist/components/avatar/index.d.cts +28 -0
  41. package/dist/components/avatar/index.d.ts +28 -0
  42. package/dist/components/avatar/index.js +2 -0
  43. package/dist/components/button/index.cjs +11 -0
  44. package/dist/components/button/index.d.cts +64 -0
  45. package/dist/components/button/index.d.ts +64 -0
  46. package/dist/components/button/index.js +2 -0
  47. package/dist/components/card/index.cjs +30 -0
  48. package/dist/components/card/index.d.cts +22 -0
  49. package/dist/components/card/index.d.ts +22 -0
  50. package/dist/components/card/index.js +1 -0
  51. package/dist/components/dialog/index.cjs +38 -0
  52. package/dist/components/dialog/index.d.cts +40 -0
  53. package/dist/components/dialog/index.d.ts +40 -0
  54. package/dist/components/dialog/index.js +1 -0
  55. package/dist/components/form/index.cjs +50 -0
  56. package/dist/components/form/index.d.cts +32 -0
  57. package/dist/components/form/index.d.ts +32 -0
  58. package/dist/components/form/index.js +17 -0
  59. package/dist/components/header/index.cjs +10 -0
  60. package/dist/components/header/index.d.cts +9 -0
  61. package/dist/components/header/index.d.ts +9 -0
  62. package/dist/components/header/index.js +1 -0
  63. package/dist/components/helper-text/index.cjs +10 -0
  64. package/dist/components/helper-text/index.d.cts +18 -0
  65. package/dist/components/helper-text/index.d.ts +18 -0
  66. package/dist/components/helper-text/index.js +1 -0
  67. package/dist/components/index.cjs +230 -0
  68. package/dist/components/index.d.cts +22 -0
  69. package/dist/components/index.d.ts +22 -0
  70. package/dist/components/index.js +17 -0
  71. package/dist/components/input/index.cjs +11 -0
  72. package/dist/components/input/index.d.cts +11 -0
  73. package/dist/components/input/index.d.ts +11 -0
  74. package/dist/components/input/index.js +2 -0
  75. package/dist/components/label/index.cjs +10 -0
  76. package/dist/components/label/index.d.cts +8 -0
  77. package/dist/components/label/index.d.ts +8 -0
  78. package/dist/components/label/index.js +1 -0
  79. package/dist/components/select/index.cjs +14 -0
  80. package/dist/components/select/index.d.cts +15 -0
  81. package/dist/components/select/index.d.ts +15 -0
  82. package/dist/components/select/index.js +1 -0
  83. package/dist/components/separator/index.cjs +11 -0
  84. package/dist/components/separator/index.d.cts +8 -0
  85. package/dist/components/separator/index.d.ts +8 -0
  86. package/dist/components/separator/index.js +2 -0
  87. package/dist/components/sheet/index.cjs +38 -0
  88. package/dist/components/sheet/index.d.cts +40 -0
  89. package/dist/components/sheet/index.d.ts +40 -0
  90. package/dist/components/sheet/index.js +1 -0
  91. package/dist/components/textarea/index.cjs +10 -0
  92. package/dist/components/textarea/index.d.cts +9 -0
  93. package/dist/components/textarea/index.d.ts +9 -0
  94. package/dist/components/textarea/index.js +1 -0
  95. package/dist/components/tooltip/index.cjs +14 -0
  96. package/dist/components/tooltip/index.d.cts +20 -0
  97. package/dist/components/tooltip/index.d.ts +20 -0
  98. package/dist/components/tooltip/index.js +1 -0
  99. package/dist/icons/index.cjs +22 -0
  100. package/dist/icons/index.js +1 -0
  101. package/dist/{utils.cjs → utils/index.cjs} +1 -1
  102. package/dist/utils/index.js +1 -0
  103. package/package.json +50 -38
  104. package/dist/chunk-EKHM64CK.js +0 -7290
  105. package/dist/chunk-G4TX2R77.cjs +0 -7613
  106. package/dist/icons.cjs +0 -1294
  107. package/dist/icons.js +0 -1
  108. package/dist/index.cjs +0 -906
  109. package/dist/index.d.cts +0 -285
  110. package/dist/index.d.ts +0 -285
  111. package/dist/index.js +0 -830
  112. package/dist/utils.js +0 -1
  113. package/dist/{icons.d.ts → icons/index.d.cts} +1 -1
  114. package/dist/{icons.d.cts → icons/index.d.ts} +1 -1
  115. /package/dist/{utils.d.cts → utils/index.d.cts} +0 -0
  116. /package/dist/{utils.d.ts → utils/index.d.ts} +0 -0
@@ -0,0 +1,70 @@
1
+ import { Dialog as Dialog$1 } from 'radix-ui';
2
+ import { twMerge } from 'tailwind-merge';
3
+ import { Cross1Icon } from '@radix-ui/react-icons';
4
+ import { cva } from 'class-variance-authority';
5
+ import { jsxs, jsx } from 'react/jsx-runtime';
6
+
7
+ var Dialog = Dialog$1.Root;
8
+ var DialogClose = Dialog$1.Close;
9
+ var dialogContentStyles = cva(
10
+ [
11
+ "bg-foreground fixed left-1/2 top-1/2 z-50 flex w-full -translate-x-1/2 -translate-y-1/2 flex-col rounded border border-gray-400 p-4 shadow-lg",
12
+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] duration-200"
13
+ ],
14
+ {
15
+ variants: {
16
+ width: {
17
+ xs: "max-w-xs",
18
+ sm: "max-w-sm",
19
+ md: "max-w-md",
20
+ lg: "max-w-lg",
21
+ xl: "max-w-xl",
22
+ "2xl": "max-w-2xl",
23
+ "3xl": "max-w-3xl",
24
+ "4xl": "max-w-4xl",
25
+ "5xl": "max-w-5xl",
26
+ "6xl": "max-w-6xl",
27
+ full: "max-w-full"
28
+ }
29
+ },
30
+ defaultVariants: {
31
+ width: "md"
32
+ }
33
+ }
34
+ );
35
+ function DialogOverlay(props) {
36
+ return /* @__PURE__ */ jsx(
37
+ Dialog$1.Overlay,
38
+ {
39
+ className: "bg-background/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 backdrop-blur-xs",
40
+ ...props
41
+ }
42
+ );
43
+ }
44
+ function DialogContent({ className, children, width = "md", ...props }) {
45
+ return /* @__PURE__ */ jsxs(Dialog$1.Portal, { children: [
46
+ /* @__PURE__ */ jsx(DialogOverlay, {}),
47
+ /* @__PURE__ */ jsxs(Dialog$1.Content, { className: twMerge(dialogContentStyles({ width }), className), ...props, children: [
48
+ children,
49
+ /* @__PURE__ */ jsxs(Dialog$1.Close, { className: "focus:ring-ring ring-primary-500 ring-offset-foreground data-[state=open]:bg-foreground absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none", children: [
50
+ /* @__PURE__ */ jsx(Cross1Icon, { className: "size-4" }),
51
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
52
+ ] })
53
+ ] })
54
+ ] });
55
+ }
56
+ var DialogTrigger = Dialog$1.Trigger;
57
+ function DialogHeader({ className, ...props }) {
58
+ return /* @__PURE__ */ jsx("div", { className: twMerge("mb-4 flex flex-col space-y-1.5 text-center sm:text-left", className), ...props });
59
+ }
60
+ function DialogFooter({ className, ...props }) {
61
+ return /* @__PURE__ */ jsx("div", { className: twMerge("mt-4 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className), ...props });
62
+ }
63
+ function DialogTitle({ className, ...props }) {
64
+ return /* @__PURE__ */ jsx(Dialog$1.Title, { className: twMerge("text-heading-6", className), ...props });
65
+ }
66
+ function DialogDescription({ className, ...props }) {
67
+ return /* @__PURE__ */ jsx(Dialog$1.Description, { className: twMerge("text-body-2 text-gray-200", className), ...props });
68
+ }
69
+
70
+ export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger };
@@ -0,0 +1,40 @@
1
+ 'use strict';
2
+
3
+ var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
4
+ var radixUi = require('radix-ui');
5
+ var classVarianceAuthority = require('class-variance-authority');
6
+ var jsxRuntime = require('react/jsx-runtime');
7
+
8
+ var avatarCva = classVarianceAuthority.cva("relative flex shrink-0 overflow-hidden rounded text-gray-100", {
9
+ variants: {
10
+ size: {
11
+ sm: "size-6 text-xs",
12
+ md: "size-10 text-lg",
13
+ lg: "size-14 text-2xl"
14
+ }
15
+ },
16
+ defaultVariants: {
17
+ size: "md"
18
+ }
19
+ });
20
+ function Avatar({ className, size, ref, ...props }) {
21
+ const avatarStyles = avatarCva({ size });
22
+ return /* @__PURE__ */ jsxRuntime.jsx(radixUi.Avatar.Root, { ref, className: chunkH2BWO3SI_cjs.cn(avatarStyles, className), ...props });
23
+ }
24
+ function AvatarImage({ className, ref, ...props }) {
25
+ return /* @__PURE__ */ jsxRuntime.jsx(radixUi.Avatar.Image, { ref, className: chunkH2BWO3SI_cjs.cn("aspect-square h-full w-full", className), ...props });
26
+ }
27
+ function AvatarFallback({ className, ref, ...props }) {
28
+ return /* @__PURE__ */ jsxRuntime.jsx(
29
+ radixUi.Avatar.Fallback,
30
+ {
31
+ ref,
32
+ className: chunkH2BWO3SI_cjs.cn("bg-gray-350 flex h-full w-full items-center justify-center", className),
33
+ ...props
34
+ }
35
+ );
36
+ }
37
+
38
+ exports.Avatar = Avatar;
39
+ exports.AvatarFallback = AvatarFallback;
40
+ exports.AvatarImage = AvatarImage;
@@ -0,0 +1,30 @@
1
+ 'use strict';
2
+
3
+ var tailwindMerge = require('tailwind-merge');
4
+ var jsxRuntime = require('react/jsx-runtime');
5
+
6
+ function Card({ className, ...props }) {
7
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: tailwindMerge.twMerge("bg-app-foreground h-full rounded border border-gray-400", className), ...props });
8
+ }
9
+ function CardHeader({ className, ...props }) {
10
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: tailwindMerge.twMerge("flex flex-col p-6", className), ...props });
11
+ }
12
+ function CardTitle({ className, ...props }) {
13
+ return /* @__PURE__ */ jsxRuntime.jsx("h3", { className: tailwindMerge.twMerge("text-heading-5", className), ...props });
14
+ }
15
+ function CardDescription({ className, ...props }) {
16
+ return /* @__PURE__ */ jsxRuntime.jsx("p", { className: tailwindMerge.twMerge("text-body-2 text-gray-200", className), ...props });
17
+ }
18
+ function CardContent({ className, ...props }) {
19
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: tailwindMerge.twMerge("p-6 pt-0", className), ...props });
20
+ }
21
+ function CardFooter({ className, ...props }) {
22
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: tailwindMerge.twMerge("flex items-center p-6 pt-0", className), ...props });
23
+ }
24
+
25
+ exports.Card = Card;
26
+ exports.CardContent = CardContent;
27
+ exports.CardDescription = CardDescription;
28
+ exports.CardFooter = CardFooter;
29
+ exports.CardHeader = CardHeader;
30
+ exports.CardTitle = CardTitle;
@@ -0,0 +1,17 @@
1
+ 'use strict';
2
+
3
+ var radixUi = require('radix-ui');
4
+ var tailwindMerge = require('tailwind-merge');
5
+ var jsxRuntime = require('react/jsx-runtime');
6
+
7
+ function Label({ className, ...props }) {
8
+ return /* @__PURE__ */ jsxRuntime.jsx(
9
+ radixUi.Label.Root,
10
+ {
11
+ className: tailwindMerge.twMerge("text-subtitle-1 peer-disabled:cursor-not-allowed peer-disabled:opacity-70", className),
12
+ ...props
13
+ }
14
+ );
15
+ }
16
+
17
+ exports.Label = Label;
@@ -0,0 +1,30 @@
1
+ 'use strict';
2
+
3
+ var classVarianceAuthority = require('class-variance-authority');
4
+ var jsxRuntime = require('react/jsx-runtime');
5
+
6
+ var textareaCva = classVarianceAuthority.cva(
7
+ [
8
+ "bg-app-primary font-poppins text-body-2 h-28 min-h-10 w-full appearance-none border px-3 py-2 outline-0 transition-colors duration-300 ease-in-out placeholder:select-none placeholder:text-gray-200",
9
+ "focus:border-primary-400",
10
+ "active:border-primary-400",
11
+ "disabled:border-gray-400 disabled:text-gray-200 disabled:placeholder:text-gray-300"
12
+ ],
13
+ {
14
+ variants: {
15
+ invalid: {
16
+ true: ["text-error-500 border-error-500", "hover:border-error-400", "focus:text-gray-100"],
17
+ false: ["border-gray-350 text-gray-100", "hover:border-primary-500"]
18
+ }
19
+ },
20
+ defaultVariants: {
21
+ invalid: false
22
+ }
23
+ }
24
+ );
25
+ function Textarea({ invalid = false, ...props }) {
26
+ const textareaStyles = textareaCva({ invalid });
27
+ return /* @__PURE__ */ jsxRuntime.jsx("textarea", { "aria-invalid": invalid || void 0, className: textareaStyles, ...props });
28
+ }
29
+
30
+ exports.Textarea = Textarea;
@@ -0,0 +1,116 @@
1
+ 'use strict';
2
+
3
+ var chunkYXTTED5V_cjs = require('./chunk-YXTTED5V.cjs');
4
+ var chunkLND2W67K_cjs = require('./chunk-LND2W67K.cjs');
5
+ var reactHookForm = require('react-hook-form');
6
+ var React2 = require('react');
7
+ var tailwindMerge = require('tailwind-merge');
8
+ var jsxRuntime = require('react/jsx-runtime');
9
+ var reactSlot = require('@radix-ui/react-slot');
10
+
11
+ function _interopNamespace(e) {
12
+ if (e && e.__esModule) return e;
13
+ var n = Object.create(null);
14
+ if (e) {
15
+ Object.keys(e).forEach(function (k) {
16
+ if (k !== 'default') {
17
+ var d = Object.getOwnPropertyDescriptor(e, k);
18
+ Object.defineProperty(n, k, d.get ? d : {
19
+ enumerable: true,
20
+ get: function () { return e[k]; }
21
+ });
22
+ }
23
+ });
24
+ }
25
+ n.default = e;
26
+ return Object.freeze(n);
27
+ }
28
+
29
+ var React2__namespace = /*#__PURE__*/_interopNamespace(React2);
30
+
31
+ var Form = reactHookForm.FormProvider;
32
+ var FormItemContext = React2__namespace.createContext({});
33
+ var FormItem = React2__namespace.forwardRef(function({ className, ...props }, ref) {
34
+ const id = React2__namespace.useId();
35
+ return /* @__PURE__ */ jsxRuntime.jsx(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: tailwindMerge.twMerge("space-y-2", className), ...props }) });
36
+ });
37
+ FormItem.displayName = "FormItem";
38
+ var FormFieldContext = React2__namespace.createContext({});
39
+ var FormField = ({
40
+ ...props
41
+ }) => {
42
+ return /* @__PURE__ */ jsxRuntime.jsx(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsxRuntime.jsx(reactHookForm.Controller, { ...props }) });
43
+ };
44
+ var useFormField = () => {
45
+ const fieldContext = React2__namespace.useContext(FormFieldContext);
46
+ const itemContext = React2__namespace.useContext(FormItemContext);
47
+ const { getFieldState, formState } = reactHookForm.useFormContext();
48
+ const fieldState = getFieldState(fieldContext.name, formState);
49
+ if (!fieldContext) {
50
+ throw new Error("useFormField should be used within <FormField>");
51
+ }
52
+ const { id } = itemContext;
53
+ return {
54
+ id,
55
+ name: fieldContext.name,
56
+ formItemId: `${id}-form-item`,
57
+ formDescriptionId: `${id}-form-item-description`,
58
+ formMessageId: `${id}-form-item-message`,
59
+ ...fieldState
60
+ };
61
+ };
62
+ var FormLabel = React2__namespace.forwardRef(
63
+ ({ className, caption, ...props }, ref) => {
64
+ const { error, formItemId } = useFormField();
65
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-row items-end justify-between", children: [
66
+ /* @__PURE__ */ jsxRuntime.jsx(
67
+ chunkLND2W67K_cjs.Label,
68
+ {
69
+ ref,
70
+ className: tailwindMerge.twMerge(error ? "text-error-500" : null, className),
71
+ htmlFor: formItemId,
72
+ ...props
73
+ }
74
+ ),
75
+ caption ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "typography-caption text-gray-200", children: caption }) : null
76
+ ] });
77
+ }
78
+ );
79
+ FormLabel.displayName = "FormLabel";
80
+ var FormControl = React2__namespace.forwardRef(function(props, ref) {
81
+ const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
82
+ const newProps = { ...props, invalid: !!error };
83
+ return /* @__PURE__ */ jsxRuntime.jsx(
84
+ reactSlot.Slot,
85
+ {
86
+ ref,
87
+ id: formItemId,
88
+ "aria-describedby": !error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`,
89
+ "aria-invalid": !!error,
90
+ ...newProps
91
+ }
92
+ );
93
+ });
94
+ FormControl.displayName = "FormControl";
95
+ var FormMessage = React2__namespace.forwardRef(function({ children, ...props }, ref) {
96
+ const { error, formMessageId } = useFormField();
97
+ const body = error ? String(error?.message) : children;
98
+ if (!body) {
99
+ return null;
100
+ }
101
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkYXTTED5V_cjs.HelperText, { ref, type: "error", id: formMessageId, ...props, children: body });
102
+ });
103
+ FormMessage.displayName = "FormMessage";
104
+ var FormDescription = React2__namespace.forwardRef(function(props, ref) {
105
+ const { formDescriptionId } = useFormField();
106
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkYXTTED5V_cjs.HelperText, { ref, id: formDescriptionId, ...props });
107
+ });
108
+ FormDescription.displayName = "FormDescription";
109
+
110
+ exports.Form = Form;
111
+ exports.FormControl = FormControl;
112
+ exports.FormDescription = FormDescription;
113
+ exports.FormField = FormField;
114
+ exports.FormItem = FormItem;
115
+ exports.FormLabel = FormLabel;
116
+ exports.FormMessage = FormMessage;
@@ -0,0 +1,59 @@
1
+ 'use strict';
2
+
3
+ var radixUi = require('radix-ui');
4
+ var reactIcons = require('@radix-ui/react-icons');
5
+ var classVarianceAuthority = require('class-variance-authority');
6
+ var jsxRuntime = require('react/jsx-runtime');
7
+
8
+ var selectCva = classVarianceAuthority.cva(
9
+ [
10
+ "bg-app-foreground text-body-2 inline-flex h-10 w-full appearance-none items-center justify-between gap-2 border px-3 py-2 text-gray-100 outline-0 transition-colors duration-300 ease-in-out",
11
+ "placeholder:select-none placeholder:text-gray-200",
12
+ "invalid:border-error-500 focus:border-primary-400 active:border-primary-400",
13
+ "disabled:border-gray-400 disabled:text-gray-200 disabled:placeholder:text-gray-300"
14
+ ],
15
+ {
16
+ variants: {
17
+ invalid: {
18
+ true: ["text-error-500 border-error-500 hover:border-error-400 focus:text-gray-100"],
19
+ false: ["border-gray-350 hover:border-primary-500 text-gray-100"]
20
+ }
21
+ },
22
+ defaultVariants: {
23
+ invalid: false
24
+ }
25
+ }
26
+ );
27
+ function Select({ children, placeholder, invalid = false, ref, ...props }) {
28
+ const selectStyles = selectCva({ invalid });
29
+ return /* @__PURE__ */ jsxRuntime.jsxs(radixUi.Select.Root, { ...props, children: [
30
+ /* @__PURE__ */ jsxRuntime.jsxs(radixUi.Select.Trigger, { className: selectStyles, ref, children: [
31
+ /* @__PURE__ */ jsxRuntime.jsx(radixUi.Select.Value, { placeholder }),
32
+ /* @__PURE__ */ jsxRuntime.jsx(radixUi.Select.Icon, { className: "-mr-1.5", children: /* @__PURE__ */ jsxRuntime.jsx(reactIcons.CaretSortIcon, { className: "size-5 text-gray-200" }) })
33
+ ] }),
34
+ /* @__PURE__ */ jsxRuntime.jsx(radixUi.Select.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
35
+ radixUi.Select.Content,
36
+ {
37
+ sideOffset: 4,
38
+ className: "bg-app-foreground z-50 w-full overflow-hidden border border-gray-400 py-1",
39
+ children: /* @__PURE__ */ jsxRuntime.jsx(radixUi.Select.Viewport, { children })
40
+ }
41
+ ) })
42
+ ] });
43
+ }
44
+ function SelectItem({ children, ...props }) {
45
+ return /* @__PURE__ */ jsxRuntime.jsxs(
46
+ radixUi.Select.Item,
47
+ {
48
+ className: "text-body-2 data-[state=checked]:bg-primary-300 flex w-full flex-row items-center justify-between px-3 py-2 text-gray-100 select-none data-[disabled]:pointer-events-none data-[highlighted]:bg-gray-400 data-[highlighted]:outline-none",
49
+ ...props,
50
+ children: [
51
+ /* @__PURE__ */ jsxRuntime.jsx(radixUi.Select.ItemText, { className: "flex-1", children }),
52
+ /* @__PURE__ */ jsxRuntime.jsx(radixUi.Select.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(reactIcons.CheckIcon, { className: "size-4" }) })
53
+ ]
54
+ }
55
+ );
56
+ }
57
+
58
+ exports.Select = Select;
59
+ exports.SelectItem = SelectItem;
@@ -0,0 +1,24 @@
1
+ 'use strict';
2
+
3
+ var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
4
+ var radixUi = require('radix-ui');
5
+ var jsxRuntime = require('react/jsx-runtime');
6
+
7
+ function Separator({ className, orientation = "horizontal", decorative = false, ...props }) {
8
+ return /* @__PURE__ */ jsxRuntime.jsx(
9
+ radixUi.Separator.Root,
10
+ {
11
+ decorative,
12
+ orientation,
13
+ "aria-orientation": orientation,
14
+ className: chunkH2BWO3SI_cjs.cn(
15
+ "shrink-0 bg-gray-400",
16
+ orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
17
+ className
18
+ ),
19
+ ...props
20
+ }
21
+ );
22
+ }
23
+
24
+ exports.Separator = Separator;
@@ -0,0 +1,57 @@
1
+ import { Dialog } from 'radix-ui';
2
+ import { twMerge } from 'tailwind-merge';
3
+ import { Cross1Icon } from '@radix-ui/react-icons';
4
+ import { cva } from 'class-variance-authority';
5
+ import { jsxs, jsx } from 'react/jsx-runtime';
6
+
7
+ var Sheet = Dialog.Root;
8
+ var SheetTrigger = Dialog.Trigger;
9
+ var SheetClose = Dialog.Close;
10
+ var sheetContentStyles = cva(
11
+ "bg-foreground data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col border-gray-400 p-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
12
+ {
13
+ variants: {
14
+ side: {
15
+ top: "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 border-b",
16
+ bottom: "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 border-t",
17
+ left: "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
18
+ right: "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm"
19
+ }
20
+ },
21
+ defaultVariants: {
22
+ side: "right"
23
+ }
24
+ }
25
+ );
26
+ function SheetContent({ side = "right", className, children, ...props }) {
27
+ return /* @__PURE__ */ jsxs(Dialog.Portal, { children: [
28
+ /* @__PURE__ */ jsx(
29
+ Dialog.Overlay,
30
+ {
31
+ className: "bg-background/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 backdrop-blur-sm",
32
+ ...props
33
+ }
34
+ ),
35
+ /* @__PURE__ */ jsxs(Dialog.Content, { className: twMerge(sheetContentStyles({ side }), className), ...props, children: [
36
+ children,
37
+ /* @__PURE__ */ jsxs(Dialog.Close, { className: "focus:ring-ring ring-primary-500 ring-offset-foreground data-[state=open]:bg-foreground absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none", children: [
38
+ /* @__PURE__ */ jsx(Cross1Icon, { className: "size-4" }),
39
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
40
+ ] })
41
+ ] })
42
+ ] });
43
+ }
44
+ function SheetHeader({ className, ...props }) {
45
+ return /* @__PURE__ */ jsx("div", { className: twMerge("flex flex-col space-y-2 text-center sm:text-left", className), ...props });
46
+ }
47
+ function SheetFooter({ className, ...props }) {
48
+ return /* @__PURE__ */ jsx("div", { className: twMerge("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
49
+ }
50
+ function SheetTitle({ className, ...props }) {
51
+ return /* @__PURE__ */ jsx(Dialog.Title, { className: twMerge("typography-heading-6", className), ...props });
52
+ }
53
+ function SheetDescription({ className, ...props }) {
54
+ return /* @__PURE__ */ jsx(Dialog.Description, { className: twMerge("typography-body-2 text-gray-200", className), ...props });
55
+ }
56
+
57
+ export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger };
@@ -0,0 +1,99 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('react/jsx-runtime');
4
+ var reactIcons = require('@radix-ui/react-icons');
5
+
6
+ function GoogleLogoIcon(props) {
7
+ return /* @__PURE__ */ jsxRuntime.jsxs(
8
+ "svg",
9
+ {
10
+ xmlns: "http://www.w3.org/2000/svg",
11
+ viewBox: "0 0 24 24",
12
+ strokeWidth: "2",
13
+ stroke: "currentColor",
14
+ fill: "none",
15
+ strokeLinecap: "round",
16
+ strokeLinejoin: "round",
17
+ ...props,
18
+ children: [
19
+ /* @__PURE__ */ jsxRuntime.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
20
+ /* @__PURE__ */ jsxRuntime.jsx(
21
+ "path",
22
+ {
23
+ d: "M12 2a9.96 9.96 0 0 1 6.29 2.226a1 1 0 0 1 .04 1.52l-1.51 1.362a1 1 0 0 1 -1.265 .06a6 6 0 1 0 2.103 6.836l.001 -.004h-3.66a1 1 0 0 1 -.992 -.883l-.007 -.117v-2a1 1 0 0 1 1 -1h6.945a1 1 0 0 1 .994 .89c.04 .367 .061 .737 .061 1.11c0 5.523 -4.477 10 -10 10s-10 -4.477 -10 -10s4.477 -10 10 -10z",
24
+ strokeWidth: "0",
25
+ fill: "currentColor"
26
+ }
27
+ )
28
+ ]
29
+ }
30
+ );
31
+ }
32
+ function LoadingIcon(props) {
33
+ return /* @__PURE__ */ jsxRuntime.jsx(
34
+ "svg",
35
+ {
36
+ xmlns: "http://www.w3.org/2000/svg",
37
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
38
+ fill: "currentColor",
39
+ version: "1.1",
40
+ viewBox: "0 0 26.349 26.35",
41
+ xmlSpace: "preserve",
42
+ ...props,
43
+ children: /* @__PURE__ */ jsxRuntime.jsx("g", { children: /* @__PURE__ */ jsxRuntime.jsxs("g", { children: [
44
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "13.792", cy: "3.082", r: "3.082" }),
45
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "13.792", cy: "24.501", r: "1.849" }),
46
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "6.219", cy: "6.218", r: "2.774" }),
47
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "21.365", cy: "21.363", r: "1.541" }),
48
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "3.082", cy: "13.792", r: "2.465" }),
49
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "24.501", cy: "13.791", r: "1.232" }),
50
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M4.694,19.84c-0.843,0.843-0.843,2.207,0,3.05c0.842,0.843,2.208,0.843,3.05,0c0.843-0.843,0.843-2.207,0-3.05 C6.902,18.996,5.537,18.988,4.694,19.84z" }),
51
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "21.364", cy: "6.218", r: "0.924" })
52
+ ] }) })
53
+ }
54
+ );
55
+ }
56
+ function Auth0LogoIcon(props) {
57
+ return /* @__PURE__ */ jsxRuntime.jsxs("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
58
+ /* @__PURE__ */ jsxRuntime.jsx("title", {}),
59
+ /* @__PURE__ */ jsxRuntime.jsx(
60
+ "path",
61
+ {
62
+ d: "M21.98 7.448L19.62 0H4.347L2.02 7.448c-1.352 4.312.03 9.206 3.815 12.015L12.007 24l6.157-4.552c3.755-2.81 5.182-7.688 3.815-12.015l-6.16 4.58 2.343 7.45-6.157-4.597-6.158 4.58 2.358-7.433-6.188-4.55 7.63-.045L12.008 0l2.356 7.404 7.615.044z",
63
+ fill: "currentColor"
64
+ }
65
+ )
66
+ ] });
67
+ }
68
+ function XLogoIcon(props) {
69
+ return /* @__PURE__ */ jsxRuntime.jsx(
70
+ "svg",
71
+ {
72
+ xmlns: "http://www.w3.org/2000/svg",
73
+ version: "1.1",
74
+ id: "Layer_1",
75
+ width: "24px",
76
+ height: "24px",
77
+ viewBox: "0 0 24 24",
78
+ ...props,
79
+ children: /* @__PURE__ */ jsxRuntime.jsx(
80
+ "path",
81
+ {
82
+ d: "M14.095479,10.316482L22.286354,1h-1.940718l-7.115352,8.087682L7.551414,1H1l8.589488,12.231093L1,23h1.940717 l7.509372-8.542861L16.448587,23H23L14.095479,10.316482z M11.436522,13.338465l-0.871624-1.218704l-6.924311-9.68815h2.981339 l5.58978,7.82155l0.867949,1.218704l7.26506,10.166271h-2.981339L11.436522,13.338465z",
83
+ fill: "currentColor"
84
+ }
85
+ )
86
+ }
87
+ );
88
+ }
89
+
90
+ exports.Auth0LogoIcon = Auth0LogoIcon;
91
+ exports.GoogleLogoIcon = GoogleLogoIcon;
92
+ exports.LoadingIcon = LoadingIcon;
93
+ exports.XLogoIcon = XLogoIcon;
94
+ Object.keys(reactIcons).forEach(function (k) {
95
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
96
+ enumerable: true,
97
+ get: function () { return reactIcons[k]; }
98
+ });
99
+ });
@@ -0,0 +1,15 @@
1
+ import { Label as Label$1 } from 'radix-ui';
2
+ import { twMerge } from 'tailwind-merge';
3
+ import { jsx } from 'react/jsx-runtime';
4
+
5
+ function Label({ className, ...props }) {
6
+ return /* @__PURE__ */ jsx(
7
+ Label$1.Root,
8
+ {
9
+ className: twMerge("text-subtitle-1 peer-disabled:cursor-not-allowed peer-disabled:opacity-70", className),
10
+ ...props
11
+ }
12
+ );
13
+ }
14
+
15
+ export { Label };
@@ -0,0 +1,28 @@
1
+ import { cva } from 'class-variance-authority';
2
+ import { jsx } from 'react/jsx-runtime';
3
+
4
+ var textareaCva = cva(
5
+ [
6
+ "bg-app-primary font-poppins text-body-2 h-28 min-h-10 w-full appearance-none border px-3 py-2 outline-0 transition-colors duration-300 ease-in-out placeholder:select-none placeholder:text-gray-200",
7
+ "focus:border-primary-400",
8
+ "active:border-primary-400",
9
+ "disabled:border-gray-400 disabled:text-gray-200 disabled:placeholder:text-gray-300"
10
+ ],
11
+ {
12
+ variants: {
13
+ invalid: {
14
+ true: ["text-error-500 border-error-500", "hover:border-error-400", "focus:text-gray-100"],
15
+ false: ["border-gray-350 text-gray-100", "hover:border-primary-500"]
16
+ }
17
+ },
18
+ defaultVariants: {
19
+ invalid: false
20
+ }
21
+ }
22
+ );
23
+ function Textarea({ invalid = false, ...props }) {
24
+ const textareaStyles = textareaCva({ invalid });
25
+ return /* @__PURE__ */ jsx("textarea", { "aria-invalid": invalid || void 0, className: textareaStyles, ...props });
26
+ }
27
+
28
+ export { Textarea };
@@ -0,0 +1,60 @@
1
+ 'use strict';
2
+
3
+ var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
4
+ var radixUi = require('radix-ui');
5
+ var jsxRuntime = require('react/jsx-runtime');
6
+ var tailwindMerge = require('tailwind-merge');
7
+
8
+ var AlertDialog = radixUi.AlertDialog.Root;
9
+ var AlertDialogTrigger = radixUi.AlertDialog.Trigger;
10
+ function AlertDialogOverlay({ className, ...props }) {
11
+ return /* @__PURE__ */ jsxRuntime.jsx(
12
+ radixUi.AlertDialog.Overlay,
13
+ {
14
+ className: chunkH2BWO3SI_cjs.cn(
15
+ "bg-background/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 backdrop-blur-xs",
16
+ className
17
+ ),
18
+ ...props
19
+ }
20
+ );
21
+ }
22
+ function AlertDialogContent({ className, ...props }) {
23
+ return /* @__PURE__ */ jsxRuntime.jsxs(radixUi.AlertDialog.Portal, { children: [
24
+ /* @__PURE__ */ jsxRuntime.jsx(AlertDialogOverlay, {}),
25
+ /* @__PURE__ */ jsxRuntime.jsx(
26
+ radixUi.AlertDialog.Content,
27
+ {
28
+ className: chunkH2BWO3SI_cjs.cn(
29
+ "bg-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed top-1/2 left-1/2 z-50 flex w-full max-w-lg -translate-x-1/2 -translate-y-1/2 flex-col rounded border border-gray-400 p-4 shadow-lg duration-200",
30
+ className
31
+ ),
32
+ ...props
33
+ }
34
+ )
35
+ ] });
36
+ }
37
+ function AlertDialogHeader({ className, ...props }) {
38
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: tailwindMerge.twMerge("mb-4 flex flex-col space-y-2 text-center sm:text-left", className), ...props });
39
+ }
40
+ function AlertDialogFooter({ className, ...props }) {
41
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: tailwindMerge.twMerge("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className), ...props });
42
+ }
43
+ function AlertDialogTitle({ className, ref, ...props }) {
44
+ return /* @__PURE__ */ jsxRuntime.jsx(radixUi.AlertDialog.Title, { ref, className: chunkH2BWO3SI_cjs.cn("text-heading-6", className), ...props });
45
+ }
46
+ function AlertDialogDescription({ className, ...props }) {
47
+ return /* @__PURE__ */ jsxRuntime.jsx(radixUi.AlertDialog.Description, { className: chunkH2BWO3SI_cjs.cn("text-body-2 text-gray-200", className), ...props });
48
+ }
49
+ var AlertDialogAction = radixUi.AlertDialog.Action;
50
+ var AlertDialogCancel = radixUi.AlertDialog.Cancel;
51
+
52
+ exports.AlertDialog = AlertDialog;
53
+ exports.AlertDialogAction = AlertDialogAction;
54
+ exports.AlertDialogCancel = AlertDialogCancel;
55
+ exports.AlertDialogContent = AlertDialogContent;
56
+ exports.AlertDialogDescription = AlertDialogDescription;
57
+ exports.AlertDialogFooter = AlertDialogFooter;
58
+ exports.AlertDialogHeader = AlertDialogHeader;
59
+ exports.AlertDialogTitle = AlertDialogTitle;
60
+ exports.AlertDialogTrigger = AlertDialogTrigger;