@workday/canvas-kit-preview-react 7.0.0-alpha.89-next.16 → 7.0.0-alpha.90-next.17

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 (257) hide show
  1. package/dist/commonjs/form-field/lib/FormField.d.ts +46 -12
  2. package/dist/commonjs/form-field/lib/FormField.d.ts.map +1 -1
  3. package/dist/commonjs/form-field/lib/FormField.js +7 -11
  4. package/dist/commonjs/form-field/lib/FormFieldHint.d.ts +8 -12
  5. package/dist/commonjs/form-field/lib/FormFieldHint.d.ts.map +1 -1
  6. package/dist/commonjs/form-field/lib/FormFieldHint.js +11 -13
  7. package/dist/commonjs/form-field/lib/FormFieldInput.d.ts +8 -7
  8. package/dist/commonjs/form-field/lib/FormFieldInput.d.ts.map +1 -1
  9. package/dist/commonjs/form-field/lib/FormFieldInput.js +5 -19
  10. package/dist/commonjs/form-field/lib/FormFieldLabel.d.ts +8 -3
  11. package/dist/commonjs/form-field/lib/FormFieldLabel.d.ts.map +1 -1
  12. package/dist/commonjs/form-field/lib/FormFieldLabel.js +9 -11
  13. package/dist/commonjs/form-field/lib/hooks/useFormFieldHint.d.ts +8 -5
  14. package/dist/commonjs/form-field/lib/hooks/useFormFieldHint.d.ts.map +1 -1
  15. package/dist/commonjs/form-field/lib/hooks/useFormFieldHint.js +2 -1
  16. package/dist/commonjs/form-field/lib/hooks/useFormFieldInput.d.ts +8 -5
  17. package/dist/commonjs/form-field/lib/hooks/useFormFieldInput.d.ts.map +1 -1
  18. package/dist/commonjs/form-field/lib/hooks/useFormFieldInput.js +2 -1
  19. package/dist/commonjs/form-field/lib/hooks/useFormFieldLabel.d.ts +8 -5
  20. package/dist/commonjs/form-field/lib/hooks/useFormFieldLabel.d.ts.map +1 -1
  21. package/dist/commonjs/form-field/lib/hooks/useFormFieldLabel.js +2 -1
  22. package/dist/commonjs/form-field/lib/hooks/useFormFieldModel.d.ts +77 -15
  23. package/dist/commonjs/form-field/lib/hooks/useFormFieldModel.d.ts.map +1 -1
  24. package/dist/commonjs/form-field/lib/hooks/useFormFieldModel.js +41 -15
  25. package/dist/commonjs/menu/lib/Menu.js +1 -1
  26. package/dist/commonjs/text-area/lib/TextArea.d.ts +52 -11
  27. package/dist/commonjs/text-area/lib/TextArea.d.ts.map +1 -1
  28. package/dist/commonjs/text-area/lib/TextArea.js +9 -15
  29. package/dist/commonjs/text-area/lib/TextAreaField.d.ts +15 -7
  30. package/dist/commonjs/text-area/lib/TextAreaField.d.ts.map +1 -1
  31. package/dist/commonjs/text-area/lib/TextAreaField.js +16 -17
  32. package/dist/commonjs/text-area/lib/hooks/useTextAreaModel.d.ts +27 -7
  33. package/dist/commonjs/text-area/lib/hooks/useTextAreaModel.d.ts.map +1 -1
  34. package/dist/commonjs/text-input/lib/TextInput.d.ts +59 -11
  35. package/dist/commonjs/text-input/lib/TextInput.d.ts.map +1 -1
  36. package/dist/commonjs/text-input/lib/TextInput.js +9 -15
  37. package/dist/commonjs/text-input/lib/TextInputField.d.ts +15 -7
  38. package/dist/commonjs/text-input/lib/TextInputField.d.ts.map +1 -1
  39. package/dist/commonjs/text-input/lib/TextInputField.js +15 -29
  40. package/dist/commonjs/text-input/lib/hooks/useTextInputField.d.ts +8 -1
  41. package/dist/commonjs/text-input/lib/hooks/useTextInputField.d.ts.map +1 -1
  42. package/dist/commonjs/text-input/lib/hooks/useTextInputField.js +2 -1
  43. package/dist/commonjs/text-input/lib/hooks/useTextInputModel.d.ts +27 -7
  44. package/dist/commonjs/text-input/lib/hooks/useTextInputModel.d.ts.map +1 -1
  45. package/dist/es6/form-field/lib/FormField.d.ts +46 -12
  46. package/dist/es6/form-field/lib/FormField.d.ts.map +1 -1
  47. package/dist/es6/form-field/lib/FormField.js +8 -12
  48. package/dist/es6/form-field/lib/FormFieldHint.d.ts +8 -12
  49. package/dist/es6/form-field/lib/FormFieldHint.d.ts.map +1 -1
  50. package/dist/es6/form-field/lib/FormFieldHint.js +13 -15
  51. package/dist/es6/form-field/lib/FormFieldInput.d.ts +8 -7
  52. package/dist/es6/form-field/lib/FormFieldInput.d.ts.map +1 -1
  53. package/dist/es6/form-field/lib/FormFieldInput.js +7 -21
  54. package/dist/es6/form-field/lib/FormFieldLabel.d.ts +8 -3
  55. package/dist/es6/form-field/lib/FormFieldLabel.d.ts.map +1 -1
  56. package/dist/es6/form-field/lib/FormFieldLabel.js +11 -13
  57. package/dist/es6/form-field/lib/hooks/useFormFieldHint.d.ts +8 -5
  58. package/dist/es6/form-field/lib/hooks/useFormFieldHint.d.ts.map +1 -1
  59. package/dist/es6/form-field/lib/hooks/useFormFieldHint.js +3 -2
  60. package/dist/es6/form-field/lib/hooks/useFormFieldInput.d.ts +8 -5
  61. package/dist/es6/form-field/lib/hooks/useFormFieldInput.d.ts.map +1 -1
  62. package/dist/es6/form-field/lib/hooks/useFormFieldInput.js +3 -2
  63. package/dist/es6/form-field/lib/hooks/useFormFieldLabel.d.ts +8 -5
  64. package/dist/es6/form-field/lib/hooks/useFormFieldLabel.d.ts.map +1 -1
  65. package/dist/es6/form-field/lib/hooks/useFormFieldLabel.js +3 -2
  66. package/dist/es6/form-field/lib/hooks/useFormFieldModel.d.ts +77 -15
  67. package/dist/es6/form-field/lib/hooks/useFormFieldModel.d.ts.map +1 -1
  68. package/dist/es6/form-field/lib/hooks/useFormFieldModel.js +42 -15
  69. package/dist/es6/menu/lib/Menu.js +1 -1
  70. package/dist/es6/text-area/lib/TextArea.d.ts +52 -11
  71. package/dist/es6/text-area/lib/TextArea.d.ts.map +1 -1
  72. package/dist/es6/text-area/lib/TextArea.js +10 -16
  73. package/dist/es6/text-area/lib/TextAreaField.d.ts +15 -7
  74. package/dist/es6/text-area/lib/TextAreaField.d.ts.map +1 -1
  75. package/dist/es6/text-area/lib/TextAreaField.js +17 -18
  76. package/dist/es6/text-area/lib/hooks/useTextAreaModel.d.ts +27 -7
  77. package/dist/es6/text-area/lib/hooks/useTextAreaModel.d.ts.map +1 -1
  78. package/dist/es6/text-input/lib/TextInput.d.ts +59 -11
  79. package/dist/es6/text-input/lib/TextInput.d.ts.map +1 -1
  80. package/dist/es6/text-input/lib/TextInput.js +10 -16
  81. package/dist/es6/text-input/lib/TextInputField.d.ts +15 -7
  82. package/dist/es6/text-input/lib/TextInputField.d.ts.map +1 -1
  83. package/dist/es6/text-input/lib/TextInputField.js +17 -31
  84. package/dist/es6/text-input/lib/hooks/useTextInputField.d.ts +8 -1
  85. package/dist/es6/text-input/lib/hooks/useTextInputField.d.ts.map +1 -1
  86. package/dist/es6/text-input/lib/hooks/useTextInputField.js +3 -2
  87. package/dist/es6/text-input/lib/hooks/useTextInputModel.d.ts +27 -7
  88. package/dist/es6/text-input/lib/hooks/useTextInputModel.d.ts.map +1 -1
  89. package/form-field/lib/FormField.tsx +13 -28
  90. package/form-field/lib/FormFieldHint.tsx +21 -32
  91. package/form-field/lib/FormFieldInput.tsx +7 -14
  92. package/form-field/lib/FormFieldLabel.tsx +17 -21
  93. package/form-field/lib/hooks/useFormFieldHint.tsx +3 -3
  94. package/form-field/lib/hooks/useFormFieldInput.tsx +3 -3
  95. package/form-field/lib/hooks/useFormFieldLabel.tsx +3 -3
  96. package/form-field/lib/hooks/useFormFieldModel.tsx +32 -53
  97. package/menu/lib/Menu.tsx +1 -1
  98. package/package.json +7 -16
  99. package/text-area/lib/TextArea.tsx +15 -29
  100. package/text-area/lib/TextAreaField.tsx +30 -44
  101. package/text-area/lib/hooks/useTextAreaModel.ts +1 -3
  102. package/text-input/lib/TextInput.tsx +15 -29
  103. package/text-input/lib/TextInputField.tsx +31 -43
  104. package/text-input/lib/hooks/useTextInputField.tsx +3 -2
  105. package/text-input/lib/hooks/useTextInputModel.ts +1 -3
  106. package/dist/commonjs/text-area/lib/TextAreaHint.d.ts +0 -5
  107. package/dist/commonjs/text-area/lib/TextAreaHint.d.ts.map +0 -1
  108. package/dist/commonjs/text-area/lib/TextAreaHint.js +0 -5
  109. package/dist/commonjs/text-area/lib/TextAreaLabel.d.ts +0 -5
  110. package/dist/commonjs/text-area/lib/TextAreaLabel.d.ts.map +0 -1
  111. package/dist/commonjs/text-area/lib/TextAreaLabel.js +0 -5
  112. package/dist/commonjs/text-input/lib/TextInputHint.d.ts +0 -5
  113. package/dist/commonjs/text-input/lib/TextInputHint.d.ts.map +0 -1
  114. package/dist/commonjs/text-input/lib/TextInputHint.js +0 -5
  115. package/dist/commonjs/text-input/lib/TextInputLabel.d.ts +0 -5
  116. package/dist/commonjs/text-input/lib/TextInputLabel.d.ts.map +0 -1
  117. package/dist/commonjs/text-input/lib/TextInputLabel.js +0 -5
  118. package/dist/es6/text-area/lib/TextAreaHint.d.ts +0 -5
  119. package/dist/es6/text-area/lib/TextAreaHint.d.ts.map +0 -1
  120. package/dist/es6/text-area/lib/TextAreaHint.js +0 -2
  121. package/dist/es6/text-area/lib/TextAreaLabel.d.ts +0 -5
  122. package/dist/es6/text-area/lib/TextAreaLabel.d.ts.map +0 -1
  123. package/dist/es6/text-area/lib/TextAreaLabel.js +0 -2
  124. package/dist/es6/text-input/lib/TextInputHint.d.ts +0 -5
  125. package/dist/es6/text-input/lib/TextInputHint.d.ts.map +0 -1
  126. package/dist/es6/text-input/lib/TextInputHint.js +0 -2
  127. package/dist/es6/text-input/lib/TextInputLabel.d.ts +0 -5
  128. package/dist/es6/text-input/lib/TextInputLabel.d.ts.map +0 -1
  129. package/dist/es6/text-input/lib/TextInputLabel.js +0 -2
  130. package/text-area/lib/TextAreaHint.tsx +0 -6
  131. package/text-area/lib/TextAreaLabel.tsx +0 -6
  132. package/text-input/lib/TextInputHint.tsx +0 -6
  133. package/text-input/lib/TextInputLabel.tsx +0 -6
  134. package/ts3.5/dist/commonjs/breadcrumbs/index.d.ts +0 -5
  135. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Button.d.ts +0 -20
  136. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.d.ts +0 -38
  137. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/MenuItemLink.d.ts +0 -14
  138. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.d.ts +0 -13
  139. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/index.d.ts +0 -8
  140. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/Collapsible.d.ts +0 -16
  141. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/CurrentItem.d.ts +0 -11
  142. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/Link.d.ts +0 -19
  143. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/ListItem.d.ts +0 -4
  144. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/hooks.d.ts +0 -19
  145. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/index.d.ts +0 -4
  146. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/styles.d.ts +0 -3
  147. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Nav.d.ts +0 -11
  148. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/hooks.d.ts +0 -5
  149. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/index.d.ts +0 -9
  150. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/types.d.ts +0 -8
  151. package/ts3.5/dist/commonjs/color-picker/index.d.ts +0 -2
  152. package/ts3.5/dist/commonjs/color-picker/lib/ColorPicker.d.ts +0 -55
  153. package/ts3.5/dist/commonjs/color-picker/lib/parts/ColorReset.d.ts +0 -7
  154. package/ts3.5/dist/commonjs/color-picker/lib/parts/SwatchBook.d.ts +0 -7
  155. package/ts3.5/dist/commonjs/form-field/index.d.ts +0 -3
  156. package/ts3.5/dist/commonjs/form-field/lib/FormField.d.ts +0 -31
  157. package/ts3.5/dist/commonjs/form-field/lib/FormFieldHint.d.ts +0 -13
  158. package/ts3.5/dist/commonjs/form-field/lib/FormFieldInput.d.ts +0 -8
  159. package/ts3.5/dist/commonjs/form-field/lib/FormFieldLabel.d.ts +0 -18
  160. package/ts3.5/dist/commonjs/form-field/lib/hooks/index.d.ts +0 -6
  161. package/ts3.5/dist/commonjs/form-field/lib/hooks/useFormFieldHint.d.ts +0 -14
  162. package/ts3.5/dist/commonjs/form-field/lib/hooks/useFormFieldInput.d.ts +0 -17
  163. package/ts3.5/dist/commonjs/form-field/lib/hooks/useFormFieldLabel.d.ts +0 -14
  164. package/ts3.5/dist/commonjs/form-field/lib/hooks/useFormFieldModel.d.ts +0 -36
  165. package/ts3.5/dist/commonjs/form-field/lib/hooks/useFormFieldOrientation.d.ts +0 -10
  166. package/ts3.5/dist/commonjs/index.d.ts +0 -9
  167. package/ts3.5/dist/commonjs/menu/index.d.ts +0 -6
  168. package/ts3.5/dist/commonjs/menu/lib/Menu.d.ts +0 -61
  169. package/ts3.5/dist/commonjs/menu/lib/MenuItem.d.ts +0 -53
  170. package/ts3.5/dist/commonjs/select/index.d.ts +0 -6
  171. package/ts3.5/dist/commonjs/select/lib/Select.d.ts +0 -25
  172. package/ts3.5/dist/commonjs/select/lib/SelectBase.d.ts +0 -123
  173. package/ts3.5/dist/commonjs/select/lib/SelectMenu.d.ts +0 -42
  174. package/ts3.5/dist/commonjs/select/lib/SelectOption.d.ts +0 -33
  175. package/ts3.5/dist/commonjs/select/lib/scrolling.d.ts +0 -2
  176. package/ts3.5/dist/commonjs/select/lib/types.d.ts +0 -33
  177. package/ts3.5/dist/commonjs/select/lib/utils.d.ts +0 -4
  178. package/ts3.5/dist/commonjs/side-panel/index.d.ts +0 -6
  179. package/ts3.5/dist/commonjs/side-panel/lib/SidePanel.d.ts +0 -86
  180. package/ts3.5/dist/commonjs/side-panel/lib/hooks.d.ts +0 -80
  181. package/ts3.5/dist/commonjs/text-area/index.d.ts +0 -2
  182. package/ts3.5/dist/commonjs/text-area/lib/TextArea.d.ts +0 -22
  183. package/ts3.5/dist/commonjs/text-area/lib/TextAreaField.d.ts +0 -8
  184. package/ts3.5/dist/commonjs/text-area/lib/TextAreaHint.d.ts +0 -5
  185. package/ts3.5/dist/commonjs/text-area/lib/TextAreaLabel.d.ts +0 -5
  186. package/ts3.5/dist/commonjs/text-area/lib/hooks/index.d.ts +0 -2
  187. package/ts3.5/dist/commonjs/text-area/lib/hooks/useTextAreaModel.d.ts +0 -8
  188. package/ts3.5/dist/commonjs/text-input/index.d.ts +0 -3
  189. package/ts3.5/dist/commonjs/text-input/lib/TextInput.d.ts +0 -22
  190. package/ts3.5/dist/commonjs/text-input/lib/TextInputField.d.ts +0 -8
  191. package/ts3.5/dist/commonjs/text-input/lib/TextInputHint.d.ts +0 -5
  192. package/ts3.5/dist/commonjs/text-input/lib/TextInputLabel.d.ts +0 -5
  193. package/ts3.5/dist/commonjs/text-input/lib/hooks/index.d.ts +0 -3
  194. package/ts3.5/dist/commonjs/text-input/lib/hooks/useTextInputField.d.ts +0 -9
  195. package/ts3.5/dist/commonjs/text-input/lib/hooks/useTextInputModel.d.ts +0 -8
  196. package/ts3.5/dist/es6/breadcrumbs/index.d.ts +0 -5
  197. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Button.d.ts +0 -20
  198. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.d.ts +0 -38
  199. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/MenuItemLink.d.ts +0 -14
  200. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.d.ts +0 -13
  201. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/index.d.ts +0 -8
  202. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/List/Collapsible.d.ts +0 -16
  203. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/List/CurrentItem.d.ts +0 -11
  204. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/List/Link.d.ts +0 -19
  205. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/List/ListItem.d.ts +0 -4
  206. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/List/hooks.d.ts +0 -19
  207. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/List/index.d.ts +0 -4
  208. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/List/styles.d.ts +0 -3
  209. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/Nav.d.ts +0 -11
  210. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/hooks.d.ts +0 -5
  211. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/index.d.ts +0 -9
  212. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/types.d.ts +0 -8
  213. package/ts3.5/dist/es6/color-picker/index.d.ts +0 -2
  214. package/ts3.5/dist/es6/color-picker/lib/ColorPicker.d.ts +0 -55
  215. package/ts3.5/dist/es6/color-picker/lib/parts/ColorReset.d.ts +0 -7
  216. package/ts3.5/dist/es6/color-picker/lib/parts/SwatchBook.d.ts +0 -7
  217. package/ts3.5/dist/es6/form-field/index.d.ts +0 -3
  218. package/ts3.5/dist/es6/form-field/lib/FormField.d.ts +0 -31
  219. package/ts3.5/dist/es6/form-field/lib/FormFieldHint.d.ts +0 -13
  220. package/ts3.5/dist/es6/form-field/lib/FormFieldInput.d.ts +0 -8
  221. package/ts3.5/dist/es6/form-field/lib/FormFieldLabel.d.ts +0 -18
  222. package/ts3.5/dist/es6/form-field/lib/hooks/index.d.ts +0 -6
  223. package/ts3.5/dist/es6/form-field/lib/hooks/useFormFieldHint.d.ts +0 -14
  224. package/ts3.5/dist/es6/form-field/lib/hooks/useFormFieldInput.d.ts +0 -17
  225. package/ts3.5/dist/es6/form-field/lib/hooks/useFormFieldLabel.d.ts +0 -14
  226. package/ts3.5/dist/es6/form-field/lib/hooks/useFormFieldModel.d.ts +0 -36
  227. package/ts3.5/dist/es6/form-field/lib/hooks/useFormFieldOrientation.d.ts +0 -10
  228. package/ts3.5/dist/es6/index.d.ts +0 -9
  229. package/ts3.5/dist/es6/menu/index.d.ts +0 -6
  230. package/ts3.5/dist/es6/menu/lib/Menu.d.ts +0 -61
  231. package/ts3.5/dist/es6/menu/lib/MenuItem.d.ts +0 -53
  232. package/ts3.5/dist/es6/select/index.d.ts +0 -6
  233. package/ts3.5/dist/es6/select/lib/Select.d.ts +0 -25
  234. package/ts3.5/dist/es6/select/lib/SelectBase.d.ts +0 -123
  235. package/ts3.5/dist/es6/select/lib/SelectMenu.d.ts +0 -42
  236. package/ts3.5/dist/es6/select/lib/SelectOption.d.ts +0 -33
  237. package/ts3.5/dist/es6/select/lib/scrolling.d.ts +0 -2
  238. package/ts3.5/dist/es6/select/lib/types.d.ts +0 -33
  239. package/ts3.5/dist/es6/select/lib/utils.d.ts +0 -4
  240. package/ts3.5/dist/es6/side-panel/index.d.ts +0 -6
  241. package/ts3.5/dist/es6/side-panel/lib/SidePanel.d.ts +0 -86
  242. package/ts3.5/dist/es6/side-panel/lib/hooks.d.ts +0 -80
  243. package/ts3.5/dist/es6/text-area/index.d.ts +0 -2
  244. package/ts3.5/dist/es6/text-area/lib/TextArea.d.ts +0 -22
  245. package/ts3.5/dist/es6/text-area/lib/TextAreaField.d.ts +0 -8
  246. package/ts3.5/dist/es6/text-area/lib/TextAreaHint.d.ts +0 -5
  247. package/ts3.5/dist/es6/text-area/lib/TextAreaLabel.d.ts +0 -5
  248. package/ts3.5/dist/es6/text-area/lib/hooks/index.d.ts +0 -2
  249. package/ts3.5/dist/es6/text-area/lib/hooks/useTextAreaModel.d.ts +0 -8
  250. package/ts3.5/dist/es6/text-input/index.d.ts +0 -3
  251. package/ts3.5/dist/es6/text-input/lib/TextInput.d.ts +0 -22
  252. package/ts3.5/dist/es6/text-input/lib/TextInputField.d.ts +0 -8
  253. package/ts3.5/dist/es6/text-input/lib/TextInputHint.d.ts +0 -5
  254. package/ts3.5/dist/es6/text-input/lib/TextInputLabel.d.ts +0 -5
  255. package/ts3.5/dist/es6/text-input/lib/hooks/index.d.ts +0 -3
  256. package/ts3.5/dist/es6/text-input/lib/hooks/useTextInputField.d.ts +0 -9
  257. package/ts3.5/dist/es6/text-input/lib/hooks/useTextInputModel.d.ts +0 -8
