kilya-ui 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/README.md ADDED
@@ -0,0 +1,73 @@
1
+ # React + TypeScript + Vite
2
+
3
+ This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
+
5
+ Currently, two official plugins are available:
6
+
7
+ - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh
8
+ - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9
+
10
+ ## React Compiler
11
+
12
+ The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
13
+
14
+ ## Expanding the ESLint configuration
15
+
16
+ If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
17
+
18
+ ```js
19
+ export default defineConfig([
20
+ globalIgnores(['dist']),
21
+ {
22
+ files: ['**/*.{ts,tsx}'],
23
+ extends: [
24
+ // Other configs...
25
+
26
+ // Remove tseslint.configs.recommended and replace with this
27
+ tseslint.configs.recommendedTypeChecked,
28
+ // Alternatively, use this for stricter rules
29
+ tseslint.configs.strictTypeChecked,
30
+ // Optionally, add this for stylistic rules
31
+ tseslint.configs.stylisticTypeChecked,
32
+
33
+ // Other configs...
34
+ ],
35
+ languageOptions: {
36
+ parserOptions: {
37
+ project: ['./tsconfig.node.json', './tsconfig.app.json'],
38
+ tsconfigRootDir: import.meta.dirname,
39
+ },
40
+ // other options...
41
+ },
42
+ },
43
+ ])
44
+ ```
45
+
46
+ You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
47
+
48
+ ```js
49
+ // eslint.config.js
50
+ import reactX from 'eslint-plugin-react-x'
51
+ import reactDom from 'eslint-plugin-react-dom'
52
+
53
+ export default defineConfig([
54
+ globalIgnores(['dist']),
55
+ {
56
+ files: ['**/*.{ts,tsx}'],
57
+ extends: [
58
+ // Other configs...
59
+ // Enable lint rules for React
60
+ reactX.configs['recommended-typescript'],
61
+ // Enable lint rules for React DOM
62
+ reactDom.configs.recommended,
63
+ ],
64
+ languageOptions: {
65
+ parserOptions: {
66
+ project: ['./tsconfig.node.json', './tsconfig.app.json'],
67
+ tsconfigRootDir: import.meta.dirname,
68
+ },
69
+ // other options...
70
+ },
71
+ },
72
+ ])
73
+ ```
@@ -0,0 +1 @@
1
+ ._button-white_hbhwm_1 path[fill],._button-reset_hbhwm_1 path[fill],._button-link_hbhwm_1 path[fill],._button-border_hbhwm_1 path[fill],._button-default_hbhwm_1 path[fill],._button-white_hbhwm_1 rect[fill],._button-reset_hbhwm_1 rect[fill],._button-link_hbhwm_1 rect[fill],._button-border_hbhwm_1 rect[fill],._button-default_hbhwm_1 rect[fill],._button-white_hbhwm_1 circle[fill],._button-reset_hbhwm_1 circle[fill],._button-link_hbhwm_1 circle[fill],._button-border_hbhwm_1 circle[fill],._button-default_hbhwm_1 circle[fill]{fill:currentColor;transition:.2s fill}._button-white_hbhwm_1 path[stroke],._button-reset_hbhwm_1 path[stroke],._button-link_hbhwm_1 path[stroke],._button-border_hbhwm_1 path[stroke],._button-default_hbhwm_1 path[stroke],._button-white_hbhwm_1 rect[stroke],._button-reset_hbhwm_1 rect[stroke],._button-link_hbhwm_1 rect[stroke],._button-border_hbhwm_1 rect[stroke],._button-default_hbhwm_1 rect[stroke],._button-white_hbhwm_1 circle[stroke],._button-reset_hbhwm_1 circle[stroke],._button-link_hbhwm_1 circle[stroke],._button-border_hbhwm_1 circle[stroke],._button-default_hbhwm_1 circle[stroke]{stroke:currentColor;transition:.2s stroke}._button-white_hbhwm_1 svg,._button-reset_hbhwm_1 svg,._button-link_hbhwm_1 svg,._button-border_hbhwm_1 svg,._button-default_hbhwm_1 svg{max-width:100%;width:100%;height:100%;object-fit:contain}._button-white_hbhwm_1,._button-reset_hbhwm_1,._button-link_hbhwm_1,._button-border_hbhwm_1,._button-default_hbhwm_1{font-style:normal;line-height:1.5;width:fit-content;background-color:transparent;border:.0625rem solid transparent;padding:0;cursor:pointer;-webkit-user-select:none;user-select:none;transition:.2s color,.2s background-color,.2s border-color}._button-white_hbhwm_1:focus-visible,._button-reset_hbhwm_1:focus-visible,._button-link_hbhwm_1:focus-visible,._button-border_hbhwm_1:focus-visible,._button-default_hbhwm_1:focus-visible{outline:none}._button-white_hbhwm_1:disabled,._button-reset_hbhwm_1:disabled,._button-link_hbhwm_1:disabled,._button-border_hbhwm_1:disabled,._button-default_hbhwm_1:disabled{background-color:var(--disabled-bg-primary, #ddd);color:var(--disabled-color-white, #818181);border-color:var(--disabled-br-default, #ddd);pointer-events:none}._button-white_hbhwm_1,._button-border_hbhwm_1,._button-default_hbhwm_1{font-family:var(--button-font-family);font-size:var(--button-font-size);font-weight:var(--button-font-weight);text-align:center;display:flex;align-items:center;justify-content:center;gap:.625rem}._button-white_hbhwm_1,._button-border_hbhwm_1,._button-default_hbhwm_1{background-color:var(--background-color);color:var(--color);border-color:var(--border-color);border-radius:var(--border-radius);padding:.5rem 1rem}@media(hover:hover){._button-white_hbhwm_1:hover,._button-border_hbhwm_1:hover,._button-default_hbhwm_1:hover{background-color:var(--hover-background-color);color:var(--hover-color);border-color:var(--hover-border-color)}}@media(hover:none){._button-white_hbhwm_1:active,._button-border_hbhwm_1:active,._button-default_hbhwm_1:active{background-color:var(--hover-background-color);color:var(--hover-color);border-color:var(--hover-border-color)}}._button-white_hbhwm_1:active,._button-border_hbhwm_1:active,._button-default_hbhwm_1:active{background-color:var(--pressed-background-color);color:var(--pressed-color);border-color:var(--pressed-border-color)}._button-default_hbhwm_1{--background-color: var(--bg-primary, #1677ff);--color: var(--color-white, #fff);--border-color: var(--bg-primary, #1677ff);--border-radius: var(--button-br-small);--hover-background-color: var(--hover-bg-primary, #4096ff);--hover-color: var(--color-white, #fff);--hover-border-color: var(--hover-bg-primary, #4096ff);--pressed-background-color: var(--pressed-bg-primary, #0958d9);--pressed-color: var(--color-white, #fff);--pressed-border-color: var(--pressed-bg-primary, #0958d9)}._button-border_hbhwm_1{--background-color: transparent;--color: var(--color-text, #000);--border-color: var(--bg-primary, #1677ff);--border-radius: var(--button-br-small);--hover-background-color: var(--hover-bg-primary, #4096ff);--hover-color: var(--color-white, #fff);--hover-border-color: var(--hover-bg-primary, #4096ff);--pressed-background-color: var(--pressed-bg-primary, #0958d9);--pressed-color: var(--color-white, #fff);--pressed-border-color: var(--pressed-bg-primary, #0958d9)}._button-link_hbhwm_1{--color: var(--color-link, #1677ff);--hover-color: var(--hover-color-link, #4096ff);--pressed-color: var(--pressed-color-link, #0958d9);color:var(--color);border:none;border-radius:0}@media(hover:hover){._button-link_hbhwm_1:hover{color:var(--hover-color)}}@media(hover:none){._button-link_hbhwm_1:active{color:var(--hover-color)}}._button-link_hbhwm_1:active{color:var(--pressed-color)}._button-white_hbhwm_1{--background-color: var(--bg-white, #fff);--color: var(--color-text, #000);--border-color: var(--bg-white, #fff);--border-radius: var(--button-br-small);--hover-background-color: var(--hover-bg-primary, #4096ff);--hover-color: var(--color-white, #fff);--hover-border-color: var(--hover-bg-primary, #4096ff);--pressed-background-color: var(--pressed-bg-primary, #0958d9);--pressed-color: var(--color-white, #fff);--pressed-border-color: var(--pressed-bg-primary, #0958d9)}._button-close_cfuu0_1 path[fill],._button-close_cfuu0_1 rect[fill],._button-close_cfuu0_1 circle[fill]{fill:currentColor;transition:.2s fill}._button-close_cfuu0_1 path[stroke],._button-close_cfuu0_1 rect[stroke],._button-close_cfuu0_1 circle[stroke]{stroke:currentColor;transition:.2s stroke}._button-close_cfuu0_1 svg{max-width:100%;width:100%;height:100%;object-fit:contain}._button-close_cfuu0_1{font-style:normal;line-height:1.5;width:fit-content;background-color:transparent;border:.0625rem solid transparent;padding:0;cursor:pointer;-webkit-user-select:none;user-select:none;transition:.2s color,.2s background-color,.2s border-color}._button-close_cfuu0_1:focus-visible{outline:none}._button-close_cfuu0_1:disabled{background-color:var(--disabled-bg-primary, #ddd);color:var(--disabled-color-white, #818181);border-color:var(--disabled-br-default, #ddd);pointer-events:none}._button-close_cfuu0_1{--ava: 1.875rem;max-width:var(--ava);min-width:var(--ava);width:var(--ava);height:var(--ava);max-height:var(--ava);font-size:0;position:relative;border-radius:.25rem;color:var(--button-color-close)}@media(hover:hover){._button-close_cfuu0_1:hover{color:var(--button-hover-color-close)}}@media(hover:none){._button-close_cfuu0_1:active{color:var(--button-hover-color-close)}}._button-close_cfuu0_1:before{content:"";height:100dvh;position:fixed;left:50%;top:50%;translate:-50% -50%;width:100vw;z-index:-1}._button-close_cfuu0_1 path{stroke:currentColor;stroke-width:.125rem}._input-button_zw44s_1 path[fill],._input-submit_zw44s_1 path[fill],._input-reset_zw44s_1 path[fill],._input-button_zw44s_1 rect[fill],._input-submit_zw44s_1 rect[fill],._input-reset_zw44s_1 rect[fill],._input-button_zw44s_1 circle[fill],._input-submit_zw44s_1 circle[fill],._input-reset_zw44s_1 circle[fill]{fill:currentColor;transition:.2s fill}._input-button_zw44s_1 path[stroke],._input-submit_zw44s_1 path[stroke],._input-reset_zw44s_1 path[stroke],._input-button_zw44s_1 rect[stroke],._input-submit_zw44s_1 rect[stroke],._input-reset_zw44s_1 rect[stroke],._input-button_zw44s_1 circle[stroke],._input-submit_zw44s_1 circle[stroke],._input-reset_zw44s_1 circle[stroke]{stroke:currentColor;transition:.2s stroke}._input-button_zw44s_1 svg,._input-submit_zw44s_1 svg,._input-reset_zw44s_1 svg{max-width:100%;width:100%;height:100%;object-fit:contain}._input-button_zw44s_1,._input-submit_zw44s_1,._input-reset_zw44s_1{font-style:normal;line-height:1.5;width:fit-content;background-color:transparent;border:.0625rem solid transparent;padding:0;cursor:pointer;-webkit-user-select:none;user-select:none;transition:.2s color,.2s background-color,.2s border-color}._input-button_zw44s_1:focus-visible,._input-submit_zw44s_1:focus-visible,._input-reset_zw44s_1:focus-visible{outline:none}._input-button_zw44s_1:disabled,._input-submit_zw44s_1:disabled,._input-reset_zw44s_1:disabled{background-color:var(--disabled-bg-primary, #ddd);color:var(--disabled-color-white, #818181);border-color:var(--disabled-br-default, #ddd);pointer-events:none}._input-button_zw44s_1,._input-submit_zw44s_1,._input-reset_zw44s_1{font-family:var(--button-font-family);font-size:var(--button-font-size);font-weight:var(--button-font-weight);text-align:center;display:flex;align-items:center;justify-content:center;gap:.625rem}._input-button_zw44s_1,._input-submit_zw44s_1,._input-reset_zw44s_1{background-color:var(--background-color);color:var(--color);border-color:var(--border-color);border-radius:var(--border-radius);padding:.5rem 1rem}@media(hover:hover){._input-button_zw44s_1:hover,._input-submit_zw44s_1:hover,._input-reset_zw44s_1:hover{background-color:var(--hover-background-color);color:var(--hover-color);border-color:var(--hover-border-color)}}@media(hover:none){._input-button_zw44s_1:active,._input-submit_zw44s_1:active,._input-reset_zw44s_1:active{background-color:var(--hover-background-color);color:var(--hover-color);border-color:var(--hover-border-color)}}._input-button_zw44s_1:active,._input-submit_zw44s_1:active,._input-reset_zw44s_1:active{background-color:var(--pressed-background-color);color:var(--pressed-color);border-color:var(--pressed-border-color)}._input-button_zw44s_1,._input-submit_zw44s_1,._input-reset_zw44s_1{--background-color: var(--bg-primary, #1677ff);--color: var(--color-white, #fff);--border-color: var(--bg-primary, #1677ff);--border-radius: var(--button-br-small);--hover-background-color: var(--hover-bg-primary, #4096ff);--hover-color: var(--color-white, #fff);--hover-border-color: var(--hover-bg-primary, #4096ff);--pressed-background-color: var(--pressed-bg-primary, #0958d9);--pressed-color: var(--color-white, #fff);--pressed-border-color: var(--pressed-bg-primary, #0958d9)}:root{--bg-primary: #1677ff;--bg-default: #d9d9d9;--bg-white: #fff;--color-text: #000;--color-white: #fff;--color-link: #1677ff;--br-default: #d9d9d9;--hover-bg-primary: #4096ff;--hover-bg-default: #0000000f;--hover-color-link: #4096ff;--hover-br-default: #0000000f;--focused-bg-primary: #4096ff;--focused-bg-default: #0000000f;--focused-color-link: #4096ff;--focused-br-default: #0000000f;--pressed-bg-primary: #0958d9;--pressed-bg-default: #00000026;--pressed-color-link: #0958d9;--pressed-br-default: #00000026;--disabled-bg-primary: #ddd;--disabled-bg-default: #ddd;--disabled-bg-white: #ddd;--disabled-color-text: #818181;--disabled-color-white: #818181;--disabled-color-link: #818181;--disabled-br-default: #ddd;--button-br-small: .25rem;--button-font-family: monospace;--button-font-size: 1rem;--button-font-weight: 300;--button-color-close: #000;--button-hover-color-close: #ff0000}html{font-size:16px}._input-color_zw44s_140{width:50px;height:30px;padding:2px}._input-checkbox_zw44s_146,._input-radio_zw44s_146{margin-right:8px;transform:scale(1.2)}._input-date_zw44s_151,._input-datetime-local_zw44s_151,._input-month_zw44s_151,._input-time_zw44s_151,._input-week_zw44s_151{border:1px solid #ccc;padding:8px;font-family:inherit}._input-file_zw44s_157{padding:8px;border:1px dashed #ccc}._input-number_zw44s_162,._input-text_zw44s_169,._input-email_zw44s_169,._input-password_zw44s_169,._input-search_zw44s_169,._input-tel_zw44s_169,._input-url_zw44s_169{border:1px solid #ccc;padding:8px 12px;border-radius:4px;font-size:14px}._input-image_zw44s_176{padding:10px 20px;border:none;border-radius:4px;cursor:pointer;font-weight:700}._input-hidden_zw44s_184{display:none}._input-range_zw44s_188{width:100%;height:6px}
@@ -0,0 +1 @@
1
+ export {}
@@ -0,0 +1,403 @@
1
+ import ne from "react";
2
+ function oe(n) {
3
+ return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
4
+ }
5
+ var R = { exports: {} }, d = {};
6
+ var M;
7
+ function ae() {
8
+ if (M) return d;
9
+ M = 1;
10
+ var n = Symbol.for("react.transitional.element"), f = Symbol.for("react.fragment");
11
+ function l(_, i, r) {
12
+ var a = null;
13
+ if (r !== void 0 && (a = "" + r), i.key !== void 0 && (a = "" + i.key), "key" in i) {
14
+ r = {};
15
+ for (var c in i)
16
+ c !== "key" && (r[c] = i[c]);
17
+ } else r = i;
18
+ return i = r.ref, {
19
+ $$typeof: n,
20
+ type: _,
21
+ key: a,
22
+ ref: i !== void 0 ? i : null,
23
+ props: r
24
+ };
25
+ }
26
+ return d.Fragment = f, d.jsx = l, d.jsxs = l, d;
27
+ }
28
+ var b = {};
29
+ var L;
30
+ function se() {
31
+ return L || (L = 1, process.env.NODE_ENV !== "production" && (function() {
32
+ function n(e) {
33
+ if (e == null) return null;
34
+ if (typeof e == "function")
35
+ return e.$$typeof === ee ? null : e.displayName || e.name || null;
36
+ if (typeof e == "string") return e;
37
+ switch (e) {
38
+ case k:
39
+ return "Fragment";
40
+ case J:
41
+ return "Profiler";
42
+ case V:
43
+ return "StrictMode";
44
+ case H:
45
+ return "Suspense";
46
+ case Z:
47
+ return "SuspenseList";
48
+ case K:
49
+ return "Activity";
50
+ }
51
+ if (typeof e == "object")
52
+ switch (typeof e.tag == "number" && console.error(
53
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
54
+ ), e.$$typeof) {
55
+ case U:
56
+ return "Portal";
57
+ case G:
58
+ return e.displayName || "Context";
59
+ case B:
60
+ return (e._context.displayName || "Context") + ".Consumer";
61
+ case X:
62
+ var t = e.render;
63
+ return e = e.displayName, e || (e = t.displayName || t.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
64
+ case Q:
65
+ return t = e.displayName || null, t !== null ? t : n(e.type) || "Memo";
66
+ case x:
67
+ t = e._payload, e = e._init;
68
+ try {
69
+ return n(e(t));
70
+ } catch {
71
+ }
72
+ }
73
+ return null;
74
+ }
75
+ function f(e) {
76
+ return "" + e;
77
+ }
78
+ function l(e) {
79
+ try {
80
+ f(e);
81
+ var t = !1;
82
+ } catch {
83
+ t = !0;
84
+ }
85
+ if (t) {
86
+ t = console;
87
+ var o = t.error, s = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
88
+ return o.call(
89
+ t,
90
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
91
+ s
92
+ ), f(e);
93
+ }
94
+ }
95
+ function _(e) {
96
+ if (e === k) return "<>";
97
+ if (typeof e == "object" && e !== null && e.$$typeof === x)
98
+ return "<...>";
99
+ try {
100
+ var t = n(e);
101
+ return t ? "<" + t + ">" : "<...>";
102
+ } catch {
103
+ return "<...>";
104
+ }
105
+ }
106
+ function i() {
107
+ var e = y.A;
108
+ return e === null ? null : e.getOwner();
109
+ }
110
+ function r() {
111
+ return Error("react-stack-top-frame");
112
+ }
113
+ function a(e) {
114
+ if (C.call(e, "key")) {
115
+ var t = Object.getOwnPropertyDescriptor(e, "key").get;
116
+ if (t && t.isReactWarning) return !1;
117
+ }
118
+ return e.key !== void 0;
119
+ }
120
+ function c(e, t) {
121
+ function o() {
122
+ $ || ($ = !0, console.error(
123
+ "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
124
+ t
125
+ ));
126
+ }
127
+ o.isReactWarning = !0, Object.defineProperty(e, "key", {
128
+ get: o,
129
+ configurable: !0
130
+ });
131
+ }
132
+ function h() {
133
+ var e = n(this.type);
134
+ return Y[e] || (Y[e] = !0, console.error(
135
+ "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
136
+ )), e = this.props.ref, e !== void 0 ? e : null;
137
+ }
138
+ function T(e, t, o, s, v, j) {
139
+ var u = o.ref;
140
+ return e = {
141
+ $$typeof: z,
142
+ type: e,
143
+ key: t,
144
+ props: o,
145
+ _owner: s
146
+ }, (u !== void 0 ? u : null) !== null ? Object.defineProperty(e, "ref", {
147
+ enumerable: !1,
148
+ get: h
149
+ }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
150
+ configurable: !1,
151
+ enumerable: !1,
152
+ writable: !0,
153
+ value: 0
154
+ }), Object.defineProperty(e, "_debugInfo", {
155
+ configurable: !1,
156
+ enumerable: !1,
157
+ writable: !0,
158
+ value: null
159
+ }), Object.defineProperty(e, "_debugStack", {
160
+ configurable: !1,
161
+ enumerable: !1,
162
+ writable: !0,
163
+ value: v
164
+ }), Object.defineProperty(e, "_debugTask", {
165
+ configurable: !1,
166
+ enumerable: !1,
167
+ writable: !0,
168
+ value: j
169
+ }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
170
+ }
171
+ function E(e, t, o, s, v, j) {
172
+ var u = t.children;
173
+ if (u !== void 0)
174
+ if (s)
175
+ if (te(u)) {
176
+ for (s = 0; s < u.length; s++)
177
+ g(u[s]);
178
+ Object.freeze && Object.freeze(u);
179
+ } else
180
+ console.error(
181
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
182
+ );
183
+ else g(u);
184
+ if (C.call(t, "key")) {
185
+ u = n(e);
186
+ var p = Object.keys(t).filter(function(re) {
187
+ return re !== "key";
188
+ });
189
+ s = 0 < p.length ? "{key: someKey, " + p.join(": ..., ") + ": ...}" : "{key: someKey}", D[u + s] || (p = 0 < p.length ? "{" + p.join(": ..., ") + ": ...}" : "{}", console.error(
190
+ `A props object containing a "key" prop is being spread into JSX:
191
+ let props = %s;
192
+ <%s {...props} />
193
+ React keys must be passed directly to JSX without using spread:
194
+ let props = %s;
195
+ <%s key={someKey} {...props} />`,
196
+ s,
197
+ u,
198
+ p,
199
+ u
200
+ ), D[u + s] = !0);
201
+ }
202
+ if (u = null, o !== void 0 && (l(o), u = "" + o), a(t) && (l(t.key), u = "" + t.key), "key" in t) {
203
+ o = {};
204
+ for (var S in t)
205
+ S !== "key" && (o[S] = t[S]);
206
+ } else o = t;
207
+ return u && c(
208
+ o,
209
+ typeof e == "function" ? e.displayName || e.name || "Unknown" : e
210
+ ), T(
211
+ e,
212
+ u,
213
+ o,
214
+ i(),
215
+ v,
216
+ j
217
+ );
218
+ }
219
+ function g(e) {
220
+ N(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === x && (e._payload.status === "fulfilled" ? N(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
221
+ }
222
+ function N(e) {
223
+ return typeof e == "object" && e !== null && e.$$typeof === z;
224
+ }
225
+ var w = ne, z = Symbol.for("react.transitional.element"), U = Symbol.for("react.portal"), k = Symbol.for("react.fragment"), V = Symbol.for("react.strict_mode"), J = Symbol.for("react.profiler"), B = Symbol.for("react.consumer"), G = Symbol.for("react.context"), X = Symbol.for("react.forward_ref"), H = Symbol.for("react.suspense"), Z = Symbol.for("react.suspense_list"), Q = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), K = Symbol.for("react.activity"), ee = Symbol.for("react.client.reference"), y = w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, C = Object.prototype.hasOwnProperty, te = Array.isArray, O = console.createTask ? console.createTask : function() {
226
+ return null;
227
+ };
228
+ w = {
229
+ react_stack_bottom_frame: function(e) {
230
+ return e();
231
+ }
232
+ };
233
+ var $, Y = {}, I = w.react_stack_bottom_frame.bind(
234
+ w,
235
+ r
236
+ )(), F = O(_(r)), D = {};
237
+ b.Fragment = k, b.jsx = function(e, t, o) {
238
+ var s = 1e4 > y.recentlyCreatedOwnerStacks++;
239
+ return E(
240
+ e,
241
+ t,
242
+ o,
243
+ !1,
244
+ s ? Error("react-stack-top-frame") : I,
245
+ s ? O(_(e)) : F
246
+ );
247
+ }, b.jsxs = function(e, t, o) {
248
+ var s = 1e4 > y.recentlyCreatedOwnerStacks++;
249
+ return E(
250
+ e,
251
+ t,
252
+ o,
253
+ !0,
254
+ s ? Error("react-stack-top-frame") : I,
255
+ s ? O(_(e)) : F
256
+ );
257
+ };
258
+ })()), b;
259
+ }
260
+ var W;
261
+ function ue() {
262
+ return W || (W = 1, process.env.NODE_ENV === "production" ? R.exports = ae() : R.exports = se()), R.exports;
263
+ }
264
+ var m = ue(), A = { exports: {} };
265
+ var q;
266
+ function ie() {
267
+ return q || (q = 1, (function(n) {
268
+ (function() {
269
+ var f = {}.hasOwnProperty;
270
+ function l() {
271
+ for (var r = "", a = 0; a < arguments.length; a++) {
272
+ var c = arguments[a];
273
+ c && (r = i(r, _(c)));
274
+ }
275
+ return r;
276
+ }
277
+ function _(r) {
278
+ if (typeof r == "string" || typeof r == "number")
279
+ return r;
280
+ if (typeof r != "object")
281
+ return "";
282
+ if (Array.isArray(r))
283
+ return l.apply(null, r);
284
+ if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
285
+ return r.toString();
286
+ var a = "";
287
+ for (var c in r)
288
+ f.call(r, c) && r[c] && (a = i(a, c));
289
+ return a;
290
+ }
291
+ function i(r, a) {
292
+ return a ? r ? r + " " + a : r + a : r;
293
+ }
294
+ n.exports ? (l.default = l, n.exports = l) : window.classNames = l;
295
+ })();
296
+ })(A)), A.exports;
297
+ }
298
+ var le = ie();
299
+ const P = /* @__PURE__ */ oe(le), ce = {
300
+ "button-white": "_button-white_hbhwm_1",
301
+ "button-reset": "_button-reset_hbhwm_1",
302
+ "button-link": "_button-link_hbhwm_1",
303
+ "button-border": "_button-border_hbhwm_1",
304
+ "button-default": "_button-default_hbhwm_1"
305
+ }, fe = ({
306
+ children: n,
307
+ disabled: f = !1,
308
+ type: l = "button",
309
+ button: _ = "default",
310
+ className: i = "",
311
+ ...r
312
+ }) => /* @__PURE__ */ m.jsx(
313
+ "button",
314
+ {
315
+ type: l,
316
+ className: P(ce[`button-${_}`], i),
317
+ disabled: f,
318
+ ...r,
319
+ children: n
320
+ }
321
+ ), _e = {
322
+ "button-close": "_button-close_cfuu0_1"
323
+ }, pe = ({
324
+ disabled: n = !1,
325
+ className: f = "",
326
+ ...l
327
+ }) => /* @__PURE__ */ m.jsxs(
328
+ "button",
329
+ {
330
+ type: "button",
331
+ className: P(_e["button-close"], f),
332
+ disabled: n,
333
+ ...l,
334
+ children: [
335
+ "Close",
336
+ /* @__PURE__ */ m.jsxs("svg", { viewBox: "0 0 24 25", children: [
337
+ /* @__PURE__ */ m.jsx("path", { d: "M6.34314 18.1567L17.6568 6.84303" }),
338
+ /* @__PURE__ */ m.jsx("path", { d: "M17.6569 18.1567L6.34315 6.84303" })
339
+ ] })
340
+ ]
341
+ }
342
+ ), me = {
343
+ Button: fe,
344
+ ButtonClose: pe
345
+ }, de = {
346
+ "input-button": "_input-button_zw44s_1",
347
+ "input-submit": "_input-submit_zw44s_1",
348
+ "input-reset": "_input-reset_zw44s_1",
349
+ "input-color": "_input-color_zw44s_140",
350
+ "input-checkbox": "_input-checkbox_zw44s_146",
351
+ "input-radio": "_input-radio_zw44s_146",
352
+ "input-date": "_input-date_zw44s_151",
353
+ "input-datetime-local": "_input-datetime-local_zw44s_151",
354
+ "input-month": "_input-month_zw44s_151",
355
+ "input-time": "_input-time_zw44s_151",
356
+ "input-week": "_input-week_zw44s_151",
357
+ "input-file": "_input-file_zw44s_157",
358
+ "input-number": "_input-number_zw44s_162",
359
+ "input-text": "_input-text_zw44s_169",
360
+ "input-email": "_input-email_zw44s_169",
361
+ "input-password": "_input-password_zw44s_169",
362
+ "input-search": "_input-search_zw44s_169",
363
+ "input-tel": "_input-tel_zw44s_169",
364
+ "input-url": "_input-url_zw44s_169",
365
+ "input-image": "_input-image_zw44s_176",
366
+ "input-hidden": "_input-hidden_zw44s_184",
367
+ "input-range": "_input-range_zw44s_188"
368
+ }, be = ({
369
+ id: n,
370
+ type: f,
371
+ name: l,
372
+ className: _,
373
+ disabled: i,
374
+ required: r,
375
+ readOnly: a,
376
+ onBlur: c,
377
+ onFocus: h,
378
+ onClick: T,
379
+ ...E
380
+ }) => /* @__PURE__ */ m.jsx(
381
+ "input",
382
+ {
383
+ type: f,
384
+ className: P(de[`input-${f}`], _),
385
+ name: l,
386
+ id: n,
387
+ disabled: i,
388
+ required: r,
389
+ readOnly: a,
390
+ onBlur: c,
391
+ onFocus: h,
392
+ onClick: T,
393
+ ...E
394
+ }
395
+ ), Ee = {
396
+ Button: me,
397
+ Input: be
398
+ }, ve = {
399
+ components: Ee
400
+ };
401
+ export {
402
+ ve as default
403
+ };
@@ -0,0 +1,6 @@
1
+ (function(p,b){typeof exports=="object"&&typeof module<"u"?module.exports=b(require("react")):typeof define=="function"&&define.amd?define(["react"],b):(p=typeof globalThis<"u"?globalThis:p||self,p["kilya-ui"]=b(p.React))})(this,(function(p){"use strict";function b(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var v={exports:{}},E={};var z;function B(){if(z)return E;z=1;var n=Symbol.for("react.transitional.element"),f=Symbol.for("react.fragment");function l(_,i,r){var s=null;if(r!==void 0&&(s=""+r),i.key!==void 0&&(s=""+i.key),"key"in i){r={};for(var c in i)c!=="key"&&(r[c]=i[c])}else r=i;return i=r.ref,{$$typeof:n,type:_,key:s,ref:i!==void 0?i:null,props:r}}return E.Fragment=f,E.jsx=l,E.jsxs=l,E}var w={};var C;function J(){return C||(C=1,process.env.NODE_ENV!=="production"&&(function(){function n(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===_e?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case j:return"Fragment";case oe:return"Profiler";case ne:return"StrictMode";case ie:return"Suspense";case le:return"SuspenseList";case fe:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case re:return"Portal";case ae:return e.displayName||"Context";case se:return(e._context.displayName||"Context")+".Consumer";case ue:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ce:return t=e.displayName||null,t!==null?t:n(e.type)||"Memo";case S:t=e._payload,e=e._init;try{return n(e(t))}catch{}}return null}function f(e){return""+e}function l(e){try{f(e);var t=!1}catch{t=!0}if(t){t=console;var o=t.error,a=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",a),f(e)}}function _(e){if(e===j)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===S)return"<...>";try{var t=n(e);return t?"<"+t+">":"<...>"}catch{return"<...>"}}function i(){var e=A.A;return e===null?null:e.getOwner()}function r(){return Error("react-stack-top-frame")}function s(e){if(M.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function c(e,t){function o(){L||(L=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}function y(){var e=n(this.type);return W[e]||(W[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function O(e,t,o,a,T,g){var u=o.ref;return e={$$typeof:D,type:e,key:t,props:o,_owner:a},(u!==void 0?u:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:y}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:T}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:g}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function R(e,t,o,a,T,g){var u=t.children;if(u!==void 0)if(a)if(pe(u)){for(a=0;a<u.length;a++)I(u[a]);Object.freeze&&Object.freeze(u)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else I(u);if(M.call(t,"key")){u=n(e);var m=Object.keys(t).filter(function(de){return de!=="key"});a=0<m.length?"{key: someKey, "+m.join(": ..., ")+": ...}":"{key: someKey}",V[u+a]||(m=0<m.length?"{"+m.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
2
+ let props = %s;
3
+ <%s {...props} />
4
+ React keys must be passed directly to JSX without using spread:
5
+ let props = %s;
6
+ <%s key={someKey} {...props} />`,a,u,m,u),V[u+a]=!0)}if(u=null,o!==void 0&&(l(o),u=""+o),s(t)&&(l(t.key),u=""+t.key),"key"in t){o={};for(var N in t)N!=="key"&&(o[N]=t[N])}else o=t;return u&&c(o,typeof e=="function"?e.displayName||e.name||"Unknown":e),O(e,u,o,i(),T,g)}function I(e){F(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===S&&(e._payload.status==="fulfilled"?F(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function F(e){return typeof e=="object"&&e!==null&&e.$$typeof===D}var h=p,D=Symbol.for("react.transitional.element"),re=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),ne=Symbol.for("react.strict_mode"),oe=Symbol.for("react.profiler"),se=Symbol.for("react.consumer"),ae=Symbol.for("react.context"),ue=Symbol.for("react.forward_ref"),ie=Symbol.for("react.suspense"),le=Symbol.for("react.suspense_list"),ce=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),fe=Symbol.for("react.activity"),_e=Symbol.for("react.client.reference"),A=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=Object.prototype.hasOwnProperty,pe=Array.isArray,P=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(e){return e()}};var L,W={},q=h.react_stack_bottom_frame.bind(h,r)(),U=P(_(r)),V={};w.Fragment=j,w.jsx=function(e,t,o){var a=1e4>A.recentlyCreatedOwnerStacks++;return R(e,t,o,!1,a?Error("react-stack-top-frame"):q,a?P(_(e)):U)},w.jsxs=function(e,t,o){var a=1e4>A.recentlyCreatedOwnerStacks++;return R(e,t,o,!0,a?Error("react-stack-top-frame"):q,a?P(_(e)):U)}})()),w}var Y;function G(){return Y||(Y=1,process.env.NODE_ENV==="production"?v.exports=B():v.exports=J()),v.exports}var d=G(),k={exports:{}};var $;function X(){return $||($=1,(function(n){(function(){var f={}.hasOwnProperty;function l(){for(var r="",s=0;s<arguments.length;s++){var c=arguments[s];c&&(r=i(r,_(c)))}return r}function _(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return l.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var s="";for(var c in r)f.call(r,c)&&r[c]&&(s=i(s,c));return s}function i(r,s){return s?r?r+" "+s:r+s:r}n.exports?(l.default=l,n.exports=l):window.classNames=l})()})(k)),k.exports}var H=X();const x=b(H),Z={"button-white":"_button-white_hbhwm_1","button-reset":"_button-reset_hbhwm_1","button-link":"_button-link_hbhwm_1","button-border":"_button-border_hbhwm_1","button-default":"_button-default_hbhwm_1"},Q=({children:n,disabled:f=!1,type:l="button",button:_="default",className:i="",...r})=>d.jsx("button",{type:l,className:x(Z[`button-${_}`],i),disabled:f,...r,children:n}),K={"button-close":"_button-close_cfuu0_1"},ee={Button:Q,ButtonClose:({disabled:n=!1,className:f="",...l})=>d.jsxs("button",{type:"button",className:x(K["button-close"],f),disabled:n,...l,children:["Close",d.jsxs("svg",{viewBox:"0 0 24 25",children:[d.jsx("path",{d:"M6.34314 18.1567L17.6568 6.84303"}),d.jsx("path",{d:"M17.6569 18.1567L6.34315 6.84303"})]})]})},te={"input-button":"_input-button_zw44s_1","input-submit":"_input-submit_zw44s_1","input-reset":"_input-reset_zw44s_1","input-color":"_input-color_zw44s_140","input-checkbox":"_input-checkbox_zw44s_146","input-radio":"_input-radio_zw44s_146","input-date":"_input-date_zw44s_151","input-datetime-local":"_input-datetime-local_zw44s_151","input-month":"_input-month_zw44s_151","input-time":"_input-time_zw44s_151","input-week":"_input-week_zw44s_151","input-file":"_input-file_zw44s_157","input-number":"_input-number_zw44s_162","input-text":"_input-text_zw44s_169","input-email":"_input-email_zw44s_169","input-password":"_input-password_zw44s_169","input-search":"_input-search_zw44s_169","input-tel":"_input-tel_zw44s_169","input-url":"_input-url_zw44s_169","input-image":"_input-image_zw44s_176","input-hidden":"_input-hidden_zw44s_184","input-range":"_input-range_zw44s_188"};return{components:{Button:ee,Input:({id:n,type:f,name:l,className:_,disabled:i,required:r,readOnly:s,onBlur:c,onFocus:y,onClick:O,...R})=>d.jsx("input",{type:f,className:x(te[`input-${f}`],_),name:l,id:n,disabled:i,required:r,readOnly:s,onBlur:c,onFocus:y,onClick:O,...R})}}}));
package/package.json ADDED
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "kilya-ui",
3
+ "private": false,
4
+ "version": "0.0.1",
5
+ "type": "module",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "main": "./dist/kilya-ui.umd.js",
10
+ "module": "./dist/kilya-ui.es.js",
11
+ "exports": {
12
+ "./package.json": "./package.json",
13
+ ".": {
14
+ "types": "./dist/kilya-ui.es.d.ts",
15
+ "import": "./dist/kilya-ui.es.js"
16
+ }
17
+ },
18
+ "scripts": {
19
+ "dev": "vite",
20
+ "build": "tsc -b && vite build",
21
+ "lint": "eslint .",
22
+ "preview": "vite preview",
23
+ "storybook": "storybook dev -p 6006",
24
+ "build-storybook": "storybook build"
25
+ },
26
+ "dependencies": {
27
+ "classnames": "^2.5.1",
28
+ "react": "*",
29
+ "react-dom": "*"
30
+ },
31
+ "devDependencies": {
32
+ "@eslint/js": "^9.39.1",
33
+ "@storybook/addon-docs": "^10.0.8",
34
+ "@storybook/addon-onboarding": "^10.0.8",
35
+ "@storybook/react-vite": "^10.0.8",
36
+ "@types/node": "^24.10.1",
37
+ "@types/react": "^19.2.5",
38
+ "@types/react-dom": "^19.2.3",
39
+ "@vitejs/plugin-react": "^5.1.1",
40
+ "eslint": "^9.39.1",
41
+ "eslint-plugin-react-hooks": "^7.0.1",
42
+ "eslint-plugin-react-refresh": "^0.4.24",
43
+ "eslint-plugin-storybook": "^10.0.8",
44
+ "globals": "^16.5.0",
45
+ "sass-embedded": "^1.93.3",
46
+ "storybook": "^10.0.8",
47
+ "styled-components": "^6.1.19",
48
+ "typescript": "~5.9.3",
49
+ "typescript-eslint": "^8.46.4",
50
+ "vite": "^7.2.4"
51
+ },
52
+ "peerDependencies": {
53
+ "react": "*",
54
+ "react-dom": "*"
55
+ }
56
+ }