@workday/canvas-kit-preview-react 7.0.0-alpha.0-next.3 → 7.0.0-alpha.0-next.7

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 (215) hide show
  1. package/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.tsx +3 -3
  2. package/breadcrumbs/lib/Breadcrumbs/List/ListItem.tsx +1 -1
  3. package/breadcrumbs/lib/Breadcrumbs/List/index.tsx +1 -1
  4. package/breadcrumbs/lib/Breadcrumbs/List/styles.ts +1 -1
  5. package/dist/commonjs/breadcrumbs/index.js +13 -5
  6. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Button.js +1 -0
  7. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.d.ts.map +1 -1
  8. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.js +5 -3
  9. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/MenuItemLink.js +20 -7
  10. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.d.ts +1 -2
  11. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.d.ts.map +1 -1
  12. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.js +5 -2
  13. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/index.d.ts.map +1 -1
  14. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/index.js +3 -1
  15. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/Collapsible.d.ts.map +1 -1
  16. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/Collapsible.js +22 -8
  17. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/CurrentItem.d.ts.map +1 -1
  18. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/CurrentItem.js +3 -1
  19. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/Link.d.ts.map +1 -1
  20. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/Link.js +3 -1
  21. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/ListItem.js +4 -2
  22. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/hooks.d.ts +1 -1
  23. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/hooks.d.ts.map +1 -1
  24. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/hooks.js +21 -5
  25. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/index.js +2 -1
  26. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/styles.d.ts +1 -1
  27. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/styles.d.ts.map +1 -1
  28. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/styles.js +3 -1
  29. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Nav.d.ts.map +1 -1
  30. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Nav.js +3 -1
  31. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/hooks.js +3 -1
  32. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/index.js +1 -0
  33. package/dist/commonjs/color-picker/index.js +6 -2
  34. package/dist/commonjs/color-picker/lib/ColorPicker.d.ts.map +1 -1
  35. package/dist/commonjs/color-picker/lib/ColorPicker.js +19 -7
  36. package/dist/commonjs/color-picker/lib/parts/ColorReset.d.ts.map +1 -1
  37. package/dist/commonjs/color-picker/lib/parts/ColorReset.js +17 -3
  38. package/dist/commonjs/color-picker/lib/parts/SwatchBook.d.ts.map +1 -1
  39. package/dist/commonjs/color-picker/lib/parts/SwatchBook.js +17 -3
  40. package/dist/commonjs/form-field/index.js +12 -5
  41. package/dist/commonjs/form-field/lib/FormField.d.ts +1 -1
  42. package/dist/commonjs/form-field/lib/FormField.d.ts.map +1 -1
  43. package/dist/commonjs/form-field/lib/FormField.js +2 -1
  44. package/dist/commonjs/form-field/lib/FormFieldHint.d.ts +1 -1
  45. package/dist/commonjs/form-field/lib/FormFieldHint.d.ts.map +1 -1
  46. package/dist/commonjs/form-field/lib/FormFieldHint.js +3 -2
  47. package/dist/commonjs/form-field/lib/FormFieldInput.d.ts +1 -1
  48. package/dist/commonjs/form-field/lib/FormFieldInput.d.ts.map +1 -1
  49. package/dist/commonjs/form-field/lib/FormFieldInput.js +3 -2
  50. package/dist/commonjs/form-field/lib/FormFieldLabel.d.ts +1 -1
  51. package/dist/commonjs/form-field/lib/FormFieldLabel.d.ts.map +1 -1
  52. package/dist/commonjs/form-field/lib/FormFieldLabel.js +3 -3
  53. package/dist/commonjs/form-field/lib/hooks/index.js +15 -8
  54. package/dist/commonjs/form-field/lib/hooks/useFormFieldHint.d.ts +0 -1
  55. package/dist/commonjs/form-field/lib/hooks/useFormFieldHint.d.ts.map +1 -1
  56. package/dist/commonjs/form-field/lib/hooks/useFormFieldHint.js +1 -0
  57. package/dist/commonjs/form-field/lib/hooks/useFormFieldInput.d.ts +0 -1
  58. package/dist/commonjs/form-field/lib/hooks/useFormFieldInput.d.ts.map +1 -1
  59. package/dist/commonjs/form-field/lib/hooks/useFormFieldInput.js +1 -0
  60. package/dist/commonjs/form-field/lib/hooks/useFormFieldLabel.d.ts +0 -1
  61. package/dist/commonjs/form-field/lib/hooks/useFormFieldLabel.d.ts.map +1 -1
  62. package/dist/commonjs/form-field/lib/hooks/useFormFieldLabel.js +1 -0
  63. package/dist/commonjs/form-field/lib/hooks/useFormFieldModel.d.ts +1 -1
  64. package/dist/commonjs/form-field/lib/hooks/useFormFieldModel.d.ts.map +1 -1
  65. package/dist/commonjs/form-field/lib/hooks/useFormFieldModel.js +3 -1
  66. package/dist/commonjs/form-field/lib/hooks/useFormFieldOrientation.d.ts +5 -4
  67. package/dist/commonjs/form-field/lib/hooks/useFormFieldOrientation.d.ts.map +1 -1
  68. package/dist/commonjs/form-field/lib/hooks/useFormFieldOrientation.js +3 -1
  69. package/dist/commonjs/index.js +18 -11
  70. package/dist/commonjs/menu/index.js +12 -4
  71. package/dist/commonjs/menu/lib/Menu.d.ts.map +1 -1
  72. package/dist/commonjs/menu/lib/Menu.js +20 -8
  73. package/dist/commonjs/menu/lib/MenuItem.d.ts.map +1 -1
  74. package/dist/commonjs/menu/lib/MenuItem.js +20 -8
  75. package/dist/commonjs/select/index.js +12 -4
  76. package/dist/commonjs/select/lib/Select.d.ts.map +1 -1
  77. package/dist/commonjs/select/lib/Select.js +22 -8
  78. package/dist/commonjs/select/lib/SelectBase.d.ts.map +1 -1
  79. package/dist/commonjs/select/lib/SelectBase.js +20 -7
  80. package/dist/commonjs/select/lib/SelectMenu.d.ts.map +1 -1
  81. package/dist/commonjs/select/lib/SelectMenu.js +20 -7
  82. package/dist/commonjs/select/lib/SelectOption.d.ts.map +1 -1
  83. package/dist/commonjs/select/lib/SelectOption.js +19 -7
  84. package/dist/commonjs/select/lib/scrolling.d.ts.map +1 -1
  85. package/dist/commonjs/select/lib/scrolling.js +3 -1
  86. package/dist/commonjs/select/lib/utils.d.ts.map +1 -1
  87. package/dist/commonjs/select/lib/utils.js +5 -2
  88. package/dist/commonjs/side-panel/index.js +13 -5
  89. package/dist/commonjs/side-panel/lib/SidePanel.d.ts +3 -13
  90. package/dist/commonjs/side-panel/lib/SidePanel.d.ts.map +1 -1
  91. package/dist/commonjs/side-panel/lib/SidePanel.js +29 -16
  92. package/dist/commonjs/side-panel/lib/hooks.d.ts.map +1 -1
  93. package/dist/commonjs/side-panel/lib/hooks.js +17 -3
  94. package/dist/commonjs/text-area/index.js +11 -4
  95. package/dist/commonjs/text-area/lib/TextArea.js +2 -1
  96. package/dist/commonjs/text-area/lib/TextAreaField.js +3 -2
  97. package/dist/commonjs/text-area/lib/TextAreaHint.js +1 -0
  98. package/dist/commonjs/text-area/lib/TextAreaLabel.js +1 -0
  99. package/dist/commonjs/text-area/lib/hooks/index.js +11 -4
  100. package/dist/commonjs/text-area/lib/hooks/useTextAreaModel.js +1 -0
  101. package/dist/commonjs/text-input/index.js +12 -5
  102. package/dist/commonjs/text-input/lib/TextInput.js +2 -1
  103. package/dist/commonjs/text-input/lib/TextInputField.js +3 -2
  104. package/dist/commonjs/text-input/lib/TextInputHint.js +1 -0
  105. package/dist/commonjs/text-input/lib/TextInputLabel.js +1 -0
  106. package/dist/commonjs/text-input/lib/hooks/index.js +12 -5
  107. package/dist/commonjs/text-input/lib/hooks/useTextInputField.d.ts +0 -1
  108. package/dist/commonjs/text-input/lib/hooks/useTextInputField.d.ts.map +1 -1
  109. package/dist/commonjs/text-input/lib/hooks/useTextInputField.js +1 -0
  110. package/dist/commonjs/text-input/lib/hooks/useTextInputModel.js +1 -0
  111. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.d.ts.map +1 -1
  112. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.js +1 -1
  113. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.d.ts +1 -2
  114. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.d.ts.map +1 -1
  115. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/index.d.ts.map +1 -1
  116. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/Collapsible.d.ts.map +1 -1
  117. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/CurrentItem.d.ts.map +1 -1
  118. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/Link.d.ts.map +1 -1
  119. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/ListItem.js +1 -1
  120. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/hooks.d.ts +1 -1
  121. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/hooks.d.ts.map +1 -1
  122. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/index.js +1 -1
  123. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/styles.d.ts +1 -1
  124. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/styles.d.ts.map +1 -1
  125. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Nav.d.ts.map +1 -1
  126. package/dist/es6/breadcrumbs/lib/Breadcrumbs/types.js +1 -0
  127. package/dist/es6/color-picker/lib/ColorPicker.d.ts.map +1 -1
  128. package/dist/es6/color-picker/lib/parts/ColorReset.d.ts.map +1 -1
  129. package/dist/es6/color-picker/lib/parts/SwatchBook.d.ts.map +1 -1
  130. package/dist/es6/form-field/lib/FormField.d.ts +1 -1
  131. package/dist/es6/form-field/lib/FormField.d.ts.map +1 -1
  132. package/dist/es6/form-field/lib/FormField.js +1 -1
  133. package/dist/es6/form-field/lib/FormFieldHint.d.ts +1 -1
  134. package/dist/es6/form-field/lib/FormFieldHint.d.ts.map +1 -1
  135. package/dist/es6/form-field/lib/FormFieldHint.js +1 -1
  136. package/dist/es6/form-field/lib/FormFieldInput.d.ts +1 -1
  137. package/dist/es6/form-field/lib/FormFieldInput.d.ts.map +1 -1
  138. package/dist/es6/form-field/lib/FormFieldInput.js +1 -1
  139. package/dist/es6/form-field/lib/FormFieldLabel.d.ts +1 -1
  140. package/dist/es6/form-field/lib/FormFieldLabel.d.ts.map +1 -1
  141. package/dist/es6/form-field/lib/FormFieldLabel.js +1 -2
  142. package/dist/es6/form-field/lib/hooks/useFormFieldHint.d.ts +0 -1
  143. package/dist/es6/form-field/lib/hooks/useFormFieldHint.d.ts.map +1 -1
  144. package/dist/es6/form-field/lib/hooks/useFormFieldInput.d.ts +0 -1
  145. package/dist/es6/form-field/lib/hooks/useFormFieldInput.d.ts.map +1 -1
  146. package/dist/es6/form-field/lib/hooks/useFormFieldLabel.d.ts +0 -1
  147. package/dist/es6/form-field/lib/hooks/useFormFieldLabel.d.ts.map +1 -1
  148. package/dist/es6/form-field/lib/hooks/useFormFieldModel.d.ts +1 -1
  149. package/dist/es6/form-field/lib/hooks/useFormFieldModel.d.ts.map +1 -1
  150. package/dist/es6/form-field/lib/hooks/useFormFieldOrientation.d.ts +5 -4
  151. package/dist/es6/form-field/lib/hooks/useFormFieldOrientation.d.ts.map +1 -1
  152. package/dist/es6/menu/lib/Menu.d.ts.map +1 -1
  153. package/dist/es6/menu/lib/Menu.js +1 -1
  154. package/dist/es6/menu/lib/MenuItem.d.ts.map +1 -1
  155. package/dist/es6/menu/lib/MenuItem.js +1 -1
  156. package/dist/es6/select/lib/Select.d.ts.map +1 -1
  157. package/dist/es6/select/lib/Select.js +2 -1
  158. package/dist/es6/select/lib/SelectBase.d.ts.map +1 -1
  159. package/dist/es6/select/lib/SelectMenu.d.ts.map +1 -1
  160. package/dist/es6/select/lib/SelectOption.d.ts.map +1 -1
  161. package/dist/es6/select/lib/scrolling.d.ts.map +1 -1
  162. package/dist/es6/select/lib/types.js +1 -0
  163. package/dist/es6/select/lib/utils.d.ts.map +1 -1
  164. package/dist/es6/side-panel/lib/SidePanel.d.ts +3 -13
  165. package/dist/es6/side-panel/lib/SidePanel.d.ts.map +1 -1
  166. package/dist/es6/side-panel/lib/SidePanel.js +2 -2
  167. package/dist/es6/side-panel/lib/hooks.d.ts.map +1 -1
  168. package/dist/es6/text-area/lib/TextArea.js +1 -1
  169. package/dist/es6/text-area/lib/TextAreaField.js +1 -1
  170. package/dist/es6/text-input/lib/TextInput.js +1 -1
  171. package/dist/es6/text-input/lib/TextInputField.js +1 -1
  172. package/dist/es6/text-input/lib/hooks/useTextInputField.d.ts +0 -1
  173. package/dist/es6/text-input/lib/hooks/useTextInputField.d.ts.map +1 -1
  174. package/form-field/lib/FormField.tsx +1 -1
  175. package/form-field/lib/FormFieldHint.tsx +1 -1
  176. package/form-field/lib/FormFieldInput.tsx +1 -1
  177. package/form-field/lib/FormFieldLabel.tsx +1 -2
  178. package/form-field/lib/hooks/useFormFieldOrientation.tsx +1 -1
  179. package/package.json +6 -6
  180. package/select/lib/Select.tsx +1 -0
  181. package/select/lib/SelectMenu.tsx +1 -1
  182. package/select/lib/SelectOption.tsx +1 -1
  183. package/side-panel/lib/SidePanel.tsx +2 -2
  184. package/text-area/lib/TextArea.tsx +1 -1
  185. package/text-area/lib/TextAreaField.tsx +1 -1
  186. package/text-input/lib/TextInput.tsx +1 -1
  187. package/text-input/lib/TextInputField.tsx +1 -1
  188. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.d.ts +1 -2
  189. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/hooks.d.ts +1 -1
  190. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/styles.d.ts +1 -1
  191. package/ts3.5/dist/commonjs/form-field/lib/FormField.d.ts +1 -1
  192. package/ts3.5/dist/commonjs/form-field/lib/FormFieldHint.d.ts +1 -1
  193. package/ts3.5/dist/commonjs/form-field/lib/FormFieldInput.d.ts +1 -1
  194. package/ts3.5/dist/commonjs/form-field/lib/FormFieldLabel.d.ts +1 -1
  195. package/ts3.5/dist/commonjs/form-field/lib/hooks/useFormFieldHint.d.ts +0 -1
  196. package/ts3.5/dist/commonjs/form-field/lib/hooks/useFormFieldInput.d.ts +0 -1
  197. package/ts3.5/dist/commonjs/form-field/lib/hooks/useFormFieldLabel.d.ts +0 -1
  198. package/ts3.5/dist/commonjs/form-field/lib/hooks/useFormFieldModel.d.ts +1 -1
  199. package/ts3.5/dist/commonjs/form-field/lib/hooks/useFormFieldOrientation.d.ts +5 -4
  200. package/ts3.5/dist/commonjs/side-panel/lib/SidePanel.d.ts +3 -13
  201. package/ts3.5/dist/commonjs/text-input/lib/hooks/useTextInputField.d.ts +0 -1
  202. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.d.ts +1 -2
  203. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/List/hooks.d.ts +1 -1
  204. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/List/styles.d.ts +1 -1
  205. package/ts3.5/dist/es6/form-field/lib/FormField.d.ts +1 -1
  206. package/ts3.5/dist/es6/form-field/lib/FormFieldHint.d.ts +1 -1
  207. package/ts3.5/dist/es6/form-field/lib/FormFieldInput.d.ts +1 -1
  208. package/ts3.5/dist/es6/form-field/lib/FormFieldLabel.d.ts +1 -1
  209. package/ts3.5/dist/es6/form-field/lib/hooks/useFormFieldHint.d.ts +0 -1
  210. package/ts3.5/dist/es6/form-field/lib/hooks/useFormFieldInput.d.ts +0 -1
  211. package/ts3.5/dist/es6/form-field/lib/hooks/useFormFieldLabel.d.ts +0 -1
  212. package/ts3.5/dist/es6/form-field/lib/hooks/useFormFieldModel.d.ts +1 -1
  213. package/ts3.5/dist/es6/form-field/lib/hooks/useFormFieldOrientation.d.ts +5 -4
  214. package/ts3.5/dist/es6/side-panel/lib/SidePanel.d.ts +3 -13
  215. package/ts3.5/dist/es6/text-input/lib/hooks/useTextInputField.d.ts +0 -1
