@inntechcorp/it-design 2.2.90 → 3.1.1
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/calendar.json +22 -22
- package/dist/locales/en/itd.json +13 -0
- package/dist/locales/itd.json +254 -240
- 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 +15 -3
- 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 @@
|
|
|
1
|
+
import{jsx as e,jsxs as r,Fragment as t}from"react/jsx-runtime";import{useContext as a,useState as n,useEffect as o,useMemo as s}from"react";import"../helpers/datetime/dayjsSetup.js";import{useTranslation as d}from"react-i18next";import l from"./dates.js";import m from"./day/Day.js";import c from"./header/Header.js";import"../index.js";import{Wrapper as i,Separator as h,WeekShortDays as y,Days as u,Months as f,Years as p}from"./styled.js";import Y from"../context/ITDContext.js";import b from"../_virtual/dayjs.min.js";const j=({value:j="",defaultValue:M="",className:N,onChange:D,disabledDate:k})=>{const{dateFormat:v}=a(Y),{t:x}=d("calendar"),[g,w]=n(0),[C,S]=n([]),[L,O]=n(null),[I,P]=n(b()),[V,$]=n(null),[z,A]=n("days"),F=e=>b(e,"MM/DD/YYYY"),H=()=>I.format("YYYY"),T=()=>I.format("M");o(()=>{q(),_(M)},[]),o(()=>{_(j)},[j]),o(()=>{J()},[I]);const _=e=>{if(""===e)return;const r=b(e,v,!0);r.isValid()&&($(r),P(r))},q=()=>{const e={weekdaysLong:x("weekdaysLong",{returnObjects:!0}),weekdaysShort:x("weekdaysShort",{returnObjects:!0}),months:x("months",{returnObjects:!0}),firstDay:parseInt(x("firstDay")),format:x("format")};B(e)},B=e=>{O(e),S(e.weekdaysShort),w(e.firstDay)},E=e=>!!k&&k(e),G=e=>{var r=e.format(v);D&&D({localizated:r,global:e.format("YYYY-MM-DD")})},J=()=>{const r=l(Number(T()),Number(H()),g);let t=[];for(let a=0;a<r.length;a++){const n=F(r[a]);let o={date:n,handleClick:G};n.isSame(F(b().format("MM/DD/YYYY")))&&(o.today=!0),n.isSame(V)&&(o.selected=!0),n.format("M")===T()&&(o.current=!0),E(n)&&(o.disabled=!0),t.push(e(m,{...o,children:n.format("D")},a))}return t},K=()=>{let r=[];for(let t=0;t<C.length;t++)r.push(e("div",{children:e("span",{children:C[t]})},t));return r},Q=e=>{if("month"===e&&"days"!==z)return;const r="year"===e&&"years"===z?10:1;P(I.clone().subtract(r,e))},R=e=>{if("month"===e&&"days"!==z)return;const r="year"===e&&"years"===z?10:1;P(I.clone().add(r,e))},U=()=>{A("months")},W=()=>{A("years")},X=()=>e(f,{className:"itd-calendar-months",children:(L?.months||[]).map((r,t)=>e("button",{type:"button",className:"itd-calendar-month"+(I.month()===t?" itd-calendar-month-current":""),onClick:()=>{return e=t,P(I.clone().month(e)),void A("days");var e},children:r},t))}),Z=()=>{const r=10*Math.floor(I.year()/10),t=Array.from({length:12},(e,t)=>r-1+t);return e(p,{className:"itd-calendar-years",children:t.map(t=>e("button",{type:"button",className:"itd-calendar-year"+(I.year()===t?" itd-calendar-year-current":"")+(t<r||t>r+9?" itd-calendar-year-outside":""),onClick:()=>{return e=t,P(I.clone().year(e)),void A("months");var e},children:t},t))})},ee=s(()=>{let e="itd-calendar";return""!==N&&(e+=" "+N),e},[N]);return L?r(i,{className:ee,children:[e(c,{month:L?.months[Number(T())-1],year:H(),onPrevYear:()=>Q("year"),onPrevMonth:()=>Q("month"),onNextYear:()=>R("year"),onNextMonth:()=>R("month"),onClickMonth:U,onClickYear:W,viewMode:z,decadeLabel:(()=>{if("years"!==z)return"";const e=10*Math.floor(I.year()/10);return`${e}-${e+9}`})()}),e(h,{className:"itd-calendar-separator"}),"days"===z&&r(t,{children:[e(y,{className:"itd-calendar-weekdays",children:K()}),e(u,{className:"itd-calendar-days",children:J()})]}),"months"===z&&X(),"years"===z&&Z()]}):null};export{j as default};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import r from"styled-components";const e=r.div`
|
|
2
|
+
|
|
3
|
+
width: 280px;
|
|
4
|
+
border-radius: 6px;
|
|
5
|
+
background-color: #1D2649;
|
|
6
|
+
padding: 4px 14px 14px 14px;
|
|
7
|
+
|
|
8
|
+
`,i=r.div`
|
|
9
|
+
|
|
10
|
+
display: grid;
|
|
11
|
+
grid-template-columns: repeat(7, 1fr);
|
|
12
|
+
grid-gap: 4px 0;
|
|
13
|
+
|
|
14
|
+
`,d=r.div`
|
|
15
|
+
|
|
16
|
+
display: grid;
|
|
17
|
+
grid-gap: 0;
|
|
18
|
+
grid-template-columns: repeat(7, 1fr);
|
|
19
|
+
font-size: 13px;
|
|
20
|
+
line-height: 30px;
|
|
21
|
+
text-align: center;
|
|
22
|
+
|
|
23
|
+
> div {
|
|
24
|
+
|
|
25
|
+
display: flex;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
align-items: center;
|
|
28
|
+
|
|
29
|
+
span {
|
|
30
|
+
color: #ffffff;
|
|
31
|
+
font-weight: bold;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
`,t=r.div`
|
|
37
|
+
|
|
38
|
+
width: 100%;
|
|
39
|
+
height: 1px;
|
|
40
|
+
margin: 4px 0;
|
|
41
|
+
background-color: #505A7D60;
|
|
42
|
+
|
|
43
|
+
`,o=r.div`
|
|
44
|
+
|
|
45
|
+
display: grid;
|
|
46
|
+
grid-template-columns: repeat(3, 1fr);
|
|
47
|
+
grid-gap: 8px;
|
|
48
|
+
|
|
49
|
+
.itd-calendar-month {
|
|
50
|
+
background: transparent;
|
|
51
|
+
border: 0;
|
|
52
|
+
color: #ffffff;
|
|
53
|
+
height: 36px;
|
|
54
|
+
border-radius: 6px;
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
font-size: .875rem;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.itd-calendar-month-current {
|
|
60
|
+
outline: 2px solid #2F74FF;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
`,a=r.div`
|
|
64
|
+
|
|
65
|
+
display: grid;
|
|
66
|
+
grid-template-columns: repeat(4, 1fr);
|
|
67
|
+
grid-gap: 8px;
|
|
68
|
+
|
|
69
|
+
.itd-calendar-year {
|
|
70
|
+
background: transparent;
|
|
71
|
+
border: 0;
|
|
72
|
+
color: #ffffff;
|
|
73
|
+
height: 36px;
|
|
74
|
+
border-radius: 6px;
|
|
75
|
+
cursor: pointer;
|
|
76
|
+
font-size: .875rem;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.itd-calendar-year-current { outline: 2px solid #2F74FF; }
|
|
80
|
+
.itd-calendar-year-outside { color: #ffffff80; }
|
|
81
|
+
|
|
82
|
+
`;export{i as Days,o as Months,t as Separator,d as WeekShortDays,e as Wrapper,a as Years};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r,jsxs as e}from"react/jsx-runtime";import{Wrapper as i,Body as t,Header as a,Content as d,Title as n,Description as s,Extra as c}from"./styles.js";import{useEffect as m,useMemo as o}from"react";import"../index.js";import{ComponentVariants as l}from"../enums/enum.js";import h from"../spin/index.js";import p from"../html/header/H2.js";import"../html/header/styled.js";import f from"../tabs/index.js";const u=({title:u,description:b,extra:N,tabs:g,onTabChange:j,minWidth:v,minHeight:x,children:y,className:T="",variant:$=l.DEFAULT,titleSeparator:H=!1,activeTabKey:C="",updating:K=!1,contentPadding:S="1.5rem"})=>{m(()=>{});const W=()=>{if(N)return r(c,{className:"itd-card-extra",children:N})},w=()=>{if(g)return r(f,{tabs:g,activeTabKey:C,onTabChange:r=>j&&j(r)})},A=()=>{if(u)return r(n,{className:"itd-card-title",children:r(p,{children:u})})},D=()=>{if(b)return r(s,{className:"itd-card-description",children:b})},E=()=>!!(u||N||g),F=o(()=>{let r="itd-card";return $&&(r+=" itd-card-"+$),""!==T&&(r+=" "+T),r},[$,T]);return r(i,{className:F,children:r(h,{updating:K,className:"itd-card-spin",children:e(t,{className:"itd-card-body",$minWidth:v,$minHeight:x,$hasHeader:E(),children:[(()=>{if(E())return e(a,{$showSeparator:H||void 0!==N||void 0!==g,className:"itd-card-header",children:[e("div",{children:[A(),D()]}),e("div",{children:[w(),W()]})]})})(),(()=>{if(y)return r(d,{className:"itd-card-body",$padding:S,children:y})})()]})})})};export{u as default};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import e,{css as i}from"styled-components";const d=e.div`
|
|
2
|
+
|
|
3
|
+
position: relative;
|
|
4
|
+
width: 100%;
|
|
5
|
+
|
|
6
|
+
>.itd-spin {
|
|
7
|
+
height: 100%;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&.itd-card-default {
|
|
11
|
+
border : 1px solid ${({theme:e})=>e.colorBorder};
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&.itd-card-filled {
|
|
15
|
+
box-shadow : 0px 3px 4px 0px rgba(0, 0, 0, 0.03);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&.itd-card-default, &.itd-card-filled {
|
|
19
|
+
background-color : ${({theme:e})=>e.card};
|
|
20
|
+
border-radius : calc( ${({theme:e})=>e.borderRadius} + 4px);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
`,t=e.div`
|
|
24
|
+
|
|
25
|
+
position : relative;
|
|
26
|
+
height : 100%;
|
|
27
|
+
|
|
28
|
+
min-width : ${e=>e.$minWidth?e.$minWidth+"px":"200px"};
|
|
29
|
+
min-height : ${e=>e.$minHeight?e.$minHeight+"px":"100px"};
|
|
30
|
+
|
|
31
|
+
display : grid;
|
|
32
|
+
grid-template-rows : ${e=>e.$hasHeader?"75px 1fr":"1fr"};
|
|
33
|
+
padding-block : 20px;
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
`,r=e.div`
|
|
37
|
+
|
|
38
|
+
padding-inline : 1.5rem;
|
|
39
|
+
|
|
40
|
+
display : flex;
|
|
41
|
+
justify-content : space-between;
|
|
42
|
+
align-items : center;
|
|
43
|
+
gap : 1rem;
|
|
44
|
+
|
|
45
|
+
${e=>{if(void 0===e.$showSeparator||!0===e.$showSeparator)return i`
|
|
46
|
+
border-bottom: 1px solid #f1f1f4;
|
|
47
|
+
`}}
|
|
48
|
+
|
|
49
|
+
`,o=e.div`
|
|
50
|
+
|
|
51
|
+
`,a=e.div`
|
|
52
|
+
color : ${({theme:e})=>e.colorTextMutedForeground};
|
|
53
|
+
font-size : 0.875rem;
|
|
54
|
+
line-height : 0.875rem;
|
|
55
|
+
font-weight : 400;
|
|
56
|
+
`,p=e.div`
|
|
57
|
+
|
|
58
|
+
display : grid;
|
|
59
|
+
padding : ${e=>e.$padding?e.$padding:"1.5rem"};
|
|
60
|
+
|
|
61
|
+
`,n=e.div`
|
|
62
|
+
display : flex;
|
|
63
|
+
flex-direction : row;
|
|
64
|
+
justify-content : space-between;
|
|
65
|
+
gap : .625rem;
|
|
66
|
+
`;export{t as Body,p as Content,a as Description,n as Extra,r as Header,o as Title,d as Wrapper};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{forwardRef as r,useState as t,useEffect as o,useImperativeHandle as s,useMemo as i,Children as l,createRef as d,cloneElement as a}from"react";import c from"../../_virtual/react.js";import"../../index.js";import{Wrapper as p}from"./styled.js";import n from"../../node_modules/lodash-es/isObject.js";import u from"../../node_modules/uuid/dist/esm-browser/v4.js";import m from"../index.js";const h=r(({id:r="",className:h="",disabled:f,variant:v,value:b,defaultValue:x,children:j,onChange:g,onUpdate:k},y)=>{const[A,C]=t([]),[N,O]=t([]),[V,_]=t(""),[E,w]=t(r);o(()=>{""===r&&w("itd-checkbox-group-"+u())},[]),o(()=>{C(G)},[j]),o(()=>{x&&O(x)},[]),o(()=>{b&&(c(N,b)||O(b))},[b]),o(()=>{let e=[];N.forEach(r=>{e.push(r)}),g&&g(e),T(e)},[N]);const D=()=>{if(j)return I(j)};let G=[];const I=e=>l.map(e,e=>{if(!n(e))return e;let r;if(e.type===m){let t={ref:d(),onChange:e=>{(e=>{let r=N;if(e.value){if(e.checked)r=[...N,e.value];else{const t=N.indexOf(e.value);if(t>-1){let e=[...N];e.splice(t,1),r=e}}O(r)}})(e)},children:I(e.props.children)};N.indexOf(e.props.value)>-1&&!e.props.disabled&&(t.checked=!0),void 0!==f&&(t.disabled=f),void 0!==v&&void 0===e.props.variant&&(t.variant=v),r=a(e,t),G.push(e.props.value)}else r=a(e,{children:I(e.props.children)});return r});s(y,()=>({reset(e=!0,r=!0){this.selectAll(!1),O([]),_(""),T([],e,r)},setValue(e=[],r=!0,t=!0){O(e),T(e,r,t)},getValue:()=>N,setError(e=""){_(e)},clear(){O([]),this.selectAll(!1)},selectAll(e){O(e?A:[]),T(e?A:[]),g&&g(e?A:[])}}));const T=(e,r=!0,t=!0)=>{k&&k(e,r,t)},U=i(()=>{let e="itd-checkbox-group";return""!==V&&(e+=" itd-checkbox-group-error"),f&&(e+=" itd-checkbox-group-disabled"),""!==h&&(e+=" "+h),e},[V,f,h]);return e(p,{id:E,className:U,children:D()})});h.displayName="ITD-CheckboxGroup";export{h as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsxs as e,jsx as r}from"react/jsx-runtime";import{forwardRef as t,useRef as i,useState as a,useEffect as o,useImperativeHandle as c,useMemo as d}from"react";import n from"./group/index.js";import{Wrapper as s,CheckboxInnerWrapper as l,Checkmark as u,CheckboxInput as m}from"./styled.js";import{ComponentVariants as h}from"../enums/enum.js";import p from"../node_modules/uuid/dist/esm-browser/v4.js";import{ErrorTooltip as b}from"../utils/CommonStyledComponents.js";const f=t(({id:t="",checked:n=!1,indeterminate:f=!1,disabled:k=!1,readOnly:x=!1,variant:v=h.DEFAULT,animated:g=!1,className:y="",value:N,children:$,onChange:j,onUpdate:w},C)=>{const D=i(null),[_,A]=a(!1),[E,S]=a(g),[U,F]=a(!1),[I,L]=a(!1),[M,P]=a(""),[T,V]=a(!1),[G,O]=a(t);o(()=>{""===t&&O("itd-checkbox-"+p())},[]),o(()=>{null!=n&&(A(n),q(n))},[n]),o(()=>{S(g)},[g]),o(()=>{null!=f&&(F(f),D.current&&(D.current.indeterminate=!!f,D.current.setAttribute("aria-checked",f?"mixed":_?"true":"false")))},[f]),o(()=>{D.current&&(D.current.indeterminate=!!U,D.current.setAttribute("aria-checked",U?"mixed":_?"true":"false"))},[U,_]),c(C,()=>({reset(e=!0,r=!0){const t=n||!1;A(t),P(""),q(t,e,r)},setValue(e=!1,r=!0,t=!0){A(e),q(e,r,t)},getValue:()=>_,setError(e=""){P(e)},setDisabled(e=!0){L(e)},forceUpdate(){q(_)},clear(){A(!1)}}));const X=e=>{x||k?e.preventDefault():(_||P(""),j&&j({checked:!_,value:N,className:"itd-checkbox",disabled:k||I,target:D,stopPropagation:e.stopPropagation,preventDefault:e.preventDefault}),S(!0),F(!1),A(!_),q(!_))},q=(e,r=!0,t=!0)=>{w&&w(e,r,t)},z=()=>{if(""===M||k)return;return r("p",{id:`${G}__error`,role:"alert","aria-live":"assertive",className:"sr-only",style:{position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0},children:M})},B=()=>{if(""!==M&&!k)return r(b,{className:"itd-checkbox-error-tooltip itd-error-tooltip",$position:"top-left",$offsetX:-4,"aria-hidden":"true",children:M})},H=d(()=>{let e="itd-checkbox";return e+=" itd-checkbox-"+v,_&&(e+=" itd-checkbox-selected"),T&&(e+=" itd-checkbox-active"),""!==M&&(e+=" itd-checkbox-error"),(k||I)&&(e+=" itd-checkbox-disabled"),x&&(e+=" itd-checkbox-readonly"),""!==y&&(e+=" "+y),e},[v,_,T,M,k,I,x,y]),J=()=>!k&&("boolean"==typeof _?_:"true"===_);return(()=>{const t=`${G}__error`;return e(s,{className:H,children:[e(l,{className:"itd-checkbox-inner-wrapper",onMouseEnter:()=>V(!0),onMouseLeave:()=>V(!1),children:[r(u,{className:"itd-checkbox-checkmark",$isChecked:_,$isAnimated:E,$isIndeterminate:U,children:r(m,{id:G,ref:D,type:"checkbox",disabled:k||I,checked:J(),value:J().toString(),onChange:X,"data-readonly":x?"true":"false","aria-checked":U?"mixed":J()?"true":"false","aria-invalid":""!==M?"true":void 0,"aria-describedby":""!==M?t:void 0})}),r("label",{className:"itd-checkbox-label",htmlFor:G,children:$})]}),z(),B()]})})()});f.Group=n,f.displayName="ITD-Checkbox";export{n as CheckboxGroup,f as default};
|
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
import{ThemeAppearances as e}from"../enums/enum.js";import o,{css as r}from"styled-components";import{withOpacity as t}from"../helpers/theme/Color.js";import{TYPOGRAPHY_TOKENS as i,SPACING_TOKENS as n}from"../helpers/theme/tokens.js";export{ErrorTooltip}from"../utils/CommonStyledComponents.js";const c=o.div`
|
|
2
|
+
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
position: relative;
|
|
6
|
+
|
|
7
|
+
//user-select: none;
|
|
8
|
+
min-height: 20px;
|
|
9
|
+
|
|
10
|
+
&.itd-checkbox-readonly {
|
|
11
|
+
pointer-events: none;
|
|
12
|
+
.itd-checkbox-label {
|
|
13
|
+
pointer-events: none;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.itd-checkbox-label {
|
|
18
|
+
|
|
19
|
+
//cursor : pointer;
|
|
20
|
+
font-size : ${i.fontSize.df};
|
|
21
|
+
font-weight : ${i.fontWeight.normal};
|
|
22
|
+
|
|
23
|
+
transition-property : color;
|
|
24
|
+
transition-duration : ${({theme:e})=>e.transitionDuration};
|
|
25
|
+
transition-timing-function : ${({theme:e})=>e.transitionTimingFunction};
|
|
26
|
+
|
|
27
|
+
a {
|
|
28
|
+
|
|
29
|
+
text-decoration: none;
|
|
30
|
+
|
|
31
|
+
&:hover {
|
|
32
|
+
text-decoration: underline;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&.itd-checkbox-disabled {
|
|
40
|
+
cursor: not-allowed;
|
|
41
|
+
pointer-events: auto;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* DEFAULT
|
|
46
|
+
*/
|
|
47
|
+
&.itd-checkbox-default {
|
|
48
|
+
|
|
49
|
+
input {
|
|
50
|
+
border : 1px solid ${({theme:e})=>e.colorBorder};
|
|
51
|
+
box-shadow : ${({theme:e})=>e.boxShadow};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.itd-checkbox-checkmark {
|
|
55
|
+
background: none;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* Klavye navigasyonu ile aktif (select menüsünde) */
|
|
59
|
+
&.itd-checkbox-keyboard-active:not(.itd-checkbox-selected):not(.itd-checkbox-disabled) {
|
|
60
|
+
input {
|
|
61
|
+
border: 1px solid ${({theme:e})=>e.colorBorderHover};
|
|
62
|
+
}
|
|
63
|
+
.itd-checkbox-label {
|
|
64
|
+
color: ${({theme:e})=>e.colorText};
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.itd-checkbox-label {
|
|
69
|
+
|
|
70
|
+
color: ${({theme:e})=>e.colorControlLabel};
|
|
71
|
+
|
|
72
|
+
a {
|
|
73
|
+
|
|
74
|
+
color: ${({theme:e})=>e.primaryScale[600]};
|
|
75
|
+
|
|
76
|
+
&:hover {
|
|
77
|
+
color: ${({theme:e})=>e.primaryScale[500]};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&.itd-checkbox-selected {
|
|
85
|
+
|
|
86
|
+
input {
|
|
87
|
+
border: 1px solid ${({theme:e})=>e.primary};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.itd-checkbox-checkmark {
|
|
91
|
+
//background: ${({theme:e})=>e.primary};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.itd-checkbox-checkmark::before {
|
|
95
|
+
background-color: ${({theme:e})=>e.primary};
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.itd-checkbox-label {
|
|
99
|
+
color: ${({theme:e})=>e.colorText};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&.itd-checkbox-error {
|
|
105
|
+
|
|
106
|
+
input {
|
|
107
|
+
border: 1px solid ${({theme:e})=>e.colorErrorBorder};
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&.itd-checkbox-disabled {
|
|
113
|
+
|
|
114
|
+
input {
|
|
115
|
+
border: 1px solid ${({theme:e})=>e.colorDisabledBorder};
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.itd-checkbox-checkmark {
|
|
119
|
+
background-color: ${({theme:e})=>e.colorDisabledBg};
|
|
120
|
+
pointer-events: none;
|
|
121
|
+
&:before {
|
|
122
|
+
background-color: ${({theme:e})=>e.colorDisabledBorder};
|
|
123
|
+
}
|
|
124
|
+
svg { fill: ${({theme:e})=>e.colorDisabledText} }
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.itd-checkbox-label {
|
|
128
|
+
color: ${({theme:e})=>e.colorDisabledText};
|
|
129
|
+
pointer-events: none;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
&:not(&.itd-checkbox-error):not(.itd-checkbox-selected):not(.itd-checkbox-disabled) {
|
|
135
|
+
&:hover {
|
|
136
|
+
input {
|
|
137
|
+
border: 1px solid ${({theme:e})=>e.colorBorderHover};
|
|
138
|
+
}
|
|
139
|
+
.itd-checkbox-label {
|
|
140
|
+
color: ${({theme:e})=>e.colorText};
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* FILLED
|
|
149
|
+
*/
|
|
150
|
+
&.itd-checkbox-filled {
|
|
151
|
+
|
|
152
|
+
&:not(.itd-checkbox-readonly) {
|
|
153
|
+
transition-property : all;
|
|
154
|
+
transition-duration : ${({theme:e})=>e.transitionDuration};
|
|
155
|
+
transition-timing-function : ${({theme:e})=>e.transitionTimingFunction};
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.itd-checkbox-checkmark {
|
|
159
|
+
background : ${({theme:e})=>e.colorBackgroundAltHover};
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/* Klavye navigasyonu ile aktif (select menüsünde) */
|
|
163
|
+
&.itd-checkbox-keyboard-active:not(.itd-checkbox-selected):not(.itd-checkbox-disabled) {
|
|
164
|
+
.itd-checkbox-checkmark {
|
|
165
|
+
background: ${({theme:e})=>e.colorBackgroundAltHover};
|
|
166
|
+
}
|
|
167
|
+
.itd-checkbox-label {
|
|
168
|
+
color: ${({theme:e})=>e.colorText};
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.itd-checkbox-label {
|
|
173
|
+
|
|
174
|
+
color: ${({theme:e})=>e.colorControlLabel};
|
|
175
|
+
|
|
176
|
+
a {
|
|
177
|
+
|
|
178
|
+
color: ${({theme:e})=>e.primary};
|
|
179
|
+
|
|
180
|
+
&:hover {
|
|
181
|
+
color: ${({theme:e})=>e.primary};
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
&.itd-checkbox-selected {
|
|
189
|
+
|
|
190
|
+
.itd-checkbox-checkmark {
|
|
191
|
+
background: ${({theme:e})=>e.primary};
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.itd-checkbox-checkmark::before {
|
|
195
|
+
background-color: ${({theme:e})=>e.primaryForeground};
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.itd-checkbox-label {
|
|
199
|
+
color: ${({theme:e})=>e.colorText};
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
&.itd-checkbox-error {
|
|
205
|
+
input {
|
|
206
|
+
border: 1px solid ${({theme:e})=>e.colorErrorBorder};
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
&.itd-checkbox-disabled {
|
|
211
|
+
|
|
212
|
+
input {
|
|
213
|
+
border: 1px solid ${({theme:e})=>e.colorDisabledBorder};
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.itd-checkbox-checkmark {
|
|
217
|
+
background-color: ${({theme:e})=>e.colorDisabledBg};
|
|
218
|
+
pointer-events: none;
|
|
219
|
+
&:before {
|
|
220
|
+
background-color: ${({theme:e})=>e.colorDisabledBorder};
|
|
221
|
+
}
|
|
222
|
+
svg { fill: ${({theme:e})=>e.colorDisabledText} }
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.itd-checkbox-label {
|
|
226
|
+
color: ${({theme:e})=>e.colorDisabledText};
|
|
227
|
+
pointer-events: none;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
&:not(&.itd-checkbox-error):not(.itd-checkbox-selected):not(.itd-checkbox-disabled) {
|
|
233
|
+
&:hover {
|
|
234
|
+
.itd-checkbox-checkmark {
|
|
235
|
+
background: ${({theme:e})=>e.colorBackgroundAltHover};
|
|
236
|
+
}
|
|
237
|
+
.itd-checkbox-label {
|
|
238
|
+
color: ${({theme:e})=>e.colorText};
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
`,l=o.div`
|
|
246
|
+
|
|
247
|
+
min-height : 20px;
|
|
248
|
+
gap : ${n.gap.sm};
|
|
249
|
+
|
|
250
|
+
display : flex;
|
|
251
|
+
align-items : center;
|
|
252
|
+
position : relative;
|
|
253
|
+
flex-direction : row;
|
|
254
|
+
|
|
255
|
+
`,d=o.span`
|
|
256
|
+
|
|
257
|
+
display : flex;
|
|
258
|
+
align-items : center;
|
|
259
|
+
justify-content : center;
|
|
260
|
+
|
|
261
|
+
min-height : 20px;
|
|
262
|
+
min-width : 20px;
|
|
263
|
+
position : relative;
|
|
264
|
+
border-radius : min(calc( ${({theme:e})=>e.borderRadius} - 2px), 6px);
|
|
265
|
+
${e=>{if(e.$isAnimated)return r`
|
|
266
|
+
&::before {
|
|
267
|
+
transition-property : transform;
|
|
268
|
+
transition-duration : calc(${({theme:e})=>e.transitionDuration} / 2);
|
|
269
|
+
transition-timing-function : ${({theme:e})=>e.transitionTimingFunction};
|
|
270
|
+
}
|
|
271
|
+
`}}
|
|
272
|
+
|
|
273
|
+
&::before {
|
|
274
|
+
|
|
275
|
+
content: "";
|
|
276
|
+
mask-image: url('data:image/svg+xml,<svg width="14px" height="10.4691315px" viewBox="0 0 14 10.4691315" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Group" fill="%23000000" fill-rule="nonzero"><polygon id="Path" points="12.1454315 0 5.01223756 6.61750794 1.9955597 3.39820863 0 5.26815795 4.87359619 10.4691315 14 2.01029968"></polygon></g></g></svg>');
|
|
277
|
+
|
|
278
|
+
width: 14px;
|
|
279
|
+
height: 10.47px;
|
|
280
|
+
background-color: ${({theme:e})=>e.primary};
|
|
281
|
+
|
|
282
|
+
${e=>{if(e.$isIndeterminate)return r`
|
|
283
|
+
/* Checked ile aynı görsel yoğunluk için renk ve kontrast korunur */
|
|
284
|
+
mask-image: none;
|
|
285
|
+
width: 10px;
|
|
286
|
+
height: 2px;
|
|
287
|
+
border-radius: 2px;
|
|
288
|
+
opacity: 1;
|
|
289
|
+
transform: none;
|
|
290
|
+
background-color: ${({theme:e})=>e.primaryForeground}; /* checked iç tik rengiyle aynı */
|
|
291
|
+
`;const o=e.$isChecked?.85:0,t=e.$isChecked?.85:.1;return r`
|
|
292
|
+
transform: scale(${t});
|
|
293
|
+
opacity: ${o};
|
|
294
|
+
`}};
|
|
295
|
+
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
`,a=o.input`
|
|
299
|
+
|
|
300
|
+
appearance: none;
|
|
301
|
+
position: absolute;
|
|
302
|
+
|
|
303
|
+
cursor: pointer;
|
|
304
|
+
height: 100%;
|
|
305
|
+
width: 100%;
|
|
306
|
+
top: 0;
|
|
307
|
+
left: 0;
|
|
308
|
+
|
|
309
|
+
margin: 0;
|
|
310
|
+
padding: 0;
|
|
311
|
+
|
|
312
|
+
outline : 0 solid transparent;
|
|
313
|
+
outline-offset : ${({theme:e})=>e.ringOffset};
|
|
314
|
+
border-radius : min(calc( ${({theme:e})=>e.borderRadius} - 2px), 6px);
|
|
315
|
+
|
|
316
|
+
&[data-readonly="true"] {
|
|
317
|
+
transition : outline 100ms linear;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
&[data-readonly="false"] {
|
|
321
|
+
transition : outline 100ms linear,
|
|
322
|
+
border-color ${({theme:e})=>e.transitionDuration} ${({theme:e})=>e.transitionTimingFunction};
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
svg {
|
|
326
|
+
pointer-events: none;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
&&:focus-visible {
|
|
330
|
+
border-color: ${({theme:o})=>o.primaryScale[o.appearance===e.LIGHT?400:900]};
|
|
331
|
+
outline: ${({theme:e})=>e.ringWidth} solid ${({theme:o})=>t(o.primaryScale[o.appearance===e.LIGHT?400:900],.5)};
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/* Error durumunda outline kırmızı */
|
|
335
|
+
.itd-checkbox-error &&:focus-visible {
|
|
336
|
+
border-color: ${({theme:e})=>e.colorErrorBorder};
|
|
337
|
+
outline: ${({theme:e})=>e.ringWidth} solid ${({theme:e})=>t(e.colorErrorBorder,.5)};
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
`;export{l as CheckboxInnerWrapper,a as CheckboxInput,d as Checkmark,c as Wrapper};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{createContext as a,useState as t,useEffect as n,useCallback as r,useMemo as g}from"react";import{ModalProvider as o}from"../modal/index.js";import{NotificationProvider as m}from"../notification/index.js";import c from"./ITDThemeProvider.js";import{Wrapper as h}from"./styled.js";let i;try{i=require("i18next")}catch(e){i={changeLanguage:()=>{}}}const d=a({});d.displayName="ITDContext";const l=a=>{const[l,u]=t(a.theme?a.theme:"dark"),[s,f]=t(a.dateFormat?a.dateFormat:"MM/DD/YYYY"),[p,F]=t(a.language?a.language:"en"),[L,x]=t("en-US"),[j,k]=t("");n(()=>{a.theme&&u(a.theme),a.language&&(F(a.language),"function"==typeof i?.changeLanguage&&i.changeLanguage(a.language)),a.dateFormat&&f(a.dateFormat)},[a.theme,a.language,a.dateFormat]);const y=r(e=>{console.log("changeTheme",e),u(e)},[]),D=r(e=>{k(e)},[]),T=r(e=>{f(e)},[]),v=r(e=>{x(e)},[]),I=r(e=>{F(e),"function"==typeof i?.changeLanguage&&i.changeLanguage(e)},[]),Y=g(()=>({theme:l,brokenImage:j,dateFormat:s,language:p,locale:L,changeTheme:y,changeBrokenImage:D,changeDateFormat:T,changeLanguage:I,changeLocale:v}),[l,j,s,p,L,y,D,T,I,v]);return e(h,{className:"itd-provider","data-theme":l,"data-lang":p,children:e(c,{themeName:"dark"===l?"dark":"light",children:e(d.Provider,{value:Y,children:e(m,{children:e(o,{children:a.children})})})})})};export{l as ITDProvider,d as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{useMemo as t,useEffect as r}from"react";import{ThemeProvider as o}from"styled-components";import s from"../helpers/theme/light.js";import i from"../helpers/theme/dark.js";function m({themeName:m="light",customTheme:l,children:n}){const d="dark"===m?i:s,c=t(()=>({...d,...l}),[d,l]);return r(()=>{if("undefined"==typeof document)return;const e=document.documentElement;e.style.setProperty("--itd-text",c.colorText),e.style.setProperty("--itd-text-muted",c.colorTextMuted),e.style.setProperty("--itd-border",c.colorBorder),e.style.setProperty("--itd-ring",c.primary),e.style.setProperty("--itd-link",c.primary),e.style.setProperty("--itd-selection",c.selection),e.style.setProperty("--itd-selection-fg",c.selectionForeground)},[c]),e(o,{theme:c,children:n})}export{m as default};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import e from"styled-components";const o=e.div`
|
|
2
|
+
|
|
3
|
+
/* Theme-aware selection colors */
|
|
4
|
+
::selection {
|
|
5
|
+
background: ${({theme:e})=>e.selection};
|
|
6
|
+
color: ${({theme:e})=>e.selectionForeground};
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/* Tüm child elementler için de geçerli */
|
|
10
|
+
* ::selection {
|
|
11
|
+
background: ${({theme:e})=>e.selection};
|
|
12
|
+
color: ${({theme:e})=>e.selectionForeground};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
`;export{o as Wrapper};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsxs as e,jsx as a}from"react/jsx-runtime";import{forwardRef as t,useRef as l,useContext as o,useState as i,useEffect as r,useImperativeHandle as d,useMemo as c}from"react";import{CSSTransition as s}from"react-transition-group";import"../helpers/datetime/dayjsSetup.js";import n from"../utils/GetSizeSlugBySize.js";import"../index.js";import{Wrapper as m,CalendarWrapper as u,RemoveButton as p}from"./styled.js";import f from"../calendar/index.js";import{ComponentSizes as z,ComponentXPositions as g}from"../enums/enum.js";import b from"../context/ITDContext.js";import v from"../node_modules/uuid/dist/esm-browser/v4.js";import k from"../_virtual/dayjs.min.js";import j from"../input/index.js";import h from"../node_modules/lucide-react/dist/esm/icons/calendar-1.js";import x from"../node_modules/lucide-react/dist/esm/icons/circle-x.js";const E=t(({id:t="",placeholder:E="",mask:D="##/##/####",size:y=z.DEFAULT,variant:F="default",disabled:N=!1,position:_=g.LEFT,className:C="",value:L="",defaultValue:V="",suffix:M,onUpdate:S,onChange:T,disabledDate:Y},w)=>{const $=l(null),{dateFormat:B,locale:R}=o(b),U=l(null),A=l(null),[G,I]=i(""),[K,O]=i(""),[P,W]=i(!1),[q,H]=i(t),[J,Q]=i({localizated:"",global:""}),[X,Z]=i(!1);r(()=>(""===t&&H("itd-datepicker-"+v()),""!==V&&(I(k(V).locale(R).format(B)),Q({localizated:k(V).locale(R).format(B),global:V})),()=>{ae(!1)}),[]),r(()=>{""!==L&&(I(k(L).locale(R).format(B)),Q({localizated:k(L).locale(R).format(B),global:L}))},[L]),r(()=>{ae(P)},[P]),r(()=>{A.current&&A.current.setError?.(K)},[K]),r(()=>{""!==G&&(Q({localizated:k(J.global).locale(R).format(B),global:J.global}),I(k(J.global).locale(R).format(B)))},[R]);const ee=(e,a=!0,t=!0,l=!1)=>{if(!l&&(""===e.localizated||e.localizated===G))return;const o=se(e.localizated),i=o?e.global:"";I(o?e.localizated:""),S&&S(i,a,t)};d(w,()=>({reset(e=!0,a=!0){O(""),Q({localizated:"",global:""}),ee("",e,a,!0)},setValue(e,a=!0,t=!0){if(J.global===e)return;const l={localizated:k(e).locale(R).format(B),global:e};Q(l),ee(l,a,t)},getValue:()=>""!==J.localizated?J.global:"",setError(e){O(e)},clear(){}}));const ae=e=>{document[e?"addEventListener":"removeEventListener"]("pointerdown",te)},te=e=>{P&&U.current&&!U.current.contains(e.target)&&W(!1)},le=e=>{const a=e.key;if(!/^[0-9]$/.test(a))return"Enter"===a||" "===a?(N||W(!0),void e.preventDefault()):void("Escape"!==a&&"Esc"!==a&&"Tab"!==a||W(!1));N||W(!0)},oe=()=>{},ie=()=>{A.current&&A.current.setFocus&&A.current.setFocus(),W(!0)},re=e=>{const a=se(e),t=D?.replace(/[^/(.*?)]/g,"_"),l={localizated:e,global:k(e,B,!0).format("YYYY-MM-DD")};O(""),a?(ee(l),Q(l)):I(""===e||e===t?"":e)},de=()=>{const e=D?.replace(/[^/(.*?)]/g,"_"),a=G;if(""===a)return void(""!==J.localizated&&I(J.localizated));(a.includes("_")||a===e||!se(a))&&(""!==J.localizated?I(J.localizated):I(""))},ce=e=>{W(!1),Q(e),ee(e,!0),T&&T(e)},se=e=>{let a=k(e,B,!0).isValid(),t=!1;return Y&&(t=Y(k(e,B))),a&&!t},ne=c(()=>{let e="itd-date-picker";return e+=" itd-date-picker-"+n(y),e+=" itd-date-picker-"+F,N&&(e+=" itd-date-picker-disabled"),K&&(e+=" itd-date-picker-error"),P&&(e+=" itd-date-picker-open"),""!==C&&(e+=" "+C),e},[N,K,P,C]);return e(m,{className:ne,$disabled:N,ref:U,onClick:N?void 0:ie,children:[a("div",{onMouseEnter:()=>{Z(!0)},onMouseLeave:()=>Z(!1),children:a(j,{id:q,placeholder:E,value:G,mask:D,size:y,variant:F,onChange:re,onFocus:oe,onKeyDown:le,onBlur:de,keepFocus:P,focusRef:U,ref:A,disabled:N,suffix:a("div",{className:"itd-datepicker-suffix",children:X&&""!==J.localizated?a(p,{className:"itd-datepicker-remove-button",onClick:e=>{X&&""!==J.localizated&&(e.preventDefault(),e.stopPropagation(),Q({localizated:"",global:""}),I(""),W(!1),T&&T({localizated:"",global:""}),S&&S("",!0,!0))},children:a(x,{size:16,className:"itd-datepicker-remove-icon clear"})}):M||a("span",{className:"itd-datepicker-icon",style:{opacity:1},children:a(h,{size:16,strokeWidth:2})})})})}),a(s,{in:P,timeout:200,classNames:"datepicker-modal",nodeRef:$,unmountOnExit:!0,children:a(u,{$position:_,ref:$,children:a(f,{value:J.localizated,defaultValue:J.localizated,onChange:ce,disabledDate:Y})})})]})});export{E as default};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import o,{css as e}from"styled-components";const t=o.div`
|
|
2
|
+
|
|
3
|
+
position: relative;
|
|
4
|
+
height: max-content;
|
|
5
|
+
|
|
6
|
+
input {
|
|
7
|
+
background: none;
|
|
8
|
+
border-width: 0;
|
|
9
|
+
display: block;
|
|
10
|
+
width: 100%;
|
|
11
|
+
outline: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.itd-datepicker-suffix {
|
|
15
|
+
width: 1rem;
|
|
16
|
+
height: 1rem;
|
|
17
|
+
display: inline-grid;
|
|
18
|
+
place-items: center;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.itd-datepicker-icon {
|
|
22
|
+
color: ${({theme:o})=>o.colorText};
|
|
23
|
+
transition: color .2s ease, opacity .2s ease;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
${({$disabled:o})=>o&&e`
|
|
27
|
+
cursor: not-allowed;
|
|
28
|
+
`}
|
|
29
|
+
|
|
30
|
+
`,i=o.div`
|
|
31
|
+
|
|
32
|
+
box-shadow : 0 0 30px rgba(0,0,0,.25);
|
|
33
|
+
z-index : 2;
|
|
34
|
+
position : absolute;
|
|
35
|
+
top : calc(100% + 6px);
|
|
36
|
+
|
|
37
|
+
${({$position:o})=>"left"===o?"left: 0;":"right: 0;"};
|
|
38
|
+
|
|
39
|
+
transform-origin: 0% 8%;
|
|
40
|
+
transform-box: fill-box;
|
|
41
|
+
|
|
42
|
+
`,r=o.div`
|
|
43
|
+
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
justify-content: center;
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
|
|
49
|
+
svg {
|
|
50
|
+
transition: color .2s ease;
|
|
51
|
+
color: ${({theme:o})=>o.colorTextNeutral};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&:hover {
|
|
55
|
+
svg {
|
|
56
|
+
color: ${({theme:o})=>o.colorText};
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
`;export{i as CalendarWrapper,r as RemoveButton,t as Wrapper};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e,n,o,E,t,i,l,a,m,L,d,c;!function(e){e.NOT_SHOW="modal-not-show",e.BEGIN="modal-begin",e.ENTERING="modal-entering",e.ENTERED="modal-entered",e.EXITING="modal-exiting",e.EXITED="modal-exited",e.REMOVED="modal-removed",e.OK_CLICK="modal-ok-button-click",e.CANCEL_CLICK="modal-cancel-button-click",e.CLOSE_CLICK="modal-close-button-click",e.OUTSIDE_CLICK="modal-outside-click",e.ESC_CLICK="modal-esc-click",e.ALL_REMOVED="modal-all-removed"}(e||(e={})),function(e){e.SVG="image/svg+xml",e.PNG="image/png",e.JPG="image/jpg",e.JPEG="image/jpeg",e.GIF="image/gif",e.PDF="application/pdf",e.OTF="font/otf"}(n||(n={})),function(e){e.SVG=".svg",e.PNG=".png",e.JPG=".jpg",e.GIF=".gif",e.PDF=".pdf",e.OTF=".otf"}(o||(o={})),function(e){e.REQUIRED="required",e.TYPE="type"}(E||(E={})),function(e){e.MIN_LENGTH="minLength",e.MAX_LENGTH="maxLength",e.EXACT_LENGTH="exactLength",e.SAME="same",e.NOT_SAME="notSame",e.TC_IDENTITY="TCIdentity",e.PASSWORD="password",e.EMAIL="email",e.USERNAME="username",e.SITE_USERNAME="siteUsername",e.ADMIN_USERNAME="adminUsername",e.URL="url",e.FORBIDDEN_WORDS="forbiddenWords"}(t||(t={})),function(e){e.ONLINE="online",e.OFFLINE="offline"}(i||(i={})),function(e){e.X_SMALL="x-small",e.SMALL="small",e.MEDIUM="medium",e.DEFAULT="default",e.LARGE="large",e.X_LARGE="x-large"}(l||(l={})),function(e){e.X_SMALL="xs",e.SMALL="sm",e.MEDIUM="md",e.DEFAULT="df",e.LARGE="lg",e.X_LARGE="xlg"}(a||(a={})),function(e){e.LEFT="left",e.RIGHT="right"}(m||(m={})),function(e){e.TOP="top",e.BOTTOM="bottom"}(L||(L={})),function(e){e.DEFAULT="default",e.FILLED="filled",e.CUSTOM="custom"}(d||(d={})),function(e){e.LIGHT="light",e.DARK="dark"}(c||(c={}));export{l as ComponentSizes,a as ComponentSizesSlug,d as ComponentVariants,m as ComponentXPositions,L as ComponentYPositions,i as ConnectionStatus,o as FileExtensions,n as FileTypes,t as FormValidationTypes,E as FormValidations,e as ModalState,c as ThemeAppearances};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{Wrapper as a}from"./styled.js";const e=({gap:e,justify:r,align:s,vertical:l,wrap:i,stretch:c,style:m,className:p,children:n})=>t(a,{$gap:e,$justify:r,$align:s,$vertical:l,$wrap:i,$stretch:c,style:m,className:p,children:n});export{e as default};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import t,{css as e}from"styled-components";const i=t.div`
|
|
2
|
+
|
|
3
|
+
display : flex;
|
|
4
|
+
|
|
5
|
+
${t=>{if(t.$stretch&&!0===t.$stretch)return t.$vertical&&!0===t.$vertical?e`
|
|
6
|
+
height : 100%;
|
|
7
|
+
`:e`
|
|
8
|
+
width : 100%;
|
|
9
|
+
`}}
|
|
10
|
+
|
|
11
|
+
${t=>{if(t.$wrap)return!0===t.$wrap&&e`
|
|
12
|
+
flex-wrap : wrap;
|
|
13
|
+
`}}
|
|
14
|
+
|
|
15
|
+
${t=>t.$vertical?!0===t.$vertical&&e`
|
|
16
|
+
flex-direction : column;
|
|
17
|
+
`:e`
|
|
18
|
+
flex-direction : row;
|
|
19
|
+
`}
|
|
20
|
+
|
|
21
|
+
${t=>{if(t.$justify)return e`
|
|
22
|
+
justify-content : ${t.$justify};
|
|
23
|
+
`}}
|
|
24
|
+
|
|
25
|
+
${t=>t.$align?e`
|
|
26
|
+
align-items : ${t.$align};
|
|
27
|
+
`:e`
|
|
28
|
+
align-items : center;
|
|
29
|
+
`}
|
|
30
|
+
|
|
31
|
+
${t=>{if(t.$gap){let i=0,$="";return"small"===t.$gap?i=10:"medium"===t.$gap?i=16:"large"===t.$gap?i=24:"string"==typeof t.$gap?$=t.$gap:i=t.$gap,""===$&&($=i+"px"),e`
|
|
32
|
+
gap : ${$};
|
|
33
|
+
`}}}
|
|
34
|
+
|
|
35
|
+
`;export{i as Wrapper};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createContext as t}from"react";const o=t({});o.displayName="ITDFormContext";export{o as default};
|