@inntechcorp/it-design 3.1.3 → 3.1.4
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/alert/index.d.ts +1 -3
- package/dist/alert/styled.d.ts +7 -3
- package/dist/alink/styled.d.ts +1 -1
- package/dist/button/button.style.SVG.d.ts +4 -0
- package/dist/button/index.d.ts +1 -1
- package/dist/card/index.d.ts +1 -1
- package/dist/card/styles.d.ts +1 -2
- package/dist/checkbox/styled.d.ts +2 -3
- package/dist/cropper/index.d.ts +38 -0
- package/dist/datepicker/styled.d.ts +2 -2
- package/dist/enums/enum.d.ts +5 -16
- package/dist/form/context/FormContext.d.ts +0 -3
- package/dist/form/context/FormStore.d.ts +1 -4
- package/dist/form/item/Item.d.ts +1 -0
- package/dist/global.css +113 -333
- package/dist/helpers/index.d.ts +0 -4
- package/dist/index.cjs.js +5480 -0
- package/dist/index.d.mts +25 -65
- package/dist/index.d.ts +184 -731
- package/dist/index.esm.js +5480 -0
- package/dist/input/styled.d.ts +17 -15
- package/dist/locales/en/itd.json +10 -30
- package/dist/locales/itd.json +10 -30
- package/dist/locales/tr/itd.json +10 -30
- package/dist/radio/button/RadioButton.d.ts +1 -1
- package/dist/result/index.d.ts +1 -1
- package/dist/select/menu/Menu.d.ts +14 -0
- package/dist/select/menu/styled.d.ts +8 -0
- package/dist/select/option/Option.d.ts +3 -10
- package/dist/select/style.settings.d.ts +26 -83
- package/dist/select/styled.d.ts +2 -4
- package/dist/select/toggle/Toggle.d.ts +1 -1
- package/dist/select/toggle/label/floating/FloatingLabel.d.ts +12 -0
- package/dist/select/toggle/label/floating/styled.d.ts +8 -0
- package/dist/select/toggle/label/{Label.d.ts → single/SingleLabel.d.ts} +5 -5
- package/dist/select/toggle/styled.d.ts +4 -4
- package/dist/stories/Accordion.d.ts +1 -0
- package/dist/stories/Alert.stories.d.ts +1 -15
- package/dist/stories/Button.d.ts +1 -0
- package/dist/stories/Button.stories.d.ts +1 -8
- package/dist/stories/ButtonIcon.d.ts +2 -0
- package/dist/stories/Card.stories.d.ts +0 -1
- package/dist/stories/DatePicker.d.ts +1 -0
- package/dist/stories/Form.stories.d.ts +1 -11
- package/dist/stories/Header.d.ts +1 -0
- package/dist/stories/Input.d.ts +1 -0
- package/dist/stories/Input.stories.d.ts +2 -89
- package/dist/stories/ModalManager.d.ts +1 -0
- package/dist/stories/Page.d.ts +1 -0
- package/dist/stories/Select.d.ts +1 -0
- package/dist/stories/Select.stories.d.ts +3 -13
- package/dist/stories/Switch.stories.d.ts +1 -8
- package/dist/stories/TextArea.d.ts +1 -0
- package/dist/stories/TextArea.stories.d.ts +1 -8
- package/dist/stories/Upload.stories.d.ts +2 -0
- package/dist/stories/root/index.d.ts +1 -0
- package/dist/switch/styled.d.ts +1 -1
- package/dist/textarea/styled.d.ts +4 -2
- package/dist/types/AlertProps.d.ts +4 -5
- package/dist/types/ButtonProps.d.ts +2 -2
- package/dist/types/CalendarProps.d.ts +1 -0
- package/dist/types/CardProps.d.ts +0 -4
- package/dist/types/CheckboxProps.d.ts +1 -5
- package/dist/types/DatePickerProps.d.ts +3 -2
- package/dist/types/FormProps.d.ts +0 -3
- package/dist/types/ITDProps.d.ts +2 -4
- package/dist/types/InputProps.d.ts +2 -1
- package/dist/types/RadioProps.d.ts +0 -1
- package/dist/types/ResultProps.d.ts +0 -1
- package/dist/types/SelectProps.d.ts +13 -5
- package/dist/types/SwitchProps.d.ts +1 -4
- package/dist/types/TableProps.d.ts +0 -1
- package/dist/types/UploadProps.d.ts +12 -2
- package/dist/upload/index.d.ts +1 -1
- package/dist/upload/styled.d.ts +2 -5
- package/package.json +4 -14
- package/dist/alert/Description.d.ts +0 -7
- package/dist/alert/Title.d.ts +0 -7
- package/dist/alert/alert.style.neutral.d.ts +0 -4
- package/dist/cjs/_virtual/_commonjsHelpers.js +0 -1
- package/dist/cjs/_virtual/customParseFormat.js +0 -1
- package/dist/cjs/_virtual/customParseFormat2.js +0 -1
- package/dist/cjs/_virtual/dayjs.min.js +0 -1
- package/dist/cjs/_virtual/dayjs.min2.js +0 -1
- package/dist/cjs/_virtual/localizedFormat.js +0 -1
- package/dist/cjs/_virtual/localizedFormat2.js +0 -1
- package/dist/cjs/_virtual/react.js +0 -1
- package/dist/cjs/accordion/index.js +0 -1
- package/dist/cjs/accordion/item/Item.js +0 -1
- package/dist/cjs/accordion/item/styled.js +0 -20
- package/dist/cjs/accordion/styled.js +0 -15
- package/dist/cjs/accordion/submenu/SubMenu.js +0 -1
- package/dist/cjs/accordion/submenu/styled.js +0 -214
- package/dist/cjs/alert/Description.js +0 -1
- package/dist/cjs/alert/Title.js +0 -1
- package/dist/cjs/alert/alert.style.error.js +0 -32
- package/dist/cjs/alert/alert.style.info.js +0 -32
- package/dist/cjs/alert/alert.style.neutral.js +0 -32
- package/dist/cjs/alert/alert.style.success.js +0 -32
- package/dist/cjs/alert/alert.style.warning.js +0 -32
- package/dist/cjs/alert/index.js +0 -1
- package/dist/cjs/alert/styled.js +0 -68
- package/dist/cjs/alink/index.js +0 -1
- package/dist/cjs/alink/styled.js +0 -5
- package/dist/cjs/back-top/index.js +0 -1
- package/dist/cjs/back-top/styled.js +0 -25
- package/dist/cjs/button/button.style.circle.js +0 -38
- package/dist/cjs/button/button.style.default.js +0 -44
- package/dist/cjs/button/button.style.filled.js +0 -49
- package/dist/cjs/button/button.style.ghost.js +0 -47
- package/dist/cjs/button/button.style.icon.js +0 -33
- package/dist/cjs/button/button.style.link.js +0 -45
- package/dist/cjs/button/button.style.outline.js +0 -49
- package/dist/cjs/button/button.style.size.js +0 -187
- package/dist/cjs/button/button.style.solid.js +0 -50
- package/dist/cjs/button/button.style.strecth.js +0 -8
- package/dist/cjs/button/index.js +0 -1
- package/dist/cjs/button/styled.js +0 -415
- package/dist/cjs/calendar/dates.js +0 -1
- package/dist/cjs/calendar/day/Day.js +0 -1
- package/dist/cjs/calendar/day/styled.js +0 -91
- package/dist/cjs/calendar/header/Header.js +0 -1
- package/dist/cjs/calendar/header/styled.js +0 -196
- package/dist/cjs/calendar/index.js +0 -1
- package/dist/cjs/calendar/styled.js +0 -82
- package/dist/cjs/card/index.js +0 -1
- package/dist/cjs/card/styles.js +0 -66
- package/dist/cjs/checkbox/group/index.js +0 -1
- package/dist/cjs/checkbox/group/styled.js +0 -9
- package/dist/cjs/checkbox/index.js +0 -1
- package/dist/cjs/checkbox/styled.js +0 -340
- package/dist/cjs/context/ITDContext.js +0 -1
- package/dist/cjs/context/ITDThemeProvider.js +0 -1
- package/dist/cjs/context/styled.js +0 -15
- package/dist/cjs/datepicker/index.js +0 -1
- package/dist/cjs/datepicker/styled.js +0 -60
- package/dist/cjs/enums/enum.js +0 -1
- package/dist/cjs/flex/index.js +0 -1
- package/dist/cjs/flex/styled.js +0 -35
- package/dist/cjs/form/context/FormContext.js +0 -1
- package/dist/cjs/form/context/FormStore.js +0 -1
- package/dist/cjs/form/control/Control.js +0 -1
- package/dist/cjs/form/control/styled.js +0 -8
- package/dist/cjs/form/group/Group.js +0 -1
- package/dist/cjs/form/group/styled.js +0 -7
- package/dist/cjs/form/index.js +0 -1
- package/dist/cjs/form/item/Item.js +0 -1
- package/dist/cjs/form/validation/TCIdentity.js +0 -1
- package/dist/cjs/form/validation/Validator.js +0 -1
- package/dist/cjs/form/wrapper/FormWrapper.js +0 -1
- package/dist/cjs/helpers/array/ChunkArray.js +0 -1
- package/dist/cjs/helpers/aspectratio/DetermineNewHeight.js +0 -1
- package/dist/cjs/helpers/aspectratio/DetermineNewWidth.js +0 -1
- package/dist/cjs/helpers/base64/Base64Decode.js +0 -1
- package/dist/cjs/helpers/base64/Base64Encode.js +0 -1
- package/dist/cjs/helpers/binary/FormatBytes.js +0 -1
- package/dist/cjs/helpers/binary/GetTypeByFileType.js +0 -1
- package/dist/cjs/helpers/checker/CheckFileURL.js +0 -1
- package/dist/cjs/helpers/checker/FileChecker.js +0 -1
- package/dist/cjs/helpers/country/GetCountryCodeByCurrencyCode.js +0 -1
- package/dist/cjs/helpers/country/GetCountryCodeByLanguage.js +0 -1
- package/dist/cjs/helpers/css/FindSelector.js +0 -1
- package/dist/cjs/helpers/currency/ConvertCurrency.js +0 -1
- package/dist/cjs/helpers/currency/GetByCurrency.js +0 -1
- package/dist/cjs/helpers/currency/GetCurrencyFormat.js +0 -1
- package/dist/cjs/helpers/currency/GetCurrencySymbol.js +0 -1
- package/dist/cjs/helpers/currency/GetDecimalByCurrency.js +0 -1
- package/dist/cjs/helpers/datetime/FormatDate.js +0 -1
- package/dist/cjs/helpers/datetime/FormatDateTime.js +0 -1
- package/dist/cjs/helpers/datetime/FormatSimpleDate.js +0 -1
- package/dist/cjs/helpers/datetime/FormatSimpleDateTime.js +0 -1
- package/dist/cjs/helpers/datetime/FormatTime.js +0 -1
- package/dist/cjs/helpers/datetime/dayjsSetup.js +0 -1
- package/dist/cjs/helpers/format/ToKebabCase.js +0 -1
- package/dist/cjs/helpers/json/IsValidJSON.js +0 -1
- package/dist/cjs/helpers/math/AddZero.js +0 -1
- package/dist/cjs/helpers/promise/Wait.js +0 -1
- package/dist/cjs/helpers/remover/RemoveUnits.js +0 -1
- package/dist/cjs/helpers/string/UniUpperCase.js +0 -1
- package/dist/cjs/helpers/svg/SVGLoader.js +0 -1
- package/dist/cjs/helpers/svg/styles.js +0 -22
- package/dist/cjs/helpers/theme/AddDefaultThemeStyle.js +0 -1
- package/dist/cjs/helpers/theme/Color.js +0 -1
- package/dist/cjs/helpers/theme/GenerateColorScale.js +0 -1
- package/dist/cjs/helpers/theme/UpdateThemeStyle.js +0 -1
- package/dist/cjs/helpers/theme/cssVariables.js +0 -1
- package/dist/cjs/helpers/theme/dark.js +0 -1
- package/dist/cjs/helpers/theme/light.js +0 -1
- package/dist/cjs/helpers/theme/tokens.js +0 -1
- package/dist/cjs/helpers/unit/AddDefaultUnit.js +0 -1
- package/dist/cjs/helpers/url/ValidURL.js +0 -1
- package/dist/cjs/hooks/useAddExternalCSS.js +0 -1
- package/dist/cjs/hooks/useAvoidCollision.js +0 -1
- package/dist/cjs/hooks/useComponentSize.js +0 -1
- package/dist/cjs/hooks/useConnectionStatus.js +0 -1
- package/dist/cjs/hooks/useConstructor.js +0 -1
- package/dist/cjs/hooks/useContextBridge.js +0 -1
- package/dist/cjs/hooks/useCoreFetch.js +0 -1
- package/dist/cjs/hooks/useKeyboardShortcut.js +0 -1
- package/dist/cjs/hooks/useMultiQuery.js +0 -1
- package/dist/cjs/hooks/useOnClickOutside.js +0 -1
- package/dist/cjs/hooks/useOnESCKeyDown.js +0 -1
- package/dist/cjs/hooks/useOnResize.js +0 -1
- package/dist/cjs/hooks/useOrientation.js +0 -1
- package/dist/cjs/hooks/useReCaptcha.js +0 -1
- package/dist/cjs/hooks/useSingleQuery.js +0 -1
- package/dist/cjs/html/header/H1.js +0 -1
- package/dist/cjs/html/header/H2.js +0 -1
- package/dist/cjs/html/header/H3.js +0 -1
- package/dist/cjs/html/header/H4.js +0 -1
- package/dist/cjs/html/header/styled.js +0 -33
- package/dist/cjs/icons/Arrow.js +0 -1
- package/dist/cjs/icons/BackToTop.js +0 -1
- package/dist/cjs/icons/Checkmark.js +0 -1
- package/dist/cjs/icons/InlineSelectArrow.js +0 -1
- package/dist/cjs/icons/Lock.js +0 -1
- package/dist/cjs/icons/NoData.js +0 -1
- package/dist/cjs/icons/Picture.js +0 -1
- package/dist/cjs/icons/Trash.js +0 -1
- package/dist/cjs/icons/Upload.js +0 -1
- package/dist/cjs/icons/ZoomIn.js +0 -1
- package/dist/cjs/icons/ZoomOut.js +0 -1
- package/dist/cjs/image/index.js +0 -1
- package/dist/cjs/image/styled.js +0 -4
- package/dist/cjs/index.js +0 -1
- package/dist/cjs/input/index.js +0 -1
- package/dist/cjs/input/style.settings.js +0 -1
- package/dist/cjs/input/styled.js +0 -430
- package/dist/cjs/locales/en/calendar.json.js +0 -1
- package/dist/cjs/locales/en/itd.json.js +0 -1
- package/dist/cjs/locales/tr/calendar.json.js +0 -1
- package/dist/cjs/locales/tr/itd.json.js +0 -1
- package/dist/cjs/logger/index.js +0 -1
- package/dist/cjs/modal/container/ModalContainer.js +0 -1
- package/dist/cjs/modal/container/styled.js +0 -27
- package/dist/cjs/modal/context/ModalContext.js +0 -1
- package/dist/cjs/modal/index.js +0 -1
- package/dist/cjs/modal/modal/Modal.js +0 -1
- package/dist/cjs/modal/modal/closeicon.svg.js +0 -1
- package/dist/cjs/modal/modal/styled.js +0 -128
- package/dist/cjs/node_modules/@react-spring/animated/dist/react-spring_animated.modern.js +0 -1
- package/dist/cjs/node_modules/@react-spring/core/dist/react-spring_core.modern.js +0 -1
- package/dist/cjs/node_modules/@react-spring/rafz/dist/react-spring_rafz.modern.js +0 -1
- package/dist/cjs/node_modules/@react-spring/shared/dist/react-spring_shared.modern.js +0 -1
- package/dist/cjs/node_modules/@react-spring/web/dist/react-spring_web.modern.js +0 -1
- package/dist/cjs/node_modules/dayjs/dayjs.min.js +0 -1
- package/dist/cjs/node_modules/dayjs/plugin/customParseFormat.js +0 -1
- package/dist/cjs/node_modules/dayjs/plugin/localizedFormat.js +0 -1
- package/dist/cjs/node_modules/fast-deep-equal/react.js +0 -1
- package/dist/cjs/node_modules/lodash-es/_Symbol.js +0 -1
- package/dist/cjs/node_modules/lodash-es/_arrayMap.js +0 -1
- package/dist/cjs/node_modules/lodash-es/_baseGetTag.js +0 -1
- package/dist/cjs/node_modules/lodash-es/_baseToString.js +0 -1
- package/dist/cjs/node_modules/lodash-es/_freeGlobal.js +0 -1
- package/dist/cjs/node_modules/lodash-es/_getRawTag.js +0 -1
- package/dist/cjs/node_modules/lodash-es/_objectToString.js +0 -1
- package/dist/cjs/node_modules/lodash-es/_root.js +0 -1
- package/dist/cjs/node_modules/lodash-es/isArray.js +0 -1
- package/dist/cjs/node_modules/lodash-es/isObject.js +0 -1
- package/dist/cjs/node_modules/lodash-es/isObjectLike.js +0 -1
- package/dist/cjs/node_modules/lodash-es/isSymbol.js +0 -1
- package/dist/cjs/node_modules/lodash-es/toString.js +0 -1
- package/dist/cjs/node_modules/lodash-es/uniqueId.js +0 -1
- package/dist/cjs/node_modules/lucide-react/dist/esm/Icon.js +0 -8
- package/dist/cjs/node_modules/lucide-react/dist/esm/createLucideIcon.js +0 -1
- package/dist/cjs/node_modules/lucide-react/dist/esm/defaultAttributes.js +0 -1
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/calendar-1.js +0 -8
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/chevron-down.js +0 -8
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/circle-x.js +0 -8
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/eye.js +0 -8
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/info.js +0 -8
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/trash.js +0 -8
- package/dist/cjs/node_modules/lucide-react/dist/esm/shared/src/utils.js +0 -7
- package/dist/cjs/node_modules/overlayscrollbars/overlayscrollbars.js +0 -10
- package/dist/cjs/node_modules/overlayscrollbars/styles/overlayscrollbars.css.js +0 -1
- package/dist/cjs/node_modules/react-number-format/dist/react-number-format.es.js +0 -1
- package/dist/cjs/node_modules/rollup-plugin-node-globals/src/global.js +0 -1
- package/dist/cjs/node_modules/rollup-plugin-styles/dist/runtime/inject-css.js +0 -1
- package/dist/cjs/node_modules/uuid/dist/esm-browser/native.js +0 -1
- package/dist/cjs/node_modules/uuid/dist/esm-browser/rng.js +0 -1
- package/dist/cjs/node_modules/uuid/dist/esm-browser/stringify.js +0 -1
- package/dist/cjs/node_modules/uuid/dist/esm-browser/v4.js +0 -1
- package/dist/cjs/notification/container/Container.js +0 -1
- package/dist/cjs/notification/container/styled.js +0 -26
- package/dist/cjs/notification/context/NotificationsContext.js +0 -1
- package/dist/cjs/notification/index.js +0 -1
- package/dist/cjs/notification/item/Item.js +0 -1
- package/dist/cjs/notification/item/styled.js +0 -42
- package/dist/cjs/progress/index.js +0 -1
- package/dist/cjs/progress/styled.js +0 -59
- package/dist/cjs/radio/button/RadioButton.js +0 -1
- package/dist/cjs/radio/button/styled.js +0 -133
- package/dist/cjs/radio/group/Group.js +0 -1
- package/dist/cjs/radio/group/styled.js +0 -7
- package/dist/cjs/radio/index.js +0 -1
- package/dist/cjs/result/index.js +0 -1
- package/dist/cjs/result/styled.js +0 -109
- package/dist/cjs/select/dropdown/Dropdown.js +0 -1
- package/dist/cjs/select/dropdown/styled.js +0 -239
- package/dist/cjs/select/index.js +0 -1
- package/dist/cjs/select/option/Option.js +0 -1
- package/dist/cjs/select/option/styled.js +0 -36
- package/dist/cjs/select/style.settings.js +0 -1
- package/dist/cjs/select/styled.js +0 -331
- package/dist/cjs/select/toggle/Toggle.js +0 -1
- package/dist/cjs/select/toggle/label/Label.js +0 -1
- package/dist/cjs/select/toggle/label/styled.js +0 -5
- package/dist/cjs/select/toggle/styled.js +0 -88
- package/dist/cjs/spin/index.js +0 -1
- package/dist/cjs/spin/styled.js +0 -74
- package/dist/cjs/status/index.js +0 -1
- package/dist/cjs/status/styled.js +0 -75
- package/dist/cjs/switch/index.js +0 -1
- package/dist/cjs/switch/styled.js +0 -209
- package/dist/cjs/table/index.js +0 -1
- package/dist/cjs/table/styled.js +0 -458
- package/dist/cjs/tabs/index.js +0 -1
- package/dist/cjs/tabs/styles.js +0 -96
- package/dist/cjs/textarea/index.js +0 -1
- package/dist/cjs/textarea/styled.js +0 -220
- package/dist/cjs/tinyscrollbar/index.js +0 -1
- package/dist/cjs/tinyscrollbar/scroll.styled.js +0 -21
- package/dist/cjs/types/InputProps.js +0 -1
- package/dist/cjs/upload/index.js +0 -1
- package/dist/cjs/upload/styled.js +0 -228
- package/dist/cjs/utils/CommonStyledComponents.js +0 -61
- package/dist/cjs/utils/GetIconSizeBySize.js +0 -1
- package/dist/cjs/utils/GetSizeSlugBySize.js +0 -1
- package/dist/cjs/utils/InlineSVGCached.js +0 -1
- package/dist/context/ITDThemeProvider.d.ts +0 -8
- package/dist/es/_virtual/_commonjsHelpers.js +0 -1
- package/dist/es/_virtual/customParseFormat.js +0 -1
- package/dist/es/_virtual/customParseFormat2.js +0 -1
- package/dist/es/_virtual/dayjs.min.js +0 -1
- package/dist/es/_virtual/dayjs.min2.js +0 -1
- package/dist/es/_virtual/localizedFormat.js +0 -1
- package/dist/es/_virtual/localizedFormat2.js +0 -1
- package/dist/es/_virtual/react.js +0 -1
- package/dist/es/accordion/index.js +0 -1
- package/dist/es/accordion/item/Item.js +0 -1
- package/dist/es/accordion/item/styled.js +0 -20
- package/dist/es/accordion/styled.js +0 -15
- package/dist/es/accordion/submenu/SubMenu.js +0 -1
- package/dist/es/accordion/submenu/styled.js +0 -214
- package/dist/es/alert/Description.js +0 -1
- package/dist/es/alert/Title.js +0 -1
- package/dist/es/alert/alert.style.error.js +0 -32
- package/dist/es/alert/alert.style.info.js +0 -32
- package/dist/es/alert/alert.style.neutral.js +0 -32
- package/dist/es/alert/alert.style.success.js +0 -32
- package/dist/es/alert/alert.style.warning.js +0 -32
- package/dist/es/alert/index.js +0 -1
- package/dist/es/alert/styled.js +0 -68
- package/dist/es/alink/index.js +0 -1
- package/dist/es/alink/styled.js +0 -5
- package/dist/es/back-top/index.js +0 -1
- package/dist/es/back-top/styled.js +0 -25
- package/dist/es/button/button.style.circle.js +0 -38
- package/dist/es/button/button.style.default.js +0 -44
- package/dist/es/button/button.style.filled.js +0 -49
- package/dist/es/button/button.style.ghost.js +0 -47
- package/dist/es/button/button.style.icon.js +0 -33
- package/dist/es/button/button.style.link.js +0 -45
- package/dist/es/button/button.style.outline.js +0 -49
- package/dist/es/button/button.style.size.js +0 -187
- package/dist/es/button/button.style.solid.js +0 -50
- package/dist/es/button/button.style.strecth.js +0 -8
- package/dist/es/button/index.js +0 -1
- package/dist/es/button/styled.js +0 -415
- package/dist/es/calendar/dates.js +0 -1
- package/dist/es/calendar/day/Day.js +0 -1
- package/dist/es/calendar/day/styled.js +0 -91
- package/dist/es/calendar/header/Header.js +0 -1
- package/dist/es/calendar/header/styled.js +0 -196
- package/dist/es/calendar/index.js +0 -1
- package/dist/es/calendar/styled.js +0 -82
- package/dist/es/card/index.js +0 -1
- package/dist/es/card/styles.js +0 -66
- package/dist/es/checkbox/group/index.js +0 -1
- package/dist/es/checkbox/group/styled.js +0 -9
- package/dist/es/checkbox/index.js +0 -1
- package/dist/es/checkbox/styled.js +0 -340
- package/dist/es/context/ITDContext.js +0 -1
- package/dist/es/context/ITDThemeProvider.js +0 -1
- package/dist/es/context/styled.js +0 -15
- package/dist/es/datepicker/index.js +0 -1
- package/dist/es/datepicker/styled.js +0 -60
- package/dist/es/enums/enum.js +0 -1
- package/dist/es/flex/index.js +0 -1
- package/dist/es/flex/styled.js +0 -35
- package/dist/es/form/context/FormContext.js +0 -1
- package/dist/es/form/context/FormStore.js +0 -1
- package/dist/es/form/control/Control.js +0 -1
- package/dist/es/form/control/styled.js +0 -8
- package/dist/es/form/group/Group.js +0 -1
- package/dist/es/form/group/styled.js +0 -7
- package/dist/es/form/index.js +0 -1
- package/dist/es/form/item/Item.js +0 -1
- package/dist/es/form/validation/TCIdentity.js +0 -1
- package/dist/es/form/validation/Validator.js +0 -1
- package/dist/es/form/wrapper/FormWrapper.js +0 -1
- package/dist/es/helpers/array/ChunkArray.js +0 -1
- package/dist/es/helpers/aspectratio/DetermineNewHeight.js +0 -1
- package/dist/es/helpers/aspectratio/DetermineNewWidth.js +0 -1
- package/dist/es/helpers/base64/Base64Decode.js +0 -1
- package/dist/es/helpers/base64/Base64Encode.js +0 -1
- package/dist/es/helpers/binary/FormatBytes.js +0 -1
- package/dist/es/helpers/binary/GetTypeByFileType.js +0 -1
- package/dist/es/helpers/checker/CheckFileURL.js +0 -1
- package/dist/es/helpers/checker/FileChecker.js +0 -1
- package/dist/es/helpers/country/GetCountryCodeByCurrencyCode.js +0 -1
- package/dist/es/helpers/country/GetCountryCodeByLanguage.js +0 -1
- package/dist/es/helpers/css/FindSelector.js +0 -1
- package/dist/es/helpers/currency/ConvertCurrency.js +0 -1
- package/dist/es/helpers/currency/GetByCurrency.js +0 -1
- package/dist/es/helpers/currency/GetCurrencyFormat.js +0 -1
- package/dist/es/helpers/currency/GetCurrencySymbol.js +0 -1
- package/dist/es/helpers/currency/GetDecimalByCurrency.js +0 -1
- package/dist/es/helpers/datetime/FormatDate.js +0 -1
- package/dist/es/helpers/datetime/FormatDateTime.js +0 -1
- package/dist/es/helpers/datetime/FormatSimpleDate.js +0 -1
- package/dist/es/helpers/datetime/FormatSimpleDateTime.js +0 -1
- package/dist/es/helpers/datetime/FormatTime.js +0 -1
- package/dist/es/helpers/datetime/dayjsSetup.js +0 -1
- package/dist/es/helpers/format/ToKebabCase.js +0 -1
- package/dist/es/helpers/json/IsValidJSON.js +0 -1
- package/dist/es/helpers/math/AddZero.js +0 -1
- package/dist/es/helpers/promise/Wait.js +0 -1
- package/dist/es/helpers/remover/RemoveUnits.js +0 -1
- package/dist/es/helpers/string/UniUpperCase.js +0 -1
- package/dist/es/helpers/svg/SVGLoader.js +0 -1
- package/dist/es/helpers/svg/styles.js +0 -22
- package/dist/es/helpers/theme/AddDefaultThemeStyle.js +0 -1
- package/dist/es/helpers/theme/Color.js +0 -1
- package/dist/es/helpers/theme/GenerateColorScale.js +0 -1
- package/dist/es/helpers/theme/UpdateThemeStyle.js +0 -1
- package/dist/es/helpers/theme/cssVariables.js +0 -1
- package/dist/es/helpers/theme/dark.js +0 -1
- package/dist/es/helpers/theme/light.js +0 -1
- package/dist/es/helpers/theme/tokens.js +0 -1
- package/dist/es/helpers/unit/AddDefaultUnit.js +0 -1
- package/dist/es/helpers/url/ValidURL.js +0 -1
- package/dist/es/hooks/useAddExternalCSS.js +0 -1
- package/dist/es/hooks/useAvoidCollision.js +0 -1
- package/dist/es/hooks/useComponentSize.js +0 -1
- package/dist/es/hooks/useConnectionStatus.js +0 -1
- package/dist/es/hooks/useConstructor.js +0 -1
- package/dist/es/hooks/useContextBridge.js +0 -1
- package/dist/es/hooks/useCoreFetch.js +0 -1
- package/dist/es/hooks/useKeyboardShortcut.js +0 -1
- package/dist/es/hooks/useMultiQuery.js +0 -1
- package/dist/es/hooks/useOnClickOutside.js +0 -1
- package/dist/es/hooks/useOnESCKeyDown.js +0 -1
- package/dist/es/hooks/useOnResize.js +0 -1
- package/dist/es/hooks/useOrientation.js +0 -1
- package/dist/es/hooks/useReCaptcha.js +0 -1
- package/dist/es/hooks/useSingleQuery.js +0 -1
- package/dist/es/html/header/H1.js +0 -1
- package/dist/es/html/header/H2.js +0 -1
- package/dist/es/html/header/H3.js +0 -1
- package/dist/es/html/header/H4.js +0 -1
- package/dist/es/html/header/styled.js +0 -33
- package/dist/es/icons/Arrow.js +0 -1
- package/dist/es/icons/BackToTop.js +0 -1
- package/dist/es/icons/Checkmark.js +0 -1
- package/dist/es/icons/InlineSelectArrow.js +0 -1
- package/dist/es/icons/Lock.js +0 -1
- package/dist/es/icons/NoData.js +0 -1
- package/dist/es/icons/Picture.js +0 -1
- package/dist/es/icons/Trash.js +0 -1
- package/dist/es/icons/Upload.js +0 -1
- package/dist/es/icons/ZoomIn.js +0 -1
- package/dist/es/icons/ZoomOut.js +0 -1
- package/dist/es/image/index.js +0 -1
- package/dist/es/image/styled.js +0 -4
- package/dist/es/index.js +0 -1
- package/dist/es/input/index.js +0 -1
- package/dist/es/input/style.settings.js +0 -1
- package/dist/es/input/styled.js +0 -430
- package/dist/es/locales/en/calendar.json.js +0 -1
- package/dist/es/locales/en/itd.json.js +0 -1
- package/dist/es/locales/tr/calendar.json.js +0 -1
- package/dist/es/locales/tr/itd.json.js +0 -1
- package/dist/es/logger/index.js +0 -1
- package/dist/es/modal/container/ModalContainer.js +0 -1
- package/dist/es/modal/container/styled.js +0 -27
- package/dist/es/modal/context/ModalContext.js +0 -1
- package/dist/es/modal/index.js +0 -1
- package/dist/es/modal/modal/Modal.js +0 -1
- package/dist/es/modal/modal/closeicon.svg.js +0 -1
- package/dist/es/modal/modal/styled.js +0 -128
- package/dist/es/node_modules/@react-spring/animated/dist/react-spring_animated.modern.js +0 -1
- package/dist/es/node_modules/@react-spring/core/dist/react-spring_core.modern.js +0 -1
- package/dist/es/node_modules/@react-spring/rafz/dist/react-spring_rafz.modern.js +0 -1
- package/dist/es/node_modules/@react-spring/shared/dist/react-spring_shared.modern.js +0 -1
- package/dist/es/node_modules/@react-spring/web/dist/react-spring_web.modern.js +0 -1
- package/dist/es/node_modules/dayjs/dayjs.min.js +0 -1
- package/dist/es/node_modules/dayjs/plugin/customParseFormat.js +0 -1
- package/dist/es/node_modules/dayjs/plugin/localizedFormat.js +0 -1
- package/dist/es/node_modules/fast-deep-equal/react.js +0 -1
- package/dist/es/node_modules/lodash-es/_Symbol.js +0 -1
- package/dist/es/node_modules/lodash-es/_arrayMap.js +0 -1
- package/dist/es/node_modules/lodash-es/_baseGetTag.js +0 -1
- package/dist/es/node_modules/lodash-es/_baseToString.js +0 -1
- package/dist/es/node_modules/lodash-es/_freeGlobal.js +0 -1
- package/dist/es/node_modules/lodash-es/_getRawTag.js +0 -1
- package/dist/es/node_modules/lodash-es/_objectToString.js +0 -1
- package/dist/es/node_modules/lodash-es/_root.js +0 -1
- package/dist/es/node_modules/lodash-es/isArray.js +0 -1
- package/dist/es/node_modules/lodash-es/isObject.js +0 -1
- package/dist/es/node_modules/lodash-es/isObjectLike.js +0 -1
- package/dist/es/node_modules/lodash-es/isSymbol.js +0 -1
- package/dist/es/node_modules/lodash-es/toString.js +0 -1
- package/dist/es/node_modules/lodash-es/uniqueId.js +0 -1
- package/dist/es/node_modules/lucide-react/dist/esm/Icon.js +0 -7
- package/dist/es/node_modules/lucide-react/dist/esm/createLucideIcon.js +0 -7
- package/dist/es/node_modules/lucide-react/dist/esm/defaultAttributes.js +0 -7
- package/dist/es/node_modules/lucide-react/dist/esm/icons/calendar-1.js +0 -7
- package/dist/es/node_modules/lucide-react/dist/esm/icons/chevron-down.js +0 -7
- package/dist/es/node_modules/lucide-react/dist/esm/icons/circle-x.js +0 -7
- package/dist/es/node_modules/lucide-react/dist/esm/icons/eye.js +0 -7
- package/dist/es/node_modules/lucide-react/dist/esm/icons/info.js +0 -7
- package/dist/es/node_modules/lucide-react/dist/esm/icons/trash.js +0 -7
- package/dist/es/node_modules/lucide-react/dist/esm/shared/src/utils.js +0 -7
- package/dist/es/node_modules/overlayscrollbars/overlayscrollbars.js +0 -10
- package/dist/es/node_modules/overlayscrollbars/styles/overlayscrollbars.css.js +0 -1
- package/dist/es/node_modules/react-number-format/dist/react-number-format.es.js +0 -1
- package/dist/es/node_modules/rollup-plugin-node-globals/src/global.js +0 -1
- package/dist/es/node_modules/rollup-plugin-styles/dist/runtime/inject-css.js +0 -1
- package/dist/es/node_modules/uuid/dist/esm-browser/native.js +0 -1
- package/dist/es/node_modules/uuid/dist/esm-browser/rng.js +0 -1
- package/dist/es/node_modules/uuid/dist/esm-browser/stringify.js +0 -1
- package/dist/es/node_modules/uuid/dist/esm-browser/v4.js +0 -1
- package/dist/es/notification/container/Container.js +0 -1
- package/dist/es/notification/container/styled.js +0 -26
- package/dist/es/notification/context/NotificationsContext.js +0 -1
- package/dist/es/notification/index.js +0 -1
- package/dist/es/notification/item/Item.js +0 -1
- package/dist/es/notification/item/styled.js +0 -42
- package/dist/es/progress/index.js +0 -1
- package/dist/es/progress/styled.js +0 -59
- package/dist/es/radio/button/RadioButton.js +0 -1
- package/dist/es/radio/button/styled.js +0 -133
- package/dist/es/radio/group/Group.js +0 -1
- package/dist/es/radio/group/styled.js +0 -7
- package/dist/es/radio/index.js +0 -1
- package/dist/es/result/index.js +0 -1
- package/dist/es/result/styled.js +0 -109
- package/dist/es/select/dropdown/Dropdown.js +0 -1
- package/dist/es/select/dropdown/styled.js +0 -239
- package/dist/es/select/index.js +0 -1
- package/dist/es/select/option/Option.js +0 -1
- package/dist/es/select/option/styled.js +0 -36
- package/dist/es/select/style.settings.js +0 -1
- package/dist/es/select/styled.js +0 -331
- package/dist/es/select/toggle/Toggle.js +0 -1
- package/dist/es/select/toggle/label/Label.js +0 -1
- package/dist/es/select/toggle/label/styled.js +0 -5
- package/dist/es/select/toggle/styled.js +0 -88
- package/dist/es/spin/index.js +0 -1
- package/dist/es/spin/styled.js +0 -74
- package/dist/es/status/index.js +0 -1
- package/dist/es/status/styled.js +0 -75
- package/dist/es/switch/index.js +0 -1
- package/dist/es/switch/styled.js +0 -209
- package/dist/es/table/index.js +0 -1
- package/dist/es/table/styled.js +0 -458
- package/dist/es/tabs/index.js +0 -1
- package/dist/es/tabs/styles.js +0 -96
- package/dist/es/textarea/index.js +0 -1
- package/dist/es/textarea/styled.js +0 -220
- package/dist/es/tinyscrollbar/index.js +0 -1
- package/dist/es/tinyscrollbar/scroll.styled.js +0 -21
- package/dist/es/types/InputProps.js +0 -1
- package/dist/es/upload/index.js +0 -1
- package/dist/es/upload/styled.js +0 -228
- package/dist/es/utils/CommonStyledComponents.js +0 -61
- package/dist/es/utils/GetIconSizeBySize.js +0 -1
- package/dist/es/utils/GetSizeSlugBySize.js +0 -1
- package/dist/es/utils/InlineSVGCached.js +0 -1
- package/dist/helpers/theme/Color.d.ts +0 -19
- package/dist/helpers/theme/GenerateColorScale.d.ts +0 -16
- package/dist/helpers/theme/cssVariables.d.ts +0 -30
- package/dist/helpers/theme/dark.d.ts +0 -3
- package/dist/helpers/theme/index.d.ts +0 -9
- package/dist/helpers/theme/light.d.ts +0 -3
- package/dist/helpers/theme/themes.d.ts +0 -5
- package/dist/helpers/theme/tokens.d.ts +0 -392
- package/dist/input/style.settings.d.ts +0 -9
- package/dist/select/dropdown/Dropdown.d.ts +0 -19
- package/dist/select/dropdown/styled.d.ts +0 -14
- package/dist/stats.html +0 -4949
- package/dist/stories/AlertComposition.d.ts +0 -2
- package/dist/stories/AlertComposition.stories.d.ts +0 -17
- package/dist/stories/ColorScale.d.ts +0 -10
- package/dist/stories/ColorScale.stories.d.ts +0 -24
- package/dist/stories/ColorScaleCompare.d.ts +0 -8
- package/dist/stories/ColorScaleCompare.stories.d.ts +0 -47
- package/dist/types/Theme.d.ts +0 -100
- package/dist/utils/CommonStyledComponents.d.ts +0 -17
- /package/dist/select/toggle/label/{styled.d.ts → single/styled.d.ts} +0 -0
package/dist/es/input/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsxs as e,jsx as t}from"react/jsx-runtime";import{forwardRef as n,useRef as r,useMemo as o,useState as u,useEffect as a,useImperativeHandle as l}from"react";import{PatternFormat as i,NumericFormat as s}from"../node_modules/react-number-format/dist/react-number-format.es.js";import{Wrapper as d,Content as c,Middle as p,IconsWrapper as m,AddonBefore as f,AddonAfter as h,Prefix as g,Suffix as w,Locked as v,LockIconWrapper as E,Failed as N}from"./styled.js";import{ErrorBorder as y,ErrorSVGIcon as D,ErrorTooltip as k}from"../utils/CommonStyledComponents.js";import C from"../utils/GetSizeSlugBySize.js";import{InputTypes as b}from"../types/InputProps.js";import{ComponentSizes as L}from"../enums/enum.js";import x from"../node_modules/uuid/dist/esm-browser/v4.js";let M=!1,S=!1;const I=n(({id:n,placeholder:I="",value:R="",defaultValue:T="",type:B=b.TEXT,className:U="",size:V=L.DEFAULT,variant:j="default",prefix:P=null,suffix:F=null,addonBefore:z=null,addonAfter:_=null,status:A=null,locked:O=null,minValue:$=0,maxValue:K=-1,maxLength:X=-1,disabled:Z=!1,autoComplete:G=!1,keepFocus:Y=!1,mask:q=null,allowEmptyFormatting:H=!1,allowLeadingZeros:J=!1,decimalSeparator:Q=".",thousandSeparator:W=",",decimalScale:ee=2,focusRef:te=null,onChange:ne=null,onUpdate:re=null,onFocus:oe=null,onBlur:ue=null,onPressEnter:ae=null,onKeyDown:le=null,children:ie=null},se)=>{const de=r(null),ce=r(null),pe=o(()=>n||"itd-input-"+x(),[n]),[me,fe]=u(B===b.NUMBER?0:""),[he,ge]=u(""),[we,ve]=u(!1),[Ee,Ne]=u(!1),[ye,De]=u(!1),[ke,Ce]=u(!1),[be,Le]=u(!0),xe=()=>{!G&&be&&Le(!1)},Me=e=>{xe(),ce.current&&!O&&(ce.current.focus(),Ne(!0)),e&&e.preventDefault&&e.preventDefault(),e&&e.stopPropagation&&e.stopPropagation()};a(()=>{(()=>{if(M)return;M=!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})})(),Se();const e=e=>{try{const t=(ce.current?.id||"").split("_")[0];e?.detail?.formId&&t&&e.detail.formId===t&&!G&&be&&Le(!1)}catch{}};return document.addEventListener("itd-input-unlock",e,{passive:!0}),T&&Ie(T),()=>{document.removeEventListener("itd-input-unlock",e)}},[]),a(()=>{if(!Ee)return;const e=e=>{de.current&&!de.current.contains(e.target)&&(ve(!1),Ne(!1),Y&&te?.current&&De(te.current.contains(e.target)))};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[Ee,Y,te]),a(()=>{Ie(B===b.NUMBER?Number(R):String(R),!0,""!==R)},[R]);const Se=()=>{ce.current&&de.current&&Y&&ce.current&&de.current&&(ce.current?.focus(),Ne(!0))},Ie=(e,t=!0,n=!0)=>{fe(e),re&&re(e,t,n)};l(se,()=>({setFocus(){(ce.current||de.current)&&(Ne(!0),ce.current?.focus()),De(!0)},reset(e=!0,t=!0){fe(T||""),ge(""),Ie(B===b.NUMBER?0:"",e,t)},setValue(e,t=!0,n=!0){fe(e),Ie(e,t,n)},getValue:()=>me,setError(e){ge(e)},forceUpdate(){Ie(me)},clear(){fe("")},scrollIntoView(e){ce.current?.scrollIntoView(e)}}));const Re=e=>{const t="string"==typeof e&&q&&e.replace(/\D+/g,"").length<q.replace(/\D+/g,"").length;Ie(e,!0,!t),ne&&ne(e)},Te=e=>{Re(e.value)},Be=e=>{ce.current?.focus(),Ne(!0),ve(!0===S),!G&&be&&Le(!1),oe&&oe(e)},Ue=e=>{Ne(!1),ve(!1),G||Le(!0),Y&&ye&&ce.current&&de.current&&(Ne(!0),ce.current.focus()),q&&"string"==typeof me&&me.replace(/\D+/g,"").length<q.replace(/\D+/g,"").length&&T&&Ie(T,!0,!1),ue?ue(e):e.target.blur()},Ve=e=>{"Tab"===e.key&&ve(!0),13===e.keyCode&&ae&&ae(e),le&&le(e)},je=()=>{let e={id:pe,placeholder:I,value:me,type:B,spellCheck:"false",autoCorrect:"off",autoCapitalize:"none",className:Ke(),onFocus:Be,onBlur:Ue,onKeyDown:Ve,disabled:Z||O};return O&&(e["data-locked"]=!0),e=G?{...e,autoComplete:"on"}:{...e,autoComplete:"new-password",name:pe,onMouseDown:xe,onPointerDown:xe,onTouchStart:xe,readOnly:be},q?(e={...e,format:q,mask:"_",allowEmptyFormatting:H,onChange:e=>Re(e.target.value)},t(i,{...e,getInputRef:ce})):B===b.CURRENCY?(e={...e,maxLength:X,type:b.TEXT,allowLeadingZeros:J,decimalSeparator:Q,thousandSeparator:W,decimalScale:ee,getInputRef:ce,onValueChange:Te,onMouseDown:xe,isAllowed:e=>{const{floatValue:t}=e;return t>=$&&(t<=K||-1===K)||void 0===t}},t(s,{...e})):B===b.NUMBER?(e={...e,type:b.NUMBER,maxLength:X,onMouseDown:xe,onChange:e=>{const t=Number(e.target.value.replace(/,/g,"."));t>=$&&-1===K||t>=$&&t<=K?Re(t):t<$?Re($):t>K&&Re(K)},ref:ce},t("input",{...e})):(e={...e,maxLength:X,onChange:e=>Re(e.target.value),onMouseDown:xe,ref:ce},t("input",{...e}))},Pe=()=>{if(z)return t(f,{className:"itd-input-addon-before itd-input-"+C(V),onMouseDown:Me,children:z})},Fe=()=>{if(_)return t(h,{className:"itd-input-addon-after itd-input-"+C(V),onMouseDown:Me,children:_})},ze=()=>{if(P)return t(g,{className:"itd-input-prefix",onMouseDown:Me,children:P})},_e=()=>{if(F||he)return e(w,{className:"itd-input-suffix",onMouseDown:Me,children:[$e(),F]})},Ae=()=>{if(O)return t(v,{className:"itd-input-locked",children:"boolean"!=typeof O?O:t(E,{className:"itd-svg",width:"16",height:"16"})})},Oe=()=>{if(""!==he&&!Z&&!O)return t(y,{className:"itd-error-border"})},$e=()=>{if(""===he||Z||O)return;return e(N,{...{className:"itd-input-failed itd-failed-status",onPointerOver:()=>Ce(!0),onPointerOut:()=>Ce(!1)},children:[ke?t(k,{className:"itd-input-error-tooltip itd-error-tooltip",children:he}):null,A||D]})},Ke=()=>"itd-input-default-input",Xe=o(()=>{let e="itd-input itd-input-"+B;return e+=" itd-input-"+C(V),e+=" itd-input-"+j,q&&(e+=" itd-input-masked"),Z&&(e+=" itd-input-disabled"),O&&(e+=" itd-input-locked"),he&&(e+=" itd-input-error"),""!==U&&(e+=" "+U),Ee&&we&&(e+=" keyboard-focus"),Ee&&(e+=" focused"),e},[q,j,V,he,Z,U,O,Ee,we]);return(()=>{if(ie)throw new Error("ITD Input Error: Remove the children!");return e(d,{className:Xe,ref:de,children:[Pe(),e(c,{className:"itd-input-"+C(V),$hasPrefix:null!==P,$hasSuffix:null!==F,$hasError:""!==he&&!Z&&!O,children:[ze(),e(p,{className:"itd-input-middle",children:[je(),Oe()]}),e(m,{className:"itd-input-icons-wrapper",children:[_e(),Ae()]})]}),Fe()]})})()});I.displayName="ITD-Input";export{I as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{INPUT_SIZE_MAP as s}from"../helpers/theme/tokens.js";const m={xs:s.xs,sm:s.sm,md:s.md,df:s.df,lg:s.lg,xlg:s.xlg},e=s=>m[s]||m.df;export{e as getInputSizeBySize};
|
package/dist/es/input/styled.js
DELETED
|
@@ -1,430 +0,0 @@
|
|
|
1
|
-
import i,{css as t}from"styled-components";import{getInputSizeBySize as e}from"./style.settings.js";import o from"../icons/Lock.js";import{ComponentSizesSlug as d,ThemeAppearances as r}from"../enums/enum.js";import{withOpacity as n}from"../helpers/theme/Color.js";export{ErrorBorder,ErrorTooltip}from"../utils/CommonStyledComponents.js";const a=i.div`
|
|
2
|
-
|
|
3
|
-
width : inherit;
|
|
4
|
-
|
|
5
|
-
position : relative;
|
|
6
|
-
display : flex;
|
|
7
|
-
align-items : center;
|
|
8
|
-
justify-content : space-between;
|
|
9
|
-
|
|
10
|
-
border-radius : calc( ${({theme:i})=>i.borderRadius} - 0.125rem);
|
|
11
|
-
border : 1px solid transparent;
|
|
12
|
-
outline : 0 solid transparent;
|
|
13
|
-
outline-offset : ${({theme:i})=>i.ringOffset};
|
|
14
|
-
|
|
15
|
-
transition : outline 100ms linear,
|
|
16
|
-
border-color ${({theme:i})=>i.transitionDuration} ${({theme:i})=>i.transitionTimingFunction},
|
|
17
|
-
background-color ${({theme:i})=>i.transitionDuration} ${({theme:i})=>i.transitionTimingFunction};
|
|
18
|
-
|
|
19
|
-
&.itd-input-default {
|
|
20
|
-
box-shadow : ${({theme:i})=>i.boxShadow};
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&.itd-input-disabled, &.itd-input-locked {
|
|
24
|
-
cursor: not-allowed;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
input {
|
|
28
|
-
|
|
29
|
-
background: none;
|
|
30
|
-
border-width: 0;
|
|
31
|
-
display: block;
|
|
32
|
-
width: 100%;
|
|
33
|
-
height: 100%;
|
|
34
|
-
border: none;
|
|
35
|
-
|
|
36
|
-
color: ${({theme:i})=>i.colorText};
|
|
37
|
-
|
|
38
|
-
&::placeholder {
|
|
39
|
-
color: ${({theme:i})=>i.colorPlaceholder};
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&:disabled {
|
|
43
|
-
cursor: not-allowed;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&:-webkit-autofill {
|
|
47
|
-
-webkit-box-shadow: 0 0 0 1.875rem transparent inset;
|
|
48
|
-
-webkit-text-fill-color: ${({theme:i})=>i.colorText};
|
|
49
|
-
transition: background-color 5000s ease-in-out 0s;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&:-webkit-autofill::first-line {
|
|
53
|
-
font-size: inherit;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/* ------------------------ */
|
|
59
|
-
// VARIANT
|
|
60
|
-
/* ------------------------ */
|
|
61
|
-
${()=>t`
|
|
62
|
-
|
|
63
|
-
/* FILLED */
|
|
64
|
-
&.itd-input-filled {
|
|
65
|
-
|
|
66
|
-
background-color: ${({theme:i})=>i.colorBackgroundAlt};
|
|
67
|
-
|
|
68
|
-
&:hover:not(&.focused, &.itd-input-disabled, &.itd-input-locked) {
|
|
69
|
-
background-color: ${({theme:i})=>i.colorBackgroundAltHover};
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
&.itd-input-disabled {
|
|
73
|
-
|
|
74
|
-
background-color: ${({theme:i})=>i.colorDisabledBg};
|
|
75
|
-
border: 1px solid ${({theme:i})=>i.colorDisabledBorder};
|
|
76
|
-
|
|
77
|
-
input,
|
|
78
|
-
.itd-input-addon-before, .itd-input-addon-after,
|
|
79
|
-
.itd-input-prefix, .itd-input-suffix {
|
|
80
|
-
color: ${({theme:i})=>i.colorDisabledText};
|
|
81
|
-
&::placeholder {
|
|
82
|
-
color: ${({theme:i})=>i.colorDisabledText};
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/* DASHED */
|
|
91
|
-
&.itd-input-dashed {
|
|
92
|
-
|
|
93
|
-
.itd-error-border {
|
|
94
|
-
border-style: dashed;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
&::after {
|
|
98
|
-
content: '';
|
|
99
|
-
position: absolute;
|
|
100
|
-
border: 1px dashed transparent;
|
|
101
|
-
width: calc(100% + 2px);
|
|
102
|
-
height: calc(100% + 2px);
|
|
103
|
-
border-radius: calc( ${({theme:i})=>i.borderRadius} - 2px);
|
|
104
|
-
top: -1px;
|
|
105
|
-
left: -1px;
|
|
106
|
-
pointer-events: none;
|
|
107
|
-
transition: border-color ${({theme:i})=>i.transitionDuration} ${({theme:i})=>i.transitionTimingFunction};
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
&::after {
|
|
111
|
-
border-color: ${({theme:i})=>i.colorBorder};
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
&:hover:not(&.focused, &.itd-input-disabled) {
|
|
115
|
-
&::after { border-color: ${({theme:i})=>i.colorBorderHover}; }
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
&.itd-input-disabled {
|
|
119
|
-
|
|
120
|
-
background-color: ${({theme:i})=>i.colorDisabledBg};
|
|
121
|
-
|
|
122
|
-
input,
|
|
123
|
-
.itd-input-addon-before, .itd-input-addon-after,
|
|
124
|
-
.itd-input-prefix, .itd-input-suffix {
|
|
125
|
-
color: ${({theme:i})=>i.colorDisabledText};
|
|
126
|
-
&::placeholder {
|
|
127
|
-
color: ${({theme:i})=>i.colorDisabledText};
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
&::after {
|
|
132
|
-
border-color: ${({theme:i})=>i.colorDisabledBorder};
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
/* DEFAULT */
|
|
140
|
-
&.itd-input-default {
|
|
141
|
-
|
|
142
|
-
border: 1px solid transparent;
|
|
143
|
-
border-color: ${({theme:i})=>i.colorBorder};
|
|
144
|
-
|
|
145
|
-
&:hover:not(&.focused, &.itd-input-disabled) {
|
|
146
|
-
border-color: ${({theme:i})=>i.colorBorderHover};
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
&.itd-input-disabled {
|
|
150
|
-
|
|
151
|
-
background-color: ${({theme:i})=>i.colorDisabledBg};
|
|
152
|
-
border: 1px solid ${({theme:i})=>i.colorDisabledBorder};
|
|
153
|
-
|
|
154
|
-
input,
|
|
155
|
-
.itd-input-addon-before, .itd-input-addon-after,
|
|
156
|
-
.itd-input-prefix, .itd-input-suffix {
|
|
157
|
-
color: ${({theme:i})=>i.colorDisabledText};
|
|
158
|
-
&::placeholder {
|
|
159
|
-
color: ${({theme:i})=>i.colorDisabledText};
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
&.itd-input-filled {
|
|
168
|
-
&.focused {
|
|
169
|
-
/* Mouse ile focus - sadece arka plan rengi değişir */
|
|
170
|
-
background-color: ${({theme:i})=>i.colorBackgroundAltHover};
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
&.itd-input-default, &.itd-input-filled, &.itd-input-dashed, &.itd-input-custom {
|
|
175
|
-
|
|
176
|
-
&.keyboard-focus {
|
|
177
|
-
|
|
178
|
-
/* Tab ile focus - outline göster */
|
|
179
|
-
&:not(.itd-input-error) {
|
|
180
|
-
outline: ${({theme:i})=>i.ringWidth} solid ${({theme:i})=>n(i.primaryScale[i.appearance===r.LIGHT?400:900],.5)};
|
|
181
|
-
}
|
|
182
|
-
&.itd-input-error {
|
|
183
|
-
outline: ${({theme:i})=>i.ringWidth} solid ${({theme:i})=>n(i.colorErrorBorder,.5)};
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
&.itd-input-default, &.itd-input-dashed, &.itd-input-custom {
|
|
191
|
-
/* İç sınır da mavi olsun ki çift efekt görülsün */
|
|
192
|
-
&.focused, &.keyboard-focus {
|
|
193
|
-
border-color: ${({theme:i})=>i.primaryScale[i.appearance===r.LIGHT?400:900]};
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
`}
|
|
198
|
-
|
|
199
|
-
/* ------------------------ */
|
|
200
|
-
// SIZE
|
|
201
|
-
/* ------------------------ */
|
|
202
|
-
${()=>t`
|
|
203
|
-
|
|
204
|
-
/* X-SMALL */
|
|
205
|
-
&.itd-input-xs {
|
|
206
|
-
|
|
207
|
-
input,
|
|
208
|
-
.itd-input-addon-before, .itd-input-addon-after,
|
|
209
|
-
.itd-input-prefix, .itd-input-suffix {
|
|
210
|
-
font-size : ${e(d.X_SMALL).fontSize};
|
|
211
|
-
line-height : ${e(d.X_SMALL).lineHeight};
|
|
212
|
-
font-weight : ${e(d.X_SMALL).fontWeight};
|
|
213
|
-
height : ${e(d.X_SMALL).height};
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
/* SMALL */
|
|
219
|
-
&.itd-input-sm {
|
|
220
|
-
|
|
221
|
-
input,
|
|
222
|
-
.itd-input-addon-before, .itd-input-addon-after,
|
|
223
|
-
.itd-input-prefix, .itd-input-suffix {
|
|
224
|
-
font-size : ${e(d.SMALL).fontSize};
|
|
225
|
-
line-height : ${e(d.SMALL).lineHeight};
|
|
226
|
-
font-weight : ${e(d.SMALL).fontWeight};
|
|
227
|
-
height : ${e(d.SMALL).height};
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
/* MEDIUM */
|
|
233
|
-
&.itd-input-md {
|
|
234
|
-
|
|
235
|
-
input,
|
|
236
|
-
.itd-input-addon-before, .itd-input-addon-after,
|
|
237
|
-
.itd-input-prefix, .itd-input-suffix {
|
|
238
|
-
font-size : ${e(d.MEDIUM).fontSize};
|
|
239
|
-
line-height : ${e(d.MEDIUM).lineHeight};
|
|
240
|
-
font-weight : ${e(d.MEDIUM).fontWeight};
|
|
241
|
-
height : ${e(d.MEDIUM).height};
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
/* DEFAULT */
|
|
247
|
-
&.itd-input-df {
|
|
248
|
-
|
|
249
|
-
input,
|
|
250
|
-
.itd-input-addon-before, .itd-input-addon-after,
|
|
251
|
-
.itd-input-prefix, .itd-input-suffix {
|
|
252
|
-
font-size : ${e(d.DEFAULT).fontSize};
|
|
253
|
-
line-height : ${e(d.DEFAULT).lineHeight};
|
|
254
|
-
font-weight : ${e(d.DEFAULT).fontWeight};
|
|
255
|
-
height : ${e(d.DEFAULT).height};
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
/* LARGE */
|
|
261
|
-
&.itd-input-lg {
|
|
262
|
-
|
|
263
|
-
input,
|
|
264
|
-
.itd-input-addon-before, .itd-input-addon-after,
|
|
265
|
-
.itd-input-prefix, .itd-input-suffix {
|
|
266
|
-
font-size : ${e(d.LARGE).fontSize};
|
|
267
|
-
line-height : ${e(d.LARGE).lineHeight};
|
|
268
|
-
font-weight : ${e(d.LARGE).fontWeight};
|
|
269
|
-
height : ${e(d.LARGE).height};
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
/* X-LARGE */
|
|
275
|
-
&.itd-input-xlg {
|
|
276
|
-
|
|
277
|
-
input,
|
|
278
|
-
.itd-input-addon-before, .itd-input-addon-after,
|
|
279
|
-
.itd-input-prefix, .itd-input-suffix {
|
|
280
|
-
font-size : ${e(d.LARGE).fontSize};
|
|
281
|
-
line-height : ${e(d.LARGE).lineHeight};
|
|
282
|
-
font-weight : ${e(d.LARGE).fontWeight};
|
|
283
|
-
height : ${e(d.X_LARGE).height};
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
`}
|
|
289
|
-
|
|
290
|
-
`,l=i.div`
|
|
291
|
-
|
|
292
|
-
display : grid;
|
|
293
|
-
grid-auto-flow : column;
|
|
294
|
-
align-items : center;
|
|
295
|
-
width : 100%;
|
|
296
|
-
justify-content : flex-start;
|
|
297
|
-
|
|
298
|
-
${i=>i.$hasPrefix&&i.$hasSuffix?t`
|
|
299
|
-
grid-template-columns: auto 1fr auto;
|
|
300
|
-
`:i.$hasPrefix&&!i.$hasSuffix?t`
|
|
301
|
-
grid-template-columns: auto 1fr;
|
|
302
|
-
`:!i.$hasPrefix&&i.$hasSuffix?t`
|
|
303
|
-
grid-template-columns: 1fr auto;
|
|
304
|
-
`:t`
|
|
305
|
-
grid-template-columns: 1fr;
|
|
306
|
-
`}
|
|
307
|
-
|
|
308
|
-
/* Dynamic horizontal padding by input size slug */
|
|
309
|
-
&.itd-input-xs input { padding: 0 ${e(d.X_SMALL).paddingX}; }
|
|
310
|
-
&.itd-input-sm input { padding: 0 ${e(d.SMALL).paddingX}; }
|
|
311
|
-
&.itd-input-md input { padding: 0 ${e(d.MEDIUM).paddingX}; }
|
|
312
|
-
&.itd-input-df input { padding: 0 ${e(d.DEFAULT).paddingX}; }
|
|
313
|
-
&.itd-input-lg input { padding: 0 ${e(d.LARGE).paddingX}; }
|
|
314
|
-
&.itd-input-xlg input { padding: 0 ${e(d.X_LARGE).paddingX}; }
|
|
315
|
-
|
|
316
|
-
`,p=i.div`
|
|
317
|
-
|
|
318
|
-
width: 100%;
|
|
319
|
-
height: 100%;
|
|
320
|
-
justify-self: flex-start;
|
|
321
|
-
|
|
322
|
-
`,u=i.div`
|
|
323
|
-
|
|
324
|
-
display : grid;
|
|
325
|
-
grid-auto-flow : column;
|
|
326
|
-
grid-template-columns : 1fr;
|
|
327
|
-
grid-gap : 0.3125rem;
|
|
328
|
-
justify-items : flex-end;
|
|
329
|
-
margin-right : 0.75rem;
|
|
330
|
-
|
|
331
|
-
`,s=i.div`
|
|
332
|
-
|
|
333
|
-
display: flex;
|
|
334
|
-
align-items: center;
|
|
335
|
-
height: 100%;
|
|
336
|
-
margin-left: 0.625rem;
|
|
337
|
-
|
|
338
|
-
span {
|
|
339
|
-
transition: color .3s ease-out;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
`,c=i.div`
|
|
343
|
-
|
|
344
|
-
display: flex;
|
|
345
|
-
align-items: center;
|
|
346
|
-
height: 100%;
|
|
347
|
-
gap: 0.3125rem;
|
|
348
|
-
|
|
349
|
-
span {
|
|
350
|
-
transition: color .3s ease-out;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
`,h=i.div`
|
|
354
|
-
|
|
355
|
-
display: flex;
|
|
356
|
-
align-items: center;
|
|
357
|
-
height: 100%;
|
|
358
|
-
|
|
359
|
-
`,f=i.div`
|
|
360
|
-
|
|
361
|
-
display: flex;
|
|
362
|
-
align-items: center;
|
|
363
|
-
justify-content: center;
|
|
364
|
-
|
|
365
|
-
color: ${({theme:i})=>i.colorTextNeutral};
|
|
366
|
-
background-color: ${({theme:i})=>i.colorBackgroundAltHover};
|
|
367
|
-
height: 100%;
|
|
368
|
-
|
|
369
|
-
span {
|
|
370
|
-
transition: color .3s ease-out;
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
`,g=i(f)`
|
|
374
|
-
|
|
375
|
-
border-radius: calc( ${({theme:i})=>i.borderRadius} - 0.1875rem) 0 0 calc( ${({theme:i})=>i.borderRadius} - 0.1875rem);
|
|
376
|
-
|
|
377
|
-
&.itd-input-xs { padding: 0 ${e(d.X_SMALL).paddingX}; }
|
|
378
|
-
&.itd-input-sm { padding: 0 ${e(d.SMALL).paddingX}; }
|
|
379
|
-
&.itd-input-md { padding: 0 ${e(d.MEDIUM).paddingX}; }
|
|
380
|
-
&.itd-input-df { padding: 0 ${e(d.DEFAULT).paddingX}; }
|
|
381
|
-
&.itd-input-lg { padding: 0 ${e(d.LARGE).paddingX}; }
|
|
382
|
-
&.itd-input-xlg{ padding: 0 ${e(d.X_LARGE).paddingX}; }
|
|
383
|
-
`,m=i(f)`
|
|
384
|
-
|
|
385
|
-
border-radius: 0 calc( ${({theme:i})=>i.borderRadius} - 0.1875rem) calc( ${({theme:i})=>i.borderRadius} - 0.1875rem) 0;
|
|
386
|
-
|
|
387
|
-
&.itd-input-xs { padding: 0 ${e(d.X_SMALL).paddingX}; }
|
|
388
|
-
&.itd-input-sm { padding: 0 ${e(d.SMALL).paddingX}; }
|
|
389
|
-
&.itd-input-md { padding: 0 ${e(d.MEDIUM).paddingX}; }
|
|
390
|
-
&.itd-input-df { padding: 0 ${e(d.DEFAULT).paddingX}; }
|
|
391
|
-
&.itd-input-lg { padding: 0 ${e(d.LARGE).paddingX}; }
|
|
392
|
-
&.itd-input-xlg{ padding: 0 ${e(d.X_LARGE).paddingX}; }
|
|
393
|
-
`,$=i(o)`
|
|
394
|
-
|
|
395
|
-
fill: ${({theme:i})=>i.colorIconMuted};
|
|
396
|
-
|
|
397
|
-
`,b=i.div`
|
|
398
|
-
|
|
399
|
-
display: flex;
|
|
400
|
-
align-items: center;
|
|
401
|
-
justify-content: center;
|
|
402
|
-
|
|
403
|
-
cursor: pointer;
|
|
404
|
-
position: relative;
|
|
405
|
-
|
|
406
|
-
&[data-icon="i"] {
|
|
407
|
-
&::before {
|
|
408
|
-
padding: 0.25rem;
|
|
409
|
-
border-radius: 3.125rem;
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
/* Error status icon colors (circle => colorError, path => colorErrorText) */
|
|
414
|
-
svg circle {
|
|
415
|
-
fill: ${({theme:i})=>i.colorError};
|
|
416
|
-
}
|
|
417
|
-
svg path {
|
|
418
|
-
fill: ${({theme:i})=>i.colorErrorText};
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
`;i(b)`
|
|
422
|
-
|
|
423
|
-
`,i(b)`
|
|
424
|
-
|
|
425
|
-
`;const x=i(b)`
|
|
426
|
-
color: ${({theme:i})=>i.colorText};
|
|
427
|
-
&::before {
|
|
428
|
-
background-color: ${({theme:i})=>i.colorError};
|
|
429
|
-
}
|
|
430
|
-
`;export{m as AddonAfter,g as AddonBefore,l as Content,x as Failed,u as IconsWrapper,$ as LockIconWrapper,h as Locked,p as Middle,s as Prefix,c as Suffix,a as Wrapper};
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
package/dist/es/logger/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1 +0,0 @@
|
|
|
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 c="itd-modal-root",s=({onShowModal:s,onHideModal:a,onRemoveModal:m,onModalEvent:h,modals:g,visibleModals:p,modalEvent:v})=>{const[y,f]=l(null);n(()=>{if(g.length>0&&!y){if(!document.getElementById(c)){let e=document.createElement("div");e.id=c,e.style.cssText="position:absolute;z-index:5",document.body.appendChild(e),f(e)}}else if(0===g.length&&0===p.length&&y)try{document.body.removeChild(y),f(null)}catch(e){}},[g,p,y]);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=>{s(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:v,hideModalFromProvider:b,isVisible:p.includes(String(t.id)),...t},t.id);return y?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",$show:n}),x(l)]},l.id)})}),y):null};export{s as default};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import t,{css as o}from"styled-components";const i=t.div`
|
|
2
|
-
|
|
3
|
-
width: 100vw;
|
|
4
|
-
height: 100vh;
|
|
5
|
-
position: fixed;
|
|
6
|
-
top: 0;
|
|
7
|
-
left: 0;
|
|
8
|
-
|
|
9
|
-
`,e=t.div`
|
|
10
|
-
|
|
11
|
-
background: #000000BF;
|
|
12
|
-
position: fixed;
|
|
13
|
-
top: 0;
|
|
14
|
-
left: 0;
|
|
15
|
-
width: 100vw;
|
|
16
|
-
height: 100%;
|
|
17
|
-
transition: opacity .25s ease-out;
|
|
18
|
-
opacity: 0;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
${({$show:t})=>t?o`
|
|
22
|
-
opacity: 1;
|
|
23
|
-
`:o`
|
|
24
|
-
opacity: 0;
|
|
25
|
-
`}
|
|
26
|
-
|
|
27
|
-
`;export{e as Overlay,i as Wrapper};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{createContext as t}from"react";const a=t({});a.displayName="ITDModalContext";export{a as default};
|
package/dist/es/modal/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t}from"react/jsx-runtime";import{useRef as o,useState as n,useEffect as i,cloneElement as d}from"react";import{CSSTransition as r}from"react-transition-group";import{ModalState as l,ComponentSizes as a}from"../../enums/enum.js";import"../../logger/index.js";import c from"../../hooks/useOnClickOutside.js";import s from"../../hooks/useOnESCKeyDown.js";import"react-router-dom";import"axios";import m from"../../button/index.js";import u from"./closeicon.svg.js";import"../../index.js";import{Wrapper as p,ModalInnerWrapper as h,ModalBody as f,ModalContent as C,CloseButton as E,ModalInnerContent as v,ModalHeader as g,ModalInnerContentBefore as M,ModalInnerContentAfter as N,ModalFooter as O}from"./styled.js";import y from"../../utils/InlineSVGCached.js";import k from"../../spin/index.js";import S from"../../html/header/H4.js";import"../../html/header/styled.js";const b=b=>{const w=o(null),x=o(null),A=o(null),[j,I]=n(!0),[L,B]=n(!1),[$,P]=n(!1),[R,K]=n(!1),[T,_]=n(!1);i(()=>(b.onModalEvent(l.BEGIN,b.id?b.id:""),()=>{b.onModalEvent(l.REMOVED,b.id?b.id:"")}),[]),i(()=>{B(j),j||b.onHideModal&&b.onHideModal(String(b.id))},[j]),c(x,()=>{!b.closeOnClickOutside||$||T||b.isActive&&(b.onModalEvent(l.OUTSIDE_CLICK,b.id?b.id:""),Q(),B(!1))}),s(()=>{b.preventESC||$||T||b.isActive&&(b.onModalEvent(l.ESC_CLICK,b.id?b.id:""),Q(),B(!1))});const D=()=>{b.isActive&&B(!1)},G=()=>{b.onRemoveModal&&b.onRemoveModal(String(b.id))},V=e=>{b.isActive&&(b.removeOthers,b.onShowModal(e))},X=e=>{K(!e)},z=e=>{P(e)},F=e=>{_(e)},H=()=>{b.onModalEvent(l.CLOSE_CLICK,b.id?b.id:""),Q(),b.hideModalFromProvider(b.id?b.id:""),B(!1)},U=()=>{b.isActive&&(b.onModalEvent(l.OK_CLICK,b.id?b.id:""),J()&&(b.hideModalFromProvider(b.id?b.id:""),B(!1)))},q=()=>{b.isActive&&(b.onModalEvent(l.CANCEL_CLICK,b.id?b.id:""),Q()&&(b.hideModalFromProvider(b.id?b.id:""),B(!1)))},J=()=>{if(!w.current)return!b.onOk||b.onOk();w.current.onClickOK&&w.current.onClickOK()},Q=()=>{if(!w.current)return!b.onCancel||b.onCancel();w.current.onClickCancel&&w.current.onClickCancel()},W=()=>{b.onModalEvent(l.ENTERING,b.id?b.id:"")},Y=()=>{b.onModalEvent(l.ENTERED,b.id?b.id:""),b.onShow&&b.onShow()},Z=()=>{b.onModalEvent(l.EXITING,b.id?b.id:"")},ee=()=>{b.onModalEvent(l.EXITED,b.id?b.id:""),b.onExit&&b.onExit(),I(!1)},te=e=>{if(e.content&&Object(e.content).props&&Object.keys(Object(e.content).props).length>0)return{};let t={hideCurrentModal:D,removeCurrentModal:G,showAnotherModal:V,changeButtonsState:X,changeLoadingState:z,changeInnerLoadingState:F,modalProps:{...e.customProps},context:{...e.context}};return e.checkAutoRef&&e.content.type.hasOwnProperty("$$typeof")&&(console.log("(props.content as React.ReactElement).type['$$typeof']",e.content.type.$$typeof),"Symbol(react.forward_ref)"===e.content.type.$$typeof.toString()&&(t.ref=w)),e.useRef&&(t.ref=w),t},oe=()=>{if(b.content)return e("div",{className:"itd-modal-middle-content-body",children:d(b.content,te(b))})},ne=()=>{if(b.addContentBefore)return e(M,{className:"itd-modal-middle-content-before",$padding:b.beforeContentPadding,children:b.addContentBefore})},ie=()=>{if(b.addContentAfter)return e(N,{className:"itd-modal-middle-content-after",$padding:b.afterContentPadding,children:b.addContentAfter})},de=()=>{let e=b.width;return"number"==typeof e&&(e=b.width+"px"),e};return i(()=>{b.modalEvent.event===l.EXITING&&b.modalEvent.id===b.id&&B(!1)},[b.modalEvent,b.id]),i(()=>{!b.isVisible&&L&&B(!1)},[b.isVisible,L,b.id]),j?e("div",{className:"itd-modal-container".concat(" "+b.className),children:e(r,{in:L,timeout:600,classNames:"modal",nodeRef:A,onEntering:W,onEntered:Y,onExiting:Z,onExited:ee,unmountOnExit:!0,children:e(p,{className:"itd-modal-content-wrapper",ref:A,children:e(h,{className:"itd-modal-inner-wrapper",$padding:b.outerPadding,children:e(f,{className:"itd-modal-body",$width:de(),children:e(C,{className:"itd-modal-content",ref:x,children:t(k,{updating:T,children:[!1!==b.showCloseButton&&e(E,{className:"itd-modal-close-button",children:e(m,{size:a.X_SMALL,variant:"ghost",onClick:H,icon:e(y,{src:u}),disabled:$||T||!b.isActive})}),b.title?e(g,{className:"itd-modal-header",children:"string"==typeof b.title?e(S,{children:b.title}):b.title}):null,ne(),e(v,{className:"itd-modal-middle-content",$padding:b.contentPadding,children:oe()}),ie(),b.showOkButton||b.showCancelButton?t(O,{className:"itd-modal-footer",children:[b.showCancelButton&&e(m,{variant:"solid",size:a.SMALL,type:"button",onClick:q,disabled:$||T||!b.isActive||R,...b.cancelButtonProps,children:b.cancelButtonText}),b.showOkButton&&e(m,{variant:"default",size:a.SMALL,type:"button",onClick:U,loading:$,disabled:T||!b.isActive||R,...b.okButtonProps,children:b.okButtonText})]}):null]})})})})})})}):null};export{b as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e="data:image/svg+xml,%3csvg width = '10px' height = '10px' viewBox = '0 0 329.26933 329' xmlns = 'http://www.w3.org/2000/svg'%3e %3cpath d='m194.800781 164.769531 128.210938-128.214843c8.34375-8.339844 8.34375-21.824219 0-30.164063-8.339844-8.339844-21.824219-8.339844-30.164063 0l-128.214844 128.214844-128.210937-128.214844c-8.34375-8.339844-21.824219-8.339844-30.164063 0-8.34375 8.339844-8.34375 21.824219 0 30.164063l128.210938 128.214843-128.210938 128.214844c-8.34375 8.339844-8.34375 21.824219 0 30.164063 4.15625 4.160156 9.621094 6.25 15.082032 6.25 5.460937 0 10.921875-2.089844 15.082031-6.25l128.210937-128.214844 128.214844 128.214844c4.160156 4.160156 9.621094 6.25 15.082032 6.25 5.460937 0 10.921874-2.089844 15.082031-6.25 8.34375-8.339844 8.34375-21.824219 0-30.164063zm0 0'%3e%3c/path%3e%3c/svg%3e";export{e as default};
|