@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,47 @@
|
|
|
1
|
+
import{css as o}from"styled-components";const r=()=>o`
|
|
2
|
+
|
|
3
|
+
&.itd-button-ghost {
|
|
4
|
+
|
|
5
|
+
background-color: transparent;
|
|
6
|
+
border: 1px solid transparent;
|
|
7
|
+
|
|
8
|
+
span, div.icon svg {
|
|
9
|
+
color: #252f4a;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:hover, &.active {
|
|
13
|
+
|
|
14
|
+
background-color: #f9f9f9;
|
|
15
|
+
|
|
16
|
+
span, div.icon svg {
|
|
17
|
+
color: #1b84ff;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&.itd-button-selected {
|
|
23
|
+
|
|
24
|
+
border: 2px solid #3598FE;
|
|
25
|
+
|
|
26
|
+
span {
|
|
27
|
+
color: #3598FE;
|
|
28
|
+
font-weight: 600;
|
|
29
|
+
margin: -1px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&[disabled] {
|
|
35
|
+
span, div.icon svg {
|
|
36
|
+
color: #0000004D;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.itd-spin-spinner {
|
|
41
|
+
>div>div {
|
|
42
|
+
border-color: #071437 transparent transparent;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
}
|
|
47
|
+
`;export{r as getGhostButton};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import{css as t}from"styled-components";const o=o=>t`
|
|
2
|
+
&.itd-icon {
|
|
3
|
+
|
|
4
|
+
padding: 0 12px 0 12px;
|
|
5
|
+
|
|
6
|
+
/* X-SMALL */
|
|
7
|
+
&.itd-button-xs {
|
|
8
|
+
${o} { font-size: 10px; }
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/* SMALL */
|
|
12
|
+
&.itd-button-sm {
|
|
13
|
+
${o} { font-size: 16px; }
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* MEDIUM */
|
|
17
|
+
&.itd-button-md {
|
|
18
|
+
${o} { font-size: 18px; }
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* LARGE */
|
|
22
|
+
&.itd-button-lg {
|
|
23
|
+
${o} { font-size: 26px; }
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* DEFAULT */
|
|
27
|
+
&:not(&.itd-button-xs):not(&.itd-button-sm):not(&.itd-button-md):not(&.itd-button-lg):not(&.itd-button-xlg)
|
|
28
|
+
{
|
|
29
|
+
${o} { font-size: 20px; }
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
}
|
|
33
|
+
`;export{o as getIcon};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import{css as o}from"styled-components";const n=()=>o`
|
|
2
|
+
|
|
3
|
+
&.itd-button-link {
|
|
4
|
+
|
|
5
|
+
background-color: transparent;
|
|
6
|
+
border: 1px solid transparent;
|
|
7
|
+
|
|
8
|
+
span, div.icon svg {
|
|
9
|
+
color: #071437;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:hover, &.active {
|
|
13
|
+
|
|
14
|
+
span, div.icon svg {
|
|
15
|
+
color: #1b84ff;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&.itd-button-selected {
|
|
21
|
+
|
|
22
|
+
border: 2px solid #3598FE;
|
|
23
|
+
|
|
24
|
+
span {
|
|
25
|
+
color: #3598FE;
|
|
26
|
+
font-weight: 600;
|
|
27
|
+
margin: -1px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&[disabled] {
|
|
33
|
+
span, div.icon svg {
|
|
34
|
+
color: #071437;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.itd-spin-spinner {
|
|
39
|
+
>div>div {
|
|
40
|
+
border-color: #071437 transparent transparent;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
}
|
|
45
|
+
`;export{n as getLinkButton};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import{ThemeAppearances as o}from"../enums/enum.js";import{css as e}from"styled-components";import{withOpacity as r}from"../helpers/theme/Color.js";const t=()=>e`
|
|
2
|
+
|
|
3
|
+
&.itd-button-outline {
|
|
4
|
+
|
|
5
|
+
box-shadow : ${({theme:o})=>o.boxShadow};
|
|
6
|
+
background-color : ${({theme:e})=>e.appearance===o.LIGHT?e.background:r(e.input,.03)};
|
|
7
|
+
border : 1px solid ${({theme:o})=>o.colorBorder};
|
|
8
|
+
|
|
9
|
+
span, div.icon svg {
|
|
10
|
+
color: ${({theme:o})=>o.colorText};
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&:hover, &.active {
|
|
14
|
+
|
|
15
|
+
background-color: ${({theme:o})=>o.secondary};
|
|
16
|
+
border-color: ${({theme:o})=>o.colorBorder};
|
|
17
|
+
|
|
18
|
+
span, div.icon svg {
|
|
19
|
+
color: ${({theme:o})=>o.colorText};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:not([disabled]).itd-button-selected {
|
|
25
|
+
|
|
26
|
+
span, div.icon svg {
|
|
27
|
+
color: ${({theme:o})=>o.colorText};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&[disabled] {
|
|
33
|
+
|
|
34
|
+
border: 1px solid ${({theme:o})=>o.colorBorder};
|
|
35
|
+
|
|
36
|
+
span, div.icon svg {
|
|
37
|
+
color: ${({theme:o})=>o.colorText};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.itd-spin-spinner {
|
|
43
|
+
>div>div {
|
|
44
|
+
border-color: ${({theme:o})=>o.colorText} transparent transparent;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
}
|
|
49
|
+
`;export{t as getOutlineButton};
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import{css as i}from"styled-components";import{BUTTON_SIZE_MAP as n}from"../helpers/theme/tokens.js";const e=()=>i`
|
|
2
|
+
/* X-SMALL */
|
|
3
|
+
&.itd-button-xs {
|
|
4
|
+
|
|
5
|
+
min-width : ${n.xs.minWidth};
|
|
6
|
+
min-height : ${n.xs.minHeight};
|
|
7
|
+
padding : ${n.xs.padding};
|
|
8
|
+
|
|
9
|
+
.itd-spin-spinner {
|
|
10
|
+
>div {
|
|
11
|
+
width : ${n.xs.spinnerSize};
|
|
12
|
+
height : ${n.xs.spinnerSize};
|
|
13
|
+
}
|
|
14
|
+
>div>div {
|
|
15
|
+
border-color : ${({theme:i})=>i.colorBorder} transparent transparent;
|
|
16
|
+
border-width : ${n.xs.spinnerBorder};
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
span {
|
|
21
|
+
font-size : ${n.xs.fontSize};
|
|
22
|
+
line-height : ${n.xs.lineHeight};
|
|
23
|
+
font-weight : ${n.xs.fontWeight};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.icon svg {
|
|
27
|
+
width : ${n.xs.iconSize.width};
|
|
28
|
+
height : ${n.xs.iconSize.height};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* SMALL */
|
|
34
|
+
&.itd-button-sm {
|
|
35
|
+
|
|
36
|
+
min-width : ${n.sm.minWidth};
|
|
37
|
+
min-height : ${n.sm.minHeight};
|
|
38
|
+
padding : ${n.sm.padding};
|
|
39
|
+
|
|
40
|
+
.itd-spin-spinner {
|
|
41
|
+
>div {
|
|
42
|
+
width : ${n.sm.spinnerSize};
|
|
43
|
+
height : ${n.sm.spinnerSize};
|
|
44
|
+
}
|
|
45
|
+
>div>div {
|
|
46
|
+
border-color : ${({theme:i})=>i.colorBorder} transparent transparent;
|
|
47
|
+
border-width : ${n.sm.spinnerBorder};
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
span {
|
|
52
|
+
font-size : ${n.sm.fontSize};
|
|
53
|
+
line-height : ${n.sm.lineHeight};
|
|
54
|
+
font-weight : ${n.sm.fontWeight};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.icon svg {
|
|
58
|
+
width : ${n.sm.iconSize.width};
|
|
59
|
+
height : ${n.sm.iconSize.height};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* MEDIUM */
|
|
65
|
+
&.itd-button-md {
|
|
66
|
+
|
|
67
|
+
min-width : ${n.md.minWidth};
|
|
68
|
+
min-height : ${n.md.minHeight};
|
|
69
|
+
padding : ${n.md.padding};
|
|
70
|
+
|
|
71
|
+
.itd-spin-spinner {
|
|
72
|
+
>div {
|
|
73
|
+
width : ${n.md.spinnerSize};
|
|
74
|
+
height : ${n.md.spinnerSize};
|
|
75
|
+
}
|
|
76
|
+
>div>div {
|
|
77
|
+
border-color : ${({theme:i})=>i.colorBorder} transparent transparent;
|
|
78
|
+
border-width : ${n.md.spinnerBorder};
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
span {
|
|
83
|
+
font-size : ${n.md.fontSize};
|
|
84
|
+
line-height : ${n.md.lineHeight};
|
|
85
|
+
font-weight : ${n.md.fontWeight};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.icon svg {
|
|
89
|
+
width : ${n.md.iconSize.width};
|
|
90
|
+
height : ${n.md.iconSize.height};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* DEFAULT */
|
|
96
|
+
&.itd-button-df {
|
|
97
|
+
|
|
98
|
+
min-width : ${n.df.minWidth};
|
|
99
|
+
min-height : ${n.df.minHeight};
|
|
100
|
+
padding : ${n.df.padding};
|
|
101
|
+
|
|
102
|
+
.itd-spin-spinner {
|
|
103
|
+
>div {
|
|
104
|
+
width : ${n.df.spinnerSize};
|
|
105
|
+
height : ${n.df.spinnerSize};
|
|
106
|
+
}
|
|
107
|
+
>div>div {
|
|
108
|
+
border-color : ${({theme:i})=>i.colorBorder} transparent transparent;
|
|
109
|
+
border-width : ${n.df.spinnerBorder};
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
span {
|
|
114
|
+
font-size : ${n.df.fontSize};
|
|
115
|
+
line-height : ${n.df.lineHeight};
|
|
116
|
+
font-weight : ${n.df.fontWeight};
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.icon svg {
|
|
120
|
+
width : ${n.df.iconSize.width};
|
|
121
|
+
height : ${n.df.iconSize.height};
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/* LARGE */
|
|
127
|
+
&.itd-button-lg {
|
|
128
|
+
|
|
129
|
+
min-width : ${n.lg.minWidth};
|
|
130
|
+
min-height : ${n.lg.minHeight};
|
|
131
|
+
padding : ${n.lg.padding};
|
|
132
|
+
|
|
133
|
+
.itd-spin-spinner {
|
|
134
|
+
>div {
|
|
135
|
+
width : ${n.lg.spinnerSize};
|
|
136
|
+
height : ${n.lg.spinnerSize};
|
|
137
|
+
}
|
|
138
|
+
>div>div {
|
|
139
|
+
border-color : ${({theme:i})=>i.colorBorder} transparent transparent;
|
|
140
|
+
border-width : ${n.lg.spinnerBorder};
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
span {
|
|
145
|
+
font-size : ${n.lg.fontSize};
|
|
146
|
+
line-height : ${n.lg.lineHeight};
|
|
147
|
+
font-weight : ${n.lg.fontWeight};
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.icon svg {
|
|
151
|
+
width : ${n.lg.iconSize.width};
|
|
152
|
+
height : ${n.lg.iconSize.height};
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/* X-LARGE */
|
|
158
|
+
&.itd-button-xlg {
|
|
159
|
+
|
|
160
|
+
min-width : ${n.xlg.minWidth};
|
|
161
|
+
min-height : ${n.xlg.minHeight};
|
|
162
|
+
padding : ${n.xlg.padding};
|
|
163
|
+
|
|
164
|
+
.itd-spin-spinner {
|
|
165
|
+
>div {
|
|
166
|
+
width : ${n.xlg.spinnerSize};
|
|
167
|
+
height : ${n.xlg.spinnerSize};
|
|
168
|
+
}
|
|
169
|
+
>div>div {
|
|
170
|
+
border-color : ${({theme:i})=>i.colorBorder} transparent transparent;
|
|
171
|
+
border-width : ${n.xlg.spinnerBorder};
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
span {
|
|
176
|
+
font-size : ${n.xlg.fontSize};
|
|
177
|
+
line-height : ${n.xlg.lineHeight};
|
|
178
|
+
font-weight : ${n.xlg.fontWeight};
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.icon svg {
|
|
182
|
+
width : ${n.xlg.iconSize.width};
|
|
183
|
+
height : ${n.xlg.iconSize.height};
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
}
|
|
187
|
+
`;export{e as getSize};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import{css as o}from"styled-components";const r=()=>o`
|
|
2
|
+
|
|
3
|
+
&.itd-button-solid {
|
|
4
|
+
|
|
5
|
+
background-color: ${({theme:o})=>o.colorBackgroundAltHover};
|
|
6
|
+
border: transparent;
|
|
7
|
+
|
|
8
|
+
span, div.icon svg {
|
|
9
|
+
color: ${({theme:o})=>o.secondaryForeground};
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:hover, &.active {
|
|
13
|
+
//background-color: #f1f1f4;
|
|
14
|
+
background-color: ${({theme:o})=>o.secondaryHover};
|
|
15
|
+
span, div.icon svg {
|
|
16
|
+
color: ${({theme:o})=>o.secondaryForegroundHover};
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&.itd-button-selected {
|
|
21
|
+
|
|
22
|
+
border: transparent;
|
|
23
|
+
|
|
24
|
+
span, div.icon svg {
|
|
25
|
+
color: ${({theme:o})=>o.secondaryForegroundHover};
|
|
26
|
+
font-weight: 600;
|
|
27
|
+
margin: -1px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&[disabled] {
|
|
33
|
+
|
|
34
|
+
background-color: ${({theme:o})=>o.secondary};
|
|
35
|
+
border: transparent;
|
|
36
|
+
|
|
37
|
+
span, div.icon svg {
|
|
38
|
+
color: ${({theme:o})=>o.secondaryForeground};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.itd-spin-spinner {
|
|
44
|
+
>div>div {
|
|
45
|
+
border-color: ${({theme:o})=>o.secondaryForeground} transparent transparent;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
}
|
|
50
|
+
`;export{r as getSolidButton};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as t,jsxs as e,Fragment as i}from"react/jsx-runtime";import n from"../spin/index.js";import{ClickButton as o,Link as s,A as l,Element as r,ImageWrapper as c,Icon as d,SVG as u,Hide as a}from"./styled.js";import{useRef as m,useState as f,useEffect as g,useMemo as p,isValidElement as b}from"react";import h from"../image/index.js";import{isValidURL as j}from"../helpers/url/ValidURL.js";import{NavLink as y}from"react-router-dom";import $ from"../utils/GetIconSizeBySize.js";import{ComponentSizes as N,ComponentXPositions as S}from"../enums/enum.js";import P from"../utils/GetSizeSlugBySize.js";import v from"../utils/InlineSVGCached.js";import z from"../node_modules/uuid/dist/esm-browser/v4.js";const k=({id:k="",disabled:G=!1,loading:I=!1,selected:x=!1,circle:C=!1,strecth:E=!1,justify:V="center",contentPosition:L=S.LEFT,type:B="button",variant:F="default",size:T=N.DEFAULT,state:U=null,icon:_=null,href:w="",target:A="_self",className:D="",children:H=null,onClick:R=null})=>{const q=m(null),[J,K]=f(k);g(()=>{""===k&&K("itd-button-"+z())},[]);const M=()=>I||!_?null:b(_)?t(r,{className:"icon itd-element",$contentPosition:L,$justify:V,$useIconPadding:null!==H&&""!==H,children:_}):"string"==typeof _&&j(_)?t(c,{className:"icon itd-image",src:_,as:h,height:$(T),brokenHeight:$(T),$contentPosition:L,$justify:V}):"string"==typeof _?t(d,{className:"icon itd-icon "+_,$contentPosition:L,$justify:V,$useIconPadding:null!==H&&""!==H}):_ instanceof SVGElement?t(u,{className:"icon itd-svg",$singleIcon:!H,$contentPosition:L,$justify:V,children:t(v,{src:_.toString()})}):null,O=()=>e(i,{children:["left"===L?M():null,I?t(n,{}):null,H?t(a,{$loading:I?"true":"false",children:H}):null,"right"===L?M():null]}),Q=()=>b(_)?"element":"string"==typeof _&&j(_)?"image":"string"==typeof _?"icon":_ instanceof SVGElement?"svg":"",W=()=>{let t={id:J,$loading:"false",$justify:V,$size:P(T),disabled:!1};return I&&(t.$loading="true"),G&&(t.disabled=!0),t},X=p(()=>{let t="itd-button";return t+=" itd-button-"+F,t+=" itd-button-"+P(T),t+=" itd-button-"+B,null===H&&(t+=" itd-button-has-icon"),"statable"===F&&U&&(t+=" itd-button-"+U),"custom"===F&&U&&(t+=" itd-button-"+U),x&&(t+=" itd-button-selected"),E&&(t+=" itd-button-stretch"),C&&(t+=" itd-button-circle"),I&&(t+=" itd-button-loading"),"element"===Q()&&(t+=" itd-element"),"svg"===Q()&&(t+=" itd-svg"),"icon"===Q()&&(t+=" itd-icon"),"image"===Q()&&(t+=" itd-image"),""!==D&&(t+=" "+D),t},[F,T,B,H,x,E,C,I,Q(),D]),Y=t=>{I||R&&R(t)},Z=e=>t(o,{className:X,type:e,...W(),children:O()});return"submit"===B?Z("submit"):"reset"===B?Z("reset"):""!==w?t(s,{className:X,as:y,to:w,target:A,...W(),children:e(i,{children:[M(),t("span",{children:H})]})}):"link"===F?t(l,{className:X,onClick:Y,...W(),children:O()}):t(o,{className:X,onClick:Y,type:"button",ref:q,...W(),children:O()})};export{k as default};
|