@hai-dev/ui-kit 1.0.0 → 1.0.1

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 (41) hide show
  1. package/dist/Button-0AB7oP6Y.js +655 -0
  2. package/dist/ButtonBase-Bw_3RZmN.js +5453 -0
  3. package/dist/CircularProgress-BD6BPlN2.js +290 -0
  4. package/dist/{DialogTitle-1A3dJ174.js → DialogTitle-iOQ7wKEt.js} +78 -78
  5. package/dist/assets/button.css +1 -0
  6. package/dist/assets/upload-button.css +1 -1
  7. package/dist/assets/upload-dialog.css +1 -1
  8. package/dist/button.module-BZPPmSAS.js +21 -0
  9. package/dist/components/button/button-content.d.ts +3 -0
  10. package/dist/components/button/button-content.js +17 -0
  11. package/dist/components/button/button.d.ts +3 -0
  12. package/dist/components/button/button.js +65 -0
  13. package/dist/components/button/button.stories.d.ts +7 -0
  14. package/dist/components/button/constants.d.ts +12 -0
  15. package/dist/components/button/constants.js +15 -0
  16. package/dist/components/button/index.d.ts +1 -0
  17. package/dist/components/button/index.js +4 -0
  18. package/dist/components/button/types.d.ts +38 -0
  19. package/dist/components/button/types.js +1 -0
  20. package/dist/components/button/utils/get-button-classnames.d.ts +2 -0
  21. package/dist/components/button/utils/get-button-classnames.js +17 -0
  22. package/dist/components/button/utils/index.d.ts +1 -0
  23. package/dist/components/button/utils/index.js +4 -0
  24. package/dist/components/index.d.ts +1 -0
  25. package/dist/components/index.js +4 -2
  26. package/dist/components/photo-crop-uploader/components/error-upload-dialog/error-upload-dialog.js +10 -9
  27. package/dist/components/photo-crop-uploader/components/upload-button/constants.d.ts +1 -1
  28. package/dist/components/photo-crop-uploader/components/upload-button/constants.js +1 -1
  29. package/dist/components/photo-crop-uploader/components/upload-button/types.d.ts +5 -1
  30. package/dist/components/photo-crop-uploader/components/upload-button/upload-button.js +81 -58
  31. package/dist/components/photo-crop-uploader/components/upload-dialog/upload-dialog.js +354 -87
  32. package/dist/components/photo-crop-uploader/constants.d.ts +1 -1
  33. package/dist/components/photo-crop-uploader/constants.js +1 -1
  34. package/dist/components/photo-crop-uploader/locale.js +4 -4
  35. package/dist/components/photo-crop-uploader/photo-crop-uploader.js +81 -70
  36. package/dist/components/photo-crop-uploader/types.d.ts +8 -1
  37. package/dist/index-B2JRaoNz.js +48 -0
  38. package/dist/index.d.ts +1 -1
  39. package/dist/index.js +15 -13
  40. package/package.json +73 -73
  41. package/dist/Button-BjNjCLw8.js +0 -6428
