@workday/canvas-kit-labs-react 7.0.0-alpha.0-next.3 → 7.0.0-alpha.0-next.7
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/combobox/lib/Combobox.tsx +5 -3
- package/common/index.ts +0 -8
- package/dist/commonjs/combobox/index.js +12 -4
- package/dist/commonjs/combobox/lib/AutocompleteList.d.ts.map +1 -1
- package/dist/commonjs/combobox/lib/AutocompleteList.js +19 -7
- package/dist/commonjs/combobox/lib/Combobox.d.ts.map +1 -1
- package/dist/commonjs/combobox/lib/Combobox.js +27 -12
- package/dist/commonjs/combobox/lib/Status.d.ts.map +1 -1
- package/dist/commonjs/combobox/lib/Status.js +14 -2
- package/dist/commonjs/common/index.d.ts +0 -8
- package/dist/commonjs/common/index.d.ts.map +1 -1
- package/dist/commonjs/common/index.js +14 -7
- package/dist/commonjs/common/lib/storybook-utils/ComponentStatesTable.d.ts.map +1 -1
- package/dist/commonjs/common/lib/storybook-utils/ComponentStatesTable.js +3 -1
- package/dist/commonjs/common/lib/storybook-utils/permutateProps.d.ts.map +1 -1
- package/dist/commonjs/common/lib/storybook-utils/permutateProps.js +3 -1
- package/dist/commonjs/common/lib/theming/index.js +12 -5
- package/dist/commonjs/common/lib/theming/useThemeRTL.d.ts.map +1 -1
- package/dist/commonjs/common/lib/theming/useThemeRTL.js +1 -0
- package/dist/commonjs/common/lib/theming/useThemedRing.d.ts +1 -1
- package/dist/commonjs/common/lib/theming/useThemedRing.d.ts.map +1 -1
- package/dist/commonjs/common/lib/theming/useThemedRing.js +3 -1
- package/dist/commonjs/drawer/index.js +12 -4
- package/dist/commonjs/drawer/lib/Drawer.js +21 -8
- package/dist/commonjs/drawer/lib/DrawerHeader.js +20 -8
- package/dist/commonjs/index.d.ts +0 -2
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +14 -9
- package/dist/commonjs/search-form/index.js +12 -5
- package/dist/commonjs/search-form/lib/SearchForm.d.ts +3 -2
- package/dist/commonjs/search-form/lib/SearchForm.d.ts.map +1 -1
- package/dist/commonjs/search-form/lib/SearchForm.js +21 -8
- package/dist/commonjs/search-form/lib/themes.d.ts.map +1 -1
- package/dist/commonjs/search-form/lib/themes.js +1 -0
- package/dist/es6/combobox/lib/AutocompleteList.d.ts.map +1 -1
- package/dist/es6/combobox/lib/Combobox.d.ts.map +1 -1
- package/dist/es6/combobox/lib/Combobox.js +1 -1
- package/dist/es6/combobox/lib/Status.d.ts.map +1 -1
- package/dist/es6/common/index.d.ts +0 -8
- package/dist/es6/common/index.d.ts.map +1 -1
- package/dist/es6/common/index.js +0 -1
- package/dist/es6/common/lib/storybook-utils/ComponentStatesTable.d.ts.map +1 -1
- package/dist/es6/common/lib/storybook-utils/permutateProps.d.ts.map +1 -1
- package/dist/es6/common/lib/storybook-utils/propTypes.js +1 -0
- package/dist/es6/common/lib/theming/useThemeRTL.d.ts.map +1 -1
- package/dist/es6/common/lib/theming/useThemedRing.d.ts +1 -1
- package/dist/es6/common/lib/theming/useThemedRing.d.ts.map +1 -1
- package/dist/es6/drawer/lib/Drawer.js +1 -1
- package/dist/es6/drawer/lib/DrawerHeader.js +1 -1
- package/dist/es6/index.d.ts +0 -2
- package/dist/es6/index.d.ts.map +1 -1
- package/dist/es6/index.js +0 -2
- package/dist/es6/search-form/lib/SearchForm.d.ts +3 -2
- package/dist/es6/search-form/lib/SearchForm.d.ts.map +1 -1
- package/dist/es6/search-form/lib/SearchForm.js +1 -1
- package/dist/es6/search-form/lib/themes.d.ts.map +1 -1
- package/index.ts +0 -2
- package/package.json +6 -8
- package/search-form/lib/SearchForm.tsx +3 -3
- package/search-form/lib/themes.ts +2 -1
- package/ts3.5/dist/commonjs/common/index.d.ts +0 -8
- package/ts3.5/dist/commonjs/common/lib/theming/useThemedRing.d.ts +1 -1
- package/ts3.5/dist/commonjs/index.d.ts +0 -2
- package/ts3.5/dist/commonjs/search-form/lib/SearchForm.d.ts +3 -2
- package/ts3.5/dist/es6/common/index.d.ts +0 -8
- package/ts3.5/dist/es6/common/lib/theming/useThemedRing.d.ts +1 -1
- package/ts3.5/dist/es6/index.d.ts +0 -2
- package/ts3.5/dist/es6/search-form/lib/SearchForm.d.ts +3 -2
- package/common/lib/Box.tsx +0 -73
- package/common/lib/utils/border.ts +0 -263
- package/common/lib/utils/color.ts +0 -62
- package/common/lib/utils/depth.ts +0 -37
- package/common/lib/utils/flexItem.ts +0 -56
- package/common/lib/utils/layout.ts +0 -77
- package/common/lib/utils/other.ts +0 -20
- package/common/lib/utils/position.ts +0 -96
- package/common/lib/utils/space.ts +0 -207
- package/common/lib/utils/types.ts +0 -105
- package/dist/commonjs/common/lib/Box.d.ts +0 -31
- package/dist/commonjs/common/lib/Box.d.ts.map +0 -1
- package/dist/commonjs/common/lib/Box.js +0 -78
- package/dist/commonjs/common/lib/utils/border.d.ts +0 -103
- package/dist/commonjs/common/lib/utils/border.d.ts.map +0 -1
- package/dist/commonjs/common/lib/utils/border.js +0 -152
- package/dist/commonjs/common/lib/utils/color.d.ts +0 -26
- package/dist/commonjs/common/lib/utils/color.d.ts.map +0 -1
- package/dist/commonjs/common/lib/utils/color.js +0 -56
- package/dist/commonjs/common/lib/utils/depth.d.ts +0 -22
- package/dist/commonjs/common/lib/utils/depth.d.ts.map +0 -1
- package/dist/commonjs/common/lib/utils/depth.js +0 -28
- package/dist/commonjs/common/lib/utils/flexItem.d.ts +0 -33
- package/dist/commonjs/common/lib/utils/flexItem.d.ts.map +0 -1
- package/dist/commonjs/common/lib/utils/flexItem.js +0 -38
- package/dist/commonjs/common/lib/utils/layout.d.ts +0 -43
- package/dist/commonjs/common/lib/utils/layout.d.ts.map +0 -1
- package/dist/commonjs/common/lib/utils/layout.js +0 -42
- package/dist/commonjs/common/lib/utils/other.d.ts +0 -5
- package/dist/commonjs/common/lib/utils/other.d.ts.map +0 -1
- package/dist/commonjs/common/lib/utils/other.js +0 -18
- package/dist/commonjs/common/lib/utils/position.d.ts +0 -41
- package/dist/commonjs/common/lib/utils/position.d.ts.map +0 -1
- package/dist/commonjs/common/lib/utils/position.js +0 -77
- package/dist/commonjs/common/lib/utils/space.d.ts +0 -64
- package/dist/commonjs/common/lib/utils/space.d.ts.map +0 -1
- package/dist/commonjs/common/lib/utils/space.js +0 -160
- package/dist/commonjs/common/lib/utils/types.d.ts +0 -14
- package/dist/commonjs/common/lib/utils/types.d.ts.map +0 -1
- package/dist/commonjs/common/lib/utils/types.js +0 -2
- package/dist/commonjs/header/index.d.ts +0 -9
- package/dist/commonjs/header/index.d.ts.map +0 -1
- package/dist/commonjs/header/index.js +0 -16
- package/dist/commonjs/header/lib/GlobalHeader.d.ts +0 -38
- package/dist/commonjs/header/lib/GlobalHeader.d.ts.map +0 -1
- package/dist/commonjs/header/lib/GlobalHeader.js +0 -74
- package/dist/commonjs/header/lib/Header.d.ts +0 -76
- package/dist/commonjs/header/lib/Header.d.ts.map +0 -1
- package/dist/commonjs/header/lib/Header.js +0 -321
- package/dist/commonjs/header/lib/parts/DubLogoTitle.d.ts +0 -30
- package/dist/commonjs/header/lib/parts/DubLogoTitle.d.ts.map +0 -1
- package/dist/commonjs/header/lib/parts/DubLogoTitle.js +0 -105
- package/dist/commonjs/header/lib/parts/WorkdayLogoTitle.d.ts +0 -31
- package/dist/commonjs/header/lib/parts/WorkdayLogoTitle.d.ts.map +0 -1
- package/dist/commonjs/header/lib/parts/WorkdayLogoTitle.js +0 -124
- package/dist/commonjs/header/lib/parts/index.d.ts +0 -3
- package/dist/commonjs/header/lib/parts/index.d.ts.map +0 -1
- package/dist/commonjs/header/lib/parts/index.js +0 -6
- package/dist/commonjs/header/lib/shared/themes.d.ts +0 -43
- package/dist/commonjs/header/lib/shared/themes.d.ts.map +0 -1
- package/dist/commonjs/header/lib/shared/themes.js +0 -62
- package/dist/commonjs/header/lib/shared/types.d.ts +0 -15
- package/dist/commonjs/header/lib/shared/types.d.ts.map +0 -1
- package/dist/commonjs/header/lib/shared/types.js +0 -19
- package/dist/commonjs/layout/index.d.ts +0 -5
- package/dist/commonjs/layout/index.d.ts.map +0 -1
- package/dist/commonjs/layout/index.js +0 -7
- package/dist/commonjs/layout/lib/Flex.d.ts +0 -26
- package/dist/commonjs/layout/lib/Flex.d.ts.map +0 -1
- package/dist/commonjs/layout/lib/Flex.js +0 -70
- package/dist/commonjs/layout/lib/Stack.d.ts +0 -27
- package/dist/commonjs/layout/lib/Stack.d.ts.map +0 -1
- package/dist/commonjs/layout/lib/Stack.js +0 -86
- package/dist/commonjs/layout/lib/utils/flex.d.ts +0 -36
- package/dist/commonjs/layout/lib/utils/flex.d.ts.map +0 -1
- package/dist/commonjs/layout/lib/utils/flex.js +0 -37
- package/dist/commonjs/layout/lib/utils/getValidChildren.d.ts +0 -3
- package/dist/commonjs/layout/lib/utils/getValidChildren.d.ts.map +0 -1
- package/dist/commonjs/layout/lib/utils/getValidChildren.js +0 -16
- package/dist/commonjs/layout/lib/utils/stack.d.ts +0 -26
- package/dist/commonjs/layout/lib/utils/stack.d.ts.map +0 -1
- package/dist/commonjs/layout/lib/utils/stack.js +0 -54
- package/dist/commonjs/layout/lib/utils/types.d.ts +0 -8
- package/dist/commonjs/layout/lib/utils/types.d.ts.map +0 -1
- package/dist/commonjs/layout/lib/utils/types.js +0 -2
- package/dist/es6/common/lib/Box.d.ts +0 -31
- package/dist/es6/common/lib/Box.d.ts.map +0 -1
- package/dist/es6/common/lib/Box.js +0 -66
- package/dist/es6/common/lib/utils/border.d.ts +0 -103
- package/dist/es6/common/lib/utils/border.d.ts.map +0 -1
- package/dist/es6/common/lib/utils/border.js +0 -149
- package/dist/es6/common/lib/utils/color.d.ts +0 -26
- package/dist/es6/common/lib/utils/color.d.ts.map +0 -1
- package/dist/es6/common/lib/utils/color.js +0 -53
- package/dist/es6/common/lib/utils/depth.d.ts +0 -22
- package/dist/es6/common/lib/utils/depth.d.ts.map +0 -1
- package/dist/es6/common/lib/utils/depth.js +0 -25
- package/dist/es6/common/lib/utils/flexItem.d.ts +0 -33
- package/dist/es6/common/lib/utils/flexItem.d.ts.map +0 -1
- package/dist/es6/common/lib/utils/flexItem.js +0 -35
- package/dist/es6/common/lib/utils/layout.d.ts +0 -43
- package/dist/es6/common/lib/utils/layout.d.ts.map +0 -1
- package/dist/es6/common/lib/utils/layout.js +0 -39
- package/dist/es6/common/lib/utils/other.d.ts +0 -5
- package/dist/es6/common/lib/utils/other.d.ts.map +0 -1
- package/dist/es6/common/lib/utils/other.js +0 -15
- package/dist/es6/common/lib/utils/position.d.ts +0 -41
- package/dist/es6/common/lib/utils/position.d.ts.map +0 -1
- package/dist/es6/common/lib/utils/position.js +0 -74
- package/dist/es6/common/lib/utils/space.d.ts +0 -64
- package/dist/es6/common/lib/utils/space.d.ts.map +0 -1
- package/dist/es6/common/lib/utils/space.js +0 -157
- package/dist/es6/common/lib/utils/types.d.ts +0 -14
- package/dist/es6/common/lib/utils/types.d.ts.map +0 -1
- package/dist/es6/common/lib/utils/types.js +0 -0
- package/dist/es6/header/index.d.ts +0 -9
- package/dist/es6/header/index.d.ts.map +0 -1
- package/dist/es6/header/index.js +0 -8
- package/dist/es6/header/lib/GlobalHeader.d.ts +0 -38
- package/dist/es6/header/lib/GlobalHeader.d.ts.map +0 -1
- package/dist/es6/header/lib/GlobalHeader.js +0 -62
- package/dist/es6/header/lib/Header.d.ts +0 -76
- package/dist/es6/header/lib/Header.d.ts.map +0 -1
- package/dist/es6/header/lib/Header.js +0 -309
- package/dist/es6/header/lib/parts/DubLogoTitle.d.ts +0 -30
- package/dist/es6/header/lib/parts/DubLogoTitle.d.ts.map +0 -1
- package/dist/es6/header/lib/parts/DubLogoTitle.js +0 -93
- package/dist/es6/header/lib/parts/WorkdayLogoTitle.d.ts +0 -31
- package/dist/es6/header/lib/parts/WorkdayLogoTitle.d.ts.map +0 -1
- package/dist/es6/header/lib/parts/WorkdayLogoTitle.js +0 -112
- package/dist/es6/header/lib/parts/index.d.ts +0 -3
- package/dist/es6/header/lib/parts/index.d.ts.map +0 -1
- package/dist/es6/header/lib/parts/index.js +0 -2
- package/dist/es6/header/lib/shared/themes.d.ts +0 -43
- package/dist/es6/header/lib/shared/themes.d.ts.map +0 -1
- package/dist/es6/header/lib/shared/themes.js +0 -57
- package/dist/es6/header/lib/shared/types.d.ts +0 -15
- package/dist/es6/header/lib/shared/types.d.ts.map +0 -1
- package/dist/es6/header/lib/shared/types.js +0 -17
- package/dist/es6/layout/index.d.ts +0 -5
- package/dist/es6/layout/index.d.ts.map +0 -1
- package/dist/es6/layout/index.js +0 -2
- package/dist/es6/layout/lib/Flex.d.ts +0 -26
- package/dist/es6/layout/lib/Flex.d.ts.map +0 -1
- package/dist/es6/layout/lib/Flex.js +0 -58
- package/dist/es6/layout/lib/Stack.d.ts +0 -27
- package/dist/es6/layout/lib/Stack.d.ts.map +0 -1
- package/dist/es6/layout/lib/Stack.js +0 -74
- package/dist/es6/layout/lib/utils/flex.d.ts +0 -36
- package/dist/es6/layout/lib/utils/flex.d.ts.map +0 -1
- package/dist/es6/layout/lib/utils/flex.js +0 -34
- package/dist/es6/layout/lib/utils/getValidChildren.d.ts +0 -3
- package/dist/es6/layout/lib/utils/getValidChildren.d.ts.map +0 -1
- package/dist/es6/layout/lib/utils/getValidChildren.js +0 -6
- package/dist/es6/layout/lib/utils/stack.d.ts +0 -26
- package/dist/es6/layout/lib/utils/stack.d.ts.map +0 -1
- package/dist/es6/layout/lib/utils/stack.js +0 -51
- package/dist/es6/layout/lib/utils/types.d.ts +0 -8
- package/dist/es6/layout/lib/utils/types.d.ts.map +0 -1
- package/dist/es6/layout/lib/utils/types.js +0 -0
- package/header/LICENSE +0 -51
- package/header/README.md +0 -359
- package/header/index.ts +0 -9
- package/header/lib/GlobalHeader.tsx +0 -73
- package/header/lib/Header.tsx +0 -429
- package/header/lib/parts/DubLogoTitle.tsx +0 -99
- package/header/lib/parts/WorkdayLogoTitle.tsx +0 -120
- package/header/lib/parts/index.ts +0 -2
- package/header/lib/shared/themes.tsx +0 -97
- package/header/lib/shared/types.tsx +0 -16
- package/header/package.json +0 -5
- package/layout/LICENSE +0 -52
- package/layout/README.md +0 -16
- package/layout/index.ts +0 -4
- package/layout/lib/Flex.tsx +0 -47
- package/layout/lib/Stack.tsx +0 -111
- package/layout/lib/utils/flex.ts +0 -65
- package/layout/lib/utils/getValidChildren.ts +0 -7
- package/layout/lib/utils/stack.ts +0 -78
- package/layout/lib/utils/types.ts +0 -45
- package/layout/package.json +0 -5
- package/ts3.5/dist/commonjs/common/lib/Box.d.ts +0 -31
- package/ts3.5/dist/commonjs/common/lib/utils/border.d.ts +0 -103
- package/ts3.5/dist/commonjs/common/lib/utils/color.d.ts +0 -26
- package/ts3.5/dist/commonjs/common/lib/utils/depth.d.ts +0 -22
- package/ts3.5/dist/commonjs/common/lib/utils/flexItem.d.ts +0 -33
- package/ts3.5/dist/commonjs/common/lib/utils/layout.d.ts +0 -43
- package/ts3.5/dist/commonjs/common/lib/utils/other.d.ts +0 -5
- package/ts3.5/dist/commonjs/common/lib/utils/position.d.ts +0 -41
- package/ts3.5/dist/commonjs/common/lib/utils/space.d.ts +0 -64
- package/ts3.5/dist/commonjs/common/lib/utils/types.d.ts +0 -14
- package/ts3.5/dist/commonjs/header/index.d.ts +0 -9
- package/ts3.5/dist/commonjs/header/lib/GlobalHeader.d.ts +0 -38
- package/ts3.5/dist/commonjs/header/lib/Header.d.ts +0 -76
- package/ts3.5/dist/commonjs/header/lib/parts/DubLogoTitle.d.ts +0 -30
- package/ts3.5/dist/commonjs/header/lib/parts/WorkdayLogoTitle.d.ts +0 -31
- package/ts3.5/dist/commonjs/header/lib/parts/index.d.ts +0 -3
- package/ts3.5/dist/commonjs/header/lib/shared/themes.d.ts +0 -43
- package/ts3.5/dist/commonjs/header/lib/shared/types.d.ts +0 -15
- package/ts3.5/dist/commonjs/layout/index.d.ts +0 -5
- package/ts3.5/dist/commonjs/layout/lib/Flex.d.ts +0 -26
- package/ts3.5/dist/commonjs/layout/lib/Stack.d.ts +0 -27
- package/ts3.5/dist/commonjs/layout/lib/utils/flex.d.ts +0 -36
- package/ts3.5/dist/commonjs/layout/lib/utils/getValidChildren.d.ts +0 -3
- package/ts3.5/dist/commonjs/layout/lib/utils/stack.d.ts +0 -26
- package/ts3.5/dist/commonjs/layout/lib/utils/types.d.ts +0 -8
- package/ts3.5/dist/es6/common/lib/Box.d.ts +0 -31
- package/ts3.5/dist/es6/common/lib/utils/border.d.ts +0 -103
- package/ts3.5/dist/es6/common/lib/utils/color.d.ts +0 -26
- package/ts3.5/dist/es6/common/lib/utils/depth.d.ts +0 -22
- package/ts3.5/dist/es6/common/lib/utils/flexItem.d.ts +0 -33
- package/ts3.5/dist/es6/common/lib/utils/layout.d.ts +0 -43
- package/ts3.5/dist/es6/common/lib/utils/other.d.ts +0 -5
- package/ts3.5/dist/es6/common/lib/utils/position.d.ts +0 -41
- package/ts3.5/dist/es6/common/lib/utils/space.d.ts +0 -64
- package/ts3.5/dist/es6/common/lib/utils/types.d.ts +0 -14
- package/ts3.5/dist/es6/header/index.d.ts +0 -9
- package/ts3.5/dist/es6/header/lib/GlobalHeader.d.ts +0 -38
- package/ts3.5/dist/es6/header/lib/Header.d.ts +0 -76
- package/ts3.5/dist/es6/header/lib/parts/DubLogoTitle.d.ts +0 -30
- package/ts3.5/dist/es6/header/lib/parts/WorkdayLogoTitle.d.ts +0 -31
- package/ts3.5/dist/es6/header/lib/parts/index.d.ts +0 -3
- package/ts3.5/dist/es6/header/lib/shared/themes.d.ts +0 -43
- package/ts3.5/dist/es6/header/lib/shared/types.d.ts +0 -15
- package/ts3.5/dist/es6/layout/index.d.ts +0 -5
- package/ts3.5/dist/es6/layout/lib/Flex.d.ts +0 -26
- package/ts3.5/dist/es6/layout/lib/Stack.d.ts +0 -27
- package/ts3.5/dist/es6/layout/lib/utils/flex.d.ts +0 -36
- package/ts3.5/dist/es6/layout/lib/utils/getValidChildren.d.ts +0 -3
- package/ts3.5/dist/es6/layout/lib/utils/stack.d.ts +0 -26
- package/ts3.5/dist/es6/layout/lib/utils/types.d.ts +0 -8
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from '@workday/canvas-kit-react/tokens';
|
|
2
|
-
/**
|
|
3
|
-
* ### Deprecated Header Theme Attributes Interface
|
|
4
|
-
*
|
|
5
|
-
* As of Canvas Kit v6, this type interface is being soft-deprecated along with the rest of the labs/header package.
|
|
6
|
-
* It will be hard-deprecated (completely removed) in v7. Please see the
|
|
7
|
-
* [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
|
|
8
|
-
* for more information.
|
|
9
|
-
*/
|
|
10
|
-
export interface DeprecatedHeaderThemeAttributes {
|
|
11
|
-
color: string;
|
|
12
|
-
background: string;
|
|
13
|
-
depth: CSSProperties;
|
|
14
|
-
systemIcon: {
|
|
15
|
-
color: string;
|
|
16
|
-
colorHover: string;
|
|
17
|
-
};
|
|
18
|
-
linkColor: string;
|
|
19
|
-
linkFadeOutColor: string;
|
|
20
|
-
currentLinkColor: string;
|
|
21
|
-
chipColor: string;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* ### Deprecated Header Themes Interface
|
|
25
|
-
*
|
|
26
|
-
* As of Canvas Kit v6, this type interface is being soft-deprecated along with the rest of the labs/header package.
|
|
27
|
-
* It will be hard-deprecated (completely removed) in v7. Please see the
|
|
28
|
-
* [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
|
|
29
|
-
* for more information.
|
|
30
|
-
*/
|
|
31
|
-
export interface DeprecatedHeaderThemes {
|
|
32
|
-
[key: string]: DeprecatedHeaderThemeAttributes;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* ### Deprecated Header Themes
|
|
36
|
-
*
|
|
37
|
-
* As of Canvas Kit v6, this theme object is being soft-deprecated along with the rest of the labs/header package.
|
|
38
|
-
* It will be hard-deprecated (completely removed) in v7. Please see the
|
|
39
|
-
* [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
|
|
40
|
-
* for more information.
|
|
41
|
-
*/
|
|
42
|
-
export declare const deprecatedHeaderThemes: DeprecatedHeaderThemes;
|
|
43
|
-
//# sourceMappingURL=themes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"themes.d.ts","sourceRoot":"","sources":["../../../../../header/lib/shared/themes.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,aAAa,EACd,MAAM,kCAAkC,CAAC;AAI1C;;;;;;;GAOG;AACH,MAAM,WAAW,+BAA+B;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,aAAa,CAAC;IACrB,UAAU,EAAE;QACV,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,sBAAsB;IACrC,CAAC,GAAG,EAAE,MAAM,GAAG,+BAA+B,CAAC;CAChD;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,EAAE,sBA4CpC,CAAC"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
var _a;
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var tokens_1 = require("@workday/canvas-kit-react/tokens");
|
|
8
|
-
var chroma_js_1 = __importDefault(require("chroma-js"));
|
|
9
|
-
var types_1 = require("./types");
|
|
10
|
-
/**
|
|
11
|
-
* ### Deprecated Header Themes
|
|
12
|
-
*
|
|
13
|
-
* As of Canvas Kit v6, this theme object is being soft-deprecated along with the rest of the labs/header package.
|
|
14
|
-
* It will be hard-deprecated (completely removed) in v7. Please see the
|
|
15
|
-
* [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
|
|
16
|
-
* for more information.
|
|
17
|
-
*/
|
|
18
|
-
exports.deprecatedHeaderThemes = (_a = {},
|
|
19
|
-
_a[types_1.DeprecatedHeaderTheme.White] = {
|
|
20
|
-
color: tokens_1.colors.blackPepper400,
|
|
21
|
-
background: tokens_1.colors.frenchVanilla100,
|
|
22
|
-
depth: tokens_1.depth['1'],
|
|
23
|
-
systemIcon: {
|
|
24
|
-
color: tokens_1.iconColors.standard,
|
|
25
|
-
colorHover: tokens_1.iconColors.hover,
|
|
26
|
-
},
|
|
27
|
-
linkColor: tokens_1.colors.blackPepper400,
|
|
28
|
-
linkFadeOutColor: tokens_1.colors.licorice200,
|
|
29
|
-
currentLinkColor: tokens_1.colors.blueberry500,
|
|
30
|
-
chipColor: tokens_1.colors.blueberry400,
|
|
31
|
-
},
|
|
32
|
-
_a[types_1.DeprecatedHeaderTheme.Blue] = {
|
|
33
|
-
color: tokens_1.colors.frenchVanilla100,
|
|
34
|
-
background: tokens_1.gradients.blueberry,
|
|
35
|
-
depth: tokens_1.depth['3'],
|
|
36
|
-
systemIcon: {
|
|
37
|
-
color: tokens_1.colors.frenchVanilla100,
|
|
38
|
-
colorHover: tokens_1.colors.blueberry200,
|
|
39
|
-
},
|
|
40
|
-
linkColor: tokens_1.colors.frenchVanilla100,
|
|
41
|
-
linkFadeOutColor: chroma_js_1.default(tokens_1.colors.frenchVanilla100)
|
|
42
|
-
.alpha(0.5)
|
|
43
|
-
.css(),
|
|
44
|
-
currentLinkColor: tokens_1.colors.frenchVanilla100,
|
|
45
|
-
chipColor: tokens_1.colors.frenchVanilla100,
|
|
46
|
-
},
|
|
47
|
-
_a[types_1.DeprecatedHeaderTheme.Transparent] = {
|
|
48
|
-
color: tokens_1.colors.frenchVanilla100,
|
|
49
|
-
background: 'transparent',
|
|
50
|
-
depth: { boxShadow: 'none' },
|
|
51
|
-
systemIcon: {
|
|
52
|
-
color: tokens_1.colors.frenchVanilla100,
|
|
53
|
-
colorHover: tokens_1.colors.blueberry200,
|
|
54
|
-
},
|
|
55
|
-
linkColor: tokens_1.colors.frenchVanilla100,
|
|
56
|
-
linkFadeOutColor: chroma_js_1.default(tokens_1.colors.frenchVanilla100)
|
|
57
|
-
.alpha(0.5)
|
|
58
|
-
.css(),
|
|
59
|
-
currentLinkColor: tokens_1.colors.frenchVanilla100,
|
|
60
|
-
chipColor: tokens_1.colors.frenchVanilla100,
|
|
61
|
-
},
|
|
62
|
-
_a);
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare enum DeprecatedHeaderTheme {
|
|
2
|
-
White = 0,
|
|
3
|
-
Blue = 1,
|
|
4
|
-
Transparent = 2
|
|
5
|
-
}
|
|
6
|
-
export declare enum DeprecatedHeaderVariant {
|
|
7
|
-
Dub = 0,
|
|
8
|
-
Full = 1,
|
|
9
|
-
Global = 2
|
|
10
|
-
}
|
|
11
|
-
export declare enum DeprecatedHeaderHeight {
|
|
12
|
-
Small = "64px",
|
|
13
|
-
Large = "80px"
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../header/lib/shared/types.tsx"],"names":[],"mappings":"AAAA,oBAAY,qBAAqB;IAC/B,KAAK,IAAA;IACL,IAAI,IAAA;IACJ,WAAW,IAAA;CACZ;AAED,oBAAY,uBAAuB;IACjC,GAAG,IAAA;IACH,IAAI,IAAA;IACJ,MAAM,IAAA;CACP;AAED,oBAAY,sBAAsB;IAChC,KAAK,SAAS;IACd,KAAK,SAAS;CACf"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var DeprecatedHeaderTheme;
|
|
4
|
-
(function (DeprecatedHeaderTheme) {
|
|
5
|
-
DeprecatedHeaderTheme[DeprecatedHeaderTheme["White"] = 0] = "White";
|
|
6
|
-
DeprecatedHeaderTheme[DeprecatedHeaderTheme["Blue"] = 1] = "Blue";
|
|
7
|
-
DeprecatedHeaderTheme[DeprecatedHeaderTheme["Transparent"] = 2] = "Transparent";
|
|
8
|
-
})(DeprecatedHeaderTheme = exports.DeprecatedHeaderTheme || (exports.DeprecatedHeaderTheme = {}));
|
|
9
|
-
var DeprecatedHeaderVariant;
|
|
10
|
-
(function (DeprecatedHeaderVariant) {
|
|
11
|
-
DeprecatedHeaderVariant[DeprecatedHeaderVariant["Dub"] = 0] = "Dub";
|
|
12
|
-
DeprecatedHeaderVariant[DeprecatedHeaderVariant["Full"] = 1] = "Full";
|
|
13
|
-
DeprecatedHeaderVariant[DeprecatedHeaderVariant["Global"] = 2] = "Global";
|
|
14
|
-
})(DeprecatedHeaderVariant = exports.DeprecatedHeaderVariant || (exports.DeprecatedHeaderVariant = {}));
|
|
15
|
-
var DeprecatedHeaderHeight;
|
|
16
|
-
(function (DeprecatedHeaderHeight) {
|
|
17
|
-
DeprecatedHeaderHeight["Small"] = "64px";
|
|
18
|
-
DeprecatedHeaderHeight["Large"] = "80px";
|
|
19
|
-
})(DeprecatedHeaderHeight = exports.DeprecatedHeaderHeight || (exports.DeprecatedHeaderHeight = {}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../layout/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { BoxProps } from '@workday/canvas-kit-labs-react/common';
|
|
2
|
-
import { FlexStyleProps } from './utils/flex';
|
|
3
|
-
export declare type FlexProps = BoxProps & FlexStyleProps;
|
|
4
|
-
/**
|
|
5
|
-
* `Flex` is a low-level layout component that provides a common, ergonomic API for applying CSS flexbox styles.
|
|
6
|
-
* It is highly flexible, and can be used on its own or to build other components.
|
|
7
|
-
* `Flex` is built on top of `Box` and has access to all `BoxProps`.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* import { Flex, FlexProps } from '@workday/canvas-kit-labs-react/layout';
|
|
11
|
-
*
|
|
12
|
-
* interface CardProps extends FlexProps {
|
|
13
|
-
* // card-specific props
|
|
14
|
-
* }
|
|
15
|
-
*
|
|
16
|
-
* // `Card`'s default values are set using `FlexProps`
|
|
17
|
-
* const Card = (props: CardProps) => (
|
|
18
|
-
* <Flex flexDirection="column" alignItems="flex-start" depth={2} space="m" {...props}>
|
|
19
|
-
* <h1>Hello, Card!</h1>
|
|
20
|
-
* <p>This card uses flexbox to set its layout.</p>
|
|
21
|
-
* </Flex>
|
|
22
|
-
* );
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
|
-
export declare const Flex: import("@workday/canvas-kit-react/common").ElementComponent<"div", import("../../common/lib/utils/border").BorderShorthandStyleProps & import("../../common/lib/utils/border").BorderColorStyleProps & import("../../common/lib/utils/border").BorderRadiusStyleProps & import("../../common/lib/utils/border").BorderLineStyleProps & import("../../common/lib/utils/border").BorderWidthStyleProps & import("../../common/lib/utils/border").BorderLogicalStyleProps & import("../../common").ColorStyleProps & import("../../common").DepthStyleProps & import("../../common").FlexItemStyleProps & import("../../common").LayoutStyleProps & import("../../common/lib/utils/other").OtherStyleProps & import("../../common/lib/utils/position").PositionStandardProps & import("../../common/lib/utils/position").PositionLogicalProps & import("../../common/lib/utils/space").SpaceStandardProps & import("../../common/lib/utils/space").SpaceLogicalProps & FlexStyleProps>;
|
|
26
|
-
//# sourceMappingURL=Flex.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Flex.d.ts","sourceRoot":"","sources":["../../../../layout/lib/Flex.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAM,QAAQ,EAAC,MAAM,uCAAuC,CAAC;AAEpE,OAAO,EAAO,cAAc,EAAC,MAAM,cAAc,CAAC;AAElD,oBAAY,SAAS,GAAG,QAAQ,GAAG,cAAc,CAAC;AASlD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,IAAI,q7BASf,CAAC"}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
-
var t = {};
|
|
15
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
-
t[p] = s[p];
|
|
17
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
-
t[p[i]] = s[p[i]];
|
|
21
|
-
}
|
|
22
|
-
return t;
|
|
23
|
-
};
|
|
24
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
|
-
if (mod && mod.__esModule) return mod;
|
|
26
|
-
var result = {};
|
|
27
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
28
|
-
result["default"] = mod;
|
|
29
|
-
return result;
|
|
30
|
-
};
|
|
31
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
32
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
33
|
-
};
|
|
34
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
-
var React = __importStar(require("react"));
|
|
36
|
-
var styled_1 = __importDefault(require("@emotion/styled"));
|
|
37
|
-
var common_1 = require("@workday/canvas-kit-react/common");
|
|
38
|
-
var common_2 = require("@workday/canvas-kit-labs-react/common");
|
|
39
|
-
var flex_1 = require("./utils/flex");
|
|
40
|
-
var StyledFlex = styled_1.default(common_2.Box)({
|
|
41
|
-
display: 'flex',
|
|
42
|
-
}, flex_1.flex);
|
|
43
|
-
/**
|
|
44
|
-
* `Flex` is a low-level layout component that provides a common, ergonomic API for applying CSS flexbox styles.
|
|
45
|
-
* It is highly flexible, and can be used on its own or to build other components.
|
|
46
|
-
* `Flex` is built on top of `Box` and has access to all `BoxProps`.
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* import { Flex, FlexProps } from '@workday/canvas-kit-labs-react/layout';
|
|
50
|
-
*
|
|
51
|
-
* interface CardProps extends FlexProps {
|
|
52
|
-
* // card-specific props
|
|
53
|
-
* }
|
|
54
|
-
*
|
|
55
|
-
* // `Card`'s default values are set using `FlexProps`
|
|
56
|
-
* const Card = (props: CardProps) => (
|
|
57
|
-
* <Flex flexDirection="column" alignItems="flex-start" depth={2} space="m" {...props}>
|
|
58
|
-
* <h1>Hello, Card!</h1>
|
|
59
|
-
* <p>This card uses flexbox to set its layout.</p>
|
|
60
|
-
* </Flex>
|
|
61
|
-
* );
|
|
62
|
-
*
|
|
63
|
-
*/
|
|
64
|
-
exports.Flex = common_1.createComponent('div')({
|
|
65
|
-
displayName: 'Flex',
|
|
66
|
-
Component: function (_a, ref, Element) {
|
|
67
|
-
var children = _a.children, elemProps = __rest(_a, ["children"]);
|
|
68
|
-
return (React.createElement(StyledFlex, __assign({ as: Element, ref: ref }, elemProps), children));
|
|
69
|
-
},
|
|
70
|
-
});
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { FlexProps } from './Flex';
|
|
2
|
-
import { StackStyleProps } from './utils/stack';
|
|
3
|
-
export declare type StackProps = FlexProps & StackStyleProps;
|
|
4
|
-
export declare const Stack: import("@workday/canvas-kit-react/common").ElementComponent<"div", import("../../common/lib/utils/border").BorderShorthandStyleProps & import("../../common/lib/utils/border").BorderColorStyleProps & import("../../common/lib/utils/border").BorderRadiusStyleProps & import("../../common/lib/utils/border").BorderLineStyleProps & import("../../common/lib/utils/border").BorderWidthStyleProps & import("../../common/lib/utils/border").BorderLogicalStyleProps & import("../../common").ColorStyleProps & import("../../common").DepthStyleProps & import("../../common").FlexItemStyleProps & import("../../common").LayoutStyleProps & import("../../common/lib/utils/other").OtherStyleProps & import("../../common/lib/utils/position").PositionStandardProps & import("../../common/lib/utils/position").PositionLogicalProps & import("../../common/lib/utils/space").SpaceStandardProps & import("../../common/lib/utils/space").SpaceLogicalProps & import("..").FlexStyleProps & StackStyleProps> & {
|
|
5
|
-
Item: import("@workday/canvas-kit-react/common").ElementComponent<"div", import("../../common/lib/utils/border").BorderShorthandStyleProps & import("../../common/lib/utils/border").BorderColorStyleProps & import("../../common/lib/utils/border").BorderRadiusStyleProps & import("../../common/lib/utils/border").BorderLineStyleProps & import("../../common/lib/utils/border").BorderWidthStyleProps & import("../../common/lib/utils/border").BorderLogicalStyleProps & import("../../common").ColorStyleProps & import("../../common").DepthStyleProps & import("../../common").FlexItemStyleProps & import("../../common").LayoutStyleProps & import("../../common/lib/utils/other").OtherStyleProps & import("../../common/lib/utils/position").PositionStandardProps & import("../../common/lib/utils/position").PositionLogicalProps & import("../../common/lib/utils/space").SpaceStandardProps & import("../../common/lib/utils/space").SpaceLogicalProps>;
|
|
6
|
-
};
|
|
7
|
-
export declare type HStackProps = Omit<StackProps, 'flexDirection'> & {
|
|
8
|
-
/**
|
|
9
|
-
* sets the direction for the stack
|
|
10
|
-
* @default "row"
|
|
11
|
-
* */
|
|
12
|
-
flexDirection?: 'row' | 'row-reverse';
|
|
13
|
-
};
|
|
14
|
-
export declare const HStack: import("@workday/canvas-kit-react/common").ElementComponent<"div", HStackProps> & {
|
|
15
|
-
Item: import("@workday/canvas-kit-react/common").ElementComponent<"div", import("../../common/lib/utils/border").BorderShorthandStyleProps & import("../../common/lib/utils/border").BorderColorStyleProps & import("../../common/lib/utils/border").BorderRadiusStyleProps & import("../../common/lib/utils/border").BorderLineStyleProps & import("../../common/lib/utils/border").BorderWidthStyleProps & import("../../common/lib/utils/border").BorderLogicalStyleProps & import("../../common").ColorStyleProps & import("../../common").DepthStyleProps & import("../../common").FlexItemStyleProps & import("../../common").LayoutStyleProps & import("../../common/lib/utils/other").OtherStyleProps & import("../../common/lib/utils/position").PositionStandardProps & import("../../common/lib/utils/position").PositionLogicalProps & import("../../common/lib/utils/space").SpaceStandardProps & import("../../common/lib/utils/space").SpaceLogicalProps>;
|
|
16
|
-
};
|
|
17
|
-
export declare type VStackProps = Omit<StackProps, 'flexDirection'> & {
|
|
18
|
-
/**
|
|
19
|
-
* sets the direction for the stack
|
|
20
|
-
* @default "column"
|
|
21
|
-
* */
|
|
22
|
-
flexDirection?: 'column' | 'column-reverse';
|
|
23
|
-
};
|
|
24
|
-
export declare const VStack: import("@workday/canvas-kit-react/common").ElementComponent<"div", VStackProps> & {
|
|
25
|
-
Item: import("@workday/canvas-kit-react/common").ElementComponent<"div", import("../../common/lib/utils/border").BorderShorthandStyleProps & import("../../common/lib/utils/border").BorderColorStyleProps & import("../../common/lib/utils/border").BorderRadiusStyleProps & import("../../common/lib/utils/border").BorderLineStyleProps & import("../../common/lib/utils/border").BorderWidthStyleProps & import("../../common/lib/utils/border").BorderLogicalStyleProps & import("../../common").ColorStyleProps & import("../../common").DepthStyleProps & import("../../common").FlexItemStyleProps & import("../../common").LayoutStyleProps & import("../../common/lib/utils/other").OtherStyleProps & import("../../common/lib/utils/position").PositionStandardProps & import("../../common/lib/utils/position").PositionLogicalProps & import("../../common/lib/utils/space").SpaceStandardProps & import("../../common/lib/utils/space").SpaceLogicalProps>;
|
|
26
|
-
};
|
|
27
|
-
//# sourceMappingURL=Stack.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Stack.d.ts","sourceRoot":"","sources":["../../../../layout/lib/Stack.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAO,SAAS,EAAC,MAAM,QAAQ,CAAC;AAEvC,OAAO,EAAQ,eAAe,EAAC,MAAM,eAAe,CAAC;AAErD,oBAAY,UAAU,GAAG,SAAS,GAAG,eAAe,CAAC;AA2BrD,eAAO,MAAM,KAAK;;CA+BhB,CAAC;AAEH,oBAAY,WAAW,GAAG,IAAI,CAAC,UAAU,EAAE,eAAe,CAAC,GAAG;IAC5D;;;SAGK;IACL,aAAa,CAAC,EAAE,KAAK,GAAG,aAAa,CAAC;CACvC,CAAC;AAEF,eAAO,MAAM,MAAM;;CAYjB,CAAC;AAEH,oBAAY,WAAW,GAAG,IAAI,CAAC,UAAU,EAAE,eAAe,CAAC,GAAG;IAC5D;;;SAGK;IACL,aAAa,CAAC,EAAE,QAAQ,GAAG,gBAAgB,CAAC;CAC7C,CAAC;AAEF,eAAO,MAAM,MAAM;;CAYjB,CAAC"}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
-
var t = {};
|
|
15
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
-
t[p] = s[p];
|
|
17
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
-
t[p[i]] = s[p[i]];
|
|
21
|
-
}
|
|
22
|
-
return t;
|
|
23
|
-
};
|
|
24
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
|
-
if (mod && mod.__esModule) return mod;
|
|
26
|
-
var result = {};
|
|
27
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
28
|
-
result["default"] = mod;
|
|
29
|
-
return result;
|
|
30
|
-
};
|
|
31
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
32
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
33
|
-
};
|
|
34
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
-
var React = __importStar(require("react"));
|
|
36
|
-
var styled_1 = __importDefault(require("@emotion/styled"));
|
|
37
|
-
var common_1 = require("@workday/canvas-kit-react/common");
|
|
38
|
-
var common_2 = require("@workday/canvas-kit-labs-react/common");
|
|
39
|
-
var Flex_1 = require("./Flex");
|
|
40
|
-
var getValidChildren_1 = require("./utils/getValidChildren");
|
|
41
|
-
var stack_1 = require("./utils/stack");
|
|
42
|
-
var StackItem = common_1.createComponent('div')({
|
|
43
|
-
displayName: 'Stack.Item',
|
|
44
|
-
Component: function (_a, ref, Element) {
|
|
45
|
-
var children = _a.children, elemProps = __rest(_a, ["children"]);
|
|
46
|
-
return (React.createElement(common_2.Box, __assign({ as: Element, ref: ref, display: "inline-block", flex: "0 0 auto", minWidth: 0 }, elemProps), children));
|
|
47
|
-
},
|
|
48
|
-
});
|
|
49
|
-
// prevent `spacing` prop from being passed through to the HTML element
|
|
50
|
-
var shouldForwardProp = function (prop) {
|
|
51
|
-
return prop !== 'spacing';
|
|
52
|
-
};
|
|
53
|
-
var StyledStack = styled_1.default(Flex_1.Flex, { shouldForwardProp: shouldForwardProp })(stack_1.stack);
|
|
54
|
-
exports.Stack = common_1.createComponent('div')({
|
|
55
|
-
displayName: 'Stack',
|
|
56
|
-
Component: function (_a, ref, Element) {
|
|
57
|
-
var children = _a.children, _b = _a.flexDirection, flexDirection = _b === void 0 ? 'row' : _b, spacing = _a.spacing, _c = _a.shouldWrapChildren, shouldWrapChildren = _c === void 0 ? false : _c, elemProps = __rest(_a, ["children", "flexDirection", "spacing", "shouldWrapChildren"]);
|
|
58
|
-
var validChildren = getValidChildren_1.getValidChildren(children);
|
|
59
|
-
return (React.createElement(StyledStack, __assign({ as: Element, ref: ref, flexDirection: flexDirection, spacing: spacing }, elemProps), shouldWrapChildren
|
|
60
|
-
? validChildren.map(function (child) { return React.createElement(StackItem, null, child); })
|
|
61
|
-
: validChildren));
|
|
62
|
-
},
|
|
63
|
-
subComponents: {
|
|
64
|
-
Item: StackItem,
|
|
65
|
-
},
|
|
66
|
-
});
|
|
67
|
-
exports.HStack = common_1.createComponent('div')({
|
|
68
|
-
displayName: 'HStack',
|
|
69
|
-
Component: function (_a, ref, Element) {
|
|
70
|
-
var children = _a.children, _b = _a.flexDirection, flexDirection = _b === void 0 ? 'row' : _b, elemProps = __rest(_a, ["children", "flexDirection"]);
|
|
71
|
-
return (React.createElement(exports.Stack, __assign({ as: Element, ref: ref, flexDirection: flexDirection }, elemProps), children));
|
|
72
|
-
},
|
|
73
|
-
subComponents: {
|
|
74
|
-
Item: StackItem,
|
|
75
|
-
},
|
|
76
|
-
});
|
|
77
|
-
exports.VStack = common_1.createComponent('div')({
|
|
78
|
-
displayName: 'VStack',
|
|
79
|
-
Component: function (_a, ref, Element) {
|
|
80
|
-
var children = _a.children, _b = _a.flexDirection, flexDirection = _b === void 0 ? 'column' : _b, elemProps = __rest(_a, ["children", "flexDirection"]);
|
|
81
|
-
return (React.createElement(exports.Stack, __assign({ as: Element, ref: ref, flexDirection: flexDirection }, elemProps), children));
|
|
82
|
-
},
|
|
83
|
-
subComponents: {
|
|
84
|
-
Item: StackItem,
|
|
85
|
-
},
|
|
86
|
-
});
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { PropertyAlignItems, PropertyAlignContent, PropertyJustifyItems, PropertyJustifyContent, PropertyFlexWrap, PropertyFlexDirection } from './types';
|
|
2
|
-
/** style props to for flexbox container properties */
|
|
3
|
-
export declare type FlexStyleProps = {
|
|
4
|
-
/** sets `align-items` property */
|
|
5
|
-
alignItems?: PropertyAlignItems;
|
|
6
|
-
/** sets `align-content` property */
|
|
7
|
-
alignContent?: PropertyAlignContent;
|
|
8
|
-
/**
|
|
9
|
-
* sets `display` property
|
|
10
|
-
* @default 'flex'
|
|
11
|
-
* */
|
|
12
|
-
display?: 'flex' | 'inline-flex';
|
|
13
|
-
/** sets `justify-items` property */
|
|
14
|
-
justifyItems?: PropertyJustifyItems;
|
|
15
|
-
/** sets `justify-content` property */
|
|
16
|
-
justifyContent?: PropertyJustifyContent;
|
|
17
|
-
/** sets `flex-wrap` property */
|
|
18
|
-
flexWrap?: PropertyFlexWrap;
|
|
19
|
-
/** sets `flex-direction` property */
|
|
20
|
-
flexDirection?: PropertyFlexDirection;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* A style prop function that takes component props and returns flexbox styles.
|
|
24
|
-
* If no `FlexStyleProps` are found, it returns an empty object.
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* // You'll most likely use `flex` with low-level, styled components
|
|
28
|
-
* const FlexExample = () => (
|
|
29
|
-
* <Flex justifyContent="center" alignItems="center">
|
|
30
|
-
* Hello, flex!
|
|
31
|
-
* </Flex>
|
|
32
|
-
* );
|
|
33
|
-
*
|
|
34
|
-
*/
|
|
35
|
-
export declare function flex<P extends FlexStyleProps>(props: P): {};
|
|
36
|
-
//# sourceMappingURL=flex.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"flex.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/flex.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAEjB,sDAAsD;AACtD,oBAAY,cAAc,GAAG;IAC3B,kCAAkC;IAClC,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC,oCAAoC;IACpC,YAAY,CAAC,EAAE,oBAAoB,CAAC;IACpC;;;SAGK;IACL,OAAO,CAAC,EAAE,MAAM,GAAG,aAAa,CAAC;IACjC,oCAAoC;IACpC,YAAY,CAAC,EAAE,oBAAoB,CAAC;IACpC,sCAAsC;IACtC,cAAc,CAAC,EAAE,sBAAsB,CAAC;IACxC,gCAAgC;IAChC,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,qCAAqC;IACrC,aAAa,CAAC,EAAE,qBAAqB,CAAC;CACvC,CAAC;AAYF;;;;;;;;;;;;GAYG;AACH,wBAAgB,IAAI,CAAC,CAAC,SAAS,cAAc,EAAE,KAAK,EAAE,CAAC,MAWtD"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var flexProps = {
|
|
4
|
-
alignContent: 'alignContent',
|
|
5
|
-
alignItems: 'alignItems',
|
|
6
|
-
display: 'display',
|
|
7
|
-
flexDirection: 'flexDirection',
|
|
8
|
-
flexWrap: 'flexWrap',
|
|
9
|
-
justifyContent: 'justifyContent',
|
|
10
|
-
justifyItems: 'justifyItems',
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* A style prop function that takes component props and returns flexbox styles.
|
|
14
|
-
* If no `FlexStyleProps` are found, it returns an empty object.
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* // You'll most likely use `flex` with low-level, styled components
|
|
18
|
-
* const FlexExample = () => (
|
|
19
|
-
* <Flex justifyContent="center" alignItems="center">
|
|
20
|
-
* Hello, flex!
|
|
21
|
-
* </Flex>
|
|
22
|
-
* );
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
|
-
function flex(props) {
|
|
26
|
-
var styles = {};
|
|
27
|
-
for (var key in props) {
|
|
28
|
-
if (key in flexProps) {
|
|
29
|
-
var attr = flexProps[key];
|
|
30
|
-
var value = props[key];
|
|
31
|
-
// @ts-ignore TS doesn't like adding a potentially unknown key to an object, but because we own this object, it's fine.
|
|
32
|
-
styles[attr] = value;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
return styles;
|
|
36
|
-
}
|
|
37
|
-
exports.flex = flex;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export declare function getValidChildren(children: React.ReactNode): React.ReactElement<any, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)>[];
|
|
3
|
-
//# sourceMappingURL=getValidChildren.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getValidChildren.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/getValidChildren.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,oJAIzD"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
3
|
-
if (mod && mod.__esModule) return mod;
|
|
4
|
-
var result = {};
|
|
5
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
6
|
-
result["default"] = mod;
|
|
7
|
-
return result;
|
|
8
|
-
};
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
var React = __importStar(require("react"));
|
|
11
|
-
function getValidChildren(children) {
|
|
12
|
-
return React.Children.toArray(children).filter(function (child) {
|
|
13
|
-
return React.isValidElement(child);
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
exports.getValidChildren = getValidChildren;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { PartialEmotionCanvasTheme } from '@workday/canvas-kit-react/common';
|
|
2
|
-
import { CanvasSpaceKeys } from '@workday/canvas-kit-react/tokens';
|
|
3
|
-
export declare type StackDirection = 'row' | 'column' | 'row-reverse' | 'column-reverse';
|
|
4
|
-
declare const selector = "& > *:not(style) ~ *:not(style)";
|
|
5
|
-
export declare type StackSpacing = CanvasSpaceKeys | number | (string & {});
|
|
6
|
-
export declare type StackStyleProps = {
|
|
7
|
-
/** sets space values between child elements (bidirectional support) */
|
|
8
|
-
spacing: StackSpacing;
|
|
9
|
-
/**
|
|
10
|
-
* sets the direction for the stack
|
|
11
|
-
* @default "row"
|
|
12
|
-
* */
|
|
13
|
-
flexDirection?: StackDirection;
|
|
14
|
-
/**
|
|
15
|
-
* when `true` wraps each child element in a `Stack.Item`
|
|
16
|
-
* @default false
|
|
17
|
-
* */
|
|
18
|
-
shouldWrapChildren?: boolean;
|
|
19
|
-
};
|
|
20
|
-
export declare function stack<P extends StackStyleProps & {
|
|
21
|
-
theme?: PartialEmotionCanvasTheme;
|
|
22
|
-
}>(props: P): {
|
|
23
|
-
"& > *:not(style) ~ *:not(style)": {};
|
|
24
|
-
};
|
|
25
|
-
export {};
|
|
26
|
-
//# sourceMappingURL=stack.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stack.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/stack.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,yBAAyB,EAE1B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAuB,eAAe,EAAC,MAAM,kCAAkC,CAAC;AAEvF,oBAAY,cAAc,GAAG,KAAK,GAAG,QAAQ,GAAG,aAAa,GAAG,gBAAgB,CAAC;AAEjF,QAAA,MAAM,QAAQ,oCAAoC,CAAC;AAEnD,oBAAY,YAAY,GAAG,eAAe,GAAG,MAAM,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAEpE,oBAAY,eAAe,GAAG;IAC5B,uEAAuE;IACvE,OAAO,EAAE,YAAY,CAAC;IACtB;;;SAGK;IACL,aAAa,CAAC,EAAE,cAAc,CAAC;IAC/B;;;SAGK;IACL,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AA+BF,wBAAgB,KAAK,CAAC,CAAC,SAAS,eAAe,GAAG;IAAC,KAAK,CAAC,EAAE,yBAAyB,CAAA;CAAC,EAAE,KAAK,EAAE,CAAC;;EAoB9F"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var common_1 = require("@workday/canvas-kit-react/common");
|
|
4
|
-
var tokens_1 = require("@workday/canvas-kit-react/tokens");
|
|
5
|
-
var selector = '& > *:not(style) ~ *:not(style)';
|
|
6
|
-
var column = function (value) { return ({
|
|
7
|
-
marginTop: tokens_1.space[value] || value,
|
|
8
|
-
}); };
|
|
9
|
-
var columnReverse = function (value) { return ({
|
|
10
|
-
marginBottom: tokens_1.space[value] || value,
|
|
11
|
-
}); };
|
|
12
|
-
var row = function (value, isRTL) {
|
|
13
|
-
var _a;
|
|
14
|
-
if (isRTL === void 0) { isRTL = false; }
|
|
15
|
-
var attr = isRTL ? 'marginRight' : 'marginLeft';
|
|
16
|
-
return _a = {},
|
|
17
|
-
_a[attr] = tokens_1.space[value] || value,
|
|
18
|
-
_a;
|
|
19
|
-
};
|
|
20
|
-
var rowReverse = function (value, isRTL) {
|
|
21
|
-
var _a;
|
|
22
|
-
if (isRTL === void 0) { isRTL = false; }
|
|
23
|
-
var attr = isRTL ? 'marginLeft' : 'marginRight';
|
|
24
|
-
return _a = {},
|
|
25
|
-
_a[attr] = tokens_1.space[value] || value,
|
|
26
|
-
_a;
|
|
27
|
-
};
|
|
28
|
-
var stackDirectionProps = {
|
|
29
|
-
column: column,
|
|
30
|
-
'column-reverse': columnReverse,
|
|
31
|
-
row: row,
|
|
32
|
-
'row-reverse': rowReverse,
|
|
33
|
-
};
|
|
34
|
-
function stack(props) {
|
|
35
|
-
var _a;
|
|
36
|
-
var styles = {};
|
|
37
|
-
var _b = props.flexDirection, flexDirection = _b === void 0 ? 'row' : _b, spacing = props.spacing;
|
|
38
|
-
if (flexDirection === 'column' || flexDirection === 'column-reverse') {
|
|
39
|
-
var stackFn = stackDirectionProps[flexDirection];
|
|
40
|
-
styles = stackFn(spacing);
|
|
41
|
-
}
|
|
42
|
-
if (flexDirection === 'row' || flexDirection === 'row-reverse') {
|
|
43
|
-
// stack will always be used within the context of a component, but eslint doesn't know that
|
|
44
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
45
|
-
var canvas = common_1.useTheme(props.theme).canvas;
|
|
46
|
-
var stackFn = stackDirectionProps[flexDirection];
|
|
47
|
-
var isRTL = canvas.direction === common_1.ContentDirection.RTL;
|
|
48
|
-
styles = stackFn(spacing, isRTL);
|
|
49
|
-
}
|
|
50
|
-
return _a = {},
|
|
51
|
-
_a[selector] = styles,
|
|
52
|
-
_a;
|
|
53
|
-
}
|
|
54
|
-
exports.stack = stack;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Globals, SelfPosition, ContentDistribution, ContentPosition } from 'csstype';
|
|
2
|
-
export declare type PropertyAlignItems = Globals | SelfPosition | 'baseline' | 'normal' | 'stretch' | (string & {});
|
|
3
|
-
export declare type PropertyAlignContent = Globals | ContentDistribution | ContentPosition | 'baseline' | 'normal' | (string & {});
|
|
4
|
-
export declare type PropertyJustifyItems = Globals | SelfPosition | 'baseline' | 'left' | 'legacy' | 'normal' | 'right' | 'stretch' | (string & {});
|
|
5
|
-
export declare type PropertyJustifyContent = Globals | ContentDistribution | ContentPosition | 'left' | 'normal' | 'right' | (string & {});
|
|
6
|
-
export declare type PropertyFlexWrap = Globals | 'nowrap' | 'wrap' | 'wrap-reverse';
|
|
7
|
-
export declare type PropertyFlexDirection = Globals | 'column' | 'column-reverse' | 'row' | 'row-reverse';
|
|
8
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,eAAe,EAAC,MAAM,SAAS,CAAC;AAMpF,oBAAY,kBAAkB,GAC1B,OAAO,GACP,YAAY,GACZ,UAAU,GACV,QAAQ,GACR,SAAS,GACT,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAElB,oBAAY,oBAAoB,GAC5B,OAAO,GACP,mBAAmB,GACnB,eAAe,GACf,UAAU,GACV,QAAQ,GACR,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAElB,oBAAY,oBAAoB,GAC5B,OAAO,GACP,YAAY,GACZ,UAAU,GACV,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,OAAO,GACP,SAAS,GACT,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAElB,oBAAY,sBAAsB,GAC9B,OAAO,GACP,mBAAmB,GACnB,eAAe,GACf,MAAM,GACN,QAAQ,GACR,OAAO,GACP,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAElB,oBAAY,gBAAgB,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,cAAc,CAAC;AAE5E,oBAAY,qBAAqB,GAAG,OAAO,GAAG,QAAQ,GAAG,gBAAgB,GAAG,KAAK,GAAG,aAAa,CAAC"}
|