|
71 | 71 | }
|
72 | 72 | }
|
73 | 73 | },
|
| 74 | + "avatar": { |
| 75 | + "api": { |
| 76 | + "isLoaded": { |
| 77 | + "type": "boolean", |
| 78 | + "description": "Whether the image is loaded." |
| 79 | + }, |
| 80 | + "showFallback": { |
| 81 | + "type": "boolean", |
| 82 | + "description": "Whether the fallback is shown." |
| 83 | + }, |
| 84 | + "setSrc": { |
| 85 | + "type": "(src: string) => void", |
| 86 | + "description": "Function to set new src." |
| 87 | + }, |
| 88 | + "setLoaded": { |
| 89 | + "type": "() => void", |
| 90 | + "description": "Function to set loaded state." |
| 91 | + }, |
| 92 | + "setError": { |
| 93 | + "type": "() => void", |
| 94 | + "description": "Function to set error state." |
| 95 | + } |
| 96 | + }, |
| 97 | + "context": { |
| 98 | + "id": { |
| 99 | + "type": "string", |
| 100 | + "description": "The unique identifier of the machine.", |
| 101 | + "defaultValue": null |
| 102 | + }, |
| 103 | + "getRootNode": { |
| 104 | + "type": "() => Node | ShadowRoot | Document", |
| 105 | + "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron.", |
| 106 | + "defaultValue": null |
| 107 | + } |
| 108 | + } |
| 109 | + }, |
74 | 110 | "carousel": {
|
75 | 111 | "api": {
|
76 | 112 | "index": {
|
|
130 | 166 | "defaultValue": null
|
131 | 167 | },
|
132 | 168 | "getRootNode": {
|
133 |
| - "type": "() => Node | ShadowRoot | Document", |
| 169 | + "type": "() => Node | Document | ShadowRoot", |
134 | 170 | "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron.",
|
135 | 171 | "defaultValue": null
|
136 | 172 | },
|
|
201 | 237 | "setChecked": {
|
202 | 238 | "type": "(checked: CheckedState) => void",
|
203 | 239 | "description": "Function to set the checked state of the checkbox"
|
| 240 | + }, |
| 241 | + "toggleChecked": { |
| 242 | + "type": "() => void", |
| 243 | + "description": "Function to toggle the checked state of the checkbox" |
204 | 244 | }
|
205 | 245 | },
|
206 | 246 | "context": {
|
|
565 | 605 | "type": "DateView",
|
566 | 606 | "description": "The current view of the date picker"
|
567 | 607 | },
|
| 608 | + "matchView": { |
| 609 | + "type": "typeof matchView", |
| 610 | + "description": "Matcher for the current view of the date picker" |
| 611 | + }, |
568 | 612 | "getDaysInWeek": {
|
569 | 613 | "type": "(weekIndex: number, from?: DateValue[]",
|
570 | 614 | "description": "Returns an array of days in the week index counted from the provided start date, or the first visible date if not given."
|
|
654 | 698 | "description": "The visible range of dates."
|
655 | 699 | },
|
656 | 700 | "getYears": {
|
657 |
| - "type": "(props?: { columns?: number; }) => number[][]", |
| 701 | + "type": "() => { label: string; value: number; }[]", |
| 702 | + "description": "Returns the months of the year" |
| 703 | + }, |
| 704 | + "getYearsGrid": { |
| 705 | + "type": "(props?: { columns?: number; }) => { label: string; value: number; }[][]", |
658 | 706 | "description": "Returns the years of the decade based on the columns.\nRepresented as an array of arrays of years."
|
659 | 707 | },
|
660 | 708 | "getDecade": {
|
661 | 709 | "type": "() => { start: number; end: number; }",
|
662 | 710 | "description": "Returns the start and end years of the decade."
|
663 | 711 | },
|
664 | 712 | "getMonths": {
|
665 |
| - "type": "(props?: { columns?: number; format?: \"short\" | \"long\"; }) => string[][]", |
| 713 | + "type": "(props?: { format?: \"short\" | \"long\"; }) => { label: string; value: number; }[]", |
| 714 | + "description": "Returns the months of the year" |
| 715 | + }, |
| 716 | + "getMonthsGrid": { |
| 717 | + "type": "(props?: { columns?: number; format?: \"short\" | \"long\"; }) => { label: string; value: number; }[][]", |
666 | 718 | "description": "Returns the months of the year based on the columns.\nRepresented as an array of arrays of months."
|
667 | 719 | },
|
668 | 720 | "format": {
|
|
1906 | 1958 | "type": "boolean",
|
1907 | 1959 | "description": "Whether text selection should be enabled on the pressable element.",
|
1908 | 1960 | "defaultValue": null
|
| 1961 | + }, |
| 1962 | + "longPressDelay": { |
| 1963 | + "type": "number", |
| 1964 | + "description": "The amount of time (in milliseconds) to wait before firing the `onLongPress` event.", |
| 1965 | + "defaultValue": null |
1909 | 1966 | }
|
1910 | 1967 | }
|
1911 | 1968 | },
|
|
2604 | 2661 | "type": "{ min: number; max: number; }",
|
2605 | 2662 | "description": "The bounds of the currently dragged splitter handle."
|
2606 | 2663 | },
|
2607 |
| - "collapse": { |
| 2664 | + "setToMinSize": { |
2608 | 2665 | "type": "(id: PanelId) => void",
|
2609 |
| - "description": "Function to collapse a panel." |
| 2666 | + "description": "Function to set a panel to its minimum size." |
2610 | 2667 | },
|
2611 |
| - "expand": { |
| 2668 | + "setToMaxSize": { |
2612 | 2669 | "type": "(id: PanelId) => void",
|
2613 |
| - "description": "Function to expand a panel." |
2614 |
| - }, |
2615 |
| - "toggle": { |
2616 |
| - "type": "(id: PanelId) => void", |
2617 |
| - "description": "Function to toggle a panel between collapsed and expanded." |
| 2670 | + "description": "Function to set a panel to its maximum size." |
2618 | 2671 | },
|
2619 | 2672 | "setSize": {
|
2620 | 2673 | "type": "(id: PanelId, size: number) => void",
|
|
2687 | 2740 | "type": "boolean",
|
2688 | 2741 | "description": "Whether the checkbox is focused"
|
2689 | 2742 | },
|
2690 |
| - "isReadOnly": { |
2691 |
| - "type": "boolean", |
2692 |
| - "description": "Whether the checkbox is readonly" |
2693 |
| - }, |
2694 | 2743 | "setChecked": {
|
2695 |
| - "type": "(value: boolean) => void", |
| 2744 | + "type": "(checked: boolean) => void", |
2696 | 2745 | "description": "Function to set the checked state of the switch."
|
| 2746 | + }, |
| 2747 | + "toggleChecked": { |
| 2748 | + "type": "() => void", |
| 2749 | + "description": "Function to toggle the checked state of the checkbox" |
2697 | 2750 | }
|
2698 | 2751 | },
|
2699 | 2752 | "context": {
|
|
2771 | 2824 | "type": "string | number",
|
2772 | 2825 | "description": "The value of switch input. Useful for form submission.",
|
2773 | 2826 | "defaultValue": "\"on\""
|
2774 |
| - }, |
2775 |
| - "aria-label": { |
2776 |
| - "type": "string", |
2777 |
| - "description": "Defines the string that labels the switch element.", |
2778 |
| - "defaultValue": null |
2779 | 2827 | }
|
2780 | 2828 | }
|
2781 | 2829 | },
|
|
0 commit comments