@cjlapao/ui-kit 0.2.35 → 0.2.37
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/{CodeBlock-QDW3hqU0.d.cts → CodeBlock-Sj3AzAca.d.cts} +27 -1
- package/dist/{CodeBlock-QDW3hqU0.d.ts → CodeBlock-Sj3AzAca.d.ts} +27 -1
- package/dist/index.cjs +856 -504
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +24 -0
- package/dist/index.d.cts +173 -9
- package/dist/index.d.ts +173 -9
- package/dist/index.js +1236 -881
- package/dist/index.js.map +1 -1
- package/dist/markdown.cjs +43 -18
- package/dist/markdown.cjs.map +1 -1
- package/dist/markdown.d.cts +2 -2
- package/dist/markdown.d.ts +2 -2
- package/dist/markdown.js +43 -18
- package/dist/markdown.js.map +1 -1
- package/package.json +1 -1
|
@@ -383,6 +383,31 @@ declare const PANEL_SLIDE_DURATION_MS = 450;
|
|
|
383
383
|
declare const PANEL_SLIDE_EASING = "cubic-bezier(0.32, 0.72, 0, 1)";
|
|
384
384
|
/** `transition` value for the given properties on the shared panel curve. */
|
|
385
385
|
declare const panelSlideTransition: (...properties: string[]) => string;
|
|
386
|
+
/**
|
|
387
|
+
* How a docked panel hands over (or takes back) the space it occupies.
|
|
388
|
+
* `"layout"` (the default, and the historical behaviour) animates the flow
|
|
389
|
+
* size itself: the centre eases along with the panel. Every frame of that
|
|
390
|
+
* sweep relayouts the row, so anything observing the resized subtree — a
|
|
391
|
+
* ResizeObserver, a `min-width: fit-content` floor — runs inside the
|
|
392
|
+
* animation's frame budget on every frame.
|
|
393
|
+
* `"slide"` takes the final flow size in **one** layout and counter-animates
|
|
394
|
+
* the content with `transform` + `opacity`, which WebKitGTK composites on
|
|
395
|
+
* HTML elements. The honest trade: the centre snaps to its new width instead
|
|
396
|
+
* of easing; the panel still appears to sweep. (Never implemented with
|
|
397
|
+
* `scaleX` — it distorts glyphs.)
|
|
398
|
+
*/
|
|
399
|
+
declare const PANEL_MOTIONS: readonly ["layout", "slide"];
|
|
400
|
+
type PanelMotion = (typeof PANEL_MOTIONS)[number];
|
|
401
|
+
/**
|
|
402
|
+
* SSR-safe `prefers-reduced-motion` check — the same shape as the chart
|
|
403
|
+
* engine's (`chart/engine/animation.ts`). Panel motion is applied through
|
|
404
|
+
* *inline* `transition` values, which a stylesheet's
|
|
405
|
+
* `prefers-reduced-motion` block cannot override (the `Progress` lesson), so
|
|
406
|
+
* whoever applies the curve reads this flag on the render that starts the
|
|
407
|
+
* transition — a collapse toggle or an `isOpen` flip always re-renders —
|
|
408
|
+
* and applies no duration at all when it is set.
|
|
409
|
+
*/
|
|
410
|
+
declare function prefersReducedMotion(): boolean;
|
|
386
411
|
declare const DEFAULT_CONTROL_CORNER: Exclude<SurfaceCorner, "auto">;
|
|
387
412
|
/**
|
|
388
413
|
* The container surface a field implies — used by composite controls (the
|
|
@@ -486,6 +511,7 @@ declare const THIN_SCROLLBAR_FIELD = "[&::-webkit-scrollbar]:w-1.5 [&::-webkit-s
|
|
|
486
511
|
/** The padding a container uses when the caller does not pick one. */
|
|
487
512
|
declare const DEFAULT_SURFACE_PADDING: SurfacePadding;
|
|
488
513
|
declare const getSurfacePaddingClass: (padding: SurfacePadding) => string;
|
|
514
|
+
declare const getSurfacePaddingPx: (padding: SurfacePadding) => number;
|
|
489
515
|
/** Every padding token but `none`, for the callers that require a real inset. */
|
|
490
516
|
declare const getSurfacePaddingClasses: () => Record<SurfacePadding, string>;
|
|
491
517
|
declare const DEFAULT_COMPACT_SURFACE_PADDING: SurfacePadding;
|
|
@@ -1316,4 +1342,4 @@ interface CodeBlockProps extends Omit<React__default.HTMLAttributes<HTMLDivEleme
|
|
|
1316
1342
|
/** Lightweight source display with optional native editing. */
|
|
1317
1343
|
declare function CodeBlock({ value, onChange, readOnly, language, filename, showTitle, showCopy, showLineNumbers, wrapLines, maxHeight, tone, color, variant, corner, editorLabel, className, ...rest }: CodeBlockProps): React__default.JSX.Element;
|
|
1318
1344
|
|
|
1319
|
-
export {
|
|
1345
|
+
export { type CheckboxVariantTokens as $, type AlertIntent as A, type ButtonVariant as B, type ControlSize as C, ALERT_INTENT_CONFIG as D, ALERT_VARIANTS as E, API_ERROR_KINDS as F, type GlassOpacity as G, type HelpButtonProps as H, type IconName as I, API_ERROR_KIND_CONFIG as J, type AlertIntentConfig as K, type AlertVariantTokens as L, type ApiErrorKindConfig as M, BUTTON_VARIANTS as N, type Orientation as O, type PlainSurfaceVariant as P, BUTTON_WEIGHTS as Q, type BreadcrumbSizeTokens as R, type SurfaceCorner as S, type TrueColor as T, type BreadcrumbToneTokens as U, type ValidationStatus as V, CASCADE_EXPAND as W, COLLAPSED_RAIL_WIDTH as X, CONTROL_SIZES as Y, CapsuleBlueprintValueType as Z, type CheckboxControlTokens as _, type AlertVariant as a, type StatusSpinnerToneTokens as a$, CodeBlock as a0, type CodeBlockProps as a1, type CollapsibleHelpToneTokens as a2, type ControlSizeTokens as a3, DEFAULT_COMPACT_SURFACE_PADDING as a4, DEFAULT_CONTROL_CORNER as a5, DEFAULT_GLOW_INTENSITY as a6, DEFAULT_SURFACE_CORNER as a7, DEFAULT_SURFACE_GUTTER as a8, DEFAULT_SURFACE_PADDING as a9, PANEL_TONE_FOR_FIELD as aA, PANE_EMPTY_STATE_SIZE as aB, PLAIN_SURFACE_VARIANTS as aC, type ProgressSpinnerToneTokens as aD, SIDEBAR_COLLAPSIBLE_MODES as aE, SIDEBAR_IDLE_COPY as aF, SIDEBAR_MOBILE_QUERY as aG, SIDEBAR_SIDES as aH, SIDEBAR_VARIANTS as aI, SIDE_MENU_HEADER_FILL as aJ, SIDE_MENU_HEADER_HEIGHT as aK, SIDE_MENU_HEADER_SEAM as aL, SLIDER_VARIANTS as aM, SURFACE_CORNERS as aN, SURFACE_GLASS_RIM as aO, SURFACE_GUTTER_AXES as aP, SURFACE_PADDINGS as aQ, SURFACE_TONES as aR, SURFACE_TO_BUTTON_VARIANT as aS, SURFACE_TRANSPARENCIES as aT, SURFACE_VARIANT_BASE as aU, SURFACE_VARIANT_FOR_FIELD as aV, type SideMenuItemTokens as aW, type SidebarIdleCopyKind as aX, type SidebarSurfaceTokens as aY, type SliderVariantTokens as aZ, type StatusSpinnerSizeTokens as a_, DEFAULT_SURFACE_TONE as aa, DEFAULT_TOAST_GAP_PX as ab, DEFAULT_TOAST_LIFE_MS as ac, DEFAULT_TOAST_LIMIT as ad, DEFAULT_TOAST_MODE as ae, DEFAULT_TOAST_POSITION as af, DEFAULT_TOAST_Z_INDEX as ag, DEFAULT_TRIGGER_CORNER as ah, FIELD_SIZE_STYLES as ai, FIELD_STATUS_CLASSES as aj, type FieldSizeTokens as ak, type FieldToneTokens as al, GLOW_INTENSITIES as am, type GlowTokens as an, HelpButton as ao, type HelpButtonPlacement as ap, INPUT_VARIANTS as aq, INPUT_VARIANT_FOR_SURFACE as ar, type InputVariantOptions as as, type InputVariantTokens as at, SURFACE_VARIANTS as au, NEUTRAL_TONES as av, ORIENTATIONS as aw, PANEL_MOTIONS as ax, PANEL_SLIDE_DURATION_MS as ay, PANEL_SLIDE_EASING as az, type AlertIconAlign as b, getSurfaceTextTokens as b$, type SurfaceGutterAxis as b0, type SurfaceTriggerTokens as b1, type SurfaceVariantOverrides as b2, TABLE_DENSITIES as b3, THIN_SCROLLBAR as b4, THIN_SCROLLBAR_FIELD as b5, TOAST_DEFAULT_WIDTH as b6, TOAST_MODES as b7, TOAST_POSITIONS as b8, TOGGLE_VARIANTS as b9, getCompactSurfacePaddingClasses as bA, getControlSizeTokens as bB, getFieldSizeTokens as bC, getFieldToneTokens as bD, getGlowTokens as bE, getInputVariantTokens as bF, getLoaderProgressColors as bG, getMultiToggleColorTokens as bH, getMultiToggleVariantTokens as bI, getPanelToneStyles as bJ, getPillColorClasses as bK, getProgressSpinnerToneTokens as bL, getSideMenuItemTokens as bM, getSidebarSurfaceTokens as bN, getSliderVariantTokens as bO, getSpinnerColorTokens as bP, getStatTileColorClasses as bQ, getStatusSpinnerSizeTokens as bR, getStatusSpinnerToneTokens as bS, getStepperTonePalette as bT, getSurfaceAccentColor as bU, getSurfaceCornerClass as bV, getSurfaceCornerRem as bW, getSurfaceGutterClass as bX, getSurfacePaddingClass as bY, getSurfacePaddingClasses as bZ, getSurfacePaddingPx as b_, TRANSLUCENT_SURFACE_VARIANTS as ba, TRUE_COLORS as bb, TRUE_COLOR_DOT_CLASSES as bc, TRUE_COLOR_TEXT_CLASSES as bd, type TableDensityTokens as be, type ToastSizeTokens as bf, type ToggleVariantTokens as bg, VALIDATION_STATUSES as bh, configureTheme as bi, getAlertColorClasses as bj, getAlertVariantTokens as bk, getAppDividerToneTokens as bl, getBadgeColorClasses as bm, getBreadcrumbSizeTokens as bn, getBreadcrumbToneTokens as bo, getButtonActiveClasses as bp, getButtonActiveHoverClasses as bq, getButtonBaseClasses as br, getButtonColorClasses as bs, getButtonHoverClasses as bt, getCheckboxColorClasses as bu, getCheckboxControlTokens as bv, getCheckboxGlassCheckedTokens as bw, getCheckboxVariantTokens as bx, getCollapsibleHelpToneTokens as by, getCompactSurfacePaddingClass as bz, type GlassVibrancy as c, getSurfaceTransparencyClasses as c0, getSurfaceTriggerTokens as c1, getSurfaceVariantClasses as c2, getTableDensityTokens as c3, getTabsColorTokens as c4, getToastSizeTokens as c5, getToggleColorClasses as c6, getToggleVariantTokens as c7, getTrueColorDotClass as c8, getTrueColorTextClass as c9, hasTextColor as ca, iconRegistry as cb, isGlassSurface as cc, panelSlideTransition as cd, prefersReducedMotion as ce, resetTheme as cf, resolveGlowGradient as cg, resolveSurfaceTransparency as ch, stripBorderColor as ci, stripFillClass as cj, stripTextColor as ck, type SpecularMode as d, type ButtonWeight as e, type SurfaceTone as f, type SurfaceVariant as g, type SurfaceTransparency as h, type SurfacePadding as i, type GlowIntensity as j, type InputVariant as k, type SliderVariant as l, type ToggleVariant as m, type ToastPosition as n, type ToastMode as o, type Size as p, type SidebarSide as q, type SidebarVariant as r, type SidebarCollapsible as s, type PanelMotion as t, type SurfaceTextTokens as u, type TableDensity as v, type ApiErrorKind as w, type CapsuleBlueprintParameter as x, ALERT_ICON_ALIGNMENTS as y, ALERT_INTENTS as z };
|
|
@@ -383,6 +383,31 @@ declare const PANEL_SLIDE_DURATION_MS = 450;
|
|
|
383
383
|
declare const PANEL_SLIDE_EASING = "cubic-bezier(0.32, 0.72, 0, 1)";
|
|
384
384
|
/** `transition` value for the given properties on the shared panel curve. */
|
|
385
385
|
declare const panelSlideTransition: (...properties: string[]) => string;
|
|
386
|
+
/**
|
|
387
|
+
* How a docked panel hands over (or takes back) the space it occupies.
|
|
388
|
+
* `"layout"` (the default, and the historical behaviour) animates the flow
|
|
389
|
+
* size itself: the centre eases along with the panel. Every frame of that
|
|
390
|
+
* sweep relayouts the row, so anything observing the resized subtree — a
|
|
391
|
+
* ResizeObserver, a `min-width: fit-content` floor — runs inside the
|
|
392
|
+
* animation's frame budget on every frame.
|
|
393
|
+
* `"slide"` takes the final flow size in **one** layout and counter-animates
|
|
394
|
+
* the content with `transform` + `opacity`, which WebKitGTK composites on
|
|
395
|
+
* HTML elements. The honest trade: the centre snaps to its new width instead
|
|
396
|
+
* of easing; the panel still appears to sweep. (Never implemented with
|
|
397
|
+
* `scaleX` — it distorts glyphs.)
|
|
398
|
+
*/
|
|
399
|
+
declare const PANEL_MOTIONS: readonly ["layout", "slide"];
|
|
400
|
+
type PanelMotion = (typeof PANEL_MOTIONS)[number];
|
|
401
|
+
/**
|
|
402
|
+
* SSR-safe `prefers-reduced-motion` check — the same shape as the chart
|
|
403
|
+
* engine's (`chart/engine/animation.ts`). Panel motion is applied through
|
|
404
|
+
* *inline* `transition` values, which a stylesheet's
|
|
405
|
+
* `prefers-reduced-motion` block cannot override (the `Progress` lesson), so
|
|
406
|
+
* whoever applies the curve reads this flag on the render that starts the
|
|
407
|
+
* transition — a collapse toggle or an `isOpen` flip always re-renders —
|
|
408
|
+
* and applies no duration at all when it is set.
|
|
409
|
+
*/
|
|
410
|
+
declare function prefersReducedMotion(): boolean;
|
|
386
411
|
declare const DEFAULT_CONTROL_CORNER: Exclude<SurfaceCorner, "auto">;
|
|
387
412
|
/**
|
|
388
413
|
* The container surface a field implies — used by composite controls (the
|
|
@@ -486,6 +511,7 @@ declare const THIN_SCROLLBAR_FIELD = "[&::-webkit-scrollbar]:w-1.5 [&::-webkit-s
|
|
|
486
511
|
/** The padding a container uses when the caller does not pick one. */
|
|
487
512
|
declare const DEFAULT_SURFACE_PADDING: SurfacePadding;
|
|
488
513
|
declare const getSurfacePaddingClass: (padding: SurfacePadding) => string;
|
|
514
|
+
declare const getSurfacePaddingPx: (padding: SurfacePadding) => number;
|
|
489
515
|
/** Every padding token but `none`, for the callers that require a real inset. */
|
|
490
516
|
declare const getSurfacePaddingClasses: () => Record<SurfacePadding, string>;
|
|
491
517
|
declare const DEFAULT_COMPACT_SURFACE_PADDING: SurfacePadding;
|
|
@@ -1316,4 +1342,4 @@ interface CodeBlockProps extends Omit<React__default.HTMLAttributes<HTMLDivEleme
|
|
|
1316
1342
|
/** Lightweight source display with optional native editing. */
|
|
1317
1343
|
declare function CodeBlock({ value, onChange, readOnly, language, filename, showTitle, showCopy, showLineNumbers, wrapLines, maxHeight, tone, color, variant, corner, editorLabel, className, ...rest }: CodeBlockProps): React__default.JSX.Element;
|
|
1318
1344
|
|
|
1319
|
-
export {
|
|
1345
|
+
export { type CheckboxVariantTokens as $, type AlertIntent as A, type ButtonVariant as B, type ControlSize as C, ALERT_INTENT_CONFIG as D, ALERT_VARIANTS as E, API_ERROR_KINDS as F, type GlassOpacity as G, type HelpButtonProps as H, type IconName as I, API_ERROR_KIND_CONFIG as J, type AlertIntentConfig as K, type AlertVariantTokens as L, type ApiErrorKindConfig as M, BUTTON_VARIANTS as N, type Orientation as O, type PlainSurfaceVariant as P, BUTTON_WEIGHTS as Q, type BreadcrumbSizeTokens as R, type SurfaceCorner as S, type TrueColor as T, type BreadcrumbToneTokens as U, type ValidationStatus as V, CASCADE_EXPAND as W, COLLAPSED_RAIL_WIDTH as X, CONTROL_SIZES as Y, CapsuleBlueprintValueType as Z, type CheckboxControlTokens as _, type AlertVariant as a, type StatusSpinnerToneTokens as a$, CodeBlock as a0, type CodeBlockProps as a1, type CollapsibleHelpToneTokens as a2, type ControlSizeTokens as a3, DEFAULT_COMPACT_SURFACE_PADDING as a4, DEFAULT_CONTROL_CORNER as a5, DEFAULT_GLOW_INTENSITY as a6, DEFAULT_SURFACE_CORNER as a7, DEFAULT_SURFACE_GUTTER as a8, DEFAULT_SURFACE_PADDING as a9, PANEL_TONE_FOR_FIELD as aA, PANE_EMPTY_STATE_SIZE as aB, PLAIN_SURFACE_VARIANTS as aC, type ProgressSpinnerToneTokens as aD, SIDEBAR_COLLAPSIBLE_MODES as aE, SIDEBAR_IDLE_COPY as aF, SIDEBAR_MOBILE_QUERY as aG, SIDEBAR_SIDES as aH, SIDEBAR_VARIANTS as aI, SIDE_MENU_HEADER_FILL as aJ, SIDE_MENU_HEADER_HEIGHT as aK, SIDE_MENU_HEADER_SEAM as aL, SLIDER_VARIANTS as aM, SURFACE_CORNERS as aN, SURFACE_GLASS_RIM as aO, SURFACE_GUTTER_AXES as aP, SURFACE_PADDINGS as aQ, SURFACE_TONES as aR, SURFACE_TO_BUTTON_VARIANT as aS, SURFACE_TRANSPARENCIES as aT, SURFACE_VARIANT_BASE as aU, SURFACE_VARIANT_FOR_FIELD as aV, type SideMenuItemTokens as aW, type SidebarIdleCopyKind as aX, type SidebarSurfaceTokens as aY, type SliderVariantTokens as aZ, type StatusSpinnerSizeTokens as a_, DEFAULT_SURFACE_TONE as aa, DEFAULT_TOAST_GAP_PX as ab, DEFAULT_TOAST_LIFE_MS as ac, DEFAULT_TOAST_LIMIT as ad, DEFAULT_TOAST_MODE as ae, DEFAULT_TOAST_POSITION as af, DEFAULT_TOAST_Z_INDEX as ag, DEFAULT_TRIGGER_CORNER as ah, FIELD_SIZE_STYLES as ai, FIELD_STATUS_CLASSES as aj, type FieldSizeTokens as ak, type FieldToneTokens as al, GLOW_INTENSITIES as am, type GlowTokens as an, HelpButton as ao, type HelpButtonPlacement as ap, INPUT_VARIANTS as aq, INPUT_VARIANT_FOR_SURFACE as ar, type InputVariantOptions as as, type InputVariantTokens as at, SURFACE_VARIANTS as au, NEUTRAL_TONES as av, ORIENTATIONS as aw, PANEL_MOTIONS as ax, PANEL_SLIDE_DURATION_MS as ay, PANEL_SLIDE_EASING as az, type AlertIconAlign as b, getSurfaceTextTokens as b$, type SurfaceGutterAxis as b0, type SurfaceTriggerTokens as b1, type SurfaceVariantOverrides as b2, TABLE_DENSITIES as b3, THIN_SCROLLBAR as b4, THIN_SCROLLBAR_FIELD as b5, TOAST_DEFAULT_WIDTH as b6, TOAST_MODES as b7, TOAST_POSITIONS as b8, TOGGLE_VARIANTS as b9, getCompactSurfacePaddingClasses as bA, getControlSizeTokens as bB, getFieldSizeTokens as bC, getFieldToneTokens as bD, getGlowTokens as bE, getInputVariantTokens as bF, getLoaderProgressColors as bG, getMultiToggleColorTokens as bH, getMultiToggleVariantTokens as bI, getPanelToneStyles as bJ, getPillColorClasses as bK, getProgressSpinnerToneTokens as bL, getSideMenuItemTokens as bM, getSidebarSurfaceTokens as bN, getSliderVariantTokens as bO, getSpinnerColorTokens as bP, getStatTileColorClasses as bQ, getStatusSpinnerSizeTokens as bR, getStatusSpinnerToneTokens as bS, getStepperTonePalette as bT, getSurfaceAccentColor as bU, getSurfaceCornerClass as bV, getSurfaceCornerRem as bW, getSurfaceGutterClass as bX, getSurfacePaddingClass as bY, getSurfacePaddingClasses as bZ, getSurfacePaddingPx as b_, TRANSLUCENT_SURFACE_VARIANTS as ba, TRUE_COLORS as bb, TRUE_COLOR_DOT_CLASSES as bc, TRUE_COLOR_TEXT_CLASSES as bd, type TableDensityTokens as be, type ToastSizeTokens as bf, type ToggleVariantTokens as bg, VALIDATION_STATUSES as bh, configureTheme as bi, getAlertColorClasses as bj, getAlertVariantTokens as bk, getAppDividerToneTokens as bl, getBadgeColorClasses as bm, getBreadcrumbSizeTokens as bn, getBreadcrumbToneTokens as bo, getButtonActiveClasses as bp, getButtonActiveHoverClasses as bq, getButtonBaseClasses as br, getButtonColorClasses as bs, getButtonHoverClasses as bt, getCheckboxColorClasses as bu, getCheckboxControlTokens as bv, getCheckboxGlassCheckedTokens as bw, getCheckboxVariantTokens as bx, getCollapsibleHelpToneTokens as by, getCompactSurfacePaddingClass as bz, type GlassVibrancy as c, getSurfaceTransparencyClasses as c0, getSurfaceTriggerTokens as c1, getSurfaceVariantClasses as c2, getTableDensityTokens as c3, getTabsColorTokens as c4, getToastSizeTokens as c5, getToggleColorClasses as c6, getToggleVariantTokens as c7, getTrueColorDotClass as c8, getTrueColorTextClass as c9, hasTextColor as ca, iconRegistry as cb, isGlassSurface as cc, panelSlideTransition as cd, prefersReducedMotion as ce, resetTheme as cf, resolveGlowGradient as cg, resolveSurfaceTransparency as ch, stripBorderColor as ci, stripFillClass as cj, stripTextColor as ck, type SpecularMode as d, type ButtonWeight as e, type SurfaceTone as f, type SurfaceVariant as g, type SurfaceTransparency as h, type SurfacePadding as i, type GlowIntensity as j, type InputVariant as k, type SliderVariant as l, type ToggleVariant as m, type ToastPosition as n, type ToastMode as o, type Size as p, type SidebarSide as q, type SidebarVariant as r, type SidebarCollapsible as s, type PanelMotion as t, type SurfaceTextTokens as u, type TableDensity as v, type ApiErrorKind as w, type CapsuleBlueprintParameter as x, ALERT_ICON_ALIGNMENTS as y, ALERT_INTENTS as z };
|