@workday/canvas-kit-preview-react 5.3.0-next.3 → 5.3.0-next.32
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 +0 -2
- package/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.ts +0 -1
- package/breadcrumbs/lib/Breadcrumbs/List/Collapsible.tsx +0 -1
- package/breadcrumbs/lib/Breadcrumbs/List/hooks.ts +5 -5
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.d.ts.map +1 -1
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.js +0 -1
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.d.ts.map +1 -1
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.js +0 -1
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/Collapsible.d.ts.map +1 -1
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/Collapsible.js +0 -1
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/hooks.d.ts +1 -1
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/hooks.js +4 -4
- package/dist/commonjs/form-field/index.d.ts +3 -0
- package/dist/commonjs/form-field/index.d.ts.map +1 -0
- package/dist/commonjs/form-field/index.js +7 -0
- package/dist/commonjs/form-field/lib/FormField.d.ts +31 -0
- package/dist/commonjs/form-field/lib/FormField.d.ts.map +1 -0
- package/dist/commonjs/form-field/lib/FormField.js +51 -0
- package/dist/commonjs/form-field/lib/FormFieldHint.d.ts +13 -0
- package/dist/commonjs/form-field/lib/FormFieldHint.d.ts.map +1 -0
- package/dist/commonjs/form-field/lib/FormFieldHint.js +45 -0
- package/dist/commonjs/form-field/lib/FormFieldInput.d.ts +8 -0
- package/dist/commonjs/form-field/lib/FormFieldInput.d.ts.map +1 -0
- package/dist/commonjs/form-field/lib/FormFieldInput.js +41 -0
- package/dist/commonjs/form-field/lib/FormFieldLabel.d.ts +18 -0
- package/dist/commonjs/form-field/lib/FormFieldLabel.d.ts.map +1 -0
- package/dist/commonjs/form-field/lib/FormFieldLabel.js +51 -0
- package/dist/commonjs/form-field/lib/hooks/index.d.ts +6 -0
- package/dist/commonjs/form-field/lib/hooks/index.d.ts.map +1 -0
- package/dist/commonjs/form-field/lib/hooks/index.js +10 -0
- package/dist/commonjs/form-field/lib/hooks/useFormFieldHint.d.ts +15 -0
- package/dist/commonjs/form-field/lib/hooks/useFormFieldHint.d.ts.map +1 -0
- package/dist/commonjs/form-field/lib/hooks/useFormFieldHint.js +13 -0
- package/dist/commonjs/form-field/lib/hooks/useFormFieldInput.d.ts +18 -0
- package/dist/commonjs/form-field/lib/hooks/useFormFieldInput.d.ts.map +1 -0
- package/dist/commonjs/form-field/lib/hooks/useFormFieldInput.js +16 -0
- package/dist/commonjs/form-field/lib/hooks/useFormFieldLabel.d.ts +15 -0
- package/dist/commonjs/form-field/lib/hooks/useFormFieldLabel.d.ts.map +1 -0
- package/dist/commonjs/form-field/lib/hooks/useFormFieldLabel.js +13 -0
- package/dist/commonjs/form-field/lib/hooks/useFormFieldModel.d.ts +36 -0
- package/dist/commonjs/form-field/lib/hooks/useFormFieldModel.d.ts.map +1 -0
- package/dist/commonjs/form-field/lib/hooks/useFormFieldModel.js +21 -0
- package/dist/commonjs/form-field/lib/hooks/useFormFieldOrientation.d.ts +9 -0
- package/dist/commonjs/form-field/lib/hooks/useFormFieldOrientation.d.ts.map +1 -0
- package/dist/commonjs/form-field/lib/hooks/useFormFieldOrientation.js +24 -0
- package/dist/commonjs/index.d.ts +3 -0
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +4 -0
- package/dist/commonjs/menu/lib/Menu.d.ts.map +1 -1
- package/dist/commonjs/menu/lib/Menu.js +1 -2
- package/dist/commonjs/select/lib/Select.d.ts.map +1 -1
- package/dist/commonjs/select/lib/Select.js +2 -3
- package/dist/commonjs/select/lib/SelectMenu.d.ts.map +1 -1
- package/dist/commonjs/select/lib/SelectMenu.js +1 -0
- package/dist/commonjs/side-panel/lib/hooks.d.ts +7 -7
- package/dist/commonjs/text-area/index.d.ts +2 -0
- package/dist/commonjs/text-area/index.d.ts.map +1 -0
- package/dist/commonjs/text-area/index.js +6 -0
- package/dist/commonjs/text-area/lib/TextArea.d.ts +22 -0
- package/dist/commonjs/text-area/lib/TextArea.d.ts.map +1 -0
- package/dist/commonjs/text-area/lib/TextArea.js +52 -0
- package/dist/commonjs/text-area/lib/TextAreaField.d.ts +8 -0
- package/dist/commonjs/text-area/lib/TextAreaField.d.ts.map +1 -0
- package/dist/commonjs/text-area/lib/TextAreaField.js +65 -0
- package/dist/commonjs/text-area/lib/TextAreaHint.d.ts +5 -0
- package/dist/commonjs/text-area/lib/TextAreaHint.d.ts.map +1 -0
- package/dist/commonjs/text-area/lib/TextAreaHint.js +4 -0
- package/dist/commonjs/text-area/lib/TextAreaLabel.d.ts +5 -0
- package/dist/commonjs/text-area/lib/TextAreaLabel.d.ts.map +1 -0
- package/dist/commonjs/text-area/lib/TextAreaLabel.js +4 -0
- package/dist/commonjs/text-area/lib/hooks/index.d.ts +2 -0
- package/dist/commonjs/text-area/lib/hooks/index.d.ts.map +1 -0
- package/dist/commonjs/text-area/lib/hooks/index.js +6 -0
- package/dist/commonjs/text-area/lib/hooks/useTextAreaModel.d.ts +8 -0
- package/dist/commonjs/text-area/lib/hooks/useTextAreaModel.d.ts.map +1 -0
- package/dist/commonjs/text-area/lib/hooks/useTextAreaModel.js +4 -0
- package/dist/commonjs/text-input/index.d.ts +3 -0
- package/dist/commonjs/text-input/index.d.ts.map +1 -0
- package/dist/commonjs/text-input/index.js +7 -0
- package/dist/commonjs/text-input/lib/TextInput.d.ts +22 -0
- package/dist/commonjs/text-input/lib/TextInput.d.ts.map +1 -0
- package/dist/commonjs/text-input/lib/TextInput.js +52 -0
- package/dist/commonjs/text-input/lib/TextInputField.d.ts +8 -0
- package/dist/commonjs/text-input/lib/TextInputField.d.ts.map +1 -0
- package/dist/commonjs/text-input/lib/TextInputField.js +67 -0
- package/dist/commonjs/text-input/lib/TextInputHint.d.ts +5 -0
- package/dist/commonjs/text-input/lib/TextInputHint.d.ts.map +1 -0
- package/dist/commonjs/text-input/lib/TextInputHint.js +4 -0
- package/dist/commonjs/text-input/lib/TextInputLabel.d.ts +5 -0
- package/dist/commonjs/text-input/lib/TextInputLabel.d.ts.map +1 -0
- package/dist/commonjs/text-input/lib/TextInputLabel.js +4 -0
- package/dist/commonjs/text-input/lib/hooks/index.d.ts +3 -0
- package/dist/commonjs/text-input/lib/hooks/index.d.ts.map +1 -0
- package/dist/commonjs/text-input/lib/hooks/index.js +7 -0
- package/dist/commonjs/text-input/lib/hooks/useTextInputField.d.ts +10 -0
- package/dist/commonjs/text-input/lib/hooks/useTextInputField.d.ts.map +1 -0
- package/dist/commonjs/text-input/lib/hooks/useTextInputField.js +11 -0
- package/dist/commonjs/text-input/lib/hooks/useTextInputModel.d.ts +8 -0
- package/dist/commonjs/text-input/lib/hooks/useTextInputModel.d.ts.map +1 -0
- package/dist/commonjs/text-input/lib/hooks/useTextInputModel.js +4 -0
- package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.d.ts.map +1 -1
- package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.js +0 -1
- package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.d.ts.map +1 -1
- package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.js +0 -1
- package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/Collapsible.d.ts.map +1 -1
- package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/Collapsible.js +0 -1
- package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/hooks.d.ts +1 -1
- package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/hooks.js +4 -4
- package/dist/es6/form-field/index.d.ts +3 -0
- package/dist/es6/form-field/index.d.ts.map +1 -0
- package/dist/es6/form-field/index.js +2 -0
- package/dist/es6/form-field/lib/FormField.d.ts +31 -0
- package/dist/es6/form-field/lib/FormField.d.ts.map +1 -0
- package/dist/es6/form-field/lib/FormField.js +46 -0
- package/dist/es6/form-field/lib/FormFieldHint.d.ts +13 -0
- package/dist/es6/form-field/lib/FormFieldHint.d.ts.map +1 -0
- package/dist/es6/form-field/lib/FormFieldHint.js +43 -0
- package/dist/es6/form-field/lib/FormFieldInput.d.ts +8 -0
- package/dist/es6/form-field/lib/FormFieldInput.d.ts.map +1 -0
- package/dist/es6/form-field/lib/FormFieldInput.js +36 -0
- package/dist/es6/form-field/lib/FormFieldLabel.d.ts +18 -0
- package/dist/es6/form-field/lib/FormFieldLabel.d.ts.map +1 -0
- package/dist/es6/form-field/lib/FormFieldLabel.js +49 -0
- package/dist/es6/form-field/lib/hooks/index.d.ts +6 -0
- package/dist/es6/form-field/lib/hooks/index.d.ts.map +1 -0
- package/dist/es6/form-field/lib/hooks/index.js +5 -0
- package/dist/es6/form-field/lib/hooks/useFormFieldHint.d.ts +15 -0
- package/dist/es6/form-field/lib/hooks/useFormFieldHint.d.ts.map +1 -0
- package/dist/es6/form-field/lib/hooks/useFormFieldHint.js +11 -0
- package/dist/es6/form-field/lib/hooks/useFormFieldInput.d.ts +18 -0
- package/dist/es6/form-field/lib/hooks/useFormFieldInput.d.ts.map +1 -0
- package/dist/es6/form-field/lib/hooks/useFormFieldInput.js +14 -0
- package/dist/es6/form-field/lib/hooks/useFormFieldLabel.d.ts +15 -0
- package/dist/es6/form-field/lib/hooks/useFormFieldLabel.d.ts.map +1 -0
- package/dist/es6/form-field/lib/hooks/useFormFieldLabel.js +11 -0
- package/dist/es6/form-field/lib/hooks/useFormFieldModel.d.ts +36 -0
- package/dist/es6/form-field/lib/hooks/useFormFieldModel.d.ts.map +1 -0
- package/dist/es6/form-field/lib/hooks/useFormFieldModel.js +19 -0
- package/dist/es6/form-field/lib/hooks/useFormFieldOrientation.d.ts +9 -0
- package/dist/es6/form-field/lib/hooks/useFormFieldOrientation.d.ts.map +1 -0
- package/dist/es6/form-field/lib/hooks/useFormFieldOrientation.js +22 -0
- package/dist/es6/index.d.ts +3 -0
- package/dist/es6/index.d.ts.map +1 -1
- package/dist/es6/index.js +4 -0
- package/dist/es6/menu/lib/Menu.d.ts.map +1 -1
- package/dist/es6/menu/lib/Menu.js +2 -3
- package/dist/es6/select/lib/Select.d.ts.map +1 -1
- package/dist/es6/select/lib/Select.js +3 -4
- package/dist/es6/select/lib/SelectMenu.d.ts.map +1 -1
- package/dist/es6/select/lib/SelectMenu.js +2 -1
- package/dist/es6/side-panel/lib/hooks.d.ts +7 -7
- package/dist/es6/text-area/index.d.ts +2 -0
- package/dist/es6/text-area/index.d.ts.map +1 -0
- package/dist/es6/text-area/index.js +1 -0
- package/dist/es6/text-area/lib/TextArea.d.ts +22 -0
- package/dist/es6/text-area/lib/TextArea.d.ts.map +1 -0
- package/dist/es6/text-area/lib/TextArea.js +47 -0
- package/dist/es6/text-area/lib/TextAreaField.d.ts +8 -0
- package/dist/es6/text-area/lib/TextAreaField.d.ts.map +1 -0
- package/dist/es6/text-area/lib/TextAreaField.js +63 -0
- package/dist/es6/text-area/lib/TextAreaHint.d.ts +5 -0
- package/dist/es6/text-area/lib/TextAreaHint.d.ts.map +1 -0
- package/dist/es6/text-area/lib/TextAreaHint.js +2 -0
- package/dist/es6/text-area/lib/TextAreaLabel.d.ts +5 -0
- package/dist/es6/text-area/lib/TextAreaLabel.d.ts.map +1 -0
- package/dist/es6/text-area/lib/TextAreaLabel.js +2 -0
- package/dist/es6/text-area/lib/hooks/index.d.ts +2 -0
- package/dist/es6/text-area/lib/hooks/index.d.ts.map +1 -0
- package/dist/es6/text-area/lib/hooks/index.js +1 -0
- package/dist/es6/text-area/lib/hooks/useTextAreaModel.d.ts +8 -0
- package/dist/es6/text-area/lib/hooks/useTextAreaModel.d.ts.map +1 -0
- package/dist/es6/text-area/lib/hooks/useTextAreaModel.js +2 -0
- package/dist/es6/text-input/index.d.ts +3 -0
- package/dist/es6/text-input/index.d.ts.map +1 -0
- package/dist/es6/text-input/index.js +2 -0
- package/dist/es6/text-input/lib/TextInput.d.ts +22 -0
- package/dist/es6/text-input/lib/TextInput.d.ts.map +1 -0
- package/dist/es6/text-input/lib/TextInput.js +47 -0
- package/dist/es6/text-input/lib/TextInputField.d.ts +8 -0
- package/dist/es6/text-input/lib/TextInputField.d.ts.map +1 -0
- package/dist/es6/text-input/lib/TextInputField.js +65 -0
- package/dist/es6/text-input/lib/TextInputHint.d.ts +5 -0
- package/dist/es6/text-input/lib/TextInputHint.d.ts.map +1 -0
- package/dist/es6/text-input/lib/TextInputHint.js +2 -0
- package/dist/es6/text-input/lib/TextInputLabel.d.ts +5 -0
- package/dist/es6/text-input/lib/TextInputLabel.d.ts.map +1 -0
- package/dist/es6/text-input/lib/TextInputLabel.js +2 -0
- package/dist/es6/text-input/lib/hooks/index.d.ts +3 -0
- package/dist/es6/text-input/lib/hooks/index.d.ts.map +1 -0
- package/dist/es6/text-input/lib/hooks/index.js +2 -0
- package/dist/es6/text-input/lib/hooks/useTextInputField.d.ts +10 -0
- package/dist/es6/text-input/lib/hooks/useTextInputField.d.ts.map +1 -0
- package/dist/es6/text-input/lib/hooks/useTextInputField.js +9 -0
- package/dist/es6/text-input/lib/hooks/useTextInputModel.d.ts +8 -0
- package/dist/es6/text-input/lib/hooks/useTextInputModel.d.ts.map +1 -0
- package/dist/es6/text-input/lib/hooks/useTextInputModel.js +2 -0
- package/form-field/LICENSE +52 -0
- package/form-field/README.md +8 -0
- package/form-field/index.ts +2 -0
- package/form-field/lib/FormField.tsx +56 -0
- package/form-field/lib/FormFieldHint.tsx +46 -0
- package/form-field/lib/FormFieldInput.tsx +21 -0
- package/form-field/lib/FormFieldLabel.tsx +70 -0
- package/form-field/lib/hooks/index.ts +5 -0
- package/form-field/lib/hooks/useFormFieldHint.tsx +12 -0
- package/form-field/lib/hooks/useFormFieldInput.tsx +15 -0
- package/form-field/lib/hooks/useFormFieldLabel.tsx +12 -0
- package/form-field/lib/hooks/useFormFieldModel.tsx +62 -0
- package/form-field/lib/hooks/useFormFieldOrientation.tsx +29 -0
- package/form-field/package.json +5 -0
- package/index.ts +5 -0
- package/menu/lib/Menu.tsx +3 -3
- package/package.json +9 -9
- package/select/lib/Select.tsx +9 -4
- package/select/lib/SelectMenu.tsx +2 -0
- package/side-panel/lib/hooks.ts +7 -7
- package/text-area/LICENSE +52 -0
- package/text-area/README.md +7 -0
- package/text-area/index.ts +1 -0
- package/text-area/lib/TextArea.tsx +43 -0
- package/text-area/lib/TextAreaField.tsx +81 -0
- package/text-area/lib/TextAreaHint.tsx +6 -0
- package/text-area/lib/TextAreaLabel.tsx +6 -0
- package/text-area/lib/hooks/index.ts +1 -0
- package/text-area/lib/hooks/useTextAreaModel.ts +8 -0
- package/text-area/package.json +5 -0
- package/text-input/LICENSE +52 -0
- package/text-input/README.md +7 -0
- package/text-input/index.ts +2 -0
- package/text-input/lib/TextInput.tsx +43 -0
- package/text-input/lib/TextInputField.tsx +81 -0
- package/text-input/lib/TextInputHint.tsx +6 -0
- package/text-input/lib/TextInputLabel.tsx +6 -0
- package/text-input/lib/hooks/index.ts +2 -0
- package/text-input/lib/hooks/useTextInputField.tsx +10 -0
- package/text-input/lib/hooks/useTextInputModel.ts +8 -0
- package/text-input/package.json +5 -0
- package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/hooks.d.ts +1 -1
- package/ts3.5/dist/commonjs/form-field/index.d.ts +3 -0
- package/ts3.5/dist/commonjs/form-field/lib/FormField.d.ts +31 -0
- package/ts3.5/dist/commonjs/form-field/lib/FormFieldHint.d.ts +13 -0
- package/ts3.5/dist/commonjs/form-field/lib/FormFieldInput.d.ts +8 -0
- package/ts3.5/dist/commonjs/form-field/lib/FormFieldLabel.d.ts +18 -0
- package/ts3.5/dist/commonjs/form-field/lib/hooks/index.d.ts +6 -0
- package/ts3.5/dist/commonjs/form-field/lib/hooks/useFormFieldHint.d.ts +15 -0
- package/ts3.5/dist/commonjs/form-field/lib/hooks/useFormFieldInput.d.ts +18 -0
- package/ts3.5/dist/commonjs/form-field/lib/hooks/useFormFieldLabel.d.ts +15 -0
- package/ts3.5/dist/commonjs/form-field/lib/hooks/useFormFieldModel.d.ts +36 -0
- package/ts3.5/dist/commonjs/form-field/lib/hooks/useFormFieldOrientation.d.ts +9 -0
- package/ts3.5/dist/commonjs/index.d.ts +3 -0
- package/ts3.5/dist/commonjs/side-panel/lib/hooks.d.ts +7 -7
- package/ts3.5/dist/commonjs/text-area/index.d.ts +2 -0
- package/ts3.5/dist/commonjs/text-area/lib/TextArea.d.ts +22 -0
- package/ts3.5/dist/commonjs/text-area/lib/TextAreaField.d.ts +8 -0
- package/ts3.5/dist/commonjs/text-area/lib/TextAreaHint.d.ts +5 -0
- package/ts3.5/dist/commonjs/text-area/lib/TextAreaLabel.d.ts +5 -0
- package/ts3.5/dist/commonjs/text-area/lib/hooks/index.d.ts +2 -0
- package/ts3.5/dist/commonjs/text-area/lib/hooks/useTextAreaModel.d.ts +8 -0
- package/ts3.5/dist/commonjs/text-input/index.d.ts +3 -0
- package/ts3.5/dist/commonjs/text-input/lib/TextInput.d.ts +22 -0
- package/ts3.5/dist/commonjs/text-input/lib/TextInputField.d.ts +8 -0
- package/ts3.5/dist/commonjs/text-input/lib/TextInputHint.d.ts +5 -0
- package/ts3.5/dist/commonjs/text-input/lib/TextInputLabel.d.ts +5 -0
- package/ts3.5/dist/commonjs/text-input/lib/hooks/index.d.ts +3 -0
- package/ts3.5/dist/commonjs/text-input/lib/hooks/useTextInputField.d.ts +10 -0
- package/ts3.5/dist/commonjs/text-input/lib/hooks/useTextInputModel.d.ts +8 -0
- package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/List/hooks.d.ts +1 -1
- package/ts3.5/dist/es6/form-field/index.d.ts +3 -0
- package/ts3.5/dist/es6/form-field/lib/FormField.d.ts +31 -0
- package/ts3.5/dist/es6/form-field/lib/FormFieldHint.d.ts +13 -0
- package/ts3.5/dist/es6/form-field/lib/FormFieldInput.d.ts +8 -0
- package/ts3.5/dist/es6/form-field/lib/FormFieldLabel.d.ts +18 -0
- package/ts3.5/dist/es6/form-field/lib/hooks/index.d.ts +6 -0
- package/ts3.5/dist/es6/form-field/lib/hooks/useFormFieldHint.d.ts +15 -0
- package/ts3.5/dist/es6/form-field/lib/hooks/useFormFieldInput.d.ts +18 -0
- package/ts3.5/dist/es6/form-field/lib/hooks/useFormFieldLabel.d.ts +15 -0
- package/ts3.5/dist/es6/form-field/lib/hooks/useFormFieldModel.d.ts +36 -0
- package/ts3.5/dist/es6/form-field/lib/hooks/useFormFieldOrientation.d.ts +9 -0
- package/ts3.5/dist/es6/index.d.ts +3 -0
- package/ts3.5/dist/es6/side-panel/lib/hooks.d.ts +7 -7
- package/ts3.5/dist/es6/text-area/index.d.ts +2 -0
- package/ts3.5/dist/es6/text-area/lib/TextArea.d.ts +22 -0
- package/ts3.5/dist/es6/text-area/lib/TextAreaField.d.ts +8 -0
- package/ts3.5/dist/es6/text-area/lib/TextAreaHint.d.ts +5 -0
- package/ts3.5/dist/es6/text-area/lib/TextAreaLabel.d.ts +5 -0
- package/ts3.5/dist/es6/text-area/lib/hooks/index.d.ts +2 -0
- package/ts3.5/dist/es6/text-area/lib/hooks/useTextAreaModel.d.ts +8 -0
- package/ts3.5/dist/es6/text-input/index.d.ts +3 -0
- package/ts3.5/dist/es6/text-input/lib/TextInput.d.ts +22 -0
- package/ts3.5/dist/es6/text-input/lib/TextInputField.d.ts +8 -0
- package/ts3.5/dist/es6/text-input/lib/TextInputHint.d.ts +5 -0
- package/ts3.5/dist/es6/text-input/lib/TextInputLabel.d.ts +5 -0
- package/ts3.5/dist/es6/text-input/lib/hooks/index.d.ts +3 -0
- package/ts3.5/dist/es6/text-input/lib/hooks/useTextInputField.d.ts +10 -0
- package/ts3.5/dist/es6/text-input/lib/hooks/useTextInputModel.d.ts +8 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {createHook} from '@workday/canvas-kit-react/common';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Adds the necessary props to a `Field` component. Used by the TextInput.Field subcomponent.
|
|
5
|
+
*/
|
|
6
|
+
export const useTextInputField = createHook(() => {
|
|
7
|
+
return {
|
|
8
|
+
type: 'text',
|
|
9
|
+
};
|
|
10
|
+
});
|
|
@@ -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>) => void;
|
|
12
|
+
openTooltip: (event: React.MouseEvent<Element, MouseEvent> | React.FocusEvent<Element, Element>) => void;
|
|
13
13
|
closeTooltip: () => void;
|
|
14
14
|
shouldShowTooltip: boolean;
|
|
15
15
|
tooltipProps: {
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ExtractProps } from '@workday/canvas-kit-react/common';
|
|
3
|
+
import { Stack, StackSpacing } from '@workday/canvas-kit-labs-react/layout';
|
|
4
|
+
import { FormFieldModel, FormFieldModelConfig } from './hooks';
|
|
5
|
+
export declare const FormFieldModelContext: React.Context<import("@workday/canvas-kit-react/common").Model<{
|
|
6
|
+
hasError?: boolean | undefined;
|
|
7
|
+
id?: string | undefined;
|
|
8
|
+
isRequired?: boolean | undefined;
|
|
9
|
+
}, {}>>;
|
|
10
|
+
export interface FormFieldProps extends FormFieldModelConfig, Omit<ExtractProps<typeof Stack, never>, 'spacing'> {
|
|
11
|
+
model?: FormFieldModel;
|
|
12
|
+
/**
|
|
13
|
+
* Children of the Text Input. Should contain a `<FormField.Input>`, a `<FormField.Label>` and an optional `<FormField.Hint>`
|
|
14
|
+
*/
|
|
15
|
+
children: React.ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* The direction the child elements should stack
|
|
18
|
+
*/
|
|
19
|
+
orientation: 'vertical' | 'horizontal';
|
|
20
|
+
/**
|
|
21
|
+
* Spacing between children elements
|
|
22
|
+
* @default xxxs when vertical l when orientation is horizontal
|
|
23
|
+
*/
|
|
24
|
+
spacing?: StackSpacing;
|
|
25
|
+
}
|
|
26
|
+
export declare const FormField: import("@workday/canvas-kit-react/common").Component<FormFieldProps> & {
|
|
27
|
+
Input: import("@workday/canvas-kit-react/common").ElementComponent<"input", import("./FormFieldInput").FormFieldInputProps>;
|
|
28
|
+
Label: import("@workday/canvas-kit-react/common").ElementComponent<"label", import("./FormFieldLabel").FormFieldLabelProps>;
|
|
29
|
+
Hint: import("@workday/canvas-kit-react/common").ElementComponent<"p", import("./FormFieldHint").FormFieldHintProps>;
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=FormField.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ExtractProps } from '@workday/canvas-kit-react/common';
|
|
3
|
+
import { Box } from '@workday/canvas-kit-labs-react/common';
|
|
4
|
+
import { FormFieldModel } from './hooks';
|
|
5
|
+
export interface FormFieldHintProps extends ExtractProps<typeof Box, never> {
|
|
6
|
+
model?: FormFieldModel;
|
|
7
|
+
/**
|
|
8
|
+
* Hint text to show to the user regarding the Error/Alert
|
|
9
|
+
*/
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare const FormFieldHint: import("@workday/canvas-kit-react/common").ElementComponent<"p", FormFieldHintProps>;
|
|
13
|
+
//# sourceMappingURL=FormFieldHint.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ExtractProps } from '@workday/canvas-kit-react/common';
|
|
2
|
+
import { Box } from '@workday/canvas-kit-labs-react/common';
|
|
3
|
+
import { FormFieldModel } from './hooks';
|
|
4
|
+
export interface FormFieldInputProps extends ExtractProps<typeof Box, never> {
|
|
5
|
+
model?: FormFieldModel;
|
|
6
|
+
}
|
|
7
|
+
export declare const FormFieldInput: import("@workday/canvas-kit-react/common").ElementComponent<"input", FormFieldInputProps>;
|
|
8
|
+
//# sourceMappingURL=FormFieldInput.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ExtractProps } from '@workday/canvas-kit-react/common';
|
|
3
|
+
import { HStack, StackSpacing } from '@workday/canvas-kit-labs-react/layout';
|
|
4
|
+
import { FormFieldModel } from './hooks';
|
|
5
|
+
export interface FormFieldLabelProps extends Omit<ExtractProps<typeof HStack, never>, 'spacing'> {
|
|
6
|
+
model?: FormFieldModel;
|
|
7
|
+
/**
|
|
8
|
+
* The text of the label.
|
|
9
|
+
*/
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* When the input is required, this is spacing between label and asterisk.
|
|
13
|
+
* @default xxxs
|
|
14
|
+
*/
|
|
15
|
+
spacing?: StackSpacing;
|
|
16
|
+
}
|
|
17
|
+
export declare const FormFieldLabel: import("@workday/canvas-kit-react/common").ElementComponent<"label", FormFieldLabelProps>;
|
|
18
|
+
//# sourceMappingURL=FormFieldLabel.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="@emotion/core" />
|
|
2
|
+
/**
|
|
3
|
+
* Adds the necessary props to a `Hint` component.
|
|
4
|
+
* Used by the FormField.Hint subcomponent and other input type components
|
|
5
|
+
*/
|
|
6
|
+
export declare const useFormFieldHint: <P extends {}, R>(model: import("@workday/canvas-kit-react/common").Model<{
|
|
7
|
+
hasError?: boolean | undefined;
|
|
8
|
+
id?: string | undefined;
|
|
9
|
+
isRequired?: boolean | undefined;
|
|
10
|
+
}, {}>, elemProps?: P | undefined, ref?: ((instance: R | null) => void) | import("react").RefObject<R> | null | undefined) => {
|
|
11
|
+
id: string;
|
|
12
|
+
} & P & (R extends HTMLOrSVGElement ? {
|
|
13
|
+
ref: import("react").Ref<R>;
|
|
14
|
+
} : {});
|
|
15
|
+
//# sourceMappingURL=useFormFieldHint.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="@emotion/core" />
|
|
2
|
+
/**
|
|
3
|
+
* Adds the necessary props to an `Input` component.
|
|
4
|
+
* Used by the FormField.Input subcomponent and other input type components
|
|
5
|
+
*/
|
|
6
|
+
export declare const useFormFieldInput: <P extends {}, R>(model: import("@workday/canvas-kit-react/common").Model<{
|
|
7
|
+
hasError?: boolean | undefined;
|
|
8
|
+
id?: string | undefined;
|
|
9
|
+
isRequired?: boolean | undefined;
|
|
10
|
+
}, {}>, elemProps?: P | undefined, ref?: ((instance: R | null) => void) | import("react").RefObject<R> | null | undefined) => {
|
|
11
|
+
required: boolean | undefined;
|
|
12
|
+
'aria-invalid': boolean | undefined;
|
|
13
|
+
'aria-describedby': string;
|
|
14
|
+
id: string;
|
|
15
|
+
} & P & (R extends HTMLOrSVGElement ? {
|
|
16
|
+
ref: import("react").Ref<R>;
|
|
17
|
+
} : {});
|
|
18
|
+
//# sourceMappingURL=useFormFieldInput.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="@emotion/core" />
|
|
2
|
+
/**
|
|
3
|
+
* Adds the necessary props to a `Label` component.
|
|
4
|
+
* Used by the FormField.Label subcomponent and other input type components
|
|
5
|
+
*/
|
|
6
|
+
export declare const useFormFieldLabel: <P extends {}, R>(model: import("@workday/canvas-kit-react/common").Model<{
|
|
7
|
+
hasError?: boolean | undefined;
|
|
8
|
+
id?: string | undefined;
|
|
9
|
+
isRequired?: boolean | undefined;
|
|
10
|
+
}, {}>, elemProps?: P | undefined, ref?: ((instance: R | null) => void) | import("react").RefObject<R> | null | undefined) => {
|
|
11
|
+
htmlFor: string;
|
|
12
|
+
} & P & (R extends HTMLOrSVGElement ? {
|
|
13
|
+
ref: import("react").Ref<R>;
|
|
14
|
+
} : {});
|
|
15
|
+
//# sourceMappingURL=useFormFieldLabel.d.ts.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Model, ToModelConfig } from '@workday/canvas-kit-react/common';
|
|
2
|
+
declare type FormFieldState = {
|
|
3
|
+
/**
|
|
4
|
+
* Optional flag to denote if this field has an error to display. When true the `FormField.Input` will have
|
|
5
|
+
* `required` set to true, and usually some subcomponents will have a error color applied.
|
|
6
|
+
* @default false
|
|
7
|
+
*/
|
|
8
|
+
hasError?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Optional `id` provided to `FormField`'s subcomponents as HTML attributes:
|
|
11
|
+
* - `FormField.Input` will set `aria-describedby` to `hint-${id}`
|
|
12
|
+
* - `FormField.Input` will set `id` to `input-${id}`
|
|
13
|
+
* - `FormField.Label` will set `htmlFor` to `input-${id}`
|
|
14
|
+
* - `FormField.Hint` will set `id` to `hint-${id}`
|
|
15
|
+
*
|
|
16
|
+
* If a value is not provided, a unique id will be automatically created by `useUniqueId()`.
|
|
17
|
+
* @default `useUniqueId()`
|
|
18
|
+
*/
|
|
19
|
+
id?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Optional flag to denote if this field is required. When true the `FormField.Input` will have
|
|
22
|
+
* `required` set to true, and an asterisk will be appended to the `FormField.Label`.
|
|
23
|
+
* @default false
|
|
24
|
+
*/
|
|
25
|
+
isRequired?: boolean;
|
|
26
|
+
};
|
|
27
|
+
declare type FormFieldEvents = {};
|
|
28
|
+
export declare type FormFieldModel = Model<FormFieldState, FormFieldEvents>;
|
|
29
|
+
declare const formFieldEventMap: {
|
|
30
|
+
guards: {};
|
|
31
|
+
callbacks: {};
|
|
32
|
+
};
|
|
33
|
+
export declare type FormFieldModelConfig = FormFieldState & Partial<ToModelConfig<FormFieldState, FormFieldEvents, typeof formFieldEventMap>>;
|
|
34
|
+
export declare const useFormFieldModel: (config?: FormFieldModelConfig) => Model<FormFieldState, FormFieldEvents>;
|
|
35
|
+
export {};
|
|
36
|
+
//# sourceMappingURL=useFormFieldModel.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Adds the necessary layout props to a `FormField` component.
|
|
3
|
+
*/
|
|
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 & {});
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=useFormFieldOrientation.d.ts.map
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export * from './breadcrumbs';
|
|
2
2
|
export * from './color-picker';
|
|
3
|
+
export * from './form-field';
|
|
3
4
|
export * from './menu';
|
|
4
5
|
export * from './select';
|
|
5
6
|
export * from './side-panel';
|
|
7
|
+
export * from './text-area';
|
|
8
|
+
export * from './text-input';
|
|
6
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -9,12 +9,12 @@ export interface UseSidePanelProps {
|
|
|
9
9
|
initialExpanded?: boolean;
|
|
10
10
|
/**
|
|
11
11
|
* sets the `id` for the panel
|
|
12
|
-
* @default
|
|
12
|
+
* @default unique identifier
|
|
13
13
|
*/
|
|
14
14
|
panelId?: string;
|
|
15
15
|
/**
|
|
16
16
|
* sets the `id` for the label
|
|
17
|
-
* @default
|
|
17
|
+
* @default unique identifier
|
|
18
18
|
*/
|
|
19
19
|
labelId?: string;
|
|
20
20
|
}
|
|
@@ -28,12 +28,12 @@ export interface PanelProps {
|
|
|
28
28
|
expanded: boolean;
|
|
29
29
|
/**
|
|
30
30
|
* the accessible `id`
|
|
31
|
-
* - this will either be a
|
|
31
|
+
* - this will either be a unique identifier value or the `panelId` provided in the config
|
|
32
32
|
*/
|
|
33
33
|
id: string;
|
|
34
34
|
/**
|
|
35
35
|
* the accessible label `id`
|
|
36
|
-
* - this will either be a
|
|
36
|
+
* - this will either be a unique identifier value or the `labelId` provided in the config
|
|
37
37
|
*/
|
|
38
38
|
'aria-labelledby': string;
|
|
39
39
|
/**
|
|
@@ -45,14 +45,14 @@ export interface PanelProps {
|
|
|
45
45
|
export interface LabelProps {
|
|
46
46
|
/**
|
|
47
47
|
* the accessible `id`
|
|
48
|
-
* - this will either be a
|
|
48
|
+
* - this will either be a unique identifier value or the `labelId` provided in the config
|
|
49
49
|
*/
|
|
50
50
|
id: string;
|
|
51
51
|
}
|
|
52
52
|
export interface ControlProps {
|
|
53
53
|
/**
|
|
54
54
|
* the accessible `id` that connects the panel to this control
|
|
55
|
-
* - this will either be a
|
|
55
|
+
* - this will either be a unique identifier value or the `panelId` provided in the config
|
|
56
56
|
*/
|
|
57
57
|
'aria-controls': string;
|
|
58
58
|
/**
|
|
@@ -62,7 +62,7 @@ export interface ControlProps {
|
|
|
62
62
|
'aria-expanded': boolean;
|
|
63
63
|
/**
|
|
64
64
|
* the accessible label `id`
|
|
65
|
-
* - this will either be a
|
|
65
|
+
* - this will either be a unique identifier value or the `labelId` provided in the config
|
|
66
66
|
*/
|
|
67
67
|
'aria-labelledby': string;
|
|
68
68
|
/**
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ExtractProps } from '@workday/canvas-kit-react/common';
|
|
3
|
+
import { FormField } from '@workday/canvas-kit-preview-react/form-field';
|
|
4
|
+
import { TextAreaModel } from './hooks';
|
|
5
|
+
export declare const TextAreaModelContext: React.Context<import("@workday/canvas-kit-react/common").Model<{
|
|
6
|
+
hasError?: boolean | undefined;
|
|
7
|
+
id?: string | undefined;
|
|
8
|
+
isRequired?: boolean | undefined;
|
|
9
|
+
}, {}>>;
|
|
10
|
+
export interface TextAreaProps extends ExtractProps<typeof FormField, never> {
|
|
11
|
+
model?: TextAreaModel;
|
|
12
|
+
/**
|
|
13
|
+
* Children of the Text Input. Should contain a `<TextArea.Field>`, a `<TextArea.Label>` and an optional `<TextArea.Hint>`
|
|
14
|
+
*/
|
|
15
|
+
children: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
export declare const TextArea: import("@workday/canvas-kit-react/common").Component<TextAreaProps> & {
|
|
18
|
+
Field: import("@workday/canvas-kit-react/common").ElementComponent<"textarea", import("./TextAreaField").TextAreaFieldProps>;
|
|
19
|
+
Label: import("@workday/canvas-kit-react/common").ElementComponent<"label", import("../../form-field/lib/FormFieldLabel").FormFieldLabelProps>;
|
|
20
|
+
Hint: import("@workday/canvas-kit-react/common").ElementComponent<"p", import("../../form-field/lib/FormFieldHint").FormFieldHintProps>;
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=TextArea.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ExtractProps } from '@workday/canvas-kit-react/common';
|
|
2
|
+
import { FormField } from '@workday/canvas-kit-preview-react/form-field';
|
|
3
|
+
import { TextAreaModel } from './hooks';
|
|
4
|
+
export interface TextAreaFieldProps extends ExtractProps<typeof FormField.Input, never> {
|
|
5
|
+
model?: TextAreaModel;
|
|
6
|
+
}
|
|
7
|
+
export declare const TextAreaField: import("@workday/canvas-kit-react/common").ElementComponent<"textarea", TextAreaFieldProps>;
|
|
8
|
+
//# sourceMappingURL=TextAreaField.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ExtractProps } from '@workday/canvas-kit-react/common';
|
|
2
|
+
import { FormField } from '@workday/canvas-kit-preview-react/form-field';
|
|
3
|
+
export declare type TextAreaHintProps = ExtractProps<typeof FormField.Hint, never>;
|
|
4
|
+
export declare const TextAreaHint: import("@workday/canvas-kit-react/common").ElementComponent<"p", import("../../form-field/lib/FormFieldHint").FormFieldHintProps>;
|
|
5
|
+
//# sourceMappingURL=TextAreaHint.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ExtractProps } from '@workday/canvas-kit-react/common';
|
|
2
|
+
import { FormField } from '@workday/canvas-kit-preview-react/form-field';
|
|
3
|
+
export declare type TextAreaLabelProps = ExtractProps<typeof FormField.Label, never>;
|
|
4
|
+
export declare const TextAreaLabel: import("@workday/canvas-kit-react/common").ElementComponent<"label", import("../../form-field/lib/FormFieldLabel").FormFieldLabelProps>;
|
|
5
|
+
//# sourceMappingURL=TextAreaLabel.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FormFieldModel } from '@workday/canvas-kit-preview-react/form-field';
|
|
2
|
+
export declare const useTextAreaModel: (config?: import("../../../form-field").FormFieldModelConfig) => import("@workday/canvas-kit-react/common").Model<{
|
|
3
|
+
hasError?: boolean | undefined;
|
|
4
|
+
id?: string | undefined;
|
|
5
|
+
isRequired?: boolean | undefined;
|
|
6
|
+
}, {}>;
|
|
7
|
+
export declare type TextAreaModel = FormFieldModel;
|
|
8
|
+
//# sourceMappingURL=useTextAreaModel.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ExtractProps } from '@workday/canvas-kit-react/common';
|
|
3
|
+
import { FormField } from '@workday/canvas-kit-preview-react/form-field';
|
|
4
|
+
import { TextInputModel } from './hooks';
|
|
5
|
+
export declare const TextInputModelContext: React.Context<import("@workday/canvas-kit-react/common").Model<{
|
|
6
|
+
hasError?: boolean | undefined;
|
|
7
|
+
id?: string | undefined;
|
|
8
|
+
isRequired?: boolean | undefined;
|
|
9
|
+
}, {}>>;
|
|
10
|
+
export interface TextInputProps extends ExtractProps<typeof FormField, never> {
|
|
11
|
+
model?: TextInputModel;
|
|
12
|
+
/**
|
|
13
|
+
* Children of the Text Input. Should contain a `<TextInput.Field>`, a `<TextInput.Label>` and an optional `<TextInput.Hint>`
|
|
14
|
+
*/
|
|
15
|
+
children: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
export declare const TextInput: import("@workday/canvas-kit-react/common").Component<TextInputProps> & {
|
|
18
|
+
Field: import("@workday/canvas-kit-react/common").ElementComponent<"input", import("./TextInputField").TextInputFieldProps>;
|
|
19
|
+
Label: import("@workday/canvas-kit-react/common").ElementComponent<"label", import("../../form-field/lib/FormFieldLabel").FormFieldLabelProps>;
|
|
20
|
+
Hint: import("@workday/canvas-kit-react/common").ElementComponent<"p", import("../../form-field/lib/FormFieldHint").FormFieldHintProps>;
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=TextInput.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ExtractProps } from '@workday/canvas-kit-react/common';
|
|
2
|
+
import { FormField } from '@workday/canvas-kit-preview-react/form-field';
|
|
3
|
+
import { TextInputModel } from './hooks';
|
|
4
|
+
export interface TextInputFieldProps extends ExtractProps<typeof FormField.Input, never> {
|
|
5
|
+
model?: TextInputModel;
|
|
6
|
+
}
|
|
7
|
+
export declare const TextInputField: import("@workday/canvas-kit-react/common").ElementComponent<"input", TextInputFieldProps>;
|
|
8
|
+
//# sourceMappingURL=TextInputField.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ExtractProps } from '@workday/canvas-kit-react/common';
|
|
2
|
+
import { FormField } from '@workday/canvas-kit-preview-react/form-field';
|
|
3
|
+
export declare type TextInputHintProps = ExtractProps<typeof FormField.Hint, never>;
|
|
4
|
+
export declare const TextInputHint: import("@workday/canvas-kit-react/common").ElementComponent<"p", import("../../form-field/lib/FormFieldHint").FormFieldHintProps>;
|
|
5
|
+
//# sourceMappingURL=TextInputHint.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ExtractProps } from '@workday/canvas-kit-react/common';
|
|
2
|
+
import { FormField } from '@workday/canvas-kit-preview-react/form-field';
|
|
3
|
+
export declare type TextInputLabelProps = ExtractProps<typeof FormField.Label, never>;
|
|
4
|
+
export declare const TextInputLabel: import("@workday/canvas-kit-react/common").ElementComponent<"label", import("../../form-field/lib/FormFieldLabel").FormFieldLabelProps>;
|
|
5
|
+
//# sourceMappingURL=TextInputLabel.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="@emotion/core" />
|
|
2
|
+
/**
|
|
3
|
+
* Adds the necessary props to a `Field` component. Used by the TextInput.Field subcomponent.
|
|
4
|
+
*/
|
|
5
|
+
export declare const useTextInputField: <P extends {}, R>(model: import("@workday/canvas-kit-react/common").Model<any, any>, elemProps?: P | undefined, ref?: ((instance: R | null) => void) | import("react").RefObject<R> | null | undefined) => {
|
|
6
|
+
type: string;
|
|
7
|
+
} & P & (R extends HTMLOrSVGElement ? {
|
|
8
|
+
ref: import("react").Ref<R>;
|
|
9
|
+
} : {});
|
|
10
|
+
//# sourceMappingURL=useTextInputField.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FormFieldModel } from '@workday/canvas-kit-preview-react/form-field';
|
|
2
|
+
export declare const useTextInputModel: (config?: import("../../../form-field").FormFieldModelConfig) => import("@workday/canvas-kit-react/common").Model<{
|
|
3
|
+
hasError?: boolean | undefined;
|
|
4
|
+
id?: string | undefined;
|
|
5
|
+
isRequired?: boolean | undefined;
|
|
6
|
+
}, {}>;
|
|
7
|
+
export declare type TextInputModel = FormFieldModel;
|
|
8
|
+
//# sourceMappingURL=useTextInputModel.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>) => void;
|
|
12
|
+
openTooltip: (event: React.MouseEvent<Element, MouseEvent> | React.FocusEvent<Element, Element>) => void;
|
|
13
13
|
closeTooltip: () => void;
|
|
14
14
|
shouldShowTooltip: boolean;
|
|
15
15
|
tooltipProps: {
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ExtractProps } from '@workday/canvas-kit-react/common';
|
|
3
|
+
import { Stack, StackSpacing } from '@workday/canvas-kit-labs-react/layout';
|
|
4
|
+
import { FormFieldModel, FormFieldModelConfig } from './hooks';
|
|
5
|
+
export declare const FormFieldModelContext: React.Context<import("@workday/canvas-kit-react/common").Model<{
|
|
6
|
+
hasError?: boolean | undefined;
|
|
7
|
+
id?: string | undefined;
|
|
8
|
+
isRequired?: boolean | undefined;
|
|
9
|
+
}, {}>>;
|
|
10
|
+
export interface FormFieldProps extends FormFieldModelConfig, Omit<ExtractProps<typeof Stack, never>, 'spacing'> {
|
|
11
|
+
model?: FormFieldModel;
|
|
12
|
+
/**
|
|
13
|
+
* Children of the Text Input. Should contain a `<FormField.Input>`, a `<FormField.Label>` and an optional `<FormField.Hint>`
|
|
14
|
+
*/
|
|
15
|
+
children: React.ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* The direction the child elements should stack
|
|
18
|
+
*/
|
|
19
|
+
orientation: 'vertical' | 'horizontal';
|
|
20
|
+
/**
|
|
21
|
+
* Spacing between children elements
|
|
22
|
+
* @default xxxs when vertical l when orientation is horizontal
|
|
23
|
+
*/
|
|
24
|
+
spacing?: StackSpacing;
|
|
25
|
+
}
|
|
26
|
+
export declare const FormField: import("@workday/canvas-kit-react/common").Component<FormFieldProps> & {
|
|
27
|
+
Input: import("@workday/canvas-kit-react/common").ElementComponent<"input", import("./FormFieldInput").FormFieldInputProps>;
|
|
28
|
+
Label: import("@workday/canvas-kit-react/common").ElementComponent<"label", import("./FormFieldLabel").FormFieldLabelProps>;
|
|
29
|
+
Hint: import("@workday/canvas-kit-react/common").ElementComponent<"p", import("./FormFieldHint").FormFieldHintProps>;
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=FormField.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ExtractProps } from '@workday/canvas-kit-react/common';
|
|
3
|
+
import { Box } from '@workday/canvas-kit-labs-react/common';
|
|
4
|
+
import { FormFieldModel } from './hooks';
|
|
5
|
+
export interface FormFieldHintProps extends ExtractProps<typeof Box, never> {
|
|
6
|
+
model?: FormFieldModel;
|
|
7
|
+
/**
|
|
8
|
+
* Hint text to show to the user regarding the Error/Alert
|
|
9
|
+
*/
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare const FormFieldHint: import("@workday/canvas-kit-react/common").ElementComponent<"p", FormFieldHintProps>;
|
|
13
|
+
//# sourceMappingURL=FormFieldHint.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ExtractProps } from '@workday/canvas-kit-react/common';
|
|
2
|
+
import { Box } from '@workday/canvas-kit-labs-react/common';
|
|
3
|
+
import { FormFieldModel } from './hooks';
|
|
4
|
+
export interface FormFieldInputProps extends ExtractProps<typeof Box, never> {
|
|
5
|
+
model?: FormFieldModel;
|
|
6
|
+
}
|
|
7
|
+
export declare const FormFieldInput: import("@workday/canvas-kit-react/common").ElementComponent<"input", FormFieldInputProps>;
|
|
8
|
+
//# sourceMappingURL=FormFieldInput.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ExtractProps } from '@workday/canvas-kit-react/common';
|
|
3
|
+
import { HStack, StackSpacing } from '@workday/canvas-kit-labs-react/layout';
|
|
4
|
+
import { FormFieldModel } from './hooks';
|
|
5
|
+
export interface FormFieldLabelProps extends Omit<ExtractProps<typeof HStack, never>, 'spacing'> {
|
|
6
|
+
model?: FormFieldModel;
|
|
7
|
+
/**
|
|
8
|
+
* The text of the label.
|
|
9
|
+
*/
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* When the input is required, this is spacing between label and asterisk.
|
|
13
|
+
* @default xxxs
|
|
14
|
+
*/
|
|
15
|
+
spacing?: StackSpacing;
|
|
16
|
+
}
|
|
17
|
+
export declare const FormFieldLabel: import("@workday/canvas-kit-react/common").ElementComponent<"label", FormFieldLabelProps>;
|
|
18
|
+
//# sourceMappingURL=FormFieldLabel.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="@emotion/core" />
|
|
2
|
+
/**
|
|
3
|
+
* Adds the necessary props to a `Hint` component.
|
|
4
|
+
* Used by the FormField.Hint subcomponent and other input type components
|
|
5
|
+
*/
|
|
6
|
+
export declare const useFormFieldHint: <P extends {}, R>(model: import("@workday/canvas-kit-react/common").Model<{
|
|
7
|
+
hasError?: boolean | undefined;
|
|
8
|
+
id?: string | undefined;
|
|
9
|
+
isRequired?: boolean | undefined;
|
|
10
|
+
}, {}>, elemProps?: P | undefined, ref?: ((instance: R | null) => void) | import("react").RefObject<R> | null | undefined) => {
|
|
11
|
+
id: string;
|
|
12
|
+
} & P & (R extends HTMLOrSVGElement ? {
|
|
13
|
+
ref: import("react").Ref<R>;
|
|
14
|
+
} : {});
|
|
15
|
+
//# sourceMappingURL=useFormFieldHint.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="@emotion/core" />
|
|
2
|
+
/**
|
|
3
|
+
* Adds the necessary props to an `Input` component.
|
|
4
|
+
* Used by the FormField.Input subcomponent and other input type components
|
|
5
|
+
*/
|
|
6
|
+
export declare const useFormFieldInput: <P extends {}, R>(model: import("@workday/canvas-kit-react/common").Model<{
|
|
7
|
+
hasError?: boolean | undefined;
|
|
8
|
+
id?: string | undefined;
|
|
9
|
+
isRequired?: boolean | undefined;
|
|
10
|
+
}, {}>, elemProps?: P | undefined, ref?: ((instance: R | null) => void) | import("react").RefObject<R> | null | undefined) => {
|
|
11
|
+
required: boolean | undefined;
|
|
12
|
+
'aria-invalid': boolean | undefined;
|
|
13
|
+
'aria-describedby': string;
|
|
14
|
+
id: string;
|
|
15
|
+
} & P & (R extends HTMLOrSVGElement ? {
|
|
16
|
+
ref: import("react").Ref<R>;
|
|
17
|
+
} : {});
|
|
18
|
+
//# sourceMappingURL=useFormFieldInput.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="@emotion/core" />
|
|
2
|
+
/**
|
|
3
|
+
* Adds the necessary props to a `Label` component.
|
|
4
|
+
* Used by the FormField.Label subcomponent and other input type components
|
|
5
|
+
*/
|
|
6
|
+
export declare const useFormFieldLabel: <P extends {}, R>(model: import("@workday/canvas-kit-react/common").Model<{
|
|
7
|
+
hasError?: boolean | undefined;
|
|
8
|
+
id?: string | undefined;
|
|
9
|
+
isRequired?: boolean | undefined;
|
|
10
|
+
}, {}>, elemProps?: P | undefined, ref?: ((instance: R | null) => void) | import("react").RefObject<R> | null | undefined) => {
|
|
11
|
+
htmlFor: string;
|
|
12
|
+
} & P & (R extends HTMLOrSVGElement ? {
|
|
13
|
+
ref: import("react").Ref<R>;
|
|
14
|
+
} : {});
|
|
15
|
+
//# sourceMappingURL=useFormFieldLabel.d.ts.map
|