kelt-ui-kit-react 2.1.1 → 2.1.3

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/src/App.css CHANGED
@@ -14,165 +14,957 @@
14
14
  grid-template-columns: 258px minmax(0, 1fr);
15
15
  container: app-container / inline-size;
16
16
  }
17
- .docs-app button, .docs-app input { font: inherit; }
18
- .docs-app button { cursor: pointer; }
19
- .docs-tablist > button, .docs-toolbar-actions > button, .docs-category-filters > button, .docs-code-toolbar > button { min-width: 0; max-height: none; font-weight: 400; }
20
- .docs-app button:focus-visible, .docs-app a:focus-visible, .docs-app input:focus-visible, .docs-app summary:focus-visible { outline: 3px solid #48ad9e; outline-offset: 4px; }
21
- .docs-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
22
- .docs-skip-link { position: fixed; top: -100px; left: 20px; z-index: 10000; background: white; padding: 12px 20px; }
23
- .docs-skip-link:focus { top: 12px; }
24
- .docs-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: #fff; border-right: 1px solid var(--docs-line); padding: 28px 18px 18px; display: flex; flex-direction: column; gap: 24px; }
25
- .docs-brand { display: flex; gap: 12px; align-items: center; padding: 0 10px; font-size: 21px; font-weight: 600; letter-spacing: -.8px; }
26
- .docs-brand-mark { display: grid; place-items: center; background: var(--docs-ink); color: #9ce3cc; border-radius: 13px; width: 42px; height: 42px; font-size: 27px; }
27
- .docs-brand-subtitle { display: block; font-size: 10px; font-weight: 400; letter-spacing: .3px; color: var(--docs-muted); }
28
- .docs-search { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--docs-line); background: #fff; border-radius: 9px; color: var(--docs-muted); }
29
- .docs-search:focus-within { border-color: var(--docs-accent); }
30
- .docs-search input { width: 100%; min-width: 0; height: auto; padding: 0; margin: 0; border: 0; background: transparent; color: var(--docs-ink); outline: none; font-size: 12px; }
31
- .docs-sidebar nav { flex: 1; }
32
- .docs-sidebar nav a { display: flex; align-items: center; gap: 11px; padding: 8px 12px; margin-bottom: 2px; border-radius: 8px; font-size: 12px; color: #536572; transition: background .15s; }
33
- .docs-sidebar nav a:hover { background: #f5f7f8; }
34
- .docs-sidebar nav a.active { background: #eaf5f1; color: #116355; font-weight: 500; }
35
- .docs-sidebar nav a > .bi:first-child { font-size: 15px; width: 18px; }
36
- .docs-nav-arrow { margin-left: auto; font-size: 9px; opacity: 0; }
37
- .docs-sidebar nav a.active .docs-nav-arrow { opacity: 1; }
38
- .docs-nav-group { margin-top: 25px; }
39
- .docs-nav-group h2 { display: flex; justify-content: space-between; padding: 0 12px; margin-bottom: 9px; font-size: 10px; text-transform: uppercase; letter-spacing: 1.4px; color: #77868f; font-weight: 500; }
40
- .docs-nav-group h2 span { letter-spacing: 0; color: #97a2a9; }
41
- .docs-sidebar-footer { border-top: 1px solid var(--docs-line); padding: 18px 5px 0; font-size: 10px; color: var(--docs-muted); display: flex; align-items: center; gap: 8px; }
42
- .docs-main { min-width: 0; }
43
- .docs-topbar { min-height: 72px; border-bottom: 1px solid var(--docs-line); display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 40px; font-size: 10px; letter-spacing: 1.5px; background: #ffffffd9; }
44
- .docs-topbar > span { color: var(--docs-muted); }
45
- .docs-topbar-divider { padding: 0 12px; color: #bdc7cd; }
46
- .docs-topbar a { display: flex; gap: 10px; align-items: center; font-size: 11px; letter-spacing: 0; }
47
- .docs-content { max-width: 1480px; margin: 0 auto; padding: 42px 40px 60px; }
48
- .docs-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 500; letter-spacing: 1.8px; color: var(--docs-accent); text-transform: uppercase; }
49
- .docs-status-dot, .docs-live > span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #289983; flex-shrink: 0; }
50
- .docs-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; border: 1px solid var(--docs-line); border-radius: 18px; background: linear-gradient(120deg, #fff 35%, #eff7f3); padding: 48px 40px; overflow: hidden; }
51
- .docs-hero h1 { font-size: clamp(30px, 3.2vw, 48px); font-weight: 500; line-height: 1.2; letter-spacing: -2px; margin: 20px 0; }
52
- .docs-hero h1 > span { color: var(--docs-accent); }
53
- .docs-hero-copy > p { max-width: 475px; color: var(--docs-muted); font-size: 13px; line-height: 1.9; }
54
- .docs-hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 27px; flex-wrap: wrap; font-size: 11px; }
55
- .docs-hero-actions a { display: flex; align-items: center; gap: 12px; }
56
- .docs-primary-link { background: var(--docs-ink); color: #fff; border-radius: 8px; padding: 12px 18px; }
57
- .docs-hero-visual { position: relative; padding: 10px; }
58
- .docs-mini-window { border: 1px solid #dce5e2; border-radius: 13px; overflow: hidden; background: #fff; box-shadow: 0 20px 40px #1a453014; transform: rotate(-2deg); }
59
- .docs-window-dots { display: flex; align-items: center; gap: 5px; padding: 15px; border-bottom: 1px solid #edf0f2; }
60
- .docs-window-dots > span { width: 7px; height: 7px; background: #d5dfdb; border-radius: 50%; }
61
- .docs-window-dots > code { margin-left: auto; color: #8b999f; font-size: 10px; }
62
- .docs-mini-window pre { padding: 22px; font-size: 11px; line-height: 1.9; color: #586674; overflow: auto; }
63
- .docs-mini-window pre > span { color: #8b5cb2; }
64
- .docs-mini-window pre > em { color: #16776c; font-style: normal; }
65
- .docs-mini-preview { border-top: 1px solid #edf0f2; padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 12px; background: #f8faf9; }
66
- .docs-mini-preview > span { background: #123852; color: #fff; font-size: 11px; border-radius: 6px; padding: 9px 14px; display: flex; gap: 8px; }
67
- .docs-mini-preview > small { color: #8b999f; font-size: 9px; }
68
- .docs-floating-label { position: absolute; right: -10px; bottom: 30px; padding: 9px 12px; border: 1px solid #dce5e2; border-radius: 8px; box-shadow: 0 4px 10px #00000008; background: #fff; color: var(--docs-accent); font-size: 10px; display: flex; gap: 8px; }
69
- .docs-stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 26px 0; border-bottom: 1px solid var(--docs-line); margin-bottom: 38px; }
70
- .docs-stats > div { display: flex; flex-direction: column; gap: 3px; padding-left: 28px; border-right: 1px solid var(--docs-line); }
71
- .docs-stats > div:first-child { padding-left: 0; }
72
- .docs-stats > div:last-child { border: 0; }
73
- .docs-stats strong { font-weight: 500; font-size: 20px; letter-spacing: -.6px; }
74
- .docs-stats span { color: var(--docs-muted); font-size: 11px; }
75
- .docs-catalog-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
76
- .docs-catalog-heading h2 { font-size: 22px; letter-spacing: -.7px; font-weight: 500; margin-top: 7px; }
77
- .docs-catalog-heading .docs-search { width: 235px; }
78
- .docs-category-filters { display: flex; gap: 8px; flex-wrap: wrap; }
79
- .docs-category-filters button { padding: 7px 14px; border-radius: 7px; border: 1px solid var(--docs-line); color: var(--docs-muted); background: #fff; font-size: 11px; }
80
- .docs-category-filters button[aria-pressed="true"] { border-color: var(--docs-ink); background: var(--docs-ink); color: white; }
81
- .docs-result-count { color: var(--docs-muted); font-size: 10px; margin: 18px 0 12px; }
82
- .docs-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
83
- .docs-catalog-card { padding: 23px; background: #fff; border: 1px solid var(--docs-line); border-radius: 12px; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s; }
84
- .docs-catalog-card:hover { border-color: #93c5b5; box-shadow: 0 6px 22px #14392e0a; }
85
- .docs-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
86
- .docs-component-icon { width: 43px; height: 43px; border-radius: 11px; background: #edf5f2; color: var(--docs-accent); display: grid; place-items: center; font-size: 19px; flex-shrink: 0; }
87
- .docs-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 9px; font-weight: 400; border: 1px solid var(--docs-line); border-radius: 20px; padding: 3px 9px; color: var(--docs-muted); white-space: nowrap; }
88
- .docs-catalog-card h3 { font-size: 15px; font-weight: 500; margin: 20px 0 7px; }
89
- .docs-catalog-card p { color: var(--docs-muted); font-size: 11px; line-height: 1.8; flex: 1; }
90
- .docs-card-link { display: flex; align-items: center; justify-content: space-between; font-size: 10px; margin-top: 22px; padding-top: 14px; border-top: 1px solid #edf0f2; color: var(--docs-accent); }
91
- .docs-breadcrumb { font-size: 10px; color: var(--docs-muted); margin-bottom: 27px; }
92
- .docs-breadcrumb > span { padding: 0 10px; color: #b0bdc5; }
93
- .docs-page-heading { display: flex; align-items: center; gap: 20px; margin-bottom: 34px; }
94
- .docs-page-heading .docs-component-icon { width: 60px; height: 60px; border-radius: 15px; font-size: 25px; }
95
- .docs-page-heading h1 { font-size: 34px; line-height: 1.3; font-weight: 500; letter-spacing: -1.2px; margin: 5px 0; }
96
- .docs-page-heading p { font-size: 12px; color: var(--docs-muted); }
97
- .docs-live { margin-left: auto; }
98
- .docs-workbench { background: #fff; border: 1px solid var(--docs-line); border-radius: 13px; overflow: hidden; }
99
- .docs-tablist { display: flex; gap: 24px; border-bottom: 1px solid var(--docs-line); padding: 0 24px; }
100
- .docs-tablist > button { background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--docs-muted); padding: 18px 0; display: flex; align-items: center; gap: 9px; font-size: 12px; }
101
- .docs-tablist > button[aria-selected="true"] { color: var(--docs-accent); border-bottom-color: var(--docs-accent); }
102
- .docs-tab-count { font-size: 9px; background: #edf3f1; padding: 1px 6px; border-radius: 5px; }
103
- .docs-preview-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid #eff2f3; padding: 14px 24px; font-size: 10px; color: var(--docs-muted); }
104
- .docs-preview-toolbar > span { display: flex; align-items: center; gap: 8px; }
105
- .docs-toolbar-actions { display: flex; gap: 6px; }
106
- .docs-toolbar-actions > button { display: flex; align-items: center; gap: 7px; font-size: 10px; border: 1px solid var(--docs-line); border-radius: 6px; background: #fff; padding: 5px 9px; color: var(--docs-muted); }
107
- .docs-toolbar-actions > button[aria-pressed="true"] { background: var(--docs-soft); color: var(--docs-accent); }
108
- .docs-preview { min-height: 320px; padding: 38px 28px; background: #fcfdfd; overflow: auto; }
109
- .docs-preview-grid { background-image: radial-gradient(#dce4e7 .7px, transparent .7px); background-size: 16px 16px; }
110
- .docs-preview-frame { width: 100%; min-width: 0; container: app-container / inline-size; font-size: 18px; line-height: normal; color: #000; }
111
- .docs-preview-frame.is-mobile { max-width: 375px; margin: 0 auto; min-height: 380px; border: 1px solid #dce4e7; border-radius: 12px; background: #fff; padding: 16px; box-shadow: 0 8px 24px #20372b0a; }
112
- .docs-preview-footer { border-top: 1px solid var(--docs-line); padding: 15px 24px; color: var(--docs-muted); font-size: 10px; display: flex; align-items: baseline; gap: 9px; }
113
- .docs-api { padding: 26px; }
114
- .docs-api-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
115
- .docs-api-intro h2 { font-size: 17px; font-weight: 500; }
116
- .docs-api-intro p, .docs-related-types > p { color: var(--docs-muted); font-size: 11px; margin-top: 5px; }
117
- .docs-api-intro .docs-search { min-width: 220px; }
118
- .docs-api-section + .docs-api-section { margin-top: 34px; border-top: 1px solid var(--docs-line); padding-top: 30px; }
119
- .docs-section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 5px; }
120
- .docs-section-heading h2 { font-size: 17px; font-weight: 500; }
121
- .docs-source { color: var(--docs-muted); font-family: monospace; font-size: 11px; margin-bottom: 16px; }
122
- .docs-table-scroll { width: 100%; overflow: auto; border: 1px solid var(--docs-line); border-radius: 8px; margin-top: 16px; }
123
- .docs-props-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 11px; }
124
- .docs-props-table th, .docs-props-table td { padding: 13px 14px; border-bottom: 1px solid #edf0f2; vertical-align: top; }
125
- .docs-props-table thead th { background: #f7f9fa; font-weight: 500; color: var(--docs-muted); font-size: 10px; }
126
- .docs-props-table tbody th { font-weight: 500; color: var(--docs-accent); }
127
- .docs-props-table tbody tr:last-child > * { border-bottom: 0; }
128
- .docs-prop-type { display: block; max-width: 380px; min-width: 150px; overflow-wrap: anywhere; color: #6d4ca0; white-space: pre-wrap; }
129
- .docs-requirement { font-size: 9px; color: var(--docs-muted); }
130
- .docs-requirement.is-required { border-radius: 4px; background: #fff3df; color: #865713; padding: 3px 6px; }
131
- .docs-related-types { margin-top: 26px; }
132
- .docs-related-types h3 { font-size: 12px; font-weight: 500; }
133
- .docs-related-types > p { margin-bottom: 12px; }
134
- .docs-type-detail { border: 1px solid var(--docs-line); border-radius: 7px; margin-top: 8px; overflow: hidden; }
135
- .docs-type-detail summary { padding: 10px 14px; cursor: pointer; font-size: 11px; color: var(--docs-ink); background: #f8fafb; }
136
- .docs-type-detail summary i { padding-right: 5px; color: var(--docs-accent); }
137
- .docs-type-detail pre { padding: 16px; background: #f8fafb; border-top: 1px solid var(--docs-line); font-size: 11px; line-height: 1.8; overflow: auto; }
138
- .docs-note { color: var(--docs-muted); font-size: 11px; padding: 14px 0; }
139
- .docs-empty { color: var(--docs-muted); padding: 25px 10px; font-size: 12px; }
140
- .docs-code-panel { padding: 24px; }
141
- .docs-code-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 11px; }
142
- .docs-code-toolbar > span, .docs-code-toolbar > button { display: flex; align-items: center; gap: 8px; }
143
- .docs-code-toolbar > button { border: 1px solid var(--docs-line); border-radius: 6px; padding: 6px 10px; background: #fff; color: var(--docs-accent); font-size: 11px; }
144
- .docs-copy-status { color: var(--docs-accent); font-size: 11px; margin-bottom: 10px; }
145
- .docs-code { border-radius: 10px; background: #152631; color: #d2e3e7; padding: 26px; font-size: 12px; line-height: 1.8; overflow: auto; max-height: 700px; tab-size: 2; }
146
- .docs-page-footnote { display: flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--docs-muted); font-size: 10px; }
147
- @media (min-width: 1600px) { .docs-content { padding-top: 55px; } .docs-hero { padding: 60px; } }
148
- @media (max-width: 1150px) { .docs-app { grid-template-columns: 225px minmax(0, 1fr); } .docs-content { padding: 30px 24px; } .docs-topbar { padding: 18px 24px; } .docs-hero { padding: 30px; gap: 20px; } .docs-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .docs-live { display: none; } }
149
- @media (max-width: 850px) { .docs-hero { grid-template-columns: 1fr; } .docs-hero-visual { display: none; } .docs-api-intro, .docs-catalog-heading { align-items: stretch; flex-direction: column; } .docs-catalog-heading .docs-search { width: 100%; } }
17
+ .docs-app button,
18
+ .docs-app input {
19
+ font: inherit;
20
+ }
21
+ .docs-app button {
22
+ cursor: pointer;
23
+ }
24
+ .docs-tablist > button,
25
+ .docs-toolbar-actions > button,
26
+ .docs-category-filters > button,
27
+ .docs-code-toolbar > button {
28
+ min-width: 0;
29
+ max-height: none;
30
+ font-weight: 400;
31
+ }
32
+ .docs-app button:focus-visible,
33
+ .docs-app a:focus-visible,
34
+ .docs-app input:focus-visible,
35
+ .docs-app summary:focus-visible {
36
+ outline: 3px solid #48ad9e;
37
+ outline-offset: 4px;
38
+ }
39
+ .docs-sr-only {
40
+ position: absolute;
41
+ width: 1px;
42
+ height: 1px;
43
+ overflow: hidden;
44
+ clip-path: inset(50%);
45
+ white-space: nowrap;
46
+ }
47
+ .docs-skip-link {
48
+ position: fixed;
49
+ top: -100px;
50
+ left: 20px;
51
+ z-index: 10000;
52
+ background: white;
53
+ padding: 12px 20px;
54
+ }
55
+ .docs-skip-link:focus {
56
+ top: 12px;
57
+ }
58
+ .docs-sidebar {
59
+ position: sticky;
60
+ top: 0;
61
+ height: 100vh;
62
+ overflow-y: auto;
63
+ background: #fff;
64
+ border-right: 1px solid var(--docs-line);
65
+ padding: 28px 18px 18px;
66
+ display: flex;
67
+ flex-direction: column;
68
+ gap: 24px;
69
+ }
70
+ .docs-brand {
71
+ display: flex;
72
+ gap: 12px;
73
+ align-items: center;
74
+ padding: 0 10px;
75
+ font-size: 21px;
76
+ font-weight: 600;
77
+ letter-spacing: -0.8px;
78
+ }
79
+ .docs-brand-mark {
80
+ display: grid;
81
+ place-items: center;
82
+ background: var(--docs-ink);
83
+ color: #9ce3cc;
84
+ border-radius: 13px;
85
+ width: 42px;
86
+ height: 42px;
87
+ font-size: 27px;
88
+ }
89
+ .docs-brand-subtitle {
90
+ display: block;
91
+ font-size: 10px;
92
+ font-weight: 400;
93
+ letter-spacing: 0.3px;
94
+ color: var(--docs-muted);
95
+ }
96
+ .docs-search {
97
+ display: flex;
98
+ align-items: center;
99
+ gap: 10px;
100
+ padding: 10px 12px;
101
+ border: 1px solid var(--docs-line);
102
+ background: #fff;
103
+ border-radius: 9px;
104
+ color: var(--docs-muted);
105
+ }
106
+ .docs-search:focus-within {
107
+ border-color: var(--docs-accent);
108
+ }
109
+ .docs-search input {
110
+ width: 100%;
111
+ min-width: 0;
112
+ height: auto;
113
+ padding: 0;
114
+ margin: 0;
115
+ border: 0;
116
+ background: transparent;
117
+ color: var(--docs-ink);
118
+ outline: none;
119
+ font-size: 12px;
120
+ }
121
+ .docs-sidebar nav {
122
+ flex: 1;
123
+ }
124
+ .docs-sidebar nav a {
125
+ display: flex;
126
+ align-items: center;
127
+ gap: 11px;
128
+ padding: 8px 12px;
129
+ margin-bottom: 2px;
130
+ border-radius: 8px;
131
+ font-size: 12px;
132
+ color: #536572;
133
+ transition: background 0.15s;
134
+ }
135
+ .docs-sidebar nav a:hover {
136
+ background: #f5f7f8;
137
+ }
138
+ .docs-sidebar nav a.active {
139
+ background: #eaf5f1;
140
+ color: #116355;
141
+ font-weight: 500;
142
+ }
143
+ .docs-sidebar nav a > .bi:first-child {
144
+ font-size: 15px;
145
+ width: 18px;
146
+ }
147
+ .docs-nav-arrow {
148
+ margin-left: auto;
149
+ font-size: 9px;
150
+ opacity: 0;
151
+ }
152
+ .docs-sidebar nav a.active .docs-nav-arrow {
153
+ opacity: 1;
154
+ }
155
+ .docs-nav-group {
156
+ margin-top: 25px;
157
+ }
158
+ .docs-nav-group h2 {
159
+ display: flex;
160
+ justify-content: space-between;
161
+ padding: 0 12px;
162
+ margin-bottom: 9px;
163
+ font-size: 10px;
164
+ text-transform: uppercase;
165
+ letter-spacing: 1.4px;
166
+ color: #77868f;
167
+ font-weight: 500;
168
+ }
169
+ .docs-nav-group h2 span {
170
+ letter-spacing: 0;
171
+ color: #97a2a9;
172
+ }
173
+ .docs-sidebar-footer {
174
+ border-top: 1px solid var(--docs-line);
175
+ padding: 18px 5px 0;
176
+ font-size: 10px;
177
+ color: var(--docs-muted);
178
+ display: flex;
179
+ align-items: center;
180
+ gap: 8px;
181
+ }
182
+ .docs-main {
183
+ min-width: 0;
184
+ }
185
+ .docs-topbar {
186
+ min-height: 72px;
187
+ border-bottom: 1px solid var(--docs-line);
188
+ display: flex;
189
+ align-items: center;
190
+ justify-content: space-between;
191
+ gap: 15px;
192
+ padding: 18px 40px;
193
+ font-size: 10px;
194
+ letter-spacing: 1.5px;
195
+ background: #ffffffd9;
196
+ }
197
+ .docs-topbar > span {
198
+ color: var(--docs-muted);
199
+ }
200
+ .docs-topbar-divider {
201
+ padding: 0 12px;
202
+ color: #bdc7cd;
203
+ }
204
+ .docs-topbar a {
205
+ display: flex;
206
+ gap: 10px;
207
+ align-items: center;
208
+ font-size: 11px;
209
+ letter-spacing: 0;
210
+ }
211
+ .docs-content {
212
+ max-width: 1480px;
213
+ margin: 0 auto;
214
+ padding: 42px 40px 60px;
215
+ }
216
+ .docs-eyebrow {
217
+ display: inline-flex;
218
+ align-items: center;
219
+ gap: 8px;
220
+ font-size: 10px;
221
+ font-weight: 500;
222
+ letter-spacing: 1.8px;
223
+ color: var(--docs-accent);
224
+ text-transform: uppercase;
225
+ }
226
+ .docs-status-dot,
227
+ .docs-live > span {
228
+ display: inline-block;
229
+ width: 6px;
230
+ height: 6px;
231
+ border-radius: 50%;
232
+ background: #289983;
233
+ flex-shrink: 0;
234
+ }
235
+ .docs-hero {
236
+ display: grid;
237
+ grid-template-columns: 1.2fr 1fr;
238
+ gap: 40px;
239
+ align-items: center;
240
+ border: 1px solid var(--docs-line);
241
+ border-radius: 18px;
242
+ background: linear-gradient(120deg, #fff 35%, #eff7f3);
243
+ padding: 48px 40px;
244
+ overflow: hidden;
245
+ }
246
+ .docs-hero h1 {
247
+ font-size: clamp(30px, 3.2vw, 48px);
248
+ font-weight: 500;
249
+ line-height: 1.2;
250
+ letter-spacing: -2px;
251
+ margin: 20px 0;
252
+ }
253
+ .docs-hero h1 > span {
254
+ color: var(--docs-accent);
255
+ }
256
+ .docs-hero-copy > p {
257
+ max-width: 475px;
258
+ color: var(--docs-muted);
259
+ font-size: 13px;
260
+ line-height: 1.9;
261
+ }
262
+ .docs-hero-actions {
263
+ display: flex;
264
+ align-items: center;
265
+ gap: 22px;
266
+ margin-top: 27px;
267
+ flex-wrap: wrap;
268
+ font-size: 11px;
269
+ }
270
+ .docs-hero-actions a {
271
+ display: flex;
272
+ align-items: center;
273
+ gap: 12px;
274
+ }
275
+ .docs-primary-link {
276
+ background: var(--docs-ink);
277
+ color: #fff;
278
+ border-radius: 8px;
279
+ padding: 12px 18px;
280
+ }
281
+ .docs-hero-visual {
282
+ position: relative;
283
+ padding: 10px;
284
+ }
285
+ .docs-mini-window {
286
+ border: 1px solid #dce5e2;
287
+ border-radius: 13px;
288
+ overflow: hidden;
289
+ background: #fff;
290
+ box-shadow: 0 20px 40px #1a453014;
291
+ transform: rotate(-2deg);
292
+ }
293
+ .docs-window-dots {
294
+ display: flex;
295
+ align-items: center;
296
+ gap: 5px;
297
+ padding: 15px;
298
+ border-bottom: 1px solid #edf0f2;
299
+ }
300
+ .docs-window-dots > span {
301
+ width: 7px;
302
+ height: 7px;
303
+ background: #d5dfdb;
304
+ border-radius: 50%;
305
+ }
306
+ .docs-window-dots > code {
307
+ margin-left: auto;
308
+ color: #8b999f;
309
+ font-size: 10px;
310
+ }
311
+ .docs-mini-window pre {
312
+ padding: 22px;
313
+ font-size: 11px;
314
+ line-height: 1.9;
315
+ color: #586674;
316
+ overflow: auto;
317
+ }
318
+ .docs-mini-window pre > span {
319
+ color: #8b5cb2;
320
+ }
321
+ .docs-mini-window pre > em {
322
+ color: #16776c;
323
+ font-style: normal;
324
+ }
325
+ .docs-mini-preview {
326
+ border-top: 1px solid #edf0f2;
327
+ padding: 22px;
328
+ display: flex;
329
+ flex-direction: column;
330
+ align-items: center;
331
+ gap: 12px;
332
+ background: #f8faf9;
333
+ }
334
+ .docs-mini-preview > span {
335
+ background: #123852;
336
+ color: #fff;
337
+ font-size: 11px;
338
+ border-radius: 6px;
339
+ padding: 9px 14px;
340
+ display: flex;
341
+ gap: 8px;
342
+ }
343
+ .docs-mini-preview > small {
344
+ color: #8b999f;
345
+ font-size: 9px;
346
+ }
347
+ .docs-floating-label {
348
+ position: absolute;
349
+ right: -10px;
350
+ bottom: 30px;
351
+ padding: 9px 12px;
352
+ border: 1px solid #dce5e2;
353
+ border-radius: 8px;
354
+ box-shadow: 0 4px 10px #00000008;
355
+ background: #fff;
356
+ color: var(--docs-accent);
357
+ font-size: 10px;
358
+ display: flex;
359
+ gap: 8px;
360
+ }
361
+ .docs-stats {
362
+ display: grid;
363
+ grid-template-columns: repeat(3, 1fr);
364
+ padding: 26px 0;
365
+ border-bottom: 1px solid var(--docs-line);
366
+ margin-bottom: 38px;
367
+ }
368
+ .docs-stats > div {
369
+ display: flex;
370
+ flex-direction: column;
371
+ gap: 3px;
372
+ padding-left: 28px;
373
+ border-right: 1px solid var(--docs-line);
374
+ }
375
+ .docs-stats > div:first-child {
376
+ padding-left: 0;
377
+ }
378
+ .docs-stats > div:last-child {
379
+ border: 0;
380
+ }
381
+ .docs-stats strong {
382
+ font-weight: 500;
383
+ font-size: 20px;
384
+ letter-spacing: -0.6px;
385
+ }
386
+ .docs-stats span {
387
+ color: var(--docs-muted);
388
+ font-size: 11px;
389
+ }
390
+ .docs-catalog-heading {
391
+ display: flex;
392
+ justify-content: space-between;
393
+ align-items: center;
394
+ gap: 20px;
395
+ margin-bottom: 24px;
396
+ }
397
+ .docs-catalog-heading h2 {
398
+ font-size: 22px;
399
+ letter-spacing: -0.7px;
400
+ font-weight: 500;
401
+ margin-top: 7px;
402
+ }
403
+ .docs-catalog-heading .docs-search {
404
+ width: 235px;
405
+ }
406
+ .docs-category-filters {
407
+ display: flex;
408
+ gap: 8px;
409
+ flex-wrap: wrap;
410
+ }
411
+ .docs-category-filters button {
412
+ padding: 7px 14px;
413
+ border-radius: 7px;
414
+ border: 1px solid var(--docs-line);
415
+ color: var(--docs-muted);
416
+ background: #fff;
417
+ font-size: 11px;
418
+ }
419
+ .docs-category-filters button[aria-pressed="true"] {
420
+ border-color: var(--docs-ink);
421
+ background: var(--docs-ink);
422
+ color: white;
423
+ }
424
+ .docs-result-count {
425
+ color: var(--docs-muted);
426
+ font-size: 10px;
427
+ margin: 18px 0 12px;
428
+ }
429
+ .docs-card-grid {
430
+ display: grid;
431
+ grid-template-columns: repeat(3, minmax(0, 1fr));
432
+ gap: 16px;
433
+ }
434
+ .docs-catalog-card {
435
+ padding: 23px;
436
+ background: #fff;
437
+ border: 1px solid var(--docs-line);
438
+ border-radius: 12px;
439
+ display: flex;
440
+ flex-direction: column;
441
+ transition:
442
+ box-shadow 0.15s,
443
+ border-color 0.15s;
444
+ }
445
+ .docs-catalog-card:hover {
446
+ border-color: #93c5b5;
447
+ box-shadow: 0 6px 22px #14392e0a;
448
+ }
449
+ .docs-card-top {
450
+ display: flex;
451
+ align-items: center;
452
+ justify-content: space-between;
453
+ gap: 10px;
454
+ }
455
+ .docs-component-icon {
456
+ width: 43px;
457
+ height: 43px;
458
+ border-radius: 11px;
459
+ background: #edf5f2;
460
+ color: var(--docs-accent);
461
+ display: grid;
462
+ place-items: center;
463
+ font-size: 19px;
464
+ flex-shrink: 0;
465
+ }
466
+ .docs-pill {
467
+ display: inline-flex;
468
+ align-items: center;
469
+ gap: 7px;
470
+ font-size: 9px;
471
+ font-weight: 400;
472
+ border: 1px solid var(--docs-line);
473
+ border-radius: 20px;
474
+ padding: 3px 9px;
475
+ color: var(--docs-muted);
476
+ white-space: nowrap;
477
+ }
478
+ .docs-catalog-card h3 {
479
+ font-size: 15px;
480
+ font-weight: 500;
481
+ margin: 20px 0 7px;
482
+ }
483
+ .docs-catalog-card p {
484
+ color: var(--docs-muted);
485
+ font-size: 11px;
486
+ line-height: 1.8;
487
+ flex: 1;
488
+ }
489
+ .docs-card-link {
490
+ display: flex;
491
+ align-items: center;
492
+ justify-content: space-between;
493
+ font-size: 10px;
494
+ margin-top: 22px;
495
+ padding-top: 14px;
496
+ border-top: 1px solid #edf0f2;
497
+ color: var(--docs-accent);
498
+ }
499
+ .docs-breadcrumb {
500
+ font-size: 10px;
501
+ color: var(--docs-muted);
502
+ margin-bottom: 27px;
503
+ }
504
+ .docs-breadcrumb > span {
505
+ padding: 0 10px;
506
+ color: #b0bdc5;
507
+ }
508
+ .docs-page-heading {
509
+ display: flex;
510
+ align-items: center;
511
+ gap: 20px;
512
+ margin-bottom: 34px;
513
+ }
514
+ .docs-page-heading .docs-component-icon {
515
+ width: 60px;
516
+ height: 60px;
517
+ border-radius: 15px;
518
+ font-size: 25px;
519
+ }
520
+ .docs-page-heading h1 {
521
+ font-size: 34px;
522
+ line-height: 1.3;
523
+ font-weight: 500;
524
+ letter-spacing: -1.2px;
525
+ margin: 5px 0;
526
+ }
527
+ .docs-page-heading p {
528
+ font-size: 12px;
529
+ color: var(--docs-muted);
530
+ }
531
+ .docs-live {
532
+ margin-left: auto;
533
+ }
534
+ .docs-workbench {
535
+ background: #fff;
536
+ border: 1px solid var(--docs-line);
537
+ border-radius: 13px;
538
+ overflow: hidden;
539
+ }
540
+ .docs-tablist {
541
+ display: flex;
542
+ gap: 24px;
543
+ border-bottom: 1px solid var(--docs-line);
544
+ padding: 0 24px;
545
+ }
546
+ .docs-tablist > button {
547
+ background: none;
548
+ border: 0;
549
+ border-bottom: 2px solid transparent;
550
+ border-radius: 0;
551
+ color: var(--docs-muted);
552
+ padding: 18px 0;
553
+ display: flex;
554
+ align-items: center;
555
+ gap: 9px;
556
+ font-size: 12px;
557
+ }
558
+ .docs-tablist > button[aria-selected="true"] {
559
+ color: var(--docs-accent);
560
+ border-bottom-color: var(--docs-accent);
561
+ }
562
+ .docs-tab-count {
563
+ font-size: 9px;
564
+ background: #edf3f1;
565
+ padding: 1px 6px;
566
+ border-radius: 5px;
567
+ }
568
+ .docs-preview-toolbar {
569
+ display: flex;
570
+ justify-content: space-between;
571
+ align-items: center;
572
+ gap: 10px;
573
+ border-bottom: 1px solid #eff2f3;
574
+ padding: 14px 24px;
575
+ font-size: 10px;
576
+ color: var(--docs-muted);
577
+ }
578
+ .docs-preview-toolbar > span {
579
+ display: flex;
580
+ align-items: center;
581
+ gap: 8px;
582
+ }
583
+ .docs-toolbar-actions {
584
+ display: flex;
585
+ gap: 6px;
586
+ }
587
+ .docs-toolbar-actions > button {
588
+ display: flex;
589
+ align-items: center;
590
+ gap: 7px;
591
+ font-size: 10px;
592
+ border: 1px solid var(--docs-line);
593
+ border-radius: 6px;
594
+ background: #fff;
595
+ padding: 5px 9px;
596
+ color: var(--docs-muted);
597
+ }
598
+ .docs-toolbar-actions > button[aria-pressed="true"] {
599
+ background: var(--docs-soft);
600
+ color: var(--docs-accent);
601
+ }
602
+ .docs-preview {
603
+ min-height: 320px;
604
+ padding: 38px 28px;
605
+ background: #fcfdfd;
606
+ overflow: auto;
607
+ }
608
+ .docs-preview-grid {
609
+ background-image: radial-gradient(#dce4e7 0.7px, transparent 0.7px);
610
+ background-size: 16px 16px;
611
+ }
612
+ .docs-preview-frame {
613
+ width: 100%;
614
+ min-width: 0;
615
+ container: app-container / inline-size;
616
+ font-size: 18px;
617
+ line-height: normal;
618
+ color: #000;
619
+ }
620
+ .docs-preview-frame.is-mobile {
621
+ max-width: 375px;
622
+ margin: 0 auto;
623
+ min-height: 380px;
624
+ border: 1px solid #dce4e7;
625
+ border-radius: 12px;
626
+ background: #fff;
627
+ padding: 16px;
628
+ box-shadow: 0 8px 24px #20372b0a;
629
+ }
630
+ .docs-preview-footer {
631
+ border-top: 1px solid var(--docs-line);
632
+ padding: 15px 24px;
633
+ color: var(--docs-muted);
634
+ font-size: 10px;
635
+ display: flex;
636
+ align-items: baseline;
637
+ gap: 9px;
638
+ }
639
+ .docs-api {
640
+ padding: 26px;
641
+ }
642
+ .docs-api-intro {
643
+ display: flex;
644
+ align-items: center;
645
+ justify-content: space-between;
646
+ gap: 20px;
647
+ margin-bottom: 30px;
648
+ }
649
+ .docs-api-intro h2 {
650
+ font-size: 17px;
651
+ font-weight: 500;
652
+ }
653
+ .docs-api-intro p,
654
+ .docs-related-types > p {
655
+ color: var(--docs-muted);
656
+ font-size: 11px;
657
+ margin-top: 5px;
658
+ }
659
+ .docs-api-intro .docs-search {
660
+ min-width: 220px;
661
+ }
662
+ .docs-api-section + .docs-api-section {
663
+ margin-top: 34px;
664
+ border-top: 1px solid var(--docs-line);
665
+ padding-top: 30px;
666
+ }
667
+ .docs-section-heading {
668
+ display: flex;
669
+ align-items: center;
670
+ gap: 12px;
671
+ margin-bottom: 5px;
672
+ }
673
+ .docs-section-heading h2 {
674
+ font-size: 17px;
675
+ font-weight: 500;
676
+ }
677
+ .docs-source {
678
+ color: var(--docs-muted);
679
+ font-family: monospace;
680
+ font-size: 11px;
681
+ margin-bottom: 16px;
682
+ }
683
+ .docs-table-scroll {
684
+ width: 100%;
685
+ overflow: auto;
686
+ border: 1px solid var(--docs-line);
687
+ border-radius: 8px;
688
+ margin-top: 16px;
689
+ }
690
+ .docs-props-table {
691
+ width: 100%;
692
+ border-collapse: collapse;
693
+ text-align: left;
694
+ font-size: 11px;
695
+ }
696
+ .docs-props-table th,
697
+ .docs-props-table td {
698
+ padding: 13px 14px;
699
+ border-bottom: 1px solid #edf0f2;
700
+ vertical-align: top;
701
+ }
702
+ .docs-props-table thead th {
703
+ background: #f7f9fa;
704
+ font-weight: 500;
705
+ color: var(--docs-muted);
706
+ font-size: 10px;
707
+ }
708
+ .docs-props-table tbody th {
709
+ font-weight: 500;
710
+ color: var(--docs-accent);
711
+ }
712
+ .docs-props-table tbody tr:last-child > * {
713
+ border-bottom: 0;
714
+ }
715
+ .docs-prop-type {
716
+ display: block;
717
+ max-width: 380px;
718
+ min-width: 150px;
719
+ overflow-wrap: anywhere;
720
+ color: #6d4ca0;
721
+ white-space: pre-wrap;
722
+ }
723
+ .docs-requirement {
724
+ font-size: 9px;
725
+ color: var(--docs-muted);
726
+ }
727
+ .docs-requirement.is-required {
728
+ border-radius: 4px;
729
+ background: #fff3df;
730
+ color: #865713;
731
+ padding: 3px 6px;
732
+ }
733
+ .docs-related-types {
734
+ margin-top: 26px;
735
+ }
736
+ .docs-related-types h3 {
737
+ font-size: 12px;
738
+ font-weight: 500;
739
+ }
740
+ .docs-related-types > p {
741
+ margin-bottom: 12px;
742
+ }
743
+ .docs-type-detail {
744
+ border: 1px solid var(--docs-line);
745
+ border-radius: 7px;
746
+ margin-top: 8px;
747
+ overflow: hidden;
748
+ }
749
+ .docs-type-detail summary {
750
+ padding: 10px 14px;
751
+ cursor: pointer;
752
+ font-size: 11px;
753
+ color: var(--docs-ink);
754
+ background: #f8fafb;
755
+ }
756
+ .docs-type-detail summary i {
757
+ padding-right: 5px;
758
+ color: var(--docs-accent);
759
+ }
760
+ .docs-type-detail pre {
761
+ padding: 16px;
762
+ background: #f8fafb;
763
+ border-top: 1px solid var(--docs-line);
764
+ font-size: 11px;
765
+ line-height: 1.8;
766
+ overflow: auto;
767
+ }
768
+ .docs-note {
769
+ color: var(--docs-muted);
770
+ font-size: 11px;
771
+ padding: 14px 0;
772
+ }
773
+ .docs-empty {
774
+ color: var(--docs-muted);
775
+ padding: 25px 10px;
776
+ font-size: 12px;
777
+ }
778
+ .docs-code-panel {
779
+ padding: 24px;
780
+ }
781
+ .docs-code-toolbar {
782
+ display: flex;
783
+ justify-content: space-between;
784
+ align-items: center;
785
+ gap: 10px;
786
+ font-size: 11px;
787
+ }
788
+ .docs-code-toolbar > span,
789
+ .docs-code-toolbar > button {
790
+ display: flex;
791
+ align-items: center;
792
+ gap: 8px;
793
+ }
794
+ .docs-code-toolbar > button {
795
+ border: 1px solid var(--docs-line);
796
+ border-radius: 6px;
797
+ padding: 6px 10px;
798
+ background: #fff;
799
+ color: var(--docs-accent);
800
+ font-size: 11px;
801
+ }
802
+ .docs-copy-status {
803
+ color: var(--docs-accent);
804
+ font-size: 11px;
805
+ margin-bottom: 10px;
806
+ }
807
+ .docs-code {
808
+ border-radius: 10px;
809
+ background: #152631;
810
+ color: #d2e3e7;
811
+ padding: 26px;
812
+ font-size: 12px;
813
+ line-height: 1.8;
814
+ overflow: auto;
815
+ max-height: 700px;
816
+ tab-size: 2;
817
+ }
818
+ .docs-page-footnote {
819
+ display: flex;
820
+ align-items: center;
821
+ gap: 8px;
822
+ margin-top: 20px;
823
+ color: var(--docs-muted);
824
+ font-size: 10px;
825
+ }
826
+ @media (min-width: 1600px) {
827
+ .docs-content {
828
+ padding-top: 55px;
829
+ }
830
+ .docs-hero {
831
+ padding: 60px;
832
+ }
833
+ }
834
+ @media (max-width: 1150px) {
835
+ .docs-app {
836
+ grid-template-columns: 225px minmax(0, 1fr);
837
+ }
838
+ .docs-content {
839
+ padding: 30px 24px;
840
+ }
841
+ .docs-topbar {
842
+ padding: 18px 24px;
843
+ }
844
+ .docs-hero {
845
+ padding: 30px;
846
+ gap: 20px;
847
+ }
848
+ .docs-card-grid {
849
+ grid-template-columns: repeat(2, minmax(0, 1fr));
850
+ }
851
+ .docs-live {
852
+ display: none;
853
+ }
854
+ }
855
+ @media (max-width: 850px) {
856
+ .docs-hero {
857
+ grid-template-columns: 1fr;
858
+ }
859
+ .docs-hero-visual {
860
+ display: none;
861
+ }
862
+ .docs-api-intro,
863
+ .docs-catalog-heading {
864
+ align-items: stretch;
865
+ flex-direction: column;
866
+ }
867
+ .docs-catalog-heading .docs-search {
868
+ width: 100%;
869
+ }
870
+ }
150
871
  @media (max-width: 640px) {
151
- .docs-app { display: block; }
152
- .docs-sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--docs-line); padding: 16px; gap: 15px; }
153
- .docs-sidebar nav { max-height: 190px; overflow-y: auto; }
154
- .docs-sidebar-footer { display: none; }
155
- .docs-brand { font-size: 19px; }
156
- .docs-topbar { padding: 15px 20px; min-height: 55px; }
157
- .docs-topbar > a { font-size: 0; gap: 0; }
158
- .docs-topbar > a > i:first-child { font-size: 18px; }
159
- .docs-content { padding: 26px 16px 40px; }
160
- .docs-hero { padding: 28px 22px; }
161
- .docs-hero h1 { font-size: 34px; letter-spacing: -1.3px; }
162
- .docs-stats { gap: 12px; }
163
- .docs-stats > div { padding-left: 10px; }
164
- .docs-stats strong { font-size: 15px; }
165
- .docs-stats span { font-size: 9px; }
166
- .docs-catalog-heading h2 { font-size: 20px; }
167
- .docs-card-grid { grid-template-columns: 1fr; }
168
- .docs-page-heading { gap: 12px; align-items: flex-start; }
169
- .docs-page-heading h1 { font-size: 27px; }
170
- .docs-page-heading .docs-component-icon { width: 44px; height: 44px; font-size: 21px; }
171
- .docs-tablist { padding: 0 14px; gap: 20px; }
172
- .docs-tablist > button { font-size: 11px; gap: 6px; }
173
- .docs-preview-toolbar { padding: 12px; }
174
- .docs-preview { padding: 24px 14px; }
175
- .docs-api, .docs-code-panel { padding: 18px 14px; }
176
- .docs-preview-footer { padding: 14px; }
177
- }
178
- @media (prefers-reduced-motion: reduce) { .docs-app * { transition: none !important; } }
872
+ .docs-app {
873
+ display: block;
874
+ }
875
+ .docs-sidebar {
876
+ position: static;
877
+ height: auto;
878
+ border-right: 0;
879
+ border-bottom: 1px solid var(--docs-line);
880
+ padding: 16px;
881
+ gap: 15px;
882
+ }
883
+ .docs-sidebar nav {
884
+ max-height: 190px;
885
+ overflow-y: auto;
886
+ }
887
+ .docs-sidebar-footer {
888
+ display: none;
889
+ }
890
+ .docs-brand {
891
+ font-size: 19px;
892
+ }
893
+ .docs-topbar {
894
+ padding: 15px 20px;
895
+ min-height: 55px;
896
+ }
897
+ .docs-topbar > a {
898
+ font-size: 0;
899
+ gap: 0;
900
+ }
901
+ .docs-topbar > a > i:first-child {
902
+ font-size: 18px;
903
+ }
904
+ .docs-content {
905
+ padding: 26px 16px 40px;
906
+ }
907
+ .docs-hero {
908
+ padding: 28px 22px;
909
+ }
910
+ .docs-hero h1 {
911
+ font-size: 34px;
912
+ letter-spacing: -1.3px;
913
+ }
914
+ .docs-stats {
915
+ gap: 12px;
916
+ }
917
+ .docs-stats > div {
918
+ padding-left: 10px;
919
+ }
920
+ .docs-stats strong {
921
+ font-size: 15px;
922
+ }
923
+ .docs-stats span {
924
+ font-size: 9px;
925
+ }
926
+ .docs-catalog-heading h2 {
927
+ font-size: 20px;
928
+ }
929
+ .docs-card-grid {
930
+ grid-template-columns: 1fr;
931
+ }
932
+ .docs-page-heading {
933
+ gap: 12px;
934
+ align-items: flex-start;
935
+ }
936
+ .docs-page-heading h1 {
937
+ font-size: 27px;
938
+ }
939
+ .docs-page-heading .docs-component-icon {
940
+ width: 44px;
941
+ height: 44px;
942
+ font-size: 21px;
943
+ }
944
+ .docs-tablist {
945
+ padding: 0 14px;
946
+ gap: 20px;
947
+ }
948
+ .docs-tablist > button {
949
+ font-size: 11px;
950
+ gap: 6px;
951
+ }
952
+ .docs-preview-toolbar {
953
+ padding: 12px;
954
+ }
955
+ .docs-preview {
956
+ padding: 24px 14px;
957
+ }
958
+ .docs-api,
959
+ .docs-code-panel {
960
+ padding: 18px 14px;
961
+ }
962
+ .docs-preview-footer {
963
+ padding: 14px;
964
+ }
965
+ }
966
+ @media (prefers-reduced-motion: reduce) {
967
+ .docs-app * {
968
+ transition: none !important;
969
+ }
970
+ }