@eyesee/ui-components 0.1.3 → 0.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/README.md CHANGED
@@ -14,12 +14,14 @@ npm install @eyesee/ui-components
14
14
 
15
15
  ### Peer dependencies
16
16
 
17
- Install these in your consuming application if not already present:
17
+ npm 7+ installs these automatically when you add the package. Install manually only if your setup does not resolve peers:
18
18
 
19
19
  ```bash
20
- npm install react react-dom clsx react-hook-form react-toastify
20
+ npm install react react-dom clsx react-hook-form react-toastify sass
21
21
  ```
22
22
 
23
+ `sass` is required when you use the SCSS mixins entry point (`@eyesee/ui-components/mixins`) in your own stylesheets.
24
+
23
25
  ---
24
26
 
25
27
  ## Setup
@@ -0,0 +1,15 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { createIcon as e } from "./createIcon.js";
3
+ const c = e(({ strokeColor: C, strokeWidth: o }) => /* @__PURE__ */ r(
4
+ "path",
5
+ {
6
+ d: "M3.34333 6.05143C3.08779 6.19712 2.87523 6.40768 2.72715 6.66185C2.57906 6.91602 2.50071 7.20477 2.5 7.49893V15.8323C2.5 16.7489 3.25 17.4989 4.16667 17.4989H12.5C13.125 17.4989 13.465 17.1781 13.75 16.6656M9.16667 8.33333H14.1667M11.6667 5.83333V10.8333M5.83333 4.7225C5.83333 4.13306 6.06749 3.56775 6.48429 3.15096C6.90109 2.73416 7.46639 2.5 8.05583 2.5H15.2775C15.5694 2.5 15.8584 2.55749 16.128 2.66918C16.3977 2.78087 16.6427 2.94458 16.849 3.15096C17.0554 3.35733 17.2191 3.60234 17.3308 3.87199C17.4425 4.14163 17.5 4.43064 17.5 4.7225V11.9442C17.5 12.236 17.4425 12.525 17.3308 12.7947C17.2191 13.0643 17.0554 13.3093 16.849 13.5157C16.6427 13.7221 16.3977 13.8858 16.128 13.9975C15.8584 14.1092 15.5694 14.1667 15.2775 14.1667H8.05583C7.46639 14.1667 6.90109 13.9325 6.48429 13.5157C6.06749 13.0989 5.83333 12.5336 5.83333 11.9442V4.7225Z",
7
+ stroke: C,
8
+ strokeWidth: o,
9
+ strokeLinecap: "round",
10
+ strokeLinejoin: "round"
11
+ }
12
+ ));
13
+ export {
14
+ c as RectanglesAddIcon
15
+ };
@@ -0,0 +1,107 @@
1
+ import { jsxs as r, Fragment as n, jsx as i } from "react/jsx-runtime";
2
+ import { createIcon as p } from "./createIcon.js";
3
+ const s = p(({ strokeColor: e, strokeWidth: t }) => /* @__PURE__ */ r(n, { children: [
4
+ /* @__PURE__ */ i(
5
+ "path",
6
+ {
7
+ d: "M3.2002 25.6V9C3.2002 8.44772 3.64791 8 4.2002 8H27.8002C28.3525 8 28.8002 8.44772 28.8002 9V16",
8
+ stroke: e,
9
+ strokeWidth: t,
10
+ strokeMiterlimit: "10",
11
+ strokeLinecap: "round"
12
+ }
13
+ ),
14
+ /* @__PURE__ */ i(
15
+ "path",
16
+ {
17
+ d: "M6.61328 24H18",
18
+ stroke: e,
19
+ strokeWidth: t,
20
+ strokeMiterlimit: "10",
21
+ strokeLinecap: "round"
22
+ }
23
+ ),
24
+ /* @__PURE__ */ i(
25
+ "path",
26
+ {
27
+ d: "M6.61328 16H25.3866",
28
+ stroke: e,
29
+ strokeWidth: t,
30
+ strokeMiterlimit: "10",
31
+ strokeLinecap: "round"
32
+ }
33
+ ),
34
+ /* @__PURE__ */ i(
35
+ "path",
36
+ {
37
+ d: "M8.32031 24V20.8",
38
+ stroke: e,
39
+ strokeWidth: t,
40
+ strokeMiterlimit: "10",
41
+ strokeLinecap: "round"
42
+ }
43
+ ),
44
+ /* @__PURE__ */ i(
45
+ "path",
46
+ {
47
+ d: "M8.32031 16V12.8",
48
+ stroke: e,
49
+ strokeWidth: t,
50
+ strokeMiterlimit: "10",
51
+ strokeLinecap: "round"
52
+ }
53
+ ),
54
+ /* @__PURE__ */ i(
55
+ "path",
56
+ {
57
+ d: "M13.4404 24V20.8",
58
+ stroke: e,
59
+ strokeWidth: t,
60
+ strokeMiterlimit: "10",
61
+ strokeLinecap: "round"
62
+ }
63
+ ),
64
+ /* @__PURE__ */ i(
65
+ "path",
66
+ {
67
+ d: "M13.4404 16V12.8",
68
+ stroke: e,
69
+ strokeWidth: t,
70
+ strokeMiterlimit: "10",
71
+ strokeLinecap: "round"
72
+ }
73
+ ),
74
+ /* @__PURE__ */ i(
75
+ "path",
76
+ {
77
+ d: "M18.5605 16V12.8",
78
+ stroke: e,
79
+ strokeWidth: t,
80
+ strokeMiterlimit: "10",
81
+ strokeLinecap: "round"
82
+ }
83
+ ),
84
+ /* @__PURE__ */ i(
85
+ "path",
86
+ {
87
+ d: "M23.6807 16V12.8",
88
+ stroke: e,
89
+ strokeWidth: t,
90
+ strokeMiterlimit: "10",
91
+ strokeLinecap: "round"
92
+ }
93
+ ),
94
+ /* @__PURE__ */ i(
95
+ "path",
96
+ {
97
+ d: "M22 24H30M26 20V28",
98
+ stroke: e,
99
+ strokeWidth: t,
100
+ strokeLinecap: "round",
101
+ strokeLinejoin: "round"
102
+ }
103
+ )
104
+ ] }));
105
+ export {
106
+ s as ShelfAddIcon
107
+ };
@@ -0,0 +1,117 @@
1
+ import { jsxs as r, Fragment as n, jsx as i } from "react/jsx-runtime";
2
+ import { createIcon as p } from "./createIcon.js";
3
+ const s = p(({ strokeColor: t, strokeWidth: e }) => /* @__PURE__ */ r(n, { children: [
4
+ /* @__PURE__ */ i(
5
+ "path",
6
+ {
7
+ d: "M3.2002 25.6V9C3.2002 8.44772 3.64791 8 4.2002 8H27.8002C28.3525 8 28.8002 8.44772 28.8002 9V25.6",
8
+ stroke: t,
9
+ strokeWidth: e,
10
+ strokeMiterlimit: "10",
11
+ strokeLinecap: "round"
12
+ }
13
+ ),
14
+ /* @__PURE__ */ i(
15
+ "path",
16
+ {
17
+ d: "M6.61328 24H25.3866",
18
+ stroke: t,
19
+ strokeWidth: e,
20
+ strokeMiterlimit: "10",
21
+ strokeLinecap: "round"
22
+ }
23
+ ),
24
+ /* @__PURE__ */ i(
25
+ "path",
26
+ {
27
+ d: "M6.61328 16H25.3866",
28
+ stroke: t,
29
+ strokeWidth: e,
30
+ strokeMiterlimit: "10",
31
+ strokeLinecap: "round"
32
+ }
33
+ ),
34
+ /* @__PURE__ */ i(
35
+ "path",
36
+ {
37
+ d: "M8.32031 24V20.8",
38
+ stroke: t,
39
+ strokeWidth: e,
40
+ strokeMiterlimit: "10",
41
+ strokeLinecap: "round"
42
+ }
43
+ ),
44
+ /* @__PURE__ */ i(
45
+ "path",
46
+ {
47
+ d: "M8.32031 16V12.8",
48
+ stroke: t,
49
+ strokeWidth: e,
50
+ strokeMiterlimit: "10",
51
+ strokeLinecap: "round"
52
+ }
53
+ ),
54
+ /* @__PURE__ */ i(
55
+ "path",
56
+ {
57
+ d: "M13.4404 24V20.8",
58
+ stroke: t,
59
+ strokeWidth: e,
60
+ strokeMiterlimit: "10",
61
+ strokeLinecap: "round"
62
+ }
63
+ ),
64
+ /* @__PURE__ */ i(
65
+ "path",
66
+ {
67
+ d: "M13.4404 16V12.8",
68
+ stroke: t,
69
+ strokeWidth: e,
70
+ strokeMiterlimit: "10",
71
+ strokeLinecap: "round"
72
+ }
73
+ ),
74
+ /* @__PURE__ */ i(
75
+ "path",
76
+ {
77
+ d: "M18.5605 24V20.8",
78
+ stroke: t,
79
+ strokeWidth: e,
80
+ strokeMiterlimit: "10",
81
+ strokeLinecap: "round"
82
+ }
83
+ ),
84
+ /* @__PURE__ */ i(
85
+ "path",
86
+ {
87
+ d: "M18.5605 16V12.8",
88
+ stroke: t,
89
+ strokeWidth: e,
90
+ strokeMiterlimit: "10",
91
+ strokeLinecap: "round"
92
+ }
93
+ ),
94
+ /* @__PURE__ */ i(
95
+ "path",
96
+ {
97
+ d: "M23.6807 24V20.8",
98
+ stroke: t,
99
+ strokeWidth: e,
100
+ strokeMiterlimit: "10",
101
+ strokeLinecap: "round"
102
+ }
103
+ ),
104
+ /* @__PURE__ */ i(
105
+ "path",
106
+ {
107
+ d: "M23.6807 16V12.8",
108
+ stroke: t,
109
+ strokeWidth: e,
110
+ strokeMiterlimit: "10",
111
+ strokeLinecap: "round"
112
+ }
113
+ )
114
+ ] }));
115
+ export {
116
+ s as ShelfIcon
117
+ };
@@ -0,0 +1,107 @@
1
+ import { jsxs as r, Fragment as n, jsx as i } from "react/jsx-runtime";
2
+ import { createIcon as p } from "./createIcon.js";
3
+ const s = p(({ strokeColor: e, strokeWidth: t }) => /* @__PURE__ */ r(n, { children: [
4
+ /* @__PURE__ */ i(
5
+ "path",
6
+ {
7
+ d: "M3.2002 25.6V9C3.2002 8.44772 3.64791 8 4.2002 8H27.8002C28.3525 8 28.8002 8.44772 28.8002 9V16",
8
+ stroke: e,
9
+ strokeWidth: t,
10
+ strokeMiterlimit: "10",
11
+ strokeLinecap: "round"
12
+ }
13
+ ),
14
+ /* @__PURE__ */ i(
15
+ "path",
16
+ {
17
+ d: "M6.61328 24H18",
18
+ stroke: e,
19
+ strokeWidth: t,
20
+ strokeMiterlimit: "10",
21
+ strokeLinecap: "round"
22
+ }
23
+ ),
24
+ /* @__PURE__ */ i(
25
+ "path",
26
+ {
27
+ d: "M6.61328 16H25.3866",
28
+ stroke: e,
29
+ strokeWidth: t,
30
+ strokeMiterlimit: "10",
31
+ strokeLinecap: "round"
32
+ }
33
+ ),
34
+ /* @__PURE__ */ i(
35
+ "path",
36
+ {
37
+ d: "M8.32031 24V20.8",
38
+ stroke: e,
39
+ strokeWidth: t,
40
+ strokeMiterlimit: "10",
41
+ strokeLinecap: "round"
42
+ }
43
+ ),
44
+ /* @__PURE__ */ i(
45
+ "path",
46
+ {
47
+ d: "M8.32031 16V12.8",
48
+ stroke: e,
49
+ strokeWidth: t,
50
+ strokeMiterlimit: "10",
51
+ strokeLinecap: "round"
52
+ }
53
+ ),
54
+ /* @__PURE__ */ i(
55
+ "path",
56
+ {
57
+ d: "M13.4404 24V20.8",
58
+ stroke: e,
59
+ strokeWidth: t,
60
+ strokeMiterlimit: "10",
61
+ strokeLinecap: "round"
62
+ }
63
+ ),
64
+ /* @__PURE__ */ i(
65
+ "path",
66
+ {
67
+ d: "M13.4404 16V12.8",
68
+ stroke: e,
69
+ strokeWidth: t,
70
+ strokeMiterlimit: "10",
71
+ strokeLinecap: "round"
72
+ }
73
+ ),
74
+ /* @__PURE__ */ i(
75
+ "path",
76
+ {
77
+ d: "M18.5605 16V12.8",
78
+ stroke: e,
79
+ strokeWidth: t,
80
+ strokeMiterlimit: "10",
81
+ strokeLinecap: "round"
82
+ }
83
+ ),
84
+ /* @__PURE__ */ i(
85
+ "path",
86
+ {
87
+ d: "M23.6807 16V12.8",
88
+ stroke: e,
89
+ strokeWidth: t,
90
+ strokeMiterlimit: "10",
91
+ strokeLinecap: "round"
92
+ }
93
+ ),
94
+ /* @__PURE__ */ i(
95
+ "path",
96
+ {
97
+ d: "M25.5 27.9998V28.0098M25.5 24.9998C25.9483 24.9983 26.3832 24.8466 26.735 24.5687C27.0868 24.2909 27.3352 23.903 27.4406 23.4673C27.5459 23.0315 27.5019 22.5731 27.3158 22.1652C27.1297 21.7574 26.8122 21.4238 26.414 21.2178C26.0162 21.014 25.5611 20.9508 25.1228 21.0385C24.6845 21.1262 24.2888 21.3596 24 21.7008",
98
+ stroke: e,
99
+ strokeWidth: t,
100
+ strokeLinecap: "round",
101
+ strokeLinejoin: "round"
102
+ }
103
+ )
104
+ ] }));
105
+ export {
106
+ s as ShelfInfoIcon
107
+ };
@@ -0,0 +1,15 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { createIcon as t } from "./createIcon.js";
3
+ const c = t(({ strokeColor: o, strokeWidth: r }) => /* @__PURE__ */ e(
4
+ "path",
5
+ {
6
+ d: "M16.6667 28H6.66667C5.95942 28 5.28115 27.719 4.78105 27.219C4.28095 26.7189 4 26.0406 4 25.3333V6.66667C4 5.95942 4.28095 5.28115 4.78105 4.78105C5.28115 4.28095 5.95942 4 6.66667 4H25.3333C26.0406 4 26.7189 4.28095 27.219 4.78105C27.719 5.28115 28 5.95942 28 6.66667V16.6667M21.3333 25.3333H29.3333M25.3333 21.3333V29.3333",
7
+ stroke: o,
8
+ strokeWidth: r,
9
+ strokeLinecap: "round",
10
+ strokeLinejoin: "round"
11
+ }
12
+ ));
13
+ export {
14
+ c as SquareAddIcon
15
+ };
@@ -1,49 +1,50 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import h from "clsx";
1
+ import { jsx as h } from "react/jsx-runtime";
2
+ import p from "clsx";
3
3
  import { getIconDimensions as x } from "./constants.js";
