@dss-kit/ui-kit 0.0.26 → 0.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/builders/Box/Box.d.ts +111 -0
- package/dist/components/builders/Box/Box.d.ts.map +1 -0
- package/dist/components/builders/Box/index.d.ts +2 -0
- package/dist/components/builders/Box/index.d.ts.map +1 -0
- package/dist/components/builders/Loader/Loader.d.ts +7 -0
- package/dist/components/builders/Loader/Loader.d.ts.map +1 -0
- package/dist/components/builders/Loader/index.d.ts +2 -0
- package/dist/components/builders/Loader/index.d.ts.map +1 -0
- package/dist/components/builders/Text/Text.d.ts +287 -1
- package/dist/components/builders/Text/Text.d.ts.map +1 -1
- package/dist/components/builders/index.d.ts +1 -0
- package/dist/components/builders/index.d.ts.map +1 -1
- package/dist/components/controls/Button/Button.d.ts +91 -0
- package/dist/components/controls/Button/Button.d.ts.map +1 -0
- package/dist/components/controls/Button/Button.stories.d.ts +14 -0
- package/dist/components/controls/Button/Button.stories.d.ts.map +1 -0
- package/dist/components/controls/Button/index.d.ts +3 -0
- package/dist/components/controls/Button/index.d.ts.map +1 -0
- package/dist/components/controls/Button/styles.d.ts +8 -0
- package/dist/components/controls/Button/styles.d.ts.map +1 -0
- package/dist/components/controls/index.d.ts +1 -0
- package/dist/components/controls/index.d.ts.map +1 -1
- package/dist/providers/ThemeProviderScoped/ThemeProviderScoped.d.ts +1 -1
- package/dist/providers/ThemeProviderScoped/ThemeProviderScoped.d.ts.map +1 -1
- package/dist/providers/ThemeProviderScoped/ThemeProviderScoped.types.d.ts +0 -1
- package/dist/providers/ThemeProviderScoped/ThemeProviderScoped.types.d.ts.map +1 -1
- package/dist/root.css +1 -1
- package/dist/types/tokens.types.d.ts +12 -1
- package/dist/types/tokens.types.d.ts.map +1 -1
- package/dist/ui-kit.cjs.js +2 -2
- package/dist/ui-kit.cjs.js.map +1 -1
- package/dist/ui-kit.css +1 -1
- package/dist/ui-kit.es.js +5721 -760
- package/dist/ui-kit.es.js.map +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Тип для описания отступов и размеров
|
|
4
|
+
*/
|
|
5
|
+
type Spacing = number | string;
|
|
6
|
+
/**
|
|
7
|
+
* Интерфейс для всех свойств стилизации Box компонента
|
|
8
|
+
*/
|
|
9
|
+
type BoxSpacers = {
|
|
10
|
+
/** Высота элемента. Может быть числом, строкой, "auto", "full" (100%) или "screen" (100vh) */
|
|
11
|
+
h?: number | string | "auto" | "full" | "screen";
|
|
12
|
+
/** Ширина элемента. Может быть числом, строкой, "auto", "full" (100%) или "screen" (100vw) */
|
|
13
|
+
w?: number | string | "auto" | "full" | "screen";
|
|
14
|
+
/** Внешний отступ со всех сторон */
|
|
15
|
+
m?: Spacing;
|
|
16
|
+
/** Внешний отступ по горизонтали (слева и справа) */
|
|
17
|
+
mx?: Spacing;
|
|
18
|
+
/** Внешний отступ по вертикали (сверху и снизу) */
|
|
19
|
+
my?: Spacing;
|
|
20
|
+
/** Внешний отступ сверху */
|
|
21
|
+
mt?: Spacing;
|
|
22
|
+
/** Внешний отступ справа */
|
|
23
|
+
mr?: Spacing;
|
|
24
|
+
/** Внешний отступ снизу */
|
|
25
|
+
mb?: Spacing;
|
|
26
|
+
/** Внешний отступ слева */
|
|
27
|
+
ml?: Spacing;
|
|
28
|
+
/** Внутренний отступ со всех сторон */
|
|
29
|
+
p?: Spacing;
|
|
30
|
+
/** Внутренний отступ по горизонтали (слева и справа) */
|
|
31
|
+
px?: Spacing;
|
|
32
|
+
/** Внутренний отступ по вертикали (сверху и снизу) */
|
|
33
|
+
py?: Spacing;
|
|
34
|
+
/** Внутренний отступ сверху */
|
|
35
|
+
pt?: Spacing;
|
|
36
|
+
/** Внутренний отступ справа */
|
|
37
|
+
pr?: Spacing;
|
|
38
|
+
/** Внутренний отступ снизу */
|
|
39
|
+
pb?: Spacing;
|
|
40
|
+
/** Внутренний отступ слева */
|
|
41
|
+
pl?: Spacing;
|
|
42
|
+
gap?: Spacing;
|
|
43
|
+
/** Расстояние между колонками в flex-контейнере */
|
|
44
|
+
xGap?: Spacing;
|
|
45
|
+
/** Расстояние между строками в flex-контейнере */
|
|
46
|
+
yGap?: Spacing;
|
|
47
|
+
/** Если true, flex-direction будет row, иначе column */
|
|
48
|
+
row?: boolean;
|
|
49
|
+
/** Значение flex свойства. true эквивалентно 1 */
|
|
50
|
+
flex?: true | number;
|
|
51
|
+
/** Абсолютное позиционирование на весь контейнер */
|
|
52
|
+
absoluteFill?: boolean;
|
|
53
|
+
/** Центрирование по горизонтали и вертикали */
|
|
54
|
+
center?: boolean;
|
|
55
|
+
justifyContent?: React.CSSProperties["justifyContent"];
|
|
56
|
+
alignItems?: React.CSSProperties["alignItems"];
|
|
57
|
+
alignSelf?: React.CSSProperties["alignSelf"];
|
|
58
|
+
borderWidth?: Spacing;
|
|
59
|
+
borderBottomWidth?: Spacing;
|
|
60
|
+
borderColor?: string;
|
|
61
|
+
borderRadius?: Spacing;
|
|
62
|
+
zIndex?: number;
|
|
63
|
+
overflow?: React.CSSProperties["overflow"];
|
|
64
|
+
minWidth?: Spacing;
|
|
65
|
+
minHeight?: Spacing;
|
|
66
|
+
maxWidth?: Spacing;
|
|
67
|
+
maxHeight?: Spacing;
|
|
68
|
+
flexWrap?: React.CSSProperties["flexWrap"];
|
|
69
|
+
flexGrow?: number;
|
|
70
|
+
flexShrink?: number;
|
|
71
|
+
flexBasis?: Spacing;
|
|
72
|
+
backgroundColor?: string;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Пропсы для компонента Box
|
|
76
|
+
* Наследует все BoxSpacers свойства и стандартные HTML div атрибуты
|
|
77
|
+
*/
|
|
78
|
+
export interface BoxProps extends BoxSpacers, Omit<ComponentProps<"div">, keyof BoxSpacers> {
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Универсальный Box (display="flex") компонент для создания flex-контейнеров с удобными пропсами для стилизации.
|
|
82
|
+
*
|
|
83
|
+
* Компонент предоставляет простой API для работы с:
|
|
84
|
+
* - Размерами (width, height)
|
|
85
|
+
* - Отступами (margin, padding)
|
|
86
|
+
* - Flex-свойствами (justifyContent, alignItems, flex, gap и т.д.)
|
|
87
|
+
* - Границами (borderWidth, borderColor, borderRadius)
|
|
88
|
+
* - Позиционированием и переполнением
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* ```tsx
|
|
92
|
+
* // Простой контейнер с отступами
|
|
93
|
+
* <Box p={16} m={8}>
|
|
94
|
+
* <div>Контент</div>
|
|
95
|
+
* </Box>
|
|
96
|
+
*
|
|
97
|
+
* // Горизонтальный flex-контейнер с выравниванием по центру
|
|
98
|
+
* <Box row justifyContent="center" alignItems="center" gap={12}>
|
|
99
|
+
* <button>Кнопка 1</button>
|
|
100
|
+
* <button>Кнопка 2</button>
|
|
101
|
+
* </Box>
|
|
102
|
+
*
|
|
103
|
+
* // Полноэкранный контейнер
|
|
104
|
+
* <Box h="screen" w="full" backgroundColor="#f0f0f0">
|
|
105
|
+
* <div>Полноэкранный контент</div>
|
|
106
|
+
* </Box>
|
|
107
|
+
* ```
|
|
108
|
+
*/
|
|
109
|
+
export declare const Box: import('react').ForwardRefExoticComponent<Omit<BoxProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
110
|
+
export {};
|
|
111
|
+
//# sourceMappingURL=Box.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../../src/components/builders/Box/Box.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/builders/Box/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Loader.d.ts","sourceRoot":"","sources":["../../../../src/components/builders/Loader/Loader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,WAAW;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CASjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/builders/Loader/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
|
@@ -28,7 +28,7 @@ export declare const Text: React.ForwardRefExoticComponent<Omit<React.HTMLAttrib
|
|
|
28
28
|
/** @default "medium" */
|
|
29
29
|
fontWeight?: FontWeight;
|
|
30
30
|
/** @default "p" */
|
|
31
|
-
tag?: "
|
|
31
|
+
tag?: "p" | "h1" | "h2" | "h3" | "span" | undefined;
|
|
32
32
|
/** @default "primary" */
|
|
33
33
|
colorName?: TextColor;
|
|
34
34
|
/** Opacity при клике (от 0 до 1) */
|
|
@@ -37,5 +37,291 @@ export declare const Text: React.ForwardRefExoticComponent<Omit<React.HTMLAttrib
|
|
|
37
37
|
opacityDuration?: number;
|
|
38
38
|
style?: React.CSSProperties;
|
|
39
39
|
} & React.RefAttributes<HTMLParagraphElement>>;
|
|
40
|
+
export declare const AnimatedText: React.ComponentType<Omit<{
|
|
41
|
+
center?: boolean | undefined;
|
|
42
|
+
left?: boolean | undefined;
|
|
43
|
+
right?: boolean | undefined;
|
|
44
|
+
hidden?: boolean | undefined;
|
|
45
|
+
mt?: string | number | undefined;
|
|
46
|
+
mb?: string | number | undefined;
|
|
47
|
+
flex?: string | number | undefined;
|
|
48
|
+
slot?: string | undefined;
|
|
49
|
+
title?: string | undefined;
|
|
50
|
+
ref?: React.LegacyRef<HTMLParagraphElement> | undefined;
|
|
51
|
+
key?: React.Key | null | undefined;
|
|
52
|
+
defaultChecked?: boolean | undefined;
|
|
53
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
54
|
+
suppressContentEditableWarning?: boolean | undefined;
|
|
55
|
+
suppressHydrationWarning?: boolean | undefined;
|
|
56
|
+
accessKey?: string | undefined;
|
|
57
|
+
autoCapitalize?: (string & {}) | "none" | "off" | "on" | "sentences" | "words" | "characters" | undefined;
|
|
58
|
+
autoFocus?: boolean | undefined;
|
|
59
|
+
className?: string | undefined;
|
|
60
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
61
|
+
contextMenu?: string | undefined;
|
|
62
|
+
dir?: string | undefined;
|
|
63
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
64
|
+
enterKeyHint?: "search" | "enter" | "done" | "go" | "next" | "previous" | "send" | undefined;
|
|
65
|
+
id?: string | undefined;
|
|
66
|
+
lang?: string | undefined;
|
|
67
|
+
nonce?: string | undefined;
|
|
68
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
69
|
+
tabIndex?: number | undefined;
|
|
70
|
+
translate?: "yes" | "no" | undefined;
|
|
71
|
+
radioGroup?: string | undefined;
|
|
72
|
+
role?: React.AriaRole | undefined;
|
|
73
|
+
about?: string | undefined;
|
|
74
|
+
content?: string | undefined;
|
|
75
|
+
datatype?: string | undefined;
|
|
76
|
+
inlist?: any;
|
|
77
|
+
prefix?: string | undefined;
|
|
78
|
+
property?: string | undefined;
|
|
79
|
+
rel?: string | undefined;
|
|
80
|
+
resource?: string | undefined;
|
|
81
|
+
rev?: string | undefined;
|
|
82
|
+
typeof?: string | undefined;
|
|
83
|
+
vocab?: string | undefined;
|
|
84
|
+
autoCorrect?: string | undefined;
|
|
85
|
+
autoSave?: string | undefined;
|
|
86
|
+
color?: string | undefined;
|
|
87
|
+
itemProp?: string | undefined;
|
|
88
|
+
itemScope?: boolean | undefined;
|
|
89
|
+
itemType?: string | undefined;
|
|
90
|
+
itemID?: string | undefined;
|
|
91
|
+
itemRef?: string | undefined;
|
|
92
|
+
results?: number | undefined;
|
|
93
|
+
security?: string | undefined;
|
|
94
|
+
unselectable?: "off" | "on" | undefined;
|
|
95
|
+
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
96
|
+
is?: string | undefined;
|
|
97
|
+
exportparts?: string | undefined;
|
|
98
|
+
part?: string | undefined;
|
|
99
|
+
"aria-activedescendant"?: string | undefined;
|
|
100
|
+
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
101
|
+
"aria-autocomplete"?: "inline" | "none" | "list" | "both" | undefined;
|
|
102
|
+
"aria-braillelabel"?: string | undefined;
|
|
103
|
+
"aria-brailleroledescription"?: string | undefined;
|
|
104
|
+
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
105
|
+
"aria-checked"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
106
|
+
"aria-colcount"?: number | undefined;
|
|
107
|
+
"aria-colindex"?: number | undefined;
|
|
108
|
+
"aria-colindextext"?: string | undefined;
|
|
109
|
+
"aria-colspan"?: number | undefined;
|
|
110
|
+
"aria-controls"?: string | undefined;
|
|
111
|
+
"aria-current"?: boolean | "time" | "page" | "true" | "false" | "step" | "location" | "date" | undefined;
|
|
112
|
+
"aria-describedby"?: string | undefined;
|
|
113
|
+
"aria-description"?: string | undefined;
|
|
114
|
+
"aria-details"?: string | undefined;
|
|
115
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
116
|
+
"aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
117
|
+
"aria-errormessage"?: string | undefined;
|
|
118
|
+
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
119
|
+
"aria-flowto"?: string | undefined;
|
|
120
|
+
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
121
|
+
"aria-haspopup"?: boolean | "dialog" | "menu" | "grid" | "true" | "false" | "listbox" | "tree" | undefined;
|
|
122
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
123
|
+
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
124
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
125
|
+
"aria-label"?: string | undefined;
|
|
126
|
+
"aria-labelledby"?: string | undefined;
|
|
127
|
+
"aria-level"?: number | undefined;
|
|
128
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
129
|
+
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
130
|
+
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
131
|
+
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
132
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
133
|
+
"aria-owns"?: string | undefined;
|
|
134
|
+
"aria-placeholder"?: string | undefined;
|
|
135
|
+
"aria-posinset"?: number | undefined;
|
|
136
|
+
"aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
137
|
+
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
138
|
+
"aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
139
|
+
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
140
|
+
"aria-roledescription"?: string | undefined;
|
|
141
|
+
"aria-rowcount"?: number | undefined;
|
|
142
|
+
"aria-rowindex"?: number | undefined;
|
|
143
|
+
"aria-rowindextext"?: string | undefined;
|
|
144
|
+
"aria-rowspan"?: number | undefined;
|
|
145
|
+
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
146
|
+
"aria-setsize"?: number | undefined;
|
|
147
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
148
|
+
"aria-valuemax"?: number | undefined;
|
|
149
|
+
"aria-valuemin"?: number | undefined;
|
|
150
|
+
"aria-valuenow"?: number | undefined;
|
|
151
|
+
"aria-valuetext"?: string | undefined;
|
|
152
|
+
dangerouslySetInnerHTML?: {
|
|
153
|
+
__html: string | TrustedHTML;
|
|
154
|
+
} | undefined;
|
|
155
|
+
onCopy?: React.ClipboardEventHandler<HTMLElement> | undefined;
|
|
156
|
+
onCopyCapture?: React.ClipboardEventHandler<HTMLElement> | undefined;
|
|
157
|
+
onCut?: React.ClipboardEventHandler<HTMLElement> | undefined;
|
|
158
|
+
onCutCapture?: React.ClipboardEventHandler<HTMLElement> | undefined;
|
|
159
|
+
onPaste?: React.ClipboardEventHandler<HTMLElement> | undefined;
|
|
160
|
+
onPasteCapture?: React.ClipboardEventHandler<HTMLElement> | undefined;
|
|
161
|
+
onCompositionEnd?: React.CompositionEventHandler<HTMLElement> | undefined;
|
|
162
|
+
onCompositionEndCapture?: React.CompositionEventHandler<HTMLElement> | undefined;
|
|
163
|
+
onCompositionStart?: React.CompositionEventHandler<HTMLElement> | undefined;
|
|
164
|
+
onCompositionStartCapture?: React.CompositionEventHandler<HTMLElement> | undefined;
|
|
165
|
+
onCompositionUpdate?: React.CompositionEventHandler<HTMLElement> | undefined;
|
|
166
|
+
onCompositionUpdateCapture?: React.CompositionEventHandler<HTMLElement> | undefined;
|
|
167
|
+
onFocus?: React.FocusEventHandler<HTMLElement> | undefined;
|
|
168
|
+
onFocusCapture?: React.FocusEventHandler<HTMLElement> | undefined;
|
|
169
|
+
onBlur?: React.FocusEventHandler<HTMLElement> | undefined;
|
|
170
|
+
onBlurCapture?: React.FocusEventHandler<HTMLElement> | undefined;
|
|
171
|
+
onChange?: React.FormEventHandler<HTMLElement> | undefined;
|
|
172
|
+
onChangeCapture?: React.FormEventHandler<HTMLElement> | undefined;
|
|
173
|
+
onBeforeInput?: React.InputEventHandler<HTMLElement> | undefined;
|
|
174
|
+
onBeforeInputCapture?: React.FormEventHandler<HTMLElement> | undefined;
|
|
175
|
+
onInput?: React.FormEventHandler<HTMLElement> | undefined;
|
|
176
|
+
onInputCapture?: React.FormEventHandler<HTMLElement> | undefined;
|
|
177
|
+
onReset?: React.FormEventHandler<HTMLElement> | undefined;
|
|
178
|
+
onResetCapture?: React.FormEventHandler<HTMLElement> | undefined;
|
|
179
|
+
onSubmit?: React.FormEventHandler<HTMLElement> | undefined;
|
|
180
|
+
onSubmitCapture?: React.FormEventHandler<HTMLElement> | undefined;
|
|
181
|
+
onInvalid?: React.FormEventHandler<HTMLElement> | undefined;
|
|
182
|
+
onInvalidCapture?: React.FormEventHandler<HTMLElement> | undefined;
|
|
183
|
+
onLoad?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
184
|
+
onLoadCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
185
|
+
onError?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
186
|
+
onErrorCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
187
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLElement> | undefined;
|
|
188
|
+
onKeyDownCapture?: React.KeyboardEventHandler<HTMLElement> | undefined;
|
|
189
|
+
onKeyPress?: React.KeyboardEventHandler<HTMLElement> | undefined;
|
|
190
|
+
onKeyPressCapture?: React.KeyboardEventHandler<HTMLElement> | undefined;
|
|
191
|
+
onKeyUp?: React.KeyboardEventHandler<HTMLElement> | undefined;
|
|
192
|
+
onKeyUpCapture?: React.KeyboardEventHandler<HTMLElement> | undefined;
|
|
193
|
+
onAbort?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
194
|
+
onAbortCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
195
|
+
onCanPlay?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
196
|
+
onCanPlayCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
197
|
+
onCanPlayThrough?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
198
|
+
onCanPlayThroughCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
199
|
+
onDurationChange?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
200
|
+
onDurationChangeCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
201
|
+
onEmptied?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
202
|
+
onEmptiedCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
203
|
+
onEncrypted?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
204
|
+
onEncryptedCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
205
|
+
onEnded?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
206
|
+
onEndedCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
207
|
+
onLoadedData?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
208
|
+
onLoadedDataCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
209
|
+
onLoadedMetadata?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
210
|
+
onLoadedMetadataCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
211
|
+
onLoadStart?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
212
|
+
onLoadStartCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
213
|
+
onPause?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
214
|
+
onPauseCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
215
|
+
onPlay?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
216
|
+
onPlayCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
217
|
+
onPlaying?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
218
|
+
onPlayingCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
219
|
+
onProgress?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
220
|
+
onProgressCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
221
|
+
onRateChange?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
222
|
+
onRateChangeCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
223
|
+
onSeeked?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
224
|
+
onSeekedCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
225
|
+
onSeeking?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
226
|
+
onSeekingCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
227
|
+
onStalled?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
228
|
+
onStalledCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
229
|
+
onSuspend?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
230
|
+
onSuspendCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
231
|
+
onTimeUpdate?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
232
|
+
onTimeUpdateCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
233
|
+
onVolumeChange?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
234
|
+
onVolumeChangeCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
235
|
+
onWaiting?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
236
|
+
onWaitingCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
237
|
+
onAuxClick?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
238
|
+
onAuxClickCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
239
|
+
onClick?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
240
|
+
onClickCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
241
|
+
onContextMenu?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
242
|
+
onContextMenuCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
243
|
+
onDoubleClick?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
244
|
+
onDoubleClickCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
245
|
+
onDragCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
246
|
+
onDragEndCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
247
|
+
onDragEnter?: React.DragEventHandler<HTMLElement> | undefined;
|
|
248
|
+
onDragEnterCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
249
|
+
onDragExit?: React.DragEventHandler<HTMLElement> | undefined;
|
|
250
|
+
onDragExitCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
251
|
+
onDragLeave?: React.DragEventHandler<HTMLElement> | undefined;
|
|
252
|
+
onDragLeaveCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
253
|
+
onDragOver?: React.DragEventHandler<HTMLElement> | undefined;
|
|
254
|
+
onDragOverCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
255
|
+
onDragStartCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
256
|
+
onDrop?: React.DragEventHandler<HTMLElement> | undefined;
|
|
257
|
+
onDropCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
258
|
+
onMouseDown?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
259
|
+
onMouseDownCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
260
|
+
onMouseEnter?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
261
|
+
onMouseLeave?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
262
|
+
onMouseMove?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
263
|
+
onMouseMoveCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
264
|
+
onMouseOut?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
265
|
+
onMouseOutCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
266
|
+
onMouseOver?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
267
|
+
onMouseOverCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
268
|
+
onMouseUp?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
269
|
+
onMouseUpCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
270
|
+
onSelect?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
271
|
+
onSelectCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
272
|
+
onTouchCancel?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
273
|
+
onTouchCancelCapture?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
274
|
+
onTouchEnd?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
275
|
+
onTouchEndCapture?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
276
|
+
onTouchMove?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
277
|
+
onTouchMoveCapture?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
278
|
+
onTouchStart?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
279
|
+
onTouchStartCapture?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
280
|
+
onPointerDown?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
281
|
+
onPointerDownCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
282
|
+
onPointerMove?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
283
|
+
onPointerMoveCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
284
|
+
onPointerUp?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
285
|
+
onPointerUpCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
286
|
+
onPointerCancel?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
287
|
+
onPointerCancelCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
288
|
+
onPointerEnter?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
289
|
+
onPointerLeave?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
290
|
+
onPointerOver?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
291
|
+
onPointerOverCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
292
|
+
onPointerOut?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
293
|
+
onPointerOutCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
294
|
+
onGotPointerCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
295
|
+
onGotPointerCaptureCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
296
|
+
onLostPointerCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
297
|
+
onLostPointerCaptureCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
298
|
+
onScroll?: React.UIEventHandler<HTMLElement> | undefined;
|
|
299
|
+
onScrollCapture?: React.UIEventHandler<HTMLElement> | undefined;
|
|
300
|
+
onWheel?: React.WheelEventHandler<HTMLElement> | undefined;
|
|
301
|
+
onWheelCapture?: React.WheelEventHandler<HTMLElement> | undefined;
|
|
302
|
+
onAnimationStartCapture?: React.AnimationEventHandler<HTMLElement> | undefined;
|
|
303
|
+
onAnimationEnd?: React.AnimationEventHandler<HTMLElement> | undefined;
|
|
304
|
+
onAnimationEndCapture?: React.AnimationEventHandler<HTMLElement> | undefined;
|
|
305
|
+
onAnimationIteration?: React.AnimationEventHandler<HTMLElement> | undefined;
|
|
306
|
+
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLElement> | undefined;
|
|
307
|
+
onTransitionEnd?: React.TransitionEventHandler<HTMLElement> | undefined;
|
|
308
|
+
onTransitionEndCapture?: React.TransitionEventHandler<HTMLElement> | undefined;
|
|
309
|
+
cursor?: import("csstype").Property.Cursor | undefined;
|
|
310
|
+
fontWeight?: FontWeight | undefined;
|
|
311
|
+
textOverflow?: import("csstype").Property.TextOverflow | undefined;
|
|
312
|
+
whiteSpace?: import("csstype").Property.WhiteSpace | undefined;
|
|
313
|
+
wordBreak?: import("csstype").Property.WordBreak | undefined;
|
|
314
|
+
capitalize?: boolean | undefined;
|
|
315
|
+
lowercase?: boolean | undefined;
|
|
316
|
+
uppercase?: boolean | undefined;
|
|
317
|
+
decoration?: import("csstype").Property.TextDecoration<string | number> | undefined;
|
|
318
|
+
variant?: TextVariant | undefined;
|
|
319
|
+
tag?: "p" | "h1" | "h2" | "h3" | "span" | undefined;
|
|
320
|
+
colorName?: TextColor | undefined;
|
|
321
|
+
clickOpacity?: number | undefined;
|
|
322
|
+
opacityDuration?: number | undefined;
|
|
323
|
+
} & import('framer-motion').MotionProps, "children"> & {
|
|
324
|
+
children?: React.ReactNode | import('motion-dom').MotionValue<number> | import('motion-dom').MotionValue<string>;
|
|
325
|
+
}>;
|
|
40
326
|
export {};
|
|
41
327
|
//# sourceMappingURL=Text.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../src/components/builders/Text/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../src/components/builders/Text/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAIpD,OAAO,EACL,UAAU,EACV,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,aAAa,EACb,YAAY,EACZ,WAAW,EACZ,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,gBAAgB,EAAiB,MAAM,uBAAuB,CAAC;AAIxE,MAAM,MAAM,SAAS,GACjB,WAAW,GACX,aAAa,GACb,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,WAAW,GACX,UAAU,GACV,WAAW,CAAC;AAEhB,MAAM,MAAM,WAAW,GACnB,SAAS,GACT,SAAS,GACT,SAAS,GACT,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,QAAQ,GACR,QAAQ,GACR,WAAW,GACX,WAAW,CAAC;AAEhB,KAAK,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC;AAE7D,KAAK,OAAO,GAAG,MAAM,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEjD,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,OAAO,GAAG,MAAM,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,IAAI,IAAI,CACjF,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EACjC,WAAW,CACZ,GACC,gBAAgB,GAAG;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wBAAwB;IACxB,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,wBAAwB;IACxB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,mBAAmB;IACnB,GAAG,CAAC,EAAE,CAAC,CAAC;IACR,yBAAyB;IACzB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,oCAAoC;IACpC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yCAAyC;IACzC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,CAAC;AAEJ,eAAO,MAAM,IAAI;gBAhBD,MAAM;IAClB,wBAAwB;cACd,WAAW;IACrB,wBAAwB;iBACX,UAAU;IACvB,mBAAmB;;IAEnB,yBAAyB;gBACb,SAAS;IACrB,oCAAoC;mBACrB,MAAM;IACrB,yCAAyC;sBACvB,MAAM;YAChB,KAAK,CAAC,aAAa;8CA2D7B,CAAC;AAIH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/builders/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/builders/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { default as React, FC } from 'react';
|
|
2
|
+
import { HTMLMotionProps } from 'framer-motion';
|
|
3
|
+
import { AccentType, CornerRadius, NegativeType, NeutralType, PositiveType, Size, WarningType } from '../../../types/tokens.types';
|
|
4
|
+
/**
|
|
5
|
+
* Тип варианта кнопки
|
|
6
|
+
* - `clear` — прозрачная, без границ и фона
|
|
7
|
+
* - `filled` — заливка цветом (по умолчанию)
|
|
8
|
+
* - `outline` — прозрачная с обводкой
|
|
9
|
+
*/
|
|
10
|
+
export type ButtonType = "clear" | "filled" | "outline";
|
|
11
|
+
/**
|
|
12
|
+
* Цветовая схема кнопки.
|
|
13
|
+
* Использует системные токены:
|
|
14
|
+
* - `accent` — акцентный цвет
|
|
15
|
+
* - `neutral` — нейтральный
|
|
16
|
+
* - `negative` — негативный (ошибки/отмена)
|
|
17
|
+
* - `positive` — позитивный (успех)
|
|
18
|
+
* - `warning` — предупреждение
|
|
19
|
+
*/
|
|
20
|
+
export type ButtonColor = AccentType | NeutralType | NegativeType | PositiveType | WarningType;
|
|
21
|
+
export interface ButtonProps extends Omit<HTMLMotionProps<"button">, "type"> {
|
|
22
|
+
/**
|
|
23
|
+
* Отключает кнопку.
|
|
24
|
+
* При `true` блокирует клики, добавляет стиль `not-allowed` и понижает прозрачность.
|
|
25
|
+
* @default false
|
|
26
|
+
*/
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Состояние загрузки.
|
|
30
|
+
* При `true` текст скрывается и отображается Loader.
|
|
31
|
+
* @default false
|
|
32
|
+
*/
|
|
33
|
+
loading?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Вариант отображения кнопки.
|
|
36
|
+
* @default "filled"
|
|
37
|
+
*/
|
|
38
|
+
variant?: ButtonType;
|
|
39
|
+
/**
|
|
40
|
+
* Цветовая схема (токен).
|
|
41
|
+
* @default "accent"
|
|
42
|
+
*/
|
|
43
|
+
color?: ButtonColor;
|
|
44
|
+
/**
|
|
45
|
+
* Скругление углов.
|
|
46
|
+
* Использует системные значения из CornerRadius.
|
|
47
|
+
* @default "lg"
|
|
48
|
+
*/
|
|
49
|
+
borderRadius?: CornerRadius;
|
|
50
|
+
/**
|
|
51
|
+
* Интенсивность цвета (градация).
|
|
52
|
+
* - `primary` — основной оттенок
|
|
53
|
+
* - `secondary` — вторичный оттенок
|
|
54
|
+
* @default "primary"
|
|
55
|
+
*/
|
|
56
|
+
intensity?: "primary" | "secondary";
|
|
57
|
+
wrapperClassName?: string;
|
|
58
|
+
buttonClassName?: string;
|
|
59
|
+
buttonDisabledClassName?: string;
|
|
60
|
+
textClassName?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Принудительно задать цвет фона (перекрывает токены).
|
|
63
|
+
*/
|
|
64
|
+
backgroundColor?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Принудительно задать цвет текста (перекрывает токены).
|
|
67
|
+
*/
|
|
68
|
+
textColor?: string;
|
|
69
|
+
/**
|
|
70
|
+
* Принудительно задать цвет рамки (перекрывает токены).
|
|
71
|
+
*/
|
|
72
|
+
borderColor?: string;
|
|
73
|
+
iconLeft?: React.ReactNode;
|
|
74
|
+
iconRight?: React.ReactNode;
|
|
75
|
+
/**
|
|
76
|
+
* Ширина кнопки.
|
|
77
|
+
* - `full` — 100%
|
|
78
|
+
* - `auto` — по содержимому
|
|
79
|
+
* - `number` — в px
|
|
80
|
+
* @default "full"
|
|
81
|
+
*/
|
|
82
|
+
width?: "full" | "auto" | number;
|
|
83
|
+
/**
|
|
84
|
+
* Размер кнопки (высота и размер текста).
|
|
85
|
+
* Доступны: `xs`, `sm`, `md`, `lg` (без `xl`).
|
|
86
|
+
* @default "md"
|
|
87
|
+
*/
|
|
88
|
+
size?: Exclude<Size, "xl">;
|
|
89
|
+
}
|
|
90
|
+
export declare const Button: FC<ButtonProps>;
|
|
91
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/controls/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,EAAW,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAU,MAAM,eAAe,CAAC;AAMxD,OAAO,KAAK,EACV,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,IAAI,EACJ,WAAW,EACZ,MAAM,sBAAsB,CAAC;AAI9B;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAC;AAExD;;;;;;;;GAQG;AACH,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,WAAW,GAAG,YAAY,GAAG,YAAY,GAAG,WAAW,CAAC;AAE/F,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC1E;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,OAAO,CAAC,EAAE,UAAU,CAAC;IAErB;;;OAGG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC;IAEpB;;;;OAIG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAE5B;;;;;OAKG;IACH,SAAS,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;IACpC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE5B;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IAEjC;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;CAC5B;AAED,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CAqHlC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Button } from './Button';
|
|
3
|
+
declare const meta: Meta<typeof Button>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Button>;
|
|
6
|
+
export declare const Filled: Story;
|
|
7
|
+
export declare const Outline: Story;
|
|
8
|
+
export declare const Clear: Story;
|
|
9
|
+
export declare const Disabled: Story;
|
|
10
|
+
export declare const Loading: Story;
|
|
11
|
+
export declare const WithIcon: Story;
|
|
12
|
+
export declare const AutoWidth: Story;
|
|
13
|
+
export declare const CustomColors: Story;
|
|
14
|
+
//# sourceMappingURL=Button.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/controls/Button/Button.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAIvD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CA6B7B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAC;AAErC,eAAO,MAAM,MAAM,EAAE,KAIpB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAInB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAMtB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAMtB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAMvB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAO1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/controls/Button/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CornerRadius, Size } from '../../../types/tokens.types';
|
|
2
|
+
import { ButtonColor, ButtonType } from './Button';
|
|
3
|
+
export declare const baseButton: string;
|
|
4
|
+
export declare const cornerRadiusValues: Record<CornerRadius, string>;
|
|
5
|
+
export declare const sizeValues: Record<Exclude<Size, "xl">, string>;
|
|
6
|
+
export declare const typeStyles: Record<ButtonType, string>;
|
|
7
|
+
export declare const getVariantStyles: (variant: ButtonType, color: ButtonColor, intensity: "primary" | "secondary", disabled?: boolean) => string;
|
|
8
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/controls/Button/styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAE/D,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAInD,eAAO,MAAM,UAAU,QAarB,CAAC;AAEH,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAa3D,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,MAAM,CAK1D,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAcjD,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAC3B,SAAS,UAAU,EACnB,OAAO,WAAW,EAClB,WAAW,SAAS,GAAG,WAAW,EAClC,WAAW,OAAO,WAsDnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/controls/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/controls/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IThemeProviderProps } from './ThemeProviderScoped.types.ts';
|
|
2
|
-
export declare function ThemeProviderScoped({ className, children
|
|
2
|
+
export declare function ThemeProviderScoped({ className, children }: IThemeProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=ThemeProviderScoped.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProviderScoped.d.ts","sourceRoot":"","sources":["../../../src/providers/ThemeProviderScoped/ThemeProviderScoped.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAI1E,wBAAgB,mBAAmB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"ThemeProviderScoped.d.ts","sourceRoot":"","sources":["../../../src/providers/ThemeProviderScoped/ThemeProviderScoped.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAI1E,wBAAgB,mBAAmB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,mBAAmB,2CAE/E"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
2
|
import { IClassnameProp } from '../../types';
|
|
3
3
|
export interface IThemeProviderProps extends IClassnameProp, PropsWithChildren {
|
|
4
|
-
theme?: 'dark' | 'light' | 'brand';
|
|
5
4
|
}
|
|
6
5
|
//# sourceMappingURL=ThemeProviderScoped.types.d.ts.map
|