@@ -0,0 +1,65 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { c as U } from "../../index-B2JRaoNz.js";
3
+ import { ButtonContent as a } from "./button-content.js";
4
+ import { BUTTON_COLOR_GRAY as h, BUTTON_SIZE_DEFAULT as I, BUTTON_VARIANT_OUTLINED as x, MIN_WIDTH_DEFAULT as C, BUTTON_WEIGHT_MEDIUM as E } from "./constants.js";
5
+ import { s as A } from "../../button.module-BZPPmSAS.js";
6
+ import { B as D } from "../../ButtonBase-Bw_3RZmN.js";
7
+ import { getButtonClassnames as L } from "./utils/get-button-classnames.js";
8
+ const F = (m) => {
9
+ const {
10
+ buttonColor: l = h,
11
+ buttonSize: c = I,
12
+ buttonVariant: T = x,
13
+ isLink: u,
14
+ href: o,
15
+ description: n,
16
+ className: B,
17
+ children: s,
18
+ minWidth: f = C,
19
+ sx: p,
20
+ buttonWeight: N = E,
21
+ startContent: r,
22
+ endContent: i,
23
+ disabled: e,
24
+ buttonSlots: _,
25
+ ...b
26
+ } = m, d = Object.assign({}, p, {
27
+ minWidth: f,
28
+ fontWeight: N
29
+ }), O = _?.link;
30
+ return /* @__PURE__ */ t(
31
+ D,
32
+ {
33
+ className: L({
34
+ className: B,
35
+ buttonColor: l,
36
+ buttonSize: c,
37
+ buttonVariant: T,
38
+ disabled: e
39
+ }),
40
+ sx: d,
41
+ disabled: e,
42
+ ...b,
43
+ children: u && o ? O || /* @__PURE__ */ t("a", { className: U(A.link), href: o, children: /* @__PURE__ */ t(
44
+ a,
45
+ {
46
+ description: n,
47
+ startContent: r,
48
+ endContent: i,
49
+ children: s
50
+ }
51
+ ) }) : /* @__PURE__ */ t(
52
+ a,
53
+ {
54
+ description: n,
55
+ startContent: r,
56
+ endContent: i,
57
+ children: s
58
+ }
59
+ )
60
+ }
61
+ );
62
+ };
63
+ export {
64
+ F as Button
65
+ };
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { Button } from './';
3
+ type ButtonMeta = Meta<typeof Button>;
4
+ type ButtonStory = StoryObj<typeof Button>;
5
+ declare const meta: ButtonMeta;
6
+ export default meta;
7
+ export declare const Base: ButtonStory;
@@ -0,0 +1,12 @@
1
+ export declare const BUTTON_COLOR_WHITE = "white";
2
+ export declare const BUTTON_COLOR_BLUE = "blue";
3
+ export declare const BUTTON_COLOR_GRAY = "gray";
4
+ export declare const BUTTON_VARIANT_FILLED = "filled";
5
+ export declare const BUTTON_VARIANT_OUTLINED = "outlined";
6
+ export declare const BUTTON_VARIANT_TEXT = "text";
7
+ export declare const BUTTON_SIZE_DEFAULT = "default";
8
+ export declare const BUTTON_SIZE_SMALL = "small";
9
+ export declare const BUTTON_WEIGHT_MEDIUM = 500;
10
+ export declare const BUTTON_WEIGHT_SEMI_BOLD = 600;
11
+ export declare const BUTTON_WEIGHT_BOLD = 700;
12
+ export declare const MIN_WIDTH_DEFAULT = 240;
@@ -0,0 +1,15 @@
1
+ const T = "white", _ = "blue", O = "gray", t = "filled", N = "outlined", U = "text", I = "default", o = "small", B = 500, E = 600, n = 700, s = 240;
2
+ export {
3
+ _ as BUTTON_COLOR_BLUE,
4
+ O as BUTTON_COLOR_GRAY,
5
+ T as BUTTON_COLOR_WHITE,
6
+ I as BUTTON_SIZE_DEFAULT,
7
+ o as BUTTON_SIZE_SMALL,
8
+ t as BUTTON_VARIANT_FILLED,
9
+ N as BUTTON_VARIANT_OUTLINED,
10
+ U as BUTTON_VARIANT_TEXT,
11
+ n as BUTTON_WEIGHT_BOLD,
12
+ B as BUTTON_WEIGHT_MEDIUM,
13
+ E as BUTTON_WEIGHT_SEMI_BOLD,
14
+ s as MIN_WIDTH_DEFAULT
15
+ };
@@ -0,0 +1 @@
1
+ export { Button } from './button';
@@ -0,0 +1,4 @@
1
+ import { Button as r } from "./button.js";
2
+ export {
3
+ r as Button
4
+ };
@@ -0,0 +1,38 @@
1
+ import { ReactNode } from 'react';
2
+ import { ButtonBaseProps } from '@mui/material';
3
+ import { BUTTON_COLOR_BLUE, BUTTON_COLOR_GRAY, BUTTON_COLOR_WHITE, BUTTON_SIZE_DEFAULT, BUTTON_SIZE_SMALL, BUTTON_VARIANT_FILLED, BUTTON_VARIANT_OUTLINED, BUTTON_VARIANT_TEXT, BUTTON_WEIGHT_BOLD, BUTTON_WEIGHT_MEDIUM, BUTTON_WEIGHT_SEMI_BOLD } from './constants';
4
+ export type ButtonColor = typeof BUTTON_COLOR_BLUE | typeof BUTTON_COLOR_WHITE | typeof BUTTON_COLOR_GRAY;
5
+ export type ButtonVariant = typeof BUTTON_VARIANT_OUTLINED | typeof BUTTON_VARIANT_FILLED | typeof BUTTON_VARIANT_TEXT;
6
+ export type ButtonWeight = typeof BUTTON_WEIGHT_MEDIUM | typeof BUTTON_WEIGHT_SEMI_BOLD | typeof BUTTON_WEIGHT_BOLD;
7
+ export type ButtonSize = typeof BUTTON_SIZE_DEFAULT | typeof BUTTON_SIZE_SMALL;
8
+ export type ButtonWidth = number | string;
9
+ export type ButtonSlots = {
10
+ link?: ReactNode;
11
+ };
12
+ export type ButtonCustomProps = {
13
+ buttonColor?: ButtonColor;
14
+ buttonVariant?: ButtonVariant;
15
+ buttonSize?: ButtonSize;
16
+ buttonWeight?: ButtonWeight;
17
+ isLink?: boolean;
18
+ href?: string;
19
+ description?: string;
20
+ minWidth?: ButtonWidth;
21
+ startContent?: ReactNode;
22
+ endContent?: ReactNode;
23
+ buttonSlots?: ButtonSlots;
24
+ };
25
+ export type ButtonProps = ButtonBaseProps & ButtonCustomProps;
26
+ export type GetButtonClassnamesParams = {
27
+ className?: string;
28
+ buttonColor: ButtonColor;
29
+ buttonVariant: ButtonVariant;
30
+ buttonSize: ButtonSize;
31
+ disabled?: boolean;
32
+ };
33
+ export type ButtonContentProps = {
34
+ children: ReactNode;
35
+ description?: string;
36
+ startContent?: ReactNode;
37
+ endContent?: ReactNode;
38
+ };
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,2 @@
1
+ import { GetButtonClassnamesParams } from '../types';
2
+ export declare const getButtonClassnames: (params: GetButtonClassnamesParams) => string;
@@ -0,0 +1,17 @@
1
+ import { c as i } from "../../../index-B2JRaoNz.js";
2
+ import { s as t } from "../../../button.module-BZPPmSAS.js";
3
+ const l = (s) => {
4
+ const { className: o, buttonColor: a, buttonSize: e, buttonVariant: n, disabled: r } = s;
5
+ return i(
6
+ t.button,
7
+ t.specific,
8
+ t[a],
9
+ t[e],
10
+ t[n],
11
+ r && t.disabled,
12
+ o
13
+ );
14
+ };
15
+ export {
16
+ l as getButtonClassnames
17
+ };
@@ -0,0 +1 @@
1
+ export { getButtonClassnames } from './get-button-classnames';
@@ -0,0 +1,4 @@
1
+ import { getButtonClassnames as o } from "./get-button-classnames.js";
2
+ export {
3
+ o as getButtonClassnames
4
+ };
@@ -1 +1,2 @@
1
1
  export { PhotoCropUploader } from './photo-crop-uploader';
