@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
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import e from"styled-components";const t=e.div`
|
|
2
|
+
|
|
3
|
+
display: flex;
|
|
4
|
+
height: 40px;
|
|
5
|
+
|
|
6
|
+
`,o=e.div`
|
|
7
|
+
|
|
8
|
+
flex: auto;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: row;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
align-items: center;
|
|
13
|
+
|
|
14
|
+
div {
|
|
15
|
+
|
|
16
|
+
font-size: 14px;
|
|
17
|
+
font-weight: 600;
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
|
|
20
|
+
transition: color .15s ease-out;
|
|
21
|
+
color: #ffffff;
|
|
22
|
+
|
|
23
|
+
&:nth-child(2) {
|
|
24
|
+
margin-left: 5px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&:hover {
|
|
28
|
+
color: #3598FE;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
`,i=e.a`
|
|
33
|
+
|
|
34
|
+
span {
|
|
35
|
+
transform: rotate(135deg);
|
|
36
|
+
position: relative;
|
|
37
|
+
display: inline-block;
|
|
38
|
+
width: 7px;
|
|
39
|
+
height: 7px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
display: flex;
|
|
43
|
+
justify-content: center;
|
|
44
|
+
align-items: center;
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
flex: none;
|
|
47
|
+
min-width: 22px;
|
|
48
|
+
|
|
49
|
+
transition: color .15s ease-out;
|
|
50
|
+
color: #ffffff80;
|
|
51
|
+
|
|
52
|
+
&:hover {
|
|
53
|
+
color: #ffffff;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
span::before, span::after {
|
|
57
|
+
|
|
58
|
+
position: absolute;
|
|
59
|
+
top: 0;
|
|
60
|
+
left: 0;
|
|
61
|
+
display: inline-block;
|
|
62
|
+
width: 7px;
|
|
63
|
+
height: 7px;
|
|
64
|
+
border: 0 solid;
|
|
65
|
+
border-width: 2px 0 0 2px;
|
|
66
|
+
content: "";
|
|
67
|
+
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
`,n=e.a`
|
|
72
|
+
|
|
73
|
+
span {
|
|
74
|
+
transform: rotate(-45deg);
|
|
75
|
+
position: relative;
|
|
76
|
+
display: inline-block;
|
|
77
|
+
width: 7px;
|
|
78
|
+
height: 7px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
display: flex;
|
|
82
|
+
justify-content: center;
|
|
83
|
+
align-items: center;
|
|
84
|
+
cursor: pointer;
|
|
85
|
+
flex: none;
|
|
86
|
+
min-width: 22px;
|
|
87
|
+
|
|
88
|
+
transition: color .15s ease-out;
|
|
89
|
+
color: #ffffff80;
|
|
90
|
+
|
|
91
|
+
&:hover {
|
|
92
|
+
color: #ffffff;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
span::before, span::after {
|
|
96
|
+
|
|
97
|
+
position: absolute;
|
|
98
|
+
top: 0;
|
|
99
|
+
left: 0;
|
|
100
|
+
display: inline-block;
|
|
101
|
+
width: 7px;
|
|
102
|
+
height: 7px;
|
|
103
|
+
border: 0 solid;
|
|
104
|
+
border-width: 2px 0 0 2px;
|
|
105
|
+
content: "";
|
|
106
|
+
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
`,r=e.a`
|
|
111
|
+
|
|
112
|
+
span {
|
|
113
|
+
transform: rotate(135deg);
|
|
114
|
+
position: relative;
|
|
115
|
+
display: inline-block;
|
|
116
|
+
width: 7px;
|
|
117
|
+
height: 7px;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
display: flex;
|
|
121
|
+
justify-content: center;
|
|
122
|
+
align-items: center;
|
|
123
|
+
cursor: pointer;
|
|
124
|
+
flex: none;
|
|
125
|
+
min-width: 22px;
|
|
126
|
+
|
|
127
|
+
transition: color .15s ease-out;
|
|
128
|
+
color: #ffffff80;
|
|
129
|
+
|
|
130
|
+
&:hover {
|
|
131
|
+
color: #ffffff;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
span::before, span::after {
|
|
135
|
+
|
|
136
|
+
position: absolute;
|
|
137
|
+
top: 0;
|
|
138
|
+
left: 0;
|
|
139
|
+
display: inline-block;
|
|
140
|
+
width: 7px;
|
|
141
|
+
height: 7px;
|
|
142
|
+
border: 0 solid;
|
|
143
|
+
border-width: 2px 0 0 2px;
|
|
144
|
+
content: "";
|
|
145
|
+
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
span::after {
|
|
149
|
+
top: 4px;
|
|
150
|
+
left: 4px;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
`,f=e.a`
|
|
154
|
+
|
|
155
|
+
span {
|
|
156
|
+
transform: rotate(-45deg);
|
|
157
|
+
position: relative;
|
|
158
|
+
display: inline-block;
|
|
159
|
+
width: 7px;
|
|
160
|
+
height: 7px;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
display: flex;
|
|
164
|
+
justify-content: center;
|
|
165
|
+
align-items: center;
|
|
166
|
+
cursor: pointer;
|
|
167
|
+
flex: none;
|
|
168
|
+
min-width: 22px;
|
|
169
|
+
|
|
170
|
+
transition: color .15s ease-out;
|
|
171
|
+
color: #ffffff80;
|
|
172
|
+
|
|
173
|
+
&:hover {
|
|
174
|
+
color: #ffffff;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
span::before, span::after {
|
|
178
|
+
|
|
179
|
+
position: absolute;
|
|
180
|
+
top: 0;
|
|
181
|
+
left: 0;
|
|
182
|
+
display: inline-block;
|
|
183
|
+
width: 7px;
|
|
184
|
+
height: 7px;
|
|
185
|
+
border: 0 solid;
|
|
186
|
+
border-width: 2px 0 0 2px;
|
|
187
|
+
content: "";
|
|
188
|
+
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
span::after {
|
|
192
|
+
top: 4px;
|
|
193
|
+
left: 4px;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
`;export{o as Middle,i as NextMonth,r as NextYear,n as PrevMonth,f as PrevYear,t as Wrapper};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r,jsxs as t,Fragment as e}from"react/jsx-runtime";import{useContext as o,useState as a,useEffect as s,useMemo as i}from"react";import"../helpers/datetime/dayjsSetup.js";import n from"./dates.js";import l from"./day/Day.js";import m from"./header/Header.js";import d from"../locales/tr/calendar.json.js";import p from"../locales/en/calendar.json.js";import c from"../context/ITDContext.js";import"../helpers/theme/cssVariables.js";import"../helpers/theme/light.js";import"../helpers/theme/dark.js";import"../helpers/theme/tokens.js";import"../enums/enum.js";import"../utils/InlineSVGCached.js";import"../helpers/svg/styles.js";import"../logger/index.js";import"react-router-dom";import"axios";import"../html/header/styled.js";import"../select/index.js";import"../form/index.js";import"../checkbox/index.js";import"../accordion/index.js";import{Wrapper as j,Separator as h,WeekShortDays as y,Days as u,Months as f,Years as x}from"./styled.js";import"../datepicker/index.js";import"../input/index.js";import"../textarea/index.js";import"../switch/index.js";import"../upload/index.js";import"react-dom";import"react-transition-group";import"../button/index.js";import"../modal/modal/styled.js";import"../modal/container/styled.js";import"../modal/context/ModalContext.js";import"../notification/context/NotificationsContext.js";import"../radio/index.js";import"../image/index.js";import"../alert/index.js";import"../result/index.js";import"../alink/index.js";import"../back-top/styled.js";import"../progress/styled.js";import"../node_modules/overlayscrollbars/styles/overlayscrollbars.css.js";import"../tinyscrollbar/scroll.styled.js";import"../label/index.js";import"../card/Card.js";import"../card/CardHeader.js";import"../card/CardTitle.js";import"../card/CardDescription.js";import"../card/CardAction.js";import"../card/CardTabs.js";import"../card/CardContent.js";import"../card/CardFooter.js";import"../popover/PopoverContent.js";import"../popover/Popover.js";import"../popover/PopoverTrigger.js";import"../tooltip/Tooltip.js";import"../tooltip/TooltipTrigger.js";import"../tooltip/TooltipContent.js";import"../hovercard/HoverCard.js";import"../hovercard/HoverCardTrigger.js";import"../hovercard/HoverCardContent.js";import"../table/index.js";import"../flex/styled.js";import Y from"../_virtual/dayjs.min.js";const v=({value:v="",defaultValue:C="",className:b,onChange:g,disabledDate:M,locale:D})=>{const{language:N}=o(c),k=D||("tr"===N?d:p),[T,$]=a(0),[H,P]=a([]),[S,w]=a(null),[V,A]=a(Y()),[I,_]=a(null),[z,F]=a("days"),G=r=>Y(r,"MM/DD/YYYY"),L=()=>V.format("YYYY"),q=()=>V.format("M");s(()=>{E(),B(C)},[]),s(()=>{B(v)},[v]),s(()=>{Q()},[V]),s(()=>{E()},[N,D]);const B=r=>{if(""===r)return;let t;if("DD/MM/YYYY"===k.format){const e=r.split("/");if(3===e.length){const[r,o,a]=e;t=Y(`${a}-${o}-${r}`)}else t=Y(r)}else if("MM/DD/YYYY"===k.format){const e=r.split("/");if(3===e.length){const[r,o,a]=e;t=Y(`${a}-${r}-${o}`)}else t=Y(r)}else t=Y(r,k.format,!0);t.isValid()&&(_(t),A(t))},E=()=>{J(k)},J=r=>{w(r),P(r.weekdaysShort),$(r.firstDay)},K=r=>!!M&&M(r),O=r=>{var t=r.format(k.format);g&&g({localizated:t,global:r.format("YYYY-MM-DD")})},Q=()=>{const t=n(Number(q()),Number(L()),T);let e=[];for(let o=0;o<t.length;o++){const a=G(t[o]);let s={date:a,handleClick:O};a.isSame(G(Y().format("MM/DD/YYYY")))&&(s.today=!0),a.isSame(I)&&(s.selected=!0),a.format("M")===q()&&(s.current=!0),K(a)&&(s.disabled=!0),e.push(r(l,{...s,children:a.format("D")},o))}return e},R=()=>{let t=[];for(let e=0;e<H.length;e++)t.push(r("div",{children:r("span",{children:H[e]})},e));return t},U=r=>{if("month"===r&&"days"!==z)return;const t="year"===r&&"years"===z?10:1;A(V.clone().subtract(t,r))},W=r=>{if("month"===r&&"days"!==z)return;const t="year"===r&&"years"===z?10:1;A(V.clone().add(t,r))},X=()=>{F("months")},Z=()=>{F("years")},rr=()=>r(f,{className:"itd-calendar-months",children:(S?.months||[]).map((t,e)=>r("button",{type:"button",className:"itd-calendar-month"+(V.month()===e?" itd-calendar-month-current":""),onClick:()=>{return r=e,A(V.clone().month(r)),void F("days");var r},children:t},e))}),tr=()=>{const t=10*Math.floor(V.year()/10),e=Array.from({length:12},(r,e)=>t-1+e);return r(x,{className:"itd-calendar-years",children:e.map(e=>r("button",{type:"button",className:"itd-calendar-year"+(V.year()===e?" itd-calendar-year-current":"")+(e<t||e>t+9?" itd-calendar-year-outside":""),onClick:()=>{return r=e,A(V.clone().year(r)),void F("months");var r},children:e},e))})},er=i(()=>{let r="itd-calendar";return""!==b&&(r+=" "+b),r},[b]);return S?t(j,{className:er,children:[r(m,{month:S?.months[Number(q())-1],year:L(),onPrevYear:()=>U("year"),onPrevMonth:()=>U("month"),onNextYear:()=>W("year"),onNextMonth:()=>W("month"),onClickMonth:X,onClickYear:Z,viewMode:z,decadeLabel:(()=>{if("years"!==z)return"";const r=10*Math.floor(V.year()/10);return`${r}-${r+9}`})()}),r(h,{className:"itd-calendar-separator"}),"days"===z&&t(e,{children:[r(y,{className:"itd-calendar-weekdays",children:R()}),r(u,{className:"itd-calendar-days",children:Q()})]}),"months"===z&&rr(),"years"===z&&tr()]}):null};export{v as default};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import r from"styled-components";const e=r.div`
|
|
2
|
+
|
|
3
|
+
width: 280px;
|
|
4
|
+
border-radius: 6px;
|
|
5
|
+
background-color: #1D2649;
|
|
6
|
+
padding: 4px 14px 14px 14px;
|
|
7
|
+
|
|
8
|
+
`,i=r.div`
|
|
9
|
+
|
|
10
|
+
display: grid;
|
|
11
|
+
grid-template-columns: repeat(7, 1fr);
|
|
12
|
+
grid-gap: 4px 0;
|
|
13
|
+
|
|
14
|
+
`,d=r.div`
|
|
15
|
+
|
|
16
|
+
display: grid;
|
|
17
|
+
grid-gap: 0;
|
|
18
|
+
grid-template-columns: repeat(7, 1fr);
|
|
19
|
+
font-size: 13px;
|
|
20
|
+
line-height: 30px;
|
|
21
|
+
text-align: center;
|
|
22
|
+
|
|
23
|
+
> div {
|
|
24
|
+
|
|
25
|
+
display: flex;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
align-items: center;
|
|
28
|
+
|
|
29
|
+
span {
|
|
30
|
+
color: #ffffff;
|
|
31
|
+
font-weight: bold;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
`,t=r.div`
|
|
37
|
+
|
|
38
|
+
width: 100%;
|
|
39
|
+
height: 1px;
|
|
40
|
+
margin: 4px 0;
|
|
41
|
+
background-color: #505A7D60;
|
|
42
|
+
|
|
43
|
+
`,o=r.div`
|
|
44
|
+
|
|
45
|
+
display: grid;
|
|
46
|
+
grid-template-columns: repeat(3, 1fr);
|
|
47
|
+
grid-gap: 8px;
|
|
48
|
+
|
|
49
|
+
.itd-calendar-month {
|
|
50
|
+
background: transparent;
|
|
51
|
+
border: 0;
|
|
52
|
+
color: #ffffff;
|
|
53
|
+
height: 36px;
|
|
54
|
+
border-radius: 6px;
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
font-size: .875rem;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.itd-calendar-month-current {
|
|
60
|
+
outline: 2px solid #2F74FF;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
`,a=r.div`
|
|
64
|
+
|
|
65
|
+
display: grid;
|
|
66
|
+
grid-template-columns: repeat(4, 1fr);
|
|
67
|
+
grid-gap: 8px;
|
|
68
|
+
|
|
69
|
+
.itd-calendar-year {
|
|
70
|
+
background: transparent;
|
|
71
|
+
border: 0;
|
|
72
|
+
color: #ffffff;
|
|
73
|
+
height: 36px;
|
|
74
|
+
border-radius: 6px;
|
|
75
|
+
cursor: pointer;
|
|
76
|
+
font-size: .875rem;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.itd-calendar-year-current { outline: 2px solid #2F74FF; }
|
|
80
|
+
.itd-calendar-year-outside { color: #ffffff80; }
|
|
81
|
+
|
|
82
|
+
`;export{i as Days,o as Months,t as Separator,d as WeekShortDays,e as Wrapper,a as Years};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsxs as r,jsx as e}from"react/jsx-runtime";import{useMemo as a}from"react";import i from"../spin/index.js";import{ComponentVariants as d}from"../enums/enum.js";const t=({children:t,className:c="",variant:l=d.DEFAULT,updating:s=!1})=>{const n=a(()=>{let r="itd-card flex flex-col relative overflow-hidden";return l&&(r+=` itd-card-${l}`),c&&(r+=` ${c}`),r},[l,c]);return r("div",{className:n,children:[e("div",{className:"itd-card-body flex flex-col",children:t}),s&&e("div",{className:"itd-card-overlay",children:e(i,{updating:!0,className:"itd-card-spin"})})]})};t.displayName="Card";export{t as Card};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{cn as i}from"../utils/cn.js";const t=({children:t,className:a})=>e("div",{className:i("itd-card-action flex justify-between gap-3",a),children:t});t.displayName="CardAction";export{t as CardAction};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{cn as t}from"../utils/cn.js";const r=({children:r,className:a})=>e("div",{className:t("itd-card-content flex flex-col gap-6 px-6",a),children:r});r.displayName="CardContent";export{r as CardContent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as i}from"react/jsx-runtime";import{cn as r}from"../utils/cn.js";const s=({children:s,className:t})=>i("div",{className:r("itd-card-description text-sm",t),children:s});s.displayName="CardDescription";export{s as CardDescription};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{cn as r}from"../utils/cn.js";const t=({children:t,className:i})=>e("div",{className:r("itd-card-footer flex items-center py-4 px-6",i),children:t});t.displayName="CardFooter";export{t as CardFooter};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{Children as r,isValidElement as t,useMemo as a}from"react";import{cn as i}from"../utils/cn.js";const n=({children:n,className:s,separator:m=!1})=>{const o=r.toArray(n),p=o.some(e=>{if(t(e)){const r=e.type.displayName||e.type.name;return"CardTabs"===r||"CardAction"===r}return!1}),c=o.some(e=>{if(t(e)){return"CardDescription"===(e.type.displayName||e.type.name)}return!1}),d=m||p,l=a(()=>{let e="itd-card-header px-6";return e+=p?" flex items-center justify-between gap-8 min-h-16":c?" flex flex-col gap-1 py-4":" flex items-center min-h-16",d&&(e+=" itd-card-header-separator"),i(e,s)},[p,c,d,s]);return e("div",{className:l,children:n})};n.displayName="CardHeader";export{n as CardHeader};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as a}from"react/jsx-runtime";import s from"../tabs/index.js";const r=({className:r="",...t})=>a(s,{fill:!0,className:`itd-card-tabs ${r}`,...t});r.displayName="CardTabs";export{r as CardTabs};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{cn as i}from"../utils/cn.js";const e=({children:e,className:r})=>t("div",{className:i("itd-card-title text-base font-medium tracking-tight",r),children:e});e.displayName="CardTitle";export{e as CardTitle};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{forwardRef as e,useId as t,useState as o,useEffect as i,useImperativeHandle as s,useMemo as p,Children as d,createRef as a,cloneElement as l}from"react";import m from"../../_virtual/react.js";import"../../context/ITDContext.js";import"../../helpers/theme/cssVariables.js";import"../../helpers/theme/light.js";import"../../helpers/theme/dark.js";import"../../helpers/theme/tokens.js";import"../../enums/enum.js";import"../../utils/InlineSVGCached.js";import"../../helpers/svg/styles.js";import"../../helpers/datetime/dayjsSetup.js";import"../../logger/index.js";import"react-router-dom";import"axios";import"../../html/header/styled.js";import"../../select/index.js";import"../../form/index.js";import n from"../index.js";import"../../accordion/index.js";import"../../calendar/day/styled.js";import"../../calendar/header/styled.js";import"../../calendar/styled.js";import"../../datepicker/index.js";import"../../input/index.js";import"../../textarea/index.js";import"../../switch/index.js";import"../../upload/index.js";import"react-dom";import"react-transition-group";import"../../button/index.js";import"../../modal/modal/styled.js";import"../../modal/container/styled.js";import"../../modal/context/ModalContext.js";import"../../notification/context/NotificationsContext.js";import"../../radio/index.js";import"../../image/index.js";import"../../alert/index.js";import"../../result/index.js";import"../../alink/index.js";import"../../back-top/styled.js";import"../../progress/styled.js";import"../../node_modules/overlayscrollbars/styles/overlayscrollbars.css.js";import"../../tinyscrollbar/scroll.styled.js";import"../../label/index.js";import"../../card/Card.js";import"../../card/CardHeader.js";import"../../card/CardTitle.js";import"../../card/CardDescription.js";import"../../card/CardAction.js";import"../../card/CardTabs.js";import"../../card/CardContent.js";import"../../card/CardFooter.js";import"../../popover/PopoverContent.js";import"../../popover/Popover.js";import"../../popover/PopoverTrigger.js";import"../../tooltip/Tooltip.js";import"../../tooltip/TooltipTrigger.js";import"../../tooltip/TooltipContent.js";import"../../hovercard/HoverCard.js";import"../../hovercard/HoverCardTrigger.js";import"../../hovercard/HoverCardContent.js";import"../../table/index.js";import"../../flex/styled.js";import c from"../../node_modules/lodash-es/isObject.js";const j=e(({id:e="",className:j="",disabled:h,variant:u,value:x,defaultValue:v,children:C,onChange:f,onUpdate:g},b)=>{const y=t(),[k,T]=o([]),[V,A]=o([]),[H,N]=o(""),[D,I]=o(e);i(()=>{""===e&&I("itd-checkbox-group-"+y)},[]),i(()=>{T(P)},[C]),i(()=>{v&&A(v)},[]),i(()=>{x&&(m(V,x)||A(x))},[x]),i(()=>{let r=[];V.forEach(e=>{r.push(e)}),f&&f(r),E(r)},[V]);const O=()=>{if(C)return _(C)};let P=[];const _=r=>d.map(r,r=>{if(!c(r))return r;let e;if(r.type===n){let t={ref:a(),onChange:r=>{(r=>{let e=V;if(r.value){if(r.checked)e=[...V,r.value];else{const t=V.indexOf(r.value);if(t>-1){let r=[...V];r.splice(t,1),e=r}}A(e)}})(r)},children:_(r.props.children)};V.indexOf(r.props.value)>-1&&!r.props.disabled&&(t.checked=!0),void 0!==h&&(t.disabled=h),void 0!==u&&void 0===r.props.variant&&(t.variant=u),e=l(r,t),P.push(r.props.value)}else e=l(r,{children:_(r.props.children)});return e});s(b,()=>({reset(r=!0,e=!0){this.selectAll(!1),A([]),N(""),E([],r,e)},setValue(r=[],e=!0,t=!0){A(r),E(r,e,t)},getValue:()=>V,setError(r=""){N(r)},clear(){A([]),this.selectAll(!1)},selectAll(r){A(r?k:[]),E(r?k:[]),f&&f(r?k:[])}}));const E=(r,e=!0,t=!0)=>{g&&g(r,e,t)},G=p(()=>{let r="itd-checkbox-group";return""!==H&&(r+=" itd-checkbox-group-error"),h&&(r+=" itd-checkbox-group-disabled"),""!==j&&(r+=" "+j),r},[H,h,j]);return r("div",{id:D,className:G,children:O()})});j.displayName="ITD-CheckboxGroup";export{j as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsxs as e,jsx as t}from"react/jsx-runtime";import{forwardRef as r,useRef as a,useId as c,useState as i,useEffect as n,useImperativeHandle as o,useMemo as d}from"react";import l from"./group/index.js";import{ErrorTooltip as s}from"../utils/CommonStyledComponents.js";import{getErrorAriaProps as u,ErrorAnnouncement as m,getErrorId as h}from"../utils/ErrorAnnouncement.js";import{ComponentVariants as p,TooltipPositions as b}from"../enums/enum.js";const k=r(({id:r="",checked:l=!1,indeterminate:k=!1,disabled:x=!1,readOnly:f=!1,variant:v=p.DEFAULT,animated:g=!1,className:N="",value:y,children:D,onChange:j,onUpdate:C},E)=>{const A=a(null),T=c(),[F,L]=i(!1),[P,U]=i(g),[I,M]=i(!1),[O,S]=i(!1),[V,w]=i(""),[G,X]=i(!1),[_,q]=i(r);n(()=>{""===r&&q("itd-checkbox-"+T)},[]),n(()=>{null!=l&&(L(l),B(l))},[l]),n(()=>{U(g)},[g]),n(()=>{null!=k&&(M(k),A.current&&(A.current.indeterminate=!!k,A.current.setAttribute("aria-checked",k?"mixed":F?"true":"false")))},[k]),n(()=>{A.current&&(A.current.indeterminate=!!I,A.current.setAttribute("aria-checked",I?"mixed":F?"true":"false"))},[I,F]),o(E,()=>({reset(e=!0,t=!0){const r=l||!1;L(r),w(""),B(r,e,t)},setValue(e=!1,t=!0,r=!0){L(e),B(e,t,r)},getValue:()=>F,setError(e=""){w(e)},setDisabled(e=!0){S(e)},forceUpdate(){B(F)},clear(){L(!1)}}));const z=e=>{f||x?e.preventDefault():(F||w(""),j&&j({checked:!F,value:y,className:"itd-checkbox",disabled:x||O,target:A,stopPropagation:e.stopPropagation,preventDefault:e.preventDefault}),U(!0),M(!1),L(!F),B(!F))},B=(e,t=!0,r=!0)=>{C&&C(e,t,r)},H=()=>{if(""!==V&&!x)return t(s,{className:"itd-checkbox-error-tooltip",position:b.TOP_LEFT,offsetX:-4,"aria-hidden":"true",children:V})},J=d(()=>{let e="itd-checkbox";return e+=" itd-checkbox-"+v,F&&(e+=" itd-checkbox-selected"),G&&(e+=" itd-checkbox-active"),""!==V&&(e+=" itd-checkbox-error"),(x||O)&&(e+=" itd-checkbox-disabled"),f&&(e+=" itd-checkbox-readonly"),""!==N&&(e+=" "+N),e},[v,F,G,V,x,O,f,N]),K=()=>!x&&("boolean"==typeof F?F:"true"===F);return e("div",{className:J,children:[e("div",{className:"itd-checkbox-inner-wrapper",onMouseEnter:()=>X(!0),onMouseLeave:()=>X(!1),children:[t("span",{className:"itd-checkbox-checkmark",...F?{"data-checked":""}:{},...P?{"data-animated":""}:{},...I?{"data-indeterminate":""}:{},children:t("input",{className:"itd-checkbox-input",id:_,ref:A,type:"checkbox",disabled:x||O,checked:K(),value:K().toString(),onChange:z,tabIndex:x||O?-1:0,"data-readonly":f?"true":"false","aria-checked":I?"mixed":K()?"true":"false",...u(_,""!==V)})}),t("label",{className:"itd-checkbox-label",htmlFor:_,children:D})]}),""===V||x?null:t(m,{id:h(_),message:V}),H()]})});k.Group=l,k.displayName="ITD-Checkbox";export{l as CheckboxGroup,k as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{createContext as t,useState as a,useEffect as r,useCallback as n,useMemo as o,useRef as m,useContext as d}from"react";import{ModalProvider as i}from"../modal/index.js";import{NotificationProvider as c}from"../notification/index.js";import h from"./ITDThemeProvider.js";import{Wrapper as s}from"./styled.js";const l=e=>"tr"===e?"DD/MM/YYYY":"en"===e?"MM/DD/YYYY":"DD/MM/YYYY",g=t({});g.displayName="ITDContext";const u=t=>{const d=t.theme||("undefined"==typeof window?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),[u,f]=a(d),[p,Y]=a(t.dateFormat||l(t.language)),[w,D]=a(t.language?t.language:"en"),[k,v]=a("en-US"),[y,F]=a("");r(()=>{t.theme&&f(t.theme),t.language&&D(t.language),t.dateFormat&&Y(t.dateFormat)},[t.theme,t.language,t.dateFormat]),r(()=>{if(t.theme||"undefined"==typeof window)return;const e=window.matchMedia("(prefers-color-scheme: dark)"),a=e=>{f(e.matches?"dark":"light")};return e.addEventListener("change",a),()=>e.removeEventListener("change",a)},[t.theme]);const M=n(e=>{console.log("changeTheme",e),f(e)},[]);r(()=>{"undefined"!=typeof document&&(document.body.setAttribute("data-theme",u),document.documentElement.setAttribute("data-theme",u))},[u]);const T=n(e=>{F(e)},[]),I=n(e=>{Y(e)},[]),b=n(e=>{v(e)},[]),j=n(e=>{D(e),t.dateFormat||Y(l(e))},[t.dateFormat]),x=o(()=>({theme:u,brokenImage:y,dateFormat:p,language:w,locale:k,changeTheme:M,changeBrokenImage:T,changeDateFormat:I,changeLanguage:j,changeLocale:b}),[u,y,p,w,k,M,T,I,j,b]),B=m(null);return e(s,{ref:B,className:"itd-provider","data-theme":u,"data-lang":w,children:e(h,{themeName:"dark"===u?"dark":"light",surfaceBase:t.surfaceBase,primaryBase:t.primaryBase,containerRef:B,children:e(g.Provider,{value:x,children:e(c,{children:e(i,{children:t.children})})})})})},f=()=>{const e=d(g);if(!e)throw new Error("useITD must be used within ITDProvider");return e};export{u as ITDProvider,g as default,f as useITD};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,Fragment as r}from"react/jsx-runtime";import{useMemo as t,useEffect as m}from"react";import{createTheme as a}from"../helpers/theme/createTheme.js";import{injectThemeVars as o}from"../helpers/theme/cssVariables.js";import s from"../helpers/theme/light.js";import h from"../helpers/theme/dark.js";function c({themeName:c="light",surfaceBase:i,primaryBase:l,customTheme:p,containerRef:f,children:n}){const u=t(()=>{if(i||l){return a(c,{surfaceBase:i||("dark"===c?"oklch(0.44 0.04 260)":"oklch(0.44 0 0)"),primaryBase:l||("dark"===c?"oklch(0.80 0.16 90)":"oklch(0.62 0.18 250)")})}return"dark"===c?h:s},[c,i,l]),k=t(()=>({...u,...p}),[u,p]);return m(()=>{o(k,f?.current)},[k,f]),e(r,{children:n})}export{c as default};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import e from"styled-components";const o=e.div`
|
|
2
|
+
|
|
3
|
+
/* Theme-aware selection colors */
|
|
4
|
+
::selection {
|
|
5
|
+
background: var(--itd-selection);
|
|
6
|
+
color: var(--itd-selection-foreground);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/* Tüm child elementler için de geçerli */
|
|
10
|
+
* ::selection {
|
|
11
|
+
background: var(--itd-selection);
|
|
12
|
+
color: var(--itd-selection-foreground);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
`;export{o as Wrapper};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsxs as e,jsx as t}from"react/jsx-runtime";import{forwardRef as o,useRef as r,useId as i,useContext as a,useMemo as l,useState as s,useEffect as d,useImperativeHandle as c}from"react";import{CSSTransition as n}from"react-transition-group";import"../helpers/datetime/dayjsSetup.js";import m from"../utils/GetSizeSlugBySize.js";import p from"../locales/tr/calendar.json.js";import u from"../locales/en/calendar.json.js";import j from"../context/ITDContext.js";import"../helpers/theme/cssVariables.js";import"../helpers/theme/light.js";import"../helpers/theme/dark.js";import"../helpers/theme/tokens.js";import{ComponentSizes as f,ComponentXPositions as g}from"../enums/enum.js";import"../utils/InlineSVGCached.js";import"../helpers/svg/styles.js";import"../logger/index.js";import"react-router-dom";import"axios";import"../html/header/styled.js";import"../select/index.js";import"../form/index.js";import"../checkbox/index.js";import"../accordion/index.js";import v from"../calendar/index.js";import x from"../input/index.js";import"../textarea/index.js";import"../switch/index.js";import"../upload/index.js";import"react-dom";import"../button/index.js";import"../modal/modal/styled.js";import"../modal/container/styled.js";import"../modal/context/ModalContext.js";import"../notification/context/NotificationsContext.js";import"../radio/index.js";import"../image/index.js";import"../alert/index.js";import"../result/index.js";import"../alink/index.js";import"../back-top/styled.js";import"../progress/styled.js";import"../node_modules/overlayscrollbars/styles/overlayscrollbars.css.js";import"../tinyscrollbar/scroll.styled.js";import"../label/index.js";import"../card/Card.js";import"../card/CardHeader.js";import"../card/CardTitle.js";import"../card/CardDescription.js";import"../card/CardAction.js";import"../card/CardTabs.js";import"../card/CardContent.js";import"../card/CardFooter.js";import"../popover/PopoverContent.js";import"../popover/Popover.js";import"../popover/PopoverTrigger.js";import"../tooltip/Tooltip.js";import"../tooltip/TooltipTrigger.js";import"../tooltip/TooltipContent.js";import"../hovercard/HoverCard.js";import"../hovercard/HoverCardTrigger.js";import"../hovercard/HoverCardContent.js";import"../table/index.js";import"../flex/styled.js";import h from"../_virtual/dayjs.min.js";import b from"../node_modules/lucide-react/dist/esm/icons/calendar-1.js";import k from"../node_modules/lucide-react/dist/esm/icons/circle-x.js";const z=o(({id:o="",placeholder:z="",mask:C="##/##/####",size:y=f.DEFAULT,variant:D="default",disabled:T=!1,locked:Y=!1,position:E=g.LEFT,className:M="",value:N="",defaultValue:_="",suffix:F,onUpdate:V,onChange:$,disabledDate:L,calendarLocale:S},H)=>{const P=r(null),w=i(),{locale:A,language:B}=a(j),G=r(null),I=r(null),O=l(()=>S||("tr"===B?p:u),[S,B]),R=l(()=>O.format,[O]),[U,K]=s(""),[W,q]=s(""),[J,Q]=s(!1),[X,Z]=s(o),[ee,te]=s({localizated:"",global:""}),[oe,re]=s(!1);d(()=>(""===o&&Z("itd-datepicker-"+w),""!==_&&(K(h(_).locale(A).format(R)),te({localizated:h(_).locale(A).format(R),global:_})),()=>{ae(!1)}),[]),d(()=>{""!==N&&(K(h(N).locale(A).format(R)),te({localizated:h(N).locale(A).format(R),global:N}))},[N]),d(()=>{ae(J)},[J]),d(()=>{I.current&&I.current.setError?.(W)},[W]),d(()=>{""!==U&&(te({localizated:h(ee.global).locale(A).format(R),global:ee.global}),K(h(ee.global).locale(A).format(R)))},[A,B,R]);const ie=(e,t=!0,o=!0,r=!1)=>{if(!r&&(""===e.localizated||e.localizated===U))return;const i=ue(e.localizated),a=i?e.global:"";K(i?e.localizated:""),V&&V(a,t,o)};c(H,()=>({reset(e=!0,t=!0){q(""),te({localizated:"",global:""}),ie("",e,t,!0)},setValue(e,t=!0,o=!0){if(ee.global===e)return;const r={localizated:h(e).locale(A).format(R),global:e};te(r),ie(r,t,o)},getValue:()=>""!==ee.localizated?ee.global:"",setError(e){q(e)},clear(){}}));const ae=e=>{document[e?"addEventListener":"removeEventListener"]("pointerdown",le)},le=e=>{J&&G.current&&!G.current.contains(e.target)&&Q(!1)},se=e=>{const t=e.key;if(!/^[0-9]$/.test(t))return"Enter"===t||" "===t?(T||Y||Q(!0),void e.preventDefault()):void("Escape"!==t&&"Esc"!==t&&"Tab"!==t||Q(!1));T||Y||Q(!0)},de=()=>{},ce=()=>{Y||(I.current&&I.current.setFocus&&I.current.setFocus(),Q(!0))},ne=()=>{const e=C?.replace(/[^/(.*?)]/g,"_"),t=U;if(""===t)return void(""!==ee.localizated&&K(ee.localizated));(t.includes("_")||t===e||!ue(t))&&(""!==ee.localizated?K(ee.localizated):K(""))},me=e=>{Q(!1),te(e),ie(e,!0),$&&$(e)},pe=e=>{if(!e||""===e)return h().startOf("day");if("DD/MM/YYYY"===R){const t=e.split("/");if(3===t.length){const[e,o,r]=t;return h(`${r}-${o}-${e}`)}}else if("MM/DD/YYYY"===R){const t=e.split("/");if(3===t.length){const[e,o,r]=t;return h(`${r}-${e}-${o}`)}}return h(e,R,!0)},ue=e=>{if(!e||e.includes("_"))return!1;let t=pe(e).isValid(),o=!1;return L&&(o=L(pe(e))),t&&!o},je=l(()=>{let e="itd-date-picker";return e+=" itd-date-picker-"+m(y),e+=" itd-date-picker-"+D,T&&(e+=" itd-date-picker-disabled"),Y&&(e+=" itd-date-picker-locked"),W&&(e+=" itd-date-picker-error"),J&&(e+=" itd-date-picker-open"),""!==M&&(e+=" "+M),e},[T,Y,W,J,M]);return e("div",{className:je,...T?{"data-disabled":""}:{},ref:G,onClick:T||Y?void 0:ce,children:[t("div",{onMouseEnter:()=>{re(!0)},onMouseLeave:()=>re(!1),children:t(x,{id:X,placeholder:z,value:U,mask:C,size:y,variant:D,autoComplete:"off",onChange:e=>(e=>{const t=ue(e),o=C?.replace(/[^/(.*?)]/g,"_"),r={localizated:e,global:pe(e).format("YYYY-MM-DD")};q(""),t?(ie(r),te(r)):K(""===e||e===o?"":e)})(String(e)),onFocus:de,onKeyDown:se,onBlur:ne,keepFocus:J,focusRef:G,ref:I,disabled:T,locked:Y,suffix:Y?null:t("div",{className:"itd-datepicker-suffix",children:oe&&""!==ee.localizated&&!T?t("div",{className:"itd-datepicker-remove-button",onClick:e=>{oe&&""!==ee.localizated&&(e.preventDefault(),e.stopPropagation(),te({localizated:"",global:""}),K(""),Q(!1),$&&$({localizated:"",global:""}),V&&V("",!0,!0))},children:t(k,{size:16,className:"itd-datepicker-remove-icon clear"})}):F||t("span",{className:"itd-datepicker-icon",style:{opacity:1},children:t(b,{size:16,strokeWidth:2})})})})}),t(n,{in:J,timeout:200,classNames:"datepicker-modal",nodeRef:P,unmountOnExit:!0,children:t("div",{className:"itd-datepicker-calendar","data-position":E,ref:P,children:t(v,{value:ee.localizated,defaultValue:ee.localizated,onChange:me,disabledDate:L,locale:O})})})]})});export{z as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var n,o,t,E,e,i,L,l,m,a,T,c,I,d,f,A,M;!function(n){n.NOT_SHOW="modal-not-show",n.BEGIN="modal-begin",n.ENTERING="modal-entering",n.ENTERED="modal-entered",n.EXITING="modal-exiting",n.EXITED="modal-exited",n.REMOVED="modal-removed",n.OK_CLICK="modal-ok-button-click",n.CANCEL_CLICK="modal-cancel-button-click",n.CLOSE_CLICK="modal-close-button-click",n.OUTSIDE_CLICK="modal-outside-click",n.ESC_CLICK="modal-esc-click",n.ALL_REMOVED="modal-all-removed"}(n||(n={})),function(n){n.SVG="image/svg+xml",n.PNG="image/png",n.JPG="image/jpg",n.JPEG="image/jpeg",n.GIF="image/gif",n.PDF="application/pdf",n.OTF="font/otf"}(o||(o={})),function(n){n.SVG=".svg",n.PNG=".png",n.JPG=".jpg",n.GIF=".gif",n.PDF=".pdf",n.OTF=".otf"}(t||(t={})),function(n){n.REQUIRED="required",n.TYPE="type"}(E||(E={})),function(n){n.MIN_LENGTH="minLength",n.MAX_LENGTH="maxLength",n.EXACT_LENGTH="exactLength",n.SAME="same",n.NOT_SAME="notSame",n.TC_IDENTITY="TCIdentity",n.PASSWORD="password",n.EMAIL="email",n.USERNAME="username",n.SITE_USERNAME="siteUsername",n.ADMIN_USERNAME="adminUsername",n.URL="url",n.FORBIDDEN_WORDS="forbiddenWords"}(e||(e={})),function(n){n.ONLINE="online",n.OFFLINE="offline"}(i||(i={})),function(n){n.X_SMALL="x-small",n.SMALL="small",n.MEDIUM="medium",n.DEFAULT="default",n.LARGE="large",n.X_LARGE="x-large"}(L||(L={})),function(n){n.X_SMALL="xs",n.SMALL="sm",n.MEDIUM="md",n.DEFAULT="df",n.LARGE="lg",n.X_LARGE="xlg"}(l||(l={})),function(n){n.X_SMALL="x-small",n.SMALL="small",n.MEDIUM="medium",n.DEFAULT="default",n.LARGE="large",n.X_LARGE="x-large",n.ICON="icon",n.ICON_SM="icon-sm",n.ICON_LG="icon-lg"}(m||(m={})),function(n){n.X_SMALL="xs",n.SMALL="sm",n.MEDIUM="md",n.DEFAULT="df",n.LARGE="lg",n.X_LARGE="xlg",n.ICON="icon",n.ICON_SM="icon-sm",n.ICON_LG="icon-lg"}(a||(a={})),function(n){n.LEFT="left",n.RIGHT="right"}(T||(T={})),function(n){n.TOP="top",n.BOTTOM="bottom"}(c||(c={})),function(n){n.DEFAULT="default",n.FILLED="filled",n.CUSTOM="custom"}(I||(I={})),function(n){n.BUTTON="button",n.SUBMIT="submit",n.RESET="reset"}(d||(d={})),function(n){n.TOP_LEFT="top-left",n.TOP_RIGHT="top-right",n.BOTTOM_LEFT="bottom-left",n.BOTTOM_RIGHT="bottom-right"}(f||(f={})),function(n){n.HOVER="hover",n.CLICK="click",n.FOCUS="focus",n.MANUAL="manual"}(A||(A={})),function(n){n.LIGHT="light",n.DARK="dark"}(M||(M={}));export{m as ButtonSizes,a as ButtonSizesSlug,d as ButtonTypes,L as ComponentSizes,l as ComponentSizesSlug,I as ComponentVariants,T as ComponentXPositions,c as ComponentYPositions,i as ConnectionStatus,t as FileExtensions,o as FileTypes,e as FormValidationTypes,E as FormValidations,n as ModalState,M as ThemeAppearances,f as TooltipPositions,A as TriggerTypes};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{Wrapper as a}from"./styled.js";const e=({gap:e,justify:r,align:s,vertical:l,wrap:i,stretch:c,style:m,className:p,children:n})=>t(a,{$gap:e,$justify:r,$align:s,$vertical:l,$wrap:i,$stretch:c,style:m,className:p,children:n});export{e as default};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import t,{css as e}from"styled-components";const i=t.div`
|
|
2
|
+
|
|
3
|
+
display : flex;
|
|
4
|
+
|
|
5
|
+
${t=>{if(t.$stretch&&!0===t.$stretch)return t.$vertical&&!0===t.$vertical?e`
|
|
6
|
+
height : 100%;
|
|
7
|
+
`:e`
|
|
8
|
+
width : 100%;
|
|
9
|
+
`}}
|
|
10
|
+
|
|
11
|
+
${t=>{if(t.$wrap)return!0===t.$wrap&&e`
|
|
12
|
+
flex-wrap : wrap;
|
|
13
|
+
`}}
|
|
14
|
+
|
|
15
|
+
${t=>t.$vertical?!0===t.$vertical&&e`
|
|
16
|
+
flex-direction : column;
|
|
17
|
+
`:e`
|
|
18
|
+
flex-direction : row;
|
|
19
|
+
`}
|
|
20
|
+
|
|
21
|
+
${t=>{if(t.$justify)return e`
|
|
22
|
+
justify-content : ${t.$justify};
|
|
23
|
+
`}}
|
|
24
|
+
|
|
25
|
+
${t=>t.$align?e`
|
|
26
|
+
align-items : ${t.$align};
|
|
27
|
+
`:e`
|
|
28
|
+
align-items : center;
|
|
29
|
+
`}
|
|
30
|
+
|
|
31
|
+
${t=>{if(t.$gap){let i=0,$="";return"small"===t.$gap?i=10:"medium"===t.$gap?i=16:"large"===t.$gap?i=24:"string"==typeof t.$gap?$=t.$gap:i=t.$gap,""===$&&($=i+"px"),e`
|
|
32
|
+
gap : ${$};
|
|
33
|
+
`}}}
|
|
34
|
+
|
|
35
|
+
`;export{i as Wrapper};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import o from"styled-components";import{useRef as t,useEffect as e}from"react";import{ComponentYPositions as a,ComponentXPositions as p}from"../enums/enum.js";const i=o.div`
|
|
2
|
+
position: absolute;
|
|
3
|
+
|
|
4
|
+
/* Top placement - arrow below */
|
|
5
|
+
&[data-placement="${a.TOP}"] {
|
|
6
|
+
top: 100%;
|
|
7
|
+
width: 10px;
|
|
8
|
+
height: 5px;
|
|
9
|
+
|
|
10
|
+
/* Outer layer for border - only if data-border-color is set */
|
|
11
|
+
&[data-border-color] {
|
|
12
|
+
border-left: 5px solid transparent;
|
|
13
|
+
border-right: 5px solid transparent;
|
|
14
|
+
border-top: 5px solid var(--border-color);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* ::after for inner fill - only if borderColor is set */
|
|
18
|
+
&[data-border-color]::after {
|
|
19
|
+
content: '';
|
|
20
|
+
position: absolute;
|
|
21
|
+
width: 0;
|
|
22
|
+
height: 0;
|
|
23
|
+
top: -6.5px;
|
|
24
|
+
left: calc(50% - 5px); /* Center: arrow width (10px) / 2 = 5px, minus half of triangle width (5px) */
|
|
25
|
+
border-left: 5px solid transparent;
|
|
26
|
+
border-right: 5px solid transparent;
|
|
27
|
+
border-top: 5px solid var(--arrow-color);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* Bottom placement - arrow above */
|
|
32
|
+
&[data-placement="${a.BOTTOM}"] {
|
|
33
|
+
bottom: 100%;
|
|
34
|
+
width: 10px;
|
|
35
|
+
height: 5px;
|
|
36
|
+
|
|
37
|
+
&[data-border-color] {
|
|
38
|
+
border-left: 5px solid transparent;
|
|
39
|
+
border-right: 5px solid transparent;
|
|
40
|
+
border-bottom: 5px solid var(--border-color);
|
|
41
|
+
filter: drop-shadow(0px -1px 1px rgba(0, 0, 0, 0.03));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&[data-border-color]::after {
|
|
45
|
+
content: '';
|
|
46
|
+
position: absolute;
|
|
47
|
+
width: 0;
|
|
48
|
+
height: 0;
|
|
49
|
+
bottom: -6.5px;
|
|
50
|
+
left: calc(50% - 5px); /* Center: arrow width (10px) / 2 = 5px, minus half of triangle width (5px) */
|
|
51
|
+
border-left: 5px solid transparent;
|
|
52
|
+
border-right: 5px solid transparent;
|
|
53
|
+
border-bottom: 5px solid var(--arrow-color);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* Left placement - arrow right */
|
|
58
|
+
&[data-placement="${p.LEFT}"] {
|
|
59
|
+
left: 100%;
|
|
60
|
+
width: 5px;
|
|
61
|
+
height: 10px;
|
|
62
|
+
|
|
63
|
+
&[data-border-color] {
|
|
64
|
+
border-top: 5px solid transparent;
|
|
65
|
+
border-bottom: 5px solid transparent;
|
|
66
|
+
border-left: 5px solid var(--border-color);
|
|
67
|
+
filter: drop-shadow(1px 0px 1px rgba(0, 0, 0, 0.03));
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&[data-border-color]::after {
|
|
71
|
+
content: '';
|
|
72
|
+
position: absolute;
|
|
73
|
+
width: 0;
|
|
74
|
+
height: 0;
|
|
75
|
+
left: -6.5px;
|
|
76
|
+
top: calc(50% - 5px); /* Center: arrow height (10px) / 2 = 5px, minus half of triangle height (5px) */
|
|
77
|
+
border-top: 5px solid transparent;
|
|
78
|
+
border-bottom: 5px solid transparent;
|
|
79
|
+
border-left: 5px solid var(--arrow-color);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* Right placement - ok solda */
|
|
84
|
+
&[data-placement="${p.RIGHT}"] {
|
|
85
|
+
right: 100%;
|
|
86
|
+
width: 5px;
|
|
87
|
+
height: 10px;
|
|
88
|
+
|
|
89
|
+
&[data-border-color] {
|
|
90
|
+
border-top: 5px solid transparent;
|
|
91
|
+
border-bottom: 5px solid transparent;
|
|
92
|
+
border-right: 5px solid var(--border-color);
|
|
93
|
+
filter: drop-shadow(-1px 0px 1px rgba(0, 0, 0, 0.03));
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&[data-border-color]::after {
|
|
97
|
+
content: '';
|
|
98
|
+
position: absolute;
|
|
99
|
+
width: 0;
|
|
100
|
+
height: 0;
|
|
101
|
+
right: -6.5px;
|
|
102
|
+
top: calc(50% - 5px); /* Center: arrow height (10px) / 2 = 5px, minus half of triangle height (5px) */
|
|
103
|
+
border-top: 5px solid transparent;
|
|
104
|
+
border-bottom: 5px solid transparent;
|
|
105
|
+
border-right: 5px solid var(--arrow-color);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
`,n=({placement:o,color:n,borderColor:d})=>{const l=t(null);return e(()=>{const r=l.current;if(!r)return;const t=r.parentElement;if(!t)return;const e=()=>{const i=t.offsetWidth,n=t.offsetHeight;if(!i||!n)return void requestAnimationFrame(e);const d=r.offsetWidth||10,l=r.offsetHeight||10;if(o===a.TOP||o===a.BOTTOM){const o=i/2,t=Math.round(o-d/2);r.style.left=`${t}px`,r.style.right="auto",r.style.transform="none"}else if(o===p.LEFT||o===p.RIGHT){const o=n/2,t=Math.round(o-l/2);r.style.top=`${t}px`,r.style.bottom="auto",r.style.transform="none"}},i=new ResizeObserver(()=>{requestAnimationFrame(e)});i.observe(t);const n=setTimeout(()=>{requestAnimationFrame(e)},0);return()=>{clearTimeout(n),i.disconnect()}},[o]),r(i,{ref:l,"data-placement":o,"data-border-color":d,style:{"--arrow-color":n||"var(--itd-popover)","--border-color":d}})};export{n as Arrow,n as default};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import{jsx as t,jsxs as o}from"react/jsx-runtime";import{useRef as e}from"react";import{createPortal as r}from"react-dom";import{CSSTransition as a}from"react-transition-group";import n from"styled-components";import{ComponentYPositions as i,ComponentXPositions as s}from"../enums/enum.js";import{useFocusTrap as c}from"../hooks/useFocusTrap.js";import{Arrow as m}from"./Arrow.js";const l=n.div`
|
|
2
|
+
|
|
3
|
+
/* Transform origin - the point where the arrow is */
|
|
4
|
+
&[data-placement="${i.TOP}"] {
|
|
5
|
+
transform-origin: 50% calc(100% + 32px);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&[data-placement="${i.BOTTOM}"] {
|
|
9
|
+
transform-origin: 50% -32px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&[data-placement="${s.LEFT}"] {
|
|
13
|
+
transform-origin: calc(100% + 32px) 50%;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&[data-placement="${s.RIGHT}"] {
|
|
17
|
+
transform-origin: -32px 50%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* Animation */
|
|
21
|
+
&.itd-floating-transition-enter {
|
|
22
|
+
opacity: 0;
|
|
23
|
+
transform: scale(0.75);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.itd-floating-transition-enter-active {
|
|
27
|
+
opacity: 1;
|
|
28
|
+
transform: scale(1);
|
|
29
|
+
transition: opacity 150ms ease-out, transform 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&.itd-floating-transition-exit-active {
|
|
33
|
+
opacity: 0;
|
|
34
|
+
transform: scale(0.75);
|
|
35
|
+
transition: opacity 150ms ease-in, transform 150ms cubic-bezier(0.7, 0, 0.84, 0);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
`,p=({children:n,position:i,isOpen:s,showArrow:p=!0,maxWidth:u,className:d="",onMouseEnter:f,onMouseLeave:y,timeout:b=150,transitionClassNames:x="itd-floating-transition",arrowColor:g,arrowBorderColor:h,trapFocus:F=!1,returnFocusRef:v,id:w,role:T,"aria-modal":$,"aria-labelledby":O,"aria-describedby":C,ref:M})=>{const N=e(null);if(c({isActive:s&&F,containerRef:N,returnFocusRef:v,autoFocus:F,trapFocusOutside:!1,restoreFocus:!0}),"undefined"==typeof document)return null;const R=t(a,{in:s,timeout:b,classNames:x,nodeRef:N,unmountOnExit:!0,children:o(l,{ref:t=>{N.current=t,M&&("function"==typeof M?M(t):M.current=t)},id:w,role:T,"aria-modal":$,"aria-labelledby":O,"aria-describedby":C,className:"itd-floating-content z-9999 fixed pointer-events-auto".concat(" "+d),"data-placement":i.actualPlacement,onMouseEnter:f,onMouseLeave:y,style:{top:`${i.top}px`,left:`${i.left}px`,maxWidth:"number"==typeof u?`${u}px`:u},children:[n,p&&t(m,{placement:i.actualPlacement,color:g,borderColor:h})]})});return r(R,document.body)};p.displayName="FloatingContent";export{p as FloatingContent,p as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createContext as t}from"react";const o=t({});o.displayName="ITDFormContext";export{o as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=new Map,t=new Set;function r(){t.forEach(e=>e())}const d={register(t,d){e.set(t,d),r()},unregister(t){e.delete(t),r()},getDisabled(t){if(t)return e.get(t)?.disabled},getLocked(t){if(t)return e.get(t)?.locked},subscribe:e=>(t.add(e),()=>{t.delete(e)})};export{d as FormRegistry};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useState as e,useEffect as r,useCallback as t}from"react";import n from"../../_virtual/react.js";import{useTranslation as o}from"react-i18next";function i({name:i="",useQueryString:l=!1,onUpdate:s,onReset:c,onFieldUpdate:a,variant:u,disabled:f=!1,locked:d=!1}){const{i18n:h}=o(),[m,E]=e({}),[y,g]=e(i),[F,v]=e(!1),[w,V]=e({});function I(e){return m.hasOwnProperty(e)&&void 0!==m[e]}r(()=>{const e=()=>{Object.keys(m).forEach(e=>{const r=m[e];if(r.error&&""!==r.error){const e=r.field.current?.getValue();void 0!==e&&r.field.current?.forceUpdate?.()}})};return h.on("languageChanged",e),()=>{h.off("languageChanged",e)}},[m,h]);function p(e){return I(e)?m[e].field.current:null}function T(){let e={};return Object.keys(m).forEach(r=>{e[r]=b(r)}),e}function $(e,r,t=!0){if(I(e)&&m[e].field.current){if(m[e].valid=!1,m[e].error=r,!m[e].field.current?.hasOwnProperty("setError"))throw new Error(`ITD Reference Error: You must declare the 'setError' function on the field "${e}"`);m[e].field.current?.setError?.(t?r:"")}}function O(){let e=!0;return Object.keys(m).forEach(r=>{m[r].valid||(e=!1)}),v(e),e}function b(e){if(I(e)){if(m[e].field.current?.hasOwnProperty("getValue"))return m[e].field.current?.getValue();throw new Error(`ITD Reference Error: You must declare the 'getValue' function on the field "${e}"`)}console.error(`ITD Form Error [getFieldValueByName]: There is no field registered with this name: ${e}`)}function k(e,r,t,o){if(I(e)){if(!m[e].field.current?.hasOwnProperty("setValue"))throw new Error(`ITD Reference Error: You must declare the 'setValue' function on the field "${e}"`);{let i=b(e),l=!1;l=Array.isArray(i)&&Array.isArray(r)?n(i,r):Array.isArray(i)||Array.isArray(r)?i.toString()===r.toString():i===r,l||m[e].field.current?.setValue(r,t,o)}}else console.error(`ITD Form Error [setFieldValueByName]: There is no field registered with this name: ${e}`)}return{register:function(e){m[e.name]={name:e.name,field:e.field,value:e.field.current?.getValue(),valid:e.valid,query:e.query,reset:e.reset,error:e.error}},unregister:function(e){I(e)?(delete m[e],O()):console.error(`ITD Form Error [unregister]: There is no field registered with this name: ${e}`)},scrollTo:function(e,r){const t=void 0!==r?r:{behavior:"smooth",block:"center",inline:"nearest"},n=e=>!(!e||"function"!=typeof e.scrollIntoView)&&(e.scrollIntoView(t),!0);if(I(e)){const r=p(e);if(r&&"function"==typeof r.scrollIntoView)return r.scrollIntoView(t),!0}if("undefined"!=typeof document){const r=document.getElementById(y);if(r){const t=e.startsWith(`${y}_`)?[`#${e}`]:[`#${e}`,`#${y}_${e}`];for(const e of t){if(n(r.querySelector(e)))return!0}}if(n(document.getElementById(e)))return!0}return console.error(`ITD Form Error [scrollTo]: Could not find element in form '${y}' by name/id '${e}'. ScrollIntoView not provided.`),!1},checkFormIsValid:O,hasField:I,getValues:T,getFieldValue:function(e){return I(e)?(r=m[e].value)instanceof Object?JSON.stringify(r):r:"";var r},getFieldValueByName:b,getFieldInstance:p,getFields:function(){let e={};return Object.keys(m).forEach(r=>{e[r]=m[r]}),e},getFieldsInstance:function(){let e={};return Object.keys(m).forEach(r=>{e[r]=m[r].field.current}),e},setName:function(e){g(e)},setInitialValues:function(e,r=!0,t=!1){Object.keys(e).forEach(n=>{k(n,e[n],r,t)});let n={};return Object.keys(e).forEach(r=>{n[r]=e[r]}),r&&(l&&V(n),s&&s(n)),O(),n},setInvalidField:function(e="",r=""){$(e,r),O()},setInvalidFields:function(e=[],r=""){e.forEach(e=>{$(e,r)}),O()},setFieldValue:function(e,r){I(e)?m[e].field.current?.setValue(r,!0,!0):console.error(`ITD Form Error [setFieldValue]: There is no field registered with this name: ${e}`)},setFieldValueByName:k,setFieldError:$,removeFieldError:function(e){if(I(e)){if(m[e].valid=!0,m[e].error="",!m[e].field.current?.hasOwnProperty("setError"))throw new Error(`ITD Reference Error: You must declare the 'setError' function on the field "${e}"`);m[e].field.current?.setError?.("")}else console.error(`ITD Form Error [removeFieldError]: There is no field registered with this name: ${e}`)},updateField:function(e,r,t,n){if(I(e)){if(m[e].value=r,m[e].valid=n,t){a&&a({name:e,value:r,valid:n}),m[e].reset.length>0&&m[e].reset.forEach(e=>{m[e].value="",m[e].valid=!1,m[e].field.current?.reset(!1)});let t={...T(),[e]:r};m[e].reset.length>0&&m[e].reset.forEach(e=>{t[e]=""}),l&&n&&V(t),s&&s(t)}O()}else console.error(`ITD Form Error [updateField]: There is no field registered with this name: ${e}`)},isFormValid:t(()=>F,[F]),isFieldsValid:function(e){let r=!0;return e.forEach(e=>{m[e].valid||(r=!1)}),r},isFieldValid:function(e){return m[e].valid},resetFields:function(e=!1,r=!1){Object.keys(m).forEach(t=>{if(!m[t].field.current?.hasOwnProperty("reset"))throw new Error(`ITD Reference Error: You must declare the 'reset' function on the field "${t}"`);m[t].field.current?.reset(e,r)}),c&&c()},removeFields:function(){E({})},formId:y,updated:w,variant:u,disabled:f,locked:d}}export{i as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import o,{useContext as t,useCallback as r,useSyncExternalStore as i}from"react";import d from"../context/FormContext.js";import{FormRegistry as s}from"../context/FormRegistry.js";function n({position:n="end",className:l,form:c,children:m}){const{disabled:a,locked:p}=t(d),b=r(()=>s.getDisabled(c),[c]),f=r(()=>s.getLocked(c),[c]),u=i(s.subscribe,b),k=i(s.subscribe,f),v=a??u,x=p??k;return e("div",{className:(()=>{let e="itd-form-control";return l&&(e+=" "+l),e})(),"data-position":n,children:o.Children.map(m,e=>{if(!o.isValidElement(e))return e;const t={};return!0===v?t.disabled=!0:void 0===e.props.disabled&&void 0!==v&&(t.disabled=v),!0===x?t.locked=!0:void 0===e.props.locked&&void 0!==x&&(t.locked=x),0===Object.keys(t).length?e:o.cloneElement(e,t)})})}export{n as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";function t({gap:t=15,horizontal:a=!1,className:e,children:o}){return r("div",{className:(()=>{let r="itd-form-group";return e&&(r+=" "+e),r})(),style:{gap:`${t}px`},...a?{"data-horizontal":""}:{},children:o})}export{t as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{forwardRef as e,useRef as o,useEffect as t,useImperativeHandle as n,useMemo as i,useContext as s}from"react";import a from"./group/Group.js";import m from"./control/Control.js";import l from"./wrapper/FormWrapper.js";import d from"./item/Item.js";import u from"./context/FormContext.js";import c from"./context/FormStore.js";import{FormRegistry as p}from"./context/FormRegistry.js";const F=e(({initialValues:e,children:s,onUpdate:a,onReset:m,onFinish:d,onFinishFailed:F,onFieldUpdate:f,onValidated:h,useQueryString:j,variant:g,disabled:x,locked:v,className:U,name:b},w)=>{const y=o(null);t(()=>(b&&p.register(b,{disabled:!!x,locked:!!v}),()=>{b&&p.unregister(b),y.current=null}),[b,x,v]),y.current=c({name:b,onUpdate:a,onReset:m,onFieldUpdate:f,useQueryString:j,variant:g,disabled:!!x,locked:!!v}),n(w,()=>y.current);const C=i(()=>{let r="itd-form";return b&&(r+=" "+b),U&&(r+=" "+U),r},[b,U]);return r(u.Provider,{value:y.current,children:r(l,{className:C,initialValues:e,useQueryString:j,onUpdate:a,onFinish:d,onFinishFailed:F,onValidated:h,name:b,children:s})})}),f=()=>{const r=s(u);if(!r)throw new Error("useFormAPI must be used within a FormContext.Provider");return r},h=()=>s(u);F.Item=d,F.Group=a,F.Control=m,F.useForm=h,F.useFormAPI=f;export{m as Control,a as Group,d as Item,F as default,h as useForm,f as useFormAPI};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{forwardRef as e,useRef as r,useContext as t,useState as i,useEffect as n,useImperativeHandle as o,cloneElement as d}from"react";import{CheckValidations as l}from"../validation/Validator.js";import a from"../context/FormContext.js";import{useTranslation as s}from"react-i18next";const c=e(({name:e="",id:c="",label:u="",error:m="",rules:f=[],mask:p=null,locked:v=!1,dependency:g="",reset:k=[],query:y="",children:F=null},N)=>{const{t:b}=s("itd"),q=r(null),V=r(""),{register:h,unregister:x,hasField:O,updateField:E,setFieldError:U,getFieldValue:j,getFieldInstance:I,formId:J,variant:S,disabled:_,locked:w}=t(a),[A,C]=i(!1);n(()=>(h({name:e,field:q,valid:P(q.current?.getValue(),!1),query:y,reset:k,error:m}),C(!0),V.current=JSON.stringify(f),()=>{C(!1),x(e)}),[]),n(()=>{const r=JSON.stringify(f);if(A&&q.current&&V.current!==r){const t=()=>{const r=q.current.getValue(),t=f.find(e=>e.hasOwnProperty("required"));if(!t||t.required||""!==r&&null!=r){const t=P(r,!1);O(e)&&E(e,r,!1,t)}else U(e,"",!0),O(e)&&E(e,r,!1,!0)};"development"===process.env.NODE_ENV?requestAnimationFrame(t):t(),V.current=r}},[f,A]),o(N,()=>q.current);const D=(r,t=!0,i=!0)=>{A&&O(e)&&(E(e,r,t,P(r,i)),z())},P=(r,t=!0)=>{const i=l(f,r,j,b);return i.length>0?!!(t||""!==r&&null!=r)&&(t&&U(e,i[0],t),!1):(t&&U(e,""),!0)},z=()=>{if(""===g)return;if(""===j(g))return;const e=I(g);e&&e.forceUpdate&&e.forceUpdate()};return(()=>{if(!F)return null;let r=F.props;const t="string"!=typeof F.type,i={id:r.id?r.id:c||J+"_"+e,label:u,className:r.className?r.className+" itd-form-item":"itd-form-item",onUpdate:D,ref:q};return p&&(i.mask=p),v&&(i.locked=v),t&&(void 0===r.variant&&void 0!==S&&(i.variant=S),!0===_?i.disabled=!0:void 0===r.disabled&&void 0!==_&&(i.disabled=_),!0===w?i.locked=!0:void 0!==r.locked||void 0===w||v||(i.locked=w)),d(F,{...r,...i})})()});export{c as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function r(r){var e,t=0,n=0,a=0;if(11!=r.length)return!1;if(!/^-?\d+$/.test(r))return!1;if(0==Number(r[0]))return!1;if(t=parseInt(r[0])+parseInt(r[2])+parseInt(r[4])+parseInt(r[6])+parseInt(r[8]),e=parseInt(r[1])+parseInt(r[3])+parseInt(r[5])+parseInt(r[7]),t*=7,Math.abs(t-e)%10!=Number(r[9]))return!1;for(a=0;a<10;a++)n+=parseInt(r[a]);return n%10==Number(r[10])}export{r as default};
|