@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,88 @@
|
|
|
1
|
+
import e,{css as r}from"styled-components";import o from"../../icons/Lock.js";export{ErrorBorder,ErrorTooltip}from"../../utils/CommonStyledComponents.js";const t=e.div`
|
|
2
|
+
|
|
3
|
+
display : flex;
|
|
4
|
+
align-items : center;
|
|
5
|
+
cursor : ${({$showSearch:e})=>e?"default":"pointer"};
|
|
6
|
+
box-sizing : border-box;
|
|
7
|
+
|
|
8
|
+
-webkit-user-select : none;
|
|
9
|
+
-moz-user-select : none;
|
|
10
|
+
-ms-user-select : none;
|
|
11
|
+
user-select : none;
|
|
12
|
+
|
|
13
|
+
>svg {
|
|
14
|
+
width : auto;
|
|
15
|
+
height : 1rem;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.itd-svg > div {
|
|
19
|
+
display : flex;
|
|
20
|
+
align-items : center;
|
|
21
|
+
justify-content : center;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
`,i=e.div`
|
|
25
|
+
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-grow: 1;
|
|
28
|
+
height: 100%;
|
|
29
|
+
|
|
30
|
+
`,l=e.div`
|
|
31
|
+
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
pointer-events: none;
|
|
35
|
+
|
|
36
|
+
${({$open:e})=>e&&r`
|
|
37
|
+
transform: rotate(-180deg);
|
|
38
|
+
`}
|
|
39
|
+
|
|
40
|
+
`,n=e.div`
|
|
41
|
+
|
|
42
|
+
`,s=e.div`
|
|
43
|
+
|
|
44
|
+
margin: 0;
|
|
45
|
+
margin-right: 0;
|
|
46
|
+
float: left;
|
|
47
|
+
height: 100%;
|
|
48
|
+
position: relative;
|
|
49
|
+
|
|
50
|
+
display: flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
cursor: pointer;
|
|
53
|
+
|
|
54
|
+
&::before {
|
|
55
|
+
padding: 0.25rem;
|
|
56
|
+
border-radius: 3.125rem;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
`;e(s)`
|
|
60
|
+
|
|
61
|
+
`,e(s)`
|
|
62
|
+
|
|
63
|
+
`,e(s)`
|
|
64
|
+
color: ${({theme:e})=>e.colorText};
|
|
65
|
+
&::before { background-color: ${({theme:e})=>e.colorError}; }
|
|
66
|
+
svg circle { fill: ${({theme:e})=>e.colorError}; }
|
|
67
|
+
svg path { fill: ${({theme:e})=>e.colorErrorText}; }
|
|
68
|
+
`;const c=e(o)`
|
|
69
|
+
|
|
70
|
+
fill: ${({theme:e})=>e.colorIconMuted};
|
|
71
|
+
|
|
72
|
+
`,d=e.div`
|
|
73
|
+
|
|
74
|
+
display: flex;
|
|
75
|
+
align-items: center;
|
|
76
|
+
height: 100%;
|
|
77
|
+
margin-right: 0.4375rem;
|
|
78
|
+
|
|
79
|
+
`,m=e.div`
|
|
80
|
+
|
|
81
|
+
display: grid;
|
|
82
|
+
grid-column-gap: 0.75rem;
|
|
83
|
+
grid-auto-flow: column;
|
|
84
|
+
align-items: center;
|
|
85
|
+
justify-self: flex-end;
|
|
86
|
+
position: relative;
|
|
87
|
+
|
|
88
|
+
`;export{l as Icon,i as LabelWrapper,c as LockIconWrapper,n as PreIcon,d as Prefix,m as Suffix,t as Wrapper};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsxs as i,jsx as t}from"react/jsx-runtime";import{useEffect as n}from"react";import{Wrapper as r,ChildrenWrapper as e,SpinWrapper as d,Spinner as s}from"./styled.js";const l=({updating:l=!0,opacity:a=!0,size:p=32,className:c="",children:u=null})=>{n(()=>{},[]);const o=()=>{let i="itd-spin-spinner";return l&&(i+=" itd-spin-updating"),c&&(i+=" "+c),i},m=()=>t(d,{$size:String(p),className:o(),children:i(s,{children:[t("div",{}),t("div",{}),t("div",{}),t("div",{})]})});return u?i(r,{className:(()=>{let i="itd-spin";return l&&(i+=" itd-spin-updating"),c&&(i+=" "+c),i})(),children:[t(e,{$updating:l,$opacity:a,children:u}),l?m():null]}):l?m():null};export{l as default};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import i,{keyframes as t,css as n}from"styled-components";const o=t`
|
|
2
|
+
0% {
|
|
3
|
+
transform: rotate(0deg);
|
|
4
|
+
}
|
|
5
|
+
100% {
|
|
6
|
+
transform: rotate(360deg);
|
|
7
|
+
}
|
|
8
|
+
`,e=i.div`
|
|
9
|
+
position: relative;
|
|
10
|
+
`,a=i.div`
|
|
11
|
+
|
|
12
|
+
width : ${i=>`${i.$size}px`};
|
|
13
|
+
height : ${i=>`${i.$size}px`};
|
|
14
|
+
|
|
15
|
+
position:absolute;
|
|
16
|
+
|
|
17
|
+
left: 50%;
|
|
18
|
+
top: 50%;
|
|
19
|
+
transform: translate(-50%, -50%);
|
|
20
|
+
|
|
21
|
+
display: flex;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
align-items: center;
|
|
24
|
+
|
|
25
|
+
`,r=i.div`
|
|
26
|
+
|
|
27
|
+
display: block;
|
|
28
|
+
position: relative;
|
|
29
|
+
width: 100%;
|
|
30
|
+
height: 100%;
|
|
31
|
+
|
|
32
|
+
div {
|
|
33
|
+
|
|
34
|
+
box-sizing: border-box;
|
|
35
|
+
display: block;
|
|
36
|
+
position: absolute;
|
|
37
|
+
width: 100%;
|
|
38
|
+
height: 100%;
|
|
39
|
+
border: 3px solid #000000;
|
|
40
|
+
border-radius: 50%;
|
|
41
|
+
animation: ${o} 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
|
|
42
|
+
border-color: #000000 transparent transparent transparent;
|
|
43
|
+
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
div:nth-child(1) {
|
|
47
|
+
animation-delay: -0.45s;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
div:nth-child(2) {
|
|
51
|
+
animation-delay: -0.3s;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
div:nth-child(3) {
|
|
55
|
+
animation-delay: -0.15s;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
`,s=i.div`
|
|
59
|
+
|
|
60
|
+
transition-property: opacity;
|
|
61
|
+
transition-duration: 500ms;
|
|
62
|
+
transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
|
|
63
|
+
|
|
64
|
+
pointer-events : ${i=>""+(i.$updating?"none":"auto")};
|
|
65
|
+
|
|
66
|
+
${i=>!0===i.$opacity?i.$updating?n`
|
|
67
|
+
opacity : 0.5;
|
|
68
|
+
`:n`
|
|
69
|
+
opacity : 1;
|
|
70
|
+
`:n`
|
|
71
|
+
opacity : 1;
|
|
72
|
+
`}
|
|
73
|
+
|
|
74
|
+
`;export{s as ChildrenWrapper,a as SpinWrapper,r as Spinner,e as Wrapper};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{Wrapper as s}from"./styled.js";import r from"../utils/GetSizeSlugBySize.js";import{ComponentSizes as e}from"../enums/enum.js";import{useMemo as i}from"react";function a({variant:a="gray-1",size:o=e.DEFAULT,stretch:u=!1,bold:l=!0,children:m="",className:n=""}){const d=i(()=>{let t="itd-status";return t+=" itd-status-"+a,t+=" itd-status-"+r(o),u&&(t+=" itd-status-stretch"),l&&(t+=" itd-status-bold"),""!==n&&null!==n&&(t+=" "+n),t},[a,o,u,l,n]);return t(s,{$status:a,$bold:l,className:d,children:t("span",{children:m})})}export{a as default};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import t,{css as F}from"styled-components";const e={"gray-1":{background:"#F9F9F9",text:"#0714374D"},"gray-2":{background:"#F9F9F9",text:"#585455"},"gray-3":{background:"#F5F5F5",text:"#071437"},black:{background:"#071437",text:"#FFFFFF"},green:{background:"#DFFFEA",text:"#17C653"},purple:{background:"#F5F1FF",text:"#7239EA"},yellow:{background:"#FFF8DD",text:"#F6C000"},red:{background:"#FFEEF3",text:"#F8285A"},brown:{background:"#FFF3F1",text:"#CB6F5B"},lavender:{background:"#FCF3FF",text:"#AB60C0"},blue:{background:"#F1F4FF",text:"#3256D9"},pink:{background:"#FFEEF6",text:"#E25698"},violet:{background:"#F5F1FF",text:"#7239EA"},"filled-brown":{background:"#F5651A",text:"#FFF9F6"},"filled-violet":{background:"#7239EA",text:"#F5F1FF"},"filled-red":{background:"#F8285A",text:"#F7EFF1"},"filled-yellow":{background:"#F6C000",text:"#FBFAF4"},"filled-pink":{background:"#CC79E3",text:"#F7F3F9"},"filled-blue":{background:"#1B84FF",text:"#EDF0F4"},"filled-green":{background:"#17C653",text:"#F5FAF6"},"filled-purple":{background:"#C417C6",text:"#F6F0F6"},"filled-black":{background:"#071437",text:"#F1F3F7"},"filled-lavender":{background:"#AB60C0",text:"#FCF3FF"},"filled-gray-1":{background:"#585455",text:"#F9F9F9"},"filled-gray-2":{background:"#585455",text:"#F9F9F9"},"filled-gray-3":{background:"#071437",text:"#F5F5F5"},orange:{background:"#FFF4E6",text:"#FF8C00"},"filled-orange":{background:"#FF8C00",text:"#FFF4E6"},teal:{background:"#E6FFFA",text:"#2DD4BF"},"filled-teal":{background:"#2DD4BF",text:"#E6FFFA"},indigo:{background:"#EEF2FF",text:"#6366F1"},"filled-indigo":{background:"#6366F1",text:"#EEF2FF"},lime:{background:"#F7FEE7",text:"#65A30D"},"filled-lime":{background:"#65A30D",text:"#F7FEE7"}},d=t.div`
|
|
2
|
+
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
position: relative;
|
|
7
|
+
width: max-content;
|
|
8
|
+
border-radius: 4px;
|
|
9
|
+
|
|
10
|
+
>span {
|
|
11
|
+
text-align: center;
|
|
12
|
+
user-select: none;
|
|
13
|
+
white-space: nowrap;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&.itd-status-stretch {
|
|
17
|
+
width: 100%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&.itd-status-xs {
|
|
21
|
+
padding: 4px 8px;
|
|
22
|
+
span {
|
|
23
|
+
font-size: 9px;
|
|
24
|
+
font-weight: ${({$bold:t})=>t?600:500};
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&.itd-status-sm {
|
|
29
|
+
padding: 4px 8px;
|
|
30
|
+
span {
|
|
31
|
+
font-size: 10px;
|
|
32
|
+
font-weight: ${({$bold:t})=>t?600:500};
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&.itd-status-md {
|
|
37
|
+
padding: 4px 8px;
|
|
38
|
+
span {
|
|
39
|
+
font-size: 11px;
|
|
40
|
+
font-weight: ${({$bold:t})=>t?600:500};
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&.itd-status-df {
|
|
45
|
+
padding: 6px 10px;
|
|
46
|
+
span {
|
|
47
|
+
font-size: 12px;
|
|
48
|
+
font-weight: ${({$bold:t})=>t?600:500};
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&.itd-status-lg {
|
|
53
|
+
padding: 8px 12px;
|
|
54
|
+
span {
|
|
55
|
+
font-size: 12.4px;
|
|
56
|
+
font-weight: ${({$bold:t})=>t?600:500};
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&.itd-status-xlg {
|
|
61
|
+
padding: 10px 14px;
|
|
62
|
+
span {
|
|
63
|
+
font-size: 12.6px;
|
|
64
|
+
font-weight: ${({$bold:t})=>t?600:500};
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
${({$status:t})=>{return F`
|
|
69
|
+
background: ${e[d=t].background};
|
|
70
|
+
span {
|
|
71
|
+
color: ${e[d].text};
|
|
72
|
+
}
|
|
73
|
+
`;var d}}
|
|
74
|
+
|
|
75
|
+
`;export{d as Wrapper};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsxs as e,jsx as t}from"react/jsx-runtime";import{forwardRef as i,useState as r,useEffect as o,useCallback as d,useMemo as a,useImperativeHandle as s}from"react";import{Wrapper as n,Body as l,Thumb as c}from"./styled.js";import{ComponentVariants as h}from"../enums/enum.js";import m from"../node_modules/uuid/dist/esm-browser/v4.js";import p from"../spin/index.js";import{ErrorTooltip as u}from"../utils/CommonStyledComponents.js";const f=i(({id:i="",children:f="",checked:w,variant:b=h.DEFAULT,defaultChecked:v=!1,loading:g=!1,disabled:y=!1,onChange:N=null,onUpdate:k=null},j)=>{const[x,_]=r(v||!1),[C,$]=r(""),[D,E]=r(i||`itd-switch-${m()}`);o(()=>{i&&i!==D&&E(i)},[i]);const F=d((e,t=!0,i=!0)=>{k&&("development"===process.env.NODE_ENV?requestAnimationFrame(()=>k(e,t,i)):k(e,t,i))},[k]);o(()=>{void 0!==w&&w!==x&&(_(w),F(w))},[w,F]);const S=a(()=>({reset(e=!0,t=!0){const i=v||!1;_(i),F(i,e,t)},setValue(e,t=!0,i=!0){_(e),F(e,t,i)},getValue:()=>x,setError(e=""){$(e)},forceUpdate(){F(x)},clear(){_(!1)}}),[x,v,F]);s(j,()=>S,[S]);const U=d(e=>{if(g||y)return e.preventDefault(),void e.stopPropagation();const t=!x;_(t),F(t),N&&N(t)},[g,y,x,F,N]),V=a(()=>{let e="itd-switch";return e+=" itd-switch-"+b,x&&(e+=" itd-switch-checked"),y&&(e+=" itd-switch-disabled"),C&&(e+=" itd-switch-error"),g&&(e+=" itd-switch-loading"),e},[x,y,g,b,C]);return e(n,{className:V,children:[t("button",{id:D,type:"button",role:"switch",value:x?"on":"off","aria-checked":x,"aria-invalid":""!==C?"true":void 0,"aria-describedby":""!==C?`${D}__error`:void 0,"data-state":x?"checked":"unchecked","data-disabled":y?"true":"false","data-loading":g&&!y?"true":"false",disabled:y,onClick:U,children:t(l,{className:"itd-switch-body","data-disabled":y,children:t(c,{className:"itd-switch-thumb",children:t(p,{size:12,updating:g&&!y})})})}),f&&t("label",{htmlFor:D,children:f}),(()=>{if(""===C||y)return;return t("p",{id:`${D}__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:C})})(),(()=>{if(""!==C&&!y)return t(u,{className:"itd-switch-error-tooltip itd-error-tooltip",$position:"top-left",$offsetX:3,"aria-hidden":"true",children:C})})()]})});f.displayName="ITD-Switch";export{f as default};
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import{ThemeAppearances as e}from"../enums/enum.js";import r from"styled-components";import{withOpacity as t}from"../helpers/theme/Color.js";import{TYPOGRAPHY_TOKENS as o,SPACING_TOKENS as i}from"../helpers/theme/tokens.js";export{ErrorTooltip}from"../utils/CommonStyledComponents.js";const n=r.span`
|
|
2
|
+
|
|
3
|
+
content: '';
|
|
4
|
+
position: absolute;
|
|
5
|
+
width: 14px;
|
|
6
|
+
height: 14px;
|
|
7
|
+
border-radius: 50px;
|
|
8
|
+
transition: 0.3s;
|
|
9
|
+
background: ${({theme:r})=>r.appearance===e.LIGHT?r.background:r.foreground};
|
|
10
|
+
|
|
11
|
+
.itd-spin-spinner {
|
|
12
|
+
|
|
13
|
+
width: 12px;
|
|
14
|
+
height: 12px;
|
|
15
|
+
|
|
16
|
+
>div>div {
|
|
17
|
+
border-width: 2px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
`,a=r.div`
|
|
23
|
+
|
|
24
|
+
text-indent: -9999px;
|
|
25
|
+
height: 20px;
|
|
26
|
+
width: 34px;
|
|
27
|
+
//background: ${({theme:e})=>e.primary};
|
|
28
|
+
display: block;
|
|
29
|
+
position: relative;
|
|
30
|
+
//box-shadow: inset 0px 0px 20px rgba(0,0,0,0.4);
|
|
31
|
+
|
|
32
|
+
`,d=r.div`
|
|
33
|
+
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: row;
|
|
36
|
+
align-items: center;
|
|
37
|
+
position: relative;
|
|
38
|
+
|
|
39
|
+
button {
|
|
40
|
+
|
|
41
|
+
border : 1px solid transparent;
|
|
42
|
+
background-color : transparent;
|
|
43
|
+
outline-offset : ${({theme:e})=>e.ringOffset};
|
|
44
|
+
outline : 0 solid transparent;
|
|
45
|
+
|
|
46
|
+
transition:
|
|
47
|
+
border-color ${({theme:e})=>e.transitionDuration} ${({theme:e})=>e.transitionTimingFunction},
|
|
48
|
+
outline 100ms linear;
|
|
49
|
+
|
|
50
|
+
cursor : pointer;
|
|
51
|
+
border-radius : 28px;
|
|
52
|
+
height : 20px;
|
|
53
|
+
width : 34px;
|
|
54
|
+
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* Variant: default → borderlı; filled → bordersız */
|
|
58
|
+
&.itd-switch-default {
|
|
59
|
+
|
|
60
|
+
${n} {
|
|
61
|
+
top: 2px;
|
|
62
|
+
left: 2px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
button[data-state="checked"] {
|
|
66
|
+
|
|
67
|
+
${n} {
|
|
68
|
+
|
|
69
|
+
left: calc(100% - 4px);
|
|
70
|
+
transform: translateX(-100%);
|
|
71
|
+
background: ${({theme:e})=>e.primary};
|
|
72
|
+
|
|
73
|
+
.itd-spin-spinner >div>div {
|
|
74
|
+
border-color: ${({theme:e})=>e.primaryForeground} transparent transparent;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
border: 1px solid ${({theme:e})=>e.primary};
|
|
80
|
+
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
button {
|
|
84
|
+
box-shadow : ${({theme:e})=>e.boxShadow};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
button[data-state="unchecked"] {
|
|
88
|
+
|
|
89
|
+
${n} {
|
|
90
|
+
background: ${({theme:e})=>t(e.colorText,.5)};
|
|
91
|
+
|
|
92
|
+
.itd-spin-spinner >div>div {
|
|
93
|
+
border-color: ${({theme:e})=>e.background} transparent transparent;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&:hover {
|
|
98
|
+
border-color: ${({theme:e})=>e.colorBorderHover};
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&:focus-visible {
|
|
102
|
+
border-color: ${({theme:r})=>r.primaryScale[r.appearance===e.LIGHT?400:900]};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
border: 1px solid ${({theme:e})=>e.colorBorder};
|
|
106
|
+
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&.itd-switch-filled {
|
|
113
|
+
|
|
114
|
+
${n} {
|
|
115
|
+
top: 2px;
|
|
116
|
+
left: 2px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
button[data-state="checked"] {
|
|
120
|
+
|
|
121
|
+
${n} {
|
|
122
|
+
|
|
123
|
+
left: calc(100% - 4px);
|
|
124
|
+
transform: translateX(-100%);
|
|
125
|
+
background: ${({theme:r})=>r.appearance===e.LIGHT?r.background:r.primaryForeground};
|
|
126
|
+
|
|
127
|
+
.itd-spin-spinner >div>div {
|
|
128
|
+
border-color: ${({theme:e})=>e.primary} transparent transparent;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
background: ${({theme:e})=>e.primary};
|
|
134
|
+
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
button[data-state="unchecked"] {
|
|
138
|
+
|
|
139
|
+
${n} {
|
|
140
|
+
|
|
141
|
+
.itd-spin-spinner >div>div {
|
|
142
|
+
border-color: ${({theme:e})=>e.secondary} transparent transparent;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
background: ${({theme:e})=>e.colorBackgroundAltHover};
|
|
148
|
+
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
&.itd-switch-custom {
|
|
154
|
+
button[data-state="checked"] {
|
|
155
|
+
|
|
156
|
+
${n} {
|
|
157
|
+
left: calc(100% - 3px);
|
|
158
|
+
transform: translateX(-100%);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
&&.itd-switch-error:not(.itd-switch-disabled) button {
|
|
164
|
+
border: 1px solid ${({theme:e})=>e.colorErrorBorder};
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/* Focus görünürlüğü: checked/unchecked fark etmeksizin göster */
|
|
168
|
+
button:focus-visible {
|
|
169
|
+
outline: ${({theme:e})=>e.ringWidth} solid ${({theme:r})=>t(r.primaryScale[r.appearance===e.LIGHT?400:900],.5)};
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/* Error durumunda outline kırmızı */
|
|
173
|
+
&.itd-switch-error button:focus-visible {
|
|
174
|
+
outline: ${({theme:e})=>e.ringWidth} solid ${({theme:e})=>t(e.colorErrorBorder,.5)};
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
// Disabled durumları
|
|
178
|
+
&.itd-switch-disabled {
|
|
179
|
+
|
|
180
|
+
button[data-state="checked"], button[data-state="unchecked"] {
|
|
181
|
+
background: ${({theme:e})=>e.colorDisabledBg};
|
|
182
|
+
border: 1px solid ${({theme:e})=>e.colorDisabledBorder};
|
|
183
|
+
${n} {
|
|
184
|
+
background: ${({theme:e})=>e.colorDisabledBorder};
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
button, label {
|
|
189
|
+
cursor: not-allowed;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
label {
|
|
193
|
+
color: ${({theme:e})=>e.colorDisabledText};
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
label {
|
|
199
|
+
color: ${({theme:e})=>e.colorText};
|
|
200
|
+
font-size: ${o.fontSize.df};
|
|
201
|
+
font-weight: ${o.fontWeight.normal};
|
|
202
|
+
margin-left: ${i.gap.sm};
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
&.itd-switch-loading .itd-switch-body {
|
|
206
|
+
cursor: progress;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
`;export{a as Body,n as Thumb,d as Wrapper};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as t,jsxs as e}from"react/jsx-runtime";import i,{forwardRef as d,useState as n,useImperativeHandle as r,useMemo as l}from"react";import{Wrapper as a,RowTitle as h,EmptyBody as o,Cell as s}from"./styled.js";import m from"../utils/GetSizeSlugBySize.js";import{useTranslation as c}from"react-i18next";import{ComponentSizes as p}from"../enums/enum.js";import u from"../icons/NoData.js";import b from"../button/index.js";const g=d(({columns:d,data:g,cellHeight:x,className:y="",size:f=p.DEFAULT,headless:w=!1,bordered:W=!1,dashed:S=!1,noGaps:v=!1,hideGroupButtons:k=!1,getTRProps:j},_)=>{const{t:z}=c("itd"),[G,I]=n(new Set),N=t=>{I(e=>{const i=new Set(e);return i.has(t)?i.delete(t):i.add(t),i})};r(_,()=>({toggleRow:N,expandedRows:G}));const $=(t,e)=>{let i={};return"string"==typeof t.width?i.width=t.width:"number"==typeof t.width?i.minWidth=t.width+"px":i.width="auto",void 0!==t.maxWidth&&("string"==typeof t.maxWidth?i.maxWidth=t.maxWidth:"number"==typeof t.maxWidth&&(i.maxWidth=t.maxWidth+"px")),void 0!==t.minWidth&&("string"==typeof t.minWidth?i.minWidth=t.minWidth:"number"==typeof t.minWidth&&(i.minWidth=t.minWidth+"px")),"td"===e&&("string"==typeof x?i.height=x:"number"==typeof x?i.minHeight=x+"px":i.height="auto"),i},D=()=>{let t=!1;return g?.map(e=>{e.hasOwnProperty("children")&&(t=!0)}),!k&&t},L=(t,e,i)=>j?j(t,e,i):{},R=(t,e,i)=>{let d={"data-index":e+"_"+t,"data-level":e};return e>0&&(0===t&&(d["data-first"]="true"),t===i-1&&(d["data-last"]="true")),d},A=(n,r=0)=>n.map((l,a)=>e(i.Fragment,{children:[e("tr",{...R(a,r,n?.length),...L(l,a,r),children:[D()?l.children?t("td",{style:{width:"40px"},children:t("div",{className:"expand-button",children:t(b,{variant:"filled",size:p.X_SMALL,onClick:()=>N(l.key),circle:!0,children:t("span",{children:G.has(l.key)?"-":"+"})})})}):t("td",{}):null,d.map(e=>t("td",{style:$(e,"td"),children:t(s,{$overflow:e.overflow,title:String(l[e.dataIndex]),children:e.render?e.render(l[e.dataIndex],l,r):e.dataIndex?String(l[e.dataIndex]):null})},String(e.key)+"_"+a+"_"+r))]}),l.children&&G.has(l.key)&&A(l.children,r+1)]},String(r+"_"+a+"_"+l.key))),B=l(t=>{let e="itd-table";return e+=" itd-table-"+m(f),w&&(e+=" itd-table-headless"),W&&(e+=" itd-table-bordered"),v&&(e+=" itd-table-no-gaps"),g||(e+=" itd-table-empty"),0===g?.length&&(e+=" itd-table-no-data"),e+=S?" itd-table-dashed":" itd-table-solid",e+=t?" itd-table-inner-table":" itd-table-main-table",""!==y&&(e+=" "+y),e},[f,w,W,v,g,S,y]);return t(a,{$size:f,$noGaps:v,children:e("table",{className:B,children:[(()=>{if(!w)return t("thead",{children:e("tr",{children:[D()&&t("th",{style:{maxWidth:"40px"}}),d.map(e=>t("th",{style:$(e,"th"),children:t(h,{$overflow:e.overflow,children:e.title})},String(e.key)))]})})})(),g?0===g.length?t("tbody",{children:t("tr",{children:t("td",{colSpan:d.length,children:t(o,{children:e("div",{children:[t(u,{height:30}),t("span",{children:z("table.noData")})]})})})})}):t("tbody",{children:A(g)}):t("tbody",{children:t("tr",{children:t("td",{colSpan:d.length,children:t(o,{})})})})]})})});export{g as default};
|