@servicetitan/anvil2-ext-atlas 2.0.2 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist/artifact-card-Df6YXh4B.js +1538 -0
- package/dist/artifact-card-Df6YXh4B.js.map +1 -0
- package/dist/artifact-card.css +148 -0
- package/dist/artifact-card.d.ts +1 -0
- package/dist/artifact-card.js +2 -0
- package/dist/artifact-card.js.map +1 -0
- package/dist/artifact-panel-CNzdjBT8.js +740 -0
- package/dist/artifact-panel-CNzdjBT8.js.map +1 -0
- package/dist/artifact-panel-layout-sm-DM-lO.js +74 -0
- package/dist/artifact-panel-layout-sm-DM-lO.js.map +1 -0
- package/dist/artifact-panel-layout.css +8 -0
- package/dist/artifact-panel-layout.d.ts +1 -0
- package/dist/artifact-panel-layout.js +2 -0
- package/dist/artifact-panel-layout.js.map +1 -0
- package/dist/artifact-panel.css +57 -0
- package/dist/artifact-panel.d.ts +1 -0
- package/dist/artifact-panel.js +2 -0
- package/dist/artifact-panel.js.map +1 -0
- package/dist/{atlas-header-Cxxvgc7g.js → atlas-header-C-Bw_KyV.js} +2 -2
- package/dist/{atlas-header-Cxxvgc7g.js.map → atlas-header-C-Bw_KyV.js.map} +1 -1
- package/dist/atlas-header.d.ts +0 -1
- package/dist/atlas-header.js +1 -1
- package/dist/chat-composer-rich.d.ts +0 -1
- package/dist/{chat-window-DBUlbdg8.js → chat-window-Eh0GzLcm.js} +2 -2
- package/dist/{chat-window-DBUlbdg8.js.map → chat-window-Eh0GzLcm.js.map} +1 -1
- package/dist/chat.d.ts +0 -1
- package/dist/chat.js +1 -1
- package/dist/close-D_W7cQWu.js +6 -0
- package/dist/close-D_W7cQWu.js.map +1 -0
- package/dist/content.d.ts +0 -1
- package/dist/footer.d.ts +0 -1
- package/dist/get-rem-in-px-C7Qva5Vi.js +19 -0
- package/dist/get-rem-in-px-C7Qva5Vi.js.map +1 -0
- package/dist/{header-DFb1Mw8C.js → header-CZ2pSpzC.js} +4 -5
- package/dist/header-CZ2pSpzC.js.map +1 -0
- package/dist/header.css +4 -3
- package/dist/header.d.ts +0 -1
- package/dist/header.js +1 -1
- package/dist/{pulse-loader-DUrtKYC5.js → index-CbD8E7Xe.js} +4 -86
- package/dist/index-CbD8E7Xe.js.map +1 -0
- package/dist/index.d.ts +1 -3
- package/dist/index.js +10 -7
- package/dist/index.js.map +1 -1
- package/dist/infinite-content.d.ts +0 -1
- package/dist/{loader-CFGGtqVo.js → loader-Cj2z0xxN.js} +2 -2
- package/dist/{loader-CFGGtqVo.js.map → loader-Cj2z0xxN.js.map} +1 -1
- package/dist/loader.d.ts +0 -1
- package/dist/loader.js +2 -2
- package/dist/markdown-text.d.ts +0 -1
- package/dist/messages.d.ts +0 -1
- package/dist/messages.js +1 -1
- package/dist/notification-card.d.ts +0 -1
- package/dist/{proxy-BJr91CAa.js → proxy-eqFuZMGk.js} +2 -2
- package/dist/{proxy-BJr91CAa.js.map → proxy-eqFuZMGk.js.map} +1 -1
- package/dist/pulse-loader-D0pbsphx.js +89 -0
- package/dist/pulse-loader-D0pbsphx.js.map +1 -0
- package/dist/recommendations.d.ts +0 -1
- package/dist/recommendations.js +1 -1
- package/dist/screens.d.ts +0 -1
- package/dist/{single-recommendation-card-CV75jkZb.js → single-recommendation-card-D_FiwLm1.js} +2 -2
- package/dist/{single-recommendation-card-CV75jkZb.js.map → single-recommendation-card-D_FiwLm1.js.map} +1 -1
- package/dist/spinner.d.ts +0 -1
- package/dist/src/components/artifact-card/artifact-card.d.ts +50 -0
- package/dist/src/components/artifact-card/index.d.ts +1 -0
- package/dist/src/components/artifact-panel/artifact-panel.d.ts +69 -0
- package/dist/src/components/artifact-panel/index.d.ts +1 -0
- package/dist/src/components/artifact-panel-layout/artifact-panel-layout.d.ts +37 -0
- package/dist/src/components/artifact-panel-layout/context.d.ts +38 -0
- package/dist/src/components/artifact-panel-layout/index.d.ts +1 -0
- package/dist/{components → src/components}/index.d.ts +3 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/utils/get-rem-in-px.d.ts +10 -0
- package/dist/suggestion.d.ts +0 -1
- package/dist/toolbox.d.ts +0 -1
- package/dist/{user-message-CNRLUNb-.js → user-message-Cc5g9JGK.js} +4 -4
- package/dist/{user-message-CNRLUNb-.js.map → user-message-Cc5g9JGK.js.map} +1 -1
- package/dist/user-message.css +27 -27
- package/package.json +8 -8
- package/dist/header-DFb1Mw8C.js.map +0 -1
- package/dist/pulse-loader-DUrtKYC5.js.map +0 -1
- /package/dist/{components → src/components}/atlas-header/atlas-header.d.ts +0 -0
- /package/dist/{components → src/components}/atlas-header/index.d.ts +0 -0
- /package/dist/{components → src/components}/chat/chat-window.d.ts +0 -0
- /package/dist/{components → src/components}/chat/index.d.ts +0 -0
- /package/dist/{components → src/components}/chat-composer-rich/chat-composer-rich.d.ts +0 -0
- /package/dist/{components → src/components}/chat-composer-rich/index.d.ts +0 -0
- /package/dist/{components → src/components}/content/content.d.ts +0 -0
- /package/dist/{components → src/components}/content/index.d.ts +0 -0
- /package/dist/{components → src/components}/footer/footer.d.ts +0 -0
- /package/dist/{components → src/components}/footer/index.d.ts +0 -0
- /package/dist/{components → src/components}/header/header.d.ts +0 -0
- /package/dist/{components → src/components}/header/index.d.ts +0 -0
- /package/dist/{components → src/components}/infinite-content/hooks/use-infinite-scroll.d.ts +0 -0
- /package/dist/{components → src/components}/infinite-content/hooks/use-scroll-callback.d.ts +0 -0
- /package/dist/{components → src/components}/infinite-content/index.d.ts +0 -0
- /package/dist/{components → src/components}/infinite-content/infinite-content.d.ts +0 -0
- /package/dist/{components → src/components}/loader/index.d.ts +0 -0
- /package/dist/{components → src/components}/loader/loader.d.ts +0 -0
- /package/dist/{components → src/components}/loader/pulse-loader.d.ts +0 -0
- /package/dist/{components → src/components}/markdown-text/index.d.ts +0 -0
- /package/dist/{components → src/components}/markdown-text/markdown-text.d.ts +0 -0
- /package/dist/{components → src/components}/messages/assistant-message.d.ts +0 -0
- /package/dist/{components → src/components}/messages/error-message.d.ts +0 -0
- /package/dist/{components → src/components}/messages/index.d.ts +0 -0
- /package/dist/{components → src/components}/messages/markdown-message.d.ts +0 -0
- /package/dist/{components → src/components}/messages/message-interface.d.ts +0 -0
- /package/dist/{components → src/components}/messages/small-action.d.ts +0 -0
- /package/dist/{components → src/components}/messages/system-message.d.ts +0 -0
- /package/dist/{components → src/components}/messages/user-message.d.ts +0 -0
- /package/dist/{components → src/components}/notification-card/index.d.ts +0 -0
- /package/dist/{components → src/components}/notification-card/notification-card.d.ts +0 -0
- /package/dist/{components → src/components}/recommendations/confirmation-card/confirmation-card.d.ts +0 -0
- /package/dist/{components → src/components}/recommendations/confirmation-card/index.d.ts +0 -0
- /package/dist/{components → src/components}/recommendations/index.d.ts +0 -0
- /package/dist/{components → src/components}/recommendations/multiple-recommendation-card/index.d.ts +0 -0
- /package/dist/{components → src/components}/recommendations/multiple-recommendation-card/multiple-recommendation-card.d.ts +0 -0
- /package/dist/{components → src/components}/recommendations/shared-interfaces.d.ts +0 -0
- /package/dist/{components → src/components}/recommendations/single-recommendation-card/index.d.ts +0 -0
- /package/dist/{components → src/components}/recommendations/single-recommendation-card/single-recommendation-card.d.ts +0 -0
- /package/dist/{components → src/components}/screens/index.d.ts +0 -0
- /package/dist/{components → src/components}/screens/system-error.d.ts +0 -0
- /package/dist/{components → src/components}/screens/welcome.d.ts +0 -0
- /package/dist/{components → src/components}/spinner/index.d.ts +0 -0
- /package/dist/{components → src/components}/spinner/spinner.d.ts +0 -0
- /package/dist/{components → src/components}/suggestion/index.d.ts +0 -0
- /package/dist/{components → src/components}/suggestion/suggestion.d.ts +0 -0
- /package/dist/{components → src/components}/toolbox/index.d.ts +0 -0
- /package/dist/{components → src/components}/toolbox/toolbox.d.ts +0 -0
- /package/dist/{components → src/components}/toolbox/toolbox.enums.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/index.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/use-draggable.d.ts +0 -0
- /package/dist/{types → src/types}/index.d.ts +0 -0
|
@@ -0,0 +1,1538 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { useState, useEffect, useMemo, forwardRef, useRef } from 'react';
|
|
4
|
+
import { c as classNames } from './index-DDXI3m_u.js';
|
|
5
|
+
import { Text, Flex, Icon } from '@servicetitan/anvil2';
|
|
6
|
+
|
|
7
|
+
import './artifact-card.css';function getDefaultExportFromCjs (x) {
|
|
8
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
var classnames = {exports: {}};
|
|
12
|
+
|
|
13
|
+
/*!
|
|
14
|
+
Copyright (c) 2018 Jed Watson.
|
|
15
|
+
Licensed under the MIT License (MIT), see
|
|
16
|
+
http://jedwatson.github.io/classnames
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
var hasRequiredClassnames;
|
|
20
|
+
|
|
21
|
+
function requireClassnames () {
|
|
22
|
+
if (hasRequiredClassnames) return classnames.exports;
|
|
23
|
+
hasRequiredClassnames = 1;
|
|
24
|
+
(function (module) {
|
|
25
|
+
/* global define */
|
|
26
|
+
|
|
27
|
+
(function () {
|
|
28
|
+
|
|
29
|
+
var hasOwn = {}.hasOwnProperty;
|
|
30
|
+
|
|
31
|
+
function classNames () {
|
|
32
|
+
var classes = '';
|
|
33
|
+
|
|
34
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
35
|
+
var arg = arguments[i];
|
|
36
|
+
if (arg) {
|
|
37
|
+
classes = appendClass(classes, parseValue(arg));
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return classes;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function parseValue (arg) {
|
|
45
|
+
if (typeof arg === 'string' || typeof arg === 'number') {
|
|
46
|
+
return arg;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (typeof arg !== 'object') {
|
|
50
|
+
return '';
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
if (Array.isArray(arg)) {
|
|
54
|
+
return classNames.apply(null, arg);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
|
|
58
|
+
return arg.toString();
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
var classes = '';
|
|
62
|
+
|
|
63
|
+
for (var key in arg) {
|
|
64
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
65
|
+
classes = appendClass(classes, key);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return classes;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
function appendClass (value, newClass) {
|
|
73
|
+
if (!newClass) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if (value) {
|
|
78
|
+
return value + ' ' + newClass;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return value + newClass;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (module.exports) {
|
|
85
|
+
classNames.default = classNames;
|
|
86
|
+
module.exports = classNames;
|
|
87
|
+
} else {
|
|
88
|
+
window.classNames = classNames;
|
|
89
|
+
}
|
|
90
|
+
}());
|
|
91
|
+
} (classnames));
|
|
92
|
+
return classnames.exports;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
var classnamesExports = requireClassnames();
|
|
96
|
+
const cx = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* @typedef {Object} TokenValue
|
|
100
|
+
* @property {string} value
|
|
101
|
+
*/
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* @typedef {Object} TokenWithAppearance
|
|
105
|
+
* @property {string} value
|
|
106
|
+
* @property {Object} extensions
|
|
107
|
+
* @property {Object} extensions.appearance
|
|
108
|
+
* @property {Object} extensions.appearance.dark
|
|
109
|
+
* @property {string} extensions.appearance.dark.value
|
|
110
|
+
*/
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* @type {TokenValue}
|
|
114
|
+
*/
|
|
115
|
+
const BreakpointSm = { value: "640px" };
|
|
116
|
+
/**
|
|
117
|
+
* @type {TokenValue}
|
|
118
|
+
*/
|
|
119
|
+
const BreakpointMd = { value: "768px" };
|
|
120
|
+
/**
|
|
121
|
+
* @type {TokenValue}
|
|
122
|
+
*/
|
|
123
|
+
const BreakpointLg = { value: "1024px" };
|
|
124
|
+
/**
|
|
125
|
+
* @type {TokenValue}
|
|
126
|
+
*/
|
|
127
|
+
const BreakpointXl = { value: "1280px" };
|
|
128
|
+
/**
|
|
129
|
+
* @type {TokenValue}
|
|
130
|
+
*/
|
|
131
|
+
const BreakpointXxl = { value: "1536px" };
|
|
132
|
+
/**
|
|
133
|
+
* @type {TokenValue}
|
|
134
|
+
*/
|
|
135
|
+
const ColorNeutral0 = { value: "#ffffff" };
|
|
136
|
+
/**
|
|
137
|
+
* @type {TokenValue}
|
|
138
|
+
*/
|
|
139
|
+
const ColorNeutral10 = { value: "#fcfcfc" };
|
|
140
|
+
/**
|
|
141
|
+
* @type {TokenValue}
|
|
142
|
+
*/
|
|
143
|
+
const ColorNeutral20 = { value: "#f9f9f9" };
|
|
144
|
+
/**
|
|
145
|
+
* @type {TokenValue}
|
|
146
|
+
*/
|
|
147
|
+
const ColorNeutral30 = { value: "#f6f6f6" };
|
|
148
|
+
/**
|
|
149
|
+
* @type {TokenValue}
|
|
150
|
+
*/
|
|
151
|
+
const ColorNeutral40 = { value: "#f1f1f1" };
|
|
152
|
+
/**
|
|
153
|
+
* @type {TokenValue}
|
|
154
|
+
*/
|
|
155
|
+
const ColorNeutral50 = { value: "#eeeeee" };
|
|
156
|
+
/**
|
|
157
|
+
* @type {TokenValue}
|
|
158
|
+
*/
|
|
159
|
+
const ColorNeutral60 = { value: "#ededed" };
|
|
160
|
+
/**
|
|
161
|
+
* @type {TokenValue}
|
|
162
|
+
*/
|
|
163
|
+
const ColorNeutral70 = { value: "#e8e8e8" };
|
|
164
|
+
/**
|
|
165
|
+
* @type {TokenValue}
|
|
166
|
+
*/
|
|
167
|
+
const ColorNeutral80 = { value: "#e6e6e6" };
|
|
168
|
+
/**
|
|
169
|
+
* @type {TokenValue}
|
|
170
|
+
*/
|
|
171
|
+
const ColorNeutral90 = { value: "#e5e5e5" };
|
|
172
|
+
/**
|
|
173
|
+
* @type {TokenValue}
|
|
174
|
+
*/
|
|
175
|
+
const ColorNeutral100 = { value: "#dfdfdf" };
|
|
176
|
+
/**
|
|
177
|
+
* @type {TokenValue}
|
|
178
|
+
*/
|
|
179
|
+
const ColorNeutral200 = { value: "#c4c4c4" };
|
|
180
|
+
/**
|
|
181
|
+
* @type {TokenValue}
|
|
182
|
+
*/
|
|
183
|
+
const ColorNeutral300 = { value: "#a8a8a8" };
|
|
184
|
+
/**
|
|
185
|
+
* @type {TokenValue}
|
|
186
|
+
*/
|
|
187
|
+
const ColorNeutral400 = { value: "#8b8b8b" };
|
|
188
|
+
/**
|
|
189
|
+
* @type {TokenValue}
|
|
190
|
+
*/
|
|
191
|
+
const ColorNeutral500 = { value: "#707070" };
|
|
192
|
+
/**
|
|
193
|
+
* @type {TokenValue}
|
|
194
|
+
*/
|
|
195
|
+
const ColorNeutral600 = { value: "#545454" };
|
|
196
|
+
/**
|
|
197
|
+
* @type {TokenValue}
|
|
198
|
+
*/
|
|
199
|
+
const ColorNeutral700 = { value: "#404040" };
|
|
200
|
+
/**
|
|
201
|
+
* @type {TokenValue}
|
|
202
|
+
*/
|
|
203
|
+
const ColorNeutral800 = { value: "#292929" };
|
|
204
|
+
/**
|
|
205
|
+
* @type {TokenValue}
|
|
206
|
+
*/
|
|
207
|
+
const ColorNeutral900 = { value: "#1a1a1a" };
|
|
208
|
+
/**
|
|
209
|
+
* @type {TokenValue}
|
|
210
|
+
*/
|
|
211
|
+
const ColorNeutral950 = { value: "#040404" };
|
|
212
|
+
/**
|
|
213
|
+
* @type {TokenValue}
|
|
214
|
+
*/
|
|
215
|
+
const ColorBlue10 = { value: "#fafcff" };
|
|
216
|
+
/**
|
|
217
|
+
* @type {TokenValue}
|
|
218
|
+
*/
|
|
219
|
+
const ColorBlue50 = { value: "#e6f1ff" };
|
|
220
|
+
/**
|
|
221
|
+
* @type {TokenValue}
|
|
222
|
+
*/
|
|
223
|
+
const ColorBlue100 = { value: "#cce3ff" };
|
|
224
|
+
/**
|
|
225
|
+
* @type {TokenValue}
|
|
226
|
+
*/
|
|
227
|
+
const ColorBlue200 = { value: "#9ecaff" };
|
|
228
|
+
/**
|
|
229
|
+
* @type {TokenValue}
|
|
230
|
+
*/
|
|
231
|
+
const ColorBlue300 = { value: "#70b1ff" };
|
|
232
|
+
/**
|
|
233
|
+
* @type {TokenValue}
|
|
234
|
+
*/
|
|
235
|
+
const ColorBlue400 = { value: "#3d95ff" };
|
|
236
|
+
/**
|
|
237
|
+
* @type {TokenValue}
|
|
238
|
+
*/
|
|
239
|
+
const ColorBlue500 = { value: "#1a82ff" };
|
|
240
|
+
/**
|
|
241
|
+
* @type {TokenValue}
|
|
242
|
+
*/
|
|
243
|
+
const ColorBlue600 = { value: "#0265dc" };
|
|
244
|
+
/**
|
|
245
|
+
* @type {TokenValue}
|
|
246
|
+
*/
|
|
247
|
+
const ColorBlue700 = { value: "#1d4ca3" };
|
|
248
|
+
/**
|
|
249
|
+
* @type {TokenValue}
|
|
250
|
+
*/
|
|
251
|
+
const ColorBlue800 = { value: "#003472" };
|
|
252
|
+
/**
|
|
253
|
+
* @type {TokenValue}
|
|
254
|
+
*/
|
|
255
|
+
const ColorBlue900 = { value: "#002047" };
|
|
256
|
+
/**
|
|
257
|
+
* @type {TokenValue}
|
|
258
|
+
*/
|
|
259
|
+
const ColorBlue950 = { value: "#000b19" };
|
|
260
|
+
/**
|
|
261
|
+
* @type {TokenValue}
|
|
262
|
+
*/
|
|
263
|
+
const ColorRed10 = { value: "#fffbfa" };
|
|
264
|
+
/**
|
|
265
|
+
* @type {TokenValue}
|
|
266
|
+
*/
|
|
267
|
+
const ColorRed50 = { value: "#ffe9e5" };
|
|
268
|
+
/**
|
|
269
|
+
* @type {TokenValue}
|
|
270
|
+
*/
|
|
271
|
+
const ColorRed100 = { value: "#ffd4cc" };
|
|
272
|
+
/**
|
|
273
|
+
* @type {TokenValue}
|
|
274
|
+
*/
|
|
275
|
+
const ColorRed200 = { value: "#ffac9e" };
|
|
276
|
+
/**
|
|
277
|
+
* @type {TokenValue}
|
|
278
|
+
*/
|
|
279
|
+
const ColorRed300 = { value: "#ff8670" };
|
|
280
|
+
/**
|
|
281
|
+
* @type {TokenValue}
|
|
282
|
+
*/
|
|
283
|
+
const ColorRed400 = { value: "#ff5b3d" };
|
|
284
|
+
/**
|
|
285
|
+
* @type {TokenValue}
|
|
286
|
+
*/
|
|
287
|
+
const ColorRed500 = { value: "#ff3914" };
|
|
288
|
+
/**
|
|
289
|
+
* @type {TokenValue}
|
|
290
|
+
*/
|
|
291
|
+
const ColorRed600 = { value: "#d62100" };
|
|
292
|
+
/**
|
|
293
|
+
* @type {TokenValue}
|
|
294
|
+
*/
|
|
295
|
+
const ColorRed700 = { value: "#a31900" };
|
|
296
|
+
/**
|
|
297
|
+
* @type {TokenValue}
|
|
298
|
+
*/
|
|
299
|
+
const ColorRed800 = { value: "#731100" };
|
|
300
|
+
/**
|
|
301
|
+
* @type {TokenValue}
|
|
302
|
+
*/
|
|
303
|
+
const ColorRed900 = { value: "#470b00" };
|
|
304
|
+
/**
|
|
305
|
+
* @type {TokenValue}
|
|
306
|
+
*/
|
|
307
|
+
const ColorRed950 = { value: "#0a0200" };
|
|
308
|
+
/**
|
|
309
|
+
* @type {TokenValue}
|
|
310
|
+
*/
|
|
311
|
+
const ColorGreen10 = { value: "#f5fefb" };
|
|
312
|
+
/**
|
|
313
|
+
* @type {TokenValue}
|
|
314
|
+
*/
|
|
315
|
+
const ColorGreen50 = { value: "#d3fded" };
|
|
316
|
+
/**
|
|
317
|
+
* @type {TokenValue}
|
|
318
|
+
*/
|
|
319
|
+
const ColorGreen100 = { value: "#b8f5dd" };
|
|
320
|
+
/**
|
|
321
|
+
* @type {TokenValue}
|
|
322
|
+
*/
|
|
323
|
+
const ColorGreen200 = { value: "#70ebbc" };
|
|
324
|
+
/**
|
|
325
|
+
* @type {TokenValue}
|
|
326
|
+
*/
|
|
327
|
+
const ColorGreen300 = { value: "#3be3a2" };
|
|
328
|
+
/**
|
|
329
|
+
* @type {TokenValue}
|
|
330
|
+
*/
|
|
331
|
+
const ColorGreen400 = { value: "#0bd085" };
|
|
332
|
+
/**
|
|
333
|
+
* @type {TokenValue}
|
|
334
|
+
*/
|
|
335
|
+
const ColorGreen500 = { value: "#0aa86c" };
|
|
336
|
+
/**
|
|
337
|
+
* @type {TokenValue}
|
|
338
|
+
*/
|
|
339
|
+
const ColorGreen600 = { value: "#077e50" };
|
|
340
|
+
/**
|
|
341
|
+
* @type {TokenValue}
|
|
342
|
+
*/
|
|
343
|
+
const ColorGreen700 = { value: "#05613e" };
|
|
344
|
+
/**
|
|
345
|
+
* @type {TokenValue}
|
|
346
|
+
*/
|
|
347
|
+
const ColorGreen800 = { value: "#04482e" };
|
|
348
|
+
/**
|
|
349
|
+
* @type {TokenValue}
|
|
350
|
+
*/
|
|
351
|
+
const ColorGreen900 = { value: "#022c1c" };
|
|
352
|
+
/**
|
|
353
|
+
* @type {TokenValue}
|
|
354
|
+
*/
|
|
355
|
+
const ColorGreen950 = { value: "#010f0a" };
|
|
356
|
+
/**
|
|
357
|
+
* @type {TokenValue}
|
|
358
|
+
*/
|
|
359
|
+
const ColorBlueGrey10 = { value: "#f7f9fa" };
|
|
360
|
+
/**
|
|
361
|
+
* @type {TokenValue}
|
|
362
|
+
*/
|
|
363
|
+
const ColorBlueGrey50 = { value: "#e9eef2" };
|
|
364
|
+
/**
|
|
365
|
+
* @type {TokenValue}
|
|
366
|
+
*/
|
|
367
|
+
const ColorBlueGrey100 = { value: "#dce4ea" };
|
|
368
|
+
/**
|
|
369
|
+
* @type {TokenValue}
|
|
370
|
+
*/
|
|
371
|
+
const ColorBlueGrey200 = { value: "#b9c9d5" };
|
|
372
|
+
/**
|
|
373
|
+
* @type {TokenValue}
|
|
374
|
+
*/
|
|
375
|
+
const ColorBlueGrey300 = { value: "#99b1c2" };
|
|
376
|
+
/**
|
|
377
|
+
* @type {TokenValue}
|
|
378
|
+
*/
|
|
379
|
+
const ColorBlueGrey400 = { value: "#7899b0" };
|
|
380
|
+
/**
|
|
381
|
+
* @type {TokenValue}
|
|
382
|
+
*/
|
|
383
|
+
const ColorBlueGrey500 = { value: "#55768e" };
|
|
384
|
+
/**
|
|
385
|
+
* @type {TokenValue}
|
|
386
|
+
*/
|
|
387
|
+
const ColorBlueGrey600 = { value: "#445e71" };
|
|
388
|
+
/**
|
|
389
|
+
* @type {TokenValue}
|
|
390
|
+
*/
|
|
391
|
+
const ColorBlueGrey700 = { value: "#344856" };
|
|
392
|
+
/**
|
|
393
|
+
* @type {TokenValue}
|
|
394
|
+
*/
|
|
395
|
+
const ColorBlueGrey800 = { value: "#24333d" };
|
|
396
|
+
/**
|
|
397
|
+
* @type {TokenValue}
|
|
398
|
+
*/
|
|
399
|
+
const ColorBlueGrey900 = { value: "#192329" };
|
|
400
|
+
/**
|
|
401
|
+
* @type {TokenValue}
|
|
402
|
+
*/
|
|
403
|
+
const ColorBlueGrey950 = { value: "#090d10" };
|
|
404
|
+
/**
|
|
405
|
+
* @type {TokenValue}
|
|
406
|
+
*/
|
|
407
|
+
const ColorOrange10 = { value: "#fff8f1" };
|
|
408
|
+
/**
|
|
409
|
+
* @type {TokenValue}
|
|
410
|
+
*/
|
|
411
|
+
const ColorOrange50 = { value: "#ffecd6" };
|
|
412
|
+
/**
|
|
413
|
+
* @type {TokenValue}
|
|
414
|
+
*/
|
|
415
|
+
const ColorOrange100 = { value: "#ffddb7" };
|
|
416
|
+
/**
|
|
417
|
+
* @type {TokenValue}
|
|
418
|
+
*/
|
|
419
|
+
const ColorOrange200 = { value: "#ffc07a" };
|
|
420
|
+
/**
|
|
421
|
+
* @type {TokenValue}
|
|
422
|
+
*/
|
|
423
|
+
const ColorOrange300 = { value: "#ffa037" };
|
|
424
|
+
/**
|
|
425
|
+
* @type {TokenValue}
|
|
426
|
+
*/
|
|
427
|
+
const ColorOrange400 = { value: "#e37700" };
|
|
428
|
+
/**
|
|
429
|
+
* @type {TokenValue}
|
|
430
|
+
*/
|
|
431
|
+
const ColorOrange500 = { value: "#c16500" };
|
|
432
|
+
/**
|
|
433
|
+
* @type {TokenValue}
|
|
434
|
+
*/
|
|
435
|
+
const ColorOrange600 = { value: "#964f00" };
|
|
436
|
+
/**
|
|
437
|
+
* @type {TokenValue}
|
|
438
|
+
*/
|
|
439
|
+
const ColorOrange700 = { value: "#693700" };
|
|
440
|
+
/**
|
|
441
|
+
* @type {TokenValue}
|
|
442
|
+
*/
|
|
443
|
+
const ColorOrange800 = { value: "#4d2800" };
|
|
444
|
+
/**
|
|
445
|
+
* @type {TokenValue}
|
|
446
|
+
*/
|
|
447
|
+
const ColorOrange900 = { value: "#2e1900" };
|
|
448
|
+
/**
|
|
449
|
+
* @type {TokenValue}
|
|
450
|
+
*/
|
|
451
|
+
const ColorOrange950 = { value: "#140b00" };
|
|
452
|
+
/**
|
|
453
|
+
* @type {TokenValue}
|
|
454
|
+
*/
|
|
455
|
+
const ColorCyan10 = { value: "#f2fcfe" };
|
|
456
|
+
/**
|
|
457
|
+
* @type {TokenValue}
|
|
458
|
+
*/
|
|
459
|
+
const ColorCyan50 = { value: "#daf7fc" };
|
|
460
|
+
/**
|
|
461
|
+
* @type {TokenValue}
|
|
462
|
+
*/
|
|
463
|
+
const ColorCyan100 = { value: "#c2f2fb" };
|
|
464
|
+
/**
|
|
465
|
+
* @type {TokenValue}
|
|
466
|
+
*/
|
|
467
|
+
const ColorCyan200 = { value: "#7fe5f6" };
|
|
468
|
+
/**
|
|
469
|
+
* @type {TokenValue}
|
|
470
|
+
*/
|
|
471
|
+
const ColorCyan300 = { value: "#45d8f2" };
|
|
472
|
+
/**
|
|
473
|
+
* @type {TokenValue}
|
|
474
|
+
*/
|
|
475
|
+
const ColorCyan400 = { value: "#10c2e2" };
|
|
476
|
+
/**
|
|
477
|
+
* @type {TokenValue}
|
|
478
|
+
*/
|
|
479
|
+
const ColorCyan500 = { value: "#0da2bd" };
|
|
480
|
+
/**
|
|
481
|
+
* @type {TokenValue}
|
|
482
|
+
*/
|
|
483
|
+
const ColorCyan600 = { value: "#0a7a8e" };
|
|
484
|
+
/**
|
|
485
|
+
* @type {TokenValue}
|
|
486
|
+
*/
|
|
487
|
+
const ColorCyan700 = { value: "#075563" };
|
|
488
|
+
/**
|
|
489
|
+
* @type {TokenValue}
|
|
490
|
+
*/
|
|
491
|
+
const ColorCyan800 = { value: "#05424d" };
|
|
492
|
+
/**
|
|
493
|
+
* @type {TokenValue}
|
|
494
|
+
*/
|
|
495
|
+
const ColorCyan900 = { value: "#032025" };
|
|
496
|
+
/**
|
|
497
|
+
* @type {TokenValue}
|
|
498
|
+
*/
|
|
499
|
+
const ColorCyan950 = { value: "#011013" };
|
|
500
|
+
/**
|
|
501
|
+
* @type {TokenValue}
|
|
502
|
+
*/
|
|
503
|
+
const ColorPurple10 = { value: "#fcfbfe" };
|
|
504
|
+
/**
|
|
505
|
+
* @type {TokenValue}
|
|
506
|
+
*/
|
|
507
|
+
const ColorPurple50 = { value: "#eeecf9" };
|
|
508
|
+
/**
|
|
509
|
+
* @type {TokenValue}
|
|
510
|
+
*/
|
|
511
|
+
const ColorPurple100 = { value: "#e7e4f6" };
|
|
512
|
+
/**
|
|
513
|
+
* @type {TokenValue}
|
|
514
|
+
*/
|
|
515
|
+
const ColorPurple200 = { value: "#c9c2eb" };
|
|
516
|
+
/**
|
|
517
|
+
* @type {TokenValue}
|
|
518
|
+
*/
|
|
519
|
+
const ColorPurple300 = { value: "#b1a7e2" };
|
|
520
|
+
/**
|
|
521
|
+
* @type {TokenValue}
|
|
522
|
+
*/
|
|
523
|
+
const ColorPurple400 = { value: "#9688d7" };
|
|
524
|
+
/**
|
|
525
|
+
* @type {TokenValue}
|
|
526
|
+
*/
|
|
527
|
+
const ColorPurple500 = { value: "#7766cc" };
|
|
528
|
+
/**
|
|
529
|
+
* @type {TokenValue}
|
|
530
|
+
*/
|
|
531
|
+
const ColorPurple600 = { value: "#5c47c2" };
|
|
532
|
+
/**
|
|
533
|
+
* @type {TokenValue}
|
|
534
|
+
*/
|
|
535
|
+
const ColorPurple700 = { value: "#3f2f8e" };
|
|
536
|
+
/**
|
|
537
|
+
* @type {TokenValue}
|
|
538
|
+
*/
|
|
539
|
+
const ColorPurple800 = { value: "#2e2267" };
|
|
540
|
+
/**
|
|
541
|
+
* @type {TokenValue}
|
|
542
|
+
*/
|
|
543
|
+
const ColorPurple900 = { value: "#191338" };
|
|
544
|
+
/**
|
|
545
|
+
* @type {TokenValue}
|
|
546
|
+
*/
|
|
547
|
+
const ColorPurple950 = { value: "#100c25" };
|
|
548
|
+
/**
|
|
549
|
+
* @type {TokenValue}
|
|
550
|
+
*/
|
|
551
|
+
const ColorMagenta10 = { value: "#fefbfd" };
|
|
552
|
+
/**
|
|
553
|
+
* @type {TokenValue}
|
|
554
|
+
*/
|
|
555
|
+
const ColorMagenta50 = { value: "#fae6f3" };
|
|
556
|
+
/**
|
|
557
|
+
* @type {TokenValue}
|
|
558
|
+
*/
|
|
559
|
+
const ColorMagenta100 = { value: "#f8ddef" };
|
|
560
|
+
/**
|
|
561
|
+
* @type {TokenValue}
|
|
562
|
+
*/
|
|
563
|
+
const ColorMagenta200 = { value: "#efb3db" };
|
|
564
|
+
/**
|
|
565
|
+
* @type {TokenValue}
|
|
566
|
+
*/
|
|
567
|
+
const ColorMagenta300 = { value: "#e892cc" };
|
|
568
|
+
/**
|
|
569
|
+
* @type {TokenValue}
|
|
570
|
+
*/
|
|
571
|
+
const ColorMagenta400 = { value: "#eb61be" };
|
|
572
|
+
/**
|
|
573
|
+
* @type {TokenValue}
|
|
574
|
+
*/
|
|
575
|
+
const ColorMagenta500 = { value: "#d741a6" };
|
|
576
|
+
/**
|
|
577
|
+
* @type {TokenValue}
|
|
578
|
+
*/
|
|
579
|
+
const ColorMagenta600 = { value: "#be288d" };
|
|
580
|
+
/**
|
|
581
|
+
* @type {TokenValue}
|
|
582
|
+
*/
|
|
583
|
+
const ColorMagenta700 = { value: "#831b60" };
|
|
584
|
+
/**
|
|
585
|
+
* @type {TokenValue}
|
|
586
|
+
*/
|
|
587
|
+
const ColorMagenta800 = { value: "#591342" };
|
|
588
|
+
/**
|
|
589
|
+
* @type {TokenValue}
|
|
590
|
+
*/
|
|
591
|
+
const ColorMagenta900 = { value: "#26081c" };
|
|
592
|
+
/**
|
|
593
|
+
* @type {TokenValue}
|
|
594
|
+
*/
|
|
595
|
+
const ColorMagenta950 = { value: "#15040f" };
|
|
596
|
+
/**
|
|
597
|
+
* @type {TokenValue}
|
|
598
|
+
*/
|
|
599
|
+
const ColorMauves10 = { value: "#fffbfa" };
|
|
600
|
+
/**
|
|
601
|
+
* @type {TokenValue}
|
|
602
|
+
*/
|
|
603
|
+
const ColorMauves50 = { value: "#fff7f5" };
|
|
604
|
+
/**
|
|
605
|
+
* @type {TokenValue}
|
|
606
|
+
*/
|
|
607
|
+
const ColorMauves100 = { value: "#fff4f0" };
|
|
608
|
+
/**
|
|
609
|
+
* @type {TokenValue}
|
|
610
|
+
*/
|
|
611
|
+
const ColorMauves200 = { value: "#ffe4db" };
|
|
612
|
+
/**
|
|
613
|
+
* @type {TokenValue}
|
|
614
|
+
*/
|
|
615
|
+
const ColorMauves300 = { value: "#ffd1c2" };
|
|
616
|
+
/**
|
|
617
|
+
* @type {TokenValue}
|
|
618
|
+
*/
|
|
619
|
+
const ColorMauves400 = { value: "#ffaf94" };
|
|
620
|
+
/**
|
|
621
|
+
* @type {TokenValue}
|
|
622
|
+
*/
|
|
623
|
+
const ColorMauves500 = { value: "#ffa78a" };
|
|
624
|
+
/**
|
|
625
|
+
* @type {TokenValue}
|
|
626
|
+
*/
|
|
627
|
+
const ColorMauves600 = { value: "#d88569" };
|
|
628
|
+
/**
|
|
629
|
+
* @type {TokenValue}
|
|
630
|
+
*/
|
|
631
|
+
const ColorMauves700 = { value: "#d27151" };
|
|
632
|
+
/**
|
|
633
|
+
* @type {TokenValue}
|
|
634
|
+
*/
|
|
635
|
+
const ColorMauves800 = { value: "#823a21" };
|
|
636
|
+
/**
|
|
637
|
+
* @type {TokenValue}
|
|
638
|
+
*/
|
|
639
|
+
const ColorMauves900 = { value: "#411d11" };
|
|
640
|
+
/**
|
|
641
|
+
* @type {TokenValue}
|
|
642
|
+
*/
|
|
643
|
+
const ColorMauves950 = { value: "#200e08" };
|
|
644
|
+
/**
|
|
645
|
+
* @type {TokenValue}
|
|
646
|
+
*/
|
|
647
|
+
const ColorLime10 = { value: "#fdfdfc" };
|
|
648
|
+
/**
|
|
649
|
+
* @type {TokenValue}
|
|
650
|
+
*/
|
|
651
|
+
const ColorLime50 = { value: "#eaf0db" };
|
|
652
|
+
/**
|
|
653
|
+
* @type {TokenValue}
|
|
654
|
+
*/
|
|
655
|
+
const ColorLime100 = { value: "#e3eccf" };
|
|
656
|
+
/**
|
|
657
|
+
* @type {TokenValue}
|
|
658
|
+
*/
|
|
659
|
+
const ColorLime200 = { value: "#c3d595" };
|
|
660
|
+
/**
|
|
661
|
+
* @type {TokenValue}
|
|
662
|
+
*/
|
|
663
|
+
const ColorLime300 = { value: "#a8c26a" };
|
|
664
|
+
/**
|
|
665
|
+
* @type {TokenValue}
|
|
666
|
+
*/
|
|
667
|
+
const ColorLime400 = { value: "#8aad39" };
|
|
668
|
+
/**
|
|
669
|
+
* @type {TokenValue}
|
|
670
|
+
*/
|
|
671
|
+
const ColorLime500 = { value: "#6b9013" };
|
|
672
|
+
/**
|
|
673
|
+
* @type {TokenValue}
|
|
674
|
+
*/
|
|
675
|
+
const ColorLime600 = { value: "#56750b" };
|
|
676
|
+
/**
|
|
677
|
+
* @type {TokenValue}
|
|
678
|
+
*/
|
|
679
|
+
const ColorLime700 = { value: "#3a5007" };
|
|
680
|
+
/**
|
|
681
|
+
* @type {TokenValue}
|
|
682
|
+
*/
|
|
683
|
+
const ColorLime800 = { value: "#2a3a03" };
|
|
684
|
+
/**
|
|
685
|
+
* @type {TokenValue}
|
|
686
|
+
*/
|
|
687
|
+
const ColorLime900 = { value: "#111801" };
|
|
688
|
+
/**
|
|
689
|
+
* @type {TokenValue}
|
|
690
|
+
*/
|
|
691
|
+
const ColorLime950 = { value: "#0a0f01" };
|
|
692
|
+
/**
|
|
693
|
+
* @type {TokenValue}
|
|
694
|
+
*/
|
|
695
|
+
const ColorYellow10 = { value: "#fffef8" };
|
|
696
|
+
/**
|
|
697
|
+
* @type {TokenValue}
|
|
698
|
+
*/
|
|
699
|
+
const ColorYellow50 = { value: "#fffcf0" };
|
|
700
|
+
/**
|
|
701
|
+
* @type {TokenValue}
|
|
702
|
+
*/
|
|
703
|
+
const ColorYellow100 = { value: "#fff9e2" };
|
|
704
|
+
/**
|
|
705
|
+
* @type {TokenValue}
|
|
706
|
+
*/
|
|
707
|
+
const ColorYellow200 = { value: "#fff0b1" };
|
|
708
|
+
/**
|
|
709
|
+
* @type {TokenValue}
|
|
710
|
+
*/
|
|
711
|
+
const ColorYellow300 = { value: "#ffe278" };
|
|
712
|
+
/**
|
|
713
|
+
* @type {TokenValue}
|
|
714
|
+
*/
|
|
715
|
+
const ColorYellow400 = { value: "#ffc902" };
|
|
716
|
+
/**
|
|
717
|
+
* @type {TokenValue}
|
|
718
|
+
*/
|
|
719
|
+
const ColorYellow500 = { value: "#ffbe00" };
|
|
720
|
+
/**
|
|
721
|
+
* @type {TokenValue}
|
|
722
|
+
*/
|
|
723
|
+
const ColorYellow600 = { value: "#de9500" };
|
|
724
|
+
/**
|
|
725
|
+
* @type {TokenValue}
|
|
726
|
+
*/
|
|
727
|
+
const ColorYellow700 = { value: "#c98600" };
|
|
728
|
+
/**
|
|
729
|
+
* @type {TokenValue}
|
|
730
|
+
*/
|
|
731
|
+
const ColorYellow800 = { value: "#704b00" };
|
|
732
|
+
/**
|
|
733
|
+
* @type {TokenValue}
|
|
734
|
+
*/
|
|
735
|
+
const ColorYellow900 = { value: "#382500" };
|
|
736
|
+
/**
|
|
737
|
+
* @type {TokenValue}
|
|
738
|
+
*/
|
|
739
|
+
const ColorYellow950 = { value: "#191100" };
|
|
740
|
+
/**
|
|
741
|
+
* @type {TokenValue}
|
|
742
|
+
*/
|
|
743
|
+
const DurationDefault = { value: "200ms" };
|
|
744
|
+
/**
|
|
745
|
+
* @type {TokenValue}
|
|
746
|
+
*/
|
|
747
|
+
const DurationInstant = { value: "0ms" };
|
|
748
|
+
/**
|
|
749
|
+
* @type {TokenValue}
|
|
750
|
+
*/
|
|
751
|
+
const DurationFast = { value: "100ms" };
|
|
752
|
+
/**
|
|
753
|
+
* @type {TokenValue}
|
|
754
|
+
*/
|
|
755
|
+
const DurationSlow = { value: "300ms" };
|
|
756
|
+
/**
|
|
757
|
+
* @type {TokenValue}
|
|
758
|
+
*/
|
|
759
|
+
const FontFamilyBase = { value: "'Nunito Sans', sans-serif" };
|
|
760
|
+
/**
|
|
761
|
+
* @type {TokenValue}
|
|
762
|
+
*/
|
|
763
|
+
const FontFamilyDisplay = { value: "'Sofia Pro', SofiaPro, sans-serif" };
|
|
764
|
+
/**
|
|
765
|
+
* @type {TokenValue}
|
|
766
|
+
*/
|
|
767
|
+
const FontLineHeightBase = { value: "1.5" };
|
|
768
|
+
/**
|
|
769
|
+
* @type {TokenValue}
|
|
770
|
+
*/
|
|
771
|
+
const FontLineHeightDisplay = { value: "1.25" };
|
|
772
|
+
/**
|
|
773
|
+
* @type {TokenValue}
|
|
774
|
+
*/
|
|
775
|
+
const FontWeightNormal = { value: "400" };
|
|
776
|
+
/**
|
|
777
|
+
* @type {TokenValue}
|
|
778
|
+
*/
|
|
779
|
+
const FontWeightSemibold = { value: "600" };
|
|
780
|
+
/**
|
|
781
|
+
* @type {TokenValue}
|
|
782
|
+
*/
|
|
783
|
+
const FontWeightBold = { value: "700" };
|
|
784
|
+
/**
|
|
785
|
+
* @type {TokenValue}
|
|
786
|
+
*/
|
|
787
|
+
const FontSize100 = { value: "0.625rem" };
|
|
788
|
+
/**
|
|
789
|
+
* @type {TokenValue}
|
|
790
|
+
*/
|
|
791
|
+
const FontSize200 = { value: "0.75rem" };
|
|
792
|
+
/**
|
|
793
|
+
* @type {TokenValue}
|
|
794
|
+
*/
|
|
795
|
+
const FontSize300 = { value: "0.875rem" };
|
|
796
|
+
/**
|
|
797
|
+
* @type {TokenValue}
|
|
798
|
+
*/
|
|
799
|
+
const FontSize400 = { value: "1rem" };
|
|
800
|
+
/**
|
|
801
|
+
* @type {TokenValue}
|
|
802
|
+
*/
|
|
803
|
+
const FontSize500 = { value: "1.25rem" };
|
|
804
|
+
/**
|
|
805
|
+
* @type {TokenValue}
|
|
806
|
+
*/
|
|
807
|
+
const FontSize600 = { value: "1.5rem" };
|
|
808
|
+
/**
|
|
809
|
+
* @type {TokenValue}
|
|
810
|
+
*/
|
|
811
|
+
const FontSize700 = { value: "1.75rem" };
|
|
812
|
+
/**
|
|
813
|
+
* @type {TokenValue}
|
|
814
|
+
*/
|
|
815
|
+
const FontSize800 = { value: "2rem" };
|
|
816
|
+
/**
|
|
817
|
+
* @type {TokenValue}
|
|
818
|
+
*/
|
|
819
|
+
const FontSize900 = { value: "2.25rem" };
|
|
820
|
+
/**
|
|
821
|
+
* @type {TokenValue}
|
|
822
|
+
*/
|
|
823
|
+
const Radius0 = { value: "0rem" };
|
|
824
|
+
/**
|
|
825
|
+
* @type {TokenValue}
|
|
826
|
+
*/
|
|
827
|
+
const Radius1 = { value: "0.1875rem" };
|
|
828
|
+
/**
|
|
829
|
+
* @type {TokenValue}
|
|
830
|
+
*/
|
|
831
|
+
const Radius2 = { value: "0.375rem" };
|
|
832
|
+
/**
|
|
833
|
+
* @type {TokenValue}
|
|
834
|
+
*/
|
|
835
|
+
const Radius3 = { value: "0.5625rem" };
|
|
836
|
+
/**
|
|
837
|
+
* @type {TokenValue}
|
|
838
|
+
*/
|
|
839
|
+
const Radius4 = { value: "0.75rem" };
|
|
840
|
+
/**
|
|
841
|
+
* @type {TokenValue}
|
|
842
|
+
*/
|
|
843
|
+
const Radius5 = { value: "0.9375rem" };
|
|
844
|
+
/**
|
|
845
|
+
* @type {TokenValue}
|
|
846
|
+
*/
|
|
847
|
+
const Radius6 = { value: "1.125rem" };
|
|
848
|
+
/**
|
|
849
|
+
* @type {TokenValue}
|
|
850
|
+
*/
|
|
851
|
+
const Radius7 = { value: "1.3125rem" };
|
|
852
|
+
/**
|
|
853
|
+
* @type {TokenValue}
|
|
854
|
+
*/
|
|
855
|
+
const Radius8 = { value: "1.5rem" };
|
|
856
|
+
/**
|
|
857
|
+
* @type {TokenValue}
|
|
858
|
+
*/
|
|
859
|
+
const Size0 = { value: "0rem" };
|
|
860
|
+
/**
|
|
861
|
+
* @type {TokenValue}
|
|
862
|
+
*/
|
|
863
|
+
const Size1 = { value: "0.25rem" };
|
|
864
|
+
/**
|
|
865
|
+
* @type {TokenValue}
|
|
866
|
+
*/
|
|
867
|
+
const Size2 = { value: "0.5rem" };
|
|
868
|
+
/**
|
|
869
|
+
* @type {TokenValue}
|
|
870
|
+
*/
|
|
871
|
+
const Size3 = { value: "0.75rem" };
|
|
872
|
+
/**
|
|
873
|
+
* @type {TokenValue}
|
|
874
|
+
*/
|
|
875
|
+
const Size4 = { value: "1rem" };
|
|
876
|
+
/**
|
|
877
|
+
* @type {TokenValue}
|
|
878
|
+
*/
|
|
879
|
+
const Size5 = { value: "1.25rem" };
|
|
880
|
+
/**
|
|
881
|
+
* @type {TokenValue}
|
|
882
|
+
*/
|
|
883
|
+
const Size6 = { value: "1.5rem" };
|
|
884
|
+
/**
|
|
885
|
+
* @type {TokenValue}
|
|
886
|
+
*/
|
|
887
|
+
const Size7 = { value: "1.75rem" };
|
|
888
|
+
/**
|
|
889
|
+
* @type {TokenValue}
|
|
890
|
+
*/
|
|
891
|
+
const Size8 = { value: "2rem" };
|
|
892
|
+
/**
|
|
893
|
+
* @type {TokenValue}
|
|
894
|
+
*/
|
|
895
|
+
const Size9 = { value: "2.25rem" };
|
|
896
|
+
/**
|
|
897
|
+
* @type {TokenValue}
|
|
898
|
+
*/
|
|
899
|
+
const Size10 = { value: "2.5rem" };
|
|
900
|
+
/**
|
|
901
|
+
* @type {TokenValue}
|
|
902
|
+
*/
|
|
903
|
+
const Size11 = { value: "2.75rem" };
|
|
904
|
+
/**
|
|
905
|
+
* @type {TokenValue}
|
|
906
|
+
*/
|
|
907
|
+
const Size12 = { value: "3rem" };
|
|
908
|
+
/**
|
|
909
|
+
* @type {TokenValue}
|
|
910
|
+
*/
|
|
911
|
+
const Size13 = { value: "3.25rem" };
|
|
912
|
+
/**
|
|
913
|
+
* @type {TokenValue}
|
|
914
|
+
*/
|
|
915
|
+
const Size14 = { value: "3.5rem" };
|
|
916
|
+
/**
|
|
917
|
+
* @type {TokenValue}
|
|
918
|
+
*/
|
|
919
|
+
const SizeQuarter = { value: "0.0625rem" };
|
|
920
|
+
/**
|
|
921
|
+
* @type {TokenValue}
|
|
922
|
+
*/
|
|
923
|
+
const SizeHalf = { value: "0.125rem" };
|
|
924
|
+
/**
|
|
925
|
+
* @type {TokenValue}
|
|
926
|
+
*/
|
|
927
|
+
const TransitionEase = { value: "cubic-bezier(.4, 0, .2, 1)" };
|
|
928
|
+
/**
|
|
929
|
+
* @type {TokenValue}
|
|
930
|
+
*/
|
|
931
|
+
const TransitionEaseIn = { value: "cubic-bezier(.4, 0, 1, 1)" };
|
|
932
|
+
/**
|
|
933
|
+
* @type {TokenValue}
|
|
934
|
+
*/
|
|
935
|
+
const TransitionEaseOut = { value: "cubic-bezier(0, 0, .4, 1)" };
|
|
936
|
+
/**
|
|
937
|
+
* @type {TokenValue}
|
|
938
|
+
*/
|
|
939
|
+
const TransitionEaseInOut = { value: "cubic-bezier(.4, 0, .6, 1)" };
|
|
940
|
+
|
|
941
|
+
const primitive = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
942
|
+
__proto__: null,
|
|
943
|
+
BreakpointLg,
|
|
944
|
+
BreakpointMd,
|
|
945
|
+
BreakpointSm,
|
|
946
|
+
BreakpointXl,
|
|
947
|
+
BreakpointXxl,
|
|
948
|
+
ColorBlue10,
|
|
949
|
+
ColorBlue100,
|
|
950
|
+
ColorBlue200,
|
|
951
|
+
ColorBlue300,
|
|
952
|
+
ColorBlue400,
|
|
953
|
+
ColorBlue50,
|
|
954
|
+
ColorBlue500,
|
|
955
|
+
ColorBlue600,
|
|
956
|
+
ColorBlue700,
|
|
957
|
+
ColorBlue800,
|
|
958
|
+
ColorBlue900,
|
|
959
|
+
ColorBlue950,
|
|
960
|
+
ColorBlueGrey10,
|
|
961
|
+
ColorBlueGrey100,
|
|
962
|
+
ColorBlueGrey200,
|
|
963
|
+
ColorBlueGrey300,
|
|
964
|
+
ColorBlueGrey400,
|
|
965
|
+
ColorBlueGrey50,
|
|
966
|
+
ColorBlueGrey500,
|
|
967
|
+
ColorBlueGrey600,
|
|
968
|
+
ColorBlueGrey700,
|
|
969
|
+
ColorBlueGrey800,
|
|
970
|
+
ColorBlueGrey900,
|
|
971
|
+
ColorBlueGrey950,
|
|
972
|
+
ColorCyan10,
|
|
973
|
+
ColorCyan100,
|
|
974
|
+
ColorCyan200,
|
|
975
|
+
ColorCyan300,
|
|
976
|
+
ColorCyan400,
|
|
977
|
+
ColorCyan50,
|
|
978
|
+
ColorCyan500,
|
|
979
|
+
ColorCyan600,
|
|
980
|
+
ColorCyan700,
|
|
981
|
+
ColorCyan800,
|
|
982
|
+
ColorCyan900,
|
|
983
|
+
ColorCyan950,
|
|
984
|
+
ColorGreen10,
|
|
985
|
+
ColorGreen100,
|
|
986
|
+
ColorGreen200,
|
|
987
|
+
ColorGreen300,
|
|
988
|
+
ColorGreen400,
|
|
989
|
+
ColorGreen50,
|
|
990
|
+
ColorGreen500,
|
|
991
|
+
ColorGreen600,
|
|
992
|
+
ColorGreen700,
|
|
993
|
+
ColorGreen800,
|
|
994
|
+
ColorGreen900,
|
|
995
|
+
ColorGreen950,
|
|
996
|
+
ColorLime10,
|
|
997
|
+
ColorLime100,
|
|
998
|
+
ColorLime200,
|
|
999
|
+
ColorLime300,
|
|
1000
|
+
ColorLime400,
|
|
1001
|
+
ColorLime50,
|
|
1002
|
+
ColorLime500,
|
|
1003
|
+
ColorLime600,
|
|
1004
|
+
ColorLime700,
|
|
1005
|
+
ColorLime800,
|
|
1006
|
+
ColorLime900,
|
|
1007
|
+
ColorLime950,
|
|
1008
|
+
ColorMagenta10,
|
|
1009
|
+
ColorMagenta100,
|
|
1010
|
+
ColorMagenta200,
|
|
1011
|
+
ColorMagenta300,
|
|
1012
|
+
ColorMagenta400,
|
|
1013
|
+
ColorMagenta50,
|
|
1014
|
+
ColorMagenta500,
|
|
1015
|
+
ColorMagenta600,
|
|
1016
|
+
ColorMagenta700,
|
|
1017
|
+
ColorMagenta800,
|
|
1018
|
+
ColorMagenta900,
|
|
1019
|
+
ColorMagenta950,
|
|
1020
|
+
ColorMauves10,
|
|
1021
|
+
ColorMauves100,
|
|
1022
|
+
ColorMauves200,
|
|
1023
|
+
ColorMauves300,
|
|
1024
|
+
ColorMauves400,
|
|
1025
|
+
ColorMauves50,
|
|
1026
|
+
ColorMauves500,
|
|
1027
|
+
ColorMauves600,
|
|
1028
|
+
ColorMauves700,
|
|
1029
|
+
ColorMauves800,
|
|
1030
|
+
ColorMauves900,
|
|
1031
|
+
ColorMauves950,
|
|
1032
|
+
ColorNeutral0,
|
|
1033
|
+
ColorNeutral10,
|
|
1034
|
+
ColorNeutral100,
|
|
1035
|
+
ColorNeutral20,
|
|
1036
|
+
ColorNeutral200,
|
|
1037
|
+
ColorNeutral30,
|
|
1038
|
+
ColorNeutral300,
|
|
1039
|
+
ColorNeutral40,
|
|
1040
|
+
ColorNeutral400,
|
|
1041
|
+
ColorNeutral50,
|
|
1042
|
+
ColorNeutral500,
|
|
1043
|
+
ColorNeutral60,
|
|
1044
|
+
ColorNeutral600,
|
|
1045
|
+
ColorNeutral70,
|
|
1046
|
+
ColorNeutral700,
|
|
1047
|
+
ColorNeutral80,
|
|
1048
|
+
ColorNeutral800,
|
|
1049
|
+
ColorNeutral90,
|
|
1050
|
+
ColorNeutral900,
|
|
1051
|
+
ColorNeutral950,
|
|
1052
|
+
ColorOrange10,
|
|
1053
|
+
ColorOrange100,
|
|
1054
|
+
ColorOrange200,
|
|
1055
|
+
ColorOrange300,
|
|
1056
|
+
ColorOrange400,
|
|
1057
|
+
ColorOrange50,
|
|
1058
|
+
ColorOrange500,
|
|
1059
|
+
ColorOrange600,
|
|
1060
|
+
ColorOrange700,
|
|
1061
|
+
ColorOrange800,
|
|
1062
|
+
ColorOrange900,
|
|
1063
|
+
ColorOrange950,
|
|
1064
|
+
ColorPurple10,
|
|
1065
|
+
ColorPurple100,
|
|
1066
|
+
ColorPurple200,
|
|
1067
|
+
ColorPurple300,
|
|
1068
|
+
ColorPurple400,
|
|
1069
|
+
ColorPurple50,
|
|
1070
|
+
ColorPurple500,
|
|
1071
|
+
ColorPurple600,
|
|
1072
|
+
ColorPurple700,
|
|
1073
|
+
ColorPurple800,
|
|
1074
|
+
ColorPurple900,
|
|
1075
|
+
ColorPurple950,
|
|
1076
|
+
ColorRed10,
|
|
1077
|
+
ColorRed100,
|
|
1078
|
+
ColorRed200,
|
|
1079
|
+
ColorRed300,
|
|
1080
|
+
ColorRed400,
|
|
1081
|
+
ColorRed50,
|
|
1082
|
+
ColorRed500,
|
|
1083
|
+
ColorRed600,
|
|
1084
|
+
ColorRed700,
|
|
1085
|
+
ColorRed800,
|
|
1086
|
+
ColorRed900,
|
|
1087
|
+
ColorRed950,
|
|
1088
|
+
ColorYellow10,
|
|
1089
|
+
ColorYellow100,
|
|
1090
|
+
ColorYellow200,
|
|
1091
|
+
ColorYellow300,
|
|
1092
|
+
ColorYellow400,
|
|
1093
|
+
ColorYellow50,
|
|
1094
|
+
ColorYellow500,
|
|
1095
|
+
ColorYellow600,
|
|
1096
|
+
ColorYellow700,
|
|
1097
|
+
ColorYellow800,
|
|
1098
|
+
ColorYellow900,
|
|
1099
|
+
ColorYellow950,
|
|
1100
|
+
DurationDefault,
|
|
1101
|
+
DurationFast,
|
|
1102
|
+
DurationInstant,
|
|
1103
|
+
DurationSlow,
|
|
1104
|
+
FontFamilyBase,
|
|
1105
|
+
FontFamilyDisplay,
|
|
1106
|
+
FontLineHeightBase,
|
|
1107
|
+
FontLineHeightDisplay,
|
|
1108
|
+
FontSize100,
|
|
1109
|
+
FontSize200,
|
|
1110
|
+
FontSize300,
|
|
1111
|
+
FontSize400,
|
|
1112
|
+
FontSize500,
|
|
1113
|
+
FontSize600,
|
|
1114
|
+
FontSize700,
|
|
1115
|
+
FontSize800,
|
|
1116
|
+
FontSize900,
|
|
1117
|
+
FontWeightBold,
|
|
1118
|
+
FontWeightNormal,
|
|
1119
|
+
FontWeightSemibold,
|
|
1120
|
+
Radius0,
|
|
1121
|
+
Radius1,
|
|
1122
|
+
Radius2,
|
|
1123
|
+
Radius3,
|
|
1124
|
+
Radius4,
|
|
1125
|
+
Radius5,
|
|
1126
|
+
Radius6,
|
|
1127
|
+
Radius7,
|
|
1128
|
+
Radius8,
|
|
1129
|
+
Size0,
|
|
1130
|
+
Size1,
|
|
1131
|
+
Size10,
|
|
1132
|
+
Size11,
|
|
1133
|
+
Size12,
|
|
1134
|
+
Size13,
|
|
1135
|
+
Size14,
|
|
1136
|
+
Size2,
|
|
1137
|
+
Size3,
|
|
1138
|
+
Size4,
|
|
1139
|
+
Size5,
|
|
1140
|
+
Size6,
|
|
1141
|
+
Size7,
|
|
1142
|
+
Size8,
|
|
1143
|
+
Size9,
|
|
1144
|
+
SizeHalf,
|
|
1145
|
+
SizeQuarter,
|
|
1146
|
+
TransitionEase,
|
|
1147
|
+
TransitionEaseIn,
|
|
1148
|
+
TransitionEaseInOut,
|
|
1149
|
+
TransitionEaseOut
|
|
1150
|
+
}, Symbol.toStringTag, { value: 'Module' }));
|
|
1151
|
+
|
|
1152
|
+
const breakpoints = {
|
|
1153
|
+
sm: parseInt(BreakpointSm.value),
|
|
1154
|
+
md: parseInt(BreakpointMd.value),
|
|
1155
|
+
lg: parseInt(BreakpointLg.value),
|
|
1156
|
+
xl: parseInt(BreakpointXl.value),
|
|
1157
|
+
xxl: parseInt(BreakpointXxl.value)
|
|
1158
|
+
};
|
|
1159
|
+
const areBreakpointsDefined = Object.values(breakpoints).every(
|
|
1160
|
+
(breakpoint2) => breakpoint2
|
|
1161
|
+
);
|
|
1162
|
+
function getBreakpointFlags(name) {
|
|
1163
|
+
const breakpointOrder = ["xs", "sm", "md", "lg", "xl", "xxl"];
|
|
1164
|
+
const currentIndex = breakpointOrder.indexOf(name);
|
|
1165
|
+
return {
|
|
1166
|
+
xs: currentIndex >= 0,
|
|
1167
|
+
sm: currentIndex >= 1,
|
|
1168
|
+
md: currentIndex >= 2,
|
|
1169
|
+
lg: currentIndex >= 3,
|
|
1170
|
+
xl: currentIndex >= 4,
|
|
1171
|
+
xxl: currentIndex >= 5
|
|
1172
|
+
};
|
|
1173
|
+
}
|
|
1174
|
+
function breakpoint(name, min, max) {
|
|
1175
|
+
if (globalThis.innerWidth == null || globalThis.innerHeight == null) {
|
|
1176
|
+
return void 0;
|
|
1177
|
+
}
|
|
1178
|
+
const viewportWidth = globalThis.innerWidth;
|
|
1179
|
+
const viewportHeight = globalThis.innerHeight;
|
|
1180
|
+
if ((min == null || viewportWidth >= min) && (max == null || viewportWidth < max)) {
|
|
1181
|
+
return {
|
|
1182
|
+
name,
|
|
1183
|
+
min,
|
|
1184
|
+
max,
|
|
1185
|
+
orientation: viewportHeight > viewportWidth ? "portrait" : "landscape",
|
|
1186
|
+
innerWidth: viewportWidth,
|
|
1187
|
+
innerHeight: viewportHeight,
|
|
1188
|
+
...getBreakpointFlags(name)
|
|
1189
|
+
};
|
|
1190
|
+
}
|
|
1191
|
+
return void 0;
|
|
1192
|
+
}
|
|
1193
|
+
const onResize = () => {
|
|
1194
|
+
if (!areBreakpointsDefined) {
|
|
1195
|
+
return;
|
|
1196
|
+
}
|
|
1197
|
+
const { sm, md, lg, xl, xxl } = breakpoints;
|
|
1198
|
+
return breakpoint("xs", void 0, sm) ?? breakpoint("sm", sm, md) ?? breakpoint("md", md, lg) ?? breakpoint("lg", lg, xl) ?? breakpoint("xl", xl, xxl) ?? breakpoint("xxl", xxl, void 0);
|
|
1199
|
+
};
|
|
1200
|
+
const useBreakpoint = (props) => {
|
|
1201
|
+
const [size, setSize] = useState(onResize);
|
|
1202
|
+
useEffect(() => {
|
|
1203
|
+
if (!areBreakpointsDefined || props?.disable) return;
|
|
1204
|
+
const updateSize = () => {
|
|
1205
|
+
setSize(onResize());
|
|
1206
|
+
};
|
|
1207
|
+
globalThis.addEventListener("resize", updateSize);
|
|
1208
|
+
return () => {
|
|
1209
|
+
globalThis.removeEventListener("resize", updateSize);
|
|
1210
|
+
};
|
|
1211
|
+
}, [props?.disable]);
|
|
1212
|
+
return size;
|
|
1213
|
+
};
|
|
1214
|
+
|
|
1215
|
+
const sizeToToken = (value) => {
|
|
1216
|
+
if (typeof value === "undefined") return void 0;
|
|
1217
|
+
let gap = value;
|
|
1218
|
+
const stringifiedValue = String(value);
|
|
1219
|
+
if (stringifiedValue === "half") {
|
|
1220
|
+
gap = `${stringifiedValue[0].toUpperCase()}${stringifiedValue.slice(1)}`;
|
|
1221
|
+
}
|
|
1222
|
+
return primitive?.[`Size${gap}`]?.value;
|
|
1223
|
+
};
|
|
1224
|
+
|
|
1225
|
+
const LAYOUT_PROP_ARR = [
|
|
1226
|
+
"gridTemplateColumns",
|
|
1227
|
+
"gridTemplateRows",
|
|
1228
|
+
"gridTemplateAreas",
|
|
1229
|
+
"gridAutoColumns",
|
|
1230
|
+
"gridAutoRows",
|
|
1231
|
+
"gridArea",
|
|
1232
|
+
"gridColumn",
|
|
1233
|
+
"gridRow",
|
|
1234
|
+
"gridColumnStart",
|
|
1235
|
+
"gridColumnEnd",
|
|
1236
|
+
"gridRowStart",
|
|
1237
|
+
"gridRowEnd",
|
|
1238
|
+
"flex",
|
|
1239
|
+
"flexDirection",
|
|
1240
|
+
"flexGrow",
|
|
1241
|
+
"flexShrink",
|
|
1242
|
+
"flexBasis",
|
|
1243
|
+
"flexWrap",
|
|
1244
|
+
"order",
|
|
1245
|
+
"justifySelf",
|
|
1246
|
+
"justifyItems",
|
|
1247
|
+
"justifyContent",
|
|
1248
|
+
"alignSelf",
|
|
1249
|
+
"alignItems",
|
|
1250
|
+
"alignContent",
|
|
1251
|
+
"placeItems",
|
|
1252
|
+
"placeContent",
|
|
1253
|
+
"placeSelf",
|
|
1254
|
+
"wrap",
|
|
1255
|
+
"gap",
|
|
1256
|
+
"rowGap",
|
|
1257
|
+
"columnGap"
|
|
1258
|
+
];
|
|
1259
|
+
const RESPONSIVE_SIZES_ARR = ["xs", "sm", "md", "lg", "xl", "xxl"];
|
|
1260
|
+
function useLayoutPropsUtil(props) {
|
|
1261
|
+
const baseSizeProps = Object.fromEntries(
|
|
1262
|
+
Object.entries(props).filter(
|
|
1263
|
+
([key, _val]) => LAYOUT_PROP_ARR.includes(key)
|
|
1264
|
+
)
|
|
1265
|
+
);
|
|
1266
|
+
const responsiveSizeProps = Object.fromEntries(
|
|
1267
|
+
Object.entries(props).filter(
|
|
1268
|
+
([key, _val]) => RESPONSIVE_SIZES_ARR.includes(key)
|
|
1269
|
+
)
|
|
1270
|
+
);
|
|
1271
|
+
const sizeProps = useMemo(
|
|
1272
|
+
() => ({
|
|
1273
|
+
...responsiveSizeProps,
|
|
1274
|
+
base: baseSizeProps
|
|
1275
|
+
}),
|
|
1276
|
+
[baseSizeProps, responsiveSizeProps]
|
|
1277
|
+
);
|
|
1278
|
+
const componentProps = Object.fromEntries(
|
|
1279
|
+
Object.entries(props).filter(
|
|
1280
|
+
([key, _val]) => !RESPONSIVE_SIZES_ARR.includes(key) && !LAYOUT_PROP_ARR.includes(key)
|
|
1281
|
+
)
|
|
1282
|
+
);
|
|
1283
|
+
const breakpoint = useBreakpoint();
|
|
1284
|
+
const getValue = (style) => {
|
|
1285
|
+
const value = (breakpoint?.xxl ? sizeProps.xxl?.[style] : void 0) ?? (breakpoint?.xl ? sizeProps.xl?.[style] : void 0) ?? (breakpoint?.lg ? sizeProps.lg?.[style] : void 0) ?? (breakpoint?.md ? sizeProps.md?.[style] : void 0) ?? (breakpoint?.sm ? sizeProps.sm?.[style] : void 0) ?? (breakpoint?.xs ? sizeProps.xs?.[style] : void 0) ?? sizeProps.base?.[style];
|
|
1286
|
+
if (style.toLowerCase().endsWith("gap")) {
|
|
1287
|
+
return sizeToToken(value);
|
|
1288
|
+
}
|
|
1289
|
+
return value;
|
|
1290
|
+
};
|
|
1291
|
+
const layoutStyleObject = LAYOUT_PROP_ARR.reduce((o, key) => {
|
|
1292
|
+
const value = getValue(key);
|
|
1293
|
+
if (typeof value === "undefined") return o;
|
|
1294
|
+
return { ...o, [key]: value };
|
|
1295
|
+
}, {});
|
|
1296
|
+
return {
|
|
1297
|
+
layoutStyles: layoutStyleObject,
|
|
1298
|
+
componentProps
|
|
1299
|
+
};
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
const KEYBOARD_FOCUSABLE_SELECTOR = 'a[href], button, input, textarea, select, details, [contenteditable]:not([contenteditable="false"]), [tabindex]:not([tabindex="-1"])';
|
|
1303
|
+
|
|
1304
|
+
const card$1 = "_card_of64j_1";
|
|
1305
|
+
const styles$2 = {
|
|
1306
|
+
card: card$1,
|
|
1307
|
+
"card-section": "_card-section_of64j_27",
|
|
1308
|
+
"bg-stronger": "_bg-stronger_of64j_31",
|
|
1309
|
+
"bg-strong": "_bg-strong_of64j_31",
|
|
1310
|
+
"padding-0": "_padding-0_of64j_39",
|
|
1311
|
+
"padding-xsmall": "_padding-xsmall_of64j_45",
|
|
1312
|
+
"padding-small": "_padding-small_of64j_51",
|
|
1313
|
+
"padding-medium": "_padding-medium_of64j_57",
|
|
1314
|
+
"padding-large": "_padding-large_of64j_63"
|
|
1315
|
+
};
|
|
1316
|
+
|
|
1317
|
+
const Card = forwardRef((props, ref) => {
|
|
1318
|
+
const { layoutStyles, componentProps } = useLayoutPropsUtil(props);
|
|
1319
|
+
const {
|
|
1320
|
+
children,
|
|
1321
|
+
className,
|
|
1322
|
+
padding = "medium",
|
|
1323
|
+
background,
|
|
1324
|
+
style,
|
|
1325
|
+
...rest
|
|
1326
|
+
} = componentProps;
|
|
1327
|
+
const cardClassNames = cx(
|
|
1328
|
+
[styles$2["card"]],
|
|
1329
|
+
[styles$2[`padding-${padding}`]],
|
|
1330
|
+
className,
|
|
1331
|
+
{
|
|
1332
|
+
[styles$2[`bg-${background}`]]: !!background
|
|
1333
|
+
}
|
|
1334
|
+
);
|
|
1335
|
+
const styleCombined = {
|
|
1336
|
+
...style,
|
|
1337
|
+
...layoutStyles
|
|
1338
|
+
};
|
|
1339
|
+
return /* @__PURE__ */ jsx(
|
|
1340
|
+
"div",
|
|
1341
|
+
{
|
|
1342
|
+
className: cardClassNames,
|
|
1343
|
+
"data-anv": "card",
|
|
1344
|
+
style: styleCombined,
|
|
1345
|
+
ref,
|
|
1346
|
+
...rest,
|
|
1347
|
+
children
|
|
1348
|
+
}
|
|
1349
|
+
);
|
|
1350
|
+
});
|
|
1351
|
+
Card.displayName = "Card";
|
|
1352
|
+
|
|
1353
|
+
const styles$1 = {
|
|
1354
|
+
"card-wrapper": "_card-wrapper_ogzk8_4",
|
|
1355
|
+
"card-action": "_card-action_ogzk8_14",
|
|
1356
|
+
"bg-stronger": "_bg-stronger_ogzk8_37",
|
|
1357
|
+
"bg-strong": "_bg-strong_ogzk8_37",
|
|
1358
|
+
"card-content": "_card-content_ogzk8_48"
|
|
1359
|
+
};
|
|
1360
|
+
|
|
1361
|
+
const InteractiveCard = forwardRef(
|
|
1362
|
+
(props, ref) => {
|
|
1363
|
+
const {
|
|
1364
|
+
wrapperProps,
|
|
1365
|
+
actionProps,
|
|
1366
|
+
contentProps = {},
|
|
1367
|
+
children,
|
|
1368
|
+
"data-interactive": dataInteractive
|
|
1369
|
+
} = props;
|
|
1370
|
+
const {
|
|
1371
|
+
"aria-label": ariaLabel,
|
|
1372
|
+
className: wrapperClassName,
|
|
1373
|
+
style: wrapperStyle,
|
|
1374
|
+
...restWrapperProps
|
|
1375
|
+
} = wrapperProps;
|
|
1376
|
+
const { "aria-label": actionAriaLabel, ...restActionProps } = actionProps;
|
|
1377
|
+
const {
|
|
1378
|
+
padding = "medium",
|
|
1379
|
+
background,
|
|
1380
|
+
className: contentClassName,
|
|
1381
|
+
...restContentProps
|
|
1382
|
+
} = contentProps;
|
|
1383
|
+
const actionClassNames = cx(styles$1["card-action"], {
|
|
1384
|
+
[styles$1[`bg-${background}`]]: !!background
|
|
1385
|
+
});
|
|
1386
|
+
const contentClassNames = cx(styles$1["card-content"], contentClassName);
|
|
1387
|
+
const wrapperClassNames = cx(styles$1["card-wrapper"], wrapperClassName);
|
|
1388
|
+
const isLink = "href" in restActionProps;
|
|
1389
|
+
const actionRef = useRef(null);
|
|
1390
|
+
const handleWrapperClick = (e) => {
|
|
1391
|
+
const target = e.target;
|
|
1392
|
+
if (target.closest(`label, ${KEYBOARD_FOCUSABLE_SELECTOR}`)) return;
|
|
1393
|
+
const action = actionRef.current;
|
|
1394
|
+
if (!action) return;
|
|
1395
|
+
if (isLink && (e.metaKey || e.ctrlKey || e.shiftKey)) {
|
|
1396
|
+
const href = action.getAttribute("href");
|
|
1397
|
+
if (href) {
|
|
1398
|
+
window.open(href, "_blank", "noopener,noreferrer");
|
|
1399
|
+
return;
|
|
1400
|
+
}
|
|
1401
|
+
}
|
|
1402
|
+
action.click();
|
|
1403
|
+
};
|
|
1404
|
+
const handleWrapperAuxClick = (e) => {
|
|
1405
|
+
if (e.button !== 1 || !isLink) return;
|
|
1406
|
+
const target = e.target;
|
|
1407
|
+
if (target.closest(`label, ${KEYBOARD_FOCUSABLE_SELECTOR}`)) return;
|
|
1408
|
+
const href = actionRef.current?.getAttribute("href");
|
|
1409
|
+
if (href) window.open(href, "_blank", "noopener,noreferrer");
|
|
1410
|
+
};
|
|
1411
|
+
return (
|
|
1412
|
+
// Mouse-only dead-space forwarder. Keyboard users tab to the inner <button>/<a> and activate it natively (Enter/Space)
|
|
1413
|
+
// The wrapper itself is never focused. Adding a keyboard listener here would double-fire the action.
|
|
1414
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-noninteractive-element-interactions
|
|
1415
|
+
/* @__PURE__ */ jsxs(
|
|
1416
|
+
"div",
|
|
1417
|
+
{
|
|
1418
|
+
...restWrapperProps,
|
|
1419
|
+
role: "group",
|
|
1420
|
+
"aria-label": ariaLabel,
|
|
1421
|
+
className: wrapperClassNames,
|
|
1422
|
+
style: wrapperStyle,
|
|
1423
|
+
ref,
|
|
1424
|
+
onClick: handleWrapperClick,
|
|
1425
|
+
onAuxClick: handleWrapperAuxClick,
|
|
1426
|
+
children: [
|
|
1427
|
+
isLink ? /* @__PURE__ */ jsx(
|
|
1428
|
+
"a",
|
|
1429
|
+
{
|
|
1430
|
+
...restActionProps,
|
|
1431
|
+
"aria-label": actionAriaLabel,
|
|
1432
|
+
className: actionClassNames,
|
|
1433
|
+
"data-interactive": dataInteractive,
|
|
1434
|
+
ref: actionRef
|
|
1435
|
+
}
|
|
1436
|
+
) : /* @__PURE__ */ jsx(
|
|
1437
|
+
"button",
|
|
1438
|
+
{
|
|
1439
|
+
...restActionProps,
|
|
1440
|
+
"aria-label": actionAriaLabel,
|
|
1441
|
+
className: actionClassNames,
|
|
1442
|
+
"data-interactive": dataInteractive,
|
|
1443
|
+
type: "button",
|
|
1444
|
+
ref: actionRef
|
|
1445
|
+
}
|
|
1446
|
+
),
|
|
1447
|
+
/* @__PURE__ */ jsx(
|
|
1448
|
+
Card,
|
|
1449
|
+
{
|
|
1450
|
+
padding,
|
|
1451
|
+
className: contentClassNames,
|
|
1452
|
+
...restContentProps,
|
|
1453
|
+
children
|
|
1454
|
+
}
|
|
1455
|
+
)
|
|
1456
|
+
]
|
|
1457
|
+
}
|
|
1458
|
+
)
|
|
1459
|
+
);
|
|
1460
|
+
}
|
|
1461
|
+
);
|
|
1462
|
+
InteractiveCard.displayName = "InteractiveCard";
|
|
1463
|
+
|
|
1464
|
+
const SvgChevronRight = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M9.29 6.71a.996.996 0 0 0 0 1.41L13.17 12l-3.88 3.88a.996.996 0 1 0 1.41 1.41l4.59-4.59a.996.996 0 0 0 0-1.41L10.7 6.7c-.38-.38-1.02-.38-1.41.01z" }));
|
|
1465
|
+
|
|
1466
|
+
const card = "_card_p94da_1";
|
|
1467
|
+
const content = "_content_p94da_9";
|
|
1468
|
+
const primary = "_primary_p94da_16";
|
|
1469
|
+
const action = "_action_p94da_24";
|
|
1470
|
+
const icon = "_icon_p94da_28";
|
|
1471
|
+
const title = "_title_p94da_31";
|
|
1472
|
+
const styles = {
|
|
1473
|
+
card: card,
|
|
1474
|
+
"card-active": "_card-active_p94da_5",
|
|
1475
|
+
content: content,
|
|
1476
|
+
primary: primary,
|
|
1477
|
+
action: action,
|
|
1478
|
+
icon: icon,
|
|
1479
|
+
title: title
|
|
1480
|
+
};
|
|
1481
|
+
|
|
1482
|
+
const ArtifactCard = forwardRef(
|
|
1483
|
+
function ArtifactCardInner(props, ref) {
|
|
1484
|
+
const {
|
|
1485
|
+
title,
|
|
1486
|
+
description,
|
|
1487
|
+
active = false,
|
|
1488
|
+
artifactId,
|
|
1489
|
+
onClick,
|
|
1490
|
+
className,
|
|
1491
|
+
...rest
|
|
1492
|
+
} = props;
|
|
1493
|
+
const wrapperClassName = classNames(
|
|
1494
|
+
styles.card,
|
|
1495
|
+
{ [styles["card-active"]]: active },
|
|
1496
|
+
className
|
|
1497
|
+
);
|
|
1498
|
+
return /* @__PURE__ */ jsx(
|
|
1499
|
+
InteractiveCard,
|
|
1500
|
+
{
|
|
1501
|
+
ref,
|
|
1502
|
+
wrapperProps: {
|
|
1503
|
+
...rest,
|
|
1504
|
+
"aria-label": title,
|
|
1505
|
+
className: wrapperClassName,
|
|
1506
|
+
...artifactId !== void 0 && { "data-artifact-id": artifactId }
|
|
1507
|
+
},
|
|
1508
|
+
actionProps: {
|
|
1509
|
+
"aria-label": `View ${title}`,
|
|
1510
|
+
onClick
|
|
1511
|
+
},
|
|
1512
|
+
contentProps: { padding: "medium" },
|
|
1513
|
+
children: /* @__PURE__ */ jsxs("div", { className: styles.content, children: [
|
|
1514
|
+
/* @__PURE__ */ jsxs("div", { className: styles.primary, children: [
|
|
1515
|
+
/* @__PURE__ */ jsx(
|
|
1516
|
+
Text,
|
|
1517
|
+
{
|
|
1518
|
+
variant: "headline",
|
|
1519
|
+
el: "h3",
|
|
1520
|
+
size: "small",
|
|
1521
|
+
className: styles.title,
|
|
1522
|
+
children: title
|
|
1523
|
+
}
|
|
1524
|
+
),
|
|
1525
|
+
/* @__PURE__ */ jsx(Text, { size: "small", children: description })
|
|
1526
|
+
] }),
|
|
1527
|
+
/* @__PURE__ */ jsxs(Flex, { alignItems: "center", className: styles.action, children: [
|
|
1528
|
+
/* @__PURE__ */ jsx(Text, { size: "small", subdued: true, children: "View" }),
|
|
1529
|
+
/* @__PURE__ */ jsx(Icon, { svg: SvgChevronRight, size: "large", className: styles.icon })
|
|
1530
|
+
] })
|
|
1531
|
+
] })
|
|
1532
|
+
}
|
|
1533
|
+
);
|
|
1534
|
+
}
|
|
1535
|
+
);
|
|
1536
|
+
|
|
1537
|
+
export { ArtifactCard as A };
|
|
1538
|
+
//# sourceMappingURL=artifact-card-Df6YXh4B.js.map
|