@inntechcorp/it-design 3.1.23 → 4.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ACCESSIBILITY.md +517 -0
- package/README.md +88 -11
- package/dist/accordion/index.d.ts +2 -2
- package/dist/accordion/item/styled.d.ts +2 -2
- package/dist/accordion/styled.d.ts +1 -0
- package/dist/accordion/submenu/styled.d.ts +5 -5
- package/dist/alert/Description.d.ts +7 -0
- package/dist/alert/Title.d.ts +7 -0
- package/dist/alert/alert.style.error.d.ts +1 -1
- package/dist/alert/alert.style.info.d.ts +1 -1
- package/dist/alert/alert.style.neutral.d.ts +4 -0
- package/dist/alert/alert.style.success.d.ts +1 -1
- package/dist/alert/alert.style.warning.d.ts +1 -1
- package/dist/alert/index.d.ts +4 -2
- package/dist/alert/styled.d.ts +4 -8
- package/dist/alink/index.d.ts +2 -10
- package/dist/alink/styled.d.ts +1 -1
- package/dist/back-top/styled.d.ts +2 -2
- package/dist/button/button.style.default.d.ts +1 -1
- package/dist/button/button.style.filled.d.ts +1 -1
- package/dist/button/button.style.ghost.d.ts +1 -1
- package/dist/button/button.style.icon.d.ts +2 -2
- package/dist/button/button.style.link.d.ts +1 -1
- package/dist/button/button.style.outline.d.ts +1 -1
- package/dist/button/button.style.size.d.ts +4 -1
- package/dist/button/button.style.solid.d.ts +1 -1
- package/dist/button/index.d.ts +10 -2
- package/dist/button/styled.d.ts +3 -12
- package/dist/calendar/day/Day.d.ts +2 -2
- package/dist/calendar/day/styled.d.ts +1 -1
- package/dist/calendar/header/styled.d.ts +6 -6
- package/dist/calendar/index.d.ts +11 -3
- package/dist/calendar/styled.d.ts +6 -6
- package/dist/card/Card.d.ts +9 -0
- package/dist/card/CardAction.d.ts +7 -0
- package/dist/card/CardContent.d.ts +7 -0
- package/dist/card/CardDescription.d.ts +7 -0
- package/dist/card/CardFooter.d.ts +8 -0
- package/dist/card/CardHeader.d.ts +8 -0
- package/dist/card/CardTabs.d.ts +7 -0
- package/dist/card/CardTitle.d.ts +7 -0
- package/dist/card/index.d.ts +8 -3
- package/dist/card/styles.d.ts +9 -9
- package/dist/checkbox/group/index.d.ts +1 -1
- package/dist/checkbox/group/styled.d.ts +1 -1
- package/dist/checkbox/index.d.ts +1 -1
- package/dist/checkbox/styled.d.ts +6 -5
- package/dist/context/ITDContext.d.ts +3 -2
- package/dist/context/ITDThemeProvider.d.ts +8 -0
- package/dist/context/styled.d.ts +1 -1
- package/dist/datepicker/index.d.ts +2 -2
- package/dist/datepicker/styled.d.ts +5 -5
- package/dist/enums/enum.d.ts +138 -8
- package/dist/flex/index.d.ts +1 -1
- package/dist/flex/styled.d.ts +2 -2
- package/dist/floating/Arrow.d.ts +17 -0
- package/dist/floating/FloatingContent.d.ts +60 -0
- package/dist/floating/mergeTriggerProps.d.ts +8 -0
- package/dist/form/context/FormContext.d.ts +5 -2
- package/dist/form/context/FormStore.d.ts +6 -3
- package/dist/form/control/Control.d.ts +1 -1
- package/dist/form/control/styled.d.ts +1 -1
- package/dist/form/group/Group.d.ts +1 -1
- package/dist/form/group/styled.d.ts +1 -1
- package/dist/form/index.d.ts +5 -5
- package/dist/form/item/Item.d.ts +2 -3
- package/dist/form/validation/Validator.d.ts +2 -3
- package/dist/form/wrapper/FormWrapper.d.ts +2 -2
- package/dist/helpers/binary/GetTypeByFileType.d.ts +2 -2
- package/dist/helpers/country/GetCountryCodeByCurrencyCode.d.ts +1 -1
- package/dist/helpers/country/GetCountryCodeByLanguage.d.ts +1 -1
- package/dist/helpers/css/FindSelector.d.ts +10 -0
- package/dist/helpers/currency/ConvertCurrency.d.ts +1 -1
- package/dist/helpers/currency/GetCurrencyFormat.d.ts +9 -0
- package/dist/helpers/currency/GetCurrencySymbol.d.ts +1 -1
- package/dist/helpers/datetime/FormatTime.d.ts +1 -1
- package/dist/helpers/datetime/dayjsSetup.d.ts +1 -1
- package/dist/helpers/index.d.ts +36 -32
- package/dist/helpers/locale/getLocaleDateByString.d.ts +1 -0
- package/dist/helpers/svg/styles.d.ts +1 -1
- package/dist/helpers/theme/Color.d.ts +19 -0
- package/dist/helpers/theme/GenerateColorScale.d.ts +16 -0
- package/dist/helpers/theme/cssVariables.d.ts +30 -0
- package/dist/helpers/theme/dark.d.ts +3 -0
- package/dist/helpers/theme/index.d.ts +9 -0
- package/dist/helpers/theme/light.d.ts +3 -0
- package/dist/helpers/theme/themes.d.ts +5 -0
- package/dist/helpers/theme/tokens.d.ts +392 -0
- package/dist/hooks/index.d.ts +15 -15
- package/dist/hooks/useAddExternalCSS.d.ts +4 -5
- package/dist/hooks/useAvoidCollision.d.ts +6 -1
- package/dist/hooks/useComponentSize.d.ts +1 -1
- package/dist/hooks/useConnectionStatus.d.ts +1 -1
- package/dist/hooks/useFloatingPosition.d.ts +63 -0
- package/dist/hooks/useFloatingTrigger.d.ts +64 -0
- package/dist/hooks/useFocusTrap.d.ts +36 -0
- package/dist/hooks/useOnClickOutside.d.ts +1 -1
- package/dist/hooks/useSingleQuery.d.ts +1 -1
- package/dist/hovercard/HoverCard.d.ts +12 -0
- package/dist/hovercard/HoverCardContent.d.ts +22 -0
- package/dist/hovercard/HoverCardTrigger.d.ts +17 -0
- package/dist/hovercard/hoverCardContext.d.ts +7 -0
- package/dist/hovercard/index.d.ts +4 -0
- package/dist/html/header/H1.d.ts +1 -1
- package/dist/html/header/H2.d.ts +1 -1
- package/dist/html/header/H3.d.ts +1 -1
- package/dist/html/header/H4.d.ts +1 -1
- package/dist/html/header/index.d.ts +4 -4
- package/dist/html/header/styled.d.ts +4 -4
- package/dist/icons/index.d.ts +11 -14
- package/dist/image/index.d.ts +1 -2
- package/dist/image/styled.d.ts +5 -2
- package/dist/index.cjs.js +2702 -2559
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +168 -1786
- package/dist/index.es.js +22339 -0
- package/dist/index.es.js.map +1 -0
- package/dist/index.iife.js +5728 -0
- package/dist/index.iife.js.map +1 -0
- package/dist/index.umd.js +5728 -0
- package/dist/index.umd.js.map +1 -0
- package/dist/input/index.d.ts +29 -2
- package/dist/input/style.settings.d.ts +9 -0
- package/dist/input/styled.d.ts +16 -18
- package/dist/label/index.d.ts +6 -0
- package/dist/label/style.settings.d.ts +9 -0
- package/dist/label/styled.d.ts +27 -0
- package/dist/link/index.d.ts +1 -10
- package/dist/locales/en/{calendar.json → calendar.json.d.ts} +4 -2
- package/dist/locales/en/{itd.json → itd.json.d.ts} +35 -20
- package/dist/locales/{calendar.json → tr/calendar.json.d.ts} +4 -2
- package/dist/locales/{itd.json → tr/itd.json.d.ts} +35 -21
- package/dist/logger/index.d.ts +9 -0
- package/dist/modal/container/ModalContainer.d.ts +4 -4
- package/dist/modal/container/styled.d.ts +2 -2
- package/dist/modal/context/ModalContext.d.ts +23 -14
- package/dist/modal/index.d.ts +7 -22
- package/dist/modal/modal/Modal.d.ts +2 -2
- package/dist/modal/modal/styled.d.ts +11 -11
- package/dist/notification/container/Container.d.ts +5 -0
- package/dist/notification/container/styled.d.ts +1 -0
- package/dist/notification/context/NotificationsContext.d.ts +2 -2
- package/dist/notification/index.d.ts +1 -1
- package/dist/notification/item/Item.d.ts +12 -0
- package/dist/notification/item/styled.d.ts +1166 -0
- package/dist/popover/Popover.d.ts +42 -0
- package/dist/popover/PopoverContent.d.ts +34 -0
- package/dist/popover/PopoverTrigger.d.ts +26 -0
- package/dist/popover/index.d.ts +4 -0
- package/dist/primitives/Slot.d.ts +36 -0
- package/dist/progress/styled.d.ts +1 -1
- package/dist/radio/button/RadioButton.d.ts +2 -2
- package/dist/radio/button/styled.d.ts +8 -9
- package/dist/radio/group/Group.d.ts +3 -3
- package/dist/radio/group/styled.d.ts +1 -1
- package/dist/radio/index.d.ts +2 -2
- package/dist/reportWebVitals.d.ts +2 -0
- package/dist/result/index.d.ts +2 -2
- package/dist/result/styled.d.ts +9 -9
- package/dist/select/dropdown/Dropdown.d.ts +20 -0
- package/dist/select/dropdown/styled.d.ts +14 -0
- package/dist/select/index.d.ts +1 -1
- package/dist/select/option/Option.d.ts +14 -6
- package/dist/select/option/styled.d.ts +4 -4
- package/dist/select/selector/Selector.d.ts +3 -0
- package/dist/select/selector/selectorinput/SelectorInput.d.ts +6 -0
- package/dist/select/selector/selectorinput/styled.d.ts +2 -0
- package/dist/select/selector/styled.d.ts +16 -0
- package/dist/select/style.settings.d.ts +83 -26
- package/dist/select/styled.d.ts +5 -3
- package/dist/setupTests.d.ts +1 -0
- package/dist/spin/styled.d.ts +4 -4
- package/dist/status/styled.d.ts +1 -1
- package/dist/stories/Accordion.d.ts +0 -1
- package/dist/stories/Accordion.stories.d.ts +3 -3
- package/dist/stories/Alert.stories.d.ts +18 -4
- package/dist/stories/AlertComposition.d.ts +2 -0
- package/dist/stories/AlertComposition.stories.d.ts +17 -0
- package/dist/stories/Button.d.ts +0 -1
- package/dist/stories/Button.stories.d.ts +16 -4
- package/dist/stories/Card.stories.d.ts +3 -2
- package/dist/stories/Checkbox.stories.d.ts +3 -3
- package/dist/stories/CheckboxGroup.stories.d.ts +3 -3
- package/dist/stories/CheckboxGroupControl.stories.d.ts +3 -3
- package/dist/stories/ColorScale.d.ts +10 -0
- package/dist/stories/ColorScale.stories.d.ts +24 -0
- package/dist/stories/ColorScaleCompare.d.ts +8 -0
- package/dist/stories/ColorScaleCompare.stories.d.ts +47 -0
- package/dist/stories/DatePicker.d.ts +0 -1
- package/dist/stories/DatePicker.stories.d.ts +3 -3
- package/dist/stories/Form.d.ts +1 -1
- package/dist/stories/Form.stories.d.ts +13 -3
- package/dist/stories/Header.d.ts +0 -1
- package/dist/stories/Header.stories.d.ts +5 -5
- package/dist/stories/HoverCard.d.ts +2 -0
- package/dist/stories/HoverCard.stories.d.ts +18 -0
- package/dist/stories/Input.d.ts +0 -1
- package/dist/stories/Input.stories.d.ts +86 -4
- package/dist/stories/ModalManager.d.ts +0 -1
- package/dist/stories/ModalManager.stories.d.ts +2 -2
- package/dist/stories/Page.d.ts +0 -1
- package/dist/stories/Page.stories.d.ts +2 -2
- package/dist/stories/Popover.d.ts +2 -0
- package/dist/stories/Popover.stories.d.ts +40 -0
- package/dist/stories/Progress.stories.d.ts +3 -3
- package/dist/stories/RadioGroup.stories.d.ts +3 -3
- package/dist/stories/Result.stories.d.ts +3 -3
- package/dist/stories/Select.d.ts +0 -1
- package/dist/stories/Select.stories.d.ts +16 -6
- package/dist/stories/Status.stories.d.ts +3 -3
- package/dist/stories/Switch.stories.d.ts +12 -5
- package/dist/stories/Table.stories.d.ts +2 -2
- package/dist/stories/Tabs.stories.d.ts +3 -3
- package/dist/stories/TextArea.d.ts +0 -1
- package/dist/stories/TextArea.stories.d.ts +11 -4
- package/dist/stories/Tooltip.d.ts +1 -0
- package/dist/stories/Tooltip.stories.d.ts +35 -0
- package/dist/stories/Upload.stories.d.ts +3 -8
- package/dist/stories/root/index.d.ts +1 -2
- package/dist/stories/select.styled.d.ts +1 -1
- package/dist/switch/index.d.ts +1 -1
- package/dist/switch/styled.d.ts +4 -4
- package/dist/table/index.d.ts +2 -2
- package/dist/table/styled.d.ts +5 -5
- package/dist/tabs/index.d.ts +1 -1
- package/dist/tabs/styles.d.ts +4 -9
- package/dist/textarea/index.d.ts +1 -1
- package/dist/textarea/styled.d.ts +6 -8
- package/dist/tinyscrollbar/index.d.ts +1 -2
- package/dist/tinyscrollbar/scroll.styled.d.ts +1 -1
- package/dist/tinyscrollbar/styled.d.ts +1 -1
- package/dist/tooltip/Tooltip.d.ts +12 -0
- package/dist/tooltip/TooltipContent.d.ts +15 -0
- package/dist/tooltip/TooltipTrigger.d.ts +19 -0
- package/dist/tooltip/index.d.ts +4 -0
- package/dist/tooltip/tooltipContext.d.ts +7 -0
- package/dist/types/AccordionItemProps.d.ts +1 -1
- package/dist/types/AccordionProps.d.ts +1 -1
- package/dist/types/AccordionSubMenuProps.d.ts +1 -1
- package/dist/types/AlertProps.d.ts +6 -6
- package/dist/types/ButtonProps.d.ts +13 -31
- package/dist/types/CalendarProps.d.ts +4 -5
- package/dist/types/CardProps.d.ts +7 -3
- package/dist/types/CheckboxProps.d.ts +7 -3
- package/dist/types/DatePickerProps.d.ts +8 -7
- package/dist/types/FlexProps.d.ts +2 -2
- package/dist/types/FormProps.d.ts +10 -8
- package/dist/types/ITDProps.d.ts +4 -2
- package/dist/types/InputProps.d.ts +12 -18
- package/dist/types/LabelProps.d.ts +7 -0
- package/dist/types/ModalProps.d.ts +2 -2
- package/dist/types/PopoverProps.d.ts +10 -0
- package/dist/types/RadioProps.d.ts +3 -4
- package/dist/types/ResultProps.d.ts +2 -1
- package/dist/types/SelectProps.d.ts +22 -16
- package/dist/types/SingleQueryProps.d.ts +1 -1
- package/dist/types/StatusProps.d.ts +2 -2
- package/dist/types/SwitchProps.d.ts +4 -1
- package/dist/types/TableProps.d.ts +3 -2
- package/dist/types/TabsProps.d.ts +1 -1
- package/dist/types/TextAreaProps.d.ts +3 -3
- package/dist/types/Theme.d.ts +103 -0
- package/dist/types/UploadProps.d.ts +3 -40
- package/dist/upload/index.d.ts +2 -2
- package/dist/upload/styled.d.ts +11 -45
- package/dist/utils/CommonStyledComponents.d.ts +18 -0
- package/dist/utils/ErrorAnnouncement.d.ts +25 -0
- package/dist/utils/GetButtonSizeSlug.d.ts +6 -0
- package/dist/utils/GetIconSizeBySize.d.ts +1 -1
- package/dist/utils/GetSizeBySizeSlug.d.ts +2 -2
- package/dist/utils/GetSizeSlugBySize.d.ts +5 -2
- package/dist/utils/InlineSVGCached.d.ts +1 -1
- package/dist/utils/index.d.ts +6 -4
- package/package.json +87 -64
- package/dist/button/button.style.SVG.d.ts +0 -4
- package/dist/button/button.style.circle.d.ts +0 -4
- package/dist/button/button.style.strecth.d.ts +0 -4
- package/dist/cropper/index.d.ts +0 -44
- package/dist/global.css +0 -146
- package/dist/icons/FileDocument.d.ts +0 -6
- package/dist/icons/FileExcel.d.ts +0 -5
- package/dist/icons/FilePdf.d.ts +0 -5
- package/dist/index.d.mts +0 -716
- package/dist/index.esm.js +0 -5584
- package/dist/locales/tr/calendar.json +0 -30
- package/dist/locales/tr/itd.json +0 -325
- package/dist/select/menu/Menu.d.ts +0 -14
- package/dist/select/menu/styled.d.ts +0 -8
- package/dist/select/toggle/Toggle.d.ts +0 -3
- package/dist/select/toggle/label/floating/FloatingLabel.d.ts +0 -12
- package/dist/select/toggle/label/floating/styled.d.ts +0 -8
- package/dist/select/toggle/label/single/SingleLabel.d.ts +0 -18
- package/dist/select/toggle/label/single/styled.d.ts +0 -2
- package/dist/select/toggle/styled.d.ts +0 -24
- package/dist/stories/ButtonIcon.d.ts +0 -2
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { CalendarValueProps } from
|
|
3
|
-
import { ChildrenProps } from
|
|
4
|
-
import { InputVariant } from
|
|
5
|
-
import {
|
|
1
|
+
import { default as dayjs } from 'dayjs';
|
|
2
|
+
import { CalendarValueProps } from '../CalendarProps';
|
|
3
|
+
import { ChildrenProps } from '../ChildrenProps';
|
|
4
|
+
import { InputVariant } from '../InputProps';
|
|
5
|
+
import { ITDHorizontalPosition, ITDSize } from '../ITDProps';
|
|
6
|
+
import { CalendarLocale } from '../calendar';
|
|
6
7
|
export type DatePickerProps = {
|
|
7
8
|
id?: string;
|
|
8
9
|
placeholder?: string;
|
|
@@ -13,10 +14,10 @@ export type DatePickerProps = {
|
|
|
13
14
|
size?: ITDSize;
|
|
14
15
|
variant?: InputVariant;
|
|
15
16
|
disabled?: boolean;
|
|
16
|
-
|
|
17
|
-
position?: ITDPosition;
|
|
17
|
+
position?: ITDHorizontalPosition;
|
|
18
18
|
suffix?: ChildrenProps;
|
|
19
19
|
onChange?: ((value: CalendarValueProps) => void) | null;
|
|
20
20
|
onUpdate?: ((value: any, update: any, validation: boolean) => void) | null;
|
|
21
21
|
disabledDate?: (date: dayjs.Dayjs) => boolean;
|
|
22
|
+
calendarLocale?: CalendarLocale;
|
|
22
23
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { FormValidationTypes } from
|
|
2
|
-
import { RefObject } from
|
|
3
|
-
import { ChildrenProps } from
|
|
4
|
-
import { ITDImperativeFuncProps } from
|
|
5
|
-
import { FormStoreProps } from
|
|
6
|
-
import { FormContextType } from
|
|
7
|
-
import { Item, Group, Control } from
|
|
1
|
+
import { FormValidationTypes } from '../enums/enum';
|
|
2
|
+
import { RefObject } from 'react';
|
|
3
|
+
import { ChildrenProps } from '../ChildrenProps';
|
|
4
|
+
import { ITDImperativeFuncProps } from '../index';
|
|
5
|
+
import { FormStoreProps } from '../form/context/FormStore';
|
|
6
|
+
import { FormContextType } from '../form/context/FormContext';
|
|
7
|
+
import { Item, Group, Control } from '../form';
|
|
8
|
+
import { ITDVariant } from '../ITDProps';
|
|
8
9
|
export type FormProps = {
|
|
9
10
|
initialValues?: {};
|
|
10
11
|
children: ChildrenProps;
|
|
@@ -15,6 +16,8 @@ export type FormProps = {
|
|
|
15
16
|
onValidated?: (validate: boolean) => void;
|
|
16
17
|
onFieldUpdate?: (update: FieldUpdateProps) => void;
|
|
17
18
|
useQueryString?: boolean;
|
|
19
|
+
variant?: ITDVariant;
|
|
20
|
+
disabled?: boolean;
|
|
18
21
|
className?: string;
|
|
19
22
|
ref?: RefObject<FormContextType>;
|
|
20
23
|
name: string;
|
|
@@ -31,7 +34,6 @@ export type FormRuleProps = {
|
|
|
31
34
|
field?: string;
|
|
32
35
|
value?: string | number | (string | number)[];
|
|
33
36
|
message?: string;
|
|
34
|
-
currency?: string;
|
|
35
37
|
};
|
|
36
38
|
export type FormItemProps = {
|
|
37
39
|
name: string;
|
package/dist/types/ITDProps.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentXPositions, ComponentSizes, ComponentSizesSlug, ComponentYPositions, ComponentVariants } from '../enums/enum';
|
|
2
2
|
export type ITDSize = ComponentSizes | "x-small" | "small" | "medium" | "default" | "large" | "x-large";
|
|
3
3
|
export type ITDSizeSlug = ComponentSizesSlug | "xs" | "sm" | "md" | "df" | "lg" | "xlg";
|
|
4
|
-
export type
|
|
4
|
+
export type ITDVariant = ComponentVariants | "default" | "filled" | "custom";
|
|
5
|
+
export type ITDHorizontalPosition = ComponentXPositions | "left" | "right";
|
|
6
|
+
export type ITDVerticalPosition = ComponentYPositions | "top" | "bottom";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FocusEvent, KeyboardEvent, MutableRefObject } from
|
|
2
|
-
import { ChildrenProps } from
|
|
3
|
-
import { ITDSize } from
|
|
1
|
+
import { default as React, FocusEvent, KeyboardEvent, MutableRefObject } from 'react';
|
|
2
|
+
import { ChildrenProps } from '../ChildrenProps';
|
|
3
|
+
import { ITDSize } from '../index';
|
|
4
4
|
export declare enum InputTypes {
|
|
5
5
|
TEXT = "text",
|
|
6
6
|
NUMBER = "number",
|
|
@@ -9,13 +9,12 @@ export declare enum InputTypes {
|
|
|
9
9
|
}
|
|
10
10
|
export type InputType = `${InputTypes}`;
|
|
11
11
|
export type InputVariant = "default" | "filled" | "dashed";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Input component props extending native HTML input attributes
|
|
14
|
+
* Omits conflicting props that have custom implementations
|
|
15
|
+
*/
|
|
16
|
+
export type InputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'prefix' | 'onChange' | 'onFocus' | 'onBlur' | 'onKeyDown' | 'type' | 'children'> & {
|
|
17
17
|
type?: InputType;
|
|
18
|
-
className?: string;
|
|
19
18
|
size?: ITDSize;
|
|
20
19
|
variant?: InputVariant;
|
|
21
20
|
prefix?: ChildrenProps;
|
|
@@ -23,24 +22,19 @@ export type InputProps = {
|
|
|
23
22
|
addonBefore?: ChildrenProps;
|
|
24
23
|
addonAfter?: ChildrenProps;
|
|
25
24
|
locked?: ChildrenProps | boolean;
|
|
26
|
-
status?: ChildrenProps;
|
|
27
25
|
minValue?: number;
|
|
28
26
|
maxValue?: number;
|
|
29
|
-
maxLength?: number;
|
|
30
|
-
disabled?: boolean;
|
|
31
|
-
floating?: boolean;
|
|
32
|
-
autoComplete?: boolean;
|
|
33
27
|
keepFocus?: boolean;
|
|
34
|
-
focusRef?: null | MutableRefObject<HTMLDivElement>;
|
|
35
28
|
mask?: null | string;
|
|
36
29
|
allowEmptyFormatting?: null | boolean;
|
|
37
30
|
allowLeadingZeros?: boolean;
|
|
38
31
|
decimalSeparator?: string;
|
|
39
32
|
thousandSeparator?: string;
|
|
40
33
|
decimalScale?: number;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
34
|
+
focusRef?: null | MutableRefObject<HTMLDivElement>;
|
|
35
|
+
onChange?: ((value: string | number) => void) | null;
|
|
36
|
+
onUpdate?: ((value: string | number, update: boolean, validation: boolean) => void) | null;
|
|
37
|
+
onFocus?: ((event: FocusEvent<HTMLInputElement>) => void) | null;
|
|
44
38
|
onBlur?: ((event: FocusEvent<HTMLInputElement>) => void) | null;
|
|
45
39
|
onPressEnter?: ((event: KeyboardEvent) => void) | null;
|
|
46
40
|
onKeyDown?: ((event: KeyboardEvent) => void) | null;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentXPositions, ComponentYPositions } from '../enums/enum';
|
|
2
|
+
import { ChildrenProps } from '../ChildrenProps';
|
|
3
|
+
export type PopoverProps = {
|
|
4
|
+
children: ChildrenProps;
|
|
5
|
+
content: ChildrenProps | ((placement: ComponentYPositions | ComponentXPositions) => ChildrenProps);
|
|
6
|
+
offset?: number;
|
|
7
|
+
placement?: ComponentYPositions | ComponentXPositions;
|
|
8
|
+
maxWidth?: number;
|
|
9
|
+
showArrow?: boolean;
|
|
10
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactElement } from
|
|
2
|
-
import { ButtonProps } from
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { ButtonProps } from '../ButtonProps';
|
|
3
3
|
export type RadioType = "default" | "primary";
|
|
4
4
|
export type Direction = "column" | "row";
|
|
5
5
|
export type RadioGroupProps = {
|
|
@@ -15,7 +15,6 @@ export type RadioGroupProps = {
|
|
|
15
15
|
length?: number;
|
|
16
16
|
onlyFlow?: boolean;
|
|
17
17
|
autoSize?: boolean;
|
|
18
|
-
disabled?: boolean;
|
|
19
18
|
buttonProps?: ButtonProps;
|
|
20
19
|
onChange?: (value: string) => void;
|
|
21
20
|
onUpdate?: (value: string, update: boolean, validation: boolean) => void;
|
|
@@ -28,8 +27,8 @@ export type RadioButtonProps = {
|
|
|
28
27
|
type?: RadioType;
|
|
29
28
|
checked?: boolean;
|
|
30
29
|
hasError?: boolean;
|
|
30
|
+
className?: string;
|
|
31
31
|
children?: React.ReactNode;
|
|
32
|
-
disabled?: boolean;
|
|
33
32
|
buttonProps?: ButtonProps;
|
|
34
33
|
icon?: string | null;
|
|
35
34
|
image?: string | null;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { ChildrenProps } from
|
|
1
|
+
import { ChildrenProps } from '../ChildrenProps';
|
|
2
2
|
export type ResultProps = {
|
|
3
3
|
image: string | ChildrenProps;
|
|
4
4
|
title: string;
|
|
5
5
|
description: string;
|
|
6
|
+
className?: string;
|
|
6
7
|
type?: string;
|
|
7
8
|
extra?: ChildrenProps | null;
|
|
8
9
|
footer?: ChildrenProps | null;
|
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
import { CSSProperties } from
|
|
2
|
-
import { ITDSize } from
|
|
3
|
-
import { ChildrenProps } from
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { ITDSize } from '../index';
|
|
3
|
+
import { ChildrenProps } from '../ChildrenProps';
|
|
4
|
+
import { ITDHorizontalPosition, ITDVariant, ITDVerticalPosition } from '../ITDProps';
|
|
4
5
|
export type SelectProps = {
|
|
5
6
|
id?: string;
|
|
6
7
|
defaultValue?: SelectValue;
|
|
7
8
|
value?: SelectValue;
|
|
8
9
|
label?: string | number;
|
|
9
|
-
position?:
|
|
10
|
-
direction?:
|
|
10
|
+
position?: ITDVerticalPosition;
|
|
11
|
+
direction?: ITDHorizontalPosition;
|
|
11
12
|
multi?: boolean;
|
|
12
13
|
size?: ITDSize;
|
|
13
|
-
variant?:
|
|
14
|
+
variant?: ITDVariant;
|
|
14
15
|
className?: string;
|
|
15
16
|
placeholder?: string;
|
|
16
17
|
prefix?: ChildrenProps;
|
|
17
|
-
suffix?: ChildrenProps;
|
|
18
18
|
icon?: string;
|
|
19
19
|
image?: string;
|
|
20
20
|
disabled?: boolean;
|
|
21
21
|
showSearch?: boolean;
|
|
22
22
|
locked?: boolean;
|
|
23
|
-
floating?: boolean;
|
|
24
23
|
style?: CSSProperties;
|
|
25
24
|
options?: SelectOptionProps[];
|
|
26
25
|
onChange?: ((value: SelectValue) => void) | null;
|
|
@@ -29,23 +28,19 @@ export type SelectProps = {
|
|
|
29
28
|
export type SelectToggleProps = {
|
|
30
29
|
id?: string;
|
|
31
30
|
label?: string | number | ChildrenProps;
|
|
32
|
-
value?: SelectValue | null;
|
|
33
31
|
errorMessage: string;
|
|
34
32
|
multi: boolean;
|
|
35
33
|
isOpen: boolean;
|
|
36
34
|
showSearch: boolean;
|
|
37
35
|
locked: boolean;
|
|
38
36
|
disabled: boolean;
|
|
39
|
-
labelType: string;
|
|
40
37
|
placeholder: string;
|
|
41
38
|
icon?: string;
|
|
42
39
|
prefix?: ChildrenProps;
|
|
43
|
-
suffix?: ChildrenProps;
|
|
44
40
|
image?: string;
|
|
45
41
|
size: ITDSize;
|
|
46
42
|
onFocus: () => void;
|
|
47
|
-
|
|
48
|
-
onShow: (value: boolean) => void;
|
|
43
|
+
onShow: (value: boolean, trigger?: 'pointer' | 'keyboard') => void;
|
|
49
44
|
onFilter: (value: string) => void;
|
|
50
45
|
onChange: (open: boolean) => void;
|
|
51
46
|
};
|
|
@@ -58,7 +53,18 @@ export type SelectOptionProps = {
|
|
|
58
53
|
disabled?: boolean;
|
|
59
54
|
searchText?: string;
|
|
60
55
|
};
|
|
56
|
+
export type SelectorInputProps = {
|
|
57
|
+
id?: string;
|
|
58
|
+
label?: string | number | ChildrenProps;
|
|
59
|
+
placeholder?: string;
|
|
60
|
+
size: string;
|
|
61
|
+
isOpen: boolean;
|
|
62
|
+
showSearch: boolean;
|
|
63
|
+
disabled: boolean;
|
|
64
|
+
errorMessage?: string;
|
|
65
|
+
activeOptionId?: string;
|
|
66
|
+
onFocus: () => void;
|
|
67
|
+
onFilter: (value: string) => void;
|
|
68
|
+
onShow: (value: boolean) => void;
|
|
69
|
+
};
|
|
61
70
|
export type SelectValue = string | number | (string | number)[];
|
|
62
|
-
export type SelectVariant = "default" | "solid" | "filled" | "outline" | "custom";
|
|
63
|
-
export type SelectPosition = "top" | "bottom";
|
|
64
|
-
export type SelectDirection = "right" | "left";
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
import { ChildrenProps } from '../ChildrenProps';
|
|
2
|
+
import { ITDVariant } from '../ITDProps';
|
|
1
3
|
export type SwitchProps = {
|
|
2
4
|
id?: string;
|
|
3
|
-
|
|
5
|
+
children?: ChildrenProps;
|
|
4
6
|
checked?: boolean;
|
|
5
7
|
defaultChecked?: boolean;
|
|
6
8
|
loading?: boolean;
|
|
7
9
|
disabled?: boolean;
|
|
10
|
+
variant?: ITDVariant;
|
|
8
11
|
onChange?: ((value: any) => void) | null;
|
|
9
12
|
onUpdate?: ((value: any, update: any, validation: boolean) => void) | null;
|
|
10
13
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ITDSize } from
|
|
2
|
-
import { ChildrenProps } from
|
|
1
|
+
import { ITDSize } from '../index';
|
|
2
|
+
import { ChildrenProps } from '../ChildrenProps';
|
|
3
3
|
export type TableColumnType<T> = {
|
|
4
4
|
key: keyof T | string;
|
|
5
5
|
title: ChildrenProps;
|
|
@@ -14,6 +14,7 @@ export type TableProps<T extends TableRow> = {
|
|
|
14
14
|
columns: TableColumnType<T>[];
|
|
15
15
|
data: T[] | null;
|
|
16
16
|
cellHeight?: number | string;
|
|
17
|
+
className?: string;
|
|
17
18
|
size?: ITDSize;
|
|
18
19
|
headless?: boolean;
|
|
19
20
|
bordered?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ChildrenProps } from
|
|
2
|
-
import { ITDSize } from
|
|
3
|
-
import { RefObject } from
|
|
1
|
+
import { ChildrenProps } from '../ChildrenProps';
|
|
2
|
+
import { ITDSize } from '../index';
|
|
3
|
+
import { RefObject } from 'react';
|
|
4
4
|
export type TextAreaProps = {
|
|
5
5
|
id?: string;
|
|
6
6
|
placeholder?: string;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { ColorScale } from '../helpers/theme/GenerateColorScale';
|
|
2
|
+
export type ITDTheme = {
|
|
3
|
+
appearance: 'light' | 'dark';
|
|
4
|
+
transitionDuration: string;
|
|
5
|
+
transitionTimingFunction: string;
|
|
6
|
+
fontSans?: string;
|
|
7
|
+
fontMono?: string;
|
|
8
|
+
boxShadow: string;
|
|
9
|
+
cardShadow: string;
|
|
10
|
+
floatingShadow: string;
|
|
11
|
+
borderRadius: string;
|
|
12
|
+
ringOffset: string;
|
|
13
|
+
ringWidth: string;
|
|
14
|
+
background: string;
|
|
15
|
+
foreground: string;
|
|
16
|
+
input: string;
|
|
17
|
+
primary: string;
|
|
18
|
+
primaryHover: string;
|
|
19
|
+
primaryForeground: string;
|
|
20
|
+
primaryScale: ColorScale;
|
|
21
|
+
secondary: string;
|
|
22
|
+
secondaryHover: string;
|
|
23
|
+
secondaryForeground: string;
|
|
24
|
+
secondaryForegroundHover: string;
|
|
25
|
+
accent: string;
|
|
26
|
+
accentForeground: string;
|
|
27
|
+
muted: string;
|
|
28
|
+
mutedForeground: string;
|
|
29
|
+
selection: string;
|
|
30
|
+
selectionForeground: string;
|
|
31
|
+
popover: string;
|
|
32
|
+
popoverForeground: string;
|
|
33
|
+
card: string;
|
|
34
|
+
cardForeground: string;
|
|
35
|
+
colorText: string;
|
|
36
|
+
colorTextMuted: string;
|
|
37
|
+
colorTextMutedForeground: string;
|
|
38
|
+
colorPlaceholder: string;
|
|
39
|
+
colorTextNeutral: string;
|
|
40
|
+
colorControlLabel: string;
|
|
41
|
+
colorModalShadow: string;
|
|
42
|
+
colorBorder: string;
|
|
43
|
+
colorBorderHover: string;
|
|
44
|
+
colorBorderTransparent: string;
|
|
45
|
+
colorBackgroundAlt: string;
|
|
46
|
+
colorBackgroundAltHover: string;
|
|
47
|
+
colorBackgroundTransparent: string;
|
|
48
|
+
colorBackgroundModal: string;
|
|
49
|
+
colorForegroundItemSelected: string;
|
|
50
|
+
colorForegroundItemSelectedText: string;
|
|
51
|
+
colorBackgroundSelect: string;
|
|
52
|
+
colorBackgroundSelectFilled: string;
|
|
53
|
+
colorBackgroundSelectFilledItem: string;
|
|
54
|
+
colorBackgroundSelectItem: string;
|
|
55
|
+
colorBackgroundSelectItemHover: string;
|
|
56
|
+
colorBackgroundSelectItemSelected: string;
|
|
57
|
+
colorDisabledBg: string;
|
|
58
|
+
colorDisabledBorder: string;
|
|
59
|
+
colorDisabledText: string;
|
|
60
|
+
colorIcon: string;
|
|
61
|
+
colorIconMuted: string;
|
|
62
|
+
colorError: string;
|
|
63
|
+
colorErrorText: string;
|
|
64
|
+
colorErrorBorder: string;
|
|
65
|
+
scrollbarThumb: string;
|
|
66
|
+
scrollbarThumbHover: string;
|
|
67
|
+
primaryGradientStart: string;
|
|
68
|
+
primaryGradientEnd: string;
|
|
69
|
+
primaryHoverStart: string;
|
|
70
|
+
primaryHoverEnd: string;
|
|
71
|
+
primaryContrastText: string;
|
|
72
|
+
buttonGenericBg: string;
|
|
73
|
+
buttonGenericHoverBg: string;
|
|
74
|
+
buttonSelectedBorder: string;
|
|
75
|
+
buttonSelectedBg: string;
|
|
76
|
+
buttonDisabledBg: string;
|
|
77
|
+
buttonDisabledText: string;
|
|
78
|
+
colorUploadOverlay: string;
|
|
79
|
+
colorUploadText: string;
|
|
80
|
+
colorUploadOverlayError: string;
|
|
81
|
+
colorUploadErrorText: string;
|
|
82
|
+
colorUploadOverlayCompleted: string;
|
|
83
|
+
colorUploadCompletedText: string;
|
|
84
|
+
colorUploadOverlayUploading: string;
|
|
85
|
+
colorUploadOverlayUploadingBar: string;
|
|
86
|
+
colorUploadingText: string;
|
|
87
|
+
colorAlertInfoBackground: string;
|
|
88
|
+
colorAlertInfoBorder: string;
|
|
89
|
+
colorAlertInfoTitle: string;
|
|
90
|
+
colorAlertInfoText: string;
|
|
91
|
+
colorAlertSuccessBackground: string;
|
|
92
|
+
colorAlertSuccessBorder: string;
|
|
93
|
+
colorAlertSuccessTitle: string;
|
|
94
|
+
colorAlertSuccessText: string;
|
|
95
|
+
colorAlertWarningBackground: string;
|
|
96
|
+
colorAlertWarningBorder: string;
|
|
97
|
+
colorAlertWarningTitle: string;
|
|
98
|
+
colorAlertWarningText: string;
|
|
99
|
+
colorAlertErrorBackground: string;
|
|
100
|
+
colorAlertErrorBorder: string;
|
|
101
|
+
colorAlertErrorTitle: string;
|
|
102
|
+
colorAlertErrorText: string;
|
|
103
|
+
};
|
|
@@ -1,27 +1,8 @@
|
|
|
1
|
-
import { FileTypes } from
|
|
2
|
-
|
|
3
|
-
* Crop settings for the Upload component
|
|
4
|
-
*/
|
|
5
|
-
export type CropSettings = {
|
|
6
|
-
/** Aspect ratio (e.g., 1 for square, 16/9 for widescreen). */
|
|
7
|
-
aspectRatio?: number;
|
|
8
|
-
/** Minimum crop area width in pixels. User cannot select smaller than this. */
|
|
9
|
-
minWidth?: number;
|
|
10
|
-
/** Minimum crop area height in pixels. User cannot select smaller than this. */
|
|
11
|
-
minHeight?: number;
|
|
12
|
-
/** Output width in pixels. Cropped image will be resized to this width. */
|
|
13
|
-
outputWidth?: number;
|
|
14
|
-
/** Output height in pixels. Cropped image will be resized to this height. */
|
|
15
|
-
outputHeight?: number;
|
|
16
|
-
/** Output image quality (0-1), default 0.9 */
|
|
17
|
-
quality?: number;
|
|
18
|
-
/** Crop modal title */
|
|
19
|
-
modalTitle?: string;
|
|
20
|
-
/** Show grid lines on crop area (default: true) */
|
|
21
|
-
showGrid?: boolean;
|
|
22
|
-
};
|
|
1
|
+
import { FileTypes } from '../index';
|
|
2
|
+
import { ITDVariant } from '../ITDProps';
|
|
23
3
|
export type UploadProps = {
|
|
24
4
|
id?: string;
|
|
5
|
+
variant?: ITDVariant;
|
|
25
6
|
action?: string;
|
|
26
7
|
filePath?: string | null;
|
|
27
8
|
removeAction?: string;
|
|
@@ -51,24 +32,6 @@ export type UploadProps = {
|
|
|
51
32
|
extraQueryString?: {};
|
|
52
33
|
extraHeader?: {};
|
|
53
34
|
disabled?: boolean;
|
|
54
|
-
/** Minimum image width required for upload (in pixels). Smaller images will be rejected. Works with or without crop. */
|
|
55
|
-
minImageWidth?: number;
|
|
56
|
-
/** Minimum image height required for upload (in pixels). Smaller images will be rejected. Works with or without crop. */
|
|
57
|
-
minImageHeight?: number;
|
|
58
|
-
/**
|
|
59
|
-
* Crop settings. If provided, cropping is enabled.
|
|
60
|
-
* @example
|
|
61
|
-
* crop={{
|
|
62
|
-
* aspectRatio: 16/9,
|
|
63
|
-
* minWidth: 960, // Minimum crop area size
|
|
64
|
-
* minHeight: 540,
|
|
65
|
-
* outputWidth: 1920, // Final output size
|
|
66
|
-
* outputHeight: 1080,
|
|
67
|
-
* quality: 0.9,
|
|
68
|
-
* modalTitle: "Crop Image"
|
|
69
|
-
* }}
|
|
70
|
-
*/
|
|
71
|
-
crop?: CropSettings;
|
|
72
35
|
onChange?: ((value: any) => void) | null;
|
|
73
36
|
onUpdate?: ((value: any, update: any, validation: boolean) => void) | null;
|
|
74
37
|
onUploadSuccess?: (path: string) => void;
|
package/dist/upload/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UploadProps, ITDImperativeFuncProps } from
|
|
1
|
+
import { UploadProps, ITDImperativeFuncProps } from '../index';
|
|
2
2
|
/**
|
|
3
3
|
*
|
|
4
4
|
* UPLOAD
|
|
@@ -9,5 +9,5 @@ import { UploadProps, ITDImperativeFuncProps } from "../index";
|
|
|
9
9
|
* @returns
|
|
10
10
|
*
|
|
11
11
|
*/
|
|
12
|
-
declare const Upload: import(
|
|
12
|
+
declare const Upload: import('react').ForwardRefExoticComponent<UploadProps & import('react').RefAttributes<ITDImperativeFuncProps>>;
|
|
13
13
|
export default Upload;
|
package/dist/upload/styled.d.ts
CHANGED
|
@@ -1,46 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
declare const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
$maxFileHeight?: number | string;
|
|
13
|
-
$containerWidth?: number | string;
|
|
14
|
-
$containerHeight?: number | string;
|
|
15
|
-
}>> & string;
|
|
16
|
-
declare const Label: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
17
|
-
$showFocus: boolean;
|
|
18
|
-
}>> & string;
|
|
19
|
-
declare const IconsWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
20
|
-
$position: "default" | "corners";
|
|
21
|
-
}>> & string;
|
|
22
|
-
declare const CenterContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
23
|
-
$width: number | string;
|
|
24
|
-
$height: number | string;
|
|
25
|
-
$padding: number | string;
|
|
26
|
-
}>> & string;
|
|
27
|
-
declare const OverlayContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
28
|
-
$isHover: boolean;
|
|
29
|
-
}>> & string;
|
|
30
|
-
declare const Overlay: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
31
|
-
$isHover: boolean;
|
|
32
|
-
}>> & string;
|
|
33
|
-
declare const Uploading: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
34
|
-
$isActive: boolean;
|
|
35
|
-
$complete: boolean;
|
|
36
|
-
$error: boolean;
|
|
37
|
-
}>> & string;
|
|
38
|
-
declare const UploadStatusBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
39
|
-
$progress: number;
|
|
40
|
-
$complete: boolean;
|
|
41
|
-
$error: boolean;
|
|
42
|
-
}>> & string;
|
|
43
|
-
declare const ErrorBorder: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
44
|
-
declare const Failed: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, never>> & string;
|
|
45
|
-
declare const ErrorTooltip: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
1
|
+
import { ErrorTooltip, ErrorBorder } from '../utils/CommonStyledComponents';
|
|
2
|
+
declare const Wrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
declare const FileContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
+
declare const Label: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
+
declare const IconsWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
6
|
+
declare const CenterContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
|
+
declare const OverlayContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
|
+
declare const Overlay: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
9
|
+
declare const Uploading: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
10
|
+
declare const UploadStatusBox: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
11
|
+
declare const Failed: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, never>> & string;
|
|
46
12
|
export { Wrapper, FileContent, IconsWrapper, Label, CenterContent, Overlay, OverlayContent, Uploading, UploadStatusBox, ErrorBorder, ErrorTooltip, Failed };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { TooltipPositions } from '../enums/enum';
|
|
3
|
+
export declare const ErrorSVGIcon: import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const ErrorTooltip: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
5
|
+
$position?: TooltipPositions;
|
|
6
|
+
$offsetX?: number;
|
|
7
|
+
$offsetY?: number;
|
|
8
|
+
}>> & string;
|
|
9
|
+
export declare const ErrorBorder: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
10
|
+
$fullSize?: boolean;
|
|
11
|
+
}>> & string;
|
|
12
|
+
export type ErrorIconProps = {
|
|
13
|
+
message: string;
|
|
14
|
+
icon?: ReactNode;
|
|
15
|
+
className?: string;
|
|
16
|
+
tooltipPosition?: TooltipPositions;
|
|
17
|
+
};
|
|
18
|
+
export declare const ErrorIcon: FC<ErrorIconProps>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
interface ErrorAnnouncementProps {
|
|
3
|
+
id: string;
|
|
4
|
+
message: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Screen reader için gizli error announcement
|
|
8
|
+
* WCAG 2.1 - 3.3.1 Error Identification (Level A)
|
|
9
|
+
*/
|
|
10
|
+
export declare const ErrorAnnouncement: FC<ErrorAnnouncementProps>;
|
|
11
|
+
/**
|
|
12
|
+
* Form elementi için ARIA attributes oluştur
|
|
13
|
+
*/
|
|
14
|
+
export declare const getErrorAriaProps: (elementId: string, hasError: boolean) => {
|
|
15
|
+
'aria-invalid'?: undefined;
|
|
16
|
+
'aria-describedby'?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
'aria-invalid': "true";
|
|
19
|
+
'aria-describedby': string;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Error ID oluştur
|
|
23
|
+
*/
|
|
24
|
+
export declare const getErrorId: (elementId: string) => string;
|
|
25
|
+
export {};
|