@robert-stackflow/oneui 0.6.21 → 0.6.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 (57) hide show
  1. package/CHANGELOG.md +30 -18
  2. package/README.md +270 -264
  3. package/components/AccountItem.module.css +103 -103
  4. package/components/AppShell.module.css +223 -223
  5. package/components/Badge.module.css +30 -30
  6. package/components/BarChart.module.css +35 -35
  7. package/components/Breadcrumb.module.css +97 -97
  8. package/components/Button.module.css +120 -120
  9. package/components/Checkbox.module.css +95 -95
  10. package/components/ContextMenu.d.ts +3 -1
  11. package/components/ContextMenu.js +24 -4
  12. package/components/ContributionCalendar.module.css +121 -121
  13. package/components/Control.module.css +86 -86
  14. package/components/DataTable.module.css +75 -75
  15. package/components/Dialog.module.css +139 -139
  16. package/components/EditableHeading.d.ts +12 -0
  17. package/components/EditableHeading.js +76 -0
  18. package/components/EditableHeading.module.css +16 -0
  19. package/components/HierarchyPicker.module.css +185 -185
  20. package/components/IconButton.d.ts +3 -1
  21. package/components/IconButton.js +13 -2
  22. package/components/IconButton.module.css +13 -0
  23. package/components/Indicator.module.css +83 -83
  24. package/components/Layout.d.ts +1 -0
  25. package/components/Layout.module.css +82 -82
  26. package/components/Markdown.module.css +227 -227
  27. package/components/MenuItem.module.css +172 -172
  28. package/components/NavBar.module.css +130 -130
  29. package/components/Popover.d.ts +5 -1
  30. package/components/Popover.js +59 -28
  31. package/components/Popover.module.css +52 -0
  32. package/components/Progress.module.css +33 -33
  33. package/components/RadioGroup.module.css +87 -87
  34. package/components/RangeSlider.module.css +141 -141
  35. package/components/ResizablePanel.module.css +101 -101
  36. package/components/ResourceCard.module.css +98 -98
  37. package/components/Segmented.module.css +85 -85
  38. package/components/SidebarNavigation.js +4 -2
  39. package/components/SidebarNavigation.module.css +7 -2
  40. package/components/Slider.module.css +19 -19
  41. package/components/Steps.module.css +176 -176
  42. package/components/Tab.module.css +148 -148
  43. package/components/Table.module.css +87 -87
  44. package/components/TableOfContents.module.css +252 -252
  45. package/components/ThemePicker.module.css +178 -178
  46. package/components/TimeColumns.module.css +47 -47
  47. package/components/Timeline.module.css +202 -202
  48. package/components/TreeTable.module.css +57 -57
  49. package/components/UptimeChart.module.css +15 -15
  50. package/components/index.d.ts +2 -0
  51. package/components/index.js +2 -0
  52. package/components/motion.d.ts +1 -0
  53. package/components/motion.js +16 -2
  54. package/package.json +1 -1
  55. package/styles/base.css +206 -206
  56. package/styles/blue.css +270 -270
  57. package/styles/minimal.css +319 -319
