@splunk/react-ui 4.20.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.js +105 -197
- package/Button.js +168 -316
- package/ButtonGroup.js +84 -168
- package/ButtonSimple.js +224 -324
- package/CHANGELOG.md +21 -0
- package/Calendar.js +264 -462
- package/Card.js +223 -371
- package/CardLayout.js +87 -163
- package/Chip.js +199 -323
- package/Clickable.js +128 -246
- package/CloseButton.js +92 -200
- package/Code.js +162 -250
- 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 -354
- package/Menu.js +489 -760
- 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 +1135 -1761
- package/Number.js +178 -334
- package/Paginator.js +170 -336
- package/Paragraph.js +77 -153
- package/Popover.js +370 -620
- package/Progress.js +139 -255
- package/RadioBar.js +156 -280
- package/RadioList.js +182 -282
- package/Resize.js +173 -307
- package/ResultsMenu.js +161 -303
- package/ScreenReaderContent.js +75 -151
- package/Scroll.js +125 -267
- package/ScrollContainerContext.js +129 -201
- package/Search.js +188 -354
- package/Select.js +1028 -1430
- 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 +943 -1448
- 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 +14 -15
- package/stubs-splunkui.d.ts +4 -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 +7 -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/Option.d.ts +1 -1
- 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/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/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/Chip.js
CHANGED
|
@@ -1,194 +1,113 @@
|
|
|
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 = 217);
|
|
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
|
-
/***/ 12:
|
|
105
|
-
/***/ (function(module, exports) {
|
|
106
|
-
|
|
107
|
-
module.exports = require("@splunk/react-ui/Clickable");
|
|
108
|
-
|
|
109
|
-
/***/ }),
|
|
110
|
-
|
|
111
|
-
/***/ 2:
|
|
112
|
-
/***/ (function(module, exports) {
|
|
113
|
-
|
|
114
|
-
module.exports = require("react");
|
|
115
|
-
|
|
116
|
-
/***/ }),
|
|
117
|
-
|
|
118
|
-
/***/ 217:
|
|
119
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
120
|
-
|
|
121
|
-
"use strict";
|
|
48
|
+
var __webpack_exports__ = {};
|
|
122
49
|
// ESM COMPAT FLAG
|
|
123
50
|
__webpack_require__.r(__webpack_exports__);
|
|
124
51
|
|
|
125
52
|
// EXPORTS
|
|
126
|
-
__webpack_require__.d(__webpack_exports__,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
var external_react_ = __webpack_require__(2);
|
|
130
|
-
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
131
|
-
|
|
132
|
-
// EXTERNAL MODULE: external "lodash/omit"
|
|
133
|
-
var omit_ = __webpack_require__(5);
|
|
134
|
-
var omit_default = /*#__PURE__*/__webpack_require__.n(omit_);
|
|
135
|
-
|
|
136
|
-
// EXTERNAL MODULE: external "prop-types"
|
|
137
|
-
var external_prop_types_ = __webpack_require__(1);
|
|
138
|
-
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
139
|
-
|
|
140
|
-
// EXTERNAL MODULE: external "@splunk/react-icons/Cross"
|
|
141
|
-
var Cross_ = __webpack_require__(26);
|
|
142
|
-
var Cross_default = /*#__PURE__*/__webpack_require__.n(Cross_);
|
|
143
|
-
|
|
144
|
-
// EXTERNAL MODULE: external "@splunk/react-icons/enterprise/Close"
|
|
145
|
-
var Close_ = __webpack_require__(27);
|
|
146
|
-
var Close_default = /*#__PURE__*/__webpack_require__.n(Close_);
|
|
147
|
-
|
|
148
|
-
// EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
|
|
149
|
-
var i18n_ = __webpack_require__(4);
|
|
150
|
-
|
|
151
|
-
// EXTERNAL MODULE: external "@splunk/ui-utils/color"
|
|
152
|
-
var color_ = __webpack_require__(50);
|
|
153
|
-
|
|
154
|
-
// EXTERNAL MODULE: external "@splunk/themes"
|
|
155
|
-
var themes_ = __webpack_require__(0);
|
|
156
|
-
|
|
157
|
-
// EXTERNAL MODULE: external "styled-components"
|
|
158
|
-
var external_styled_components_ = __webpack_require__(3);
|
|
159
|
-
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
160
|
-
|
|
161
|
-
// EXTERNAL MODULE: external "@splunk/react-ui/Clickable"
|
|
162
|
-
var Clickable_ = __webpack_require__(12);
|
|
163
|
-
var Clickable_default = /*#__PURE__*/__webpack_require__.n(Clickable_);
|
|
164
|
-
|
|
165
|
-
// CONCATENATED MODULE: ./src/Chip/ChipStyles.ts
|
|
166
|
-
|
|
167
|
-
|
|
53
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
54
|
+
"default": () => (/* reexport */ Chip_Chip)
|
|
55
|
+
});
|
|
168
56
|
|
|
169
|
-
|
|
57
|
+
;// CONCATENATED MODULE: external "react"
|
|
58
|
+
const external_react_namespaceObject = require("react");
|
|
59
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_namespaceObject);
|
|
60
|
+
;// CONCATENATED MODULE: external "lodash/omit"
|
|
61
|
+
const omit_namespaceObject = require("lodash/omit");
|
|
62
|
+
var omit_default = /*#__PURE__*/__webpack_require__.n(omit_namespaceObject);
|
|
63
|
+
;// CONCATENATED MODULE: external "prop-types"
|
|
64
|
+
const external_prop_types_namespaceObject = require("prop-types");
|
|
65
|
+
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_namespaceObject);
|
|
66
|
+
;// CONCATENATED MODULE: external "@splunk/react-icons/Cross"
|
|
67
|
+
const Cross_namespaceObject = require("@splunk/react-icons/Cross");
|
|
68
|
+
var Cross_default = /*#__PURE__*/__webpack_require__.n(Cross_namespaceObject);
|
|
69
|
+
;// CONCATENATED MODULE: external "@splunk/react-icons/enterprise/Close"
|
|
70
|
+
const Close_namespaceObject = require("@splunk/react-icons/enterprise/Close");
|
|
71
|
+
var Close_default = /*#__PURE__*/__webpack_require__.n(Close_namespaceObject);
|
|
72
|
+
;// CONCATENATED MODULE: external "@splunk/ui-utils/i18n"
|
|
73
|
+
const i18n_namespaceObject = require("@splunk/ui-utils/i18n");
|
|
74
|
+
;// CONCATENATED MODULE: external "@splunk/ui-utils/color"
|
|
75
|
+
const color_namespaceObject = require("@splunk/ui-utils/color");
|
|
76
|
+
;// CONCATENATED MODULE: external "@splunk/themes"
|
|
77
|
+
const themes_namespaceObject = require("@splunk/themes");
|
|
78
|
+
;// CONCATENATED MODULE: external "styled-components"
|
|
79
|
+
const external_styled_components_namespaceObject = require("styled-components");
|
|
80
|
+
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_namespaceObject);
|
|
81
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/Clickable"
|
|
82
|
+
const Clickable_namespaceObject = require("@splunk/react-ui/Clickable");
|
|
83
|
+
var Clickable_default = /*#__PURE__*/__webpack_require__.n(Clickable_namespaceObject);
|
|
84
|
+
;// CONCATENATED MODULE: ./src/Chip/ChipStyles.ts
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
var StyledBasic = external_styled_components_default().div.withConfig({
|
|
170
89
|
displayName: "ChipStyles__StyledBasic",
|
|
171
90
|
componentId: "sc-1sd3tsh-0"
|
|
172
|
-
})(["", ";background-color:", ";border:1px solid transparent;flex:0 1 auto;max-width:calc(100% - 3px);border-radius:2px;", ";", " ", " ", ""],
|
|
91
|
+
})(["", ";background-color:", ";border:1px solid transparent;flex:0 1 auto;max-width:calc(100% - 3px);border-radius:2px;", ";", " ", " ", ""], themes_namespaceObject.mixins.reset('inline-flex'), (0,themes_namespaceObject.pickVariant)('$appearance', {
|
|
173
92
|
"default": {
|
|
174
93
|
enterprise: {
|
|
175
|
-
dark:
|
|
176
|
-
light:
|
|
94
|
+
dark: themes_namespaceObject.variables.gray45,
|
|
95
|
+
light: themes_namespaceObject.variables.gray92
|
|
177
96
|
},
|
|
178
|
-
prisma:
|
|
97
|
+
prisma: themes_namespaceObject.variables.neutral100
|
|
179
98
|
},
|
|
180
99
|
info: {
|
|
181
|
-
enterprise:
|
|
100
|
+
enterprise: themes_namespaceObject.variables.infoColorL30
|
|
182
101
|
},
|
|
183
102
|
success: {
|
|
184
|
-
enterprise:
|
|
103
|
+
enterprise: themes_namespaceObject.variables.successColorL30
|
|
185
104
|
},
|
|
186
105
|
warning: {
|
|
187
|
-
enterprise:
|
|
106
|
+
enterprise: themes_namespaceObject.variables.warningColorL30
|
|
188
107
|
},
|
|
189
108
|
error: {
|
|
190
|
-
enterprise:
|
|
191
|
-
prisma:
|
|
109
|
+
enterprise: themes_namespaceObject.variables.errorColorL30,
|
|
110
|
+
prisma: themes_namespaceObject.variables.accentColorNegative
|
|
192
111
|
},
|
|
193
112
|
outline: {
|
|
194
113
|
prisma: 'transparent'
|
|
@@ -199,54 +118,54 @@ var StyledBasic = external_styled_components_default.a.div.withConfig({
|
|
|
199
118
|
}
|
|
200
119
|
}), function (_ref2) {
|
|
201
120
|
var $appearance = _ref2.$appearance;
|
|
202
|
-
return $appearance === 'outline' &&
|
|
203
|
-
},
|
|
204
|
-
enterprise:
|
|
205
|
-
prisma:
|
|
121
|
+
return $appearance === 'outline' && (0,external_styled_components_namespaceObject.css)(["border-color:", ";"], themes_namespaceObject.variables.interactiveColorBorder);
|
|
122
|
+
}, (0,themes_namespaceObject.pick)({
|
|
123
|
+
enterprise: (0,external_styled_components_namespaceObject.css)(["color:", ";line-height:", ";margin:0 2px 2px 0;"], themes_namespaceObject.variables.textGray, themes_namespaceObject.variables.lineHeight),
|
|
124
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["color:", ";line-height:16px;margin:1px;"], function (_ref3) {
|
|
206
125
|
var $appearance = _ref3.$appearance;
|
|
207
|
-
return $appearance === 'error' ?
|
|
126
|
+
return $appearance === 'error' ? themes_namespaceObject.variables.contentColorInverted : themes_namespaceObject.variables.contentColorDefault;
|
|
208
127
|
})
|
|
209
|
-
}),
|
|
128
|
+
}), (0,themes_namespaceObject.pick)({
|
|
210
129
|
enterprise: {
|
|
211
|
-
comfortable:
|
|
212
|
-
compact:
|
|
130
|
+
comfortable: (0,external_styled_components_namespaceObject.css)(["height:calc(", " - 6px);padding:4px 7px;"], themes_namespaceObject.variables.inputHeight),
|
|
131
|
+
compact: (0,external_styled_components_namespaceObject.css)(["height:calc(", " - 6px);padding:2px 4px;"], themes_namespaceObject.variables.inputHeight)
|
|
213
132
|
},
|
|
214
133
|
prisma: {
|
|
215
|
-
comfortable:
|
|
216
|
-
compact:
|
|
134
|
+
comfortable: (0,external_styled_components_namespaceObject.css)(["height:calc(", " - 8px);padding:7px 7px;font-size:", ";"], themes_namespaceObject.variables.inputHeight, themes_namespaceObject.variables.fontSizeSmall),
|
|
135
|
+
compact: (0,external_styled_components_namespaceObject.css)(["height:calc(", " - 8px);padding:3px 7px;font-size:", ";"], themes_namespaceObject.variables.inputHeight, themes_namespaceObject.variables.fontSizeSmall)
|
|
217
136
|
}
|
|
218
137
|
}), function (_ref4) {
|
|
219
138
|
var $disabled = _ref4.$disabled;
|
|
220
|
-
return $disabled &&
|
|
139
|
+
return $disabled && (0,external_styled_components_namespaceObject.css)(["background-color:", ";"], (0,themes_namespaceObject.pickVariant)('$appearance', {
|
|
221
140
|
"default": {
|
|
222
141
|
enterprise: {
|
|
223
142
|
dark: 'rgba(0, 0, 0, 0.15)',
|
|
224
143
|
light: 'rgba(0, 0, 0, 0.05)'
|
|
225
144
|
},
|
|
226
|
-
prisma:
|
|
145
|
+
prisma: themes_namespaceObject.variables.interactiveColorBackgroundDisabled
|
|
227
146
|
},
|
|
228
147
|
info: {
|
|
229
|
-
enterprise:
|
|
148
|
+
enterprise: themes_namespaceObject.mixins.colorWithAlpha(themes_namespaceObject.variables.infoColorL10, 0.3)
|
|
230
149
|
},
|
|
231
150
|
success: {
|
|
232
|
-
enterprise:
|
|
151
|
+
enterprise: themes_namespaceObject.mixins.colorWithAlpha(themes_namespaceObject.variables.successColorL10, 0.3)
|
|
233
152
|
},
|
|
234
153
|
warning: {
|
|
235
|
-
enterprise:
|
|
154
|
+
enterprise: themes_namespaceObject.mixins.colorWithAlpha(themes_namespaceObject.variables.warningColorL10, 0.3)
|
|
236
155
|
},
|
|
237
156
|
error: {
|
|
238
|
-
enterprise:
|
|
239
|
-
prisma:
|
|
157
|
+
enterprise: themes_namespaceObject.mixins.colorWithAlpha(themes_namespaceObject.variables.errorColorL10, 0.3),
|
|
158
|
+
prisma: themes_namespaceObject.variables.interactiveColorBackgroundDisabled
|
|
240
159
|
},
|
|
241
160
|
outline: {
|
|
242
|
-
prisma:
|
|
161
|
+
prisma: themes_namespaceObject.variables.interactiveColorBackgroundDisabled
|
|
243
162
|
},
|
|
244
163
|
custom: {
|
|
245
164
|
enterprise: {
|
|
246
165
|
dark: 'rgba(0, 0, 0, 0.15)',
|
|
247
166
|
light: 'rgba(0, 0, 0, 0.05)'
|
|
248
167
|
},
|
|
249
|
-
prisma:
|
|
168
|
+
prisma: themes_namespaceObject.variables.interactiveColorBackgroundDisabled
|
|
250
169
|
}
|
|
251
170
|
}));
|
|
252
171
|
});
|
|
@@ -254,144 +173,144 @@ var Styled = external_styled_components_default()(StyledBasic).withConfig({
|
|
|
254
173
|
displayName: "ChipStyles__Styled",
|
|
255
174
|
componentId: "sc-1sd3tsh-1"
|
|
256
175
|
})(["align-items:center;"]);
|
|
257
|
-
var StyledInner = external_styled_components_default.
|
|
176
|
+
var StyledInner = external_styled_components_default().div.withConfig({
|
|
258
177
|
displayName: "ChipStyles__StyledInner",
|
|
259
178
|
componentId: "sc-1sd3tsh-2"
|
|
260
|
-
})(["", ";"],
|
|
261
|
-
enterprise:
|
|
262
|
-
prisma:
|
|
179
|
+
})(["", ";"], (0,themes_namespaceObject.pick)({
|
|
180
|
+
enterprise: (0,external_styled_components_namespaceObject.css)(["display:flex;max-width:100%;"]),
|
|
181
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["display:grid;max-width:100%;height:16px;column-gap:", ";", ";"], (0,themes_namespaceObject.pick)({
|
|
263
182
|
prisma: {
|
|
264
|
-
compact:
|
|
265
|
-
comfortable:
|
|
183
|
+
compact: themes_namespaceObject.variables.spacingXSmall,
|
|
184
|
+
comfortable: themes_namespaceObject.variables.spacingSmall
|
|
266
185
|
}
|
|
267
186
|
}), function (_ref5) {
|
|
268
187
|
var $icon = _ref5.$icon,
|
|
269
188
|
$removable = _ref5.$removable;
|
|
270
|
-
var gridColumns =
|
|
189
|
+
var gridColumns = (0,external_styled_components_namespaceObject.css)(["grid-template-columns:1fr;"]);
|
|
271
190
|
|
|
272
191
|
if ($icon && $removable) {
|
|
273
|
-
gridColumns =
|
|
192
|
+
gridColumns = (0,external_styled_components_namespaceObject.css)(["grid-template-columns:0fr 1fr 0fr;"]);
|
|
274
193
|
} else if ($icon) {
|
|
275
|
-
gridColumns =
|
|
194
|
+
gridColumns = (0,external_styled_components_namespaceObject.css)(["grid-template-columns:0fr 1fr;"]);
|
|
276
195
|
} else if ($removable) {
|
|
277
|
-
gridColumns =
|
|
196
|
+
gridColumns = (0,external_styled_components_namespaceObject.css)(["grid-template-columns:1fr 0fr;"]);
|
|
278
197
|
}
|
|
279
198
|
|
|
280
199
|
return gridColumns;
|
|
281
200
|
})
|
|
282
201
|
}));
|
|
283
|
-
var StyledIcon = external_styled_components_default.
|
|
202
|
+
var StyledIcon = external_styled_components_default().div.withConfig({
|
|
284
203
|
displayName: "ChipStyles__StyledIcon",
|
|
285
204
|
componentId: "sc-1sd3tsh-3"
|
|
286
|
-
})(["", ";margin-right:", ";color:", ";"],
|
|
205
|
+
})(["", ";margin-right:", ";color:", ";"], (0,themes_namespaceObject.pick)({
|
|
287
206
|
prisma: {
|
|
288
|
-
compact:
|
|
289
|
-
comfortable:
|
|
207
|
+
compact: (0,external_styled_components_namespaceObject.css)(["font-size:14px;display:inline-flex;svg{height:16px;vertical-align:baseline;}"]),
|
|
208
|
+
comfortable: (0,external_styled_components_namespaceObject.css)(["font-size:18px;display:inline-flex;align-self:center;svg{height:16px;vertical-align:baseline;}"])
|
|
290
209
|
},
|
|
291
|
-
enterprise:
|
|
292
|
-
}),
|
|
210
|
+
enterprise: (0,external_styled_components_namespaceObject.css)(["flex:0 0 auto;"])
|
|
211
|
+
}), (0,themes_namespaceObject.pick)({
|
|
293
212
|
enterprise: '3px'
|
|
294
|
-
}),
|
|
295
|
-
"true":
|
|
213
|
+
}), (0,themes_namespaceObject.pickVariant)('$disabled', {
|
|
214
|
+
"true": themes_namespaceObject.variables.contentColorDisabled,
|
|
296
215
|
"false": {
|
|
297
216
|
enterprise: function enterprise(_ref6) {
|
|
298
217
|
var $foregroundColor = _ref6.$foregroundColor;
|
|
299
|
-
return $foregroundColor ||
|
|
218
|
+
return $foregroundColor || themes_namespaceObject.variables.contentColorDefault;
|
|
300
219
|
},
|
|
301
220
|
prisma: function prisma(_ref7) {
|
|
302
221
|
var $foregroundColor = _ref7.$foregroundColor,
|
|
303
222
|
$appearance = _ref7.$appearance;
|
|
304
|
-
return $foregroundColor || ($appearance === 'error' ?
|
|
223
|
+
return $foregroundColor || ($appearance === 'error' ? themes_namespaceObject.variables.contentColorInverted : themes_namespaceObject.variables.contentColorDefault);
|
|
305
224
|
}
|
|
306
225
|
}
|
|
307
226
|
}));
|
|
308
|
-
var StyledLabel = external_styled_components_default.
|
|
227
|
+
var StyledLabel = external_styled_components_default().div.withConfig({
|
|
309
228
|
displayName: "ChipStyles__StyledLabel",
|
|
310
229
|
componentId: "sc-1sd3tsh-4"
|
|
311
|
-
})(["", " ", ";color:", ";"],
|
|
312
|
-
enterprise:
|
|
313
|
-
}),
|
|
314
|
-
"true":
|
|
230
|
+
})(["", " ", ";color:", ";"], themes_namespaceObject.mixins.ellipsis(), (0,themes_namespaceObject.pick)({
|
|
231
|
+
enterprise: (0,external_styled_components_namespaceObject.css)(["flex:0 1 auto;"])
|
|
232
|
+
}), (0,themes_namespaceObject.pickVariant)('$disabled', {
|
|
233
|
+
"true": themes_namespaceObject.variables.contentColorDisabled,
|
|
315
234
|
"false": {
|
|
316
235
|
enterprise: function enterprise(_ref8) {
|
|
317
236
|
var $appearance = _ref8.$appearance,
|
|
318
237
|
$foregroundColor = _ref8.$foregroundColor;
|
|
319
|
-
return $foregroundColor || ($appearance === 'default' || $appearance === 'outline' ?
|
|
238
|
+
return $foregroundColor || ($appearance === 'default' || $appearance === 'outline' ? themes_namespaceObject.variables.contentColorDefault : themes_namespaceObject.variables.gray30);
|
|
320
239
|
},
|
|
321
240
|
prisma: function prisma(_ref9) {
|
|
322
241
|
var $appearance = _ref9.$appearance,
|
|
323
242
|
$foregroundColor = _ref9.$foregroundColor;
|
|
324
|
-
return $foregroundColor || ($appearance === 'error' ?
|
|
243
|
+
return $foregroundColor || ($appearance === 'error' ? themes_namespaceObject.variables.contentColorInverted : themes_namespaceObject.variables.contentColorActive);
|
|
325
244
|
}
|
|
326
245
|
}
|
|
327
246
|
}));
|
|
328
|
-
var StyledRemove = external_styled_components_default.
|
|
247
|
+
var StyledRemove = external_styled_components_default().span.withConfig({
|
|
329
248
|
displayName: "ChipStyles__StyledRemove",
|
|
330
249
|
componentId: "sc-1sd3tsh-5"
|
|
331
|
-
})(["", ";"],
|
|
332
|
-
enterprise:
|
|
250
|
+
})(["", ";"], (0,themes_namespaceObject.pick)({
|
|
251
|
+
enterprise: (0,external_styled_components_namespaceObject.css)(["flex:0 0 auto;padding-left:", ";font-size:", ";color:", ";"], themes_namespaceObject.variables.spacingQuarter, (0,themes_namespaceObject.pick)({
|
|
333
252
|
compact: '9px',
|
|
334
253
|
comfortable: '10.5px'
|
|
335
|
-
}),
|
|
336
|
-
"true":
|
|
254
|
+
}), (0,themes_namespaceObject.pickVariant)('$disabled', {
|
|
255
|
+
"true": themes_namespaceObject.variables.contentColorDisabled,
|
|
337
256
|
"false": {
|
|
338
257
|
enterprise: function enterprise(_ref10) {
|
|
339
258
|
var $foregroundColor = _ref10.$foregroundColor,
|
|
340
259
|
$appearance = _ref10.$appearance;
|
|
341
|
-
return $foregroundColor || ($appearance === 'default' || $appearance === 'outline' ?
|
|
260
|
+
return $foregroundColor || ($appearance === 'default' || $appearance === 'outline' ? themes_namespaceObject.variables.textGray : themes_namespaceObject.variables.gray30);
|
|
342
261
|
}
|
|
343
262
|
}
|
|
344
263
|
})),
|
|
345
|
-
prisma:
|
|
264
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["font-size:", ";display:flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:12px;font-size:9px;color:", ";"], (0,themes_namespaceObject.pick)({
|
|
346
265
|
compact: '9px',
|
|
347
266
|
comfortable: '10.5px'
|
|
348
267
|
}), function (_ref11) {
|
|
349
268
|
var $disabled = _ref11.$disabled,
|
|
350
269
|
$foregroundColor = _ref11.$foregroundColor;
|
|
351
|
-
return $disabled ?
|
|
270
|
+
return $disabled ? themes_namespaceObject.variables.contentColorDisabled : $foregroundColor || 'inherit';
|
|
352
271
|
})
|
|
353
272
|
}));
|
|
354
|
-
var StyledClickable = external_styled_components_default()(StyledBasic.withComponent(Clickable_default
|
|
273
|
+
var StyledClickable = external_styled_components_default()(StyledBasic.withComponent((Clickable_default()))).withConfig({
|
|
355
274
|
displayName: "ChipStyles__StyledClickable",
|
|
356
275
|
componentId: "sc-1sd3tsh-6"
|
|
357
|
-
})(["flex:0 1 auto;line-height:16px;cursor:pointer;&:focus{", ";}&:not([disabled]):hover{", ";}", ";"],
|
|
358
|
-
enterprise:
|
|
359
|
-
prisma:
|
|
276
|
+
})(["flex:0 1 auto;line-height:16px;cursor:pointer;&:focus{", ";}&:not([disabled]):hover{", ";}", ";"], (0,themes_namespaceObject.pick)({
|
|
277
|
+
enterprise: (0,external_styled_components_namespaceObject.css)(["box-shadow:", ";color:", ";"], themes_namespaceObject.variables.focusShadow, themes_namespaceObject.variables.linkColor),
|
|
278
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["color:", ";", "{background-color:", ";box-shadow:0 0 0 3px ", ";}"], themes_namespaceObject.variables.contentColorActive,
|
|
360
279
|
/* sc-sel */
|
|
361
|
-
StyledRemove,
|
|
362
|
-
}),
|
|
363
|
-
enterprise:
|
|
280
|
+
StyledRemove, themes_namespaceObject.variables.interactiveColorOverlayHover, themes_namespaceObject.variables.focusColor)
|
|
281
|
+
}), (0,themes_namespaceObject.pick)({
|
|
282
|
+
enterprise: (0,external_styled_components_namespaceObject.css)(["background-color:", ";", "{color:", ";}"], (0,themes_namespaceObject.pickVariant)('$appearance', {
|
|
364
283
|
"default": {
|
|
365
|
-
dark:
|
|
366
|
-
light:
|
|
284
|
+
dark: themes_namespaceObject.variables.gray30,
|
|
285
|
+
light: themes_namespaceObject.variables.gray96
|
|
367
286
|
},
|
|
368
|
-
info:
|
|
369
|
-
success:
|
|
370
|
-
warning:
|
|
371
|
-
error:
|
|
287
|
+
info: themes_namespaceObject.variables.infoColorL20,
|
|
288
|
+
success: themes_namespaceObject.variables.successColorL20,
|
|
289
|
+
warning: themes_namespaceObject.variables.warningColorL20,
|
|
290
|
+
error: themes_namespaceObject.variables.errorColorL20,
|
|
372
291
|
custom: {
|
|
373
|
-
dark:
|
|
374
|
-
light:
|
|
292
|
+
dark: themes_namespaceObject.variables.gray30,
|
|
293
|
+
light: themes_namespaceObject.variables.gray96
|
|
375
294
|
}
|
|
376
295
|
}),
|
|
377
296
|
/* sc-sel */
|
|
378
297
|
StyledRemove, function (_ref12) {
|
|
379
298
|
var $foregroundColor = _ref12.$foregroundColor;
|
|
380
|
-
return $foregroundColor ||
|
|
299
|
+
return $foregroundColor || themes_namespaceObject.variables.linkColor;
|
|
381
300
|
}),
|
|
382
|
-
prisma:
|
|
301
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["color:", ";", "{background-color:", ";", ";}"], themes_namespaceObject.variables.contentColorActive,
|
|
383
302
|
/* sc-sel */
|
|
384
|
-
StyledRemove,
|
|
303
|
+
StyledRemove, themes_namespaceObject.variables.interactiveColorOverlayHover, function (_ref13) {
|
|
385
304
|
var $appearance = _ref13.$appearance;
|
|
386
|
-
return $appearance === 'error' &&
|
|
305
|
+
return $appearance === 'error' && (0,external_styled_components_namespaceObject.css)(["color:", ";"], themes_namespaceObject.variables.contentColorInverted);
|
|
387
306
|
})
|
|
388
|
-
}),
|
|
389
|
-
prisma:
|
|
307
|
+
}), (0,themes_namespaceObject.pick)({
|
|
308
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["&:not([disabled]):active ", "{background-color:", ";}"],
|
|
390
309
|
/* sc-sel */
|
|
391
|
-
StyledRemove,
|
|
310
|
+
StyledRemove, themes_namespaceObject.variables.interactiveColorOverlayActive)
|
|
392
311
|
}));
|
|
393
312
|
|
|
394
|
-
|
|
313
|
+
;// CONCATENATED MODULE: ./src/Chip/Chip.tsx
|
|
395
314
|
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); }
|
|
396
315
|
|
|
397
316
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
@@ -420,17 +339,17 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
420
339
|
|
|
421
340
|
|
|
422
341
|
var propTypes = {
|
|
423
|
-
appearance: external_prop_types_default.
|
|
424
|
-
backgroundColor: external_prop_types_default.
|
|
425
|
-
children: external_prop_types_default.
|
|
426
|
-
disabled: external_prop_types_default.
|
|
427
|
-
elementRef: external_prop_types_default.
|
|
428
|
-
foregroundColor: external_prop_types_default.
|
|
429
|
-
icon: external_prop_types_default.
|
|
430
|
-
onRequestRemove: external_prop_types_default.
|
|
342
|
+
appearance: external_prop_types_default().oneOf(['info', 'success', 'warning', 'error', 'outline']),
|
|
343
|
+
backgroundColor: (external_prop_types_default()).string,
|
|
344
|
+
children: (external_prop_types_default()).node.isRequired,
|
|
345
|
+
disabled: (external_prop_types_default()).bool,
|
|
346
|
+
elementRef: external_prop_types_default().oneOfType([(external_prop_types_default()).func, (external_prop_types_default()).object]),
|
|
347
|
+
foregroundColor: (external_prop_types_default()).string,
|
|
348
|
+
icon: (external_prop_types_default()).node,
|
|
349
|
+
onRequestRemove: (external_prop_types_default()).func,
|
|
431
350
|
|
|
432
351
|
/** Includes this value in `onRequestRemove` callbacks. */
|
|
433
|
-
value: external_prop_types_default.
|
|
352
|
+
value: (external_prop_types_default()).any
|
|
434
353
|
};
|
|
435
354
|
var defaultProps = {
|
|
436
355
|
disabled: false
|
|
@@ -449,8 +368,8 @@ function getSharedProps(props) {
|
|
|
449
368
|
otherProps = _objectWithoutProperties(props, ["appearance", "backgroundColor", "disabled", "foregroundColor", "icon"]); // Validate that the color being rendered into the CSS is restricted to only values that are of CSS type <color>.
|
|
450
369
|
|
|
451
370
|
|
|
452
|
-
var $foregroundColor = foregroundColor &&
|
|
453
|
-
var $backgroundColor = backgroundColor &&
|
|
371
|
+
var $foregroundColor = foregroundColor && (0,color_namespaceObject.isCSSColor)(foregroundColor) ? foregroundColor : undefined;
|
|
372
|
+
var $backgroundColor = backgroundColor && (0,color_namespaceObject.isCSSColor)(backgroundColor) ? backgroundColor : undefined;
|
|
454
373
|
var sharedProps = {
|
|
455
374
|
'data-test': 'chip',
|
|
456
375
|
$appearance: appearance || ($backgroundColor ? 'custom' : 'default'),
|
|
@@ -480,15 +399,15 @@ function ChipInteractive(props) {
|
|
|
480
399
|
value = ownProps.value,
|
|
481
400
|
otherProps = _objectWithoutProperties(ownProps, ["children", "elementRef", "onRequestRemove", "value"]);
|
|
482
401
|
|
|
483
|
-
var _useSplunkTheme =
|
|
402
|
+
var _useSplunkTheme = (0,themes_namespaceObject.useSplunkTheme)(),
|
|
484
403
|
isEnterprise = _useSplunkTheme.isEnterprise;
|
|
485
404
|
|
|
486
|
-
var handleRemoveClick =
|
|
405
|
+
var handleRemoveClick = (0,external_react_namespaceObject.useCallback)(function (e) {
|
|
487
406
|
onRequestRemove(e, {
|
|
488
407
|
value: value
|
|
489
408
|
});
|
|
490
409
|
}, [onRequestRemove, value]);
|
|
491
|
-
return /*#__PURE__*/external_react_default.
|
|
410
|
+
return /*#__PURE__*/external_react_default().createElement(StyledClickable, _extends({
|
|
492
411
|
$appearance: $appearance,
|
|
493
412
|
$disabled: disabled,
|
|
494
413
|
$foregroundColor: $foregroundColor,
|
|
@@ -496,29 +415,29 @@ function ChipInteractive(props) {
|
|
|
496
415
|
disabled: disabled,
|
|
497
416
|
elementRef: elementRef,
|
|
498
417
|
onClick: handleRemoveClick
|
|
499
|
-
}, otherSharedProps, omit_default()(otherProps, Object.keys(propTypes))), /*#__PURE__*/external_react_default.
|
|
418
|
+
}, otherSharedProps, omit_default()(otherProps, Object.keys(propTypes))), /*#__PURE__*/external_react_default().createElement(StyledInner, {
|
|
500
419
|
$icon: !!icon,
|
|
501
420
|
$removable: true
|
|
502
|
-
}, icon && /*#__PURE__*/external_react_default.
|
|
421
|
+
}, icon && /*#__PURE__*/external_react_default().createElement(StyledIcon, {
|
|
503
422
|
$appearance: $appearance,
|
|
504
423
|
$disabled: disabled,
|
|
505
424
|
$foregroundColor: $foregroundColor
|
|
506
|
-
}, icon), /*#__PURE__*/external_react_default.
|
|
425
|
+
}, icon), /*#__PURE__*/external_react_default().createElement(StyledLabel, {
|
|
507
426
|
"data-test": "label",
|
|
508
427
|
$appearance: $appearance,
|
|
509
428
|
$disabled: disabled,
|
|
510
429
|
$foregroundColor: $foregroundColor
|
|
511
|
-
}, children), /*#__PURE__*/external_react_default.
|
|
430
|
+
}, children), /*#__PURE__*/external_react_default().createElement(StyledRemove, {
|
|
512
431
|
$appearance: $appearance,
|
|
513
432
|
$disabled: disabled,
|
|
514
433
|
$foregroundColor: $foregroundColor
|
|
515
|
-
}, isEnterprise ? /*#__PURE__*/external_react_default.
|
|
434
|
+
}, isEnterprise ? /*#__PURE__*/external_react_default().createElement((Close_default()), {
|
|
516
435
|
"data-test": "cross",
|
|
517
436
|
hideDefaultTooltip: true,
|
|
518
|
-
screenReaderText:
|
|
437
|
+
screenReaderText: (0,i18n_namespaceObject._)('Remove'),
|
|
519
438
|
size: 0.85
|
|
520
|
-
}) : /*#__PURE__*/external_react_default.
|
|
521
|
-
"aria-label":
|
|
439
|
+
}) : /*#__PURE__*/external_react_default().createElement((Cross_default()), {
|
|
440
|
+
"aria-label": (0,i18n_namespaceObject._)('Remove'),
|
|
522
441
|
"data-test": "cross",
|
|
523
442
|
height: "20px",
|
|
524
443
|
width: "20px"
|
|
@@ -541,18 +460,18 @@ function ChipNonInteractive(props) {
|
|
|
541
460
|
elementRef = ownProps.elementRef,
|
|
542
461
|
otherProps = _objectWithoutProperties(ownProps, ["children", "elementRef"]);
|
|
543
462
|
|
|
544
|
-
return /*#__PURE__*/external_react_default.
|
|
463
|
+
return /*#__PURE__*/external_react_default().createElement(Styled, _extends({
|
|
545
464
|
$appearance: $appearance,
|
|
546
465
|
$disabled: disabled,
|
|
547
466
|
ref: elementRef
|
|
548
|
-
}, otherSharedProps, omit_default()(otherProps, Object.keys(propTypes))), /*#__PURE__*/external_react_default.
|
|
467
|
+
}, otherSharedProps, omit_default()(otherProps, Object.keys(propTypes))), /*#__PURE__*/external_react_default().createElement(StyledInner, {
|
|
549
468
|
$icon: !!icon,
|
|
550
469
|
$removable: false
|
|
551
|
-
}, icon && /*#__PURE__*/external_react_default.
|
|
470
|
+
}, icon && /*#__PURE__*/external_react_default().createElement(StyledIcon, {
|
|
552
471
|
$appearance: $appearance,
|
|
553
472
|
$disabled: disabled,
|
|
554
473
|
$foregroundColor: $foregroundColor
|
|
555
|
-
}, icon), /*#__PURE__*/external_react_default.
|
|
474
|
+
}, icon), /*#__PURE__*/external_react_default().createElement(StyledLabel, {
|
|
556
475
|
"data-test": "label",
|
|
557
476
|
$appearance: $appearance,
|
|
558
477
|
$disabled: disabled,
|
|
@@ -562,58 +481,15 @@ function ChipNonInteractive(props) {
|
|
|
562
481
|
|
|
563
482
|
function Chip(props) {
|
|
564
483
|
// @docs-props-type ChipPropsBase
|
|
565
|
-
return isInteractive(props) ? /*#__PURE__*/external_react_default.
|
|
484
|
+
return isInteractive(props) ? /*#__PURE__*/external_react_default().createElement(ChipInteractive, props) : /*#__PURE__*/external_react_default().createElement(ChipNonInteractive, props);
|
|
566
485
|
}
|
|
567
486
|
|
|
568
487
|
Chip.propTypes = propTypes;
|
|
569
488
|
Chip.defaultProps = defaultProps;
|
|
570
|
-
/* harmony default export */
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
/***/ }),
|
|
576
|
-
|
|
577
|
-
/***/ 26:
|
|
578
|
-
/***/ (function(module, exports) {
|
|
579
|
-
|
|
580
|
-
module.exports = require("@splunk/react-icons/Cross");
|
|
581
|
-
|
|
582
|
-
/***/ }),
|
|
583
|
-
|
|
584
|
-
/***/ 27:
|
|
585
|
-
/***/ (function(module, exports) {
|
|
586
|
-
|
|
587
|
-
module.exports = require("@splunk/react-icons/enterprise/Close");
|
|
588
|
-
|
|
589
|
-
/***/ }),
|
|
590
|
-
|
|
591
|
-
/***/ 3:
|
|
592
|
-
/***/ (function(module, exports) {
|
|
593
|
-
|
|
594
|
-
module.exports = require("styled-components");
|
|
595
|
-
|
|
596
|
-
/***/ }),
|
|
597
|
-
|
|
598
|
-
/***/ 4:
|
|
599
|
-
/***/ (function(module, exports) {
|
|
600
|
-
|
|
601
|
-
module.exports = require("@splunk/ui-utils/i18n");
|
|
602
|
-
|
|
603
|
-
/***/ }),
|
|
604
|
-
|
|
605
|
-
/***/ 5:
|
|
606
|
-
/***/ (function(module, exports) {
|
|
607
|
-
|
|
608
|
-
module.exports = require("lodash/omit");
|
|
609
|
-
|
|
610
|
-
/***/ }),
|
|
611
|
-
|
|
612
|
-
/***/ 50:
|
|
613
|
-
/***/ (function(module, exports) {
|
|
614
|
-
|
|
615
|
-
module.exports = require("@splunk/ui-utils/color");
|
|
489
|
+
/* harmony default export */ const Chip_Chip = (Chip);
|
|
490
|
+
;// CONCATENATED MODULE: ./src/Chip/index.ts
|
|
616
491
|
|
|
617
|
-
/***/ })
|
|
618
492
|
|
|
619
|
-
|
|
493
|
+
module.exports = __webpack_exports__;
|
|
494
|
+
/******/ })()
|
|
495
|
+
;
|