@cjlapao/ui-kit-vue 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/index.cjs +12 -12
- package/dist/index.js +2919 -2899
- package/dist/types/common/theme/Theme.d.ts +26 -0
- package/dist/types/vue/src/components/FormField.vue.d.ts +1 -1
- package/package.json +1 -1
|
@@ -333,6 +333,31 @@ export declare const PANEL_SLIDE_DURATION_MS = 450;
|
|
|
333
333
|
export declare const PANEL_SLIDE_EASING = "cubic-bezier(0.32, 0.72, 0, 1)";
|
|
334
334
|
/** `transition` value for the given properties on the shared panel curve. */
|
|
335
335
|
export declare const panelSlideTransition: (...properties: string[]) => string;
|
|
336
|
+
/**
|
|
337
|
+
* How a docked panel hands over (or takes back) the space it occupies.
|
|
338
|
+
* `"layout"` (the default, and the historical behaviour) animates the flow
|
|
339
|
+
* size itself: the centre eases along with the panel. Every frame of that
|
|
340
|
+
* sweep relayouts the row, so anything observing the resized subtree — a
|
|
341
|
+
* ResizeObserver, a `min-width: fit-content` floor — runs inside the
|
|
342
|
+
* animation's frame budget on every frame.
|
|
343
|
+
* `"slide"` takes the final flow size in **one** layout and counter-animates
|
|
344
|
+
* the content with `transform` + `opacity`, which WebKitGTK composites on
|
|
345
|
+
* HTML elements. The honest trade: the centre snaps to its new width instead
|
|
346
|
+
* of easing; the panel still appears to sweep. (Never implemented with
|
|
347
|
+
* `scaleX` — it distorts glyphs.)
|
|
348
|
+
*/
|
|
349
|
+
export declare const PANEL_MOTIONS: readonly ["layout", "slide"];
|
|
350
|
+
export type PanelMotion = (typeof PANEL_MOTIONS)[number];
|
|
351
|
+
/**
|
|
352
|
+
* SSR-safe `prefers-reduced-motion` check — the same shape as the chart
|
|
353
|
+
* engine's (`chart/engine/animation.ts`). Panel motion is applied through
|
|
354
|
+
* *inline* `transition` values, which a stylesheet's
|
|
355
|
+
* `prefers-reduced-motion` block cannot override (the `Progress` lesson), so
|
|
356
|
+
* whoever applies the curve reads this flag on the render that starts the
|
|
357
|
+
* transition — a collapse toggle or an `isOpen` flip always re-renders —
|
|
358
|
+
* and applies no duration at all when it is set.
|
|
359
|
+
*/
|
|
360
|
+
export declare function prefersReducedMotion(): boolean;
|
|
336
361
|
export declare const DEFAULT_CONTROL_CORNER: Exclude<SurfaceCorner, "auto">;
|
|
337
362
|
/**
|
|
338
363
|
* The container surface a field implies — used by composite controls (the
|
|
@@ -436,6 +461,7 @@ export declare const THIN_SCROLLBAR_FIELD = "[&::-webkit-scrollbar]:w-1.5 [&::-w
|
|
|
436
461
|
/** The padding a container uses when the caller does not pick one. */
|
|
437
462
|
export declare const DEFAULT_SURFACE_PADDING: SurfacePadding;
|
|
438
463
|
export declare const getSurfacePaddingClass: (padding: SurfacePadding) => string;
|
|
464
|
+
export declare const getSurfacePaddingPx: (padding: SurfacePadding) => number;
|
|
439
465
|
/** Every padding token but `none`, for the callers that require a real inset. */
|
|
440
466
|
export declare const getSurfacePaddingClasses: () => Record<SurfacePadding, string>;
|
|
441
467
|
export declare const DEFAULT_COMPACT_SURFACE_PADDING: SurfacePadding;
|
|
@@ -17,9 +17,9 @@ export interface FormFieldProps {
|
|
|
17
17
|
width?: FormFieldWidth;
|
|
18
18
|
}
|
|
19
19
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<FormFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FormFieldProps> & Readonly<{}>, {
|
|
20
|
+
layout: FormFieldLayout;
|
|
20
21
|
required: boolean;
|
|
21
22
|
width: FormFieldWidth;
|
|
22
|
-
layout: FormFieldLayout;
|
|
23
23
|
validationStatus: FormFieldValidationStatus;
|
|
24
24
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
25
25
|
label?: (props: {}) => any;
|