@@ -1,47 +1,33 @@
1
1
  import React from 'react';
2
2
 
3
- import {createComponent, ExtractProps, useDefaultModel} from '@workday/canvas-kit-react/common';
4
- import {
5
- FormField,
6
- FormFieldModelContext,
7
- useFormFieldOrientation,
8
- } from '@workday/canvas-kit-preview-react/form-field';
3
+ import {createContainer, ExtractProps} from '@workday/canvas-kit-react/common';
4
+ import {FormField, useFormFieldOrientation} from '@workday/canvas-kit-preview-react/form-field';
9
5
  import {Stack} from '@workday/canvas-kit-react/layout';
10
6
 
11
- import {useTextInputModel, TextInputModel} from './hooks';
7
+ import {useTextInputModel} from './hooks';
12
8
  import {TextInputField} from './TextInputField';
13
- import {TextInputLabel} from './TextInputLabel';
14
- import {TextInputHint} from './TextInputHint';
15
-
16
- export const TextInputModelContext = FormFieldModelContext;
17
9
 
18
10
  export interface TextInputProps extends ExtractProps<typeof FormField, never> {
19
- model?: TextInputModel;
20
11
  /**
21
12
  * Children of the Text Input. Should contain a `<TextInput.Field>`, a `<TextInput.Label>` and an optional `<TextInput.Hint>`
22
13
  */
23
14
  children: React.ReactNode;
24
15
  }
