@companix/uikit 0.0.93 → 0.0.95
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/DropArea/DropArea.scss +117 -0
- package/dist/DropArea/index.d.ts +14 -0
- package/dist/bundle.es.js +61 -57
- 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 +57 -56
- package/dist/bundle.es39.js +80 -34
- package/dist/bundle.es40.js +33 -20
- package/dist/bundle.es41.js +21 -10
- package/dist/bundle.es42.js +10 -11
- package/dist/bundle.es43.js +11 -13
- package/dist/bundle.es44.js +13 -13
- package/dist/bundle.es45.js +13 -26
- package/dist/bundle.es46.js +17 -29
- package/dist/bundle.es47.js +36 -48
- package/dist/bundle.es48.js +49 -46
- package/dist/bundle.es49.js +47 -8
- package/dist/bundle.es50.js +8 -26
- package/dist/bundle.es51.js +27 -5
- package/dist/bundle.es52.js +5 -66
- package/dist/bundle.es53.js +65 -24
- package/dist/bundle.es54.js +25 -23
- package/dist/bundle.es55.js +22 -23
- package/dist/bundle.es56.js +24 -88
- package/dist/bundle.es57.js +88 -18
- package/dist/bundle.es58.js +17 -92
- package/dist/bundle.es59.js +92 -73
- package/dist/bundle.es60.js +73 -23
- package/dist/bundle.es61.js +20 -35
- package/dist/bundle.es62.js +37 -68
- package/dist/bundle.es63.js +68 -9
- package/dist/bundle.es64.js +10 -42
- package/dist/bundle.es65.js +42 -14
- package/dist/bundle.es66.js +15 -32
- package/dist/bundle.es67.js +23 -61
- package/dist/bundle.es68.js +70 -75
- package/dist/bundle.es69.js +13 -48
- package/dist/bundle.es70.js +74 -13
- package/dist/bundle.es71.js +48 -13
- package/dist/bundle.es72.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,117 @@
|
|
|
1
|
+
@use '../mixins.scss';
|
|
2
|
+
|
|
3
|
+
.drop-area {
|
|
4
|
+
z-index: 2;
|
|
5
|
+
position: absolute;
|
|
6
|
+
left: 0;
|
|
7
|
+
bottom: 0;
|
|
8
|
+
height: 100%;
|
|
9
|
+
width: 100%;
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
|
|
15
|
+
@include mixins.use-styles(drop-area);
|
|
16
|
+
|
|
17
|
+
&-hidden {
|
|
18
|
+
display: none;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.drop-target {
|
|
23
|
+
--margin: 12px;
|
|
24
|
+
|
|
25
|
+
position: relative;
|
|
26
|
+
width: calc(100% - var(--margin) * 2);
|
|
27
|
+
height: calc(100% - var(--margin) * 2);
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
justify-content: center;
|
|
31
|
+
margin: var(--margin);
|
|
32
|
+
-webkit-transition: background-color 0.2s ease;
|
|
33
|
+
transition: background-color 0.2s ease;
|
|
34
|
+
|
|
35
|
+
&-area {
|
|
36
|
+
pointer-events: none;
|
|
37
|
+
display: grid;
|
|
38
|
+
grid-template: 'icon' 56px 'info' auto/auto;
|
|
39
|
+
grid-gap: var(--margin);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&-icon {
|
|
43
|
+
grid-area: icon;
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
justify-content: center;
|
|
47
|
+
transition: color 0.2s ease;
|
|
48
|
+
|
|
49
|
+
@include mixins.use-styles(drop-target, icon);
|
|
50
|
+
|
|
51
|
+
svg {
|
|
52
|
+
@include mixins.use-size(drop-target, icon, size);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&-info {
|
|
57
|
+
grid-area: info;
|
|
58
|
+
display: flex;
|
|
59
|
+
flex-direction: column;
|
|
60
|
+
align-items: center;
|
|
61
|
+
justify-content: center;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&-title {
|
|
65
|
+
font-weight: 600;
|
|
66
|
+
font-size: 20px;
|
|
67
|
+
line-height: 24px;
|
|
68
|
+
transition: color 0.2s ease;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&-text {
|
|
72
|
+
margin-top: 8px;
|
|
73
|
+
font-weight: 400;
|
|
74
|
+
font-size: 14px;
|
|
75
|
+
line-height: 18px;
|
|
76
|
+
text-align: center;
|
|
77
|
+
white-space: pre-wrap;
|
|
78
|
+
|
|
79
|
+
@include mixins.use-styles(drop-target, text);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&-border {
|
|
83
|
+
position: absolute;
|
|
84
|
+
top: 0;
|
|
85
|
+
left: 0;
|
|
86
|
+
border-radius: 8px;
|
|
87
|
+
overflow: hidden;
|
|
88
|
+
width: 100%;
|
|
89
|
+
height: 100%;
|
|
90
|
+
pointer-events: none;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&-border rect {
|
|
94
|
+
fill: none;
|
|
95
|
+
stroke-width: 2.5;
|
|
96
|
+
stroke-dasharray: 6.5;
|
|
97
|
+
transition: stroke 0.2s ease, stroke-width 0.2s ease;
|
|
98
|
+
|
|
99
|
+
@include mixins.use-styles(drop-target, rect);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&-hovered {
|
|
103
|
+
rect {
|
|
104
|
+
stroke-width: 4.5;
|
|
105
|
+
@include mixins.use-styles(drop-target, hovered, rect);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.drop-target-title,
|
|
109
|
+
.drop-target-icon {
|
|
110
|
+
@include mixins.use-styles(drop-target, hovered);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
& + & {
|
|
115
|
+
margin-top: 0;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface DropTargetProps {
|
|
2
|
+
title: string;
|
|
3
|
+
text?: string;
|
|
4
|
+
icon: React.ReactNode;
|
|
5
|
+
onDrop: (e: React.DragEvent<HTMLDivElement>) => void;
|
|
6
|
+
}
|
|
7
|
+
export interface DropAreaProps extends Omit<DropTargetProps, 'onDrop'> {
|
|
8
|
+
onFilesAdd: (files: File[]) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const DropArea: ({ onFilesAdd, ...props }: DropAreaProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const DropAreaProvider: ({ children }: {
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const useDragEnter: () => (event: React.DragEvent<HTMLDivElement>) => void;
|
package/dist/bundle.es.js
CHANGED
|
@@ -8,17 +8,17 @@ import { ImitateScroll as S } from "./bundle.es8.js";
|
|
|
8
8
|
import { Segments as D } from "./bundle.es9.js";
|
|
9
9
|
import { Popover as h } from "./bundle.es10.js";
|
|
10
10
|
import { Tooltip as T } from "./bundle.es11.js";
|
|
11
|
-
import { Select as
|
|
12
|
-
import { SelectTags as
|
|
13
|
-
import { Input as
|
|
14
|
-
import { OptionItem as
|
|
11
|
+
import { Select as P } from "./bundle.es12.js";
|
|
12
|
+
import { SelectTags as y } from "./bundle.es13.js";
|
|
13
|
+
import { Input as O } from "./bundle.es14.js";
|
|
14
|
+
import { OptionItem as b } from "./bundle.es15.js";
|
|
15
15
|
import { NumberInput as I } from "./bundle.es16.js";
|
|
16
16
|
import { OptionsList as C } from "./bundle.es17.js";
|
|
17
17
|
import { Checkbox as w } from "./bundle.es18.js";
|
|
18
18
|
import { Switch as W } from "./bundle.es19.js";
|
|
19
19
|
import { Radio as F, RadioGroup as N } from "./bundle.es20.js";
|
|
20
|
-
import { Drawer as
|
|
21
|
-
import { Dialog as
|
|
20
|
+
import { Drawer as E } from "./bundle.es21.js";
|
|
21
|
+
import { Dialog as q } from "./bundle.es22.js";
|
|
22
22
|
import { AlertDialog as J } from "./bundle.es23.js";
|
|
23
23
|
import { LoadingButton as Q } from "./bundle.es24.js";
|
|
24
24
|
import { Tabs as V } from "./bundle.es25.js";
|
|
@@ -35,20 +35,21 @@ import { Skeleton as ur } from "./bundle.es35.js";
|
|
|
35
35
|
import { Blank as gr } from "./bundle.es36.js";
|
|
36
36
|
import { ProgressRing as dr } from "./bundle.es37.js";
|
|
37
37
|
import { WriteBar as kr } from "./bundle.es38.js";
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
38
|
+
import { DropArea as vr, DropAreaProvider as yr, useDragEnter as Ar } from "./bundle.es39.js";
|
|
39
|
+
import { ThemeProvider as Rr, useTheme as br } from "./bundle.es40.js";
|
|
40
|
+
import { ColorSchemeScript as Ir, colorSchemeScript as Mr } from "./bundle.es41.js";
|
|
41
|
+
import { useLocalStorage as Lr } from "./bundle.es42.js";
|
|
42
|
+
import { useBooleanState as Gr } from "./bundle.es43.js";
|
|
43
|
+
import { useResizeTextarea as zr } from "./bundle.es44.js";
|
|
44
|
+
import { useLoading as Nr } from "./bundle.es45.js";
|
|
45
|
+
import { createAlertAgent as Er } from "./bundle.es46.js";
|
|
46
|
+
import { createToaster as qr } from "./bundle.es47.js";
|
|
47
|
+
import { Toast as Jr } from "./bundle.es48.js";
|
|
48
|
+
import { DialogShell as Qr, DrawerShell as Ur, createPopupRegistry as Vr } from "./bundle.es49.js";
|
|
49
|
+
import { createPopoversRegistry as Zr } from "./bundle.es50.js";
|
|
50
|
+
import { createScope as $r, createStaticScope as re } from "./bundle.es51.js";
|
|
51
|
+
import { RemoveListener as oe } from "./bundle.es52.js";
|
|
52
|
+
import { MONDAY as pe, addMonths as me, createDayDisableChecker as ae, endOfDay as fe, endOfWeek as xe, isDayMinMaxRestricted as ie, isSameDate as se, setMonth as ne, setYear as ce, startOfDay as le, startOfWeek as Se, subMonths as ue, useDayDisableCheker as De } from "./bundle.es53.js";
|
|
52
53
|
export {
|
|
53
54
|
J as AlertDialog,
|
|
54
55
|
o as Avatar,
|
|
@@ -56,67 +57,70 @@ export {
|
|
|
56
57
|
a as Button,
|
|
57
58
|
x as ButtonGroup,
|
|
58
59
|
w as Checkbox,
|
|
59
|
-
|
|
60
|
+
Ir as ColorSchemeScript,
|
|
60
61
|
Z as Countdown,
|
|
61
62
|
tr as DateInput,
|
|
62
63
|
er as DatePicker,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
q as Dialog,
|
|
65
|
+
Qr as DialogShell,
|
|
66
|
+
E as Drawer,
|
|
67
|
+
Ur as DrawerShell,
|
|
68
|
+
vr as DropArea,
|
|
69
|
+
yr as DropAreaProvider,
|
|
67
70
|
mr as FileOverlay,
|
|
68
71
|
fr as FormGroup,
|
|
69
72
|
nr as Icon,
|
|
70
73
|
S as ImitateScroll,
|
|
71
|
-
|
|
74
|
+
O as Input,
|
|
72
75
|
Q as LoadingButton,
|
|
73
|
-
|
|
76
|
+
pe as MONDAY,
|
|
74
77
|
I as NumberInput,
|
|
75
|
-
|
|
78
|
+
b as OptionItem,
|
|
76
79
|
C as OptionsList,
|
|
77
80
|
h as Popover,
|
|
78
81
|
lr as ProgressBar,
|
|
79
82
|
dr as ProgressRing,
|
|
80
83
|
F as Radio,
|
|
81
84
|
N as RadioGroup,
|
|
82
|
-
|
|
85
|
+
oe as RemoveListener,
|
|
83
86
|
c as Scrollable,
|
|
84
87
|
D as Segments,
|
|
85
|
-
|
|
86
|
-
|
|
88
|
+
P as Select,
|
|
89
|
+
y as SelectTags,
|
|
87
90
|
ur as Skeleton,
|
|
88
91
|
s as Spinner,
|
|
89
92
|
W as Switch,
|
|
90
93
|
V as Tabs,
|
|
91
94
|
$ as TextArea,
|
|
92
|
-
|
|
95
|
+
Rr as ThemeProvider,
|
|
93
96
|
ir as TimePicker,
|
|
94
|
-
|
|
97
|
+
Jr as Toast,
|
|
95
98
|
T as Tooltip,
|
|
96
99
|
kr as WriteBar,
|
|
97
|
-
|
|
100
|
+
me as addMonths,
|
|
98
101
|
p as avatarSizes,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
Lr as
|
|
121
|
-
|
|
102
|
+
Mr as colorSchemeScript,
|
|
103
|
+
Er as createAlertAgent,
|
|
104
|
+
ae as createDayDisableChecker,
|
|
105
|
+
Zr as createPopoversRegistry,
|
|
106
|
+
Vr as createPopupRegistry,
|
|
107
|
+
$r as createScope,
|
|
108
|
+
re as createStaticScope,
|
|
109
|
+
qr as createToaster,
|
|
110
|
+
fe as endOfDay,
|
|
111
|
+
xe as endOfWeek,
|
|
112
|
+
ie as isDayMinMaxRestricted,
|
|
113
|
+
se as isSameDate,
|
|
114
|
+
ne as setMonth,
|
|
115
|
+
ce as setYear,
|
|
116
|
+
le as startOfDay,
|
|
117
|
+
Se as startOfWeek,
|
|
118
|
+
ue as subMonths,
|
|
119
|
+
Gr as useBooleanState,
|
|
120
|
+
De as useDayDisableCheker,
|
|
121
|
+
Ar as useDragEnter,
|
|
122
|
+
Nr as useLoading,
|
|
123
|
+
Lr as useLocalStorage,
|
|
124
|
+
zr as useResizeTextarea,
|
|
125
|
+
br as useTheme
|
|
122
126
|
};
|
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.es56.js";
|
|
5
|
+
import { SelectInput as H } from "./bundle.es57.js";
|
|
6
|
+
import { useScrollListController as M } from "./bundle.es58.js";
|
|
7
|
+
import { OptionsPopover as N } from "./bundle.es59.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.es56.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.es59.js";
|
|
11
|
+
import { arrays as v } from "./bundle.es60.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.es61.js";
|
|
5
|
+
import { InputContainer as I } from "./bundle.es62.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.es62.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.es54.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.es52.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.es52.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.es52.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.es45.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.es55.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.es44.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.es63.js";
|
|
6
|
+
import { useDayDisableCheker as N } from "./bundle.es53.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.es60.js";
|
|
9
|
+
import { SelectRightElements as Y } from "./bundle.es64.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.es60.js";
|
|
5
|
+
import { defaultMin as j, defaultMax as N, useCalendarOptions as V } from "./bundle.es65.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.es60.js";
|
|
5
|
+
import { SelectRightElements as z } from "./bundle.es64.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.es54.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,41 +1,42 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as c, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import d from "classnames";
|
|
3
3
|
import { Spinner as F } from "./bundle.es6.js";
|
|
4
4
|
import { Icon as G } from "./bundle.es33.js";
|
|
5
|
-
import { useResizeTextarea as H } from "./bundle.
|
|
5
|
+
import { useResizeTextarea as H } from "./bundle.es44.js";
|
|
6
6
|
import { callMultiple as J, attr as K } from "@companix/utils-browser";
|
|
7
7
|
import { mergeRefs as L } from "react-merge-refs";
|
|
8
|
-
|
|
8
|
+
import { useEffect as O } from "react";
|
|
9
|
+
const P = ({
|
|
9
10
|
// WriteBarProps
|
|
10
11
|
before: r,
|
|
11
|
-
inlineAfter:
|
|
12
|
+
inlineAfter: s,
|
|
12
13
|
after: i,
|
|
13
14
|
onHeightChange: t,
|
|
14
|
-
shadow:
|
|
15
|
+
shadow: m = !1,
|
|
15
16
|
containerRef: a,
|
|
16
|
-
attachbar:
|
|
17
|
-
contentClassName:
|
|
17
|
+
attachbar: f,
|
|
18
|
+
contentClassName: l,
|
|
18
19
|
// textarea props
|
|
19
|
-
textareaRef:
|
|
20
|
-
autoComplete:
|
|
21
|
-
cols:
|
|
22
|
-
dirName:
|
|
23
|
-
disabled:
|
|
24
|
-
maxLength:
|
|
25
|
-
minLength:
|
|
26
|
-
name:
|
|
27
|
-
placeholder:
|
|
28
|
-
readOnly:
|
|
29
|
-
required:
|
|
30
|
-
value:
|
|
31
|
-
wrap:
|
|
32
|
-
rows:
|
|
33
|
-
onChange:
|
|
34
|
-
onFocus:
|
|
35
|
-
onBlur:
|
|
36
|
-
id:
|
|
37
|
-
inputMode:
|
|
38
|
-
defaultValue:
|
|
20
|
+
textareaRef: p,
|
|
21
|
+
autoComplete: h,
|
|
22
|
+
cols: x,
|
|
23
|
+
dirName: Q,
|
|
24
|
+
disabled: b,
|
|
25
|
+
maxLength: u,
|
|
26
|
+
minLength: w,
|
|
27
|
+
name: N,
|
|
28
|
+
placeholder: z,
|
|
29
|
+
readOnly: v,
|
|
30
|
+
required: R,
|
|
31
|
+
value: n,
|
|
32
|
+
wrap: g,
|
|
33
|
+
rows: j,
|
|
34
|
+
onChange: B,
|
|
35
|
+
onFocus: I,
|
|
36
|
+
onBlur: T,
|
|
37
|
+
id: A,
|
|
38
|
+
inputMode: C,
|
|
39
|
+
defaultValue: E,
|
|
39
40
|
autoFocus: M,
|
|
40
41
|
tabIndex: S,
|
|
41
42
|
spellCheck: W,
|
|
@@ -43,33 +44,33 @@ const O = ({
|
|
|
43
44
|
onKeyDown: q,
|
|
44
45
|
...y
|
|
45
46
|
}) => {
|
|
46
|
-
const [D,
|
|
47
|
-
return /* @__PURE__ */
|
|
48
|
-
|
|
49
|
-
/* @__PURE__ */
|
|
47
|
+
const [D, o] = H(t, !0);
|
|
48
|
+
return O(o, [o, n]), /* @__PURE__ */ c("div", { ref: a, ...y, className: d("write-bar", k), children: [
|
|
49
|
+
f,
|
|
50
|
+
/* @__PURE__ */ c("div", { className: d("write-bar-content", l), children: [
|
|
50
51
|
r && /* @__PURE__ */ e("div", { className: "write-bar-before", children: r }),
|
|
51
52
|
/* @__PURE__ */ e("div", { className: "write-bar-form", children: /* @__PURE__ */ e(
|
|
52
53
|
"textarea",
|
|
53
54
|
{
|
|
54
|
-
ref: L([
|
|
55
|
-
id:
|
|
56
|
-
onChange: J(
|
|
57
|
-
autoComplete:
|
|
58
|
-
cols:
|
|
59
|
-
disabled:
|
|
60
|
-
maxLength:
|
|
61
|
-
minLength:
|
|
62
|
-
name:
|
|
63
|
-
placeholder:
|
|
64
|
-
readOnly:
|
|
65
|
-
required:
|
|
66
|
-
value:
|
|
67
|
-
wrap:
|
|
68
|
-
rows:
|
|
69
|
-
onFocus:
|
|
70
|
-
onBlur:
|
|
71
|
-
inputMode:
|
|
72
|
-
defaultValue:
|
|
55
|
+
ref: L([p, D]),
|
|
56
|
+
id: A,
|
|
57
|
+
onChange: J(B, o),
|
|
58
|
+
autoComplete: h,
|
|
59
|
+
cols: x,
|
|
60
|
+
disabled: b,
|
|
61
|
+
maxLength: u,
|
|
62
|
+
minLength: w,
|
|
63
|
+
name: N,
|
|
64
|
+
placeholder: z,
|
|
65
|
+
readOnly: v,
|
|
66
|
+
required: R,
|
|
67
|
+
value: n,
|
|
68
|
+
wrap: g,
|
|
69
|
+
rows: j,
|
|
70
|
+
onFocus: I,
|
|
71
|
+
onBlur: T,
|
|
72
|
+
inputMode: C,
|
|
73
|
+
defaultValue: E,
|
|
73
74
|
autoFocus: M,
|
|
74
75
|
tabIndex: S,
|
|
75
76
|
spellCheck: W,
|
|
@@ -80,12 +81,12 @@ const O = ({
|
|
|
80
81
|
] })
|
|
81
82
|
] });
|
|
82
83
|
};
|
|
83
|
-
|
|
84
|
+
P.IconButton = ({
|
|
84
85
|
Component: r = "button",
|
|
85
|
-
icon:
|
|
86
|
+
icon: s,
|
|
86
87
|
mode: i,
|
|
87
88
|
onClick: t,
|
|
88
|
-
isLoading:
|
|
89
|
+
isLoading: m,
|
|
89
90
|
isHidden: a
|
|
90
91
|
}) => /* @__PURE__ */ e(
|
|
91
92
|
r,
|
|
@@ -94,9 +95,9 @@ O.IconButton = ({
|
|
|
94
95
|
className: "write-bar-icon",
|
|
95
96
|
"data-mode": i,
|
|
96
97
|
"data-hidden": K(a),
|
|
97
|
-
children:
|
|
98
|
+
children: m ? /* @__PURE__ */ e(F, { size: 18 }) : /* @__PURE__ */ e(G, { icon: s, size: "xxs" })
|
|
98
99
|
}
|
|
99
100
|
);
|
|
100
101
|
export {
|
|
101
|
-
|
|
102
|
+
P as WriteBar
|
|
102
103
|
};
|