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

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 (474) 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/breadcrumbs/package.json +2 -1
  8. package/color-picker/lib/ColorPicker.tsx +3 -3
  9. package/color-picker/package.json +2 -1
  10. package/dist/commonjs/breadcrumbs/index.js +13 -5
  11. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Button.d.ts +3 -3
  12. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Button.d.ts.map +1 -1
  13. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Button.js +38 -9
  14. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.d.ts +0 -1
  15. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.d.ts.map +1 -1
  16. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.js +14 -8
  17. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/MenuItemLink.js +20 -7
  18. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.d.ts +1 -2
  19. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.d.ts.map +1 -1
  20. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.js +5 -2
  21. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/index.d.ts.map +1 -1
  22. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/index.js +3 -1
  23. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/Collapsible.d.ts.map +1 -1
  24. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/Collapsible.js +22 -8
  25. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/CurrentItem.d.ts.map +1 -1
  26. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/CurrentItem.js +4 -2
  27. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/Link.d.ts.map +1 -1
  28. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/Link.js +3 -1
  29. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/ListItem.d.ts +0 -1
  30. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/ListItem.d.ts.map +1 -1
  31. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/ListItem.js +10 -8
  32. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/hooks.d.ts +1 -1
  33. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/hooks.d.ts.map +1 -1
  34. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/hooks.js +21 -5
  35. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/index.d.ts +1 -2
  36. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/index.d.ts.map +1 -1
  37. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/index.js +13 -16
  38. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/styles.d.ts +1 -1
  39. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/styles.d.ts.map +1 -1
  40. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/styles.js +3 -1
  41. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Nav.d.ts.map +1 -1
  42. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Nav.js +3 -1
  43. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/hooks.js +3 -1
  44. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/index.d.ts +1 -2
  45. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/index.d.ts.map +1 -1
  46. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/index.js +1 -0
  47. package/dist/commonjs/color-picker/index.js +6 -2
  48. package/dist/commonjs/color-picker/lib/ColorPicker.d.ts.map +1 -1
  49. package/dist/commonjs/color-picker/lib/ColorPicker.js +21 -9
  50. package/dist/commonjs/color-picker/lib/parts/ColorReset.d.ts.map +1 -1
  51. package/dist/commonjs/color-picker/lib/parts/ColorReset.js +17 -3
  52. package/dist/commonjs/color-picker/lib/parts/SwatchBook.d.ts.map +1 -1
  53. package/dist/commonjs/color-picker/lib/parts/SwatchBook.js +17 -3
  54. package/dist/commonjs/form-field/index.js +12 -5
  55. package/dist/commonjs/form-field/lib/FormField.d.ts +47 -13
  56. package/dist/commonjs/form-field/lib/FormField.d.ts.map +1 -1
  57. package/dist/commonjs/form-field/lib/FormField.js +8 -11
  58. package/dist/commonjs/form-field/lib/FormFieldHint.d.ts +8 -12
  59. package/dist/commonjs/form-field/lib/FormFieldHint.d.ts.map +1 -1
  60. package/dist/commonjs/form-field/lib/FormFieldHint.js +18 -16
  61. package/dist/commonjs/form-field/lib/FormFieldInput.d.ts +8 -7
  62. package/dist/commonjs/form-field/lib/FormFieldInput.d.ts.map +1 -1
  63. package/dist/commonjs/form-field/lib/FormFieldInput.js +7 -20
  64. package/dist/commonjs/form-field/lib/FormFieldLabel.d.ts +9 -4
  65. package/dist/commonjs/form-field/lib/FormFieldLabel.d.ts.map +1 -1
  66. package/dist/commonjs/form-field/lib/FormFieldLabel.js +21 -22
  67. package/dist/commonjs/form-field/lib/hooks/index.js +15 -8
  68. package/dist/commonjs/form-field/lib/hooks/useFormFieldHint.d.ts +8 -6
  69. package/dist/commonjs/form-field/lib/hooks/useFormFieldHint.d.ts.map +1 -1
  70. package/dist/commonjs/form-field/lib/hooks/useFormFieldHint.js +3 -1
  71. package/dist/commonjs/form-field/lib/hooks/useFormFieldInput.d.ts +8 -6
  72. package/dist/commonjs/form-field/lib/hooks/useFormFieldInput.d.ts.map +1 -1
  73. package/dist/commonjs/form-field/lib/hooks/useFormFieldInput.js +3 -1
  74. package/dist/commonjs/form-field/lib/hooks/useFormFieldLabel.d.ts +8 -6
  75. package/dist/commonjs/form-field/lib/hooks/useFormFieldLabel.d.ts.map +1 -1
  76. package/dist/commonjs/form-field/lib/hooks/useFormFieldLabel.js +3 -1
  77. package/dist/commonjs/form-field/lib/hooks/useFormFieldModel.d.ts +77 -15
  78. package/dist/commonjs/form-field/lib/hooks/useFormFieldModel.d.ts.map +1 -1
  79. package/dist/commonjs/form-field/lib/hooks/useFormFieldModel.js +42 -14
  80. package/dist/commonjs/form-field/lib/hooks/useFormFieldOrientation.d.ts +5 -4
  81. package/dist/commonjs/form-field/lib/hooks/useFormFieldOrientation.d.ts.map +1 -1
  82. package/dist/commonjs/form-field/lib/hooks/useFormFieldOrientation.js +3 -1
  83. package/dist/commonjs/index.d.ts +1 -0
  84. package/dist/commonjs/index.d.ts.map +1 -1
  85. package/dist/commonjs/index.js +19 -11
  86. package/dist/commonjs/menu/index.js +12 -4
  87. package/dist/commonjs/menu/lib/Menu.d.ts.map +1 -1
  88. package/dist/commonjs/menu/lib/Menu.js +21 -9
  89. package/dist/commonjs/menu/lib/MenuItem.d.ts.map +1 -1
  90. package/dist/commonjs/menu/lib/MenuItem.js +20 -8
  91. package/dist/commonjs/pill/index.d.ts +3 -0
  92. package/dist/commonjs/pill/index.d.ts.map +1 -0
  93. package/dist/commonjs/pill/index.js +14 -0
  94. package/dist/commonjs/pill/lib/Pill.d.ts +65 -0
  95. package/dist/commonjs/pill/lib/Pill.d.ts.map +1 -0
  96. package/dist/commonjs/pill/lib/Pill.js +171 -0
  97. package/dist/commonjs/pill/lib/PillAvatar.d.ts +12 -0
  98. package/dist/commonjs/pill/lib/PillAvatar.d.ts.map +1 -0
  99. package/dist/commonjs/pill/lib/PillAvatar.js +29 -0
  100. package/dist/commonjs/pill/lib/PillCount.d.ts +5 -0
  101. package/dist/commonjs/pill/lib/PillCount.d.ts.map +1 -0
  102. package/dist/commonjs/pill/lib/PillCount.js +45 -0
  103. package/dist/commonjs/pill/lib/PillIcon.d.ts +18 -0
  104. package/dist/commonjs/pill/lib/PillIcon.d.ts.map +1 -0
  105. package/dist/commonjs/pill/lib/PillIcon.js +40 -0
  106. package/dist/commonjs/pill/lib/PillIconButton.d.ts +23 -0
  107. package/dist/commonjs/pill/lib/PillIconButton.d.ts.map +1 -0
  108. package/dist/commonjs/pill/lib/PillIconButton.js +81 -0
  109. package/dist/commonjs/pill/lib/PillLabel.d.ts +14 -0
  110. package/dist/commonjs/pill/lib/PillLabel.d.ts.map +1 -0
  111. package/dist/commonjs/pill/lib/PillLabel.js +47 -0
  112. package/dist/commonjs/pill/lib/usePillModel.d.ts +71 -0
  113. package/dist/commonjs/pill/lib/usePillModel.d.ts.map +1 -0
  114. package/dist/commonjs/pill/lib/usePillModel.js +37 -0
  115. package/dist/commonjs/select/index.d.ts +1 -1
  116. package/dist/commonjs/select/index.d.ts.map +1 -1
  117. package/dist/commonjs/select/index.js +12 -4
  118. package/dist/commonjs/select/lib/Select.d.ts.map +1 -1
  119. package/dist/commonjs/select/lib/Select.js +22 -8
  120. package/dist/commonjs/select/lib/SelectBase.d.ts.map +1 -1
  121. package/dist/commonjs/select/lib/SelectBase.js +20 -7
  122. package/dist/commonjs/select/lib/SelectMenu.d.ts.map +1 -1
  123. package/dist/commonjs/select/lib/SelectMenu.js +20 -7
  124. package/dist/commonjs/select/lib/SelectOption.d.ts.map +1 -1
  125. package/dist/commonjs/select/lib/SelectOption.js +19 -7
  126. package/dist/commonjs/select/lib/scrolling.d.ts.map +1 -1
  127. package/dist/commonjs/select/lib/scrolling.js +3 -1
  128. package/dist/commonjs/select/lib/utils.d.ts.map +1 -1
  129. package/dist/commonjs/select/lib/utils.js +5 -2
  130. package/dist/commonjs/side-panel/index.js +13 -5
  131. package/dist/commonjs/side-panel/lib/SidePanel.d.ts +18 -5
  132. package/dist/commonjs/side-panel/lib/SidePanel.d.ts.map +1 -1
  133. package/dist/commonjs/side-panel/lib/SidePanel.js +32 -16
  134. package/dist/commonjs/side-panel/lib/hooks.d.ts.map +1 -1
  135. package/dist/commonjs/side-panel/lib/hooks.js +17 -3
  136. package/dist/commonjs/text-area/index.js +11 -4
  137. package/dist/commonjs/text-area/lib/TextArea.d.ts +52 -11
  138. package/dist/commonjs/text-area/lib/TextArea.d.ts.map +1 -1
  139. package/dist/commonjs/text-area/lib/TextArea.js +10 -15
  140. package/dist/commonjs/text-area/lib/TextAreaField.d.ts +15 -7
  141. package/dist/commonjs/text-area/lib/TextAreaField.d.ts.map +1 -1
  142. package/dist/commonjs/text-area/lib/TextAreaField.js +19 -18
  143. package/dist/commonjs/text-area/lib/hooks/index.js +11 -4
  144. package/dist/commonjs/text-area/lib/hooks/useTextAreaModel.d.ts +27 -7
  145. package/dist/commonjs/text-area/lib/hooks/useTextAreaModel.d.ts.map +1 -1
  146. package/dist/commonjs/text-area/lib/hooks/useTextAreaModel.js +1 -0
  147. package/dist/commonjs/text-input/index.js +12 -5
  148. package/dist/commonjs/text-input/lib/TextInput.d.ts +59 -11
  149. package/dist/commonjs/text-input/lib/TextInput.d.ts.map +1 -1
  150. package/dist/commonjs/text-input/lib/TextInput.js +10 -15
  151. package/dist/commonjs/text-input/lib/TextInputField.d.ts +15 -7
  152. package/dist/commonjs/text-input/lib/TextInputField.d.ts.map +1 -1
  153. package/dist/commonjs/text-input/lib/TextInputField.js +18 -30
  154. package/dist/commonjs/text-input/lib/hooks/index.js +12 -5
  155. package/dist/commonjs/text-input/lib/hooks/useTextInputField.d.ts +8 -2
  156. package/dist/commonjs/text-input/lib/hooks/useTextInputField.d.ts.map +1 -1
  157. package/dist/commonjs/text-input/lib/hooks/useTextInputField.js +3 -1
  158. package/dist/commonjs/text-input/lib/hooks/useTextInputModel.d.ts +27 -7
  159. package/dist/commonjs/text-input/lib/hooks/useTextInputModel.d.ts.map +1 -1
  160. package/dist/commonjs/text-input/lib/hooks/useTextInputModel.js +1 -0
  161. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Button.d.ts +3 -3
  162. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Button.d.ts.map +1 -1
  163. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Button.js +36 -11
  164. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.d.ts +0 -1
  165. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.d.ts.map +1 -1
  166. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.js +8 -7
  167. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.d.ts +1 -2
  168. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.d.ts.map +1 -1
  169. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/index.d.ts.map +1 -1
  170. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/Collapsible.d.ts.map +1 -1
  171. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/CurrentItem.d.ts.map +1 -1
  172. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/CurrentItem.js +1 -1
  173. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/Link.d.ts.map +1 -1
  174. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/ListItem.d.ts +0 -1
  175. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/ListItem.d.ts.map +1 -1
  176. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/ListItem.js +4 -7
  177. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/hooks.d.ts +1 -1
  178. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/hooks.d.ts.map +1 -1
  179. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/index.d.ts +1 -2
  180. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/index.d.ts.map +1 -1
  181. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/index.js +9 -16
  182. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/styles.d.ts +1 -1
  183. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/styles.d.ts.map +1 -1
  184. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Nav.d.ts.map +1 -1
  185. package/dist/es6/breadcrumbs/lib/Breadcrumbs/index.d.ts +1 -2
  186. package/dist/es6/breadcrumbs/lib/Breadcrumbs/index.d.ts.map +1 -1
  187. package/dist/es6/breadcrumbs/lib/Breadcrumbs/types.js +1 -0
  188. package/dist/es6/color-picker/lib/ColorPicker.d.ts.map +1 -1
  189. package/dist/es6/color-picker/lib/ColorPicker.js +3 -3
  190. package/dist/es6/color-picker/lib/parts/ColorReset.d.ts.map +1 -1
  191. package/dist/es6/color-picker/lib/parts/SwatchBook.d.ts.map +1 -1
  192. package/dist/es6/form-field/lib/FormField.d.ts +47 -13
  193. package/dist/es6/form-field/lib/FormField.d.ts.map +1 -1
  194. package/dist/es6/form-field/lib/FormField.js +9 -13
  195. package/dist/es6/form-field/lib/FormFieldHint.d.ts +8 -12
  196. package/dist/es6/form-field/lib/FormFieldHint.d.ts.map +1 -1
  197. package/dist/es6/form-field/lib/FormFieldHint.js +17 -19
  198. package/dist/es6/form-field/lib/FormFieldInput.d.ts +8 -7
  199. package/dist/es6/form-field/lib/FormFieldInput.d.ts.map +1 -1
  200. package/dist/es6/form-field/lib/FormFieldInput.js +8 -22
  201. package/dist/es6/form-field/lib/FormFieldLabel.d.ts +9 -4
  202. package/dist/es6/form-field/lib/FormFieldLabel.d.ts.map +1 -1
  203. package/dist/es6/form-field/lib/FormFieldLabel.js +19 -24
  204. package/dist/es6/form-field/lib/hooks/useFormFieldHint.d.ts +8 -6
  205. package/dist/es6/form-field/lib/hooks/useFormFieldHint.d.ts.map +1 -1
  206. package/dist/es6/form-field/lib/hooks/useFormFieldHint.js +3 -2
  207. package/dist/es6/form-field/lib/hooks/useFormFieldInput.d.ts +8 -6
  208. package/dist/es6/form-field/lib/hooks/useFormFieldInput.d.ts.map +1 -1
  209. package/dist/es6/form-field/lib/hooks/useFormFieldInput.js +3 -2
  210. package/dist/es6/form-field/lib/hooks/useFormFieldLabel.d.ts +8 -6
  211. package/dist/es6/form-field/lib/hooks/useFormFieldLabel.d.ts.map +1 -1
  212. package/dist/es6/form-field/lib/hooks/useFormFieldLabel.js +3 -2
  213. package/dist/es6/form-field/lib/hooks/useFormFieldModel.d.ts +77 -15
  214. package/dist/es6/form-field/lib/hooks/useFormFieldModel.d.ts.map +1 -1
  215. package/dist/es6/form-field/lib/hooks/useFormFieldModel.js +42 -15
  216. package/dist/es6/form-field/lib/hooks/useFormFieldOrientation.d.ts +5 -4
  217. package/dist/es6/form-field/lib/hooks/useFormFieldOrientation.d.ts.map +1 -1
  218. package/dist/es6/index.d.ts +1 -0
  219. package/dist/es6/index.d.ts.map +1 -1
  220. package/dist/es6/index.js +1 -0
  221. package/dist/es6/menu/lib/Menu.d.ts.map +1 -1
  222. package/dist/es6/menu/lib/Menu.js +2 -2
  223. package/dist/es6/menu/lib/MenuItem.d.ts.map +1 -1
  224. package/dist/es6/menu/lib/MenuItem.js +1 -1
  225. package/dist/es6/pill/index.d.ts +3 -0
  226. package/dist/es6/pill/index.d.ts.map +1 -0
  227. package/dist/es6/pill/index.js +2 -0
  228. package/dist/es6/pill/lib/Pill.d.ts +65 -0
  229. package/dist/es6/pill/lib/Pill.d.ts.map +1 -0
  230. package/dist/es6/pill/lib/Pill.js +165 -0
  231. package/dist/es6/pill/lib/PillAvatar.d.ts +13 -0
  232. package/dist/es6/pill/lib/PillAvatar.d.ts.map +1 -0
  233. package/dist/es6/pill/lib/PillAvatar.js +23 -0
  234. package/dist/es6/pill/lib/PillCount.d.ts +5 -0
  235. package/dist/es6/pill/lib/PillCount.d.ts.map +1 -0
  236. package/dist/es6/pill/lib/PillCount.js +39 -0
  237. package/dist/es6/pill/lib/PillIcon.d.ts +19 -0
  238. package/dist/es6/pill/lib/PillIcon.d.ts.map +1 -0
  239. package/dist/es6/pill/lib/PillIcon.js +34 -0
  240. package/dist/es6/pill/lib/PillIconButton.d.ts +24 -0
  241. package/dist/es6/pill/lib/PillIconButton.d.ts.map +1 -0
  242. package/dist/es6/pill/lib/PillIconButton.js +75 -0
  243. package/dist/es6/pill/lib/PillLabel.d.ts +15 -0
  244. package/dist/es6/pill/lib/PillLabel.d.ts.map +1 -0
  245. package/dist/es6/pill/lib/PillLabel.js +41 -0
  246. package/dist/es6/pill/lib/usePillModel.d.ts +71 -0
  247. package/dist/es6/pill/lib/usePillModel.d.ts.map +1 -0
  248. package/dist/es6/pill/lib/usePillModel.js +34 -0
  249. package/dist/es6/select/index.d.ts +1 -1
  250. package/dist/es6/select/index.d.ts.map +1 -1
  251. package/dist/es6/select/lib/Select.d.ts.map +1 -1
  252. package/dist/es6/select/lib/Select.js +2 -1
  253. package/dist/es6/select/lib/SelectBase.d.ts.map +1 -1
  254. package/dist/es6/select/lib/SelectMenu.d.ts.map +1 -1
  255. package/dist/es6/select/lib/SelectOption.d.ts.map +1 -1
  256. package/dist/es6/select/lib/scrolling.d.ts.map +1 -1
  257. package/dist/es6/select/lib/types.js +1 -0
  258. package/dist/es6/select/lib/utils.d.ts.map +1 -1
  259. package/dist/es6/side-panel/lib/SidePanel.d.ts +18 -5
  260. package/dist/es6/side-panel/lib/SidePanel.d.ts.map +1 -1
  261. package/dist/es6/side-panel/lib/SidePanel.js +9 -6
  262. package/dist/es6/side-panel/lib/hooks.d.ts.map +1 -1
  263. package/dist/es6/text-area/lib/TextArea.d.ts +52 -11
  264. package/dist/es6/text-area/lib/TextArea.d.ts.map +1 -1
  265. package/dist/es6/text-area/lib/TextArea.js +11 -17
  266. package/dist/es6/text-area/lib/TextAreaField.d.ts +15 -7
  267. package/dist/es6/text-area/lib/TextAreaField.d.ts.map +1 -1
  268. package/dist/es6/text-area/lib/TextAreaField.js +19 -19
  269. package/dist/es6/text-area/lib/hooks/useTextAreaModel.d.ts +27 -7
  270. package/dist/es6/text-area/lib/hooks/useTextAreaModel.d.ts.map +1 -1
  271. package/dist/es6/text-input/lib/TextInput.d.ts +59 -11
  272. package/dist/es6/text-input/lib/TextInput.d.ts.map +1 -1
  273. package/dist/es6/text-input/lib/TextInput.js +11 -17
  274. package/dist/es6/text-input/lib/TextInputField.d.ts +15 -7
  275. package/dist/es6/text-input/lib/TextInputField.d.ts.map +1 -1
  276. package/dist/es6/text-input/lib/TextInputField.js +19 -32
  277. package/dist/es6/text-input/lib/hooks/useTextInputField.d.ts +8 -2
  278. package/dist/es6/text-input/lib/hooks/useTextInputField.d.ts.map +1 -1
  279. package/dist/es6/text-input/lib/hooks/useTextInputField.js +3 -2
  280. package/dist/es6/text-input/lib/hooks/useTextInputModel.d.ts +27 -7
  281. package/dist/es6/text-input/lib/hooks/useTextInputModel.d.ts.map +1 -1
  282. package/form-field/lib/FormField.tsx +14 -29
  283. package/form-field/lib/FormFieldHint.tsx +28 -38
  284. package/form-field/lib/FormFieldInput.tsx +8 -15
  285. package/form-field/lib/FormFieldLabel.tsx +30 -39
  286. package/form-field/lib/hooks/useFormFieldHint.tsx +3 -3
  287. package/form-field/lib/hooks/useFormFieldInput.tsx +3 -3
  288. package/form-field/lib/hooks/useFormFieldLabel.tsx +3 -3
  289. package/form-field/lib/hooks/useFormFieldModel.tsx +32 -53
  290. package/form-field/lib/hooks/useFormFieldOrientation.tsx +1 -1
  291. package/form-field/package.json +2 -1
  292. package/index.ts +1 -0
  293. package/menu/lib/Menu.tsx +1 -1
  294. package/menu/package.json +2 -1
  295. package/package.json +14 -22
  296. package/pill/LICENSE +52 -0
  297. package/pill/README.md +5 -0
  298. package/pill/index.ts +2 -0
  299. package/pill/lib/Pill.tsx +226 -0
  300. package/pill/lib/PillAvatar.tsx +27 -0
  301. package/pill/lib/PillCount.tsx +39 -0
  302. package/pill/lib/PillIcon.tsx +34 -0
  303. package/pill/lib/PillIconButton.tsx +100 -0
  304. package/pill/lib/PillLabel.tsx +36 -0
  305. package/pill/lib/usePillModel.tsx +28 -0
  306. package/pill/package.json +6 -0
  307. package/select/index.ts +6 -1
  308. package/select/lib/Select.tsx +1 -0
  309. package/select/lib/SelectMenu.tsx +1 -1
  310. package/select/lib/SelectOption.tsx +1 -1
  311. package/select/package.json +2 -1
  312. package/side-panel/lib/SidePanel.tsx +28 -9
  313. package/side-panel/package.json +2 -1
  314. package/text-area/lib/TextArea.tsx +16 -30
  315. package/text-area/lib/TextAreaField.tsx +32 -45
  316. package/text-area/lib/hooks/useTextAreaModel.ts +1 -3
  317. package/text-area/package.json +2 -1
  318. package/text-input/lib/TextInput.tsx +16 -30
  319. package/text-input/lib/TextInputField.tsx +33 -44
  320. package/text-input/lib/hooks/useTextInputField.tsx +3 -2
  321. package/text-input/lib/hooks/useTextInputModel.ts +1 -3
  322. package/text-input/package.json +2 -1
  323. package/dist/commonjs/text-area/lib/TextAreaHint.d.ts +0 -5
  324. package/dist/commonjs/text-area/lib/TextAreaHint.d.ts.map +0 -1
  325. package/dist/commonjs/text-area/lib/TextAreaHint.js +0 -4
  326. package/dist/commonjs/text-area/lib/TextAreaLabel.d.ts +0 -5
  327. package/dist/commonjs/text-area/lib/TextAreaLabel.d.ts.map +0 -1
  328. package/dist/commonjs/text-area/lib/TextAreaLabel.js +0 -4
  329. package/dist/commonjs/text-input/lib/TextInputHint.d.ts +0 -5
  330. package/dist/commonjs/text-input/lib/TextInputHint.d.ts.map +0 -1
  331. package/dist/commonjs/text-input/lib/TextInputHint.js +0 -4
  332. package/dist/commonjs/text-input/lib/TextInputLabel.d.ts +0 -5
  333. package/dist/commonjs/text-input/lib/TextInputLabel.d.ts.map +0 -1
  334. package/dist/commonjs/text-input/lib/TextInputLabel.js +0 -4
  335. package/dist/es6/text-area/lib/TextAreaHint.d.ts +0 -5
  336. package/dist/es6/text-area/lib/TextAreaHint.d.ts.map +0 -1
  337. package/dist/es6/text-area/lib/TextAreaHint.js +0 -2
  338. package/dist/es6/text-area/lib/TextAreaLabel.d.ts +0 -5
  339. package/dist/es6/text-area/lib/TextAreaLabel.d.ts.map +0 -1
  340. package/dist/es6/text-area/lib/TextAreaLabel.js +0 -2
  341. package/dist/es6/text-input/lib/TextInputHint.d.ts +0 -5
  342. package/dist/es6/text-input/lib/TextInputHint.d.ts.map +0 -1
  343. package/dist/es6/text-input/lib/TextInputHint.js +0 -2
  344. package/dist/es6/text-input/lib/TextInputLabel.d.ts +0 -5
  345. package/dist/es6/text-input/lib/TextInputLabel.d.ts.map +0 -1
  346. package/dist/es6/text-input/lib/TextInputLabel.js +0 -2
  347. package/text-area/lib/TextAreaHint.tsx +0 -6
  348. package/text-area/lib/TextAreaLabel.tsx +0 -6
  349. package/text-input/lib/TextInputHint.tsx +0 -6
  350. package/text-input/lib/TextInputLabel.tsx +0 -6
  351. package/ts3.5/dist/commonjs/breadcrumbs/index.d.ts +0 -5
  352. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Button.d.ts +0 -20
  353. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.d.ts +0 -39
  354. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/MenuItemLink.d.ts +0 -14
  355. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.d.ts +0 -14
  356. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/index.d.ts +0 -8
  357. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/Collapsible.d.ts +0 -16
  358. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/CurrentItem.d.ts +0 -11
  359. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/Link.d.ts +0 -19
  360. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/ListItem.d.ts +0 -5
  361. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/hooks.d.ts +0 -19
  362. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/index.d.ts +0 -5
  363. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/styles.d.ts +0 -3
  364. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Nav.d.ts +0 -11
  365. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/hooks.d.ts +0 -5
  366. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/index.d.ts +0 -10
  367. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/types.d.ts +0 -8
  368. package/ts3.5/dist/commonjs/color-picker/index.d.ts +0 -2
  369. package/ts3.5/dist/commonjs/color-picker/lib/ColorPicker.d.ts +0 -55
  370. package/ts3.5/dist/commonjs/color-picker/lib/parts/ColorReset.d.ts +0 -7
  371. package/ts3.5/dist/commonjs/color-picker/lib/parts/SwatchBook.d.ts +0 -7
  372. package/ts3.5/dist/commonjs/form-field/index.d.ts +0 -3
  373. package/ts3.5/dist/commonjs/form-field/lib/FormField.d.ts +0 -31
  374. package/ts3.5/dist/commonjs/form-field/lib/FormFieldHint.d.ts +0 -13
  375. package/ts3.5/dist/commonjs/form-field/lib/FormFieldInput.d.ts +0 -8
  376. package/ts3.5/dist/commonjs/form-field/lib/FormFieldLabel.d.ts +0 -18
  377. package/ts3.5/dist/commonjs/form-field/lib/hooks/index.d.ts +0 -6
  378. package/ts3.5/dist/commonjs/form-field/lib/hooks/useFormFieldHint.d.ts +0 -15
  379. package/ts3.5/dist/commonjs/form-field/lib/hooks/useFormFieldInput.d.ts +0 -18
  380. package/ts3.5/dist/commonjs/form-field/lib/hooks/useFormFieldLabel.d.ts +0 -15
  381. package/ts3.5/dist/commonjs/form-field/lib/hooks/useFormFieldModel.d.ts +0 -36
  382. package/ts3.5/dist/commonjs/form-field/lib/hooks/useFormFieldOrientation.d.ts +0 -9
  383. package/ts3.5/dist/commonjs/index.d.ts +0 -9
  384. package/ts3.5/dist/commonjs/menu/index.d.ts +0 -6
  385. package/ts3.5/dist/commonjs/menu/lib/Menu.d.ts +0 -61
  386. package/ts3.5/dist/commonjs/menu/lib/MenuItem.d.ts +0 -53
  387. package/ts3.5/dist/commonjs/select/index.d.ts +0 -6
  388. package/ts3.5/dist/commonjs/select/lib/Select.d.ts +0 -25
  389. package/ts3.5/dist/commonjs/select/lib/SelectBase.d.ts +0 -142
  390. package/ts3.5/dist/commonjs/select/lib/SelectMenu.d.ts +0 -42
  391. package/ts3.5/dist/commonjs/select/lib/SelectOption.d.ts +0 -33
  392. package/ts3.5/dist/commonjs/select/lib/scrolling.d.ts +0 -2
  393. package/ts3.5/dist/commonjs/select/lib/types.d.ts +0 -33
  394. package/ts3.5/dist/commonjs/select/lib/utils.d.ts +0 -4
  395. package/ts3.5/dist/commonjs/side-panel/index.d.ts +0 -6
  396. package/ts3.5/dist/commonjs/side-panel/lib/SidePanel.d.ts +0 -73
  397. package/ts3.5/dist/commonjs/side-panel/lib/hooks.d.ts +0 -80
  398. package/ts3.5/dist/commonjs/text-area/index.d.ts +0 -2
  399. package/ts3.5/dist/commonjs/text-area/lib/TextArea.d.ts +0 -22
  400. package/ts3.5/dist/commonjs/text-area/lib/TextAreaField.d.ts +0 -8
  401. package/ts3.5/dist/commonjs/text-area/lib/TextAreaHint.d.ts +0 -5
  402. package/ts3.5/dist/commonjs/text-area/lib/TextAreaLabel.d.ts +0 -5
  403. package/ts3.5/dist/commonjs/text-area/lib/hooks/index.d.ts +0 -2
  404. package/ts3.5/dist/commonjs/text-area/lib/hooks/useTextAreaModel.d.ts +0 -8
  405. package/ts3.5/dist/commonjs/text-input/index.d.ts +0 -3
  406. package/ts3.5/dist/commonjs/text-input/lib/TextInput.d.ts +0 -22
  407. package/ts3.5/dist/commonjs/text-input/lib/TextInputField.d.ts +0 -8
  408. package/ts3.5/dist/commonjs/text-input/lib/TextInputHint.d.ts +0 -5
  409. package/ts3.5/dist/commonjs/text-input/lib/TextInputLabel.d.ts +0 -5
  410. package/ts3.5/dist/commonjs/text-input/lib/hooks/index.d.ts +0 -3
  411. package/ts3.5/dist/commonjs/text-input/lib/hooks/useTextInputField.d.ts +0 -10
  412. package/ts3.5/dist/commonjs/text-input/lib/hooks/useTextInputModel.d.ts +0 -8
  413. package/ts3.5/dist/es6/breadcrumbs/index.d.ts +0 -5
  414. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Button.d.ts +0 -20
  415. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.d.ts +0 -39
  416. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/MenuItemLink.d.ts +0 -14
  417. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.d.ts +0 -14
  418. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/index.d.ts +0 -8
  419. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/List/Collapsible.d.ts +0 -16
  420. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/List/CurrentItem.d.ts +0 -11
  421. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/List/Link.d.ts +0 -19
  422. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/List/ListItem.d.ts +0 -5
  423. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/List/hooks.d.ts +0 -19
  424. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/List/index.d.ts +0 -5
  425. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/List/styles.d.ts +0 -3
  426. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/Nav.d.ts +0 -11
  427. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/hooks.d.ts +0 -5
  428. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/index.d.ts +0 -10
  429. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/types.d.ts +0 -8
  430. package/ts3.5/dist/es6/color-picker/index.d.ts +0 -2
  431. package/ts3.5/dist/es6/color-picker/lib/ColorPicker.d.ts +0 -55
  432. package/ts3.5/dist/es6/color-picker/lib/parts/ColorReset.d.ts +0 -7
  433. package/ts3.5/dist/es6/color-picker/lib/parts/SwatchBook.d.ts +0 -7
  434. package/ts3.5/dist/es6/form-field/index.d.ts +0 -3
  435. package/ts3.5/dist/es6/form-field/lib/FormField.d.ts +0 -31
  436. package/ts3.5/dist/es6/form-field/lib/FormFieldHint.d.ts +0 -13
  437. package/ts3.5/dist/es6/form-field/lib/FormFieldInput.d.ts +0 -8
  438. package/ts3.5/dist/es6/form-field/lib/FormFieldLabel.d.ts +0 -18
  439. package/ts3.5/dist/es6/form-field/lib/hooks/index.d.ts +0 -6
  440. package/ts3.5/dist/es6/form-field/lib/hooks/useFormFieldHint.d.ts +0 -15
  441. package/ts3.5/dist/es6/form-field/lib/hooks/useFormFieldInput.d.ts +0 -18
  442. package/ts3.5/dist/es6/form-field/lib/hooks/useFormFieldLabel.d.ts +0 -15
  443. package/ts3.5/dist/es6/form-field/lib/hooks/useFormFieldModel.d.ts +0 -36
  444. package/ts3.5/dist/es6/form-field/lib/hooks/useFormFieldOrientation.d.ts +0 -9
  445. package/ts3.5/dist/es6/index.d.ts +0 -9
  446. package/ts3.5/dist/es6/menu/index.d.ts +0 -6
  447. package/ts3.5/dist/es6/menu/lib/Menu.d.ts +0 -61
  448. package/ts3.5/dist/es6/menu/lib/MenuItem.d.ts +0 -53
  449. package/ts3.5/dist/es6/select/index.d.ts +0 -6
  450. package/ts3.5/dist/es6/select/lib/Select.d.ts +0 -25
  451. package/ts3.5/dist/es6/select/lib/SelectBase.d.ts +0 -142
  452. package/ts3.5/dist/es6/select/lib/SelectMenu.d.ts +0 -42
  453. package/ts3.5/dist/es6/select/lib/SelectOption.d.ts +0 -33
  454. package/ts3.5/dist/es6/select/lib/scrolling.d.ts +0 -2
  455. package/ts3.5/dist/es6/select/lib/types.d.ts +0 -33
  456. package/ts3.5/dist/es6/select/lib/utils.d.ts +0 -4
  457. package/ts3.5/dist/es6/side-panel/index.d.ts +0 -6
  458. package/ts3.5/dist/es6/side-panel/lib/SidePanel.d.ts +0 -73
  459. package/ts3.5/dist/es6/side-panel/lib/hooks.d.ts +0 -80
  460. package/ts3.5/dist/es6/text-area/index.d.ts +0 -2
  461. package/ts3.5/dist/es6/text-area/lib/TextArea.d.ts +0 -22
  462. package/ts3.5/dist/es6/text-area/lib/TextAreaField.d.ts +0 -8
  463. package/ts3.5/dist/es6/text-area/lib/TextAreaHint.d.ts +0 -5
  464. package/ts3.5/dist/es6/text-area/lib/TextAreaLabel.d.ts +0 -5
  465. package/ts3.5/dist/es6/text-area/lib/hooks/index.d.ts +0 -2
  466. package/ts3.5/dist/es6/text-area/lib/hooks/useTextAreaModel.d.ts +0 -8
  467. package/ts3.5/dist/es6/text-input/index.d.ts +0 -3
  468. package/ts3.5/dist/es6/text-input/lib/TextInput.d.ts +0 -22
  469. package/ts3.5/dist/es6/text-input/lib/TextInputField.d.ts +0 -8
  470. package/ts3.5/dist/es6/text-input/lib/TextInputHint.d.ts +0 -5
  471. package/ts3.5/dist/es6/text-input/lib/TextInputLabel.d.ts +0 -5
  472. package/ts3.5/dist/es6/text-input/lib/hooks/index.d.ts +0 -3
  473. package/ts3.5/dist/es6/text-input/lib/hooks/useTextInputField.d.ts +0 -10
  474. package/ts3.5/dist/es6/text-input/lib/hooks/useTextInputModel.d.ts +0 -8
