@adia-ai/web-components 0.8.21 → 0.8.23

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 (86) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/MIGRATION.md +9 -0
  3. package/components/agent-trace/agent-trace.js +4 -1
  4. package/components/alert/alert.a2ui.json +1 -1
  5. package/components/alert/alert.css +44 -5
  6. package/components/alert/alert.yaml +8 -4
  7. package/components/canvas/canvas.js +4 -1
  8. package/components/chat-thread/chat-input.js +4 -1
  9. package/components/code/code.css +29 -26
  10. package/components/combobox/combobox.a2ui.json +1 -1
  11. package/components/combobox/combobox.class.js +14 -4
  12. package/components/combobox/combobox.css +52 -4
  13. package/components/combobox/combobox.yaml +5 -1
  14. package/components/description-list/description-list.css +9 -0
  15. package/components/drawer/drawer.css +16 -0
  16. package/components/field/field.css +4 -1
  17. package/components/list/list.css +12 -1
  18. package/components/nav-group/nav-group.class.js +45 -2
  19. package/components/nav-group/nav-group.css +11 -2
  20. package/components/progress-row/progress-row.class.js +10 -2
  21. package/components/richtext/richtext.css +7 -0
  22. package/components/select/select.a2ui.json +5 -0
  23. package/components/select/select.class.js +39 -9
  24. package/components/select/select.yaml +13 -0
  25. package/components/stat/stat.js +4 -1
  26. package/components/stepper/stepper.css +25 -20
  27. package/components/table/table.a2ui.json +15 -1
  28. package/components/table/table.class.js +14 -1
  29. package/components/table/table.css +68 -3
  30. package/components/table/table.d.ts +5 -1
  31. package/components/table/table.yaml +34 -1
  32. package/components/tabs/tab.js +4 -1
  33. package/components/tag/tag.css +15 -9
  34. package/core/provider.js +5 -1
  35. package/dist/host.min.css +1 -1
  36. package/dist/host.sheet.js +1 -1
  37. package/dist/scale.min.css +1 -1
  38. package/dist/scale.sheet.js +1 -1
  39. package/dist/theme-provider.min.js +2 -2
  40. package/dist/web-components.min.css +1 -1
  41. package/dist/web-components.min.js +93 -93
  42. package/dist/web-components.sheet.js +1 -1
  43. package/package.json +1 -1
  44. package/patterns/access-requests/access-requests.examples.html +12 -3
  45. package/patterns/admin-keys-and-export/admin-keys-and-export.examples.html +20 -5
  46. package/patterns/agent-cost/agent-cost.examples.html +12 -3
  47. package/patterns/agent-memory/agent-memory.examples.html +12 -3
  48. package/patterns/agent-prompt-library/agent-prompt-library.examples.html +12 -3
  49. package/patterns/agent-tool-call/agent-tool-call.examples.html +16 -4
  50. package/patterns/alert-dialog/alert-dialog.examples.html +12 -3
  51. package/patterns/app-nav/app-nav.examples.html +36 -9
  52. package/patterns/approvals/approvals.examples.html +14 -10
  53. package/patterns/audit-log/audit-log.examples.html +5 -2
  54. package/patterns/bulk-action-toolbar/bulk-action-toolbar.examples.html +210 -32
  55. package/patterns/bulk-action-toolbar/bulk-action-toolbar.examples.js +83 -4
  56. package/patterns/bulk-action-toolbar/bulk-action-toolbar.html +68 -0
  57. package/patterns/changelog-feed/changelog-feed.examples.html +4 -1
  58. package/patterns/chart-in-card/chart-in-card.examples.html +28 -7
  59. package/patterns/comments-and-collaboration/comments-and-collaboration.examples.html +20 -5
  60. package/patterns/conversion-funnel/conversion-funnel.examples.html +24 -15
  61. package/patterns/data-tables-inline-edit-and-tree/data-tables-inline-edit-and-tree.examples.html +15 -6
  62. package/patterns/diff-review/diff-review.examples.html +12 -3
  63. package/patterns/export-flow/export-flow.examples.html +12 -3
  64. package/patterns/filter-bar/filter-bar.examples.html +13 -4
  65. package/patterns/form-drawer/form-drawer.examples.html +15 -6
  66. package/patterns/form-system/form-system.examples.html +4 -1
  67. package/patterns/forms-conditional-and-autocomplete/forms-conditional-and-autocomplete.examples.html +12 -3
  68. package/patterns/inline-dialog/inline-dialog.examples.html +12 -3
  69. package/patterns/kanban-board/kanban-board.examples.html +4 -1
  70. package/patterns/marketing-engagement/marketing-engagement.examples.html +24 -6
  71. package/patterns/notifications-bell-and-digest/notifications-bell-and-digest.examples.html +12 -3
  72. package/patterns/permissions-matrix/permissions-matrix.examples.html +9 -3
  73. package/patterns/permissions-role-picker/permissions-role-picker.examples.html +8 -2
  74. package/patterns/permissions-sharing/permissions-sharing.examples.html +12 -3
  75. package/patterns/profile-public-and-verification/profile-public-and-verification.examples.html +16 -4
  76. package/patterns/record-detail-drawer/record-detail-drawer.examples.html +10 -4
  77. package/patterns/retention-cohort/retention-cohort.examples.html +15 -6
  78. package/patterns/search-discovery/search-discovery.examples.html +16 -4
  79. package/patterns/system-banners/system-banners.examples.html +54 -48
  80. package/patterns/timezone-selector/timezone-selector.examples.html +8 -2
  81. package/patterns/timezone-selector/timezone-selector.examples.js +3 -1
  82. package/patterns/wizard-drawer/wizard-drawer.examples.html +25 -23
  83. package/patterns/wizard-drawer/wizard-drawer.examples.js +12 -1
  84. package/styles/foundation/radius.css +2 -2
  85. package/styles/scale.css +2 -2
  86. package/styles/type/scale.css +6 -6
