@workday/canvas-kit-preview-react 6.8.9 → 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 (478) 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 +20 -1
  121. package/dist/commonjs/select/lib/SelectBase.d.ts.map +1 -1
  122. package/dist/commonjs/select/lib/SelectBase.js +26 -11
  123. package/dist/commonjs/select/lib/SelectMenu.d.ts.map +1 -1
  124. package/dist/commonjs/select/lib/SelectMenu.js +20 -7
  125. package/dist/commonjs/select/lib/SelectOption.d.ts.map +1 -1
  126. package/dist/commonjs/select/lib/SelectOption.js +19 -7
  127. package/dist/commonjs/select/lib/scrolling.d.ts.map +1 -1
  128. package/dist/commonjs/select/lib/scrolling.js +3 -1
  129. package/dist/commonjs/select/lib/utils.d.ts.map +1 -1
  130. package/dist/commonjs/select/lib/utils.js +5 -2
  131. package/dist/commonjs/side-panel/index.js +13 -5
  132. package/dist/commonjs/side-panel/lib/SidePanel.d.ts +18 -5
  133. package/dist/commonjs/side-panel/lib/SidePanel.d.ts.map +1 -1
  134. package/dist/commonjs/side-panel/lib/SidePanel.js +32 -16
  135. package/dist/commonjs/side-panel/lib/hooks.d.ts.map +1 -1
  136. package/dist/commonjs/side-panel/lib/hooks.js +17 -3
  137. package/dist/commonjs/text-area/index.js +11 -4
  138. package/dist/commonjs/text-area/lib/TextArea.d.ts +52 -11
  139. package/dist/commonjs/text-area/lib/TextArea.d.ts.map +1 -1
  140. package/dist/commonjs/text-area/lib/TextArea.js +10 -15
  141. package/dist/commonjs/text-area/lib/TextAreaField.d.ts +15 -7
  142. package/dist/commonjs/text-area/lib/TextAreaField.d.ts.map +1 -1
  143. package/dist/commonjs/text-area/lib/TextAreaField.js +19 -18
  144. package/dist/commonjs/text-area/lib/hooks/index.js +11 -4
  145. package/dist/commonjs/text-area/lib/hooks/useTextAreaModel.d.ts +27 -7
  146. package/dist/commonjs/text-area/lib/hooks/useTextAreaModel.d.ts.map +1 -1
  147. package/dist/commonjs/text-area/lib/hooks/useTextAreaModel.js +1 -0
  148. package/dist/commonjs/text-input/index.js +12 -5
  149. package/dist/commonjs/text-input/lib/TextInput.d.ts +59 -11
  150. package/dist/commonjs/text-input/lib/TextInput.d.ts.map +1 -1
  151. package/dist/commonjs/text-input/lib/TextInput.js +10 -15
  152. package/dist/commonjs/text-input/lib/TextInputField.d.ts +15 -7
  153. package/dist/commonjs/text-input/lib/TextInputField.d.ts.map +1 -1
  154. package/dist/commonjs/text-input/lib/TextInputField.js +18 -30
  155. package/dist/commonjs/text-input/lib/hooks/index.js +12 -5
  156. package/dist/commonjs/text-input/lib/hooks/useTextInputField.d.ts +8 -2
  157. package/dist/commonjs/text-input/lib/hooks/useTextInputField.d.ts.map +1 -1
  158. package/dist/commonjs/text-input/lib/hooks/useTextInputField.js +3 -1
  159. package/dist/commonjs/text-input/lib/hooks/useTextInputModel.d.ts +27 -7
  160. package/dist/commonjs/text-input/lib/hooks/useTextInputModel.d.ts.map +1 -1
  161. package/dist/commonjs/text-input/lib/hooks/useTextInputModel.js +1 -0
  162. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Button.d.ts +3 -3
  163. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Button.d.ts.map +1 -1
  164. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Button.js +36 -11
  165. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.d.ts +0 -1
  166. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.d.ts.map +1 -1
  167. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.js +8 -7
  168. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.d.ts +1 -2
  169. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.d.ts.map +1 -1
  170. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/index.d.ts.map +1 -1
  171. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/Collapsible.d.ts.map +1 -1
  172. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/CurrentItem.d.ts.map +1 -1
  173. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/CurrentItem.js +1 -1
  174. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/Link.d.ts.map +1 -1
  175. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/ListItem.d.ts +0 -1
  176. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/ListItem.d.ts.map +1 -1
  177. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/ListItem.js +4 -7
  178. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/hooks.d.ts +1 -1
  179. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/hooks.d.ts.map +1 -1
  180. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/index.d.ts +1 -2
  181. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/index.d.ts.map +1 -1
  182. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/index.js +9 -16
  183. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/styles.d.ts +1 -1
  184. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/styles.d.ts.map +1 -1
  185. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Nav.d.ts.map +1 -1
  186. package/dist/es6/breadcrumbs/lib/Breadcrumbs/index.d.ts +1 -2
  187. package/dist/es6/breadcrumbs/lib/Breadcrumbs/index.d.ts.map +1 -1
  188. package/dist/es6/breadcrumbs/lib/Breadcrumbs/types.js +1 -0
  189. package/dist/es6/color-picker/lib/ColorPicker.d.ts.map +1 -1
  190. package/dist/es6/color-picker/lib/ColorPicker.js +3 -3
  191. package/dist/es6/color-picker/lib/parts/ColorReset.d.ts.map +1 -1
  192. package/dist/es6/color-picker/lib/parts/SwatchBook.d.ts.map +1 -1
  193. package/dist/es6/form-field/lib/FormField.d.ts +47 -13
  194. package/dist/es6/form-field/lib/FormField.d.ts.map +1 -1
  195. package/dist/es6/form-field/lib/FormField.js +9 -13
  196. package/dist/es6/form-field/lib/FormFieldHint.d.ts +8 -12
  197. package/dist/es6/form-field/lib/FormFieldHint.d.ts.map +1 -1
  198. package/dist/es6/form-field/lib/FormFieldHint.js +17 -19
  199. package/dist/es6/form-field/lib/FormFieldInput.d.ts +8 -7
  200. package/dist/es6/form-field/lib/FormFieldInput.d.ts.map +1 -1
  201. package/dist/es6/form-field/lib/FormFieldInput.js +8 -22
  202. package/dist/es6/form-field/lib/FormFieldLabel.d.ts +9 -4
  203. package/dist/es6/form-field/lib/FormFieldLabel.d.ts.map +1 -1
  204. package/dist/es6/form-field/lib/FormFieldLabel.js +19 -24
  205. package/dist/es6/form-field/lib/hooks/useFormFieldHint.d.ts +8 -6
  206. package/dist/es6/form-field/lib/hooks/useFormFieldHint.d.ts.map +1 -1
  207. package/dist/es6/form-field/lib/hooks/useFormFieldHint.js +3 -2
  208. package/dist/es6/form-field/lib/hooks/useFormFieldInput.d.ts +8 -6
  209. package/dist/es6/form-field/lib/hooks/useFormFieldInput.d.ts.map +1 -1
  210. package/dist/es6/form-field/lib/hooks/useFormFieldInput.js +3 -2
  211. package/dist/es6/form-field/lib/hooks/useFormFieldLabel.d.ts +8 -6
  212. package/dist/es6/form-field/lib/hooks/useFormFieldLabel.d.ts.map +1 -1
  213. package/dist/es6/form-field/lib/hooks/useFormFieldLabel.js +3 -2
  214. package/dist/es6/form-field/lib/hooks/useFormFieldModel.d.ts +77 -15
  215. package/dist/es6/form-field/lib/hooks/useFormFieldModel.d.ts.map +1 -1
  216. package/dist/es6/form-field/lib/hooks/useFormFieldModel.js +42 -15
  217. package/dist/es6/form-field/lib/hooks/useFormFieldOrientation.d.ts +5 -4
  218. package/dist/es6/form-field/lib/hooks/useFormFieldOrientation.d.ts.map +1 -1
  219. package/dist/es6/index.d.ts +1 -0
  220. package/dist/es6/index.d.ts.map +1 -1
  221. package/dist/es6/index.js +1 -0
  222. package/dist/es6/menu/lib/Menu.d.ts.map +1 -1
  223. package/dist/es6/menu/lib/Menu.js +2 -2
  224. package/dist/es6/menu/lib/MenuItem.d.ts.map +1 -1
  225. package/dist/es6/menu/lib/MenuItem.js +1 -1
  226. package/dist/es6/pill/index.d.ts +3 -0
  227. package/dist/es6/pill/index.d.ts.map +1 -0
  228. package/dist/es6/pill/index.js +2 -0
  229. package/dist/es6/pill/lib/Pill.d.ts +65 -0
  230. package/dist/es6/pill/lib/Pill.d.ts.map +1 -0
  231. package/dist/es6/pill/lib/Pill.js +165 -0
  232. package/dist/es6/pill/lib/PillAvatar.d.ts +13 -0
  233. package/dist/es6/pill/lib/PillAvatar.d.ts.map +1 -0
  234. package/dist/es6/pill/lib/PillAvatar.js +23 -0
  235. package/dist/es6/pill/lib/PillCount.d.ts +5 -0
  236. package/dist/es6/pill/lib/PillCount.d.ts.map +1 -0
  237. package/dist/es6/pill/lib/PillCount.js +39 -0
  238. package/dist/es6/pill/lib/PillIcon.d.ts +19 -0
  239. package/dist/es6/pill/lib/PillIcon.d.ts.map +1 -0
  240. package/dist/es6/pill/lib/PillIcon.js +34 -0
  241. package/dist/es6/pill/lib/PillIconButton.d.ts +24 -0
  242. package/dist/es6/pill/lib/PillIconButton.d.ts.map +1 -0
  243. package/dist/es6/pill/lib/PillIconButton.js +75 -0
  244. package/dist/es6/pill/lib/PillLabel.d.ts +15 -0
  245. package/dist/es6/pill/lib/PillLabel.d.ts.map +1 -0
  246. package/dist/es6/pill/lib/PillLabel.js +41 -0
  247. package/dist/es6/pill/lib/usePillModel.d.ts +71 -0
  248. package/dist/es6/pill/lib/usePillModel.d.ts.map +1 -0
  249. package/dist/es6/pill/lib/usePillModel.js +34 -0
  250. package/dist/es6/select/index.d.ts +1 -1
  251. package/dist/es6/select/index.d.ts.map +1 -1
  252. package/dist/es6/select/lib/Select.d.ts.map +1 -1
  253. package/dist/es6/select/lib/Select.js +2 -1
  254. package/dist/es6/select/lib/SelectBase.d.ts +20 -1
  255. package/dist/es6/select/lib/SelectBase.d.ts.map +1 -1
  256. package/dist/es6/select/lib/SelectBase.js +6 -4
  257. package/dist/es6/select/lib/SelectMenu.d.ts.map +1 -1
  258. package/dist/es6/select/lib/SelectOption.d.ts.map +1 -1
  259. package/dist/es6/select/lib/scrolling.d.ts.map +1 -1
  260. package/dist/es6/select/lib/types.js +1 -0
  261. package/dist/es6/select/lib/utils.d.ts.map +1 -1
  262. package/dist/es6/side-panel/lib/SidePanel.d.ts +18 -5
  263. package/dist/es6/side-panel/lib/SidePanel.d.ts.map +1 -1
  264. package/dist/es6/side-panel/lib/SidePanel.js +9 -6
  265. package/dist/es6/side-panel/lib/hooks.d.ts.map +1 -1
  266. package/dist/es6/text-area/lib/TextArea.d.ts +52 -11
  267. package/dist/es6/text-area/lib/TextArea.d.ts.map +1 -1
  268. package/dist/es6/text-area/lib/TextArea.js +11 -17
  269. package/dist/es6/text-area/lib/TextAreaField.d.ts +15 -7
  270. package/dist/es6/text-area/lib/TextAreaField.d.ts.map +1 -1
  271. package/dist/es6/text-area/lib/TextAreaField.js +19 -19
  272. package/dist/es6/text-area/lib/hooks/useTextAreaModel.d.ts +27 -7
  273. package/dist/es6/text-area/lib/hooks/useTextAreaModel.d.ts.map +1 -1
  274. package/dist/es6/text-input/lib/TextInput.d.ts +59 -11
  275. package/dist/es6/text-input/lib/TextInput.d.ts.map +1 -1
  276. package/dist/es6/text-input/lib/TextInput.js +11 -17
  277. package/dist/es6/text-input/lib/TextInputField.d.ts +15 -7
  278. package/dist/es6/text-input/lib/TextInputField.d.ts.map +1 -1
  279. package/dist/es6/text-input/lib/TextInputField.js +19 -32
  280. package/dist/es6/text-input/lib/hooks/useTextInputField.d.ts +8 -2
  281. package/dist/es6/text-input/lib/hooks/useTextInputField.d.ts.map +1 -1
  282. package/dist/es6/text-input/lib/hooks/useTextInputField.js +3 -2
  283. package/dist/es6/text-input/lib/hooks/useTextInputModel.d.ts +27 -7
  284. package/dist/es6/text-input/lib/hooks/useTextInputModel.d.ts.map +1 -1
  285. package/form-field/lib/FormField.tsx +14 -29
  286. package/form-field/lib/FormFieldHint.tsx +28 -38
  287. package/form-field/lib/FormFieldInput.tsx +8 -15
  288. package/form-field/lib/FormFieldLabel.tsx +30 -39
  289. package/form-field/lib/hooks/useFormFieldHint.tsx +3 -3
  290. package/form-field/lib/hooks/useFormFieldInput.tsx +3 -3
  291. package/form-field/lib/hooks/useFormFieldLabel.tsx +3 -3
  292. package/form-field/lib/hooks/useFormFieldModel.tsx +32 -53
  293. package/form-field/lib/hooks/useFormFieldOrientation.tsx +1 -1
  294. package/form-field/package.json +2 -1
  295. package/index.ts +1 -0
  296. package/menu/lib/Menu.tsx +1 -1
  297. package/menu/package.json +2 -1
  298. package/package.json +14 -22
  299. package/pill/LICENSE +52 -0
  300. package/pill/README.md +5 -0
  301. package/pill/index.ts +2 -0
  302. package/pill/lib/Pill.tsx +226 -0
  303. package/pill/lib/PillAvatar.tsx +27 -0
  304. package/pill/lib/PillCount.tsx +39 -0
  305. package/pill/lib/PillIcon.tsx +34 -0
  306. package/pill/lib/PillIconButton.tsx +100 -0
  307. package/pill/lib/PillLabel.tsx +36 -0
  308. package/pill/lib/usePillModel.tsx +28 -0
  309. package/pill/package.json +6 -0
  310. package/select/index.ts +6 -1
  311. package/select/lib/Select.tsx +1 -0
  312. package/select/lib/SelectBase.tsx +27 -3
  313. package/select/lib/SelectMenu.tsx +1 -1
  314. package/select/lib/SelectOption.tsx +1 -1
  315. package/select/package.json +2 -1
  316. package/side-panel/lib/SidePanel.tsx +28 -9
  317. package/side-panel/package.json +2 -1
  318. package/text-area/lib/TextArea.tsx +16 -30
  319. package/text-area/lib/TextAreaField.tsx +32 -45
  320. package/text-area/lib/hooks/useTextAreaModel.ts +1 -3
  321. package/text-area/package.json +2 -1
  322. package/text-input/lib/TextInput.tsx +16 -30
  323. package/text-input/lib/TextInputField.tsx +33 -44
  324. package/text-input/lib/hooks/useTextInputField.tsx +3 -2
  325. package/text-input/lib/hooks/useTextInputModel.ts +1 -3
  326. package/text-input/package.json +2 -1
  327. package/dist/commonjs/text-area/lib/TextAreaHint.d.ts +0 -5
  328. package/dist/commonjs/text-area/lib/TextAreaHint.d.ts.map +0 -1
  329. package/dist/commonjs/text-area/lib/TextAreaHint.js +0 -4
  330. package/dist/commonjs/text-area/lib/TextAreaLabel.d.ts +0 -5
  331. package/dist/commonjs/text-area/lib/TextAreaLabel.d.ts.map +0 -1
  332. package/dist/commonjs/text-area/lib/TextAreaLabel.js +0 -4
  333. package/dist/commonjs/text-input/lib/TextInputHint.d.ts +0 -5
  334. package/dist/commonjs/text-input/lib/TextInputHint.d.ts.map +0 -1
  335. package/dist/commonjs/text-input/lib/TextInputHint.js +0 -4
  336. package/dist/commonjs/text-input/lib/TextInputLabel.d.ts +0 -5
  337. package/dist/commonjs/text-input/lib/TextInputLabel.d.ts.map +0 -1
  338. package/dist/commonjs/text-input/lib/TextInputLabel.js +0 -4
  339. package/dist/es6/text-area/lib/TextAreaHint.d.ts +0 -5
  340. package/dist/es6/text-area/lib/TextAreaHint.d.ts.map +0 -1
  341. package/dist/es6/text-area/lib/TextAreaHint.js +0 -2
  342. package/dist/es6/text-area/lib/TextAreaLabel.d.ts +0 -5
  343. package/dist/es6/text-area/lib/TextAreaLabel.d.ts.map +0 -1
  344. package/dist/es6/text-area/lib/TextAreaLabel.js +0 -2
  345. package/dist/es6/text-input/lib/TextInputHint.d.ts +0 -5
  346. package/dist/es6/text-input/lib/TextInputHint.d.ts.map +0 -1
  347. package/dist/es6/text-input/lib/TextInputHint.js +0 -2
  348. package/dist/es6/text-input/lib/TextInputLabel.d.ts +0 -5
  349. package/dist/es6/text-input/lib/TextInputLabel.d.ts.map +0 -1
  350. package/dist/es6/text-input/lib/TextInputLabel.js +0 -2
  351. package/text-area/lib/TextAreaHint.tsx +0 -6
  352. package/text-area/lib/TextAreaLabel.tsx +0 -6
  353. package/text-input/lib/TextInputHint.tsx +0 -6
  354. package/text-input/lib/TextInputLabel.tsx +0 -6
  355. package/ts3.5/dist/commonjs/breadcrumbs/index.d.ts +0 -5
  356. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Button.d.ts +0 -20
  357. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.d.ts +0 -39
  358. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/MenuItemLink.d.ts +0 -14
  359. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.d.ts +0 -14
  360. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/index.d.ts +0 -8
  361. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/Collapsible.d.ts +0 -16
  362. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/CurrentItem.d.ts +0 -11
  363. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/Link.d.ts +0 -19
  364. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/ListItem.d.ts +0 -5
  365. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/hooks.d.ts +0 -19
  366. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/index.d.ts +0 -5
  367. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/styles.d.ts +0 -3
  368. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Nav.d.ts +0 -11
  369. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/hooks.d.ts +0 -5
  370. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/index.d.ts +0 -10
  371. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/types.d.ts +0 -8
  372. package/ts3.5/dist/commonjs/color-picker/index.d.ts +0 -2
  373. package/ts3.5/dist/commonjs/color-picker/lib/ColorPicker.d.ts +0 -55
  374. package/ts3.5/dist/commonjs/color-picker/lib/parts/ColorReset.d.ts +0 -7
  375. package/ts3.5/dist/commonjs/color-picker/lib/parts/SwatchBook.d.ts +0 -7
  376. package/ts3.5/dist/commonjs/form-field/index.d.ts +0 -3
  377. package/ts3.5/dist/commonjs/form-field/lib/FormField.d.ts +0 -31
  378. package/ts3.5/dist/commonjs/form-field/lib/FormFieldHint.d.ts +0 -13
  379. package/ts3.5/dist/commonjs/form-field/lib/FormFieldInput.d.ts +0 -8
  380. package/ts3.5/dist/commonjs/form-field/lib/FormFieldLabel.d.ts +0 -18
  381. package/ts3.5/dist/commonjs/form-field/lib/hooks/index.d.ts +0 -6
  382. package/ts3.5/dist/commonjs/form-field/lib/hooks/useFormFieldHint.d.ts +0 -15
  383. package/ts3.5/dist/commonjs/form-field/lib/hooks/useFormFieldInput.d.ts +0 -18
  384. package/ts3.5/dist/commonjs/form-field/lib/hooks/useFormFieldLabel.d.ts +0 -15
  385. package/ts3.5/dist/commonjs/form-field/lib/hooks/useFormFieldModel.d.ts +0 -36
  386. package/ts3.5/dist/commonjs/form-field/lib/hooks/useFormFieldOrientation.d.ts +0 -9
  387. package/ts3.5/dist/commonjs/index.d.ts +0 -9
  388. package/ts3.5/dist/commonjs/menu/index.d.ts +0 -6
  389. package/ts3.5/dist/commonjs/menu/lib/Menu.d.ts +0 -61
  390. package/ts3.5/dist/commonjs/menu/lib/MenuItem.d.ts +0 -53
  391. package/ts3.5/dist/commonjs/select/index.d.ts +0 -6
  392. package/ts3.5/dist/commonjs/select/lib/Select.d.ts +0 -25
  393. package/ts3.5/dist/commonjs/select/lib/SelectBase.d.ts +0 -123
  394. package/ts3.5/dist/commonjs/select/lib/SelectMenu.d.ts +0 -42
  395. package/ts3.5/dist/commonjs/select/lib/SelectOption.d.ts +0 -33
  396. package/ts3.5/dist/commonjs/select/lib/scrolling.d.ts +0 -2
  397. package/ts3.5/dist/commonjs/select/lib/types.d.ts +0 -33
  398. package/ts3.5/dist/commonjs/select/lib/utils.d.ts +0 -4
  399. package/ts3.5/dist/commonjs/side-panel/index.d.ts +0 -6
  400. package/ts3.5/dist/commonjs/side-panel/lib/SidePanel.d.ts +0 -73
  401. package/ts3.5/dist/commonjs/side-panel/lib/hooks.d.ts +0 -80
  402. package/ts3.5/dist/commonjs/text-area/index.d.ts +0 -2
  403. package/ts3.5/dist/commonjs/text-area/lib/TextArea.d.ts +0 -22
  404. package/ts3.5/dist/commonjs/text-area/lib/TextAreaField.d.ts +0 -8
  405. package/ts3.5/dist/commonjs/text-area/lib/TextAreaHint.d.ts +0 -5
  406. package/ts3.5/dist/commonjs/text-area/lib/TextAreaLabel.d.ts +0 -5
  407. package/ts3.5/dist/commonjs/text-area/lib/hooks/index.d.ts +0 -2
  408. package/ts3.5/dist/commonjs/text-area/lib/hooks/useTextAreaModel.d.ts +0 -8
  409. package/ts3.5/dist/commonjs/text-input/index.d.ts +0 -3
  410. package/ts3.5/dist/commonjs/text-input/lib/TextInput.d.ts +0 -22
  411. package/ts3.5/dist/commonjs/text-input/lib/TextInputField.d.ts +0 -8
  412. package/ts3.5/dist/commonjs/text-input/lib/TextInputHint.d.ts +0 -5
  413. package/ts3.5/dist/commonjs/text-input/lib/TextInputLabel.d.ts +0 -5
  414. package/ts3.5/dist/commonjs/text-input/lib/hooks/index.d.ts +0 -3
  415. package/ts3.5/dist/commonjs/text-input/lib/hooks/useTextInputField.d.ts +0 -10
  416. package/ts3.5/dist/commonjs/text-input/lib/hooks/useTextInputModel.d.ts +0 -8
  417. package/ts3.5/dist/es6/breadcrumbs/index.d.ts +0 -5
  418. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Button.d.ts +0 -20
  419. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.d.ts +0 -39
  420. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/MenuItemLink.d.ts +0 -14
  421. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.d.ts +0 -14
  422. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/index.d.ts +0 -8
  423. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/List/Collapsible.d.ts +0 -16
  424. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/List/CurrentItem.d.ts +0 -11
  425. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/List/Link.d.ts +0 -19
  426. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/List/ListItem.d.ts +0 -5
  427. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/List/hooks.d.ts +0 -19
  428. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/List/index.d.ts +0 -5
  429. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/List/styles.d.ts +0 -3
  430. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/Nav.d.ts +0 -11
  431. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/hooks.d.ts +0 -5
  432. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/index.d.ts +0 -10
  433. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/types.d.ts +0 -8
  434. package/ts3.5/dist/es6/color-picker/index.d.ts +0 -2
  435. package/ts3.5/dist/es6/color-picker/lib/ColorPicker.d.ts +0 -55
  436. package/ts3.5/dist/es6/color-picker/lib/parts/ColorReset.d.ts +0 -7
  437. package/ts3.5/dist/es6/color-picker/lib/parts/SwatchBook.d.ts +0 -7
  438. package/ts3.5/dist/es6/form-field/index.d.ts +0 -3
  439. package/ts3.5/dist/es6/form-field/lib/FormField.d.ts +0 -31
  440. package/ts3.5/dist/es6/form-field/lib/FormFieldHint.d.ts +0 -13
  441. package/ts3.5/dist/es6/form-field/lib/FormFieldInput.d.ts +0 -8
  442. package/ts3.5/dist/es6/form-field/lib/FormFieldLabel.d.ts +0 -18
  443. package/ts3.5/dist/es6/form-field/lib/hooks/index.d.ts +0 -6
  444. package/ts3.5/dist/es6/form-field/lib/hooks/useFormFieldHint.d.ts +0 -15
  445. package/ts3.5/dist/es6/form-field/lib/hooks/useFormFieldInput.d.ts +0 -18
  446. package/ts3.5/dist/es6/form-field/lib/hooks/useFormFieldLabel.d.ts +0 -15
  447. package/ts3.5/dist/es6/form-field/lib/hooks/useFormFieldModel.d.ts +0 -36
  448. package/ts3.5/dist/es6/form-field/lib/hooks/useFormFieldOrientation.d.ts +0 -9
  449. package/ts3.5/dist/es6/index.d.ts +0 -9
  450. package/ts3.5/dist/es6/menu/index.d.ts +0 -6
  451. package/ts3.5/dist/es6/menu/lib/Menu.d.ts +0 -61
  452. package/ts3.5/dist/es6/menu/lib/MenuItem.d.ts +0 -53
  453. package/ts3.5/dist/es6/select/index.d.ts +0 -6
  454. package/ts3.5/dist/es6/select/lib/Select.d.ts +0 -25
  455. package/ts3.5/dist/es6/select/lib/SelectBase.d.ts +0 -123
  456. package/ts3.5/dist/es6/select/lib/SelectMenu.d.ts +0 -42
  457. package/ts3.5/dist/es6/select/lib/SelectOption.d.ts +0 -33
  458. package/ts3.5/dist/es6/select/lib/scrolling.d.ts +0 -2
  459. package/ts3.5/dist/es6/select/lib/types.d.ts +0 -33
  460. package/ts3.5/dist/es6/select/lib/utils.d.ts +0 -4
  461. package/ts3.5/dist/es6/side-panel/index.d.ts +0 -6
  462. package/ts3.5/dist/es6/side-panel/lib/SidePanel.d.ts +0 -73
  463. package/ts3.5/dist/es6/side-panel/lib/hooks.d.ts +0 -80
  464. package/ts3.5/dist/es6/text-area/index.d.ts +0 -2
  465. package/ts3.5/dist/es6/text-area/lib/TextArea.d.ts +0 -22
  466. package/ts3.5/dist/es6/text-area/lib/TextAreaField.d.ts +0 -8
  467. package/ts3.5/dist/es6/text-area/lib/TextAreaHint.d.ts +0 -5
  468. package/ts3.5/dist/es6/text-area/lib/TextAreaLabel.d.ts +0 -5
  469. package/ts3.5/dist/es6/text-area/lib/hooks/index.d.ts +0 -2
  470. package/ts3.5/dist/es6/text-area/lib/hooks/useTextAreaModel.d.ts +0 -8
  471. package/ts3.5/dist/es6/text-input/index.d.ts +0 -3
  472. package/ts3.5/dist/es6/text-input/lib/TextInput.d.ts +0 -22
  473. package/ts3.5/dist/es6/text-input/lib/TextInputField.d.ts +0 -8
  474. package/ts3.5/dist/es6/text-input/lib/TextInputHint.d.ts +0 -5
  475. package/ts3.5/dist/es6/text-input/lib/TextInputLabel.d.ts +0 -5
  476. package/ts3.5/dist/es6/text-input/lib/hooks/index.d.ts +0 -3
  477. package/ts3.5/dist/es6/text-input/lib/hooks/useTextInputField.d.ts +0 -10
  478. package/ts3.5/dist/es6/text-input/lib/hooks/useTextInputModel.d.ts +0 -8
