@inntechcorp/it-design 2.2.90 → 3.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (598) hide show
  1. package/dist/alert/Description.d.ts +7 -0
  2. package/dist/alert/Title.d.ts +7 -0
  3. package/dist/alert/alert.style.neutral.d.ts +4 -0
  4. package/dist/alert/index.d.ts +3 -1
  5. package/dist/alert/styled.d.ts +3 -7
  6. package/dist/alink/styled.d.ts +1 -1
  7. package/dist/button/index.d.ts +1 -1
  8. package/dist/card/index.d.ts +1 -1
  9. package/dist/card/styles.d.ts +2 -1
  10. package/dist/checkbox/styled.d.ts +2 -2
  11. package/dist/cjs/_virtual/_commonjsHelpers.js +1 -0
  12. package/dist/cjs/_virtual/customParseFormat.js +1 -0
  13. package/dist/cjs/_virtual/customParseFormat2.js +1 -0
  14. package/dist/cjs/_virtual/dayjs.min.js +1 -0
  15. package/dist/cjs/_virtual/dayjs.min2.js +1 -0
  16. package/dist/cjs/_virtual/localizedFormat.js +1 -0
  17. package/dist/cjs/_virtual/localizedFormat2.js +1 -0
  18. package/dist/cjs/_virtual/react.js +1 -0
  19. package/dist/cjs/accordion/index.js +1 -0
  20. package/dist/cjs/accordion/item/Item.js +1 -0
  21. package/dist/cjs/accordion/item/styled.js +20 -0
  22. package/dist/cjs/accordion/styled.js +15 -0
  23. package/dist/cjs/accordion/submenu/SubMenu.js +1 -0
  24. package/dist/cjs/accordion/submenu/styled.js +214 -0
  25. package/dist/cjs/alert/Description.js +1 -0
  26. package/dist/cjs/alert/Title.js +1 -0
  27. package/dist/cjs/alert/alert.style.error.js +32 -0
  28. package/dist/cjs/alert/alert.style.info.js +32 -0
  29. package/dist/cjs/alert/alert.style.neutral.js +32 -0
  30. package/dist/cjs/alert/alert.style.success.js +32 -0
  31. package/dist/cjs/alert/alert.style.warning.js +32 -0
  32. package/dist/cjs/alert/index.js +1 -0
  33. package/dist/cjs/alert/styled.js +68 -0
  34. package/dist/cjs/alink/index.js +1 -0
  35. package/dist/cjs/alink/styled.js +5 -0
  36. package/dist/cjs/back-top/index.js +1 -0
  37. package/dist/cjs/back-top/styled.js +25 -0
  38. package/dist/cjs/button/button.style.circle.js +38 -0
  39. package/dist/cjs/button/button.style.default.js +44 -0
  40. package/dist/cjs/button/button.style.filled.js +49 -0
  41. package/dist/cjs/button/button.style.ghost.js +47 -0
  42. package/dist/cjs/button/button.style.icon.js +33 -0
  43. package/dist/cjs/button/button.style.link.js +45 -0
  44. package/dist/cjs/button/button.style.outline.js +49 -0
  45. package/dist/cjs/button/button.style.size.js +187 -0
  46. package/dist/cjs/button/button.style.solid.js +50 -0
  47. package/dist/cjs/button/button.style.strecth.js +8 -0
  48. package/dist/cjs/button/index.js +1 -0
  49. package/dist/cjs/button/styled.js +415 -0
  50. package/dist/cjs/calendar/dates.js +1 -0
  51. package/dist/cjs/calendar/day/Day.js +1 -0
  52. package/dist/cjs/calendar/day/styled.js +91 -0
  53. package/dist/cjs/calendar/header/Header.js +1 -0
  54. package/dist/cjs/calendar/header/styled.js +196 -0
  55. package/dist/cjs/calendar/index.js +1 -0
  56. package/dist/cjs/calendar/styled.js +82 -0
  57. package/dist/cjs/card/index.js +1 -0
  58. package/dist/cjs/card/styles.js +66 -0
  59. package/dist/cjs/checkbox/group/index.js +1 -0
  60. package/dist/cjs/checkbox/group/styled.js +9 -0
  61. package/dist/cjs/checkbox/index.js +1 -0
  62. package/dist/cjs/checkbox/styled.js +340 -0
  63. package/dist/cjs/context/ITDContext.js +1 -0
  64. package/dist/cjs/context/ITDThemeProvider.js +1 -0
  65. package/dist/cjs/context/styled.js +15 -0
  66. package/dist/cjs/datepicker/index.js +1 -0
  67. package/dist/cjs/datepicker/styled.js +60 -0
  68. package/dist/cjs/enums/enum.js +1 -0
  69. package/dist/cjs/flex/index.js +1 -0
  70. package/dist/cjs/flex/styled.js +35 -0
  71. package/dist/cjs/form/context/FormContext.js +1 -0
  72. package/dist/cjs/form/context/FormStore.js +1 -0
  73. package/dist/cjs/form/control/Control.js +1 -0
  74. package/dist/cjs/form/control/styled.js +8 -0
  75. package/dist/cjs/form/group/Group.js +1 -0
  76. package/dist/cjs/form/group/styled.js +7 -0
  77. package/dist/cjs/form/index.js +1 -0
  78. package/dist/cjs/form/item/Item.js +1 -0
  79. package/dist/cjs/form/validation/TCIdentity.js +1 -0
  80. package/dist/cjs/form/validation/Validator.js +1 -0
  81. package/dist/cjs/form/wrapper/FormWrapper.js +1 -0
  82. package/dist/cjs/helpers/array/ChunkArray.js +1 -0
  83. package/dist/cjs/helpers/aspectratio/DetermineNewHeight.js +1 -0
  84. package/dist/cjs/helpers/aspectratio/DetermineNewWidth.js +1 -0
  85. package/dist/cjs/helpers/base64/Base64Decode.js +1 -0
  86. package/dist/cjs/helpers/base64/Base64Encode.js +1 -0
  87. package/dist/cjs/helpers/binary/FormatBytes.js +1 -0
  88. package/dist/cjs/helpers/binary/GetTypeByFileType.js +1 -0
  89. package/dist/cjs/helpers/checker/CheckFileURL.js +1 -0
  90. package/dist/cjs/helpers/checker/FileChecker.js +1 -0
  91. package/dist/cjs/helpers/country/GetCountryCodeByCurrencyCode.js +1 -0
  92. package/dist/cjs/helpers/country/GetCountryCodeByLanguage.js +1 -0
  93. package/dist/cjs/helpers/css/FindSelector.js +1 -0
  94. package/dist/cjs/helpers/currency/ConvertCurrency.js +1 -0
  95. package/dist/cjs/helpers/currency/GetByCurrency.js +1 -0
  96. package/dist/cjs/helpers/currency/GetCurrencyFormat.js +1 -0
  97. package/dist/cjs/helpers/currency/GetCurrencySymbol.js +1 -0
  98. package/dist/cjs/helpers/currency/GetDecimalByCurrency.js +1 -0
  99. package/dist/cjs/helpers/datetime/FormatDate.js +1 -0
  100. package/dist/cjs/helpers/datetime/FormatDateTime.js +1 -0
  101. package/dist/cjs/helpers/datetime/FormatSimpleDate.js +1 -0
  102. package/dist/cjs/helpers/datetime/FormatSimpleDateTime.js +1 -0
  103. package/dist/cjs/helpers/datetime/FormatTime.js +1 -0
  104. package/dist/cjs/helpers/datetime/dayjsSetup.js +1 -0
  105. package/dist/cjs/helpers/format/ToKebabCase.js +1 -0
  106. package/dist/cjs/helpers/json/IsValidJSON.js +1 -0
  107. package/dist/cjs/helpers/math/AddZero.js +1 -0
  108. package/dist/cjs/helpers/promise/Wait.js +1 -0
  109. package/dist/cjs/helpers/remover/RemoveUnits.js +1 -0
  110. package/dist/cjs/helpers/string/UniUpperCase.js +1 -0
  111. package/dist/cjs/helpers/svg/SVGLoader.js +1 -0
  112. package/dist/cjs/helpers/svg/styles.js +22 -0
  113. package/dist/cjs/helpers/theme/AddDefaultThemeStyle.js +1 -0
  114. package/dist/cjs/helpers/theme/Color.js +1 -0
  115. package/dist/cjs/helpers/theme/GenerateColorScale.js +1 -0
  116. package/dist/cjs/helpers/theme/UpdateThemeStyle.js +1 -0
  117. package/dist/cjs/helpers/theme/cssVariables.js +1 -0
  118. package/dist/cjs/helpers/theme/dark.js +1 -0
  119. package/dist/cjs/helpers/theme/light.js +1 -0
  120. package/dist/cjs/helpers/theme/tokens.js +1 -0
  121. package/dist/cjs/helpers/unit/AddDefaultUnit.js +1 -0
  122. package/dist/cjs/helpers/url/ValidURL.js +1 -0
  123. package/dist/cjs/hooks/useAddExternalCSS.js +1 -0
  124. package/dist/cjs/hooks/useAvoidCollision.js +1 -0
  125. package/dist/cjs/hooks/useComponentSize.js +1 -0
  126. package/dist/cjs/hooks/useConnectionStatus.js +1 -0
  127. package/dist/cjs/hooks/useConstructor.js +1 -0
  128. package/dist/cjs/hooks/useContextBridge.js +1 -0
  129. package/dist/cjs/hooks/useCoreFetch.js +1 -0
  130. package/dist/cjs/hooks/useKeyboardShortcut.js +1 -0
  131. package/dist/cjs/hooks/useMultiQuery.js +1 -0
  132. package/dist/cjs/hooks/useOnClickOutside.js +1 -0
  133. package/dist/cjs/hooks/useOnESCKeyDown.js +1 -0
  134. package/dist/cjs/hooks/useOnResize.js +1 -0
  135. package/dist/cjs/hooks/useOrientation.js +1 -0
  136. package/dist/cjs/hooks/useReCaptcha.js +1 -0
  137. package/dist/cjs/hooks/useSingleQuery.js +1 -0
  138. package/dist/cjs/html/header/H1.js +1 -0
  139. package/dist/cjs/html/header/H2.js +1 -0
  140. package/dist/cjs/html/header/H3.js +1 -0
  141. package/dist/cjs/html/header/H4.js +1 -0
  142. package/dist/cjs/html/header/styled.js +33 -0
  143. package/dist/cjs/icons/Arrow.js +1 -0
  144. package/dist/cjs/icons/BackToTop.js +1 -0
  145. package/dist/cjs/icons/Checkmark.js +1 -0
  146. package/dist/cjs/icons/InlineSelectArrow.js +1 -0
  147. package/dist/cjs/icons/Lock.js +1 -0
  148. package/dist/cjs/icons/NoData.js +1 -0
  149. package/dist/cjs/icons/Picture.js +1 -0
  150. package/dist/cjs/icons/Trash.js +1 -0
  151. package/dist/cjs/icons/Upload.js +1 -0
  152. package/dist/cjs/icons/ZoomIn.js +1 -0
  153. package/dist/cjs/icons/ZoomOut.js +1 -0
  154. package/dist/cjs/image/index.js +1 -0
  155. package/dist/cjs/image/styled.js +4 -0
  156. package/dist/cjs/index.js +1 -0
  157. package/dist/cjs/input/index.js +1 -0
  158. package/dist/cjs/input/style.settings.js +1 -0
  159. package/dist/cjs/input/styled.js +430 -0
  160. package/dist/cjs/locales/en/calendar.json.js +1 -0
  161. package/dist/cjs/locales/en/itd.json.js +1 -0
  162. package/dist/cjs/locales/tr/calendar.json.js +1 -0
  163. package/dist/cjs/locales/tr/itd.json.js +1 -0
  164. package/dist/cjs/logger/index.js +1 -0
  165. package/dist/cjs/modal/container/ModalContainer.js +1 -0
  166. package/dist/cjs/modal/container/styled.js +27 -0
  167. package/dist/cjs/modal/context/ModalContext.js +1 -0
  168. package/dist/cjs/modal/index.js +1 -0
  169. package/dist/cjs/modal/modal/Modal.js +1 -0
  170. package/dist/cjs/modal/modal/closeicon.svg.js +1 -0
  171. package/dist/cjs/modal/modal/styled.js +128 -0
  172. package/dist/cjs/node_modules/@react-spring/animated/dist/react-spring_animated.modern.js +1 -0
  173. package/dist/cjs/node_modules/@react-spring/core/dist/react-spring_core.modern.js +1 -0
  174. package/dist/cjs/node_modules/@react-spring/rafz/dist/react-spring_rafz.modern.js +1 -0
  175. package/dist/cjs/node_modules/@react-spring/shared/dist/react-spring_shared.modern.js +1 -0
  176. package/dist/cjs/node_modules/@react-spring/web/dist/react-spring_web.modern.js +1 -0
  177. package/dist/cjs/node_modules/dayjs/dayjs.min.js +1 -0
  178. package/dist/cjs/node_modules/dayjs/plugin/customParseFormat.js +1 -0
  179. package/dist/cjs/node_modules/dayjs/plugin/localizedFormat.js +1 -0
  180. package/dist/cjs/node_modules/fast-deep-equal/react.js +1 -0
  181. package/dist/cjs/node_modules/lodash-es/_Symbol.js +1 -0
  182. package/dist/cjs/node_modules/lodash-es/_arrayMap.js +1 -0
  183. package/dist/cjs/node_modules/lodash-es/_baseGetTag.js +1 -0
  184. package/dist/cjs/node_modules/lodash-es/_baseToString.js +1 -0
  185. package/dist/cjs/node_modules/lodash-es/_freeGlobal.js +1 -0
  186. package/dist/cjs/node_modules/lodash-es/_getRawTag.js +1 -0
  187. package/dist/cjs/node_modules/lodash-es/_objectToString.js +1 -0
  188. package/dist/cjs/node_modules/lodash-es/_root.js +1 -0
  189. package/dist/cjs/node_modules/lodash-es/isArray.js +1 -0
  190. package/dist/cjs/node_modules/lodash-es/isObject.js +1 -0
  191. package/dist/cjs/node_modules/lodash-es/isObjectLike.js +1 -0
  192. package/dist/cjs/node_modules/lodash-es/isSymbol.js +1 -0
  193. package/dist/cjs/node_modules/lodash-es/toString.js +1 -0
  194. package/dist/cjs/node_modules/lodash-es/uniqueId.js +1 -0
  195. package/dist/cjs/node_modules/lucide-react/dist/esm/Icon.js +8 -0
  196. package/dist/cjs/node_modules/lucide-react/dist/esm/createLucideIcon.js +1 -0
  197. package/dist/cjs/node_modules/lucide-react/dist/esm/defaultAttributes.js +1 -0
  198. package/dist/cjs/node_modules/lucide-react/dist/esm/icons/calendar-1.js +8 -0
  199. package/dist/cjs/node_modules/lucide-react/dist/esm/icons/chevron-down.js +8 -0
  200. package/dist/cjs/node_modules/lucide-react/dist/esm/icons/circle-x.js +8 -0
  201. package/dist/cjs/node_modules/lucide-react/dist/esm/icons/eye.js +8 -0
  202. package/dist/cjs/node_modules/lucide-react/dist/esm/icons/info.js +8 -0
  203. package/dist/cjs/node_modules/lucide-react/dist/esm/icons/trash.js +8 -0
  204. package/dist/cjs/node_modules/lucide-react/dist/esm/shared/src/utils.js +7 -0
  205. package/dist/cjs/node_modules/overlayscrollbars/overlayscrollbars.js +10 -0
  206. package/dist/cjs/node_modules/overlayscrollbars/styles/overlayscrollbars.css.js +1 -0
  207. package/dist/cjs/node_modules/react-number-format/dist/react-number-format.es.js +1 -0
  208. package/dist/cjs/node_modules/rollup-plugin-node-globals/src/global.js +1 -0
  209. package/dist/cjs/node_modules/rollup-plugin-styles/dist/runtime/inject-css.js +1 -0
  210. package/dist/cjs/node_modules/uuid/dist/esm-browser/native.js +1 -0
  211. package/dist/cjs/node_modules/uuid/dist/esm-browser/rng.js +1 -0
  212. package/dist/cjs/node_modules/uuid/dist/esm-browser/stringify.js +1 -0
  213. package/dist/cjs/node_modules/uuid/dist/esm-browser/v4.js +1 -0
  214. package/dist/cjs/notification/container/Container.js +1 -0
  215. package/dist/cjs/notification/container/styled.js +26 -0
  216. package/dist/cjs/notification/context/NotificationsContext.js +1 -0
  217. package/dist/cjs/notification/index.js +1 -0
  218. package/dist/cjs/notification/item/Item.js +1 -0
  219. package/dist/cjs/notification/item/styled.js +42 -0
  220. package/dist/cjs/progress/index.js +1 -0
  221. package/dist/cjs/progress/styled.js +59 -0
  222. package/dist/cjs/radio/button/RadioButton.js +1 -0
  223. package/dist/cjs/radio/button/styled.js +133 -0
  224. package/dist/cjs/radio/group/Group.js +1 -0
  225. package/dist/cjs/radio/group/styled.js +7 -0
  226. package/dist/cjs/radio/index.js +1 -0
  227. package/dist/cjs/result/index.js +1 -0
  228. package/dist/cjs/result/styled.js +109 -0
  229. package/dist/cjs/select/dropdown/Dropdown.js +1 -0
  230. package/dist/cjs/select/dropdown/styled.js +239 -0
  231. package/dist/cjs/select/index.js +1 -0
  232. package/dist/cjs/select/option/Option.js +1 -0
  233. package/dist/cjs/select/option/styled.js +36 -0
  234. package/dist/cjs/select/style.settings.js +1 -0
  235. package/dist/cjs/select/styled.js +331 -0
  236. package/dist/cjs/select/toggle/Toggle.js +1 -0
  237. package/dist/cjs/select/toggle/label/Label.js +1 -0
  238. package/dist/cjs/select/toggle/label/styled.js +5 -0
  239. package/dist/cjs/select/toggle/styled.js +88 -0
  240. package/dist/cjs/spin/index.js +1 -0
  241. package/dist/cjs/spin/styled.js +74 -0
  242. package/dist/cjs/status/index.js +1 -0
  243. package/dist/cjs/status/styled.js +75 -0
  244. package/dist/cjs/switch/index.js +1 -0
  245. package/dist/cjs/switch/styled.js +209 -0
  246. package/dist/cjs/table/index.js +1 -0
  247. package/dist/cjs/table/styled.js +458 -0
  248. package/dist/cjs/tabs/index.js +1 -0
  249. package/dist/cjs/tabs/styles.js +96 -0
  250. package/dist/cjs/textarea/index.js +1 -0
  251. package/dist/cjs/textarea/styled.js +220 -0
  252. package/dist/cjs/tinyscrollbar/index.js +1 -0
  253. package/dist/cjs/tinyscrollbar/scroll.styled.js +21 -0
  254. package/dist/cjs/types/InputProps.js +1 -0
  255. package/dist/cjs/upload/index.js +1 -0
  256. package/dist/cjs/upload/styled.js +228 -0
  257. package/dist/cjs/utils/CommonStyledComponents.js +61 -0
  258. package/dist/cjs/utils/GetIconSizeBySize.js +1 -0
  259. package/dist/cjs/utils/GetSizeSlugBySize.js +1 -0
  260. package/dist/cjs/utils/InlineSVGCached.js +1 -0
  261. package/dist/datepicker/styled.d.ts +2 -2
  262. package/dist/enums/enum.d.ts +14 -1
  263. package/dist/es/_virtual/_commonjsHelpers.js +1 -0
  264. package/dist/es/_virtual/customParseFormat.js +1 -0
  265. package/dist/es/_virtual/customParseFormat2.js +1 -0
  266. package/dist/es/_virtual/dayjs.min.js +1 -0
  267. package/dist/es/_virtual/dayjs.min2.js +1 -0
  268. package/dist/es/_virtual/localizedFormat.js +1 -0
  269. package/dist/es/_virtual/localizedFormat2.js +1 -0
  270. package/dist/es/_virtual/react.js +1 -0
  271. package/dist/es/accordion/index.js +1 -0
  272. package/dist/es/accordion/item/Item.js +1 -0
  273. package/dist/es/accordion/item/styled.js +20 -0
  274. package/dist/es/accordion/styled.js +15 -0
  275. package/dist/es/accordion/submenu/SubMenu.js +1 -0
  276. package/dist/es/accordion/submenu/styled.js +214 -0
  277. package/dist/es/alert/Description.js +1 -0
  278. package/dist/es/alert/Title.js +1 -0
  279. package/dist/es/alert/alert.style.error.js +32 -0
  280. package/dist/es/alert/alert.style.info.js +32 -0
  281. package/dist/es/alert/alert.style.neutral.js +32 -0
  282. package/dist/es/alert/alert.style.success.js +32 -0
  283. package/dist/es/alert/alert.style.warning.js +32 -0
  284. package/dist/es/alert/index.js +1 -0
  285. package/dist/es/alert/styled.js +68 -0
  286. package/dist/es/alink/index.js +1 -0
  287. package/dist/es/alink/styled.js +5 -0
  288. package/dist/es/back-top/index.js +1 -0
  289. package/dist/es/back-top/styled.js +25 -0
  290. package/dist/es/button/button.style.circle.js +38 -0
  291. package/dist/es/button/button.style.default.js +44 -0
  292. package/dist/es/button/button.style.filled.js +49 -0
  293. package/dist/es/button/button.style.ghost.js +47 -0
  294. package/dist/es/button/button.style.icon.js +33 -0
  295. package/dist/es/button/button.style.link.js +45 -0
  296. package/dist/es/button/button.style.outline.js +49 -0
  297. package/dist/es/button/button.style.size.js +187 -0
  298. package/dist/es/button/button.style.solid.js +50 -0
  299. package/dist/es/button/button.style.strecth.js +8 -0
  300. package/dist/es/button/index.js +1 -0
  301. package/dist/es/button/styled.js +415 -0
  302. package/dist/es/calendar/dates.js +1 -0
  303. package/dist/es/calendar/day/Day.js +1 -0
  304. package/dist/es/calendar/day/styled.js +91 -0
  305. package/dist/es/calendar/header/Header.js +1 -0
  306. package/dist/es/calendar/header/styled.js +196 -0
  307. package/dist/es/calendar/index.js +1 -0
  308. package/dist/es/calendar/styled.js +82 -0
  309. package/dist/es/card/index.js +1 -0
  310. package/dist/es/card/styles.js +66 -0
  311. package/dist/es/checkbox/group/index.js +1 -0
  312. package/dist/es/checkbox/group/styled.js +9 -0
  313. package/dist/es/checkbox/index.js +1 -0
  314. package/dist/es/checkbox/styled.js +340 -0
  315. package/dist/es/context/ITDContext.js +1 -0
  316. package/dist/es/context/ITDThemeProvider.js +1 -0
  317. package/dist/es/context/styled.js +15 -0
  318. package/dist/es/datepicker/index.js +1 -0
  319. package/dist/es/datepicker/styled.js +60 -0
  320. package/dist/es/enums/enum.js +1 -0
  321. package/dist/es/flex/index.js +1 -0
  322. package/dist/es/flex/styled.js +35 -0
  323. package/dist/es/form/context/FormContext.js +1 -0
  324. package/dist/es/form/context/FormStore.js +1 -0
  325. package/dist/es/form/control/Control.js +1 -0
  326. package/dist/es/form/control/styled.js +8 -0
  327. package/dist/es/form/group/Group.js +1 -0
  328. package/dist/es/form/group/styled.js +7 -0
  329. package/dist/es/form/index.js +1 -0
  330. package/dist/es/form/item/Item.js +1 -0
  331. package/dist/es/form/validation/TCIdentity.js +1 -0
  332. package/dist/es/form/validation/Validator.js +1 -0
  333. package/dist/es/form/wrapper/FormWrapper.js +1 -0
  334. package/dist/es/helpers/array/ChunkArray.js +1 -0
  335. package/dist/es/helpers/aspectratio/DetermineNewHeight.js +1 -0
  336. package/dist/es/helpers/aspectratio/DetermineNewWidth.js +1 -0
  337. package/dist/es/helpers/base64/Base64Decode.js +1 -0
  338. package/dist/es/helpers/base64/Base64Encode.js +1 -0
  339. package/dist/es/helpers/binary/FormatBytes.js +1 -0
  340. package/dist/es/helpers/binary/GetTypeByFileType.js +1 -0
  341. package/dist/es/helpers/checker/CheckFileURL.js +1 -0
  342. package/dist/es/helpers/checker/FileChecker.js +1 -0
  343. package/dist/es/helpers/country/GetCountryCodeByCurrencyCode.js +1 -0
  344. package/dist/es/helpers/country/GetCountryCodeByLanguage.js +1 -0
  345. package/dist/es/helpers/css/FindSelector.js +1 -0
  346. package/dist/es/helpers/currency/ConvertCurrency.js +1 -0
  347. package/dist/es/helpers/currency/GetByCurrency.js +1 -0
  348. package/dist/es/helpers/currency/GetCurrencyFormat.js +1 -0
  349. package/dist/es/helpers/currency/GetCurrencySymbol.js +1 -0
  350. package/dist/es/helpers/currency/GetDecimalByCurrency.js +1 -0
  351. package/dist/es/helpers/datetime/FormatDate.js +1 -0
  352. package/dist/es/helpers/datetime/FormatDateTime.js +1 -0
  353. package/dist/es/helpers/datetime/FormatSimpleDate.js +1 -0
  354. package/dist/es/helpers/datetime/FormatSimpleDateTime.js +1 -0
  355. package/dist/es/helpers/datetime/FormatTime.js +1 -0
  356. package/dist/es/helpers/datetime/dayjsSetup.js +1 -0
  357. package/dist/es/helpers/format/ToKebabCase.js +1 -0
  358. package/dist/es/helpers/json/IsValidJSON.js +1 -0
  359. package/dist/es/helpers/math/AddZero.js +1 -0
  360. package/dist/es/helpers/promise/Wait.js +1 -0
  361. package/dist/es/helpers/remover/RemoveUnits.js +1 -0
  362. package/dist/es/helpers/string/UniUpperCase.js +1 -0
  363. package/dist/es/helpers/svg/SVGLoader.js +1 -0
  364. package/dist/es/helpers/svg/styles.js +22 -0
  365. package/dist/es/helpers/theme/AddDefaultThemeStyle.js +1 -0
  366. package/dist/es/helpers/theme/Color.js +1 -0
  367. package/dist/es/helpers/theme/GenerateColorScale.js +1 -0
  368. package/dist/es/helpers/theme/UpdateThemeStyle.js +1 -0
  369. package/dist/es/helpers/theme/cssVariables.js +1 -0
  370. package/dist/es/helpers/theme/dark.js +1 -0
  371. package/dist/es/helpers/theme/light.js +1 -0
  372. package/dist/es/helpers/theme/tokens.js +1 -0
  373. package/dist/es/helpers/unit/AddDefaultUnit.js +1 -0
  374. package/dist/es/helpers/url/ValidURL.js +1 -0
  375. package/dist/es/hooks/useAddExternalCSS.js +1 -0
  376. package/dist/es/hooks/useAvoidCollision.js +1 -0
  377. package/dist/es/hooks/useComponentSize.js +1 -0
  378. package/dist/es/hooks/useConnectionStatus.js +1 -0
  379. package/dist/es/hooks/useConstructor.js +1 -0
  380. package/dist/es/hooks/useContextBridge.js +1 -0
  381. package/dist/es/hooks/useCoreFetch.js +1 -0
  382. package/dist/es/hooks/useKeyboardShortcut.js +1 -0
  383. package/dist/es/hooks/useMultiQuery.js +1 -0
  384. package/dist/es/hooks/useOnClickOutside.js +1 -0
  385. package/dist/es/hooks/useOnESCKeyDown.js +1 -0
  386. package/dist/es/hooks/useOnResize.js +1 -0
  387. package/dist/es/hooks/useOrientation.js +1 -0
  388. package/dist/es/hooks/useReCaptcha.js +1 -0
  389. package/dist/es/hooks/useSingleQuery.js +1 -0
  390. package/dist/es/html/header/H1.js +1 -0
  391. package/dist/es/html/header/H2.js +1 -0
  392. package/dist/es/html/header/H3.js +1 -0
  393. package/dist/es/html/header/H4.js +1 -0
  394. package/dist/es/html/header/styled.js +33 -0
  395. package/dist/es/icons/Arrow.js +1 -0
  396. package/dist/es/icons/BackToTop.js +1 -0
  397. package/dist/es/icons/Checkmark.js +1 -0
  398. package/dist/es/icons/InlineSelectArrow.js +1 -0
  399. package/dist/es/icons/Lock.js +1 -0
  400. package/dist/es/icons/NoData.js +1 -0
  401. package/dist/es/icons/Picture.js +1 -0
  402. package/dist/es/icons/Trash.js +1 -0
  403. package/dist/es/icons/Upload.js +1 -0
  404. package/dist/es/icons/ZoomIn.js +1 -0
  405. package/dist/es/icons/ZoomOut.js +1 -0
  406. package/dist/es/image/index.js +1 -0
  407. package/dist/es/image/styled.js +4 -0
  408. package/dist/es/index.js +1 -0
  409. package/dist/es/input/index.js +1 -0
  410. package/dist/es/input/style.settings.js +1 -0
  411. package/dist/es/input/styled.js +430 -0
  412. package/dist/es/locales/en/calendar.json.js +1 -0
  413. package/dist/es/locales/en/itd.json.js +1 -0
  414. package/dist/es/locales/tr/calendar.json.js +1 -0
  415. package/dist/es/locales/tr/itd.json.js +1 -0
  416. package/dist/es/logger/index.js +1 -0
  417. package/dist/es/modal/container/ModalContainer.js +1 -0
  418. package/dist/es/modal/container/styled.js +27 -0
  419. package/dist/es/modal/context/ModalContext.js +1 -0
  420. package/dist/es/modal/index.js +1 -0
  421. package/dist/es/modal/modal/Modal.js +1 -0
  422. package/dist/es/modal/modal/closeicon.svg.js +1 -0
  423. package/dist/es/modal/modal/styled.js +128 -0
  424. package/dist/es/node_modules/@react-spring/animated/dist/react-spring_animated.modern.js +1 -0
  425. package/dist/es/node_modules/@react-spring/core/dist/react-spring_core.modern.js +1 -0
  426. package/dist/es/node_modules/@react-spring/rafz/dist/react-spring_rafz.modern.js +1 -0
  427. package/dist/es/node_modules/@react-spring/shared/dist/react-spring_shared.modern.js +1 -0
  428. package/dist/es/node_modules/@react-spring/web/dist/react-spring_web.modern.js +1 -0
  429. package/dist/es/node_modules/dayjs/dayjs.min.js +1 -0
  430. package/dist/es/node_modules/dayjs/plugin/customParseFormat.js +1 -0
  431. package/dist/es/node_modules/dayjs/plugin/localizedFormat.js +1 -0
  432. package/dist/es/node_modules/fast-deep-equal/react.js +1 -0
  433. package/dist/es/node_modules/lodash-es/_Symbol.js +1 -0
  434. package/dist/es/node_modules/lodash-es/_arrayMap.js +1 -0
  435. package/dist/es/node_modules/lodash-es/_baseGetTag.js +1 -0
  436. package/dist/es/node_modules/lodash-es/_baseToString.js +1 -0
  437. package/dist/es/node_modules/lodash-es/_freeGlobal.js +1 -0
  438. package/dist/es/node_modules/lodash-es/_getRawTag.js +1 -0
  439. package/dist/es/node_modules/lodash-es/_objectToString.js +1 -0
  440. package/dist/es/node_modules/lodash-es/_root.js +1 -0
  441. package/dist/es/node_modules/lodash-es/isArray.js +1 -0
  442. package/dist/es/node_modules/lodash-es/isObject.js +1 -0
  443. package/dist/es/node_modules/lodash-es/isObjectLike.js +1 -0
  444. package/dist/es/node_modules/lodash-es/isSymbol.js +1 -0
  445. package/dist/es/node_modules/lodash-es/toString.js +1 -0
  446. package/dist/es/node_modules/lodash-es/uniqueId.js +1 -0
  447. package/dist/es/node_modules/lucide-react/dist/esm/Icon.js +7 -0
  448. package/dist/es/node_modules/lucide-react/dist/esm/createLucideIcon.js +7 -0
  449. package/dist/es/node_modules/lucide-react/dist/esm/defaultAttributes.js +7 -0
  450. package/dist/es/node_modules/lucide-react/dist/esm/icons/calendar-1.js +7 -0
  451. package/dist/es/node_modules/lucide-react/dist/esm/icons/chevron-down.js +7 -0
  452. package/dist/es/node_modules/lucide-react/dist/esm/icons/circle-x.js +7 -0
  453. package/dist/es/node_modules/lucide-react/dist/esm/icons/eye.js +7 -0
  454. package/dist/es/node_modules/lucide-react/dist/esm/icons/info.js +7 -0
  455. package/dist/es/node_modules/lucide-react/dist/esm/icons/trash.js +7 -0
  456. package/dist/es/node_modules/lucide-react/dist/esm/shared/src/utils.js +7 -0
  457. package/dist/es/node_modules/overlayscrollbars/overlayscrollbars.js +10 -0
  458. package/dist/es/node_modules/overlayscrollbars/styles/overlayscrollbars.css.js +1 -0
  459. package/dist/es/node_modules/react-number-format/dist/react-number-format.es.js +1 -0
  460. package/dist/es/node_modules/rollup-plugin-node-globals/src/global.js +1 -0
  461. package/dist/es/node_modules/rollup-plugin-styles/dist/runtime/inject-css.js +1 -0
  462. package/dist/es/node_modules/uuid/dist/esm-browser/native.js +1 -0
  463. package/dist/es/node_modules/uuid/dist/esm-browser/rng.js +1 -0
  464. package/dist/es/node_modules/uuid/dist/esm-browser/stringify.js +1 -0
  465. package/dist/es/node_modules/uuid/dist/esm-browser/v4.js +1 -0
  466. package/dist/es/notification/container/Container.js +1 -0
  467. package/dist/es/notification/container/styled.js +26 -0
  468. package/dist/es/notification/context/NotificationsContext.js +1 -0
  469. package/dist/es/notification/index.js +1 -0
  470. package/dist/es/notification/item/Item.js +1 -0
  471. package/dist/es/notification/item/styled.js +42 -0
  472. package/dist/es/progress/index.js +1 -0
  473. package/dist/es/progress/styled.js +59 -0
  474. package/dist/es/radio/button/RadioButton.js +1 -0
  475. package/dist/es/radio/button/styled.js +133 -0
  476. package/dist/es/radio/group/Group.js +1 -0
  477. package/dist/es/radio/group/styled.js +7 -0
  478. package/dist/es/radio/index.js +1 -0
  479. package/dist/es/result/index.js +1 -0
  480. package/dist/es/result/styled.js +109 -0
  481. package/dist/es/select/dropdown/Dropdown.js +1 -0
  482. package/dist/es/select/dropdown/styled.js +239 -0
  483. package/dist/es/select/index.js +1 -0
  484. package/dist/es/select/option/Option.js +1 -0
  485. package/dist/es/select/option/styled.js +36 -0
  486. package/dist/es/select/style.settings.js +1 -0
  487. package/dist/es/select/styled.js +331 -0
  488. package/dist/es/select/toggle/Toggle.js +1 -0
  489. package/dist/es/select/toggle/label/Label.js +1 -0
  490. package/dist/es/select/toggle/label/styled.js +5 -0
  491. package/dist/es/select/toggle/styled.js +88 -0
  492. package/dist/es/spin/index.js +1 -0
  493. package/dist/es/spin/styled.js +74 -0
  494. package/dist/es/status/index.js +1 -0
  495. package/dist/es/status/styled.js +75 -0
  496. package/dist/es/switch/index.js +1 -0
  497. package/dist/es/switch/styled.js +209 -0
  498. package/dist/es/table/index.js +1 -0
  499. package/dist/es/table/styled.js +458 -0
  500. package/dist/es/tabs/index.js +1 -0
  501. package/dist/es/tabs/styles.js +96 -0
  502. package/dist/es/textarea/index.js +1 -0
  503. package/dist/es/textarea/styled.js +220 -0
  504. package/dist/es/tinyscrollbar/index.js +1 -0
  505. package/dist/es/tinyscrollbar/scroll.styled.js +21 -0
  506. package/dist/es/types/InputProps.js +1 -0
  507. package/dist/es/upload/index.js +1 -0
  508. package/dist/es/upload/styled.js +228 -0
  509. package/dist/es/utils/CommonStyledComponents.js +61 -0
  510. package/dist/es/utils/GetIconSizeBySize.js +1 -0
  511. package/dist/es/utils/GetSizeSlugBySize.js +1 -0
  512. package/dist/es/utils/InlineSVGCached.js +1 -0
  513. package/dist/form/context/FormContext.d.ts +3 -0
  514. package/dist/form/context/FormStore.d.ts +4 -1
  515. package/dist/form/item/Item.d.ts +0 -1
  516. package/dist/global.css +333 -113
  517. package/dist/helpers/index.d.ts +4 -0
  518. package/dist/helpers/theme/Color.d.ts +19 -0
  519. package/dist/helpers/theme/GenerateColorScale.d.ts +16 -0
  520. package/dist/helpers/theme/cssVariables.d.ts +30 -0
  521. package/dist/helpers/theme/dark.d.ts +1 -1
  522. package/dist/helpers/theme/index.d.ts +4 -0
  523. package/dist/helpers/theme/light.d.ts +1 -1
  524. package/dist/helpers/theme/tokens.d.ts +392 -0
  525. package/dist/index.d.mts +31 -7
  526. package/dist/index.d.ts +660 -128
  527. package/dist/input/style.settings.d.ts +9 -0
  528. package/dist/input/styled.d.ts +15 -17
  529. package/dist/locales/calendar.json +22 -22
  530. package/dist/locales/en/itd.json +13 -0
  531. package/dist/locales/itd.json +254 -240
  532. package/dist/locales/tr/itd.json +13 -0
  533. package/dist/radio/button/RadioButton.d.ts +1 -1
  534. package/dist/result/index.d.ts +1 -1
  535. package/dist/select/dropdown/Dropdown.d.ts +19 -0
  536. package/dist/select/dropdown/styled.d.ts +14 -0
  537. package/dist/select/option/Option.d.ts +10 -3
  538. package/dist/select/style.settings.d.ts +83 -26
  539. package/dist/select/styled.d.ts +4 -2
  540. package/dist/select/toggle/Toggle.d.ts +1 -1
  541. package/dist/select/toggle/label/{single/SingleLabel.d.ts → Label.d.ts} +5 -5
  542. package/dist/select/toggle/styled.d.ts +4 -4
  543. package/dist/stats.html +4949 -0
  544. package/dist/stories/Accordion.d.ts +0 -1
  545. package/dist/stories/Alert.stories.d.ts +15 -1
  546. package/dist/stories/AlertComposition.d.ts +2 -0
  547. package/dist/stories/AlertComposition.stories.d.ts +17 -0
  548. package/dist/stories/Button.d.ts +0 -1
  549. package/dist/stories/Button.stories.d.ts +8 -1
  550. package/dist/stories/Card.stories.d.ts +1 -0
  551. package/dist/stories/ColorScale.d.ts +10 -0
  552. package/dist/stories/ColorScale.stories.d.ts +24 -0
  553. package/dist/stories/ColorScaleCompare.d.ts +8 -0
  554. package/dist/stories/ColorScaleCompare.stories.d.ts +47 -0
  555. package/dist/stories/DatePicker.d.ts +0 -1
  556. package/dist/stories/Form.stories.d.ts +10 -1
  557. package/dist/stories/Header.d.ts +0 -1
  558. package/dist/stories/Input.d.ts +0 -1
  559. package/dist/stories/Input.stories.d.ts +9 -1
  560. package/dist/stories/ModalManager.d.ts +0 -1
  561. package/dist/stories/Page.d.ts +0 -1
  562. package/dist/stories/Select.d.ts +0 -1
  563. package/dist/stories/Select.stories.d.ts +13 -3
  564. package/dist/stories/Switch.stories.d.ts +8 -1
  565. package/dist/stories/TextArea.d.ts +0 -1
  566. package/dist/stories/TextArea.stories.d.ts +8 -1
  567. package/dist/stories/root/index.d.ts +0 -1
  568. package/dist/switch/styled.d.ts +1 -1
  569. package/dist/textarea/styled.d.ts +2 -5
  570. package/dist/types/AlertProps.d.ts +5 -4
  571. package/dist/types/ButtonProps.d.ts +2 -2
  572. package/dist/types/CalendarProps.d.ts +0 -1
  573. package/dist/types/CardProps.d.ts +4 -0
  574. package/dist/types/CheckboxProps.d.ts +5 -1
  575. package/dist/types/DatePickerProps.d.ts +2 -3
  576. package/dist/types/FormProps.d.ts +3 -0
  577. package/dist/types/ITDProps.d.ts +4 -2
  578. package/dist/types/InputProps.d.ts +0 -1
  579. package/dist/types/RadioProps.d.ts +1 -0
  580. package/dist/types/ResultProps.d.ts +1 -0
  581. package/dist/types/SelectProps.d.ts +5 -13
  582. package/dist/types/SwitchProps.d.ts +4 -1
  583. package/dist/types/TableProps.d.ts +1 -0
  584. package/dist/types/Theme.d.ts +75 -16
  585. package/dist/types/UploadProps.d.ts +2 -0
  586. package/dist/upload/index.d.ts +1 -1
  587. package/dist/upload/styled.d.ts +5 -2
  588. package/dist/utils/CommonStyledComponents.d.ts +17 -0
  589. package/package.json +15 -3
  590. package/dist/button/button.style.SVG.d.ts +0 -4
  591. package/dist/index.cjs.js +0 -5472
  592. package/dist/index.esm.js +0 -5472
  593. package/dist/select/menu/Menu.d.ts +0 -14
  594. package/dist/select/menu/styled.d.ts +0 -8
  595. package/dist/select/toggle/label/floating/FloatingLabel.d.ts +0 -12
  596. package/dist/select/toggle/label/floating/styled.d.ts +0 -8
  597. package/dist/stories/ButtonIcon.d.ts +0 -2
  598. /package/dist/select/toggle/label/{single/styled.d.ts → styled.d.ts} +0 -0
