nntc-ui 0.2.21 → 0.2.23
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/components/inputs/Textarea/Textarea.d.ts +17 -0
- package/components/inputs/Textarea/Textarea.d.ts.map +1 -0
- package/components/inputs/Textarea/index.d.ts +2 -0
- package/components/inputs/Textarea/index.d.ts.map +1 -0
- package/index.css +64 -9
- package/index.css.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -1
- package/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactNode, TextareaHTMLAttributes } from 'react';
|
|
2
|
+
import { FieldError, FieldSize, FieldVariant } from '../FieldShell/index';
|
|
3
|
+
export type { FieldError };
|
|
4
|
+
interface Props {
|
|
5
|
+
variant?: FieldVariant;
|
|
6
|
+
componentSize?: FieldSize;
|
|
7
|
+
fullWidth?: boolean;
|
|
8
|
+
label?: string;
|
|
9
|
+
error?: FieldError;
|
|
10
|
+
startIcon?: ReactNode;
|
|
11
|
+
endIcon?: ReactNode | ReactNode[];
|
|
12
|
+
resize?: 'none' | 'vertical' | 'horizontal' | 'both';
|
|
13
|
+
}
|
|
14
|
+
export declare const Textarea: import("react").ForwardRefExoticComponent<Props & {
|
|
15
|
+
classes?: import("../../../models/UiProps").PropsObject;
|
|
16
|
+
} & TextareaHTMLAttributes<HTMLTextAreaElement> & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
17
|
+
//# sourceMappingURL=Textarea.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/Textarea/Textarea.tsx"],"names":[],"mappings":"AACA,OAAO,EAAiB,SAAS,EAAE,sBAAsB,EAAsB,MAAM,OAAO,CAAC;AAG7F,OAAO,EAAE,UAAU,EAA8B,SAAS,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAOhH,YAAY,EAAE,UAAU,EAAE,CAAC;AAE3B,UAAU,KAAK;IACb,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,YAAY,GAAG,MAAM,CAAC;CACtD;AAYD,eAAO,MAAM,QAAQ;;qGAkGpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/Textarea/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
|
package/index.css
CHANGED
|
@@ -677,7 +677,7 @@
|
|
|
677
677
|
}
|
|
678
678
|
|
|
679
679
|
/*
|
|
680
|
-
* Общая геометрия и состояния полей ввода (Input, Select, MultiSelect,
|
|
680
|
+
* Общая геометрия и состояния полей ввода (Input, Textarea, Select, MultiSelect,
|
|
681
681
|
* DateTime, ColorPicker) по макету «Input and selector Dark Theme».
|
|
682
682
|
*
|
|
683
683
|
* Размеры (small/medium/large/extraLarge): высота 24/28/32/40, иконки 20/20/24/24.
|
|
@@ -721,14 +721,6 @@
|
|
|
721
721
|
--end-icon-edge: 4px;
|
|
722
722
|
}
|
|
723
723
|
|
|
724
|
-
/* Label small из макета: 12/12, без letter-spacing */
|
|
725
|
-
.fieldShell-module__root__A1OLC > .fieldShell-module__label__MW9yk {
|
|
726
|
-
font-size: 12px;
|
|
727
|
-
line-height: 12px;
|
|
728
|
-
color: var(--theme-input-label);
|
|
729
|
-
letter-spacing: normal;
|
|
730
|
-
}
|
|
731
|
-
|
|
732
724
|
.fieldShell-module__label-row__UkRCm {
|
|
733
725
|
display: flex;
|
|
734
726
|
gap: 4px;
|
|
@@ -737,11 +729,16 @@
|
|
|
737
729
|
min-width: 0;
|
|
738
730
|
}
|
|
739
731
|
|
|
732
|
+
/* Label small из макета: 12/12, без letter-spacing. Лейбл лежит внутри .label-row, не прямой ребёнок .root. */
|
|
740
733
|
.fieldShell-module__label-row__UkRCm > .fieldShell-module__label__MW9yk {
|
|
741
734
|
flex: 1;
|
|
742
735
|
min-width: 0;
|
|
743
736
|
overflow: hidden;
|
|
744
737
|
text-overflow: ellipsis;
|
|
738
|
+
font-size: 12px;
|
|
739
|
+
line-height: 12px;
|
|
740
|
+
color: var(--theme-text-secondary);
|
|
741
|
+
letter-spacing: normal;
|
|
745
742
|
white-space: nowrap;
|
|
746
743
|
}
|
|
747
744
|
|
|
@@ -2108,6 +2105,64 @@
|
|
|
2108
2105
|
color: var(--theme-text-secondary);
|
|
2109
2106
|
}
|
|
2110
2107
|
|
|
2108
|
+
div.textarea-module__shell__R6sh7 {
|
|
2109
|
+
height: auto;
|
|
2110
|
+
}
|
|
2111
|
+
|
|
2112
|
+
textarea.textarea-module__textarea__UXOYk {
|
|
2113
|
+
--textarea-pad: 6px;
|
|
2114
|
+
|
|
2115
|
+
box-sizing: border-box;
|
|
2116
|
+
display: block;
|
|
2117
|
+
height: calc(var(--textarea-rows, 4) * 1lh + var(--textarea-pad) * 2);
|
|
2118
|
+
padding-top: var(--textarea-pad);
|
|
2119
|
+
padding-bottom: var(--textarea-pad);
|
|
2120
|
+
margin: 0;
|
|
2121
|
+
overflow: auto;
|
|
2122
|
+
text-overflow: clip;
|
|
2123
|
+
font-family: inherit;
|
|
2124
|
+
overflow-wrap: break-word;
|
|
2125
|
+
white-space: pre-wrap;
|
|
2126
|
+
resize: vertical;
|
|
2127
|
+
}
|
|
2128
|
+
|
|
2129
|
+
:where([data-size='small']) textarea.textarea-module__textarea__UXOYk {
|
|
2130
|
+
--textarea-pad: 4px;
|
|
2131
|
+
}
|
|
2132
|
+
|
|
2133
|
+
:where([data-size='extraLarge']) textarea.textarea-module__textarea__UXOYk {
|
|
2134
|
+
--textarea-pad: 8px;
|
|
2135
|
+
}
|
|
2136
|
+
|
|
2137
|
+
textarea.textarea-module__resize-none__qC18Z {
|
|
2138
|
+
resize: none;
|
|
2139
|
+
}
|
|
2140
|
+
|
|
2141
|
+
textarea.textarea-module__resize-horizontal__cdonZ {
|
|
2142
|
+
resize: horizontal;
|
|
2143
|
+
}
|
|
2144
|
+
|
|
2145
|
+
textarea.textarea-module__resize-both__cAT78 {
|
|
2146
|
+
resize: both;
|
|
2147
|
+
}
|
|
2148
|
+
|
|
2149
|
+
.textarea-module__field-icon__oJCht {
|
|
2150
|
+
cursor: text;
|
|
2151
|
+
}
|
|
2152
|
+
|
|
2153
|
+
span.textarea-module__pin-top__Z1CUC {
|
|
2154
|
+
top: 4px;
|
|
2155
|
+
transform: none;
|
|
2156
|
+
}
|
|
2157
|
+
|
|
2158
|
+
:where([data-size='small']) span.textarea-module__pin-top__Z1CUC {
|
|
2159
|
+
top: 2px;
|
|
2160
|
+
}
|
|
2161
|
+
|
|
2162
|
+
:where([data-size='extraLarge']) span.textarea-module__pin-top__Z1CUC {
|
|
2163
|
+
top: 8px;
|
|
2164
|
+
}
|
|
2165
|
+
|
|
2111
2166
|
.wrapForLabel-module__root__n2E0p {
|
|
2112
2167
|
display: flex;
|
|
2113
2168
|
align-items: center;
|