@roxyapi/ui 0.51.2 → 0.51.3

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 (37) hide show
  1. package/components-catalog.json +153 -153
  2. package/dist/cdn/components/data.js +4 -4
  3. package/dist/cdn/components/data.js.map +4 -4
  4. package/dist/cdn/components/endpoint-form.js +1 -1
  5. package/dist/cdn/components/endpoint-form.js.map +1 -1
  6. package/dist/cdn/components/gematria.js +1 -1
  7. package/dist/cdn/components/gematria.js.map +2 -2
  8. package/dist/cdn/components/guna-milan.js +1 -1
  9. package/dist/cdn/components/guna-milan.js.map +2 -2
  10. package/dist/cdn/components/mayan-day-sign.js +1 -1
  11. package/dist/cdn/components/mayan-day-sign.js.map +2 -2
  12. package/dist/cdn/roxy-ui.js +52 -52
  13. package/dist/cdn/roxy-ui.js.map +4 -4
  14. package/dist/components/data.d.ts +10 -33
  15. package/dist/components/data.d.ts.map +1 -1
  16. package/dist/components/data.js +1 -1
  17. package/dist/components/data.js.map +4 -4
  18. package/dist/components/endpoint-form.js +1 -1
  19. package/dist/components/endpoint-form.js.map +1 -1
  20. package/dist/components/gematria.js +1 -1
  21. package/dist/components/gematria.js.map +2 -2
  22. package/dist/components/guna-milan.js +1 -1
  23. package/dist/components/guna-milan.js.map +2 -2
  24. package/dist/components/mayan-day-sign.js +1 -1
  25. package/dist/components/mayan-day-sign.js.map +2 -2
  26. package/dist/index.cjs +81 -81
  27. package/dist/index.cjs.map +4 -4
  28. package/dist/index.js +76 -76
  29. package/dist/index.js.map +4 -4
  30. package/dist/styles/themes/practitioner.css +5 -5
  31. package/dist/utils/stacked-table.d.ts.map +1 -1
  32. package/dist/version.d.ts +1 -1
  33. package/package.json +1 -1
  34. package/src/components/data.ts +85 -94
  35. package/src/styles/themes/practitioner.css +5 -5
  36. package/src/utils/stacked-table.ts +2 -0
  37. package/src/version.ts +1 -1
@@ -27,7 +27,7 @@
27
27
  font-style: normal;
28
28
  font-weight: 400 600;
29
29
  font-display: swap;
30
- src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.51.2/dist/styles/fonts/fraunces/fraunces-latin.woff2")
30
+ src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.51.3/dist/styles/fonts/fraunces/fraunces-latin.woff2")
31
31
  format("woff2");
32
32
  unicode-range:
33
33
  U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
@@ -38,7 +38,7 @@
38
38
  font-style: normal;
39
39
  font-weight: 400 600;
40
40
  font-display: swap;
41
- src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.51.2/dist/styles/fonts/fraunces/fraunces-latin-ext.woff2")
41
+ src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.51.3/dist/styles/fonts/fraunces/fraunces-latin-ext.woff2")
42
42
  format("woff2");
43
43
  unicode-range:
44
44
  U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
@@ -49,7 +49,7 @@
49
49
  font-style: normal;
50
50
  font-weight: 400 600;
51
51
  font-display: swap;
52
- src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.51.2/dist/styles/fonts/jost/jost-latin.woff2")
52
+ src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.51.3/dist/styles/fonts/jost/jost-latin.woff2")
53
53
  format("woff2");
54
54
  unicode-range:
55
55
  U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
@@ -60,7 +60,7 @@
60
60
  font-style: normal;
61
61
  font-weight: 400 600;
62
62
  font-display: swap;
63
- src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.51.2/dist/styles/fonts/jost/jost-latin-ext.woff2")
63
+ src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.51.3/dist/styles/fonts/jost/jost-latin-ext.woff2")
64
64
  format("woff2");
65
65
  unicode-range:
66
66
  U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
@@ -71,7 +71,7 @@
71
71
  font-style: normal;
72
72
  font-weight: 400 600;
73
73
  font-display: swap;