@@ -0,0 +1,23 @@
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 React from 'react';
13
+ import { createSubcomponent } from '@workday/canvas-kit-react/common';
14
+ import { Avatar } from '@workday/canvas-kit-react/avatar';
15
+ import { usePillModel } from './usePillModel';
16
+ // When the component is created, it needs to be a button element to match AvatarProps.
17
+ // Once Avatar becomes a `createComponent` we can default the element type to a `div`
18
+ // and the types should be properly extracted
19
+ export var PillAvatar = createSubcomponent('button')({
20
+ modelHook: usePillModel,
21
+ })(function (elemProps, Element, model) {
22
+ return (React.createElement(Avatar, __assign({ style: { opacity: model.state.disabled ? '.7' : '1' }, as: "div", size: 18, altText: undefined }, elemProps, { disabled: model.state.disabled }), elemProps.children));
23
+ });
@@ -0,0 +1,5 @@
1
+ import { FlexProps } from '@workday/canvas-kit-react/layout';
2
+ export interface PillCountProps extends FlexProps {
3
+ }
4
+ export declare const PillCount: import("@workday/canvas-kit-react/common").ElementComponent<"span", PillCountProps>;
5
+ //# sourceMappingURL=PillCount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PillCount.d.ts","sourceRoot":"","sources":["../../../../pill/lib/PillCount.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAO,SAAS,EAAC,MAAM,kCAAkC,CAAC;AAGjE,MAAM,WAAW,cAAe,SAAQ,SAAS;CAAG;AASpD,eAAO,MAAM,SAAS,qFAuBpB,CAAC"}
@@ -0,0 +1,39 @@
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 { createComponent, styled } from '@workday/canvas-kit-react/common';
25
+ import { Flex } from '@workday/canvas-kit-react/layout';
26
+ import { borderRadius, colors, space } from '@workday/canvas-kit-react/tokens';
27
+ var StyledCountContainer = styled(Flex.as('span'))({
28
+ borderTopLeftRadius: borderRadius.zero,
29
+ borderTopRightRadius: borderRadius.m,
30
+ borderBottomLeftRadius: borderRadius.zero,
31
+ borderBottomRightRadius: borderRadius.m,
32
+ });
33
+ export var PillCount = createComponent('span')({
34
+ displayName: 'Pill.Avatar',
35
+ Component: function (_a, ref, Element) {
36
+ var children = _a.children, elemProps = __rest(_a, ["children"]);
37
+ return (React.createElement(StyledCountContainer, __assign({ display: "inline-flex", alignItems: "center", justifyContent: "center", as: Element, height: 22, minWidth: 22, padding: "0 " + space.xxxs, marginInlineEnd: "-" + space.xxs, marginInlineStart: "" + space.xxxs, backgroundColor: colors.soap500, "data-count": "ck-pill-count", ref: ref }, elemProps), children));
38
+ },
39
+ });
@@ -0,0 +1,19 @@
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 PillIconProps extends Omit<SystemIconProps, 'icon'> {
5
+ /**
6
+ * The system icon rendered by the component
7
+ * @default `plusIcon`
8
+ */
9
+ icon?: CanvasSystemIcon;
10
+ }
11
+ export declare const PillIcon: import("@workday/canvas-kit-react/common").ElementComponentM<"span", PillIconProps, {
12
+ state: {
13
+ id: string;
14
+ maxWidth: React.ReactText;
15
+ disabled: boolean;
16
+ };
17
+ events: {};
18
+ }>;
19
+ //# sourceMappingURL=PillIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PillIcon.d.ts","sourceRoot":"","sources":["../../../../pill/lib/PillIcon.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;AAG9D,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,eAAe,EAAE,MAAM,CAAC;IAClE;;;OAGG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;CACzB;AAED,eAAO,MAAM,QAAQ;;;;;;;EAenB,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
+ 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
  }
