softable-pixels-web 1.1.17 → 1.1.19
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/{BasePopover-DOi9H3B4.js → BasePopover-UzOryrTn.js} +7 -5
- package/dist/BasePopover-UzOryrTn.js.map +1 -0
- package/dist/{Button-A1POxp3L.js → Button-DiBsoNFU.js} +1 -1
- package/dist/{Button-A1POxp3L.js.map → Button-DiBsoNFU.js.map} +1 -1
- package/dist/{ContextMenu-l9GdmRqh.js → ContextMenu-vFIUXgP8.js} +6 -5
- package/dist/ContextMenu-vFIUXgP8.js.map +1 -0
- package/dist/{IconButton-CH8DZizu.js → IconButton-DAZvE8i5.js} +1 -1
- package/dist/{IconButton-CH8DZizu.js.map → IconButton-DAZvE8i5.js.map} +1 -1
- package/dist/{Input-FFQ1J5SC.js → Input-B6a6mXsZ.js} +2 -2
- package/dist/{Input-FFQ1J5SC.js.map → Input-B6a6mXsZ.js.map} +1 -1
- package/dist/{Label-C5AIUqYV.js → Label-BHq2knad.js} +1 -1
- package/dist/{Label-C5AIUqYV.js.map → Label-BHq2knad.js.map} +1 -1
- package/dist/{Popover-B6DCtCvD.js → Popover-C-NRJlWf.js} +78 -18
- package/dist/Popover-C-NRJlWf.js.map +1 -0
- package/dist/{Select-DtU_3TOA.js → Select-CVcQGxjv.js} +9 -6
- package/dist/Select-CVcQGxjv.js.map +1 -0
- package/dist/TextArea-Oqw0zh_x.js +135 -0
- package/dist/TextArea-Oqw0zh_x.js.map +1 -0
- package/dist/base-popover.d.ts +3 -2
- package/dist/base-popover.js +3 -3
- package/dist/button.js +1 -1
- package/dist/check-item.d.ts +1 -1
- package/dist/checkbox.d.ts +1 -1
- package/dist/context-menu.d.ts +1 -1
- package/dist/context-menu.js +4 -3
- package/dist/icon-button.js +1 -1
- package/dist/{index-Dud1UL9T.d.ts → index-9BlZnPff.d.ts} +6 -1
- package/dist/{index-B1ejLAYY.d.ts → index-B6V8Bhgk.d.ts} +2 -2
- package/dist/{index-fjoAYF43.d.ts → index-BD5ThARj.d.ts} +1 -1
- package/dist/{index-B_Soaf4t.d.ts → index-BD5Vr9sw.d.ts} +25 -9
- package/dist/{index-QQdIoKht.d.ts → index-BymgvkBq.d.ts} +1 -1
- package/dist/{index-BWV7SXNm.d.ts → index-CzB15994.d.ts} +1 -1
- package/dist/{index-DpH49YA0.d.ts → index-D-9XHxWM.d.ts} +3 -3
- package/dist/{index-CdNWNIsY.d.ts → index-DH6rpwqM.d.ts} +8 -3
- package/dist/index-DK9_OGgn.d.ts +9 -0
- package/dist/{index-DZE-RE4B.d.ts → index-aQIW73fh.d.ts} +1 -1
- package/dist/index.d.ts +11 -10
- package/dist/index.js +10 -10
- package/dist/input.js +2 -2
- package/dist/popover.d.ts +2 -1
- package/dist/popover.js +2 -2
- package/dist/select.d.ts +2 -1
- package/dist/select.js +5 -5
- package/dist/switch.d.ts +1 -1
- package/dist/tab-switch.d.ts +1 -1
- package/dist/text-area.d.ts +1 -2
- package/dist/text-area.js +2 -2
- package/dist/theme-context.d.ts +1 -1
- package/dist/{index-CNn6Rkw1.d.ts → types-699enaOL.d.ts} +6 -7
- package/dist/{types-V8tEaVpX.d.ts → types-rPQapqo2.d.ts} +4 -1
- package/dist/typography.d.ts +2 -2
- package/dist/use-floating.d.ts +1 -1
- package/dist/use-floating.js +1 -1
- package/dist/{useFloating-cvZUo5wI.js → useFloating-DCxblHIR.js} +26 -4
- package/dist/useFloating-DCxblHIR.js.map +1 -0
- package/package.json +1 -1
- package/dist/BasePopover-DOi9H3B4.js.map +0 -1
- package/dist/ContextMenu-l9GdmRqh.js.map +0 -1
- package/dist/Popover-B6DCtCvD.js.map +0 -1
- package/dist/Select-DtU_3TOA.js.map +0 -1
- package/dist/TextArea-DY7hxFbx.js +0 -113
- package/dist/TextArea-DY7hxFbx.js.map +0 -1
- package/dist/useFloating-cvZUo5wI.js.map +0 -1
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { n as styled, t as useThemedStyles } from "./useThemedStyles-CrarDyWc.js";
|
|
2
|
+
import { t as Icon } from "./Icon-KzwFJI_k.js";
|
|
3
|
+
import { t as Typography } from "./Typography-BkFV7BhK.js";
|
|
4
|
+
import { t as Label } from "./Label-BHq2knad.js";
|
|
5
|
+
import { useId } from "react";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
|
|
8
|
+
//#region src/components/commons/inputs/TextArea/styles.ts
|
|
9
|
+
function createTextAreaStyles(props) {
|
|
10
|
+
const { height = "8rem", readOnly, startIcon } = props;
|
|
11
|
+
return styled({
|
|
12
|
+
container: {
|
|
13
|
+
width: "100%",
|
|
14
|
+
display: "flex",
|
|
15
|
+
flexDirection: "column",
|
|
16
|
+
rowGap: "0.375rem"
|
|
17
|
+
},
|
|
18
|
+
iconContainer: {
|
|
19
|
+
position: "absolute",
|
|
20
|
+
left: "0.75rem",
|
|
21
|
+
top: "1.375rem",
|
|
22
|
+
transform: "translateY(-50%)"
|
|
23
|
+
},
|
|
24
|
+
textArea: {
|
|
25
|
+
height,
|
|
26
|
+
width: "100%",
|
|
27
|
+
paddingBlock: "0.75rem",
|
|
28
|
+
paddingInline: "0.875rem",
|
|
29
|
+
borderWidth: 1,
|
|
30
|
+
borderRadius: "0.5rem",
|
|
31
|
+
resize: "none",
|
|
32
|
+
fontWeight: "400",
|
|
33
|
+
fontSize: "1rem",
|
|
34
|
+
color: "var(--px-text-primary)",
|
|
35
|
+
borderColor: props.errorMessage ? "var(--px-color-error)" : "var(--px-border-primary)",
|
|
36
|
+
outlineOffset: "-1px",
|
|
37
|
+
cursor: readOnly ? "default" : void 0,
|
|
38
|
+
paddingLeft: startIcon ? "2.5rem" : void 0,
|
|
39
|
+
__rules: {
|
|
40
|
+
"&::placeholder": {
|
|
41
|
+
fontWeight: 400,
|
|
42
|
+
color: "var(--px-text-secondary)"
|
|
43
|
+
},
|
|
44
|
+
"&:focus-within": {
|
|
45
|
+
outlineOffset: "-1px",
|
|
46
|
+
outline: `2px solid var(${props.errorMessage ? "--px-color-error" : "--px-color-primary"})`
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
error: {
|
|
51
|
+
display: "block",
|
|
52
|
+
fontWeight: 400,
|
|
53
|
+
lineHeight: "1rem",
|
|
54
|
+
fontSize: "0.75rem",
|
|
55
|
+
fontFamily: "inherit",
|
|
56
|
+
color: "var(--px-text-error)"
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region src/components/commons/inputs/TextArea/index.tsx
|
|
63
|
+
const TextArea = (props) => {
|
|
64
|
+
const { value, disabled, readOnly, maxLength, hideMaxLength, textMaxLength, placeholder, errorMessage, label, required, requiredColor, labelConfig, startIcon, iconColor } = props;
|
|
65
|
+
const inputId = useId();
|
|
66
|
+
const { styles, classes } = useThemedStyles(props, createTextAreaStyles, {
|
|
67
|
+
pick: (p) => [
|
|
68
|
+
p.height,
|
|
69
|
+
p.readOnly,
|
|
70
|
+
p.startIcon,
|
|
71
|
+
p.placeholderColor,
|
|
72
|
+
p.focusedRingColor
|
|
73
|
+
],
|
|
74
|
+
override: props.styles,
|
|
75
|
+
applyCommonProps: true
|
|
76
|
+
});
|
|
77
|
+
function handleChange(e) {
|
|
78
|
+
if (disabled || readOnly) return;
|
|
79
|
+
props.onChange?.(e.target.value);
|
|
80
|
+
}
|
|
81
|
+
function renderLabel() {
|
|
82
|
+
if (!label) return null;
|
|
83
|
+
return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Label, {
|
|
84
|
+
label,
|
|
85
|
+
htmlFor: inputId,
|
|
86
|
+
required,
|
|
87
|
+
requiredColor,
|
|
88
|
+
...labelConfig
|
|
89
|
+
}) });
|
|
90
|
+
}
|
|
91
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
92
|
+
style: styles.container,
|
|
93
|
+
children: [
|
|
94
|
+
renderLabel(),
|
|
95
|
+
/* @__PURE__ */ jsxs("div", {
|
|
96
|
+
style: { position: "relative" },
|
|
97
|
+
children: [startIcon && /* @__PURE__ */ jsx("div", {
|
|
98
|
+
style: styles.iconContainer,
|
|
99
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
100
|
+
name: startIcon,
|
|
101
|
+
color: iconColor ? iconColor : "var(--px-text-primary)"
|
|
102
|
+
})
|
|
103
|
+
}), /* @__PURE__ */ jsx("textarea", {
|
|
104
|
+
value,
|
|
105
|
+
disabled,
|
|
106
|
+
readOnly,
|
|
107
|
+
maxLength,
|
|
108
|
+
placeholder,
|
|
109
|
+
style: styles.textArea,
|
|
110
|
+
className: classes.textArea,
|
|
111
|
+
onChange: handleChange
|
|
112
|
+
})]
|
|
113
|
+
}),
|
|
114
|
+
maxLength && !hideMaxLength ? /* @__PURE__ */ jsxs(Typography, {
|
|
115
|
+
variant: "b2",
|
|
116
|
+
styles: { text: { marginLeft: "auto" } },
|
|
117
|
+
children: [
|
|
118
|
+
value?.length,
|
|
119
|
+
"/",
|
|
120
|
+
maxLength,
|
|
121
|
+
" ",
|
|
122
|
+
textMaxLength
|
|
123
|
+
]
|
|
124
|
+
}) : null,
|
|
125
|
+
errorMessage ? /* @__PURE__ */ jsx("span", {
|
|
126
|
+
style: styles.error,
|
|
127
|
+
children: errorMessage
|
|
128
|
+
}) : null
|
|
129
|
+
]
|
|
130
|
+
});
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
//#endregion
|
|
134
|
+
export { TextArea as t };
|
|
135
|
+
//# sourceMappingURL=TextArea-Oqw0zh_x.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextArea-Oqw0zh_x.js","names":[],"sources":["../src/components/commons/inputs/TextArea/styles.ts","../src/components/commons/inputs/TextArea/index.tsx"],"sourcesContent":["// Types\nimport { styled } from '@hooks/useThemedStyles/types'\nimport type { TextAreaProps } from './types'\n\nexport function createTextAreaStyles(props: TextAreaProps) {\n const { height = '8rem', readOnly, startIcon } = props\n\n return styled({\n container: {\n width: '100%',\n\n display: 'flex',\n flexDirection: 'column',\n\n rowGap: '0.375rem'\n },\n iconContainer: {\n position: 'absolute',\n left: '0.75rem',\n top: '1.375rem',\n transform: 'translateY(-50%)'\n },\n textArea: {\n height,\n width: '100%',\n paddingBlock: '0.75rem',\n paddingInline: '0.875rem',\n borderWidth: 1,\n borderRadius: '0.5rem',\n resize: 'none',\n\n fontWeight: '400',\n fontSize: '1rem',\n color: 'var(--px-text-primary)',\n\n borderColor: props.errorMessage\n ? 'var(--px-color-error)'\n : 'var(--px-border-primary)',\n outlineOffset: '-1px',\n\n cursor: readOnly ? 'default' : undefined,\n paddingLeft: startIcon ? '2.5rem' : undefined,\n\n __rules: {\n '&::placeholder': {\n fontWeight: 400,\n color: 'var(--px-text-secondary)'\n },\n '&:focus-within': {\n outlineOffset: '-1px',\n outline: `2px solid var(${props.errorMessage ? '--px-color-error' : '--px-color-primary'})`\n }\n }\n },\n error: {\n display: 'block',\n fontWeight: 400,\n lineHeight: '1rem',\n fontSize: '0.75rem',\n fontFamily: 'inherit',\n color: 'var(--px-text-error)'\n }\n })\n}\n","// External Libraries\nimport { useId } from 'react'\n\n// Types\nimport type { TextAreaProps } from './types'\n\n// Components\nimport { Label } from '@components/commons/toolkit/Label'\nimport { Icon } from '@components/commons/toolkit/Icon'\nimport { Typography } from '@components/commons/toolkit/Typography'\n\n// Hooks\nimport { useThemedStyles } from '@hooks/useThemedStyles'\n\n// Styles\nimport { createTextAreaStyles } from './styles'\n\nexport const TextArea = (props: TextAreaProps) => {\n const {\n value,\n disabled,\n readOnly,\n maxLength,\n hideMaxLength,\n textMaxLength,\n placeholder,\n errorMessage,\n\n label,\n required,\n requiredColor,\n labelConfig,\n\n startIcon,\n iconColor\n } = props\n\n // Hooks\n const inputId = useId()\n\n const { styles, classes } = useThemedStyles(props, createTextAreaStyles, {\n pick: p => [\n p.height,\n p.readOnly,\n p.startIcon,\n p.placeholderColor,\n p.focusedRingColor\n ],\n override: props.styles,\n applyCommonProps: true\n })\n\n // Functions\n function handleChange(e: React.ChangeEvent<HTMLTextAreaElement>) {\n if (disabled || readOnly) return\n props.onChange?.(e.target.value)\n }\n\n function renderLabel() {\n if (!label) return null\n\n return (\n <div>\n <Label\n label={label}\n htmlFor={inputId}\n required={required}\n requiredColor={requiredColor}\n {...labelConfig}\n />\n </div>\n )\n }\n\n return (\n <div style={styles.container}>\n {renderLabel()}\n\n <div style={{ position: 'relative' }}>\n {startIcon && (\n <div style={styles.iconContainer}>\n <Icon\n name={startIcon}\n color={iconColor ? iconColor : 'var(--px-text-primary)'}\n />\n </div>\n )}\n\n <textarea\n value={value}\n disabled={disabled}\n readOnly={readOnly}\n maxLength={maxLength}\n placeholder={placeholder}\n style={styles.textArea}\n className={classes.textArea}\n onChange={handleChange}\n />\n </div>\n\n {maxLength && !hideMaxLength ? (\n <Typography variant=\"b2\" styles={{ text: { marginLeft: 'auto' } }}>\n {value?.length}/{maxLength} {textMaxLength}\n </Typography>\n ) : null}\n\n {errorMessage ? <span style={styles.error}>{errorMessage}</span> : null}\n </div>\n )\n}\n"],"mappings":";;;;;;;;AAIA,SAAgB,qBAAqB,OAAsB;CACzD,MAAM,EAAE,SAAS,QAAQ,UAAU,cAAc;AAEjD,QAAO,OAAO;EACZ,WAAW;GACT,OAAO;GAEP,SAAS;GACT,eAAe;GAEf,QAAQ;GACT;EACD,eAAe;GACb,UAAU;GACV,MAAM;GACN,KAAK;GACL,WAAW;GACZ;EACD,UAAU;GACR;GACA,OAAO;GACP,cAAc;GACd,eAAe;GACf,aAAa;GACb,cAAc;GACd,QAAQ;GAER,YAAY;GACZ,UAAU;GACV,OAAO;GAEP,aAAa,MAAM,eACf,0BACA;GACJ,eAAe;GAEf,QAAQ,WAAW,YAAY;GAC/B,aAAa,YAAY,WAAW;GAEpC,SAAS;IACP,kBAAkB;KAChB,YAAY;KACZ,OAAO;KACR;IACD,kBAAkB;KAChB,eAAe;KACf,SAAS,iBAAiB,MAAM,eAAe,qBAAqB,qBAAqB;KAC1F;IACF;GACF;EACD,OAAO;GACL,SAAS;GACT,YAAY;GACZ,YAAY;GACZ,UAAU;GACV,YAAY;GACZ,OAAO;GACR;EACF,CAAC;;;;;AC7CJ,MAAa,YAAY,UAAyB;CAChD,MAAM,EACJ,OACA,UACA,UACA,WACA,eACA,eACA,aACA,cAEA,OACA,UACA,eACA,aAEA,WACA,cACE;CAGJ,MAAM,UAAU,OAAO;CAEvB,MAAM,EAAE,QAAQ,YAAY,gBAAgB,OAAO,sBAAsB;EACvE,OAAM,MAAK;GACT,EAAE;GACF,EAAE;GACF,EAAE;GACF,EAAE;GACF,EAAE;GACH;EACD,UAAU,MAAM;EAChB,kBAAkB;EACnB,CAAC;CAGF,SAAS,aAAa,GAA2C;AAC/D,MAAI,YAAY,SAAU;AAC1B,QAAM,WAAW,EAAE,OAAO,MAAM;;CAGlC,SAAS,cAAc;AACrB,MAAI,CAAC,MAAO,QAAO;AAEnB,SACE,oBAAC,mBACC,oBAAC;GACQ;GACP,SAAS;GACC;GACK;GACf,GAAI;IACJ,GACE;;AAIV,QACE,qBAAC;EAAI,OAAO,OAAO;;GAChB,aAAa;GAEd,qBAAC;IAAI,OAAO,EAAE,UAAU,YAAY;eACjC,aACC,oBAAC;KAAI,OAAO,OAAO;eACjB,oBAAC;MACC,MAAM;MACN,OAAO,YAAY,YAAY;OAC/B;MACE,EAGR,oBAAC;KACQ;KACG;KACA;KACC;KACE;KACb,OAAO,OAAO;KACd,WAAW,QAAQ;KACnB,UAAU;MACV;KACE;GAEL,aAAa,CAAC,gBACb,qBAAC;IAAW,SAAQ;IAAK,QAAQ,EAAE,MAAM,EAAE,YAAY,QAAQ,EAAE;;KAC9D,OAAO;KAAO;KAAE;KAAU;KAAE;;KAClB,GACX;GAEH,eAAe,oBAAC;IAAK,OAAO,OAAO;cAAQ;KAAoB,GAAG;;GAC/D"}
|
package/dist/base-popover.d.ts
CHANGED
package/dist/base-popover.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./useThemedStyles-CrarDyWc.js";
|
|
2
2
|
import "./useDismiss-CAEk_GV-.js";
|
|
3
|
-
import "./useFloating-
|
|
4
|
-
import "./Popover-
|
|
5
|
-
import { t as BasePopover } from "./BasePopover-
|
|
3
|
+
import "./useFloating-DCxblHIR.js";
|
|
4
|
+
import "./Popover-C-NRJlWf.js";
|
|
5
|
+
import { t as BasePopover } from "./BasePopover-UzOryrTn.js";
|
|
6
6
|
|
|
7
7
|
export { BasePopover };
|
package/dist/button.js
CHANGED
package/dist/check-item.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as CheckItem } from "./index-
|
|
1
|
+
import { t as CheckItem } from "./index-CzB15994.js";
|
|
2
2
|
export { CheckItem };
|
package/dist/checkbox.d.ts
CHANGED
package/dist/context-menu.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as types_d_exports, t as ContextMenu } from "./index-
|
|
1
|
+
import { n as types_d_exports, t as ContextMenu } from "./index-B6V8Bhgk.js";
|
|
2
2
|
export { ContextMenu, types_d_exports as ContextMenuTypes };
|
package/dist/context-menu.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import "./useThemedStyles-CrarDyWc.js";
|
|
2
2
|
import "./Switch-DJNZbvzy.js";
|
|
3
3
|
import "./useDismiss-CAEk_GV-.js";
|
|
4
|
-
import "./useFloating-
|
|
5
|
-
import "./Popover-
|
|
4
|
+
import "./useFloating-DCxblHIR.js";
|
|
5
|
+
import "./Popover-C-NRJlWf.js";
|
|
6
6
|
import "./Typography-BkFV7BhK.js";
|
|
7
|
-
import { n as types_exports, t as ContextMenu } from "./ContextMenu-
|
|
7
|
+
import { n as types_exports, t as ContextMenu } from "./ContextMenu-vFIUXgP8.js";
|
|
8
|
+
import "./BasePopover-UzOryrTn.js";
|
|
8
9
|
|
|
9
10
|
export { ContextMenu, types_exports as ContextMenuTypes };
|
package/dist/icon-button.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { a as TextProps, n as LayoutProps, r as MarginProps } from "./styleProps-B2pBEf9N.js";
|
|
2
2
|
import { n as StylesOf } from "./useThemedStyles-C23Tevdv.js";
|
|
3
|
+
import { t as FloatingOptions } from "./types-rPQapqo2.js";
|
|
4
|
+
import { t as PopoverProps } from "./types-699enaOL.js";
|
|
3
5
|
import React$1 from "react";
|
|
4
6
|
|
|
5
7
|
//#region src/components/commons/inputs/Select/styles.d.ts
|
|
@@ -63,6 +65,9 @@ interface SelectProps extends LayoutProps, MarginProps {
|
|
|
63
65
|
value: string[];
|
|
64
66
|
placeholder?: string;
|
|
65
67
|
options: SelectOption[];
|
|
68
|
+
portalId?: PopoverProps['portalId'];
|
|
69
|
+
strategy?: FloatingOptions['strategy'];
|
|
70
|
+
absoluteReference?: FloatingOptions['absoluteReference'];
|
|
66
71
|
canClear?: boolean;
|
|
67
72
|
multiple?: boolean;
|
|
68
73
|
required?: boolean;
|
|
@@ -85,4 +90,4 @@ interface SelectOption {
|
|
|
85
90
|
declare const Select: React$1.FC<SelectProps>;
|
|
86
91
|
//#endregion
|
|
87
92
|
export { types_d_exports as n, Select as t };
|
|
88
|
-
//# sourceMappingURL=index-
|
|
93
|
+
//# sourceMappingURL=index-9BlZnPff.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as Placement } from "./types-
|
|
1
|
+
import { n as Placement } from "./types-rPQapqo2.js";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
4
4
|
|
|
@@ -70,4 +70,4 @@ interface ContextMenuProps<T> {
|
|
|
70
70
|
declare const ContextMenu: <T extends string>(props: ContextMenuProps<T>) => react_jsx_runtime1.JSX.Element;
|
|
71
71
|
//#endregion
|
|
72
72
|
export { types_d_exports as n, ContextMenu as t };
|
|
73
|
-
//# sourceMappingURL=index-
|
|
73
|
+
//# sourceMappingURL=index-B6V8Bhgk.d.ts.map
|
|
@@ -292,4 +292,4 @@ declare const ThemeProvider: React.FC<ThemeProviderProps>;
|
|
|
292
292
|
declare function useTheme(): ThemeContextData;
|
|
293
293
|
//#endregion
|
|
294
294
|
export { ThemeName as a, ThemeRegistry as c, ThemeMode as i, ThemeTokens as l, useTheme as n, ThemePersistence as o, ThemeContextData as r, ThemeProviderProps as s, ThemeProvider as t };
|
|
295
|
-
//# sourceMappingURL=index-
|
|
295
|
+
//# sourceMappingURL=index-BD5ThARj.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as TextProps } from "./styleProps-B2pBEf9N.js";
|
|
2
2
|
import { SVGProps } from "react";
|
|
3
3
|
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
4
4
|
|
|
@@ -82,6 +82,12 @@ type IconName = keyof typeof icons;
|
|
|
82
82
|
//#endregion
|
|
83
83
|
//#region src/components/commons/inputs/TextArea/styles.d.ts
|
|
84
84
|
declare function createTextAreaStyles(props: TextAreaProps): {
|
|
85
|
+
container: {
|
|
86
|
+
width: string;
|
|
87
|
+
display: "flex";
|
|
88
|
+
flexDirection: "column";
|
|
89
|
+
rowGap: string;
|
|
90
|
+
};
|
|
85
91
|
iconContainer: {
|
|
86
92
|
position: "absolute";
|
|
87
93
|
left: string;
|
|
@@ -93,29 +99,40 @@ declare function createTextAreaStyles(props: TextAreaProps): {
|
|
|
93
99
|
width: string;
|
|
94
100
|
paddingBlock: string;
|
|
95
101
|
paddingInline: string;
|
|
102
|
+
borderWidth: number;
|
|
96
103
|
borderRadius: string;
|
|
97
104
|
resize: "none";
|
|
98
105
|
fontWeight: "400";
|
|
99
106
|
fontSize: string;
|
|
100
107
|
color: "var(--px-text-primary)";
|
|
101
|
-
|
|
108
|
+
borderColor: "var(--px-color-error)" | "var(--px-border-primary)";
|
|
102
109
|
outlineOffset: string;
|
|
103
110
|
cursor: "default" | undefined;
|
|
104
111
|
paddingLeft: string | undefined;
|
|
105
112
|
__rules: {
|
|
106
113
|
'&::placeholder': {
|
|
107
|
-
|
|
114
|
+
fontWeight: number;
|
|
115
|
+
color: "var(--px-text-secondary)";
|
|
108
116
|
};
|
|
109
|
-
'&:focus': {
|
|
117
|
+
'&:focus-within': {
|
|
118
|
+
outlineOffset: string;
|
|
110
119
|
outline: string;
|
|
111
120
|
};
|
|
112
121
|
};
|
|
113
122
|
};
|
|
123
|
+
error: {
|
|
124
|
+
display: "block";
|
|
125
|
+
fontWeight: number;
|
|
126
|
+
lineHeight: string;
|
|
127
|
+
fontSize: string;
|
|
128
|
+
fontFamily: "inherit";
|
|
129
|
+
color: "var(--px-text-error)";
|
|
130
|
+
};
|
|
114
131
|
};
|
|
115
132
|
//#endregion
|
|
116
133
|
//#region src/components/commons/inputs/TextArea/types.d.ts
|
|
117
134
|
interface TextAreaProps {
|
|
118
|
-
value
|
|
135
|
+
value?: string;
|
|
119
136
|
label?: string;
|
|
120
137
|
placeholder?: string;
|
|
121
138
|
styles?: Partial<ReturnType<typeof createTextAreaStyles>>;
|
|
@@ -127,13 +144,12 @@ interface TextAreaProps {
|
|
|
127
144
|
maxLength?: number;
|
|
128
145
|
hideMaxLength?: boolean;
|
|
129
146
|
textMaxLength?: string;
|
|
147
|
+
errorMessage?: string;
|
|
130
148
|
iconColor?: string;
|
|
131
149
|
placeholderColor?: string;
|
|
132
150
|
focusedRingColor?: string;
|
|
133
151
|
requiredColor?: string;
|
|
134
|
-
|
|
135
|
-
labelWeight?: string;
|
|
136
|
-
labelVariant?: TypographyVariant;
|
|
152
|
+
labelConfig?: TextProps;
|
|
137
153
|
onChange?: (value: string) => void;
|
|
138
154
|
}
|
|
139
155
|
//#endregion
|
|
@@ -141,4 +157,4 @@ interface TextAreaProps {
|
|
|
141
157
|
declare const TextArea: (props: TextAreaProps) => react_jsx_runtime3.JSX.Element;
|
|
142
158
|
//#endregion
|
|
143
159
|
export { TextArea as t };
|
|
144
|
-
//# sourceMappingURL=index-
|
|
160
|
+
//# sourceMappingURL=index-BD5Vr9sw.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as CommonStyleProps } from "./styleProps-B2pBEf9N.js";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/commons/toolkit/TabSwitch/styles.d.ts
|
|
6
6
|
declare function createTabSwitchStyles<T>(props: TabSwitchProps<T>): {
|
|
@@ -41,7 +41,7 @@ interface TabSwitchProps<T> extends CommonStyleProps {
|
|
|
41
41
|
}
|
|
42
42
|
//#endregion
|
|
43
43
|
//#region src/components/commons/toolkit/TabSwitch/index.d.ts
|
|
44
|
-
declare const TabSwitch: <T>(props: TabSwitchProps<T>) =>
|
|
44
|
+
declare const TabSwitch: <T>(props: TabSwitchProps<T>) => react_jsx_runtime0.JSX.Element;
|
|
45
45
|
//#endregion
|
|
46
46
|
export { SwitchOption as n, TabSwitchProps as r, TabSwitch as t };
|
|
47
|
-
//# sourceMappingURL=index-
|
|
47
|
+
//# sourceMappingURL=index-D-9XHxWM.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as PopoverProps } from "./types-699enaOL.js";
|
|
2
2
|
import React, { PropsWithChildren } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/commons/structure/BasePopover/types.d.ts
|
|
@@ -8,10 +8,15 @@ interface LayoutProps {
|
|
|
8
8
|
minHeight?: string;
|
|
9
9
|
maxHeight?: string;
|
|
10
10
|
}
|
|
11
|
-
interface
|
|
11
|
+
interface PanelProps {
|
|
12
|
+
padding?: string;
|
|
13
|
+
}
|
|
14
|
+
interface BasePopoverProps extends Omit<PopoverProps, 'content' | 'hideShadow'>, LayoutProps, PropsWithChildren {
|
|
15
|
+
panel?: PanelProps;
|
|
16
|
+
}
|
|
12
17
|
//#endregion
|
|
13
18
|
//#region src/components/commons/structure/BasePopover/index.d.ts
|
|
14
19
|
declare const BasePopover: React.FC<BasePopoverProps>;
|
|
15
20
|
//#endregion
|
|
16
21
|
export { BasePopover as t };
|
|
17
|
-
//# sourceMappingURL=index-
|
|
22
|
+
//# sourceMappingURL=index-DH6rpwqM.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { t as PopoverProps } from "./types-699enaOL.js";
|
|
2
|
+
import React from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/commons/toolkit/Popover/index.d.ts
|
|
5
|
+
|
|
6
|
+
declare const Popover: React.FC<PopoverProps>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { Popover as t };
|
|
9
|
+
//# sourceMappingURL=index-DK9_OGgn.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -2,18 +2,19 @@ import "./types-Ck6jQYTO.js";
|
|
|
2
2
|
import { t as Button } from "./index-E0ifwXgE.js";
|
|
3
3
|
import { t as IconButton } from "./index-BszVk1Tx.js";
|
|
4
4
|
import { t as Input } from "./index-B1QUSkjv.js";
|
|
5
|
-
import { n as types_d_exports$2, t as Select } from "./index-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import {
|
|
5
|
+
import { n as types_d_exports$2, t as Select } from "./index-9BlZnPff.js";
|
|
6
|
+
import { n as types_d_exports$1 } from "./types-699enaOL.js";
|
|
7
|
+
import { t as TextArea } from "./index-BD5Vr9sw.js";
|
|
8
|
+
import { t as Popover } from "./index-DK9_OGgn.js";
|
|
9
|
+
import { t as BasePopover } from "./index-DH6rpwqM.js";
|
|
10
|
+
import { t as CheckItem } from "./index-CzB15994.js";
|
|
11
|
+
import { t as Checkbox } from "./index-BymgvkBq.js";
|
|
12
|
+
import { n as types_d_exports, t as ContextMenu } from "./index-B6V8Bhgk.js";
|
|
12
13
|
import { InfoSummary, InfoSummaryItem, InfoSummaryProps } from "./info-summary.js";
|
|
13
|
-
import { t as Switch } from "./index-
|
|
14
|
-
import { n as SwitchOption, r as TabSwitchProps, t as TabSwitch } from "./index-
|
|
14
|
+
import { t as Switch } from "./index-aQIW73fh.js";
|
|
15
|
+
import { n as SwitchOption, r as TabSwitchProps, t as TabSwitch } from "./index-D-9XHxWM.js";
|
|
15
16
|
import { Typography } from "./typography.js";
|
|
16
|
-
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-
|
|
17
|
+
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-BD5ThARj.js";
|
|
17
18
|
import { useDismiss } from "./use-dismiss.js";
|
|
18
19
|
import { AnchorLike, useFloating } from "./use-floating.js";
|
|
19
20
|
import { useVirtualAnchor } from "./use-virtual-anchor.js";
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./useThemedStyles-CrarDyWc.js";
|
|
2
2
|
import { t as Switch } from "./Switch-DJNZbvzy.js";
|
|
3
3
|
import { t as useDismiss } from "./useDismiss-CAEk_GV-.js";
|
|
4
|
-
import { t as useFloating } from "./useFloating-
|
|
5
|
-
import { n as types_exports$1, t as Popover } from "./Popover-
|
|
4
|
+
import { t as useFloating } from "./useFloating-DCxblHIR.js";
|
|
5
|
+
import { n as types_exports$1, t as Popover } from "./Popover-C-NRJlWf.js";
|
|
6
6
|
import "./Icon-KzwFJI_k.js";
|
|
7
7
|
import { t as Typography } from "./Typography-BkFV7BhK.js";
|
|
8
8
|
import { t as Checkbox } from "./Checkbox-j9ZnSxT7.js";
|
|
@@ -10,14 +10,14 @@ import { n as useTheme, t as ThemeProvider } from "./ThemeContext-DhXvmWKO.js";
|
|
|
10
10
|
import { t as TabSwitch } from "./TabSwitch-DlXdgLPc.js";
|
|
11
11
|
import { t as CheckItem } from "./CheckItem-CJqWCE1W.js";
|
|
12
12
|
import { t as InfoSummary } from "./InfoSummary-Cf2ein9V.js";
|
|
13
|
-
import { n as types_exports, t as ContextMenu } from "./ContextMenu-
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import "./
|
|
17
|
-
import
|
|
18
|
-
import {
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as TextArea } from "./TextArea-
|
|
13
|
+
import { n as types_exports, t as ContextMenu } from "./ContextMenu-vFIUXgP8.js";
|
|
14
|
+
import { t as BasePopover } from "./BasePopover-UzOryrTn.js";
|
|
15
|
+
import { t as Button } from "./Button-DiBsoNFU.js";
|
|
16
|
+
import { t as IconButton } from "./IconButton-DAZvE8i5.js";
|
|
17
|
+
import "./Label-BHq2knad.js";
|
|
18
|
+
import { t as Input } from "./Input-B6a6mXsZ.js";
|
|
19
|
+
import { n as types_exports$2, t as Select } from "./Select-CVcQGxjv.js";
|
|
20
|
+
import { t as TextArea } from "./TextArea-Oqw0zh_x.js";
|
|
21
21
|
import { useVirtualAnchor } from "./use-virtual-anchor.js";
|
|
22
22
|
|
|
23
23
|
export { BasePopover, Button, CheckItem, Checkbox, ContextMenu, types_exports as ContextMenuTypes, IconButton, InfoSummary, Input, Popover, types_exports$1 as PopoverTypes, Select, types_exports$2 as SelectTypes, Switch, TabSwitch, TextArea, ThemeProvider, Typography, useDismiss, useFloating, useTheme, useVirtualAnchor };
|
package/dist/input.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./useThemedStyles-CrarDyWc.js";
|
|
2
2
|
import "./Icon-KzwFJI_k.js";
|
|
3
3
|
import "./Typography-BkFV7BhK.js";
|
|
4
|
-
import "./Label-
|
|
5
|
-
import { t as Input } from "./Input-
|
|
4
|
+
import "./Label-BHq2knad.js";
|
|
5
|
+
import { t as Input } from "./Input-B6a6mXsZ.js";
|
|
6
6
|
|
|
7
7
|
export { Input };
|
package/dist/popover.d.ts
CHANGED
package/dist/popover.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./useThemedStyles-CrarDyWc.js";
|
|
2
2
|
import "./useDismiss-CAEk_GV-.js";
|
|
3
|
-
import "./useFloating-
|
|
4
|
-
import { n as types_exports, t as Popover } from "./Popover-
|
|
3
|
+
import "./useFloating-DCxblHIR.js";
|
|
4
|
+
import { n as types_exports, t as Popover } from "./Popover-C-NRJlWf.js";
|
|
5
5
|
|
|
6
6
|
export { Popover, types_exports as PopoverTypes };
|
package/dist/select.d.ts
CHANGED
package/dist/select.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./useThemedStyles-CrarDyWc.js";
|
|
2
2
|
import "./useDismiss-CAEk_GV-.js";
|
|
3
|
-
import "./useFloating-
|
|
4
|
-
import "./Popover-
|
|
3
|
+
import "./useFloating-DCxblHIR.js";
|
|
4
|
+
import "./Popover-C-NRJlWf.js";
|
|
5
5
|
import "./Icon-KzwFJI_k.js";
|
|
6
6
|
import "./Typography-BkFV7BhK.js";
|
|
7
|
-
import "./
|
|
8
|
-
import
|
|
9
|
-
import "./
|
|
7
|
+
import "./BasePopover-UzOryrTn.js";
|
|
8
|
+
import "./Label-BHq2knad.js";
|
|
9
|
+
import { n as types_exports, t as Select } from "./Select-CVcQGxjv.js";
|
|
10
10
|
|
|
11
11
|
export { Select, types_exports as SelectTypes };
|
package/dist/switch.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Switch } from "./index-
|
|
1
|
+
import { t as Switch } from "./index-aQIW73fh.js";
|
|
2
2
|
export { Switch };
|
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-D-9XHxWM.js";
|
|
2
2
|
export { SwitchOption, TabSwitch, TabSwitchProps };
|
package/dist/text-area.d.ts
CHANGED
package/dist/text-area.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./useThemedStyles-CrarDyWc.js";
|
|
2
2
|
import "./Icon-KzwFJI_k.js";
|
|
3
3
|
import "./Typography-BkFV7BhK.js";
|
|
4
|
-
import "./Label-
|
|
5
|
-
import { t as TextArea } from "./TextArea-
|
|
4
|
+
import "./Label-BHq2knad.js";
|
|
5
|
+
import { t as TextArea } from "./TextArea-Oqw0zh_x.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-BD5ThARj.js";
|
|
2
2
|
export { ThemeContextData, ThemeMode, ThemeName, ThemePersistence, ThemeProvider, ThemeProviderProps, ThemeRegistry, ThemeTokens, useTheme };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as PaddingProps } from "./styleProps-B2pBEf9N.js";
|
|
2
|
-
import { t as FloatingOptions } from "./types-
|
|
3
|
-
import
|
|
2
|
+
import { t as FloatingOptions } from "./types-rPQapqo2.js";
|
|
3
|
+
import { MouseEventHandler, ReactNode, RefObject } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/commons/toolkit/Popover/styles.d.ts
|
|
6
6
|
declare function createPopoverStyles({
|
|
@@ -31,11 +31,13 @@ type PopoverTriggerRenderProps = {
|
|
|
31
31
|
};
|
|
32
32
|
interface PopoverProps extends PaddingProps {
|
|
33
33
|
open?: boolean;
|
|
34
|
+
portalId?: string;
|
|
34
35
|
hideShadow?: boolean;
|
|
35
36
|
closeOnEscape?: boolean;
|
|
36
37
|
closeOnOutsideClick?: boolean;
|
|
37
38
|
floatingOptions?: FloatingOptions;
|
|
38
39
|
anchorRef?: RefObject<HTMLElement>;
|
|
40
|
+
absoluteReference?: FloatingOptions['absoluteReference'];
|
|
39
41
|
onOpenChange?: (v: boolean) => void;
|
|
40
42
|
onMouseEnter?: MouseEventHandler<HTMLDivElement>;
|
|
41
43
|
onMouseLeave?: MouseEventHandler<HTMLDivElement>;
|
|
@@ -47,8 +49,5 @@ interface PopoverProps extends PaddingProps {
|
|
|
47
49
|
styles?: Partial<ReturnType<typeof createPopoverStyles>>;
|
|
48
50
|
}
|
|
49
51
|
//#endregion
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
//#endregion
|
|
53
|
-
export { PopoverProps as n, types_d_exports as r, Popover as t };
|
|
54
|
-
//# sourceMappingURL=index-CNn6Rkw1.d.ts.map
|
|
52
|
+
export { types_d_exports as n, PopoverProps as t };
|
|
53
|
+
//# sourceMappingURL=types-699enaOL.d.ts.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
//#region src/hooks/useFloating/types.d.ts
|
|
2
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
3
|
type Strategy = 'fixed' | 'absolute';
|
|
4
|
+
type AbsoluteReference = 'offsetParent' | 'portal' | 'none';
|
|
4
5
|
type FloatingOptions = {
|
|
5
6
|
placement?: Placement;
|
|
6
7
|
offsetX?: number;
|
|
@@ -9,7 +10,9 @@ type FloatingOptions = {
|
|
|
9
10
|
viewportMargin?: number;
|
|
10
11
|
scrollContainerId?: string;
|
|
11
12
|
strategy?: Strategy;
|
|
13
|
+
portalRef?: React.RefObject<HTMLElement | null>;
|
|
14
|
+
absoluteReference?: AbsoluteReference;
|
|
12
15
|
};
|
|
13
16
|
//#endregion
|
|
14
17
|
export { Placement as n, FloatingOptions as t };
|
|
15
|
-
//# sourceMappingURL=types-
|
|
18
|
+
//# sourceMappingURL=types-rPQapqo2.d.ts.map
|