@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
@@ -0,0 +1,34 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import React from 'react';
24
+ import { createSubcomponent } from '@workday/canvas-kit-react/common';
25
+ import { SystemIcon } from '@workday/canvas-kit-react/icon';
26
+ import { usePillModel } from './usePillModel';
27
+ import { plusIcon } from '@workday/canvas-system-icons-web';
28
+ import { space } from '@workday/canvas-kit-react/tokens';
29
+ export var PillIcon = createSubcomponent('span')({
30
+ modelHook: usePillModel,
31
+ })(function (_a, Element) {
32
+ var size = _a.size, icon = _a.icon, elemProps = __rest(_a, ["size", "icon"]);
33
+ return (React.createElement(SystemIcon, __assign({ marginInlineStart: "-" + space.xxxs, display: "flex", as: Element, size: 20, role: "img", "aria-label": "add", icon: icon || plusIcon }, elemProps)));
34
+ });
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import { SystemIconProps } from '@workday/canvas-kit-react/icon';
3
+ import { CanvasSystemIcon } from '@workday/design-assets-types';
4
+ export interface PillIconButtonProps extends Omit<SystemIconProps, 'icon'> {
5
+ /**
6
+ * The system icon rendered by the button
7
+ * @default `xSmallIcon`
8
+ */
9
+ icon?: CanvasSystemIcon;
10
+ /**
11
+ * The aria label for the removable icon
12
+ * @default 'remove'
13
+ */
14
+ 'aria-label'?: string;
15
+ }
16
+ export declare const PillIconButton: import("@workday/canvas-kit-react/common").ElementComponentM<"button", PillIconButtonProps, {
17
+ state: {
18
+ id: string;
19
+ maxWidth: React.ReactText;
20
+ disabled: boolean;
21
+ };
22
+ events: {};
23
+ }>;
24
+ //# sourceMappingURL=PillIconButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PillIconButton.d.ts","sourceRoot":"","sources":["../../../../pill/lib/PillIconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAa,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAG3E,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAI9D,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,eAAe,EAAE,MAAM,CAAC;IACxE;;;OAGG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AA6CD,eAAO,MAAM,cAAc;;;;;;;EAgC1B,CAAC"}
@@ -0,0 +1,75 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import React from 'react';
24
+ import { focusRing, styled, createSubcomponent } from '@workday/canvas-kit-react/common';
25
+ import { SystemIcon } from '@workday/canvas-kit-react/icon';
26
+ import { usePillModel } from './usePillModel';
27
+ import { xSmallIcon } from '@workday/canvas-system-icons-web';
28
+ import { colors, space } from '@workday/canvas-kit-react/tokens';
29
+ import { BaseButton } from '@workday/canvas-kit-react/button';
30
+ var getIconColors = function () {
31
+ return {
32
+ default: {
33
+ icon: colors.licorice200,
34
+ },
35
+ hover: {
36
+ icon: colors.licorice500,
37
+ },
38
+ active: {
39
+ icon: colors.licorice500,
40
+ },
41
+ focus: {
42
+ icon: colors.licorice500,
43
+ focusRing: focusRing({
44
+ innerColor: 'transparent',
45
+ }),
46
+ },
47
+ disabled: {
48
+ icon: colors.licorice100,
49
+ opacity: '1',
50
+ },
51
+ };
52
+ };
53
+ var StyledIconButton = styled(BaseButton)({
54
+ marginInlineEnd: '-7px',
55
+ marginInlineStart: "-2px",
56
+ overflow: 'visible',
57
+ '::after': {
58
+ content: '""',
59
+ height: space.l,
60
+ width: space.l,
61
+ position: 'absolute',
62
+ left: '-7px',
63
+ bottom: '-7px',
64
+ margin: 0,
65
+ pointerEvents: 'all',
66
+ cursor: 'pointer',
67
+ },
68
+ });
69
+ export var PillIconButton = createSubcomponent('button')({
70
+ modelHook: usePillModel,
71
+ })(function (_a, Element, model) {
72
+ var size = _a.size, _b = _a.icon, icon = _b === void 0 ? xSmallIcon : _b, maxWidth = _a.maxWidth, children = _a.children, _c = _a["aria-label"], ariaLabel = _c === void 0 ? 'remove' : _c, elemProps = __rest(_a, ["size", "icon", "maxWidth", "children", 'aria-label']);
73
+ return (React.createElement(StyledIconButton, __assign({ borderRadius: "s", height: 20, width: 20, padding: "zero", disabled: model.state.disabled, colors: getIconColors(), "aria-labelledby": "removable-" + model.state.id + " label-" + model.state.id, as: Element, position: "relative" }, elemProps),
74
+ React.createElement(SystemIcon, { "aria-label": ariaLabel, id: "removable-" + model.state.id, icon: icon, size: space.m, "aria-hidden": true, role: "img" })));
75
+ });
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { BoxProps } from '@workday/canvas-kit-react/layout';
3
+ import { OverflowTooltipProps } from '@workday/canvas-kit-react/tooltip';
4
+ export interface PillLabelProps extends BoxProps {
5
+ tooltipProps?: Omit<OverflowTooltipProps, 'children'>;
6
+ }
7
+ export declare const PillLabel: import("@workday/canvas-kit-react/common").ElementComponentM<"span", PillLabelProps, {
8
+ state: {
9
+ id: string;
10
+ maxWidth: React.ReactText;
11
+ disabled: boolean;
12
+ };
13
+ events: {};
14
+ }>;
15
+ //# sourceMappingURL=PillLabel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PillLabel.d.ts","sourceRoot":"","sources":["../../../../pill/lib/PillLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAM,QAAQ,EAAC,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAkB,oBAAoB,EAAC,MAAM,mCAAmC,CAAC;AAKxF,MAAM,WAAW,cAAe,SAAQ,QAAQ;IAC9C,YAAY,CAAC,EAAE,IAAI,CAAC,oBAAoB,EAAE,UAAU,CAAC,CAAC;CACvD;AAQD,eAAO,MAAM,SAAS;;;;;;;EAgBpB,CAAC"}
@@ -0,0 +1,41 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import React from 'react';
24
+ import { createSubcomponent, styled } from '@workday/canvas-kit-react/common';
25
+ import { Box } from '@workday/canvas-kit-react/layout';
26
+ import { OverflowTooltip } from '@workday/canvas-kit-react/tooltip';
27
+ import { usePillModel } from './usePillModel';
28
+ import { colors } from '@workday/canvas-kit-react/tokens';
29
+ var StyledLabelContainer = styled(Box.as('span'))({
30
+ whiteSpace: 'nowrap',
31
+ overflow: 'hidden',
32
+ textOverflow: 'ellipsis',
33
+ display: 'block',
34
+ });
35
+ export var PillLabel = createSubcomponent('span')({
36
+ modelHook: usePillModel,
37
+ })(function (_a, Element, model) {
38
+ var tooltipProps = _a.tooltipProps, elemProps = __rest(_a, ["tooltipProps"]);
39
+ return (React.createElement(OverflowTooltip, __assign({}, tooltipProps),
40
+ React.createElement(StyledLabelContainer, __assign({ color: model.state.disabled ? colors.licorice100 : 'inherit', maxWidth: model.state.maxWidth, as: Element, id: "label-" + model.state.id }, elemProps), elemProps.children)));
41
+ });
@@ -0,0 +1,71 @@
1
+ export declare const usePillModel: (<TT_Special_Generic>(config?: (Partial<{
2
+ /**
3
+ * Determines the max width of the pill. If the pill text is longer than the max width,
4
+ * text will be truncated and a tooltip will show the rest of the content when hovered over
5
+ */
6
+ maxWidth: import("react").ReactText;
7
+ /**
8
+ * Use to disable a pill.
9
+ */
10
+ disabled: boolean;
11
+ /**
12
+ * ID used to add accessibility labels to pill elements.
13
+ * @default `useUniqueId()`
14
+ */
15
+ id: string;
16
+ }> & {} & {}) | undefined) => {
17
+ state: {
18
+ id: string;
19
+ /**
20
+ * Determines the max width of the pill. If the pill text is longer than the max width,
21
+ * text will be truncated and a tooltip will show the rest of the content when hovered over
22
+ */
23
+ maxWidth: import("react").ReactText;
24
+ /**
25
+ * Use to disable a pill.
26
+ */
27
+ disabled: boolean;
28
+ };
29
+ events: {};
30
+ }) & import("@workday/canvas-kit-react/common").ModelExtras<{
31
+ /**
32
+ * Determines the max width of the pill. If the pill text is longer than the max width,
33
+ * text will be truncated and a tooltip will show the rest of the content when hovered over
34
+ */
35
+ maxWidth: import("react").ReactText;
36
+ /**
37
+ * Use to disable a pill.
38
+ */
39
+ disabled: boolean;
40
+ /**
41
+ * ID used to add accessibility labels to pill elements.
42
+ * @default `useUniqueId()`
43
+ */
44
+ id: string;
45
+ }, {}, {
46
+ id: string;
47
+ /**
48
+ * Determines the max width of the pill. If the pill text is longer than the max width,
49
+ * text will be truncated and a tooltip will show the rest of the content when hovered over
50
+ */
51
+ maxWidth: import("react").ReactText;
52
+ /**
53
+ * Use to disable a pill.
54
+ */
55
+ disabled: boolean;
56
+ }, {}, {
57
+ state: {
58
+ id: string;
59
+ /**
60
+ * Determines the max width of the pill. If the pill text is longer than the max width,
61
+ * text will be truncated and a tooltip will show the rest of the content when hovered over
62
+ */
63
+ maxWidth: import("react").ReactText;
64
+ /**
65
+ * Use to disable a pill.
66
+ */
67
+ disabled: boolean;
68
+ };
69
+ events: {};
70
+ }>;
71
+ //# sourceMappingURL=usePillModel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePillModel.d.ts","sourceRoot":"","sources":["../../../../pill/lib/usePillModel.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;IAErB;;;OAGG;;IAEH;;OAEG;;IAEH;;;OAGG;;;;;QAZH;;;WAGG;;QAEH;;WAEG;;;;;IAPH;;;OAGG;;IAEH;;OAEG;;IAEH;;;OAGG;;;;IAZH;;;OAGG;;IAEH;;OAEG;;;;;QAPH;;;WAGG;;QAEH;;WAEG;;;;EAgBL,CAAC"}
@@ -0,0 +1,34 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { createModelHook, useUniqueId } from '@workday/canvas-kit-react/common';
13
+ export var usePillModel = createModelHook({
14
+ defaultConfig: {
15
+ /**
16
+ * Determines the max width of the pill. If the pill text is longer than the max width,
17
+ * text will be truncated and a tooltip will show the rest of the content when hovered over
18
+ */
19
+ maxWidth: 200,
20
+ /**
21
+ * Use to disable a pill.
22
+ */
23
+ disabled: false,
24
+ /**
25
+ * ID used to add accessibility labels to pill elements.
26
+ * @default `useUniqueId()`
27
+ */
28
+ id: '',
29
+ },
30
+ })(function (config) {
31
+ var id = useUniqueId(config.id);
32
+ var state = __assign(__assign({}, config), { id: id });
33
+ return { state: state, events: {} };
34
+ });
@@ -2,5 +2,5 @@ import Select from './lib/Select';
2
2
  export default Select;
