@yenio-pld/blocks 1.2.0-rc.21 → 1.2.0-rc.22
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/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/ui/button.d.ts +2 -2
- package/package.json +1 -1
- package/src/theme.css +48 -0
package/dist/ui/button.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ import { Button as Button$1 } from '@base-ui/react/button';
|
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
5
|
|
|
6
6
|
declare const buttonVariants: (props?: ({
|
|
7
|
-
variant?: "
|
|
8
|
-
size?: "default" | "
|
|
7
|
+
variant?: "default" | "outline" | "secondary" | "ghost" | "destructive" | "link" | null | undefined;
|
|
8
|
+
size?: "default" | "xs" | "sm" | "lg" | "touch" | "xl" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | "icon-touch" | "icon-xl" | null | undefined;
|
|
9
9
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
10
|
declare function Button({ className, variant, size, ...props }: Button$1.Props & VariantProps<typeof buttonVariants>): React.JSX.Element;
|
|
11
11
|
|
package/package.json
CHANGED
package/src/theme.css
CHANGED
|
@@ -65,6 +65,10 @@
|
|
|
65
65
|
--shadow-2xl: 0 1px 3px 0px hsl(0 0% 0% / 0.25);
|
|
66
66
|
--tracking-normal: 0em;
|
|
67
67
|
--spacing: 0.25rem;
|
|
68
|
+
/* Theme-sensitive overlay scrollbars (Apple-like thin thumb). */
|
|
69
|
+
--scrollbar-size: 0.625rem;
|
|
70
|
+
--scrollbar-thumb: oklch(0.28 0.02 250 / 0.28);
|
|
71
|
+
--scrollbar-thumb-hover: oklch(0.28 0.02 250 / 0.45);
|
|
68
72
|
color-scheme: light;
|
|
69
73
|
}
|
|
70
74
|
|
|
@@ -126,6 +130,8 @@
|
|
|
126
130
|
--shadow-xl:
|
|
127
131
|
0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 8px 10px -1px hsl(0 0% 0% / 0.1);
|
|
128
132
|
--shadow-2xl: 0 1px 3px 0px hsl(0 0% 0% / 0.25);
|
|
133
|
+
--scrollbar-thumb: oklch(0.9 0.01 230 / 0.28);
|
|
134
|
+
--scrollbar-thumb-hover: oklch(0.9 0.01 230 / 0.45);
|
|
129
135
|
color-scheme: dark;
|
|
130
136
|
}
|
|
131
137
|
|
|
@@ -189,3 +195,45 @@
|
|
|
189
195
|
--tracking-wider: calc(var(--tracking-normal) + 0.05em);
|
|
190
196
|
--tracking-widest: calc(var(--tracking-normal) + 0.1em);
|
|
191
197
|
}
|
|
198
|
+
|
|
199
|
+
/* Global elegant scrollbars — thin overlay thumb, transparent track, theme tokens. */
|
|
200
|
+
* {
|
|
201
|
+
scrollbar-width: thin;
|
|
202
|
+
scrollbar-color: var(--scrollbar-thumb) transparent;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
*::-webkit-scrollbar {
|
|
206
|
+
width: var(--scrollbar-size);
|
|
207
|
+
height: var(--scrollbar-size);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
*::-webkit-scrollbar-track {
|
|
211
|
+
background: transparent;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
*::-webkit-scrollbar-thumb {
|
|
215
|
+
background-color: var(--scrollbar-thumb);
|
|
216
|
+
border-radius: 9999px;
|
|
217
|
+
border: 3px solid transparent;
|
|
218
|
+
background-clip: content-box;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
*::-webkit-scrollbar-thumb:hover {
|
|
222
|
+
background-color: var(--scrollbar-thumb-hover);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
*::-webkit-scrollbar-corner {
|
|
226
|
+
background: transparent;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/* Opt-out for intentional overlay / chip rails (see SidebarContent). */
|
|
230
|
+
@utility no-scrollbar {
|
|
231
|
+
-ms-overflow-style: none;
|
|
232
|
+
scrollbar-width: none;
|
|
233
|
+
|
|
234
|
+
&::-webkit-scrollbar {
|
|
235
|
+
display: none;
|
|
236
|
+
width: 0;
|
|
237
|
+
height: 0;
|
|
238
|
+
}
|
|
239
|
+
}
|