74
- src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.51.2/dist/styles/fonts/jost/jost-cyrillic.woff2")
74
+ src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.51.3/dist/styles/fonts/jost/jost-cyrillic.woff2")
75
75
  format("woff2");
76
76
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
77
77
  }
@@ -1 +1 @@
1
- {"version":3,"file":"stacked-table.d.ts","sourceRoot":"","sources":["../../src/utils/stacked-table.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,kBAAkB,yBAoC9B,CAAC"}
1
+ {"version":3,"file":"stacked-table.d.ts","sourceRoot":"","sources":["../../src/utils/stacked-table.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,kBAAkB,yBAsC9B,CAAC"}
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const ROXY_UI_VERSION = "0.51.2";
1
+ export declare const ROXY_UI_VERSION = "0.51.3";
2
2
  //# sourceMappingURL=version.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roxyapi/ui",
3
- "version": "0.51.2",
3
+ "version": "0.51.3",
4
4
  "description": "Web components for the RoxyAPI catalog. Drop-in charts, tables, cards, forms for astrology, tarot, numerology, biorhythm, I Ching, crystals, dreams, angel numbers, and more. One key, beautiful in 30 minutes.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -3,49 +3,19 @@ import { customElement, property } from 'lit/decorators.js';
3
3
  import { ifDefined } from 'lit/directives/if-defined.js';
4
4
  import { RoxyDataElement } from '../utils/base-element.js';
5
5
  import { baseStyles } from '../utils/base-styles.js';
6
- import { formatDate, formatNumber, formatTime } from '../utils/format.js';
6
+ import { formatDateTime, formatNumber } from '../utils/format.js';
7
7
  import { displayField, foldLocalized } from '../utils/localized.js';
8
+ import { stackedTableStyles } from '../utils/stacked-table.js';
8
9
  import { humanize } from '../utils/string.js';
9
10
 
10
- /**
11
- * Generic fallback renderer. Accepts ANY OpenAPI response shape and renders
12
- * it via field-name heuristics so future spec additions render reasonably
13
- * without hand-wired components.
14
- *
15
- * Heuristic order:
16
- * 1. Primitive (string, number, boolean) -> single line.
17
- * 2. Array of primitives -> chip list.
18
- * 3. Array of objects with shared keys -> table.
19
- * 4. Object with title-like field -> card with key/value rows; object and
20
- * object-array values promote to full-width sections below the rows so
21
- * nested tables keep the whole container width.
22
- * 5. Otherwise -> definition list of all keys.
23
- *
24
- * Scalar display rules (shared by rows, chips, and table cells): numbers
25
- * round to 2 decimals, booleans read Yes/No, ISO dates and datetimes format
26
- * for the locale, SCREAMING_SNAKE enums humanize, http(s) strings link out.
27
- *
28
- * Every word this component writes goes through `this.t()`, which is not
29
- * optional politeness: `suppress()` already folds the API's localized values
30
- * into their canonical columns, so before the catalogue landed a Spanish page
31
- * read `Sol` and `Piscis` under `Yes`, `No` and `31 rows` in English. What a
32
- * catalogue CANNOT reach is the column headings, which come from the wire field
33
- * name through `humanize()` and are therefore computed per response; those stay
34
- * English on both this path and the PHP one, which at least keeps them
35
- * consistent with each other. The PHP twin has none of these strings yet, so
36
- * the JS and no-JS paths currently disagree on the chrome as well as the fold
37
- * (see lesson 6 for why that matters).
38
- *
39
- * When a schema declares an `x-roxy-ui` hint, a future dispatcher can opt
40
- * into a hand-tuned component instead of this fallback.
41
- */
42
-
43
11
  type Json = string | number | boolean | null | Json[] | { [key: string]: Json };
44
12
  type Scalar = string | number | boolean;
45
13
 
46
14
  const TITLE_KEYS = ['title', 'name', 'label', 'heading', 'overview', 'summary'];
47
15
  /** A title is a label, not a paragraph. `overview`/`summary` are only title candidates when a response carries no real name, and a whole paragraph promoted to an <h3> is worse than no title at all. */
48
16
  const MAX_TITLE_LEN = 80;
17
+ const MAX_COMPACT_CELL_LENGTH = 80;
18
+ const MAX_FLEX_TABLE_COLUMNS = 3;
49
19
  const IMAGE_KEYS = ['imageUrl', 'image', 'icon', 'symbol'];
50
20
  const SKIP_KEYS = ['imageUrl', 'image']; // rendered separately, not in body rows
51
21
  const QUOTE_KEYS = ['affirmation', 'mantra', 'motto', 'quote'];
@@ -76,11 +46,11 @@ const SUPPRESS_NOISE = new Set([
76
46
  'perpage',
77
47
  ]);
78
48
 
79
- /** Sections with more keys than this, and tables with more rows than this, collapse into `<details>`. */
49
+ /** Sections with more keys than this collapse into `<details>`. */
80
50
  const DETAILS_KEYS = 8;
81
51
  /** Depth at which a section folds shut by default rather than rendering open. */
82
52
  const DEEP_DEPTH = 1;
83
- const DETAILS_ROWS = 12;
53
+ const SCROLL_ROWS = 12;
84
54
 
85
55
  const normKey = (k: string): string => k.toLowerCase().replace(/[_-]/g, '');
86
56
 
@@ -145,6 +115,15 @@ function isEmptyValue(value: Json): boolean {
145
115
  return values.length === 0 || values.every(isEmptyValue);
146
116
  }
147
117
 
118
+ /**
119
+ * Generic fallback heuristic order:
120
+ * 1. Primitives render as locale-aware text; primitive arrays render as chips.
121
+ * 2. Compact object arrays render as tables; arrays with many columns plus paragraph text or nested data render as readable records.
122
+ * 3. Objects with a title render a heading and scalar facts; other objects render a definition list.
123
+ * 4. Nested objects and object arrays occupy full-width sections, retaining the shared depth and disclosure policy.
124
+ * Scalar dates, numbers and enums use shared locale-aware formatters; chrome uses t(), response labels use displayField(), and values are folded before classification.
125
+ * Folding localized values without translating surrounding chrome gives the reader mixed languages, and the server fallback must apply the same field selection and collection presentation.
126
+ */
148
127
  @customElement('roxy-data')
149
128
  export class RoxyData extends RoxyDataElement<Json> {
150
129
  static styles = [
@@ -215,20 +194,36 @@ export class RoxyData extends RoxyDataElement<Json> {
215
194
  font-size: var(--roxy-text-xs, 0.75rem);
216
195
  }
217
196
 
218
- .roxy-table-wrap {
219
- overflow-x: auto;
197
+ .roxy-collection {
220
198
  min-width: 0;
221
199
  }
200
+ .roxy-collection.compact {
201
+ overflow-x: auto;
202
+ }
203
+ .roxy-collection.long {
204
+ max-block-size: 32rem;
205
+ }
206
+ .roxy-collection:focus-visible {
207
+ outline: 2px solid var(--roxy-ring, rgba(245, 158, 11, 0.4));
208
+ outline-offset: 2px;
209
+ }
210
+ .roxy-record + .roxy-record {
211
+ margin-block-start: var(--roxy-space-sm, 0.5rem);
212
+ }
222
213
  table.roxy-table {
223
214
  width: 100%;
224
215
  border-collapse: collapse;
225
216
  font-size: var(--roxy-text-sm, 0.875rem);
226
217
  }
218
+ table.roxy-table caption {
219
+ text-align: start;
220
+ }
227
221
  table.roxy-table th,
228
222
  table.roxy-table td {
229
223
  border-bottom: 1px solid var(--roxy-border, #e4e4e7);
230
224
  padding: var(--roxy-space-sm, 0.5rem);
231
225
  text-align: left;
226
+ vertical-align: top;
232
227
  text-transform: none;
233
228
  word-break: normal;
234
229
  overflow-wrap: normal;
@@ -241,19 +236,18 @@ export class RoxyData extends RoxyDataElement<Json> {
241
236
  letter-spacing: 0.04em;
242
237
  white-space: nowrap;
243
238
  }
244
- /* Scalar column: as narrow as its content allows. A 1% width on an auto
245
- * table is the standard way to say that, and the remaining auto column
246
- * absorbs everything left. See renderTable for why. */
247
- table.roxy-table th.col-tight,
248
- table.roxy-table td.col-tight {
239
+ /* A 1% auto-table width keeps short columns at their content width, leaving room for prose and nested records. */
240
+ :where(table.roxy-table) :is(th, td).col-tight {
249
241
  width: 1%;
250
242
  white-space: nowrap;
251
243
  }
252
- /* Column holding nested data: take the width the scalars gave back. */
253
- table.roxy-table th.col-wide,
254
- table.roxy-table td.col-wide {
244
+ /* Text and nested data keep a readable measure beside compact scalars. */
245
+ :where(table.roxy-table) :is(th, td).col-wide {
255
246
  width: auto;
256
247
  }
248
+ :where(table.roxy-table.prose) :is(th, td).col-wide {
249
+ min-width: 40ch;
250
+ }
257
251
 
258
252
  .roxy-image {
259
253
  max-width: 100%;
@@ -296,25 +290,23 @@ export class RoxyData extends RoxyDataElement<Json> {
296
290
  font-weight: var(--roxy-weight-bold, 600);
297
291
  }
298
292
 
299
- details.roxy-section,
300
- details.roxy-table-details {
293
+ details.roxy-section {
301
294
  margin-top: var(--roxy-space-md, 1rem);
302
295
  }
303
- details.roxy-section > summary,
304
- details.roxy-table-details > summary {
296
+ details.roxy-section > summary {
305
297
  cursor: pointer;
306
298
  font-size: var(--roxy-text-sm, 0.875rem);
307
299
  font-weight: var(--roxy-weight-bold, 600);
308
300
  color: var(--roxy-secondary, #475569);
309
301
  text-transform: capitalize;
310
302
  }
311
- details.roxy-section > summary:focus-visible,
312
- details.roxy-table-details > summary:focus-visible {
303
+ details.roxy-section > summary:focus-visible {
313
304
  outline: 2px solid var(--roxy-ring, rgba(245, 158, 11, 0.4));
314
305
  outline-offset: 2px;
315
306
  border-radius: 4px;
316
307
  }
317
308
  `,
309
+ stackedTableStyles,
318
310
  ];
319
311
 
320
312
  /**
@@ -351,7 +343,8 @@ export class RoxyData extends RoxyDataElement<Json> {
351
343
  const allObjects = arr.every(
352
344
  (v) => v !== null && typeof v === 'object' && !Array.isArray(v),
353
345
  );
354
- if (allObjects) return this.renderTable(arr as Record<string, Json>[]);
346
+ if (allObjects)
347
+ return this.renderObjectArray(arr as Record<string, Json>[]);
355
348
  return html`<ol>
356
349
  ${arr.map((v) => html`<li>${this.renderValue(v)}</li>`)}
357
350
  </ol>`;
@@ -365,33 +358,46 @@ export class RoxyData extends RoxyDataElement<Json> {
365
358
  </ul>`;
366
359
  }
367
360
 
368
- private renderTable(rows: Record<string, Json>[]): TemplateResult {
361
+ private renderObjectArray(rows: Record<string, Json>[]): TemplateResult {
369
362
  const clean = rows.map((r) => this.suppress(r));
370
363
  const keys = this.collectKeys(clean);
371
364
 
372
- /**
373
- * A column holding nested data needs the width; a column holding a short scalar does not.
374
- *
375
- * @remarks
376
- * Browsers lay an auto table out by content, so a `date` column of ten characters and a `positions` column holding a whole nested table settle at roughly half the width each, and the nested one is the one that ends up cramped. Marking each column by what it actually CONTAINS lets the scalar columns collapse to their content (`width: 1%` is the standard way to say "as narrow as your content allows") and the nested column absorb everything left over. No fixed percentage: the split follows the data.
377
- *
378
- * Only worth doing when the row is mixed. If every column is scalar, or every column is nested, there is nothing to bias toward and the browser's own distribution is already right.
379
- */
380
- const complex = new Set(
381
- keys.filter((k) => clean.some((r) => isComplex(r[k] ?? null))),
365
+ const prose = new Set(
366
+ keys.filter((k) =>
367
+ clean.some(
368
+ (r) =>
369
+ typeof r[k] === 'string' &&
370
+ Array.from(r[k]).length > MAX_COMPACT_CELL_LENGTH,
371
+ ),
372
+ ),
382
373
  );
383
- const mixed = complex.size > 0 && complex.size < keys.length;
374
+ const wide = new Set(
375
+ keys.filter(
376
+ (k) => prose.has(k) || clean.some((r) => isComplex(r[k] ?? null)),
377
+ ),
378
+ );
379
+ const sized = prose.size > 0 || (wide.size > 0 && wide.size < keys.length);
384
380
  const colClass = (k: string) =>
385
- mixed ? (complex.has(k) ? 'col-wide' : 'col-tight') : '';
381
+ sized ? (wide.has(k) ? 'col-wide' : 'col-tight') : '';
386
382
 
387
- const table = html`<div
388
- class="roxy-table-wrap"
383
+ const records = wide.size > 0 && keys.length > MAX_FLEX_TABLE_COLUMNS;
384
+ const long = clean.length > SCROLL_ROWS;
385
+ const bounded = long && !records;
386
+ return html`<div
387
+ class=${records ? 'roxy-collection' : bounded ? 'roxy-collection compact long' : 'roxy-collection compact'}
389
388
  part="table"
390
- role="group"
391
- aria-label=${this.t('Data table')}
392
- tabindex="0"
389
+ role=${records ? 'list' : 'group'}
390
+ aria-label=${records ? this.t('{{count}} rows', { count: clean.length }) : this.t('Data table')}
391
+ tabindex=${records ? nothing : '0'}
393
392
  >
394
- <table class="roxy-table" role="table">
393
+ ${
394
+ records
395
+ ? html`
396
+ ${long ? html`<p>${this.t('{{count}} rows', { count: clean.length })}</p>` : nothing}
397
+ ${clean.map((row) => html`<div class="roxy-record" role="listitem">${this.renderField(row)}</div>`)}
398
+ `
399
+ : html`<table class=${prose.size ? 'roxy-table stacked prose' : wide.size ? 'roxy-table stacked' : 'roxy-table'} role="table">
400
+ ${long ? html`<caption>${this.t('{{count}} rows', { count: clean.length })}</caption>` : nothing}
395
401
  <thead>
396
402
  <tr>
397
403
  ${keys.map(
@@ -405,24 +411,16 @@ export class RoxyData extends RoxyDataElement<Json> {
405
411
  (row) => html`<tr>
406
412
  ${keys.map(
407
413
  (k) =>
408
- html`<td class=${colClass(k)}>
414
+ html`<td class=${colClass(k)} data-label=${displayField(this.effectiveLang(), k)}>
409
415
  ${this.renderCell(row[k], k)}
410
416
  </td>`,
411
417
  )}
412
418
  </tr>`,
413
419
  )}
414
420
  </tbody>
415
- </table>
421
+ </table>`
422
+ }
416
423
  </div>`;
417
- // A 78-row angel-number list or a 27-row nakshatra table is a scroll trap
418
- // inline. Past the threshold it folds away behind its own row count.
419
- if (clean.length > DETAILS_ROWS) {
420
- return html`<details class="roxy-table-details">
421
- <summary>${this.t('{{count}} rows', { count: clean.length })}</summary>
422
- ${table}
423
- </details>`;
424
- }
425
- return table;
426
424
  }
427
425
 
428
426
  /**
@@ -543,9 +541,7 @@ export class RoxyData extends RoxyDataElement<Json> {
543
541
  if (Array.isArray(value) && value.every(isPrimitive)) {
544
542
  return this.renderChips(value as (Scalar | null)[]);
545
543
  }
546
- // `bare`: a nested card inside a card compounds padding and border at every
547
- // level, and by depth 3 the innermost object was rendering into a fraction of the
548
- // width with prose wrapping to two words a line.
544
+ // Bare nested cards suppress their surface and shadows while retaining padding and a hairline border.
549
545
  return html`<roxy-data
550
546
  bare
551
547
  lang=${ifDefined(this.effectiveLang())}
@@ -569,9 +565,7 @@ export class RoxyData extends RoxyDataElement<Json> {
569
565
  .map((v) => this.formatScalar(v))
570
566
  .join(', ');
571
567
  }
572
- // Nested object or object array inside a row: recurse instead of
573
- // stringifying to [object Object]. `bare` drops the card surface so
574
- // the cell does not paint a card inside a cell.
568
+ // Nested cells recurse rather than stringify, with bare cards retaining padding and a hairline border.
575
569
  return html`<roxy-data
576
570
  bare
577
571
  lang=${ifDefined(this.effectiveLang())}
@@ -595,11 +589,8 @@ export class RoxyData extends RoxyDataElement<Json> {
595
589
  return formatNumber(this.effectiveLang(), value, 2) || String(value);
596
590
  }
597
591
  if (typeof value === 'boolean') return value ? this.t('Yes') : this.t('No');
598
- if (ISO_DATE.test(value)) {
599
- const time = formatTime(this.effectiveLang(), value);
600
- const date = formatDate(this.effectiveLang(), value);
601
- return time ? `${date}, ${time}` : date;
602
- }
592
+ if (ISO_DATE.test(value))
593
+ return formatDateTime(this.effectiveLang(), value);
603
594
  if (ENUM_STRING.test(value)) return humanize(value.toLowerCase());
604
595
  return value;
605
596
  }
@@ -27,7 +27,7 @@
27
27
  font-style: normal;
28
28
  font-weight: 400 600;
29
29
  font-display: swap;
30
- src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.51.2/dist/styles/fonts/fraunces/fraunces-latin.woff2")
30
+ src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.51.3/dist/styles/fonts/fraunces/fraunces-latin.woff2")
31
31
  format("woff2");
32
32
  unicode-range:
33
33
  U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
@@ -38,7 +38,7 @@
38
38
  font-style: normal;
39
39
  font-weight: 400 600;
40
40
  font-display: swap;
41
- src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.51.2/dist/styles/fonts/fraunces/fraunces-latin-ext.woff2")
41
+ src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.51.3/dist/styles/fonts/fraunces/fraunces-latin-ext.woff2")
42
42
  format("woff2");
43
43
  unicode-range:
44
44
  U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
@@ -49,7 +49,7 @@
49
49
  font-style: normal;
50
50
  font-weight: 400 600;
51
51
  font-display: swap;
52
- src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.51.2/dist/styles/fonts/jost/jost-latin.woff2")
52
+ src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.51.3/dist/styles/fonts/jost/jost-latin.woff2")
53
53
  format("woff2");
54
54
  unicode-range:
55
55
  U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
@@ -60,7 +60,7 @@
60
60
  font-style: normal;
61
61
  font-weight: 400 600;
62
62
  font-display: swap;
63
- src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.51.2/dist/styles/fonts/jost/jost-latin-ext.woff2")
63
+ src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.51.3/dist/styles/fonts/jost/jost-latin-ext.woff2")
64
64
  format("woff2");
65
65
  unicode-range:
66
66
  U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
@@ -71,7 +71,7 @@
71
71
  font-style: normal;
72
72
  font-weight: 400 600;
73
73
  font-display: swap;
74
- src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.51.2/dist/styles/fonts/jost/jost-cyrillic.woff2")
74
+ src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.51.3/dist/styles/fonts/jost/jost-cyrillic.woff2")
75
75
  format("woff2");
76
76
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
77
77
  }
@@ -24,11 +24,13 @@ import { css } from 'lit';
24
24
  export const stackedTableStyles = css`
25
25
  @container (max-width: 30rem) {
26
26
  table.stacked,
27
+ table.stacked caption,
27
28
  table.stacked tbody,
28
29
  table.stacked tr,
29
30
  table.stacked td {
30
31
  display: block;
31
32
  width: 100%;
33
+ min-width: 0;
32
34
  }
33
35
  table.stacked thead {
34
36
  display: none;
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by scripts/sync-version.ts. Do not edit.
2
- export const ROXY_UI_VERSION = '0.51.2';
2
+ export const ROXY_UI_VERSION = '0.51.3';