@versini/ui-icons 0.0.0 → 1.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.
@@ -18,7 +18,7 @@ function j(e) {
18
18
  return a.delete(t), a.delete(r), o;
19
19
  };
20
20
  }
21
- function A(e) {
21
+ function S(e) {
22
22
  return Y(e).concat(G(e));
23
23
  }
24
24
  var T = Object.hasOwn || function(e, t) {
@@ -27,7 +27,7 @@ var T = Object.hasOwn || function(e, t) {
27
27
  function m(e, t) {
28
28
  return e || t ? e === t : e === t || e !== e && t !== t;
29
29
  }
30
- var B = "_owner", S = Object.getOwnPropertyDescriptor, M = Object.keys;
30
+ var B = "_owner", A = Object.getOwnPropertyDescriptor, M = Object.keys;
31
31
  function Q(e, t, r) {
32
32
  var n = e.length;
33
33
  if (t.length !== n)
@@ -40,7 +40,7 @@ function Q(e, t, r) {
40
40
  function X(e, t) {
41
41
  return m(e.getTime(), t.getTime());
42
42
  }
43
- function _(e, t, r) {
43
+ function $(e, t, r) {
44
44
  if (e.size !== t.size)
45
45
  return !1;
46
46
  for (var n = {}, a = e.entries(), i = 0, u, o; (u = a.next()) && !u.done; ) {
@@ -64,11 +64,11 @@ function Z(e, t, r) {
64
64
  return !0;
65
65
  }
66
66
  function q(e, t, r) {
67
- var n = A(e), a = n.length;
68
- if (A(t).length !== a)
67
+ var n = S(e), a = n.length;
68
+ if (S(t).length !== a)
69
69
  return !1;
70
70
  for (var i, u, o; a-- > 0; )
71
- if (i = n[a], i === B && (e.$$typeof || t.$$typeof) && e.$$typeof !== t.$$typeof || !T(t, i) || !r.equals(e[i], t[i], i, i, e, t, r) || (u = S(e, i), o = S(t, i), (u || o) && (!u || !o || u.configurable !== o.configurable || u.enumerable !== o.enumerable || u.writable !== o.writable)))
71
+ if (i = n[a], i === B && (e.$$typeof || t.$$typeof) && e.$$typeof !== t.$$typeof || !T(t, i) || !r.equals(e[i], t[i], i, i, e, t, r) || (u = A(e, i), o = A(t, i), (u || o) && (!u || !o || u.configurable !== o.configurable || u.enumerable !== o.enumerable || u.writable !== o.writable)))
72
72
  return !1;
73
73
  return !0;
74
74
  }
@@ -78,7 +78,7 @@ function ee(e, t) {
78
78
  function te(e, t) {
79
79
  return e.source === t.source && e.flags === t.flags;
80
80
  }
81
- function $(e, t, r) {
81
+ function _(e, t, r) {
82
82
  if (e.size !== t.size)
83
83
  return !1;
84
84
  for (var n = {}, a = e.values(), i, u; (i = a.next()) && !i.done; ) {
@@ -131,11 +131,11 @@ function ve(e) {
131
131
  var t = e.circular, r = e.createCustomConfig, n = e.strict, a = {
132
132
  areArraysEqual: n ? q : Q,
133
133
  areDatesEqual: X,
134
- areMapsEqual: n ? K(_, q) : _,
134
+ areMapsEqual: n ? K($, q) : $,
135
135
  areObjectsEqual: n ? q : Z,
136
136
  arePrimitiveWrappersEqual: ee,
137
137
  areRegExpsEqual: te,
138
- areSetsEqual: n ? K($, q) : $,
138
+ areSetsEqual: n ? K(_, q) : _,
139
139
  areTypedArraysEqual: n ? q : re
140
140
  };
141
141
  if (r && (a = k({}, a, r(a))), t) {
@@ -391,7 +391,7 @@ const we = Oe((e) => {
391
391
  (e == null ? void 0 : e.t) !== void 0 && r.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && r.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && r.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && r.push(`ml-${e.l}`), t = r.join(" ");
392
392
  }
393
393
  return t;
394
- }), Ae = ({
394
+ }), Se = ({
395
395
  children: e,
396
396
  fill: t,
397
397
  viewBox: r,
@@ -400,7 +400,7 @@ const we = Oe((e) => {
400
400
  defaultClassName: i,
401
401
  spacing: u,
402
402
  title: o,
403
- decorative: s = !1,
403
+ semantic: s = !1,
404
404
  ...c
405
405
  }) => {
406
406
  const l = we(u), f = L(
@@ -416,28 +416,28 @@ const we = Oe((e) => {
416
416
  viewBox: r || a,
417
417
  fill: t || "currentColor",
418
418
  role: "img",
419
- "aria-hidden": s,
419
+ "aria-hidden": !s,
420
420
  focusable: !1,
421
421
  ...c,
422
422
  children: e
423
423
  }
424
424
  ),
425
- o && !s && /* @__PURE__ */ I("span", { className: "sr-only", children: o })
425
+ o && s && /* @__PURE__ */ I("span", { className: "sr-only", children: o })
426
426
  ] });
427
427
  };
428
428
  /*!
429
- @versini/ui-private v1.0.0
429
+ @versini/ui-private v1.1.0
430
430
  © 2024 gizmette.com
431
431
  */
432
432
  try {
433
433
  window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
434
- version: "1.0.0",
435
- buildTime: "02/26/2024 04:41 PM EST",
434
+ version: "1.1.0",
435
+ buildTime: "02/28/2024 04:54 PM EST",
436
436
  homepage: "https://github.com/aversini/ui-components",
437
437
  license: "MIT"
438
438
  });
439
439
  } catch {
440
440
  }
441
441
  export {
442
- Ae as j
442
+ Se as S
443
443
  };
@@ -1,5 +1,5 @@
1
1
  import { jsxs as i, jsx as c } from "react/jsx-runtime";
2
- import { j as m } from "../../chunks/index.Dvy_-ZVi.js";
2
+ import { S as m } from "../../chunks/index.DwG2SHbl.js";
3
3
  const f = ({
4
4
  className: a,
5
5
  viewBox: s,
@@ -0,0 +1,41 @@
1
+ import { jsxs as m, jsx as s } from "react/jsx-runtime";
2
+ import { S as o } from "../../chunks/index.DwG2SHbl.js";
3
+ const p = ({
4
+ className: c,
5
+ viewBox: a,
6
+ spacing: t,
7
+ title: l,
8
+ monotone: e,
9
+ ...r
10
+ }) => /* @__PURE__ */ m(
11
+ o,
12
+ {
13
+ defaultViewBox: "0 0 512 512",
14
+ defaultClassName: "h-5 w-5",
15
+ viewBox: a,
16
+ className: c,
17
+ spacing: t,
18
+ title: l || "Brightness",
19
+ ...r,
20
+ children: [
21
+ /* @__PURE__ */ s(
22
+ "path",
23
+ {
24
+ className: "fa-secondary",
25
+ opacity: e ? "1" : "0.4",
26
+ d: "M224 80c0 17.7 14.3 32 32 32s32-14.3 32-32V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V80zM32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32H80c17.7 0 32-14.3 32-32s-14.3-32-32-32H32zm400 0c-17.7 0-32 14.3-32 32s14.3 32 32 32h48c17.7 0 32-14.3 32-32s-14.3-32-32-32H432zM256 512c17.7 0 32-14.3 32-32V432c0-17.7-14.3-32-32-32s-32 14.3-32 32v48c0 17.7 14.3 32 32 32zM73.4 438.6c12.5 12.5 32.8 12.5 45.3 0l32-32c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-32 32c-12.5 12.5-12.5 32.8 0 45.3zm288-333.3c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l32-32c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-32 32zm77.3 333.3c12.5-12.5 12.5-32.8 0-45.3l-32-32c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l32 32c12.5 12.5 32.8 12.5 45.3 0zm-333.3-288c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-32-32c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l32 32z"
27
+ }
28
+ ),
29
+ /* @__PURE__ */ s(
30
+ "path",
31
+ {
32
+ className: "fa-primary",
33
+ d: "M160 256a96 96 0 1 1 192 0 96 96 0 1 1 -192 0z"
34
+ }
35
+ )
36
+ ]
37
+ }
38
+ );
39
+ export {
40
+ p as IconBrightness
41
+ };
@@ -1,5 +1,5 @@
1
1
  import { jsxs as h, jsx as c } from "react/jsx-runtime";
2
- import { j as i } from "../../chunks/index.Dvy_-ZVi.js";
2
+ import { S as i } from "../../chunks/index.DwG2SHbl.js";
3
3
  const V = ({
4
4
  className: a,
5
5
  viewBox: t,
@@ -1,5 +1,5 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { j as c } from "../../chunks/index.Dvy_-ZVi.js";
2
+ import { S as c } from "../../chunks/index.DwG2SHbl.js";
3
3
  const i = ({
4
4
  className: e,
5
5
  viewBox: t,
@@ -1,5 +1,5 @@
1
1
  import { jsxs as l, jsx as c } from "react/jsx-runtime";
2
- import { j as r } from "../../chunks/index.Dvy_-ZVi.js";
2
+ import { S as r } from "../../chunks/index.DwG2SHbl.js";
3
3
  const d = ({
4
4
  className: a,
5
5
  viewBox: o,
@@ -1,5 +1,5 @@
1
1
  import { jsxs as p, jsx as a } from "react/jsx-runtime";
2
- import { j as i } from "../../chunks/index.Dvy_-ZVi.js";
2
+ import { S as i } from "../../chunks/index.DwG2SHbl.js";
3
3
  const d = ({
4
4
  className: c,
5
5
  viewBox: o,
@@ -1,5 +1,5 @@
1
1
  import { jsxs as l, jsx as c } from "react/jsx-runtime";
2
- import { j as m } from "../../chunks/index.Dvy_-ZVi.js";
2
+ import { S as m } from "../../chunks/index.DwG2SHbl.js";
3
3
  const d = ({
4
4
  className: s,
5
5
  viewBox: e,
@@ -1,5 +1,5 @@
1
1
  import { jsx as c } from "react/jsx-runtime";
2
- import { j as a } from "../../chunks/index.Dvy_-ZVi.js";
2
+ import { S as a } from "../../chunks/index.DwG2SHbl.js";
3
3
  const i = ({
4
4
  className: r,
5
5
  viewBox: t,
@@ -1,5 +1,5 @@
1
1
  import { jsxs as i, jsx as c } from "react/jsx-runtime";
2
- import { j as l } from "../../chunks/index.Dvy_-ZVi.js";
2
+ import { S as l } from "../../chunks/index.DwG2SHbl.js";
3
3
  const f = ({
4
4
  className: a,
5
5
  viewBox: t,
@@ -1,5 +1,5 @@
1
1
  import { jsx as c } from "react/jsx-runtime";
2
- import { j as z } from "../../chunks/index.Dvy_-ZVi.js";
2
+ import { S as z } from "../../chunks/index.DwG2SHbl.js";
3
3
  const a = ({
4
4
  className: t,
5
5
  viewBox: m,
@@ -1,5 +1,5 @@
1
1
  import { jsxs as r, jsx as c } from "react/jsx-runtime";
2
- import { j as i } from "../../chunks/index.Dvy_-ZVi.js";
2
+ import { S as i } from "../../chunks/index.DwG2SHbl.js";
3
3
  const C = ({
4
4
  className: a,
5
5
  viewBox: t,
@@ -1,5 +1,5 @@
1
1
  import { jsxs as i, jsx as c } from "react/jsx-runtime";
2
- import { j as l } from "../../chunks/index.Dvy_-ZVi.js";
2
+ import { S as l } from "../../chunks/index.DwG2SHbl.js";
3
3
  const f = ({
4
4
  className: s,
5
5
  viewBox: a,
@@ -1,5 +1,5 @@
1
1
  import { jsxs as r, jsx as a } from "react/jsx-runtime";
2
- import { j as h } from "../../chunks/index.Dvy_-ZVi.js";
2
+ import { S as h } from "../../chunks/index.DwG2SHbl.js";
3
3
  const i = ({
4
4
  className: c,
5
5
  viewBox: s,
@@ -1,5 +1,5 @@
1
1
  import { jsxs as l, jsx as a } from "react/jsx-runtime";
2
- import { j as i } from "../../chunks/index.Dvy_-ZVi.js";
2
+ import { S as i } from "../../chunks/index.DwG2SHbl.js";
3
3
  const f = ({
4
4
  className: t,
5
5
  viewBox: s,
@@ -1,5 +1,5 @@
1
1
  import { jsxs as i, jsx as s } from "react/jsx-runtime";
2
- import { j as l } from "../../chunks/index.Dvy_-ZVi.js";
2
+ import { S as l } from "../../chunks/index.DwG2SHbl.js";
3
3
  const f = ({
4
4
  className: a,
5
5
  viewBox: o,
@@ -1,5 +1,5 @@
1
1
  import { jsxs as r, jsx as c } from "react/jsx-runtime";
2
- import { j as t } from "../../chunks/index.Dvy_-ZVi.js";
2
+ import { S as t } from "../../chunks/index.DwG2SHbl.js";
3
3
  const f = ({
4
4
  className: a,
5
5
  viewBox: s,
@@ -1,5 +1,5 @@
1
1
  import { jsxs as m, jsx as c } from "react/jsx-runtime";
2
- import { j as i } from "../../chunks/index.Dvy_-ZVi.js";
2
+ import { S as i } from "../../chunks/index.DwG2SHbl.js";
3
3
  const V = ({
4
4
  className: a,
5
5
  viewBox: s,
@@ -1,5 +1,5 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import { j as r } from "../../chunks/index.Dvy_-ZVi.js";
2
+ import { S as r } from "../../chunks/index.DwG2SHbl.js";
3
3
  const d = ({
4
4
  className: e,
5
5
  viewBox: o,
@@ -1,5 +1,5 @@
1
1
  import { jsxs as i, jsx as c } from "react/jsx-runtime";
2
- import { j as m } from "../../chunks/index.Dvy_-ZVi.js";
2
+ import { S as m } from "../../chunks/index.DwG2SHbl.js";
3
3
  const f = ({
4
4
  className: a,
5
5
  viewBox: s,
@@ -1,5 +1,5 @@
1
1
  import { jsxs as m, jsx as a } from "react/jsx-runtime";
2
- import { j as c } from "../../chunks/index.Dvy_-ZVi.js";
2
+ import { S as c } from "../../chunks/index.DwG2SHbl.js";
3
3
  const p = ({
4
4
  className: s,
5
5
  viewBox: e,
package/dist/index.d.ts CHANGED
@@ -4,12 +4,6 @@ import { SpacingProps } from '@versini/ui-private/dist/utilities';
4
4
  interface IconsProps
5
5
  extends Omit<React.SVGAttributes<SVGElement>, "spacing">,
6
6
  SpacingProps {
7
- /**
8
- * Whether or not the icon is decorative only (visual but not
9
- * announced to assistive technologies).
10
- * @default false
11
- */
12
- decorative?: boolean;
13
7
  /**
14
8
  * Whether or not to render the icon in a single color
15
9
  * @default false
@@ -20,10 +14,18 @@ interface IconsProps
20
14
  * but it can be overridden with this prop.
21
15
  */
22
16
  title?: string;
17
+ /**
18
+ * Whether or not the icon is semantic (visual and
19
+ * announced to assistive technologies).
20
+ * @default false
21
+ */
22
+ semantic?: boolean;
23
23
  }
24
24
 
25
25
  declare const IconBack: ({ className, viewBox, spacing, title, monotone, ...rest }: IconsProps) => react_jsx_runtime.JSX.Element;
26
26
 
27
+ declare const IconBrightness: ({ className, viewBox, spacing, title, monotone, ...rest }: IconsProps) => react_jsx_runtime.JSX.Element;
28
+
27
29
  declare const IconChart: ({ className, viewBox, spacing, title, monotone, ...rest }: IconsProps) => react_jsx_runtime.JSX.Element;
28
30
 
29
31
  declare const IconClose: ({ className, viewBox, spacing, title, monotone, ...rest }: IconsProps) => react_jsx_runtime.JSX.Element;
@@ -60,4 +62,4 @@ declare const IconShow: ({ className, viewBox, spacing, title, monotone, ...rest
60
62
 
61
63
  declare const IconUser: ({ className, viewBox, spacing, title, monotone, ...rest }: IconsProps) => react_jsx_runtime.JSX.Element;
62
64
 
63
- export { IconBack, IconChart, IconClose, IconCopied, IconCopy, IconDelete, IconDog, IconEdit, IconGitHub, IconHide, IconHistory, IconInfo, IconNext, IconPrevious, IconProfile, IconRestore, IconSettings, IconShow, IconUser };
65
+ export { IconBack, IconBrightness, IconChart, IconClose, IconCopied, IconCopy, IconDelete, IconDog, IconEdit, IconGitHub, IconHide, IconHistory, IconInfo, IconNext, IconPrevious, IconProfile, IconRestore, IconSettings, IconShow, IconUser };
package/dist/index.js CHANGED
@@ -1,30 +1,31 @@
1
1
  import { IconBack as t } from "./components/Icons/IconBack.js";
2
- import { IconChart as n } from "./components/Icons/IconChart.js";
3
- import { IconClose as p } from "./components/Icons/IconClose.js";
4
- import { IconCopied as f } from "./components/Icons/IconCopied.js";
5
- import { IconCopy as i } from "./components/Icons/IconCopy.js";
6
- import { IconDelete as s } from "./components/Icons/IconDelete.js";
7
- import { IconDog as d } from "./components/Icons/IconDog.js";
8
- import { IconEdit as C } from "./components/Icons/IconEdit.js";
9
- import { IconGitHub as l } from "./components/Icons/IconGitHub.js";
10
- import { IconHide as w } from "./components/Icons/IconHide.js";
11
- import { IconHistory as g } from "./components/Icons/IconHistory.js";
12
- import { IconInfo as b } from "./components/Icons/IconInfo.js";
13
- import { IconNext as y } from "./components/Icons/IconNext.js";
14
- import { IconPrevious as P } from "./components/Icons/IconPrevious.js";
15
- import { IconProfile as T } from "./components/Icons/IconProfile.js";
16
- import { IconRestore as D } from "./components/Icons/IconRestore.js";
17
- import { IconSettings as O } from "./components/Icons/IconSettings.js";
18
- import { IconShow as k } from "./components/Icons/IconShow.js";
19
- import { IconUser as G } from "./components/Icons/IconUser.js";
2
+ import { IconBrightness as I } from "./components/Icons/IconBrightness.js";
3
+ import { IconChart as p } from "./components/Icons/IconChart.js";
4
+ import { IconClose as f } from "./components/Icons/IconClose.js";
5
+ import { IconCopied as i } from "./components/Icons/IconCopied.js";
6
+ import { IconCopy as _ } from "./components/Icons/IconCopy.js";
7
+ import { IconDelete as S } from "./components/Icons/IconDelete.js";
8
+ import { IconDog as C } from "./components/Icons/IconDog.js";
9
+ import { IconEdit as g } from "./components/Icons/IconEdit.js";
10
+ import { IconGitHub as u } from "./components/Icons/IconGitHub.js";
11
+ import { IconHide as N } from "./components/Icons/IconHide.js";
12
+ import { IconHistory as b } from "./components/Icons/IconHistory.js";
13
+ import { IconInfo as y } from "./components/Icons/IconInfo.js";
14
+ import { IconNext as P } from "./components/Icons/IconNext.js";
15
+ import { IconPrevious as T } from "./components/Icons/IconPrevious.js";
16
+ import { IconProfile as B } from "./components/Icons/IconProfile.js";
17
+ import { IconRestore as M } from "./components/Icons/IconRestore.js";
18
+ import { IconSettings as V } from "./components/Icons/IconSettings.js";
19
+ import { IconShow as G } from "./components/Icons/IconShow.js";
20
+ import { IconUser as q } from "./components/Icons/IconUser.js";
20
21
  /*!
21
- @versini/ui-icons v0.0.0
22
+ @versini/ui-icons v1.1.0
22
23
  © 2024 gizmette.com
23
24
  */
24
25
  try {
25
26
  window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
26
- version: "0.0.0",
27
- buildTime: "02/26/2024 04:41 PM EST",
27
+ version: "1.1.0",
28
+ buildTime: "02/28/2024 04:54 PM EST",
28
29
  homepage: "https://github.com/aversini/ui-components",
29
30
  license: "MIT"
30
31
  });
@@ -32,22 +33,23 @@ try {
32
33
  }
33
34
  export {
34
35
  t as IconBack,
35
- n as IconChart,
36
- p as IconClose,
37
- f as IconCopied,
38
- i as IconCopy,
39
- s as IconDelete,
40
- d as IconDog,
41
- C as IconEdit,
42
- l as IconGitHub,
43
- w as IconHide,
44
- g as IconHistory,
45
- b as IconInfo,
46
- y as IconNext,
47
- P as IconPrevious,
48
- T as IconProfile,
49
- D as IconRestore,
50
- O as IconSettings,
51
- k as IconShow,
52
- G as IconUser
36
+ I as IconBrightness,
37
+ p as IconChart,
38
+ f as IconClose,
39
+ i as IconCopied,
40
+ _ as IconCopy,
41
+ S as IconDelete,
42
+ C as IconDog,
43
+ g as IconEdit,
44
+ u as IconGitHub,
45
+ N as IconHide,
46
+ b as IconHistory,
47
+ y as IconInfo,
48
+ P as IconNext,
49
+ T as IconPrevious,
50
+ B as IconProfile,
51
+ M as IconRestore,
52
+ V as IconSettings,
53
+ G as IconShow,
54
+ q as IconUser
53
55
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/ui-icons",
3
- "version": "0.0.0",
3
+ "version": "1.1.0",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -41,12 +41,12 @@
41
41
  "dependencies": {
42
42
  "@tailwindcss/typography": "0.5.10",
43
43
  "@versini/ui-hooks": "^2.2.0",
44
- "@versini/ui-private": "1.0.0",
44
+ "@versini/ui-private": "1.1.0",
45
45
  "clsx": "2.1.0",
46
46
  "tailwindcss": "3.4.1"
47
47
  },
48
48
  "sideEffects": [
49
49
  "**/*.css"
50
50
  ],
51
- "gitHead": "df63fe6f20b689e31e0a3c86e1f8ac0e79afa603"
51
+ "gitHead": "3437d6b8ac61b8e5de1b0d738988d2d23887923d"
52
52
  }