@visitwonders/assembly 0.1.0 → 0.2.0
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/declarations/action/button-group.d.ts +89 -0
- package/declarations/action/button-group.d.ts.map +1 -0
- package/declarations/action/button.d.ts +4 -0
- package/declarations/action/button.d.ts.map +1 -1
- package/declarations/action/index.d.ts +1 -0
- package/declarations/action/index.d.ts.map +1 -1
- package/declarations/components/form/checkbox.d.ts +0 -65
- package/declarations/components/form/control.d.ts +0 -36
- package/declarations/components/form/error-message.d.ts +0 -22
- package/declarations/components/form/field.d.ts +0 -21
- package/declarations/components/form/form.d.ts +0 -14
- package/declarations/components/form/help-text.d.ts +0 -14
- package/declarations/components/form/index.d.ts +0 -15
- package/declarations/components/form/input.d.ts +0 -80
- package/declarations/components/form/label.d.ts +0 -34
- package/declarations/components/form/radio-group.d.ts +0 -43
- package/declarations/components/form/radio.d.ts +0 -54
- package/declarations/components/form/search-input.d.ts +0 -35
- package/declarations/components/form/select.d.ts +0 -36
- package/declarations/components/form/test.d.ts +0 -11
- package/declarations/components/form/textarea.d.ts +0 -79
- package/declarations/components/form/toggle.d.ts +0 -23
- package/declarations/components/primitives/grid-item.d.ts +0 -21
- package/declarations/components/primitives/grid.d.ts +0 -49
- package/declarations/components/primitives/h-stack.d.ts +0 -17
- package/declarations/components/primitives/heading.d.ts +0 -52
- package/declarations/components/primitives/image.d.ts +0 -24
- package/declarations/components/primitives/index.d.ts +0 -8
- package/declarations/components/primitives/link.d.ts +0 -16
- package/declarations/components/primitives/stack.d.ts +0 -23
- package/declarations/components/primitives/text.d.ts +0 -50
- package/declarations/components/primitives/v-stack.d.ts +0 -16
- package/declarations/components/ui/badge.d.ts +0 -14
- package/declarations/components/ui/button.d.ts +0 -32
- package/declarations/components/ui/card.d.ts +0 -27
- package/declarations/components/ui/description-list.d.ts +0 -22
- package/declarations/components/ui/drawer.d.ts +0 -14
- package/declarations/components/ui/icon-button.d.ts +0 -21
- package/declarations/components/ui/icon.d.ts +0 -21
- package/declarations/components/ui/index.d.ts +0 -17
- package/declarations/components/ui/modal.d.ts +0 -14
- package/declarations/components/ui/page-header.d.ts +0 -16
- package/declarations/components/ui/skeleton-card.d.ts +0 -17
- package/declarations/components/ui/skeleton-text.d.ts +0 -16
- package/declarations/components/ui/skeleton.d.ts +0 -20
- package/declarations/components/ui/spinner.d.ts +0 -11
- package/declarations/components/ui/tab-nav/index.d.ts +0 -36
- package/declarations/components/ui/table/body.d.ts +0 -11
- package/declarations/components/ui/table/caption.d.ts +0 -18
- package/declarations/components/ui/table/cell.d.ts +0 -31
- package/declarations/components/ui/table/footer.d.ts +0 -11
- package/declarations/components/ui/table/header-cell.d.ts +0 -35
- package/declarations/components/ui/table/header.d.ts +0 -11
- package/declarations/components/ui/table/row.d.ts +0 -21
- package/declarations/components/ui/table_old.d.ts +0 -29
- package/declarations/data/table.d.ts +0 -1
- package/declarations/data/table.d.ts.map +1 -1
- package/declarations/form/calendar.d.ts +0 -1
- package/declarations/form/calendar.d.ts.map +1 -1
- package/declarations/form/control.d.ts +5 -1
- package/declarations/form/control.d.ts.map +1 -1
- package/declarations/form/country-select-field.d.ts +6 -0
- package/declarations/form/country-select-field.d.ts.map +1 -1
- package/declarations/form/country-select.d.ts +0 -1
- package/declarations/form/country-select.d.ts.map +1 -1
- package/declarations/form/date-picker-field.d.ts +6 -0
- package/declarations/form/date-picker-field.d.ts.map +1 -1
- package/declarations/form/date-picker.d.ts +0 -1
- package/declarations/form/date-picker.d.ts.map +1 -1
- package/declarations/form/date-range-picker-field.d.ts +6 -0
- package/declarations/form/date-range-picker-field.d.ts.map +1 -1
- package/declarations/form/date-range-picker.d.ts +0 -1
- package/declarations/form/date-range-picker.d.ts.map +1 -1
- package/declarations/form/fieldset.d.ts +22 -0
- package/declarations/form/fieldset.d.ts.map +1 -0
- package/declarations/form/form.d.ts +0 -1
- package/declarations/form/form.d.ts.map +1 -1
- package/declarations/form/index.d.ts +1 -0
- package/declarations/form/index.d.ts.map +1 -1
- package/declarations/form/label.d.ts +4 -0
- package/declarations/form/label.d.ts.map +1 -1
- package/declarations/form/listbox.d.ts +0 -1
- package/declarations/form/listbox.d.ts.map +1 -1
- package/declarations/form/money-field.d.ts +6 -1
- package/declarations/form/money-field.d.ts.map +1 -1
- package/declarations/form/multi-select.d.ts +0 -1
- package/declarations/form/multi-select.d.ts.map +1 -1
- package/declarations/form/number-field.d.ts +9 -1
- package/declarations/form/number-field.d.ts.map +1 -1
- package/declarations/form/select-field.d.ts +4 -1
- package/declarations/form/select-field.d.ts.map +1 -1
- package/declarations/form/test.d.ts +0 -11
- package/declarations/form/text-field.d.ts +9 -0
- package/declarations/form/text-field.d.ts.map +1 -1
- package/declarations/form/time-picker-field.d.ts +6 -0
- package/declarations/form/time-picker-field.d.ts.map +1 -1
- package/declarations/form/time-picker.d.ts +0 -1
- package/declarations/form/time-picker.d.ts.map +1 -1
- package/declarations/form/toggle.d.ts +4 -0
- package/declarations/form/toggle.d.ts.map +1 -1
- package/declarations/layout/index.d.ts +1 -0
- package/declarations/layout/index.d.ts.map +1 -1
- package/declarations/layout/panel.d.ts +34 -0
- package/declarations/layout/panel.d.ts.map +1 -0
- package/declarations/media/icon.d.ts +0 -1
- package/declarations/media/icon.d.ts.map +1 -1
- package/declarations/media/image.d.ts +1 -1
- package/declarations/overlay/blanket.d.ts +0 -1
- package/declarations/overlay/blanket.d.ts.map +1 -1
- package/declarations/overlay/drawer.d.ts +4 -1
- package/declarations/overlay/drawer.d.ts.map +1 -1
- package/declarations/overlay/modal.d.ts +0 -1
- package/declarations/overlay/modal.d.ts.map +1 -1
- package/declarations/overlay/popover.d.ts +0 -1
- package/declarations/overlay/popover.d.ts.map +1 -1
- package/declarations/overlay/toast.d.ts +0 -1
- package/declarations/overlay/toast.d.ts.map +1 -1
- package/declarations/overlay/tooltip.d.ts +0 -1
- package/declarations/overlay/tooltip.d.ts.map +1 -1
- package/declarations/primitives/grid-item.d.ts +0 -21
- package/declarations/primitives/grid.d.ts +0 -49
- package/declarations/primitives/h-stack.d.ts +0 -17
- package/declarations/primitives/heading.d.ts +0 -52
- package/declarations/primitives/image.d.ts +0 -24
- package/declarations/primitives/index.d.ts +0 -4
- package/declarations/primitives/link.d.ts +0 -16
- package/declarations/primitives/stack.d.ts +0 -23
- package/declarations/primitives/text.d.ts +0 -50
- package/declarations/primitives/v-stack.d.ts +0 -16
- package/declarations/status/badge.d.ts +0 -1
- package/declarations/status/badge.d.ts.map +1 -1
- package/declarations/status/skeleton-avatar.d.ts +1 -1
- package/declarations/status/skeleton-avatar.d.ts.map +1 -1
- package/declarations/status/skeleton-button.d.ts +1 -1
- package/declarations/status/skeleton-button.d.ts.map +1 -1
- package/declarations/status/skeleton-image.d.ts +1 -1
- package/declarations/status/skeleton-image.d.ts.map +1 -1
- package/declarations/status/skeleton-text.d.ts +1 -1
- package/declarations/status/skeleton-text.d.ts.map +1 -1
- package/declarations/status/skeleton.d.ts +1 -1
- package/declarations/status/skeleton.d.ts.map +1 -1
- package/declarations/status/tag.d.ts +0 -1
- package/declarations/status/tag.d.ts.map +1 -1
- package/declarations/typography/link.d.ts +0 -16
- package/declarations/ui/button.d.ts +0 -50
- package/declarations/ui/icon.d.ts +0 -21
- package/dist/_app_/action/button-group.js +1 -0
- package/dist/_app_/form/fieldset.js +1 -0
- package/dist/_app_/layout/panel.js +1 -0
- package/dist/action/button-group.css +18 -0
- package/dist/action/button-group.js +130 -0
- package/dist/action/button-group.js.map +1 -0
- package/dist/action/button.css +152 -0
- package/dist/action/button.js +1 -1
- package/dist/action/index.js +1 -0
- package/dist/action/index.js.map +1 -1
- package/dist/data/table.css +48 -47
- package/dist/data/table.js +1 -1
- package/dist/form/checkbox.css +3 -3
- package/dist/form/control-css-02e93d930aecac651d5c69dc10a83504.css +36 -0
- package/dist/form/control.js +2 -2
- package/dist/form/country-select-field.js +1 -1
- package/dist/form/country-select-field.js.map +1 -1
- package/dist/form/country-select.css +1 -1
- package/dist/form/date-picker-field.js +1 -1
- package/dist/form/date-picker-field.js.map +1 -1
- package/dist/form/date-range-picker-field.js +1 -1
- package/dist/form/date-range-picker-field.js.map +1 -1
- package/dist/form/field.css +3 -3
- package/dist/form/fieldset.css +65 -0
- package/dist/form/fieldset.js +20 -0
- package/dist/form/fieldset.js.map +1 -0
- package/dist/form/help-text.css +1 -1
- package/dist/form/index.js +1 -0
- package/dist/form/index.js.map +1 -1
- package/dist/form/input.css +1 -0
- package/dist/form/label.css +15 -1
- package/dist/form/label.js +10 -4
- package/dist/form/money-field.js +1 -1
- package/dist/form/multi-select.css +1 -1
- package/dist/form/number-field.css +1 -0
- package/dist/form/number-field.js +1 -1
- package/dist/form/radio.css +3 -3
- package/dist/form/select-field.js +1 -1
- package/dist/form/select-field.js.map +1 -1
- package/dist/form/select.css +1 -1
- package/dist/form/{text-field-css-f60360f3f8aaf4da664eaccd1bcc9f8f.css → text-field-css-754feeb82dbd9fc9afdc1f00dceb13ad.css} +22 -1
- package/dist/form/text-field.js +2 -2
- package/dist/form/textarea.css +2 -1
- package/dist/form/time-picker-field.js +1 -1
- package/dist/form/time-picker-field.js.map +1 -1
- package/dist/form/toggle.css +27 -1
- package/dist/form/toggle.js +4 -1
- package/dist/layout/{divider-css-1ba104b9c606cbd1f542b45640fb5f2b.css → divider-css-7e0cc7d350e31172582851c6cb2cf586.css} +2 -2
- package/dist/layout/divider.js +1 -1
- package/dist/layout/{grid-css-086976eb41686e3714554f56c098d3d5.css → grid-css-c8259b34d7062f44e78f0a2cc139cb44.css} +13 -13
- package/dist/layout/grid.js +1 -1
- package/dist/layout/index.js +1 -0
- package/dist/layout/index.js.map +1 -1
- package/dist/layout/panel.css +229 -0
- package/dist/layout/panel.js +32 -0
- package/dist/layout/panel.js.map +1 -0
- package/dist/overlay/blanket.css +12 -11
- package/dist/overlay/blanket.js +1 -1
- package/dist/overlay/drawer.css +99 -62
- package/dist/overlay/drawer.js +7 -4
- package/dist/overlay/modal.css +22 -21
- package/dist/overlay/modal.js +4 -4
- package/dist/overlay/popover.css +30 -29
- package/dist/overlay/popover.js +4 -4
- package/dist/overlay/toast.css +49 -48
- package/dist/overlay/toast.js +2 -2
- package/dist/overlay/tooltip.css +38 -37
- package/dist/overlay/tooltip.js +2 -2
- package/dist/skeleton-shared-BTA5oAjw.js +3 -0
- package/dist/skeleton-shared-BTA5oAjw.js.map +1 -0
- package/dist/status/badge.css +30 -29
- package/dist/status/badge.js +1 -1
- package/dist/status/skeleton-avatar.js +1 -1
- package/dist/status/skeleton-avatar.js.map +1 -1
- package/dist/status/skeleton-button.js +1 -1
- package/dist/status/skeleton-button.js.map +1 -1
- package/dist/status/skeleton-image.js +1 -1
- package/dist/status/skeleton-image.js.map +1 -1
- package/dist/status/skeleton-text.js +1 -1
- package/dist/status/skeleton-text.js.map +1 -1
- package/dist/status/skeleton.js +1 -1
- package/dist/status/skeleton.js.map +1 -1
- package/dist/status/tag.css +50 -51
- package/dist/status/tag.js +1 -1
- package/dist/styles/base/typography.css +1 -1
- package/dist/styles/primitive/typography.css +10 -7
- package/dist/styles/semantic/typography.css +4 -4
- package/dist/styles.css +15 -12
- package/dist/typography/{heading-css-8850735eabc2efb34f15240b852c99e7.css → heading-css-726c4c3109f2b741657733e1ba103c67.css} +9 -9
- package/dist/typography/heading.js +1 -1
- package/package.json +22 -18
- package/dist/form/control-css-6c81caf37fd813b36033091d5340bc70.css +0 -20
- package/dist/skeleton-CL5Pcwrk.js +0 -3
- package/dist/skeleton-CL5Pcwrk.js.map +0 -1
- /package/dist/status/{skeleton.css → skeleton-shared.css} +0 -0
package/dist/overlay/popover.css
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
/* src/overlay/popover.css */
|
|
1
2
|
/* ===================================
|
|
2
3
|
* Popover Component
|
|
3
4
|
* =================================== */
|
|
4
5
|
|
|
5
|
-
.
|
|
6
|
+
.popover_ee9248ac0 {
|
|
6
7
|
display: contents;
|
|
7
8
|
}
|
|
8
9
|
|
|
@@ -10,7 +11,7 @@
|
|
|
10
11
|
* Trigger
|
|
11
12
|
* =================================== */
|
|
12
13
|
|
|
13
|
-
.popover-
|
|
14
|
+
.popover-trigger_ee9248ac0 {
|
|
14
15
|
/* Reset button styles */
|
|
15
16
|
appearance: none;
|
|
16
17
|
background: none;
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
justify-content: center;
|
|
26
27
|
}
|
|
27
28
|
|
|
28
|
-
.popover-
|
|
29
|
+
.popover-trigger_ee9248ac0:focus-visible {
|
|
29
30
|
outline: none;
|
|
30
31
|
box-shadow: var(--focus-ring);
|
|
31
32
|
border-radius: var(--radius-sm);
|
|
@@ -35,7 +36,7 @@
|
|
|
35
36
|
* Content
|
|
36
37
|
* =================================== */
|
|
37
38
|
|
|
38
|
-
.popover-
|
|
39
|
+
.popover-content_ee9248ac0 {
|
|
39
40
|
/* Positioning */
|
|
40
41
|
position: absolute;
|
|
41
42
|
z-index: var(--z-popover);
|
|
@@ -56,19 +57,19 @@
|
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
/* Transform origin based on side */
|
|
59
|
-
.popover-
|
|
60
|
+
.popover-content_ee9248ac0[data-side="top"] {
|
|
60
61
|
--transform-origin: bottom center;
|
|
61
62
|
}
|
|
62
63
|
|
|
63
|
-
.popover-
|
|
64
|
+
.popover-content_ee9248ac0[data-side="bottom"] {
|
|
64
65
|
--transform-origin: top center;
|
|
65
66
|
}
|
|
66
67
|
|
|
67
|
-
.popover-
|
|
68
|
+
.popover-content_ee9248ac0[data-side="left"] {
|
|
68
69
|
--transform-origin: right center;
|
|
69
70
|
}
|
|
70
71
|
|
|
71
|
-
.popover-
|
|
72
|
+
.popover-content_ee9248ac0[data-side="right"] {
|
|
72
73
|
--transform-origin: left center;
|
|
73
74
|
}
|
|
74
75
|
|
|
@@ -77,15 +78,15 @@
|
|
|
77
78
|
* =================================== */
|
|
78
79
|
|
|
79
80
|
/* Fade animation */
|
|
80
|
-
.popover-
|
|
81
|
-
animation: popover-fade-
|
|
81
|
+
.popover-content_ee9248ac0[data-animation="fade"] {
|
|
82
|
+
animation: popover-fade-in__ee9248ac0 var(--duration-150) var(--easing-out);
|
|
82
83
|
}
|
|
83
84
|
|
|
84
|
-
.popover-
|
|
85
|
-
animation: popover-fade-
|
|
85
|
+
.popover-content_ee9248ac0[data-animation="fade"][data-state="closed"] {
|
|
86
|
+
animation: popover-fade-out__ee9248ac0 var(--duration-150) var(--easing-in);
|
|
86
87
|
}
|
|
87
88
|
|
|
88
|
-
@keyframes popover-fade-
|
|
89
|
+
@keyframes popover-fade-in__ee9248ac0 {
|
|
89
90
|
from {
|
|
90
91
|
opacity: 0;
|
|
91
92
|
}
|
|
@@ -94,7 +95,7 @@
|
|
|
94
95
|
}
|
|
95
96
|
}
|
|
96
97
|
|
|
97
|
-
@keyframes popover-fade-
|
|
98
|
+
@keyframes popover-fade-out__ee9248ac0 {
|
|
98
99
|
from {
|
|
99
100
|
opacity: 1;
|
|
100
101
|
}
|
|
@@ -104,15 +105,15 @@
|
|
|
104
105
|
}
|
|
105
106
|
|
|
106
107
|
/* Scale animation (default) */
|
|
107
|
-
.popover-
|
|
108
|
-
animation: popover-scale-
|
|
108
|
+
.popover-content_ee9248ac0[data-animation="scale"] {
|
|
109
|
+
animation: popover-scale-in__ee9248ac0 var(--duration-150) var(--easing-out);
|
|
109
110
|
}
|
|
110
111
|
|
|
111
|
-
.popover-
|
|
112
|
-
animation: popover-scale-
|
|
112
|
+
.popover-content_ee9248ac0[data-animation="scale"][data-state="closed"] {
|
|
113
|
+
animation: popover-scale-out__ee9248ac0 var(--duration-150) var(--easing-in);
|
|
113
114
|
}
|
|
114
115
|
|
|
115
|
-
@keyframes popover-scale-
|
|
116
|
+
@keyframes popover-scale-in__ee9248ac0 {
|
|
116
117
|
from {
|
|
117
118
|
opacity: 0;
|
|
118
119
|
transform: scale(0.95);
|
|
@@ -123,7 +124,7 @@
|
|
|
123
124
|
}
|
|
124
125
|
}
|
|
125
126
|
|
|
126
|
-
@keyframes popover-scale-
|
|
127
|
+
@keyframes popover-scale-out__ee9248ac0 {
|
|
127
128
|
from {
|
|
128
129
|
opacity: 1;
|
|
129
130
|
transform: scale(1);
|
|
@@ -135,7 +136,7 @@
|
|
|
135
136
|
}
|
|
136
137
|
|
|
137
138
|
/* No animation */
|
|
138
|
-
.popover-
|
|
139
|
+
.popover-content_ee9248ac0[data-animation="none"] {
|
|
139
140
|
animation: none;
|
|
140
141
|
}
|
|
141
142
|
|
|
@@ -143,7 +144,7 @@
|
|
|
143
144
|
* Arrow
|
|
144
145
|
* =================================== */
|
|
145
146
|
|
|
146
|
-
.popover-
|
|
147
|
+
.popover-arrow_ee9248ac0 {
|
|
147
148
|
position: absolute;
|
|
148
149
|
width: 10px;
|
|
149
150
|
height: 10px;
|
|
@@ -154,22 +155,22 @@
|
|
|
154
155
|
}
|
|
155
156
|
|
|
156
157
|
/* Arrow positioning adjustments based on side */
|
|
157
|
-
.popover-
|
|
158
|
+
.popover-arrow_ee9248ac0[data-side="top"] {
|
|
158
159
|
border-top: none;
|
|
159
160
|
border-left: none;
|
|
160
161
|
}
|
|
161
162
|
|
|
162
|
-
.popover-
|
|
163
|
+
.popover-arrow_ee9248ac0[data-side="bottom"] {
|
|
163
164
|
border-bottom: none;
|
|
164
165
|
border-right: none;
|
|
165
166
|
}
|
|
166
167
|
|
|
167
|
-
.popover-
|
|
168
|
+
.popover-arrow_ee9248ac0[data-side="left"] {
|
|
168
169
|
border-bottom: none;
|
|
169
170
|
border-left: none;
|
|
170
171
|
}
|
|
171
172
|
|
|
172
|
-
.popover-
|
|
173
|
+
.popover-arrow_ee9248ac0[data-side="right"] {
|
|
173
174
|
border-top: none;
|
|
174
175
|
border-right: none;
|
|
175
176
|
}
|
|
@@ -178,7 +179,7 @@
|
|
|
178
179
|
* Close Button
|
|
179
180
|
* =================================== */
|
|
180
181
|
|
|
181
|
-
.popover-
|
|
182
|
+
.popover-close_ee9248ac0 {
|
|
182
183
|
/* Reset button styles */
|
|
183
184
|
appearance: none;
|
|
184
185
|
background: none;
|
|
@@ -199,12 +200,12 @@
|
|
|
199
200
|
background-color var(--duration-150) var(--easing-out);
|
|
200
201
|
}
|
|
201
202
|
|
|
202
|
-
.popover-
|
|
203
|
+
.popover-close_ee9248ac0:hover {
|
|
203
204
|
color: var(--color-text);
|
|
204
205
|
background: var(--color-bg-neutral-subtle);
|
|
205
206
|
}
|
|
206
207
|
|
|
207
|
-
.popover-
|
|
208
|
+
.popover-close_ee9248ac0:focus-visible {
|
|
208
209
|
outline: none;
|
|
209
210
|
box-shadow: var(--focus-ring);
|
|
210
211
|
}
|
package/dist/overlay/popover.js
CHANGED
|
@@ -71,7 +71,7 @@ class PopoverTrigger extends Component {
|
|
|
71
71
|
return this.ctx.isOpen ? this.ctx.contentId : undefined;
|
|
72
72
|
}
|
|
73
73
|
static {
|
|
74
|
-
setComponentTemplate(precompileTemplate("<button type=\"button\" class=\"popover-
|
|
74
|
+
setComponentTemplate(precompileTemplate("<button type=\"button\" class=\"popover-trigger_ee9248ac0\" aria-haspopup=\"dialog\" aria-expanded={{this.ariaExpanded}} aria-controls={{this.ariaControls}} {{on \"click\" this.handleClick}} {{on \"keydown\" this.handleKeyDown}} {{on \"mouseenter\" this.handleMouseEnter}} {{on \"mouseleave\" this.handleMouseLeave}} {{on \"focus\" this.handleFocus}} {{on \"blur\" this.handleBlur}} {{this.registerElement}} data-test-popover-trigger ...attributes>\n {{yield}}\n</button>", {
|
|
75
75
|
strictMode: true,
|
|
76
76
|
scope: () => ({
|
|
77
77
|
on
|
|
@@ -210,7 +210,7 @@ class PopoverContent extends Component {
|
|
|
210
210
|
}
|
|
211
211
|
};
|
|
212
212
|
static {
|
|
213
|
-
setComponentTemplate(precompileTemplate("{{#if this.ctx.isOpen}}\n {{#in-element this.destinationElement insertBefore=null}}\n <div id={{this.ctx.contentId}} class=\"popover-
|
|
213
|
+
setComponentTemplate(precompileTemplate("{{#if this.ctx.isOpen}}\n {{#in-element this.destinationElement insertBefore=null}}\n <div id={{this.ctx.contentId}} class=\"popover-content_ee9248ac0\" role=\"dialog\" aria-label={{@aria-label}} aria-labelledby={{@aria-labelledby}} data-state={{this.dataState}} data-side={{this.side}} data-animation={{this.animation}} {{on \"mouseenter\" this.handleMouseEnter}} {{on \"mouseleave\" this.handleMouseLeave}} {{this.applyPositioning trigger=this.ctx.triggerElement placement=this.placement offsetOptions=this.offsetOptions flipOptions=this.flipOptions shiftOptions=this.shiftOptions arrowElement=this.arrowElement onRegister=this.ctx.registerContent}} data-test-popover-content ...attributes>\n {{yield}}\n {{#if this.showArrow}}\n <div class=\"popover-arrow_ee9248ac0\" data-side={{this.side}} {{this.registerArrow}} data-test-popover-arrow></div>\n {{/if}}\n </div>\n {{/in-element}}\n{{/if}}", {
|
|
214
214
|
strictMode: true,
|
|
215
215
|
scope: () => ({
|
|
216
216
|
on
|
|
@@ -227,7 +227,7 @@ class PopoverClose extends Component {
|
|
|
227
227
|
this.ctx.closePopover();
|
|
228
228
|
};
|
|
229
229
|
static {
|
|
230
|
-
setComponentTemplate(precompileTemplate("<button type=\"button\" class=\"popover-
|
|
230
|
+
setComponentTemplate(precompileTemplate("<button type=\"button\" class=\"popover-close_ee9248ac0\" aria-label=\"Close\" {{on \"click\" this.handleClick}} data-test-popover-close ...attributes>\n {{#if (has-block)}}\n {{yield}}\n {{else}}\n <span aria-hidden=\"true\">×</span>\n {{/if}}\n</button>", {
|
|
231
231
|
strictMode: true,
|
|
232
232
|
scope: () => ({
|
|
233
233
|
on
|
|
@@ -380,7 +380,7 @@ class Popover extends Component {
|
|
|
380
380
|
};
|
|
381
381
|
}
|
|
382
382
|
static {
|
|
383
|
-
setComponentTemplate(precompileTemplate("<div class=\"
|
|
383
|
+
setComponentTemplate(precompileTemplate("<div class=\"popover_ee9248ac0\" {{this.setupEventListeners}} data-test-popover ...attributes>\n {{yield (hash Trigger=(component PopoverTrigger ctx=this.context) Content=(component PopoverContent ctx=this.context) Close=(component PopoverClose ctx=this.context) isOpen=this.isOpen open=this.openPopover close=this.closePopover toggle=this.togglePopover)}}\n</div>", {
|
|
384
384
|
strictMode: true,
|
|
385
385
|
scope: () => ({
|
|
386
386
|
hash,
|
package/dist/overlay/toast.css
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
/* src/overlay/toast.css */
|
|
1
2
|
/* ===================================
|
|
2
3
|
* Toast Container
|
|
3
4
|
* =================================== */
|
|
4
5
|
|
|
5
|
-
.toast-
|
|
6
|
+
.toast-container_e318658ab {
|
|
6
7
|
position: fixed;
|
|
7
8
|
z-index: var(--z-toast);
|
|
8
9
|
display: flex;
|
|
@@ -14,33 +15,33 @@
|
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
/* Position variants */
|
|
17
|
-
.toast-
|
|
18
|
+
.toast-container_e318658ab[data-position="top-left"] {
|
|
18
19
|
top: var(--toast-offset, 16px);
|
|
19
20
|
left: var(--toast-offset, 16px);
|
|
20
21
|
align-items: flex-start;
|
|
21
22
|
}
|
|
22
23
|
|
|
23
|
-
.toast-
|
|
24
|
+
.toast-container_e318658ab[data-position="top-center"] {
|
|
24
25
|
top: var(--toast-offset, 16px);
|
|
25
26
|
left: 50%;
|
|
26
27
|
transform: translateX(-50%);
|
|
27
28
|
align-items: center;
|
|
28
29
|
}
|
|
29
30
|
|
|
30
|
-
.toast-
|
|
31
|
+
.toast-container_e318658ab[data-position="top-right"] {
|
|
31
32
|
top: var(--toast-offset, 16px);
|
|
32
33
|
right: var(--toast-offset, 16px);
|
|
33
34
|
align-items: flex-end;
|
|
34
35
|
}
|
|
35
36
|
|
|
36
|
-
.toast-
|
|
37
|
+
.toast-container_e318658ab[data-position="bottom-left"] {
|
|
37
38
|
bottom: var(--toast-offset, 16px);
|
|
38
39
|
left: var(--toast-offset, 16px);
|
|
39
40
|
align-items: flex-start;
|
|
40
41
|
flex-direction: column-reverse;
|
|
41
42
|
}
|
|
42
43
|
|
|
43
|
-
.toast-
|
|
44
|
+
.toast-container_e318658ab[data-position="bottom-center"] {
|
|
44
45
|
bottom: var(--toast-offset, 16px);
|
|
45
46
|
left: 50%;
|
|
46
47
|
transform: translateX(-50%);
|
|
@@ -48,7 +49,7 @@
|
|
|
48
49
|
flex-direction: column-reverse;
|
|
49
50
|
}
|
|
50
51
|
|
|
51
|
-
.toast-
|
|
52
|
+
.toast-container_e318658ab[data-position="bottom-right"] {
|
|
52
53
|
bottom: var(--toast-offset, 16px);
|
|
53
54
|
right: var(--toast-offset, 16px);
|
|
54
55
|
align-items: flex-end;
|
|
@@ -59,7 +60,7 @@
|
|
|
59
60
|
* Toast Item
|
|
60
61
|
* =================================== */
|
|
61
62
|
|
|
62
|
-
.toast-
|
|
63
|
+
.toast-item_e318658ab {
|
|
63
64
|
display: flex;
|
|
64
65
|
align-items: flex-start;
|
|
65
66
|
gap: var(--spacing-3);
|
|
@@ -77,7 +78,7 @@
|
|
|
77
78
|
* Toast Icon
|
|
78
79
|
* =================================== */
|
|
79
80
|
|
|
80
|
-
.toast-
|
|
81
|
+
.toast-icon_e318658ab {
|
|
81
82
|
display: flex;
|
|
82
83
|
align-items: center;
|
|
83
84
|
justify-content: center;
|
|
@@ -86,23 +87,23 @@
|
|
|
86
87
|
}
|
|
87
88
|
|
|
88
89
|
/* Icon colors by tone */
|
|
89
|
-
.toast-
|
|
90
|
+
.toast-item_e318658ab[data-tone="neutral"] .toast-icon_e318658ab {
|
|
90
91
|
color: var(--color-text-secondary);
|
|
91
92
|
}
|
|
92
93
|
|
|
93
|
-
.toast-
|
|
94
|
+
.toast-item_e318658ab[data-tone="success"] .toast-icon_e318658ab {
|
|
94
95
|
color: var(--color-text-success);
|
|
95
96
|
}
|
|
96
97
|
|
|
97
|
-
.toast-
|
|
98
|
+
.toast-item_e318658ab[data-tone="warning"] .toast-icon_e318658ab {
|
|
98
99
|
color: var(--color-text-warning);
|
|
99
100
|
}
|
|
100
101
|
|
|
101
|
-
.toast-
|
|
102
|
+
.toast-item_e318658ab[data-tone="critical"] .toast-icon_e318658ab {
|
|
102
103
|
color: var(--color-text-critical);
|
|
103
104
|
}
|
|
104
105
|
|
|
105
|
-
.toast-
|
|
106
|
+
.toast-item_e318658ab[data-tone="info"] .toast-icon_e318658ab {
|
|
106
107
|
color: var(--color-text-info);
|
|
107
108
|
}
|
|
108
109
|
|
|
@@ -110,12 +111,12 @@
|
|
|
110
111
|
* Toast Content
|
|
111
112
|
* =================================== */
|
|
112
113
|
|
|
113
|
-
.toast-
|
|
114
|
+
.toast-content_e318658ab {
|
|
114
115
|
flex: 1;
|
|
115
116
|
min-width: 0;
|
|
116
117
|
}
|
|
117
118
|
|
|
118
|
-
.toast-
|
|
119
|
+
.toast-title_e318658ab {
|
|
119
120
|
margin: 0;
|
|
120
121
|
font-size: var(--font-size-sm);
|
|
121
122
|
font-weight: var(--font-weight-medium);
|
|
@@ -124,7 +125,7 @@
|
|
|
124
125
|
overflow-wrap: break-word;
|
|
125
126
|
}
|
|
126
127
|
|
|
127
|
-
.toast-
|
|
128
|
+
.toast-description_e318658ab {
|
|
128
129
|
margin: var(--spacing-1) 0 0;
|
|
129
130
|
font-size: var(--font-size-sm);
|
|
130
131
|
color: var(--color-text-secondary);
|
|
@@ -136,7 +137,7 @@
|
|
|
136
137
|
* Toast Action Button
|
|
137
138
|
* =================================== */
|
|
138
139
|
|
|
139
|
-
.toast-
|
|
140
|
+
.toast-action_e318658ab {
|
|
140
141
|
flex-shrink: 0;
|
|
141
142
|
padding: var(--spacing-1) var(--spacing-2);
|
|
142
143
|
background: transparent;
|
|
@@ -149,11 +150,11 @@
|
|
|
149
150
|
transition: background-color var(--transition-fast);
|
|
150
151
|
}
|
|
151
152
|
|
|
152
|
-
.toast-
|
|
153
|
+
.toast-action_e318658ab:hover {
|
|
153
154
|
background: var(--color-bg-primary-subtle);
|
|
154
155
|
}
|
|
155
156
|
|
|
156
|
-
.toast-
|
|
157
|
+
.toast-action_e318658ab:focus-visible {
|
|
157
158
|
outline: none;
|
|
158
159
|
box-shadow: var(--focus-ring);
|
|
159
160
|
}
|
|
@@ -162,7 +163,7 @@
|
|
|
162
163
|
* Toast Close Button
|
|
163
164
|
* =================================== */
|
|
164
165
|
|
|
165
|
-
.toast-
|
|
166
|
+
.toast-close_e318658ab {
|
|
166
167
|
display: flex;
|
|
167
168
|
align-items: center;
|
|
168
169
|
justify-content: center;
|
|
@@ -180,12 +181,12 @@
|
|
|
180
181
|
color var(--transition-fast);
|
|
181
182
|
}
|
|
182
183
|
|
|
183
|
-
.toast-
|
|
184
|
+
.toast-close_e318658ab:hover {
|
|
184
185
|
background: var(--color-bg-neutral-subtle);
|
|
185
186
|
color: var(--color-text);
|
|
186
187
|
}
|
|
187
188
|
|
|
188
|
-
.toast-
|
|
189
|
+
.toast-close_e318658ab:focus-visible {
|
|
189
190
|
outline: none;
|
|
190
191
|
box-shadow: var(--focus-ring);
|
|
191
192
|
}
|
|
@@ -195,7 +196,7 @@
|
|
|
195
196
|
* =================================== */
|
|
196
197
|
|
|
197
198
|
/* Enter animation */
|
|
198
|
-
@keyframes toast-enter-
|
|
199
|
+
@keyframes toast-enter-right__e318658ab {
|
|
199
200
|
from {
|
|
200
201
|
opacity: 0;
|
|
201
202
|
transform: translateX(100%);
|
|
@@ -206,7 +207,7 @@
|
|
|
206
207
|
}
|
|
207
208
|
}
|
|
208
209
|
|
|
209
|
-
@keyframes toast-enter-
|
|
210
|
+
@keyframes toast-enter-left__e318658ab {
|
|
210
211
|
from {
|
|
211
212
|
opacity: 0;
|
|
212
213
|
transform: translateX(-100%);
|
|
@@ -217,7 +218,7 @@
|
|
|
217
218
|
}
|
|
218
219
|
}
|
|
219
220
|
|
|
220
|
-
@keyframes toast-enter-
|
|
221
|
+
@keyframes toast-enter-center__e318658ab {
|
|
221
222
|
from {
|
|
222
223
|
opacity: 0;
|
|
223
224
|
transform: translateY(-16px) scale(0.95);
|
|
@@ -228,7 +229,7 @@
|
|
|
228
229
|
}
|
|
229
230
|
}
|
|
230
231
|
|
|
231
|
-
@keyframes toast-enter-center-
|
|
232
|
+
@keyframes toast-enter-center-bottom__e318658ab {
|
|
232
233
|
from {
|
|
233
234
|
opacity: 0;
|
|
234
235
|
transform: translateY(16px) scale(0.95);
|
|
@@ -240,7 +241,7 @@
|
|
|
240
241
|
}
|
|
241
242
|
|
|
242
243
|
/* Exit animation */
|
|
243
|
-
@keyframes toast-
|
|
244
|
+
@keyframes toast-exit__e318658ab {
|
|
244
245
|
from {
|
|
245
246
|
opacity: 1;
|
|
246
247
|
transform: scale(1);
|
|
@@ -252,49 +253,49 @@
|
|
|
252
253
|
}
|
|
253
254
|
|
|
254
255
|
/* Apply enter animations based on position */
|
|
255
|
-
.toast-
|
|
256
|
-
.toast-
|
|
257
|
-
.toast-
|
|
258
|
-
animation: toast-enter-
|
|
256
|
+
.toast-container_e318658ab[data-position="top-right"] .toast-item_e318658ab[data-state="entering"],
|
|
257
|
+
.toast-container_e318658ab[data-position="bottom-right"]
|
|
258
|
+
.toast-item_e318658ab[data-state="entering"] {
|
|
259
|
+
animation: toast-enter-right__e318658ab var(--duration-200) var(--easing-out);
|
|
259
260
|
}
|
|
260
261
|
|
|
261
|
-
.toast-
|
|
262
|
-
.toast-
|
|
263
|
-
.toast-
|
|
264
|
-
animation: toast-enter-
|
|
262
|
+
.toast-container_e318658ab[data-position="top-left"] .toast-item_e318658ab[data-state="entering"],
|
|
263
|
+
.toast-container_e318658ab[data-position="bottom-left"]
|
|
264
|
+
.toast-item_e318658ab[data-state="entering"] {
|
|
265
|
+
animation: toast-enter-left__e318658ab var(--duration-200) var(--easing-out);
|
|
265
266
|
}
|
|
266
267
|
|
|
267
|
-
.toast-
|
|
268
|
-
.toast-
|
|
269
|
-
animation: toast-enter-
|
|
268
|
+
.toast-container_e318658ab[data-position="top-center"]
|
|
269
|
+
.toast-item_e318658ab[data-state="entering"] {
|
|
270
|
+
animation: toast-enter-center__e318658ab var(--duration-200) var(--easing-out);
|
|
270
271
|
}
|
|
271
272
|
|
|
272
|
-
.toast-
|
|
273
|
-
.toast-
|
|
274
|
-
animation: toast-enter-center-
|
|
273
|
+
.toast-container_e318658ab[data-position="bottom-center"]
|
|
274
|
+
.toast-item_e318658ab[data-state="entering"] {
|
|
275
|
+
animation: toast-enter-center-bottom__e318658ab var(--duration-200) var(--easing-out);
|
|
275
276
|
}
|
|
276
277
|
|
|
277
278
|
/* Apply exit animation */
|
|
278
|
-
.toast-
|
|
279
|
-
animation: toast-
|
|
279
|
+
.toast-item_e318658ab[data-state="exiting"] {
|
|
280
|
+
animation: toast-exit__e318658ab var(--duration-150) var(--easing-in) forwards;
|
|
280
281
|
}
|
|
281
282
|
|
|
282
283
|
/* ===================================
|
|
283
284
|
* Tone-specific borders (subtle accent)
|
|
284
285
|
* =================================== */
|
|
285
286
|
|
|
286
|
-
.toast-
|
|
287
|
+
.toast-item_e318658ab[data-tone="success"] {
|
|
287
288
|
border-left: 3px solid var(--color-border-success);
|
|
288
289
|
}
|
|
289
290
|
|
|
290
|
-
.toast-
|
|
291
|
+
.toast-item_e318658ab[data-tone="warning"] {
|
|
291
292
|
border-left: 3px solid var(--color-border-warning);
|
|
292
293
|
}
|
|
293
294
|
|
|
294
|
-
.toast-
|
|
295
|
+
.toast-item_e318658ab[data-tone="critical"] {
|
|
295
296
|
border-left: 3px solid var(--color-border-critical);
|
|
296
297
|
}
|
|
297
298
|
|
|
298
|
-
.toast-
|
|
299
|
+
.toast-item_e318658ab[data-tone="info"] {
|
|
299
300
|
border-left: 3px solid var(--color-border-info);
|
|
300
301
|
}
|
package/dist/overlay/toast.js
CHANGED
|
@@ -47,7 +47,7 @@ class ToastItem extends Component {
|
|
|
47
47
|
this.args.onDismiss(this.toast.id);
|
|
48
48
|
};
|
|
49
49
|
static {
|
|
50
|
-
setComponentTemplate(precompileTemplate("<div class=\"toast-
|
|
50
|
+
setComponentTemplate(precompileTemplate("<div class=\"toast-item_e318658ab\" role={{this.role}} data-tone={{this.toast.tone}} data-state={{this.toast.state}} data-test-toast data-test-toast-id={{this.toast.id}} {{on \"mouseenter\" this.handleMouseEnter}} {{on \"mouseleave\" this.handleMouseLeave}} ...attributes>\n {{#if this.icon}}\n <span class=\"toast-icon_e318658ab\" data-test-toast-icon>\n <Icon @icon={{this.icon}} @size=\"sm\" />\n </span>\n {{/if}}\n\n <div class=\"toast-content_e318658ab\">\n <p class=\"toast-title_e318658ab\" data-test-toast-title>{{this.toast.title}}</p>\n {{#if this.toast.description}}\n <p class=\"toast-description_e318658ab\" data-test-toast-description>\n {{this.toast.description}}\n </p>\n {{/if}}\n </div>\n\n {{#if this.toast.action}}\n <button type=\"button\" class=\"toast-action_e318658ab\" data-test-toast-action {{on \"click\" this.handleActionClick}}>\n {{this.toast.action.label}}\n </button>\n {{/if}}\n\n {{#if this.toast.dismissible}}\n <button type=\"button\" class=\"toast-close_e318658ab\" aria-label=\"Dismiss notification\" data-test-toast-close {{on \"click\" this.handleDismiss}}>\n <Icon @icon={{X}} @size=\"xs\" />\n </button>\n {{/if}}\n</div>", {
|
|
51
51
|
strictMode: true,
|
|
52
52
|
scope: () => ({
|
|
53
53
|
on,
|
|
@@ -110,7 +110,7 @@ class Toast extends Component {
|
|
|
110
110
|
};
|
|
111
111
|
});
|
|
112
112
|
static {
|
|
113
|
-
setComponentTemplate(precompileTemplate("{{#if this.visibleToasts.length}}\n {{#in-element this.destinationElement insertBefore=null}}\n <div class=\"toast-
|
|
113
|
+
setComponentTemplate(precompileTemplate("{{#if this.visibleToasts.length}}\n {{#in-element this.destinationElement insertBefore=null}}\n <div class=\"toast-container_e318658ab\" role=\"region\" aria-label=\"Notifications\" aria-live=\"polite\" data-position={{this.position}} style={{this.containerStyle}} {{this.setupWindowListeners}} data-test-toast-container ...attributes>\n {{#each this.visibleToasts as |toastItem|}}\n <ToastItem @toast={{toastItem}} @onDismiss={{this.handleDismiss}} @onMouseEnter={{this.handleMouseEnter}} @onMouseLeave={{this.handleMouseLeave}} />\n {{/each}}\n </div>\n {{/in-element}}\n{{/if}}", {
|
|
114
114
|
strictMode: true,
|
|
115
115
|
scope: () => ({
|
|
116
116
|
ToastItem
|