@inntechcorp/it-design 2.2.89 → 3.1.0
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/Description.d.ts +7 -0
- package/dist/alert/Title.d.ts +7 -0
- package/dist/alert/alert.style.neutral.d.ts +4 -0
- package/dist/alert/index.d.ts +3 -1
- package/dist/alert/styled.d.ts +3 -7
- package/dist/alink/styled.d.ts +1 -1
- package/dist/button/index.d.ts +1 -1
- package/dist/card/index.d.ts +1 -1
- package/dist/card/styles.d.ts +2 -1
- package/dist/checkbox/styled.d.ts +2 -2
- 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/alert.style.error.js +32 -0
- package/dist/cjs/alert/alert.style.info.js +32 -0
- package/dist/cjs/alert/alert.style.neutral.js +32 -0
- package/dist/cjs/alert/alert.style.success.js +32 -0
- package/dist/cjs/alert/alert.style.warning.js +32 -0
- package/dist/cjs/alert/index.js +1 -0
- package/dist/cjs/alert/styled.js +68 -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/button.style.circle.js +38 -0
- package/dist/cjs/button/button.style.default.js +44 -0
- package/dist/cjs/button/button.style.filled.js +49 -0
- package/dist/cjs/button/button.style.ghost.js +47 -0
- package/dist/cjs/button/button.style.icon.js +33 -0
- package/dist/cjs/button/button.style.link.js +45 -0
- package/dist/cjs/button/button.style.outline.js +49 -0
- package/dist/cjs/button/button.style.size.js +187 -0
- package/dist/cjs/button/button.style.solid.js +50 -0
- package/dist/cjs/button/button.style.strecth.js +8 -0
- package/dist/cjs/button/index.js +1 -0
- package/dist/cjs/button/styled.js +415 -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/index.js +1 -0
- package/dist/cjs/card/styles.js +66 -0
- package/dist/cjs/checkbox/group/index.js +1 -0
- package/dist/cjs/checkbox/group/styled.js +9 -0
- package/dist/cjs/checkbox/index.js +1 -0
- package/dist/cjs/checkbox/styled.js +340 -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/datepicker/styled.js +60 -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/form/context/FormContext.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/control/styled.js +8 -0
- package/dist/cjs/form/group/Group.js +1 -0
- package/dist/cjs/form/group/styled.js +7 -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/UpdateThemeStyle.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/tokens.js +1 -0
- package/dist/cjs/helpers/unit/AddDefaultUnit.js +1 -0
- package/dist/cjs/helpers/url/ValidURL.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/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/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/input/style.settings.js +1 -0
- package/dist/cjs/input/styled.js +430 -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 +27 -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/closeicon.svg.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/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.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/trash.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/uuid/dist/esm-browser/native.js +1 -0
- package/dist/cjs/node_modules/uuid/dist/esm-browser/rng.js +1 -0
- package/dist/cjs/node_modules/uuid/dist/esm-browser/stringify.js +1 -0
- package/dist/cjs/node_modules/uuid/dist/esm-browser/v4.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/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/dropdown/styled.js +239 -0
- package/dist/cjs/select/index.js +1 -0
- package/dist/cjs/select/option/Option.js +1 -0
- package/dist/cjs/select/option/styled.js +36 -0
- package/dist/cjs/select/style.settings.js +1 -0
- package/dist/cjs/select/styled.js +331 -0
- package/dist/cjs/select/toggle/Toggle.js +1 -0
- package/dist/cjs/select/toggle/label/Label.js +1 -0
- package/dist/cjs/select/toggle/label/styled.js +5 -0
- package/dist/cjs/select/toggle/styled.js +88 -0
- package/dist/cjs/spin/index.js +1 -0
- package/dist/cjs/spin/styled.js +74 -0
- package/dist/cjs/status/index.js +1 -0
- package/dist/cjs/status/styled.js +75 -0
- package/dist/cjs/switch/index.js +1 -0
- package/dist/cjs/switch/styled.js +209 -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/tabs/styles.js +96 -0
- package/dist/cjs/textarea/index.js +1 -0
- package/dist/cjs/textarea/styled.js +220 -0
- package/dist/cjs/tinyscrollbar/index.js +1 -0
- package/dist/cjs/tinyscrollbar/scroll.styled.js +21 -0
- package/dist/cjs/types/InputProps.js +1 -0
- package/dist/cjs/upload/index.js +1 -0
- package/dist/cjs/upload/styled.js +228 -0
- package/dist/cjs/utils/CommonStyledComponents.js +61 -0
- package/dist/cjs/utils/GetIconSizeBySize.js +1 -0
- package/dist/cjs/utils/GetSizeSlugBySize.js +1 -0
- package/dist/cjs/utils/InlineSVGCached.js +1 -0
- package/dist/datepicker/styled.d.ts +2 -2
- package/dist/enums/enum.d.ts +14 -1
- 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/alert.style.error.js +32 -0
- package/dist/es/alert/alert.style.info.js +32 -0
- package/dist/es/alert/alert.style.neutral.js +32 -0
- package/dist/es/alert/alert.style.success.js +32 -0
- package/dist/es/alert/alert.style.warning.js +32 -0
- package/dist/es/alert/index.js +1 -0
- package/dist/es/alert/styled.js +68 -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/button.style.circle.js +38 -0
- package/dist/es/button/button.style.default.js +44 -0
- package/dist/es/button/button.style.filled.js +49 -0
- package/dist/es/button/button.style.ghost.js +47 -0
- package/dist/es/button/button.style.icon.js +33 -0
- package/dist/es/button/button.style.link.js +45 -0
- package/dist/es/button/button.style.outline.js +49 -0
- package/dist/es/button/button.style.size.js +187 -0
- package/dist/es/button/button.style.solid.js +50 -0
- package/dist/es/button/button.style.strecth.js +8 -0
- package/dist/es/button/index.js +1 -0
- package/dist/es/button/styled.js +415 -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/index.js +1 -0
- package/dist/es/card/styles.js +66 -0
- package/dist/es/checkbox/group/index.js +1 -0
- package/dist/es/checkbox/group/styled.js +9 -0
- package/dist/es/checkbox/index.js +1 -0
- package/dist/es/checkbox/styled.js +340 -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/datepicker/styled.js +60 -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/form/context/FormContext.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/control/styled.js +8 -0
- package/dist/es/form/group/Group.js +1 -0
- package/dist/es/form/group/styled.js +7 -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/UpdateThemeStyle.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/tokens.js +1 -0
- package/dist/es/helpers/unit/AddDefaultUnit.js +1 -0
- package/dist/es/helpers/url/ValidURL.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/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/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/input/style.settings.js +1 -0
- package/dist/es/input/styled.js +430 -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 +27 -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/closeicon.svg.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/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.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/trash.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/uuid/dist/esm-browser/native.js +1 -0
- package/dist/es/node_modules/uuid/dist/esm-browser/rng.js +1 -0
- package/dist/es/node_modules/uuid/dist/esm-browser/stringify.js +1 -0
- package/dist/es/node_modules/uuid/dist/esm-browser/v4.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/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/dropdown/styled.js +239 -0
- package/dist/es/select/index.js +1 -0
- package/dist/es/select/option/Option.js +1 -0
- package/dist/es/select/option/styled.js +36 -0
- package/dist/es/select/style.settings.js +1 -0
- package/dist/es/select/styled.js +331 -0
- package/dist/es/select/toggle/Toggle.js +1 -0
- package/dist/es/select/toggle/label/Label.js +1 -0
- package/dist/es/select/toggle/label/styled.js +5 -0
- package/dist/es/select/toggle/styled.js +88 -0
- package/dist/es/spin/index.js +1 -0
- package/dist/es/spin/styled.js +74 -0
- package/dist/es/status/index.js +1 -0
- package/dist/es/status/styled.js +75 -0
- package/dist/es/switch/index.js +1 -0
- package/dist/es/switch/styled.js +209 -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/tabs/styles.js +96 -0
- package/dist/es/textarea/index.js +1 -0
- package/dist/es/textarea/styled.js +220 -0
- package/dist/es/tinyscrollbar/index.js +1 -0
- package/dist/es/tinyscrollbar/scroll.styled.js +21 -0
- package/dist/es/types/InputProps.js +1 -0
- package/dist/es/upload/index.js +1 -0
- package/dist/es/upload/styled.js +228 -0
- package/dist/es/utils/CommonStyledComponents.js +61 -0
- package/dist/es/utils/GetIconSizeBySize.js +1 -0
- package/dist/es/utils/GetSizeSlugBySize.js +1 -0
- package/dist/es/utils/InlineSVGCached.js +1 -0
- package/dist/form/context/FormContext.d.ts +3 -0
- package/dist/form/context/FormStore.d.ts +4 -1
- package/dist/form/item/Item.d.ts +0 -1
- package/dist/global.css +333 -113
- package/dist/helpers/index.d.ts +4 -0
- package/dist/helpers/theme/Color.d.ts +19 -0
- package/dist/helpers/theme/GenerateColorScale.d.ts +16 -0
- package/dist/helpers/theme/cssVariables.d.ts +30 -0
- package/dist/helpers/theme/dark.d.ts +1 -1
- package/dist/helpers/theme/index.d.ts +4 -0
- package/dist/helpers/theme/light.d.ts +1 -1
- package/dist/helpers/theme/tokens.d.ts +392 -0
- package/dist/index.d.mts +31 -7
- package/dist/index.d.ts +660 -128
- package/dist/input/style.settings.d.ts +9 -0
- package/dist/input/styled.d.ts +15 -17
- package/dist/locales/en/itd.json +13 -0
- package/dist/locales/itd.json +13 -0
- package/dist/locales/tr/itd.json +13 -0
- package/dist/radio/button/RadioButton.d.ts +1 -1
- package/dist/result/index.d.ts +1 -1
- package/dist/select/dropdown/Dropdown.d.ts +19 -0
- package/dist/select/dropdown/styled.d.ts +14 -0
- package/dist/select/option/Option.d.ts +10 -3
- package/dist/select/style.settings.d.ts +83 -26
- package/dist/select/styled.d.ts +4 -2
- package/dist/select/toggle/Toggle.d.ts +1 -1
- package/dist/select/toggle/label/{single/SingleLabel.d.ts → Label.d.ts} +5 -5
- package/dist/select/toggle/styled.d.ts +4 -4
- package/dist/stats.html +4949 -0
- package/dist/stories/Accordion.d.ts +0 -1
- package/dist/stories/Alert.stories.d.ts +15 -1
- package/dist/stories/AlertComposition.d.ts +2 -0
- package/dist/stories/AlertComposition.stories.d.ts +17 -0
- package/dist/stories/Button.d.ts +0 -1
- package/dist/stories/Button.stories.d.ts +8 -1
- package/dist/stories/Card.stories.d.ts +1 -0
- package/dist/stories/ColorScale.d.ts +10 -0
- package/dist/stories/ColorScale.stories.d.ts +24 -0
- package/dist/stories/ColorScaleCompare.d.ts +8 -0
- package/dist/stories/ColorScaleCompare.stories.d.ts +47 -0
- package/dist/stories/DatePicker.d.ts +0 -1
- package/dist/stories/Form.stories.d.ts +10 -1
- package/dist/stories/Header.d.ts +0 -1
- package/dist/stories/Input.d.ts +0 -1
- package/dist/stories/Input.stories.d.ts +9 -1
- package/dist/stories/ModalManager.d.ts +0 -1
- package/dist/stories/Page.d.ts +0 -1
- package/dist/stories/Select.d.ts +0 -1
- package/dist/stories/Select.stories.d.ts +13 -3
- package/dist/stories/Switch.stories.d.ts +8 -1
- package/dist/stories/TextArea.d.ts +0 -1
- package/dist/stories/TextArea.stories.d.ts +8 -1
- package/dist/stories/root/index.d.ts +0 -1
- package/dist/switch/styled.d.ts +1 -1
- package/dist/textarea/styled.d.ts +2 -5
- package/dist/types/AlertProps.d.ts +5 -4
- package/dist/types/ButtonProps.d.ts +2 -2
- package/dist/types/CalendarProps.d.ts +0 -1
- package/dist/types/CardProps.d.ts +4 -0
- package/dist/types/CheckboxProps.d.ts +5 -1
- package/dist/types/DatePickerProps.d.ts +2 -3
- package/dist/types/FormProps.d.ts +3 -0
- package/dist/types/ITDProps.d.ts +4 -2
- package/dist/types/InputProps.d.ts +0 -1
- package/dist/types/RadioProps.d.ts +1 -0
- package/dist/types/ResultProps.d.ts +1 -0
- package/dist/types/SelectProps.d.ts +5 -13
- package/dist/types/SwitchProps.d.ts +4 -1
- package/dist/types/TableProps.d.ts +1 -0
- package/dist/types/Theme.d.ts +75 -16
- package/dist/types/UploadProps.d.ts +2 -0
- package/dist/upload/index.d.ts +1 -1
- package/dist/upload/styled.d.ts +5 -2
- package/dist/utils/CommonStyledComponents.d.ts +17 -0
- package/package.json +47 -35
- package/dist/button/button.style.SVG.d.ts +0 -4
- package/dist/index.cjs.js +0 -5472
- package/dist/index.esm.js +0 -5472
- package/dist/select/menu/Menu.d.ts +0 -14
- package/dist/select/menu/styled.d.ts +0 -8
- package/dist/select/toggle/label/floating/FloatingLabel.d.ts +0 -12
- package/dist/select/toggle/label/floating/styled.d.ts +0 -8
- package/dist/stories/ButtonIcon.d.ts +0 -2
- /package/dist/select/toggle/label/{single/styled.d.ts → styled.d.ts} +0 -0
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
"use strict";var e=require("../enums/enum.js"),r=require("styled-components"),t=require("../helpers/theme/Color.js");const o=r.div`
|
|
2
|
+
|
|
3
|
+
width: inherit;
|
|
4
|
+
position: relative;
|
|
5
|
+
display: flex;
|
|
6
|
+
justify-content: space-between;
|
|
7
|
+
position: relative;
|
|
8
|
+
|
|
9
|
+
textarea {
|
|
10
|
+
|
|
11
|
+
background : none;
|
|
12
|
+
display : block;
|
|
13
|
+
width : 100%;
|
|
14
|
+
height : 100%;
|
|
15
|
+
min-height : 47px;
|
|
16
|
+
padding : 12px;
|
|
17
|
+
resize : vertical;
|
|
18
|
+
|
|
19
|
+
font-size : 14px;
|
|
20
|
+
font-weight : 400;
|
|
21
|
+
color : ${({theme:e})=>e.colorText};
|
|
22
|
+
|
|
23
|
+
border-radius : calc( ${({theme:e})=>e.borderRadius} - 2px);
|
|
24
|
+
border : 1px solid transparent;
|
|
25
|
+
outline : 0 solid transparent;
|
|
26
|
+
outline-offset : ${({theme:e})=>e.ringOffset};
|
|
27
|
+
|
|
28
|
+
transition : outline 100ms linear,
|
|
29
|
+
border-color ${({theme:e})=>e.transitionDuration} ${({theme:e})=>e.transitionTimingFunction},
|
|
30
|
+
background-color ${({theme:e})=>e.transitionDuration} ${({theme:e})=>e.transitionTimingFunction},
|
|
31
|
+
scrollbar-color ${({theme:e})=>e.transitionDuration} ${({theme:e})=>e.transitionTimingFunction};
|
|
32
|
+
|
|
33
|
+
/* Chrome, Edge, Safari */
|
|
34
|
+
&::-webkit-scrollbar {
|
|
35
|
+
width: 22px; /* Scroll bar width */
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&::-webkit-scrollbar-track {
|
|
39
|
+
background: transparent; /* Scroll bar background */
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&::-webkit-scrollbar-thumb {
|
|
43
|
+
background-color: ${({theme:e})=>e.scrollbarThumb};
|
|
44
|
+
border-radius: 10px;
|
|
45
|
+
border: 13px solid transparent;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&::-webkit-scrollbar-thumb:hover {
|
|
49
|
+
background-color: ${({theme:e})=>e.scrollbarThumbHover};
|
|
50
|
+
scrollbar-width: thin!important;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* Firefox */
|
|
54
|
+
scrollbar-width: thin; /* Thin scroll bar */
|
|
55
|
+
scrollbar-color: ${({theme:e})=>e.scrollbarThumb} transparent; /* Scroll bar color and background */
|
|
56
|
+
|
|
57
|
+
&:hover {
|
|
58
|
+
scrollbar-color: ${({theme:e})=>e.scrollbarThumbHover} transparent;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&::placeholder {
|
|
62
|
+
color: ${({theme:e})=>e.colorPlaceholder};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* ------------------------ */
|
|
68
|
+
// VARIANT
|
|
69
|
+
/* ------------------------ */
|
|
70
|
+
${()=>r.css`
|
|
71
|
+
|
|
72
|
+
/* DEFAULT */
|
|
73
|
+
&.itd-textarea-default
|
|
74
|
+
{
|
|
75
|
+
|
|
76
|
+
textarea {
|
|
77
|
+
border: 1px solid ${({theme:e})=>e.colorBorder};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&:hover:not(&.itd-textarea-focus, &.itd-textarea-disabled) {
|
|
81
|
+
textarea {
|
|
82
|
+
border-color: ${({theme:e})=>e.colorBorderHover};
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/* FILLED */
|
|
89
|
+
&.itd-textarea-filled {
|
|
90
|
+
|
|
91
|
+
textarea {
|
|
92
|
+
background-color: ${({theme:e})=>e.colorBackgroundAlt};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&:hover:not(&.itd-textarea-focus, &.itd-textarea-disabled) {
|
|
96
|
+
textarea {
|
|
97
|
+
background-color: ${({theme:e})=>e.colorBackgroundAltHover};
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/* DASHED */
|
|
104
|
+
&.itd-textarea-dashed {
|
|
105
|
+
|
|
106
|
+
textarea {
|
|
107
|
+
border: 1px dashed ${({theme:e})=>e.colorBorder};
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&:hover:not(&.itd-textarea-focus, &.itd-textarea-disabled) {
|
|
111
|
+
textarea {
|
|
112
|
+
border-color: ${({theme:e})=>e.colorBorderHover};
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&&.itd-textarea-focus:not(.itd-textarea-filled) {
|
|
119
|
+
textarea {
|
|
120
|
+
border-color: ${({theme:r})=>r.primaryScale[r.appearance===e.ThemeAppearances.LIGHT?400:900]};
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&&.itd-textarea-focus.itd-input-error:not(.itd-textarea-filled) {
|
|
125
|
+
textarea {
|
|
126
|
+
border-color: ${({theme:e})=>e.colorErrorBorder};
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
`}
|
|
131
|
+
|
|
132
|
+
&.itd-textarea-default textarea {
|
|
133
|
+
box-shadow : ${({theme:e})=>e.boxShadow};
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&.itd-textarea-focus {
|
|
137
|
+
|
|
138
|
+
&.itd-textarea-filled {
|
|
139
|
+
textarea {
|
|
140
|
+
background-color: ${({theme:e})=>e.colorBackgroundAltHover};
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&.itd-textarea-default, &.itd-textarea-dashed, &.itd-textarea-filled, &.itd-textarea-custom {
|
|
145
|
+
|
|
146
|
+
&.itd-textarea-keyboard-focus {
|
|
147
|
+
|
|
148
|
+
/* Tab ile focus - outline göster */
|
|
149
|
+
textarea {
|
|
150
|
+
outline: ${({theme:e})=>e.ringWidth} solid ${({theme:r})=>t.withOpacity(r.primaryScale[r.appearance===e.ThemeAppearances.LIGHT?400:900],.5)};
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/* Error durumunda outline ve border kırmızı */
|
|
156
|
+
&.itd-textarea-keyboard-focus.itd-textarea-error {
|
|
157
|
+
textarea {
|
|
158
|
+
outline: ${({theme:e})=>e.ringWidth} solid ${({theme:e})=>t.withOpacity(e.colorErrorBorder,.5)} !important;
|
|
159
|
+
border-color : ${({theme:e})=>e.colorErrorBorder} !important;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
&.itd-textarea-disabled {
|
|
168
|
+
|
|
169
|
+
textarea {
|
|
170
|
+
background-color: ${({theme:e})=>e.colorDisabledBg};
|
|
171
|
+
border: 1px solid ${({theme:e})=>e.colorDisabledBorder};
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
textarea, textarea::placeholder {
|
|
175
|
+
color: ${({theme:e})=>e.colorDisabledText};
|
|
176
|
+
cursor: not-allowed;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
`,a=r.div`
|
|
182
|
+
|
|
183
|
+
display: flex;
|
|
184
|
+
align-items: center;
|
|
185
|
+
justify-content: center;
|
|
186
|
+
|
|
187
|
+
border-radius: 50%;
|
|
188
|
+
display: flex;
|
|
189
|
+
align-items: center;
|
|
190
|
+
justify-content: center;
|
|
191
|
+
cursor: default;
|
|
192
|
+
|
|
193
|
+
position: absolute;
|
|
194
|
+
top: 50%;
|
|
195
|
+
right: 15px;
|
|
196
|
+
transform: translateY(-50%);
|
|
197
|
+
|
|
198
|
+
svg circle {
|
|
199
|
+
fill: ${({theme:e})=>e.colorError};
|
|
200
|
+
}
|
|
201
|
+
svg path {
|
|
202
|
+
fill: ${({theme:e})=>e.colorErrorText};
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
`;r(a)`
|
|
208
|
+
|
|
209
|
+
`,r(a)`
|
|
210
|
+
|
|
211
|
+
`,r(a)`
|
|
212
|
+
&:hover .itd-textarea-error-tooltip {
|
|
213
|
+
display: flex;
|
|
214
|
+
}
|
|
215
|
+
`;const i=r.div`
|
|
216
|
+
position: absolute;
|
|
217
|
+
right: 1rem;
|
|
218
|
+
top: 50%;
|
|
219
|
+
transform: translateY(-50%);
|
|
220
|
+
`;exports.ErrorWrapper=i,exports.Wrapper=o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react"),l=require("../node_modules/overlayscrollbars/overlayscrollbars.js");require("../node_modules/overlayscrollbars/styles/overlayscrollbars.css.js");var s=require("./scroll.styled.js");exports.default=function({className:o="",children:t,style:a}){const c=r.useRef(null);return r.useEffect(()=>{if(c.current){const e=l.OverlayScrollbars(c.current,{paddingAbsolute:!0,showNativeOverlaidScrollbars:!1,overflow:{x:"hidden",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"leave",autoHideDelay:1300,dragScroll:!0,clickScroll:!0,pointers:["mouse","touch","pen"]}});return()=>{e.destroy()}}},[]),e.jsx(s.ScrollWrapper,{style:a,children:e.jsx("div",{ref:c,className:`os-viewport ${o}`,style:{width:"100%",overflow:"auto"},children:t})})};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";const r=require("styled-components").div`
|
|
2
|
+
|
|
3
|
+
/* OverlayScrollbars v2 class selectors */
|
|
4
|
+
.os-scrollbar-horizontal { height: 10px; }
|
|
5
|
+
.os-scrollbar-vertical { width: 10px; }
|
|
6
|
+
|
|
7
|
+
.os-scrollbar-track {
|
|
8
|
+
background: transparent;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.os-scrollbar-handle {
|
|
12
|
+
background: ${({theme:r})=>r.scrollbarThumb} !important;
|
|
13
|
+
border-radius: 8px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.os-scrollbar-handle:hover,
|
|
17
|
+
.os-scrollbar-handle:active {
|
|
18
|
+
background: ${({theme:r})=>r.scrollbarThumbHover} !important;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
`;exports.ScrollWrapper=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e;exports.InputTypes=void 0,(e=exports.InputTypes||(exports.InputTypes={})).TEXT="text",e.NUMBER="number",e.CURRENCY="currency",e.PASSWORD="password";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),a=require("react-i18next"),s=require("../button/index.js"),r=require("../image/index.js"),i=require("../modal/index.js"),l=require("../notification/index.js"),o=require("../hooks/useCoreFetch.js"),n=require("../helpers/binary/FormatBytes.js"),d=require("../helpers/checker/CheckFileURL.js"),u=require("../enums/enum.js"),c=require("../icons/Picture.js"),p=require("../helpers/binary/GetTypeByFileType.js"),h=require("../icons/Upload.js"),f=require("../helpers/promise/Wait.js"),m=require("../flex/index.js"),x=require("../helpers/unit/AddDefaultUnit.js"),j=require("./styled.js"),g=require("../utils/CommonStyledComponents.js"),F=require("../node_modules/uuid/dist/esm-browser/v4.js"),v=require("../node_modules/lucide-react/dist/esm/icons/trash.js"),y=require("../node_modules/lucide-react/dist/esm/icons/eye.js");const S=t.forwardRef(({id:S="itd-upload-"+F.default(),variant:w=u.ComponentVariants.DEFAULT,resultFileName:N=null,action:$="",filePath:b="",binaryName:q="file",showDeleteIcon:C=!1,showPreviewIcon:E=!1,buttonsPosition:D="default",padding:T=10,fluid:P=!0,fileWidth:U="100%",fileHeight:M="auto",maxFileWidth:k="none",maxFileHeight:H="none",containerWidth:O="100%",containerHeight:L="auto",previewFileWidth:W="100%",previewFileHeight:B="100%",previewFilePadding:z="0",requestMethod:I="put",maxFileSize:V=1024,disabled:A=!1,extraFormData:R={},extraQueryString:G={},extraHeader:_={},fileTypes:Q=[u.FileTypes.JPG,u.FileTypes.PNG,u.FileTypes.SVG,u.FileTypes.PDF],removeAction:J="",removeExtraFormData:Y={},removeExtraQueryString:K={},removeExtraHeader:X={},onUpdate:Z,onUploadSuccess:ee,onUploadFailed:te,onRemoveFileSuccess:ae,onRemoveFileFailed:se},re)=>{const ie=t.useRef(null),{addNotification:le}=l.default.useNotifications(),{showModal:oe}=i.default.useModal(),{fetch:ne,cancel:de}=o.default(),{t:ue}=a.useTranslation("itd"),[ce,pe]=t.useState(!1),[he,fe]=t.useState(!1),[me,xe]=t.useState(".svg, .png, .jpg"),[je,ge]=t.useState(!1),[Fe,ve]=t.useState(!1),[ye,Se]=t.useState(!1),[we,Ne]=t.useState(null),[$e,be]=t.useState(null),[qe,Ce]=t.useState(""),[Ee,De]=t.useState(!1),[Te,Pe]=t.useState(!1),[Ue,Me]=t.useState(null),[ke,He]=t.useState(!1),[Oe,Le]=t.useState(null);t.useEffect(()=>()=>{de()},[]),t.useEffect(()=>{fe(A)},[A]),t.useEffect(()=>{be(b?b.split("?")[0]:"")},[b]),t.useEffect(()=>{null!==$e&&(void 0!==$e?ze():pe(!1))},[$e]),t.useEffect(()=>{let e=[];Q.map(t=>{e.push(p.default(t))}),xe(e.join(", "))},[Q]);const We=(e,t)=>{le({title:e,description:t,placement:"topRight",autoHide:!0,delay:5e3,type:"error"})},Be=(e,t=!0,a=!0)=>{Z&&Z(e,t,a)};t.useImperativeHandle(re,()=>({setFocus(){Se(!0)},reset(e=!1,t=!1){Ie(),be(null),Ce(""),Be("",e,t)},setValue(e,t=!0,a=!0){be(e),Be(e,t,a)},getValue:()=>$e||"",setError(e){Ce(e)},forceUpdate(){Be($e||"")},clear(){be("")}}));const ze=async()=>{let e=!1;$e&&(e=await d.default($e),Ne(e),e?Be($e):Be("",!0,!0),ce||pe(!0)),""!==$e||ce||pe(!0),""===$e&&ce&&Be("",!0,!0)},Ie=()=>{Le(null),Me(null),He(!1),Ne(null)},Ve=async()=>{fe(!0),oe({content:e.jsx("div",{children:ue("uploader.areYouSureToDeleteThisFile")}),title:ue("uploader.removeFile"),okButtonText:ue("uploader.yes"),cancelButtonText:ue("uploader.no"),okButtonProps:{variant:"statable",state:"reject"},closeOnClickOutside:!1,showCloseButton:!1,onOk:()=>(J?ne({action:J,params:Y,queries:K,headers:X,onFetched:e=>{e.data.success?(Ie(),Be("",!0,!0),ae&&ae(e.data.data)):se&&se()},onError:()=>{se&&se()}}):(Ie(),Be("",!0,!0),ae&&ae()),fe(!1),!0),onCancel:()=>(fe(!1),!0)})},Ae=e=>{e.preventDefault(),Te||ve(!0)},Re=e=>{e.preventDefault(),Te||ve(!1)},Ge=e=>{e.preventDefault(),Te||(ve(!1),e.dataTransfer&&0!==e.dataTransfer.files.length?Je(e.dataTransfer.files[0]):console.log(ue("uploader.browserDoesntSupportDND")))},_e=e=>{ve(!1);const t=e.target.files[0];Je(t)},Qe=async({path:e,errorMessage:t,errorCode:a})=>{await f.default(1e3),Me(null),Pe(!1),await f.default(1500),He(!1),e?ee&&ee(e):t&&te&&te(t,a||0)},Je=e=>{if(e&&(e=>!!Q.includes(e.type)||(We(ue("uploader.error"),ue("uploader.fileFormatError",{fileFormat:me})),!1))(e)&&(e=>!(e.size>1024*V&&(We(ue("uploader.error"),ue("uploader.fileSizeError",{fileSize:n.default(1024*V)})),1)))(e)){if(N){const t=p.default(e.type);e=new File([e],N+t,{type:t,lastModified:e.lastModified})}(async e=>{if(!e)return;let t=new FormData;t.append(q,e),N&&t.append("name",N),Object.keys(R).forEach(e=>{t.append(e,R[e])}),ne({action:$,requestMethod:I,params:t,queries:G,headers:_,onFetched:e=>{e.data.success?(Le({message:ue("uploader.fileUploadSuccess"),status:"success"}),He(!0),be(e.data.data.url),Qe({path:e.data.data.url})):(Le({message:ue("uploader.fileUploadFailed"),status:"error"}),Be("",!0,!0),Qe({errorMessage:ue("uploader.fileUploadFailed")}))},onError:(e,t)=>{Le({message:ue("uploader.fileUploadFailed"),status:"error"}),Be("",!0,!0),Qe({errorMessage:e,errorCode:t})},onProgress:e=>{Me({estimated:e.estimated?(Math.round(100*e.estimated)/100).toFixed(2):"0",progress:e.progress?Math.round(100*e.progress):0,bytes:e.bytes?n.default(e.bytes):"",total:e.total?n.default(e.total):""})}})})(e),Pe(!0)}},Ye=()=>{fe(!0),oe({content:e.jsx(j.CenterContent,{className:"itd-upload-preview-content",$width:W,$height:B,$padding:z,children:e.jsx(r.default,{src:$e||""})}),showOkButton:!1,showCancelButton:!1,contentPadding:"0px",width:"max-content",onCancel:()=>(fe(!1),!0)})},Ke=()=>{if(C&&$e&&!Te&&we)return e.jsx("span",{className:"delete-icon",children:e.jsx(s.default,{variant:w===u.ComponentVariants.FILLED?"solid":"outline",size:u.ComponentSizes.SMALL,type:"button",onClick:Ve,disabled:he,icon:e.jsx(v.default,{size:16,strokeWidth:2}),className:"itd-upload-delete-button",circle:!0})})},Xe=()=>{if(E&&$e&&!Te&&we)return e.jsx("span",{className:"preview-icon",children:e.jsx(s.default,{variant:w===u.ComponentVariants.FILLED?"solid":"outline",size:u.ComponentSizes.SMALL,type:"button",onClick:Ye,disabled:he,icon:e.jsx(y.default,{size:16,strokeWidth:2}),className:"itd-upload-preview-button",circle:!0})})},Ze=()=>{if(""===qe||Te)return;let t={className:"itd-upload-failed itd-failed-status",onPointerOver:()=>De(!0),onPointerOut:()=>De(!1)};return e.jsxs(j.Failed,{...t,children:[Ee?e.jsx(g.ErrorTooltip,{className:"itd-upload-error-tooltip itd-error-tooltip",children:qe}):null,g.ErrorSVGIcon]})},et=()=>{if(ce)return null===we?e.jsx(h.default,{className:"itd-upload-icon",width:24,height:24}):!1===we?e.jsx(c.default,{width:40,height:40}):e.jsx(r.default,{src:$e||"",width:x.default(U),height:x.default(M)})},tt=()=>{let t=(je||Fe)&&!Te&&!he;return e.jsx(j.Overlay,{$isHover:t,className:"itd-upload-overlay",children:e.jsxs(j.OverlayContent,{$isHover:t,className:"itd-upload-overlay-content",children:[e.jsx("span",{className:"itd-upload-header",children:ue("uploader.header")}),e.jsx("span",{className:"itd-upload-hint",children:ue("uploader.hint")})]})})};return e.jsxs(j.Wrapper,{className:"itd-upload",$fluid:P,children:[e.jsx("input",{type:"file",id:S,accept:me,onChange:_e,onFocus:e=>{e.target.matches(":focus-visible")&&Se(!0)},onBlur:()=>Se(!1),onPointerOver:()=>{!Fe&&ge(!0)},onPointerOut:()=>{!Fe&&ge(!1)},onDragOver:Ae,onDragLeave:Re,onDrop:Ge,disabled:Te||he,ref:ie}),e.jsx(j.Label,{$showFocus:ye,$hasError:""!==qe,className:"itd-upload-label",children:e.jsxs(j.FileContent,{$showBorder:(Fe||je)&&!Te,$padding:T,$disabled:A,$hasError:""!==qe&&!Te,$fileWidth:U,$fileHeight:M,$maxFileWidth:k,$maxFileHeight:H,$containerWidth:O,$containerHeight:L,$variant:w,$showFocus:ye,className:"itd-upload-content",children:[et(),e.jsxs(j.Uploading,{className:"itd-upload-status",$isActive:Te,$complete:"success"===Oe?.status,$error:"error"===Oe?.status,children:[e.jsx(j.UploadStatusBox,{className:"itd-upload-status-box",$progress:Ue?Ue.progress:0,$complete:"success"===Oe?.status,$error:"error"===Oe?.status}),e.jsx("span",{className:"itd-upload-status-message",children:ue(ke||Oe?String(Oe?.message):"uploader.fileUploading")}),Ue?e.jsx("span",{className:"itd-upload-status-info",children:ue("uploader.info",{total:Ue.total,estimated:Ue.estimated})}):e.jsx("span",{className:"itd-upload-status-calculating",children:ue("uploader.calculating")})]}),tt(),e.jsxs(j.IconsWrapper,{$position:""===qe?D:"default",children:[e.jsxs(m.default,{vertical:!0,gap:"small",className:"itd-upload-icons",children:[Ke(),Xe()]}),Ze()]})]})})]})});exports.default=S;
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
"use strict";var e=require("styled-components"),t=require("../enums/enum.js"),i=require("../helpers/theme/Color.js"),o=require("../utils/CommonStyledComponents.js"),r=require("../helpers/unit/AddDefaultUnit.js");require("../helpers/theme/tokens.js"),require("../helpers/theme/cssVariables.js"),require("react/jsx-runtime"),require("../utils/InlineSVGCached.js"),require("../helpers/svg/styles.js"),require("../helpers/datetime/dayjsSetup.js");const n=e.div`
|
|
2
|
+
|
|
3
|
+
position : relative;
|
|
4
|
+
width : ${e=>e.$fluid?"100%":"max-content"};
|
|
5
|
+
font-size : 13px;
|
|
6
|
+
font-weight : 400;
|
|
7
|
+
|
|
8
|
+
input[type="file"] {
|
|
9
|
+
|
|
10
|
+
width : 100%;
|
|
11
|
+
height : 100%;
|
|
12
|
+
position : absolute;
|
|
13
|
+
opacity : 0;
|
|
14
|
+
z-index : 1;
|
|
15
|
+
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
`,a=e.div`
|
|
19
|
+
|
|
20
|
+
>img {
|
|
21
|
+
max-width : 100%;
|
|
22
|
+
width : ${e=>e.$fileWidth?r.default(e.$fileWidth):"100%"};
|
|
23
|
+
height : ${e=>e.$fileHeight?r.default(e.$fileHeight):"auto"};
|
|
24
|
+
max-width : ${e=>e.$maxFileWidth?r.default(e.$maxFileWidth):"none"};
|
|
25
|
+
max-height : ${e=>e.$maxFileHeight?r.default(e.$maxFileHeight):"none"};
|
|
26
|
+
overflow : hidden;
|
|
27
|
+
border-radius : ${({theme:e})=>e.borderRadius};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
transition-property : border-color;
|
|
31
|
+
transition-duration : 500ms;
|
|
32
|
+
transition-timing-function : cubic-bezier(0.075, 0.82, 0.165, 1);
|
|
33
|
+
|
|
34
|
+
background-color : ${({theme:e,$variant:i})=>i===t.ComponentVariants.FILLED?e.colorBackgroundAlt:"transparent"};
|
|
35
|
+
border : 1px dashed ${({theme:e,$hasError:i,$showBorder:o,$disabled:r,$showFocus:n})=>i?e.colorErrorBorder:o&&!r?e.colorBorderHover:n?e.primaryScale[e.appearance===t.ThemeAppearances.LIGHT?400:900]:e.colorBorder};
|
|
36
|
+
|
|
37
|
+
border-radius : ${({theme:e})=>e.borderRadius};
|
|
38
|
+
padding : ${e=>e.$padding+"px"};
|
|
39
|
+
//overflow: hidden;
|
|
40
|
+
|
|
41
|
+
display : flex;
|
|
42
|
+
justify-content : center;
|
|
43
|
+
align-items : center;
|
|
44
|
+
position : relative;
|
|
45
|
+
|
|
46
|
+
min-height : 100px;
|
|
47
|
+
width : ${e=>e.$containerWidth?r.default(e.$containerWidth):"100%"};
|
|
48
|
+
height : ${e=>e.$containerHeight?r.default(e.$containerHeight):"auto"};
|
|
49
|
+
|
|
50
|
+
.itd-upload-icon svg {
|
|
51
|
+
color: ${({theme:e})=>e.colorText};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
`,l=e.div`
|
|
55
|
+
|
|
56
|
+
display: block;
|
|
57
|
+
|
|
58
|
+
/* Tab ile focus - outline göster */
|
|
59
|
+
outline : ${e=>e.$showFocus?({theme:o})=>e.$hasError?`${o.ringWidth} solid ${i.withOpacity(o.colorErrorBorder,.5)}`:`${o.ringWidth} solid ${i.withOpacity(o.primaryScale[o.appearance===t.ThemeAppearances.LIGHT?400:900],.5)}`:"0 solid transparent"};
|
|
60
|
+
|
|
61
|
+
outline-offset : ${({theme:e})=>e.ringOffset};
|
|
62
|
+
border-radius : ${({theme:e})=>e.borderRadius};
|
|
63
|
+
|
|
64
|
+
transition : outline 100ms linear;
|
|
65
|
+
|
|
66
|
+
`,s=e.div`
|
|
67
|
+
|
|
68
|
+
position : absolute;
|
|
69
|
+
top : 50%;
|
|
70
|
+
right : ${e=>"default"===e.$position?"15px":"-17px"};
|
|
71
|
+
height : ${e=>"default"===e.$position?"auto":"100%"};
|
|
72
|
+
transform : translateY(-50%);
|
|
73
|
+
z-index : 2;
|
|
74
|
+
|
|
75
|
+
${t=>{if("corners"===t.$position)return e.css`
|
|
76
|
+
.delete-icon {
|
|
77
|
+
position : absolute;
|
|
78
|
+
bottom : -17px;
|
|
79
|
+
right : 0;
|
|
80
|
+
}
|
|
81
|
+
.preview-icon {
|
|
82
|
+
position : absolute;
|
|
83
|
+
top : -17px;
|
|
84
|
+
right : 0px;
|
|
85
|
+
}
|
|
86
|
+
`}}
|
|
87
|
+
|
|
88
|
+
`,d=e.div`
|
|
89
|
+
|
|
90
|
+
display : flex;
|
|
91
|
+
justify-content : center;
|
|
92
|
+
align-items : center;
|
|
93
|
+
padding : ${e=>e.$padding?r.default(e.$padding):"100%"};
|
|
94
|
+
|
|
95
|
+
img {
|
|
96
|
+
width : ${e=>e.$width?r.default(e.$width):"100%"};
|
|
97
|
+
height : ${e=>e.$height?r.default(e.$height):"100%"};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
`,p=e.div`
|
|
101
|
+
|
|
102
|
+
transition-property : all;
|
|
103
|
+
transition-duration : 0ms;
|
|
104
|
+
transition-timing-function : ${({theme:e})=>e.transitionTimingFunction};
|
|
105
|
+
transition-delay : 0ms;
|
|
106
|
+
//animation-direction: reverse;
|
|
107
|
+
|
|
108
|
+
position : absolute;
|
|
109
|
+
top : 150%;
|
|
110
|
+
left : 50%;
|
|
111
|
+
transform : translateX(-50%) translateY(-50%);
|
|
112
|
+
|
|
113
|
+
display : flex;
|
|
114
|
+
flex-direction : column;
|
|
115
|
+
width : 100%;
|
|
116
|
+
|
|
117
|
+
span {
|
|
118
|
+
&:nth-child(1) {
|
|
119
|
+
color : ${({theme:e})=>e.colorUploadText};
|
|
120
|
+
text-align : center;
|
|
121
|
+
font-weight : 500;
|
|
122
|
+
}
|
|
123
|
+
&:nth-child(2) {
|
|
124
|
+
color : ${({theme:e})=>i.withOpacity(e.colorUploadText,.5)};
|
|
125
|
+
text-align : center;
|
|
126
|
+
font-weight : 400;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
${({$isHover:t})=>t&&e.css`
|
|
131
|
+
top: 50%;
|
|
132
|
+
`}
|
|
133
|
+
|
|
134
|
+
`,c=e.div`
|
|
135
|
+
|
|
136
|
+
position : absolute;
|
|
137
|
+
display : flex;
|
|
138
|
+
pointer-events : all;
|
|
139
|
+
|
|
140
|
+
transition-property : all;
|
|
141
|
+
transition-duration : ${({theme:e})=>e.transitionDuration};
|
|
142
|
+
transition-timing-function : ${({theme:e})=>e.transitionTimingFunction};
|
|
143
|
+
animation-direction : reverse;
|
|
144
|
+
|
|
145
|
+
width : 100%;
|
|
146
|
+
height : 100%;
|
|
147
|
+
background-color : transparent;
|
|
148
|
+
backdrop-filter : blur(0px);
|
|
149
|
+
border-radius : ${({theme:e})=>e.borderRadius};
|
|
150
|
+
overflow : hidden;
|
|
151
|
+
|
|
152
|
+
${({$isHover:t})=>t&&e.css`
|
|
153
|
+
backdrop-filter : blur(2px);
|
|
154
|
+
background-color : ${({theme:e})=>e.colorUploadOverlay};
|
|
155
|
+
`}
|
|
156
|
+
|
|
157
|
+
`,h=e.div`
|
|
158
|
+
|
|
159
|
+
position: absolute;
|
|
160
|
+
|
|
161
|
+
display : flex;
|
|
162
|
+
justify-content : center;
|
|
163
|
+
align-items : center;
|
|
164
|
+
flex-direction : column;
|
|
165
|
+
|
|
166
|
+
width : 100%;
|
|
167
|
+
height : 100%;
|
|
168
|
+
background-color : transparent;
|
|
169
|
+
border-radius : ${({theme:e})=>e.borderRadius};
|
|
170
|
+
overflow : hidden;
|
|
171
|
+
|
|
172
|
+
transition-property : all;
|
|
173
|
+
transition-duration : ${({theme:e})=>e.transitionDuration};
|
|
174
|
+
transition-timing-function : ${({theme:e})=>e.transitionTimingFunction};
|
|
175
|
+
|
|
176
|
+
span, div {
|
|
177
|
+
|
|
178
|
+
color : transparent;
|
|
179
|
+
z-index : 1;
|
|
180
|
+
pointer-events : none;
|
|
181
|
+
|
|
182
|
+
transition-property : all;
|
|
183
|
+
transition-duration : ${({theme:e})=>e.transitionDuration};
|
|
184
|
+
transition-timing-function : ${({theme:e})=>e.transitionTimingFunction};
|
|
185
|
+
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
${({$isActive:t,$complete:i,$error:o})=>t&&e.css`
|
|
189
|
+
background-color : ${i?({theme:e})=>e.colorUploadOverlayCompleted:o?({theme:e})=>e.colorUploadOverlayError:({theme:e})=>e.colorUploadOverlayUploading};
|
|
190
|
+
span {
|
|
191
|
+
color: ${i?({theme:e})=>e.colorUploadCompletedText:o?({theme:e})=>e.colorUploadErrorText:({theme:e})=>e.colorUploadingText};
|
|
192
|
+
}
|
|
193
|
+
`}
|
|
194
|
+
|
|
195
|
+
`,u=e.div`
|
|
196
|
+
transition-property : all;
|
|
197
|
+
transition-duration : ${({theme:e})=>e.transitionDuration};
|
|
198
|
+
transition-timing-function : ${({theme:e})=>e.transitionTimingFunction};
|
|
199
|
+
|
|
200
|
+
position : absolute;
|
|
201
|
+
top : 0;
|
|
202
|
+
left : 0;
|
|
203
|
+
height : 100%;
|
|
204
|
+
content : "";
|
|
205
|
+
|
|
206
|
+
width : ${e=>e.$progress+"%"};
|
|
207
|
+
background-color : ${({$complete:e,$error:t})=>e?({theme:e})=>e.colorUploadOverlayCompleted:t?({theme:e})=>e.colorUploadOverlayError:({theme:e})=>e.colorUploadOverlayUploading};
|
|
208
|
+
`,m=e.div`
|
|
209
|
+
|
|
210
|
+
display : flex;
|
|
211
|
+
align-items : center;
|
|
212
|
+
justify-content : center;
|
|
213
|
+
|
|
214
|
+
cursor : pointer;
|
|
215
|
+
position : relative;
|
|
216
|
+
|
|
217
|
+
&[data-icon="i"] {
|
|
218
|
+
&::before {
|
|
219
|
+
padding : 4px;
|
|
220
|
+
border-radius : 50px;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
`,$=e(m)`
|
|
225
|
+
&::before { background-color: ${({theme:e})=>e.colorError}; }
|
|
226
|
+
svg circle { fill: ${({theme:e})=>e.colorError}; }
|
|
227
|
+
svg { color: ${({theme:e})=>e.colorErrorText}; }
|
|
228
|
+
`;exports.ErrorBorder=o.ErrorBorder,exports.ErrorTooltip=o.ErrorTooltip,exports.CenterContent=d,exports.Failed=$,exports.FileContent=a,exports.IconsWrapper=s,exports.Label=l,exports.Overlay=c,exports.OverlayContent=p,exports.UploadStatusBox=u,exports.Uploading=h,exports.Wrapper=n;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";var r=require("react/jsx-runtime"),t=require("styled-components"),o=require("react");const e=r.jsx("svg",{width:"16",height:"16",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{fill:"none",fillRule:"evenodd",children:[r.jsx("circle",{fill:"currentColor",cx:"10",cy:"10",r:"10"}),r.jsx("path",{d:"M10.04,8.62 L12.86,5.79 C13.25,5.40 13.89,5.40 14.28,5.79 C14.67,6.18 14.67,6.82 14.28,7.21 L11.45,10.04 L14.28,12.86 C14.67,13.25 14.67,13.89 14.28,14.28 C13.89,14.67 13.25,14.67 12.86,14.28 L10.04,11.45 L7.21,14.28 C6.82,14.67 6.18,14.67 5.79,14.28 C5.40,13.89 5.40,13.25 5.79,12.86 L8.62,10.04 L5.79,7.21 C5.40,6.82 5.40,6.18 5.79,5.79 C6.18,5.40 6.82,5.40 7.21,5.79 L10.04,8.62 Z",fill:"currentColor"})]})}),n=t.span`
|
|
2
|
+
|
|
3
|
+
position: absolute;
|
|
4
|
+
display: flex;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
align-items: flex-end;
|
|
7
|
+
|
|
8
|
+
font-size: .785rem;
|
|
9
|
+
line-height: .875rem;
|
|
10
|
+
|
|
11
|
+
border-radius: calc( ${({theme:r})=>r.borderRadius} - 2px);
|
|
12
|
+
padding: 8px 7px;
|
|
13
|
+
color: ${({theme:r})=>r.colorErrorText};
|
|
14
|
+
background: ${({theme:r})=>r.colorError};
|
|
15
|
+
width: max-content;
|
|
16
|
+
max-width: 210px;
|
|
17
|
+
|
|
18
|
+
z-index: 1;
|
|
19
|
+
|
|
20
|
+
${({$position:r="top-right"})=>{switch(r){case"top-left":return"\n left: -10px;\n bottom: 30px;\n ";case"top-right":return"\n right: -16px;\n bottom: 30px;\n ";case"bottom-left":return"\n left: -95px;\n top: -40px;\n ";case"bottom-right":return"\n right: -95px;\n bottom: -40px;\n "}}}
|
|
21
|
+
|
|
22
|
+
&::after {
|
|
23
|
+
|
|
24
|
+
content: "";
|
|
25
|
+
width: 0;
|
|
26
|
+
height: 0;
|
|
27
|
+
position: absolute;
|
|
28
|
+
border-left: 7px solid transparent;
|
|
29
|
+
border-right: 7px solid transparent;
|
|
30
|
+
|
|
31
|
+
${({$position:r="top-right",$offsetX:t=0,$offsetY:o=0,theme:e})=>{switch(r){case"top-right":return`\n bottom: calc(-6px + ${o}px);\n right: calc(17px + ${t}px);\n border-top: 10px solid ${e.colorError};\n `;case"top-left":return`\n bottom: calc(-6px + ${o}px);\n left: calc(17px + ${t}px);\n border-top: 10px solid ${e.colorError};\n `;case"bottom-left":return`\n top: calc(-6px + ${o}px);\n left: calc(17px + ${t}px);\n border-bottom: 10px solid ${e.colorError};\n `;case"bottom-right":return`\n top: calc(-6px + ${o}px);\n right: calc(17px + ${t}px);\n border-bottom: 10px solid ${e.colorError};\n `}}}
|
|
32
|
+
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
`,i=t.div`
|
|
36
|
+
|
|
37
|
+
position: absolute;
|
|
38
|
+
border: 1px solid ${({theme:r})=>r.colorErrorBorder};
|
|
39
|
+
width: ${({$fullSize:r})=>r?"100%":"calc(100% + 2px)"};
|
|
40
|
+
height: ${({$fullSize:r})=>r?"100%":"calc(100% + 2px)"};
|
|
41
|
+
border-radius: calc( ${({theme:r})=>r.borderRadius} - 2px);
|
|
42
|
+
top: ${({$fullSize:r})=>r?"0":"-1px"};
|
|
43
|
+
left: ${({$fullSize:r})=>r?"0":"-1px"};
|
|
44
|
+
pointer-events: none;
|
|
45
|
+
|
|
46
|
+
`,l=t.div`
|
|
47
|
+
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
position: relative;
|
|
53
|
+
|
|
54
|
+
svg circle {
|
|
55
|
+
fill: ${({theme:r})=>r.colorError};
|
|
56
|
+
}
|
|
57
|
+
svg path {
|
|
58
|
+
fill: ${({theme:r})=>r.colorErrorText};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
`;exports.ErrorBorder=i,exports.ErrorIcon=({message:t,icon:i,className:p="itd-error-icon",tooltipPosition:c="top-right"})=>{const[s,x]=o.useState(!1);return r.jsxs(l,{className:p,onPointerOver:()=>x(!0),onPointerOut:()=>x(!1),children:[i||e,s&&r.jsx(n,{$position:c,children:t})]})},exports.ErrorSVGIcon=e,exports.ErrorTooltip=n;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../enums/enum.js");exports.default=function(n){return n===e.ComponentSizes.X_SMALL?"14":n===e.ComponentSizes.SMALL?"16":n===e.ComponentSizes.MEDIUM?"18":n===e.ComponentSizes.DEFAULT?"20":n===e.ComponentSizes.LARGE?"22":n===e.ComponentSizes.X_LARGE?"24":"20"};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../enums/enum.js");exports.default=function(n){return n===e.ComponentSizes.X_SMALL?e.ComponentSizesSlug.X_SMALL:n===e.ComponentSizes.SMALL?e.ComponentSizesSlug.SMALL:n===e.ComponentSizes.MEDIUM?e.ComponentSizesSlug.MEDIUM:n===e.ComponentSizes.DEFAULT?e.ComponentSizesSlug.DEFAULT:n===e.ComponentSizes.LARGE?e.ComponentSizesSlug.LARGE:n===e.ComponentSizes.X_LARGE?e.ComponentSizesSlug.X_LARGE:e.ComponentSizesSlug.DEFAULT};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react");const r=new Map;var s=t.memo(({src:s,className:a,style:n,title:l,role:o,onLoaded:i,onError:c})=>{const u=t.useRef(null);return t.useEffect(()=>{const e=u.current;if(!e)return;let t=!1;const a=r=>{if(t)return;e.__itdLastSvg!==r?(e.innerHTML=r,e.__itdLastSvg=r,i&&i()):i&&i()};try{if(s.trim().startsWith("<svg"))return a(s),()=>{t=!0};if(r.has(s))return a(r.get(s)),()=>{t=!0};const e=new AbortController;return fetch(s,{signal:e.signal}).then(async e=>{if(!e.ok)throw new Error(`SVG load failed: ${e.status}`);return e.text()}).then(e=>{r.set(s,e),a(e)}).catch(e=>{t||c&&c(e)}),()=>{t=!0,e.abort()}}catch(e){c&&c(e)}return()=>{t=!0}},[s]),e.jsx("span",{ref:u,className:a,style:n,title:l,role:o,"aria-hidden":!l||void 0})},(e,t)=>e.src===t.src&&e.className===t.className&&e.title===t.title&&e.role===t.role&&e.style===t.style);exports.default=s;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ITDHorizontalPosition } from 'types/ITDProps';
|
|
2
2
|
declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
3
3
|
$disabled: boolean;
|
|
4
4
|
}>> & string;
|
|
5
5
|
declare const CalendarWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
6
|
-
$position:
|
|
6
|
+
$position: ITDHorizontalPosition;
|
|
7
7
|
}>> & string;
|
|
8
8
|
declare const RemoveButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
9
9
|
export { Wrapper, CalendarWrapper, RemoveButton };
|
package/dist/enums/enum.d.ts
CHANGED
|
@@ -69,7 +69,20 @@ export declare enum ComponentSizesSlug {
|
|
|
69
69
|
LARGE = "lg",
|
|
70
70
|
X_LARGE = "xlg"
|
|
71
71
|
}
|
|
72
|
-
export declare enum
|
|
72
|
+
export declare enum ComponentXPositions {
|
|
73
73
|
LEFT = "left",
|
|
74
74
|
RIGHT = "right"
|
|
75
75
|
}
|
|
76
|
+
export declare enum ComponentYPositions {
|
|
77
|
+
TOP = "top",
|
|
78
|
+
BOTTOM = "bottom"
|
|
79
|
+
}
|
|
80
|
+
export declare enum ComponentVariants {
|
|
81
|
+
DEFAULT = "default",
|
|
82
|
+
FILLED = "filled",
|
|
83
|
+
CUSTOM = "custom"
|
|
84
|
+
}
|
|
85
|
+
export declare enum ThemeAppearances {
|
|
86
|
+
LIGHT = "light",
|
|
87
|
+
DARK = "dark"
|
|
88
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}export{e as getDefaultExportFromCjs};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{getDefaultExportFromCjs as o}from"./_commonjsHelpers.js";import{__require as r}from"../node_modules/dayjs/plugin/customParseFormat.js";var s=o(r());export{s as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={exports:{}};export{e as __module};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{getDefaultExportFromCjs as o}from"./_commonjsHelpers.js";import{__require as r}from"../node_modules/dayjs/dayjs.min.js";var s=o(r());export{s as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={exports:{}};export{e as __module};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{getDefaultExportFromCjs as o}from"./_commonjsHelpers.js";import{__require as r}from"../node_modules/dayjs/plugin/localizedFormat.js";var e=o(r());export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={exports:{}};export{e as __module};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{getDefaultExportFromCjs as e}from"./_commonjsHelpers.js";import{__require as r}from"../node_modules/fast-deep-equal/react.js";var o=e(r());export{o as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{useState as r,Children as i,cloneElement as n}from"react";import o from"./submenu/SubMenu.js";import t from"./item/Item.js";import{Wrapper as s}from"./styled.js";const m=({useLink:o=!1,onlyOne:t=!1,subMenuLinkArrow:m=!0,subMenuHeight:u=60,itemHeight:a=40,iconSize:c=22,arrowSize:p=10,className:l="",onChange:d,children:f})=>{const[h,b]=r(""),g=e=>{b(e),d&&d(e)};return e(s,{className:"itd-accordion-menu "+l,children:(()=>{if(f)return"string"==typeof f?f:i.map(f,e=>n(e,{...e.props,useLink:o,onlyOne:t,subMenuLinkArrow:m,subMenuHeight:u,itemHeight:a,iconSize:c,arrowSize:p,isSelected:h===e.props.id,onChange:g}))})()})};m.SubMenu=o,m.Item=t;export{o as SubMenu,m as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,jsxs as t}from"react/jsx-runtime";import i from"../../icons/Arrow.js";import{Wrapper as o,Arrow as r}from"./styled.js";import{NavLink as n}from"react-router-dom";const c=({link:c="",itemHeight:a=40,arrowSize:d=20,active:m=!1,end:s=!1,children:l=null})=>e("li",{className:"itd-accordion-menu-content-item",children:t(o,{$itemHeight:a,$isActive:m,className:"itd-accordion-menu-content",as:n,end:s,to:c,children:[e("span",{className:"itd-accordion-menu-content-header-text",children:l}),e(r,{width:d,height:d,as:i,className:"itd-accordion-menu-content-header-arrow-icon itd-svg"})]})});export{c as default};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import e from"styled-components";const t=e.div`
|
|
2
|
+
|
|
3
|
+
height: ${e=>`${e.$itemHeight}px`};
|
|
4
|
+
|
|
5
|
+
padding: 0 20px 0 30px;
|
|
6
|
+
margin-bottom: 1px;
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
|
|
11
|
+
span {
|
|
12
|
+
user-select: none;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
`,o=e.div`
|
|
16
|
+
|
|
17
|
+
margin-left: auto;
|
|
18
|
+
transform: rotate(-90deg);
|
|
19
|
+
|
|
20
|
+
`;export{o as Arrow,t as Wrapper};
|