@gv-tech/ui-core 2.16.0 → 2.17.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/README.md CHANGED
@@ -5,7 +5,7 @@ Shared component contracts, property types, and variants for the GV Tech design
5
5
  ## Installation
6
6
 
7
7
  ```bash
8
- yarn add @gv-tech/ui-core
8
+ bun add @gv-tech/ui-core
9
9
  ```
10
10
 
11
11
  ## Usage
package/dist/index.d.ts CHANGED
@@ -865,6 +865,32 @@ export declare interface ScrollBarBaseProps {
865
865
  forceMount?: true;
866
866
  }
867
867
 
868
+ export declare interface ScrollToTopBaseProps {
869
+ /**
870
+ * Number of pixels that must be scrolled before the control appears.
871
+ *
872
+ * @default 240
873
+ */
874
+ threshold?: number;
875
+ /**
876
+ * Delay in milliseconds before the page scroll-to-top is triggered,
877
+ * allowing the exit animation to complete first.
878
+ *
879
+ * @default 450
880
+ */
881
+ exitDuration?: number;
882
+ /**
883
+ * Scroll behavior used when returning to the top.
884
+ *
885
+ * @default 'smooth'
886
+ */
887
+ behavior?: ScrollBehavior;
888
+ /** Optional className for custom positioning and styling. */
889
+ className?: string;
890
+ /** Accessible label for the control. */
891
+ label?: string;
892
+ }
893
+
868
894
  export declare interface SearchBaseProps {
869
895
  children?: React_2.ReactNode;
870
896
  open?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gv-tech/ui-core",
3
- "version": "2.16.0",
3
+ "version": "2.17.0",
4
4
  "description": "Shared component contracts (props, variants, sizes) for the GV Tech design system",
5
5
  "repository": {
6
6
  "type": "git",
@@ -0,0 +1,25 @@
1
+ export interface ScrollToTopBaseProps {
2
+ /**
3
+ * Number of pixels that must be scrolled before the control appears.
4
+ *
5
+ * @default 240
6
+ */
7
+ threshold?: number;
8
+ /**
9
+ * Delay in milliseconds before the page scroll-to-top is triggered,
10
+ * allowing the exit animation to complete first.
11
+ *
12
+ * @default 450
13
+ */
14
+ exitDuration?: number;
15
+ /**
16
+ * Scroll behavior used when returning to the top.
17
+ *
18
+ * @default 'smooth'
19
+ */
20
+ behavior?: ScrollBehavior;
21
+ /** Optional className for custom positioning and styling. */
22
+ className?: string;
23
+ /** Accessible label for the control. */
24
+ label?: string;
25
+ }
package/src/index.ts CHANGED
@@ -230,6 +230,9 @@ export type {
230
230
  // Scroll Area
231
231
  export type { ScrollAreaBaseProps, ScrollBarBaseProps } from './contracts/scroll-area';
232
232
 
233
+ // Scroll To Top
234
+ export type { ScrollToTopBaseProps } from './contracts/scroll-to-top';
235
+
233
236
  // Search
234
237
  export type { SearchBaseProps, SearchTriggerBaseProps } from './contracts/search';
235
238