@daisforge/ui 1.11.0 → 1.12.0
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/chunks/FormDatePickers-BCyW24Pr.cjs +1 -0
- package/chunks/{FormDatePickers-BClwflaz.mjs → FormDatePickers-DfdGdbwP.mjs} +205 -202
- package/chunks/{FormTextArea-CS8BIeFe.mjs → FormTextArea-CCrYx4pL.mjs} +58 -59
- package/chunks/FormTextArea-sly1mY7h.cjs +1 -0
- package/chunks/{GridDND-Dn1CrBX6.mjs → GridDND-Bycwiynh.mjs} +150 -146
- package/chunks/GridDND-MsZt1fXJ.cjs +1 -0
- package/chunks/{TableCanvas-Cv7CvnON.cjs → TableCanvas-D-sndY82.cjs} +1 -1
- package/chunks/{TableCanvas-BF6IgvLA.mjs → TableCanvas-D4Bck7wv.mjs} +9 -6
- package/components/GridDND/GridDND.styled.d.ts +1 -0
- package/components/GridDND/index.cjs +1 -1
- package/components/GridDND/index.d.ts +1 -0
- package/components/GridDND/index.mjs +5 -4
- package/components/GridDND/utils/index.cjs +1 -1
- package/components/GridDND/utils/index.mjs +3 -3
- package/components/TableCanvas/TableGlideInstance/adapters/column/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/adapters/column/index.mjs +1 -1
- package/components/TableCanvas/TableGlideInstance/adapters/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/adapters/index.mjs +1 -1
- package/components/TableCanvas/TableGlideInstance/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/index.mjs +1 -1
- package/components/TableCanvas/TableGlideInstance/utils/column/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/utils/column/index.mjs +1 -1
- package/components/TableCanvas/TableGlideInstance/utils/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/utils/index.mjs +1 -1
- package/components/TableCanvas/components/SplitIconButton/index.cjs +1 -1
- package/components/TableCanvas/components/SplitIconButton/index.mjs +1 -1
- package/components/TableCanvas/components/TableDropdown/index.cjs +1 -1
- package/components/TableCanvas/components/TableDropdown/index.mjs +1 -1
- package/components/TableCanvas/feature-cell-transfer/index.cjs +1 -1
- package/components/TableCanvas/feature-cell-transfer/index.mjs +1 -1
- package/components/TableCanvas/feature-collapse-table/index.cjs +1 -1
- package/components/TableCanvas/feature-collapse-table/index.mjs +1 -1
- package/components/TableCanvas/feature-column-control/ColumnsList/index.cjs +1 -1
- package/components/TableCanvas/feature-column-control/ColumnsList/index.mjs +1 -1
- package/components/TableCanvas/feature-column-control/index.cjs +1 -1
- package/components/TableCanvas/feature-column-control/index.mjs +1 -1
- package/components/TableCanvas/feature-columns-grouping/index.cjs +1 -1
- package/components/TableCanvas/feature-columns-grouping/index.mjs +1 -1
- package/components/TableCanvas/feature-content-state/index.cjs +1 -1
- package/components/TableCanvas/feature-content-state/index.mjs +1 -1
- package/components/TableCanvas/feature-context-menu/index.cjs +1 -1
- package/components/TableCanvas/feature-context-menu/index.mjs +1 -1
- package/components/TableCanvas/feature-edit/index.cjs +1 -1
- package/components/TableCanvas/feature-edit/index.mjs +1 -1
- package/components/TableCanvas/feature-filtering/combobox/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/combobox/index.mjs +1 -1
- package/components/TableCanvas/feature-filtering/filter-list-block/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/filter-list-block/index.mjs +1 -1
- package/components/TableCanvas/feature-filtering/header-filter-button/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/header-filter-button/index.mjs +1 -1
- package/components/TableCanvas/feature-filtering/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/index.mjs +1 -1
- package/components/TableCanvas/feature-filtering/sidebar-filter-block/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/sidebar-filter-block/index.mjs +1 -1
- package/components/TableCanvas/feature-infinity-scroll/index.cjs +1 -1
- package/components/TableCanvas/feature-infinity-scroll/index.mjs +1 -1
- package/components/TableCanvas/feature-key-text/index.cjs +1 -1
- package/components/TableCanvas/feature-key-text/index.mjs +1 -1
- package/components/TableCanvas/feature-notifications/index.cjs +1 -1
- package/components/TableCanvas/feature-notifications/index.mjs +1 -1
- package/components/TableCanvas/feature-pagination/index.cjs +1 -1
- package/components/TableCanvas/feature-pagination/index.mjs +1 -1
- package/components/TableCanvas/feature-popover-table/context/index.cjs +1 -1
- package/components/TableCanvas/feature-popover-table/context/index.mjs +1 -1
- package/components/TableCanvas/feature-popover-table/hooks/index.cjs +1 -1
- package/components/TableCanvas/feature-popover-table/hooks/index.mjs +1 -1
- package/components/TableCanvas/feature-popover-table/index.cjs +1 -1
- package/components/TableCanvas/feature-popover-table/index.mjs +1 -1
- package/components/TableCanvas/feature-popover-table/utils/index.cjs +1 -1
- package/components/TableCanvas/feature-popover-table/utils/index.mjs +1 -1
- package/components/TableCanvas/feature-right-sidebar/index.cjs +1 -1
- package/components/TableCanvas/feature-right-sidebar/index.mjs +1 -1
- package/components/TableCanvas/feature-row-detail/index.cjs +1 -1
- package/components/TableCanvas/feature-row-detail/index.mjs +1 -1
- package/components/TableCanvas/feature-row-instruments/index.cjs +1 -1
- package/components/TableCanvas/feature-row-instruments/index.mjs +1 -1
- package/components/TableCanvas/feature-row-markers/index.cjs +1 -1
- package/components/TableCanvas/feature-row-markers/index.mjs +1 -1
- package/components/TableCanvas/feature-row-size/index.cjs +1 -1
- package/components/TableCanvas/feature-row-size/index.mjs +1 -1
- package/components/TableCanvas/feature-rows-grouping/index.cjs +1 -1
- package/components/TableCanvas/feature-rows-grouping/index.mjs +1 -1
- package/components/TableCanvas/feature-searching/index.cjs +1 -1
- package/components/TableCanvas/feature-searching/index.mjs +1 -1
- package/components/TableCanvas/feature-select-row/index.cjs +1 -1
- package/components/TableCanvas/feature-select-row/index.mjs +1 -1
- package/components/TableCanvas/feature-sorting/index.cjs +1 -1
- package/components/TableCanvas/feature-sorting/index.mjs +1 -1
- package/components/TableCanvas/feature-table-settings/index.cjs +1 -1
- package/components/TableCanvas/feature-table-settings/index.mjs +1 -1
- package/components/TableCanvas/feature-tooltip/index.cjs +1 -1
- package/components/TableCanvas/feature-tooltip/index.mjs +1 -1
- package/components/TableCanvas/feature-tooltip/utils/index.cjs +1 -1
- package/components/TableCanvas/feature-tooltip/utils/index.mjs +1 -1
- package/components/TableCanvas/feature-tree/index.cjs +1 -1
- package/components/TableCanvas/feature-tree/index.mjs +1 -1
- package/components/TableCanvas/index.cjs +1 -1
- package/components/TableCanvas/index.mjs +1 -1
- package/components/TableCanvas/renders/formatCell/index.cjs +1 -1
- package/components/TableCanvas/renders/formatCell/index.mjs +1 -1
- package/components/TableCanvas/styles/index.cjs +1 -1
- package/components/TableCanvas/styles/index.mjs +1 -1
- package/components/TableCanvas/table-hooks/index.cjs +1 -1
- package/components/TableCanvas/table-hooks/index.mjs +1 -1
- package/components/TableCanvas/types/index.cjs +1 -1
- package/components/TableCanvas/types/index.mjs +1 -1
- package/components/TableCanvas/utils/index.cjs +1 -1
- package/components/TableCanvas/utils/index.mjs +1 -1
- package/components/TableCanvas/widgets/control-block/compression/index.cjs +1 -1
- package/components/TableCanvas/widgets/control-block/compression/index.mjs +1 -1
- package/components/TableCanvas/widgets/control-block/index.cjs +1 -1
- package/components/TableCanvas/widgets/control-block/index.mjs +1 -1
- package/components/TableCanvas/widgets/control-block/right-side/index.cjs +1 -1
- package/components/TableCanvas/widgets/control-block/right-side/index.mjs +1 -1
- package/components/TableCanvas/widgets/index.cjs +1 -1
- package/components/TableCanvas/widgets/index.mjs +1 -1
- package/components/TableCanvas/widgets/mass-actions/hooks/index.cjs +1 -1
- package/components/TableCanvas/widgets/mass-actions/hooks/index.mjs +1 -1
- package/components/TableCanvas/widgets/mass-actions/index.cjs +1 -1
- package/components/TableCanvas/widgets/mass-actions/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/utils/portalHoverEvents.d.ts +3 -1
- package/formComponents/FormAutocomplete/FormAutocomplete.d.ts +1 -1
- package/formComponents/FormAutocomplete/index.cjs +1 -1
- package/formComponents/FormAutocomplete/index.mjs +40 -38
- package/formComponents/FormCombobox/index.cjs +1 -1
- package/formComponents/FormCombobox/index.mjs +29 -29
- package/formComponents/FormDatePickers/FormDatePicker/FormDatePicker.d.ts +1 -1
- package/formComponents/FormDatePickers/FormDatePicker/index.cjs +1 -1
- package/formComponents/FormDatePickers/FormDatePicker/index.mjs +1 -1
- package/formComponents/FormDatePickers/FormDatePickerRange/FormDatePickerRange.d.ts +1 -1
- package/formComponents/FormDatePickers/FormDatePickerRange/index.cjs +1 -1
- package/formComponents/FormDatePickers/FormDatePickerRange/index.mjs +1 -1
- package/formComponents/FormDatePickers/FormDatePickerRange/lib/utils/index.cjs +1 -1
- package/formComponents/FormDatePickers/FormDatePickerRange/lib/utils/index.mjs +1 -1
- package/formComponents/FormDatePickers/index.cjs +1 -1
- package/formComponents/FormDatePickers/index.mjs +1 -1
- package/formComponents/FormMask/FormMask.d.ts +1 -1
- package/formComponents/FormMask/index.cjs +1 -1
- package/formComponents/FormMask/index.mjs +34 -32
- package/formComponents/FormNumberFormat/FormNumberFormat.d.ts +1 -1
- package/formComponents/FormNumberFormat/index.cjs +1 -1
- package/formComponents/FormNumberFormat/index.mjs +36 -34
- package/formComponents/FormSelect/index.cjs +1 -1
- package/formComponents/FormSelect/index.mjs +21 -21
- package/formComponents/FormTextArea/index.cjs +1 -1
- package/formComponents/FormTextArea/index.mjs +1 -1
- package/formComponents/FormTextArea/ui/index.cjs +1 -1
- package/formComponents/FormTextArea/ui/index.mjs +1 -1
- package/formComponents/FormTextField/index.cjs +1 -1
- package/formComponents/FormTextField/index.mjs +21 -21
- package/index.cjs +1 -1
- package/index.mjs +1552 -1551
- package/package.json +1 -1
- package/chunks/FormDatePickers-k_9RxQ8v.cjs +0 -1
- package/chunks/FormTextArea-C-iavwsX.cjs +0 -1
- package/chunks/GridDND-2-SOnXN6.cjs +0 -1
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
import { j as i } from "./vendor-BG4P-329.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { textAccent as P, textAccentHover as O, textSecondary as p, textNegative as G } from "@salutejs/sdds-themes/tokens/sdds_finai";
|
|
2
|
+
import { Controller as V } from "react-hook-form";
|
|
3
|
+
import { getPriorityRequired as j, useChangedFormContext as D, getRuleValue as E } from "../formComponents/utils/index.mjs";
|
|
4
|
+
import { Button as q, Flow as g, BodyXS as u } from "@salutejs/sdds-finai";
|
|
5
|
+
import { textAccent as R, textAccentHover as S, textSecondary as p, textNegative as H } from "@salutejs/sdds-themes/tokens/sdds_finai";
|
|
7
6
|
import b from "styled-components";
|
|
8
|
-
import { TextArea as
|
|
9
|
-
const
|
|
7
|
+
import { TextArea as P } from "../components/TextArea/index.mjs";
|
|
8
|
+
const O = b(q).withConfig({
|
|
10
9
|
displayName: "ButtonStyled"
|
|
11
|
-
})(["padding:0;height:fit-content;color:", ";&:hover{background:transparent;color:", ";}"], () =>
|
|
10
|
+
})(["padding:0;height:fit-content;color:", ";&:hover{background:transparent;color:", ";}"], () => R, () => S), G = b(P).withConfig({
|
|
12
11
|
displayName: "TextAreaStyled"
|
|
13
|
-
})([".textarea-container{
|
|
14
|
-
onClear:
|
|
15
|
-
currentCount:
|
|
12
|
+
})([".textarea-container{div:first-child{flex:1;}}"]), L = ({
|
|
13
|
+
onClear: m,
|
|
14
|
+
currentCount: r,
|
|
16
15
|
maxCount: e,
|
|
17
|
-
showClearButton:
|
|
16
|
+
showClearButton: a = !0
|
|
18
17
|
}) => {
|
|
19
|
-
let
|
|
20
|
-
return e && (
|
|
21
|
-
|
|
18
|
+
let s;
|
|
19
|
+
return e && (s = r > e ? H : p), /* @__PURE__ */ i.jsxDEV(g, { mainAxisGap: "8px", crossAxisGap: "8px", children: [
|
|
20
|
+
r > 0 && a && /* @__PURE__ */ i.jsxDEV(O, { view: "clear", onClick: m, children: /* @__PURE__ */ i.jsxDEV(u, { children: "Очистить" }, void 0, !1, {
|
|
22
21
|
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/formComponents/FormTextArea/components/RightContent.tsx",
|
|
23
22
|
lineNumber: 24,
|
|
24
23
|
columnNumber: 11
|
|
@@ -27,18 +26,18 @@ const L = b(H).withConfig({
|
|
|
27
26
|
lineNumber: 23,
|
|
28
27
|
columnNumber: 7
|
|
29
28
|
}, void 0),
|
|
30
|
-
e && /* @__PURE__ */ i.jsxDEV(
|
|
31
|
-
/* @__PURE__ */ i.jsxDEV(
|
|
29
|
+
e && /* @__PURE__ */ i.jsxDEV(g, { children: [
|
|
30
|
+
/* @__PURE__ */ i.jsxDEV(u, { color: s, children: r }, void 0, !1, {
|
|
32
31
|
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/formComponents/FormTextArea/components/RightContent.tsx",
|
|
33
32
|
lineNumber: 29,
|
|
34
33
|
columnNumber: 11
|
|
35
34
|
}, void 0),
|
|
36
|
-
/* @__PURE__ */ i.jsxDEV(
|
|
35
|
+
/* @__PURE__ */ i.jsxDEV(u, { color: p, children: "/" }, void 0, !1, {
|
|
37
36
|
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/formComponents/FormTextArea/components/RightContent.tsx",
|
|
38
37
|
lineNumber: 30,
|
|
39
38
|
columnNumber: 11
|
|
40
39
|
}, void 0),
|
|
41
|
-
/* @__PURE__ */ i.jsxDEV(
|
|
40
|
+
/* @__PURE__ */ i.jsxDEV(u, { color: p, children: e }, void 0, !1, {
|
|
42
41
|
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/formComponents/FormTextArea/components/RightContent.tsx",
|
|
43
42
|
lineNumber: 31,
|
|
44
43
|
columnNumber: 11
|
|
@@ -53,57 +52,57 @@ const L = b(H).withConfig({
|
|
|
53
52
|
lineNumber: 21,
|
|
54
53
|
columnNumber: 5
|
|
55
54
|
}, void 0);
|
|
56
|
-
},
|
|
57
|
-
name:
|
|
58
|
-
options:
|
|
55
|
+
}, W = ({
|
|
56
|
+
name: m,
|
|
57
|
+
options: r,
|
|
59
58
|
onChange: e,
|
|
60
|
-
label:
|
|
61
|
-
leftHelper:
|
|
59
|
+
label: a,
|
|
60
|
+
leftHelper: s = "",
|
|
62
61
|
onBlur: o,
|
|
63
|
-
onFocus:
|
|
64
|
-
view:
|
|
62
|
+
onFocus: z,
|
|
63
|
+
view: v,
|
|
65
64
|
showClearButton: A = !0,
|
|
66
|
-
required:
|
|
65
|
+
required: F,
|
|
67
66
|
...d
|
|
68
67
|
}) => {
|
|
69
68
|
const c = {
|
|
70
|
-
...
|
|
71
|
-
required:
|
|
72
|
-
},
|
|
73
|
-
rule:
|
|
69
|
+
...r,
|
|
70
|
+
required: j({ options: r, ruleName: "required" }) ? r == null ? void 0 : r.required : F
|
|
71
|
+
}, l = D(c), { control: T, rules: N, remOptions: C, setValue: w } = l, f = E({
|
|
72
|
+
rule: N.maxLength,
|
|
74
73
|
typeValue: "number"
|
|
75
74
|
});
|
|
76
75
|
return /* @__PURE__ */ i.jsxDEV(
|
|
77
|
-
|
|
76
|
+
V,
|
|
78
77
|
{
|
|
79
|
-
control:
|
|
80
|
-
name:
|
|
81
|
-
...
|
|
82
|
-
rules:
|
|
78
|
+
control: T,
|
|
79
|
+
name: m,
|
|
80
|
+
...C,
|
|
81
|
+
rules: N,
|
|
83
82
|
render: ({
|
|
84
|
-
field: { name:
|
|
83
|
+
field: { name: I, onBlur: h, onChange: y, ...x },
|
|
85
84
|
fieldState: { error: n }
|
|
86
85
|
}) => {
|
|
87
|
-
var
|
|
86
|
+
var k;
|
|
88
87
|
return /* @__PURE__ */ i.jsxDEV(
|
|
89
|
-
|
|
88
|
+
G,
|
|
90
89
|
{
|
|
91
90
|
...x,
|
|
92
|
-
label:
|
|
91
|
+
label: a,
|
|
93
92
|
labelPlacement: "outer",
|
|
94
|
-
leftHelper: (n == null ? void 0 : n.message) ||
|
|
93
|
+
leftHelper: (n == null ? void 0 : n.message) || s,
|
|
95
94
|
leftHelperPlacement: "inner",
|
|
96
|
-
name:
|
|
97
|
-
required:
|
|
95
|
+
name: m,
|
|
96
|
+
required: !!c.required || void 0,
|
|
98
97
|
requiredPlacement: "right",
|
|
99
|
-
hasRequiredIndicator:
|
|
100
|
-
rightHelper:
|
|
101
|
-
|
|
98
|
+
hasRequiredIndicator: !!c.required || void 0,
|
|
99
|
+
rightHelper: !x.disabled && !d.disabled && !d.readOnly && /* @__PURE__ */ i.jsxDEV(
|
|
100
|
+
L,
|
|
102
101
|
{
|
|
103
|
-
currentCount: ((
|
|
102
|
+
currentCount: ((k = x.value) == null ? void 0 : k.length) || 0,
|
|
104
103
|
maxCount: f,
|
|
105
104
|
onClear: () => {
|
|
106
|
-
|
|
105
|
+
w(m, "", {
|
|
107
106
|
shouldDirty: !0
|
|
108
107
|
}), e == null || e("", l);
|
|
109
108
|
},
|
|
@@ -113,21 +112,21 @@ const L = b(H).withConfig({
|
|
|
113
112
|
!1,
|
|
114
113
|
{
|
|
115
114
|
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/formComponents/FormTextArea/FormTextArea.tsx",
|
|
116
|
-
lineNumber:
|
|
115
|
+
lineNumber: 68,
|
|
117
116
|
columnNumber: 9
|
|
118
117
|
},
|
|
119
118
|
void 0
|
|
120
119
|
),
|
|
121
120
|
size: "s",
|
|
122
|
-
view: n != null && n.type ? "negative" :
|
|
123
|
-
onBlur: (
|
|
124
|
-
|
|
121
|
+
view: n != null && n.type ? "negative" : v ?? "default",
|
|
122
|
+
onBlur: (t) => {
|
|
123
|
+
t.relatedTarget || (h(), o == null || o(t));
|
|
125
124
|
},
|
|
126
|
-
onChange: (
|
|
127
|
-
|
|
125
|
+
onChange: (t) => {
|
|
126
|
+
y(t.target.value), e == null || e(t.target.value, l);
|
|
128
127
|
},
|
|
129
|
-
onFocus: (
|
|
130
|
-
|
|
128
|
+
onFocus: (t) => {
|
|
129
|
+
o == null || o(t);
|
|
131
130
|
},
|
|
132
131
|
...f !== void 0 && { maxLength: f },
|
|
133
132
|
...d
|
|
@@ -154,7 +153,7 @@ const L = b(H).withConfig({
|
|
|
154
153
|
);
|
|
155
154
|
};
|
|
156
155
|
export {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
156
|
+
O as B,
|
|
157
|
+
W as F,
|
|
158
|
+
G as T
|
|
160
159
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("./vendor-D8Dozc4m.cjs"),q=require("react-hook-form"),N=require("../formComponents/utils/index.cjs"),o=require("@salutejs/sdds-finai"),u=require("@salutejs/sdds-themes/tokens/sdds_finai"),g=require("styled-components"),w=require("../components/TextArea/index.cjs"),b=g(o.Button).withConfig({displayName:"ButtonStyled"})(["padding:0;height:fit-content;color:",";&:hover{background:transparent;color:",";}"],()=>u.textAccent,()=>u.textAccentHover),A=g(w.TextArea).withConfig({displayName:"TextAreaStyled"})([".textarea-container{div:first-child{flex:1;}}"]),h=({onClear:m,currentCount:r,maxCount:e,showClearButton:d=!0})=>{let a;return e&&(a=r>e?u.textNegative:u.textSecondary),t.jsxDevRuntimeExports.jsxDEV(o.Flow,{mainAxisGap:"8px",crossAxisGap:"8px",children:[r>0&&d&&t.jsxDevRuntimeExports.jsxDEV(b,{view:"clear",onClick:m,children:t.jsxDevRuntimeExports.jsxDEV(o.BodyXS,{children:"Очистить"},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/formComponents/FormTextArea/components/RightContent.tsx",lineNumber:24,columnNumber:11},void 0)},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/formComponents/FormTextArea/components/RightContent.tsx",lineNumber:23,columnNumber:7},void 0),e&&t.jsxDevRuntimeExports.jsxDEV(o.Flow,{children:[t.jsxDevRuntimeExports.jsxDEV(o.BodyXS,{color:a,children:r},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/formComponents/FormTextArea/components/RightContent.tsx",lineNumber:29,columnNumber:11},void 0),t.jsxDevRuntimeExports.jsxDEV(o.BodyXS,{color:u.textSecondary,children:"/"},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/formComponents/FormTextArea/components/RightContent.tsx",lineNumber:30,columnNumber:11},void 0),t.jsxDevRuntimeExports.jsxDEV(o.BodyXS,{color:u.textSecondary,children:e},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/formComponents/FormTextArea/components/RightContent.tsx",lineNumber:31,columnNumber:11},void 0)]},void 0,!0,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/formComponents/FormTextArea/components/RightContent.tsx",lineNumber:28,columnNumber:7},void 0)]},void 0,!0,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/formComponents/FormTextArea/components/RightContent.tsx",lineNumber:21,columnNumber:5},void 0)},S=({name:m,options:r,onChange:e,label:d,leftHelper:a="",onBlur:n,onFocus:V,view:F,showClearButton:y=!0,required:D,...c})=>{const l={...r,required:N.getPriorityRequired({options:r,ruleName:"required"})?r==null?void 0:r.required:D},x=N.useChangedFormContext(l),{control:T,rules:v,remOptions:j,setValue:E}=x,f=N.getRuleValue({rule:v.maxLength,typeValue:"number"});return t.jsxDevRuntimeExports.jsxDEV(q.Controller,{control:T,name:m,...j,rules:v,render:({field:{name:H,onBlur:R,onChange:C,...p},fieldState:{error:s}})=>{var k;return t.jsxDevRuntimeExports.jsxDEV(A,{...p,label:d,labelPlacement:"outer",leftHelper:(s==null?void 0:s.message)||a,leftHelperPlacement:"inner",name:m,required:!!l.required||void 0,requiredPlacement:"right",hasRequiredIndicator:!!l.required||void 0,rightHelper:!p.disabled&&!c.disabled&&!c.readOnly&&t.jsxDevRuntimeExports.jsxDEV(h,{currentCount:((k=p.value)==null?void 0:k.length)||0,maxCount:f,onClear:()=>{E(m,"",{shouldDirty:!0}),e==null||e("",x)},showClearButton:y},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/formComponents/FormTextArea/FormTextArea.tsx",lineNumber:68,columnNumber:9},void 0),size:"s",view:s!=null&&s.type?"negative":F??"default",onBlur:i=>{i.relatedTarget||(R(),n==null||n(i))},onChange:i=>{C(i.target.value),e==null||e(i.target.value,x)},onFocus:i=>{n==null||n(i)},...f!==void 0&&{maxLength:f},...c},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/formComponents/FormTextArea/FormTextArea.tsx",lineNumber:54,columnNumber:7},void 0)}},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/formComponents/FormTextArea/FormTextArea.tsx",lineNumber:45,columnNumber:5},void 0)};exports.ButtonStyled=b;exports.FormTextArea=S;exports.TextAreaStyled=A;
|