@workday/canvas-kit-docs 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/dist/es6/lib/ExampleCodeBlock.d.ts +1 -2
- package/dist/es6/lib/ExampleCodeBlock.d.ts.map +1 -1
- package/dist/es6/lib/ExampleCodeBlock.js +53 -28
- package/dist/es6/lib/MDXElements.d.ts +1 -2
- package/dist/es6/lib/MDXElements.d.ts.map +1 -1
- package/dist/es6/lib/MDXElements.js +6 -6
- package/dist/es6/lib/MoreTooltip.d.ts +1 -1
- package/dist/es6/lib/MoreTooltip.d.ts.map +1 -1
- package/dist/es6/lib/MoreTooltip.js +11 -12
- package/dist/es6/lib/Specifications.d.ts +1 -2
- package/dist/es6/lib/Specifications.d.ts.map +1 -1
- package/dist/es6/lib/Specifications.js +3 -20
- package/dist/es6/lib/StylePropsTable.d.ts +1 -2
- package/dist/es6/lib/StylePropsTable.d.ts.map +1 -1
- package/dist/es6/lib/StylePropsTable.js +6 -16
- package/dist/es6/lib/Table.d.ts.map +1 -1
- package/dist/es6/lib/Table.js +7 -7
- package/dist/es6/lib/Value.d.ts +3 -3
- package/dist/es6/lib/Value.d.ts.map +1 -1
- package/dist/es6/lib/Value.js +16 -51
- package/dist/es6/lib/docs.js +270163 -169419
- package/dist/es6/lib/stackblitzFiles/.eslintrc.cjs.txt +15 -0
- package/dist/es6/lib/stackblitzFiles/App.d.ts +2 -0
- package/dist/es6/lib/stackblitzFiles/App.d.ts.map +1 -0
- package/dist/es6/lib/stackblitzFiles/App.js +17 -0
- package/dist/es6/lib/stackblitzFiles/App.tsx +33 -0
- package/dist/es6/lib/stackblitzFiles/Demo.d.ts +2 -0
- package/dist/es6/lib/stackblitzFiles/Demo.d.ts.map +1 -0
- package/dist/es6/lib/stackblitzFiles/Demo.js +2 -0
- package/dist/es6/lib/stackblitzFiles/Demo.tsx +1 -0
- package/dist/es6/lib/stackblitzFiles/index.html +13 -0
- package/dist/es6/lib/stackblitzFiles/main.d.ts +4 -0
- package/dist/es6/lib/stackblitzFiles/main.d.ts.map +1 -0
- package/dist/es6/lib/stackblitzFiles/main.js +25 -0
- package/dist/es6/lib/stackblitzFiles/main.tsx +27 -0
- package/dist/es6/lib/stackblitzFiles/packageJSONFile.d.ts +2 -0
- package/dist/es6/lib/stackblitzFiles/packageJSONFile.d.ts.map +1 -0
- package/dist/es6/lib/stackblitzFiles/packageJSONFile.js +42 -0
- package/dist/es6/lib/stackblitzFiles/packageJSONFile.ts +42 -0
- package/dist/es6/lib/stackblitzFiles/tsconfig.json +26 -0
- package/dist/es6/lib/stackblitzFiles/tsconfig.node.json +12 -0
- package/dist/es6/lib/stackblitzFiles/vite-env.d.ts +1 -0
- package/dist/es6/lib/stackblitzFiles/vite.config.d.ts +4 -0
- package/dist/es6/lib/stackblitzFiles/vite.config.d.ts.map +1 -0
- package/dist/es6/lib/stackblitzFiles/vite.config.js +7 -0
- package/dist/es6/lib/stackblitzFiles/vite.config.ts +10 -0
- package/dist/es6/lib/widgetUtils.d.ts +5 -5
- package/dist/es6/lib/widgetUtils.d.ts.map +1 -1
- package/dist/es6/lib/widgetUtils.js +25 -54
- package/dist/es6/lib/widgets/array.js +2 -4
- package/dist/es6/lib/widgets/callExpression.js +2 -14
- package/dist/es6/lib/widgets/canvasColor.js +2 -2
- package/dist/es6/lib/widgets/component.js +2 -4
- package/dist/es6/lib/widgets/conditional.js +2 -12
- package/dist/es6/lib/widgets/enhancedComponent.js +15 -67
- package/dist/es6/lib/widgets/external.js +2 -4
- package/dist/es6/lib/widgets/function.js +7 -26
- package/dist/es6/lib/widgets/intersection.js +2 -3
- package/dist/es6/lib/widgets/model.js +3 -19
- package/dist/es6/lib/widgets/object.js +2 -2
- package/dist/es6/lib/widgets/parenthesis.js +2 -5
- package/dist/es6/lib/widgets/primitives.js +9 -27
- package/dist/es6/lib/widgets/qualifiedName.js +2 -5
- package/dist/es6/lib/widgets/symbol.js +2 -2
- package/dist/es6/lib/widgets/tuple.js +2 -5
- package/dist/es6/lib/widgets/typeParameter.js +2 -13
- package/dist/es6/lib/widgets/union.js +4 -10
- package/dist/es6/mdx/installBlock.d.ts +1 -2
- package/dist/es6/mdx/installBlock.d.ts.map +1 -1
- package/dist/es6/mdx/installBlock.js +2 -6
- package/dist/es6/mdx/style-props/examples/Background.d.ts +1 -2
- package/dist/es6/mdx/style-props/examples/Background.d.ts.map +1 -1
- package/dist/es6/mdx/style-props/examples/Background.js +2 -5
- package/dist/es6/mdx/style-props/examples/Border.d.ts +1 -2
- package/dist/es6/mdx/style-props/examples/Border.d.ts.map +1 -1
- package/dist/es6/mdx/style-props/examples/Border.js +2 -5
- package/dist/es6/mdx/style-props/examples/Color.d.ts +1 -2
- package/dist/es6/mdx/style-props/examples/Color.d.ts.map +1 -1
- package/dist/es6/mdx/style-props/examples/Color.js +2 -5
- package/dist/es6/mdx/style-props/examples/Depth.d.ts +1 -2
- package/dist/es6/mdx/style-props/examples/Depth.d.ts.map +1 -1
- package/dist/es6/mdx/style-props/examples/Depth.js +2 -5
- package/dist/es6/mdx/style-props/examples/Flex.d.ts +1 -2
- package/dist/es6/mdx/style-props/examples/Flex.d.ts.map +1 -1
- package/dist/es6/mdx/style-props/examples/Flex.js +2 -14
- package/dist/es6/mdx/style-props/examples/FlexItem.d.ts +1 -2
- package/dist/es6/mdx/style-props/examples/FlexItem.d.ts.map +1 -1
- package/dist/es6/mdx/style-props/examples/FlexItem.js +2 -13
- package/dist/es6/mdx/style-props/examples/Grid.d.ts +1 -2
- package/dist/es6/mdx/style-props/examples/Grid.d.ts.map +1 -1
- package/dist/es6/mdx/style-props/examples/Grid.js +2 -6
- package/dist/es6/mdx/style-props/examples/GridItem.d.ts +1 -2
- package/dist/es6/mdx/style-props/examples/GridItem.d.ts.map +1 -1
- package/dist/es6/mdx/style-props/examples/GridItem.js +2 -6
- package/dist/es6/mdx/style-props/examples/Layout.d.ts +1 -2
- package/dist/es6/mdx/style-props/examples/Layout.d.ts.map +1 -1
- package/dist/es6/mdx/style-props/examples/Layout.js +2 -5
- package/dist/es6/mdx/style-props/examples/Other.d.ts +1 -2
- package/dist/es6/mdx/style-props/examples/Other.d.ts.map +1 -1
- package/dist/es6/mdx/style-props/examples/Other.js +2 -5
- package/dist/es6/mdx/style-props/examples/Position.d.ts +1 -2
- package/dist/es6/mdx/style-props/examples/Position.d.ts.map +1 -1
- package/dist/es6/mdx/style-props/examples/Position.js +2 -5
- package/dist/es6/mdx/style-props/examples/Space.d.ts +1 -2
- package/dist/es6/mdx/style-props/examples/Space.d.ts.map +1 -1
- package/dist/es6/mdx/style-props/examples/Space.js +2 -8
- package/dist/es6/mdx/style-props/examples/Text.d.ts +1 -2
- package/dist/es6/mdx/style-props/examples/Text.d.ts.map +1 -1
- package/dist/es6/mdx/style-props/examples/Text.js +2 -5
- package/dist/es6/mdx/versionsTable.d.ts +1 -2
- package/dist/es6/mdx/versionsTable.d.ts.map +1 -1
- package/dist/es6/mdx/versionsTable.js +23 -49
- package/dist/es6/mdx/welcomePage.d.ts +1 -2
- package/dist/es6/mdx/welcomePage.d.ts.map +1 -1
- package/dist/es6/mdx/welcomePage.js +37 -49
- package/dist/mdx/12.0-UPGRADE-GUIDE.mdx +1 -1
- package/dist/mdx/13.0-UPGRADE-GUIDE.mdx +454 -0
- package/dist/mdx/CODEMODS.mdx +58 -0
- package/dist/mdx/CONTRIBUTING.mdx +8 -0
- package/dist/mdx/TESTING.mdx +34 -0
- package/dist/mdx/preview-react/_examples/mdx/{Forms.mdx → FormLibraryExample.mdx} +0 -2
- package/dist/mdx/preview-react/{InformationHighlight → information-highlight}/examples/Basic.tsx +1 -1
- package/dist/mdx/preview-react/{InformationHighlight → information-highlight}/examples/Body.tsx +1 -1
- package/dist/mdx/preview-react/{InformationHighlight → information-highlight}/examples/Caution.tsx +1 -2
- package/dist/mdx/preview-react/{InformationHighlight → information-highlight}/examples/Critical.tsx +5 -12
- package/dist/mdx/preview-react/{InformationHighlight → information-highlight}/examples/CustomIconCritical.tsx +1 -1
- package/dist/mdx/preview-react/{InformationHighlight → information-highlight}/examples/Heading.tsx +1 -1
- package/dist/mdx/preview-react/information-highlight/examples/Informational.tsx +55 -0
- package/dist/mdx/preview-react/{InformationHighlight → information-highlight}/examples/RTL.tsx +1 -1
- package/dist/mdx/preview-react/loading-sparkles/examples/Basic.tsx +2 -2
- package/dist/mdx/preview-react/multi-select/examples/Basic.tsx +1 -1
- package/dist/mdx/preview-react/multi-select/examples/Complex.tsx +1 -1
- package/dist/mdx/preview-react/multi-select/examples/Controlled.tsx +1 -1
- package/dist/mdx/preview-react/multi-select/examples/Icons.tsx +1 -1
- package/dist/mdx/preview-react/multi-select/examples/Searching.tsx +1 -1
- package/dist/mdx/preview-react/pill/Pill.mdx +18 -9
- package/dist/mdx/preview-react/pill/examples/Basic.tsx +14 -8
- package/dist/mdx/preview-react/pill/examples/CustomStyles.tsx +45 -0
- package/dist/mdx/preview-react/pill/examples/WithAvatar.tsx +16 -10
- package/dist/mdx/preview-react/pill/examples/WithCount.tsx +12 -6
- package/dist/mdx/preview-react/pill/examples/WithList.tsx +15 -5
- package/dist/mdx/preview-react/pill/examples/WithReadOnly.tsx +8 -5
- package/dist/mdx/preview-react/pill/examples/WithRemovable.tsx +23 -11
- package/dist/mdx/preview-react/segmented-control/examples/Disabled.tsx +0 -1
- package/dist/mdx/preview-react/segmented-control/examples/RTL.tsx +0 -1
- package/dist/mdx/preview-react/segmented-control/examples/Vertical.tsx +0 -1
- package/dist/mdx/preview-react/select/examples/Left Label/DefaultWithCustomOptionsLeft.tsx +1 -1
- package/dist/mdx/preview-react/select/examples/Left Label/DefaultWithSimpleOptionsLeft.tsx +1 -1
- package/dist/mdx/preview-react/select/examples/Top Label/Alert.tsx +0 -2
- package/dist/mdx/preview-react/select/examples/Top Label/Default.tsx +0 -2
- package/dist/mdx/preview-react/select/examples/Top Label/DefaultWithCustomOptions.tsx +0 -2
- package/dist/mdx/preview-react/select/examples/Top Label/DefaultWithSimpleOptions.tsx +0 -2
- package/dist/mdx/preview-react/select/examples/Top Label/Disabled.tsx +0 -2
- package/dist/mdx/preview-react/select/examples/Top Label/Error.tsx +0 -2
- package/dist/mdx/preview-react/select/examples/Top Label/Grow.tsx +0 -2
- package/dist/mdx/preview-react/select/examples/Top Label/Scrollable.tsx +0 -2
- package/dist/mdx/preview-react/select/examples/storiesData.tsx +0 -1
- package/dist/mdx/preview-react/side-panel/SidePanel.mdx +28 -3
- package/dist/mdx/preview-react/side-panel/examples/AlwaysOpen.tsx +36 -17
- package/dist/mdx/preview-react/side-panel/examples/Basic.tsx +40 -34
- package/dist/mdx/preview-react/side-panel/examples/ExternalControl.tsx +47 -23
- package/dist/mdx/preview-react/side-panel/examples/HiddenName.tsx +24 -5
- package/dist/mdx/preview-react/side-panel/examples/OnExpandedChange.tsx +22 -6
- package/dist/mdx/preview-react/side-panel/examples/OnStateTransition.tsx +24 -9
- package/dist/mdx/preview-react/side-panel/examples/RightOrigin.tsx +39 -40
- package/dist/mdx/preview-react/side-panel/examples/Variant.tsx +36 -36
- package/dist/mdx/preview-react/text-area/examples/Alert.tsx +1 -4
- package/dist/mdx/preview-react/text-input/examples/Alert.tsx +1 -4
- package/dist/mdx/preview-react/text-input/examples/ThemedAlert.tsx +1 -4
- package/dist/mdx/react/_examples/Tooltips.mdx +15 -0
- package/dist/mdx/react/_examples/examples/Tooltips/ListOfUploadedFiles.tsx +38 -0
- package/dist/mdx/react/_examples/mdx/SidePanel.mdx +18 -1
- package/dist/mdx/react/_examples/mdx/examples/GlobalHeader.tsx +1 -1
- package/dist/mdx/react/_examples/mdx/examples/SidePanelWithNavigation.tsx +154 -116
- package/dist/mdx/react/_examples/mdx/examples/SidePanelWithOverlay.tsx +33 -15
- package/dist/mdx/react/_examples/mdx/examples/Table/WithSelectableRows.tsx +1 -1
- package/dist/mdx/react/action-bar/examples/Basic.tsx +0 -1
- package/dist/mdx/react/action-bar/examples/DeleteAction.tsx +0 -2
- package/dist/mdx/react/action-bar/examples/Icons.tsx +0 -2
- package/dist/mdx/react/avatar/avatar/examples/Basic.tsx +2 -3
- package/dist/mdx/react/avatar/avatar/examples/Button.tsx +3 -4
- package/dist/mdx/react/avatar/avatar/examples/CustomStyles.tsx +2 -3
- package/dist/mdx/react/avatar/avatar/examples/Image.tsx +7 -8
- package/dist/mdx/react/avatar/avatar/examples/LazyLoad.tsx +7 -2
- package/dist/mdx/react/avatar/avatar/examples/ObjectFit.tsx +9 -4
- package/dist/mdx/react/avatar/avatar/examples/Size.tsx +10 -11
- package/dist/mdx/react/avatar/avatar/examples/Variant.tsx +2 -3
- package/dist/mdx/react/banner/examples/Error.tsx +0 -2
- package/dist/mdx/react/banner/examples/Sticky.tsx +0 -1
- package/dist/mdx/react/banner/examples/StickyAnimation.tsx +42 -26
- package/dist/mdx/react/breadcrumbs/examples/Basic.tsx +0 -1
- package/dist/mdx/react/button/button/Button.mdx +11 -0
- package/dist/mdx/react/button/button/examples/CustomStyles.tsx +1 -3
- package/dist/mdx/react/button/button/examples/Delete.tsx +0 -2
- package/dist/mdx/react/button/button/examples/ExternalHyperlink.tsx +3 -3
- package/dist/mdx/react/button/button/examples/ExternalHyperlinkInverse.tsx +5 -1
- package/dist/mdx/react/button/button/examples/Hyperlink.tsx +0 -2
- package/dist/mdx/react/button/button/examples/Primary.tsx +0 -2
- package/dist/mdx/react/button/button/examples/ThemeOverrides.tsx +70 -0
- package/dist/mdx/react/collection/mdx/examples/MultiSelection.tsx +2 -1
- package/dist/mdx/react/collection/mdx/examples/Selection.tsx +2 -1
- package/dist/mdx/react/color-picker/color-preview/examples/Basic.tsx +0 -1
- package/dist/mdx/react/dialog/examples/DialogWithFallbackPlacements.tsx +0 -1
- package/dist/mdx/{labs-react → react}/expandable/Expandable.mdx +2 -2
- package/dist/mdx/{labs-react → react}/expandable/examples/Avatar.tsx +5 -7
- package/dist/mdx/{labs-react → react}/expandable/examples/Depth.tsx +1 -4
- package/dist/mdx/{labs-react → react}/expandable/examples/EndIcon.tsx +1 -3
- package/dist/mdx/{labs-react → react}/expandable/examples/HoistedModel.tsx +1 -1
- package/dist/mdx/{labs-react → react}/expandable/examples/LongTitle.tsx +2 -4
- package/dist/mdx/{labs-react → react}/expandable/examples/RTL.tsx +1 -3
- package/dist/mdx/{labs-react → react}/expandable/examples/StartIcon.tsx +1 -3
- package/dist/mdx/react/menu/Menu.mdx +34 -0
- package/dist/mdx/react/menu/examples/Grouping.tsx +32 -0
- package/dist/mdx/react/menu/examples/Icons.tsx +1 -1
- package/dist/mdx/react/menu/examples/Nested.tsx +49 -0
- package/dist/mdx/react/menu/examples/NestedDynamic.tsx +105 -0
- package/dist/mdx/react/modal/examples/Basic.tsx +0 -2
- package/dist/mdx/react/modal/examples/IframeTest.tsx +0 -1
- package/dist/mdx/react/modal/examples/ModalWithPopup.tsx +0 -1
- package/dist/mdx/react/modal/examples/StackedModals.tsx +0 -1
- package/dist/mdx/react/pagination/examples/CustomRange.tsx +0 -1
- package/dist/mdx/react/pagination/examples/GoToForm.tsx +0 -1
- package/dist/mdx/react/pagination/examples/JumpControls.tsx +0 -1
- package/dist/mdx/react/popup/examples/Basic.tsx +0 -2
- package/dist/mdx/react/popup/examples/CloseOnTargetHiddenTest.tsx +0 -1
- package/dist/mdx/react/popup/examples/ComboboxWithinPopup.tsx +0 -1
- package/dist/mdx/react/popup/examples/MultiplePopups.tsx +0 -2
- package/dist/mdx/react/popup/examples/PopupWithFallbackPlacements.tsx +0 -1
- package/dist/mdx/react/popup/examples/PopupWithNonHidablePopup.tsx +0 -1
- package/dist/mdx/react/popup/examples/ReturnFocusTest.tsx +8 -6
- package/dist/mdx/react/popup/examples/TooltipReturnFocus.tsx +0 -1
- package/dist/mdx/react/select/examples/Basic.tsx +1 -0
- package/dist/mdx/react/select/examples/MenuHeight.tsx +0 -1
- package/dist/mdx/react/table/Table.mdx +14 -1
- package/dist/mdx/react/table/examples/BaseHtmlTable.tsx +46 -0
- package/dist/mdx/react/tabs/examples/Basic.tsx +0 -1
- package/dist/mdx/react/tabs/examples/DisabledTab.tsx +0 -1
- package/dist/mdx/react/tabs/examples/DynamicTabs.tsx +3 -2
- package/dist/mdx/react/tabs/examples/NamedTabs.tsx +0 -1
- package/dist/mdx/react/tabs/examples/RightToLeft.tsx +0 -1
- package/dist/mdx/react/text-input/examples/Basic.tsx +0 -3
- package/dist/mdx/react/toast/examples/Basic.tsx +0 -2
- package/dist/mdx/react/toast/examples/ToastAlert.tsx +0 -2
- package/dist/mdx/react/toast/examples/ToastDialog.tsx +0 -2
- package/dist/mdx/react/tokens/Tokens.mdx +1 -1
- package/dist/mdx/react/tooltip/Tooltip.mdx +31 -1
- package/dist/mdx/react/tooltip/examples/Default.tsx +0 -2
- package/dist/mdx/react/tooltip/examples/DescribeType.tsx +0 -2
- package/dist/mdx/react/tooltip/examples/DescriptionType.tsx +20 -0
- package/dist/mdx/react/tooltip/examples/Muted.tsx +0 -2
- package/dist/mdx/react/tooltip/examples/Placements.tsx +14 -11
- package/dist/mdx/style-props/examples/Background.tsx +2 -3
- package/dist/mdx/style-props/examples/Border.tsx +2 -3
- package/dist/mdx/style-props/examples/Color.tsx +2 -3
- package/dist/mdx/style-props/examples/Depth.tsx +2 -3
- package/dist/mdx/style-props/examples/Flex.tsx +0 -1
- package/dist/mdx/style-props/examples/FlexItem.tsx +0 -1
- package/dist/mdx/style-props/examples/Grid.tsx +0 -1
- package/dist/mdx/style-props/examples/GridItem.tsx +0 -1
- package/dist/mdx/style-props/examples/Layout.tsx +0 -1
- package/dist/mdx/style-props/examples/Other.tsx +0 -1
- package/dist/mdx/style-props/examples/Position.tsx +2 -3
- package/dist/mdx/style-props/examples/Space.tsx +2 -3
- package/dist/mdx/style-props/examples/Text.tsx +0 -1
- package/lib/ExampleCodeBlock.tsx +57 -19
- package/lib/MDXElements.tsx +3 -3
- package/lib/StylePropsTable.tsx +1 -2
- package/lib/Table.tsx +0 -1
- package/lib/stackblitzFiles/.eslintrc.cjs.txt +15 -0
- package/lib/stackblitzFiles/App.tsx +33 -0
- package/lib/stackblitzFiles/Demo.tsx +1 -0
- package/lib/stackblitzFiles/index.html +13 -0
- package/lib/stackblitzFiles/main.tsx +27 -0
- package/lib/stackblitzFiles/packageJSONFile.ts +42 -0
- package/lib/stackblitzFiles/tsconfig.json +26 -0
- package/lib/stackblitzFiles/tsconfig.node.json +12 -0
- package/lib/stackblitzFiles/types/custom-imports.d.ts +13 -0
- package/lib/stackblitzFiles/vite-env.d.ts +1 -0
- package/lib/stackblitzFiles/vite.config.ts +10 -0
- package/lib/widgets/array.tsx +0 -2
- package/lib/widgets/canvasColor.tsx +0 -2
- package/lib/widgets/component.tsx +0 -2
- package/lib/widgets/conditional.tsx +0 -2
- package/lib/widgets/enhancedComponent.tsx +1 -1
- package/lib/widgets/external.tsx +3 -2
- package/lib/widgets/model.tsx +0 -2
- package/lib/widgets/parenthesis.tsx +0 -2
- package/lib/widgets/primitives.tsx +1 -5
- package/lib/widgets/qualifiedName.tsx +0 -2
- package/lib/widgets/symbol.tsx +0 -2
- package/lib/widgets/tuple.tsx +0 -2
- package/lib/widgets/typeParameter.tsx +0 -2
- package/package.json +8 -7
- package/dist/mdx/preview-react/InformationHighlight/examples/Informational.tsx +0 -27
- /package/dist/mdx/preview-react/{InformationHighlight → information-highlight}/InformationHighlight.mdx +0 -0
- /package/dist/mdx/{labs-react → react}/expandable/examples/test-avatar.png +0 -0
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import {Box} from '@workday/canvas-kit-react/layout';
|
|
3
2
|
|
|
4
3
|
const baseStyles = {
|
|
@@ -11,7 +10,7 @@ const baseStyles = {
|
|
|
11
10
|
|
|
12
11
|
export default () => {
|
|
13
12
|
return (
|
|
14
|
-
|
|
13
|
+
<div>
|
|
15
14
|
<Box
|
|
16
15
|
backgroundColor="cinnamon300"
|
|
17
16
|
left={0}
|
|
@@ -45,6 +44,6 @@ export default () => {
|
|
|
45
44
|
>
|
|
46
45
|
Right
|
|
47
46
|
</Box>
|
|
48
|
-
|
|
47
|
+
</div>
|
|
49
48
|
);
|
|
50
49
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import {Box} from '@workday/canvas-kit-react/layout';
|
|
3
2
|
|
|
4
3
|
const baseStyles = {
|
|
@@ -9,7 +8,7 @@ const baseStyles = {
|
|
|
9
8
|
};
|
|
10
9
|
|
|
11
10
|
export default () => (
|
|
12
|
-
|
|
11
|
+
<div>
|
|
13
12
|
<Box backgroundColor="cinnamon300" margin="xxs" padding="s" textAlign="center" {...baseStyles}>
|
|
14
13
|
<Box border="dotted 2px" borderColor="blackPepper500">
|
|
15
14
|
Small
|
|
@@ -25,5 +24,5 @@ export default () => (
|
|
|
25
24
|
Large
|
|
26
25
|
</Box>
|
|
27
26
|
</Box>
|
|
28
|
-
|
|
27
|
+
</div>
|
|
29
28
|
);
|
package/lib/ExampleCodeBlock.tsx
CHANGED
|
@@ -7,7 +7,17 @@ import {calc, createStencil, cssVar, px2rem} from '@workday/canvas-kit-styling';
|
|
|
7
7
|
import {system} from '@workday/canvas-tokens-web';
|
|
8
8
|
import {vscDarkPlus} from 'react-syntax-highlighter/dist/cjs/styles/prism';
|
|
9
9
|
import {checkCircleIcon, copyIcon} from '@workday/canvas-system-icons-web';
|
|
10
|
-
import {Tooltip} from '@workday/canvas-kit-react';
|
|
10
|
+
import {Tooltip} from '@workday/canvas-kit-react/tooltip';
|
|
11
|
+
import sdk from '@stackblitz/sdk';
|
|
12
|
+
import tsconfigFile from '!!raw-loader!./stackblitzFiles/tsconfig.json';
|
|
13
|
+
import {packageJSONFile} from './stackblitzFiles/packageJSONFile';
|
|
14
|
+
import indexHTMLFile from '!!raw-loader!./stackblitzFiles/index.html';
|
|
15
|
+
import mainFile from '!!raw-loader!./stackblitzFiles/main.tsx';
|
|
16
|
+
import viteConfigFile from '!!raw-loader!./stackblitzFiles/vite.config.ts';
|
|
17
|
+
import eslintrc from '!!raw-loader!./stackblitzFiles/.eslintrc.cjs.txt';
|
|
18
|
+
import tsconfigNodeFile from '!!raw-loader!./stackblitzFiles/tsconfig.node.json';
|
|
19
|
+
import appFile from '!!raw-loader!./stackblitzFiles/App.tsx';
|
|
20
|
+
import viteEnvFile from '!!raw-loader!./stackblitzFiles/vite-env.d.ts';
|
|
11
21
|
|
|
12
22
|
const cardStencil = createStencil({
|
|
13
23
|
base: {
|
|
@@ -21,10 +31,12 @@ const cardStencil = createStencil({
|
|
|
21
31
|
boxShadow: system.depth[1],
|
|
22
32
|
borderRadius: system.shape.x1,
|
|
23
33
|
},
|
|
24
|
-
'[data-part="code-toggle-btn"]': {
|
|
34
|
+
'[data-part="code-toggle-stackblitz-btn-container"]': {
|
|
25
35
|
position: 'absolute',
|
|
26
36
|
right: calc.negate(px2rem(1)),
|
|
27
37
|
bottom: calc.negate(px2rem(1)),
|
|
38
|
+
display: 'flex',
|
|
39
|
+
gap: system.space.x2,
|
|
28
40
|
},
|
|
29
41
|
'[data-part="copy-btn"]': {
|
|
30
42
|
position: 'absolute',
|
|
@@ -70,17 +82,42 @@ export const ExampleCodeBlock = ({code}: any) => {
|
|
|
70
82
|
navigator.clipboard.writeText(textInput.current.textContent);
|
|
71
83
|
};
|
|
72
84
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
85
|
+
/**
|
|
86
|
+
* `code` returns our examples. We need to rewrite them so that they export `Demo`.
|
|
87
|
+
*/
|
|
88
|
+
const handleExampleRewrite = (code: any) => {
|
|
89
|
+
return code
|
|
90
|
+
.replace(/\bexport\s+const\s+(\w+)\s*=/, `export const Demo =`)
|
|
91
|
+
.replace(/export default/, 'export const Demo =');
|
|
92
|
+
};
|
|
78
93
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
94
|
+
const openProjectInStackblitz = () => {
|
|
95
|
+
sdk.openProject(
|
|
96
|
+
{
|
|
97
|
+
files: {
|
|
98
|
+
'src/Demo.tsx': handleExampleRewrite(code.__RAW__),
|
|
99
|
+
'src/vite-env-d.ts': viteEnvFile,
|
|
100
|
+
'src/App.tsx': appFile,
|
|
101
|
+
'tsconfig.node.json': tsconfigNodeFile,
|
|
102
|
+
'.eslintrc.js': eslintrc,
|
|
103
|
+
'vite.config.ts': viteConfigFile,
|
|
104
|
+
'src/main.tsx': mainFile,
|
|
105
|
+
'index.html': indexHTMLFile,
|
|
106
|
+
'tsconfig.json': tsconfigFile,
|
|
107
|
+
'package.json': packageJSONFile,
|
|
108
|
+
},
|
|
109
|
+
template: 'node',
|
|
110
|
+
title: `Demo`,
|
|
111
|
+
description: `This is a Canvas Kit Demo. Edit and play around!`,
|
|
112
|
+
},
|
|
113
|
+
|
|
114
|
+
// Options
|
|
115
|
+
{
|
|
116
|
+
newWindow: true,
|
|
117
|
+
openFile: 'src/Demo.tsx',
|
|
118
|
+
}
|
|
119
|
+
);
|
|
120
|
+
};
|
|
84
121
|
|
|
85
122
|
return (
|
|
86
123
|
<div {...cardStencil({opened: isCodeDisplayed})}>
|
|
@@ -88,13 +125,14 @@ export const ExampleCodeBlock = ({code}: any) => {
|
|
|
88
125
|
<Card.Body>
|
|
89
126
|
{React.createElement(code)}
|
|
90
127
|
{code && (
|
|
91
|
-
<
|
|
92
|
-
size="extraSmall"
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
128
|
+
<div data-part="code-toggle-stackblitz-btn-container">
|
|
129
|
+
<TertiaryButton size="extraSmall" onClick={() => openProjectInStackblitz()}>
|
|
130
|
+
⚡️ Edit in Stackblitz
|
|
131
|
+
</TertiaryButton>
|
|
132
|
+
<TertiaryButton size="extraSmall" onClick={() => setCodeDisplayed(!isCodeDisplayed)}>
|
|
133
|
+
{!isCodeDisplayed ? 'Show Code' : 'Hide Code'}
|
|
134
|
+
</TertiaryButton>
|
|
135
|
+
</div>
|
|
98
136
|
)}
|
|
99
137
|
</Card.Body>
|
|
100
138
|
</Card>
|
package/lib/MDXElements.tsx
CHANGED
|
@@ -25,7 +25,7 @@ export const MDX = createComponent('div')({
|
|
|
25
25
|
*/
|
|
26
26
|
const Button = (props: any) => {
|
|
27
27
|
const components = useMDXComponents();
|
|
28
|
-
if (props['data-symbol'] !== undefined) {
|
|
28
|
+
if (props['data-symbol'] !== undefined && props.children) {
|
|
29
29
|
return (
|
|
30
30
|
<code>
|
|
31
31
|
<SymbolDialog
|
|
@@ -49,8 +49,8 @@ const Button = (props: any) => {
|
|
|
49
49
|
function convertLinkToSymbolLinks(input: string): string {
|
|
50
50
|
return input.replace(
|
|
51
51
|
/{@link ([a-z0-9.]+)( [a-z0-9.]+)?}/gi,
|
|
52
|
-
(
|
|
53
|
-
`<button
|
|
52
|
+
(_substr, symbol, text = '') =>
|
|
53
|
+
`<button data-symbol="${text.trim()}" className="token symbol">${symbol}</button>`
|
|
54
54
|
);
|
|
55
55
|
}
|
|
56
56
|
|
package/lib/StylePropsTable.tsx
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import {Box} from '@workday/canvas-kit-react/layout';
|
|
3
2
|
import {ExternalHyperlink} from '@workday/canvas-kit-react';
|
|
4
3
|
import {Table} from './Table';
|
|
@@ -38,7 +37,7 @@ export const StylePropsTable = ({styleProps = []}: StylePropsTableProps) => {
|
|
|
38
37
|
const mdnUrl = `https://developer.mozilla.org/en-US/docs/Web/CSS/${formattedName}`;
|
|
39
38
|
return (
|
|
40
39
|
<Box display="inline-block" marginInlineEnd="xxxs">
|
|
41
|
-
<ExternalHyperlink href={mdnUrl} key={i}>
|
|
40
|
+
<ExternalHyperlink href={mdnUrl} key={i} iconLabel="Open link in new window">
|
|
42
41
|
{formattedName}
|
|
43
42
|
</ExternalHyperlink>
|
|
44
43
|
</Box>
|
package/lib/Table.tsx
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
root: true,
|
|
3
|
+
env: {browser: true, es2020: true},
|
|
4
|
+
extends: [
|
|
5
|
+
'eslint:recommended',
|
|
6
|
+
'plugin:@typescript-eslint/recommended',
|
|
7
|
+
'plugin:react-hooks/recommended',
|
|
8
|
+
],
|
|
9
|
+
ignorePatterns: ['dist', '.eslintrc.cjs'],
|
|
10
|
+
parser: '@typescript-eslint/parser',
|
|
11
|
+
plugins: ['react-refresh'],
|
|
12
|
+
rules: {
|
|
13
|
+
'react-refresh/only-export-components': ['warn', {allowConstantExport: true}],
|
|
14
|
+
},
|
|
15
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CanvasProvider,
|
|
3
|
+
ContentDirection,
|
|
4
|
+
PartialEmotionCanvasTheme,
|
|
5
|
+
useTheme,
|
|
6
|
+
} from '@workday/canvas-kit-react/common';
|
|
7
|
+
import {createStyles} from '@workday/canvas-kit-styling';
|
|
8
|
+
|
|
9
|
+
import {Demo} from './Demo';
|
|
10
|
+
import {system} from '@workday/canvas-tokens-web';
|
|
11
|
+
|
|
12
|
+
const mainContentStyles = createStyles({
|
|
13
|
+
padding: system.space.x4,
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
export const App = () => {
|
|
17
|
+
// useTheme is filling in the Canvas theme object if any keys are missing
|
|
18
|
+
const canvasTheme: PartialEmotionCanvasTheme = useTheme({
|
|
19
|
+
canvas: {
|
|
20
|
+
direction: ContentDirection.LTR,
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
return (
|
|
25
|
+
<CanvasProvider theme={canvasTheme}>
|
|
26
|
+
<>
|
|
27
|
+
<main className={mainContentStyles}>
|
|
28
|
+
<Demo />
|
|
29
|
+
</main>
|
|
30
|
+
</>
|
|
31
|
+
</CanvasProvider>
|
|
32
|
+
);
|
|
33
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const Demo = ({}) => <div></div>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<title>Vite + React + TS</title>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<div id="root"></div>
|
|
11
|
+
<script type="module" src="/src/main.tsx"></script>
|
|
12
|
+
</body>
|
|
13
|
+
</html>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import {createRoot} from 'react-dom/client';
|
|
2
|
+
import {fonts} from '@workday/canvas-kit-react-fonts';
|
|
3
|
+
import {system} from '@workday/canvas-tokens-web';
|
|
4
|
+
import {cssVar, injectGlobal} from '@workday/canvas-kit-styling';
|
|
5
|
+
import {App} from './App';
|
|
6
|
+
|
|
7
|
+
import '@workday/canvas-tokens-web/css/base/_variables.css';
|
|
8
|
+
import '@workday/canvas-tokens-web/css/brand/_variables.css';
|
|
9
|
+
import '@workday/canvas-tokens-web/css/system/_variables.css';
|
|
10
|
+
|
|
11
|
+
//@ts-ignore
|
|
12
|
+
injectGlobal({
|
|
13
|
+
...fonts,
|
|
14
|
+
'html, body': {
|
|
15
|
+
fontFamily: cssVar(system.fontFamily.default),
|
|
16
|
+
margin: 0,
|
|
17
|
+
minHeight: '100vh',
|
|
18
|
+
},
|
|
19
|
+
'#root, #root < div': {
|
|
20
|
+
minHeight: '100vh',
|
|
21
|
+
...system.type.body.small,
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
const container = document.getElementById('root')!;
|
|
26
|
+
const root = createRoot(container);
|
|
27
|
+
root.render(<App />);
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// @ts-ignore: Cannot find module error
|
|
2
|
+
import {version} from '../../../../lerna.json';
|
|
3
|
+
export const packageJSONFile = `{
|
|
4
|
+
"name": "vite-react-typescript-starter",
|
|
5
|
+
"private": true,
|
|
6
|
+
"version": "0.0.0",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"dev": "vite",
|
|
10
|
+
"build": "tsc && vite build",
|
|
11
|
+
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
12
|
+
"preview": "vite preview"
|
|
13
|
+
},
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"react": "^18.2.0",
|
|
16
|
+
"react-dom": "^18.2.0",
|
|
17
|
+
"@emotion/css": "11.11.2",
|
|
18
|
+
"@emotion/react": "11.11.4",
|
|
19
|
+
"@types/react": "18.2.60",
|
|
20
|
+
"@types/react-dom": "18.2.19",
|
|
21
|
+
"@workday/canvas-kit-labs-react": "${version}",
|
|
22
|
+
"@workday/canvas-kit-preview-react": "${version}",
|
|
23
|
+
"@workday/canvas-kit-react": "${version}",
|
|
24
|
+
"@workday/canvas-kit-react-fonts": "^${version}",
|
|
25
|
+
"@workday/canvas-kit-styling": "${version}",
|
|
26
|
+
"@workday/canvas-system-icons-web": "3.0.22",
|
|
27
|
+
"@workday/canvas-tokens-web": "2.0.0"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@types/react": "^18.2.59",
|
|
31
|
+
"@types/react-dom": "^18.2.19",
|
|
32
|
+
"@typescript-eslint/eslint-plugin": "^7.1.0",
|
|
33
|
+
"@typescript-eslint/parser": "^7.1.0",
|
|
34
|
+
"@vitejs/plugin-react": "^4.2.1",
|
|
35
|
+
"eslint": "^8.57.0",
|
|
36
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
37
|
+
"eslint-plugin-react-refresh": "^0.4.5",
|
|
38
|
+
"typescript": "^5.2.2",
|
|
39
|
+
"vite": "^5.1.4"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
`;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2020",
|
|
4
|
+
"useDefineForClassFields": true,
|
|
5
|
+
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
6
|
+
"module": "ESNext",
|
|
7
|
+
"skipLibCheck": true,
|
|
8
|
+
|
|
9
|
+
/* Bundler mode */
|
|
10
|
+
"moduleResolution": "bundler",
|
|
11
|
+
"allowImportingTsExtensions": true,
|
|
12
|
+
"resolveJsonModule": true,
|
|
13
|
+
"isolatedModules": true,
|
|
14
|
+
"noEmit": true,
|
|
15
|
+
"jsx": "react-jsx",
|
|
16
|
+
"types": ["vite-env"],
|
|
17
|
+
|
|
18
|
+
/* Linting */
|
|
19
|
+
"strict": true,
|
|
20
|
+
"noUnusedLocals": true,
|
|
21
|
+
"noUnusedParameters": true,
|
|
22
|
+
"noFallthroughCasesInSwitch": true
|
|
23
|
+
},
|
|
24
|
+
"include": ["src"],
|
|
25
|
+
"references": [{ "path": "./tsconfig.node.json" }]
|
|
26
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare module '!!raw-loader!*' {
|
|
2
|
+
const content: string;
|
|
3
|
+
export default content;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
declare module 'vite' {
|
|
7
|
+
export function defineConfig(config: any): any;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
declare module '@vitejs/plugin-react' {
|
|
11
|
+
const react: any;
|
|
12
|
+
export default react;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="vite/client" />`
|
package/lib/widgets/array.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import {Expandable} from '@workday/canvas-kit-
|
|
3
|
+
import {Expandable} from '@workday/canvas-kit-react/expandable';
|
|
4
4
|
|
|
5
5
|
import {defaultJSDoc} from '../../docgen/docParser';
|
|
6
6
|
import {EnhancedComponentValue} from '../../docgen/plugins/customTypes';
|
package/lib/widgets/external.tsx
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import {ExternalHyperlink} from '@workday/canvas-kit-react/button';
|
|
3
2
|
|
|
4
3
|
import {renderTypeParameters} from '../widgetUtils';
|
|
@@ -8,7 +7,9 @@ import {registerWidget} from '../Value';
|
|
|
8
7
|
|
|
9
8
|
registerWidget<ExternalSymbolValue>('external', ({value}) => (
|
|
10
9
|
<>
|
|
11
|
-
<ExternalHyperlink href={value.url}>
|
|
10
|
+
<ExternalHyperlink href={value.url} iconLabel="Open link in new window">
|
|
11
|
+
{value.name}
|
|
12
|
+
</ExternalHyperlink>
|
|
12
13
|
{renderTypeParameters(value.typeParameters)}
|
|
13
14
|
</>
|
|
14
15
|
));
|
package/lib/widgets/model.tsx
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
1
|
import {registerWidget, Value} from '../Value';
|
|
4
2
|
import {
|
|
5
3
|
BooleanLiteralValue,
|
|
@@ -40,9 +38,7 @@ registerWidget<TypeValue>('type', ({value, doc}) => {
|
|
|
40
38
|
<>
|
|
41
39
|
<span className="token keyword">type</span>{' '}
|
|
42
40
|
<span className="token symbol">{doc?.name || 'unknown'}</span>
|
|
43
|
-
{renderTypeParameters(
|
|
44
|
-
value.typeParameters
|
|
45
|
-
)} <span className="token operator">=</span>{' '}
|
|
41
|
+
{renderTypeParameters(value.typeParameters)} <span className="token operator">=</span>{' '}
|
|
46
42
|
</>
|
|
47
43
|
)}
|
|
48
44
|
<Value value={value.value} />
|
package/lib/widgets/symbol.tsx
CHANGED
package/lib/widgets/tuple.tsx
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-docs",
|
|
3
|
-
"version": "13.0.0
|
|
3
|
+
"version": "13.0.0",
|
|
4
4
|
"description": "Documentation components of Canvas Kit components",
|
|
5
5
|
"author": "Workday, Inc. (https://www.workday.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -43,13 +43,14 @@
|
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@emotion/styled": "^11.6.0",
|
|
46
|
+
"@stackblitz/sdk": "^1.11.0",
|
|
46
47
|
"@storybook/csf": "0.0.1",
|
|
47
|
-
"@workday/canvas-kit-labs-react": "^13.0.0
|
|
48
|
-
"@workday/canvas-kit-preview-react": "^13.0.0
|
|
49
|
-
"@workday/canvas-kit-react": "^13.0.0
|
|
50
|
-
"@workday/canvas-kit-styling": "^13.0.0
|
|
48
|
+
"@workday/canvas-kit-labs-react": "^13.0.0",
|
|
49
|
+
"@workday/canvas-kit-preview-react": "^13.0.0",
|
|
50
|
+
"@workday/canvas-kit-react": "^13.0.0",
|
|
51
|
+
"@workday/canvas-kit-styling": "^13.0.0",
|
|
51
52
|
"@workday/canvas-system-icons-web": "^3.0.0",
|
|
52
|
-
"@workday/canvas-tokens-web": "^2.
|
|
53
|
+
"@workday/canvas-tokens-web": "^2.1.1",
|
|
53
54
|
"markdown-to-jsx": "^7.2.0",
|
|
54
55
|
"react-syntax-highlighter": "^15.5.0",
|
|
55
56
|
"ts-node": "^10.9.1"
|
|
@@ -60,5 +61,5 @@
|
|
|
60
61
|
"mkdirp": "^1.0.3",
|
|
61
62
|
"typescript": "5.0"
|
|
62
63
|
},
|
|
63
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "3cb203410f3b0b8b912e6ec84a846d3108e4958f"
|
|
64
65
|
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {Flex} from '@workday/canvas-kit-react/layout';
|
|
3
|
-
import {InformationHighlight} from '@workday/canvas-kit-preview-react/InformationHighlight';
|
|
4
|
-
import {system} from '@workday/canvas-tokens-web';
|
|
5
|
-
|
|
6
|
-
export default () => {
|
|
7
|
-
return (
|
|
8
|
-
<Flex flexDirection={'column'} gap={system.space.x2}>
|
|
9
|
-
<InformationHighlight variant={'informational'}>
|
|
10
|
-
<InformationHighlight.Icon />
|
|
11
|
-
<InformationHighlight.Heading> Informational Highlight </InformationHighlight.Heading>
|
|
12
|
-
<InformationHighlight.Body>
|
|
13
|
-
If you select the link below it will just reroute you back to this page
|
|
14
|
-
</InformationHighlight.Body>
|
|
15
|
-
<InformationHighlight.Link href="#hyperlink">View the Docs</InformationHighlight.Link>
|
|
16
|
-
</InformationHighlight>
|
|
17
|
-
<InformationHighlight variant={'informational'} emphasis={'high'}>
|
|
18
|
-
<InformationHighlight.Icon />
|
|
19
|
-
<InformationHighlight.Heading> Informational Highlight </InformationHighlight.Heading>
|
|
20
|
-
<InformationHighlight.Body>
|
|
21
|
-
If you select the link below it will just reroute you back to this page
|
|
22
|
-
</InformationHighlight.Body>
|
|
23
|
-
<InformationHighlight.Link href="#hyperlink">View the Docs</InformationHighlight.Link>
|
|
24
|
-
</InformationHighlight>
|
|
25
|
-
</Flex>
|
|
26
|
-
);
|
|
27
|
-
};
|
|
File without changes
|
|
File without changes
|