@workday/canvas-kit-preview-react 13.0.0-alpha.996-next.0 → 13.0.0
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/parts/ColorReset.tsx +0 -1
- package/dist/commonjs/color-picker/lib/ColorPicker.d.ts +1 -1
- package/dist/commonjs/color-picker/lib/ColorPicker.js +2 -8
- package/dist/commonjs/color-picker/lib/parts/ColorReset.d.ts +1 -2
- package/dist/commonjs/color-picker/lib/parts/ColorReset.d.ts.map +1 -1
- package/dist/commonjs/color-picker/lib/parts/ColorReset.js +2 -27
- package/dist/commonjs/color-picker/lib/parts/SwatchBook.d.ts +1 -2
- package/dist/commonjs/color-picker/lib/parts/SwatchBook.d.ts.map +1 -1
- package/dist/commonjs/color-picker/lib/parts/SwatchBook.js +9 -33
- package/dist/commonjs/divider/lib/Divider.d.ts +2 -2
- package/dist/commonjs/divider/lib/Divider.d.ts.map +1 -1
- package/dist/commonjs/divider/lib/Divider.js +4 -27
- package/dist/commonjs/index.d.ts +1 -2
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +1 -2
- package/dist/commonjs/{InformationHighlight → information-highlight}/index.d.ts.map +1 -1
- package/dist/commonjs/{InformationHighlight → information-highlight}/lib/InformationHighlight.d.ts +2 -2
- package/dist/commonjs/information-highlight/lib/InformationHighlight.d.ts.map +1 -0
- package/dist/commonjs/information-highlight/lib/InformationHighlight.js +42 -0
- package/dist/commonjs/information-highlight/lib/hooks/useInformationHighlightModel.d.ts.map +1 -0
- package/dist/commonjs/information-highlight/lib/parts/Body.d.ts +2 -0
- package/dist/commonjs/information-highlight/lib/parts/Body.d.ts.map +1 -0
- package/dist/commonjs/information-highlight/lib/parts/Body.js +17 -0
- package/dist/commonjs/information-highlight/lib/parts/Heading.d.ts.map +1 -0
- package/dist/commonjs/information-highlight/lib/parts/Heading.js +17 -0
- package/dist/commonjs/information-highlight/lib/parts/Icon.d.ts.map +1 -0
- package/dist/commonjs/information-highlight/lib/parts/Icon.js +19 -0
- package/dist/commonjs/information-highlight/lib/parts/Link.d.ts.map +1 -0
- package/dist/commonjs/information-highlight/lib/parts/Link.js +17 -0
- package/dist/commonjs/loading-sparkles/lib/LoadingSparkles.d.ts +1 -0
- package/dist/commonjs/loading-sparkles/lib/LoadingSparkles.d.ts.map +1 -1
- package/dist/commonjs/loading-sparkles/lib/LoadingSparkles.js +8 -45
- package/dist/commonjs/loading-sparkles/lib/sparkleIcon.js +1 -1
- package/dist/commonjs/menu/lib/Menu.d.ts +1 -1
- package/dist/commonjs/menu/lib/Menu.d.ts.map +1 -1
- package/dist/commonjs/menu/lib/Menu.js +17 -19
- package/dist/commonjs/menu/lib/MenuItem.d.ts +1 -1
- package/dist/commonjs/menu/lib/MenuItem.js +2 -6
- package/dist/commonjs/multi-select/lib/MultiSelect.d.ts +1548 -266
- package/dist/commonjs/multi-select/lib/MultiSelect.d.ts.map +1 -1
- package/dist/commonjs/multi-select/lib/MultiSelect.js +2 -5
- package/dist/commonjs/multi-select/lib/MultiSelectCard.d.ts +464 -59
- package/dist/commonjs/multi-select/lib/MultiSelectCard.d.ts.map +1 -1
- package/dist/commonjs/multi-select/lib/MultiSelectCard.js +2 -5
- package/dist/commonjs/multi-select/lib/MultiSelectInput.d.ts +646 -37
- package/dist/commonjs/multi-select/lib/MultiSelectInput.d.ts.map +1 -1
- package/dist/commonjs/multi-select/lib/MultiSelectInput.js +7 -25
- package/dist/commonjs/multi-select/lib/MultiSelectItem.d.ts +619 -81
- package/dist/commonjs/multi-select/lib/MultiSelectItem.d.ts.map +1 -1
- package/dist/commonjs/multi-select/lib/MultiSelectItem.js +2 -5
- package/dist/commonjs/multi-select/lib/MultiSelectedItem.d.ts +468 -65
- package/dist/commonjs/multi-select/lib/MultiSelectedItem.d.ts.map +1 -1
- package/dist/commonjs/multi-select/lib/MultiSelectedItem.js +2 -7
- package/dist/commonjs/multi-select/lib/MultiSelectedList.d.ts +215 -12
- package/dist/commonjs/multi-select/lib/MultiSelectedList.d.ts.map +1 -1
- package/dist/commonjs/multi-select/lib/MultiSelectedList.js +2 -7
- package/dist/commonjs/multi-select/lib/useMultiSelectItemRemove.d.ts +215 -12
- package/dist/commonjs/multi-select/lib/useMultiSelectItemRemove.d.ts.map +1 -1
- package/dist/commonjs/multi-select/lib/useMultiSelectModel.d.ts +718 -178
- package/dist/commonjs/multi-select/lib/useMultiSelectModel.d.ts.map +1 -1
- package/dist/commonjs/pill/index.d.ts +5 -0
- package/dist/commonjs/pill/index.d.ts.map +1 -1
- package/dist/commonjs/pill/index.js +13 -0
- package/dist/commonjs/pill/lib/Pill.d.ts +229 -18
- package/dist/commonjs/pill/lib/Pill.d.ts.map +1 -1
- package/dist/commonjs/pill/lib/Pill.js +42 -172
- package/dist/commonjs/pill/lib/PillAvatar.d.ts +222 -1
- package/dist/commonjs/pill/lib/PillAvatar.d.ts.map +1 -1
- package/dist/commonjs/pill/lib/PillAvatar.js +12 -10
- package/dist/commonjs/pill/lib/PillCount.d.ts +7 -0
- package/dist/commonjs/pill/lib/PillCount.d.ts.map +1 -1
- package/dist/commonjs/pill/lib/PillCount.js +13 -14
- package/dist/commonjs/pill/lib/PillIcon.d.ts +16 -8
- package/dist/commonjs/pill/lib/PillIcon.d.ts.map +1 -1
- package/dist/commonjs/pill/lib/PillIcon.js +11 -8
- package/dist/commonjs/pill/lib/PillIconButton.d.ts +69 -10
- package/dist/commonjs/pill/lib/PillIconButton.d.ts.map +1 -1
- package/dist/commonjs/pill/lib/PillIconButton.js +11 -50
- package/dist/commonjs/pill/lib/PillLabel.d.ts +1 -1
- package/dist/commonjs/pill/lib/PillLabel.d.ts.map +1 -1
- package/dist/commonjs/pill/lib/PillLabel.js +8 -15
- package/dist/commonjs/pill/lib/usePillModel.d.ts +5 -30
- package/dist/commonjs/pill/lib/usePillModel.d.ts.map +1 -1
- package/dist/commonjs/pill/lib/usePillModel.js +1 -6
- package/dist/commonjs/radio/lib/RadioButton.d.ts +2 -3
- package/dist/commonjs/radio/lib/RadioButton.d.ts.map +1 -1
- package/dist/commonjs/radio/lib/RadioButton.js +2 -7
- package/dist/commonjs/radio/lib/RadioGroup.d.ts +12 -13
- package/dist/commonjs/radio/lib/RadioGroup.d.ts.map +1 -1
- package/dist/commonjs/radio/lib/RadioGroup.js +6 -9
- package/dist/commonjs/radio/lib/RadioInput.js +2 -1
- package/dist/commonjs/radio/lib/RadioLabel.js +3 -3
- package/dist/commonjs/radio/lib/RadioText.js +6 -5
- package/dist/commonjs/radio/lib/StyledRadioButton.js +9 -10
- package/dist/commonjs/segmented-control/lib/SegmentedControl.d.ts +410 -139
- package/dist/commonjs/segmented-control/lib/SegmentedControl.d.ts.map +1 -1
- package/dist/commonjs/segmented-control/lib/SegmentedControl.js +2 -5
- package/dist/commonjs/segmented-control/lib/SegmentedControlItem.d.ts +81 -6
- package/dist/commonjs/segmented-control/lib/SegmentedControlItem.d.ts.map +1 -1
- package/dist/commonjs/segmented-control/lib/SegmentedControlItem.js +3 -5
- package/dist/commonjs/segmented-control/lib/SegmentedControlList.d.ts +148 -12
- package/dist/commonjs/segmented-control/lib/SegmentedControlList.d.ts.map +1 -1
- package/dist/commonjs/segmented-control/lib/SegmentedControlList.js +2 -25
- package/dist/commonjs/segmented-control/lib/hooks/useSegmentedControlItem.d.ts +74 -8
- package/dist/commonjs/segmented-control/lib/hooks/useSegmentedControlItem.d.ts.map +1 -1
- package/dist/commonjs/segmented-control/lib/hooks/useSegmentedControlModel.d.ts +412 -142
- package/dist/commonjs/segmented-control/lib/hooks/useSegmentedControlModel.d.ts.map +1 -1
- package/dist/commonjs/segmented-control/lib/hooks/useSegmentedControlModel.js +1 -1
- package/dist/commonjs/select/lib/Select.js +3 -2
- package/dist/commonjs/select/lib/SelectBase.d.ts +1 -1
- package/dist/commonjs/select/lib/SelectBase.d.ts.map +1 -1
- package/dist/commonjs/select/lib/SelectBase.js +18 -21
- package/dist/commonjs/select/lib/SelectMenu.d.ts +1 -1
- package/dist/commonjs/select/lib/SelectMenu.d.ts.map +1 -1
- package/dist/commonjs/select/lib/SelectMenu.js +4 -28
- package/dist/commonjs/select/lib/SelectOption.d.ts +1 -1
- package/dist/commonjs/select/lib/SelectOption.d.ts.map +1 -1
- package/dist/commonjs/select/lib/SelectOption.js +2 -25
- package/dist/commonjs/side-panel/lib/SidePanel.d.ts +37 -4
- package/dist/commonjs/side-panel/lib/SidePanel.d.ts.map +1 -1
- package/dist/commonjs/side-panel/lib/SidePanel.js +46 -71
- package/dist/commonjs/side-panel/lib/SidePanelToggleButton.d.ts +38 -0
- package/dist/commonjs/side-panel/lib/SidePanelToggleButton.d.ts.map +1 -1
- package/dist/commonjs/side-panel/lib/SidePanelToggleButton.js +46 -29
- package/dist/commonjs/side-panel/lib/hooks.d.ts +2 -1
- package/dist/commonjs/side-panel/lib/hooks.d.ts.map +1 -1
- package/dist/commonjs/side-panel/lib/hooks.js +1 -0
- package/dist/commonjs/status-indicator/lib/StatusIndicator.d.ts.map +1 -1
- package/dist/commonjs/status-indicator/lib/StatusIndicator.js +15 -18
- package/dist/commonjs/status-indicator/lib/StatusIndicatorIcon.d.ts.map +1 -1
- package/dist/commonjs/status-indicator/lib/StatusIndicatorIcon.js +2 -5
- package/dist/commonjs/status-indicator/lib/StatusIndicatorLabel.d.ts.map +1 -1
- package/dist/commonjs/status-indicator/lib/StatusIndicatorLabel.js +4 -7
- package/dist/commonjs/text-area/lib/TextArea.d.ts +6 -6
- package/dist/commonjs/text-area/lib/TextArea.js +4 -7
- package/dist/commonjs/text-area/lib/TextAreaField.d.ts +2 -2
- package/dist/commonjs/text-area/lib/TextAreaField.d.ts.map +1 -1
- package/dist/commonjs/text-area/lib/TextAreaField.js +2 -4
- package/dist/commonjs/text-input/lib/TextInput.d.ts +7 -7
- package/dist/commonjs/text-input/lib/TextInput.js +4 -7
- package/dist/commonjs/text-input/lib/TextInputField.d.ts +2 -8
- package/dist/commonjs/text-input/lib/TextInputField.d.ts.map +1 -1
- package/dist/commonjs/text-input/lib/TextInputField.js +2 -4
- package/dist/commonjs/text-input/lib/hooks/useTextInputField.d.ts +1 -1
- package/dist/commonjs/text-input/lib/hooks/useTextInputModel.d.ts +5 -5
- package/dist/es6/color-picker/lib/ColorPicker.d.ts +1 -1
- package/dist/es6/color-picker/lib/ColorPicker.js +2 -8
- package/dist/es6/color-picker/lib/parts/ColorReset.d.ts +1 -2
- package/dist/es6/color-picker/lib/parts/ColorReset.d.ts.map +1 -1
- package/dist/es6/color-picker/lib/parts/ColorReset.js +2 -4
- package/dist/es6/color-picker/lib/parts/SwatchBook.d.ts +1 -2
- package/dist/es6/color-picker/lib/parts/SwatchBook.d.ts.map +1 -1
- package/dist/es6/color-picker/lib/parts/SwatchBook.js +9 -10
- package/dist/es6/divider/lib/Divider.d.ts +2 -2
- package/dist/es6/divider/lib/Divider.d.ts.map +1 -1
- package/dist/es6/divider/lib/Divider.js +4 -4
- package/dist/es6/index.d.ts +1 -2
- package/dist/es6/index.d.ts.map +1 -1
- package/dist/es6/index.js +1 -2
- package/dist/es6/{InformationHighlight → information-highlight}/index.d.ts.map +1 -1
- package/dist/es6/{InformationHighlight → information-highlight}/lib/InformationHighlight.d.ts +2 -2
- package/dist/es6/information-highlight/lib/InformationHighlight.d.ts.map +1 -0
- package/dist/es6/{InformationHighlight → information-highlight}/lib/InformationHighlight.js +11 -11
- package/dist/es6/information-highlight/lib/hooks/useInformationHighlightModel.d.ts.map +1 -0
- package/dist/es6/information-highlight/lib/parts/Body.d.ts +2 -0
- package/dist/es6/information-highlight/lib/parts/Body.d.ts.map +1 -0
- package/dist/es6/information-highlight/lib/parts/Body.js +14 -0
- package/dist/es6/information-highlight/lib/parts/Heading.d.ts.map +1 -0
- package/dist/es6/information-highlight/lib/parts/Heading.js +14 -0
- package/dist/es6/information-highlight/lib/parts/Icon.d.ts.map +1 -0
- package/dist/es6/{InformationHighlight → information-highlight}/lib/parts/Icon.js +2 -2
- package/dist/es6/information-highlight/lib/parts/Link.d.ts.map +1 -0
- package/dist/es6/information-highlight/lib/parts/Link.js +14 -0
- package/dist/es6/loading-sparkles/lib/LoadingSparkles.d.ts +1 -0
- package/dist/es6/loading-sparkles/lib/LoadingSparkles.d.ts.map +1 -1
- package/dist/es6/loading-sparkles/lib/LoadingSparkles.js +10 -24
- package/dist/es6/loading-sparkles/lib/sparkleIcon.js +1 -1
- package/dist/es6/menu/lib/Menu.d.ts +1 -1
- package/dist/es6/menu/lib/Menu.d.ts.map +1 -1
- package/dist/es6/menu/lib/Menu.js +18 -20
- package/dist/es6/menu/lib/MenuItem.d.ts +1 -1
- package/dist/es6/menu/lib/MenuItem.js +2 -6
- package/dist/es6/multi-select/lib/MultiSelect.d.ts +1548 -266
- package/dist/es6/multi-select/lib/MultiSelect.d.ts.map +1 -1
- package/dist/es6/multi-select/lib/MultiSelect.js +2 -2
- package/dist/es6/multi-select/lib/MultiSelectCard.d.ts +464 -59
- package/dist/es6/multi-select/lib/MultiSelectCard.d.ts.map +1 -1
- package/dist/es6/multi-select/lib/MultiSelectCard.js +2 -2
- package/dist/es6/multi-select/lib/MultiSelectInput.d.ts +646 -37
- package/dist/es6/multi-select/lib/MultiSelectInput.d.ts.map +1 -1
- package/dist/es6/multi-select/lib/MultiSelectInput.js +7 -22
- package/dist/es6/multi-select/lib/MultiSelectItem.d.ts +619 -81
- package/dist/es6/multi-select/lib/MultiSelectItem.d.ts.map +1 -1
- package/dist/es6/multi-select/lib/MultiSelectItem.js +2 -2
- package/dist/es6/multi-select/lib/MultiSelectedItem.d.ts +468 -65
- package/dist/es6/multi-select/lib/MultiSelectedItem.d.ts.map +1 -1
- package/dist/es6/multi-select/lib/MultiSelectedItem.js +2 -4
- package/dist/es6/multi-select/lib/MultiSelectedList.d.ts +215 -12
- package/dist/es6/multi-select/lib/MultiSelectedList.d.ts.map +1 -1
- package/dist/es6/multi-select/lib/MultiSelectedList.js +2 -4
- package/dist/es6/multi-select/lib/useMultiSelectItemRemove.d.ts +215 -12
- package/dist/es6/multi-select/lib/useMultiSelectItemRemove.d.ts.map +1 -1
- package/dist/es6/multi-select/lib/useMultiSelectModel.d.ts +718 -178
- package/dist/es6/multi-select/lib/useMultiSelectModel.d.ts.map +1 -1
- package/dist/es6/pill/index.d.ts +5 -0
- package/dist/es6/pill/index.d.ts.map +1 -1
- package/dist/es6/pill/index.js +5 -0
- package/dist/es6/pill/lib/Pill.d.ts +229 -18
- package/dist/es6/pill/lib/Pill.d.ts.map +1 -1
- package/dist/es6/pill/lib/Pill.js +46 -173
- package/dist/es6/pill/lib/PillAvatar.d.ts +222 -1
- package/dist/es6/pill/lib/PillAvatar.d.ts.map +1 -1
- package/dist/es6/pill/lib/PillAvatar.js +13 -8
- package/dist/es6/pill/lib/PillCount.d.ts +7 -0
- package/dist/es6/pill/lib/PillCount.d.ts.map +1 -1
- package/dist/es6/pill/lib/PillCount.js +14 -12
- package/dist/es6/pill/lib/PillIcon.d.ts +16 -8
- package/dist/es6/pill/lib/PillIcon.d.ts.map +1 -1
- package/dist/es6/pill/lib/PillIcon.js +11 -5
- package/dist/es6/pill/lib/PillIconButton.d.ts +69 -10
- package/dist/es6/pill/lib/PillIconButton.d.ts.map +1 -1
- package/dist/es6/pill/lib/PillIconButton.js +13 -49
- package/dist/es6/pill/lib/PillLabel.d.ts +1 -1
- package/dist/es6/pill/lib/PillLabel.d.ts.map +1 -1
- package/dist/es6/pill/lib/PillLabel.js +9 -13
- package/dist/es6/pill/lib/usePillModel.d.ts +5 -30
- package/dist/es6/pill/lib/usePillModel.d.ts.map +1 -1
- package/dist/es6/pill/lib/usePillModel.js +1 -6
- package/dist/es6/radio/lib/RadioButton.d.ts +2 -3
- package/dist/es6/radio/lib/RadioButton.d.ts.map +1 -1
- package/dist/es6/radio/lib/RadioButton.js +2 -4
- package/dist/es6/radio/lib/RadioGroup.d.ts +12 -13
- package/dist/es6/radio/lib/RadioGroup.d.ts.map +1 -1
- package/dist/es6/radio/lib/RadioGroup.js +6 -6
- package/dist/es6/radio/lib/RadioInput.js +2 -1
- package/dist/es6/radio/lib/RadioLabel.js +3 -3
- package/dist/es6/radio/lib/RadioText.js +6 -5
- package/dist/es6/radio/lib/StyledRadioButton.js +9 -10
- package/dist/es6/segmented-control/lib/SegmentedControl.d.ts +410 -139
- package/dist/es6/segmented-control/lib/SegmentedControl.d.ts.map +1 -1
- package/dist/es6/segmented-control/lib/SegmentedControl.js +2 -2
- package/dist/es6/segmented-control/lib/SegmentedControlItem.d.ts +81 -6
- package/dist/es6/segmented-control/lib/SegmentedControlItem.d.ts.map +1 -1
- package/dist/es6/segmented-control/lib/SegmentedControlItem.js +3 -5
- package/dist/es6/segmented-control/lib/SegmentedControlList.d.ts +148 -12
- package/dist/es6/segmented-control/lib/SegmentedControlList.d.ts.map +1 -1
- package/dist/es6/segmented-control/lib/SegmentedControlList.js +2 -2
- package/dist/es6/segmented-control/lib/hooks/useSegmentedControlItem.d.ts +74 -8
- package/dist/es6/segmented-control/lib/hooks/useSegmentedControlItem.d.ts.map +1 -1
- package/dist/es6/segmented-control/lib/hooks/useSegmentedControlModel.d.ts +412 -142
- package/dist/es6/segmented-control/lib/hooks/useSegmentedControlModel.d.ts.map +1 -1
- package/dist/es6/segmented-control/lib/hooks/useSegmentedControlModel.js +1 -1
- package/dist/es6/select/lib/Select.js +3 -2
- package/dist/es6/select/lib/SelectBase.d.ts +1 -1
- package/dist/es6/select/lib/SelectBase.d.ts.map +1 -1
- package/dist/es6/select/lib/SelectBase.js +18 -21
- package/dist/es6/select/lib/SelectMenu.d.ts +1 -1
- package/dist/es6/select/lib/SelectMenu.d.ts.map +1 -1
- package/dist/es6/select/lib/SelectMenu.js +4 -5
- package/dist/es6/select/lib/SelectOption.d.ts +1 -1
- package/dist/es6/select/lib/SelectOption.d.ts.map +1 -1
- package/dist/es6/select/lib/SelectOption.js +2 -2
- package/dist/es6/side-panel/lib/SidePanel.d.ts +37 -4
- package/dist/es6/side-panel/lib/SidePanel.d.ts.map +1 -1
- package/dist/es6/side-panel/lib/SidePanel.js +46 -71
- package/dist/es6/side-panel/lib/SidePanelToggleButton.d.ts +38 -0
- package/dist/es6/side-panel/lib/SidePanelToggleButton.d.ts.map +1 -1
- package/dist/es6/side-panel/lib/SidePanelToggleButton.js +46 -29
- package/dist/es6/side-panel/lib/hooks.d.ts +2 -1
- package/dist/es6/side-panel/lib/hooks.d.ts.map +1 -1
- package/dist/es6/side-panel/lib/hooks.js +1 -0
- package/dist/es6/status-indicator/lib/StatusIndicator.d.ts.map +1 -1
- package/dist/es6/status-indicator/lib/StatusIndicator.js +15 -15
- package/dist/es6/status-indicator/lib/StatusIndicatorIcon.d.ts.map +1 -1
- package/dist/es6/status-indicator/lib/StatusIndicatorIcon.js +2 -2
- package/dist/es6/status-indicator/lib/StatusIndicatorLabel.d.ts.map +1 -1
- package/dist/es6/status-indicator/lib/StatusIndicatorLabel.js +4 -4
- package/dist/es6/text-area/lib/TextArea.d.ts +6 -6
- package/dist/es6/text-area/lib/TextArea.js +4 -4
- package/dist/es6/text-area/lib/TextAreaField.d.ts +2 -2
- package/dist/es6/text-area/lib/TextAreaField.d.ts.map +1 -1
- package/dist/es6/text-area/lib/TextAreaField.js +2 -4
- package/dist/es6/text-input/lib/TextInput.d.ts +7 -7
- package/dist/es6/text-input/lib/TextInput.js +4 -4
- package/dist/es6/text-input/lib/TextInputField.d.ts +2 -8
- package/dist/es6/text-input/lib/TextInputField.d.ts.map +1 -1
- package/dist/es6/text-input/lib/TextInputField.js +2 -4
- package/dist/es6/text-input/lib/hooks/useTextInputField.d.ts +1 -1
- package/dist/es6/text-input/lib/hooks/useTextInputModel.d.ts +5 -5
- package/divider/lib/Divider.tsx +0 -1
- package/index.ts +1 -2
- package/information-highlight/index.ts +5 -0
- package/{InformationHighlight → information-highlight}/lib/InformationHighlight.tsx +2 -2
- package/{InformationHighlight → information-highlight}/lib/parts/Body.tsx +3 -4
- package/{InformationHighlight → information-highlight}/lib/parts/Heading.tsx +0 -1
- package/{InformationHighlight → information-highlight}/lib/parts/Icon.tsx +0 -1
- package/{InformationHighlight → information-highlight}/lib/parts/Link.tsx +0 -1
- package/information-highlight/package.json +6 -0
- package/loading-sparkles/lib/LoadingSparkles.tsx +27 -55
- package/loading-sparkles/lib/sparkleIcon.ts +1 -1
- package/menu/lib/Menu.tsx +2 -3
- package/multi-select/lib/MultiSelectCard.tsx +0 -2
- package/multi-select/lib/MultiSelectInput.tsx +2 -1
- package/multi-select/lib/MultiSelectItem.tsx +0 -2
- package/multi-select/lib/MultiSelectedItem.tsx +1 -3
- package/package.json +6 -6
- package/pill/index.ts +5 -0
- package/pill/lib/Pill.tsx +146 -174
- package/pill/lib/PillAvatar.tsx +19 -13
- package/pill/lib/PillCount.tsx +32 -27
- package/pill/lib/PillIcon.tsx +16 -18
- package/pill/lib/PillIconButton.tsx +50 -74
- package/pill/lib/PillLabel.tsx +16 -20
- package/pill/lib/usePillModel.tsx +1 -6
- package/radio/lib/RadioButton.tsx +0 -1
- package/radio/lib/RadioGroup.tsx +0 -1
- package/segmented-control/lib/hooks/useSegmentedControlModel.tsx +1 -1
- package/side-panel/lib/SidePanel.tsx +66 -86
- package/side-panel/lib/SidePanelToggleButton.tsx +93 -33
- package/side-panel/lib/hooks.ts +2 -1
- package/status-indicator/lib/StatusIndicator.tsx +1 -0
- package/status-indicator/lib/StatusIndicatorIcon.tsx +0 -2
- package/status-indicator/lib/StatusIndicatorLabel.tsx +0 -2
- package/text-area/lib/TextArea.tsx +1 -1
- package/text-area/lib/TextAreaField.tsx +1 -5
- package/text-input/lib/TextInput.tsx +1 -1
- package/text-input/lib/TextInputField.tsx +1 -5
- package/common/index.ts +0 -1
- package/common/lib/parts/_brand-assets.ts +0 -19
- package/common/lib/parts/index.ts +0 -1
- package/common/package.json +0 -6
- package/dist/commonjs/InformationHighlight/lib/InformationHighlight.d.ts.map +0 -1
- package/dist/commonjs/InformationHighlight/lib/InformationHighlight.js +0 -65
- package/dist/commonjs/InformationHighlight/lib/hooks/useInformationHighlightModel.d.ts.map +0 -1
- package/dist/commonjs/InformationHighlight/lib/parts/Body.d.ts +0 -2
- package/dist/commonjs/InformationHighlight/lib/parts/Body.d.ts.map +0 -1
- package/dist/commonjs/InformationHighlight/lib/parts/Body.js +0 -40
- package/dist/commonjs/InformationHighlight/lib/parts/Heading.d.ts.map +0 -1
- package/dist/commonjs/InformationHighlight/lib/parts/Heading.js +0 -40
- package/dist/commonjs/InformationHighlight/lib/parts/Icon.d.ts.map +0 -1
- package/dist/commonjs/InformationHighlight/lib/parts/Icon.js +0 -42
- package/dist/commonjs/InformationHighlight/lib/parts/Link.d.ts.map +0 -1
- package/dist/commonjs/InformationHighlight/lib/parts/Link.js +0 -40
- package/dist/commonjs/common/index.d.ts +0 -2
- package/dist/commonjs/common/index.d.ts.map +0 -1
- package/dist/commonjs/common/index.js +0 -17
- package/dist/commonjs/common/lib/parts/_brand-assets.d.ts +0 -10
- package/dist/commonjs/common/lib/parts/_brand-assets.d.ts.map +0 -1
- package/dist/commonjs/common/lib/parts/_brand-assets.js +0 -13
- package/dist/commonjs/common/lib/parts/index.d.ts +0 -2
- package/dist/commonjs/common/lib/parts/index.d.ts.map +0 -1
- package/dist/commonjs/common/lib/parts/index.js +0 -17
- package/dist/es6/InformationHighlight/lib/InformationHighlight.d.ts.map +0 -1
- package/dist/es6/InformationHighlight/lib/hooks/useInformationHighlightModel.d.ts.map +0 -1
- package/dist/es6/InformationHighlight/lib/parts/Body.d.ts +0 -2
- package/dist/es6/InformationHighlight/lib/parts/Body.d.ts.map +0 -1
- package/dist/es6/InformationHighlight/lib/parts/Body.js +0 -14
- package/dist/es6/InformationHighlight/lib/parts/Heading.d.ts.map +0 -1
- package/dist/es6/InformationHighlight/lib/parts/Heading.js +0 -14
- package/dist/es6/InformationHighlight/lib/parts/Icon.d.ts.map +0 -1
- package/dist/es6/InformationHighlight/lib/parts/Link.d.ts.map +0 -1
- package/dist/es6/InformationHighlight/lib/parts/Link.js +0 -14
- package/dist/es6/common/index.d.ts +0 -2
- package/dist/es6/common/index.d.ts.map +0 -1
- package/dist/es6/common/index.js +0 -1
- package/dist/es6/common/lib/parts/_brand-assets.d.ts +0 -10
- package/dist/es6/common/lib/parts/_brand-assets.d.ts.map +0 -1
- package/dist/es6/common/lib/parts/_brand-assets.js +0 -10
- package/dist/es6/common/lib/parts/index.d.ts +0 -2
- package/dist/es6/common/lib/parts/index.d.ts.map +0 -1
- package/dist/es6/common/lib/parts/index.js +0 -1
- /package/dist/commonjs/{InformationHighlight → information-highlight}/index.d.ts +0 -0
- /package/dist/commonjs/{InformationHighlight → information-highlight}/index.js +0 -0
- /package/dist/commonjs/{InformationHighlight → information-highlight}/lib/hooks/useInformationHighlightModel.d.ts +0 -0
- /package/dist/commonjs/{InformationHighlight → information-highlight}/lib/hooks/useInformationHighlightModel.js +0 -0
- /package/dist/commonjs/{InformationHighlight → information-highlight}/lib/parts/Heading.d.ts +0 -0
- /package/dist/commonjs/{InformationHighlight → information-highlight}/lib/parts/Icon.d.ts +0 -0
- /package/dist/commonjs/{InformationHighlight → information-highlight}/lib/parts/Link.d.ts +0 -0
- /package/dist/es6/{InformationHighlight → information-highlight}/index.d.ts +0 -0
- /package/dist/es6/{InformationHighlight → information-highlight}/index.js +0 -0
- /package/dist/es6/{InformationHighlight → information-highlight}/lib/hooks/useInformationHighlightModel.d.ts +0 -0
- /package/dist/es6/{InformationHighlight → information-highlight}/lib/hooks/useInformationHighlightModel.js +0 -0
- /package/dist/es6/{InformationHighlight → information-highlight}/lib/parts/Heading.d.ts +0 -0
- /package/dist/es6/{InformationHighlight → information-highlight}/lib/parts/Icon.d.ts +0 -0
- /package/dist/es6/{InformationHighlight → information-highlight}/lib/parts/Link.d.ts +0 -0
- /package/{InformationHighlight → information-highlight}/lib/hooks/useInformationHighlightModel.ts +0 -0
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { createSubcomponent } from '@workday/canvas-kit-react/common';
|
|
3
|
-
import { SystemIcon } from '@workday/canvas-kit-react/icon';
|
|
3
|
+
import { SystemIcon, systemIconStencil } from '@workday/canvas-kit-react/icon';
|
|
4
4
|
import { usePillModel } from './usePillModel';
|
|
5
5
|
import { plusIcon } from '@workday/canvas-system-icons-web';
|
|
6
|
-
import {
|
|
6
|
+
import { calc, createStencil, px2rem } from '@workday/canvas-kit-styling';
|
|
7
|
+
import { system } from '@workday/canvas-tokens-web';
|
|
8
|
+
import { mergeStyles } from '@workday/canvas-kit-react/layout';
|
|
9
|
+
export const pillIconStencil = createStencil({
|
|
10
|
+
extends: systemIconStencil,
|
|
11
|
+
base: { name: "ndjk9", styles: "box-sizing:border-box;margin-inline-start:calc(var(--cnvs-sys-space-x1) * -1);--size-svg-728c60:1.25rem;flex:0 0 auto;" }
|
|
12
|
+
}, "pill-icon-4ef362");
|
|
7
13
|
export const PillIcon = createSubcomponent('span')({
|
|
8
14
|
modelHook: usePillModel,
|
|
9
|
-
})(({
|
|
10
|
-
return (
|
|
15
|
+
})(({ icon, ...elemProps }, Element) => {
|
|
16
|
+
return (_jsx(SystemIcon, { as: Element, role: "img", icon: icon || plusIcon, ...mergeStyles(elemProps, pillIconStencil()) }));
|
|
11
17
|
});
|
|
@@ -1,21 +1,80 @@
|
|
|
1
1
|
import { SystemIconProps } from '@workday/canvas-kit-react/icon';
|
|
2
|
-
|
|
3
|
-
export interface PillIconButtonProps extends Omit<SystemIconProps, 'icon'> {
|
|
2
|
+
export interface PillIconButtonProps extends Partial<SystemIconProps> {
|
|
4
3
|
/**
|
|
5
|
-
* The
|
|
6
|
-
* @default `xSmallIcon`
|
|
7
|
-
*/
|
|
8
|
-
icon?: CanvasSystemIcon;
|
|
9
|
-
/**
|
|
10
|
-
* The aria label for the removable icon
|
|
11
|
-
* @default 'remove'
|
|
4
|
+
* The aria label for the removable icon. You must provide a valid string to represent the action.
|
|
12
5
|
*/
|
|
13
6
|
'aria-label'?: string;
|
|
14
7
|
}
|
|
8
|
+
export declare const pillIconButtonStencil: import("@workday/canvas-kit-styling").Stencil<import("@workday/canvas-kit-styling").StencilModifierConfig<{}, {}, never>, {}, {}, import("@workday/canvas-kit-styling").Stencil<{
|
|
9
|
+
size: {
|
|
10
|
+
large: {
|
|
11
|
+
fontWeight: "--cnvs-sys-font-weight-bold";
|
|
12
|
+
height: string;
|
|
13
|
+
paddingInline: "--cnvs-sys-space-x8";
|
|
14
|
+
minWidth: string;
|
|
15
|
+
fontFamily: "--cnvs-sys-font-family-default";
|
|
16
|
+
lineHeight: "--cnvs-sys-line-height-body-small";
|
|
17
|
+
fontSize: "--cnvs-sys-font-size-body-small";
|
|
18
|
+
letterSpacing: "--cnvs-base-letter-spacing-200";
|
|
19
|
+
};
|
|
20
|
+
medium: {
|
|
21
|
+
fontWeight: "--cnvs-sys-font-weight-bold";
|
|
22
|
+
minWidth: string;
|
|
23
|
+
paddingInline: "--cnvs-sys-space-x6";
|
|
24
|
+
height: "--cnvs-sys-space-x10";
|
|
25
|
+
fontFamily: "--cnvs-sys-font-family-default";
|
|
26
|
+
lineHeight: "--cnvs-sys-line-height-subtext-large";
|
|
27
|
+
fontSize: "--cnvs-sys-font-size-subtext-large";
|
|
28
|
+
letterSpacing: "--cnvs-base-letter-spacing-150";
|
|
29
|
+
};
|
|
30
|
+
small: {
|
|
31
|
+
fontWeight: "--cnvs-sys-font-weight-bold";
|
|
32
|
+
height: "--cnvs-sys-space-x8";
|
|
33
|
+
minWidth: "--cnvs-sys-space-x20";
|
|
34
|
+
paddingInline: "--cnvs-sys-space-x4";
|
|
35
|
+
gap: "--cnvs-sys-space-x1";
|
|
36
|
+
fontFamily: "--cnvs-sys-font-family-default";
|
|
37
|
+
lineHeight: "--cnvs-sys-line-height-subtext-large";
|
|
38
|
+
fontSize: "--cnvs-sys-font-size-subtext-large";
|
|
39
|
+
letterSpacing: "--cnvs-base-letter-spacing-150";
|
|
40
|
+
};
|
|
41
|
+
extraSmall: {
|
|
42
|
+
fontWeight: "--cnvs-sys-font-weight-bold";
|
|
43
|
+
height: "--cnvs-sys-space-x6";
|
|
44
|
+
minWidth: string;
|
|
45
|
+
paddingInline: "--cnvs-sys-space-x3";
|
|
46
|
+
gap: "--cnvs-sys-space-x1";
|
|
47
|
+
fontFamily: "--cnvs-sys-font-family-default";
|
|
48
|
+
lineHeight: "--cnvs-sys-line-height-subtext-medium";
|
|
49
|
+
fontSize: "--cnvs-sys-font-size-subtext-medium";
|
|
50
|
+
letterSpacing: "--cnvs-base-letter-spacing-100";
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
grow: {
|
|
54
|
+
true: {
|
|
55
|
+
width: string;
|
|
56
|
+
maxWidth: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
iconPosition: {
|
|
60
|
+
only: {
|
|
61
|
+
padding: "--cnvs-sys-space-zero";
|
|
62
|
+
};
|
|
63
|
+
start: {};
|
|
64
|
+
end: {};
|
|
65
|
+
};
|
|
66
|
+
}, {}, {
|
|
67
|
+
background: string;
|
|
68
|
+
border: string;
|
|
69
|
+
boxShadowInner: string;
|
|
70
|
+
boxShadowOuter: string;
|
|
71
|
+
label: string;
|
|
72
|
+
opacity: string;
|
|
73
|
+
borderRadius: string;
|
|
74
|
+
}, never, never>, never>;
|
|
15
75
|
export declare const PillIconButton: import("@workday/canvas-kit-react/common").ElementComponentM<"button", PillIconButtonProps, {
|
|
16
76
|
state: {
|
|
17
77
|
id: string;
|
|
18
|
-
maxWidth: string | number;
|
|
19
78
|
disabled: boolean;
|
|
20
79
|
};
|
|
21
80
|
events: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PillIconButton.d.ts","sourceRoot":"","sources":["../../../../pill/lib/PillIconButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PillIconButton.d.ts","sourceRoot":"","sources":["../../../../pill/lib/PillIconButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,eAAe,EAAoB,MAAM,gCAAgC,CAAC;AAQ9F,MAAM,WAAW,mBAAoB,SAAQ,OAAO,CAAC,eAAe,CAAC;IACnE;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAuChC,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;EAoB1B,CAAC"}
|
|
@@ -1,54 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { focusRing,
|
|
3
|
-
import { SystemIcon } from '@workday/canvas-kit-react/icon';
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { focusRing, createSubcomponent } from '@workday/canvas-kit-react/common';
|
|
3
|
+
import { SystemIcon, systemIconStencil } from '@workday/canvas-kit-react/icon';
|
|
4
4
|
import { usePillModel } from './usePillModel';
|
|
5
5
|
import { xSmallIcon } from '@workday/canvas-system-icons-web';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
[buttonStencil.vars.label]: colors.blackPepper400,
|
|
15
|
-
'::after': {
|
|
16
|
-
content: '""',
|
|
17
|
-
height: space.l,
|
|
18
|
-
width: space.l,
|
|
19
|
-
position: 'absolute',
|
|
20
|
-
left: '-7px',
|
|
21
|
-
bottom: '-7px',
|
|
22
|
-
margin: 0,
|
|
23
|
-
pointerEvents: 'all',
|
|
24
|
-
},
|
|
25
|
-
'&:focus-visible, &.focus': {
|
|
26
|
-
...focusRing({
|
|
27
|
-
innerColor: 'transparent',
|
|
28
|
-
}),
|
|
29
|
-
[buttonStencil.vars.background]: colors.soap300,
|
|
30
|
-
[buttonStencil.vars.border]: 'transparent',
|
|
31
|
-
[buttonStencil.vars.label]: colors.blackPepper400,
|
|
32
|
-
},
|
|
33
|
-
'&:hover, &.hover': {
|
|
34
|
-
[buttonStencil.vars.background]: colors.soap300,
|
|
35
|
-
[buttonStencil.vars.border]: 'transparent',
|
|
36
|
-
[buttonStencil.vars.label]: colors.blackPepper400,
|
|
37
|
-
},
|
|
38
|
-
'&:active, &.active': {
|
|
39
|
-
[buttonStencil.vars.background]: colors.soap500,
|
|
40
|
-
[buttonStencil.vars.border]: 'transparent',
|
|
41
|
-
[buttonStencil.vars.label]: colors.blackPepper400,
|
|
42
|
-
},
|
|
43
|
-
'&:disabled, &.disabled': {
|
|
44
|
-
[buttonStencil.vars.background]: colors.soap100,
|
|
45
|
-
[buttonStencil.vars.label]: colors.licorice100,
|
|
46
|
-
[buttonStencil.vars.border]: 'transparent',
|
|
47
|
-
},
|
|
48
|
-
});
|
|
6
|
+
import { buttonStencil } from '@workday/canvas-kit-react/button';
|
|
7
|
+
import { calc, createStencil, px2rem } from '@workday/canvas-kit-styling';
|
|
8
|
+
import { system } from '@workday/canvas-tokens-web';
|
|
9
|
+
import { mergeStyles } from '@workday/canvas-kit-react/layout';
|
|
10
|
+
export const pillIconButtonStencil = createStencil({
|
|
11
|
+
extends: buttonStencil,
|
|
12
|
+
base: { name: "ndjkv", styles: "box-sizing:border-box;margin-inline-end:calc(0.4375rem * -1);margin-inline-start:calc(0.125rem * -1);border-radius:var(--cnvs-sys-shape-half);height:calc(var(--cnvs-sys-space-x4) + var(--cnvs-sys-space-x1));width:calc(var(--cnvs-sys-space-x4) + var(--cnvs-sys-space-x1));padding:var(--cnvs-sys-space-zero);overflow:visible;flex:0 0 auto;--border-button-65cb05:var(--cnvs-sys-color-border-transparent);--background-button-65cb05:var(--cnvs-sys-color-bg-alt-soft);--color-system-icon-99ce3e:var(--cnvs-sys-color-icon-default);--size-svg-728c60:var(--cnvs-sys-space-x6);::after{content:\"\";height:var(--cnvs-sys-space-x8);width:var(--cnvs-sys-space-x8);position:absolute;left:calc(0.4375rem * -1);bottom:calc(0.4375rem * -1);margin:var(--cnvs-sys-space-zero);pointer-events:all;}&:focus-visible, &.focus{--border-button-65cb05:var(--cnvs-sys-color-border-transparent);box-shadow:0 0 0 0px var(--cnvs-sys-color-border-transparent), 0 0 0 2px var(--cnvs-brand-common-focus-outline, rgba(8,117,225,1));}&:hover, &.hover{--border-button-65cb05:var(--cnvs-sys-color-border-transparent);}&:disabled, &.disabled{--border-button-65cb05:var(--cnvs-sys-color-border-transparent);}" }
|
|
13
|
+
}, "pill-icon-button-10e7a0");
|
|
49
14
|
export const PillIconButton = createSubcomponent('button')({
|
|
50
15
|
modelHook: usePillModel,
|
|
51
|
-
})(({ size, icon
|
|
52
|
-
return (
|
|
53
|
-
React.createElement(SystemIcon, { "aria-label": ariaLabel, id: `removable-${model.state.id}`, icon: icon, size: space.m, "aria-hidden": true, role: "img" })));
|
|
16
|
+
})(({ size, icon, children, 'aria-label': ariaLabel = '', ...elemProps }, Element, model) => {
|
|
17
|
+
return (_jsx(Element, { disabled: model.state.disabled, "aria-labelledby": `removable-${model.state.id} label-${model.state.id}`, ...mergeStyles(elemProps, pillIconButtonStencil()), children: _jsx(SystemIcon, { "aria-label": ariaLabel, id: `removable-${model.state.id}`, icon: icon || xSmallIcon, "aria-hidden": true, role: "img" }) }));
|
|
54
18
|
});
|
|
@@ -3,10 +3,10 @@ import { OverflowTooltipProps } from '@workday/canvas-kit-react/tooltip';
|
|
|
3
3
|
export interface PillLabelProps extends BoxProps {
|
|
4
4
|
tooltipProps?: Omit<OverflowTooltipProps, 'children'>;
|
|
5
5
|
}
|
|
6
|
+
export declare const pillLabelStencil: import("@workday/canvas-kit-styling").Stencil<import("@workday/canvas-kit-styling").StencilModifierConfig<{}, {}, never>, {}, {}, never, never>;
|
|
6
7
|
export declare const PillLabel: import("@workday/canvas-kit-react/common").ElementComponentM<"span", PillLabelProps, {
|
|
7
8
|
state: {
|
|
8
9
|
id: string;
|
|
9
|
-
maxWidth: string | number;
|
|
10
10
|
disabled: boolean;
|
|
11
11
|
};
|
|
12
12
|
events: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PillLabel.d.ts","sourceRoot":"","sources":["../../../../pill/lib/PillLabel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PillLabel.d.ts","sourceRoot":"","sources":["../../../../pill/lib/PillLabel.tsx"],"names":[],"mappings":"AACA,OAAO,EAAC,QAAQ,EAAc,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAkB,oBAAoB,EAAC,MAAM,mCAAmC,CAAC;AAMxF,MAAM,WAAW,cAAe,SAAQ,QAAQ;IAC9C,YAAY,CAAC,EAAE,IAAI,CAAC,oBAAoB,EAAE,UAAU,CAAC,CAAC;CACvD;AAED,eAAO,MAAM,gBAAgB,iJAO3B,CAAC;AAEH,eAAO,MAAM,SAAS;;;;;;EAUpB,CAAC"}
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { createSubcomponent
|
|
3
|
-
import {
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createSubcomponent } from '@workday/canvas-kit-react/common';
|
|
3
|
+
import { mergeStyles } from '@workday/canvas-kit-react/layout';
|
|
4
4
|
import { OverflowTooltip } from '@workday/canvas-kit-react/tooltip';
|
|
5
5
|
import { usePillModel } from './usePillModel';
|
|
6
|
-
import {
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
textOverflow: 'ellipsis',
|
|
11
|
-
display: 'block',
|
|
12
|
-
});
|
|
6
|
+
import { createStencil } from '@workday/canvas-kit-styling';
|
|
7
|
+
export const pillLabelStencil = createStencil({
|
|
8
|
+
base: { name: "ndjk1i", styles: "box-sizing:border-box;flex-shrink:1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;" }
|
|
9
|
+
}, "pill-label-412177");
|
|
13
10
|
export const PillLabel = createSubcomponent('span')({
|
|
14
11
|
modelHook: usePillModel,
|
|
15
|
-
})(({ tooltipProps, ...elemProps }, Element, model) => {
|
|
16
|
-
return (
|
|
17
|
-
React.createElement(StyledLabelContainer, { color: model.state.disabled ? colors.licorice100 : 'inherit', maxWidth: model.state.maxWidth, as: Element, id: `label-${model.state.id}`, ...elemProps }, elemProps.children)));
|
|
12
|
+
})(({ tooltipProps, children, ...elemProps }, Element, model) => {
|
|
13
|
+
return (_jsx(OverflowTooltip, { ...tooltipProps, children: _jsx(Element, { id: `label-${model.state.id}`, ...mergeStyles(elemProps, pillLabelStencil()), children: children }) }));
|
|
18
14
|
});
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
export declare const usePillModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
* text will be truncated and a tooltip will show the rest of the content when hovered over
|
|
5
|
-
*/
|
|
6
|
-
maxWidth: string | number;
|
|
7
|
-
/**
|
|
8
|
-
* Use to disable a pill.
|
|
3
|
+
* Used to disable a pill and apply the correct styles.
|
|
9
4
|
*/
|
|
10
5
|
disabled: boolean;
|
|
11
6
|
/**
|
|
@@ -17,24 +12,14 @@ export declare const usePillModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
17
12
|
state: {
|
|
18
13
|
id: string;
|
|
19
14
|
/**
|
|
20
|
-
*
|
|
21
|
-
* text will be truncated and a tooltip will show the rest of the content when hovered over
|
|
22
|
-
*/
|
|
23
|
-
maxWidth: string | number;
|
|
24
|
-
/**
|
|
25
|
-
* Use to disable a pill.
|
|
15
|
+
* Used to disable a pill and apply the correct styles.
|
|
26
16
|
*/
|
|
27
17
|
disabled: boolean;
|
|
28
18
|
};
|
|
29
19
|
events: {};
|
|
30
20
|
}) & import("@workday/canvas-kit-react/common").ModelExtras<{
|
|
31
21
|
/**
|
|
32
|
-
*
|
|
33
|
-
* text will be truncated and a tooltip will show the rest of the content when hovered over
|
|
34
|
-
*/
|
|
35
|
-
maxWidth: string | number;
|
|
36
|
-
/**
|
|
37
|
-
* Use to disable a pill.
|
|
22
|
+
* Used to disable a pill and apply the correct styles.
|
|
38
23
|
*/
|
|
39
24
|
disabled: boolean;
|
|
40
25
|
/**
|
|
@@ -45,24 +30,14 @@ export declare const usePillModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
45
30
|
}, {}, {
|
|
46
31
|
id: string;
|
|
47
32
|
/**
|
|
48
|
-
*
|
|
49
|
-
* text will be truncated and a tooltip will show the rest of the content when hovered over
|
|
50
|
-
*/
|
|
51
|
-
maxWidth: string | number;
|
|
52
|
-
/**
|
|
53
|
-
* Use to disable a pill.
|
|
33
|
+
* Used to disable a pill and apply the correct styles.
|
|
54
34
|
*/
|
|
55
35
|
disabled: boolean;
|
|
56
36
|
}, {}, {
|
|
57
37
|
state: {
|
|
58
38
|
id: string;
|
|
59
39
|
/**
|
|
60
|
-
*
|
|
61
|
-
* text will be truncated and a tooltip will show the rest of the content when hovered over
|
|
62
|
-
*/
|
|
63
|
-
maxWidth: string | number;
|
|
64
|
-
/**
|
|
65
|
-
* Use to disable a pill.
|
|
40
|
+
* Used to disable a pill and apply the correct styles.
|
|
66
41
|
*/
|
|
67
42
|
disabled: boolean;
|
|
68
43
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePillModel.d.ts","sourceRoot":"","sources":["../../../../pill/lib/usePillModel.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;IAErB
|
|
1
|
+
{"version":3,"file":"usePillModel.d.ts","sourceRoot":"","sources":["../../../../pill/lib/usePillModel.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;IAErB;;OAEG;;IAEH;;;OAGG;;;;;QAPH;;WAEG;;;;;IAFH;;OAEG;;IAEH;;;OAGG;;;;IAPH;;OAEG;;;;;QAFH;;WAEG;;;;EAgBL,CAAC"}
|
|
@@ -2,12 +2,7 @@ import { createModelHook, useUniqueId } from '@workday/canvas-kit-react/common';
|
|
|
2
2
|
export const usePillModel = createModelHook({
|
|
3
3
|
defaultConfig: {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
* text will be truncated and a tooltip will show the rest of the content when hovered over
|
|
7
|
-
*/
|
|
8
|
-
maxWidth: 200,
|
|
9
|
-
/**
|
|
10
|
-
* Use to disable a pill.
|
|
5
|
+
* Used to disable a pill and apply the correct styles.
|
|
11
6
|
*/
|
|
12
7
|
disabled: false,
|
|
13
8
|
/**
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { RadioLabelProps } from './RadioLabel';
|
|
3
2
|
export declare const RadioButton: import("@workday/canvas-kit-react/common").ElementComponentM<"input", RadioLabelProps, {
|
|
4
|
-
onChange: (event:
|
|
3
|
+
onChange: (event: import("react").ChangeEvent<HTMLInputElement>) => void;
|
|
5
4
|
state: {
|
|
6
5
|
value: string | number | undefined;
|
|
7
6
|
name: string;
|
|
8
7
|
'aria-describedby': string | undefined;
|
|
9
|
-
inputRef:
|
|
8
|
+
inputRef: import("react").MutableRefObject<HTMLInputElement | undefined>;
|
|
10
9
|
};
|
|
11
10
|
events: {};
|
|
12
11
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioButton.d.ts","sourceRoot":"","sources":["../../../../radio/lib/RadioButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RadioButton.d.ts","sourceRoot":"","sources":["../../../../radio/lib/RadioButton.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAC,eAAe,EAAC,MAAM,cAAc,CAAC;AAE7C,eAAO,MAAM,WAAW;;;;;;;;;EAUtB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { createSubcomponent } from '@workday/canvas-kit-react/common';
|
|
3
3
|
import { useRadioModel } from './hooks/useRadioModel';
|
|
4
4
|
import { RadioGroup } from './RadioGroup';
|
|
@@ -6,7 +6,5 @@ export const RadioButton = createSubcomponent('input')({
|
|
|
6
6
|
displayName: 'Radio',
|
|
7
7
|
modelHook: useRadioModel,
|
|
8
8
|
})(({ children, variant, ref, value, disabled, ...elemProps }) => {
|
|
9
|
-
return (
|
|
10
|
-
React.createElement(RadioGroup.Label.Input, { value: value, ...elemProps, ref: ref }),
|
|
11
|
-
React.createElement(RadioGroup.Label.Text, null, children)));
|
|
9
|
+
return (_jsxs(RadioGroup.Label, { variant: variant, disabled: disabled, children: [_jsx(RadioGroup.Label.Input, { value: value, ...elemProps, ref: ref }), _jsx(RadioGroup.Label.Text, { children: children })] }));
|
|
12
10
|
});
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { Themeable, ErrorType } from '@workday/canvas-kit-react/common';
|
|
3
2
|
import { FlexProps } from '@workday/canvas-kit-react/layout';
|
|
4
3
|
import { CSProps } from '@workday/canvas-kit-styling';
|
|
@@ -22,14 +21,14 @@ export declare const RadioGroup: import("@workday/canvas-kit-react/common").Elem
|
|
|
22
21
|
'aria-describedby': string | undefined;
|
|
23
22
|
name: string;
|
|
24
23
|
value: string | number | undefined;
|
|
25
|
-
onChange(event:
|
|
24
|
+
onChange(event: import("react").ChangeEvent<HTMLInputElement>): void;
|
|
26
25
|
}> & {} & {}, {
|
|
27
|
-
onChange: (event:
|
|
26
|
+
onChange: (event: import("react").ChangeEvent<HTMLInputElement>) => void;
|
|
28
27
|
state: {
|
|
29
28
|
value: string | number | undefined;
|
|
30
29
|
name: string;
|
|
31
30
|
'aria-describedby': string | undefined;
|
|
32
|
-
inputRef:
|
|
31
|
+
inputRef: import("react").MutableRefObject<HTMLInputElement | undefined>;
|
|
33
32
|
};
|
|
34
33
|
events: {};
|
|
35
34
|
}> & {
|
|
@@ -45,12 +44,12 @@ export declare const RadioGroup: import("@workday/canvas-kit-react/common").Elem
|
|
|
45
44
|
* ```
|
|
46
45
|
*/
|
|
47
46
|
RadioButton: import("@workday/canvas-kit-react/common").ElementComponentM<"input", import("./RadioLabel").RadioLabelProps, {
|
|
48
|
-
onChange: (event:
|
|
47
|
+
onChange: (event: import("react").ChangeEvent<HTMLInputElement>) => void;
|
|
49
48
|
state: {
|
|
50
49
|
value: string | number | undefined;
|
|
51
50
|
name: string;
|
|
52
51
|
'aria-describedby': string | undefined;
|
|
53
|
-
inputRef:
|
|
52
|
+
inputRef: import("react").MutableRefObject<HTMLInputElement | undefined>;
|
|
54
53
|
};
|
|
55
54
|
events: {};
|
|
56
55
|
}>;
|
|
@@ -68,32 +67,32 @@ export declare const RadioGroup: import("@workday/canvas-kit-react/common").Elem
|
|
|
68
67
|
* ```
|
|
69
68
|
*/
|
|
70
69
|
Label: import("@workday/canvas-kit-react/common").ElementComponentM<"label", import("./RadioLabel").RadioLabelProps, {
|
|
71
|
-
onChange: (event:
|
|
70
|
+
onChange: (event: import("react").ChangeEvent<HTMLInputElement>) => void;
|
|
72
71
|
state: {
|
|
73
72
|
value: string | number | undefined;
|
|
74
73
|
name: string;
|
|
75
74
|
'aria-describedby': string | undefined;
|
|
76
|
-
inputRef:
|
|
75
|
+
inputRef: import("react").MutableRefObject<HTMLInputElement | undefined>;
|
|
77
76
|
};
|
|
78
77
|
events: {};
|
|
79
78
|
}> & {
|
|
80
79
|
Input: import("@workday/canvas-kit-react/common").ElementComponentM<"input", import("./RadioLabel").RadioLabelProps, {
|
|
81
|
-
onChange: (event:
|
|
80
|
+
onChange: (event: import("react").ChangeEvent<HTMLInputElement>) => void;
|
|
82
81
|
state: {
|
|
83
82
|
value: string | number | undefined;
|
|
84
83
|
name: string;
|
|
85
84
|
'aria-describedby': string | undefined;
|
|
86
|
-
inputRef:
|
|
85
|
+
inputRef: import("react").MutableRefObject<HTMLInputElement | undefined>;
|
|
87
86
|
};
|
|
88
87
|
events: {};
|
|
89
88
|
}>;
|
|
90
|
-
Text: import("@workday/canvas-kit-react/common").ElementComponentM<"span", import("@workday/canvas-kit-react/text").TextProps &
|
|
91
|
-
onChange: (event:
|
|
89
|
+
Text: import("@workday/canvas-kit-react/common").ElementComponentM<"span", import("@workday/canvas-kit-react/text").TextProps & import("react").HTMLAttributes<HTMLSpanElement>, {
|
|
90
|
+
onChange: (event: import("react").ChangeEvent<HTMLInputElement>) => void;
|
|
92
91
|
state: {
|
|
93
92
|
value: string | number | undefined;
|
|
94
93
|
name: string;
|
|
95
94
|
'aria-describedby': string | undefined;
|
|
96
|
-
inputRef:
|
|
95
|
+
inputRef: import("react").MutableRefObject<HTMLInputElement | undefined>;
|
|
97
96
|
};
|
|
98
97
|
events: {};
|
|
99
98
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../../radio/lib/RadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../../radio/lib/RadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,SAAS,EAAE,SAAS,EAAC,MAAM,kCAAkC,CAAC;AAEvF,OAAO,EAAC,SAAS,EAAc,MAAM,kCAAkC,CAAC;AAGxE,OAAO,EAAgB,OAAO,EAAe,MAAM,6BAA6B,CAAC;AAGjF,MAAM,WAAW,eAAgB,SAAQ,SAAS,EAAE,OAAO,EAAE,SAAS;IACpE;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AA8BD;;;;;;;;;GASG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;IAInB;;;;;;;;;;OAUG;;;;;;;;;;;IAEH;;;;;;;;;;;;OAYG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKL,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { createContainer } from '@workday/canvas-kit-react/common';
|
|
3
3
|
import { useRadioModel } from './hooks/useRadioModel';
|
|
4
4
|
import { mergeStyles } from '@workday/canvas-kit-react/layout';
|
|
@@ -10,14 +10,14 @@ import { brand, system } from '@workday/canvas-tokens-web';
|
|
|
10
10
|
* Styles for RadioGroup
|
|
11
11
|
*/
|
|
12
12
|
const radioGroupStencil = createStencil({
|
|
13
|
-
base: { name: "
|
|
13
|
+
base: { name: "ndjk2x", styles: "box-sizing:border-box;display:flex;flex-direction:column;border-radius:var(--cnvs-sys-shape-x1);gap:var(--cnvs-sys-space-x2);padding:0.625rem var(--cnvs-sys-space-x3) var(--cnvs-sys-space-x2);margin:0 calc(var(--cnvs-sys-space-x3) * -1);transition:100ms box-shadow;width:fit-content;" },
|
|
14
14
|
modifiers: {
|
|
15
15
|
error: {
|
|
16
|
-
error: { name: "
|
|
17
|
-
alert: { name: "
|
|
16
|
+
error: { name: "ndjk2y", styles: "box-shadow:inset 0 0 0 0.125rem var(--cnvs-brand-error-base);" },
|
|
17
|
+
alert: { name: "ndjk2z", styles: "box-shadow:inset 0 0 0 0.0625rem var(--cnvs-brand-alert-darkest), inset 0 0 0 0.1875rem var(--cnvs-brand-alert-base);" }
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
}, "radio-group-
|
|
20
|
+
}, "radio-group-aea204");
|
|
21
21
|
/**
|
|
22
22
|
* Use `RadioGroup` to group a collection of `RadioGroup.RadioButton` components under a common `name`.
|
|
23
23
|
*
|
|
@@ -60,5 +60,5 @@ export const RadioGroup = createContainer('div')({
|
|
|
60
60
|
Label: RadioLabel,
|
|
61
61
|
},
|
|
62
62
|
})(({ children, error, theme, ...elemProps }, Element) => {
|
|
63
|
-
return
|
|
63
|
+
return _jsx(Element, { ...mergeStyles(elemProps, radioGroupStencil({ error })), children: children });
|
|
64
64
|
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { createSubcomponent, createElemPropsHook } from '@workday/canvas-kit-react/common';
|
|
3
4
|
import { useRadioModel } from './hooks/useRadioModel';
|
|
@@ -21,5 +22,5 @@ export const RadioInput = createSubcomponent('input')({
|
|
|
21
22
|
modelHook: useRadioModel,
|
|
22
23
|
elemPropsHook: useRadioInput,
|
|
23
24
|
})(({ ...elemProps }, _Element, _model) => {
|
|
24
|
-
return
|
|
25
|
+
return _jsx(StyledRadioButton, { ...elemProps });
|
|
25
26
|
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { createSubcomponent } from '@workday/canvas-kit-react/common';
|
|
3
4
|
import { useRadioModel } from './hooks/useRadioModel';
|
|
@@ -7,7 +8,7 @@ import { RadioText } from './RadioText';
|
|
|
7
8
|
import { createStencil } from '@workday/canvas-kit-styling';
|
|
8
9
|
import { system } from '@workday/canvas-tokens-web';
|
|
9
10
|
const radioLabelStencil = createStencil({
|
|
10
|
-
base: { name: "
|
|
11
|
+
base: { name: "ndjk2w", styles: "box-sizing:border-box;align-items:flex-start;min-height:var(--cnvs-sys-space-x6);position:relative;gap:var(--cnvs-sys-space-x3);" }
|
|
11
12
|
}, "radio-label-0cca27");
|
|
12
13
|
export const RadioLabelContext = React.createContext({});
|
|
13
14
|
export const RadioLabel = createSubcomponent('label')({
|
|
@@ -42,6 +43,5 @@ export const RadioLabel = createSubcomponent('label')({
|
|
|
42
43
|
Text: RadioText,
|
|
43
44
|
},
|
|
44
45
|
})(({ children, variant, disabled, value, ...elemProps }, Element) => {
|
|
45
|
-
return (
|
|
46
|
-
React.createElement(Flex, { as: Element, ...mergeStyles(elemProps, radioLabelStencil({ variant })) }, children)));
|
|
46
|
+
return (_jsx(RadioLabelContext.Provider, { value: { variant, disabled }, children: _jsx(Flex, { as: Element, ...mergeStyles(elemProps, radioLabelStencil({ variant })), children: children }) }));
|
|
47
47
|
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { createSubcomponent } from '@workday/canvas-kit-react/common';
|
|
3
4
|
import { useRadioModel } from './hooks/useRadioModel';
|
|
@@ -8,19 +9,19 @@ import { system } from '@workday/canvas-tokens-web';
|
|
|
8
9
|
import { mergeStyles } from '@workday/canvas-kit-react/layout';
|
|
9
10
|
const radioTextStencil = createStencil({
|
|
10
11
|
extends: textStencil,
|
|
11
|
-
base: { name: "
|
|
12
|
+
base: { name: "ndjk2s", styles: "box-sizing:border-box;cursor:pointer;" },
|
|
12
13
|
modifiers: {
|
|
13
14
|
variant: {
|
|
14
|
-
inverse: { name: "
|
|
15
|
+
inverse: { name: "ndjk2t", styles: "color:var(--cnvs-sys-color-text-inverse);" }
|
|
15
16
|
},
|
|
16
17
|
disabled: {
|
|
17
|
-
true: { name: "
|
|
18
|
+
true: { name: "ndjk2u", styles: "cursor:default;color:var(--cnvs-sys-color-text-disabled);" }
|
|
18
19
|
}
|
|
19
20
|
},
|
|
20
21
|
compound: [
|
|
21
22
|
{
|
|
22
23
|
modifiers: { variant: 'inverse', disabled: true },
|
|
23
|
-
styles: { name: "
|
|
24
|
+
styles: { name: "ndjk2v", styles: "color:var(--cnvs-sys-color-text-inverse);opacity:var(--cnvs-sys-opacity-disabled);" }
|
|
24
25
|
}
|
|
25
26
|
],
|
|
26
27
|
defaultModifiers: {
|
|
@@ -32,5 +33,5 @@ export const RadioText = createSubcomponent('span')({
|
|
|
32
33
|
modelHook: useRadioModel,
|
|
33
34
|
})(({ children, ...elemProps }, Element) => {
|
|
34
35
|
const { variant, disabled } = React.useContext(RadioLabelContext);
|
|
35
|
-
return (
|
|
36
|
+
return (_jsx(Element, { ...mergeStyles(elemProps, radioTextStencil({ variant, disabled })), children: children }));
|
|
36
37
|
});
|