@inntechcorp/it-design 3.1.23 → 4.0.0-beta.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 (296) hide show
  1. package/ACCESSIBILITY.md +517 -0
  2. package/README.md +88 -11
  3. package/dist/accordion/index.d.ts +2 -2
  4. package/dist/accordion/item/styled.d.ts +2 -2
  5. package/dist/accordion/styled.d.ts +1 -0
  6. package/dist/accordion/submenu/styled.d.ts +5 -5
  7. package/dist/alert/Description.d.ts +7 -0
  8. package/dist/alert/Title.d.ts +7 -0
  9. package/dist/alert/alert.style.error.d.ts +1 -1
  10. package/dist/alert/alert.style.info.d.ts +1 -1
  11. package/dist/alert/alert.style.neutral.d.ts +4 -0
  12. package/dist/alert/alert.style.success.d.ts +1 -1
  13. package/dist/alert/alert.style.warning.d.ts +1 -1
  14. package/dist/alert/index.d.ts +4 -2
  15. package/dist/alert/styled.d.ts +4 -8
  16. package/dist/alink/index.d.ts +2 -10
  17. package/dist/alink/styled.d.ts +1 -1
  18. package/dist/back-top/styled.d.ts +2 -2
  19. package/dist/button/button.style.default.d.ts +1 -1
  20. package/dist/button/button.style.filled.d.ts +1 -1
  21. package/dist/button/button.style.ghost.d.ts +1 -1
  22. package/dist/button/button.style.icon.d.ts +2 -2
  23. package/dist/button/button.style.link.d.ts +1 -1
  24. package/dist/button/button.style.outline.d.ts +1 -1
  25. package/dist/button/button.style.size.d.ts +4 -1
  26. package/dist/button/button.style.solid.d.ts +1 -1
  27. package/dist/button/index.d.ts +10 -2
  28. package/dist/button/styled.d.ts +3 -12
  29. package/dist/calendar/day/Day.d.ts +2 -2
  30. package/dist/calendar/day/styled.d.ts +1 -1
  31. package/dist/calendar/header/styled.d.ts +6 -6
  32. package/dist/calendar/index.d.ts +11 -3
  33. package/dist/calendar/styled.d.ts +6 -6
  34. package/dist/card/Card.d.ts +9 -0
  35. package/dist/card/CardAction.d.ts +7 -0
  36. package/dist/card/CardContent.d.ts +7 -0
  37. package/dist/card/CardDescription.d.ts +7 -0
  38. package/dist/card/CardFooter.d.ts +8 -0
  39. package/dist/card/CardHeader.d.ts +8 -0
  40. package/dist/card/CardTabs.d.ts +7 -0
  41. package/dist/card/CardTitle.d.ts +7 -0
  42. package/dist/card/index.d.ts +8 -3
  43. package/dist/card/styles.d.ts +9 -9
  44. package/dist/checkbox/group/index.d.ts +1 -1
  45. package/dist/checkbox/group/styled.d.ts +1 -1
  46. package/dist/checkbox/index.d.ts +1 -1
  47. package/dist/checkbox/styled.d.ts +6 -5
  48. package/dist/context/ITDContext.d.ts +3 -2
  49. package/dist/context/ITDThemeProvider.d.ts +8 -0
  50. package/dist/context/styled.d.ts +1 -1
  51. package/dist/datepicker/index.d.ts +2 -2
  52. package/dist/datepicker/styled.d.ts +5 -5
  53. package/dist/enums/enum.d.ts +138 -8
  54. package/dist/flex/index.d.ts +1 -1
  55. package/dist/flex/styled.d.ts +2 -2
  56. package/dist/floating/Arrow.d.ts +17 -0
  57. package/dist/floating/FloatingContent.d.ts +60 -0
  58. package/dist/floating/mergeTriggerProps.d.ts +8 -0
  59. package/dist/form/context/FormContext.d.ts +5 -2
  60. package/dist/form/context/FormStore.d.ts +6 -3
  61. package/dist/form/control/Control.d.ts +1 -1
  62. package/dist/form/control/styled.d.ts +1 -1
  63. package/dist/form/group/Group.d.ts +1 -1
  64. package/dist/form/group/styled.d.ts +1 -1
  65. package/dist/form/index.d.ts +5 -5
  66. package/dist/form/item/Item.d.ts +2 -3
  67. package/dist/form/validation/Validator.d.ts +2 -3
  68. package/dist/form/wrapper/FormWrapper.d.ts +2 -2
  69. package/dist/helpers/binary/GetTypeByFileType.d.ts +2 -2
  70. package/dist/helpers/country/GetCountryCodeByCurrencyCode.d.ts +1 -1
  71. package/dist/helpers/country/GetCountryCodeByLanguage.d.ts +1 -1
  72. package/dist/helpers/css/FindSelector.d.ts +10 -0
  73. package/dist/helpers/currency/ConvertCurrency.d.ts +1 -1
  74. package/dist/helpers/currency/GetCurrencyFormat.d.ts +9 -0
  75. package/dist/helpers/currency/GetCurrencySymbol.d.ts +1 -1
  76. package/dist/helpers/datetime/FormatTime.d.ts +1 -1
  77. package/dist/helpers/datetime/dayjsSetup.d.ts +1 -1
  78. package/dist/helpers/index.d.ts +36 -32
  79. package/dist/helpers/locale/getLocaleDateByString.d.ts +1 -0
  80. package/dist/helpers/svg/styles.d.ts +1 -1
  81. package/dist/helpers/theme/Color.d.ts +19 -0
  82. package/dist/helpers/theme/GenerateColorScale.d.ts +16 -0
  83. package/dist/helpers/theme/cssVariables.d.ts +30 -0
  84. package/dist/helpers/theme/dark.d.ts +3 -0
  85. package/dist/helpers/theme/index.d.ts +9 -0
  86. package/dist/helpers/theme/light.d.ts +3 -0
  87. package/dist/helpers/theme/themes.d.ts +5 -0
  88. package/dist/helpers/theme/tokens.d.ts +392 -0
  89. package/dist/hooks/index.d.ts +15 -15
  90. package/dist/hooks/useAddExternalCSS.d.ts +4 -5
  91. package/dist/hooks/useAvoidCollision.d.ts +6 -1
  92. package/dist/hooks/useComponentSize.d.ts +1 -1
  93. package/dist/hooks/useConnectionStatus.d.ts +1 -1
  94. package/dist/hooks/useFloatingPosition.d.ts +63 -0
  95. package/dist/hooks/useFloatingTrigger.d.ts +64 -0
  96. package/dist/hooks/useFocusTrap.d.ts +36 -0
  97. package/dist/hooks/useOnClickOutside.d.ts +1 -1
  98. package/dist/hooks/useSingleQuery.d.ts +1 -1
  99. package/dist/hovercard/HoverCard.d.ts +12 -0
  100. package/dist/hovercard/HoverCardContent.d.ts +22 -0
  101. package/dist/hovercard/HoverCardTrigger.d.ts +17 -0
  102. package/dist/hovercard/hoverCardContext.d.ts +7 -0
  103. package/dist/hovercard/index.d.ts +4 -0
  104. package/dist/html/header/H1.d.ts +1 -1
  105. package/dist/html/header/H2.d.ts +1 -1
  106. package/dist/html/header/H3.d.ts +1 -1
  107. package/dist/html/header/H4.d.ts +1 -1
  108. package/dist/html/header/index.d.ts +4 -4
  109. package/dist/html/header/styled.d.ts +4 -4
  110. package/dist/icons/index.d.ts +11 -14
  111. package/dist/image/index.d.ts +1 -2
  112. package/dist/image/styled.d.ts +5 -2
  113. package/dist/index.cjs.js +2702 -2559
  114. package/dist/index.cjs.js.map +1 -0
  115. package/dist/index.css +1 -0
  116. package/dist/index.d.ts +168 -1786
  117. package/dist/index.es.js +22339 -0
  118. package/dist/index.es.js.map +1 -0
  119. package/dist/index.iife.js +5728 -0
  120. package/dist/index.iife.js.map +1 -0
  121. package/dist/index.umd.js +5728 -0
  122. package/dist/index.umd.js.map +1 -0
  123. package/dist/input/index.d.ts +29 -2
  124. package/dist/input/style.settings.d.ts +9 -0
  125. package/dist/input/styled.d.ts +16 -18
  126. package/dist/label/index.d.ts +6 -0
  127. package/dist/label/style.settings.d.ts +9 -0
  128. package/dist/label/styled.d.ts +27 -0
  129. package/dist/link/index.d.ts +1 -10
  130. package/dist/locales/en/{calendar.json → calendar.json.d.ts} +4 -2
  131. package/dist/locales/en/{itd.json → itd.json.d.ts} +35 -20
  132. package/dist/locales/{calendar.json → tr/calendar.json.d.ts} +4 -2
  133. package/dist/locales/{itd.json → tr/itd.json.d.ts} +35 -21
  134. package/dist/logger/index.d.ts +9 -0
  135. package/dist/modal/container/ModalContainer.d.ts +4 -4
  136. package/dist/modal/container/styled.d.ts +2 -2
  137. package/dist/modal/context/ModalContext.d.ts +23 -14
  138. package/dist/modal/index.d.ts +7 -22
  139. package/dist/modal/modal/Modal.d.ts +2 -2
  140. package/dist/modal/modal/styled.d.ts +11 -11
  141. package/dist/notification/container/Container.d.ts +5 -0
  142. package/dist/notification/container/styled.d.ts +1 -0
  143. package/dist/notification/context/NotificationsContext.d.ts +2 -2
  144. package/dist/notification/index.d.ts +1 -1
  145. package/dist/notification/item/Item.d.ts +12 -0
  146. package/dist/notification/item/styled.d.ts +1166 -0
  147. package/dist/popover/Popover.d.ts +42 -0
  148. package/dist/popover/PopoverContent.d.ts +34 -0
  149. package/dist/popover/PopoverTrigger.d.ts +26 -0
  150. package/dist/popover/index.d.ts +4 -0
  151. package/dist/primitives/Slot.d.ts +36 -0
  152. package/dist/progress/styled.d.ts +1 -1
  153. package/dist/radio/button/RadioButton.d.ts +2 -2
  154. package/dist/radio/button/styled.d.ts +8 -9
  155. package/dist/radio/group/Group.d.ts +3 -3
  156. package/dist/radio/group/styled.d.ts +1 -1
  157. package/dist/radio/index.d.ts +2 -2
  158. package/dist/reportWebVitals.d.ts +2 -0
  159. package/dist/result/index.d.ts +2 -2
  160. package/dist/result/styled.d.ts +9 -9
  161. package/dist/select/dropdown/Dropdown.d.ts +20 -0
  162. package/dist/select/dropdown/styled.d.ts +14 -0
  163. package/dist/select/index.d.ts +1 -1
  164. package/dist/select/option/Option.d.ts +14 -6
  165. package/dist/select/option/styled.d.ts +4 -4
  166. package/dist/select/selector/Selector.d.ts +3 -0
  167. package/dist/select/selector/selectorinput/SelectorInput.d.ts +6 -0
  168. package/dist/select/selector/selectorinput/styled.d.ts +2 -0
  169. package/dist/select/selector/styled.d.ts +16 -0
  170. package/dist/select/style.settings.d.ts +83 -26
  171. package/dist/select/styled.d.ts +5 -3
  172. package/dist/setupTests.d.ts +1 -0
  173. package/dist/spin/styled.d.ts +4 -4
  174. package/dist/status/styled.d.ts +1 -1
  175. package/dist/stories/Accordion.d.ts +0 -1
  176. package/dist/stories/Accordion.stories.d.ts +3 -3
  177. package/dist/stories/Alert.stories.d.ts +18 -4
  178. package/dist/stories/AlertComposition.d.ts +2 -0
  179. package/dist/stories/AlertComposition.stories.d.ts +17 -0
  180. package/dist/stories/Button.d.ts +0 -1
  181. package/dist/stories/Button.stories.d.ts +16 -4
  182. package/dist/stories/Card.stories.d.ts +3 -2
  183. package/dist/stories/Checkbox.stories.d.ts +3 -3
  184. package/dist/stories/CheckboxGroup.stories.d.ts +3 -3
  185. package/dist/stories/CheckboxGroupControl.stories.d.ts +3 -3
  186. package/dist/stories/ColorScale.d.ts +10 -0
  187. package/dist/stories/ColorScale.stories.d.ts +24 -0
  188. package/dist/stories/ColorScaleCompare.d.ts +8 -0
  189. package/dist/stories/ColorScaleCompare.stories.d.ts +47 -0
  190. package/dist/stories/DatePicker.d.ts +0 -1
  191. package/dist/stories/DatePicker.stories.d.ts +3 -3
  192. package/dist/stories/Form.d.ts +1 -1
  193. package/dist/stories/Form.stories.d.ts +13 -3
  194. package/dist/stories/Header.d.ts +0 -1
  195. package/dist/stories/Header.stories.d.ts +5 -5
  196. package/dist/stories/HoverCard.d.ts +2 -0
  197. package/dist/stories/HoverCard.stories.d.ts +18 -0
  198. package/dist/stories/Input.d.ts +0 -1
  199. package/dist/stories/Input.stories.d.ts +86 -4
  200. package/dist/stories/ModalManager.d.ts +0 -1
  201. package/dist/stories/ModalManager.stories.d.ts +2 -2
  202. package/dist/stories/Page.d.ts +0 -1
  203. package/dist/stories/Page.stories.d.ts +2 -2
  204. package/dist/stories/Popover.d.ts +2 -0
  205. package/dist/stories/Popover.stories.d.ts +40 -0
  206. package/dist/stories/Progress.stories.d.ts +3 -3
  207. package/dist/stories/RadioGroup.stories.d.ts +3 -3
  208. package/dist/stories/Result.stories.d.ts +3 -3
  209. package/dist/stories/Select.d.ts +0 -1
  210. package/dist/stories/Select.stories.d.ts +16 -6
  211. package/dist/stories/Status.stories.d.ts +3 -3
  212. package/dist/stories/Switch.stories.d.ts +12 -5
  213. package/dist/stories/Table.stories.d.ts +2 -2
  214. package/dist/stories/Tabs.stories.d.ts +3 -3
  215. package/dist/stories/TextArea.d.ts +0 -1
  216. package/dist/stories/TextArea.stories.d.ts +11 -4
  217. package/dist/stories/Tooltip.d.ts +1 -0
  218. package/dist/stories/Tooltip.stories.d.ts +35 -0
  219. package/dist/stories/Upload.stories.d.ts +3 -8
  220. package/dist/stories/root/index.d.ts +1 -2
  221. package/dist/stories/select.styled.d.ts +1 -1
  222. package/dist/switch/index.d.ts +1 -1
  223. package/dist/switch/styled.d.ts +4 -4
  224. package/dist/table/index.d.ts +2 -2
  225. package/dist/table/styled.d.ts +5 -5
  226. package/dist/tabs/index.d.ts +1 -1
  227. package/dist/tabs/styles.d.ts +4 -9
  228. package/dist/textarea/index.d.ts +1 -1
  229. package/dist/textarea/styled.d.ts +6 -8
  230. package/dist/tinyscrollbar/index.d.ts +1 -2
  231. package/dist/tinyscrollbar/scroll.styled.d.ts +1 -1
  232. package/dist/tinyscrollbar/styled.d.ts +1 -1
  233. package/dist/tooltip/Tooltip.d.ts +12 -0
  234. package/dist/tooltip/TooltipContent.d.ts +15 -0
  235. package/dist/tooltip/TooltipTrigger.d.ts +19 -0
  236. package/dist/tooltip/index.d.ts +4 -0
  237. package/dist/tooltip/tooltipContext.d.ts +7 -0
  238. package/dist/types/AccordionItemProps.d.ts +1 -1
  239. package/dist/types/AccordionProps.d.ts +1 -1
  240. package/dist/types/AccordionSubMenuProps.d.ts +1 -1
  241. package/dist/types/AlertProps.d.ts +6 -6
  242. package/dist/types/ButtonProps.d.ts +13 -31
  243. package/dist/types/CalendarProps.d.ts +4 -5
  244. package/dist/types/CardProps.d.ts +7 -3
  245. package/dist/types/CheckboxProps.d.ts +7 -3
  246. package/dist/types/DatePickerProps.d.ts +8 -7
  247. package/dist/types/FlexProps.d.ts +2 -2
  248. package/dist/types/FormProps.d.ts +10 -8
  249. package/dist/types/ITDProps.d.ts +4 -2
  250. package/dist/types/InputProps.d.ts +12 -18
  251. package/dist/types/LabelProps.d.ts +7 -0
  252. package/dist/types/ModalProps.d.ts +2 -2
  253. package/dist/types/PopoverProps.d.ts +10 -0
  254. package/dist/types/RadioProps.d.ts +3 -4
  255. package/dist/types/ResultProps.d.ts +2 -1
  256. package/dist/types/SelectProps.d.ts +22 -16
  257. package/dist/types/SingleQueryProps.d.ts +1 -1
  258. package/dist/types/StatusProps.d.ts +2 -2
  259. package/dist/types/SwitchProps.d.ts +4 -1
  260. package/dist/types/TableProps.d.ts +3 -2
  261. package/dist/types/TabsProps.d.ts +1 -1
  262. package/dist/types/TextAreaProps.d.ts +3 -3
  263. package/dist/types/Theme.d.ts +103 -0
  264. package/dist/types/UploadProps.d.ts +3 -40
  265. package/dist/upload/index.d.ts +2 -2
  266. package/dist/upload/styled.d.ts +11 -45
  267. package/dist/utils/CommonStyledComponents.d.ts +18 -0
  268. package/dist/utils/ErrorAnnouncement.d.ts +25 -0
  269. package/dist/utils/GetButtonSizeSlug.d.ts +6 -0
  270. package/dist/utils/GetIconSizeBySize.d.ts +1 -1
  271. package/dist/utils/GetSizeBySizeSlug.d.ts +2 -2
  272. package/dist/utils/GetSizeSlugBySize.d.ts +5 -2
  273. package/dist/utils/InlineSVGCached.d.ts +1 -1
  274. package/dist/utils/index.d.ts +6 -4
  275. package/package.json +87 -64
  276. package/dist/button/button.style.SVG.d.ts +0 -4
  277. package/dist/button/button.style.circle.d.ts +0 -4
  278. package/dist/button/button.style.strecth.d.ts +0 -4
  279. package/dist/cropper/index.d.ts +0 -44
  280. package/dist/global.css +0 -146
  281. package/dist/icons/FileDocument.d.ts +0 -6
  282. package/dist/icons/FileExcel.d.ts +0 -5
  283. package/dist/icons/FilePdf.d.ts +0 -5
  284. package/dist/index.d.mts +0 -716
  285. package/dist/index.esm.js +0 -5584
  286. package/dist/locales/tr/calendar.json +0 -30
  287. package/dist/locales/tr/itd.json +0 -325
  288. package/dist/select/menu/Menu.d.ts +0 -14
  289. package/dist/select/menu/styled.d.ts +0 -8
  290. package/dist/select/toggle/Toggle.d.ts +0 -3
  291. package/dist/select/toggle/label/floating/FloatingLabel.d.ts +0 -12
  292. package/dist/select/toggle/label/floating/styled.d.ts +0 -8
  293. package/dist/select/toggle/label/single/SingleLabel.d.ts +0 -18
  294. package/dist/select/toggle/label/single/styled.d.ts +0 -2
  295. package/dist/select/toggle/styled.d.ts +0 -24
  296. package/dist/stories/ButtonIcon.d.ts +0 -2
