@snowui-design-system/components 0.3.0-alpha.5 → 0.3.0-alpha.7
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/AGENTS.md +8 -0
- package/README.md +19 -3
- package/THIRD_PARTY_NOTICES.md +27 -0
- package/component-catalog.json +26 -0
- package/dist/client/blocks/Sidebar.js +108 -95
- package/dist/client/blocks/SidebarItem.js +26 -12
- package/dist/client/blocks/SidebarSection.js +3 -1
- package/dist/client/components/BarChart.js +9 -2
- package/dist/client/components/Breadcrumb.js +10 -6
- package/dist/client/components/ChartGroup.js +23 -10
- package/dist/client/components/CircularChart.js +8 -1
- package/dist/client/components/Frame.js +9 -7
- package/dist/client/components/GaugeChart.js +8 -1
- package/dist/client/components/Image.d.ts +2 -0
- package/dist/client/components/Image.js +14 -2
- package/dist/client/components/Input.js +2 -2
- package/dist/client/components/LineChart.js +9 -2
- package/dist/client/components/Listbox.js +43 -15
- package/dist/client/components/MenuItem.js +7 -1
- package/dist/client/components/OTPInput.d.ts +32 -0
- package/dist/client/components/OTPInput.js +556 -0
- package/dist/client/components/Pagination.js +9 -8
- package/dist/client/components/ScrollArea.js +11 -5
- package/dist/client/components/SearchBox.js +12 -3
- package/dist/client/components/Select.js +18 -6
- package/dist/client/components/SidePanel.js +4 -3
- package/dist/client/components/Slider.js +7 -3
- package/dist/client/components/Spinner.js +9 -2
- package/dist/client/components/Tag.js +8 -1
- package/dist/client/i18n/messages.d.ts +1 -1
- package/dist/client/i18n/messages.js +54 -0
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.js +2 -0
- package/dist/client/keys.d.ts +1 -0
- package/dist/client/keys.js +1 -0
- package/dist/client/lib/media-loading.d.ts +7 -0
- package/dist/client/lib/media-loading.js +12 -0
- package/dist/client/logic/frame-dom-runtime.d.ts +2 -1
- package/dist/client/logic/frame-dom-runtime.js +1 -1
- package/dist/client/styles/components.css +6 -0
- package/dist/client/styles/layout.css +12 -2
- package/dist/server/blocks/Sidebar.js +5 -5
- package/dist/server/blocks/SidebarItem.js +4 -2
- package/dist/server/blocks/SidebarSection.js +3 -1
- package/dist/server/components/BarChart.js +5 -2
- package/dist/server/components/Breadcrumb.js +5 -2
- package/dist/server/components/ChartGroup.js +6 -3
- package/dist/server/components/CircularChart.js +4 -1
- package/dist/server/components/Frame.js +9 -7
- package/dist/server/components/GaugeChart.js +4 -1
- package/dist/server/components/Image.d.ts +2 -0
- package/dist/server/components/Image.js +11 -4
- package/dist/server/components/Input.js +2 -2
- package/dist/server/components/LineChart.js +5 -2
- package/dist/server/components/Listbox.js +32 -14
- package/dist/server/components/MenuItem.js +4 -1
- package/dist/server/components/OTPInput.d.ts +32 -0
- package/dist/server/components/OTPInput.js +401 -0
- package/dist/server/components/Pagination.js +2 -2
- package/dist/server/components/ScrollArea.js +5 -2
- package/dist/server/components/SearchBox.js +9 -3
- package/dist/server/components/Select.js +18 -6
- package/dist/server/components/SidePanel.js +4 -3
- package/dist/server/components/Slider.js +7 -3
- package/dist/server/components/Spinner.js +4 -2
- package/dist/server/components/Tag.js +4 -1
- package/dist/server/i18n/messages.d.ts +1 -1
- package/dist/server/i18n/messages.js +54 -0
- package/dist/server/index.d.ts +3 -0
- package/dist/server/index.js +2 -0
- package/dist/server/keys.d.ts +1 -0
- package/dist/server/keys.js +1 -0
- package/dist/server/lib/media-loading.d.ts +7 -0
- package/dist/server/lib/media-loading.js +12 -0
- package/dist/server/logic/frame-dom-runtime.d.ts +2 -1
- package/dist/server/logic/frame-dom-runtime.js +1 -1
- package/dist/server/styles/components.css +6 -0
- package/dist/server/styles/layout.css +12 -2
- package/llms.txt +1 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** SnowUI 组件内置 UI 文案 catalog。文档: ../../../specs/maintainers/LocalizationSpec.md */
|
|
2
2
|
export declare const DEFAULT_LOCALE = "zh-CN";
|
|
3
|
-
export type SnowUIMessageKey = "copyButton.copy" | "copyButton.copied" | "codeBlock.copyCode" | "codeBlock.fullscreen" | "codeBlock.exitFullscreen" | "codeBlock.resize" | "codeBlock.fullscreenDialog" | "expandButton.expand" | "expandButton.collapse" | "sidebar.resize" | "pagination.pageSize" | "pagination.previous" | "pagination.next" | "pagination.page" | "input.clear" | "input.increment" | "input.decrement" | "input.openTime" | "input.openDate" | "input.year" | "input.month" | "input.day" | "input.week" | "input.hour" | "input.minute" | "input.second" | "input.yearPlaceholder" | "input.monthPlaceholder" | "input.dayPlaceholder" | "input.weekPlaceholder" | "imageViewer.previous" | "imageViewer.next" | "imageViewer.close" | "toast.close" | "table.scrollRegion" | "table.scrollRegionNamed" | "tableHead.selectAll" | "tableHead.resizeColumn" | "tableHead.resizeColumnGeneric" | "tableCell.selectRow" | "text.expand" | "textarea.resize" | "indicator.resizeWidth" | "indicator.resizeHeight" | "indicator.resizeBoth" | "colorSchemeButton.toLight" | "colorSchemeButton.toDark" | "styleButton.toSnowUI" | "styleButton.toApple" | "sidePanel.placement.toInline" | "sidePanel.placement.toFloating" | "sidePanel.previous" | "sidePanel.next" | "sidePanel.copy" | "sidePanel.delete" | "sidePanel.cancel" | "sidePanel.save" | "sidePanel.close" | "sidePanel.resize" | "tableToolbar.name" | "tableToolbar.search" | "tableToolbar.sort" | "tableToolbar.filter" | "tableToolbar.clear" | "tableToolbar.copy" | "tableToolbar.delete" | "tableToolbar.selected" | "tableToolbar.deleting" | "tableToolbar.defaultSort" | "tableToolbar.ascending" | "tableToolbar.descending" | "tableToolbar.defaultFilter" | "overflowActions.more" | "dialog.close";
|
|
3
|
+
export type SnowUIMessageKey = "copyButton.copy" | "copyButton.copied" | "codeBlock.copyCode" | "codeBlock.fullscreen" | "codeBlock.exitFullscreen" | "codeBlock.resize" | "codeBlock.fullscreenDialog" | "expandButton.expand" | "expandButton.collapse" | "sidebarSection.expand" | "sidebarSection.collapse" | "breadcrumb.navigation" | "pagination.navigation" | "spinner.loading" | "scrollArea.content" | "barChart.name" | "barChart.cells" | "lineChart.name" | "lineChart.cells" | "circularChart.name" | "gaugeChart.name" | "chartGroup.name" | "chartGroup.cells" | "chartGroup.cell" | "searchBox.placeholder" | "searchBox.clear" | "sidePanel.title" | "slider.title" | "menuItem.deleteCustom" | "listbox.search" | "tag.close" | "sidebar.navigation" | "sidebar.expand" | "sidebar.collapse" | "sidebarItem.updated" | "sidebar.resize" | "pagination.pageSize" | "pagination.previous" | "pagination.next" | "pagination.page" | "otpInput.invalidCode" | "input.clear" | "input.increment" | "input.decrement" | "input.openTime" | "input.openDate" | "input.year" | "input.month" | "input.day" | "input.week" | "input.hour" | "input.minute" | "input.second" | "input.yearPlaceholder" | "input.monthPlaceholder" | "input.dayPlaceholder" | "input.weekPlaceholder" | "imageViewer.previous" | "imageViewer.next" | "imageViewer.close" | "toast.close" | "table.scrollRegion" | "table.scrollRegionNamed" | "tableHead.selectAll" | "tableHead.resizeColumn" | "tableHead.resizeColumnGeneric" | "tableCell.selectRow" | "text.expand" | "textarea.resize" | "indicator.resizeWidth" | "indicator.resizeHeight" | "indicator.resizeBoth" | "colorSchemeButton.toLight" | "colorSchemeButton.toDark" | "styleButton.toSnowUI" | "styleButton.toApple" | "sidePanel.placement.toInline" | "sidePanel.placement.toFloating" | "sidePanel.previous" | "sidePanel.next" | "sidePanel.copy" | "sidePanel.delete" | "sidePanel.cancel" | "sidePanel.save" | "sidePanel.close" | "sidePanel.resize" | "tableToolbar.name" | "tableToolbar.search" | "tableToolbar.sort" | "tableToolbar.filter" | "tableToolbar.clear" | "tableToolbar.copy" | "tableToolbar.delete" | "tableToolbar.selected" | "tableToolbar.deleting" | "tableToolbar.defaultSort" | "tableToolbar.ascending" | "tableToolbar.descending" | "tableToolbar.defaultFilter" | "overflowActions.more" | "dialog.close";
|
|
4
4
|
export type SnowUIMessageValues = Record<string, string | number>;
|
|
5
5
|
export type SnowUIMessageOverrides = Partial<Record<SnowUIMessageKey, string>>;
|
|
6
6
|
export declare const SNOWUI_MESSAGES: Record<string, Record<SnowUIMessageKey, string>>;
|
|
@@ -13,11 +13,38 @@ export const SNOWUI_MESSAGES = {
|
|
|
13
13
|
"codeBlock.fullscreenDialog": "全屏代码查看",
|
|
14
14
|
"expandButton.expand": "展开",
|
|
15
15
|
"expandButton.collapse": "收起",
|
|
16
|
+
"sidebarSection.expand": "展开{{title}}",
|
|
17
|
+
"sidebarSection.collapse": "收起{{title}}",
|
|
18
|
+
"breadcrumb.navigation": "面包屑导航",
|
|
19
|
+
"pagination.navigation": "分页导航",
|
|
20
|
+
"spinner.loading": "加载中",
|
|
21
|
+
"scrollArea.content": "可滚动内容",
|
|
22
|
+
"barChart.name": "柱状图",
|
|
23
|
+
"barChart.cells": "柱状图数据单元格",
|
|
24
|
+
"lineChart.name": "折线图",
|
|
25
|
+
"lineChart.cells": "折线图数据单元格",
|
|
26
|
+
"circularChart.name": "圆形图表",
|
|
27
|
+
"gaugeChart.name": "仪表图",
|
|
28
|
+
"chartGroup.name": "组合图表",
|
|
29
|
+
"chartGroup.cells": "组合图表数据单元格",
|
|
30
|
+
"chartGroup.cell": "单元格 {{index}}",
|
|
31
|
+
"searchBox.placeholder": "搜索",
|
|
32
|
+
"searchBox.clear": "清除搜索内容",
|
|
33
|
+
"sidePanel.title": "详情",
|
|
34
|
+
"slider.title": "文本",
|
|
35
|
+
"menuItem.deleteCustom": "删除自定义选项",
|
|
36
|
+
"listbox.search": "搜索",
|
|
37
|
+
"tag.close": "关闭标签",
|
|
38
|
+
"sidebar.navigation": "主导航",
|
|
39
|
+
"sidebar.expand": "展开侧边栏",
|
|
40
|
+
"sidebar.collapse": "收起侧边栏",
|
|
41
|
+
"sidebarItem.updated": "已更新",
|
|
16
42
|
"sidebar.resize": "调整侧边栏宽度",
|
|
17
43
|
"pagination.pageSize": "每页条数",
|
|
18
44
|
"pagination.previous": "上一页",
|
|
19
45
|
"pagination.next": "下一页",
|
|
20
46
|
"pagination.page": "第 {{page}} 页",
|
|
47
|
+
"otpInput.invalidCode": "请输入 {{length}} 位数字验证码",
|
|
21
48
|
"input.clear": "清除输入",
|
|
22
49
|
"input.increment": "增加数值",
|
|
23
50
|
"input.decrement": "减少数值",
|
|
@@ -89,11 +116,38 @@ export const SNOWUI_MESSAGES = {
|
|
|
89
116
|
"codeBlock.fullscreenDialog": "Fullscreen code view",
|
|
90
117
|
"expandButton.expand": "Expand",
|
|
91
118
|
"expandButton.collapse": "Collapse",
|
|
119
|
+
"sidebarSection.expand": "Expand {{title}}",
|
|
120
|
+
"sidebarSection.collapse": "Collapse {{title}}",
|
|
121
|
+
"breadcrumb.navigation": "Breadcrumb",
|
|
122
|
+
"pagination.navigation": "Pagination",
|
|
123
|
+
"spinner.loading": "Loading",
|
|
124
|
+
"scrollArea.content": "Scrollable content",
|
|
125
|
+
"barChart.name": "Bar chart",
|
|
126
|
+
"barChart.cells": "Bar chart data cells",
|
|
127
|
+
"lineChart.name": "Line chart",
|
|
128
|
+
"lineChart.cells": "Line chart data cells",
|
|
129
|
+
"circularChart.name": "Circular chart",
|
|
130
|
+
"gaugeChart.name": "Gauge chart",
|
|
131
|
+
"chartGroup.name": "Chart group",
|
|
132
|
+
"chartGroup.cells": "Chart group data cells",
|
|
133
|
+
"chartGroup.cell": "Cell {{index}}",
|
|
134
|
+
"searchBox.placeholder": "Search",
|
|
135
|
+
"searchBox.clear": "Clear search",
|
|
136
|
+
"sidePanel.title": "Details",
|
|
137
|
+
"slider.title": "Text",
|
|
138
|
+
"menuItem.deleteCustom": "Delete custom option",
|
|
139
|
+
"listbox.search": "Search",
|
|
140
|
+
"tag.close": "Close tag",
|
|
141
|
+
"sidebar.navigation": "Primary navigation",
|
|
142
|
+
"sidebar.expand": "Expand sidebar",
|
|
143
|
+
"sidebar.collapse": "Collapse sidebar",
|
|
144
|
+
"sidebarItem.updated": "Updated",
|
|
92
145
|
"sidebar.resize": "Resize sidebar width",
|
|
93
146
|
"pagination.pageSize": "Items per page",
|
|
94
147
|
"pagination.previous": "Previous page",
|
|
95
148
|
"pagination.next": "Next page",
|
|
96
149
|
"pagination.page": "Page {{page}}",
|
|
150
|
+
"otpInput.invalidCode": "Enter a {{length}}-digit verification code",
|
|
97
151
|
"input.clear": "Clear input",
|
|
98
152
|
"input.increment": "Increase value",
|
|
99
153
|
"input.decrement": "Decrease value",
|
package/dist/server/index.d.ts
CHANGED
|
@@ -39,6 +39,8 @@ export { default as Separator } from "./components/Separator.js";
|
|
|
39
39
|
export { default as Progress } from "./components/Progress.js";
|
|
40
40
|
export { default as Slider } from "./components/Slider.js";
|
|
41
41
|
export { default as Input } from './components/Input.js';
|
|
42
|
+
export { default as OTPInput } from "./components/OTPInput.js";
|
|
43
|
+
export type { OTPLength } from "./components/OTPInput.js";
|
|
42
44
|
export { default as SearchInput } from "./components/SearchInput.js";
|
|
43
45
|
export { default as Textarea } from "./components/Textarea.js";
|
|
44
46
|
export { default as Select } from "./components/Select.js";
|
|
@@ -66,6 +68,7 @@ export { default as Avatar } from "./components/Avatar.js";
|
|
|
66
68
|
export { default as AvatarGroup } from "./components/AvatarGroup.js";
|
|
67
69
|
export { default as Gradient } from "./components/Gradient.js";
|
|
68
70
|
export { default as SnowUILogo } from "./components/SnowUILogo.js";
|
|
71
|
+
export { provideMediaLoading, type MediaLoading } from "./lib/media-loading";
|
|
69
72
|
export { default as Image } from "./components/Image.js";
|
|
70
73
|
export { default as ImageGroup } from "./components/ImageGroup.js";
|
|
71
74
|
export { default as Icon } from './components/Icon.js';
|
package/dist/server/index.js
CHANGED
|
@@ -30,6 +30,7 @@ export { default as Separator } from "./components/Separator.js";
|
|
|
30
30
|
export { default as Progress } from "./components/Progress.js";
|
|
31
31
|
export { default as Slider } from "./components/Slider.js";
|
|
32
32
|
export { default as Input } from './components/Input.js';
|
|
33
|
+
export { default as OTPInput } from "./components/OTPInput.js";
|
|
33
34
|
export { default as SearchInput } from "./components/SearchInput.js";
|
|
34
35
|
export { default as Textarea } from "./components/Textarea.js";
|
|
35
36
|
export { default as Select } from "./components/Select.js";
|
|
@@ -55,6 +56,7 @@ export { default as Avatar } from "./components/Avatar.js";
|
|
|
55
56
|
export { default as AvatarGroup } from "./components/AvatarGroup.js";
|
|
56
57
|
export { default as Gradient } from "./components/Gradient.js";
|
|
57
58
|
export { default as SnowUILogo } from "./components/SnowUILogo.js";
|
|
59
|
+
export { provideMediaLoading } from "./lib/media-loading.js";
|
|
58
60
|
export { default as Image } from "./components/Image.js";
|
|
59
61
|
export { default as ImageGroup } from "./components/ImageGroup.js";
|
|
60
62
|
export { default as Icon } from './components/Icon.js';
|
package/dist/server/keys.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export declare const SCROLL_CONTEXT_KEY: unique symbol;
|
|
|
11
11
|
export declare const TEXT_CONTEXT_KEY: unique symbol;
|
|
12
12
|
export declare const ICON_CONTEXT_KEY: unique symbol;
|
|
13
13
|
export declare const AVATAR_CONTEXT_KEY: unique symbol;
|
|
14
|
+
export declare const MEDIA_LOADING_CONTEXT_KEY: unique symbol;
|
|
14
15
|
export declare const IMAGE_CONTEXT_KEY: unique symbol;
|
|
15
16
|
export declare const IMAGE_GROUP_CONTEXT_KEY: unique symbol;
|
|
16
17
|
export declare const IMAGE_VIEWER_CONTEXT_KEY: unique symbol;
|
package/dist/server/keys.js
CHANGED
|
@@ -13,6 +13,7 @@ export const SCROLL_CONTEXT_KEY = Symbol("SCROLL_CONTEXT");
|
|
|
13
13
|
export const TEXT_CONTEXT_KEY = Symbol("TEXT_CONTEXT");
|
|
14
14
|
export const ICON_CONTEXT_KEY = Symbol("ICON_CONTEXT");
|
|
15
15
|
export const AVATAR_CONTEXT_KEY = Symbol("AVATAR_CONTEXT");
|
|
16
|
+
export const MEDIA_LOADING_CONTEXT_KEY = Symbol("MEDIA_LOADING_CONTEXT");
|
|
16
17
|
export const IMAGE_CONTEXT_KEY = Symbol("IMAGE_CONTEXT");
|
|
17
18
|
export const IMAGE_GROUP_CONTEXT_KEY = Symbol("IMAGE_GROUP_CONTEXT");
|
|
18
19
|
export const IMAGE_VIEWER_CONTEXT_KEY = Symbol("IMAGE_VIEWER_CONTEXT");
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type MediaLoading = "lazy" | "eager";
|
|
2
|
+
type MediaLoadingGetter = () => MediaLoading;
|
|
3
|
+
/** 在组件初始化时为后代 Image 设置默认策略;传 getter 可响应状态变化。 */
|
|
4
|
+
export declare function provideMediaLoading(value: MediaLoading | MediaLoadingGetter): void;
|
|
5
|
+
/** 仅供组件内部消费;没有 Provider 时保留原生懒加载默认值。 */
|
|
6
|
+
export declare function useMediaLoading(): MediaLoadingGetter;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* SnowUI source notice | LICENSE 2.2.0: ../../../LICENSE
|
|
2
|
+
复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
|
|
3
|
+
import { getContext, setContext } from "svelte";
|
|
4
|
+
import { MEDIA_LOADING_CONTEXT_KEY } from "../keys.js";
|
|
5
|
+
/** 在组件初始化时为后代 Image 设置默认策略;传 getter 可响应状态变化。 */
|
|
6
|
+
export function provideMediaLoading(value) {
|
|
7
|
+
setContext(MEDIA_LOADING_CONTEXT_KEY, typeof value === "function" ? value : () => value);
|
|
8
|
+
}
|
|
9
|
+
/** 仅供组件内部消费;没有 Provider 时保留原生懒加载默认值。 */
|
|
10
|
+
export function useMediaLoading() {
|
|
11
|
+
return getContext(MEDIA_LOADING_CONTEXT_KEY) ?? (() => "lazy");
|
|
12
|
+
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* frame-dom-runtime.svelte.ts
|
|
3
|
-
* v1.0.
|
|
3
|
+
* v1.0.1
|
|
4
4
|
* 职责:统一拼装 Frame 根节点的 DOM props、事件包装器与运行时 data 属性。
|
|
5
5
|
*
|
|
6
6
|
* Log:
|
|
7
|
+
* - [2026-10-18] Fix: 事件包装器改读稳定源状态,避免同步卸载后读取已销毁派生状态,并保留同一事件中的实时禁用/加载语义。
|
|
7
8
|
* - [2026-03-09] Init: 从 Frame.svelte 抽离 DOM 透传过滤、disabled/aria 补齐、readonly capture、原生事件包装与 data-* 运行时属性组装。
|
|
8
9
|
*/
|
|
9
10
|
import type { FrameProps } from "./frame-types";
|
|
@@ -93,7 +93,7 @@ export function createFrameDomRuntime(options) {
|
|
|
93
93
|
|
|
94
94
|
function wrap(handler, internal) {
|
|
95
95
|
return (e) => {
|
|
96
|
-
if (
|
|
96
|
+
if (!!options.getFrameProps().disabled || options.frameState.currentState === "Disabled" || options.getEffectiveLoading()) {
|
|
97
97
|
e.preventDefault();
|
|
98
98
|
e.stopPropagation();
|
|
99
99
|
|
|
@@ -24,6 +24,12 @@
|
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
26
|
:root {
|
|
27
|
+
/* OTPInput */
|
|
28
|
+
/* --snowui-otp-input-gap-override: ; */ /* default: var(--gap-2) */
|
|
29
|
+
/* --snowui-otp-input-size-override: ; */ /* default: var(--size-10) */
|
|
30
|
+
/* --snowui-otp-input-radius-override: ; */ /* default: var(--radius-3) */
|
|
31
|
+
/* --snowui-otp-input-font-size-override: ; */ /* default: var(--text-16) */
|
|
32
|
+
/* --snowui-otp-input-line-height-override: ; */ /* default: var(--leading-14) */
|
|
27
33
|
|
|
28
34
|
/* ─────────────────────────────────────────
|
|
29
35
|
Accordion
|
|
@@ -225,11 +225,11 @@
|
|
|
225
225
|
transition: box-shadow 0.2s;
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
-
:where(.snowui-field-bordered:hover) {
|
|
228
|
+
:where(.snowui-field-bordered:hover, .snowui-field-bordered[data-field-hover="true"]) {
|
|
229
229
|
box-shadow: inset 0 0 0 var(--snowui-field-border-width, 0.03125rem) var(--snowui-field-hover-border-color, var(--black-20, #00000033));
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
-
:where(.snowui-field-bordered:focus-within) {
|
|
232
|
+
:where(.snowui-field-bordered:focus-within, .snowui-field-bordered[data-field-focus="true"]) {
|
|
233
233
|
box-shadow:
|
|
234
234
|
inset 0 0 0 var(--snowui-field-border-width, 0.03125rem) var(--snowui-field-focus-border-color, var(--black-40, #00000066)),
|
|
235
235
|
0 0 0 var(--snowui-field-focus-ring-width, 0.25rem) var(--snowui-field-focus-ring-color, var(--black-4, #0000000a));
|
|
@@ -761,3 +761,13 @@
|
|
|
761
761
|
padding: var(--snowui-control-inset);
|
|
762
762
|
box-sizing: border-box;
|
|
763
763
|
}
|
|
764
|
+
|
|
765
|
+
/* Input and segmented fields share the same error text typography. */
|
|
766
|
+
:where(.snowui-field-error-message) {
|
|
767
|
+
width: 100%;
|
|
768
|
+
padding: 0;
|
|
769
|
+
color: var(--secondary-red, #ff4747ff);
|
|
770
|
+
font-size: var(--text-12);
|
|
771
|
+
line-height: var(--leading-12);
|
|
772
|
+
box-sizing: border-box;
|
|
773
|
+
}
|
package/llms.txt
CHANGED