@inntechcorp/it-design 3.1.3 → 3.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/alert/index.d.ts +1 -3
- package/dist/alert/styled.d.ts +7 -3
- package/dist/alink/styled.d.ts +1 -1
- package/dist/button/button.style.SVG.d.ts +4 -0
- package/dist/button/index.d.ts +1 -1
- package/dist/card/index.d.ts +1 -1
- package/dist/card/styles.d.ts +1 -2
- package/dist/checkbox/styled.d.ts +2 -3
- package/dist/cropper/index.d.ts +38 -0
- package/dist/datepicker/styled.d.ts +2 -2
- package/dist/enums/enum.d.ts +5 -16
- package/dist/form/context/FormContext.d.ts +0 -3
- package/dist/form/context/FormStore.d.ts +1 -4
- package/dist/form/item/Item.d.ts +1 -0
- package/dist/global.css +113 -333
- package/dist/helpers/index.d.ts +0 -4
- package/dist/index.cjs.js +5480 -0
- package/dist/index.d.mts +25 -65
- package/dist/index.d.ts +196 -731
- package/dist/index.esm.js +5480 -0
- package/dist/input/styled.d.ts +17 -15
- package/dist/locales/en/itd.json +14 -30
- package/dist/locales/itd.json +14 -30
- package/dist/locales/tr/itd.json +14 -30
- package/dist/radio/button/RadioButton.d.ts +1 -1
- package/dist/result/index.d.ts +1 -1
- package/dist/select/menu/Menu.d.ts +14 -0
- package/dist/select/menu/styled.d.ts +8 -0
- package/dist/select/option/Option.d.ts +3 -10
- package/dist/select/style.settings.d.ts +26 -83
- package/dist/select/styled.d.ts +2 -4
- package/dist/select/toggle/Toggle.d.ts +1 -1
- package/dist/select/toggle/label/floating/FloatingLabel.d.ts +12 -0
- package/dist/select/toggle/label/floating/styled.d.ts +8 -0
- package/dist/select/toggle/label/{Label.d.ts → single/SingleLabel.d.ts} +5 -5
- package/dist/select/toggle/styled.d.ts +4 -4
- package/dist/stories/Accordion.d.ts +1 -0
- package/dist/stories/Alert.stories.d.ts +1 -15
- package/dist/stories/Button.d.ts +1 -0
- package/dist/stories/Button.stories.d.ts +1 -8
- package/dist/stories/ButtonIcon.d.ts +2 -0
- package/dist/stories/Card.stories.d.ts +0 -1
- package/dist/stories/DatePicker.d.ts +1 -0
- package/dist/stories/Form.stories.d.ts +1 -11
- package/dist/stories/Header.d.ts +1 -0
- package/dist/stories/Input.d.ts +1 -0
- package/dist/stories/Input.stories.d.ts +2 -89
- package/dist/stories/ModalManager.d.ts +1 -0
- package/dist/stories/Page.d.ts +1 -0
- package/dist/stories/Select.d.ts +1 -0
- package/dist/stories/Select.stories.d.ts +3 -13
- package/dist/stories/Switch.stories.d.ts +1 -8
- package/dist/stories/TextArea.d.ts +1 -0
- package/dist/stories/TextArea.stories.d.ts +1 -8
- package/dist/stories/Upload.stories.d.ts +3 -0
- package/dist/stories/root/index.d.ts +1 -0
- package/dist/switch/styled.d.ts +1 -1
- package/dist/textarea/styled.d.ts +4 -2
- package/dist/types/AlertProps.d.ts +4 -5
- package/dist/types/ButtonProps.d.ts +2 -2
- package/dist/types/CalendarProps.d.ts +1 -0
- package/dist/types/CardProps.d.ts +0 -4
- package/dist/types/CheckboxProps.d.ts +1 -5
- package/dist/types/DatePickerProps.d.ts +3 -2
- package/dist/types/FormProps.d.ts +0 -3
- package/dist/types/ITDProps.d.ts +2 -4
- package/dist/types/InputProps.d.ts +2 -1
- package/dist/types/RadioProps.d.ts +0 -1
- package/dist/types/ResultProps.d.ts +0 -1
- package/dist/types/SelectProps.d.ts +13 -5
- package/dist/types/SwitchProps.d.ts +1 -4
- package/dist/types/TableProps.d.ts +0 -1
- package/dist/types/UploadProps.d.ts +16 -2
- package/dist/upload/index.d.ts +1 -1
- package/dist/upload/styled.d.ts +2 -5
- package/package.json +4 -14
- package/dist/alert/Description.d.ts +0 -7
- package/dist/alert/Title.d.ts +0 -7
- package/dist/alert/alert.style.neutral.d.ts +0 -4
- package/dist/cjs/_virtual/_commonjsHelpers.js +0 -1
- package/dist/cjs/_virtual/customParseFormat.js +0 -1
- package/dist/cjs/_virtual/customParseFormat2.js +0 -1
- package/dist/cjs/_virtual/dayjs.min.js +0 -1
- package/dist/cjs/_virtual/dayjs.min2.js +0 -1
- package/dist/cjs/_virtual/localizedFormat.js +0 -1
- package/dist/cjs/_virtual/localizedFormat2.js +0 -1
- package/dist/cjs/_virtual/react.js +0 -1
- package/dist/cjs/accordion/index.js +0 -1
- package/dist/cjs/accordion/item/Item.js +0 -1
- package/dist/cjs/accordion/item/styled.js +0 -20
- package/dist/cjs/accordion/styled.js +0 -15
- package/dist/cjs/accordion/submenu/SubMenu.js +0 -1
- package/dist/cjs/accordion/submenu/styled.js +0 -214
- package/dist/cjs/alert/Description.js +0 -1
- package/dist/cjs/alert/Title.js +0 -1
- package/dist/cjs/alert/alert.style.error.js +0 -32
- package/dist/cjs/alert/alert.style.info.js +0 -32
- package/dist/cjs/alert/alert.style.neutral.js +0 -32
- package/dist/cjs/alert/alert.style.success.js +0 -32
- package/dist/cjs/alert/alert.style.warning.js +0 -32
- package/dist/cjs/alert/index.js +0 -1
- package/dist/cjs/alert/styled.js +0 -68
- package/dist/cjs/alink/index.js +0 -1
- package/dist/cjs/alink/styled.js +0 -5
- package/dist/cjs/back-top/index.js +0 -1
- package/dist/cjs/back-top/styled.js +0 -25
- package/dist/cjs/button/button.style.circle.js +0 -38
- package/dist/cjs/button/button.style.default.js +0 -44
- package/dist/cjs/button/button.style.filled.js +0 -49
- package/dist/cjs/button/button.style.ghost.js +0 -47
- package/dist/cjs/button/button.style.icon.js +0 -33
- package/dist/cjs/button/button.style.link.js +0 -45
- package/dist/cjs/button/button.style.outline.js +0 -49
- package/dist/cjs/button/button.style.size.js +0 -187
- package/dist/cjs/button/button.style.solid.js +0 -50
- package/dist/cjs/button/button.style.strecth.js +0 -8
- package/dist/cjs/button/index.js +0 -1
- package/dist/cjs/button/styled.js +0 -415
- package/dist/cjs/calendar/dates.js +0 -1
- package/dist/cjs/calendar/day/Day.js +0 -1
- package/dist/cjs/calendar/day/styled.js +0 -91
- package/dist/cjs/calendar/header/Header.js +0 -1
- package/dist/cjs/calendar/header/styled.js +0 -196
- package/dist/cjs/calendar/index.js +0 -1
- package/dist/cjs/calendar/styled.js +0 -82
- package/dist/cjs/card/index.js +0 -1
- package/dist/cjs/card/styles.js +0 -66
- package/dist/cjs/checkbox/group/index.js +0 -1
- package/dist/cjs/checkbox/group/styled.js +0 -9
- package/dist/cjs/checkbox/index.js +0 -1
- package/dist/cjs/checkbox/styled.js +0 -340
- package/dist/cjs/context/ITDContext.js +0 -1
- package/dist/cjs/context/ITDThemeProvider.js +0 -1
- package/dist/cjs/context/styled.js +0 -15
- package/dist/cjs/datepicker/index.js +0 -1
- package/dist/cjs/datepicker/styled.js +0 -60
- package/dist/cjs/enums/enum.js +0 -1
- package/dist/cjs/flex/index.js +0 -1
- package/dist/cjs/flex/styled.js +0 -35
- package/dist/cjs/form/context/FormContext.js +0 -1
- package/dist/cjs/form/context/FormStore.js +0 -1
- package/dist/cjs/form/control/Control.js +0 -1
- package/dist/cjs/form/control/styled.js +0 -8
- package/dist/cjs/form/group/Group.js +0 -1
- package/dist/cjs/form/group/styled.js +0 -7
- package/dist/cjs/form/index.js +0 -1
- package/dist/cjs/form/item/Item.js +0 -1
- package/dist/cjs/form/validation/TCIdentity.js +0 -1
- package/dist/cjs/form/validation/Validator.js +0 -1
- package/dist/cjs/form/wrapper/FormWrapper.js +0 -1
- package/dist/cjs/helpers/array/ChunkArray.js +0 -1
- package/dist/cjs/helpers/aspectratio/DetermineNewHeight.js +0 -1
- package/dist/cjs/helpers/aspectratio/DetermineNewWidth.js +0 -1
- package/dist/cjs/helpers/base64/Base64Decode.js +0 -1
- package/dist/cjs/helpers/base64/Base64Encode.js +0 -1
- package/dist/cjs/helpers/binary/FormatBytes.js +0 -1
- package/dist/cjs/helpers/binary/GetTypeByFileType.js +0 -1
- package/dist/cjs/helpers/checker/CheckFileURL.js +0 -1
- package/dist/cjs/helpers/checker/FileChecker.js +0 -1
- package/dist/cjs/helpers/country/GetCountryCodeByCurrencyCode.js +0 -1
- package/dist/cjs/helpers/country/GetCountryCodeByLanguage.js +0 -1
- package/dist/cjs/helpers/css/FindSelector.js +0 -1
- package/dist/cjs/helpers/currency/ConvertCurrency.js +0 -1
- package/dist/cjs/helpers/currency/GetByCurrency.js +0 -1
- package/dist/cjs/helpers/currency/GetCurrencyFormat.js +0 -1
- package/dist/cjs/helpers/currency/GetCurrencySymbol.js +0 -1
- package/dist/cjs/helpers/currency/GetDecimalByCurrency.js +0 -1
- package/dist/cjs/helpers/datetime/FormatDate.js +0 -1
- package/dist/cjs/helpers/datetime/FormatDateTime.js +0 -1
- package/dist/cjs/helpers/datetime/FormatSimpleDate.js +0 -1
- package/dist/cjs/helpers/datetime/FormatSimpleDateTime.js +0 -1
- package/dist/cjs/helpers/datetime/FormatTime.js +0 -1
- package/dist/cjs/helpers/datetime/dayjsSetup.js +0 -1
- package/dist/cjs/helpers/format/ToKebabCase.js +0 -1
- package/dist/cjs/helpers/json/IsValidJSON.js +0 -1
- package/dist/cjs/helpers/math/AddZero.js +0 -1
- package/dist/cjs/helpers/promise/Wait.js +0 -1
- package/dist/cjs/helpers/remover/RemoveUnits.js +0 -1
- package/dist/cjs/helpers/string/UniUpperCase.js +0 -1
- package/dist/cjs/helpers/svg/SVGLoader.js +0 -1
- package/dist/cjs/helpers/svg/styles.js +0 -22
- package/dist/cjs/helpers/theme/AddDefaultThemeStyle.js +0 -1
- package/dist/cjs/helpers/theme/Color.js +0 -1
- package/dist/cjs/helpers/theme/GenerateColorScale.js +0 -1
- package/dist/cjs/helpers/theme/UpdateThemeStyle.js +0 -1
- package/dist/cjs/helpers/theme/cssVariables.js +0 -1
- package/dist/cjs/helpers/theme/dark.js +0 -1
- package/dist/cjs/helpers/theme/light.js +0 -1
- package/dist/cjs/helpers/theme/tokens.js +0 -1
- package/dist/cjs/helpers/unit/AddDefaultUnit.js +0 -1
- package/dist/cjs/helpers/url/ValidURL.js +0 -1
- package/dist/cjs/hooks/useAddExternalCSS.js +0 -1
- package/dist/cjs/hooks/useAvoidCollision.js +0 -1
- package/dist/cjs/hooks/useComponentSize.js +0 -1
- package/dist/cjs/hooks/useConnectionStatus.js +0 -1
- package/dist/cjs/hooks/useConstructor.js +0 -1
- package/dist/cjs/hooks/useContextBridge.js +0 -1
- package/dist/cjs/hooks/useCoreFetch.js +0 -1
- package/dist/cjs/hooks/useKeyboardShortcut.js +0 -1
- package/dist/cjs/hooks/useMultiQuery.js +0 -1
- package/dist/cjs/hooks/useOnClickOutside.js +0 -1
- package/dist/cjs/hooks/useOnESCKeyDown.js +0 -1
- package/dist/cjs/hooks/useOnResize.js +0 -1
- package/dist/cjs/hooks/useOrientation.js +0 -1
- package/dist/cjs/hooks/useReCaptcha.js +0 -1
- package/dist/cjs/hooks/useSingleQuery.js +0 -1
- package/dist/cjs/html/header/H1.js +0 -1
- package/dist/cjs/html/header/H2.js +0 -1
- package/dist/cjs/html/header/H3.js +0 -1
- package/dist/cjs/html/header/H4.js +0 -1
- package/dist/cjs/html/header/styled.js +0 -33
- package/dist/cjs/icons/Arrow.js +0 -1
- package/dist/cjs/icons/BackToTop.js +0 -1
- package/dist/cjs/icons/Checkmark.js +0 -1
- package/dist/cjs/icons/InlineSelectArrow.js +0 -1
- package/dist/cjs/icons/Lock.js +0 -1
- package/dist/cjs/icons/NoData.js +0 -1
- package/dist/cjs/icons/Picture.js +0 -1
- package/dist/cjs/icons/Trash.js +0 -1
- package/dist/cjs/icons/Upload.js +0 -1
- package/dist/cjs/icons/ZoomIn.js +0 -1
- package/dist/cjs/icons/ZoomOut.js +0 -1
- package/dist/cjs/image/index.js +0 -1
- package/dist/cjs/image/styled.js +0 -4
- package/dist/cjs/index.js +0 -1
- package/dist/cjs/input/index.js +0 -1
- package/dist/cjs/input/style.settings.js +0 -1
- package/dist/cjs/input/styled.js +0 -430
- package/dist/cjs/locales/en/calendar.json.js +0 -1
- package/dist/cjs/locales/en/itd.json.js +0 -1
- package/dist/cjs/locales/tr/calendar.json.js +0 -1
- package/dist/cjs/locales/tr/itd.json.js +0 -1
- package/dist/cjs/logger/index.js +0 -1
- package/dist/cjs/modal/container/ModalContainer.js +0 -1
- package/dist/cjs/modal/container/styled.js +0 -27
- package/dist/cjs/modal/context/ModalContext.js +0 -1
- package/dist/cjs/modal/index.js +0 -1
- package/dist/cjs/modal/modal/Modal.js +0 -1
- package/dist/cjs/modal/modal/closeicon.svg.js +0 -1
- package/dist/cjs/modal/modal/styled.js +0 -128
- package/dist/cjs/node_modules/@react-spring/animated/dist/react-spring_animated.modern.js +0 -1
- package/dist/cjs/node_modules/@react-spring/core/dist/react-spring_core.modern.js +0 -1
- package/dist/cjs/node_modules/@react-spring/rafz/dist/react-spring_rafz.modern.js +0 -1
- package/dist/cjs/node_modules/@react-spring/shared/dist/react-spring_shared.modern.js +0 -1
- package/dist/cjs/node_modules/@react-spring/web/dist/react-spring_web.modern.js +0 -1
- package/dist/cjs/node_modules/dayjs/dayjs.min.js +0 -1
- package/dist/cjs/node_modules/dayjs/plugin/customParseFormat.js +0 -1
- package/dist/cjs/node_modules/dayjs/plugin/localizedFormat.js +0 -1
- package/dist/cjs/node_modules/fast-deep-equal/react.js +0 -1
- package/dist/cjs/node_modules/lodash-es/_Symbol.js +0 -1
- package/dist/cjs/node_modules/lodash-es/_arrayMap.js +0 -1
- package/dist/cjs/node_modules/lodash-es/_baseGetTag.js +0 -1
- package/dist/cjs/node_modules/lodash-es/_baseToString.js +0 -1
- package/dist/cjs/node_modules/lodash-es/_freeGlobal.js +0 -1
- package/dist/cjs/node_modules/lodash-es/_getRawTag.js +0 -1
- package/dist/cjs/node_modules/lodash-es/_objectToString.js +0 -1
- package/dist/cjs/node_modules/lodash-es/_root.js +0 -1
- package/dist/cjs/node_modules/lodash-es/isArray.js +0 -1
- package/dist/cjs/node_modules/lodash-es/isObject.js +0 -1
- package/dist/cjs/node_modules/lodash-es/isObjectLike.js +0 -1
- package/dist/cjs/node_modules/lodash-es/isSymbol.js +0 -1
- package/dist/cjs/node_modules/lodash-es/toString.js +0 -1
- package/dist/cjs/node_modules/lodash-es/uniqueId.js +0 -1
- package/dist/cjs/node_modules/lucide-react/dist/esm/Icon.js +0 -8
- package/dist/cjs/node_modules/lucide-react/dist/esm/createLucideIcon.js +0 -1
- package/dist/cjs/node_modules/lucide-react/dist/esm/defaultAttributes.js +0 -1
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/calendar-1.js +0 -8
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/chevron-down.js +0 -8
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/circle-x.js +0 -8
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/eye.js +0 -8
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/info.js +0 -8
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/trash.js +0 -8
- package/dist/cjs/node_modules/lucide-react/dist/esm/shared/src/utils.js +0 -7
- package/dist/cjs/node_modules/overlayscrollbars/overlayscrollbars.js +0 -10
- package/dist/cjs/node_modules/overlayscrollbars/styles/overlayscrollbars.css.js +0 -1
- package/dist/cjs/node_modules/react-number-format/dist/react-number-format.es.js +0 -1
- package/dist/cjs/node_modules/rollup-plugin-node-globals/src/global.js +0 -1
- package/dist/cjs/node_modules/rollup-plugin-styles/dist/runtime/inject-css.js +0 -1
- package/dist/cjs/node_modules/uuid/dist/esm-browser/native.js +0 -1
- package/dist/cjs/node_modules/uuid/dist/esm-browser/rng.js +0 -1
- package/dist/cjs/node_modules/uuid/dist/esm-browser/stringify.js +0 -1
- package/dist/cjs/node_modules/uuid/dist/esm-browser/v4.js +0 -1
- package/dist/cjs/notification/container/Container.js +0 -1
- package/dist/cjs/notification/container/styled.js +0 -26
- package/dist/cjs/notification/context/NotificationsContext.js +0 -1
- package/dist/cjs/notification/index.js +0 -1
- package/dist/cjs/notification/item/Item.js +0 -1
- package/dist/cjs/notification/item/styled.js +0 -42
- package/dist/cjs/progress/index.js +0 -1
- package/dist/cjs/progress/styled.js +0 -59
- package/dist/cjs/radio/button/RadioButton.js +0 -1
- package/dist/cjs/radio/button/styled.js +0 -133
- package/dist/cjs/radio/group/Group.js +0 -1
- package/dist/cjs/radio/group/styled.js +0 -7
- package/dist/cjs/radio/index.js +0 -1
- package/dist/cjs/result/index.js +0 -1
- package/dist/cjs/result/styled.js +0 -109
- package/dist/cjs/select/dropdown/Dropdown.js +0 -1
- package/dist/cjs/select/dropdown/styled.js +0 -239
- package/dist/cjs/select/index.js +0 -1
- package/dist/cjs/select/option/Option.js +0 -1
- package/dist/cjs/select/option/styled.js +0 -36
- package/dist/cjs/select/style.settings.js +0 -1
- package/dist/cjs/select/styled.js +0 -331
- package/dist/cjs/select/toggle/Toggle.js +0 -1
- package/dist/cjs/select/toggle/label/Label.js +0 -1
- package/dist/cjs/select/toggle/label/styled.js +0 -5
- package/dist/cjs/select/toggle/styled.js +0 -88
- package/dist/cjs/spin/index.js +0 -1
- package/dist/cjs/spin/styled.js +0 -74
- package/dist/cjs/status/index.js +0 -1
- package/dist/cjs/status/styled.js +0 -75
- package/dist/cjs/switch/index.js +0 -1
- package/dist/cjs/switch/styled.js +0 -209
- package/dist/cjs/table/index.js +0 -1
- package/dist/cjs/table/styled.js +0 -458
- package/dist/cjs/tabs/index.js +0 -1
- package/dist/cjs/tabs/styles.js +0 -96
- package/dist/cjs/textarea/index.js +0 -1
- package/dist/cjs/textarea/styled.js +0 -220
- package/dist/cjs/tinyscrollbar/index.js +0 -1
- package/dist/cjs/tinyscrollbar/scroll.styled.js +0 -21
- package/dist/cjs/types/InputProps.js +0 -1
- package/dist/cjs/upload/index.js +0 -1
- package/dist/cjs/upload/styled.js +0 -228
- package/dist/cjs/utils/CommonStyledComponents.js +0 -61
- package/dist/cjs/utils/GetIconSizeBySize.js +0 -1
- package/dist/cjs/utils/GetSizeSlugBySize.js +0 -1
- package/dist/cjs/utils/InlineSVGCached.js +0 -1
- package/dist/context/ITDThemeProvider.d.ts +0 -8
- package/dist/es/_virtual/_commonjsHelpers.js +0 -1
- package/dist/es/_virtual/customParseFormat.js +0 -1
- package/dist/es/_virtual/customParseFormat2.js +0 -1
- package/dist/es/_virtual/dayjs.min.js +0 -1
- package/dist/es/_virtual/dayjs.min2.js +0 -1
- package/dist/es/_virtual/localizedFormat.js +0 -1
- package/dist/es/_virtual/localizedFormat2.js +0 -1
- package/dist/es/_virtual/react.js +0 -1
- package/dist/es/accordion/index.js +0 -1
- package/dist/es/accordion/item/Item.js +0 -1
- package/dist/es/accordion/item/styled.js +0 -20
- package/dist/es/accordion/styled.js +0 -15
- package/dist/es/accordion/submenu/SubMenu.js +0 -1
- package/dist/es/accordion/submenu/styled.js +0 -214
- package/dist/es/alert/Description.js +0 -1
- package/dist/es/alert/Title.js +0 -1
- package/dist/es/alert/alert.style.error.js +0 -32
- package/dist/es/alert/alert.style.info.js +0 -32
- package/dist/es/alert/alert.style.neutral.js +0 -32
- package/dist/es/alert/alert.style.success.js +0 -32
- package/dist/es/alert/alert.style.warning.js +0 -32
- package/dist/es/alert/index.js +0 -1
- package/dist/es/alert/styled.js +0 -68
- package/dist/es/alink/index.js +0 -1
- package/dist/es/alink/styled.js +0 -5
- package/dist/es/back-top/index.js +0 -1
- package/dist/es/back-top/styled.js +0 -25
- package/dist/es/button/button.style.circle.js +0 -38
- package/dist/es/button/button.style.default.js +0 -44
- package/dist/es/button/button.style.filled.js +0 -49
- package/dist/es/button/button.style.ghost.js +0 -47
- package/dist/es/button/button.style.icon.js +0 -33
- package/dist/es/button/button.style.link.js +0 -45
- package/dist/es/button/button.style.outline.js +0 -49
- package/dist/es/button/button.style.size.js +0 -187
- package/dist/es/button/button.style.solid.js +0 -50
- package/dist/es/button/button.style.strecth.js +0 -8
- package/dist/es/button/index.js +0 -1
- package/dist/es/button/styled.js +0 -415
- package/dist/es/calendar/dates.js +0 -1
- package/dist/es/calendar/day/Day.js +0 -1
- package/dist/es/calendar/day/styled.js +0 -91
- package/dist/es/calendar/header/Header.js +0 -1
- package/dist/es/calendar/header/styled.js +0 -196
- package/dist/es/calendar/index.js +0 -1
- package/dist/es/calendar/styled.js +0 -82
- package/dist/es/card/index.js +0 -1
- package/dist/es/card/styles.js +0 -66
- package/dist/es/checkbox/group/index.js +0 -1
- package/dist/es/checkbox/group/styled.js +0 -9
- package/dist/es/checkbox/index.js +0 -1
- package/dist/es/checkbox/styled.js +0 -340
- package/dist/es/context/ITDContext.js +0 -1
- package/dist/es/context/ITDThemeProvider.js +0 -1
- package/dist/es/context/styled.js +0 -15
- package/dist/es/datepicker/index.js +0 -1
- package/dist/es/datepicker/styled.js +0 -60
- package/dist/es/enums/enum.js +0 -1
- package/dist/es/flex/index.js +0 -1
- package/dist/es/flex/styled.js +0 -35
- package/dist/es/form/context/FormContext.js +0 -1
- package/dist/es/form/context/FormStore.js +0 -1
- package/dist/es/form/control/Control.js +0 -1
- package/dist/es/form/control/styled.js +0 -8
- package/dist/es/form/group/Group.js +0 -1
- package/dist/es/form/group/styled.js +0 -7
- package/dist/es/form/index.js +0 -1
- package/dist/es/form/item/Item.js +0 -1
- package/dist/es/form/validation/TCIdentity.js +0 -1
- package/dist/es/form/validation/Validator.js +0 -1
- package/dist/es/form/wrapper/FormWrapper.js +0 -1
- package/dist/es/helpers/array/ChunkArray.js +0 -1
- package/dist/es/helpers/aspectratio/DetermineNewHeight.js +0 -1
- package/dist/es/helpers/aspectratio/DetermineNewWidth.js +0 -1
- package/dist/es/helpers/base64/Base64Decode.js +0 -1
- package/dist/es/helpers/base64/Base64Encode.js +0 -1
- package/dist/es/helpers/binary/FormatBytes.js +0 -1
- package/dist/es/helpers/binary/GetTypeByFileType.js +0 -1
- package/dist/es/helpers/checker/CheckFileURL.js +0 -1
- package/dist/es/helpers/checker/FileChecker.js +0 -1
- package/dist/es/helpers/country/GetCountryCodeByCurrencyCode.js +0 -1
- package/dist/es/helpers/country/GetCountryCodeByLanguage.js +0 -1
- package/dist/es/helpers/css/FindSelector.js +0 -1
- package/dist/es/helpers/currency/ConvertCurrency.js +0 -1
- package/dist/es/helpers/currency/GetByCurrency.js +0 -1
- package/dist/es/helpers/currency/GetCurrencyFormat.js +0 -1
- package/dist/es/helpers/currency/GetCurrencySymbol.js +0 -1
- package/dist/es/helpers/currency/GetDecimalByCurrency.js +0 -1
- package/dist/es/helpers/datetime/FormatDate.js +0 -1
- package/dist/es/helpers/datetime/FormatDateTime.js +0 -1
- package/dist/es/helpers/datetime/FormatSimpleDate.js +0 -1
- package/dist/es/helpers/datetime/FormatSimpleDateTime.js +0 -1
- package/dist/es/helpers/datetime/FormatTime.js +0 -1
- package/dist/es/helpers/datetime/dayjsSetup.js +0 -1
- package/dist/es/helpers/format/ToKebabCase.js +0 -1
- package/dist/es/helpers/json/IsValidJSON.js +0 -1
- package/dist/es/helpers/math/AddZero.js +0 -1
- package/dist/es/helpers/promise/Wait.js +0 -1
- package/dist/es/helpers/remover/RemoveUnits.js +0 -1
- package/dist/es/helpers/string/UniUpperCase.js +0 -1
- package/dist/es/helpers/svg/SVGLoader.js +0 -1
- package/dist/es/helpers/svg/styles.js +0 -22
- package/dist/es/helpers/theme/AddDefaultThemeStyle.js +0 -1
- package/dist/es/helpers/theme/Color.js +0 -1
- package/dist/es/helpers/theme/GenerateColorScale.js +0 -1
- package/dist/es/helpers/theme/UpdateThemeStyle.js +0 -1
- package/dist/es/helpers/theme/cssVariables.js +0 -1
- package/dist/es/helpers/theme/dark.js +0 -1
- package/dist/es/helpers/theme/light.js +0 -1
- package/dist/es/helpers/theme/tokens.js +0 -1
- package/dist/es/helpers/unit/AddDefaultUnit.js +0 -1
- package/dist/es/helpers/url/ValidURL.js +0 -1
- package/dist/es/hooks/useAddExternalCSS.js +0 -1
- package/dist/es/hooks/useAvoidCollision.js +0 -1
- package/dist/es/hooks/useComponentSize.js +0 -1
- package/dist/es/hooks/useConnectionStatus.js +0 -1
- package/dist/es/hooks/useConstructor.js +0 -1
- package/dist/es/hooks/useContextBridge.js +0 -1
- package/dist/es/hooks/useCoreFetch.js +0 -1
- package/dist/es/hooks/useKeyboardShortcut.js +0 -1
- package/dist/es/hooks/useMultiQuery.js +0 -1
- package/dist/es/hooks/useOnClickOutside.js +0 -1
- package/dist/es/hooks/useOnESCKeyDown.js +0 -1
- package/dist/es/hooks/useOnResize.js +0 -1
- package/dist/es/hooks/useOrientation.js +0 -1
- package/dist/es/hooks/useReCaptcha.js +0 -1
- package/dist/es/hooks/useSingleQuery.js +0 -1
- package/dist/es/html/header/H1.js +0 -1
- package/dist/es/html/header/H2.js +0 -1
- package/dist/es/html/header/H3.js +0 -1
- package/dist/es/html/header/H4.js +0 -1
- package/dist/es/html/header/styled.js +0 -33
- package/dist/es/icons/Arrow.js +0 -1
- package/dist/es/icons/BackToTop.js +0 -1
- package/dist/es/icons/Checkmark.js +0 -1
- package/dist/es/icons/InlineSelectArrow.js +0 -1
- package/dist/es/icons/Lock.js +0 -1
- package/dist/es/icons/NoData.js +0 -1
- package/dist/es/icons/Picture.js +0 -1
- package/dist/es/icons/Trash.js +0 -1
- package/dist/es/icons/Upload.js +0 -1
- package/dist/es/icons/ZoomIn.js +0 -1
- package/dist/es/icons/ZoomOut.js +0 -1
- package/dist/es/image/index.js +0 -1
- package/dist/es/image/styled.js +0 -4
- package/dist/es/index.js +0 -1
- package/dist/es/input/index.js +0 -1
- package/dist/es/input/style.settings.js +0 -1
- package/dist/es/input/styled.js +0 -430
- package/dist/es/locales/en/calendar.json.js +0 -1
- package/dist/es/locales/en/itd.json.js +0 -1
- package/dist/es/locales/tr/calendar.json.js +0 -1
- package/dist/es/locales/tr/itd.json.js +0 -1
- package/dist/es/logger/index.js +0 -1
- package/dist/es/modal/container/ModalContainer.js +0 -1
- package/dist/es/modal/container/styled.js +0 -27
- package/dist/es/modal/context/ModalContext.js +0 -1
- package/dist/es/modal/index.js +0 -1
- package/dist/es/modal/modal/Modal.js +0 -1
- package/dist/es/modal/modal/closeicon.svg.js +0 -1
- package/dist/es/modal/modal/styled.js +0 -128
- package/dist/es/node_modules/@react-spring/animated/dist/react-spring_animated.modern.js +0 -1
- package/dist/es/node_modules/@react-spring/core/dist/react-spring_core.modern.js +0 -1
- package/dist/es/node_modules/@react-spring/rafz/dist/react-spring_rafz.modern.js +0 -1
- package/dist/es/node_modules/@react-spring/shared/dist/react-spring_shared.modern.js +0 -1
- package/dist/es/node_modules/@react-spring/web/dist/react-spring_web.modern.js +0 -1
- package/dist/es/node_modules/dayjs/dayjs.min.js +0 -1
- package/dist/es/node_modules/dayjs/plugin/customParseFormat.js +0 -1
- package/dist/es/node_modules/dayjs/plugin/localizedFormat.js +0 -1
- package/dist/es/node_modules/fast-deep-equal/react.js +0 -1
- package/dist/es/node_modules/lodash-es/_Symbol.js +0 -1
- package/dist/es/node_modules/lodash-es/_arrayMap.js +0 -1
- package/dist/es/node_modules/lodash-es/_baseGetTag.js +0 -1
- package/dist/es/node_modules/lodash-es/_baseToString.js +0 -1
- package/dist/es/node_modules/lodash-es/_freeGlobal.js +0 -1
- package/dist/es/node_modules/lodash-es/_getRawTag.js +0 -1
- package/dist/es/node_modules/lodash-es/_objectToString.js +0 -1
- package/dist/es/node_modules/lodash-es/_root.js +0 -1
- package/dist/es/node_modules/lodash-es/isArray.js +0 -1
- package/dist/es/node_modules/lodash-es/isObject.js +0 -1
- package/dist/es/node_modules/lodash-es/isObjectLike.js +0 -1
- package/dist/es/node_modules/lodash-es/isSymbol.js +0 -1
- package/dist/es/node_modules/lodash-es/toString.js +0 -1
- package/dist/es/node_modules/lodash-es/uniqueId.js +0 -1
- package/dist/es/node_modules/lucide-react/dist/esm/Icon.js +0 -7
- package/dist/es/node_modules/lucide-react/dist/esm/createLucideIcon.js +0 -7
- package/dist/es/node_modules/lucide-react/dist/esm/defaultAttributes.js +0 -7
- package/dist/es/node_modules/lucide-react/dist/esm/icons/calendar-1.js +0 -7
- package/dist/es/node_modules/lucide-react/dist/esm/icons/chevron-down.js +0 -7
- package/dist/es/node_modules/lucide-react/dist/esm/icons/circle-x.js +0 -7
- package/dist/es/node_modules/lucide-react/dist/esm/icons/eye.js +0 -7
- package/dist/es/node_modules/lucide-react/dist/esm/icons/info.js +0 -7
- package/dist/es/node_modules/lucide-react/dist/esm/icons/trash.js +0 -7
- package/dist/es/node_modules/lucide-react/dist/esm/shared/src/utils.js +0 -7
- package/dist/es/node_modules/overlayscrollbars/overlayscrollbars.js +0 -10
- package/dist/es/node_modules/overlayscrollbars/styles/overlayscrollbars.css.js +0 -1
- package/dist/es/node_modules/react-number-format/dist/react-number-format.es.js +0 -1
- package/dist/es/node_modules/rollup-plugin-node-globals/src/global.js +0 -1
- package/dist/es/node_modules/rollup-plugin-styles/dist/runtime/inject-css.js +0 -1
- package/dist/es/node_modules/uuid/dist/esm-browser/native.js +0 -1
- package/dist/es/node_modules/uuid/dist/esm-browser/rng.js +0 -1
- package/dist/es/node_modules/uuid/dist/esm-browser/stringify.js +0 -1
- package/dist/es/node_modules/uuid/dist/esm-browser/v4.js +0 -1
- package/dist/es/notification/container/Container.js +0 -1
- package/dist/es/notification/container/styled.js +0 -26
- package/dist/es/notification/context/NotificationsContext.js +0 -1
- package/dist/es/notification/index.js +0 -1
- package/dist/es/notification/item/Item.js +0 -1
- package/dist/es/notification/item/styled.js +0 -42
- package/dist/es/progress/index.js +0 -1
- package/dist/es/progress/styled.js +0 -59
- package/dist/es/radio/button/RadioButton.js +0 -1
- package/dist/es/radio/button/styled.js +0 -133
- package/dist/es/radio/group/Group.js +0 -1
- package/dist/es/radio/group/styled.js +0 -7
- package/dist/es/radio/index.js +0 -1
- package/dist/es/result/index.js +0 -1
- package/dist/es/result/styled.js +0 -109
- package/dist/es/select/dropdown/Dropdown.js +0 -1
- package/dist/es/select/dropdown/styled.js +0 -239
- package/dist/es/select/index.js +0 -1
- package/dist/es/select/option/Option.js +0 -1
- package/dist/es/select/option/styled.js +0 -36
- package/dist/es/select/style.settings.js +0 -1
- package/dist/es/select/styled.js +0 -331
- package/dist/es/select/toggle/Toggle.js +0 -1
- package/dist/es/select/toggle/label/Label.js +0 -1
- package/dist/es/select/toggle/label/styled.js +0 -5
- package/dist/es/select/toggle/styled.js +0 -88
- package/dist/es/spin/index.js +0 -1
- package/dist/es/spin/styled.js +0 -74
- package/dist/es/status/index.js +0 -1
- package/dist/es/status/styled.js +0 -75
- package/dist/es/switch/index.js +0 -1
- package/dist/es/switch/styled.js +0 -209
- package/dist/es/table/index.js +0 -1
- package/dist/es/table/styled.js +0 -458
- package/dist/es/tabs/index.js +0 -1
- package/dist/es/tabs/styles.js +0 -96
- package/dist/es/textarea/index.js +0 -1
- package/dist/es/textarea/styled.js +0 -220
- package/dist/es/tinyscrollbar/index.js +0 -1
- package/dist/es/tinyscrollbar/scroll.styled.js +0 -21
- package/dist/es/types/InputProps.js +0 -1
- package/dist/es/upload/index.js +0 -1
- package/dist/es/upload/styled.js +0 -228
- package/dist/es/utils/CommonStyledComponents.js +0 -61
- package/dist/es/utils/GetIconSizeBySize.js +0 -1
- package/dist/es/utils/GetSizeSlugBySize.js +0 -1
- package/dist/es/utils/InlineSVGCached.js +0 -1
- package/dist/helpers/theme/Color.d.ts +0 -19
- package/dist/helpers/theme/GenerateColorScale.d.ts +0 -16
- package/dist/helpers/theme/cssVariables.d.ts +0 -30
- package/dist/helpers/theme/dark.d.ts +0 -3
- package/dist/helpers/theme/index.d.ts +0 -9
- package/dist/helpers/theme/light.d.ts +0 -3
- package/dist/helpers/theme/themes.d.ts +0 -5
- package/dist/helpers/theme/tokens.d.ts +0 -392
- package/dist/input/style.settings.d.ts +0 -9
- package/dist/select/dropdown/Dropdown.d.ts +0 -19
- package/dist/select/dropdown/styled.d.ts +0 -14
- package/dist/stats.html +0 -4949
- package/dist/stories/AlertComposition.d.ts +0 -2
- package/dist/stories/AlertComposition.stories.d.ts +0 -17
- package/dist/stories/ColorScale.d.ts +0 -10
- package/dist/stories/ColorScale.stories.d.ts +0 -24
- package/dist/stories/ColorScaleCompare.d.ts +0 -8
- package/dist/stories/ColorScaleCompare.stories.d.ts +0 -47
- package/dist/types/Theme.d.ts +0 -100
- package/dist/utils/CommonStyledComponents.d.ts +0 -17
- /package/dist/select/toggle/label/{styled.d.ts → single/styled.d.ts} +0 -0
|
@@ -1,239 +0,0 @@
|
|
|
1
|
-
import t,{css as e}from"styled-components";import i from"../../tinyscrollbar/index.js";import{ComponentVariants as o}from"../../enums/enum.js";import{getSelectSizeBySize as d,getImageSizeBySize as r,getOptionSizeBySize as l,getFontSizeBySize as n,ICON_MARGIN_RIGHT as c}from"../style.settings.js";import{withOpacity as a}from"../../helpers/theme/Color.js";const m=(t,i)=>{const m=d(t),h=r(t),s=l(t),g=n(t);return e`
|
|
2
|
-
|
|
3
|
-
&.itd-select-dropdown {
|
|
4
|
-
|
|
5
|
-
box-shadow : ${({theme:t})=>i===o.DEFAULT?"none":t.colorModalShadow};
|
|
6
|
-
background-color : ${({theme:t})=>t.colorBackgroundSelect};
|
|
7
|
-
border-radius : calc( ${({theme:t})=>t.borderRadius} - 0.125rem);
|
|
8
|
-
border : ${({theme:t})=>i===o.FILLED?"none":"1px solid "+t.colorBorder};
|
|
9
|
-
|
|
10
|
-
.itd-select-dropdown-body {
|
|
11
|
-
max-height: 18.75rem;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
&.multi .itd-checkbox {
|
|
15
|
-
|
|
16
|
-
width: 100%;
|
|
17
|
-
height: 100%;
|
|
18
|
-
|
|
19
|
-
padding-right: 0.9375rem;
|
|
20
|
-
padding-left: 0.9375rem;
|
|
21
|
-
|
|
22
|
-
.itd-checkbox-inner-wrapper {
|
|
23
|
-
width: 100%;
|
|
24
|
-
height: 100%;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
${p=m.height,e`
|
|
30
|
-
|
|
31
|
-
&[data-position="bottom"] {
|
|
32
|
-
top: calc(${p} + 0.25rem);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&[data-position="top"] {
|
|
36
|
-
bottom: calc(${p} + 0.25rem);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
`}
|
|
40
|
-
${e`
|
|
41
|
-
|
|
42
|
-
&[data-direction="left"] {
|
|
43
|
-
left: 0;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&[data-direction="right"] {
|
|
47
|
-
right: 0;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
`}
|
|
51
|
-
|
|
52
|
-
&.single {
|
|
53
|
-
|
|
54
|
-
.itd-select-item.itd-select-item-option {
|
|
55
|
-
|
|
56
|
-
.itd-select-option-single {
|
|
57
|
-
padding-right : ${s.paddingX};
|
|
58
|
-
padding-left : ${s.paddingX};
|
|
59
|
-
height : 100%;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.itd-select-item.itd-select-item-option {
|
|
67
|
-
|
|
68
|
-
padding-top : 0;
|
|
69
|
-
padding-bottom : 0;
|
|
70
|
-
height : ${s.height};
|
|
71
|
-
|
|
72
|
-
/* Tüm durumlarda tipografi sabit kalsın (hover/selected değişmesin) */
|
|
73
|
-
span, label {
|
|
74
|
-
font-size : ${g.fontSize};
|
|
75
|
-
line-height : ${g.lineHeight};
|
|
76
|
-
font-weight : ${g.fontWeight};
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
&.itd-item-single, &.itd-item-multi {
|
|
80
|
-
|
|
81
|
-
background-color: ${({theme:t})=>t.colorBackgroundSelectItem};
|
|
82
|
-
|
|
83
|
-
span, label {
|
|
84
|
-
color : ${({theme:t})=>t.colorTextNeutral};
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
&.itd-item-multi:not(&.itd-select-item-option-disabled) {
|
|
88
|
-
.itd-checkbox-default {
|
|
89
|
-
input {
|
|
90
|
-
border-color: ${({theme:t})=>a(t.colorTextNeutral,.25)};
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.itd-checkbox-filled {
|
|
95
|
-
.itd-checkbox-checkmark {
|
|
96
|
-
background-color: ${({theme:t})=>a(t.colorTextNeutral,.1)};
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.itd-image {
|
|
102
|
-
|
|
103
|
-
min-width : ${h.width};
|
|
104
|
-
min-height : ${h.height};
|
|
105
|
-
margin-right : ${c};
|
|
106
|
-
|
|
107
|
-
.itd-select-option-image {
|
|
108
|
-
width : ${h.width};
|
|
109
|
-
height : ${h.height};
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.itd-select-option-icon {
|
|
113
|
-
color : ${({theme:t})=>t.colorIcon};
|
|
114
|
-
font-size : ${h.width};
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
&.itd-select-item-option-active {
|
|
122
|
-
|
|
123
|
-
&.itd-item-single, &.itd-item-multi {
|
|
124
|
-
|
|
125
|
-
background-color: ${({theme:t})=>t.colorBackgroundSelectItemHover};
|
|
126
|
-
|
|
127
|
-
span, label {
|
|
128
|
-
color: ${({theme:t})=>t.colorText};
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
&.itd-item-multi:not(&.itd-select-item-option-disabled) {
|
|
134
|
-
|
|
135
|
-
.itd-checkbox-default {
|
|
136
|
-
input {
|
|
137
|
-
border-color: ${({theme:t})=>a(t.colorTextNeutral,.5)};
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.itd-checkbox-filled {
|
|
142
|
-
.itd-checkbox-checkmark {
|
|
143
|
-
background-color: ${({theme:t})=>a(t.colorTextNeutral,.15)};
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
&.itd-select-item-option-selected {
|
|
152
|
-
|
|
153
|
-
&.itd-item-single, &.itd-item-multi {
|
|
154
|
-
|
|
155
|
-
background-color: ${({theme:t})=>t.colorBackgroundSelectItemSelected};
|
|
156
|
-
|
|
157
|
-
span, label {
|
|
158
|
-
color: ${({theme:t})=>t.colorText};
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
&.itd-item-multi:not(&.itd-select-item-option-disabled) {
|
|
164
|
-
|
|
165
|
-
.itd-checkbox-default {
|
|
166
|
-
input {
|
|
167
|
-
border-color: ${({theme:t})=>t.primary};
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.itd-checkbox-filled {
|
|
172
|
-
.itd-checkbox-checkmark {
|
|
173
|
-
background-color: ${({theme:t})=>t.primary};
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
&.itd-select-item-option-disabled {
|
|
182
|
-
|
|
183
|
-
&.itd-item-single, &.itd-item-multi {
|
|
184
|
-
span, label {
|
|
185
|
-
color: ${({theme:t})=>t.colorDisabledText};
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
}
|
|
194
|
-
`;var p},h=t.div`
|
|
195
|
-
|
|
196
|
-
min-width: 100%;
|
|
197
|
-
min-height: 2.5rem;
|
|
198
|
-
overflow: hidden;
|
|
199
|
-
position: absolute;
|
|
200
|
-
z-index: 15;
|
|
201
|
-
transform-box: fill-box;
|
|
202
|
-
transform-origin: 50% 1%;
|
|
203
|
-
outline: none;
|
|
204
|
-
|
|
205
|
-
/* Portal modunda fixed positioning */
|
|
206
|
-
&[data-portal="true"] {
|
|
207
|
-
position: fixed;
|
|
208
|
-
min-width: auto;
|
|
209
|
-
|
|
210
|
-
/* TOP pozisyonunda animasyon yönü ters olmalı */
|
|
211
|
-
&[data-position="top"] {
|
|
212
|
-
transform-origin: 50% 100%;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
/* ------------------------ */
|
|
216
|
-
// DROPDOWN MENU
|
|
217
|
-
/* ------------------------ */
|
|
218
|
-
${({$size:t,$variant:e})=>m(t,e)}
|
|
219
|
-
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
ul {
|
|
223
|
-
min-width: max-content;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
`,s=t(i)`
|
|
228
|
-
|
|
229
|
-
`,g=t.div`
|
|
230
|
-
/* Portal mode - document.body'de ama Select CSS'lerini inherit ediyor */
|
|
231
|
-
position: relative;
|
|
232
|
-
height: max-content;
|
|
233
|
-
|
|
234
|
-
ul {
|
|
235
|
-
margin-block-start: 0;
|
|
236
|
-
margin-block-end: 0;
|
|
237
|
-
padding-inline-start: 0;
|
|
238
|
-
}
|
|
239
|
-
`;export{s as BodyWrapper,g as PortalWrapper,h as Wrapper};
|
package/dist/es/select/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t}from"react/jsx-runtime";import{forwardRef as o,useRef as r,useMemo as i,useCallback as n,useState as s,useEffect as l,useImperativeHandle as a,createElement as c}from"react";import d from"./option/Option.js";import u from"./toggle/Toggle.js";import m from"./dropdown/Dropdown.js";import f from"../hooks/useOnClickOutside.js";import"../index.js";import{Wrapper as p}from"./styled.js";import{useTranslation as g}from"react-i18next";import{ComponentSizes as y,ComponentVariants as L,ComponentXPositions as h,ComponentYPositions as v,ComponentSizesSlug as E}from"../enums/enum.js";import A from"../utils/GetSizeSlugBySize.js";import w from"../node_modules/uuid/dist/esm-browser/v4.js";import b from"../hooks/useOnESCKeyDown.js";import"../logger/index.js";import"react-router-dom";import"axios";let S=null;const k=new Map,T=e=>{S===e&&(S=null)},C=o(({id:o,position:C=v.BOTTOM,direction:j=h.RIGHT,size:x=y.DEFAULT,variant:D=L.DEFAULT,placeholder:M="Please Select",className:I="",multi:U=!1,disabled:F=!1,showSearch:O=!1,locked:z=!1,options:G=[],value:R,defaultValue:B,label:N,prefix:V,icon:$,image:_,style:X,onChange:q,onUpdate:H},K)=>{const{t:P}=g("itd"),J=r(null),Q=i(()=>o||"itd-select-"+w(),[o]),W=n(()=>{try{const e=document.getElementById(Q);e&&e.focus({preventScroll:!0})}catch{const e=document.getElementById(Q);e&&e.focus()}},[Q]),[Y,Z]=s(!1),[ee,te]=s(""),[oe,re]=s(void 0),[ie,ne]=s(""),[se,le]=s(!1),[ae,ce]=s(!1),[de,ue]=s(!1),[me,fe]=s(!1);l(()=>{Y||setTimeout(()=>{te("")},300)},[Y]),l(()=>{void 0!==B&&re(B)},[B]),l(()=>{void 0!==R&&re(R)},[R]),l(()=>{if(!se)return;const e=e=>{["ArrowDown","ArrowUp","Enter","Escape","Tab","Home","End"].includes(e.key)&&ue(!0)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[se]),f(J,e=>{if(Y){const t=document.getElementById("itd-select-portal-root");if(t&&t.contains(e.target))return;const o=J.current?.querySelector(".itd-select-selector");if(o&&o.contains(e.target))return;Z(!1),me||de?(W(),le(!0),ce(!0)):(le(!1),ce(!1),fe(!1),ue(!1))}}),b(()=>{Y&&ye(!1,"keyboard")}),l(()=>{const e=J.current;if(!e)return;const t=t=>{le(!0),t.relatedTarget&&e.contains(t.relatedTarget)||(fe(!0),ce(!0))},o=()=>{le(!1),ce(!1),fe(!1),ue(!1)};e.addEventListener("focusin",t),e.addEventListener("focusout",o);return((e,t)=>{k.set(e,t)})(Q,()=>{Z(!1),le(!1),ce(!1)}),()=>{e.removeEventListener("focusin",t),e.removeEventListener("focusout",o),(e=>{k.delete(e)})(Q)}},[Q]);const pe=n(e=>{z||Z(e)},[z]),ge=n(()=>{z||le(!0)},[z]),ye=n((e,t)=>{z&&e||(e?((e=>{if(S&&S!==e){const e=k.get(S);e&&e()}S=e})(Q),W()):(T(Q),W(),le(!0),"pointer"===t?(ce(!1),fe(!1),ue(!1)):"keyboard"===t?(ce(!0),ue(!0)):ce(!(!me&&!de))),Z(e))},[z,W,Q,me,de]),Le=n(e=>{z||Y&&te(e)},[Y,z]),he=(e,t=!0,o=!0)=>{H&&H(e,t,o)};a(K,()=>({reset(e=!0,t=!0){const o=B||(U?[]:void 0);re(o),ne(""),he(o,e,t)},setValue(e,t=!0,o=!0){re(e),he(e,t,o)},getValue:()=>oe||(U?[]:""),setError(e){ne(e||"")},clear(){}}));const ve=n(()=>{Z(!1),W(),le(!0),de?ce(!0):(ce(!1),fe(!1),ue(!1))},[W,de]),Ee=n(e=>{ne(""),he(e),re(e),U||(T(Q),Z(!1),W(),le(!0),de?ce(!0):(ce(!1),fe(!1),ue(!1))),q&&q(e)},[U,q,he,Q,W,de]),Ae=i(()=>{let t=[];return G.forEach(e=>{if(""!==ee&&"string"==typeof e.value&&("searchText"in e&&"string"==typeof e.searchText?!e.searchText.toLocaleLowerCase().includes(ee.toLocaleLowerCase()):!e.value.toLocaleLowerCase().includes(ee.toLocaleLowerCase())&&!(e=>{if("string"==typeof e)return e.toLocaleLowerCase();if(Array.isArray(e)){let t="";return e.forEach(e=>{"string"==typeof e&&(t+=e.toLocaleLowerCase())}),t}return""})(e.label).includes(ee.toLocaleLowerCase())))return;let o={value:e.value,label:e.label,disabled:e.disabled||!1,variant:D,size:A(x)};e.icon&&(o={...o,icon:e.icon}),e.image&&(o={...o,image:e.image}),e.key&&(o={...o,customKey:e.key}),U&&oe&&Array.isArray(oe)&&(o={...o,multi:!0,checked:oe.includes(e.value.toString())}),t.push(c(d,{...o,key:e.key?e.key:e.value.toString()}))}),0===t.length&&t.push(e("div",{className:"itd-select-not-found",style:{padding:"1.25rem",textAlign:"center"},children:"Not Found"},"not-found")),t},[G,ee,U,oe]),we=()=>x===y.X_SMALL?E.X_SMALL:x===y.SMALL?E.SMALL:x===y.MEDIUM?E.MEDIUM:x===y.DEFAULT?E.DEFAULT:x===y.LARGE?E.LARGE:x===y.X_LARGE?E.X_LARGE:E.DEFAULT,be=i(()=>({style:X,disabled:F,$hasImage:null!=_,$hasIcon:null!=$,$size:we(),$variant:D}),[X,F,_,$,x,D,oe]),Se=i(()=>{let e="itd-select";return e+=" itd-select-"+D,e+=" itd-select-"+(U?"multi":"single"),e+=" itd-select-"+j,e+=" itd-select-"+we(),!Y&&ae&&(e+=" keyboard-focus"),Y&&(e+=" itd-select-open"),ie&&(e+=" itd-select-status-error"),F&&(e+=" itd-select-disabled"),z&&(e+=" itd-select-locked"),O&&(e+=" itd-select-search"),$&&(e+=" itd-icon"),_&&(e+=" itd-image"),""!==I&&(e+=" "+I),e},[D,U,j,x,Y,ie,ae,F,O,$,_,I,z]);return l(()=>{if(Y&&U&&oe&&Array.isArray(oe)&&oe.length>0){const e=G.find(e=>oe.includes(e.value.toString()));if(e){const t=document.querySelector(`[data-value="${e.value}"]`);t&&setTimeout(()=>{t.scrollIntoView({behavior:"instant",block:"nearest",inline:"start"})},50)}}},[Y]),t(p,{ref:J,className:Se,...be,children:[e(u,{id:Q,placeholder:G.length>0?M:"",onChange:pe,onFocus:ge,onShow:ye,onFilter:Le,errorMessage:ie,size:x,icon:$,prefix:V,image:_,label:(()=>{if(N)return N;if(void 0===oe)return;let e="";if(U){const t=G.filter(e=>e.value===oe[0])[0];Array.isArray(oe)&&(1===oe.length?t&&(e=t.label):oe.length>1&&(e=P("placeholders.multipleSelection",{count:oe.length})))}else{const t=G.filter(e=>e.value===oe)[0];t&&(e=t.label)}return e})(),disabled:F,isOpen:Y,multi:U,locked:z,showSearch:O}),e(m,{onClose:ve,onChange:Ee,defaultValue:oe,position:C,direction:j,variant:D,isOpen:Y,multi:U,usePortal:!0,selectRef:J,size:x,children:Ae})]})});C.displayName="ITD-Select";export{C as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t}from"react/jsx-runtime";import{memo as i,useRef as o,useState as n,useEffect as a,useMemo as l}from"react";import c from"../../checkbox/index.js";import{Wrapper as s,Single as r,ImageWrapper as d}from"./styled.js";import{ComponentSizesSlug as m,ComponentVariants as u}from"../../enums/enum.js";const p=({multi:i=!1,checked:p=!1,variant:h=u.DEFAULT,size:g=m.DEFAULT,icon:v="",image:b="",value:f="",customKey:k="",disabled:N=!1,isActive:x=!1,index:y=-1,onHover:T,onChange:P,label:j})=>{const A=o(null),[C,E]=n(null);a(()=>{p&&!i&&setTimeout(()=>A.current?.scrollIntoView({behavior:"instant",block:"nearest",inline:"start"}),50)},[p,i]);const S=e=>{e.stopPropagation(),P&&j&&P(f,!0,j)},D=e=>{e.stopPropagation(),P&&j&&P(f,e.checked,j)},F=e=>{E(e.touches[0].clientY)},M=e=>{if(null!==C){const t=e.changedTouches[0].clientY;Math.abs(t-C)<10&&S(e)}E(null)},U=l(()=>{let e="itd-select-item itd-select-item-option";return i||(e+=" itd-item-single"),i&&(e+=" itd-item-multi"),p&&(e+=" itd-select-item-option-selected"),N&&(e+=" itd-select-item-option-disabled"),g&&(e+=" itd-select-item-option-"+g),h&&(e+=" itd-select-item-option-"+h),!x||p||N||(e+=" itd-select-item-option-active"),e},[i,p,x,N,g,h]);return e(s,{className:U,ref:A,"data-value":f.toString(),onMouseMove:()=>{if(y>=0&&T)if(N)T(-1);else{T(y);const e=document.activeElement;e&&"INPUT"===e.tagName&&"checkbox"===e.getAttribute("type")&&e.blur()}},onClick:i?e=>{i&&!N&&(e.stopPropagation(),D({checked:!p,value:f,className:"itd-checkbox",disabled:!1,target:null,stopPropagation:()=>{},preventDefault:()=>{}}))}:void 0,style:i?{cursor:"pointer"}:void 0,children:i?e("div",{onFocus:()=>{!N&&y>=0&&T&&T(y)},children:e(c,{className:"itd-select-option-multi"+(x?" itd-checkbox-keyboard-active":""),variant:h,checked:p,readOnly:!0,disabled:N,animated:!0,onChange:D,children:j})}):t(r,{className:"itd-select-option-single",onClick:S,onTouchStart:F,onTouchEnd:M,"data-disabled":N?"true":"false",children:[b?e(d,{className:"itd-image",children:e("img",{className:"itd-select-option-image",src:b,height:"20",alt:String(f)})}):v?e(d,{className:"itd-image",children:v}):null,e("span",{children:j})]})},k||f.toString())};var h=i(p);p.displayName="Option";export{h as default};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import t from"styled-components";const e=t.li`
|
|
2
|
-
|
|
3
|
-
display: flex;
|
|
4
|
-
min-width: max-content;
|
|
5
|
-
align-items: center;
|
|
6
|
-
cursor: pointer;
|
|
7
|
-
|
|
8
|
-
&:not(:last-child) {
|
|
9
|
-
margin-bottom: 0.0625rem;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
`,i=t.div`
|
|
13
|
-
|
|
14
|
-
img {
|
|
15
|
-
pointer-events: none;
|
|
16
|
-
display: block;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
`;t.div`
|
|
20
|
-
|
|
21
|
-
`;const n=t.div`
|
|
22
|
-
|
|
23
|
-
display: flex;
|
|
24
|
-
justify-content: flex-start;
|
|
25
|
-
align-items: center;
|
|
26
|
-
width: 100%;
|
|
27
|
-
|
|
28
|
-
&[data-disabled="true"] {
|
|
29
|
-
cursor: not-allowed;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
span {
|
|
33
|
-
white-space: nowrap;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
`;export{i as ImageWrapper,n as Single,e as Wrapper};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ComponentSizesSlug as i}from"../enums/enum.js";import{SELECT_SIZE_MAP as g,ICON_TOKENS as e}from"../helpers/theme/tokens.js";const t="0.4375rem",h="1.25rem",d=g=>g===i.X_SMALL?e.image.xs:g===i.SMALL?e.image.sm:g===i.MEDIUM?e.image.md:g===i.DEFAULT?e.image.df:g===i.LARGE?e.image.lg:g===i.X_LARGE?e.image.xl:e.image.df,n=g=>g===i.X_SMALL?e.arrow.xs:g===i.SMALL?e.arrow.sm:g===i.MEDIUM?e.arrow.md:g===i.DEFAULT?e.arrow.df:g===i.LARGE?e.arrow.lg:g===i.X_LARGE?e.arrow.xl:e.arrow.df,f=e=>e===i.X_SMALL?{paddingX:g.xs.paddingX,height:g.xs.height}:e===i.SMALL?{paddingX:g.sm.paddingX,height:g.sm.height}:e===i.MEDIUM?{paddingX:g.md.paddingX,height:g.md.height}:e===i.DEFAULT?{paddingX:g.df.paddingX,height:g.df.height}:e===i.LARGE?{paddingX:g.lg.paddingX,height:g.lg.height}:e===i.X_LARGE?{paddingX:g.xlg.paddingX,height:g.xlg.height}:{paddingX:g.df.paddingX,height:g.df.height},a=e=>e===i.X_SMALL?{paddingX:g.xs.paddingX,height:g.xs.height}:e===i.SMALL?{paddingX:g.sm.paddingX,height:g.sm.height}:e===i.MEDIUM?{paddingX:g.md.paddingX,height:g.md.height}:e===i.DEFAULT?{paddingX:g.df.paddingX,height:g.df.height}:e===i.LARGE?{paddingX:g.lg.paddingX,height:g.lg.height}:e===i.X_LARGE?{paddingX:g.xlg.paddingX,height:g.xlg.height}:{paddingX:g.df.paddingX,height:g.df.height},o=e=>e===i.X_SMALL?{fontSize:g.xs.fontSize,lineHeight:g.xs.lineHeight,fontWeight:g.xs.fontWeight}:e===i.SMALL?{fontSize:g.sm.fontSize,lineHeight:g.sm.lineHeight,fontWeight:g.sm.fontWeight}:e===i.MEDIUM?{fontSize:g.md.fontSize,lineHeight:g.md.lineHeight,fontWeight:g.md.fontWeight}:e===i.DEFAULT?{fontSize:g.df.fontSize,lineHeight:g.df.lineHeight,fontWeight:g.df.fontWeight}:e===i.LARGE?{fontSize:g.lg.fontSize,lineHeight:g.lg.lineHeight,fontWeight:g.lg.fontWeight}:e===i.X_LARGE?{fontSize:g.xlg.fontSize,lineHeight:g.xlg.lineHeight,fontWeight:g.xlg.fontWeight}:{fontSize:g.df.fontSize,lineHeight:g.df.lineHeight,fontWeight:g.df.fontWeight};export{t as ICON_MARGIN_RIGHT,h as ICON_SIZE_DEFAULT,n as getArrowSizeBySize,o as getFontSizeBySize,d as getImageSizeBySize,f as getOptionSizeBySize,a as getSelectSizeBySize};
|
package/dist/es/select/styled.js
DELETED
|
@@ -1,331 +0,0 @@
|
|
|
1
|
-
import e,{css as t}from"styled-components";import{withOpacity as o}from"../helpers/theme/Color.js";import{getArrowSizeBySize as r,getImageSizeBySize as i,getFontSizeBySize as n,ICON_MARGIN_RIGHT as l,ICON_SIZE_DEFAULT as s,getSelectSizeBySize as c}from"./style.settings.js";import{ThemeAppearances as d}from"../enums/enum.js";const a=e.div`
|
|
2
|
-
|
|
3
|
-
position: relative;
|
|
4
|
-
height: max-content;
|
|
5
|
-
|
|
6
|
-
ul {
|
|
7
|
-
margin-block-start: 0;
|
|
8
|
-
margin-block-end: 0;
|
|
9
|
-
padding-inline-start: 0;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
/* ------------------------ */
|
|
13
|
-
// TOGGLE
|
|
14
|
-
/* ------------------------ */
|
|
15
|
-
${e=>(e=>{const o=r(e),c=i(e),d=n(e);return t`
|
|
16
|
-
.itd-select-selector {
|
|
17
|
-
|
|
18
|
-
border-radius : calc( ${({theme:e})=>e.borderRadius} - 0.125rem);
|
|
19
|
-
transition-property : border-color;
|
|
20
|
-
transition-duration : ${({theme:e})=>e.transitionDuration};
|
|
21
|
-
transition-timing-function : ${({theme:e})=>e.transitionTimingFunction};
|
|
22
|
-
|
|
23
|
-
.itd-image.itd-svg {
|
|
24
|
-
display : flex;
|
|
25
|
-
align-items : center;
|
|
26
|
-
margin-right : ${l};
|
|
27
|
-
min-width : ${c.width};
|
|
28
|
-
min-height : ${c.height};
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
img, .itd-svg svg {
|
|
32
|
-
width : ${c.width};
|
|
33
|
-
height : ${c.height};
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.itd-select-arrow {
|
|
37
|
-
transition-property : transform;
|
|
38
|
-
transition-duration : ${({theme:e})=>e.transitionDuration};
|
|
39
|
-
transition-timing-function : ${({theme:e})=>e.transitionTimingFunction};
|
|
40
|
-
|
|
41
|
-
svg {
|
|
42
|
-
width : ${o.width};
|
|
43
|
-
height : ${o.height};
|
|
44
|
-
color : ${({theme:e})=>e.colorIcon};
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.itd-icon {
|
|
49
|
-
color: ${({theme:e})=>e.colorIcon};
|
|
50
|
-
font-size: ${s};
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.itd-select-status-error {
|
|
54
|
-
border: 1px solid ${({theme:e})=>e.colorErrorBorder};
|
|
55
|
-
border-radius: calc( ${({theme:e})=>e.borderRadius} - 0.125rem);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.itd-select-selection-item {
|
|
59
|
-
|
|
60
|
-
.itd-select-selection-label {
|
|
61
|
-
|
|
62
|
-
&.itd-select-selection-item-single {
|
|
63
|
-
|
|
64
|
-
border-radius : calc( ${({theme:e})=>e.borderRadius} - 0.125rem);
|
|
65
|
-
transition-property : background-color;
|
|
66
|
-
transition-duration : ${({theme:e})=>e.transitionDuration};
|
|
67
|
-
transition-timing-function : ${({theme:e})=>e.transitionTimingFunction};
|
|
68
|
-
|
|
69
|
-
input, input::placeholder {
|
|
70
|
-
font-weight: ${d.fontWeight};
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
input {
|
|
74
|
-
|
|
75
|
-
font-size: ${d.fontSize};
|
|
76
|
-
color: ${({theme:e})=>e.colorText};
|
|
77
|
-
&::placeholder {
|
|
78
|
-
color: ${({theme:e})=>e.colorPlaceholder};
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
border-radius : calc( ${({theme:e})=>e.borderRadius} - 0.125rem);
|
|
85
|
-
transition-property : background-color;
|
|
86
|
-
transition-duration : ${({theme:e})=>e.transitionDuration};
|
|
87
|
-
transition-timing-function : ${({theme:e})=>e.transitionTimingFunction};
|
|
88
|
-
|
|
89
|
-
[type=text] {
|
|
90
|
-
font-size: ${d.fontSize};
|
|
91
|
-
color: ${({theme:e})=>e.colorText};
|
|
92
|
-
caret-color: ${({theme:e})=>e.colorText};
|
|
93
|
-
|
|
94
|
-
&::placeholder {
|
|
95
|
-
color: rgba(0, 0, 0, 0);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
span, label {
|
|
100
|
-
|
|
101
|
-
color: ${({theme:e})=>e.colorText};
|
|
102
|
-
font-weight: ${d.fontWeight};
|
|
103
|
-
|
|
104
|
-
&::before {
|
|
105
|
-
color : ${({theme:e})=>e.colorTextMuted};
|
|
106
|
-
transition-property : transform;
|
|
107
|
-
transition-duration : ${({theme:e})=>e.transitionDuration};
|
|
108
|
-
transition-timing-function : ${({theme:e})=>e.transitionTimingFunction};
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
`})(e.$size)}
|
|
118
|
-
|
|
119
|
-
/* ------------------------ */
|
|
120
|
-
// SIZE
|
|
121
|
-
/* ------------------------ */
|
|
122
|
-
${e=>(e=>{const o=c(e);return t`
|
|
123
|
-
|
|
124
|
-
.itd-select-selector {
|
|
125
|
-
|
|
126
|
-
/* debug border removed */
|
|
127
|
-
height : ${o.height};
|
|
128
|
-
padding-right : ${o.paddingX};
|
|
129
|
-
padding-left : ${o.paddingX};
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
`})(e.$size)}
|
|
134
|
-
|
|
135
|
-
/* ------------------------ */
|
|
136
|
-
// TYPE
|
|
137
|
-
/* ------------------------ */
|
|
138
|
-
${()=>t`
|
|
139
|
-
|
|
140
|
-
&.itd-select-default {
|
|
141
|
-
|
|
142
|
-
.itd-select-selector {
|
|
143
|
-
|
|
144
|
-
box-shadow : ${({theme:e})=>e.boxShadow};
|
|
145
|
-
outline : 0 solid transparent;
|
|
146
|
-
outline-offset : ${({theme:e})=>e.ringOffset};
|
|
147
|
-
border : 1px solid transparent;
|
|
148
|
-
border-color : ${({theme:e})=>e.colorBorder};
|
|
149
|
-
|
|
150
|
-
transition : outline 100ms linear,
|
|
151
|
-
border-color ${({theme:e})=>e.transitionDuration} ${({theme:e})=>e.transitionTimingFunction};
|
|
152
|
-
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
&.itd-select-open {
|
|
156
|
-
.itd-select-selector {
|
|
157
|
-
/* Default varyant açıkken border seçili görünür */
|
|
158
|
-
border-color: ${({theme:e})=>e.primaryScale[e.appearance===d.LIGHT?400:900]};
|
|
159
|
-
}
|
|
160
|
-
&.itd-select-status-error {
|
|
161
|
-
.itd-select-selector {
|
|
162
|
-
border-color: ${({theme:e})=>e.colorErrorBorder};
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
/* Keyboard/pointer focus: gösterilebilir outline. TAB ile outline görünür, pointer ile de tutarlı davranır */
|
|
168
|
-
&.keyboard-focus {
|
|
169
|
-
.itd-select-selector {
|
|
170
|
-
border-color: ${({theme:e})=>e.primaryScale[e.appearance===d.LIGHT?400:900]};
|
|
171
|
-
outline: ${({theme:e})=>e.ringWidth} solid ${({theme:e})=>o(e.primaryScale[e.appearance===d.LIGHT?400:900],.5)};
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
&.keyboard-focus.itd-select-status-error {
|
|
176
|
-
.itd-select-selector {
|
|
177
|
-
border-color: ${({theme:e})=>e.colorErrorBorder};
|
|
178
|
-
outline: ${({theme:e})=>e.ringWidth} solid ${({theme:e})=>o(e.colorErrorBorder,.5)};
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
&:not(.itd-select-open):not(.itd-select-disabled):not(.keyboard-focus) {
|
|
183
|
-
.itd-select-selector:hover {
|
|
184
|
-
border-color: ${({theme:e})=>e.colorBorderHover};
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
/* Mouse basılı tutulduğunda (açılma anında) border seçili görünsün */
|
|
189
|
-
&:not(.itd-select-disabled):not(.itd-select-open) {
|
|
190
|
-
.itd-select-selector:active {
|
|
191
|
-
border-color: ${({theme:e})=>e.primaryScale[e.appearance===d.LIGHT?400:900]};
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
/* Error durumunda active state */
|
|
196
|
-
&.itd-select-status-error:not(.itd-select-disabled):not(.itd-select-open) {
|
|
197
|
-
.itd-select-selector:active {
|
|
198
|
-
border-color: ${({theme:e})=>e.colorErrorBorder};
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
&.itd-select-filled {
|
|
205
|
-
|
|
206
|
-
&.itd-select-open {
|
|
207
|
-
.itd-select-selector {
|
|
208
|
-
background-color: ${({theme:e})=>e.colorBackgroundAltHover};
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
.itd-select-selector {
|
|
213
|
-
|
|
214
|
-
border : none;
|
|
215
|
-
background-color : ${({theme:e})=>e.colorBackgroundAlt};
|
|
216
|
-
outline : 0 solid transparent;
|
|
217
|
-
outline-offset : ${({theme:e})=>e.ringOffset};
|
|
218
|
-
|
|
219
|
-
transition : outline 100ms linear,
|
|
220
|
-
background-color ${({theme:e})=>e.transitionDuration} ${({theme:e})=>e.transitionTimingFunction};
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
&.keyboard-focus {
|
|
226
|
-
.itd-select-selector {
|
|
227
|
-
outline: ${({theme:e})=>e.ringWidth} solid ${({theme:e})=>o(e.primaryScale[e.appearance===d.LIGHT?400:900],.5)};
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
&.keyboard-focus.itd-select-status-error {
|
|
232
|
-
.itd-select-selector {
|
|
233
|
-
outline: ${({theme:e})=>e.ringWidth} solid ${({theme:e})=>o(e.colorErrorBorder,.5)};
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
&:not(.itd-select-open):not(.itd-select-disabled):not(.keyboard-focus) {
|
|
238
|
-
.itd-select-selector:hover {
|
|
239
|
-
background-color: ${({theme:e})=>e.colorBackgroundAltHover};
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
/* Mouse basılı tutulduğunda (açılma anında) background seçili görünsün */
|
|
244
|
-
&:not(.itd-select-disabled):not(.itd-select-open) {
|
|
245
|
-
.itd-select-selector:active {
|
|
246
|
-
background-color: ${({theme:e})=>e.colorBackgroundAltHover};
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
`}
|
|
253
|
-
|
|
254
|
-
/* ------------------------ */
|
|
255
|
-
// LABEL SIZE
|
|
256
|
-
/* ------------------------ */
|
|
257
|
-
${e=>(e=>{const o=i(e),r=c(e),l=n(e);return t`
|
|
258
|
-
|
|
259
|
-
.itd-select-selector {
|
|
260
|
-
.itd-icon {
|
|
261
|
-
font-size: ${o.height};
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
.itd-select-selection-item {
|
|
266
|
-
.itd-select-selection-label {
|
|
267
|
-
|
|
268
|
-
[type=text] {
|
|
269
|
-
height: ${r.height};
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
&.itd-select-selection-item-single {
|
|
273
|
-
span, label {
|
|
274
|
-
font-size : ${l.fontSize};
|
|
275
|
-
line-height : ${l.lineHeight};
|
|
276
|
-
font-weight : ${l.fontWeight};
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
`})(e.$size)}
|
|
284
|
-
|
|
285
|
-
/* ------------------------ */
|
|
286
|
-
// DISABLED
|
|
287
|
-
/* ------------------------ */
|
|
288
|
-
${()=>t`
|
|
289
|
-
&[disabled] {
|
|
290
|
-
|
|
291
|
-
.itd-select-selector {
|
|
292
|
-
|
|
293
|
-
background-color: ${({theme:e})=>e.colorDisabledBg};
|
|
294
|
-
border: 1px solid ${({theme:e})=>e.colorDisabledBorder};
|
|
295
|
-
border-radius: calc( ${({theme:e})=>e.borderRadius} - 0.125rem);
|
|
296
|
-
cursor: not-allowed;
|
|
297
|
-
|
|
298
|
-
.itd-select-selection-item input[disabled] {
|
|
299
|
-
color: ${({theme:e})=>e.colorDisabledText};
|
|
300
|
-
&::placeholder {
|
|
301
|
-
color: ${({theme:e})=>e.colorDisabledText};
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
.itd-select-arrow {
|
|
306
|
-
svg {
|
|
307
|
-
fill: ${({theme:e})=>e.colorDisabledText};
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
.itd-image {
|
|
312
|
-
filter: grayscale(100%);
|
|
313
|
-
opacity: 0.5;
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
}
|
|
319
|
-
`}
|
|
320
|
-
|
|
321
|
-
/* ------------------------ */
|
|
322
|
-
// LOCKED
|
|
323
|
-
/* ------------------------ */
|
|
324
|
-
${()=>t`
|
|
325
|
-
|
|
326
|
-
&.itd-select-locked .itd-select-selector {
|
|
327
|
-
cursor: not-allowed;
|
|
328
|
-
}
|
|
329
|
-
`}
|
|
330
|
-
|
|
331
|
-
`;export{a as Wrapper};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsxs as e,jsx as i}from"react/jsx-runtime";import{useRef as s,useState as o,useEffect as r}from"react";import t from"./label/Label.js";import l from"../../image/index.js";import{Wrapper as n,Prefix as a,PreIcon as c,LabelWrapper as d,Suffix as m,Icon as h,LockIconWrapper as f}from"./styled.js";import{ErrorBorder as p,ErrorIcon as u}from"../../utils/CommonStyledComponents.js";import g from"../../utils/InlineSVGCached.js";import{ComponentSizes as N}from"../../enums/enum.js";import b from"../../node_modules/lucide-react/dist/esm/icons/chevron-down.js";const w=({id:w,errorMessage:j="",isOpen:v=!1,locked:S=!1,disabled:x=!1,showSearch:F=!1,size:z=N.DEFAULT,placeholder:C,label:D,prefix:O,icon:$,image:k,onFocus:y,onShow:L,onFilter:P})=>{const A=s(null),[E,G]=o(!1);r(()=>{G(v)},[v]);const H=()=>{if(S)return i(f,{className:"itd-svg",width:"16",height:"16"})},I=()=>{if(""!==j&&!x)return i(u,{message:j,className:"itd-select-failed itd-error-icon",tooltipPosition:"top-right"})};return e(n,{$showSearch:F,className:"itd-select-selector",onPointerDown:x||S?void 0:e=>{0===e.button&&(e.preventDefault(),y(),L(!E,"pointer"))},children:[(()=>{if(O)return i(a,{className:"itd-select-prefix",children:O})})(),$?i(c,{className:"itd-icon "+$}):k?k.indexOf(".svg")>-1?i(g,{src:k,className:"itd-image itd-svg"}):i(l,{src:k,height:"20",brokenHeight:"20",className:"itd-image"}):void 0,i(d,{className:"itd-select-selection-item",children:i(t,{id:w,placeholder:C,label:D||void 0,size:z,isOpen:E,showSearch:F,disabled:x,onFocus:y,onFilter:P,onShow:L,ref:A})}),(()=>{if(""!==j&&!x)return i(p,{$fullSize:!0,className:"itd-error-border"})})(),e(m,{className:"itd-select-suffix",children:[I(),H(),i(h,{$open:E,className:"itd-select-arrow",children:i(b,{size:16})})]})]})};export{w as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import{forwardRef as t,useRef as r,useState as l,useMemo as n,useEffect as o,useImperativeHandle as a,useCallback as i}from"react";import{Wrapper as s}from"./styled.js";import u from"../../../node_modules/uuid/dist/esm-browser/v4.js";const c=t(({id:t="",isOpen:c=!1,showSearch:d=!1,disabled:p=!1,label:f,placeholder:m,onFocus:v,onFilter:g,onShow:h},y)=>{const b=r(null),[w,D]=l(null),[E,S]=l(!1),A=n(()=>t||"itd-select-toggle-single-"+u(),[t]);o(()=>{if(!c)return D(null),void S(!1);F(),w===f&&D(null)},[c]),o(()=>{D(void 0!==f?f:null)},[f]);const F=()=>{d&&(b.current?.focus(),b.current?.select())};a(y,()=>({setFocus(){F()}}));const j=i(e=>{if(E)return;let t="";t=e.target.defaultValue!==w&&""!==e.target.defaultValue?e.target.value.replace(e.target.defaultValue,""):e.target.value,D(t),g(t)},[w,g,E]),k=n(()=>{if(void 0!==f)return"string"!=typeof f&&"number"!=typeof f?"type mismatch! please define custom label parameter.":f.toString();let e="";return c?null!==w?e=w:void 0===f&&void 0!==m&&(e=m):void 0!==m&&(e=m),"string"!=typeof e&&"number"!=typeof e?"type mismatch! please define custom label parameter.":e.toString()},[f,c,w,m]),x=n(()=>{let e="";return c?null!==w&&(e=w):void 0!==f&&(e=f),"string"!=typeof e&&"number"!=typeof e?"type mismatch! please define custom label parameter.":e},[c,w,f]),C=i(e=>{const t=e.key;if("Escape"===t)return e.preventDefault(),void h(!1);if("Tab"!==t){if(c||!d||1!==t.length&&"Backspace"!==t&&"Delete"!==t){if(c&&d){if("ArrowDown"===t||"ArrowUp"===t||"Home"===t||"End"===t)return e.preventDefault(),void S(!0);if("Enter"===t)return void(E&&e.preventDefault());1!==t.length&&"Backspace"!==t&&"Delete"!==t||S(!1)}return c||" "!==t&&"Enter"!==t&&"ArrowDown"!==t&&"ArrowUp"!==t?void 0:(h(!0),void e.preventDefault())}h(!0)}},[c,h,d]),V=i(()=>{v();try{const e=b.current;e&&!c&&e.setSelectionRange(e.value.length,e.value.length)}catch{}},[v,c]),B=n(()=>({type:"text",readOnly:!d,autoComplete:"off"}),[d]),N=n(()=>{let e="itd-select-selection-input";return d||(e+=" itd-select-no-interactions"),e},[d]),O=n(()=>({width:"100%",pointerEvents:"none",caretColor:d?"inherit":"transparent"}),[d]);return e(s,{className:"itd-select-selection-label itd-select-selection-item-single",children:e("input",{id:A,className:N,value:x,disabled:p,placeholder:k,onChange:j,onKeyDown:C,onFocus:V,ref:b,style:O,...B})})});export{c as default};
|