@tsiky/components-r19 1.6.37 → 1.6.38
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/CartesianChart-BGkSJT6t.js +18529 -0
- package/dist/CartesianChart-BkF02VRB.cjs +134 -0
- package/dist/CartesianChart-CMG3acC4.js +18584 -0
- package/dist/CartesianChart-KB_nIUsI.cjs +134 -0
- package/dist/PeriodRange-BpxD5xRJ.js +270 -0
- package/dist/PeriodRange-NiT-19Z4.cjs +26 -0
- package/dist/SimpleBarChart-BThP_rnS.js +18729 -0
- package/dist/SimpleBarChart-BzHNNwd6.cjs +134 -0
- package/dist/SimpleBarChart-CCePRx-C.js +18730 -0
- package/dist/SimpleBarChart-CLQwp0ud.js +19412 -0
- package/dist/SimpleBarChart-DmnYX4DS.cjs +134 -0
- package/dist/apexsankey.es.min-D4KjE2OR.cjs +41 -0
- package/dist/apexsankey.es.min-ZIADo5C-.js +12850 -0
- package/dist/mockServiceWorker.js +76 -89
- package/dist/move-8i2rW7Z0.cjs +26 -0
- package/dist/move-DFwOHmr2.js +110 -0
- package/dist/src/components/AlertTransit/AlertTransit.d.ts +10 -0
- package/dist/src/components/AlertTransit/AlertTransit.d.ts.map +1 -0
- package/dist/src/components/AlertTransit/index.d.ts +3 -0
- package/dist/src/components/AlertTransit/index.d.ts.map +1 -0
- package/dist/src/components/AnnouncementForm/AnnouncementForm.d.ts +30 -0
- package/dist/src/components/AnnouncementForm/AnnouncementForm.d.ts.map +1 -0
- package/dist/src/components/AnnouncementForm/index.d.ts +4 -0
- package/dist/src/components/AnnouncementForm/index.d.ts.map +1 -0
- package/dist/src/components/SubHeader/SubHeader.d.ts +77 -0
- package/dist/src/components/SubHeader/SubHeader.d.ts.map +1 -0
- package/dist/src/components/SubHeader/SubHeaderContent.d.ts +32 -0
- package/dist/src/components/SubHeader/SubHeaderContent.d.ts.map +1 -0
- package/dist/src/components/SubHeader/SubHeaderNavItem.d.ts +25 -0
- package/dist/src/components/SubHeader/SubHeaderNavItem.d.ts.map +1 -0
- package/dist/src/components/SubHeader/SubHeaderTitle.d.ts +15 -0
- package/dist/src/components/SubHeader/SubHeaderTitle.d.ts.map +1 -0
- package/dist/src/components/SubHeaderContent/SubHeaderNavItem.d.ts +25 -0
- package/dist/src/components/SubHeaderContent/SubHeaderNavItem.d.ts.map +1 -0
- package/dist/src/components/TableauxComponent/Filters.d.ts +12 -0
- package/dist/src/components/TableauxComponent/Filters.d.ts.map +1 -0
- package/dist/src/components/TableauxComponent/TimelineRenderer.d.ts +8 -0
- package/dist/src/components/TableauxComponent/TimelineRenderer.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -7,42 +7,42 @@
|
|
|
7
7
|
* - Please do NOT modify this file.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
const PACKAGE_VERSION = '2.12.7'
|
|
11
|
-
const INTEGRITY_CHECKSUM = '4db4a41e972cec1b64cc569c66952d82'
|
|
12
|
-
const IS_MOCKED_RESPONSE = Symbol('isMockedResponse')
|
|
13
|
-
const activeClientIds = new Set()
|
|
10
|
+
const PACKAGE_VERSION = '2.12.7';
|
|
11
|
+
const INTEGRITY_CHECKSUM = '4db4a41e972cec1b64cc569c66952d82';
|
|
12
|
+
const IS_MOCKED_RESPONSE = Symbol('isMockedResponse');
|
|
13
|
+
const activeClientIds = new Set();
|
|
14
14
|
|
|
15
15
|
addEventListener('install', function () {
|
|
16
|
-
self.skipWaiting()
|
|
17
|
-
})
|
|
16
|
+
self.skipWaiting();
|
|
17
|
+
});
|
|
18
18
|
|
|
19
19
|
addEventListener('activate', function (event) {
|
|
20
|
-
event.waitUntil(self.clients.claim())
|
|
21
|
-
})
|
|
20
|
+
event.waitUntil(self.clients.claim());
|
|
21
|
+
});
|
|
22
22
|
|
|
23
23
|
addEventListener('message', async function (event) {
|
|
24
|
-
const clientId = Reflect.get(event.source || {}, 'id')
|
|
24
|
+
const clientId = Reflect.get(event.source || {}, 'id');
|
|
25
25
|
|
|
26
26
|
if (!clientId || !self.clients) {
|
|
27
|
-
return
|
|
27
|
+
return;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
const client = await self.clients.get(clientId)
|
|
30
|
+
const client = await self.clients.get(clientId);
|
|
31
31
|
|
|
32
32
|
if (!client) {
|
|
33
|
-
return
|
|
33
|
+
return;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
const allClients = await self.clients.matchAll({
|
|
37
37
|
type: 'window',
|
|
38
|
-
})
|
|
38
|
+
});
|
|
39
39
|
|
|
40
40
|
switch (event.data) {
|
|
41
41
|
case 'KEEPALIVE_REQUEST': {
|
|
42
42
|
sendToClient(client, {
|
|
43
43
|
type: 'KEEPALIVE_RESPONSE',
|
|
44
|
-
})
|
|
45
|
-
break
|
|
44
|
+
});
|
|
45
|
+
break;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
case 'INTEGRITY_CHECK_REQUEST': {
|
|
@@ -52,12 +52,12 @@ addEventListener('message', async function (event) {
|
|
|
52
52
|
packageVersion: PACKAGE_VERSION,
|
|
53
53
|
checksum: INTEGRITY_CHECKSUM,
|
|
54
54
|
},
|
|
55
|
-
})
|
|
56
|
-
break
|
|
55
|
+
});
|
|
56
|
+
break;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
case 'MOCK_ACTIVATE': {
|
|
60
|
-
activeClientIds.add(clientId)
|
|
60
|
+
activeClientIds.add(clientId);
|
|
61
61
|
|
|
62
62
|
sendToClient(client, {
|
|
63
63
|
type: 'MOCKING_ENABLED',
|
|
@@ -67,54 +67,51 @@ addEventListener('message', async function (event) {
|
|
|
67
67
|
frameType: client.frameType,
|
|
68
68
|
},
|
|
69
69
|
},
|
|
70
|
-
})
|
|
71
|
-
break
|
|
70
|
+
});
|
|
71
|
+
break;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
case 'CLIENT_CLOSED': {
|
|
75
|
-
activeClientIds.delete(clientId)
|
|
75
|
+
activeClientIds.delete(clientId);
|
|
76
76
|
|
|
77
77
|
const remainingClients = allClients.filter((client) => {
|
|
78
|
-
return client.id !== clientId
|
|
79
|
-
})
|
|
78
|
+
return client.id !== clientId;
|
|
79
|
+
});
|
|
80
80
|
|
|
81
81
|
// Unregister itself when there are no more clients
|
|
82
82
|
if (remainingClients.length === 0) {
|
|
83
|
-
self.registration.unregister()
|
|
83
|
+
self.registration.unregister();
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
break
|
|
86
|
+
break;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
})
|
|
89
|
+
});
|
|
90
90
|
|
|
91
91
|
addEventListener('fetch', function (event) {
|
|
92
|
-
const requestInterceptedAt = Date.now()
|
|
92
|
+
const requestInterceptedAt = Date.now();
|
|
93
93
|
|
|
94
94
|
// Bypass navigation requests.
|
|
95
95
|
if (event.request.mode === 'navigate') {
|
|
96
|
-
return
|
|
96
|
+
return;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
// Opening the DevTools triggers the "only-if-cached" request
|
|
100
100
|
// that cannot be handled by the worker. Bypass such requests.
|
|
101
|
-
if (
|
|
102
|
-
|
|
103
|
-
event.request.mode !== 'same-origin'
|
|
104
|
-
) {
|
|
105
|
-
return
|
|
101
|
+
if (event.request.cache === 'only-if-cached' && event.request.mode !== 'same-origin') {
|
|
102
|
+
return;
|
|
106
103
|
}
|
|
107
104
|
|
|
108
105
|
// Bypass all requests when there are no active clients.
|
|
109
106
|
// Prevents the self-unregistered worked from handling requests
|
|
110
107
|
// after it's been terminated (still remains active until the next reload).
|
|
111
108
|
if (activeClientIds.size === 0) {
|
|
112
|
-
return
|
|
109
|
+
return;
|
|
113
110
|
}
|
|
114
111
|
|
|
115
|
-
const requestId = crypto.randomUUID()
|
|
116
|
-
event.respondWith(handleRequest(event, requestId, requestInterceptedAt))
|
|
117
|
-
})
|
|
112
|
+
const requestId = crypto.randomUUID();
|
|
113
|
+
event.respondWith(handleRequest(event, requestId, requestInterceptedAt));
|
|
114
|
+
});
|
|
118
115
|
|
|
119
116
|
/**
|
|
120
117
|
* @param {FetchEvent} event
|
|
@@ -122,23 +119,18 @@ addEventListener('fetch', function (event) {
|
|
|
122
119
|
* @param {number} requestInterceptedAt
|
|
123
120
|
*/
|
|
124
121
|
async function handleRequest(event, requestId, requestInterceptedAt) {
|
|
125
|
-
const client = await resolveMainClient(event)
|
|
126
|
-
const requestCloneForEvents = event.request.clone()
|
|
127
|
-
const response = await getResponse(
|
|
128
|
-
event,
|
|
129
|
-
client,
|
|
130
|
-
requestId,
|
|
131
|
-
requestInterceptedAt,
|
|
132
|
-
)
|
|
122
|
+
const client = await resolveMainClient(event);
|
|
123
|
+
const requestCloneForEvents = event.request.clone();
|
|
124
|
+
const response = await getResponse(event, client, requestId, requestInterceptedAt);
|
|
133
125
|
|
|
134
126
|
// Send back the response clone for the "response:*" life-cycle events.
|
|
135
127
|
// Ensure MSW is active and ready to handle the message, otherwise
|
|
136
128
|
// this message will pend indefinitely.
|
|
137
129
|
if (client && activeClientIds.has(client.id)) {
|
|
138
|
-
const serializedRequest = await serializeRequest(requestCloneForEvents)
|
|
130
|
+
const serializedRequest = await serializeRequest(requestCloneForEvents);
|
|
139
131
|
|
|
140
132
|
// Clone the response so both the client and the library could consume it.
|
|
141
|
-
const responseClone = response.clone()
|
|
133
|
+
const responseClone = response.clone();
|
|
142
134
|
|
|
143
135
|
sendToClient(
|
|
144
136
|
client,
|
|
@@ -159,11 +151,11 @@ async function handleRequest(event, requestId, requestInterceptedAt) {
|
|
|
159
151
|
},
|
|
160
152
|
},
|
|
161
153
|
},
|
|
162
|
-
responseClone.body ? [serializedRequest.body, responseClone.body] : []
|
|
163
|
-
)
|
|
154
|
+
responseClone.body ? [serializedRequest.body, responseClone.body] : []
|
|
155
|
+
);
|
|
164
156
|
}
|
|
165
157
|
|
|
166
|
-
return response
|
|
158
|
+
return response;
|
|
167
159
|
}
|
|
168
160
|
|
|
169
161
|
/**
|
|
@@ -175,30 +167,30 @@ async function handleRequest(event, requestId, requestInterceptedAt) {
|
|
|
175
167
|
* @returns {Promise<Client | undefined>}
|
|
176
168
|
*/
|
|
177
169
|
async function resolveMainClient(event) {
|
|
178
|
-
const client = await self.clients.get(event.clientId)
|
|
170
|
+
const client = await self.clients.get(event.clientId);
|
|
179
171
|
|
|
180
172
|
if (activeClientIds.has(event.clientId)) {
|
|
181
|
-
return client
|
|
173
|
+
return client;
|
|
182
174
|
}
|
|
183
175
|
|
|
184
176
|
if (client?.frameType === 'top-level') {
|
|
185
|
-
return client
|
|
177
|
+
return client;
|
|
186
178
|
}
|
|
187
179
|
|
|
188
180
|
const allClients = await self.clients.matchAll({
|
|
189
181
|
type: 'window',
|
|
190
|
-
})
|
|
182
|
+
});
|
|
191
183
|
|
|
192
184
|
return allClients
|
|
193
185
|
.filter((client) => {
|
|
194
186
|
// Get only those clients that are currently visible.
|
|
195
|
-
return client.visibilityState === 'visible'
|
|
187
|
+
return client.visibilityState === 'visible';
|
|
196
188
|
})
|
|
197
189
|
.find((client) => {
|
|
198
190
|
// Find the client ID that's recorded in the
|
|
199
191
|
// set of clients that have registered the worker.
|
|
200
|
-
return activeClientIds.has(client.id)
|
|
201
|
-
})
|
|
192
|
+
return activeClientIds.has(client.id);
|
|
193
|
+
});
|
|
202
194
|
}
|
|
203
195
|
|
|
204
196
|
/**
|
|
@@ -211,36 +203,34 @@ async function resolveMainClient(event) {
|
|
|
211
203
|
async function getResponse(event, client, requestId, requestInterceptedAt) {
|
|
212
204
|
// Clone the request because it might've been already used
|
|
213
205
|
// (i.e. its body has been read and sent to the client).
|
|
214
|
-
const requestClone = event.request.clone()
|
|
206
|
+
const requestClone = event.request.clone();
|
|
215
207
|
|
|
216
208
|
function passthrough() {
|
|
217
209
|
// Cast the request headers to a new Headers instance
|
|
218
210
|
// so the headers can be manipulated with.
|
|
219
|
-
const headers = new Headers(requestClone.headers)
|
|
211
|
+
const headers = new Headers(requestClone.headers);
|
|
220
212
|
|
|
221
213
|
// Remove the "accept" header value that marked this request as passthrough.
|
|
222
214
|
// This prevents request alteration and also keeps it compliant with the
|
|
223
215
|
// user-defined CORS policies.
|
|
224
|
-
const acceptHeader = headers.get('accept')
|
|
216
|
+
const acceptHeader = headers.get('accept');
|
|
225
217
|
if (acceptHeader) {
|
|
226
|
-
const values = acceptHeader.split(',').map((value) => value.trim())
|
|
227
|
-
const filteredValues = values.filter(
|
|
228
|
-
(value) => value !== 'msw/passthrough',
|
|
229
|
-
)
|
|
218
|
+
const values = acceptHeader.split(',').map((value) => value.trim());
|
|
219
|
+
const filteredValues = values.filter((value) => value !== 'msw/passthrough');
|
|
230
220
|
|
|
231
221
|
if (filteredValues.length > 0) {
|
|
232
|
-
headers.set('accept', filteredValues.join(', '))
|
|
222
|
+
headers.set('accept', filteredValues.join(', '));
|
|
233
223
|
} else {
|
|
234
|
-
headers.delete('accept')
|
|
224
|
+
headers.delete('accept');
|
|
235
225
|
}
|
|
236
226
|
}
|
|
237
227
|
|
|
238
|
-
return fetch(requestClone, { headers })
|
|
228
|
+
return fetch(requestClone, { headers });
|
|
239
229
|
}
|
|
240
230
|
|
|
241
231
|
// Bypass mocking when the client is not active.
|
|
242
232
|
if (!client) {
|
|
243
|
-
return passthrough()
|
|
233
|
+
return passthrough();
|
|
244
234
|
}
|
|
245
235
|
|
|
246
236
|
// Bypass initial page load requests (i.e. static assets).
|
|
@@ -248,11 +238,11 @@ async function getResponse(event, client, requestId, requestInterceptedAt) {
|
|
|
248
238
|
// means that MSW hasn't dispatched the "MOCK_ACTIVATE" event yet
|
|
249
239
|
// and is not ready to handle requests.
|
|
250
240
|
if (!activeClientIds.has(client.id)) {
|
|
251
|
-
return passthrough()
|
|
241
|
+
return passthrough();
|
|
252
242
|
}
|
|
253
243
|
|
|
254
244
|
// Notify the client that a request has been intercepted.
|
|
255
|
-
const serializedRequest = await serializeRequest(event.request)
|
|
245
|
+
const serializedRequest = await serializeRequest(event.request);
|
|
256
246
|
const clientMessage = await sendToClient(
|
|
257
247
|
client,
|
|
258
248
|
{
|
|
@@ -263,20 +253,20 @@ async function getResponse(event, client, requestId, requestInterceptedAt) {
|
|
|
263
253
|
...serializedRequest,
|
|
264
254
|
},
|
|
265
255
|
},
|
|
266
|
-
[serializedRequest.body]
|
|
267
|
-
)
|
|
256
|
+
[serializedRequest.body]
|
|
257
|
+
);
|
|
268
258
|
|
|
269
259
|
switch (clientMessage.type) {
|
|
270
260
|
case 'MOCK_RESPONSE': {
|
|
271
|
-
return respondWithMock(clientMessage.data)
|
|
261
|
+
return respondWithMock(clientMessage.data);
|
|
272
262
|
}
|
|
273
263
|
|
|
274
264
|
case 'PASSTHROUGH': {
|
|
275
|
-
return passthrough()
|
|
265
|
+
return passthrough();
|
|
276
266
|
}
|
|
277
267
|
}
|
|
278
268
|
|
|
279
|
-
return passthrough()
|
|
269
|
+
return passthrough();
|
|
280
270
|
}
|
|
281
271
|
|
|
282
272
|
/**
|
|
@@ -287,21 +277,18 @@ async function getResponse(event, client, requestId, requestInterceptedAt) {
|
|
|
287
277
|
*/
|
|
288
278
|
function sendToClient(client, message, transferrables = []) {
|
|
289
279
|
return new Promise((resolve, reject) => {
|
|
290
|
-
const channel = new MessageChannel()
|
|
280
|
+
const channel = new MessageChannel();
|
|
291
281
|
|
|
292
282
|
channel.port1.onmessage = (event) => {
|
|
293
283
|
if (event.data && event.data.error) {
|
|
294
|
-
return reject(event.data.error)
|
|
284
|
+
return reject(event.data.error);
|
|
295
285
|
}
|
|
296
286
|
|
|
297
|
-
resolve(event.data)
|
|
298
|
-
}
|
|
287
|
+
resolve(event.data);
|
|
288
|
+
};
|
|
299
289
|
|
|
300
|
-
client.postMessage(message, [
|
|
301
|
-
|
|
302
|
-
...transferrables.filter(Boolean),
|
|
303
|
-
])
|
|
304
|
-
})
|
|
290
|
+
client.postMessage(message, [channel.port2, ...transferrables.filter(Boolean)]);
|
|
291
|
+
});
|
|
305
292
|
}
|
|
306
293
|
|
|
307
294
|
/**
|
|
@@ -314,17 +301,17 @@ function respondWithMock(response) {
|
|
|
314
301
|
// instance will have status code set to 0. Since it's not possible to create
|
|
315
302
|
// a Response instance with status code 0, handle that use-case separately.
|
|
316
303
|
if (response.status === 0) {
|
|
317
|
-
return Response.error()
|
|
304
|
+
return Response.error();
|
|
318
305
|
}
|
|
319
306
|
|
|
320
|
-
const mockedResponse = new Response(response.body, response)
|
|
307
|
+
const mockedResponse = new Response(response.body, response);
|
|
321
308
|
|
|
322
309
|
Reflect.defineProperty(mockedResponse, IS_MOCKED_RESPONSE, {
|
|
323
310
|
value: true,
|
|
324
311
|
enumerable: true,
|
|
325
|
-
})
|
|
312
|
+
});
|
|
326
313
|
|
|
327
|
-
return mockedResponse
|
|
314
|
+
return mockedResponse;
|
|
328
315
|
}
|
|
329
316
|
|
|
330
317
|
/**
|
|
@@ -345,5 +332,5 @@ async function serializeRequest(request) {
|
|
|
345
332
|
referrerPolicy: request.referrerPolicy,
|
|
346
333
|
body: await request.arrayBuffer(),
|
|
347
334
|
keepalive: request.keepalive,
|
|
348
|
-
}
|
|
335
|
+
};
|
|
349
336
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";const s=require("react");/**
|
|
2
|
+
* @license lucide-react v0.540.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const C=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),k=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,o)=>o?o.toUpperCase():r.toLowerCase()),i=t=>{const e=k(t);return e.charAt(0).toUpperCase()+e.slice(1)},u=(...t)=>t.filter((e,r,o)=>!!e&&e.trim()!==""&&o.indexOf(e)===r).join(" ").trim(),y=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0};/**
|
|
7
|
+
* @license lucide-react v0.540.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/var f={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
12
|
+
* @license lucide-react v0.540.0 - ISC
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the ISC license.
|
|
15
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/const d=s.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:n="",children:a,iconNode:p,...c},m)=>s.createElement("svg",{ref:m,...f,width:e,height:e,stroke:t,strokeWidth:o?Number(r)*24/Number(e):r,className:u("lucide",n),...!a&&!y(c)&&{"aria-hidden":"true"},...c},[...p.map(([h,w])=>s.createElement(h,w)),...Array.isArray(a)?a:[a]]));/**
|
|
17
|
+
* @license lucide-react v0.540.0 - ISC
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the ISC license.
|
|
20
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/const l=(t,e)=>{const r=s.forwardRef(({className:o,...n},a)=>s.createElement(d,{ref:a,iconNode:e,className:u(`lucide-${C(i(t))}`,`lucide-${t}`,o),...n}));return r.displayName=i(t),r};/**
|
|
22
|
+
* @license lucide-react v0.540.0 - ISC
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the ISC license.
|
|
25
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/const g=[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m19 9 3 3-3 3",key:"1mg7y2"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"m5 9-3 3 3 3",key:"j64kie"}],["path",{d:"m9 5 3-3 3 3",key:"l8vdw6"}]],v=l("move",g);exports.Icon=d;exports.Move=v;exports.createLucideIcon=l;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { forwardRef as p, createElement as n } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.540.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const C = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), k = (t) => t.replace(
|
|
9
|
+
/^([A-Z])|[\s-_]+(\w)/g,
|
|
10
|
+
(e, o, r) => r ? r.toUpperCase() : o.toLowerCase()
|
|
11
|
+
), i = (t) => {
|
|
12
|
+
const e = k(t);
|
|
13
|
+
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
14
|
+
}, d = (...t) => t.filter((e, o, r) => !!e && e.trim() !== "" && r.indexOf(e) === o).join(" ").trim(), w = (t) => {
|
|
15
|
+
for (const e in t)
|
|
16
|
+
if (e.startsWith("aria-") || e === "role" || e === "title")
|
|
17
|
+
return !0;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* @license lucide-react v0.540.0 - ISC
|
|
21
|
+
*
|
|
22
|
+
* This source code is licensed under the ISC license.
|
|
23
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
24
|
+
*/
|
|
25
|
+
var y = {
|
|
26
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
27
|
+
width: 24,
|
|
28
|
+
height: 24,
|
|
29
|
+
viewBox: "0 0 24 24",
|
|
30
|
+
fill: "none",
|
|
31
|
+
stroke: "currentColor",
|
|
32
|
+
strokeWidth: 2,
|
|
33
|
+
strokeLinecap: "round",
|
|
34
|
+
strokeLinejoin: "round"
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* @license lucide-react v0.540.0 - ISC
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the ISC license.
|
|
40
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/
|
|
42
|
+
const f = p(
|
|
43
|
+
({
|
|
44
|
+
color: t = "currentColor",
|
|
45
|
+
size: e = 24,
|
|
46
|
+
strokeWidth: o = 2,
|
|
47
|
+
absoluteStrokeWidth: r,
|
|
48
|
+
className: s = "",
|
|
49
|
+
children: a,
|
|
50
|
+
iconNode: l,
|
|
51
|
+
...c
|
|
52
|
+
}, m) => n(
|
|
53
|
+
"svg",
|
|
54
|
+
{
|
|
55
|
+
ref: m,
|
|
56
|
+
...y,
|
|
57
|
+
width: e,
|
|
58
|
+
height: e,
|
|
59
|
+
stroke: t,
|
|
60
|
+
strokeWidth: r ? Number(o) * 24 / Number(e) : o,
|
|
61
|
+
className: d("lucide", s),
|
|
62
|
+
...!a && !w(c) && { "aria-hidden": "true" },
|
|
63
|
+
...c
|
|
64
|
+
},
|
|
65
|
+
[
|
|
66
|
+
...l.map(([u, h]) => n(u, h)),
|
|
67
|
+
...Array.isArray(a) ? a : [a]
|
|
68
|
+
]
|
|
69
|
+
)
|
|
70
|
+
);
|
|
71
|
+
/**
|
|
72
|
+
* @license lucide-react v0.540.0 - ISC
|
|
73
|
+
*
|
|
74
|
+
* This source code is licensed under the ISC license.
|
|
75
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
+
*/
|
|
77
|
+
const g = (t, e) => {
|
|
78
|
+
const o = p(
|
|
79
|
+
({ className: r, ...s }, a) => n(f, {
|
|
80
|
+
ref: a,
|
|
81
|
+
iconNode: e,
|
|
82
|
+
className: d(
|
|
83
|
+
`lucide-${C(i(t))}`,
|
|
84
|
+
`lucide-${t}`,
|
|
85
|
+
r
|
|
86
|
+
),
|
|
87
|
+
...s
|
|
88
|
+
})
|
|
89
|
+
);
|
|
90
|
+
return o.displayName = i(t), o;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* @license lucide-react v0.540.0 - ISC
|
|
94
|
+
*
|
|
95
|
+
* This source code is licensed under the ISC license.
|
|
96
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
97
|
+
*/
|
|
98
|
+
const v = [
|
|
99
|
+
["path", { d: "M12 2v20", key: "t6zp3m" }],
|
|
100
|
+
["path", { d: "m15 19-3 3-3-3", key: "11eu04" }],
|
|
101
|
+
["path", { d: "m19 9 3 3-3 3", key: "1mg7y2" }],
|
|
102
|
+
["path", { d: "M2 12h20", key: "9i4pu4" }],
|
|
103
|
+
["path", { d: "m5 9-3 3 3 3", key: "j64kie" }],
|
|
104
|
+
["path", { d: "m9 5 3-3 3 3", key: "l8vdw6" }]
|
|
105
|
+
], b = g("move", v);
|
|
106
|
+
export {
|
|
107
|
+
f as I,
|
|
108
|
+
b as M,
|
|
109
|
+
g as c
|
|
110
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface AlertTransitProps {
|
|
3
|
+
count: number;
|
|
4
|
+
onClick?: () => void;
|
|
5
|
+
className?: string;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
}
|
|
8
|
+
export declare const AlertTransit: React.FC<AlertTransitProps>;
|
|
9
|
+
export default AlertTransit;
|
|
10
|
+
//# sourceMappingURL=AlertTransit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertTransit.d.ts","sourceRoot":"","sources":["../../../../src/components/AlertTransit/AlertTransit.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,iBAAiB;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC/B;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAwBpD,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/AlertTransit/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface AnnouncementData {
|
|
3
|
+
id?: string;
|
|
4
|
+
title: string;
|
|
5
|
+
message: string;
|
|
6
|
+
target_interface: string;
|
|
7
|
+
target_screen: string;
|
|
8
|
+
published_at: Date | null;
|
|
9
|
+
expired_at: Date | null;
|
|
10
|
+
}
|
|
11
|
+
interface AnnouncementFormTexts {
|
|
12
|
+
titleLabel?: string;
|
|
13
|
+
titlePlaceholder?: string;
|
|
14
|
+
messageLabel?: string;
|
|
15
|
+
messagePlaceholder?: string;
|
|
16
|
+
interfaceLabel?: string;
|
|
17
|
+
screenLabel?: string;
|
|
18
|
+
publishedAtLabel?: string;
|
|
19
|
+
publishedAtPlaceholder?: string;
|
|
20
|
+
expiredAtLabel?: string;
|
|
21
|
+
expiredAtPlaceholder?: string;
|
|
22
|
+
}
|
|
23
|
+
interface AnnouncementFormProps {
|
|
24
|
+
initialData?: AnnouncementData | null;
|
|
25
|
+
onChange: (data: AnnouncementData) => void;
|
|
26
|
+
texts?: AnnouncementFormTexts;
|
|
27
|
+
}
|
|
28
|
+
export declare const AnnouncementForm: React.FC<AnnouncementFormProps>;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=AnnouncementForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnnouncementForm.d.ts","sourceRoot":"","sources":["../../../../src/components/AnnouncementForm/AnnouncementForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAOnD,UAAU,gBAAgB;IACxB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,IAAI,GAAG,IAAI,CAAC;IAC1B,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;CACzB;AAED,UAAU,qBAAqB;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,UAAU,qBAAqB;IAC7B,WAAW,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACtC,QAAQ,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC3C,KAAK,CAAC,EAAE,qBAAqB,CAAC;CAC/B;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAwH5D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/AnnouncementForm/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,cAAc,oBAAoB,CAAC;AACnC,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface SubHeaderTitleProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
style?: React.CSSProperties;
|
|
5
|
+
fontSize?: string;
|
|
6
|
+
fontWeight?: string;
|
|
7
|
+
color?: string;
|
|
8
|
+
padding?: string;
|
|
9
|
+
navItems: {
|
|
10
|
+
id: string;
|
|
11
|
+
title?: string;
|
|
12
|
+
}[];
|
|
13
|
+
}
|
|
14
|
+
export declare const SubHeaderTitle: React.FC<SubHeaderTitleProps>;
|
|
15
|
+
export interface SubHeaderNavItemProps {
|
|
16
|
+
id: string;
|
|
17
|
+
label: string;
|
|
18
|
+
isActive?: boolean;
|
|
19
|
+
onClick?: () => void;
|
|
20
|
+
icon?: React.ReactNode;
|
|
21
|
+
count?: number;
|
|
22
|
+
activeColor?: string;
|
|
23
|
+
inactiveColor?: string;
|
|
24
|
+
activeBackgroundColor?: string;
|
|
25
|
+
countBackgroundColor?: string;
|
|
26
|
+
countColor?: string;
|
|
27
|
+
countBorderRadius?: string;
|
|
28
|
+
indicatorColor?: string;
|
|
29
|
+
indicatorHeight?: string;
|
|
30
|
+
padding?: string;
|
|
31
|
+
fontSize?: string;
|
|
32
|
+
fontWeight?: string;
|
|
33
|
+
gap?: string;
|
|
34
|
+
style?: React.CSSProperties;
|
|
35
|
+
className?: string;
|
|
36
|
+
}
|
|
37
|
+
export declare const SubHeaderNavItem: React.FC<SubHeaderNavItemProps>;
|
|
38
|
+
export interface SubHeaderProps {
|
|
39
|
+
titleNavItems: {
|
|
40
|
+
id: string;
|
|
41
|
+
title?: string;
|
|
42
|
+
}[];
|
|
43
|
+
titleFontSize?: string;
|
|
44
|
+
titleColor?: string;
|
|
45
|
+
titlePadding?: string;
|
|
46
|
+
subNavItems: SubHeaderNavItemProps[];
|
|
47
|
+
backgroundColor?: string;
|
|
48
|
+
padding?: string;
|
|
49
|
+
height?: string;
|
|
50
|
+
borderBottom?: string;
|
|
51
|
+
itemGap?: string;
|
|
52
|
+
itemPadding?: string;
|
|
53
|
+
itemFontSize?: string;
|
|
54
|
+
itemFontWeight?: string;
|
|
55
|
+
activeItemColor?: string;
|
|
56
|
+
inactiveItemColor?: string;
|
|
57
|
+
countBackgroundColor?: string;
|
|
58
|
+
countColor?: string;
|
|
59
|
+
countBorderRadius?: string;
|
|
60
|
+
indicatorHeight?: string;
|
|
61
|
+
showThemeSwitcher?: boolean;
|
|
62
|
+
isDark?: boolean;
|
|
63
|
+
onToggleTheme?: () => void;
|
|
64
|
+
themeSwitcherColor?: string;
|
|
65
|
+
className?: string;
|
|
66
|
+
style?: React.CSSProperties;
|
|
67
|
+
contentGap?: string;
|
|
68
|
+
leftContentClassName?: string;
|
|
69
|
+
leftContentStyle?: React.CSSProperties;
|
|
70
|
+
navContainerClassName?: string;
|
|
71
|
+
navContainerStyle?: React.CSSProperties;
|
|
72
|
+
rightContentClassName?: string;
|
|
73
|
+
rightContentStyle?: React.CSSProperties;
|
|
74
|
+
rightActions?: React.ReactNode;
|
|
75
|
+
}
|
|
76
|
+
export declare const SubHeader: React.FC<SubHeaderProps>;
|
|
77
|
+
//# sourceMappingURL=SubHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/SubHeader/SubHeader.tsx"],"names":[],"mappings":"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"}
|