polpo 0.1.1 → 0.1.2
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/.storybook/theme.ts +2 -2
- package/.turbo/turbo-lint.log +1 -1
- package/README.md +2 -5
- package/dist/chunk-CFYQBHH5.js +3 -0
- package/dist/chunk-CFYQBHH5.js.map +1 -0
- package/dist/chunk-MAWW6AA7.js +3 -0
- package/dist/chunk-MAWW6AA7.js.map +1 -0
- package/dist/get-modal-position-drle0OjP.d.cts +49 -0
- package/dist/get-modal-position-drle0OjP.d.ts +49 -0
- package/dist/helpers.cjs +1 -1
- package/dist/helpers.cjs.map +1 -1
- package/dist/helpers.d.cts +9 -2
- package/dist/helpers.d.ts +9 -2
- package/dist/helpers.js +1 -1
- package/dist/hooks.cjs +1 -1
- package/dist/hooks.cjs.map +1 -1
- package/dist/hooks.d.cts +59 -21
- package/dist/hooks.d.ts +59 -21
- package/dist/hooks.js +1 -1
- package/dist/ui.cjs +601 -389
- package/dist/ui.cjs.map +1 -1
- package/dist/ui.d.cts +97 -77
- package/dist/ui.d.ts +97 -77
- package/dist/ui.js +585 -373
- package/dist/ui.js.map +1 -1
- package/dist/use-modal-in-container-DiNW1PE_.d.cts +34 -0
- package/dist/use-modal-in-container-neGo-kMk.d.ts +34 -0
- package/package.json +2 -2
- package/src/components/buttons/button/button.stories.tsx +4 -4
- package/src/components/buttons/button/button.style.ts +10 -5
- package/src/components/buttons/button/button.tsx +7 -19
- package/src/components/cards/flip-card/flip-card.tsx +1 -1
- package/src/components/cursor/cursor.stories.tsx +35 -0
- package/src/components/cursor/cursor.style.ts +73 -0
- package/src/components/cursor/cursor.tsx +49 -0
- package/src/components/cursor/index.ts +1 -0
- package/src/components/form/checkbox/checkbox.stories.tsx +51 -0
- package/src/components/form/checkbox/checkbox.style.ts +73 -37
- package/src/components/form/checkbox/checkbox.tsx +38 -4
- package/src/components/form/field/field.stories.tsx +5 -1
- package/src/components/form/field/field.style.ts +12 -0
- package/src/components/form/field/field.tsx +3 -1
- package/src/components/form/field/field.types.ts +6 -0
- package/src/components/form/input-color/input-color.style.ts +5 -4
- package/src/components/form/input-color/input-color.tsx +41 -44
- package/src/components/form/radio/radio.stories.tsx +29 -5
- package/src/components/form/radio/radio.style.ts +45 -24
- package/src/components/form/radio/radio.tsx +22 -3
- package/src/components/form/select/options.tsx +119 -67
- package/src/components/form/select/select.stories.tsx +103 -42
- package/src/components/form/select/select.style.ts +10 -92
- package/src/components/form/select/select.tsx +19 -42
- package/src/components/form/select/select.types.ts +4 -21
- package/src/components/form/slider/slider.style.ts +2 -0
- package/src/components/icon/icons/social.tsx +17 -1
- package/src/components/index.ts +1 -0
- package/src/components/infinity-scroll/infinity-scroll.tsx +1 -1
- package/src/components/line/line.stories.tsx +3 -4
- package/src/components/modals/action-modal/action-modal.stories.tsx +58 -39
- package/src/components/modals/action-modal/action-modal.style.ts +13 -25
- package/src/components/modals/action-modal/action-modal.tsx +68 -70
- package/src/components/modals/aside-modal/aside-modal.stories.tsx +11 -15
- package/src/components/modals/aside-modal/aside-modal.style.ts +17 -37
- package/src/components/modals/aside-modal/aside-modal.tsx +41 -43
- package/src/components/modals/confirmation-modal/confirmation-modal.stories.tsx +21 -9
- package/src/components/modals/index.ts +2 -0
- package/src/components/modals/menu/index.ts +1 -0
- package/src/components/modals/menu/menu.stories.tsx +69 -0
- package/src/components/modals/menu/menu.style.ts +62 -0
- package/src/components/modals/menu/menu.tsx +142 -0
- package/src/components/modals/modal/backdrop.tsx +70 -0
- package/src/components/modals/modal/index.ts +1 -0
- package/src/components/modals/modal/modal.stories.tsx +325 -0
- package/src/components/modals/modal/modal.style.ts +62 -2
- package/src/components/modals/modal/modal.tsx +82 -123
- package/src/components/modals/portal/index.ts +1 -0
- package/src/components/modals/portal/portal.tsx +18 -0
- package/src/components/tabs/tabs-list.tsx +13 -10
- package/src/components/tabs/tabs.style.ts +48 -43
- package/src/components/tag/tag.stories.tsx +11 -12
- package/src/components/tag/tag.style.ts +9 -4
- package/src/components/tag/tag.tsx +2 -12
- package/src/components/tooltips/tooltip/tooltip.stories.tsx +5 -2
- package/src/components/tooltips/tooltip/tooltip.style.ts +37 -6
- package/src/components/tooltips/tooltip/tooltip.tsx +33 -19
- package/src/components/typography/typography.stories.tsx +3 -1
- package/src/components/typography/typography.tsx +21 -0
- package/src/contexts/theme-context/theme.animations.ts +91 -2
- package/src/contexts/theme-context/theme.defaults.ts +1 -1
- package/src/core/http-client.ts +49 -47
- package/src/core/variants/color.ts +3 -30
- package/src/core/variants/radius.ts +12 -41
- package/src/core/variants/size.ts +8 -33
- package/src/helpers/get-modal-position-relative-to-screen.ts +86 -0
- package/src/helpers/get-modal-position.ts +173 -28
- package/src/helpers/index.ts +1 -0
- package/src/hooks/index.ts +9 -3
- package/src/hooks/use-click-outside.ts +32 -0
- package/src/hooks/use-cookie.ts +124 -0
- package/src/hooks/use-dimensions.ts +11 -14
- package/src/hooks/use-dom-container.ts +32 -0
- package/src/hooks/use-event-listener.ts +4 -4
- package/src/hooks/use-geolocation.ts +63 -0
- package/src/hooks/use-in-view.ts +9 -11
- package/src/hooks/use-intersection-observer.ts +19 -0
- package/src/hooks/use-modal-in-container.ts +60 -52
- package/src/hooks/use-modal-transition.ts +54 -0
- package/src/hooks/use-modal.ts +21 -0
- package/src/hooks/use-mouse-position.ts +55 -7
- package/src/hooks/use-resize-observer.ts +18 -0
- package/src/stories/GettingStarted.mdx +2 -6
- package/svg/Name=npm, Category=social.svg +3 -0
- package/dist/chunk-M4KRSYE7.js +0 -3
- package/dist/chunk-M4KRSYE7.js.map +0 -1
- package/dist/chunk-U5XSMSKZ.js +0 -3
- package/dist/chunk-U5XSMSKZ.js.map +0 -1
- package/dist/get-modal-position-DPftPoU2.d.cts +0 -28
- package/dist/get-modal-position-DPftPoU2.d.ts +0 -28
- package/src/components/form/select/select-option.tsx +0 -84
- package/src/hooks/use-observer.ts +0 -18
- package/src/hooks/use-on-click-outside-ref.ts +0 -17
package/dist/ui.d.cts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
|
-
import React__default, { HTMLAttributes, ButtonHTMLAttributes, CSSProperties, DetailedHTMLProps, ImgHTMLAttributes, RefObject,
|
|
3
|
+
import React__default, { HTMLAttributes, ButtonHTMLAttributes, CSSProperties, DetailedHTMLProps, ImgHTMLAttributes, RefObject, ReactNode } from 'react';
|
|
4
4
|
import { UseControllerProps, FieldValues, SubmitHandler, DefaultValues, Mode } from 'react-hook-form';
|
|
5
|
-
import {
|
|
5
|
+
import { M as ModalState, U as UseModalInContainerParams } from './use-modal-in-container-DiNW1PE_.cjs';
|
|
6
|
+
import { P as PositionContainer } from './get-modal-position-drle0OjP.cjs';
|
|
6
7
|
import * as csstype from 'csstype';
|
|
7
8
|
import { AnyObjectSchema } from 'yup';
|
|
8
9
|
import { AxiosInstance } from 'axios';
|
|
@@ -20,7 +21,7 @@ declare const Accordion: ({ children, className, noSeparators, style }: Accordio
|
|
|
20
21
|
|
|
21
22
|
type ObjectIconsT = Record<'airplane' | 'bell' | 'bicycle' | 'book-open' | 'book-solid' | 'calendar' | 'camera' | 'clean-computer' | 'crossed-flags' | 'document' | 'door-closed' | 'door-open' | 'dropper' | 'envelope' | 'eye' | 'eye-hidden' | 'game-control' | 'gear' | 'house' | 'magnifying-glass' | 'moon' | 'pencil' | 'star' | 'star-empty' | 'sun' | 'trash-can', IconT>;
|
|
22
23
|
|
|
23
|
-
type SocialIconsT = Record<'codepen' | 'facebook' | 'github' | 'instagram' | 'linkedin' | 'whatsapp', IconT>;
|
|
24
|
+
type SocialIconsT = Record<'codepen' | 'facebook' | 'github' | 'instagram' | 'linkedin' | 'npm' | 'whatsapp', IconT>;
|
|
24
25
|
|
|
25
26
|
type SymbolIconsT = Record<'arrow-circle' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'box-shadow' | 'caret-down' | 'caret-left' | 'caret-right' | 'caret-up' | 'checkmark' | 'creative' | 'cross' | 'cv' | 'design-ui' | 'double-caret-down' | 'double-caret-left' | 'double-caret-righ' | 'double-caret-up' | 'download' | 'exclamation-close' | 'exclamation-open' | 'external-link' | 'form' | 'hyphen' | 'info' | 'link' | 'message' | 'order-list' | 'pin-location' | 'question-mark-close' | 'question-mark-open' | 'share' | 'spinner' | 'text-shadow' | 'thinking' | 'upload' | 'user' | 'warning', IconT>;
|
|
26
27
|
|
|
@@ -73,6 +74,16 @@ type AccordionItemContentProps = AccordionItemCommonProps & {
|
|
|
73
74
|
type AccordionItemProps = AccordionItemTitleProps | AccordionItemContentProps;
|
|
74
75
|
declare const AccordionItem: React__default.FC<AccordionItemProps>;
|
|
75
76
|
|
|
77
|
+
declare enum ColorVariants {
|
|
78
|
+
Primary = "primary",
|
|
79
|
+
Secondary = "secondary",
|
|
80
|
+
Tertiary = "tertiary",
|
|
81
|
+
Info = "info",
|
|
82
|
+
Active = "active",
|
|
83
|
+
Warning = "warning",
|
|
84
|
+
Alert = "alert"
|
|
85
|
+
}
|
|
86
|
+
|
|
76
87
|
declare enum RadiusVariants {
|
|
77
88
|
None = "none",
|
|
78
89
|
Small = "small",
|
|
@@ -92,15 +103,6 @@ declare enum ButtonVariant {
|
|
|
92
103
|
GHOST = "ghost",
|
|
93
104
|
FLAT = "flat"
|
|
94
105
|
}
|
|
95
|
-
declare enum ButtonColor {
|
|
96
|
-
PRIMARY = "primary",
|
|
97
|
-
SECONDARY = "secondary",
|
|
98
|
-
TERTIARY = "tertiary",
|
|
99
|
-
INFO = "info",
|
|
100
|
-
WARNING = "warning",
|
|
101
|
-
ALERT = "alert",
|
|
102
|
-
ACTIVE = "active"
|
|
103
|
-
}
|
|
104
106
|
type ButtonProps = {
|
|
105
107
|
children?: React__default.ReactNode;
|
|
106
108
|
disabled?: boolean;
|
|
@@ -116,7 +118,7 @@ type ButtonProps = {
|
|
|
116
118
|
style?: React__default.CSSProperties;
|
|
117
119
|
type?: ButtonHTMLAttributes<HTMLButtonElement>['type'];
|
|
118
120
|
noShadow?: boolean;
|
|
119
|
-
color?: `${
|
|
121
|
+
color?: `${ColorVariants}`;
|
|
120
122
|
};
|
|
121
123
|
declare const Button: React__default.ForwardRefExoticComponent<ButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
122
124
|
|
|
@@ -135,7 +137,7 @@ type FlipCardProps = {
|
|
|
135
137
|
flipDirection?: 'horizontal' | 'vertical';
|
|
136
138
|
children: [React.ReactNode, React.ReactNode];
|
|
137
139
|
};
|
|
138
|
-
declare const FlipCard: ({ cardZIndex, flipDirection, flipSpeed, isFlipped, children, }: FlipCardProps) =>
|
|
140
|
+
declare const FlipCard: ({ cardZIndex, flipDirection, flipSpeed, isFlipped, children, }: FlipCardProps) => react_jsx_runtime.JSX.Element;
|
|
139
141
|
|
|
140
142
|
type HoverCardProps = {
|
|
141
143
|
children: React.ReactNode;
|
|
@@ -146,6 +148,8 @@ type HoverCardProps = {
|
|
|
146
148
|
};
|
|
147
149
|
declare const HoverCard: ({ children, threshold, translationZ, width, className, }: HoverCardProps) => react_jsx_runtime.JSX.Element;
|
|
148
150
|
|
|
151
|
+
declare const Cursor: () => react_jsx_runtime.JSX.Element | null;
|
|
152
|
+
|
|
149
153
|
type Props = {
|
|
150
154
|
[key: string]: unknown;
|
|
151
155
|
};
|
|
@@ -177,12 +181,13 @@ type ControlledComponentProps<T extends Props, V> = T & SharedProps & Controlled
|
|
|
177
181
|
type ControllerGeneratorProps<T extends Props, V> = ControlledComponentProps<T, V> & Partial<Pick<UseControllerProps, 'rules'>>;
|
|
178
182
|
|
|
179
183
|
type CheckboxProps = {
|
|
180
|
-
label?:
|
|
184
|
+
label?: React.ReactNode;
|
|
181
185
|
placeholder?: never;
|
|
182
186
|
icon?: IconNameT;
|
|
187
|
+
color?: `${ColorVariants}`;
|
|
183
188
|
};
|
|
184
189
|
declare const Checkbox: {
|
|
185
|
-
({ name, value, setValue, onBlur, onFocus, className, style, autoFocus, readOnly, disabled, autoComplete, icon, label, }: UnControlledComponentProps<CheckboxProps, boolean>): react_jsx_runtime.JSX.Element;
|
|
190
|
+
({ name, value, setValue, onBlur, onFocus, className, style, autoFocus, readOnly, disabled, autoComplete, icon, label, color, }: UnControlledComponentProps<CheckboxProps, boolean>): react_jsx_runtime.JSX.Element;
|
|
186
191
|
Controller: ({ rules, ...props }: ControllerGeneratorProps<CheckboxProps, boolean>) => react_jsx_runtime.JSX.Element;
|
|
187
192
|
};
|
|
188
193
|
|
|
@@ -199,6 +204,10 @@ declare enum FieldVariant {
|
|
|
199
204
|
CONTENT_BORDER = "content-border",
|
|
200
205
|
CONTENT_LINE = "line"
|
|
201
206
|
}
|
|
207
|
+
declare enum FieldOrientation {
|
|
208
|
+
HORIZONTAL = "horizontal",
|
|
209
|
+
VERTICAL = "vertical"
|
|
210
|
+
}
|
|
202
211
|
type FieldSharedProps = {
|
|
203
212
|
rightIcon?: IconNameT;
|
|
204
213
|
leftIcon?: IconNameT;
|
|
@@ -213,6 +222,7 @@ type FieldProps = FieldSharedProps & {
|
|
|
213
222
|
id: string;
|
|
214
223
|
error?: string;
|
|
215
224
|
isFocus?: boolean;
|
|
225
|
+
fieldOrientation?: `${FieldOrientation}`;
|
|
216
226
|
};
|
|
217
227
|
type InputFieldProps<T> = T & FieldSharedProps;
|
|
218
228
|
|
|
@@ -229,6 +239,7 @@ declare const Field: React__default.ForwardRefExoticComponent<{
|
|
|
229
239
|
id: string;
|
|
230
240
|
error?: string;
|
|
231
241
|
isFocus?: boolean;
|
|
242
|
+
fieldOrientation?: `${FieldOrientation}`;
|
|
232
243
|
} & React__default.RefAttributes<HTMLElement>>;
|
|
233
244
|
|
|
234
245
|
type DatePickerProps = InputFieldProps<{
|
|
@@ -284,9 +295,10 @@ type RadioProps = {
|
|
|
284
295
|
label?: string;
|
|
285
296
|
radioValue: string;
|
|
286
297
|
placeholder?: never;
|
|
298
|
+
color?: `${ColorVariants}`;
|
|
287
299
|
};
|
|
288
300
|
declare const Radio: {
|
|
289
|
-
({ name, value, setValue, onBlur, onFocus, className, style, autoFocus, readOnly, disabled, autoComplete, radioValue, label, }: UnControlledComponentProps<RadioProps, string>): react_jsx_runtime.JSX.Element;
|
|
301
|
+
({ name, value, setValue, onBlur, onFocus, className, style, autoFocus, readOnly, disabled, autoComplete, radioValue, label, color, }: UnControlledComponentProps<RadioProps, string>): react_jsx_runtime.JSX.Element;
|
|
290
302
|
Controller: ({ rules, ...props }: ControllerGeneratorProps<RadioProps, string>) => react_jsx_runtime.JSX.Element;
|
|
291
303
|
};
|
|
292
304
|
|
|
@@ -308,7 +320,6 @@ type SharedSelectProps<T extends SelectItem> = InputFieldProps<{
|
|
|
308
320
|
}>;
|
|
309
321
|
type MultiSelectProps<T extends SelectItem> = SharedSelectProps<T> & {
|
|
310
322
|
multiselect: true;
|
|
311
|
-
optionVariant?: `${SelectOptionVariant}`;
|
|
312
323
|
};
|
|
313
324
|
type SingleSelectProps<T extends SelectItem> = SharedSelectProps<T> & {
|
|
314
325
|
multiselect?: false;
|
|
@@ -316,14 +327,9 @@ type SingleSelectProps<T extends SelectItem> = SharedSelectProps<T> & {
|
|
|
316
327
|
};
|
|
317
328
|
type UnControlledSelectProps<T extends SelectItem> = UnControlledComponentProps<MultiSelectProps<T>, MultiValue<T>> | UnControlledComponentProps<SingleSelectProps<T>, SingleValue<T>>;
|
|
318
329
|
type ControllerGeneratorSelectProps<T extends SelectItem> = ControllerGeneratorProps<MultiSelectProps<T>, MultiValue<T>> | ControllerGeneratorProps<SingleSelectProps<T>, SingleValue<T>>;
|
|
319
|
-
declare enum SelectOptionVariant {
|
|
320
|
-
CHECKBOX = "checkbox",
|
|
321
|
-
ICON = "icon",
|
|
322
|
-
DEFAULT = "default"
|
|
323
|
-
}
|
|
324
330
|
|
|
325
331
|
declare const Select: {
|
|
326
|
-
<T extends SelectItem>({ options, renderOption, isEqualComparator, searchQueryValue, searchQueryPlaceholder, onSearchQuery, loadMore, isLoading, hasNextPage, multiselect, maxOptions,
|
|
332
|
+
<T extends SelectItem>({ options, renderOption, isEqualComparator, searchQueryValue, searchQueryPlaceholder, onSearchQuery, loadMore, isLoading, hasNextPage, multiselect, maxOptions, name, value, setValue, onBlur, onFocus, className, style, showClearOption, autoFocus, readOnly, disabled, placeholder, autoComplete, isDirty, isTouched, invalid, error, ...fieldProps }: UnControlledSelectProps<T>): react_jsx_runtime.JSX.Element;
|
|
327
333
|
Controller: <T extends SelectItem>(props: ControllerGeneratorSelectProps<T>) => react_jsx_runtime.JSX.Element;
|
|
328
334
|
};
|
|
329
335
|
|
|
@@ -421,44 +427,60 @@ type SimpleLoaderProps = {
|
|
|
421
427
|
};
|
|
422
428
|
declare const SimpleLoader: ({ spinDuration }: SimpleLoaderProps) => react_jsx_runtime.JSX.Element;
|
|
423
429
|
|
|
424
|
-
|
|
425
|
-
|
|
430
|
+
declare enum ModalBackdrop {
|
|
431
|
+
OPAQUE = "opaque",
|
|
432
|
+
TRANSPARENT = "transparent",
|
|
433
|
+
BLUR = "blur",
|
|
434
|
+
NONE = "none"
|
|
435
|
+
}
|
|
436
|
+
type BackdropProps = {
|
|
437
|
+
opacity?: number;
|
|
438
|
+
backdrop?: `${ModalBackdrop}`;
|
|
439
|
+
zIndex?: React__default.CSSProperties['zIndex'];
|
|
440
|
+
backdropOnClick?: () => void;
|
|
441
|
+
modalState?: ModalState;
|
|
442
|
+
};
|
|
443
|
+
declare const Backdrop: ({ opacity, backdrop, zIndex, backdropOnClick, modalState, }: BackdropProps) => react_jsx_runtime.JSX.Element | null;
|
|
444
|
+
|
|
445
|
+
type ModalProps = Omit<BackdropProps, 'modalState'> & Omit<UseModalInContainerParams, 'modalRef' | 'onClose'> & {
|
|
446
|
+
id: string;
|
|
447
|
+
children: React__default.ReactNode;
|
|
426
448
|
isOpen: boolean;
|
|
427
449
|
onClose: () => void;
|
|
450
|
+
className?: string;
|
|
451
|
+
style?: React__default.CSSProperties;
|
|
452
|
+
rootStyle?: CSSProperties;
|
|
453
|
+
animation?: 'none' | 'fade-down' | 'bounce';
|
|
454
|
+
closeAnimationClassName?: string;
|
|
455
|
+
modalRef?: React__default.RefObject<HTMLElement>;
|
|
456
|
+
};
|
|
457
|
+
declare const Modal: ({ id, children, isOpen, onClose, className, style, rootStyle, animation, closeAnimationClassName, modalRef: modalRefProp, closeOnClickOutside, transitionDuration, windowOffset, offset, position, containerRef, zIndex, ...backdropProps }: ModalProps) => react_jsx_runtime.JSX.Element | null;
|
|
458
|
+
|
|
459
|
+
type ActionModalProps = Omit<ModalProps, 'id' | 'animation' | 'closeAnimationClassName' | 'position' | 'rootStyle' | 'className' | 'style'> & {
|
|
428
460
|
actionRequired?: boolean;
|
|
429
461
|
icon?: IconNameT;
|
|
430
462
|
noCloseButton?: boolean;
|
|
431
|
-
className?: string;
|
|
432
|
-
style?: React.CSSProperties;
|
|
433
463
|
lineOnTop?: boolean;
|
|
434
464
|
backCard?: boolean;
|
|
435
465
|
noPadding?: boolean;
|
|
466
|
+
className?: string;
|
|
467
|
+
style?: React.CSSProperties;
|
|
436
468
|
};
|
|
437
469
|
declare const ActionModal: {
|
|
438
|
-
({ children, isOpen, onClose, actionRequired, icon, noCloseButton,
|
|
439
|
-
ActionButton: ({ onClick, children, isLoading: manualIsLoading, ...buttonProps }: ActionButtonProps) => react_jsx_runtime.JSX.Element;
|
|
470
|
+
({ children, isOpen, onClose, actionRequired, icon, noCloseButton, lineOnTop, backCard, noPadding, className, style, ...modalProps }: ActionModalProps): react_jsx_runtime.JSX.Element;
|
|
471
|
+
ActionButton: ({ onClick, children, isLoading: manualIsLoading, ...buttonProps }: ActionButtonProps) => react_jsx_runtime.JSX.Element | null;
|
|
440
472
|
};
|
|
441
473
|
type ActionButtonProps = Omit<ButtonProps, 'onClick'> & {
|
|
442
474
|
onClick: (() => Promise<void>) | (() => void);
|
|
443
475
|
};
|
|
444
476
|
|
|
445
|
-
|
|
446
|
-
LEFT
|
|
447
|
-
RIGHT = "right",
|
|
448
|
-
TOP = "top",
|
|
449
|
-
BOTTOM = "bottom"
|
|
450
|
-
}
|
|
451
|
-
type AsideModalProps = {
|
|
452
|
-
children: React.ReactNode;
|
|
453
|
-
isOpen: boolean;
|
|
454
|
-
onClose: () => void;
|
|
455
|
-
position?: `${AsidePosition}`;
|
|
477
|
+
type AsideModalProps = Omit<ModalProps, 'id' | 'animation' | 'closeAnimationClassName' | 'position' | 'rootStyle' | 'className' | 'style'> & {
|
|
478
|
+
position?: `${PositionContainer.TOP}` | `${PositionContainer.LEFT}` | `${PositionContainer.RIGHT}` | `${PositionContainer.BOTTOM}`;
|
|
456
479
|
size?: number | `${number}px` | `${number}em`;
|
|
457
480
|
className?: string;
|
|
458
481
|
style?: React.CSSProperties;
|
|
459
|
-
zIndex?: number;
|
|
460
482
|
};
|
|
461
|
-
declare const AsideModal: ({ children, isOpen, onClose, position, size, className,
|
|
483
|
+
declare const AsideModal: ({ children, isOpen, onClose, position, size, className, ...modalProps }: AsideModalProps) => react_jsx_runtime.JSX.Element;
|
|
462
484
|
|
|
463
485
|
type ConfirmationModalProps = ActionModalProps & {
|
|
464
486
|
title: string;
|
|
@@ -470,36 +492,38 @@ type ConfirmationModalProps = ActionModalProps & {
|
|
|
470
492
|
};
|
|
471
493
|
declare const ConfirmationModal: ({ title, onAccept, onReject, acceptText, rejectText, children, isLoading, ...actionModalProps }: ConfirmationModalProps) => react_jsx_runtime.JSX.Element;
|
|
472
494
|
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
495
|
+
type MenuOptionProps = {
|
|
496
|
+
id?: string;
|
|
497
|
+
children?: React__default.ReactNode;
|
|
498
|
+
label?: React__default.ReactNode;
|
|
499
|
+
disabled?: boolean;
|
|
500
|
+
selected?: boolean;
|
|
501
|
+
className?: string;
|
|
502
|
+
style?: React__default.CSSProperties;
|
|
503
|
+
asCheckbox?: boolean;
|
|
504
|
+
icon?: IconNameT;
|
|
505
|
+
onClick?: (newValue: boolean) => void;
|
|
506
|
+
onKeyDown?: (event: React__default.KeyboardEvent) => void;
|
|
507
|
+
};
|
|
508
|
+
type MenuProps = ModalProps & {
|
|
481
509
|
children: React__default.ReactNode;
|
|
482
|
-
id: string;
|
|
483
510
|
};
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
className?: never;
|
|
490
|
-
style?: never;
|
|
511
|
+
declare const Menu: {
|
|
512
|
+
({ children, isOpen, onClose, id, ...modalProps }: MenuProps): react_jsx_runtime.JSX.Element;
|
|
513
|
+
Option: ({ children, label, asCheckbox, icon, id, disabled, selected, className, style, onClick, onKeyDown, }: MenuOptionProps) => react_jsx_runtime.JSX.Element;
|
|
514
|
+
Divider: () => react_jsx_runtime.JSX.Element;
|
|
515
|
+
OptionsGroup: <T>({ className, style, ...infinityScrollProps }: MenuOptionsGroupProps<T>) => react_jsx_runtime.JSX.Element;
|
|
491
516
|
};
|
|
492
|
-
type
|
|
493
|
-
opacity?: number;
|
|
494
|
-
backdrop?: `${ModalBackdrop}`;
|
|
495
|
-
onClick?: () => void;
|
|
496
|
-
zIndex?: React__default.CSSProperties['zIndex'];
|
|
517
|
+
type MenuOptionsGroupProps<T> = InfinityScrollProps<T> & {
|
|
497
518
|
className?: string;
|
|
498
519
|
style?: React__default.CSSProperties;
|
|
499
520
|
};
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
521
|
+
|
|
522
|
+
type PortalProps = {
|
|
523
|
+
id: string;
|
|
524
|
+
children: ReactNode;
|
|
525
|
+
};
|
|
526
|
+
declare const Portal: React$1.ForwardRefExoticComponent<PortalProps & React$1.RefAttributes<HTMLElement>>;
|
|
503
527
|
|
|
504
528
|
type RippleProps = {
|
|
505
529
|
color?: string;
|
|
@@ -612,11 +636,6 @@ type TabPanelProps = {
|
|
|
612
636
|
children: React__default.ReactNode;
|
|
613
637
|
};
|
|
614
638
|
|
|
615
|
-
declare enum TagSize {
|
|
616
|
-
SMALL = "small",
|
|
617
|
-
REGULAR = "regular",
|
|
618
|
-
LARGE = "large"
|
|
619
|
-
}
|
|
620
639
|
type TagProps = HTMLAttributes<HTMLElement> & {
|
|
621
640
|
children: React.ReactNode;
|
|
622
641
|
isSelected?: boolean;
|
|
@@ -626,13 +645,13 @@ type TagProps = HTMLAttributes<HTMLElement> & {
|
|
|
626
645
|
declare const Tag: ({ children, className: customClassName, isSelected, size, radius, ...props }: TagProps) => react_jsx_runtime.JSX.Element;
|
|
627
646
|
|
|
628
647
|
type TooltipProps = {
|
|
629
|
-
position?: `${
|
|
648
|
+
position?: `${PositionContainer.TOP}` | `${PositionContainer.LEFT}` | `${PositionContainer.RIGHT}` | `${PositionContainer.BOTTOM}`;
|
|
630
649
|
offset?: number | `${number}`;
|
|
631
650
|
disabled?: boolean;
|
|
632
651
|
children: React__default.ReactElement;
|
|
633
652
|
content: React__default.ReactNode;
|
|
634
653
|
};
|
|
635
|
-
declare const Tooltip: ({ position, children, content, offset, disabled }: TooltipProps) => react_jsx_runtime.JSX.Element;
|
|
654
|
+
declare const Tooltip: ({ position, children, content, offset, disabled, }: TooltipProps) => react_jsx_runtime.JSX.Element;
|
|
636
655
|
|
|
637
656
|
type ClickToCopyProps = {
|
|
638
657
|
children?: React.ReactNode;
|
|
@@ -675,8 +694,9 @@ type TypographyProps = HTMLAttributes<HTMLElement | HTMLLabelElement> & {
|
|
|
675
694
|
align?: React__default.CSSProperties['textAlign'];
|
|
676
695
|
family?: 'primary' | 'code';
|
|
677
696
|
recommendedWidth?: boolean;
|
|
697
|
+
color?: `${ColorVariants}`;
|
|
678
698
|
};
|
|
679
|
-
declare const TypographyComponent: ({ variant, nowrap, className: customClassname, style, children, as, weight, family, noPadding, align, htmlFor, recommendedWidth, ...props }: TypographyProps, ref: React__default.ForwardedRef<unknown>) => React__default.ReactElement<{
|
|
699
|
+
declare const TypographyComponent: ({ variant, nowrap, className: customClassname, style, children, as, weight, family, noPadding, align, color, htmlFor, recommendedWidth, ...props }: TypographyProps, ref: React__default.ForwardedRef<unknown>) => React__default.ReactElement<{
|
|
680
700
|
className: string;
|
|
681
701
|
ref: React__default.ForwardedRef<unknown>;
|
|
682
702
|
htmlFor: string | undefined;
|
|
@@ -1542,7 +1562,6 @@ declare const TypographyComponent: ({ variant, nowrap, className: customClassnam
|
|
|
1542
1562
|
autoCapitalize?: string | undefined;
|
|
1543
1563
|
autoCorrect?: string | undefined;
|
|
1544
1564
|
autoSave?: string | undefined;
|
|
1545
|
-
color?: string | undefined;
|
|
1546
1565
|
itemProp?: string | undefined;
|
|
1547
1566
|
itemScope?: boolean | undefined;
|
|
1548
1567
|
itemType?: string | undefined;
|
|
@@ -1781,6 +1800,7 @@ declare const Typography: React__default.ForwardRefExoticComponent<React__defaul
|
|
|
1781
1800
|
align?: React__default.CSSProperties["textAlign"];
|
|
1782
1801
|
family?: "primary" | "code";
|
|
1783
1802
|
recommendedWidth?: boolean;
|
|
1803
|
+
color?: `${ColorVariants}`;
|
|
1784
1804
|
} & React__default.RefAttributes<unknown>>;
|
|
1785
1805
|
|
|
1786
1806
|
type FormProps<T extends FieldValues> = {
|
|
@@ -3929,4 +3949,4 @@ type SectionLayoutProps = {
|
|
|
3929
3949
|
};
|
|
3930
3950
|
declare const SectionLayout: React$1.ForwardRefExoticComponent<SectionLayoutProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3931
3951
|
|
|
3932
|
-
export { Accordion, AccordionItem, ActionModal, type ActionModalProps, AsideModal,
|
|
3952
|
+
export { Accordion, AccordionItem, ActionModal, type ActionModalProps, AsideModal, Backdrop, type BackdropProps, Breakpoints, Button, type ButtonProps, ButtonVariant, Checkbox, ClickToCopy, CommonTheme, type CommonThemeEntity, ConfirmationModal, Controller, Cursor, DarkTheme, DatePicker, type DeepPartial, FetchProvider, Field, FieldOrientation, type FieldProps, FieldVariant, Flex, FlipCard, Form, Grid, HoverCard, HttpClient, Icon, type IconNameT, IconNames, Image, InfinityScroll, type InfinityScrollProps, Input, InputColor, type InputFieldProps, InputFile, InputPassword, type KeyValuesOf, LightTheme, Line, LineOrientation, LineStyle, Menu, type MenuOptionProps, Modal, ModalBackdrop, type ModalProps, type PaletteThemeEntity, Portal, Radio, Ripple, SectionLayout, Select, SimpleLoader, SlideCard, Slider, SmartTable, Switch, THEME, Tabs, Tag, Textarea, type ThemeColor, ThemeConstants, type ThemeConstantsEntity, type ThemeEntity, ThemeProvider, Tooltip, type TooltipProps, Typography, TypographyComponent, type TypographyEntity, TypographyVariant, TypographyVariants, TypographyVariantsClassNames, TypographyVariantsElements, TypographyWeight, useAccordionItem, useFetch, useMyTheme };
|