@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.
Files changed (601) hide show
  1. package/dist/alert/index.d.ts +1 -3
  2. package/dist/alert/styled.d.ts +7 -3
  3. package/dist/alink/styled.d.ts +1 -1
  4. package/dist/button/button.style.SVG.d.ts +4 -0
  5. package/dist/button/index.d.ts +1 -1
  6. package/dist/card/index.d.ts +1 -1
  7. package/dist/card/styles.d.ts +1 -2
  8. package/dist/checkbox/styled.d.ts +2 -3
  9. package/dist/cropper/index.d.ts +38 -0
  10. package/dist/datepicker/styled.d.ts +2 -2
  11. package/dist/enums/enum.d.ts +5 -16
  12. package/dist/form/context/FormContext.d.ts +0 -3
  13. package/dist/form/context/FormStore.d.ts +1 -4
  14. package/dist/form/item/Item.d.ts +1 -0
  15. package/dist/global.css +113 -333
  16. package/dist/helpers/index.d.ts +0 -4
  17. package/dist/index.cjs.js +5480 -0
  18. package/dist/index.d.mts +25 -65
  19. package/dist/index.d.ts +196 -731
  20. package/dist/index.esm.js +5480 -0
  21. package/dist/input/styled.d.ts +17 -15
  22. package/dist/locales/en/itd.json +14 -30
  23. package/dist/locales/itd.json +14 -30
  24. package/dist/locales/tr/itd.json +14 -30
  25. package/dist/radio/button/RadioButton.d.ts +1 -1
  26. package/dist/result/index.d.ts +1 -1
  27. package/dist/select/menu/Menu.d.ts +14 -0
  28. package/dist/select/menu/styled.d.ts +8 -0
  29. package/dist/select/option/Option.d.ts +3 -10
  30. package/dist/select/style.settings.d.ts +26 -83
  31. package/dist/select/styled.d.ts +2 -4
  32. package/dist/select/toggle/Toggle.d.ts +1 -1
  33. package/dist/select/toggle/label/floating/FloatingLabel.d.ts +12 -0
  34. package/dist/select/toggle/label/floating/styled.d.ts +8 -0
  35. package/dist/select/toggle/label/{Label.d.ts → single/SingleLabel.d.ts} +5 -5
  36. package/dist/select/toggle/styled.d.ts +4 -4
  37. package/dist/stories/Accordion.d.ts +1 -0
  38. package/dist/stories/Alert.stories.d.ts +1 -15
  39. package/dist/stories/Button.d.ts +1 -0
  40. package/dist/stories/Button.stories.d.ts +1 -8
  41. package/dist/stories/ButtonIcon.d.ts +2 -0
  42. package/dist/stories/Card.stories.d.ts +0 -1
  43. package/dist/stories/DatePicker.d.ts +1 -0
  44. package/dist/stories/Form.stories.d.ts +1 -11
  45. package/dist/stories/Header.d.ts +1 -0
  46. package/dist/stories/Input.d.ts +1 -0
  47. package/dist/stories/Input.stories.d.ts +2 -89
  48. package/dist/stories/ModalManager.d.ts +1 -0
  49. package/dist/stories/Page.d.ts +1 -0
  50. package/dist/stories/Select.d.ts +1 -0
  51. package/dist/stories/Select.stories.d.ts +3 -13
  52. package/dist/stories/Switch.stories.d.ts +1 -8
  53. package/dist/stories/TextArea.d.ts +1 -0
  54. package/dist/stories/TextArea.stories.d.ts +1 -8
  55. package/dist/stories/Upload.stories.d.ts +3 -0
  56. package/dist/stories/root/index.d.ts +1 -0
  57. package/dist/switch/styled.d.ts +1 -1
  58. package/dist/textarea/styled.d.ts +4 -2
  59. package/dist/types/AlertProps.d.ts +4 -5
  60. package/dist/types/ButtonProps.d.ts +2 -2
  61. package/dist/types/CalendarProps.d.ts +1 -0
  62. package/dist/types/CardProps.d.ts +0 -4
  63. package/dist/types/CheckboxProps.d.ts +1 -5
  64. package/dist/types/DatePickerProps.d.ts +3 -2
  65. package/dist/types/FormProps.d.ts +0 -3
  66. package/dist/types/ITDProps.d.ts +2 -4
  67. package/dist/types/InputProps.d.ts +2 -1
  68. package/dist/types/RadioProps.d.ts +0 -1
  69. package/dist/types/ResultProps.d.ts +0 -1
  70. package/dist/types/SelectProps.d.ts +13 -5
  71. package/dist/types/SwitchProps.d.ts +1 -4
  72. package/dist/types/TableProps.d.ts +0 -1
  73. package/dist/types/UploadProps.d.ts +16 -2
  74. package/dist/upload/index.d.ts +1 -1
  75. package/dist/upload/styled.d.ts +2 -5
  76. package/package.json +4 -14
  77. package/dist/alert/Description.d.ts +0 -7
  78. package/dist/alert/Title.d.ts +0 -7
  79. package/dist/alert/alert.style.neutral.d.ts +0 -4
  80. package/dist/cjs/_virtual/_commonjsHelpers.js +0 -1
  81. package/dist/cjs/_virtual/customParseFormat.js +0 -1
  82. package/dist/cjs/_virtual/customParseFormat2.js +0 -1
  83. package/dist/cjs/_virtual/dayjs.min.js +0 -1
  84. package/dist/cjs/_virtual/dayjs.min2.js +0 -1
  85. package/dist/cjs/_virtual/localizedFormat.js +0 -1
  86. package/dist/cjs/_virtual/localizedFormat2.js +0 -1
  87. package/dist/cjs/_virtual/react.js +0 -1
  88. package/dist/cjs/accordion/index.js +0 -1
  89. package/dist/cjs/accordion/item/Item.js +0 -1
  90. package/dist/cjs/accordion/item/styled.js +0 -20
  91. package/dist/cjs/accordion/styled.js +0 -15
  92. package/dist/cjs/accordion/submenu/SubMenu.js +0 -1
  93. package/dist/cjs/accordion/submenu/styled.js +0 -214
  94. package/dist/cjs/alert/Description.js +0 -1
  95. package/dist/cjs/alert/Title.js +0 -1
  96. package/dist/cjs/alert/alert.style.error.js +0 -32
  97. package/dist/cjs/alert/alert.style.info.js +0 -32
  98. package/dist/cjs/alert/alert.style.neutral.js +0 -32
  99. package/dist/cjs/alert/alert.style.success.js +0 -32
  100. package/dist/cjs/alert/alert.style.warning.js +0 -32
  101. package/dist/cjs/alert/index.js +0 -1
  102. package/dist/cjs/alert/styled.js +0 -68
  103. package/dist/cjs/alink/index.js +0 -1
  104. package/dist/cjs/alink/styled.js +0 -5
  105. package/dist/cjs/back-top/index.js +0 -1
  106. package/dist/cjs/back-top/styled.js +0 -25
  107. package/dist/cjs/button/button.style.circle.js +0 -38
  108. package/dist/cjs/button/button.style.default.js +0 -44
  109. package/dist/cjs/button/button.style.filled.js +0 -49
  110. package/dist/cjs/button/button.style.ghost.js +0 -47
  111. package/dist/cjs/button/button.style.icon.js +0 -33
  112. package/dist/cjs/button/button.style.link.js +0 -45
  113. package/dist/cjs/button/button.style.outline.js +0 -49
  114. package/dist/cjs/button/button.style.size.js +0 -187
  115. package/dist/cjs/button/button.style.solid.js +0 -50
  116. package/dist/cjs/button/button.style.strecth.js +0 -8
  117. package/dist/cjs/button/index.js +0 -1
  118. package/dist/cjs/button/styled.js +0 -415
  119. package/dist/cjs/calendar/dates.js +0 -1
  120. package/dist/cjs/calendar/day/Day.js +0 -1
  121. package/dist/cjs/calendar/day/styled.js +0 -91
  122. package/dist/cjs/calendar/header/Header.js +0 -1
  123. package/dist/cjs/calendar/header/styled.js +0 -196
  124. package/dist/cjs/calendar/index.js +0 -1
  125. package/dist/cjs/calendar/styled.js +0 -82
  126. package/dist/cjs/card/index.js +0 -1
  127. package/dist/cjs/card/styles.js +0 -66
  128. package/dist/cjs/checkbox/group/index.js +0 -1
  129. package/dist/cjs/checkbox/group/styled.js +0 -9
  130. package/dist/cjs/checkbox/index.js +0 -1
  131. package/dist/cjs/checkbox/styled.js +0 -340
  132. package/dist/cjs/context/ITDContext.js +0 -1
  133. package/dist/cjs/context/ITDThemeProvider.js +0 -1
  134. package/dist/cjs/context/styled.js +0 -15
  135. package/dist/cjs/datepicker/index.js +0 -1
  136. package/dist/cjs/datepicker/styled.js +0 -60
  137. package/dist/cjs/enums/enum.js +0 -1
  138. package/dist/cjs/flex/index.js +0 -1
  139. package/dist/cjs/flex/styled.js +0 -35
  140. package/dist/cjs/form/context/FormContext.js +0 -1
  141. package/dist/cjs/form/context/FormStore.js +0 -1
  142. package/dist/cjs/form/control/Control.js +0 -1
  143. package/dist/cjs/form/control/styled.js +0 -8
  144. package/dist/cjs/form/group/Group.js +0 -1
  145. package/dist/cjs/form/group/styled.js +0 -7
  146. package/dist/cjs/form/index.js +0 -1
  147. package/dist/cjs/form/item/Item.js +0 -1
  148. package/dist/cjs/form/validation/TCIdentity.js +0 -1
  149. package/dist/cjs/form/validation/Validator.js +0 -1
  150. package/dist/cjs/form/wrapper/FormWrapper.js +0 -1
  151. package/dist/cjs/helpers/array/ChunkArray.js +0 -1
  152. package/dist/cjs/helpers/aspectratio/DetermineNewHeight.js +0 -1
  153. package/dist/cjs/helpers/aspectratio/DetermineNewWidth.js +0 -1
  154. package/dist/cjs/helpers/base64/Base64Decode.js +0 -1
  155. package/dist/cjs/helpers/base64/Base64Encode.js +0 -1
  156. package/dist/cjs/helpers/binary/FormatBytes.js +0 -1
  157. package/dist/cjs/helpers/binary/GetTypeByFileType.js +0 -1
  158. package/dist/cjs/helpers/checker/CheckFileURL.js +0 -1
  159. package/dist/cjs/helpers/checker/FileChecker.js +0 -1
  160. package/dist/cjs/helpers/country/GetCountryCodeByCurrencyCode.js +0 -1
  161. package/dist/cjs/helpers/country/GetCountryCodeByLanguage.js +0 -1
  162. package/dist/cjs/helpers/css/FindSelector.js +0 -1
  163. package/dist/cjs/helpers/currency/ConvertCurrency.js +0 -1
  164. package/dist/cjs/helpers/currency/GetByCurrency.js +0 -1
  165. package/dist/cjs/helpers/currency/GetCurrencyFormat.js +0 -1
  166. package/dist/cjs/helpers/currency/GetCurrencySymbol.js +0 -1
  167. package/dist/cjs/helpers/currency/GetDecimalByCurrency.js +0 -1
  168. package/dist/cjs/helpers/datetime/FormatDate.js +0 -1
  169. package/dist/cjs/helpers/datetime/FormatDateTime.js +0 -1
  170. package/dist/cjs/helpers/datetime/FormatSimpleDate.js +0 -1
  171. package/dist/cjs/helpers/datetime/FormatSimpleDateTime.js +0 -1
  172. package/dist/cjs/helpers/datetime/FormatTime.js +0 -1
  173. package/dist/cjs/helpers/datetime/dayjsSetup.js +0 -1
  174. package/dist/cjs/helpers/format/ToKebabCase.js +0 -1
  175. package/dist/cjs/helpers/json/IsValidJSON.js +0 -1
  176. package/dist/cjs/helpers/math/AddZero.js +0 -1
  177. package/dist/cjs/helpers/promise/Wait.js +0 -1
  178. package/dist/cjs/helpers/remover/RemoveUnits.js +0 -1
  179. package/dist/cjs/helpers/string/UniUpperCase.js +0 -1
  180. package/dist/cjs/helpers/svg/SVGLoader.js +0 -1
  181. package/dist/cjs/helpers/svg/styles.js +0 -22
  182. package/dist/cjs/helpers/theme/AddDefaultThemeStyle.js +0 -1
  183. package/dist/cjs/helpers/theme/Color.js +0 -1
  184. package/dist/cjs/helpers/theme/GenerateColorScale.js +0 -1
  185. package/dist/cjs/helpers/theme/UpdateThemeStyle.js +0 -1
  186. package/dist/cjs/helpers/theme/cssVariables.js +0 -1
  187. package/dist/cjs/helpers/theme/dark.js +0 -1
  188. package/dist/cjs/helpers/theme/light.js +0 -1
  189. package/dist/cjs/helpers/theme/tokens.js +0 -1
  190. package/dist/cjs/helpers/unit/AddDefaultUnit.js +0 -1
  191. package/dist/cjs/helpers/url/ValidURL.js +0 -1
  192. package/dist/cjs/hooks/useAddExternalCSS.js +0 -1
  193. package/dist/cjs/hooks/useAvoidCollision.js +0 -1
  194. package/dist/cjs/hooks/useComponentSize.js +0 -1
  195. package/dist/cjs/hooks/useConnectionStatus.js +0 -1
  196. package/dist/cjs/hooks/useConstructor.js +0 -1
  197. package/dist/cjs/hooks/useContextBridge.js +0 -1
  198. package/dist/cjs/hooks/useCoreFetch.js +0 -1
  199. package/dist/cjs/hooks/useKeyboardShortcut.js +0 -1
  200. package/dist/cjs/hooks/useMultiQuery.js +0 -1
  201. package/dist/cjs/hooks/useOnClickOutside.js +0 -1
  202. package/dist/cjs/hooks/useOnESCKeyDown.js +0 -1
  203. package/dist/cjs/hooks/useOnResize.js +0 -1
  204. package/dist/cjs/hooks/useOrientation.js +0 -1
  205. package/dist/cjs/hooks/useReCaptcha.js +0 -1
  206. package/dist/cjs/hooks/useSingleQuery.js +0 -1
  207. package/dist/cjs/html/header/H1.js +0 -1
  208. package/dist/cjs/html/header/H2.js +0 -1
  209. package/dist/cjs/html/header/H3.js +0 -1
  210. package/dist/cjs/html/header/H4.js +0 -1
  211. package/dist/cjs/html/header/styled.js +0 -33
  212. package/dist/cjs/icons/Arrow.js +0 -1
  213. package/dist/cjs/icons/BackToTop.js +0 -1
  214. package/dist/cjs/icons/Checkmark.js +0 -1
  215. package/dist/cjs/icons/InlineSelectArrow.js +0 -1
  216. package/dist/cjs/icons/Lock.js +0 -1
  217. package/dist/cjs/icons/NoData.js +0 -1
  218. package/dist/cjs/icons/Picture.js +0 -1
  219. package/dist/cjs/icons/Trash.js +0 -1
  220. package/dist/cjs/icons/Upload.js +0 -1
  221. package/dist/cjs/icons/ZoomIn.js +0 -1
  222. package/dist/cjs/icons/ZoomOut.js +0 -1
  223. package/dist/cjs/image/index.js +0 -1
  224. package/dist/cjs/image/styled.js +0 -4
  225. package/dist/cjs/index.js +0 -1
  226. package/dist/cjs/input/index.js +0 -1
  227. package/dist/cjs/input/style.settings.js +0 -1
  228. package/dist/cjs/input/styled.js +0 -430
  229. package/dist/cjs/locales/en/calendar.json.js +0 -1
  230. package/dist/cjs/locales/en/itd.json.js +0 -1
  231. package/dist/cjs/locales/tr/calendar.json.js +0 -1
  232. package/dist/cjs/locales/tr/itd.json.js +0 -1
  233. package/dist/cjs/logger/index.js +0 -1
  234. package/dist/cjs/modal/container/ModalContainer.js +0 -1
  235. package/dist/cjs/modal/container/styled.js +0 -27
  236. package/dist/cjs/modal/context/ModalContext.js +0 -1
  237. package/dist/cjs/modal/index.js +0 -1
  238. package/dist/cjs/modal/modal/Modal.js +0 -1
  239. package/dist/cjs/modal/modal/closeicon.svg.js +0 -1
  240. package/dist/cjs/modal/modal/styled.js +0 -128
  241. package/dist/cjs/node_modules/@react-spring/animated/dist/react-spring_animated.modern.js +0 -1
  242. package/dist/cjs/node_modules/@react-spring/core/dist/react-spring_core.modern.js +0 -1
  243. package/dist/cjs/node_modules/@react-spring/rafz/dist/react-spring_rafz.modern.js +0 -1
  244. package/dist/cjs/node_modules/@react-spring/shared/dist/react-spring_shared.modern.js +0 -1
  245. package/dist/cjs/node_modules/@react-spring/web/dist/react-spring_web.modern.js +0 -1
  246. package/dist/cjs/node_modules/dayjs/dayjs.min.js +0 -1
  247. package/dist/cjs/node_modules/dayjs/plugin/customParseFormat.js +0 -1
  248. package/dist/cjs/node_modules/dayjs/plugin/localizedFormat.js +0 -1
  249. package/dist/cjs/node_modules/fast-deep-equal/react.js +0 -1
  250. package/dist/cjs/node_modules/lodash-es/_Symbol.js +0 -1
  251. package/dist/cjs/node_modules/lodash-es/_arrayMap.js +0 -1
  252. package/dist/cjs/node_modules/lodash-es/_baseGetTag.js +0 -1
  253. package/dist/cjs/node_modules/lodash-es/_baseToString.js +0 -1
  254. package/dist/cjs/node_modules/lodash-es/_freeGlobal.js +0 -1
  255. package/dist/cjs/node_modules/lodash-es/_getRawTag.js +0 -1
  256. package/dist/cjs/node_modules/lodash-es/_objectToString.js +0 -1
  257. package/dist/cjs/node_modules/lodash-es/_root.js +0 -1
  258. package/dist/cjs/node_modules/lodash-es/isArray.js +0 -1
  259. package/dist/cjs/node_modules/lodash-es/isObject.js +0 -1
  260. package/dist/cjs/node_modules/lodash-es/isObjectLike.js +0 -1
  261. package/dist/cjs/node_modules/lodash-es/isSymbol.js +0 -1
  262. package/dist/cjs/node_modules/lodash-es/toString.js +0 -1
  263. package/dist/cjs/node_modules/lodash-es/uniqueId.js +0 -1
  264. package/dist/cjs/node_modules/lucide-react/dist/esm/Icon.js +0 -8
  265. package/dist/cjs/node_modules/lucide-react/dist/esm/createLucideIcon.js +0 -1
  266. package/dist/cjs/node_modules/lucide-react/dist/esm/defaultAttributes.js +0 -1
  267. package/dist/cjs/node_modules/lucide-react/dist/esm/icons/calendar-1.js +0 -8
  268. package/dist/cjs/node_modules/lucide-react/dist/esm/icons/chevron-down.js +0 -8
  269. package/dist/cjs/node_modules/lucide-react/dist/esm/icons/circle-x.js +0 -8
  270. package/dist/cjs/node_modules/lucide-react/dist/esm/icons/eye.js +0 -8
  271. package/dist/cjs/node_modules/lucide-react/dist/esm/icons/info.js +0 -8
  272. package/dist/cjs/node_modules/lucide-react/dist/esm/icons/trash.js +0 -8
  273. package/dist/cjs/node_modules/lucide-react/dist/esm/shared/src/utils.js +0 -7
  274. package/dist/cjs/node_modules/overlayscrollbars/overlayscrollbars.js +0 -10
  275. package/dist/cjs/node_modules/overlayscrollbars/styles/overlayscrollbars.css.js +0 -1
  276. package/dist/cjs/node_modules/react-number-format/dist/react-number-format.es.js +0 -1
  277. package/dist/cjs/node_modules/rollup-plugin-node-globals/src/global.js +0 -1
  278. package/dist/cjs/node_modules/rollup-plugin-styles/dist/runtime/inject-css.js +0 -1
  279. package/dist/cjs/node_modules/uuid/dist/esm-browser/native.js +0 -1
  280. package/dist/cjs/node_modules/uuid/dist/esm-browser/rng.js +0 -1
  281. package/dist/cjs/node_modules/uuid/dist/esm-browser/stringify.js +0 -1
  282. package/dist/cjs/node_modules/uuid/dist/esm-browser/v4.js +0 -1
  283. package/dist/cjs/notification/container/Container.js +0 -1
  284. package/dist/cjs/notification/container/styled.js +0 -26
  285. package/dist/cjs/notification/context/NotificationsContext.js +0 -1
  286. package/dist/cjs/notification/index.js +0 -1
  287. package/dist/cjs/notification/item/Item.js +0 -1
  288. package/dist/cjs/notification/item/styled.js +0 -42
  289. package/dist/cjs/progress/index.js +0 -1
  290. package/dist/cjs/progress/styled.js +0 -59
  291. package/dist/cjs/radio/button/RadioButton.js +0 -1
  292. package/dist/cjs/radio/button/styled.js +0 -133
  293. package/dist/cjs/radio/group/Group.js +0 -1
  294. package/dist/cjs/radio/group/styled.js +0 -7
  295. package/dist/cjs/radio/index.js +0 -1
  296. package/dist/cjs/result/index.js +0 -1
  297. package/dist/cjs/result/styled.js +0 -109
  298. package/dist/cjs/select/dropdown/Dropdown.js +0 -1
  299. package/dist/cjs/select/dropdown/styled.js +0 -239
  300. package/dist/cjs/select/index.js +0 -1
  301. package/dist/cjs/select/option/Option.js +0 -1
  302. package/dist/cjs/select/option/styled.js +0 -36
  303. package/dist/cjs/select/style.settings.js +0 -1
  304. package/dist/cjs/select/styled.js +0 -331
  305. package/dist/cjs/select/toggle/Toggle.js +0 -1
  306. package/dist/cjs/select/toggle/label/Label.js +0 -1
  307. package/dist/cjs/select/toggle/label/styled.js +0 -5
  308. package/dist/cjs/select/toggle/styled.js +0 -88
  309. package/dist/cjs/spin/index.js +0 -1
  310. package/dist/cjs/spin/styled.js +0 -74
  311. package/dist/cjs/status/index.js +0 -1
  312. package/dist/cjs/status/styled.js +0 -75
  313. package/dist/cjs/switch/index.js +0 -1
  314. package/dist/cjs/switch/styled.js +0 -209
  315. package/dist/cjs/table/index.js +0 -1
  316. package/dist/cjs/table/styled.js +0 -458
  317. package/dist/cjs/tabs/index.js +0 -1
  318. package/dist/cjs/tabs/styles.js +0 -96
  319. package/dist/cjs/textarea/index.js +0 -1
  320. package/dist/cjs/textarea/styled.js +0 -220
  321. package/dist/cjs/tinyscrollbar/index.js +0 -1
  322. package/dist/cjs/tinyscrollbar/scroll.styled.js +0 -21
  323. package/dist/cjs/types/InputProps.js +0 -1
  324. package/dist/cjs/upload/index.js +0 -1
  325. package/dist/cjs/upload/styled.js +0 -228
  326. package/dist/cjs/utils/CommonStyledComponents.js +0 -61
  327. package/dist/cjs/utils/GetIconSizeBySize.js +0 -1
  328. package/dist/cjs/utils/GetSizeSlugBySize.js +0 -1
  329. package/dist/cjs/utils/InlineSVGCached.js +0 -1
  330. package/dist/context/ITDThemeProvider.d.ts +0 -8
  331. package/dist/es/_virtual/_commonjsHelpers.js +0 -1
  332. package/dist/es/_virtual/customParseFormat.js +0 -1
  333. package/dist/es/_virtual/customParseFormat2.js +0 -1
  334. package/dist/es/_virtual/dayjs.min.js +0 -1
  335. package/dist/es/_virtual/dayjs.min2.js +0 -1
  336. package/dist/es/_virtual/localizedFormat.js +0 -1
  337. package/dist/es/_virtual/localizedFormat2.js +0 -1
  338. package/dist/es/_virtual/react.js +0 -1
  339. package/dist/es/accordion/index.js +0 -1
  340. package/dist/es/accordion/item/Item.js +0 -1
  341. package/dist/es/accordion/item/styled.js +0 -20
  342. package/dist/es/accordion/styled.js +0 -15
  343. package/dist/es/accordion/submenu/SubMenu.js +0 -1
  344. package/dist/es/accordion/submenu/styled.js +0 -214
  345. package/dist/es/alert/Description.js +0 -1
  346. package/dist/es/alert/Title.js +0 -1
  347. package/dist/es/alert/alert.style.error.js +0 -32
  348. package/dist/es/alert/alert.style.info.js +0 -32
  349. package/dist/es/alert/alert.style.neutral.js +0 -32
  350. package/dist/es/alert/alert.style.success.js +0 -32
  351. package/dist/es/alert/alert.style.warning.js +0 -32
  352. package/dist/es/alert/index.js +0 -1
  353. package/dist/es/alert/styled.js +0 -68
  354. package/dist/es/alink/index.js +0 -1
  355. package/dist/es/alink/styled.js +0 -5
  356. package/dist/es/back-top/index.js +0 -1
  357. package/dist/es/back-top/styled.js +0 -25
  358. package/dist/es/button/button.style.circle.js +0 -38
  359. package/dist/es/button/button.style.default.js +0 -44
  360. package/dist/es/button/button.style.filled.js +0 -49
  361. package/dist/es/button/button.style.ghost.js +0 -47
  362. package/dist/es/button/button.style.icon.js +0 -33
  363. package/dist/es/button/button.style.link.js +0 -45
  364. package/dist/es/button/button.style.outline.js +0 -49
  365. package/dist/es/button/button.style.size.js +0 -187
  366. package/dist/es/button/button.style.solid.js +0 -50
  367. package/dist/es/button/button.style.strecth.js +0 -8
  368. package/dist/es/button/index.js +0 -1
  369. package/dist/es/button/styled.js +0 -415
  370. package/dist/es/calendar/dates.js +0 -1
  371. package/dist/es/calendar/day/Day.js +0 -1
  372. package/dist/es/calendar/day/styled.js +0 -91
  373. package/dist/es/calendar/header/Header.js +0 -1
  374. package/dist/es/calendar/header/styled.js +0 -196
  375. package/dist/es/calendar/index.js +0 -1
  376. package/dist/es/calendar/styled.js +0 -82
  377. package/dist/es/card/index.js +0 -1
  378. package/dist/es/card/styles.js +0 -66
  379. package/dist/es/checkbox/group/index.js +0 -1
  380. package/dist/es/checkbox/group/styled.js +0 -9
  381. package/dist/es/checkbox/index.js +0 -1
  382. package/dist/es/checkbox/styled.js +0 -340
  383. package/dist/es/context/ITDContext.js +0 -1
  384. package/dist/es/context/ITDThemeProvider.js +0 -1
  385. package/dist/es/context/styled.js +0 -15
  386. package/dist/es/datepicker/index.js +0 -1
  387. package/dist/es/datepicker/styled.js +0 -60
  388. package/dist/es/enums/enum.js +0 -1
  389. package/dist/es/flex/index.js +0 -1
  390. package/dist/es/flex/styled.js +0 -35
  391. package/dist/es/form/context/FormContext.js +0 -1
  392. package/dist/es/form/context/FormStore.js +0 -1
  393. package/dist/es/form/control/Control.js +0 -1
  394. package/dist/es/form/control/styled.js +0 -8
  395. package/dist/es/form/group/Group.js +0 -1
  396. package/dist/es/form/group/styled.js +0 -7
  397. package/dist/es/form/index.js +0 -1
  398. package/dist/es/form/item/Item.js +0 -1
  399. package/dist/es/form/validation/TCIdentity.js +0 -1
  400. package/dist/es/form/validation/Validator.js +0 -1
  401. package/dist/es/form/wrapper/FormWrapper.js +0 -1
  402. package/dist/es/helpers/array/ChunkArray.js +0 -1
  403. package/dist/es/helpers/aspectratio/DetermineNewHeight.js +0 -1
  404. package/dist/es/helpers/aspectratio/DetermineNewWidth.js +0 -1
  405. package/dist/es/helpers/base64/Base64Decode.js +0 -1
  406. package/dist/es/helpers/base64/Base64Encode.js +0 -1
  407. package/dist/es/helpers/binary/FormatBytes.js +0 -1
  408. package/dist/es/helpers/binary/GetTypeByFileType.js +0 -1
  409. package/dist/es/helpers/checker/CheckFileURL.js +0 -1
  410. package/dist/es/helpers/checker/FileChecker.js +0 -1
  411. package/dist/es/helpers/country/GetCountryCodeByCurrencyCode.js +0 -1
  412. package/dist/es/helpers/country/GetCountryCodeByLanguage.js +0 -1
  413. package/dist/es/helpers/css/FindSelector.js +0 -1
  414. package/dist/es/helpers/currency/ConvertCurrency.js +0 -1
  415. package/dist/es/helpers/currency/GetByCurrency.js +0 -1
  416. package/dist/es/helpers/currency/GetCurrencyFormat.js +0 -1
  417. package/dist/es/helpers/currency/GetCurrencySymbol.js +0 -1
  418. package/dist/es/helpers/currency/GetDecimalByCurrency.js +0 -1
  419. package/dist/es/helpers/datetime/FormatDate.js +0 -1
  420. package/dist/es/helpers/datetime/FormatDateTime.js +0 -1
  421. package/dist/es/helpers/datetime/FormatSimpleDate.js +0 -1
  422. package/dist/es/helpers/datetime/FormatSimpleDateTime.js +0 -1
  423. package/dist/es/helpers/datetime/FormatTime.js +0 -1
  424. package/dist/es/helpers/datetime/dayjsSetup.js +0 -1
  425. package/dist/es/helpers/format/ToKebabCase.js +0 -1
  426. package/dist/es/helpers/json/IsValidJSON.js +0 -1
  427. package/dist/es/helpers/math/AddZero.js +0 -1
  428. package/dist/es/helpers/promise/Wait.js +0 -1
  429. package/dist/es/helpers/remover/RemoveUnits.js +0 -1
  430. package/dist/es/helpers/string/UniUpperCase.js +0 -1
  431. package/dist/es/helpers/svg/SVGLoader.js +0 -1
  432. package/dist/es/helpers/svg/styles.js +0 -22
  433. package/dist/es/helpers/theme/AddDefaultThemeStyle.js +0 -1
  434. package/dist/es/helpers/theme/Color.js +0 -1
  435. package/dist/es/helpers/theme/GenerateColorScale.js +0 -1
  436. package/dist/es/helpers/theme/UpdateThemeStyle.js +0 -1
  437. package/dist/es/helpers/theme/cssVariables.js +0 -1
  438. package/dist/es/helpers/theme/dark.js +0 -1
  439. package/dist/es/helpers/theme/light.js +0 -1
  440. package/dist/es/helpers/theme/tokens.js +0 -1
  441. package/dist/es/helpers/unit/AddDefaultUnit.js +0 -1
  442. package/dist/es/helpers/url/ValidURL.js +0 -1
  443. package/dist/es/hooks/useAddExternalCSS.js +0 -1
  444. package/dist/es/hooks/useAvoidCollision.js +0 -1
  445. package/dist/es/hooks/useComponentSize.js +0 -1
  446. package/dist/es/hooks/useConnectionStatus.js +0 -1
  447. package/dist/es/hooks/useConstructor.js +0 -1
  448. package/dist/es/hooks/useContextBridge.js +0 -1
  449. package/dist/es/hooks/useCoreFetch.js +0 -1
  450. package/dist/es/hooks/useKeyboardShortcut.js +0 -1
  451. package/dist/es/hooks/useMultiQuery.js +0 -1
  452. package/dist/es/hooks/useOnClickOutside.js +0 -1
  453. package/dist/es/hooks/useOnESCKeyDown.js +0 -1
  454. package/dist/es/hooks/useOnResize.js +0 -1
  455. package/dist/es/hooks/useOrientation.js +0 -1
  456. package/dist/es/hooks/useReCaptcha.js +0 -1
  457. package/dist/es/hooks/useSingleQuery.js +0 -1
  458. package/dist/es/html/header/H1.js +0 -1
  459. package/dist/es/html/header/H2.js +0 -1
  460. package/dist/es/html/header/H3.js +0 -1
  461. package/dist/es/html/header/H4.js +0 -1
  462. package/dist/es/html/header/styled.js +0 -33
  463. package/dist/es/icons/Arrow.js +0 -1
  464. package/dist/es/icons/BackToTop.js +0 -1
  465. package/dist/es/icons/Checkmark.js +0 -1
  466. package/dist/es/icons/InlineSelectArrow.js +0 -1
  467. package/dist/es/icons/Lock.js +0 -1
  468. package/dist/es/icons/NoData.js +0 -1
  469. package/dist/es/icons/Picture.js +0 -1
  470. package/dist/es/icons/Trash.js +0 -1
  471. package/dist/es/icons/Upload.js +0 -1
  472. package/dist/es/icons/ZoomIn.js +0 -1
  473. package/dist/es/icons/ZoomOut.js +0 -1
  474. package/dist/es/image/index.js +0 -1
  475. package/dist/es/image/styled.js +0 -4
  476. package/dist/es/index.js +0 -1
  477. package/dist/es/input/index.js +0 -1
  478. package/dist/es/input/style.settings.js +0 -1
  479. package/dist/es/input/styled.js +0 -430
  480. package/dist/es/locales/en/calendar.json.js +0 -1
  481. package/dist/es/locales/en/itd.json.js +0 -1
  482. package/dist/es/locales/tr/calendar.json.js +0 -1
  483. package/dist/es/locales/tr/itd.json.js +0 -1
  484. package/dist/es/logger/index.js +0 -1
  485. package/dist/es/modal/container/ModalContainer.js +0 -1
  486. package/dist/es/modal/container/styled.js +0 -27
  487. package/dist/es/modal/context/ModalContext.js +0 -1
  488. package/dist/es/modal/index.js +0 -1
  489. package/dist/es/modal/modal/Modal.js +0 -1
  490. package/dist/es/modal/modal/closeicon.svg.js +0 -1
  491. package/dist/es/modal/modal/styled.js +0 -128
  492. package/dist/es/node_modules/@react-spring/animated/dist/react-spring_animated.modern.js +0 -1
  493. package/dist/es/node_modules/@react-spring/core/dist/react-spring_core.modern.js +0 -1
  494. package/dist/es/node_modules/@react-spring/rafz/dist/react-spring_rafz.modern.js +0 -1
  495. package/dist/es/node_modules/@react-spring/shared/dist/react-spring_shared.modern.js +0 -1
  496. package/dist/es/node_modules/@react-spring/web/dist/react-spring_web.modern.js +0 -1
  497. package/dist/es/node_modules/dayjs/dayjs.min.js +0 -1
  498. package/dist/es/node_modules/dayjs/plugin/customParseFormat.js +0 -1
  499. package/dist/es/node_modules/dayjs/plugin/localizedFormat.js +0 -1
  500. package/dist/es/node_modules/fast-deep-equal/react.js +0 -1
  501. package/dist/es/node_modules/lodash-es/_Symbol.js +0 -1
  502. package/dist/es/node_modules/lodash-es/_arrayMap.js +0 -1
  503. package/dist/es/node_modules/lodash-es/_baseGetTag.js +0 -1
  504. package/dist/es/node_modules/lodash-es/_baseToString.js +0 -1
  505. package/dist/es/node_modules/lodash-es/_freeGlobal.js +0 -1
  506. package/dist/es/node_modules/lodash-es/_getRawTag.js +0 -1
  507. package/dist/es/node_modules/lodash-es/_objectToString.js +0 -1
  508. package/dist/es/node_modules/lodash-es/_root.js +0 -1
  509. package/dist/es/node_modules/lodash-es/isArray.js +0 -1
  510. package/dist/es/node_modules/lodash-es/isObject.js +0 -1
  511. package/dist/es/node_modules/lodash-es/isObjectLike.js +0 -1
  512. package/dist/es/node_modules/lodash-es/isSymbol.js +0 -1
  513. package/dist/es/node_modules/lodash-es/toString.js +0 -1
  514. package/dist/es/node_modules/lodash-es/uniqueId.js +0 -1
  515. package/dist/es/node_modules/lucide-react/dist/esm/Icon.js +0 -7
  516. package/dist/es/node_modules/lucide-react/dist/esm/createLucideIcon.js +0 -7
  517. package/dist/es/node_modules/lucide-react/dist/esm/defaultAttributes.js +0 -7
  518. package/dist/es/node_modules/lucide-react/dist/esm/icons/calendar-1.js +0 -7
  519. package/dist/es/node_modules/lucide-react/dist/esm/icons/chevron-down.js +0 -7
  520. package/dist/es/node_modules/lucide-react/dist/esm/icons/circle-x.js +0 -7
  521. package/dist/es/node_modules/lucide-react/dist/esm/icons/eye.js +0 -7
  522. package/dist/es/node_modules/lucide-react/dist/esm/icons/info.js +0 -7
  523. package/dist/es/node_modules/lucide-react/dist/esm/icons/trash.js +0 -7
  524. package/dist/es/node_modules/lucide-react/dist/esm/shared/src/utils.js +0 -7
  525. package/dist/es/node_modules/overlayscrollbars/overlayscrollbars.js +0 -10
  526. package/dist/es/node_modules/overlayscrollbars/styles/overlayscrollbars.css.js +0 -1
  527. package/dist/es/node_modules/react-number-format/dist/react-number-format.es.js +0 -1
  528. package/dist/es/node_modules/rollup-plugin-node-globals/src/global.js +0 -1
  529. package/dist/es/node_modules/rollup-plugin-styles/dist/runtime/inject-css.js +0 -1
  530. package/dist/es/node_modules/uuid/dist/esm-browser/native.js +0 -1
  531. package/dist/es/node_modules/uuid/dist/esm-browser/rng.js +0 -1
  532. package/dist/es/node_modules/uuid/dist/esm-browser/stringify.js +0 -1
  533. package/dist/es/node_modules/uuid/dist/esm-browser/v4.js +0 -1
  534. package/dist/es/notification/container/Container.js +0 -1
  535. package/dist/es/notification/container/styled.js +0 -26
  536. package/dist/es/notification/context/NotificationsContext.js +0 -1
  537. package/dist/es/notification/index.js +0 -1
  538. package/dist/es/notification/item/Item.js +0 -1
  539. package/dist/es/notification/item/styled.js +0 -42
  540. package/dist/es/progress/index.js +0 -1
  541. package/dist/es/progress/styled.js +0 -59
  542. package/dist/es/radio/button/RadioButton.js +0 -1
  543. package/dist/es/radio/button/styled.js +0 -133
  544. package/dist/es/radio/group/Group.js +0 -1
  545. package/dist/es/radio/group/styled.js +0 -7
  546. package/dist/es/radio/index.js +0 -1
  547. package/dist/es/result/index.js +0 -1
  548. package/dist/es/result/styled.js +0 -109
  549. package/dist/es/select/dropdown/Dropdown.js +0 -1
  550. package/dist/es/select/dropdown/styled.js +0 -239
  551. package/dist/es/select/index.js +0 -1
  552. package/dist/es/select/option/Option.js +0 -1
  553. package/dist/es/select/option/styled.js +0 -36
  554. package/dist/es/select/style.settings.js +0 -1
  555. package/dist/es/select/styled.js +0 -331
  556. package/dist/es/select/toggle/Toggle.js +0 -1
  557. package/dist/es/select/toggle/label/Label.js +0 -1
  558. package/dist/es/select/toggle/label/styled.js +0 -5
  559. package/dist/es/select/toggle/styled.js +0 -88
  560. package/dist/es/spin/index.js +0 -1
  561. package/dist/es/spin/styled.js +0 -74
  562. package/dist/es/status/index.js +0 -1
  563. package/dist/es/status/styled.js +0 -75
  564. package/dist/es/switch/index.js +0 -1
  565. package/dist/es/switch/styled.js +0 -209
  566. package/dist/es/table/index.js +0 -1
  567. package/dist/es/table/styled.js +0 -458
  568. package/dist/es/tabs/index.js +0 -1
  569. package/dist/es/tabs/styles.js +0 -96
  570. package/dist/es/textarea/index.js +0 -1
  571. package/dist/es/textarea/styled.js +0 -220
  572. package/dist/es/tinyscrollbar/index.js +0 -1
  573. package/dist/es/tinyscrollbar/scroll.styled.js +0 -21
  574. package/dist/es/types/InputProps.js +0 -1
  575. package/dist/es/upload/index.js +0 -1
  576. package/dist/es/upload/styled.js +0 -228
  577. package/dist/es/utils/CommonStyledComponents.js +0 -61
  578. package/dist/es/utils/GetIconSizeBySize.js +0 -1
  579. package/dist/es/utils/GetSizeSlugBySize.js +0 -1
  580. package/dist/es/utils/InlineSVGCached.js +0 -1
  581. package/dist/helpers/theme/Color.d.ts +0 -19
  582. package/dist/helpers/theme/GenerateColorScale.d.ts +0 -16
  583. package/dist/helpers/theme/cssVariables.d.ts +0 -30
  584. package/dist/helpers/theme/dark.d.ts +0 -3
  585. package/dist/helpers/theme/index.d.ts +0 -9
  586. package/dist/helpers/theme/light.d.ts +0 -3
  587. package/dist/helpers/theme/themes.d.ts +0 -5
  588. package/dist/helpers/theme/tokens.d.ts +0 -392
  589. package/dist/input/style.settings.d.ts +0 -9
  590. package/dist/select/dropdown/Dropdown.d.ts +0 -19
  591. package/dist/select/dropdown/styled.d.ts +0 -14
  592. package/dist/stats.html +0 -4949
  593. package/dist/stories/AlertComposition.d.ts +0 -2
  594. package/dist/stories/AlertComposition.stories.d.ts +0 -17
  595. package/dist/stories/ColorScale.d.ts +0 -10
  596. package/dist/stories/ColorScale.stories.d.ts +0 -24
  597. package/dist/stories/ColorScaleCompare.d.ts +0 -8
  598. package/dist/stories/ColorScaleCompare.stories.d.ts +0 -47
  599. package/dist/types/Theme.d.ts +0 -100
  600. package/dist/utils/CommonStyledComponents.d.ts +0 -17
  601. /package/dist/select/toggle/label/{styled.d.ts → single/styled.d.ts} +0 -0