@@ -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"}
@@ -23,7 +23,7 @@ var __rest = (this && this.__rest) || function (s, e) {
23
23
  import React from 'react';
24
24
  import { createComponent, useDefaultModel } from '@workday/canvas-kit-react/common';
25
25
  import { FormFieldModelContext, useFormFieldOrientation, } from '@workday/canvas-kit-preview-react/form-field';
26
- import { Stack } from '@workday/canvas-kit-labs-react/layout';
26
+ import { Stack } from '@workday/canvas-kit-react/layout';
27
27
  import { useTextAreaModel } from './hooks';
28
28
  import { TextAreaField } from './TextAreaField';
29
29
  import { TextAreaLabel } from './TextAreaLabel';
@@ -22,7 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
22
22
  };
23
23
  /** @jsxRuntime classic */
24
24
  /** @jsx jsx */
25
- import { jsx } from '@emotion/core';
25
+ import { jsx } from '@emotion/react';
26
26
  import { borderRadius, inputColors, spaceNumbers, type, } from '@workday/canvas-kit-react/tokens';
27
27
  import { createComponent, useModelContext, useTheme, } from '@workday/canvas-kit-react/common';
28
28
  import { useThemedRing } from '@workday/canvas-kit-labs-react/common';
@@ -23,7 +23,7 @@ var __rest = (this && this.__rest) || function (s, e) {
23
23
  import React from 'react';
24
24
  import { createComponent, useDefaultModel } from '@workday/canvas-kit-react/common';
25
25
  import { FormFieldModelContext, useFormFieldOrientation, } from '@workday/canvas-kit-preview-react/form-field';
26
- import { Stack } from '@workday/canvas-kit-labs-react/layout';
26
+ import { Stack } from '@workday/canvas-kit-react/layout';
27
27
  import { useTextInputModel } from './hooks';
28
28
  import { TextInputField } from './TextInputField';
29
29
  import { TextInputLabel } from './TextInputLabel';
@@ -22,7 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
22
22
  };
