@domphy/ui 0.5.0 → 0.7.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/core-theme-ui.global.js +5 -5
- package/dist/core-theme-ui.global.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +30 -46
- package/dist/index.d.ts +30 -46
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ValueOrState, PartialElement, DomphyElement,
|
|
1
|
+
import { ValueOrState, PartialElement, DomphyElement, State } from '@domphy/core';
|
|
2
2
|
import { ThemeColor } from '@domphy/theme';
|
|
3
3
|
import { Placement as Placement$1 } from '@floating-ui/dom';
|
|
4
4
|
export { Placement } from '@floating-ui/dom';
|
|
@@ -374,50 +374,34 @@ declare function menuItem(props?: {
|
|
|
374
374
|
color?: ThemeColor;
|
|
375
375
|
}): PartialElement;
|
|
376
376
|
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
validate(): void;
|
|
405
|
-
_dispose(): void;
|
|
377
|
+
/**
|
|
378
|
+
* One keyframe. Shorthands `x`/`y` (px), `scale`, `rotate` (deg) compose into a
|
|
379
|
+
* single `transform`; any other key is a raw CSS property (e.g. `opacity`,
|
|
380
|
+
* `backgroundColor`).
|
|
381
|
+
*/
|
|
382
|
+
type MotionKeyframe = {
|
|
383
|
+
x?: number | string;
|
|
384
|
+
y?: number | string;
|
|
385
|
+
scale?: number | string;
|
|
386
|
+
rotate?: number | string;
|
|
387
|
+
} & Record<string, string | number>;
|
|
388
|
+
interface MotionProps {
|
|
389
|
+
/** Starting keyframe applied before the enter animation. */
|
|
390
|
+
initial?: MotionKeyframe;
|
|
391
|
+
/** Target keyframe. Pass a `State` to re-animate whenever it changes. */
|
|
392
|
+
animate?: MotionKeyframe | State<MotionKeyframe>;
|
|
393
|
+
/** Keyframe animated to before the element is removed. */
|
|
394
|
+
exit?: MotionKeyframe;
|
|
395
|
+
transition?: {
|
|
396
|
+
/** ms, default 300. */
|
|
397
|
+
duration?: number;
|
|
398
|
+
/** ms, default 0. */
|
|
399
|
+
delay?: number;
|
|
400
|
+
/** CSS easing, default "ease". */
|
|
401
|
+
easing?: string;
|
|
402
|
+
iterations?: number;
|
|
403
|
+
};
|
|
406
404
|
}
|
|
405
|
+
declare function motion(props?: MotionProps): PartialElement;
|
|
407
406
|
|
|
408
|
-
|
|
409
|
-
fields: Map<string, FieldState>;
|
|
410
|
-
setField(path: string, initValue?: unknown, validator?: FieldValidator): FieldState;
|
|
411
|
-
getField(path: string): FieldState;
|
|
412
|
-
removeField(path: string): void;
|
|
413
|
-
get valid(): boolean;
|
|
414
|
-
reset(): void;
|
|
415
|
-
snapshot(): Record<string, unknown>;
|
|
416
|
-
_dispose(): void;
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
declare function form(state: FormState): PartialElement;
|
|
420
|
-
|
|
421
|
-
declare function field(path: string, validator?: FieldValidator): PartialElement;
|
|
422
|
-
|
|
423
|
-
export { type FieldMessages, FieldState, type FieldStatus, type FieldValidator, FormState, abbreviation, alert, avatar, badge, blockquote, breadcrumb, breadcrumbEllipsis, button, buttonSwitch, card, code, combobox, command, commandItem, commandSearch, descriptionList, details, dialog, divider, drawer, emphasis, field, figure, form, formGroup, heading, horizontalRule, icon, image, inputCheckbox, inputColor, inputDateTime, inputFile, inputNumber, inputOTP, inputRadio, inputRange, inputSearch, inputSwitch, inputText, keyboard, label, link, mark, menu, menuItem, orderedList, pagination, paragraph, popover, popoverArrow, preformated, progress, select, selectBox, selectItem, selectList, skeleton, small, spinner, splitter, splitterHandle, splitterPanel, strong, subscript, superscript, tab, tabPanel, table, tabs, tag, textarea, toast, toggle, toggleGroup, tooltip, transitionGroup, unorderedList };
|
|
407
|
+
export { type MotionKeyframe, type MotionProps, abbreviation, alert, avatar, badge, blockquote, breadcrumb, breadcrumbEllipsis, button, buttonSwitch, card, code, combobox, command, commandItem, commandSearch, descriptionList, details, dialog, divider, drawer, emphasis, figure, formGroup, heading, horizontalRule, icon, image, inputCheckbox, inputColor, inputDateTime, inputFile, inputNumber, inputOTP, inputRadio, inputRange, inputSearch, inputSwitch, inputText, keyboard, label, link, mark, menu, menuItem, motion, orderedList, pagination, paragraph, popover, popoverArrow, preformated, progress, select, selectBox, selectItem, selectList, skeleton, small, spinner, splitter, splitterHandle, splitterPanel, strong, subscript, superscript, tab, tabPanel, table, tabs, tag, textarea, toast, toggle, toggleGroup, tooltip, transitionGroup, unorderedList };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ValueOrState, PartialElement, DomphyElement,
|
|
1
|
+
import { ValueOrState, PartialElement, DomphyElement, State } from '@domphy/core';
|
|
2
2
|
import { ThemeColor } from '@domphy/theme';
|
|
3
3
|
import { Placement as Placement$1 } from '@floating-ui/dom';
|
|
4
4
|
export { Placement } from '@floating-ui/dom';
|
|
@@ -374,50 +374,34 @@ declare function menuItem(props?: {
|
|
|
374
374
|
color?: ThemeColor;
|
|
375
375
|
}): PartialElement;
|
|
376
376
|
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
validate(): void;
|
|
405
|
-
_dispose(): void;
|
|
377
|
+
/**
|
|
378
|
+
* One keyframe. Shorthands `x`/`y` (px), `scale`, `rotate` (deg) compose into a
|
|
379
|
+
* single `transform`; any other key is a raw CSS property (e.g. `opacity`,
|
|
380
|
+
* `backgroundColor`).
|
|
381
|
+
*/
|
|
382
|
+
type MotionKeyframe = {
|
|
383
|
+
x?: number | string;
|
|
384
|
+
y?: number | string;
|
|
385
|
+
scale?: number | string;
|
|
386
|
+
rotate?: number | string;
|
|
387
|
+
} & Record<string, string | number>;
|
|
388
|
+
interface MotionProps {
|
|
389
|
+
/** Starting keyframe applied before the enter animation. */
|
|
390
|
+
initial?: MotionKeyframe;
|
|
391
|
+
/** Target keyframe. Pass a `State` to re-animate whenever it changes. */
|
|
392
|
+
animate?: MotionKeyframe | State<MotionKeyframe>;
|
|
393
|
+
/** Keyframe animated to before the element is removed. */
|
|
394
|
+
exit?: MotionKeyframe;
|
|
395
|
+
transition?: {
|
|
396
|
+
/** ms, default 300. */
|
|
397
|
+
duration?: number;
|
|
398
|
+
/** ms, default 0. */
|
|
399
|
+
delay?: number;
|
|
400
|
+
/** CSS easing, default "ease". */
|
|
401
|
+
easing?: string;
|
|
402
|
+
iterations?: number;
|
|
403
|
+
};
|
|
406
404
|
}
|
|
405
|
+
declare function motion(props?: MotionProps): PartialElement;
|
|
407
406
|
|
|
408
|
-
|
|
409
|
-
fields: Map<string, FieldState>;
|
|
410
|
-
setField(path: string, initValue?: unknown, validator?: FieldValidator): FieldState;
|
|
411
|
-
getField(path: string): FieldState;
|
|
412
|
-
removeField(path: string): void;
|
|
413
|
-
get valid(): boolean;
|
|
414
|
-
reset(): void;
|
|
415
|
-
snapshot(): Record<string, unknown>;
|
|
416
|
-
_dispose(): void;
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
declare function form(state: FormState): PartialElement;
|
|
420
|
-
|
|
421
|
-
declare function field(path: string, validator?: FieldValidator): PartialElement;
|
|
422
|
-
|
|
423
|
-
export { type FieldMessages, FieldState, type FieldStatus, type FieldValidator, FormState, abbreviation, alert, avatar, badge, blockquote, breadcrumb, breadcrumbEllipsis, button, buttonSwitch, card, code, combobox, command, commandItem, commandSearch, descriptionList, details, dialog, divider, drawer, emphasis, field, figure, form, formGroup, heading, horizontalRule, icon, image, inputCheckbox, inputColor, inputDateTime, inputFile, inputNumber, inputOTP, inputRadio, inputRange, inputSearch, inputSwitch, inputText, keyboard, label, link, mark, menu, menuItem, orderedList, pagination, paragraph, popover, popoverArrow, preformated, progress, select, selectBox, selectItem, selectList, skeleton, small, spinner, splitter, splitterHandle, splitterPanel, strong, subscript, superscript, tab, tabPanel, table, tabs, tag, textarea, toast, toggle, toggleGroup, tooltip, transitionGroup, unorderedList };
|
|
407
|
+
export { type MotionKeyframe, type MotionProps, abbreviation, alert, avatar, badge, blockquote, breadcrumb, breadcrumbEllipsis, button, buttonSwitch, card, code, combobox, command, commandItem, commandSearch, descriptionList, details, dialog, divider, drawer, emphasis, figure, formGroup, heading, horizontalRule, icon, image, inputCheckbox, inputColor, inputDateTime, inputFile, inputNumber, inputOTP, inputRadio, inputRange, inputSearch, inputSwitch, inputText, keyboard, label, link, mark, menu, menuItem, motion, orderedList, pagination, paragraph, popover, popoverArrow, preformated, progress, select, selectBox, selectItem, selectList, skeleton, small, spinner, splitter, splitterHandle, splitterPanel, strong, subscript, superscript, tab, tabPanel, table, tabs, tag, textarea, toast, toggle, toggleGroup, tooltip, transitionGroup, unorderedList };
|