@blueskyproject/tiled 0.0.1

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.
Files changed (70) hide show
  1. package/LICENSE +32 -0
  2. package/README.md +123 -0
  3. package/dist/app/App.d.ts +3 -0
  4. package/dist/app/App.d.ts.map +1 -0
  5. package/dist/assets/icons.d.ts +77 -0
  6. package/dist/assets/icons.d.ts.map +1 -0
  7. package/dist/components/Button.d.ts +22 -0
  8. package/dist/components/Button.d.ts.map +1 -0
  9. package/dist/components/ButtonCopyToClipboard.d.ts +7 -0
  10. package/dist/components/ButtonCopyToClipboard.d.ts.map +1 -0
  11. package/dist/components/InputSlider.d.ts +32 -0
  12. package/dist/components/InputSlider.d.ts.map +1 -0
  13. package/dist/components/Tiled/PreviewAwkward.d.ts +1 -0
  14. package/dist/components/Tiled/PreviewAwkward.d.ts.map +1 -0
  15. package/dist/components/Tiled/PreviewNDArray.d.ts +9 -0
  16. package/dist/components/Tiled/PreviewNDArray.d.ts.map +1 -0
  17. package/dist/components/Tiled/PreviewTable.d.ts +8 -0
  18. package/dist/components/Tiled/PreviewTable.d.ts.map +1 -0
  19. package/dist/components/Tiled/StartupScreen.d.ts +8 -0
  20. package/dist/components/Tiled/StartupScreen.d.ts.map +1 -0
  21. package/dist/components/Tiled/Tiled.d.ts +19 -0
  22. package/dist/components/Tiled/Tiled.d.ts.map +1 -0
  23. package/dist/components/Tiled/TiledBody.d.ts +6 -0
  24. package/dist/components/Tiled/TiledBody.d.ts.map +1 -0
  25. package/dist/components/Tiled/TiledColumn.d.ts +13 -0
  26. package/dist/components/Tiled/TiledColumn.d.ts.map +1 -0
  27. package/dist/components/Tiled/TiledColumns.d.ts +10 -0
  28. package/dist/components/Tiled/TiledColumns.d.ts.map +1 -0
  29. package/dist/components/Tiled/TiledContainer.d.ts +13 -0
  30. package/dist/components/Tiled/TiledContainer.d.ts.map +1 -0
  31. package/dist/components/Tiled/TiledFooter.d.ts +7 -0
  32. package/dist/components/Tiled/TiledFooter.d.ts.map +1 -0
  33. package/dist/components/Tiled/TiledHeader.d.ts +15 -0
  34. package/dist/components/Tiled/TiledHeader.d.ts.map +1 -0
  35. package/dist/components/Tiled/TiledPreview.d.ts +11 -0
  36. package/dist/components/Tiled/TiledPreview.d.ts.map +1 -0
  37. package/dist/components/Tiled/TiledPreviewDisplay.d.ts +4 -0
  38. package/dist/components/Tiled/TiledPreviewDisplay.d.ts.map +1 -0
  39. package/dist/components/Tiled/TiledPreviewMetadata.d.ts +7 -0
  40. package/dist/components/Tiled/TiledPreviewMetadata.d.ts.map +1 -0
  41. package/dist/components/Tiled/apiClient.d.ts +8 -0
  42. package/dist/components/Tiled/apiClient.d.ts.map +1 -0
  43. package/dist/components/Tiled/icons.d.ts +8 -0
  44. package/dist/components/Tiled/icons.d.ts.map +1 -0
  45. package/dist/components/Tiled/sampleData.d.ts +4 -0
  46. package/dist/components/Tiled/sampleData.d.ts.map +1 -0
  47. package/dist/components/Tiled/types.d.ts +118 -0
  48. package/dist/components/Tiled/types.d.ts.map +1 -0
  49. package/dist/components/Tiled/useTiled.d.ts +23 -0
  50. package/dist/components/Tiled/useTiled.d.ts.map +1 -0
  51. package/dist/components/Tiled/utils.d.ts +17 -0
  52. package/dist/components/Tiled/utils.d.ts.map +1 -0
  53. package/dist/finchFavicon.ico +0 -0
  54. package/dist/images/als_logo_wheel.png +0 -0
  55. package/dist/images/finchBannerSmall.png +0 -0
  56. package/dist/images/finchBannerSmallDarkmode.png +0 -0
  57. package/dist/index.d.ts +3 -0
  58. package/dist/index.d.ts.map +1 -0
  59. package/dist/lib/utils.d.ts +3 -0
  60. package/dist/lib/utils.d.ts.map +1 -0
  61. package/dist/main.d.ts +1 -0
  62. package/dist/main.d.ts.map +1 -0
  63. package/dist/mockServiceWorker.js +307 -0
  64. package/dist/stories/Tiled.stories.d.ts +17 -0
  65. package/dist/stories/Tiled.stories.d.ts.map +1 -0
  66. package/dist/tiled.css +1 -0
  67. package/dist/tiled.es.js +7980 -0
  68. package/dist/tiled.umd.js +53 -0
  69. package/dist/vite.svg +1 -0
  70. package/package.json +109 -0
