@workday/canvas-kit-preview-react 6.9.0-next.0 → 6.9.0-next.4

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 (466) hide show
  1. package/breadcrumbs/lib/Breadcrumbs/Dropdown/Button.tsx +52 -26
  2. package/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.tsx +5 -6
  3. package/breadcrumbs/lib/Breadcrumbs/List/CurrentItem.tsx +1 -0
  4. package/breadcrumbs/lib/Breadcrumbs/List/ListItem.tsx +7 -9
  5. package/breadcrumbs/lib/Breadcrumbs/List/index.tsx +22 -20
  6. package/breadcrumbs/lib/Breadcrumbs/List/styles.ts +1 -1
  7. package/color-picker/lib/ColorPicker.tsx +3 -3
  8. package/dist/commonjs/breadcrumbs/index.js +13 -5
  9. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Button.d.ts +3 -3
  10. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Button.d.ts.map +1 -1
  11. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Button.js +38 -9
  12. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.d.ts +0 -1
  13. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.d.ts.map +1 -1
  14. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.js +14 -8
  15. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/MenuItemLink.js +20 -7
  16. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.d.ts +1 -2
  17. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.d.ts.map +1 -1
  18. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.js +5 -2
  19. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/index.d.ts.map +1 -1
  20. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/index.js +3 -1
  21. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/Collapsible.d.ts.map +1 -1
  22. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/Collapsible.js +22 -8
  23. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/CurrentItem.d.ts.map +1 -1
  24. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/CurrentItem.js +4 -2
  25. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/Link.d.ts.map +1 -1
  26. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/Link.js +3 -1
  27. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/ListItem.d.ts +0 -1
  28. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/ListItem.d.ts.map +1 -1
  29. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/ListItem.js +10 -8
  30. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/hooks.d.ts +1 -1
  31. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/hooks.d.ts.map +1 -1
  32. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/hooks.js +21 -5
  33. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/index.d.ts +1 -2
  34. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/index.d.ts.map +1 -1
  35. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/index.js +13 -16
  36. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/styles.d.ts +1 -1
  37. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/styles.d.ts.map +1 -1
  38. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/styles.js +3 -1
  39. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Nav.d.ts.map +1 -1
  40. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Nav.js +3 -1
  41. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/hooks.js +3 -1
  42. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/index.d.ts +1 -2
  43. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/index.d.ts.map +1 -1
  44. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/index.js +1 -0
  45. package/dist/commonjs/color-picker/index.js +6 -2
  46. package/dist/commonjs/color-picker/lib/ColorPicker.d.ts.map +1 -1
  47. package/dist/commonjs/color-picker/lib/ColorPicker.js +21 -9
  48. package/dist/commonjs/color-picker/lib/parts/ColorReset.d.ts.map +1 -1
  49. package/dist/commonjs/color-picker/lib/parts/ColorReset.js +17 -3
  50. package/dist/commonjs/color-picker/lib/parts/SwatchBook.d.ts.map +1 -1
  51. package/dist/commonjs/color-picker/lib/parts/SwatchBook.js +17 -3
  52. package/dist/commonjs/form-field/index.js +12 -5
  53. package/dist/commonjs/form-field/lib/FormField.d.ts +47 -13
  54. package/dist/commonjs/form-field/lib/FormField.d.ts.map +1 -1
  55. package/dist/commonjs/form-field/lib/FormField.js +8 -11
  56. package/dist/commonjs/form-field/lib/FormFieldHint.d.ts +8 -12
  57. package/dist/commonjs/form-field/lib/FormFieldHint.d.ts.map +1 -1
  58. package/dist/commonjs/form-field/lib/FormFieldHint.js +18 -16
  59. package/dist/commonjs/form-field/lib/FormFieldInput.d.ts +8 -7
  60. package/dist/commonjs/form-field/lib/FormFieldInput.d.ts.map +1 -1
  61. package/dist/commonjs/form-field/lib/FormFieldInput.js +7 -20
  62. package/dist/commonjs/form-field/lib/FormFieldLabel.d.ts +9 -4
  63. package/dist/commonjs/form-field/lib/FormFieldLabel.d.ts.map +1 -1
  64. package/dist/commonjs/form-field/lib/FormFieldLabel.js +21 -22
  65. package/dist/commonjs/form-field/lib/hooks/index.js +15 -8
  66. package/dist/commonjs/form-field/lib/hooks/useFormFieldHint.d.ts +8 -6
  67. package/dist/commonjs/form-field/lib/hooks/useFormFieldHint.d.ts.map +1 -1
  68. package/dist/commonjs/form-field/lib/hooks/useFormFieldHint.js +3 -1
  69. package/dist/commonjs/form-field/lib/hooks/useFormFieldInput.d.ts +8 -6
  70. package/dist/commonjs/form-field/lib/hooks/useFormFieldInput.d.ts.map +1 -1
  71. package/dist/commonjs/form-field/lib/hooks/useFormFieldInput.js +3 -1
  72. package/dist/commonjs/form-field/lib/hooks/useFormFieldLabel.d.ts +8 -6
  73. package/dist/commonjs/form-field/lib/hooks/useFormFieldLabel.d.ts.map +1 -1
  74. package/dist/commonjs/form-field/lib/hooks/useFormFieldLabel.js +3 -1
  75. package/dist/commonjs/form-field/lib/hooks/useFormFieldModel.d.ts +77 -15
  76. package/dist/commonjs/form-field/lib/hooks/useFormFieldModel.d.ts.map +1 -1
  77. package/dist/commonjs/form-field/lib/hooks/useFormFieldModel.js +42 -14
  78. package/dist/commonjs/form-field/lib/hooks/useFormFieldOrientation.d.ts +5 -4
  79. package/dist/commonjs/form-field/lib/hooks/useFormFieldOrientation.d.ts.map +1 -1
  80. package/dist/commonjs/form-field/lib/hooks/useFormFieldOrientation.js +3 -1
  81. package/dist/commonjs/index.d.ts +1 -0
  82. package/dist/commonjs/index.d.ts.map +1 -1
  83. package/dist/commonjs/index.js +19 -11
  84. package/dist/commonjs/menu/index.js +12 -4
  85. package/dist/commonjs/menu/lib/Menu.d.ts.map +1 -1
  86. package/dist/commonjs/menu/lib/Menu.js +21 -9
  87. package/dist/commonjs/menu/lib/MenuItem.d.ts.map +1 -1
  88. package/dist/commonjs/menu/lib/MenuItem.js +20 -8
  89. package/dist/commonjs/pill/index.d.ts +3 -0
  90. package/dist/commonjs/pill/index.d.ts.map +1 -0
  91. package/dist/commonjs/pill/index.js +14 -0
  92. package/dist/commonjs/pill/lib/Pill.d.ts +65 -0
  93. package/dist/commonjs/pill/lib/Pill.d.ts.map +1 -0
  94. package/dist/commonjs/pill/lib/Pill.js +171 -0
  95. package/dist/commonjs/pill/lib/PillAvatar.d.ts +12 -0
  96. package/dist/commonjs/pill/lib/PillAvatar.d.ts.map +1 -0
  97. package/dist/commonjs/pill/lib/PillAvatar.js +29 -0
  98. package/dist/commonjs/pill/lib/PillCount.d.ts +5 -0
  99. package/dist/commonjs/pill/lib/PillCount.d.ts.map +1 -0
  100. package/dist/commonjs/pill/lib/PillCount.js +45 -0
  101. package/dist/commonjs/pill/lib/PillIcon.d.ts +18 -0
  102. package/dist/commonjs/pill/lib/PillIcon.d.ts.map +1 -0
  103. package/dist/commonjs/pill/lib/PillIcon.js +40 -0
  104. package/dist/commonjs/pill/lib/PillIconButton.d.ts +23 -0
  105. package/dist/commonjs/pill/lib/PillIconButton.d.ts.map +1 -0
  106. package/dist/commonjs/pill/lib/PillIconButton.js +81 -0
  107. package/dist/commonjs/pill/lib/PillLabel.d.ts +14 -0
  108. package/dist/commonjs/pill/lib/PillLabel.d.ts.map +1 -0
  109. package/dist/commonjs/pill/lib/PillLabel.js +47 -0
  110. package/dist/commonjs/pill/lib/usePillModel.d.ts +71 -0
  111. package/dist/commonjs/pill/lib/usePillModel.d.ts.map +1 -0
  112. package/dist/commonjs/pill/lib/usePillModel.js +37 -0
  113. package/dist/commonjs/select/index.d.ts +1 -1
  114. package/dist/commonjs/select/index.d.ts.map +1 -1
  115. package/dist/commonjs/select/index.js +12 -4
  116. package/dist/commonjs/select/lib/Select.d.ts.map +1 -1
  117. package/dist/commonjs/select/lib/Select.js +22 -8
  118. package/dist/commonjs/select/lib/SelectBase.d.ts.map +1 -1
  119. package/dist/commonjs/select/lib/SelectBase.js +20 -7
  120. package/dist/commonjs/select/lib/SelectMenu.d.ts.map +1 -1
  121. package/dist/commonjs/select/lib/SelectMenu.js +20 -7
  122. package/dist/commonjs/select/lib/SelectOption.d.ts.map +1 -1
  123. package/dist/commonjs/select/lib/SelectOption.js +19 -7
  124. package/dist/commonjs/select/lib/scrolling.d.ts.map +1 -1
  125. package/dist/commonjs/select/lib/scrolling.js +3 -1
  126. package/dist/commonjs/select/lib/utils.d.ts.map +1 -1
  127. package/dist/commonjs/select/lib/utils.js +5 -2
  128. package/dist/commonjs/side-panel/index.js +13 -5
  129. package/dist/commonjs/side-panel/lib/SidePanel.d.ts +18 -5
  130. package/dist/commonjs/side-panel/lib/SidePanel.d.ts.map +1 -1
  131. package/dist/commonjs/side-panel/lib/SidePanel.js +32 -16
  132. package/dist/commonjs/side-panel/lib/hooks.d.ts.map +1 -1
  133. package/dist/commonjs/side-panel/lib/hooks.js +17 -3
  134. package/dist/commonjs/text-area/index.js +11 -4
  135. package/dist/commonjs/text-area/lib/TextArea.d.ts +52 -11
  136. package/dist/commonjs/text-area/lib/TextArea.d.ts.map +1 -1
  137. package/dist/commonjs/text-area/lib/TextArea.js +10 -15
  138. package/dist/commonjs/text-area/lib/TextAreaField.d.ts +15 -7
  139. package/dist/commonjs/text-area/lib/TextAreaField.d.ts.map +1 -1
  140. package/dist/commonjs/text-area/lib/TextAreaField.js +19 -18
  141. package/dist/commonjs/text-area/lib/hooks/index.js +11 -4
  142. package/dist/commonjs/text-area/lib/hooks/useTextAreaModel.d.ts +27 -7
  143. package/dist/commonjs/text-area/lib/hooks/useTextAreaModel.d.ts.map +1 -1
  144. package/dist/commonjs/text-area/lib/hooks/useTextAreaModel.js +1 -0
  145. package/dist/commonjs/text-input/index.js +12 -5
  146. package/dist/commonjs/text-input/lib/TextInput.d.ts +59 -11
  147. package/dist/commonjs/text-input/lib/TextInput.d.ts.map +1 -1
  148. package/dist/commonjs/text-input/lib/TextInput.js +10 -15
  149. package/dist/commonjs/text-input/lib/TextInputField.d.ts +15 -7
  150. package/dist/commonjs/text-input/lib/TextInputField.d.ts.map +1 -1
  151. package/dist/commonjs/text-input/lib/TextInputField.js +18 -30
  152. package/dist/commonjs/text-input/lib/hooks/index.js +12 -5
  153. package/dist/commonjs/text-input/lib/hooks/useTextInputField.d.ts +8 -2
  154. package/dist/commonjs/text-input/lib/hooks/useTextInputField.d.ts.map +1 -1
  155. package/dist/commonjs/text-input/lib/hooks/useTextInputField.js +3 -1
  156. package/dist/commonjs/text-input/lib/hooks/useTextInputModel.d.ts +27 -7
  157. package/dist/commonjs/text-input/lib/hooks/useTextInputModel.d.ts.map +1 -1
  158. package/dist/commonjs/text-input/lib/hooks/useTextInputModel.js +1 -0
  159. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Button.d.ts +3 -3
  160. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Button.d.ts.map +1 -1
  161. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Button.js +36 -11
  162. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.d.ts +0 -1
  163. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.d.ts.map +1 -1
  164. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.js +8 -7
  165. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.d.ts +1 -2
  166. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.d.ts.map +1 -1
  167. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/index.d.ts.map +1 -1
  168. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/Collapsible.d.ts.map +1 -1
  169. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/CurrentItem.d.ts.map +1 -1
  170. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/CurrentItem.js +1 -1
  171. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/Link.d.ts.map +1 -1
  172. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/ListItem.d.ts +0 -1
  173. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/ListItem.d.ts.map +1 -1
  174. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/ListItem.js +4 -7
  175. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/hooks.d.ts +1 -1
  176. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/hooks.d.ts.map +1 -1
  177. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/index.d.ts +1 -2
  178. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/index.d.ts.map +1 -1
  179. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/index.js +9 -16
  180. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/styles.d.ts +1 -1
  181. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/styles.d.ts.map +1 -1
  182. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Nav.d.ts.map +1 -1
  183. package/dist/es6/breadcrumbs/lib/Breadcrumbs/index.d.ts +1 -2
  184. package/dist/es6/breadcrumbs/lib/Breadcrumbs/index.d.ts.map +1 -1
  185. package/dist/es6/breadcrumbs/lib/Breadcrumbs/types.js +1 -0
  186. package/dist/es6/color-picker/lib/ColorPicker.d.ts.map +1 -1
  187. package/dist/es6/color-picker/lib/ColorPicker.js +3 -3
  188. package/dist/es6/color-picker/lib/parts/ColorReset.d.ts.map +1 -1
  189. package/dist/es6/color-picker/lib/parts/SwatchBook.d.ts.map +1 -1
  190. package/dist/es6/form-field/lib/FormField.d.ts +47 -13
  191. package/dist/es6/form-field/lib/FormField.d.ts.map +1 -1
  192. package/dist/es6/form-field/lib/FormField.js +9 -13
  193. package/dist/es6/form-field/lib/FormFieldHint.d.ts +8 -12
  194. package/dist/es6/form-field/lib/FormFieldHint.d.ts.map +1 -1
  195. package/dist/es6/form-field/lib/FormFieldHint.js +17 -19
  196. package/dist/es6/form-field/lib/FormFieldInput.d.ts +8 -7
  197. package/dist/es6/form-field/lib/FormFieldInput.d.ts.map +1 -1
  198. package/dist/es6/form-field/lib/FormFieldInput.js +8 -22
  199. package/dist/es6/form-field/lib/FormFieldLabel.d.ts +9 -4
  200. package/dist/es6/form-field/lib/FormFieldLabel.d.ts.map +1 -1
  201. package/dist/es6/form-field/lib/FormFieldLabel.js +19 -24
  202. package/dist/es6/form-field/lib/hooks/useFormFieldHint.d.ts +8 -6
  203. package/dist/es6/form-field/lib/hooks/useFormFieldHint.d.ts.map +1 -1
  204. package/dist/es6/form-field/lib/hooks/useFormFieldHint.js +3 -2
  205. package/dist/es6/form-field/lib/hooks/useFormFieldInput.d.ts +8 -6
  206. package/dist/es6/form-field/lib/hooks/useFormFieldInput.d.ts.map +1 -1
  207. package/dist/es6/form-field/lib/hooks/useFormFieldInput.js +3 -2
  208. package/dist/es6/form-field/lib/hooks/useFormFieldLabel.d.ts +8 -6
  209. package/dist/es6/form-field/lib/hooks/useFormFieldLabel.d.ts.map +1 -1
  210. package/dist/es6/form-field/lib/hooks/useFormFieldLabel.js +3 -2
  211. package/dist/es6/form-field/lib/hooks/useFormFieldModel.d.ts +77 -15
  212. package/dist/es6/form-field/lib/hooks/useFormFieldModel.d.ts.map +1 -1
  213. package/dist/es6/form-field/lib/hooks/useFormFieldModel.js +42 -15
  214. package/dist/es6/form-field/lib/hooks/useFormFieldOrientation.d.ts +5 -4
  215. package/dist/es6/form-field/lib/hooks/useFormFieldOrientation.d.ts.map +1 -1
  216. package/dist/es6/index.d.ts +1 -0
  217. package/dist/es6/index.d.ts.map +1 -1
  218. package/dist/es6/index.js +1 -0
  219. package/dist/es6/menu/lib/Menu.d.ts.map +1 -1
  220. package/dist/es6/menu/lib/Menu.js +2 -2
  221. package/dist/es6/menu/lib/MenuItem.d.ts.map +1 -1
  222. package/dist/es6/menu/lib/MenuItem.js +1 -1
  223. package/dist/es6/pill/index.d.ts +3 -0
  224. package/dist/es6/pill/index.d.ts.map +1 -0
  225. package/dist/es6/pill/index.js +2 -0
  226. package/dist/es6/pill/lib/Pill.d.ts +65 -0
  227. package/dist/es6/pill/lib/Pill.d.ts.map +1 -0
  228. package/dist/es6/pill/lib/Pill.js +165 -0
  229. package/dist/es6/pill/lib/PillAvatar.d.ts +13 -0
  230. package/dist/es6/pill/lib/PillAvatar.d.ts.map +1 -0
  231. package/dist/es6/pill/lib/PillAvatar.js +23 -0
  232. package/dist/es6/pill/lib/PillCount.d.ts +5 -0
  233. package/dist/es6/pill/lib/PillCount.d.ts.map +1 -0
  234. package/dist/es6/pill/lib/PillCount.js +39 -0
  235. package/dist/es6/pill/lib/PillIcon.d.ts +19 -0
  236. package/dist/es6/pill/lib/PillIcon.d.ts.map +1 -0
  237. package/dist/es6/pill/lib/PillIcon.js +34 -0
  238. package/dist/es6/pill/lib/PillIconButton.d.ts +24 -0
  239. package/dist/es6/pill/lib/PillIconButton.d.ts.map +1 -0
  240. package/dist/es6/pill/lib/PillIconButton.js +75 -0
  241. package/dist/es6/pill/lib/PillLabel.d.ts +15 -0
  242. package/dist/es6/pill/lib/PillLabel.d.ts.map +1 -0
  243. package/dist/es6/pill/lib/PillLabel.js +41 -0
  244. package/dist/es6/pill/lib/usePillModel.d.ts +71 -0
  245. package/dist/es6/pill/lib/usePillModel.d.ts.map +1 -0
  246. package/dist/es6/pill/lib/usePillModel.js +34 -0
  247. package/dist/es6/select/index.d.ts +1 -1
  248. package/dist/es6/select/index.d.ts.map +1 -1
  249. package/dist/es6/select/lib/Select.d.ts.map +1 -1
  250. package/dist/es6/select/lib/Select.js +2 -1
  251. package/dist/es6/select/lib/SelectBase.d.ts.map +1 -1
  252. package/dist/es6/select/lib/SelectMenu.d.ts.map +1 -1
  253. package/dist/es6/select/lib/SelectOption.d.ts.map +1 -1
  254. package/dist/es6/select/lib/scrolling.d.ts.map +1 -1
  255. package/dist/es6/select/lib/types.js +1 -0
  256. package/dist/es6/select/lib/utils.d.ts.map +1 -1
  257. package/dist/es6/side-panel/lib/SidePanel.d.ts +18 -5
  258. package/dist/es6/side-panel/lib/SidePanel.d.ts.map +1 -1
  259. package/dist/es6/side-panel/lib/SidePanel.js +9 -6
  260. package/dist/es6/side-panel/lib/hooks.d.ts.map +1 -1
  261. package/dist/es6/text-area/lib/TextArea.d.ts +52 -11
  262. package/dist/es6/text-area/lib/TextArea.d.ts.map +1 -1
  263. package/dist/es6/text-area/lib/TextArea.js +11 -17
  264. package/dist/es6/text-area/lib/TextAreaField.d.ts +15 -7
  265. package/dist/es6/text-area/lib/TextAreaField.d.ts.map +1 -1
  266. package/dist/es6/text-area/lib/TextAreaField.js +19 -19
  267. package/dist/es6/text-area/lib/hooks/useTextAreaModel.d.ts +27 -7
  268. package/dist/es6/text-area/lib/hooks/useTextAreaModel.d.ts.map +1 -1
  269. package/dist/es6/text-input/lib/TextInput.d.ts +59 -11
  270. package/dist/es6/text-input/lib/TextInput.d.ts.map +1 -1
  271. package/dist/es6/text-input/lib/TextInput.js +11 -17
  272. package/dist/es6/text-input/lib/TextInputField.d.ts +15 -7
  273. package/dist/es6/text-input/lib/TextInputField.d.ts.map +1 -1
  274. package/dist/es6/text-input/lib/TextInputField.js +19 -32
  275. package/dist/es6/text-input/lib/hooks/useTextInputField.d.ts +8 -2
  276. package/dist/es6/text-input/lib/hooks/useTextInputField.d.ts.map +1 -1
  277. package/dist/es6/text-input/lib/hooks/useTextInputField.js +3 -2
  278. package/dist/es6/text-input/lib/hooks/useTextInputModel.d.ts +27 -7
  279. package/dist/es6/text-input/lib/hooks/useTextInputModel.d.ts.map +1 -1
  280. package/form-field/lib/FormField.tsx +14 -29
  281. package/form-field/lib/FormFieldHint.tsx +28 -38
  282. package/form-field/lib/FormFieldInput.tsx +8 -15
  283. package/form-field/lib/FormFieldLabel.tsx +30 -39
  284. package/form-field/lib/hooks/useFormFieldHint.tsx +3 -3
  285. package/form-field/lib/hooks/useFormFieldInput.tsx +3 -3
  286. package/form-field/lib/hooks/useFormFieldLabel.tsx +3 -3
  287. package/form-field/lib/hooks/useFormFieldModel.tsx +32 -53
  288. package/form-field/lib/hooks/useFormFieldOrientation.tsx +1 -1
  289. package/index.ts +1 -0
  290. package/menu/lib/Menu.tsx +1 -1
  291. package/package.json +14 -22
  292. package/pill/LICENSE +52 -0
  293. package/pill/README.md +5 -0
  294. package/pill/index.ts +2 -0
  295. package/pill/lib/Pill.tsx +226 -0
  296. package/pill/lib/PillAvatar.tsx +27 -0
  297. package/pill/lib/PillCount.tsx +39 -0
  298. package/pill/lib/PillIcon.tsx +34 -0
  299. package/pill/lib/PillIconButton.tsx +100 -0
  300. package/pill/lib/PillLabel.tsx +36 -0
  301. package/pill/lib/usePillModel.tsx +28 -0
  302. package/pill/package.json +5 -0
  303. package/select/index.ts +6 -1
  304. package/select/lib/Select.tsx +1 -0
  305. package/select/lib/SelectMenu.tsx +1 -1
  306. package/select/lib/SelectOption.tsx +1 -1
  307. package/side-panel/lib/SidePanel.tsx +28 -9
  308. package/text-area/lib/TextArea.tsx +16 -30
  309. package/text-area/lib/TextAreaField.tsx +32 -45
  310. package/text-area/lib/hooks/useTextAreaModel.ts +1 -3
  311. package/text-input/lib/TextInput.tsx +16 -30
  312. package/text-input/lib/TextInputField.tsx +33 -44
  313. package/text-input/lib/hooks/useTextInputField.tsx +3 -2
  314. package/text-input/lib/hooks/useTextInputModel.ts +1 -3
  315. package/dist/commonjs/text-area/lib/TextAreaHint.d.ts +0 -5
  316. package/dist/commonjs/text-area/lib/TextAreaHint.d.ts.map +0 -1
  317. package/dist/commonjs/text-area/lib/TextAreaHint.js +0 -4
  318. package/dist/commonjs/text-area/lib/TextAreaLabel.d.ts +0 -5
  319. package/dist/commonjs/text-area/lib/TextAreaLabel.d.ts.map +0 -1
  320. package/dist/commonjs/text-area/lib/TextAreaLabel.js +0 -4
  321. package/dist/commonjs/text-input/lib/TextInputHint.d.ts +0 -5
  322. package/dist/commonjs/text-input/lib/TextInputHint.d.ts.map +0 -1
  323. package/dist/commonjs/text-input/lib/TextInputHint.js +0 -4
  324. package/dist/commonjs/text-input/lib/TextInputLabel.d.ts +0 -5
  325. package/dist/commonjs/text-input/lib/TextInputLabel.d.ts.map +0 -1
  326. package/dist/commonjs/text-input/lib/TextInputLabel.js +0 -4
  327. package/dist/es6/text-area/lib/TextAreaHint.d.ts +0 -5
  328. package/dist/es6/text-area/lib/TextAreaHint.d.ts.map +0 -1
  329. package/dist/es6/text-area/lib/TextAreaHint.js +0 -2
  330. package/dist/es6/text-area/lib/TextAreaLabel.d.ts +0 -5
  331. package/dist/es6/text-area/lib/TextAreaLabel.d.ts.map +0 -1
  332. package/dist/es6/text-area/lib/TextAreaLabel.js +0 -2
  333. package/dist/es6/text-input/lib/TextInputHint.d.ts +0 -5
  334. package/dist/es6/text-input/lib/TextInputHint.d.ts.map +0 -1
  335. package/dist/es6/text-input/lib/TextInputHint.js +0 -2
  336. package/dist/es6/text-input/lib/TextInputLabel.d.ts +0 -5
  337. package/dist/es6/text-input/lib/TextInputLabel.d.ts.map +0 -1
  338. package/dist/es6/text-input/lib/TextInputLabel.js +0 -2
  339. package/text-area/lib/TextAreaHint.tsx +0 -6
  340. package/text-area/lib/TextAreaLabel.tsx +0 -6
  341. package/text-input/lib/TextInputHint.tsx +0 -6
  342. package/text-input/lib/TextInputLabel.tsx +0 -6
  343. package/ts3.5/dist/commonjs/breadcrumbs/index.d.ts +0 -5
  344. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Button.d.ts +0 -20
  345. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.d.ts +0 -39
  346. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/MenuItemLink.d.ts +0 -14
  347. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.d.ts +0 -14
  348. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/index.d.ts +0 -8
  349. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/Collapsible.d.ts +0 -16
  350. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/CurrentItem.d.ts +0 -11
  351. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/Link.d.ts +0 -19
  352. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/ListItem.d.ts +0 -5
  353. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/hooks.d.ts +0 -19
  354. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/index.d.ts +0 -5
  355. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/styles.d.ts +0 -3
  356. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Nav.d.ts +0 -11
  357. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/hooks.d.ts +0 -5
  358. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/index.d.ts +0 -10
  359. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/types.d.ts +0 -8
  360. package/ts3.5/dist/commonjs/color-picker/index.d.ts +0 -2
  361. package/ts3.5/dist/commonjs/color-picker/lib/ColorPicker.d.ts +0 -55
  362. package/ts3.5/dist/commonjs/color-picker/lib/parts/ColorReset.d.ts +0 -7
  363. package/ts3.5/dist/commonjs/color-picker/lib/parts/SwatchBook.d.ts +0 -7
  364. package/ts3.5/dist/commonjs/form-field/index.d.ts +0 -3
  365. package/ts3.5/dist/commonjs/form-field/lib/FormField.d.ts +0 -31
  366. package/ts3.5/dist/commonjs/form-field/lib/FormFieldHint.d.ts +0 -13
  367. package/ts3.5/dist/commonjs/form-field/lib/FormFieldInput.d.ts +0 -8
  368. package/ts3.5/dist/commonjs/form-field/lib/FormFieldLabel.d.ts +0 -18
  369. package/ts3.5/dist/commonjs/form-field/lib/hooks/index.d.ts +0 -6
  370. package/ts3.5/dist/commonjs/form-field/lib/hooks/useFormFieldHint.d.ts +0 -15
  371. package/ts3.5/dist/commonjs/form-field/lib/hooks/useFormFieldInput.d.ts +0 -18
  372. package/ts3.5/dist/commonjs/form-field/lib/hooks/useFormFieldLabel.d.ts +0 -15
  373. package/ts3.5/dist/commonjs/form-field/lib/hooks/useFormFieldModel.d.ts +0 -36
  374. package/ts3.5/dist/commonjs/form-field/lib/hooks/useFormFieldOrientation.d.ts +0 -9
  375. package/ts3.5/dist/commonjs/index.d.ts +0 -9
  376. package/ts3.5/dist/commonjs/menu/index.d.ts +0 -6
  377. package/ts3.5/dist/commonjs/menu/lib/Menu.d.ts +0 -61
  378. package/ts3.5/dist/commonjs/menu/lib/MenuItem.d.ts +0 -53
  379. package/ts3.5/dist/commonjs/select/index.d.ts +0 -6
  380. package/ts3.5/dist/commonjs/select/lib/Select.d.ts +0 -25
  381. package/ts3.5/dist/commonjs/select/lib/SelectBase.d.ts +0 -142
  382. package/ts3.5/dist/commonjs/select/lib/SelectMenu.d.ts +0 -42
  383. package/ts3.5/dist/commonjs/select/lib/SelectOption.d.ts +0 -33
  384. package/ts3.5/dist/commonjs/select/lib/scrolling.d.ts +0 -2
  385. package/ts3.5/dist/commonjs/select/lib/types.d.ts +0 -33
  386. package/ts3.5/dist/commonjs/select/lib/utils.d.ts +0 -4
  387. package/ts3.5/dist/commonjs/side-panel/index.d.ts +0 -6
  388. package/ts3.5/dist/commonjs/side-panel/lib/SidePanel.d.ts +0 -73
  389. package/ts3.5/dist/commonjs/side-panel/lib/hooks.d.ts +0 -80
  390. package/ts3.5/dist/commonjs/text-area/index.d.ts +0 -2
  391. package/ts3.5/dist/commonjs/text-area/lib/TextArea.d.ts +0 -22
  392. package/ts3.5/dist/commonjs/text-area/lib/TextAreaField.d.ts +0 -8
  393. package/ts3.5/dist/commonjs/text-area/lib/TextAreaHint.d.ts +0 -5
  394. package/ts3.5/dist/commonjs/text-area/lib/TextAreaLabel.d.ts +0 -5
  395. package/ts3.5/dist/commonjs/text-area/lib/hooks/index.d.ts +0 -2
  396. package/ts3.5/dist/commonjs/text-area/lib/hooks/useTextAreaModel.d.ts +0 -8
  397. package/ts3.5/dist/commonjs/text-input/index.d.ts +0 -3
  398. package/ts3.5/dist/commonjs/text-input/lib/TextInput.d.ts +0 -22
  399. package/ts3.5/dist/commonjs/text-input/lib/TextInputField.d.ts +0 -8
  400. package/ts3.5/dist/commonjs/text-input/lib/TextInputHint.d.ts +0 -5
  401. package/ts3.5/dist/commonjs/text-input/lib/TextInputLabel.d.ts +0 -5
  402. package/ts3.5/dist/commonjs/text-input/lib/hooks/index.d.ts +0 -3
  403. package/ts3.5/dist/commonjs/text-input/lib/hooks/useTextInputField.d.ts +0 -10
  404. package/ts3.5/dist/commonjs/text-input/lib/hooks/useTextInputModel.d.ts +0 -8
  405. package/ts3.5/dist/es6/breadcrumbs/index.d.ts +0 -5
  406. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Button.d.ts +0 -20
  407. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.d.ts +0 -39
  408. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/MenuItemLink.d.ts +0 -14
  409. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.d.ts +0 -14
  410. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/index.d.ts +0 -8
  411. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/List/Collapsible.d.ts +0 -16
  412. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/List/CurrentItem.d.ts +0 -11
  413. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/List/Link.d.ts +0 -19
  414. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/List/ListItem.d.ts +0 -5
  415. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/List/hooks.d.ts +0 -19
  416. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/List/index.d.ts +0 -5
  417. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/List/styles.d.ts +0 -3
  418. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/Nav.d.ts +0 -11
  419. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/hooks.d.ts +0 -5
  420. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/index.d.ts +0 -10
  421. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/types.d.ts +0 -8
  422. package/ts3.5/dist/es6/color-picker/index.d.ts +0 -2
  423. package/ts3.5/dist/es6/color-picker/lib/ColorPicker.d.ts +0 -55
  424. package/ts3.5/dist/es6/color-picker/lib/parts/ColorReset.d.ts +0 -7
  425. package/ts3.5/dist/es6/color-picker/lib/parts/SwatchBook.d.ts +0 -7
  426. package/ts3.5/dist/es6/form-field/index.d.ts +0 -3
  427. package/ts3.5/dist/es6/form-field/lib/FormField.d.ts +0 -31
  428. package/ts3.5/dist/es6/form-field/lib/FormFieldHint.d.ts +0 -13
  429. package/ts3.5/dist/es6/form-field/lib/FormFieldInput.d.ts +0 -8
  430. package/ts3.5/dist/es6/form-field/lib/FormFieldLabel.d.ts +0 -18
  431. package/ts3.5/dist/es6/form-field/lib/hooks/index.d.ts +0 -6
  432. package/ts3.5/dist/es6/form-field/lib/hooks/useFormFieldHint.d.ts +0 -15
  433. package/ts3.5/dist/es6/form-field/lib/hooks/useFormFieldInput.d.ts +0 -18
  434. package/ts3.5/dist/es6/form-field/lib/hooks/useFormFieldLabel.d.ts +0 -15
  435. package/ts3.5/dist/es6/form-field/lib/hooks/useFormFieldModel.d.ts +0 -36
  436. package/ts3.5/dist/es6/form-field/lib/hooks/useFormFieldOrientation.d.ts +0 -9
  437. package/ts3.5/dist/es6/index.d.ts +0 -9
  438. package/ts3.5/dist/es6/menu/index.d.ts +0 -6
  439. package/ts3.5/dist/es6/menu/lib/Menu.d.ts +0 -61
  440. package/ts3.5/dist/es6/menu/lib/MenuItem.d.ts +0 -53
  441. package/ts3.5/dist/es6/select/index.d.ts +0 -6
  442. package/ts3.5/dist/es6/select/lib/Select.d.ts +0 -25
  443. package/ts3.5/dist/es6/select/lib/SelectBase.d.ts +0 -142
  444. package/ts3.5/dist/es6/select/lib/SelectMenu.d.ts +0 -42
  445. package/ts3.5/dist/es6/select/lib/SelectOption.d.ts +0 -33
  446. package/ts3.5/dist/es6/select/lib/scrolling.d.ts +0 -2
  447. package/ts3.5/dist/es6/select/lib/types.d.ts +0 -33
  448. package/ts3.5/dist/es6/select/lib/utils.d.ts +0 -4
  449. package/ts3.5/dist/es6/side-panel/index.d.ts +0 -6
  450. package/ts3.5/dist/es6/side-panel/lib/SidePanel.d.ts +0 -73
  451. package/ts3.5/dist/es6/side-panel/lib/hooks.d.ts +0 -80
  452. package/ts3.5/dist/es6/text-area/index.d.ts +0 -2
  453. package/ts3.5/dist/es6/text-area/lib/TextArea.d.ts +0 -22
  454. package/ts3.5/dist/es6/text-area/lib/TextAreaField.d.ts +0 -8
  455. package/ts3.5/dist/es6/text-area/lib/TextAreaHint.d.ts +0 -5
  456. package/ts3.5/dist/es6/text-area/lib/TextAreaLabel.d.ts +0 -5
  457. package/ts3.5/dist/es6/text-area/lib/hooks/index.d.ts +0 -2
  458. package/ts3.5/dist/es6/text-area/lib/hooks/useTextAreaModel.d.ts +0 -8
  459. package/ts3.5/dist/es6/text-input/index.d.ts +0 -3
  460. package/ts3.5/dist/es6/text-input/lib/TextInput.d.ts +0 -22
  461. package/ts3.5/dist/es6/text-input/lib/TextInputField.d.ts +0 -8
  462. package/ts3.5/dist/es6/text-input/lib/TextInputHint.d.ts +0 -5
  463. package/ts3.5/dist/es6/text-input/lib/TextInputLabel.d.ts +0 -5
  464. package/ts3.5/dist/es6/text-input/lib/hooks/index.d.ts +0 -3
  465. package/ts3.5/dist/es6/text-input/lib/hooks/useTextInputField.d.ts +0 -10
  466. package/ts3.5/dist/es6/text-input/lib/hooks/useTextInputModel.d.ts +0 -8
