is-components-zvssf 0.0.1

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Aleksandr Dergunov
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,21 @@
1
+ # ИС
2
+
3
+ Сделать аккаунт на гитхабе.
4
+ Установить:
5
+ git
6
+ github desktop
7
+ vs code
8
+ node.js 24
9
+
10
+ ---
11
+
12
+ Склонировать себе на компьютер репозиторий https://github.com/dergunovs/is
13
+
14
+ ввести в терминале:
15
+ git clone https://github.com/dergunovs/is.git
16
+
17
+ открыть появившуюся папку в vs code
18
+
19
+ открыть терминал в vs code
20
+
21
+ написать в терминале в vs code: npm install
@@ -0,0 +1 @@
1
+ .ui-button[data-v-b1684c2c]{padding:10px 20px;border:none;border-radius:8px;cursor:pointer;font-size:16px;font-family:inherit;transition:background-color .2s;color:#fff}.ui-button[data-layout=primary][data-v-b1684c2c]{background-color:var(--color-primary)}.ui-button[data-layout=primary][data-v-b1684c2c]:hover{background-color:var(--color-primary-hover)}.ui-button[data-layout=secondary][data-v-b1684c2c]{background-color:var(--color-secondary)}.ui-button[data-layout=secondary][data-v-b1684c2c]:hover{background-color:var(--color-secondary-hover)}.ui-button[data-v-b1684c2c]:disabled{cursor:not-allowed;background-color:var(--color-disabled);color:var(--color-disabled-text)}
@@ -0,0 +1,26 @@
1
+ interface IProps {
2
+ layout?: 'primary' | 'secondary';
3
+ isDisabled?: boolean;
4
+ type?: 'submit' | 'button';
5
+ }
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ default?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: HTMLButtonElement;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{}>, {
16
+ layout: "primary" | "secondary";
17
+ isDisabled: boolean;
18
+ type: "submit" | "button";
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
20
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
+ export default _default;
22
+ type __VLS_WithTemplateSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,25 @@
1
+ import "./UiButton.css";
2
+ import { defineComponent as a, createElementBlock as s, openBlock as l, renderSlot as n } from "vue";
3
+ import { _ as d } from "../_plugin-vue_export-helper-CHgC5LLL.js";
4
+ const u = ["type", "disabled", "data-layout"], p = /* @__PURE__ */ a({
5
+ __name: "UiButton",
6
+ props: {
7
+ layout: { default: "primary" },
8
+ isDisabled: { type: Boolean, default: !1 },
9
+ type: { default: "button" }
10
+ },
11
+ setup(e) {
12
+ const t = e;
13
+ return (o, r) => (l(), s("button", {
14
+ class: "ui-button",
15
+ type: t.type,
16
+ disabled: t.isDisabled,
17
+ "data-layout": t.layout
18
+ }, [
19
+ n(o.$slots, "default", {}, void 0, !0)
20
+ ], 8, u));
21
+ }
22
+ }), _ = /* @__PURE__ */ d(p, [["__scopeId", "data-v-b1684c2c"]]);
23
+ export {
24
+ _ as default
25
+ };
@@ -0,0 +1 @@
1
+ .ui-field[data-v-b434ac78]{display:flex;flex-direction:column;gap:8px;width:100%}.ui-field-label[data-v-b434ac78]{font-size:14px;font-weight:500;color:var(--color-text)}
@@ -0,0 +1,20 @@
1
+ interface IProps {
2
+ label: string;
3
+ }
4
+ declare function __VLS_template(): {
5
+ attrs: Partial<{}>;
6
+ slots: {
7
+ default?(_: {}): any;
8
+ };
9
+ refs: {};
10
+ rootEl: HTMLDivElement;
11
+ };
12
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
+ declare const __VLS_component: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
14
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
+ export default _default;
16
+ type __VLS_WithTemplateSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,21 @@
1
+ import "./UiField.css";
2
+ import { defineComponent as l, createElementBlock as i, openBlock as a, createElementVNode as e, toDisplayString as c, renderSlot as n } from "vue";
3
+ import { _ as d } from "../_plugin-vue_export-helper-CHgC5LLL.js";
4
+ const r = { class: "ui-field" }, _ = { class: "ui-field-label" }, p = { class: "ui-field-content" }, f = /* @__PURE__ */ l({
5
+ __name: "UiField",
6
+ props: {
7
+ label: {}
8
+ },
9
+ setup(t) {
10
+ const o = t;
11
+ return (s, m) => (a(), i("div", r, [
12
+ e("label", _, c(o.label), 1),
13
+ e("div", p, [
14
+ n(s.$slots, "default", {}, void 0, !0)
15
+ ])
16
+ ]));
17
+ }
18
+ }), h = /* @__PURE__ */ d(f, [["__scopeId", "data-v-b434ac78"]]);
19
+ export {
20
+ h as default
21
+ };
@@ -0,0 +1 @@
1
+ .ui-input[data-v-7ba9c012]{width:100%;padding:10px 12px;border:1px solid var(--color-border);border-radius:8px;font-size:16px;color:var(--color-text);outline:none;transition:border-color .2s;box-sizing:border-box}.ui-input[data-v-7ba9c012]::placeholder{color:var(--color-disabled-text)}.ui-input[data-v-7ba9c012]:focus{border-color:var(--color-primary)}.ui-input[data-v-7ba9c012]:disabled{background-color:var(--color-disabled);color:var(--color-disabled-text);cursor:not-allowed}
@@ -0,0 +1,15 @@
1
+ interface IProps {
2
+ modelValue?: string;
3
+ isDisabled?: boolean;
4
+ placeholder?: string;
5
+ }
6
+ declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
7
+ "update:modelValue": (value: string) => any;
8
+ }, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{
9
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
10
+ }>, {
11
+ isDisabled: boolean;
12
+ modelValue: string;
13
+ placeholder: string;
14
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLInputElement>;
15
+ export default _default;
@@ -0,0 +1,29 @@
1
+ import "./UiInput.css";
2
+ import { defineComponent as s, createElementBlock as d, openBlock as u } from "vue";
3
+ import { _ as c } from "../_plugin-vue_export-helper-CHgC5LLL.js";
4
+ const i = ["value", "disabled", "placeholder"], r = /* @__PURE__ */ s({
5
+ __name: "UiInput",
6
+ props: {
7
+ modelValue: { default: "" },
8
+ isDisabled: { type: Boolean, default: !1 },
9
+ placeholder: { default: "" }
10
+ },
11
+ emits: ["update:modelValue"],
12
+ setup(l, { emit: o }) {
13
+ const e = l, n = o, p = (t) => {
14
+ const a = t.target;
15
+ n("update:modelValue", a.value);
16
+ };
17
+ return (t, a) => (u(), d("input", {
18
+ class: "ui-input",
19
+ type: "text",
20
+ value: e.modelValue,
21
+ disabled: e.isDisabled,
22
+ placeholder: e.placeholder,
23
+ onInput: p
24
+ }, null, 40, i));
25
+ }
26
+ }), f = /* @__PURE__ */ c(r, [["__scopeId", "data-v-7ba9c012"]]);
27
+ export {
28
+ f as default
29
+ };
@@ -0,0 +1 @@
1
+ @charset "UTF-8";.ui-select-wrapper[data-v-9fa4958c]{position:relative;width:100%}.ui-select[data-v-9fa4958c]{width:100%;padding:10px 12px;border:1px solid var(--color-border);border-radius:8px;font-size:16px;color:var(--color-text);background-color:var(--color-bg);outline:none;cursor:pointer;transition:border-color .2s;appearance:none;background-image:url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c3e50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right 10px center;background-size:16px}.ui-select[data-v-9fa4958c]:focus{border-color:var(--color-primary)}.ui-select[data-v-9fa4958c]:disabled{background-color:var(--color-disabled);color:var(--color-disabled-text);cursor:not-allowed;background-image:url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c0c4cc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e")}
@@ -0,0 +1,15 @@
1
+ interface IProps {
2
+ modelValue?: string;
3
+ options?: string[];
4
+ isDisabled?: boolean;
5
+ }
6
+ declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
7
+ "update:modelValue": (value: string) => any;
8
+ }, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{
9
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
10
+ }>, {
11
+ isDisabled: boolean;
12
+ modelValue: string;
13
+ options: string[];
14
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
15
+ export default _default;
@@ -0,0 +1,34 @@
1
+ import "./UiSelect.css";
2
+ import { defineComponent as r, createElementBlock as a, openBlock as s, createElementVNode as u, Fragment as p, renderList as m, toDisplayString as _ } from "vue";
3
+ import { _ as f } from "../_plugin-vue_export-helper-CHgC5LLL.js";
4
+ const h = { class: "ui-select-wrapper" }, v = ["value", "disabled"], g = ["value"], V = /* @__PURE__ */ r({
5
+ __name: "UiSelect",
6
+ props: {
7
+ modelValue: { default: "" },
8
+ options: { default: () => [] },
9
+ isDisabled: { type: Boolean, default: !1 }
10
+ },
11
+ emits: ["update:modelValue"],
12
+ setup(n, { emit: c }) {
13
+ const e = n, d = c, i = (l) => {
14
+ const o = l.target;
15
+ d("update:modelValue", o.value);
16
+ };
17
+ return (l, o) => (s(), a("div", h, [
18
+ u("select", {
19
+ class: "ui-select",
20
+ value: e.modelValue,
21
+ disabled: e.isDisabled,
22
+ onChange: i
23
+ }, [
24
+ (s(!0), a(p, null, m(e.options, (t) => (s(), a("option", {
25
+ key: t,
26
+ value: t
27
+ }, _(t), 9, g))), 128))
28
+ ], 40, v)
29
+ ]));
30
+ }
31
+ }), x = /* @__PURE__ */ f(V, [["__scopeId", "data-v-9fa4958c"]]);
32
+ export {
33
+ x as default
34
+ };
@@ -0,0 +1,9 @@
1
+ const s = (t, r) => {
2
+ const o = t.__vccOpts || t;
3
+ for (const [c, e] of r)
4
+ o[c] = e;
5
+ return o;
6
+ };
7
+ export {
8
+ s as _
9
+ };
@@ -0,0 +1,4 @@
1
+ export { default as UiButton } from './UiButton/UiButton';
2
+ export { default as UiInput } from './UiInput/UiInput';
3
+ export { default as UiField } from './UiField/UiField';
4
+ export { default as UiSelect } from './UiSelect/UiSelect';
package/dist/index.js ADDED
@@ -0,0 +1,4 @@
1
+ export { default as UiButton } from './UiButton/UiButton.js';
2
+ export { default as UiInput } from './UiInput/UiInput.js';
3
+ export { default as UiField } from './UiField/UiField.js';
4
+ export { default as UiSelect } from './UiSelect/UiSelect.js';
package/package.json ADDED
@@ -0,0 +1,72 @@
1
+ {
2
+ "name": "is-components-zvssf",
3
+ "private": false,
4
+ "version": "0.0.1",
5
+ "type": "module",
6
+ "main": "dist/is-components-new.js",
7
+ "types": "dist/index.d.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "exports": {
12
+ ".": {
13
+ "import": "./dist/is-components-new.js",
14
+ "require": "./dist/is-components-new.umd.cjs"
15
+ },
16
+ "./style.css": "./dist/style.css"
17
+ },
18
+ "scripts": {
19
+ "dev": "storybook dev -p 6006 --no-open",
20
+ "build": "vite build && storybook build",
21
+ "lint": "eslint **/*.{js,ts,vue} && stylelint src/**/*.{scss,vue}",
22
+ "ts": "vue-tsc --noEmit"
23
+ },
24
+ "dependencies": {
25
+ "vue": "3.5.21"
26
+ },
27
+ "devDependencies": {
28
+ "@eslint/js": "9.35.0",
29
+ "@storybook/addon-docs": "9.1.5",
30
+ "@storybook/blocks": "^8.6.14",
31
+ "@storybook/vue3": "9.1.5",
32
+ "@storybook/vue3-vite": "9.1.5",
33
+ "@types/node": "24.3.1",
34
+ "@vitejs/plugin-vue": "6.0.1",
35
+ "eslint": "9.35.0",
36
+ "eslint-config-prettier": "10.1.8",
37
+ "eslint-import-resolver-typescript": "4.4.4",
38
+ "eslint-plugin-import-x": "4.16.1",
39
+ "eslint-plugin-prettier": "5.5.4",
40
+ "eslint-plugin-sonarjs": "3.0.5",
41
+ "eslint-plugin-unicorn": "61.0.2",
42
+ "eslint-plugin-vue": "10.4.0",
43
+ "globals": "16.4.0",
44
+ "postcss-html": "1.8.0",
45
+ "postcss-scss": "4.0.9",
46
+ "prettier": "3.6.2",
47
+ "sass-embedded": "1.92.1",
48
+ "storybook": "9.1.5",
49
+ "stylelint": "16.24.0",
50
+ "stylelint-config-recess-order": "7.3.0",
51
+ "stylelint-config-recommended-scss": "16.0.0",
52
+ "stylelint-config-recommended-vue": "1.6.1",
53
+ "stylelint-order": "7.0.0",
54
+ "stylelint-prettier": "5.0.3",
55
+ "typescript": "5.9.2",
56
+ "typescript-eslint": "8.43.0",
57
+ "vite": "7.1.5",
58
+ "vite-plugin-dts": "4.5.4",
59
+ "vite-plugin-static-copy": "3.1.4",
60
+ "vite-svg-loader": "5.1.0",
61
+ "vue-eslint-parser": "10.2.0",
62
+ "vue-linters-config": "0.5.4",
63
+ "vue-tsc": "3.0.6"
64
+ },
65
+ "peerDependencies": {
66
+ "vue": "3.5.21"
67
+ },
68
+ "engines": {
69
+ "npm": "11",
70
+ "node": "24"
71
+ }
72
+ }