@workday/canvas-kit-react 7.0.0-alpha.97-next.23 → 7.0.2
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/index.ts +1 -0
- package/action-bar/lib/ActionBar.tsx +33 -31
- package/action-bar/lib/ActionBarItem.tsx +41 -0
- package/action-bar/lib/ActionBarList.tsx +70 -0
- package/action-bar/lib/ActionBarOverflowButton.tsx +36 -0
- package/action-bar/lib/useActionBarModel.tsx +91 -0
- package/avatar/lib/Avatar.tsx +4 -0
- package/button/index.ts +1 -0
- package/button/lib/ExternalHyperlink.tsx +59 -0
- package/button/lib/TertiaryButton.tsx +1 -0
- package/collection/lib/useListItemRovingFocus.tsx +4 -2
- package/collection/lib/useListRenderItem.tsx +3 -3
- package/common/lib/parts/_brand-assets.ts +1 -1
- package/common/lib/utils/elements.ts +5 -1
- package/dist/commonjs/action-bar/index.d.ts +1 -0
- package/dist/commonjs/action-bar/index.d.ts.map +1 -1
- package/dist/commonjs/action-bar/index.js +1 -0
- package/dist/commonjs/action-bar/lib/ActionBar.d.ts +3495 -5
- package/dist/commonjs/action-bar/lib/ActionBar.d.ts.map +1 -1
- package/dist/commonjs/action-bar/lib/ActionBar.js +28 -27
- package/dist/commonjs/action-bar/lib/ActionBarItem.d.ts +215 -0
- package/dist/commonjs/action-bar/lib/ActionBarItem.d.ts.map +1 -0
- package/dist/commonjs/action-bar/lib/ActionBarItem.js +46 -0
- package/dist/commonjs/action-bar/lib/ActionBarList.d.ts +221 -0
- package/dist/commonjs/action-bar/lib/ActionBarList.d.ts.map +1 -0
- package/dist/commonjs/action-bar/lib/ActionBarList.js +74 -0
- package/dist/commonjs/action-bar/lib/ActionBarOverflowButton.d.ts +230 -0
- package/dist/commonjs/action-bar/lib/ActionBarOverflowButton.d.ts.map +1 -0
- package/dist/commonjs/action-bar/lib/ActionBarOverflowButton.js +57 -0
- package/dist/commonjs/action-bar/lib/useActionBarModel.d.ts +1659 -0
- package/dist/commonjs/action-bar/lib/useActionBarModel.d.ts.map +1 -0
- package/dist/commonjs/action-bar/lib/useActionBarModel.js +77 -0
- package/dist/commonjs/avatar/lib/Avatar.d.ts.map +1 -1
- package/dist/commonjs/avatar/lib/Avatar.js +3 -0
- package/dist/commonjs/button/index.d.ts +1 -0
- package/dist/commonjs/button/index.d.ts.map +1 -1
- package/dist/commonjs/button/index.js +3 -1
- package/dist/commonjs/button/lib/ExternalHyperlink.d.ts +11 -0
- package/dist/commonjs/button/lib/ExternalHyperlink.d.ts.map +1 -0
- package/dist/commonjs/button/lib/ExternalHyperlink.js +48 -0
- package/dist/commonjs/button/lib/TertiaryButton.d.ts.map +1 -1
- package/dist/commonjs/button/lib/TertiaryButton.js +1 -0
- package/dist/commonjs/collection/lib/useListItemRovingFocus.d.ts +1 -1
- package/dist/commonjs/collection/lib/useListItemRovingFocus.d.ts.map +1 -1
- package/dist/commonjs/collection/lib/useListItemRovingFocus.js +2 -2
- package/dist/commonjs/collection/lib/useListRenderItem.d.ts +1 -1
- package/dist/commonjs/collection/lib/useListRenderItem.d.ts.map +1 -1
- package/dist/commonjs/collection/lib/useListRenderItem.js +2 -2
- package/dist/commonjs/common/lib/parts/_brand-assets.js +1 -1
- package/dist/commonjs/common/lib/utils/elements.d.ts +2 -2
- package/dist/commonjs/common/lib/utils/elements.d.ts.map +1 -1
- package/dist/commonjs/common/lib/utils/elements.js +4 -1
- package/dist/commonjs/form-field/lib/Label.d.ts.map +1 -1
- package/dist/commonjs/form-field/lib/Label.js +3 -7
- package/dist/commonjs/icon/lib/Icon.d.ts +1 -1
- package/dist/commonjs/icon/lib/Icon.d.ts.map +1 -1
- package/dist/commonjs/icon/lib/Icon.js +2 -4
- package/dist/commonjs/icon/lib/SystemIcon.d.ts +1 -1
- package/dist/commonjs/icon/lib/SystemIcon.d.ts.map +1 -1
- package/dist/commonjs/popup/lib/hooks/useDisableBodyScroll.d.ts.map +1 -1
- package/dist/commonjs/popup/lib/hooks/useDisableBodyScroll.js +2 -0
- package/dist/commonjs/popup/lib/hooks/usePopupTarget.js +1 -1
- package/dist/commonjs/table/lib/TableRow.d.ts +4 -4
- package/dist/commonjs/table/lib/TableRow.d.ts.map +1 -1
- package/dist/commonjs/table/lib/TableRow.js +12 -26
- package/dist/commonjs/tabs/lib/Tabs.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/Tabs.js +1 -2
- package/dist/commonjs/tabs/lib/TabsItem.d.ts +1 -1
- package/dist/commonjs/tabs/lib/TabsItem.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/TabsItem.js +1 -0
- package/dist/es6/action-bar/index.d.ts +1 -0
- package/dist/es6/action-bar/index.d.ts.map +1 -1
- package/dist/es6/action-bar/index.js +1 -0
- package/dist/es6/action-bar/lib/ActionBar.d.ts +3495 -5
- package/dist/es6/action-bar/lib/ActionBar.d.ts.map +1 -1
- package/dist/es6/action-bar/lib/ActionBar.js +29 -28
- package/dist/es6/action-bar/lib/ActionBarItem.d.ts +215 -0
- package/dist/es6/action-bar/lib/ActionBarItem.d.ts.map +1 -0
- package/dist/es6/action-bar/lib/ActionBarItem.js +24 -0
- package/dist/es6/action-bar/lib/ActionBarList.d.ts +221 -0
- package/dist/es6/action-bar/lib/ActionBarList.d.ts.map +1 -0
- package/dist/es6/action-bar/lib/ActionBarList.js +52 -0
- package/dist/es6/action-bar/lib/ActionBarOverflowButton.d.ts +230 -0
- package/dist/es6/action-bar/lib/ActionBarOverflowButton.d.ts.map +1 -0
- package/dist/es6/action-bar/lib/ActionBarOverflowButton.js +32 -0
- package/dist/es6/action-bar/lib/useActionBarModel.d.ts +1659 -0
- package/dist/es6/action-bar/lib/useActionBarModel.d.ts.map +1 -0
- package/dist/es6/action-bar/lib/useActionBarModel.js +71 -0
- package/dist/es6/avatar/lib/Avatar.d.ts.map +1 -1
- package/dist/es6/avatar/lib/Avatar.js +3 -0
- package/dist/es6/button/index.d.ts +1 -0
- package/dist/es6/button/index.d.ts.map +1 -1
- package/dist/es6/button/index.js +1 -0
- package/dist/es6/button/lib/ExternalHyperlink.d.ts +11 -0
- package/dist/es6/button/lib/ExternalHyperlink.d.ts.map +1 -0
- package/dist/es6/button/lib/ExternalHyperlink.js +42 -0
- package/dist/es6/button/lib/TertiaryButton.d.ts.map +1 -1
- package/dist/es6/button/lib/TertiaryButton.js +1 -0
- package/dist/es6/collection/lib/useListItemRovingFocus.d.ts +1 -1
- package/dist/es6/collection/lib/useListItemRovingFocus.d.ts.map +1 -1
- package/dist/es6/collection/lib/useListItemRovingFocus.js +2 -2
- package/dist/es6/collection/lib/useListRenderItem.d.ts +1 -1
- package/dist/es6/collection/lib/useListRenderItem.d.ts.map +1 -1
- package/dist/es6/collection/lib/useListRenderItem.js +2 -2
- package/dist/es6/common/lib/parts/_brand-assets.js +1 -1
- package/dist/es6/common/lib/utils/elements.d.ts +2 -2
- package/dist/es6/common/lib/utils/elements.d.ts.map +1 -1
- package/dist/es6/common/lib/utils/elements.js +4 -1
- package/dist/es6/form-field/lib/Label.d.ts.map +1 -1
- package/dist/es6/form-field/lib/Label.js +1 -2
- package/dist/es6/icon/lib/Icon.d.ts +1 -1
- package/dist/es6/icon/lib/Icon.d.ts.map +1 -1
- package/dist/es6/icon/lib/Icon.js +2 -4
- package/dist/es6/icon/lib/SystemIcon.d.ts +1 -1
- package/dist/es6/icon/lib/SystemIcon.d.ts.map +1 -1
- package/dist/es6/popup/lib/hooks/useDisableBodyScroll.d.ts.map +1 -1
- package/dist/es6/popup/lib/hooks/useDisableBodyScroll.js +2 -0
- package/dist/es6/popup/lib/hooks/usePopupTarget.js +1 -1
- package/dist/es6/table/lib/TableRow.d.ts +4 -4
- package/dist/es6/table/lib/TableRow.d.ts.map +1 -1
- package/dist/es6/table/lib/TableRow.js +12 -26
- package/dist/es6/tabs/lib/Tabs.d.ts.map +1 -1
- package/dist/es6/tabs/lib/Tabs.js +1 -2
- package/dist/es6/tabs/lib/TabsItem.d.ts.map +1 -1
- package/dist/es6/tabs/lib/TabsItem.js +1 -0
- package/form-field/lib/Label.tsx +1 -2
- package/icon/lib/Icon.tsx +2 -1
- package/icon/lib/SystemIcon.tsx +1 -1
- package/package.json +5 -5
- package/popup/lib/hooks/useDisableBodyScroll.ts +2 -0
- package/popup/lib/hooks/usePopupTarget.ts +1 -1
- package/table/lib/TableRow.tsx +18 -11
- package/tabs/lib/Tabs.tsx +1 -5
- package/tabs/lib/TabsItem.tsx +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useActionBarModel.d.ts","sourceRoot":"","sources":["../../../../action-bar/lib/useActionBarModel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,eAAO,MAAM,iBAAiB;IAG1B;;;OAGG;;IAEH;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;EAwEL,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.useActionBarModel = void 0;
|
|
18
|
+
var react_1 = __importDefault(require("react"));
|
|
19
|
+
var common_1 = require("@workday/canvas-kit-react/common");
|
|
20
|
+
var collection_1 = require("@workday/canvas-kit-react/collection");
|
|
21
|
+
var menu_1 = require("@workday/canvas-kit-react/menu");
|
|
22
|
+
exports.useActionBarModel = common_1.createModelHook({
|
|
23
|
+
defaultConfig: __assign(__assign({}, collection_1.useOverflowListModel.defaultConfig), {
|
|
24
|
+
/**
|
|
25
|
+
* Optional id for the whole `ActionBar` group. If not provided, a unique id will be created.
|
|
26
|
+
* @default useUniqueId()
|
|
27
|
+
*/
|
|
28
|
+
id: '',
|
|
29
|
+
/**
|
|
30
|
+
* The default ActionBar sub-components only handle rendering of button group in a horizontal orientation,
|
|
31
|
+
* but the sub-components could be replaced to handle vertical orientations.
|
|
32
|
+
* @default 'horizontal'
|
|
33
|
+
*/
|
|
34
|
+
orientation: 'horizontal', menuConfig: {} }),
|
|
35
|
+
requiredConfig: collection_1.useOverflowListModel.requiredConfig,
|
|
36
|
+
})(function (config) {
|
|
37
|
+
var getId = config.getId || collection_1.defaultGetId;
|
|
38
|
+
var items = config.items;
|
|
39
|
+
var model = collection_1.useOverflowListModel(collection_1.useOverflowListModel.mergeConfig(config, {
|
|
40
|
+
orientation: config.orientation || 'horizontal',
|
|
41
|
+
items: items,
|
|
42
|
+
shouldVirtualize: false,
|
|
43
|
+
}));
|
|
44
|
+
var hiddenIds = model.state.hiddenIds;
|
|
45
|
+
var nonInteractiveIds = model.state.nonInteractiveIds;
|
|
46
|
+
var totalSize = model.state.items.length;
|
|
47
|
+
// Only show a maximum of 3 buttons
|
|
48
|
+
if (totalSize - hiddenIds.length >= 3) {
|
|
49
|
+
hiddenIds = items.slice(3, totalSize).map(getId);
|
|
50
|
+
}
|
|
51
|
+
// Always show the first button and make sure it is interactive
|
|
52
|
+
if (totalSize - hiddenIds.length === 0) {
|
|
53
|
+
hiddenIds = items.slice(1, totalSize).map(getId);
|
|
54
|
+
}
|
|
55
|
+
nonInteractiveIds = hiddenIds;
|
|
56
|
+
var state = __assign(__assign({}, model.state), { hiddenIds: hiddenIds,
|
|
57
|
+
nonInteractiveIds: nonInteractiveIds, orientation: config.orientation || 'horizontal' });
|
|
58
|
+
var overflowItems = react_1.default.useMemo(function () { return (items ? items.filter(function (item) { return state.hiddenIds.includes(getId(item)); }) : undefined); },
|
|
59
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
60
|
+
[state.hiddenIds, items]);
|
|
61
|
+
var events = __assign({}, model.events);
|
|
62
|
+
var menu = menu_1.useMenuModel(menu_1.useMenuModel.mergeConfig(config.menuConfig, {
|
|
63
|
+
id: "act-bar-menu-" + model.state.id,
|
|
64
|
+
items: overflowItems,
|
|
65
|
+
nonInteractiveIds: state.nonInteractiveIds.filter(function (key) { return !state.hiddenIds.includes(key); }),
|
|
66
|
+
onSelect: function () {
|
|
67
|
+
menu.events.hide();
|
|
68
|
+
},
|
|
69
|
+
onShow: function () {
|
|
70
|
+
// Always select the first item when the menu is opened
|
|
71
|
+
menu.events.goToFirst();
|
|
72
|
+
},
|
|
73
|
+
}));
|
|
74
|
+
return __assign(__assign({}, model), { state: state,
|
|
75
|
+
events: events,
|
|
76
|
+
menu: menu });
|
|
77
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../avatar/lib/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAItC,OAAO,EAAmB,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAGtF,oBAAY,aAAa;IACvB,KAAK,IAAA;IACL,IAAI,IAAA;CACL;AAED,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IAChF;;;OAGG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB;;;OAGG;IACH,IAAI,CAAC,EAAE,oBAAoB,GAAG,MAAM,CAAC;IACrC;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,EAAE,CAAC,EAAE,KAAK,CAAC;CACZ;AAED;;GAEG;AACH,aAAK,cAAc,GAAG,IAAI,CAAC,WAAW,EAAE,MAAM,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,GAC1F,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;AAEvC;;GAEG;AACH,aAAK,cAAc,GAAG;IACpB,CAAC,KAAK,EAAE;QAAC,EAAE,EAAE,KAAK,CAAA;KAAC,GAAG,cAAc,GAAG;QAAC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,CAAA;KAAC,GAAG,KAAK,CAAC,YAAY,CAAC;IAC3F,CAAC,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,GAAG;QAAC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAA;KAAC,GAAG,KAAK,CAAC,Y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AAG,KAAK,CAAC,YAAY,CAAC;IAC5F,OAAO,EAAE,OAAO,aAAa,CAAC;IAC9B,IAAI,EAAE,OAAO,oBAAoB,CAAC;CACnC,CAAC;AAoEF,QAAA,MAAM,MAAM,EAAE,cAmDN,CAAC;AAKT,eAAe,MAAM,CAAC"}
|
|
@@ -111,6 +111,9 @@ var Avatar = react_1.default.forwardRef(function (_a, ref) {
|
|
|
111
111
|
setImageLoaded(true);
|
|
112
112
|
}
|
|
113
113
|
};
|
|
114
|
+
react_1.default.useLayoutEffect(function () {
|
|
115
|
+
setImageLoaded(false);
|
|
116
|
+
}, [url]);
|
|
114
117
|
var background = variant === AvatarVariant.Dark ? tokens_1.colors.blueberry400 : tokens_1.colors.soap300;
|
|
115
118
|
return (react_1.default.createElement(StyledContainer, __assign({ size: size, "aria-label": altText, onClick: onClick, disabled: onClick ? false : true, ref: ref }, elemProps),
|
|
116
119
|
react_1.default.createElement(StyledStack, { size: size },
|
|
@@ -7,5 +7,6 @@ export { ToolbarIconButton, ToolbarIconButtonProps } from './lib/ToolbarIconButt
|
|
|
7
7
|
export { ToolbarDropdownButton, ToolbarDropdownButtonProps } from './lib/ToolbarDropdownButton';
|
|
8
8
|
export { Hyperlink, HyperlinkProps } from './lib/Hyperlink';
|
|
9
9
|
export { BaseButton, ButtonContainerProps } from './lib/BaseButton';
|
|
10
|
+
export { ExternalHyperlink, ExternalHyperlinkProps } from './lib/ExternalHyperlink';
|
|
10
11
|
export * from './lib/types';
|
|
11
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAE,kBAAkB,EAAC,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAC,eAAe,EAAE,oBAAoB,EAAC,MAAM,uBAAuB,CAAC;AAC5E,OAAO,EAAC,cAAc,EAAE,mBAAmB,EAAC,MAAM,s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 -10,7 +10,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.BaseButton = exports.Hyperlink = exports.ToolbarDropdownButton = exports.ToolbarIconButton = exports.deprecated_Button = exports.DeleteButton = exports.TertiaryButton = exports.SecondaryButton = exports.PrimaryButton = void 0;
|
|
13
|
+
exports.ExternalHyperlink = exports.BaseButton = exports.Hyperlink = exports.ToolbarDropdownButton = exports.ToolbarIconButton = exports.deprecated_Button = exports.DeleteButton = exports.TertiaryButton = exports.SecondaryButton = exports.PrimaryButton = void 0;
|
|
14
14
|
var PrimaryButton_1 = require("./lib/PrimaryButton");
|
|
15
15
|
Object.defineProperty(exports, "PrimaryButton", { enumerable: true, get: function () { return PrimaryButton_1.PrimaryButton; } });
|
|
16
16
|
var SecondaryButton_1 = require("./lib/SecondaryButton");
|
|
@@ -29,4 +29,6 @@ var Hyperlink_1 = require("./lib/Hyperlink");
|
|
|
29
29
|
Object.defineProperty(exports, "Hyperlink", { enumerable: true, get: function () { return Hyperlink_1.Hyperlink; } });
|
|
30
30
|
var BaseButton_1 = require("./lib/BaseButton");
|
|
31
31
|
Object.defineProperty(exports, "BaseButton", { enumerable: true, get: function () { return BaseButton_1.BaseButton; } });
|
|
32
|
+
var ExternalHyperlink_1 = require("./lib/ExternalHyperlink");
|
|
33
|
+
Object.defineProperty(exports, "ExternalHyperlink", { enumerable: true, get: function () { return ExternalHyperlink_1.ExternalHyperlink; } });
|
|
32
34
|
__exportStar(require("./lib/types"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HyperlinkProps } from './Hyperlink';
|
|
2
|
+
export interface ExternalHyperlinkProps extends HyperlinkProps {
|
|
3
|
+
/**
|
|
4
|
+
* Informs a screen reader user the link will open in a new window. It is read after the link text.
|
|
5
|
+
* This value will need to be translated.
|
|
6
|
+
* @default 'Opens link in new window'
|
|
7
|
+
*/
|
|
8
|
+
iconLabel?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const ExternalHyperlink: import("../../common").ElementComponent<"a", ExternalHyperlinkProps>;
|
|
11
|
+
//# sourceMappingURL=ExternalHyperlink.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExternalHyperlink.d.ts","sourceRoot":"","sources":["../../../../button/lib/ExternalHyperlink.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAY,cAAc,EAAC,MAAM,aAAa,CAAC;AAEtD,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC5D;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAuBD,eAAO,MAAM,iBAAiB,sEAsB5B,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.ExternalHyperlink = void 0;
|
|
29
|
+
var react_1 = __importDefault(require("react"));
|
|
30
|
+
var common_1 = require("@workday/canvas-kit-react/common");
|
|
31
|
+
var canvas_system_icons_web_1 = require("@workday/canvas-system-icons-web");
|
|
32
|
+
var icon_1 = require("@workday/canvas-kit-react/icon");
|
|
33
|
+
var Hyperlink_1 = require("./Hyperlink");
|
|
34
|
+
var iconStyles = __assign({}, icon_1.systemIconStyles({ fill: 'currentColor', fillHover: 'currentColor' }));
|
|
35
|
+
var Anchor = common_1.styled(Hyperlink_1.Hyperlink)(__assign(__assign({}, iconStyles), { display: 'inline-flex', flexDirection: 'row', alignItems: 'center' }));
|
|
36
|
+
var iconSize = '1em';
|
|
37
|
+
var minIconSize = '16px';
|
|
38
|
+
var StyledSystemIcon = common_1.styled(icon_1.SystemIcon)(__assign(__assign({}, iconStyles), { width: "calc(" + iconSize + " - 1px)", minWidth: "calc(" + minIconSize + " - 1px)", marginLeft: '2px' }));
|
|
39
|
+
exports.ExternalHyperlink = common_1.createComponent('a')({
|
|
40
|
+
displayName: 'ExternalHyperlink',
|
|
41
|
+
Component: function (_a, ref) {
|
|
42
|
+
var _b;
|
|
43
|
+
var children = _a.children, variant = _a.variant, _c = _a.iconLabel, iconLabel = _c === void 0 ? 'Opens link in new window' : _c, elemProps = __rest(_a, ["children", "variant", "iconLabel"]);
|
|
44
|
+
return (react_1.default.createElement(Anchor, __assign({ ref: ref, target: "_blank", rel: "noreferrer", variant: variant }, elemProps),
|
|
45
|
+
react_1.default.createElement("span", null, children),
|
|
46
|
+
react_1.default.createElement(StyledSystemIcon, { icon: canvas_system_icons_web_1.extLinkIcon, role: "img", "aria-label": iconLabel, size: iconSize, styles: (_b = {}, _b['& svg'] = { minWidth: minIconSize, minHeight: minIconSize }, _b) })));
|
|
47
|
+
},
|
|
48
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TertiaryButton.d.ts","sourceRoot":"","sources":["../../../../button/lib/TertiaryButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAGL,SAAS,EAKV,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAe,aAAa,EAAE,WAAW,EAAC,MAAM,SAAS,CAAC;AAGjE,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAChC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;;;OAIG;IACH,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B;;OAEG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB;;OAEG;IACH;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;
|
|
1
|
+
{"version":3,"file":"TertiaryButton.d.ts","sourceRoot":"","sources":["../../../../button/lib/TertiaryButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAGL,SAAS,EAKV,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAe,aAAa,EAAE,WAAW,EAAC,MAAM,SAAS,CAAC;AAGjE,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAChC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;;;OAIG;IACH,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B;;OAEG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB;;OAEG;IACH;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAiJD,eAAO,MAAM,cAAc,wEAkDzB,CAAC"}
|
|
@@ -105,6 +105,7 @@ var getTertiaryButtonColors = function (variant, theme, children) {
|
|
|
105
105
|
focusRing: common_1.focusRing({ innerColor: tokens_1.colors.blueberry400 }, theme),
|
|
106
106
|
},
|
|
107
107
|
disabled: {
|
|
108
|
+
background: 'transparent',
|
|
108
109
|
icon: children ? themePrimary.main : tokens_1.colors.blackPepper400,
|
|
109
110
|
label: themePrimary.main,
|
|
110
111
|
},
|
|
@@ -79,7 +79,7 @@ export declare const useListItemRovingFocus: <P extends {}, R>(model: {
|
|
|
79
79
|
onFocus(): void;
|
|
80
80
|
onBlur(): void;
|
|
81
81
|
onClick(): void;
|
|
82
|
-
id: string;
|
|
82
|
+
'data-focus-id': string;
|
|
83
83
|
tabIndex: number;
|
|
84
84
|
ref: ((instance: any) => void) | React.RefObject<any> | null | undefined;
|
|
85
85
|
} & P & (R extends HTMLOrSVGElement ? {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useListItemRovingFocus.d.ts","sourceRoot":"","sources":["../../../../collection/lib/useListItemRovingFocus.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;CAqBpB,CAAC;AA+BX;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useListItemRovingFocus.d.ts","sourceRoot":"","sources":["../../../../collection/lib/useListItemRovingFocus.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;CAqBpB,CAAC;AA+BX;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAqCZ,mBAAmB;;;;;;;;;OA6CzC,CAAC"}
|
|
@@ -86,7 +86,7 @@ exports.useListItemRovingFocus = common_1.createElemPropsHook(useCursorListModel
|
|
|
86
86
|
requestAnimationFrame(function () {
|
|
87
87
|
var _a;
|
|
88
88
|
(_a = document
|
|
89
|
-
.querySelector("[id=\"" + state.id + "-" + getIdRef.current(item_1) + "\"]")) === null || _a === void 0 ? void 0 : _a.focus();
|
|
89
|
+
.querySelector("[data-focus-id=\"" + (state.id + "-" + getIdRef.current(item_1)) + "\"]")) === null || _a === void 0 ? void 0 : _a.focus();
|
|
90
90
|
});
|
|
91
91
|
keyDownRef.current = false;
|
|
92
92
|
}
|
|
@@ -129,7 +129,7 @@ exports.useListItemRovingFocus = common_1.createElemPropsHook(useCursorListModel
|
|
|
129
129
|
onClick: function () {
|
|
130
130
|
events.goTo({ id: elemProps['data-id'] });
|
|
131
131
|
},
|
|
132
|
-
id: state.id + "-" + elemProps['data-id'],
|
|
132
|
+
'data-focus-id': state.id + "-" + elemProps['data-id'],
|
|
133
133
|
tabIndex: !state.cursorId
|
|
134
134
|
? 0 // cursor isn't known yet, be safe and mark this as focusable
|
|
135
135
|
: !!elemProps['data-id'] && state.cursorId === elemProps['data-id']
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Generic } from '@workday/canvas-kit-react/common';
|
|
3
3
|
import { useBaseListModel } from './useBaseListModel';
|
|
4
|
-
export declare function useListRenderItems<T>(model: ReturnType<typeof useBaseListModel>, children: ((item: Generic) => React.ReactNode) | React.ReactNode): {} | null | undefined;
|
|
4
|
+
export declare function useListRenderItems<T>(model: ReturnType<typeof useBaseListModel>, children: ((item: Generic, index: number) => React.ReactNode) | React.ReactNode): {} | null | undefined;
|
|
5
5
|
//# sourceMappingURL=useListRenderItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useListRenderItem.d.ts","sourceRoot":"","sources":["../../../../collection/lib/useListRenderItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,OAAO,EAAC,MAAM,kCAAkC,CAAC;AAEzD,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AAEpD,wBAAgB,kBAAkB,CAAC,CAAC,EAClC,KAAK,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,EAC1C,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,OAAO,KAAK,KAAK,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"useListRenderItem.d.ts","sourceRoot":"","sources":["../../../../collection/lib/useListRenderItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,OAAO,EAAC,MAAM,kCAAkC,CAAC;AAEzD,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AAEpD,wBAAgB,kBAAkB,CAAC,CAAC,EAClC,KAAK,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,EAC1C,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,SAAS,yBAuBhF"}
|
|
@@ -10,7 +10,7 @@ function useListRenderItems(model, children) {
|
|
|
10
10
|
? model.state.isVirtualized
|
|
11
11
|
? model.state.UNSTABLE_virtual.virtualItems.map(function (virtual) {
|
|
12
12
|
var item = model.state.items[virtual.index];
|
|
13
|
-
var child = children(item.value);
|
|
13
|
+
var child = children(item.value, virtual.index);
|
|
14
14
|
return react_1.default.cloneElement(child, {
|
|
15
15
|
// We call this `virtual` instead of `virtualItem` to avoid a React render warning
|
|
16
16
|
// about capital letters in attributes. React thinks this will be applied to the DOM
|
|
@@ -21,7 +21,7 @@ function useListRenderItems(model, children) {
|
|
|
21
21
|
});
|
|
22
22
|
})
|
|
23
23
|
: model.state.items.map(function (item) {
|
|
24
|
-
return react_1.default.cloneElement(children(item.value), { key: item.id, item: item.value });
|
|
24
|
+
return react_1.default.cloneElement(children(item.value, item.index), { key: item.id, item: item.value });
|
|
25
25
|
})
|
|
26
26
|
: null;
|
|
27
27
|
return items || children;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.miniWdayLogoBlue = exports.wdayLogoWhite = exports.wdayLogoBlue = exports.dubLogoWhite = exports.dubLogoBlue = void 0;
|
|
4
|
-
var CDN_URI = '
|
|
4
|
+
var CDN_URI = 'https://design.workday.com/images/';
|
|
5
5
|
exports.dubLogoBlue = "<img src=\"" + CDN_URI + "ck-dub-logo-blue.svg\" alt=\"\">";
|
|
6
6
|
exports.dubLogoWhite = "<img src=\"" + CDN_URI + "ck-dub-logo-white.svg\" alt=\"\">";
|
|
7
7
|
exports.wdayLogoBlue = "<img src=\"" + CDN_URI + "ck-wday-logo-blue.svg\" alt=\"\">";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Is an element focusable? This function performs various tests to see if the element in question
|
|
3
|
-
* can receive focus.
|
|
3
|
+
* can receive focus. Should skip disabled elements as they are not focusable.
|
|
4
4
|
*/
|
|
5
|
-
export declare const isFocusable: (element: HTMLElement) => boolean;
|
|
5
|
+
export declare const isFocusable: (element: HTMLElement) => boolean | null;
|
|
6
6
|
/**
|
|
7
7
|
* Get the first focusable element in a container.
|
|
8
8
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elements.d.ts","sourceRoot":"","sources":["../../../../../common/lib/utils/elements.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,WAAW,YAAa,WAAW,
|
|
1
|
+
{"version":3,"file":"elements.d.ts","sourceRoot":"","sources":["../../../../../common/lib/utils/elements.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,WAAW,YAAa,WAAW,mBA4B/C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB,cAAe,WAAW,KAAG,WAAW,GAAG,IAW/E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,cAAe,WAAW,KAAG,WAAW,GAAG,IAW9E,CAAC"}
|
|
@@ -3,9 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getLastFocusableElement = exports.getFirstFocusableElement = exports.isFocusable = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Is an element focusable? This function performs various tests to see if the element in question
|
|
6
|
-
* can receive focus.
|
|
6
|
+
* can receive focus. Should skip disabled elements as they are not focusable.
|
|
7
7
|
*/
|
|
8
8
|
var isFocusable = function (element) {
|
|
9
|
+
if (element.hasAttribute('disabled')) {
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
9
12
|
var nodeName = element.nodeName.toLowerCase();
|
|
10
13
|
var validInput = nodeName === 'input' && element.getAttribute('type') !== 'hidden';
|
|
11
14
|
var validAnchor = nodeName === 'a' && element.hasAttribute('href');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../../form-field/lib/Label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../../form-field/lib/Label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAC,sBAAsB,EAAE,8BAA8B,EAAC,MAAM,SAAS,CAAC;AAE/E,MAAM,WAAW,UAAW,SAAQ,8BAA8B;IAChE;;;OAGG;IACH,aAAa,CAAC,EAAE,sBAAsB,CAAC;IACvC;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAuDD,cAAM,KAAM,SAAQ,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC;IAC7C,MAAM,CAAC,QAAQ,gCAA0B;IAElC,MAAM;CA8Bd;AAID,eAAe,KAAK,CAAC"}
|
|
@@ -60,12 +60,8 @@ var __spreadArrays = (this && this.__spreadArrays) || function () {
|
|
|
60
60
|
r[k] = a[j];
|
|
61
61
|
return r;
|
|
62
62
|
};
|
|
63
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
64
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
65
|
-
};
|
|
66
63
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
64
|
var React = __importStar(require("react"));
|
|
68
|
-
var styled_1 = __importDefault(require("@emotion/styled"));
|
|
69
65
|
var tokens_1 = require("@workday/canvas-kit-react/tokens");
|
|
70
66
|
var common_1 = require("@workday/canvas-kit-react/common");
|
|
71
67
|
var types_1 = require("./types");
|
|
@@ -90,7 +86,7 @@ var labelStyles = [
|
|
|
90
86
|
}));
|
|
91
87
|
},
|
|
92
88
|
];
|
|
93
|
-
var RequiredAstrisk =
|
|
89
|
+
var RequiredAstrisk = common_1.styled('abbr')({
|
|
94
90
|
color: tokens_1.colors.cinnamon500,
|
|
95
91
|
fontSize: '16px',
|
|
96
92
|
fontWeight: 400,
|
|
@@ -101,7 +97,7 @@ var RequiredAstrisk = styled_1.default('abbr')({
|
|
|
101
97
|
// Used inside the fieldset component instead of a label for accessible radio groups.
|
|
102
98
|
// Extra `width: 100%` style is to help IE11 wrap text properly in a top-positioned
|
|
103
99
|
// FormField's legend element.
|
|
104
|
-
var LegendComponent =
|
|
100
|
+
var LegendComponent = common_1.styled('legend').apply(void 0, __spreadArrays(labelStyles, [function (_a) {
|
|
105
101
|
var labelPosition = _a.labelPosition;
|
|
106
102
|
if (labelPosition === Label.Position.Top) {
|
|
107
103
|
return {
|
|
@@ -113,7 +109,7 @@ var LegendComponent = styled_1.default('legend').apply(void 0, __spreadArrays(la
|
|
|
113
109
|
width: 'auto',
|
|
114
110
|
};
|
|
115
111
|
}]));
|
|
116
|
-
var LabelComponent =
|
|
112
|
+
var LabelComponent = common_1.styled('label').apply(void 0, labelStyles);
|
|
117
113
|
var Label = /** @class */ (function (_super) {
|
|
118
114
|
__extends(Label, _super);
|
|
119
115
|
function Label() {
|
|
@@ -2,7 +2,7 @@ import { CanvasIcon, CanvasIconTypes } from '@workday/design-assets-types';
|
|
|
2
2
|
import { SvgProps } from './Svg';
|
|
3
3
|
export interface IconProps extends SvgProps {
|
|
4
4
|
src: CanvasIcon;
|
|
5
|
-
size?: number;
|
|
5
|
+
size?: number | string;
|
|
6
6
|
type: CanvasIconTypes.Accent | CanvasIconTypes.Applet | CanvasIconTypes.System;
|
|
7
7
|
}
|
|
8
8
|
export declare const Icon: import("../../common").ElementComponent<"span", IconProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../icon/lib/Icon.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAC,UAAU,EAAE,eAAe,EAAC,MAAM,8BAA8B,CAAC;AACzE,OAAY,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AAGpC,MAAM,WAAW,SAAU,SAAQ,QAAQ;IACzC,GAAG,EAAE,UAAU,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../icon/lib/Icon.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAC,UAAU,EAAE,eAAe,EAAC,MAAM,8BAA8B,CAAC;AACzE,OAAY,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AAGpC,MAAM,WAAW,SAAU,SAAQ,QAAQ;IACzC,GAAG,EAAE,UAAU,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,IAAI,EAAE,eAAe,CAAC,MAAM,GAAG,eAAe,CAAC,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC;CAChF;AAED,eAAO,MAAM,IAAI,4DAyBf,CAAC;AAEH,eAAe,IAAI,CAAC"}
|
|
@@ -51,13 +51,11 @@ var common_1 = require("@workday/canvas-kit-react/common");
|
|
|
51
51
|
exports.Icon = common_1.createComponent('span')({
|
|
52
52
|
displayName: 'Icon',
|
|
53
53
|
Component: function (_a, ref, Element) {
|
|
54
|
+
var _b;
|
|
54
55
|
var src = _a.src, size = _a.size, styles = _a.styles, type = _a.type, shouldMirror = _a.shouldMirror, elemProps = __rest(_a, ["src", "size", "styles", "type", "shouldMirror"]);
|
|
55
56
|
var iconStyles = __assign({}, styles);
|
|
56
57
|
if (size) {
|
|
57
|
-
iconStyles['& svg'] = {
|
|
58
|
-
width: size,
|
|
59
|
-
height: size,
|
|
60
|
-
};
|
|
58
|
+
iconStyles['& svg'] = __assign(__assign({}, ((_b = iconStyles['& svg']) !== null && _b !== void 0 ? _b : {})), { width: size, height: size });
|
|
61
59
|
}
|
|
62
60
|
return (React.createElement(Svg_1.default, __assign({ src: src, type: type, shouldMirror: shouldMirror, as: Element }, elemProps, { ref: ref, styles: iconStyles })));
|
|
63
61
|
},
|
|
@@ -47,7 +47,7 @@ export interface SystemIconProps extends SystemIconStyles, Omit<IconProps, 'src'
|
|
|
47
47
|
/**
|
|
48
48
|
* The size of the SystemIcon in `px`.
|
|
49
49
|
*/
|
|
50
|
-
size?: number | undefined;
|
|
50
|
+
size?: number | string | undefined;
|
|
51
51
|
className?: string;
|
|
52
52
|
}
|
|
53
53
|
export declare const systemIconStyles: ({ accent, accentHover, background, backgroundHover, color, colorHover, fill, fillHover, }: SystemIconStyles) => CSSObject;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SystemIcon.d.ts","sourceRoot":"","sources":["../../../../icon/lib/SystemIcon.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAC,gBAAgB,EAAkB,MAAM,8BAA8B,CAAC;AAC/E,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAC1C,OAAa,EAAC,SAAS,EAAC,MAAM,QAAQ,CAAC;AAGvC,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,eACf,SAAQ,gBAAgB,EACtB,IAAI,CAAC,SAAS,EAAE,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,YAAY,CAAC;IAC1D;;OAEG;IACH,IAAI,EAAE,gBAAgB,CAAC;IACvB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"SystemIcon.d.ts","sourceRoot":"","sources":["../../../../icon/lib/SystemIcon.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAC,gBAAgB,EAAkB,MAAM,8BAA8B,CAAC;AAC/E,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAC1C,OAAa,EAAC,SAAS,EAAC,MAAM,QAAQ,CAAC;AAGvC,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,eACf,SAAQ,gBAAgB,EACtB,IAAI,CAAC,SAAS,EAAE,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,YAAY,CAAC;IAC1D;;OAEG;IACH,IAAI,EAAE,gBAAgB,CAAC;IACvB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,gBAAgB,8FAS1B,gBAAgB,KAAG,SAmBpB,CAAC;AAEH,QAAA,MAAM,UAAU,kEA4Cd,CAAC;AAEH,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDisableBodyScroll.d.ts","sourceRoot":"","sources":["../../../../../popup/lib/hooks/useDisableBodyScroll.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useDisableBodyScroll.d.ts","sourceRoot":"","sources":["../../../../../popup/lib/hooks/useDisableBodyScroll.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;OAwB/B,CAAC"}
|
|
@@ -24,6 +24,8 @@ exports.useDisableBodyScroll = common_1.createElemPropsHook(usePopupModel_1.useP
|
|
|
24
24
|
var overflowX = document.body.style.overflowX;
|
|
25
25
|
var overflow = document.body.style.overflow;
|
|
26
26
|
document.body.style.overflow = 'hidden';
|
|
27
|
+
document.body.style.overflowY = 'hidden';
|
|
28
|
+
document.body.style.overflowX = 'hidden';
|
|
27
29
|
return function () {
|
|
28
30
|
document.body.style.overflow = overflow;
|
|
29
31
|
document.body.style.overflowY = overflowY;
|
|
@@ -16,7 +16,7 @@ exports.usePopupTarget = common_1.createElemPropsHook(usePopupModel_1.usePopupMo
|
|
|
16
16
|
// `state.targetRef` manually. This ensures that custom target components don't need to handle
|
|
17
17
|
// ref forwarding since ref forwarding is only really needed to programmatically open popups
|
|
18
18
|
// around a target _before_ a user clicks. In that rare case, ref forwarding is required.
|
|
19
|
-
if (!state.targetRef.current) {
|
|
19
|
+
if (!(state.targetRef.current instanceof Element)) {
|
|
20
20
|
state.targetRef.current = event.currentTarget;
|
|
21
21
|
}
|
|
22
22
|
if (state.visibility !== 'hidden') {
|
|
@@ -18,8 +18,8 @@ export interface TableRowProps extends React.HTMLAttributes<HTMLTableRowElement>
|
|
|
18
18
|
*/
|
|
19
19
|
header?: boolean;
|
|
20
20
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
declare const TableRow: import("../../common").ElementComponent<"tr", TableRowProps> & {
|
|
22
|
+
State: typeof TableRowState;
|
|
23
|
+
};
|
|
24
|
+
export default TableRow;
|
|
25
25
|
//# sourceMappingURL=TableRow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableRow.d.ts","sourceRoot":"","sources":["../../../../table/lib/TableRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"TableRow.d.ts","sourceRoot":"","sources":["../../../../table/lib/TableRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,oBAAY,aAAa;IACvB,KAAK,IAAA;IACL,KAAK,IAAA;IACL,UAAU,IAAA;IACV,UAAU,IAAA;IACV,KAAK,IAAA;IACL,QAAQ,IAAA;CACT;AAED,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,mBAAmB,CAAC;IAC9E;;OAEG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC;IAEtB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAuKD,QAAA,MAAM,QAAQ;;CAgBZ,CAAC;AAEH,eAAe,QAAQ,CAAC"}
|
|
@@ -1,17 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
extendStatics(d, b);
|
|
11
|
-
function __() { this.constructor = d; }
|
|
12
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
-
};
|
|
14
|
-
})();
|
|
15
2
|
var __assign = (this && this.__assign) || function () {
|
|
16
3
|
__assign = Object.assign || function(t) {
|
|
17
4
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -62,6 +49,7 @@ var React = __importStar(require("react"));
|
|
|
62
49
|
var styled_1 = __importDefault(require("@emotion/styled"));
|
|
63
50
|
var polished_1 = require("polished");
|
|
64
51
|
var tokens_1 = require("@workday/canvas-kit-react/tokens");
|
|
52
|
+
var common_1 = require("@workday/canvas-kit-react/common");
|
|
65
53
|
var Table_1 = require("./Table");
|
|
66
54
|
var TableRowState;
|
|
67
55
|
(function (TableRowState) {
|
|
@@ -129,7 +117,7 @@ function makeBorderlessStyle(_bgColor) {
|
|
|
129
117
|
},
|
|
130
118
|
};
|
|
131
119
|
}
|
|
132
|
-
var
|
|
120
|
+
var StyledTableRow = styled_1.default('tr')({
|
|
133
121
|
'th, td': {
|
|
134
122
|
backgroundColor: tokens_1.colors.frenchVanilla100,
|
|
135
123
|
padding: tokens_1.space.xs + " " + tokens_1.space.xxs,
|
|
@@ -227,16 +215,14 @@ var Row = styled_1.default('tr')({
|
|
|
227
215
|
};
|
|
228
216
|
}
|
|
229
217
|
});
|
|
230
|
-
var TableRow =
|
|
231
|
-
|
|
232
|
-
function
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
return TableRow;
|
|
241
|
-
}(React.Component));
|
|
218
|
+
var TableRow = common_1.createComponent('tr')({
|
|
219
|
+
displayName: 'TableRow',
|
|
220
|
+
Component: function (_a, ref, Element) {
|
|
221
|
+
var state = _a.state, header = _a.header, children = _a.children, elemProps = __rest(_a, ["state", "header", "children"]);
|
|
222
|
+
return (React.createElement(StyledTableRow, __assign({ as: Element, ref: ref, state: state, header: header }, elemProps), children));
|
|
223
|
+
},
|
|
224
|
+
subComponents: {
|
|
225
|
+
State: TableRowState,
|
|
226
|
+
},
|
|
227
|
+
});
|
|
242
228
|
exports.default = TableRow;
|
|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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKL,CAAC"}
|
|
@@ -40,6 +40,5 @@ exports.Tabs = common_1.createContainer()({
|
|
|
40
40
|
},
|
|
41
41
|
})(function (_a, _, model) {
|
|
42
42
|
var children = _a.children;
|
|
43
|
-
return
|
|
44
|
-
react_1.default.createElement(menu_1.Menu, { model: model.menu }, children)));
|
|
43
|
+
return react_1.default.createElement(menu_1.Menu, { model: model.menu }, children);
|
|
45
44
|
});
|