@inntechcorp/it-design 4.0.0-beta.1 → 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/dist/accordion/index.d.ts +2 -2
- package/dist/accordion/item/styled.d.ts +2 -2
- package/dist/accordion/submenu/styled.d.ts +5 -5
- package/dist/alert/index.d.ts +3 -3
- package/dist/alink/index.d.ts +1 -1
- package/dist/alink/styled.d.ts +1 -1
- package/dist/back-top/styled.d.ts +2 -2
- package/dist/button/index.d.ts +2 -2
- package/dist/calendar/day/Day.d.ts +2 -2
- package/dist/calendar/day/styled.d.ts +1 -1
- package/dist/calendar/header/styled.d.ts +6 -6
- package/dist/calendar/index.d.ts +2 -2
- package/dist/calendar/styled.d.ts +6 -6
- package/dist/card/CardFooter.d.ts +0 -1
- package/dist/card/index.d.ts +8 -8
- package/dist/checkbox/group/index.d.ts +1 -1
- package/dist/checkbox/index.d.ts +1 -1
- 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 +4 -2
- package/dist/context/ITDThemeProvider.d.ts +6 -3
- package/dist/context/styled.d.ts +1 -1
- 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/datepicker/index.d.ts +2 -2
- 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/flex/index.d.ts +1 -1
- package/dist/flex/styled.d.ts +2 -2
- package/dist/floating/Arrow.d.ts +1 -1
- package/dist/floating/FloatingContent.d.ts +1 -1
- package/dist/floating/mergeTriggerProps.d.ts +1 -1
- package/dist/form/context/FormContext.d.ts +4 -3
- package/dist/form/context/FormRegistry.d.ts +13 -0
- package/dist/form/context/FormStore.d.ts +5 -4
- package/dist/form/control/Control.d.ts +3 -2
- package/dist/form/group/Group.d.ts +1 -1
- package/dist/form/index.d.ts +5 -5
- package/dist/form/item/Item.d.ts +2 -2
- package/dist/form/validation/Validator.d.ts +2 -2
- package/dist/form/wrapper/FormWrapper.d.ts +2 -2
- package/dist/global.css +48 -0
- package/dist/helpers/binary/GetTypeByFileType.d.ts +2 -2
- package/dist/helpers/currency/GetCurrencySymbol.d.ts +1 -1
- package/dist/helpers/datetime/FormatTime.d.ts +1 -1
- package/dist/helpers/datetime/dayjsSetup.d.ts +1 -1
- package/dist/helpers/index.d.ts +35 -36
- package/dist/helpers/svg/styles.d.ts +1 -1
- package/dist/helpers/theme/createTheme.d.ts +8 -0
- package/dist/helpers/theme/cssVariables.d.ts +17 -6
- package/dist/helpers/theme/dark.d.ts +1 -1
- package/dist/helpers/theme/index.d.ts +12 -9
- package/dist/helpers/theme/light.d.ts +1 -1
- package/dist/helpers/theme/presets.d.ts +12 -0
- package/dist/helpers/theme/themes.d.ts +2 -2
- package/dist/hooks/index.d.ts +15 -15
- package/dist/hooks/useComponentSize.d.ts +1 -1
- package/dist/hooks/useConnectionStatus.d.ts +1 -1
- package/dist/hooks/useFloatingPosition.d.ts +2 -2
- package/dist/hooks/useFloatingTrigger.d.ts +2 -2
- package/dist/hooks/useFocusTrap.d.ts +1 -1
- package/dist/hooks/useOnClickOutside.d.ts +1 -1
- package/dist/hooks/useSingleQuery.d.ts +1 -1
- package/dist/hovercard/HoverCardContent.d.ts +1 -1
- package/dist/hovercard/hoverCardContext.d.ts +1 -1
- package/dist/hovercard/index.d.ts +3 -3
- package/dist/html/header/H1.d.ts +1 -1
- package/dist/html/header/H2.d.ts +1 -1
- package/dist/html/header/H3.d.ts +1 -1
- package/dist/html/header/H4.d.ts +1 -1
- package/dist/html/header/index.d.ts +4 -4
- package/dist/html/header/styled.d.ts +4 -4
- package/dist/icons/index.d.ts +11 -11
- package/dist/image/index.d.ts +1 -1
- package/dist/image/styled.d.ts +4 -6
- package/dist/index.d.mts +759 -0
- package/dist/index.d.ts +2708 -112
- package/dist/input/index.d.ts +14 -13
- package/dist/input/style.settings.d.ts +1 -1
- package/dist/label/index.d.ts +1 -1
- package/dist/label/style.settings.d.ts +1 -1
- package/dist/label/styled.d.ts +14 -14
- package/dist/locales/{tr/calendar.json.d.ts → calendar.json} +2 -4
- package/dist/locales/en/{calendar.json.d.ts → calendar.json} +2 -4
- package/dist/locales/en/{itd.json.d.ts → itd.json} +1 -4
- package/dist/locales/{tr/itd.json.d.ts → itd.json} +2 -4
- package/dist/locales/tr/calendar.json +30 -0
- package/dist/locales/tr/itd.json +337 -0
- package/dist/modal/container/ModalContainer.d.ts +4 -4
- package/dist/modal/container/styled.d.ts +2 -4
- package/dist/modal/context/ModalContext.d.ts +3 -3
- package/dist/modal/index.d.ts +1 -1
- package/dist/modal/modal/Modal.d.ts +2 -2
- package/dist/modal/modal/styled.d.ts +11 -11
- package/dist/notification/context/NotificationsContext.d.ts +2 -2
- package/dist/notification/index.d.ts +1 -1
- package/dist/popover/Popover.d.ts +1 -1
- package/dist/popover/PopoverContent.d.ts +1 -1
- package/dist/popover/index.d.ts +3 -3
- package/dist/primitives/Slot.d.ts +2 -2
- package/dist/progress/styled.d.ts +1 -1
- package/dist/radio/button/RadioButton.d.ts +1 -1
- package/dist/radio/button/styled.d.ts +8 -8
- package/dist/radio/group/Group.d.ts +3 -3
- package/dist/radio/group/styled.d.ts +1 -1
- package/dist/radio/index.d.ts +2 -2
- package/dist/result/index.d.ts +1 -1
- package/dist/result/styled.d.ts +9 -9
- package/dist/select/dropdown/Dropdown.d.ts +3 -3
- package/dist/select/index.d.ts +1 -1
- package/dist/select/option/Option.d.ts +4 -4
- package/dist/select/selector/selectorinput/SelectorInput.d.ts +2 -2
- package/dist/select/style.settings.d.ts +1 -1
- package/dist/stats.html +4949 -0
- package/dist/stories/Accordion.stories.d.ts +3 -3
- package/dist/stories/Alert.stories.d.ts +3 -3
- package/dist/stories/AlertComposition.d.ts +1 -0
- package/dist/stories/AlertComposition.stories.d.ts +2 -1
- package/dist/stories/Button.stories.d.ts +9 -3
- package/dist/stories/Card.d.ts +9 -2
- package/dist/stories/Card.stories.d.ts +6 -4
- package/dist/stories/Checkbox.stories.d.ts +3 -3
- package/dist/stories/CheckboxGroup.stories.d.ts +3 -3
- package/dist/stories/CheckboxGroupControl.stories.d.ts +3 -3
- package/dist/stories/ColorScale.stories.d.ts +2 -2
- package/dist/stories/ColorScaleCompare.stories.d.ts +2 -2
- package/dist/stories/DatePicker.stories.d.ts +3 -3
- package/dist/stories/Form.d.ts +1 -1
- package/dist/stories/Form.stories.d.ts +3 -2
- package/dist/stories/Header.stories.d.ts +5 -5
- package/dist/stories/HoverCard.stories.d.ts +1 -1
- package/dist/stories/Input.stories.d.ts +2 -2
- package/dist/stories/ModalManager.stories.d.ts +2 -2
- package/dist/stories/Page.stories.d.ts +2 -2
- package/dist/stories/Popover.stories.d.ts +2 -2
- package/dist/stories/Progress.stories.d.ts +3 -3
- package/dist/stories/RadioGroup.stories.d.ts +2 -2
- package/dist/stories/Result.stories.d.ts +3 -3
- package/dist/stories/Select.stories.d.ts +3 -3
- package/dist/stories/Status.stories.d.ts +3 -3
- package/dist/stories/Switch.stories.d.ts +4 -4
- package/dist/stories/Table.stories.d.ts +2 -2
- package/dist/stories/Tabs.stories.d.ts +7 -7
- package/dist/stories/TextArea.stories.d.ts +3 -3
- package/dist/stories/Tooltip.stories.d.ts +2 -2
- package/dist/stories/Upload.stories.d.ts +3 -3
- package/dist/stories/root/index.d.ts +1 -1
- package/dist/stories/select.styled.d.ts +1 -1
- package/dist/switch/index.d.ts +3 -2
- package/dist/table/index.d.ts +2 -2
- package/dist/table/styled.d.ts +5 -5
- package/dist/tabs/index.d.ts +2 -2
- package/dist/textarea/index.d.ts +1 -1
- package/dist/tinyscrollbar/index.d.ts +2 -1
- package/dist/tinyscrollbar/scroll.styled.d.ts +1 -1
- package/dist/tinyscrollbar/styled.d.ts +1 -1
- package/dist/tooltip/TooltipContent.d.ts +1 -4
- package/dist/tooltip/index.d.ts +3 -3
- package/dist/tooltip/tooltipContext.d.ts +1 -1
- package/dist/types/AccordionItemProps.d.ts +1 -1
- package/dist/types/AccordionProps.d.ts +1 -1
- package/dist/types/AccordionSubMenuProps.d.ts +1 -1
- package/dist/types/AlertProps.d.ts +4 -3
- package/dist/types/ButtonProps.d.ts +5 -6
- package/dist/types/CalendarProps.d.ts +4 -4
- package/dist/types/CardProps.d.ts +2 -2
- package/dist/types/CheckboxProps.d.ts +3 -3
- package/dist/types/ChildrenProps.d.ts +2 -1
- package/dist/types/DatePickerProps.d.ts +7 -6
- package/dist/types/FlexProps.d.ts +2 -2
- package/dist/types/FormProps.d.ts +9 -8
- package/dist/types/ITDProps.d.ts +1 -1
- package/dist/types/InputProps.d.ts +5 -4
- package/dist/types/LabelProps.d.ts +1 -1
- package/dist/types/ModalProps.d.ts +2 -2
- package/dist/types/PopoverProps.d.ts +2 -2
- package/dist/types/RadioProps.d.ts +2 -2
- package/dist/types/ResultProps.d.ts +1 -1
- package/dist/types/SelectProps.d.ts +4 -4
- package/dist/types/SingleQueryProps.d.ts +1 -1
- package/dist/types/StatusProps.d.ts +2 -2
- package/dist/types/SwitchProps.d.ts +2 -2
- package/dist/types/TableProps.d.ts +2 -2
- package/dist/types/TabsProps.d.ts +9 -2
- package/dist/types/TextAreaProps.d.ts +4 -3
- package/dist/types/Theme.d.ts +26 -1
- package/dist/types/UploadProps.d.ts +3 -2
- package/dist/upload/index.d.ts +2 -2
- package/dist/utils/CommonStyledComponents.d.ts +13 -10
- package/dist/utils/GetButtonSizeSlug.d.ts +1 -1
- package/dist/utils/GetIconSizeBySize.d.ts +1 -1
- package/dist/utils/GetSizeBySizeSlug.d.ts +2 -2
- package/dist/utils/GetSizeSlugBySize.d.ts +2 -2
- package/dist/utils/InlineSVGCached.d.ts +1 -1
- package/dist/utils/cn.d.ts +2 -0
- package/dist/utils/index.d.ts +6 -6
- package/package.json +20 -11
- package/dist/accordion/styled.d.ts +0 -1
- 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.neutral.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 -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 -7
- package/dist/button/button.style.solid.d.ts +0 -4
- package/dist/button/styled.d.ts +0 -3
- package/dist/card/styles.d.ts +0 -15
- package/dist/checkbox/group/styled.d.ts +0 -2
- package/dist/checkbox/styled.d.ts +0 -10
- 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/locale/getLocaleDateByString.d.ts +0 -1
- package/dist/helpers/theme/UpdateThemeStyle.d.ts +0 -5
- package/dist/index.cjs.js +0 -5727
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.css +0 -1
- package/dist/index.es.js +0 -22339
- package/dist/index.es.js.map +0 -1
- package/dist/index.iife.js +0 -5728
- package/dist/index.iife.js.map +0 -1
- package/dist/index.umd.js +0 -5728
- package/dist/index.umd.js.map +0 -1
- package/dist/input/styled.d.ts +0 -27
- package/dist/link/index.d.ts +0 -2
- package/dist/logger/index.d.ts +0 -9
- package/dist/notification/container/Container.d.ts +0 -5
- package/dist/notification/container/styled.d.ts +0 -1
- package/dist/notification/item/Item.d.ts +0 -12
- package/dist/notification/item/styled.d.ts +0 -1166
- package/dist/reportWebVitals.d.ts +0 -2
- package/dist/select/dropdown/styled.d.ts +0 -14
- package/dist/select/option/styled.d.ts +0 -5
- package/dist/select/selector/selectorinput/styled.d.ts +0 -2
- package/dist/select/selector/styled.d.ts +0 -16
- package/dist/select/styled.d.ts +0 -9
- package/dist/setupTests.d.ts +0 -1
- package/dist/spin/styled.d.ts +0 -10
- package/dist/status/styled.d.ts +0 -6
- package/dist/switch/styled.d.ts +0 -5
- package/dist/tabs/styles.d.ts +0 -8
- package/dist/textarea/styled.d.ts +0 -6
- package/dist/upload/styled.d.ts +0 -12
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={fontSize:{xs:"0.725rem",sm:"0.75rem",md:"0.825rem",df:"0.875rem",lg:"0.875rem",xl:"0.875rem"},lineHeight:{xs:"0.725rem",sm:"0.75rem",md:"0.825rem",df:"0.875rem",lg:"0.875rem",xl:"0.875rem"},fontWeight:{normal:400,medium:500,semibold:600,bold:700}},i={paddingX:{xs:"0.625rem",sm:"0.625rem",md:"0.75rem",df:"0.75rem",lg:"0.9375rem",xl:"0.9375rem"},height:{xs:"1.75rem",sm:"2rem",md:"2.125rem",df:"2.25rem",lg:"2.5rem",xl:"2.75rem"},gap:{xs:"0.25rem",sm:"0.5rem",md:"0.75rem",df:"0.875rem",lg:"1rem",xl:"1.25rem"}},t={image:{xs:{width:"0.875rem",height:"0.875rem"},sm:{width:"1rem",height:"1rem"},md:{width:"1.125rem",height:"1.125rem"},df:{width:"1.25rem",height:"1.25rem"},lg:{width:"1.25rem",height:"1.25rem"},xl:{width:"1.375rem",height:"1.375rem"}},arrow:{xs:{width:"0.825rem",height:"0.825rem"},sm:{width:"0.825rem",height:"0.825rem"},md:{width:"1rem",height:"1rem"},df:{width:"1rem",height:"1rem"},lg:{width:"1.125rem",height:"1.125rem"},xl:{width:"1.125rem",height:"1.125rem"}},button:{xs:{width:"0.75rem",height:"0.75rem"},sm:{width:"0.875rem",height:"0.875rem"},md:{width:"1rem",height:"1rem"},df:{width:"1rem",height:"1rem"},lg:{width:"1.125rem",height:"1.125rem"},xl:{width:"1.25rem",height:"1.25rem"}},default:{xs:"0.75rem",sm:"0.875rem",md:"1rem",df:"1rem",lg:"1.25rem",xl:"1.5rem"}},m={xs:{height:i.height.xs,paddingX:i.paddingX.xs,fontSize:e.fontSize.xs,lineHeight:e.lineHeight.xs,fontWeight:e.fontWeight.normal},sm:{height:i.height.sm,paddingX:i.paddingX.sm,fontSize:e.fontSize.sm,lineHeight:e.lineHeight.sm,fontWeight:e.fontWeight.normal},md:{height:i.height.md,paddingX:i.paddingX.md,fontSize:e.fontSize.md,lineHeight:e.lineHeight.md,fontWeight:e.fontWeight.normal},df:{height:i.height.df,paddingX:i.paddingX.df,fontSize:e.fontSize.df,lineHeight:e.lineHeight.df,fontWeight:e.fontWeight.normal},lg:{height:i.height.lg,paddingX:i.paddingX.lg,fontSize:e.fontSize.lg,lineHeight:e.lineHeight.lg,fontWeight:e.fontWeight.medium},xlg:{height:i.height.xl,paddingX:i.paddingX.xl,fontSize:e.fontSize.xl,lineHeight:e.lineHeight.xl,fontWeight:e.fontWeight.medium}},h=m,n={xs:{minWidth:i.height.xs,minHeight:i.height.xs,padding:"0 0.625rem",fontSize:e.fontSize.xs,lineHeight:e.lineHeight.xs,fontWeight:e.fontWeight.medium,iconSize:t.button.xs,spinnerSize:"0.75rem",spinnerBorder:"1px"},sm:{minWidth:i.height.sm,minHeight:i.height.sm,padding:"0 0.9375rem",fontSize:e.fontSize.sm,lineHeight:e.lineHeight.sm,fontWeight:e.fontWeight.medium,iconSize:t.button.sm,spinnerSize:"1rem",spinnerBorder:"2px"},md:{minWidth:i.height.md,minHeight:i.height.md,padding:"0 0.9375rem",fontSize:e.fontSize.md,lineHeight:e.lineHeight.md,fontWeight:e.fontWeight.medium,iconSize:t.button.md,spinnerSize:"1rem",spinnerBorder:"2px"},df:{minWidth:i.height.df,minHeight:i.height.df,padding:"0 0.9375rem",fontSize:e.fontSize.df,lineHeight:e.lineHeight.df,fontWeight:e.fontWeight.medium,iconSize:t.button.df,spinnerSize:"1rem",spinnerBorder:"2px"},lg:{minWidth:i.height.lg,minHeight:i.height.lg,padding:"0 1.25rem",fontSize:e.fontSize.lg,lineHeight:e.lineHeight.lg,fontWeight:e.fontWeight.medium,iconSize:t.button.lg,spinnerSize:"1.125rem",spinnerBorder:"2px"},xlg:{minWidth:i.height.xl,minHeight:i.height.xl,padding:"0 1.25rem",fontSize:e.fontSize.xl,lineHeight:e.lineHeight.xl,fontWeight:e.fontWeight.medium,iconSize:t.button.xl,spinnerSize:"1.25rem",spinnerBorder:"3px"}},g={title:{fontSize:"0.875rem",lineHeight:"1rem",fontWeight:e.fontWeight.medium},description:{fontSize:"0.8125rem",lineHeight:"1rem",fontWeight:e.fontWeight.normal},icon:{size:"1rem",marginTop:"0.125rem"},spacing:{gap:i.gap.df,padding:i.gap.df}},d={padding:{xs:i.gap.sm,sm:i.gap.md,md:i.gap.lg,lg:i.gap.xl},borderRadius:{sm:"0.375rem",md:"0.5rem",lg:"0.75rem"}},r={title:{fontSize:"0.9375rem",lineHeight:"1.375rem",fontWeight:e.fontWeight.semibold},description:{fontSize:"0.8125rem",lineHeight:"1.25rem",fontWeight:e.fontWeight.normal},padding:{sm:i.gap.lg,md:i.gap.xl,lg:"1.5rem"}};export{g as ALERT_TOKENS,n as BUTTON_SIZE_MAP,d as CARD_TOKENS,t as ICON_TOKENS,m as INPUT_SIZE_MAP,r as MODAL_TOKENS,h as SELECT_SIZE_MAP,i as SPACING_TOKENS,e as TYPOGRAPHY_TOKENS};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function t(t){return"number"==typeof t?t+"px":"string"==typeof t?"auto"===t||"none"===t||/\d+(px|%|em|rem|vh|vw|pt|cm|mm|in|pc|ex|ch|vmin|vmax)?$/.test(t)?t:t+"px":"Invalid input"}export{t as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useEffect as e}from"react";const r=(r,t=!1)=>{e(()=>{var e=!1,d=document.head,l=n();return document.querySelectorAll("head > link").forEach(t=>{-1!==t.href.indexOf(r)&&(e=!0)}),e||d.appendChild(l),()=>{t&&document.querySelectorAll("head > link").forEach(e=>{-1!==e.href.indexOf(r)&&document.head.removeChild(e)})}},[r]);const n=()=>{var e=document.createElement("link");return e.type="text/css",e.rel="stylesheet",e.href=r,e}};export{r as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useState as e,useMemo as t,useEffect as n}from"react";const o=({obstacles:o=[],corner:i="bottom-right",autoAvoid:r=!0,extraBottom:s=0,minGap:c=8}={})=>{const[a,d]=e(s),l=t(()=>{let e=0;const t=()=>{if(!r)return void d(s);const e=window.innerHeight;let t=0;o.flatMap(e=>Array.from(document.querySelectorAll(e))).forEach(n=>{const o=getComputedStyle(n),r="none"===o.display||"hidden"===o.visibility||"0"===o.opacity,s="fixed"===o.position||"sticky"===o.position;if(r||!s)return;const a=n.getBoundingClientRect(),d=Math.max(0,e-a.top),l=Math.min(d,a.height),m=(()=>{const e=window.innerWidth/2;return"bottom-right"===i?a.right>e:"bottom-left"===i?a.left<e:a.left<=e&&a.right>=e})();l>0&&m&&(t=Math.max(t,Math.ceil(l+c)))}),d(t+s)};return{schedule:()=>{cancelAnimationFrame(e),e=requestAnimationFrame(t)},cancel:()=>cancelAnimationFrame(e)}},[o,i,r,s,c]);return n(()=>{l.schedule();const e=()=>l.schedule(),t=()=>l.schedule();window.addEventListener("resize",e,{passive:!0}),window.addEventListener("scroll",t,{passive:!0});const n=new MutationObserver(()=>l.schedule());n.observe(document.body,{childList:!0,subtree:!0,attributes:!0});const o=new ResizeObserver(()=>l.schedule());return o.observe(document.body),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",t),n.disconnect(),o.disconnect(),l.cancel()}},[l]),{bottomOffset:a}};export{o as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useState as t,useEffect as e}from"react";const r=r=>{const[n,i]=t({width:0,height:0});return e(()=>{if(!r.current)return;const t=new ResizeObserver(t=>{t.forEach(({target:t})=>{i({width:t.clientWidth,height:t.clientHeight})})});return t.observe(r.current),()=>t.disconnect()},[r]),[n]};export{r as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ConnectionStatus as e}from"../enums/enum.js";import{useEffect as n}from"react";const t=t=>{n(()=>{const n=n=>{t(e.ONLINE,n)},r=n=>{t(e.OFFLINE,n)};return window.addEventListener(e.ONLINE,n),window.addEventListener(e.OFFLINE,r),()=>{window.removeEventListener(e.ONLINE,n),window.removeEventListener(e.OFFLINE,r)}},[t])};export{t as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useState as t}from"react";const o=(o=()=>{})=>{const[r,a]=t(!1);r||(o(),a(!0))};export{o as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r,Fragment as e}from"react/jsx-runtime";import{useContext as t,useRef as n,useMemo as c}from"react";const i=(...i)=>{if(0===i.length)return({children:t})=>r(e,{children:t});const o=i.map(t),u=n(o);return u.current=o,c(()=>({children:e})=>i.reduceRight((e,t,n)=>r(t.Provider,{value:u.current[n],children:e}),e),[])};export{i as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useRef as e}from"react";import o from"axios";const t=()=>{const t=e(null);return{fetch:async({action:e="",requestMethod:a="",addOrigin:r=!0,params:c={},queries:s={},headers:n={},cancelable:l=!0,onFetched:p,onError:u,onCanceled:i,onProgress:d})=>{let g="",m={};Object.keys(s).forEach(e=>{g+="&"+e+"="+s[e]}),m["Content-Type"]="put"===a?"multipart/form-data":"application/json",r&&(m["Access-Control-Allow-Headers"]="Origin, X-Requested-With, Content-Type, Accept"),m={...m,...n};let h=o.post;"post"===a.toLocaleLowerCase()?h=o.post:"get"===a.toLocaleLowerCase()?h=o.get:"put"===a.toLocaleLowerCase()?h=o.put:"patch"===a.toLocaleLowerCase()&&(h=o.patch),await h(e+g,c,{headers:n,cancelToken:!!l&&(t.current=o.CancelToken.source(),t.current.token),onUploadProgress:e=>{d&&d(e)}}).then(e=>{p&&p(e)}).catch(e=>{console.log("error",e),console.log("error.message",e.message),o.isCancel(e.message)?i&&i(e.message):u&&u(e.message,0)})},cancel:()=>{t.current&&t.current.cancel("manually canceled!")}}};export{t as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useState as e,useEffect as t}from"react";import{ComponentYPositions as n,ComponentXPositions as r}from"../enums/enum.js";function i({isOpen:i,triggerRef:o,contentRef:c,placement:a=n.TOP,offset:s,showArrow:l=!0}){const m=void 0!==s?s:l?15:4,[u,f]=e({top:0,left:0,actualPlacement:a}),w=()=>{if(!o.current)return;const e=c.current,t=o.current.getBoundingClientRect(),i=window.innerHeight,s=window.innerWidth,l=e?.offsetHeight||150,u=e?.offsetWidth||150;let w=a;a===n.TOP&&t.top-l-m<0?w=n.BOTTOM:a===n.BOTTOM&&t.bottom+l+m>i?w=n.TOP:a===r.RIGHT&&t.right+u+m>s?w=r.LEFT:a===r.LEFT&&t.left-u-m<0&&(w=r.RIGHT);let T=0,d=0;switch(w){case n.TOP:T=t.top-l-m,d=t.left+t.width/2-u/2;break;case n.BOTTOM:T=t.bottom+m,d=t.left+t.width/2-u/2;break;case r.LEFT:d=t.left-u-m,T=t.top+t.height/2-l/2;break;case r.RIGHT:d=t.right+m,T=t.top+t.height/2-l/2}f({top:T,left:d,actualPlacement:w})};return t(()=>{if(!i)return;let e=null,t=null,n=null,r=null,a=null;const s=()=>{o.current?(w(),t=requestAnimationFrame(()=>{n=requestAnimationFrame(()=>{w()})})):e=setTimeout(s,10)};s();const l=()=>{o.current&&w()};window.addEventListener("scroll",l,!0),window.addEventListener("resize",l);const m=()=>{c.current?(a=new ResizeObserver(()=>{o.current&&w()}),a.observe(c.current)):r=requestAnimationFrame(()=>{m()})};return r=requestAnimationFrame(()=>{m()}),()=>{e&&clearTimeout(e),t&&cancelAnimationFrame(t),n&&cancelAnimationFrame(n),r&&cancelAnimationFrame(r),a&&a.disconnect(),window.removeEventListener("scroll",l,!0),window.removeEventListener("resize",l)}},[i,a,m]),{position:u}}export{i as useFloatingPosition};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{TriggerTypes as e}from"../enums/enum.js";import{useState as n,useRef as t,useCallback as r,useEffect as o}from"react";function u({trigger:u=e.HOVER,openDelay:s=0,closeDelay:c=0,closeOnClickOutside:i=!1,defaultOpen:a=!1,open:l,onOpenChange:m}={}){const[v,d]=n(a),E=t(null),L=t(null),f=t(null),p=t(null),g=void 0!==l?l:v,C=r(e=>{void 0===l&&d(e),m?.(e)},[l,m]),O=r(()=>{E.current&&(clearTimeout(E.current),E.current=null),L.current&&(clearTimeout(L.current),L.current=null)},[]),T=r(()=>{O(),s>0?E.current=setTimeout(()=>C(!0),s):C(!0)},[s,C,O]),k=r(()=>{O(),c>0?L.current=setTimeout(()=>C(!1),c):C(!1)},[c,C,O]),R=r(()=>{g?k():T()},[g,T,k]);o(()=>{if(!g||!i)return;const e=e=>{const n=e.target,t=f.current?.contains(n),r=p.current?.contains(n);t||r||C(!1)},n=setTimeout(()=>{document.addEventListener("mousedown",e)},10);return()=>{clearTimeout(n),document.removeEventListener("mousedown",e)}},[g,i,C]),o(()=>{if(!g)return;const e=e=>{"Escape"===e.key&&(e.preventDefault(),C(!1))};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[g,C]),o(()=>{if("hover"!==u)return;const e=f.current;if(!e)return;const n=()=>{T()},t=()=>{O();const e=c>0?c:100;L.current=setTimeout(()=>{C(!1)},e)},r=()=>{C(!0)},o=()=>{C(!1)};return e.addEventListener("mouseenter",n),e.addEventListener("mouseleave",t),e.addEventListener("focus",r),e.addEventListener("blur",o),()=>{e.removeEventListener("mouseenter",n),e.removeEventListener("mouseleave",t),e.removeEventListener("focus",r),e.removeEventListener("blur",o)}},[u,T,c,O,C]),o(()=>()=>O(),[O]);const w=r(()=>{const n={ref:e=>{f.current=e}};switch(u){case e.HOVER:n.onMouseEnter=T,n.onMouseLeave=()=>{O();const e=c>0?c:100;L.current=setTimeout(()=>{C(!1)},e)},n.onFocus=()=>C(!0),n.onBlur=()=>C(!1);break;case e.CLICK:n.onClick=e=>{const n=e.target;p.current?.contains(n)||R()};break;case e.FOCUS:n.onFocus=()=>C(!0),n.onBlur=()=>C(!1);case e.MANUAL:}return n},[u,T,c,O,C,R]),y=r(()=>({ref:e=>{e&&(p.current=e)},onClick:u===e.CLICK?e=>{e.stopPropagation()}:void 0,onMouseEnter:u===e.HOVER?()=>{O()}:void 0,onMouseLeave:u===e.HOVER?()=>{const e=c>0?c:100;O(),L.current=setTimeout(()=>{C(!1)},e)}:void 0}),[u,c,O,C]);return{isOpen:g,open:T,close:k,toggle:R,getTriggerProps:w,getContentProps:y,triggerRef:f,contentRef:p}}export{u as useFloatingTrigger};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useRef as e,useEffect as t}from"react";function n(e){if("undefined"==typeof window)return[];const t=["a[href]","button:not([disabled])","textarea:not([disabled])","input:not([disabled])","select:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(", ");return Array.from(e.querySelectorAll(t)).filter(e=>{const t=window.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility&&"0"!==t.opacity&&(null!==e.offsetParent||"fixed"===t.position)})}function r({isActive:r=!1,containerRef:o,initialFocusRef:u,returnFocusRef:c,autoFocus:i=!0,trapFocusOutside:s=!1,restoreFocus:f=!0}){const d=e(null),l=e(null);t(()=>{if("undefined"==typeof document)return;if(!r)return;const e=o.current;if(!e)return;const t=document.activeElement;if(t&&t!==document.body&&(d.current=t),i){const t=n(e);let r=null;r=u?.current&&e.contains(u.current)?u.current:t[0],r&&(r.focus(),l.current=r)}else t&&e.contains(t)&&(l.current=t);const a=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey)return;const r=document.activeElement;if(!r||!e.contains(r))return;const o=n(e);if(0===o.length)return;const u=o.indexOf(r);if(t.shiftKey){if(u<=0){t.preventDefault();const e=o[o.length-1];e?.focus(),l.current=e??null}}else if(-1===u||u===o.length-1){t.preventDefault();const e=o[0];e?.focus(),l.current=e??null}},m=t=>{if(!s)return;const r=t.target;if(!r)return;if(e.contains(r))return void(l.current=r);const o=n(e),u=l.current&&e.contains(l.current)&&l.current||o[0]||null;u&&(u.focus(),l.current=u)};return document.addEventListener("keydown",a),s&&document.addEventListener("focusin",m),()=>{document.removeEventListener("keydown",a),s&&document.removeEventListener("focusin",m),f&&(c?.current?c.current.focus():d.current&&d.current.focus())}},[r,o,u,c,i,s,f])}export{r as useFocusTrap};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useEffect as e}from"react";const t=({key:t,onKeyPressed:n})=>{e(()=>{function e(e){e.key===t&&(e.preventDefault(),n())}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[t,n])};export{t as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useSearchParams as e,useNavigate as t,createSearchParams as r}from"react-router-dom";const a=()=>{const[a,l]=e(),o=t();return{set:(e=[{type:"",value:""}])=>{e.forEach(e=>{""===e.value||void 0===e.value||null===e.value?a.delete(e.type):Array.isArray(e.value)?0===e.value.length?a.delete(e.type):a.set(e.type,decodeURIComponent(e.value.join()).toString()):a.set(e.type,e.value)}),l(a),o({search:r(a).toString()},{replace:!0})}}};export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useEffect as t}from"react";const e=(e,r)=>{t(()=>{const t=t=>{if(!t.target)return;if(0!==t.button)return t.stopPropagation(),void t.preventDefault();if(!e)return;if(!e.current)return;(t=>{const e=t.target;if(!(e.scrollHeight>e.clientHeight))return!1;const r=e.getBoundingClientRect();return t.clientX>r.right-20})(t)||e.current.contains(t.target)||r(t)};return document.addEventListener("pointerdown",t),()=>{document.removeEventListener("pointerdown",t)}},[e,r])};export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useEffect as e}from"react";const t=t=>{e(()=>{const e=e=>{27===e.keyCode&&t(e)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[t])};export{t as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useEffect as e}from"react";const r=r=>{e(()=>{const e=e=>{r(e)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[r])};export{r as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useState as e,useEffect as n}from"react";const t=()=>{if(!("undefined"!=typeof window))return"landscape";const e=window.screen&&window.screen.orientation;if(e&&"string"==typeof e.type)return e.type.startsWith("portrait")?"portrait":"landscape";if("function"==typeof window.matchMedia)try{return window.matchMedia("(orientation: portrait)").matches?"portrait":"landscape"}catch(e){}return window.innerHeight>=window.innerWidth?"portrait":"landscape"},i=()=>{const[i,r]=e(()=>t());return n(()=>{if(!("undefined"!=typeof window))return;const e=window.screen&&window.screen.orientation,n=()=>r(t());if(e&&"function"==typeof e.addEventListener)return e.addEventListener("change",n),()=>e.removeEventListener("change",n);if("function"==typeof window.matchMedia){const e=window.matchMedia("(orientation: portrait)"),n=e=>{const n=e.matches;r(n?"portrait":"landscape")};if("function"==typeof e.addEventListener)return e.addEventListener("change",n),()=>e.removeEventListener("change",n);if("function"==typeof e.addListener)return e.addListener(n),()=>e.removeListener(n)}return window.addEventListener("orientationchange",n),window.addEventListener("resize",n),()=>{window.removeEventListener("orientationchange",n),window.removeEventListener("resize",n)}},[]),i};export{i as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useState as e,useEffect as t}from"react";import o from"../logger/index.js";const a=a=>{let c;const[r,n]=e("");t(()=>()=>{document.body.removeChild(c)},[]);return{loadReCaptcha:e=>{c=document.createElement("script"),c.src="https://www.google.com/recaptcha/api.js?render="+e,c.onload=function(){n(e)},document.body.appendChild(c)},executeReCaptcha:()=>{if(""===r)return o.double("useReCaptcha","Not yet initialized! reCaptcha can't execute right now.","error"),void(a&&a(null));window.grecaptcha.ready(e=>{try{window.grecaptcha.execute(r,{action:"login"}).then(e=>{o.double("ReCaptcha V3","Token is valid"),console.log("token: "+e),a&&a(e)})}catch(e){o.double("ReCaptcha V3","Token is invalid","error")}})}}};export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useSearchParams as e}from"react-router-dom";const t=()=>{const[t,r]=e();return{set:(e="",n)=>{if(""===n||null===n||Array.isArray(n)&&0===n.length)t.delete(e);else if(Array.isArray(n)){const r=n.map(e=>encodeURIComponent(e.toString())).join(",");t.set(e,r)}else"boolean"==typeof n?t.set(e,n?"true":"false"):t.set(e,encodeURIComponent(n.toString()));r(t)},get:function(e="search",r,n){const o=t.get(e);if(null!==o){const t=decodeURIComponent(o);if(t.includes("&")){const o=((e,t)=>{const r={};return e.split("&").forEach((e,n)=>{if(e.includes("=")){const[t,n]=e.split("=");t&&void 0!==n&&(r[t]=n)}else 0===n&&e&&(r[t]=e)}),r})(t,e);if(!o[e])return r;{const t=o[e];if(void 0!==n&&t.length<n)return console.warn(`Parameter is shorter than the minimum length of ${n}. Returning default value.`),r;if("string"==typeof r)return t;if("number"==typeof r){const e=Number(t);return isNaN(e)?r:e}if("boolean"==typeof r){const e=t.toLowerCase();return"true"===e||"false"!==e&&r}}}if(void 0!==n&&t.length<n)return console.warn(`Parameter is shorter than the minimum length of ${n}. Returning default value.`),r;if(Array.isArray(r))try{return t.includes(",")?t.split(","):[t]}catch(e){return console.warn("Invalid array format, returning default value."),r}if("number"==typeof r){const e=Number(t);return isNaN(e)?r:e}if("boolean"==typeof r){const e=t.toLowerCase();return"true"===e||"false"!==e&&(console.warn("Invalid boolean format, returning default value."),r)}if("string"==typeof r)return t}return r},remove:(e="")=>{t.delete(e),r(t)},isEmpty:()=>0===Array.from(t.values()).length}};export{t as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{useId as e}from"react";import{TriggerTypes as o}from"../enums/enum.js";import{useFloatingTrigger as t}from"../hooks/useFloatingTrigger.js";import{HoverCardContext as i}from"./hoverCardContext.js";const m=({children:m,openDelay:a=1e3,closeDelay:n=100})=>{const s={id:e(),trigger:t({trigger:o.HOVER,openDelay:a,closeDelay:n})};return r(i.Provider,{value:s,children:m})};m.displayName="HoverCard";export{m as HoverCard};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import{ComponentYPositions as r}from"../enums/enum.js";import{useFloatingPosition as e}from"../hooks/useFloatingPosition.js";import{FloatingContent as t}from"../floating/FloatingContent.js";import{useHoverCardContext as i}from"./hoverCardContext.js";const n=({children:n,placement:a=r.BOTTOM,showArrow:s=!0,maxWidth:d=300,offset:l,ariaLabelledby:m,ariaDescribedby:p})=>{const{id:c,trigger:f}=i("HoverCardContent"),g=e({isOpen:f.isOpen,triggerRef:f.triggerRef,contentRef:f.contentRef,placement:a,offset:void 0!==l?l:s?10:4,showArrow:s});return o(t,{isOpen:f.isOpen,position:g.position,showArrow:s,maxWidth:d,arrowColor:"var(--itd-popover)",arrowBorderColor:"var(--itd-color-border)",trapFocus:!1,id:c,role:"dialog","aria-modal":!1,"aria-labelledby":m,"aria-describedby":p,...f.getContentProps(),children:o("div",{className:"itd-hovercard-content p-4",children:n})})};n.displayName="HoverCardContent";export{n as HoverCardContent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{isValidElement as e}from"react";import{Slot as i}from"../primitives/Slot.js";import{useHoverCardContext as o}from"./hoverCardContext.js";const a=({children:a,asChild:t=!0})=>{const{id:n,trigger:s}=o("HoverCardTrigger"),d={"aria-haspopup":"dialog","aria-expanded":s.isOpen,"aria-controls":n},g={...s.getTriggerProps(),...d,tabIndex:s.getTriggerProps().tabIndex??0};return t?e(a)?r(i,{...g,children:a}):("production"!==process.env.NODE_ENV&&console.warn("[HoverCardTrigger]: When using `asChild`, children must be a single React element. Example: <HoverCardTrigger asChild><Button /></HoverCardTrigger>."),null):r("span",{role:"button",...g,children:a})};a.displayName="HoverCardTrigger";export{a as HoverCardTrigger};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createContext as r,useContext as t}from"react";const o=r(null);function e(r){const e=t(o);if(!e)throw new Error(`<${r}> must be used within <HoverCard>.`);return e}o.displayName="HoverCardContext";export{o as HoverCardContext,e as useHoverCardContext};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{H1Wrapper as e}from"./styled.js";const t=({children:t})=>r(e,{children:r("span",{children:t})});export{t as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{H2Wrapper as e}from"./styled.js";const t=({children:t})=>r(e,{children:r("span",{children:t})});export{t as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{H3Wrapper as e}from"./styled.js";const t=({children:t})=>r(e,{children:r("span",{children:t})});export{t as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{H4Wrapper as e}from"./styled.js";const t=({children:t})=>r(e,{children:r("span",{children:t})});export{t as default};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import o from"styled-components";const t=o.h1`
|
|
2
|
+
|
|
3
|
+
span {
|
|
4
|
+
font-size: 22px;
|
|
5
|
+
font-weight: 600;
|
|
6
|
+
color: var(--itd-color-text);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
`,e=o.h2`
|
|
10
|
+
|
|
11
|
+
span {
|
|
12
|
+
font-size: 18px;
|
|
13
|
+
font-weight: 600;
|
|
14
|
+
color: var(--itd-color-text);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
`,n=o.h3`
|
|
18
|
+
|
|
19
|
+
span {
|
|
20
|
+
font-size: 16px;
|
|
21
|
+
font-weight: 600;
|
|
22
|
+
color: var(--itd-color-text);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
`,r=o.h4`
|
|
26
|
+
|
|
27
|
+
span {
|
|
28
|
+
font-size: 14px;
|
|
29
|
+
font-weight: 500;
|
|
30
|
+
color: var(--itd-color-text);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
`;export{t as H1Wrapper,e as H2Wrapper,n as H3Wrapper,r as H4Wrapper};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";const e=({className:e="",height:s=20,width:h=20})=>t("svg",{className:e,height:s,width:h,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 6",children:t("path",{d:"M8.5075141,0.264825968 L5.0020626,3.876 L1.49775146,0.264852107 C1.15510054,-0.0882753225 0.59959474,-0.0882753225 0.25696917,0.264825968 C-0.08565639,0.617927268 -0.08565639,1.19041759 0.25696917,1.54351889 L4.32424443,5.7351506 L4.41418874,5.8160742 C4.57141377,5.9391999 4.76312516,6.0030709 4.95778035,5.999885 L5.0020626,5.995 L4.930176,5.9899538 C5.2030835,6.032136 5.4818816,5.9403526 5.6809958,5.7351506 L9.748271,1.54351889 L9.8312049,1.44287094 C10.0885509,1.04584894 10.0443468,0.569954197 9.748271,0.264825968 C9.4056455,-0.0882753225 8.8501397,-0.0882753225 8.5075141,0.264825968 Z"})});export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as C}from"react/jsx-runtime";const t=({className:t="",height:e,width:s})=>C("svg",{className:t,height:e,width:s,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",children:C("path",{d:"M25,0 C11.2152344,0 0,11.2152344 0,25 C0,38.7847656 11.2152344,50 25,50 C38.7847656,50 50,38.7847656 50,25 C50,11.2152344 38.7847656,0 25,0 Z M25,46.875 C12.9378906,46.875 3.125,37.0621094 3.125,25 C3.125,12.9378906 12.9378906,3.125 25,3.125 C37.0621094,3.125 46.875,12.9378906 46.875,25 C46.875,37.0621094 37.0621094,46.875 25,46.875 Z M33.9171875,22.3328125 C34.5277344,22.9433594 34.5277344,23.9320313 33.9171875,24.5421875 C33.6121094,24.8472656 33.2121094,25 32.8125,25 C32.4128906,25 32.0128906,24.8472656 31.7078125,24.5421875 L26.5625,19.396875 L26.5625,34.375 C26.5625,35.2386719 25.8628906,35.9375 25,35.9375 C24.1371094,35.9375 23.4375,35.2386719 23.4375,34.375 L23.4375,19.396875 L18.2921875,24.5421875 C17.6816406,25.1527344 16.6929687,25.1527344 16.0828125,24.5421875 C15.4726563,23.9316406 15.4722656,22.9429687 16.0828125,22.3328125 L23.8953125,14.5203125 C24.5058594,13.9097656 25.4945313,13.9097656 26.1046875,14.5203125 L33.9171875,22.3328125 Z"})});export{t as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";const e=({className:e,height:s,width:h})=>t("svg",{className:e,height:s,width:h,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:t("path",{d:"M7.23414885,20 C6.61457659,20 6.02393992,19.722943 5.61844589,19.2381945 L0.512159937,13.1296111 C-0.252485941,12.2146448 -0.149120286,10.8375884 0.743192631,10.0535303 C1.63510994,9.26860293 2.97801573,9.37459276 3.74356585,10.2900226 L7.08178482,14.2832718 L17.632259,1.23794707 C19.2654251,-1.10773692 20.9747731,0.191203411 19.3343732,2.54691269 L8.96519861,19.0863086 C8.58479718,19.6321359 7.98093604,19.9681277 7.32779395,19.9977979 C7.29625867,19.9991308 7.26523202,20 7.23414885,20 Z"})});export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";const s=({className:s,height:e,width:i})=>t("svg",{className:s,height:e,width:i,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 10",children:t("polygon",{points:"20 0.5 10 10.5 0 0.5"})});export{s as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as L}from"react/jsx-runtime";const C=({className:C,height:t,width:e})=>L("svg",{className:C,height:t,width:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15.56 20",children:L("path",{d:"M7.77777778,0 C11.0185185,0 13.6111111,2.5 13.6111111,5.625 L13.6111111,5.625 L13.6111111,8.125 C14.712963,8.125 15.5555556,8.9375 15.5555556,10 L15.5555556,10 L15.5555556,18.125 C15.5555556,19.1875 14.712963,20 13.6111111,20 L13.6111111,20 L1.94444444,20 C0.842592593,20 0,19.1875 0,18.125 L0,18.125 L0,10 C0,8.9375 0.842592593,8.125 1.94444444,8.125 L1.94444444,8.125 L1.94444444,5.625 C1.94444444,2.5 4.53703704,0 7.77777778,0 Z M13.6111111,9.375 L1.94444444,9.375 C1.55555556,9.375 1.2962963,9.625 1.2962963,10 L1.2962963,10 L1.2962963,18.125 C1.2962963,18.5 1.55555556,18.75 1.94444444,18.75 L1.94444444,18.75 L13.6111111,18.75 C14,18.75 14.2592593,18.5 14.2592593,18.125 L14.2592593,18.125 L14.2592593,10 C14.2592593,9.625 14,9.375 13.6111111,9.375 L13.6111111,9.375 Z M7.77777778,11.25 C8.87962963,11.25 9.72222222,12.0625 9.72222222,13.125 C9.72222222,13.9375 9.2037037,14.625 8.42592593,14.875 L8.42592593,14.875 L8.42592593,16.25 C8.42592593,16.625 8.16666667,16.875 7.77777778,16.875 C7.38888889,16.875 7.12962963,16.625 7.12962963,16.25 L7.12962963,16.25 L7.12962963,14.875 C6.35185185,14.625 5.83333333,13.9375 5.83333333,13.125 C5.83333333,12.0625 6.67592593,11.25 7.77777778,11.25 Z M7.77777778,12.5 C7.38888889,12.5 7.12962963,12.75 7.12962963,13.125 C7.12962963,13.5 7.38888889,13.75 7.77777778,13.75 C8.16666667,13.75 8.42592593,13.5 8.42592593,13.125 C8.42592593,12.75 8.16666667,12.5 7.77777778,12.5 Z M7.77777778,1.25 C5.25,1.25 3.24074074,3.1875 3.24074074,5.625 L3.24074074,5.625 L3.24074074,8.125 L12.3148148,8.125 L12.3148148,5.625 C12.3148148,3.1875 10.3055556,1.25 7.77777778,1.25 Z"})});export{C as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as C}from"react/jsx-runtime";const L=({className:L,height:t,width:e})=>C("svg",{className:L,height:t,width:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17.14 20",children:C("g",{children:C("path",{d:"M10.6942857,0 C11.0010791,0.000653835678 11.3016101,0.0602197914 11.5807933,0.17234722 C11.5906067,0.175782823 11.600024,0.179304571 11.6092946,0.183110337 C11.9014454,0.305614444 12.1700513,0.485754742 12.3966667,0.716666667 L16.4642857,4.87809524 C16.9004341,5.32210319 17.1442089,5.91999313 17.1428627,6.54238095 L17.1428627,17.6190476 C17.1412828,18.9333586 16.0762158,19.9984257 14.7619048,20 L2.38095238,20 C1.06664136,19.9984257 0.00157434111,18.9333586 0,17.6190476 L0,2.38095238 C0.00157434111,1.06664136 1.06664136,0.00157434111 2.38095238,0 L10.6942857,0 Z M10.6942857,0.952380952 L2.38095238,0.952380952 C1.59197417,0.952380952 0.952380952,1.59197417 0.952380952,2.38095238 L0.952380952,17.6190476 C0.952380952,18.4080258 1.59197417,19.047619 2.38095238,19.047619 L14.7619048,19.047619 C15.550883,19.047619 16.1904815,18.4080258 16.1904815,17.6190476 L16.1904815,6.54238095 C16.1908054,6.42258178 16.1760218,6.3042826 16.1471693,6.19003767 L13.3333333,6.19047619 C12.0190223,6.18890185 10.9539553,5.12383483 10.952381,3.80952381 L10.9527499,0.976588339 C10.8680844,0.960852173 10.7816088,0.952648217 10.6942857,0.952380952 Z M8.57142857,7.14285714 C11.4643487,7.14285714 13.8095238,9.48803226 13.8095238,12.3809524 C13.8061126,15.2724584 11.4629345,17.6156364 8.57142857,17.6190476 C5.67850845,17.6190476 3.33333333,15.2738725 3.33333333,12.3809524 C3.33333333,9.48803226 5.67850845,7.14285714 8.57142857,7.14285714 Z M8.57142857,8.0952381 C6.20449393,8.0952381 4.28571429,10.0140177 4.28571429,12.3809524 C4.28571429,14.747887 6.20449393,16.6666667 8.57142857,16.6666667 C10.9383632,16.6666667 12.8571429,14.747887 12.8571429,12.3809524 C12.8542567,10.0152143 10.9371667,8.09812426 8.57142857,8.0952381 Z M8.57142857,14.5238095 C8.96591768,14.5238095 9.28571429,14.8436061 9.28571429,15.2380952 C9.28571429,15.6325843 8.96591768,15.952381 8.57142857,15.952381 C8.17693946,15.952381 7.85714286,15.6325843 7.85714286,15.2380952 C7.85714286,14.8436061 8.17693946,14.5238095 8.57142857,14.5238095 Z M10.4117386,10.4624806 C10.6583051,11.38607 10.1821095,12.3493571 9.29857143,12.7142857 C9.13919142,12.7918096 9.04072397,12.9562334 9.04761905,13.1333333 L9.04761905,13.5714286 C9.04761905,13.8344213 8.83442131,14.047619 8.57142857,14.047619 C8.30843583,14.047619 8.0952381,13.8344213 8.0952381,13.5714286 L8.0952381,13.1333333 C8.0852308,12.5696385 8.41693475,12.0558078 8.9347619,11.8328571 C9.35157074,11.660286 9.59012627,11.2189582 9.50619048,10.7757143 C9.43115861,10.390243 9.12975696,10.0888414 8.74428571,10.0138095 C8.46579161,9.96240848 8.17886784,10.0376133 7.96139221,10.2190118 C7.74391659,10.4004102 7.61845022,10.6691837 7.61904762,10.952381 C7.61904762,11.2153737 7.40584988,11.4285714 7.14285714,11.4285714 C6.8798644,11.4285714 6.66666667,11.2153737 6.66666667,10.952381 C6.66736879,9.99644586 7.37650725,9.18910025 8.32436721,9.0651088 C9.27222718,8.94111734 10.1651721,9.53889123 10.4117386,10.4624806 Z M8.0952381,5.23809524 C8.35823083,5.23809524 8.57142857,5.45129298 8.57142857,5.71428571 C8.57142857,5.97727845 8.35823083,6.19047619 8.0952381,6.19047619 L3.33333333,6.19047619 C3.0703406,6.19047619 2.85714286,5.97727845 2.85714286,5.71428571 C2.85714286,5.45129298 3.0703406,5.23809524 3.33333333,5.23809524 L8.0952381,5.23809524 Z M11.904,1.574 L11.9047619,3.80952381 C11.9047619,4.59850202 12.5443551,5.23809524 13.3333333,5.23809524 L15.486,5.238 L11.904,1.574 Z M6.19047619,2.85714286 C6.45346893,2.85714286 6.66666667,3.0703406 6.66666667,3.33333333 C6.66666667,3.59632607 6.45346893,3.80952381 6.19047619,3.80952381 L3.33333333,3.80952381 C3.0703406,3.80952381 2.85714286,3.59632607 2.85714286,3.33333333 C2.85714286,3.0703406 3.0703406,2.85714286 3.33333333,2.85714286 L6.19047619,2.85714286 Z"})})});export{L as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as i,jsxs as t}from"react/jsx-runtime";const l=({className:l="",height:o=24,width:e=24})=>i("svg",{className:l,height:o,width:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:t("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[i("polygon",{points:"0 0 24 0 24 24 0 24"}),i("rect",{fill:"#000000",opacity:"0.3",x:"2",y:"4",width:"20",height:"16",rx:"2"}),i("polygon",{fill:"#000000",opacity:"0.3",points:"4 20 10.5 11 17 20"}),i("polygon",{fill:"#000000",points:"11 20 15.5 14 20 20"}),i("circle",{fill:"#000000",opacity:"0.3",cx:"18.5",cy:"8.5",r:"1.5"})]})});export{l as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,jsxs as t}from"react/jsx-runtime";const i=({className:i="",height:l=24,width:L=24})=>e("svg",{className:i,height:l,width:L,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:t("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[e("rect",{x:"0",y:"0",width:"24",height:"24"}),e("path",{d:"M6,8 L18,8 L17.106535,19.6150447 C17.04642,20.3965405 16.3947578,21 15.6109533,21 L8.38904671,21 C7.60524225,21 6.95358004,20.3965405 6.89346498,19.6150447 L6,8 Z M8,10 L8.45438229,14.0894406 L15.5517885,14.0339036 L16,10 L8,10 Z",fill:"#000000",fillRule:"nonzero"}),e("path",{d:"M14,4.5 L14,3.5 C14,3.22385763 13.7761424,3 13.5,3 L10.5,3 C10.2238576,3 10,3.22385763 10,3.5 L10,4.5 L5.5,4.5 C5.22385763,4.5 5,4.72385763 5,5 L5,5.5 C5,5.77614237 5.22385763,6 5.5,6 L18.5,6 C18.7761424,6 19,5.77614237 19,5.5 L19,5 C19,4.72385763 18.7761424,4.5 18.5,4.5 L14,4.5 Z",fill:"#000000",opacity:"0.3"})]})});export{i as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,jsxs as l}from"react/jsx-runtime";const t=({className:t="",height:i=24,width:o=24})=>e("svg",{className:t,height:i,width:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:l("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[e("path",{d:"M2,13 C2,12.5 2.5,12 3,12 C3.5,12 4,12.5 4,13 C4,13.3333333 4,15 4,18 C4,19.1045695 4.8954305,20 6,20 L18,20 C19.1045695,20 20,19.1045695 20,18 L20,13 C20,12.4477153 20.4477153,12 21,12 C21.5522847,12 22,12.4477153 22,13 L22,18 C22,20.209139 20.209139,22 18,22 L6,22 C3.790861,22 2,20.209139 2,18 C2,15 2,13.3333333 2,13 Z",fill:"#000000",fillRule:"nonzero",opacity:"0.3"}),e("rect",{fill:"#000000",opacity:"0.3",x:"11",y:"2",width:"2",height:"14",rx:"1"}),e("path",{d:"M12.0362375,3.37797611 L7.70710678,7.70710678 C7.31658249,8.09763107 6.68341751,8.09763107 6.29289322,7.70710678 C5.90236893,7.31658249 5.90236893,6.68341751 6.29289322,6.29289322 L11.2928932,1.29289322 C11.6689749,0.916811528 12.2736364,0.900910387 12.6689647,1.25670585 L17.6689647,5.75670585 C18.0794748,6.12616487 18.1127532,6.75845471 17.7432941,7.16896473 C17.3738351,7.57947475 16.7415453,7.61275317 16.3310353,7.24329415 L12.0362375,3.37797611 Z",fill:"#000000",fillRule:"nonzero"})]})});export{t as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,jsxs as l}from"react/jsx-runtime";const t=({className:t="",height:i=24,width:C=24})=>e("svg",{className:t,height:i,width:C,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:l("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[e("rect",{x:"0",y:"0",width:"24",height:"24"}),e("path",{d:"M14.2928932,16.7071068 C13.9023689,16.3165825 13.9023689,15.6834175 14.2928932,15.2928932 C14.6834175,14.9023689 15.3165825,14.9023689 15.7071068,15.2928932 L19.7071068,19.2928932 C20.0976311,19.6834175 20.0976311,20.3165825 19.7071068,20.7071068 C19.3165825,21.0976311 18.6834175,21.0976311 18.2928932,20.7071068 L14.2928932,16.7071068 Z",fill:"#000000",fillRule:"nonzero",opacity:"0.3"}),e("path",{d:"M11,16 C13.7614237,16 16,13.7614237 16,11 C16,8.23857625 13.7614237,6 11,6 C8.23857625,6 6,8.23857625 6,11 C6,13.7614237 8.23857625,16 11,16 Z M11,18 C7.13400675,18 4,14.8659932 4,11 C4,7.13400675 7.13400675,4 11,4 C14.8659932,4 18,7.13400675 18,11 C18,14.8659932 14.8659932,18 11,18 Z",fill:"#000000",fillRule:"nonzero"}),e("path",{d:"M10.5,10.5 L10.5,9.5 C10.5,9.22385763 10.7238576,9 11,9 C11.2761424,9 11.5,9.22385763 11.5,9.5 L11.5,10.5 L12.5,10.5 C12.7761424,10.5 13,10.7238576 13,11 C13,11.2761424 12.7761424,11.5 12.5,11.5 L11.5,11.5 L11.5,12.5 C11.5,12.7761424 11.2761424,13 11,13 C10.7238576,13 10.5,12.7761424 10.5,12.5 L10.5,11.5 L9.5,11.5 C9.22385763,11.5 9,11.2761424 9,11 C9,10.7238576 9.22385763,10.5 9.5,10.5 L10.5,10.5 Z",fill:"#000000",opacity:"0.3"})]})});export{t as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,jsxs as t}from"react/jsx-runtime";const i=({className:i="",height:l=24,width:h=24})=>e("svg",{className:i,height:l,width:h,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:t("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[e("rect",{x:"0",y:"0",width:"24",height:"24"}),e("path",{d:"M14.2928932,16.7071068 C13.9023689,16.3165825 13.9023689,15.6834175 14.2928932,15.2928932 C14.6834175,14.9023689 15.3165825,14.9023689 15.7071068,15.2928932 L19.7071068,19.2928932 C20.0976311,19.6834175 20.0976311,20.3165825 19.7071068,20.7071068 C19.3165825,21.0976311 18.6834175,21.0976311 18.2928932,20.7071068 L14.2928932,16.7071068 Z",fill:"#000000",fillRule:"nonzero",opacity:"0.3"}),e("path",{d:"M11,16 C13.7614237,16 16,13.7614237 16,11 C16,8.23857625 13.7614237,6 11,6 C8.23857625,6 6,8.23857625 6,11 C6,13.7614237 8.23857625,16 11,16 Z M11,18 C7.13400675,18 4,14.8659932 4,11 C4,7.13400675 7.13400675,4 11,4 C14.8659932,4 18,7.13400675 18,11 C18,14.8659932 14.8659932,18 11,18 Z",fill:"#000000",fillRule:"nonzero"}),e("rect",{fill:"#000000",opacity:"0.3",x:"9",y:"10.5",width:"4",height:"1",rx:"0.5"})]})});export{i as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,jsxs as r}from"react/jsx-runtime";import{memo as t,useState as o,useEffect as a,useMemo as s,Suspense as i}from"react";import{BrokenImageContainer as n,BrokenImagePlaceholder as c,BrokenImageIcon as d,ImageWrapper as l}from"./styled.js";import m from"../node_modules/lucide-react/dist/esm/icons/image-off.js";var A=t(t=>{const[A,u]=o(!1),[h,g]=o({}),[f,b]=o(!1),[p,k]=o(!0);a(()=>{if(t.src){if(""===t.src)throw new Error("You must pass the src attribute!");return E(),()=>{}}},[t.src]);const E=()=>{const e={...t};e.src=t.src,t.src.indexOf("undefined")>-1&&(e.src=""),e.className&&delete e.className,e.source&&delete e.source,g(e)},N=e=>{const r=e.target;1!==r.naturalWidth&&1!==r.naturalHeight?(u(!0),t.onLoad&&t.onLoad()):w()},w=e=>{b(!0),k(!1),t.onError?t.onError():console.error("ITD Image Loading Error ("+t.src+"):",e?.currentTarget)},L=()=>{const e={...h};return e.brokenWidth&&delete e.brokenWidth,e.brokenHeight&&delete e.brokenHeight,e},B=s(()=>{let e="itd-image";return t.className&&(e+=" "+t.className),f&&(e+=" itd-image-error itd-image-error-broken"),e},[t.className,f]);return e(i,{children:(()=>{if(f){const o=t.brokenWidth||t.width||100,a=t.brokenHeight||t.height||100,s="number"==typeof o?Math.min(o/2,30):30;return r(n,{className:B,children:[e(c,{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",alt:"Broken image",width:o,height:a}),e(d,{children:e(m,{size:s,strokeWidth:1.5})})]})}return t.source&&p?r("picture",{children:[e("source",{srcSet:t.source,type:"image/webp"}),e(l,{...L(),onLoad:N,onError:w,draggable:"false",className:B,"data-show":A?"true":"false"})]}):e(l,{...L(),onLoad:N,onError:w,draggable:"false",className:B,"data-show":A?"true":"false"})})()})});export{A as default};
|
package/dist/es/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./locales/tr/itd.json.js";import o from"./locales/en/itd.json.js";import r from"./locales/tr/calendar.json.js";import t from"./locales/en/calendar.json.js";export{default as ITDContext,ITDProvider,useITD}from"./context/ITDContext.js";export{default as ITDThemeProvider}from"./context/ITDThemeProvider.js";export{default as lightTheme}from"./helpers/theme/light.js";export{default as darkTheme}from"./helpers/theme/dark.js";export{default as DetermineNewHeight}from"./helpers/aspectratio/DetermineNewHeight.js";export{default as DetermineNewWidth}from"./helpers/aspectratio/DetermineNewWidth.js";export{default as FindSelector}from"./helpers/css/FindSelector.js";export{default as GetCountryCodeByCurrencyCode}from"./helpers/country/GetCountryCodeByCurrencyCode.js";export{default as GetCountryCodeByLanguage}from"./helpers/country/GetCountryCodeByLanguage.js";export{default as ConvertCurrency}from"./helpers/currency/ConvertCurrency.js";export{default as GetByCurrency}from"./helpers/currency/GetByCurrency.js";export{default as GetCurrencyFormat}from"./helpers/currency/GetCurrencyFormat.js";export{default as GetCurrencySymbol}from"./helpers/currency/GetCurrencySymbol.js";export{default as GetDecimalByCurrency}from"./helpers/currency/GetDecimalByCurrency.js";export{default as AddDefaultThemeStyle}from"./helpers/theme/AddDefaultThemeStyle.js";export{generateColorScaleFromBase as GenerateColorScale,generateColorScaleFromBase}from"./helpers/theme/GenerateColorScale.js";export{getContrastText,hexToRgba,withOpacity}from"./helpers/theme/Color.js";export{ALERT_TOKENS,BUTTON_SIZE_MAP,CARD_TOKENS,ICON_TOKENS,INPUT_SIZE_MAP,MODAL_TOKENS,SELECT_SIZE_MAP,SPACING_TOKENS,TYPOGRAPHY_TOKENS}from"./helpers/theme/tokens.js";export{CSS_VARIABLES_MAP,injectDesignTokens,injectThemeColors}from"./helpers/theme/cssVariables.js";export{default as IsValidJSON}from"./helpers/json/IsValidJSON.js";export{default as AddZero}from"./helpers/math/AddZero.js";export{default as RemoveUnits}from"./helpers/remover/RemoveUnits.js";export{default as ChunkArray}from"./helpers/array/ChunkArray.js";export{default as FileChecker}from"./helpers/checker/FileChecker.js";export{default as CheckFileURL}from"./helpers/checker/CheckFileURL.js";export{default as UniUpperCase}from"./helpers/string/UniUpperCase.js";export{default as FormatBytes}from"./helpers/binary/FormatBytes.js";export{default as GetTypeByFileType}from"./helpers/binary/GetTypeByFileType.js";export{default as Wait}from"./helpers/promise/Wait.js";export{default as SVGLoader}from"./helpers/svg/SVGLoader.js";export{default as FormatDate}from"./helpers/datetime/FormatDate.js";export{default as FormatDateTime}from"./helpers/datetime/FormatDateTime.js";export{default as FormatSimpleDate}from"./helpers/datetime/FormatSimpleDate.js";export{default as FormatSimpleDateTime}from"./helpers/datetime/FormatSimpleDateTime.js";export{default as FormatTime}from"./helpers/datetime/FormatTime.js";export{default as AddDefaultUnit}from"./helpers/unit/AddDefaultUnit.js";export{default as Base64Encode}from"./helpers/base64/Base64Encode.js";export{default as Base64Decode}from"./helpers/base64/Base64Decode.js";export{default as toKebabCase}from"./helpers/format/ToKebabCase.js";export{default as useReCaptcha}from"./hooks/useReCaptcha.js";export{default as useConstructor}from"./hooks/useConstructor.js";export{default as useAddExternalCSS}from"./hooks/useAddExternalCSS.js";export{default as useOnClickOutside}from"./hooks/useOnClickOutside.js";export{default as useOnESCKeyDown}from"./hooks/useOnESCKeyDown.js";export{default as useSingleQuery}from"./hooks/useSingleQuery.js";export{default as useMultiQuery}from"./hooks/useMultiQuery.js";export{default as useOnResize}from"./hooks/useOnResize.js";export{default as useConnectionStatus}from"./hooks/useConnectionStatus.js";export{default as useComponentSize}from"./hooks/useComponentSize.js";export{default as useCoreFetch}from"./hooks/useCoreFetch.js";export{default as useContextBridge}from"./hooks/useContextBridge.js";export{default as useKeyboardShortcut}from"./hooks/useKeyboardShortcut.js";export{default as useOrientation}from"./hooks/useOrientation.js";export{default as useAvoidCollision}from"./hooks/useAvoidCollision.js";export{default as H1}from"./html/header/H1.js";export{default as H2}from"./html/header/H2.js";export{default as H3}from"./html/header/H3.js";export{default as H4}from"./html/header/H4.js";export{default as LockIcon}from"./icons/Lock.js";export{default as ArrowIcon}from"./icons/Arrow.js";export{default as UploadIcon}from"./icons/Upload.js";export{default as BackToTop}from"./icons/BackToTop.js";export{default as Checkmark}from"./icons/Checkmark.js";export{default as InlineSelectArrow}from"./icons/InlineSelectArrow.js";export{default as Trash}from"./icons/Trash.js";export{default as ZoomIn}from"./icons/ZoomIn.js";export{default as ZoomOut}from"./icons/ZoomOut.js";export{default as Picture}from"./icons/Picture.js";export{default as NoData}from"./icons/NoData.js";export{cn}from"./utils/cn.js";export{default as InlineSVGCached}from"./utils/InlineSVGCached.js";export{default as Select}from"./select/index.js";export{default as Form}from"./form/index.js";export{default as Checkbox}from"./checkbox/index.js";export{default as Accordion}from"./accordion/index.js";export{default as Calendar}from"./calendar/index.js";export{default as DatePicker}from"./datepicker/index.js";export{default as Input}from"./input/index.js";export{default as TextArea}from"./textarea/index.js";export{default as Switch}from"./switch/index.js";export{default as Upload}from"./upload/index.js";export{default as ModalManager}from"./modal/index.js";export{default as Notification}from"./notification/index.js";export{default as Radio}from"./radio/index.js";export{default as Image}from"./image/index.js";export{default as ConsoleLog}from"./logger/index.js";export{default as Button}from"./button/index.js";export{default as Alert}from"./alert/index.js";export{default as Result}from"./result/index.js";export{default as ALink}from"./alink/index.js";export{default as Spin}from"./spin/index.js";export{default as BackTop}from"./back-top/index.js";export{default as Status}from"./status/index.js";export{default as Progress}from"./progress/index.js";export{default as TinyScrollbar}from"./tinyscrollbar/index.js";export{default as Tabs}from"./tabs/index.js";export{default as Label}from"./label/index.js";export{Card}from"./card/Card.js";export{CardHeader}from"./card/CardHeader.js";export{CardTitle}from"./card/CardTitle.js";export{CardDescription}from"./card/CardDescription.js";export{CardAction}from"./card/CardAction.js";export{CardTabs}from"./card/CardTabs.js";export{CardContent}from"./card/CardContent.js";export{CardFooter}from"./card/CardFooter.js";export{PopoverContent}from"./popover/PopoverContent.js";export{Popover}from"./popover/Popover.js";export{PopoverTrigger}from"./popover/PopoverTrigger.js";export{Tooltip}from"./tooltip/Tooltip.js";export{TooltipTrigger}from"./tooltip/TooltipTrigger.js";export{TooltipContent}from"./tooltip/TooltipContent.js";export{HoverCard}from"./hovercard/HoverCard.js";export{HoverCardTrigger}from"./hovercard/HoverCardTrigger.js";export{HoverCardContent}from"./hovercard/HoverCardContent.js";export{default as Table}from"./table/index.js";export{default as Flex}from"./flex/index.js";export{ButtonSizes,ButtonSizesSlug,ButtonTypes,ComponentSizes,ComponentSizesSlug,ComponentVariants,ComponentXPositions,ComponentYPositions,ConnectionStatus,FileExtensions,FileTypes,FormValidationTypes,FormValidations,ModalState,ThemeAppearances,TooltipPositions,TriggerTypes}from"./enums/enum.js";export{AlertTitle}from"./alert/Title.js";export{AlertDescription}from"./alert/Description.js";const s={tr:{itd:e,calendar:r},en:{itd:o,calendar:t}};export{t as enCalendarLocale,s as locales,r as trCalendarLocale};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsxs as e,jsx as t}from"react/jsx-runtime";import{forwardRef as n,useRef as r,useId as o,useMemo as i,useState as a,useEffect as u,useImperativeHandle as l}from"react";import{PatternFormat as s,NumericFormat as d}from"../node_modules/react-number-format/dist/react-number-format.es.js";import{ErrorBorder as c,ErrorSVGIcon as p,ErrorTooltip as m}from"../utils/CommonStyledComponents.js";import{ErrorAnnouncement as f,getErrorId as v,getErrorAriaProps as g}from"../utils/ErrorAnnouncement.js";import h from"../utils/GetSizeSlugBySize.js";import{InputTypes as y}from"../types/InputProps.js";import{ComponentSizes as w}from"../enums/enum.js";import E from"../node_modules/lucide-react/dist/esm/icons/eye-off.js";import N from"../node_modules/lucide-react/dist/esm/icons/eye.js";import D from"../node_modules/lucide-react/dist/esm/icons/lock.js";let b=!1,S=!1;const C=n((n,C)=>{const{id:M,placeholder:R="",value:k="",defaultValue:x="",type:L=y.TEXT,className:U="",style:B={},size:I=w.DEFAULT,variant:T="default",prefix:j=null,suffix:P=null,addonBefore:V=null,addonAfter:F=null,locked:_=null,minValue:z=0,maxValue:A=-1,maxLength:O=-1,disabled:X=!1,autoComplete:$=!1,keepFocus:K=!1,mask:W=null,allowEmptyFormatting:Y=!1,allowLeadingZeros:Z=!1,decimalSeparator:G=".",thousandSeparator:H=",",decimalScale:q=2,focusRef:J=null,onChange:Q=null,onUpdate:ee=null,onFocus:te=null,onBlur:ne=null,onPressEnter:re=null,onKeyDown:oe=null,children:ie=null,...ae}=n,ue=r(null),le=r(null),se=o(),de=i(()=>M||"itd-input-"+se,[M]),[ce,pe]=a(""),[me,fe]=a(""),[ve,ge]=a(!1),[he,ye]=a(!1),[we,Ee]=a(!1),[Ne,De]=a(!1),[be,Se]=a(!0),[Ce,Me]=a(!1),Re=()=>{!$&&be&&Se(!1)},ke=e=>{Re(),le.current&&!_&&(le.current.focus(),ye(!0)),e&&e.preventDefault&&e.preventDefault(),e&&e.stopPropagation&&e.stopPropagation()};u(()=>{(()=>{if(b)return;b=!0,document.addEventListener("keydown",e=>{e&&"Tab"===e.key&&(S=!0)});const e=()=>{S=!1};document.addEventListener("mousedown",e,{passive:!0}),document.addEventListener("pointerdown",e,{passive:!0}),document.addEventListener("touchstart",e,{passive:!0})})(),xe();const e=void 0!==k&&""!==k?L===y.NUMBER?Number(k):String(k):void 0!==x&&""!==x?L===y.NUMBER?Number(x):String(x):L===y.NUMBER?0:"";Le(e);const t=e=>{try{const t=(le.current?.id||"").split("_")[0];e?.detail?.formId&&t&&e.detail.formId===t&&!$&&be&&Se(!1)}catch{}};return document.addEventListener("itd-input-unlock",t,{passive:!0}),()=>{document.removeEventListener("itd-input-unlock",t)}},[]),u(()=>{if(!he)return;const e=e=>{ue.current&&!ue.current.contains(e.target)&&(ge(!1),ye(!1),K&&J?.current&&Ee(J.current.contains(e.target)))};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[he,K,J]),u(()=>{void 0!==k&&""!==k&&Le(L===y.NUMBER?Number(k):String(k),!0,""!==k)},[k]);const xe=()=>{le.current&&ue.current&&K&&le.current&&ue.current&&(le.current?.focus(),ye(!0))},Le=(e,t=!0,n=!0)=>{pe(e),ee&&ee(e,t,n)};l(C,()=>({setFocus(){(le.current||ue.current)&&(ye(!0),le.current?.focus()),Ee(!0)},reset(e=!0,t=!0){pe(x&&("string"==typeof x||"number"==typeof x)?x:""),fe(""),Le(L===y.NUMBER?0:"",e,t)},setValue(e,t=!0,n=!0){pe(e),Le(e,t,n)},getValue:()=>ce,setError(e){fe(e)},forceUpdate(){Le(ce)},clear(){pe("")},scrollIntoView(e){le.current?.scrollIntoView(e)}}));const Ue=e=>{const t="string"==typeof e&&W&&e.replace(/\D+/g,"").length<W.replace(/\D+/g,"").length;Le(e,!0,!t),Q&&Q(e)},Be=e=>{Ue(e.value)},Ie=e=>{le.current?.focus(),ye(!0),ge(!0===S),!$&&be&&Se(!1),te&&te(e)},Te=e=>{ye(!1),ge(!1),$||Se(!0),K&&we&&le.current&&ue.current&&(ye(!0),le.current.focus()),W&&"string"==typeof ce&&ce.replace(/\D+/g,"").length<W.replace(/\D+/g,"").length&&(!x||"string"!=typeof x&&"number"!=typeof x||Le(x,!0,!1)),ne?ne(e):e.target.blur()},je=e=>{"Tab"===e.key&&ge(!0),13===e.keyCode&&re&&re(e),oe&&oe(e)},Pe=()=>{const e=L===y.PASSWORD&&Ce?y.TEXT:L;let n={id:de,placeholder:R,value:ce,type:e,spellCheck:"false",autoCorrect:"off",autoCapitalize:"none",className:Ke(),onFocus:Ie,onBlur:Te,onKeyDown:je,disabled:X,...g(de,""!==me),...ae};return L!==y.NUMBER&&L!==y.CURRENCY||(0!==z&&(n["aria-valuemin"]=z),-1!==A&&(n["aria-valuemax"]=A),"number"==typeof ce&&(n["aria-valuenow"]=ce)),_&&(n["data-locked"]=!0,n["aria-readonly"]=!0),n=$?{...n,autoComplete:"on",..._?{readOnly:!0}:{}}:{...n,autoComplete:"off","aria-autocomplete":"none",name:`${de}-${Math.random().toString(36).substring(7)}`,onMouseDown:Re,onPointerDown:Re,onTouchStart:Re,readOnly:be||!!_},W?(n={...n,format:W,mask:"_",allowEmptyFormatting:Y,onChange:e=>Ue(e.target.value),"aria-placeholder":`Format: ${W.replace(/_/g,"0")}`},t(s,{...n,getInputRef:le})):L===y.CURRENCY?(n={...n,maxLength:O,type:y.TEXT,allowLeadingZeros:Z,decimalSeparator:G,thousandSeparator:H,decimalScale:q,getInputRef:le,onValueChange:Be,onMouseDown:Re,isAllowed:e=>{const{floatValue:t}=e;return t>=z&&(t<=A||-1===A)||void 0===t}},t(d,{...n})):L===y.NUMBER?(n={...n,type:y.NUMBER,maxLength:O,onMouseDown:Re,onChange:e=>{const t=Number(e.target.value.replace(/,/g,"."));t>=z&&-1===A||t>=z&&t<=A?Ue(t):t<z?Ue(z):t>A&&Ue(A)},ref:le},t("input",{...n})):(n={...n,maxLength:O,onChange:e=>Ue(e.target.value),onMouseDown:Re,ref:le},t("input",{...n}))},Ve=()=>{if(V)return t("div",{className:"itd-input-addon-before itd-input-"+h(I),onMouseDown:X||_?void 0:ke,children:V})},Fe=()=>{if(F)return t("div",{className:"itd-input-addon-after itd-input-"+h(I),onMouseDown:X||_?void 0:ke,children:F})},_e=()=>{if(j)return t("div",{className:"itd-input-prefix",onMouseDown:X||_?void 0:ke,children:j})},ze=()=>{if(P||me)return e("div",{className:"itd-input-suffix",onMouseDown:X||_?void 0:ke,children:[$e(),P]})},Ae=()=>{if(_)return t("div",{className:"itd-input-locked",children:"boolean"!=typeof _?_:t(D,{size:14})})},Oe=()=>{if(L!==y.PASSWORD||X||_)return null;return t("div",{className:"itd-input-suffix itd-input-password-toggle",onMouseDown:e=>{e.preventDefault(),Me(e=>!e)},role:"button",tabIndex:-1,"aria-label":Ce?"Hide password":"Show password",children:t(Ce?E:N,{size:16})})},Xe=()=>{if(""!==me&&!X&&!_)return t(c,{})},$e=()=>{if(""===me||X||_)return;return e("div",{...{className:"itd-input-status itd-input-failed itd-failed-status",onPointerOver:()=>De(!0),onPointerOut:()=>De(!1)},children:[Ne?t(m,{className:"itd-input-error-tooltip","aria-hidden":"true",children:me}):null,p]})},Ke=()=>"itd-input-default-input",We=i(()=>{let e="itd-input itd-input-"+L;return e+=" itd-input-"+h(I),e+=" itd-input-"+T,W&&(e+=" itd-input-masked"),X&&(e+=" itd-input-disabled"),_&&(e+=" itd-input-locked"),me&&(e+=" itd-input-error"),""!==U&&(e+=" "+U),he&&ve&&(e+=" keyboard-focus"),he&&(e+=" focused"),e},[W,T,I,me,X,U,_,he,ve]);return(()=>{if(ie)throw new Error("ITD Input Error: Remove the children!");return e("div",{className:We,ref:ue,style:B,children:[Ve(),e("div",{className:"itd-input-content itd-input-"+h(I),...null!==j?{"data-has-prefix":""}:{},...null!==P?{"data-has-suffix":""}:{},children:[_e(),e("div",{className:"itd-input-middle",children:[Pe(),Xe()]}),e("div",{className:"itd-input-icons-wrapper",children:[ze(),Oe(),Ae()]})]}),Fe(),""===me||X||_?null:t(f,{id:v(de),message:me})]})})()});C.displayName="ITD-Input";export{C as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{useMemo as r}from"react";const t=({id:t,htmlFor:a,children:l=null,className:o=""})=>{const d=r(()=>{let e="itd-label";return e+=" flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",""!==o&&(e+=" "+o),e},[]);return(()=>{if(!l)throw new Error("ITD Label Error: Add the children!");return e("label",{id:t,className:d,htmlFor:a,children:l})})()};t.displayName="ITD-Label";export{t as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],e=["Su","Mo","Tu","We","Th","Fr","Sa"],r=["January","February","March","April","May","June","July","August","September","October","November","December"],y=0,u="MM/DD/YYYY",d={weekdaysLong:a,weekdaysShort:e,months:r,firstDay:0,format:u};export{d as default,y as firstDay,u as format,r as months,a as weekdaysLong,e as weekdaysShort};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a="Success",e="Error",i={noData:"No Data"},n={username:"Username",email:"E-Mail",password:"Password",confirmPassword:"Confirm password",typeYourNoteHere:"Type your note here",selectGender:"Select Gender",selectCurrency:"Select Currency",selectLanguage:"Select Language",selectCountry:"Select Country",birthday:"Birthday",multipleSelection:"Selected ({{- count}})"},r={enabledNotifications:"Enable Notifications",create:"Create",read:"Read",update:"Update",delete:"Delete",selectAll:"Select All",termsAndConditions:"I have read and accepted the <a href='/terms-and-conditions'>terms and conditions</a>",campaignTitle:"Sign Up and Get 10% Off",campaignDescription:"It's our first time here? Register and get 10% off your first order.",formTitle:"Sign Up",formDescription:"By registering, you can shop faster and easier."},o={all:"All",male:"Male",female:"Female",languages:{turkish:"Turkish",english:"English"}},t={submit:"Submit",reset:"Reset"},s={required:"This field is required!",minLength:"Should contain at least {{- length}} characters",maxLength:"Is too long. Max size is {{- length}}",passwordRule:"Your password must be at least 8 characters long, contain at least one digit, one uppercase letter, one lowercase letter, one special character, and must not contain spaces.",invalidEmailAddress:"Invalid email address",passwordsDontMatch:"The two passwords that you entered do not match!",usernameRule:"Only English letters, digits and symbols (-_.). No space is allowed",wrongTCIdentity:"Wrong TC Identity Number",fieldMustBeTheSame:"This field must be the same as: {{- fields}}",siteUsernameRule:"Only English lowercase letters, digits and symbols (-_.). No space is allowed, no uppercase letters are allowed",adminUsernameRule:"Only English letters and digits. No symbols (-_. vs) and no space is allowed",invalidURL:"Invalid URL",fieldMustBeDifferent:"This field must be different from: {{- fields}}",forbiddenWords:"You cannot use this word in this field."},l={header:"Drag and drop an file",hint:"or Browse to choose a file",fileUploading:"File uploading...",info:"Total: {{- total}} - {{- estimated}} s remaining.",delete:"Delete",preview:"Preview",error:"Error",fileFormatError:"You can only upload {{fileFormat}} file",fileSizeError:"File must smaller than {{fileSize}}",fileUploadSuccess:"File successfully uploaded.",fileUploadFailed:"File upload failed!",removeFileSuccess:"File successfully delete!",browserDoesntSupportDND:"Browser doesn't support drag and drop!",calculating:"Calculating...",removeFile:"Remove File",areYouSureToDeleteThisFile:"Are you sure to delete this file?",yes:"Yes",no:"No"},d={authentication:{title:"You Need To Sign In",subtitle:"You need to login to access this page. Please login by clicking the button below.",button:"LOGIN"}},u={TRY:"Turkish Lira",EUR:"Euro",USD:"Dollar",GBP:"British Pound",JPY:"Japanese Yen",CHF:"Swiss Franc",CAD:"Canadian Dollar",AUD:"Australian Dollar",NZD:"New Zealand Dollar",RUB:"Russian Ruble",INR:"Indian Rupee",BRL:"Brazilian Real",MXN:"Mexican Peso",ARS:"Argentine Peso",CLP:"Chilean Peso",COP:"Colombian Peso",PEN:"Peruvian Sol",ZAR:"South African Rand"},c={af:"Afghanistan",al:"Albania",dz:"Algeria",ad:"Andorra",ao:"Angola",ag:"Antigua and Barbuda",ar:"Argentina",am:"Armenia",au:"Australia",at:"Austria",az:"Azerbaijan",bs:"Bahamas",bh:"Bahrain",bd:"Bangladesh",bb:"Barbados",by:"Belarus",be:"Belgium",bz:"Belize",bj:"Benin",bt:"Bhutan",bo:"Bolivia",ba:"Bosnia and Herzegovina",bw:"Botswana",br:"Brazil",bn:"Brunei Darussalam",bg:"Bulgaria",bf:"Burkina Faso",bi:"Burundi",cv:"Cabo Verde",kh:"Cambodia",cm:"Cameroon",ca:"Canada",cf:"Central African Republic",td:"Chad",cl:"Chile",cn:"China",co:"Colombia",km:"Comoros",cg:"Congo",cd:"Congo, Democratic",cr:"Costa Rica",ci:"Côte d'Ivoire",hr:"Croatia",cu:"Cuba",cw:"Curacao",cy:"Cyprus",cz:"Czechia",dk:"Denmark",dj:"Djibouti",dm:"Dominica",do:"Dominican Republic",ec:"Ecuador",eg:"Egypt",sv:"El Salvador",gq:"Equatorial Guinea",er:"Eritrea",ee:"Estonia",sz:"Eswatini",et:"Ethiopia",fj:"Fiji",fi:"Finland",fr:"France",ga:"Gabon",gm:"Gambia",ge:"Georgia",de:"Germany",gh:"Ghana",gr:"Greece",gd:"Grenada",gt:"Guatemala",gn:"Guinea",gw:"Guinea-Bissau",gy:"Guyana",ht:"Haiti",hn:"Honduras",hu:"Hungary",is:"Iceland",in:"India",id:"Indonesia",ir:"Iran",iq:"Iraq",ie:"Ireland",il:"Israel",it:"Italy",jm:"Jamaica",jp:"Japan",jo:"Jordan",kz:"Kazakhstan",ke:"Kenya",ki:"Kiribati",kp:"North Korea",kr:"South Korea",kw:"Kuwait",kg:"Kyrgyzstan",la:"Lao People's",lv:"Latvia",lb:"Lebanon",ls:"Lesotho",lr:"Liberia",ly:"Libya",li:"Liechtenstein",lt:"Lithuania",lu:"Luxembourg",mg:"Madagascar",mw:"Malawi",my:"Malaysia",mv:"Maldives",ml:"Mali",mt:"Malta",mh:"Marshall Islands",mr:"Mauritania",mu:"Mauritius",mx:"Mexico",fm:"Micronesia",md:"Moldova, Republic of",mc:"Monaco",mn:"Mongolia",me:"Montenegro",ma:"Morocco",mz:"Mozambique",mm:"Myanmar",na:"Namibia",nr:"Nauru",np:"Nepal",nl:"Netherlands",nz:"New Zealand",ni:"Nicaragua",ne:"Niger",ng:"Nigeria",mk:"North Macedonia",no:"Norway",om:"Oman",pk:"Pakistan",pw:"Palau",pa:"Panama",pg:"Papua New Guinea",py:"Paraguay",pe:"Peru",ph:"Philippines",pl:"Poland",pt:"Portugal",qa:"Qatar",ro:"Romania",ru:"Russian Federation",rw:"Rwanda",kn:"Saint Kitts and Nevis",lc:"Saint Lucia",vc:"Saint Vincent",ws:"Samoa",sm:"San Marino",st:"Sao Tome and Principe",sa:"Saudi Arabia",sn:"Senegal",rs:"Serbia",sc:"Seychelles",sl:"Sierra Leone",sg:"Singapore",sk:"Slovakia",si:"Slovenia",sb:"Solomon Islands",so:"Somalia",za:"South Africa",ss:"South Sudan",es:"Spain",lk:"Sri Lanka",sd:"Sudan",sr:"Suriname",se:"Sweden",ch:"Switzerland",sy:"Syrian Arab Republic",tj:"Tajikistan",tw:"Taiwan",tz:"Tanzania",th:"Thailand",tl:"Timor-Leste",tg:"Togo",to:"Tonga",tt:"Trinidad and Tobago",tn:"Tunisia",tr:"Turkey",tm:"Turkmenistan",tv:"Tuvalu",ug:"Uganda",ua:"Ukraine",ae:"United Arab Emirates",gb:"United Kingdom",us:"United States of America",uy:"Uruguay",uz:"Uzbekistan",vu:"Vanuatu",ve:"Venezuela",vn:"Viet Nam",ye:"Yemen",zm:"Zambia",zw:"Zimbabwe"},m={weekdaysLong:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],firstDay:0,format:"MM/DD/YYYY"},g={success:a,error:e,table:i,placeholders:n,texts:r,options:o,buttons:t,errors:s,uploader:l,results:d,currencies:u,countries:c,calendar:m};export{t as buttons,m as calendar,c as countries,u as currencies,g as default,e as error,s as errors,o as options,n as placeholders,d as results,a as success,i as table,r as texts,l as uploader};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a=["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],e=["Pt","Sa","Ça","Pe","Cu","Ct","Pz"],r=["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],t=1,s="DD/MM/YYYY",m={weekdaysLong:a,weekdaysShort:e,months:r,firstDay:1,format:s};export{m as default,t as firstDay,s as format,r as months,a as weekdaysLong,e as weekdaysShort};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a="Başarılı",e="Hata",i={noData:"Veri Yok"},r={username:"Kullanıcı adı",email:"E-Posta",password:"Şifre",confirmPassword:"Şifre tekrar",typeYourNoteHere:"Notunuzu buraya yazınız",selectGender:"Cinsiyet Seçin",selectCurrency:"Para Birimi Seçin",selectLanguage:"Dil Seçin",selectCountry:"Ülke Seçin",birthday:"Doğum Tarihi",multipleSelection:"Seçili ({{- count}})"},n={enabledNotifications:"Bildirimleri Aç",create:"Oluştur",read:"Oku",update:"Güncelle",delete:"Sil",selectAll:"Hepsini Seç",termsAndConditions:"<a href='/terms-and-conditions'>Kullanım Koşulları</a>'nı okudum ve kabul ediyorum.",campaignTitle:"Kayıt Ol ve %10 İndirim Al",campaignDescription:"İlk defa mı geliyorsunuz? Kayıt olun ve ilk siparişinizde %10 indirim alın.",formTitle:"Üye Ol",formDescription:"Üye olarak daha hızlı ve kolay alışveriş yapabilirsiniz."},l={all:"Hepsi",male:"Erkek",female:"Kadın",languages:{turkish:"Türkçe",english:"İngilizce"}},s={submit:"Gönder",reset:"Temizle"},t={required:"Bu alan zorunludur!",minLength:"En az {{- length}} karakter olmalıdır",maxLength:"Çok uzun. Maks uzunluk {{- length}} karakter olmalıdır.",exactLength:"This field must be {{- length}} characters long.",passwordRule:"Şifreniz en az 8 harf olmalı, bir rakam, bir büyük ve bir küçük harf, bir özel karakter içermeli ve boşluk kullanılmamalıdır.",invalidEmailAddress:"Geçersiz e-posta adresi",passwordsDontMatch:"Girdiğiniz şifreler birbirleriyle uyuşmuyor!",usernameRule:"Sadece İngilizce harfler, rakamlar ve semboller (-_.) kullanılabilir. Boşluk karakterine izin verilmez.",wrongTCIdentity:"TC Kimlik Numarası Yanlış",fieldMustBeTheSame:"Bu alan şunlarla aynı olmalıdır: {{- fields}}",siteUsernameRule:"Sadece İngilizce küçük harfler, rakamlar ve semboller (-_.) kullanılabilir. Boşluk karakterine ve büyük harflere izin verilmez.",adminUsernameRule:"Sadece ingilizce harflerden ve rakamlardan oluşmalıdır. Semboller (-_. vs) ve boşluk karakteri kullanılamaz.",invalidURL:"Geçersiz URL",fieldMustBeDifferent:"Bu alan şunlarla aynı olmamalıdır: {{- fields}}",forbiddenWords:"Bu alan içerisinde bu kelimeyi kullanamazsınız."},o={header:"Bir resmi sürükleyip bırakın",hint:"ya da bir dosya seçmek için tıklayın.",fileUploading:"Dosya yükleniyor...",info:"Toplam: {{- total}} - {{- estimated}} sn kaldı.",delete:"Sil",preview:"Önizleme",error:"Hata",fileFormatError:"Yalnızca {{fileFormat}} dosyası yükleyebilirsiniz.",fileSizeError:"Dosya boyutu {{fileSize}}'den küçük olmalıdır.",fileUploadSuccess:"Dosya başarıyla yüklendi.",fileUploadFailed:"Dosya yüklenemedi!",removeFileSuccess:"Dosya başarıyla silindi!",browserDoesntSupportDND:"Tarayıcı taşı&bırak özelliğini desteklemiyor!",calculating:"Hesaplanıyor...",removeFile:"Dosya Silme",areYouSureToDeleteThisFile:"Bu dosyayı silmek istediğinize emin misiniz?",yes:"Evet",no:"Hayır"},u={authentication:{title:"Üye Girişi Gerekiyor",subtitle:"Bu bölüme ulaşmanız için üye girişi yapmanız gerekiyor. Aşağıdaki tuşa tıklayarak lütfen üye girişi yapınız.",button:"GİRİŞ YAP"}},m={TRY:"Türk Lirası",EUR:"Euro",USD:"Dolar",GBP:"İngiliz Sterlini",JPY:"Japon Yeni",CHF:"İsviçre Frangı",CAD:"Kanada Doları",AUD:"Avustralya Doları",NZD:"Yeni Zelanda Doları",RUB:"Rus Rublesi",INR:"Hindistan Rupisi",BRL:"Brezilya Reali",MXN:"Meksika Pesosu",ARS:"Arjantin Pesosu",CLP:"Şili Pesosu",COP:"Kolombya Pesosu",PEN:"Peru Solü",ZAR:"Güney Afrika Randı"},d={af:"Afganistan",al:"Arnavutluk",dz:"Cezayir",ad:"Andorra",ao:"Angola",ag:"Antigua ve Barbuda",ar:"Arjantin",am:"Ermenistan",au:"Avustralya",at:"Avusturya",az:"Azerbaycan",bs:"Bahamalar",bh:"Bahreyn",bd:"Bangladeş",bb:"Barbados",by:"Beyaz Rusya",be:"Belçika",bz:"Belize",bj:"Benin",bt:"Bhutan",bo:"Bolivya",ba:"Bosna-Hersek",bw:"Botsvana",br:"Brezilya",bn:"Brunei",bg:"Bulgaristan",bf:"Burkina Faso",bi:"Burundi",cv:"Yeşil Burun Adaları",kh:"Kamboçya",cm:"Kamerun",ca:"Kanada",cf:"Orta Afrika Cumhuriyeti",td:"Çad",cl:"Şili",cn:"Çin Halk Cumhuriyeti",co:"Kolombiya",km:"Komorlar",cg:"Kongo Cumhuriyeti",cd:"Demokratik Kongo",cr:"Kosta Rika",ci:"Fildişi Sahili",hr:"Hırvatistan",cu:"Küba",cw:"Curaçao",cy:"Güney Kıbrıs",cz:"Çek Cumhuriyeti",dk:"Danimarka",dj:"Cibuti",dm:"Dominika",do:"Dominik Cumhuriyeti",ec:"Ekvador",eg:"Mısır",sv:"El Salvador",gq:"Ekvator Ginesi",er:"Eritre",ee:"Estonya",sz:"Esvati̇ni̇",et:"Etiyopya",fj:"Fiji",fi:"Finlandiya",fr:"Fransa",ga:"Gabon",gm:"Gambia",ge:"Gürcistan",de:"Almanya",gh:"Gana",gr:"Yunanistan",gd:"Grenada",gt:"Guatemala",gn:"Gine",gw:"Guinea-Bissau",gy:"Guyana",ht:"Haiti",hn:"Honduras",hu:"Macaristan",is:"İzlanda",in:"Hindistan",id:"Endonezya",ir:"İran",iq:"Irak",ie:"Ireland",il:"İrlanda",it:"İtalya",jm:"Jamaika",jp:"Japonya",jo:"Ürdün",kz:"Kazakistan",ke:"Kenya",ki:"Kiribati",kp:"Kuzey Kore",kr:"Güney Kore",kw:"Kuveyt",kg:"Kırgızistan",la:"Laos",lv:"Letonya",lb:"Lübnan",ls:"Lesotho",lr:"Liberya",ly:"Libya",li:"Lihtenştayn",lt:"Litvanya",lu:"Lüksemburg",mg:"Madagaskar",mw:"Malavi",my:"Malezya",mv:"Maldivler",ml:"Mali",mt:"Malta",mh:"Marshall Adaları",mr:"Moritanya",mu:"Mauritius",mx:"Meksika",fm:"Mikronezya",md:"Moldova",mc:"Monako",mn:"Moğolistan",me:"Karadağ",ma:"Fas",mz:"Mozambik",mm:"Myanmar",na:"Namibya",nr:"Nauru",np:"Nepal",nl:"Hollanda",nz:"Yeni Zelanda",ni:"Nikaragua",ne:"Nijer",ng:"Nijerya",mk:"Makedonya",no:"Norveç",om:"Umman",pk:"Pakistan",pw:"Palau",pa:"Panama",pg:"Papua Yeni Gine",py:"Paraguay",pe:"Peru",ph:"Filipinler",pl:"Polonya",pt:"Portekiz",qa:"Katar",ro:"Romanya",ru:"Rusya",rw:"Ruanda",kn:"Saint Kitts ve Nevis",lc:"Saint Lucia",vc:"Saint Vincent",ws:"Samoa",sm:"San Marino",st:"Sao Tome and Principe",sa:"Suudi Arabistan",sn:"Senegal",rs:"Sırbistan",sc:"Seyşeller",sl:"Sierra Leone",sg:"Singapur",sk:"Slovakya",si:"Slovenya",sb:"Solomon Adaları",so:"Somali",za:"Güney Afrika",ss:"Güney Sudan",es:"İspanya",lk:"Sri Lanka",sd:"Sudan",sr:"Surinam",se:"İsveç",ch:"İsviçre",sy:"Suriye",tj:"Tacikistan",tw:"Tayvan",tz:"Tanzanya",th:"Tayland",tl:"Doğu Timor",tg:"Togo",to:"Tonga",tt:"Trinidad ve Tobago",tn:"Tunus",tr:"Türkiye",tm:"Türkmenistan",tv:"Tuvalu",ug:"Uganda",ua:"Ukrayna",ae:"Birleşik Arap Emirlikleri",gb:"Birleşik Krallık",us:"Amerika Birleşik Devletleri",uy:"Uruguay",uz:"Özbekistan",vu:"Vanuatu",ve:"Venezuela",vn:"Vietnam",ye:"Yemen",zm:"Zambiya",zw:"Zimbabve"},y={weekdaysLong:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],weekdaysShort:["Pt","Sa","Ça","Pe","Cu","Ct","Pz"],months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],firstDay:1,format:"DD/MM/YYYY"},k={success:a,error:e,table:i,placeholders:r,texts:n,options:l,buttons:s,errors:t,uploader:o,results:u,currencies:m,countries:d,calendar:y};export{s as buttons,y as calendar,d as countries,m as currencies,k as default,e as error,t as errors,l as options,r as placeholders,u as results,a as success,i as table,n as texts,o as uploader};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o=["background: #27C13A","color: #2b2b2b","line-height: 20px","border-radius: 20px"].join(";"),r=["background: #3598FE","color: #2B2B2B","line-height: 20px","border-radius: 20px"].join(";"),e=["background: #EAB62C","color: #2B2B2B","line-height: 20px","border-radius: 20px"].join(";"),c=["background: #C12727","color: #cccccc","line-height: 20px","border-radius: 20px"].join(";"),i=["background: #27C13A","color: #2B2B2B","line-height: 20px","border-radius: 20px"].join(";"),n=["background: #3598FE","color: #2B2B2B","line-height: 20px","border-radius: 20px"].join(";"),l=["background: #EAB62C","color: #2B2B2B","line-height: 20px","border-radius: 20px"].join(";"),a=["background: #C12727","color: #cccccc","line-height: 20px","border-radius: 20px"].join(";"),d=["background: #2B2B2B","color: #cccccc","line-height: 20px","border-radius: 20px"].join(";"),g=["background-image: url('//i.giphy.com/XKCdA6ERnXp6M.webp')","background-size: 280px 200px","background-repeat: no-repeat","color: #000000","padding: 0px 75px 0 0","line-height: 200px"].join(";");let b={single:(i,n="info")=>{if("fatal-error"!==n){var l="";"info"===n&&(l=o),"warning"===n&&(l=e),"debug"===n&&(l=r),"error"===n&&(l=c),console.log("%c "+i+" ",l)}else console.log("%c "+i,g)},double:(o,r,e="info")=>{if("fatal-error"!==e){var c="";"info"===e&&(c=i),"warning"===e&&(c=l),"debug"===e&&(c=n),"error"===e&&(c=a),console.log("%c "+o+": %c "+r+" ",c,d)}else console.log("%c "+o+": %c "+r+" ",c,g)},table:o=>{console.table(o)}};export{b as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,jsxs as t}from"react/jsx-runtime";import{useState as l,useEffect as n,useRef as o}from"react";import{createPortal as d}from"react-dom";import r from"../modal/Modal.js";import{Wrapper as i,Overlay as u}from"./styled.js";const s="itd-modal-root",c=({onShowModal:c,onHideModal:a,onRemoveModal:m,onModalEvent:h,modals:g,visibleModals:p,modalEvent:f})=>{const[v,y]=l(null);n(()=>{if(g.length>0&&!v){if(!document.getElementById(s)){let e=document.createElement("div");e.id=s,e.style.cssText="position:absolute;z-index:5",document.body.appendChild(e),y(e)}}else if(0===g.length&&0===p.length&&v)try{document.body.removeChild(v),y(null)}catch(e){}},[g,p,v]);const w=o(null),M=o(null);n(()=>{const e=document.documentElement;if(p.length>0){if(null===w.current&&(w.current=e.style.overflowY||""),null===M.current){M.current=e.style.paddingRight||"";const t=window.innerWidth-e.clientWidth;if(t>0){const l=parseFloat(window.getComputedStyle(e).paddingRight||"0")||0;e.style.paddingRight=`${l+t}px`}}e.style.overflowY="hidden"}else null!==w.current&&(e.style.overflowY=w.current,w.current=null),null!==M.current?(e.style.paddingRight=M.current,M.current=null):(e.style.overflowY="",e.style.paddingRight="");return()=>{null!==w.current&&0===p.length&&(e.style.overflowY=w.current,w.current=null),null!==M.current&&0===p.length&&(e.style.paddingRight=M.current,M.current=null)}},[p.length]);const R=(e,t)=>{h(e,t)},E=e=>{c(e)},b=e=>{a(e)},x=t=>e(r,{onShowModal:E,onHideModal:()=>((e="")=>{setTimeout(()=>m(e),250)})(t.id),onRemoveModal:m,onModalEvent:R,isActive:g[g.length-1].id===t.id,modalEvent:f,hideModalFromProvider:b,isVisible:p.includes(String(t.id)),...t},t.id);return v?d(e("div",{children:g.map(l=>{const n=p.includes(String(l.id));return t(i,{id:l.id,className:"itd-modal",children:[e(u,{className:"itd-modal-overlay","data-show":n?"true":"false"}),x(l)]},l.id)})}),v):null};export{c as default};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import t from"styled-components";const o=t.div`
|
|
2
|
+
width: 100vw;
|
|
3
|
+
height: 100vh;
|
|
4
|
+
position: fixed;
|
|
5
|
+
top: 0;
|
|
6
|
+
left: 0;
|
|
7
|
+
`,i=t.div`
|
|
8
|
+
background: #000000BF;
|
|
9
|
+
position: fixed;
|
|
10
|
+
top: 0;
|
|
11
|
+
left: 0;
|
|
12
|
+
width: 100vw;
|
|
13
|
+
height: 100%;
|
|
14
|
+
transition: opacity .25s ease-out;
|
|
15
|
+
opacity: 0;
|
|
16
|
+
|
|
17
|
+
&[data-show="true"] { opacity: 1; }
|
|
18
|
+
`;export{i as Overlay,o as Wrapper};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createContext as t}from"react";const a=t({});a.displayName="ITDModalContext";export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsxs as o,jsx as e}from"react/jsx-runtime";import{useContext as n,useState as t,useCallback as l}from"react";import d from"./container/ModalContainer.js";import i from"./context/ModalContext.js";import{ModalState as s}from"../enums/enum.js";import r from"../node_modules/lodash-es/uniqueId.js";const a={id:"",className:"",title:null,width:"500px",closeOnClickOutside:!0,preventESC:!1,removeOthers:!1,showOkButton:!0,showCancelButton:!0,showCloseButton:!0,okButtonText:"OK",cancelButtonText:"Cancel",okButtonProps:null,cancelButtonProps:null,customProps:{},context:{},onOk:null,onCancel:null,useRef:!1,checkAutoRef:!1,content:null,outerPadding:"50px",contentPadding:"30px 20px",beforeContentPadding:"30px 20px 0",afterContentPadding:"0 20px 30px",addContentAfter:null,addContentBefore:null,onShow:null,onExit:null},c=({children:n})=>{const[c,u]=t([]),[m,f]=t([]),[p,x]=t({event:s.NOT_SHOW,id:""}),h=(o,e)=>{o!==s.NOT_SHOW&&x({event:o,id:e})},v=l(o=>{const e={...a,...o};""===e.id&&(e.id=r("itd-modal-")),u(e.removeOthers?[e]:[...c,e]),f(e.removeOthers?[e.id]:[...m,e.id])},[c]),M=l(o=>{const e=m.findIndex(e=>e===o);if(-1!==e){const o=[...m.slice(0,e),...m.slice(e+1)];f(o)}const n=c.findIndex(e=>e.id===o);if(-1!==n){const o=[...c.slice(0,n),...c.slice(n+1)];u(o)}},[c,m]),O=l(o=>{const e=m.findIndex(e=>e===o);if(-1!==e){const o=[...m.slice(0,e),...m.slice(e+1)];f(o)}},[m]);return o(i.Provider,{value:{showModal:v,hideModal:O,removeModal:M,removeAllModals:()=>{f([]),u([]),h(s.ALL_REMOVED,"")},modalEvent:p,isVisible:o=>m.includes(o)},children:[n,e(d,{onShowModal:v,onHideModal:O,onRemoveModal:M,onModalEvent:h,modals:c,visibleModals:m,modalEvent:p})]})},u=()=>n(i),m={useModal:u};export{c as ModalProvider,m as default,u as useModal};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as t,jsxs as e}from"react/jsx-runtime";import{useRef as o,useState as i,useEffect as r,cloneElement as n}from"react";import{CSSTransition as d}from"react-transition-group";import{ModalState as s,ButtonSizes as a,ComponentSizes as l}from"../../enums/enum.js";import"../../logger/index.js";import c from"../../hooks/useOnClickOutside.js";import m from"../../hooks/useOnESCKeyDown.js";import"react-router-dom";import"axios";import p from"../../button/index.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"../../utils/InlineSVGCached.js";import"../../helpers/svg/styles.js";import"../../helpers/datetime/dayjsSetup.js";import"../../html/header/styled.js";import h from"../../html/header/H4.js";import"../../select/index.js";import"../../form/index.js";import"../../checkbox/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{Wrapper as j,ModalInnerWrapper as u,ModalBody as C,ModalContent as v,CloseButton as f,ModalInnerContent as x,ModalHeader as E,ModalInnerContentBefore as g,ModalInnerContentAfter as y,ModalFooter as b}from"./styled.js";import"../container/styled.js";import"../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 M from"../../spin/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 k from"../../node_modules/lucide-react/dist/esm/icons/x.js";const N=N=>{const O=o(null),S=o(null),w=o(null),[A,I]=i(!0),[T,P]=i(!1),[B,L]=i(!1),[$,R]=i(!1),[K,_]=i(!1);r(()=>(N.onModalEvent(s.BEGIN,N.id?N.id:""),()=>{N.onModalEvent(s.REMOVED,N.id?N.id:"")}),[]),r(()=>{P(A),A||N.onHideModal&&N.onHideModal(String(N.id))},[A]),c(S,()=>{!N.closeOnClickOutside||B||K||N.isActive&&(N.onModalEvent(s.OUTSIDE_CLICK,N.id?N.id:""),J(),P(!1))}),m(()=>{N.preventESC||B||K||N.isActive&&(N.onModalEvent(s.ESC_CLICK,N.id?N.id:""),J(),P(!1))});const D=()=>{N.isActive&&P(!1)},H=()=>{N.onRemoveModal&&N.onRemoveModal(String(N.id))},G=t=>{N.isActive&&(N.removeOthers,N.onShowModal(t))},V=t=>{R(!t)},F=t=>{L(t)},z=t=>{_(t)},X=()=>{N.onModalEvent(s.CLOSE_CLICK,N.id?N.id:""),J(),N.hideModalFromProvider(N.id?N.id:""),P(!1)},U=()=>{N.isActive&&(N.onModalEvent(s.OK_CLICK,N.id?N.id:""),q()&&(N.hideModalFromProvider(N.id?N.id:""),P(!1)))},W=()=>{N.isActive&&(N.onModalEvent(s.CANCEL_CLICK,N.id?N.id:""),J()&&(N.hideModalFromProvider(N.id?N.id:""),P(!1)))},q=()=>{if(!O.current)return!N.onOk||N.onOk();O.current.onClickOK&&O.current.onClickOK()},J=()=>{if(!O.current)return!N.onCancel||N.onCancel();O.current.onClickCancel&&O.current.onClickCancel()},Q=()=>{N.onModalEvent(s.ENTERING,N.id?N.id:"")},Y=()=>{N.onModalEvent(s.ENTERED,N.id?N.id:""),N.onShow&&N.onShow()},Z=()=>{N.onModalEvent(s.EXITING,N.id?N.id:"")},tt=()=>{N.onModalEvent(s.EXITED,N.id?N.id:""),N.onExit&&N.onExit(),I(!1)},et=t=>{if(t.content&&Object(t.content).props&&Object.keys(Object(t.content).props).length>0)return{};let e={hideCurrentModal:D,removeCurrentModal:H,showAnotherModal:G,changeButtonsState:V,changeLoadingState:F,changeInnerLoadingState:z,modalProps:{...t.customProps},context:{...t.context}};return t.checkAutoRef&&t.content.type.hasOwnProperty("$$typeof")&&(console.log("(props.content as React.ReactElement).type['$$typeof']",t.content.type.$$typeof),"Symbol(react.forward_ref)"===t.content.type.$$typeof.toString()&&(e.ref=O)),t.useRef&&(e.ref=O),e},ot=()=>{if(N.content)return t("div",{className:"itd-modal-middle-content-body",children:n(N.content,et(N))})},it=()=>{if(N.addContentBefore)return t(g,{className:"itd-modal-middle-content-before",$padding:N.beforeContentPadding,children:N.addContentBefore})},rt=()=>{if(N.addContentAfter)return t(y,{className:"itd-modal-middle-content-after",$padding:N.afterContentPadding,children:N.addContentAfter})},nt=()=>{let t=N.width;return"number"==typeof t&&(t=N.width+"px"),t};return r(()=>{N.modalEvent.event===s.EXITING&&N.modalEvent.id===N.id&&P(!1)},[N.modalEvent,N.id]),r(()=>{!N.isVisible&&T&&P(!1)},[N.isVisible,T,N.id]),A?t("div",{className:"itd-modal-container".concat(" "+N.className),children:t(d,{in:T,timeout:600,classNames:"modal",nodeRef:w,onEntering:Q,onEntered:Y,onExiting:Z,onExited:tt,unmountOnExit:!0,children:t(j,{className:"itd-modal-content-wrapper",ref:w,children:t(u,{className:"itd-modal-inner-wrapper",$padding:N.outerPadding,children:t(C,{className:"itd-modal-body",$width:nt(),children:t(v,{className:"itd-modal-content",ref:S,children:e(M,{updating:K,children:[!1!==N.showCloseButton&&t(f,{className:"itd-modal-close-button",children:t(p,{size:a.ICON_SM,variant:"ghost",onClick:X,disabled:B||K||!N.isActive,children:t(k,{strokeWidth:2})})}),N.title?t(E,{className:"itd-modal-header",children:"string"==typeof N.title?t(h,{children:N.title}):N.title}):null,it(),t(x,{className:"itd-modal-middle-content",$padding:N.contentPadding,children:ot()}),rt(),N.showOkButton||N.showCancelButton?e(b,{className:"itd-modal-footer",children:[N.showCancelButton&&t(p,{variant:"solid",size:l.SMALL,type:"button",onClick:W,disabled:B||K||!N.isActive||$,...N.cancelButtonProps,children:N.cancelButtonText}),N.showOkButton&&t(p,{variant:"default",size:l.SMALL,type:"button",onClick:U,loading:B,disabled:K||!N.isActive||$,...N.okButtonProps,children:N.okButtonText})]}):null]})})})})})})}):null};export{N as default};
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import i from"styled-components";const r=i.div`
|
|
2
|
+
|
|
3
|
+
/* Modal ortalama için flexbox kullan, böylece transform animasyon için serbest kalır */
|
|
4
|
+
position: absolute;
|
|
5
|
+
left: 0;
|
|
6
|
+
top: 0;
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 100%;
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
|
|
13
|
+
/* Transform animasyon için serbest bırakıldı */
|
|
14
|
+
transform-origin: 50% 50%;
|
|
15
|
+
transform-box: fill-box;
|
|
16
|
+
|
|
17
|
+
`,o=i.div`
|
|
18
|
+
|
|
19
|
+
overflow-y: auto;
|
|
20
|
+
width: 100vw;
|
|
21
|
+
height: 100vh;
|
|
22
|
+
display: flex;
|
|
23
|
+
padding: ${i=>i.$padding};
|
|
24
|
+
|
|
25
|
+
`,t=i.div`
|
|
26
|
+
|
|
27
|
+
margin: auto;
|
|
28
|
+
height: max-content;
|
|
29
|
+
position: relative;
|
|
30
|
+
//overflow: hidden;
|
|
31
|
+
|
|
32
|
+
background: #fff;
|
|
33
|
+
max-width: ${i=>i.$width};
|
|
34
|
+
width: ${i=>i.$width};
|
|
35
|
+
border-radius: 6px;
|
|
36
|
+
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
|
|
37
|
+
|
|
38
|
+
`,a=i.div`
|
|
39
|
+
position: relative;
|
|
40
|
+
`,d=i.div`
|
|
41
|
+
padding: ${i=>i.$padding};
|
|
42
|
+
`,e=i.div`
|
|
43
|
+
padding: ${i=>i.$padding};
|
|
44
|
+
`,n=i.div`
|
|
45
|
+
|
|
46
|
+
transition-property: all;
|
|
47
|
+
transition-duration: 800ms;
|
|
48
|
+
transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
|
|
49
|
+
|
|
50
|
+
padding: ${i=>i.$padding};
|
|
51
|
+
|
|
52
|
+
`,l=i.div`
|
|
53
|
+
|
|
54
|
+
height: 50px;
|
|
55
|
+
background-color: #f1f1f1;
|
|
56
|
+
border-radius: 6px 6px 0 0;
|
|
57
|
+
color: #071437;
|
|
58
|
+
padding: 10px 20px;
|
|
59
|
+
|
|
60
|
+
display: flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
|
|
63
|
+
`,s=i.div`
|
|
64
|
+
|
|
65
|
+
border-top: 1px solid #00000010;
|
|
66
|
+
|
|
67
|
+
height: 65px;
|
|
68
|
+
padding: 15px 20px;
|
|
69
|
+
|
|
70
|
+
display: flex;
|
|
71
|
+
justify-content: flex-end;
|
|
72
|
+
gap: 10px;
|
|
73
|
+
|
|
74
|
+
`,p=i.div`
|
|
75
|
+
|
|
76
|
+
cursor: pointer;
|
|
77
|
+
position: absolute;
|
|
78
|
+
right: 10px;
|
|
79
|
+
top: 12px;
|
|
80
|
+
z-index: 1;
|
|
81
|
+
|
|
82
|
+
.itd-element >span {
|
|
83
|
+
display: flex;
|
|
84
|
+
align-items: center;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
`;i.div`
|
|
88
|
+
position: fixed;
|
|
89
|
+
top: 0;
|
|
90
|
+
left: 0;
|
|
91
|
+
width: 100%;
|
|
92
|
+
height: 100%;
|
|
93
|
+
z-index: 1000;
|
|
94
|
+
overflow-y: auto;
|
|
95
|
+
padding: 20px 0;
|
|
96
|
+
|
|
97
|
+
/* Özel scrollbar stilleri */
|
|
98
|
+
&::-webkit-scrollbar {
|
|
99
|
+
width: 8px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&::-webkit-scrollbar-track {
|
|
103
|
+
background: rgba(241, 241, 241, 0.5);
|
|
104
|
+
border-radius: 4px;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&::-webkit-scrollbar-thumb {
|
|
108
|
+
background: rgba(136, 136, 136, 0.5);
|
|
109
|
+
border-radius: 4px;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&::-webkit-scrollbar-thumb:hover {
|
|
113
|
+
background: rgba(85, 85, 85, 0.7);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* Firefox için scrollbar stilleri */
|
|
117
|
+
scrollbar-width: thin;
|
|
118
|
+
scrollbar-color: rgba(136, 136, 136, 0.5) rgba(241, 241, 241, 0.5);
|
|
119
|
+
|
|
120
|
+
.itd-modal-overlay {
|
|
121
|
+
position: fixed;
|
|
122
|
+
top: 0;
|
|
123
|
+
left: 0;
|
|
124
|
+
width: 100%;
|
|
125
|
+
height: 100%;
|
|
126
|
+
background: rgba(0, 0, 0, 0.5);
|
|
127
|
+
}
|
|
128
|
+
`;export{p as CloseButton,t as ModalBody,a as ModalContent,s as ModalFooter,l as ModalHeader,n as ModalInnerContent,e as ModalInnerContentAfter,d as ModalInnerContentBefore,o as ModalInnerWrapper,r as Wrapper};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{eachProp as t,is as e,hasFluidValue as s,getFluidValue as r,each as n,useForceUpdate as a,useIsomorphicLayoutEffect as i,addFluidObserver as o,removeFluidObserver as u,useOnce as l,defineHidden as c,isAnimatedString as d,createInterpolator as h}from"../../shared/dist/react-spring_shared.modern.js";import*as p from"react";import{forwardRef as m,useRef as g,useCallback as y,useEffect as _}from"react";import{raf as f}from"../../rafz/dist/react-spring_rafz.modern.js";var V=Symbol.for("Animated:node"),v=t=>!!t&&t[V]===t,P=t=>t&&t[V],A=(t,e)=>c(t,V,e),S=t=>t&&t[V]&&t[V].getPayload(),w=class{constructor(){A(this,this)}getPayload(){return this.payload||[]}},x=class t extends w{constructor(t){super(),this._value=t,this.done=!0,this.durationProgress=0,e.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new t(e)}getPayload(){return[this]}getValue(){return this._value}setValue(t,s){return e.num(t)&&(this.lastPosition=t,s&&(t=Math.round(t/s)*s,this.done&&(this.lastPosition=t))),this._value!==t&&(this._value=t,!0)}reset(){const{done:t}=this;this.done=!1,e.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},C=class t extends x{constructor(t){super(0),this._string=null,this._toString=h({output:[t,t]})}static create(e){return new t(e)}getValue(){const t=this._string;return null==t?this._string=this._toString(this._value):t}setValue(t){if(e.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else{if(!super.setValue(t))return!1;this._string=null}return!0}reset(t){t&&(this._toString=h({output:[this.getValue(),t]})),this._value=0,super.reset()}},b={dependencies:null},N=class extends w{constructor(t){super(),this.source=t,this.setValue(t)}getValue(e){const n={};return t(this.source,(t,a)=>{v(t)?n[a]=t.getValue(e):s(t)?n[a]=r(t):e||(n[a]=t)}),n}setValue(t){this.source=t,this.payload=this._makePayload(t)}reset(){this.payload&&n(this.payload,t=>t.reset())}_makePayload(e){if(e){const s=new Set;return t(e,this._addToPayload,s),Array.from(s)}}_addToPayload(t){b.dependencies&&s(t)&&b.dependencies.add(t);const e=S(t);e&&n(e,t=>this.add(t))}},T=class t extends N{constructor(t){super(t)}static create(e){return new t(e)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){const e=this.getPayload();return t.length==e.length?e.map((e,s)=>e.setValue(t[s])).some(Boolean):(super.setValue(t.map(j)),!0)}};function j(t){return(d(t)?C:x).create(t)}function k(t){const s=P(t);return s?s.constructor:e.arr(t)?T:d(t)?C:x}var z=(t,s)=>{const r=!e.fun(t)||t.prototype&&t.prototype.isReactComponent;return m((c,d)=>{const h=g(null),m=r&&y(t=>{h.current=function(t,s){t&&(e.fun(t)?t(s):t.current=s);return s}(d,t)},[d]),[V,v]=function(t,e){const s=new Set;b.dependencies=s,t.style&&(t={...t,style:e.createAnimatedStyle(t.style)});return t=new N(t),b.dependencies=null,[t,s]}(c,s),P=a(),A=()=>{const t=h.current;if(r&&!t)return;!1===(!!t&&s.applyAnimatedValues(t,V.getValue(!0)))&&P()},S=new B(A,v),w=g(void 0);i(()=>(w.current=S,n(v,t=>o(t,S)),()=>{w.current&&(n(w.current.deps,t=>u(t,w.current)),f.cancel(w.current.update))})),_(A,[]),l(()=>()=>{const t=w.current;n(t.deps,e=>u(e,t))});const x=s.getComponentProps(V.getValue());return p.createElement(t,{...x,ref:m})})},B=class{constructor(t,e){this.update=t,this.deps=e}eventObserved(t){"change"==t.type&&f.write(this.update)}};var E=Symbol.for("AnimatedComponent"),M=(s,{applyAnimatedValues:r=()=>!1,createAnimatedStyle:n=t=>new N(t),getComponentProps:a=t=>t}={})=>{const i={applyAnimatedValues:r,createAnimatedStyle:n,getComponentProps:a},o=t=>{const s=O(t)||"Anonymous";return(t=e.str(t)?o[t]||(o[t]=z(t,i)):t[E]||(t[E]=z(t,i))).displayName=`Animated(${s})`,t};return t(s,(t,r)=>{e.arr(s)&&(r=O(t)),o[r]=o(t)}),{animated:o}},O=t=>e.str(t)?t:t&&e.str(t.displayName)?t.displayName:e.fun(t)&&t.name||null;export{w as Animated,T as AnimatedArray,N as AnimatedObject,C as AnimatedString,x as AnimatedValue,M as createHost,P as getAnimated,k as getAnimatedType,S as getPayload,v as isAnimated,A as setAnimated};
|