@@ -1,3 +1,8 @@
1
+ /**
2
+ * Modal states
3
+ *
4
+ * Modal states for the modal component.
5
+ */
1
6
  export declare enum ModalState {
2
7
  NOT_SHOW = "modal-not-show",
3
8
  BEGIN = "modal-begin",
@@ -13,30 +18,47 @@ export declare enum ModalState {
13
18
  ESC_CLICK = "modal-esc-click",
14
19
  ALL_REMOVED = "modal-all-removed"
15
20
  }
21
+ /**
22
+ * File types
23
+ *
24
+ * File types for the file component.
25
+ */
16
26
  export declare enum FileTypes {
17
27
  SVG = "image/svg+xml",
18
28
  PNG = "image/png",
19
- JPG = "image/jpeg",
29
+ JPG = "image/jpg",
30
+ JPEG = "image/jpeg",
20
31
  GIF = "image/gif",
21
- WEBP = "image/webp",
22
32
  PDF = "application/pdf",
23
- XLSX = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
24
33
  OTF = "font/otf"
25
34
  }
35
+ /**
36
+ * File extensions
37
+ *
38
+ * File extensions for the file component.
39
+ */
26
40
  export declare enum FileExtensions {
27
41
  SVG = ".svg",
28
42
  PNG = ".png",
29
43
  JPG = ".jpg",
30
44
  GIF = ".gif",
31
- WEBP = ".webp",
32
45
  PDF = ".pdf",
33
- XLSX = ".xlsx",
34
46
  OTF = ".otf"
35
47
  }
48
+ /**
49
+ * Form validations
50
+ *
51
+ * Form validations for the form component.
52
+ */
36
53
  export declare enum FormValidations {
37
54
  REQUIRED = "required",
38
55
  TYPE = "type"
39
56
  }
57
+ /**
58
+ * Form validation types
59
+ *
60
+ * Form validation types for the form component.
61
+ */
40
62
  export declare enum FormValidationTypes {
41
63
  MIN_LENGTH = "minLength",
42
64
  MAX_LENGTH = "maxLength",
@@ -50,13 +72,22 @@ export declare enum FormValidationTypes {
50
72
  SITE_USERNAME = "siteUsername",
51
73
  ADMIN_USERNAME = "adminUsername",
52
74
  URL = "url",
53
- FORBIDDEN_WORDS = "forbiddenWords",
54
- MULTIPLE_OF = "multipleOf"
75
+ FORBIDDEN_WORDS = "forbiddenWords"
55
76
  }
77
+ /**
78
+ * Connection status
79
+ *
80
+ * Connection status for the connection component.
81
+ */
56
82
  export declare enum ConnectionStatus {
57
83
  ONLINE = "online",
58
84
  OFFLINE = "offline"
59
85
  }
86
+ /**
87
+ * Component sizes
88
+ *
89
+ * Component sizes for the component.
90
+ */
60
91
  export declare enum ComponentSizes {
61
92
  X_SMALL = "x-small",
62
93
  SMALL = "small",
@@ -65,6 +96,11 @@ export declare enum ComponentSizes {
65
96
  LARGE = "large",
66
97
  X_LARGE = "x-large"
67
98
  }
99
+ /**
100
+ * Component sizes slug
101
+ *
102
+ * Component sizes slug for the component.
103
+ */
68
104
  export declare enum ComponentSizesSlug {
69
105
  X_SMALL = "xs",
70
106
  SMALL = "sm",
@@ -73,7 +109,101 @@ export declare enum ComponentSizesSlug {
73
109
  LARGE = "lg",
74
110
  X_LARGE = "xlg"
75
111
  }
76
- export declare enum ComponentPositions {
112
+ /**
113
+ * Button sizes
114
+ *
115
+ * Button-specific sizes including icon-only variants.
116
+ * Extends ComponentSizes with icon variants.
117
+ */
118
+ export declare enum ButtonSizes {
119
+ X_SMALL = "x-small",
120
+ SMALL = "small",
121
+ MEDIUM = "medium",
122
+ DEFAULT = "default",
123
+ LARGE = "large",
124
+ X_LARGE = "x-large",
125
+ ICON = "icon",
126
+ ICON_SM = "icon-sm",
127
+ ICON_LG = "icon-lg"
128
+ }
129
+ /**
130
+ * Button sizes slug
131
+ *
132
+ * Button sizes slug for the component.
133
+ * Extends ComponentSizesSlug with icon variants.
134
+ */
135
+ export declare enum ButtonSizesSlug {
136
+ X_SMALL = "xs",
137
+ SMALL = "sm",
138
+ MEDIUM = "md",
139
+ DEFAULT = "df",
140
+ LARGE = "lg",
141
+ X_LARGE = "xlg",
142
+ ICON = "icon",
143
+ ICON_SM = "icon-sm",
144
+ ICON_LG = "icon-lg"
145
+ }
146
+ /**
147
+ * Component x positions
148
+ *
149
+ * Component x positions for the component.
150
+ */
151
+ export declare enum ComponentXPositions {
77
152
  LEFT = "left",
78
153
  RIGHT = "right"
79
154
  }
155
+ /**
156
+ * Component y positions
157
+ *
158
+ * Component y positions for the component.
159
+ */
160
+ export declare enum ComponentYPositions {
161
+ TOP = "top",
162
+ BOTTOM = "bottom"
163
+ }
164
+ /**
165
+ * Component variants
166
+ *
167
+ * Component variants for the component.
168
+ */
169
+ export declare enum ComponentVariants {
170
+ DEFAULT = "default",
171
+ FILLED = "filled",
172
+ CUSTOM = "custom"
173
+ }
174
+ export declare enum ButtonTypes {
175
+ BUTTON = "button",
176
+ SUBMIT = "submit",
177
+ RESET = "reset"
178
+ }
179
+ /**
180
+ * Tooltip positions
181
+ *
182
+ * Tooltip positions for the tooltip component.
183
+ */
184
+ export declare enum TooltipPositions {
185
+ TOP_LEFT = "top-left",
186
+ TOP_RIGHT = "top-right",
187
+ BOTTOM_LEFT = "bottom-left",
188
+ BOTTOM_RIGHT = "bottom-right"
189
+ }
190
+ /**
191
+ * Trigger types
192
+ *
193
+ * Trigger types for the useFloatingTrigger hook.
194
+ */
195
+ export declare enum TriggerTypes {
196
+ HOVER = "hover",
197
+ CLICK = "click",
198
+ FOCUS = "focus",
199
+ MANUAL = "manual"
200
+ }
201
+ /**
202
+ * Theme appearances
203
+ *
204
+ * Theme appearances for the theme component.
205
+ */
206
+ export declare enum ThemeAppearances {
207
+ LIGHT = "light",
208
+ DARK = "dark"
209
+ }
@@ -1,3 +1,3 @@
1
- import { FlexProps } from "../index";
1
+ import { FlexProps } from '../index';
2
2
  declare const Flex: ({ gap, justify, align, vertical, wrap, stretch, style, className, children }: FlexProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Flex;
@@ -1,5 +1,5 @@
1
- import { FlexAlignProps, FlexGapProps, FlexJustifyProps } from "../index";
2
- declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
1
+ import { FlexAlignProps, FlexGapProps, FlexJustifyProps } from '../index';
2
+ declare const Wrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
3
3
  $gap?: FlexGapProps;
4
4
  $justify?: FlexJustifyProps;
5
5
  $align?: FlexAlignProps;
@@ -0,0 +1,17 @@
1
+ import { ComponentXPositions, ComponentYPositions } from '../enums/enum';
2
+ type Placement = ComponentYPositions | ComponentXPositions;
3
+ /**
4
+ * Arrow component
5
+ *
6
+ * Renders an arrow with a border and a fill.
7
+ */
8
+ type ArrowProps = {
9
+ /** Placement */
10
+ placement: Placement;
11
+ /** Arrow color (fill) */
12
+ color?: string;
13
+ /** Arrow border color (if undefined, border is not shown) */
14
+ borderColor?: string;
15
+ };
16
+ export declare const Arrow: ({ placement, color, borderColor }: ArrowProps) => import("react/jsx-runtime").JSX.Element;
17
+ export default Arrow;
@@ -0,0 +1,60 @@
1
+ import { ReactNode, RefObject } from 'react';
2
+ import { FloatingPosition } from '../hooks/useFloatingPosition';
3
+ /**
4
+ * Floating content primitive
5
+ *
6
+ * Renders to body with Portal, positions, and animated.
7
+ * Base component for Tooltip, Popover, HoverCard.
8
+ */
9
+ export type FloatingContentProps = {
10
+ /** Content */
11
+ children: ReactNode;
12
+ /** Position information */
13
+ position: FloatingPosition;
14
+ /** Is Open? */
15
+ isOpen: boolean;
16
+ /** Show arrow */
17
+ showArrow?: boolean;
18
+ /** Max width */
19
+ maxWidth?: string | number;
20
+ /** Custom className */
21
+ className?: string;
22
+ /** Content event handlers */
23
+ onMouseEnter?: () => void;
24
+ onMouseLeave?: () => void;
25
+ /** Transition duration (ms) */
26
+ timeout?: number;
27
+ /** Transition class prefix */
28
+ transitionClassNames?: string;
29
+ /** Arrow color (fill) */
30
+ arrowColor?: string;
31
+ /** Arrow border color (if undefined, border is not shown) */
32
+ arrowBorderColor?: string;
33
+ /** Enable focus trap */
34
+ trapFocus?: boolean;
35
+ /** Return focus to this element when trap is deactivated */
36
+ returnFocusRef?: RefObject<HTMLElement>;
37
+ /** Accessibility: id of the floating panel (used by aria-controls) */
38
+ id?: string;
39
+ /** Accessibility: role of the floating panel (e.g. "dialog") */
40
+ role?: string;
41
+ /** Accessibility: is this modal? (for popover: false) */
42
+ 'aria-modal'?: boolean;
43
+ /** Accessibility: id of the labelling element */
44
+ 'aria-labelledby'?: string;
45
+ /** Accessibility: id of the describing element */
46
+ 'aria-describedby'?: string;
47
+ };
48
+ /**
49
+ * Floating content primitive
50
+ *
51
+ * Renders to body with Portal, positions, and animated.
52
+ * Base component for Tooltip, Popover, HoverCard.
53
+ */
54
+ export declare const FloatingContent: {
55
+ ({ children, position, isOpen, showArrow, maxWidth, className, onMouseEnter, onMouseLeave, timeout, transitionClassNames, arrowColor, arrowBorderColor, trapFocus, returnFocusRef, id, role, "aria-modal": ariaModal, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, ref }: FloatingContentProps & {
56
+ ref?: any;
57
+ }): import('react').ReactPortal | null;
58
+ displayName: string;
59
+ };
60
+ export default FloatingContent;
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ /**
3
+ * Merge trigger props with children element
4
+ *
5
+ * Merges refs and event handlers from triggerProps with children's original props.
6
+ * Used for Popover, Tooltip, and HoverCard components.
7
+ */
8
+ export declare function mergeTriggerWithChildren(children: ReactNode, triggerProps: any): ReactNode;
@@ -1,4 +1,5 @@
1
- import { FormValueProps, ITDImperativeFuncProps, FormItemProps } from "../../index";
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
- declare const FormContext: import("react").Context<FormContextType>;
36
+ declare const FormContext: import('react').Context<FormContextType>;
34
37
  export default FormContext;
@@ -1,11 +1,14 @@
1
- import { FieldUpdateProps } from "../../index";
2
- import { FormContextType } from "./FormContext";
1
+ import { FieldUpdateProps } from '../../index';
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;
@@ -1,4 +1,4 @@
1
- import { ChildrenProps } from "types/ChildrenProps";
1
+ import { ChildrenProps } from '../../types/ChildrenProps';
2
2
  export type ControlProps = {
3
3
  className?: string;
4
4
  position?: "start" | "end" | "center";
@@ -1,4 +1,4 @@
1
- declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
1
+ declare const Wrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
2
2
  $position: "start" | "center" | "end";
3
3
  }>> & string;
4
4
  export { Wrapper };
@@ -1,4 +1,4 @@
1
- import { ChildrenProps } from 'types/ChildrenProps';
1
+ import { ChildrenProps } from '../../types/ChildrenProps';
2
2
  /**
3
3
  *
4
4
  * FORM FIELD GROUP
@@ -1,4 +1,4 @@
1
- declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
1
+ declare const Wrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
2
2
  $gap: number;
3
3
  $horizontal: boolean;
4
4
  }>> & string;
@@ -1,9 +1,9 @@
1
1
  import { ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from 'react';
2
- import Group from './group/Group';
3
- import Control from './control/Control';
4
- import Item from './item/Item';
5
- import { FormContextType } from './context/FormContext';
6
- import { FormStoreProps } from './context/FormStore';
2
+ import { default as Group } from '../group/Group';
3
+ import { default as Control } from '../control/Control';
4
+ import { default as Item } from '../item/Item';
5
+ import { FormContextType } from '../context/FormContext';
6
+ import { FormStoreProps } from '../context/FormStore';
7
7
  import { FormProps } from '../index';
8
8
  type FormSubComponentProps = {
9
9
  Item: typeof Item;
@@ -1,10 +1,9 @@
1
- import { ChildrenProps } from 'types/ChildrenProps';
1
+ import { ChildrenProps } from '../../types/ChildrenProps';
2
2
  import { FormRuleProps, ITDImperativeFuncProps } from '../../index';
3
3
  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;
@@ -14,5 +13,5 @@ export type ItemProps = {
14
13
  query?: string;
15
14
  children: ChildrenProps;
16
15
  };
17
- declare const Item: import("react").ForwardRefExoticComponent<ItemProps & import("react").RefAttributes<ITDImperativeFuncProps>>;
16
+ declare const Item: import('react').ForwardRefExoticComponent<ItemProps & import('react').RefAttributes<ITDImperativeFuncProps>>;
18
17
  export default Item;
@@ -1,5 +1,5 @@
1
- import { FormRuleProps, FormValueProps } from "../../index";
2
- import { TFunction } from "i18next";
1
+ import { FormRuleProps, FormValueProps } from '../../index';
2
+ import { TFunction } from 'i18next';
3
3
  declare const Validator: {
4
4
  (): void;
5
5
  checkPassword: (value: string) => boolean;
@@ -14,7 +14,6 @@ declare const Validator: {
14
14
  checkAdminUsername: (value: string) => boolean;
15
15
  checkURL: (value: string) => boolean;
16
16
  checkForbiddenWords: (value: string, words: (string | number)[]) => boolean;
17
- checkMultipleOf: (value: number, multiple: number) => boolean;
18
17
  };
19
18
  export declare function CheckValidations(rules: FormRuleProps[], value: FormValueProps, getFieldValue: (name: string) => FormValueProps, t: TFunction): string[];
20
19
  export default Validator;
@@ -1,4 +1,4 @@
1
- import { ChildrenProps } from 'types/ChildrenProps';
1
+ import { ChildrenProps } from '../../types/ChildrenProps';
2
2
  type FormWrapperProps = {
3
3
  name: string;
4
4
  className?: string;
@@ -10,5 +10,5 @@ type FormWrapperProps = {
10
10
  onValidated?: (validate: boolean) => void;
11
11
  children: ChildrenProps;
12
12
  };
13
- declare const _default: import("react").NamedExoticComponent<FormWrapperProps & import("react").RefAttributes<unknown>>;
13
+ declare const _default: import('react').NamedExoticComponent<FormWrapperProps & import('react').RefAttributes<unknown>>;
14
14
  export default _default;
@@ -1,2 +1,2 @@
1
- import { FileTypes, FileExtensions } from "../../index";
2
- export default function GetTypeByFileType(type: FileTypes): FileExtensions.SVG | FileExtensions.PNG | FileExtensions.GIF | FileExtensions.WEBP | FileExtensions.PDF | FileExtensions.XLSX | FileExtensions.OTF | ".jpg, .jpeg" | "";
1
+ import { FileTypes, FileExtensions } from '../../index';
2
+ export default function GetTypeByFileType(type: FileTypes): "" | FileExtensions;
@@ -1 +1 @@
1
- export default function GetCountryCodeByCurrencyCode(currency?: string): "tr-TR" | "de-DE" | "en-US" | "en-GB";
1
+ export default function GetCountryCodeByCurrencyCode(currency?: string): "en-US" | "de-DE" | "tr-TR" | "en-GB" | "ja-JP" | "fr-CH" | "en-CA" | "en-AU" | "en-NZ" | "ru-RU" | "en-IN" | "pt-BR" | "es-MX" | "es-AR" | "es-CL" | "es-CO" | "es-PE" | "en-ZA" | "zh-CN" | "sv-SE" | "no-NO" | "da-DK" | "en-SG" | "en-HK";
@@ -1 +1 @@
1
- export default function GetCountryCodeByLanguage(language: string): "tur" | "usa" | "language_not_found";
1
+ export default function GetCountryCodeByLanguage(language: string): "usa" | "tur" | "deu" | "fra" | "esp" | "ita" | "jpn" | "kor" | "nld" | "pol" | "por" | "rus" | "san" | "snd" | "sin" | "slk" | "slv" | "alb" | "srb" | "swe" | "tam" | "tel" | "tha" | "tgl" | "ukr" | "urd" | "uzb" | "vie" | "chi" | "zul" | "gre" | "ara" | "language_not_found";
@@ -1 +1,11 @@
1
+ /**
2
+ *
3
+ * FIND SELECTOR
4
+ *
5
+ * Find the style tag containing the specified class name and return true/false.
6
+ *
7
+ * @param searchClassName string
8
+ * @returns boolean
9
+ *
10
+ */
1
11
  export default function FindSelector(searchClassName: string): boolean;
@@ -1 +1 @@
1
- export default function ConvertCurrency(balance: number, currency: string): string;
1
+ export default function ConvertCurrency(balance: number, currency: string): string | undefined;
@@ -1 +1,10 @@
1
+ /**
2
+ *
3
+ * Get the currency format of the value.
4
+ *
5
+ * @param value string
6
+ * @param currency string
7
+ * @returns string
8
+ *
9
+ */
1
10
  export default function GetCurrencyFormat(value: string, currency?: string): string;
@@ -1 +1 @@
1
- export default function GetCurrencySymbol(currency?: string): "" | "$" | "" | "?";
1
+ export default function GetCurrencySymbol(currency?: string): "$" | "" | "" | "?";
@@ -1,2 +1,2 @@
1
- import dayjs from './dayjsSetup';
1
+ import { default as dayjs } from '../../dayjsSetup';
2
2
  export default function FormatTime(time: dayjs.ConfigType, locale?: string, format?: string): string;
@@ -1,2 +1,2 @@
1
- import dayjs from 'dayjs';
1
+ import { default as dayjs } from 'dayjs';
2
2
  export default dayjs;
@@ -1,32 +1,36 @@
1
- export { default as DetermineNewHeight } from './aspectratio/DetermineNewHeight';
2
- export { default as DetermineNewWidth } from './aspectratio/DetermineNewWidth';
3
- export { default as FindSelector } from './css/FindSelector';
4
- export { default as GetCountryCodeByCurrencyCode } from './country/GetCountryCodeByCurrencyCode';
5
- export { default as GetCountryCodeByLanguage } from './country/GetCountryCodeByLanguage';
6
- export { default as ConvertCurrency } from './currency/ConvertCurrency';
7
- export { default as GetByCurrency } from './currency/GetByCurrency';
8
- export { default as GetCurrencyFormat } from './currency/GetCurrencyFormat';
9
- export { default as GetCurrencySymbol } from './currency/GetCurrencySymbol';
10
- export { default as GetDecimalByCurrency } from './currency/GetDecimalByCurrency';
11
- export { default as AddDefaultThemeStyle } from './theme/AddDefaultThemeStyle';
12
- export { default as UpdateThemeStyle } from './theme/UpdateThemeStyle';
13
- export { default as IsValidJSON } from './json/IsValidJSON';
14
- export { default as AddZero } from './math/AddZero';
15
- export { default as RemoveUnits } from './remover/RemoveUnits';
16
- export { default as ChunkArray } from './array/ChunkArray';
17
- export { default as FileChecker } from './checker/FileChecker';
18
- export { default as CheckFileURL } from './checker/CheckFileURL';
19
- export { default as UniUpperCase } from './string/UniUpperCase';
20
- export { default as FormatBytes } from './binary/FormatBytes';
21
- export { default as GetTypeByFileType } from './binary/GetTypeByFileType';
22
- export { default as Wait } from './promise/Wait';
23
- export { default as SVGLoader } from './svg/SVGLoader';
24
- export { default as FormatDate } from './datetime/FormatDate';
25
- export { default as FormatDateTime } from './datetime/FormatDateTime';
26
- export { default as FormatSimpleDate } from './datetime/FormatSimpleDate';
27
- export { default as FormatSimpleDateTime } from './datetime/FormatSimpleDateTime';
28
- export { default as FormatTime } from './datetime/FormatTime';
29
- export { default as AddDefaultUnit } from './unit/AddDefaultUnit';
30
- export { default as Base64Encode } from './base64/Base64Encode';
31
- export { default as Base64Decode } from './base64/Base64Decode';
32
- export { default as toKebabCase } from './format/ToKebabCase';
1
+ export { default as DetermineNewHeight } from '../aspectratio/DetermineNewHeight';
2
+ export { default as DetermineNewWidth } from '../aspectratio/DetermineNewWidth';
3
+ export { default as FindSelector } from '../css/FindSelector';
4
+ export { default as GetCountryCodeByCurrencyCode } from '../country/GetCountryCodeByCurrencyCode';
5
+ export { default as GetCountryCodeByLanguage } from '../country/GetCountryCodeByLanguage';
6
+ export { default as ConvertCurrency } from '../currency/ConvertCurrency';
7
+ export { default as GetByCurrency } from '../currency/GetByCurrency';
8
+ export { default as GetCurrencyFormat } from '../currency/GetCurrencyFormat';
9
+ export { default as GetCurrencySymbol } from '../currency/GetCurrencySymbol';
10
+ export { default as GetDecimalByCurrency } from '../currency/GetDecimalByCurrency';
11
+ export { default as AddDefaultThemeStyle } from '../theme/AddDefaultThemeStyle';
12
+ export { default as UpdateThemeStyle } from '../theme/UpdateThemeStyle';
13
+ export { default as GenerateColorScale, generateColorScaleFromBase } from '../theme/GenerateColorScale';
14
+ export { hexToRgba, withOpacity, getContrastText } from '../theme/Color';
15
+ export { TYPOGRAPHY_TOKENS, SPACING_TOKENS, ICON_TOKENS, INPUT_SIZE_MAP, SELECT_SIZE_MAP, BUTTON_SIZE_MAP, ALERT_TOKENS, CARD_TOKENS, MODAL_TOKENS } from '../theme/tokens';
16
+ export { injectDesignTokens, injectThemeColors, CSS_VARIABLES_MAP } from '../theme/cssVariables';
17
+ export { default as IsValidJSON } from '../json/IsValidJSON';
18
+ export { default as AddZero } from '../math/AddZero';
19
+ export { default as RemoveUnits } from '../remover/RemoveUnits';
20
+ export { default as ChunkArray } from '../array/ChunkArray';
21
+ export { default as FileChecker } from '../checker/FileChecker';
22
+ export { default as CheckFileURL } from '../checker/CheckFileURL';
23
+ export { default as UniUpperCase } from '../string/UniUpperCase';
24
+ export { default as FormatBytes } from '../binary/FormatBytes';
25
+ export { default as GetTypeByFileType } from '../binary/GetTypeByFileType';
26
+ export { default as Wait } from '../promise/Wait';
27
+ export { default as SVGLoader } from '../svg/SVGLoader';
28
+ export { default as FormatDate } from '../datetime/FormatDate';
29
+ export { default as FormatDateTime } from '../datetime/FormatDateTime';
30
+ export { default as FormatSimpleDate } from '../datetime/FormatSimpleDate';
31
+ export { default as FormatSimpleDateTime } from '../datetime/FormatSimpleDateTime';
32
+ export { default as FormatTime } from '../datetime/FormatTime';
33
+ export { default as AddDefaultUnit } from '../unit/AddDefaultUnit';
34
+ export { default as Base64Encode } from '../base64/Base64Encode';
35
+ export { default as Base64Decode } from '../base64/Base64Decode';
36
+ export { default as toKebabCase } from '../format/ToKebabCase';
@@ -0,0 +1 @@
1
+ export default function getLocaleDateString(locale?: string): any;
@@ -1,4 +1,4 @@
1
- declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
1
+ declare const Wrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
2
2
  $width?: number | string;
3
3
  $height?: number | string;
4
4
  }>> & string;
@@ -0,0 +1,19 @@
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;
@@ -0,0 +1,16 @@
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;