@threadlabs/looma 0.53.16 → 0.53.17
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/components/ui-input/ui-input.html +35 -0
- package/dist/index.js +1 -1
- package/docs/catalog.json +46 -1
- package/editor/components.css +37 -0
- package/package.json +1 -1
- package/styles/ui-input.css +37 -0
|
@@ -120,6 +120,41 @@
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
+
/* The native file action uses the outline button palette. The input still owns pointer and keyboard activation. */
|
|
124
|
+
:host[type="file"]::file-selector-button {
|
|
125
|
+
appearance: none;
|
|
126
|
+
min-block-size: var(--ui-control-size-sm);
|
|
127
|
+
margin-inline-end: var(--ui-space-2) !important;
|
|
128
|
+
padding: var(--ui-control-inset-block-sm, var(--ui-space-1)) var(--ui-action-inset-sm, var(--ui-space-2)) !important;
|
|
129
|
+
border: var(--ui-border-width) solid var(--ui-accent-outline-border, var(--ui-accent-subtle-text));
|
|
130
|
+
border-radius: var(--ui-action-radius, var(--ui-radius-md));
|
|
131
|
+
background-color: transparent;
|
|
132
|
+
background-image: linear-gradient(var(--ui-accent-wash), var(--ui-accent-wash));
|
|
133
|
+
color: var(--ui-accent-subtle-text);
|
|
134
|
+
box-shadow: var(--ui-neutral-shadow);
|
|
135
|
+
font: inherit;
|
|
136
|
+
font-weight: var(--ui-font-medium);
|
|
137
|
+
cursor: pointer;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
:host[type="file"]:enabled:hover::file-selector-button {
|
|
141
|
+
background-image: linear-gradient(var(--ui-accent-wash-hover), var(--ui-accent-wash-hover));
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
:host[type="file"]:enabled:active::file-selector-button {
|
|
145
|
+
background-image: none;
|
|
146
|
+
background-color: oklch(from var(--ui-accent) l c h / calc(18% * var(--ui-tonal-opacity, 1)));
|
|
147
|
+
box-shadow: var(--ui-pressed);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
:host[type="file"]:disabled::file-selector-button {
|
|
151
|
+
border-color: var(--ui-control-border);
|
|
152
|
+
background: transparent;
|
|
153
|
+
color: var(--ui-disabled-text);
|
|
154
|
+
box-shadow: none;
|
|
155
|
+
cursor: not-allowed;
|
|
156
|
+
}
|
|
157
|
+
|
|
123
158
|
/* Tabbing into a field selects its text; tint that selection softly instead of the page highlight. */
|
|
124
159
|
:host::selection {
|
|
125
160
|
background: color-mix(in srgb, var(--ui-accent-solid) 20%, transparent);
|