@atlaskit/smart-card 25.0.0 → 25.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/CHANGELOG.md +12 -0
- package/dist/cjs/i18n/cs.js +74 -73
- package/dist/cjs/i18n/da.js +74 -73
- package/dist/cjs/i18n/de.js +74 -73
- package/dist/cjs/i18n/en.js +74 -74
- package/dist/cjs/i18n/en_GB.js +74 -74
- package/dist/cjs/i18n/en_ZZ.js +29 -29
- package/dist/cjs/i18n/es.js +74 -73
- package/dist/cjs/i18n/fi.js +74 -73
- package/dist/cjs/i18n/fr.js +74 -73
- package/dist/cjs/i18n/hu.js +74 -73
- package/dist/cjs/i18n/it.js +74 -73
- package/dist/cjs/i18n/ja.js +74 -73
- package/dist/cjs/i18n/ko.js +74 -73
- package/dist/cjs/i18n/nb.js +74 -73
- package/dist/cjs/i18n/nl.js +74 -73
- package/dist/cjs/i18n/pl.js +74 -73
- package/dist/cjs/i18n/pt_BR.js +74 -73
- package/dist/cjs/i18n/ru.js +74 -73
- package/dist/cjs/i18n/sv.js +74 -73
- package/dist/cjs/i18n/th.js +74 -74
- package/dist/cjs/i18n/tr.js +74 -73
- package/dist/cjs/i18n/uk.js +74 -73
- package/dist/cjs/i18n/vi.js +74 -73
- package/dist/cjs/i18n/zh.js +74 -73
- package/dist/cjs/i18n/zh_TW.js +74 -73
- package/dist/cjs/state/hooks/use-invoke/index.js +37 -0
- package/dist/cjs/state/hooks/use-invoke/types.js +17 -0
- package/dist/cjs/version.json +1 -1
- package/dist/cjs/view/FlexibleCard/components/common/lozenge-action/error-boundary/index.js +28 -0
- package/dist/cjs/view/FlexibleCard/components/common/lozenge-action/index.js +138 -0
- package/dist/cjs/view/FlexibleCard/components/common/lozenge-action/lozenge-action-error/index.js +24 -0
- package/dist/cjs/view/FlexibleCard/components/common/lozenge-action/lozenge-action-error/types.js +5 -0
- package/dist/cjs/view/FlexibleCard/components/common/lozenge-action/lozenge-action-item/index.js +31 -0
- package/dist/cjs/view/FlexibleCard/components/common/lozenge-action/lozenge-action-item/types.js +5 -0
- package/dist/cjs/view/FlexibleCard/components/common/lozenge-action/lozenge-action-trigger/index.js +52 -0
- package/dist/cjs/view/FlexibleCard/components/common/lozenge-action/lozenge-action-trigger/type.js +5 -0
- package/dist/cjs/view/FlexibleCard/components/common/lozenge-action/styled.js +16 -0
- package/dist/cjs/view/FlexibleCard/components/common/lozenge-action/types.js +5 -0
- package/dist/es2019/i18n/cs.js +74 -73
- package/dist/es2019/i18n/da.js +74 -73
- package/dist/es2019/i18n/de.js +74 -73
- package/dist/es2019/i18n/en.js +74 -74
- package/dist/es2019/i18n/en_GB.js +74 -74
- package/dist/es2019/i18n/en_ZZ.js +29 -29
- package/dist/es2019/i18n/es.js +74 -73
- package/dist/es2019/i18n/fi.js +74 -73
- package/dist/es2019/i18n/fr.js +74 -73
- package/dist/es2019/i18n/hu.js +74 -73
- package/dist/es2019/i18n/it.js +74 -73
- package/dist/es2019/i18n/ja.js +74 -73
- package/dist/es2019/i18n/ko.js +74 -73
- package/dist/es2019/i18n/nb.js +74 -73
- package/dist/es2019/i18n/nl.js +74 -73
- package/dist/es2019/i18n/pl.js +74 -73
- package/dist/es2019/i18n/pt_BR.js +74 -73
- package/dist/es2019/i18n/ru.js +74 -73
- package/dist/es2019/i18n/sv.js +74 -73
- package/dist/es2019/i18n/th.js +74 -74
- package/dist/es2019/i18n/tr.js +74 -73
- package/dist/es2019/i18n/uk.js +74 -73
- package/dist/es2019/i18n/vi.js +74 -73
- package/dist/es2019/i18n/zh.js +74 -73
- package/dist/es2019/i18n/zh_TW.js +74 -73
- package/dist/es2019/state/hooks/use-invoke/index.js +10 -0
- package/dist/es2019/state/hooks/use-invoke/types.js +9 -0
- package/dist/es2019/version.json +1 -1
- package/dist/es2019/view/FlexibleCard/components/common/lozenge-action/error-boundary/index.js +13 -0
- package/dist/es2019/view/FlexibleCard/components/common/lozenge-action/index.js +75 -0
- package/dist/es2019/view/FlexibleCard/components/common/lozenge-action/lozenge-action-error/index.js +13 -0
- package/dist/es2019/view/FlexibleCard/components/common/lozenge-action/lozenge-action-error/types.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/common/lozenge-action/lozenge-action-item/index.js +21 -0
- package/dist/es2019/view/FlexibleCard/components/common/lozenge-action/lozenge-action-item/types.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/common/lozenge-action/lozenge-action-trigger/index.js +36 -0
- package/dist/es2019/view/FlexibleCard/components/common/lozenge-action/lozenge-action-trigger/type.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/common/lozenge-action/styled.js +53 -0
- package/dist/es2019/view/FlexibleCard/components/common/lozenge-action/types.js +1 -0
- package/dist/esm/i18n/cs.js +74 -73
- package/dist/esm/i18n/da.js +74 -73
- package/dist/esm/i18n/de.js +74 -73
- package/dist/esm/i18n/en.js +74 -74
- package/dist/esm/i18n/en_GB.js +74 -74
- package/dist/esm/i18n/en_ZZ.js +29 -29
- package/dist/esm/i18n/es.js +74 -73
- package/dist/esm/i18n/fi.js +74 -73
- package/dist/esm/i18n/fr.js +74 -73
- package/dist/esm/i18n/hu.js +74 -73
- package/dist/esm/i18n/it.js +74 -73
- package/dist/esm/i18n/ja.js +74 -73
- package/dist/esm/i18n/ko.js +74 -73
- package/dist/esm/i18n/nb.js +74 -73
- package/dist/esm/i18n/nl.js +74 -73
- package/dist/esm/i18n/pl.js +74 -73
- package/dist/esm/i18n/pt_BR.js +74 -73
- package/dist/esm/i18n/ru.js +74 -73
- package/dist/esm/i18n/sv.js +74 -73
- package/dist/esm/i18n/th.js +74 -74
- package/dist/esm/i18n/tr.js +74 -73
- package/dist/esm/i18n/uk.js +74 -73
- package/dist/esm/i18n/vi.js +74 -73
- package/dist/esm/i18n/zh.js +74 -73
- package/dist/esm/i18n/zh_TW.js +74 -73
- package/dist/esm/state/hooks/use-invoke/index.js +29 -0
- package/dist/esm/state/hooks/use-invoke/types.js +9 -0
- package/dist/esm/version.json +1 -1
- package/dist/esm/view/FlexibleCard/components/common/lozenge-action/error-boundary/index.js +17 -0
- package/dist/esm/view/FlexibleCard/components/common/lozenge-action/index.js +126 -0
- package/dist/esm/view/FlexibleCard/components/common/lozenge-action/lozenge-action-error/index.js +14 -0
- package/dist/esm/view/FlexibleCard/components/common/lozenge-action/lozenge-action-error/types.js +1 -0
- package/dist/esm/view/FlexibleCard/components/common/lozenge-action/lozenge-action-item/index.js +20 -0
- package/dist/esm/view/FlexibleCard/components/common/lozenge-action/lozenge-action-item/types.js +1 -0
- package/dist/esm/view/FlexibleCard/components/common/lozenge-action/lozenge-action-trigger/index.js +45 -0
- package/dist/esm/view/FlexibleCard/components/common/lozenge-action/lozenge-action-trigger/type.js +1 -0
- package/dist/esm/view/FlexibleCard/components/common/lozenge-action/styled.js +6 -0
- package/dist/esm/view/FlexibleCard/components/common/lozenge-action/types.js +1 -0
- package/dist/types/i18n/cs.d.ts +74 -73
- package/dist/types/i18n/da.d.ts +74 -73
- package/dist/types/i18n/de.d.ts +74 -73
- package/dist/types/i18n/en.d.ts +74 -74
- package/dist/types/i18n/en_GB.d.ts +74 -74
- package/dist/types/i18n/en_ZZ.d.ts +29 -29
- package/dist/types/i18n/es.d.ts +74 -73
- package/dist/types/i18n/fi.d.ts +74 -73
- package/dist/types/i18n/fr.d.ts +74 -73
- package/dist/types/i18n/hu.d.ts +74 -73
- package/dist/types/i18n/it.d.ts +74 -73
- package/dist/types/i18n/ja.d.ts +74 -73
- package/dist/types/i18n/ko.d.ts +74 -73
- package/dist/types/i18n/nb.d.ts +74 -73
- package/dist/types/i18n/nl.d.ts +74 -73
- package/dist/types/i18n/pl.d.ts +74 -73
- package/dist/types/i18n/pt_BR.d.ts +74 -73
- package/dist/types/i18n/ru.d.ts +74 -73
- package/dist/types/i18n/sv.d.ts +74 -73
- package/dist/types/i18n/th.d.ts +74 -74
- package/dist/types/i18n/tr.d.ts +74 -73
- package/dist/types/i18n/uk.d.ts +74 -73
- package/dist/types/i18n/vi.d.ts +74 -73
- package/dist/types/i18n/zh.d.ts +74 -73
- package/dist/types/i18n/zh_TW.d.ts +74 -73
- package/dist/types/state/hooks/use-invoke/index.d.ts +3 -0
- package/dist/types/state/hooks/use-invoke/types.d.ts +10 -0
- package/dist/types/view/FlexibleCard/components/common/lozenge-action/error-boundary/index.d.ts +4 -0
- package/dist/types/view/FlexibleCard/components/common/lozenge-action/index.d.ts +4 -0
- package/dist/types/view/FlexibleCard/components/common/lozenge-action/lozenge-action-error/index.d.ts +4 -0
- package/dist/types/view/FlexibleCard/components/common/lozenge-action/lozenge-action-error/types.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/common/lozenge-action/lozenge-action-item/index.d.ts +4 -0
- package/dist/types/view/FlexibleCard/components/common/lozenge-action/lozenge-action-item/types.d.ts +6 -0
- package/dist/types/view/FlexibleCard/components/common/lozenge-action/lozenge-action-trigger/index.d.ts +4 -0
- package/dist/types/view/FlexibleCard/components/common/lozenge-action/lozenge-action-trigger/type.d.ts +7 -0
- package/dist/types/view/FlexibleCard/components/common/lozenge-action/styled.d.ts +3 -0
- package/dist/types/view/FlexibleCard/components/common/lozenge-action/types.d.ts +12 -0
- package/package.json +1 -1
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
3
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
5
|
+
/** @jsx jsx */
|
|
6
|
+
import { jsx } from '@emotion/react';
|
|
7
|
+
import { useCallback, useMemo, useState } from 'react';
|
|
8
|
+
import DropdownMenu, { DropdownItemGroup } from '@atlaskit/dropdown-menu';
|
|
9
|
+
import LozengeActionItem from './lozenge-action-item';
|
|
10
|
+
import LozengeActionTrigger from './lozenge-action-trigger';
|
|
11
|
+
import LozengeActionError from './lozenge-action-error';
|
|
12
|
+
import withErrorBoundary from './error-boundary';
|
|
13
|
+
import useInvoke from '../../../../../state/hooks/use-invoke';
|
|
14
|
+
import { InvokeActionError } from '../../../../../state/hooks/use-invoke/types';
|
|
15
|
+
import { dropdownItemGroupStyles } from './styled';
|
|
16
|
+
var LozengeAction = function LozengeAction(_ref) {
|
|
17
|
+
var action = _ref.action,
|
|
18
|
+
appearance = _ref.appearance,
|
|
19
|
+
_ref$testId = _ref.testId,
|
|
20
|
+
testId = _ref$testId === void 0 ? 'smart-element-lozenge-action' : _ref$testId,
|
|
21
|
+
text = _ref.text;
|
|
22
|
+
var _useState = useState(false),
|
|
23
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
24
|
+
isLoaded = _useState2[0],
|
|
25
|
+
setIsLoaded = _useState2[1];
|
|
26
|
+
var _useState3 = useState(false),
|
|
27
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
28
|
+
isLoading = _useState4[0],
|
|
29
|
+
setIsLoading = _useState4[1];
|
|
30
|
+
var _useState5 = useState(),
|
|
31
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
32
|
+
items = _useState6[0],
|
|
33
|
+
setItems = _useState6[1];
|
|
34
|
+
var _useState7 = useState(),
|
|
35
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
36
|
+
errorCode = _useState8[0],
|
|
37
|
+
setErrorCode = _useState8[1];
|
|
38
|
+
var invoke = useInvoke();
|
|
39
|
+
var onOpenChange = useCallback( /*#__PURE__*/function () {
|
|
40
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(args) {
|
|
41
|
+
var lozengeItems;
|
|
42
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
43
|
+
while (1) {
|
|
44
|
+
switch (_context.prev = _context.next) {
|
|
45
|
+
case 0:
|
|
46
|
+
if (!(args.isOpen && !isLoaded && action)) {
|
|
47
|
+
_context.next = 20;
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
_context.prev = 1;
|
|
51
|
+
setIsLoading(true);
|
|
52
|
+
_context.next = 5;
|
|
53
|
+
return invoke(action);
|
|
54
|
+
case 5:
|
|
55
|
+
_context.t0 = _context.sent;
|
|
56
|
+
if (_context.t0) {
|
|
57
|
+
_context.next = 8;
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
_context.t0 = [];
|
|
61
|
+
case 8:
|
|
62
|
+
lozengeItems = _context.t0;
|
|
63
|
+
setItems(lozengeItems);
|
|
64
|
+
setIsLoaded(true);
|
|
65
|
+
if (lozengeItems.length === 0) {
|
|
66
|
+
setErrorCode(InvokeActionError.NoData);
|
|
67
|
+
}
|
|
68
|
+
_context.next = 17;
|
|
69
|
+
break;
|
|
70
|
+
case 14:
|
|
71
|
+
_context.prev = 14;
|
|
72
|
+
_context.t1 = _context["catch"](1);
|
|
73
|
+
// TODO: EDM-5746 and EDM-5782
|
|
74
|
+
setErrorCode(InvokeActionError.Unknown);
|
|
75
|
+
case 17:
|
|
76
|
+
_context.prev = 17;
|
|
77
|
+
setIsLoading(false);
|
|
78
|
+
return _context.finish(17);
|
|
79
|
+
case 20:
|
|
80
|
+
case "end":
|
|
81
|
+
return _context.stop();
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}, _callee, null, [[1, 14, 17, 20]]);
|
|
85
|
+
}));
|
|
86
|
+
return function (_x) {
|
|
87
|
+
return _ref2.apply(this, arguments);
|
|
88
|
+
};
|
|
89
|
+
}(), [action, invoke, isLoaded]);
|
|
90
|
+
var trigger = useCallback(function (props) {
|
|
91
|
+
return jsx(LozengeActionTrigger, _extends({}, props, {
|
|
92
|
+
appearance: appearance,
|
|
93
|
+
testId: testId,
|
|
94
|
+
text: text
|
|
95
|
+
}));
|
|
96
|
+
}, [appearance, testId, text]);
|
|
97
|
+
var dropdownItemGroup = useMemo(function () {
|
|
98
|
+
if (items && items.length > 0) {
|
|
99
|
+
return jsx("span", {
|
|
100
|
+
css: dropdownItemGroupStyles
|
|
101
|
+
}, jsx(DropdownItemGroup, null, items.map(function (_ref3, idx) {
|
|
102
|
+
var appearance = _ref3.appearance,
|
|
103
|
+
text = _ref3.text;
|
|
104
|
+
return jsx(LozengeActionItem, {
|
|
105
|
+
appearance: appearance,
|
|
106
|
+
key: idx,
|
|
107
|
+
testId: "".concat(testId, "-item-").concat(idx),
|
|
108
|
+
text: text
|
|
109
|
+
});
|
|
110
|
+
})));
|
|
111
|
+
}
|
|
112
|
+
if (errorCode) {
|
|
113
|
+
return jsx(LozengeActionError, {
|
|
114
|
+
errorCode: errorCode,
|
|
115
|
+
testId: testId
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
}, [errorCode, items, testId]);
|
|
119
|
+
return jsx(DropdownMenu, {
|
|
120
|
+
isLoading: isLoading,
|
|
121
|
+
onOpenChange: onOpenChange,
|
|
122
|
+
testId: testId,
|
|
123
|
+
trigger: trigger
|
|
124
|
+
}, dropdownItemGroup);
|
|
125
|
+
};
|
|
126
|
+
export default withErrorBoundary(LozengeAction);
|
package/dist/esm/view/FlexibleCard/components/common/lozenge-action/lozenge-action-error/index.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React, { useMemo } from 'react';
|
|
2
|
+
import { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
|
|
3
|
+
var LozengeActionError = function LozengeActionError(_ref) {
|
|
4
|
+
var errorCode = _ref.errorCode,
|
|
5
|
+
testId = _ref.testId;
|
|
6
|
+
// TODO: EDM-5746 and EDM-5782
|
|
7
|
+
var content = useMemo(function () {
|
|
8
|
+
return errorCode;
|
|
9
|
+
}, [errorCode]);
|
|
10
|
+
return /*#__PURE__*/React.createElement(DropdownItemGroup, null, /*#__PURE__*/React.createElement(DropdownItem, {
|
|
11
|
+
testId: "".concat(testId, "-error")
|
|
12
|
+
}, content));
|
|
13
|
+
};
|
|
14
|
+
export default LozengeActionError;
|
package/dist/esm/view/FlexibleCard/components/common/lozenge-action/lozenge-action-error/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/esm/view/FlexibleCard/components/common/lozenge-action/lozenge-action-item/index.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { useCallback } from 'react';
|
|
2
|
+
import { DropdownItem } from '@atlaskit/dropdown-menu';
|
|
3
|
+
import Lozenge from '@atlaskit/lozenge';
|
|
4
|
+
var LozengeActionItem = function LozengeActionItem(_ref) {
|
|
5
|
+
var appearance = _ref.appearance,
|
|
6
|
+
testId = _ref.testId,
|
|
7
|
+
text = _ref.text;
|
|
8
|
+
var onMouseEnter = useCallback(function (e) {
|
|
9
|
+
var _e$currentTarget, _e$currentTarget$firs;
|
|
10
|
+
(_e$currentTarget = e.currentTarget) === null || _e$currentTarget === void 0 ? void 0 : (_e$currentTarget$firs = _e$currentTarget.firstElementChild) === null || _e$currentTarget$firs === void 0 ? void 0 : _e$currentTarget$firs.focus();
|
|
11
|
+
}, []);
|
|
12
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
13
|
+
onMouseEnter: onMouseEnter
|
|
14
|
+
}, /*#__PURE__*/React.createElement(DropdownItem, {
|
|
15
|
+
testId: testId
|
|
16
|
+
}, /*#__PURE__*/React.createElement(Lozenge, {
|
|
17
|
+
appearance: appearance
|
|
18
|
+
}, text)));
|
|
19
|
+
};
|
|
20
|
+
export default LozengeActionItem;
|
package/dist/esm/view/FlexibleCard/components/common/lozenge-action/lozenge-action-item/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/esm/view/FlexibleCard/components/common/lozenge-action/lozenge-action-trigger/index.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["appearance", "testId", "text", "triggerRef"];
|
|
5
|
+
/** @jsx jsx */
|
|
6
|
+
import { jsx } from '@emotion/react';
|
|
7
|
+
import { useCallback, useState } from 'react';
|
|
8
|
+
import Lozenge from '@atlaskit/lozenge';
|
|
9
|
+
import ChevronDownIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
10
|
+
import { triggerButtonStyles, triggerLozengeStyles } from '../styled';
|
|
11
|
+
var LozengeActionTrigger = function LozengeActionTrigger(_ref) {
|
|
12
|
+
var appearance = _ref.appearance,
|
|
13
|
+
testId = _ref.testId,
|
|
14
|
+
text = _ref.text,
|
|
15
|
+
triggerRef = _ref.triggerRef,
|
|
16
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
17
|
+
var _useState = useState(false),
|
|
18
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
19
|
+
isBold = _useState2[0],
|
|
20
|
+
setIsBold = _useState2[1];
|
|
21
|
+
var onMouseEnter = useCallback(function () {
|
|
22
|
+
return setIsBold(true);
|
|
23
|
+
}, []);
|
|
24
|
+
var onMouseLeave = useCallback(function () {
|
|
25
|
+
return setIsBold(false);
|
|
26
|
+
}, []);
|
|
27
|
+
return jsx("button", _extends({
|
|
28
|
+
type: "button"
|
|
29
|
+
}, props, {
|
|
30
|
+
css: triggerButtonStyles,
|
|
31
|
+
"data-testid": "".concat(testId, "--trigger"),
|
|
32
|
+
onMouseEnter: onMouseEnter,
|
|
33
|
+
onMouseLeave: onMouseLeave,
|
|
34
|
+
ref: triggerRef
|
|
35
|
+
}), jsx(Lozenge, {
|
|
36
|
+
appearance: appearance,
|
|
37
|
+
isBold: isBold
|
|
38
|
+
}, jsx("span", {
|
|
39
|
+
css: triggerLozengeStyles
|
|
40
|
+
}, jsx("span", null, text), jsx(ChevronDownIcon, {
|
|
41
|
+
label: "options",
|
|
42
|
+
size: "medium"
|
|
43
|
+
}))));
|
|
44
|
+
};
|
|
45
|
+
export default LozengeActionTrigger;
|
package/dist/esm/view/FlexibleCard/components/common/lozenge-action/lozenge-action-trigger/type.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
+
var _templateObject, _templateObject2, _templateObject3;
|
|
3
|
+
import { css } from '@emotion/react';
|
|
4
|
+
export var triggerButtonStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n all: unset;\n background-color: transparent;\n color: unset;\n cursor: pointer;\n font-family: unset;\n font-size: unset;\n font-style: unset;\n font-weight: unset;\n font-variant: unset;\n line-height: 0;\n padding: 0;\n text-transform: unset;\n\n border: 2px solid transparent;\n margin: -2px;\n\n &:focus-visible,\n &:focus-within,\n &[aria-expanded='true'] {\n outline: none;\n box-shadow: 0 0 0 2px ", ";\n border-radius: 5px;\n }\n"])), "var(--ds-border-focused, #388BFF)");
|
|
5
|
+
export var triggerLozengeStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n align-items: center;\n display: flex;\n\n span[role='img'] {\n margin: -4px -8px -4px -1px;\n }\n"])));
|
|
6
|
+
export var dropdownItemGroupStyles = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n button {\n padding: 6px 12px;\n min-height: 28px;\n width: 220px;\n\n &:hover {\n background-color: inherit;\n }\n\n &:focus,\n &:focus-visible {\n background-color: ", ";\n box-sizing: border-box;\n box-shadow: inset 2px 0 0 ", ";\n outline: none;\n }\n }\n"])), "var(--ds-background-neutral-subtle-hovered, #091E420F)", "var(--ds-border-selected, #0C66E4)");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/types/i18n/cs.d.ts
CHANGED
|
@@ -1,77 +1,78 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
2
|
+
'fabric.linking.actions': string;
|
|
3
|
+
'fabric.linking.add_account': string;
|
|
4
|
+
'fabric.linking.cancel': string;
|
|
5
|
+
'fabric.linking.cannot_connect': string;
|
|
6
|
+
'fabric.linking.cannot_find_link': string;
|
|
7
|
+
'fabric.linking.check_this_link': string;
|
|
8
|
+
'fabric.linking.click_to_join': string;
|
|
9
|
+
'fabric.linking.click_to_join_description': string;
|
|
10
|
+
'fabric.linking.close': string;
|
|
11
|
+
'fabric.linking.connect_account_description': string;
|
|
12
|
+
'fabric.linking.connect_link_account': string;
|
|
13
|
+
'fabric.linking.connect_link_account_card_view': string;
|
|
14
|
+
'fabric.linking.connect_link_account_card_view_description': string;
|
|
15
|
+
'fabric.linking.connect_link_account_card_view_name': string;
|
|
16
|
+
'fabric.linking.connect_to': string;
|
|
17
|
+
'fabric.linking.connect_unauthorised_account_action': string;
|
|
18
|
+
'fabric.linking.connect_unauthorised_account_description': string;
|
|
19
|
+
'fabric.linking.continue': string;
|
|
20
|
+
'fabric.linking.copy_url_to_clipboard': string;
|
|
21
|
+
'fabric.linking.couldnt_load_link': string;
|
|
22
|
+
'fabric.linking.create_on_absolute': string;
|
|
23
|
+
'fabric.linking.create_on_relative': string;
|
|
24
|
+
'fabric.linking.created_by': string;
|
|
25
|
+
'fabric.linking.delete': string;
|
|
26
|
+
'fabric.linking.download': string;
|
|
27
|
+
'fabric.linking.edit': string;
|
|
28
|
+
'fabric.linking.forbidden_access': string;
|
|
29
|
+
'fabric.linking.forbidden_description': string;
|
|
30
|
+
'fabric.linking.go_back': string;
|
|
31
|
+
'fabric.linking.invalid_permissions': string;
|
|
32
|
+
'fabric.linking.invalid_permissions_description': string;
|
|
33
|
+
'fabric.linking.join_to_view': string;
|
|
34
|
+
'fabric.linking.learn_more_about_smart_links': string;
|
|
35
|
+
'fabric.linking.link_safety_warning_message': string;
|
|
36
|
+
'fabric.linking.loading': string;
|
|
37
|
+
'fabric.linking.modified_on_absolute': string;
|
|
38
|
+
'fabric.linking.modified_on_relative': string;
|
|
39
|
+
'fabric.linking.more_actions': string;
|
|
40
|
+
'fabric.linking.not_found_description': string;
|
|
41
|
+
'fabric.linking.not_found_title': string;
|
|
42
|
+
'fabric.linking.open_link_in_a_new_tab': string;
|
|
43
|
+
'fabric.linking.pending_request': string;
|
|
44
|
+
'fabric.linking.preview': string;
|
|
45
|
+
'fabric.linking.preview_close': string;
|
|
46
|
+
'fabric.linking.preview_max_size': string;
|
|
47
|
+
'fabric.linking.preview_min_size': string;
|
|
48
|
+
'fabric.linking.priority_blocker': string;
|
|
49
|
+
'fabric.linking.priority_critical': string;
|
|
50
|
+
'fabric.linking.priority_high': string;
|
|
51
|
+
'fabric.linking.priority_highest': string;
|
|
52
|
+
'fabric.linking.priority_low': string;
|
|
53
|
+
'fabric.linking.priority_lowest': string;
|
|
54
|
+
'fabric.linking.priority_major': string;
|
|
55
|
+
'fabric.linking.priority_medium': string;
|
|
56
|
+
'fabric.linking.priority_minor': string;
|
|
57
|
+
'fabric.linking.priority_trivial': string;
|
|
58
|
+
'fabric.linking.priority_undefined': string;
|
|
59
|
+
'fabric.linking.request_access': string;
|
|
60
|
+
'fabric.linking.request_access_description': string;
|
|
61
|
+
'fabric.linking.request_access_pending': string;
|
|
62
|
+
'fabric.linking.request_access_pending_description': string;
|
|
63
|
+
'fabric.linking.request_access_to_view': string;
|
|
64
|
+
'fabric.linking.request_denied': string;
|
|
65
|
+
'fabric.linking.request_denied_description': string;
|
|
66
|
+
'fabric.linking.restricted_link': string;
|
|
67
|
+
'fabric.linking.retry': string;
|
|
68
|
+
'fabric.linking.save': string;
|
|
69
|
+
'fabric.linking.srclink': string;
|
|
70
|
+
'fabric.linking.srclinkunknown': string;
|
|
71
|
+
'fabric.linking.try_again': string;
|
|
72
|
+
'fabric.linking.try_another_account': string;
|
|
73
|
+
'fabric.linking.unlink_account': string;
|
|
74
|
+
'fabric.linking.updated_by': string;
|
|
75
|
+
'fabric.linking.view': string;
|
|
75
76
|
};
|
|
76
77
|
/**
|
|
77
78
|
* NOTE:
|
package/dist/types/i18n/da.d.ts
CHANGED
|
@@ -1,77 +1,78 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
2
|
+
'fabric.linking.actions': string;
|
|
3
|
+
'fabric.linking.add_account': string;
|
|
4
|
+
'fabric.linking.cancel': string;
|
|
5
|
+
'fabric.linking.cannot_connect': string;
|
|
6
|
+
'fabric.linking.cannot_find_link': string;
|
|
7
|
+
'fabric.linking.check_this_link': string;
|
|
8
|
+
'fabric.linking.click_to_join': string;
|
|
9
|
+
'fabric.linking.click_to_join_description': string;
|
|
10
|
+
'fabric.linking.close': string;
|
|
11
|
+
'fabric.linking.connect_account_description': string;
|
|
12
|
+
'fabric.linking.connect_link_account': string;
|
|
13
|
+
'fabric.linking.connect_link_account_card_view': string;
|
|
14
|
+
'fabric.linking.connect_link_account_card_view_description': string;
|
|
15
|
+
'fabric.linking.connect_link_account_card_view_name': string;
|
|
16
|
+
'fabric.linking.connect_to': string;
|
|
17
|
+
'fabric.linking.connect_unauthorised_account_action': string;
|
|
18
|
+
'fabric.linking.connect_unauthorised_account_description': string;
|
|
19
|
+
'fabric.linking.continue': string;
|
|
20
|
+
'fabric.linking.copy_url_to_clipboard': string;
|
|
21
|
+
'fabric.linking.couldnt_load_link': string;
|
|
22
|
+
'fabric.linking.create_on_absolute': string;
|
|
23
|
+
'fabric.linking.create_on_relative': string;
|
|
24
|
+
'fabric.linking.created_by': string;
|
|
25
|
+
'fabric.linking.delete': string;
|
|
26
|
+
'fabric.linking.download': string;
|
|
27
|
+
'fabric.linking.edit': string;
|
|
28
|
+
'fabric.linking.forbidden_access': string;
|
|
29
|
+
'fabric.linking.forbidden_description': string;
|
|
30
|
+
'fabric.linking.go_back': string;
|
|
31
|
+
'fabric.linking.invalid_permissions': string;
|
|
32
|
+
'fabric.linking.invalid_permissions_description': string;
|
|
33
|
+
'fabric.linking.join_to_view': string;
|
|
34
|
+
'fabric.linking.learn_more_about_smart_links': string;
|
|
35
|
+
'fabric.linking.link_safety_warning_message': string;
|
|
36
|
+
'fabric.linking.loading': string;
|
|
37
|
+
'fabric.linking.modified_on_absolute': string;
|
|
38
|
+
'fabric.linking.modified_on_relative': string;
|
|
39
|
+
'fabric.linking.more_actions': string;
|
|
40
|
+
'fabric.linking.not_found_description': string;
|
|
41
|
+
'fabric.linking.not_found_title': string;
|
|
42
|
+
'fabric.linking.open_link_in_a_new_tab': string;
|
|
43
|
+
'fabric.linking.pending_request': string;
|
|
44
|
+
'fabric.linking.preview': string;
|
|
45
|
+
'fabric.linking.preview_close': string;
|
|
46
|
+
'fabric.linking.preview_max_size': string;
|
|
47
|
+
'fabric.linking.preview_min_size': string;
|
|
48
|
+
'fabric.linking.priority_blocker': string;
|
|
49
|
+
'fabric.linking.priority_critical': string;
|
|
50
|
+
'fabric.linking.priority_high': string;
|
|
51
|
+
'fabric.linking.priority_highest': string;
|
|
52
|
+
'fabric.linking.priority_low': string;
|
|
53
|
+
'fabric.linking.priority_lowest': string;
|
|
54
|
+
'fabric.linking.priority_major': string;
|
|
55
|
+
'fabric.linking.priority_medium': string;
|
|
56
|
+
'fabric.linking.priority_minor': string;
|
|
57
|
+
'fabric.linking.priority_trivial': string;
|
|
58
|
+
'fabric.linking.priority_undefined': string;
|
|
59
|
+
'fabric.linking.request_access': string;
|
|
60
|
+
'fabric.linking.request_access_description': string;
|
|
61
|
+
'fabric.linking.request_access_pending': string;
|
|
62
|
+
'fabric.linking.request_access_pending_description': string;
|
|
63
|
+
'fabric.linking.request_access_to_view': string;
|
|
64
|
+
'fabric.linking.request_denied': string;
|
|
65
|
+
'fabric.linking.request_denied_description': string;
|
|
66
|
+
'fabric.linking.restricted_link': string;
|
|
67
|
+
'fabric.linking.retry': string;
|
|
68
|
+
'fabric.linking.save': string;
|
|
69
|
+
'fabric.linking.srclink': string;
|
|
70
|
+
'fabric.linking.srclinkunknown': string;
|
|
71
|
+
'fabric.linking.try_again': string;
|
|
72
|
+
'fabric.linking.try_another_account': string;
|
|
73
|
+
'fabric.linking.unlink_account': string;
|
|
74
|
+
'fabric.linking.updated_by': string;
|
|
75
|
+
'fabric.linking.view': string;
|
|
75
76
|
};
|
|
76
77
|
/**
|
|
77
78
|
* NOTE:
|