@eyesee/ui-components 0.6.0 → 0.8.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.
@@ -1,12 +1,12 @@
1
1
  import { jsxs as a, jsx as s } from "react/jsx-runtime";
2
- import { useState as M, useEffect as A } from "react";
3
- import h from "clsx";
4
- import { createPortal as F } from "react-dom";
2
+ import { useState as L, useEffect as F } from "react";
3
+ import M from "clsx";
4
+ import { createPortal as G } from "react-dom";
5
5
  import { HelpIcon as k } from "../icons-v2/HelpIcon.js";
6
6
  import { XIcon as B } from "../icons-v2/XIcon.js";
7
7
  import o from "./Tooltip.module.scss.js";
8
- import { useTooltipPositioning as G } from "./useTooltipPositioning.js";
9
- const V = ({
8
+ import { useTooltipPositioning as J } from "./useTooltipPositioning.js";
9
+ const b = ({
10
10
  children: v,
11
11
  content: f,
12
12
  title: t,
@@ -20,23 +20,24 @@ const V = ({
20
20
  contentClassName: j,
21
21
  position: D = "top",
22
22
  maxWidth: w = 240,
23
+ fullWidth: W = !1,
23
24
  open: T,
24
25
  onOpenChange: r,
25
26
  portalContainer: $
26
27
  }) => {
27
- const [H, d] = M(i), [u, P] = M(!1), l = T !== void 0, x = l ? T : H, y = (c) => {
28
+ const [H, d] = L(i), [u, P] = L(!1), l = T !== void 0, x = l ? T : H, y = (c) => {
28
29
  m || u || (l || d(c), r == null || r(c));
29
30
  }, I = () => {
30
31
  i || y(!0);
31
32
  }, S = () => {
32
33
  i || y(!1);
33
- }, L = (c) => {
34
+ }, h = (c) => {
34
35
  c.stopPropagation(), P(!0), l || d(!1), r == null || r(!1);
35
36
  };
36
- A(() => {
37
+ F(() => {
37
38
  i && (P(!1), l || d(!0));
38
39
  }, [i, l]);
39
- const { wrapperRef: W, tooltipRef: X, layout: e, isPositioned: q } = G({
40
+ const { wrapperRef: X, tooltipRef: q, layout: e, isPositioned: z } = J({
40
41
  open: x && !u && !m && !!f,
41
42
  desiredPosition: D,
42
43
  showArrow: N,
@@ -44,11 +45,11 @@ const V = ({
44
45
  });
45
46
  if (!f || m)
46
47
  return v;
47
- const z = /* @__PURE__ */ a(
48
+ const A = /* @__PURE__ */ a(
48
49
  "div",
49
50
  {
50
- ref: X,
51
- className: h(
51
+ ref: q,
52
+ className: M(
52
53
  o.tooltip,
53
54
  o[e.resolvedPosition],
54
55
  o[E],
@@ -61,7 +62,7 @@ const V = ({
61
62
  maxWidth: w,
62
63
  top: e.top,
63
64
  left: e.left,
64
- visibility: q ? "visible" : "hidden",
65
+ visibility: z ? "visible" : "hidden",
65
66
  ...!!e.arrowLeft && {
66
67
  "--arrow-left": `${e.arrowLeft}px`
67
68
  },
@@ -74,12 +75,12 @@ const V = ({
74
75
  n && /* @__PURE__ */ s(k, {}),
75
76
  t ? /* @__PURE__ */ s("div", { className: o.title, children: t }) : /* @__PURE__ */ s("span", {})
76
77
  ] }),
77
- p && /* @__PURE__ */ s("span", { className: o.closeButton, onClick: L, children: /* @__PURE__ */ s(B, {}) })
78
+ p && /* @__PURE__ */ s("span", { className: o.closeButton, onClick: h, children: /* @__PURE__ */ s(B, {}) })
78
79
  ] }),
79
80
  /* @__PURE__ */ a("div", { className: o.content, children: [
80
81
  n && !t && /* @__PURE__ */ s(k, {}),
81
82
  /* @__PURE__ */ s("span", { className: o.contentText, children: f }),
82
- p && !t && /* @__PURE__ */ s("span", { className: o.closeButton, onClick: L, children: /* @__PURE__ */ s(B, {}) })
83
+ p && !t && /* @__PURE__ */ s("span", { className: o.closeButton, onClick: h, children: /* @__PURE__ */ s(B, {}) })
83
84
  ] })
84
85
  ]
85
86
  }
@@ -87,17 +88,17 @@ const V = ({
87
88
  return /* @__PURE__ */ a(
88
89
  "div",
89
90
  {
90
- ref: W,
91
- className: h(o.wrapper, R),
91
+ ref: X,
92
+ className: M(o.wrapper, W && o.fullWidth, R),
92
93
  onMouseEnter: I,
93
94
  onMouseLeave: S,
94
95
  children: [
95
96
  v,
96
- x && !u && F(z, $ ?? document.body)
97
+ x && !u && G(A, $ ?? document.body)
97
98
  ]
98
99
  }
99
100
  );
100
101
  };
101
102
  export {
102
- V as Tooltip
103
+ b as Tooltip
103
104
  };
@@ -1,39 +1,41 @@
1
- const t = "_wrapper_rlyb1_3", o = "_tooltip_rlyb1_11", _ = "_dark_rlyb1_29", l = "_light_rlyb1_38", e = "_withArrow_rlyb1_49", n = "_top_rlyb1_57", r = "_bottom_rlyb1_65", c = "_left_rlyb1_73", i = "_right_rlyb1_81", s = "_header_rlyb1_105", b = "_titleRow_rlyb1_113", h = "_title_rlyb1_113", y = "_content_rlyb1_128", p = "_contentText_rlyb1_138", w = "_noTitleWithIcon_rlyb1_144", a = "_noTitleWithClose_rlyb1_148", T = "_closeButton_rlyb1_154", d = {
1
+ const t = "_wrapper_1fyp1_3", o = "_fullWidth_1fyp1_11", _ = "_tooltip_1fyp1_18", n = "_dark_1fyp1_36", e = "_light_1fyp1_45", l = "_withArrow_1fyp1_56", i = "_top_1fyp1_64", c = "_bottom_1fyp1_72", p = "_left_1fyp1_80", s = "_right_1fyp1_88", f = "_header_1fyp1_112", r = "_titleRow_1fyp1_120", h = "_title_1fyp1_120", y = "_content_1fyp1_135", w = "_contentText_1fyp1_145", a = "_noTitleWithIcon_1fyp1_151", d = "_noTitleWithClose_1fyp1_155", T = "_closeButton_1fyp1_161", W = {
2
2
  wrapper: t,
3
- tooltip: o,
4
- dark: _,
5
- light: l,
6
- withArrow: e,
7
- top: n,
8
- bottom: r,
9
- left: c,
10
- right: i,
11
- header: s,
12
- titleRow: b,
3
+ fullWidth: o,
4
+ tooltip: _,
5
+ dark: n,
6
+ light: e,
7
+ withArrow: l,
8
+ top: i,
9
+ bottom: c,
10
+ left: p,
11
+ right: s,
12
+ header: f,
13
+ titleRow: r,
13
14
  title: h,
14
15
  content: y,
15
- contentText: p,
16
- noTitleWithIcon: w,
17
- noTitleWithClose: a,
16
+ contentText: w,
17
+ noTitleWithIcon: a,
18
+ noTitleWithClose: d,
18
19
  closeButton: T
19
20
  };
20
21
  export {
21
- r as bottom,
22
+ c as bottom,
22
23
  T as closeButton,
23
24
  y as content,
24
- p as contentText,
25
- _ as dark,
26
- d as default,
27
- s as header,
28
- c as left,
29
- l as light,
30
- a as noTitleWithClose,
31
- w as noTitleWithIcon,
32
- i as right,
25
+ w as contentText,
26
+ n as dark,
27
+ W as default,
28
+ o as fullWidth,
29
+ f as header,
30
+ p as left,
31
+ e as light,
32
+ d as noTitleWithClose,
33
+ a as noTitleWithIcon,
34
+ s as right,
33
35
  h as title,
34
- b as titleRow,
35
- o as tooltip,
36
- n as top,
37
- e as withArrow,
36
+ r as titleRow,
37
+ _ as tooltip,
38
+ i as top,
39
+ l as withArrow,
38
40
  t as wrapper
39
41
  };
@@ -0,0 +1,15 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { createIcon as e } from "./createIcon.js";
3
+ const c = e(({ strokeColor: o, strokeWidth: r }) => /* @__PURE__ */ t(
4
+ "path",
5
+ {
6
+ d: "M2.91602 4.58333L4.16602 5.83333L6.24935 3.75M2.91602 9.58333L4.16602 10.8333L6.24935 8.75M2.91602 14.5833L4.16602 15.8333L6.24935 13.75M9.16602 5H16.666M9.16602 10H16.666M9.16602 15H16.666",
7
+ stroke: o,
8
+ strokeWidth: r,
9
+ strokeLinecap: "round",
10
+ strokeLinejoin: "round"
11
+ }
12
+ ));
13
+ export {
14
+ c as ListCheckIcon
15
+ };
@@ -1,39 +1,35 @@
1
- import { jsxs as p, Fragment as c, jsx as a } from "react/jsx-runtime";
2
- import { createIcon as m } from "./createIcon.js";
3
- const r = m(({ strokeWidth: C, fill: L }) => /* @__PURE__ */ p(c, { children: [
4
- /* @__PURE__ */ a(
1
+ import { jsxs as a, Fragment as i, jsx as L } from "react/jsx-runtime";
2
+ import { createIcon as p } from "./createIcon.js";
3
+ const f = p(({ strokeColor: C }) => /* @__PURE__ */ a(i, { children: [
4
+ /* @__PURE__ */ L(
5
5
  "path",
6
6
  {
7
7
  d: "M28.0864 21.0808C27.447 21.0808 26.9267 21.6011 26.9267 22.2404C26.9267 24.8401 24.8115 26.9549 22.2119 26.9549C21.5726 26.9549 21.0522 27.4752 21.0522 28.1145C21.0522 28.7539 21.5726 29.2742 22.2119 29.2742C26.0902 29.2742 29.2456 26.1187 29.2456 22.2404C29.2456 21.6011 28.7253 21.0808 28.086 21.0808H28.0864Z",
8
- fill: L,
9
- strokeWidth: C
8
+ fill: C
10
9
  }
11
10
  ),
12
- /* @__PURE__ */ a(
11
+ /* @__PURE__ */ L(
13
12
  "path",
14
13
  {
15
14
  d: "M9.78763 26.9549C7.18799 26.9549 5.0728 24.8401 5.0728 22.2404C5.0728 21.6011 4.55249 21.0808 3.91316 21.0808C3.27422 21.0808 2.75391 21.6011 2.75391 22.2404C2.75391 26.1187 5.90934 29.2742 9.78763 29.2742C10.427 29.2742 10.9473 28.7539 10.9473 28.1145C10.9473 27.4752 10.427 26.9549 9.78763 26.9549Z",
16
- fill: L,
17
- strokeWidth: C
15
+ fill: C
18
16
  }
19
17
  ),
20
- /* @__PURE__ */ a(
18
+ /* @__PURE__ */ L(
21
19
  "path",
22
20
  {
23
21
  d: "M3.91354 10.9517C4.55287 10.9517 5.07318 10.4314 5.07318 9.79203C5.07318 7.19238 7.18837 5.07757 9.78801 5.07757C10.4273 5.07757 10.9476 4.55726 10.9476 3.91794C10.9476 3.27861 10.4273 2.7583 9.78801 2.7583C5.90934 2.75868 2.75391 5.91411 2.75391 9.79241C2.75391 10.4317 3.27422 10.952 3.91354 10.952V10.9517Z",
24
- fill: L,
25
- strokeWidth: C
22
+ fill: C
26
23
  }
27
24
  ),
28
- /* @__PURE__ */ a(
25
+ /* @__PURE__ */ L(
29
26
  "path",
30
27
  {
31
28
  d: "M25.6932 18.373C26.2589 18.1636 26.5492 17.533 26.3397 16.9669C26.2383 16.6927 26.0361 16.4745 25.7706 16.3524C25.5055 16.2303 25.208 16.2189 24.9337 16.3204L20.1616 18.0861C18.7266 18.6171 17.599 19.7447 17.068 21.1798L15.5464 25.2923L14.0247 21.1798C13.4937 19.7447 12.3661 18.6175 10.9315 18.0861L6.81934 16.5645L10.9315 15.0428C12.3665 14.5119 13.4941 13.3843 14.0251 11.9492L15.5467 7.8367L17.0684 11.9492C17.5994 13.3843 18.727 14.5119 20.162 15.0428L20.7357 15.2553C22.1017 15.7608 23.6325 15.6772 24.9356 15.0257C26.2387 14.3741 27.2236 13.1996 27.6386 11.8035C27.9228 10.8479 27.9354 9.85004 27.6756 8.91738C26.8795 6.05987 24.2497 4.06445 21.2808 4.06445C20.6774 4.06445 20.1864 4.55539 20.1864 5.15886C20.1864 5.76233 20.6774 6.25327 21.2808 6.25327C23.2713 6.25327 25.034 7.59066 25.5677 9.50521C25.7168 10.0408 25.7077 10.6198 25.541 11.1798C25.2942 12.0102 24.7315 12.6809 23.9568 13.0684C23.1816 13.456 22.3077 13.5037 21.4956 13.2031L20.9215 12.9906C20.0865 12.6816 19.43 12.0251 19.121 11.1901L17.3552 6.41767C17.0722 5.65285 16.3623 5.15886 15.5467 5.15886C14.7312 5.15886 14.0217 5.65285 13.7386 6.41767L11.9729 11.1901C11.6639 12.0255 11.0074 12.6816 10.1724 12.9906L5.40031 14.7564C4.63548 15.0394 4.14111 15.7493 4.14111 16.5645C4.14111 17.38 4.6351 18.0896 5.39993 18.3726L10.1724 20.1384C11.0078 20.4474 11.6639 21.1039 11.9729 21.9389L13.739 26.7113C14.0221 27.4761 14.7319 27.9701 15.5471 27.9701C16.3627 27.9701 17.0726 27.4761 17.3556 26.7113L19.1214 21.9389C19.4304 21.1035 20.0869 20.4474 20.9219 20.1384L25.6943 18.3726L25.6932 18.373Z",
32
- fill: L,
33
- strokeWidth: C
29
+ fill: C
34
30
  }
35
31
  )
36
32
  ] }));
37
33
  export {
38
- r as PackseeIcon
34
+ f as PackseeIcon
39
35
  };
@@ -9,7 +9,7 @@ import { ImageIcon as h } from "./ImageIcon.js";
9
9
  import { DeleteIcon as C } from "./DeleteIcon.js";
10
10
  import { EditIcon as u } from "./EditIcon.js";
11
11
  import { AlphabetIcon as A } from "./AlphabetIcon.js";
12
- import { AdIcon as w } from "./AdIcon.js";
12
+ import { AdIcon as L } from "./AdIcon.js";
13
13
  import { AddMessageIcon as v } from "./AddMessageIcon.js";
14
14
  import { AddUserIcon as M } from "./AddUserIcon.js";
15
15
  import { AdjustmentsIcon as y } from "./AdjustmentsIcon.js";
@@ -36,7 +36,7 @@ import { BookmarkIcon as go } from "./BookmarkIcon.js";
36
36
  import { BoltIcon as So } from "./BoltIcon.js";
37
37
  import { BoldIcon as ko } from "./BoldIcon.js";
38
38
  import { BellIcon as bo } from "./BellIcon.js";
39
- import { AttributesEvaluationIcon as Lo } from "./AttributesEvaluationIcon.js";
39
+ import { AttributesEvaluationIcon as wo } from "./AttributesEvaluationIcon.js";
40
40
  import { ArrowUpIcon as Do } from "./ArrowUpIcon.js";
41
41
  import { ArrowRightIcon as Eo } from "./ArrowRightIcon.js";
42
42
  import { ArrowMoveDownIcon as Fo } from "./ArrowMoveDownIcon.js";
@@ -63,7 +63,7 @@ import { ClockShareIcon as gr } from "./ClockShareIcon.js";
63
63
  import { CloseIcon as Sr } from "./CloseIcon.js";
64
64
  import { CopyIcon as kr } from "./CopyIcon.js";
65
65
  import { CreditCardIcon as br } from "./CreditCardIcon.js";
66
- import { CropIcon as Lr } from "./CropIcon.js";
66
+ import { CropIcon as wr } from "./CropIcon.js";
67
67
  import { DashboardMeterIcon as Dr } from "./DashboardMeterIcon.js";
68
68
  import { DatabaseIcon as Er } from "./DatabaseIcon.js";
69
69
  import { DatabaseCheckIcon as Fr } from "./DatabaseCheckIcon.js";
@@ -90,7 +90,7 @@ import { FileImportIcon as ge } from "./FileImportIcon.js";
90
90
  import { FileNewIcon as Se } from "./FileNewIcon.js";
91
91
  import { FileRemoveIcon as ke } from "./FileRemoveIcon.js";
92
92
  import { FilesIcon as be } from "./FilesIcon.js";
93
- import { FileTemplateIcon as Le } from "./FileTemplateIcon.js";
93
+ import { FileTemplateIcon as we } from "./FileTemplateIcon.js";
94
94
  import { FileUploadIcon as De } from "./FileUploadIcon.js";
95
95
  import { FilterOffIcon as Ee } from "./FilterOffIcon.js";
96
96
  import { FilterOnIcon as Fe } from "./FilterOnIcon.js";
@@ -117,7 +117,7 @@ import { ListViewIcon as gt } from "./ListViewIcon.js";
117
117
  import { LoaderIcon as St } from "./LoaderIcon.js";
118
118
  import { LoadingIcon as kt } from "./LoadingIcon.js";
119
119
  import { LockIcon as bt } from "./LockIcon.js";
120
- import { LockOffIcon as Lt } from "./LockOffIcon.js";
120
+ import { LockOffIcon as wt } from "./LockOffIcon.js";
121
121
  import { LoginIcon as Dt } from "./LoginIcon.js";
122
122
  import { LogoutIcon as Et } from "./LogoutIcon.js";
123
123
  import { MagicwandIcon as Ft } from "./MagicwandIcon.js";
@@ -143,7 +143,7 @@ import { NoteOffIcon as hn } from "./NoteOffIcon.js";
143
143
  import { NoteIcon as Cn } from "./NoteIcon.js";
144
144
  import { Multiplier05Icon as un } from "./Multiplier05Icon.js";
145
145
  import { Multiplier10Icon as An } from "./Multiplier10Icon.js";
146
- import { Multiplier15Icon as wn } from "./Multiplier15Icon.js";
146
+ import { Multiplier15Icon as Ln } from "./Multiplier15Icon.js";
147
147
  import { Multiplier20Icon as vn } from "./Multiplier20Icon.js";
148
148
  import { PlayIcon as Mn } from "./PlayIcon.js";
149
149
  import { PredictiveETIcon as yn } from "./PredictiveETIcon.js";
@@ -170,7 +170,7 @@ import { SocialTiktokIcon as hc } from "./SocialTiktokIcon.js";
170
170
  import { SocialXIcon as Cc } from "./SocialXIcon.js";
171
171
  import { SocialYoutubeIcon as uc } from "./SocialYoutubeIcon.js";
172
172
  import { SortHorizontalIcon as Ac } from "./SortHorizontalIcon.js";
173
- import { StopIcon as wc } from "./StopIcon.js";
173
+ import { StopIcon as Lc } from "./StopIcon.js";
174
174
  import { SurveyIcon as vc } from "./SurveyIcon.js";
175
175
  import { TableIcon as Mc } from "./TableIcon.js";
176
176
  import { TableExportIcon as yc } from "./TableExportIcon.js";
@@ -197,7 +197,7 @@ import { VolumeOffIcon as hp } from "./VolumeOffIcon.js";
197
197
  import { WebIcon as Cp } from "./WebIcon.js";
198
198
  import { XIcon as up } from "./XIcon.js";
199
199
  import { ZipFileIcon as Ap } from "./ZipFileIcon.js";
200
- import { ZoomInIcon as wp } from "./ZoomInIcon.js";
200
+ import { ZoomInIcon as Lp } from "./ZoomInIcon.js";
201
201
  import { ZoomOutIcon as vp } from "./ZoomOutIcon.js";
202
202
  import { ZonePercentageIcon as Mp } from "./ZonePercentageIcon.js";
203
203
  import { PinskewedIcon as yp } from "./PinskewedIcon.js";
@@ -205,8 +205,9 @@ import { MinusIcon as Rp } from "./MinusIcon.js";
205
205
  import { SquareAddIcon as Pp } from "./SquareAddIcon.js";
206
206
  import { RectanglesAddIcon as Op } from "./RectanglesAddIcon.js";
207
207
  import { ColumnIcon as Vp } from "./ColumnIcon.js";
208
+ import { ListCheckIcon as zp } from "./ListCheckIcon.js";
208
209
  export {
209
- w as AdIcon,
210
+ L as AdIcon,
210
211
  v as AddMessageIcon,
211
212
  M as AddUserIcon,
212
213
  y as AdjustmentsIcon,
@@ -225,7 +226,7 @@ export {
225
226
  Fo as ArrowMoveDownIcon,
226
227
  Eo as ArrowRightIcon,
227
228
  Do as ArrowUpIcon,
228
- Lo as AttributesEvaluationIcon,
229
+ wo as AttributesEvaluationIcon,
229
230
  bo as BellIcon,
230
231
  ko as BoldIcon,
231
232
  So as BoltIcon,
@@ -264,7 +265,7 @@ export {
264
265
  Vp as ColumnIcon,
265
266
  kr as CopyIcon,
266
267
  br as CreditCardIcon,
267
- Lr as CropIcon,
268
+ wr as CropIcon,
268
269
  Dr as DashboardMeterIcon,
269
270
  Fr as DatabaseCheckIcon,
270
271
  Er as DatabaseIcon,
@@ -293,7 +294,7 @@ export {
293
294
  ge as FileImportIcon,
294
295
  Se as FileNewIcon,
295
296
  ke as FileRemoveIcon,
296
- Le as FileTemplateIcon,
297
+ we as FileTemplateIcon,
297
298
  De as FileUploadIcon,
298
299
  be as FilesIcon,
299
300
  Ee as FilterOffIcon,
@@ -319,11 +320,12 @@ export {
319
320
  It as LightbulbIcon,
320
321
  it as LikeIcon,
321
322
  dt as LinkIcon,
323
+ zp as ListCheckIcon,
322
324
  gt as ListViewIcon,
323
325
  St as LoaderIcon,
324
326
  kt as LoadingIcon,
325
327
  bt as LockIcon,
326
- Lt as LockOffIcon,
328
+ wt as LockOffIcon,
327
329
  Dt as LoginIcon,
328
330
  Et as LogoutIcon,
329
331
  Ft as MagicwandIcon,
@@ -339,7 +341,7 @@ export {
339
341
  Jt as MoveIcon,
340
342
  un as Multiplier05Icon,
341
343
  An as Multiplier10Icon,
342
- wn as Multiplier15Icon,
344
+ Ln as Multiplier15Icon,
343
345
  vn as Multiplier20Icon,
344
346
  Cn as NoteIcon,
345
347
  hn as NoteOffIcon,
@@ -383,7 +385,7 @@ export {
383
385
  Ac as SortHorizontalIcon,
384
386
  Pp as SquareAddIcon,
385
387
  x as StarIcon,
386
- wc as StopIcon,
388
+ Lc as StopIcon,
387
389
  vc as SurveyIcon,
388
390
  yc as TableExportIcon,
389
391
  Mc as TableIcon,
@@ -411,6 +413,6 @@ export {
411
413
  up as XIcon,
412
414
  Ap as ZipFileIcon,
413
415
  Mp as ZonePercentageIcon,
414
- wp as ZoomInIcon,
416
+ Lp as ZoomInIcon,
415
417
  vp as ZoomOutIcon
416
418
  };