@@ -1,202 +1,202 @@
1
- .timeline {
2
- container-type: inline-size;
3
- margin: 0;
4
- padding: 0;
5
- list-style: none;
6
- }
7
- .item {
8
- display: grid;
9
- grid-template-columns: 24px minmax(0, 1fr);
10
- gap: 14px;
11
- min-width: 0;
12
- animation: timelineIn 140ms var(--ease);
13
- }
14
- .marker {
15
- position: relative;
16
- grid-column: 1;
17
- grid-row: 1;
18
- min-height: 22px;
19
- color: var(--timeline-color, var(--accent-ink, var(--accent)));
20
- }
21
- .item:not(:last-child) .marker::after {
22
- content: "";
23
- position: absolute;
24
- width: var(--separator-width);
25
- background: var(--separator-color);
26
- top: 23px;
27
- bottom: 0;
28
- left: 50%;
29
- transform: translateX(-50%);
30
- }
31
- .dot {
32
- position: absolute;
33
- top: 1px;
34
- left: 50%;
35
- transform: translateX(-50%);
36
- display: grid;
37
- place-items: center;
38
- width: 20px;
39
- height: 20px;
40
- }
41
- .dot > i {
42
- display: block;
43
- width: 7px;
44
- height: 7px;
45
- border-radius: 50%;
46
- background: currentColor;
47
- }
48
- .dot > svg {
49
- width: 16px;
50
- height: 16px;
51
- }
52
- .item[data-status="success"] .marker {
53
- color: var(--timeline-color, var(--success));
54
- }
55
- .item[data-status="error"] .marker {
56
- color: var(--timeline-color, var(--danger));
57
- }
58
- .item[data-status="warning"] .marker {
59
- color: var(--timeline-color, var(--warning));
60
- }
61
- .body {
62
- grid-column: 2;
63
- grid-row: 1;
64
- padding-bottom: 28px;
65
- min-width: 0;
66
- font-size: 12px;
67
- line-height: 22px;
68
- }
69
- .item:last-child .body {
70
- padding-bottom: 0;
71
- }
72
- .heading {
73
- display: flex;
74
- align-items: center;
75
- gap: 8px;
76
- min-height: 22px;
77
- }
78
- .title {
79
- font-weight: 500;
80
- overflow-wrap: anywhere;
81
- }
82
- .time {
83
- display: block;
84
- color: var(--muted);
85
- font-size: 11px;
86
- line-height: 20px;
87
- margin-top: 2px;
88
- }
89
- .description {
90
- margin-top: 5px;
91
- color: var(--muted);
92
- overflow-wrap: anywhere;
93
- }
94
- .toggle {
95
- display: inline-flex;
96
- align-items: center;
97
- justify-content: center;
98
- width: 24px;
99
- height: 24px;
100
- padding: 0;
101
- border: 0;
102
- border-radius: 5px;
103
- background: transparent;
104
- color: var(--muted);
105
- cursor: pointer;
106
- flex-shrink: 0;
107
- }
108
- .toggle:hover {
109
- background: var(--hover);
110
- }
111
- .toggle svg {
112
- width: 14px;
113
- height: 14px;
114
- }
115
- .details {
116
- display: grid;
117
- grid-template-rows: 0fr;
118
- opacity: 0;
119
- transition:
120
- grid-template-rows var(--motion-segment) var(--ease),
121
- opacity var(--motion-hover);
122
- }
123
- .details[data-open="true"] {
124
- grid-template-rows: 1fr;
125
- opacity: 1;
126
- }
127
- .clip {
128
- min-height: 0;
129
- overflow: hidden;
130
- }
131
- .content {
132
- padding-top: 10px;
133
- overflow-wrap: anywhere;
134
- text-align: start;
135
- }
136
- .timeline[data-mode="alternate"] .item {
137
- grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
138
- }
139
- .timeline[data-mode="alternate"] .marker {
140
- grid-column: 2;
141
- }
142
- .timeline[data-mode="alternate"] .item[data-side="left"] .body {
143
- grid-column: 1;
144
- text-align: right;
145
- }
146
- .timeline[data-mode="alternate"] .item[data-side="left"] .heading {
147
- justify-content: flex-end;
148
- }
149
- .timeline[data-mode="alternate"] .item[data-side="right"] .body {
150
- grid-column: 3;
151
- }
152
- .skeleton {
153
- margin-top: 10px;
154
- }
155
- .empty {
156
- font-size: 12px;
157
- color: var(--muted);
158
- padding: 24px;
159
- text-align: center;
160
- }
161
- @container (max-width:600px) {
162
- .timeline[data-mode="alternate"] .item {
163
- grid-template-columns: 24px minmax(0, 1fr);
164
- }
165
- .timeline[data-mode="alternate"] .marker {
166
- grid-column: 1;
167
- }
168
- .timeline[data-mode="alternate"]
169
- .item:is([data-side="left"], [data-side="right"])
170
- .body {
171
- grid-column: 2;
172
- text-align: start;
173
- }
174
- .timeline[data-mode="alternate"] .item[data-side="left"] .heading {
175
- justify-content: flex-start;
176
- }
177
- }
178
- @media (prefers-reduced-motion: reduce) {
179
- .details {
180
- transition: none;
181
- }
182
- }
183
-
184
- .sr {
185
- composes: visuallyHidden from "./Accessibility.module.css";
186
- }
187
-
188
- @keyframes timelineIn {
189
- from {
190
- opacity: 0;
191
- transform: translateY(4px);
192
- }
193
- to {
194
- opacity: 1;
195
- transform: none;
196
- }
197
- }
198
- @media (prefers-reduced-motion: reduce) {
199
- .item {
200
- animation: none;
201
- }
202
- }
1
+ .timeline {
2
+ container-type: inline-size;
3
+ margin: 0;
4
+ padding: 0;
5
+ list-style: none;
6
+ }
7
+ .item {
8
+ display: grid;
9
+ grid-template-columns: 24px minmax(0, 1fr);
10
+ gap: 14px;
11
+ min-width: 0;
12
+ animation: timelineIn 140ms var(--ease);
13
+ }
14
+ .marker {
15
+ position: relative;
16
+ grid-column: 1;
17
+ grid-row: 1;
18
+ min-height: 22px;
19
+ color: var(--timeline-color, var(--accent-ink, var(--accent)));
20
+ }
21
+ .item:not(:last-child) .marker::after {
22
+ content: "";
23
+ position: absolute;
24
+ width: var(--separator-width);
25
+ background: var(--separator-color);
26
+ top: 23px;
27
+ bottom: 0;
28
+ left: 50%;
29
+ transform: translateX(-50%);
30
+ }
31
+ .dot {
32
+ position: absolute;
33
+ top: 1px;
34
+ left: 50%;
35
+ transform: translateX(-50%);
36
+ display: grid;
37
+ place-items: center;
38
+ width: 20px;
39
+ height: 20px;
40
+ }
41
+ .dot > i {
42
+ display: block;
43
+ width: 7px;
44
+ height: 7px;
45
+ border-radius: 50%;
46
+ background: currentColor;
47
+ }
48
+ .dot > svg {
49
+ width: 16px;
50
+ height: 16px;
51
+ }
52
+ .item[data-status="success"] .marker {
53
+ color: var(--timeline-color, var(--success));
54
+ }
55
+ .item[data-status="error"] .marker {
56
+ color: var(--timeline-color, var(--danger));
57
+ }
58
+ .item[data-status="warning"] .marker {
59
+ color: var(--timeline-color, var(--warning));
60
+ }
61
+ .body {
62
+ grid-column: 2;
63
+ grid-row: 1;
64
+ padding-bottom: 28px;
65
+ min-width: 0;
66
+ font-size: 12px;
67
+ line-height: 22px;
68
+ }
69
+ .item:last-child .body {
70
+ padding-bottom: 0;
71
+ }
72
+ .heading {
73
+ display: flex;
74
+ align-items: center;
75
+ gap: 8px;
76
+ min-height: 22px;
77
+ }
78
+ .title {
79
+ font-weight: 500;
80
+ overflow-wrap: anywhere;
81
+ }
82
+ .time {
83
+ display: block;
84
+ color: var(--muted);
85
+ font-size: 11px;
86
+ line-height: 20px;
87
+ margin-top: 2px;
88
+ }
89
+ .description {
90
+ margin-top: 5px;
91
+ color: var(--muted);
92
+ overflow-wrap: anywhere;
93
+ }
94
+ .toggle {
95
+ display: inline-flex;
96
+ align-items: center;
97
+ justify-content: center;
98
+ width: 24px;
99
+ height: 24px;
100
+ padding: 0;
101
+ border: 0;
102
+ border-radius: 5px;
103
+ background: transparent;
104
+ color: var(--muted);
105
+ cursor: pointer;
106
+ flex-shrink: 0;
107
+ }
108
+ .toggle:hover {
109
+ background: var(--hover);
110
+ }
111
+ .toggle svg {
112
+ width: 14px;
113
+ height: 14px;
114
+ }
115
+ .details {
116
+ display: grid;
117
+ grid-template-rows: 0fr;
118
+ opacity: 0;
119
+ transition:
120
+ grid-template-rows var(--motion-segment) var(--ease),
121
+ opacity var(--motion-hover);
122
+ }
123
+ .details[data-open="true"] {
124
+ grid-template-rows: 1fr;
125
+ opacity: 1;
126
+ }
127
+ .clip {
128
+ min-height: 0;
129
+ overflow: hidden;
130
+ }
131
+ .content {
132
+ padding-top: 10px;
133
+ overflow-wrap: anywhere;
134
+ text-align: start;
135
+ }
136
+ .timeline[data-mode="alternate"] .item {
137
+ grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
138
+ }
139
+ .timeline[data-mode="alternate"] .marker {
140
+ grid-column: 2;
141
+ }
142
+ .timeline[data-mode="alternate"] .item[data-side="left"] .body {
143
+ grid-column: 1;
144
+ text-align: right;
145
+ }
146
+ .timeline[data-mode="alternate"] .item[data-side="left"] .heading {
147
+ justify-content: flex-end;
148
+ }
149
+ .timeline[data-mode="alternate"] .item[data-side="right"] .body {
150
+ grid-column: 3;
151
+ }
152
+ .skeleton {
153
+ margin-top: 10px;
154
+ }
155
+ .empty {
156
+ font-size: 12px;
157
+ color: var(--muted);
158
+ padding: 24px;
159
+ text-align: center;
160
+ }
161
+ @container (max-width:600px) {
162
+ .timeline[data-mode="alternate"] .item {
163
+ grid-template-columns: 24px minmax(0, 1fr);
164
+ }
165
+ .timeline[data-mode="alternate"] .marker {
166
+ grid-column: 1;
167
+ }
168
+ .timeline[data-mode="alternate"]
169
+ .item:is([data-side="left"], [data-side="right"])
170
+ .body {
171
+ grid-column: 2;
172
+ text-align: start;
173
+ }
174
+ .timeline[data-mode="alternate"] .item[data-side="left"] .heading {
175
+ justify-content: flex-start;
176
+ }
177
+ }
178
+ @media (prefers-reduced-motion: reduce) {
179
+ .details {
180
+ transition: none;
181
+ }
182
+ }
183
+
184
+ .sr {
185
+ composes: visuallyHidden from "./Accessibility.module.css";
186
+ }
187
+
188
+ @keyframes timelineIn {
189
+ from {
190
+ opacity: 0;
191
+ transform: translateY(4px);
192
+ }
193
+ to {
194
+ opacity: 1;
195
+ transform: none;
196
+ }
197
+ }
198
+ @media (prefers-reduced-motion: reduce) {
199
+ .item {
200
+ animation: none;
201
+ }
202
+ }
@@ -1,57 +1,57 @@
1
- .root {
2
- --table-radius: var(--card-radius);
3
- border-radius: var(--card-radius);
4
- background: var(--surface);
5
- overflow: hidden;
6
- box-shadow: var(--card-shadow, none);
7
- }
8
- .root table td {
9
- padding: 0 18px;
10
- border-bottom: 0;
11
- }
12
- .root table th {
13
- padding: 14px 18px;
14
- }
15
- .root[data-density="compact"] .cell {
16
- min-height: 48px;
17
- padding-block: 8px;
18
- }
19
- .root tr:focus-visible {
20
- outline: 1px solid var(--accent-ink, var(--accent));
21
- outline-offset: -1px;
22
- }
23
- .root table tr[data-tree-root="true"]:not(:first-child) td {
24
- border-top: 1px solid var(--line);
25
- }
26
- .cell {
27
- --tree-elbow-gap: 8px;
28
- position: relative;
29
- display: flex;
30
- align-items: center;
31
- gap: 8px;
32
- min-height: 72px;
33
- padding-block: 14px;
34
- min-width: 260px;
35
- white-space: normal;
36
- }
37
- .expander,
38
- .spacer {
39
- flex: 0 0 24px;
40
- width: 24px;
41
- height: 26px;
42
- }
43
- .content {
44
- position: relative;
45
- flex: 1;
46
- min-width: 0;
47
- }
48
- .expander svg {
49
- width: 14px;
50
- height: 14px;
51
- }
52
- .expander[aria-expanded="false"] svg {
53
- rotate: -90deg;
54
- }
55
- .expander[aria-expanded="true"] svg {
56
- rotate: 0deg;
57
- }
1
+ .root {
2
+ --table-radius: var(--card-radius);
3
+ border-radius: var(--card-radius);
4
+ background: var(--surface);
5
+ overflow: hidden;
6
+ box-shadow: var(--card-shadow, none);
7
+ }
8
+ .root table td {
9
+ padding: 0 18px;
10
+ border-bottom: 0;
11
+ }
12
+ .root table th {
13
+ padding: 14px 18px;
14
+ }
15
+ .root[data-density="compact"] .cell {
16
+ min-height: 48px;
17
+ padding-block: 8px;
18
+ }
19
+ .root tr:focus-visible {
20
+ outline: 1px solid var(--accent-ink, var(--accent));
21
+ outline-offset: -1px;
22
+ }
23
+ .root table tr[data-tree-root="true"]:not(:first-child) td {
24
+ border-top: 1px solid var(--line);
25
+ }
26
+ .cell {
27
+ --tree-elbow-gap: 8px;
28
+ position: relative;
29
+ display: flex;
30
+ align-items: center;
31
+ gap: 8px;
32
+ min-height: 72px;
33
+ padding-block: 14px;
34
+ min-width: 260px;
35
+ white-space: normal;
36
+ }
37
+ .expander,
38
+ .spacer {
39
+ flex: 0 0 24px;
40
+ width: 24px;
41
+ height: 26px;
42
+ }
43
+ .content {
44
+ position: relative;
45
+ flex: 1;
46
+ min-width: 0;
47
+ }
48
+ .expander svg {
49
+ width: 14px;
50
+ height: 14px;
51
+ }
52
+ .expander[aria-expanded="false"] svg {
53
+ rotate: -90deg;
54
+ }
55
+ .expander[aria-expanded="true"] svg {
56
+ rotate: 0deg;
57
+ }
@@ -1,15 +1,15 @@
1
- .chart { display: flex; align-items: center; gap: 3px; width: 100%; min-width: 0; height: 36px; }
2
- .cell { position: relative; display: flex; align-items: center; flex: 1; min-width: 0; height: 32px; outline: none; transform-origin: center bottom; animation: enter 520ms var(--ease) both; animation-delay: calc(var(--bar-index) * 9ms); }
3
- .bar { width: 100%; height: 22px; border-radius: 3px; background: var(--line); color: var(--line); transform-origin: center bottom; transition: transform 170ms var(--ease), opacity 170ms var(--ease), box-shadow 170ms var(--ease); }
4
- .cell[data-state="empty"] .bar { height: 15px; }
5
- .cell[data-state="up"] .bar { background: var(--success); color: var(--success); }
6
- .cell[data-state="partial"] .bar { background: var(--warning); color: var(--warning); }
7
- .cell[data-state="down"] .bar { background: var(--danger); color: var(--danger); }
8
- .chart:hover .cell:not(:hover):not(:focus-visible) .bar { opacity: .55; }
9
- .cell:hover, .cell:focus-visible { z-index: 1; }
10
- .cell:hover .bar, .cell:focus-visible .bar { transform: translateY(-3px) scale(1.25, 1.12); box-shadow: 0 4px 10px color-mix(in srgb, currentColor 22%, transparent); }
11
- .cell:focus-visible .bar { outline: 2px solid var(--fg); outline-offset: 2px; }
12
- @keyframes enter { from { opacity: 0; transform: translateY(7px) scaleY(.35); } 62% { opacity: 1; transform: translateY(-2px) scaleY(1.06); } to { opacity: 1; transform: none; } }
13
- @media (prefers-reduced-motion: reduce) { .cell { animation: none; } .bar { transition: none; } .cell:hover .bar, .cell:focus-visible .bar { transform: none; } }
14
-
15
- .chart > span { flex: 1; min-width: 0; }
1
+ .chart { display: flex; align-items: center; gap: 3px; width: 100%; min-width: 0; height: 36px; }
2
+ .cell { position: relative; display: flex; align-items: center; flex: 1; min-width: 0; height: 32px; outline: none; transform-origin: center bottom; animation: enter 520ms var(--ease) both; animation-delay: calc(var(--bar-index) * 9ms); }
3
+ .bar { width: 100%; height: 22px; border-radius: 3px; background: var(--line); color: var(--line); transform-origin: center bottom; transition: transform 170ms var(--ease), opacity 170ms var(--ease), box-shadow 170ms var(--ease); }
4
+ .cell[data-state="empty"] .bar { height: 15px; }
5
+ .cell[data-state="up"] .bar { background: var(--success); color: var(--success); }
6
+ .cell[data-state="partial"] .bar { background: var(--warning); color: var(--warning); }
7
+ .cell[data-state="down"] .bar { background: var(--danger); color: var(--danger); }
8
+ .chart:hover .cell:not(:hover):not(:focus-visible) .bar { opacity: .55; }
9
+ .cell:hover, .cell:focus-visible { z-index: 1; }
10
+ .cell:hover .bar, .cell:focus-visible .bar { transform: translateY(-3px) scale(1.25, 1.12); box-shadow: 0 4px 10px color-mix(in srgb, currentColor 22%, transparent); }
11
+ .cell:focus-visible .bar { outline: 2px solid var(--fg); outline-offset: 2px; }
12
+ @keyframes enter { from { opacity: 0; transform: translateY(7px) scaleY(.35); } 62% { opacity: 1; transform: translateY(-2px) scaleY(1.06); } to { opacity: 1; transform: none; } }
13
+ @media (prefers-reduced-motion: reduce) { .cell { animation: none; } .bar { transition: none; } .cell:hover .bar, .cell:focus-visible .bar { transform: none; } }
14
+
15
+ .chart > span { flex: 1; min-width: 0; }
@@ -187,5 +187,7 @@ export { Banner } from "./Banner";
187
187
  export type { BannerProps } from "./Banner";
