@companix/uikit 0.0.22 → 0.0.23

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,45 +1,22 @@
1
- import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
- import * as t from "@radix-ui/react-toast";
3
- import { attr as C } from "@companix/utils-browser";
4
- import { useState as h, useRef as v, useEffect as N, useLayoutEffect as x } from "react";
5
- import { RemoveListener as R } from "./bundle.es41.js";
6
- const E = (i) => {
7
- const [c, l] = h(!1), o = v(null), {
8
- appearance: d = "neutral",
9
- icon: r,
10
- title: a,
11
- description: s,
12
- duration: m,
13
- closeIcon: u,
14
- onRemoving: p,
15
- onRemoved: f,
16
- onInitialized: L
17
- } = i;
18
- return N(() => {
19
- l(!0);
20
- }, []), x(() => {
21
- o.current && L(o.current);
22
- }, []), /* @__PURE__ */ n(
23
- t.Root,
24
- {
25
- ref: o,
26
- "data-expanded": !0,
27
- "data-appearance": d,
28
- "data-mounted": C(c),
29
- className: "toaster",
30
- duration: m,
31
- children: [
32
- /* @__PURE__ */ e(R, { callback: f }),
33
- r && /* @__PURE__ */ e("div", { className: "toaster-icon", children: r }),
34
- /* @__PURE__ */ n("div", { className: "toaster-content", children: [
35
- a && /* @__PURE__ */ e(t.Title, { className: "toaster-title", children: a }),
36
- s && /* @__PURE__ */ e(t.Description, { className: "toaster-description", children: s })
37
- ] }),
38
- /* @__PURE__ */ e(t.Close, { className: "toaster-close", onClick: p, children: u ?? /* @__PURE__ */ e("svg", { viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ e("path", { d: "M2.96967 2.96967C3.26256 2.67678 3.73744 2.67678 4.03033 2.96967L8 6.939L11.9697 2.96967C12.2626 2.67678 12.7374 2.67678 13.0303 2.96967C13.3232 3.26256 13.3232 3.73744 13.0303 4.03033L9.061 8L13.0303 11.9697C13.2966 12.2359 13.3208 12.6526 13.1029 12.9462L13.0303 13.0303C12.7374 13.3232 12.2626 13.3232 11.9697 13.0303L8 9.061L4.03033 13.0303C3.73744 13.3232 3.26256 13.3232 2.96967 13.0303C2.67678 12.7374 2.67678 12.2626 2.96967 11.9697L6.939 8L2.96967 4.03033C2.7034 3.76406 2.6792 3.3474 2.89705 3.05379L2.96967 2.96967Z" }) }) })
1
+ import { __exports as e } from "./bundle.es64.js";
2
+ var t;
3
+ function d() {
4
+ return t ? e : (t = 1, (function(a) {
5
+ Object.defineProperty(a, "__esModule", { value: !0 });
6
+ var r = "fas", n = "xmark", c = 384, f = 512, i = [128473, 10005, 10006, 10060, 215, "close", "multiply", "remove", "times"], u = "f00d", m = "M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z";
7
+ a.definition = {
8
+ prefix: r,
9
+ iconName: n,
10
+ icon: [
11
+ c,
12
+ f,
13
+ i,
14
+ u,
15
+ m
39
16
  ]
40
- }
41
- );
42
- };
17
+ }, a.faXmark = a.definition, a.prefix = r, a.iconName = n, a.width = c, a.height = f, a.ligatures = i, a.unicode = u, a.svgPathData = m, a.aliases = i;
18
+ })(e), e);
19
+ }
43
20
  export {
44
- E as Toast
21
+ d as __require
45
22
  };
@@ -1,10 +1,10 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
2
  import { useMemo as F, useImperativeHandle as I } from "react";
3
3
  import { Popover as T } from "./bundle.es6.js";
4
- import { useFroozeClosing as b } from "./bundle.es33.js";
5
- import { SelectInput as z } from "./bundle.es34.js";
6
- import { useScrollListController as B } from "./bundle.es35.js";
7
- import { SelectOptions as D } from "./bundle.es36.js";
4
+ import { useFroozeClosing as b } from "./bundle.es34.js";
5
+ import { SelectInput as z } from "./bundle.es35.js";
6
+ import { useScrollListController as B } from "./bundle.es36.js";
7
+ import { SelectOptions as D } from "./bundle.es37.js";
8
8
  import { mergeRefs as j } from "react-merge-refs";
9
9
  const G = (a) => {
10
10
  const {
@@ -1,8 +1,8 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
2
  import { forwardRef as l, useRef as b } from "react";
3
3
  import { mergeRefs as R } from "react-merge-refs";
4
- import { InputElement as c } from "./bundle.es37.js";
5
- import { InputContainer as x } from "./bundle.es38.js";
4
+ import { InputElement as c } from "./bundle.es38.js";
5
+ import { InputContainer as x } from "./bundle.es39.js";
6
6
  import I from "classnames";
7
7
  const E = l(
8
8
  ({
package/dist/index.d.ts CHANGED
@@ -26,6 +26,7 @@ export { DateInput } from './DateInput';
26
26
  export { FileOverlay } from './File';
27
27
  export { FormGroup } from './FormGroup';
28
28
  export { TimePicker } from './TimePicker';
29
+ export { Icon } from './Icon';
29
30
  export { useLocalStorage } from './__hooks/use-local-storage';
30
31
  export { createAlertAgent } from './DialogAlert';
31
32
  export { createToaster } from './Toaster';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@companix/uikit",
3
- "version": "0.0.22",
3
+ "version": "0.0.23",
4
4
  "module": "./dist/bundle.es.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "type": "module",