23
23
  /** @jsxRuntime classic */
24
24
  /** @jsx jsx */
25
- import { jsx } from '@emotion/core';
25
+ import { jsx } from '@emotion/react';
26
26
  import { borderRadius, inputColors, space, type, } from '@workday/canvas-kit-react/tokens';
27
27
  import { createComponent, useModelContext, useTheme, } from '@workday/canvas-kit-react/common';
28
28
  import { useThemedRing } from '@workday/canvas-kit-labs-react/common';
@@ -1,4 +1,3 @@
1
- /// <reference types="@emotion/core" />
2
1
  /**
3
2
  * Adds the necessary props to a `Field` component. Used by the TextInput.Field subcomponent.
4
3
  */
@@ -1 +1 @@
1
- {"version":3,"file":"useTextInputField.d.ts","sourceRoot":"","sources":["../../../../../text-input/lib/hooks/useTextInputField.tsx"],"names":[],"mappings":";AAEA;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;OAI5B,CAAC"}
1
+ {"version":3,"file":"useTextInputField.d.ts","sourceRoot":"","sources":["../../../../../text-input/lib/hooks/useTextInputField.tsx"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;OAI5B,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
 
3
3
  import {createComponent, ExtractProps, useDefaultModel} from '@workday/canvas-kit-react/common';
4
- import {Stack, StackSpacing} from '@workday/canvas-kit-labs-react/layout';
4
+ import {Stack, StackSpacing} from '@workday/canvas-kit-react/layout';
5
5
 
6
6
  import {
7
7
  useFormFieldModel,
@@ -8,7 +8,7 @@ import {
8
8
  StyledType,
9
9
  } from '@workday/canvas-kit-react/common';
10
10
  import {space, type} from '@workday/canvas-kit-react/tokens';
11
- import {Box, BoxProps} from '@workday/canvas-kit-labs-react/common';
11
+ import {Box, BoxProps} from '@workday/canvas-kit-react/layout';
12
12
 
13
13
  import {FormFieldModelContext} from './FormField';
14
14
  import {FormFieldModel, useFormFieldHint} from './hooks';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
 
3
3
  import {createComponent, ExtractProps, useModelContext} from '@workday/canvas-kit-react/common';
4
- import {Box} from '@workday/canvas-kit-labs-react/common';
4
+ import {Box} from '@workday/canvas-kit-react/layout';
5
5
 
6
6
  import {FormFieldModelContext} from './FormField';
7
7
  import {FormFieldModel, useFormFieldInput} from './hooks';
@@ -8,9 +8,8 @@ import {
8
8
  styled,
9
9
  StyledType,
10
10
  } from '@workday/canvas-kit-react/common';
11
- import {Box} from '@workday/canvas-kit-labs-react/common';
11
+ import {Box, HStack, StackSpacing} from '@workday/canvas-kit-react/layout';
12
12
  import {type} from '@workday/canvas-kit-react/tokens';
13
- import {HStack, StackSpacing} from '@workday/canvas-kit-labs-react/layout';
14
13
 
15
14
  import {FormFieldModelContext} from './FormField';
16
15
  import {FormFieldModel, useFormFieldLabel} from './hooks';
@@ -1,4 +1,4 @@
1
- import {StackSpacing, StackProps} from '@workday/canvas-kit-labs-react/layout';
1
+ import {StackSpacing, StackProps} from '@workday/canvas-kit-react/layout';
2
2
  import {space} from '@workday/canvas-kit-react/tokens';
3
3
 
4
4
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-preview-react",
3
- "version": "7.0.0-alpha.0-next.3+14a81c7e",
3
+ "version": "7.0.0-alpha.0-next.7+23568685",
4
4
  "description": "Canvas Kit Preview is made up of components that have the full design and a11y review, are part of the DS ecosystem and are approved for use in product. The API's could be subject to change, but not without strong communication and migration strategies.",
5
5
  "author": "Workday, Inc. (https://www.workday.com)",
6
6
  "license": "Apache-2.0",
@@ -52,17 +52,17 @@
52
52
  "react": "^16.8 || ^17.0"
53
53
  },
54
54
  "dependencies": {
55
- "@emotion/core": "^10.0.28",
56
- "@emotion/styled": "^10.0.27",
57
- "@workday/canvas-kit-react": "^7.0.0-alpha.0-next.3+14a81c7e",
55
+ "@emotion/react": "^11.7.1",
56
+ "@emotion/styled": "^11.6.0",
57
+ "@workday/canvas-kit-react": "^7.0.0-alpha.0-next.7+23568685",
58
58
  "@workday/canvas-system-icons-web": "1.0.41",
59
59
  "@workday/design-assets-types": "^0.2.4"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@workday/canvas-accent-icons-web": "^1.0.0",
63
- "@workday/canvas-kit-labs-react": "^7.0.0-alpha.0-next.3+14a81c7e",
63
+ "@workday/canvas-kit-labs-react": "^7.0.0-alpha.0-next.7+23568685",
64
64
  "formik": "^2.2.9",
65
65
  "yup": "^0.31.1"
66
66
  },
67
- "gitHead": "14a81c7ef3deb9efaf67fa3ec9cc2d2a3161b00b"
67
+ "gitHead": "23568685fec785046d37cb320289d8ab9e74e283"
68
68
  }
@@ -368,6 +368,7 @@ class SelectContainer extends React.Component<SelectContainerProps, SelectContai
368
368
  // (2) Either update the current value of buttonRef if it was a ref object,
369
369
  // or call buttonRef with the underlying button element if it was a
370
370
  // callback ref.
371
+ // eslint-disable-next-line react-hooks/rules-of-hooks
371
372
  this.forwardedButtonRef = useForkRef(props.buttonRef, this.localButtonRef);
372
373
  }