3
3
  export { Select };
4
4
  export * from './lib/Select';
5
- export { Option, RenderableOption, RenderOptionFunction } from './lib/SelectBase';
5
+ export { Option, RenderableOption, RenderOptionFunction, RenderSelectedFunction, } from './lib/SelectBase';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../select/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,eAAe,MAAM,CAAC;AACtB,OAAO,EAAC,MAAM,EAAC,CAAC;AAChB,cAAc,cAAc,CAAC;AAE7B,OAAO,EAAC,MAAM,EAAE,gBAAgB,EAAE,oBAAoB,EAAC,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../select/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,eAAe,MAAM,CAAC;AACtB,OAAO,EAAC,MAAM,EAAC,CAAC;AAChB,cAAc,cAAc,CAAC;AAE7B,OAAO,EACL,MAAM,EACN,gBAAgB,EAChB,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,kBAAkB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../select/lib/Select.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,SAAS,EAKV,MAAM,kCAAkC,CAAC;AAE1C,OAAmB,EAAC,mBAAmB,EAAE,MAAM,EAAmB,MAAM,cAAc,CAAC;AAIvF,MAAM,WAAW,WAAY,SAAQ,mBAAmB;IACtD;;;;;;;;;;;;;;OAcG;IACH,OAAO,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;CAC9B;AAmiBD,eAAO,MAAM,MAAM;;CAUjB,CAAC;AAEH,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../select/lib/Select.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,SAAS,EAKV,MAAM,kCAAkC,CAAC;AAE1C,OAAmB,EAAC,mBAAmB,EAAE,MAAM,EAAmB,MAAM,cAAc,CAAC;AAIvF,MAAM,WAAW,WAAY,SAAQ,mBAAmB;IACtD;;;;;;;;;;;;;;OAcG;IACH,OAAO,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;CAC9B;AAoiBD,eAAO,MAAM,MAAM;;CAUjB,CAAC;AAEH,eAAe,MAAM,CAAC"}
@@ -2,7 +2,7 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
@@ -439,6 +439,7 @@ var SelectContainer = /** @class */ (function (_super) {
439
439
  // (2) Either update the current value of buttonRef if it was a ref object,
440
440
  // or call buttonRef with the underlying button element if it was a
441
441
  // callback ref.
442
+ // eslint-disable-next-line react-hooks/rules-of-hooks
442
443
  _this.forwardedButtonRef = useForkRef(props.buttonRef, _this.localButtonRef);
443
444
  return _this;
444
445
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SelectBase.d.ts","sourceRoot":"","sources":["../../../../select/lib/Sel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oot":"","sources":["../../../../select/lib/SelectMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0D,MAAM,OAAO,CAAC;AAG/E,OAAO,EAAgC,SAAS,EAAS,MAAM,kCAAkC,CAAC;AAYlG,OAAO,EAAC,WAAW,EAAC,MAAM,UAAU,CAAC;AAErC,OAAO,EAAC,aAAa,EAAE,cAAc,EAAC,MAAM,SAAS,CAAC;AAEtD,UAAU,eACR,SAAQ,SAAS,EACf,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC,EACtC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;IAC/C;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;OAGG;IACH,UAAU,CAAC,EAAE,cAAc,CAAC;CAC7B;AAED,eAAO,MAAM,qBAAqB,MAAM,CAAC;AAwKzC,QAAA,MAAM,UAAU,2HAWb,eAAe,gBA2DjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SelectOption.d.ts","sourceRoot":"","sources":["../../../../select/lib/SelectOption.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAEL,SAAS,EACT,SAAS,EAGV,MAAM,kCAAkC,CAAC;AAG1C,MAAM,WAAW,iBAAkB,SAAQ,SAAS,EAAE,KAAK,CAAC,gBAAgB,CAAC,aAAa,CAAC;IACzF;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IACrC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAqED,QAAA,MAAM,YAAY,wGAoBjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"SelectOption.d.ts","sourceRoot":"","sources":["../../../../select/lib/SelectOption.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAEL,SAAS,EACT,SAAS,EAGV,MAAM,kCAAkC,CAAC;AAG1C,MAAM,WAAW,iBAAkB,SAAQ,SAAS,EAAE,KAAK,CAAC,gBAAgB,CAAC,aAAa,CAAC;IACzF;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IACrC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAqED,QAAA,MAAM,YAAY,uEAOf,iBAAiB,gBAanB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"scrolling.d.ts","sourceRoot":"","sources":["../../../../select/lib/scrolling.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,sBAAsB,uDAqClC,CAAC"}
1
+ {"version":3,"file":"scrolling.d.ts","sourceRoot":"","sources":["../../../../select/lib/scrolling.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,sBAAsB,SAAU,WAAW,+BAA0B,IAqCjF,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../select/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAE9C,eAAO,MAAM,eAAe,oEAY3B,CAAC;AAGF,eAAO,MAAM,wBAAwB,oEAOpC,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../select/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAE9C,eAAO,MAAM,eAAe,YAAa,gBAAgB,EAAE,SAAS,MAAM,GAAG,SAAS,KAAG,MAYxF,CAAC;AAGF,eAAO,MAAM,wBAAwB,YAC1B,gBAAgB,EAAE,SACpB,MAAM,GAAG,SAAS,KACxB,MAIF,CAAC"}
@@ -1,6 +1,8 @@
1
+ /** @jsxRuntime classic */
1
2
  /** @jsx jsx */
2
3
  import * as React from 'react';
3
- import { IconButtonProps } from '@workday/canvas-kit-react/button';
4
+ import { jsx } from '@emotion/react';
5
+ import { TertiaryButtonProps } from '@workday/canvas-kit-react/button';
4
6
  export declare type SidePanelVariant = 'standard' | 'alternate';
5
7
  export declare type SidePanelTransitionStates = 'collapsed' | 'collapsing' | 'expanded' | 'expanding';
6
8
  export interface SidePanelProps extends React.HTMLAttributes<HTMLDivElement> {
@@ -48,7 +50,7 @@ export interface SidePanelProps extends React.HTMLAttributes<HTMLDivElement> {
48
50
  */
49
51
  onStateTransition?: (state?: SidePanelTransitionStates) => void;
50
52
  /**
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.
53
+ * The style variant of the side panel. 'standard' is with a `soap100` background, no depth. 'alternate' is a `frenchVanilla100` background with a level 6 depth.
52
54
  *
53
55
  * @default 'standard'
54
56
  */
@@ -65,9 +67,20 @@ export declare const SidePanelContext: React.Context<{
65
67
  origin: string;
66
68
  }>;
67
69
  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, "size" | "icon" | "children" | "value" | "theme" | "shouldMirrorIcon" | "variant" | "onToggleChange" | "toggled"> & React.ButtonHTMLAttributes<HTMLButtonElement>) => JSX.Element;
70
+ ({ as, children, collapsedWidth, expanded, expandedWidth, onAnimationEnd, onAnimationStart, onExpandedChange, onStateTransition, origin, variant, touched, ...elemProps }: SidePanelProps): jsx.JSX.Element;
71
+ ToggleButton: ({ variant, icon, tooltipTextExpand: expandLabel, tooltipTextCollapse: collapseLabel, ...rest }: ToggleButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement>) => jsx.JSX.Element;
72
+ };
73
+ export declare type ToggleButtonProps = TertiaryButtonProps & {
74
+ /**
75
+ * The tooltip text to expand the side panel
76
+ * @default 'Expand'
77
+ */
78
+ tooltipTextExpand?: string;
79
+ /**
80
+ * The tooltip text to collapse the side panel
81
+ * @default 'Collapse'
82
+ */
83
+ tooltipTextCollapse?: string;
70
84
  };
71
- export declare type ToggleButtonProps = Omit<IconButtonProps, 'aria-label'>;
72
85
  export default SidePanel;
73
86
  //# sourceMappingURL=SidePanel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SidePanel.d.ts","sourceRoot":"","sources":["../../../../side-panel/lib/SidePanel.tsx"],"names":[],"mappings":"AAAA,eAAe;AACf,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAa,eAAe,EAAC,MAAM,kCAAkC,CAAC;AAI7E,oBAAY,gBAAgB,GAAG,UAAU,GAAG,WAAW,CAAC;AACxD,oBAAY,yBAAyB,GAAG,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G,WAAW,GAAG,YAAY,GAAG,UAAU,GAAG,WAAW,CAAC;AAE9F,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC1E;;;;OAIG;IACH,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACvB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACjC;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAChC;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC1B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAChE;;;;OAIG;IACH,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAsCD,eAAO,MAAM,gBAAgB;;;EAG3B,CAAC;AAEH,QAAA,MAAM,SAAS;+KAcZ,cAAc;mHA0Gd,iBAAiB,GAAG,MAAM,oBAAoB,CAAC,iBAAiB,CAAC;CAxBnE,CAAC;AAEF,oBAAY,iBAAiB,GAAG,mBAAmB,GAAG;IACpD;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAgDF,eAAe,SAAS,CAAC"}
@@ -24,13 +24,15 @@ var __rest = (this && this.__rest) || function (s, e) {
24
24
  }
25
25
  return t;
26
26
  };
27
+ /** @jsxRuntime classic */
27
28
  /** @jsx jsx */
28
29
  import * as React from 'react';
29
30
  import { styled, useIsRTL } from '@workday/canvas-kit-react/common';
30
- import { css, jsx, keyframes } from '@emotion/core';
31
- import { IconButton } from '@workday/canvas-kit-react/button';
31
+ import { css, jsx, keyframes } from '@emotion/react';
32
+ import { TertiaryButton } from '@workday/canvas-kit-react/button';
32
33
  import { space, colors, depth } from '@workday/canvas-kit-react/tokens';
33
34
  import { transformationImportIcon } from '@workday/canvas-system-icons-web';
35
+ import { Tooltip } from '@workday/canvas-kit-react/tooltip';
34
36
  var createKeyframes = function (from, to) {
35
37
  var normalized = {
36
38
  from: typeof from === 'number' ? from + 'px' : from,
@@ -39,7 +41,7 @@ var createKeyframes = function (from, to) {
39
41
  return keyframes(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n from {\n width: ", ";\n min-width: ", ";\n max-width: ", ";\n } to {\n width: ", ";\n min-width: ", ";\n max-width: ", ";\n }\n "], ["\n from {\n width: ", ";\n min-width: ", ";\n max-width: ", ";\n } to {\n width: ", ";\n min-width: ", ";\n max-width: ", ";\n }\n "])), normalized.from, normalized.from, normalized.from, normalized.to, normalized.to, normalized.to);
40
42
  };
41
43
  var containerVariantStyle = {
42
- alternate: __assign({ backgroundColor: colors.frenchVanilla100 }, depth[3]),
44
+ alternate: __assign({ backgroundColor: colors.frenchVanilla100 }, depth[5]),
43
45
  standard: {
44
46
  backgroundColor: colors.soap100,
45
47
  },
@@ -116,7 +118,7 @@ var SidePanel = function (_a) {
116
118
  * A toggle button styled specifically for the side panel container.
117
119
  */
118
120
  var ToggleButton = function (_a) {
119
- var _b = _a.variant, variant = _b === void 0 ? 'plain' : _b, _c = _a.icon, icon = _c === void 0 ? transformationImportIcon : _c, rest = __rest(_a, ["variant", "icon"]);
121
+ var _b = _a.variant, variant = _b === void 0 ? undefined : _b, _c = _a.icon, icon = _c === void 0 ? transformationImportIcon : _c, _d = _a.tooltipTextExpand, expandLabel = _d === void 0 ? 'Expand' : _d, _e = _a.tooltipTextCollapse, collapseLabel = _e === void 0 ? 'Collapse' : _e, rest = __rest(_a, ["variant", "icon", "tooltipTextExpand", "tooltipTextCollapse"]);
120
122
  var context = React.useContext(SidePanelContext);
121
123
  var useRTLOrigin = function () {
122
124
  var isRTL = useIsRTL();
@@ -132,6 +134,7 @@ var ToggleButton = function (_a) {
132
134
  var buttonStyle = css({
133
135
  position: 'absolute',
134
136
  top: space.m,
137
+ width: space.l,
135
138
  right: context.state === 'collapsed' ? 0 : rtlOrigin === 'left' ? space.s : undefined,
136
139
  left: context.state === 'collapsed' ? 0 : rtlOrigin === 'right' ? space.s : undefined,
137
140
  margin: context.state === 'collapsed' ? 'auto' : 0,
@@ -139,8 +142,8 @@ var ToggleButton = function (_a) {
139
142
  ? "scaleX(" + (rtlOrigin === 'left' ? '1' : '-1') + ")"
140
143
  : "scaleX(" + (rtlOrigin === 'left' ? '-1' : '1') + ")",
141
144
  });
142
- // @ts-ignore aria-label type error here. The user will decide to use aria-label or aria-labelledby
143
- return jsx(IconButton, __assign({ type: "button", css: buttonStyle, icon: icon, variant: variant }, rest));
145
+ return (jsx(Tooltip, { title: context.state === 'collapsed' ? expandLabel : collapseLabel, type: "muted" },
146
+ jsx(TertiaryButton, __assign({ type: "button", css: buttonStyle, icon: icon, variant: variant }, rest))));
144
147
  };
145
148
  SidePanel.ToggleButton = ToggleButton;
146
149
  export default SidePanel;
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../side-panel/lib/hooks.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;OAGG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,YAAY;IAC3B;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,YAAY;;;;;;CAyDxB,CAAC"}
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../side-panel/lib/hooks.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;OAGG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,YAAY;IAC3B;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,YAAY;;oCA2BsB,OAAO;;;;CA8BrD,CAAC"}
@@ -1,22 +1,63 @@
1
1
  import React from 'react';
2
2
  import { ExtractProps } from '@workday/canvas-kit-react/common';
3
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
4
  export interface TextAreaProps extends ExtractProps<typeof FormField, never> {
11
- model?: TextAreaModel;
12
5
  /**
13
6
  * Children of the Text Input. Should contain a `<TextArea.Field>`, a `<TextArea.Label>` and an optional `<TextArea.Hint>`
14
7
  */
15
8
  children: React.ReactNode;
16
9
  }
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>;
10
+ export declare const TextArea: import("@workday/canvas-kit-react/common").ElementComponentM<"div", TextAreaProps & Partial<{
11
+ hasError: boolean;
12
+ id: string;
13
+ isRequired: boolean;
14
+ }> & {} & {}, {
15
+ state: {
16
+ id: string;
17
+ hasError: boolean;
18
+ isRequired: boolean;
19
+ };
20
+ events: {};
21
+ }> & {
22
+ Context: React.Context<{
23
+ state: {
24
+ id: string;
25
+ hasError: boolean;
26
+ isRequired: boolean;
27
+ };
28
+ events: {};
29
+ }>;
30
+ } & {
31
+ Field: import("@workday/canvas-kit-react/common").ElementComponentM<"textarea", import("@workday/canvas-kit-react/layout").BorderShorthandStyleProps & import("@workday/canvas-kit-react/layout").BorderColorStyleProps & import("@workday/canvas-kit-react/layout").BorderRadiusStyleProps & import("@workday/canvas-kit-react/layout").BorderLineStyleProps & import("@workday/canvas-kit-react/layout").BorderWidthStyleProps & import("@workday/canvas-kit-react/layout").BorderLogicalStyleProps & import("@workday/canvas-kit-react/layout").ColorStyleProps & import("@workday/canvas-kit-react/layout").DepthStyleProps & import("@workday/canvas-kit-react/layout").FlexItemStyleProps & import("@workday/canvas-kit-react/layout").LayoutStyleProps & import("@workday/canvas-kit-react/layout/lib/utils/other").OtherStyleProps & import("@workday/canvas-kit-react/layout").PositionStandardProps & import("@workday/canvas-kit-react/layout").PositionLogicalProps & import("@workday/canvas-kit-react/layout/lib/utils/space").SpaceStandardProps & import("@workday/canvas-kit-react/layout/lib/utils/space").SpaceLogicalProps & import("@workday/canvas-kit-react/common").PropsWithModel<{
32
+ state: {
33
+ id: string;
34
+ hasError: boolean;
35
+ isRequired: boolean;
36
+ };
37
+ events: {};
38
+ }>, {
39
+ state: {
40
+ id: string;
41
+ hasError: boolean;
42
+ isRequired: boolean;
43
+ };
44
+ events: {};
45
+ }>;
46
+ Label: import("@workday/canvas-kit-react/common").ElementComponentM<"label", import("../../form-field/lib/FormFieldLabel").FormFieldLabelProps, {
47
+ state: {
48
+ id: string;
49
+ hasError: boolean;
50
+ isRequired: boolean;
51
+ };
52
+ events: {};
53
+ }>;
54
+ Hint: import("@workday/canvas-kit-react/common").ElementComponentM<"p", import("@workday/canvas-kit-react/layout").BorderShorthandStyleProps & import("@workday/canvas-kit-react/layout").BorderColorStyleProps & import("@workday/canvas-kit-react/layout").BorderRadiusStyleProps & import("@workday/canvas-kit-react/layout").BorderLineStyleProps & import("@workday/canvas-kit-react/layout").BorderWidthStyleProps & import("@workday/canvas-kit-react/layout").BorderLogicalStyleProps & import("@workday/canvas-kit-react/layout").ColorStyleProps & import("@workday/canvas-kit-react/layout").DepthStyleProps & import("@workday/canvas-kit-react/layout").FlexItemStyleProps & import("@workday/canvas-kit-react/layout").LayoutStyleProps & import("@workday/canvas-kit-react/layout/lib/utils/other").OtherStyleProps & import("@workday/canvas-kit-react/layout").PositionStandardProps & import("@workday/canvas-kit-react/layout").PositionLogicalProps & import("@workday/canvas-kit-react/layout/lib/utils/space").SpaceStandardProps & import("@workday/canvas-kit-react/layout/lib/utils/space").SpaceLogicalProps, {
55
+ state: {
56
+ id: string;
57
+ hasError: boolean;
58
+ isRequired: boolean;
59
+ };
60
+ events: {};
61
+ }>;
21
62
  };
22
63
  //# sourceMappingURL=TextArea.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../text-area/lib/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAkB,YAAY,EAAkB,MAAM,kCAAkC,CAAC;AAChG,OAAO,EACL,SAAS,EAGV,MAAM,8CAA8C,CAAC;AAGtD,OAAO,EAAC,aAAa,EAAmB,MAAM,SAAS,CAAC;AAKxD,eAAO,MAAM,oBAAoB;;;;OAAwB,CAAC;AAE1D,MAAM,WAAW,aAAc,SAAQ,YAAY,CAAC,OAAO,SAAS,EAAE,KAAK,CAAC;IAC1E,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,QAAQ;;;;CAqBnB,CAAC"}
1
+ {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../text-area/lib/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAkB,YAAY,EAAC,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAC,SAAS,EAA0B,MAAM,8CAA8C,CAAC;AAMhG,MAAM,WAAW,aAAc,SAAQ,YAAY,CAAC,OAAO,SAAS,EAAE,KAAK,CAAC;IAC1E;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBnB,CAAC"}
@@ -21,27 +21,21 @@ var __rest = (this && this.__rest) || function (s, e) {
21
21
  return t;
22
22
  };
23
23
  import React from 'react';
24
- import { createComponent, useDefaultModel } from '@workday/canvas-kit-react/common';
25
- import { FormFieldModelContext, useFormFieldOrientation, } from '@workday/canvas-kit-preview-react/form-field';
26
- import { Stack } from '@workday/canvas-kit-labs-react/layout';
24
+ import { createContainer } from '@workday/canvas-kit-react/common';
25
+ import { FormField, useFormFieldOrientation } from '@workday/canvas-kit-preview-react/form-field';
26
+ import { Stack } from '@workday/canvas-kit-react/layout';
27
27
  import { useTextAreaModel } from './hooks';
28
28
  import { TextAreaField } from './TextAreaField';
29
- import { TextAreaLabel } from './TextAreaLabel';
30
- import { TextAreaHint } from './TextAreaHint';
31
- export var TextAreaModelContext = FormFieldModelContext;
32
- export var TextArea = createComponent()({
29
+ export var TextArea = createContainer('div')({
33
30
  displayName: 'TextArea',
34
- Component: function (_a, ref) {
35
- var children = _a.children, model = _a.model, orientation = _a.orientation, props = __rest(_a, ["children", "model", "orientation"]);
36
- var hasError = props.hasError, id = props.id, isRequired = props.isRequired, elemProps = __rest(props, ["hasError", "id", "isRequired"]);
37
- var value = useDefaultModel(model, { hasError: hasError, id: id, isRequired: isRequired }, useTextAreaModel);
38
- var layoutProps = useFormFieldOrientation(orientation);
39
- return (React.createElement(TextAreaModelContext.Provider, { value: value },
40
- React.createElement(Stack, __assign({ ref: ref }, layoutProps, elemProps), children)));
41
- },
31
+ modelHook: useTextAreaModel,
42
32
  subComponents: {
43
33
  Field: TextAreaField,
44
- Label: TextAreaLabel,
45
- Hint: TextAreaHint,
34
+ Label: FormField.Label,
35
+ Hint: FormField.Hint,
46
36
  },
37
+ })(function (_a, Element) {
38
+ var children = _a.children, orientation = _a.orientation, elemProps = __rest(_a, ["children", "orientation"]);
39
+ var layoutProps = useFormFieldOrientation(orientation);
40
+ return (React.createElement(Stack, __assign({ as: Element }, layoutProps, elemProps), children));
47
41
  });