@khipu/design-system 0.2.0-alpha.82 → 0.2.0-alpha.84
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/beercss/khipu-beercss.css +124 -2
- package/dist/beercss/khipu-beercss.js +67 -0
- package/dist/beercss/khipu-beercss.min.css +1 -1
- package/dist/beercss/khipu-beercss.min.js +1 -1
- package/dist/beercss/khipu-beercss.scoped.css +124 -2
- package/dist/beercss/khipu-beercss.scoped.min.css +1 -1
- package/dist/beercss/metadata.json +5 -5
- package/dist/index.d.mts +77 -4
- package/dist/index.d.ts +77 -4
- package/dist/index.js +227 -141
- package/dist/index.mjs +198 -114
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@khipu/design-system/beercss",
|
|
3
|
-
"version": "0.2.0-alpha.
|
|
3
|
+
"version": "0.2.0-alpha.84",
|
|
4
4
|
"description": "Khipu BeerCSS bundle with Material Design 3 and Khipu customizations",
|
|
5
|
-
"buildDate": "2026-
|
|
5
|
+
"buildDate": "2026-07-01T17:49:02.523Z",
|
|
6
6
|
"includes": {
|
|
7
7
|
"beercss": "4.0.1",
|
|
8
8
|
"khipu-tokens": "latest",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
},
|
|
20
20
|
"scopeClass": ".kds-theme-root",
|
|
21
21
|
"cdn": {
|
|
22
|
-
"css": "https://cdn.jsdelivr.net/npm/@khipu/design-system@0.2.0-alpha.
|
|
23
|
-
"cssScoped": "https://cdn.jsdelivr.net/npm/@khipu/design-system@0.2.0-alpha.
|
|
24
|
-
"js": "https://cdn.jsdelivr.net/npm/@khipu/design-system@0.2.0-alpha.
|
|
22
|
+
"css": "https://cdn.jsdelivr.net/npm/@khipu/design-system@0.2.0-alpha.84/dist/beercss/khipu-beercss.min.css",
|
|
23
|
+
"cssScoped": "https://cdn.jsdelivr.net/npm/@khipu/design-system@0.2.0-alpha.84/dist/beercss/khipu-beercss.scoped.min.css",
|
|
24
|
+
"js": "https://cdn.jsdelivr.net/npm/@khipu/design-system@0.2.0-alpha.84/dist/beercss/khipu-beercss.min.js"
|
|
25
25
|
}
|
|
26
26
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -3298,6 +3298,40 @@ declare const KdsCountdown: React__default.ForwardRefExoticComponent<KdsCountdow
|
|
|
3298
3298
|
type KdsSegmentedTabsProps = KdsTabsProps;
|
|
3299
3299
|
declare const KdsSegmentedTabs: React$1.ForwardRefExoticComponent<KdsTabsProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3300
3300
|
|
|
3301
|
+
/**
|
|
3302
|
+
* Khipu Design System - Floating Action Button (FAB)
|
|
3303
|
+
*
|
|
3304
|
+
* A circular, icon-only floating button built with native HTML and kds-* CSS classes.
|
|
3305
|
+
* Presentational only: pair it with `useHideOnScroll` and drive the `hidden` prop for
|
|
3306
|
+
* hide-on-scroll behavior.
|
|
3307
|
+
*/
|
|
3308
|
+
|
|
3309
|
+
type KdsFabPosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'none';
|
|
3310
|
+
interface KdsFabProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3311
|
+
/** Material Symbols icon name, e.g. "close". */
|
|
3312
|
+
icon: string;
|
|
3313
|
+
/** Accessible label — required, since the button is icon-only. */
|
|
3314
|
+
'aria-label': string;
|
|
3315
|
+
/** Corner to pin to (fixed). Use `none` to leave positioning to the consumer. Default `top-right`. */
|
|
3316
|
+
position?: KdsFabPosition;
|
|
3317
|
+
/** When true, animates the button out (fade + slight move) and disables interaction. */
|
|
3318
|
+
hidden?: boolean;
|
|
3319
|
+
}
|
|
3320
|
+
/**
|
|
3321
|
+
* Floating action button — circular, icon-only, with an animated hide state.
|
|
3322
|
+
*
|
|
3323
|
+
* @example
|
|
3324
|
+
* ```tsx
|
|
3325
|
+
* // Static, pinned top-right
|
|
3326
|
+
* <KdsFab icon="close" aria-label="Cancelar pago" onClick={openCancel} />
|
|
3327
|
+
*
|
|
3328
|
+
* // Hide on scroll down, show on scroll up
|
|
3329
|
+
* const { hidden } = useHideOnScroll();
|
|
3330
|
+
* <KdsFab icon="close" aria-label="Cancelar pago" hidden={hidden} onClick={openCancel} />
|
|
3331
|
+
* ```
|
|
3332
|
+
*/
|
|
3333
|
+
declare const KdsFab: React__default.ForwardRefExoticComponent<KdsFabProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
3334
|
+
|
|
3301
3335
|
interface KdsBankRowProps extends Omit<React__default.ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'name'> {
|
|
3302
3336
|
/**
|
|
3303
3337
|
* Contenido principal de la fila. Acepta texto o nodo — permite contenido en
|
|
@@ -3753,6 +3787,11 @@ interface ExpandPanelProps {
|
|
|
3753
3787
|
id: string;
|
|
3754
3788
|
className: string;
|
|
3755
3789
|
hidden: boolean;
|
|
3790
|
+
/**
|
|
3791
|
+
* Ref the hook uses to drive the panel's `max-height` off its own `scrollHeight`, so the
|
|
3792
|
+
* expand animation fits any content length instead of clipping against a fixed CSS cap.
|
|
3793
|
+
*/
|
|
3794
|
+
ref: (node: HTMLDivElement | null) => void;
|
|
3756
3795
|
}
|
|
3757
3796
|
/**
|
|
3758
3797
|
* Result of {@link useExpandToggle}.
|
|
@@ -3779,9 +3818,9 @@ interface UseExpandToggleResult {
|
|
|
3779
3818
|
*
|
|
3780
3819
|
* It links button and panel via a stable `aria-controls`/`id` pair (`useId`), reflects the
|
|
3781
3820
|
* open state through `aria-expanded` (which drives the caret rotation in CSS) and toggles the
|
|
3782
|
-
* `open` class on the panel
|
|
3783
|
-
* attribute is also set when closed — the DS provides a
|
|
3784
|
-
* keeps the panel `display:block` so the collapse still animates.
|
|
3821
|
+
* `open` class on the panel, sizing its `max-height` to the content's `scrollHeight` so the
|
|
3822
|
+
* animation never clips. The `hidden` attribute is also set when closed — the DS provides a
|
|
3823
|
+
* `.kds-expand-panel[hidden]` rule that keeps the panel `display:block` so the collapse still animates.
|
|
3785
3824
|
*
|
|
3786
3825
|
* Supports controlled (`open` + `onOpenChange`) and uncontrolled (`defaultOpen`) usage. Combine
|
|
3787
3826
|
* with `useStickyInvoiceCollapse({ onCollapseStart: () => setOpen(false) })` to close on scroll.
|
|
@@ -3793,6 +3832,40 @@ interface UseExpandToggleResult {
|
|
|
3793
3832
|
*/
|
|
3794
3833
|
declare function useExpandToggle(options?: UseExpandToggleOptions): UseExpandToggleResult;
|
|
3795
3834
|
|
|
3835
|
+
/**
|
|
3836
|
+
* Options for {@link useHideOnScroll}.
|
|
3837
|
+
*/
|
|
3838
|
+
interface UseHideOnScrollOptions {
|
|
3839
|
+
/** Minimum scroll delta (px) before toggling, to avoid jitter. Default 8. */
|
|
3840
|
+
threshold?: number;
|
|
3841
|
+
/** Scroll offset (px) at/under which the element is always visible. Default 0. */
|
|
3842
|
+
topOffset?: number;
|
|
3843
|
+
}
|
|
3844
|
+
/**
|
|
3845
|
+
* Result of {@link useHideOnScroll}.
|
|
3846
|
+
*/
|
|
3847
|
+
interface UseHideOnScrollResult {
|
|
3848
|
+
/** True when the element should be hidden (user scrolled down past the threshold). */
|
|
3849
|
+
hidden: boolean;
|
|
3850
|
+
}
|
|
3851
|
+
/**
|
|
3852
|
+
* Hide-on-scroll-down / show-on-scroll-up for floating UI (e.g. `KdsFab`).
|
|
3853
|
+
*
|
|
3854
|
+
* Returns `{ hidden }`: starts visible, hides once the user scrolls **down** past
|
|
3855
|
+
* `threshold`, shows again as soon as they scroll **up**, and is always visible while
|
|
3856
|
+
* within `topOffset` of the top. Coalesced through `requestAnimationFrame` so it stays cheap.
|
|
3857
|
+
*
|
|
3858
|
+
* Works standalone (`window.scrollY`) and **embedded in an iframe**, where the widget does
|
|
3859
|
+
* not scroll internally and the parent posts the scroll offset via
|
|
3860
|
+
* `postMessage({ type: 'VIEWPORT_OFFSET', offsetTop })` — the same mechanism as
|
|
3861
|
+
* {@link useStickyInvoiceCollapse}.
|
|
3862
|
+
*
|
|
3863
|
+
* @example
|
|
3864
|
+
* const { hidden } = useHideOnScroll();
|
|
3865
|
+
* <KdsFab icon="close" aria-label="Cancelar" hidden={hidden} onClick={open} />
|
|
3866
|
+
*/
|
|
3867
|
+
declare function useHideOnScroll(options?: UseHideOnScrollOptions): UseHideOnScrollResult;
|
|
3868
|
+
|
|
3796
3869
|
/**
|
|
3797
3870
|
* Khipu Design System - Core Utilities
|
|
3798
3871
|
*
|
|
@@ -3811,4 +3884,4 @@ declare function getContrastColor(hex: string): string;
|
|
|
3811
3884
|
*/
|
|
3812
3885
|
declare function lighten(hex: string, amount: number): string;
|
|
3813
3886
|
|
|
3814
|
-
export { type Colors, type ExpandPanelProps, type ExpandToggleProps, KdsAccordion, KdsAccordionDetails, type KdsAccordionDetailsProps, type KdsAccordionProps, KdsAccordionSummary, type KdsAccordionSummaryProps, KdsAlert, type KdsAlertProps, type KdsAlertSeverity, KdsBankList, type KdsBankListProps, KdsBankModal, type KdsBankModalProps, KdsBankRow, type KdsBankRowProps, KdsBillAttachment, type KdsBillAttachmentProps, KdsBillAttachments, type KdsBillAttachmentsProps, KdsBottomSheet, type KdsBottomSheetProps, KdsButton, type KdsButtonProps, type KdsButtonSize, type KdsButtonVariant, KdsCard, KdsCardBody, KdsCardFooter, KdsCardHeader, KdsCardPlan, type KdsCardPlanProps, type KdsCardProps, type KdsCardSectionProps, KdsCardSelector, type KdsCardSelectorProps, type KdsCardVariant, KdsCheckbox, type KdsCheckboxProps, KdsChip, type KdsChipColor, type KdsChipProps, KdsCopyButton, type KdsCopyButtonProps, KdsCopyRow, type KdsCopyRowProps, KdsCopyableTable, type KdsCopyableTableProps, type KdsCopyableTableRow, KdsCountdown, type KdsCountdownProps, KdsDivider, type KdsDividerProps, KdsExpandPanel, type KdsExpandPanelProps, KdsInvoiceMerchant, type KdsInvoiceMerchantProps, KdsInvoiceSticky, type KdsInvoiceStickyProps, KdsLinearProgress, type KdsLinearProgressProps, KdsMerchantTile, type KdsMerchantTileProps, KdsMontoRow, type KdsMontoRowProps, KdsPaymentTotal, type KdsPaymentTotalProps, type KdsPaymentTotalVariant, KdsQrRow, type KdsQrRowProps, KdsRadioGroup, type KdsRadioGroupProps, type KdsRadioOption, type KdsRecapItem, KdsRecapList, type KdsRecapListProps, KdsSearchField, type KdsSearchFieldProps, KdsSectionNote, type KdsSectionNoteProps, KdsSecureFooter, type KdsSecureFooterProps, KdsSecureLoader, type KdsSecureLoaderProps, KdsSegmentedTabs, type KdsSegmentedTabsProps, KdsSelect, type KdsSelectOption, type KdsSelectProps, KdsSnackbar, type KdsSnackbarProps, type KdsSnackbarType, KdsSpinner, type KdsSpinnerProps, type KdsSpinnerSize, KdsStatusBlock, type KdsStatusBlockProps, type KdsStatusType, KdsStepper, type KdsStepperProps, KdsTab, KdsTabPanel, type KdsTabPanelProps, type KdsTabProps, KdsTabs, type KdsTabsProps, KdsTextField, type KdsTextFieldProps, KdsThemeProvider, type KdsThemeProviderProps, KdsTooltip, type KdsTooltipPlacement, type KdsTooltipProps, KdsTypography, type KdsTypographyProps, type KdsTypographyVariant, type ThemeMode, type Tokens, type TokensByMode, type Typography as TypographyTokens, type UseExpandToggleOptions, type UseExpandToggleResult, type UseStickyInvoiceCollapseOptions, borderRadius, breakpoints, colors, colorsByMode, fontFamilies, fontSizes, fontWeights, getContrastColor, letterSpacings, lighten, lineHeights, semanticSpacing, shadows, spacing, tokens, tokensByMode, transitions, typography, useAutoHide, useCopyToClipboard, useCountdown, useExpandToggle, useStickyInvoiceCollapse, useTabsKeyboard, zIndex };
|
|
3887
|
+
export { type Colors, type ExpandPanelProps, type ExpandToggleProps, KdsAccordion, KdsAccordionDetails, type KdsAccordionDetailsProps, type KdsAccordionProps, KdsAccordionSummary, type KdsAccordionSummaryProps, KdsAlert, type KdsAlertProps, type KdsAlertSeverity, KdsBankList, type KdsBankListProps, KdsBankModal, type KdsBankModalProps, KdsBankRow, type KdsBankRowProps, KdsBillAttachment, type KdsBillAttachmentProps, KdsBillAttachments, type KdsBillAttachmentsProps, KdsBottomSheet, type KdsBottomSheetProps, KdsButton, type KdsButtonProps, type KdsButtonSize, type KdsButtonVariant, KdsCard, KdsCardBody, KdsCardFooter, KdsCardHeader, KdsCardPlan, type KdsCardPlanProps, type KdsCardProps, type KdsCardSectionProps, KdsCardSelector, type KdsCardSelectorProps, type KdsCardVariant, KdsCheckbox, type KdsCheckboxProps, KdsChip, type KdsChipColor, type KdsChipProps, KdsCopyButton, type KdsCopyButtonProps, KdsCopyRow, type KdsCopyRowProps, KdsCopyableTable, type KdsCopyableTableProps, type KdsCopyableTableRow, KdsCountdown, type KdsCountdownProps, KdsDivider, type KdsDividerProps, KdsExpandPanel, type KdsExpandPanelProps, KdsFab, type KdsFabPosition, type KdsFabProps, KdsInvoiceMerchant, type KdsInvoiceMerchantProps, KdsInvoiceSticky, type KdsInvoiceStickyProps, KdsLinearProgress, type KdsLinearProgressProps, KdsMerchantTile, type KdsMerchantTileProps, KdsMontoRow, type KdsMontoRowProps, KdsPaymentTotal, type KdsPaymentTotalProps, type KdsPaymentTotalVariant, KdsQrRow, type KdsQrRowProps, KdsRadioGroup, type KdsRadioGroupProps, type KdsRadioOption, type KdsRecapItem, KdsRecapList, type KdsRecapListProps, KdsSearchField, type KdsSearchFieldProps, KdsSectionNote, type KdsSectionNoteProps, KdsSecureFooter, type KdsSecureFooterProps, KdsSecureLoader, type KdsSecureLoaderProps, KdsSegmentedTabs, type KdsSegmentedTabsProps, KdsSelect, type KdsSelectOption, type KdsSelectProps, KdsSnackbar, type KdsSnackbarProps, type KdsSnackbarType, KdsSpinner, type KdsSpinnerProps, type KdsSpinnerSize, KdsStatusBlock, type KdsStatusBlockProps, type KdsStatusType, KdsStepper, type KdsStepperProps, KdsTab, KdsTabPanel, type KdsTabPanelProps, type KdsTabProps, KdsTabs, type KdsTabsProps, KdsTextField, type KdsTextFieldProps, KdsThemeProvider, type KdsThemeProviderProps, KdsTooltip, type KdsTooltipPlacement, type KdsTooltipProps, KdsTypography, type KdsTypographyProps, type KdsTypographyVariant, type ThemeMode, type Tokens, type TokensByMode, type Typography as TypographyTokens, type UseExpandToggleOptions, type UseExpandToggleResult, type UseHideOnScrollOptions, type UseHideOnScrollResult, type UseStickyInvoiceCollapseOptions, borderRadius, breakpoints, colors, colorsByMode, fontFamilies, fontSizes, fontWeights, getContrastColor, letterSpacings, lighten, lineHeights, semanticSpacing, shadows, spacing, tokens, tokensByMode, transitions, typography, useAutoHide, useCopyToClipboard, useCountdown, useExpandToggle, useHideOnScroll, useStickyInvoiceCollapse, useTabsKeyboard, zIndex };
|
package/dist/index.d.ts
CHANGED
|
@@ -3298,6 +3298,40 @@ declare const KdsCountdown: React__default.ForwardRefExoticComponent<KdsCountdow
|
|
|
3298
3298
|
type KdsSegmentedTabsProps = KdsTabsProps;
|
|
3299
3299
|
declare const KdsSegmentedTabs: React$1.ForwardRefExoticComponent<KdsTabsProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3300
3300
|
|
|
3301
|
+
/**
|
|
3302
|
+
* Khipu Design System - Floating Action Button (FAB)
|
|
3303
|
+
*
|
|
3304
|
+
* A circular, icon-only floating button built with native HTML and kds-* CSS classes.
|
|
3305
|
+
* Presentational only: pair it with `useHideOnScroll` and drive the `hidden` prop for
|
|
3306
|
+
* hide-on-scroll behavior.
|
|
3307
|
+
*/
|
|
3308
|
+
|
|
3309
|
+
type KdsFabPosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'none';
|
|
3310
|
+
interface KdsFabProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3311
|
+
/** Material Symbols icon name, e.g. "close". */
|
|
3312
|
+
icon: string;
|
|
3313
|
+
/** Accessible label — required, since the button is icon-only. */
|
|
3314
|
+
'aria-label': string;
|
|
3315
|
+
/** Corner to pin to (fixed). Use `none` to leave positioning to the consumer. Default `top-right`. */
|
|
3316
|
+
position?: KdsFabPosition;
|
|
3317
|
+
/** When true, animates the button out (fade + slight move) and disables interaction. */
|
|
3318
|
+
hidden?: boolean;
|
|
3319
|
+
}
|
|
3320
|
+
/**
|
|
3321
|
+
* Floating action button — circular, icon-only, with an animated hide state.
|
|
3322
|
+
*
|
|
3323
|
+
* @example
|
|
3324
|
+
* ```tsx
|
|
3325
|
+
* // Static, pinned top-right
|
|
3326
|
+
* <KdsFab icon="close" aria-label="Cancelar pago" onClick={openCancel} />
|
|
3327
|
+
*
|
|
3328
|
+
* // Hide on scroll down, show on scroll up
|
|
3329
|
+
* const { hidden } = useHideOnScroll();
|
|
3330
|
+
* <KdsFab icon="close" aria-label="Cancelar pago" hidden={hidden} onClick={openCancel} />
|
|
3331
|
+
* ```
|
|
3332
|
+
*/
|
|
3333
|
+
declare const KdsFab: React__default.ForwardRefExoticComponent<KdsFabProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
3334
|
+
|
|
3301
3335
|
interface KdsBankRowProps extends Omit<React__default.ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'name'> {
|
|
3302
3336
|
/**
|
|
3303
3337
|
* Contenido principal de la fila. Acepta texto o nodo — permite contenido en
|
|
@@ -3753,6 +3787,11 @@ interface ExpandPanelProps {
|
|
|
3753
3787
|
id: string;
|
|
3754
3788
|
className: string;
|
|
3755
3789
|
hidden: boolean;
|
|
3790
|
+
/**
|
|
3791
|
+
* Ref the hook uses to drive the panel's `max-height` off its own `scrollHeight`, so the
|
|
3792
|
+
* expand animation fits any content length instead of clipping against a fixed CSS cap.
|
|
3793
|
+
*/
|
|
3794
|
+
ref: (node: HTMLDivElement | null) => void;
|
|
3756
3795
|
}
|
|
3757
3796
|
/**
|
|
3758
3797
|
* Result of {@link useExpandToggle}.
|
|
@@ -3779,9 +3818,9 @@ interface UseExpandToggleResult {
|
|
|
3779
3818
|
*
|
|
3780
3819
|
* It links button and panel via a stable `aria-controls`/`id` pair (`useId`), reflects the
|
|
3781
3820
|
* open state through `aria-expanded` (which drives the caret rotation in CSS) and toggles the
|
|
3782
|
-
* `open` class on the panel
|
|
3783
|
-
* attribute is also set when closed — the DS provides a
|
|
3784
|
-
* keeps the panel `display:block` so the collapse still animates.
|
|
3821
|
+
* `open` class on the panel, sizing its `max-height` to the content's `scrollHeight` so the
|
|
3822
|
+
* animation never clips. The `hidden` attribute is also set when closed — the DS provides a
|
|
3823
|
+
* `.kds-expand-panel[hidden]` rule that keeps the panel `display:block` so the collapse still animates.
|
|
3785
3824
|
*
|
|
3786
3825
|
* Supports controlled (`open` + `onOpenChange`) and uncontrolled (`defaultOpen`) usage. Combine
|
|
3787
3826
|
* with `useStickyInvoiceCollapse({ onCollapseStart: () => setOpen(false) })` to close on scroll.
|
|
@@ -3793,6 +3832,40 @@ interface UseExpandToggleResult {
|
|
|
3793
3832
|
*/
|
|
3794
3833
|
declare function useExpandToggle(options?: UseExpandToggleOptions): UseExpandToggleResult;
|
|
3795
3834
|
|
|
3835
|
+
/**
|
|
3836
|
+
* Options for {@link useHideOnScroll}.
|
|
3837
|
+
*/
|
|
3838
|
+
interface UseHideOnScrollOptions {
|
|
3839
|
+
/** Minimum scroll delta (px) before toggling, to avoid jitter. Default 8. */
|
|
3840
|
+
threshold?: number;
|
|
3841
|
+
/** Scroll offset (px) at/under which the element is always visible. Default 0. */
|
|
3842
|
+
topOffset?: number;
|
|
3843
|
+
}
|
|
3844
|
+
/**
|
|
3845
|
+
* Result of {@link useHideOnScroll}.
|
|
3846
|
+
*/
|
|
3847
|
+
interface UseHideOnScrollResult {
|
|
3848
|
+
/** True when the element should be hidden (user scrolled down past the threshold). */
|
|
3849
|
+
hidden: boolean;
|
|
3850
|
+
}
|
|
3851
|
+
/**
|
|
3852
|
+
* Hide-on-scroll-down / show-on-scroll-up for floating UI (e.g. `KdsFab`).
|
|
3853
|
+
*
|
|
3854
|
+
* Returns `{ hidden }`: starts visible, hides once the user scrolls **down** past
|
|
3855
|
+
* `threshold`, shows again as soon as they scroll **up**, and is always visible while
|
|
3856
|
+
* within `topOffset` of the top. Coalesced through `requestAnimationFrame` so it stays cheap.
|
|
3857
|
+
*
|
|
3858
|
+
* Works standalone (`window.scrollY`) and **embedded in an iframe**, where the widget does
|
|
3859
|
+
* not scroll internally and the parent posts the scroll offset via
|
|
3860
|
+
* `postMessage({ type: 'VIEWPORT_OFFSET', offsetTop })` — the same mechanism as
|
|
3861
|
+
* {@link useStickyInvoiceCollapse}.
|
|
3862
|
+
*
|
|
3863
|
+
* @example
|
|
3864
|
+
* const { hidden } = useHideOnScroll();
|
|
3865
|
+
* <KdsFab icon="close" aria-label="Cancelar" hidden={hidden} onClick={open} />
|
|
3866
|
+
*/
|
|
3867
|
+
declare function useHideOnScroll(options?: UseHideOnScrollOptions): UseHideOnScrollResult;
|
|
3868
|
+
|
|
3796
3869
|
/**
|
|
3797
3870
|
* Khipu Design System - Core Utilities
|
|
3798
3871
|
*
|
|
@@ -3811,4 +3884,4 @@ declare function getContrastColor(hex: string): string;
|
|
|
3811
3884
|
*/
|
|
3812
3885
|
declare function lighten(hex: string, amount: number): string;
|
|
3813
3886
|
|
|
3814
|
-
export { type Colors, type ExpandPanelProps, type ExpandToggleProps, KdsAccordion, KdsAccordionDetails, type KdsAccordionDetailsProps, type KdsAccordionProps, KdsAccordionSummary, type KdsAccordionSummaryProps, KdsAlert, type KdsAlertProps, type KdsAlertSeverity, KdsBankList, type KdsBankListProps, KdsBankModal, type KdsBankModalProps, KdsBankRow, type KdsBankRowProps, KdsBillAttachment, type KdsBillAttachmentProps, KdsBillAttachments, type KdsBillAttachmentsProps, KdsBottomSheet, type KdsBottomSheetProps, KdsButton, type KdsButtonProps, type KdsButtonSize, type KdsButtonVariant, KdsCard, KdsCardBody, KdsCardFooter, KdsCardHeader, KdsCardPlan, type KdsCardPlanProps, type KdsCardProps, type KdsCardSectionProps, KdsCardSelector, type KdsCardSelectorProps, type KdsCardVariant, KdsCheckbox, type KdsCheckboxProps, KdsChip, type KdsChipColor, type KdsChipProps, KdsCopyButton, type KdsCopyButtonProps, KdsCopyRow, type KdsCopyRowProps, KdsCopyableTable, type KdsCopyableTableProps, type KdsCopyableTableRow, KdsCountdown, type KdsCountdownProps, KdsDivider, type KdsDividerProps, KdsExpandPanel, type KdsExpandPanelProps, KdsInvoiceMerchant, type KdsInvoiceMerchantProps, KdsInvoiceSticky, type KdsInvoiceStickyProps, KdsLinearProgress, type KdsLinearProgressProps, KdsMerchantTile, type KdsMerchantTileProps, KdsMontoRow, type KdsMontoRowProps, KdsPaymentTotal, type KdsPaymentTotalProps, type KdsPaymentTotalVariant, KdsQrRow, type KdsQrRowProps, KdsRadioGroup, type KdsRadioGroupProps, type KdsRadioOption, type KdsRecapItem, KdsRecapList, type KdsRecapListProps, KdsSearchField, type KdsSearchFieldProps, KdsSectionNote, type KdsSectionNoteProps, KdsSecureFooter, type KdsSecureFooterProps, KdsSecureLoader, type KdsSecureLoaderProps, KdsSegmentedTabs, type KdsSegmentedTabsProps, KdsSelect, type KdsSelectOption, type KdsSelectProps, KdsSnackbar, type KdsSnackbarProps, type KdsSnackbarType, KdsSpinner, type KdsSpinnerProps, type KdsSpinnerSize, KdsStatusBlock, type KdsStatusBlockProps, type KdsStatusType, KdsStepper, type KdsStepperProps, KdsTab, KdsTabPanel, type KdsTabPanelProps, type KdsTabProps, KdsTabs, type KdsTabsProps, KdsTextField, type KdsTextFieldProps, KdsThemeProvider, type KdsThemeProviderProps, KdsTooltip, type KdsTooltipPlacement, type KdsTooltipProps, KdsTypography, type KdsTypographyProps, type KdsTypographyVariant, type ThemeMode, type Tokens, type TokensByMode, type Typography as TypographyTokens, type UseExpandToggleOptions, type UseExpandToggleResult, type UseStickyInvoiceCollapseOptions, borderRadius, breakpoints, colors, colorsByMode, fontFamilies, fontSizes, fontWeights, getContrastColor, letterSpacings, lighten, lineHeights, semanticSpacing, shadows, spacing, tokens, tokensByMode, transitions, typography, useAutoHide, useCopyToClipboard, useCountdown, useExpandToggle, useStickyInvoiceCollapse, useTabsKeyboard, zIndex };
|
|
3887
|
+
export { type Colors, type ExpandPanelProps, type ExpandToggleProps, KdsAccordion, KdsAccordionDetails, type KdsAccordionDetailsProps, type KdsAccordionProps, KdsAccordionSummary, type KdsAccordionSummaryProps, KdsAlert, type KdsAlertProps, type KdsAlertSeverity, KdsBankList, type KdsBankListProps, KdsBankModal, type KdsBankModalProps, KdsBankRow, type KdsBankRowProps, KdsBillAttachment, type KdsBillAttachmentProps, KdsBillAttachments, type KdsBillAttachmentsProps, KdsBottomSheet, type KdsBottomSheetProps, KdsButton, type KdsButtonProps, type KdsButtonSize, type KdsButtonVariant, KdsCard, KdsCardBody, KdsCardFooter, KdsCardHeader, KdsCardPlan, type KdsCardPlanProps, type KdsCardProps, type KdsCardSectionProps, KdsCardSelector, type KdsCardSelectorProps, type KdsCardVariant, KdsCheckbox, type KdsCheckboxProps, KdsChip, type KdsChipColor, type KdsChipProps, KdsCopyButton, type KdsCopyButtonProps, KdsCopyRow, type KdsCopyRowProps, KdsCopyableTable, type KdsCopyableTableProps, type KdsCopyableTableRow, KdsCountdown, type KdsCountdownProps, KdsDivider, type KdsDividerProps, KdsExpandPanel, type KdsExpandPanelProps, KdsFab, type KdsFabPosition, type KdsFabProps, KdsInvoiceMerchant, type KdsInvoiceMerchantProps, KdsInvoiceSticky, type KdsInvoiceStickyProps, KdsLinearProgress, type KdsLinearProgressProps, KdsMerchantTile, type KdsMerchantTileProps, KdsMontoRow, type KdsMontoRowProps, KdsPaymentTotal, type KdsPaymentTotalProps, type KdsPaymentTotalVariant, KdsQrRow, type KdsQrRowProps, KdsRadioGroup, type KdsRadioGroupProps, type KdsRadioOption, type KdsRecapItem, KdsRecapList, type KdsRecapListProps, KdsSearchField, type KdsSearchFieldProps, KdsSectionNote, type KdsSectionNoteProps, KdsSecureFooter, type KdsSecureFooterProps, KdsSecureLoader, type KdsSecureLoaderProps, KdsSegmentedTabs, type KdsSegmentedTabsProps, KdsSelect, type KdsSelectOption, type KdsSelectProps, KdsSnackbar, type KdsSnackbarProps, type KdsSnackbarType, KdsSpinner, type KdsSpinnerProps, type KdsSpinnerSize, KdsStatusBlock, type KdsStatusBlockProps, type KdsStatusType, KdsStepper, type KdsStepperProps, KdsTab, KdsTabPanel, type KdsTabPanelProps, type KdsTabProps, KdsTabs, type KdsTabsProps, KdsTextField, type KdsTextFieldProps, KdsThemeProvider, type KdsThemeProviderProps, KdsTooltip, type KdsTooltipPlacement, type KdsTooltipProps, KdsTypography, type KdsTypographyProps, type KdsTypographyVariant, type ThemeMode, type Tokens, type TokensByMode, type Typography as TypographyTokens, type UseExpandToggleOptions, type UseExpandToggleResult, type UseHideOnScrollOptions, type UseHideOnScrollResult, type UseStickyInvoiceCollapseOptions, borderRadius, breakpoints, colors, colorsByMode, fontFamilies, fontSizes, fontWeights, getContrastColor, letterSpacings, lighten, lineHeights, semanticSpacing, shadows, spacing, tokens, tokensByMode, transitions, typography, useAutoHide, useCopyToClipboard, useCountdown, useExpandToggle, useHideOnScroll, useStickyInvoiceCollapse, useTabsKeyboard, zIndex };
|