@adia-ai/web-components 0.8.23 → 0.8.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/components/agent-questions/agent-questions.yaml +0 -2
- package/components/alert/alert.class.js +5 -0
- package/components/alert/alert.yaml +2 -0
- package/components/anchor-bar/anchor-bar.a2ui.json +139 -0
- package/components/anchor-bar/anchor-bar.class.js +124 -0
- package/components/anchor-bar/anchor-bar.css +140 -0
- package/components/anchor-bar/anchor-bar.d.ts +35 -0
- package/components/anchor-bar/anchor-bar.examples.md +32 -0
- package/components/anchor-bar/anchor-bar.js +17 -0
- package/components/anchor-bar/anchor-bar.yaml +167 -0
- package/components/calendar-grid/calendar-grid.yaml +3 -0
- package/components/card/card.css +12 -0
- package/components/chart/chart.a2ui.json +16 -0
- package/components/chart/chart.class.js +105 -27
- package/components/chart/chart.css +27 -0
- package/components/chart/chart.d.ts +4 -0
- package/components/chart/chart.yaml +28 -0
- package/components/combobox/combobox.class.js +1 -1
- package/components/combobox/combobox.yaml +0 -1
- package/components/date-range-picker/date-range-picker.class.js +1 -1
- package/components/date-range-picker/date-range-picker.yaml +0 -1
- package/components/datetime-picker/datetime-picker.class.js +1 -1
- package/components/datetime-picker/datetime-picker.yaml +0 -1
- package/components/drawer/drawer.class.js +5 -0
- package/components/drawer/drawer.yaml +2 -0
- package/components/feed/feed.class.js +5 -0
- package/components/feed/feed.yaml +2 -0
- package/components/index.js +1 -0
- package/components/input/input.class.js +5 -0
- package/components/input/input.yaml +3 -0
- package/components/list/list.css +13 -4
- package/components/modal/modal.class.js +5 -0
- package/components/modal/modal.yaml +2 -0
- package/components/nav-group/nav-group.class.js +5 -0
- package/components/nav-group/nav-group.yaml +2 -0
- package/components/pagination/pagination.yaml +3 -0
- package/components/select/select.class.js +2 -2
- package/components/select/select.yaml +0 -1
- package/components/stat/stat.a2ui.json +8 -0
- package/components/stat/stat.css +39 -0
- package/components/stat/stat.d.ts +2 -0
- package/components/stat/stat.js +5 -0
- package/components/stat/stat.yaml +11 -0
- package/components/swiper/swiper.class.js +5 -0
- package/components/swiper/swiper.yaml +3 -0
- package/components/toolbar/toolbar.class.js +20 -0
- package/components/toolbar/toolbar.yaml +2 -0
- package/components/tooltip/tooltip.class.js +17 -11
- package/dist/host.min.css +1 -1
- package/dist/host.sheet.js +1 -1
- package/dist/theme-provider.min.js +2 -2
- package/dist/web-components.min.css +1 -1
- package/dist/web-components.min.js +117 -117
- package/dist/web-components.sheet.js +1 -1
- package/package.json +1 -1
- package/patterns/admin-keys-and-export/admin-keys-and-export.examples.html +3 -3
- package/patterns/bulk-action-toolbar/bulk-action-toolbar.examples.html +81 -93
- package/patterns/bulk-action-toolbar/bulk-action-toolbar.examples.js +12 -25
- package/patterns/bulk-action-toolbar/bulk-action-toolbar.html +8 -52
- package/patterns/changelog-feed/changelog-feed.examples.html +3 -3
- package/patterns/comments-and-collaboration/comments-and-collaboration.examples.html +4 -4
- package/patterns/data-tables-inline-edit-and-tree/data-tables-inline-edit-and-tree.examples.html +2 -2
- package/patterns/marketing-engagement/marketing-engagement.examples.html +8 -8
- package/patterns/notifications-bell-and-digest/notifications-bell-and-digest.examples.html +1 -1
- package/patterns/profile-public-and-verification/profile-public-and-verification.examples.html +2 -2
- package/styles/api/parametric-scope.css +81 -0
- package/styles/components.css +1 -0
- package/styles/tokens.css +1 -0
package/patterns/profile-public-and-verification/profile-public-and-verification.examples.html
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
<col-ui gap="1" grow>
|
|
39
39
|
<row-ui gap="2" align="center">
|
|
40
40
|
<text-ui strong size="lg">Kim Granlund</text-ui>
|
|
41
|
-
<tag-ui size="sm" variant="
|
|
41
|
+
<tag-ui size="sm" variant="accent" icon-leading="seal-check">Verified</tag-ui>
|
|
42
42
|
</row-ui>
|
|
43
43
|
<text-ui color="subtle">Founder · AdiaUI · Reykjavík, IS</text-ui>
|
|
44
44
|
<text-ui>Building the AdiaUI web-components library and the A2UI generative-UI runtime. Previously at Construct, before that at Modular.</text-ui>
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
<header>
|
|
179
179
|
<span slot="heading" variant="section">
|
|
180
180
|
You're verified
|
|
181
|
-
<tag-ui size="sm" variant="
|
|
181
|
+
<tag-ui size="sm" variant="accent" icon-leading="seal-check">Verified</tag-ui>
|
|
182
182
|
</span>
|
|
183
183
|
</header>
|
|
184
184
|
<section>
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/* adia:attribute-api/parametric-scope — [data-parametric-scope] re-derivation.
|
|
2
|
+
gh#570: custom properties resolve their calc()/clamp() formula at the
|
|
3
|
+
DECLARING element's own cascade, then inherit the already-resolved value
|
|
4
|
+
down. The primitive layer (foundation/{radius,space,size}.css) declares
|
|
5
|
+
every --a-radius-, --a-space-, and --a-size- formula exactly once, on
|
|
6
|
+
:root — so a descendant overriding --a-density/--a-radius-k (e.g. a
|
|
7
|
+
theme-panel[parametric target="#some-scoped-element"]) never causes
|
|
8
|
+
those derived tokens to re-resolve for its own subtree; it only affects
|
|
9
|
+
what --a-density/--a-radius-k itself reads as, everywhere DOWNSTREAM
|
|
10
|
+
formulas are declared (which is nowhere but :root).
|
|
11
|
+
|
|
12
|
+
[data-parametric-scope] is set by theme-panel.js on a non-root [target]
|
|
13
|
+
when [parametric] is active (never authored by hand) and mirrors these
|
|
14
|
+
SAME formula bodies verbatim so that scoped subtree gets its own working
|
|
15
|
+
copy of the derivation chain. This is the established codebase pattern,
|
|
16
|
+
not a new one — [size="sm"] below in this same file already duplicates
|
|
17
|
+
--a-size-sm's calc() rather than only pointing at it, for the identical
|
|
18
|
+
reason (a scoped attribute needs its OWN resolved value, not :root's).
|
|
19
|
+
|
|
20
|
+
Layer position: imported into layer(utilities), same as the rest of this
|
|
21
|
+
file — wins over foundation/'s layer(tokens) by layer order, though for
|
|
22
|
+
a non-root element that never mattered (no competing :root rule exists
|
|
23
|
+
there to begin with). */
|
|
24
|
+
|
|
25
|
+
[data-parametric-scope] {
|
|
26
|
+
/* ── Radius (foundation/radius.css) ── */
|
|
27
|
+
--a-radius-xs: clamp(var(--a-radius-min), calc(var(--a-radius-k) * var(--a-radius-max) * var(--a-radius-xs-k)), var(--a-radius-max));
|
|
28
|
+
--a-radius-sm: clamp(var(--a-radius-min), calc(var(--a-radius-k) * var(--a-radius-max) * var(--a-radius-sm-k)), var(--a-radius-max));
|
|
29
|
+
--a-radius-md: clamp(var(--a-radius-min), calc(var(--a-radius-k) * var(--a-radius-max) * var(--a-radius-md-k)), var(--a-radius-max));
|
|
30
|
+
--a-radius-lg: clamp(var(--a-radius-min), calc(var(--a-radius-k) * var(--a-radius-max) * var(--a-radius-lg-k)), var(--a-radius-max));
|
|
31
|
+
--a-radius: var(--a-radius-md);
|
|
32
|
+
|
|
33
|
+
/* ── Spacing (foundation/space.css) ── */
|
|
34
|
+
--a-space-0-5: calc(var(--a-density) * 0.125rem);
|
|
35
|
+
--a-space-1: calc(var(--a-density) * 0.25rem);
|
|
36
|
+
--a-space-1-5: calc(var(--a-density) * 0.375rem);
|
|
37
|
+
--a-space-2: calc(var(--a-density) * 0.5rem);
|
|
38
|
+
--a-space-2-5: calc(var(--a-density) * 0.625rem);
|
|
39
|
+
--a-space-3: calc(var(--a-density) * 0.75rem);
|
|
40
|
+
--a-space-3-5: calc(var(--a-density) * 0.875rem);
|
|
41
|
+
--a-space-4: calc(var(--a-density) * 1rem);
|
|
42
|
+
--a-space-4-5: calc(var(--a-density) * 1.125rem);
|
|
43
|
+
--a-space-5: calc(var(--a-density) * 1.25rem);
|
|
44
|
+
--a-space-6: calc(var(--a-density) * 1.5rem);
|
|
45
|
+
--a-space-7: calc(var(--a-density) * 1.75rem);
|
|
46
|
+
--a-space-8: calc(var(--a-density) * 2rem);
|
|
47
|
+
--a-space-9: calc(var(--a-density) * 2.25rem);
|
|
48
|
+
--a-space-10: calc(var(--a-density) * 2.5rem);
|
|
49
|
+
--a-space-12: calc(var(--a-density) * 3rem);
|
|
50
|
+
--a-space-16: calc(var(--a-density) * 4rem);
|
|
51
|
+
|
|
52
|
+
--a-inset-sm: var(--a-space-3-5);
|
|
53
|
+
--a-inset-md: var(--a-space-4);
|
|
54
|
+
--a-inset-lg: var(--a-space-4-5);
|
|
55
|
+
--a-inset: var(--a-inset-md);
|
|
56
|
+
|
|
57
|
+
--a-gap-xs: calc(var(--a-space-2) * var(--a-gap-k));
|
|
58
|
+
--a-gap-sm: calc(var(--a-space-2-5) * var(--a-gap-k));
|
|
59
|
+
--a-gap-md: calc(var(--a-space-3) * var(--a-gap-k));
|
|
60
|
+
--a-gap-lg: calc(var(--a-space-3-5) * var(--a-gap-k));
|
|
61
|
+
--a-gap-xl: calc(var(--a-space-4) * var(--a-gap-k));
|
|
62
|
+
--a-gap: var(--a-gap-md);
|
|
63
|
+
|
|
64
|
+
--a-padding-xs: calc(var(--a-space-2) * var(--a-padding-k));
|
|
65
|
+
--a-padding-sm: calc(var(--a-space-4) * var(--a-padding-k));
|
|
66
|
+
--a-padding-md: calc(var(--a-space-6) * var(--a-padding-k));
|
|
67
|
+
--a-padding-lg: calc(var(--a-space-8) * var(--a-padding-k));
|
|
68
|
+
--a-padding-xl: calc(var(--a-space-10) * var(--a-padding-k));
|
|
69
|
+
--a-margin-xs: calc(var(--a-space-2) * var(--a-margin-k));
|
|
70
|
+
--a-margin-sm: calc(var(--a-space-4) * var(--a-margin-k));
|
|
71
|
+
--a-margin-md: calc(var(--a-space-6) * var(--a-margin-k));
|
|
72
|
+
--a-margin-lg: calc(var(--a-space-8) * var(--a-margin-k));
|
|
73
|
+
--a-margin-xl: calc(var(--a-space-10) * var(--a-margin-k));
|
|
74
|
+
|
|
75
|
+
/* ── Sizing (foundation/size.css) ── */
|
|
76
|
+
--a-size-sm: calc(var(--a-density) * 1.5rem);
|
|
77
|
+
--a-size-md: calc(var(--a-density) * 1.875rem);
|
|
78
|
+
--a-size-lg: calc(var(--a-density) * 2.25rem);
|
|
79
|
+
--a-size: var(--a-size-md);
|
|
80
|
+
--a-toggle-size: calc(var(--a-size-sm) - var(--a-space-1));
|
|
81
|
+
}
|
package/styles/components.css
CHANGED
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
@import "../components/modal/modal.css";
|
|
35
35
|
@import "../components/feed/feed.css";
|
|
36
36
|
@import "../components/toast/toast.css";
|
|
37
|
+
@import "../components/anchor-bar/anchor-bar.css";
|
|
37
38
|
@import "../components/tabs/tabs.css";
|
|
38
39
|
@import "../components/tooltip/tooltip.css";
|
|
39
40
|
@import "../components/badge/badge.css";
|
package/styles/tokens.css
CHANGED