@splunk/react-ui 4.19.0 → 4.21.0
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/Accordion.js +114 -230
- package/Anchor.js +74 -150
- package/Animation.js +52 -124
- package/AnimationToggle.js +86 -146
- package/Box.js +77 -153
- package/Breadcrumbs.d.ts +2 -0
- package/Breadcrumbs.js +207 -0
- package/Button.js +168 -316
- package/ButtonGroup.js +84 -168
- package/ButtonSimple.js +224 -324
- package/CHANGELOG.md +35 -0
- package/Calendar.js +264 -462
- package/Card.js +223 -371
- package/CardLayout.js +87 -163
- package/Chip.js +199 -323
- package/Clickable.js +132 -248
- package/CloseButton.js +92 -200
- package/Code.js +188 -251
- package/CollapsiblePanel.js +214 -370
- package/Color.js +267 -495
- package/ColumnLayout.js +152 -254
- package/ComboBox.js +197 -371
- package/Concertina.js +214 -374
- package/ControlGroup.js +164 -288
- package/Date.js +154 -304
- package/DefinitionList.js +104 -180
- package/Divider.js +80 -156
- package/Dropdown.js +121 -263
- package/DualListbox.js +408 -601
- package/EventListener.js +70 -138
- package/File.js +343 -547
- package/FormRows.js +232 -414
- package/Heading.js +94 -164
- package/Image.js +167 -323
- package/JSONTree.js +166 -314
- package/Layer.js +221 -388
- package/Link.js +133 -239
- package/List.js +85 -161
- package/Markdown.js +230 -355
- package/Menu.js +396 -647
- package/Message.js +248 -437
- package/MessageBar.js +220 -408
- package/Modal.js +201 -365
- package/ModalLayer.js +96 -196
- package/Monogram.js +112 -204
- package/Multiselect.js +2675 -2807
- package/Number.js +178 -334
- package/Paginator.js +170 -336
- package/Paragraph.js +77 -153
- package/Popover.js +436 -623
- package/Progress.js +139 -255
- package/RadioBar.js +156 -280
- package/RadioList.js +182 -282
- package/Resize.js +173 -307
- package/ResultsMenu.js +183 -304
- package/ScreenReaderContent.js +75 -151
- package/Scroll.js +125 -267
- package/ScrollContainerContext.js +129 -201
- package/Search.js +188 -354
- package/Select.js +1243 -1248
- package/SidePanel.js +106 -214
- package/Slider.js +198 -348
- package/SlidingPanels.js +138 -280
- package/SplitButton.js +141 -273
- package/StaticContent.js +84 -168
- package/StepBar.js +138 -246
- package/Switch.js +261 -385
- package/TabBar.js +261 -398
- package/TabLayout.js +122 -238
- package/Table.js +975 -1447
- package/Text.js +335 -549
- package/TextArea.js +315 -537
- package/Tooltip.js +152 -292
- package/TransitionOpen.js +118 -242
- package/Typography.js +81 -157
- package/WaitSpinner.js +117 -209
- package/package.json +20 -21
- package/stubs-splunkui.d.ts +4 -1
- package/types/src/Breadcrumbs/Breadcrumbs.d.ts +25 -0
- package/types/src/Breadcrumbs/Item.d.ts +42 -0
- package/types/src/Breadcrumbs/docs/examples/Adornments.d.ts +2 -0
- package/types/src/Breadcrumbs/docs/examples/Basic.d.ts +2 -0
- package/types/src/Breadcrumbs/index.d.ts +2 -0
- package/types/src/Code/Code.d.ts +1 -1
- package/types/src/ComboBox/Option.d.ts +1 -1
- package/types/src/Concertina/Concertina.d.ts +4 -0
- package/types/src/Link/Link.d.ts +12 -3
- package/types/src/Link/docs/examples/NewWindow.d.ts +2 -0
- package/types/src/Markdown/Markdown.d.ts +1 -1
- package/types/src/Markdown/renderers/MarkdownHeading.d.ts +1 -1
- package/types/src/Menu/Item.d.ts +1 -1
- package/types/src/Menu/Menu.d.ts +1 -0
- package/types/src/MessageBar/docs/examples/WithActions.d.ts +2 -0
- package/types/src/Multiselect/Compact.d.ts +4 -0
- package/types/src/Multiselect/Multiselect.d.ts +5 -0
- package/types/src/Multiselect/Option.d.ts +1 -1
- package/types/src/Multiselect/docs/examples/CompactSelectAll.d.ts +2 -0
- package/types/src/Search/Option.d.ts +1 -1
- package/types/src/Select/Option.d.ts +1 -1
- package/types/src/Select/OptionBase.d.ts +1 -1
- package/types/src/Select/SelectAllOption.d.ts +14 -0
- package/types/src/Select/SelectBase.d.ts +11 -3
- package/types/src/Table/Table.d.ts +4 -0
- package/types/src/Text/Text.d.ts +3 -3
- package/types/src/TextArea/TextArea.d.ts +3 -3
- package/types/src/fixtures/FetchOptions.d.ts +2 -8
- package/useForceUpdate.js +46 -110
- package/useKeyPress.js +50 -107
- package/usePrevious.js +47 -111
- package/useRovingFocus.js +53 -133
- package/types/src/Link/docs/examples/NewTab.d.ts +0 -2
- package/types/src/Typography/docs/examples/Variants.d.ts +0 -2
- /package/types/src/Table/docs/examples/{DockedHeader.d.ts → DockedHeaderScrollbar.d.ts} +0 -0
- /package/types/src/Table/docs/examples/prisma/{DockedHeader.d.ts → DockedHeaderScrollbar.d.ts} +0 -0
package/Color.js
CHANGED
|
@@ -1,324 +1,189 @@
|
|
|
1
|
-
|
|
2
|
-
/******/
|
|
3
|
-
/******/ // The
|
|
4
|
-
/******/ var
|
|
5
|
-
/******/
|
|
6
|
-
|
|
7
|
-
/******/
|
|
8
|
-
/******/
|
|
9
|
-
/******/ //
|
|
10
|
-
/******/
|
|
11
|
-
/******/
|
|
12
|
-
/******/
|
|
13
|
-
/******/
|
|
14
|
-
/******/
|
|
15
|
-
/******/
|
|
16
|
-
/******/
|
|
17
|
-
/******/
|
|
1
|
+
/******/ (() => { // webpackBootstrap
|
|
2
|
+
/******/ "use strict";
|
|
3
|
+
/******/ // The require scope
|
|
4
|
+
/******/ var __webpack_require__ = {};
|
|
5
|
+
/******/
|
|
6
|
+
/************************************************************************/
|
|
7
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
8
|
+
/******/ (() => {
|
|
9
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
10
|
+
/******/ __webpack_require__.n = (module) => {
|
|
11
|
+
/******/ var getter = module && module.__esModule ?
|
|
12
|
+
/******/ () => (module['default']) :
|
|
13
|
+
/******/ () => (module);
|
|
14
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
15
|
+
/******/ return getter;
|
|
16
|
+
/******/ };
|
|
17
|
+
/******/ })();
|
|
18
|
+
/******/
|
|
19
|
+
/******/ /* webpack/runtime/define property getters */
|
|
20
|
+
/******/ (() => {
|
|
21
|
+
/******/ // define getter functions for harmony exports
|
|
22
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
23
|
+
/******/ for(var key in definition) {
|
|
24
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
25
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
26
|
+
/******/ }
|
|
27
|
+
/******/ }
|
|
18
28
|
/******/ };
|
|
19
|
-
/******/
|
|
20
|
-
/******/
|
|
21
|
-
/******/
|
|
22
|
-
/******/
|
|
23
|
-
/******/
|
|
24
|
-
/******/
|
|
25
|
-
/******/
|
|
26
|
-
/******/
|
|
27
|
-
/******/
|
|
28
|
-
/******/
|
|
29
|
-
/******/
|
|
30
|
-
/******/
|
|
31
|
-
/******/
|
|
32
|
-
/******/
|
|
33
|
-
/******/
|
|
34
|
-
/******/
|
|
35
|
-
/******/
|
|
36
|
-
/******/
|
|
37
|
-
/******/ // define getter function for harmony exports
|
|
38
|
-
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
39
|
-
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
40
|
-
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
41
|
-
/******/ }
|
|
42
|
-
/******/ };
|
|
43
|
-
/******/
|
|
44
|
-
/******/ // define __esModule on exports
|
|
45
|
-
/******/ __webpack_require__.r = function(exports) {
|
|
46
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
47
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
48
|
-
/******/ }
|
|
49
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
50
|
-
/******/ };
|
|
51
|
-
/******/
|
|
52
|
-
/******/ // create a fake namespace object
|
|
53
|
-
/******/ // mode & 1: value is a module id, require it
|
|
54
|
-
/******/ // mode & 2: merge all properties of value into the ns
|
|
55
|
-
/******/ // mode & 4: return value when already ns object
|
|
56
|
-
/******/ // mode & 8|1: behave like require
|
|
57
|
-
/******/ __webpack_require__.t = function(value, mode) {
|
|
58
|
-
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
59
|
-
/******/ if(mode & 8) return value;
|
|
60
|
-
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
61
|
-
/******/ var ns = Object.create(null);
|
|
62
|
-
/******/ __webpack_require__.r(ns);
|
|
63
|
-
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
64
|
-
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
65
|
-
/******/ return ns;
|
|
66
|
-
/******/ };
|
|
67
|
-
/******/
|
|
68
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
69
|
-
/******/ __webpack_require__.n = function(module) {
|
|
70
|
-
/******/ var getter = module && module.__esModule ?
|
|
71
|
-
/******/ function getDefault() { return module['default']; } :
|
|
72
|
-
/******/ function getModuleExports() { return module; };
|
|
73
|
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
74
|
-
/******/ return getter;
|
|
75
|
-
/******/ };
|
|
76
|
-
/******/
|
|
77
|
-
/******/ // Object.prototype.hasOwnProperty.call
|
|
78
|
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
79
|
-
/******/
|
|
80
|
-
/******/ // __webpack_public_path__
|
|
81
|
-
/******/ __webpack_require__.p = "";
|
|
82
|
-
/******/
|
|
83
|
-
/******/
|
|
84
|
-
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s = 178);
|
|
86
|
-
/******/ })
|
|
29
|
+
/******/ })();
|
|
30
|
+
/******/
|
|
31
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
32
|
+
/******/ (() => {
|
|
33
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
34
|
+
/******/ })();
|
|
35
|
+
/******/
|
|
36
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
37
|
+
/******/ (() => {
|
|
38
|
+
/******/ // define __esModule on exports
|
|
39
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
40
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
41
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
42
|
+
/******/ }
|
|
43
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
44
|
+
/******/ };
|
|
45
|
+
/******/ })();
|
|
46
|
+
/******/
|
|
87
47
|
/************************************************************************/
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
/***/ 0:
|
|
91
|
-
/***/ (function(module, exports) {
|
|
92
|
-
|
|
93
|
-
module.exports = require("@splunk/themes");
|
|
94
|
-
|
|
95
|
-
/***/ }),
|
|
96
|
-
|
|
97
|
-
/***/ 1:
|
|
98
|
-
/***/ (function(module, exports) {
|
|
99
|
-
|
|
100
|
-
module.exports = require("prop-types");
|
|
101
|
-
|
|
102
|
-
/***/ }),
|
|
103
|
-
|
|
104
|
-
/***/ 106:
|
|
105
|
-
/***/ (function(module, exports) {
|
|
106
|
-
|
|
107
|
-
module.exports = require("lodash/slice");
|
|
108
|
-
|
|
109
|
-
/***/ }),
|
|
110
|
-
|
|
111
|
-
/***/ 11:
|
|
112
|
-
/***/ (function(module, exports) {
|
|
113
|
-
|
|
114
|
-
module.exports = require("lodash/has");
|
|
115
|
-
|
|
116
|
-
/***/ }),
|
|
117
|
-
|
|
118
|
-
/***/ 116:
|
|
119
|
-
/***/ (function(module, exports) {
|
|
120
|
-
|
|
121
|
-
module.exports = require("lodash/startsWith");
|
|
122
|
-
|
|
123
|
-
/***/ }),
|
|
124
|
-
|
|
125
|
-
/***/ 12:
|
|
126
|
-
/***/ (function(module, exports) {
|
|
127
|
-
|
|
128
|
-
module.exports = require("@splunk/react-ui/Clickable");
|
|
129
|
-
|
|
130
|
-
/***/ }),
|
|
131
|
-
|
|
132
|
-
/***/ 126:
|
|
133
|
-
/***/ (function(module, exports) {
|
|
134
|
-
|
|
135
|
-
module.exports = require("lodash/memoize");
|
|
136
|
-
|
|
137
|
-
/***/ }),
|
|
138
|
-
|
|
139
|
-
/***/ 127:
|
|
140
|
-
/***/ (function(module, exports) {
|
|
141
|
-
|
|
142
|
-
module.exports = require("@splunk/react-icons/ChevronDown");
|
|
143
|
-
|
|
144
|
-
/***/ }),
|
|
145
|
-
|
|
146
|
-
/***/ 14:
|
|
147
|
-
/***/ (function(module, exports) {
|
|
148
|
-
|
|
149
|
-
module.exports = require("@splunk/react-ui/ScreenReaderContent");
|
|
150
|
-
|
|
151
|
-
/***/ }),
|
|
152
|
-
|
|
153
|
-
/***/ 15:
|
|
154
|
-
/***/ (function(module, exports) {
|
|
155
|
-
|
|
156
|
-
module.exports = require("lodash/includes");
|
|
157
|
-
|
|
158
|
-
/***/ }),
|
|
159
|
-
|
|
160
|
-
/***/ 178:
|
|
161
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
162
|
-
|
|
163
|
-
"use strict";
|
|
48
|
+
var __webpack_exports__ = {};
|
|
164
49
|
// ESM COMPAT FLAG
|
|
165
50
|
__webpack_require__.r(__webpack_exports__);
|
|
166
51
|
|
|
167
52
|
// EXPORTS
|
|
168
|
-
__webpack_require__.d(__webpack_exports__,
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
var external_react_ = __webpack_require__(2);
|
|
174
|
-
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
175
|
-
|
|
176
|
-
// EXTERNAL MODULE: external "prop-types"
|
|
177
|
-
var external_prop_types_ = __webpack_require__(1);
|
|
178
|
-
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
179
|
-
|
|
180
|
-
// EXTERNAL MODULE: external "lodash/debounce"
|
|
181
|
-
var debounce_ = __webpack_require__(66);
|
|
182
|
-
var debounce_default = /*#__PURE__*/__webpack_require__.n(debounce_);
|
|
183
|
-
|
|
184
|
-
// EXTERNAL MODULE: external "lodash/has"
|
|
185
|
-
var has_ = __webpack_require__(11);
|
|
186
|
-
var has_default = /*#__PURE__*/__webpack_require__.n(has_);
|
|
187
|
-
|
|
188
|
-
// EXTERNAL MODULE: external "lodash/includes"
|
|
189
|
-
var includes_ = __webpack_require__(15);
|
|
190
|
-
var includes_default = /*#__PURE__*/__webpack_require__.n(includes_);
|
|
191
|
-
|
|
192
|
-
// EXTERNAL MODULE: external "lodash/keys"
|
|
193
|
-
var keys_ = __webpack_require__(9);
|
|
194
|
-
var keys_default = /*#__PURE__*/__webpack_require__.n(keys_);
|
|
195
|
-
|
|
196
|
-
// EXTERNAL MODULE: external "lodash/omit"
|
|
197
|
-
var omit_ = __webpack_require__(5);
|
|
198
|
-
var omit_default = /*#__PURE__*/__webpack_require__.n(omit_);
|
|
199
|
-
|
|
200
|
-
// EXTERNAL MODULE: external "lodash/slice"
|
|
201
|
-
var slice_ = __webpack_require__(106);
|
|
202
|
-
var slice_default = /*#__PURE__*/__webpack_require__.n(slice_);
|
|
203
|
-
|
|
204
|
-
// EXTERNAL MODULE: external "lodash/startsWith"
|
|
205
|
-
var startsWith_ = __webpack_require__(116);
|
|
206
|
-
var startsWith_default = /*#__PURE__*/__webpack_require__.n(startsWith_);
|
|
207
|
-
|
|
208
|
-
// EXTERNAL MODULE: external "lodash/toLower"
|
|
209
|
-
var toLower_ = __webpack_require__(34);
|
|
210
|
-
var toLower_default = /*#__PURE__*/__webpack_require__.n(toLower_);
|
|
211
|
-
|
|
212
|
-
// EXTERNAL MODULE: external "lodash/memoize"
|
|
213
|
-
var memoize_ = __webpack_require__(126);
|
|
214
|
-
var memoize_default = /*#__PURE__*/__webpack_require__.n(memoize_);
|
|
215
|
-
|
|
216
|
-
// EXTERNAL MODULE: external "tinycolor2"
|
|
217
|
-
var external_tinycolor2_ = __webpack_require__(67);
|
|
218
|
-
var external_tinycolor2_default = /*#__PURE__*/__webpack_require__.n(external_tinycolor2_);
|
|
219
|
-
|
|
220
|
-
// EXTERNAL MODULE: external "@splunk/react-ui/Dropdown"
|
|
221
|
-
var Dropdown_ = __webpack_require__(22);
|
|
222
|
-
var Dropdown_default = /*#__PURE__*/__webpack_require__.n(Dropdown_);
|
|
223
|
-
|
|
224
|
-
// EXTERNAL MODULE: external "@splunk/themes"
|
|
225
|
-
var themes_ = __webpack_require__(0);
|
|
226
|
-
|
|
227
|
-
// EXTERNAL MODULE: external "@splunk/ui-utils/color"
|
|
228
|
-
var color_ = __webpack_require__(47);
|
|
229
|
-
|
|
230
|
-
// EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
|
|
231
|
-
var i18n_ = __webpack_require__(4);
|
|
232
|
-
|
|
233
|
-
// EXTERNAL MODULE: external "@splunk/ui-utils/keyboard"
|
|
234
|
-
var keyboard_ = __webpack_require__(7);
|
|
235
|
-
|
|
236
|
-
// EXTERNAL MODULE: external "styled-components"
|
|
237
|
-
var external_styled_components_ = __webpack_require__(3);
|
|
238
|
-
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
239
|
-
|
|
240
|
-
// EXTERNAL MODULE: external "@splunk/react-ui/Text"
|
|
241
|
-
var Text_ = __webpack_require__(30);
|
|
242
|
-
var Text_default = /*#__PURE__*/__webpack_require__.n(Text_);
|
|
243
|
-
|
|
244
|
-
// EXTERNAL MODULE: external "@splunk/react-ui/ScreenReaderContent"
|
|
245
|
-
var ScreenReaderContent_ = __webpack_require__(14);
|
|
246
|
-
var ScreenReaderContent_default = /*#__PURE__*/__webpack_require__.n(ScreenReaderContent_);
|
|
247
|
-
|
|
248
|
-
// EXTERNAL MODULE: external "@splunk/react-icons/Checkmark"
|
|
249
|
-
var Checkmark_ = __webpack_require__(76);
|
|
250
|
-
var Checkmark_default = /*#__PURE__*/__webpack_require__.n(Checkmark_);
|
|
251
|
-
|
|
252
|
-
// EXTERNAL MODULE: external "@splunk/react-ui/Clickable"
|
|
253
|
-
var Clickable_ = __webpack_require__(12);
|
|
254
|
-
var Clickable_default = /*#__PURE__*/__webpack_require__.n(Clickable_);
|
|
255
|
-
|
|
256
|
-
// CONCATENATED MODULE: ./src/Color/SwatchStyles.ts
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
53
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
54
|
+
"default": () => (/* reexport */ Color_Color),
|
|
55
|
+
defaultPalette: () => (/* reexport */ defaultPalette),
|
|
56
|
+
isValidHEX: () => (/* reexport */ isValidHEX)
|
|
57
|
+
});
|
|
260
58
|
|
|
261
|
-
|
|
262
|
-
|
|
59
|
+
;// CONCATENATED MODULE: external "react"
|
|
60
|
+
const external_react_namespaceObject = require("react");
|
|
61
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_namespaceObject);
|
|
62
|
+
;// CONCATENATED MODULE: external "prop-types"
|
|
63
|
+
const external_prop_types_namespaceObject = require("prop-types");
|
|
64
|
+
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_namespaceObject);
|
|
65
|
+
;// CONCATENATED MODULE: external "lodash/debounce"
|
|
66
|
+
const debounce_namespaceObject = require("lodash/debounce");
|
|
67
|
+
var debounce_default = /*#__PURE__*/__webpack_require__.n(debounce_namespaceObject);
|
|
68
|
+
;// CONCATENATED MODULE: external "lodash/has"
|
|
69
|
+
const has_namespaceObject = require("lodash/has");
|
|
70
|
+
var has_default = /*#__PURE__*/__webpack_require__.n(has_namespaceObject);
|
|
71
|
+
;// CONCATENATED MODULE: external "lodash/includes"
|
|
72
|
+
const includes_namespaceObject = require("lodash/includes");
|
|
73
|
+
var includes_default = /*#__PURE__*/__webpack_require__.n(includes_namespaceObject);
|
|
74
|
+
;// CONCATENATED MODULE: external "lodash/keys"
|
|
75
|
+
const keys_namespaceObject = require("lodash/keys");
|
|
76
|
+
var keys_default = /*#__PURE__*/__webpack_require__.n(keys_namespaceObject);
|
|
77
|
+
;// CONCATENATED MODULE: external "lodash/omit"
|
|
78
|
+
const omit_namespaceObject = require("lodash/omit");
|
|
79
|
+
var omit_default = /*#__PURE__*/__webpack_require__.n(omit_namespaceObject);
|
|
80
|
+
;// CONCATENATED MODULE: external "lodash/slice"
|
|
81
|
+
const slice_namespaceObject = require("lodash/slice");
|
|
82
|
+
var slice_default = /*#__PURE__*/__webpack_require__.n(slice_namespaceObject);
|
|
83
|
+
;// CONCATENATED MODULE: external "lodash/startsWith"
|
|
84
|
+
const startsWith_namespaceObject = require("lodash/startsWith");
|
|
85
|
+
var startsWith_default = /*#__PURE__*/__webpack_require__.n(startsWith_namespaceObject);
|
|
86
|
+
;// CONCATENATED MODULE: external "lodash/toLower"
|
|
87
|
+
const toLower_namespaceObject = require("lodash/toLower");
|
|
88
|
+
var toLower_default = /*#__PURE__*/__webpack_require__.n(toLower_namespaceObject);
|
|
89
|
+
;// CONCATENATED MODULE: external "lodash/memoize"
|
|
90
|
+
const memoize_namespaceObject = require("lodash/memoize");
|
|
91
|
+
var memoize_default = /*#__PURE__*/__webpack_require__.n(memoize_namespaceObject);
|
|
92
|
+
;// CONCATENATED MODULE: external "tinycolor2"
|
|
93
|
+
const external_tinycolor2_namespaceObject = require("tinycolor2");
|
|
94
|
+
var external_tinycolor2_default = /*#__PURE__*/__webpack_require__.n(external_tinycolor2_namespaceObject);
|
|
95
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/Dropdown"
|
|
96
|
+
const Dropdown_namespaceObject = require("@splunk/react-ui/Dropdown");
|
|
97
|
+
var Dropdown_default = /*#__PURE__*/__webpack_require__.n(Dropdown_namespaceObject);
|
|
98
|
+
;// CONCATENATED MODULE: external "@splunk/themes"
|
|
99
|
+
const themes_namespaceObject = require("@splunk/themes");
|
|
100
|
+
;// CONCATENATED MODULE: external "@splunk/ui-utils/color"
|
|
101
|
+
const color_namespaceObject = require("@splunk/ui-utils/color");
|
|
102
|
+
;// CONCATENATED MODULE: external "@splunk/ui-utils/i18n"
|
|
103
|
+
const i18n_namespaceObject = require("@splunk/ui-utils/i18n");
|
|
104
|
+
;// CONCATENATED MODULE: external "@splunk/ui-utils/keyboard"
|
|
105
|
+
const keyboard_namespaceObject = require("@splunk/ui-utils/keyboard");
|
|
106
|
+
;// CONCATENATED MODULE: external "styled-components"
|
|
107
|
+
const external_styled_components_namespaceObject = require("styled-components");
|
|
108
|
+
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_namespaceObject);
|
|
109
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/Text"
|
|
110
|
+
const Text_namespaceObject = require("@splunk/react-ui/Text");
|
|
111
|
+
var Text_default = /*#__PURE__*/__webpack_require__.n(Text_namespaceObject);
|
|
112
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/ScreenReaderContent"
|
|
113
|
+
const ScreenReaderContent_namespaceObject = require("@splunk/react-ui/ScreenReaderContent");
|
|
114
|
+
var ScreenReaderContent_default = /*#__PURE__*/__webpack_require__.n(ScreenReaderContent_namespaceObject);
|
|
115
|
+
;// CONCATENATED MODULE: external "@splunk/react-icons/Checkmark"
|
|
116
|
+
const Checkmark_namespaceObject = require("@splunk/react-icons/Checkmark");
|
|
117
|
+
var Checkmark_default = /*#__PURE__*/__webpack_require__.n(Checkmark_namespaceObject);
|
|
118
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/Clickable"
|
|
119
|
+
const Clickable_namespaceObject = require("@splunk/react-ui/Clickable");
|
|
120
|
+
var Clickable_default = /*#__PURE__*/__webpack_require__.n(Clickable_namespaceObject);
|
|
121
|
+
;// CONCATENATED MODULE: ./src/Color/SwatchStyles.ts
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
var backgroundBlockColor = (0,themes_namespaceObject.pick)({
|
|
127
|
+
enterprise: themes_namespaceObject.variables.gray80,
|
|
263
128
|
prisma: 'rgba(0, 0, 0, 0.2)'
|
|
264
129
|
});
|
|
265
|
-
var transparentSwatch =
|
|
130
|
+
var transparentSwatch = (0,external_styled_components_namespaceObject.css)(["background-image:linear-gradient( 45deg,", " 25%,transparent 25%,transparent 75%,", " 75%,", " ),linear-gradient( 45deg,", " 25%,transparent 25%,transparent 75%,", " 75%,", " );background-size:10px 10px;background-position:0 0,5px 5px;background-color:", ";"], backgroundBlockColor, backgroundBlockColor, backgroundBlockColor, backgroundBlockColor, backgroundBlockColor, backgroundBlockColor, (0,themes_namespaceObject.pick)({
|
|
266
131
|
enterprise: 'transparent',
|
|
267
|
-
prisma:
|
|
132
|
+
prisma: themes_namespaceObject.variables.white
|
|
268
133
|
}));
|
|
269
|
-
var StyledCheck = external_styled_components_default()(Checkmark_default
|
|
134
|
+
var StyledCheck = external_styled_components_default()((Checkmark_default())).withConfig({
|
|
270
135
|
displayName: "SwatchStyles__StyledCheck",
|
|
271
136
|
componentId: "sc-1wxunhq-0"
|
|
272
137
|
})(["box-sizing:border-box;color:#d3d3d3;height:100%;width:100%;"]);
|
|
273
|
-
var StyledClickable = external_styled_components_default()(Clickable_default
|
|
138
|
+
var StyledClickable = external_styled_components_default()((Clickable_default())).withConfig({
|
|
274
139
|
displayName: "SwatchStyles__StyledClickable",
|
|
275
140
|
componentId: "sc-1wxunhq-1"
|
|
276
|
-
})(["display:block;flex:0 0 auto;border:", ";", ";", ";", ";", " &:focus{border-color:", ";box-shadow:", ";}", " ", " ", " &[disabled]{background-image:linear-gradient(rgba(255,255,255,0.8),rgba(255,255,255,0.8));}", " ", ""],
|
|
141
|
+
})(["display:block;flex:0 0 auto;border:", ";", ";", ";", ";", " &:focus{border-color:", ";box-shadow:", ";}", " ", " ", " &[disabled]{background-image:linear-gradient(rgba(255,255,255,0.8),rgba(255,255,255,0.8));}", " ", ""], (0,themes_namespaceObject.pick)({
|
|
277
142
|
enterprise: {
|
|
278
|
-
light:
|
|
279
|
-
dark:
|
|
143
|
+
light: (0,external_styled_components_namespaceObject.css)(["1px solid ", ""], themes_namespaceObject.variables.gray60),
|
|
144
|
+
dark: themes_namespaceObject.variables.border
|
|
280
145
|
},
|
|
281
|
-
prisma:
|
|
282
|
-
}),
|
|
283
|
-
prisma:
|
|
146
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["1px solid ", ""], themes_namespaceObject.variables.interactiveColorBorder)
|
|
147
|
+
}), (0,themes_namespaceObject.pick)({
|
|
148
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["border-radius:2px;"])
|
|
284
149
|
}), function (_ref) {
|
|
285
150
|
var $value = _ref.$value;
|
|
286
|
-
return $value === null &&
|
|
151
|
+
return $value === null && (0,external_styled_components_namespaceObject.css)(["background-image:linear-gradient( to bottom right,transparent 48%,", ",transparent 52% );", ";"], (0,themes_namespaceObject.pick)({
|
|
287
152
|
enterprise: '#ed1e24',
|
|
288
|
-
prisma:
|
|
289
|
-
}),
|
|
290
|
-
prisma:
|
|
153
|
+
prisma: themes_namespaceObject.variables.accentColorNegative
|
|
154
|
+
}), (0,themes_namespaceObject.pick)({
|
|
155
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["background-color:", ";"], themes_namespaceObject.variables.white)
|
|
291
156
|
}));
|
|
292
157
|
}, function (_ref2) {
|
|
293
158
|
var $value = _ref2.$value;
|
|
294
159
|
return $value && ($value === 'transparent' ? transparentSwatch : "background-color: ".concat($value));
|
|
295
160
|
}, function (_ref3) {
|
|
296
161
|
var $noBorder = _ref3.$noBorder;
|
|
297
|
-
return $noBorder &&
|
|
298
|
-
},
|
|
162
|
+
return $noBorder && (0,external_styled_components_namespaceObject.css)(["border:none;"]);
|
|
163
|
+
}, themes_namespaceObject.variables.focusColor, themes_namespaceObject.variables.focusShadow, (0,themes_namespaceObject.pick)({
|
|
299
164
|
enterprise: {
|
|
300
|
-
comfortable:
|
|
301
|
-
compact:
|
|
165
|
+
comfortable: (0,external_styled_components_namespaceObject.css)(["width:32px;height:32px;"]),
|
|
166
|
+
compact: (0,external_styled_components_namespaceObject.css)(["width:28px;height:28px;"])
|
|
302
167
|
},
|
|
303
|
-
prisma:
|
|
168
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["width:24px;height:24px;"])
|
|
304
169
|
}), function (_ref4) {
|
|
305
170
|
var $prepend = _ref4.$prepend;
|
|
306
|
-
return $prepend &&
|
|
171
|
+
return $prepend && (0,external_styled_components_namespaceObject.css)(["border-top-left-radius:0;border-bottom-left-radius:0;"]);
|
|
307
172
|
}, function (_ref5) {
|
|
308
173
|
var $append = _ref5.$append;
|
|
309
|
-
return $append &&
|
|
174
|
+
return $append && (0,external_styled_components_namespaceObject.css)(["margin-right:-1px;border-top-right-radius:0;border-bottom-right-radius:0;border-right:none;"]);
|
|
310
175
|
}, function (_ref6) {
|
|
311
176
|
var $hasError = _ref6.$hasError;
|
|
312
|
-
return $hasError &&
|
|
313
|
-
enterprise:
|
|
314
|
-
prisma:
|
|
177
|
+
return $hasError && (0,external_styled_components_namespaceObject.css)(["box-shadow:inset 0 0 0 2px white;border-color:", ";"], (0,themes_namespaceObject.pick)({
|
|
178
|
+
enterprise: themes_namespaceObject.variables.errorColor,
|
|
179
|
+
prisma: themes_namespaceObject.variables.accentColorNegative
|
|
315
180
|
}));
|
|
316
181
|
}, function (_ref7) {
|
|
317
182
|
var $showSelected = _ref7.$showSelected;
|
|
318
|
-
return $showSelected &&
|
|
183
|
+
return $showSelected && (0,external_styled_components_namespaceObject.css)(["display:flex;align-items:center;justify-content:center;"]);
|
|
319
184
|
});
|
|
320
185
|
|
|
321
|
-
|
|
186
|
+
;// CONCATENATED MODULE: ./src/Color/Swatch.tsx
|
|
322
187
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
323
188
|
|
|
324
189
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
@@ -332,24 +197,24 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
332
197
|
|
|
333
198
|
|
|
334
199
|
var propTypes = {
|
|
335
|
-
append: external_prop_types_default.
|
|
336
|
-
elementRef: external_prop_types_default.
|
|
200
|
+
append: (external_prop_types_default()).bool,
|
|
201
|
+
elementRef: external_prop_types_default().oneOfType([(external_prop_types_default()).func, (external_prop_types_default()).object]),
|
|
337
202
|
|
|
338
203
|
/** @private */
|
|
339
|
-
error: external_prop_types_default.
|
|
204
|
+
error: (external_prop_types_default()).bool,
|
|
340
205
|
|
|
341
206
|
/** @private */
|
|
342
|
-
noBorder: external_prop_types_default.
|
|
207
|
+
noBorder: (external_prop_types_default()).bool,
|
|
343
208
|
|
|
344
209
|
/** @private. Call back function when activated. */
|
|
345
|
-
onClick: external_prop_types_default.
|
|
346
|
-
prepend: external_prop_types_default.
|
|
347
|
-
value: external_prop_types_default.
|
|
210
|
+
onClick: (external_prop_types_default()).func,
|
|
211
|
+
prepend: (external_prop_types_default()).bool,
|
|
212
|
+
value: (external_prop_types_default()).string,
|
|
348
213
|
|
|
349
214
|
/** @private */
|
|
350
|
-
showSelected: external_prop_types_default.
|
|
215
|
+
showSelected: (external_prop_types_default()).bool
|
|
351
216
|
};
|
|
352
|
-
var Swatch = /*#__PURE__*/external_react_default.
|
|
217
|
+
var Swatch = /*#__PURE__*/external_react_default().forwardRef(function (_ref, ref) {
|
|
353
218
|
var append = _ref.append,
|
|
354
219
|
_ref$error = _ref.error,
|
|
355
220
|
error = _ref$error === void 0 ? false : _ref$error,
|
|
@@ -360,16 +225,16 @@ var Swatch = /*#__PURE__*/external_react_default.a.forwardRef(function (_ref, re
|
|
|
360
225
|
showSelected = _ref.showSelected,
|
|
361
226
|
otherProps = _objectWithoutProperties(_ref, ["append", "error", "onClick", "prepend", "value", "noBorder", "showSelected"]);
|
|
362
227
|
|
|
363
|
-
var screenReaderValue = value === null || value === undefined ?
|
|
228
|
+
var screenReaderValue = value === null || value === undefined ? (0,i18n_namespaceObject._)('No color') : value; // Only valid hexadecimal strings, 'transparent' and `null` are allowed for background colors
|
|
364
229
|
// Invalid values are converted to `undefined`
|
|
365
230
|
|
|
366
231
|
var $value = value;
|
|
367
232
|
|
|
368
|
-
if (!(typeof $value === 'string' && (
|
|
233
|
+
if (!(typeof $value === 'string' && ((0,color_namespaceObject.isValidHexColor)($value) || $value === 'transparent')) && $value !== null && $value !== undefined) {
|
|
369
234
|
$value = undefined;
|
|
370
235
|
}
|
|
371
236
|
|
|
372
|
-
return /*#__PURE__*/external_react_default.
|
|
237
|
+
return /*#__PURE__*/external_react_default().createElement(StyledClickable, _extends({
|
|
373
238
|
onClick: function onClick(e) {
|
|
374
239
|
return _onClick === null || _onClick === void 0 ? void 0 : _onClick(e, {
|
|
375
240
|
value: value
|
|
@@ -384,121 +249,120 @@ var Swatch = /*#__PURE__*/external_react_default.a.forwardRef(function (_ref, re
|
|
|
384
249
|
$showSelected: showSelected,
|
|
385
250
|
"data-test": "swatch",
|
|
386
251
|
"data-test-value": value
|
|
387
|
-
}, otherProps), showSelected && /*#__PURE__*/external_react_default.
|
|
388
|
-
"aria-label":
|
|
252
|
+
}, otherProps), showSelected && /*#__PURE__*/external_react_default().createElement(StyledCheck, {
|
|
253
|
+
"aria-label": (0,i18n_namespaceObject._)('Selected'),
|
|
389
254
|
role: "presentation"
|
|
390
|
-
}), /*#__PURE__*/external_react_default.
|
|
255
|
+
}), /*#__PURE__*/external_react_default().createElement((ScreenReaderContent_default()), null, screenReaderValue));
|
|
391
256
|
});
|
|
392
257
|
Swatch.propTypes = propTypes;
|
|
393
|
-
/* harmony default export */
|
|
394
|
-
|
|
258
|
+
/* harmony default export */ const Color_Swatch = (Swatch);
|
|
259
|
+
;// CONCATENATED MODULE: ./src/Color/ColorStyles.ts
|
|
395
260
|
|
|
396
261
|
|
|
397
262
|
|
|
398
263
|
|
|
399
|
-
var StyledColor = external_styled_components_default.
|
|
264
|
+
var StyledColor = external_styled_components_default().div.withConfig({
|
|
400
265
|
displayName: "ColorStyles__StyledColor",
|
|
401
266
|
componentId: "jxrost-0"
|
|
402
|
-
})(["", ";flex-direction:row;"],
|
|
403
|
-
var StyledInput = external_styled_components_default.
|
|
267
|
+
})(["", ";flex-direction:row;"], themes_namespaceObject.mixins.reset('flex'));
|
|
268
|
+
var StyledInput = external_styled_components_default().div.withConfig({
|
|
404
269
|
displayName: "ColorStyles__StyledInput",
|
|
405
270
|
componentId: "jxrost-1"
|
|
406
|
-
})(["", ";"],
|
|
407
|
-
enterprise:
|
|
408
|
-
prisma:
|
|
271
|
+
})(["", ";"], (0,themes_namespaceObject.pick)({
|
|
272
|
+
enterprise: (0,external_styled_components_namespaceObject.css)(["display:flex;width:100%;"]),
|
|
273
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["position:relative;", ""], function (_ref) {
|
|
409
274
|
var $inDropdown = _ref.$inDropdown;
|
|
410
|
-
return $inDropdown ?
|
|
275
|
+
return $inDropdown ? (0,external_styled_components_namespaceObject.css)(["width:80px;"]) : (0,external_styled_components_namespaceObject.css)(["flex:0 1 auto;min-width:0;"]);
|
|
411
276
|
})
|
|
412
277
|
}));
|
|
413
|
-
var StyledInputText = external_styled_components_default()(Text_default
|
|
278
|
+
var StyledInputText = external_styled_components_default()((Text_default())).withConfig({
|
|
414
279
|
displayName: "ColorStyles__StyledInputText",
|
|
415
280
|
componentId: "jxrost-2"
|
|
416
281
|
})(["", ""], function (_ref2) {
|
|
417
282
|
var $inDropdown = _ref2.$inDropdown;
|
|
418
|
-
return $inDropdown &&
|
|
283
|
+
return $inDropdown && (0,external_styled_components_namespaceObject.css)(["font-size:12px;"]);
|
|
419
284
|
});
|
|
420
285
|
var StyledToggleSwatch = external_styled_components_default()(Color_Swatch).withConfig({
|
|
421
286
|
displayName: "ColorStyles__StyledToggleSwatch",
|
|
422
287
|
componentId: "jxrost-3"
|
|
423
|
-
})(["", ""],
|
|
288
|
+
})(["", ""], (0,themes_namespaceObject.pick)({
|
|
424
289
|
prisma: {
|
|
425
|
-
comfortable:
|
|
426
|
-
compact:
|
|
290
|
+
comfortable: (0,external_styled_components_namespaceObject.css)(["width:40px;height:40px;"]),
|
|
291
|
+
compact: (0,external_styled_components_namespaceObject.css)(["width:32px;height:32px;"])
|
|
427
292
|
},
|
|
428
293
|
enterprise: {
|
|
429
|
-
comfortable:
|
|
430
|
-
compact:
|
|
294
|
+
comfortable: (0,external_styled_components_namespaceObject.css)(["width:32px;height:32px;"]),
|
|
295
|
+
compact: (0,external_styled_components_namespaceObject.css)(["width:28px;height:28px;"])
|
|
431
296
|
}
|
|
432
297
|
}));
|
|
433
298
|
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
var ChevronDown_default = /*#__PURE__*/__webpack_require__.n(
|
|
299
|
+
;// CONCATENATED MODULE: external "@splunk/react-icons/ChevronDown"
|
|
300
|
+
const ChevronDown_namespaceObject = require("@splunk/react-icons/ChevronDown");
|
|
301
|
+
var ChevronDown_default = /*#__PURE__*/__webpack_require__.n(ChevronDown_namespaceObject);
|
|
302
|
+
;// CONCATENATED MODULE: ./src/Color/PaletteStyles.ts
|
|
437
303
|
|
|
438
|
-
// CONCATENATED MODULE: ./src/Color/PaletteStyles.ts
|
|
439
304
|
|
|
440
305
|
|
|
441
306
|
|
|
442
|
-
|
|
443
|
-
var StyledPalette = external_styled_components_default.a.div.withConfig({
|
|
307
|
+
var StyledPalette = external_styled_components_default().div.withConfig({
|
|
444
308
|
displayName: "PaletteStyles__StyledPalette",
|
|
445
309
|
componentId: "qgv9v9-0"
|
|
446
|
-
})(["width:", ";padding:", ";", ""],
|
|
310
|
+
})(["width:", ";padding:", ";", ""], (0,themes_namespaceObject.pick)({
|
|
447
311
|
enterprise: '180px',
|
|
448
312
|
prisma: '224px'
|
|
449
|
-
}),
|
|
450
|
-
enterprise:
|
|
313
|
+
}), (0,themes_namespaceObject.pick)({
|
|
314
|
+
enterprise: themes_namespaceObject.variables.spacingHalf,
|
|
451
315
|
prisma: '8px'
|
|
452
|
-
}),
|
|
453
|
-
prisma:
|
|
316
|
+
}), (0,themes_namespaceObject.pick)({
|
|
317
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["display:flex;flex-direction:column;border-radius:2px;"])
|
|
454
318
|
}));
|
|
455
|
-
var StyledSwatches = external_styled_components_default.
|
|
319
|
+
var StyledSwatches = external_styled_components_default().ul.withConfig({
|
|
456
320
|
displayName: "PaletteStyles__StyledSwatches",
|
|
457
321
|
componentId: "qgv9v9-1"
|
|
458
|
-
})(["", ";margin-bottom:", ";margin-right:", ";", ""],
|
|
322
|
+
})(["", ";margin-bottom:", ";margin-right:", ";", ""], themes_namespaceObject.mixins.reset('block'), (0,themes_namespaceObject.pick)({
|
|
459
323
|
enterprise: '6px'
|
|
460
|
-
}),
|
|
324
|
+
}), (0,themes_namespaceObject.pick)({
|
|
461
325
|
enterprise: '-6px'
|
|
462
|
-
}),
|
|
463
|
-
prisma:
|
|
326
|
+
}), (0,themes_namespaceObject.pick)({
|
|
327
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["position:relative;"])
|
|
464
328
|
}));
|
|
465
|
-
var StyledSwatch = external_styled_components_default.
|
|
329
|
+
var StyledSwatch = external_styled_components_default().li.withConfig({
|
|
466
330
|
displayName: "PaletteStyles__StyledSwatch",
|
|
467
331
|
componentId: "qgv9v9-2"
|
|
468
|
-
})(["", ";margin-right:", ";margin-bottom:", ";", ""],
|
|
469
|
-
enterprise:
|
|
332
|
+
})(["", ";margin-right:", ";margin-bottom:", ";", ""], themes_namespaceObject.mixins.reset('inline-block'), (0,themes_namespaceObject.pick)({
|
|
333
|
+
enterprise: themes_namespaceObject.variables.spacingQuarter,
|
|
470
334
|
prisma: '4px'
|
|
471
|
-
}),
|
|
472
|
-
enterprise:
|
|
335
|
+
}), (0,themes_namespaceObject.pick)({
|
|
336
|
+
enterprise: themes_namespaceObject.variables.spacingQuarter,
|
|
473
337
|
prisma: '4px'
|
|
474
|
-
}),
|
|
475
|
-
prisma:
|
|
338
|
+
}), (0,themes_namespaceObject.pick)({
|
|
339
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["vertical-align:top;&:nth-child(8n){margin-right:0;}"])
|
|
476
340
|
}));
|
|
477
|
-
var StyledToolBarPrisma = external_styled_components_default.
|
|
341
|
+
var StyledToolBarPrisma = external_styled_components_default().div.withConfig({
|
|
478
342
|
displayName: "PaletteStyles__StyledToolBarPrisma",
|
|
479
343
|
componentId: "qgv9v9-3"
|
|
480
344
|
})(["position:relative;display:flex;align-items:center;padding:0;margin-top:12px;gap:4px;"]);
|
|
481
|
-
var StyledExpandButton = external_styled_components_default()(Clickable_default
|
|
345
|
+
var StyledExpandButton = external_styled_components_default()((Clickable_default())).withConfig({
|
|
482
346
|
displayName: "PaletteStyles__StyledExpandButton",
|
|
483
347
|
componentId: "qgv9v9-4"
|
|
484
|
-
})(["position:absolute;bottom:4px;right:4px;padding:2px 4px;border-radius:2px;&:focus{box-shadow:", ";}", ""],
|
|
348
|
+
})(["position:absolute;bottom:4px;right:4px;padding:2px 4px;border-radius:2px;&:focus{box-shadow:", ";}", ""], themes_namespaceObject.variables.focusShadow, function (_ref) {
|
|
485
349
|
var $expanded = _ref.$expanded;
|
|
486
|
-
return $expanded &&
|
|
350
|
+
return $expanded && (0,external_styled_components_namespaceObject.css)(["transform:rotate(180deg);"]);
|
|
487
351
|
});
|
|
488
|
-
var StyledSystemColorPickerWrapper = external_styled_components_default.
|
|
352
|
+
var StyledSystemColorPickerWrapper = external_styled_components_default().div.withConfig({
|
|
489
353
|
displayName: "PaletteStyles__StyledSystemColorPickerWrapper",
|
|
490
354
|
componentId: "qgv9v9-5"
|
|
491
355
|
})(["position:relative;"]);
|
|
492
|
-
var StyledSystemColorPicker = external_styled_components_default.
|
|
356
|
+
var StyledSystemColorPicker = external_styled_components_default().input.withConfig({
|
|
493
357
|
displayName: "PaletteStyles__StyledSystemColorPicker",
|
|
494
358
|
componentId: "qgv9v9-6"
|
|
495
|
-
})(["box-sizing:border-box;height:24px;width:24px;border:none;border-radius:2px;outline:none;appearance:none;padding:12px;margin:0;background:conic-gradient( #ef3434,#ef9a34,#deef34,#78ef34,#34ef56,#34efbc,#34bcef,#3456ef,#7834ef,#de34ef,#ef349a,#ef3434 );background-repeat:no-repeat;background-position:-6px -6px;background-size:36px 36px;cursor:pointer;&::-webkit-color-swatch{border:none;border-radius:2px;}&::-moz-color-swatch{opacity:0;}&:focus{box-shadow:", ";}"],
|
|
496
|
-
var PaletteStyles_StyledCheck = external_styled_components_default()(Checkmark_default
|
|
359
|
+
})(["box-sizing:border-box;height:24px;width:24px;border:none;border-radius:2px;outline:none;appearance:none;padding:12px;margin:0;background:conic-gradient( #ef3434,#ef9a34,#deef34,#78ef34,#34ef56,#34efbc,#34bcef,#3456ef,#7834ef,#de34ef,#ef349a,#ef3434 );background-repeat:no-repeat;background-position:-6px -6px;background-size:36px 36px;cursor:pointer;&::-webkit-color-swatch{border:none;border-radius:2px;}&::-moz-color-swatch{opacity:0;}&:focus{box-shadow:", ";}"], themes_namespaceObject.variables.focusShadow);
|
|
360
|
+
var PaletteStyles_StyledCheck = external_styled_components_default()((Checkmark_default())).withConfig({
|
|
497
361
|
displayName: "PaletteStyles__StyledCheck",
|
|
498
362
|
componentId: "qgv9v9-7"
|
|
499
363
|
})(["box-sizing:border-box;color:#d3d3d3;height:100%;width:100%;position:absolute;top:0;left:0;pointer-events:none;"]);
|
|
500
364
|
|
|
501
|
-
|
|
365
|
+
;// CONCATENATED MODULE: ./src/Color/Palette.tsx
|
|
502
366
|
|
|
503
367
|
|
|
504
368
|
|
|
@@ -520,7 +384,7 @@ function Palette(_ref) {
|
|
|
520
384
|
onSystemColorPickerChange = _ref.onSystemColorPickerChange,
|
|
521
385
|
renderInput = _ref.renderInput;
|
|
522
386
|
|
|
523
|
-
var _useSplunkTheme =
|
|
387
|
+
var _useSplunkTheme = (0,themes_namespaceObject.useSplunkTheme)(),
|
|
524
388
|
isPrisma = _useSplunkTheme.isPrisma,
|
|
525
389
|
isLight = _useSplunkTheme.isLight;
|
|
526
390
|
|
|
@@ -531,9 +395,9 @@ function Palette(_ref) {
|
|
|
531
395
|
var formattedValue = swatchValue === null ? null : toLower_default()(swatchValue);
|
|
532
396
|
var selected = formattedValue === value;
|
|
533
397
|
var shouldFocus = !isValueInPalette && index === 0 || isValueInPalette && selected;
|
|
534
|
-
return /*#__PURE__*/external_react_default.
|
|
398
|
+
return /*#__PURE__*/external_react_default().createElement(StyledSwatch, {
|
|
535
399
|
key: formattedValue || 'null'
|
|
536
|
-
}, /*#__PURE__*/external_react_default.
|
|
400
|
+
}, /*#__PURE__*/external_react_default().createElement(Color_Swatch, {
|
|
537
401
|
value: formattedValue,
|
|
538
402
|
ref: shouldFocus ? swatchToFocusRef : null,
|
|
539
403
|
onClick: onSwatchClick,
|
|
@@ -547,55 +411,55 @@ function Palette(_ref) {
|
|
|
547
411
|
var swatchEnd = swatches.length === 8 ? 7 : 15;
|
|
548
412
|
var swatchesDefaultDisplay = slice_default()(swatches, 0, swatchEnd);
|
|
549
413
|
var swatchesExpandDisplay = slice_default()(swatches, swatchEnd);
|
|
550
|
-
return /*#__PURE__*/external_react_default.
|
|
414
|
+
return /*#__PURE__*/external_react_default().createElement(StyledPalette, null, /*#__PURE__*/external_react_default().createElement("div", {
|
|
551
415
|
style: {
|
|
552
416
|
position: 'relative'
|
|
553
417
|
}
|
|
554
|
-
}, /*#__PURE__*/external_react_default.
|
|
418
|
+
}, /*#__PURE__*/external_react_default().createElement(StyledSwatches, null, swatchesDefaultDisplay, expanded && swatchesExpandDisplay), expanded && /*#__PURE__*/external_react_default().createElement(StyledToolBarPrisma, {
|
|
555
419
|
"data-test": "tool-bar"
|
|
556
|
-
}, /*#__PURE__*/external_react_default.
|
|
420
|
+
}, /*#__PURE__*/external_react_default().createElement(themes_namespaceObject.SplunkThemeProvider, {
|
|
557
421
|
density: "compact"
|
|
558
|
-
}, renderInput && renderInput()), /*#__PURE__*/external_react_default.
|
|
422
|
+
}, renderInput && renderInput()), /*#__PURE__*/external_react_default().createElement(Color_Swatch, {
|
|
559
423
|
value: null,
|
|
560
424
|
ref: value === null ? swatchToFocusRef : null,
|
|
561
425
|
onClick: onSwatchClick,
|
|
562
426
|
noBorder: !isLight,
|
|
563
427
|
showSelected: value === null
|
|
564
|
-
}), /*#__PURE__*/external_react_default.
|
|
428
|
+
}), /*#__PURE__*/external_react_default().createElement(Color_Swatch, {
|
|
565
429
|
value: "#ffffff",
|
|
566
430
|
ref: value === '#ffffff' ? swatchToFocusRef : null,
|
|
567
431
|
onClick: onSwatchClick,
|
|
568
432
|
noBorder: !isLight,
|
|
569
433
|
showSelected: value === '#ffffff'
|
|
570
|
-
}), /*#__PURE__*/external_react_default.
|
|
434
|
+
}), /*#__PURE__*/external_react_default().createElement(Color_Swatch, {
|
|
571
435
|
value: "#000000",
|
|
572
436
|
ref: value === '#000000' ? swatchToFocusRef : null,
|
|
573
437
|
onClick: onSwatchClick,
|
|
574
438
|
noBorder: true,
|
|
575
439
|
showSelected: value === '#000000'
|
|
576
|
-
}), /*#__PURE__*/external_react_default.
|
|
440
|
+
}), /*#__PURE__*/external_react_default().createElement(StyledSystemColorPickerWrapper, null, /*#__PURE__*/external_react_default().createElement(StyledSystemColorPicker, {
|
|
577
441
|
type: "color" // TODO: SUI-2806 Remove the warning with Prisma null example
|
|
578
442
|
// Warning only exists in Chrome: https://chromium.googlesource.com/chromium/src/+/011c27ced479c76cffd5093ce107082e4da657f3/third_party/blink/renderer/core/html/forms/color_input_type.cc#190
|
|
579
443
|
,
|
|
580
444
|
value: value === null ? '' : value,
|
|
581
445
|
onChange: onSystemColorPickerChange,
|
|
582
446
|
ref: isCustomColor ? swatchToFocusRef : null
|
|
583
|
-
}), isCustomColor && /*#__PURE__*/external_react_default.
|
|
584
|
-
"aria-label":
|
|
447
|
+
}), isCustomColor && /*#__PURE__*/external_react_default().createElement(PaletteStyles_StyledCheck, {
|
|
448
|
+
"aria-label": (0,i18n_namespaceObject._)('Selected'),
|
|
585
449
|
role: "presentation"
|
|
586
|
-
}))), /*#__PURE__*/external_react_default.
|
|
450
|
+
}))), /*#__PURE__*/external_react_default().createElement(StyledExpandButton, {
|
|
587
451
|
ref: expandButtonRef,
|
|
588
452
|
$expanded: expanded,
|
|
589
453
|
onClick: onPaletteExpand,
|
|
590
454
|
"data-test": "expand-button"
|
|
591
|
-
}, /*#__PURE__*/external_react_default.
|
|
455
|
+
}, /*#__PURE__*/external_react_default().createElement((ChevronDown_default()), null))));
|
|
592
456
|
}
|
|
593
457
|
|
|
594
|
-
return /*#__PURE__*/external_react_default.
|
|
458
|
+
return /*#__PURE__*/external_react_default().createElement(StyledPalette, null, /*#__PURE__*/external_react_default().createElement(StyledSwatches, null, swatches), renderInput && renderInput());
|
|
595
459
|
}
|
|
596
460
|
|
|
597
|
-
/* harmony default export */
|
|
598
|
-
|
|
461
|
+
/* harmony default export */ const Color_Palette = (Palette);
|
|
462
|
+
;// CONCATENATED MODULE: ./src/Color/Color.tsx
|
|
599
463
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
600
464
|
|
|
601
465
|
function Color_extends() { Color_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return Color_extends.apply(this, arguments); }
|
|
@@ -679,22 +543,22 @@ var generatePalette = memoize_default()(function (initialPalette) {
|
|
|
679
543
|
|
|
680
544
|
var toolPalette = ['#ffffff', '#000000', null];
|
|
681
545
|
var Color_propTypes = {
|
|
682
|
-
append: external_prop_types_default.
|
|
683
|
-
defaultValue: external_prop_types_default.
|
|
684
|
-
describedBy: external_prop_types_default.
|
|
685
|
-
disabled: external_prop_types_default.
|
|
686
|
-
elementRef: external_prop_types_default.
|
|
687
|
-
error: external_prop_types_default.
|
|
688
|
-
hideInput: external_prop_types_default.
|
|
689
|
-
labelledBy: external_prop_types_default.
|
|
690
|
-
name: external_prop_types_default.
|
|
691
|
-
onChange: external_prop_types_default.
|
|
692
|
-
palette: external_prop_types_default.
|
|
693
|
-
prepend: external_prop_types_default.
|
|
546
|
+
append: (external_prop_types_default()).bool,
|
|
547
|
+
defaultValue: (external_prop_types_default()).string,
|
|
548
|
+
describedBy: (external_prop_types_default()).string,
|
|
549
|
+
disabled: (external_prop_types_default()).bool,
|
|
550
|
+
elementRef: external_prop_types_default().oneOfType([(external_prop_types_default()).func, (external_prop_types_default()).object]),
|
|
551
|
+
error: (external_prop_types_default()).bool,
|
|
552
|
+
hideInput: (external_prop_types_default()).bool,
|
|
553
|
+
labelledBy: (external_prop_types_default()).string,
|
|
554
|
+
name: (external_prop_types_default()).string,
|
|
555
|
+
onChange: (external_prop_types_default()).func,
|
|
556
|
+
palette: (external_prop_types_default()).array,
|
|
557
|
+
prepend: (external_prop_types_default()).bool,
|
|
694
558
|
|
|
695
559
|
/** @private */
|
|
696
|
-
splunkTheme: external_prop_types_default.
|
|
697
|
-
value: external_prop_types_default.
|
|
560
|
+
splunkTheme: (external_prop_types_default()).object,
|
|
561
|
+
value: (external_prop_types_default()).string
|
|
698
562
|
};
|
|
699
563
|
var defaultProps = {
|
|
700
564
|
append: false,
|
|
@@ -706,8 +570,8 @@ var defaultProps = {
|
|
|
706
570
|
};
|
|
707
571
|
|
|
708
572
|
// TODO: SUI-2551 Deprecate this in favor of ui-utils implementation
|
|
709
|
-
var
|
|
710
|
-
return
|
|
573
|
+
var isValidHEX = function isValidHEX(value) {
|
|
574
|
+
return (0,color_namespaceObject.isValidHexColor)(value);
|
|
711
575
|
};
|
|
712
576
|
|
|
713
577
|
var NAUppercase = 'N/A';
|
|
@@ -720,7 +584,7 @@ var NALowercase = 'n/a';
|
|
|
720
584
|
* 2. Otherwise the first color swatch receives focus.
|
|
721
585
|
*/
|
|
722
586
|
|
|
723
|
-
var
|
|
587
|
+
var Color = /*#__PURE__*/function (_Component) {
|
|
724
588
|
_inherits(Color, _Component);
|
|
725
589
|
|
|
726
590
|
var _super = _createSuper(Color);
|
|
@@ -807,7 +671,7 @@ var Color_Color = /*#__PURE__*/function (_Component) {
|
|
|
807
671
|
});
|
|
808
672
|
|
|
809
673
|
_defineProperty(_assertThisInitialized(_this), "handleTextKeyDown", function (e) {
|
|
810
|
-
if (
|
|
674
|
+
if ((0,keyboard_namespaceObject.keycode)(e.nativeEvent) === 'enter') {
|
|
811
675
|
e.preventDefault();
|
|
812
676
|
|
|
813
677
|
_this.handleRequestClose({
|
|
@@ -943,11 +807,11 @@ var Color_Color = /*#__PURE__*/function (_Component) {
|
|
|
943
807
|
_this.focus();
|
|
944
808
|
}, 200));
|
|
945
809
|
|
|
946
|
-
_this.focusSwatch = /*#__PURE__*/external_react_default.
|
|
947
|
-
_this.focusExpandButton = /*#__PURE__*/external_react_default.
|
|
810
|
+
_this.focusSwatch = /*#__PURE__*/external_react_default().createRef();
|
|
811
|
+
_this.focusExpandButton = /*#__PURE__*/external_react_default().createRef();
|
|
948
812
|
_this.controlledExternally = has_default()(props, 'value'); // value can be hexadecimal color, 'transparent' or null
|
|
949
813
|
|
|
950
|
-
var _value = _this.controlledExternally ?
|
|
814
|
+
var _value = _this.controlledExternally ? (0,color_namespaceObject.expandShortHandHex)(props.value) : (0,color_namespaceObject.expandShortHandHex)(props.defaultValue);
|
|
951
815
|
|
|
952
816
|
if (_value !== null) {
|
|
953
817
|
_value = toLower_default()(_value);
|
|
@@ -996,7 +860,7 @@ var Color_Color = /*#__PURE__*/function (_Component) {
|
|
|
996
860
|
return value === null ? null : toLower_default()(value);
|
|
997
861
|
};
|
|
998
862
|
|
|
999
|
-
var sixDigitHex =
|
|
863
|
+
var sixDigitHex = (0,color_namespaceObject.expandShortHandHex)(this.props.value);
|
|
1000
864
|
|
|
1001
865
|
if (this.props.value === null && !this.showNull()) {
|
|
1002
866
|
return undefined;
|
|
@@ -1015,7 +879,7 @@ var Color_Color = /*#__PURE__*/function (_Component) {
|
|
|
1015
879
|
var isPrisma = splunkTheme.isPrisma;
|
|
1016
880
|
|
|
1017
881
|
if (displayValue) {
|
|
1018
|
-
var isValidHEXValue =
|
|
882
|
+
var isValidHEXValue = isValidHEX(displayValue);
|
|
1019
883
|
|
|
1020
884
|
if (!isValidHEXValue && displayValue !== 'transparent' && displayValue !== NAUppercase) {
|
|
1021
885
|
// eslint-disable-next-line no-console
|
|
@@ -1023,14 +887,14 @@ var Color_Color = /*#__PURE__*/function (_Component) {
|
|
|
1023
887
|
}
|
|
1024
888
|
|
|
1025
889
|
if (isValidHEXValue || Color.hasTransparent(this.props.palette) && displayValue === 'transparent' || (Color.hasNull(this.props.palette) || isPrisma) && displayValue === NAUppercase) {
|
|
1026
|
-
var formattedDisplayValue =
|
|
890
|
+
var formattedDisplayValue = (0,color_namespaceObject.expandShortHandHex)(displayValue);
|
|
1027
891
|
this.setState({
|
|
1028
892
|
displayValue: formattedDisplayValue
|
|
1029
893
|
});
|
|
1030
894
|
var hasColorChanged = displayValue !== (this.props.value && toLower_default()(this.props.value));
|
|
1031
895
|
var name = this.props.name;
|
|
1032
896
|
var value = displayValue === NAUppercase ? null : displayValue;
|
|
1033
|
-
var formattedValue =
|
|
897
|
+
var formattedValue = (0,color_namespaceObject.expandShortHandHex)(value);
|
|
1034
898
|
|
|
1035
899
|
if (displayValue && !this.isControlled()) {
|
|
1036
900
|
this.setState({
|
|
@@ -1085,22 +949,22 @@ var Color_Color = /*#__PURE__*/function (_Component) {
|
|
|
1085
949
|
|
|
1086
950
|
inputSwatchValue = showTransparent ? 'transparent' : inputSwatchValue;
|
|
1087
951
|
inputSwatchValue = showNullSwatch ? null : inputSwatchValue;
|
|
1088
|
-
return /*#__PURE__*/external_react_default.
|
|
952
|
+
return /*#__PURE__*/external_react_default().createElement(StyledInput, {
|
|
1089
953
|
$inDropdown: inDropdown
|
|
1090
|
-
}, /*#__PURE__*/external_react_default.
|
|
954
|
+
}, /*#__PURE__*/external_react_default().createElement(StyledInputText, {
|
|
1091
955
|
$inDropdown: inDropdown,
|
|
1092
956
|
append: textAppend,
|
|
1093
957
|
autoCapitalize: "off",
|
|
1094
958
|
autoComplete: "off",
|
|
1095
959
|
autoCorrect: "off",
|
|
1096
960
|
spellCheck: false,
|
|
1097
|
-
"aria-label":
|
|
961
|
+
"aria-label": (0,i18n_namespaceObject._)('Hexadecimal color value'),
|
|
1098
962
|
prepend: textPrepend,
|
|
1099
963
|
inline: textInline,
|
|
1100
964
|
onKeyDown: this.handleTextKeyDown,
|
|
1101
965
|
onChange: this.handleTextChange,
|
|
1102
966
|
value: displayValue
|
|
1103
|
-
}), !isPrisma && /*#__PURE__*/external_react_default.
|
|
967
|
+
}), !isPrisma && /*#__PURE__*/external_react_default().createElement(Color_Swatch, {
|
|
1104
968
|
"data-test": "textbox-swatch",
|
|
1105
969
|
onClick: this.handleButtonClick,
|
|
1106
970
|
value: inputSwatchValue,
|
|
@@ -1121,7 +985,7 @@ var Color_Color = /*#__PURE__*/function (_Component) {
|
|
|
1121
985
|
palette = _this$props5.palette;
|
|
1122
986
|
var expanded = this.state.expanded;
|
|
1123
987
|
var isPrisma = splunkTheme.isPrisma;
|
|
1124
|
-
return /*#__PURE__*/external_react_default.
|
|
988
|
+
return /*#__PURE__*/external_react_default().createElement(Color_Palette, {
|
|
1125
989
|
palette: palette,
|
|
1126
990
|
value: this.getValue(),
|
|
1127
991
|
swatchToFocusRef: this.focusSwatch,
|
|
@@ -1168,7 +1032,7 @@ var Color_Color = /*#__PURE__*/function (_Component) {
|
|
|
1168
1032
|
var isPrisma = splunkTheme.isPrisma;
|
|
1169
1033
|
var value = this.getValue();
|
|
1170
1034
|
var displayValue = this.state.displayValue;
|
|
1171
|
-
var toggle = /*#__PURE__*/external_react_default.
|
|
1035
|
+
var toggle = /*#__PURE__*/external_react_default().createElement(StyledToggleSwatch, Color_extends({
|
|
1172
1036
|
append: isPrisma && !hideInput ? true : append,
|
|
1173
1037
|
"data-test": "color",
|
|
1174
1038
|
"data-test-value": displayValue,
|
|
@@ -1183,7 +1047,7 @@ var Color_Color = /*#__PURE__*/function (_Component) {
|
|
|
1183
1047
|
value: value
|
|
1184
1048
|
}, omit_default()(otherProps, [].concat(_toConsumableArray(keys_default()(Color.propTypes)), [// TS: trick omit
|
|
1185
1049
|
'onChange']))));
|
|
1186
|
-
return /*#__PURE__*/external_react_default.
|
|
1050
|
+
return /*#__PURE__*/external_react_default().createElement(StyledColor, null, /*#__PURE__*/external_react_default().createElement((Dropdown_default()), {
|
|
1187
1051
|
closeReasons: ['clickAway', 'escapeKey', 'offScreen', 'toggleClick'],
|
|
1188
1052
|
onRequestClose: this.handleRequestClose,
|
|
1189
1053
|
onRequestOpen: this.handleRequestOpen,
|
|
@@ -1205,112 +1069,20 @@ var Color_Color = /*#__PURE__*/function (_Component) {
|
|
|
1205
1069
|
}]);
|
|
1206
1070
|
|
|
1207
1071
|
return Color;
|
|
1208
|
-
}(
|
|
1072
|
+
}(external_react_namespaceObject.Component);
|
|
1209
1073
|
|
|
1210
|
-
_defineProperty(
|
|
1074
|
+
_defineProperty(Color, "propTypes", Color_propTypes);
|
|
1211
1075
|
|
|
1212
|
-
_defineProperty(
|
|
1076
|
+
_defineProperty(Color, "defaultProps", defaultProps);
|
|
1213
1077
|
|
|
1214
|
-
var ColorWithTheme =
|
|
1215
|
-
ColorWithTheme.propTypes =
|
|
1078
|
+
var ColorWithTheme = (0,themes_namespaceObject.withSplunkTheme)(Color);
|
|
1079
|
+
ColorWithTheme.propTypes = Color.propTypes;
|
|
1216
1080
|
// TODO: SUI-2551 Deprecate this in favor of ui-utils implementation
|
|
1217
1081
|
|
|
1218
|
-
/* harmony default export */
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
/***/ }),
|
|
1224
|
-
|
|
1225
|
-
/***/ 2:
|
|
1226
|
-
/***/ (function(module, exports) {
|
|
1227
|
-
|
|
1228
|
-
module.exports = require("react");
|
|
1229
|
-
|
|
1230
|
-
/***/ }),
|
|
1231
|
-
|
|
1232
|
-
/***/ 22:
|
|
1233
|
-
/***/ (function(module, exports) {
|
|
1234
|
-
|
|
1235
|
-
module.exports = require("@splunk/react-ui/Dropdown");
|
|
1236
|
-
|
|
1237
|
-
/***/ }),
|
|
1238
|
-
|
|
1239
|
-
/***/ 3:
|
|
1240
|
-
/***/ (function(module, exports) {
|
|
1241
|
-
|
|
1242
|
-
module.exports = require("styled-components");
|
|
1243
|
-
|
|
1244
|
-
/***/ }),
|
|
1245
|
-
|
|
1246
|
-
/***/ 30:
|
|
1247
|
-
/***/ (function(module, exports) {
|
|
1248
|
-
|
|
1249
|
-
module.exports = require("@splunk/react-ui/Text");
|
|
1250
|
-
|
|
1251
|
-
/***/ }),
|
|
1252
|
-
|
|
1253
|
-
/***/ 34:
|
|
1254
|
-
/***/ (function(module, exports) {
|
|
1255
|
-
|
|
1256
|
-
module.exports = require("lodash/toLower");
|
|
1257
|
-
|
|
1258
|
-
/***/ }),
|
|
1259
|
-
|
|
1260
|
-
/***/ 4:
|
|
1261
|
-
/***/ (function(module, exports) {
|
|
1262
|
-
|
|
1263
|
-
module.exports = require("@splunk/ui-utils/i18n");
|
|
1264
|
-
|
|
1265
|
-
/***/ }),
|
|
1266
|
-
|
|
1267
|
-
/***/ 47:
|
|
1268
|
-
/***/ (function(module, exports) {
|
|
1269
|
-
|
|
1270
|
-
module.exports = require("@splunk/ui-utils/color");
|
|
1271
|
-
|
|
1272
|
-
/***/ }),
|
|
1273
|
-
|
|
1274
|
-
/***/ 5:
|
|
1275
|
-
/***/ (function(module, exports) {
|
|
1276
|
-
|
|
1277
|
-
module.exports = require("lodash/omit");
|
|
1278
|
-
|
|
1279
|
-
/***/ }),
|
|
1280
|
-
|
|
1281
|
-
/***/ 66:
|
|
1282
|
-
/***/ (function(module, exports) {
|
|
1283
|
-
|
|
1284
|
-
module.exports = require("lodash/debounce");
|
|
1285
|
-
|
|
1286
|
-
/***/ }),
|
|
1287
|
-
|
|
1288
|
-
/***/ 67:
|
|
1289
|
-
/***/ (function(module, exports) {
|
|
1290
|
-
|
|
1291
|
-
module.exports = require("tinycolor2");
|
|
1292
|
-
|
|
1293
|
-
/***/ }),
|
|
1294
|
-
|
|
1295
|
-
/***/ 7:
|
|
1296
|
-
/***/ (function(module, exports) {
|
|
1297
|
-
|
|
1298
|
-
module.exports = require("@splunk/ui-utils/keyboard");
|
|
1299
|
-
|
|
1300
|
-
/***/ }),
|
|
1301
|
-
|
|
1302
|
-
/***/ 76:
|
|
1303
|
-
/***/ (function(module, exports) {
|
|
1304
|
-
|
|
1305
|
-
module.exports = require("@splunk/react-icons/Checkmark");
|
|
1306
|
-
|
|
1307
|
-
/***/ }),
|
|
1308
|
-
|
|
1309
|
-
/***/ 9:
|
|
1310
|
-
/***/ (function(module, exports) {
|
|
1311
|
-
|
|
1312
|
-
module.exports = require("lodash/keys");
|
|
1082
|
+
/* harmony default export */ const Color_Color = (ColorWithTheme);
|
|
1083
|
+
;// CONCATENATED MODULE: ./src/Color/index.ts
|
|
1313
1084
|
|
|
1314
|
-
/***/ })
|
|
1315
1085
|
|
|
1316
|
-
|
|
1086
|
+
module.exports = __webpack_exports__;
|
|
1087
|
+
/******/ })()
|
|
1088
|
+
;
|