@sozialhelden/ui 1.7.0 → 1.8.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/index.d.ts +8 -1
- package/dist/index.js +13 -7
- package/package.json +10 -10
package/dist/index.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
|
25
25
|
import { Slot } from '@radix-ui/react-slot';
|
|
26
26
|
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
27
27
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
28
|
+
import { UIEvent as UIEvent_2 } from 'react';
|
|
28
29
|
import { UseEmblaCarouselType } from 'embla-carousel-react';
|
|
29
30
|
import { VariantProps } from 'class-variance-authority';
|
|
30
31
|
|
|
@@ -239,10 +240,16 @@ export declare function RadioGroup({ className, ...props }: React_2.ComponentPro
|
|
|
239
240
|
|
|
240
241
|
export declare function RadioGroupItem({ className, ...props }: React_2.ComponentProps<typeof RadioGroupPrimitive.Item>): JSX.Element;
|
|
241
242
|
|
|
242
|
-
export declare function ScrollArea({ className, children, ref, ...props }: React_2.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root> & RefAttributes<ScrollAreaRef>
|
|
243
|
+
export declare function ScrollArea({ className, children, ref, onScroll, ...props }: React_2.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root> & RefAttributes<ScrollAreaRef> & {
|
|
244
|
+
onScroll?: (event: UIEvent_2) => void;
|
|
245
|
+
}): JSX.Element;
|
|
243
246
|
|
|
244
247
|
export declare type ScrollAreaRef = {
|
|
245
248
|
scrollTo: (options: ScrollToOptions) => void;
|
|
249
|
+
getScrollPosition: () => {
|
|
250
|
+
left: number;
|
|
251
|
+
top: number;
|
|
252
|
+
};
|
|
246
253
|
};
|
|
247
254
|
|
|
248
255
|
export declare function ScrollBar({ className, orientation, ...props }: React_2.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -11888,26 +11888,32 @@ function PC({
|
|
|
11888
11888
|
className: e,
|
|
11889
11889
|
children: t,
|
|
11890
11890
|
ref: n,
|
|
11891
|
-
|
|
11891
|
+
onScroll: o,
|
|
11892
|
+
...r
|
|
11892
11893
|
}) {
|
|
11893
|
-
const
|
|
11894
|
+
const s = Bo(null);
|
|
11894
11895
|
return Zd(n, () => ({
|
|
11895
|
-
scrollTo: (
|
|
11896
|
-
|
|
11897
|
-
}
|
|
11896
|
+
scrollTo: (a) => {
|
|
11897
|
+
s.current?.scrollTo(a);
|
|
11898
|
+
},
|
|
11899
|
+
getScrollPosition: () => ({
|
|
11900
|
+
left: s.current?.scrollLeft || 0,
|
|
11901
|
+
top: s.current?.scrollTop || 0
|
|
11902
|
+
})
|
|
11898
11903
|
}), []), /* @__PURE__ */ d.jsxs(
|
|
11899
11904
|
uw,
|
|
11900
11905
|
{
|
|
11901
11906
|
"data-slot": "scroll-area",
|
|
11902
11907
|
className: O("relative", e),
|
|
11903
|
-
...
|
|
11908
|
+
...r,
|
|
11904
11909
|
children: [
|
|
11905
11910
|
/* @__PURE__ */ d.jsx(
|
|
11906
11911
|
dw,
|
|
11907
11912
|
{
|
|
11908
|
-
ref:
|
|
11913
|
+
ref: s,
|
|
11909
11914
|
"data-slot": "scroll-area-viewport",
|
|
11910
11915
|
className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
|
|
11916
|
+
onScroll: o,
|
|
11911
11917
|
children: t
|
|
11912
11918
|
}
|
|
11913
11919
|
),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sozialhelden/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"author": "Sozialhelden e.V. <developers@sozialhelden.de>",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -64,26 +64,26 @@
|
|
|
64
64
|
"@semantic-release/changelog": "6.0.3",
|
|
65
65
|
"@semantic-release/git": "10.0.1",
|
|
66
66
|
"@storybook-community/storybook-dark-mode": "6.0.8",
|
|
67
|
-
"@storybook/addon-a11y": "9.1.
|
|
68
|
-
"@storybook/addon-docs": "9.1.
|
|
69
|
-
"@storybook/addon-onboarding": "9.1.
|
|
70
|
-
"@storybook/addon-vitest": "9.1.
|
|
71
|
-
"@storybook/react-vite": "9.1.
|
|
72
|
-
"@tailwindcss/vite": "4.1.
|
|
67
|
+
"@storybook/addon-a11y": "9.1.16",
|
|
68
|
+
"@storybook/addon-docs": "9.1.16",
|
|
69
|
+
"@storybook/addon-onboarding": "9.1.16",
|
|
70
|
+
"@storybook/addon-vitest": "9.1.16",
|
|
71
|
+
"@storybook/react-vite": "9.1.16",
|
|
72
|
+
"@tailwindcss/vite": "4.1.16",
|
|
73
73
|
"@types/react": "19.2.2",
|
|
74
74
|
"@types/react-dom": "19.2.2",
|
|
75
|
-
"@vitejs/plugin-react": "5.0
|
|
75
|
+
"@vitejs/plugin-react": "5.1.0",
|
|
76
76
|
"globals": "16.4.0",
|
|
77
77
|
"husky": "9.1.7",
|
|
78
78
|
"semantic-release": "24.2.9",
|
|
79
|
-
"storybook": "9.1.
|
|
79
|
+
"storybook": "9.1.16",
|
|
80
80
|
"vite": "7.1.12",
|
|
81
81
|
"vite-plugin-dts": "4.5.4"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
84
|
"@fontsource/inter": "^5.2.0",
|
|
85
85
|
"@hookform/resolvers": "^5.2.2",
|
|
86
|
-
"lucide-react": "^0.540.0 || ^0.541.0 || ^0.542.0 || ^0.543.0 || ^0.544.0 || ^0.545.0 || ^0.546.0",
|
|
86
|
+
"lucide-react": "^0.540.0 || ^0.541.0 || ^0.542.0 || ^0.543.0 || ^0.544.0 || ^0.545.0 || ^0.546.0 || ^0.548.0",
|
|
87
87
|
"react": "^19.1.0",
|
|
88
88
|
"react-dom": "^19.1.0",
|
|
89
89
|
"react-hook-form": "^7.62.0",
|