2
+ export { Button } from './button';
@@ -1,4 +1,6 @@
1
- import { PhotoCropUploader as p } from "./photo-crop-uploader/photo-crop-uploader.js";
1
+ import { PhotoCropUploader as t } from "./photo-crop-uploader/photo-crop-uploader.js";
2
+ import { Button as e } from "./button/button.js";
2
3
  export {
3
- p as PhotoCropUploader
4
+ e as Button,
5
+ t as PhotoCropUploader
4
6
  };
@@ -1,33 +1,34 @@
1
1
  import { jsxs as d, jsx as o } from "react/jsx-runtime";
2
- import { c as a, B as g } from "../../../../Button-BjNjCLw8.js";
2
+ import { c as a } from "../../../../index-B2JRaoNz.js";
3
3
  import { localizedText as i } from "../../locale.js";
4
- import { EN_LOCALE as m } from "../../../../constants.js";
5
- import { D as x, a as p, b as E, c as D, d as h } from "../../../../DialogTitle-1A3dJ174.js";
4
+ import { EN_LOCALE as g } from "../../../../constants.js";
5
+ import { D as m, a as p, b as x, c as E, d as D } from "../../../../DialogTitle-iOQ7wKEt.js";
6
+ import { B as h } from "../../../../Button-0AB7oP6Y.js";
6
7
  import '../../../../assets/error-upload-dialog.css';const T = "_dialog_lyvu5_1", _ = "_dialogErrorText_lyvu5_1", t = {
7
8
  dialog: T,
8
9
  dialogErrorText: _
9
- }, b = (s) => {
10
+ }, j = (s) => {
10
11
  const {
11
12
  photoError: e,
12
13
  onCloseErrorDialog: r,
13
- locale: l = m,
14
+ locale: l = g,
14
15
  className: c,
15
16
  ...n
16
17
  } = s;
17
18
  return /* @__PURE__ */ d(
18
- x,
19
+ m,
19
20
  {
20
21
  className: a(t.dialog, c),
21
22
  onClose: r,
22
23
  ...n,
23
24
  children: [
24
25
  /* @__PURE__ */ o(p, { children: i[l].error }),
25
- /* @__PURE__ */ o(E, { children: /* @__PURE__ */ o(D, { className: a(t.dialogErrorText), children: e }) }),
26
- /* @__PURE__ */ o(h, { children: /* @__PURE__ */ o(g, { onClick: r, children: i[l].back }) })
26
+ /* @__PURE__ */ o(x, { children: /* @__PURE__ */ o(E, { className: a(t.dialogErrorText), children: e }) }),
27
+ /* @__PURE__ */ o(D, { children: /* @__PURE__ */ o(h, { onClick: r, children: i[l].back }) })
27
28
  ]
28
29
  }
29
30
  );
30
31
  };