4
- import r from "./createIcon.module.scss.js";
5
- const N = (p, u = {}) => {
6
- const { animatedByDefault: f = !1 } = u;
4
+ import n from "./createIcon.module.scss.js";
5
+ const j = (u, f = {}) => {
6
+ const { animatedByDefault: d = !1 } = f;
7
7
  return ({
8
- iconSize: d = "m",
9
- onClick: e = null,
10
- fill: n = "none",
11
- strokeColor: c = "currentColor",
12
- strokeColorOnHover: s,
13
- fillOnHover: t,
8
+ iconSize: y = "m",
9
+ onClick: r = null,
10
+ fill: t = "none",
11
+ strokeColor: s = "currentColor",
12
+ strokeColorOnHover: l,
13
+ fillOnHover: e,
14
14
  disabled: o,
15
- animated: v = f
15
+ animated: g = d,
16
+ viewBoxSize: c
16
17
  }) => {
17
- const { size: l, strokeWidth: y } = x(d), a = o && n !== "none" && n !== "transparent" ? "var(--color--icon--disabled--default)" : n, g = o && c !== "currentColor" ? "var(--color--icon--disabled--default)" : c, k = () => {
18
- e && !o && e();
19
- }, i = { width: l, height: l };
20
- return /* @__PURE__ */ m(
18
+ const { size: a, strokeWidth: k } = x(y), i = o && t !== "none" && t !== "transparent" ? "var(--color--icon--disabled--default)" : t, v = o && s !== "currentColor" ? "var(--color--icon--disabled--default)" : s, C = () => {
19
+ r && !o && r();
20
+ }, m = { width: a, height: a }, I = c ? `0 0 ${c} ${c}` : "0 0 32 32";
21
+ return /* @__PURE__ */ h(
21
22
  "span",
22
23
  {
23
- className: h(
24
- r.iconWrapper,
25
- o && r.disabled,
26
- e && !o && r.clickable
24
+ className: p(
25
+ n.iconWrapper,
26
+ o && n.disabled,
27
+ r && !o && n.clickable
27
28
  ),
28
- style: i,
29
- onClick: k,
30
- children: /* @__PURE__ */ m(
29
+ style: m,
30
+ onClick: C,
31
+ children: /* @__PURE__ */ h(
31
32
  "svg",
32
33
  {
33
- className: h(r.svg, v && r.spinner),
34
- viewBox: "0 0 32 32",
35
- fill: a,
36
- "data-stroke-on-hover": !!s,
37
- "data-fill-on-hover": !!t,
34
+ className: p(n.svg, g && n.spinner),
35
+ viewBox: I,
36
+ fill: i,
37
+ "data-stroke-on-hover": !!l,
38
+ "data-fill-on-hover": !!e,
38
39
  style: {
39
- ...i,
40
- "--icon-stroke-hover": t ? "currentColor" : s,
41
- "--icon-fill-hover": t || "transparent"
40
+ ...m,
41
+ "--icon-stroke-hover": e ? "currentColor" : l,
42
+ "--icon-fill-hover": e || "transparent"
42
43
  },
43
- children: p({
44
- strokeColor: g,
45
- strokeWidth: y,
46
- fill: a
44
+ children: u({
45
+ strokeColor: v,
46
+ strokeWidth: k,
47
+ fill: i
47
48
  })
48
49
  }
49
50
  )
@@ -52,5 +53,5 @@ const N = (p, u = {}) => {
52
53
  };
53
54
  };
54
55
  export {
55
- N as createIcon
56
+ j as createIcon
56
57
  };