@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.
- package/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.tsx +3 -3
- package/breadcrumbs/lib/Breadcrumbs/List/ListItem.tsx +1 -1
- package/breadcrumbs/lib/Breadcrumbs/List/index.tsx +1 -1
- package/breadcrumbs/lib/Breadcrumbs/List/styles.ts +1 -1
- package/dist/commonjs/breadcrumbs/index.js +13 -5
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Button.js +1 -0
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.d.ts.map +1 -1
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.js +5 -3
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/MenuItemLink.js +20 -7
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.d.ts +1 -2
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.d.ts.map +1 -1
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.js +5 -2
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/index.d.ts.map +1 -1
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/index.js +3 -1
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/Collapsible.d.ts.map +1 -1
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/Collapsible.js +22 -8
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/CurrentItem.d.ts.map +1 -1
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/CurrentItem.js +3 -1
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/Link.d.ts.map +1 -1
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/Link.js +3 -1
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/ListItem.js +4 -2
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/hooks.d.ts +1 -1
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/hooks.d.ts.map +1 -1
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/hooks.js +21 -5
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/index.js +2 -1
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/styles.d.ts +1 -1
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/styles.d.ts.map +1 -1
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/styles.js +3 -1
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Nav.d.ts.map +1 -1
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Nav.js +3 -1
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/hooks.js +3 -1
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/index.js +1 -0
- package/dist/commonjs/color-picker/index.js +6 -2
- package/dist/commonjs/color-picker/lib/ColorPicker.d.ts.map +1 -1
- package/dist/commonjs/color-picker/lib/ColorPicker.js +19 -7
- package/dist/commonjs/color-picker/lib/parts/ColorReset.d.ts.map +1 -1
- package/dist/commonjs/color-picker/lib/parts/ColorReset.js +17 -3
- package/dist/commonjs/color-picker/lib/parts/SwatchBook.d.ts.map +1 -1
- package/dist/commonjs/color-picker/lib/parts/SwatchBook.js +17 -3
- package/dist/commonjs/form-field/index.js +12 -5
- package/dist/commonjs/form-field/lib/FormField.d.ts +1 -1
- package/dist/commonjs/form-field/lib/FormField.d.ts.map +1 -1
- package/dist/commonjs/form-field/lib/FormField.js +2 -1
- package/dist/commonjs/form-field/lib/FormFieldHint.d.ts +1 -1
- package/dist/commonjs/form-field/lib/FormFieldHint.d.ts.map +1 -1
- package/dist/commonjs/form-field/lib/FormFieldHint.js +3 -2
- package/dist/commonjs/form-field/lib/FormFieldInput.d.ts +1 -1
- package/dist/commonjs/form-field/lib/FormFieldInput.d.ts.map +1 -1
- package/dist/commonjs/form-field/lib/FormFieldInput.js +3 -2
- package/dist/commonjs/form-field/lib/FormFieldLabel.d.ts +1 -1
- package/dist/commonjs/form-field/lib/FormFieldLabel.d.ts.map +1 -1
- package/dist/commonjs/form-field/lib/FormFieldLabel.js +3 -3
- package/dist/commonjs/form-field/lib/hooks/index.js +15 -8
- package/dist/commonjs/form-field/lib/hooks/useFormFieldHint.d.ts +0 -1
- package/dist/commonjs/form-field/lib/hooks/useFormFieldHint.d.ts.map +1 -1
- package/dist/commonjs/form-field/lib/hooks/useFormFieldHint.js +1 -0
- package/dist/commonjs/form-field/lib/hooks/useFormFieldInput.d.ts +0 -1
- package/dist/commonjs/form-field/lib/hooks/useFormFieldInput.d.ts.map +1 -1
- package/dist/commonjs/form-field/lib/hooks/useFormFieldInput.js +1 -0
- package/dist/commonjs/form-field/lib/hooks/useFormFieldLabel.d.ts +0 -1
- package/dist/commonjs/form-field/lib/hooks/useFormFieldLabel.d.ts.map +1 -1
- package/dist/commonjs/form-field/lib/hooks/useFormFieldLabel.js +1 -0
- package/dist/commonjs/form-field/lib/hooks/useFormFieldModel.d.ts +1 -1
- package/dist/commonjs/form-field/lib/hooks/useFormFieldModel.d.ts.map +1 -1
- package/dist/commonjs/form-field/lib/hooks/useFormFieldModel.js +3 -1
- package/dist/commonjs/form-field/lib/hooks/useFormFieldOrientation.d.ts +5 -4
- package/dist/commonjs/form-field/lib/hooks/useFormFieldOrientation.d.ts.map +1 -1
- package/dist/commonjs/form-field/lib/hooks/useFormFieldOrientation.js +3 -1
- package/dist/commonjs/index.js +18 -11
- package/dist/commonjs/menu/index.js +12 -4
- package/dist/commonjs/menu/lib/Menu.d.ts.map +1 -1
- package/dist/commonjs/menu/lib/Menu.js +20 -8
- package/dist/commonjs/menu/lib/MenuItem.d.ts.map +1 -1
- package/dist/commonjs/menu/lib/MenuItem.js +20 -8
- package/dist/commonjs/select/index.js +12 -4
- package/dist/commonjs/select/lib/Select.d.ts.map +1 -1
- package/dist/commonjs/select/lib/Select.js +22 -8
- package/dist/commonjs/select/lib/SelectBase.d.ts.map +1 -1
- package/dist/commonjs/select/lib/SelectBase.js +20 -7
- package/dist/commonjs/select/lib/SelectMenu.d.ts.map +1 -1
- package/dist/commonjs/select/lib/SelectMenu.js +20 -7
- package/dist/commonjs/select/lib/SelectOption.d.ts.map +1 -1
- package/dist/commonjs/select/lib/SelectOption.js +19 -7
- package/dist/commonjs/select/lib/scrolling.d.ts.map +1 -1
- package/dist/commonjs/select/lib/scrolling.js +3 -1
- package/dist/commonjs/select/lib/utils.d.ts.map +1 -1
- package/dist/commonjs/select/lib/utils.js +5 -2
- package/dist/commonjs/side-panel/index.js +13 -5
- package/dist/commonjs/side-panel/lib/SidePanel.d.ts +3 -13
- package/dist/commonjs/side-panel/lib/SidePanel.d.ts.map +1 -1
- package/dist/commonjs/side-panel/lib/SidePanel.js +29 -16
- package/dist/commonjs/side-panel/lib/hooks.d.ts.map +1 -1
- package/dist/commonjs/side-panel/lib/hooks.js +17 -3
- package/dist/commonjs/text-area/index.js +11 -4
- package/dist/commonjs/text-area/lib/TextArea.js +2 -1
- package/dist/commonjs/text-area/lib/TextAreaField.js +3 -2
- package/dist/commonjs/text-area/lib/TextAreaHint.js +1 -0
- package/dist/commonjs/text-area/lib/TextAreaLabel.js +1 -0
- package/dist/commonjs/text-area/lib/hooks/index.js +11 -4
- package/dist/commonjs/text-area/lib/hooks/useTextAreaModel.js +1 -0
- package/dist/commonjs/text-input/index.js +12 -5
- package/dist/commonjs/text-input/lib/TextInput.js +2 -1
- package/dist/commonjs/text-input/lib/TextInputField.js +3 -2
- package/dist/commonjs/text-input/lib/TextInputHint.js +1 -0
- package/dist/commonjs/text-input/lib/TextInputLabel.js +1 -0
- package/dist/commonjs/text-input/lib/hooks/index.js +12 -5
- package/dist/commonjs/text-input/lib/hooks/useTextInputField.d.ts +0 -1
- package/dist/commonjs/text-input/lib/hooks/useTextInputField.d.ts.map +1 -1
- package/dist/commonjs/text-input/lib/hooks/useTextInputField.js +1 -0
- package/dist/commonjs/text-input/lib/hooks/useTextInputModel.js +1 -0
- package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.d.ts.map +1 -1
- package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.js +1 -1
- package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.d.ts +1 -2
- package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.d.ts.map +1 -1
- package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/index.d.ts.map +1 -1
- package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/Collapsible.d.ts.map +1 -1
- package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/CurrentItem.d.ts.map +1 -1
- package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/Link.d.ts.map +1 -1
- package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/ListItem.js +1 -1
- package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/hooks.d.ts +1 -1
- package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/hooks.d.ts.map +1 -1
- package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/index.js +1 -1
- package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/styles.d.ts +1 -1
- package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/styles.d.ts.map +1 -1
- package/dist/es6/breadcrumbs/lib/Breadcrumbs/Nav.d.ts.map +1 -1
- package/dist/es6/breadcrumbs/lib/Breadcrumbs/types.js +1 -0
- package/dist/es6/color-picker/lib/ColorPicker.d.ts.map +1 -1
- package/dist/es6/color-picker/lib/parts/ColorReset.d.ts.map +1 -1
- package/dist/es6/color-picker/lib/parts/SwatchBook.d.ts.map +1 -1
- package/dist/es6/form-field/lib/FormField.d.ts +1 -1
- package/dist/es6/form-field/lib/FormField.d.ts.map +1 -1
- package/dist/es6/form-field/lib/FormField.js +1 -1
- package/dist/es6/form-field/lib/FormFieldHint.d.ts +1 -1
- package/dist/es6/form-field/lib/FormFieldHint.d.ts.map +1 -1
- package/dist/es6/form-field/lib/FormFieldHint.js +1 -1
- package/dist/es6/form-field/lib/FormFieldInput.d.ts +1 -1
- package/dist/es6/form-field/lib/FormFieldInput.d.ts.map +1 -1
- package/dist/es6/form-field/lib/FormFieldInput.js +1 -1
- package/dist/es6/form-field/lib/FormFieldLabel.d.ts +1 -1
- package/dist/es6/form-field/lib/FormFieldLabel.d.ts.map +1 -1
- package/dist/es6/form-field/lib/FormFieldLabel.js +1 -2
- package/dist/es6/form-field/lib/hooks/useFormFieldHint.d.ts +0 -1
- package/dist/es6/form-field/lib/hooks/useFormFieldHint.d.ts.map +1 -1
- package/dist/es6/form-field/lib/hooks/useFormFieldInput.d.ts +0 -1
- package/dist/es6/form-field/lib/hooks/useFormFieldInput.d.ts.map +1 -1
- package/dist/es6/form-field/lib/hooks/useFormFieldLabel.d.ts +0 -1
- package/dist/es6/form-field/lib/hooks/useFormFieldLabel.d.ts.map +1 -1
- package/dist/es6/form-field/lib/hooks/useFormFieldModel.d.ts +1 -1
- package/dist/es6/form-field/lib/hooks/useFormFieldModel.d.ts.map +1 -1
- package/dist/es6/form-field/lib/hooks/useFormFieldOrientation.d.ts +5 -4
- package/dist/es6/form-field/lib/hooks/useFormFieldOrientation.d.ts.map +1 -1
- package/dist/es6/menu/lib/Menu.d.ts.map +1 -1
- package/dist/es6/menu/lib/Menu.js +1 -1
- package/dist/es6/menu/lib/MenuItem.d.ts.map +1 -1
- package/dist/es6/menu/lib/MenuItem.js +1 -1
- package/dist/es6/select/lib/Select.d.ts.map +1 -1
- package/dist/es6/select/lib/Select.js +2 -1
- package/dist/es6/select/lib/SelectBase.d.ts.map +1 -1
- package/dist/es6/select/lib/SelectMenu.d.ts.map +1 -1
- package/dist/es6/select/lib/SelectOption.d.ts.map +1 -1
- package/dist/es6/select/lib/scrolling.d.ts.map +1 -1
- package/dist/es6/select/lib/types.js +1 -0
- package/dist/es6/select/lib/utils.d.ts.map +1 -1
- package/dist/es6/side-panel/lib/SidePanel.d.ts +3 -13
- package/dist/es6/side-panel/lib/SidePanel.d.ts.map +1 -1
- package/dist/es6/side-panel/lib/SidePanel.js +2 -2
- package/dist/es6/side-panel/lib/hooks.d.ts.map +1 -1
- package/dist/es6/text-area/lib/TextArea.js +1 -1
- package/dist/es6/text-area/lib/TextAreaField.js +1 -1
- package/dist/es6/text-input/lib/TextInput.js +1 -1
- package/dist/es6/text-input/lib/TextInputField.js +1 -1
- package/dist/es6/text-input/lib/hooks/useTextInputField.d.ts +0 -1
- package/dist/es6/text-input/lib/hooks/useTextInputField.d.ts.map +1 -1
- package/form-field/lib/FormField.tsx +1 -1
- package/form-field/lib/FormFieldHint.tsx +1 -1
- package/form-field/lib/FormFieldInput.tsx +1 -1
- package/form-field/lib/FormFieldLabel.tsx +1 -2
- package/form-field/lib/hooks/useFormFieldOrientation.tsx +1 -1
- package/package.json +6 -6
- package/select/lib/Select.tsx +1 -0
- package/select/lib/SelectMenu.tsx +1 -1
- package/select/lib/SelectOption.tsx +1 -1
- package/side-panel/lib/SidePanel.tsx +2 -2
- package/text-area/lib/TextArea.tsx +1 -1
- package/text-area/lib/TextAreaField.tsx +1 -1
- package/text-input/lib/TextInput.tsx +1 -1
- package/text-input/lib/TextInputField.tsx +1 -1
- package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.d.ts +1 -2
- package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/hooks.d.ts +1 -1
- package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/styles.d.ts +1 -1
- package/ts3.5/dist/commonjs/form-field/lib/FormField.d.ts +1 -1
- package/ts3.5/dist/commonjs/form-field/lib/FormFieldHint.d.ts +1 -1
- package/ts3.5/dist/commonjs/form-field/lib/FormFieldInput.d.ts +1 -1
- package/ts3.5/dist/commonjs/form-field/lib/FormFieldLabel.d.ts +1 -1
- package/ts3.5/dist/commonjs/form-field/lib/hooks/useFormFieldHint.d.ts +0 -1
- package/ts3.5/dist/commonjs/form-field/lib/hooks/useFormFieldInput.d.ts +0 -1
- package/ts3.5/dist/commonjs/form-field/lib/hooks/useFormFieldLabel.d.ts +0 -1
- package/ts3.5/dist/commonjs/form-field/lib/hooks/useFormFieldModel.d.ts +1 -1
- package/ts3.5/dist/commonjs/form-field/lib/hooks/useFormFieldOrientation.d.ts +5 -4
- package/ts3.5/dist/commonjs/side-panel/lib/SidePanel.d.ts +3 -13
- package/ts3.5/dist/commonjs/text-input/lib/hooks/useTextInputField.d.ts +0 -1
- package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.d.ts +1 -2
- package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/List/hooks.d.ts +1 -1
- package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/List/styles.d.ts +1 -1
- package/ts3.5/dist/es6/form-field/lib/FormField.d.ts +1 -1
- package/ts3.5/dist/es6/form-field/lib/FormFieldHint.d.ts +1 -1
- package/ts3.5/dist/es6/form-field/lib/FormFieldInput.d.ts +1 -1
- package/ts3.5/dist/es6/form-field/lib/FormFieldLabel.d.ts +1 -1
- package/ts3.5/dist/es6/form-field/lib/hooks/useFormFieldHint.d.ts +0 -1
- package/ts3.5/dist/es6/form-field/lib/hooks/useFormFieldInput.d.ts +0 -1
- package/ts3.5/dist/es6/form-field/lib/hooks/useFormFieldLabel.d.ts +0 -1
- package/ts3.5/dist/es6/form-field/lib/hooks/useFormFieldModel.d.ts +1 -1
- package/ts3.5/dist/es6/form-field/lib/hooks/useFormFieldOrientation.d.ts +5 -4
- package/ts3.5/dist/es6/side-panel/lib/SidePanel.d.ts +3 -13
- 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
|
|
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-
|
|
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/
|
|
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-
|
|
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/
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTextInputField.d.ts","sourceRoot":"","sources":["../../../../../text-input/lib/hooks/useTextInputField.tsx"],"names":[],"mappings":"
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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';
|
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
|
+
"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/
|
|
56
|
-
"@emotion/styled": "^
|
|
57
|
-
"@workday/canvas-kit-react": "^7.0.0-alpha.0-next.
|
|
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.
|
|
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": "
|
|
67
|
+
"gitHead": "23568685fec785046d37cb320289d8ab9e74e283"
|
|
68
68
|
}
|
package/select/lib/Select.tsx
CHANGED
|
@@ -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/
|
|
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,
|
|
@@ -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/
|
|
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-
|
|
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-
|
|
9
|
+
import {Stack} from '@workday/canvas-kit-react/layout';
|
|
10
10
|
|
|
11
11
|
import {TextAreaModel, useTextAreaModel} from './hooks';
|
|
12
12
|
import {TextAreaField} from './TextAreaField';
|
|
@@ -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-
|
|
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,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:
|
|
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
|
|
12
|
+
openTooltip: (event: React.MouseEvent | React.FocusEvent) => void;
|
|
13
13
|
closeTooltip: () => void;
|
|
14
14
|
shouldShowTooltip: boolean;
|
|
15
15
|
tooltipProps: {
|
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
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;
|
|
@@ -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) =>
|
|
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:
|
|
5
|
-
flexDirection:
|
|
6
|
-
alignItems:
|
|
7
|
-
spacing:
|
|
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 }:
|
|
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
|
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:
|
|
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
|
|
12
|
+
openTooltip: (event: React.MouseEvent | React.FocusEvent) => void;
|
|
13
13
|
closeTooltip: () => void;
|
|
14
14
|
shouldShowTooltip: boolean;
|
|
15
15
|
tooltipProps: {
|
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
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;
|
|
@@ -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) =>
|
|
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:
|
|
5
|
-
flexDirection:
|
|
6
|
-
alignItems:
|
|
7
|
-
spacing:
|
|
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 }:
|
|
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
|
/**
|