@@ -1,5 +1,6 @@
1
+ /** @jsxRuntime classic */
1
2
  /** @jsx jsx */
2
- import {jsx} from '@emotion/core';
3
+ import {jsx} from '@emotion/react';
3
4
 
4
5
  import {
5
6
  borderRadius,
@@ -8,21 +9,11 @@ import {
8
9
  space,
9
10
  type,
10
11
  } from '@workday/canvas-kit-react/tokens';
11
- import {
12
- createComponent,
13
- ExtractProps,
14
- useModelContext,
15
- useTheme,
16
- } from '@workday/canvas-kit-react/common';
12
+ import {createSubcomponent, ExtractProps, useTheme} from '@workday/canvas-kit-react/common';
17
13
  import {useThemedRing} from '@workday/canvas-kit-labs-react/common';
18
14
  import {FormField} from '@workday/canvas-kit-preview-react/form-field';
19
15
 
20
- import {TextInputModelContext} from './TextInput';
21
- import {useTextInputField, TextInputModel} from './hooks';
22
-
23
- export interface TextInputFieldProps extends ExtractProps<typeof FormField.Input, never> {
24
- model?: TextInputModel;
25
- }
16
+ import {useTextInputField, useTextInputModel} from './hooks';
26
17
 
27
18
  const baseStyles: CSSProperties = {
28
19
  ...type.levels.subtext.large,
@@ -49,38 +40,36 @@ const baseStyles: CSSProperties = {
49
40
  },
50
41
  };
51
42
 
52
- export const TextInputField = createComponent('input')({
43
+ export const TextInputField = createSubcomponent('input')({
53
44
  displayName: 'TextInput.Field',
54
- Component: ({model, ...elemProps}: TextInputFieldProps, ref) => {
55
- const localModel = useModelContext(TextInputModelContext, model);
56
- 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');
57
50
 
58
- const theme = useTheme();
59
- 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
+ };
60
59
 
61
- const focusStyles = localModel.state.hasError
62
- ? errorRing
63
- : {
64
- '&:focus:not([disabled])': {
65
- borderColor: theme.canvas.palette.common.focusOutline,
66
- boxShadow: `inset 0 0 0 1px ${theme.canvas.palette.common.focusOutline}`,
67
- },
68
- };
69
-
70
- return (
71
- <FormField.Input
72
- as="input"
73
- css={[baseStyles, focusStyles]}
74
- padding={space.xxs}
75
- margin={0}
76
- display="block"
77
- height="40px"
78
- minWidth="280px"
79
- border={`1px solid ${inputColors.border}`}
80
- backgroundColor={inputColors.background}
81
- borderRadius={borderRadius.m}
82
- {...props}
83
- />
84
- );
85
- },
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
+ );
86
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 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/text-input",
3
3
  "module": "../dist/es6/text-input",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/text-input"
5
6
  }
@@ -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,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var form_field_1 = require("@workday/canvas-kit-preview-react/form-field");
4
- 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,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var form_field_1 = require("@workday/canvas-kit-preview-react/form-field");
4
- 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,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var form_field_1 = require("@workday/canvas-kit-preview-react/form-field");
4
- 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,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var form_field_1 = require("@workday/canvas-kit-preview-react/form-field");
4
- 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 { 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