mhz-ui 1.1.46 → 1.1.47
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/UiTextarea/UiTextarea.css +1 -0
- package/dist/UiTextarea/UiTextarea.d.ts +10 -0
- package/dist/UiTextarea/UiTextarea.js +32 -0
- package/dist/UiTextarea/UiTextarea.spec.d.ts +1 -0
- package/dist/UiTextarea/UiTextarea.stories.d.ts +6 -0
- package/dist/UiTextarea/constants/index.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._textarea_bbdyb_1{width:100%;padding:16px;font-size:1rem;resize:none;outline:none;border:1px solid var(--color-gray);border-radius:16px}._textarea_bbdyb_1:hover{border:1px solid var(--color-gray-dark-extra)}._textarea_bbdyb_1:focus{border:1px solid var(--color-primary)}._textarea_bbdyb_1:disabled{color:var(--color-gray-dark-extra);background:var(--color-gray-light-extra);border-color:var(--color-transparent)}._textarea_bbdyb_1::placeholder{color:var(--color-gray-dark-extra)}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface IProps {
|
|
2
|
+
modelValue?: string;
|
|
3
|
+
isDisabled?: boolean;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
"update:modelValue": (value: string) => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{
|
|
8
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLTextAreaElement>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import "./UiTextarea.css";
|
|
2
|
+
import { defineComponent as d, createElementBlock as i, openBlock as u, normalizeClass as m } from "vue";
|
|
3
|
+
import { _ as p } from "../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
const c = ["value", "disabled"], _ = /* @__PURE__ */ d({
|
|
5
|
+
__name: "UiTextarea",
|
|
6
|
+
props: {
|
|
7
|
+
modelValue: {},
|
|
8
|
+
isDisabled: { type: Boolean }
|
|
9
|
+
},
|
|
10
|
+
emits: ["update:modelValue"],
|
|
11
|
+
setup(s, { emit: o }) {
|
|
12
|
+
const t = s, l = o;
|
|
13
|
+
function n(e) {
|
|
14
|
+
l("update:modelValue", e.value);
|
|
15
|
+
}
|
|
16
|
+
return (e, a) => (u(), i("textarea", {
|
|
17
|
+
value: t.modelValue,
|
|
18
|
+
onInput: a[0] || (a[0] = (r) => n(r.target)),
|
|
19
|
+
disabled: t.isDisabled,
|
|
20
|
+
class: m(e.$style.textarea),
|
|
21
|
+
rows: "5",
|
|
22
|
+
"aria-label": "textarea"
|
|
23
|
+
}, null, 42, c));
|
|
24
|
+
}
|
|
25
|
+
}), x = "_textarea_bbdyb_1", b = {
|
|
26
|
+
textarea: x
|
|
27
|
+
}, f = {
|
|
28
|
+
$style: b
|
|
29
|
+
}, v = /* @__PURE__ */ p(_, [["__cssModules", f]]);
|
|
30
|
+
export {
|
|
31
|
+
v as default
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MODEL_VALUE = "Text example";
|
package/dist/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export { default as UiSelect } from './UiSelect/UiSelect';
|
|
|
17
17
|
export { default as UiSpoiler } from './UiSpoiler/UiSpoiler';
|
|
18
18
|
export { default as UiSlider } from './UiSlider/UiSlider';
|
|
19
19
|
export { default as UiTable } from './UiTable/UiTable';
|
|
20
|
+
export { default as UiTextarea } from './UiTextarea/UiTextarea';
|
|
20
21
|
export { default as UiUpload } from './UiUpload/UiUpload';
|
|
21
22
|
export { default as toast } from './toast/toast';
|
|
22
23
|
export { uiStubs } from './stubs/stubs';
|
package/dist/index.js
CHANGED
|
@@ -17,6 +17,7 @@ export { default as UiSelect } from './UiSelect/UiSelect.js';
|
|
|
17
17
|
export { default as UiSpoiler } from './UiSpoiler/UiSpoiler.js';
|
|
18
18
|
export { default as UiSlider } from './UiSlider/UiSlider.js';
|
|
19
19
|
export { default as UiTable } from './UiTable/UiTable.js';
|
|
20
|
+
export { default as UiTextarea } from './UiTextarea/UiTextarea.js';
|
|
20
21
|
export { default as UiUpload } from './UiUpload/UiUpload.js';
|
|
21
22
|
export { default as toast } from './toast/toast.js';
|
|
22
23
|
export { uiStubs } from './stubs/stubs.js';
|