@inntechcorp/it-design 3.1.24 → 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 +2695 -2580
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +168 -1787
- 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 +4 -10
- 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 +2 -2
- 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 -2
- 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 -5612
- 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,2 +1,2 @@
|
|
|
1
|
-
import { ITDSize } from
|
|
1
|
+
import { ITDSize } from '../index';
|
|
2
2
|
export default function GetIconSizeBySize(size: ITDSize): "14" | "16" | "18" | "20" | "22" | "24";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ComponentSizes } from
|
|
2
|
-
import { ITDSizeSlug } from
|
|
1
|
+
import { ComponentSizes } from '../enums/enum';
|
|
2
|
+
import { ITDSizeSlug } from '../index';
|
|
3
3
|
export default function GetSizeBySizeSlug(size: ITDSizeSlug): ComponentSizes;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
import { ComponentSizesSlug } from
|
|
2
|
-
import { ITDSize } from
|
|
1
|
+
import { ComponentSizesSlug } from '../enums/enum';
|
|
2
|
+
import { ITDSize } from '../index';
|
|
3
|
+
/**
|
|
4
|
+
* General purpose size slug converter for all components
|
|
5
|
+
*/
|
|
3
6
|
export default function GetSizeSlugBySize(size: ITDSize): ComponentSizesSlug;
|
|
@@ -7,5 +7,5 @@ type InlineSVGCachedProps = {
|
|
|
7
7
|
onLoaded?: () => void;
|
|
8
8
|
onError?: (error: unknown) => void;
|
|
9
9
|
};
|
|
10
|
-
declare const _default: import(
|
|
10
|
+
declare const _default: import('react').MemoExoticComponent<({ src, className, style, title, role, onLoaded, onError }: InlineSVGCachedProps) => import("react/jsx-runtime").JSX.Element>;
|
|
11
11
|
export default _default;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
export { default as GetIconSizeBySize } from '
|
|
2
|
-
export { default as GetSizeBySizeSlug } from '
|
|
3
|
-
export { default as GetSizeSlugBySize } from '
|
|
4
|
-
export { default as
|
|
1
|
+
export { default as GetIconSizeBySize } from '../GetIconSizeBySize';
|
|
2
|
+
export { default as GetSizeBySizeSlug } from '../GetSizeBySizeSlug';
|
|
3
|
+
export { default as GetSizeSlugBySize } from '../GetSizeSlugBySize';
|
|
4
|
+
export { default as GetButtonSizeSlug } from '../GetButtonSizeSlug';
|
|
5
|
+
export { default as InlineSVGCached } from '../InlineSVGCached';
|
|
6
|
+
export { ErrorAnnouncement, getErrorAriaProps, getErrorId } from '../ErrorAnnouncement';
|
package/package.json
CHANGED
|
@@ -1,20 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inntechcorp/it-design",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-beta.1",
|
|
4
4
|
"description": "All in one Design library for web applications.",
|
|
5
5
|
"author": "Inn.Tech",
|
|
6
6
|
"license": "ISC",
|
|
7
|
-
"main": "dist/index.
|
|
8
|
-
"module": "dist/index.
|
|
7
|
+
"main": "dist/cjs/index.js",
|
|
8
|
+
"module": "dist/es/index.js",
|
|
9
9
|
"types": "dist/index.d.ts",
|
|
10
10
|
"type": "module",
|
|
11
|
+
"sideEffects": [
|
|
12
|
+
"*.css",
|
|
13
|
+
"lib/global.css",
|
|
14
|
+
"lib/css/*.css",
|
|
15
|
+
"lib/index.ts",
|
|
16
|
+
"lib/context/**",
|
|
17
|
+
"lib/helpers/datetime/**"
|
|
18
|
+
],
|
|
11
19
|
"files": [
|
|
12
20
|
"dist",
|
|
13
|
-
"src/typings"
|
|
21
|
+
"src/typings",
|
|
22
|
+
"ACCESSIBILITY.md"
|
|
14
23
|
],
|
|
15
24
|
"scripts": {
|
|
16
25
|
"prepublish": "rollup -c --bundleConfigAsCjs",
|
|
17
26
|
"build-rollup": "[ -d ./dist ] || mkdir dist && rm -r ./dist && rollup -c --bundleConfigAsCjs",
|
|
27
|
+
"analyze": "ROLLUP_WATCH=false rollup -c --bundleConfigAsCjs && open dist/stats.html",
|
|
18
28
|
"start-rollup": "rollup -c -w --bundleConfigAsCjs",
|
|
19
29
|
"npm-publish": "yarn run build-rollup && npm publish --access public",
|
|
20
30
|
"start": "vite --host",
|
|
@@ -29,119 +39,126 @@
|
|
|
29
39
|
},
|
|
30
40
|
"dependencies": {
|
|
31
41
|
"@mona-health/react-input-mask": "^3.0.3",
|
|
32
|
-
"autoprefixer": "10.4.
|
|
33
|
-
"axios": "1.
|
|
34
|
-
"core-js": "3.
|
|
42
|
+
"autoprefixer": "10.4.23",
|
|
43
|
+
"axios": "1.13.2",
|
|
44
|
+
"core-js": "3.47.0",
|
|
45
|
+
"csstype": "^3.2.3",
|
|
46
|
+
"dayjs": "1.11.19",
|
|
35
47
|
"fast-deep-equal": "^3.1.3",
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"i18next-resources-to-backend": "^1.2.1",
|
|
40
|
-
"lodash-es": "4.17.21",
|
|
41
|
-
"overlayscrollbars": "2.11.4",
|
|
48
|
+
"lodash-es": "4.17.22",
|
|
49
|
+
"lucide-react": "^0.562.0",
|
|
50
|
+
"overlayscrollbars": "2.13.0",
|
|
42
51
|
"postcss": "8.5.6",
|
|
43
52
|
"postcss-calc": "10.1.1",
|
|
44
53
|
"prop-types": "^15.8.1",
|
|
45
|
-
"query-string": "9.
|
|
46
|
-
"react": "19.1.1",
|
|
47
|
-
"react-dom": "19.1.1",
|
|
48
|
-
"react-i18next": "15.7.3",
|
|
54
|
+
"query-string": "9.3.1",
|
|
49
55
|
"react-nanny": "^2.15.0",
|
|
50
56
|
"react-number-format": "5.4.4",
|
|
51
|
-
"react-router": "7.
|
|
52
|
-
"react-router-dom": "7.
|
|
53
|
-
"react-spring": "10.0.
|
|
57
|
+
"react-router": "7.11.0",
|
|
58
|
+
"react-router-dom": "7.11.0",
|
|
59
|
+
"react-spring": "10.0.3",
|
|
54
60
|
"react-svg": "16.3.0",
|
|
55
61
|
"react-transition-group": "4.4.5",
|
|
56
|
-
"react-virtuoso": "
|
|
62
|
+
"react-virtuoso": "4.17.0",
|
|
57
63
|
"smoothscroll-polyfill": "^0.4.4",
|
|
58
|
-
"
|
|
59
|
-
"uuid": "
|
|
64
|
+
"sonner": "^2.0.7",
|
|
65
|
+
"uuid": "13.0.0",
|
|
60
66
|
"web-vitals": "5.1.0"
|
|
61
67
|
},
|
|
62
68
|
"devDependencies": {
|
|
63
|
-
"@babel/core": "7.28.
|
|
64
|
-
"@babel/plugin-transform-runtime": "7.28.
|
|
65
|
-
"@babel/preset-env": "7.28.
|
|
66
|
-
"@babel/preset-react": "7.
|
|
67
|
-
"@babel/preset-typescript": "7.
|
|
68
|
-
"@babel/runtime": "7.28.
|
|
69
|
-
"@rollup/plugin-babel": "6.0
|
|
70
|
-
"@rollup/plugin-commonjs": "
|
|
69
|
+
"@babel/core": "7.28.5",
|
|
70
|
+
"@babel/plugin-transform-runtime": "7.28.5",
|
|
71
|
+
"@babel/preset-env": "7.28.5",
|
|
72
|
+
"@babel/preset-react": "7.28.5",
|
|
73
|
+
"@babel/preset-typescript": "7.28.5",
|
|
74
|
+
"@babel/runtime": "7.28.4",
|
|
75
|
+
"@rollup/plugin-babel": "6.1.0",
|
|
76
|
+
"@rollup/plugin-commonjs": "29.0.0",
|
|
71
77
|
"@rollup/plugin-image": "^3.0.3",
|
|
72
78
|
"@rollup/plugin-json": "6.1.0",
|
|
73
|
-
"@rollup/plugin-node-resolve": "16.0.
|
|
74
|
-
"@storybook/addon-docs": "^
|
|
75
|
-
"@storybook/addon-links": "
|
|
76
|
-
"@storybook/addon-onboarding": "
|
|
77
|
-
"@storybook/builder-vite": "
|
|
78
|
-
"@storybook/react-vite": "
|
|
79
|
-
"@testing-library/jest-dom": "6.
|
|
80
|
-
"@testing-library/react": "16.3.
|
|
79
|
+
"@rollup/plugin-node-resolve": "16.0.3",
|
|
80
|
+
"@storybook/addon-docs": "^10.1.10",
|
|
81
|
+
"@storybook/addon-links": "10.1.10",
|
|
82
|
+
"@storybook/addon-onboarding": "10.1.10",
|
|
83
|
+
"@storybook/builder-vite": "10.1.10",
|
|
84
|
+
"@storybook/react-vite": "10.1.10",
|
|
85
|
+
"@testing-library/jest-dom": "6.9.1",
|
|
86
|
+
"@testing-library/react": "16.3.1",
|
|
81
87
|
"@testing-library/user-event": "14.6.1",
|
|
82
88
|
"@types/lodash-es": "^4.17.12",
|
|
83
|
-
"@types/node": "
|
|
84
|
-
"@types/react": "19.
|
|
85
|
-
"@types/react-dom": "19.
|
|
89
|
+
"@types/node": "25.0.3",
|
|
90
|
+
"@types/react": "19.2.7",
|
|
91
|
+
"@types/react-dom": "19.2.3",
|
|
86
92
|
"@types/rollup-plugin-node-globals": "1.4.5",
|
|
87
|
-
"@vitejs/plugin-react": "5.
|
|
93
|
+
"@vitejs/plugin-react": "5.1.2",
|
|
88
94
|
"babel-plugin-styled-components": "2.1.4",
|
|
89
95
|
"copy-webpack-plugin": "13.0.1",
|
|
90
96
|
"customize-cra": "^1.0.0",
|
|
91
|
-
"dayjs": "^1.11.19",
|
|
92
97
|
"dts-bundle-generator": "^9.5.1",
|
|
93
|
-
"
|
|
94
|
-
"eslint-plugin-storybook": "9.1.4",
|
|
98
|
+
"eslint-plugin-storybook": "10.1.10",
|
|
95
99
|
"esm": "^3.2.25",
|
|
100
|
+
"i18next": "25.7.3",
|
|
101
|
+
"i18next-browser-languagedetector": "8.2.0",
|
|
102
|
+
"i18next-http-backend": "3.0.2",
|
|
103
|
+
"i18next-resources-to-backend": "^1.2.1",
|
|
96
104
|
"less-loader": "12.3.0",
|
|
97
105
|
"postcss-custom-properties": "14.0.6",
|
|
98
106
|
"postcss-import": "16.1.1",
|
|
99
107
|
"postcss-nesting": "13.0.2",
|
|
100
108
|
"postcss-normalize": "13.0.1",
|
|
101
|
-
"postcss-preset-env": "10.
|
|
109
|
+
"postcss-preset-env": "10.5.0",
|
|
110
|
+
"react": "19.2.3",
|
|
102
111
|
"react-app-rewired": "^2.2.1",
|
|
103
|
-
"
|
|
112
|
+
"react-dom": "19.2.3",
|
|
113
|
+
"react-i18next": "16.5.0",
|
|
114
|
+
"rollup": "4.54.0",
|
|
104
115
|
"rollup-plugin-copy": "^3.5.0",
|
|
105
|
-
"rollup-plugin-dts": "6.
|
|
116
|
+
"rollup-plugin-dts": "6.3.0",
|
|
106
117
|
"rollup-plugin-local-resolve": "^1.0.7",
|
|
107
118
|
"rollup-plugin-node-builtins": "^2.1.2",
|
|
108
119
|
"rollup-plugin-node-globals": "^1.4.0",
|
|
109
120
|
"rollup-plugin-node-polyfills": "^0.2.1",
|
|
110
121
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
111
122
|
"rollup-plugin-postcss": "^4.0.2",
|
|
112
|
-
"rollup-plugin-scss": "4.0.1",
|
|
113
123
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
114
124
|
"rollup-plugin-styles": "4.0.0",
|
|
115
125
|
"rollup-plugin-terser": "^7.0.2",
|
|
116
126
|
"rollup-plugin-typescript2": "0.36.0",
|
|
117
|
-
"
|
|
118
|
-
"sass-embedded": "^1.97.1",
|
|
127
|
+
"rollup-plugin-visualizer": "6.0.5",
|
|
119
128
|
"source-map-loader": "5.0.0",
|
|
120
|
-
"storybook": "
|
|
129
|
+
"storybook": "10.1.10",
|
|
130
|
+
"styled-components": "6.1.19",
|
|
121
131
|
"tslib": "2.8.1",
|
|
122
|
-
"typescript": "5.9.
|
|
123
|
-
"vite": "7.
|
|
132
|
+
"typescript": "5.9.3",
|
|
133
|
+
"vite": "7.3.0",
|
|
124
134
|
"vite-plugin-css-injected-by-js": "3.5.2",
|
|
125
|
-
"vite-plugin-dts": "4.5.4",
|
|
135
|
+
"vite-plugin-dts": "^4.5.4",
|
|
126
136
|
"vite-plugin-lib-inject-css": "2.2.2",
|
|
127
137
|
"vite-plugin-node-polyfills": "0.24.0",
|
|
128
138
|
"vite-plugin-svgr": "4.5.0",
|
|
129
|
-
"vite-tsconfig-paths": "
|
|
139
|
+
"vite-tsconfig-paths": "6.0.3"
|
|
130
140
|
},
|
|
131
141
|
"peerDependencies": {
|
|
132
|
-
"dayjs": "1.11.18",
|
|
133
142
|
"react": "^19.1.0",
|
|
134
143
|
"react-dom": "^19.1.0",
|
|
135
|
-
"sonner": "^2.0.0",
|
|
136
144
|
"styled-components": "^6.1.19"
|
|
137
145
|
},
|
|
138
146
|
"bugs": {
|
|
139
147
|
"url": "https://github.com/inntechcorp/it-design-library/issues"
|
|
140
148
|
},
|
|
141
149
|
"keywords": [
|
|
150
|
+
"design-system",
|
|
151
|
+
"component-library",
|
|
152
|
+
"react",
|
|
153
|
+
"typescript",
|
|
154
|
+
"styled-components",
|
|
155
|
+
"accessibility",
|
|
156
|
+
"wcag",
|
|
157
|
+
"a11y",
|
|
158
|
+
"ui",
|
|
142
159
|
"design",
|
|
143
|
-
"
|
|
144
|
-
"
|
|
160
|
+
"oklch",
|
|
161
|
+
"dark-mode"
|
|
145
162
|
],
|
|
146
163
|
"eslintConfig": {
|
|
147
164
|
"extends": [
|
|
@@ -167,15 +184,21 @@
|
|
|
167
184
|
"exports": {
|
|
168
185
|
".": {
|
|
169
186
|
"import": {
|
|
170
|
-
"types": "./dist/index.d.
|
|
171
|
-
"default": "./dist/index.
|
|
187
|
+
"types": "./dist/index.d.ts",
|
|
188
|
+
"default": "./dist/es/index.js"
|
|
172
189
|
},
|
|
173
190
|
"require": {
|
|
174
191
|
"types": "./dist/index.d.ts",
|
|
175
|
-
"default": "./dist/index.
|
|
192
|
+
"default": "./dist/cjs/index.js"
|
|
176
193
|
}
|
|
177
194
|
},
|
|
195
|
+
"./global.css": "./dist/global.css",
|
|
178
196
|
"./dist/global.css": "./dist/global.css",
|
|
197
|
+
"./css/properties.css": "./dist/css/properties.css",
|
|
198
|
+
"./css/reset.css": "./dist/css/reset.css",
|
|
199
|
+
"./css/base.css": "./dist/css/base.css",
|
|
200
|
+
"./css/components.css": "./dist/css/components.css",
|
|
201
|
+
"./css/utilities.css": "./dist/css/utilities.css",
|
|
179
202
|
"./locales/*": "./dist/locales/*"
|
|
180
203
|
},
|
|
181
204
|
"directories": {
|
package/dist/cropper/index.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export interface CropArea {
|
|
2
|
-
x: number;
|
|
3
|
-
y: number;
|
|
4
|
-
width: number;
|
|
5
|
-
height: number;
|
|
6
|
-
}
|
|
7
|
-
export interface ImageCropperProps {
|
|
8
|
-
/** Image source (URL or base64) */
|
|
9
|
-
src: string;
|
|
10
|
-
/** Aspect ratio to maintain (e.g., 1 for square, 16/9 for widescreen). If undefined, free crop */
|
|
11
|
-
aspectRatio?: number;
|
|
12
|
-
/** Minimum crop width in pixels */
|
|
13
|
-
minWidth?: number;
|
|
14
|
-
/** Minimum crop height in pixels */
|
|
15
|
-
minHeight?: number;
|
|
16
|
-
/** Output width - cropped image will be resized to this width */
|
|
17
|
-
outputWidth?: number;
|
|
18
|
-
/** Output height - cropped image will be resized to this height */
|
|
19
|
-
outputHeight?: number;
|
|
20
|
-
/** Output image quality (0-1) */
|
|
21
|
-
quality?: number;
|
|
22
|
-
/** Output image format */
|
|
23
|
-
outputFormat?: "image/jpeg" | "image/png" | "image/webp";
|
|
24
|
-
/** Callback when crop area changes */
|
|
25
|
-
onCropChange?: (cropArea: CropArea) => void;
|
|
26
|
-
/** Container width */
|
|
27
|
-
width?: string | number;
|
|
28
|
-
/** Container height */
|
|
29
|
-
height?: string | number;
|
|
30
|
-
/** Show grid lines on crop area (default: true) */
|
|
31
|
-
showGrid?: boolean;
|
|
32
|
-
}
|
|
33
|
-
export interface ImageCropperRef {
|
|
34
|
-
/** Get cropped image as Blob */
|
|
35
|
-
getCroppedImage: () => Promise<Blob | null>;
|
|
36
|
-
/** Get cropped image as File */
|
|
37
|
-
getCroppedFile: (fileName?: string) => Promise<File | null>;
|
|
38
|
-
/** Get crop area coordinates */
|
|
39
|
-
getCropArea: () => CropArea;
|
|
40
|
-
/** Reset crop area to center */
|
|
41
|
-
reset: () => void;
|
|
42
|
-
}
|
|
43
|
-
declare const ImageCropper: import("react").ForwardRefExoticComponent<ImageCropperProps & import("react").RefAttributes<ImageCropperRef>>;
|
|
44
|
-
export default ImageCropper;
|
package/dist/global.css
DELETED
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
body {
|
|
2
|
-
|
|
3
|
-
padding: 0;
|
|
4
|
-
margin: 0;
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
*, ::after, ::before {
|
|
9
|
-
box-sizing : border-box;
|
|
10
|
-
-webkit-tap-highlight-color : transparent;
|
|
11
|
-
-webkit-font-smoothing : antialiased;
|
|
12
|
-
margin : 0px;
|
|
13
|
-
padding : 0px;
|
|
14
|
-
outline : none;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
|
|
18
|
-
outline: 0;
|
|
19
|
-
font-weight: bold;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
a {
|
|
23
|
-
cursor: pointer;
|
|
24
|
-
color: #029CFD;
|
|
25
|
-
text-decoration: none;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
a:hover {
|
|
29
|
-
color: #0083d4;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
button, span, input, textarea {
|
|
33
|
-
font-family: inherit;
|
|
34
|
-
font-size: inherit;
|
|
35
|
-
font-weight: inherit;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
input {
|
|
39
|
-
background: transparent;
|
|
40
|
-
border: none;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
input, textarea {
|
|
44
|
-
&::placeholder {
|
|
45
|
-
color: inherit;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
button {
|
|
50
|
-
border: none;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
textarea {
|
|
54
|
-
vertical-align: top;
|
|
55
|
-
vertical-align: text-top;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.itd-provider, #itd-modal-root, #itd-tooltip-root, #itd-notification-root {
|
|
59
|
-
|
|
60
|
-
font-size : 0.875rem;
|
|
61
|
-
line-height : 1rem;
|
|
62
|
-
font-weight : 500;
|
|
63
|
-
font-family : "Inter", sans-serif;
|
|
64
|
-
color : #555;
|
|
65
|
-
-webkit-font-smoothing: antialiased;
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.os-theme-dark {
|
|
70
|
-
--os-size: 8px;
|
|
71
|
-
--os-handle-bg: #3598fe80;
|
|
72
|
-
--os-handle-bg-hover: #3598fe;
|
|
73
|
-
--os-handle-bg-active: #3598fe;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/* ================================= */
|
|
77
|
-
/* Component Transitions */
|
|
78
|
-
/* ================================= */
|
|
79
|
-
|
|
80
|
-
/* Modal Transitions */
|
|
81
|
-
.modal-enter {
|
|
82
|
-
opacity: 0 !important;
|
|
83
|
-
transform: translate(-50%, -40%) !important;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.modal-enter-active {
|
|
87
|
-
opacity: 1 !important;
|
|
88
|
-
transform: translate(-50%, -50%) !important;
|
|
89
|
-
transition: opacity 300ms, transform 300ms !important;
|
|
90
|
-
transition-delay: .3s !important;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.modal-exit {
|
|
94
|
-
opacity: 1 !important;
|
|
95
|
-
transform: translate(-50%, -50%) !important;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.modal-exit-active {
|
|
99
|
-
opacity: 0 !important;
|
|
100
|
-
transform: translate(-50%, -40%) !important;
|
|
101
|
-
transition: opacity 300ms, transform 300ms !important;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
/* Select Menu Transitions */
|
|
105
|
-
.select-menu-enter {
|
|
106
|
-
opacity: 0 !important;
|
|
107
|
-
transform: translateY(-10px) !important;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.select-menu-enter-active {
|
|
111
|
-
opacity: 1 !important;
|
|
112
|
-
transform: translateY(0) !important;
|
|
113
|
-
transition: opacity 250ms, transform 250ms !important;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.select-menu-exit {
|
|
117
|
-
opacity: 1 !important;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.select-menu-exit-active {
|
|
121
|
-
opacity: 0 !important;
|
|
122
|
-
transform: translateY(-10px) !important;
|
|
123
|
-
transition: opacity 250ms, transform 250ms !important;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
/* DatePicker Modal Transitions */
|
|
127
|
-
.datepicker-modal-enter {
|
|
128
|
-
opacity: 0 !important;
|
|
129
|
-
transform: translateY(-10px) !important;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.datepicker-modal-enter-active {
|
|
133
|
-
opacity: 1 !important;
|
|
134
|
-
transform: translateY(0) !important;
|
|
135
|
-
transition: opacity 250ms, transform 250ms !important;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.datepicker-modal-exit {
|
|
139
|
-
opacity: 1 !important;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.datepicker-modal-exit-active {
|
|
143
|
-
opacity: 0 !important;
|
|
144
|
-
transform: translateY(-10px) !important;
|
|
145
|
-
transition: opacity 250ms, transform 250ms !important;
|
|
146
|
-
}
|