@workday/canvas-kit-react 9.0.0-alpha.335-next.5 → 9.0.0-alpha.338-next.5
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/action-bar/lib/ActionBarList.tsx +6 -7
- package/breadcrumbs/lib/BreadcrumbsList.tsx +1 -2
- package/dist/commonjs/action-bar/lib/ActionBarList.d.ts +2 -2
- package/dist/commonjs/action-bar/lib/ActionBarList.d.ts.map +1 -1
- package/dist/commonjs/action-bar/lib/ActionBarList.js +2 -2
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsList.d.ts +1 -1
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsList.d.ts.map +1 -1
- package/dist/commonjs/layout/index.d.ts +1 -2
- package/dist/commonjs/layout/index.d.ts.map +1 -1
- package/dist/commonjs/layout/index.js +1 -1
- package/dist/commonjs/menu/lib/MenuList.d.ts +2 -2
- package/dist/commonjs/menu/lib/MenuList.d.ts.map +1 -1
- package/dist/commonjs/menu/lib/MenuList.js +1 -1
- package/dist/commonjs/pagination/lib/Pagination/Controls.js +1 -1
- package/dist/commonjs/pagination/lib/Pagination/GoTo/Form.d.ts +3 -5
- package/dist/commonjs/pagination/lib/Pagination/GoTo/Form.d.ts.map +1 -1
- package/dist/commonjs/pagination/lib/Pagination/GoTo/Form.js +2 -2
- package/dist/commonjs/pagination/lib/Pagination/PageList.d.ts +2 -2
- package/dist/commonjs/pagination/lib/Pagination/PageList.d.ts.map +1 -1
- package/dist/commonjs/pagination/lib/Pagination/PageList.js +1 -1
- package/dist/commonjs/tabs/lib/TabsItem.d.ts +3 -3
- package/dist/commonjs/tabs/lib/TabsItem.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/TabsItem.js +4 -5
- package/dist/commonjs/tabs/lib/TabsList.d.ts +2 -2
- package/dist/commonjs/tabs/lib/TabsList.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/TabsList.js +2 -2
- package/dist/commonjs/tabs/lib/TabsOverflowButton.js +1 -1
- package/dist/es6/action-bar/lib/ActionBarList.d.ts +2 -2
- package/dist/es6/action-bar/lib/ActionBarList.d.ts.map +1 -1
- package/dist/es6/action-bar/lib/ActionBarList.js +3 -3
- package/dist/es6/breadcrumbs/lib/BreadcrumbsList.d.ts +1 -1
- package/dist/es6/breadcrumbs/lib/BreadcrumbsList.d.ts.map +1 -1
- package/dist/es6/layout/index.d.ts +1 -2
- package/dist/es6/layout/index.d.ts.map +1 -1
- package/dist/es6/layout/index.js +1 -1
- package/dist/es6/menu/lib/MenuList.d.ts +2 -2
- package/dist/es6/menu/lib/MenuList.d.ts.map +1 -1
- package/dist/es6/menu/lib/MenuList.js +1 -1
- package/dist/es6/pagination/lib/Pagination/Controls.js +2 -2
- package/dist/es6/pagination/lib/Pagination/GoTo/Form.d.ts +3 -5
- package/dist/es6/pagination/lib/Pagination/GoTo/Form.d.ts.map +1 -1
- package/dist/es6/pagination/lib/Pagination/GoTo/Form.js +3 -3
- package/dist/es6/pagination/lib/Pagination/PageList.d.ts +2 -2
- package/dist/es6/pagination/lib/Pagination/PageList.d.ts.map +1 -1
- package/dist/es6/pagination/lib/Pagination/PageList.js +2 -2
- package/dist/es6/tabs/lib/TabsItem.d.ts +3 -3
- package/dist/es6/tabs/lib/TabsItem.d.ts.map +1 -1
- package/dist/es6/tabs/lib/TabsItem.js +4 -5
- package/dist/es6/tabs/lib/TabsList.d.ts +2 -2
- package/dist/es6/tabs/lib/TabsList.d.ts.map +1 -1
- package/dist/es6/tabs/lib/TabsList.js +3 -3
- package/dist/es6/tabs/lib/TabsOverflowButton.js +1 -1
- package/layout/index.ts +1 -2
- package/menu/lib/MenuList.tsx +3 -4
- package/package.json +3 -3
- package/pagination/lib/Pagination/Controls.tsx +3 -3
- package/pagination/lib/Pagination/GoTo/Form.tsx +6 -9
- package/pagination/lib/Pagination/PageList.tsx +5 -5
- package/tabs/lib/TabsItem.tsx +6 -8
- package/tabs/lib/TabsList.tsx +4 -6
- package/tabs/lib/TabsOverflowButton.tsx +1 -1
- package/dist/commonjs/layout/lib/Stack.d.ts +0 -69
- package/dist/commonjs/layout/lib/Stack.d.ts.map +0 -1
- package/dist/commonjs/layout/lib/Stack.js +0 -127
- package/dist/commonjs/layout/lib/utils/stack.d.ts +0 -54
- package/dist/commonjs/layout/lib/utils/stack.d.ts.map +0 -1
- package/dist/commonjs/layout/lib/utils/stack.js +0 -36
- package/dist/es6/layout/lib/Stack.d.ts +0 -69
- package/dist/es6/layout/lib/Stack.d.ts.map +0 -1
- package/dist/es6/layout/lib/Stack.js +0 -102
- package/dist/es6/layout/lib/utils/stack.d.ts +0 -54
- package/dist/es6/layout/lib/utils/stack.d.ts.map +0 -1
- package/dist/es6/layout/lib/utils/stack.js +0 -32
- package/layout/lib/Stack.tsx +0 -146
- package/layout/lib/utils/stack.ts +0 -83
|
@@ -8,14 +8,13 @@ import {
|
|
|
8
8
|
styled,
|
|
9
9
|
StyledType,
|
|
10
10
|
} from '@workday/canvas-kit-react/common';
|
|
11
|
-
import {
|
|
11
|
+
import {Flex} from '@workday/canvas-kit-react/layout';
|
|
12
12
|
import {useOverflowListMeasure, useListRenderItems} from '@workday/canvas-kit-react/collection';
|
|
13
13
|
|
|
14
14
|
import {useActionBarModel} from './useActionBarModel';
|
|
15
15
|
|
|
16
|
-
// Use `Partial` here to make `spacing` optional
|
|
17
16
|
export interface ActionBarListProps<T = any>
|
|
18
|
-
extends Omit<
|
|
17
|
+
extends Omit<ExtractProps<typeof Flex, never>, 'children'> {
|
|
19
18
|
/**
|
|
20
19
|
* If items are passed to a `ActionBarModel`, the child of `ActionBar.List` should be a render prop. The
|
|
21
20
|
* List will determine how and when the item will be rendered.
|
|
@@ -37,7 +36,7 @@ export interface ActionBarListProps<T = any>
|
|
|
37
36
|
overflowButton?: React.ReactNode;
|
|
38
37
|
}
|
|
39
38
|
|
|
40
|
-
const
|
|
39
|
+
const ResponsiveList = styled(Flex)<ActionBarListProps & StyledType>(({theme}) => {
|
|
41
40
|
const canvasTheme = getCanvasTheme(theme);
|
|
42
41
|
return {
|
|
43
42
|
[canvasTheme.breakpoints.down('s')]: {
|
|
@@ -57,9 +56,9 @@ export const ActionBarList = createSubcomponent('div')({
|
|
|
57
56
|
elemPropsHook: useActionBarList,
|
|
58
57
|
})<ActionBarListProps>(({children, overflowButton, ...elemProps}, Element, model) => {
|
|
59
58
|
return (
|
|
60
|
-
<
|
|
59
|
+
<ResponsiveList
|
|
61
60
|
as={Element}
|
|
62
|
-
|
|
61
|
+
gap="s"
|
|
63
62
|
depth={1}
|
|
64
63
|
background={commonColors.background}
|
|
65
64
|
borderTop={`solid 1px ${colors.soap400}`}
|
|
@@ -72,6 +71,6 @@ export const ActionBarList = createSubcomponent('div')({
|
|
|
72
71
|
>
|
|
73
72
|
{useListRenderItems(model, children)}
|
|
74
73
|
{overflowButton}
|
|
75
|
-
</
|
|
74
|
+
</ResponsiveList>
|
|
76
75
|
);
|
|
77
76
|
});
|
|
@@ -6,9 +6,8 @@ import {useOverflowListMeasure, useListRenderItems} from '@workday/canvas-kit-re
|
|
|
6
6
|
import {space} from '@workday/canvas-kit-react/tokens';
|
|
7
7
|
import {useBreadcrumbsModel} from './hooks/useBreadcrumbsModel';
|
|
8
8
|
|
|
9
|
-
// Use `Partial` here to make `spacing` optional
|
|
10
9
|
export interface BreadcrumbsListProps<T = any>
|
|
11
|
-
extends Omit<
|
|
10
|
+
extends Omit<ExtractProps<typeof Flex, never>, 'children'> {
|
|
12
11
|
overflowButton?: React.ReactNode;
|
|
13
12
|
/**
|
|
14
13
|
* If items are passed to a `BreadcrumbsModel`, the child of `Breadcrumbs.List` should be a render prop. The
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ExtractProps } from '@workday/canvas-kit-react/common';
|
|
3
|
-
import {
|
|
4
|
-
export interface ActionBarListProps<T = any> extends Omit<
|
|
3
|
+
import { Flex } from '@workday/canvas-kit-react/layout';
|
|
4
|
+
export interface ActionBarListProps<T = any> extends Omit<ExtractProps<typeof Flex, never>, 'children'> {
|
|
5
5
|
/**
|
|
6
6
|
* If items are passed to a `ActionBarModel`, the child of `ActionBar.List` should be a render prop. The
|
|
7
7
|
* List will determine how and when the item will be rendered.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionBarList.d.ts","sourceRoot":"","sources":["../../../../action-bar/lib/ActionBarList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAEL,YAAY,EAIb,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"ActionBarList.d.ts","sourceRoot":"","sources":["../../../../action-bar/lib/ActionBarList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAEL,YAAY,EAIb,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,IAAI,EAAC,MAAM,kCAAkC,CAAC;AAKtD,MAAM,WAAW,kBAAkB,CAAC,CAAC,GAAG,GAAG,CACzC,SAAQ,IAAI,CAAC,YAAY,CAAC,OAAO,IAAI,EAAE,KAAK,CAAC,EAAE,UAAU,CAAC;IAC1D;;;;;;;;OAQG;IACH,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC;IAC1E;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAClC;AAcD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAyB,CAAC;AAEvD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBxB,CAAC"}
|
|
@@ -48,7 +48,7 @@ var common_1 = require("@workday/canvas-kit-react/common");
|
|
|
48
48
|
var layout_1 = require("@workday/canvas-kit-react/layout");
|
|
49
49
|
var collection_1 = require("@workday/canvas-kit-react/collection");
|
|
50
50
|
var useActionBarModel_1 = require("./useActionBarModel");
|
|
51
|
-
var
|
|
51
|
+
var ResponsiveList = common_1.styled(layout_1.Flex)(function (_a) {
|
|
52
52
|
var _b;
|
|
53
53
|
var theme = _a.theme;
|
|
54
54
|
var canvasTheme = common_1.getCanvasTheme(theme);
|
|
@@ -68,7 +68,7 @@ exports.ActionBarList = common_1.createSubcomponent('div')({
|
|
|
68
68
|
elemPropsHook: exports.useActionBarList,
|
|
69
69
|
})(function (_a, Element, model) {
|
|
70
70
|
var children = _a.children, overflowButton = _a.overflowButton, elemProps = __rest(_a, ["children", "overflowButton"]);
|
|
71
|
-
return (React.createElement(
|
|
71
|
+
return (React.createElement(ResponsiveList, __assign({ as: Element, gap: "s", depth: 1, background: tokens_1.commonColors.background, borderTop: "solid 1px " + tokens_1.colors.soap400, padding: tokens_1.space.s + " " + tokens_1.space.xl + " ", position: "fixed", bottom: 0, left: 0, right: 0 }, elemProps),
|
|
72
72
|
collection_1.useListRenderItems(model, children),
|
|
73
73
|
overflowButton));
|
|
74
74
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ExtractProps } from '@workday/canvas-kit-react/common';
|
|
3
3
|
import { Flex } from '@workday/canvas-kit-react/layout';
|
|
4
|
-
export interface BreadcrumbsListProps<T = any> extends Omit<
|
|
4
|
+
export interface BreadcrumbsListProps<T = any> extends Omit<ExtractProps<typeof Flex, never>, 'children'> {
|
|
5
5
|
overflowButton?: React.ReactNode;
|
|
6
6
|
/**
|
|
7
7
|
* If items are passed to a `BreadcrumbsModel`, the child of `Breadcrumbs.List` should be a render prop. The
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BreadcrumbsList.d.ts","sourceRoot":"","sources":["../../../../breadcrumbs/lib/BreadcrumbsList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAqB,YAAY,EAAC,MAAM,kCAAkC,CAAC;AAClF,OAAO,EAAC,IAAI,EAAC,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"BreadcrumbsList.d.ts","sourceRoot":"","sources":["../../../../breadcrumbs/lib/BreadcrumbsList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAqB,YAAY,EAAC,MAAM,kCAAkC,CAAC;AAClF,OAAO,EAAC,IAAI,EAAC,MAAM,kCAAkC,CAAC;AAKtD,MAAM,WAAW,oBAAoB,CAAC,CAAC,GAAG,GAAG,CAC3C,SAAQ,IAAI,CAAC,YAAY,CAAC,OAAO,IAAI,EAAE,KAAK,CAAC,EAAE,UAAU,CAAC;IAC1D,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC;;;;;;;;OAQG;IACH,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC;CAC3E;AAED,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0B1B,CAAC"}
|
|
@@ -16,9 +16,8 @@ export { AllStyleProps, CommonStyleProps } from './lib/utils/styleProps';
|
|
|
16
16
|
export * from './lib/utils/text';
|
|
17
17
|
export * from './lib/Flex';
|
|
18
18
|
export * from './lib/Grid';
|
|
19
|
-
export * from './lib/Stack';
|
|
20
19
|
export type { FlexStyleProps } from './lib/utils/flex';
|
|
21
20
|
export type { GridStyleProps } from './lib/utils/grid';
|
|
22
21
|
export type { GridItemStyleProps, gridItemStyleFnConfigs } from './lib/utils/gridItem';
|
|
23
|
-
export
|
|
22
|
+
export * from './lib/utils/systemProps';
|
|
24
23
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../layout/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAC,eAAe,EAAE,mBAAmB,EAAC,MAAM,mBAAmB,CAAC;AACvE,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAC,eAAe,EAAE,mBAAmB,EAAC,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAC,aAAa,EAAE,gBAAgB,EAAC,MAAM,wBAAwB,CAAC;AACvE,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../layout/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAC,eAAe,EAAE,mBAAmB,EAAC,MAAM,mBAAmB,CAAC;AACvE,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAC,eAAe,EAAE,mBAAmB,EAAC,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAC,aAAa,EAAE,gBAAgB,EAAC,MAAM,wBAAwB,CAAC;AACvE,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,YAAY,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AACvF,cAAc,yBAAyB,CAAC"}
|
|
@@ -30,4 +30,4 @@ Object.defineProperty(exports, "spaceStyleFnConfigs", { enumerable: true, get: f
|
|
|
30
30
|
__exportStar(require("./lib/utils/text"), exports);
|
|
31
31
|
__exportStar(require("./lib/Flex"), exports);
|
|
32
32
|
__exportStar(require("./lib/Grid"), exports);
|
|
33
|
-
__exportStar(require("./lib/
|
|
33
|
+
__exportStar(require("./lib/utils/systemProps"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ExtractProps } from '@workday/canvas-kit-react/common';
|
|
3
|
-
import {
|
|
4
|
-
export interface MenuListProps<T = any> extends Omit<
|
|
3
|
+
import { Flex } from '@workday/canvas-kit-react/layout';
|
|
4
|
+
export interface MenuListProps<T = any> extends Omit<ExtractProps<typeof Flex, never>, 'children'> {
|
|
5
5
|
/**
|
|
6
6
|
* The label text of the MenuList.
|
|
7
7
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuList.d.ts","sourceRoot":"","sources":["../../../../menu/lib/MenuList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAGL,YAAY,EACb,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"MenuList.d.ts","sourceRoot":"","sources":["../../../../menu/lib/MenuList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAGL,YAAY,EACb,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAC,IAAI,EAAC,MAAM,kCAAkC,CAAC;AAItD,MAAM,WAAW,aAAa,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,IAAI,CAAC,YAAY,CAAC,OAAO,IAAI,EAAE,KAAK,CAAC,EAAE,UAAU,CAAC;IAChG;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;CAC5D;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAKtB,CAAC;AAEH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBnB,CAAC"}
|
|
@@ -59,5 +59,5 @@ exports.MenuList = common_1.createSubcomponent('div')({
|
|
|
59
59
|
elemPropsHook: exports.useMenuList,
|
|
60
60
|
})(function (_a, Element, model) {
|
|
61
61
|
var children = _a.children, elemProps = __rest(_a, ["children"]);
|
|
62
|
-
return (React.createElement(collection_1.ListBox, __assign({ as: Element, model: model, background: tokens_1.commonColors.background, borderRadius: "zero", padding: "zero", marginY: "xxs",
|
|
62
|
+
return (React.createElement(collection_1.ListBox, __assign({ as: Element, model: model, background: tokens_1.commonColors.background, borderRadius: "zero", padding: "zero", marginY: "xxs", gap: "zero", overflowY: "auto", flexDirection: model.state.orientation === 'vertical' ? 'column' : 'row' }, elemProps), children));
|
|
63
63
|
});
|
|
@@ -49,7 +49,7 @@ var layout_1 = require("@workday/canvas-kit-react/layout");
|
|
|
49
49
|
var useRTL_1 = require("./common/utils/useRTL");
|
|
50
50
|
var Controls = function (_a) {
|
|
51
51
|
var children = _a.children, elemProps = __rest(_a, ["children"]);
|
|
52
|
-
return (React.createElement(layout_1.
|
|
52
|
+
return (React.createElement(layout_1.Flex, __assign({ gap: "xxxs", alignItems: "center" }, elemProps), children));
|
|
53
53
|
};
|
|
54
54
|
exports.Controls = Controls;
|
|
55
55
|
var JumpToFirstButton = function (_a) {
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare type GoToFormProps = React.FormHTMLAttributes<HTMLFormElement> &
|
|
4
|
-
|
|
5
|
-
};
|
|
6
|
-
export declare const GoToForm: ({ children, onSubmit, spacing, ...elemProps }: GoToFormProps) => JSX.Element;
|
|
2
|
+
import { FlexProps } from '@workday/canvas-kit-react/layout';
|
|
3
|
+
export declare type GoToFormProps = React.FormHTMLAttributes<HTMLFormElement> & FlexProps;
|
|
4
|
+
export declare const GoToForm: ({ children, onSubmit, gap, ...elemProps }: GoToFormProps) => JSX.Element;
|
|
7
5
|
//# sourceMappingURL=Form.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../../../../pagination/lib/Pagination/GoTo/Form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,
|
|
1
|
+
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../../../../pagination/lib/Pagination/GoTo/Form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,SAAS,EAAC,MAAM,kCAAkC,CAAC;AAGjE,oBAAY,aAAa,GAAG,KAAK,CAAC,kBAAkB,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC;AAElF,eAAO,MAAM,QAAQ,8CAAqD,aAAa,gBAetF,CAAC"}
|
|
@@ -46,8 +46,8 @@ var React = __importStar(require("react"));
|
|
|
46
46
|
var layout_1 = require("@workday/canvas-kit-react/layout");
|
|
47
47
|
var useRTL_1 = require("../common/utils/useRTL");
|
|
48
48
|
var GoToForm = function (_a) {
|
|
49
|
-
var children = _a.children, onSubmit = _a.onSubmit, _b = _a.
|
|
49
|
+
var children = _a.children, onSubmit = _a.onSubmit, _b = _a.gap, gap = _b === void 0 ? 'xxs' : _b, elemProps = __rest(_a, ["children", "onSubmit", "gap"]);
|
|
50
50
|
var shouldUseRTL = useRTL_1.useRTL().shouldUseRTL;
|
|
51
|
-
return (React.createElement(layout_1.
|
|
51
|
+
return (React.createElement(layout_1.Flex, __assign({ as: "form", alignItems: "center", gap: gap, paddingLeft: shouldUseRTL ? 'xxs' : undefined, paddingRight: shouldUseRTL ? 'xxs' : undefined, onSubmit: onSubmit }, elemProps), children));
|
|
52
52
|
};
|
|
53
53
|
exports.GoToForm = GoToForm;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { PaginationModel } from './types';
|
|
3
3
|
import { ListItemProps } from './common/List';
|
|
4
|
-
import {
|
|
5
|
-
export interface PageListProps extends Omit<
|
|
4
|
+
import { FlexProps } from '@workday/canvas-kit-react/layout';
|
|
5
|
+
export interface PageListProps extends Omit<FlexProps, 'as' | 'children'> {
|
|
6
6
|
model: PaginationModel;
|
|
7
7
|
children?: (model: PaginationModel) => React.ReactNode[] | React.ReactNode;
|
|
8
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageList.d.ts","sourceRoot":"","sources":["../../../../../pagination/lib/Pagination/PageList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,eAAe,EAAC,MAAM,SAAS,CAAC;AACxC,OAAO,EAAW,aAAa,EAAC,MAAM,eAAe,CAAC;AACtD,OAAO,
|
|
1
|
+
{"version":3,"file":"PageList.d.ts","sourceRoot":"","sources":["../../../../../pagination/lib/Pagination/PageList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,eAAe,EAAC,MAAM,SAAS,CAAC;AACxC,OAAO,EAAW,aAAa,EAAC,MAAM,eAAe,CAAC;AACtD,OAAO,EAAO,SAAS,EAAC,MAAM,kCAAkC,CAAC;AAEjE,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,SAAS,EAAE,IAAI,GAAG,UAAU,CAAC;IACvE,KAAK,EAAE,eAAe,CAAC;IACvB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,KAAK,CAAC,SAAS,EAAE,GAAG,KAAK,CAAC,SAAS,CAAC;CAC5E;AAED,eAAO,MAAM,QAAQ,sCAAqC,aAAa,gBActE,CAAC;AAEF,oBAAY,iBAAiB,GAAG,aAAa,CAAC;AAE9C,eAAO,MAAM,YAAY,+BAA8B,iBAAiB,gBAEvE,CAAC"}
|
|
@@ -47,7 +47,7 @@ var List_1 = require("./common/List");
|
|
|
47
47
|
var layout_1 = require("@workday/canvas-kit-react/layout");
|
|
48
48
|
var PageList = function (_a) {
|
|
49
49
|
var model = _a.model, children = _a.children, elemProps = __rest(_a, ["model", "children"]);
|
|
50
|
-
return (React.createElement(layout_1.
|
|
50
|
+
return (React.createElement(layout_1.Flex, __assign({ margin: "zero", as: "ol", role: "list", paddingLeft: "zero", paddingRight: "zero", gap: "xxxs" }, elemProps), typeof children === 'function' ? children(model) : children));
|
|
51
51
|
};
|
|
52
52
|
exports.PageList = PageList;
|
|
53
53
|
var PageListItem = function (_a) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { StyledType, ExtractProps } from '@workday/canvas-kit-react/common';
|
|
3
|
-
import { Box,
|
|
4
|
-
export interface TabsItemProps extends ExtractProps<typeof Box, never>, Partial<Pick<
|
|
3
|
+
import { Box, FlexProps } from '@workday/canvas-kit-react/layout';
|
|
4
|
+
export interface TabsItemProps extends ExtractProps<typeof Box, never>, Partial<Pick<FlexProps, 'gap'>> {
|
|
5
5
|
/**
|
|
6
6
|
* Optionally pass index to tab item. This should be done if `Tabs.Item` components were created
|
|
7
7
|
* via a `Array::map` function. This index will ensure keyboard navigation works even if items are
|
|
@@ -57,7 +57,7 @@ export declare const StyledTabItem: import("@emotion/styled").StyledComponent<im
|
|
|
57
57
|
ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
|
|
58
58
|
} & {
|
|
59
59
|
theme?: import("@emotion/react").Theme | undefined;
|
|
60
|
-
} & StyledType & Pick<TabsItemProps, "
|
|
60
|
+
} & StyledType & Pick<TabsItemProps, "gap">, {}, {}>;
|
|
61
61
|
export declare const useTabsItem: <P extends {}, R>(model: {
|
|
62
62
|
state: {
|
|
63
63
|
cursorId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabsItem.d.ts","sourceRoot":"","sources":["../../../../tabs/lib/TabsItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAIL,UAAU,EAGV,YAAY,EAKb,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"TabsItem.d.ts","sourceRoot":"","sources":["../../../../tabs/lib/TabsItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAIL,UAAU,EAGV,YAAY,EAKb,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,GAAG,EAAE,SAAS,EAAC,MAAM,kCAAkC,CAAC;AAYhE,MAAM,WAAW,aACf,SAAQ,YAAY,CAAC,OAAO,GAAG,EAAE,KAAK,CAAC,EACrC,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;IACjC;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;;;;;;;;OAaG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,aAAa;;;;oDAsFzB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoBvB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiBnB,CAAC"}
|
|
@@ -51,10 +51,8 @@ var icon_1 = require("@workday/canvas-kit-react/icon");
|
|
|
51
51
|
var collection_1 = require("@workday/canvas-kit-react/collection");
|
|
52
52
|
var useTabsModel_1 = require("./useTabsModel");
|
|
53
53
|
exports.StyledTabItem = common_1.styled(layout_1.Box.as('button'))(function (_a) {
|
|
54
|
-
var theme = _a.theme
|
|
55
|
-
return (__assign(__assign(__assign(__assign({}, tokens_1.type.levels.subtext.large), { '
|
|
56
|
-
marginLeft: spacing || tokens_1.space.xxs,
|
|
57
|
-
}, fontWeight: tokens_1.type.properties.fontWeights.medium, border: 'none', backgroundColor: 'transparent', flex: '0 0 auto', alignItems: 'center', padding: tokens_1.space.xs + " " + tokens_1.space.s, height: 52, boxSizing: 'border-box', cursor: 'pointer', color: tokens_1.colors.licorice300, position: 'relative', borderRadius: tokens_1.borderRadius.m + " " + tokens_1.borderRadius.m + " 0px 0px", transition: 'background 150ms ease, color 150ms ease' }), common_1.hideMouseFocus), { '.wd-icon-background ~ .wd-icon-accent, .wd-icon-background ~ .wd-icon-accent2': {
|
|
54
|
+
var theme = _a.theme;
|
|
55
|
+
return (__assign(__assign(__assign(__assign({}, tokens_1.type.levels.subtext.large), { fontWeight: tokens_1.type.properties.fontWeights.medium, border: 'none', backgroundColor: 'transparent', flex: '0 0 auto', alignItems: 'center', padding: tokens_1.space.xs + " " + tokens_1.space.s, height: 52, boxSizing: 'border-box', cursor: 'pointer', color: tokens_1.colors.licorice300, position: 'relative', borderRadius: tokens_1.borderRadius.m + " " + tokens_1.borderRadius.m + " 0px 0px", transition: 'background 150ms ease, color 150ms ease' }), common_1.hideMouseFocus), { '.wd-icon-background ~ .wd-icon-accent, .wd-icon-background ~ .wd-icon-accent2': {
|
|
58
56
|
fill: tokens_1.iconColors.active,
|
|
59
57
|
}, '&:hover, &:focus': {
|
|
60
58
|
backgroundColor: tokens_1.colors.soap200,
|
|
@@ -100,13 +98,14 @@ exports.StyledTabItem = common_1.styled(layout_1.Box.as('button'))(function (_a)
|
|
|
100
98
|
},
|
|
101
99
|
} }));
|
|
102
100
|
}, function (_a) {
|
|
103
|
-
var children = _a.children;
|
|
101
|
+
var children = _a.children, _b = _a.gap, gap = _b === void 0 ? tokens_1.space.xxs : _b;
|
|
104
102
|
if (typeof children === 'string') {
|
|
105
103
|
return common_1.ellipsisStyles;
|
|
106
104
|
}
|
|
107
105
|
else {
|
|
108
106
|
return {
|
|
109
107
|
display: 'flex',
|
|
108
|
+
gap: gap,
|
|
110
109
|
};
|
|
111
110
|
}
|
|
112
111
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ExtractProps } from '@workday/canvas-kit-react/common';
|
|
3
|
-
import {
|
|
4
|
-
export interface TabListProps<T = any> extends Omit<
|
|
3
|
+
import { Flex } from '@workday/canvas-kit-react/layout';
|
|
4
|
+
export interface TabListProps<T = any> extends Omit<ExtractProps<typeof Flex, never>, 'children'> {
|
|
5
5
|
/**
|
|
6
6
|
* If items are passed to a `TabsModel`, the child of `Tabs.List` should be a render prop. The
|
|
7
7
|
* List will determine how and when the item will be rendered.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabsList.d.ts","sourceRoot":"","sources":["../../../../tabs/lib/TabsList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAIL,YAAY,EAIb,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"TabsList.d.ts","sourceRoot":"","sources":["../../../../tabs/lib/TabsList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAIL,YAAY,EAIb,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,IAAI,EAAC,MAAM,kCAAkC,CAAC;AAStD,MAAM,WAAW,YAAY,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,IAAI,CAAC,YAAY,CAAC,OAAO,IAAI,EAAE,KAAK,CAAC,EAAE,UAAU,CAAC;IAC/F;;;;;;;;OAQG;IACH,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC;IAC3D,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAClC;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAOvB,CAAC;AAMF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BnB,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;CA+B7B,CAAC"}
|
|
@@ -52,7 +52,7 @@ exports.useTabsList = common_1.composeHooks(common_1.createElemPropsHook(useTabs
|
|
|
52
52
|
var modality = common_1.useModalityType();
|
|
53
53
|
return { role: 'tablist', overflowX: modality === 'touch' ? 'auto' : undefined };
|
|
54
54
|
}), collection_1.useOverflowListMeasure, collection_1.useListResetCursorOnBlur);
|
|
55
|
-
var StyledStack = common_1.styled(layout_1.
|
|
55
|
+
var StyledStack = common_1.styled(layout_1.Flex)(function (_a) {
|
|
56
56
|
var maskImage = _a.maskImage;
|
|
57
57
|
return ({
|
|
58
58
|
maskImage: maskImage,
|
|
@@ -66,7 +66,7 @@ exports.TabsList = common_1.createSubcomponent('div')({
|
|
|
66
66
|
var children = _a.children, overflowButton = _a.overflowButton, elemProps = __rest(_a, ["children", "overflowButton"]);
|
|
67
67
|
var modality = common_1.useModalityType();
|
|
68
68
|
var touchStates = exports.useTouchDirection();
|
|
69
|
-
return (React.createElement(StyledStack, __assign({ as: Element, position: "relative", borderBottom: "1px solid " + tokens_1.commonColors.divider, paddingX: modality === 'touch' ? 'zero' : 'm',
|
|
69
|
+
return (React.createElement(StyledStack, __assign({ as: Element, position: "relative", borderBottom: "1px solid " + tokens_1.commonColors.divider, paddingX: modality === 'touch' ? 'zero' : 'm', gap: "xs", maskImage: modality === 'touch' && touchStates.isDragging
|
|
70
70
|
? "linear-gradient(" + (touchStates.direction === 'left' ? 'to left' : 'to right') + ", white 80%, transparent)"
|
|
71
71
|
: undefined }, elemProps),
|
|
72
72
|
collection_1.useListRenderItems(model, children),
|
|
@@ -61,7 +61,7 @@ exports.TabsOverflowButton = common_1.createSubcomponent('button')({
|
|
|
61
61
|
elemPropsHook: exports.useTabsOverflowButton,
|
|
62
62
|
})(function (_a, Element) {
|
|
63
63
|
var children = _a.children, elemProps = __rest(_a, ["children"]);
|
|
64
|
-
return (React.createElement(TabsItem_1.StyledTabItem, __assign({ type: "button",
|
|
64
|
+
return (React.createElement(TabsItem_1.StyledTabItem, __assign({ type: "button", gap: "xxxs", as: Element }, elemProps),
|
|
65
65
|
React.createElement("span", null, children),
|
|
66
66
|
React.createElement(icon_1.SystemIcon, { icon: canvas_system_icons_web_1.chevronDownSmallIcon })));
|
|
67
67
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ExtractProps } from '@workday/canvas-kit-react/common';
|
|
3
|
-
import {
|
|
4
|
-
export interface ActionBarListProps<T = any> extends Omit<
|
|
3
|
+
import { Flex } from '@workday/canvas-kit-react/layout';
|
|
4
|
+
export interface ActionBarListProps<T = any> extends Omit<ExtractProps<typeof Flex, never>, 'children'> {
|
|
5
5
|
/**
|
|
6
6
|
* If items are passed to a `ActionBarModel`, the child of `ActionBar.List` should be a render prop. The
|
|
7
7
|
* List will determine how and when the item will be rendered.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionBarList.d.ts","sourceRoot":"","sources":["../../../../action-bar/lib/ActionBarList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAEL,YAAY,EAIb,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"ActionBarList.d.ts","sourceRoot":"","sources":["../../../../action-bar/lib/ActionBarList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAEL,YAAY,EAIb,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,IAAI,EAAC,MAAM,kCAAkC,CAAC;AAKtD,MAAM,WAAW,kBAAkB,CAAC,CAAC,GAAG,GAAG,CACzC,SAAQ,IAAI,CAAC,YAAY,CAAC,OAAO,IAAI,EAAE,KAAK,CAAC,EAAE,UAAU,CAAC;IAC1D;;;;;;;;OAQG;IACH,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC;IAC1E;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAClC;AAcD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAyB,CAAC;AAEvD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBxB,CAAC"}
|
|
@@ -23,10 +23,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
23
23
|
import * as React from 'react';
|
|
24
24
|
import { commonColors, colors, space } from '@workday/canvas-kit-react/tokens';
|
|
25
25
|
import { createSubcomponent, getCanvasTheme, styled, } from '@workday/canvas-kit-react/common';
|
|
26
|
-
import {
|
|
26
|
+
import { Flex } from '@workday/canvas-kit-react/layout';
|
|
27
27
|
import { useOverflowListMeasure, useListRenderItems } from '@workday/canvas-kit-react/collection';
|
|
28
28
|
import { useActionBarModel } from './useActionBarModel';
|
|
29
|
-
var
|
|
29
|
+
var ResponsiveList = styled(Flex)(function (_a) {
|
|
30
30
|
var _b;
|
|
31
31
|
var theme = _a.theme;
|
|
32
32
|
var canvasTheme = getCanvasTheme(theme);
|
|
@@ -46,7 +46,7 @@ export var ActionBarList = createSubcomponent('div')({
|
|
|
46
46
|
elemPropsHook: useActionBarList,
|
|
47
47
|
})(function (_a, Element, model) {
|
|
48
48
|
var children = _a.children, overflowButton = _a.overflowButton, elemProps = __rest(_a, ["children", "overflowButton"]);
|
|
49
|
-
return (React.createElement(
|
|
49
|
+
return (React.createElement(ResponsiveList, __assign({ as: Element, gap: "s", depth: 1, background: commonColors.background, borderTop: "solid 1px " + colors.soap400, padding: space.s + " " + space.xl + " ", position: "fixed", bottom: 0, left: 0, right: 0 }, elemProps),
|
|
50
50
|
useListRenderItems(model, children),
|
|
51
51
|
overflowButton));
|
|
52
52
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ExtractProps } from '@workday/canvas-kit-react/common';
|
|
3
3
|
import { Flex } from '@workday/canvas-kit-react/layout';
|
|
4
|
-
export interface BreadcrumbsListProps<T = any> extends Omit<
|
|
4
|
+
export interface BreadcrumbsListProps<T = any> extends Omit<ExtractProps<typeof Flex, never>, 'children'> {
|
|
5
5
|
overflowButton?: React.ReactNode;
|
|
6
6
|
/**
|
|
7
7
|
* If items are passed to a `BreadcrumbsModel`, the child of `Breadcrumbs.List` should be a render prop. The
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BreadcrumbsList.d.ts","sourceRoot":"","sources":["../../../../breadcrumbs/lib/BreadcrumbsList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAqB,YAAY,EAAC,MAAM,kCAAkC,CAAC;AAClF,OAAO,EAAC,IAAI,EAAC,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"BreadcrumbsList.d.ts","sourceRoot":"","sources":["../../../../breadcrumbs/lib/BreadcrumbsList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAqB,YAAY,EAAC,MAAM,kCAAkC,CAAC;AAClF,OAAO,EAAC,IAAI,EAAC,MAAM,kCAAkC,CAAC;AAKtD,MAAM,WAAW,oBAAoB,CAAC,CAAC,GAAG,GAAG,CAC3C,SAAQ,IAAI,CAAC,YAAY,CAAC,OAAO,IAAI,EAAE,KAAK,CAAC,EAAE,UAAU,CAAC;IAC1D,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC;;;;;;;;OAQG;IACH,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC;CAC3E;AAED,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0B1B,CAAC"}
|
|
@@ -16,9 +16,8 @@ export { AllStyleProps, CommonStyleProps } from './lib/utils/styleProps';
|
|
|
16
16
|
export * from './lib/utils/text';
|
|
17
17
|
export * from './lib/Flex';
|
|
18
18
|
export * from './lib/Grid';
|
|
19
|
-
export * from './lib/Stack';
|
|
20
19
|
export type { FlexStyleProps } from './lib/utils/flex';
|
|
21
20
|
export type { GridStyleProps } from './lib/utils/grid';
|
|
22
21
|
export type { GridItemStyleProps, gridItemStyleFnConfigs } from './lib/utils/gridItem';
|
|
23
|
-
export
|
|
22
|
+
export * from './lib/utils/systemProps';
|
|
24
23
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../layout/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAC,eAAe,EAAE,mBAAmB,EAAC,MAAM,mBAAmB,CAAC;AACvE,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAC,eAAe,EAAE,mBAAmB,EAAC,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAC,aAAa,EAAE,gBAAgB,EAAC,MAAM,wBAAwB,CAAC;AACvE,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../layout/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAC,eAAe,EAAE,mBAAmB,EAAC,MAAM,mBAAmB,CAAC;AACvE,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAC,eAAe,EAAE,mBAAmB,EAAC,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAC,aAAa,EAAE,gBAAgB,EAAC,MAAM,wBAAwB,CAAC;AACvE,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,YAAY,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AACvF,cAAc,yBAAyB,CAAC"}
|
package/dist/es6/layout/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ExtractProps } from '@workday/canvas-kit-react/common';
|
|
3
|
-
import {
|
|
4
|
-
export interface MenuListProps<T = any> extends Omit<
|
|
3
|
+
import { Flex } from '@workday/canvas-kit-react/layout';
|
|
4
|
+
export interface MenuListProps<T = any> extends Omit<ExtractProps<typeof Flex, never>, 'children'> {
|
|
5
5
|
/**
|
|
6
6
|
* The label text of the MenuList.
|
|
7
7
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuList.d.ts","sourceRoot":"","sources":["../../../../menu/lib/MenuList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAGL,YAAY,EACb,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"MenuList.d.ts","sourceRoot":"","sources":["../../../../menu/lib/MenuList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAGL,YAAY,EACb,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAC,IAAI,EAAC,MAAM,kCAAkC,CAAC;AAItD,MAAM,WAAW,aAAa,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,IAAI,CAAC,YAAY,CAAC,OAAO,IAAI,EAAE,KAAK,CAAC,EAAE,UAAU,CAAC;IAChG;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;CAC5D;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAKtB,CAAC;AAEH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBnB,CAAC"}
|
|
@@ -37,5 +37,5 @@ export var MenuList = createSubcomponent('div')({
|
|
|
37
37
|
elemPropsHook: useMenuList,
|
|
38
38
|
})(function (_a, Element, model) {
|
|
39
39
|
var children = _a.children, elemProps = __rest(_a, ["children"]);
|
|
40
|
-
return (React.createElement(ListBox, __assign({ as: Element, model: model, background: commonColors.background, borderRadius: "zero", padding: "zero", marginY: "xxs",
|
|
40
|
+
return (React.createElement(ListBox, __assign({ as: Element, model: model, background: commonColors.background, borderRadius: "zero", padding: "zero", marginY: "xxs", gap: "zero", overflowY: "auto", flexDirection: model.state.orientation === 'vertical' ? 'column' : 'row' }, elemProps), children));
|
|
41
41
|
});
|
|
@@ -23,11 +23,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
23
23
|
import * as React from 'react';
|
|
24
24
|
import { TertiaryButton } from '@workday/canvas-kit-react/button';
|
|
25
25
|
import { chevronLeftSmallIcon, chevron2xLeftSmallIcon, chevronRightSmallIcon, chevron2xRightSmallIcon, } from '@workday/canvas-system-icons-web';
|
|
26
|
-
import {
|
|
26
|
+
import { Flex } from '@workday/canvas-kit-react/layout';
|
|
27
27
|
import { useRTL } from './common/utils/useRTL';
|
|
28
28
|
export var Controls = function (_a) {
|
|
29
29
|
var children = _a.children, elemProps = __rest(_a, ["children"]);
|
|
30
|
-
return (React.createElement(
|
|
30
|
+
return (React.createElement(Flex, __assign({ gap: "xxxs", alignItems: "center" }, elemProps), children));
|
|
31
31
|
};
|
|
32
32
|
export var JumpToFirstButton = function (_a) {
|
|
33
33
|
var model = _a.model, onClick = _a.onClick, restProps = __rest(_a, ["model", "onClick"]);
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare type GoToFormProps = React.FormHTMLAttributes<HTMLFormElement> &
|
|
4
|
-
|
|
5
|
-
};
|
|
6
|
-
export declare const GoToForm: ({ children, onSubmit, spacing, ...elemProps }: GoToFormProps) => JSX.Element;
|
|
2
|
+
import { FlexProps } from '@workday/canvas-kit-react/layout';
|
|
3
|
+
export declare type GoToFormProps = React.FormHTMLAttributes<HTMLFormElement> & FlexProps;
|
|
4
|
+
export declare const GoToForm: ({ children, onSubmit, gap, ...elemProps }: GoToFormProps) => JSX.Element;
|
|
7
5
|
//# sourceMappingURL=Form.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../../../../pagination/lib/Pagination/GoTo/Form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,
|
|
1
|
+
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../../../../pagination/lib/Pagination/GoTo/Form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,SAAS,EAAC,MAAM,kCAAkC,CAAC;AAGjE,oBAAY,aAAa,GAAG,KAAK,CAAC,kBAAkB,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC;AAElF,eAAO,MAAM,QAAQ,8CAAqD,aAAa,gBAetF,CAAC"}
|
|
@@ -21,10 +21,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
import * as React from 'react';
|
|
24
|
-
import {
|
|
24
|
+
import { Flex } from '@workday/canvas-kit-react/layout';
|
|
25
25
|
import { useRTL } from '../common/utils/useRTL';
|
|
26
26
|
export var GoToForm = function (_a) {
|
|
27
|
-
var children = _a.children, onSubmit = _a.onSubmit, _b = _a.
|
|
27
|
+
var children = _a.children, onSubmit = _a.onSubmit, _b = _a.gap, gap = _b === void 0 ? 'xxs' : _b, elemProps = __rest(_a, ["children", "onSubmit", "gap"]);
|
|
28
28
|
var shouldUseRTL = useRTL().shouldUseRTL;
|
|
29
|
-
return (React.createElement(
|
|
29
|
+
return (React.createElement(Flex, __assign({ as: "form", alignItems: "center", gap: gap, paddingLeft: shouldUseRTL ? 'xxs' : undefined, paddingRight: shouldUseRTL ? 'xxs' : undefined, onSubmit: onSubmit }, elemProps), children));
|
|
30
30
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { PaginationModel } from './types';
|
|
3
3
|
import { ListItemProps } from './common/List';
|
|
4
|
-
import {
|
|
5
|
-
export interface PageListProps extends Omit<
|
|
4
|
+
import { FlexProps } from '@workday/canvas-kit-react/layout';
|
|
5
|
+
export interface PageListProps extends Omit<FlexProps, 'as' | 'children'> {
|
|
6
6
|
model: PaginationModel;
|
|
7
7
|
children?: (model: PaginationModel) => React.ReactNode[] | React.ReactNode;
|
|
8
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageList.d.ts","sourceRoot":"","sources":["../../../../../pagination/lib/Pagination/PageList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,eAAe,EAAC,MAAM,SAAS,CAAC;AACxC,OAAO,EAAW,aAAa,EAAC,MAAM,eAAe,CAAC;AACtD,OAAO,
|
|
1
|
+
{"version":3,"file":"PageList.d.ts","sourceRoot":"","sources":["../../../../../pagination/lib/Pagination/PageList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,eAAe,EAAC,MAAM,SAAS,CAAC;AACxC,OAAO,EAAW,aAAa,EAAC,MAAM,eAAe,CAAC;AACtD,OAAO,EAAO,SAAS,EAAC,MAAM,kCAAkC,CAAC;AAEjE,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,SAAS,EAAE,IAAI,GAAG,UAAU,CAAC;IACvE,KAAK,EAAE,eAAe,CAAC;IACvB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,KAAK,CAAC,SAAS,EAAE,GAAG,KAAK,CAAC,SAAS,CAAC;CAC5E;AAED,eAAO,MAAM,QAAQ,sCAAqC,aAAa,gBActE,CAAC;AAEF,oBAAY,iBAAiB,GAAG,aAAa,CAAC;AAE9C,eAAO,MAAM,YAAY,+BAA8B,iBAAiB,gBAEvE,CAAC"}
|
|
@@ -22,10 +22,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
};
|
|
23
23
|
import * as React from 'react';
|
|
24
24
|
import { ListItem } from './common/List';
|
|
25
|
-
import {
|
|
25
|
+
import { Flex } from '@workday/canvas-kit-react/layout';
|
|
26
26
|
export var PageList = function (_a) {
|
|
27
27
|
var model = _a.model, children = _a.children, elemProps = __rest(_a, ["model", "children"]);
|
|
28
|
-
return (React.createElement(
|
|
28
|
+
return (React.createElement(Flex, __assign({ margin: "zero", as: "ol", role: "list", paddingLeft: "zero", paddingRight: "zero", gap: "xxxs" }, elemProps), typeof children === 'function' ? children(model) : children));
|
|
29
29
|
};
|
|
30
30
|
export var PageListItem = function (_a) {
|
|
31
31
|
var children = _a.children, elemProps = __rest(_a, ["children"]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { StyledType, ExtractProps } from '@workday/canvas-kit-react/common';
|
|
3
|
-
import { Box,
|
|
4
|
-
export interface TabsItemProps extends ExtractProps<typeof Box, never>, Partial<Pick<
|
|
3
|
+
import { Box, FlexProps } from '@workday/canvas-kit-react/layout';
|
|
4
|
+
export interface TabsItemProps extends ExtractProps<typeof Box, never>, Partial<Pick<FlexProps, 'gap'>> {
|
|
5
5
|
/**
|
|
6
6
|
* Optionally pass index to tab item. This should be done if `Tabs.Item` components were created
|
|
7
7
|
* via a `Array::map` function. This index will ensure keyboard navigation works even if items are
|
|
@@ -57,7 +57,7 @@ export declare const StyledTabItem: import("@emotion/styled").StyledComponent<im
|
|
|
57
57
|
ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
|
|
58
58
|
} & {
|
|
59
59
|
theme?: import("@emotion/react").Theme | undefined;
|
|
60
|
-
} & StyledType & Pick<TabsItemProps, "
|
|
60
|
+
} & StyledType & Pick<TabsItemProps, "gap">, {}, {}>;
|
|
61
61
|
export declare const useTabsItem: <P extends {}, R>(model: {
|
|
62
62
|
state: {
|
|
63
63
|
cursorId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabsItem.d.ts","sourceRoot":"","sources":["../../../../tabs/lib/TabsItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAIL,UAAU,EAGV,YAAY,EAKb,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"TabsItem.d.ts","sourceRoot":"","sources":["../../../../tabs/lib/TabsItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAIL,UAAU,EAGV,YAAY,EAKb,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,GAAG,EAAE,SAAS,EAAC,MAAM,kCAAkC,CAAC;AAYhE,MAAM,WAAW,aACf,SAAQ,YAAY,CAAC,OAAO,GAAG,EAAE,KAAK,CAAC,EACrC,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;IACjC;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;;;;;;;;OAaG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,aAAa;;;;oDAsFzB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoBvB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiBnB,CAAC"}
|