nntc-ui 0.2.21 → 0.2.22
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 +59 -1
- 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.
|
|
@@ -2108,6 +2108,64 @@
|
|
|
2108
2108
|
color: var(--theme-text-secondary);
|
|
2109
2109
|
}
|
|
2110
2110
|
|
|
2111
|
+
div.textarea-module__shell__R6sh7 {
|
|
2112
|
+
height: auto;
|
|
2113
|
+
}
|
|
2114
|
+
|
|
2115
|
+
textarea.textarea-module__textarea__UXOYk {
|
|
2116
|
+
--textarea-pad: 6px;
|
|
2117
|
+
|
|
2118
|
+
box-sizing: border-box;
|
|
2119
|
+
display: block;
|
|
2120
|
+
height: calc(var(--textarea-rows, 4) * 1lh + var(--textarea-pad) * 2);
|
|
2121
|
+
padding-top: var(--textarea-pad);
|
|
2122
|
+
padding-bottom: var(--textarea-pad);
|
|
2123
|
+
margin: 0;
|
|
2124
|
+
overflow: auto;
|
|
2125
|
+
text-overflow: clip;
|
|
2126
|
+
font-family: inherit;
|
|
2127
|
+
overflow-wrap: break-word;
|
|
2128
|
+
white-space: pre-wrap;
|
|
2129
|
+
resize: vertical;
|
|
2130
|
+
}
|
|
2131
|
+
|
|
2132
|
+
:where([data-size='small']) textarea.textarea-module__textarea__UXOYk {
|
|
2133
|
+
--textarea-pad: 4px;
|
|
2134
|
+
}
|
|
2135
|
+
|
|
2136
|
+
:where([data-size='extraLarge']) textarea.textarea-module__textarea__UXOYk {
|
|
2137
|
+
--textarea-pad: 8px;
|
|
2138
|
+
}
|
|
2139
|
+
|
|
2140
|
+
textarea.textarea-module__resize-none__qC18Z {
|
|
2141
|
+
resize: none;
|
|
2142
|
+
}
|
|
2143
|
+
|
|
2144
|
+
textarea.textarea-module__resize-horizontal__cdonZ {
|
|
2145
|
+
resize: horizontal;
|
|
2146
|
+
}
|
|
2147
|
+
|
|
2148
|
+
textarea.textarea-module__resize-both__cAT78 {
|
|
2149
|
+
resize: both;
|
|
2150
|
+
}
|
|
2151
|
+
|
|
2152
|
+
.textarea-module__field-icon__oJCht {
|
|
2153
|
+
cursor: text;
|
|
2154
|
+
}
|
|
2155
|
+
|
|
2156
|
+
span.textarea-module__pin-top__Z1CUC {
|
|
2157
|
+
top: 4px;
|
|
2158
|
+
transform: none;
|
|
2159
|
+
}
|
|
2160
|
+
|
|
2161
|
+
:where([data-size='small']) span.textarea-module__pin-top__Z1CUC {
|
|
2162
|
+
top: 2px;
|
|
2163
|
+
}
|
|
2164
|
+
|
|
2165
|
+
:where([data-size='extraLarge']) span.textarea-module__pin-top__Z1CUC {
|
|
2166
|
+
top: 8px;
|
|
2167
|
+
}
|
|
2168
|
+
|
|
2111
2169
|
.wrapForLabel-module__root__n2E0p {
|
|
2112
2170
|
display: flex;
|
|
2113
2171
|
align-items: center;
|