@companix/uikit 0.1.24 → 0.1.26
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/dist/DrawerMobile/MobileDrawer.scss +1 -0
- package/dist/__hooks/use-rerender.d.ts +1 -0
- package/dist/__hooks/use-sync-submit.d.ts +1 -0
- package/dist/bundle.es.js +45 -43
- package/dist/bundle.es10.js +1 -1
- package/dist/bundle.es13.js +4 -4
- package/dist/bundle.es14.js +3 -3
- package/dist/bundle.es15.js +2 -2
- package/dist/bundle.es17.js +1 -1
- package/dist/bundle.es23.js +5 -5
- package/dist/bundle.es25.js +1 -1
- package/dist/bundle.es26.js +1 -1
- package/dist/bundle.es28.js +1 -1
- package/dist/bundle.es29.js +12 -11
- package/dist/bundle.es31.js +4 -4
- package/dist/bundle.es32.js +2 -2
- package/dist/bundle.es35.js +2 -2
- package/dist/bundle.es41.js +1 -1
- package/dist/bundle.es42.js +2 -2
- package/dist/bundle.es45.js +1 -1
- package/dist/bundle.es52.js +10 -25
- package/dist/bundle.es53.js +17 -29
- package/dist/bundle.es54.js +36 -48
- package/dist/bundle.es55.js +49 -55
- package/dist/bundle.es56.js +56 -8
- package/dist/bundle.es57.js +8 -26
- package/dist/bundle.es58.js +27 -5
- package/dist/bundle.es59.js +5 -66
- package/dist/bundle.es60.js +66 -23
- package/dist/bundle.es61.js +22 -23
- package/dist/bundle.es62.js +24 -90
- package/dist/bundle.es63.js +90 -18
- package/dist/bundle.es64.js +17 -93
- package/dist/bundle.es65.js +93 -73
- package/dist/bundle.es66.js +73 -23
- package/dist/bundle.es67.js +20 -35
- package/dist/bundle.es68.js +39 -24
- package/dist/bundle.es69.js +24 -79
- package/dist/bundle.es70.js +71 -85
- package/dist/bundle.es71.js +93 -10
- package/dist/bundle.es72.js +10 -70
- package/dist/bundle.es73.js +5 -11
- package/dist/bundle.es74.js +68 -41
- package/dist/bundle.es75.js +10 -31
- package/dist/bundle.es76.js +41 -64
- package/dist/bundle.es77.js +33 -41
- package/dist/bundle.es78.js +62 -11
- package/dist/bundle.es79.js +40 -31
- package/dist/bundle.es80.js +15 -70
- package/dist/bundle.es81.js +31 -74
- package/dist/bundle.es82.js +68 -47
- package/dist/bundle.es83.js +74 -13
- package/dist/bundle.es84.js +48 -13
- package/dist/bundle.es85.js +16 -0
- package/dist/bundle.es86.js +16 -0
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useRerender: () => () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useSyncSubmit: () => [boolean, (isSubmitted: boolean) => void];
|
package/dist/bundle.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Avatar as o } from "./bundle.es2.js";
|
|
2
2
|
import { avatarSizes as p } from "./bundle.es3.js";
|
|
3
|
-
import { getBadgeIconSizeByImageBaseSize as
|
|
3
|
+
import { getBadgeIconSizeByImageBaseSize as a, getFallbackIconSizeByImageBaseSize as x, getInitialsFontSize as f } from "./bundle.es4.js";
|
|
4
4
|
import { Button as s } from "./bundle.es5.js";
|
|
5
5
|
import { ButtonGroup as n } from "./bundle.es6.js";
|
|
6
6
|
import { Spinner as S } from "./bundle.es7.js";
|
|
7
7
|
import { Scrollable as g } from "./bundle.es8.js";
|
|
8
8
|
import { ImitateScroll as d } from "./bundle.es9.js";
|
|
9
9
|
import { Segments as P } from "./bundle.es10.js";
|
|
10
|
-
import { Popover as
|
|
10
|
+
import { Popover as y } from "./bundle.es11.js";
|
|
11
11
|
import { Tooltip as I } from "./bundle.es12.js";
|
|
12
12
|
import { Select as k } from "./bundle.es13.js";
|
|
13
13
|
import { SelectTags as w } from "./bundle.es14.js";
|
|
@@ -25,7 +25,7 @@ import { PopupLayout as Z } from "./bundle.es25.js";
|
|
|
25
25
|
import { AlertDialog as $ } from "./bundle.es26.js";
|
|
26
26
|
import { LoadingButton as re } from "./bundle.es27.js";
|
|
27
27
|
import { Tabs as te } from "./bundle.es28.js";
|
|
28
|
-
import { Countdown as
|
|
28
|
+
import { Countdown as me } from "./bundle.es29.js";
|
|
29
29
|
import { TextArea as xe } from "./bundle.es30.js";
|
|
30
30
|
import { DatePicker as ie } from "./bundle.es31.js";
|
|
31
31
|
import { DateInput as le } from "./bundle.es32.js";
|
|
@@ -33,8 +33,8 @@ import { FileOverlay as ce } from "./bundle.es33.js";
|
|
|
33
33
|
import { FormGroup as ue } from "./bundle.es34.js";
|
|
34
34
|
import { TimePicker as De } from "./bundle.es35.js";
|
|
35
35
|
import { Icon as he } from "./bundle.es36.js";
|
|
36
|
-
import { ProgressBar as
|
|
37
|
-
import { Skeleton as
|
|
36
|
+
import { ProgressBar as be } from "./bundle.es37.js";
|
|
37
|
+
import { Skeleton as Be } from "./bundle.es38.js";
|
|
38
38
|
import { Blank as Te } from "./bundle.es39.js";
|
|
39
39
|
import { ProgressRing as ve } from "./bundle.es40.js";
|
|
40
40
|
import { WriteBar as Ae } from "./bundle.es41.js";
|
|
@@ -48,14 +48,15 @@ import { useBooleanState as Ue } from "./bundle.es48.js";
|
|
|
48
48
|
import { useResizeTextarea as Xe } from "./bundle.es49.js";
|
|
49
49
|
import { useLoading as _e } from "./bundle.es50.js";
|
|
50
50
|
import { NowContextProvider as er, useNow as rr } from "./bundle.es51.js";
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
51
|
+
import { useSyncSubmit as tr } from "./bundle.es52.js";
|
|
52
|
+
import { createAlertAgent as mr } from "./bundle.es53.js";
|
|
53
|
+
import { createToaster as xr } from "./bundle.es54.js";
|
|
54
|
+
import { Toast as ir } from "./bundle.es55.js";
|
|
55
|
+
import { DialogShell as lr, DrawerShell as nr, MobileDrawerShell as cr, createPopupRegistry as Sr, usePopup as ur } from "./bundle.es56.js";
|
|
56
|
+
import { createPopoversRegistry as Dr } from "./bundle.es57.js";
|
|
57
|
+
import { createScope as hr, createStaticScope as Pr } from "./bundle.es58.js";
|
|
58
|
+
import { RemoveListener as yr } from "./bundle.es59.js";
|
|
59
|
+
import { MONDAY as Ir, addMonths as Tr, createDayDisableChecker as kr, endOfDay as vr, endOfWeek as wr, isDayMinMaxRestricted as Ar, isSameDate as Mr, setMonth as Or, setYear as Rr, startOfDay as zr, startOfWeek as Lr, subMonths as Cr, useDayDisableCheker as Fr } from "./bundle.es60.js";
|
|
59
60
|
export {
|
|
60
61
|
$ as AlertDialog,
|
|
61
62
|
o as Avatar,
|
|
@@ -64,13 +65,13 @@ export {
|
|
|
64
65
|
n as ButtonGroup,
|
|
65
66
|
G as Checkbox,
|
|
66
67
|
je as ColorSchemeScript,
|
|
67
|
-
|
|
68
|
+
me as Countdown,
|
|
68
69
|
le as DateInput,
|
|
69
70
|
ie as DatePicker,
|
|
70
71
|
V as Dialog,
|
|
71
|
-
|
|
72
|
+
lr as DialogShell,
|
|
72
73
|
J as Drawer,
|
|
73
|
-
|
|
74
|
+
nr as DrawerShell,
|
|
74
75
|
ze as DropArea,
|
|
75
76
|
Le as DropAreaProvider,
|
|
76
77
|
Oe as Editor,
|
|
@@ -81,25 +82,25 @@ export {
|
|
|
81
82
|
M as Input,
|
|
82
83
|
re as LoadingButton,
|
|
83
84
|
Je as LocalStorageProvider,
|
|
84
|
-
|
|
85
|
+
Ir as MONDAY,
|
|
85
86
|
Q as MobileDrawer,
|
|
86
|
-
|
|
87
|
+
cr as MobileDrawerShell,
|
|
87
88
|
er as NowContextProvider,
|
|
88
89
|
L as NumberInput,
|
|
89
90
|
R as OptionItem,
|
|
90
91
|
F as OptionsList,
|
|
91
|
-
|
|
92
|
+
y as Popover,
|
|
92
93
|
Z as PopupLayout,
|
|
93
|
-
|
|
94
|
+
be as ProgressBar,
|
|
94
95
|
ve as ProgressRing,
|
|
95
96
|
j as Radio,
|
|
96
97
|
q as RadioGroup,
|
|
97
|
-
|
|
98
|
+
yr as RemoveListener,
|
|
98
99
|
g as Scrollable,
|
|
99
100
|
P as Segments,
|
|
100
101
|
k as Select,
|
|
101
102
|
w as SelectTags,
|
|
102
|
-
|
|
103
|
+
Be as Skeleton,
|
|
103
104
|
S as Spinner,
|
|
104
105
|
E as Switch,
|
|
105
106
|
Ne as Table,
|
|
@@ -107,38 +108,39 @@ export {
|
|
|
107
108
|
xe as TextArea,
|
|
108
109
|
We as ThemeProvider,
|
|
109
110
|
De as TimePicker,
|
|
110
|
-
|
|
111
|
+
ir as Toast,
|
|
111
112
|
I as Tooltip,
|
|
112
113
|
Ae as WriteBar,
|
|
113
|
-
|
|
114
|
+
Tr as addMonths,
|
|
114
115
|
p as avatarSizes,
|
|
115
116
|
qe as colorSchemeScript,
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
117
|
+
mr as createAlertAgent,
|
|
118
|
+
kr as createDayDisableChecker,
|
|
119
|
+
Dr as createPopoversRegistry,
|
|
120
|
+
Sr as createPopupRegistry,
|
|
121
|
+
hr as createScope,
|
|
122
|
+
Pr as createStaticScope,
|
|
123
|
+
xr as createToaster,
|
|
124
|
+
vr as endOfDay,
|
|
125
|
+
wr as endOfWeek,
|
|
126
|
+
a as getBadgeIconSizeByImageBaseSize,
|
|
126
127
|
x as getFallbackIconSizeByImageBaseSize,
|
|
127
128
|
f as getInitialsFontSize,
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
129
|
+
Ar as isDayMinMaxRestricted,
|
|
130
|
+
Mr as isSameDate,
|
|
131
|
+
Or as setMonth,
|
|
132
|
+
Rr as setYear,
|
|
133
|
+
zr as startOfDay,
|
|
134
|
+
Lr as startOfWeek,
|
|
135
|
+
Cr as subMonths,
|
|
135
136
|
Ue as useBooleanState,
|
|
136
|
-
|
|
137
|
+
Fr as useDayDisableCheker,
|
|
137
138
|
Ce as useDragEnter,
|
|
138
139
|
_e as useLoading,
|
|
139
140
|
Ke as useLocalStorage,
|
|
140
141
|
rr as useNow,
|
|
141
|
-
|
|
142
|
+
ur as usePopup,
|
|
142
143
|
Xe as useResizeTextarea,
|
|
144
|
+
tr as useSyncSubmit,
|
|
143
145
|
Ee as useTheme
|
|
144
146
|
};
|
package/dist/bundle.es10.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r, jsxs as m } from "react/jsx-runtime";
|
|
2
|
-
import { makeTabId as c, useTabSlider as i } from "./bundle.
|
|
2
|
+
import { makeTabId as c, useTabSlider as i } from "./bundle.es61.js";
|
|
3
3
|
import { attr as o } from "@companix/utils-browser";
|
|
4
4
|
import { useRef as u, useId as f } from "react";
|
|
5
5
|
const h = ({ value: s, onChange: t, options: a }) => {
|
package/dist/bundle.es13.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as L, useMemo as j, useImperativeHandle as k } from "react";
|
|
3
3
|
import { Popover as q } from "./bundle.es11.js";
|
|
4
|
-
import { useFroozeClosing as w } from "./bundle.
|
|
5
|
-
import { SelectInput as H } from "./bundle.
|
|
6
|
-
import { useScrollListController as M } from "./bundle.
|
|
7
|
-
import { OptionsPopover as N } from "./bundle.
|
|
4
|
+
import { useFroozeClosing as w } from "./bundle.es62.js";
|
|
5
|
+
import { SelectInput as H } from "./bundle.es63.js";
|
|
6
|
+
import { useScrollListController as M } from "./bundle.es64.js";
|
|
7
|
+
import { OptionsPopover as N } from "./bundle.es65.js";
|
|
8
8
|
import { mergeRefs as W } from "react-merge-refs";
|
|
9
9
|
const Z = (t) => {
|
|
10
10
|
const {
|
package/dist/bundle.es14.js
CHANGED
|
@@ -3,12 +3,12 @@ import { mergeRefs as T } from "react-merge-refs";
|
|
|
3
3
|
import { useState as M, useRef as h, useMemo as j } from "react";
|
|
4
4
|
import { matchPattern as q } from "@companix/utils-js";
|
|
5
5
|
import { faXmark as V, faChevronDown as $ } from "@companix/icons-solid";
|
|
6
|
-
import { useFroozeClosing as B } from "./bundle.
|
|
6
|
+
import { useFroozeClosing as B } from "./bundle.es62.js";
|
|
7
7
|
import { Popover as L } from "./bundle.es11.js";
|
|
8
8
|
import { Icon as g } from "./bundle.es36.js";
|
|
9
9
|
import { attr as l, getActiveElementByAnotherElement as X, contains as G } from "@companix/utils-browser";
|
|
10
|
-
import { OptionsPopover as H } from "./bundle.
|
|
11
|
-
import { arrays as v } from "./bundle.
|
|
10
|
+
import { OptionsPopover as H } from "./bundle.es65.js";
|
|
11
|
+
import { arrays as v } from "./bundle.es66.js";
|
|
12
12
|
const ne = (r) => {
|
|
13
13
|
const {
|
|
14
14
|
closeAfterSelect: C,
|
package/dist/bundle.es15.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as b, useRef as R } from "react";
|
|
3
3
|
import { mergeRefs as c } from "react-merge-refs";
|
|
4
|
-
import { InputElement as x } from "./bundle.
|
|
5
|
-
import { InputContainer as I } from "./bundle.
|
|
4
|
+
import { InputElement as x } from "./bundle.es67.js";
|
|
5
|
+
import { InputContainer as I } from "./bundle.es68.js";
|
|
6
6
|
import g from "classnames";
|
|
7
7
|
const N = b(
|
|
8
8
|
({
|
package/dist/bundle.es17.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as t } from "react/jsx-runtime";
|
|
|
2
2
|
import C from "classnames";
|
|
3
3
|
import { forwardRef as j, useRef as w } from "react";
|
|
4
4
|
import { mergeRefs as y } from "react-merge-refs";
|
|
5
|
-
import { InputContainer as F } from "./bundle.
|
|
5
|
+
import { InputContainer as F } from "./bundle.es68.js";
|
|
6
6
|
import { NumericFormat as V } from "react-number-format";
|
|
7
7
|
const D = j(
|
|
8
8
|
({
|
package/dist/bundle.es23.js
CHANGED
|
@@ -4,11 +4,11 @@ import G from "classnames";
|
|
|
4
4
|
import * as E from "@radix-ui/react-dialog";
|
|
5
5
|
import { VisuallyHidden as K } from "@radix-ui/react-visually-hidden";
|
|
6
6
|
import { customCSS as oe } from "@companix/utils-browser";
|
|
7
|
-
import { RemoveListener as se } from "./bundle.
|
|
8
|
-
import { DrawerContext as ie, useDrawerContext as J } from "./bundle.
|
|
9
|
-
import { set as R, reset as ae, composeRefs as Q, isInput as ce, isMobileFirefox as ue, getTranslate as W, isIOS as le, dampenValue as fe } from "./bundle.
|
|
10
|
-
import { usePreventScroll as de } from "./bundle.
|
|
11
|
-
import { DRAG_CLASS as j, VELOCITY_THRESHOLD as ge, CLOSE_THRESHOLD as me, SCROLL_LOCK_TIMEOUT as pe, TRANSITIONS as Y, WINDOW_TOP_OFFSET as he } from "./bundle.
|
|
7
|
+
import { RemoveListener as se } from "./bundle.es59.js";
|
|
8
|
+
import { DrawerContext as ie, useDrawerContext as J } from "./bundle.es69.js";
|
|
9
|
+
import { set as R, reset as ae, composeRefs as Q, isInput as ce, isMobileFirefox as ue, getTranslate as W, isIOS as le, dampenValue as fe } from "./bundle.es70.js";
|
|
10
|
+
import { usePreventScroll as de } from "./bundle.es71.js";
|
|
11
|
+
import { DRAG_CLASS as j, VELOCITY_THRESHOLD as ge, CLOSE_THRESHOLD as me, SCROLL_LOCK_TIMEOUT as pe, TRANSITIONS as Y, WINDOW_TOP_OFFSET as he } from "./bundle.es72.js";
|
|
12
12
|
const we = (m) => {
|
|
13
13
|
const { open: p, onOpenChange: l, onClosed: D, children: y, defaultOpen: S = !1, disableEsc: f } = m, [x, M] = t.useState(!1), [T, P] = t.useState(!1), [_, A] = t.useState(!1), v = t.useRef(null), H = t.useRef(null), I = t.useRef(null), L = t.useRef(null), o = t.useRef(null), d = t.useRef(!1), h = t.useRef(0), b = t.useRef(!1), N = t.useRef(!S), e = t.useRef(null), O = t.useRef(e.current?.getBoundingClientRect().height || 0), g = t.useRef(0), C = t.useRef(0), w = p ?? !1, V = t.useCallback(
|
|
14
14
|
(r) => {
|
package/dist/bundle.es25.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
|
2
2
|
import y from "classnames";
|
|
3
3
|
import * as o from "@radix-ui/react-dialog";
|
|
4
4
|
import { VisuallyHidden as l } from "@radix-ui/react-visually-hidden";
|
|
5
|
-
import { RemoveListener as u } from "./bundle.
|
|
5
|
+
import { RemoveListener as u } from "./bundle.es59.js";
|
|
6
6
|
const C = (t) => {
|
|
7
7
|
const { open: i, onOpenChange: a, children: s, onClosed: c, disableEsc: p, overlay: r = {}, overlayRef: m, content: d = {}, contentRef: f } = t, h = (v) => {
|
|
8
8
|
p && v.preventDefault();
|
package/dist/bundle.es26.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e, jsxs as a } from "react/jsx-runtime";
|
|
2
2
|
import * as r from "@radix-ui/react-alert-dialog";
|
|
3
3
|
import { Button as c } from "./bundle.es5.js";
|
|
4
|
-
import { RemoveListener as N } from "./bundle.
|
|
4
|
+
import { RemoveListener as N } from "./bundle.es59.js";
|
|
5
5
|
import { VisuallyHidden as u } from "@radix-ui/react-visually-hidden";
|
|
6
6
|
const C = ({
|
|
7
7
|
open: d,
|
package/dist/bundle.es28.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as a, jsxs as b } from "react/jsx-runtime";
|
|
2
|
-
import { useTabSlider as l, makeTabId as m } from "./bundle.
|
|
2
|
+
import { useTabSlider as l, makeTabId as m } from "./bundle.es61.js";
|
|
3
3
|
import * as n from "@radix-ui/react-tabs";
|
|
4
4
|
import { useRef as f, useId as T, createContext as u, useContext as c } from "react";
|
|
5
5
|
const o = u({ baseId: "", containerRef: {} }), x = ({ children: s, value: e, onChange: r }) => {
|
package/dist/bundle.es29.js
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { jsx as d, Fragment as p } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import { useRerender as T } from "./bundle.es73.js";
|
|
3
|
+
import { getNextCandleTime as x, sleep as S, getTimes as g } from "@companix/utils-js";
|
|
4
|
+
import { useRef as v, useEffect as s } from "react";
|
|
5
|
+
const n = (t) => String(t).padStart(2, "0"), C = ({ expiration: t, separator: m = ":", onExpired: i }) => {
|
|
6
|
+
const e = v(null), o = T();
|
|
6
7
|
s(() => {
|
|
7
|
-
const c = Date.now(), f =
|
|
8
|
+
const c = Date.now(), f = x(c, "1s") - c;
|
|
8
9
|
return e.current && clearInterval(e.current), S(f).then(() => {
|
|
9
|
-
o(
|
|
10
|
-
o(
|
|
10
|
+
o(), e.current = setInterval(() => {
|
|
11
|
+
o();
|
|
11
12
|
}, 1e3);
|
|
12
13
|
}), () => {
|
|
13
14
|
e.current && clearInterval(e.current);
|
|
14
15
|
};
|
|
15
16
|
}, [t]);
|
|
16
|
-
const r = t - Date.now(), { hours:
|
|
17
|
+
const r = t - Date.now(), { hours: u, minutes: a, seconds: l } = g(r);
|
|
17
18
|
return s(() => {
|
|
18
|
-
r <= 0 && (
|
|
19
|
-
}, [r <= 0]), /* @__PURE__ */ d(p, { children: [n(
|
|
19
|
+
r <= 0 && (i?.(), e.current && clearInterval(e.current));
|
|
20
|
+
}, [r <= 0]), /* @__PURE__ */ d(p, { children: [n(u), n(a), n(l)].join(m) });
|
|
20
21
|
};
|
|
21
22
|
export {
|
|
22
|
-
|
|
23
|
+
C as Countdown
|
|
23
24
|
};
|
package/dist/bundle.es31.js
CHANGED
|
@@ -2,11 +2,11 @@ import { jsx as u } from "react/jsx-runtime";
|
|
|
2
2
|
import { Popover as T } from "./bundle.es11.js";
|
|
3
3
|
import { Input as w } from "./bundle.es15.js";
|
|
4
4
|
import { useState as A, useRef as j } from "react";
|
|
5
|
-
import { Calendar as E } from "./bundle.
|
|
6
|
-
import { useDayDisableCheker as N } from "./bundle.
|
|
5
|
+
import { Calendar as E } from "./bundle.es74.js";
|
|
6
|
+
import { useDayDisableCheker as N } from "./bundle.es60.js";
|
|
7
7
|
import { getNum as h, formatTime as v } from "@companix/utils-js";
|
|
8
|
-
import { removeDigits as O } from "./bundle.
|
|
9
|
-
import { SelectRightElements as Y } from "./bundle.
|
|
8
|
+
import { removeDigits as O } from "./bundle.es66.js";
|
|
9
|
+
import { SelectRightElements as Y } from "./bundle.es75.js";
|
|
10
10
|
const i = {
|
|
11
11
|
char: "-",
|
|
12
12
|
toString: (e) => {
|
package/dist/bundle.es32.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as D, jsx as h } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as M, useEffect as C } from "react";
|
|
3
3
|
import { Select as c } from "./bundle.es13.js";
|
|
4
|
-
import { createDateValidation as O, getMonthMaxDay as T } from "./bundle.
|
|
5
|
-
import { defaultMin as j, defaultMax as N, useCalendarOptions as V } from "./bundle.
|
|
4
|
+
import { createDateValidation as O, getMonthMaxDay as T } from "./bundle.es66.js";
|
|
5
|
+
import { defaultMin as j, defaultMax as N, useCalendarOptions as V } from "./bundle.es76.js";
|
|
6
6
|
const B = ({
|
|
7
7
|
min: o = j,
|
|
8
8
|
max: e = N,
|
package/dist/bundle.es35.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as g } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as b, useMemo as I, useState as E, useCallback as A } from "react";
|
|
3
3
|
import { getNum as S } from "@companix/utils-js";
|
|
4
|
-
import { getTimesOptions as W, getTimeValue as q, removeDigits as w, convertTimeToOption as y } from "./bundle.
|
|
5
|
-
import { SelectRightElements as z } from "./bundle.
|
|
4
|
+
import { getTimesOptions as W, getTimeValue as q, removeDigits as w, convertTimeToOption as y } from "./bundle.es66.js";
|
|
5
|
+
import { SelectRightElements as z } from "./bundle.es75.js";
|
|
6
6
|
import { Select as F } from "./bundle.es13.js";
|
|
7
7
|
import { Input as G } from "./bundle.es15.js";
|
|
8
8
|
const o = {
|
package/dist/bundle.es41.js
CHANGED
|
@@ -3,7 +3,7 @@ import c from "classnames";
|
|
|
3
3
|
import { Spinner as b } from "./bundle.es7.js";
|
|
4
4
|
import { Icon as h } from "./bundle.es36.js";
|
|
5
5
|
import { attr as N } from "@companix/utils-browser";
|
|
6
|
-
import { WriteBarInput as u } from "./bundle.
|
|
6
|
+
import { WriteBarInput as u } from "./bundle.es77.js";
|
|
7
7
|
const w = (a) => {
|
|
8
8
|
const {
|
|
9
9
|
before: e,
|
package/dist/bundle.es42.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { escape as u, unescape as f, isElementNode as g } from "@companix/utils-browser";
|
|
2
|
-
import { onElementKeyDownFactory as v } from "./bundle.
|
|
3
|
-
import { getEditorSelection as l, normalizeEditorText as a, getNodeTextContent as h, scrollSelectionIntoView as d, getTextSelectionOffsets as E } from "./bundle.
|
|
2
|
+
import { onElementKeyDownFactory as v } from "./bundle.es78.js";
|
|
3
|
+
import { getEditorSelection as l, normalizeEditorText as a, getNodeTextContent as h, scrollSelectionIntoView as d, getTextSelectionOffsets as E } from "./bundle.es79.js";
|
|
4
4
|
class k {
|
|
5
5
|
element;
|
|
6
6
|
prevText = "";
|
package/dist/bundle.es45.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import { useState as h, useEffect as c, createContext as f, useContext as w } from "react";
|
|
3
|
-
import { getColorScheme as v, updateDOM as m } from "./bundle.
|
|
3
|
+
import { getColorScheme as v, updateDOM as m } from "./bundle.es80.js";
|
|
4
4
|
const i = f({
|
|
5
5
|
setColorScheme: () => {
|
|
6
6
|
}
|
package/dist/bundle.es52.js
CHANGED
|
@@ -1,29 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { useRef as n } from "react";
|
|
2
|
+
import { useRerender as o } from "./bundle.es73.js";
|
|
3
|
+
const c = () => {
|
|
4
|
+
const e = o(), r = n(!1);
|
|
5
|
+
return [
|
|
6
|
+
r.current,
|
|
7
|
+
(t) => {
|
|
8
|
+
r.current = t, e();
|
|
9
9
|
}
|
|
10
|
-
|
|
11
|
-
return {
|
|
12
|
-
api: {
|
|
13
|
-
show: (r) => {
|
|
14
|
-
e.emit({ ...r, id: m() });
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
Viewport: () => {
|
|
18
|
-
const r = n(null);
|
|
19
|
-
return s(() => {
|
|
20
|
-
e.emit = (o) => {
|
|
21
|
-
r.current && r.current.showAlert(o);
|
|
22
|
-
};
|
|
23
|
-
}, []), /* @__PURE__ */ i(p, { ref: r, ...t });
|
|
24
|
-
}
|
|
25
|
-
};
|
|
10
|
+
];
|
|
26
11
|
};
|
|
27
12
|
export {
|
|
28
|
-
|
|
13
|
+
c as useSyncSubmit
|
|
29
14
|
};
|
package/dist/bundle.es53.js
CHANGED
|
@@ -1,41 +1,29 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { hash as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
console.error("uninitialized",
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { hash as m } from "@companix/utils-js";
|
|
3
|
+
import { useRef as n, useMemo as s } from "react";
|
|
4
|
+
import { Viewport as p } from "./bundle.es81.js";
|
|
5
|
+
const a = (t = {}) => {
|
|
6
|
+
const e = {
|
|
7
|
+
emit: (r) => {
|
|
8
|
+
console.error("uninitialized", r);
|
|
9
9
|
}
|
|
10
10
|
};
|
|
11
11
|
return {
|
|
12
12
|
api: {
|
|
13
|
-
show: (
|
|
14
|
-
|
|
15
|
-
return o.showToast({ ...e, id: n }), n;
|
|
13
|
+
show: (r) => {
|
|
14
|
+
e.emit({ ...r, id: m() });
|
|
16
15
|
}
|
|
17
16
|
},
|
|
18
|
-
Viewport: (
|
|
19
|
-
const
|
|
20
|
-
return
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
Viewport: () => {
|
|
18
|
+
const r = n(null);
|
|
19
|
+
return s(() => {
|
|
20
|
+
e.emit = (o) => {
|
|
21
|
+
r.current && r.current.showAlert(o);
|
|
23
22
|
};
|
|
24
|
-
}, []), /* @__PURE__ */ t
|
|
25
|
-
a,
|
|
26
|
-
{
|
|
27
|
-
ref: n,
|
|
28
|
-
align: e.align ?? i.align,
|
|
29
|
-
closeIcon: e.closeIcon ?? i.closeIcon,
|
|
30
|
-
duration: e.duration ?? i.duration,
|
|
31
|
-
gap: e.gap ?? i.gap,
|
|
32
|
-
side: e.side ?? i.side,
|
|
33
|
-
swipeThreshold: e.swipeThreshold ?? i.swipeThreshold
|
|
34
|
-
}
|
|
35
|
-
);
|
|
23
|
+
}, []), /* @__PURE__ */ i(p, { ref: r, ...t });
|
|
36
24
|
}
|
|
37
25
|
};
|
|
38
26
|
};
|
|
39
27
|
export {
|
|
40
|
-
|
|
28
|
+
a as createAlertAgent
|
|
41
29
|
};
|
package/dist/bundle.es54.js
CHANGED
|
@@ -1,53 +1,41 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
title: n,
|
|
11
|
-
description: c,
|
|
12
|
-
duration: L,
|
|
13
|
-
closeIcon: h,
|
|
14
|
-
onClosing: v,
|
|
15
|
-
onClosed: N,
|
|
16
|
-
closable: x = !0,
|
|
17
|
-
onInitialized: g
|
|
18
|
-
} = o;
|
|
19
|
-
j(() => {
|
|
20
|
-
f(!0);
|
|
21
|
-
}, []), E(() => {
|
|
22
|
-
s.current && g(s.current);
|
|
23
|
-
}, []);
|
|
24
|
-
const R = (i) => {
|
|
25
|
-
i || v(), u(i);
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { hash as r } from "@companix/utils-js";
|
|
3
|
+
import { Viewport as a } from "./bundle.es82.js";
|
|
4
|
+
import { useRef as c, useMemo as h } from "react";
|
|
5
|
+
const m = (i = {}) => {
|
|
6
|
+
const o = {
|
|
7
|
+
showToast: (e) => {
|
|
8
|
+
console.error("uninitialized", e);
|
|
9
|
+
}
|
|
26
10
|
};
|
|
27
|
-
return
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
11
|
+
return {
|
|
12
|
+
api: {
|
|
13
|
+
show: (e) => {
|
|
14
|
+
const n = e.id ?? r();
|
|
15
|
+
return o.showToast({ ...e, id: n }), n;
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
Viewport: (e = {}) => {
|
|
19
|
+
const n = c(null);
|
|
20
|
+
return h(() => {
|
|
21
|
+
o.showToast = (s) => {
|
|
22
|
+
n.current && n.current.showToast(s);
|
|
23
|
+
};
|
|
24
|
+
}, []), /* @__PURE__ */ t(
|
|
25
|
+
a,
|
|
26
|
+
{
|
|
27
|
+
ref: n,
|
|
28
|
+
align: e.align ?? i.align,
|
|
29
|
+
closeIcon: e.closeIcon ?? i.closeIcon,
|
|
30
|
+
duration: e.duration ?? i.duration,
|
|
31
|
+
gap: e.gap ?? i.gap,
|
|
32
|
+
side: e.side ?? i.side,
|
|
33
|
+
swipeThreshold: e.swipeThreshold ?? i.swipeThreshold
|
|
34
|
+
}
|
|
35
|
+
);
|
|
47
36
|
}
|
|
48
|
-
|
|
37
|
+
};
|
|
49
38
|
};
|
|
50
|
-
m.Close = ({ closeIcon: o, className: r } = {}) => /* @__PURE__ */ e(t.Close, { className: r, children: o ?? /* @__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" }) }) });
|
|
51
39
|
export {
|
|
52
|
-
m as
|
|
40
|
+
m as createToaster
|
|
53
41
|
};
|