31
32
  export {
32
- b as ErrorUploadDialog
33
+ j as ErrorUploadDialog
33
34
  };
@@ -1,3 +1,3 @@
1
1
  export declare const UPLOAD_BUTTON_IMAGE_SIZE = 20;
2
2
  export declare const UPLOAD_BUTTON_TAB_INDEX = -1;
3
- export declare const UPLOAD_BUTTON_WIDTH_DEFAULT = 260;
3
+ export declare const UPLOAD_BUTTON_WIDTH_DEFAULT = "auto";
@@ -1,4 +1,4 @@
1
- const T = 20, _ = -1, U = 260;
1
+ const T = 20, _ = -1, U = "auto";
2
2
  export {
3
3
  T as UPLOAD_BUTTON_IMAGE_SIZE,
4
4
  _ as UPLOAD_BUTTON_TAB_INDEX,
@@ -1,4 +1,4 @@
1
- import { InputHTMLAttributes } from 'react';
1
+ import { DragEvent, InputHTMLAttributes, ReactNode } from 'react';
2
2
  import { Locale } from '../../../../types';
3
3
  import { PhotoExtension } from '../../types';
4
4
  type UploadButtonCustonProps = {
@@ -7,6 +7,10 @@ type UploadButtonCustonProps = {
7
7
  locale?: Locale;
8
8
  width?: number | string;
9
9
  allowedExtensions?: PhotoExtension[];
10
+ onDragOver?: (event: DragEvent<HTMLDivElement>) => unknown;
11
+ onDragLeave?: (event: DragEvent<HTMLDivElement>) => unknown;
12
+ onDragDrop?: (event: DragEvent<HTMLDivElement>) => unknown;
13
+ button?: ReactNode;
10
14
  };
11
15
  export type UploadButtonProps = InputHTMLAttributes<HTMLInputElement> & UploadButtonCustonProps;
12
16
  export {};
@@ -1,82 +1,105 @@
1
- import { jsx as a, jsxs as B } from "react/jsx-runtime";
2
- import { useState as I, useRef as N } from "react";
3
- import { c as n, B as S } from "../../../../Button-BjNjCLw8.js";
4
- import { localizedText as c } from "../../locale.js";
5
- import { EN_LOCALE as C } from "../../../../constants.js";
6
- import { SUPPORTED_IMAGE_EXTENSIONS as P } from "../../constants.js";
7
- import { UPLOAD_BUTTON_WIDTH_DEFAULT as U, UPLOAD_BUTTON_TAB_INDEX as A, UPLOAD_BUTTON_IMAGE_SIZE as d } from "./constants.js";
8
- import '../../../../assets/upload-button.css';const G = "data:image/svg+xml,%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Transformed%20by:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%201024%201024'%20xmlns='http://www.w3.org/2000/svg'%20fill='%23000000'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'/%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3cpath%20fill='%23ffffff'%20d='M544%20864V672h128L512%20480%20352%20672h128v192H320v-1.6c-5.376.32-10.496%201.6-16%201.6A240%20240%200%200%201%2064%20624c0-123.136%2093.12-223.488%20212.608-237.248A239.808%20239.808%200%200%201%20512%20192a239.872%20239.872%200%200%201%20235.456%20194.752c119.488%2013.76%20212.48%20114.112%20212.48%20237.248a240%20240%200%200%201-240%20240c-5.376%200-10.56-1.28-16-1.6v1.6H544z'/%3e%3c/g%3e%3c/svg%3e", L = "_dragDropWrapper_z6dm0_1", b = "_uploadButton_z6dm0_1", R = "_input_z6dm0_1", s = {
9
- dragDropWrapper: L,
10
- uploadButton: b,
11
- input: R
12
- }, H = (g) => {
1
+ import { jsx as r, jsxs as h, Fragment as U } from "react/jsx-runtime";
2
+ import { useState as A, useRef as B } from "react";
3
+ import { c as t } from "../../../../index-B2JRaoNz.js";
4
+ import { localizedText as m } from "../../locale.js";
5
+ import { EN_LOCALE as G } from "../../../../constants.js";
6
+ import { SUPPORTED_IMAGE_EXTENSIONS as b } from "../../constants.js";
7
+ import { UPLOAD_BUTTON_WIDTH_DEFAULT as R, UPLOAD_BUTTON_TAB_INDEX as V, UPLOAD_BUTTON_IMAGE_SIZE as _ } from "./constants.js";
8
+ import { B as k } from "../../../../Button-0AB7oP6Y.js";
9
+ import '../../../../assets/upload-button.css';const y = "data:image/svg+xml,%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Transformed%20by:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%201024%201024'%20xmlns='http://www.w3.org/2000/svg'%20fill='%23000000'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'/%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3cpath%20fill='%23ffffff'%20d='M544%20864V672h128L512%20480%20352%20672h128v192H320v-1.6c-5.376.32-10.496%201.6-16%201.6A240%20240%200%200%201%2064%20624c0-123.136%2093.12-223.488%20212.608-237.248A239.808%20239.808%200%200%201%20512%20192a239.872%20239.872%200%200%201%20235.456%20194.752c119.488%2013.76%20212.48%20114.112%20212.48%20237.248a240%20240%200%200%201-240%20240c-5.376%200-10.56-1.28-16-1.6v1.6H544z'/%3e%3c/g%3e%3c/svg%3e", W = "_dragDropWrapper_cgx9x_1", j = "_input_cgx9x_4", a = {
10
+ dragDropWrapper: W,
11
+ input: j
12
+ }, J = (v) => {
13
13
  const {
14
- buttonClassname: u,
15
- buttonDisabled: o = !1,
16
- children: f,
17
- className: m,
18
- onChange: e,
19
- locale: p = C,
20
- width: h = U,
21
- allowedExtensions: D = P,
22
- ...v
23
- } = g, [_, r] = I(!1), T = N(null), i = (t) => {
24
- t && t.length > 0 && e && e({
14
+ buttonClassname: x,
15
+ buttonDisabled: n = !1,
16
+ children: T,
17
+ className: c,
18
+ onChange: o,
19
+ locale: l = G,
20
+ width: w = R,
21
+ allowedExtensions: d = b,
22
+ onDragOver: E = () => {
23
+ },
24
+ onDragLeave: O = () => {
25
+ },
26
+ onDragDrop: C = () => {
27
+ },
28
+ button: s,
29
+ ...g
30
+ } = v, [N, i] = A(!1), p = B(null), f = (e) => {
31
+ e && e.length > 0 && o && o({
25
32
  target: {
26
- files: t,
33
+ files: e,
27
34
  value: ""
28
35
  }
29
36
  });
30
- }, w = (t) => {
31
- t.preventDefault(), t.stopPropagation(), o || r(!0);
32
- }, E = (t) => {
33
- t.preventDefault(), t.stopPropagation(), r(!1);
34
- }, x = (t) => {
35
- if (t.preventDefault(), t.stopPropagation(), r(!1), o) return;
36
- const l = t.dataTransfer?.files;
37
- i(l);
38
- }, O = (t) => {
39
- i(t.target.files), e && e(t);
37
+ }, I = (e) => {
38
+ e.preventDefault(), e.stopPropagation(), E(e), n || i(!0);
39
+ }, S = (e) => {
40
+ e.preventDefault(), e.stopPropagation(), O(e), i(!1);
41
+ }, L = (e) => {
42
+ if (e.preventDefault(), e.stopPropagation(), C(e), i(!1), n) return;
43
+ const D = e.dataTransfer?.files;
44
+ f(D);
45
+ }, P = () => {
46
+ s && p.current?.click();
47
+ }, u = (e) => {
48
+ f(e.target.files), o && o(e);
40
49
  };
41
- return /* @__PURE__ */ a(
50
+ return /* @__PURE__ */ r(
42
51
  "div",
43
52
  {
44
- className: n(s.dragDropWrapper),
45
- onDragOver: w,
46
- onDragLeave: E,
47
- onDrop: x,
48
- children: /* @__PURE__ */ B(
49
- S,
53
+ className: t(a.dragDropWrapper),
54
+ onDragOver: I,
55
+ onDragLeave: S,
56
+ onDrop: L,
57
+ onClick: P,
58
+ children: s ? /* @__PURE__ */ h(U, { children: [
59
+ s,
60
+ /* @__PURE__ */ r(
61
+ "input",
62
+ {
63
+ ref: p,
64
+ className: t(a.input, c),
65
+ type: "file",
66
+ accept: d.join(", "),
67
+ onChange: u,
68
+ ...g
69
+ }
70
+ )
71
+ ] }) : /* @__PURE__ */ h(
72
+ k,
50
73
  {
51
74
  component: "label",
52
75
  sx: {
53
- width: h
76
+ width: w
54
77
  },
55
78
  role: "none",
56
79
  variant: "contained",
57
- disabled: o,
58
- tabIndex: A,
59
- className: n(s.uploadButton, u),
60
- startIcon: /* @__PURE__ */ a(
80
+ disabled: n,
81
+ tabIndex: V,
82
+ className: t(a.uploadButton, x),
83
+ startIcon: /* @__PURE__ */ r(
61
84
  "img",
62
85
  {
63
- width: d,
64
- height: d,
65
- src: G,
66
- alt: c[p].upload
86
+ width: _,
87
+ height: _,
88
+ src: y,
89
+ alt: m[l].upload
67
90
  }
68
91
  ),
69
92
  children: [
70
- _ ? c[p].drop : f,
71
- /* @__PURE__ */ a(
93
+ N ? m[l].drop : T,
94
+ /* @__PURE__ */ r(
72
95
  "input",
73
96
  {
74
- ref: T,
75
- className: n(s.input, m),
97
+ ref: p,
98
+ className: t(a.input, c),
76
99
  type: "file",
77
- accept: D.join(", "),
78
- onChange: O,
79
- ...v
100
+ accept: d.join(", "),
101
+ onChange: u,
102
+ ...g
80
103
  }
81
104
  )
82
105
  ]
@@ -86,5 +109,5 @@ import '../../../../assets/upload-button.css';const G = "data:image/svg+xml,%3c!
86
109
  );
87
110
  };
88
111
  export {
89
- H as UploadButton
112
+ J as UploadButton
90
113
  };