@yenio-pld/blocks 1.2.0-rc.22 → 1.2.0-rc.24

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.
@@ -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?: "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;
7
+ variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | null | undefined;
8
+ size?: "default" | "sm" | "xs" | "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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yenio-pld/blocks",
3
- "version": "1.2.0-rc.22",
3
+ "version": "1.2.0-rc.24",
4
4
  "description": "Shared UI components for Yenio applications",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
package/src/theme.css CHANGED
@@ -196,10 +196,21 @@
196
196
  --tracking-widest: calc(var(--tracking-normal) + 0.1em);
197
197
  }
198
198
 
199
- /* Global elegant scrollbars — thin overlay thumb, transparent track, theme tokens. */
200
- * {
201
- scrollbar-width: thin;
202
- scrollbar-color: var(--scrollbar-thumb) transparent;
199
+ /*
200
+ * Global elegant scrollbars — thin thumb, transparent track, theme tokens.
201
+ *
202
+ * Chrome 121+ treats standard `scrollbar-width` / `scrollbar-color` as winning
203
+ * over every `::-webkit-scrollbar-*` rule. Applying both on the same element
204
+ * drops the custom thumb and shows classic platform scrollbars with
205
+ * increment/decrement arrows. Keep the standard properties for engines that
206
+ * do not implement `::-webkit-scrollbar` (Firefox); use WebKit pseudos
207
+ * everywhere else so arrows stay hidden.
208
+ */
209
+ @supports not selector(::-webkit-scrollbar) {
210
+ * {
211
+ scrollbar-width: thin;
212
+ scrollbar-color: var(--scrollbar-thumb) transparent;
213
+ }
203
214
  }
204
215
 
205
216
  *::-webkit-scrollbar {
@@ -211,6 +222,26 @@
211
222
  background: transparent;
212
223
  }
213
224
 
225
+ *::-webkit-scrollbar-button {
226
+ display: none;
227
+ width: 0;
228
+ height: 0;
229
+ appearance: none;
230
+ -webkit-appearance: none;
231
+ background: transparent;
232
+ border: none;
233
+ }
234
+
235
+ *::-webkit-scrollbar-button:single-button,
236
+ *::-webkit-scrollbar-button:vertical:start:decrement,
237
+ *::-webkit-scrollbar-button:vertical:end:increment,
238
+ *::-webkit-scrollbar-button:horizontal:start:decrement,
239
+ *::-webkit-scrollbar-button:horizontal:end:increment {
240
+ display: none;
241
+ width: 0;
242
+ height: 0;
243
+ }
244
+
214
245
  *::-webkit-scrollbar-thumb {
215
246
  background-color: var(--scrollbar-thumb);
216
247
  border-radius: 9999px;