@@ -17,6 +17,9 @@ export interface NormalizedOption extends Option {
17
17
  id: string;
18
18
  label: string;
19
19
  }
20
+ export interface RenderSelectedFunction {
21
+ (option: NormalizedOption): React.ReactNode;
22
+ }
20
23
  export interface RenderableOption extends NormalizedOption {
21
24
  focused: boolean;
22
25
  selected: boolean;
@@ -47,6 +50,22 @@ export interface CoreSelectBaseProps extends Themeable, GrowthBehavior, Pick<Rea
47
50
  * @default defaultRenderOption
48
51
  */
49
52
  renderOption?: RenderOptionFunction;
53
+ /**
54
+ * The function called to render the selected option.
55
+ *
56
+ * The `option` argument passed to the function is an object which contains the following:
57
+ *
58
+ * * `data: object` (data object carried over from the corresponding option originally passed into the component)
59
+ * * `disabled: boolean`
60
+ * * `id: string`
61
+ * * `label: string`
62
+ * * `value: string`
63
+ *
64
+ * If you omit the `renderSelected` prop, each option will be rendered using a `defaultRenderSelected` function provided by the component.
65
+ *
66
+ * @default defaultRenderSelected
67
+ */
68
+ renderSelected?: RenderSelectedFunction;
50
69
  /**
51
70
  * The value of the Select.
52
71
  */
@@ -118,6 +137,6 @@ export interface SelectBaseProps extends CoreSelectBaseProps, StyledType {
118
137
  }
119
138
  export declare const buttonBorderWidth = 1;
120
139
  export declare const buttonDefaultWidth = 280;
121
- declare const SelectBase: ({ "aria-labelledby": ariaLabelledBy, "aria-required": ariaRequired, as, forwardedButtonRef, localButtonRef, disabled, error, focusedOptionIndex, grow, inputRef, menuPlacement, menuRef, menuVisibility, onChange, onKeyDown, onClose, onOptionSelection, options, renderOption, required, shouldMenuAutoFlip, shouldMenuAutoFocus, value, ...elemProps }: SelectBaseProps) => JSX.Element;
140
+ declare const SelectBase: ({ "aria-labelledby": ariaLabelledBy, "aria-required": ariaRequired, as, forwardedButtonRef, localButtonRef, disabled, error, focusedOptionIndex, grow, inputRef, menuPlacement, menuRef, menuVisibility, onChange, onKeyDown, onClose, onOptionSelection, options, renderOption, renderSelected, required, shouldMenuAutoFlip, shouldMenuAutoFocus, value, ...elemProps }: SelectBaseProps) => JSX.Element;
122
141
  export default SelectBase;
123
142
  //# sourceMappingURL=SelectBase.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SelectBase.d.ts","sourceRoot":"","sources":["../../../../select/lib/SelectBase.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAE7C,OAAO,EACL,cAAc,EACd,SAAS,EACT,UAAU,EACV,SAAS,EAIV,MAAM,kCAAkC,CAAC;AAe1C,OAAO,EAAC,aAAa,EAAE,cAAc,EAAC,MAAM,SAAS,CAAC;AAGtD,UAAU,UAAU;IAIlB,CAAC,GAAG,EAAE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AAmB,EAAE,UAAU;IACtE;;OAEG;IACH,kBAAkB,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IAClD;;OAEG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;IACpD;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IACvC;;;OAGG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C;;;OAGG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAC9D;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C;;;;;;;OAOG;IACH,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,eAAO,MAAM,iBAAiB,IAAI,CAAC;AACnC,eAAO,MAAM,kBAAkB,MAAM,CAAC;AA8GtC,QAAA,MAAM,UAAU,8WA0Bb,eAAe,gBAgKjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -101,10 +101,13 @@ var SelectWrapper = styled('div')({
101
101
  });