@@ -1,220 +0,0 @@
1
- import{ThemeAppearances as e}from"../enums/enum.js";import r,{css as t}from"styled-components";import{withOpacity as o}from"../helpers/theme/Color.js";const a=r.div`
2
-
3
- width: inherit;
4
- position: relative;
5
- display: flex;
6
- justify-content: space-between;
7
- position: relative;
8
-
9
- textarea {
10
-
11
- background : none;
12
- display : block;
13
- width : 100%;
14
- height : 100%;
15
- min-height : 47px;
16
- padding : 12px;
17
- resize : vertical;
18
-
19
- font-size : 14px;
20
- font-weight : 400;
21
- color : ${({theme:e})=>e.colorText};
22
-
23
- border-radius : calc( ${({theme:e})=>e.borderRadius} - 2px);
24
- border : 1px solid transparent;
25
- outline : 0 solid transparent;
26
- outline-offset : ${({theme:e})=>e.ringOffset};
27
-
28
- transition : outline 100ms linear,
29
- border-color ${({theme:e})=>e.transitionDuration} ${({theme:e})=>e.transitionTimingFunction},
30
- background-color ${({theme:e})=>e.transitionDuration} ${({theme:e})=>e.transitionTimingFunction},
31
- scrollbar-color ${({theme:e})=>e.transitionDuration} ${({theme:e})=>e.transitionTimingFunction};
32
-
33
- /* Chrome, Edge, Safari */
34
- &::-webkit-scrollbar {
35
- width: 22px; /* Scroll bar width */
36
- }
37
-
38
- &::-webkit-scrollbar-track {
39
- background: transparent; /* Scroll bar background */
40
- }
41
-
42
- &::-webkit-scrollbar-thumb {
43
- background-color: ${({theme:e})=>e.scrollbarThumb};
44
- border-radius: 10px;
45
- border: 13px solid transparent;
46
- }
47
-
48
- &::-webkit-scrollbar-thumb:hover {
49
- background-color: ${({theme:e})=>e.scrollbarThumbHover};
50
- scrollbar-width: thin!important;
51
- }
52
-
53
- /* Firefox */
54
- scrollbar-width: thin; /* Thin scroll bar */
55
- scrollbar-color: ${({theme:e})=>e.scrollbarThumb} transparent; /* Scroll bar color and background */
56
-
57
- &:hover {
58
- scrollbar-color: ${({theme:e})=>e.scrollbarThumbHover} transparent;
59
- }
60
-
61
- &::placeholder {
62
- color: ${({theme:e})=>e.colorPlaceholder};
63
- }
64
-
65
- }
66
-
67
- /* ------------------------ */
68
- // VARIANT
69
- /* ------------------------ */
70
- ${()=>t`
71
-
72
- /* DEFAULT */
73
- &.itd-textarea-default
74
- {
75
-
76
- textarea {
77
- border: 1px solid ${({theme:e})=>e.colorBorder};
78
- }
79
-
80
- &:hover:not(&.itd-textarea-focus, &.itd-textarea-disabled) {
81
- textarea {
82
- border-color: ${({theme:e})=>e.colorBorderHover};
83
- }
84
- }
85
-
86
- }
87
-
88
- /* FILLED */
89
- &.itd-textarea-filled {
90
-
91
- textarea {
92
- background-color: ${({theme:e})=>e.colorBackgroundAlt};
93
- }
94
-
95
- &:hover:not(&.itd-textarea-focus, &.itd-textarea-disabled) {
96
- textarea {
97
- background-color: ${({theme:e})=>e.colorBackgroundAltHover};
98
- }
99
- }
100
-
101
- }
102
-
103
- /* DASHED */
104
- &.itd-textarea-dashed {
105
-
106
- textarea {
107
- border: 1px dashed ${({theme:e})=>e.colorBorder};
108
- }
109
-
110
- &:hover:not(&.itd-textarea-focus, &.itd-textarea-disabled) {
111
- textarea {
112
- border-color: ${({theme:e})=>e.colorBorderHover};
113
- }
114
- }
115
-
116
- }
117
-
118
- &&.itd-textarea-focus:not(.itd-textarea-filled) {
119
- textarea {
120
- border-color: ${({theme:r})=>r.primaryScale[r.appearance===e.LIGHT?400:900]};
121
- }
122
- }
123
-
124
- &&.itd-textarea-focus.itd-input-error:not(.itd-textarea-filled) {
125
- textarea {
126
- border-color: ${({theme:e})=>e.colorErrorBorder};
127
- }
128
- }
129
-
130
- `}
131
-
132
- &.itd-textarea-default textarea {
133
- box-shadow : ${({theme:e})=>e.boxShadow};
134
- }
135
-
136
- &.itd-textarea-focus {
137
-
138
- &.itd-textarea-filled {
139
- textarea {
140
- background-color: ${({theme:e})=>e.colorBackgroundAltHover};
141
- }
142
- }
143
-
144
- &.itd-textarea-default, &.itd-textarea-dashed, &.itd-textarea-filled, &.itd-textarea-custom {
145
-
146
- &.itd-textarea-keyboard-focus {
147
-
148
- /* Tab ile focus - outline göster */
149
- textarea {
150
- outline: ${({theme:e})=>e.ringWidth} solid ${({theme:r})=>o(r.primaryScale[r.appearance===e.LIGHT?400:900],.5)};
151
- }
152
-
153
- }
154
-
155
- /* Error durumunda outline ve border kırmızı */
156
- &.itd-textarea-keyboard-focus.itd-textarea-error {
157
- textarea {
158
- outline: ${({theme:e})=>e.ringWidth} solid ${({theme:e})=>o(e.colorErrorBorder,.5)} !important;
159
- border-color : ${({theme:e})=>e.colorErrorBorder} !important;
160
- }
161
- }
162
-
163
- }
164
-
165
- }
166
-
167
- &.itd-textarea-disabled {
168
-
169
- textarea {
170
- background-color: ${({theme:e})=>e.colorDisabledBg};
171
- border: 1px solid ${({theme:e})=>e.colorDisabledBorder};
172
- }
173
-
174
- textarea, textarea::placeholder {
175
- color: ${({theme:e})=>e.colorDisabledText};
176
- cursor: not-allowed;
177
- }
178
-
179
- }
180
-
181
- `,i=r.div`
182
-
183
- display: flex;
184
- align-items: center;
185
- justify-content: center;
186
-
187
- border-radius: 50%;
188
- display: flex;
189
- align-items: center;
190
- justify-content: center;
191
- cursor: default;
192
-
193
- position: absolute;
194
- top: 50%;
195
- right: 15px;
196
- transform: translateY(-50%);
197
-
198
- svg circle {
199
- fill: ${({theme:e})=>e.colorError};
200
- }
201
- svg path {
202
- fill: ${({theme:e})=>e.colorErrorText};
203
- }
204
-
205
-
206
-
207
- `;r(i)`
208
-
209
- `,r(i)`
210
-
211
- `,r(i)`
212
- &:hover .itd-textarea-error-tooltip {
213
- display: flex;
214
- }
215
- `;const l=r.div`
216
- position: absolute;
217
- right: 1rem;
218
- top: 50%;
219
- transform: translateY(-50%);
220
- `;export{l as ErrorWrapper,a as Wrapper};
@@ -1 +0,0 @@
1
- import{jsx as r}from"react/jsx-runtime";import{useRef as e,useEffect as o}from"react";import{OverlayScrollbars as l}from"../node_modules/overlayscrollbars/overlayscrollbars.js";import"../node_modules/overlayscrollbars/styles/overlayscrollbars.css.js";import{ScrollWrapper as s}from"./scroll.styled.js";function t({className:t="",children:a,style:c}){const i=e(null);return o(()=>{if(i.current){const r=l(i.current,{paddingAbsolute:!0,showNativeOverlaidScrollbars:!1,overflow:{x:"hidden",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"leave",autoHideDelay:1300,dragScroll:!0,clickScroll:!0,pointers:["mouse","touch","pen"]}});return()=>{r.destroy()}}},[]),r(s,{style:c,children:r("div",{ref:i,className:`os-viewport ${t}`,style:{width:"100%",overflow:"auto"},children:a})})}export{t as default};
@@ -1,21 +0,0 @@
1
- import r from"styled-components";const o=r.div`
2
-
3
- /* OverlayScrollbars v2 class selectors */
4
- .os-scrollbar-horizontal { height: 10px; }
5
- .os-scrollbar-vertical { width: 10px; }
6
-
7
- .os-scrollbar-track {
8
- background: transparent;
9
- }
10
-
11
- .os-scrollbar-handle {
12
- background: ${({theme:r})=>r.scrollbarThumb} !important;
13
- border-radius: 8px;
14
- }
15
-
16
- .os-scrollbar-handle:hover,
17
- .os-scrollbar-handle:active {
18
- background: ${({theme:r})=>r.scrollbarThumbHover} !important;
19
- }
20
-
21
- `;export{o as ScrollWrapper};
@@ -1 +0,0 @@
1
- var r;!function(r){r.TEXT="text",r.NUMBER="number",r.CURRENCY="currency",r.PASSWORD="password"}(r||(r={}));export{r as InputTypes};
@@ -1 +0,0 @@
1
- import{jsxs as e,jsx as t}from"react/jsx-runtime";import{forwardRef as o,useRef as a,useState as r,useEffect as i,useImperativeHandle as s}from"react";import{useTranslation as l}from"react-i18next";import n from"../button/index.js";import d from"../image/index.js";import u from"../modal/index.js";import c from"../notification/index.js";import p from"../hooks/useCoreFetch.js";import m from"../helpers/binary/FormatBytes.js";import h from"../helpers/checker/CheckFileURL.js";import{FileTypes as f,ComponentVariants as g,ComponentSizes as F}from"../enums/enum.js";import v from"../icons/Picture.js";import y from"../helpers/binary/GetTypeByFileType.js";import w from"../icons/Upload.js";import N from"../helpers/promise/Wait.js";import $ from"../flex/index.js";import x from"../helpers/unit/AddDefaultUnit.js";import{Wrapper as b,Label as j,FileContent as D,IconsWrapper as P,Uploading as S,UploadStatusBox as C,Overlay as E,OverlayContent as k,Failed as M,CenterContent as U}from"./styled.js";import{ErrorSVGIcon as H,ErrorTooltip as L}from"../utils/CommonStyledComponents.js";import T from"../node_modules/uuid/dist/esm-browser/v4.js";import B from"../node_modules/lucide-react/dist/esm/icons/trash.js";import O from"../node_modules/lucide-react/dist/esm/icons/eye.js";const W=o(({id:o="itd-upload-"+T(),variant:W=g.DEFAULT,resultFileName:z=null,action:A="",filePath:q="",binaryName:G="file",showDeleteIcon:I=!1,showPreviewIcon:R=!1,buttonsPosition:V="default",padding:_=10,fluid:Q=!0,fileWidth:J="100%",fileHeight:Y="auto",maxFileWidth:K="none",maxFileHeight:X="none",containerWidth:Z="100%",containerHeight:ee="auto",previewFileWidth:te="100%",previewFileHeight:oe="100%",previewFilePadding:ae="0",requestMethod:re="put",maxFileSize:ie=1024,disabled:se=!1,extraFormData:le={},extraQueryString:ne={},extraHeader:de={},fileTypes:ue=[f.JPG,f.PNG,f.SVG,f.PDF],removeAction:ce="",removeExtraFormData:pe={},removeExtraQueryString:me={},removeExtraHeader:he={},onUpdate:fe,onUploadSuccess:ge,onUploadFailed:Fe,onRemoveFileSuccess:ve,onRemoveFileFailed:ye},we)=>{const Ne=a(null),{addNotification:$e}=c.useNotifications(),{showModal:xe}=u.useModal(),{fetch:be,cancel:je}=p(),{t:De}=l("itd"),[Pe,Se]=r(!1),[Ce,Ee]=r(!1),[ke,Me]=r(".svg, .png, .jpg"),[Ue,He]=r(!1),[Le,Te]=r(!1),[Be,Oe]=r(!1),[We,ze]=r(null),[Ae,qe]=r(null),[Ge,Ie]=r(""),[Re,Ve]=r(!1),[_e,Qe]=r(!1),[Je,Ye]=r(null),[Ke,Xe]=r(!1),[Ze,et]=r(null);i(()=>()=>{je()},[]),i(()=>{Ee(se)},[se]),i(()=>{qe(q?q.split("?")[0]:"")},[q]),i(()=>{null!==Ae&&(void 0!==Ae?at():Se(!1))},[Ae]),i(()=>{let e=[];ue.map(t=>{e.push(y(t))}),Me(e.join(", "))},[ue]);const tt=(e,t)=>{$e({title:e,description:t,placement:"topRight",autoHide:!0,delay:5e3,type:"error"})},ot=(e,t=!0,o=!0)=>{fe&&fe(e,t,o)};s(we,()=>({setFocus(){Oe(!0)},reset(e=!1,t=!1){rt(),qe(null),Ie(""),ot("",e,t)},setValue(e,t=!0,o=!0){qe(e),ot(e,t,o)},getValue:()=>Ae||"",setError(e){Ie(e)},forceUpdate(){ot(Ae||"")},clear(){qe("")}}));const at=async()=>{let e=!1;Ae&&(e=await h(Ae),ze(e),e?ot(Ae):ot("",!0,!0),Pe||Se(!0)),""!==Ae||Pe||Se(!0),""===Ae&&Pe&&ot("",!0,!0)},rt=()=>{et(null),Ye(null),Xe(!1),ze(null)},it=async()=>{Ee(!0),xe({content:t("div",{children:De("uploader.areYouSureToDeleteThisFile")}),title:De("uploader.removeFile"),okButtonText:De("uploader.yes"),cancelButtonText:De("uploader.no"),okButtonProps:{variant:"statable",state:"reject"},closeOnClickOutside:!1,showCloseButton:!1,onOk:()=>(ce?be({action:ce,params:pe,queries:me,headers:he,onFetched:e=>{e.data.success?(rt(),ot("",!0,!0),ve&&ve(e.data.data)):ye&&ye()},onError:()=>{ye&&ye()}}):(rt(),ot("",!0,!0),ve&&ve()),Ee(!1),!0),onCancel:()=>(Ee(!1),!0)})},st=e=>{e.preventDefault(),_e||(Te(!1),e.dataTransfer&&0!==e.dataTransfer.files.length?dt(e.dataTransfer.files[0]):console.log(De("uploader.browserDoesntSupportDND")))},lt=e=>{Te(!1);const t=e.target.files[0];dt(t)},nt=async({path:e,errorMessage:t,errorCode:o})=>{await N(1e3),Ye(null),Qe(!1),await N(1500),Xe(!1),e?ge&&ge(e):t&&Fe&&Fe(t,o||0)},dt=e=>{if(e&&(e=>!!ue.includes(e.type)||(tt(De("uploader.error"),De("uploader.fileFormatError",{fileFormat:ke})),!1))(e)&&(e=>!(e.size>1024*ie&&(tt(De("uploader.error"),De("uploader.fileSizeError",{fileSize:m(1024*ie)})),1)))(e)){if(z){const t=y(e.type);e=new File([e],z+t,{type:t,lastModified:e.lastModified})}(async e=>{if(!e)return;let t=new FormData;t.append(G,e),z&&t.append("name",z),Object.keys(le).forEach(e=>{t.append(e,le[e])}),be({action:A,requestMethod:re,params:t,queries:ne,headers:de,onFetched:e=>{e.data.success?(et({message:De("uploader.fileUploadSuccess"),status:"success"}),Xe(!0),qe(e.data.data.url),nt({path:e.data.data.url})):(et({message:De("uploader.fileUploadFailed"),status:"error"}),ot("",!0,!0),nt({errorMessage:De("uploader.fileUploadFailed")}))},onError:(e,t)=>{et({message:De("uploader.fileUploadFailed"),status:"error"}),ot("",!0,!0),nt({errorMessage:e,errorCode:t})},onProgress:e=>{Ye({estimated:e.estimated?(Math.round(100*e.estimated)/100).toFixed(2):"0",progress:e.progress?Math.round(100*e.progress):0,bytes:e.bytes?m(e.bytes):"",total:e.total?m(e.total):""})}})})(e),Qe(!0)}},ut=()=>{Ee(!0),xe({content:t(U,{className:"itd-upload-preview-content",$width:te,$height:oe,$padding:ae,children:t(d,{src:Ae||""})}),showOkButton:!1,showCancelButton:!1,contentPadding:"0px",width:"max-content",onCancel:()=>(Ee(!1),!0)})},ct=()=>{if(I&&Ae&&!_e&&We)return t("span",{className:"delete-icon",children:t(n,{variant:W===g.FILLED?"solid":"outline",size:F.SMALL,type:"button",onClick:it,disabled:Ce,icon:t(B,{size:16,strokeWidth:2}),className:"itd-upload-delete-button",circle:!0})})},pt=()=>{if(R&&Ae&&!_e&&We)return t("span",{className:"preview-icon",children:t(n,{variant:W===g.FILLED?"solid":"outline",size:F.SMALL,type:"button",onClick:ut,disabled:Ce,icon:t(O,{size:16,strokeWidth:2}),className:"itd-upload-preview-button",circle:!0})})},mt=()=>{if(""===Ge||_e)return;return e(M,{...{className:"itd-upload-failed itd-failed-status",onPointerOver:()=>Ve(!0),onPointerOut:()=>Ve(!1)},children:[Re?t(L,{className:"itd-upload-error-tooltip itd-error-tooltip",children:Ge}):null,H]})},ht=()=>{if(Pe)return null===We?t(w,{className:"itd-upload-icon",width:24,height:24}):!1===We?t(v,{width:40,height:40}):t(d,{src:Ae||"",width:x(J),height:x(Y)})},ft=()=>{let o=(Ue||Le)&&!_e&&!Ce;return t(E,{$isHover:o,className:"itd-upload-overlay",children:e(k,{$isHover:o,className:"itd-upload-overlay-content",children:[t("span",{className:"itd-upload-header",children:De("uploader.header")}),t("span",{className:"itd-upload-hint",children:De("uploader.hint")})]})})};return e(b,{className:"itd-upload",$fluid:Q,children:[t("input",{type:"file",id:o,accept:ke,onChange:lt,onFocus:e=>{e.target.matches(":focus-visible")&&Oe(!0)},onBlur:()=>Oe(!1),onPointerOver:()=>{!Le&&He(!0)},onPointerOut:()=>{!Le&&He(!1)},onDragOver:e=>{e.preventDefault(),_e||Te(!0)},onDragLeave:e=>{e.preventDefault(),_e||Te(!1)},onDrop:st,disabled:_e||Ce,ref:Ne}),t(j,{$showFocus:Be,$hasError:""!==Ge,className:"itd-upload-label",children:e(D,{$showBorder:(Le||Ue)&&!_e,$padding:_,$disabled:se,$hasError:""!==Ge&&!_e,$fileWidth:J,$fileHeight:Y,$maxFileWidth:K,$maxFileHeight:X,$containerWidth:Z,$containerHeight:ee,$variant:W,$showFocus:Be,className:"itd-upload-content",children:[ht(),e(S,{className:"itd-upload-status",$isActive:_e,$complete:"success"===Ze?.status,$error:"error"===Ze?.status,children:[t(C,{className:"itd-upload-status-box",$progress:Je?Je.progress:0,$complete:"success"===Ze?.status,$error:"error"===Ze?.status}),t("span",{className:"itd-upload-status-message",children:De(Ke||Ze?String(Ze?.message):"uploader.fileUploading")}),t("span",Je?{className:"itd-upload-status-info",children:De("uploader.info",{total:Je.total,estimated:Je.estimated})}:{className:"itd-upload-status-calculating",children:De("uploader.calculating")})]}),ft(),e(P,{$position:""===Ge?V:"default",children:[e($,{vertical:!0,gap:"small",className:"itd-upload-icons",children:[ct(),pt()]}),mt()]})]})})]})});export{W as default};
@@ -1,228 +0,0 @@
1
- import t,{css as o}from"styled-components";import"../index.js";import{ComponentVariants as e,ThemeAppearances as i}from"../enums/enum.js";import{withOpacity as r}from"../helpers/theme/Color.js";export{ErrorBorder,ErrorTooltip}from"../utils/CommonStyledComponents.js";import n from"../helpers/unit/AddDefaultUnit.js";import"../helpers/theme/tokens.js";import"../helpers/theme/cssVariables.js";import"react/jsx-runtime";import"../utils/InlineSVGCached.js";import"../helpers/svg/styles.js";import"../helpers/datetime/dayjsSetup.js";const a=t.div`
2
-
3
- position : relative;
4
- width : ${t=>t.$fluid?"100%":"max-content"};
5
- font-size : 13px;
6
- font-weight : 400;
7
-
8
- input[type="file"] {
9
-
10
- width : 100%;
11
- height : 100%;
12
- position : absolute;
13
- opacity : 0;
14
- z-index : 1;
15
-
16
- }
17
-
18
- `,l=t.div`
19
-
20
- >img {
21
- max-width : 100%;
22
- width : ${t=>t.$fileWidth?n(t.$fileWidth):"100%"};
23
- height : ${t=>t.$fileHeight?n(t.$fileHeight):"auto"};
24
- max-width : ${t=>t.$maxFileWidth?n(t.$maxFileWidth):"none"};
25
- max-height : ${t=>t.$maxFileHeight?n(t.$maxFileHeight):"none"};
26
- overflow : hidden;
27
- border-radius : ${({theme:t})=>t.borderRadius};
28
- }
29
-
30
- transition-property : border-color;
31
- transition-duration : 500ms;
32
- transition-timing-function : cubic-bezier(0.075, 0.82, 0.165, 1);
33
-
34
- background-color : ${({theme:t,$variant:o})=>o===e.FILLED?t.colorBackgroundAlt:"transparent"};
35
- border : 1px dashed ${({theme:t,$hasError:o,$showBorder:e,$disabled:r,$showFocus:n})=>o?t.colorErrorBorder:e&&!r?t.colorBorderHover:n?t.primaryScale[t.appearance===i.LIGHT?400:900]:t.colorBorder};
36
-
37
- border-radius : ${({theme:t})=>t.borderRadius};
38
- padding : ${t=>t.$padding+"px"};
39
- //overflow: hidden;
40
-
41
- display : flex;
42
- justify-content : center;
43
- align-items : center;
44
- position : relative;
45
-
46
- min-height : 100px;
47
- width : ${t=>t.$containerWidth?n(t.$containerWidth):"100%"};
48
- height : ${t=>t.$containerHeight?n(t.$containerHeight):"auto"};
49
-
50
- .itd-upload-icon svg {
51
- color: ${({theme:t})=>t.colorText};
52
- }
53
-
54
- `,s=t.div`
55
-
56
- display: block;
57
-
58
- /* Tab ile focus - outline göster */
59
- outline : ${t=>t.$showFocus?({theme:o})=>t.$hasError?`${o.ringWidth} solid ${r(o.colorErrorBorder,.5)}`:`${o.ringWidth} solid ${r(o.primaryScale[o.appearance===i.LIGHT?400:900],.5)}`:"0 solid transparent"};
60
-
61
- outline-offset : ${({theme:t})=>t.ringOffset};
62
- border-radius : ${({theme:t})=>t.borderRadius};
63
-
64
- transition : outline 100ms linear;
65
-
66
- `,d=t.div`
67
-
68
- position : absolute;
69
- top : 50%;
70
- right : ${t=>"default"===t.$position?"15px":"-17px"};
71
- height : ${t=>"default"===t.$position?"auto":"100%"};
72
- transform : translateY(-50%);
73
- z-index : 2;
74
-
75
- ${t=>{if("corners"===t.$position)return o`
76
- .delete-icon {
77
- position : absolute;
78
- bottom : -17px;
79
- right : 0;
80
- }
81
- .preview-icon {
82
- position : absolute;
83
- top : -17px;
84
- right : 0px;
85
- }
86
- `}}
87
-
88
- `,p=t.div`
89
-
90
- display : flex;
91
- justify-content : center;
92
- align-items : center;
93
- padding : ${t=>t.$padding?n(t.$padding):"100%"};
94
-
95
- img {
96
- width : ${t=>t.$width?n(t.$width):"100%"};
97
- height : ${t=>t.$height?n(t.$height):"100%"};
98
- }
99
-
100
- `,h=t.div`
101
-
102
- transition-property : all;
103
- transition-duration : 0ms;
104
- transition-timing-function : ${({theme:t})=>t.transitionTimingFunction};
105
- transition-delay : 0ms;
106
- //animation-direction: reverse;
107
-
108
- position : absolute;
109
- top : 150%;
110
- left : 50%;
111
- transform : translateX(-50%) translateY(-50%);
112
-
113
- display : flex;
114
- flex-direction : column;
115
- width : 100%;
116
-
117
- span {
118
- &:nth-child(1) {
119
- color : ${({theme:t})=>t.colorUploadText};
120
- text-align : center;
121
- font-weight : 500;
122
- }
123
- &:nth-child(2) {
124
- color : ${({theme:t})=>r(t.colorUploadText,.5)};
125
- text-align : center;
126
- font-weight : 400;
127
- }
128
- }
129
-
130
- ${({$isHover:t})=>t&&o`
131
- top: 50%;
132
- `}
133
-
134
- `,c=t.div`
135
-
136
- position : absolute;
137
- display : flex;
138
- pointer-events : all;
139
-
140
- transition-property : all;
141
- transition-duration : ${({theme:t})=>t.transitionDuration};
142
- transition-timing-function : ${({theme:t})=>t.transitionTimingFunction};
143
- animation-direction : reverse;
144
-
145
- width : 100%;
146
- height : 100%;
147
- background-color : transparent;
148
- backdrop-filter : blur(0px);
149
- border-radius : ${({theme:t})=>t.borderRadius};
150
- overflow : hidden;
151
-
152
- ${({$isHover:t})=>t&&o`
153
- backdrop-filter : blur(2px);
154
- background-color : ${({theme:t})=>t.colorUploadOverlay};
155
- `}
156
-
157
- `,m=t.div`
158
-
159
- position: absolute;
160
-
161
- display : flex;
162
- justify-content : center;
163
- align-items : center;
164
- flex-direction : column;
165
-
166
- width : 100%;
167
- height : 100%;
168
- background-color : transparent;
169
- border-radius : ${({theme:t})=>t.borderRadius};
170
- overflow : hidden;
171
-
172
- transition-property : all;
173
- transition-duration : ${({theme:t})=>t.transitionDuration};
174
- transition-timing-function : ${({theme:t})=>t.transitionTimingFunction};
175
-
176
- span, div {
177
-
178
- color : transparent;
179
- z-index : 1;
180
- pointer-events : none;
181
-
182
- transition-property : all;
183
- transition-duration : ${({theme:t})=>t.transitionDuration};
184
- transition-timing-function : ${({theme:t})=>t.transitionTimingFunction};
185
-
186
- }
187
-
188
- ${({$isActive:t,$complete:e,$error:i})=>t&&o`
189
- background-color : ${e?({theme:t})=>t.colorUploadOverlayCompleted:i?({theme:t})=>t.colorUploadOverlayError:({theme:t})=>t.colorUploadOverlayUploading};
190
- span {
191
- color: ${e?({theme:t})=>t.colorUploadCompletedText:i?({theme:t})=>t.colorUploadErrorText:({theme:t})=>t.colorUploadingText};
192
- }
193
- `}
194
-
195
- `,$=t.div`
196
- transition-property : all;
197
- transition-duration : ${({theme:t})=>t.transitionDuration};
198
- transition-timing-function : ${({theme:t})=>t.transitionTimingFunction};
199
-
200
- position : absolute;
201
- top : 0;
202
- left : 0;
203
- height : 100%;
204
- content : "";
205
-
206
- width : ${t=>t.$progress+"%"};
207
- background-color : ${({$complete:t,$error:o})=>t?({theme:t})=>t.colorUploadOverlayCompleted:o?({theme:t})=>t.colorUploadOverlayError:({theme:t})=>t.colorUploadOverlayUploading};
208
- `,u=t(t.div`
209
-
210
- display : flex;
211
- align-items : center;
212
- justify-content : center;
213
-
214
- cursor : pointer;
215
- position : relative;
216
-
217
- &[data-icon="i"] {
218
- &::before {
219
- padding : 4px;
220
- border-radius : 50px;
221
- }
222
- }
223
-
224
- `)`
225
- &::before { background-color: ${({theme:t})=>t.colorError}; }
226
- svg circle { fill: ${({theme:t})=>t.colorError}; }
227
- svg { color: ${({theme:t})=>t.colorErrorText}; }
228
- `;export{p as CenterContent,u as Failed,l as FileContent,d as IconsWrapper,s as Label,c as Overlay,h as OverlayContent,$ as UploadStatusBox,m as Uploading,a as Wrapper};
@@ -1,61 +0,0 @@
1
- import{jsx as t,jsxs as o}from"react/jsx-runtime";import r from"styled-components";import{useState as e}from"react";const n=t("svg",{width:"16",height:"16",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:o("g",{fill:"none",fillRule:"evenodd",children:[t("circle",{fill:"currentColor",cx:"10",cy:"10",r:"10"}),t("path",{d:"M10.04,8.62 L12.86,5.79 C13.25,5.40 13.89,5.40 14.28,5.79 C14.67,6.18 14.67,6.82 14.28,7.21 L11.45,10.04 L14.28,12.86 C14.67,13.25 14.67,13.89 14.28,14.28 C13.89,14.67 13.25,14.67 12.86,14.28 L10.04,11.45 L7.21,14.28 C6.82,14.67 6.18,14.67 5.79,14.28 C5.40,13.89 5.40,13.25 5.79,12.86 L8.62,10.04 L5.79,7.21 C5.40,6.82 5.40,6.18 5.79,5.79 C6.18,5.40 6.82,5.40 7.21,5.79 L10.04,8.62 Z",fill:"currentColor"})]})}),i=r.span`
2
-
3
- position: absolute;
4
- display: flex;
5
- justify-content: center;
6
- align-items: flex-end;
7
-
8
- font-size: .785rem;
9
- line-height: .875rem;
10
-
11
- border-radius: calc( ${({theme:t})=>t.borderRadius} - 2px);
12
- padding: 8px 7px;
13
- color: ${({theme:t})=>t.colorErrorText};
14
- background: ${({theme:t})=>t.colorError};
15
- width: max-content;
16
- max-width: 210px;
17
-
18
- z-index: 1;
19
-
20
- ${({$position:t="top-right"})=>{switch(t){case"top-left":return"\n left: -10px;\n bottom: 30px;\n ";case"top-right":return"\n right: -16px;\n bottom: 30px;\n ";case"bottom-left":return"\n left: -95px;\n top: -40px;\n ";case"bottom-right":return"\n right: -95px;\n bottom: -40px;\n "}}}
21
-
22
- &::after {
23
-
24
- content: "";
25
- width: 0;
26
- height: 0;
27
- position: absolute;
28
- border-left: 7px solid transparent;
29
- border-right: 7px solid transparent;
30
-
31
- ${({$position:t="top-right",$offsetX:o=0,$offsetY:r=0,theme:e})=>{switch(t){case"top-right":return`\n bottom: calc(-6px + ${r}px);\n right: calc(17px + ${o}px);\n border-top: 10px solid ${e.colorError};\n `;case"top-left":return`\n bottom: calc(-6px + ${r}px);\n left: calc(17px + ${o}px);\n border-top: 10px solid ${e.colorError};\n `;case"bottom-left":return`\n top: calc(-6px + ${r}px);\n left: calc(17px + ${o}px);\n border-bottom: 10px solid ${e.colorError};\n `;case"bottom-right":return`\n top: calc(-6px + ${r}px);\n right: calc(17px + ${o}px);\n border-bottom: 10px solid ${e.colorError};\n `}}}
32
-
33
- }
34
-
35
- `,l=r.div`
36
-
37
- position: absolute;
38
- border: 1px solid ${({theme:t})=>t.colorErrorBorder};
39
- width: ${({$fullSize:t})=>t?"100%":"calc(100% + 2px)"};
40
- height: ${({$fullSize:t})=>t?"100%":"calc(100% + 2px)"};
41
- border-radius: calc( ${({theme:t})=>t.borderRadius} - 2px);
42
- top: ${({$fullSize:t})=>t?"0":"-1px"};
43
- left: ${({$fullSize:t})=>t?"0":"-1px"};
44
- pointer-events: none;
45
-
46
- `,p=r.div`
47
-
48
- display: flex;
49
- align-items: center;
50
- justify-content: center;
51
- cursor: pointer;
52
- position: relative;
53
-
54
- svg circle {
55
- fill: ${({theme:t})=>t.colorError};
56
- }
57
- svg path {
58
- fill: ${({theme:t})=>t.colorErrorText};
59
- }
60
-
61
- `,c=({message:r,icon:l,className:c="itd-error-icon",tooltipPosition:s="top-right"})=>{const[x,a]=e(!1);return o(p,{className:c,onPointerOver:()=>a(!0),onPointerOut:()=>a(!1),children:[l||n,x&&t(i,{$position:s,children:r})]})};export{l as ErrorBorder,c as ErrorIcon,n as ErrorSVGIcon,i as ErrorTooltip};
@@ -1 +0,0 @@
1
- import{ComponentSizes as L}from"../enums/enum.js";function e(e){return e===L.X_SMALL?"14":e===L.SMALL?"16":e===L.MEDIUM?"18":e===L.DEFAULT?"20":e===L.LARGE?"22":e===L.X_LARGE?"24":"20"}export{e as default};
@@ -1 +0,0 @@
1
- import{ComponentSizes as L,ComponentSizesSlug as A}from"../enums/enum.js";function E(E){return E===L.X_SMALL?A.X_SMALL:E===L.SMALL?A.SMALL:E===L.MEDIUM?A.MEDIUM:E===L.DEFAULT?A.DEFAULT:E===L.LARGE?A.LARGE:E===L.X_LARGE?A.X_LARGE:A.DEFAULT}export{E as default};
@@ -1 +0,0 @@
1
- import{jsx as t}from"react/jsx-runtime";import{memo as r,useRef as e,useEffect as s}from"react";const a=new Map;var n=r(({src:r,className:n,style:o,title:l,role:i,onLoaded:c,onError:u})=>{const f=e(null);return s(()=>{const t=f.current;if(!t)return;let e=!1;const s=r=>{if(e)return;t.__itdLastSvg!==r?(t.innerHTML=r,t.__itdLastSvg=r,c&&c()):c&&c()};try{if(r.trim().startsWith("<svg"))return s(r),()=>{e=!0};if(a.has(r))return s(a.get(r)),()=>{e=!0};const t=new AbortController;return fetch(r,{signal:t.signal}).then(async t=>{if(!t.ok)throw new Error(`SVG load failed: ${t.status}`);return t.text()}).then(t=>{a.set(r,t),s(t)}).catch(t=>{e||u&&u(t)}),()=>{e=!0,t.abort()}}catch(t){u&&u(t)}return()=>{e=!0}},[r]),t("span",{ref:f,className:n,style:o,title:l,role:i,"aria-hidden":!l||void 0})},(t,r)=>t.src===r.src&&t.className===r.className&&t.title===r.title&&t.role===r.role&&t.style===r.style);export{n as default};
@@ -1,19 +0,0 @@
1
- /**
2
- * HEX to RGBA converter
3
- * @param hex - The hex color string
4
- * @param alpha - The alpha value (0-1)
5
- * @returns The RGBA color string
6
- */
7
- export declare function hexToRgba(hex: string, alpha?: number): string;
8
- /**
9
- * With opacity helper
10
- * @param color - The color string
11
- * @param alpha - The alpha value (0-1)
12
- * @returns The color string with opacity
13
- */
14
- export declare function withOpacity(color: string, alpha?: number): string;
15
- /**
16
- * Returns the contrast text color for a given color (light/dark)
17
- * Supports OKLCH and HEX formats
18
- */
19
- export declare function getContrastText(color: string): string;
@@ -1,16 +0,0 @@
1
- /**
2
- * Generate a 50-950 color scale from a single base color (base is 600).
3
- * Supports both HEX (#rrggbb) and OKLCH (oklch(L C H)) formats.
4
- *
5
- * The algorithm uses Tailwind CSS OKLCH color scales as reference,
6
- * with specific lightness/chroma/hue curves per color band.
7
- */
8
- export type Shade = 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950;
9
- export type ColorScale = Record<Shade, string>;
10
- export declare function generateColorScaleFromBase(baseColor: string, options?: {
11
- clampLightness?: {
12
- min?: number;
13
- max?: number;
14
- };
15
- }): ColorScale;
16
- export default generateColorScaleFromBase;
@@ -1,30 +0,0 @@
1
- /**
2
- * CSS Variables Generator
3
- * tokens.ts'deki değerleri CSS custom properties'e dönüştürür
4
- */
5
- /**
6
- * Design token'larını CSS variables olarak inject eder
7
- * Bu fonksiyon ITDThemeProvider tarafından otomatik çağrılır
8
- */
9
- export declare function injectDesignTokens(): void;
10
- /**
11
- * CSS variables'ları export et (dokümantasyon için)
12
- */
13
- export declare const CSS_VARIABLES_MAP: {
14
- readonly '--itd-text-xs': "0.725rem";
15
- readonly '--itd-text-sm': "0.75rem";
16
- readonly '--itd-text-md': "0.825rem";
17
- readonly '--itd-text-df': "0.875rem";
18
- readonly '--itd-text-lg': "0.875rem";
19
- readonly '--itd-text-xl': "0.875rem";
20
- readonly '--itd-font-weight-normal': 400;
21
- readonly '--itd-font-weight-medium': 500;
22
- readonly '--itd-font-weight-semibold': 600;
23
- readonly '--itd-font-weight-bold': 700;
24
- readonly '--itd-spacing': "0.25rem";
25
- };
26
- /**
27
- * Verilen theme objesini CSS variables olarak inject eder
28
- * @param theme - Styled-components theme objesi
29
- */
30
- export declare function injectThemeColors(theme: Record<string, string>): void;
@@ -1,3 +0,0 @@
1
- import type { ITDTheme } from "../../types/Theme";
2
- declare const darkTheme: ITDTheme;
3
- export default darkTheme;
@@ -1,9 +0,0 @@
1
- export { default as AddDefaultThemeStyle } from './AddDefaultThemeStyle';
2
- export { default as UpdateThemeStyle } from './UpdateThemeStyle';
3
- export { default as GenerateColorScale, generateColorScaleFromBase } from './GenerateColorScale';
4
- export { hexToRgba, withOpacity, getContrastText } from './Color';
5
- export { default as lightTheme } from './light';
6
- export { default as darkTheme } from './dark';
7
- export { default as themes } from './themes.js';
8
- export { TYPOGRAPHY_TOKENS, SPACING_TOKENS, ICON_TOKENS, INPUT_SIZE_MAP, SELECT_SIZE_MAP, BUTTON_SIZE_MAP, ALERT_TOKENS, CARD_TOKENS, MODAL_TOKENS } from './tokens';
9
- export { injectDesignTokens, injectThemeColors, CSS_VARIABLES_MAP } from './cssVariables';
@@ -1,3 +0,0 @@
1
- import type { ITDTheme } from "../../types/Theme";
2
- declare const lightTheme: ITDTheme;
3
- export default lightTheme;
@@ -1,5 +0,0 @@
1
- declare const themes: {
2
- light: import("./index").ITDTheme;
3
- dark: import("./index").ITDTheme;
4
- };
5
- export default themes;