188
188
  export type { TableAppearance } from "./Table";
189
189
  export { TableOfContents } from "./TableOfContents";
190
+ export { EditableHeading } from "./EditableHeading";
191
+ export type { EditableHeadingProps } from "./EditableHeading";
190
192
  export type { TableOfContentsProps, TableOfContentsItem, } from "./TableOfContents";
191
193
  export type { MarkdownCodeTheme } from "./Markdown";
@@ -155,6 +155,7 @@ import { NavBar } from "./NavBar.js";
155
155
  import { Markdown } from "./Markdown.js";
156
156
  import { Banner } from "./Banner.js";
157
157
  import { TableOfContents } from "./TableOfContents.js";
158
+ import { EditableHeading } from "./EditableHeading.js";
158
159
  export {
159
160
  Accordion,
160
161
  AccountItem,
@@ -197,6 +198,7 @@ export {
197
198
  DisclosureChevron,
198
199
  Divider,
199
200
  Drawer,
201
+ EditableHeading,
200
202
  EmojiPicker,
201
203
  EmptyState,
202
204
  FieldLabel,
@@ -6,5 +6,6 @@ export declare function cancelMotion(node: HTMLElement): void;
6
6
  export declare function surfaceMotion(node: HTMLElement, phase: Phase, offset?: string, token?: string): Promise<boolean>;
7
7
  export declare function toastMotion(node: HTMLElement, phase: Phase, position: string): Promise<boolean>;
8
8
  export type MenuSide = "top" | "bottom" | "left" | "right";
9
+ export declare function popoverSurfaceMotion(node: HTMLElement, phase: "enter" | "exit", side?: MenuSide): Promise<boolean>;
9
10
  export declare function menuSurfaceMotion(node: HTMLElement, phase: "enter" | "exit", side?: MenuSide): Promise<boolean>;
10
11
  export {};
@@ -24,13 +24,17 @@ function runMotion(node, phase, offset = "0 -4px", token, profile = "surface") {
24
24
  opacity: interrupted ? style.opacity : phase === "enter" ? "0" : phase === "update" ? ".78" : "1",
25
25
  translate: interrupted ? style.translate : phase === "enter" ? offset : phase === "update" ? profile === "toast" ? "0 0" : "0 2px" : "0 0"
26
26
  };
27
- const scale = profile === "toast" ? { scale: interrupted ? style.scale : phase === "enter" ? ".96" : "1" } : {};
27
+ const scale = profile !== "surface" ? {
28
+ scale: interrupted ? style.scale : phase === "enter" ? profile === "toast" ? ".96" : ".97" : "1"
29
+ } : {};
28
30
  Object.assign(from, scale);
29
31
  state.animation?.cancel();
30
32
  const to = {
31
33
  opacity: phase === "exit" ? "0" : "1",
32
34
  translate: phase === "exit" ? offset : "0 0",
33
- ...profile === "toast" ? { scale: phase === "exit" ? ".98" : "1" } : {}
35
+ ...profile !== "surface" ? {
36
+ scale: phase === "exit" ? profile === "toast" ? ".98" : ".985" : "1"
37
+ } : {}
34
38
  };
35
39
  node.dataset.motionPhase = phase;
36
40
  const finish = () => {
@@ -75,6 +79,15 @@ function toastMotion(node, phase, position) {
75
79
  const offset = position.endsWith("right") ? "14px 0" : position.endsWith("left") ? "-14px 0" : position.startsWith("top") ? "0 -12px" : "0 12px";
76
80
  return runMotion(node, phase, offset, `--toast-${phase}`, "toast");
77
81
  }
82
+ function popoverSurfaceMotion(node, phase, side = "bottom") {
83
+ const offset = {
84
+ top: "0 6px",
85
+ bottom: "0 -6px",
86
+ left: "6px 0",
87
+ right: "-6px 0"
88
+ }[side];
89
+ return runMotion(node, phase, offset, void 0, "popover");
90
+ }
78
91
  function menuSurfaceMotion(node, phase, side = "bottom") {
79
92
  const offset = {
80
93
  top: "0 4px",
@@ -88,6 +101,7 @@ export {
88
101
  cancelMotion,
89
102
  menuSurfaceMotion,
90
103
  motionDuration,
104
+ popoverSurfaceMotion,
91
105
  popupExitDuration,
92
106
  reducedMotion,
93
107
  surfaceMotion,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robert-stackflow/oneui",
3
- "version": "0.6.21",
3
+ "version": "0.6.23",
4
4
  "description": "OneUI React components, application shell and portable visual themes",
5
5
  "type": "module",
6
6
  "sideEffects": [