@robert-stackflow/oneui 0.6.37 → 0.6.38

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 CHANGED
@@ -1,259 +1,259 @@
1
- ## 0.6.37
2
-
3
- - Keep wheel input inside open ContextMenu layers. Short menus and scroll boundaries no longer scroll the document or nested workspace behind them; long menus retain native scrolling.
4
-
5
- ## 0.6.35
6
-
7
- - Add an optional `IconButton text` slot for unified icon/text or count actions, sharing one hover, focus, pressed and click region without application styling. Preserve icon-only and disclosure variants.
8
-
9
- ## 0.6.34
10
-
11
- - Close Lightbox on empty-space clicks while guarding image/control clicks and drag/pinch gestures. Return visible images with Hero motion; missing, offscreen, zoomed or failed origins fade out gently together with the black canvas.
12
-
13
- ## 0.6.33
14
-
15
- - Animate Lightbox image changes with directional transitions that retain the outgoing image, add a sliding thumbnail selection indicator and keyboard focus ring, and preserve document width in the shared nested modal scroll lock.
16
-
17
- ## 0.6.32
18
-
19
- - Give Lightbox an opaque black canvas and matching light controls in every document color mode; remove the dependency on an undefined background variable.
20
-
21
- ## 0.6.31
22
-
23
- - Add a controlled Lightbox with source-image Hero motion, captions, thumbnails, bounded zoom/pan and pinch/swipe gestures, keyboard navigation, retry and return-to-document callbacks. Shared modal focus, scroll locking and motion remain consistent with OneUI surfaces.
24
-
25
- ## 0.6.30
26
-
27
- - Add an optional compact full hierarchy for immersive TableOfContents rail popups, stable anchoring, outward placement and a shared animated arrow. Existing flat previews keep their defaults.
28
-
29
- ## 0.6.29
30
-
31
- - Keep one password visibility control in Edge by suppressing the duplicate native reveal button inside PasswordField.
32
-
33
- ## 0.6.28
34
-
35
- - Keep Dialog headers and footer actions visible while long content scrolls inside the body, including narrow viewports and nested modals.
36
-
37
- ## 0.6.27
38
-
39
- - Add Drawer headerDivider for tabbed panels that already own their navigation separator.
40
-
41
- ## 0.6.26
42
-
43
- - Add content-sized Popover width for compact contextual action bars, clamped to the viewport.
44
- - Give pressed ghost IconButton toggles a shared, borderless theme selection surface.
45
-
46
- ## 0.6.25
47
-
48
- - Add Menu disabled state and triggerRef; blocked menus close and preserve dialog return focus through the native trigger.
49
-
50
- ## 0.6.24
51
-
52
- - Add native Segmented option counts without a separate badge surface.
53
-
54
- - Add top-aligned Dialog placement and controlled, asynchronously populated CommandPalette search.
55
- - Use shared EmptyState for command results and label click-triggered nested menus correctly.
56
-
57
- ## 0.6.23
58
-
59
- - Align nested Sidebar selection, hover and pressed row geometry; remove redundant noncompact tooltips.
60
- - Add EditableHeading for direct plain-text title editing with composition and keyboard handling.
61
- - Support click triggers for nested ContextMenu and safe server rendering.
62
-
63
- # 0.6.22
64
-
65
- - Add opt-in Popover arrow and offset. The pointer tracks the anchor after viewport clamping; the body scrolls without clipping the pointer. Vertical surfaces flip when the other side offers more space.
66
- - Animate pointed popovers with a small scale and slide from the pointer, preserving interrupted transitions and reduced-motion preferences.
67
- - Add IconButton disclosure with a spaced, animated chevron and an expanded state; keep ordinary icon buttons unchanged.
68
-
69
- # 0.6.21
70
-
71
- - Add Link with inherited typography, subtle content links, shared hover/focus states and disabled navigation. Export from the root and Link subpath.
72
- - Add Markdown fontSize for reading preferences, with scaled prose and headings; default rendering remains unchanged.
73
- - Keep Slider's accessible name stable when its current value changes; native range value announcements remain available.
74
-
75
- # 0.6.19
76
-
77
- - Add opt-in Combobox allowCustomValue input mode: preserve freely typed text on blur, Enter, and async loading or failure; only explicit option selection commits an option. Pass the selected option as the optional second onChange argument.
78
-
79
- # 0.6.18
80
-
81
- - Add Menu iconOnly triggers backed by the shared IconButton, preserving tooltip, focus restoration and keyboard menu interaction without a normal button border or minimum height.
82
-
83
- # 0.6.17
84
-
85
- - Prevent the animated SideBar selection highlight from expanding scrollable overflow while a preceding group collapses; preserve group and selection motion in both themes and color modes.
86
-
87
- # 0.6.16
88
-
89
- - Separate readable accent ink from solid fills for badges, links, menu/radio marks, steps, progress, charts, timelines, info feedback and keyboard focus in both color modes; preserve custom accents.
90
- - Fix BarChart columns collapsing to label width inside Tooltip anchors.
91
- - Keep AppShell mobile toggle icons centered when the button becomes visible.
92
- - Restore the gallery landing page, keep the searchable index as an optional entry, remove duplicate Web gallery styling, and add the missing BarChart example.
93
-
94
- # 0.6.15
95
-
96
- - Fix the indicator SideBar using a dark accent on dark selected backgrounds; follow the theme's active foreground and blend custom accents into a readable indicator ink.
97
- - Add the optional navigation-indicator-color CSS token, leaving button fills and other accent uses unchanged.
98
- - Scope navigation demo heading rules to panel headings; use shared setting rows and show content matching the active item.
99
-
100
- # 0.6.14
101
-
102
- - Add TextSettingRow, TextAreaSettingRow, SwitchSettingRow and SelectSettingRow with linked labels/descriptions, value callbacks, validation and responsive control widths; add titleBold to all setting rows.
103
-
104
- - Redesign Banner typography, tonal backgrounds, neutral outline, grouped actions, text-only disclosure and responsive layout; retain existing props and Alert compatibility.
105
- - Unify all dialog footers with a pale surface, top divider and right-aligned actions; refine compact, left-aligned headings and small semantic icons.
106
- - Add optional Dialog headerIcon/tone and asynchronous MessageDialog onAction, reusing busy, error and dismissal handling.
107
- - Reorganize the shared gallery into 65 canonical examples and 40 groups; add a searchable index and host-aware deep links, a dedicated SettingRow demo, and separate form grouping/layout examples.
108
-
109
- # 0.6.13
110
-
111
- - Add global and per-group sidebar header bold options and document the existing SettingRow/form components.
112
-
113
- - Add tree and immersive TableOfContents presentations: visible-anchor ranges and CSS motion paths for the tree, single-position lines and an independent hover card for the immersive presentation.
114
- - Make immersive lines directly navigable and add single/nearby/full hover previews, configurable preview counts and optional depth-based lengths.
115
- - Add Markdown syntax highlighting with auto, GitHub Light/Dark, Nord and Dracula themes; integrate shared table appearance and unique heading anchors.
116
- - Unify table styles across Table, DataTable, TreeTable and TableMarkup with striping, density, hover, column borders and sticky headers; keep a single tree-table frame.
117
- - Rename the primary Alert API to Banner with variants, compact layout and expandable details; retain Alert as a compatibility alias.
118
- - Add queued Toast notifications, compositor-based stack movement, keyed task updates and targeted dismissal while preserving existing toast appearance.
119
-
120
- # 0.6.12
121
-
122
- - Add a shared Markdown renderer with GFM tables, task lists, footnotes, images, links, typography and copyable code blocks.
123
- - Keep overflow inside tables/code, namespace footnote IDs per instance, omit raw HTML and retain URL filtering.
124
- - Add a live Markdown source/preview gallery shared by desktop and web; use existing Alert for tip banners.
125
-
126
- # 0.6.11
127
-
128
- - Add a unified SideBar with sidebar, card and indicator variants, grouped/nested navigation, controlled or internal expansion and keyboard focus handling.
129
- - Restore fixed-width vertical selection motion and add reversible group/nesting transitions, clipping, inert closed content and reduced-motion support.
130
- - Add independent trailing slots for every item and state-aware group trailing content; the gallery shows group counts only when collapsed.
131
- - Add responsive NavBar with native links, dropdown navigation, brand/actions slots and a mobile drawer.
132
- - Reuse SideBar in AppShell and SettingsLayout, preserve group separators and existing navigation exports, and refresh both gallery applications.
133
-
134
- # 0.6.10
135
-
136
- - Keep a single scrolling list in TreeSelect, Cascader, Combobox and MultiSelect; search and footer actions remain visible within the viewport.
137
- - Let date and date-range popovers fit their full calendar before applying the viewport height limit.
138
- - Add Popover scrollable for surfaces whose children manage scrolling.
139
- - Keep icon, Emoji and symbol picker scrolling inside their virtualized lists.
140
-
141
- # 0.6.9
142
-
143
- - Fix account item icon contrast in the minimal dark theme; session and passkey icons follow foreground color.
144
-
145
- # Changelog
146
-
147
- ## 0.6.8
148
-
149
- - Use theme-specific selected text and indicator colors for UnderlinedTab, including hover and dark mode.
150
- - Apply minimal-theme palette changes atomically to avoid low-contrast intermediate gray frames; preserve control and navigation movement.
151
-
152
- ## 0.6.7
153
-
154
- - Add UptimeChart with shared status colors, staggered entrance, hover/focus inspection, native tooltips and reduced-motion support.
155
-
156
- ## 0.6.6
157
-
158
- - Add Segmented fullWidth to align evenly distributed options with navigation or form containers.
159
-
160
- - Fix minimal-theme placeholder color for text, password, numeric and multiline controls in both color modes.
161
- - Preserve native switch and button appearance inside DataTable cells; remove the table's broad button style override.
162
-
163
- ## 0.6.5 — 2026-10-29
164
-
165
- - Popover 默认限制 360px 最大高度,并继续按可用视口收缩;长下拉菜单在内部滚动,可通过 maxHeight 调整。
166
- - NumberInput 支持 fullWidth,适配双栏、单栏表单。
167
- - DataTable 列支持 width 与 align,让路径、状态、开关及操作列按内容分配空间。
168
- - TabList 保留横向滚动与键盘导航,避免下划线溢出造成多余滚动条。
169
-
170
- ## 0.6.4 — 2026-10-29
171
-
172
- - 极简主题的文字按钮使用前景色,修复深色模式下文字对比度不足;浅深色包消费检查覆盖文字按钮对比度。
173
-
174
- ## 0.6.3 — 2026-10-29
175
-
176
- - 横向 Divider 在居中网格中与文字保持垂直居中,同时保留普通块、纵向弹性布局及 inset 的宽度行为。
177
- - 包消费验证覆盖两套主题、深浅色和桌面/手机宽度下的分割线几何对齐。
178
-
179
- ## 0.6.2 — 2026-10-29
180
-
181
- - Text 与 Heading 的多行省略明确恢复正常换行,避免继承表格的 nowrap 后长文本撑开列宽。
182
- - 增加浅色、深色及窄屏下表格内两行截断的回归验证。
183
-
184
- ## 0.6.1 — 2026-10-29
185
-
186
- - 在 0.5.2 基础上保留可创建多选、分组导航及可选页面标题;新增嵌套侧栏、资源卡片、登录布局和页面标题组合。
187
- - 复用现有 Card/Table 样式,提供布局基础组件、TableMarkup、CopyButton 与 BarChart;普通选择与可搜索选择分别沿用现有 Select/Combobox。
188
- - Menu 支持自定义触发内容,NumberInput 支持单位,Button 支持文字链接;修复日历月份标签碰撞及表格圆角继承。
189
- - 保留现有公开接口,并验证独立包消费、账户表单、弹窗、分组/嵌套导航及窄屏视觉基础。
190
-
191
- ## 0.6.0 — 2026-10-29
192
-
193
- - 发布了较早的组合组件候选;0.6.1 补齐 0.5.1 分组导航、多选创建及 0.5.2 CSS Modules 动画兼容修复。请使用 0.6.1。
194
-
195
- ## 0.5.2 — 2026-10-29
196
-
197
- - 将 Page、Dialog、Drawer、Button 的动画关键帧放回各自 CSS Module。
198
-
199
- ## 0.5.1 — 2026-10-29
200
-
201
- - MultiSelect 新增 `onCreate`,标签模式在同一触发框内展示已选项,支持搜索创建、连续多选、错误重试,以及关闭后忽略异步创建结果。
202
- - Page 支持可选 ReactNode 标题,可为无标题的内容区复用共享入场动画。
203
- - AppShell 新增 `navigationGroups`,桌面侧栏与移动导航共享分组和分隔布局;保留原有扁平导航 API。
204
-
205
- ## 0.5.0 — 2026-10-29
206
-
207
- - 新增 ActionSheet,复用 IconButton、Drawer 和 MenuItem;桌面使用紧凑底部面板,手机适配底部安全区域,支持禁用和危险操作。
208
- - Drawer 新增 `onAfterClose`,在关闭动画与焦点恢复完成后执行后续操作,避免操作面板与新弹窗重叠。
209
- - 横向 FormField 包含多行输入时,标签靠上对齐;单行控件和手机纵向布局保持原有排列。
210
-
211
- ## 0.4.2 — 2026-10-29
212
-
213
- - 图标、Emoji 和符号目录改用可被构建工具识别的异步 JSON 导入,修复 npm 包在 Vite 开发预打包后资源相对路径失效的问题;生产构建继续按需加载。
214
- - Card 新增 `description` 与无正文模式,标题和正文使用一致的横向间距,避免只含概览和操作时产生空白正文。
215
- - 独立 tarball 消费测试增加开发模式预打包下的三套完整目录加载验证。
216
-
217
- ## 0.4.1 — 2026-10-29
218
-
219
- - Dialog、Drawer 统一处理普通关闭和条件卸载后的焦点恢复,兼容 StrictMode、嵌套与替换弹窗,不抢夺其他弹窗的焦点。
220
- - 新增 `returnFocus` 引用,可为异步打开的弹窗明确指定关闭后返回的控件。
221
- - 修复 FormField 在卸载失焦时访问已清空引用的运行错误,避免 StrictMode 模拟清理触发额外失焦。
222
- - Pagination 新增 `compact`、`size="small"` 和 `className`;紧凑排列、尺寸及窄屏换行由组件管理,宿主不再依赖内部 DOM 覆盖样式。
223
- - 增加独立构建包的双主题、深浅色、1280/390/320px 焦点和分页交互验证。
224
-
225
- ## 0.4.0 — 2026-10-29
226
-
227
- - 新增 AccountItem、PasskeyItem、SessionItem,统一账户设备列表的图标、元数据、操作按钮和移动布局;业务与日期格式由宿主负责。
228
- - Form、FormGroup、FormField 支持 stacked / inline 两种排版,继承布局并可逐字段覆盖;窄屏自动改为上下排列。
229
- - 修复 FormField 空标签占位造成的控件垂直错位,RadioGroup 在 FormField 中不再重复显示标签。
230
- - NumberInput 新增 nullable 模式,清空返回 null,保留小数、范围、键盘与只读行为。
231
- - Dialog 在关闭动画期间保留最终内容,避免宿主清空选择时先显示空弹窗。
232
- - 两端共享示例新增设置表单与账户设备项目。
233
-
234
- ## 0.3.0 — 2026-10-28
235
-
236
- - AppShell 新增 brandName、brandIcon、brand、homePath、basePath 和 showHeader;支持无顶部栏的移动导航,可省略设置入口及侧栏折叠回调。普通点击向宿主传递内部路径,链接和新标签页使用完整基础路径。
237
- - 新增 createToaster 独立通知控制器,可由 React 组件外代码调用;ToastProvider 可接收 controller,保留原 useToast API 和单条通知替换行为。
238
- - IconPicker 支持 valuePrefix、自定义图标目录与 React 图标内容,保留存储 ID;统一字段、只读、禁用和表单值行为。
239
- - DatePicker 支持 timeZone、clearable、placeholder;指定时区影响今天/此刻及日历当天标记,输入的日历时间保持原值,不隐式转换为 UTC。
240
- - React/React DOM peer 范围调整为 ^19.2.0,独立消费验证覆盖 React 19.3.0 + TypeScript 5.9.3 和现有 React 19.3.1。
241
- - 两端示例增加前缀/自定义图标和指定时区日期示例;未迁移或修改 Moment 业务代码。
242
- - 修复极简深色导航选中文字过暗的问题。
243
-
244
- ## 0.2.0 — 2026-10-28
245
-
246
- - 新增 MessageDialog、ConfirmDialog、FormDialog 与统一 LoadingState,复用表单校验、异步提交、错误反馈和焦点管理。
247
- - TreeSelect 新增 category 图标、数量、层级连线样式;保留 tree 风格,支持父子联动多选。
248
- - 新增 TreeTable,复用 Table 列定义,支持受控展开、多级连线和键盘导航;列支持 align、width。
249
- - Combobox 新增 mode="input" 触发框补全;保留弹层搜索,支持异步加载、取消、创建与失败重试。
250
- - MultiSelect 新增 display="tags",与 TagInput 共用标签实现;保留摘要模式及选择限制。
251
- - 蓝白主题采用 Moment 对应色板、输入 hover 混色和深色参数;修复默认色板迁移与选择器分类栏底色。
252
- - 统一菜单项 1px 间距,修复快捷键右对齐、宿主 kbd 边框干扰、关闭的 Popover 被布局样式显示等问题。
253
- - 树选择器底部清空/完成操作使用独立的 8px 按钮间距。
254
- - 共享应用外壳与示例布局统一,修复图标尺寸、链接文字、动效示例、表单间距、弹层和移动布局。
255
- - 发布构建使用干净输出并检查包内引用;增加独立 tarball 消费项目的类型、生产与交互验证。
256
-
257
- ## 0.1.0 — 2026-10-28
258
-
259
- - 首次发布 React 组件、应用外壳、极简/蓝白主题与图标字符资源。
1
+ ## 0.6.37
2
+
3
+ - Keep wheel input inside open ContextMenu layers. Short menus and scroll boundaries no longer scroll the document or nested workspace behind them; long menus retain native scrolling.
4
+
5
+ ## 0.6.35
6
+
7
+ - Add an optional `IconButton text` slot for unified icon/text or count actions, sharing one hover, focus, pressed and click region without application styling. Preserve icon-only and disclosure variants.
8
+
9
+ ## 0.6.34
10
+
11
+ - Close Lightbox on empty-space clicks while guarding image/control clicks and drag/pinch gestures. Return visible images with Hero motion; missing, offscreen, zoomed or failed origins fade out gently together with the black canvas.
12
+
13
+ ## 0.6.33
14
+
15
+ - Animate Lightbox image changes with directional transitions that retain the outgoing image, add a sliding thumbnail selection indicator and keyboard focus ring, and preserve document width in the shared nested modal scroll lock.
16
+
17
+ ## 0.6.32
18
+
19
+ - Give Lightbox an opaque black canvas and matching light controls in every document color mode; remove the dependency on an undefined background variable.
20
+
21
+ ## 0.6.31
22
+
23
+ - Add a controlled Lightbox with source-image Hero motion, captions, thumbnails, bounded zoom/pan and pinch/swipe gestures, keyboard navigation, retry and return-to-document callbacks. Shared modal focus, scroll locking and motion remain consistent with OneUI surfaces.
24
+
25
+ ## 0.6.30
26
+
27
+ - Add an optional compact full hierarchy for immersive TableOfContents rail popups, stable anchoring, outward placement and a shared animated arrow. Existing flat previews keep their defaults.
28
+
29
+ ## 0.6.29
30
+
31
+ - Keep one password visibility control in Edge by suppressing the duplicate native reveal button inside PasswordField.
32
+
33
+ ## 0.6.28
34
+
35
+ - Keep Dialog headers and footer actions visible while long content scrolls inside the body, including narrow viewports and nested modals.
36
+
37
+ ## 0.6.27
38
+
39
+ - Add Drawer headerDivider for tabbed panels that already own their navigation separator.
40
+
41
+ ## 0.6.26
42
+
43
+ - Add content-sized Popover width for compact contextual action bars, clamped to the viewport.
44
+ - Give pressed ghost IconButton toggles a shared, borderless theme selection surface.
45
+
46
+ ## 0.6.25
47
+
48
+ - Add Menu disabled state and triggerRef; blocked menus close and preserve dialog return focus through the native trigger.
49
+
50
+ ## 0.6.24
51
+
52
+ - Add native Segmented option counts without a separate badge surface.
53
+
54
+ - Add top-aligned Dialog placement and controlled, asynchronously populated CommandPalette search.
55
+ - Use shared EmptyState for command results and label click-triggered nested menus correctly.
56
+
57
+ ## 0.6.23
58
+
59
+ - Align nested Sidebar selection, hover and pressed row geometry; remove redundant noncompact tooltips.
60
+ - Add EditableHeading for direct plain-text title editing with composition and keyboard handling.
61
+ - Support click triggers for nested ContextMenu and safe server rendering.
62
+
63
+ # 0.6.22
64
+
65
+ - Add opt-in Popover arrow and offset. The pointer tracks the anchor after viewport clamping; the body scrolls without clipping the pointer. Vertical surfaces flip when the other side offers more space.
66
+ - Animate pointed popovers with a small scale and slide from the pointer, preserving interrupted transitions and reduced-motion preferences.
67
+ - Add IconButton disclosure with a spaced, animated chevron and an expanded state; keep ordinary icon buttons unchanged.
68
+
69
+ # 0.6.21
70
+
71
+ - Add Link with inherited typography, subtle content links, shared hover/focus states and disabled navigation. Export from the root and Link subpath.
72
+ - Add Markdown fontSize for reading preferences, with scaled prose and headings; default rendering remains unchanged.
73
+ - Keep Slider's accessible name stable when its current value changes; native range value announcements remain available.
74
+
75
+ # 0.6.19
76
+
77
+ - Add opt-in Combobox allowCustomValue input mode: preserve freely typed text on blur, Enter, and async loading or failure; only explicit option selection commits an option. Pass the selected option as the optional second onChange argument.
78
+
79
+ # 0.6.18
80
+
81
+ - Add Menu iconOnly triggers backed by the shared IconButton, preserving tooltip, focus restoration and keyboard menu interaction without a normal button border or minimum height.
82
+
83
+ # 0.6.17
84
+
85
+ - Prevent the animated SideBar selection highlight from expanding scrollable overflow while a preceding group collapses; preserve group and selection motion in both themes and color modes.
86
+
87
+ # 0.6.16
88
+
89
+ - Separate readable accent ink from solid fills for badges, links, menu/radio marks, steps, progress, charts, timelines, info feedback and keyboard focus in both color modes; preserve custom accents.
90
+ - Fix BarChart columns collapsing to label width inside Tooltip anchors.
91
+ - Keep AppShell mobile toggle icons centered when the button becomes visible.
92
+ - Restore the gallery landing page, keep the searchable index as an optional entry, remove duplicate Web gallery styling, and add the missing BarChart example.
93
+
94
+ # 0.6.15
95
+
96
+ - Fix the indicator SideBar using a dark accent on dark selected backgrounds; follow the theme's active foreground and blend custom accents into a readable indicator ink.
97
+ - Add the optional navigation-indicator-color CSS token, leaving button fills and other accent uses unchanged.
98
+ - Scope navigation demo heading rules to panel headings; use shared setting rows and show content matching the active item.
99
+
100
+ # 0.6.14
101
+
102
+ - Add TextSettingRow, TextAreaSettingRow, SwitchSettingRow and SelectSettingRow with linked labels/descriptions, value callbacks, validation and responsive control widths; add titleBold to all setting rows.
103
+
104
+ - Redesign Banner typography, tonal backgrounds, neutral outline, grouped actions, text-only disclosure and responsive layout; retain existing props and Alert compatibility.
105
+ - Unify all dialog footers with a pale surface, top divider and right-aligned actions; refine compact, left-aligned headings and small semantic icons.
106
+ - Add optional Dialog headerIcon/tone and asynchronous MessageDialog onAction, reusing busy, error and dismissal handling.
107
+ - Reorganize the shared gallery into 65 canonical examples and 40 groups; add a searchable index and host-aware deep links, a dedicated SettingRow demo, and separate form grouping/layout examples.
108
+
109
+ # 0.6.13
110
+
111
+ - Add global and per-group sidebar header bold options and document the existing SettingRow/form components.
112
+
113
+ - Add tree and immersive TableOfContents presentations: visible-anchor ranges and CSS motion paths for the tree, single-position lines and an independent hover card for the immersive presentation.
114
+ - Make immersive lines directly navigable and add single/nearby/full hover previews, configurable preview counts and optional depth-based lengths.
115
+ - Add Markdown syntax highlighting with auto, GitHub Light/Dark, Nord and Dracula themes; integrate shared table appearance and unique heading anchors.
116
+ - Unify table styles across Table, DataTable, TreeTable and TableMarkup with striping, density, hover, column borders and sticky headers; keep a single tree-table frame.
117
+ - Rename the primary Alert API to Banner with variants, compact layout and expandable details; retain Alert as a compatibility alias.
118
+ - Add queued Toast notifications, compositor-based stack movement, keyed task updates and targeted dismissal while preserving existing toast appearance.
119
+
120
+ # 0.6.12
121
+
122
+ - Add a shared Markdown renderer with GFM tables, task lists, footnotes, images, links, typography and copyable code blocks.
123
+ - Keep overflow inside tables/code, namespace footnote IDs per instance, omit raw HTML and retain URL filtering.
124
+ - Add a live Markdown source/preview gallery shared by desktop and web; use existing Alert for tip banners.
125
+
126
+ # 0.6.11
127
+
128
+ - Add a unified SideBar with sidebar, card and indicator variants, grouped/nested navigation, controlled or internal expansion and keyboard focus handling.
129
+ - Restore fixed-width vertical selection motion and add reversible group/nesting transitions, clipping, inert closed content and reduced-motion support.
130
+ - Add independent trailing slots for every item and state-aware group trailing content; the gallery shows group counts only when collapsed.
131
+ - Add responsive NavBar with native links, dropdown navigation, brand/actions slots and a mobile drawer.
132
+ - Reuse SideBar in AppShell and SettingsLayout, preserve group separators and existing navigation exports, and refresh both gallery applications.
133
+
134
+ # 0.6.10
135
+
136
+ - Keep a single scrolling list in TreeSelect, Cascader, Combobox and MultiSelect; search and footer actions remain visible within the viewport.
137
+ - Let date and date-range popovers fit their full calendar before applying the viewport height limit.
138
+ - Add Popover scrollable for surfaces whose children manage scrolling.
139
+ - Keep icon, Emoji and symbol picker scrolling inside their virtualized lists.
140
+
141
+ # 0.6.9
142
+
143
+ - Fix account item icon contrast in the minimal dark theme; session and passkey icons follow foreground color.
144
+
145
+ # Changelog
146
+
147
+ ## 0.6.8
148
+
149
+ - Use theme-specific selected text and indicator colors for UnderlinedTab, including hover and dark mode.
150
+ - Apply minimal-theme palette changes atomically to avoid low-contrast intermediate gray frames; preserve control and navigation movement.
151
+
152
+ ## 0.6.7
153
+
154
+ - Add UptimeChart with shared status colors, staggered entrance, hover/focus inspection, native tooltips and reduced-motion support.
155
+
156
+ ## 0.6.6
157
+
158
+ - Add Segmented fullWidth to align evenly distributed options with navigation or form containers.
159
+
160
+ - Fix minimal-theme placeholder color for text, password, numeric and multiline controls in both color modes.
161
+ - Preserve native switch and button appearance inside DataTable cells; remove the table's broad button style override.
162
+
163
+ ## 0.6.5 — 2026-10-29
164
+
165
+ - Popover 默认限制 360px 最大高度,并继续按可用视口收缩;长下拉菜单在内部滚动,可通过 maxHeight 调整。
166
+ - NumberInput 支持 fullWidth,适配双栏、单栏表单。
167
+ - DataTable 列支持 width 与 align,让路径、状态、开关及操作列按内容分配空间。
168
+ - TabList 保留横向滚动与键盘导航,避免下划线溢出造成多余滚动条。
169
+
170
+ ## 0.6.4 — 2026-10-29
171
+
172
+ - 极简主题的文字按钮使用前景色,修复深色模式下文字对比度不足;浅深色包消费检查覆盖文字按钮对比度。
173
+
174
+ ## 0.6.3 — 2026-10-29
175
+
176
+ - 横向 Divider 在居中网格中与文字保持垂直居中,同时保留普通块、纵向弹性布局及 inset 的宽度行为。
177
+ - 包消费验证覆盖两套主题、深浅色和桌面/手机宽度下的分割线几何对齐。
178
+
179
+ ## 0.6.2 — 2026-10-29
180
+
181
+ - Text 与 Heading 的多行省略明确恢复正常换行,避免继承表格的 nowrap 后长文本撑开列宽。
182
+ - 增加浅色、深色及窄屏下表格内两行截断的回归验证。
183
+
184
+ ## 0.6.1 — 2026-10-29
185
+
186
+ - 在 0.5.2 基础上保留可创建多选、分组导航及可选页面标题;新增嵌套侧栏、资源卡片、登录布局和页面标题组合。
187
+ - 复用现有 Card/Table 样式,提供布局基础组件、TableMarkup、CopyButton 与 BarChart;普通选择与可搜索选择分别沿用现有 Select/Combobox。
188
+ - Menu 支持自定义触发内容,NumberInput 支持单位,Button 支持文字链接;修复日历月份标签碰撞及表格圆角继承。
189
+ - 保留现有公开接口,并验证独立包消费、账户表单、弹窗、分组/嵌套导航及窄屏视觉基础。
190
+
191
+ ## 0.6.0 — 2026-10-29
192
+
193
+ - 发布了较早的组合组件候选;0.6.1 补齐 0.5.1 分组导航、多选创建及 0.5.2 CSS Modules 动画兼容修复。请使用 0.6.1。
194
+
195
+ ## 0.5.2 — 2026-10-29
196
+
197
+ - 将 Page、Dialog、Drawer、Button 的动画关键帧放回各自 CSS Module。
198
+
199
+ ## 0.5.1 — 2026-10-29
200
+
201
+ - MultiSelect 新增 `onCreate`,标签模式在同一触发框内展示已选项,支持搜索创建、连续多选、错误重试,以及关闭后忽略异步创建结果。
202
+ - Page 支持可选 ReactNode 标题,可为无标题的内容区复用共享入场动画。
203
+ - AppShell 新增 `navigationGroups`,桌面侧栏与移动导航共享分组和分隔布局;保留原有扁平导航 API。
204
+
205
+ ## 0.5.0 — 2026-10-29
206
+
207
+ - 新增 ActionSheet,复用 IconButton、Drawer 和 MenuItem;桌面使用紧凑底部面板,手机适配底部安全区域,支持禁用和危险操作。
208
+ - Drawer 新增 `onAfterClose`,在关闭动画与焦点恢复完成后执行后续操作,避免操作面板与新弹窗重叠。
209
+ - 横向 FormField 包含多行输入时,标签靠上对齐;单行控件和手机纵向布局保持原有排列。
210
+
211
+ ## 0.4.2 — 2026-10-29
212
+
213
+ - 图标、Emoji 和符号目录改用可被构建工具识别的异步 JSON 导入,修复 npm 包在 Vite 开发预打包后资源相对路径失效的问题;生产构建继续按需加载。
214
+ - Card 新增 `description` 与无正文模式,标题和正文使用一致的横向间距,避免只含概览和操作时产生空白正文。
215
+ - 独立 tarball 消费测试增加开发模式预打包下的三套完整目录加载验证。
216
+
217
+ ## 0.4.1 — 2026-10-29
218
+
219
+ - Dialog、Drawer 统一处理普通关闭和条件卸载后的焦点恢复,兼容 StrictMode、嵌套与替换弹窗,不抢夺其他弹窗的焦点。
220
+ - 新增 `returnFocus` 引用,可为异步打开的弹窗明确指定关闭后返回的控件。
221
+ - 修复 FormField 在卸载失焦时访问已清空引用的运行错误,避免 StrictMode 模拟清理触发额外失焦。
222
+ - Pagination 新增 `compact`、`size="small"` 和 `className`;紧凑排列、尺寸及窄屏换行由组件管理,宿主不再依赖内部 DOM 覆盖样式。
223
+ - 增加独立构建包的双主题、深浅色、1280/390/320px 焦点和分页交互验证。
224
+
225
+ ## 0.4.0 — 2026-10-29
226
+
227
+ - 新增 AccountItem、PasskeyItem、SessionItem,统一账户设备列表的图标、元数据、操作按钮和移动布局;业务与日期格式由宿主负责。
228
+ - Form、FormGroup、FormField 支持 stacked / inline 两种排版,继承布局并可逐字段覆盖;窄屏自动改为上下排列。
229
+ - 修复 FormField 空标签占位造成的控件垂直错位,RadioGroup 在 FormField 中不再重复显示标签。
230
+ - NumberInput 新增 nullable 模式,清空返回 null,保留小数、范围、键盘与只读行为。
231
+ - Dialog 在关闭动画期间保留最终内容,避免宿主清空选择时先显示空弹窗。
232
+ - 两端共享示例新增设置表单与账户设备项目。
233
+
234
+ ## 0.3.0 — 2026-10-28
235
+
236
+ - AppShell 新增 brandName、brandIcon、brand、homePath、basePath 和 showHeader;支持无顶部栏的移动导航,可省略设置入口及侧栏折叠回调。普通点击向宿主传递内部路径,链接和新标签页使用完整基础路径。
237
+ - 新增 createToaster 独立通知控制器,可由 React 组件外代码调用;ToastProvider 可接收 controller,保留原 useToast API 和单条通知替换行为。
238
+ - IconPicker 支持 valuePrefix、自定义图标目录与 React 图标内容,保留存储 ID;统一字段、只读、禁用和表单值行为。
239
+ - DatePicker 支持 timeZone、clearable、placeholder;指定时区影响今天/此刻及日历当天标记,输入的日历时间保持原值,不隐式转换为 UTC。
240
+ - React/React DOM peer 范围调整为 ^19.2.0,独立消费验证覆盖 React 19.3.0 + TypeScript 5.9.3 和现有 React 19.3.1。
241
+ - 两端示例增加前缀/自定义图标和指定时区日期示例;未迁移或修改 Moment 业务代码。
242
+ - 修复极简深色导航选中文字过暗的问题。
243
+
244
+ ## 0.2.0 — 2026-10-28
245
+
246
+ - 新增 MessageDialog、ConfirmDialog、FormDialog 与统一 LoadingState,复用表单校验、异步提交、错误反馈和焦点管理。
247
+ - TreeSelect 新增 category 图标、数量、层级连线样式;保留 tree 风格,支持父子联动多选。
248
+ - 新增 TreeTable,复用 Table 列定义,支持受控展开、多级连线和键盘导航;列支持 align、width。
249
+ - Combobox 新增 mode="input" 触发框补全;保留弹层搜索,支持异步加载、取消、创建与失败重试。
250
+ - MultiSelect 新增 display="tags",与 TagInput 共用标签实现;保留摘要模式及选择限制。
251
+ - 蓝白主题采用 Moment 对应色板、输入 hover 混色和深色参数;修复默认色板迁移与选择器分类栏底色。
252
+ - 统一菜单项 1px 间距,修复快捷键右对齐、宿主 kbd 边框干扰、关闭的 Popover 被布局样式显示等问题。
253
+ - 树选择器底部清空/完成操作使用独立的 8px 按钮间距。
254
+ - 共享应用外壳与示例布局统一,修复图标尺寸、链接文字、动效示例、表单间距、弹层和移动布局。
255
+ - 发布构建使用干净输出并检查包内引用;增加独立 tarball 消费项目的类型、生产与交互验证。
256
+
257
+ ## 0.1.0 — 2026-10-28
258
+
259
+ - 首次发布 React 组件、应用外壳、极简/蓝白主题与图标字符资源。
package/README.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  React 组件、应用外壳和两套可互换的主题。无 Electron、React Router、账户 API 或持久化存储依赖。
4
4
 