373
374
 
@@ -1,6 +1,6 @@
1
1
  import React, {useState, useEffect, useLayoutEffect, useCallback} from 'react';
2
2
 
3
- import {CSSObject} from '@emotion/core';
3
+ import {CSSObject} from '@emotion/styled';
4
4
  import {EmotionCanvasTheme, ErrorType, Themeable, styled} from '@workday/canvas-kit-react/common';
5
5
  import {
6
6
  Placement,
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import {CSSObject} from '@emotion/core';
2
+ import {CSSObject} from '@emotion/styled';
3
3
  import {
4
4
  EmotionCanvasTheme,
5
5
  ErrorType,
@@ -2,12 +2,12 @@
2
2
  /** @jsx jsx */
3
3
  import * as React from 'react';
4
4
  import {styled, useIsRTL, StyledType} from '@workday/canvas-kit-react/common';
5
- import {css, jsx, keyframes} from '@emotion/core';
5
+ import {css, jsx, keyframes} from '@emotion/react';
6
6
  import {IconButton, IconButtonProps} from '@workday/canvas-kit-react/button';
7
7
  import {space, colors} from '@workday/canvas-kit-react/tokens';
8
8
  import {transformationImportIcon} from '@workday/canvas-system-icons-web';
9
9
  import {Tooltip} from '@workday/canvas-kit-react/tooltip';
10
- import {Box} from '@workday/canvas-kit-labs-react/common';
10
+ import {Box} from '@workday/canvas-kit-react/layout';
11
11
 
12
12
  export type SidePanelVariant = 'standard' | 'alternate';
13
13
  export type SidePanelTransitionStates = 'collapsed' | 'collapsing' | 'expanded' | 'expanding';
@@ -6,7 +6,7 @@ import {
6
6
  FormFieldModelContext,
7
7
  useFormFieldOrientation,
8
8
  } from '@workday/canvas-kit-preview-react/form-field';
9
- import {Stack} from '@workday/canvas-kit-labs-react/layout';
9
+ import {Stack} from '@workday/canvas-kit-react/layout';
10
10
 
11
11
  import {TextAreaModel, useTextAreaModel} from './hooks';
12
12
  import {TextAreaField} from './TextAreaField';
@@ -1,6 +1,6 @@
1
1
  /** @jsxRuntime classic */
2
2
  /** @jsx jsx */
3
- import {jsx} from '@emotion/core';
3
+ import {jsx} from '@emotion/react';
4
4
 
5
5
  import {
6
6
  borderRadius,
@@ -6,7 +6,7 @@ import {
6
6
  FormFieldModelContext,
7
7
  useFormFieldOrientation,
8
8
  } from '@workday/canvas-kit-preview-react/form-field';
9
- import {Stack} from '@workday/canvas-kit-labs-react/layout';
9
+ import {Stack} from '@workday/canvas-kit-react/layout';
10
10
 
11
11
  import {useTextInputModel, TextInputModel} from './hooks';
12
12
  import {TextInputField} from './TextInputField';
@@ -1,6 +1,6 @@
1
1
  /** @jsxRuntime classic */
2
2
  /** @jsx jsx */
3
- import {jsx} from '@emotion/core';
3
+ import {jsx} from '@emotion/react';
4
4
 
5
5
  import {
6
6
  borderRadius,
@@ -1,4 +1,3 @@
1
- /// <reference types="@emotion/core" />
2
1
  import { usePopupPopper } from '@workday/canvas-kit-react/popup';
3
2
  import { DropdownButtonProps } from './Button';
4
3
  import { DropdownMenuProps } from './Menu';
@@ -9,6 +8,6 @@ interface UseDropdown {
9
8
  dropdownMenuProps: DropdownMenuProps;
10
9
  popperProps: ReturnType<typeof usePopupPopper>;
11
10
  }
12
- export declare const useDropdown: (activeDropdownItemRef: import("react").RefObject<HTMLAnchorElement>, items: Breadcrumb[], buttonId?: string | undefined) => UseDropdown;
11
+ export declare const useDropdown: (activeDropdownItemRef: React.RefObject<HTMLAnchorElement>, items: Breadcrumb[], buttonId?: string | undefined) => UseDropdown;
13
12
  export {};
14
13
  //# sourceMappingURL=hooks.d.ts.map
@@ -9,7 +9,7 @@ export declare const useBuildCollapsedList: <E extends HTMLElement>(listEl: Reac
9
9
  };
10
10
  export declare const useTruncateTooltip: (ref?: React.RefObject<HTMLSpanElement> | undefined) => {
11
11
  isTooltipOpen: boolean;
12
- openTooltip: (event: React.MouseEvent<Element, MouseEvent> | React.FocusEvent<Element, Element>) => void;
12
+ openTooltip: (event: React.MouseEvent | React.FocusEvent) => void;
13
13
  closeTooltip: () => void;
14
14
  shouldShowTooltip: boolean;
15
15
  tooltipProps: {
@@ -1,3 +1,3 @@
1
- import { CSSObject } from '@emotion/core';
1
+ import { CSSObject } from '@emotion/styled';
2
2
  export declare const truncateStyles: (maxWidth?: number) => CSSObject;
3
3
  //# sourceMappingURL=styles.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ExtractProps } from '@workday/canvas-kit-react/common';
3
- import { Stack, StackSpacing } from '@workday/canvas-kit-labs-react/layout';
3
+ import { Stack, StackSpacing } from '@workday/canvas-kit-react/layout';
4
4
  import { FormFieldModel, FormFieldModelConfig } from './hooks';
5
5
  export declare const FormFieldModelContext: React.Context<import("@workday/canvas-kit-react/common").Model<{
6
6
  hasError?: boolean | undefined;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ExtractProps } from '@workday/canvas-kit-react/common';
3
- import { Box } from '@workday/canvas-kit-labs-react/common';
3
+ import { Box } from '@workday/canvas-kit-react/layout';
4
4
  import { FormFieldModel } from './hooks';
5
5
  export interface FormFieldHintProps extends ExtractProps<typeof Box, never> {
6
6
  model?: FormFieldModel;
@@ -1,5 +1,5 @@
1
1
  import { ExtractProps } from '@workday/canvas-kit-react/common';
2
- import { Box } from '@workday/canvas-kit-labs-react/common';
2
+ import { Box } from '@workday/canvas-kit-react/layout';
3
3
  import { FormFieldModel } from './hooks';
4
4
  export interface FormFieldInputProps extends ExtractProps<typeof Box, never> {
5
5
  model?: FormFieldModel;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ExtractProps } from '@workday/canvas-kit-react/common';
3
- import { HStack, StackSpacing } from '@workday/canvas-kit-labs-react/layout';
3
+ import { HStack, StackSpacing } from '@workday/canvas-kit-react/layout';
4
4
  import { FormFieldModel } from './hooks';
5
5
  export interface FormFieldLabelProps extends Omit<ExtractProps<typeof HStack, never>, 'spacing'> {
6
6
  model?: FormFieldModel;
@@ -1,4 +1,3 @@
1
- /// <reference types="@emotion/core" />
2
1
  /**
3
2
  * Adds the necessary props to a `Hint` component.
4
3
  * Used by the FormField.Hint subcomponent and other input type components
@@ -1,4 +1,3 @@
1
- /// <reference types="@emotion/core" />
2
1
  /**
3
2
  * Adds the necessary props to an `Input` component.
4
3
  * Used by the FormField.Input subcomponent and other input type components
@@ -1,4 +1,3 @@
1
- /// <reference types="@emotion/core" />
2
1
  /**
3
2
  * Adds the necessary props to a `Label` component.
4
3
  * Used by the FormField.Label subcomponent and other input type components
@@ -31,6 +31,6 @@ declare const formFieldEventMap: {
31
31
  callbacks: {};
32
32
  };
33
33
  export declare type FormFieldModelConfig = FormFieldState & Partial<ToModelConfig<FormFieldState, FormFieldEvents, typeof formFieldEventMap>>;
34
- export declare const useFormFieldModel: (config?: FormFieldModelConfig) => Model<FormFieldState, FormFieldEvents>;
34
+ export declare const useFormFieldModel: (config?: FormFieldModelConfig) => FormFieldModel;
35
35
  export {};
36
36
  //# sourceMappingURL=useFormFieldModel.d.ts.map
@@ -1,9 +1,10 @@
1
+ import { StackSpacing, StackProps } from '@workday/canvas-kit-react/layout';
1
2
  /**
2
3
  * Adds the necessary layout props to a `FormField` component.
3
4
  */
4
- export declare const useFormFieldOrientation: (orientation: "horizontal" | "vertical") => {
5
- flexDirection: "row" | "column" | "column-reverse" | "row-reverse" | undefined;
6
- alignItems: "center" | "inherit" | (string & {}) | "-moz-initial" | "initial" | "revert" | "unset" | "stretch" | "end" | "flex-end" | "flex-start" | "start" | "baseline" | "normal" | "self-end" | "self-start" | undefined;
7
- spacing: number | "zero" | "s" | "m" | "l" | "xl" | "xxxs" | "xxs" | "xs" | "xxl" | "xxxl" | (string & {});
5
+ export declare const useFormFieldOrientation: (orientation: 'horizontal' | 'vertical') => {
6
+ flexDirection: StackProps['flexDirection'];
7
+ alignItems: StackProps['alignItems'];
8
+ spacing: StackSpacing;
8
9
  };
9
10
  //# sourceMappingURL=useFormFieldOrientation.d.ts.map
@@ -1,6 +1,7 @@
1
1
  /** @jsxRuntime classic */
2
2
  /** @jsx jsx */
3
3
  import * as React from 'react';
4
+ import { jsx } from '@emotion/react';
4
5
  import { IconButtonProps } from '@workday/canvas-kit-react/button';
5
6
  export declare type SidePanelVariant = 'standard' | 'alternate';
6
7
  export declare type SidePanelTransitionStates = 'collapsed' | 'collapsing' | 'expanded' | 'expanding';
@@ -66,19 +67,8 @@ export declare const SidePanelContext: React.Context<{
66
67
  origin: string;
67
68
  }>;
68
69
  declare const SidePanel: {
69
- ({ as, children, collapsedWidth, expanded, expandedWidth, onAnimationEnd, onAnimationStart, onExpandedChange, onStateTransition, origin, touched, ...elemProps }: SidePanelProps): JSX.Element;
70
- ToggleButton: ({ variant, icon, tooltipTextExpand: expandLabel, tooltipTextCollapse: collapseLabel, ...rest }: IconButtonProps & {
71
- /**
72
- * The tooltip text to expand the side panel
73
- * @default 'Expand'
74
- */
75
- tooltipTextExpand?: string | undefined;
76
- /**
77
- * The tooltip text to collapse the side panel
78
- * @default 'Collapse'
79
- */
80
- tooltipTextCollapse?: string | undefined;
81
- } & React.ButtonHTMLAttributes<HTMLButtonElement>) => JSX.Element;
70
+ ({ as, children, collapsedWidth, expanded, expandedWidth, onAnimationEnd, onAnimationStart, onExpandedChange, onStateTransition, origin, touched, ...elemProps }: SidePanelProps): jsx.JSX.Element;
71
+ ToggleButton: ({ variant, icon, tooltipTextExpand: expandLabel, tooltipTextCollapse: collapseLabel, ...rest }: ToggleButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement>) => jsx.JSX.Element;
82
72
  };
83
73
  export declare type ToggleButtonProps = IconButtonProps & {
84
74
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="@emotion/core" />
2
1
  /**
3
2
  * Adds the necessary props to a `Field` component. Used by the TextInput.Field subcomponent.
4
3
  */
@@ -1,4 +1,3 @@
1
- /// <reference types="@emotion/core" />
2
1
  import { usePopupPopper } from '@workday/canvas-kit-react/popup';
3
2
  import { DropdownButtonProps } from './Button';
4
3
  import { DropdownMenuProps } from './Menu';
@@ -9,6 +8,6 @@ interface UseDropdown {
9
8
  dropdownMenuProps: DropdownMenuProps;
10
9
  popperProps: ReturnType<typeof usePopupPopper>;
11
10
  }
12
- export declare const useDropdown: (activeDropdownItemRef: import("react").RefObject<HTMLAnchorElement>, items: Breadcrumb[], buttonId?: string | undefined) => UseDropdown;
11
+ export declare const useDropdown: (activeDropdownItemRef: React.RefObject<HTMLAnchorElement>, items: Breadcrumb[], buttonId?: string | undefined) => UseDropdown;
13
12
  export {};
14
13
  //# sourceMappingURL=hooks.d.ts.map
@@ -9,7 +9,7 @@ export declare const useBuildCollapsedList: <E extends HTMLElement>(listEl: Reac
9
9
  };
10
10
  export declare const useTruncateTooltip: (ref?: React.RefObject<HTMLSpanElement> | undefined) => {
11
11
  isTooltipOpen: boolean;
12
- openTooltip: (event: React.MouseEvent<Element, MouseEvent> | React.FocusEvent<Element, Element>) => void;
12
+ openTooltip: (event: React.MouseEvent | React.FocusEvent) => void;
13
13
  closeTooltip: () => void;
14
14
  shouldShowTooltip: boolean;
15
15
  tooltipProps: {
@@ -1,3 +1,3 @@
1
- import { CSSObject } from '@emotion/core';
1
+ import { CSSObject } from '@emotion/styled';
2
2
  export declare const truncateStyles: (maxWidth?: number) => CSSObject;
3
3
  //# sourceMappingURL=styles.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ExtractProps } from '@workday/canvas-kit-react/common';
3
- import { Stack, StackSpacing } from '@workday/canvas-kit-labs-react/layout';
3
+ import { Stack, StackSpacing } from '@workday/canvas-kit-react/layout';
4
4
  import { FormFieldModel, FormFieldModelConfig } from './hooks';
5
5
  export declare const FormFieldModelContext: React.Context<import("@workday/canvas-kit-react/common").Model<{
6
6
  hasError?: boolean | undefined;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ExtractProps } from '@workday/canvas-kit-react/common';
3
- import { Box } from '@workday/canvas-kit-labs-react/common';
3
+ import { Box } from '@workday/canvas-kit-react/layout';
4
4
  import { FormFieldModel } from './hooks';
5
5
  export interface FormFieldHintProps extends ExtractProps<typeof Box, never> {
6
6
  model?: FormFieldModel;
@@ -1,5 +1,5 @@
1
1
  import { ExtractProps } from '@workday/canvas-kit-react/common';
2
- import { Box } from '@workday/canvas-kit-labs-react/common';
2
+ import { Box } from '@workday/canvas-kit-react/layout';
3
3
  import { FormFieldModel } from './hooks';
4
4
  export interface FormFieldInputProps extends ExtractProps<typeof Box, never> {
5
5
  model?: FormFieldModel;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ExtractProps } from '@workday/canvas-kit-react/common';
3
- import { HStack, StackSpacing } from '@workday/canvas-kit-labs-react/layout';
3
+ import { HStack, StackSpacing } from '@workday/canvas-kit-react/layout';
4
4
  import { FormFieldModel } from './hooks';
5
5
  export interface FormFieldLabelProps extends Omit<ExtractProps<typeof HStack, never>, 'spacing'> {
6
6
  model?: FormFieldModel;
@@ -1,4 +1,3 @@
1
- /// <reference types="@emotion/core" />
2
1
  /**
3
2
  * Adds the necessary props to a `Hint` component.
4
3
  * Used by the FormField.Hint subcomponent and other input type components
@@ -1,4 +1,3 @@
1
- /// <reference types="@emotion/core" />
2
1
  /**
3
2
  * Adds the necessary props to an `Input` component.
4
3
  * Used by the FormField.Input subcomponent and other input type components
@@ -1,4 +1,3 @@
1
- /// <reference types="@emotion/core" />
2
1
  /**
3
2
  * Adds the necessary props to a `Label` component.
4
3
  * Used by the FormField.Label subcomponent and other input type components
@@ -31,6 +31,6 @@ declare const formFieldEventMap: {
31
31
  callbacks: {};
32
32
  };
33
33
  export declare type FormFieldModelConfig = FormFieldState & Partial<ToModelConfig<FormFieldState, FormFieldEvents, typeof formFieldEventMap>>;
34
- export declare const useFormFieldModel: (config?: FormFieldModelConfig) => Model<FormFieldState, FormFieldEvents>;
34
+ export declare const useFormFieldModel: (config?: FormFieldModelConfig) => FormFieldModel;
35
35
  export {};
36
36
  //# sourceMappingURL=useFormFieldModel.d.ts.map
@@ -1,9 +1,10 @@
1
+ import { StackSpacing, StackProps } from '@workday/canvas-kit-react/layout';
1
2
  /**
2
3
  * Adds the necessary layout props to a `FormField` component.
3
4
  */
4
- export declare const useFormFieldOrientation: (orientation: "horizontal" | "vertical") => {
5
- flexDirection: "column" | "column-reverse" | "row" | "row-reverse" | undefined;
6
- alignItems: (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "stretch" | "center" | "end" | "flex-end" | "flex-start" | "start" | "baseline" | "normal" | "self-end" | "self-start" | undefined;
7
- spacing: number | (string & {}) | "s" | "zero" | "m" | "l" | "xl" | "xxxs" | "xxs" | "xs" | "xxl" | "xxxl";
5
+ export declare const useFormFieldOrientation: (orientation: 'horizontal' | 'vertical') => {
6
+ flexDirection: StackProps['flexDirection'];
7
+ alignItems: StackProps['alignItems'];
8
+ spacing: StackSpacing;
8
9
  };
9
10
  //# sourceMappingURL=useFormFieldOrientation.d.ts.map
@@ -1,6 +1,7 @@
1
1
  /** @jsxRuntime classic */
2
2
  /** @jsx jsx */
3
3
  import * as React from 'react';
4
+ import { jsx } from '@emotion/react';
4
5
  import { IconButtonProps } from '@workday/canvas-kit-react/button';
5
6
  export declare type SidePanelVariant = 'standard' | 'alternate';
6
7
  export declare type SidePanelTransitionStates = 'collapsed' | 'collapsing' | 'expanded' | 'expanding';
@@ -66,19 +67,8 @@ export declare const SidePanelContext: React.Context<{
66
67
  origin: string;
67
68
  }>;
68
69
  declare const SidePanel: {
69
- ({ as, children, collapsedWidth, expanded, expandedWidth, onAnimationEnd, onAnimationStart, onExpandedChange, onStateTransition, origin, touched, ...elemProps }: SidePanelProps): JSX.Element;
70
- ToggleButton: ({ variant, icon, tooltipTextExpand: expandLabel, tooltipTextCollapse: collapseLabel, ...rest }: IconButtonProps & {
71
- /**
72
- * The tooltip text to expand the side panel
73
- * @default 'Expand'
74
- */
75
- tooltipTextExpand?: string | undefined;
76
- /**
77
- * The tooltip text to collapse the side panel
78
- * @default 'Collapse'
79
- */
80
- tooltipTextCollapse?: string | undefined;
81
- } & React.ButtonHTMLAttributes<HTMLButtonElement>) => JSX.Element;
70
+ ({ as, children, collapsedWidth, expanded, expandedWidth, onAnimationEnd, onAnimationStart, onExpandedChange, onStateTransition, origin, touched, ...elemProps }: SidePanelProps): jsx.JSX.Element;
71
+ ToggleButton: ({ variant, icon, tooltipTextExpand: expandLabel, tooltipTextCollapse: collapseLabel, ...rest }: ToggleButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement>) => jsx.JSX.Element;
82
72
  };
83
73
  export declare type ToggleButtonProps = IconButtonProps & {
84
74
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="@emotion/core" />
2
1
  /**
3
2
  * Adds the necessary props to a `Field` component. Used by the TextInput.Field subcomponent.
4
3
  */