@@ -0,0 +1,220 @@
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};
@@ -0,0 +1 @@
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};
@@ -0,0 +1,21 @@
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};
@@ -0,0 +1 @@
1
+ var r;!function(r){r.TEXT="text",r.NUMBER="number",r.CURRENCY="currency",r.PASSWORD="password"}(r||(r={}));export{r as InputTypes};
@@ -0,0 +1 @@
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};
@@ -0,0 +1,228 @@
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};
@@ -0,0 +1,61 @@
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};
@@ -0,0 +1 @@
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};
@@ -0,0 +1 @@
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};
@@ -0,0 +1 @@
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,4 +1,5 @@
1
1
  import { FormValueProps, ITDImperativeFuncProps, FormItemProps } from "../../index";
2
+ import { ITDVariant } from "../../types/ITDProps";
2
3
  export type FormContextType = {
3
4
  register: (item: FormItemProps) => void;
4
5
  unregister: (name: string) => void;
@@ -29,6 +30,8 @@ export type FormContextType = {
29
30
  removeFields: () => void;
30
31
  formId: string;
31
32
  updated: {};
33
+ variant?: ITDVariant;
34
+ disabled?: boolean;
32
35
  };
33
36
  declare const FormContext: import("react").Context<FormContextType>;
34
37
  export default FormContext;
@@ -1,11 +1,14 @@
1
1
  import { FieldUpdateProps } from "../../index";
2
2
  import { FormContextType } from "./FormContext";
3
+ import { ITDVariant } from "../../types/ITDProps";
3
4
  export type FormStoreProps = {
4
5
  name: string;
5
6
  onUpdate?: (values: {}) => void;
6
7
  onFieldUpdate?: (update: FieldUpdateProps) => void;
7
8
  onReset?: () => void;
8
9
  useQueryString?: boolean;
10
+ variant?: ITDVariant;
11
+ disabled?: boolean;
9
12
  };
10
- declare function FormStore({ name, useQueryString, onUpdate, onReset, onFieldUpdate, }: FormStoreProps): FormContextType;
13
+ declare function FormStore({ name, useQueryString, onUpdate, onReset, onFieldUpdate, variant, disabled, }: FormStoreProps): FormContextType;
11
14
  export default FormStore;
@@ -4,7 +4,6 @@ export type ItemProps = {
4
4
  name: string;
5
5
  id?: string;
6
6
  label?: string;
7
- placeholder?: string;
8
7
  error?: string;
9
8
  rules?: FormRuleProps[];
10
9
  mask?: string | null;