@companix/uikit 0.0.85 → 0.0.87
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/WireBar.scss +119 -0
- package/dist/WriteBar/index.d.ts +24 -0
- package/dist/bundle.es.js +68 -66
- package/dist/bundle.es12.js +4 -4
- package/dist/bundle.es13.js +3 -3
- package/dist/bundle.es14.js +2 -2
- package/dist/bundle.es16.js +1 -1
- package/dist/bundle.es2.js +1 -1
- package/dist/bundle.es21.js +1 -1
- package/dist/bundle.es22.js +1 -1
- package/dist/bundle.es23.js +1 -1
- package/dist/bundle.es24.js +1 -1
- package/dist/bundle.es25.js +1 -1
- package/dist/bundle.es27.js +1 -1
- package/dist/bundle.es28.js +4 -4
- package/dist/bundle.es29.js +2 -2
- package/dist/bundle.es32.js +2 -2
- package/dist/bundle.es37.js +1 -1
- package/dist/bundle.es38.js +80 -34
- package/dist/bundle.es39.js +33 -20
- package/dist/bundle.es40.js +21 -10
- package/dist/bundle.es41.js +10 -11
- package/dist/bundle.es42.js +11 -13
- package/dist/bundle.es43.js +13 -13
- package/dist/bundle.es44.js +13 -26
- package/dist/bundle.es45.js +17 -29
- package/dist/bundle.es46.js +36 -48
- package/dist/bundle.es47.js +49 -46
- package/dist/bundle.es48.js +47 -8
- package/dist/bundle.es49.js +8 -26
- package/dist/bundle.es50.js +27 -5
- package/dist/bundle.es51.js +5 -25
- package/dist/bundle.es52.js +25 -23
- package/dist/bundle.es53.js +22 -23
- package/dist/bundle.es54.js +24 -88
- package/dist/bundle.es55.js +88 -18
- package/dist/bundle.es56.js +17 -92
- package/dist/bundle.es57.js +92 -73
- package/dist/bundle.es58.js +73 -23
- package/dist/bundle.es59.js +20 -35
- package/dist/bundle.es60.js +37 -68
- package/dist/bundle.es61.js +68 -66
- package/dist/bundle.es62.js +67 -10
- package/dist/bundle.es63.js +10 -42
- package/dist/bundle.es64.js +42 -14
- package/dist/bundle.es65.js +15 -32
- package/dist/bundle.es66.js +23 -61
- package/dist/bundle.es67.js +70 -75
- package/dist/bundle.es68.js +13 -48
- package/dist/bundle.es69.js +74 -13
- package/dist/bundle.es70.js +48 -13
- package/dist/bundle.es71.js +16 -0
- package/dist/bundle.es9.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.scss +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
@use '../mixins.scss';
|
|
2
|
+
|
|
3
|
+
.write-bar {
|
|
4
|
+
position: relative;
|
|
5
|
+
display: -webkit-box;
|
|
6
|
+
display: -ms-flexbox;
|
|
7
|
+
display: flex;
|
|
8
|
+
-webkit-box-orient: vertical;
|
|
9
|
+
-webkit-box-direction: normal;
|
|
10
|
+
-ms-flex-direction: column;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
width: 100%;
|
|
13
|
+
-webkit-box-flex: 1;
|
|
14
|
+
-ms-flex: 1 1 auto;
|
|
15
|
+
flex: 1 1 auto;
|
|
16
|
+
|
|
17
|
+
@include mixins.use-styles(write-bar);
|
|
18
|
+
|
|
19
|
+
&-content {
|
|
20
|
+
display: -webkit-box;
|
|
21
|
+
display: -ms-flexbox;
|
|
22
|
+
display: flex;
|
|
23
|
+
padding: 0 6px;
|
|
24
|
+
-webkit-box-align: end;
|
|
25
|
+
-ms-flex-align: end;
|
|
26
|
+
align-items: flex-end;
|
|
27
|
+
position: relative;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&-form {
|
|
31
|
+
position: relative;
|
|
32
|
+
display: flex;
|
|
33
|
+
flex: 1;
|
|
34
|
+
min-inline-size: 0;
|
|
35
|
+
|
|
36
|
+
textarea {
|
|
37
|
+
box-sizing: border-box;
|
|
38
|
+
flex: 1;
|
|
39
|
+
-webkit-appearance: none;
|
|
40
|
+
-moz-appearance: none;
|
|
41
|
+
appearance: none;
|
|
42
|
+
resize: none;
|
|
43
|
+
background: transparent;
|
|
44
|
+
border: 0;
|
|
45
|
+
height: 56px;
|
|
46
|
+
max-height: 280px;
|
|
47
|
+
padding: 16px 12px;
|
|
48
|
+
width: 100%;
|
|
49
|
+
min-width: 0;
|
|
50
|
+
|
|
51
|
+
&::-webkit-scrollbar {
|
|
52
|
+
width: 8px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&::-webkit-scrollbar-corner {
|
|
56
|
+
visibility: hidden;
|
|
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
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&-icon {
|
|
79
|
+
display: -webkit-box;
|
|
80
|
+
display: -ms-flexbox;
|
|
81
|
+
display: flex;
|
|
82
|
+
-webkit-box-pack: center;
|
|
83
|
+
-ms-flex-pack: center;
|
|
84
|
+
justify-content: center;
|
|
85
|
+
-webkit-box-align: center;
|
|
86
|
+
-ms-flex-align: center;
|
|
87
|
+
align-items: center;
|
|
88
|
+
position: relative;
|
|
89
|
+
border: 0;
|
|
90
|
+
background: none;
|
|
91
|
+
cursor: pointer;
|
|
92
|
+
opacity: 0.72;
|
|
93
|
+
height: 56px;
|
|
94
|
+
min-width: 44px;
|
|
95
|
+
width: 44px;
|
|
96
|
+
transition: all 150ms;
|
|
97
|
+
|
|
98
|
+
&[data-hidden] {
|
|
99
|
+
transform: scale(0);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&[data-mode='attach'] {
|
|
103
|
+
@include mixins.use-styles(write-bar, icon, attach);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&[data-mode='send'] {
|
|
107
|
+
@include mixins.use-styles(write-bar, icon, send);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&:hover {
|
|
111
|
+
opacity: 1;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
svg {
|
|
115
|
+
height: 22px;
|
|
116
|
+
width: 20px;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IconDefinition } from '../Icon';
|
|
2
|
+
export interface WriteBarProps extends Pick<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'autoComplete' | 'cols' | 'dirName' | 'disabled' | 'maxLength' | 'minLength' | 'name' | 'placeholder' | 'readOnly' | 'required' | 'rows' | 'value' | 'wrap' | 'onChange' | 'onFocus' | 'onBlur'>, Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onFocus' | 'onBlur'> {
|
|
3
|
+
containerRef?: React.Ref<HTMLDivElement>;
|
|
4
|
+
textareaRef?: React.Ref<HTMLTextAreaElement>;
|
|
5
|
+
before?: React.ReactNode;
|
|
6
|
+
inlineAfter?: React.ReactNode;
|
|
7
|
+
after?: React.ReactNode;
|
|
8
|
+
onHeightChange?: VoidFunction;
|
|
9
|
+
shadow?: boolean;
|
|
10
|
+
header?: React.ReactNode;
|
|
11
|
+
children?: never;
|
|
12
|
+
}
|
|
13
|
+
export declare const WriteBar: {
|
|
14
|
+
({ before, inlineAfter, after, onHeightChange, shadow, containerRef, header, textareaRef, autoComplete, cols, dirName, disabled, maxLength, minLength, name, placeholder, readOnly, required, value, wrap, rows, onChange, onFocus, onBlur, id, inputMode, defaultValue, autoFocus, tabIndex, spellCheck, className, ...restProps }: WriteBarProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
IconButton({ icon, mode, onClick, isLoading, isHidden }: WriteBarIconProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
};
|
|
17
|
+
interface WriteBarIconProps {
|
|
18
|
+
icon: IconDefinition;
|
|
19
|
+
onClick?: () => void;
|
|
20
|
+
mode: 'send' | 'attach';
|
|
21
|
+
isLoading?: boolean;
|
|
22
|
+
isHidden?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
package/dist/bundle.es.js
CHANGED
|
@@ -8,99 +8,101 @@ import { ImitateScroll as S } from "./bundle.es8.js";
|
|
|
8
8
|
import { Segments as g } from "./bundle.es9.js";
|
|
9
9
|
import { Popover as h } from "./bundle.es10.js";
|
|
10
10
|
import { Tooltip as v } from "./bundle.es11.js";
|
|
11
|
-
import { Select as
|
|
12
|
-
import { SelectTags as
|
|
11
|
+
import { Select as D } from "./bundle.es12.js";
|
|
12
|
+
import { SelectTags as d } from "./bundle.es13.js";
|
|
13
13
|
import { Input as k } from "./bundle.es14.js";
|
|
14
14
|
import { OptionItem as L } from "./bundle.es15.js";
|
|
15
15
|
import { NumberInput as w } from "./bundle.es16.js";
|
|
16
16
|
import { OptionsList as C } from "./bundle.es17.js";
|
|
17
17
|
import { Checkbox as O } from "./bundle.es18.js";
|
|
18
18
|
import { Switch as F } from "./bundle.es19.js";
|
|
19
|
-
import { Radio as
|
|
20
|
-
import { Drawer as
|
|
21
|
-
import { Dialog as
|
|
22
|
-
import { AlertDialog as
|
|
23
|
-
import { LoadingButton as
|
|
19
|
+
import { Radio as W, RadioGroup as j } from "./bundle.es20.js";
|
|
20
|
+
import { Drawer as E } from "./bundle.es21.js";
|
|
21
|
+
import { Dialog as J } from "./bundle.es22.js";
|
|
22
|
+
import { AlertDialog as M } from "./bundle.es23.js";
|
|
23
|
+
import { LoadingButton as U } from "./bundle.es24.js";
|
|
24
24
|
import { Tabs as X } from "./bundle.es25.js";
|
|
25
25
|
import { Countdown as Z } from "./bundle.es26.js";
|
|
26
26
|
import { TextArea as $ } from "./bundle.es27.js";
|
|
27
|
-
import { DatePicker as
|
|
28
|
-
import { DateInput as
|
|
29
|
-
import { FileOverlay as
|
|
30
|
-
import { FormGroup as
|
|
31
|
-
import { TimePicker as
|
|
32
|
-
import { Icon as
|
|
33
|
-
import { ProgressBar as
|
|
34
|
-
import { Skeleton as
|
|
35
|
-
import { Blank as
|
|
36
|
-
import { ProgressRing as
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
27
|
+
import { DatePicker as or } from "./bundle.es28.js";
|
|
28
|
+
import { DateInput as tr } from "./bundle.es29.js";
|
|
29
|
+
import { FileOverlay as mr } from "./bundle.es30.js";
|
|
30
|
+
import { FormGroup as fr } from "./bundle.es31.js";
|
|
31
|
+
import { TimePicker as ir } from "./bundle.es32.js";
|
|
32
|
+
import { Icon as cr } from "./bundle.es33.js";
|
|
33
|
+
import { ProgressBar as sr } from "./bundle.es34.js";
|
|
34
|
+
import { Skeleton as ur } from "./bundle.es35.js";
|
|
35
|
+
import { Blank as Tr } from "./bundle.es36.js";
|
|
36
|
+
import { ProgressRing as Pr } from "./bundle.es37.js";
|
|
37
|
+
import { WriteBar as Br } from "./bundle.es38.js";
|
|
38
|
+
import { ThemeProvider as Rr, useTheme as dr } from "./bundle.es39.js";
|
|
39
|
+
import { ColorSchemeScript as kr, colorSchemeScript as Ar } from "./bundle.es40.js";
|
|
40
|
+
import { useLocalStorage as br } from "./bundle.es41.js";
|
|
41
|
+
import { useBooleanState as yr } from "./bundle.es42.js";
|
|
42
|
+
import { useResizeTextarea as Gr } from "./bundle.es43.js";
|
|
43
|
+
import { useLoading as zr } from "./bundle.es44.js";
|
|
44
|
+
import { createAlertAgent as Nr } from "./bundle.es45.js";
|
|
45
|
+
import { createToaster as jr } from "./bundle.es46.js";
|
|
46
|
+
import { Toast as Er } from "./bundle.es47.js";
|
|
47
|
+
import { DialogShell as Jr, DrawerShell as Kr, createPopupRegistry as Mr } from "./bundle.es48.js";
|
|
48
|
+
import { createPopoversRegistry as Ur } from "./bundle.es49.js";
|
|
49
|
+
import { createScope as Xr, createStaticScope as Yr } from "./bundle.es50.js";
|
|
50
|
+
import { RemoveListener as _r } from "./bundle.es51.js";
|
|
50
51
|
export {
|
|
51
|
-
|
|
52
|
+
M as AlertDialog,
|
|
52
53
|
e as Avatar,
|
|
53
|
-
|
|
54
|
+
Tr as Blank,
|
|
54
55
|
x as Button,
|
|
55
56
|
a as ButtonGroup,
|
|
56
57
|
O as Checkbox,
|
|
57
|
-
|
|
58
|
+
kr as ColorSchemeScript,
|
|
58
59
|
Z as Countdown,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
60
|
+
tr as DateInput,
|
|
61
|
+
or as DatePicker,
|
|
62
|
+
J as Dialog,
|
|
63
|
+
Jr as DialogShell,
|
|
64
|
+
E as Drawer,
|
|
65
|
+
Kr as DrawerShell,
|
|
66
|
+
mr as FileOverlay,
|
|
67
|
+
fr as FormGroup,
|
|
68
|
+
cr as Icon,
|
|
68
69
|
S as ImitateScroll,
|
|
69
70
|
k as Input,
|
|
70
|
-
|
|
71
|
+
U as LoadingButton,
|
|
71
72
|
w as NumberInput,
|
|
72
73
|
L as OptionItem,
|
|
73
74
|
C as OptionsList,
|
|
74
75
|
h as Popover,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
76
|
+
sr as ProgressBar,
|
|
77
|
+
Pr as ProgressRing,
|
|
78
|
+
W as Radio,
|
|
79
|
+
j as RadioGroup,
|
|
80
|
+
_r as RemoveListener,
|
|
80
81
|
n as Scrollable,
|
|
81
82
|
g as Segments,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
D as Select,
|
|
84
|
+
d as SelectTags,
|
|
85
|
+
ur as Skeleton,
|
|
85
86
|
l as Spinner,
|
|
86
87
|
F as Switch,
|
|
87
88
|
X as Tabs,
|
|
88
89
|
$ as TextArea,
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
Rr as ThemeProvider,
|
|
91
|
+
ir as TimePicker,
|
|
92
|
+
Er as Toast,
|
|
92
93
|
v as Tooltip,
|
|
94
|
+
Br as WriteBar,
|
|
93
95
|
p as avatarSizes,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
96
|
+
Ar as colorSchemeScript,
|
|
97
|
+
Nr as createAlertAgent,
|
|
98
|
+
Ur as createPopoversRegistry,
|
|
99
|
+
Mr as createPopupRegistry,
|
|
100
|
+
Xr as createScope,
|
|
101
|
+
Yr as createStaticScope,
|
|
102
|
+
jr as createToaster,
|
|
103
|
+
yr as useBooleanState,
|
|
104
|
+
zr as useLoading,
|
|
105
|
+
br as useLocalStorage,
|
|
106
|
+
Gr as useResizeTextarea,
|
|
107
|
+
dr as useTheme
|
|
106
108
|
};
|
package/dist/bundle.es12.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.es10.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.es54.js";
|
|
5
|
+
import { SelectInput as H } from "./bundle.es55.js";
|
|
6
|
+
import { useScrollListController as M } from "./bundle.es56.js";
|
|
7
|
+
import { OptionsPopover as N } from "./bundle.es57.js";
|
|
8
8
|
import { mergeRefs as W } from "react-merge-refs";
|
|
9
9
|
const Z = (t) => {
|
|
10
10
|
const {
|
package/dist/bundle.es13.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.es54.js";
|
|
7
7
|
import { Popover as L } from "./bundle.es10.js";
|
|
8
8
|
import { Icon as g } from "./bundle.es33.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.es57.js";
|
|
11
|
+
import { arrays as v } from "./bundle.es58.js";
|
|
12
12
|
const ne = (r) => {
|
|
13
13
|
const {
|
|
14
14
|
closeAfterSelect: C,
|
package/dist/bundle.es14.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.es59.js";
|
|
5
|
+
import { InputContainer as I } from "./bundle.es60.js";
|
|
6
6
|
import g from "classnames";
|
|
7
7
|
const N = b(
|
|
8
8
|
({
|
package/dist/bundle.es16.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.es60.js";
|
|
6
6
|
import { NumericFormat as V } from "react-number-format";
|
|
7
7
|
const D = j(
|
|
8
8
|
({
|
package/dist/bundle.es2.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as I, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { box as g } from "@companix/utils-browser";
|
|
3
|
-
import { getInitialsFontSize as h } from "./bundle.
|
|
3
|
+
import { getInitialsFontSize as h } from "./bundle.es52.js";
|
|
4
4
|
const k = 24, y = ({
|
|
5
5
|
alt: n,
|
|
6
6
|
crossOrigin: i,
|
package/dist/bundle.es21.js
CHANGED
|
@@ -3,7 +3,7 @@ import d from "classnames";
|
|
|
3
3
|
import * as e from "@radix-ui/react-dialog";
|
|
4
4
|
import { VisuallyHidden as i } from "@radix-ui/react-visually-hidden";
|
|
5
5
|
import { customCSS as p } from "@companix/utils-browser";
|
|
6
|
-
import { RemoveListener as f } from "./bundle.
|
|
6
|
+
import { RemoveListener as f } from "./bundle.es51.js";
|
|
7
7
|
const h = ({
|
|
8
8
|
open: t,
|
|
9
9
|
onClosed: l,
|
package/dist/bundle.es22.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as i } 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 a } from "@radix-ui/react-visually-hidden";
|
|
5
|
-
import { RemoveListener as v } from "./bundle.
|
|
5
|
+
import { RemoveListener as v } from "./bundle.es51.js";
|
|
6
6
|
const g = (l) => {
|
|
7
7
|
const { size: n = "s", open: r, onOpenChange: s, children: c, onClosed: t, disableEsc: p, className: d } = l, m = (h) => {
|
|
8
8
|
p && h.preventDefault();
|
package/dist/bundle.es23.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import * as r from "@radix-ui/react-alert-dialog";
|
|
3
3
|
import { Button as c } from "./bundle.es4.js";
|
|
4
|
-
import { RemoveListener as N } from "./bundle.
|
|
4
|
+
import { RemoveListener as N } from "./bundle.es51.js";
|
|
5
5
|
import { VisuallyHidden as u } from "@radix-ui/react-visually-hidden";
|
|
6
6
|
const C = ({
|
|
7
7
|
open: d,
|
package/dist/bundle.es24.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { Button as m } from "./bundle.es4.js";
|
|
3
|
-
import { useLoading as p } from "./bundle.
|
|
3
|
+
import { useLoading as p } from "./bundle.es44.js";
|
|
4
4
|
const g = ({ onClick: o, appearance: r = "primary", ...i }) => {
|
|
5
5
|
const { isLoading: n, isError: t, handleClick: a } = p({ onClick: o });
|
|
6
6
|
return /* @__PURE__ */ e(
|
package/dist/bundle.es25.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.es53.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.es27.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.es43.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.es28.js
CHANGED
|
@@ -2,11 +2,11 @@ import { jsx as u } from "react/jsx-runtime";
|
|
|
2
2
|
import { Popover as T } from "./bundle.es10.js";
|
|
3
3
|
import { Input as w } from "./bundle.es14.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.es61.js";
|
|
6
|
+
import { useDayDisableCheker as N } from "./bundle.es62.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.es58.js";
|
|
9
|
+
import { SelectRightElements as Y } from "./bundle.es63.js";
|
|
10
10
|
const i = {
|
|
11
11
|
char: "-",
|
|
12
12
|
toString: (e) => {
|
package/dist/bundle.es29.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.es12.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.es58.js";
|
|
5
|
+
import { defaultMin as j, defaultMax as N, useCalendarOptions as V } from "./bundle.es64.js";
|
|
6
6
|
const B = ({
|
|
7
7
|
min: o = j,
|
|
8
8
|
max: e = N,
|
package/dist/bundle.es32.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.es58.js";
|
|
5
|
+
import { SelectRightElements as z } from "./bundle.es63.js";
|
|
6
6
|
import { Select as F } from "./bundle.es12.js";
|
|
7
7
|
import { Input as G } from "./bundle.es14.js";
|
|
8
8
|
const o = {
|
package/dist/bundle.es37.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as e, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { getInitialsFontSize as l } from "./bundle.
|
|
2
|
+
import { getInitialsFontSize as l } from "./bundle.es52.js";
|
|
3
3
|
import { clamp as i, customCSS as m, px as n } from "@companix/utils-browser";
|
|
4
4
|
const u = ({
|
|
5
5
|
appearance: o = "primary",
|
package/dist/bundle.es38.js
CHANGED
|
@@ -1,37 +1,83 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
1
|
+
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import y from "classnames";
|
|
3
|
+
import { Spinner as D } from "./bundle.es6.js";
|
|
4
|
+
import { Icon as E } from "./bundle.es33.js";
|
|
5
|
+
import { useResizeTextarea as F } from "./bundle.es43.js";
|
|
6
|
+
import { callMultiple as G, attr as H } from "@companix/utils-browser";
|
|
7
|
+
import { mergeRefs as J } from "react-merge-refs";
|
|
8
|
+
const K = ({
|
|
9
|
+
// WriteBarProps
|
|
10
|
+
before: r,
|
|
11
|
+
inlineAfter: a,
|
|
12
|
+
after: i,
|
|
13
|
+
onHeightChange: t,
|
|
14
|
+
shadow: o = !1,
|
|
15
|
+
containerRef: n,
|
|
16
|
+
header: m,
|
|
17
|
+
// textarea props
|
|
18
|
+
textareaRef: c,
|
|
19
|
+
autoComplete: d,
|
|
20
|
+
cols: l,
|
|
21
|
+
dirName: L,
|
|
22
|
+
disabled: f,
|
|
23
|
+
maxLength: p,
|
|
24
|
+
minLength: h,
|
|
25
|
+
name: x,
|
|
26
|
+
placeholder: b,
|
|
27
|
+
readOnly: u,
|
|
28
|
+
required: w,
|
|
29
|
+
value: N,
|
|
30
|
+
wrap: v,
|
|
31
|
+
rows: z,
|
|
32
|
+
onChange: R,
|
|
33
|
+
onFocus: g,
|
|
34
|
+
onBlur: j,
|
|
35
|
+
id: B,
|
|
36
|
+
inputMode: I,
|
|
37
|
+
defaultValue: T,
|
|
38
|
+
autoFocus: A,
|
|
39
|
+
tabIndex: C,
|
|
40
|
+
spellCheck: M,
|
|
41
|
+
className: S,
|
|
42
|
+
...W
|
|
43
|
+
}) => {
|
|
44
|
+
const [k, q] = F(t, !0);
|
|
45
|
+
return /* @__PURE__ */ s("div", { ref: n, ...W, className: y("write-bar", S), children: [
|
|
46
|
+
m,
|
|
47
|
+
/* @__PURE__ */ s("div", { className: "write-bar-content", children: [
|
|
48
|
+
r && /* @__PURE__ */ e("div", { className: "write-bar-before", children: r }),
|
|
49
|
+
/* @__PURE__ */ e("div", { className: "write-bar-form", children: /* @__PURE__ */ e(
|
|
50
|
+
"textarea",
|
|
51
|
+
{
|
|
52
|
+
ref: J([c, k]),
|
|
53
|
+
id: B,
|
|
54
|
+
onChange: G(R, q),
|
|
55
|
+
autoComplete: d,
|
|
56
|
+
cols: l,
|
|
57
|
+
disabled: f,
|
|
58
|
+
maxLength: p,
|
|
59
|
+
minLength: h,
|
|
60
|
+
name: x,
|
|
61
|
+
placeholder: b,
|
|
62
|
+
readOnly: u,
|
|
63
|
+
required: w,
|
|
64
|
+
value: N,
|
|
65
|
+
wrap: v,
|
|
66
|
+
rows: z,
|
|
67
|
+
onFocus: g,
|
|
68
|
+
onBlur: j,
|
|
69
|
+
inputMode: I,
|
|
70
|
+
defaultValue: T,
|
|
71
|
+
autoFocus: A,
|
|
72
|
+
tabIndex: C,
|
|
73
|
+
spellCheck: M
|
|
74
|
+
}
|
|
75
|
+
) }),
|
|
76
|
+
i && /* @__PURE__ */ e("div", { className: "write-bar-after", children: i })
|
|
77
|
+
] })
|
|
78
|
+
] });
|
|
33
79
|
};
|
|
80
|
+
K.IconButton = ({ icon: r, mode: a, onClick: i, isLoading: t, isHidden: o }) => /* @__PURE__ */ e("button", { onClick: i, className: "write-bar-icon", "data-mode": a, "data-hidden": H(o), children: t ? /* @__PURE__ */ e(D, { size: 18 }) : /* @__PURE__ */ e(E, { icon: r, size: "xxs" }) });
|
|
34
81
|
export {
|
|
35
|
-
|
|
36
|
-
y as useTheme
|
|
82
|
+
K as WriteBar
|
|
37
83
|
};
|