@norges-domstoler/dds-components 0.0.11 → 0.0.15
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/dist/components/Button/Button.styles.d.ts +17 -9
- package/dist/components/Datepicker/Datepicker.d.ts +8 -0
- package/dist/components/Datepicker/index.d.ts +1 -0
- package/dist/components/GlobalMessage/GlobalMessage.d.ts +2 -0
- package/dist/components/LocalMessage/LocalMessage.d.ts +2 -0
- package/dist/components/TextInput/TextInput.d.ts +5 -4
- package/dist/components/TextInput/TextInput.styles.d.ts +6 -9
- package/dist/components/TextInput/TextInput.tokens.d.ts +2 -38
- package/dist/components/TextInput/TextInput.types.d.ts +2 -6
- package/dist/helpers/Input/Input.styles.d.ts +8 -0
- package/dist/helpers/Input/Input.tokens.d.ts +71 -0
- package/dist/helpers/Input/Input.types.d.ts +10 -0
- package/dist/helpers/Input/index.d.ts +3 -0
- package/dist/helpers/{inputFieldStylingBase.d.ts → Input/inputFieldStylingBase.d.ts} +0 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +956 -546
- package/dist/index.js +973 -562
- package/package.json +2 -1
package/dist/index.es.js
CHANGED
|
@@ -3,6 +3,344 @@ import React__default, { useRef, useDebugValue, useContext, createElement, forwa
|
|
|
3
3
|
import * as ReactDOM from 'react-dom';
|
|
4
4
|
import { createPortal } from 'react-dom';
|
|
5
5
|
|
|
6
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
7
|
+
|
|
8
|
+
function getDefaultExportFromCjs (x) {
|
|
9
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
function getAugmentedNamespace(n) {
|
|
13
|
+
if (n.__esModule) return n;
|
|
14
|
+
var a = Object.defineProperty({}, '__esModule', {value: true});
|
|
15
|
+
Object.keys(n).forEach(function (k) {
|
|
16
|
+
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
17
|
+
Object.defineProperty(a, k, d.get ? d : {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () {
|
|
20
|
+
return n[k];
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
return a;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function createCommonjsModule(fn) {
|
|
28
|
+
var module = { exports: {} };
|
|
29
|
+
return fn(module, module.exports), module.exports;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
createCommonjsModule(function (module, exports) {
|
|
33
|
+
(function (global, factory) {
|
|
34
|
+
factory() ;
|
|
35
|
+
}(commonjsGlobal, (function () {
|
|
36
|
+
/**
|
|
37
|
+
* Applies the :focus-visible polyfill at the given scope.
|
|
38
|
+
* A scope in this case is either the top-level Document or a Shadow Root.
|
|
39
|
+
*
|
|
40
|
+
* @param {(Document|ShadowRoot)} scope
|
|
41
|
+
* @see https://github.com/WICG/focus-visible
|
|
42
|
+
*/
|
|
43
|
+
function applyFocusVisiblePolyfill(scope) {
|
|
44
|
+
var hadKeyboardEvent = true;
|
|
45
|
+
var hadFocusVisibleRecently = false;
|
|
46
|
+
var hadFocusVisibleRecentlyTimeout = null;
|
|
47
|
+
|
|
48
|
+
var inputTypesAllowlist = {
|
|
49
|
+
text: true,
|
|
50
|
+
search: true,
|
|
51
|
+
url: true,
|
|
52
|
+
tel: true,
|
|
53
|
+
email: true,
|
|
54
|
+
password: true,
|
|
55
|
+
number: true,
|
|
56
|
+
date: true,
|
|
57
|
+
month: true,
|
|
58
|
+
week: true,
|
|
59
|
+
time: true,
|
|
60
|
+
datetime: true,
|
|
61
|
+
'datetime-local': true
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Helper function for legacy browsers and iframes which sometimes focus
|
|
66
|
+
* elements like document, body, and non-interactive SVG.
|
|
67
|
+
* @param {Element} el
|
|
68
|
+
*/
|
|
69
|
+
function isValidFocusTarget(el) {
|
|
70
|
+
if (
|
|
71
|
+
el &&
|
|
72
|
+
el !== document &&
|
|
73
|
+
el.nodeName !== 'HTML' &&
|
|
74
|
+
el.nodeName !== 'BODY' &&
|
|
75
|
+
'classList' in el &&
|
|
76
|
+
'contains' in el.classList
|
|
77
|
+
) {
|
|
78
|
+
return true;
|
|
79
|
+
}
|
|
80
|
+
return false;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Computes whether the given element should automatically trigger the
|
|
85
|
+
* `focus-visible` class being added, i.e. whether it should always match
|
|
86
|
+
* `:focus-visible` when focused.
|
|
87
|
+
* @param {Element} el
|
|
88
|
+
* @return {boolean}
|
|
89
|
+
*/
|
|
90
|
+
function focusTriggersKeyboardModality(el) {
|
|
91
|
+
var type = el.type;
|
|
92
|
+
var tagName = el.tagName;
|
|
93
|
+
|
|
94
|
+
if (tagName === 'INPUT' && inputTypesAllowlist[type] && !el.readOnly) {
|
|
95
|
+
return true;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
if (tagName === 'TEXTAREA' && !el.readOnly) {
|
|
99
|
+
return true;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
if (el.isContentEditable) {
|
|
103
|
+
return true;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
return false;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Add the `focus-visible` class to the given element if it was not added by
|
|
111
|
+
* the author.
|
|
112
|
+
* @param {Element} el
|
|
113
|
+
*/
|
|
114
|
+
function addFocusVisibleClass(el) {
|
|
115
|
+
if (el.classList.contains('focus-visible')) {
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
el.classList.add('focus-visible');
|
|
119
|
+
el.setAttribute('data-focus-visible-added', '');
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Remove the `focus-visible` class from the given element if it was not
|
|
124
|
+
* originally added by the author.
|
|
125
|
+
* @param {Element} el
|
|
126
|
+
*/
|
|
127
|
+
function removeFocusVisibleClass(el) {
|
|
128
|
+
if (!el.hasAttribute('data-focus-visible-added')) {
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
el.classList.remove('focus-visible');
|
|
132
|
+
el.removeAttribute('data-focus-visible-added');
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* If the most recent user interaction was via the keyboard;
|
|
137
|
+
* and the key press did not include a meta, alt/option, or control key;
|
|
138
|
+
* then the modality is keyboard. Otherwise, the modality is not keyboard.
|
|
139
|
+
* Apply `focus-visible` to any current active element and keep track
|
|
140
|
+
* of our keyboard modality state with `hadKeyboardEvent`.
|
|
141
|
+
* @param {KeyboardEvent} e
|
|
142
|
+
*/
|
|
143
|
+
function onKeyDown(e) {
|
|
144
|
+
if (e.metaKey || e.altKey || e.ctrlKey) {
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
if (isValidFocusTarget(scope.activeElement)) {
|
|
149
|
+
addFocusVisibleClass(scope.activeElement);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
hadKeyboardEvent = true;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* If at any point a user clicks with a pointing device, ensure that we change
|
|
157
|
+
* the modality away from keyboard.
|
|
158
|
+
* This avoids the situation where a user presses a key on an already focused
|
|
159
|
+
* element, and then clicks on a different element, focusing it with a
|
|
160
|
+
* pointing device, while we still think we're in keyboard modality.
|
|
161
|
+
* @param {Event} e
|
|
162
|
+
*/
|
|
163
|
+
function onPointerDown(e) {
|
|
164
|
+
hadKeyboardEvent = false;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* On `focus`, add the `focus-visible` class to the target if:
|
|
169
|
+
* - the target received focus as a result of keyboard navigation, or
|
|
170
|
+
* - the event target is an element that will likely require interaction
|
|
171
|
+
* via the keyboard (e.g. a text box)
|
|
172
|
+
* @param {Event} e
|
|
173
|
+
*/
|
|
174
|
+
function onFocus(e) {
|
|
175
|
+
// Prevent IE from focusing the document or HTML element.
|
|
176
|
+
if (!isValidFocusTarget(e.target)) {
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
if (hadKeyboardEvent || focusTriggersKeyboardModality(e.target)) {
|
|
181
|
+
addFocusVisibleClass(e.target);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* On `blur`, remove the `focus-visible` class from the target.
|
|
187
|
+
* @param {Event} e
|
|
188
|
+
*/
|
|
189
|
+
function onBlur(e) {
|
|
190
|
+
if (!isValidFocusTarget(e.target)) {
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
if (
|
|
195
|
+
e.target.classList.contains('focus-visible') ||
|
|
196
|
+
e.target.hasAttribute('data-focus-visible-added')
|
|
197
|
+
) {
|
|
198
|
+
// To detect a tab/window switch, we look for a blur event followed
|
|
199
|
+
// rapidly by a visibility change.
|
|
200
|
+
// If we don't see a visibility change within 100ms, it's probably a
|
|
201
|
+
// regular focus change.
|
|
202
|
+
hadFocusVisibleRecently = true;
|
|
203
|
+
window.clearTimeout(hadFocusVisibleRecentlyTimeout);
|
|
204
|
+
hadFocusVisibleRecentlyTimeout = window.setTimeout(function() {
|
|
205
|
+
hadFocusVisibleRecently = false;
|
|
206
|
+
}, 100);
|
|
207
|
+
removeFocusVisibleClass(e.target);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* If the user changes tabs, keep track of whether or not the previously
|
|
213
|
+
* focused element had .focus-visible.
|
|
214
|
+
* @param {Event} e
|
|
215
|
+
*/
|
|
216
|
+
function onVisibilityChange(e) {
|
|
217
|
+
if (document.visibilityState === 'hidden') {
|
|
218
|
+
// If the tab becomes active again, the browser will handle calling focus
|
|
219
|
+
// on the element (Safari actually calls it twice).
|
|
220
|
+
// If this tab change caused a blur on an element with focus-visible,
|
|
221
|
+
// re-apply the class when the user switches back to the tab.
|
|
222
|
+
if (hadFocusVisibleRecently) {
|
|
223
|
+
hadKeyboardEvent = true;
|
|
224
|
+
}
|
|
225
|
+
addInitialPointerMoveListeners();
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Add a group of listeners to detect usage of any pointing devices.
|
|
231
|
+
* These listeners will be added when the polyfill first loads, and anytime
|
|
232
|
+
* the window is blurred, so that they are active when the window regains
|
|
233
|
+
* focus.
|
|
234
|
+
*/
|
|
235
|
+
function addInitialPointerMoveListeners() {
|
|
236
|
+
document.addEventListener('mousemove', onInitialPointerMove);
|
|
237
|
+
document.addEventListener('mousedown', onInitialPointerMove);
|
|
238
|
+
document.addEventListener('mouseup', onInitialPointerMove);
|
|
239
|
+
document.addEventListener('pointermove', onInitialPointerMove);
|
|
240
|
+
document.addEventListener('pointerdown', onInitialPointerMove);
|
|
241
|
+
document.addEventListener('pointerup', onInitialPointerMove);
|
|
242
|
+
document.addEventListener('touchmove', onInitialPointerMove);
|
|
243
|
+
document.addEventListener('touchstart', onInitialPointerMove);
|
|
244
|
+
document.addEventListener('touchend', onInitialPointerMove);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
function removeInitialPointerMoveListeners() {
|
|
248
|
+
document.removeEventListener('mousemove', onInitialPointerMove);
|
|
249
|
+
document.removeEventListener('mousedown', onInitialPointerMove);
|
|
250
|
+
document.removeEventListener('mouseup', onInitialPointerMove);
|
|
251
|
+
document.removeEventListener('pointermove', onInitialPointerMove);
|
|
252
|
+
document.removeEventListener('pointerdown', onInitialPointerMove);
|
|
253
|
+
document.removeEventListener('pointerup', onInitialPointerMove);
|
|
254
|
+
document.removeEventListener('touchmove', onInitialPointerMove);
|
|
255
|
+
document.removeEventListener('touchstart', onInitialPointerMove);
|
|
256
|
+
document.removeEventListener('touchend', onInitialPointerMove);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* When the polfyill first loads, assume the user is in keyboard modality.
|
|
261
|
+
* If any event is received from a pointing device (e.g. mouse, pointer,
|
|
262
|
+
* touch), turn off keyboard modality.
|
|
263
|
+
* This accounts for situations where focus enters the page from the URL bar.
|
|
264
|
+
* @param {Event} e
|
|
265
|
+
*/
|
|
266
|
+
function onInitialPointerMove(e) {
|
|
267
|
+
// Work around a Safari quirk that fires a mousemove on <html> whenever the
|
|
268
|
+
// window blurs, even if you're tabbing out of the page. ¯\_(ツ)_/¯
|
|
269
|
+
if (e.target.nodeName && e.target.nodeName.toLowerCase() === 'html') {
|
|
270
|
+
return;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
hadKeyboardEvent = false;
|
|
274
|
+
removeInitialPointerMoveListeners();
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
// For some kinds of state, we are interested in changes at the global scope
|
|
278
|
+
// only. For example, global pointer input, global key presses and global
|
|
279
|
+
// visibility change should affect the state at every scope:
|
|
280
|
+
document.addEventListener('keydown', onKeyDown, true);
|
|
281
|
+
document.addEventListener('mousedown', onPointerDown, true);
|
|
282
|
+
document.addEventListener('pointerdown', onPointerDown, true);
|
|
283
|
+
document.addEventListener('touchstart', onPointerDown, true);
|
|
284
|
+
document.addEventListener('visibilitychange', onVisibilityChange, true);
|
|
285
|
+
|
|
286
|
+
addInitialPointerMoveListeners();
|
|
287
|
+
|
|
288
|
+
// For focus and blur, we specifically care about state changes in the local
|
|
289
|
+
// scope. This is because focus / blur events that originate from within a
|
|
290
|
+
// shadow root are not re-dispatched from the host element if it was already
|
|
291
|
+
// the active element in its own scope:
|
|
292
|
+
scope.addEventListener('focus', onFocus, true);
|
|
293
|
+
scope.addEventListener('blur', onBlur, true);
|
|
294
|
+
|
|
295
|
+
// We detect that a node is a ShadowRoot by ensuring that it is a
|
|
296
|
+
// DocumentFragment and also has a host property. This check covers native
|
|
297
|
+
// implementation and polyfill implementation transparently. If we only cared
|
|
298
|
+
// about the native implementation, we could just check if the scope was
|
|
299
|
+
// an instance of a ShadowRoot.
|
|
300
|
+
if (scope.nodeType === Node.DOCUMENT_FRAGMENT_NODE && scope.host) {
|
|
301
|
+
// Since a ShadowRoot is a special kind of DocumentFragment, it does not
|
|
302
|
+
// have a root element to add a class to. So, we add this attribute to the
|
|
303
|
+
// host element instead:
|
|
304
|
+
scope.host.setAttribute('data-js-focus-visible', '');
|
|
305
|
+
} else if (scope.nodeType === Node.DOCUMENT_NODE) {
|
|
306
|
+
document.documentElement.classList.add('js-focus-visible');
|
|
307
|
+
document.documentElement.setAttribute('data-js-focus-visible', '');
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
// It is important to wrap all references to global window and document in
|
|
312
|
+
// these checks to support server-side rendering use cases
|
|
313
|
+
// @see https://github.com/WICG/focus-visible/issues/199
|
|
314
|
+
if (typeof window !== 'undefined' && typeof document !== 'undefined') {
|
|
315
|
+
// Make the polyfill helper globally available. This can be used as a signal
|
|
316
|
+
// to interested libraries that wish to coordinate with the polyfill for e.g.,
|
|
317
|
+
// applying the polyfill to a shadow root:
|
|
318
|
+
window.applyFocusVisiblePolyfill = applyFocusVisiblePolyfill;
|
|
319
|
+
|
|
320
|
+
// Notify interested libraries of the polyfill's presence, in case the
|
|
321
|
+
// polyfill was loaded lazily:
|
|
322
|
+
var event;
|
|
323
|
+
|
|
324
|
+
try {
|
|
325
|
+
event = new CustomEvent('focus-visible-polyfill-ready');
|
|
326
|
+
} catch (error) {
|
|
327
|
+
// IE11 does not support using CustomEvent as a constructor directly:
|
|
328
|
+
event = document.createEvent('CustomEvent');
|
|
329
|
+
event.initCustomEvent('focus-visible-polyfill-ready', false, false, {});
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
window.dispatchEvent(event);
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
if (typeof document !== 'undefined') {
|
|
336
|
+
// Apply the polyfill to the global document, so that no JavaScript
|
|
337
|
+
// coordination is required to use the polyfill in the top-level document:
|
|
338
|
+
applyFocusVisiblePolyfill(document);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
})));
|
|
342
|
+
});
|
|
343
|
+
|
|
6
344
|
/*! *****************************************************************************
|
|
7
345
|
Copyright (c) Microsoft Corporation.
|
|
8
346
|
|
|
@@ -56,30 +394,6 @@ function __makeTemplateObject(cooked, raw) {
|
|
|
56
394
|
return cooked;
|
|
57
395
|
}
|
|
58
396
|
|
|
59
|
-
function getDefaultExportFromCjs (x) {
|
|
60
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
function getAugmentedNamespace(n) {
|
|
64
|
-
if (n.__esModule) return n;
|
|
65
|
-
var a = Object.defineProperty({}, '__esModule', {value: true});
|
|
66
|
-
Object.keys(n).forEach(function (k) {
|
|
67
|
-
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
68
|
-
Object.defineProperty(a, k, d.get ? d : {
|
|
69
|
-
enumerable: true,
|
|
70
|
-
get: function () {
|
|
71
|
-
return n[k];
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
});
|
|
75
|
-
return a;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
function createCommonjsModule(fn) {
|
|
79
|
-
var module = { exports: {} };
|
|
80
|
-
return fn(module, module.exports), module.exports;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
397
|
/*
|
|
84
398
|
object-assign
|
|
85
399
|
(c) Sindre Sorhus
|
|
@@ -11423,16 +11737,16 @@ var ddsBaseTokens = {
|
|
|
11423
11737
|
fontPackages: fontPackages,
|
|
11424
11738
|
};
|
|
11425
11739
|
|
|
11426
|
-
var Colors$
|
|
11740
|
+
var Colors$j = ddsBaseTokens.colors, FontPackages$g = ddsBaseTokens.fontPackages, BorderRadius$4 = ddsBaseTokens.borderRadius, Border$8 = ddsBaseTokens.border;
|
|
11427
11741
|
var textDefault$8 = {
|
|
11428
|
-
textColor: Colors$
|
|
11742
|
+
textColor: Colors$j.DdsColorNeutralsGray9,
|
|
11429
11743
|
font: FontPackages$g.body_sans_02.base,
|
|
11430
11744
|
};
|
|
11431
11745
|
var focus$1 = {
|
|
11432
|
-
colorDefault: Colors$
|
|
11746
|
+
colorDefault: Colors$j.DdsColorWarningDarker,
|
|
11433
11747
|
outlineWidth: Border$8.BordersDdsBorderStyle1StrokeWeight,
|
|
11434
|
-
color__TextInput: Colors$
|
|
11435
|
-
textColor__TextInput: Colors$
|
|
11748
|
+
color__TextInput: Colors$j.DdsColorInteractiveBase,
|
|
11749
|
+
textColor__TextInput: Colors$j.DdsColorInteractiveDark,
|
|
11436
11750
|
borderWidth__TextInput: Border$8.BordersDdsBorderStyle1StrokeWeightNumberPx * 2 + "px",
|
|
11437
11751
|
};
|
|
11438
11752
|
var ddsReferenceTokens = {
|
|
@@ -11442,11 +11756,11 @@ var ddsReferenceTokens = {
|
|
|
11442
11756
|
input: {
|
|
11443
11757
|
borderRadius: BorderRadius$4.RadiiDdsBorderRadius1Radius,
|
|
11444
11758
|
borderWidth: Border$8.BordersDdsBorderStyle1StrokeWeight,
|
|
11445
|
-
borderColor: Colors$
|
|
11759
|
+
borderColor: Colors$j.DdsColorNeutralsGray5,
|
|
11446
11760
|
textColor: textDefault$8.textColor,
|
|
11447
11761
|
font: FontPackages$g.supportingStyle_inputtext_02.base,
|
|
11448
11762
|
hover: {
|
|
11449
|
-
backgroundColor: Colors$
|
|
11763
|
+
backgroundColor: Colors$j.DdsColorInteractiveLightest,
|
|
11450
11764
|
borderColor: focus$1.color__TextInput,
|
|
11451
11765
|
borderWidth: focus$1.borderWidth__TextInput,
|
|
11452
11766
|
},
|
|
@@ -11466,31 +11780,31 @@ var ddsReferenceTokens = {
|
|
|
11466
11780
|
},
|
|
11467
11781
|
};
|
|
11468
11782
|
|
|
11469
|
-
var Colors$
|
|
11783
|
+
var Colors$i = ddsBaseTokens.colors,
|
|
11470
11784
|
FontPackages$f = ddsBaseTokens.fontPackages,
|
|
11471
|
-
Spacing$
|
|
11785
|
+
Spacing$o = ddsBaseTokens.spacing;
|
|
11472
11786
|
var textDefault$7 = ddsReferenceTokens.textDefault;
|
|
11473
11787
|
var textColors = {
|
|
11474
|
-
interactive: Colors$
|
|
11475
|
-
primary: Colors$
|
|
11476
|
-
danger: Colors$
|
|
11477
|
-
success: Colors$
|
|
11478
|
-
warning: Colors$
|
|
11788
|
+
interactive: Colors$i.DdsColorInteractiveBase,
|
|
11789
|
+
primary: Colors$i.DdsColorPrimaryBase,
|
|
11790
|
+
danger: Colors$i.DdsColorDangerBase,
|
|
11791
|
+
success: Colors$i.DdsColorSuccessBase,
|
|
11792
|
+
warning: Colors$i.DdsColorWarningBase,
|
|
11479
11793
|
onLight: textDefault$7.textColor,
|
|
11480
|
-
onDark: Colors$
|
|
11481
|
-
gray1: Colors$
|
|
11482
|
-
gray2: Colors$
|
|
11483
|
-
gray3: Colors$
|
|
11484
|
-
gray4: Colors$
|
|
11485
|
-
gray5: Colors$
|
|
11486
|
-
gray6: Colors$
|
|
11487
|
-
gray7: Colors$
|
|
11488
|
-
gray8: Colors$
|
|
11489
|
-
gray9: Colors$
|
|
11794
|
+
onDark: Colors$i.DdsColorNeutralsWhite,
|
|
11795
|
+
gray1: Colors$i.DdsColorNeutralsGray1,
|
|
11796
|
+
gray2: Colors$i.DdsColorNeutralsGray2,
|
|
11797
|
+
gray3: Colors$i.DdsColorNeutralsGray3,
|
|
11798
|
+
gray4: Colors$i.DdsColorNeutralsGray4,
|
|
11799
|
+
gray5: Colors$i.DdsColorNeutralsGray5,
|
|
11800
|
+
gray6: Colors$i.DdsColorNeutralsGray6,
|
|
11801
|
+
gray7: Colors$i.DdsColorNeutralsGray7,
|
|
11802
|
+
gray8: Colors$i.DdsColorNeutralsGray8,
|
|
11803
|
+
gray9: Colors$i.DdsColorNeutralsGray9
|
|
11490
11804
|
};
|
|
11491
11805
|
var textColorsArray = ['interactive', 'primary', 'danger', 'success', 'warning', 'onLight', 'onDark', 'gray1', 'gray2', 'gray3', 'gray4', 'gray5', 'gray6', 'gray7', 'gray8', 'gray9'];
|
|
11492
11806
|
var aBase = {
|
|
11493
|
-
color: Colors$
|
|
11807
|
+
color: Colors$i.DdsColorInteractiveBase,
|
|
11494
11808
|
// ...FontPackages.body_sans_02.base,
|
|
11495
11809
|
font: 'inherit',
|
|
11496
11810
|
textDecoration: 'underline',
|
|
@@ -11501,11 +11815,11 @@ var aMarginsBase = {
|
|
|
11501
11815
|
marginBottom: FontPackages$f.body_sans_02.paragraph.paragraphSpacing
|
|
11502
11816
|
};
|
|
11503
11817
|
var aHoverBase = {
|
|
11504
|
-
color: Colors$
|
|
11818
|
+
color: Colors$i.DdsColorInteractiveDark
|
|
11505
11819
|
};
|
|
11506
11820
|
var aFocusBase = {
|
|
11507
|
-
backgroundColor: Colors$
|
|
11508
|
-
color: Colors$
|
|
11821
|
+
backgroundColor: Colors$i.DdsColorWarningDarkest,
|
|
11822
|
+
color: Colors$i.DdsColorNeutralsWhite,
|
|
11509
11823
|
textDecoration: 'none',
|
|
11510
11824
|
outline: 'none'
|
|
11511
11825
|
};
|
|
@@ -11714,7 +12028,7 @@ var leadSans05MarginsBase = {
|
|
|
11714
12028
|
};
|
|
11715
12029
|
|
|
11716
12030
|
var supportingStyleLabel01Base = __assign(__assign({
|
|
11717
|
-
color: Colors$
|
|
12031
|
+
color: Colors$i.DdsColorNeutralsGray7
|
|
11718
12032
|
}, FontPackages$f.supportingStyle_label_01.base), {
|
|
11719
12033
|
margin: 0
|
|
11720
12034
|
});
|
|
@@ -11725,7 +12039,7 @@ var supportingStyleLabel01MarginsBase = {
|
|
|
11725
12039
|
};
|
|
11726
12040
|
|
|
11727
12041
|
var supportingStyleHelperText01Base = __assign(__assign({
|
|
11728
|
-
color: Colors$
|
|
12042
|
+
color: Colors$i.DdsColorNeutralsGray6
|
|
11729
12043
|
}, FontPackages$f.supportingStyle_helpertext_01.base), {
|
|
11730
12044
|
margin: 0
|
|
11731
12045
|
});
|
|
@@ -11769,7 +12083,7 @@ var supportingStyleInputText03MarginsBase = {
|
|
|
11769
12083
|
};
|
|
11770
12084
|
|
|
11771
12085
|
var supportingStylePlaceholderText01Base = __assign(__assign({
|
|
11772
|
-
color: Colors$
|
|
12086
|
+
color: Colors$i.DdsColorNeutralsGray6
|
|
11773
12087
|
}, FontPackages$f.supportingStyle_placeholdertext_01.base), {
|
|
11774
12088
|
margin: 0
|
|
11775
12089
|
});
|
|
@@ -11791,7 +12105,7 @@ var supportingStyleTiny01MarginsBase = {
|
|
|
11791
12105
|
};
|
|
11792
12106
|
var selectionBase = {
|
|
11793
12107
|
color: textDefault$7.textColor,
|
|
11794
|
-
backgroundColor: Colors$
|
|
12108
|
+
backgroundColor: Colors$i.DdsColorTertiaryLightest
|
|
11795
12109
|
};
|
|
11796
12110
|
var typographyTokens = {
|
|
11797
12111
|
selection: {
|
|
@@ -11813,7 +12127,7 @@ var typographyTokens = {
|
|
|
11813
12127
|
base: aBoldBase
|
|
11814
12128
|
},
|
|
11815
12129
|
icon: {
|
|
11816
|
-
marginLeft: Spacing$
|
|
12130
|
+
marginLeft: Spacing$o.SizesDdsSpacingLocalX0125
|
|
11817
12131
|
}
|
|
11818
12132
|
},
|
|
11819
12133
|
headingSans01: {
|
|
@@ -19495,23 +19809,23 @@ function useIsFocusVisible() {
|
|
|
19495
19809
|
}
|
|
19496
19810
|
|
|
19497
19811
|
var utils = /*#__PURE__*/Object.freeze({
|
|
19498
|
-
|
|
19499
|
-
|
|
19500
|
-
|
|
19501
|
-
|
|
19502
|
-
|
|
19503
|
-
|
|
19504
|
-
|
|
19505
|
-
|
|
19506
|
-
|
|
19507
|
-
|
|
19508
|
-
|
|
19509
|
-
|
|
19510
|
-
|
|
19511
|
-
|
|
19512
|
-
|
|
19513
|
-
|
|
19514
|
-
|
|
19812
|
+
__proto__: null,
|
|
19813
|
+
capitalize: capitalize,
|
|
19814
|
+
createChainedFunction: createChainedFunction,
|
|
19815
|
+
createSvgIcon: createSvgIcon$1,
|
|
19816
|
+
debounce: debounce,
|
|
19817
|
+
deprecatedPropType: deprecatedPropType,
|
|
19818
|
+
isMuiElement: isMuiElement,
|
|
19819
|
+
ownerDocument: ownerDocument,
|
|
19820
|
+
ownerWindow: ownerWindow,
|
|
19821
|
+
requirePropFactory: requirePropFactory,
|
|
19822
|
+
setRef: setRef,
|
|
19823
|
+
unsupportedProp: unsupportedProp,
|
|
19824
|
+
useControlled: useControlled,
|
|
19825
|
+
useEventCallback: useEventCallback,
|
|
19826
|
+
useForkRef: useForkRef,
|
|
19827
|
+
unstable_useId: useId,
|
|
19828
|
+
useIsFocusVisible: useIsFocusVisible
|
|
19515
19829
|
});
|
|
19516
19830
|
|
|
19517
19831
|
var _utils = /*@__PURE__*/getAugmentedNamespace(utils);
|
|
@@ -19616,45 +19930,45 @@ var getTextColor = function getTextColor(color) {
|
|
|
19616
19930
|
};
|
|
19617
19931
|
|
|
19618
19932
|
var getElementStyling = function getElementStyling(type) {
|
|
19619
|
-
return Ae(templateObject_1$
|
|
19933
|
+
return Ae(templateObject_1$D || (templateObject_1$D = __makeTemplateObject(["\n ", "\n &::selection, *::selection {\n ", "\n }\n "], ["\n ", "\n &::selection, *::selection {\n ", "\n }\n "])), typographyTokens.typographyType[type].base, typographyTokens.selection.base);
|
|
19620
19934
|
};
|
|
19621
19935
|
|
|
19622
19936
|
var LinkIconWrapper = styled(IconWrapper$1).withConfig({
|
|
19623
19937
|
displayName: "Typography__LinkIconWrapper",
|
|
19624
19938
|
componentId: "sc-1uvxoh6-0"
|
|
19625
|
-
})(templateObject_2$
|
|
19939
|
+
})(templateObject_2$s || (templateObject_2$s = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), typographyTokens.typographyType.a.icon);
|
|
19626
19940
|
var StyledTypography = styled.p.withConfig({
|
|
19627
19941
|
displayName: "Typography__StyledTypography",
|
|
19628
19942
|
componentId: "sc-1uvxoh6-1"
|
|
19629
|
-
})(templateObject_13$
|
|
19943
|
+
})(templateObject_13$2 || (templateObject_13$2 = __makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n\n ", "\n\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n\n ", "\n\n ", "\n ", "\n ", "\n ", "\n"])), function (_a) {
|
|
19630
19944
|
var typographyType = _a.typographyType;
|
|
19631
19945
|
return typographyType && getElementStyling(typographyType);
|
|
19632
19946
|
}, function (_a) {
|
|
19633
19947
|
var typographyType = _a.typographyType,
|
|
19634
19948
|
interactionProps = _a.interactionProps;
|
|
19635
|
-
return typographyType === 'a' && Ae(templateObject_4$
|
|
19949
|
+
return typographyType === 'a' && Ae(templateObject_4$g || (templateObject_4$g = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n\n &:hover {\n ", "\n }\n ", "\n &:focus-visible {\n ", "\n }\n &:focus-visible::selection {\n ", "\n }\n "], ["\n display: inline-flex;\n align-items: center;\n\n &:hover {\n ", "\n }\n ", "\n &:focus-visible {\n ", "\n }\n &:focus-visible::selection {\n ", "\n }\n "])), typographyTokens.typographyType[typographyType].hover.base, interactionProps && interactionProps.active && Ae(templateObject_3$k || (templateObject_3$k = __makeTemplateObject(["\n &:active {\n ", "\n }\n "], ["\n &:active {\n ", "\n }\n "])), interactionProps.active), typographyTokens.typographyType[typographyType].focus.base, typographyTokens.typographyType[typographyType].focus.base);
|
|
19636
19950
|
}, function (_a) {
|
|
19637
19951
|
var interactionProps = _a.interactionProps;
|
|
19638
|
-
return interactionProps && interactionProps.hover && Ae(templateObject_5$
|
|
19952
|
+
return interactionProps && interactionProps.hover && Ae(templateObject_5$d || (templateObject_5$d = __makeTemplateObject(["\n &:hover {\n ", "\n }\n "], ["\n &:hover {\n ", "\n }\n "])), interactionProps.hover);
|
|
19639
19953
|
}, function (_a) {
|
|
19640
19954
|
var interactionProps = _a.interactionProps;
|
|
19641
|
-
return interactionProps && interactionProps.active && Ae(templateObject_6$
|
|
19955
|
+
return interactionProps && interactionProps.active && Ae(templateObject_6$c || (templateObject_6$c = __makeTemplateObject(["\n &:active {\n ", "\n }\n "], ["\n &:active {\n ", "\n }\n "])), interactionProps.active);
|
|
19642
19956
|
}, function (_a) {
|
|
19643
19957
|
var withMargins = _a.withMargins,
|
|
19644
19958
|
typographyType = _a.typographyType;
|
|
19645
|
-
return withMargins && typographyType ? Ae(templateObject_7$
|
|
19959
|
+
return withMargins && typographyType ? Ae(templateObject_7$9 || (templateObject_7$9 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), typographyTokens.typographyType[typographyType].margins.base) : Ae(templateObject_8$6 || (templateObject_8$6 = __makeTemplateObject(["\n margin: 0;\n "], ["\n margin: 0;\n "])));
|
|
19646
19960
|
}, function (_a) {
|
|
19647
19961
|
var color = _a.color;
|
|
19648
|
-
return color && Ae(templateObject_9$
|
|
19962
|
+
return color && Ae(templateObject_9$6 || (templateObject_9$6 = __makeTemplateObject(["\n color: ", ";\n "], ["\n color: ", ";\n "])), getTextColor(color));
|
|
19649
19963
|
}, function (_a) {
|
|
19650
19964
|
var bold = _a.bold;
|
|
19651
|
-
return bold && Ae(templateObject_10$
|
|
19965
|
+
return bold && Ae(templateObject_10$4 || (templateObject_10$4 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), typographyTokens.style.bold.base);
|
|
19652
19966
|
}, function (_a) {
|
|
19653
19967
|
var italic = _a.italic;
|
|
19654
19968
|
return italic && Ae(templateObject_11$3 || (templateObject_11$3 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), typographyTokens.style.italic.base);
|
|
19655
19969
|
}, function (_a) {
|
|
19656
19970
|
var underline = _a.underline;
|
|
19657
|
-
return underline && Ae(templateObject_12$
|
|
19971
|
+
return underline && Ae(templateObject_12$2 || (templateObject_12$2 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), typographyTokens.style.underline.base);
|
|
19658
19972
|
});
|
|
19659
19973
|
var Typography = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
19660
19974
|
var _b = _a.typographyType,
|
|
@@ -19683,81 +19997,81 @@ var Typography = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
19683
19997
|
}, void 0) : '']
|
|
19684
19998
|
}), void 0);
|
|
19685
19999
|
});
|
|
19686
|
-
var templateObject_1$
|
|
20000
|
+
var templateObject_1$D, templateObject_2$s, templateObject_3$k, templateObject_4$g, templateObject_5$d, templateObject_6$c, templateObject_7$9, templateObject_8$6, templateObject_9$6, templateObject_10$4, templateObject_11$3, templateObject_12$2, templateObject_13$2;
|
|
19687
20001
|
|
|
19688
20002
|
var RadioButtonGroupContext = /*#__PURE__*/React__default.createContext(null);
|
|
19689
20003
|
var useRadioButtonGroup = function useRadioButtonGroup() {
|
|
19690
20004
|
return useContext(RadioButtonGroupContext);
|
|
19691
20005
|
};
|
|
19692
20006
|
|
|
19693
|
-
var Colors$
|
|
20007
|
+
var Colors$h = ddsBaseTokens.colors,
|
|
19694
20008
|
Border$7 = ddsBaseTokens.border,
|
|
19695
|
-
Spacing$
|
|
20009
|
+
Spacing$n = ddsBaseTokens.spacing,
|
|
19696
20010
|
FontPackages$e = ddsBaseTokens.fontPackages;
|
|
19697
20011
|
var radioButtonBase = {
|
|
19698
20012
|
border: '1px solid',
|
|
19699
|
-
borderColor: Colors$
|
|
19700
|
-
backgroundColor: Colors$
|
|
20013
|
+
borderColor: Colors$h.DdsColorNeutralsGray5,
|
|
20014
|
+
backgroundColor: Colors$h.DdsColorNeutralsWhite,
|
|
19701
20015
|
height: FontPackages$e.supportingStyle_inputtext_02.numbers.fontSizeNumber,
|
|
19702
20016
|
width: FontPackages$e.supportingStyle_inputtext_02.numbers.fontSizeNumber
|
|
19703
20017
|
};
|
|
19704
20018
|
var radioButtonHoverBase = {
|
|
19705
20019
|
border: '2px solid',
|
|
19706
|
-
backgroundColor: Colors$
|
|
19707
|
-
borderColor: Colors$
|
|
20020
|
+
backgroundColor: Colors$h.DdsColorInteractiveLightest,
|
|
20021
|
+
borderColor: Colors$h.DdsColorInteractiveBase
|
|
19708
20022
|
};
|
|
19709
20023
|
var radioButtonDisabledBase = {
|
|
19710
20024
|
border: '1px solid',
|
|
19711
|
-
borderColor: Colors$
|
|
19712
|
-
color: Colors$
|
|
20025
|
+
borderColor: Colors$h.DdsColorNeutralsGray5,
|
|
20026
|
+
color: Colors$h.DdsColorNeutralsGray6
|
|
19713
20027
|
};
|
|
19714
20028
|
var radioButtonReadOnlyBase = {
|
|
19715
20029
|
backgroundColor: 'transparent'
|
|
19716
20030
|
};
|
|
19717
20031
|
var radioButtonDangerBase = {
|
|
19718
20032
|
border: '2px solid',
|
|
19719
|
-
borderColor: Colors$
|
|
20033
|
+
borderColor: Colors$h.DdsColorDangerBase
|
|
19720
20034
|
};
|
|
19721
20035
|
var radioButtonDangerHoverBase = {
|
|
19722
20036
|
border: '2px solid',
|
|
19723
|
-
backgroundColor: Colors$
|
|
19724
|
-
borderColor: Colors$
|
|
20037
|
+
backgroundColor: Colors$h.DdsColorDangerLightest,
|
|
20038
|
+
borderColor: Colors$h.DdsColorDangerBase
|
|
19725
20039
|
};
|
|
19726
20040
|
var radioButtonCheckedBase = {
|
|
19727
20041
|
border: '2px solid',
|
|
19728
|
-
backgroundColor: Colors$
|
|
19729
|
-
borderColor: Colors$
|
|
20042
|
+
backgroundColor: Colors$h.DdsColorInteractiveBase,
|
|
20043
|
+
borderColor: Colors$h.DdsColorInteractiveBase
|
|
19730
20044
|
};
|
|
19731
20045
|
var radioButtonCheckedHoverBase = {
|
|
19732
20046
|
border: '2px solid',
|
|
19733
|
-
backgroundColor: Colors$
|
|
19734
|
-
borderColor: Colors$
|
|
20047
|
+
backgroundColor: Colors$h.DdsColorInteractiveDark,
|
|
20048
|
+
borderColor: Colors$h.DdsColorInteractiveDark
|
|
19735
20049
|
};
|
|
19736
20050
|
var radioButtonCheckedDisabledBase = {
|
|
19737
20051
|
border: '1px solid',
|
|
19738
|
-
borderColor: Colors$
|
|
19739
|
-
backgroundColor: Colors$
|
|
20052
|
+
borderColor: Colors$h.DdsColorNeutralsGray6,
|
|
20053
|
+
backgroundColor: Colors$h.DdsColorNeutralsGray6
|
|
19740
20054
|
};
|
|
19741
20055
|
var radioButtonCheckedReadOnlyBase = {
|
|
19742
20056
|
border: '2px solid',
|
|
19743
|
-
borderColor: Colors$
|
|
19744
|
-
backgroundColor: Colors$
|
|
20057
|
+
borderColor: Colors$h.DdsColorNeutralsGray6,
|
|
20058
|
+
backgroundColor: Colors$h.DdsColorNeutralsGray6
|
|
19745
20059
|
};
|
|
19746
20060
|
var checkmarkBase$1 = {
|
|
19747
|
-
backgroundColor: Colors$
|
|
19748
|
-
height: Spacing$
|
|
19749
|
-
width: Spacing$
|
|
19750
|
-
left: "calc(50% - " + Spacing$
|
|
19751
|
-
top: "calc(50% - " + Spacing$
|
|
20061
|
+
backgroundColor: Colors$h.DdsColorNeutralsWhite,
|
|
20062
|
+
height: Spacing$n.SizesDdsSpacingLocalX05,
|
|
20063
|
+
width: Spacing$n.SizesDdsSpacingLocalX05,
|
|
20064
|
+
left: "calc(50% - " + Spacing$n.SizesDdsSpacingLocalX05NumberPx / 2 + "px)",
|
|
20065
|
+
top: "calc(50% - " + Spacing$n.SizesDdsSpacingLocalX05NumberPx / 2 + "px)"
|
|
19752
20066
|
};
|
|
19753
20067
|
var containerBase$4 = {
|
|
19754
|
-
marginRight: Spacing$
|
|
19755
|
-
padding: Spacing$
|
|
20068
|
+
marginRight: Spacing$n.SizesDdsSpacingLocalX075,
|
|
20069
|
+
padding: Spacing$n.SizesDdsSpacingLocalX025 + " " + Spacing$n.SizesDdsSpacingLocalX025 + " " + Spacing$n.SizesDdsSpacingLocalX025 + " " + (20 + Spacing$n.SizesDdsSpacingLocalX075NumberPx) + "px"
|
|
19756
20070
|
};
|
|
19757
20071
|
var radioButtonTokens = {
|
|
19758
20072
|
radioButton: {
|
|
19759
20073
|
base: radioButtonBase,
|
|
19760
|
-
spaceLeft: Spacing$
|
|
20074
|
+
spaceLeft: Spacing$n.SizesDdsSpacingLocalX025,
|
|
19761
20075
|
hover: {
|
|
19762
20076
|
base: radioButtonHoverBase
|
|
19763
20077
|
},
|
|
@@ -19792,7 +20106,7 @@ var radioButtonTokens = {
|
|
|
19792
20106
|
container: {
|
|
19793
20107
|
base: containerBase$4,
|
|
19794
20108
|
focusOutline: {
|
|
19795
|
-
color: Colors$
|
|
20109
|
+
color: Colors$h.DdsColorWarningDarker,
|
|
19796
20110
|
width: Border$7.BordersDdsBorderStyle1StrokeWeight
|
|
19797
20111
|
}
|
|
19798
20112
|
}
|
|
@@ -19801,7 +20115,7 @@ var radioButtonTokens = {
|
|
|
19801
20115
|
var CustomRadioButton = styled.span.withConfig({
|
|
19802
20116
|
displayName: "RadioButtonstyles__CustomRadioButton",
|
|
19803
20117
|
componentId: "sc-iwypha-0"
|
|
19804
|
-
})(templateObject_1$
|
|
20118
|
+
})(templateObject_1$C || (templateObject_1$C = __makeTemplateObject(["\n position: absolute;\n box-sizing: border-box;\n border-radius: 50%;\n vertical-align: middle;\n ", "\n left: ", ";\n &:after {\n content: '';\n position: absolute;\n display: none;\n }\n"], ["\n position: absolute;\n box-sizing: border-box;\n border-radius: 50%;\n vertical-align: middle;\n ", "\n left: ", ";\n &:after {\n content: '';\n position: absolute;\n display: none;\n }\n"])), radioButtonTokens.radioButton.base, radioButtonTokens.radioButton.spaceLeft);
|
|
19805
20119
|
var Input$4 = styled.input.attrs(function (_a) {
|
|
19806
20120
|
var _b = _a.type,
|
|
19807
20121
|
type = _b === void 0 ? 'radio' : _b;
|
|
@@ -19811,23 +20125,23 @@ var Input$4 = styled.input.attrs(function (_a) {
|
|
|
19811
20125
|
}).withConfig({
|
|
19812
20126
|
displayName: "RadioButtonstyles__Input",
|
|
19813
20127
|
componentId: "sc-iwypha-1"
|
|
19814
|
-
})(templateObject_2$
|
|
20128
|
+
})(templateObject_2$r || (templateObject_2$r = __makeTemplateObject(["\n clip: rect(0 0 0 0);\n position: absolute;\n height: 0;\n width: 0;\n margin: 0;\n"], ["\n clip: rect(0 0 0 0);\n position: absolute;\n height: 0;\n width: 0;\n margin: 0;\n"])));
|
|
19815
20129
|
var Container$9 = styled.label.withConfig({
|
|
19816
20130
|
displayName: "RadioButtonstyles__Container",
|
|
19817
20131
|
componentId: "sc-iwypha-2"
|
|
19818
|
-
})(templateObject_6$
|
|
20132
|
+
})(templateObject_6$b || (templateObject_6$b = __makeTemplateObject(["\n position: relative;\n display: block;\n cursor: pointer;\n user-select: none;\n width: fit-content;\n display: flex;\n align-items: center;\n ", "\n\n input:checked ~ ", ":after {\n display: block;\n }\n\n input ~ ", " {\n transition: box-shadow 0.2s, background-color 0.2s, border 0.2s;\n }\n\n input:checked ~ ", " {\n ", "\n }\n\n &:hover input:enabled ~ ", " {\n ", "\n }\n &:hover input:checked:enabled ~ ", " {\n ", "\n }\n\n &:focus-within {\n outline: ", " solid\n ", ";\n }\n\n ", "\n\n ", "\n\n ", "\n\n ", ":after {\n border-radius: 50%;\n ", "\n }\n"], ["\n position: relative;\n display: block;\n cursor: pointer;\n user-select: none;\n width: fit-content;\n display: flex;\n align-items: center;\n ", "\n\n input:checked ~ ", ":after {\n display: block;\n }\n\n input ~ ", " {\n transition: box-shadow 0.2s, background-color 0.2s, border 0.2s;\n }\n\n input:checked ~ ", " {\n ", "\n }\n\n &:hover input:enabled ~ ", " {\n ", "\n }\n &:hover input:checked:enabled ~ ", " {\n ", "\n }\n\n &:focus-within {\n outline: ", " solid\n ", ";\n }\n\n ", "\n\n ", "\n\n ", "\n\n ", ":after {\n border-radius: 50%;\n ", "\n }\n"])), radioButtonTokens.container.base, CustomRadioButton, CustomRadioButton, CustomRadioButton, radioButtonTokens.radioButton.checked.base, CustomRadioButton, radioButtonTokens.radioButton.hover.base, CustomRadioButton, radioButtonTokens.radioButton.checked.hover.base, radioButtonTokens.container.focusOutline.width, radioButtonTokens.container.focusOutline.color, function (_a) {
|
|
19819
20133
|
var error = _a.error;
|
|
19820
|
-
return error && Ae(templateObject_3$
|
|
20134
|
+
return error && Ae(templateObject_3$j || (templateObject_3$j = __makeTemplateObject(["\n input ~ ", " {\n ", "\n }\n &:hover input:enabled ~ ", " {\n ", "\n }\n "], ["\n input ~ ", " {\n ", "\n }\n &:hover input:enabled ~ ", " {\n ", "\n }\n "])), CustomRadioButton, radioButtonTokens.radioButton.danger.base, CustomRadioButton, radioButtonTokens.radioButton.danger.hover.base);
|
|
19821
20135
|
}, function (_a) {
|
|
19822
20136
|
var disabled = _a.disabled;
|
|
19823
|
-
return disabled && Ae(templateObject_4$
|
|
20137
|
+
return disabled && Ae(templateObject_4$f || (templateObject_4$f = __makeTemplateObject(["\n cursor: not-allowed;\n input ~ ", " {\n ", "\n }\n input:checked ~ ", " {\n ", "\n }\n "], ["\n cursor: not-allowed;\n input ~ ", " {\n ", "\n }\n input:checked ~ ", " {\n ", "\n }\n "])), CustomRadioButton, radioButtonTokens.radioButton.disabled.base, CustomRadioButton, radioButtonTokens.radioButton.checked.disabled.base);
|
|
19824
20138
|
}, function (_a) {
|
|
19825
20139
|
var readOnly = _a.readOnly;
|
|
19826
|
-
return readOnly && Ae(templateObject_5$
|
|
20140
|
+
return readOnly && Ae(templateObject_5$c || (templateObject_5$c = __makeTemplateObject(["\n cursor: default;\n input ~ ", " {\n ", "\n }\n input:checked ~ ", " {\n ", "\n }\n "], ["\n cursor: default;\n input ~ ", " {\n ", "\n }\n input:checked ~ ", " {\n ", "\n }\n "])), CustomRadioButton, radioButtonTokens.radioButton.readOnly.base, CustomRadioButton, radioButtonTokens.radioButton.checked.readOnly.base);
|
|
19827
20141
|
}, CustomRadioButton, radioButtonTokens.checkmark.base);
|
|
19828
|
-
var templateObject_1$
|
|
20142
|
+
var templateObject_1$C, templateObject_2$r, templateObject_3$j, templateObject_4$f, templateObject_5$c, templateObject_6$b;
|
|
19829
20143
|
|
|
19830
|
-
var nextUniqueId$
|
|
20144
|
+
var nextUniqueId$6 = 0;
|
|
19831
20145
|
|
|
19832
20146
|
var isValueEqualToGroupValueOrFalsy = function isValueEqualToGroupValueOrFalsy(value, group) {
|
|
19833
20147
|
if (typeof value !== 'undefined' && value !== null && group) {
|
|
@@ -19857,7 +20171,7 @@ var RadioButton = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
19857
20171
|
onChange = _a.onChange,
|
|
19858
20172
|
rest = __rest(_a, ["id", "name", "label", "disabled", "readOnly", "error", "style", "checked", "value", "className", "children", "required", "onChange"]);
|
|
19859
20173
|
|
|
19860
|
-
var uniqueId = useState(id !== null && id !== void 0 ? id : "radioButton-" + nextUniqueId$
|
|
20174
|
+
var uniqueId = useState(id !== null && id !== void 0 ? id : "radioButton-" + nextUniqueId$6++)[0];
|
|
19861
20175
|
var radioButtonGroup = useRadioButtonGroup();
|
|
19862
20176
|
|
|
19863
20177
|
var handleChange = function handleChange(event) {
|
|
@@ -19898,14 +20212,14 @@ var RadioButton = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
19898
20212
|
var MarkerWrapper = styled.span.withConfig({
|
|
19899
20213
|
displayName: "RequiredMarker__MarkerWrapper",
|
|
19900
20214
|
componentId: "sc-1p5sjqf-0"
|
|
19901
|
-
})(templateObject_1$
|
|
20215
|
+
})(templateObject_1$B || (templateObject_1$B = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), ddsBaseTokens.colors.DdsColorDangerBase);
|
|
19902
20216
|
|
|
19903
20217
|
function RequiredMarker() {
|
|
19904
20218
|
return jsxRuntime.jsx(MarkerWrapper, {
|
|
19905
20219
|
children: "*"
|
|
19906
20220
|
}, void 0);
|
|
19907
20221
|
}
|
|
19908
|
-
var templateObject_1$
|
|
20222
|
+
var templateObject_1$B;
|
|
19909
20223
|
|
|
19910
20224
|
var ReportProblemOutlined = createCommonjsModule(function (module, exports) {
|
|
19911
20225
|
|
|
@@ -19931,21 +20245,21 @@ exports.default = _default;
|
|
|
19931
20245
|
|
|
19932
20246
|
var DangerOutlinedIcon = /*@__PURE__*/getDefaultExportFromCjs(ReportProblemOutlined);
|
|
19933
20247
|
|
|
19934
|
-
var Colors$
|
|
19935
|
-
Spacing$
|
|
20248
|
+
var Colors$g = ddsBaseTokens.colors,
|
|
20249
|
+
Spacing$m = ddsBaseTokens.spacing;
|
|
19936
20250
|
var base$8 = {
|
|
19937
|
-
padding: Spacing$
|
|
20251
|
+
padding: Spacing$m.SizesDdsSpacingLocalX025 + " " + Spacing$m.SizesDdsSpacingLocalX05
|
|
19938
20252
|
};
|
|
19939
20253
|
var defaultMaxWidth = '100%';
|
|
19940
20254
|
var tipBase = {
|
|
19941
|
-
backgroundColor: Colors$
|
|
20255
|
+
backgroundColor: Colors$g.DdsColorNeutralsWhite
|
|
19942
20256
|
};
|
|
19943
20257
|
var errorBase = {
|
|
19944
|
-
color: Colors$
|
|
19945
|
-
backgroundColor: Colors$
|
|
20258
|
+
color: Colors$g.DdsColorDangerBase,
|
|
20259
|
+
backgroundColor: Colors$g.DdsColorDangerLightest
|
|
19946
20260
|
};
|
|
19947
20261
|
var inputMessageTokens = {
|
|
19948
|
-
padding: Spacing$
|
|
20262
|
+
padding: Spacing$m.SizesDdsSpacingLocalX025 + " " + Spacing$m.SizesDdsSpacingLocalX05,
|
|
19949
20263
|
base: base$8,
|
|
19950
20264
|
defaultMaxWidth: defaultMaxWidth,
|
|
19951
20265
|
tip: {
|
|
@@ -19955,16 +20269,16 @@ var inputMessageTokens = {
|
|
|
19955
20269
|
base: errorBase
|
|
19956
20270
|
},
|
|
19957
20271
|
icon: {
|
|
19958
|
-
spaceRight: Spacing$
|
|
20272
|
+
spaceRight: Spacing$m.SizesDdsSpacingLocalX05
|
|
19959
20273
|
}
|
|
19960
20274
|
};
|
|
19961
20275
|
|
|
19962
20276
|
var InputMessageWrapper = styled.div.withConfig({
|
|
19963
20277
|
displayName: "InputMessage__InputMessageWrapper",
|
|
19964
20278
|
componentId: "sc-n5r6yv-0"
|
|
19965
|
-
})(templateObject_2$
|
|
20279
|
+
})(templateObject_2$q || (templateObject_2$q = __makeTemplateObject(["\n display: flex;\n align-items: center;\n width: fit-content;\n word-break: break-word;\n ", "\n ", "\n max-width: ", ";\n\n svg {\n margin-right: ", ";\n position: relative;\n }\n"], ["\n display: flex;\n align-items: center;\n width: fit-content;\n word-break: break-word;\n ", "\n ", "\n max-width: ", ";\n\n svg {\n margin-right: ", ";\n position: relative;\n }\n"])), inputMessageTokens.base, function (_a) {
|
|
19966
20280
|
var messageType = _a.messageType;
|
|
19967
|
-
return messageType && Ae(templateObject_1$
|
|
20281
|
+
return messageType && Ae(templateObject_1$A || (templateObject_1$A = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), inputMessageTokens[messageType].base);
|
|
19968
20282
|
}, function (_a) {
|
|
19969
20283
|
var maxWidth = _a.maxWidth;
|
|
19970
20284
|
return maxWidth;
|
|
@@ -19994,30 +20308,30 @@ function InputMessage(_a) {
|
|
|
19994
20308
|
}), void 0)]
|
|
19995
20309
|
}), void 0);
|
|
19996
20310
|
}
|
|
19997
|
-
var templateObject_1$
|
|
20311
|
+
var templateObject_1$A, templateObject_2$q;
|
|
19998
20312
|
|
|
19999
|
-
var Spacing$
|
|
20313
|
+
var Spacing$l = ddsBaseTokens.spacing;
|
|
20000
20314
|
var radioButtonGroupTokens = {
|
|
20001
20315
|
label: {
|
|
20002
|
-
spaceLeft: Spacing$
|
|
20316
|
+
spaceLeft: Spacing$l.SizesDdsSpacingLocalX025
|
|
20003
20317
|
}
|
|
20004
20318
|
};
|
|
20005
20319
|
|
|
20006
20320
|
var Container$8 = styled.div.withConfig({
|
|
20007
20321
|
displayName: "RadioButtonGroup__Container",
|
|
20008
20322
|
componentId: "sc-1xsll60-0"
|
|
20009
|
-
})(templateObject_1$
|
|
20323
|
+
})(templateObject_1$z || (templateObject_1$z = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"], ["\n display: flex;\n flex-direction: column;\n"])));
|
|
20010
20324
|
var GroupContainer$1 = styled.div.withConfig({
|
|
20011
20325
|
displayName: "RadioButtonGroup__GroupContainer",
|
|
20012
20326
|
componentId: "sc-1xsll60-1"
|
|
20013
|
-
})(templateObject_2$
|
|
20327
|
+
})(templateObject_2$p || (templateObject_2$p = __makeTemplateObject(["\n display: flex;\n flex-direction: ", ";\n"], ["\n display: flex;\n flex-direction: ", ";\n"])), function (_a) {
|
|
20014
20328
|
var direction = _a.direction;
|
|
20015
20329
|
return direction !== null && direction !== void 0 ? direction : 'row';
|
|
20016
20330
|
});
|
|
20017
20331
|
var Label$4 = styled(Typography).withConfig({
|
|
20018
20332
|
displayName: "RadioButtonGroup__Label",
|
|
20019
20333
|
componentId: "sc-1xsll60-2"
|
|
20020
|
-
})(templateObject_3$
|
|
20334
|
+
})(templateObject_3$i || (templateObject_3$i = __makeTemplateObject(["\n padding-left: ", ";\n"], ["\n padding-left: ", ";\n"])), radioButtonGroupTokens.label.spaceLeft);
|
|
20021
20335
|
var nextUniqueGroupId$1 = 0;
|
|
20022
20336
|
var RadioButtonGroup = function RadioButtonGroup(_a) {
|
|
20023
20337
|
var name = _a.name,
|
|
@@ -20091,62 +20405,62 @@ var RadioButtonGroup = function RadioButtonGroup(_a) {
|
|
|
20091
20405
|
}, void 0) : '']
|
|
20092
20406
|
}), void 0);
|
|
20093
20407
|
};
|
|
20094
|
-
var templateObject_1$
|
|
20408
|
+
var templateObject_1$z, templateObject_2$p, templateObject_3$i;
|
|
20095
20409
|
|
|
20096
|
-
var Colors$
|
|
20410
|
+
var Colors$f = ddsBaseTokens.colors,
|
|
20097
20411
|
Border$6 = ddsBaseTokens.border,
|
|
20098
|
-
Spacing$
|
|
20412
|
+
Spacing$k = ddsBaseTokens.spacing,
|
|
20099
20413
|
FontPackages$d = ddsBaseTokens.fontPackages,
|
|
20100
20414
|
BorderRadius$3 = ddsBaseTokens.borderRadius;
|
|
20101
20415
|
var checkboxBase = {
|
|
20102
20416
|
border: '1px solid',
|
|
20103
|
-
backgroundColor: Colors$
|
|
20104
|
-
borderColor: Colors$
|
|
20417
|
+
backgroundColor: Colors$f.DdsColorNeutralsWhite,
|
|
20418
|
+
borderColor: Colors$f.DdsColorNeutralsGray5,
|
|
20105
20419
|
borderRadius: BorderRadius$3.RadiiDdsBorderRadius1Radius,
|
|
20106
20420
|
height: FontPackages$d.supportingStyle_inputtext_02.base.fontSize,
|
|
20107
20421
|
width: FontPackages$d.supportingStyle_inputtext_02.base.fontSize
|
|
20108
20422
|
};
|
|
20109
20423
|
var checkboxCheckedBase = {
|
|
20110
20424
|
border: '2px solid',
|
|
20111
|
-
borderColor: Colors$
|
|
20112
|
-
backgroundColor: Colors$
|
|
20425
|
+
borderColor: Colors$f.DdsColorInteractiveBase,
|
|
20426
|
+
backgroundColor: Colors$f.DdsColorInteractiveBase
|
|
20113
20427
|
};
|
|
20114
20428
|
var checkboxDisabledBase = {
|
|
20115
20429
|
border: '1px solid',
|
|
20116
|
-
borderColor: Colors$
|
|
20117
|
-
color: Colors$
|
|
20430
|
+
borderColor: Colors$f.DdsColorNeutralsGray5,
|
|
20431
|
+
color: Colors$f.DdsColorNeutralsGray6
|
|
20118
20432
|
};
|
|
20119
20433
|
var checkboxCheckedDisabledBase = {
|
|
20120
20434
|
border: '2px solid',
|
|
20121
|
-
borderColor: Colors$
|
|
20122
|
-
backgroundColor: Colors$
|
|
20435
|
+
borderColor: Colors$f.DdsColorNeutralsGray6,
|
|
20436
|
+
backgroundColor: Colors$f.DdsColorNeutralsGray6
|
|
20123
20437
|
};
|
|
20124
20438
|
var checkboxReadOnlyBase = {
|
|
20125
20439
|
backgroundColor: 'transparent'
|
|
20126
20440
|
};
|
|
20127
20441
|
var checkboxCheckedReadOnlyBase = {
|
|
20128
20442
|
border: '2px solid',
|
|
20129
|
-
borderColor: Colors$
|
|
20130
|
-
backgroundColor: Colors$
|
|
20443
|
+
borderColor: Colors$f.DdsColorNeutralsGray6,
|
|
20444
|
+
backgroundColor: Colors$f.DdsColorNeutralsGray6
|
|
20131
20445
|
};
|
|
20132
20446
|
var checkboxHoverBase = {
|
|
20133
|
-
backgroundColor: Colors$
|
|
20447
|
+
backgroundColor: Colors$f.DdsColorInteractiveLightest,
|
|
20134
20448
|
border: '2px solid',
|
|
20135
|
-
borderColor: Colors$
|
|
20449
|
+
borderColor: Colors$f.DdsColorInteractiveBase
|
|
20136
20450
|
};
|
|
20137
20451
|
var checkboxCheckedHoverBase = {
|
|
20138
|
-
backgroundColor: Colors$
|
|
20452
|
+
backgroundColor: Colors$f.DdsColorInteractiveDark,
|
|
20139
20453
|
border: '2px solid',
|
|
20140
|
-
borderColor: Colors$
|
|
20454
|
+
borderColor: Colors$f.DdsColorInteractiveDark
|
|
20141
20455
|
};
|
|
20142
20456
|
var checkboxDangerBase = {
|
|
20143
20457
|
border: '2px solid',
|
|
20144
|
-
borderColor: Colors$
|
|
20458
|
+
borderColor: Colors$f.DdsColorDangerBase
|
|
20145
20459
|
};
|
|
20146
20460
|
var checkboxDangerHoverBase = {
|
|
20147
|
-
backgroundColor: Colors$
|
|
20461
|
+
backgroundColor: Colors$f.DdsColorDangerLightest,
|
|
20148
20462
|
border: '2px solid',
|
|
20149
|
-
borderColor: Colors$
|
|
20463
|
+
borderColor: Colors$f.DdsColorDangerBase
|
|
20150
20464
|
};
|
|
20151
20465
|
var checkmarkBase = {
|
|
20152
20466
|
borderWidth: '0 1px 1px 0',
|
|
@@ -20163,17 +20477,17 @@ var checkmarkIndeterminateBase = {
|
|
|
20163
20477
|
var containerBase$3 = __assign({}, FontPackages$d.body_sans_02.base);
|
|
20164
20478
|
|
|
20165
20479
|
var containerWithLabelBase$1 = __assign(__assign({}, FontPackages$d.body_sans_02.base), {
|
|
20166
|
-
marginRight: Spacing$
|
|
20167
|
-
padding: "0 " + Spacing$
|
|
20480
|
+
marginRight: Spacing$k.SizesDdsSpacingLocalX075,
|
|
20481
|
+
padding: "0 " + Spacing$k.SizesDdsSpacingLocalX025 + " 0 " + (FontPackages$d.supportingStyle_inputtext_02.numbers.fontSizeNumber + Spacing$k.SizesDdsSpacingLocalX075NumberPx) + "px"
|
|
20168
20482
|
});
|
|
20169
20483
|
|
|
20170
20484
|
var containerNoLabelBase$1 = {
|
|
20171
|
-
padding: Spacing$
|
|
20485
|
+
padding: Spacing$k.SizesDdsSpacingLocalX075 + " " + Spacing$k.SizesDdsSpacingLocalX0125 + " " + Spacing$k.SizesDdsSpacingLocalX075 + " " + Spacing$k.SizesDdsSpacingLocalX15
|
|
20172
20486
|
};
|
|
20173
20487
|
var checkboxTokens = {
|
|
20174
20488
|
checkbox: {
|
|
20175
20489
|
base: checkboxBase,
|
|
20176
|
-
spaceLeft: Spacing$
|
|
20490
|
+
spaceLeft: Spacing$k.SizesDdsSpacingLocalX025,
|
|
20177
20491
|
hover: {
|
|
20178
20492
|
base: checkboxHoverBase
|
|
20179
20493
|
},
|
|
@@ -20216,7 +20530,7 @@ var checkboxTokens = {
|
|
|
20216
20530
|
},
|
|
20217
20531
|
checkmark: {
|
|
20218
20532
|
base: checkmarkBase,
|
|
20219
|
-
color: Colors$
|
|
20533
|
+
color: Colors$f.DdsColorNeutralsWhite,
|
|
20220
20534
|
indeterminate: {
|
|
20221
20535
|
base: checkmarkIndeterminateBase
|
|
20222
20536
|
}
|
|
@@ -20224,7 +20538,7 @@ var checkboxTokens = {
|
|
|
20224
20538
|
container: {
|
|
20225
20539
|
base: containerBase$3,
|
|
20226
20540
|
focusOutline: {
|
|
20227
|
-
color: Colors$
|
|
20541
|
+
color: Colors$f.DdsColorWarningDarker,
|
|
20228
20542
|
width: Border$6.BordersDdsBorderStyle1StrokeWeight
|
|
20229
20543
|
},
|
|
20230
20544
|
withLabel: {
|
|
@@ -20239,7 +20553,7 @@ var checkboxTokens = {
|
|
|
20239
20553
|
var CustomCheckbox = styled.span.withConfig({
|
|
20240
20554
|
displayName: "Checkboxstyles__CustomCheckbox",
|
|
20241
20555
|
componentId: "sc-17q1ubf-0"
|
|
20242
|
-
})(templateObject_1$
|
|
20556
|
+
})(templateObject_1$y || (templateObject_1$y = __makeTemplateObject(["\n position: absolute;\n ", "\n left: ", ";\n box-sizing: border-box;\n &:after {\n content: '';\n position: absolute;\n display: none;\n }\n"], ["\n position: absolute;\n ", "\n left: ", ";\n box-sizing: border-box;\n &:after {\n content: '';\n position: absolute;\n display: none;\n }\n"])), checkboxTokens.checkbox.base, checkboxTokens.checkbox.spaceLeft);
|
|
20243
20557
|
var Input$3 = styled.input.attrs(function (_a) {
|
|
20244
20558
|
var _b = _a.type,
|
|
20245
20559
|
type = _b === void 0 ? 'checkbox' : _b;
|
|
@@ -20249,34 +20563,34 @@ var Input$3 = styled.input.attrs(function (_a) {
|
|
|
20249
20563
|
}).withConfig({
|
|
20250
20564
|
displayName: "Checkboxstyles__Input",
|
|
20251
20565
|
componentId: "sc-17q1ubf-1"
|
|
20252
|
-
})(templateObject_2$
|
|
20566
|
+
})(templateObject_2$o || (templateObject_2$o = __makeTemplateObject(["\n clip: rect(0 0 0 0);\n position: absolute;\n height: 0;\n width: 0;\n margin: 0;\n"], ["\n clip: rect(0 0 0 0);\n position: absolute;\n height: 0;\n width: 0;\n margin: 0;\n"])));
|
|
20253
20567
|
var Container$7 = styled.label.withConfig({
|
|
20254
20568
|
displayName: "Checkboxstyles__Container",
|
|
20255
20569
|
componentId: "sc-17q1ubf-2"
|
|
20256
|
-
})(templateObject_13$
|
|
20570
|
+
})(templateObject_13$1 || (templateObject_13$1 = __makeTemplateObject(["\n position: relative;\n display: flex;\n align-items: center;\n cursor: pointer;\n user-select: none;\n width: fit-content;\n ", "\n ", "\n\n input ~ ", " {\n transition: box-shadow 0.2s, background-color 0.2s, border 0.2s;\n }\n\n input:checked ~ ", ":after {\n display: block;\n }\n\n input:checked ~ ", " {\n ", "\n }\n\n &:hover input:enabled ~ ", " {\n ", "\n }\n &:hover input:checked:enabled ~ ", " {\n ", "\n }\n &:focus-within {\n outline: ", " solid\n ", ";\n }\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", ":after {\n border: solid ", ";\n ", "\n }\n"], ["\n position: relative;\n display: flex;\n align-items: center;\n cursor: pointer;\n user-select: none;\n width: fit-content;\n ", "\n ", "\n\n input ~ ", " {\n transition: box-shadow 0.2s, background-color 0.2s, border 0.2s;\n }\n\n input:checked ~ ", ":after {\n display: block;\n }\n\n input:checked ~ ", " {\n ", "\n }\n\n &:hover input:enabled ~ ", " {\n ", "\n }\n &:hover input:checked:enabled ~ ", " {\n ", "\n }\n &:focus-within {\n outline: ", " solid\n ", ";\n }\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", ":after {\n border: solid ", ";\n ", "\n }\n"])), checkboxTokens.container.base, function (_a) {
|
|
20257
20571
|
var label = _a.label;
|
|
20258
|
-
return label ? Ae(templateObject_3$
|
|
20572
|
+
return label ? Ae(templateObject_3$h || (templateObject_3$h = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), checkboxTokens.container.withLabel.base) : Ae(templateObject_4$e || (templateObject_4$e = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), checkboxTokens.container.noLabel.base);
|
|
20259
20573
|
}, CustomCheckbox, CustomCheckbox, CustomCheckbox, checkboxTokens.checkbox.checked.base, CustomCheckbox, checkboxTokens.checkbox.hover.base, CustomCheckbox, checkboxTokens.checkbox.checked.hover.base, checkboxTokens.container.focusOutline.width, checkboxTokens.container.focusOutline.color, function (_a) {
|
|
20260
20574
|
var error = _a.error;
|
|
20261
|
-
return error && Ae(templateObject_5$
|
|
20575
|
+
return error && Ae(templateObject_5$b || (templateObject_5$b = __makeTemplateObject(["\n input ~ ", " {\n ", "\n }\n &:hover input:enabled ~ ", " {\n ", "\n }\n "], ["\n input ~ ", " {\n ", "\n }\n &:hover input:enabled ~ ", " {\n ", "\n }\n "])), CustomCheckbox, checkboxTokens.checkbox.danger.base, CustomCheckbox, checkboxTokens.checkbox.danger.hover.base);
|
|
20262
20576
|
}, function (_a) {
|
|
20263
20577
|
var indeterminate = _a.indeterminate;
|
|
20264
|
-
return indeterminate && Ae(templateObject_6$
|
|
20578
|
+
return indeterminate && Ae(templateObject_6$a || (templateObject_6$a = __makeTemplateObject(["\n input:enabled ~ ", " {\n ", "\n }\n input ~ ", ":after {\n display: block;\n }\n &:hover input:enabled ~ ", " {\n ", "\n }\n "], ["\n input:enabled ~ ", " {\n ", "\n }\n input ~ ", ":after {\n display: block;\n }\n &:hover input:enabled ~ ", " {\n ", "\n }\n "])), CustomCheckbox, checkboxTokens.checkbox.indeterminate.base, CustomCheckbox, CustomCheckbox, checkboxTokens.checkbox.indeterminate.hover.base);
|
|
20265
20579
|
}, function (_a) {
|
|
20266
20580
|
var disabled = _a.disabled,
|
|
20267
20581
|
indeterminate = _a.indeterminate;
|
|
20268
|
-
return disabled && Ae(templateObject_8$
|
|
20582
|
+
return disabled && Ae(templateObject_8$5 || (templateObject_8$5 = __makeTemplateObject(["\n cursor: not-allowed;\n input ~ ", " {\n ", "\n }\n input:checked ~ ", " {\n ", "\n }\n ", "\n "], ["\n cursor: not-allowed;\n input ~ ", " {\n ", "\n }\n input:checked ~ ", " {\n ", "\n }\n ", "\n "])), CustomCheckbox, checkboxTokens.checkbox.disabled.base, CustomCheckbox, checkboxTokens.checkbox.checked.disabled.base, indeterminate && Ae(templateObject_7$8 || (templateObject_7$8 = __makeTemplateObject(["\n input ~ ", " {\n ", "\n }\n "], ["\n input ~ ", " {\n ", "\n }\n "])), CustomCheckbox, checkboxTokens.checkbox.indeterminate.disabled.base));
|
|
20269
20583
|
}, function (_a) {
|
|
20270
20584
|
var readOnly = _a.readOnly,
|
|
20271
20585
|
indeterminate = _a.indeterminate;
|
|
20272
|
-
return readOnly && Ae(templateObject_10$
|
|
20586
|
+
return readOnly && Ae(templateObject_10$3 || (templateObject_10$3 = __makeTemplateObject(["\n cursor: default;\n input ~ ", " {\n ", "\n }\n input:checked ~ ", " {\n ", "\n }\n ", "\n "], ["\n cursor: default;\n input ~ ", " {\n ", "\n }\n input:checked ~ ", " {\n ", "\n }\n ", "\n "])), CustomCheckbox, checkboxTokens.checkbox.readOnly.base, CustomCheckbox, checkboxTokens.checkbox.checked.readOnly.base, indeterminate && Ae(templateObject_9$5 || (templateObject_9$5 = __makeTemplateObject(["\n input ~ ", " {\n ", "\n }\n "], ["\n input ~ ", " {\n ", "\n }\n "])), CustomCheckbox, checkboxTokens.checkbox.indeterminate.readOnly.base));
|
|
20273
20587
|
}, CustomCheckbox, checkboxTokens.checkmark.color, function (_a) {
|
|
20274
20588
|
var indeterminate = _a.indeterminate;
|
|
20275
|
-
return indeterminate ? Ae(templateObject_11$2 || (templateObject_11$2 = __makeTemplateObject(["\n left: 25%;\n top: 50%;\n width: 50%;\n height: 1px;\n ", "\n "], ["\n left: 25%;\n top: 50%;\n width: 50%;\n height: 1px;\n ", "\n "])), checkboxTokens.checkmark.indeterminate.base) : Ae(templateObject_12$
|
|
20589
|
+
return indeterminate ? Ae(templateObject_11$2 || (templateObject_11$2 = __makeTemplateObject(["\n left: 25%;\n top: 50%;\n width: 50%;\n height: 1px;\n ", "\n "], ["\n left: 25%;\n top: 50%;\n width: 50%;\n height: 1px;\n ", "\n "])), checkboxTokens.checkmark.indeterminate.base) : Ae(templateObject_12$1 || (templateObject_12$1 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), checkboxTokens.checkmark.base);
|
|
20276
20590
|
});
|
|
20277
|
-
var templateObject_1$
|
|
20591
|
+
var templateObject_1$y, templateObject_2$o, templateObject_3$h, templateObject_4$e, templateObject_5$b, templateObject_6$a, templateObject_7$8, templateObject_8$5, templateObject_9$5, templateObject_10$3, templateObject_11$2, templateObject_12$1, templateObject_13$1;
|
|
20278
20592
|
|
|
20279
|
-
var nextUniqueId$
|
|
20593
|
+
var nextUniqueId$5 = 0;
|
|
20280
20594
|
var Checkbox = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
20281
20595
|
var id = _a.id,
|
|
20282
20596
|
name = _a.name,
|
|
@@ -20289,7 +20603,7 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
20289
20603
|
style = _a.style,
|
|
20290
20604
|
rest = __rest(_a, ["id", "name", "label", "error", "disabled", "readOnly", "indeterminate", "className", "style"]);
|
|
20291
20605
|
|
|
20292
|
-
var uniqueId = useState(id !== null && id !== void 0 ? id : "checkbox-" + nextUniqueId$
|
|
20606
|
+
var uniqueId = useState(id !== null && id !== void 0 ? id : "checkbox-" + nextUniqueId$5++)[0];
|
|
20293
20607
|
var containerProps = {
|
|
20294
20608
|
error: error,
|
|
20295
20609
|
disabled: disabled,
|
|
@@ -20321,28 +20635,28 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
20321
20635
|
}), void 0);
|
|
20322
20636
|
});
|
|
20323
20637
|
|
|
20324
|
-
var Spacing$
|
|
20638
|
+
var Spacing$j = ddsBaseTokens.spacing;
|
|
20325
20639
|
var checkboxGroupTokens = {
|
|
20326
20640
|
label: {
|
|
20327
|
-
spaceLeft: Spacing$
|
|
20641
|
+
spaceLeft: Spacing$j.SizesDdsSpacingLocalX025
|
|
20328
20642
|
}
|
|
20329
20643
|
};
|
|
20330
20644
|
|
|
20331
20645
|
var Container$6 = styled.div.withConfig({
|
|
20332
20646
|
displayName: "CheckboxGroup__Container",
|
|
20333
20647
|
componentId: "sc-uixbzg-0"
|
|
20334
|
-
})(templateObject_1$
|
|
20648
|
+
})(templateObject_1$x || (templateObject_1$x = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"], ["\n display: flex;\n flex-direction: column;\n"])));
|
|
20335
20649
|
var GroupContainer = styled.div.withConfig({
|
|
20336
20650
|
displayName: "CheckboxGroup__GroupContainer",
|
|
20337
20651
|
componentId: "sc-uixbzg-1"
|
|
20338
|
-
})(templateObject_2$
|
|
20652
|
+
})(templateObject_2$n || (templateObject_2$n = __makeTemplateObject(["\n display: flex;\n flex-direction: ", ";\n"], ["\n display: flex;\n flex-direction: ", ";\n"])), function (_a) {
|
|
20339
20653
|
var direction = _a.direction;
|
|
20340
20654
|
return direction !== null && direction !== void 0 ? direction : 'row';
|
|
20341
20655
|
});
|
|
20342
20656
|
var Label$3 = styled(Typography).withConfig({
|
|
20343
20657
|
displayName: "CheckboxGroup__Label",
|
|
20344
20658
|
componentId: "sc-uixbzg-2"
|
|
20345
|
-
})(templateObject_3$
|
|
20659
|
+
})(templateObject_3$g || (templateObject_3$g = __makeTemplateObject(["\n padding-left: ", ";\n"], ["\n padding-left: ", ";\n"])), checkboxGroupTokens.label.spaceLeft);
|
|
20346
20660
|
var nextUniqueGroupId = 0;
|
|
20347
20661
|
var CheckboxGroup = function CheckboxGroup(_a) {
|
|
20348
20662
|
var label = _a.label,
|
|
@@ -20380,22 +20694,22 @@ var CheckboxGroup = function CheckboxGroup(_a) {
|
|
|
20380
20694
|
}, void 0) : '']
|
|
20381
20695
|
}), void 0);
|
|
20382
20696
|
};
|
|
20383
|
-
var templateObject_1$
|
|
20697
|
+
var templateObject_1$x, templateObject_2$n, templateObject_3$g;
|
|
20384
20698
|
|
|
20385
20699
|
var calculateHeightWithLineHeight = function calculateHeightWithLineHeight(lineHeight, fontSize) {
|
|
20386
20700
|
return lineHeight * 0.01 * fontSize;
|
|
20387
20701
|
};
|
|
20388
20702
|
|
|
20389
|
-
var Colors$
|
|
20703
|
+
var Colors$e = ddsBaseTokens.colors,
|
|
20390
20704
|
Border$5 = ddsBaseTokens.border,
|
|
20391
|
-
Spacing$
|
|
20705
|
+
Spacing$i = ddsBaseTokens.spacing,
|
|
20392
20706
|
FontPackages$c = ddsBaseTokens.fontPackages,
|
|
20393
20707
|
BorderRadius$2 = ddsBaseTokens.borderRadius,
|
|
20394
20708
|
OuterShadow$1 = ddsBaseTokens.outerShadow;
|
|
20395
20709
|
var focus = ddsReferenceTokens.focus;
|
|
20396
20710
|
|
|
20397
20711
|
var justIconSmallBase = __assign(__assign({}, FontPackages$c.supportingStyle_inputtext_02.base), {
|
|
20398
|
-
padding: Spacing$
|
|
20712
|
+
padding: Spacing$i.SizesDdsSpacingLocalX05
|
|
20399
20713
|
});
|
|
20400
20714
|
|
|
20401
20715
|
var justIconWrapperSmallBase = {
|
|
@@ -20404,11 +20718,11 @@ var justIconWrapperSmallBase = {
|
|
|
20404
20718
|
};
|
|
20405
20719
|
|
|
20406
20720
|
var textSmallBase = __assign(__assign({}, FontPackages$c.body_sans_01.base), {
|
|
20407
|
-
padding: Spacing$
|
|
20721
|
+
padding: Spacing$i.SizesDdsSpacingLocalX05 + " " + (Spacing$i.SizesDdsSpacingLocalX1NumberPx - 2) + "px"
|
|
20408
20722
|
});
|
|
20409
20723
|
|
|
20410
20724
|
var justIconMediumBase = __assign(__assign({}, FontPackages$c.heading_sans_03.base), {
|
|
20411
|
-
padding: Spacing$
|
|
20725
|
+
padding: Spacing$i.SizesDdsSpacingLocalX075
|
|
20412
20726
|
});
|
|
20413
20727
|
|
|
20414
20728
|
var justIconWrapperMediumBase = {
|
|
@@ -20417,11 +20731,11 @@ var justIconWrapperMediumBase = {
|
|
|
20417
20731
|
};
|
|
20418
20732
|
|
|
20419
20733
|
var textMediumBase = __assign(__assign({}, FontPackages$c.body_sans_02.base), {
|
|
20420
|
-
padding: Spacing$
|
|
20734
|
+
padding: Spacing$i.SizesDdsSpacingLocalX075 + " " + (Spacing$i.SizesDdsSpacingLocalX15NumberPx - 2) + "px"
|
|
20421
20735
|
});
|
|
20422
20736
|
|
|
20423
20737
|
var justIconLargeBase = __assign(__assign({}, FontPackages$c.heading_sans_04.base), {
|
|
20424
|
-
padding: Spacing$
|
|
20738
|
+
padding: Spacing$i.SizesDdsSpacingLocalX1
|
|
20425
20739
|
});
|
|
20426
20740
|
|
|
20427
20741
|
var justIconWrapperLargeBase = {
|
|
@@ -20430,7 +20744,7 @@ var justIconWrapperLargeBase = {
|
|
|
20430
20744
|
};
|
|
20431
20745
|
|
|
20432
20746
|
var textLargeBase = __assign(__assign({}, FontPackages$c.supportingStyle_inputtext_03.base), {
|
|
20433
|
-
padding: Spacing$
|
|
20747
|
+
padding: Spacing$i.SizesDdsSpacingLocalX1 + " " + (Spacing$i.SizesDdsSpacingLocalX2NumberPx - 2) + "px"
|
|
20434
20748
|
});
|
|
20435
20749
|
|
|
20436
20750
|
var buttonBase = {
|
|
@@ -20439,56 +20753,56 @@ var buttonBase = {
|
|
|
20439
20753
|
var filledButtonColors = {
|
|
20440
20754
|
primary: {
|
|
20441
20755
|
base: {
|
|
20442
|
-
color: Colors$
|
|
20443
|
-
backgroundColor: Colors$
|
|
20444
|
-
borderColor: Colors$
|
|
20756
|
+
color: Colors$e.DdsColorNeutralsWhite,
|
|
20757
|
+
backgroundColor: Colors$e.DdsColorInteractiveBase,
|
|
20758
|
+
borderColor: Colors$e.DdsColorInteractiveBase
|
|
20445
20759
|
},
|
|
20446
20760
|
hover: {
|
|
20447
20761
|
base: {
|
|
20448
|
-
backgroundColor: Colors$
|
|
20449
|
-
borderColor: Colors$
|
|
20762
|
+
backgroundColor: Colors$e.DdsColorInteractiveDark,
|
|
20763
|
+
borderColor: Colors$e.DdsColorInteractiveDark
|
|
20450
20764
|
}
|
|
20451
20765
|
},
|
|
20452
20766
|
active: {
|
|
20453
20767
|
base: {
|
|
20454
|
-
backgroundColor: Colors$
|
|
20455
|
-
borderColor: Colors$
|
|
20768
|
+
backgroundColor: Colors$e.DdsColorInteractiveDarker,
|
|
20769
|
+
borderColor: Colors$e.DdsColorInteractiveDarker
|
|
20456
20770
|
}
|
|
20457
20771
|
}
|
|
20458
20772
|
},
|
|
20459
20773
|
secondary: {
|
|
20460
20774
|
base: {
|
|
20461
|
-
color: Colors$
|
|
20462
|
-
backgroundColor: Colors$
|
|
20463
|
-
borderColor: Colors$
|
|
20775
|
+
color: Colors$e.DdsColorNeutralsGray8,
|
|
20776
|
+
backgroundColor: Colors$e.DdsColorNeutralsGray1,
|
|
20777
|
+
borderColor: Colors$e.DdsColorNeutralsGray5
|
|
20464
20778
|
},
|
|
20465
20779
|
hover: {
|
|
20466
20780
|
base: {
|
|
20467
|
-
backgroundColor: Colors$
|
|
20781
|
+
backgroundColor: Colors$e.DdsColorNeutralsGray2
|
|
20468
20782
|
}
|
|
20469
20783
|
},
|
|
20470
20784
|
active: {
|
|
20471
20785
|
base: {
|
|
20472
|
-
backgroundColor: Colors$
|
|
20786
|
+
backgroundColor: Colors$e.DdsColorNeutralsGray3
|
|
20473
20787
|
}
|
|
20474
20788
|
}
|
|
20475
20789
|
},
|
|
20476
20790
|
danger: {
|
|
20477
20791
|
base: {
|
|
20478
|
-
color: Colors$
|
|
20479
|
-
backgroundColor: Colors$
|
|
20480
|
-
borderColor: Colors$
|
|
20792
|
+
color: Colors$e.DdsColorNeutralsWhite,
|
|
20793
|
+
backgroundColor: Colors$e.DdsColorDangerBase,
|
|
20794
|
+
borderColor: Colors$e.DdsColorDangerBase
|
|
20481
20795
|
},
|
|
20482
20796
|
hover: {
|
|
20483
20797
|
base: {
|
|
20484
|
-
backgroundColor: Colors$
|
|
20485
|
-
borderColor: Colors$
|
|
20798
|
+
backgroundColor: Colors$e.DdsColorDangerDark,
|
|
20799
|
+
borderColor: Colors$e.DdsColorDangerDark
|
|
20486
20800
|
}
|
|
20487
20801
|
},
|
|
20488
20802
|
active: {
|
|
20489
20803
|
base: {
|
|
20490
|
-
backgroundColor: Colors$
|
|
20491
|
-
borderColor: Colors$
|
|
20804
|
+
backgroundColor: Colors$e.DdsColorDangerDarker,
|
|
20805
|
+
borderColor: Colors$e.DdsColorDangerDarker
|
|
20492
20806
|
}
|
|
20493
20807
|
}
|
|
20494
20808
|
}
|
|
@@ -20543,62 +20857,62 @@ var borderlessBase = {
|
|
|
20543
20857
|
textDecorationColor: 'transparent'
|
|
20544
20858
|
};
|
|
20545
20859
|
var borderlessPrimaryBase = {
|
|
20546
|
-
color: Colors$
|
|
20547
|
-
taxtDecorationColor: Colors$
|
|
20860
|
+
color: Colors$e.DdsColorInteractiveBase,
|
|
20861
|
+
taxtDecorationColor: Colors$e.DdsColorInteractiveBase
|
|
20548
20862
|
};
|
|
20549
20863
|
var borderlessPrimaryHoverBase = {
|
|
20550
|
-
color: Colors$
|
|
20551
|
-
textDecorationColor: Colors$
|
|
20864
|
+
color: Colors$e.DdsColorInteractiveDark,
|
|
20865
|
+
textDecorationColor: Colors$e.DdsColorInteractiveDark
|
|
20552
20866
|
};
|
|
20553
20867
|
var borderlessPrimaryActiveBase = {
|
|
20554
|
-
color: Colors$
|
|
20555
|
-
textDecorationColor: Colors$
|
|
20868
|
+
color: Colors$e.DdsColorInteractiveDarker,
|
|
20869
|
+
textDecorationColor: Colors$e.DdsColorInteractiveDarker
|
|
20556
20870
|
};
|
|
20557
20871
|
var borderlessPrimaryIconHoverBase = {
|
|
20558
|
-
borderColor: Colors$
|
|
20559
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
20872
|
+
borderColor: Colors$e.DdsColorInteractiveDark,
|
|
20873
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorInteractiveDark
|
|
20560
20874
|
};
|
|
20561
20875
|
var borderlessPrimaryIconActiveBase = {
|
|
20562
|
-
borderColor: Colors$
|
|
20563
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
20876
|
+
borderColor: Colors$e.DdsColorInteractiveDarker,
|
|
20877
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorInteractiveDarker
|
|
20564
20878
|
};
|
|
20565
20879
|
var borderlessSecondaryBase = {
|
|
20566
|
-
color: Colors$
|
|
20880
|
+
color: Colors$e.DdsColorNeutralsGray7
|
|
20567
20881
|
};
|
|
20568
20882
|
var borderlessSecondaryHoverBase = {
|
|
20569
|
-
color: Colors$
|
|
20570
|
-
textDecorationColor: Colors$
|
|
20883
|
+
color: Colors$e.DdsColorNeutralsGray8,
|
|
20884
|
+
textDecorationColor: Colors$e.DdsColorNeutralsGray8
|
|
20571
20885
|
};
|
|
20572
20886
|
var borderlessSecondaryActiveBase = {
|
|
20573
|
-
color: Colors$
|
|
20574
|
-
textDecorationColor: Colors$
|
|
20887
|
+
color: Colors$e.DdsColorNeutralsGray9,
|
|
20888
|
+
textDecorationColor: Colors$e.DdsColorNeutralsGray9
|
|
20575
20889
|
};
|
|
20576
20890
|
var borderlessSecondaryIconHoverBase = {
|
|
20577
|
-
borderColor: Colors$
|
|
20578
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
20891
|
+
borderColor: Colors$e.DdsColorNeutralsGray8,
|
|
20892
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorNeutralsGray8
|
|
20579
20893
|
};
|
|
20580
20894
|
var borderlessSecondaryIconActiveBase = {
|
|
20581
|
-
borderColor: Colors$
|
|
20582
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
20895
|
+
borderColor: Colors$e.DdsColorNeutralsGray9,
|
|
20896
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorNeutralsGray9
|
|
20583
20897
|
};
|
|
20584
20898
|
var borderlessDangerBase = {
|
|
20585
|
-
color: Colors$
|
|
20899
|
+
color: Colors$e.DdsColorDangerBase
|
|
20586
20900
|
};
|
|
20587
20901
|
var borderlessDangerHoverBase = {
|
|
20588
|
-
color: Colors$
|
|
20589
|
-
textDecorationColor: Colors$
|
|
20902
|
+
color: Colors$e.DdsColorDangerDarker,
|
|
20903
|
+
textDecorationColor: Colors$e.DdsColorDangerDarker
|
|
20590
20904
|
};
|
|
20591
20905
|
var borderlessDangerActiveBase = {
|
|
20592
|
-
color: Colors$
|
|
20593
|
-
textDecorationColor: Colors$
|
|
20906
|
+
color: Colors$e.DdsColorDangerDarkest,
|
|
20907
|
+
textDecorationColor: Colors$e.DdsColorDangerDarkest
|
|
20594
20908
|
};
|
|
20595
20909
|
var borderlessDangerIconHoverBase = {
|
|
20596
|
-
borderColor: Colors$
|
|
20597
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
20910
|
+
borderColor: Colors$e.DdsColorDangerDark,
|
|
20911
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorDangerDark
|
|
20598
20912
|
};
|
|
20599
20913
|
var borderlessDangerIconActiveBase = {
|
|
20600
|
-
borderColor: Colors$
|
|
20601
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
20914
|
+
borderColor: Colors$e.DdsColorDangerDarker,
|
|
20915
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorDangerDarker
|
|
20602
20916
|
};
|
|
20603
20917
|
var ghostBase = {
|
|
20604
20918
|
borderRadius: BorderRadius$2.RadiiDdsBorderRadius1Radius,
|
|
@@ -20606,46 +20920,46 @@ var ghostBase = {
|
|
|
20606
20920
|
backgroundColor: 'transparent'
|
|
20607
20921
|
};
|
|
20608
20922
|
var ghostPrimaryBase = {
|
|
20609
|
-
color: Colors$
|
|
20610
|
-
borderColor: Colors$
|
|
20923
|
+
color: Colors$e.DdsColorInteractiveBase,
|
|
20924
|
+
borderColor: Colors$e.DdsColorInteractiveBase
|
|
20611
20925
|
};
|
|
20612
20926
|
var ghostPrimaryHoverBase = {
|
|
20613
|
-
color: Colors$
|
|
20614
|
-
borderColor: Colors$
|
|
20615
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
20927
|
+
color: Colors$e.DdsColorInteractiveDark,
|
|
20928
|
+
borderColor: Colors$e.DdsColorInteractiveDark,
|
|
20929
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorInteractiveDark
|
|
20616
20930
|
};
|
|
20617
20931
|
var ghostPrimaryActiveBase = {
|
|
20618
|
-
color: Colors$
|
|
20619
|
-
borderColor: Colors$
|
|
20620
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
20932
|
+
color: Colors$e.DdsColorInteractiveDarker,
|
|
20933
|
+
borderColor: Colors$e.DdsColorInteractiveDarker,
|
|
20934
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorInteractiveDarker
|
|
20621
20935
|
};
|
|
20622
20936
|
var ghostSecondaryBase = {
|
|
20623
|
-
color: Colors$
|
|
20624
|
-
borderColor: Colors$
|
|
20937
|
+
color: Colors$e.DdsColorNeutralsGray7,
|
|
20938
|
+
borderColor: Colors$e.DdsColorNeutralsGray7
|
|
20625
20939
|
};
|
|
20626
20940
|
var ghostSecondaryHoverBase = {
|
|
20627
|
-
color: Colors$
|
|
20628
|
-
borderColor: Colors$
|
|
20629
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
20941
|
+
color: Colors$e.DdsColorNeutralsGray8,
|
|
20942
|
+
borderColor: Colors$e.DdsColorNeutralsGray8,
|
|
20943
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorNeutralsGray8
|
|
20630
20944
|
};
|
|
20631
20945
|
var ghostSecondaryActiveBase = {
|
|
20632
|
-
color: Colors$
|
|
20633
|
-
borderColor: Colors$
|
|
20634
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
20946
|
+
color: Colors$e.DdsColorNeutralsGray9,
|
|
20947
|
+
borderColor: Colors$e.DdsColorNeutralsGray9,
|
|
20948
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorNeutralsGray9
|
|
20635
20949
|
};
|
|
20636
20950
|
var ghostDangerBase = {
|
|
20637
|
-
color: Colors$
|
|
20638
|
-
borderColor: Colors$
|
|
20951
|
+
color: Colors$e.DdsColorDangerBase,
|
|
20952
|
+
borderColor: Colors$e.DdsColorDangerBase
|
|
20639
20953
|
};
|
|
20640
20954
|
var ghostDangerHoverBase = {
|
|
20641
|
-
color: Colors$
|
|
20642
|
-
borderColor: Colors$
|
|
20643
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
20955
|
+
color: Colors$e.DdsColorDangerDark,
|
|
20956
|
+
borderColor: Colors$e.DdsColorDangerDark,
|
|
20957
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorDangerDark
|
|
20644
20958
|
};
|
|
20645
20959
|
var ghostDangerActiveBase = {
|
|
20646
|
-
color: Colors$
|
|
20647
|
-
borderColor: Colors$
|
|
20648
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
20960
|
+
color: Colors$e.DdsColorDangerDarkest,
|
|
20961
|
+
borderColor: Colors$e.DdsColorDangerDarkest,
|
|
20962
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorDangerDarkest
|
|
20649
20963
|
};
|
|
20650
20964
|
var roundedBase = {
|
|
20651
20965
|
borderRadius: '100px',
|
|
@@ -20668,7 +20982,7 @@ var buttonTokens = {
|
|
|
20668
20982
|
text: {
|
|
20669
20983
|
base: textSmallBase
|
|
20670
20984
|
},
|
|
20671
|
-
iconWithTextMargin: Spacing$
|
|
20985
|
+
iconWithTextMargin: Spacing$i.SizesDdsSpacingLocalX025
|
|
20672
20986
|
},
|
|
20673
20987
|
medium: {
|
|
20674
20988
|
justIcon: {
|
|
@@ -20680,7 +20994,7 @@ var buttonTokens = {
|
|
|
20680
20994
|
text: {
|
|
20681
20995
|
base: textMediumBase
|
|
20682
20996
|
},
|
|
20683
|
-
iconWithTextMargin: Spacing$
|
|
20997
|
+
iconWithTextMargin: Spacing$i.SizesDdsSpacingLocalX05
|
|
20684
20998
|
},
|
|
20685
20999
|
large: {
|
|
20686
21000
|
justIcon: {
|
|
@@ -20692,7 +21006,7 @@ var buttonTokens = {
|
|
|
20692
21006
|
text: {
|
|
20693
21007
|
base: textLargeBase
|
|
20694
21008
|
},
|
|
20695
|
-
iconWithTextMargin: Spacing$
|
|
21009
|
+
iconWithTextMargin: Spacing$i.SizesDdsSpacingLocalX075
|
|
20696
21010
|
}
|
|
20697
21011
|
},
|
|
20698
21012
|
appearance: {
|
|
@@ -20843,9 +21157,9 @@ var buttonTokens = {
|
|
|
20843
21157
|
}
|
|
20844
21158
|
};
|
|
20845
21159
|
|
|
20846
|
-
var Colors$
|
|
21160
|
+
var Colors$d = ddsBaseTokens.colors;
|
|
20847
21161
|
var ciclreBase = {
|
|
20848
|
-
stroke: Colors$
|
|
21162
|
+
stroke: Colors$d.DdsColorInteractiveBase
|
|
20849
21163
|
};
|
|
20850
21164
|
var spinnerTokens = {
|
|
20851
21165
|
circle: {
|
|
@@ -20856,7 +21170,7 @@ var spinnerTokens = {
|
|
|
20856
21170
|
var StyledSpinner = styled.svg.withConfig({
|
|
20857
21171
|
displayName: "Spinner__StyledSpinner",
|
|
20858
21172
|
componentId: "sc-13hsttm-0"
|
|
20859
|
-
})(templateObject_1$
|
|
21173
|
+
})(templateObject_1$w || (templateObject_1$w = __makeTemplateObject(["\n display: block;\n animation: rotate 2s linear infinite;\n animation-delay: ", "ms;\n width: ", ";\n height: ", ";\n\n @keyframes rotate {\n 100% {\n transform: rotate(360deg);\n }\n }\n @keyframes dash {\n 0% {\n stroke-dasharray: 1, 150;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -35;\n }\n 100% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -124;\n }\n }\n"], ["\n display: block;\n animation: rotate 2s linear infinite;\n animation-delay: ", "ms;\n width: ", ";\n height: ", ";\n\n @keyframes rotate {\n 100% {\n transform: rotate(360deg);\n }\n }\n @keyframes dash {\n 0% {\n stroke-dasharray: 1, 150;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -35;\n }\n 100% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -124;\n }\n }\n"])), function (_a) {
|
|
20860
21174
|
var outerAnimationDelay = _a.outerAnimationDelay;
|
|
20861
21175
|
return outerAnimationDelay;
|
|
20862
21176
|
}, function (_a) {
|
|
@@ -20869,14 +21183,14 @@ var StyledSpinner = styled.svg.withConfig({
|
|
|
20869
21183
|
var Circle = styled.circle.withConfig({
|
|
20870
21184
|
displayName: "Spinner__Circle",
|
|
20871
21185
|
componentId: "sc-13hsttm-1"
|
|
20872
|
-
})(templateObject_2$
|
|
21186
|
+
})(templateObject_2$m || (templateObject_2$m = __makeTemplateObject(["\n ", "\n stroke: ", ";\n stroke-linecap: round;\n animation: dash 1.5s ease-in-out infinite;\n animation-delay: ", "ms;\n"], ["\n ", "\n stroke: ", ";\n stroke-linecap: round;\n animation: dash 1.5s ease-in-out infinite;\n animation-delay: ", "ms;\n"])), spinnerTokens.circle.base, function (_a) {
|
|
20873
21187
|
var color = _a.color;
|
|
20874
21188
|
return color && getTextColor(color);
|
|
20875
21189
|
}, function (_a) {
|
|
20876
21190
|
var innerAnimationDelay = _a.innerAnimationDelay;
|
|
20877
21191
|
return innerAnimationDelay;
|
|
20878
21192
|
});
|
|
20879
|
-
var nextUniqueId$
|
|
21193
|
+
var nextUniqueId$4 = 0;
|
|
20880
21194
|
function Spinner(_a) {
|
|
20881
21195
|
var _b = _a.size,
|
|
20882
21196
|
size = _b === void 0 ? ddsBaseTokens.iconSizes.DdsIconsizeMedium : _b,
|
|
@@ -20885,7 +21199,7 @@ function Spinner(_a) {
|
|
|
20885
21199
|
var mountTime = React__default.useRef(Date.now());
|
|
20886
21200
|
var outerAnimationDelay = -(mountTime.current % 2000);
|
|
20887
21201
|
var innerAnimationDelay = -(mountTime.current % 1500);
|
|
20888
|
-
var uniqueId = useState("spinnerTitle-" + nextUniqueId$
|
|
21202
|
+
var uniqueId = useState("spinnerTitle-" + nextUniqueId$4++)[0];
|
|
20889
21203
|
var spinnerProps = {
|
|
20890
21204
|
outerAnimationDelay: outerAnimationDelay,
|
|
20891
21205
|
size: size
|
|
@@ -20912,58 +21226,55 @@ function Spinner(_a) {
|
|
|
20912
21226
|
}), void 0)]
|
|
20913
21227
|
}), void 0);
|
|
20914
21228
|
}
|
|
20915
|
-
var templateObject_1$
|
|
21229
|
+
var templateObject_1$w, templateObject_2$m;
|
|
20916
21230
|
|
|
20917
|
-
var
|
|
20918
|
-
|
|
20919
|
-
};
|
|
20920
|
-
var ButtonContent = styled.span.withConfig({
|
|
20921
|
-
displayName: "Buttonstyles__ButtonContent",
|
|
21231
|
+
var ButtonWrapper$1 = styled.button.withConfig({
|
|
21232
|
+
displayName: "Buttonstyles__ButtonWrapper",
|
|
20922
21233
|
componentId: "sc-14dutqk-0"
|
|
20923
|
-
})(
|
|
20924
|
-
var
|
|
20925
|
-
|
|
20926
|
-
appearance = _a.appearance,
|
|
20927
|
-
Icon = _a.Icon;
|
|
20928
|
-
return purpose && appearance && buttonContentStyle(purpose, appearance, label, Icon);
|
|
21234
|
+
})(templateObject_7$7 || (templateObject_7$7 = __makeTemplateObject(["\n ", "\n display: inline-flex;\n align-items: center;\n justify-content: center;\n height: fit-content;\n width: ", ";\n cursor: pointer;\n box-shadow: none;\n text-decoration: none;\n transition: background-color 0.2s, text-decoration-color 0.2s, box-shadow 0.2s,\n border-color 0.2s, color 0.2s;\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n\n\n\n &:focus-visible, &.focus-visible {\n outline: ", " solid ", ";\n outline-offset: 2px;\n }\n\n *::selection {\n ", "\n }\n"], ["\n ", "\n display: inline-flex;\n align-items: center;\n justify-content: center;\n height: fit-content;\n width: ", ";\n cursor: pointer;\n box-shadow: none;\n text-decoration: none;\n transition: background-color 0.2s, text-decoration-color 0.2s, box-shadow 0.2s,\n border-color 0.2s, color 0.2s;\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n\n\n\n &:focus-visible, &.focus-visible {\n outline: ", " solid ", ";\n outline-offset: 2px;\n }\n\n *::selection {\n ", "\n }\n"])), buttonTokens.base, function (_a) {
|
|
21235
|
+
var fullWidth = _a.fullWidth;
|
|
21236
|
+
return fullWidth ? '100%' : 'fit-content';
|
|
20929
21237
|
}, function (_a) {
|
|
20930
|
-
var
|
|
20931
|
-
|
|
20932
|
-
|
|
20933
|
-
|
|
20934
|
-
|
|
21238
|
+
var appearance = _a.appearance,
|
|
21239
|
+
purpose = _a.purpose;
|
|
21240
|
+
return Ae(templateObject_1$v || (templateObject_1$v = __makeTemplateObject(["\n ", "\n ", "\n\n &:hover {\n ", "\n }\n\n &:active {\n ", "\n }\n "], ["\n ", "\n ", "\n\n &:hover {\n ", "\n }\n\n &:active {\n ", "\n }\n "])), buttonTokens.appearance[appearance].base, buttonTokens.appearance[appearance][purpose].base, buttonTokens.appearance[appearance][purpose].hover.base, buttonTokens.appearance[appearance][purpose].active.base);
|
|
21241
|
+
}, function (_a) {
|
|
21242
|
+
var hasIcon = _a.hasIcon,
|
|
21243
|
+
hasLabel = _a.hasLabel,
|
|
21244
|
+
appearance = _a.appearance,
|
|
21245
|
+
purpose = _a.purpose;
|
|
21246
|
+
return hasIcon && !hasLabel && appearance === 'borderless' && Ae(templateObject_2$l || (templateObject_2$l = __makeTemplateObject(["\n &:hover {\n ", "\n }\n &:active {\n ", "\n }\n "], ["\n &:hover {\n ", "\n }\n &:active {\n ", "\n }\n "])), buttonTokens.appearance[appearance][purpose].justIcon.hover.base, buttonTokens.appearance[appearance][purpose].justIcon.active.base);
|
|
20935
21247
|
}, function (_a) {
|
|
20936
21248
|
var size = _a.size,
|
|
20937
|
-
|
|
20938
|
-
return
|
|
20939
|
-
})
|
|
20940
|
-
var
|
|
20941
|
-
|
|
20942
|
-
|
|
20943
|
-
|
|
20944
|
-
|
|
20945
|
-
|
|
20946
|
-
}, ButtonContent, buttonTokens.focusOutline.width, buttonTokens.focusOutline.color);
|
|
21249
|
+
hasLabel = _a.hasLabel;
|
|
21250
|
+
return hasLabel ? Ae(templateObject_3$f || (templateObject_3$f = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), buttonTokens.sizes[size].text.base) : Ae(templateObject_4$d || (templateObject_4$d = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), buttonTokens.sizes[size].justIcon.base);
|
|
21251
|
+
}, function (_a) {
|
|
21252
|
+
var fullWidth = _a.fullWidth,
|
|
21253
|
+
hasIcon = _a.hasIcon,
|
|
21254
|
+
hasLabel = _a.hasLabel,
|
|
21255
|
+
isLoading = _a.isLoading;
|
|
21256
|
+
return fullWidth && (!hasIcon || !hasLabel || isLoading ? Ae(templateObject_5$a || (templateObject_5$a = __makeTemplateObject(["\n justify-content: center;\n "], ["\n justify-content: center;\n "]))) : Ae(templateObject_6$9 || (templateObject_6$9 = __makeTemplateObject(["\n justify-content: space-between;\n "], ["\n justify-content: space-between;\n "]))));
|
|
21257
|
+
}, buttonTokens.focusOutline.width, buttonTokens.focusOutline.color, typographyTokens.selection.base);
|
|
20947
21258
|
var IconWithTextWrapper = styled(IconWrapper$1).withConfig({
|
|
20948
21259
|
displayName: "Buttonstyles__IconWithTextWrapper",
|
|
20949
|
-
componentId: "sc-14dutqk-
|
|
20950
|
-
})(
|
|
21260
|
+
componentId: "sc-14dutqk-1"
|
|
21261
|
+
})(templateObject_10$2 || (templateObject_10$2 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (_a) {
|
|
20951
21262
|
var size = _a.size,
|
|
20952
21263
|
iconPosition = _a.iconPosition;
|
|
20953
|
-
return
|
|
21264
|
+
return iconPosition === 'left' ? Ae(templateObject_8$4 || (templateObject_8$4 = __makeTemplateObject(["\n margin-inline-end: ", ";\n "], ["\n margin-inline-end: ", ";\n "])), buttonTokens.sizes[size].iconWithTextMargin) : iconPosition === 'right' ? Ae(templateObject_9$4 || (templateObject_9$4 = __makeTemplateObject(["\n margin-inline-start: ", ";\n "], ["\n margin-inline-start: ", ";\n "])), buttonTokens.sizes[size].iconWithTextMargin) : '';
|
|
20954
21265
|
});
|
|
20955
21266
|
var JustIconWrapper = styled.span.withConfig({
|
|
20956
21267
|
displayName: "Buttonstyles__JustIconWrapper",
|
|
20957
|
-
componentId: "sc-14dutqk-
|
|
20958
|
-
})(
|
|
21268
|
+
componentId: "sc-14dutqk-2"
|
|
21269
|
+
})(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n ", "\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n ", "\n"])), function (_a) {
|
|
20959
21270
|
var size = _a.size;
|
|
20960
|
-
return
|
|
21271
|
+
return Ae(templateObject_11$1 || (templateObject_11$1 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), buttonTokens.sizes[size].justIconWrapper.base);
|
|
20961
21272
|
});
|
|
20962
21273
|
var Label$2 = styled.span.withConfig({
|
|
20963
21274
|
displayName: "Buttonstyles__Label",
|
|
20964
|
-
componentId: "sc-14dutqk-
|
|
20965
|
-
})(
|
|
20966
|
-
var templateObject_1$
|
|
21275
|
+
componentId: "sc-14dutqk-3"
|
|
21276
|
+
})(templateObject_13 || (templateObject_13 = __makeTemplateObject([""], [""])));
|
|
21277
|
+
var templateObject_1$v, templateObject_2$l, templateObject_3$f, templateObject_4$d, templateObject_5$a, templateObject_6$9, templateObject_7$7, templateObject_8$4, templateObject_9$4, templateObject_10$2, templateObject_11$1, templateObject_12, templateObject_13;
|
|
20967
21278
|
|
|
20968
21279
|
var Button = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
20969
21280
|
var label = _a.label,
|
|
@@ -20978,8 +21289,10 @@ var Button = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
20978
21289
|
appearance = _e === void 0 ? 'filled' : _e,
|
|
20979
21290
|
href = _a.href,
|
|
20980
21291
|
target = _a.target,
|
|
20981
|
-
|
|
20982
|
-
|
|
21292
|
+
_f = _a.loading,
|
|
21293
|
+
loading = _f === void 0 ? false : _f,
|
|
21294
|
+
_g = _a.fullWidth,
|
|
21295
|
+
fullWidth = _g === void 0 ? false : _g,
|
|
20983
21296
|
className = _a.className,
|
|
20984
21297
|
style = _a.style,
|
|
20985
21298
|
Icon = _a.Icon,
|
|
@@ -20994,23 +21307,18 @@ var Button = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
20994
21307
|
rel: href ? 'noreferrer noopener' : undefined,
|
|
20995
21308
|
target: href && target ? target : undefined,
|
|
20996
21309
|
ref: ref,
|
|
20997
|
-
fullWidth: fullWidth,
|
|
20998
|
-
disabled: disabled
|
|
20999
|
-
}, rest);
|
|
21000
|
-
|
|
21001
|
-
var contentProps = {
|
|
21002
|
-
iconPosition: iconPosition,
|
|
21003
21310
|
appearance: appearance,
|
|
21004
21311
|
purpose: purpose,
|
|
21005
|
-
|
|
21006
|
-
size: size,
|
|
21007
|
-
Icon: Icon,
|
|
21312
|
+
iconPosition: iconPosition,
|
|
21008
21313
|
fullWidth: fullWidth,
|
|
21009
|
-
|
|
21010
|
-
|
|
21314
|
+
hasLabel: !!label,
|
|
21315
|
+
hasIcon: !!Icon,
|
|
21316
|
+
isLoading: loading,
|
|
21317
|
+
disabled: disabled,
|
|
21318
|
+
size: size,
|
|
21011
21319
|
className: className,
|
|
21012
21320
|
style: style
|
|
21013
|
-
};
|
|
21321
|
+
}, rest);
|
|
21014
21322
|
|
|
21015
21323
|
var iconElement = Icon && iconPosition && size && jsxRuntime.jsx(IconWithTextWrapper, {
|
|
21016
21324
|
Icon: Icon,
|
|
@@ -21019,45 +21327,120 @@ var Button = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
21019
21327
|
size: size
|
|
21020
21328
|
}, void 0);
|
|
21021
21329
|
|
|
21022
|
-
|
|
21023
|
-
|
|
21024
|
-
|
|
21025
|
-
|
|
21026
|
-
|
|
21027
|
-
|
|
21028
|
-
|
|
21029
|
-
|
|
21030
|
-
|
|
21031
|
-
}
|
|
21032
|
-
|
|
21033
|
-
|
|
21034
|
-
|
|
21035
|
-
|
|
21036
|
-
|
|
21037
|
-
|
|
21038
|
-
}
|
|
21039
|
-
|
|
21040
|
-
|
|
21041
|
-
|
|
21042
|
-
}, void 0)
|
|
21043
|
-
}
|
|
21330
|
+
var hasLabel = !!label;
|
|
21331
|
+
var isIconButton = !hasLabel && !!Icon;
|
|
21332
|
+
return jsxRuntime.jsxs(ButtonWrapper$1, __assign({}, wrapperProps, {
|
|
21333
|
+
children: [loading && jsxRuntime.jsx(JustIconWrapper, __assign({
|
|
21334
|
+
size: size
|
|
21335
|
+
}, {
|
|
21336
|
+
children: jsxRuntime.jsx(Spinner, {
|
|
21337
|
+
color: buttonTokens.appearance[appearance][purpose].base.color,
|
|
21338
|
+
size: buttonTokens.sizes[size].justIcon.base.fontSize
|
|
21339
|
+
}, void 0)
|
|
21340
|
+
}), void 0), isIconButton && !loading && jsxRuntime.jsx(JustIconWrapper, __assign({
|
|
21341
|
+
size: size
|
|
21342
|
+
}, {
|
|
21343
|
+
children: jsxRuntime.jsx(IconWrapper$1, {
|
|
21344
|
+
Icon: Icon,
|
|
21345
|
+
iconSize: "inline"
|
|
21346
|
+
}, void 0)
|
|
21347
|
+
}), void 0), hasLabel && !loading && jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
21348
|
+
children: [iconPosition === 'left' && iconElement, jsxRuntime.jsx(Label$2, {
|
|
21349
|
+
children: label
|
|
21350
|
+
}, void 0), iconPosition === 'right' && iconElement]
|
|
21351
|
+
}, void 0)]
|
|
21044
21352
|
}), void 0);
|
|
21045
21353
|
});
|
|
21046
21354
|
|
|
21355
|
+
var Colors$c = ddsBaseTokens.colors,
|
|
21356
|
+
Spacing$h = ddsBaseTokens.spacing;
|
|
21357
|
+
var TextInput$3 = ddsReferenceTokens.textInput;
|
|
21358
|
+
var inputMultilineBase = {
|
|
21359
|
+
paddingBottom: Spacing$h.SizesDdsSpacingLocalX05
|
|
21360
|
+
};
|
|
21361
|
+
var inputMultilineWithLabelBase = {
|
|
21362
|
+
paddingTop: Spacing$h.SizesDdsSpacingLocalX2
|
|
21363
|
+
};
|
|
21364
|
+
var inputMultilineNoLabelBase = {
|
|
21365
|
+
paddingTop: Spacing$h.SizesDdsSpacingLocalX075
|
|
21366
|
+
};
|
|
21367
|
+
var inputLabelMultilineBase = {
|
|
21368
|
+
backgroundColor: Colors$c.DdsColorNeutralsWhite,
|
|
21369
|
+
padding: Spacing$h.SizesDdsSpacingLocalX075NumberPx - 1 + "px " + Spacing$h.SizesDdsSpacingLocalX1 + " 0px " + (Spacing$h.SizesDdsSpacingLocalX1NumberPx - 1) + "px"
|
|
21370
|
+
};
|
|
21371
|
+
var defaultWidth$2 = '320px';
|
|
21372
|
+
var textInputTokens = {
|
|
21373
|
+
general: TextInput$3,
|
|
21374
|
+
focusColor: TextInput$3.input.focus.borderColor,
|
|
21375
|
+
multiline: {
|
|
21376
|
+
base: inputMultilineBase,
|
|
21377
|
+
withLabel: {
|
|
21378
|
+
base: inputMultilineWithLabelBase
|
|
21379
|
+
},
|
|
21380
|
+
noLabel: {
|
|
21381
|
+
base: inputMultilineNoLabelBase
|
|
21382
|
+
}
|
|
21383
|
+
},
|
|
21384
|
+
label: {
|
|
21385
|
+
multiline: {
|
|
21386
|
+
base: inputLabelMultilineBase
|
|
21387
|
+
}
|
|
21388
|
+
},
|
|
21389
|
+
wrapper: {
|
|
21390
|
+
defaultWidth: defaultWidth$2
|
|
21391
|
+
},
|
|
21392
|
+
container: {
|
|
21393
|
+
multiline: {
|
|
21394
|
+
withLabel: {
|
|
21395
|
+
height: '99px'
|
|
21396
|
+
},
|
|
21397
|
+
noLabel: {
|
|
21398
|
+
height: '78px'
|
|
21399
|
+
}
|
|
21400
|
+
}
|
|
21401
|
+
}
|
|
21402
|
+
};
|
|
21403
|
+
|
|
21404
|
+
var Spacing$g = ddsBaseTokens.spacing;
|
|
21405
|
+
var charCounterBase = {
|
|
21406
|
+
padding: Spacing$g.SizesDdsSpacingLocalX025 + " " + Spacing$g.SizesDdsSpacingLocalX05
|
|
21407
|
+
};
|
|
21408
|
+
var charCounterTokens = {
|
|
21409
|
+
base: charCounterBase
|
|
21410
|
+
};
|
|
21411
|
+
|
|
21412
|
+
var Wrapper$3 = styled(Typography).withConfig({
|
|
21413
|
+
displayName: "CharCounter__Wrapper",
|
|
21414
|
+
componentId: "sc-qty1z2-0"
|
|
21415
|
+
})(templateObject_1$u || (templateObject_1$u = __makeTemplateObject(["\n margin-left: auto;\n ", "\n"], ["\n margin-left: auto;\n ", "\n"])), charCounterTokens.base);
|
|
21416
|
+
|
|
21417
|
+
function CharCounter(_a) {
|
|
21418
|
+
var current = _a.current,
|
|
21419
|
+
max = _a.max;
|
|
21420
|
+
return jsxRuntime.jsxs(Wrapper$3, __assign({
|
|
21421
|
+
forwardedAs: "div",
|
|
21422
|
+
typographyType: "supportingStyleHelperText01"
|
|
21423
|
+
}, {
|
|
21424
|
+
children: [current, "/", max]
|
|
21425
|
+
}), void 0);
|
|
21426
|
+
}
|
|
21427
|
+
var templateObject_1$u;
|
|
21428
|
+
|
|
21047
21429
|
var Colors$b = ddsBaseTokens.colors,
|
|
21048
|
-
Spacing$
|
|
21430
|
+
Spacing$f = ddsBaseTokens.spacing,
|
|
21049
21431
|
FontPackages$b = ddsBaseTokens.fontPackages;
|
|
21050
21432
|
var TextInput$2 = ddsReferenceTokens.textInput;
|
|
21051
21433
|
var inputBase$2 = {
|
|
21052
21434
|
border: "1px solid " + Colors$b.DdsColorNeutralsGray5
|
|
21053
21435
|
};
|
|
21054
21436
|
var inputWithLabelBase = {
|
|
21055
|
-
padding: Spacing$
|
|
21437
|
+
padding: Spacing$f.SizesDdsSpacingLocalX075NumberPx + FontPackages$b.supportingStyle_label_01.numbers.lineHeightNumber * 0.01 * FontPackages$b.supportingStyle_label_01.numbers.fontSizeNumber + "px " + Spacing$f.SizesDdsSpacingLocalX1 + " " + Spacing$f.SizesDdsSpacingLocalX075 + " " + Spacing$f.SizesDdsSpacingLocalX1
|
|
21056
21438
|
};
|
|
21057
21439
|
var inputNoLabelBase$1 = {
|
|
21058
|
-
padding: Spacing$
|
|
21440
|
+
padding: Spacing$f.SizesDdsSpacingLocalX075 + " " + Spacing$f.SizesDdsSpacingLocalX1 + " " + Spacing$f.SizesDdsSpacingLocalX075 + " " + Spacing$f.SizesDdsSpacingLocalX1
|
|
21059
21441
|
};
|
|
21060
21442
|
var inputDisabledBase = {
|
|
21443
|
+
color: Colors$b.DdsColorNeutralsGray7,
|
|
21061
21444
|
backgroundColor: Colors$b.DdsColorNeutralsGray1
|
|
21062
21445
|
};
|
|
21063
21446
|
var inputErrorBase = {
|
|
@@ -21073,52 +21456,22 @@ var inputErrorFocusBase = {
|
|
|
21073
21456
|
borderColor: Colors$b.DdsColorDangerDarker,
|
|
21074
21457
|
boxShadow: "0 0 0 1px " + Colors$b.DdsColorDangerDarker
|
|
21075
21458
|
};
|
|
21076
|
-
var inputMultilineBase = {
|
|
21077
|
-
paddingBottom: Spacing$g.SizesDdsSpacingLocalX05
|
|
21078
|
-
};
|
|
21079
|
-
var inputMultilineWithLabelBase = {
|
|
21080
|
-
paddingTop: Spacing$g.SizesDdsSpacingLocalX2
|
|
21081
|
-
};
|
|
21082
|
-
var inputMultilineNoLabelBase = {
|
|
21083
|
-
paddingTop: Spacing$g.SizesDdsSpacingLocalX075
|
|
21084
|
-
};
|
|
21085
21459
|
var inputReadOnlyBase = {
|
|
21086
21460
|
border: 'none',
|
|
21087
21461
|
backgroundColor: 'transparent',
|
|
21088
|
-
paddingLeft: Spacing$
|
|
21462
|
+
paddingLeft: Spacing$f.SizesDdsSpacingLocalX1
|
|
21089
21463
|
};
|
|
21090
21464
|
var inputLabelBase = {
|
|
21091
|
-
padding: Spacing$
|
|
21465
|
+
padding: Spacing$f.SizesDdsSpacingLocalX075 + " " + Spacing$f.SizesDdsSpacingLocalX1
|
|
21092
21466
|
};
|
|
21093
|
-
var
|
|
21094
|
-
|
|
21095
|
-
multiline: {
|
|
21096
|
-
base: {
|
|
21097
|
-
backgroundColor: Colors$b.DdsColorNeutralsWhite,
|
|
21098
|
-
padding: Spacing$g.SizesDdsSpacingLocalX075NumberPx - 1 + "px " + Spacing$g.SizesDdsSpacingLocalX1 + " 0px " + (Spacing$g.SizesDdsSpacingLocalX1NumberPx - 1) + "px"
|
|
21099
|
-
}
|
|
21100
|
-
},
|
|
21101
|
-
hover: {
|
|
21102
|
-
base: {
|
|
21103
|
-
color: TextInput$2.label.hover.textColor
|
|
21104
|
-
}
|
|
21105
|
-
},
|
|
21106
|
-
focus: {
|
|
21107
|
-
base: {
|
|
21108
|
-
color: TextInput$2.label.focus.textColor
|
|
21109
|
-
}
|
|
21110
|
-
}
|
|
21467
|
+
var inputLabelHoverBase = {
|
|
21468
|
+
color: TextInput$2.label.hover.textColor
|
|
21111
21469
|
};
|
|
21112
|
-
var
|
|
21113
|
-
|
|
21114
|
-
|
|
21115
|
-
|
|
21116
|
-
|
|
21117
|
-
},
|
|
21118
|
-
noLabel: {
|
|
21119
|
-
height: '78px'
|
|
21120
|
-
}
|
|
21121
|
-
}
|
|
21470
|
+
var inputLabelFocusBase = {
|
|
21471
|
+
color: TextInput$2.label.focus.textColor
|
|
21472
|
+
};
|
|
21473
|
+
var inputLabelDisabledBase = {
|
|
21474
|
+
color: Colors$b.DdsColorNeutralsGray6
|
|
21122
21475
|
};
|
|
21123
21476
|
var inputTokens = {
|
|
21124
21477
|
general: TextInput$2,
|
|
@@ -21136,15 +21489,6 @@ var inputTokens = {
|
|
|
21136
21489
|
disabled: {
|
|
21137
21490
|
base: inputDisabledBase
|
|
21138
21491
|
},
|
|
21139
|
-
multiline: {
|
|
21140
|
-
base: inputMultilineBase,
|
|
21141
|
-
withLabel: {
|
|
21142
|
-
base: inputMultilineWithLabelBase
|
|
21143
|
-
},
|
|
21144
|
-
noLabel: {
|
|
21145
|
-
base: inputMultilineNoLabelBase
|
|
21146
|
-
}
|
|
21147
|
-
},
|
|
21148
21492
|
error: {
|
|
21149
21493
|
base: inputErrorBase,
|
|
21150
21494
|
hover: {
|
|
@@ -21154,38 +21498,20 @@ var inputTokens = {
|
|
|
21154
21498
|
base: inputErrorFocusBase
|
|
21155
21499
|
}
|
|
21156
21500
|
},
|
|
21157
|
-
label:
|
|
21158
|
-
|
|
21159
|
-
|
|
21160
|
-
|
|
21161
|
-
|
|
21162
|
-
|
|
21163
|
-
|
|
21164
|
-
|
|
21165
|
-
|
|
21166
|
-
|
|
21167
|
-
}
|
|
21168
|
-
|
|
21169
|
-
base: charCounterBase
|
|
21501
|
+
label: {
|
|
21502
|
+
base: inputLabelBase,
|
|
21503
|
+
hover: {
|
|
21504
|
+
base: inputLabelHoverBase
|
|
21505
|
+
},
|
|
21506
|
+
focus: {
|
|
21507
|
+
base: inputLabelFocusBase
|
|
21508
|
+
},
|
|
21509
|
+
disabled: {
|
|
21510
|
+
base: inputLabelDisabledBase
|
|
21511
|
+
}
|
|
21512
|
+
}
|
|
21170
21513
|
};
|
|
21171
21514
|
|
|
21172
|
-
var Wrapper$3 = styled(Typography).withConfig({
|
|
21173
|
-
displayName: "CharCounter__Wrapper",
|
|
21174
|
-
componentId: "sc-qty1z2-0"
|
|
21175
|
-
})(templateObject_1$s || (templateObject_1$s = __makeTemplateObject(["\n margin-left: auto;\n ", "\n"], ["\n margin-left: auto;\n ", "\n"])), charCounterTokens.base);
|
|
21176
|
-
|
|
21177
|
-
function CharCounter(_a) {
|
|
21178
|
-
var current = _a.current,
|
|
21179
|
-
max = _a.max;
|
|
21180
|
-
return jsxRuntime.jsxs(Wrapper$3, __assign({
|
|
21181
|
-
forwardedAs: "div",
|
|
21182
|
-
typographyType: "supportingStyleHelperText01"
|
|
21183
|
-
}, {
|
|
21184
|
-
children: [current, "/", max]
|
|
21185
|
-
}), void 0);
|
|
21186
|
-
}
|
|
21187
|
-
var templateObject_1$s;
|
|
21188
|
-
|
|
21189
21515
|
var TextInput$1 = ddsReferenceTokens.textInput;
|
|
21190
21516
|
|
|
21191
21517
|
var stylingBase = __assign({
|
|
@@ -21208,45 +21534,64 @@ var hoverBase$1 = {
|
|
|
21208
21534
|
backgroundColor: TextInput$1.input.hover.backgroundColor
|
|
21209
21535
|
};
|
|
21210
21536
|
var inputFieldStylingBase = function inputFieldStylingBase() {
|
|
21211
|
-
return Ae(templateObject_1$
|
|
21537
|
+
return Ae(templateObject_1$t || (templateObject_1$t = __makeTemplateObject(["\n width: 100%;\n top: 0;\n left: 0;\n margin: 0;\n padding: 0;\n transition: box-shadow 0.2s, border-color 0.2s, background-color 0.2s;\n &::selection {\n ", "\n }\n ", "\n\n &:focus:enabled:read-write, &:focus-visible:enabled:read-write, &:active:enabled:read-write {\n ", "\n }\n &:focus {\n outline: none;\n }\n\n &:hover:enabled:read-write {\n ", "\n }\n "], ["\n width: 100%;\n top: 0;\n left: 0;\n margin: 0;\n padding: 0;\n transition: box-shadow 0.2s, border-color 0.2s, background-color 0.2s;\n &::selection {\n ", "\n }\n ", "\n\n &:focus:enabled:read-write, &:focus-visible:enabled:read-write, &:active:enabled:read-write {\n ", "\n }\n &:focus {\n outline: none;\n }\n\n &:hover:enabled:read-write {\n ", "\n }\n "])), typographyTokens.selection.base, stylingBase, focusBase$1, hoverBase$1);
|
|
21212
21538
|
};
|
|
21213
|
-
var templateObject_1$
|
|
21214
|
-
|
|
21215
|
-
var scrollbarStyling = Ae(templateObject_1$q || (templateObject_1$q = __makeTemplateObject(["\n /* width */\n &::-webkit-scrollbar {\n width: 16px;\n }\n\n /* Track */\n &::-webkit-scrollbar-track {\n background: transparent;\n border-radius: 100px;\n }\n\n /* Handle */\n &::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: 100px;\n }\n\n /* Handle on hover */\n &::-webkit-scrollbar-thumb:hover {\n background: ", ";\n }\n"], ["\n /* width */\n &::-webkit-scrollbar {\n width: 16px;\n }\n\n /* Track */\n &::-webkit-scrollbar-track {\n background: transparent;\n border-radius: 100px;\n }\n\n /* Handle */\n &::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: 100px;\n }\n\n /* Handle on hover */\n &::-webkit-scrollbar-thumb:hover {\n background: ", ";\n }\n"])), ddsBaseTokens.colors.DdsColorPrimaryDarkest.slice(0, -2) + '0.35)', ddsBaseTokens.colors.DdsColorPrimaryDarkest.slice(0, -2) + '0.5)');
|
|
21216
|
-
var templateObject_1$q;
|
|
21539
|
+
var templateObject_1$t;
|
|
21217
21540
|
|
|
21218
|
-
var
|
|
21541
|
+
var inputStyling = function inputStyling(_a) {
|
|
21219
21542
|
var readOnly = _a.readOnly,
|
|
21220
21543
|
errorMessage = _a.errorMessage,
|
|
21221
21544
|
label = _a.label,
|
|
21222
21545
|
disabled = _a.disabled;
|
|
21223
|
-
return Ae(templateObject_6$
|
|
21546
|
+
return Ae(templateObject_6$8 || (templateObject_6$8 = __makeTemplateObject(["\n ", "\n ", "\n box-sizing: border-box;\n ", ";\n\n &:hover:enabled:read-write ~ label {\n ", "\n }\n &:focus:enabled:read-write ~ label {\n ", "\n }\n\n ", "\n ", "\n ", "\n "], ["\n ", "\n ", "\n box-sizing: border-box;\n ", ";\n\n &:hover:enabled:read-write ~ label {\n ", "\n }\n &:focus:enabled:read-write ~ label {\n ", "\n }\n\n ", "\n ", "\n ", "\n "])), inputFieldStylingBase, inputTokens.base, label ? Ae(templateObject_1$s || (templateObject_1$s = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), inputTokens.withLabel.base) : Ae(templateObject_2$k || (templateObject_2$k = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), inputTokens.noLabel.base), inputTokens.label.hover.base, inputTokens.label.focus.base, disabled && Ae(templateObject_3$e || (templateObject_3$e = __makeTemplateObject(["\n cursor: not-allowed;\n ", "\n "], ["\n cursor: not-allowed;\n ", "\n "])), inputTokens.disabled.base), errorMessage && Ae(templateObject_4$c || (templateObject_4$c = __makeTemplateObject(["\n ", "\n &:hover:enabled:read-write {\n ", "\n }\n &:focus:enabled:read-write,\n &:active:enabled:read-write {\n ", "\n }\n "], ["\n ", "\n &:hover:enabled:read-write {\n ", "\n }\n &:focus:enabled:read-write,\n &:active:enabled:read-write {\n ", "\n }\n "])), inputTokens.error.base, inputTokens.error.hover.base, inputTokens.error.focus.base), readOnly && Ae(templateObject_5$9 || (templateObject_5$9 = __makeTemplateObject(["\n cursor: default;\n ", "\n "], ["\n cursor: default;\n ", "\n "])), inputTokens.readOnly.base));
|
|
21224
21547
|
};
|
|
21225
|
-
|
|
21226
21548
|
var Input$2 = styled.input.withConfig({
|
|
21227
|
-
displayName: "
|
|
21228
|
-
componentId: "sc-
|
|
21229
|
-
})(templateObject_7$
|
|
21549
|
+
displayName: "Inputstyles__Input",
|
|
21550
|
+
componentId: "sc-1oz9x8w-0"
|
|
21551
|
+
})(templateObject_7$6 || (templateObject_7$6 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (_a) {
|
|
21230
21552
|
var label = _a.label,
|
|
21231
21553
|
disabled = _a.disabled,
|
|
21232
21554
|
readOnly = _a.readOnly,
|
|
21233
21555
|
errorMessage = _a.errorMessage;
|
|
21234
|
-
return
|
|
21556
|
+
return inputStyling({
|
|
21235
21557
|
readOnly: readOnly,
|
|
21236
21558
|
errorMessage: errorMessage,
|
|
21237
21559
|
label: label,
|
|
21238
21560
|
disabled: disabled
|
|
21239
21561
|
});
|
|
21240
21562
|
});
|
|
21563
|
+
var SingleLineLabel = styled(Typography).withConfig({
|
|
21564
|
+
displayName: "Inputstyles__SingleLineLabel",
|
|
21565
|
+
componentId: "sc-1oz9x8w-1"
|
|
21566
|
+
})(templateObject_9$3 || (templateObject_9$3 = __makeTemplateObject(["\n position: absolute;\n top: 0;\n left: 0;\n transition: color 0.2s, background-color 0.2s;\n ", "\n ", "\n"], ["\n position: absolute;\n top: 0;\n left: 0;\n transition: color 0.2s, background-color 0.2s;\n ", "\n ", "\n"])), inputTokens.label.base, function (_a) {
|
|
21567
|
+
var disabled = _a.disabled;
|
|
21568
|
+
return disabled && Ae(templateObject_8$3 || (templateObject_8$3 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), inputTokens.label.disabled.base);
|
|
21569
|
+
});
|
|
21570
|
+
var InputContainer$2 = styled.div.withConfig({
|
|
21571
|
+
displayName: "Inputstyles__InputContainer",
|
|
21572
|
+
componentId: "sc-1oz9x8w-2"
|
|
21573
|
+
})(templateObject_10$1 || (templateObject_10$1 = __makeTemplateObject(["\n position: relative;\n width: 100%;\n"], ["\n position: relative;\n width: 100%;\n"])));
|
|
21574
|
+
var OuterInputContainer = styled.div.withConfig({
|
|
21575
|
+
displayName: "Inputstyles__OuterInputContainer",
|
|
21576
|
+
componentId: "sc-1oz9x8w-3"
|
|
21577
|
+
})(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n width: ", ";\n"], ["\n display: flex;\n flex-direction: column;\n width: ", ";\n"])), function (_a) {
|
|
21578
|
+
var width = _a.width;
|
|
21579
|
+
return width;
|
|
21580
|
+
});
|
|
21581
|
+
var templateObject_1$s, templateObject_2$k, templateObject_3$e, templateObject_4$c, templateObject_5$9, templateObject_6$8, templateObject_7$6, templateObject_8$3, templateObject_9$3, templateObject_10$1, templateObject_11;
|
|
21582
|
+
|
|
21583
|
+
var scrollbarStyling = Ae(templateObject_1$r || (templateObject_1$r = __makeTemplateObject(["\n /* width */\n &::-webkit-scrollbar {\n width: 16px;\n }\n\n /* Track */\n &::-webkit-scrollbar-track {\n background: transparent;\n border-radius: 100px;\n }\n\n /* Handle */\n &::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: 100px;\n }\n\n /* Handle on hover */\n &::-webkit-scrollbar-thumb:hover {\n background: ", ";\n }\n\n /* Firefox */\n scrollbar-color: ", "\n transparent;\n scrollbar-width: thin;\n"], ["\n /* width */\n &::-webkit-scrollbar {\n width: 16px;\n }\n\n /* Track */\n &::-webkit-scrollbar-track {\n background: transparent;\n border-radius: 100px;\n }\n\n /* Handle */\n &::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: 100px;\n }\n\n /* Handle on hover */\n &::-webkit-scrollbar-thumb:hover {\n background: ", ";\n }\n\n /* Firefox */\n scrollbar-color: ", "\n transparent;\n scrollbar-width: thin;\n"])), ddsBaseTokens.colors.DdsColorPrimaryDarkest.slice(0, -2) + '0.35)', ddsBaseTokens.colors.DdsColorPrimaryDarkest.slice(0, -2) + '0.5)', ddsBaseTokens.colors.DdsColorPrimaryDarkest.slice(0, -2) + '0.35)');
|
|
21584
|
+
var templateObject_1$r;
|
|
21585
|
+
|
|
21241
21586
|
var TextArea = styled.textarea.withConfig({
|
|
21242
21587
|
displayName: "TextInputstyles__TextArea",
|
|
21243
|
-
componentId: "sc-165zflr-
|
|
21244
|
-
})(
|
|
21588
|
+
componentId: "sc-165zflr-0"
|
|
21589
|
+
})(templateObject_3$d || (templateObject_3$d = __makeTemplateObject(["\n ", "\n resize: vertical;\n height: auto;\n ", "\n min-height: ", ";\n ", "\n ", "\n\n &:hover:enabled:read-write ~ label {\n background-color: ", ";\n }\n"], ["\n ", "\n resize: vertical;\n height: auto;\n ", "\n min-height: ", ";\n ", "\n ", "\n\n &:hover:enabled:read-write ~ label {\n background-color: ", ";\n }\n"])), function (_a) {
|
|
21245
21590
|
var label = _a.label,
|
|
21246
21591
|
disabled = _a.disabled,
|
|
21247
21592
|
readOnly = _a.readOnly,
|
|
21248
21593
|
errorMessage = _a.errorMessage;
|
|
21249
|
-
return
|
|
21594
|
+
return inputStyling({
|
|
21250
21595
|
readOnly: readOnly,
|
|
21251
21596
|
errorMessage: errorMessage,
|
|
21252
21597
|
label: label,
|
|
@@ -21254,61 +21599,54 @@ var TextArea = styled.textarea.withConfig({
|
|
|
21254
21599
|
});
|
|
21255
21600
|
}, scrollbarStyling, function (_a) {
|
|
21256
21601
|
var label = _a.label;
|
|
21257
|
-
return label ?
|
|
21258
|
-
},
|
|
21602
|
+
return label ? textInputTokens.container.multiline.withLabel.height : textInputTokens.container.multiline.noLabel.height;
|
|
21603
|
+
}, textInputTokens.multiline.base, function (_a) {
|
|
21259
21604
|
var label = _a.label;
|
|
21260
|
-
return label ? Ae(
|
|
21605
|
+
return label ? Ae(templateObject_1$q || (templateObject_1$q = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), textInputTokens.multiline.withLabel.base) : Ae(templateObject_2$j || (templateObject_2$j = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), textInputTokens.multiline.noLabel.base);
|
|
21261
21606
|
}, function (_a) {
|
|
21262
21607
|
var errorMessage = _a.errorMessage;
|
|
21263
21608
|
return errorMessage ? inputTokens.error.hover.base.backgroundColor : inputTokens.general.input.hover.backgroundColor;
|
|
21264
21609
|
});
|
|
21265
|
-
var
|
|
21266
|
-
displayName: "
|
|
21267
|
-
componentId: "sc-165zflr-
|
|
21268
|
-
})(
|
|
21269
|
-
var Label$1 = styled(
|
|
21610
|
+
var MessageContainer = styled.div.withConfig({
|
|
21611
|
+
displayName: "TextInputstyles__MessageContainer",
|
|
21612
|
+
componentId: "sc-165zflr-1"
|
|
21613
|
+
})(templateObject_4$b || (templateObject_4$b = __makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n"], ["\n display: flex;\n justify-content: space-between;\n"])));
|
|
21614
|
+
var Label$1 = styled(SingleLineLabel).withConfig({
|
|
21270
21615
|
displayName: "TextInputstyles__Label",
|
|
21271
|
-
componentId: "sc-165zflr-
|
|
21272
|
-
})(
|
|
21616
|
+
componentId: "sc-165zflr-2"
|
|
21617
|
+
})(templateObject_8$2 || (templateObject_8$2 = __makeTemplateObject(["\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n"])), function (_a) {
|
|
21273
21618
|
var multiline = _a.multiline;
|
|
21274
|
-
return multiline && Ae(
|
|
21619
|
+
return multiline && Ae(templateObject_5$8 || (templateObject_5$8 = __makeTemplateObject(["\n margin: 1px;\n width: calc(100% - 20px);\n ", "\n "], ["\n margin: 1px;\n width: calc(100% - 20px);\n ", "\n "])), textInputTokens.label.multiline.base);
|
|
21275
21620
|
}, function (_a) {
|
|
21276
21621
|
var disabled = _a.disabled,
|
|
21277
21622
|
multiline = _a.multiline;
|
|
21278
|
-
return disabled && multiline && Ae(
|
|
21623
|
+
return disabled && multiline && Ae(templateObject_6$7 || (templateObject_6$7 = __makeTemplateObject(["\n background-color: ", ";\n "], ["\n background-color: ", ";\n "])), inputTokens.disabled.base.backgroundColor);
|
|
21279
21624
|
}, function (_a) {
|
|
21280
21625
|
var readOnly = _a.readOnly,
|
|
21281
21626
|
multiline = _a.multiline;
|
|
21282
|
-
return readOnly && multiline && Ae(
|
|
21627
|
+
return readOnly && multiline && Ae(templateObject_7$5 || (templateObject_7$5 = __makeTemplateObject(["\n background-color: ", ";\n "], ["\n background-color: ", ";\n "])), inputTokens.readOnly.base.backgroundColor);
|
|
21283
21628
|
});
|
|
21284
|
-
var
|
|
21285
|
-
displayName: "
|
|
21286
|
-
componentId: "sc-165zflr-
|
|
21287
|
-
})(
|
|
21288
|
-
var width = _a.width;
|
|
21289
|
-
return width;
|
|
21290
|
-
});
|
|
21291
|
-
var InputFieldContainer = styled.div.withConfig({
|
|
21292
|
-
displayName: "TextInputstyles__InputFieldContainer",
|
|
21293
|
-
componentId: "sc-165zflr-5"
|
|
21294
|
-
})(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n position: relative;\n width: 100%;\n ", "\n height: ", ";\n"], ["\n position: relative;\n width: 100%;\n ", "\n height: ", ";\n"])), function (_a) {
|
|
21629
|
+
var InputContainer$1 = styled(InputContainer$2).withConfig({
|
|
21630
|
+
displayName: "TextInputstyles__InputContainer",
|
|
21631
|
+
componentId: "sc-165zflr-3"
|
|
21632
|
+
})(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n ", "\n height: ", ";\n"], ["\n ", "\n height: ", ";\n"])), function (_a) {
|
|
21295
21633
|
var multiline = _a.multiline;
|
|
21296
|
-
return multiline && Ae(
|
|
21634
|
+
return multiline && Ae(templateObject_9$2 || (templateObject_9$2 = __makeTemplateObject(["\n display: inline-block;\n "], ["\n display: inline-block;\n "])));
|
|
21297
21635
|
}, function (_a) {
|
|
21298
21636
|
var multiline = _a.multiline,
|
|
21299
21637
|
label = _a.label;
|
|
21300
21638
|
|
|
21301
21639
|
if (multiline) {
|
|
21302
21640
|
if (label) {
|
|
21303
|
-
return
|
|
21641
|
+
return textInputTokens.container.multiline.withLabel.height;
|
|
21304
21642
|
}
|
|
21305
21643
|
|
|
21306
|
-
return
|
|
21644
|
+
return textInputTokens.container.multiline.noLabel.height;
|
|
21307
21645
|
}
|
|
21308
21646
|
});
|
|
21309
|
-
var templateObject_1$
|
|
21647
|
+
var templateObject_1$q, templateObject_2$j, templateObject_3$d, templateObject_4$b, templateObject_5$8, templateObject_6$7, templateObject_7$5, templateObject_8$2, templateObject_9$2, templateObject_10;
|
|
21310
21648
|
|
|
21311
|
-
var nextUniqueId$
|
|
21649
|
+
var nextUniqueId$3 = 0;
|
|
21312
21650
|
var TextInput = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
21313
21651
|
var label = _a.label,
|
|
21314
21652
|
disabled = _a.disabled,
|
|
@@ -21321,7 +21659,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
21321
21659
|
onChange = _a.onChange,
|
|
21322
21660
|
id = _a.id,
|
|
21323
21661
|
_b = _a.width,
|
|
21324
|
-
width = _b === void 0 ?
|
|
21662
|
+
width = _b === void 0 ? textInputTokens.wrapper.defaultWidth : _b,
|
|
21325
21663
|
_c = _a.type,
|
|
21326
21664
|
type = _c === void 0 ? 'text' : _c,
|
|
21327
21665
|
className = _a.className,
|
|
@@ -21371,35 +21709,37 @@ var TextInput = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
21371
21709
|
}
|
|
21372
21710
|
};
|
|
21373
21711
|
|
|
21374
|
-
var uniqueId = useState(id !== null && id !== void 0 ? id : "textInput-" + nextUniqueId$
|
|
21712
|
+
var uniqueId = useState(id !== null && id !== void 0 ? id : "textInput-" + nextUniqueId$3++)[0];
|
|
21375
21713
|
|
|
21376
21714
|
var generalInputProps = __assign({
|
|
21377
21715
|
id: uniqueId,
|
|
21378
21716
|
label: label,
|
|
21379
21717
|
errorMessage: errorMessage,
|
|
21380
|
-
disabled: disabled
|
|
21718
|
+
disabled: disabled,
|
|
21381
21719
|
readOnly: readOnly,
|
|
21720
|
+
tabIndex: readOnly ? -1 : 0,
|
|
21382
21721
|
maxLength: maxLength
|
|
21383
21722
|
}, rest);
|
|
21384
21723
|
|
|
21385
|
-
var wrapperProps = {
|
|
21386
|
-
className: className,
|
|
21387
|
-
style: style,
|
|
21388
|
-
width: width
|
|
21389
|
-
};
|
|
21390
21724
|
var labelProps = {
|
|
21391
21725
|
multiline: multiline,
|
|
21392
21726
|
disabled: disabled,
|
|
21393
21727
|
readOnly: readOnly
|
|
21394
21728
|
};
|
|
21395
|
-
|
|
21396
|
-
|
|
21397
|
-
|
|
21398
|
-
|
|
21399
|
-
|
|
21400
|
-
|
|
21401
|
-
|
|
21402
|
-
|
|
21729
|
+
var inputContainerProps = {
|
|
21730
|
+
style: multiline ? {
|
|
21731
|
+
minHeight: parentHeight
|
|
21732
|
+
} : {},
|
|
21733
|
+
multiline: multiline,
|
|
21734
|
+
label: label
|
|
21735
|
+
};
|
|
21736
|
+
var outerInputContainerProps = {
|
|
21737
|
+
className: className,
|
|
21738
|
+
style: style,
|
|
21739
|
+
width: width
|
|
21740
|
+
};
|
|
21741
|
+
return jsxRuntime.jsxs(OuterInputContainer, __assign({}, outerInputContainerProps, {
|
|
21742
|
+
children: [jsxRuntime.jsxs(InputContainer$1, __assign({}, inputContainerProps, {
|
|
21403
21743
|
children: [multiline ? jsxRuntime.jsx(TextArea, __assign({
|
|
21404
21744
|
ref: textAreaRef,
|
|
21405
21745
|
style: {
|
|
@@ -21419,7 +21759,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
21419
21759
|
}, {
|
|
21420
21760
|
children: [label, " ", required && jsxRuntime.jsx(RequiredMarker, {}, void 0)]
|
|
21421
21761
|
}), void 0)]
|
|
21422
|
-
}), void 0), jsxRuntime.jsxs(
|
|
21762
|
+
}), void 0), jsxRuntime.jsxs(MessageContainer, {
|
|
21423
21763
|
children: [errorMessage && jsxRuntime.jsx(InputMessage, {
|
|
21424
21764
|
message: errorMessage,
|
|
21425
21765
|
messageType: "error"
|
|
@@ -28501,7 +28841,7 @@ var prefix = 'dds-select';
|
|
|
28501
28841
|
var Label = styled(Typography).withConfig({
|
|
28502
28842
|
displayName: "Selectstyles__Label",
|
|
28503
28843
|
componentId: "sc-19jkd5s-0"
|
|
28504
|
-
})(templateObject_1$
|
|
28844
|
+
})(templateObject_1$p || (templateObject_1$p = __makeTemplateObject(["\n display: block;\n ", "\n"], ["\n display: block;\n ", "\n"])), selectTokens.label.base);
|
|
28505
28845
|
var Container$5 = styled.div.withConfig({
|
|
28506
28846
|
displayName: "Selectstyles__Container",
|
|
28507
28847
|
componentId: "sc-19jkd5s-1"
|
|
@@ -28598,7 +28938,7 @@ var CustomStyles = {
|
|
|
28598
28938
|
return {};
|
|
28599
28939
|
}
|
|
28600
28940
|
};
|
|
28601
|
-
var templateObject_1$
|
|
28941
|
+
var templateObject_1$p, templateObject_2$i, templateObject_3$c, templateObject_4$a, templateObject_5$7, templateObject_6$6, templateObject_7$4, templateObject_8$1, templateObject_9$1;
|
|
28602
28942
|
|
|
28603
28943
|
var DdsOption = components.Option,
|
|
28604
28944
|
NoOptionsMessage = components.NoOptionsMessage;
|
|
@@ -28627,7 +28967,7 @@ function searchFilter(text, search) {
|
|
|
28627
28967
|
var searchFilterRegex = new RegExp("(?:^|[\\s-(])" + escapeRegexCharacters(search.toLowerCase()));
|
|
28628
28968
|
return searchFilterRegex.test(text.toLowerCase());
|
|
28629
28969
|
}
|
|
28630
|
-
var nextUniqueId$
|
|
28970
|
+
var nextUniqueId$2 = 0;
|
|
28631
28971
|
var Select = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
28632
28972
|
var id = _a.id,
|
|
28633
28973
|
label = _a.label,
|
|
@@ -28649,7 +28989,7 @@ var Select = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
28649
28989
|
placeholder = _d === void 0 ? '-- Velg fra listen --' : _d,
|
|
28650
28990
|
rest = __rest(_a, ["id", "label", "errorMessage", "tip", "required", "readOnly", "options", "value", "defaultValue", "width", "className", "style", "isDisabled", "isClearable", "placeholder"]);
|
|
28651
28991
|
|
|
28652
|
-
var uniqueId = useState(id !== null && id !== void 0 ? id : "select-" + nextUniqueId$
|
|
28992
|
+
var uniqueId = useState(id !== null && id !== void 0 ? id : "select-" + nextUniqueId$2++)[0];
|
|
28653
28993
|
var wrapperProps = {
|
|
28654
28994
|
width: width
|
|
28655
28995
|
};
|
|
@@ -28866,7 +29206,7 @@ var Container$4 = styled.div.withConfig({
|
|
|
28866
29206
|
componentId: "sc-bf2l65-0"
|
|
28867
29207
|
})(templateObject_2$h || (templateObject_2$h = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n box-sizing: border-box;\n ", "\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n box-sizing: border-box;\n ", "\n"])), function (_a) {
|
|
28868
29208
|
var purpose = _a.purpose;
|
|
28869
|
-
return purpose && Ae(templateObject_1$
|
|
29209
|
+
return purpose && Ae(templateObject_1$o || (templateObject_1$o = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), globalMessageTokens.container.base, globalMessageTokens.container[purpose].base);
|
|
28870
29210
|
});
|
|
28871
29211
|
var MessageIconWrapper$1 = styled(IconWrapper$1).withConfig({
|
|
28872
29212
|
displayName: "GlobalMessage__MessageIconWrapper",
|
|
@@ -28888,8 +29228,9 @@ var GlobalMessage = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
28888
29228
|
_b = _a.purpose,
|
|
28889
29229
|
purpose = _b === void 0 ? 'info' : _b,
|
|
28890
29230
|
closable = _a.closable,
|
|
29231
|
+
onClose = _a.onClose,
|
|
28891
29232
|
children = _a.children,
|
|
28892
|
-
rest = __rest(_a, ["message", "purpose", "closable", "children"]);
|
|
29233
|
+
rest = __rest(_a, ["message", "purpose", "closable", "onClose", "children"]);
|
|
28893
29234
|
|
|
28894
29235
|
var _c = useState(false),
|
|
28895
29236
|
isClosed = _c[0],
|
|
@@ -28920,14 +29261,15 @@ var GlobalMessage = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
28920
29261
|
purpose: buttonPurpose,
|
|
28921
29262
|
appearance: "borderless",
|
|
28922
29263
|
onClick: function onClick() {
|
|
28923
|
-
|
|
29264
|
+
setClosed(true);
|
|
29265
|
+
onClose && onClose();
|
|
28924
29266
|
},
|
|
28925
29267
|
size: "small"
|
|
28926
29268
|
}, void 0)
|
|
28927
29269
|
}, void 0)]
|
|
28928
29270
|
}), void 0) : null;
|
|
28929
29271
|
});
|
|
28930
|
-
var templateObject_1$
|
|
29272
|
+
var templateObject_1$o, templateObject_2$h, templateObject_3$b, templateObject_4$9, templateObject_5$6, templateObject_6$5;
|
|
28931
29273
|
|
|
28932
29274
|
var CheckCircleOutlined = createCommonjsModule(function (module, exports) {
|
|
28933
29275
|
|
|
@@ -29136,7 +29478,7 @@ var Container$3 = styled.div.withConfig({
|
|
|
29136
29478
|
return layout === 'vertical' ? 'column' : 'row';
|
|
29137
29479
|
}, function (_a) {
|
|
29138
29480
|
var layout = _a.layout;
|
|
29139
|
-
return layout === 'horisontal' && Ae(templateObject_1$
|
|
29481
|
+
return layout === 'horisontal' && Ae(templateObject_1$n || (templateObject_1$n = __makeTemplateObject(["\n align-items: center;\n justify-content: space-between;\n "], ["\n align-items: center;\n justify-content: space-between;\n "])));
|
|
29140
29482
|
}, typographyTokens.selection.base, function (_a) {
|
|
29141
29483
|
var purpose = _a.purpose;
|
|
29142
29484
|
return purpose && Ae(templateObject_2$g || (templateObject_2$g = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), localMessageTokens.container.base, localMessageTokens.container[purpose].base);
|
|
@@ -29170,12 +29512,13 @@ var LocalMessage = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
29170
29512
|
_b = _a.purpose,
|
|
29171
29513
|
purpose = _b === void 0 ? 'info' : _b,
|
|
29172
29514
|
closable = _a.closable,
|
|
29515
|
+
onClose = _a.onClose,
|
|
29173
29516
|
_c = _a.width,
|
|
29174
29517
|
width = _c === void 0 ? localMessageTokens.container.defaultWidth : _c,
|
|
29175
29518
|
_d = _a.layout,
|
|
29176
29519
|
layout = _d === void 0 ? 'horisontal' : _d,
|
|
29177
29520
|
children = _a.children,
|
|
29178
|
-
rest = __rest(_a, ["message", "purpose", "closable", "width", "layout", "children"]);
|
|
29521
|
+
rest = __rest(_a, ["message", "purpose", "closable", "onClose", "width", "layout", "children"]);
|
|
29179
29522
|
|
|
29180
29523
|
var _e = useState(false),
|
|
29181
29524
|
isClosed = _e[0],
|
|
@@ -29211,7 +29554,8 @@ var LocalMessage = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
29211
29554
|
purpose: buttonPurpose,
|
|
29212
29555
|
appearance: "borderless",
|
|
29213
29556
|
onClick: function onClick() {
|
|
29214
|
-
|
|
29557
|
+
setClosed(true);
|
|
29558
|
+
onClose && onClose();
|
|
29215
29559
|
},
|
|
29216
29560
|
size: "small"
|
|
29217
29561
|
}, void 0);
|
|
@@ -29232,7 +29576,7 @@ var LocalMessage = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
29232
29576
|
}, void 0)
|
|
29233
29577
|
}), void 0) : null;
|
|
29234
29578
|
});
|
|
29235
|
-
var templateObject_1$
|
|
29579
|
+
var templateObject_1$n, templateObject_2$g, templateObject_3$a, templateObject_4$8, templateObject_5$5, templateObject_6$4, templateObject_7$3, templateObject_8, templateObject_9;
|
|
29236
29580
|
|
|
29237
29581
|
var SearchOutlined = createCommonjsModule(function (module, exports) {
|
|
29238
29582
|
|
|
@@ -29314,7 +29658,7 @@ var Input = styled.input.withConfig({
|
|
|
29314
29658
|
componentId: "sc-1ax3s9s-0"
|
|
29315
29659
|
})(templateObject_2$f || (templateObject_2$f = __makeTemplateObject(["\n &[type='search']::-webkit-search-decoration,\n &[type='search']::-webkit-search-cancel-button,\n &[type='search']::-webkit-search-results-button,\n &[type='search']::-webkit-search-results-decoration {\n -webkit-appearance: none;\n }\n\n ", "\n ", "\n\n ", "\n\n padding-left: ", ";\n"], ["\n &[type='search']::-webkit-search-decoration,\n &[type='search']::-webkit-search-cancel-button,\n &[type='search']::-webkit-search-results-button,\n &[type='search']::-webkit-search-results-decoration {\n -webkit-appearance: none;\n }\n\n ", "\n ", "\n\n ", "\n\n padding-left: ", ";\n"])), inputFieldStylingBase, searchTokens.input.base, function (_a) {
|
|
29316
29660
|
var componentSize = _a.componentSize;
|
|
29317
|
-
return componentSize && Ae(templateObject_1$
|
|
29661
|
+
return componentSize && Ae(templateObject_1$m || (templateObject_1$m = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), searchTokens.input[componentSize].base);
|
|
29318
29662
|
}, searchTokens.input.spaceLeft);
|
|
29319
29663
|
var IconWrapper = styled.span.withConfig({
|
|
29320
29664
|
displayName: "Search__IconWrapper",
|
|
@@ -29383,7 +29727,7 @@ var Search = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
29383
29727
|
}, void 0)]
|
|
29384
29728
|
}), void 0);
|
|
29385
29729
|
});
|
|
29386
|
-
var templateObject_1$
|
|
29730
|
+
var templateObject_1$m, templateObject_2$f, templateObject_3$9, templateObject_4$7, templateObject_5$4, templateObject_6$3, templateObject_7$2;
|
|
29387
29731
|
|
|
29388
29732
|
var Colors$7 = ddsBaseTokens.colors,
|
|
29389
29733
|
Spacing$a = ddsBaseTokens.spacing;
|
|
@@ -29437,7 +29781,7 @@ var StyledTable = styled.table.withConfig({
|
|
|
29437
29781
|
componentId: "sc-bw0w0a-0"
|
|
29438
29782
|
})(templateObject_3$8 || (templateObject_3$8 = __makeTemplateObject(["\n border-spacing: 0;\n border-collapse: collapse;\n *::selection {\n ", "\n }\n ", "\n ", "\n ", "\n"], ["\n border-spacing: 0;\n border-collapse: collapse;\n *::selection {\n ", "\n }\n ", "\n ", "\n ", "\n"])), typographyTokens.selection.base, scrollbarStyling, function (_a) {
|
|
29439
29783
|
var density = _a.density;
|
|
29440
|
-
return density && Ae(templateObject_1$
|
|
29784
|
+
return density && Ae(templateObject_1$l || (templateObject_1$l = __makeTemplateObject(["\n td,\n th {\n ", "\n }\n "], ["\n td,\n th {\n ", "\n }\n "])), cellTokens.density[density].base);
|
|
29441
29785
|
}, function (_a) {
|
|
29442
29786
|
var stickyHeader = _a.stickyHeader;
|
|
29443
29787
|
return stickyHeader && Ae(templateObject_2$e || (templateObject_2$e = __makeTemplateObject(["\n tr[type='head'] {\n th[type='head'] {\n position: sticky;\n top: 0;\n }\n }\n "], ["\n tr[type='head'] {\n th[type='head'] {\n position: sticky;\n top: 0;\n }\n }\n "])));
|
|
@@ -29457,12 +29801,12 @@ var Table = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
29457
29801
|
children: children
|
|
29458
29802
|
}), void 0);
|
|
29459
29803
|
});
|
|
29460
|
-
var templateObject_1$
|
|
29804
|
+
var templateObject_1$l, templateObject_2$e, templateObject_3$8;
|
|
29461
29805
|
|
|
29462
29806
|
var StyledBody = styled.tbody.withConfig({
|
|
29463
29807
|
displayName: "Body__StyledBody",
|
|
29464
29808
|
componentId: "sc-67qjfs-0"
|
|
29465
|
-
})(templateObject_1$
|
|
29809
|
+
})(templateObject_1$k || (templateObject_1$k = __makeTemplateObject([""], [""])));
|
|
29466
29810
|
var Body$1 = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
29467
29811
|
var children = _a.children,
|
|
29468
29812
|
rest = __rest(_a, ["children"]);
|
|
@@ -29475,12 +29819,12 @@ var Body$1 = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
29475
29819
|
children: children
|
|
29476
29820
|
}), void 0);
|
|
29477
29821
|
});
|
|
29478
|
-
var templateObject_1$
|
|
29822
|
+
var templateObject_1$k;
|
|
29479
29823
|
|
|
29480
29824
|
var StyledHead = styled.thead.withConfig({
|
|
29481
29825
|
displayName: "Head__StyledHead",
|
|
29482
29826
|
componentId: "sc-vzd2kv-0"
|
|
29483
|
-
})(templateObject_1$
|
|
29827
|
+
})(templateObject_1$j || (templateObject_1$j = __makeTemplateObject([""], [""])));
|
|
29484
29828
|
var Head = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
29485
29829
|
var children = _a.children,
|
|
29486
29830
|
rest = __rest(_a, ["children"]);
|
|
@@ -29493,7 +29837,7 @@ var Head = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
29493
29837
|
children: children
|
|
29494
29838
|
}), void 0);
|
|
29495
29839
|
});
|
|
29496
|
-
var templateObject_1$
|
|
29840
|
+
var templateObject_1$j;
|
|
29497
29841
|
|
|
29498
29842
|
var Colors$6 = ddsBaseTokens.colors,
|
|
29499
29843
|
FontPackages$6 = ddsBaseTokens.fontPackages,
|
|
@@ -29561,7 +29905,7 @@ var rowTokens = {
|
|
|
29561
29905
|
};
|
|
29562
29906
|
|
|
29563
29907
|
var bodyStyles = function bodyStyles(mode, selected) {
|
|
29564
|
-
return Ae(templateObject_3$7 || (templateObject_3$7 = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), mode && Ae(templateObject_1$
|
|
29908
|
+
return Ae(templateObject_3$7 || (templateObject_3$7 = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), mode && Ae(templateObject_1$i || (templateObject_1$i = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), rowTokens.body.mode[mode].base), selected && Ae(templateObject_2$d || (templateObject_2$d = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), rowTokens.body.selected.base));
|
|
29565
29909
|
};
|
|
29566
29910
|
|
|
29567
29911
|
var StyledRow = styled.tr.withConfig({
|
|
@@ -29596,12 +29940,12 @@ var Row = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
29596
29940
|
children: children
|
|
29597
29941
|
}), void 0);
|
|
29598
29942
|
});
|
|
29599
|
-
var templateObject_1$
|
|
29943
|
+
var templateObject_1$i, templateObject_2$d, templateObject_3$7, templateObject_4$6, templateObject_5$3, templateObject_6$2, templateObject_7$1;
|
|
29600
29944
|
|
|
29601
29945
|
var layoutStyle = function layoutStyle(layout) {
|
|
29602
29946
|
switch (layout) {
|
|
29603
29947
|
case 'center':
|
|
29604
|
-
return Ae(templateObject_1$
|
|
29948
|
+
return Ae(templateObject_1$h || (templateObject_1$h = __makeTemplateObject(["\n justify-content: center;\n "], ["\n justify-content: center;\n "])));
|
|
29605
29949
|
|
|
29606
29950
|
case 'right':
|
|
29607
29951
|
return Ae(templateObject_2$c || (templateObject_2$c = __makeTemplateObject(["\n justify-content: flex-end;\n "], ["\n justify-content: flex-end;\n "])));
|
|
@@ -29667,7 +30011,7 @@ var Cell = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
29667
30011
|
}), void 0)
|
|
29668
30012
|
}), void 0);
|
|
29669
30013
|
});
|
|
29670
|
-
var templateObject_1$
|
|
30014
|
+
var templateObject_1$h, templateObject_2$c, templateObject_3$6, templateObject_4$5, templateObject_5$2, templateObject_6$1;
|
|
29671
30015
|
|
|
29672
30016
|
var KeyboardArrowDown = createCommonjsModule(function (module, exports) {
|
|
29673
30017
|
|
|
@@ -29744,7 +30088,7 @@ var UnfoldMoreIcon = /*@__PURE__*/getDefaultExportFromCjs(UnfoldMore);
|
|
|
29744
30088
|
var SortIconWrapper = styled(IconWrapper$1).withConfig({
|
|
29745
30089
|
displayName: "SortCell__SortIconWrapper",
|
|
29746
30090
|
componentId: "sc-1l3jzvh-0"
|
|
29747
|
-
})(templateObject_1$
|
|
30091
|
+
})(templateObject_1$g || (templateObject_1$g = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), cellTokens.head.sortCell.icon.base);
|
|
29748
30092
|
var StyledCell = styled(Cell).withConfig({
|
|
29749
30093
|
displayName: "SortCell__StyledCell",
|
|
29750
30094
|
componentId: "sc-1l3jzvh-1"
|
|
@@ -29773,12 +30117,12 @@ var SortCell = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
29773
30117
|
children: [children, " ", IconRenderer(isSorted, sortOrder)]
|
|
29774
30118
|
}), void 0);
|
|
29775
30119
|
});
|
|
29776
|
-
var templateObject_1$
|
|
30120
|
+
var templateObject_1$g, templateObject_2$b;
|
|
29777
30121
|
|
|
29778
30122
|
var StyledFoot = styled.tfoot.withConfig({
|
|
29779
30123
|
displayName: "Foot__StyledFoot",
|
|
29780
30124
|
componentId: "sc-tfpehd-0"
|
|
29781
|
-
})(templateObject_1$
|
|
30125
|
+
})(templateObject_1$f || (templateObject_1$f = __makeTemplateObject([""], [""])));
|
|
29782
30126
|
var Foot = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
29783
30127
|
var children = _a.children,
|
|
29784
30128
|
rest = __rest(_a, ["children"]);
|
|
@@ -29791,14 +30135,14 @@ var Foot = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
29791
30135
|
children: children
|
|
29792
30136
|
}), void 0);
|
|
29793
30137
|
});
|
|
29794
|
-
var templateObject_1$
|
|
30138
|
+
var templateObject_1$f;
|
|
29795
30139
|
|
|
29796
30140
|
var Wrapper$1 = styled.div.withConfig({
|
|
29797
30141
|
displayName: "TableWrapper__Wrapper",
|
|
29798
30142
|
componentId: "sc-eb384b-0"
|
|
29799
30143
|
})(templateObject_2$a || (templateObject_2$a = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), function (_a) {
|
|
29800
30144
|
var overflowX = _a.overflowX;
|
|
29801
|
-
return overflowX && Ae(templateObject_1$
|
|
30145
|
+
return overflowX && Ae(templateObject_1$e || (templateObject_1$e = __makeTemplateObject(["\n overflow-x: auto;\n "], ["\n overflow-x: auto;\n "])));
|
|
29802
30146
|
}, scrollbarStyling);
|
|
29803
30147
|
var TableWrapper = function TableWrapper(_a) {
|
|
29804
30148
|
var children = _a.children,
|
|
@@ -29845,7 +30189,7 @@ var TableWrapper = function TableWrapper(_a) {
|
|
|
29845
30189
|
children: children
|
|
29846
30190
|
}), void 0);
|
|
29847
30191
|
};
|
|
29848
|
-
var templateObject_1$
|
|
30192
|
+
var templateObject_1$e, templateObject_2$a;
|
|
29849
30193
|
|
|
29850
30194
|
var Breadcrumb = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
29851
30195
|
var children = _a.children,
|
|
@@ -29931,7 +30275,7 @@ var breadcrumbTokens = {
|
|
|
29931
30275
|
var List$2 = styled.ol.withConfig({
|
|
29932
30276
|
displayName: "Breadcrumbs__List",
|
|
29933
30277
|
componentId: "sc-xdj21o-0"
|
|
29934
|
-
})(templateObject_1$
|
|
30278
|
+
})(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\n list-style: none;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n"], ["\n list-style: none;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n"])));
|
|
29935
30279
|
var ListItem$2 = styled.li.withConfig({
|
|
29936
30280
|
displayName: "Breadcrumbs__ListItem",
|
|
29937
30281
|
componentId: "sc-xdj21o-1"
|
|
@@ -29975,7 +30319,7 @@ var Breadcrumbs = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
29975
30319
|
}, void 0)
|
|
29976
30320
|
}), void 0);
|
|
29977
30321
|
});
|
|
29978
|
-
var templateObject_1$
|
|
30322
|
+
var templateObject_1$d, templateObject_2$9, templateObject_3$5, templateObject_4$4;
|
|
29979
30323
|
|
|
29980
30324
|
var ChevronLeftOutlined = createCommonjsModule(function (module, exports) {
|
|
29981
30325
|
|
|
@@ -30135,7 +30479,7 @@ var paginationTokens = {
|
|
|
30135
30479
|
var Nav = styled.nav.withConfig({
|
|
30136
30480
|
displayName: "Pagination__Nav",
|
|
30137
30481
|
componentId: "sc-5ltegq-0"
|
|
30138
|
-
})(templateObject_1$
|
|
30482
|
+
})(templateObject_1$c || (templateObject_1$c = __makeTemplateObject(["\n display: flex;\n align-items: center;\n"], ["\n display: flex;\n align-items: center;\n"])));
|
|
30139
30483
|
var List$1 = styled.ol.withConfig({
|
|
30140
30484
|
displayName: "Pagination__List",
|
|
30141
30485
|
componentId: "sc-5ltegq-1"
|
|
@@ -30336,7 +30680,7 @@ var Pagination = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30336
30680
|
}, void 0), navigationToBeRendered]
|
|
30337
30681
|
}), void 0);
|
|
30338
30682
|
});
|
|
30339
|
-
var templateObject_1$
|
|
30683
|
+
var templateObject_1$c, templateObject_2$8, templateObject_3$4, templateObject_4$3, templateObject_5$1, templateObject_6, templateObject_7;
|
|
30340
30684
|
|
|
30341
30685
|
var Colors$3 = ddsBaseTokens.colors,
|
|
30342
30686
|
Border$1 = ddsBaseTokens.border,
|
|
@@ -30361,7 +30705,7 @@ var DividerLine = styled.hr.withConfig({
|
|
|
30361
30705
|
componentId: "sc-ggdopz-0"
|
|
30362
30706
|
})(templateObject_2$7 || (templateObject_2$7 = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), dividerTokens.base, function (_a) {
|
|
30363
30707
|
var color = _a.color;
|
|
30364
|
-
return color && Ae(templateObject_1$
|
|
30708
|
+
return color && Ae(templateObject_1$b || (templateObject_1$b = __makeTemplateObject(["\n border-color: ", ";\n "], ["\n border-color: ", ";\n "])), dividerColors[color]);
|
|
30365
30709
|
});
|
|
30366
30710
|
var Divider = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
30367
30711
|
var _b = _a.color,
|
|
@@ -30376,7 +30720,7 @@ var Divider = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30376
30720
|
ref: ref
|
|
30377
30721
|
}, lineProps), void 0);
|
|
30378
30722
|
});
|
|
30379
|
-
var templateObject_1$
|
|
30723
|
+
var templateObject_1$b, templateObject_2$7;
|
|
30380
30724
|
|
|
30381
30725
|
var img$2 = "data:image/svg+xml,%3csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='6.7085' cy='6.7085' r='2.625' fill='%230B0D0E'/%3e%3c/svg%3e";
|
|
30382
30726
|
|
|
@@ -30443,10 +30787,10 @@ var StyledList = styled.ul.withConfig({
|
|
|
30443
30787
|
componentId: "sc-1f1c7eb-0"
|
|
30444
30788
|
})(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject(["\n ", "\n ul, ol {\n margin: 0;\n }\n *::selection {\n ", "\n }\n ", "\n ", "\n"], ["\n ", "\n ul, ol {\n margin: 0;\n }\n *::selection {\n ", "\n }\n ", "\n ", "\n"])), listTokens.base, typographyTokens.selection.base, function (_a) {
|
|
30445
30789
|
var typographyType = _a.typographyType;
|
|
30446
|
-
return typographyType && Ae(templateObject_1$
|
|
30790
|
+
return typographyType && Ae(templateObject_1$a || (templateObject_1$a = __makeTemplateObject(["\n ", "\n ul,\n ol {\n ", "\n }\n "], ["\n ", "\n ul,\n ol {\n ", "\n }\n "])), listTokens.sizes[typographyType], listTokens.sizes[typographyType]);
|
|
30447
30791
|
}, function (_a) {
|
|
30448
30792
|
var listType = _a.listType;
|
|
30449
|
-
return listType === 'unordered' ? Ae(templateObject_2$6 || (templateObject_2$6 = __makeTemplateObject(["\n padding-left: ", ";\n list-style: none;\n li {\n position: relative;\n padding-left: ", ";\n &:before {\n content: '';\n display: inline-block;\n height: 1em;\n width: 1em;\n position: absolute;\n top: ", ";\n left: 0;\n background-size: contain;\n background-repeat: no-repeat;\n background-image: url(", ");\n }\n ul > li:before {\n background-image: url(", ");\n }\n ul > li > ul > li:before {\n background-image: url(", ");\n }\n }\n "], ["\n padding-left: ", ";\n list-style: none;\n li {\n position: relative;\n padding-left: ", ";\n &:before {\n content: '';\n display: inline-block;\n height: 1em;\n width: 1em;\n position: absolute;\n top: ", ";\n left: 0;\n background-size: contain;\n background-repeat: no-repeat;\n background-image: url(", ");\n }\n ul > li:before {\n background-image: url(", ");\n }\n ul > li > ul > li:before {\n background-image: url(", ");\n }\n }\n "])), "calc(" + ulPaddingLeft + ")", "calc(" + liTextPadding + ")", "calc((" + listItemTokens.base.lineHeight + " / 2) - 0.5em )", img$2, img$1, img) : Ae(templateObject_3$3 || (templateObject_3$3 = __makeTemplateObject(["\n padding-left: ", ";\n & > li > ol {\n list-style-type: lower-alpha;\n }\n & > li > ol > li > ol {\n list-style-type: lower-roman;\n }\n "], ["\n padding-left: ", ";\n & > li > ol {\n list-style-type: lower-alpha;\n }\n & > li > ol > li > ol {\n list-style-type: lower-roman;\n }\n "])), listTokens.spaceLeft);
|
|
30793
|
+
return listType === 'unordered' ? Ae(templateObject_2$6 || (templateObject_2$6 = __makeTemplateObject(["\n padding-left: ", ";\n list-style: none;\n li {\n position: relative;\n padding-left: ", ";\n &:before {\n content: '';\n display: inline-block;\n height: 1em;\n width: 1em;\n position: absolute;\n top: ", ";\n left: 0;\n background-size: contain;\n background-repeat: no-repeat;\n // disable eslint to ensure double quotes in url due to svg data URI in image bundle that requires them, as the attributes use single quotes\n // eslint-disable-next-line\n // prettier-ignore\n background-image: url(\"", "\");\n }\n ul > li:before {\n // disable eslint to ensure double quotes in url due to svg data URI in image bundle that requires them, as the attributes use single quotes\n // eslint-disable-next-line\n // prettier-ignore\n background-image: url(\"", "\");\n }\n ul > li > ul > li:before {\n // disable eslint to ensure double quotes in url due to svg data URI in image bundle that requires them, as the attributes use single quotes\n // eslint-disable-next-line\n // prettier-ignore\n background-image: url(\"", "\");\n }\n }\n "], ["\n padding-left: ", ";\n list-style: none;\n li {\n position: relative;\n padding-left: ", ";\n &:before {\n content: '';\n display: inline-block;\n height: 1em;\n width: 1em;\n position: absolute;\n top: ", ";\n left: 0;\n background-size: contain;\n background-repeat: no-repeat;\n // disable eslint to ensure double quotes in url due to svg data URI in image bundle that requires them, as the attributes use single quotes\n // eslint-disable-next-line\n // prettier-ignore\n background-image: url(\"", "\");\n }\n ul > li:before {\n // disable eslint to ensure double quotes in url due to svg data URI in image bundle that requires them, as the attributes use single quotes\n // eslint-disable-next-line\n // prettier-ignore\n background-image: url(\"", "\");\n }\n ul > li > ul > li:before {\n // disable eslint to ensure double quotes in url due to svg data URI in image bundle that requires them, as the attributes use single quotes\n // eslint-disable-next-line\n // prettier-ignore\n background-image: url(\"", "\");\n }\n }\n "])), "calc(" + ulPaddingLeft + ")", "calc(" + liTextPadding + ")", "calc((" + listItemTokens.base.lineHeight + " / 2) - 0.5em )", img$2, img$1, img) : Ae(templateObject_3$3 || (templateObject_3$3 = __makeTemplateObject(["\n padding-left: ", ";\n & > li > ol {\n list-style-type: lower-alpha;\n }\n & > li > ol > li > ol {\n list-style-type: lower-roman;\n }\n "], ["\n padding-left: ", ";\n & > li > ol {\n list-style-type: lower-alpha;\n }\n & > li > ol > li > ol {\n list-style-type: lower-roman;\n }\n "])), listTokens.spaceLeft);
|
|
30450
30794
|
});
|
|
30451
30795
|
var List = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
30452
30796
|
var _b = _a.listType,
|
|
@@ -30469,12 +30813,12 @@ var List = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30469
30813
|
children: children
|
|
30470
30814
|
}), void 0);
|
|
30471
30815
|
});
|
|
30472
|
-
var templateObject_1$
|
|
30816
|
+
var templateObject_1$a, templateObject_2$6, templateObject_3$3, templateObject_4$2;
|
|
30473
30817
|
|
|
30474
30818
|
var StyledListItem = styled.li.withConfig({
|
|
30475
30819
|
displayName: "ListItem__StyledListItem",
|
|
30476
30820
|
componentId: "sc-17s9l0b-0"
|
|
30477
|
-
})(templateObject_1$
|
|
30821
|
+
})(templateObject_1$9 || (templateObject_1$9 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), listItemTokens.base);
|
|
30478
30822
|
var ListItem = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
30479
30823
|
var children = _a.children,
|
|
30480
30824
|
rest = __rest(_a, ["children"]);
|
|
@@ -30485,7 +30829,7 @@ var ListItem = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30485
30829
|
children: children
|
|
30486
30830
|
}), void 0);
|
|
30487
30831
|
});
|
|
30488
|
-
var templateObject_1$
|
|
30832
|
+
var templateObject_1$9;
|
|
30489
30833
|
|
|
30490
30834
|
var Spacing$4 = ddsBaseTokens.spacing,
|
|
30491
30835
|
FontPackages$4 = ddsBaseTokens.fontPackages,
|
|
@@ -30518,7 +30862,7 @@ var DList = styled.dl.withConfig({
|
|
|
30518
30862
|
componentId: "sc-1ob73hm-0"
|
|
30519
30863
|
})(templateObject_2$5 || (templateObject_2$5 = __makeTemplateObject(["\n margin: 0;\n *::selection {\n ", "\n }\n ", "\n & > dt:first-child {\n margin-top: ", ";\n }\n & > dd:last-child {\n margin-bottom: ", ";\n }\n dd + dt {\n margin-top: ", ";\n }\n"], ["\n margin: 0;\n *::selection {\n ", "\n }\n ", "\n & > dt:first-child {\n margin-top: ", ";\n }\n & > dd:last-child {\n margin-bottom: ", ";\n }\n dd + dt {\n margin-top: ", ";\n }\n"])), typographyTokens.selection.base, function (_a) {
|
|
30520
30864
|
var appearance = _a.appearance;
|
|
30521
|
-
return appearance && Ae(templateObject_1$
|
|
30865
|
+
return appearance && Ae(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject(["\n dt {\n ", "\n }\n "], ["\n dt {\n ", "\n }\n "])), descriptionListTermTokens.appearance[appearance].base);
|
|
30522
30866
|
}, descriptionListTermTokens.unwrappedTopAndBottomSpace, descriptionListTermTokens.unwrappedTopAndBottomSpace, descriptionListTermTokens.unwrappedBetweenSpace);
|
|
30523
30867
|
var DescriptionList = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
30524
30868
|
var _b = _a.appearance,
|
|
@@ -30535,12 +30879,12 @@ var DescriptionList = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30535
30879
|
children: children
|
|
30536
30880
|
}), void 0);
|
|
30537
30881
|
});
|
|
30538
|
-
var templateObject_1$
|
|
30882
|
+
var templateObject_1$8, templateObject_2$5;
|
|
30539
30883
|
|
|
30540
30884
|
var DListTerm = styled.dt.withConfig({
|
|
30541
30885
|
displayName: "DescriptionListTerm__DListTerm",
|
|
30542
30886
|
componentId: "sc-10w0rzr-0"
|
|
30543
|
-
})(templateObject_1$
|
|
30887
|
+
})(templateObject_1$7 || (templateObject_1$7 = __makeTemplateObject([""], [""])));
|
|
30544
30888
|
var DescriptionListTerm = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
30545
30889
|
var children = _a.children,
|
|
30546
30890
|
rest = __rest(_a, ["children"]);
|
|
@@ -30553,7 +30897,7 @@ var DescriptionListTerm = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30553
30897
|
children: children
|
|
30554
30898
|
}), void 0);
|
|
30555
30899
|
});
|
|
30556
|
-
var templateObject_1$
|
|
30900
|
+
var templateObject_1$7;
|
|
30557
30901
|
|
|
30558
30902
|
var Spacing$3 = ddsBaseTokens.spacing,
|
|
30559
30903
|
FontPackages$3 = ddsBaseTokens.fontPackages;
|
|
@@ -30576,7 +30920,7 @@ var descriptionListDescTokens = {
|
|
|
30576
30920
|
var DListDesc = styled.dd.withConfig({
|
|
30577
30921
|
displayName: "DescriptionListDesc__DListDesc",
|
|
30578
30922
|
componentId: "sc-1djcf0s-0"
|
|
30579
|
-
})(templateObject_1$
|
|
30923
|
+
})(templateObject_1$6 || (templateObject_1$6 = __makeTemplateObject(["\n ", "\n display: flex;\n align-items: center;\n margin-inline-start: 0;\n"], ["\n ", "\n display: flex;\n align-items: center;\n margin-inline-start: 0;\n"])), descriptionListDescTokens.base);
|
|
30580
30924
|
var StyledIconWrapper = styled(IconWrapper$1).withConfig({
|
|
30581
30925
|
displayName: "DescriptionListDesc__StyledIconWrapper",
|
|
30582
30926
|
componentId: "sc-1djcf0s-1"
|
|
@@ -30597,7 +30941,7 @@ var DescriptionListDesc = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30597
30941
|
}, void 0), " ", children]
|
|
30598
30942
|
}), void 0);
|
|
30599
30943
|
});
|
|
30600
|
-
var templateObject_1$
|
|
30944
|
+
var templateObject_1$6, templateObject_2$4;
|
|
30601
30945
|
|
|
30602
30946
|
var Spacing$2 = ddsBaseTokens.spacing;
|
|
30603
30947
|
var base$3 = {
|
|
@@ -30612,7 +30956,7 @@ var DListGroup = styled.div.withConfig({
|
|
|
30612
30956
|
componentId: "sc-jkdc0o-0"
|
|
30613
30957
|
})(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), descriptionListGroupTokens.base, function (_a) {
|
|
30614
30958
|
var margin = _a.margin;
|
|
30615
|
-
return margin && Ae(templateObject_1$
|
|
30959
|
+
return margin && Ae(templateObject_1$5 || (templateObject_1$5 = __makeTemplateObject(["\n margin: ", ";\n "], ["\n margin: ", ";\n "])), margin);
|
|
30616
30960
|
});
|
|
30617
30961
|
var DescriptionListGroup = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
30618
30962
|
var children = _a.children,
|
|
@@ -30627,7 +30971,7 @@ var DescriptionListGroup = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30627
30971
|
children: children
|
|
30628
30972
|
}), void 0);
|
|
30629
30973
|
});
|
|
30630
|
-
var templateObject_1$
|
|
30974
|
+
var templateObject_1$5, templateObject_2$3;
|
|
30631
30975
|
|
|
30632
30976
|
var Colors$1 = ddsBaseTokens.colors,
|
|
30633
30977
|
Border = ddsBaseTokens.border,
|
|
@@ -30697,7 +31041,7 @@ var Container = styled.div.withConfig({
|
|
|
30697
31041
|
componentId: "sc-410ao9-0"
|
|
30698
31042
|
})(templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject(["\n ", "\n &::selection, *::selection {\n ", "\n }\n transition: box-shadow 0.2s, border-color 0.2s;\n ", "\n ", "\n"], ["\n ", "\n &::selection, *::selection {\n ", "\n }\n transition: box-shadow 0.2s, border-color 0.2s;\n ", "\n ", "\n"])), cardTokens.base, typographyTokens.selection.base, function (_a) {
|
|
30699
31043
|
var color = _a.color;
|
|
30700
|
-
return color && Ae(templateObject_1$
|
|
31044
|
+
return color && Ae(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), cardTokens.colors[color].base);
|
|
30701
31045
|
}, function (_a) {
|
|
30702
31046
|
var cardType = _a.cardType;
|
|
30703
31047
|
return cardType === 'navigation' && Ae(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject(["\n text-decoration: none;\n &:hover {\n ", "\n }\n &:focus {\n outline: none;\n ", "\n }\n "], ["\n text-decoration: none;\n &:hover {\n ", "\n }\n &:focus {\n outline: none;\n ", "\n }\n "])), cardTokens.navigation.hover.base, cardTokens.navigation.focus.base);
|
|
@@ -30723,13 +31067,13 @@ var Card = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30723
31067
|
children: children
|
|
30724
31068
|
}), void 0);
|
|
30725
31069
|
});
|
|
30726
|
-
var templateObject_1$
|
|
31070
|
+
var templateObject_1$4, templateObject_2$2, templateObject_3$2;
|
|
30727
31071
|
|
|
30728
31072
|
var Wrapper = styled.div.withConfig({
|
|
30729
31073
|
displayName: "CardAccordion__Wrapper",
|
|
30730
31074
|
componentId: "sc-1ctxrby-0"
|
|
30731
|
-
})(templateObject_1$
|
|
30732
|
-
var nextUniqueId = 0;
|
|
31075
|
+
})(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject([""], [""])));
|
|
31076
|
+
var nextUniqueId$1 = 0;
|
|
30733
31077
|
var CardAccordion = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
30734
31078
|
var isExpanded = _a.isExpanded,
|
|
30735
31079
|
id = _a.id,
|
|
@@ -30740,7 +31084,7 @@ var CardAccordion = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30740
31084
|
expanded = _b[0],
|
|
30741
31085
|
setExpanded = _b[1];
|
|
30742
31086
|
|
|
30743
|
-
var uniqueId = nextUniqueId++;
|
|
31087
|
+
var uniqueId = nextUniqueId$1++;
|
|
30744
31088
|
var accordionId = useState(id !== null && id !== void 0 ? id : "cardAccordion-" + uniqueId)[0];
|
|
30745
31089
|
useEffect(function () {
|
|
30746
31090
|
setExpanded(isExpanded);
|
|
@@ -30773,7 +31117,7 @@ var CardAccordion = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30773
31117
|
children: Children$1
|
|
30774
31118
|
}), void 0);
|
|
30775
31119
|
});
|
|
30776
|
-
var templateObject_1$
|
|
31120
|
+
var templateObject_1$3;
|
|
30777
31121
|
|
|
30778
31122
|
var Spacing$1 = ddsBaseTokens.spacing,
|
|
30779
31123
|
FontPackages$1 = ddsBaseTokens.fontPackages,
|
|
@@ -30802,7 +31146,7 @@ var cardAccordionHeaderTokens = {
|
|
|
30802
31146
|
var ContentWrapper = styled.div.withConfig({
|
|
30803
31147
|
displayName: "CardAccordionHeader__ContentWrapper",
|
|
30804
31148
|
componentId: "sc-1qs6bkj-0"
|
|
30805
|
-
})(templateObject_1$
|
|
31149
|
+
})(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject([""], [""])));
|
|
30806
31150
|
var HeaderContainer = styled.div.withConfig({
|
|
30807
31151
|
displayName: "CardAccordionHeader__HeaderContainer",
|
|
30808
31152
|
componentId: "sc-1qs6bkj-1"
|
|
@@ -30872,7 +31216,7 @@ var CardAccordionHeader = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30872
31216
|
}), void 0)
|
|
30873
31217
|
}), void 0);
|
|
30874
31218
|
});
|
|
30875
|
-
var templateObject_1$
|
|
31219
|
+
var templateObject_1$2, templateObject_2$1, templateObject_3$1, templateObject_4$1, templateObject_5;
|
|
30876
31220
|
|
|
30877
31221
|
var Spacing = ddsBaseTokens.spacing,
|
|
30878
31222
|
FontPackages = ddsBaseTokens.fontPackages;
|
|
@@ -30885,7 +31229,7 @@ var cardAccordionBodyTokens = {
|
|
|
30885
31229
|
base: base
|
|
30886
31230
|
};
|
|
30887
31231
|
|
|
30888
|
-
var expandingAnimation = Ae(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n transition: visibility 0.3s, max-height 0.2s cubic-bezier(0.4, 0, 0.2, 1);\n"], ["\n transition: visibility 0.3s, max-height 0.2s cubic-bezier(0.4, 0, 0.2, 1);\n"])));
|
|
31232
|
+
var expandingAnimation = Ae(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n transition: visibility 0.3s, max-height 0.2s cubic-bezier(0.4, 0, 0.2, 1);\n"], ["\n transition: visibility 0.3s, max-height 0.2s cubic-bezier(0.4, 0, 0.2, 1);\n"])));
|
|
30889
31233
|
var Body = styled.div.withConfig({
|
|
30890
31234
|
displayName: "CardAccordionBody__Body",
|
|
30891
31235
|
componentId: "sc-igsnpx-0"
|
|
@@ -30943,6 +31287,72 @@ var CardAccordionBody = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30943
31287
|
}), void 0)
|
|
30944
31288
|
}), void 0);
|
|
30945
31289
|
});
|
|
30946
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
31290
|
+
var templateObject_1$1, templateObject_2, templateObject_3, templateObject_4;
|
|
31291
|
+
|
|
31292
|
+
var getWidth = function getWidth(type) {
|
|
31293
|
+
return type === 'date' ? '205px' : type === 'datetime-local' ? '235px' : '320px';
|
|
31294
|
+
};
|
|
31295
|
+
|
|
31296
|
+
var StyledInput = styled(Input$2).withConfig({
|
|
31297
|
+
displayName: "Datepicker__StyledInput",
|
|
31298
|
+
componentId: "sc-1ijxhje-0"
|
|
31299
|
+
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ::-webkit-calendar-picker-indicator {\n margin-left: 0px;\n }\n"], ["\n ::-webkit-calendar-picker-indicator {\n margin-left: 0px;\n }\n"])));
|
|
31300
|
+
var nextUniqueId = 0;
|
|
31301
|
+
var Datepicker = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
31302
|
+
var id = _a.id,
|
|
31303
|
+
_b = _a.type,
|
|
31304
|
+
type = _b === void 0 ? 'date' : _b,
|
|
31305
|
+
required = _a.required,
|
|
31306
|
+
readOnly = _a.readOnly,
|
|
31307
|
+
disabled = _a.disabled,
|
|
31308
|
+
label = _a.label,
|
|
31309
|
+
width = _a.width,
|
|
31310
|
+
errorMessage = _a.errorMessage,
|
|
31311
|
+
tip = _a.tip,
|
|
31312
|
+
style = _a.style,
|
|
31313
|
+
className = _a.className,
|
|
31314
|
+
rest = __rest(_a, ["id", "type", "required", "readOnly", "disabled", "label", "width", "errorMessage", "tip", "style", "className"]);
|
|
31315
|
+
|
|
31316
|
+
var uniqueId = useState(id !== null && id !== void 0 ? id : "datepickerInput-" + nextUniqueId++)[0];
|
|
31317
|
+
var componentWidth = width ? width : getWidth(type);
|
|
31318
|
+
|
|
31319
|
+
var inputProps = __assign({
|
|
31320
|
+
label: label,
|
|
31321
|
+
errorMessage: errorMessage,
|
|
31322
|
+
ref: ref,
|
|
31323
|
+
readOnly: readOnly,
|
|
31324
|
+
tabIndex: readOnly ? -1 : 0,
|
|
31325
|
+
required: required,
|
|
31326
|
+
disabled: disabled,
|
|
31327
|
+
type: type
|
|
31328
|
+
}, rest);
|
|
31329
|
+
|
|
31330
|
+
var outerInputContainerProps = {
|
|
31331
|
+
width: componentWidth,
|
|
31332
|
+
style: style,
|
|
31333
|
+
className: className
|
|
31334
|
+
};
|
|
31335
|
+
var labelProps = {
|
|
31336
|
+
htmlFor: uniqueId,
|
|
31337
|
+
disabled: disabled
|
|
31338
|
+
};
|
|
31339
|
+
return jsxRuntime.jsxs(OuterInputContainer, __assign({}, outerInputContainerProps, {
|
|
31340
|
+
children: [jsxRuntime.jsxs(InputContainer$2, {
|
|
31341
|
+
children: [jsxRuntime.jsx(StyledInput, __assign({}, inputProps), void 0), label && jsxRuntime.jsxs(SingleLineLabel, __assign({}, labelProps, {
|
|
31342
|
+
typographyType: "supportingStyleLabel01",
|
|
31343
|
+
forwardedAs: "label"
|
|
31344
|
+
}, {
|
|
31345
|
+
children: [label, " ", required && jsxRuntime.jsx(RequiredMarker, {}, void 0)]
|
|
31346
|
+
}), void 0)]
|
|
31347
|
+
}, void 0), errorMessage && jsxRuntime.jsx(InputMessage, {
|
|
31348
|
+
message: errorMessage,
|
|
31349
|
+
messageType: "error"
|
|
31350
|
+
}, void 0), tip && !errorMessage && jsxRuntime.jsx(InputMessage, {
|
|
31351
|
+
message: tip,
|
|
31352
|
+
messageType: "tip"
|
|
31353
|
+
}, void 0)]
|
|
31354
|
+
}), void 0);
|
|
31355
|
+
});
|
|
31356
|
+
var templateObject_1;
|
|
30947
31357
|
|
|
30948
|
-
export { Body$1 as Body, Breadcrumb, Breadcrumbs, Button, Card, CardAccordion, CardAccordionBody, CardAccordionHeader, Cell, Checkbox, CheckboxGroup, DescriptionList, DescriptionListDesc, DescriptionListGroup, DescriptionListTerm, Divider, Foot, GlobalMessage, Head, IconWrapper$1 as IconWrapper, List, ListItem, LocalMessage, Pagination, RadioButton, RadioButtonGroup, Row, Search, Select, SortCell, Spinner, Table, TableWrapper, TextInput, Typography, getTextColor, isTextColor, searchFilter };
|
|
31358
|
+
export { Body$1 as Body, Breadcrumb, Breadcrumbs, Button, Card, CardAccordion, CardAccordionBody, CardAccordionHeader, Cell, Checkbox, CheckboxGroup, Datepicker, DescriptionList, DescriptionListDesc, DescriptionListGroup, DescriptionListTerm, Divider, Foot, GlobalMessage, Head, IconWrapper$1 as IconWrapper, List, ListItem, LocalMessage, Pagination, RadioButton, RadioButtonGroup, Row, Search, Select, SortCell, Spinner, Table, TableWrapper, TextInput, Typography, getTextColor, isTextColor, searchFilter };
|