softable-pixels-web 1.1.8 → 1.1.9
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/{Button-BrV5pWD2.js → Button-DCVmSier.js} +9 -9
- package/dist/Button-DCVmSier.js.map +1 -0
- package/dist/{CheckItem-DEUwzhbF.js → CheckItem-itm2oIeW.js} +4 -4
- package/dist/{CheckItem-DEUwzhbF.js.map → CheckItem-itm2oIeW.js.map} +1 -1
- package/dist/{Checkbox-CA11dJ4h.js → Checkbox-ly07FlTH.js} +5 -5
- package/dist/Checkbox-ly07FlTH.js.map +1 -0
- package/dist/ContextMenu-fSz83oSd.js +304 -0
- package/dist/ContextMenu-fSz83oSd.js.map +1 -0
- package/dist/{Icon-D40nGMJM.js → Icon-61UaAUrM.js} +2 -2
- package/dist/{Icon-D40nGMJM.js.map → Icon-61UaAUrM.js.map} +1 -1
- package/dist/{IconButton-BBdkzg3b.js → IconButton-CsHFWO8K.js} +2 -2
- package/dist/IconButton-CsHFWO8K.js.map +1 -0
- package/dist/{InfoSummary-Cft-E1GO.js → InfoSummary-DcupqKIy.js} +3 -3
- package/dist/{InfoSummary-Cft-E1GO.js.map → InfoSummary-DcupqKIy.js.map} +1 -1
- package/dist/Input-DLJz5Mrn.js +177 -0
- package/dist/Input-DLJz5Mrn.js.map +1 -0
- package/dist/Label-BhqH21lT.js +25 -0
- package/dist/Label-BhqH21lT.js.map +1 -0
- package/dist/Popover-BsDGCJ-f.js +81 -0
- package/dist/Popover-BsDGCJ-f.js.map +1 -0
- package/dist/Switch-B4e9qBOu.js +49 -0
- package/dist/Switch-B4e9qBOu.js.map +1 -0
- package/dist/{TabSwitch-D6WJc7Bf.js → TabSwitch-CvnlK0NZ.js} +4 -4
- package/dist/TabSwitch-CvnlK0NZ.js.map +1 -0
- package/dist/{TextArea-DY9c18r6.js → TextArea-CUrG_9je.js} +5 -5
- package/dist/TextArea-CUrG_9je.js.map +1 -0
- package/dist/{ThemeContext-0pOYSNvl.js → ThemeContext-CesN6Ejm.js} +22 -8
- package/dist/ThemeContext-CesN6Ejm.js.map +1 -0
- package/dist/{Typography-XA7uwbWe.js → Typography-j84zoCoZ.js} +2 -2
- package/dist/{Typography-XA7uwbWe.js.map → Typography-j84zoCoZ.js.map} +1 -1
- package/dist/button.d.ts +2 -2
- package/dist/button.js +3 -3
- package/dist/check-item.d.ts +1 -1
- package/dist/check-item.js +4 -4
- package/dist/checkbox.d.ts +2 -2
- package/dist/checkbox.js +4 -4
- package/dist/context-menu.d.ts +2 -0
- package/dist/context-menu.js +9 -0
- package/dist/icon-button.d.ts +1 -1
- package/dist/icon-button.js +2 -2
- package/dist/{index-DZqSyBAN.d.ts → index-2WYvBk8I.d.ts} +18 -4
- package/dist/{index-RcFYZiMi.d.ts → index-8GUY3yRY.d.ts} +1 -1
- package/dist/index-BANOx3xI.d.ts +44 -0
- package/dist/{index-CyvtOmP2.d.ts → index-BHhl7wD8.d.ts} +4 -3
- package/dist/index-BglHC9EI.d.ts +61 -0
- package/dist/{index-Cg3ejKX9.d.ts → index-CCiP7SPG.d.ts} +8 -4
- package/dist/{index-DQMtfFqC.d.ts → index-Cmj1xJBu.d.ts} +2 -2
- package/dist/{index-vtqd-Akd.d.ts → index-CyntoY7A.d.ts} +33 -4
- package/dist/index-DH0vhxG-.d.ts +103 -0
- package/dist/index-DewFmT68.d.ts +15 -0
- package/dist/{index-B9MqmTLB.d.ts → index-YYjoEwNX.d.ts} +39 -5
- package/dist/index.d.ts +16 -10
- package/dist/index.js +20 -14
- package/dist/info-summary.js +3 -3
- package/dist/input.d.ts +1 -2
- package/dist/input.js +5 -5
- package/dist/popover.d.ts +2 -0
- package/dist/popover.js +6 -0
- package/dist/{styleProps-D405c8KF.d.ts → styleProps-5iqKZpC1.d.ts} +1 -1
- package/dist/switch.d.ts +2 -0
- package/dist/switch.js +4 -0
- package/dist/tab-switch.d.ts +1 -1
- package/dist/tab-switch.js +3 -3
- package/dist/text-area.d.ts +2 -2
- package/dist/text-area.js +5 -5
- package/dist/theme-context.d.ts +1 -1
- package/dist/theme-context.js +1 -1
- package/dist/types-Dsf33Reg.d.ts +15 -0
- package/dist/{types-ESf1Pmhi.d.ts → types-ubME1KhJ.d.ts} +3 -3
- package/dist/typography.d.ts +1 -1
- package/dist/typography.js +2 -2
- package/dist/use-dismiss.d.ts +20 -0
- package/dist/use-dismiss.js +3 -0
- package/dist/use-floating.d.ts +15 -0
- package/dist/use-floating.js +3 -0
- package/dist/use-virtual-anchor.d.ts +12 -0
- package/dist/use-virtual-anchor.js +40 -0
- package/dist/use-virtual-anchor.js.map +1 -0
- package/dist/useDismiss-DJ1mh-X3.js +35 -0
- package/dist/useDismiss-DJ1mh-X3.js.map +1 -0
- package/dist/useFloating--PcINgSt.js +295 -0
- package/dist/useFloating--PcINgSt.js.map +1 -0
- package/dist/{useThemedStyles-B7irjShy.d.ts → useThemedStyles-C6dNoaRC.d.ts} +25 -6
- package/dist/{useThemedStyles-3rUXJYgS.js → useThemedStyles-MLtE91hE.js} +1 -1
- package/dist/useThemedStyles-MLtE91hE.js.map +1 -0
- package/package.json +46 -1
- package/dist/Button-BrV5pWD2.js.map +0 -1
- package/dist/Checkbox-CA11dJ4h.js.map +0 -1
- package/dist/IconButton-BBdkzg3b.js.map +0 -1
- package/dist/Input-BcDV2JOa.js +0 -327
- package/dist/Input-BcDV2JOa.js.map +0 -1
- package/dist/Label-DXpBz2AN.js +0 -79
- package/dist/Label-DXpBz2AN.js.map +0 -1
- package/dist/TabSwitch-D6WJc7Bf.js.map +0 -1
- package/dist/TextArea-DY9c18r6.js.map +0 -1
- package/dist/ThemeContext-0pOYSNvl.js.map +0 -1
- package/dist/index-De1q2lSW.d.ts +0 -49
- package/dist/useThemedStyles-3rUXJYgS.js.map +0 -1
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { a as TextProps, n as LayoutProps, r as MarginProps } from "./styleProps-5iqKZpC1.js";
|
|
2
|
+
import { n as StylesOf } from "./useThemedStyles-C6dNoaRC.js";
|
|
3
|
+
import * as react0 from "react";
|
|
4
|
+
import { HTMLInputTypeAttribute, ReactNode } from "react";
|
|
5
|
+
|
|
6
|
+
//#region src/components/commons/inputs/Input/styles.d.ts
|
|
7
|
+
declare function createInputStyles(props: InputProps): {
|
|
8
|
+
container: {
|
|
9
|
+
width: string;
|
|
10
|
+
display: "flex";
|
|
11
|
+
flexDirection: "column";
|
|
12
|
+
rowGap: string;
|
|
13
|
+
};
|
|
14
|
+
wrapper: {
|
|
15
|
+
width: string;
|
|
16
|
+
display: "flex";
|
|
17
|
+
alignItems: "center";
|
|
18
|
+
borderWidth: number;
|
|
19
|
+
columnGap: string;
|
|
20
|
+
borderRadius: string;
|
|
21
|
+
padding: string;
|
|
22
|
+
opacity: number;
|
|
23
|
+
boxShadow: "0px 1px 2px 0px #0A0D120D";
|
|
24
|
+
borderColor: "var(--px-color-error)" | "var(--px-border-primary)";
|
|
25
|
+
__rules: {
|
|
26
|
+
'&:focus-within': {
|
|
27
|
+
outlineOffset: string;
|
|
28
|
+
outline: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
input: {
|
|
33
|
+
flex: number;
|
|
34
|
+
fontWeight: number;
|
|
35
|
+
fontSize: string;
|
|
36
|
+
lineHeight: string;
|
|
37
|
+
fontFamily: "inherit";
|
|
38
|
+
color: "var(--px-text-primary)";
|
|
39
|
+
__rules: {
|
|
40
|
+
'&:disabled': {
|
|
41
|
+
cursor: "not-allowed";
|
|
42
|
+
};
|
|
43
|
+
'&:focus': {
|
|
44
|
+
outline: string;
|
|
45
|
+
};
|
|
46
|
+
'&::placeholder': {
|
|
47
|
+
fontWeight: number;
|
|
48
|
+
color: "var(--px-text-secondary)";
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
error: {
|
|
53
|
+
display: "block";
|
|
54
|
+
fontWeight: number;
|
|
55
|
+
lineHeight: string;
|
|
56
|
+
fontSize: string;
|
|
57
|
+
fontFamily: "inherit";
|
|
58
|
+
color: "var(--px-text-error)";
|
|
59
|
+
};
|
|
60
|
+
button: {
|
|
61
|
+
display: "flex";
|
|
62
|
+
alignItems: "center";
|
|
63
|
+
justifyContent: "center";
|
|
64
|
+
cursor: "pointer";
|
|
65
|
+
padding: string;
|
|
66
|
+
borderRadius: string;
|
|
67
|
+
__rules: {
|
|
68
|
+
'&:focus': {
|
|
69
|
+
outline: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region src/components/commons/inputs/Input/types.d.ts
|
|
76
|
+
interface InputProps extends LayoutProps, MarginProps {
|
|
77
|
+
id?: string;
|
|
78
|
+
label: string;
|
|
79
|
+
value?: string;
|
|
80
|
+
placeholder?: string;
|
|
81
|
+
type?: HTMLInputTypeAttribute;
|
|
82
|
+
required?: boolean;
|
|
83
|
+
disabled?: boolean;
|
|
84
|
+
minLength?: number;
|
|
85
|
+
maxLength?: number;
|
|
86
|
+
errorMessage?: string;
|
|
87
|
+
endIcon?: ReactNode;
|
|
88
|
+
startIcon?: ReactNode;
|
|
89
|
+
styles?: StylesOf<typeof createInputStyles>;
|
|
90
|
+
requiredColor?: string;
|
|
91
|
+
labelConfig?: TextProps;
|
|
92
|
+
onChange: (value: string) => void;
|
|
93
|
+
}
|
|
94
|
+
interface InputMethods {
|
|
95
|
+
focus: () => void;
|
|
96
|
+
blur: () => void;
|
|
97
|
+
}
|
|
98
|
+
//#endregion
|
|
99
|
+
//#region src/components/commons/inputs/Input/index.d.ts
|
|
100
|
+
declare const Input: react0.ForwardRefExoticComponent<InputProps & react0.RefAttributes<InputMethods>>;
|
|
101
|
+
//#endregion
|
|
102
|
+
export { Input as t };
|
|
103
|
+
//# sourceMappingURL=index-DH0vhxG-.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/components/commons/toolkit/Switch/types.d.ts
|
|
4
|
+
interface SwitchThumbProps {
|
|
5
|
+
checked: boolean;
|
|
6
|
+
colorIndicator?: string;
|
|
7
|
+
colorActive?: string;
|
|
8
|
+
colorInactive?: string;
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/components/commons/toolkit/Switch/index.d.ts
|
|
12
|
+
declare const Switch: React.FC<SwitchThumbProps>;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { Switch as t };
|
|
15
|
+
//# sourceMappingURL=index-DewFmT68.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as PaddingProps } from "./styleProps-
|
|
2
|
-
import {
|
|
3
|
-
import { n as TypographyVariant } from "./types-
|
|
1
|
+
import { i as PaddingProps } from "./styleProps-5iqKZpC1.js";
|
|
2
|
+
import { r as TypeStyles } from "./useThemedStyles-C6dNoaRC.js";
|
|
3
|
+
import { n as TypographyVariant } from "./types-ubME1KhJ.js";
|
|
4
4
|
import React, { MouseEvent, ReactNode } from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/components/commons/buttons/Button/styles.d.ts
|
|
@@ -12,7 +12,41 @@ declare function createButtonStyles({
|
|
|
12
12
|
fullWidth,
|
|
13
13
|
textAlign,
|
|
14
14
|
outlineColor
|
|
15
|
-
}: ButtonProps):
|
|
15
|
+
}: ButtonProps): {
|
|
16
|
+
container: {
|
|
17
|
+
minHeight: string;
|
|
18
|
+
width: string;
|
|
19
|
+
position: "relative";
|
|
20
|
+
display: "flex";
|
|
21
|
+
justifyContent: Align;
|
|
22
|
+
padding: string;
|
|
23
|
+
gap: string;
|
|
24
|
+
borderRadius: string;
|
|
25
|
+
cursor: "pointer";
|
|
26
|
+
transition: "background-color 0.5s";
|
|
27
|
+
border: string;
|
|
28
|
+
backgroundColor: string;
|
|
29
|
+
boxShadow: "none" | "0px -1px 0px #0A0D120D inset, 0px 1px 2px #0A0D120D";
|
|
30
|
+
__rules: {
|
|
31
|
+
'&:hover': {
|
|
32
|
+
opacity: "0.85 !important";
|
|
33
|
+
};
|
|
34
|
+
'&:disabled': {
|
|
35
|
+
opacity: "0.5 !important";
|
|
36
|
+
cursor: "not-allowed !important";
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
content: {
|
|
41
|
+
display: "flex";
|
|
42
|
+
flexDirection: "row";
|
|
43
|
+
alignItems: "center";
|
|
44
|
+
padding: string;
|
|
45
|
+
borderRadius: string;
|
|
46
|
+
whiteSpace: "nowrap";
|
|
47
|
+
columnGap: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
16
50
|
//#endregion
|
|
17
51
|
//#region src/components/commons/buttons/Button/types.d.ts
|
|
18
52
|
type Align = 'center' | 'left' | 'right';
|
|
@@ -80,4 +114,4 @@ interface ButtonProps extends PaddingProps {
|
|
|
80
114
|
declare const Button: React.FC<ButtonProps>;
|
|
81
115
|
//#endregion
|
|
82
116
|
export { Button as t };
|
|
83
|
-
//# sourceMappingURL=index-
|
|
117
|
+
//# sourceMappingURL=index-YYjoEwNX.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
import "./types-
|
|
2
|
-
import { t as Button } from "./index-
|
|
3
|
-
import { t as IconButton } from "./index-
|
|
4
|
-
import { t as Input } from "./index-
|
|
5
|
-
import { t as TextArea } from "./index-
|
|
6
|
-
import { t as CheckItem } from "./index-
|
|
7
|
-
import { t as Checkbox } from "./index-
|
|
1
|
+
import "./types-ubME1KhJ.js";
|
|
2
|
+
import { t as Button } from "./index-YYjoEwNX.js";
|
|
3
|
+
import { t as IconButton } from "./index-BHhl7wD8.js";
|
|
4
|
+
import { t as Input } from "./index-DH0vhxG-.js";
|
|
5
|
+
import { t as TextArea } from "./index-CyntoY7A.js";
|
|
6
|
+
import { t as CheckItem } from "./index-8GUY3yRY.js";
|
|
7
|
+
import { t as Checkbox } from "./index-Cmj1xJBu.js";
|
|
8
|
+
import { t as ContextMenu } from "./index-BglHC9EI.js";
|
|
8
9
|
import { InfoSummary, InfoSummaryItem, InfoSummaryProps } from "./info-summary.js";
|
|
9
|
-
import {
|
|
10
|
+
import { t as Popover } from "./index-BANOx3xI.js";
|
|
11
|
+
import { t as Switch } from "./index-DewFmT68.js";
|
|
12
|
+
import { n as SwitchOption, r as TabSwitchProps, t as TabSwitch } from "./index-2WYvBk8I.js";
|
|
10
13
|
import { Typography } from "./typography.js";
|
|
11
|
-
import { a as ThemeName, c as ThemeRegistry, i as ThemeMode, l as ThemeTokens, n as useTheme, o as ThemePersistence, r as ThemeContextData, s as ThemeProviderProps, t as ThemeProvider } from "./index-
|
|
12
|
-
|
|
14
|
+
import { a as ThemeName, c as ThemeRegistry, i as ThemeMode, l as ThemeTokens, n as useTheme, o as ThemePersistence, r as ThemeContextData, s as ThemeProviderProps, t as ThemeProvider } from "./index-CCiP7SPG.js";
|
|
15
|
+
import { useDismiss } from "./use-dismiss.js";
|
|
16
|
+
import { AnchorLike, useFloating } from "./use-floating.js";
|
|
17
|
+
import { useVirtualAnchor } from "./use-virtual-anchor.js";
|
|
18
|
+
export { AnchorLike, Button, CheckItem, Checkbox, ContextMenu, IconButton, InfoSummary, InfoSummaryItem, InfoSummaryProps, Input, Popover, Switch, SwitchOption, TabSwitch, TabSwitchProps, TextArea, ThemeContextData, ThemeMode, ThemeName, ThemePersistence, ThemeProvider, ThemeProviderProps, ThemeRegistry, ThemeTokens, Typography, useDismiss, useFloating, useTheme, useVirtualAnchor };
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,21 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import "./
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
1
|
+
import "./useThemedStyles-MLtE91hE.js";
|
|
2
|
+
import { t as Switch } from "./Switch-B4e9qBOu.js";
|
|
3
|
+
import { t as useDismiss } from "./useDismiss-DJ1mh-X3.js";
|
|
4
|
+
import { t as useFloating } from "./useFloating--PcINgSt.js";
|
|
5
|
+
import { t as Popover } from "./Popover-BsDGCJ-f.js";
|
|
6
|
+
import "./Icon-61UaAUrM.js";
|
|
7
|
+
import { t as Typography } from "./Typography-j84zoCoZ.js";
|
|
8
|
+
import { t as Checkbox } from "./Checkbox-ly07FlTH.js";
|
|
9
|
+
import { n as useTheme, t as ThemeProvider } from "./ThemeContext-CesN6Ejm.js";
|
|
10
|
+
import { t as TabSwitch } from "./TabSwitch-CvnlK0NZ.js";
|
|
11
|
+
import { t as CheckItem } from "./CheckItem-itm2oIeW.js";
|
|
12
|
+
import { t as InfoSummary } from "./InfoSummary-DcupqKIy.js";
|
|
13
|
+
import { t as ContextMenu } from "./ContextMenu-fSz83oSd.js";
|
|
14
|
+
import { t as Button } from "./Button-DCVmSier.js";
|
|
15
|
+
import { t as IconButton } from "./IconButton-CsHFWO8K.js";
|
|
16
|
+
import "./Label-BhqH21lT.js";
|
|
17
|
+
import { t as Input } from "./Input-DLJz5Mrn.js";
|
|
18
|
+
import { t as TextArea } from "./TextArea-CUrG_9je.js";
|
|
19
|
+
import { useVirtualAnchor } from "./use-virtual-anchor.js";
|
|
14
20
|
|
|
15
|
-
export { Button, CheckItem, Checkbox, IconButton, InfoSummary, Input, TabSwitch, TextArea, ThemeProvider, Typography, useTheme };
|
|
21
|
+
export { Button, CheckItem, Checkbox, ContextMenu, IconButton, InfoSummary, Input, Popover, Switch, TabSwitch, TextArea, ThemeProvider, Typography, useDismiss, useFloating, useTheme, useVirtualAnchor };
|
package/dist/info-summary.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./useThemedStyles-
|
|
2
|
-
import "./Typography-
|
|
3
|
-
import { t as InfoSummary } from "./InfoSummary-
|
|
1
|
+
import "./useThemedStyles-MLtE91hE.js";
|
|
2
|
+
import "./Typography-j84zoCoZ.js";
|
|
3
|
+
import { t as InfoSummary } from "./InfoSummary-DcupqKIy.js";
|
|
4
4
|
|
|
5
5
|
export { InfoSummary };
|
package/dist/input.d.ts
CHANGED
package/dist/input.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import "./Typography-
|
|
4
|
-
import "./Label-
|
|
5
|
-
import { t as Input } from "./Input-
|
|
1
|
+
import "./useThemedStyles-MLtE91hE.js";
|
|
2
|
+
import "./Icon-61UaAUrM.js";
|
|
3
|
+
import "./Typography-j84zoCoZ.js";
|
|
4
|
+
import "./Label-BhqH21lT.js";
|
|
5
|
+
import { t as Input } from "./Input-DLJz5Mrn.js";
|
|
6
6
|
|
|
7
7
|
export { Input };
|
package/dist/popover.js
ADDED
|
@@ -43,4 +43,4 @@ interface LayoutProps {
|
|
|
43
43
|
type CommonStyleProps = MarginProps & PaddingProps & TextProps & LayoutProps;
|
|
44
44
|
//#endregion
|
|
45
45
|
export { TextProps as a, PaddingProps as i, LayoutProps as n, MarginProps as r, CommonStyleProps as t };
|
|
46
|
-
//# sourceMappingURL=styleProps-
|
|
46
|
+
//# sourceMappingURL=styleProps-5iqKZpC1.d.ts.map
|
package/dist/switch.d.ts
ADDED
package/dist/switch.js
ADDED
package/dist/tab-switch.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as SwitchOption, r as TabSwitchProps, t as TabSwitch } from "./index-
|
|
1
|
+
import { n as SwitchOption, r as TabSwitchProps, t as TabSwitch } from "./index-2WYvBk8I.js";
|
|
2
2
|
export { SwitchOption, TabSwitch, TabSwitchProps };
|
package/dist/tab-switch.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./useThemedStyles-
|
|
2
|
-
import "./Typography-
|
|
3
|
-
import { t as TabSwitch } from "./TabSwitch-
|
|
1
|
+
import "./useThemedStyles-MLtE91hE.js";
|
|
2
|
+
import "./Typography-j84zoCoZ.js";
|
|
3
|
+
import { t as TabSwitch } from "./TabSwitch-CvnlK0NZ.js";
|
|
4
4
|
|
|
5
5
|
export { TabSwitch };
|
package/dist/text-area.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./types-
|
|
2
|
-
import { t as TextArea } from "./index-
|
|
1
|
+
import "./types-ubME1KhJ.js";
|
|
2
|
+
import { t as TextArea } from "./index-CyntoY7A.js";
|
|
3
3
|
export { TextArea };
|
package/dist/text-area.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import "./Typography-
|
|
4
|
-
import "./Label-
|
|
5
|
-
import { t as TextArea } from "./TextArea-
|
|
1
|
+
import "./useThemedStyles-MLtE91hE.js";
|
|
2
|
+
import "./Icon-61UaAUrM.js";
|
|
3
|
+
import "./Typography-j84zoCoZ.js";
|
|
4
|
+
import "./Label-BhqH21lT.js";
|
|
5
|
+
import { t as TextArea } from "./TextArea-CUrG_9je.js";
|
|
6
6
|
|
|
7
7
|
export { TextArea };
|
package/dist/theme-context.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ThemeName, c as ThemeRegistry, i as ThemeMode, l as ThemeTokens, n as useTheme, o as ThemePersistence, r as ThemeContextData, s as ThemeProviderProps, t as ThemeProvider } from "./index-
|
|
1
|
+
import { a as ThemeName, c as ThemeRegistry, i as ThemeMode, l as ThemeTokens, n as useTheme, o as ThemePersistence, r as ThemeContextData, s as ThemeProviderProps, t as ThemeProvider } from "./index-CCiP7SPG.js";
|
|
2
2
|
export { ThemeContextData, ThemeMode, ThemeName, ThemePersistence, ThemeProvider, ThemeProviderProps, ThemeRegistry, ThemeTokens, useTheme };
|
package/dist/theme-context.js
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/hooks/useFloating/types.d.ts
|
|
2
|
+
type Placement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end' | 'center';
|
|
3
|
+
type Strategy = 'fixed' | 'absolute';
|
|
4
|
+
type FloatingOptions = {
|
|
5
|
+
placement?: Placement;
|
|
6
|
+
offsetX?: number;
|
|
7
|
+
offsetY?: number;
|
|
8
|
+
keepInViewport?: boolean;
|
|
9
|
+
viewportMargin?: number;
|
|
10
|
+
scrollContainerId?: string;
|
|
11
|
+
strategy?: Strategy;
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { Placement as n, FloatingOptions as t };
|
|
15
|
+
//# sourceMappingURL=types-Dsf33Reg.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as TextProps, r as MarginProps } from "./styleProps-
|
|
2
|
-
import { r as TypeStyles, t as SlotStyle } from "./useThemedStyles-
|
|
1
|
+
import { a as TextProps, r as MarginProps } from "./styleProps-5iqKZpC1.js";
|
|
2
|
+
import { r as TypeStyles, t as SlotStyle } from "./useThemedStyles-C6dNoaRC.js";
|
|
3
3
|
import { ElementType, ReactNode } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/commons/toolkit/Typography/style.d.ts
|
|
@@ -40,4 +40,4 @@ type TextAlign = 'left' | 'center' | 'right' | 'justify';
|
|
|
40
40
|
type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'b1' | 'b2' | 'b3' | 'caption' | 'legal';
|
|
41
41
|
//#endregion
|
|
42
42
|
export { TypographyVariant as n, TypographyProps as t };
|
|
43
|
-
//# sourceMappingURL=types-
|
|
43
|
+
//# sourceMappingURL=types-ubME1KhJ.d.ts.map
|
package/dist/typography.d.ts
CHANGED
package/dist/typography.js
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { RefObject } from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/hooks/useDismiss/index.d.ts
|
|
4
|
+
type UseDismissParams = {
|
|
5
|
+
open: boolean;
|
|
6
|
+
closeOnEscape?: boolean;
|
|
7
|
+
closeOnOutsideClick?: boolean;
|
|
8
|
+
refs: Array<RefObject<HTMLElement | null>>;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
};
|
|
11
|
+
declare function useDismiss({
|
|
12
|
+
open,
|
|
13
|
+
refs,
|
|
14
|
+
closeOnEscape,
|
|
15
|
+
closeOnOutsideClick,
|
|
16
|
+
onClose
|
|
17
|
+
}: UseDismissParams): void;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { useDismiss };
|
|
20
|
+
//# sourceMappingURL=use-dismiss.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { t as FloatingOptions } from "./types-Dsf33Reg.js";
|
|
2
|
+
|
|
3
|
+
//#region src/hooks/useFloating/index.d.ts
|
|
4
|
+
type AnchorLike = {
|
|
5
|
+
getBoundingClientRect: () => DOMRect;
|
|
6
|
+
};
|
|
7
|
+
type Anchor = HTMLElement | AnchorLike;
|
|
8
|
+
declare function useFloating(targetRef: React.RefObject<Anchor>, options?: FloatingOptions): {
|
|
9
|
+
floatingEl: HTMLElement | null;
|
|
10
|
+
floatingRef: (el: HTMLElement | null) => void;
|
|
11
|
+
update: () => void;
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { AnchorLike, useFloating };
|
|
15
|
+
//# sourceMappingURL=use-floating.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AnchorLike } from "./use-floating.js";
|
|
2
|
+
|
|
3
|
+
//#region src/hooks/useVirtualAnchor/index.d.ts
|
|
4
|
+
declare function useVirtualAnchor(): {
|
|
5
|
+
anchorRef: {
|
|
6
|
+
current: AnchorLike;
|
|
7
|
+
};
|
|
8
|
+
setPoint: (x: number, y: number) => void;
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { useVirtualAnchor };
|
|
12
|
+
//# sourceMappingURL=use-virtual-anchor.d.ts.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { useCallback, useMemo, useRef } from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/hooks/useVirtualAnchor/index.ts
|
|
4
|
+
function rectFromPoint({ x, y }) {
|
|
5
|
+
return {
|
|
6
|
+
x,
|
|
7
|
+
y,
|
|
8
|
+
top: y,
|
|
9
|
+
left: x,
|
|
10
|
+
right: x,
|
|
11
|
+
bottom: y,
|
|
12
|
+
width: 0,
|
|
13
|
+
height: 0,
|
|
14
|
+
toJSON: () => ({
|
|
15
|
+
x,
|
|
16
|
+
y
|
|
17
|
+
})
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function useVirtualAnchor() {
|
|
21
|
+
const pointRef = useRef({
|
|
22
|
+
x: 0,
|
|
23
|
+
y: 0
|
|
24
|
+
});
|
|
25
|
+
return {
|
|
26
|
+
anchorRef: useMemo(() => {
|
|
27
|
+
return { current: { getBoundingClientRect: () => rectFromPoint(pointRef.current) } };
|
|
28
|
+
}, []),
|
|
29
|
+
setPoint: useCallback((x, y) => {
|
|
30
|
+
pointRef.current = {
|
|
31
|
+
x,
|
|
32
|
+
y
|
|
33
|
+
};
|
|
34
|
+
}, [])
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
//#endregion
|
|
39
|
+
export { useVirtualAnchor };
|
|
40
|
+
//# sourceMappingURL=use-virtual-anchor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-virtual-anchor.js","names":[],"sources":["../src/hooks/useVirtualAnchor/index.ts"],"sourcesContent":["// External Libraries\nimport { useCallback, useMemo, useRef } from 'react'\n\n// Types\nimport type { AnchorLike } from '../useFloating'\n\ntype Point = { x: number; y: number }\n\nfunction rectFromPoint({ x, y }: Point): DOMRect {\n return {\n x,\n y,\n top: y,\n left: x,\n right: x,\n bottom: y,\n width: 0,\n height: 0,\n toJSON: () => ({ x, y })\n } as unknown as DOMRect\n}\n\nexport function useVirtualAnchor() {\n const pointRef = useRef<Point>({ x: 0, y: 0 })\n\n const anchorRef = useMemo(() => {\n const virtualEl: AnchorLike = {\n getBoundingClientRect: () => rectFromPoint(pointRef.current)\n }\n return { current: virtualEl }\n }, [])\n\n const setPoint = useCallback((x: number, y: number) => {\n pointRef.current = { x, y }\n }, [])\n\n return { anchorRef, setPoint }\n}\n"],"mappings":";;;AAQA,SAAS,cAAc,EAAE,GAAG,KAAqB;AAC/C,QAAO;EACL;EACA;EACA,KAAK;EACL,MAAM;EACN,OAAO;EACP,QAAQ;EACR,OAAO;EACP,QAAQ;EACR,eAAe;GAAE;GAAG;GAAG;EACxB;;AAGH,SAAgB,mBAAmB;CACjC,MAAM,WAAW,OAAc;EAAE,GAAG;EAAG,GAAG;EAAG,CAAC;AAa9C,QAAO;EAAE,WAXS,cAAc;AAI9B,UAAO,EAAE,SAHqB,EAC5B,6BAA6B,cAAc,SAAS,QAAQ,EAC7D,EAC4B;KAC5B,EAAE,CAAC;EAMc,UAJH,aAAa,GAAW,MAAc;AACrD,YAAS,UAAU;IAAE;IAAG;IAAG;KAC1B,EAAE,CAAC;EAEwB"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { useEffect } from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/hooks/useDismiss/index.ts
|
|
4
|
+
function useDismiss({ open, refs, closeOnEscape = true, closeOnOutsideClick = true, onClose }) {
|
|
5
|
+
useEffect(() => {
|
|
6
|
+
if (!open) return;
|
|
7
|
+
const isInsideSomeRef = (node) => refs.some((r) => r.current?.contains(node));
|
|
8
|
+
const onMouseDown = (e) => {
|
|
9
|
+
if (!closeOnOutsideClick) return;
|
|
10
|
+
const t = e.target;
|
|
11
|
+
if (isInsideSomeRef(t)) return;
|
|
12
|
+
onClose();
|
|
13
|
+
};
|
|
14
|
+
const onKeyDown = (e) => {
|
|
15
|
+
if (!closeOnEscape) return;
|
|
16
|
+
if (e.key === "Escape") onClose();
|
|
17
|
+
};
|
|
18
|
+
document.addEventListener("mousedown", onMouseDown);
|
|
19
|
+
document.addEventListener("keydown", onKeyDown);
|
|
20
|
+
return () => {
|
|
21
|
+
document.removeEventListener("mousedown", onMouseDown);
|
|
22
|
+
document.removeEventListener("keydown", onKeyDown);
|
|
23
|
+
};
|
|
24
|
+
}, [
|
|
25
|
+
open,
|
|
26
|
+
onClose,
|
|
27
|
+
refs,
|
|
28
|
+
closeOnOutsideClick,
|
|
29
|
+
closeOnEscape
|
|
30
|
+
]);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
export { useDismiss as t };
|
|
35
|
+
//# sourceMappingURL=useDismiss-DJ1mh-X3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDismiss-DJ1mh-X3.js","names":[],"sources":["../src/hooks/useDismiss/index.ts"],"sourcesContent":["// External Libraries\nimport { type RefObject, useEffect } from 'react'\n\ntype UseDismissParams = {\n open: boolean\n closeOnEscape?: boolean\n closeOnOutsideClick?: boolean\n refs: Array<RefObject<HTMLElement | null>>\n onClose: () => void\n}\n\nexport function useDismiss({\n open,\n refs,\n closeOnEscape = true,\n closeOnOutsideClick = true,\n onClose\n}: UseDismissParams) {\n useEffect(() => {\n if (!open) return\n\n const isInsideSomeRef = (node: Node) =>\n refs.some(r => r.current?.contains(node))\n\n const onMouseDown = (e: MouseEvent) => {\n if (!closeOnOutsideClick) return\n const t = e.target as Node\n if (isInsideSomeRef(t)) return\n onClose()\n }\n\n const onKeyDown = (e: KeyboardEvent) => {\n if (!closeOnEscape) return\n if (e.key === 'Escape') onClose()\n }\n\n document.addEventListener('mousedown', onMouseDown)\n document.addEventListener('keydown', onKeyDown)\n\n return () => {\n document.removeEventListener('mousedown', onMouseDown)\n document.removeEventListener('keydown', onKeyDown)\n }\n }, [open, onClose, refs, closeOnOutsideClick, closeOnEscape])\n}\n"],"mappings":";;;AAWA,SAAgB,WAAW,EACzB,MACA,MACA,gBAAgB,MAChB,sBAAsB,MACtB,WACmB;AACnB,iBAAgB;AACd,MAAI,CAAC,KAAM;EAEX,MAAM,mBAAmB,SACvB,KAAK,MAAK,MAAK,EAAE,SAAS,SAAS,KAAK,CAAC;EAE3C,MAAM,eAAe,MAAkB;AACrC,OAAI,CAAC,oBAAqB;GAC1B,MAAM,IAAI,EAAE;AACZ,OAAI,gBAAgB,EAAE,CAAE;AACxB,YAAS;;EAGX,MAAM,aAAa,MAAqB;AACtC,OAAI,CAAC,cAAe;AACpB,OAAI,EAAE,QAAQ,SAAU,UAAS;;AAGnC,WAAS,iBAAiB,aAAa,YAAY;AACnD,WAAS,iBAAiB,WAAW,UAAU;AAE/C,eAAa;AACX,YAAS,oBAAoB,aAAa,YAAY;AACtD,YAAS,oBAAoB,WAAW,UAAU;;IAEnD;EAAC;EAAM;EAAS;EAAM;EAAqB;EAAc,CAAC"}
|