mimir-ui-kit 0.0.1 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2 @@
1
+ ._inputWrapper_w9lgy_1{display:inline-flex;flex-direction:column;width:100%;height:var(--input-height);padding:var(--input-space);background-color:var(--black-5);border-radius:6px}._label_w9lgy_11{margin-bottom:2px;color:var(--black-60);font-size:var(--size-text-s)}._label_w9lgy_11:first-letter{text-transform:uppercase}._inputBody_w9lgy_20{--caption-margin-left: calc(var(--input-space) + var(--control-border-width));--counter-button-icon-color: var(--color-control-typo-ghost);--counter-button-background: transparent;--counter-offset: 0;--clear-button-color: var(--color-control-typo-clear);display:flex;align-items:center;border-radius:var(--control-input-radius);outline:var(--control-border-width) solid var(--container-border-color)}._xs_w9lgy_32{--label-offset: var(--space-2xs);--caption-offset: var(--space-2xs);--input-height: var(--control-height-xs);--input-font-size: var(--control-text-size-xs);--input-space: calc(var(--control-space-xs) * .5)}._s_w9lgy_40{--label-offset: var(--space-2xs);--caption-offset: var(--space-2xs);--input-height: var(--control-height-s);--input-font-size: var(--control-text-size-s);--input-space: calc(var(--control-space-s) * .5)}._m_w9lgy_48{--label-offset: var(--space-xs);--caption-offset: var(--space-xs);--input-height: var(--space-4xl);--input-font-size: var(--control-text-size-m);--input-space: calc(var(--control-space-m) * .5)}._l_w9lgy_11{--label-offset: var(--space-xs);--caption-offset: var(--space-xs);--input-height: var(--space-4xxl);--input-font-size: var(--control-text-size-2xl);--input-space: calc(var(--control-space-l) * .5)}._addonLeft_w9lgy_64,._addonRight_w9lgy_65{display:flex}._withAddonLeft_w9lgy_69{padding-left:8px}._withAddonRight_w9lgy_73{padding-right:8px}._input_w9lgy_1{width:100%;color:var(--dark-text);font-size:var(--input-font-size);font-family:var(--font-inter);letter-spacing:-.42px;background:none;border:none;outline:none;font-feature-settings:"zero"}
2
+
@@ -0,0 +1 @@
1
+ ._button_a92xc_1{--button-loader-color: var(--button-color);--button-cursor: pointer;position:relative;display:inline-block;flex-shrink:0;box-sizing:border-box;max-width:100%;height:var(--button-height);padding:0 var(--button-space);overflow:hidden;color:var(--button-color);font-weight:600;font-size:14px;font-family:var(--font-inter);line-height:16px;white-space:nowrap;text-decoration:none;text-overflow:ellipsis;background:var(--button-bg-color);border:none;border-radius:var(--control-radius);cursor:var(--button-cursor);transition:background-color .3s ease,border-color .15s ease,box-shadow .15s ease,color .15s ease,fill .15s ease;-webkit-appearance:none;-moz-appearance:none;appearance:none}._xs_a92xc_28{--button-height: var(--button-height-xs);--button-font-size: var(--control-text-size-xs);--button-space: var(--control-space-xs)}._s_a92xc_34{--button-height: var(--button-height-s);--button-font-size: var(--control-text-size-s);--button-space: var(--control-space-s)}._m_a92xc_40{--button-height: var(--button-height-m);--button-font-size: var(--control-text-size-m);--button-space: var(--control-space-m)}._l_a92xc_46{--button-height: var(--button-height-l);--button-font-size: var(--control-text-size-l);--button-space: var(--control-space-l)}._xl_a92xc_52{--button-height: var(--button-height-xl);--button-space: var(--control-space-l);font-weight:var(--font-weight-text-medium);font-size:var(--size-text-l)}._xxl_a92xc_59{--button-height: var(--button-height-xxl);--button-space: var(--control-space-xxl);font-weight:var(--font-weight-text-medium);font-size:var(--size-text-l)}._primary-sapphire_a92xc_66{--button-bg-color: var(--sapphire-normal);--button-color-hover: var(--light-text);--button-color-active: var(--light-text);--button-bg-color-active: var(--sapphire-active);--button-bg-color-hover: var(--sapphire-hover);--button-color: var(--light-text);--button-border: transparent}._primary-citrine_a92xc_76{--button-bg-color: var(--citrine-normal);--button-color-hover: var(--light-text);--button-color-active: var(--light-text);--button-bg-color-active: var(--citrine-active);--button-bg-color-hover: var(--citrine-hover);--button-color: var(--light-text);--button-border: transparent}._secondary-asphalt_a92xc_86{--button-bg-color: var(--asphalt-normal);--button-color-hover: var(--light-text);--button-color-active: var(--light-text);--button-bg-color-active: var(--asphalt-active);--button-bg-color-hover: var(--asphalt-hover);--button-color: var(--light-text);--button-border: transparent}._secondary-gray_a92xc_96{--button-bg-color: var(--gray-normal);--button-color-hover: var(--counter-text);--button-color-active: var(--light-text);--button-bg-color-active: var(--gray-active);--button-bg-color-hover: var(--gray-hover);--button-color: var(--dark-text);--button-border: transparent}._secondary-white_a92xc_106{--button-bg-color: var(--white-normal);--button-color-hover: var(--counter-text);--button-color-active: var(--light-text);--button-bg-color-active: var(--white-active);--button-bg-color-hover: var(--white-hover);--button-color: var(--dark-text);--button-border: transparent}._secondary-red_a92xc_116{--button-bg-color: var(--red-normal);--button-color-hover: var(--light-text);--button-color-active: var(--light-text);--button-bg-color-active: var(--red-active);--button-bg-color-hover: var(--red-hover);--button-color: var(--light-text);--button-border: transparent}._button_a92xc_1:hover{color:var(--button-color-hover);background:var(--button-bg-color-hover)}._button_a92xc_1:active{color:var(--button-color-active);background:var(--button-bg-color-active)}._button_a92xc_1:focus{color:var(--button-color-active);background:var(--button-bg-color-active)}._full_a92xc_141{width:100%}._disabled_a92xc_145{--button-cursor: not-allowed;color:var(--light-text);background-color:var(--disabled)}._disabled_a92xc_145:hover,._disabled_a92xc_145:active,._disabled_a92xc_145:focus{color:var(--light-text);background-color:var(--disabled)}
@@ -0,0 +1 @@
1
+ @import"https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap";*{margin:0;padding:0;border:0;outline:none}*,:after,:before{box-sizing:border-box}:active,:focus{outline:0}a,a:visited,a:hover{text-decoration:none}a:active,a:focus{outline:0}aside,footer,header,nav{display:block}body,html{width:100%;height:100%;font-size:100%;line-height:1}button,input,textarea,select{font-family:inherit}input::-ms-clear{display:none}button{cursor:pointer}button::-moz-focus-inner{padding:0;border:0}ul li{list-style:none}img{vertical-align:top}h1,h2,h3,h4,h5,h6{font-weight:inherit;font-size:inherit}input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus,input:-webkit-autofill:active{-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:var(--color-typo-brand);transition:background-color 5000s ease-in-out 0s}:root{--sapphire-100: #2355d7;--sapphire-90: #3564df;--sapphire-80: #4b75e2;--sapphire-70: #6186e6;--sapphire-60: #7797e9;--sapphire-50: #8da7ed;--sapphire-40: #9fb7f4;--sapphire-30: #b9caf4;--sapphire-20: #cfdaf7;--sapphire-10: #e5ebfb;--citrine-100: #ff7900;--citrine-90: #ff861a;--citrine-80: #ff9433;--citrine-70: #ffa14d;--citrine-60: #ffaf66;--citrine-50: #ffbc80;--citrine-40: #ffc999;--citrine-30: #ffd7b2;--citrine-20: #ffe4cc;--citrine-10: #fff2e5;--magenta-100: #bc2251;--magenta-90: #d8275d;--magenta-80: #dc3d6d;--magenta-70: #e15781;--magenta-60: #e46c91;--magenta-50: #e986a4;--magenta-40: #ed9cb4;--magenta-30: #f2b6c8;--magenta-20: #f6cbd8;--magenta-10: #fae5ec;--black-100: #000;--black-95: #0d0d0d;--black-90: #1a1a1a;--black-85: #262626;--black-80: #333;--black-75: #404040;--black-70: #4d4d4d;--black-65: #595959;--black-60: #666;--black-55: #737373;--black-50: #808080;--black-45: #8c8c8c;--black-40: #999;--black-35: #a6a6a6;--black-30: #b3b3b3;--black-25: #bfbfbf;--black-20: #ccc;--black-15: #d9d9d9;--black-10: #e6e6e6;--black-5: #f2f2f2;--white: #fff;--dark-blue: #0a38af;--blue-40: #a7bbef;--blue-20: #d3ddf7;--green: #1b770c;--red-tag: #f01406;--success-normal: #23b413;--success-bg-hover: #d5fbe2;--success-bg: #ebfdf1;--alarm-normal: #fdc023;--alarm-bg-hover: #fff0c7;--alarm-bg: #fff6de;--error-normal: #e64646;--error-bg-hover: #fadbdb;--error-bg: #fbe3e3;--disabled: #b3b3b3;--light-text: var(--white);--dark-text: var(--black-100);--sapphire-normal: var(--sapphire-100);--sapphire-hover: #1b41a3;--sapphire-active: #122c70;--citrine-normal: var(--citrine-100);--citrine-hover: #e56d00;--citrine-active: #cc6100;--asphalt-border: var(--black-30);--asphalt-normal: var(--black-80);--asphalt-hover: var(--black-90);--asphalt-active: var(--black-100);--gray-normal: var(--black-5);--gray-hover: var(--black-10);--gray-active: var(--black-80);--white-normal: var(--white);--white-hover: var(--black-5);--white-transparent: rgb(255 255 255 / 40%);--white-active: var(--black-80);--red-normal: var(--error-normal);--red-hover: #e33030;--red-active: #dc1e1e;--green-normal: var(--green);--green-hover: #16610a;--green-active: #114a08;--counter-text: #ffa066;--button-height-xs: 24px;--button-height-s: 32px;--button-height-m: 40px;--button-height-l: 48px;--button-height-xl: 56px;--button-height-xxl: 64px;--control-default: var(--sapphire-20);--control-hover: var(--sapphire-40);--control-selected: var(--sapphire-100);--control-disabled: var(--black-10);--font-inter: "Inter", sans-serif;--font-montserrat: "Montserrat", sans-serif;--font-weight-text-regular: 400;--font-weight-text-medium: 500;--font-weight-text-semibold: 600;--font-weight-text-bold: 700;--font-weight-text-extrabold: 800;--font-weight-text-black: 900;--size-text-xs2: 8px;--size-text-xs: 10px;--size-text-s: 12px;--size-text-m: 14px;--size-text-l: 16px;--size-text-xl: 20px;--size-text-xl2: 24px;--size-text-2xl: 28px;--size-text-xl3: 32px;--size-text-xl4: 48px;--size-text-xl5: 72px;--size-text-xl6: 96px;--line-height-text-2xs: 1em;--line-height-text-xs: 1.1em;--line-height-text-s: 1.2em;--line-height-text-m: 1.3em;--line-height-text-l: 1.4em;--line-height-text-xl: 1.5em;--control-radius: 6px;--control-radius-l: 24px;--control-input-radius: 12px;--control-border-width: 1px;--control-height-xl: 60px;--control-height-xxl: 60px;--control-height-l: var(--space-4xl);--control-height-m: var(--space-3xl);--control-height-s: var(--space-2xl);--control-height-xs: var(--space-xl);--control-box-size-s: var(--space-s);--control-box-size-m: var(--space-m);--control-box-size-l: var(--space-l);--control-space-l: var(--space-xl);--control-space-m: var(--space-l);--control-space-s: var(--space-m);--control-space-xs: var(--space-s);--control-text-size-2xl: var(--size-text-xl);--control-text-size-xl: var(--size-text-xl3);--control-text-size-l: var(--size-text-l);--control-text-size-m: var(--size-text-m);--control-text-size-s: var(--size-text-s);--control-text-size-xs: var(--size-text-xs);--space-3xs: 2px;--space-2xs: 4px;--space-xs: 8px;--space-s: 12px;--space-m: 16px;--space-l: 20px;--space-xl: 24px;--space-2xl: 32px;--space-xxl: 40px;--space-3xl: 44px;--space-4xl: 48px;--space-4xxl: 64px;--space-5xl: 72px;--space-6xl: 96px;--container-width-xs: 375px;--container-width-s: 767px;--container-width-m: 960px;--container-width-l: 1280px;--container-width-xl: 1440px;--container-width-xxl: 1920px}@supports (font-variation-settings: normal){:root{font-family:Inter,sans-serif}}:root{font-feature-settings:"zero"}body{font-family:Inter,sans-serif;font-variant-numeric:slashed-zero;background-color:var(--black-5);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#root{display:flex;flex-direction:column;min-height:100%}
@@ -0,0 +1,33 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { EButtonSize, EButtonVariant } from './constants';
3
+
4
+ declare const meta: {
5
+ title: string;
6
+ component: import('react').ForwardRefExoticComponent<Omit<import('react').ClassAttributes<HTMLButtonElement> & import('react').ButtonHTMLAttributes<HTMLButtonElement> & {
7
+ className?: string;
8
+ variant?: EButtonVariant | `${EButtonVariant}`;
9
+ size?: EButtonSize | `${EButtonSize}`;
10
+ disabled?: boolean;
11
+ full?: boolean;
12
+ formId?: string;
13
+ }, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
14
+ parameters: {
15
+ layout: string;
16
+ };
17
+ tags: string[];
18
+ argTypes: {};
19
+ args: {
20
+ onClick: import('@vitest/spy').Mock<[event: import('react').MouseEvent<HTMLButtonElement, MouseEvent>], void>;
21
+ children: string;
22
+ variant: EButtonVariant.PrimaryCitrine;
23
+ size: EButtonSize.M;
24
+ };
25
+ };
26
+ export default meta;
27
+ type Story = StoryObj<typeof meta>;
28
+ export declare const PrimarySapphire: Story;
29
+ export declare const PrimaryCitrine: Story;
30
+ export declare const SecondaryAsphalt: Story;
31
+ export declare const SecondaryGray: Story;
32
+ export declare const SecondaryWhite: Story;
33
+ export declare const SecondaryRed: Story;
@@ -0,0 +1,16 @@
1
+ export declare enum EButtonVariant {
2
+ PrimarySapphire = "primary-sapphire",
3
+ PrimaryCitrine = "primary-citrine",
4
+ SecondaryAsphalt = "secondary-asphalt",
5
+ SecondaryGray = "secondary-gray",
6
+ SecondaryWhite = "secondary-white",
7
+ SecondaryRed = "secondary-red"
8
+ }
9
+ export declare enum EButtonSize {
10
+ XS = "xs",
11
+ S = "s",
12
+ M = "m",
13
+ L = "l",
14
+ XL = "xl",
15
+ XXL = "xxl"
16
+ }
@@ -0,0 +1,5 @@
1
+ var e = /* @__PURE__ */ ((r) => (r.PrimarySapphire = "primary-sapphire", r.PrimaryCitrine = "primary-citrine", r.SecondaryAsphalt = "secondary-asphalt", r.SecondaryGray = "secondary-gray", r.SecondaryWhite = "secondary-white", r.SecondaryRed = "secondary-red", r))(e || {}), y = /* @__PURE__ */ ((r) => (r.XS = "xs", r.S = "s", r.M = "m", r.L = "l", r.XL = "xl", r.XXL = "xxl", r))(y || {});
2
+ export {
3
+ y as EButtonSize,
4
+ e as EButtonVariant
5
+ };
@@ -0,0 +1,29 @@
1
+ import { ComponentProps } from 'react';
2
+ import { EButtonSize, EButtonVariant } from './constants';
3
+
4
+ type TProps = ComponentProps<'button'> & {
5
+ className?: string;
6
+ /**
7
+ * Button theme. Responsible for the visual (in a frame, without styles, color opposite to the theme of the application, etc.)
8
+ */
9
+ variant?: EButtonVariant | `${EButtonVariant}`;
10
+ /**
11
+ * Button size according to design system
12
+ */
13
+ size?: EButtonSize | `${EButtonSize}`;
14
+ /**
15
+ * Flag responsible for the operation of the button
16
+ */
17
+ disabled?: boolean;
18
+ /**
19
+ * Enlarges the button to the full width
20
+ */
21
+ full?: boolean;
22
+ formId?: string;
23
+ };
24
+ /**
25
+ * Компонент кнопки, который можно настраивать с различными темами и размерами.
26
+
27
+ */
28
+ export declare const Button: import('react').ForwardRefExoticComponent<Omit<TProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
29
+ export {};
@@ -0,0 +1,30 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { forwardRef as m } from "react";
3
+ import { c as p } from "../../index-DIxK0V-G.js";
4
+ import '../../assets/index2.css';const y = "_button_a92xc_1", u = "_xs_a92xc_28", f = "_s_a92xc_34", b = "_m_a92xc_40", h = "_l_a92xc_46", N = "_xl_a92xc_52", w = "_xxl_a92xc_59", g = "_full_a92xc_141", B = "_disabled_a92xc_145", a = {
5
+ button: y,
6
+ xs: u,
7
+ s: f,
8
+ m: b,
9
+ l: h,
10
+ xl: N,
11
+ xxl: w,
12
+ "primary-sapphire": "_primary-sapphire_a92xc_66",
13
+ "primary-citrine": "_primary-citrine_a92xc_76",
14
+ "secondary-asphalt": "_secondary-asphalt_a92xc_86",
15
+ "secondary-gray": "_secondary-gray_a92xc_96",
16
+ "secondary-white": "_secondary-white_a92xc_106",
17
+ "secondary-red": "_secondary-red_a92xc_116",
18
+ full: g,
19
+ disabled: B
20
+ }, j = m((c, _) => {
21
+ const { size: o = "m", variant: t, full: r, children: l, className: n, formId: e, ...s } = c, d = {
22
+ [a.full]: r,
23
+ [a.disabled]: s.disabled
24
+ }, x = [s.disabled ? "" : a[t ?? ""], a[o], n];
25
+ return /* @__PURE__ */ i("button", { form: e, ...s, ref: _, className: p(a.button, d, x), children: l });
26
+ });
27
+ j.displayName = "Button";
28
+ export {
29
+ j as Button
30
+ };
@@ -0,0 +1,329 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { EInputSize, EInputStatus } from './constants';
3
+
4
+ declare const meta: {
5
+ title: string;
6
+ component: import('react').MemoExoticComponent<import('react').ForwardRefExoticComponent<{
7
+ form?: string | undefined;
8
+ slot?: string | undefined;
9
+ style?: import('react').CSSProperties | undefined;
10
+ title?: string | undefined;
11
+ pattern?: string | undefined;
12
+ disabled?: boolean | undefined;
13
+ formAction?: string | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS] | undefined;
14
+ formEncType?: string | undefined;
15
+ formMethod?: string | undefined;
16
+ formNoValidate?: boolean | undefined;
17
+ formTarget?: string | undefined;
18
+ name?: string | undefined;
19
+ type?: import('react').HTMLInputTypeAttribute | undefined;
20
+ value?: string | readonly string[] | number | undefined;
21
+ defaultChecked?: boolean | undefined;
22
+ defaultValue?: string | number | readonly string[] | undefined;
23
+ suppressContentEditableWarning?: boolean | undefined;
24
+ suppressHydrationWarning?: boolean | undefined;
25
+ accessKey?: string | undefined;
26
+ autoFocus?: boolean | undefined;
27
+ className?: string | undefined;
28
+ contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
29
+ contextMenu?: string | undefined;
30
+ dir?: string | undefined;
31
+ draggable?: (boolean | "true" | "false") | undefined;
32
+ hidden?: boolean | undefined;
33
+ id?: string | undefined;
34
+ lang?: string | undefined;
35
+ nonce?: string | undefined;
36
+ spellCheck?: (boolean | "true" | "false") | undefined;
37
+ tabIndex?: number | undefined;
38
+ translate?: "yes" | "no" | undefined;
39
+ radioGroup?: string | undefined;
40
+ role?: import('react').AriaRole | undefined;
41
+ about?: string | undefined;
42
+ content?: string | undefined;
43
+ datatype?: string | undefined;
44
+ inlist?: any;
45
+ prefix?: string | undefined;
46
+ property?: string | undefined;
47
+ rel?: string | undefined;
48
+ resource?: string | undefined;
49
+ rev?: string | undefined;
50
+ typeof?: string | undefined;
51
+ vocab?: string | undefined;
52
+ autoCapitalize?: string | undefined;
53
+ autoCorrect?: string | undefined;
54
+ autoSave?: string | undefined;
55
+ color?: string | undefined;
56
+ itemProp?: string | undefined;
57
+ itemScope?: boolean | undefined;
58
+ itemType?: string | undefined;
59
+ itemID?: string | undefined;
60
+ itemRef?: string | undefined;
61
+ results?: number | undefined;
62
+ security?: string | undefined;
63
+ unselectable?: "on" | "off" | undefined;
64
+ inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
65
+ is?: string | undefined;
66
+ "aria-activedescendant"?: string | undefined;
67
+ "aria-atomic"?: (boolean | "true" | "false") | undefined;
68
+ "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
69
+ "aria-braillelabel"?: string | undefined;
70
+ "aria-brailleroledescription"?: string | undefined;
71
+ "aria-busy"?: (boolean | "true" | "false") | undefined;
72
+ "aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
73
+ "aria-colcount"?: number | undefined;
74
+ "aria-colindex"?: number | undefined;
75
+ "aria-colindextext"?: string | undefined;
76
+ "aria-colspan"?: number | undefined;
77
+ "aria-controls"?: string | undefined;
78
+ "aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
79
+ "aria-describedby"?: string | undefined;
80
+ "aria-description"?: string | undefined;
81
+ "aria-details"?: string | undefined;
82
+ "aria-disabled"?: (boolean | "true" | "false") | undefined;
83
+ "aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
84
+ "aria-errormessage"?: string | undefined;
85
+ "aria-expanded"?: (boolean | "true" | "false") | undefined;
86
+ "aria-flowto"?: string | undefined;
87
+ "aria-grabbed"?: (boolean | "true" | "false") | undefined;
88
+ "aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
89
+ "aria-hidden"?: (boolean | "true" | "false") | undefined;
90
+ "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
91
+ "aria-keyshortcuts"?: string | undefined;
92
+ "aria-label"?: string | undefined;
93
+ "aria-labelledby"?: string | undefined;
94
+ "aria-level"?: number | undefined;
95
+ "aria-live"?: "off" | "assertive" | "polite" | undefined;
96
+ "aria-modal"?: (boolean | "true" | "false") | undefined;
97
+ "aria-multiline"?: (boolean | "true" | "false") | undefined;
98
+ "aria-multiselectable"?: (boolean | "true" | "false") | undefined;
99
+ "aria-orientation"?: "horizontal" | "vertical" | undefined;
100
+ "aria-owns"?: string | undefined;
101
+ "aria-placeholder"?: string | undefined;
102
+ "aria-posinset"?: number | undefined;
103
+ "aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
104
+ "aria-readonly"?: (boolean | "true" | "false") | undefined;
105
+ "aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
106
+ "aria-required"?: (boolean | "true" | "false") | undefined;
107
+ "aria-roledescription"?: string | undefined;
108
+ "aria-rowcount"?: number | undefined;
109
+ "aria-rowindex"?: number | undefined;
110
+ "aria-rowindextext"?: string | undefined;
111
+ "aria-rowspan"?: number | undefined;
112
+ "aria-selected"?: (boolean | "true" | "false") | undefined;
113
+ "aria-setsize"?: number | undefined;
114
+ "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
115
+ "aria-valuemax"?: number | undefined;
116
+ "aria-valuemin"?: number | undefined;
117
+ "aria-valuenow"?: number | undefined;
118
+ "aria-valuetext"?: string | undefined;
119
+ children?: import('react').ReactNode | undefined;
120
+ dangerouslySetInnerHTML?: {
121
+ __html: string | TrustedHTML;
122
+ } | undefined;
123
+ onCopy?: import('react').ClipboardEventHandler<HTMLInputElement> | undefined;
124
+ onCopyCapture?: import('react').ClipboardEventHandler<HTMLInputElement> | undefined;
125
+ onCut?: import('react').ClipboardEventHandler<HTMLInputElement> | undefined;
126
+ onCutCapture?: import('react').ClipboardEventHandler<HTMLInputElement> | undefined;
127
+ onPaste?: import('react').ClipboardEventHandler<HTMLInputElement> | undefined;
128
+ onPasteCapture?: import('react').ClipboardEventHandler<HTMLInputElement> | undefined;
129
+ onCompositionEnd?: import('react').CompositionEventHandler<HTMLInputElement> | undefined;
130
+ onCompositionEndCapture?: import('react').CompositionEventHandler<HTMLInputElement> | undefined;
131
+ onCompositionStart?: import('react').CompositionEventHandler<HTMLInputElement> | undefined;
132
+ onCompositionStartCapture?: import('react').CompositionEventHandler<HTMLInputElement> | undefined;
133
+ onCompositionUpdate?: import('react').CompositionEventHandler<HTMLInputElement> | undefined;
134
+ onCompositionUpdateCapture?: import('react').CompositionEventHandler<HTMLInputElement> | undefined;
135
+ onFocus?: import('react').FocusEventHandler<HTMLInputElement> | undefined;
136
+ onFocusCapture?: import('react').FocusEventHandler<HTMLInputElement> | undefined;
137
+ onBlur?: import('react').FocusEventHandler<HTMLInputElement> | undefined;
138
+ onBlurCapture?: import('react').FocusEventHandler<HTMLInputElement> | undefined;
139
+ onChange?: import('react').ChangeEventHandler<HTMLInputElement> | undefined;
140
+ onChangeCapture?: import('react').FormEventHandler<HTMLInputElement> | undefined;
141
+ onBeforeInput?: import('react').FormEventHandler<HTMLInputElement> | undefined;
142
+ onBeforeInputCapture?: import('react').FormEventHandler<HTMLInputElement> | undefined;
143
+ onInput?: import('react').FormEventHandler<HTMLInputElement> | undefined;
144
+ onInputCapture?: import('react').FormEventHandler<HTMLInputElement> | undefined;
145
+ onReset?: import('react').FormEventHandler<HTMLInputElement> | undefined;
146
+ onResetCapture?: import('react').FormEventHandler<HTMLInputElement> | undefined;
147
+ onSubmit?: import('react').FormEventHandler<HTMLInputElement> | undefined;
148
+ onSubmitCapture?: import('react').FormEventHandler<HTMLInputElement> | undefined;
149
+ onInvalid?: import('react').FormEventHandler<HTMLInputElement> | undefined;
150
+ onInvalidCapture?: import('react').FormEventHandler<HTMLInputElement> | undefined;
151
+ onLoad?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
152
+ onLoadCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
153
+ onError?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
154
+ onErrorCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
155
+ onKeyDown?: import('react').KeyboardEventHandler<HTMLInputElement> | undefined;
156
+ onKeyDownCapture?: import('react').KeyboardEventHandler<HTMLInputElement> | undefined;
157
+ onKeyPress?: import('react').KeyboardEventHandler<HTMLInputElement> | undefined;
158
+ onKeyPressCapture?: import('react').KeyboardEventHandler<HTMLInputElement> | undefined;
159
+ onKeyUp?: import('react').KeyboardEventHandler<HTMLInputElement> | undefined;
160
+ onKeyUpCapture?: import('react').KeyboardEventHandler<HTMLInputElement> | undefined;
161
+ onAbort?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
162
+ onAbortCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
163
+ onCanPlay?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
164
+ onCanPlayCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
165
+ onCanPlayThrough?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
166
+ onCanPlayThroughCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
167
+ onDurationChange?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
168
+ onDurationChangeCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
169
+ onEmptied?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
170
+ onEmptiedCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
171
+ onEncrypted?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
172
+ onEncryptedCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
173
+ onEnded?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
174
+ onEndedCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
175
+ onLoadedData?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
176
+ onLoadedDataCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
177
+ onLoadedMetadata?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
178
+ onLoadedMetadataCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
179
+ onLoadStart?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
180
+ onLoadStartCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
181
+ onPause?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
182
+ onPauseCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
183
+ onPlay?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
184
+ onPlayCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
185
+ onPlaying?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
186
+ onPlayingCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
187
+ onProgress?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
188
+ onProgressCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
189
+ onRateChange?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
190
+ onRateChangeCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
191
+ onResize?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
192
+ onResizeCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
193
+ onSeeked?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
194
+ onSeekedCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
195
+ onSeeking?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
196
+ onSeekingCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
197
+ onStalled?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
198
+ onStalledCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
199
+ onSuspend?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
200
+ onSuspendCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
201
+ onTimeUpdate?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
202
+ onTimeUpdateCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
203
+ onVolumeChange?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
204
+ onVolumeChangeCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
205
+ onWaiting?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
206
+ onWaitingCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
207
+ onAuxClick?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
208
+ onAuxClickCapture?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
209
+ onClick?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
210
+ onClickCapture?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
211
+ onContextMenu?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
212
+ onContextMenuCapture?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
213
+ onDoubleClick?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
214
+ onDoubleClickCapture?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
215
+ onDrag?: import('react').DragEventHandler<HTMLInputElement> | undefined;
216
+ onDragCapture?: import('react').DragEventHandler<HTMLInputElement> | undefined;
217
+ onDragEnd?: import('react').DragEventHandler<HTMLInputElement> | undefined;
218
+ onDragEndCapture?: import('react').DragEventHandler<HTMLInputElement> | undefined;
219
+ onDragEnter?: import('react').DragEventHandler<HTMLInputElement> | undefined;
220
+ onDragEnterCapture?: import('react').DragEventHandler<HTMLInputElement> | undefined;
221
+ onDragExit?: import('react').DragEventHandler<HTMLInputElement> | undefined;
222
+ onDragExitCapture?: import('react').DragEventHandler<HTMLInputElement> | undefined;
223
+ onDragLeave?: import('react').DragEventHandler<HTMLInputElement> | undefined;
224
+ onDragLeaveCapture?: import('react').DragEventHandler<HTMLInputElement> | undefined;
225
+ onDragOver?: import('react').DragEventHandler<HTMLInputElement> | undefined;
226
+ onDragOverCapture?: import('react').DragEventHandler<HTMLInputElement> | undefined;
227
+ onDragStart?: import('react').DragEventHandler<HTMLInputElement> | undefined;
228
+ onDragStartCapture?: import('react').DragEventHandler<HTMLInputElement> | undefined;
229
+ onDrop?: import('react').DragEventHandler<HTMLInputElement> | undefined;
230
+ onDropCapture?: import('react').DragEventHandler<HTMLInputElement> | undefined;
231
+ onMouseDown?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
232
+ onMouseDownCapture?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
233
+ onMouseEnter?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
234
+ onMouseLeave?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
235
+ onMouseMove?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
236
+ onMouseMoveCapture?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
237
+ onMouseOut?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
238
+ onMouseOutCapture?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
239
+ onMouseOver?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
240
+ onMouseOverCapture?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
241
+ onMouseUp?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
242
+ onMouseUpCapture?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
243
+ onSelect?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
244
+ onSelectCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
245
+ onTouchCancel?: import('react').TouchEventHandler<HTMLInputElement> | undefined;
246
+ onTouchCancelCapture?: import('react').TouchEventHandler<HTMLInputElement> | undefined;
247
+ onTouchEnd?: import('react').TouchEventHandler<HTMLInputElement> | undefined;
248
+ onTouchEndCapture?: import('react').TouchEventHandler<HTMLInputElement> | undefined;
249
+ onTouchMove?: import('react').TouchEventHandler<HTMLInputElement> | undefined;
250
+ onTouchMoveCapture?: import('react').TouchEventHandler<HTMLInputElement> | undefined;
251
+ onTouchStart?: import('react').TouchEventHandler<HTMLInputElement> | undefined;
252
+ onTouchStartCapture?: import('react').TouchEventHandler<HTMLInputElement> | undefined;
253
+ onPointerDown?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
254
+ onPointerDownCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
255
+ onPointerMove?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
256
+ onPointerMoveCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
257
+ onPointerUp?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
258
+ onPointerUpCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
259
+ onPointerCancel?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
260
+ onPointerCancelCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
261
+ onPointerEnter?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
262
+ onPointerLeave?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
263
+ onPointerOver?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
264
+ onPointerOverCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
265
+ onPointerOut?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
266
+ onPointerOutCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
267
+ onGotPointerCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
268
+ onGotPointerCaptureCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
269
+ onLostPointerCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
270
+ onLostPointerCaptureCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
271
+ onScroll?: import('react').UIEventHandler<HTMLInputElement> | undefined;
272
+ onScrollCapture?: import('react').UIEventHandler<HTMLInputElement> | undefined;
273
+ onWheel?: import('react').WheelEventHandler<HTMLInputElement> | undefined;
274
+ onWheelCapture?: import('react').WheelEventHandler<HTMLInputElement> | undefined;
275
+ onAnimationStart?: import('react').AnimationEventHandler<HTMLInputElement> | undefined;
276
+ onAnimationStartCapture?: import('react').AnimationEventHandler<HTMLInputElement> | undefined;
277
+ onAnimationEnd?: import('react').AnimationEventHandler<HTMLInputElement> | undefined;
278
+ onAnimationEndCapture?: import('react').AnimationEventHandler<HTMLInputElement> | undefined;
279
+ onAnimationIteration?: import('react').AnimationEventHandler<HTMLInputElement> | undefined;
280
+ onAnimationIterationCapture?: import('react').AnimationEventHandler<HTMLInputElement> | undefined;
281
+ onTransitionEnd?: import('react').TransitionEventHandler<HTMLInputElement> | undefined;
282
+ onTransitionEndCapture?: import('react').TransitionEventHandler<HTMLInputElement> | undefined;
283
+ list?: string | undefined;
284
+ accept?: string | undefined;
285
+ alt?: string | undefined;
286
+ autoComplete?: import('react').HTMLInputAutoCompleteAttribute | undefined;
287
+ capture?: boolean | "user" | "environment" | undefined;
288
+ checked?: boolean | undefined;
289
+ enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
290
+ height?: number | string | undefined;
291
+ max?: number | string | undefined;
292
+ maxLength?: number | undefined;
293
+ min?: number | string | undefined;
294
+ minLength?: number | undefined;
295
+ multiple?: boolean | undefined;
296
+ placeholder?: string | undefined;
297
+ required?: boolean | undefined;
298
+ src?: string | undefined;
299
+ step?: number | string | undefined;
300
+ width?: number | string | undefined;
301
+ } & {
302
+ className?: string;
303
+ label?: string;
304
+ status?: EInputStatus | `${EInputStatus}`;
305
+ caption?: string;
306
+ autofocus?: boolean;
307
+ readonly?: boolean;
308
+ addonLeft?: import('react').ReactNode;
309
+ addonRight?: import('react').ReactNode;
310
+ size?: EInputSize | `${EInputSize}`;
311
+ } & {
312
+ children?: import('react').ReactNode | undefined;
313
+ } & import('react').RefAttributes<HTMLInputElement>>>;
314
+ parameters: {
315
+ layout: string;
316
+ };
317
+ tags: string[];
318
+ argTypes: {};
319
+ args: {
320
+ onClick: import('@vitest/spy').Mock<[event: import('react').MouseEvent<HTMLInputElement, MouseEvent>], void>;
321
+ size: EInputSize.L;
322
+ status: EInputStatus.Alert;
323
+ };
324
+ };
325
+ export default meta;
326
+ type Story = StoryObj<typeof meta>;
327
+ export declare const Primary: Story;
328
+ export declare const Alert: Story;
329
+ export declare const Success: Story;
@@ -0,0 +1,10 @@
1
+ export declare enum EInputStatus {
2
+ Alert = "alert",
3
+ Success = "success",
4
+ Default = "default"
5
+ }
6
+ export declare enum EInputSize {
7
+ S = "s",
8
+ M = "m",
9
+ L = "l"
10
+ }
@@ -0,0 +1,5 @@
1
+ var e = /* @__PURE__ */ ((r) => (r.Alert = "alert", r.Success = "success", r.Default = "default", r))(e || {}), l = /* @__PURE__ */ ((r) => (r.S = "s", r.M = "m", r.L = "l", r))(l || {});
2
+ export {
3
+ l as EInputSize,
4
+ e as EInputStatus
5
+ };
@@ -0,0 +1,77 @@
1
+ import { InputHTMLAttributes, ReactNode } from 'react';
2
+ import { EInputSize, EInputStatus } from './constants';
3
+
4
+ type HTMLInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'readOnly' | 'size'>;
5
+ export type TProps = HTMLInputProps & {
6
+ className?: string;
7
+ /**
8
+ * An optional label for the input.
9
+ */
10
+ label?: string;
11
+ /**
12
+ * The status of the input. Can be one of 'alert', 'success', or 'default'.
13
+ */
14
+ status?: EInputStatus | `${EInputStatus}`;
15
+ /**
16
+ * An optional caption to provide additional information or instructions for the input.
17
+ */
18
+ caption?: string;
19
+ /**
20
+ * Whether the input should be focused automatically on mount.
21
+ */
22
+ autofocus?: boolean;
23
+ /**
24
+ * Whether the input should be read-only.
25
+ */
26
+ readonly?: boolean;
27
+ /**
28
+ * An optional React node to display on the left side of the input.
29
+ */
30
+ addonLeft?: ReactNode;
31
+ /**
32
+ * An optional React node to display on the right side of the input.
33
+ */
34
+ addonRight?: ReactNode;
35
+ /**
36
+ * The size of the input.
37
+ */
38
+ size?: EInputSize | `${EInputSize}`;
39
+ };
40
+ export declare const Input: import('react').MemoExoticComponent<import('react').ForwardRefExoticComponent<HTMLInputProps & {
41
+ className?: string;
42
+ /**
43
+ * An optional label for the input.
44
+ */
45
+ label?: string;
46
+ /**
47
+ * The status of the input. Can be one of 'alert', 'success', or 'default'.
48
+ */
49
+ status?: EInputStatus | `${EInputStatus}`;
50
+ /**
51
+ * An optional caption to provide additional information or instructions for the input.
52
+ */
53
+ caption?: string;
54
+ /**
55
+ * Whether the input should be focused automatically on mount.
56
+ */
57
+ autofocus?: boolean;
58
+ /**
59
+ * Whether the input should be read-only.
60
+ */
61
+ readonly?: boolean;
62
+ /**
63
+ * An optional React node to display on the left side of the input.
64
+ */
65
+ addonLeft?: ReactNode;
66
+ /**
67
+ * An optional React node to display on the right side of the input.
68
+ */
69
+ addonRight?: ReactNode;
70
+ /**
71
+ * The size of the input.
72
+ */
73
+ size?: EInputSize | `${EInputSize}`;
74
+ } & {
75
+ children?: ReactNode | undefined;
76
+ } & import('react').RefAttributes<HTMLInputElement>>>;
77
+ export {};