@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,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { createComponent } from '@workday/canvas-kit-react/common';
|
|
3
3
|
import { createStencil, px2rem } from '@workday/canvas-kit-styling';
|
|
4
4
|
import { system } from '@workday/canvas-tokens-web';
|
|
@@ -7,31 +7,31 @@ import { systemIconStencil } from '@workday/canvas-kit-react/icon';
|
|
|
7
7
|
import { StatusIndicatorIcon } from './StatusIndicatorIcon';
|
|
8
8
|
import { StatusIndicatorLabel } from './StatusIndicatorLabel';
|
|
9
9
|
const statusIndicatorStencil = createStencil({
|
|
10
|
-
base: { name: "
|
|
10
|
+
base: { name: "ndjk3z", styles: "box-sizing:border-box;display:inline-flex;gap:var(--cnvs-sys-space-x1);max-width:12.5rem;align-items:center;border-radius:var(--cnvs-sys-shape-half);height:1.25rem;padding:var(--cnvs-sys-space-zero) var(--cnvs-sys-space-x1);outline:0.0625rem solid transparent;" },
|
|
11
11
|
modifiers: {
|
|
12
12
|
gray: {
|
|
13
|
-
high: { name: "
|
|
14
|
-
low: { name: "
|
|
13
|
+
high: { name: "ndjk40", styles: "color:var(--cnvs-sys-color-static-white);--color-system-icon-99ce3e:var(--cnvs-sys-color-static-white);background:var(--cnvs-sys-color-static-gray-default);" },
|
|
14
|
+
low: { name: "ndjk41", styles: "color:var(--cnvs-sys-color-static-gray-strong);--color-system-icon-99ce3e:var(--cnvs-sys-color-static-gray-strong);background:var(--cnvs-sys-color-static-gray-soft);" }
|
|
15
15
|
},
|
|
16
16
|
orange: {
|
|
17
|
-
high: { name: "
|
|
18
|
-
low: { name: "
|
|
17
|
+
high: { name: "ndjk42", styles: "color:var(--cnvs-sys-color-static-gray-stronger);--color-system-icon-99ce3e:var(--cnvs-sys-color-static-gray-stronger);background:var(--cnvs-sys-color-static-orange-default);" },
|
|
18
|
+
low: { name: "ndjk43", styles: "color:var(--cnvs-sys-color-static-gold-stronger);--color-system-icon-99ce3e:var(--cnvs-sys-color-static-gold-stronger);background:var(--cnvs-sys-color-static-orange-soft);" }
|
|
19
19
|
},
|
|
20
20
|
blue: {
|
|
21
|
-
high: { name: "
|
|
22
|
-
low: { name: "
|
|
21
|
+
high: { name: "ndjk44", styles: "color:var(--cnvs-sys-color-static-white);--color-system-icon-99ce3e:var(--cnvs-sys-color-static-white);background:var(--cnvs-sys-color-static-blue-default);" },
|
|
22
|
+
low: { name: "ndjk45", styles: "color:var(--cnvs-sys-color-static-blue-strong);--color-system-icon-99ce3e:var(--cnvs-sys-color-static-blue-strong);background:var(--cnvs-sys-color-static-blue-soft);" }
|
|
23
23
|
},
|
|
24
24
|
green: {
|
|
25
|
-
high: { name: "
|
|
26
|
-
low: { name: "
|
|
25
|
+
high: { name: "ndjk46", styles: "color:var(--cnvs-sys-color-static-white);--color-system-icon-99ce3e:var(--cnvs-sys-color-static-white);background:var(--cnvs-sys-color-static-green-strong);" },
|
|
26
|
+
low: { name: "ndjk47", styles: "color:var(--cnvs-sys-color-static-green-strong);--color-system-icon-99ce3e:var(--cnvs-sys-color-static-green-strong);background:var(--cnvs-sys-color-static-green-soft);" }
|
|
27
27
|
},
|
|
28
28
|
red: {
|
|
29
|
-
high: { name: "
|
|
30
|
-
low: { name: "
|
|
29
|
+
high: { name: "ndjk48", styles: "color:var(--cnvs-sys-color-static-white);--color-system-icon-99ce3e:var(--cnvs-sys-color-static-white);background:var(--cnvs-sys-color-static-red-default);" },
|
|
30
|
+
low: { name: "ndjk49", styles: "color:var(--cnvs-sys-color-static-red-strong);--color-system-icon-99ce3e:var(--cnvs-sys-color-static-red-strong);background:var(--cnvs-sys-color-static-red-soft);" }
|
|
31
31
|
},
|
|
32
32
|
transparent: {
|
|
33
|
-
high: { name: "
|
|
34
|
-
low: { name: "
|
|
33
|
+
high: { name: "ndjk4a", styles: "color:var(--cnvs-sys-color-static-white);--color-system-icon-99ce3e:var(--cnvs-sys-color-static-white);background:var(--cnvs-sys-color-bg-translucent);" },
|
|
34
|
+
low: { name: "ndjk4b", styles: "color:var(--cnvs-sys-color-static-white);--color-system-icon-99ce3e:var(--cnvs-sys-color-static-white);background:var(--cnvs-sys-color-bg-translucent);" }
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
}, "status-indicator-1a565e");
|
|
@@ -68,6 +68,6 @@ export const StatusIndicator = createComponent('div')({
|
|
|
68
68
|
Icon: StatusIndicatorIcon,
|
|
69
69
|
},
|
|
70
70
|
Component: ({ emphasis = 'low', variant = 'gray', children, ...elemProps }, ref, Element) => {
|
|
71
|
-
return (
|
|
71
|
+
return (_jsx(Element, { ref: ref, ...mergeStyles(elemProps, statusIndicatorStencil({ [variant]: emphasis })), children: children }));
|
|
72
72
|
},
|
|
73
73
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusIndicatorIcon.d.ts","sourceRoot":"","sources":["../../../../status-indicator/lib/StatusIndicatorIcon.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StatusIndicatorIcon.d.ts","sourceRoot":"","sources":["../../../../status-indicator/lib/StatusIndicatorIcon.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAE3E,MAAM,WAAW,wBAAyB,SAAQ,eAAe;CAAG;AAEpE,eAAO,MAAM,mBAAmB,sFAK9B,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { createComponent } from '@workday/canvas-kit-react/common';
|
|
3
3
|
import { SystemIcon } from '@workday/canvas-kit-react/icon';
|
|
4
4
|
export const StatusIndicatorIcon = createComponent('span')({
|
|
5
5
|
displayName: 'StatusIndicatorIcon',
|
|
6
6
|
Component: (elemProps, ref, Element) => {
|
|
7
|
-
return
|
|
7
|
+
return _jsx(SystemIcon, { as: Element, ref: ref, size: 20, role: "img", ...elemProps });
|
|
8
8
|
},
|
|
9
9
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusIndicatorLabel.d.ts","sourceRoot":"","sources":["../../../../status-indicator/lib/StatusIndicatorLabel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StatusIndicatorLabel.d.ts","sourceRoot":"","sources":["../../../../status-indicator/lib/StatusIndicatorLabel.tsx"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAc,MAAM,gCAAgC,CAAC;AAKtE,MAAM,WAAW,yBAA0B,SAAQ,SAAS;CAAG;AAe/D,eAAO,MAAM,oBAAoB,gGAS/B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { createComponent } from '@workday/canvas-kit-react/common';
|
|
3
3
|
import { textStencil } from '@workday/canvas-kit-react/text';
|
|
4
4
|
import { createStencil } from '@workday/canvas-kit-styling';
|
|
@@ -6,12 +6,12 @@ import { mergeStyles } from '@workday/canvas-kit-react/layout';
|
|
|
6
6
|
import { system } from '@workday/canvas-tokens-web';
|
|
7
7
|
const statusIndicatorLabelStencil = createStencil({
|
|
8
8
|
extends: textStencil,
|
|
9
|
-
base: { name: "
|
|
9
|
+
base: { name: "ndjk3y", styles: "box-sizing:border-box;font-weight:var(--cnvs-sys-font-weight-bold);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-transform:capitalize;color:inherit;" },
|
|
10
10
|
defaultModifiers: { typeLevel: 'subtext.large' }
|
|
11
|
-
}, "status-indicator-label-
|
|
11
|
+
}, "status-indicator-label-63258e");
|
|
12
12
|
export const StatusIndicatorLabel = createComponent('span')({
|
|
13
13
|
displayName: 'StatusIndicator.Label',
|
|
14
14
|
Component: ({ children, typeLevel, ...elemProps }, ref, Element) => {
|
|
15
|
-
return (
|
|
15
|
+
return (_jsx(Element, { ref: ref, ...mergeStyles(elemProps, statusIndicatorLabelStencil({ typeLevel })), children: children }));
|
|
16
16
|
},
|
|
17
17
|
});
|
|
@@ -18,13 +18,13 @@ export declare const TextArea: import("@workday/canvas-kit-react/common").Elemen
|
|
|
18
18
|
error: "error" | "alert" | undefined;
|
|
19
19
|
id: string;
|
|
20
20
|
isRequired: boolean;
|
|
21
|
-
orientation: "
|
|
21
|
+
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
22
22
|
}> & {} & {}, {
|
|
23
23
|
state: {
|
|
24
24
|
id: string;
|
|
25
25
|
error: "error" | "alert" | undefined;
|
|
26
26
|
isRequired: boolean;
|
|
27
|
-
orientation: "
|
|
27
|
+
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
28
28
|
};
|
|
29
29
|
events: {};
|
|
30
30
|
}> & {
|
|
@@ -33,7 +33,7 @@ export declare const TextArea: import("@workday/canvas-kit-react/common").Elemen
|
|
|
33
33
|
id: string;
|
|
34
34
|
error: "error" | "alert" | undefined;
|
|
35
35
|
isRequired: boolean;
|
|
36
|
-
orientation: "
|
|
36
|
+
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
37
37
|
};
|
|
38
38
|
events: {};
|
|
39
39
|
}, {}>, {
|
|
@@ -41,7 +41,7 @@ export declare const TextArea: import("@workday/canvas-kit-react/common").Elemen
|
|
|
41
41
|
id: string;
|
|
42
42
|
error: "error" | "alert" | undefined;
|
|
43
43
|
isRequired: boolean;
|
|
44
|
-
orientation: "
|
|
44
|
+
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
45
45
|
};
|
|
46
46
|
events: {};
|
|
47
47
|
}>;
|
|
@@ -50,7 +50,7 @@ export declare const TextArea: import("@workday/canvas-kit-react/common").Elemen
|
|
|
50
50
|
id: string;
|
|
51
51
|
error: "error" | "alert" | undefined;
|
|
52
52
|
isRequired: boolean;
|
|
53
|
-
orientation: "
|
|
53
|
+
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
54
54
|
};
|
|
55
55
|
events: {};
|
|
56
56
|
}>;
|
|
@@ -59,7 +59,7 @@ export declare const TextArea: import("@workday/canvas-kit-react/common").Elemen
|
|
|
59
59
|
id: string;
|
|
60
60
|
error: "error" | "alert" | undefined;
|
|
61
61
|
isRequired: boolean;
|
|
62
|
-
orientation: "
|
|
62
|
+
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
63
63
|
};
|
|
64
64
|
events: {};
|
|
65
65
|
}>;
|
|
@@ -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 { FormField, formFieldStencil } from '@workday/canvas-kit-react/form-field';
|
|
4
4
|
import { mergeStyles } from '@workday/canvas-kit-react/layout';
|
|
@@ -17,10 +17,10 @@ export const TextArea = createContainer('div')({
|
|
|
17
17
|
Hint: FormField.Hint,
|
|
18
18
|
},
|
|
19
19
|
})(({ children, grow, orientation, ...elemProps }, Element, model) => {
|
|
20
|
-
return (
|
|
20
|
+
return (_jsx(Element, { ...mergeStyles(elemProps, formFieldStencil({
|
|
21
21
|
grow,
|
|
22
|
-
orientation: orientation
|
|
22
|
+
orientation: orientation,
|
|
23
23
|
error: model.state.error,
|
|
24
24
|
required: model.state.isRequired,
|
|
25
|
-
}))
|
|
25
|
+
})), children: children }));
|
|
26
26
|
});
|
|
@@ -6,7 +6,7 @@ export declare const TextAreaField: import("@workday/canvas-kit-react/common").E
|
|
|
6
6
|
id: string;
|
|
7
7
|
error: "error" | "alert" | undefined;
|
|
8
8
|
isRequired: boolean;
|
|
9
|
-
orientation: "
|
|
9
|
+
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
10
10
|
};
|
|
11
11
|
events: {};
|
|
12
12
|
}, {}>, {
|
|
@@ -14,7 +14,7 @@ export declare const TextAreaField: import("@workday/canvas-kit-react/common").E
|
|
|
14
14
|
id: string;
|
|
15
15
|
error: "error" | "alert" | undefined;
|
|
16
16
|
isRequired: boolean;
|
|
17
|
-
orientation: "
|
|
17
|
+
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
18
18
|
};
|
|
19
19
|
events: {};
|
|
20
20
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextAreaField.d.ts","sourceRoot":"","sources":["../../../../text-area/lib/TextAreaField.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TextAreaField.d.ts","sourceRoot":"","sources":["../../../../text-area/lib/TextAreaField.tsx"],"names":[],"mappings":"AA0CA;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;EAiCxB,CAAC"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
/** @jsx jsx */
|
|
3
|
-
import { jsx } from '@emotion/react';
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
2
|
import { borderRadius, colors, inputColors, space, type, } from '@workday/canvas-kit-react/tokens';
|
|
5
3
|
import { createSubcomponent, useTheme, useThemedRing, } from '@workday/canvas-kit-react/common';
|
|
6
4
|
import { FormField } from '@workday/canvas-kit-react/form-field';
|
|
@@ -46,5 +44,5 @@ export const TextAreaField = createSubcomponent('textarea')({
|
|
|
46
44
|
boxShadow: `inset 0 0 0 1px ${theme.canvas.palette.common.focusOutline}`,
|
|
47
45
|
},
|
|
48
46
|
};
|
|
49
|
-
return (
|
|
47
|
+
return (_jsx(FormField.Input, { as: Element, ...type.levels.subtext.large, cs: [baseStyles, focusStyles], ...elemProps, border: `1px solid ${inputColors.border}`, display: "block", backgroundColor: inputColors.background, borderRadius: borderRadius.m, minHeight: 64, minWidth: 280, padding: space.xxs, margin: 0 }));
|
|
50
48
|
});
|
|
@@ -18,13 +18,13 @@ export declare const TextInput: import("@workday/canvas-kit-react/common").Eleme
|
|
|
18
18
|
error: "error" | "alert" | undefined;
|
|
19
19
|
id: string;
|
|
20
20
|
isRequired: boolean;
|
|
21
|
-
orientation: "
|
|
21
|
+
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
22
22
|
}> & {} & {} & import("@workday/canvas-kit-react/common").PropsWithModel<{
|
|
23
23
|
state: {
|
|
24
24
|
id: string;
|
|
25
25
|
error: "error" | "alert" | undefined;
|
|
26
26
|
isRequired: boolean;
|
|
27
|
-
orientation: "
|
|
27
|
+
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
28
28
|
};
|
|
29
29
|
events: {};
|
|
30
30
|
}, {}>, {
|
|
@@ -32,7 +32,7 @@ export declare const TextInput: import("@workday/canvas-kit-react/common").Eleme
|
|
|
32
32
|
id: string;
|
|
33
33
|
error: "error" | "alert" | undefined;
|
|
34
34
|
isRequired: boolean;
|
|
35
|
-
orientation: "
|
|
35
|
+
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
36
36
|
};
|
|
37
37
|
events: {};
|
|
38
38
|
}> & {
|
|
@@ -41,7 +41,7 @@ export declare const TextInput: import("@workday/canvas-kit-react/common").Eleme
|
|
|
41
41
|
id: string;
|
|
42
42
|
error: "error" | "alert" | undefined;
|
|
43
43
|
isRequired: boolean;
|
|
44
|
-
orientation: "
|
|
44
|
+
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
45
45
|
};
|
|
46
46
|
events: {};
|
|
47
47
|
}, {}>, {
|
|
@@ -49,7 +49,7 @@ export declare const TextInput: import("@workday/canvas-kit-react/common").Eleme
|
|
|
49
49
|
id: string;
|
|
50
50
|
error: "error" | "alert" | undefined;
|
|
51
51
|
isRequired: boolean;
|
|
52
|
-
orientation: "
|
|
52
|
+
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
53
53
|
};
|
|
54
54
|
events: {};
|
|
55
55
|
}>;
|
|
@@ -58,7 +58,7 @@ export declare const TextInput: import("@workday/canvas-kit-react/common").Eleme
|
|
|
58
58
|
id: string;
|
|
59
59
|
error: "error" | "alert" | undefined;
|
|
60
60
|
isRequired: boolean;
|
|
61
|
-
orientation: "
|
|
61
|
+
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
62
62
|
};
|
|
63
63
|
events: {};
|
|
64
64
|
}>;
|
|
@@ -67,7 +67,7 @@ export declare const TextInput: import("@workday/canvas-kit-react/common").Eleme
|
|
|
67
67
|
id: string;
|
|
68
68
|
error: "error" | "alert" | undefined;
|
|
69
69
|
isRequired: boolean;
|
|
70
|
-
orientation: "
|
|
70
|
+
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
71
71
|
};
|
|
72
72
|
events: {};
|
|
73
73
|
}>;
|
|
@@ -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 { FormField, useFormFieldModel, formFieldStencil } from '@workday/canvas-kit-react/form-field';
|
|
4
4
|
import { mergeStyles } from '@workday/canvas-kit-react/layout';
|
|
@@ -16,10 +16,10 @@ export const TextInput = createContainer('div')({
|
|
|
16
16
|
Hint: FormField.Hint,
|
|
17
17
|
},
|
|
18
18
|
})(({ children, orientation, grow, ...elemProps }, Element, model) => {
|
|
19
|
-
return (
|
|
19
|
+
return (_jsx(Element, { ...mergeStyles(elemProps, formFieldStencil({
|
|
20
20
|
grow,
|
|
21
|
-
orientation: orientation
|
|
21
|
+
orientation: orientation,
|
|
22
22
|
error: model.state.error,
|
|
23
23
|
required: model.state.isRequired,
|
|
24
|
-
}))
|
|
24
|
+
})), children: children }));
|
|
25
25
|
});
|
|
@@ -5,22 +5,16 @@ export declare const TextInputField: import("@workday/canvas-kit-react/common").
|
|
|
5
5
|
state: {
|
|
6
6
|
id: string;
|
|
7
7
|
error: "error" | "alert" | undefined;
|
|
8
|
-
/**
|
|
9
|
-
* @deprecated ⚠️ `TextInputField` in Preview has been deprecated and will be removed in a future major version. Please use [`FormField` in Preview](https://workday.github.io/canvas-kit/?path=/story/preview-inputs-form-field--basic) instead.
|
|
10
|
-
*/
|
|
11
8
|
isRequired: boolean;
|
|
12
|
-
orientation: "
|
|
9
|
+
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
13
10
|
};
|
|
14
11
|
events: {};
|
|
15
12
|
}, {}>, {
|
|
16
13
|
state: {
|
|
17
14
|
id: string;
|
|
18
15
|
error: "error" | "alert" | undefined;
|
|
19
|
-
/**
|
|
20
|
-
* @deprecated ⚠️ `TextInputField` in Preview has been deprecated and will be removed in a future major version. Please use [`FormField` in Preview](https://workday.github.io/canvas-kit/?path=/story/preview-inputs-form-field--basic) instead.
|
|
21
|
-
*/
|
|
22
16
|
isRequired: boolean;
|
|
23
|
-
orientation: "
|
|
17
|
+
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
24
18
|
};
|
|
25
19
|
events: {};
|
|
26
20
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInputField.d.ts","sourceRoot":"","sources":["../../../../text-input/lib/TextInputField.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TextInputField.d.ts","sourceRoot":"","sources":["../../../../text-input/lib/TextInputField.tsx"],"names":[],"mappings":"AA0CA;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;EAkCzB,CAAC"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
/** @jsx jsx */
|
|
3
|
-
import { jsx } from '@emotion/react';
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
2
|
import { borderRadius, colors, inputColors, space, type, } from '@workday/canvas-kit-react/tokens';
|
|
5
3
|
import { createSubcomponent, useTheme, useThemedRing, } from '@workday/canvas-kit-react/common';
|
|
6
4
|
import { FormField } from '@workday/canvas-kit-react/form-field';
|
|
@@ -46,5 +44,5 @@ export const TextInputField = createSubcomponent('input')({
|
|
|
46
44
|
boxShadow: `inset 0 0 0 1px ${theme.canvas.palette.common.focusOutline}`,
|
|
47
45
|
},
|
|
48
46
|
};
|
|
49
|
-
return (
|
|
47
|
+
return (_jsx(FormField.Input, { as: "input", ...type.levels.subtext.large, cs: [baseStyles, focusStyles], padding: space.xxs, margin: 0, display: "block", height: "40px", minWidth: "280px", border: `1px solid ${inputColors.border}`, backgroundColor: inputColors.background, borderRadius: borderRadius.m, ...elemProps }));
|
|
50
48
|
});
|
|
@@ -8,7 +8,7 @@ export declare const useTextInputField: import("@workday/canvas-kit-react/common
|
|
|
8
8
|
id: string;
|
|
9
9
|
error: "error" | "alert" | undefined;
|
|
10
10
|
isRequired: boolean;
|
|
11
|
-
orientation: "
|
|
11
|
+
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
12
12
|
};
|
|
13
13
|
events: {};
|
|
14
14
|
}, {
|
|
@@ -5,31 +5,31 @@ export declare const useTextInputModel: (<TT_Special_Generic>(config?: (Partial<
|
|
|
5
5
|
error: "error" | "alert" | undefined;
|
|
6
6
|
id: string;
|
|
7
7
|
isRequired: boolean;
|
|
8
|
-
orientation: "
|
|
8
|
+
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
9
9
|
}> & {} & {}) | undefined) => {
|
|
10
10
|
state: {
|
|
11
11
|
id: string;
|
|
12
12
|
error: "error" | "alert" | undefined;
|
|
13
13
|
isRequired: boolean;
|
|
14
|
-
orientation: "
|
|
14
|
+
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
15
15
|
};
|
|
16
16
|
events: {};
|
|
17
17
|
}) & import("@workday/canvas-kit-react/common").ModelExtras<{
|
|
18
18
|
error: "error" | "alert" | undefined;
|
|
19
19
|
id: string;
|
|
20
20
|
isRequired: boolean;
|
|
21
|
-
orientation: "
|
|
21
|
+
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
22
22
|
}, {}, {
|
|
23
23
|
id: string;
|
|
24
24
|
error: "error" | "alert" | undefined;
|
|
25
25
|
isRequired: boolean;
|
|
26
|
-
orientation: "
|
|
26
|
+
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
27
27
|
}, {}, {
|
|
28
28
|
state: {
|
|
29
29
|
id: string;
|
|
30
30
|
error: "error" | "alert" | undefined;
|
|
31
31
|
isRequired: boolean;
|
|
32
|
-
orientation: "
|
|
32
|
+
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
33
33
|
};
|
|
34
34
|
events: {};
|
|
35
35
|
}>;
|
package/divider/lib/Divider.tsx
CHANGED
package/index.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export * from './color-picker';
|
|
2
|
-
export * from './common';
|
|
3
2
|
export * from './divider';
|
|
4
3
|
export * from './loading-sparkles';
|
|
5
4
|
export * from './menu';
|
|
@@ -11,4 +10,4 @@ export * from './side-panel';
|
|
|
11
10
|
export * from './status-indicator';
|
|
12
11
|
export * from './text-area';
|
|
13
12
|
export * from './text-input';
|
|
14
|
-
export * from './
|
|
13
|
+
export * from './information-highlight';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import {createContainer} from '@workday/canvas-kit-react/common';
|
|
3
|
-
import {cssVar, createStencil, handleCsProp, CSProps} from '@workday/canvas-kit-styling';
|
|
2
|
+
import {cssVar, createStencil, handleCsProp, CSProps, px2rem} from '@workday/canvas-kit-styling';
|
|
4
3
|
import {base, system} from '@workday/canvas-tokens-web';
|
|
5
4
|
|
|
6
5
|
import {InformationHighlightHeading} from './parts/Heading';
|
|
@@ -20,6 +19,7 @@ export const informationHighlightStencil = createStencil({
|
|
|
20
19
|
rowGap: system.space.x2,
|
|
21
20
|
padding: system.space.x4,
|
|
22
21
|
borderRadius: system.shape.x1,
|
|
22
|
+
outline: `${px2rem(1)} solid transparent`,
|
|
23
23
|
},
|
|
24
24
|
modifiers: {
|
|
25
25
|
informational: {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import {createComponent, ExtractProps} from '@workday/canvas-kit-react/common';
|
|
3
|
-
import {createStencil,
|
|
2
|
+
import {createStencil, handleCsProp} from '@workday/canvas-kit-styling';
|
|
4
3
|
import {system} from '@workday/canvas-tokens-web';
|
|
5
4
|
import {Text} from '@workday/canvas-kit-react/text';
|
|
6
5
|
|
|
@@ -10,12 +9,12 @@ const informationHighlightBodyStencil = createStencil({
|
|
|
10
9
|
...system.type.subtext.large,
|
|
11
10
|
color: system.color.text.strong,
|
|
12
11
|
gridColumn: '2',
|
|
13
|
-
|
|
12
|
+
marginBlockEnd: system.space.x2,
|
|
14
13
|
};
|
|
15
14
|
},
|
|
16
15
|
});
|
|
17
16
|
|
|
18
|
-
export const Body = createComponent('
|
|
17
|
+
export const Body = createComponent('div')({
|
|
19
18
|
displayName: 'Body',
|
|
20
19
|
Component: ({...elemProps}: ExtractProps<typeof Text, never>, ref, Element) => {
|
|
21
20
|
return (
|
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {system} from '@workday/canvas-tokens-web';
|
|
1
|
+
import {base, system} from '@workday/canvas-tokens-web';
|
|
3
2
|
import {createComponent} from '@workday/canvas-kit-react/common';
|
|
4
|
-
import {SystemIcon} from '@workday/canvas-kit-react/icon';
|
|
5
|
-
import {
|
|
6
|
-
createStyles,
|
|
7
|
-
CSProps,
|
|
8
|
-
cssVar,
|
|
9
|
-
handleCsProp,
|
|
10
|
-
px2rem,
|
|
11
|
-
keyframes,
|
|
12
|
-
} from '@workday/canvas-kit-styling';
|
|
3
|
+
import {SystemIcon, systemIconStencil} from '@workday/canvas-kit-react/icon';
|
|
4
|
+
import {CSProps, createStencil, handleCsProp, keyframes, px2rem} from '@workday/canvas-kit-styling';
|
|
13
5
|
|
|
14
6
|
import {sparkleIcon} from './sparkleIcon';
|
|
15
7
|
|
|
@@ -18,19 +10,6 @@ import {sparkleIcon} from './sparkleIcon';
|
|
|
18
10
|
*/
|
|
19
11
|
const ANIMATION_DURATION_MS = 1230;
|
|
20
12
|
|
|
21
|
-
// TODO: Replace with the actual color tokens when they are available.
|
|
22
|
-
/**
|
|
23
|
-
* Dragon Fruit colors.
|
|
24
|
-
*/
|
|
25
|
-
const AI_COLORS = {
|
|
26
|
-
dragonFruit100: '#FBF1FF',
|
|
27
|
-
dragonFruit200: '#EFD3FF',
|
|
28
|
-
dragonFruit300: '#BE61F6',
|
|
29
|
-
dragonFruit400: '#8C17D2',
|
|
30
|
-
dragonFruit500: '#6B11A3',
|
|
31
|
-
dragonFruit600: '#4A0D71',
|
|
32
|
-
} as const;
|
|
33
|
-
|
|
34
13
|
/**
|
|
35
14
|
* The animation for the sparkle.
|
|
36
15
|
*/
|
|
@@ -49,42 +28,35 @@ const LOADING_ANIMATION = keyframes({
|
|
|
49
28
|
},
|
|
50
29
|
});
|
|
51
30
|
|
|
52
|
-
const loadingSparklesIconStyles = createStyles({
|
|
53
|
-
animationDuration: `${ANIMATION_DURATION_MS}ms`,
|
|
54
|
-
animationFillMode: 'both',
|
|
55
|
-
animationIterationCount: 'infinite',
|
|
56
|
-
animationName: LOADING_ANIMATION,
|
|
57
|
-
animationTimingFunction: 'ease-in-out',
|
|
58
|
-
'.wd-sparkle-fill': {
|
|
59
|
-
fill: AI_COLORS.dragonFruit400,
|
|
60
|
-
},
|
|
61
|
-
'&:nth-child(1)': {
|
|
62
|
-
animationDelay: '0ms',
|
|
63
|
-
},
|
|
64
|
-
'&:nth-child(2)': {
|
|
65
|
-
animationDelay: `calc(${ANIMATION_DURATION_MS}ms * (1/3))`,
|
|
66
|
-
},
|
|
67
|
-
'&:nth-child(3)': {
|
|
68
|
-
animationDelay: `calc(${ANIMATION_DURATION_MS}ms * (2/3))`,
|
|
69
|
-
},
|
|
70
|
-
});
|
|
71
|
-
|
|
72
31
|
/**
|
|
73
32
|
* An individual loading sparkle. ✨
|
|
74
33
|
*/
|
|
75
34
|
const Sparkle = () => {
|
|
76
|
-
return
|
|
77
|
-
<SystemIcon
|
|
78
|
-
icon={sparkleIcon}
|
|
79
|
-
cs={[loadingSparklesIconStyles]}
|
|
80
|
-
size={cssVar(system.space.x3)}
|
|
81
|
-
/>
|
|
82
|
-
);
|
|
35
|
+
return <SystemIcon data-part="sparkle" icon={sparkleIcon} size={system.space.x3} />;
|
|
83
36
|
};
|
|
84
37
|
|
|
85
|
-
const
|
|
86
|
-
|
|
87
|
-
|
|
38
|
+
export const loadingSparklesStencil = createStencil({
|
|
39
|
+
base: {
|
|
40
|
+
display: 'inline-flex',
|
|
41
|
+
gap: px2rem(1),
|
|
42
|
+
'& [data-part="sparkle"]': {
|
|
43
|
+
animationDuration: `${ANIMATION_DURATION_MS}ms`,
|
|
44
|
+
animationFillMode: 'both',
|
|
45
|
+
animationIterationCount: 'infinite',
|
|
46
|
+
animationName: LOADING_ANIMATION,
|
|
47
|
+
animationTimingFunction: 'ease-in-out',
|
|
48
|
+
[systemIconStencil.vars.color]: base.extendedDragonFruit400,
|
|
49
|
+
'&:nth-child(1)': {
|
|
50
|
+
animationDelay: '0ms',
|
|
51
|
+
},
|
|
52
|
+
'&:nth-child(2)': {
|
|
53
|
+
animationDelay: `calc(${ANIMATION_DURATION_MS}ms * (1/3))`,
|
|
54
|
+
},
|
|
55
|
+
'&:nth-child(3)': {
|
|
56
|
+
animationDelay: `calc(${ANIMATION_DURATION_MS}ms * (2/3))`,
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
},
|
|
88
60
|
});
|
|
89
61
|
|
|
90
62
|
/**
|
|
@@ -94,7 +66,7 @@ export const LoadingSparkles = createComponent('div')({
|
|
|
94
66
|
displayName: 'LoadingSparkles',
|
|
95
67
|
Component: (elemProps: CSProps, ref, Element) => {
|
|
96
68
|
return (
|
|
97
|
-
<Element ref={ref} role="status" {...handleCsProp(elemProps,
|
|
69
|
+
<Element ref={ref} role="status" {...handleCsProp(elemProps, loadingSparklesStencil())}>
|
|
98
70
|
<Sparkle />
|
|
99
71
|
<Sparkle />
|
|
100
72
|
<Sparkle />
|
|
@@ -4,7 +4,7 @@ export const sparkleIcon: CanvasSystemIcon = {
|
|
|
4
4
|
name: 'sparkle',
|
|
5
5
|
type: CanvasIconTypes.System,
|
|
6
6
|
svg: `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
7
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M6 0C6.15942 0 6.34301 0.0967055 6.38274 0.308112C6.64764 1.72077 7.21903 2.91761 8.0963 3.82655C8.97292 4.73482 10.1632 5.36427 11.6812 5.62996C12.1068 5.70416 12.1058 6.29577 11.6812 6.37004C10.1632 6.63573 8.97292 7.26518 8.0963 8.17345C7.21903 9.08239 6.64765 10.2792 6.38276 11.6918C6.34303 11.9032 6.15942 12 6 12C5.84058 12 5.65699 11.9033 5.61726 11.6919C5.35236 10.2792 4.78097 9.08245 3.9037 8.17353C3.02708 7.26528 1.8368 6.63583 0.31883 6.37004C-0.106757 6.29584 -0.105799 5.70423 0.31884 5.62996C1.8368 5.36427 3.02708 4.73482 3.9037 3.82655C4.78097 2.91761 5.35235 1.72083 5.61724 0.308177C5.65697 0.0967702 5.84058 0 6 0Z" class="wd-sparkle-fill"/>
|
|
7
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M6 0C6.15942 0 6.34301 0.0967055 6.38274 0.308112C6.64764 1.72077 7.21903 2.91761 8.0963 3.82655C8.97292 4.73482 10.1632 5.36427 11.6812 5.62996C12.1068 5.70416 12.1058 6.29577 11.6812 6.37004C10.1632 6.63573 8.97292 7.26518 8.0963 8.17345C7.21903 9.08239 6.64765 10.2792 6.38276 11.6918C6.34303 11.9032 6.15942 12 6 12C5.84058 12 5.65699 11.9033 5.61726 11.6919C5.35236 10.2792 4.78097 9.08245 3.9037 8.17353C3.02708 7.26528 1.8368 6.63583 0.31883 6.37004C-0.106757 6.29584 -0.105799 5.70423 0.31884 5.62996C1.8368 5.36427 3.02708 4.73482 3.9037 3.82655C4.78097 2.91761 5.35235 1.72083 5.61724 0.308177C5.65697 0.0967702 5.84058 0 6 0Z" class="wd-icon-fill wd-sparkle-fill" />
|
|
8
8
|
</svg>`,
|
|
9
9
|
filename: 'wd-icon-sparkle.svg',
|
|
10
10
|
};
|