@@ -1,73 +0,0 @@
1
- /** @jsx jsx */
2
- import * as React from 'react';
3
- import { IconButtonProps } from '@workday/canvas-kit-react/button';
4
- export declare type SidePanelVariant = 'standard' | 'alternate';
5
- export declare type SidePanelTransitionStates = 'collapsed' | 'collapsing' | 'expanded' | 'expanding';
6
- export interface SidePanelProps extends React.HTMLAttributes<HTMLDivElement> {
7
- /**
8
- * The element the side panel will render as (e.g. 'div').
9
- *
10
- * @default 'section'
11
- */
12
- as?: React.ElementType;
13
- /**
14
- * The width of the component (in `px` if it's a `number`) when it is collapsed.
15
- *
16
- * @default 64
17
- */
18
- collapsedWidth?: number | string;
19
- /**
20
- * If true, sets the expanded state of the side panel
21
- * @default true
22
- */
23
- expanded?: boolean;
24
- /**
25
- * The width of the component (in `px` if it's a `number`) when it is expanded.
26
- *
27
- * @default 320
28
- */
29
- expandedWidth?: number | string;
30
- /**
31
- * Which side the side panel is meant to originate from.
32
- *
33
- * @default 'left'
34
- */
35
- origin?: 'left' | 'right';
36
- /**
37
- * The function called when the side panel's `expanded` state changes. States like `'collapsing'` and `'expanding'` are tracked in another callback: `onStateTransition`
38
- *
39
- * @param boolean
40
- */
41
- onExpandedChange?: (expanded?: boolean) => void;
42
- /**
43
- * The function called when the side panel is transitioning between states.
44
- * Use this to track when the side panel is animating between `'collapsed'`, `'collapsing'`, `'expanded'`, and `'expanding'` states.
45
- * This can be particularly helpful if child components need to react specifically to these states.
46
- *
47
- * @param SidePanelTransitionStates
48
- */
49
- onStateTransition?: (state?: SidePanelTransitionStates) => void;
50
- /**
51
- * The style variant of the side panel. 'standard' is with a `soap100` background, no depth. 'alternate' is a `frenchVanilla100` background with a level 3 depth.
52
- *
53
- * @default 'standard'
54
- */
55
- variant?: SidePanelVariant;
56
- /**
57
- * This is set by the useSidePanel hook and prevents unintended keyframe animations
58
- *
59
- * @param boolean
60
- */
61
- touched: boolean;
62
- }
63
- export declare const SidePanelContext: React.Context<{
64
- state: string;
65
- origin: string;
66
- }>;
67
- declare const SidePanel: {
68
- ({ as, children, collapsedWidth, expanded, expandedWidth, onAnimationEnd, onAnimationStart, onExpandedChange, onStateTransition, origin, variant, touched, ...elemProps }: SidePanelProps): JSX.Element;
69
- ToggleButton: ({ variant, icon, ...rest }: Pick<IconButtonProps, "value" | "children" | "theme" | "size" | "icon" | "shouldMirrorIcon" | "variant" | "onToggleChange" | "toggled"> & React.ButtonHTMLAttributes<HTMLButtonElement>) => JSX.Element;
70
- };
71
- export declare type ToggleButtonProps = Pick<IconButtonProps, Exclude<keyof IconButtonProps, 'aria-label'>>;
72
- export default SidePanel;
73
- //# sourceMappingURL=SidePanel.d.ts.map
@@ -1,80 +0,0 @@
1
- /**
2
- * The optional config options for the `useSidePanel` hook
3
- */
4
- export interface UseSidePanelProps {
5
- /**
6
- * sets the initial expanded state for the side panel
7
- * @default true
8
- */
9
- initialExpanded?: boolean;
10
- /**
11
- * sets the `id` for the panel
12
- * @default unique identifier
13
- */
14
- panelId?: string;
15
- /**
16
- * sets the `id` for the label
17
- * @default unique identifier
18
- */
19
- labelId?: string;
20
- }
21
- /**
22
- * The `panelProps` provided by the `useSidePanel` hook
23
- */
24
- export interface PanelProps {
25
- /**
26
- * the expand / collasped state
27
- */
28
- expanded: boolean;
29
- /**
30
- * the accessible `id`
31
- * - this will either be a unique identifier value or the `panelId` provided in the config
32
- */
33
- id: string;
34
- /**
35
- * the accessible label `id`
36
- * - this will either be a unique identifier value or the `labelId` provided in the config
37
- */
38
- 'aria-labelledby': string;
39
- /**
40
- * an internally-set boolean
41
- * - this prevents unintentional keyframe animations on the initial render
42
- */
43
- touched: boolean;
44
- }
45
- export interface LabelProps {
46
- /**
47
- * the accessible `id`
48
- * - this will either be a unique identifier value or the `labelId` provided in the config
49
- */
50
- id: string;
51
- }
52
- export interface ControlProps {
53
- /**
54
- * the accessible `id` that connects the panel to this control
55
- * - this will either be a unique identifier value or the `panelId` provided in the config
56
- */
57
- 'aria-controls': string;
58
- /**
59
- * the accessible attribute that describes the expanded state of the panel
60
- * - this is set by the `expanded` state in the `useSidePanel` hook
61
- */
62
- 'aria-expanded': boolean;
63
- /**
64
- * the accessible label `id`
65
- * - this will either be a unique identifier value or the `labelId` provided in the config
66
- */
67
- 'aria-labelledby': string;
68
- /**
69
- * the handler function for toggling the expanded / collapsed state
70
- */
71
- onClick: () => void;
72
- }
73
- export declare const useSidePanel: (config?: UseSidePanelProps | undefined) => {
74
- expanded: boolean;
75
- setExpanded: (newExpandedState: boolean) => void;
76
- panelProps: PanelProps;
77
- labelProps: LabelProps;
78
- controlProps: ControlProps;
79
- };
80
- //# sourceMappingURL=hooks.d.ts.map
@@ -1,2 +0,0 @@
1
- export * from './lib/TextArea';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import { ExtractProps } from '@workday/canvas-kit-react/common';
3
- import { FormField } from '@workday/canvas-kit-preview-react/form-field';
4
- import { TextAreaModel } from './hooks';
5
- export declare const TextAreaModelContext: React.Context<import("@workday/canvas-kit-react/common").Model<{
6
- hasError?: boolean | undefined;
7
- id?: string | undefined;
8
- isRequired?: boolean | undefined;
9
- }, {}>>;
10
- export interface TextAreaProps extends ExtractProps<typeof FormField, never> {
11
- model?: TextAreaModel;
12
- /**
13
- * Children of the Text Input. Should contain a `<TextArea.Field>`, a `<TextArea.Label>` and an optional `<TextArea.Hint>`
14
- */
15
- children: React.ReactNode;
16
- }
17
- export declare const TextArea: import("@workday/canvas-kit-react/common").Component<TextAreaProps> & {
18
- Field: import("@workday/canvas-kit-react/common").ElementComponent<"textarea", import("./TextAreaField").TextAreaFieldProps>;
19
- Label: import("@workday/canvas-kit-react/common").ElementComponent<"label", import("../../form-field/lib/FormFieldLabel").FormFieldLabelProps>;
20
- Hint: import("@workday/canvas-kit-react/common").ElementComponent<"p", import("../../form-field/lib/FormFieldHint").FormFieldHintProps>;
21
- };
22
- //# sourceMappingURL=TextArea.d.ts.map
@@ -1,8 +0,0 @@
1
- import { ExtractProps } from '@workday/canvas-kit-react/common';
2
- import { FormField } from '@workday/canvas-kit-preview-react/form-field';
3
- import { TextAreaModel } from './hooks';
4
- export interface TextAreaFieldProps extends ExtractProps<typeof FormField.Input, never> {
5
- model?: TextAreaModel;
6
- }
7
- export declare const TextAreaField: import("@workday/canvas-kit-react/common").ElementComponent<"textarea", TextAreaFieldProps>;
8
- //# sourceMappingURL=TextAreaField.d.ts.map
@@ -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,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,2 +0,0 @@
1
- export * from './useTextAreaModel';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1,8 +0,0 @@
1
- import { FormFieldModel } from '@workday/canvas-kit-preview-react/form-field';
2
- export declare const useTextAreaModel: (config?: import("../../../form-field").FormFieldModelConfig) => import("@workday/canvas-kit-react/common").Model<{
3
- hasError?: boolean | undefined;
4
- id?: string | undefined;
5
- isRequired?: boolean | undefined;
6
- }, {}>;
7
- export declare type TextAreaModel = FormFieldModel;
8
- //# sourceMappingURL=useTextAreaModel.d.ts.map
@@ -1,3 +0,0 @@
1
- export * from './lib/TextInput';
2
- export * from './lib/hooks';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import { ExtractProps } from '@workday/canvas-kit-react/common';
3
- import { FormField } from '@workday/canvas-kit-preview-react/form-field';
4
- import { TextInputModel } from './hooks';
5
- export declare const TextInputModelContext: React.Context<import("@workday/canvas-kit-react/common").Model<{
6
- hasError?: boolean | undefined;
7
- id?: string | undefined;
8
- isRequired?: boolean | undefined;
9
- }, {}>>;
10
- export interface TextInputProps extends ExtractProps<typeof FormField, never> {
11
- model?: TextInputModel;
12
- /**
13
- * Children of the Text Input. Should contain a `<TextInput.Field>`, a `<TextInput.Label>` and an optional `<TextInput.Hint>`
14
- */
15
- children: React.ReactNode;
16
- }
17
- export declare const TextInput: import("@workday/canvas-kit-react/common").Component<TextInputProps> & {
18
- Field: import("@workday/canvas-kit-react/common").ElementComponent<"input", import("./TextInputField").TextInputFieldProps>;
19
- Label: import("@workday/canvas-kit-react/common").ElementComponent<"label", import("../../form-field/lib/FormFieldLabel").FormFieldLabelProps>;
20
- Hint: import("@workday/canvas-kit-react/common").ElementComponent<"p", import("../../form-field/lib/FormFieldHint").FormFieldHintProps>;
21
- };
22
- //# sourceMappingURL=TextInput.d.ts.map
@@ -1,8 +0,0 @@
1
- import { ExtractProps } from '@workday/canvas-kit-react/common';
2
- import { FormField } from '@workday/canvas-kit-preview-react/form-field';
3
- import { TextInputModel } from './hooks';
4
- export interface TextInputFieldProps extends ExtractProps<typeof FormField.Input, never> {
5
- model?: TextInputModel;
6
- }
7
- export declare const TextInputField: import("@workday/canvas-kit-react/common").ElementComponent<"input", TextInputFieldProps>;
8
- //# sourceMappingURL=TextInputField.d.ts.map
@@ -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,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,3 +0,0 @@
1
- export * from './useTextInputField';
2
- export * from './useTextInputModel';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,10 +0,0 @@
1
- /// <reference types="@emotion/core" />
2
- /**
3
- * Adds the necessary props to a `Field` component. Used by the TextInput.Field subcomponent.
4
- */
5
- export declare const useTextInputField: <P extends {}, R>(model: import("@workday/canvas-kit-react/common").Model<any, any>, elemProps?: P | undefined, ref?: ((instance: R | null) => void) | import("react").RefObject<R> | null | undefined) => {
6
- type: string;
7
- } & P & (R extends HTMLOrSVGElement ? {
8
- ref: import("react").Ref<R>;
9
- } : {});
10
- //# sourceMappingURL=useTextInputField.d.ts.map
@@ -1,8 +0,0 @@
1
- import { FormFieldModel } from '@workday/canvas-kit-preview-react/form-field';
2
- export declare const useTextInputModel: (config?: import("../../../form-field").FormFieldModelConfig) => import("@workday/canvas-kit-react/common").Model<{
3
- hasError?: boolean | undefined;
4
- id?: string | undefined;
5
- isRequired?: boolean | undefined;
6
- }, {}>;
7
- export declare type TextInputModel = FormFieldModel;
8
- //# sourceMappingURL=useTextInputModel.d.ts.map
@@ -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 { IconButtonProps } from '@workday/canvas-kit-react/button';
2
- import { CanvasSystemIcon } from '@workday/design-assets-types';
3
- export interface DropdownButtonProps extends IconButtonProps {
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<import("@workday/canvas-kit-react/common").ElementComponent<"button", IconButtonProps>, DropdownButtonProps>;
20
- //# sourceMappingURL=Button.d.ts.map
@@ -1,39 +0,0 @@
1
- /** @jsx jsx */
2
- import React from 'react';
3
- import { Breadcrumb } from '../types';
4
- export interface DropdownMenuProps {
5
- /**
6
- * The active dropdown item in the menu
7
- */
8
- activeDropdownItem: Breadcrumb;
9
- /**
10
- * The HTML `id` of the element that labels the Menu. It should match the id of the menu button.
11
- */
12
- 'aria-labelledby': string;
13
- /**
14
- * An array of Breadcrumb items to render in the dropdown menu
15
- */
16
- dropdownItems: Breadcrumb[];
17
- /**
18
- * A function to set the active dropdown item
19
- */
20
- setActiveDropdownItem: React.Dispatch<React.SetStateAction<Breadcrumb>>;
21
- /**
22
- * The ref of the rendered HTMLAnchorElement
23
- */
24
- activeDropdownItemRef: React.RefObject<HTMLAnchorElement>;
25
- /**
26
- * A function to return the focus to the dropdown button
27
- */
28
- resetFocus: () => void;
29
- /**
30
- * A function to toggle the focus to the previous list item
31
- */
32
- toggleActiveItemUp: () => void;
33
- /**
34
- * A function to toggle the focus to the next list item
35
- */
36
- toggleActiveItemDown: () => void;
37
- }
38
- export declare const DropdownMenu: ({ activeDropdownItemRef, activeDropdownItem, dropdownItems, resetFocus, setActiveDropdownItem, toggleActiveItemDown, toggleActiveItemUp, ...elemProps }: DropdownMenuProps) => JSX.Element;
39
- //# 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,14 +0,0 @@
1
- /// <reference types="@emotion/core" />
2
- import { usePopupPopper } from '@workday/canvas-kit-react/popup';
3
- import { DropdownButtonProps } from './Button';
4
- import { DropdownMenuProps } from './Menu';
5
- import { Breadcrumb } from '../types';
6
- export declare const useFocusActiveItemElement: <E extends HTMLElement>(activeDropdownItemRef: import("react").RefObject<E>) => void;
7
- interface UseDropdown {
8
- dropdownButtonProps: Pick<DropdownButtonProps, Exclude<keyof DropdownButtonProps, 'aria-label'>>;
9
- dropdownMenuProps: DropdownMenuProps;
10
- popperProps: ReturnType<typeof usePopupPopper>;
11
- }
12
- export declare const useDropdown: (activeDropdownItemRef: import("react").RefObject<HTMLAnchorElement>, items: Breadcrumb[], buttonId?: string | undefined) => UseDropdown;
13
- export {};
14
- //# 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,5 +0,0 @@
1
- /** @jsx jsx */
2
- import React from 'react';
3
- export declare type ListItemProps = React.HTMLAttributes<HTMLLIElement>;
4
- export declare const BreadcrumbsListItem: ({ children, ...props }: ListItemProps) => JSX.Element;
5
- //# 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<Element, MouseEvent> | React.FocusEvent<Element, Element>) => void;
13
- closeTooltip: () => void;
14
- shouldShowTooltip: boolean;
15
- tooltipProps: {
16
- role: string;
17
- };
18
- };
19
- //# sourceMappingURL=hooks.d.ts.map
@@ -1,5 +0,0 @@
1
- /** @jsx jsx */
2
- import React from 'react';
3
- export declare type BreadcrumbsListProps = React.HTMLAttributes<HTMLUListElement>;
4
- export declare const BreadcrumbsList: React.ForwardRefExoticComponent<BreadcrumbsListProps & React.RefAttributes<HTMLUListElement>>;
5
- //# sourceMappingURL=index.d.ts.map
@@ -1,3 +0,0 @@
1
- import { CSSObject } from '@emotion/core';
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,10 +0,0 @@
1
- /// <reference types="@emotion/core" />
2
- export declare const Breadcrumbs: {
3
- Nav: ({ "aria-label": ariaLabel, ...elemProps }: import("./Nav").BreadcrumbsNavProps) => JSX.Element;
4
- CollapsibleList: ({ children, buttonIcon, buttonAriaLabel, maxWidth, ...props }: import("./List/Collapsible").CollapsibleListProps) => JSX.Element;
5
- List: import("react").ForwardRefExoticComponent<import("./List").BreadcrumbsListProps & import("react").RefAttributes<HTMLUListElement>>;
6
- ListItem: ({ children, ...props }: import("./List/ListItem").ListItemProps) => JSX.Element;
7
- Link: ({ maxWidth, onAction, onClick, href, children, ...props }: import("./List/Link").BreadcrumbLinkProps) => JSX.Element;
8
- CurrentItem: ({ children, maxWidth, ...elemProps }: import("./List/CurrentItem").CurrentItemProps) => JSX.Element;
9
- };
10
- //# 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
@@ -1,55 +0,0 @@
1
- import * as React from 'react';
2
- export interface ColorPickerProps extends React.HTMLAttributes<HTMLDivElement> {
3
- /**
4
- * The function called when the ColorPicker state changes.
5
- */
6
- onColorChange: (color: string) => void;
7
- /**
8
- * The value of the ColorPicker.
9
- */
10
- value?: string;
11
- /**
12
- * The array of colors to be rendered in the swatchbook.
13
- */
14
- colorSet?: string[];
15
- /**
16
- * If true, render an input for entering a custom hex color.
17
- * @default false
18
- */
19
- showCustomHexInput?: boolean;
20
- /**
21
- * The label text of the custom hex input.
22
- * @default 'Custom Hex Color'
23
- */
24
- customHexInputLabel?: string;
25
- /**
26
- * The label of the custom hex color submit icon button.
27
- * @default 'Submit'
28
- */
29
- submitLabel?: string;
30
- /**
31
- * The function called when the submit icon is clicked.
32
- */
33
- onSubmitClick?: (event: React.FormEvent) => void;
34
- /**
35
- * The function called when the color rest button is selected.
36
- * It is required to be set for the reset button to render.
37
- */
38
- onColorReset?: (color: string) => void;
39
- /**
40
- * The color that the reset button resets to.
41
- * It is required to be set for the reset button to render.
42
- */
43
- resetColor?: string;
44
- /**
45
- * The label text of the reset button.
46
- * @default 'Reset'
47
- */
48
- resetLabel?: string;
49
- }
50
- declare const ColorPicker: {
51
- ({ colorSet, customHexInputLabel, submitLabel, onColorChange, onColorReset, onSubmitClick, resetLabel, resetColor, value, showCustomHexInput, ...elemProps }: ColorPickerProps): JSX.Element;
52
- defaultColorSet: string[];
53
- };
54
- export default ColorPicker;
55
- //# sourceMappingURL=ColorPicker.d.ts.map
@@ -1,7 +0,0 @@
1
- export interface ResetButtonProps {
2
- label: string;
3
- resetColor: string;
4
- onClick: (color: string) => void;
5
- }
6
- export declare const ResetButton: ({ onClick, resetColor, label }: ResetButtonProps) => JSX.Element;
7
- //# sourceMappingURL=ColorReset.d.ts.map
@@ -1,7 +0,0 @@
1
- export interface SwatchBookProps {
2
- colors: string[];
3
- value?: string;
4
- onSelect: (color: string) => void;
5
- }
6
- export declare const SwatchBook: ({ colors, value, onSelect }: SwatchBookProps) => JSX.Element;
7
- //# sourceMappingURL=SwatchBook.d.ts.map
@@ -1,3 +0,0 @@
1
- export * from './lib/FormField';
2
- export * from './lib/hooks/';
3
- //# sourceMappingURL=index.d.ts.map