@workday/canvas-kit-preview-react 8.0.0-alpha.253-next.22 → 8.0.0-alpha.428-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/color-picker/lib/ColorPicker.tsx +1 -1
- package/dist/commonjs/color-picker/lib/ColorPicker.js +25 -48
- package/dist/commonjs/color-picker/lib/parts/ColorReset.js +32 -23
- package/dist/commonjs/color-picker/lib/parts/SwatchBook.js +26 -39
- package/dist/commonjs/form-field/lib/FormField.d.ts +4 -10
- package/dist/commonjs/form-field/lib/FormField.d.ts.map +1 -1
- package/dist/commonjs/form-field/lib/FormField.js +10 -33
- package/dist/commonjs/form-field/lib/FormFieldHint.d.ts +1 -1
- package/dist/commonjs/form-field/lib/FormFieldHint.js +8 -31
- package/dist/commonjs/form-field/lib/FormFieldInput.d.ts +1 -1
- package/dist/commonjs/form-field/lib/FormFieldInput.js +6 -17
- package/dist/commonjs/form-field/lib/FormFieldLabel.d.ts +2 -8
- package/dist/commonjs/form-field/lib/FormFieldLabel.d.ts.map +1 -1
- package/dist/commonjs/form-field/lib/FormFieldLabel.js +8 -31
- package/dist/commonjs/form-field/lib/hooks/useFormFieldHint.d.ts +3 -5
- package/dist/commonjs/form-field/lib/hooks/useFormFieldHint.d.ts.map +1 -1
- package/dist/commonjs/form-field/lib/hooks/useFormFieldHint.js +4 -5
- package/dist/commonjs/form-field/lib/hooks/useFormFieldInput.d.ts +3 -5
- package/dist/commonjs/form-field/lib/hooks/useFormFieldInput.d.ts.map +1 -1
- package/dist/commonjs/form-field/lib/hooks/useFormFieldInput.js +5 -6
- package/dist/commonjs/form-field/lib/hooks/useFormFieldLabel.d.ts +3 -5
- package/dist/commonjs/form-field/lib/hooks/useFormFieldLabel.d.ts.map +1 -1
- package/dist/commonjs/form-field/lib/hooks/useFormFieldLabel.js +4 -5
- package/dist/commonjs/form-field/lib/hooks/useFormFieldModel.d.ts +2 -12
- package/dist/commonjs/form-field/lib/hooks/useFormFieldModel.d.ts.map +1 -1
- package/dist/commonjs/form-field/lib/hooks/useFormFieldModel.js +9 -19
- package/dist/commonjs/form-field/lib/hooks/useFormFieldOrientation.d.ts +4 -4
- package/dist/commonjs/form-field/lib/hooks/useFormFieldOrientation.d.ts.map +1 -1
- package/dist/commonjs/form-field/lib/hooks/useFormFieldOrientation.js +5 -5
- package/dist/commonjs/menu/lib/Menu.d.ts +16 -9
- package/dist/commonjs/menu/lib/Menu.d.ts.map +1 -1
- package/dist/commonjs/menu/lib/Menu.js +108 -132
- package/dist/commonjs/menu/lib/MenuItem.d.ts +17 -7
- package/dist/commonjs/menu/lib/MenuItem.d.ts.map +1 -1
- package/dist/commonjs/menu/lib/MenuItem.js +111 -114
- package/dist/commonjs/pill/lib/Pill.d.ts +103 -5
- package/dist/commonjs/pill/lib/Pill.d.ts.map +1 -1
- package/dist/commonjs/pill/lib/Pill.js +158 -64
- package/dist/commonjs/pill/lib/PillAvatar.js +6 -17
- package/dist/commonjs/pill/lib/PillCount.js +7 -30
- package/dist/commonjs/pill/lib/PillIcon.js +8 -31
- package/dist/commonjs/pill/lib/PillIconButton.js +13 -36
- package/dist/commonjs/pill/lib/PillLabel.js +10 -33
- package/dist/commonjs/pill/lib/usePillModel.js +8 -16
- package/dist/commonjs/segmented-control/index.d.ts +2 -0
- package/dist/commonjs/segmented-control/index.d.ts.map +1 -1
- package/dist/commonjs/segmented-control/index.js +4 -0
- package/dist/commonjs/segmented-control/lib/SegmentedControl.d.ts +267 -82
- package/dist/commonjs/segmented-control/lib/SegmentedControl.d.ts.map +1 -1
- package/dist/commonjs/segmented-control/lib/SegmentedControl.js +42 -7
- package/dist/commonjs/segmented-control/lib/SegmentedControlItem.d.ts +9 -5
- package/dist/commonjs/segmented-control/lib/SegmentedControlItem.d.ts.map +1 -1
- package/dist/commonjs/segmented-control/lib/SegmentedControlItem.js +24 -49
- package/dist/commonjs/segmented-control/lib/SegmentedControlList.d.ts +71 -2
- package/dist/commonjs/segmented-control/lib/SegmentedControlList.d.ts.map +1 -1
- package/dist/commonjs/segmented-control/lib/SegmentedControlList.js +15 -40
- package/dist/commonjs/segmented-control/lib/hooks/useSegmentedControlItem.d.ts +28 -9
- package/dist/commonjs/segmented-control/lib/hooks/useSegmentedControlItem.d.ts.map +1 -1
- package/dist/commonjs/segmented-control/lib/hooks/useSegmentedControlItem.js +8 -10
- package/dist/commonjs/segmented-control/lib/hooks/useSegmentedControlModel.d.ts +233 -83
- package/dist/commonjs/segmented-control/lib/hooks/useSegmentedControlModel.d.ts.map +1 -1
- package/dist/commonjs/segmented-control/lib/hooks/useSegmentedControlModel.js +33 -32
- package/dist/commonjs/select/lib/Select.js +147 -187
- package/dist/commonjs/select/lib/SelectBase.js +106 -101
- package/dist/commonjs/select/lib/SelectMenu.js +53 -84
- package/dist/commonjs/select/lib/SelectOption.js +33 -47
- package/dist/commonjs/select/lib/scrolling.js +6 -7
- package/dist/commonjs/select/lib/utils.js +4 -4
- package/dist/commonjs/side-panel/lib/SidePanel.d.ts +13 -26
- package/dist/commonjs/side-panel/lib/SidePanel.d.ts.map +1 -1
- package/dist/commonjs/side-panel/lib/SidePanel.js +95 -133
- package/dist/commonjs/side-panel/lib/SidePanelToggleButton.d.ts +17 -0
- package/dist/commonjs/side-panel/lib/SidePanelToggleButton.d.ts.map +1 -0
- package/dist/commonjs/side-panel/lib/SidePanelToggleButton.js +65 -0
- package/dist/commonjs/side-panel/lib/hooks.d.ts +20 -0
- package/dist/commonjs/side-panel/lib/hooks.d.ts.map +1 -1
- package/dist/commonjs/side-panel/lib/hooks.js +40 -21
- package/dist/commonjs/status-indicator/index.d.ts +2 -0
- package/dist/commonjs/status-indicator/index.d.ts.map +1 -1
- package/dist/commonjs/status-indicator/index.js +4 -0
- package/dist/commonjs/status-indicator/lib/StatusIndicator.d.ts +32 -8
- package/dist/commonjs/status-indicator/lib/StatusIndicator.d.ts.map +1 -1
- package/dist/commonjs/status-indicator/lib/StatusIndicator.js +37 -35
- package/dist/commonjs/status-indicator/lib/StatusIndicatorIcon.d.ts +10 -0
- package/dist/commonjs/status-indicator/lib/StatusIndicatorIcon.d.ts.map +1 -1
- package/dist/commonjs/status-indicator/lib/StatusIndicatorIcon.js +11 -23
- package/dist/commonjs/status-indicator/lib/StatusIndicatorLabel.js +5 -28
- package/dist/commonjs/status-indicator/lib/hooks/useStatusIndicatorModel.js +6 -15
- package/dist/commonjs/table/index.d.ts +2 -0
- package/dist/commonjs/table/index.d.ts.map +1 -0
- package/dist/commonjs/{text-area/lib/hooks → table}/index.js +1 -1
- package/dist/commonjs/table/lib/Table.d.ts +207 -0
- package/dist/commonjs/table/lib/Table.d.ts.map +1 -0
- package/dist/commonjs/table/lib/Table.js +229 -0
- package/dist/commonjs/table/lib/TableBody.d.ts +2 -0
- package/dist/commonjs/table/lib/TableBody.d.ts.map +1 -0
- package/dist/commonjs/table/lib/TableBody.js +35 -0
- package/dist/commonjs/table/lib/TableCaption.d.ts +2 -0
- package/dist/commonjs/table/lib/TableCaption.d.ts.map +1 -0
- package/dist/commonjs/table/lib/TableCaption.js +16 -0
- package/dist/commonjs/table/lib/TableCell.d.ts +2 -0
- package/dist/commonjs/table/lib/TableCell.d.ts.map +1 -0
- package/dist/commonjs/table/lib/TableCell.js +16 -0
- package/dist/commonjs/table/lib/TableFooter.d.ts +2 -0
- package/dist/commonjs/table/lib/TableFooter.d.ts.map +1 -0
- package/dist/commonjs/table/lib/TableFooter.js +15 -0
- package/dist/commonjs/table/lib/TableHead.d.ts +2 -0
- package/dist/commonjs/table/lib/TableHead.d.ts.map +1 -0
- package/dist/commonjs/table/lib/TableHead.js +23 -0
- package/dist/commonjs/table/lib/TableHeader.d.ts +2 -0
- package/dist/commonjs/table/lib/TableHeader.d.ts.map +1 -0
- package/dist/commonjs/table/lib/TableHeader.js +16 -0
- package/dist/commonjs/table/lib/TableRow.d.ts +2 -0
- package/dist/commonjs/table/lib/TableRow.d.ts.map +1 -0
- package/dist/commonjs/table/lib/TableRow.js +19 -0
- package/dist/commonjs/text-area/lib/TextArea.d.ts +2 -2
- package/dist/commonjs/text-area/lib/TextArea.d.ts.map +1 -1
- package/dist/commonjs/text-area/lib/TextArea.js +9 -33
- package/dist/commonjs/text-area/lib/TextAreaField.d.ts +1 -1
- package/dist/commonjs/text-area/lib/TextAreaField.d.ts.map +1 -1
- package/dist/commonjs/text-area/lib/TextAreaField.js +12 -36
- package/dist/commonjs/text-input/lib/TextInput.d.ts +4 -4
- package/dist/commonjs/text-input/lib/TextInput.d.ts.map +1 -1
- package/dist/commonjs/text-input/lib/TextInput.js +9 -33
- package/dist/commonjs/text-input/lib/TextInputField.d.ts +1 -1
- package/dist/commonjs/text-input/lib/TextInputField.d.ts.map +1 -1
- package/dist/commonjs/text-input/lib/TextInputField.js +13 -25
- package/dist/commonjs/text-input/lib/hooks/useTextInputField.d.ts +3 -5
- package/dist/commonjs/text-input/lib/hooks/useTextInputField.d.ts.map +1 -1
- package/dist/commonjs/text-input/lib/hooks/useTextInputField.js +3 -3
- package/dist/commonjs/text-input/lib/hooks/useTextInputModel.d.ts +1 -0
- package/dist/commonjs/text-input/lib/hooks/useTextInputModel.d.ts.map +1 -1
- package/dist/commonjs/text-input/lib/hooks/useTextInputModel.js +2 -1
- package/dist/es6/color-picker/lib/ColorPicker.js +16 -39
- package/dist/es6/color-picker/lib/parts/ColorReset.js +27 -18
- package/dist/es6/color-picker/lib/parts/SwatchBook.js +21 -34
- package/dist/es6/form-field/lib/FormField.d.ts +4 -10
- package/dist/es6/form-field/lib/FormField.d.ts.map +1 -1
- package/dist/es6/form-field/lib/FormField.js +5 -28
- package/dist/es6/form-field/lib/FormFieldHint.d.ts +1 -1
- package/dist/es6/form-field/lib/FormFieldHint.js +4 -27
- package/dist/es6/form-field/lib/FormFieldInput.d.ts +1 -1
- package/dist/es6/form-field/lib/FormFieldInput.js +3 -14
- package/dist/es6/form-field/lib/FormFieldLabel.d.ts +2 -8
- package/dist/es6/form-field/lib/FormFieldLabel.d.ts.map +1 -1
- package/dist/es6/form-field/lib/FormFieldLabel.js +5 -28
- package/dist/es6/form-field/lib/hooks/useFormFieldHint.d.ts +3 -5
- package/dist/es6/form-field/lib/hooks/useFormFieldHint.d.ts.map +1 -1
- package/dist/es6/form-field/lib/hooks/useFormFieldHint.js +2 -3
- package/dist/es6/form-field/lib/hooks/useFormFieldInput.d.ts +3 -5
- package/dist/es6/form-field/lib/hooks/useFormFieldInput.d.ts.map +1 -1
- package/dist/es6/form-field/lib/hooks/useFormFieldInput.js +3 -4
- package/dist/es6/form-field/lib/hooks/useFormFieldLabel.d.ts +3 -5
- package/dist/es6/form-field/lib/hooks/useFormFieldLabel.d.ts.map +1 -1
- package/dist/es6/form-field/lib/hooks/useFormFieldLabel.js +2 -3
- package/dist/es6/form-field/lib/hooks/useFormFieldModel.d.ts +2 -12
- package/dist/es6/form-field/lib/hooks/useFormFieldModel.d.ts.map +1 -1
- package/dist/es6/form-field/lib/hooks/useFormFieldModel.js +9 -19
- package/dist/es6/form-field/lib/hooks/useFormFieldOrientation.d.ts +4 -4
- package/dist/es6/form-field/lib/hooks/useFormFieldOrientation.d.ts.map +1 -1
- package/dist/es6/form-field/lib/hooks/useFormFieldOrientation.js +4 -4
- package/dist/es6/menu/lib/Menu.d.ts +16 -9
- package/dist/es6/menu/lib/Menu.d.ts.map +1 -1
- package/dist/es6/menu/lib/Menu.js +103 -128
- package/dist/es6/menu/lib/MenuItem.d.ts +17 -7
- package/dist/es6/menu/lib/MenuItem.d.ts.map +1 -1
- package/dist/es6/menu/lib/MenuItem.js +107 -111
- package/dist/es6/pill/lib/Pill.d.ts +103 -5
- package/dist/es6/pill/lib/Pill.d.ts.map +1 -1
- package/dist/es6/pill/lib/Pill.js +149 -55
- package/dist/es6/pill/lib/PillAvatar.js +3 -14
- package/dist/es6/pill/lib/PillCount.js +4 -27
- package/dist/es6/pill/lib/PillIcon.js +3 -26
- package/dist/es6/pill/lib/PillIconButton.js +7 -30
- package/dist/es6/pill/lib/PillLabel.js +5 -28
- package/dist/es6/pill/lib/usePillModel.js +8 -16
- package/dist/es6/segmented-control/index.d.ts +2 -0
- package/dist/es6/segmented-control/index.d.ts.map +1 -1
- package/dist/es6/segmented-control/index.js +2 -0
- package/dist/es6/segmented-control/lib/SegmentedControl.d.ts +267 -82
- package/dist/es6/segmented-control/lib/SegmentedControl.d.ts.map +1 -1
- package/dist/es6/segmented-control/lib/SegmentedControl.js +38 -3
- package/dist/es6/segmented-control/lib/SegmentedControlItem.d.ts +9 -5
- package/dist/es6/segmented-control/lib/SegmentedControlItem.d.ts.map +1 -1
- package/dist/es6/segmented-control/lib/SegmentedControlItem.js +17 -42
- package/dist/es6/segmented-control/lib/SegmentedControlList.d.ts +71 -2
- package/dist/es6/segmented-control/lib/SegmentedControlList.d.ts.map +1 -1
- package/dist/es6/segmented-control/lib/SegmentedControlList.js +9 -34
- package/dist/es6/segmented-control/lib/hooks/useSegmentedControlItem.d.ts +28 -9
- package/dist/es6/segmented-control/lib/hooks/useSegmentedControlItem.d.ts.map +1 -1
- package/dist/es6/segmented-control/lib/hooks/useSegmentedControlItem.js +5 -7
- package/dist/es6/segmented-control/lib/hooks/useSegmentedControlModel.d.ts +233 -83
- package/dist/es6/segmented-control/lib/hooks/useSegmentedControlModel.d.ts.map +1 -1
- package/dist/es6/segmented-control/lib/hooks/useSegmentedControlModel.js +31 -30
- package/dist/es6/select/lib/Select.js +144 -184
- package/dist/es6/select/lib/SelectBase.js +99 -94
- package/dist/es6/select/lib/SelectMenu.js +49 -80
- package/dist/es6/select/lib/SelectOption.js +30 -44
- package/dist/es6/select/lib/scrolling.js +6 -7
- package/dist/es6/select/lib/utils.js +4 -4
- package/dist/es6/side-panel/lib/SidePanel.d.ts +13 -26
- package/dist/es6/side-panel/lib/SidePanel.d.ts.map +1 -1
- package/dist/es6/side-panel/lib/SidePanel.js +93 -130
- package/dist/es6/side-panel/lib/SidePanelToggleButton.d.ts +17 -0
- package/dist/es6/side-panel/lib/SidePanelToggleButton.d.ts.map +1 -0
- package/dist/es6/side-panel/lib/SidePanelToggleButton.js +43 -0
- package/dist/es6/side-panel/lib/hooks.d.ts +20 -0
- package/dist/es6/side-panel/lib/hooks.d.ts.map +1 -1
- package/dist/es6/side-panel/lib/hooks.js +37 -18
- package/dist/es6/status-indicator/index.d.ts +2 -0
- package/dist/es6/status-indicator/index.d.ts.map +1 -1
- package/dist/es6/status-indicator/index.js +2 -0
- package/dist/es6/status-indicator/lib/StatusIndicator.d.ts +32 -8
- package/dist/es6/status-indicator/lib/StatusIndicator.d.ts.map +1 -1
- package/dist/es6/status-indicator/lib/StatusIndicator.js +33 -31
- package/dist/es6/status-indicator/lib/StatusIndicatorIcon.d.ts +10 -0
- package/dist/es6/status-indicator/lib/StatusIndicatorIcon.d.ts.map +1 -1
- package/dist/es6/status-indicator/lib/StatusIndicatorIcon.js +6 -18
- package/dist/es6/status-indicator/lib/StatusIndicatorLabel.js +3 -26
- package/dist/es6/status-indicator/lib/hooks/useStatusIndicatorModel.js +6 -15
- package/dist/es6/table/index.d.ts +2 -0
- package/dist/es6/table/index.d.ts.map +1 -0
- package/dist/es6/table/index.js +1 -0
- package/dist/es6/table/lib/Table.d.ts +207 -0
- package/dist/es6/table/lib/Table.d.ts.map +1 -0
- package/dist/es6/table/lib/Table.js +223 -0
- package/dist/es6/table/lib/TableBody.d.ts +2 -0
- package/dist/es6/table/lib/TableBody.d.ts.map +1 -0
- package/dist/es6/table/lib/TableBody.js +29 -0
- package/dist/es6/table/lib/TableCaption.d.ts +2 -0
- package/dist/es6/table/lib/TableCaption.d.ts.map +1 -0
- package/dist/es6/table/lib/TableCaption.js +10 -0
- package/dist/es6/table/lib/TableCell.d.ts +2 -0
- package/dist/es6/table/lib/TableCell.d.ts.map +1 -0
- package/dist/es6/table/lib/TableCell.js +10 -0
- package/dist/es6/table/lib/TableFooter.d.ts +2 -0
- package/dist/es6/table/lib/TableFooter.d.ts.map +1 -0
- package/dist/es6/table/lib/TableFooter.js +9 -0
- package/dist/es6/table/lib/TableHead.d.ts +2 -0
- package/dist/es6/table/lib/TableHead.d.ts.map +1 -0
- package/dist/es6/table/lib/TableHead.js +17 -0
- package/dist/es6/table/lib/TableHeader.d.ts +2 -0
- package/dist/es6/table/lib/TableHeader.d.ts.map +1 -0
- package/dist/es6/table/lib/TableHeader.js +10 -0
- package/dist/es6/table/lib/TableRow.d.ts +2 -0
- package/dist/es6/table/lib/TableRow.d.ts.map +1 -0
- package/dist/es6/table/lib/TableRow.js +13 -0
- package/dist/es6/text-area/lib/TextArea.d.ts +2 -2
- package/dist/es6/text-area/lib/TextArea.d.ts.map +1 -1
- package/dist/es6/text-area/lib/TextArea.js +7 -31
- package/dist/es6/text-area/lib/TextAreaField.d.ts +1 -1
- package/dist/es6/text-area/lib/TextAreaField.d.ts.map +1 -1
- package/dist/es6/text-area/lib/TextAreaField.js +9 -33
- package/dist/es6/text-input/lib/TextInput.d.ts +4 -4
- package/dist/es6/text-input/lib/TextInput.d.ts.map +1 -1
- package/dist/es6/text-input/lib/TextInput.js +7 -31
- package/dist/es6/text-input/lib/TextInputField.d.ts +1 -1
- package/dist/es6/text-input/lib/TextInputField.d.ts.map +1 -1
- package/dist/es6/text-input/lib/TextInputField.js +12 -24
- package/dist/es6/text-input/lib/hooks/useTextInputField.d.ts +3 -5
- package/dist/es6/text-input/lib/hooks/useTextInputField.d.ts.map +1 -1
- package/dist/es6/text-input/lib/hooks/useTextInputField.js +1 -1
- package/dist/es6/text-input/lib/hooks/useTextInputModel.d.ts +1 -0
- package/dist/es6/text-input/lib/hooks/useTextInputModel.d.ts.map +1 -1
- package/dist/es6/text-input/lib/hooks/useTextInputModel.js +2 -1
- package/form-field/lib/FormField.tsx +5 -10
- package/form-field/lib/FormFieldLabel.tsx +6 -11
- package/form-field/lib/hooks/useFormFieldModel.tsx +1 -3
- package/form-field/lib/hooks/useFormFieldOrientation.tsx +6 -6
- package/menu/lib/Menu.tsx +16 -9
- package/menu/lib/MenuItem.tsx +19 -8
- package/package.json +4 -5
- package/pill/lib/Pill.tsx +109 -10
- package/pill/lib/PillCount.tsx +1 -1
- package/pill/lib/PillIcon.tsx +1 -1
- package/segmented-control/index.ts +2 -0
- package/segmented-control/lib/SegmentedControl.tsx +36 -0
- package/segmented-control/lib/SegmentedControlList.tsx +1 -1
- package/segmented-control/lib/hooks/useSegmentedControlItem.tsx +1 -5
- package/side-panel/lib/SidePanel.tsx +119 -169
- package/side-panel/lib/SidePanelToggleButton.tsx +78 -0
- package/side-panel/lib/hooks.ts +20 -0
- package/status-indicator/index.ts +2 -0
- package/status-indicator/lib/StatusIndicator.tsx +32 -6
- package/status-indicator/lib/StatusIndicatorIcon.tsx +1 -1
- package/table/LICENSE +51 -0
- package/table/README.md +5 -0
- package/table/index.ts +1 -0
- package/table/lib/Table.tsx +236 -0
- package/table/lib/TableBody.tsx +35 -0
- package/table/lib/TableCaption.tsx +22 -0
- package/table/lib/TableCell.tsx +27 -0
- package/table/lib/TableFooter.tsx +14 -0
- package/table/lib/TableHead.tsx +23 -0
- package/table/lib/TableHeader.tsx +28 -0
- package/table/lib/TableRow.tsx +26 -0
- package/table/package.json +6 -0
- package/text-area/lib/TextArea.tsx +9 -6
- package/text-area/lib/TextAreaField.tsx +6 -2
- package/text-input/lib/TextInput.tsx +9 -6
- package/text-input/lib/TextInputField.tsx +9 -5
- package/text-input/lib/hooks/useTextInputModel.ts +1 -0
- package/dist/commonjs/text-area/lib/hooks/index.d.ts +0 -2
- package/dist/commonjs/text-area/lib/hooks/index.d.ts.map +0 -1
- package/dist/commonjs/text-area/lib/hooks/useTextAreaModel.d.ts +0 -28
- package/dist/commonjs/text-area/lib/hooks/useTextAreaModel.d.ts.map +0 -1
- package/dist/commonjs/text-area/lib/hooks/useTextAreaModel.js +0 -5
- package/dist/es6/text-area/lib/hooks/index.d.ts +0 -2
- package/dist/es6/text-area/lib/hooks/index.d.ts.map +0 -1
- package/dist/es6/text-area/lib/hooks/index.js +0 -1
- package/dist/es6/text-area/lib/hooks/useTextAreaModel.d.ts +0 -28
- package/dist/es6/text-area/lib/hooks/useTextAreaModel.d.ts.map +0 -1
- package/dist/es6/text-area/lib/hooks/useTextAreaModel.js +0 -2
- package/text-area/lib/hooks/index.ts +0 -1
- package/text-area/lib/hooks/useTextAreaModel.ts +0 -3
|
@@ -25,13 +25,14 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
25
25
|
* We suggest to use the `vertical` orientation only for icon only variant.
|
|
26
26
|
* @default 'horizontal'
|
|
27
27
|
*/
|
|
28
|
-
orientation: "
|
|
28
|
+
orientation: import("@workday/canvas-kit-react/collection/lib/useBaseListModel").Orientation;
|
|
29
29
|
initialSelectedIds: import("@workday/canvas-kit-react/collection/lib/useSelectionListModel").SelectedIds;
|
|
30
30
|
initialUnselectedIds: string[];
|
|
31
31
|
selection: import("@workday/canvas-kit-react/collection/lib/useSelectionListModel").SelectionManager;
|
|
32
32
|
initialCursorId: string;
|
|
33
33
|
columnCount: number;
|
|
34
34
|
navigation: import("@workday/canvas-kit-react/collection/lib/useCursorListModel").NavigationManager;
|
|
35
|
+
pageSize: number;
|
|
35
36
|
getId: (item: any) => string;
|
|
36
37
|
getTextValue: (item: any) => string;
|
|
37
38
|
nonInteractiveIds: string[];
|
|
@@ -44,10 +45,14 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
44
45
|
}, prevState: {
|
|
45
46
|
disabled: boolean;
|
|
46
47
|
size: "small" | "medium" | "large";
|
|
47
|
-
selectedIds:
|
|
48
|
+
selectedIds: string[] | "all";
|
|
48
49
|
unselectedIds: string[];
|
|
49
50
|
cursorId: string;
|
|
50
51
|
columnCount: number;
|
|
52
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
53
|
+
cursorIndexRef: {
|
|
54
|
+
readonly current: number;
|
|
55
|
+
};
|
|
51
56
|
UNSTABLE_virtual: {
|
|
52
57
|
virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
|
|
53
58
|
totalSize: number;
|
|
@@ -67,10 +72,14 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
67
72
|
onSelectAll?: ((data: undefined, prevState: {
|
|
68
73
|
disabled: boolean;
|
|
69
74
|
size: "small" | "medium" | "large";
|
|
70
|
-
selectedIds:
|
|
75
|
+
selectedIds: string[] | "all";
|
|
71
76
|
unselectedIds: string[];
|
|
72
77
|
cursorId: string;
|
|
73
78
|
columnCount: number;
|
|
79
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
80
|
+
cursorIndexRef: {
|
|
81
|
+
readonly current: number;
|
|
82
|
+
};
|
|
74
83
|
UNSTABLE_virtual: {
|
|
75
84
|
virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
|
|
76
85
|
totalSize: number;
|
|
@@ -90,10 +99,14 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
90
99
|
onUnselectAll?: ((data: undefined, prevState: {
|
|
91
100
|
disabled: boolean;
|
|
92
101
|
size: "small" | "medium" | "large";
|
|
93
|
-
selectedIds:
|
|
102
|
+
selectedIds: string[] | "all";
|
|
94
103
|
unselectedIds: string[];
|
|
95
104
|
cursorId: string;
|
|
96
105
|
columnCount: number;
|
|
106
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
107
|
+
cursorIndexRef: {
|
|
108
|
+
readonly current: number;
|
|
109
|
+
};
|
|
97
110
|
UNSTABLE_virtual: {
|
|
98
111
|
virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
|
|
99
112
|
totalSize: number;
|
|
@@ -110,16 +123,19 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
110
123
|
isVirtualized: boolean;
|
|
111
124
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
112
125
|
}) => void) | undefined;
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
textValue: string;
|
|
126
|
+
onGoTo?: ((data: {
|
|
127
|
+
id: string;
|
|
116
128
|
}, prevState: {
|
|
117
129
|
disabled: boolean;
|
|
118
130
|
size: "small" | "medium" | "large";
|
|
119
|
-
selectedIds:
|
|
131
|
+
selectedIds: string[] | "all";
|
|
120
132
|
unselectedIds: string[];
|
|
121
133
|
cursorId: string;
|
|
122
134
|
columnCount: number;
|
|
135
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
136
|
+
cursorIndexRef: {
|
|
137
|
+
readonly current: number;
|
|
138
|
+
};
|
|
123
139
|
UNSTABLE_virtual: {
|
|
124
140
|
virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
|
|
125
141
|
totalSize: number;
|
|
@@ -136,15 +152,17 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
136
152
|
isVirtualized: boolean;
|
|
137
153
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
138
154
|
}) => void) | undefined;
|
|
139
|
-
|
|
140
|
-
id: string;
|
|
141
|
-
}, prevState: {
|
|
155
|
+
onGoToNext?: ((data: undefined, prevState: {
|
|
142
156
|
disabled: boolean;
|
|
143
157
|
size: "small" | "medium" | "large";
|
|
144
|
-
selectedIds:
|
|
158
|
+
selectedIds: string[] | "all";
|
|
145
159
|
unselectedIds: string[];
|
|
146
160
|
cursorId: string;
|
|
147
161
|
columnCount: number;
|
|
162
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
163
|
+
cursorIndexRef: {
|
|
164
|
+
readonly current: number;
|
|
165
|
+
};
|
|
148
166
|
UNSTABLE_virtual: {
|
|
149
167
|
virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
|
|
150
168
|
totalSize: number;
|
|
@@ -161,13 +179,17 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
161
179
|
isVirtualized: boolean;
|
|
162
180
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
163
181
|
}) => void) | undefined;
|
|
164
|
-
|
|
182
|
+
onGoToPrevious?: ((data: undefined, prevState: {
|
|
165
183
|
disabled: boolean;
|
|
166
184
|
size: "small" | "medium" | "large";
|
|
167
|
-
selectedIds:
|
|
185
|
+
selectedIds: string[] | "all";
|
|
168
186
|
unselectedIds: string[];
|
|
169
187
|
cursorId: string;
|
|
170
188
|
columnCount: number;
|
|
189
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
190
|
+
cursorIndexRef: {
|
|
191
|
+
readonly current: number;
|
|
192
|
+
};
|
|
171
193
|
UNSTABLE_virtual: {
|
|
172
194
|
virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
|
|
173
195
|
totalSize: number;
|
|
@@ -184,13 +206,17 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
184
206
|
isVirtualized: boolean;
|
|
185
207
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
186
208
|
}) => void) | undefined;
|
|
187
|
-
|
|
209
|
+
onGoToPreviousRow?: ((data: undefined, prevState: {
|
|
188
210
|
disabled: boolean;
|
|
189
211
|
size: "small" | "medium" | "large";
|
|
190
|
-
selectedIds:
|
|
212
|
+
selectedIds: string[] | "all";
|
|
191
213
|
unselectedIds: string[];
|
|
192
214
|
cursorId: string;
|
|
193
215
|
columnCount: number;
|
|
216
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
217
|
+
cursorIndexRef: {
|
|
218
|
+
readonly current: number;
|
|
219
|
+
};
|
|
194
220
|
UNSTABLE_virtual: {
|
|
195
221
|
virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
|
|
196
222
|
totalSize: number;
|
|
@@ -207,13 +233,17 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
207
233
|
isVirtualized: boolean;
|
|
208
234
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
209
235
|
}) => void) | undefined;
|
|
210
|
-
|
|
236
|
+
onGoToNextRow?: ((data: undefined, prevState: {
|
|
211
237
|
disabled: boolean;
|
|
212
238
|
size: "small" | "medium" | "large";
|
|
213
|
-
selectedIds:
|
|
239
|
+
selectedIds: string[] | "all";
|
|
214
240
|
unselectedIds: string[];
|
|
215
241
|
cursorId: string;
|
|
216
242
|
columnCount: number;
|
|
243
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
244
|
+
cursorIndexRef: {
|
|
245
|
+
readonly current: number;
|
|
246
|
+
};
|
|
217
247
|
UNSTABLE_virtual: {
|
|
218
248
|
virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
|
|
219
249
|
totalSize: number;
|
|
@@ -230,13 +260,17 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
230
260
|
isVirtualized: boolean;
|
|
231
261
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
232
262
|
}) => void) | undefined;
|
|
233
|
-
|
|
263
|
+
onGoToFirst?: ((data: undefined, prevState: {
|
|
234
264
|
disabled: boolean;
|
|
235
265
|
size: "small" | "medium" | "large";
|
|
236
|
-
selectedIds:
|
|
266
|
+
selectedIds: string[] | "all";
|
|
237
267
|
unselectedIds: string[];
|
|
238
268
|
cursorId: string;
|
|
239
269
|
columnCount: number;
|
|
270
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
271
|
+
cursorIndexRef: {
|
|
272
|
+
readonly current: number;
|
|
273
|
+
};
|
|
240
274
|
UNSTABLE_virtual: {
|
|
241
275
|
virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
|
|
242
276
|
totalSize: number;
|
|
@@ -253,13 +287,17 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
253
287
|
isVirtualized: boolean;
|
|
254
288
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
255
289
|
}) => void) | undefined;
|
|
256
|
-
|
|
290
|
+
onGoToLast?: ((data: undefined, prevState: {
|
|
257
291
|
disabled: boolean;
|
|
258
292
|
size: "small" | "medium" | "large";
|
|
259
|
-
selectedIds:
|
|
293
|
+
selectedIds: string[] | "all";
|
|
260
294
|
unselectedIds: string[];
|
|
261
295
|
cursorId: string;
|
|
262
296
|
columnCount: number;
|
|
297
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
298
|
+
cursorIndexRef: {
|
|
299
|
+
readonly current: number;
|
|
300
|
+
};
|
|
263
301
|
UNSTABLE_virtual: {
|
|
264
302
|
virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
|
|
265
303
|
totalSize: number;
|
|
@@ -276,13 +314,17 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
276
314
|
isVirtualized: boolean;
|
|
277
315
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
278
316
|
}) => void) | undefined;
|
|
279
|
-
|
|
317
|
+
onGoToFirstOfRow?: ((data: undefined, prevState: {
|
|
280
318
|
disabled: boolean;
|
|
281
319
|
size: "small" | "medium" | "large";
|
|
282
|
-
selectedIds:
|
|
320
|
+
selectedIds: string[] | "all";
|
|
283
321
|
unselectedIds: string[];
|
|
284
322
|
cursorId: string;
|
|
285
323
|
columnCount: number;
|
|
324
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
325
|
+
cursorIndexRef: {
|
|
326
|
+
readonly current: number;
|
|
327
|
+
};
|
|
286
328
|
UNSTABLE_virtual: {
|
|
287
329
|
virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
|
|
288
330
|
totalSize: number;
|
|
@@ -299,13 +341,17 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
299
341
|
isVirtualized: boolean;
|
|
300
342
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
301
343
|
}) => void) | undefined;
|
|
302
|
-
|
|
344
|
+
onGoToLastOfRow?: ((data: undefined, prevState: {
|
|
303
345
|
disabled: boolean;
|
|
304
346
|
size: "small" | "medium" | "large";
|
|
305
|
-
selectedIds:
|
|
347
|
+
selectedIds: string[] | "all";
|
|
306
348
|
unselectedIds: string[];
|
|
307
349
|
cursorId: string;
|
|
308
350
|
columnCount: number;
|
|
351
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
352
|
+
cursorIndexRef: {
|
|
353
|
+
readonly current: number;
|
|
354
|
+
};
|
|
309
355
|
UNSTABLE_virtual: {
|
|
310
356
|
virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
|
|
311
357
|
totalSize: number;
|
|
@@ -322,13 +368,17 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
322
368
|
isVirtualized: boolean;
|
|
323
369
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
324
370
|
}) => void) | undefined;
|
|
325
|
-
|
|
371
|
+
onGoToNextPage?: ((data: undefined, prevState: {
|
|
326
372
|
disabled: boolean;
|
|
327
373
|
size: "small" | "medium" | "large";
|
|
328
|
-
selectedIds:
|
|
374
|
+
selectedIds: string[] | "all";
|
|
329
375
|
unselectedIds: string[];
|
|
330
376
|
cursorId: string;
|
|
331
377
|
columnCount: number;
|
|
378
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
379
|
+
cursorIndexRef: {
|
|
380
|
+
readonly current: number;
|
|
381
|
+
};
|
|
332
382
|
UNSTABLE_virtual: {
|
|
333
383
|
virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
|
|
334
384
|
totalSize: number;
|
|
@@ -345,13 +395,17 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
345
395
|
isVirtualized: boolean;
|
|
346
396
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
347
397
|
}) => void) | undefined;
|
|
348
|
-
|
|
398
|
+
onGoToPreviousPage?: ((data: undefined, prevState: {
|
|
349
399
|
disabled: boolean;
|
|
350
400
|
size: "small" | "medium" | "large";
|
|
351
|
-
selectedIds:
|
|
401
|
+
selectedIds: string[] | "all";
|
|
352
402
|
unselectedIds: string[];
|
|
353
403
|
cursorId: string;
|
|
354
404
|
columnCount: number;
|
|
405
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
406
|
+
cursorIndexRef: {
|
|
407
|
+
readonly current: number;
|
|
408
|
+
};
|
|
355
409
|
UNSTABLE_virtual: {
|
|
356
410
|
virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
|
|
357
411
|
totalSize: number;
|
|
@@ -368,13 +422,20 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
368
422
|
isVirtualized: boolean;
|
|
369
423
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
370
424
|
}) => void) | undefined;
|
|
371
|
-
|
|
425
|
+
onRegisterItem?: ((data: {
|
|
426
|
+
item: any;
|
|
427
|
+
textValue: string;
|
|
428
|
+
}, prevState: {
|
|
372
429
|
disabled: boolean;
|
|
373
430
|
size: "small" | "medium" | "large";
|
|
374
|
-
selectedIds:
|
|
431
|
+
selectedIds: string[] | "all";
|
|
375
432
|
unselectedIds: string[];
|
|
376
433
|
cursorId: string;
|
|
377
434
|
columnCount: number;
|
|
435
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
436
|
+
cursorIndexRef: {
|
|
437
|
+
readonly current: number;
|
|
438
|
+
};
|
|
378
439
|
UNSTABLE_virtual: {
|
|
379
440
|
virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
|
|
380
441
|
totalSize: number;
|
|
@@ -396,10 +457,14 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
396
457
|
}, prevState: {
|
|
397
458
|
disabled: boolean;
|
|
398
459
|
size: "small" | "medium" | "large";
|
|
399
|
-
selectedIds:
|
|
460
|
+
selectedIds: string[] | "all";
|
|
400
461
|
unselectedIds: string[];
|
|
401
462
|
cursorId: string;
|
|
402
463
|
columnCount: number;
|
|
464
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
465
|
+
cursorIndexRef: {
|
|
466
|
+
readonly current: number;
|
|
467
|
+
};
|
|
403
468
|
UNSTABLE_virtual: {
|
|
404
469
|
virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
|
|
405
470
|
totalSize: number;
|
|
@@ -421,10 +486,14 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
421
486
|
}, prevState: {
|
|
422
487
|
disabled: boolean;
|
|
423
488
|
size: "small" | "medium" | "large";
|
|
424
|
-
selectedIds:
|
|
489
|
+
selectedIds: string[] | "all";
|
|
425
490
|
unselectedIds: string[];
|
|
426
491
|
cursorId: string;
|
|
427
492
|
columnCount: number;
|
|
493
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
494
|
+
cursorIndexRef: {
|
|
495
|
+
readonly current: number;
|
|
496
|
+
};
|
|
428
497
|
UNSTABLE_virtual: {
|
|
429
498
|
virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
|
|
430
499
|
totalSize: number;
|
|
@@ -447,10 +516,14 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
447
516
|
}, state: {
|
|
448
517
|
disabled: boolean;
|
|
449
518
|
size: "small" | "medium" | "large";
|
|
450
|
-
selectedIds:
|
|
519
|
+
selectedIds: string[] | "all";
|
|
451
520
|
unselectedIds: string[];
|
|
452
521
|
cursorId: string;
|
|
453
522
|
columnCount: number;
|
|
523
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
524
|
+
cursorIndexRef: {
|
|
525
|
+
readonly current: number;
|
|
526
|
+
};
|
|
454
527
|
UNSTABLE_virtual: {
|
|
455
528
|
virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
|
|
456
529
|
totalSize: number;
|
|
@@ -470,10 +543,14 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
470
543
|
shouldSelectAll?: ((data: undefined, state: {
|
|
471
544
|
disabled: boolean;
|
|
472
545
|
size: "small" | "medium" | "large";
|
|
473
|
-
selectedIds:
|
|
546
|
+
selectedIds: string[] | "all";
|
|
474
547
|
unselectedIds: string[];
|
|
475
548
|
cursorId: string;
|
|
476
549
|
columnCount: number;
|
|
550
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
551
|
+
cursorIndexRef: {
|
|
552
|
+
readonly current: number;
|
|
553
|
+
};
|
|
477
554
|
UNSTABLE_virtual: {
|
|
478
555
|
virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
|
|
479
556
|
totalSize: number;
|
|
@@ -493,10 +570,14 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
493
570
|
shouldUnselectAll?: ((data: undefined, state: {
|
|
494
571
|
disabled: boolean;
|
|
495
572
|
size: "small" | "medium" | "large";
|
|
496
|
-
selectedIds:
|
|
573
|
+
selectedIds: string[] | "all";
|
|
497
574
|
unselectedIds: string[];
|
|
498
575
|
cursorId: string;
|
|
499
576
|
columnCount: number;
|
|
577
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
578
|
+
cursorIndexRef: {
|
|
579
|
+
readonly current: number;
|
|
580
|
+
};
|
|
500
581
|
UNSTABLE_virtual: {
|
|
501
582
|
virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
|
|
502
583
|
totalSize: number;
|
|
@@ -513,16 +594,19 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
513
594
|
isVirtualized: boolean;
|
|
514
595
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
515
596
|
}) => boolean) | undefined;
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
textValue: string;
|
|
597
|
+
shouldGoTo?: ((data: {
|
|
598
|
+
id: string;
|
|
519
599
|
}, state: {
|
|
520
600
|
disabled: boolean;
|
|
521
601
|
size: "small" | "medium" | "large";
|
|
522
|
-
selectedIds:
|
|
602
|
+
selectedIds: string[] | "all";
|
|
523
603
|
unselectedIds: string[];
|
|
524
604
|
cursorId: string;
|
|
525
605
|
columnCount: number;
|
|
606
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
607
|
+
cursorIndexRef: {
|
|
608
|
+
readonly current: number;
|
|
609
|
+
};
|
|
526
610
|
UNSTABLE_virtual: {
|
|
527
611
|
virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
|
|
528
612
|
totalSize: number;
|
|
@@ -539,15 +623,17 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
539
623
|
isVirtualized: boolean;
|
|
540
624
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
541
625
|
}) => boolean) | undefined;
|
|
542
|
-
|
|
543
|
-
id: string;
|
|
544
|
-
}, state: {
|
|
626
|
+
shouldGoToNext?: ((data: undefined, state: {
|
|
545
627
|
disabled: boolean;
|
|
546
628
|
size: "small" | "medium" | "large";
|
|
547
|
-
selectedIds:
|
|
629
|
+
selectedIds: string[] | "all";
|
|
548
630
|
unselectedIds: string[];
|
|
549
631
|
cursorId: string;
|
|
550
632
|
columnCount: number;
|
|
633
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
634
|
+
cursorIndexRef: {
|
|
635
|
+
readonly current: number;
|
|
636
|
+
};
|
|
551
637
|
UNSTABLE_virtual: {
|
|
552
638
|
virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
|
|
553
639
|
totalSize: number;
|
|
@@ -564,13 +650,17 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
564
650
|
isVirtualized: boolean;
|
|
565
651
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
566
652
|
}) => boolean) | undefined;
|
|
567
|
-
|
|
653
|
+
shouldGoToPrevious?: ((data: undefined, state: {
|
|
568
654
|
disabled: boolean;
|
|
569
655
|
size: "small" | "medium" | "large";
|
|
570
|
-
selectedIds:
|
|
656
|
+
selectedIds: string[] | "all";
|
|
571
657
|
unselectedIds: string[];
|
|
572
658
|
cursorId: string;
|
|
573
659
|
columnCount: number;
|
|
660
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
661
|
+
cursorIndexRef: {
|
|
662
|
+
readonly current: number;
|
|
663
|
+
};
|
|
574
664
|
UNSTABLE_virtual: {
|
|
575
665
|
virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
|
|
576
666
|
totalSize: number;
|
|
@@ -587,13 +677,17 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
587
677
|
isVirtualized: boolean;
|
|
588
678
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
589
679
|
}) => boolean) | undefined;
|
|
590
|
-
|
|
680
|
+
shouldGoToPreviousRow?: ((data: undefined, state: {
|
|
591
681
|
disabled: boolean;
|
|
592
682
|
size: "small" | "medium" | "large";
|
|
593
|
-
selectedIds:
|
|
683
|
+
selectedIds: string[] | "all";
|
|
594
684
|
unselectedIds: string[];
|
|
595
685
|
cursorId: string;
|
|
596
686
|
columnCount: number;
|
|
687
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
688
|
+
cursorIndexRef: {
|
|
689
|
+
readonly current: number;
|
|
690
|
+
};
|
|
597
691
|
UNSTABLE_virtual: {
|
|
598
692
|
virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
|
|
599
693
|
totalSize: number;
|
|
@@ -610,13 +704,17 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
610
704
|
isVirtualized: boolean;
|
|
611
705
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
612
706
|
}) => boolean) | undefined;
|
|
613
|
-
|
|
707
|
+
shouldGoToNextRow?: ((data: undefined, state: {
|
|
614
708
|
disabled: boolean;
|
|
615
709
|
size: "small" | "medium" | "large";
|
|
616
|
-
selectedIds:
|
|
710
|
+
selectedIds: string[] | "all";
|
|
617
711
|
unselectedIds: string[];
|
|
618
712
|
cursorId: string;
|
|
619
713
|
columnCount: number;
|
|
714
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
715
|
+
cursorIndexRef: {
|
|
716
|
+
readonly current: number;
|
|
717
|
+
};
|
|
620
718
|
UNSTABLE_virtual: {
|
|
621
719
|
virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
|
|
622
720
|
totalSize: number;
|
|
@@ -633,13 +731,17 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
633
731
|
isVirtualized: boolean;
|
|
634
732
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
635
733
|
}) => boolean) | undefined;
|
|
636
|
-
|
|
734
|
+
shouldGoToFirst?: ((data: undefined, state: {
|
|
637
735
|
disabled: boolean;
|
|
638
736
|
size: "small" | "medium" | "large";
|
|
639
|
-
selectedIds:
|
|
737
|
+
selectedIds: string[] | "all";
|
|
640
738
|
unselectedIds: string[];
|
|
641
739
|
cursorId: string;
|
|
642
740
|
columnCount: number;
|
|
741
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
742
|
+
cursorIndexRef: {
|
|
743
|
+
readonly current: number;
|
|
744
|
+
};
|
|
643
745
|
UNSTABLE_virtual: {
|
|
644
746
|
virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
|
|
645
747
|
totalSize: number;
|
|
@@ -656,13 +758,17 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
656
758
|
isVirtualized: boolean;
|
|
657
759
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
658
760
|
}) => boolean) | undefined;
|
|
659
|
-
|
|
761
|
+
shouldGoToLast?: ((data: undefined, state: {
|
|
660
762
|
disabled: boolean;
|
|
661
763
|
size: "small" | "medium" | "large";
|
|
662
|
-
selectedIds:
|
|
764
|
+
selectedIds: string[] | "all";
|
|
663
765
|
unselectedIds: string[];
|
|
664
766
|
cursorId: string;
|
|
665
767
|
columnCount: number;
|
|
768
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
769
|
+
cursorIndexRef: {
|
|
770
|
+
readonly current: number;
|
|
771
|
+
};
|
|
666
772
|
UNSTABLE_virtual: {
|
|
667
773
|
virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
|
|
668
774
|
totalSize: number;
|
|
@@ -679,13 +785,17 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
679
785
|
isVirtualized: boolean;
|
|
680
786
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
681
787
|
}) => boolean) | undefined;
|
|
682
|
-
|
|
788
|
+
shouldGoToFirstOfRow?: ((data: undefined, state: {
|
|
683
789
|
disabled: boolean;
|
|
684
790
|
size: "small" | "medium" | "large";
|
|
685
|
-
selectedIds:
|
|
791
|
+
selectedIds: string[] | "all";
|
|
686
792
|
unselectedIds: string[];
|
|
687
793
|
cursorId: string;
|
|
688
794
|
columnCount: number;
|
|
795
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
796
|
+
cursorIndexRef: {
|
|
797
|
+
readonly current: number;
|
|
798
|
+
};
|
|
689
799
|
UNSTABLE_virtual: {
|
|
690
800
|
virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
|
|
691
801
|
totalSize: number;
|
|
@@ -702,13 +812,17 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
702
812
|
isVirtualized: boolean;
|
|
703
813
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
704
814
|
}) => boolean) | undefined;
|
|
705
|
-
|
|
815
|
+
shouldGoToLastOfRow?: ((data: undefined, state: {
|
|
706
816
|
disabled: boolean;
|
|
707
817
|
size: "small" | "medium" | "large";
|
|
708
|
-
selectedIds:
|
|
818
|
+
selectedIds: string[] | "all";
|
|
709
819
|
unselectedIds: string[];
|
|
710
820
|
cursorId: string;
|
|
711
821
|
columnCount: number;
|
|
822
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
823
|
+
cursorIndexRef: {
|
|
824
|
+
readonly current: number;
|
|
825
|
+
};
|
|
712
826
|
UNSTABLE_virtual: {
|
|
713
827
|
virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
|
|
714
828
|
totalSize: number;
|
|
@@ -725,13 +839,17 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
725
839
|
isVirtualized: boolean;
|
|
726
840
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
727
841
|
}) => boolean) | undefined;
|
|
728
|
-
|
|
842
|
+
shouldGoToNextPage?: ((data: undefined, state: {
|
|
729
843
|
disabled: boolean;
|
|
730
844
|
size: "small" | "medium" | "large";
|
|
731
|
-
selectedIds:
|
|
845
|
+
selectedIds: string[] | "all";
|
|
732
846
|
unselectedIds: string[];
|
|
733
847
|
cursorId: string;
|
|
734
848
|
columnCount: number;
|
|
849
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
850
|
+
cursorIndexRef: {
|
|
851
|
+
readonly current: number;
|
|
852
|
+
};
|
|
735
853
|
UNSTABLE_virtual: {
|
|
736
854
|
virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
|
|
737
855
|
totalSize: number;
|
|
@@ -748,13 +866,17 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
748
866
|
isVirtualized: boolean;
|
|
749
867
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
750
868
|
}) => boolean) | undefined;
|
|
751
|
-
|
|
869
|
+
shouldGoToPreviousPage?: ((data: undefined, state: {
|
|
752
870
|
disabled: boolean;
|
|
753
871
|
size: "small" | "medium" | "large";
|
|
754
|
-
selectedIds:
|
|
872
|
+
selectedIds: string[] | "all";
|
|
755
873
|
unselectedIds: string[];
|
|
756
874
|
cursorId: string;
|
|
757
875
|
columnCount: number;
|
|
876
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
877
|
+
cursorIndexRef: {
|
|
878
|
+
readonly current: number;
|
|
879
|
+
};
|
|
758
880
|
UNSTABLE_virtual: {
|
|
759
881
|
virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
|
|
760
882
|
totalSize: number;
|
|
@@ -771,13 +893,20 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
771
893
|
isVirtualized: boolean;
|
|
772
894
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
773
895
|
}) => boolean) | undefined;
|
|
774
|
-
|
|
896
|
+
shouldRegisterItem?: ((data: {
|
|
897
|
+
item: any;
|
|
898
|
+
textValue: string;
|
|
899
|
+
}, state: {
|
|
775
900
|
disabled: boolean;
|
|
776
901
|
size: "small" | "medium" | "large";
|
|
777
|
-
selectedIds:
|
|
902
|
+
selectedIds: string[] | "all";
|
|
778
903
|
unselectedIds: string[];
|
|
779
904
|
cursorId: string;
|
|
780
905
|
columnCount: number;
|
|
906
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
907
|
+
cursorIndexRef: {
|
|
908
|
+
readonly current: number;
|
|
909
|
+
};
|
|
781
910
|
UNSTABLE_virtual: {
|
|
782
911
|
virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
|
|
783
912
|
totalSize: number;
|
|
@@ -799,10 +928,14 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
799
928
|
}, state: {
|
|
800
929
|
disabled: boolean;
|
|
801
930
|
size: "small" | "medium" | "large";
|
|
802
|
-
selectedIds:
|
|
931
|
+
selectedIds: string[] | "all";
|
|
803
932
|
unselectedIds: string[];
|
|
804
933
|
cursorId: string;
|
|
805
934
|
columnCount: number;
|
|
935
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
936
|
+
cursorIndexRef: {
|
|
937
|
+
readonly current: number;
|
|
938
|
+
};
|
|
806
939
|
UNSTABLE_virtual: {
|
|
807
940
|
virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
|
|
808
941
|
totalSize: number;
|
|
@@ -824,10 +957,14 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
824
957
|
}, state: {
|
|
825
958
|
disabled: boolean;
|
|
826
959
|
size: "small" | "medium" | "large";
|
|
827
|
-
selectedIds:
|
|
960
|
+
selectedIds: string[] | "all";
|
|
828
961
|
unselectedIds: string[];
|
|
829
962
|
cursorId: string;
|
|
830
963
|
columnCount: number;
|
|
964
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
965
|
+
cursorIndexRef: {
|
|
966
|
+
readonly current: number;
|
|
967
|
+
};
|
|
831
968
|
UNSTABLE_virtual: {
|
|
832
969
|
virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
|
|
833
970
|
totalSize: number;
|
|
@@ -848,10 +985,14 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
848
985
|
state: {
|
|
849
986
|
disabled: boolean;
|
|
850
987
|
size: "small" | "medium" | "large";
|
|
851
|
-
selectedIds:
|
|
988
|
+
selectedIds: string[] | "all";
|
|
852
989
|
unselectedIds: string[];
|
|
853
990
|
cursorId: string;
|
|
854
991
|
columnCount: number;
|
|
992
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
993
|
+
cursorIndexRef: {
|
|
994
|
+
readonly current: number;
|
|
995
|
+
};
|
|
855
996
|
UNSTABLE_virtual: {
|
|
856
997
|
virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
|
|
857
998
|
totalSize: number;
|
|
@@ -874,10 +1015,6 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
874
1015
|
}): void;
|
|
875
1016
|
selectAll(): void;
|
|
876
1017
|
unselectAll(): void;
|
|
877
|
-
registerItem(data: {
|
|
878
|
-
item: any;
|
|
879
|
-
textValue: string;
|
|
880
|
-
}): void;
|
|
881
1018
|
goTo(data: {
|
|
882
1019
|
id: string;
|
|
883
1020
|
}): void;
|
|
@@ -891,6 +1028,10 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
891
1028
|
goToLastOfRow(): void;
|
|
892
1029
|
goToNextPage(): void;
|
|
893
1030
|
goToPreviousPage(): void;
|
|
1031
|
+
registerItem(data: {
|
|
1032
|
+
item: any;
|
|
1033
|
+
textValue: string;
|
|
1034
|
+
}): void;
|
|
894
1035
|
unregisterItem(data: {
|
|
895
1036
|
id: string;
|
|
896
1037
|
}): void;
|
|
@@ -927,13 +1068,14 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
927
1068
|
* We suggest to use the `vertical` orientation only for icon only variant.
|
|
928
1069
|
* @default 'horizontal'
|
|
929
1070
|
*/
|
|
930
|
-
orientation: "
|
|
1071
|
+
orientation: import("@workday/canvas-kit-react/collection/lib/useBaseListModel").Orientation;
|
|
931
1072
|
initialSelectedIds: import("@workday/canvas-kit-react/collection/lib/useSelectionListModel").SelectedIds;
|
|
932
1073
|
initialUnselectedIds: string[];
|
|
933
1074
|
selection: import("@workday/canvas-kit-react/collection/lib/useSelectionListModel").SelectionManager;
|
|
934
1075
|
initialCursorId: string;
|
|
935
1076
|
columnCount: number;
|
|
936
1077
|
navigation: import("@workday/canvas-kit-react/collection/lib/useCursorListModel").NavigationManager;
|
|
1078
|
+
pageSize: number;
|
|
937
1079
|
getId: (item: any) => string;
|
|
938
1080
|
getTextValue: (item: any) => string;
|
|
939
1081
|
nonInteractiveIds: string[];
|
|
@@ -943,10 +1085,14 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
943
1085
|
}, {}, {
|
|
944
1086
|
disabled: boolean;
|
|
945
1087
|
size: "small" | "medium" | "large";
|
|
946
|
-
selectedIds:
|
|
1088
|
+
selectedIds: string[] | "all";
|
|
947
1089
|
unselectedIds: string[];
|
|
948
1090
|
cursorId: string;
|
|
949
1091
|
columnCount: number;
|
|
1092
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
1093
|
+
cursorIndexRef: {
|
|
1094
|
+
readonly current: number;
|
|
1095
|
+
};
|
|
950
1096
|
UNSTABLE_virtual: {
|
|
951
1097
|
virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
|
|
952
1098
|
totalSize: number;
|
|
@@ -968,10 +1114,6 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
968
1114
|
}): void;
|
|
969
1115
|
selectAll(): void;
|
|
970
1116
|
unselectAll(): void;
|
|
971
|
-
registerItem(data: {
|
|
972
|
-
item: any;
|
|
973
|
-
textValue: string;
|
|
974
|
-
}): void;
|
|
975
1117
|
goTo(data: {
|
|
976
1118
|
id: string;
|
|
977
1119
|
}): void;
|
|
@@ -985,6 +1127,10 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
985
1127
|
goToLastOfRow(): void;
|
|
986
1128
|
goToNextPage(): void;
|
|
987
1129
|
goToPreviousPage(): void;
|
|
1130
|
+
registerItem(data: {
|
|
1131
|
+
item: any;
|
|
1132
|
+
textValue: string;
|
|
1133
|
+
}): void;
|
|
988
1134
|
unregisterItem(data: {
|
|
989
1135
|
id: string;
|
|
990
1136
|
}): void;
|
|
@@ -995,10 +1141,14 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
995
1141
|
state: {
|
|
996
1142
|
disabled: boolean;
|
|
997
1143
|
size: "small" | "medium" | "large";
|
|
998
|
-
selectedIds:
|
|
1144
|
+
selectedIds: string[] | "all";
|
|
999
1145
|
unselectedIds: string[];
|
|
1000
1146
|
cursorId: string;
|
|
1001
1147
|
columnCount: number;
|
|
1148
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
1149
|
+
cursorIndexRef: {
|
|
1150
|
+
readonly current: number;
|
|
1151
|
+
};
|
|
1002
1152
|
UNSTABLE_virtual: {
|
|
1003
1153
|
virtualItems: import("@workday/canvas-kit-react/collection/lib/react-virtual").VirtualItem[];
|
|
1004
1154
|
totalSize: number;
|
|
@@ -1021,10 +1171,6 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
1021
1171
|
}): void;
|
|
1022
1172
|
selectAll(): void;
|
|
1023
1173
|
unselectAll(): void;
|
|
1024
|
-
registerItem(data: {
|
|
1025
|
-
item: any;
|
|
1026
|
-
textValue: string;
|
|
1027
|
-
}): void;
|
|
1028
1174
|
goTo(data: {
|
|
1029
1175
|
id: string;
|
|
1030
1176
|
}): void;
|
|
@@ -1038,6 +1184,10 @@ export declare const useSegmentedControlModel: (<TT_Special_Generic>(config?: (P
|
|
|
1038
1184
|
goToLastOfRow(): void;
|
|
1039
1185
|
goToNextPage(): void;
|
|
1040
1186
|
goToPreviousPage(): void;
|
|
1187
|
+
registerItem(data: {
|
|
1188
|
+
item: any;
|
|
1189
|
+
textValue: string;
|
|
1190
|
+
}): void;
|
|
1041
1191
|
unregisterItem(data: {
|
|
1042
1192
|
id: string;
|
|
1043
1193
|
}): void;
|