@companix/uikit 0.1.9 → 0.1.11
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/WriteBar/Editor.d.ts +33 -0
- package/dist/WriteBar/Input.d.ts +14 -0
- package/dist/WriteBar/WireBar.scss +44 -46
- package/dist/WriteBar/index.d.ts +6 -6
- package/dist/WriteBar/utils.d.ts +14 -0
- package/dist/bundle.es.js +59 -57
- 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.es24.js +1 -1
- package/dist/bundle.es25.js +1 -1
- package/dist/bundle.es26.js +1 -1
- package/dist/bundle.es27.js +1 -1
- package/dist/bundle.es29.js +1 -1
- package/dist/bundle.es30.js +4 -4
- package/dist/bundle.es31.js +2 -2
- package/dist/bundle.es32.js +34 -23
- package/dist/bundle.es34.js +2 -2
- package/dist/bundle.es40.js +48 -92
- package/dist/bundle.es41.js +154 -79
- package/dist/bundle.es42.js +81 -7
- package/dist/bundle.es43.js +7 -35
- package/dist/bundle.es44.js +33 -20
- package/dist/bundle.es45.js +21 -10
- package/dist/bundle.es46.js +10 -11
- package/dist/bundle.es47.js +11 -13
- package/dist/bundle.es48.js +13 -13
- package/dist/bundle.es49.js +13 -30
- package/dist/bundle.es50.js +29 -25
- package/dist/bundle.es51.js +17 -29
- package/dist/bundle.es52.js +36 -48
- package/dist/bundle.es53.js +49 -50
- package/dist/bundle.es54.js +51 -8
- package/dist/bundle.es55.js +8 -26
- package/dist/bundle.es56.js +27 -5
- package/dist/bundle.es57.js +5 -66
- package/dist/bundle.es58.js +66 -23
- package/dist/bundle.es59.js +22 -23
- package/dist/bundle.es60.js +24 -88
- package/dist/bundle.es61.js +88 -18
- package/dist/bundle.es62.js +17 -92
- package/dist/bundle.es63.js +92 -73
- package/dist/bundle.es64.js +73 -23
- package/dist/bundle.es65.js +20 -35
- package/dist/bundle.es66.js +37 -68
- package/dist/bundle.es67.js +68 -9
- package/dist/bundle.es68.js +10 -42
- package/dist/bundle.es69.js +42 -14
- package/dist/bundle.es70.js +32 -31
- package/dist/bundle.es71.js +41 -69
- package/dist/bundle.es72.js +14 -74
- package/dist/bundle.es73.js +30 -47
- package/dist/bundle.es74.js +69 -13
- package/dist/bundle.es75.js +74 -13
- package/dist/bundle.es76.js +51 -0
- package/dist/bundle.es77.js +16 -0
- package/dist/bundle.es78.js +16 -0
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
interface TextSelection {
|
|
2
|
+
from: number;
|
|
3
|
+
to: number;
|
|
4
|
+
}
|
|
5
|
+
export declare class Editor {
|
|
6
|
+
private element;
|
|
7
|
+
private prevText;
|
|
8
|
+
private prevTextSelection;
|
|
9
|
+
private handlers;
|
|
10
|
+
constructor(element: HTMLSpanElement);
|
|
11
|
+
getElement(): HTMLSpanElement;
|
|
12
|
+
onPaste(handler: (files: File[]) => void): () => void;
|
|
13
|
+
onFocusChange(handler: (focused: boolean) => void): () => void;
|
|
14
|
+
onContentChange(handler: (text: string, selection: TextSelection) => void): () => void;
|
|
15
|
+
onMouseDown(): () => void;
|
|
16
|
+
setSelection(selection: TextSelection): void;
|
|
17
|
+
insertAtSelection(text: string, selection?: TextSelection): void;
|
|
18
|
+
removeFormat(): void;
|
|
19
|
+
resetText(text?: string, asHtml?: boolean, focusEditor?: boolean): void;
|
|
20
|
+
getText(): string;
|
|
21
|
+
getHtml(): string;
|
|
22
|
+
getHtmlWithEmojisAsText(): string;
|
|
23
|
+
focus(atStart?: boolean): void;
|
|
24
|
+
isFocused(): boolean;
|
|
25
|
+
setDisabled(disabled: boolean): void;
|
|
26
|
+
private handlePaste;
|
|
27
|
+
private handleFocus;
|
|
28
|
+
private handleBlur;
|
|
29
|
+
private handleMouseDown;
|
|
30
|
+
private checkContentChanged;
|
|
31
|
+
private resolveDomPosition;
|
|
32
|
+
}
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Editor } from './Editor';
|
|
2
|
+
interface WriteBarInputProps {
|
|
3
|
+
id?: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
inputClassName: string;
|
|
6
|
+
placeholderClassName?: string;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
value?: string;
|
|
9
|
+
inputMode?: 'text';
|
|
10
|
+
onClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
11
|
+
onCreate: (editor: Editor) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const WriteBarInput: (props: WriteBarInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -27,52 +27,50 @@
|
|
|
27
27
|
position: relative;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
&-
|
|
30
|
+
&-placeholder {
|
|
31
|
+
position: absolute;
|
|
32
|
+
left: 0;
|
|
33
|
+
top: 0;
|
|
34
|
+
font: inherit;
|
|
35
|
+
font: inherit;
|
|
36
|
+
-webkit-user-select: none;
|
|
37
|
+
-moz-user-select: none;
|
|
38
|
+
-ms-user-select: none;
|
|
39
|
+
user-select: none;
|
|
40
|
+
|
|
41
|
+
padding: 12px 0;
|
|
42
|
+
|
|
43
|
+
@include mixins.use-styles(write-bar, placeholder);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&-input-wrapper {
|
|
31
47
|
position: relative;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
&::-webkit-scrollbar-thumb {
|
|
60
|
-
visibility: hidden;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
&::placeholder {
|
|
64
|
-
overflow: hidden;
|
|
65
|
-
text-overflow: ellipsis;
|
|
66
|
-
white-space: nowrap;
|
|
67
|
-
opacity: 1;
|
|
68
|
-
|
|
69
|
-
@include mixins.use-styles(write-bar, placeholder);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
&:focus {
|
|
73
|
-
outline: none;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
48
|
+
width: 100%;
|
|
49
|
+
overflow: auto;
|
|
50
|
+
|
|
51
|
+
margin: 0 6px;
|
|
52
|
+
-ms-flex-item-align: center;
|
|
53
|
+
align-self: center;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&-input {
|
|
57
|
+
display: block;
|
|
58
|
+
position: relative;
|
|
59
|
+
font: inherit;
|
|
60
|
+
width: 100%;
|
|
61
|
+
-webkit-box-flex: 1;
|
|
62
|
+
-ms-flex: 1 1 auto;
|
|
63
|
+
flex: 1 1 auto;
|
|
64
|
+
overflow: auto;
|
|
65
|
+
background-color: transparent;
|
|
66
|
+
cursor: text;
|
|
67
|
+
white-space: pre-wrap;
|
|
68
|
+
white-space: break-spaces;
|
|
69
|
+
outline: none;
|
|
70
|
+
|
|
71
|
+
margin: 12px 0;
|
|
72
|
+
min-height: var(--messageLineHeight);
|
|
73
|
+
max-height: calc(12 * var(--messageLineHeight));
|
|
76
74
|
}
|
|
77
75
|
|
|
78
76
|
&-icon {
|
|
@@ -90,7 +88,7 @@
|
|
|
90
88
|
background: none;
|
|
91
89
|
cursor: pointer;
|
|
92
90
|
opacity: 0.72;
|
|
93
|
-
height:
|
|
91
|
+
height: 48px;
|
|
94
92
|
min-width: 44px;
|
|
95
93
|
width: 44px;
|
|
96
94
|
transition: all 150ms;
|
package/dist/WriteBar/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { IconDefinition } from '../Icon';
|
|
2
|
-
|
|
2
|
+
import { Editor } from './Editor';
|
|
3
|
+
export interface WriteBarProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onFocus' | 'onBlur' | 'onKeyDown'> {
|
|
3
4
|
containerRef?: React.Ref<HTMLDivElement>;
|
|
4
|
-
textareaRef?: React.Ref<HTMLTextAreaElement>;
|
|
5
5
|
before?: React.ReactNode;
|
|
6
|
-
inlineAfter?: React.ReactNode;
|
|
7
6
|
after?: React.ReactNode;
|
|
8
|
-
onHeightChange?: VoidFunction;
|
|
9
7
|
contentClassName?: string;
|
|
10
8
|
shadow?: boolean;
|
|
11
|
-
|
|
9
|
+
header?: React.ReactNode;
|
|
12
10
|
children?: never;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
onCreate: (editor: Editor) => void;
|
|
13
13
|
}
|
|
14
14
|
export declare const WriteBar: {
|
|
15
|
-
(
|
|
15
|
+
(props: WriteBarProps): import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
IconButton({ Component, icon, mode, onClick, isLoading, isHidden }: WriteBarIconProps): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
};
|
|
18
18
|
interface WriteBarIconProps {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const isTextNode: (node: Node) => node is Text;
|
|
2
|
+
export declare const isElementNode: (node: Node) => node is Element;
|
|
3
|
+
export declare const getNodeTextContent: (node: Node) => string;
|
|
4
|
+
export declare const getEditorSelection: (root: HTMLElement) => {
|
|
5
|
+
range: Range;
|
|
6
|
+
selection: Selection;
|
|
7
|
+
} | {};
|
|
8
|
+
export declare const getPlainTextOffset: (root: HTMLElement, targetNode: Node, targetOffset: number) => number;
|
|
9
|
+
export declare const getTextSelectionOffsets: (root: HTMLElement, range: Range) => {
|
|
10
|
+
from: number;
|
|
11
|
+
to: number;
|
|
12
|
+
};
|
|
13
|
+
export declare const scrollSelectionIntoView: () => void;
|
|
14
|
+
export declare const normalizeEditorText: (text: string) => string;
|
package/dist/bundle.es.js
CHANGED
|
@@ -16,7 +16,7 @@ import { OptionItem as w } from "./bundle.es16.js";
|
|
|
16
16
|
import { NumberInput as L } from "./bundle.es17.js";
|
|
17
17
|
import { OptionsList as F } from "./bundle.es18.js";
|
|
18
18
|
import { Checkbox as G } from "./bundle.es19.js";
|
|
19
|
-
import { Switch as
|
|
19
|
+
import { Switch as E } from "./bundle.es20.js";
|
|
20
20
|
import { Radio as j, RadioGroup as q } from "./bundle.es21.js";
|
|
21
21
|
import { Drawer as J } from "./bundle.es22.js";
|
|
22
22
|
import { Dialog as Q } from "./bundle.es23.js";
|
|
@@ -37,23 +37,24 @@ import { Skeleton as Pe } from "./bundle.es37.js";
|
|
|
37
37
|
import { Blank as Ie } from "./bundle.es38.js";
|
|
38
38
|
import { ProgressRing as ke } from "./bundle.es39.js";
|
|
39
39
|
import { WriteBar as ve } from "./bundle.es40.js";
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
40
|
+
import { Editor as Oe } from "./bundle.es41.js";
|
|
41
|
+
import { DropArea as ze, DropAreaProvider as we, useDragEnter as Ce } from "./bundle.es42.js";
|
|
42
|
+
import { Table as Me } from "./bundle.es43.js";
|
|
43
|
+
import { ThemeProvider as Ne, useTheme as Ge } from "./bundle.es44.js";
|
|
44
|
+
import { ColorSchemeScript as Ee, colorSchemeScript as Ye } from "./bundle.es45.js";
|
|
45
|
+
import { useLocalStorage as qe } from "./bundle.es46.js";
|
|
46
|
+
import { useBooleanState as Je } from "./bundle.es47.js";
|
|
47
|
+
import { useResizeTextarea as Qe } from "./bundle.es48.js";
|
|
48
|
+
import { useLoading as Ve } from "./bundle.es49.js";
|
|
49
|
+
import { NowContextProvider as Ze, useNow as _e } from "./bundle.es50.js";
|
|
50
|
+
import { createAlertAgent as er } from "./bundle.es51.js";
|
|
51
|
+
import { createToaster as or } from "./bundle.es52.js";
|
|
52
|
+
import { Toast as pr } from "./bundle.es53.js";
|
|
53
|
+
import { DialogShell as ar, DrawerShell as xr, createPopupRegistry as fr, usePopup as ir } from "./bundle.es54.js";
|
|
54
|
+
import { createPopoversRegistry as nr } from "./bundle.es55.js";
|
|
55
|
+
import { createScope as cr, createStaticScope as Sr } from "./bundle.es56.js";
|
|
56
|
+
import { RemoveListener as gr } from "./bundle.es57.js";
|
|
57
|
+
import { MONDAY as dr, addMonths as hr, createDayDisableChecker as Br, endOfDay as Pr, endOfWeek as yr, isDayMinMaxRestricted as Ir, isSameDate as Tr, setMonth as kr, setYear as br, startOfDay as vr, startOfWeek as Ar, subMonths as Or, useDayDisableCheker as Rr } from "./bundle.es58.js";
|
|
57
58
|
export {
|
|
58
59
|
Z as AlertDialog,
|
|
59
60
|
o as Avatar,
|
|
@@ -61,24 +62,25 @@ export {
|
|
|
61
62
|
s as Button,
|
|
62
63
|
l as ButtonGroup,
|
|
63
64
|
G as Checkbox,
|
|
64
|
-
|
|
65
|
+
Ee as ColorSchemeScript,
|
|
65
66
|
te as Countdown,
|
|
66
67
|
ie as DateInput,
|
|
67
68
|
xe as DatePicker,
|
|
68
69
|
Q as Dialog,
|
|
69
|
-
|
|
70
|
+
ar as DialogShell,
|
|
70
71
|
J as Drawer,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
xr as DrawerShell,
|
|
73
|
+
ze as DropArea,
|
|
74
|
+
we as DropAreaProvider,
|
|
75
|
+
Oe as Editor,
|
|
74
76
|
ne as FileOverlay,
|
|
75
77
|
ce as FormGroup,
|
|
76
78
|
De as Icon,
|
|
77
79
|
d as ImitateScroll,
|
|
78
80
|
R as Input,
|
|
79
81
|
$ as LoadingButton,
|
|
80
|
-
|
|
81
|
-
|
|
82
|
+
dr as MONDAY,
|
|
83
|
+
Ze as NowContextProvider,
|
|
82
84
|
L as NumberInput,
|
|
83
85
|
w as OptionItem,
|
|
84
86
|
F as OptionsList,
|
|
@@ -88,51 +90,51 @@ export {
|
|
|
88
90
|
ke as ProgressRing,
|
|
89
91
|
j as Radio,
|
|
90
92
|
q as RadioGroup,
|
|
91
|
-
|
|
93
|
+
gr as RemoveListener,
|
|
92
94
|
g as Scrollable,
|
|
93
95
|
B as Segments,
|
|
94
96
|
b as Select,
|
|
95
97
|
A as SelectTags,
|
|
96
98
|
Pe as Skeleton,
|
|
97
99
|
S as Spinner,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
+
E as Switch,
|
|
101
|
+
Me as Table,
|
|
100
102
|
re as Tabs,
|
|
101
103
|
me as TextArea,
|
|
102
|
-
|
|
104
|
+
Ne as ThemeProvider,
|
|
103
105
|
ue as TimePicker,
|
|
104
|
-
|
|
106
|
+
pr as Toast,
|
|
105
107
|
T as Tooltip,
|
|
106
108
|
ve as WriteBar,
|
|
107
|
-
|
|
109
|
+
hr as addMonths,
|
|
108
110
|
p as avatarSizes,
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
111
|
+
Ye as colorSchemeScript,
|
|
112
|
+
er as createAlertAgent,
|
|
113
|
+
Br as createDayDisableChecker,
|
|
114
|
+
nr as createPopoversRegistry,
|
|
115
|
+
fr as createPopupRegistry,
|
|
116
|
+
cr as createScope,
|
|
117
|
+
Sr as createStaticScope,
|
|
118
|
+
or as createToaster,
|
|
119
|
+
Pr as endOfDay,
|
|
120
|
+
yr as endOfWeek,
|
|
119
121
|
a as getBadgeIconSizeByImageBaseSize,
|
|
120
122
|
x as getFallbackIconSizeByImageBaseSize,
|
|
121
123
|
f as getInitialsFontSize,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
124
|
+
Ir as isDayMinMaxRestricted,
|
|
125
|
+
Tr as isSameDate,
|
|
126
|
+
kr as setMonth,
|
|
127
|
+
br as setYear,
|
|
128
|
+
vr as startOfDay,
|
|
129
|
+
Ar as startOfWeek,
|
|
130
|
+
Or as subMonths,
|
|
131
|
+
Je as useBooleanState,
|
|
132
|
+
Rr as useDayDisableCheker,
|
|
133
|
+
Ce as useDragEnter,
|
|
134
|
+
Ve as useLoading,
|
|
135
|
+
qe as useLocalStorage,
|
|
136
|
+
_e as useNow,
|
|
137
|
+
ir as usePopup,
|
|
138
|
+
Qe as useResizeTextarea,
|
|
139
|
+
Ge as useTheme
|
|
138
140
|
};
|
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.es59.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.es60.js";
|
|
5
|
+
import { SelectInput as H } from "./bundle.es61.js";
|
|
6
|
+
import { useScrollListController as M } from "./bundle.es62.js";
|
|
7
|
+
import { OptionsPopover as N } from "./bundle.es63.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.es60.js";
|
|
7
7
|
import { Popover as L } from "./bundle.es11.js";
|
|
8
8
|
import { Icon as g } from "./bundle.es35.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.es63.js";
|
|
11
|
+
import { arrays as v } from "./bundle.es64.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.es65.js";
|
|
5
|
+
import { InputContainer as I } from "./bundle.es66.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.es66.js";
|
|
6
6
|
import { NumericFormat as V } from "react-number-format";
|
|
7
7
|
const D = j(
|
|
8
8
|
({
|
package/dist/bundle.es24.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
|
2
2
|
import f 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.es57.js";
|
|
6
6
|
const v = (i) => {
|
|
7
7
|
const { open: t, onOpenChange: s, children: a, onClosed: c, disableEsc: p, overlay: n = {}, content: m = {} } = i, d = (h) => {
|
|
8
8
|
p && h.preventDefault();
|
package/dist/bundle.es25.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.es57.js";
|
|
5
5
|
import { VisuallyHidden as u } from "@radix-ui/react-visually-hidden";
|
|
6
6
|
const C = ({
|
|
7
7
|
open: d,
|
package/dist/bundle.es26.js
CHANGED
package/dist/bundle.es27.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as a, jsxs as d } from "react/jsx-runtime";
|
|
2
|
-
import { useTabSlider as b, makeTabId as l } from "./bundle.
|
|
2
|
+
import { useTabSlider as b, makeTabId as l } from "./bundle.es59.js";
|
|
3
3
|
import * as n from "@radix-ui/react-tabs";
|
|
4
4
|
import { useRef as m, useId as f, createContext as T, useContext as c } from "react";
|
|
5
5
|
const o = T({ baseId: "", containerRef: {} }), u = ({ children: s, value: e, onChange: r }) => {
|
package/dist/bundle.es29.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import u from "classnames";
|
|
3
|
-
import { useResizeTextarea as z } from "./bundle.
|
|
3
|
+
import { useResizeTextarea as z } from "./bundle.es48.js";
|
|
4
4
|
import { attr as e, callMultiple as R } from "@companix/utils-browser";
|
|
5
5
|
import { useEffect as T } from "react";
|
|
6
6
|
import { mergeRefs as g } from "react-merge-refs";
|
package/dist/bundle.es30.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.es67.js";
|
|
6
|
+
import { useDayDisableCheker as N } from "./bundle.es58.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.es64.js";
|
|
9
|
+
import { SelectRightElements as Y } from "./bundle.es68.js";
|
|
10
10
|
const i = {
|
|
11
11
|
char: "-",
|
|
12
12
|
toString: (e) => {
|
package/dist/bundle.es31.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.es64.js";
|
|
5
|
+
import { defaultMin as j, defaultMax as N, useCalendarOptions as V } from "./bundle.es69.js";
|
|
6
6
|
const B = ({
|
|
7
7
|
min: o = j,
|
|
8
8
|
max: e = N,
|
package/dist/bundle.es32.js
CHANGED
|
@@ -1,35 +1,46 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
onChange: l,
|
|
1
|
+
import { jsxs as x, jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as s, useMemo as u } from "react";
|
|
3
|
+
const g = ({
|
|
4
|
+
onChange: o,
|
|
6
5
|
disabled: n,
|
|
7
|
-
children:
|
|
8
|
-
multiple:
|
|
9
|
-
mimes:
|
|
6
|
+
children: p,
|
|
7
|
+
multiple: i,
|
|
8
|
+
mimes: r,
|
|
10
9
|
className: a
|
|
11
10
|
}) => {
|
|
12
|
-
const t =
|
|
13
|
-
n || (
|
|
14
|
-
},
|
|
15
|
-
if (
|
|
16
|
-
return
|
|
17
|
-
}, [
|
|
18
|
-
return /* @__PURE__ */
|
|
19
|
-
|
|
20
|
-
/* @__PURE__ */
|
|
11
|
+
const t = s(null), l = (e) => {
|
|
12
|
+
n || (e.target.files && o?.(Array.from(e.target.files)), t.current && (t.current.value = ""));
|
|
13
|
+
}, f = u(() => {
|
|
14
|
+
if (r)
|
|
15
|
+
return r.map((e) => `${e}/*`).join(",");
|
|
16
|
+
}, [r]);
|
|
17
|
+
return /* @__PURE__ */ x("label", { className: a, children: [
|
|
18
|
+
p,
|
|
19
|
+
/* @__PURE__ */ c(
|
|
21
20
|
"input",
|
|
22
21
|
{
|
|
23
22
|
ref: t,
|
|
24
23
|
type: "file",
|
|
25
|
-
multiple:
|
|
26
|
-
accept:
|
|
27
|
-
onChange:
|
|
28
|
-
disabled: n
|
|
24
|
+
multiple: i,
|
|
25
|
+
accept: f,
|
|
26
|
+
onChange: l,
|
|
27
|
+
disabled: n,
|
|
28
|
+
style: {
|
|
29
|
+
position: "fixed",
|
|
30
|
+
border: "0px",
|
|
31
|
+
width: "1px",
|
|
32
|
+
height: "1px",
|
|
33
|
+
padding: "0px",
|
|
34
|
+
margin: "-1px",
|
|
35
|
+
overflow: "hidden",
|
|
36
|
+
clip: "rect(0px, 0px, 0px, 0px)",
|
|
37
|
+
whiteSpace: "nowrap",
|
|
38
|
+
overflowWrap: "normal"
|
|
39
|
+
}
|
|
29
40
|
}
|
|
30
|
-
)
|
|
41
|
+
)
|
|
31
42
|
] });
|
|
32
43
|
};
|
|
33
44
|
export {
|
|
34
|
-
|
|
45
|
+
g as FileOverlay
|
|
35
46
|
};
|
package/dist/bundle.es34.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.es64.js";
|
|
5
|
+
import { SelectRightElements as z } from "./bundle.es68.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 = {
|