@nonoun/native-ui 0.2.10 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components-lean.css +20 -941
- package/dist/components.css +20 -948
- package/dist/components.js +66 -498
- package/dist/core.js +121 -38
- package/dist/custom-elements.json +3971 -6744
- package/dist/foundation.css +5 -6
- package/dist/index.d.ts +0 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/kernel.js +208 -208
- package/dist/native-ui-lean.css +25 -947
- package/dist/native-ui.css +25 -954
- package/dist/native-ui.js +4 -4
- package/dist/register-all.js +4 -4
- package/dist/traits/drag-controller.d.ts.map +1 -1
- package/dist/traits.js +3 -3
- package/dist/ui-icon.js +1 -1
- package/package.json +6 -9
- package/dist/components/ui-nav/index.d.ts +0 -6
- package/dist/components/ui-nav/index.d.ts.map +0 -1
- package/dist/components/ui-nav/ui-nav-element.d.ts +0 -20
- package/dist/components/ui-nav/ui-nav-element.d.ts.map +0 -1
- package/dist/components/ui-nav/ui-nav-group-element.d.ts +0 -24
- package/dist/components/ui-nav/ui-nav-group-element.d.ts.map +0 -1
- package/dist/components/ui-nav/ui-nav-group-header-element.d.ts +0 -7
- package/dist/components/ui-nav/ui-nav-group-header-element.d.ts.map +0 -1
- package/dist/components/ui-nav/ui-nav-item-element.d.ts +0 -23
- package/dist/components/ui-nav/ui-nav-item-element.d.ts.map +0 -1
- package/dist/components/ui-nav/ui-nav.d.ts +0 -2
- package/dist/components/ui-nav/ui-nav.d.ts.map +0 -1
- package/dist/containers/ui-layout-chat/index.d.ts +0 -3
- package/dist/containers/ui-layout-chat/index.d.ts.map +0 -1
- package/dist/containers/ui-layout-chat/ui-layout-chat-element.d.ts +0 -14
- package/dist/containers/ui-layout-chat/ui-layout-chat-element.d.ts.map +0 -1
- package/dist/containers/ui-layout-chat/ui-layout-chat.d.ts +0 -3
- package/dist/containers/ui-layout-chat/ui-layout-chat.d.ts.map +0 -1
- package/dist/containers/ui-layout-inspector/index.d.ts +0 -3
- package/dist/containers/ui-layout-inspector/index.d.ts.map +0 -1
- package/dist/containers/ui-layout-inspector/ui-layout-inspector-element.d.ts +0 -14
- package/dist/containers/ui-layout-inspector/ui-layout-inspector-element.d.ts.map +0 -1
- package/dist/containers/ui-layout-inspector/ui-layout-inspector.d.ts +0 -3
- package/dist/containers/ui-layout-inspector/ui-layout-inspector.d.ts.map +0 -1
- package/dist/containers/ui-layout-sidebar/index.d.ts +0 -4
- package/dist/containers/ui-layout-sidebar/index.d.ts.map +0 -1
- package/dist/containers/ui-layout-sidebar/ui-layout-sidebar-element.d.ts +0 -11
- package/dist/containers/ui-layout-sidebar/ui-layout-sidebar-element.d.ts.map +0 -1
- package/dist/containers/ui-layout-sidebar/ui-layout-sidebar-item-element.d.ts +0 -10
- package/dist/containers/ui-layout-sidebar/ui-layout-sidebar-item-element.d.ts.map +0 -1
- package/dist/containers/ui-layout-sidebar/ui-layout-sidebar-item.d.ts +0 -3
- package/dist/containers/ui-layout-sidebar/ui-layout-sidebar-item.d.ts.map +0 -1
- package/dist/containers/ui-layout-sidebar/ui-layout-sidebar.d.ts +0 -4
- package/dist/containers/ui-layout-sidebar/ui-layout-sidebar.d.ts.map +0 -1
- package/dist/inspector/build-inspector.d.ts +0 -8
- package/dist/inspector/build-inspector.d.ts.map +0 -1
- package/dist/inspector/index.d.ts +0 -10
- package/dist/inspector/index.d.ts.map +0 -1
- package/dist/inspector/native-tokens-color-swatch-element.d.ts +0 -15
- package/dist/inspector/native-tokens-color-swatch-element.d.ts.map +0 -1
- package/dist/inspector/native-tokens-color-swatch.d.ts +0 -3
- package/dist/inspector/native-tokens-color-swatch.d.ts.map +0 -1
- package/dist/inspector/native-tokens-colors-element.d.ts +0 -14
- package/dist/inspector/native-tokens-colors-element.d.ts.map +0 -1
- package/dist/inspector/native-tokens-colors.d.ts +0 -4
- package/dist/inspector/native-tokens-colors.d.ts.map +0 -1
- package/dist/inspector/native-tokens-inspector-element.d.ts +0 -15
- package/dist/inspector/native-tokens-inspector-element.d.ts.map +0 -1
- package/dist/inspector/native-tokens-inspector.d.ts +0 -3
- package/dist/inspector/native-tokens-inspector.d.ts.map +0 -1
- package/dist/inspector/native-tokens-themes-element.d.ts +0 -13
- package/dist/inspector/native-tokens-themes-element.d.ts.map +0 -1
- package/dist/inspector/native-tokens-themes.d.ts +0 -4
- package/dist/inspector/native-tokens-themes.d.ts.map +0 -1
- package/dist/inspector/native-tokens-variable-element.d.ts +0 -19
- package/dist/inspector/native-tokens-variable-element.d.ts.map +0 -1
- package/dist/inspector/native-tokens-variable.d.ts +0 -4
- package/dist/inspector/native-tokens-variable.d.ts.map +0 -1
- package/dist/inspector.css +0 -231
- package/dist/inspector.d.ts +0 -12
- package/dist/inspector.d.ts.map +0 -1
- package/dist/inspector.js +0 -609
package/dist/inspector.css
DELETED
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
/* ──────────────────────────────────────────────────────────────────────────────
|
|
2
|
-
native-tokens-inspector — Design system inspector component styles.
|
|
3
|
-
Opt-in via: @import '@nonoun/native-ui/css/inspector';
|
|
4
|
-
────────────────────────────────────────────────────────────────────────────── */
|
|
5
|
-
|
|
6
|
-
@layer ui {
|
|
7
|
-
|
|
8
|
-
/* ── Toolbar ── */
|
|
9
|
-
|
|
10
|
-
.native-tokens-inspector-toolbar {
|
|
11
|
-
position: sticky;
|
|
12
|
-
top: 0;
|
|
13
|
-
z-index: 1;
|
|
14
|
-
display: flex;
|
|
15
|
-
gap: 0.5rem;
|
|
16
|
-
padding-block: 0.5rem;
|
|
17
|
-
margin-block-end: 0.5rem;
|
|
18
|
-
background: var(--_ground, var(--_panel));
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.native-tokens-inspector-toolbar > * {
|
|
22
|
-
flex: 1;
|
|
23
|
-
min-width: 0;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/* ── Section Structure ── */
|
|
27
|
-
|
|
28
|
-
.native-tokens-inspector-section {
|
|
29
|
-
margin-block-end: 1rem;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.native-tokens-inspector-section[hidden] {
|
|
33
|
-
display: none;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.native-tokens-inspector-section + .native-tokens-inspector-section:not([hidden]) {
|
|
37
|
-
padding-block-start: 0.5rem;
|
|
38
|
-
border-block-start: 1px solid var(--neutral-border-muted);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.native-tokens-inspector-heading {
|
|
42
|
-
font-size: 0.6875rem;
|
|
43
|
-
font-weight: 600;
|
|
44
|
-
text-transform: uppercase;
|
|
45
|
-
letter-spacing: 0.05em;
|
|
46
|
-
color: var(--neutral-ink-muted);
|
|
47
|
-
margin: 0 0 0.5rem;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.native-tokens-inspector-subheading {
|
|
51
|
-
font-size: 0.625rem;
|
|
52
|
-
font-weight: 500;
|
|
53
|
-
color: var(--neutral-ink-placeholder);
|
|
54
|
-
margin: 0.5rem 0 0.25rem;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/* ── native-tokens-variable ── */
|
|
58
|
-
|
|
59
|
-
:where(native-tokens-variable) {
|
|
60
|
-
display: block;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.native-tokens-variable-row {
|
|
64
|
-
display: grid;
|
|
65
|
-
grid-template-columns: auto 1fr auto;
|
|
66
|
-
align-items: center;
|
|
67
|
-
gap: 0.5rem;
|
|
68
|
-
padding-block: 0.125rem;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.native-tokens-variable-label {
|
|
72
|
-
font-size: 0.6875rem;
|
|
73
|
-
color: var(--neutral-ink);
|
|
74
|
-
white-space: nowrap;
|
|
75
|
-
overflow: hidden;
|
|
76
|
-
text-overflow: ellipsis;
|
|
77
|
-
min-width: 3rem;
|
|
78
|
-
max-width: 5rem;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.native-tokens-variable-value {
|
|
82
|
-
font-size: 0.625rem;
|
|
83
|
-
font-family: ui-monospace, monospace;
|
|
84
|
-
color: var(--neutral-ink-muted);
|
|
85
|
-
text-align: right;
|
|
86
|
-
white-space: nowrap;
|
|
87
|
-
overflow: hidden;
|
|
88
|
-
text-overflow: ellipsis;
|
|
89
|
-
min-width: 3rem;
|
|
90
|
-
max-width: 5rem;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
/* ── native-tokens-colors ── */
|
|
94
|
-
|
|
95
|
-
:where(native-tokens-colors) {
|
|
96
|
-
display: block;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.native-tokens-colors-strip {
|
|
100
|
-
display: flex;
|
|
101
|
-
gap: 2px;
|
|
102
|
-
border-radius: 0.375rem;
|
|
103
|
-
overflow: hidden;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
/* ── native-tokens-color-swatch ── */
|
|
107
|
-
|
|
108
|
-
:where(native-tokens-color-swatch) {
|
|
109
|
-
flex: 1;
|
|
110
|
-
aspect-ratio: 1;
|
|
111
|
-
min-width: 0;
|
|
112
|
-
position: relative;
|
|
113
|
-
display: flex;
|
|
114
|
-
align-items: flex-end;
|
|
115
|
-
justify-content: center;
|
|
116
|
-
cursor: pointer;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.native-tokens-swatch-label {
|
|
120
|
-
font-size: 0.5rem;
|
|
121
|
-
line-height: 1;
|
|
122
|
-
text-align: center;
|
|
123
|
-
padding: 2px 1px;
|
|
124
|
-
white-space: nowrap;
|
|
125
|
-
overflow: hidden;
|
|
126
|
-
text-overflow: ellipsis;
|
|
127
|
-
max-width: 100%;
|
|
128
|
-
pointer-events: none;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
/* ── Swatch Popover ── */
|
|
132
|
-
|
|
133
|
-
.native-tokens-swatch-popover {
|
|
134
|
-
position: fixed;
|
|
135
|
-
position-area: block-end;
|
|
136
|
-
position-try-fallbacks: flip-block;
|
|
137
|
-
margin: 0.25rem 0 0;
|
|
138
|
-
|
|
139
|
-
min-width: 12rem;
|
|
140
|
-
padding: 0.375rem;
|
|
141
|
-
|
|
142
|
-
font-size: 0.6875rem;
|
|
143
|
-
color: var(--neutral-ink);
|
|
144
|
-
background: var(--neutral-modal);
|
|
145
|
-
border: 1px solid var(--neutral-border-muted);
|
|
146
|
-
border-radius: 0.375rem;
|
|
147
|
-
box-shadow: var(--ui-shadow-md);
|
|
148
|
-
|
|
149
|
-
/* Override UA popover styles */
|
|
150
|
-
inset: unset;
|
|
151
|
-
overflow: visible;
|
|
152
|
-
|
|
153
|
-
opacity: 0;
|
|
154
|
-
transform: scale(0.96);
|
|
155
|
-
transition:
|
|
156
|
-
opacity 150ms ease,
|
|
157
|
-
transform 150ms ease,
|
|
158
|
-
display 150ms ease allow-discrete,
|
|
159
|
-
overlay 150ms ease allow-discrete;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.native-tokens-swatch-popover:popover-open {
|
|
163
|
-
opacity: 1;
|
|
164
|
-
transform: scale(1);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
@starting-style {
|
|
168
|
-
.native-tokens-swatch-popover:popover-open {
|
|
169
|
-
opacity: 0;
|
|
170
|
-
transform: scale(0.96);
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.native-tokens-swatch-popover[popover]:not(:popover-open) {
|
|
175
|
-
display: none;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.native-tokens-swatch-popover-header {
|
|
179
|
-
font-size: 0.5625rem;
|
|
180
|
-
font-family: ui-monospace, monospace;
|
|
181
|
-
color: var(--neutral-ink-muted);
|
|
182
|
-
padding: 0.125rem 0.25rem 0.375rem;
|
|
183
|
-
border-bottom: 1px solid var(--neutral-border-muted);
|
|
184
|
-
margin-bottom: 0.25rem;
|
|
185
|
-
white-space: nowrap;
|
|
186
|
-
overflow: hidden;
|
|
187
|
-
text-overflow: ellipsis;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.native-tokens-swatch-popover-row {
|
|
191
|
-
display: flex;
|
|
192
|
-
align-items: center;
|
|
193
|
-
gap: 0.5rem;
|
|
194
|
-
width: 100%;
|
|
195
|
-
padding: 0.25rem;
|
|
196
|
-
border: none;
|
|
197
|
-
border-radius: 0.25rem;
|
|
198
|
-
background: transparent;
|
|
199
|
-
color: inherit;
|
|
200
|
-
font: inherit;
|
|
201
|
-
cursor: pointer;
|
|
202
|
-
text-align: left;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
.native-tokens-swatch-popover-row:hover {
|
|
206
|
-
background: var(--neutral-control);
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
.native-tokens-swatch-popover-label {
|
|
210
|
-
font-size: 0.5625rem;
|
|
211
|
-
font-weight: 600;
|
|
212
|
-
color: var(--neutral-ink-muted);
|
|
213
|
-
min-width: 2.5rem;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
.native-tokens-swatch-popover-value {
|
|
217
|
-
font-size: 0.5625rem;
|
|
218
|
-
font-family: ui-monospace, monospace;
|
|
219
|
-
color: var(--neutral-ink);
|
|
220
|
-
white-space: nowrap;
|
|
221
|
-
overflow: hidden;
|
|
222
|
-
text-overflow: ellipsis;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
/* ── native-tokens-themes ── */
|
|
226
|
-
|
|
227
|
-
:where(native-tokens-themes) {
|
|
228
|
-
display: contents;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
} /* @layer ui */
|
package/dist/inspector.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { NativeTokensVariable } from './inspector/native-tokens-variable-element.ts';
|
|
2
|
-
import { NativeTokensColors } from './inspector/native-tokens-colors-element.ts';
|
|
3
|
-
import { NativeTokensColorSwatch } from './inspector/native-tokens-color-swatch-element.ts';
|
|
4
|
-
import { NativeTokensThemes } from './inspector/native-tokens-themes-element.ts';
|
|
5
|
-
import { NativeTokensInspector } from './inspector/native-tokens-inspector-element.ts';
|
|
6
|
-
import { UILayoutInspector } from './containers/ui-layout-inspector/ui-layout-inspector-element.ts';
|
|
7
|
-
import { buildInspector } from './inspector/build-inspector.ts';
|
|
8
|
-
export { NativeTokensVariable, NativeTokensColors, NativeTokensColorSwatch, NativeTokensThemes, NativeTokensInspector, UILayoutInspector, buildInspector, };
|
|
9
|
-
export type { NativeTokensVariableData } from './inspector/native-tokens-variable-element.ts';
|
|
10
|
-
export type { NativeTokensColorEntry } from './inspector/native-tokens-colors-element.ts';
|
|
11
|
-
export type { NativeTokensThemeEntry } from './inspector/native-tokens-themes-element.ts';
|
|
12
|
-
//# sourceMappingURL=inspector.d.ts.map
|
package/dist/inspector.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inspector.d.ts","sourceRoot":"","sources":["../src/inspector.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,EAAE,uBAAuB,EAAE,MAAM,mDAAmD,CAAC;AAC5F,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,gDAAgD,CAAC;AAavF,OAAO,EAAE,iBAAiB,EAAE,MAAM,iEAAiE,CAAC;AAEpG,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAqBhE,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,uBAAuB,EACvB,kBAAkB,EAClB,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,GACf,CAAC;AACF,YAAY,EAAE,wBAAwB,EAAE,MAAM,+CAA+C,CAAC;AAC9F,YAAY,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AAC1F,YAAY,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC"}
|