@workday/canvas-kit-react 8.0.0-alpha.111-next.0 → 8.0.0-alpha.121-next.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/lib/ActionBarItem.tsx +1 -6
- package/action-bar/lib/ActionBarList.tsx +3 -3
- package/checkbox/lib/Checkbox.tsx +106 -54
- package/collection/lib/ListBox.tsx +1 -1
- package/collection/lib/useListRenderItem.tsx +24 -14
- package/collection/lib/useOverflowListModel.tsx +11 -2
- package/common/lib/InputProvider.tsx +1 -1
- package/common/lib/utils/StaticStates.tsx +2 -2
- package/common/lib/utils/components.ts +3 -3
- package/common/lib/utils/index.ts +1 -0
- package/common/lib/utils/useModalityType.ts +65 -0
- package/dist/commonjs/action-bar/lib/ActionBar.d.ts +4 -6
- package/dist/commonjs/action-bar/lib/ActionBar.d.ts.map +1 -1
- package/dist/commonjs/action-bar/lib/ActionBarItem.d.ts +1 -4
- package/dist/commonjs/action-bar/lib/ActionBarItem.d.ts.map +1 -1
- package/dist/commonjs/action-bar/lib/ActionBarItem.js +0 -5
- package/dist/commonjs/action-bar/lib/ActionBarList.d.ts +3 -3
- package/dist/commonjs/action-bar/lib/ActionBarList.d.ts.map +1 -1
- package/dist/commonjs/action-bar/lib/useActionBarModel.d.ts +2 -0
- package/dist/commonjs/action-bar/lib/useActionBarModel.d.ts.map +1 -1
- package/dist/commonjs/checkbox/lib/Checkbox.d.ts +4 -0
- package/dist/commonjs/checkbox/lib/Checkbox.d.ts.map +1 -1
- package/dist/commonjs/checkbox/lib/Checkbox.js +65 -34
- package/dist/commonjs/collection/lib/ListBox.d.ts +1 -1
- package/dist/commonjs/collection/lib/ListBox.d.ts.map +1 -1
- 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 +21 -11
- package/dist/commonjs/collection/lib/useOverflowListModel.d.ts +10 -0
- package/dist/commonjs/collection/lib/useOverflowListModel.d.ts.map +1 -1
- package/dist/commonjs/collection/lib/useOverflowListModel.js +10 -4
- package/dist/commonjs/common/lib/InputProvider.d.ts +2 -2
- package/dist/commonjs/common/lib/InputProvider.d.ts.map +1 -1
- package/dist/commonjs/common/lib/utils/StaticStates.d.ts +2 -2
- package/dist/commonjs/common/lib/utils/StaticStates.d.ts.map +1 -1
- package/dist/commonjs/common/lib/utils/components.d.ts +3 -3
- package/dist/commonjs/common/lib/utils/components.d.ts.map +1 -1
- package/dist/commonjs/common/lib/utils/index.d.ts +1 -0
- package/dist/commonjs/common/lib/utils/index.d.ts.map +1 -1
- package/dist/commonjs/common/lib/utils/index.js +1 -0
- package/dist/commonjs/common/lib/utils/useModalityType.d.ts +17 -0
- package/dist/commonjs/common/lib/utils/useModalityType.d.ts.map +1 -0
- package/dist/commonjs/common/lib/utils/useModalityType.js +63 -0
- package/dist/commonjs/form-field/lib/FormField.d.ts +1 -1
- package/dist/commonjs/form-field/lib/FormField.d.ts.map +1 -1
- package/dist/commonjs/form-field/lib/Label.d.ts +1 -1
- package/dist/commonjs/form-field/lib/Label.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/types.d.ts +11 -1
- package/dist/commonjs/layout/lib/utils/types.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/types.js +2 -0
- package/dist/commonjs/menu/lib/Menu.d.ts +1 -1
- package/dist/commonjs/menu/lib/MenuList.d.ts +3 -3
- package/dist/commonjs/menu/lib/MenuList.d.ts.map +1 -1
- package/dist/commonjs/modal/lib/ModalOverlay.d.ts +0 -1
- package/dist/commonjs/modal/lib/ModalOverlay.d.ts.map +1 -1
- package/dist/commonjs/pagination/lib/Pagination/AdditionalDetails.d.ts +1 -1
- package/dist/commonjs/pagination/lib/Pagination/AdditionalDetails.d.ts.map +1 -1
- package/dist/commonjs/pagination/lib/Pagination/GoTo/Label.d.ts +1 -1
- package/dist/commonjs/pagination/lib/Pagination/GoTo/Label.d.ts.map +1 -1
- package/dist/commonjs/pagination/lib/Pagination/PageButton.d.ts.map +1 -1
- package/dist/commonjs/pagination/lib/Pagination/PageButton.js +8 -6
- package/dist/commonjs/pagination/lib/Pagination/PageList.d.ts +1 -1
- package/dist/commonjs/pagination/lib/Pagination/PageList.d.ts.map +1 -1
- package/dist/commonjs/radio/lib/Radio.d.ts +1 -0
- package/dist/commonjs/radio/lib/Radio.d.ts.map +1 -1
- package/dist/commonjs/radio/lib/Radio.js +74 -26
- package/dist/commonjs/tabs/lib/Tabs.d.ts +5 -4
- package/dist/commonjs/tabs/lib/Tabs.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/TabsItem.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/TabsItem.js +4 -3
- 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 +17 -2
- package/dist/commonjs/tabs/lib/TabsPanel.d.ts +2 -2
- package/dist/commonjs/tabs/lib/TabsPanel.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/TabsPanels.d.ts +2 -2
- package/dist/commonjs/tabs/lib/TabsPanels.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/useTabsModel.d.ts +55 -159
- package/dist/commonjs/tabs/lib/useTabsModel.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/useTabsModel.js +2 -0
- package/dist/commonjs/text-input/lib/InputIconContainer.d.ts +1 -1
- package/dist/commonjs/text-input/lib/InputIconContainer.d.ts.map +1 -1
- package/dist/es6/action-bar/lib/ActionBar.d.ts +5 -7
- package/dist/es6/action-bar/lib/ActionBar.d.ts.map +1 -1
- package/dist/es6/action-bar/lib/ActionBarItem.d.ts +1 -4
- package/dist/es6/action-bar/lib/ActionBarItem.d.ts.map +1 -1
- package/dist/es6/action-bar/lib/ActionBarItem.js +1 -6
- package/dist/es6/action-bar/lib/ActionBarList.d.ts +3 -3
- package/dist/es6/action-bar/lib/ActionBarList.d.ts.map +1 -1
- package/dist/es6/action-bar/lib/useActionBarModel.d.ts +2 -0
- package/dist/es6/action-bar/lib/useActionBarModel.d.ts.map +1 -1
- package/dist/es6/button/lib/BaseButton.d.ts +1 -1
- package/dist/es6/checkbox/lib/Checkbox.d.ts +4 -0
- package/dist/es6/checkbox/lib/Checkbox.d.ts.map +1 -1
- package/dist/es6/checkbox/lib/Checkbox.js +65 -34
- package/dist/es6/collection/lib/ListBox.d.ts +1 -1
- package/dist/es6/collection/lib/ListBox.d.ts.map +1 -1
- 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 +21 -11
- package/dist/es6/collection/lib/useOverflowListModel.d.ts +10 -0
- package/dist/es6/collection/lib/useOverflowListModel.d.ts.map +1 -1
- package/dist/es6/collection/lib/useOverflowListModel.js +10 -4
- package/dist/es6/common/lib/InputProvider.d.ts +2 -2
- package/dist/es6/common/lib/InputProvider.d.ts.map +1 -1
- package/dist/es6/common/lib/utils/StaticStates.d.ts +2 -2
- package/dist/es6/common/lib/utils/StaticStates.d.ts.map +1 -1
- package/dist/es6/common/lib/utils/components.d.ts +6 -6
- package/dist/es6/common/lib/utils/components.d.ts.map +1 -1
- package/dist/es6/common/lib/utils/index.d.ts +1 -0
- package/dist/es6/common/lib/utils/index.d.ts.map +1 -1
- package/dist/es6/common/lib/utils/index.js +1 -0
- package/dist/es6/common/lib/utils/useModalityType.d.ts +17 -0
- package/dist/es6/common/lib/utils/useModalityType.d.ts.map +1 -0
- package/dist/es6/common/lib/utils/useModalityType.js +56 -0
- package/dist/es6/form-field/lib/FormField.d.ts +1 -1
- package/dist/es6/form-field/lib/FormField.d.ts.map +1 -1
- package/dist/es6/form-field/lib/Label.d.ts +1 -1
- package/dist/es6/form-field/lib/Label.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/types.d.ts +11 -1
- package/dist/es6/layout/lib/utils/types.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/types.js +2 -0
- package/dist/es6/menu/lib/Menu.d.ts +2 -2
- package/dist/es6/menu/lib/MenuItem.d.ts +1 -1
- package/dist/es6/menu/lib/MenuList.d.ts +3 -3
- package/dist/es6/menu/lib/MenuList.d.ts.map +1 -1
- package/dist/es6/modal/lib/ModalOverlay.d.ts +0 -1
- package/dist/es6/modal/lib/ModalOverlay.d.ts.map +1 -1
- package/dist/es6/pagination/lib/Pagination/AdditionalDetails.d.ts +1 -1
- package/dist/es6/pagination/lib/Pagination/AdditionalDetails.d.ts.map +1 -1
- package/dist/es6/pagination/lib/Pagination/GoTo/Label.d.ts +1 -1
- package/dist/es6/pagination/lib/Pagination/GoTo/Label.d.ts.map +1 -1
- package/dist/es6/pagination/lib/Pagination/PageButton.d.ts.map +1 -1
- package/dist/es6/pagination/lib/Pagination/PageButton.js +9 -7
- package/dist/es6/pagination/lib/Pagination/PageList.d.ts +1 -1
- package/dist/es6/pagination/lib/Pagination/PageList.d.ts.map +1 -1
- package/dist/es6/radio/lib/Radio.d.ts +1 -0
- package/dist/es6/radio/lib/Radio.d.ts.map +1 -1
- package/dist/es6/radio/lib/Radio.js +74 -26
- package/dist/es6/tabs/lib/Tabs.d.ts +6 -5
- package/dist/es6/tabs/lib/Tabs.d.ts.map +1 -1
- package/dist/es6/tabs/lib/TabsItem.d.ts +1 -1
- package/dist/es6/tabs/lib/TabsItem.d.ts.map +1 -1
- package/dist/es6/tabs/lib/TabsItem.js +5 -4
- 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 +18 -3
- package/dist/es6/tabs/lib/TabsPanel.d.ts +2 -2
- package/dist/es6/tabs/lib/TabsPanel.d.ts.map +1 -1
- package/dist/es6/tabs/lib/TabsPanels.d.ts +2 -2
- package/dist/es6/tabs/lib/TabsPanels.d.ts.map +1 -1
- package/dist/es6/tabs/lib/useTabsModel.d.ts +55 -159
- package/dist/es6/tabs/lib/useTabsModel.d.ts.map +1 -1
- package/dist/es6/tabs/lib/useTabsModel.js +3 -1
- package/dist/es6/text-input/lib/InputIconContainer.d.ts +1 -1
- package/dist/es6/text-input/lib/InputIconContainer.d.ts.map +1 -1
- package/dist/es6/tooltip/lib/TooltipContainer.d.ts +1 -1
- package/form-field/lib/FormField.tsx +1 -1
- package/form-field/lib/Label.tsx +1 -1
- package/layout/lib/utils/types.ts +64 -13
- package/menu/lib/MenuList.tsx +3 -2
- package/modal/lib/ModalOverlay.tsx +2 -4
- package/package.json +9 -9
- package/pagination/lib/Pagination/AdditionalDetails.tsx +1 -1
- package/pagination/lib/Pagination/GoTo/Label.tsx +2 -1
- package/pagination/lib/Pagination/PageButton.tsx +13 -7
- package/pagination/lib/Pagination/PageList.tsx +1 -1
- package/popup/lib/hooks/useCloseOnFullscreenExit.ts +1 -1
- package/popup/lib/hooks/useTransferOnFullscreenEnter.ts +1 -1
- package/popup/lib/hooks/useTransferOnFullscreenExit.ts +1 -1
- package/radio/lib/Radio.tsx +98 -29
- package/tabs/lib/TabsItem.tsx +4 -3
- package/tabs/lib/TabsList.tsx +25 -5
- package/tabs/lib/TabsPanel.tsx +1 -1
- package/tabs/lib/TabsPanels.tsx +1 -1
- package/tabs/lib/useTabsModel.tsx +3 -1
- package/text-input/lib/InputIconContainer.tsx +3 -5
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare type Modality = 'mouse' | 'touch' | 'pen';
|
|
2
|
+
/**
|
|
3
|
+
* Uses heuristics to determine if the user is on a touch device, uses a pen, or a mouse. This hook
|
|
4
|
+
* is useful if you have styles or behaviors that depend on the user's interaction type. For
|
|
5
|
+
* example, touch users can scroll horizontally easier than mouse users, so horizontal overflow
|
|
6
|
+
* might be more desired than overflow menus on touch devices. For devices that support multiple
|
|
7
|
+
* input types, the last used input type is saved. For these devices, consider the possibility this
|
|
8
|
+
* value could change after your component is rendered, so make sure you component rerenders
|
|
9
|
+
* properly in this case.
|
|
10
|
+
*
|
|
11
|
+
* Uses `PointerEvent.pointerType` to determine last used input.
|
|
12
|
+
*
|
|
13
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/pointerType
|
|
14
|
+
*/
|
|
15
|
+
export declare const useModalityType: () => Modality;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=useModalityType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useModalityType.d.ts","sourceRoot":"","sources":["../../../../../common/lib/utils/useModalityType.ts"],"names":[],"mappings":"AAEA,aAAK,QAAQ,GAAG,OAAO,GAAG,OAAO,GAAG,KAAK,CAAC;AA+B1C;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe,QAAO,QAkBlC,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.useModalityType = void 0;
|
|
7
|
+
var react_1 = __importDefault(require("react"));
|
|
8
|
+
// Use this shared global value to reduce calls to localStorage which is a synchronous API to a
|
|
9
|
+
// drive which could be slow (spinning disks could be hundreds of ms). We read only once this way.
|
|
10
|
+
// The following initialization is very difficult to test via automation. Don't mess with it unless
|
|
11
|
+
// you plan to manually test.
|
|
12
|
+
//
|
|
13
|
+
// 1. Initialize modality to localStorage
|
|
14
|
+
// a. if localStorage isn't primed, use clientWidth of the browsers
|
|
15
|
+
// b. if < 768, default to 'touch'
|
|
16
|
+
// c. else default to 'mouse'
|
|
17
|
+
var localStorageValue = 'mouse'; //((typeof localStorage !== 'undefined'
|
|
18
|
+
// ? localStorage.getItem('modality')
|
|
19
|
+
// : '') ||
|
|
20
|
+
// (typeof document !== 'undefined'
|
|
21
|
+
// ? document.documentElement.clientWidth < 768
|
|
22
|
+
// ? 'touch'
|
|
23
|
+
// : ''
|
|
24
|
+
// : '') ||
|
|
25
|
+
// 'mouse') as Modality;
|
|
26
|
+
// Update the `localStorageValue`, but conditionally update localStorage only if the value has
|
|
27
|
+
// changed. This prevents too many calls to `localStorage` which can be costly on spinning disk
|
|
28
|
+
// drives
|
|
29
|
+
var updateLocalStorage = function (value) {
|
|
30
|
+
// if (localStorageValue !== value) {
|
|
31
|
+
// localStorage.setItem('modality', value);
|
|
32
|
+
// }
|
|
33
|
+
// localStorageValue = value;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Uses heuristics to determine if the user is on a touch device, uses a pen, or a mouse. This hook
|
|
37
|
+
* is useful if you have styles or behaviors that depend on the user's interaction type. For
|
|
38
|
+
* example, touch users can scroll horizontally easier than mouse users, so horizontal overflow
|
|
39
|
+
* might be more desired than overflow menus on touch devices. For devices that support multiple
|
|
40
|
+
* input types, the last used input type is saved. For these devices, consider the possibility this
|
|
41
|
+
* value could change after your component is rendered, so make sure you component rerenders
|
|
42
|
+
* properly in this case.
|
|
43
|
+
*
|
|
44
|
+
* Uses `PointerEvent.pointerType` to determine last used input.
|
|
45
|
+
*
|
|
46
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/pointerType
|
|
47
|
+
*/
|
|
48
|
+
var useModalityType = function () {
|
|
49
|
+
var _a = react_1.default.useState(localStorageValue), modality = _a[0], setModality = _a[1];
|
|
50
|
+
react_1.default.useEffect(function () {
|
|
51
|
+
var handlePointerDown = function (event) {
|
|
52
|
+
var value = event.pointerType;
|
|
53
|
+
setModality(value);
|
|
54
|
+
updateLocalStorage(value);
|
|
55
|
+
};
|
|
56
|
+
document.addEventListener('pointerdown', handlePointerDown);
|
|
57
|
+
return function () {
|
|
58
|
+
document.removeEventListener('pointerdown', handlePointerDown);
|
|
59
|
+
};
|
|
60
|
+
}, []);
|
|
61
|
+
return modality;
|
|
62
|
+
};
|
|
63
|
+
exports.useModalityType = useModalityType;
|
|
@@ -55,7 +55,7 @@ export interface FormFieldProps extends Themeable, React.HTMLAttributes<HTMLDivE
|
|
|
55
55
|
export interface FormFieldErrorBehavior {
|
|
56
56
|
error?: ErrorType;
|
|
57
57
|
}
|
|
58
|
-
declare class FormField extends React.Component<FormFieldProps
|
|
58
|
+
declare class FormField extends React.Component<React.PropsWithChildren<FormFieldProps>> {
|
|
59
59
|
static LabelPosition: typeof FormFieldLabelPosition;
|
|
60
60
|
static ErrorType: typeof ErrorType;
|
|
61
61
|
private inputId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormField.d.ts","sourceRoot":"","sources":["../../../../form-field/lib/FormField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EACL,cAAc,EACd,SAAS,EAET,SAAS,EAEV,MAAM,kCAAkC,CAAC;AAG1C,OAAO,EAAC,sBAAsB,EAAiC,MAAM,SAAS,CAAC;AAE/E,MAAM,WAAW,cACf,SAAQ,SAAS,EACf,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EACpC,cAAc;IAChB;;;OAGG;IACH,aAAa,CAAC,EAAE,sBAAsB,CAAC;IACvC;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;OAGG;IACH,UAAU,CAAC,EAAE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S,CAAC,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC;IAC9E,MAAM,CAAC,aAAa,gCAA0B;IAC9C,MAAM,CAAC,SAAS,mBAAa;IAE7B,OAAO,CAAC,OAAO,CAAoD;IAEnE,OAAO,CAAC,cAAc,CA8BpB;IAEF,MAAM;CA2DP;AAKD,eAAe,SAAS,CAAC"}
|
|
@@ -31,7 +31,7 @@ export interface LabelProps extends FormFieldLabelPositionBehavior {
|
|
|
31
31
|
*/
|
|
32
32
|
accessibleHide?: boolean;
|
|
33
33
|
}
|
|
34
|
-
declare class Label extends React.Component<LabelProps
|
|
34
|
+
declare class Label extends React.Component<React.PropsWithChildren<LabelProps>> {
|
|
35
35
|
static Position: typeof FormFieldLabelPosition;
|
|
36
36
|
render(): JSX.Element;
|
|
37
37
|
}
|
|
@@ -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;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;
|
|
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,KAAK,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;IACtE,MAAM,CAAC,QAAQ,gCAA0B;IAElC,MAAM;CA8Bd;AAID,eAAe,KAAK,CAAC"}
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
declare type Globals = '-moz-initial' | 'inherit' | 'initial' | 'revert' | 'unset';
|
|
2
|
+
declare type GlobalsNumber = Globals | number;
|
|
3
|
+
declare type SelfPosition = 'center' | 'end' | 'flex-end' | 'flex-start' | 'self-end' | 'self-start' | 'start';
|
|
4
|
+
declare type DisplayOutside = 'block' | 'inline' | 'run-in';
|
|
5
|
+
declare type DisplayInside = '-ms-flexbox' | '-ms-grid' | '-webkit-flex' | 'flex' | 'flow' | 'flow-root' | 'grid' | 'ruby' | 'table';
|
|
6
|
+
declare type DisplayInternal = 'ruby-base' | 'ruby-base-container' | 'ruby-text' | 'ruby-text-container' | 'table-caption' | 'table-cell' | 'table-column' | 'table-column-group' | 'table-footer-group' | 'table-header-group' | 'table-row' | 'table-row-group';
|
|
7
|
+
declare type DisplayLegacy = '-ms-inline-flexbox' | '-ms-inline-grid' | '-webkit-inline-flex' | 'inline-block' | 'inline-flex' | 'inline-grid' | 'inline-list-item' | 'inline-table';
|
|
8
|
+
declare type LineStyle = 'dashed' | 'dotted' | 'double' | 'groove' | 'hidden' | 'inset' | 'none' | 'outset' | 'ridge' | 'solid';
|
|
9
|
+
declare type ContentDistribution = 'space-around' | 'space-between' | 'space-evenly' | 'stretch';
|
|
10
|
+
declare type ContentPosition = 'center' | 'end' | 'flex-end' | 'flex-start' | 'start';
|
|
2
11
|
export declare type PropertyBorder = Globals | LineStyle | (string & {});
|
|
3
12
|
export declare type PropertyJustifySelf = Globals | SelfPosition | 'auto' | 'baseline' | 'left' | 'normal' | 'right' | 'stretch' | (string & {});
|
|
4
13
|
export declare type PropertyAlignSelf = Globals | SelfPosition | 'auto' | 'baseline' | 'normal' | 'stretch' | (string & {});
|
|
@@ -17,4 +26,5 @@ export declare type PropertyJustifyItems = Globals | SelfPosition | 'baseline' |
|
|
|
17
26
|
export declare type PropertyJustifyContent = Globals | ContentDistribution | ContentPosition | 'left' | 'normal' | 'right' | (string & {});
|
|
18
27
|
export declare type PropertyFlexWrap = Globals | 'nowrap' | 'wrap' | 'wrap-reverse';
|
|
19
28
|
export declare type PropertyFlexDirection = Globals | 'column' | 'column-reverse' | 'row' | 'row-reverse';
|
|
29
|
+
export {};
|
|
20
30
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/types.ts"],"names":[],"mappings":"AAGA,aAAK,OAAO,GAAG,cAAc,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AAC3E,aAAK,aAAa,GAAG,OAAO,GAAG,MAAM,CAAC;AAEtC,aAAK,YAAY,GACb,QAAQ,GACR,KAAK,GACL,UAAU,GACV,YAAY,GACZ,UAAU,GACV,YAAY,GACZ,OA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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"}
|
|
@@ -1519,7 +1519,7 @@ export declare const Menu: import("../../common").ComponentM<MenuProps & Partial
|
|
|
1519
1519
|
* )
|
|
1520
1520
|
* }
|
|
1521
1521
|
*/
|
|
1522
|
-
List: import("../../common").ElementComponentM<"div", import("./MenuList").MenuListProps
|
|
1522
|
+
List: import("../../common").ElementComponentM<"div", import("./MenuList").MenuListProps<any>, {
|
|
1523
1523
|
state: {
|
|
1524
1524
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
1525
1525
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ExtractProps } from '@workday/canvas-kit-react/common';
|
|
3
3
|
import { Stack } from '@workday/canvas-kit-react/layout';
|
|
4
|
-
export interface MenuListProps extends Partial<ExtractProps<typeof Stack, never
|
|
4
|
+
export interface MenuListProps<T = any> extends Omit<Partial<ExtractProps<typeof Stack, never>>, 'children'> {
|
|
5
5
|
/**
|
|
6
6
|
* The label text of the MenuList.
|
|
7
7
|
*/
|
|
8
|
-
children: React.ReactNode;
|
|
8
|
+
children: React.ReactNode | ((item: T) => React.ReactNode);
|
|
9
9
|
}
|
|
10
10
|
export declare const useMenuList: <P extends {}, R>(model: {
|
|
11
11
|
state: {
|
|
@@ -80,7 +80,7 @@ export declare const useMenuList: <P extends {}, R>(model: {
|
|
|
80
80
|
} & P & (R extends HTMLOrSVGElement ? {
|
|
81
81
|
ref: React.Ref<R>;
|
|
82
82
|
} : {});
|
|
83
|
-
export declare const MenuList: import("../../common").ElementComponentM<"div", MenuListProps
|
|
83
|
+
export declare const MenuList: import("../../common").ElementComponentM<"div", MenuListProps<any>, {
|
|
84
84
|
state: {
|
|
85
85
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
86
86
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
@@ -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,KAAK,EAAC,MAAM,kCAAkC,CAAC;AAIvD,MAAM,WAAW,
|
|
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,KAAK,EAAC,MAAM,kCAAkC,CAAC;AAIvD,MAAM,WAAW,aAAa,CAAC,CAAC,GAAG,GAAG,CACpC,SAAQ,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,OAAO,KAAK,EAAE,KAAK,CAAC,CAAC,EAAE,UAAU,CAAC;IACpE;;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"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BoxProps } from '@workday/canvas-kit-react/layout';
|
|
3
3
|
export interface ModalOverlayProps extends BoxProps {
|
|
4
|
-
children: React.ReactNode;
|
|
5
4
|
}
|
|
6
5
|
export declare const ModalOverlay: import("../../common").ElementComponentM<"div", ModalOverlayProps, {
|
|
7
6
|
state: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalOverlay.d.ts","sourceRoot":"","sources":["../../../../modal/lib/ModalOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,OAAO,EAAM,QAAQ,EAAC,MAAM,kCAAkC,CAAC;AAG/D,MAAM,WAAW,iBAAkB,SAAQ,QAAQ;
|
|
1
|
+
{"version":3,"file":"ModalOverlay.d.ts","sourceRoot":"","sources":["../../../../modal/lib/ModalOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,OAAO,EAAM,QAAQ,EAAC,MAAM,kCAAkC,CAAC;AAG/D,MAAM,WAAW,iBAAkB,SAAQ,QAAQ;CAAG;AA+CtD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;EAOvB,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;OAQ1B,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { PaginationModel } from './types';
|
|
3
3
|
import { FlexProps } from '@workday/canvas-kit-react/layout';
|
|
4
|
-
export interface AdditionalDetailsProps extends FlexProps {
|
|
4
|
+
export interface AdditionalDetailsProps extends Omit<FlexProps, 'children'> {
|
|
5
5
|
children: (model: PaginationModel) => React.ReactNode | React.ReactNode;
|
|
6
6
|
model: PaginationModel;
|
|
7
7
|
shouldAnnounceToScreenReader?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdditionalDetails.d.ts","sourceRoot":"","sources":["../../../../../pagination/lib/Pagination/AdditionalDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAC,eAAe,EAAC,MAAM,SAAS,CAAC;AACxC,OAAO,EAAO,SAAS,EAAC,MAAM,kCAAkC,CAAC;AAGjE,MAAM,WAAW,sBAAuB,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"AdditionalDetails.d.ts","sourceRoot":"","sources":["../../../../../pagination/lib/Pagination/AdditionalDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAC,eAAe,EAAC,MAAM,SAAS,CAAC;AACxC,OAAO,EAAO,SAAS,EAAC,MAAM,kCAAkC,CAAC;AAGjE,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IACzE,QAAQ,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC;IACxE,KAAK,EAAE,eAAe,CAAC;IACvB,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAuBD,eAAO,MAAM,iBAAiB,oEAK3B,sBAAsB,gBAQxB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { PaginationModel } from '../types';
|
|
3
|
-
export interface GoToLabelProps extends React.LabelHTMLAttributes<HTMLLabelElement> {
|
|
3
|
+
export interface GoToLabelProps extends Omit<React.LabelHTMLAttributes<HTMLLabelElement>, 'children'> {
|
|
4
4
|
model: PaginationModel;
|
|
5
5
|
/**
|
|
6
6
|
* Accepts child elements or a render prop.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../../../../pagination/lib/Pagination/GoTo/Label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAGzC,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../../../../pagination/lib/Pagination/GoTo/Label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAGzC,MAAM,WAAW,cACf,SAAQ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,UAAU,CAAC;IACrE,KAAK,EAAE,eAAe,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC;CAC1E;AAQD,eAAO,MAAM,SAAS,sCAAqC,cAAc,gBAMxE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageButton.d.ts","sourceRoot":"","sources":["../../../../../pagination/lib/Pagination/PageButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAC,eAAe,EAAC,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"PageButton.d.ts","sourceRoot":"","sources":["../../../../../pagination/lib/Pagination/PageButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAC,eAAe,EAAC,MAAM,SAAS,CAAC;AA6CxC,oBAAY,eAAe,GAAG,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,GAAG;IAC5E,KAAK,EAAE,eAAe,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,UAAU,2DAMpB,eAAe,gBAqBjB,CAAC"}
|
|
@@ -57,22 +57,23 @@ var StyledPageButton = common_1.styled(button_1.BaseButton)({
|
|
|
57
57
|
fontWeight: toggled ? 700 : 'normal',
|
|
58
58
|
};
|
|
59
59
|
});
|
|
60
|
-
var getPaginationButtonColors = function (toggled) {
|
|
60
|
+
var getPaginationButtonColors = function (toggled, theme) {
|
|
61
|
+
var themePrimary = theme.canvas.palette.primary;
|
|
61
62
|
return {
|
|
62
63
|
default: {
|
|
63
|
-
background: toggled ?
|
|
64
|
+
background: toggled ? themePrimary.main : 'transparent',
|
|
64
65
|
label: toggled ? tokens_1.colors.frenchVanilla100 : tokens_1.colors.blackPepper400,
|
|
65
66
|
},
|
|
66
67
|
hover: {
|
|
67
|
-
background: toggled ?
|
|
68
|
+
background: toggled ? themePrimary.main : tokens_1.colors.soap300,
|
|
68
69
|
label: toggled ? tokens_1.colors.frenchVanilla100 : tokens_1.colors.blackPepper400,
|
|
69
70
|
},
|
|
70
71
|
active: {
|
|
71
|
-
background: toggled ?
|
|
72
|
+
background: toggled ? themePrimary.main : 'transparent',
|
|
72
73
|
label: toggled ? tokens_1.colors.frenchVanilla100 : tokens_1.colors.blackPepper400,
|
|
73
74
|
},
|
|
74
75
|
focus: {
|
|
75
|
-
background: toggled ?
|
|
76
|
+
background: toggled ? themePrimary.main : 'transparent',
|
|
76
77
|
label: toggled ? tokens_1.colors.frenchVanilla100 : tokens_1.colors.blackPepper400,
|
|
77
78
|
},
|
|
78
79
|
disabled: {
|
|
@@ -83,10 +84,11 @@ var getPaginationButtonColors = function (toggled) {
|
|
|
83
84
|
var PageButton = function (_a) {
|
|
84
85
|
var model = _a.model, onClick = _a.onClick, pageNumber = _a.pageNumber, children = _a.children, elemProps = __rest(_a, ["model", "onClick", "pageNumber", "children"]);
|
|
85
86
|
var isCurrentPage = pageNumber === model.state.currentPage;
|
|
87
|
+
var theme = common_1.useTheme();
|
|
86
88
|
var handleClick = function (e) {
|
|
87
89
|
onClick === null || onClick === void 0 ? void 0 : onClick(e);
|
|
88
90
|
model.events.goTo(pageNumber);
|
|
89
91
|
};
|
|
90
|
-
return (React.createElement(StyledPageButton, __assign({ "aria-current": isCurrentPage ? 'page' : undefined, colors: getPaginationButtonColors(isCurrentPage), "aria-pressed": undefined, onClick: handleClick, toggled: isCurrentPage }, elemProps), children || pageNumber));
|
|
92
|
+
return (React.createElement(StyledPageButton, __assign({ "aria-current": isCurrentPage ? 'page' : undefined, colors: getPaginationButtonColors(isCurrentPage, theme), "aria-pressed": undefined, onClick: handleClick, toggled: isCurrentPage }, elemProps), children || pageNumber));
|
|
91
93
|
};
|
|
92
94
|
exports.PageButton = PageButton;
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { PaginationModel } from './types';
|
|
3
3
|
import { ListItemProps } from './common/List';
|
|
4
4
|
import { HStackProps } from '@workday/canvas-kit-react/layout';
|
|
5
|
-
export interface PageListProps extends Omit<HStackProps, 'as' | 'spacing'> {
|
|
5
|
+
export interface PageListProps extends Omit<HStackProps, 'as' | 'spacing' | '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,EAAS,WAAW,EAAC,MAAM,kCAAkC,CAAC;AAErE,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,WAAW,EAAE,IAAI,GAAG,SAAS,CAAC;
|
|
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,EAAS,WAAW,EAAC,MAAM,kCAAkC,CAAC;AAErE,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,WAAW,EAAE,IAAI,GAAG,SAAS,GAAG,UAAU,CAAC;IACrF,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"}
|
|
@@ -33,6 +33,7 @@ export interface RadioProps extends Themeable {
|
|
|
33
33
|
* The value of the Radio button.
|
|
34
34
|
*/
|
|
35
35
|
value?: string;
|
|
36
|
+
variant?: 'inverse' | undefined;
|
|
36
37
|
}
|
|
37
38
|
export declare const Radio: import("../../common").ElementComponent<"input", RadioProps>;
|
|
38
39
|
export default Radio;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../../radio/lib/Radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAML,SAAS,EAEV,MAAM,kCAAkC,CAAC;AAQ1C,MAAM,WAAW,UAAW,SAAQ,SAAS;IAC3C;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC5D;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../../radio/lib/Radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAML,SAAS,EAEV,MAAM,kCAAkC,CAAC;AAQ1C,MAAM,WAAW,UAAW,SAAQ,SAAS;IAC3C;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC5D;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACjC;AAkPD,eAAO,MAAM,KAAK,8DAgDhB,CAAC;AAEH,eAAe,KAAK,CAAC"}
|
|
@@ -77,7 +77,11 @@ var RadioRipple = common_1.styled('span')({
|
|
|
77
77
|
width: radioWidth,
|
|
78
78
|
position: 'absolute',
|
|
79
79
|
pointerEvents: 'none',
|
|
80
|
-
|
|
80
|
+
}, function (_a) {
|
|
81
|
+
var variant = _a.variant;
|
|
82
|
+
return ({
|
|
83
|
+
opacity: variant === 'inverse' ? '0.4' : '1',
|
|
84
|
+
});
|
|
81
85
|
});
|
|
82
86
|
var RadioInput = common_1.styled('input')({
|
|
83
87
|
borderRadius: radioBorderRadius,
|
|
@@ -92,7 +96,7 @@ var RadioInput = common_1.styled('input')({
|
|
|
92
96
|
outline: 'none',
|
|
93
97
|
},
|
|
94
98
|
}, function (_a) {
|
|
95
|
-
var checked = _a.checked, disabled = _a.disabled, _b = _a.theme.canvas.palette, themePrimary = _b.primary, themeFocusOutline = _b.common.focusOutline;
|
|
99
|
+
var checked = _a.checked, disabled = _a.disabled, variant = _a.variant, _b = _a.theme.canvas.palette, themePrimary = _b.primary, themeFocusOutline = _b.common.focusOutline;
|
|
96
100
|
return (__assign({ cursor: disabled ? undefined : 'pointer',
|
|
97
101
|
/**
|
|
98
102
|
* These selectors are targetting various sibling elements (~) here because
|
|
@@ -111,25 +115,52 @@ var RadioInput = common_1.styled('input')({
|
|
|
111
115
|
// input (which is visually hidden)
|
|
112
116
|
'&:hover ~ div:first-of-type': {
|
|
113
117
|
backgroundColor: checked
|
|
114
|
-
?
|
|
118
|
+
? variant === 'inverse'
|
|
119
|
+
? tokens_1.colors.frenchVanilla100
|
|
120
|
+
: themePrimary.main
|
|
115
121
|
: disabled
|
|
116
122
|
? tokens_1.inputColors.disabled.background
|
|
117
123
|
: 'white',
|
|
118
124
|
borderColor: checked
|
|
119
|
-
?
|
|
125
|
+
? variant === 'inverse'
|
|
126
|
+
? tokens_1.colors.soap300
|
|
127
|
+
: themePrimary.main
|
|
120
128
|
: disabled
|
|
121
129
|
? tokens_1.inputColors.disabled.border
|
|
122
|
-
:
|
|
130
|
+
: variant === 'inverse'
|
|
131
|
+
? tokens_1.colors.soap300
|
|
132
|
+
: tokens_1.inputColors.hoverBorder,
|
|
123
133
|
borderWidth: '1px',
|
|
124
134
|
}, '&:focus, &focus:hover': {
|
|
125
|
-
'& ~ div:first-of-type': {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
135
|
+
'& ~ div:first-of-type': __assign({ borderWidth: '2px', borderColor: variant === 'inverse' ? tokens_1.colors.blackPepper400 : themeFocusOutline, boxShadow: 'none' }, common_1.focusRing({
|
|
136
|
+
width: variant === 'inverse' ? 2 : 0,
|
|
137
|
+
separation: 0,
|
|
138
|
+
animate: false,
|
|
139
|
+
innerColor: variant === 'inverse' ? tokens_1.colors.blackPepper400 : undefined,
|
|
140
|
+
outerColor: variant === 'inverse' ? tokens_1.colors.frenchVanilla100 : undefined,
|
|
141
|
+
})),
|
|
142
|
+
}, '&:checked:focus ~ div:first-of-type': __assign(__assign({}, common_1.focusRing({
|
|
143
|
+
separation: 2,
|
|
144
|
+
width: 2,
|
|
145
|
+
innerColor: variant === 'inverse' ? tokens_1.colors.blackPepper400 : undefined,
|
|
146
|
+
outerColor: variant === 'inverse' ? tokens_1.colors.frenchVanilla100 : themeFocusOutline,
|
|
147
|
+
})), { borderColor: variant === 'inverse' ? tokens_1.colors.frenchVanilla100 : themePrimary.main, borderWidth: '2px' }) }, common_1.mouseFocusBehavior({
|
|
148
|
+
'&:focus ~ div:first-of-type': __assign(__assign({}, common_1.focusRing({
|
|
149
|
+
width: 0,
|
|
150
|
+
outerColor: variant === 'inverse' ? tokens_1.colors.frenchVanilla100 : themeFocusOutline,
|
|
151
|
+
})), { borderWidth: '1px', borderColor: checked
|
|
152
|
+
? variant === 'inverse'
|
|
153
|
+
? tokens_1.colors.soap300
|
|
154
|
+
: themePrimary.main
|
|
155
|
+
: tokens_1.inputColors.border }),
|
|
131
156
|
'&:focus:hover ~ div:first-of-type, &:focus:active ~ div:first-of-type': {
|
|
132
|
-
borderColor: checked
|
|
157
|
+
borderColor: checked
|
|
158
|
+
? variant === 'inverse'
|
|
159
|
+
? tokens_1.colors.soap300
|
|
160
|
+
: themePrimary.main
|
|
161
|
+
: variant === 'inverse'
|
|
162
|
+
? tokens_1.colors.soap300
|
|
163
|
+
: tokens_1.inputColors.hoverBorder,
|
|
133
164
|
},
|
|
134
165
|
})));
|
|
135
166
|
});
|
|
@@ -149,18 +180,25 @@ var RadioBackground = common_1.styled('div')({
|
|
|
149
180
|
transition: 'border 200ms ease, background 200ms',
|
|
150
181
|
width: radioWidth,
|
|
151
182
|
}, function (_a) {
|
|
152
|
-
var checked = _a.checked, disabled = _a.disabled, themePrimary = _a.theme.canvas.palette.primary;
|
|
183
|
+
var checked = _a.checked, disabled = _a.disabled, variant = _a.variant, themePrimary = _a.theme.canvas.palette.primary;
|
|
153
184
|
return ({
|
|
154
185
|
borderColor: checked
|
|
155
|
-
?
|
|
186
|
+
? variant === 'inverse'
|
|
187
|
+
? tokens_1.colors.soap300
|
|
188
|
+
: themePrimary.main
|
|
156
189
|
: disabled
|
|
157
190
|
? tokens_1.inputColors.disabled.border
|
|
158
|
-
:
|
|
191
|
+
: variant === 'inverse'
|
|
192
|
+
? tokens_1.colors.soap300
|
|
193
|
+
: tokens_1.inputColors.border,
|
|
159
194
|
backgroundColor: checked
|
|
160
|
-
?
|
|
195
|
+
? variant === 'inverse'
|
|
196
|
+
? tokens_1.colors.frenchVanilla100
|
|
197
|
+
: themePrimary.main
|
|
161
198
|
: disabled
|
|
162
199
|
? tokens_1.inputColors.disabled.background
|
|
163
200
|
: 'white',
|
|
201
|
+
opacity: disabled && variant === 'inverse' ? '.4' : '1',
|
|
164
202
|
});
|
|
165
203
|
});
|
|
166
204
|
var RadioCheck = common_1.styled('div')({
|
|
@@ -172,9 +210,11 @@ var RadioCheck = common_1.styled('div')({
|
|
|
172
210
|
transition: 'transform 200ms ease, opacity 200ms ease',
|
|
173
211
|
width: radioDot,
|
|
174
212
|
}, function (_a) {
|
|
175
|
-
var theme = _a.theme;
|
|
213
|
+
var theme = _a.theme, variant = _a.variant;
|
|
176
214
|
return ({
|
|
177
|
-
backgroundColor:
|
|
215
|
+
backgroundColor: variant === 'inverse'
|
|
216
|
+
? theme.canvas.palette.primary.main
|
|
217
|
+
: theme.canvas.palette.primary.contrast,
|
|
178
218
|
});
|
|
179
219
|
}, function (_a) {
|
|
180
220
|
var checked = _a.checked;
|
|
@@ -184,21 +224,29 @@ var RadioCheck = common_1.styled('div')({
|
|
|
184
224
|
});
|
|
185
225
|
});
|
|
186
226
|
var RadioLabel = common_1.styled('label')(__assign(__assign({}, tokens_1.default.type.levels.subtext.large), { paddingLeft: radioLabelDistance }), function (_a) {
|
|
187
|
-
var
|
|
188
|
-
return (
|
|
227
|
+
var variant = _a.variant;
|
|
228
|
+
return (variant === 'inverse' ? { color: tokens_1.colors.frenchVanilla100 } : undefined);
|
|
229
|
+
}, function (_a) {
|
|
230
|
+
var disabled = _a.disabled, variant = _a.variant;
|
|
231
|
+
return disabled
|
|
232
|
+
? {
|
|
233
|
+
color: variant === 'inverse' ? tokens_1.colors.frenchVanilla100 : tokens_1.inputColors.disabled.text,
|
|
234
|
+
opacity: variant === 'inverse' ? '.4' : '1',
|
|
235
|
+
}
|
|
236
|
+
: { cursor: 'pointer' };
|
|
189
237
|
});
|
|
190
238
|
exports.Radio = common_1.createComponent('input')({
|
|
191
239
|
displayName: 'Radio',
|
|
192
240
|
Component: function (_a, ref, Element) {
|
|
193
|
-
var _b = _a.checked, checked = _b === void 0 ? false : _b, id = _a.id, _c = _a.label, label = _c === void 0 ? '' : _c, disabled = _a.disabled, name = _a.name, onChange = _a.onChange, value = _a.value, elemProps = __rest(_a, ["checked", "id", "label", "disabled", "name", "onChange", "value"]);
|
|
241
|
+
var _b = _a.checked, checked = _b === void 0 ? false : _b, id = _a.id, _c = _a.label, label = _c === void 0 ? '' : _c, disabled = _a.disabled, name = _a.name, onChange = _a.onChange, value = _a.value, variant = _a.variant, elemProps = __rest(_a, ["checked", "id", "label", "disabled", "name", "onChange", "value", "variant"]);
|
|
194
242
|
var inputId = common_1.useUniqueId(id);
|
|
195
243
|
return (React.createElement(RadioContainer, null,
|
|
196
244
|
React.createElement(RadioInputWrapper, { disabled: disabled },
|
|
197
|
-
React.createElement(RadioInput, __assign({ as: Element, checked: checked, disabled: disabled, id: inputId, ref: ref, name: name, onChange: onChange, type: "radio", value: value, "aria-checked": checked }, elemProps)),
|
|
198
|
-
React.createElement(RadioRipple,
|
|
199
|
-
React.createElement(RadioBackground, { checked: checked, disabled: disabled },
|
|
200
|
-
React.createElement(RadioCheck, { checked: checked }))),
|
|
201
|
-
label && (React.createElement(RadioLabel, { htmlFor: inputId, disabled: disabled }, label))));
|
|
245
|
+
React.createElement(RadioInput, __assign({ as: Element, checked: checked, disabled: disabled, id: inputId, ref: ref, name: name, onChange: onChange, type: "radio", value: value, "aria-checked": checked, variant: variant }, elemProps)),
|
|
246
|
+
React.createElement(RadioRipple, { variant: variant }),
|
|
247
|
+
React.createElement(RadioBackground, { checked: checked, disabled: disabled, variant: variant },
|
|
248
|
+
React.createElement(RadioCheck, { checked: checked, variant: variant }))),
|
|
249
|
+
label && (React.createElement(RadioLabel, { htmlFor: inputId, disabled: disabled, variant: variant }, label))));
|
|
202
250
|
},
|
|
203
251
|
});
|
|
204
252
|
exports.default = exports.Radio;
|
|
@@ -31,6 +31,7 @@ export declare const Tabs: import("../../common").ComponentM<TabsProps & Partial
|
|
|
31
31
|
}>;
|
|
32
32
|
initialHiddenIds: string[];
|
|
33
33
|
containerWidth: number;
|
|
34
|
+
shouldCalculateOverflow: boolean;
|
|
34
35
|
initialSelectedIds: import("../../collection/lib/useSelectionListModel").SelectedIds;
|
|
35
36
|
initialUnselectedIds: string[];
|
|
36
37
|
selection: import("../../collection/lib/useSelectionListModel").SelectionManager;
|
|
@@ -1660,7 +1661,7 @@ export declare const Tabs: import("../../common").ComponentM<TabsProps & Partial
|
|
|
1660
1661
|
navigation: import("../../collection/lib/useCursorListModel").NavigationManager;
|
|
1661
1662
|
getId: (item: any) => string;
|
|
1662
1663
|
}> & {
|
|
1663
|
-
List: import("../../common").ElementComponentM<"div", import("./TabsList").TabListProps<
|
|
1664
|
+
List: import("../../common").ElementComponentM<"div", import("./TabsList").TabListProps<any>, {
|
|
1664
1665
|
state: {
|
|
1665
1666
|
getId: (item: any) => string;
|
|
1666
1667
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
@@ -1977,7 +1978,7 @@ export declare const Tabs: import("../../common").ComponentM<TabsProps & Partial
|
|
|
1977
1978
|
Icon: import("../../common").ElementComponent<"span", import("../..").SystemIconProps>;
|
|
1978
1979
|
Text: import("../../common").ElementComponent<"span", {}>;
|
|
1979
1980
|
};
|
|
1980
|
-
Panel: import("../../common").ElementComponentM<"div", import("./TabsPanel").TabPanelProps
|
|
1981
|
+
Panel: import("../../common").ElementComponentM<"div", import("./TabsPanel").TabPanelProps, {
|
|
1981
1982
|
state: {
|
|
1982
1983
|
getId: (item: any) => string;
|
|
1983
1984
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
@@ -2134,7 +2135,7 @@ export declare const Tabs: import("../../common").ComponentM<TabsProps & Partial
|
|
|
2134
2135
|
navigation: import("../../collection/lib/useCursorListModel").NavigationManager;
|
|
2135
2136
|
getId: (item: any) => string;
|
|
2136
2137
|
}>;
|
|
2137
|
-
Panels: import("../../common").ElementComponentM<React.FC<{}>, import("./TabsPanels").TabsPanelsProps<
|
|
2138
|
+
Panels: import("../../common").ElementComponentM<React.FC<{}>, import("./TabsPanels").TabsPanelsProps<any>, {
|
|
2138
2139
|
state: {
|
|
2139
2140
|
getId: (item: any) => string;
|
|
2140
2141
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
@@ -3831,7 +3832,7 @@ export declare const Tabs: import("../../common").ComponentM<TabsProps & Partial
|
|
|
3831
3832
|
navigation: import("../../collection/lib/useCursorListModel").NavigationManager;
|
|
3832
3833
|
getId: (item: any) => string;
|
|
3833
3834
|
}>;
|
|
3834
|
-
List: import("../../common").ElementComponentM<"div", import("../../menu/lib/MenuList").MenuListProps
|
|
3835
|
+
List: import("../../common").ElementComponentM<"div", import("../../menu/lib/MenuList").MenuListProps<any>, {
|
|
3835
3836
|
state: {
|
|
3836
3837
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
3837
3838
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../../tabs/lib/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../../tabs/lib/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKL,CAAC"}
|
|
@@ -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,
|
|
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,UAAU,EAAC,MAAM,kCAAkC,CAAC;AAYjE,MAAM,WAAW,aACf,SAAQ,YAAY,CAAC,OAAO,GAAG,EAAE,KAAK,CAAC,EACrC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;IACtC;;;;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;;;;wDAwFzB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoBvB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiBnB,CAAC"}
|
|
@@ -54,7 +54,7 @@ exports.StyledTabItem = common_1.styled(layout_1.Box.as('button'))(function (_a)
|
|
|
54
54
|
var theme = _a.theme, spacing = _a.spacing;
|
|
55
55
|
return (__assign(__assign(__assign(__assign({}, tokens_1.type.levels.subtext.large), { '& > *:not(style) ~ *:not(style)': {
|
|
56
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',
|
|
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': {
|
|
58
58
|
fill: tokens_1.iconColors.active,
|
|
59
59
|
}, '&:hover, &:focus': {
|
|
60
60
|
backgroundColor: tokens_1.colors.soap200,
|
|
@@ -131,8 +131,9 @@ exports.TabsItem = common_1.createSubcomponent('button')({
|
|
|
131
131
|
Icon: icon_1.SystemIcon,
|
|
132
132
|
Text: common_1.EllipsisText,
|
|
133
133
|
},
|
|
134
|
-
})(function (_a, Element
|
|
134
|
+
})(function (_a, Element) {
|
|
135
135
|
var children = _a.children, elemProps = __rest(_a, ["children"]);
|
|
136
|
+
var modality = common_1.useModalityType();
|
|
136
137
|
return (React.createElement(tooltip_1.OverflowTooltip, null,
|
|
137
|
-
React.createElement(exports.StyledTabItem, __assign({ as: Element }, elemProps), children)));
|
|
138
|
+
React.createElement(exports.StyledTabItem, __assign({ as: Element, maxWidth: modality === 'touch' ? undefined : 280 }, elemProps), children)));
|
|
138
139
|
});
|