102
102
  });
103
103
  var defaultRenderOption = function (option) {
104
- return React.createElement("div", null, option.label);
104
+ return React.createElement("div", null, defaultRenderSelected(option));
105
+ };
106
+ var defaultRenderSelected = function (option) {
107
+ return option.label;
105
108
  };
106
109
  var SelectBase = function (_a) {
107
- var ariaLabelledBy = _a["aria-labelledby"], ariaRequired = _a["aria-required"], as = _a.as, forwardedButtonRef = _a.forwardedButtonRef, localButtonRef = _a.localButtonRef, disabled = _a.disabled, error = _a.error, _b = _a.focusedOptionIndex, focusedOptionIndex = _b === void 0 ? 0 : _b, grow = _a.grow, inputRef = _a.inputRef, _c = _a.menuPlacement, menuPlacement = _c === void 0 ? 'bottom' : _c, menuRef = _a.menuRef, _d = _a.menuVisibility, menuVisibility = _d === void 0 ? 'closed' : _d, onChange = _a.onChange, onKeyDown = _a.onKeyDown, onClose = _a.onClose, onOptionSelection = _a.onOptionSelection, options = _a.options, _e = _a.renderOption, renderOption = _e === void 0 ? defaultRenderOption : _e, required = _a.required, _f = _a.shouldMenuAutoFlip, shouldMenuAutoFlip = _f === void 0 ? true : _f, _g = _a.shouldMenuAutoFocus, shouldMenuAutoFocus = _g === void 0 ? true : _g, value = _a.value, elemProps = __rest(_a, ['aria-labelledby', 'aria-required', "as", "forwardedButtonRef", "localButtonRef", "disabled", "error", "focusedOptionIndex", "grow", "inputRef", "menuPlacement", "menuRef", "menuVisibility", "onChange", "onKeyDown", "onClose", "onOptionSelection", "options", "renderOption", "required", "shouldMenuAutoFlip", "shouldMenuAutoFocus", "value"]);
110
+ var ariaLabelledBy = _a["aria-labelledby"], ariaRequired = _a["aria-required"], as = _a.as, forwardedButtonRef = _a.forwardedButtonRef, localButtonRef = _a.localButtonRef, disabled = _a.disabled, error = _a.error, _b = _a.focusedOptionIndex, focusedOptionIndex = _b === void 0 ? 0 : _b, grow = _a.grow, inputRef = _a.inputRef, _c = _a.menuPlacement, menuPlacement = _c === void 0 ? 'bottom' : _c, menuRef = _a.menuRef, _d = _a.menuVisibility, menuVisibility = _d === void 0 ? 'closed' : _d, onChange = _a.onChange, onKeyDown = _a.onKeyDown, onClose = _a.onClose, onOptionSelection = _a.onOptionSelection, options = _a.options, _e = _a.renderOption, renderOption = _e === void 0 ? defaultRenderOption : _e, _f = _a.renderSelected, renderSelected = _f === void 0 ? defaultRenderSelected : _f, required = _a.required, _g = _a.shouldMenuAutoFlip, shouldMenuAutoFlip = _g === void 0 ? true : _g, _h = _a.shouldMenuAutoFocus, shouldMenuAutoFocus = _h === void 0 ? true : _h, value = _a.value, elemProps = __rest(_a, ['aria-labelledby', 'aria-required', "as", "forwardedButtonRef", "localButtonRef", "disabled", "error", "focusedOptionIndex", "grow", "inputRef", "menuPlacement", "menuRef", "menuVisibility", "onChange", "onKeyDown", "onClose", "onOptionSelection", "options", "renderOption", "renderSelected", "required", "shouldMenuAutoFlip", "shouldMenuAutoFocus", "value"]);
108
111
  var focusedOptionRef = React.useRef(null);
109
112
  var menuId = useUniqueId();
110
113
  var renderOptions = function (renderOption) {
@@ -179,7 +182,6 @@ var SelectBase = function (_a) {
179
182
  // Do a bit of error-checking in case options weren't provided
180
183
  var hasOptions = options.length > 0;
181
184
  var selectedOption = hasOptions ? options[getCorrectedIndexByValue(options, value)] : null;
182
- var selectedOptionLabel = selectedOption ? selectedOption.label : '';
183
185
  var selectedOptionValue = selectedOption ? selectedOption.value : '';
184
186
  return (React.createElement(SelectWrapper, { grow: grow, disabled: disabled },
185
187
  React.createElement(SelectButton, __assign({ "aria-expanded": menuVisibility !== 'closed' ? 'true' : undefined, "aria-haspopup": "listbox", "aria-controls": menuVisibility !== 'closed' ? menuId : undefined, as: as, disabled: disabled, error: error, grow: grow, menuVisibility: menuVisibility, onKeyDown: onKeyDown,
@@ -188,7 +190,7 @@ var SelectBase = function (_a) {
188
190
  // the menu)
189
191
  onKeyUp: function (e) {
190
192
  e.preventDefault();
191
- }, ref: forwardedButtonRef, type: "button", value: selectedOptionValue }, elemProps), selectedOptionLabel),
193
+ }, ref: forwardedButtonRef, type: "button", value: selectedOptionValue }, elemProps), !!selectedOption && renderSelected(selectedOption)),
192
194
  React.createElement(SelectInput, { onChange: onChange, ref: inputRef, type: "text", value: selectedOptionValue }),
193
195
  hasOptions && menuVisibility !== 'closed' && (React.createElement(SelectMenu, { "aria-activedescendant": options[focusedOptionIndex].id, "aria-labelledby": ariaLabelledBy, "aria-required": ariaRequired || required ? true : undefined, buttonRef: localButtonRef, id: menuId, error: error, menuRef: menuRef, onKeyDown: onKeyDown, onClose: onClose, placement: menuPlacement, shouldAutoFlip: shouldMenuAutoFlip, shouldAutoFocus: shouldMenuAutoFocus, visibility: menuVisibility }, renderOptions(renderOption))),
194
196
  React.createElement(SelectMenuIcon, { className: "menu-icon", icon: caretDownSmallIcon, color: disabled ? colors.licorice100 : colors.licorice200, colorHover: disabled ? colors.licorice100 : colors.licorice500, size: menuIconSize })));
@@ -1 +1 @@
1
- {"version":3,"file":"SelectMenu.d.ts","sourceRoot":"","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,0JAsEf,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"SelectMenu.d.ts","sourceRoot":"","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,OA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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;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