25
16
 
26
- export const TextInput = createComponent()({
17
+ export const TextInput = createContainer('div')({
27
18
  displayName: 'TextInput',
28
- Component: ({children, model, orientation, ...props}: TextInputProps, ref) => {
29
- const {hasError, id, isRequired, ...elemProps} = props;
30
- const value = useDefaultModel(model, {hasError, id, isRequired}, useTextInputModel);
31
-
32
- const layoutProps = useFormFieldOrientation(orientation);
33
-
34
- return (
35
- <TextInputModelContext.Provider value={value}>
36
- <Stack ref={ref} {...layoutProps} {...elemProps}>
37
- {children}
38
- </Stack>
39
- </TextInputModelContext.Provider>
40
- );
41
- },
19
+ modelHook: useTextInputModel,
42
20
  subComponents: {
43
21
  Field: TextInputField,
44
- Label: TextInputLabel,
45
- Hint: TextInputHint,
22
+ Label: FormField.Label,
23
+ Hint: FormField.Hint,
46
24
  },
25
+ })<ExtractProps<typeof FormField, never>>(({children, orientation, ...elemProps}, Element) => {
26
+ const layoutProps = useFormFieldOrientation(orientation);
27
+
28
+ return (
29
+ <Stack as={Element} {...layoutProps} {...elemProps}>
30
+ {children}
31
+ </Stack>
32
+ );
47
33
  });
@@ -9,21 +9,11 @@ import {
9
9
  space,
10
10
  type,
11
11
  } from '@workday/canvas-kit-react/tokens';
12
- import {
13
- createComponent,
14
- ExtractProps,
15
- useModelContext,
16
- useTheme,
17
- } from '@workday/canvas-kit-react/common';
12
+ import {createSubcomponent, ExtractProps, useTheme} from '@workday/canvas-kit-react/common';
18
13
  import {useThemedRing} from '@workday/canvas-kit-labs-react/common';
19
14
  import {FormField} from '@workday/canvas-kit-preview-react/form-field';
20
15
 
21
- import {TextInputModelContext} from './TextInput';
22
- import {useTextInputField, TextInputModel} from './hooks';
23
-
24
- export interface TextInputFieldProps extends ExtractProps<typeof FormField.Input, never> {
25
- model?: TextInputModel;
26
- }
16
+ import {useTextInputField, useTextInputModel} from './hooks';
27
17
 
28
18
  const baseStyles: CSSProperties = {
29
19
  ...type.levels.subtext.large,
@@ -50,38 +40,36 @@ const baseStyles: CSSProperties = {
50
40
  },
51
41
  };
52
42
 
53
- export const TextInputField = createComponent('input')({
43
+ export const TextInputField = createSubcomponent('input')({
54
44
  displayName: 'TextInput.Field',
55
- Component: ({model, ...elemProps}: TextInputFieldProps, ref) => {
56
- const localModel = useModelContext(TextInputModelContext, model);
57
- const props = useTextInputField(localModel, elemProps, ref);
45
+ modelHook: useTextInputModel,
46
+ elemPropsHook: useTextInputField,
47
+ })<ExtractProps<typeof FormField.Input, never>>((elemProps, Element, model) => {
48
+ const theme = useTheme();
49
+ const errorRing = useThemedRing('error');
58
50
 
59
- const theme = useTheme();
60
- const errorRing = useThemedRing('error');
51
+ const focusStyles = model.state.hasError
52
+ ? errorRing
53
+ : {
54
+ '&:focus:not([disabled])': {
55
+ borderColor: theme.canvas.palette.common.focusOutline,
56
+ boxShadow: `inset 0 0 0 1px ${theme.canvas.palette.common.focusOutline}`,
57
+ },
58
+ };
61
59
 
62
- const focusStyles = localModel.state.hasError
63
- ? errorRing
64
- : {
65
- '&:focus:not([disabled])': {
66
- borderColor: theme.canvas.palette.common.focusOutline,
67
- boxShadow: `inset 0 0 0 1px ${theme.canvas.palette.common.focusOutline}`,
68
- },
69
- };
70
-
71
- return (
72
- <FormField.Input
73
- as="input"
74
- css={[baseStyles, focusStyles]}
75
- padding={space.xxs}
76
- margin={0}
77
- display="block"
78
- height="40px"
79
- minWidth="280px"
80
- border={`1px solid ${inputColors.border}`}
81
- backgroundColor={inputColors.background}
82
- borderRadius={borderRadius.m}
83
- {...props}
84
- />
85
- );
86
- },
60
+ return (
61
+ <FormField.Input
62
+ as="input"
63
+ css={[baseStyles, focusStyles]}
64
+ padding={space.xxs}
65
+ margin={0}
66
+ display="block"
67
+ height="40px"
68
+ minWidth="280px"
69
+ border={`1px solid ${inputColors.border}`}
70
+ backgroundColor={inputColors.background}
71
+ borderRadius={borderRadius.m}
72
+ {...elemProps}
73
+ />
74
+ );
87
75
  });
@@ -1,9 +1,10 @@
1
- import {createHook} from '@workday/canvas-kit-react/common';
1
+ import {createElemPropsHook} from '@workday/canvas-kit-react/common';
2
+ import {useTextInputModel} from './useTextInputModel';
2
3
 
3
4
  /**
4
5
  * Adds the necessary props to a `Field` component. Used by the TextInput.Field subcomponent.
5
6
  */
6
- export const useTextInputField = createHook(() => {
7
+ export const useTextInputField = createElemPropsHook(useTextInputModel)(() => {
7
8
  return {
8
9
  type: 'text',
9
10
  };
@@ -1,5 +1,3 @@
1
- import {useFormFieldModel, FormFieldModel} from '@workday/canvas-kit-preview-react/form-field';
1
+ import {useFormFieldModel} from '@workday/canvas-kit-preview-react/form-field';
2
2
 
3
3
  export const useTextInputModel = useFormFieldModel;
4
-
5
- export type TextInputModel = FormFieldModel;
@@ -1,5 +0,0 @@
1
- import { ExtractProps } from '@workday/canvas-kit-react/common';
2
- import { FormField } from '@workday/canvas-kit-preview-react/form-field';
3
- export declare type TextAreaHintProps = ExtractProps<typeof FormField.Hint, never>;
4
- export declare const TextAreaHint: import("@workday/canvas-kit-react/common").ElementComponent<"p", import("../../form-field/lib/FormFieldHint").FormFieldHintProps>;
5
- //# sourceMappingURL=TextAreaHint.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextAreaHint.d.ts","sourceRoot":"","sources":["../../../../text-area/lib/TextAreaHint.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAC,SAAS,EAAC,MAAM,8CAA8C,CAAC;AAEvE,oBAAY,iBAAiB,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAE3E,eAAO,MAAM,YAAY,mIAAiB,CAAC"}
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TextAreaHint = void 0;
4
- var form_field_1 = require("@workday/canvas-kit-preview-react/form-field");
5
- exports.TextAreaHint = form_field_1.FormField.Hint;
@@ -1,5 +0,0 @@
1
- import { ExtractProps } from '@workday/canvas-kit-react/common';
2
- import { FormField } from '@workday/canvas-kit-preview-react/form-field';
3
- export declare type TextAreaLabelProps = ExtractProps<typeof FormField.Label, never>;
4
- export declare const TextAreaLabel: import("@workday/canvas-kit-react/common").ElementComponent<"label", import("../../form-field/lib/FormFieldLabel").FormFieldLabelProps>;
5
- //# sourceMappingURL=TextAreaLabel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextAreaLabel.d.ts","sourceRoot":"","sources":["../../../../text-area/lib/TextAreaLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAC,SAAS,EAAC,MAAM,8CAA8C,CAAC;AAEvE,oBAAY,kBAAkB,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;AAE7E,eAAO,MAAM,aAAa,yIAAkB,CAAC"}
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TextAreaLabel = void 0;
4
- var form_field_1 = require("@workday/canvas-kit-preview-react/form-field");
5
- exports.TextAreaLabel = form_field_1.FormField.Label;
@@ -1,5 +0,0 @@
1
- import { ExtractProps } from '@workday/canvas-kit-react/common';
2
- import { FormField } from '@workday/canvas-kit-preview-react/form-field';
3
- export declare type TextInputHintProps = ExtractProps<typeof FormField.Hint, never>;
4
- export declare const TextInputHint: import("@workday/canvas-kit-react/common").ElementComponent<"p", import("../../form-field/lib/FormFieldHint").FormFieldHintProps>;
5
- //# sourceMappingURL=TextInputHint.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextInputHint.d.ts","sourceRoot":"","sources":["../../../../text-input/lib/TextInputHint.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAC,SAAS,EAAC,MAAM,8CAA8C,CAAC;AAEvE,oBAAY,kBAAkB,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAE5E,eAAO,MAAM,aAAa,mIAAiB,CAAC"}
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TextInputHint = void 0;
4
- var form_field_1 = require("@workday/canvas-kit-preview-react/form-field");
5
- exports.TextInputHint = form_field_1.FormField.Hint;
@@ -1,5 +0,0 @@
1
- import { ExtractProps } from '@workday/canvas-kit-react/common';
2
- import { FormField } from '@workday/canvas-kit-preview-react/form-field';
3
- export declare type TextInputLabelProps = ExtractProps<typeof FormField.Label, never>;
4
- export declare const TextInputLabel: import("@workday/canvas-kit-react/common").ElementComponent<"label", import("../../form-field/lib/FormFieldLabel").FormFieldLabelProps>;
5
- //# sourceMappingURL=TextInputLabel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextInputLabel.d.ts","sourceRoot":"","sources":["../../../../text-input/lib/TextInputLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAC,SAAS,EAAC,MAAM,8CAA8C,CAAC;AAEvE,oBAAY,mBAAmB,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;AAE9E,eAAO,MAAM,cAAc,yIAAkB,CAAC"}
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TextInputLabel = void 0;
4
- var form_field_1 = require("@workday/canvas-kit-preview-react/form-field");
5
- exports.TextInputLabel = form_field_1.FormField.Label;
@@ -1,5 +0,0 @@
1
- import { ExtractProps } from '@workday/canvas-kit-react/common';
2
- import { FormField } from '@workday/canvas-kit-preview-react/form-field';
3
- export declare type TextAreaHintProps = ExtractProps<typeof FormField.Hint, never>;
4
- export declare const TextAreaHint: import("@workday/canvas-kit-react/common").ElementComponent<"p", import("../../form-field/lib/FormFieldHint").FormFieldHintProps>;
5
- //# sourceMappingURL=TextAreaHint.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextAreaHint.d.ts","sourceRoot":"","sources":["../../../../text-area/lib/TextAreaHint.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAC,SAAS,EAAC,MAAM,8CAA8C,CAAC;AAEvE,oBAAY,iBAAiB,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAE3E,eAAO,MAAM,YAAY,mIAAiB,CAAC"}
@@ -1,2 +0,0 @@
1
- import { FormField } from '@workday/canvas-kit-preview-react/form-field';
2
- export var TextAreaHint = FormField.Hint;
@@ -1,5 +0,0 @@
1
- import { ExtractProps } from '@workday/canvas-kit-react/common';
2
- import { FormField } from '@workday/canvas-kit-preview-react/form-field';
3
- export declare type TextAreaLabelProps = ExtractProps<typeof FormField.Label, never>;
4
- export declare const TextAreaLabel: import("@workday/canvas-kit-react/common").ElementComponent<"label", import("../../form-field/lib/FormFieldLabel").FormFieldLabelProps>;
5
- //# sourceMappingURL=TextAreaLabel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextAreaLabel.d.ts","sourceRoot":"","sources":["../../../../text-area/lib/TextAreaLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAC,SAAS,EAAC,MAAM,8CAA8C,CAAC;AAEvE,oBAAY,kBAAkB,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;AAE7E,eAAO,MAAM,aAAa,yIAAkB,CAAC"}
@@ -1,2 +0,0 @@
1
- import { FormField } from '@workday/canvas-kit-preview-react/form-field';
2
- export var TextAreaLabel = FormField.Label;
@@ -1,5 +0,0 @@
1
- import { ExtractProps } from '@workday/canvas-kit-react/common';
2
- import { FormField } from '@workday/canvas-kit-preview-react/form-field';
3
- export declare type TextInputHintProps = ExtractProps<typeof FormField.Hint, never>;
4
- export declare const TextInputHint: import("@workday/canvas-kit-react/common").ElementComponent<"p", import("../../form-field/lib/FormFieldHint").FormFieldHintProps>;
5
- //# sourceMappingURL=TextInputHint.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextInputHint.d.ts","sourceRoot":"","sources":["../../../../text-input/lib/TextInputHint.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAC,SAAS,EAAC,MAAM,8CAA8C,CAAC;AAEvE,oBAAY,kBAAkB,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAE5E,eAAO,MAAM,aAAa,mIAAiB,CAAC"}
@@ -1,2 +0,0 @@
1
- import { FormField } from '@workday/canvas-kit-preview-react/form-field';
2
- export var TextInputHint = FormField.Hint;
@@ -1,5 +0,0 @@
1
- import { ExtractProps } from '@workday/canvas-kit-react/common';
2
- import { FormField } from '@workday/canvas-kit-preview-react/form-field';
3
- export declare type TextInputLabelProps = ExtractProps<typeof FormField.Label, never>;
4
- export declare const TextInputLabel: import("@workday/canvas-kit-react/common").ElementComponent<"label", import("../../form-field/lib/FormFieldLabel").FormFieldLabelProps>;
5
- //# sourceMappingURL=TextInputLabel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextInputLabel.d.ts","sourceRoot":"","sources":["../../../../text-input/lib/TextInputLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAC,SAAS,EAAC,MAAM,8CAA8C,CAAC;AAEvE,oBAAY,mBAAmB,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;AAE9E,eAAO,MAAM,cAAc,yIAAkB,CAAC"}
@@ -1,2 +0,0 @@
1
- import { FormField } from '@workday/canvas-kit-preview-react/form-field';
2
- export var TextInputLabel = FormField.Label;
@@ -1,6 +0,0 @@
1
- import {ExtractProps} from '@workday/canvas-kit-react/common';
2
- import {FormField} from '@workday/canvas-kit-preview-react/form-field';
3
-
4
- export type TextAreaHintProps = ExtractProps<typeof FormField.Hint, never>;
5
-
6
- export const TextAreaHint = FormField.Hint;
@@ -1,6 +0,0 @@
1
- import {ExtractProps} from '@workday/canvas-kit-react/common';
2
- import {FormField} from '@workday/canvas-kit-preview-react/form-field';
3
-
4
- export type TextAreaLabelProps = ExtractProps<typeof FormField.Label, never>;
5
-
6
- export const TextAreaLabel = FormField.Label;
@@ -1,6 +0,0 @@
1
- import {ExtractProps} from '@workday/canvas-kit-react/common';
2
- import {FormField} from '@workday/canvas-kit-preview-react/form-field';
3
-
4
- export type TextInputHintProps = ExtractProps<typeof FormField.Hint, never>;
5
-
6
- export const TextInputHint = FormField.Hint;
@@ -1,6 +0,0 @@
1
- import {ExtractProps} from '@workday/canvas-kit-react/common';
2
- import {FormField} from '@workday/canvas-kit-preview-react/form-field';
3
-
4
- export type TextInputLabelProps = ExtractProps<typeof FormField.Label, never>;
5
-
6
- export const TextInputLabel = FormField.Label;
@@ -1,5 +0,0 @@
1
- import { Breadcrumbs } from './lib/Breadcrumbs';
2
- export default Breadcrumbs;
3
- export { Breadcrumbs };
4
- export * from './lib/Breadcrumbs';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1,20 +0,0 @@
1
- import React from 'react';
2
- import { CanvasSystemIcon } from '@workday/design-assets-types';
3
- export interface DropdownButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
4
- /**
5
- * The accessibility label for the button
6
- */
7
- 'aria-label': string;
8
- /**
9
- * The Canvas System Icon for the button
10
- *
11
- * @default relatedActionsIcon
12
- */
13
- buttonIcon?: CanvasSystemIcon;
14
- /**
15
- * The boolean to determine whether the button should be in a 'toggled' state
16
- */
17
- toggled: boolean;
18
- }
19
- export declare const DropdownButton: import("@workday/canvas-kit-react/common").ElementComponent<"button", DropdownButtonProps>;
20
- //# sourceMappingURL=Button.d.ts.map
@@ -1,38 +0,0 @@
1
- import React from 'react';
2
- import { Breadcrumb } from '../types';
3
- export interface DropdownMenuProps {
4
- /**
5
- * The active dropdown item in the menu
6
- */
7
- activeDropdownItem: Breadcrumb;
8
- /**
9
- * The HTML `id` of the element that labels the Menu. It should match the id of the menu button.
10
- */
11
- 'aria-labelledby': string;
12
- /**
13
- * An array of Breadcrumb items to render in the dropdown menu
14
- */
15
- dropdownItems: Breadcrumb[];
16
- /**
17
- * A function to set the active dropdown item
18
- */
19
- setActiveDropdownItem: React.Dispatch<React.SetStateAction<Breadcrumb>>;
20
- /**
21
- * The ref of the rendered HTMLAnchorElement
22
- */
23
- activeDropdownItemRef: React.RefObject<HTMLAnchorElement>;
24
- /**
25
- * A function to return the focus to the dropdown button
26
- */
27
- resetFocus: () => void;
28
- /**
29
- * A function to toggle the focus to the previous list item
30
- */
31
- toggleActiveItemUp: () => void;
32
- /**
33
- * A function to toggle the focus to the next list item
34
- */
35
- toggleActiveItemDown: () => void;
36
- }
37
- export declare const DropdownMenu: ({ activeDropdownItemRef, activeDropdownItem, dropdownItems, resetFocus, setActiveDropdownItem, toggleActiveItemDown, toggleActiveItemUp, ...elemProps }: DropdownMenuProps) => JSX.Element;
38
- //# sourceMappingURL=Menu.d.ts.map
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- interface DropdownMenuItemLinkProps extends React.HTMLAttributes<HTMLAnchorElement> {
3
- /**
4
- * The href url of the anchor tag
5
- */
6
- href: string;
7
- /**
8
- * A handler function for overriding hard-redirects with links
9
- */
10
- onAction?: (href: string) => void;
11
- }
12
- export declare const DropdownMenuItemLink: React.ForwardRefExoticComponent<DropdownMenuItemLinkProps & React.RefAttributes<HTMLAnchorElement>>;
13
- export {};
14
- //# sourceMappingURL=MenuItemLink.d.ts.map
@@ -1,13 +0,0 @@
1
- import { usePopupPopper } from '@workday/canvas-kit-react/popup';
2
- import { DropdownButtonProps } from './Button';
3
- import { DropdownMenuProps } from './Menu';
4
- import { Breadcrumb } from '../types';
5
- export declare const useFocusActiveItemElement: <E extends HTMLElement>(activeDropdownItemRef: import("react").RefObject<E>) => void;
6
- interface UseDropdown {
7
- dropdownButtonProps: Pick<DropdownButtonProps, Exclude<keyof DropdownButtonProps, 'aria-label'>>;
8
- dropdownMenuProps: DropdownMenuProps;
9
- popperProps: ReturnType<typeof usePopupPopper>;
10
- }
11
- export declare const useDropdown: (activeDropdownItemRef: React.RefObject<HTMLAnchorElement>, items: Breadcrumb[], buttonId?: string | undefined) => UseDropdown;
12
- export {};
13
- //# sourceMappingURL=hooks.d.ts.map
@@ -1,8 +0,0 @@
1
- import { Breadcrumb } from '../types';
2
- import { DropdownButtonProps } from './Button';
3
- export interface DropdownProps extends Pick<DropdownButtonProps, 'buttonIcon'> {
4
- buttonAriaLabel: string;
5
- items?: Breadcrumb[];
6
- }
7
- export declare const Dropdown: ({ buttonAriaLabel, buttonIcon, items }: DropdownProps) => JSX.Element;
8
- //# sourceMappingURL=index.d.ts.map
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import { DropdownButtonProps } from '../Dropdown/Button';
3
- export interface CollapsibleListProps extends React.HTMLAttributes<HTMLUListElement>, Pick<DropdownButtonProps, 'buttonIcon'> {
4
- /**
5
- * The accessibility label for the dropdown menu button.
6
- *
7
- * Suggested value: "more links"
8
- */
9
- buttonAriaLabel: string;
10
- /**
11
- * The max-width before the list should collapse and render a dropdown menu
12
- */
13
- maxWidth: number;
14
- }
15
- export declare const CollapsibleList: ({ children, buttonIcon, buttonAriaLabel, maxWidth, ...props }: CollapsibleListProps) => JSX.Element;
16
- //# sourceMappingURL=Collapsible.d.ts.map
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- export interface CurrentItemProps extends React.HTMLAttributes<HTMLLIElement> {
3
- /**
4
- * The max-width of the text
5
- *
6
- * @default 350px
7
- */
8
- maxWidth?: number;
9
- }
10
- export declare const CurrentItem: ({ children, maxWidth, ...elemProps }: CurrentItemProps) => JSX.Element;
11
- //# sourceMappingURL=CurrentItem.d.ts.map
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- export interface BreadcrumbLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
3
- /**
4
- * The href url of the anchor tag
5
- */
6
- href: string;
7
- /**
8
- * The max-width of the link text
9
- *
10
- * @default 350px
11
- */
12
- maxWidth?: number;
13
- /**
14
- * A handler function for overriding hard-redirects with links
15
- */
16
- onAction?: (href: string) => void;
17
- }
18
- export declare const BreadcrumbLink: ({ maxWidth, onAction, onClick, href, children, ...props }: BreadcrumbLinkProps) => JSX.Element;
19
- //# sourceMappingURL=Link.d.ts.map
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export declare type ListItemProps = React.HTMLAttributes<HTMLLIElement>;
3
- export declare const BreadcrumbsListItem: ({ children, ...props }: ListItemProps) => JSX.Element;
4
- //# sourceMappingURL=ListItem.d.ts.map
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import { Breadcrumb } from '../types';
3
- export declare const useCollapse: <E extends HTMLElement>(listEl: React.RefObject<E>, maxWidth?: number) => {
4
- shouldCollapseList: boolean;
5
- };
6
- export declare const useBuildCollapsedList: <E extends HTMLElement>(listEl: React.RefObject<E>, children: React.ReactNode, maxWidth: number) => {
7
- collapsedItems: Breadcrumb[];
8
- collapsedItemIndices: number[];
9
- };
10
- export declare const useTruncateTooltip: (ref?: React.RefObject<HTMLSpanElement> | undefined) => {
11
- isTooltipOpen: boolean;
12
- openTooltip: (event: React.MouseEvent | React.FocusEvent) => void;
13
- closeTooltip: () => void;
14
- shouldShowTooltip: boolean;
15
- tooltipProps: {
16
- role: string;
17
- };
18
- };
19
- //# sourceMappingURL=hooks.d.ts.map
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export declare type BreadcrumbsListProps = React.HTMLAttributes<HTMLUListElement>;
3
- export declare const BreadcrumbsList: import("@workday/canvas-kit-react/common").ElementComponent<"ul", BreadcrumbsListProps>;
4
- //# sourceMappingURL=index.d.ts.map
@@ -1,3 +0,0 @@
1
- import { CSSObject } from '@emotion/styled';
2
- export declare const truncateStyles: (maxWidth?: number) => CSSObject;
3
- //# sourceMappingURL=styles.d.ts.map
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- export interface BreadcrumbsNavProps extends React.HTMLAttributes<HTMLElement> {
3
- /**
4
- * The accessibility label to indicate the type of navigation.
5
- *
6
- * Suggested value: "breadcrumb"
7
- */
8
- 'aria-label': string;
9
- }
10
- export declare const BreadcrumbsNav: ({ "aria-label": ariaLabel, ...elemProps }: BreadcrumbsNavProps) => JSX.Element;
11
- //# sourceMappingURL=Nav.d.ts.map
@@ -1,5 +0,0 @@
1
- import { PartialEmotionCanvasTheme } from '@workday/canvas-kit-react/common';
2
- export declare const useRTL: (partialTheme?: PartialEmotionCanvasTheme | undefined) => {
3
- shouldUseRTL: boolean;
4
- };
5
- //# sourceMappingURL=hooks.d.ts.map
@@ -1,9 +0,0 @@
1
- export declare const Breadcrumbs: {
2
- Nav: ({ "aria-label": ariaLabel, ...elemProps }: import("./Nav").BreadcrumbsNavProps) => JSX.Element;
3
- CollapsibleList: ({ children, buttonIcon, buttonAriaLabel, maxWidth, ...props }: import("./List/Collapsible").CollapsibleListProps) => JSX.Element;
4
- List: import("@workday/canvas-kit-react/common").ElementComponent<"ul", import("./List").BreadcrumbsListProps>;
5
- ListItem: ({ children, ...props }: import("./List/ListItem").ListItemProps) => JSX.Element;
6
- Link: ({ maxWidth, onAction, onClick, href, children, ...props }: import("./List/Link").BreadcrumbLinkProps) => JSX.Element;
7
- CurrentItem: ({ children, maxWidth, ...elemProps }: import("./List/CurrentItem").CurrentItemProps) => JSX.Element;
8
- };
9
- //# sourceMappingURL=index.d.ts.map
@@ -1,8 +0,0 @@
1
- export interface Breadcrumb extends React.HTMLAttributes<HTMLAnchorElement> {
2
- index: number;
3
- link: string;
4
- text: string;
5
- width: number;
6
- onAction?: (href: string) => void;
7
- }
8
- //# sourceMappingURL=types.d.ts.map
@@ -1,2 +0,0 @@
1
- export { default, default as ColorPicker, ColorPickerProps } from './lib/ColorPicker';
2
- //# sourceMappingURL=index.d.ts.map