@@ -0,0 +1,118 @@
1
+ export type PathItem = {
2
+ id: string;
3
+ structure: string;
4
+ };
5
+ export type Breadcrumb = {
6
+ label: string;
7
+ labelStyle?: string;
8
+ icon?: JSX.Element;
9
+ iconStyle?: string;
10
+ onClick?: Function;
11
+ };
12
+ export type Slider = {
13
+ min: number;
14
+ max: number;
15
+ index: number;
16
+ value: number;
17
+ };
18
+ export type Paths = PathItem[];
19
+ export declare const pathsSample: Paths;
20
+ export interface TiledSearchResult {
21
+ data: TiledSearchItem<TiledStructures>[];
22
+ error: string | null;
23
+ links: {
24
+ self: string;
25
+ first: string;
26
+ last: string;
27
+ next: string | null;
28
+ prev: string | null;
29
+ };
30
+ meta: {
31
+ count: number;
32
+ };
33
+ }
34
+ export interface TiledItemLinks {
35
+ self: string;
36
+ full?: string;
37
+ block?: string;
38
+ buffers?: string;
39
+ partition?: string;
40
+ search?: string;
41
+ default?: string;
42
+ }
43
+ export interface TiledSearchItem<StructureType> {
44
+ id: string;
45
+ attributes: {
46
+ ancestors: string[];
47
+ structure_family: "array" | "table" | "container" | "awkward" | "sparse";
48
+ specs: Spec[];
49
+ metadata: Record<string, unknown>;
50
+ structure: StructureType;
51
+ sorting: Sorting[] | null;
52
+ data_sources: string | null;
53
+ };
54
+ links: TiledItemLinks;
55
+ meta: unknown | null;
56
+ }
57
+ export type TiledStructures = ArrayStructure | TableStructure | ContainerStructure | AwkwardStructure | SparseStructure;
58
+ export interface Spec {
59
+ name: string;
60
+ version: string | null;
61
+ }
62
+ export interface Sorting {
63
+ key: string;
64
+ direction: number;
65
+ }
66
+ export interface ArrayStructure {
67
+ data_type: {
68
+ endianness: string;
69
+ kind: string;
70
+ itemsize: number;
71
+ dt_units: string | null;
72
+ };
73
+ chunks: number[][];
74
+ shape: number[];
75
+ dims: string[] | null;
76
+ resizable: boolean;
77
+ }
78
+ export interface TableStructure {
79
+ arrow_schema: string;
80
+ npartitions: number;
81
+ columns: string[];
82
+ resizable: boolean;
83
+ }
84
+ export interface ContainerStructure {
85
+ contents: unknown | null;
86
+ count: number;
87
+ }
88
+ export interface AwkwardStructure {
89
+ length: number;
90
+ form: AwkwardForm;
91
+ }
92
+ export interface AwkwardForm {
93
+ class: string;
94
+ offsets?: string;
95
+ primitive?: string;
96
+ inner_shape?: number[];
97
+ parameters: Record<string, unknown>;
98
+ form_key: string;
99
+ content?: AwkwardForm;
100
+ fields?: string[];
101
+ contents?: AwkwardForm[];
102
+ }
103
+ export interface SparseStructure {
104
+ layout: string;
105
+ shape: number[];
106
+ chunks: number[][];
107
+ dims: string[] | null;
108
+ resizable: boolean;
109
+ }
110
+ export type PreviewSize = 'hidden' | 'small' | 'medium' | 'large';
111
+ export interface TiledTableRow {
112
+ [column: string]: number;
113
+ }
114
+ export type TiledTableData = TiledTableRow[];
115
+ export declare const isArrayStructure: (item: TiledSearchItem<any>) => item is TiledSearchItem<ArrayStructure>;
116
+ export declare const isTableStructure: (item: TiledSearchItem<any>) => item is TiledSearchItem<TableStructure>;
117
+ export declare const isContainerStructure: (item: TiledSearchItem<any>) => item is TiledSearchItem<ContainerStructure>;
118
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Tiled/types.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,23 @@
1
+ import { TiledSearchResult, TiledSearchItem, Breadcrumb, ArrayStructure, TableStructure, TiledStructures, PreviewSize } from './types';
2
+ export type useTiledProps = {
3
+ url?: string;
4
+ apiKey?: string;
5
+ searchPath?: string;
6
+ bearerToken?: string;
7
+ };
8
+ type Url = string;
9
+ export declare const useTiled: (url?: Url, apiKey?: string, searchPath?: string, bearerToken?: string) => {
10
+ columns: TiledSearchResult[];
11
+ breadcrumbs: Breadcrumb[];
12
+ imageUrl: string | undefined;
13
+ popoutUrl: string | undefined;
14
+ previewSize: PreviewSize;
15
+ previewItem: TiledSearchItem<ArrayStructure> | TiledSearchItem<TableStructure> | null;
16
+ handleColumnItemClick: (item: TiledSearchItem<TiledStructures>) => void;
17
+ handleLeftArrowClick: Function;
18
+ handleRightArrowClick: Function;
19
+ resetAllData: () => void;
20
+ warning: string | undefined;
21
+ };
22
+ export {};
23
+ //# sourceMappingURL=useTiled.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTiled.d.ts","sourceRoot":"","sources":["../../../src/components/Tiled/useTiled.ts"],"names":[],"mappings":"AAGA,OAAO,EACH,iBAAiB,EACjB,eAAe,EACf,UAAU,EACV,cAAc,EAEd,cAAc,EACd,eAAe,EACf,WAAW,EAIb,MAAM,SAAS,CAAC;AAElB,MAAM,MAAM,aAAa,GAAG;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAA;AACD,KAAK,GAAG,GAAG,MAAM,CAAC;AAClB,eAAO,MAAM,QAAQ,SAAS,GAAG,WAAU,MAAM,eAAc,MAAM,gBAAe,MAAM;;;;;;;kCAgGtC,eAAe,CAAC,eAAe,CAAC;;;;;CA8FnF,CAAA"}
@@ -0,0 +1,17 @@
1
+ import { TiledSearchItem, TiledStructures, Slider } from './types';
2
+ export declare const generateLinksForCallback: (item: TiledSearchItem<TiledStructures>, url?: string) => {
3
+ self: string;
4
+ full?: string;
5
+ block?: string;
6
+ buffers?: string;
7
+ partition?: string;
8
+ search?: string;
9
+ default?: string;
10
+ };
11
+ export declare const getTiledStructureIcon: (structureFamily: string) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const generateSearchPath: (item: TiledSearchItem<TiledStructures>, extra?: string) => string;
13
+ export declare const generateFullImagePngPath: (searchPath?: string, stepY?: number, stepX?: number, stack?: number[], url?: string) => string;
14
+ export declare const numpyTypeSizesBytes: Record<string, number>;
15
+ export declare const onPopoutClick: (popoutUrl: string) => void;
16
+ export declare const createSliders: (sliderCount: number, shape: number[]) => Slider[];
17
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/Tiled/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE3D,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAGjC,eAAO,MAAM,wBAAwB,SAAU,eAAe,CAAC,eAAe,CAAC,QAAO,MAAM;;;;;;;;CAQ3F,CAAA;AAED,eAAO,MAAM,qBAAqB,oBAAoB,MAAM,4CAa3D,CAAC;AAEF,eAAO,MAAM,kBAAkB,SAAU,eAAe,CAAC,eAAe,CAAC,UAAS,MAAM,KAAE,MAQzF,CAAC;AAIF,eAAO,MAAM,wBAAwB,gBAAgB,MAAM,UAAS,MAAM,UAAS,MAAM,UAAS,MAAM,EAAE,QAAO,MAAM,WAItH,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAkCpD,CAAC;AAEH,eAAO,MAAM,aAAa,cAAa,MAAM,SAG7C,CAAC;AAEF,eAAO,MAAM,aAAa,gBAAgB,MAAM,SAAQ,MAAM,EAAE,aAa/D,CAAA"}
Binary file
Binary file
Binary file
@@ -0,0 +1,3 @@
1
+ export { default as Tiled } from './components/Tiled/Tiled';
2
+ export type { TiledProps } from './components/Tiled/Tiled';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,CAAC;AAGhC,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAC5D,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { ClassValue } from 'clsx';
2
+ export declare function cn(...inputs: ClassValue[]): string;
3
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,MAAM,CAAA;AAG5C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC"}
package/dist/main.d.ts ADDED
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.tsx"],"names":[],"mappings":"AAGA,OAAO,iBAAiB,CAAA"}
@@ -0,0 +1,307 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+
4
+ /**
5
+ * Mock Service Worker.
6
+ * @see https://github.com/mswjs/msw
7
+ * - Please do NOT modify this file.
8
+ * - Please do NOT serve this file on production.
9
+ */
10
+
11
+ const PACKAGE_VERSION = '2.8.4'
12
+ const INTEGRITY_CHECKSUM = '00729d72e3b82faf54ca8b9621dbb96f'
13
+ const IS_MOCKED_RESPONSE = Symbol('isMockedResponse')
14
+ const activeClientIds = new Set()
15
+
16
+ self.addEventListener('install', function () {
17
+ self.skipWaiting()
18
+ })
19
+
20
+ self.addEventListener('activate', function (event) {
21
+ event.waitUntil(self.clients.claim())
22
+ })
23
+
24
+ self.addEventListener('message', async function (event) {
25
+ const clientId = event.source.id
26
+
27
+ if (!clientId || !self.clients) {
28
+ return
29
+ }
30
+
31
+ const client = await self.clients.get(clientId)
32
+
33
+ if (!client) {
34
+ return
35
+ }
36
+
37
+ const allClients = await self.clients.matchAll({
38
+ type: 'window',
39
+ })
40
+
41
+ switch (event.data) {
42
+ case 'KEEPALIVE_REQUEST': {
43
+ sendToClient(client, {
44
+ type: 'KEEPALIVE_RESPONSE',
45
+ })
46
+ break
47
+ }
48
+
49
+ case 'INTEGRITY_CHECK_REQUEST': {
50
+ sendToClient(client, {
51
+ type: 'INTEGRITY_CHECK_RESPONSE',
52
+ payload: {
53
+ packageVersion: PACKAGE_VERSION,
54
+ checksum: INTEGRITY_CHECKSUM,
55
+ },
56
+ })
57
+ break
58
+ }
59
+
60
+ case 'MOCK_ACTIVATE': {
61
+ activeClientIds.add(clientId)
62
+
63
+ sendToClient(client, {
64
+ type: 'MOCKING_ENABLED',
65
+ payload: {
66
+ client: {
67
+ id: client.id,
68
+ frameType: client.frameType,
69
+ },
70
+ },
71
+ })
72
+ break
73
+ }
74
+
75
+ case 'MOCK_DEACTIVATE': {
76
+ activeClientIds.delete(clientId)
77
+ break
78
+ }
79
+
80
+ case 'CLIENT_CLOSED': {
81
+ activeClientIds.delete(clientId)
82
+
83
+ const remainingClients = allClients.filter((client) => {
84
+ return client.id !== clientId
85
+ })
86
+
87
+ // Unregister itself when there are no more clients
88
+ if (remainingClients.length === 0) {
89
+ self.registration.unregister()
90
+ }
91
+
92
+ break
93
+ }
94
+ }
95
+ })
96
+
97
+ self.addEventListener('fetch', function (event) {
98
+ const { request } = event
99
+
100
+ // Bypass navigation requests.
101
+ if (request.mode === 'navigate') {
102
+ return
103
+ }
104
+
105
+ // Opening the DevTools triggers the "only-if-cached" request
106
+ // that cannot be handled by the worker. Bypass such requests.
107
+ if (request.cache === 'only-if-cached' && request.mode !== 'same-origin') {
108
+ return
109
+ }
110
+
111
+ // Bypass all requests when there are no active clients.
112
+ // Prevents the self-unregistered worked from handling requests
113
+ // after it's been deleted (still remains active until the next reload).
114
+ if (activeClientIds.size === 0) {
115
+ return
116
+ }
117
+
118
+ // Generate unique request ID.
119
+ const requestId = crypto.randomUUID()
120
+ event.respondWith(handleRequest(event, requestId))
121
+ })
122
+
123
+ async function handleRequest(event, requestId) {
124
+ const client = await resolveMainClient(event)
125
+ const response = await getResponse(event, client, requestId)
126
+
127
+ // Send back the response clone for the "response:*" life-cycle events.
128
+ // Ensure MSW is active and ready to handle the message, otherwise
129
+ // this message will pend indefinitely.
130
+ if (client && activeClientIds.has(client.id)) {
131
+ ;(async function () {
132
+ const responseClone = response.clone()
133
+
134
+ sendToClient(
135
+ client,
136
+ {
137
+ type: 'RESPONSE',
138
+ payload: {
139
+ requestId,
140
+ isMockedResponse: IS_MOCKED_RESPONSE in response,
141
+ type: responseClone.type,
142
+ status: responseClone.status,
143
+ statusText: responseClone.statusText,
144
+ body: responseClone.body,
145
+ headers: Object.fromEntries(responseClone.headers.entries()),
146
+ },
147
+ },
148
+ [responseClone.body],
149
+ )
150
+ })()
151
+ }
152
+
153
+ return response
154
+ }
155
+
156
+ // Resolve the main client for the given event.
157
+ // Client that issues a request doesn't necessarily equal the client
158
+ // that registered the worker. It's with the latter the worker should
159
+ // communicate with during the response resolving phase.
160
+ async function resolveMainClient(event) {
161
+ const client = await self.clients.get(event.clientId)
162
+
163
+ if (activeClientIds.has(event.clientId)) {
164
+ return client
165
+ }
166
+
167
+ if (client?.frameType === 'top-level') {
168
+ return client
169
+ }
170
+
171
+ const allClients = await self.clients.matchAll({
172
+ type: 'window',
173
+ })
174
+
175
+ return allClients
176
+ .filter((client) => {
177
+ // Get only those clients that are currently visible.
178
+ return client.visibilityState === 'visible'
179
+ })
180
+ .find((client) => {
181
+ // Find the client ID that's recorded in the
182
+ // set of clients that have registered the worker.
183
+ return activeClientIds.has(client.id)
184
+ })
185
+ }
186
+
187
+ async function getResponse(event, client, requestId) {
188
+ const { request } = event
189
+
190
+ // Clone the request because it might've been already used
191
+ // (i.e. its body has been read and sent to the client).
192
+ const requestClone = request.clone()
193
+
194
+ function passthrough() {
195
+ // Cast the request headers to a new Headers instance
196
+ // so the headers can be manipulated with.
197
+ const headers = new Headers(requestClone.headers)
198
+
199
+ // Remove the "accept" header value that marked this request as passthrough.
200
+ // This prevents request alteration and also keeps it compliant with the
201
+ // user-defined CORS policies.
202
+ const acceptHeader = headers.get('accept')
203
+ if (acceptHeader) {
204
+ const values = acceptHeader.split(',').map((value) => value.trim())
205
+ const filteredValues = values.filter(
206
+ (value) => value !== 'msw/passthrough',
207
+ )
208
+
209
+ if (filteredValues.length > 0) {
210
+ headers.set('accept', filteredValues.join(', '))
211
+ } else {
212
+ headers.delete('accept')
213
+ }
214
+ }
215
+
216
+ return fetch(requestClone, { headers })
217
+ }
218
+
219
+ // Bypass mocking when the client is not active.
220
+ if (!client) {
221
+ return passthrough()
222
+ }
223
+
224
+ // Bypass initial page load requests (i.e. static assets).
225
+ // The absence of the immediate/parent client in the map of the active clients
226
+ // means that MSW hasn't dispatched the "MOCK_ACTIVATE" event yet
227
+ // and is not ready to handle requests.
228
+ if (!activeClientIds.has(client.id)) {
229
+ return passthrough()
230
+ }
231
+
232
+ // Notify the client that a request has been intercepted.
233
+ const requestBuffer = await request.arrayBuffer()
234
+ const clientMessage = await sendToClient(
235
+ client,
236
+ {
237
+ type: 'REQUEST',
238
+ payload: {
239
+ id: requestId,
240
+ url: request.url,
241
+ mode: request.mode,
242
+ method: request.method,
243
+ headers: Object.fromEntries(request.headers.entries()),
244
+ cache: request.cache,
245
+ credentials: request.credentials,
246
+ destination: request.destination,
247
+ integrity: request.integrity,
248
+ redirect: request.redirect,
249
+ referrer: request.referrer,
250
+ referrerPolicy: request.referrerPolicy,
251
+ body: requestBuffer,
252
+ keepalive: request.keepalive,
253
+ },
254
+ },
255
+ [requestBuffer],
256
+ )
257
+
258
+ switch (clientMessage.type) {
259
+ case 'MOCK_RESPONSE': {
260
+ return respondWithMock(clientMessage.data)
261
+ }
262
+
263
+ case 'PASSTHROUGH': {
264
+ return passthrough()
265
+ }
266
+ }
267
+
268
+ return passthrough()
269
+ }
270
+
271
+ function sendToClient(client, message, transferrables = []) {
272
+ return new Promise((resolve, reject) => {
273
+ const channel = new MessageChannel()
274
+
275
+ channel.port1.onmessage = (event) => {
276
+ if (event.data && event.data.error) {
277
+ return reject(event.data.error)
278
+ }
279
+
280
+ resolve(event.data)
281
+ }
282
+
283
+ client.postMessage(
284
+ message,
285
+ [channel.port2].concat(transferrables.filter(Boolean)),
286
+ )
287
+ })
288
+ }
289
+
290
+ async function respondWithMock(response) {
291
+ // Setting response status code to 0 is a no-op.
292
+ // However, when responding with a "Response.error()", the produced Response
293
+ // instance will have status code set to 0. Since it's not possible to create
294
+ // a Response instance with status code 0, handle that use-case separately.
295
+ if (response.status === 0) {
296
+ return Response.error()
297
+ }
298
+
299
+ const mockedResponse = new Response(response.body, response)
300
+
301
+ Reflect.defineProperty(mockedResponse, IS_MOCKED_RESPONSE, {
302
+ value: true,
303
+ enumerable: true,
304
+ })
305
+
306
+ return mockedResponse
307
+ }
@@ -0,0 +1,17 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { default as Tiled } from '../components/Tiled/Tiled';
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof Tiled;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ tags: string[];
10
+ argTypes: {};
11
+ };
12
+ export default meta;
13
+ type Story = StoryObj<typeof meta>;
14
+ export declare const Primary: Story;
15
+ export declare const LocalHostUrl: Story;
16
+ export declare const CustomUrl: Story;
17
+ //# sourceMappingURL=Tiled.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tiled.stories.d.ts","sourceRoot":"","sources":["../../src/stories/Tiled.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,MAAM,2BAA2B,CAAC;AAqQ9C,QAAA,MAAM,IAAI;;;;;;;;CAsCoB,CAAC;AAE/B,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAGnC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAIxB,CAAC;AAEJ,eAAO,MAAM,SAAS,EAAE,KAKrB,CAAC"}
package/dist/tiled.css ADDED
@@ -0,0 +1 @@
1
+ *,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--radius: .5rem }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.-top-0{top:-0px}.-top-2{top:-.5rem}.-top-8{top:-2rem}.left-1\/2{left:50%}.left-2{left:.5rem}.right-0{right:0}.right-1{right:.25rem}.right-2{right:.5rem}.top-0{top:0}.top-1{top:.25rem}.top-2{top:.5rem}.z-0{z-index:0}.z-10{z-index:10}.z-50{z-index:50}.m-auto{margin:auto}.mx-auto{margin-left:auto;margin-right:auto}.my-12{margin-top:3rem;margin-bottom:3rem}.mb-4{margin-bottom:1rem}.mr-3{margin-right:.75rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.block{display:block}.flex{display:flex}.table{display:table}.contents{display:contents}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.size-6{width:1.5rem;height:1.5rem}.h-1\/2{height:50%}.h-10{height:2.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-20{height:5rem}.h-24{height:6rem}.h-4{height:1rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-96{height:24rem}.h-\[1000px\]{height:1000px}.h-\[1200px\]{height:1200px}.h-\[1600px\]{height:1600px}.h-\[500px\]{height:500px}.h-\[800px\]{height:800px}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.min-h-0{min-height:0px}.min-h-12{min-height:3rem}.min-h-14{min-height:3.5rem}.min-h-\[500px\]{min-height:500px}.w-1\/2{width:50%}.w-1\/4{width:25%}.w-10{width:2.5rem}.w-12{width:3rem}.w-16{width:4rem}.w-4\/5{width:80%}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-7\/12{width:58.333333%}.w-72{width:18rem}.w-\[0\]{width:0}.w-\[1000px\]{width:1000px}.w-\[1200px\]{width:1200px}.w-\[1600px\]{width:1600px}.w-\[1px\]{width:1px}.w-\[600px\]{width:600px}.w-\[800px\]{width:800px}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-56{min-width:14rem}.min-w-72{min-width:18rem}.min-w-96{min-width:24rem}.min-w-\[30rem\]{min-width:30rem}.min-w-\[600px\]{min-width:600px}.min-w-full{min-width:100%}.max-w-32{max-width:8rem}.max-w-\[100\%\]{max-width:100%}.max-w-\[400px\]{max-width:400px}.max-w-full{max-width:100%}.max-w-xs{max-width:20rem}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.appearance-auto{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-4{gap:1rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.5rem * var(--tw-space-x-reverse));margin-left:calc(1.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-nowrap{text-wrap:nowrap}.break-words{overflow-wrap:break-word}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-slate-400{--tw-border-opacity: 1;border-color:rgb(148 163 184 / var(--tw-border-opacity, 1))}.border-slate-500{--tw-border-opacity: 1;border-color:rgb(100 116 139 / var(--tw-border-opacity, 1))}.border-r-slate-300{--tw-border-opacity: 1;border-right-color:rgb(203 213 225 / var(--tw-border-opacity, 1))}.bg-black\/50{background-color:#00000080}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.bg-sky-200{--tw-bg-opacity: 1;background-color:rgb(186 230 253 / var(--tw-bg-opacity, 1))}.bg-sky-500{--tw-bg-opacity: 1;background-color:rgb(14 165 233 / var(--tw-bg-opacity, 1))}.bg-slate-300{--tw-bg-opacity: 1;background-color:rgb(203 213 225 / var(--tw-bg-opacity, 1))}.bg-slate-400\/50{background-color:#94a3b880}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-white\/50{background-color:#ffffff80}.px-1{padding-left:.25rem;padding-right:.25rem}.px-12{padding-left:3rem;padding-right:3rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-\[1px\]{padding-top:1px;padding-bottom:1px}.pb-1{padding-bottom:.25rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pl-1{padding-left:.25rem}.pl-2{padding-left:.5rem}.pl-4{padding-left:1rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-light{font-weight:300}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-sky-500{--tw-text-opacity: 1;color:rgb(14 165 233 / var(--tw-text-opacity, 1))}.text-sky-700{--tw-text-opacity: 1;color:rgb(3 105 161 / var(--tw-text-opacity, 1))}.text-sky-900{--tw-text-opacity: 1;color:rgb(12 74 110 / var(--tw-text-opacity, 1))}.text-sky-950{--tw-text-opacity: 1;color:rgb(8 47 73 / var(--tw-text-opacity, 1))}.text-slate-200{--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity, 1))}.text-slate-400{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity, 1))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.text-slate-600{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.text-slate-700{--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.opacity-25{opacity:.25}.opacity-75{opacity:.75}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.rounded-scrollbar::-webkit-scrollbar{width:8px;height:8px}.rounded-scrollbar::-webkit-scrollbar-thumb{background-color:#cbd5e1;border-radius:9999px;border:2px solid #ffffff}.rounded-scrollbar::-webkit-scrollbar-track{background-color:#f8fafc;border-radius:9999px}.rounded-scrollbar{scrollbar-width:thin;scrollbar-color:#cbd5e1 #f8fafc}.hover\:cursor-not-allowed:hover{cursor:not-allowed}.hover\:cursor-pointer:hover{cursor:pointer}.hover\:cursor-text:hover{cursor:text}.hover\:bg-blue-500:hover{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\:bg-sky-300:hover{--tw-bg-opacity: 1;background-color:rgb(125 211 252 / var(--tw-bg-opacity, 1))}.hover\:bg-sky-600:hover{--tw-bg-opacity: 1;background-color:rgb(2 132 199 / var(--tw-bg-opacity, 1))}.hover\:bg-slate-100:hover{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity, 1))}.hover\:text-blue-500:hover{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.hover\:text-sky-300:hover{--tw-text-opacity: 1;color:rgb(125 211 252 / var(--tw-text-opacity, 1))}.hover\:text-slate-400:hover{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity, 1))}.hover\:text-slate-500:hover{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.hover\:text-slate-600:hover{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.hover\:text-slate-900:hover{--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity, 1))}.hover\:opacity-70:hover{opacity:.7}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.group:hover .group-hover\:border{border-width:1px}.peer:hover~.peer-hover\:border{border-width:1px}.peer:hover~.peer-hover\:border-blue-400{--tw-border-opacity: 1;border-color:rgb(96 165 250 / var(--tw-border-opacity, 1))}.peer:hover~.peer-hover\:text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.scrollbar-always-visible::-webkit-scrollbar{background-color:#8080801e;border-radius:10px;width:10px;height:10px;margin-right:2px}.scrollbar-always-visible::-webkit-scrollbar-thumb{background-color:#16171921;border-radius:6px}