5
+ ## 菜单滚动边界(0.6.37)
6
+
7
+ ContextMenu 打开期间会接管滚轮:长菜单仍可在内部滚动,短菜单及边界滚动不会传递到正文或嵌套工作区;关闭后恢复。
8
+
5
9
  ## 底部浮动操作栏(0.6.36)
6
10
 
7
11
  `FloatingActionBar open={selected.length > 0} label="已选记录" container={contentRef}` 提供非模态的底部操作区:复用弹层边框、阴影和进退场动效,关闭动画期间保持挂载且不可交互;不会抢走复选框焦点。`container` 将操作栏对齐到所属内容区域,窄屏自动限制宽度;弹窗内使用所属弹层的 portal。`bottom` 默认 24,保留安全区域。按钮支持左右方向键、Home/End;计数、业务操作及清除选择由消费方组合。
@@ -105,7 +105,10 @@ function ContextMenu({
105
105
  document.addEventListener("pointerdown", pointer, true);
106
106
  document.addEventListener("pointermove", track, true);
107
107
  document.addEventListener("keydown", key2, true);
108
- document.addEventListener("wheel", wheel, { capture: true, passive: false });
108
+ document.addEventListener("wheel", wheel, {
109
+ capture: true,
110
+ passive: false
111
+ });
109
112
  window.addEventListener("blur", blur);
110
113
  return () => {
111
114
  document.removeEventListener("pointerdown", pointer, true);
@@ -1,43 +1,43 @@
1
- .host {
2
- min-width: 0;
3
- }
4
- .root {
5
- position: fixed;
6
- inset: 0;
7
- margin: 0;
8
- width: 100%;
9
- height: 100%;
10
- padding: 0;
11
- border: 0;
12
- background: transparent;
13
- color: var(--fg);
14
- overflow: visible;
15
- pointer-events: none;
16
- }
17
- .root::backdrop {
18
- background: transparent;
19
- pointer-events: none;
20
- }
21
- .panel {
22
- position: fixed;
23
- pointer-events: auto;
24
- width: 236px;
25
- max-width: calc(100vw - 16px);
26
- max-height: calc(100vh - 16px);
27
- overflow: auto;
28
- overscroll-behavior: contain;
29
- padding: 5px;
30
- background: var(--surface);
31
- border: 1px solid var(--line);
32
- border-radius: var(--radius);
33
- box-shadow: var(--shadow);
34
- }
35
- .error {
36
- padding: 8px;
37
- color: var(--danger);
38
- font-size: 12px;
39
- }
40
-
41
- .panel[inert] {
42
- pointer-events: none;
43
- }
1
+ .host {
2
+ min-width: 0;
3
+ }
4
+ .root {
5
+ position: fixed;
6
+ inset: 0;
7
+ margin: 0;
8
+ width: 100%;
9
+ height: 100%;
10
+ padding: 0;
11
+ border: 0;
12
+ background: transparent;
13
+ color: var(--fg);
14
+ overflow: visible;
15
+ pointer-events: none;
16
+ }
17
+ .root::backdrop {
18
+ background: transparent;
19
+ pointer-events: none;
20
+ }
21
+ .panel {
22
+ position: fixed;
23
+ pointer-events: auto;
24
+ width: 236px;
25
+ max-width: calc(100vw - 16px);
26
+ max-height: calc(100vh - 16px);
27
+ overflow: auto;
28
+ overscroll-behavior: contain;
29
+ padding: 5px;
30
+ background: var(--surface);
31
+ border: 1px solid var(--line);
32
+ border-radius: var(--radius);
33
+ box-shadow: var(--shadow);
34
+ }
35
+ .error {
36
+ padding: 8px;
37
+ color: var(--danger);
38
+ font-size: 12px;
39
+ }
40
+
41
+ .panel[inert] {
42
+ pointer-events: none;
43
+ }
@@ -1,5 +1,6 @@
1
+ import { type ReactNode } from "react";
1
2
  import { type ContributionDay } from "./contribution";
2
- export declare function ContributionCalendar({ data, year, startDate, endDate, weekStartsOn, value, onChange, label, unit, locale, color, emptyMode, allowFuture, today, thresholds, }: {
3
+ export declare function ContributionCalendar({ data, year, startDate, endDate, weekStartsOn, value, onChange, label, unit, locale, color, emptyMode, allowFuture, today, thresholds, footer, source, fill, }: {
3
4
  data: ContributionDay[];
4
5
  year?: number;
5
6
  startDate?: string;
@@ -15,4 +16,7 @@ export declare function ContributionCalendar({ data, year, startDate, endDate, w
15
16
  allowFuture?: boolean;
16
17
  today?: string;
17
18
  thresholds?: [number, number, number, number];
19
+ footer?: ReactNode;
20
+ source?: ReactNode;
21
+ fill?: boolean;
18
22
  }): import("react").JSX.Element;
@@ -27,7 +27,10 @@ function ContributionCalendar({
27
27
  emptyMode = "zero",
28
28
  allowFuture = false,
29
29
  today,
30
- thresholds
30
+ thresholds,
31
+ footer,
32
+ source,
33
+ fill = false
31
34
  }) {
32
35
  const current = /* @__PURE__ */ new Date(), todayKey = today || [
33
36
  current.getFullYear(),
@@ -109,6 +112,7 @@ function ContributionCalendar({
109
112
  className: s.calendar,
110
113
  style: {
111
114
  "--calendar-color": color,
115
+ "--calendar-cell-max": fill ? "24px" : "13px",
112
116
  "--calendar-weeks": model.weeks
113
117
  },
114
118
  children: [
@@ -183,7 +187,7 @@ function ContributionCalendar({
183
187
  )
184
188
  ] }),
185
189
  /* @__PURE__ */ jsxs("footer", { className: s.footer, children: [
186
- value && /* @__PURE__ */ jsx("span", { children: value }),
190
+ source ?? (value && /* @__PURE__ */ jsx("span", { children: value })),
187
191
  /* @__PURE__ */ jsxs("div", { className: s.legend, "aria-label": "\u6D3B\u52A8\u6B21\u6570\u7531\u5C11\u5230\u591A", children: [
188
192
  /* @__PURE__ */ jsx("span", { children: "\u5C11" }),
189
193
  [0, 1, 2, 3, 4].map((level) => /* @__PURE__ */ jsx(
@@ -197,7 +201,8 @@ function ContributionCalendar({
197
201
  )),
198
202
  /* @__PURE__ */ jsx("span", { children: "\u591A" })
199
203
  ] })
200
- ] })
204
+ ] }),
205
+ footer && /* @__PURE__ */ jsx("div", { className: s.extraFooter, children: footer })
201
206
  ]
202
207
  }
203
208
  );
@@ -1,121 +1,127 @@
1
- .calendar {
2
- container-type: inline-size;
3
- --calendar-cell: 13px;
4
- --calendar-gap: 3px;
5
- min-width: 0;
6
- border: 1px solid var(--line);
7
- border-radius: var(--radius);
8
- padding: 20px;
9
- background: var(--surface);
10
- }
11
- .header,
12
- .footer {
13
- display: flex;
14
- align-items: center;
15
- justify-content: space-between;
16
- gap: 14px;
17
- }
18
- .header {
19
- margin-bottom: 16px;
20
- }
21
- .header > span,
22
- .footer {
23
- font-size: 11px;
24
- color: var(--muted);
25
- }
26
- .scroll {
27
- --calendar-cell: clamp(
28
- 9px,
29
- calc((100cqw - 32px) / var(--calendar-weeks) - var(--calendar-gap)),
30
- 13px
31
- );
32
- overflow: auto;
33
- padding: 3px 2px 6px;
34
- }
35
- .months,
36
- .row {
37
- display: grid;
38
- column-gap: var(--calendar-gap);
39
- width: max-content;
40
- align-items: center;
41
- }
42
- .months {
43
- height: 22px;
44
- font-size: 10px;
45
- color: var(--muted);
46
- }
47
- .months > span {
48
- grid-row: 1;
49
- white-space: nowrap;
50
- }
51
- .row {
52
- height: calc(var(--calendar-cell) + var(--calendar-gap));
53
- }
54
- .weekday {
55
- font-size: 10px;
56
- color: var(--muted);
57
- }
58
- .day,
59
- .pad {
60
- width: var(--calendar-cell);
61
- height: var(--calendar-cell);
62
- }
63
- .day {
64
- display: block;
65
- padding: 0;
66
- border: 1px solid color-mix(in srgb, var(--fg) 6%, transparent);
67
- border-radius: 3px;
68
- background: color-mix(in srgb, var(--fg) 8%, var(--surface));
69
- transition:
70
- transform var(--motion-press),
71
- box-shadow var(--motion-hover);
72
- }
73
- .day[data-level="1"] {
74
- background: color-mix(in srgb, var(--calendar-color) 25%, var(--surface));
75
- }
76
- .day[data-level="2"] {
77
- background: color-mix(in srgb, var(--calendar-color) 45%, var(--surface));
78
- }
79
- .day[data-level="3"] {
80
- background: color-mix(in srgb, var(--calendar-color) 70%, var(--surface));
81
- }
82
- .day[data-level="4"] {
83
- background: var(--calendar-color);
84
- }
85
- .day[data-future="true"] {
86
- opacity: 0.3;
87
- cursor: default;
88
- }
89
- .day[data-missing="true"] {
90
- background: repeating-linear-gradient(
91
- 135deg,
92
- transparent,
93
- transparent 2px,
94
- color-mix(in srgb, var(--fg) 12%, var(--surface)) 2px,
95
- color-mix(in srgb, var(--fg) 12%, var(--surface)) 3px
96
- );
97
- }
98
- .day:hover:not([data-future="true"]) {
99
- transform: scale(1.12);
100
- }
101
- .day:focus-visible,
102
- .day[aria-selected="true"] {
103
- outline: 2px solid var(--accent-ink, var(--accent));
104
- outline-offset: 1px;
105
- }
106
- .footer {
107
- margin-top: 12px;
108
- min-height: 18px;
109
- }
110
- .legend {
111
- display: flex;
112
- align-items: center;
113
- gap: 4px;
114
- margin-left: auto;
115
- }
116
- .legend > span {
117
- margin: 0 3px;
118
- }
119
- .legend .day {
120
- cursor: default;
121
- }
1
+ .calendar {
2
+ container-type: inline-size;
3
+ --calendar-cell: 13px;
4
+ --calendar-gap: 3px;
5
+ min-width: 0;
6
+ border: 1px solid var(--line);
7
+ border-radius: var(--radius);
8
+ padding: 20px;
9
+ background: var(--surface);
10
+ }
11
+ .header,
12
+ .footer {
13
+ display: flex;
14
+ align-items: center;
15
+ justify-content: space-between;
16
+ gap: 14px;
17
+ }
18
+ .header {
19
+ margin-bottom: 16px;
20
+ }
21
+ .header > span,
22
+ .footer {
23
+ font-size: 11px;
24
+ color: var(--muted);
25
+ }
26
+ .scroll {
27
+ --calendar-cell: clamp(
28
+ 9px,
29
+ calc((100cqw - 32px) / var(--calendar-weeks) - var(--calendar-gap)),
30
+ var(--calendar-cell-max, 13px)
31
+ );
32
+ overflow: auto;
33
+ padding: 3px 2px 6px;
34
+ }
35
+ .months,
36
+ .row {
37
+ display: grid;
38
+ column-gap: var(--calendar-gap);
39
+ width: max-content;
40
+ align-items: center;
41
+ }
42
+ .months {
43
+ height: 22px;
44
+ font-size: 10px;
45
+ color: var(--muted);
46
+ }
47
+ .months > span {
48
+ grid-row: 1;
49
+ white-space: nowrap;
50
+ }
51
+ .row {
52
+ height: calc(var(--calendar-cell) + var(--calendar-gap));
53
+ }
54
+ .weekday {
55
+ font-size: 10px;
56
+ color: var(--muted);
57
+ }
58
+ .day,
59
+ .pad {
60
+ width: var(--calendar-cell);
61
+ height: var(--calendar-cell);
62
+ }
63
+ .day {
64
+ display: block;
65
+ padding: 0;
66
+ border: 1px solid color-mix(in srgb, var(--fg) 6%, transparent);
67
+ border-radius: 3px;
68
+ background: color-mix(in srgb, var(--fg) 8%, var(--surface));
69
+ transition:
70
+ transform var(--motion-press),
71
+ box-shadow var(--motion-hover);
72
+ }
73
+ .day[data-level="1"] {
74
+ background: color-mix(in srgb, var(--calendar-color) 25%, var(--surface));
75
+ }
76
+ .day[data-level="2"] {
77
+ background: color-mix(in srgb, var(--calendar-color) 45%, var(--surface));
78
+ }
79
+ .day[data-level="3"] {
80
+ background: color-mix(in srgb, var(--calendar-color) 70%, var(--surface));
81
+ }
82
+ .day[data-level="4"] {
83
+ background: var(--calendar-color);
84
+ }
85
+ .day[data-future="true"] {
86
+ opacity: 0.3;
87
+ cursor: default;
88
+ }
89
+ .day[data-missing="true"] {
90
+ background: repeating-linear-gradient(
91
+ 135deg,
92
+ transparent,
93
+ transparent 2px,
94
+ color-mix(in srgb, var(--fg) 12%, var(--surface)) 2px,
95
+ color-mix(in srgb, var(--fg) 12%, var(--surface)) 3px
96
+ );
97
+ }
98
+ .day:hover:not([data-future="true"]) {
99
+ transform: scale(1.12);
100
+ }
101
+ .day:focus-visible,
102
+ .day[aria-selected="true"] {
103
+ outline: 2px solid var(--accent-ink, var(--accent));
104
+ outline-offset: 1px;
105
+ }
106
+ .footer {
107
+ margin-top: 12px;
108
+ min-height: 18px;
109
+ }
110
+ .legend {
111
+ display: flex;
112
+ align-items: center;
113
+ gap: 4px;
114
+ margin-left: auto;
115
+ }
116
+ .legend > span {
117
+ margin: 0 3px;
118
+ }
119
+ .legend .day {
120
+ cursor: default;
121
+ }
122
+
123
+ .extraFooter {
124
+ margin-top: 16px;
125
+ padding-top: 16px;
126
+ border-top: 1px solid var(--line);
127
+ }
@@ -1,85 +1,92 @@
1
- .iconButton {
2
- position: relative;
3
- display: grid;
4
- place-items: center;
5
- width: 32px;
6
- height: 32px;
7
- padding: 0;
8
- border: 0;
9
- background: transparent;
10
- border-radius: calc(var(--radius) - 3px);
11
- color: var(--muted);
12
- transition:
13
- background var(--motion-hover),
14
- color var(--motion-hover);
15
- }
16
- .iconButton:hover {
17
- color: var(--fg);
18
- background: var(--hover);
19
- }
20
- .icon {
21
- display: contents;
22
- }
23
- .iconButton[data-size="small"] {
24
- width: 30px;
25
- height: 30px;
26
- min-width: 30px;
27
- }
28
- .iconButton[data-has-text] {
29
- display: inline-flex;
30
- align-items: center;
31
- justify-content: center;
32
- width: auto;
33
- gap: 6px;
34
- padding-inline: 9px;
35
- font-size: 13px;
36
- line-height: 1.4;
37
- }
38
- .iconButton[data-has-text] .icon {
39
- display: inline-flex;
40
- align-items: center;
41
- justify-content: center;
42
- flex-shrink: 0;
43
- gap: 3px;
44
- }
45
- .text {
46
- white-space: nowrap;
47
- font-variant-numeric: tabular-nums;
48
- }
49
- .iconButton[data-variant="primary"] {
50
- background: var(--accent-fill, var(--accent));
51
- color: var(--on-accent-fill, var(--on-accent));
52
- }
53
- .iconButton[data-variant="primary"]:hover:not(:disabled) {
54
- background: var(--accent-fill-hover, var(--accent));
55
- }
56
- .iconButton[data-variant="secondary"] {
57
- border: 1px solid var(--border);
58
- background: var(--surface);
59
- }
60
- .iconButton[data-variant="danger"] {
61
- color: var(--danger);
62
- background: var(--danger-soft);
63
- }
64
- .iconButton[data-disclosure] {
65
- width: auto;
66
- padding-inline: 7px;
67
- }
68
- .iconButton[data-disclosure] .icon {
69
- display: flex;
70
- align-items: center;
71
- gap: 3px;
72
- }
73
- .iconButton[data-disclosure][aria-expanded="true"] {
74
- color: var(--accent-ink, var(--fg));
75
- background: var(--hover);
76
- }
77
-
78
- /* Toggle tools use the theme selection surface, without a second outlined button. */
79
- .iconButton[data-variant="ghost"][aria-pressed="true"] {
80
- background: var(--selected);
81
- color: var(--fg);
82
- }
83
- .iconButton[data-variant="ghost"][aria-pressed="true"]:hover:not(:disabled) {
84
- background: color-mix(in srgb, var(--selected) 70%, var(--hover));
85
- }
1
+ .iconButton {
2
+ position: relative;
3
+ display: grid;
4
+ place-items: center;
5
+ width: 32px;
6
+ height: 32px;
7
+ padding: 0;
8
+ border: 0;
9
+ background: transparent;
10
+ border-radius: calc(var(--radius) - 3px);
11
+ color: var(--muted);
12
+ transition:
13
+ background var(--motion-hover),
14
+ color var(--motion-hover),
15
+ opacity var(--motion-hover);
16
+ }
17
+ .iconButton:hover:not(:disabled):not([aria-disabled="true"]) {
18
+ color: var(--fg);
19
+ background: var(--hover);
20
+ }
21
+ .icon {
22
+ display: contents;
23
+ }
24
+ .iconButton[data-size="small"] {
25
+ width: 30px;
26
+ height: 30px;
27
+ min-width: 30px;
28
+ }
29
+ .iconButton[data-has-text] {
30
+ display: inline-flex;
31
+ align-items: center;
32
+ justify-content: center;
33
+ width: auto;
34
+ gap: 6px;
35
+ padding-inline: 9px;
36
+ font-size: 13px;
37
+ line-height: 1.4;
38
+ }
39
+ .iconButton[data-has-text] .icon {
40
+ display: inline-flex;
41
+ align-items: center;
42
+ justify-content: center;
43
+ flex-shrink: 0;
44
+ gap: 3px;
45
+ }
46
+ .text {
47
+ white-space: nowrap;
48
+ font-variant-numeric: tabular-nums;
49
+ }
50
+ .iconButton[data-variant="primary"] {
51
+ background: var(--accent-fill, var(--accent));
52
+ color: var(--on-accent-fill, var(--on-accent));
53
+ }
54
+ .iconButton[data-variant="primary"]:hover:not(:disabled) {
55
+ background: var(--accent-fill-hover, var(--accent));
56
+ }
57
+ .iconButton[data-variant="secondary"] {
58
+ border: 1px solid var(--border);
59
+ background: var(--surface);
60
+ }
61
+ .iconButton[data-variant="danger"] {
62
+ color: var(--danger);
63
+ background: var(--danger-soft);
64
+ }
65
+ .iconButton[data-disclosure] {
66
+ width: auto;
67
+ padding-inline: 7px;
68
+ }
69
+ .iconButton[data-disclosure] .icon {
70
+ display: flex;
71
+ align-items: center;
72
+ gap: 3px;
73
+ }
74
+ .iconButton[data-disclosure][aria-expanded="true"] {
75
+ color: var(--accent-ink, var(--fg));
76
+ background: var(--hover);
77
+ }
78
+
79
+ /* Toggle tools use the theme selection surface, without a second outlined button. */
80
+ .iconButton[data-variant="ghost"][aria-pressed="true"] {
81
+ background: var(--selected);
82
+ color: var(--fg);
83
+ }
84
+ .iconButton[data-variant="ghost"][aria-pressed="true"]:hover:not(:disabled) {
85
+ background: color-mix(in srgb, var(--selected) 70%, var(--hover));
86
+ }
87
+
88
+ .iconButton:disabled,
89
+ .iconButton[aria-disabled="true"] {
90
+ opacity: 0.35;
91
+ cursor: not-allowed;
92
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robert-stackflow/oneui",
3
- "version": "0.6.37",
3
+ "version": "0.6.38",
4
4
  "description": "OneUI React components, application shell and portable visual themes",
5
5
  "type": "module",
6
6
  "sideEffects": [