@carbonid1/design-system 5.13.0 → 5.15.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/Card/Card.d.ts +27 -0
- package/dist/Card/Card.js +45 -0
- package/dist/Card/Card.types.d.ts +16 -0
- package/dist/Card/Card.types.js +1 -0
- package/dist/MessageScroller/MessageScroller.js +52 -21
- package/dist/MessageScroller/MessageScroller.types.d.ts +2 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { CardActionProps, CardContentProps, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardRootProps, CardTitleProps } from './Card.types';
|
|
2
|
+
declare const cardVariants: (props?: ({
|
|
3
|
+
elevation?: "raised" | "floating" | null | undefined;
|
|
4
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
5
|
+
/**
|
|
6
|
+
* Structural content card adapted from the shadcn Card shape to design-system tokens.
|
|
7
|
+
*
|
|
8
|
+
* `Card.Root` is the only surface: `elevation="raised"` (default) rests on the page like
|
|
9
|
+
* paper on the desk; `elevation="floating"` lifts above an already-raised surface — a card
|
|
10
|
+
* rendered inside another card or panel — by stepping up to the popover tier, since the
|
|
11
|
+
* four-tier contract has no card-on-card step and `floating` is the only "above everything"
|
|
12
|
+
* surface. Compose the padded body inside `Card.Content`; `Card.Header` / `Card.Title` /
|
|
13
|
+
* `Card.Description` / `Card.Action` / `Card.Footer` are layout and typography slots meant to
|
|
14
|
+
* sit within it. Full-bleed media goes as a direct child of `Card.Root` above `Card.Content`;
|
|
15
|
+
* pair it with `overflow-hidden` on the root so the media clips to the radius (the root's own
|
|
16
|
+
* shadow renders outside the box and is unaffected).
|
|
17
|
+
*/
|
|
18
|
+
export declare const Card: {
|
|
19
|
+
Root: ({ className, elevation, ...props }: CardRootProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
Content: ({ className, ...props }: CardContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
Header: ({ className, ...props }: CardHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
Title: ({ className, ...props }: CardTitleProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
Description: ({ className, ...props }: CardDescriptionProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
Action: ({ className, ...props }: CardActionProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
Footer: ({ className, ...props }: CardFooterProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
};
|
|
27
|
+
export { cardVariants };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cva } from 'class-variance-authority';
|
|
3
|
+
import { cn } from '../helpers/cn/cn';
|
|
4
|
+
const cardVariants = cva('border-border flex min-w-0 flex-col rounded-lg border', {
|
|
5
|
+
variants: {
|
|
6
|
+
elevation: {
|
|
7
|
+
raised: 'bg-card text-card-foreground shadow-card',
|
|
8
|
+
floating: 'bg-popover text-popover-foreground shadow-popover',
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
defaultVariants: { elevation: 'raised' },
|
|
12
|
+
});
|
|
13
|
+
const Root = ({ className, elevation, ...props }) => (_jsx("div", { className: cn(cardVariants({ elevation }), className), ...props }));
|
|
14
|
+
const Content = ({ className, ...props }) => (_jsx("div", { className: cn('flex flex-col gap-4 p-4', className), ...props }));
|
|
15
|
+
// The grid stays single-column until a Card.Action is present, at which point the
|
|
16
|
+
// `has-data` query opens a second auto-width column for it; the action spans both
|
|
17
|
+
// rows so an auto-placed title and description still stack down the first column.
|
|
18
|
+
const Header = ({ className, ...props }) => (_jsx("div", { className: cn('grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 has-data-[card-slot=action]:grid-cols-[1fr_auto]', className), ...props }));
|
|
19
|
+
const Title = ({ className, ...props }) => (_jsx("div", { className: cn('leading-tight font-semibold', className), ...props }));
|
|
20
|
+
const Description = ({ className, ...props }) => (_jsx("div", { className: cn('text-muted-foreground text-sm', className), ...props }));
|
|
21
|
+
const Action = ({ className, ...props }) => (_jsx("div", { "data-card-slot": "action", className: cn('col-start-2 row-span-2 row-start-1 self-start justify-self-end', className), ...props }));
|
|
22
|
+
const Footer = ({ className, ...props }) => (_jsx("div", { className: cn('flex items-center gap-2', className), ...props }));
|
|
23
|
+
/**
|
|
24
|
+
* Structural content card adapted from the shadcn Card shape to design-system tokens.
|
|
25
|
+
*
|
|
26
|
+
* `Card.Root` is the only surface: `elevation="raised"` (default) rests on the page like
|
|
27
|
+
* paper on the desk; `elevation="floating"` lifts above an already-raised surface — a card
|
|
28
|
+
* rendered inside another card or panel — by stepping up to the popover tier, since the
|
|
29
|
+
* four-tier contract has no card-on-card step and `floating` is the only "above everything"
|
|
30
|
+
* surface. Compose the padded body inside `Card.Content`; `Card.Header` / `Card.Title` /
|
|
31
|
+
* `Card.Description` / `Card.Action` / `Card.Footer` are layout and typography slots meant to
|
|
32
|
+
* sit within it. Full-bleed media goes as a direct child of `Card.Root` above `Card.Content`;
|
|
33
|
+
* pair it with `overflow-hidden` on the root so the media clips to the radius (the root's own
|
|
34
|
+
* shadow renders outside the box and is unaffected).
|
|
35
|
+
*/
|
|
36
|
+
export const Card = {
|
|
37
|
+
Root,
|
|
38
|
+
Content,
|
|
39
|
+
Header,
|
|
40
|
+
Title,
|
|
41
|
+
Description,
|
|
42
|
+
Action,
|
|
43
|
+
Footer,
|
|
44
|
+
};
|
|
45
|
+
export { cardVariants };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import type { VariantProps } from 'class-variance-authority';
|
|
3
|
+
import type { cardVariants } from './Card';
|
|
4
|
+
/**
|
|
5
|
+
* `elevation` is the only token-bearing prop: `raised` (default) for a card resting on the
|
|
6
|
+
* page, `floating` for a card that must read as lifted above another raised surface. Every
|
|
7
|
+
* other part is structural and inherits its color from the root.
|
|
8
|
+
*/
|
|
9
|
+
type CardRootProps = ComponentPropsWithoutRef<'div'> & VariantProps<typeof cardVariants>;
|
|
10
|
+
type CardContentProps = ComponentPropsWithoutRef<'div'>;
|
|
11
|
+
type CardHeaderProps = ComponentPropsWithoutRef<'div'>;
|
|
12
|
+
type CardTitleProps = ComponentPropsWithoutRef<'div'>;
|
|
13
|
+
type CardDescriptionProps = ComponentPropsWithoutRef<'div'>;
|
|
14
|
+
type CardActionProps = ComponentPropsWithoutRef<'div'>;
|
|
15
|
+
type CardFooterProps = ComponentPropsWithoutRef<'div'>;
|
|
16
|
+
export type { CardRootProps, CardContentProps, CardHeaderProps, CardTitleProps, CardDescriptionProps, CardActionProps, CardFooterProps, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -5,6 +5,7 @@ import { cn } from '../helpers/cn/cn';
|
|
|
5
5
|
const DEFAULT_SCROLL_EDGE_THRESHOLD = 8;
|
|
6
6
|
const DEFAULT_SCROLL_MARGIN = 0;
|
|
7
7
|
const DEFAULT_SCROLL_PREVIOUS_ITEM_PEEK = 64;
|
|
8
|
+
const SCROLL_ANCHOR_TOLERANCE = 4;
|
|
8
9
|
const SCROLL_TOLERANCE = 0.5;
|
|
9
10
|
const USER_SCROLL_INTENT_KEYS = new Set([
|
|
10
11
|
'ArrowDown',
|
|
@@ -183,6 +184,7 @@ function useMessageScrollerEngine({ autoFollow, defaultScrollPosition, scrollEdg
|
|
|
183
184
|
const scrollPreviousItemPeekRef = useRef(scrollPreviousItemPeek);
|
|
184
185
|
const modeRef = useRef(autoFollow ? 'following-bottom' : 'free-scrolling');
|
|
185
186
|
const autoscrollingRef = useRef(false);
|
|
187
|
+
const userScrollIntentRef = useRef(false);
|
|
186
188
|
// Smooth bottom scrolls can briefly measure as away from bottom while still settling.
|
|
187
189
|
const bottomFollowIntentRef = useRef(autoFollow);
|
|
188
190
|
const ignoreAnchoredBottomResumeFrameRef = useRef(null);
|
|
@@ -264,6 +266,9 @@ function useMessageScrollerEngine({ autoFollow, defaultScrollPosition, scrollEdg
|
|
|
264
266
|
const commitStatus = useCallback(() => {
|
|
265
267
|
const status = measureStatus();
|
|
266
268
|
const isAnchoredMode = modeRef.current === 'anchored-to-message' || modeRef.current === 'settling-jump';
|
|
269
|
+
if (status.isAtBottom) {
|
|
270
|
+
userScrollIntentRef.current = false;
|
|
271
|
+
}
|
|
267
272
|
if (autoFollowRef.current && bottomFollowIntentRef.current && !isAnchoredMode) {
|
|
268
273
|
modeRef.current = 'following-bottom';
|
|
269
274
|
}
|
|
@@ -398,6 +403,7 @@ function useMessageScrollerEngine({ autoFollow, defaultScrollPosition, scrollEdg
|
|
|
398
403
|
const scrollToTop = useCallback(({ behavior = 'auto' } = {}) => {
|
|
399
404
|
clearSpacer();
|
|
400
405
|
setAutoscrolling(false);
|
|
406
|
+
userScrollIntentRef.current = false;
|
|
401
407
|
anchoredElementRef.current = null;
|
|
402
408
|
bottomFollowIntentRef.current = false;
|
|
403
409
|
modeRef.current = 'free-scrolling';
|
|
@@ -409,6 +415,7 @@ function useMessageScrollerEngine({ autoFollow, defaultScrollPosition, scrollEdg
|
|
|
409
415
|
return false;
|
|
410
416
|
}
|
|
411
417
|
clearSpacer();
|
|
418
|
+
userScrollIntentRef.current = false;
|
|
412
419
|
anchoredElementRef.current = null;
|
|
413
420
|
modeRef.current = autoFollowRef.current ? 'following-bottom' : 'free-scrolling';
|
|
414
421
|
bottomFollowIntentRef.current =
|
|
@@ -426,6 +433,7 @@ function useMessageScrollerEngine({ autoFollow, defaultScrollPosition, scrollEdg
|
|
|
426
433
|
}
|
|
427
434
|
clearSpacer();
|
|
428
435
|
setAutoscrolling(false);
|
|
436
|
+
userScrollIntentRef.current = false;
|
|
429
437
|
bottomFollowIntentRef.current = false;
|
|
430
438
|
const effectiveScrollMargin = scrollMarginOption ??
|
|
431
439
|
scrollMarginRef.current + (keepPreviousItemPeek ? scrollPreviousItemPeekRef.current : 0);
|
|
@@ -448,6 +456,34 @@ function useMessageScrollerEngine({ autoFollow, defaultScrollPosition, scrollEdg
|
|
|
448
456
|
setAutoscrolling,
|
|
449
457
|
setSpacerHeight,
|
|
450
458
|
]);
|
|
459
|
+
const scrollToAnchorElement = useCallback((element, options = {}) => scrollToElement(element, {
|
|
460
|
+
align: 'start',
|
|
461
|
+
behavior: options.behavior,
|
|
462
|
+
keepPreviousItemPeek: true,
|
|
463
|
+
scrollMargin: options.scrollMargin,
|
|
464
|
+
}), [scrollToElement]);
|
|
465
|
+
const scrollToLatestAnchor = useCallback(({ behavior = 'auto', scrollMargin: scrollMarginOption, } = {}) => {
|
|
466
|
+
const contentElement = contentElementRef.current;
|
|
467
|
+
const viewportElement = viewportElementRef.current;
|
|
468
|
+
if (!contentElement || !viewportElement) {
|
|
469
|
+
return false;
|
|
470
|
+
}
|
|
471
|
+
const latestAnchorElement = getLastAnchorElement(getMessageElements(contentElement, spacerElementRef.current));
|
|
472
|
+
if (!latestAnchorElement) {
|
|
473
|
+
return scrollToBottom({ behavior });
|
|
474
|
+
}
|
|
475
|
+
const effectiveScrollMargin = scrollMarginOption ?? scrollMarginRef.current + scrollPreviousItemPeekRef.current;
|
|
476
|
+
const anchorTop = getElementViewportTop(latestAnchorElement, viewportElement);
|
|
477
|
+
handledAnchorElementsRef.current.add(latestAnchorElement);
|
|
478
|
+
defaultScrollPositionAppliedRef.current = true;
|
|
479
|
+
if (anchorTop > effectiveScrollMargin + SCROLL_ANCHOR_TOLERANCE) {
|
|
480
|
+
return scrollToAnchorElement(latestAnchorElement, {
|
|
481
|
+
behavior,
|
|
482
|
+
scrollMargin: scrollMarginOption,
|
|
483
|
+
});
|
|
484
|
+
}
|
|
485
|
+
return scrollToBottom({ behavior });
|
|
486
|
+
}, [scrollToAnchorElement, scrollToBottom]);
|
|
451
487
|
const flushPendingScrollToMessage = useCallback(() => {
|
|
452
488
|
const pendingScrollToMessage = pendingScrollToMessageRef.current;
|
|
453
489
|
if (!pendingScrollToMessage) {
|
|
@@ -530,17 +566,13 @@ function useMessageScrollerEngine({ autoFollow, defaultScrollPosition, scrollEdg
|
|
|
530
566
|
if (defaultScrollPositionRef.current === 'last-anchor') {
|
|
531
567
|
const lastAnchorElement = getLastAnchorElement(messageElements);
|
|
532
568
|
if (lastAnchorElement) {
|
|
533
|
-
return
|
|
534
|
-
align: 'start',
|
|
535
|
-
behavior: 'auto',
|
|
536
|
-
keepPreviousItemPeek: true,
|
|
537
|
-
});
|
|
569
|
+
return scrollToAnchorElement(lastAnchorElement);
|
|
538
570
|
}
|
|
539
571
|
}
|
|
540
572
|
const didScroll = scrollToBottom({ behavior: 'auto' });
|
|
541
573
|
scheduleDefaultBottomScroll();
|
|
542
574
|
return didScroll;
|
|
543
|
-
}, [scheduleDefaultBottomScroll,
|
|
575
|
+
}, [scheduleDefaultBottomScroll, scrollToAnchorElement, scrollToBottom, scrollToTop]);
|
|
544
576
|
const restorePrependAnchor = useCallback(() => {
|
|
545
577
|
const restore = prependRestoreRef.current;
|
|
546
578
|
const viewportElement = viewportElementRef.current;
|
|
@@ -565,12 +597,8 @@ function useMessageScrollerEngine({ autoFollow, defaultScrollPosition, scrollEdg
|
|
|
565
597
|
modeRef.current !== 'anchored-to-message') {
|
|
566
598
|
return false;
|
|
567
599
|
}
|
|
568
|
-
return
|
|
569
|
-
|
|
570
|
-
behavior: 'auto',
|
|
571
|
-
keepPreviousItemPeek: true,
|
|
572
|
-
});
|
|
573
|
-
}, [scrollToElement]);
|
|
600
|
+
return scrollToAnchorElement(anchoredElement);
|
|
601
|
+
}, [scrollToAnchorElement]);
|
|
574
602
|
const handleContentChange = useCallback(() => {
|
|
575
603
|
const contentElement = contentElementRef.current;
|
|
576
604
|
if (!contentElement) {
|
|
@@ -591,12 +619,10 @@ function useMessageScrollerEngine({ autoFollow, defaultScrollPosition, scrollEdg
|
|
|
591
619
|
const nextAnchorElement = getFirstUnhandledAnchorElement(messageElements, handledAnchorElementsRef.current);
|
|
592
620
|
if (nextAnchorElement) {
|
|
593
621
|
handledAnchorElementsRef.current.add(nextAnchorElement);
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
});
|
|
599
|
-
return;
|
|
622
|
+
if (!userScrollIntentRef.current) {
|
|
623
|
+
scrollToAnchorElement(nextAnchorElement);
|
|
624
|
+
return;
|
|
625
|
+
}
|
|
600
626
|
}
|
|
601
627
|
if (autoFollowRef.current && modeRef.current === 'following-bottom') {
|
|
602
628
|
scrollToBottom({ behavior: 'auto' });
|
|
@@ -617,7 +643,7 @@ function useMessageScrollerEngine({ autoFollow, defaultScrollPosition, scrollEdg
|
|
|
617
643
|
reanchorToAnchoredMessage,
|
|
618
644
|
restorePrependAnchor,
|
|
619
645
|
scrollToBottom,
|
|
620
|
-
|
|
646
|
+
scrollToAnchorElement,
|
|
621
647
|
syncAfterScroll,
|
|
622
648
|
]);
|
|
623
649
|
const handleResize = useCallback(() => {
|
|
@@ -643,11 +669,13 @@ function useMessageScrollerEngine({ autoFollow, defaultScrollPosition, scrollEdg
|
|
|
643
669
|
modeRef.current = 'following-bottom';
|
|
644
670
|
autoscrollingRef.current = false;
|
|
645
671
|
bottomFollowIntentRef.current = false;
|
|
672
|
+
userScrollIntentRef.current = false;
|
|
646
673
|
anchoredElementRef.current = null;
|
|
647
674
|
clearSpacer();
|
|
648
675
|
syncAfterScroll();
|
|
649
676
|
}, [clearSpacer, measureStatus, syncAfterScroll]);
|
|
650
677
|
const markUserScrollIntent = useCallback(() => {
|
|
678
|
+
userScrollIntentRef.current = true;
|
|
651
679
|
if (modeRef.current === 'following-bottom' ||
|
|
652
680
|
modeRef.current === 'anchored-to-message' ||
|
|
653
681
|
modeRef.current === 'settling-jump') {
|
|
@@ -688,6 +716,7 @@ function useMessageScrollerEngine({ autoFollow, defaultScrollPosition, scrollEdg
|
|
|
688
716
|
handledAnchorElementsRef.current = new WeakSet();
|
|
689
717
|
anchoredElementRef.current = null;
|
|
690
718
|
bottomFollowIntentRef.current = false;
|
|
719
|
+
userScrollIntentRef.current = false;
|
|
691
720
|
defaultScrollPositionAppliedRef.current = false;
|
|
692
721
|
prependRestoreRef.current = null;
|
|
693
722
|
ignoreAnchoredBottomResumeRef.current = false;
|
|
@@ -718,6 +747,7 @@ function useMessageScrollerEngine({ autoFollow, defaultScrollPosition, scrollEdg
|
|
|
718
747
|
preserveScrollOnPrependRef,
|
|
719
748
|
registerMessage,
|
|
720
749
|
scrollToBottom,
|
|
750
|
+
scrollToLatestAnchor,
|
|
721
751
|
scrollToMessage,
|
|
722
752
|
scrollToTop,
|
|
723
753
|
setContentElement,
|
|
@@ -734,6 +764,7 @@ function useMessageScrollerEngine({ autoFollow, defaultScrollPosition, scrollEdg
|
|
|
734
764
|
markUserScrollIntent,
|
|
735
765
|
registerMessage,
|
|
736
766
|
scrollToBottom,
|
|
767
|
+
scrollToLatestAnchor,
|
|
737
768
|
scrollToMessage,
|
|
738
769
|
scrollToTop,
|
|
739
770
|
setContentElement,
|
|
@@ -890,8 +921,8 @@ function MessageScrollerItem({ children, messageId, ref, scrollAnchor = false, .
|
|
|
890
921
|
}
|
|
891
922
|
/** Headless transcript scroller shared by carbonid1 apps; consumers own row rendering. */
|
|
892
923
|
function useMessageScroller() {
|
|
893
|
-
const { scrollToBottom, scrollToMessage, scrollToTop } = useMessageScrollerContext('useMessageScroller');
|
|
894
|
-
return useMemo(() => ({ scrollToBottom, scrollToMessage, scrollToTop }), [scrollToBottom, scrollToMessage, scrollToTop]);
|
|
924
|
+
const { scrollToBottom, scrollToLatestAnchor, scrollToMessage, scrollToTop } = useMessageScrollerContext('useMessageScroller');
|
|
925
|
+
return useMemo(() => ({ scrollToBottom, scrollToLatestAnchor, scrollToMessage, scrollToTop }), [scrollToBottom, scrollToLatestAnchor, scrollToMessage, scrollToTop]);
|
|
895
926
|
}
|
|
896
927
|
function useMessageScrollerStatus() {
|
|
897
928
|
const { statusStore } = useMessageScrollerContext('useMessageScrollerStatus');
|
|
@@ -6,8 +6,10 @@ export type MessageScrollerScrollOptions = {
|
|
|
6
6
|
behavior?: ScrollBehavior;
|
|
7
7
|
scrollMargin?: number;
|
|
8
8
|
};
|
|
9
|
+
export type MessageScrollerLatestAnchorOptions = Pick<MessageScrollerScrollOptions, 'behavior' | 'scrollMargin'>;
|
|
9
10
|
export type MessageScrollerController = {
|
|
10
11
|
scrollToBottom: (options?: MessageScrollerScrollOptions) => boolean;
|
|
12
|
+
scrollToLatestAnchor: (options?: MessageScrollerLatestAnchorOptions) => boolean;
|
|
11
13
|
scrollToMessage: (messageId: string, options?: MessageScrollerScrollOptions) => boolean;
|
|
12
14
|
scrollToTop: (options?: MessageScrollerScrollOptions) => boolean;
|
|
13
15
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ export { Badge, badgeVariants } from './Badge/Badge';
|
|
|
3
3
|
export type { BadgeProps } from './Badge/Badge.types';
|
|
4
4
|
export { Button, buttonVariants } from './Button/Button';
|
|
5
5
|
export type { ButtonProps } from './Button/Button.types';
|
|
6
|
+
export { Card, cardVariants } from './Card/Card';
|
|
7
|
+
export type { CardActionProps, CardContentProps, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardRootProps, CardTitleProps, } from './Card/Card.types';
|
|
6
8
|
export { Kbd, kbdVariants } from './Kbd/Kbd';
|
|
7
9
|
export type { KbdProps } from './Kbd/Kbd.types';
|
|
8
10
|
export { Text, textVariants } from './Text/Text';
|
|
@@ -23,7 +25,7 @@ export type { Column, TableProps } from './Table/Table.types';
|
|
|
23
25
|
export { TableScrollRegion } from './TableScrollRegion/TableScrollRegion';
|
|
24
26
|
export type { TableScrollRegionProps } from './TableScrollRegion/TableScrollRegion.types';
|
|
25
27
|
export { MessageScroller, useMessageScroller, useMessageScrollerStatus, useMessageScrollerVisibility, } from './MessageScroller/MessageScroller';
|
|
26
|
-
export type { MessageScrollerController, MessageScrollerContentProps, MessageScrollerDefaultScrollPosition, MessageScrollerItemProps, MessageScrollerProviderProps, MessageScrollerRootProps, MessageScrollerScrollAlign, MessageScrollerScrollOptions, MessageScrollerStatus, MessageScrollerViewportProps, MessageScrollerVisibility, } from './MessageScroller/MessageScroller.types';
|
|
28
|
+
export type { MessageScrollerController, MessageScrollerContentProps, MessageScrollerDefaultScrollPosition, MessageScrollerItemProps, MessageScrollerLatestAnchorOptions, MessageScrollerProviderProps, MessageScrollerRootProps, MessageScrollerScrollAlign, MessageScrollerScrollOptions, MessageScrollerStatus, MessageScrollerViewportProps, MessageScrollerVisibility, } from './MessageScroller/MessageScroller.types';
|
|
27
29
|
export { Tooltip } from './Tooltip/Tooltip';
|
|
28
30
|
export { ThemeProvider } from './ThemeProvider/ThemeProvider';
|
|
29
31
|
export { ThemeCycler } from './ThemeCycler/ThemeCycler';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { HotkeysProvider as HotkeysProviderHook, isHotkeyPressed as isHotkeyPressedHook, useHotkeys as useHotkeysHook, useHotkeysContext as useHotkeysContextHook, useRecordHotkeys as useRecordHotkeysHook, } from 'react-hotkeys-hook';
|
|
2
2
|
export { Badge, badgeVariants } from './Badge/Badge';
|
|
3
3
|
export { Button, buttonVariants } from './Button/Button';
|
|
4
|
+
export { Card, cardVariants } from './Card/Card';
|
|
4
5
|
export { Kbd, kbdVariants } from './Kbd/Kbd';
|
|
5
6
|
export { Text, textVariants } from './Text/Text';
|
|
6
7
|
export { ProgressRing } from './ProgressRing/ProgressRing';
|