@danilovd/is-ui 0.0.6
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 +21 -0
- package/README.md +21 -0
- package/dist/UiButton/UiButton.css +1 -0
- package/dist/UiButton/UiButton.d.ts +25 -0
- package/dist/UiButton/UiButton.js +29 -0
- package/dist/UiField/UiField.css +1 -0
- package/dist/UiField/UiField.d.ts +20 -0
- package/dist/UiField/UiField.js +28 -0
- package/dist/UiInput/UiInput.css +1 -0
- package/dist/UiInput/UiInput.d.ts +11 -0
- package/dist/UiInput/UiInput.js +29 -0
- package/dist/UiSelect/UiSelect.css +1 -0
- package/dist/UiSelect/UiSelect.d.ts +13 -0
- package/dist/UiSelect/UiSelect.js +33 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/colors.scss +15 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.ts +8 -0
- package/package.json +76 -0
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
|
+
._button_34ai2_1{display:inline-flex;align-items:center;justify-content:center;padding:12px 24px;font-size:1rem;font-weight:600;border-radius:12px;cursor:pointer;border:2px solid transparent;transition:background-color .25s ease,border-color .25s ease,transform .12s ease,box-shadow .12s ease}._button_34ai2_1:active:not(:disabled){transform:scale(.96);box-shadow:0 0 0 2px var(--color-primary-light)}._button_34ai2_1[data-layout=primary]{background:var(--color-primary);color:var(--color-white)}._button_34ai2_1[data-layout=secondary]{background:var(--color-white);color:var(--color-primary);border-color:var(--color-primary)}._button_34ai2_1:disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
interface IProps {
|
|
2
|
+
layout?: 'primary' | 'secondary';
|
|
3
|
+
type?: 'submit' | 'button';
|
|
4
|
+
isDisabled?: boolean;
|
|
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
|
+
type: "submit" | "button";
|
|
18
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
19
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import "./UiButton.css";
|
|
2
|
+
import { defineComponent as s, createElementBlock as a, openBlock as n, normalizeClass as l, renderSlot as u } from "vue";
|
|
3
|
+
import { _ as r } from "../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
const d = ["data-layout", "disabled", "type"], p = /* @__PURE__ */ s({
|
|
5
|
+
__name: "UiButton",
|
|
6
|
+
props: {
|
|
7
|
+
layout: { default: "primary" },
|
|
8
|
+
type: { default: "button" },
|
|
9
|
+
isDisabled: { type: Boolean }
|
|
10
|
+
},
|
|
11
|
+
setup(e) {
|
|
12
|
+
const t = e;
|
|
13
|
+
return (o, y) => (n(), a("button", {
|
|
14
|
+
class: l(o.$style.button),
|
|
15
|
+
"data-layout": t.layout,
|
|
16
|
+
disabled: t.isDisabled,
|
|
17
|
+
type: t.type
|
|
18
|
+
}, [
|
|
19
|
+
u(o.$slots, "default")
|
|
20
|
+
], 10, d));
|
|
21
|
+
}
|
|
22
|
+
}), c = "_button_34ai2_1", i = {
|
|
23
|
+
button: c
|
|
24
|
+
}, _ = {
|
|
25
|
+
$style: i
|
|
26
|
+
}, f = /* @__PURE__ */ r(p, [["__cssModules", _]]);
|
|
27
|
+
export {
|
|
28
|
+
f as default
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._field_1f64k_1{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}._label_1f64k_8{font-size:.875rem;font-weight:500;color:var(--color-primary-dark)}
|
|
@@ -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: HTMLLabelElement;
|
|
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, {}, HTMLLabelElement>;
|
|
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,28 @@
|
|
|
1
|
+
import "./UiField.css";
|
|
2
|
+
import { defineComponent as t, createElementBlock as a, openBlock as n, normalizeClass as l, createElementVNode as r, renderSlot as c, toDisplayString as i } from "vue";
|
|
3
|
+
import { _ } from "../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
const d = /* @__PURE__ */ t({
|
|
5
|
+
__name: "UiField",
|
|
6
|
+
props: {
|
|
7
|
+
label: {}
|
|
8
|
+
},
|
|
9
|
+
setup(s) {
|
|
10
|
+
const o = s;
|
|
11
|
+
return (e, u) => (n(), a("label", {
|
|
12
|
+
class: l(e.$style.field)
|
|
13
|
+
}, [
|
|
14
|
+
r("span", {
|
|
15
|
+
class: l(e.$style.label)
|
|
16
|
+
}, i(o.label), 3),
|
|
17
|
+
c(e.$slots, "default")
|
|
18
|
+
], 2));
|
|
19
|
+
}
|
|
20
|
+
}), f = "_field_1f64k_1", p = "_label_1f64k_8", m = {
|
|
21
|
+
field: f,
|
|
22
|
+
label: p
|
|
23
|
+
}, b = {
|
|
24
|
+
$style: m
|
|
25
|
+
}, $ = /* @__PURE__ */ _(d, [["__cssModules", b]]);
|
|
26
|
+
export {
|
|
27
|
+
$ as default
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._input_iq7a6_1{width:100%;padding:10px 16px;font-size:1rem;border:2px solid var(--color-primary-light);border-radius:8px;background-color:var(--color-white);color:var(--color-black);transition:border-color .3s ease}._input_iq7a6_1:focus{outline:none;border-color:var(--color-primary)}._input_iq7a6_1:disabled{background-color:var(--color-gray-light);cursor:not-allowed}
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLInputElement>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import "./UiInput.css";
|
|
2
|
+
import { defineComponent as a, createElementBlock as n, openBlock as p, normalizeClass as u } from "vue";
|
|
3
|
+
import { _ as i } from "../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
const d = ["placeholder", "disabled", "value"], r = /* @__PURE__ */ a({
|
|
5
|
+
__name: "UiInput",
|
|
6
|
+
props: {
|
|
7
|
+
modelValue: {},
|
|
8
|
+
isDisabled: { type: Boolean },
|
|
9
|
+
placeholder: {}
|
|
10
|
+
},
|
|
11
|
+
emits: ["update:modelValue"],
|
|
12
|
+
setup(o) {
|
|
13
|
+
const e = o;
|
|
14
|
+
return (l, t) => (p(), n("input", {
|
|
15
|
+
class: u(l.$style.input),
|
|
16
|
+
placeholder: e.placeholder,
|
|
17
|
+
disabled: e.isDisabled,
|
|
18
|
+
value: e.modelValue,
|
|
19
|
+
onInput: t[0] || (t[0] = (s) => l.$emit("update:modelValue", s.target.value))
|
|
20
|
+
}, null, 42, d));
|
|
21
|
+
}
|
|
22
|
+
}), c = "_input_iq7a6_1", m = {
|
|
23
|
+
input: c
|
|
24
|
+
}, _ = {
|
|
25
|
+
$style: m
|
|
26
|
+
}, h = /* @__PURE__ */ i(r, [["__cssModules", _]]);
|
|
27
|
+
export {
|
|
28
|
+
h as default
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._select_hsutp_1{width:100%;padding:10px 16px;font-size:1rem;border:2px solid var(--color-primary-light);border-radius:8px;background:var(--color-white);transition:.25s ease}._select_hsutp_1:focus{outline:none;border-color:var(--color-primary)}._select_hsutp_1:disabled{background:var(--color-gray-light);cursor:not-allowed}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface IProps {
|
|
2
|
+
modelValue: string;
|
|
3
|
+
isDisabled?: boolean;
|
|
4
|
+
options: 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
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSelectElement>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import "./UiSelect.css";
|
|
2
|
+
import { defineComponent as r, createElementBlock as t, openBlock as l, normalizeClass as u, Fragment as i, renderList as c, toDisplayString as d } from "vue";
|
|
3
|
+
import { _ as p } from "../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
const m = ["disabled", "value"], _ = ["value"], f = /* @__PURE__ */ r({
|
|
5
|
+
__name: "UiSelect",
|
|
6
|
+
props: {
|
|
7
|
+
modelValue: {},
|
|
8
|
+
isDisabled: { type: Boolean, default: !1 },
|
|
9
|
+
options: {}
|
|
10
|
+
},
|
|
11
|
+
emits: ["update:modelValue"],
|
|
12
|
+
setup(n) {
|
|
13
|
+
const s = n;
|
|
14
|
+
return (o, a) => (l(), t("select", {
|
|
15
|
+
class: u(o.$style.select),
|
|
16
|
+
disabled: s.isDisabled,
|
|
17
|
+
value: s.modelValue,
|
|
18
|
+
onChange: a[0] || (a[0] = (e) => o.$emit("update:modelValue", e.target.value))
|
|
19
|
+
}, [
|
|
20
|
+
(l(!0), t(i, null, c(s.options, (e) => (l(), t("option", {
|
|
21
|
+
key: e,
|
|
22
|
+
value: e
|
|
23
|
+
}, d(e), 9, _))), 128))
|
|
24
|
+
], 42, m));
|
|
25
|
+
}
|
|
26
|
+
}), y = "_select_hsutp_1", v = {
|
|
27
|
+
select: y
|
|
28
|
+
}, b = {
|
|
29
|
+
$style: v
|
|
30
|
+
}, h = /* @__PURE__ */ p(f, [["__cssModules", b]]);
|
|
31
|
+
export {
|
|
32
|
+
h as default
|
|
33
|
+
};
|
package/dist/colors.scss
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--color-primary: #7c3aed;
|
|
3
|
+
--color-primary-light: #a78bfa;
|
|
4
|
+
--color-primary-dark: #5b21b6;
|
|
5
|
+
|
|
6
|
+
--color-white: #ffffff;
|
|
7
|
+
--color-black: #000000;
|
|
8
|
+
|
|
9
|
+
--color-gray-light: #f3f4f6;
|
|
10
|
+
--color-gray: #d1d5db;
|
|
11
|
+
--color-gray-dark: #6b7280;
|
|
12
|
+
|
|
13
|
+
--color-success: #10b981;
|
|
14
|
+
--color-error: #ef4444;
|
|
15
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import './styles/colors.scss'
|
|
2
|
+
import './styles/main.scss';
|
|
3
|
+
|
|
4
|
+
export { default as UiButton } from './UiButton/UiButton';
|
|
5
|
+
export { default as UiInput } from './UiInput/UiInput';
|
|
6
|
+
export { default as UiSelect } from './UiSelect/UiSelect';
|
|
7
|
+
export { default as UiField } from './UiField/UiField';
|
|
8
|
+
|
package/dist/index.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import './styles/colors.scss'
|
|
2
|
+
import './styles/main.scss';
|
|
3
|
+
|
|
4
|
+
export { default as UiButton } from './UiButton/UiButton.vue';
|
|
5
|
+
export { default as UiInput } from './UiInput/UiInput.vue';
|
|
6
|
+
export { default as UiSelect } from './UiSelect/UiSelect.vue';
|
|
7
|
+
export { default as UiField } from './UiField/UiField.vue';
|
|
8
|
+
|
package/package.json
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@danilovd/is-ui",
|
|
3
|
+
"description": "Is components",
|
|
4
|
+
"version": "0.0.6",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "dist/index.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"types": "./dist/index.d.ts"
|
|
13
|
+
},
|
|
14
|
+
"./dist/style.css": "./dist/style.css"
|
|
15
|
+
},
|
|
16
|
+
"sideEffects": false,
|
|
17
|
+
"files": [
|
|
18
|
+
"dist/*",
|
|
19
|
+
"./dist/style.css"
|
|
20
|
+
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"dev": "storybook dev -p 6006 --no-open",
|
|
23
|
+
"build": "vite build && storybook build",
|
|
24
|
+
"lint": "eslint **/*.{js,ts,vue} && stylelint src/**/*.{scss,vue}",
|
|
25
|
+
"ts": "vue-tsc --noEmit",
|
|
26
|
+
"storybook": "storybook dev -p 6006",
|
|
27
|
+
"build-storybook": "storybook build"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"vue": "3.5.21"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@eslint/js": "9.35.0",
|
|
34
|
+
"@storybook/addon-docs": "9.1.5",
|
|
35
|
+
"@storybook/vue3": "9.1.5",
|
|
36
|
+
"@storybook/vue3-vite": "9.1.5",
|
|
37
|
+
"@types/node": "24.3.1",
|
|
38
|
+
"@vitejs/plugin-vue": "6.0.1",
|
|
39
|
+
"eslint": "9.35.0",
|
|
40
|
+
"eslint-config-prettier": "10.1.8",
|
|
41
|
+
"eslint-import-resolver-typescript": "4.4.4",
|
|
42
|
+
"eslint-plugin-import-x": "4.16.1",
|
|
43
|
+
"eslint-plugin-prettier": "5.5.4",
|
|
44
|
+
"eslint-plugin-sonarjs": "3.0.5",
|
|
45
|
+
"eslint-plugin-unicorn": "61.0.2",
|
|
46
|
+
"eslint-plugin-vue": "10.4.0",
|
|
47
|
+
"globals": "16.4.0",
|
|
48
|
+
"postcss-html": "1.8.0",
|
|
49
|
+
"postcss-scss": "4.0.9",
|
|
50
|
+
"prettier": "3.6.2",
|
|
51
|
+
"sass-embedded": "1.92.1",
|
|
52
|
+
"storybook": "9.1.5",
|
|
53
|
+
"stylelint": "16.24.0",
|
|
54
|
+
"stylelint-config-recess-order": "7.3.0",
|
|
55
|
+
"stylelint-config-recommended-scss": "16.0.0",
|
|
56
|
+
"stylelint-config-recommended-vue": "1.6.1",
|
|
57
|
+
"stylelint-order": "7.0.0",
|
|
58
|
+
"stylelint-prettier": "5.0.3",
|
|
59
|
+
"typescript": "5.9.2",
|
|
60
|
+
"typescript-eslint": "8.43.0",
|
|
61
|
+
"vite": "7.1.5",
|
|
62
|
+
"vite-plugin-dts": "4.5.4",
|
|
63
|
+
"vite-plugin-static-copy": "3.1.4",
|
|
64
|
+
"vite-svg-loader": "5.1.0",
|
|
65
|
+
"vue-eslint-parser": "10.2.0",
|
|
66
|
+
"vue-linters-config": "0.5.4",
|
|
67
|
+
"vue-tsc": "3.0.6"
|
|
68
|
+
},
|
|
69
|
+
"peerDependencies": {
|
|
70
|
+
"vue": "3.5.21"
|
|
71
|
+
},
|
|
72
|
+
"engines": {
|
|
73
|
+
"npm": "11",
|
|
74
|
+
"node": "24"
|
|
75
|
+
}
|
|
76
|
+
}
|