@elliemae/ds-app-picker 2.2.0-alpha.3 → 2.2.0-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/cjs/AppPickerImpl.js +143 -113
- package/cjs/DSAppPicker.js +101 -104
- package/cjs/index.js +11 -36
- package/cjs/propTypes.js +23 -48
- package/cjs/styles.js +158 -184
- package/cjs/types/AppPickerTypes.js +2 -27
- package/cjs/utils.js +16 -44
- package/esm/AppPickerImpl.js +128 -85
- package/esm/DSAppPicker.js +81 -67
- package/esm/index.js +1 -7
- package/esm/propTypes.js +19 -19
- package/esm/styles.js +148 -159
- package/esm/types/AppPickerTypes.js +1 -2
- package/esm/utils.js +12 -15
- package/package.json +6 -6
- package/cjs/AppPickerImpl.js.map +0 -7
- package/cjs/DSAppPicker.js.map +0 -7
- package/cjs/index.js.map +0 -7
- package/cjs/propTypes.js.map +0 -7
- package/cjs/styles.js.map +0 -7
- package/cjs/types/AppPickerTypes.js.map +0 -7
- package/cjs/utils.js.map +0 -7
- package/esm/AppPickerImpl.js.map +0 -7
- package/esm/DSAppPicker.js.map +0 -7
- package/esm/index.js.map +0 -7
- package/esm/propTypes.js.map +0 -7
- package/esm/styles.js.map +0 -7
- package/esm/types/AppPickerTypes.js.map +0 -7
- package/esm/utils.js.map +0 -7
package/cjs/propTypes.js
CHANGED
|
@@ -1,50 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
-
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(module2))
|
|
15
|
-
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
-
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return target;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (module2, isNodeMode) => {
|
|
21
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
-
};
|
|
23
|
-
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
-
return (module2, temp) => {
|
|
25
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
-
};
|
|
27
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
-
var propTypes_exports = {};
|
|
29
|
-
__export(propTypes_exports, {
|
|
30
|
-
propTypes: () => propTypes
|
|
31
|
-
});
|
|
32
|
-
var React = __toESM(require("react"));
|
|
33
|
-
var import_react_desc = __toESM(require("react-desc"));
|
|
34
|
-
var import_ds_icons = __toESM(require("@elliemae/ds-icons"));
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var reactDesc = require('react-desc');
|
|
6
|
+
var dsIcons = require('@elliemae/ds-icons');
|
|
7
|
+
|
|
35
8
|
const propTypes = {
|
|
36
|
-
apps:
|
|
37
|
-
customApps:
|
|
38
|
-
sectionTitle:
|
|
39
|
-
customSectionTitle:
|
|
40
|
-
icon:
|
|
41
|
-
renderTrigger:
|
|
42
|
-
actionRef:
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
9
|
+
apps: reactDesc.PropTypes.array.description('Main items. Format: [{ label:string, icon:component, onClick:func, disabled:bool, selected:bool }]').isRequired,
|
|
10
|
+
customApps: reactDesc.PropTypes.array.description('Custom items. Format: [{ label:string, icon:component, onClick:func, disabled:bool, selected:bool }]'),
|
|
11
|
+
sectionTitle: reactDesc.PropTypes.string.description('main section title').defaultValue('APPLICATIONS'),
|
|
12
|
+
customSectionTitle: reactDesc.PropTypes.string.description('custom section title').defaultValue('CUSTOM APPLICATIONS'),
|
|
13
|
+
icon: reactDesc.PropTypes.func.description('trigger button s icon').defaultValue(dsIcons.MenuPicker),
|
|
14
|
+
renderTrigger: reactDesc.PropTypes.func.description('Custom trigger component.'),
|
|
15
|
+
actionRef: reactDesc.PropTypes.oneOfType([reactDesc.PropTypes.func, reactDesc.PropTypes.shape({
|
|
16
|
+
current: reactDesc.PropTypes.any
|
|
17
|
+
})]).description('Ref containing a focusToIndex method. This method allows you to focus any App inside the AppPicker.'),
|
|
18
|
+
isOpen: reactDesc.PropTypes.bool.description('Wether the AppPicker should be open or not.'),
|
|
19
|
+
onClose: reactDesc.PropTypes.func.description('Callback function when the AppPicker closes'),
|
|
20
|
+
onKeyDown: reactDesc.PropTypes.func.description('OnKeyDown handler callback.'),
|
|
21
|
+
onClick: reactDesc.PropTypes.func.description('Custom onClick for Trigger component.'),
|
|
22
|
+
onClickOutside: reactDesc.PropTypes.func.description('Callback event when the user clicks outside the App Picker.')
|
|
48
23
|
};
|
|
49
|
-
|
|
50
|
-
|
|
24
|
+
|
|
25
|
+
exports.propTypes = propTypes;
|
package/cjs/styles.js
CHANGED
|
@@ -1,190 +1,164 @@
|
|
|
1
|
-
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
-
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(module2))
|
|
15
|
-
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
-
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return target;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (module2, isNodeMode) => {
|
|
21
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
-
};
|
|
23
|
-
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
-
return (module2, temp) => {
|
|
25
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
-
};
|
|
27
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
-
var styles_exports = {};
|
|
29
|
-
__export(styles_exports, {
|
|
30
|
-
StyledChip: () => StyledChip,
|
|
31
|
-
StyledChipLabel: () => StyledChipLabel,
|
|
32
|
-
StyledGrid: () => StyledGrid,
|
|
33
|
-
StyledRow: () => StyledRow,
|
|
34
|
-
StyledSeparator: () => StyledSeparator,
|
|
35
|
-
StyledTitle: () => StyledTitle,
|
|
36
|
-
StyledWrapper: () => StyledWrapper
|
|
37
|
-
});
|
|
38
|
-
var React = __toESM(require("react"));
|
|
39
|
-
var import_ds_system = __toESM(require("@elliemae/ds-system"));
|
|
40
|
-
const StyledTitle = (0, import_ds_system.styled)("h3", { name: "DS-AppPicker", slot: "title" })`
|
|
41
|
-
color: ${({ theme }) => theme.colors.neutral[700]};
|
|
42
|
-
font-size: ${({ theme }) => theme.fontSizes.value[400]};
|
|
43
|
-
font-weight: ${({ theme }) => theme.fontWeights.semibold};
|
|
44
|
-
margin: 12px 0 0 0;
|
|
45
|
-
line-height: 1.38;
|
|
46
|
-
text-transform: uppercase;
|
|
47
|
-
`;
|
|
48
|
-
const StyledWrapper = (0, import_ds_system.styled)("ul", { name: "DS-AppPicker", slot: "root" })`
|
|
49
|
-
align-items: center;
|
|
50
|
-
min-width: 308px;
|
|
51
|
-
min-height: 110px;
|
|
52
|
-
max-height: 449px;
|
|
53
|
-
width: 308px;
|
|
54
|
-
overflow-y: auto;
|
|
55
|
-
overflow-x: hidden;
|
|
56
|
-
margin: 0;
|
|
57
|
-
padding: ${({ isOverflow }) => isOverflow ? "0 0 0 16px" : "0 16px"};
|
|
58
|
-
&:focus {
|
|
59
|
-
outline: none;
|
|
60
|
-
}
|
|
61
|
-
`;
|
|
62
|
-
const StyledGrid = (0, import_ds_system.styled)("div", { name: "DS-AppPicker", slot: "grid" })`
|
|
63
|
-
display: flex;
|
|
64
|
-
flex-direction: column;
|
|
65
|
-
justify-content: center;
|
|
66
|
-
align-items: center;
|
|
67
|
-
width: 100%;
|
|
68
|
-
margin: 8px 0;
|
|
69
|
-
`;
|
|
70
|
-
const StyledRow = (0, import_ds_system.styled)("div", { name: "DS-AppPicker", slot: "row" })`
|
|
71
|
-
display: flex;
|
|
72
|
-
width: 100%;
|
|
73
|
-
`;
|
|
74
|
-
const StyledChipLabel = (0, import_ds_system.styled)("p", { name: "DS-AppPicker", slot: "chipLabel" })`
|
|
75
|
-
font-size: ${({ theme }) => theme.fontSizes.label[200]};
|
|
76
|
-
font-weight: ${({ theme }) => theme.fontWeights.semibold};
|
|
77
|
-
word-wrap: break-word;
|
|
78
|
-
margin: 0 6px;
|
|
79
|
-
line-height: 1.45;
|
|
80
|
-
width: 100%;
|
|
81
|
-
z-index: 120;
|
|
82
|
-
|
|
83
|
-
& span {
|
|
84
|
-
padding-top: 6px;
|
|
85
|
-
}
|
|
86
|
-
`;
|
|
87
|
-
const styledChipSelectedCss = import_ds_system.css`
|
|
88
|
-
color: ${({ theme }) => theme.colors.brand[800]};
|
|
89
|
-
background-color: ${({ theme }) => theme.colors.brand[200]};
|
|
90
|
-
|
|
91
|
-
.app-picker__icon {
|
|
92
|
-
fill: ${({ theme }) => theme.colors.brand[800]};
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
&:before {
|
|
96
|
-
border: 1px solid ${({ theme }) => theme.colors.brand[600]};
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
&:focus {
|
|
100
|
-
&:before {
|
|
101
|
-
border: 2px solid ${({ theme }) => theme.colors.brand[800]};
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
`;
|
|
105
|
-
const StyledChip = (0, import_ds_system.styled)("button", { name: "DS-AppPicker", slot: "chip" })`
|
|
106
|
-
position: relative;
|
|
107
|
-
display: flex;
|
|
108
|
-
flex-direction: column;
|
|
109
|
-
align-items: center;
|
|
110
|
-
justify-content: center;
|
|
111
|
-
border: none;
|
|
112
|
-
height: 68px;
|
|
113
|
-
width: 92px;
|
|
114
|
-
background-color: #fff;
|
|
115
|
-
color: ${({ theme }) => theme.colors.brand[600]};
|
|
116
|
-
cursor: pointer;
|
|
117
|
-
outline: none;
|
|
118
|
-
|
|
119
|
-
&:before {
|
|
120
|
-
content: '';
|
|
121
|
-
position: absolute;
|
|
122
|
-
top: 0;
|
|
123
|
-
left: 0;
|
|
124
|
-
width: 100%;
|
|
125
|
-
height: 100%;
|
|
126
|
-
border-radius: 2px;
|
|
127
|
-
border: 2px solid transparent;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
& .app-picker__icon {
|
|
131
|
-
fill: ${({ theme }) => theme.colors.brand[600]};
|
|
132
|
-
height: 28px;
|
|
133
|
-
width: 28px;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
& .app-picker__icon svg {
|
|
137
|
-
height: 28px;
|
|
138
|
-
width: 28px;
|
|
139
|
-
}
|
|
1
|
+
'use strict';
|
|
140
2
|
|
|
141
|
-
|
|
142
|
-
color: ${({ theme }) => theme.colors.brand[800]};
|
|
143
|
-
background-color: ${({ theme }) => theme.colors.brand[200]};
|
|
144
|
-
.app-picker__icon {
|
|
145
|
-
fill: ${({ theme }) => theme.colors.brand[800]};
|
|
146
|
-
}
|
|
147
|
-
}
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
148
4
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
border-color: ${({ theme }) => theme.colors.brand[800]};
|
|
152
|
-
}
|
|
153
|
-
}
|
|
5
|
+
var _taggedTemplateLiteral = require('@babel/runtime/helpers/taggedTemplateLiteral');
|
|
6
|
+
var dsSystem = require('@elliemae/ds-system');
|
|
154
7
|
|
|
155
|
-
|
|
156
|
-
color: ${({ theme }) => theme.colors.neutral[500]};
|
|
157
|
-
cursor: not-allowed;
|
|
8
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
158
9
|
|
|
159
|
-
|
|
160
|
-
fill: ${({ theme }) => theme.colors.neutral[500]};
|
|
161
|
-
}
|
|
10
|
+
var _taggedTemplateLiteral__default = /*#__PURE__*/_interopDefaultLegacy(_taggedTemplateLiteral);
|
|
162
11
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
12
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
|
13
|
+
const StyledTitle = dsSystem.styled('h3', {
|
|
14
|
+
name: 'DS-AppPicker',
|
|
15
|
+
slot: 'title'
|
|
16
|
+
})(_templateObject || (_templateObject = _taggedTemplateLiteral__default["default"](["\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n margin: 12px 0 0 0;\n line-height: 1.38;\n text-transform: uppercase;\n"])), _ref => {
|
|
17
|
+
let {
|
|
18
|
+
theme
|
|
19
|
+
} = _ref;
|
|
20
|
+
return theme.colors.neutral[700];
|
|
21
|
+
}, _ref2 => {
|
|
22
|
+
let {
|
|
23
|
+
theme
|
|
24
|
+
} = _ref2;
|
|
25
|
+
return theme.fontSizes.value[400];
|
|
26
|
+
}, _ref3 => {
|
|
27
|
+
let {
|
|
28
|
+
theme
|
|
29
|
+
} = _ref3;
|
|
30
|
+
return theme.fontWeights.semibold;
|
|
31
|
+
});
|
|
32
|
+
const StyledWrapper = dsSystem.styled('ul', {
|
|
33
|
+
name: 'DS-AppPicker',
|
|
34
|
+
slot: 'root'
|
|
35
|
+
})(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral__default["default"](["\n align-items: center;\n min-width: 308px;\n min-height: 110px;\n max-height: 449px;\n width: 308px;\n overflow-y: auto;\n overflow-x: hidden;\n margin: 0;\n padding: ", ";\n &:focus {\n outline: none;\n }\n"])), _ref4 => {
|
|
36
|
+
let {
|
|
37
|
+
isOverflow
|
|
38
|
+
} = _ref4;
|
|
39
|
+
return isOverflow ? '0 0 0 16px' : '0 16px';
|
|
40
|
+
});
|
|
41
|
+
const StyledGrid = dsSystem.styled('div', {
|
|
42
|
+
name: 'DS-AppPicker',
|
|
43
|
+
slot: 'grid'
|
|
44
|
+
})(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral__default["default"](["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n margin: 8px 0;\n"])));
|
|
45
|
+
const StyledRow = dsSystem.styled('div', {
|
|
46
|
+
name: 'DS-AppPicker',
|
|
47
|
+
slot: 'row'
|
|
48
|
+
})(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral__default["default"](["\n display: flex;\n width: 100%;\n"])));
|
|
49
|
+
const StyledChipLabel = dsSystem.styled('p', {
|
|
50
|
+
name: 'DS-AppPicker',
|
|
51
|
+
slot: 'chipLabel'
|
|
52
|
+
})(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral__default["default"](["\n font-size: ", ";\n font-weight: ", ";\n word-wrap: break-word;\n margin: 0 6px;\n line-height: 1.45;\n width: 100%;\n z-index: 120;\n\n & span {\n padding-top: 6px;\n }\n"])), _ref5 => {
|
|
53
|
+
let {
|
|
54
|
+
theme
|
|
55
|
+
} = _ref5;
|
|
56
|
+
return theme.fontSizes.label[200];
|
|
57
|
+
}, _ref6 => {
|
|
58
|
+
let {
|
|
59
|
+
theme
|
|
60
|
+
} = _ref6;
|
|
61
|
+
return theme.fontWeights.semibold;
|
|
62
|
+
});
|
|
63
|
+
const styledChipSelectedCss = dsSystem.css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral__default["default"](["\n color: ", ";\n background-color: ", ";\n\n .app-picker__icon {\n fill: ", ";\n }\n\n &:before {\n border: 1px solid ", ";\n }\n\n &:focus {\n &:before {\n border: 2px solid ", ";\n }\n }\n"])), _ref7 => {
|
|
64
|
+
let {
|
|
65
|
+
theme
|
|
66
|
+
} = _ref7;
|
|
67
|
+
return theme.colors.brand[800];
|
|
68
|
+
}, _ref8 => {
|
|
69
|
+
let {
|
|
70
|
+
theme
|
|
71
|
+
} = _ref8;
|
|
72
|
+
return theme.colors.brand[200];
|
|
73
|
+
}, _ref9 => {
|
|
74
|
+
let {
|
|
75
|
+
theme
|
|
76
|
+
} = _ref9;
|
|
77
|
+
return theme.colors.brand[800];
|
|
78
|
+
}, _ref10 => {
|
|
79
|
+
let {
|
|
80
|
+
theme
|
|
81
|
+
} = _ref10;
|
|
82
|
+
return theme.colors.brand[600];
|
|
83
|
+
}, _ref11 => {
|
|
84
|
+
let {
|
|
85
|
+
theme
|
|
86
|
+
} = _ref11;
|
|
87
|
+
return theme.colors.brand[800];
|
|
88
|
+
});
|
|
89
|
+
const StyledChip = dsSystem.styled('button', {
|
|
90
|
+
name: 'DS-AppPicker',
|
|
91
|
+
slot: 'chip'
|
|
92
|
+
})(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral__default["default"](["\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n border: none;\n height: 68px;\n width: 92px;\n background-color: #fff;\n color: ", ";\n cursor: pointer;\n outline: none;\n\n &:before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border-radius: 2px;\n border: 2px solid transparent;\n }\n\n & .app-picker__icon {\n fill: ", ";\n height: 28px;\n width: 28px;\n }\n\n & .app-picker__icon svg {\n height: 28px;\n width: 28px;\n }\n\n &:hover {\n color: ", ";\n background-color: ", ";\n .app-picker__icon {\n fill: ", ";\n }\n }\n\n &:focus {\n &:before {\n border-color: ", ";\n }\n }\n\n &:disabled {\n color: ", ";\n cursor: not-allowed;\n\n .app-picker__icon {\n fill: ", ";\n }\n\n &:focus,\n &:hover {\n background-color: #fff;\n cursor: not-allowed;\n &:before {\n border-color: transparent;\n }\n\n ", " {\n color: ", ";\n }\n }\n\n &:hover .app-picker__icon {\n fill: ", ";\n }\n }\n\n ", "\n"])), _ref12 => {
|
|
93
|
+
let {
|
|
94
|
+
theme
|
|
95
|
+
} = _ref12;
|
|
96
|
+
return theme.colors.brand[600];
|
|
97
|
+
}, _ref13 => {
|
|
98
|
+
let {
|
|
99
|
+
theme
|
|
100
|
+
} = _ref13;
|
|
101
|
+
return theme.colors.brand[600];
|
|
102
|
+
}, _ref14 => {
|
|
103
|
+
let {
|
|
104
|
+
theme
|
|
105
|
+
} = _ref14;
|
|
106
|
+
return theme.colors.brand[800];
|
|
107
|
+
}, _ref15 => {
|
|
108
|
+
let {
|
|
109
|
+
theme
|
|
110
|
+
} = _ref15;
|
|
111
|
+
return theme.colors.brand[200];
|
|
112
|
+
}, _ref16 => {
|
|
113
|
+
let {
|
|
114
|
+
theme
|
|
115
|
+
} = _ref16;
|
|
116
|
+
return theme.colors.brand[800];
|
|
117
|
+
}, _ref17 => {
|
|
118
|
+
let {
|
|
119
|
+
theme
|
|
120
|
+
} = _ref17;
|
|
121
|
+
return theme.colors.brand[800];
|
|
122
|
+
}, _ref18 => {
|
|
123
|
+
let {
|
|
124
|
+
theme
|
|
125
|
+
} = _ref18;
|
|
126
|
+
return theme.colors.neutral[500];
|
|
127
|
+
}, _ref19 => {
|
|
128
|
+
let {
|
|
129
|
+
theme
|
|
130
|
+
} = _ref19;
|
|
131
|
+
return theme.colors.neutral[500];
|
|
132
|
+
}, StyledChipLabel, _ref20 => {
|
|
133
|
+
let {
|
|
134
|
+
theme
|
|
135
|
+
} = _ref20;
|
|
136
|
+
return theme.colors.neutral[500];
|
|
137
|
+
}, _ref21 => {
|
|
138
|
+
let {
|
|
139
|
+
theme
|
|
140
|
+
} = _ref21;
|
|
141
|
+
return theme.colors.neutral[500];
|
|
142
|
+
}, _ref22 => {
|
|
143
|
+
let {
|
|
144
|
+
selected
|
|
145
|
+
} = _ref22;
|
|
146
|
+
return !selected ? '' : styledChipSelectedCss;
|
|
147
|
+
});
|
|
148
|
+
const StyledSeparator = dsSystem.styled('hr', {
|
|
149
|
+
name: 'DS-AppPicker',
|
|
150
|
+
slot: 'separator'
|
|
151
|
+
})(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral__default["default"](["\n border-top: 1px solid ", ";\n border-bottom: none;\n width: 99%;\n margin: 0;\n"])), _ref23 => {
|
|
152
|
+
let {
|
|
153
|
+
theme
|
|
154
|
+
} = _ref23;
|
|
155
|
+
return theme.colors.neutral[100];
|
|
156
|
+
});
|
|
180
157
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
`;
|
|
189
|
-
module.exports = __toCommonJS(styles_exports);
|
|
190
|
-
//# sourceMappingURL=styles.js.map
|
|
158
|
+
exports.StyledChip = StyledChip;
|
|
159
|
+
exports.StyledChipLabel = StyledChipLabel;
|
|
160
|
+
exports.StyledGrid = StyledGrid;
|
|
161
|
+
exports.StyledRow = StyledRow;
|
|
162
|
+
exports.StyledSeparator = StyledSeparator;
|
|
163
|
+
exports.StyledTitle = StyledTitle;
|
|
164
|
+
exports.StyledWrapper = StyledWrapper;
|
|
@@ -1,27 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
-
var __reExport = (target, module2, copyDefault, desc) => {
|
|
9
|
-
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
10
|
-
for (let key of __getOwnPropNames(module2))
|
|
11
|
-
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
12
|
-
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
13
|
-
}
|
|
14
|
-
return target;
|
|
15
|
-
};
|
|
16
|
-
var __toESM = (module2, isNodeMode) => {
|
|
17
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
18
|
-
};
|
|
19
|
-
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
20
|
-
return (module2, temp) => {
|
|
21
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
22
|
-
};
|
|
23
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
24
|
-
var AppPickerTypes_exports = {};
|
|
25
|
-
var React = __toESM(require("react"));
|
|
26
|
-
module.exports = __toCommonJS(AppPickerTypes_exports);
|
|
27
|
-
//# sourceMappingURL=AppPickerTypes.js.map
|
|
1
|
+
'use strict';
|
|
2
|
+
|
package/cjs/utils.js
CHANGED
|
@@ -1,46 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
-
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(module2))
|
|
15
|
-
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
-
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return target;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (module2, isNodeMode) => {
|
|
21
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
-
};
|
|
23
|
-
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
-
return (module2, temp) => {
|
|
25
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
-
};
|
|
27
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
-
var utils_exports = {};
|
|
29
|
-
__export(utils_exports, {
|
|
30
|
-
keys: () => keys
|
|
31
|
-
});
|
|
32
|
-
var React = __toESM(require("react"));
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
33
5
|
const keys = {
|
|
34
|
-
LEFT:
|
|
35
|
-
UP:
|
|
36
|
-
RIGHT:
|
|
37
|
-
DOWN:
|
|
38
|
-
ENTER:
|
|
39
|
-
SPACE:
|
|
40
|
-
TAB:
|
|
41
|
-
ESC:
|
|
42
|
-
HOME:
|
|
43
|
-
END:
|
|
6
|
+
LEFT: 'ArrowLeft',
|
|
7
|
+
UP: 'ArrowUp',
|
|
8
|
+
RIGHT: 'ArrowRight',
|
|
9
|
+
DOWN: 'ArrowDown',
|
|
10
|
+
ENTER: 'Enter',
|
|
11
|
+
SPACE: '',
|
|
12
|
+
TAB: 'Tab',
|
|
13
|
+
ESC: 'Escape',
|
|
14
|
+
HOME: 'Home',
|
|
15
|
+
END: 'End'
|
|
44
16
|
};
|
|
45
|
-
|
|
46
|
-
|
|
17
|
+
|
|
18
|
+
exports.keys = keys;
|