@@ -7,6 +7,7 @@
7
7
  * The tab button is rendered by the parent tabs-ui, not by tab-ui itself.
8
8
  */
9
9
 
10
+ import { defineIfFree } from '../../core/register.js';
10
11
  import { UIElement } from '../../core/element.js';
11
12
 
12
13
  class UITab extends UIElement {
@@ -29,6 +30,8 @@ class UITab extends UIElement {
29
30
  else this.removeAttribute('aria-disabled');
30
31
  }
31
32
  }
32
- customElements.define('tab-ui', UITab);
33
+ // defineIfFree (gh#534): the prod bundle + module graph load in parallel;
34
+ // second registration must no-op, not throw.
35
+ defineIfFree('tab-ui', UITab);
33
36
 
34
37
  export { UITab };
@@ -51,15 +51,21 @@ tag-ui[removable]:not([disabled]):hover {
51
51
  box-sizing: border-box;
52
52
  display: inline-flex;
53
53
  align-items: center;
54
- /* align-self: start — TKT-0021. A flex-column ancestor (col-ui
55
- defaults to align-items: stretch) otherwise stretches a bare
56
- tag-ui to the column's full width; a chip should size to its own
57
- content regardless of ancestor. justify-content: center is the
58
- matching defensive default badge-ui/button-ui already carry
59
- (badge.css/button.css) if the box is ever wider than its
60
- content for any other reason, the label still centers instead of
61
- reading left-aligned in an oversized pill. */
62
- align-self: start;
54
+ /* width: fit-contentthe TKT-0021 guard, re-cut for gh#503. The old
55
+ `align-self: start` defeated col-ui's stretch, but align-self acts on
56
+ whichever cross axis the PARENT has: in a flex-ROW parent (every
57
+ table-ui body cell, row-ui, toolbars) it governed the vertical axis
58
+ and top-pinned bare chips in tall rows (measured −34px off-center,
59
+ adia-v2 console). A definite inline size defeats stretch in a column
60
+ stack the same way (stretch applies only at auto cross size; the item
61
+ then sits at cross-start identical content-sized, left-aligned
62
+ result), while a row parent's align-items: center regains control of
63
+ vertical placement. justify-content: center is the matching defensive
64
+ default badge-ui/button-ui already carry (badge.css/button.css) — if
65
+ the box is ever wider than its content for any other reason, the
66
+ label still centers instead of reading left-aligned in an oversized
67
+ pill. */
68
+ width: fit-content;
63
69
  justify-content: center;
64
70
  gap: var(--tag-gap);
65
71
  padding: var(--tag-py) var(--tag-px);
package/core/provider.js CHANGED
@@ -23,6 +23,7 @@
23
23
  */
24
24
 
25
25
  import { UIElement } from './element.js';
26
+ import { defineIfFree } from './register.js';
26
27
  import { BaseController } from './controller.js';
27
28
 
28
29
  // ═══════════════════════════════════════════════════════════════
@@ -295,4 +296,7 @@ export class UIRouter extends UIProvider {
295
296
  }
296
297
  }
297
298
 
298
- customElements.define('router-ui', UIRouter);
299
+ // defineIfFree, not a bare define (gh#534): the site's prod bootstrap loads
300
+ // the prebuilt everything-bundle ALONGSIDE the module graph — whichever
301
+ // registers second must no-op, not throw.
302
+ defineIfFree('router-ui', UIRouter);