@inntechcorp/it-design 3.1.24 → 4.0.0-beta.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/ACCESSIBILITY.md +517 -0
- package/README.md +88 -11
- package/dist/alert/Description.d.ts +7 -0
- package/dist/alert/Title.d.ts +7 -0
- package/dist/alert/index.d.ts +3 -1
- package/dist/alink/index.d.ts +2 -10
- package/dist/alink/styled.d.ts +1 -1
- package/dist/button/index.d.ts +10 -2
- package/dist/calendar/index.d.ts +9 -1
- 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 +7 -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/cjs/_virtual/_commonjsHelpers.js +1 -0
- package/dist/cjs/_virtual/customParseFormat.js +1 -0
- package/dist/cjs/_virtual/customParseFormat2.js +1 -0
- package/dist/cjs/_virtual/dayjs.min.js +1 -0
- package/dist/cjs/_virtual/dayjs.min2.js +1 -0
- package/dist/cjs/_virtual/localizedFormat.js +1 -0
- package/dist/cjs/_virtual/localizedFormat2.js +1 -0
- package/dist/cjs/_virtual/react.js +1 -0
- package/dist/cjs/accordion/index.js +1 -0
- package/dist/cjs/accordion/item/Item.js +1 -0
- package/dist/cjs/accordion/item/styled.js +20 -0
- package/dist/cjs/accordion/styled.js +15 -0
- package/dist/cjs/accordion/submenu/SubMenu.js +1 -0
- package/dist/cjs/accordion/submenu/styled.js +214 -0
- package/dist/cjs/alert/Description.js +1 -0
- package/dist/cjs/alert/Title.js +1 -0
- package/dist/cjs/alert/index.js +1 -0
- package/dist/cjs/alink/index.js +1 -0
- package/dist/cjs/alink/styled.js +5 -0
- package/dist/cjs/back-top/index.js +1 -0
- package/dist/cjs/back-top/styled.js +25 -0
- package/dist/cjs/button/index.js +1 -0
- package/dist/cjs/calendar/dates.js +1 -0
- package/dist/cjs/calendar/day/Day.js +1 -0
- package/dist/cjs/calendar/day/styled.js +91 -0
- package/dist/cjs/calendar/header/Header.js +1 -0
- package/dist/cjs/calendar/header/styled.js +196 -0
- package/dist/cjs/calendar/index.js +1 -0
- package/dist/cjs/calendar/styled.js +82 -0
- package/dist/cjs/card/Card.js +1 -0
- package/dist/cjs/card/CardAction.js +1 -0
- package/dist/cjs/card/CardContent.js +1 -0
- package/dist/cjs/card/CardDescription.js +1 -0
- package/dist/cjs/card/CardFooter.js +1 -0
- package/dist/cjs/card/CardHeader.js +1 -0
- package/dist/cjs/card/CardTabs.js +1 -0
- package/dist/cjs/card/CardTitle.js +1 -0
- package/dist/cjs/checkbox/group/index.js +1 -0
- package/dist/cjs/checkbox/index.js +1 -0
- package/dist/cjs/context/ITDContext.js +1 -0
- package/dist/cjs/context/ITDThemeProvider.js +1 -0
- package/dist/cjs/context/styled.js +15 -0
- package/dist/cjs/datepicker/index.js +1 -0
- package/dist/cjs/enums/enum.js +1 -0
- package/dist/cjs/flex/index.js +1 -0
- package/dist/cjs/flex/styled.js +35 -0
- package/dist/cjs/floating/Arrow.js +108 -0
- package/dist/cjs/floating/FloatingContent.js +38 -0
- package/dist/cjs/form/context/FormContext.js +1 -0
- package/dist/cjs/form/context/FormRegistry.js +1 -0
- package/dist/cjs/form/context/FormStore.js +1 -0
- package/dist/cjs/form/control/Control.js +1 -0
- package/dist/cjs/form/group/Group.js +1 -0
- package/dist/cjs/form/index.js +1 -0
- package/dist/cjs/form/item/Item.js +1 -0
- package/dist/cjs/form/validation/TCIdentity.js +1 -0
- package/dist/cjs/form/validation/Validator.js +1 -0
- package/dist/cjs/form/wrapper/FormWrapper.js +1 -0
- package/dist/cjs/helpers/array/ChunkArray.js +1 -0
- package/dist/cjs/helpers/aspectratio/DetermineNewHeight.js +1 -0
- package/dist/cjs/helpers/aspectratio/DetermineNewWidth.js +1 -0
- package/dist/cjs/helpers/base64/Base64Decode.js +1 -0
- package/dist/cjs/helpers/base64/Base64Encode.js +1 -0
- package/dist/cjs/helpers/binary/FormatBytes.js +1 -0
- package/dist/cjs/helpers/binary/GetTypeByFileType.js +1 -0
- package/dist/cjs/helpers/checker/CheckFileURL.js +1 -0
- package/dist/cjs/helpers/checker/FileChecker.js +1 -0
- package/dist/cjs/helpers/country/GetCountryCodeByCurrencyCode.js +1 -0
- package/dist/cjs/helpers/country/GetCountryCodeByLanguage.js +1 -0
- package/dist/cjs/helpers/css/FindSelector.js +1 -0
- package/dist/cjs/helpers/currency/ConvertCurrency.js +1 -0
- package/dist/cjs/helpers/currency/GetByCurrency.js +1 -0
- package/dist/cjs/helpers/currency/GetCurrencyFormat.js +1 -0
- package/dist/cjs/helpers/currency/GetCurrencySymbol.js +1 -0
- package/dist/cjs/helpers/currency/GetDecimalByCurrency.js +1 -0
- package/dist/cjs/helpers/datetime/FormatDate.js +1 -0
- package/dist/cjs/helpers/datetime/FormatDateTime.js +1 -0
- package/dist/cjs/helpers/datetime/FormatSimpleDate.js +1 -0
- package/dist/cjs/helpers/datetime/FormatSimpleDateTime.js +1 -0
- package/dist/cjs/helpers/datetime/FormatTime.js +1 -0
- package/dist/cjs/helpers/datetime/dayjsSetup.js +1 -0
- package/dist/cjs/helpers/format/ToKebabCase.js +1 -0
- package/dist/cjs/helpers/json/IsValidJSON.js +1 -0
- package/dist/cjs/helpers/math/AddZero.js +1 -0
- package/dist/cjs/helpers/promise/Wait.js +1 -0
- package/dist/cjs/helpers/remover/RemoveUnits.js +1 -0
- package/dist/cjs/helpers/string/UniUpperCase.js +1 -0
- package/dist/cjs/helpers/svg/SVGLoader.js +1 -0
- package/dist/cjs/helpers/svg/styles.js +22 -0
- package/dist/cjs/helpers/theme/AddDefaultThemeStyle.js +1 -0
- package/dist/cjs/helpers/theme/Color.js +1 -0
- package/dist/cjs/helpers/theme/GenerateColorScale.js +1 -0
- package/dist/cjs/helpers/theme/createTheme.js +1 -0
- package/dist/cjs/helpers/theme/cssVariables.js +1 -0
- package/dist/cjs/helpers/theme/dark.js +1 -0
- package/dist/cjs/helpers/theme/light.js +1 -0
- package/dist/cjs/helpers/theme/presets.js +1 -0
- package/dist/cjs/helpers/theme/tokens.js +1 -0
- package/dist/cjs/helpers/unit/AddDefaultUnit.js +1 -0
- package/dist/cjs/hooks/useAddExternalCSS.js +1 -0
- package/dist/cjs/hooks/useAvoidCollision.js +1 -0
- package/dist/cjs/hooks/useComponentSize.js +1 -0
- package/dist/cjs/hooks/useConnectionStatus.js +1 -0
- package/dist/cjs/hooks/useConstructor.js +1 -0
- package/dist/cjs/hooks/useContextBridge.js +1 -0
- package/dist/cjs/hooks/useCoreFetch.js +1 -0
- package/dist/cjs/hooks/useFloatingPosition.js +1 -0
- package/dist/cjs/hooks/useFloatingTrigger.js +1 -0
- package/dist/cjs/hooks/useFocusTrap.js +1 -0
- package/dist/cjs/hooks/useKeyboardShortcut.js +1 -0
- package/dist/cjs/hooks/useMultiQuery.js +1 -0
- package/dist/cjs/hooks/useOnClickOutside.js +1 -0
- package/dist/cjs/hooks/useOnESCKeyDown.js +1 -0
- package/dist/cjs/hooks/useOnResize.js +1 -0
- package/dist/cjs/hooks/useOrientation.js +1 -0
- package/dist/cjs/hooks/useReCaptcha.js +1 -0
- package/dist/cjs/hooks/useSingleQuery.js +1 -0
- package/dist/cjs/hovercard/HoverCard.js +1 -0
- package/dist/cjs/hovercard/HoverCardContent.js +1 -0
- package/dist/cjs/hovercard/HoverCardTrigger.js +1 -0
- package/dist/cjs/hovercard/hoverCardContext.js +1 -0
- package/dist/cjs/html/header/H1.js +1 -0
- package/dist/cjs/html/header/H2.js +1 -0
- package/dist/cjs/html/header/H3.js +1 -0
- package/dist/cjs/html/header/H4.js +1 -0
- package/dist/cjs/html/header/styled.js +33 -0
- package/dist/cjs/icons/Arrow.js +1 -0
- package/dist/cjs/icons/BackToTop.js +1 -0
- package/dist/cjs/icons/Checkmark.js +1 -0
- package/dist/cjs/icons/InlineSelectArrow.js +1 -0
- package/dist/cjs/icons/Lock.js +1 -0
- package/dist/cjs/icons/NoData.js +1 -0
- package/dist/cjs/icons/Picture.js +1 -0
- package/dist/cjs/icons/Trash.js +1 -0
- package/dist/cjs/icons/Upload.js +1 -0
- package/dist/cjs/icons/ZoomIn.js +1 -0
- package/dist/cjs/icons/ZoomOut.js +1 -0
- package/dist/cjs/image/index.js +1 -0
- package/dist/cjs/image/styled.js +4 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/input/index.js +1 -0
- package/dist/cjs/label/index.js +1 -0
- package/dist/cjs/locales/en/calendar.json.js +1 -0
- package/dist/cjs/locales/en/itd.json.js +1 -0
- package/dist/cjs/locales/tr/calendar.json.js +1 -0
- package/dist/cjs/locales/tr/itd.json.js +1 -0
- package/dist/cjs/logger/index.js +1 -0
- package/dist/cjs/modal/container/ModalContainer.js +1 -0
- package/dist/cjs/modal/container/styled.js +18 -0
- package/dist/cjs/modal/context/ModalContext.js +1 -0
- package/dist/cjs/modal/index.js +1 -0
- package/dist/cjs/modal/modal/Modal.js +1 -0
- package/dist/cjs/modal/modal/styled.js +128 -0
- package/dist/cjs/node_modules/@react-spring/animated/dist/react-spring_animated.modern.js +1 -0
- package/dist/cjs/node_modules/@react-spring/core/dist/react-spring_core.modern.js +1 -0
- package/dist/cjs/node_modules/@react-spring/rafz/dist/react-spring_rafz.modern.js +1 -0
- package/dist/cjs/node_modules/@react-spring/shared/dist/react-spring_shared.modern.js +1 -0
- package/dist/cjs/node_modules/@react-spring/web/dist/react-spring_web.modern.js +1 -0
- package/dist/cjs/node_modules/clsx/dist/clsx.js +1 -0
- package/dist/cjs/node_modules/dayjs/dayjs.min.js +1 -0
- package/dist/cjs/node_modules/dayjs/plugin/customParseFormat.js +1 -0
- package/dist/cjs/node_modules/dayjs/plugin/localizedFormat.js +1 -0
- package/dist/cjs/node_modules/fast-deep-equal/react.js +1 -0
- package/dist/cjs/node_modules/lodash-es/_Symbol.js +1 -0
- package/dist/cjs/node_modules/lodash-es/_arrayMap.js +1 -0
- package/dist/cjs/node_modules/lodash-es/_baseGetTag.js +1 -0
- package/dist/cjs/node_modules/lodash-es/_baseToString.js +1 -0
- package/dist/cjs/node_modules/lodash-es/_freeGlobal.js +1 -0
- package/dist/cjs/node_modules/lodash-es/_getRawTag.js +1 -0
- package/dist/cjs/node_modules/lodash-es/_objectToString.js +1 -0
- package/dist/cjs/node_modules/lodash-es/_root.js +1 -0
- package/dist/cjs/node_modules/lodash-es/isArray.js +1 -0
- package/dist/cjs/node_modules/lodash-es/isObject.js +1 -0
- package/dist/cjs/node_modules/lodash-es/isObjectLike.js +1 -0
- package/dist/cjs/node_modules/lodash-es/isSymbol.js +1 -0
- package/dist/cjs/node_modules/lodash-es/toString.js +1 -0
- package/dist/cjs/node_modules/lodash-es/uniqueId.js +1 -0
- package/dist/cjs/node_modules/lucide-react/dist/esm/Icon.js +8 -0
- package/dist/cjs/node_modules/lucide-react/dist/esm/createLucideIcon.js +1 -0
- package/dist/cjs/node_modules/lucide-react/dist/esm/defaultAttributes.js +1 -0
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/calendar-1.js +8 -0
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/chevron-down.js +8 -0
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/circle-x.js +8 -0
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/eye-off.js +8 -0
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/eye.js +8 -0
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/image-off.js +8 -0
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/info.js +8 -0
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/lock.js +8 -0
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/minus.js +8 -0
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/plus.js +8 -0
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/trash.js +8 -0
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/upload.js +8 -0
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/x.js +8 -0
- package/dist/cjs/node_modules/lucide-react/dist/esm/shared/src/utils.js +7 -0
- package/dist/cjs/node_modules/overlayscrollbars/overlayscrollbars.js +10 -0
- package/dist/cjs/node_modules/overlayscrollbars/styles/overlayscrollbars.css.js +1 -0
- package/dist/cjs/node_modules/react-number-format/dist/react-number-format.es.js +1 -0
- package/dist/cjs/node_modules/rollup-plugin-node-globals/src/global.js +1 -0
- package/dist/cjs/node_modules/rollup-plugin-styles/dist/runtime/inject-css.js +1 -0
- package/dist/cjs/node_modules/tailwind-merge/dist/bundle-mjs.js +1 -0
- package/dist/cjs/notification/container/Container.js +1 -0
- package/dist/cjs/notification/container/styled.js +26 -0
- package/dist/cjs/notification/context/NotificationsContext.js +1 -0
- package/dist/cjs/notification/index.js +1 -0
- package/dist/cjs/notification/item/Item.js +1 -0
- package/dist/cjs/notification/item/styled.js +42 -0
- package/dist/cjs/popover/Popover.js +1 -0
- package/dist/cjs/popover/PopoverContent.js +1 -0
- package/dist/cjs/popover/PopoverTrigger.js +1 -0
- package/dist/cjs/primitives/Slot.js +1 -0
- package/dist/cjs/progress/index.js +1 -0
- package/dist/cjs/progress/styled.js +59 -0
- package/dist/cjs/radio/button/RadioButton.js +1 -0
- package/dist/cjs/radio/button/styled.js +133 -0
- package/dist/cjs/radio/group/Group.js +1 -0
- package/dist/cjs/radio/group/styled.js +7 -0
- package/dist/cjs/radio/index.js +1 -0
- package/dist/cjs/result/index.js +1 -0
- package/dist/cjs/result/styled.js +109 -0
- package/dist/cjs/select/dropdown/Dropdown.js +1 -0
- package/dist/cjs/select/index.js +1 -0
- package/dist/cjs/select/option/Option.js +1 -0
- package/dist/cjs/select/selector/Selector.js +1 -0
- package/dist/cjs/select/selector/selectorinput/SelectorInput.js +1 -0
- package/dist/cjs/spin/index.js +1 -0
- package/dist/cjs/status/index.js +1 -0
- package/dist/cjs/switch/index.js +1 -0
- package/dist/cjs/table/index.js +1 -0
- package/dist/cjs/table/styled.js +458 -0
- package/dist/cjs/tabs/index.js +1 -0
- package/dist/cjs/textarea/index.js +1 -0
- package/dist/cjs/tinyscrollbar/index.js +1 -0
- package/dist/cjs/tinyscrollbar/scroll.styled.js +21 -0
- package/dist/cjs/tooltip/Tooltip.js +1 -0
- package/dist/cjs/tooltip/TooltipContent.js +1 -0
- package/dist/cjs/tooltip/TooltipTrigger.js +1 -0
- package/dist/cjs/tooltip/tooltipContext.js +1 -0
- package/dist/cjs/types/InputProps.js +1 -0
- package/dist/cjs/upload/index.js +1 -0
- package/dist/cjs/utils/CommonStyledComponents.js +1 -0
- package/dist/cjs/utils/ErrorAnnouncement.js +1 -0
- package/dist/cjs/utils/GetButtonSizeSlug.js +1 -0
- package/dist/cjs/utils/GetSizeSlugBySize.js +1 -0
- package/dist/cjs/utils/InlineSVGCached.js +1 -0
- package/dist/cjs/utils/cn.js +1 -0
- package/dist/context/ITDContext.d.ts +3 -0
- package/dist/context/ITDThemeProvider.d.ts +11 -0
- package/dist/css/alert.css +122 -0
- package/dist/css/base.css +392 -0
- package/dist/css/button.css +380 -0
- package/dist/css/card.css +58 -0
- package/dist/css/checkbox.css +251 -0
- package/dist/css/common.css +116 -0
- package/dist/css/components.css +92 -0
- package/dist/css/datepicker.css +75 -0
- package/dist/css/form.css +28 -0
- package/dist/css/hovercard.css +11 -0
- package/dist/css/input.css +421 -0
- package/dist/css/popover.css +10 -0
- package/dist/css/properties.css +299 -0
- package/dist/css/reset.css +310 -0
- package/dist/css/select.css +624 -0
- package/dist/css/spin.css +31 -0
- package/dist/css/status.css +74 -0
- package/dist/css/switch.css +178 -0
- package/dist/css/tabs.css +167 -0
- package/dist/css/textarea.css +208 -0
- package/dist/css/tooltip.css +22 -0
- package/dist/css/upload.css +335 -0
- package/dist/css/utilities.css +565 -0
- package/dist/enums/enum.d.ts +138 -8
- package/dist/es/_virtual/_commonjsHelpers.js +1 -0
- package/dist/es/_virtual/customParseFormat.js +1 -0
- package/dist/es/_virtual/customParseFormat2.js +1 -0
- package/dist/es/_virtual/dayjs.min.js +1 -0
- package/dist/es/_virtual/dayjs.min2.js +1 -0
- package/dist/es/_virtual/localizedFormat.js +1 -0
- package/dist/es/_virtual/localizedFormat2.js +1 -0
- package/dist/es/_virtual/react.js +1 -0
- package/dist/es/accordion/index.js +1 -0
- package/dist/es/accordion/item/Item.js +1 -0
- package/dist/es/accordion/item/styled.js +20 -0
- package/dist/es/accordion/styled.js +15 -0
- package/dist/es/accordion/submenu/SubMenu.js +1 -0
- package/dist/es/accordion/submenu/styled.js +214 -0
- package/dist/es/alert/Description.js +1 -0
- package/dist/es/alert/Title.js +1 -0
- package/dist/es/alert/index.js +1 -0
- package/dist/es/alink/index.js +1 -0
- package/dist/es/alink/styled.js +5 -0
- package/dist/es/back-top/index.js +1 -0
- package/dist/es/back-top/styled.js +25 -0
- package/dist/es/button/index.js +1 -0
- package/dist/es/calendar/dates.js +1 -0
- package/dist/es/calendar/day/Day.js +1 -0
- package/dist/es/calendar/day/styled.js +91 -0
- package/dist/es/calendar/header/Header.js +1 -0
- package/dist/es/calendar/header/styled.js +196 -0
- package/dist/es/calendar/index.js +1 -0
- package/dist/es/calendar/styled.js +82 -0
- package/dist/es/card/Card.js +1 -0
- package/dist/es/card/CardAction.js +1 -0
- package/dist/es/card/CardContent.js +1 -0
- package/dist/es/card/CardDescription.js +1 -0
- package/dist/es/card/CardFooter.js +1 -0
- package/dist/es/card/CardHeader.js +1 -0
- package/dist/es/card/CardTabs.js +1 -0
- package/dist/es/card/CardTitle.js +1 -0
- package/dist/es/checkbox/group/index.js +1 -0
- package/dist/es/checkbox/index.js +1 -0
- package/dist/es/context/ITDContext.js +1 -0
- package/dist/es/context/ITDThemeProvider.js +1 -0
- package/dist/es/context/styled.js +15 -0
- package/dist/es/datepicker/index.js +1 -0
- package/dist/es/enums/enum.js +1 -0
- package/dist/es/flex/index.js +1 -0
- package/dist/es/flex/styled.js +35 -0
- package/dist/es/floating/Arrow.js +108 -0
- package/dist/es/floating/FloatingContent.js +38 -0
- package/dist/es/form/context/FormContext.js +1 -0
- package/dist/es/form/context/FormRegistry.js +1 -0
- package/dist/es/form/context/FormStore.js +1 -0
- package/dist/es/form/control/Control.js +1 -0
- package/dist/es/form/group/Group.js +1 -0
- package/dist/es/form/index.js +1 -0
- package/dist/es/form/item/Item.js +1 -0
- package/dist/es/form/validation/TCIdentity.js +1 -0
- package/dist/es/form/validation/Validator.js +1 -0
- package/dist/es/form/wrapper/FormWrapper.js +1 -0
- package/dist/es/helpers/array/ChunkArray.js +1 -0
- package/dist/es/helpers/aspectratio/DetermineNewHeight.js +1 -0
- package/dist/es/helpers/aspectratio/DetermineNewWidth.js +1 -0
- package/dist/es/helpers/base64/Base64Decode.js +1 -0
- package/dist/es/helpers/base64/Base64Encode.js +1 -0
- package/dist/es/helpers/binary/FormatBytes.js +1 -0
- package/dist/es/helpers/binary/GetTypeByFileType.js +1 -0
- package/dist/es/helpers/checker/CheckFileURL.js +1 -0
- package/dist/es/helpers/checker/FileChecker.js +1 -0
- package/dist/es/helpers/country/GetCountryCodeByCurrencyCode.js +1 -0
- package/dist/es/helpers/country/GetCountryCodeByLanguage.js +1 -0
- package/dist/es/helpers/css/FindSelector.js +1 -0
- package/dist/es/helpers/currency/ConvertCurrency.js +1 -0
- package/dist/es/helpers/currency/GetByCurrency.js +1 -0
- package/dist/es/helpers/currency/GetCurrencyFormat.js +1 -0
- package/dist/es/helpers/currency/GetCurrencySymbol.js +1 -0
- package/dist/es/helpers/currency/GetDecimalByCurrency.js +1 -0
- package/dist/es/helpers/datetime/FormatDate.js +1 -0
- package/dist/es/helpers/datetime/FormatDateTime.js +1 -0
- package/dist/es/helpers/datetime/FormatSimpleDate.js +1 -0
- package/dist/es/helpers/datetime/FormatSimpleDateTime.js +1 -0
- package/dist/es/helpers/datetime/FormatTime.js +1 -0
- package/dist/es/helpers/datetime/dayjsSetup.js +1 -0
- package/dist/es/helpers/format/ToKebabCase.js +1 -0
- package/dist/es/helpers/json/IsValidJSON.js +1 -0
- package/dist/es/helpers/math/AddZero.js +1 -0
- package/dist/es/helpers/promise/Wait.js +1 -0
- package/dist/es/helpers/remover/RemoveUnits.js +1 -0
- package/dist/es/helpers/string/UniUpperCase.js +1 -0
- package/dist/es/helpers/svg/SVGLoader.js +1 -0
- package/dist/es/helpers/svg/styles.js +22 -0
- package/dist/es/helpers/theme/AddDefaultThemeStyle.js +1 -0
- package/dist/es/helpers/theme/Color.js +1 -0
- package/dist/es/helpers/theme/GenerateColorScale.js +1 -0
- package/dist/es/helpers/theme/createTheme.js +1 -0
- package/dist/es/helpers/theme/cssVariables.js +1 -0
- package/dist/es/helpers/theme/dark.js +1 -0
- package/dist/es/helpers/theme/light.js +1 -0
- package/dist/es/helpers/theme/presets.js +1 -0
- package/dist/es/helpers/theme/tokens.js +1 -0
- package/dist/es/helpers/unit/AddDefaultUnit.js +1 -0
- package/dist/es/hooks/useAddExternalCSS.js +1 -0
- package/dist/es/hooks/useAvoidCollision.js +1 -0
- package/dist/es/hooks/useComponentSize.js +1 -0
- package/dist/es/hooks/useConnectionStatus.js +1 -0
- package/dist/es/hooks/useConstructor.js +1 -0
- package/dist/es/hooks/useContextBridge.js +1 -0
- package/dist/es/hooks/useCoreFetch.js +1 -0
- package/dist/es/hooks/useFloatingPosition.js +1 -0
- package/dist/es/hooks/useFloatingTrigger.js +1 -0
- package/dist/es/hooks/useFocusTrap.js +1 -0
- package/dist/es/hooks/useKeyboardShortcut.js +1 -0
- package/dist/es/hooks/useMultiQuery.js +1 -0
- package/dist/es/hooks/useOnClickOutside.js +1 -0
- package/dist/es/hooks/useOnESCKeyDown.js +1 -0
- package/dist/es/hooks/useOnResize.js +1 -0
- package/dist/es/hooks/useOrientation.js +1 -0
- package/dist/es/hooks/useReCaptcha.js +1 -0
- package/dist/es/hooks/useSingleQuery.js +1 -0
- package/dist/es/hovercard/HoverCard.js +1 -0
- package/dist/es/hovercard/HoverCardContent.js +1 -0
- package/dist/es/hovercard/HoverCardTrigger.js +1 -0
- package/dist/es/hovercard/hoverCardContext.js +1 -0
- package/dist/es/html/header/H1.js +1 -0
- package/dist/es/html/header/H2.js +1 -0
- package/dist/es/html/header/H3.js +1 -0
- package/dist/es/html/header/H4.js +1 -0
- package/dist/es/html/header/styled.js +33 -0
- package/dist/es/icons/Arrow.js +1 -0
- package/dist/es/icons/BackToTop.js +1 -0
- package/dist/es/icons/Checkmark.js +1 -0
- package/dist/es/icons/InlineSelectArrow.js +1 -0
- package/dist/es/icons/Lock.js +1 -0
- package/dist/es/icons/NoData.js +1 -0
- package/dist/es/icons/Picture.js +1 -0
- package/dist/es/icons/Trash.js +1 -0
- package/dist/es/icons/Upload.js +1 -0
- package/dist/es/icons/ZoomIn.js +1 -0
- package/dist/es/icons/ZoomOut.js +1 -0
- package/dist/es/image/index.js +1 -0
- package/dist/es/image/styled.js +4 -0
- package/dist/es/index.js +1 -0
- package/dist/es/input/index.js +1 -0
- package/dist/es/label/index.js +1 -0
- package/dist/es/locales/en/calendar.json.js +1 -0
- package/dist/es/locales/en/itd.json.js +1 -0
- package/dist/es/locales/tr/calendar.json.js +1 -0
- package/dist/es/locales/tr/itd.json.js +1 -0
- package/dist/es/logger/index.js +1 -0
- package/dist/es/modal/container/ModalContainer.js +1 -0
- package/dist/es/modal/container/styled.js +18 -0
- package/dist/es/modal/context/ModalContext.js +1 -0
- package/dist/es/modal/index.js +1 -0
- package/dist/es/modal/modal/Modal.js +1 -0
- package/dist/es/modal/modal/styled.js +128 -0
- package/dist/es/node_modules/@react-spring/animated/dist/react-spring_animated.modern.js +1 -0
- package/dist/es/node_modules/@react-spring/core/dist/react-spring_core.modern.js +1 -0
- package/dist/es/node_modules/@react-spring/rafz/dist/react-spring_rafz.modern.js +1 -0
- package/dist/es/node_modules/@react-spring/shared/dist/react-spring_shared.modern.js +1 -0
- package/dist/es/node_modules/@react-spring/web/dist/react-spring_web.modern.js +1 -0
- package/dist/es/node_modules/clsx/dist/clsx.js +1 -0
- package/dist/es/node_modules/dayjs/dayjs.min.js +1 -0
- package/dist/es/node_modules/dayjs/plugin/customParseFormat.js +1 -0
- package/dist/es/node_modules/dayjs/plugin/localizedFormat.js +1 -0
- package/dist/es/node_modules/fast-deep-equal/react.js +1 -0
- package/dist/es/node_modules/lodash-es/_Symbol.js +1 -0
- package/dist/es/node_modules/lodash-es/_arrayMap.js +1 -0
- package/dist/es/node_modules/lodash-es/_baseGetTag.js +1 -0
- package/dist/es/node_modules/lodash-es/_baseToString.js +1 -0
- package/dist/es/node_modules/lodash-es/_freeGlobal.js +1 -0
- package/dist/es/node_modules/lodash-es/_getRawTag.js +1 -0
- package/dist/es/node_modules/lodash-es/_objectToString.js +1 -0
- package/dist/es/node_modules/lodash-es/_root.js +1 -0
- package/dist/es/node_modules/lodash-es/isArray.js +1 -0
- package/dist/es/node_modules/lodash-es/isObject.js +1 -0
- package/dist/es/node_modules/lodash-es/isObjectLike.js +1 -0
- package/dist/es/node_modules/lodash-es/isSymbol.js +1 -0
- package/dist/es/node_modules/lodash-es/toString.js +1 -0
- package/dist/es/node_modules/lodash-es/uniqueId.js +1 -0
- package/dist/es/node_modules/lucide-react/dist/esm/Icon.js +7 -0
- package/dist/es/node_modules/lucide-react/dist/esm/createLucideIcon.js +7 -0
- package/dist/es/node_modules/lucide-react/dist/esm/defaultAttributes.js +7 -0
- package/dist/es/node_modules/lucide-react/dist/esm/icons/calendar-1.js +7 -0
- package/dist/es/node_modules/lucide-react/dist/esm/icons/chevron-down.js +7 -0
- package/dist/es/node_modules/lucide-react/dist/esm/icons/circle-x.js +7 -0
- package/dist/es/node_modules/lucide-react/dist/esm/icons/eye-off.js +7 -0
- package/dist/es/node_modules/lucide-react/dist/esm/icons/eye.js +7 -0
- package/dist/es/node_modules/lucide-react/dist/esm/icons/image-off.js +7 -0
- package/dist/es/node_modules/lucide-react/dist/esm/icons/info.js +7 -0
- package/dist/es/node_modules/lucide-react/dist/esm/icons/lock.js +7 -0
- package/dist/es/node_modules/lucide-react/dist/esm/icons/minus.js +7 -0
- package/dist/es/node_modules/lucide-react/dist/esm/icons/plus.js +7 -0
- package/dist/es/node_modules/lucide-react/dist/esm/icons/trash.js +7 -0
- package/dist/es/node_modules/lucide-react/dist/esm/icons/upload.js +7 -0
- package/dist/es/node_modules/lucide-react/dist/esm/icons/x.js +7 -0
- package/dist/es/node_modules/lucide-react/dist/esm/shared/src/utils.js +7 -0
- package/dist/es/node_modules/overlayscrollbars/overlayscrollbars.js +10 -0
- package/dist/es/node_modules/overlayscrollbars/styles/overlayscrollbars.css.js +1 -0
- package/dist/es/node_modules/react-number-format/dist/react-number-format.es.js +1 -0
- package/dist/es/node_modules/rollup-plugin-node-globals/src/global.js +1 -0
- package/dist/es/node_modules/rollup-plugin-styles/dist/runtime/inject-css.js +1 -0
- package/dist/es/node_modules/tailwind-merge/dist/bundle-mjs.js +1 -0
- package/dist/es/notification/container/Container.js +1 -0
- package/dist/es/notification/container/styled.js +26 -0
- package/dist/es/notification/context/NotificationsContext.js +1 -0
- package/dist/es/notification/index.js +1 -0
- package/dist/es/notification/item/Item.js +1 -0
- package/dist/es/notification/item/styled.js +42 -0
- package/dist/es/popover/Popover.js +1 -0
- package/dist/es/popover/PopoverContent.js +1 -0
- package/dist/es/popover/PopoverTrigger.js +1 -0
- package/dist/es/primitives/Slot.js +1 -0
- package/dist/es/progress/index.js +1 -0
- package/dist/es/progress/styled.js +59 -0
- package/dist/es/radio/button/RadioButton.js +1 -0
- package/dist/es/radio/button/styled.js +133 -0
- package/dist/es/radio/group/Group.js +1 -0
- package/dist/es/radio/group/styled.js +7 -0
- package/dist/es/radio/index.js +1 -0
- package/dist/es/result/index.js +1 -0
- package/dist/es/result/styled.js +109 -0
- package/dist/es/select/dropdown/Dropdown.js +1 -0
- package/dist/es/select/index.js +1 -0
- package/dist/es/select/option/Option.js +1 -0
- package/dist/es/select/selector/Selector.js +1 -0
- package/dist/es/select/selector/selectorinput/SelectorInput.js +1 -0
- package/dist/es/spin/index.js +1 -0
- package/dist/es/status/index.js +1 -0
- package/dist/es/switch/index.js +1 -0
- package/dist/es/table/index.js +1 -0
- package/dist/es/table/styled.js +458 -0
- package/dist/es/tabs/index.js +1 -0
- package/dist/es/textarea/index.js +1 -0
- package/dist/es/tinyscrollbar/index.js +1 -0
- package/dist/es/tinyscrollbar/scroll.styled.js +21 -0
- package/dist/es/tooltip/Tooltip.js +1 -0
- package/dist/es/tooltip/TooltipContent.js +1 -0
- package/dist/es/tooltip/TooltipTrigger.js +1 -0
- package/dist/es/tooltip/tooltipContext.js +1 -0
- package/dist/es/types/InputProps.js +1 -0
- package/dist/es/upload/index.js +1 -0
- package/dist/es/utils/CommonStyledComponents.js +1 -0
- package/dist/es/utils/ErrorAnnouncement.js +1 -0
- package/dist/es/utils/GetButtonSizeSlug.js +1 -0
- package/dist/es/utils/GetSizeSlugBySize.js +1 -0
- package/dist/es/utils/InlineSVGCached.js +1 -0
- package/dist/es/utils/cn.js +1 -0
- 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 +4 -0
- package/dist/form/context/FormRegistry.d.ts +13 -0
- package/dist/form/context/FormStore.d.ts +5 -1
- package/dist/form/control/Control.d.ts +2 -1
- package/dist/form/item/Item.d.ts +0 -1
- package/dist/form/validation/Validator.d.ts +0 -1
- package/dist/global.css +44 -142
- package/dist/helpers/binary/GetTypeByFileType.d.ts +1 -1
- 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/index.d.ts +4 -1
- package/dist/helpers/theme/Color.d.ts +19 -0
- package/dist/helpers/theme/GenerateColorScale.d.ts +16 -0
- package/dist/helpers/theme/createTheme.d.ts +8 -0
- package/dist/helpers/theme/cssVariables.d.ts +41 -0
- package/dist/helpers/theme/dark.d.ts +3 -0
- package/dist/helpers/theme/index.d.ts +12 -0
- package/dist/helpers/theme/light.d.ts +3 -0
- package/dist/helpers/theme/presets.d.ts +12 -0
- package/dist/helpers/theme/themes.d.ts +5 -0
- package/dist/helpers/theme/tokens.d.ts +392 -0
- package/dist/hooks/useAddExternalCSS.d.ts +4 -5
- package/dist/hooks/useAvoidCollision.d.ts +6 -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/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/icons/index.d.ts +0 -3
- package/dist/image/index.d.ts +0 -1
- package/dist/image/styled.d.ts +5 -4
- package/dist/index.d.mts +83 -40
- package/dist/index.d.ts +1439 -462
- package/dist/input/index.d.ts +30 -2
- package/dist/input/style.settings.d.ts +9 -0
- package/dist/label/index.d.ts +6 -0
- package/dist/label/style.settings.d.ts +9 -0
- package/dist/{select/toggle → label}/styled.d.ts +17 -14
- package/dist/locales/en/itd.json +31 -19
- package/dist/locales/itd.json +31 -19
- package/dist/locales/tr/itd.json +31 -19
- package/dist/modal/container/styled.d.ts +1 -3
- package/dist/modal/context/ModalContext.d.ts +20 -11
- package/dist/modal/index.d.ts +7 -22
- 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/radio/button/RadioButton.d.ts +1 -1
- package/dist/radio/button/styled.d.ts +0 -1
- package/dist/result/index.d.ts +1 -1
- package/dist/select/dropdown/Dropdown.d.ts +20 -0
- package/dist/select/option/Option.d.ts +11 -3
- package/dist/select/selector/Selector.d.ts +3 -0
- package/dist/select/selector/selectorinput/SelectorInput.d.ts +6 -0
- package/dist/select/style.settings.d.ts +83 -26
- package/dist/stats.html +4949 -0
- package/dist/stories/Accordion.d.ts +0 -1
- package/dist/stories/Accordion.stories.d.ts +1 -1
- package/dist/stories/Alert.stories.d.ts +16 -2
- package/dist/stories/AlertComposition.d.ts +3 -0
- package/dist/stories/AlertComposition.stories.d.ts +18 -0
- package/dist/stories/Button.d.ts +0 -1
- package/dist/stories/Button.stories.d.ts +20 -2
- package/dist/stories/Card.d.ts +9 -2
- package/dist/stories/Card.stories.d.ts +5 -2
- package/dist/stories/Checkbox.stories.d.ts +1 -1
- package/dist/stories/CheckboxGroup.stories.d.ts +1 -1
- package/dist/stories/CheckboxGroupControl.stories.d.ts +1 -1
- 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 +1 -1
- package/dist/stories/Form.stories.d.ts +12 -1
- package/dist/stories/Header.d.ts +0 -1
- package/dist/stories/Header.stories.d.ts +3 -3
- 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 +84 -2
- package/dist/stories/ModalManager.d.ts +0 -1
- package/dist/stories/Page.d.ts +0 -1
- package/dist/stories/Popover.d.ts +2 -0
- package/dist/stories/Popover.stories.d.ts +40 -0
- package/dist/stories/Progress.stories.d.ts +1 -1
- package/dist/stories/RadioGroup.stories.d.ts +1 -1
- package/dist/stories/Result.stories.d.ts +1 -1
- package/dist/stories/Select.d.ts +0 -1
- package/dist/stories/Select.stories.d.ts +14 -4
- package/dist/stories/Status.stories.d.ts +1 -1
- package/dist/stories/Switch.stories.d.ts +10 -3
- package/dist/stories/Tabs.stories.d.ts +6 -12
- package/dist/stories/TextArea.d.ts +0 -1
- package/dist/stories/TextArea.stories.d.ts +9 -2
- package/dist/stories/Tooltip.d.ts +1 -0
- package/dist/stories/Tooltip.stories.d.ts +35 -0
- package/dist/stories/Upload.stories.d.ts +1 -6
- package/dist/stories/root/index.d.ts +0 -1
- package/dist/switch/index.d.ts +2 -1
- package/dist/tabs/index.d.ts +2 -2
- package/dist/tooltip/Tooltip.d.ts +12 -0
- package/dist/tooltip/TooltipContent.d.ts +12 -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/AlertProps.d.ts +5 -4
- package/dist/types/ButtonProps.d.ts +9 -28
- package/dist/types/CalendarProps.d.ts +0 -1
- package/dist/types/CardProps.d.ts +6 -2
- package/dist/types/CheckboxProps.d.ts +5 -1
- package/dist/types/ChildrenProps.d.ts +2 -1
- package/dist/types/DatePickerProps.d.ts +5 -3
- package/dist/types/FormProps.d.ts +4 -1
- package/dist/types/ITDProps.d.ts +4 -2
- package/dist/types/InputProps.d.ts +12 -17
- package/dist/types/LabelProps.d.ts +7 -0
- package/dist/types/PopoverProps.d.ts +10 -0
- package/dist/types/RadioProps.d.ts +1 -2
- package/dist/types/ResultProps.d.ts +1 -0
- package/dist/types/SelectProps.d.ts +19 -13
- package/dist/types/SwitchProps.d.ts +4 -1
- package/dist/types/TableProps.d.ts +1 -0
- package/dist/types/TabsProps.d.ts +8 -2
- package/dist/types/TextAreaProps.d.ts +1 -0
- package/dist/types/Theme.d.ts +128 -0
- package/dist/types/UploadProps.d.ts +3 -39
- package/dist/upload/index.d.ts +1 -1
- package/dist/utils/CommonStyledComponents.d.ts +21 -0
- package/dist/utils/ErrorAnnouncement.d.ts +25 -0
- package/dist/utils/GetButtonSizeSlug.d.ts +6 -0
- package/dist/utils/GetSizeSlugBySize.d.ts +3 -0
- package/dist/utils/cn.d.ts +2 -0
- package/dist/utils/index.d.ts +2 -0
- package/package.json +96 -64
- package/dist/alert/alert.style.error.d.ts +0 -4
- package/dist/alert/alert.style.info.d.ts +0 -4
- package/dist/alert/alert.style.success.d.ts +0 -4
- package/dist/alert/alert.style.warning.d.ts +0 -4
- package/dist/alert/styled.d.ts +0 -8
- 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.default.d.ts +0 -4
- package/dist/button/button.style.filled.d.ts +0 -4
- package/dist/button/button.style.ghost.d.ts +0 -4
- package/dist/button/button.style.icon.d.ts +0 -5
- package/dist/button/button.style.link.d.ts +0 -4
- package/dist/button/button.style.outline.d.ts +0 -4
- package/dist/button/button.style.size.d.ts +0 -4
- package/dist/button/button.style.solid.d.ts +0 -4
- package/dist/button/button.style.strecth.d.ts +0 -4
- package/dist/button/styled.d.ts +0 -12
- package/dist/card/styles.d.ts +0 -15
- package/dist/checkbox/group/styled.d.ts +0 -2
- package/dist/checkbox/styled.d.ts +0 -9
- package/dist/cropper/index.d.ts +0 -44
- package/dist/datepicker/styled.d.ts +0 -9
- package/dist/form/control/styled.d.ts +0 -4
- package/dist/form/group/styled.d.ts +0 -5
- package/dist/helpers/theme/UpdateThemeStyle.d.ts +0 -5
- 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.cjs.js +0 -5612
- package/dist/index.esm.js +0 -5612
- package/dist/input/styled.d.ts +0 -29
- package/dist/link/index.d.ts +0 -11
- package/dist/select/menu/Menu.d.ts +0 -14
- package/dist/select/menu/styled.d.ts +0 -8
- package/dist/select/option/styled.d.ts +0 -5
- package/dist/select/styled.d.ts +0 -7
- 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/spin/styled.d.ts +0 -10
- package/dist/status/styled.d.ts +0 -6
- package/dist/stories/ButtonIcon.d.ts +0 -2
- package/dist/switch/styled.d.ts +0 -5
- package/dist/tabs/styles.d.ts +0 -13
- package/dist/textarea/styled.d.ts +0 -8
- package/dist/upload/styled.d.ts +0 -46
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,48 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import react__default, { RefObject,
|
|
3
|
+
import react__default, { RefObject, ReactNode, Context, ForwardRefExoticComponent, PropsWithoutRef, RefAttributes, FunctionComponent, MutableRefObject, FocusEvent, KeyboardEvent, FC, Ref, MouseEvent, ReactElement, CSSProperties } from 'react';
|
|
4
4
|
import { ChildrenProps as ChildrenProps$1 } from 'types/ChildrenProps';
|
|
5
5
|
import dayjs from 'dayjs';
|
|
6
|
-
import { ConnectionStatus as ConnectionStatus$1, ModalState as ModalState$1,
|
|
6
|
+
import { ConnectionStatus as ConnectionStatus$1, ModalState as ModalState$1, ComponentYPositions as ComponentYPositions$1, ComponentXPositions as ComponentXPositions$1, TriggerTypes as TriggerTypes$1, ComponentVariants as ComponentVariants$1, ButtonTypes as ButtonTypes$1, ButtonSizes as ButtonSizes$1, FormValidationTypes as FormValidationTypes$1 } from 'enums/enum';
|
|
7
7
|
import { Cancel, AxiosProgressEvent } from 'axios';
|
|
8
|
+
import { ClassValue } from 'clsx';
|
|
8
9
|
import { SelectValue as SelectValue$1 } from 'types/SelectProps';
|
|
10
|
+
import { ITDVariant as ITDVariant$1, ITDSizeSlug as ITDSizeSlug$1 } from 'types/ITDProps';
|
|
9
11
|
import { ModalProps as ModalProps$1 } from 'types/ModalProps';
|
|
10
12
|
import { RadioButtonProps as RadioButtonProps$1, RadioGroupProps as RadioGroupProps$1 } from 'types/RadioProps';
|
|
11
13
|
import { ITDImperativeFuncProps as ITDImperativeFuncProps$1 } from 'types/ITDImperativeFuncProps';
|
|
14
|
+
import { ButtonProps as ButtonProps$1 } from 'types/ButtonProps';
|
|
12
15
|
import { ResultProps as ResultProps$1 } from 'types/ResultProps';
|
|
13
|
-
|
|
16
|
+
|
|
17
|
+
declare let weekdaysLong$1: string[];
|
|
18
|
+
declare let weekdaysShort$1: string[];
|
|
19
|
+
declare let months$1: string[];
|
|
20
|
+
declare let firstDay$1: number;
|
|
21
|
+
declare let format$1: string;
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
declare const export_default$1: {
|
|
25
|
+
weekdaysLong: typeof weekdaysLong$1;
|
|
26
|
+
weekdaysShort: typeof weekdaysShort$1;
|
|
27
|
+
months: typeof months$1;
|
|
28
|
+
firstDay: typeof firstDay$1;
|
|
29
|
+
format: typeof format$1;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
declare let weekdaysLong: string[];
|
|
33
|
+
declare let weekdaysShort: string[];
|
|
34
|
+
declare let months: string[];
|
|
35
|
+
declare let firstDay: number;
|
|
36
|
+
declare let format: string;
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
declare const export_default: {
|
|
40
|
+
weekdaysLong: typeof weekdaysLong;
|
|
41
|
+
weekdaysShort: typeof weekdaysShort;
|
|
42
|
+
months: typeof months;
|
|
43
|
+
firstDay: typeof firstDay;
|
|
44
|
+
format: typeof format;
|
|
45
|
+
};
|
|
14
46
|
|
|
15
47
|
type ITDContextType = {
|
|
16
48
|
theme: string;
|
|
@@ -26,6 +58,8 @@ type ITDContextType = {
|
|
|
26
58
|
};
|
|
27
59
|
type ITDProviderProps = {
|
|
28
60
|
theme?: string;
|
|
61
|
+
surfaceBase?: string;
|
|
62
|
+
primaryBase?: string;
|
|
29
63
|
language?: string;
|
|
30
64
|
dateFormat?: string;
|
|
31
65
|
children: ChildrenProps$1;
|
|
@@ -33,25 +67,204 @@ type ITDProviderProps = {
|
|
|
33
67
|
declare const ITDContext: react.Context<ITDContextType>;
|
|
34
68
|
declare const ITDProvider: (props: ITDProviderProps) => react_jsx_runtime.JSX.Element;
|
|
35
69
|
|
|
70
|
+
declare const useITD: () => ITDContextType;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Generate a 50-950 color scale from a single base color (base is 600).
|
|
74
|
+
* Supports both HEX (#rrggbb) and OKLCH (oklch(L C H)) formats.
|
|
75
|
+
*
|
|
76
|
+
* The algorithm uses Tailwind CSS OKLCH color scales as reference,
|
|
77
|
+
* with specific lightness/chroma/hue curves per color band.
|
|
78
|
+
*/
|
|
79
|
+
type Shade = 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950;
|
|
80
|
+
type ColorScale = Record<Shade, string>;
|
|
81
|
+
declare function generateColorScaleFromBase(baseColor: string, options?: {
|
|
82
|
+
clampLightness?: {
|
|
83
|
+
min?: number;
|
|
84
|
+
max?: number;
|
|
85
|
+
};
|
|
86
|
+
}): ColorScale;
|
|
87
|
+
|
|
88
|
+
type ITDTheme = {
|
|
89
|
+
appearance: 'light' | 'dark';
|
|
90
|
+
transitionDuration: string;
|
|
91
|
+
transitionTimingFunction: string;
|
|
92
|
+
fontSans?: string;
|
|
93
|
+
fontMono?: string;
|
|
94
|
+
boxShadow: string;
|
|
95
|
+
cardShadow: string;
|
|
96
|
+
floatingShadow: string;
|
|
97
|
+
borderRadius: string;
|
|
98
|
+
ringOffset: string;
|
|
99
|
+
ringWidth: string;
|
|
100
|
+
background: string;
|
|
101
|
+
foreground: string;
|
|
102
|
+
input: string;
|
|
103
|
+
primary: string;
|
|
104
|
+
primaryHover: string;
|
|
105
|
+
primaryForeground: string;
|
|
106
|
+
primaryScale: ColorScale;
|
|
107
|
+
secondary: string;
|
|
108
|
+
secondaryHover: string;
|
|
109
|
+
secondaryForeground: string;
|
|
110
|
+
secondaryForegroundHover: string;
|
|
111
|
+
accent: string;
|
|
112
|
+
accentForeground: string;
|
|
113
|
+
muted: string;
|
|
114
|
+
mutedForeground: string;
|
|
115
|
+
selection: string;
|
|
116
|
+
selectionForeground: string;
|
|
117
|
+
popover: string;
|
|
118
|
+
popoverForeground: string;
|
|
119
|
+
card: string;
|
|
120
|
+
cardForeground: string;
|
|
121
|
+
colorBackgroundFooter: string;
|
|
122
|
+
colorText: string;
|
|
123
|
+
colorTextMuted: string;
|
|
124
|
+
colorTextMutedForeground: string;
|
|
125
|
+
colorPlaceholder: string;
|
|
126
|
+
colorTextNeutral: string;
|
|
127
|
+
colorControlLabel: string;
|
|
128
|
+
colorModalShadow: string;
|
|
129
|
+
colorBorder: string;
|
|
130
|
+
colorBorderHover: string;
|
|
131
|
+
colorBorderFocus: string;
|
|
132
|
+
colorBorderFocusRing: string;
|
|
133
|
+
colorBorderTransparent: string;
|
|
134
|
+
colorBackgroundAlt: string;
|
|
135
|
+
colorBackgroundAltHover: string;
|
|
136
|
+
colorBackgroundBordered: string;
|
|
137
|
+
colorBackgroundTransparent: string;
|
|
138
|
+
colorBackgroundModal: string;
|
|
139
|
+
colorForegroundItemSelected: string;
|
|
140
|
+
colorForegroundItemSelectedText: string;
|
|
141
|
+
colorBackgroundSelect: string;
|
|
142
|
+
colorBackgroundSelectFilled: string;
|
|
143
|
+
colorBackgroundSelectFilledItem: string;
|
|
144
|
+
colorBackgroundSelectItem: string;
|
|
145
|
+
colorBackgroundSelectItemHover: string;
|
|
146
|
+
colorBackgroundSelectItemSelected: string;
|
|
147
|
+
colorDisabledBg: string;
|
|
148
|
+
colorDisabledBorder: string;
|
|
149
|
+
colorDisabledText: string;
|
|
150
|
+
colorIcon: string;
|
|
151
|
+
colorIconMuted: string;
|
|
152
|
+
colorError: string;
|
|
153
|
+
colorErrorText: string;
|
|
154
|
+
colorErrorBorder: string;
|
|
155
|
+
colorErrorOutline: string;
|
|
156
|
+
colorFocusPrimary: string;
|
|
157
|
+
colorFocusPrimaryRing: string;
|
|
158
|
+
colorTextAlpha50: string;
|
|
159
|
+
colorSwitchThumb: string;
|
|
160
|
+
colorSwitchFilledThumb: string;
|
|
161
|
+
colorTextNeutralAlpha10: string;
|
|
162
|
+
colorTextNeutralAlpha15: string;
|
|
163
|
+
colorTextNeutralAlpha25: string;
|
|
164
|
+
colorTextNeutralAlpha50: string;
|
|
165
|
+
colorBackgroundAltAlpha75: string;
|
|
166
|
+
colorBackgroundAltAlpha85: string;
|
|
167
|
+
colorUploadTextAlpha50: string;
|
|
168
|
+
colorCardOverlay: string;
|
|
169
|
+
colorTabActiveBg: string;
|
|
170
|
+
colorTabHoverBg: string;
|
|
171
|
+
colorTabFilledActiveBg: string;
|
|
172
|
+
colorButtonOutlineBg: string;
|
|
173
|
+
colorButtonOutlineHoverBg: string;
|
|
174
|
+
colorButtonGhostHoverBg: string;
|
|
175
|
+
colorButtonFilledBg: string;
|
|
176
|
+
scrollbarThumb: string;
|
|
177
|
+
scrollbarThumbHover: string;
|
|
178
|
+
primaryGradientStart: string;
|
|
179
|
+
primaryGradientEnd: string;
|
|
180
|
+
primaryHoverStart: string;
|
|
181
|
+
primaryHoverEnd: string;
|
|
182
|
+
primaryContrastText: string;
|
|
183
|
+
buttonGenericBg: string;
|
|
184
|
+
buttonGenericHoverBg: string;
|
|
185
|
+
buttonSelectedBorder: string;
|
|
186
|
+
buttonSelectedBg: string;
|
|
187
|
+
buttonDisabledBg: string;
|
|
188
|
+
buttonDisabledText: string;
|
|
189
|
+
colorUploadOverlay: string;
|
|
190
|
+
colorUploadText: string;
|
|
191
|
+
colorUploadOverlayError: string;
|
|
192
|
+
colorUploadErrorText: string;
|
|
193
|
+
colorUploadOverlayCompleted: string;
|
|
194
|
+
colorUploadCompletedText: string;
|
|
195
|
+
colorUploadOverlayUploading: string;
|
|
196
|
+
colorUploadOverlayUploadingBar: string;
|
|
197
|
+
colorUploadingText: string;
|
|
198
|
+
colorAlertInfoBackground: string;
|
|
199
|
+
colorAlertInfoBorder: string;
|
|
200
|
+
colorAlertInfoTitle: string;
|
|
201
|
+
colorAlertInfoText: string;
|
|
202
|
+
colorAlertSuccessBackground: string;
|
|
203
|
+
colorAlertSuccessBorder: string;
|
|
204
|
+
colorAlertSuccessTitle: string;
|
|
205
|
+
colorAlertSuccessText: string;
|
|
206
|
+
colorAlertWarningBackground: string;
|
|
207
|
+
colorAlertWarningBorder: string;
|
|
208
|
+
colorAlertWarningTitle: string;
|
|
209
|
+
colorAlertWarningText: string;
|
|
210
|
+
colorAlertErrorBackground: string;
|
|
211
|
+
colorAlertErrorBorder: string;
|
|
212
|
+
colorAlertErrorTitle: string;
|
|
213
|
+
colorAlertErrorText: string;
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
type ITDThemeProviderProps = {
|
|
217
|
+
themeName?: 'light' | 'dark';
|
|
218
|
+
surfaceBase?: string;
|
|
219
|
+
primaryBase?: string;
|
|
220
|
+
customTheme?: Partial<ITDTheme>;
|
|
221
|
+
containerRef?: RefObject<HTMLElement | null>;
|
|
222
|
+
children: ReactNode;
|
|
223
|
+
};
|
|
224
|
+
declare function ITDThemeProvider({ themeName, surfaceBase, primaryBase, customTheme, containerRef, children }: ITDThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
225
|
+
|
|
226
|
+
declare const lightTheme: ITDTheme;
|
|
227
|
+
|
|
228
|
+
declare const darkTheme: ITDTheme;
|
|
229
|
+
|
|
36
230
|
declare function DetermineNewHeight(originalHeight: number, originalWidth: number, newWidth: number): number;
|
|
37
231
|
|
|
38
232
|
declare function DetermineNewWidth(originalHeight: number, originalWidth: number, newHeight: number): number;
|
|
39
233
|
|
|
234
|
+
/**
|
|
235
|
+
*
|
|
236
|
+
* FIND SELECTOR
|
|
237
|
+
*
|
|
238
|
+
* Find the style tag containing the specified class name and return true/false.
|
|
239
|
+
*
|
|
240
|
+
* @param searchClassName string
|
|
241
|
+
* @returns boolean
|
|
242
|
+
*
|
|
243
|
+
*/
|
|
40
244
|
declare function FindSelector(searchClassName: string): boolean;
|
|
41
245
|
|
|
42
|
-
declare function GetCountryCodeByCurrencyCode(currency?: string): "
|
|
246
|
+
declare function GetCountryCodeByCurrencyCode(currency?: string): "en-US" | "de-DE" | "tr-TR" | "en-GB" | "ja-JP" | "fr-CH" | "en-CA" | "en-AU" | "en-NZ" | "ru-RU" | "en-IN" | "pt-BR" | "es-MX" | "es-AR" | "es-CL" | "es-CO" | "es-PE" | "en-ZA" | "zh-CN" | "sv-SE" | "no-NO" | "da-DK" | "en-SG" | "en-HK";
|
|
43
247
|
|
|
44
|
-
declare function GetCountryCodeByLanguage(language: string): "tur" | "
|
|
248
|
+
declare function GetCountryCodeByLanguage(language: string): "usa" | "tur" | "deu" | "fra" | "esp" | "ita" | "jpn" | "kor" | "nld" | "pol" | "por" | "rus" | "san" | "snd" | "sin" | "slk" | "slv" | "alb" | "srb" | "swe" | "tam" | "tel" | "tha" | "tgl" | "ukr" | "urd" | "uzb" | "vie" | "chi" | "zul" | "gre" | "ara" | "language_not_found";
|
|
45
249
|
|
|
46
|
-
declare function ConvertCurrency(balance: number, currency: string): string;
|
|
250
|
+
declare function ConvertCurrency(balance: number, currency: string): string | undefined;
|
|
47
251
|
|
|
48
252
|
declare function GetByCurrency(value: number, symbol?: boolean, currency?: string, decimal?: number): string;
|
|
49
253
|
|
|
254
|
+
/**
|
|
255
|
+
*
|
|
256
|
+
* Get the currency format of the value.
|
|
257
|
+
*
|
|
258
|
+
* @param value string
|
|
259
|
+
* @param currency string
|
|
260
|
+
* @returns string
|
|
261
|
+
*
|
|
262
|
+
*/
|
|
50
263
|
declare function GetCurrencyFormat(value: string, currency?: string): string;
|
|
51
264
|
|
|
52
|
-
declare function GetCurrencySymbol(currency?: string): "
|
|
265
|
+
declare function GetCurrencySymbol(currency?: string): "$" | "€" | "₺" | "?";
|
|
53
266
|
|
|
54
|
-
declare function GetDecimalByCurrency(currency?: string): "
|
|
267
|
+
declare function GetDecimalByCurrency(currency?: string): "," | ".";
|
|
55
268
|
|
|
56
269
|
/**
|
|
57
270
|
*
|
|
@@ -59,10 +272,459 @@ declare function GetDecimalByCurrency(currency?: string): "." | ",";
|
|
|
59
272
|
declare function AddDefaultThemeStyle(): void;
|
|
60
273
|
|
|
61
274
|
/**
|
|
275
|
+
* HEX to RGBA converter
|
|
276
|
+
* @param hex - The hex color string
|
|
277
|
+
* @param alpha - The alpha value (0-1)
|
|
278
|
+
* @returns The RGBA color string
|
|
279
|
+
*/
|
|
280
|
+
declare function hexToRgba(hex: string, alpha?: number): string;
|
|
281
|
+
/**
|
|
282
|
+
* With opacity helper
|
|
283
|
+
* @param color - The color string
|
|
284
|
+
* @param alpha - The alpha value (0-1)
|
|
285
|
+
* @returns The color string with opacity
|
|
286
|
+
*/
|
|
287
|
+
declare function withOpacity(color: string, alpha?: number): string;
|
|
288
|
+
/**
|
|
289
|
+
* Returns the contrast text color for a given color (light/dark)
|
|
290
|
+
* Supports OKLCH and HEX formats
|
|
291
|
+
*/
|
|
292
|
+
declare function getContrastText(color: string): string;
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Design Tokens - Merkezi tasarım değerleri
|
|
296
|
+
* Tüm componentler bu token'ları kullanmalı
|
|
297
|
+
*/
|
|
298
|
+
declare const TYPOGRAPHY_TOKENS: {
|
|
299
|
+
readonly fontSize: {
|
|
300
|
+
readonly xs: "0.725rem";
|
|
301
|
+
readonly sm: "0.75rem";
|
|
302
|
+
readonly md: "0.825rem";
|
|
303
|
+
readonly df: "0.875rem";
|
|
304
|
+
readonly lg: "0.875rem";
|
|
305
|
+
readonly xl: "0.875rem";
|
|
306
|
+
};
|
|
307
|
+
readonly lineHeight: {
|
|
308
|
+
readonly xs: "0.725rem";
|
|
309
|
+
readonly sm: "0.75rem";
|
|
310
|
+
readonly md: "0.825rem";
|
|
311
|
+
readonly df: "0.875rem";
|
|
312
|
+
readonly lg: "0.875rem";
|
|
313
|
+
readonly xl: "0.875rem";
|
|
314
|
+
};
|
|
315
|
+
readonly fontWeight: {
|
|
316
|
+
readonly normal: 400;
|
|
317
|
+
readonly medium: 500;
|
|
318
|
+
readonly semibold: 600;
|
|
319
|
+
readonly bold: 700;
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
declare const SPACING_TOKENS: {
|
|
323
|
+
readonly paddingX: {
|
|
324
|
+
readonly xs: "0.625rem";
|
|
325
|
+
readonly sm: "0.625rem";
|
|
326
|
+
readonly md: "0.75rem";
|
|
327
|
+
readonly df: "0.75rem";
|
|
328
|
+
readonly lg: "0.9375rem";
|
|
329
|
+
readonly xl: "0.9375rem";
|
|
330
|
+
};
|
|
331
|
+
readonly height: {
|
|
332
|
+
readonly xs: "1.75rem";
|
|
333
|
+
readonly sm: "2rem";
|
|
334
|
+
readonly md: "2.125rem";
|
|
335
|
+
readonly df: "2.25rem";
|
|
336
|
+
readonly lg: "2.5rem";
|
|
337
|
+
readonly xl: "2.75rem";
|
|
338
|
+
};
|
|
339
|
+
readonly gap: {
|
|
340
|
+
readonly xs: "0.25rem";
|
|
341
|
+
readonly sm: "0.5rem";
|
|
342
|
+
readonly md: "0.75rem";
|
|
343
|
+
readonly df: "0.875rem";
|
|
344
|
+
readonly lg: "1rem";
|
|
345
|
+
readonly xl: "1.25rem";
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
/**
|
|
349
|
+
* Icon ve Image size tokenları
|
|
350
|
+
* Select, Button gibi componentlerde kullanılan icon boyutları
|
|
351
|
+
*/
|
|
352
|
+
declare const ICON_TOKENS: {
|
|
353
|
+
readonly image: {
|
|
354
|
+
readonly xs: {
|
|
355
|
+
readonly width: "0.875rem";
|
|
356
|
+
readonly height: "0.875rem";
|
|
357
|
+
};
|
|
358
|
+
readonly sm: {
|
|
359
|
+
readonly width: "1rem";
|
|
360
|
+
readonly height: "1rem";
|
|
361
|
+
};
|
|
362
|
+
readonly md: {
|
|
363
|
+
readonly width: "1.125rem";
|
|
364
|
+
readonly height: "1.125rem";
|
|
365
|
+
};
|
|
366
|
+
readonly df: {
|
|
367
|
+
readonly width: "1.25rem";
|
|
368
|
+
readonly height: "1.25rem";
|
|
369
|
+
};
|
|
370
|
+
readonly lg: {
|
|
371
|
+
readonly width: "1.25rem";
|
|
372
|
+
readonly height: "1.25rem";
|
|
373
|
+
};
|
|
374
|
+
readonly xl: {
|
|
375
|
+
readonly width: "1.375rem";
|
|
376
|
+
readonly height: "1.375rem";
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
readonly arrow: {
|
|
380
|
+
readonly xs: {
|
|
381
|
+
readonly width: "0.825rem";
|
|
382
|
+
readonly height: "0.825rem";
|
|
383
|
+
};
|
|
384
|
+
readonly sm: {
|
|
385
|
+
readonly width: "0.825rem";
|
|
386
|
+
readonly height: "0.825rem";
|
|
387
|
+
};
|
|
388
|
+
readonly md: {
|
|
389
|
+
readonly width: "1rem";
|
|
390
|
+
readonly height: "1rem";
|
|
391
|
+
};
|
|
392
|
+
readonly df: {
|
|
393
|
+
readonly width: "1rem";
|
|
394
|
+
readonly height: "1rem";
|
|
395
|
+
};
|
|
396
|
+
readonly lg: {
|
|
397
|
+
readonly width: "1.125rem";
|
|
398
|
+
readonly height: "1.125rem";
|
|
399
|
+
};
|
|
400
|
+
readonly xl: {
|
|
401
|
+
readonly width: "1.125rem";
|
|
402
|
+
readonly height: "1.125rem";
|
|
403
|
+
};
|
|
404
|
+
};
|
|
405
|
+
readonly button: {
|
|
406
|
+
readonly xs: {
|
|
407
|
+
readonly width: "0.75rem";
|
|
408
|
+
readonly height: "0.75rem";
|
|
409
|
+
};
|
|
410
|
+
readonly sm: {
|
|
411
|
+
readonly width: "0.875rem";
|
|
412
|
+
readonly height: "0.875rem";
|
|
413
|
+
};
|
|
414
|
+
readonly md: {
|
|
415
|
+
readonly width: "1rem";
|
|
416
|
+
readonly height: "1rem";
|
|
417
|
+
};
|
|
418
|
+
readonly df: {
|
|
419
|
+
readonly width: "1rem";
|
|
420
|
+
readonly height: "1rem";
|
|
421
|
+
};
|
|
422
|
+
readonly lg: {
|
|
423
|
+
readonly width: "1.125rem";
|
|
424
|
+
readonly height: "1.125rem";
|
|
425
|
+
};
|
|
426
|
+
readonly xl: {
|
|
427
|
+
readonly width: "1.25rem";
|
|
428
|
+
readonly height: "1.25rem";
|
|
429
|
+
};
|
|
430
|
+
};
|
|
431
|
+
readonly default: {
|
|
432
|
+
readonly xs: "0.75rem";
|
|
433
|
+
readonly sm: "0.875rem";
|
|
434
|
+
readonly md: "1rem";
|
|
435
|
+
readonly df: "1rem";
|
|
436
|
+
readonly lg: "1.25rem";
|
|
437
|
+
readonly xl: "1.5rem";
|
|
438
|
+
};
|
|
439
|
+
};
|
|
440
|
+
/**
|
|
441
|
+
* Input componentleri için ortak size mapping
|
|
442
|
+
* Input, Textarea gibi text input elementleri
|
|
443
|
+
*/
|
|
444
|
+
declare const INPUT_SIZE_MAP: {
|
|
445
|
+
readonly xs: {
|
|
446
|
+
readonly height: "1.75rem";
|
|
447
|
+
readonly paddingX: "0.625rem";
|
|
448
|
+
readonly fontSize: "0.725rem";
|
|
449
|
+
readonly lineHeight: "0.725rem";
|
|
450
|
+
readonly fontWeight: 400;
|
|
451
|
+
};
|
|
452
|
+
readonly sm: {
|
|
453
|
+
readonly height: "2rem";
|
|
454
|
+
readonly paddingX: "0.625rem";
|
|
455
|
+
readonly fontSize: "0.75rem";
|
|
456
|
+
readonly lineHeight: "0.75rem";
|
|
457
|
+
readonly fontWeight: 400;
|
|
458
|
+
};
|
|
459
|
+
readonly md: {
|
|
460
|
+
readonly height: "2.125rem";
|
|
461
|
+
readonly paddingX: "0.75rem";
|
|
462
|
+
readonly fontSize: "0.825rem";
|
|
463
|
+
readonly lineHeight: "0.825rem";
|
|
464
|
+
readonly fontWeight: 400;
|
|
465
|
+
};
|
|
466
|
+
readonly df: {
|
|
467
|
+
readonly height: "2.25rem";
|
|
468
|
+
readonly paddingX: "0.75rem";
|
|
469
|
+
readonly fontSize: "0.875rem";
|
|
470
|
+
readonly lineHeight: "0.875rem";
|
|
471
|
+
readonly fontWeight: 400;
|
|
472
|
+
};
|
|
473
|
+
readonly lg: {
|
|
474
|
+
readonly height: "2.5rem";
|
|
475
|
+
readonly paddingX: "0.9375rem";
|
|
476
|
+
readonly fontSize: "0.875rem";
|
|
477
|
+
readonly lineHeight: "0.875rem";
|
|
478
|
+
readonly fontWeight: 500;
|
|
479
|
+
};
|
|
480
|
+
readonly xlg: {
|
|
481
|
+
readonly height: "2.75rem";
|
|
482
|
+
readonly paddingX: "0.9375rem";
|
|
483
|
+
readonly fontSize: "0.875rem";
|
|
484
|
+
readonly lineHeight: "0.875rem";
|
|
485
|
+
readonly fontWeight: 500;
|
|
486
|
+
};
|
|
487
|
+
};
|
|
488
|
+
/**
|
|
489
|
+
* Select componentleri için ortak size mapping
|
|
490
|
+
* Select, Dropdown gibi seçim elementleri
|
|
491
|
+
* NOT: Input ile tamamen aynı değerleri kullanır
|
|
492
|
+
*/
|
|
493
|
+
declare const SELECT_SIZE_MAP: {
|
|
494
|
+
readonly xs: {
|
|
495
|
+
readonly height: "1.75rem";
|
|
496
|
+
readonly paddingX: "0.625rem";
|
|
497
|
+
readonly fontSize: "0.725rem";
|
|
498
|
+
readonly lineHeight: "0.725rem";
|
|
499
|
+
readonly fontWeight: 400;
|
|
500
|
+
};
|
|
501
|
+
readonly sm: {
|
|
502
|
+
readonly height: "2rem";
|
|
503
|
+
readonly paddingX: "0.625rem";
|
|
504
|
+
readonly fontSize: "0.75rem";
|
|
505
|
+
readonly lineHeight: "0.75rem";
|
|
506
|
+
readonly fontWeight: 400;
|
|
507
|
+
};
|
|
508
|
+
readonly md: {
|
|
509
|
+
readonly height: "2.125rem";
|
|
510
|
+
readonly paddingX: "0.75rem";
|
|
511
|
+
readonly fontSize: "0.825rem";
|
|
512
|
+
readonly lineHeight: "0.825rem";
|
|
513
|
+
readonly fontWeight: 400;
|
|
514
|
+
};
|
|
515
|
+
readonly df: {
|
|
516
|
+
readonly height: "2.25rem";
|
|
517
|
+
readonly paddingX: "0.75rem";
|
|
518
|
+
readonly fontSize: "0.875rem";
|
|
519
|
+
readonly lineHeight: "0.875rem";
|
|
520
|
+
readonly fontWeight: 400;
|
|
521
|
+
};
|
|
522
|
+
readonly lg: {
|
|
523
|
+
readonly height: "2.5rem";
|
|
524
|
+
readonly paddingX: "0.9375rem";
|
|
525
|
+
readonly fontSize: "0.875rem";
|
|
526
|
+
readonly lineHeight: "0.875rem";
|
|
527
|
+
readonly fontWeight: 500;
|
|
528
|
+
};
|
|
529
|
+
readonly xlg: {
|
|
530
|
+
readonly height: "2.75rem";
|
|
531
|
+
readonly paddingX: "0.9375rem";
|
|
532
|
+
readonly fontSize: "0.875rem";
|
|
533
|
+
readonly lineHeight: "0.875rem";
|
|
534
|
+
readonly fontWeight: 500;
|
|
535
|
+
};
|
|
536
|
+
};
|
|
537
|
+
/**
|
|
538
|
+
* Button componentleri için size mapping
|
|
539
|
+
* Regular button ve icon-only button boyutları
|
|
540
|
+
*/
|
|
541
|
+
declare const BUTTON_SIZE_MAP: {
|
|
542
|
+
readonly xs: {
|
|
543
|
+
readonly minWidth: "1.75rem";
|
|
544
|
+
readonly minHeight: "1.75rem";
|
|
545
|
+
readonly padding: "0 0.625rem";
|
|
546
|
+
readonly fontSize: "0.725rem";
|
|
547
|
+
readonly lineHeight: "0.725rem";
|
|
548
|
+
readonly fontWeight: 500;
|
|
549
|
+
readonly iconSize: {
|
|
550
|
+
readonly width: "0.75rem";
|
|
551
|
+
readonly height: "0.75rem";
|
|
552
|
+
};
|
|
553
|
+
readonly spinnerSize: "0.75rem";
|
|
554
|
+
readonly spinnerBorder: "1px";
|
|
555
|
+
};
|
|
556
|
+
readonly sm: {
|
|
557
|
+
readonly minWidth: "2rem";
|
|
558
|
+
readonly minHeight: "2rem";
|
|
559
|
+
readonly padding: "0 0.9375rem";
|
|
560
|
+
readonly fontSize: "0.75rem";
|
|
561
|
+
readonly lineHeight: "0.75rem";
|
|
562
|
+
readonly fontWeight: 500;
|
|
563
|
+
readonly iconSize: {
|
|
564
|
+
readonly width: "0.875rem";
|
|
565
|
+
readonly height: "0.875rem";
|
|
566
|
+
};
|
|
567
|
+
readonly spinnerSize: "1rem";
|
|
568
|
+
readonly spinnerBorder: "2px";
|
|
569
|
+
};
|
|
570
|
+
readonly md: {
|
|
571
|
+
readonly minWidth: "2.125rem";
|
|
572
|
+
readonly minHeight: "2.125rem";
|
|
573
|
+
readonly padding: "0 0.9375rem";
|
|
574
|
+
readonly fontSize: "0.825rem";
|
|
575
|
+
readonly lineHeight: "0.825rem";
|
|
576
|
+
readonly fontWeight: 500;
|
|
577
|
+
readonly iconSize: {
|
|
578
|
+
readonly width: "1rem";
|
|
579
|
+
readonly height: "1rem";
|
|
580
|
+
};
|
|
581
|
+
readonly spinnerSize: "1rem";
|
|
582
|
+
readonly spinnerBorder: "2px";
|
|
583
|
+
};
|
|
584
|
+
readonly df: {
|
|
585
|
+
readonly minWidth: "2.25rem";
|
|
586
|
+
readonly minHeight: "2.25rem";
|
|
587
|
+
readonly padding: "0 0.9375rem";
|
|
588
|
+
readonly fontSize: "0.875rem";
|
|
589
|
+
readonly lineHeight: "0.875rem";
|
|
590
|
+
readonly fontWeight: 500;
|
|
591
|
+
readonly iconSize: {
|
|
592
|
+
readonly width: "1rem";
|
|
593
|
+
readonly height: "1rem";
|
|
594
|
+
};
|
|
595
|
+
readonly spinnerSize: "1rem";
|
|
596
|
+
readonly spinnerBorder: "2px";
|
|
597
|
+
};
|
|
598
|
+
readonly lg: {
|
|
599
|
+
readonly minWidth: "2.5rem";
|
|
600
|
+
readonly minHeight: "2.5rem";
|
|
601
|
+
readonly padding: "0 1.25rem";
|
|
602
|
+
readonly fontSize: "0.875rem";
|
|
603
|
+
readonly lineHeight: "0.875rem";
|
|
604
|
+
readonly fontWeight: 500;
|
|
605
|
+
readonly iconSize: {
|
|
606
|
+
readonly width: "1.125rem";
|
|
607
|
+
readonly height: "1.125rem";
|
|
608
|
+
};
|
|
609
|
+
readonly spinnerSize: "1.125rem";
|
|
610
|
+
readonly spinnerBorder: "2px";
|
|
611
|
+
};
|
|
612
|
+
readonly xlg: {
|
|
613
|
+
readonly minWidth: "2.75rem";
|
|
614
|
+
readonly minHeight: "2.75rem";
|
|
615
|
+
readonly padding: "0 1.25rem";
|
|
616
|
+
readonly fontSize: "0.875rem";
|
|
617
|
+
readonly lineHeight: "0.875rem";
|
|
618
|
+
readonly fontWeight: 500;
|
|
619
|
+
readonly iconSize: {
|
|
620
|
+
readonly width: "1.25rem";
|
|
621
|
+
readonly height: "1.25rem";
|
|
622
|
+
};
|
|
623
|
+
readonly spinnerSize: "1.25rem";
|
|
624
|
+
readonly spinnerBorder: "3px";
|
|
625
|
+
};
|
|
626
|
+
};
|
|
627
|
+
/**
|
|
628
|
+
* Alert component için özel token'lar
|
|
629
|
+
*/
|
|
630
|
+
declare const ALERT_TOKENS: {
|
|
631
|
+
readonly title: {
|
|
632
|
+
readonly fontSize: "0.875rem";
|
|
633
|
+
readonly lineHeight: "1rem";
|
|
634
|
+
readonly fontWeight: 500;
|
|
635
|
+
};
|
|
636
|
+
readonly description: {
|
|
637
|
+
readonly fontSize: "0.8125rem";
|
|
638
|
+
readonly lineHeight: "1rem";
|
|
639
|
+
readonly fontWeight: 400;
|
|
640
|
+
};
|
|
641
|
+
readonly icon: {
|
|
642
|
+
readonly size: "1rem";
|
|
643
|
+
readonly marginTop: "0.125rem";
|
|
644
|
+
};
|
|
645
|
+
readonly spacing: {
|
|
646
|
+
readonly gap: "0.875rem";
|
|
647
|
+
readonly padding: "0.875rem";
|
|
648
|
+
};
|
|
649
|
+
};
|
|
650
|
+
/**
|
|
651
|
+
* Card component için özel token'lar
|
|
652
|
+
*/
|
|
653
|
+
declare const CARD_TOKENS: {
|
|
654
|
+
readonly padding: {
|
|
655
|
+
readonly xs: "0.5rem";
|
|
656
|
+
readonly sm: "0.75rem";
|
|
657
|
+
readonly md: "1rem";
|
|
658
|
+
readonly lg: "1.25rem";
|
|
659
|
+
};
|
|
660
|
+
readonly borderRadius: {
|
|
661
|
+
readonly sm: "0.375rem";
|
|
662
|
+
readonly md: "0.5rem";
|
|
663
|
+
readonly lg: "0.75rem";
|
|
664
|
+
};
|
|
665
|
+
};
|
|
666
|
+
/**
|
|
667
|
+
* Modal component için özel token'lar
|
|
668
|
+
*/
|
|
669
|
+
declare const MODAL_TOKENS: {
|
|
670
|
+
readonly title: {
|
|
671
|
+
readonly fontSize: "0.9375rem";
|
|
672
|
+
readonly lineHeight: "1.375rem";
|
|
673
|
+
readonly fontWeight: 600;
|
|
674
|
+
};
|
|
675
|
+
readonly description: {
|
|
676
|
+
readonly fontSize: "0.8125rem";
|
|
677
|
+
readonly lineHeight: "1.25rem";
|
|
678
|
+
readonly fontWeight: 400;
|
|
679
|
+
};
|
|
680
|
+
readonly padding: {
|
|
681
|
+
readonly sm: "1rem";
|
|
682
|
+
readonly md: "1.25rem";
|
|
683
|
+
readonly lg: "1.5rem";
|
|
684
|
+
};
|
|
685
|
+
};
|
|
686
|
+
|
|
687
|
+
/**
|
|
688
|
+
* CSS Variables Generator
|
|
689
|
+
* ITDTheme token'larını CSS custom properties olarak
|
|
690
|
+
* verilen container elemente (veya fallback olarak :root'a) yazar.
|
|
691
|
+
* styled-components'taki ${({ theme }) => theme.x} yerine
|
|
692
|
+
* var(--itd-x) kullanılmasını sağlar → tema değişiminde
|
|
693
|
+
* React re-render yerine native CSS repaint olur.
|
|
694
|
+
*/
|
|
695
|
+
|
|
696
|
+
/**
|
|
697
|
+
* Design token'larını (typography, spacing) CSS variables olarak inject eder
|
|
698
|
+
*/
|
|
699
|
+
declare function injectDesignTokens(): void;
|
|
700
|
+
/**
|
|
701
|
+
* CSS variables'ları export et (dokümantasyon için)
|
|
702
|
+
*/
|
|
703
|
+
declare const CSS_VARIABLES_MAP: {
|
|
704
|
+
readonly '--itd-text-xs': "0.725rem";
|
|
705
|
+
readonly '--itd-text-sm': "0.75rem";
|
|
706
|
+
readonly '--itd-text-md': "0.825rem";
|
|
707
|
+
readonly '--itd-text-df': "0.875rem";
|
|
708
|
+
readonly '--itd-text-lg': "0.875rem";
|
|
709
|
+
readonly '--itd-text-xl': "0.875rem";
|
|
710
|
+
readonly '--itd-font-weight-normal': 400;
|
|
711
|
+
readonly '--itd-font-weight-medium': 500;
|
|
712
|
+
readonly '--itd-font-weight-semibold': 600;
|
|
713
|
+
readonly '--itd-font-weight-bold': 700;
|
|
714
|
+
readonly '--itd-spacing': "0.25rem";
|
|
715
|
+
};
|
|
716
|
+
/**
|
|
717
|
+
* ITDTheme objesindeki TÜM string token'ları CSS custom properties olarak yazar.
|
|
718
|
+
* Naming: camelCase key → --itd-kebab-case
|
|
62
719
|
*
|
|
63
|
-
* @param
|
|
720
|
+
* @param theme - ITDTheme objesi
|
|
721
|
+
* @param targetEl - ITDProvider wrapper elementi. Verilirse hem bu elemente
|
|
722
|
+
* hem de document.documentElement'e yazılır.
|
|
723
|
+
* Wrapper'a yazılması: [data-theme] CSS fallback'lerini override eder.
|
|
724
|
+
* Root'a yazılması: portal content'in (select, modal) inherit edebilmesi için.
|
|
64
725
|
*/
|
|
65
|
-
declare function
|
|
726
|
+
declare function injectThemeVars(theme: ITDTheme, targetEl?: HTMLElement | null): void;
|
|
727
|
+
declare const injectThemeColors: typeof injectThemeVars;
|
|
66
728
|
|
|
67
729
|
declare function IsValidJSON(item: string | {}): boolean;
|
|
68
730
|
|
|
@@ -97,7 +759,7 @@ declare function UniUpperCase(value?: string, lang?: string): string;
|
|
|
97
759
|
|
|
98
760
|
declare function FormatBytes(bytes: number, decimals?: number): string;
|
|
99
761
|
|
|
100
|
-
declare function GetTypeByFileType(type: FileTypes): "" | FileExtensions
|
|
762
|
+
declare function GetTypeByFileType(type: FileTypes): "" | FileExtensions;
|
|
101
763
|
|
|
102
764
|
declare function Wait(milliseconds: number): Promise<unknown>;
|
|
103
765
|
|
|
@@ -169,12 +831,11 @@ declare const useConstructor: (callBack?: () => void) => void;
|
|
|
169
831
|
*
|
|
170
832
|
* ADD EXTERNAL CSS
|
|
171
833
|
*
|
|
172
|
-
*
|
|
173
|
-
*
|
|
174
|
-
* component ekrandan silinirse yüklediği yazı da silinir.
|
|
834
|
+
* Load dynamic css files. If the css file to be loaded has already been added, it will not be loaded again.
|
|
835
|
+
* If the component that loads it is removed from the screen, the css it loads will also be removed.
|
|
175
836
|
*
|
|
176
|
-
* @param link string
|
|
177
|
-
* @param temporary boolean
|
|
837
|
+
* @param link string (the css file to be loaded)
|
|
838
|
+
* @param temporary boolean (if true, the css file will be removed when the component that loads it is removed from the screen)
|
|
178
839
|
*
|
|
179
840
|
*/
|
|
180
841
|
declare const useAddExternalCSS: (link: string, temporary?: boolean) => void;
|
|
@@ -301,7 +962,7 @@ type OrientationType = "portrait" | "landscape";
|
|
|
301
962
|
declare const useOrientation: () => OrientationType;
|
|
302
963
|
|
|
303
964
|
type UseAvoidCollisionOpts = {
|
|
304
|
-
/** .chat-bubble, .cookie-
|
|
965
|
+
/** ".chat-bubble", ".whatsapp-button", ".cookie-consent", "[data-fixed-obstacle='true']" gibi engellerin CSS seçicileri */
|
|
305
966
|
obstacles?: string[];
|
|
306
967
|
/** Sağa/sola yerleşim - şu an sağ-alt odaklı, gerekirse geliştirilebilir */
|
|
307
968
|
corner?: "bottom-right" | "bottom-left" | "bottom-center";
|
|
@@ -312,6 +973,11 @@ type UseAvoidCollisionOpts = {
|
|
|
312
973
|
/** Otomatik algıda en az kaç px boşluk bırakalım */
|
|
313
974
|
minGap?: number;
|
|
314
975
|
};
|
|
976
|
+
/**
|
|
977
|
+
* Use avoid collision
|
|
978
|
+
*
|
|
979
|
+
* Avoid collision with obstacles.
|
|
980
|
+
*/
|
|
315
981
|
declare const useAvoidCollision: ({ obstacles, corner, autoAvoid, extraBottom, minGap, }?: UseAvoidCollisionOpts) => {
|
|
316
982
|
bottomOffset: number;
|
|
317
983
|
};
|
|
@@ -399,21 +1065,7 @@ type IconProps = {
|
|
|
399
1065
|
};
|
|
400
1066
|
declare const NoData: ({ className, height, width }: IconProps) => react_jsx_runtime.JSX.Element;
|
|
401
1067
|
|
|
402
|
-
declare
|
|
403
|
-
width?: number;
|
|
404
|
-
height?: number;
|
|
405
|
-
fill?: string;
|
|
406
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
407
|
-
|
|
408
|
-
declare const FileExcel: ({ width, height }: {
|
|
409
|
-
width?: number;
|
|
410
|
-
height?: number;
|
|
411
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
412
|
-
|
|
413
|
-
declare const FilePdf: ({ width, height }: {
|
|
414
|
-
width?: number;
|
|
415
|
-
height?: number;
|
|
416
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
1068
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
417
1069
|
|
|
418
1070
|
type InlineSVGCachedProps = {
|
|
419
1071
|
src: string;
|
|
@@ -427,17 +1079,24 @@ type InlineSVGCachedProps = {
|
|
|
427
1079
|
declare const _default$4: react.MemoExoticComponent<({ src, className, style, title, role, onLoaded, onError }: InlineSVGCachedProps) => react_jsx_runtime.JSX.Element>;
|
|
428
1080
|
|
|
429
1081
|
type OptionsTypeProps = {
|
|
1082
|
+
id?: string;
|
|
430
1083
|
customKey?: string;
|
|
1084
|
+
label: ChildrenProps$1;
|
|
1085
|
+
disabled: boolean;
|
|
1086
|
+
value: SelectValue$1;
|
|
1087
|
+
variant: ITDVariant$1;
|
|
1088
|
+
size: ITDSizeSlug$1;
|
|
431
1089
|
icon?: ChildrenProps$1;
|
|
432
1090
|
image?: string;
|
|
433
|
-
label?: ChildrenProps$1;
|
|
434
|
-
value?: SelectValue$1;
|
|
435
1091
|
multi?: boolean;
|
|
436
1092
|
checked?: boolean;
|
|
1093
|
+
isActive?: boolean;
|
|
1094
|
+
index?: number;
|
|
1095
|
+
onHover?: (index: number) => void;
|
|
437
1096
|
onChange?: (value: SelectValue$1, checked: boolean, label: ChildrenProps$1) => null;
|
|
438
1097
|
};
|
|
439
1098
|
declare const _default$3: react.MemoExoticComponent<{
|
|
440
|
-
({ multi, checked, icon, image, value, customKey, onChange, label }: OptionsTypeProps): react_jsx_runtime.JSX.Element;
|
|
1099
|
+
({ id, multi, checked, variant, size, icon, image, value, customKey, disabled, isActive, index, onHover, onChange, label }: OptionsTypeProps): react_jsx_runtime.JSX.Element;
|
|
441
1100
|
displayName: string;
|
|
442
1101
|
}>;
|
|
443
1102
|
|
|
@@ -467,15 +1126,15 @@ declare function Group({ gap, horizontal, className, children }: GroupProps): re
|
|
|
467
1126
|
type ControlProps = {
|
|
468
1127
|
className?: string;
|
|
469
1128
|
position?: "start" | "end" | "center";
|
|
1129
|
+
form?: string;
|
|
470
1130
|
children?: ChildrenProps$1;
|
|
471
1131
|
};
|
|
472
|
-
declare function Control({ position, className, children }: ControlProps): react_jsx_runtime.JSX.Element;
|
|
1132
|
+
declare function Control({ position, className, form, children }: ControlProps): react_jsx_runtime.JSX.Element;
|
|
473
1133
|
|
|
474
1134
|
type ItemProps = {
|
|
475
1135
|
name: string;
|
|
476
1136
|
id?: string;
|
|
477
1137
|
label?: string;
|
|
478
|
-
placeholder?: string;
|
|
479
1138
|
error?: string;
|
|
480
1139
|
rules?: FormRuleProps[];
|
|
481
1140
|
mask?: string | null;
|
|
@@ -487,6 +1146,222 @@ type ItemProps = {
|
|
|
487
1146
|
};
|
|
488
1147
|
declare const Item$1: react.ForwardRefExoticComponent<ItemProps & react.RefAttributes<ITDImperativeFuncProps>>;
|
|
489
1148
|
|
|
1149
|
+
/**
|
|
1150
|
+
* Modal states
|
|
1151
|
+
*
|
|
1152
|
+
* Modal states for the modal component.
|
|
1153
|
+
*/
|
|
1154
|
+
declare enum ModalState {
|
|
1155
|
+
NOT_SHOW = "modal-not-show",
|
|
1156
|
+
BEGIN = "modal-begin",
|
|
1157
|
+
ENTERING = "modal-entering",
|
|
1158
|
+
ENTERED = "modal-entered",
|
|
1159
|
+
EXITING = "modal-exiting",
|
|
1160
|
+
EXITED = "modal-exited",
|
|
1161
|
+
REMOVED = "modal-removed",
|
|
1162
|
+
OK_CLICK = "modal-ok-button-click",
|
|
1163
|
+
CANCEL_CLICK = "modal-cancel-button-click",
|
|
1164
|
+
CLOSE_CLICK = "modal-close-button-click",
|
|
1165
|
+
OUTSIDE_CLICK = "modal-outside-click",
|
|
1166
|
+
ESC_CLICK = "modal-esc-click",
|
|
1167
|
+
ALL_REMOVED = "modal-all-removed"
|
|
1168
|
+
}
|
|
1169
|
+
/**
|
|
1170
|
+
* File types
|
|
1171
|
+
*
|
|
1172
|
+
* File types for the file component.
|
|
1173
|
+
*/
|
|
1174
|
+
declare enum FileTypes {
|
|
1175
|
+
SVG = "image/svg+xml",
|
|
1176
|
+
PNG = "image/png",
|
|
1177
|
+
JPG = "image/jpg",
|
|
1178
|
+
JPEG = "image/jpeg",
|
|
1179
|
+
GIF = "image/gif",
|
|
1180
|
+
PDF = "application/pdf",
|
|
1181
|
+
OTF = "font/otf"
|
|
1182
|
+
}
|
|
1183
|
+
/**
|
|
1184
|
+
* File extensions
|
|
1185
|
+
*
|
|
1186
|
+
* File extensions for the file component.
|
|
1187
|
+
*/
|
|
1188
|
+
declare enum FileExtensions {
|
|
1189
|
+
SVG = ".svg",
|
|
1190
|
+
PNG = ".png",
|
|
1191
|
+
JPG = ".jpg",
|
|
1192
|
+
GIF = ".gif",
|
|
1193
|
+
PDF = ".pdf",
|
|
1194
|
+
OTF = ".otf"
|
|
1195
|
+
}
|
|
1196
|
+
/**
|
|
1197
|
+
* Form validations
|
|
1198
|
+
*
|
|
1199
|
+
* Form validations for the form component.
|
|
1200
|
+
*/
|
|
1201
|
+
declare enum FormValidations {
|
|
1202
|
+
REQUIRED = "required",
|
|
1203
|
+
TYPE = "type"
|
|
1204
|
+
}
|
|
1205
|
+
/**
|
|
1206
|
+
* Form validation types
|
|
1207
|
+
*
|
|
1208
|
+
* Form validation types for the form component.
|
|
1209
|
+
*/
|
|
1210
|
+
declare enum FormValidationTypes {
|
|
1211
|
+
MIN_LENGTH = "minLength",
|
|
1212
|
+
MAX_LENGTH = "maxLength",
|
|
1213
|
+
EXACT_LENGTH = "exactLength",
|
|
1214
|
+
SAME = "same",
|
|
1215
|
+
NOT_SAME = "notSame",
|
|
1216
|
+
TC_IDENTITY = "TCIdentity",
|
|
1217
|
+
PASSWORD = "password",
|
|
1218
|
+
EMAIL = "email",
|
|
1219
|
+
USERNAME = "username",
|
|
1220
|
+
SITE_USERNAME = "siteUsername",
|
|
1221
|
+
ADMIN_USERNAME = "adminUsername",
|
|
1222
|
+
URL = "url",
|
|
1223
|
+
FORBIDDEN_WORDS = "forbiddenWords"
|
|
1224
|
+
}
|
|
1225
|
+
/**
|
|
1226
|
+
* Connection status
|
|
1227
|
+
*
|
|
1228
|
+
* Connection status for the connection component.
|
|
1229
|
+
*/
|
|
1230
|
+
declare enum ConnectionStatus {
|
|
1231
|
+
ONLINE = "online",
|
|
1232
|
+
OFFLINE = "offline"
|
|
1233
|
+
}
|
|
1234
|
+
/**
|
|
1235
|
+
* Component sizes
|
|
1236
|
+
*
|
|
1237
|
+
* Component sizes for the component.
|
|
1238
|
+
*/
|
|
1239
|
+
declare enum ComponentSizes {
|
|
1240
|
+
X_SMALL = "x-small",
|
|
1241
|
+
SMALL = "small",
|
|
1242
|
+
MEDIUM = "medium",
|
|
1243
|
+
DEFAULT = "default",
|
|
1244
|
+
LARGE = "large",
|
|
1245
|
+
X_LARGE = "x-large"
|
|
1246
|
+
}
|
|
1247
|
+
/**
|
|
1248
|
+
* Component sizes slug
|
|
1249
|
+
*
|
|
1250
|
+
* Component sizes slug for the component.
|
|
1251
|
+
*/
|
|
1252
|
+
declare enum ComponentSizesSlug {
|
|
1253
|
+
X_SMALL = "xs",
|
|
1254
|
+
SMALL = "sm",
|
|
1255
|
+
MEDIUM = "md",
|
|
1256
|
+
DEFAULT = "df",
|
|
1257
|
+
LARGE = "lg",
|
|
1258
|
+
X_LARGE = "xlg"
|
|
1259
|
+
}
|
|
1260
|
+
/**
|
|
1261
|
+
* Button sizes
|
|
1262
|
+
*
|
|
1263
|
+
* Button-specific sizes including icon-only variants.
|
|
1264
|
+
* Extends ComponentSizes with icon variants.
|
|
1265
|
+
*/
|
|
1266
|
+
declare enum ButtonSizes {
|
|
1267
|
+
X_SMALL = "x-small",
|
|
1268
|
+
SMALL = "small",
|
|
1269
|
+
MEDIUM = "medium",
|
|
1270
|
+
DEFAULT = "default",
|
|
1271
|
+
LARGE = "large",
|
|
1272
|
+
X_LARGE = "x-large",
|
|
1273
|
+
ICON = "icon",
|
|
1274
|
+
ICON_SM = "icon-sm",
|
|
1275
|
+
ICON_LG = "icon-lg"
|
|
1276
|
+
}
|
|
1277
|
+
/**
|
|
1278
|
+
* Button sizes slug
|
|
1279
|
+
*
|
|
1280
|
+
* Button sizes slug for the component.
|
|
1281
|
+
* Extends ComponentSizesSlug with icon variants.
|
|
1282
|
+
*/
|
|
1283
|
+
declare enum ButtonSizesSlug {
|
|
1284
|
+
X_SMALL = "xs",
|
|
1285
|
+
SMALL = "sm",
|
|
1286
|
+
MEDIUM = "md",
|
|
1287
|
+
DEFAULT = "df",
|
|
1288
|
+
LARGE = "lg",
|
|
1289
|
+
X_LARGE = "xlg",
|
|
1290
|
+
ICON = "icon",
|
|
1291
|
+
ICON_SM = "icon-sm",
|
|
1292
|
+
ICON_LG = "icon-lg"
|
|
1293
|
+
}
|
|
1294
|
+
/**
|
|
1295
|
+
* Component x positions
|
|
1296
|
+
*
|
|
1297
|
+
* Component x positions for the component.
|
|
1298
|
+
*/
|
|
1299
|
+
declare enum ComponentXPositions {
|
|
1300
|
+
LEFT = "left",
|
|
1301
|
+
RIGHT = "right"
|
|
1302
|
+
}
|
|
1303
|
+
/**
|
|
1304
|
+
* Component y positions
|
|
1305
|
+
*
|
|
1306
|
+
* Component y positions for the component.
|
|
1307
|
+
*/
|
|
1308
|
+
declare enum ComponentYPositions {
|
|
1309
|
+
TOP = "top",
|
|
1310
|
+
BOTTOM = "bottom"
|
|
1311
|
+
}
|
|
1312
|
+
/**
|
|
1313
|
+
* Component variants
|
|
1314
|
+
*
|
|
1315
|
+
* Component variants for the component.
|
|
1316
|
+
*/
|
|
1317
|
+
declare enum ComponentVariants {
|
|
1318
|
+
DEFAULT = "default",
|
|
1319
|
+
FILLED = "filled",
|
|
1320
|
+
CUSTOM = "custom"
|
|
1321
|
+
}
|
|
1322
|
+
declare enum ButtonTypes {
|
|
1323
|
+
BUTTON = "button",
|
|
1324
|
+
SUBMIT = "submit",
|
|
1325
|
+
RESET = "reset"
|
|
1326
|
+
}
|
|
1327
|
+
/**
|
|
1328
|
+
* Tooltip positions
|
|
1329
|
+
*
|
|
1330
|
+
* Tooltip positions for the tooltip component.
|
|
1331
|
+
*/
|
|
1332
|
+
declare enum TooltipPositions {
|
|
1333
|
+
TOP_LEFT = "top-left",
|
|
1334
|
+
TOP_RIGHT = "top-right",
|
|
1335
|
+
BOTTOM_LEFT = "bottom-left",
|
|
1336
|
+
BOTTOM_RIGHT = "bottom-right"
|
|
1337
|
+
}
|
|
1338
|
+
/**
|
|
1339
|
+
* Trigger types
|
|
1340
|
+
*
|
|
1341
|
+
* Trigger types for the useFloatingTrigger hook.
|
|
1342
|
+
*/
|
|
1343
|
+
declare enum TriggerTypes {
|
|
1344
|
+
HOVER = "hover",
|
|
1345
|
+
CLICK = "click",
|
|
1346
|
+
FOCUS = "focus",
|
|
1347
|
+
MANUAL = "manual"
|
|
1348
|
+
}
|
|
1349
|
+
/**
|
|
1350
|
+
* Theme appearances
|
|
1351
|
+
*
|
|
1352
|
+
* Theme appearances for the theme component.
|
|
1353
|
+
*/
|
|
1354
|
+
declare enum ThemeAppearances {
|
|
1355
|
+
LIGHT = "light",
|
|
1356
|
+
DARK = "dark"
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
type ITDSize = ComponentSizes | "x-small" | "small" | "medium" | "default" | "large" | "x-large";
|
|
1360
|
+
type ITDSizeSlug = ComponentSizesSlug | "xs" | "sm" | "md" | "df" | "lg" | "xlg";
|
|
1361
|
+
type ITDVariant = ComponentVariants | "default" | "filled" | "custom";
|
|
1362
|
+
type ITDHorizontalPosition = ComponentXPositions | "left" | "right";
|
|
1363
|
+
type ITDVerticalPosition = ComponentYPositions | "top" | "bottom";
|
|
1364
|
+
|
|
490
1365
|
type FormContextType = {
|
|
491
1366
|
register: (item: FormItemProps) => void;
|
|
492
1367
|
unregister: (name: string) => void;
|
|
@@ -517,6 +1392,9 @@ type FormContextType = {
|
|
|
517
1392
|
removeFields: () => void;
|
|
518
1393
|
formId: string;
|
|
519
1394
|
updated: {};
|
|
1395
|
+
variant?: ITDVariant;
|
|
1396
|
+
disabled?: boolean;
|
|
1397
|
+
locked?: boolean;
|
|
520
1398
|
};
|
|
521
1399
|
|
|
522
1400
|
type FormStoreProps = {
|
|
@@ -525,6 +1403,9 @@ type FormStoreProps = {
|
|
|
525
1403
|
onFieldUpdate?: (update: FieldUpdateProps) => void;
|
|
526
1404
|
onReset?: () => void;
|
|
527
1405
|
useQueryString?: boolean;
|
|
1406
|
+
variant?: ITDVariant;
|
|
1407
|
+
disabled?: boolean;
|
|
1408
|
+
locked?: boolean;
|
|
528
1409
|
};
|
|
529
1410
|
|
|
530
1411
|
type FormSubComponentProps$1 = {
|
|
@@ -558,25 +1439,128 @@ type AccordionMenuProps = AccordionProps & {
|
|
|
558
1439
|
};
|
|
559
1440
|
declare const Accordion: FunctionComponent<AccordionMenuProps> & AccordionMenuSubComponents;
|
|
560
1441
|
|
|
561
|
-
|
|
1442
|
+
type CalendarLocale = {
|
|
1443
|
+
weekdaysLong: string[];
|
|
1444
|
+
weekdaysShort: string[];
|
|
1445
|
+
months: string[];
|
|
1446
|
+
firstDay: number;
|
|
1447
|
+
format: string;
|
|
1448
|
+
};
|
|
1449
|
+
declare const Calendar: ({ value, defaultValue, className, onChange, disabledDate, locale }: {
|
|
562
1450
|
value?: string;
|
|
563
1451
|
defaultValue?: string;
|
|
564
1452
|
className?: string;
|
|
565
1453
|
onChange?: ((value: CalendarValueProps) => void) | null;
|
|
566
1454
|
disabledDate?: (date: dayjs.Dayjs) => boolean;
|
|
1455
|
+
locale?: CalendarLocale;
|
|
567
1456
|
}) => react_jsx_runtime.JSX.Element | null;
|
|
568
1457
|
|
|
569
1458
|
declare const DatePicker: react.ForwardRefExoticComponent<DatePickerProps & react.RefAttributes<ITDImperativeFuncProps>>;
|
|
570
1459
|
|
|
1460
|
+
type Element = string | number | ReactNode | undefined;
|
|
1461
|
+
type ChildrenProps = Element | Element[] | null;
|
|
1462
|
+
|
|
1463
|
+
declare enum InputTypes {
|
|
1464
|
+
TEXT = "text",
|
|
1465
|
+
NUMBER = "number",
|
|
1466
|
+
CURRENCY = "currency",
|
|
1467
|
+
PASSWORD = "password"
|
|
1468
|
+
}
|
|
1469
|
+
type InputType = `${InputTypes}`;
|
|
1470
|
+
type InputVariant = "default" | "filled" | "dashed";
|
|
1471
|
+
/**
|
|
1472
|
+
* Input component props extending native HTML input attributes
|
|
1473
|
+
* Omits conflicting props that have custom implementations
|
|
1474
|
+
*/
|
|
1475
|
+
type InputProps = Omit<react__default.InputHTMLAttributes<HTMLInputElement>, 'size' | 'prefix' | 'onChange' | 'onFocus' | 'onBlur' | 'onKeyDown' | 'type' | 'children' | 'style'> & {
|
|
1476
|
+
style?: react__default.CSSProperties;
|
|
1477
|
+
type?: InputType;
|
|
1478
|
+
size?: ITDSize;
|
|
1479
|
+
variant?: InputVariant;
|
|
1480
|
+
prefix?: ChildrenProps;
|
|
1481
|
+
suffix?: ChildrenProps;
|
|
1482
|
+
addonBefore?: ChildrenProps;
|
|
1483
|
+
addonAfter?: ChildrenProps;
|
|
1484
|
+
locked?: ChildrenProps | boolean;
|
|
1485
|
+
minValue?: number;
|
|
1486
|
+
maxValue?: number;
|
|
1487
|
+
keepFocus?: boolean;
|
|
1488
|
+
mask?: null | string;
|
|
1489
|
+
allowEmptyFormatting?: null | boolean;
|
|
1490
|
+
allowLeadingZeros?: boolean;
|
|
1491
|
+
decimalSeparator?: string;
|
|
1492
|
+
thousandSeparator?: string;
|
|
1493
|
+
decimalScale?: number;
|
|
1494
|
+
focusRef?: null | MutableRefObject<HTMLDivElement>;
|
|
1495
|
+
onChange?: ((value: string | number) => void) | null;
|
|
1496
|
+
onUpdate?: ((value: string | number, update: boolean, validation: boolean) => void) | null;
|
|
1497
|
+
onFocus?: ((event: FocusEvent<HTMLInputElement>) => void) | null;
|
|
1498
|
+
onBlur?: ((event: FocusEvent<HTMLInputElement>) => void) | null;
|
|
1499
|
+
onPressEnter?: ((event: KeyboardEvent) => void) | null;
|
|
1500
|
+
onKeyDown?: ((event: KeyboardEvent) => void) | null;
|
|
1501
|
+
children?: ChildrenProps;
|
|
1502
|
+
};
|
|
1503
|
+
|
|
1504
|
+
type ITDImperativeFuncProps = {
|
|
1505
|
+
reset: (update?: boolean, validation?: boolean) => void;
|
|
1506
|
+
setValue: (value: any, update?: boolean, validation?: boolean) => void;
|
|
1507
|
+
getValue: () => any;
|
|
1508
|
+
setError?: (message: string) => void;
|
|
1509
|
+
setFocus?: () => void;
|
|
1510
|
+
setDisabled?: (value: boolean) => void;
|
|
1511
|
+
forceUpdate?: () => void;
|
|
1512
|
+
clear?: () => void;
|
|
1513
|
+
scrollIntoView?: (options?: ScrollIntoViewOptions | boolean) => void;
|
|
1514
|
+
};
|
|
1515
|
+
|
|
571
1516
|
/**
|
|
572
1517
|
* https://github.com/sanniassin/react-input-mask
|
|
573
1518
|
* http://sanniassin.github.io/react-input-mask/demo.html
|
|
574
1519
|
* https://dev.to/adrianbdesigns/let-s-create-a-floating-label-input-with-html-and-css-only-4mo8
|
|
575
1520
|
*/
|
|
576
|
-
declare const Input: react.ForwardRefExoticComponent<
|
|
1521
|
+
declare const Input: react.ForwardRefExoticComponent<Omit<react.InputHTMLAttributes<HTMLInputElement>, "children" | "style" | "onChange" | "size" | "prefix" | "onFocus" | "onBlur" | "onKeyDown" | "type"> & {
|
|
1522
|
+
style?: React.CSSProperties;
|
|
1523
|
+
type?: InputType;
|
|
1524
|
+
size?: undefined;
|
|
1525
|
+
variant?: undefined;
|
|
1526
|
+
prefix?: ChildrenProps;
|
|
1527
|
+
suffix?: ChildrenProps;
|
|
1528
|
+
addonBefore?: ChildrenProps;
|
|
1529
|
+
addonAfter?: ChildrenProps;
|
|
1530
|
+
locked?: ChildrenProps | boolean;
|
|
1531
|
+
minValue?: number;
|
|
1532
|
+
maxValue?: number;
|
|
1533
|
+
keepFocus?: boolean;
|
|
1534
|
+
mask?: null | string;
|
|
1535
|
+
allowEmptyFormatting?: null | boolean;
|
|
1536
|
+
allowLeadingZeros?: boolean;
|
|
1537
|
+
decimalSeparator?: string;
|
|
1538
|
+
thousandSeparator?: string;
|
|
1539
|
+
decimalScale?: number;
|
|
1540
|
+
focusRef?: null | react.MutableRefObject<HTMLDivElement>;
|
|
1541
|
+
onChange?: ((value: string | number) => void) | null;
|
|
1542
|
+
onUpdate?: ((value: string | number, update: boolean, validation: boolean) => void) | null;
|
|
1543
|
+
onFocus?: ((event: FocusEvent<HTMLInputElement>) => void) | null;
|
|
1544
|
+
onBlur?: ((event: FocusEvent<HTMLInputElement>) => void) | null;
|
|
1545
|
+
onPressEnter?: ((event: KeyboardEvent) => void) | null;
|
|
1546
|
+
onKeyDown?: ((event: KeyboardEvent) => void) | null;
|
|
1547
|
+
children?: ChildrenProps;
|
|
1548
|
+
} & react.RefAttributes<ITDImperativeFuncProps>>;
|
|
577
1549
|
|
|
578
1550
|
declare const TextArea: react.ForwardRefExoticComponent<TextAreaProps & react.RefAttributes<ITDImperativeFuncProps>>;
|
|
579
1551
|
|
|
1552
|
+
type SwitchProps = {
|
|
1553
|
+
id?: string;
|
|
1554
|
+
children?: ChildrenProps;
|
|
1555
|
+
checked?: boolean;
|
|
1556
|
+
defaultChecked?: boolean;
|
|
1557
|
+
loading?: boolean;
|
|
1558
|
+
disabled?: boolean;
|
|
1559
|
+
variant?: ITDVariant;
|
|
1560
|
+
onChange?: ((value: any) => void) | null;
|
|
1561
|
+
onUpdate?: ((value: any, update: any, validation: boolean) => void) | null;
|
|
1562
|
+
};
|
|
1563
|
+
|
|
580
1564
|
declare const Switch: react.ForwardRefExoticComponent<SwitchProps & react.RefAttributes<ITDImperativeFuncProps>>;
|
|
581
1565
|
|
|
582
1566
|
/**
|
|
@@ -591,91 +1575,33 @@ declare const Switch: react.ForwardRefExoticComponent<SwitchProps & react.RefAtt
|
|
|
591
1575
|
*/
|
|
592
1576
|
declare const Upload: react.ForwardRefExoticComponent<UploadProps & react.RefAttributes<ITDImperativeFuncProps>>;
|
|
593
1577
|
|
|
594
|
-
|
|
595
|
-
x: number;
|
|
596
|
-
y: number;
|
|
597
|
-
width: number;
|
|
598
|
-
height: number;
|
|
599
|
-
}
|
|
600
|
-
interface ImageCropperProps {
|
|
601
|
-
/** Image source (URL or base64) */
|
|
602
|
-
src: string;
|
|
603
|
-
/** Aspect ratio to maintain (e.g., 1 for square, 16/9 for widescreen). If undefined, free crop */
|
|
604
|
-
aspectRatio?: number;
|
|
605
|
-
/** Minimum crop width in pixels */
|
|
606
|
-
minWidth?: number;
|
|
607
|
-
/** Minimum crop height in pixels */
|
|
608
|
-
minHeight?: number;
|
|
609
|
-
/** Output width - cropped image will be resized to this width */
|
|
610
|
-
outputWidth?: number;
|
|
611
|
-
/** Output height - cropped image will be resized to this height */
|
|
612
|
-
outputHeight?: number;
|
|
613
|
-
/** Output image quality (0-1) */
|
|
614
|
-
quality?: number;
|
|
615
|
-
/** Output image format */
|
|
616
|
-
outputFormat?: "image/jpeg" | "image/png" | "image/webp";
|
|
617
|
-
/** Callback when crop area changes */
|
|
618
|
-
onCropChange?: (cropArea: CropArea) => void;
|
|
619
|
-
/** Container width */
|
|
620
|
-
width?: string | number;
|
|
621
|
-
/** Container height */
|
|
622
|
-
height?: string | number;
|
|
623
|
-
/** Show grid lines on crop area (default: true) */
|
|
624
|
-
showGrid?: boolean;
|
|
625
|
-
}
|
|
626
|
-
interface ImageCropperRef {
|
|
627
|
-
/** Get cropped image as Blob */
|
|
628
|
-
getCroppedImage: () => Promise<Blob | null>;
|
|
629
|
-
/** Get cropped image as File */
|
|
630
|
-
getCroppedFile: (fileName?: string) => Promise<File | null>;
|
|
631
|
-
/** Get crop area coordinates */
|
|
632
|
-
getCropArea: () => CropArea;
|
|
633
|
-
/** Reset crop area to center */
|
|
634
|
-
reset: () => void;
|
|
635
|
-
}
|
|
636
|
-
declare const ImageCropper: react.ForwardRefExoticComponent<ImageCropperProps & react.RefAttributes<ImageCropperRef>>;
|
|
637
|
-
|
|
638
|
-
declare function Panel({ id, link, icon, title, hasOpen, useLink, onChange, children }: {
|
|
639
|
-
id?: string | undefined;
|
|
640
|
-
link?: string | undefined;
|
|
641
|
-
icon?: string | undefined;
|
|
642
|
-
title?: string | undefined;
|
|
643
|
-
hasOpen?: boolean | undefined;
|
|
644
|
-
useLink?: boolean | undefined;
|
|
645
|
-
onChange?: null | undefined;
|
|
646
|
-
children?: null | undefined;
|
|
647
|
-
}): react_jsx_runtime.JSX.Element;
|
|
648
|
-
|
|
649
|
-
declare function Collapse({ useLink, children }: {
|
|
650
|
-
useLink?: boolean | undefined;
|
|
651
|
-
children: any;
|
|
652
|
-
}): react_jsx_runtime.JSX.Element;
|
|
653
|
-
declare namespace Collapse {
|
|
654
|
-
export { Panel };
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
type ModalActionsContextType = {
|
|
1578
|
+
type ModalContextType = {
|
|
658
1579
|
/**
|
|
659
1580
|
* Opens a new modal with the provided information of the modal to be opened.
|
|
1581
|
+
*
|
|
660
1582
|
* @param data Contains the desired parameters for opening a new modal `ModalProps`.
|
|
1583
|
+
* @returns
|
|
661
1584
|
*/
|
|
662
1585
|
showModal: (data: ModalProps$1) => void;
|
|
663
1586
|
/**
|
|
664
1587
|
* Dismisses the currently open modal with the ID of the modal to be hidden.
|
|
1588
|
+
*
|
|
665
1589
|
* @param id ID of the modal to be hide.
|
|
1590
|
+
* @returns
|
|
666
1591
|
*/
|
|
667
1592
|
hideModal: (id: string) => void;
|
|
668
1593
|
/**
|
|
669
1594
|
* Dismisses the currently open modal with the ID of the modal to be closed.
|
|
1595
|
+
*
|
|
670
1596
|
* @param id ID of the modal to be dismissed.
|
|
1597
|
+
* @returns
|
|
671
1598
|
*/
|
|
672
1599
|
removeModal: (id: string) => void;
|
|
673
1600
|
/**
|
|
674
|
-
*
|
|
1601
|
+
*
|
|
1602
|
+
* @returns
|
|
675
1603
|
*/
|
|
676
1604
|
removeAllModals: () => void;
|
|
677
|
-
};
|
|
678
|
-
type ModalStateContextType = {
|
|
679
1605
|
/**
|
|
680
1606
|
* Triggered whenever any event related to modals occurs.
|
|
681
1607
|
*/
|
|
@@ -685,34 +1611,15 @@ type ModalStateContextType = {
|
|
|
685
1611
|
};
|
|
686
1612
|
/**
|
|
687
1613
|
* Returns whether a modal is visible or not.
|
|
1614
|
+
*
|
|
688
1615
|
* @param id The visibility information of the desired modal with its ID.
|
|
1616
|
+
* @returns
|
|
689
1617
|
*/
|
|
690
1618
|
isVisible: (id: string) => boolean;
|
|
691
1619
|
};
|
|
692
|
-
type ModalContextType = ModalActionsContextType & ModalStateContextType;
|
|
693
1620
|
|
|
694
|
-
/**
|
|
695
|
-
* Use modal actions only (stable - won't cause rerenders on modal state changes)
|
|
696
|
-
* This is the recommended hook for most use cases.
|
|
697
|
-
* @returns showModal, hideModal, removeModal, removeAllModals
|
|
698
|
-
*/
|
|
699
|
-
declare const useModal: () => ModalActionsContextType;
|
|
700
|
-
/**
|
|
701
|
-
* Use modal state (dynamic - will rerender on modal events)
|
|
702
|
-
* Only use this if you need to react to modal state changes.
|
|
703
|
-
* @returns modalEvent, isVisible
|
|
704
|
-
*/
|
|
705
|
-
declare const useModalState: () => ModalStateContextType;
|
|
706
|
-
/**
|
|
707
|
-
* Use both modal actions and state (legacy - will rerender on modal events)
|
|
708
|
-
* @deprecated Use useModal() for actions and useModalState() for state separately
|
|
709
|
-
* @returns All modal context values
|
|
710
|
-
*/
|
|
711
|
-
declare const useModalFull: () => ModalContextType;
|
|
712
1621
|
declare const ModalManager: {
|
|
713
|
-
useModal: () =>
|
|
714
|
-
useModalState: () => ModalStateContextType;
|
|
715
|
-
useModalFull: () => ModalContextType;
|
|
1622
|
+
useModal: () => ModalContextType;
|
|
716
1623
|
};
|
|
717
1624
|
|
|
718
1625
|
type NotificationContextType = {
|
|
@@ -724,7 +1631,7 @@ declare const Notification: {
|
|
|
724
1631
|
useNotifications: () => NotificationContextType;
|
|
725
1632
|
};
|
|
726
1633
|
|
|
727
|
-
declare function RadioButton({ id, name, value, type, buttonProps, checked, hasError,
|
|
1634
|
+
declare function RadioButton({ id, name, value, type, buttonProps, checked, hasError, className, children, icon, image, component, onChange }: RadioButtonProps$1): react_jsx_runtime.JSX.Element;
|
|
728
1635
|
|
|
729
1636
|
declare const _default$2: react__default.NamedExoticComponent<RadioGroupProps$1 & react__default.RefAttributes<ITDImperativeFuncProps$1>>;
|
|
730
1637
|
|
|
@@ -734,37 +1641,15 @@ interface RadioComponent extends React.FC {
|
|
|
734
1641
|
}
|
|
735
1642
|
declare const Radio: RadioComponent;
|
|
736
1643
|
|
|
737
|
-
declare const _default$1: react__default.MemoExoticComponent<({ value, checked, single, onChange, children }: {
|
|
738
|
-
value?: string | undefined;
|
|
739
|
-
checked?: boolean | undefined;
|
|
740
|
-
single?: boolean | undefined;
|
|
741
|
-
onChange?: null | undefined;
|
|
742
|
-
children?: null | undefined;
|
|
743
|
-
}) => react_jsx_runtime.JSX.Element>;
|
|
744
|
-
|
|
745
|
-
declare function InlineSelect({ label, value, children, single, minWidth, className, onChange }: {
|
|
746
|
-
label?: string | undefined;
|
|
747
|
-
value?: never[] | undefined;
|
|
748
|
-
children?: null | undefined;
|
|
749
|
-
single?: boolean | undefined;
|
|
750
|
-
minWidth?: number | undefined;
|
|
751
|
-
className?: string | undefined;
|
|
752
|
-
onChange?: null | undefined;
|
|
753
|
-
}): react_jsx_runtime.JSX.Element;
|
|
754
|
-
declare namespace InlineSelect {
|
|
755
|
-
export { _default$1 as Option };
|
|
756
|
-
}
|
|
757
|
-
|
|
758
1644
|
interface ImageProps extends react__default.ImgHTMLAttributes<HTMLImageElement> {
|
|
759
1645
|
src: string;
|
|
760
1646
|
source?: string;
|
|
761
|
-
fallback?: string;
|
|
762
1647
|
brokenWidth?: number | string;
|
|
763
1648
|
brokenHeight?: number | string;
|
|
764
1649
|
onLoad?: () => void;
|
|
765
1650
|
onError?: () => void;
|
|
766
1651
|
}
|
|
767
|
-
declare const _default: react__default.NamedExoticComponent<ImageProps>;
|
|
1652
|
+
declare const _default$1: react__default.NamedExoticComponent<ImageProps>;
|
|
768
1653
|
|
|
769
1654
|
declare namespace ConsoleLog {
|
|
770
1655
|
export { single };
|
|
@@ -775,51 +1660,319 @@ declare function single(message: any, type?: string): void;
|
|
|
775
1660
|
declare function double(title: any, message: any, type?: string): void;
|
|
776
1661
|
declare function table(data: any): void;
|
|
777
1662
|
|
|
778
|
-
declare const Button:
|
|
1663
|
+
declare const Button: react__default.ForwardRefExoticComponent<ButtonProps$1 & {
|
|
1664
|
+
as?: any;
|
|
1665
|
+
asChild?: boolean;
|
|
1666
|
+
} & react__default.RefAttributes<any>>;
|
|
1667
|
+
|
|
1668
|
+
type AlertTitleProps = {
|
|
1669
|
+
children?: ReactNode;
|
|
1670
|
+
className?: string;
|
|
1671
|
+
};
|
|
1672
|
+
declare const AlertTitle: FC<AlertTitleProps>;
|
|
1673
|
+
|
|
1674
|
+
type AlertDescriptionProps = {
|
|
1675
|
+
children?: ReactNode;
|
|
1676
|
+
className?: string;
|
|
1677
|
+
};
|
|
1678
|
+
declare const AlertDescription: FC<AlertDescriptionProps>;
|
|
779
1679
|
|
|
780
1680
|
declare const Alert: {
|
|
781
|
-
({ type, size, title, className, children, icon, }: AlertProps): react_jsx_runtime.JSX.Element;
|
|
1681
|
+
({ type, size, variant, title, className, children, icon, }: AlertProps): react_jsx_runtime.JSX.Element;
|
|
1682
|
+
displayName: string;
|
|
1683
|
+
};
|
|
1684
|
+
|
|
1685
|
+
declare const Result: {
|
|
1686
|
+
({ image, title, description, className, extra, footer, type, fill, autoCenter, background, animation }: ResultProps$1): react_jsx_runtime.JSX.Element;
|
|
1687
|
+
displayName: string;
|
|
1688
|
+
};
|
|
1689
|
+
|
|
1690
|
+
declare const _default: react.MemoExoticComponent<(props: any) => react_jsx_runtime.JSX.Element>;
|
|
1691
|
+
|
|
1692
|
+
interface ISpin {
|
|
1693
|
+
updating?: boolean;
|
|
1694
|
+
opacity?: boolean;
|
|
1695
|
+
size?: number;
|
|
1696
|
+
className?: string;
|
|
1697
|
+
children?: any;
|
|
1698
|
+
}
|
|
1699
|
+
declare const Spin: ({ updating, opacity, size, className, children }: ISpin) => react_jsx_runtime.JSX.Element | null;
|
|
1700
|
+
|
|
1701
|
+
declare function BackTop(props: any): react_jsx_runtime.JSX.Element;
|
|
1702
|
+
|
|
1703
|
+
declare function Status({ variant, size, stretch, bold, children, className, }: StatusProps): react_jsx_runtime.JSX.Element;
|
|
1704
|
+
|
|
1705
|
+
declare function Progress({ status, percent, alwaysShowPercent, showInfo, className, }: ProgressProps): react_jsx_runtime.JSX.Element;
|
|
1706
|
+
|
|
1707
|
+
type TinyScrollbarProps = {
|
|
1708
|
+
className: string;
|
|
1709
|
+
children: ChildrenProps$1;
|
|
1710
|
+
style?: React.CSSProperties;
|
|
1711
|
+
};
|
|
1712
|
+
declare function TinyScrollbar({ className, children, style }: TinyScrollbarProps): react_jsx_runtime.JSX.Element;
|
|
1713
|
+
|
|
1714
|
+
type TabsItemProps = {
|
|
1715
|
+
key: string;
|
|
1716
|
+
tab: string;
|
|
1717
|
+
icon?: ReactNode;
|
|
1718
|
+
disabled?: boolean;
|
|
1719
|
+
children?: ChildrenProps;
|
|
1720
|
+
link?: string;
|
|
1721
|
+
};
|
|
1722
|
+
type TabsVariant = "default" | "filled" | "line";
|
|
1723
|
+
type TabsOrientation = "horizontal" | "vertical";
|
|
1724
|
+
type TabsProps = {
|
|
1725
|
+
activeTabKey?: string;
|
|
1726
|
+
tabs?: TabsItemProps[];
|
|
1727
|
+
onTabChange?: (key: string) => void;
|
|
1728
|
+
variant?: TabsVariant;
|
|
1729
|
+
orientation?: TabsOrientation;
|
|
1730
|
+
height?: number;
|
|
1731
|
+
fill?: boolean;
|
|
1732
|
+
className?: string;
|
|
1733
|
+
};
|
|
1734
|
+
|
|
1735
|
+
declare const Tabs: ({ tabs, activeTabKey, className, variant, orientation, height, fill, onTabChange }: TabsProps) => react_jsx_runtime.JSX.Element;
|
|
1736
|
+
|
|
1737
|
+
type LabelProps = {
|
|
1738
|
+
id?: string;
|
|
1739
|
+
htmlFor?: string;
|
|
1740
|
+
children?: ChildrenProps;
|
|
1741
|
+
className?: string;
|
|
1742
|
+
};
|
|
1743
|
+
|
|
1744
|
+
declare const Label: {
|
|
1745
|
+
({ id, htmlFor, children, className }: LabelProps): react_jsx_runtime.JSX.Element;
|
|
1746
|
+
displayName: string;
|
|
1747
|
+
};
|
|
1748
|
+
|
|
1749
|
+
interface CardProps$1 {
|
|
1750
|
+
children: ReactNode;
|
|
1751
|
+
className?: string;
|
|
1752
|
+
variant?: string;
|
|
1753
|
+
updating?: boolean;
|
|
1754
|
+
}
|
|
1755
|
+
declare const Card: FC<CardProps$1>;
|
|
1756
|
+
|
|
1757
|
+
interface CardHeaderProps {
|
|
1758
|
+
children: ReactNode;
|
|
1759
|
+
className?: string;
|
|
1760
|
+
separator?: boolean;
|
|
1761
|
+
}
|
|
1762
|
+
declare const CardHeader: FC<CardHeaderProps>;
|
|
1763
|
+
|
|
1764
|
+
interface CardTitleProps {
|
|
1765
|
+
children: ReactNode;
|
|
1766
|
+
className?: string;
|
|
1767
|
+
}
|
|
1768
|
+
declare const CardTitle: FC<CardTitleProps>;
|
|
1769
|
+
|
|
1770
|
+
interface CardDescriptionProps {
|
|
1771
|
+
children: ReactNode;
|
|
1772
|
+
className?: string;
|
|
1773
|
+
}
|
|
1774
|
+
declare const CardDescription: FC<CardDescriptionProps>;
|
|
1775
|
+
|
|
1776
|
+
interface CardActionProps {
|
|
1777
|
+
children: ReactNode;
|
|
1778
|
+
className?: string;
|
|
1779
|
+
}
|
|
1780
|
+
declare const CardAction: FC<CardActionProps>;
|
|
1781
|
+
|
|
1782
|
+
interface CardTabsProps extends Omit<TabsProps, 'children'> {
|
|
1783
|
+
className?: string;
|
|
1784
|
+
}
|
|
1785
|
+
declare const CardTabs: FC<CardTabsProps>;
|
|
1786
|
+
|
|
1787
|
+
interface CardContentProps {
|
|
1788
|
+
children: ReactNode;
|
|
1789
|
+
className?: string;
|
|
1790
|
+
}
|
|
1791
|
+
declare const CardContent: FC<CardContentProps>;
|
|
1792
|
+
|
|
1793
|
+
interface CardFooterProps {
|
|
1794
|
+
children: ReactNode;
|
|
1795
|
+
className?: string;
|
|
1796
|
+
}
|
|
1797
|
+
declare const CardFooter: FC<CardFooterProps>;
|
|
1798
|
+
|
|
1799
|
+
type Placement = ComponentYPositions$1 | ComponentXPositions$1;
|
|
1800
|
+
/**
|
|
1801
|
+
* PopoverContent props
|
|
1802
|
+
*/
|
|
1803
|
+
type PopoverContentProps = {
|
|
1804
|
+
/** Content */
|
|
1805
|
+
children: ReactNode;
|
|
1806
|
+
/** Placement */
|
|
1807
|
+
placement?: Placement;
|
|
1808
|
+
/** Show arrow */
|
|
1809
|
+
showArrow?: boolean;
|
|
1810
|
+
/** Max width */
|
|
1811
|
+
maxWidth?: string | number;
|
|
1812
|
+
/** Offset */
|
|
1813
|
+
offset?: number;
|
|
1814
|
+
/** A11y: id of the heading element in the content */
|
|
1815
|
+
ariaLabelledby?: string;
|
|
1816
|
+
/** A11y: id of the description element in the content */
|
|
1817
|
+
ariaDescribedby?: string;
|
|
1818
|
+
};
|
|
1819
|
+
/**
|
|
1820
|
+
* PopoverContent
|
|
1821
|
+
*
|
|
1822
|
+
* - Calculates the position (useFloatingPosition)
|
|
1823
|
+
* - Provides portal + animation + trapFocus with FloatingContent
|
|
1824
|
+
* - Supports A11y (role, aria-labelledby, aria-describedby)
|
|
1825
|
+
*/
|
|
1826
|
+
declare const PopoverContent: {
|
|
1827
|
+
({ children, placement, showArrow, maxWidth, offset, ariaLabelledby, ariaDescribedby, }: PopoverContentProps): react_jsx_runtime.JSX.Element;
|
|
1828
|
+
displayName: string;
|
|
1829
|
+
};
|
|
1830
|
+
|
|
1831
|
+
/**
|
|
1832
|
+
* Popover props
|
|
1833
|
+
*/
|
|
1834
|
+
type PopoverProps$1 = {
|
|
1835
|
+
/** Children */
|
|
1836
|
+
children: ReactNode;
|
|
1837
|
+
/** Default: CLICK */
|
|
1838
|
+
triggerType?: `${TriggerTypes$1}`;
|
|
1839
|
+
/** Close on click outside */
|
|
1840
|
+
closeOnClickOutside?: boolean;
|
|
1841
|
+
/** Uncontrolled initial state */
|
|
1842
|
+
defaultOpen?: boolean;
|
|
1843
|
+
/** Controlled mode */
|
|
1844
|
+
open?: boolean;
|
|
1845
|
+
/** Controlled mode change callback */
|
|
1846
|
+
onOpenChange?: (open: boolean) => void;
|
|
1847
|
+
};
|
|
1848
|
+
/**
|
|
1849
|
+
* Popover
|
|
1850
|
+
*
|
|
1851
|
+
* - Manages the state and trigger behavior
|
|
1852
|
+
* - Provides the id + trigger information to the children with context
|
|
1853
|
+
*/
|
|
1854
|
+
declare const Popover: {
|
|
1855
|
+
({ children, triggerType, closeOnClickOutside, defaultOpen, open, onOpenChange, }: PopoverProps$1): react_jsx_runtime.JSX.Element;
|
|
782
1856
|
displayName: string;
|
|
783
1857
|
};
|
|
784
1858
|
|
|
785
|
-
|
|
786
|
-
|
|
1859
|
+
/**
|
|
1860
|
+
* PopoverTrigger props
|
|
1861
|
+
*
|
|
1862
|
+
*/
|
|
1863
|
+
type PopoverTriggerProps = {
|
|
1864
|
+
/**
|
|
1865
|
+
* The children to be used as the trigger element
|
|
1866
|
+
*/
|
|
1867
|
+
children: ReactNode;
|
|
1868
|
+
/**
|
|
1869
|
+
* - When `asChild` is true, children are wrapped with Slot and used as the trigger element
|
|
1870
|
+
* - When `asChild` is false, a native `<button type="button">` is used
|
|
1871
|
+
*/
|
|
1872
|
+
asChild?: boolean;
|
|
1873
|
+
};
|
|
1874
|
+
/**
|
|
1875
|
+
* PopoverTrigger
|
|
1876
|
+
*
|
|
1877
|
+
* - Trigger element (button, icon, etc.) is not wrapped with Slot, direct behavior is injected
|
|
1878
|
+
* - ARIA bindings are set (aria-haspopup, aria-expanded, aria-controls)
|
|
1879
|
+
*/
|
|
1880
|
+
declare const PopoverTrigger: {
|
|
1881
|
+
({ children, asChild, }: PopoverTriggerProps): react_jsx_runtime.JSX.Element | null;
|
|
787
1882
|
displayName: string;
|
|
788
1883
|
};
|
|
789
1884
|
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
size?: number;
|
|
802
|
-
className?: string;
|
|
803
|
-
children?: any;
|
|
804
|
-
}
|
|
805
|
-
declare const Spin: ({ updating, opacity, size, className, children }: ISpin) => react_jsx_runtime.JSX.Element | null;
|
|
806
|
-
|
|
807
|
-
declare function BackTop(props: any): react_jsx_runtime.JSX.Element;
|
|
1885
|
+
type TooltipProps = {
|
|
1886
|
+
children: ReactNode;
|
|
1887
|
+
/** Açılma gecikmesi (ms) */
|
|
1888
|
+
openDelay?: number;
|
|
1889
|
+
/** Kapanma gecikmesi (ms) */
|
|
1890
|
+
closeDelay?: number;
|
|
1891
|
+
};
|
|
1892
|
+
declare const Tooltip: {
|
|
1893
|
+
({ children, openDelay, closeDelay, }: TooltipProps): react_jsx_runtime.JSX.Element;
|
|
1894
|
+
displayName: string;
|
|
1895
|
+
};
|
|
808
1896
|
|
|
809
|
-
|
|
1897
|
+
/**
|
|
1898
|
+
* TooltipTrigger props
|
|
1899
|
+
*/
|
|
1900
|
+
type TooltipTriggerProps = {
|
|
1901
|
+
/**
|
|
1902
|
+
* The children to be used as the trigger element
|
|
1903
|
+
*/
|
|
1904
|
+
children: ReactNode;
|
|
1905
|
+
/**
|
|
1906
|
+
* - When `asChild` is true, children are wrapped with Slot and used as the trigger element
|
|
1907
|
+
* - When `asChild` is false, a native `<span>` is used as the trigger element
|
|
1908
|
+
*/
|
|
1909
|
+
asChild?: boolean;
|
|
1910
|
+
};
|
|
1911
|
+
declare const TooltipTrigger: {
|
|
1912
|
+
({ children, asChild, }: TooltipTriggerProps): react_jsx_runtime.JSX.Element | null;
|
|
1913
|
+
displayName: string;
|
|
1914
|
+
};
|
|
810
1915
|
|
|
811
|
-
|
|
1916
|
+
type TooltipContentProps = {
|
|
1917
|
+
children: ReactNode;
|
|
1918
|
+
placement?: ComponentYPositions$1;
|
|
1919
|
+
variant?: `${ComponentVariants$1}`;
|
|
1920
|
+
offset?: number;
|
|
1921
|
+
};
|
|
1922
|
+
declare const TooltipContent: {
|
|
1923
|
+
({ children, placement, variant, offset, }: TooltipContentProps): react_jsx_runtime.JSX.Element;
|
|
1924
|
+
displayName: string;
|
|
1925
|
+
};
|
|
812
1926
|
|
|
813
|
-
type
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
1927
|
+
type HoverCardProps = {
|
|
1928
|
+
children: ReactNode;
|
|
1929
|
+
/** Açılma gecikmesi (ms) */
|
|
1930
|
+
openDelay?: number;
|
|
1931
|
+
/** Kapanma gecikmesi (ms) */
|
|
1932
|
+
closeDelay?: number;
|
|
1933
|
+
};
|
|
1934
|
+
declare const HoverCard: {
|
|
1935
|
+
({ children, openDelay, closeDelay, }: HoverCardProps): react_jsx_runtime.JSX.Element;
|
|
1936
|
+
displayName: string;
|
|
817
1937
|
};
|
|
818
|
-
declare function TinyScrollbar({ className, children, style }: TinyScrollbarProps): react_jsx_runtime.JSX.Element;
|
|
819
1938
|
|
|
820
|
-
|
|
1939
|
+
/**
|
|
1940
|
+
* HoverCardTrigger props
|
|
1941
|
+
*/
|
|
1942
|
+
type HoverCardTriggerProps = {
|
|
1943
|
+
/** Trigger olarak kullanılacak element */
|
|
1944
|
+
children: ReactNode;
|
|
1945
|
+
/**
|
|
1946
|
+
* - `asChild = true` → children Slot ile wrap'lenir, DOM'u child üretir
|
|
1947
|
+
* - `asChild = false` → native `<span>` trigger olarak kullanılır
|
|
1948
|
+
*/
|
|
1949
|
+
asChild?: boolean;
|
|
1950
|
+
};
|
|
1951
|
+
declare const HoverCardTrigger: {
|
|
1952
|
+
({ children, asChild, }: HoverCardTriggerProps): react_jsx_runtime.JSX.Element | null;
|
|
1953
|
+
displayName: string;
|
|
1954
|
+
};
|
|
821
1955
|
|
|
822
|
-
|
|
1956
|
+
type HoverCardContentProps = {
|
|
1957
|
+
/** Card içeriği (rich content) */
|
|
1958
|
+
children: ReactNode;
|
|
1959
|
+
/** Placement */
|
|
1960
|
+
placement?: ComponentYPositions$1;
|
|
1961
|
+
/** Ok göster */
|
|
1962
|
+
showArrow?: boolean;
|
|
1963
|
+
/** Max genişlik */
|
|
1964
|
+
maxWidth?: string | number;
|
|
1965
|
+
/** Offset (piksel) */
|
|
1966
|
+
offset?: number;
|
|
1967
|
+
/** A11y: içerikteki başlığın id'si */
|
|
1968
|
+
ariaLabelledby?: string;
|
|
1969
|
+
/** A11y: açıklama elementinin id'si */
|
|
1970
|
+
ariaDescribedby?: string;
|
|
1971
|
+
};
|
|
1972
|
+
declare const HoverCardContent: {
|
|
1973
|
+
({ children, placement, showArrow, maxWidth, offset, ariaLabelledby, ariaDescribedby, }: HoverCardContentProps): react_jsx_runtime.JSX.Element;
|
|
1974
|
+
displayName: string;
|
|
1975
|
+
};
|
|
823
1976
|
|
|
824
1977
|
declare const Table: <T extends TableRow>(props: TableProps<T> & {
|
|
825
1978
|
ref?: Ref<TableRefProps>;
|
|
@@ -829,9 +1982,6 @@ declare const Flex: ({ gap, justify, align, vertical, wrap, stretch, style, clas
|
|
|
829
1982
|
|
|
830
1983
|
type QueryValueProps = string | number | boolean | string[] | number[];
|
|
831
1984
|
|
|
832
|
-
type Element = string | number | React.ReactNode | undefined;
|
|
833
|
-
type ChildrenProps = Element | Element[] | null;
|
|
834
|
-
|
|
835
1985
|
type AccordionProps = {
|
|
836
1986
|
useLink?: boolean;
|
|
837
1987
|
onlyOne?: boolean;
|
|
@@ -871,56 +2021,6 @@ type AccordionItemProps = {
|
|
|
871
2021
|
children?: null | ChildrenProps;
|
|
872
2022
|
};
|
|
873
2023
|
|
|
874
|
-
declare enum InputTypes {
|
|
875
|
-
TEXT = "text",
|
|
876
|
-
NUMBER = "number",
|
|
877
|
-
CURRENCY = "currency",
|
|
878
|
-
PASSWORD = "password"
|
|
879
|
-
}
|
|
880
|
-
type InputType = `${InputTypes}`;
|
|
881
|
-
type InputVariant = "default" | "filled" | "dashed";
|
|
882
|
-
type InputProps = {
|
|
883
|
-
id?: string;
|
|
884
|
-
placeholder?: string;
|
|
885
|
-
value?: string;
|
|
886
|
-
defaultValue?: string;
|
|
887
|
-
type?: InputType;
|
|
888
|
-
className?: string;
|
|
889
|
-
size?: ITDSize;
|
|
890
|
-
variant?: InputVariant;
|
|
891
|
-
prefix?: ChildrenProps;
|
|
892
|
-
suffix?: ChildrenProps;
|
|
893
|
-
addonBefore?: ChildrenProps;
|
|
894
|
-
addonAfter?: ChildrenProps;
|
|
895
|
-
locked?: ChildrenProps | boolean;
|
|
896
|
-
status?: ChildrenProps;
|
|
897
|
-
minValue?: number;
|
|
898
|
-
maxValue?: number;
|
|
899
|
-
maxLength?: number;
|
|
900
|
-
disabled?: boolean;
|
|
901
|
-
floating?: boolean;
|
|
902
|
-
autoComplete?: boolean;
|
|
903
|
-
keepFocus?: boolean;
|
|
904
|
-
focusRef?: null | MutableRefObject<HTMLDivElement>;
|
|
905
|
-
mask?: null | string;
|
|
906
|
-
allowEmptyFormatting?: null | boolean;
|
|
907
|
-
allowLeadingZeros?: boolean;
|
|
908
|
-
decimalSeparator?: string;
|
|
909
|
-
thousandSeparator?: string;
|
|
910
|
-
decimalScale?: number;
|
|
911
|
-
onChange?: ((value: any) => void) | null;
|
|
912
|
-
onUpdate?: ((value: any, update: any, validation: boolean) => void) | null;
|
|
913
|
-
onFocus?: ((event: any) => void) | null;
|
|
914
|
-
onBlur?: ((event: FocusEvent<HTMLInputElement>) => void) | null;
|
|
915
|
-
onPressEnter?: ((event: KeyboardEvent) => void) | null;
|
|
916
|
-
onKeyDown?: ((event: KeyboardEvent) => void) | null;
|
|
917
|
-
children?: ChildrenProps;
|
|
918
|
-
};
|
|
919
|
-
|
|
920
|
-
type ITDSize = ComponentSizes$1 | "x-small" | "small" | "medium" | "default" | "large" | "x-large";
|
|
921
|
-
type ITDSizeSlug = ComponentSizesSlug$1 | "xs" | "sm" | "md" | "df" | "lg" | "xlg";
|
|
922
|
-
type ITDPosition = ComponentPositions$1 | "left" | "right";
|
|
923
|
-
|
|
924
2024
|
type CalendarProps = {
|
|
925
2025
|
id?: string;
|
|
926
2026
|
placeholder?: string;
|
|
@@ -930,7 +2030,6 @@ type CalendarProps = {
|
|
|
930
2030
|
size?: ITDSize;
|
|
931
2031
|
variant?: InputVariant;
|
|
932
2032
|
disabled?: boolean;
|
|
933
|
-
floating?: boolean;
|
|
934
2033
|
suffix?: ChildrenProps;
|
|
935
2034
|
onChange?: ((value: CalendarValueProps) => void) | null;
|
|
936
2035
|
onUpdate?: ((value: any, update: any, validation: boolean) => void) | null;
|
|
@@ -959,12 +2058,13 @@ type DatePickerProps = {
|
|
|
959
2058
|
size?: ITDSize;
|
|
960
2059
|
variant?: InputVariant;
|
|
961
2060
|
disabled?: boolean;
|
|
962
|
-
|
|
963
|
-
position?:
|
|
2061
|
+
locked?: boolean;
|
|
2062
|
+
position?: ITDHorizontalPosition;
|
|
964
2063
|
suffix?: ChildrenProps;
|
|
965
2064
|
onChange?: ((value: CalendarValueProps) => void) | null;
|
|
966
2065
|
onUpdate?: ((value: any, update: any, validation: boolean) => void) | null;
|
|
967
2066
|
disabledDate?: (date: dayjs.Dayjs) => boolean;
|
|
2067
|
+
calendarLocale?: CalendarLocale;
|
|
968
2068
|
};
|
|
969
2069
|
|
|
970
2070
|
type TextAreaProps = {
|
|
@@ -978,6 +2078,7 @@ type TextAreaProps = {
|
|
|
978
2078
|
rows?: number;
|
|
979
2079
|
maxLength?: number;
|
|
980
2080
|
disabled?: boolean;
|
|
2081
|
+
locked?: boolean;
|
|
981
2082
|
showCount?: boolean;
|
|
982
2083
|
onChange?: ((event: TextAreaEvent) => void);
|
|
983
2084
|
onUpdate?: ((value: any, update: any, validation: boolean) => void) | null;
|
|
@@ -995,27 +2096,23 @@ type TextAreaVariant = "default" | "filled" | "dashed";
|
|
|
995
2096
|
|
|
996
2097
|
type ButtonProps = {
|
|
997
2098
|
id?: string;
|
|
2099
|
+
form?: string;
|
|
998
2100
|
disabled?: boolean;
|
|
999
2101
|
loading?: boolean;
|
|
1000
|
-
selected?: boolean;
|
|
1001
|
-
strecth?: boolean;
|
|
1002
|
-
circle?: boolean;
|
|
1003
|
-
justify?: string;
|
|
1004
|
-
contentPosition?: ITDPosition;
|
|
1005
2102
|
type?: ButtonType;
|
|
1006
|
-
variant?:
|
|
1007
|
-
state?:
|
|
1008
|
-
size?:
|
|
1009
|
-
icon?: string | ChildrenProps | SVGElement;
|
|
2103
|
+
variant?: ButtonVariants;
|
|
2104
|
+
state?: ButtonStates;
|
|
2105
|
+
size?: ButtonSize;
|
|
1010
2106
|
href?: string;
|
|
1011
2107
|
target?: string;
|
|
1012
2108
|
className?: string;
|
|
1013
2109
|
children?: ChildrenProps;
|
|
1014
2110
|
onClick?: null | ((event: MouseEvent<any>) => void);
|
|
1015
2111
|
};
|
|
1016
|
-
type ButtonType =
|
|
1017
|
-
type
|
|
1018
|
-
type
|
|
2112
|
+
type ButtonType = `${ButtonTypes$1}`;
|
|
2113
|
+
type ButtonSize = `${ButtonSizes$1}`;
|
|
2114
|
+
type ButtonVariants = `${ComponentVariants$1}` | "solid" | "outline" | "ghost" | "link" | "statable";
|
|
2115
|
+
type ButtonStates = "primary" | "secondary" | "request" | "approve" | "reject" | "pending" | "requested" | string | null;
|
|
1019
2116
|
|
|
1020
2117
|
type RadioType = "default" | "primary";
|
|
1021
2118
|
type Direction = "column" | "row";
|
|
@@ -1032,7 +2129,6 @@ type RadioGroupProps = {
|
|
|
1032
2129
|
length?: number;
|
|
1033
2130
|
onlyFlow?: boolean;
|
|
1034
2131
|
autoSize?: boolean;
|
|
1035
|
-
disabled?: boolean;
|
|
1036
2132
|
buttonProps?: ButtonProps;
|
|
1037
2133
|
onChange?: (value: string) => void;
|
|
1038
2134
|
onUpdate?: (value: string, update: boolean, validation: boolean) => void;
|
|
@@ -1045,8 +2141,8 @@ type RadioButtonProps = {
|
|
|
1045
2141
|
type?: RadioType;
|
|
1046
2142
|
checked?: boolean;
|
|
1047
2143
|
hasError?: boolean;
|
|
2144
|
+
className?: string;
|
|
1048
2145
|
children?: React.ReactNode;
|
|
1049
|
-
disabled?: boolean;
|
|
1050
2146
|
buttonProps?: ButtonProps;
|
|
1051
2147
|
icon?: string | null;
|
|
1052
2148
|
image?: string | null;
|
|
@@ -1059,21 +2155,19 @@ type SelectProps = {
|
|
|
1059
2155
|
defaultValue?: SelectValue;
|
|
1060
2156
|
value?: SelectValue;
|
|
1061
2157
|
label?: string | number;
|
|
1062
|
-
position?:
|
|
1063
|
-
direction?:
|
|
2158
|
+
position?: ITDVerticalPosition;
|
|
2159
|
+
direction?: ITDHorizontalPosition;
|
|
1064
2160
|
multi?: boolean;
|
|
1065
2161
|
size?: ITDSize;
|
|
1066
|
-
variant?:
|
|
2162
|
+
variant?: ITDVariant;
|
|
1067
2163
|
className?: string;
|
|
1068
2164
|
placeholder?: string;
|
|
1069
2165
|
prefix?: ChildrenProps;
|
|
1070
|
-
suffix?: ChildrenProps;
|
|
1071
2166
|
icon?: string;
|
|
1072
2167
|
image?: string;
|
|
1073
2168
|
disabled?: boolean;
|
|
1074
2169
|
showSearch?: boolean;
|
|
1075
2170
|
locked?: boolean;
|
|
1076
|
-
floating?: boolean;
|
|
1077
2171
|
style?: CSSProperties;
|
|
1078
2172
|
options?: SelectOptionProps[];
|
|
1079
2173
|
onChange?: ((value: SelectValue) => void) | null;
|
|
@@ -1082,23 +2176,19 @@ type SelectProps = {
|
|
|
1082
2176
|
type SelectToggleProps = {
|
|
1083
2177
|
id?: string;
|
|
1084
2178
|
label?: string | number | ChildrenProps;
|
|
1085
|
-
value?: SelectValue | null;
|
|
1086
2179
|
errorMessage: string;
|
|
1087
2180
|
multi: boolean;
|
|
1088
2181
|
isOpen: boolean;
|
|
1089
2182
|
showSearch: boolean;
|
|
1090
2183
|
locked: boolean;
|
|
1091
2184
|
disabled: boolean;
|
|
1092
|
-
labelType: string;
|
|
1093
2185
|
placeholder: string;
|
|
1094
2186
|
icon?: string;
|
|
1095
2187
|
prefix?: ChildrenProps;
|
|
1096
|
-
suffix?: ChildrenProps;
|
|
1097
2188
|
image?: string;
|
|
1098
2189
|
size: ITDSize;
|
|
1099
2190
|
onFocus: () => void;
|
|
1100
|
-
|
|
1101
|
-
onShow: (value: boolean) => void;
|
|
2191
|
+
onShow: (value: boolean, trigger?: 'pointer' | 'keyboard') => void;
|
|
1102
2192
|
onFilter: (value: string) => void;
|
|
1103
2193
|
onChange: (open: boolean) => void;
|
|
1104
2194
|
};
|
|
@@ -1112,17 +2202,16 @@ type SelectOptionProps = {
|
|
|
1112
2202
|
searchText?: string;
|
|
1113
2203
|
};
|
|
1114
2204
|
type SelectValue = string | number | (string | number)[];
|
|
1115
|
-
type SelectVariant = "default" | "solid" | "filled" | "outline" | "custom";
|
|
1116
|
-
type SelectPosition = "top" | "bottom";
|
|
1117
|
-
type SelectDirection = "right" | "left";
|
|
1118
2205
|
|
|
1119
2206
|
type CheckboxProps = {
|
|
1120
2207
|
id?: string;
|
|
1121
2208
|
value?: string | number | boolean;
|
|
1122
2209
|
checked?: boolean;
|
|
1123
2210
|
disabled?: boolean;
|
|
1124
|
-
|
|
2211
|
+
readOnly?: boolean;
|
|
2212
|
+
variant?: ITDVariant;
|
|
1125
2213
|
indeterminate?: boolean;
|
|
2214
|
+
animated?: boolean;
|
|
1126
2215
|
className?: string;
|
|
1127
2216
|
children?: ChildrenProps;
|
|
1128
2217
|
onChange?: ((event: CheckboxEvent) => void);
|
|
@@ -1134,6 +2223,7 @@ type CheckboxGroupProps = {
|
|
|
1134
2223
|
defaultValue?: (string | number | boolean)[];
|
|
1135
2224
|
options?: GroupCheckboxOptionType[];
|
|
1136
2225
|
disabled?: boolean;
|
|
2226
|
+
variant?: ITDVariant;
|
|
1137
2227
|
className?: string;
|
|
1138
2228
|
children?: ChildrenProps | ReactElement<CheckboxProps> | Array<ReactElement<CheckboxProps>>;
|
|
1139
2229
|
selectAll?: (value: boolean) => void;
|
|
@@ -1154,19 +2244,6 @@ type CheckboxEvent = {
|
|
|
1154
2244
|
stopPropagation: () => void;
|
|
1155
2245
|
preventDefault: () => void;
|
|
1156
2246
|
};
|
|
1157
|
-
type CheckboxVariant = "default" | "filled";
|
|
1158
|
-
|
|
1159
|
-
type ITDImperativeFuncProps = {
|
|
1160
|
-
reset: (update?: boolean, validation?: boolean) => void;
|
|
1161
|
-
setValue: (value: any, update?: boolean, validation?: boolean) => void;
|
|
1162
|
-
getValue: () => any;
|
|
1163
|
-
setError?: (message: string) => void;
|
|
1164
|
-
setFocus?: () => void;
|
|
1165
|
-
setDisabled?: (value: boolean) => void;
|
|
1166
|
-
forceUpdate?: () => void;
|
|
1167
|
-
clear?: () => void;
|
|
1168
|
-
scrollIntoView?: (options?: ScrollIntoViewOptions | boolean) => void;
|
|
1169
|
-
};
|
|
1170
2247
|
|
|
1171
2248
|
type SingleQueryProps = {
|
|
1172
2249
|
set: (type: string, value: QueryValueProps) => void;
|
|
@@ -1185,6 +2262,9 @@ type FormProps = {
|
|
|
1185
2262
|
onValidated?: (validate: boolean) => void;
|
|
1186
2263
|
onFieldUpdate?: (update: FieldUpdateProps) => void;
|
|
1187
2264
|
useQueryString?: boolean;
|
|
2265
|
+
variant?: ITDVariant;
|
|
2266
|
+
disabled?: boolean;
|
|
2267
|
+
locked?: boolean;
|
|
1188
2268
|
className?: string;
|
|
1189
2269
|
ref?: RefObject<FormContextType>;
|
|
1190
2270
|
name: string;
|
|
@@ -1201,7 +2281,6 @@ type FormRuleProps = {
|
|
|
1201
2281
|
field?: string;
|
|
1202
2282
|
value?: string | number | (string | number)[];
|
|
1203
2283
|
message?: string;
|
|
1204
|
-
currency?: string;
|
|
1205
2284
|
};
|
|
1206
2285
|
type FormItemProps = {
|
|
1207
2286
|
name: string;
|
|
@@ -1232,25 +2311,14 @@ type NotificationsProps = {
|
|
|
1232
2311
|
|
|
1233
2312
|
type AlertProps = {
|
|
1234
2313
|
type?: AlertType;
|
|
1235
|
-
size?:
|
|
2314
|
+
size?: ITDSize;
|
|
1236
2315
|
icon?: string | react__default.ReactNode;
|
|
1237
2316
|
title?: string;
|
|
2317
|
+
variant?: ITDVariant;
|
|
1238
2318
|
className?: string;
|
|
1239
2319
|
children?: ChildrenProps;
|
|
1240
2320
|
};
|
|
1241
|
-
type AlertType = "success" | "info" | "warning" | "error";
|
|
1242
|
-
type AlertSize = ComponentSizes$1.X_SMALL | ComponentSizes$1.SMALL | ComponentSizes$1.MEDIUM | ComponentSizes$1.DEFAULT | ComponentSizes$1.LARGE | ComponentSizes$1.X_LARGE;
|
|
1243
|
-
|
|
1244
|
-
type SwitchProps = {
|
|
1245
|
-
id?: string;
|
|
1246
|
-
label?: string;
|
|
1247
|
-
checked?: boolean;
|
|
1248
|
-
defaultChecked?: boolean;
|
|
1249
|
-
loading?: boolean;
|
|
1250
|
-
disabled?: boolean;
|
|
1251
|
-
onChange?: ((value: any) => void) | null;
|
|
1252
|
-
onUpdate?: ((value: any, update: any, validation: boolean) => void) | null;
|
|
1253
|
-
};
|
|
2321
|
+
type AlertType = "neutral" | "success" | "info" | "warning" | "error";
|
|
1254
2322
|
|
|
1255
2323
|
/**
|
|
1256
2324
|
* #### ModalProps
|
|
@@ -1470,29 +2538,9 @@ type ModalRefProps = {
|
|
|
1470
2538
|
onClickCancel?: () => void;
|
|
1471
2539
|
};
|
|
1472
2540
|
|
|
1473
|
-
/**
|
|
1474
|
-
* Crop settings for the Upload component
|
|
1475
|
-
*/
|
|
1476
|
-
type CropSettings = {
|
|
1477
|
-
/** Aspect ratio (e.g., 1 for square, 16/9 for widescreen). */
|
|
1478
|
-
aspectRatio?: number;
|
|
1479
|
-
/** Minimum crop area width in pixels. User cannot select smaller than this. */
|
|
1480
|
-
minWidth?: number;
|
|
1481
|
-
/** Minimum crop area height in pixels. User cannot select smaller than this. */
|
|
1482
|
-
minHeight?: number;
|
|
1483
|
-
/** Output width in pixels. Cropped image will be resized to this width. */
|
|
1484
|
-
outputWidth?: number;
|
|
1485
|
-
/** Output height in pixels. Cropped image will be resized to this height. */
|
|
1486
|
-
outputHeight?: number;
|
|
1487
|
-
/** Output image quality (0-1), default 0.9 */
|
|
1488
|
-
quality?: number;
|
|
1489
|
-
/** Crop modal title */
|
|
1490
|
-
modalTitle?: string;
|
|
1491
|
-
/** Show grid lines on crop area (default: true) */
|
|
1492
|
-
showGrid?: boolean;
|
|
1493
|
-
};
|
|
1494
2541
|
type UploadProps = {
|
|
1495
2542
|
id?: string;
|
|
2543
|
+
variant?: ITDVariant;
|
|
1496
2544
|
action?: string;
|
|
1497
2545
|
filePath?: string | null;
|
|
1498
2546
|
removeAction?: string;
|
|
@@ -1522,24 +2570,7 @@ type UploadProps = {
|
|
|
1522
2570
|
extraQueryString?: {};
|
|
1523
2571
|
extraHeader?: {};
|
|
1524
2572
|
disabled?: boolean;
|
|
1525
|
-
|
|
1526
|
-
minImageWidth?: number;
|
|
1527
|
-
/** Minimum image height required for upload (in pixels). Smaller images will be rejected. Works with or without crop. */
|
|
1528
|
-
minImageHeight?: number;
|
|
1529
|
-
/**
|
|
1530
|
-
* Crop settings. If provided, cropping is enabled.
|
|
1531
|
-
* @example
|
|
1532
|
-
* crop={{
|
|
1533
|
-
* aspectRatio: 16/9,
|
|
1534
|
-
* minWidth: 960, // Minimum crop area size
|
|
1535
|
-
* minHeight: 540,
|
|
1536
|
-
* outputWidth: 1920, // Final output size
|
|
1537
|
-
* outputHeight: 1080,
|
|
1538
|
-
* quality: 0.9,
|
|
1539
|
-
* modalTitle: "Crop Image"
|
|
1540
|
-
* }}
|
|
1541
|
-
*/
|
|
1542
|
-
crop?: CropSettings;
|
|
2573
|
+
locked?: boolean;
|
|
1543
2574
|
onChange?: ((value: any) => void) | null;
|
|
1544
2575
|
onUpdate?: ((value: any, update: any, validation: boolean) => void) | null;
|
|
1545
2576
|
onUploadSuccess?: (path: string) => void;
|
|
@@ -1562,6 +2593,7 @@ type ResultProps = {
|
|
|
1562
2593
|
image: string | ChildrenProps;
|
|
1563
2594
|
title: string;
|
|
1564
2595
|
description: string;
|
|
2596
|
+
className?: string;
|
|
1565
2597
|
type?: string;
|
|
1566
2598
|
extra?: ChildrenProps | null;
|
|
1567
2599
|
footer?: ChildrenProps | null;
|
|
@@ -1571,22 +2603,6 @@ type ResultProps = {
|
|
|
1571
2603
|
animation?: boolean;
|
|
1572
2604
|
};
|
|
1573
2605
|
|
|
1574
|
-
type TabsItemProps = {
|
|
1575
|
-
key: string;
|
|
1576
|
-
tab: string;
|
|
1577
|
-
children?: ChildrenProps;
|
|
1578
|
-
link?: string;
|
|
1579
|
-
};
|
|
1580
|
-
type TabsProps = {
|
|
1581
|
-
activeTabKey?: string;
|
|
1582
|
-
tabs?: TabsItemProps[];
|
|
1583
|
-
onTabChange?: (key: string) => void;
|
|
1584
|
-
variant?: "default" | "bold";
|
|
1585
|
-
height?: number;
|
|
1586
|
-
overflow?: boolean;
|
|
1587
|
-
className?: string;
|
|
1588
|
-
};
|
|
1589
|
-
|
|
1590
2606
|
type TableColumnType<T> = {
|
|
1591
2607
|
key: keyof T | string;
|
|
1592
2608
|
title: ChildrenProps;
|
|
@@ -1601,6 +2617,7 @@ type TableProps<T extends TableRow> = {
|
|
|
1601
2617
|
columns: TableColumnType<T>[];
|
|
1602
2618
|
data: T[] | null;
|
|
1603
2619
|
cellHeight?: number | string;
|
|
2620
|
+
className?: string;
|
|
1604
2621
|
size?: ITDSize;
|
|
1605
2622
|
headless?: boolean;
|
|
1606
2623
|
bordered?: boolean;
|
|
@@ -1624,6 +2641,8 @@ type TableRefProps = {
|
|
|
1624
2641
|
|
|
1625
2642
|
type CardProps = {
|
|
1626
2643
|
title?: ChildrenProps;
|
|
2644
|
+
variant?: ITDVariant;
|
|
2645
|
+
description?: ChildrenProps;
|
|
1627
2646
|
titleSeparator?: boolean;
|
|
1628
2647
|
extra?: ChildrenProps;
|
|
1629
2648
|
tabs?: {
|
|
@@ -1633,10 +2652,11 @@ type CardProps = {
|
|
|
1633
2652
|
activeTabKey?: string;
|
|
1634
2653
|
onTabChange?: (key: string) => void;
|
|
1635
2654
|
updating?: boolean;
|
|
1636
|
-
minWidth?:
|
|
1637
|
-
minHeight?:
|
|
2655
|
+
minWidth?: string;
|
|
2656
|
+
minHeight?: string;
|
|
1638
2657
|
contentPadding?: string;
|
|
1639
2658
|
children: ChildrenProps;
|
|
2659
|
+
className?: string;
|
|
1640
2660
|
};
|
|
1641
2661
|
|
|
1642
2662
|
type ProgressProps = {
|
|
@@ -1673,83 +2693,16 @@ type FlexGapProps = "small" | "medium" | "large" | string | number;
|
|
|
1673
2693
|
type FlexJustifyProps = "unset" | "flex-start" | "center" | "flex-end" | "space-between" | "space-around" | "space-evenly";
|
|
1674
2694
|
type FlexAlignProps = "unset" | "flex-start" | "center" | "flex-end";
|
|
1675
2695
|
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
OK_CLICK = "modal-ok-button-click",
|
|
1685
|
-
CANCEL_CLICK = "modal-cancel-button-click",
|
|
1686
|
-
CLOSE_CLICK = "modal-close-button-click",
|
|
1687
|
-
OUTSIDE_CLICK = "modal-outside-click",
|
|
1688
|
-
ESC_CLICK = "modal-esc-click",
|
|
1689
|
-
ALL_REMOVED = "modal-all-removed"
|
|
1690
|
-
}
|
|
1691
|
-
declare enum FileTypes {
|
|
1692
|
-
SVG = "image/svg+xml",
|
|
1693
|
-
PNG = "image/png",
|
|
1694
|
-
JPG = "image/jpeg",
|
|
1695
|
-
GIF = "image/gif",
|
|
1696
|
-
WEBP = "image/webp",
|
|
1697
|
-
PDF = "application/pdf",
|
|
1698
|
-
XLSX = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
1699
|
-
OTF = "font/otf"
|
|
1700
|
-
}
|
|
1701
|
-
declare enum FileExtensions {
|
|
1702
|
-
SVG = ".svg",
|
|
1703
|
-
PNG = ".png",
|
|
1704
|
-
JPG = ".jpg",
|
|
1705
|
-
GIF = ".gif",
|
|
1706
|
-
WEBP = ".webp",
|
|
1707
|
-
PDF = ".pdf",
|
|
1708
|
-
XLSX = ".xlsx",
|
|
1709
|
-
OTF = ".otf"
|
|
1710
|
-
}
|
|
1711
|
-
declare enum FormValidationTypes {
|
|
1712
|
-
MIN_LENGTH = "minLength",
|
|
1713
|
-
MAX_LENGTH = "maxLength",
|
|
1714
|
-
EXACT_LENGTH = "exactLength",
|
|
1715
|
-
SAME = "same",
|
|
1716
|
-
NOT_SAME = "notSame",
|
|
1717
|
-
TC_IDENTITY = "TCIdentity",
|
|
1718
|
-
PASSWORD = "password",
|
|
1719
|
-
EMAIL = "email",
|
|
1720
|
-
USERNAME = "username",
|
|
1721
|
-
SITE_USERNAME = "siteUsername",
|
|
1722
|
-
ADMIN_USERNAME = "adminUsername",
|
|
1723
|
-
URL = "url",
|
|
1724
|
-
FORBIDDEN_WORDS = "forbiddenWords",
|
|
1725
|
-
MULTIPLE_OF = "multipleOf"
|
|
1726
|
-
}
|
|
1727
|
-
declare enum ConnectionStatus {
|
|
1728
|
-
ONLINE = "online",
|
|
1729
|
-
OFFLINE = "offline"
|
|
1730
|
-
}
|
|
1731
|
-
declare enum ComponentSizes {
|
|
1732
|
-
X_SMALL = "x-small",
|
|
1733
|
-
SMALL = "small",
|
|
1734
|
-
MEDIUM = "medium",
|
|
1735
|
-
DEFAULT = "default",
|
|
1736
|
-
LARGE = "large",
|
|
1737
|
-
X_LARGE = "x-large"
|
|
1738
|
-
}
|
|
1739
|
-
declare enum ComponentSizesSlug {
|
|
1740
|
-
X_SMALL = "xs",
|
|
1741
|
-
SMALL = "sm",
|
|
1742
|
-
MEDIUM = "md",
|
|
1743
|
-
DEFAULT = "df",
|
|
1744
|
-
LARGE = "lg",
|
|
1745
|
-
X_LARGE = "xlg"
|
|
1746
|
-
}
|
|
1747
|
-
declare enum ComponentPositions {
|
|
1748
|
-
LEFT = "left",
|
|
1749
|
-
RIGHT = "right"
|
|
1750
|
-
}
|
|
2696
|
+
type PopoverProps = {
|
|
2697
|
+
children: ChildrenProps;
|
|
2698
|
+
content: ChildrenProps | ((placement: ComponentYPositions$1 | ComponentXPositions$1) => ChildrenProps);
|
|
2699
|
+
offset?: number;
|
|
2700
|
+
placement?: ComponentYPositions$1 | ComponentXPositions$1;
|
|
2701
|
+
maxWidth?: number;
|
|
2702
|
+
showArrow?: boolean;
|
|
2703
|
+
};
|
|
1751
2704
|
|
|
1752
|
-
declare const
|
|
2705
|
+
declare const locales: {
|
|
1753
2706
|
tr: {
|
|
1754
2707
|
itd: {
|
|
1755
2708
|
success: string;
|
|
@@ -1770,6 +2723,19 @@ declare const resources: {
|
|
|
1770
2723
|
birthday: string;
|
|
1771
2724
|
multipleSelection: string;
|
|
1772
2725
|
};
|
|
2726
|
+
texts: {
|
|
2727
|
+
enabledNotifications: string;
|
|
2728
|
+
create: string;
|
|
2729
|
+
read: string;
|
|
2730
|
+
update: string;
|
|
2731
|
+
delete: string;
|
|
2732
|
+
selectAll: string;
|
|
2733
|
+
termsAndConditions: string;
|
|
2734
|
+
campaignTitle: string;
|
|
2735
|
+
campaignDescription: string;
|
|
2736
|
+
formTitle: string;
|
|
2737
|
+
formDescription: string;
|
|
2738
|
+
};
|
|
1773
2739
|
options: {
|
|
1774
2740
|
all: string;
|
|
1775
2741
|
male: string;
|
|
@@ -1778,11 +2744,6 @@ declare const resources: {
|
|
|
1778
2744
|
turkish: string;
|
|
1779
2745
|
english: string;
|
|
1780
2746
|
};
|
|
1781
|
-
currencies: {
|
|
1782
|
-
TRY: string;
|
|
1783
|
-
EUR: string;
|
|
1784
|
-
USD: string;
|
|
1785
|
-
};
|
|
1786
2747
|
};
|
|
1787
2748
|
buttons: {
|
|
1788
2749
|
submit: string;
|
|
@@ -1804,7 +2765,6 @@ declare const resources: {
|
|
|
1804
2765
|
invalidURL: string;
|
|
1805
2766
|
fieldMustBeDifferent: string;
|
|
1806
2767
|
forbiddenWords: string;
|
|
1807
|
-
multipleOf: string;
|
|
1808
2768
|
};
|
|
1809
2769
|
uploader: {
|
|
1810
2770
|
header: string;
|
|
@@ -1825,13 +2785,6 @@ declare const resources: {
|
|
|
1825
2785
|
areYouSureToDeleteThisFile: string;
|
|
1826
2786
|
yes: string;
|
|
1827
2787
|
no: string;
|
|
1828
|
-
cropImage: string;
|
|
1829
|
-
crop: string;
|
|
1830
|
-
cancel: string;
|
|
1831
|
-
width: string;
|
|
1832
|
-
height: string;
|
|
1833
|
-
imageTooSmall: string;
|
|
1834
|
-
imageTooSmallMessage: string;
|
|
1835
2788
|
};
|
|
1836
2789
|
results: {
|
|
1837
2790
|
authentication: {
|
|
@@ -1844,6 +2797,21 @@ declare const resources: {
|
|
|
1844
2797
|
TRY: string;
|
|
1845
2798
|
EUR: string;
|
|
1846
2799
|
USD: string;
|
|
2800
|
+
GBP: string;
|
|
2801
|
+
JPY: string;
|
|
2802
|
+
CHF: string;
|
|
2803
|
+
CAD: string;
|
|
2804
|
+
AUD: string;
|
|
2805
|
+
NZD: string;
|
|
2806
|
+
RUB: string;
|
|
2807
|
+
INR: string;
|
|
2808
|
+
BRL: string;
|
|
2809
|
+
MXN: string;
|
|
2810
|
+
ARS: string;
|
|
2811
|
+
CLP: string;
|
|
2812
|
+
COP: string;
|
|
2813
|
+
PEN: string;
|
|
2814
|
+
ZAR: string;
|
|
1847
2815
|
};
|
|
1848
2816
|
countries: {
|
|
1849
2817
|
af: string;
|
|
@@ -2049,9 +3017,6 @@ declare const resources: {
|
|
|
2049
3017
|
firstDay: number;
|
|
2050
3018
|
format: string;
|
|
2051
3019
|
};
|
|
2052
|
-
tabs: {
|
|
2053
|
-
more: string;
|
|
2054
|
-
};
|
|
2055
3020
|
};
|
|
2056
3021
|
calendar: {
|
|
2057
3022
|
weekdaysLong: string[];
|
|
@@ -2081,6 +3046,19 @@ declare const resources: {
|
|
|
2081
3046
|
birthday: string;
|
|
2082
3047
|
multipleSelection: string;
|
|
2083
3048
|
};
|
|
3049
|
+
texts: {
|
|
3050
|
+
enabledNotifications: string;
|
|
3051
|
+
create: string;
|
|
3052
|
+
read: string;
|
|
3053
|
+
update: string;
|
|
3054
|
+
delete: string;
|
|
3055
|
+
selectAll: string;
|
|
3056
|
+
termsAndConditions: string;
|
|
3057
|
+
campaignTitle: string;
|
|
3058
|
+
campaignDescription: string;
|
|
3059
|
+
formTitle: string;
|
|
3060
|
+
formDescription: string;
|
|
3061
|
+
};
|
|
2084
3062
|
options: {
|
|
2085
3063
|
all: string;
|
|
2086
3064
|
male: string;
|
|
@@ -2089,11 +3067,6 @@ declare const resources: {
|
|
|
2089
3067
|
turkish: string;
|
|
2090
3068
|
english: string;
|
|
2091
3069
|
};
|
|
2092
|
-
currencies: {
|
|
2093
|
-
TRY: string;
|
|
2094
|
-
EUR: string;
|
|
2095
|
-
USD: string;
|
|
2096
|
-
};
|
|
2097
3070
|
};
|
|
2098
3071
|
buttons: {
|
|
2099
3072
|
submit: string;
|
|
@@ -2114,7 +3087,6 @@ declare const resources: {
|
|
|
2114
3087
|
invalidURL: string;
|
|
2115
3088
|
fieldMustBeDifferent: string;
|
|
2116
3089
|
forbiddenWords: string;
|
|
2117
|
-
multipleOf: string;
|
|
2118
3090
|
};
|
|
2119
3091
|
uploader: {
|
|
2120
3092
|
header: string;
|
|
@@ -2135,13 +3107,6 @@ declare const resources: {
|
|
|
2135
3107
|
areYouSureToDeleteThisFile: string;
|
|
2136
3108
|
yes: string;
|
|
2137
3109
|
no: string;
|
|
2138
|
-
cropImage: string;
|
|
2139
|
-
crop: string;
|
|
2140
|
-
cancel: string;
|
|
2141
|
-
width: string;
|
|
2142
|
-
height: string;
|
|
2143
|
-
imageTooSmall: string;
|
|
2144
|
-
imageTooSmallMessage: string;
|
|
2145
3110
|
};
|
|
2146
3111
|
results: {
|
|
2147
3112
|
authentication: {
|
|
@@ -2154,6 +3119,21 @@ declare const resources: {
|
|
|
2154
3119
|
TRY: string;
|
|
2155
3120
|
EUR: string;
|
|
2156
3121
|
USD: string;
|
|
3122
|
+
GBP: string;
|
|
3123
|
+
JPY: string;
|
|
3124
|
+
CHF: string;
|
|
3125
|
+
CAD: string;
|
|
3126
|
+
AUD: string;
|
|
3127
|
+
NZD: string;
|
|
3128
|
+
RUB: string;
|
|
3129
|
+
INR: string;
|
|
3130
|
+
BRL: string;
|
|
3131
|
+
MXN: string;
|
|
3132
|
+
ARS: string;
|
|
3133
|
+
CLP: string;
|
|
3134
|
+
COP: string;
|
|
3135
|
+
PEN: string;
|
|
3136
|
+
ZAR: string;
|
|
2157
3137
|
};
|
|
2158
3138
|
countries: {
|
|
2159
3139
|
af: string;
|
|
@@ -2359,9 +3339,6 @@ declare const resources: {
|
|
|
2359
3339
|
firstDay: number;
|
|
2360
3340
|
format: string;
|
|
2361
3341
|
};
|
|
2362
|
-
tabs: {
|
|
2363
|
-
more: string;
|
|
2364
|
-
};
|
|
2365
3342
|
};
|
|
2366
3343
|
calendar: {
|
|
2367
3344
|
weekdaysLong: string[];
|
|
@@ -2373,5 +3350,5 @@ declare const resources: {
|
|
|
2373
3350
|
};
|
|
2374
3351
|
};
|
|
2375
3352
|
|
|
2376
|
-
export { ALink, Accordion, AddDefaultThemeStyle, AddDefaultUnit, AddZero, Alert, Arrow as ArrowIcon, BackToTop, BackTop, Base64Decode, Base64Encode, Button, Calendar, Card, CheckFileURL, Checkbox, Checkmark, ChunkArray,
|
|
2377
|
-
export type { AccordionItemProps, AccordionProps, AccordionSubMenuProps, AlertProps,
|
|
3353
|
+
export { ALERT_TOKENS, _default as ALink, Accordion, AddDefaultThemeStyle, AddDefaultUnit, AddZero, Alert, AlertDescription, AlertTitle, Arrow as ArrowIcon, BUTTON_SIZE_MAP, BackToTop, BackTop, Base64Decode, Base64Encode, Button, ButtonSizes, ButtonSizesSlug, ButtonTypes, CARD_TOKENS, CSS_VARIABLES_MAP, Calendar, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTabs, CardTitle, CheckFileURL, Checkbox, Checkmark, ChunkArray, ComponentSizes, ComponentSizesSlug, ComponentVariants, ComponentXPositions, ComponentYPositions, ConnectionStatus, ConsoleLog, ConvertCurrency, DatePicker, DetermineNewHeight, DetermineNewWidth, FileChecker, FileExtensions, FileTypes, FindSelector, Flex, Form, FormValidationTypes, FormValidations, FormatBytes, FormatDate, FormatDateTime, FormatSimpleDate, FormatSimpleDateTime, FormatTime, generateColorScaleFromBase as GenerateColorScale, GetByCurrency, GetCountryCodeByCurrencyCode, GetCountryCodeByLanguage, GetCurrencyFormat, GetCurrencySymbol, GetDecimalByCurrency, GetTypeByFileType, H1, H2, H3, H4, HoverCard, HoverCardContent, HoverCardTrigger, ICON_TOKENS, INPUT_SIZE_MAP, ITDContext, ITDProvider, ITDThemeProvider, _default$1 as Image, _default$4 as InlineSVGCached, InlineSelectArrow, Input, IsValidJSON, Label, Lock as LockIcon, MODAL_TOKENS, ModalManager, ModalState, NoData, Notification, Picture, Popover, PopoverContent, PopoverTrigger, Progress, Radio, RemoveUnits, Result, SELECT_SIZE_MAP, SPACING_TOKENS, SVGLoader, Select, Spin, Status, Switch, TYPOGRAPHY_TOKENS, Table, Tabs, TextArea, ThemeAppearances, TinyScrollbar, Tooltip, TooltipContent, TooltipPositions, TooltipTrigger, Trash, TriggerTypes, UniUpperCase, Upload, Upload$1 as UploadIcon, Wait, ZoomIn, ZoomOut, cn, darkTheme, export_default as enCalendarLocale, generateColorScaleFromBase, getContrastText, hexToRgba, injectDesignTokens, injectThemeColors, lightTheme, locales, toKebabCase, export_default$1 as trCalendarLocale, useAddExternalCSS, useAvoidCollision, useComponentSize, useConnectionStatus, useConstructor, useContextBridge, useCoreFetch, useITD, useKeyboardShortcut, useMultiQuery, useOnClickOutside, useOnESCKeyDown, useOnResize, useOrientation, useReCaptcha, useSingleQuery, withOpacity };
|
|
3354
|
+
export type { AccordionItemProps, AccordionProps, AccordionSubMenuProps, AlertProps, AlertType, ButtonProps, ButtonSize, ButtonStates, ButtonVariants, CalendarDayProps, CalendarLocale, CalendarProps, CalendarValueProps, CardProps, CheckboxEvent, CheckboxGroupProps, CheckboxProps, DatePickerProps, Direction, FieldUpdateProps, FlexAlignProps, FlexGapProps, FlexJustifyProps, FlexProps, FormContextType, FormItemProps, FormProps, FormRuleProps, FormSubComponentProps, FormValueProps, GroupCheckboxOptionType, ITDContextType, ITDHorizontalPosition, ITDImperativeFuncProps, ITDProviderProps, ITDSize, ITDSizeSlug, ITDTheme, ITDVariant, ITDVerticalPosition, InputProps, InputVariant, LabelProps, ModalContentProps, ModalProps, ModalRefProps, NotificationContextType, NotificationsProps, PopoverProps, ProgressProps, ProgressStatus, QueryValueProps, RadioButtonProps, RadioGroupProps, RadioType, ResultProps, SelectOptionProps, SelectProps, SelectToggleProps, SelectValue, SingleQueryProps, StatusProps, StatusVariant, SwitchProps, TableColumnType, TableProps, TableRefProps, TableRow, TableTRProps, TabsItemProps, TabsOrientation, TabsProps, TabsVariant, TextAreaEvent, TextAreaProps, TextAreaVariant, UploadProgressProps, UploadProps, UploadResultMessageProps };
|