@yewdiel21/motion-kit 0.10.0 → 0.14.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/README.md +155 -93
- package/dist/auto/index.d.ts +53 -3
- package/dist/auto/index.js +101 -3
- package/dist/auto/index.js.map +1 -1
- package/dist/{chunk-IKQ5FODN.js → chunk-6P4P7NU6.js} +2 -218
- package/dist/chunk-6P4P7NU6.js.map +1 -0
- package/dist/chunk-CU6SXW3E.js +20334 -0
- package/dist/chunk-CU6SXW3E.js.map +1 -0
- package/dist/{chunk-XAKC2QY7.js → chunk-EY4BJKC4.js} +3 -28
- package/dist/chunk-EY4BJKC4.js.map +1 -0
- package/dist/chunk-QP4QJOEN.js +72 -0
- package/dist/chunk-QP4QJOEN.js.map +1 -0
- package/dist/css/components/activity-feed.css +240 -0
- package/dist/css/components/attachment.css +266 -0
- package/dist/css/components/breadcrumb.css +110 -0
- package/dist/css/components/chart-tooltip.css +168 -0
- package/dist/css/components/chart.css +296 -0
- package/dist/css/components/code-block.css +264 -0
- package/dist/css/components/color-area.css +82 -0
- package/dist/css/components/color-field.css +67 -0
- package/dist/css/components/color-picker.css +131 -0
- package/dist/css/components/color-slider.css +113 -0
- package/dist/css/components/command-search.css +252 -0
- package/dist/css/components/context-menu.css +23 -0
- package/dist/css/components/credit-card.css +288 -0
- package/dist/css/components/data-table.css +591 -0
- package/dist/css/components/date-range-picker.css +168 -0
- package/dist/css/components/date-time-picker.css +178 -0
- package/dist/css/components/drawer.css +58 -0
- package/dist/css/components/editable-table.css +201 -0
- package/dist/css/components/empty-state.css +61 -0
- package/dist/css/components/file-explorer.css +633 -0
- package/dist/css/components/filter-builder.css +232 -0
- package/dist/css/components/hold-confirm.css +87 -0
- package/dist/css/components/hover-card.css +13 -7
- package/dist/css/components/image-preview.css +195 -0
- package/dist/css/components/json-viewer.css +272 -0
- package/dist/css/components/like-button.css +78 -0
- package/dist/css/components/link-preview.css +275 -0
- package/dist/css/components/loading-button.css +77 -0
- package/dist/css/components/multi-select.css +267 -0
- package/dist/css/components/notification-bell.css +127 -0
- package/dist/css/components/password-strength.css +183 -0
- package/dist/css/components/popover.css +25 -0
- package/dist/css/components/progress.css +140 -0
- package/dist/css/components/questionnaire.css +217 -0
- package/dist/css/components/range-calendar.css +186 -0
- package/dist/css/components/range-slider.css +192 -0
- package/dist/css/components/resizable-panel.css +243 -0
- package/dist/css/components/rich-text-editor.css +284 -0
- package/dist/css/components/scratch-card.css +75 -0
- package/dist/css/components/skeleton.css +108 -0
- package/dist/css/components/split-view.css +19 -0
- package/dist/css/components/star-rating.css +80 -0
- package/dist/css/components/stat-card.css +164 -0
- package/dist/css/components/swipe-actions.css +105 -0
- package/dist/css/components/tag-input.css +244 -0
- package/dist/css/components/time-field.css +88 -0
- package/dist/css/components/timeline.css +219 -0
- package/dist/css/components/tooltip.css +79 -0
- package/dist/css/components/tree-view.css +210 -0
- package/dist/css/components/virtual-list.css +195 -0
- package/dist/css/tokens.css +185 -181
- package/dist/elements/index.d.ts +674 -5
- package/dist/elements/index.js +1361 -8
- package/dist/elements/index.js.map +1 -1
- package/dist/{engine-GDGwQnJE.d.ts → engine-Cn6IhE3z.d.ts} +1 -1
- package/dist/engine-QECQnGz1.d.ts +33 -0
- package/dist/index.css +9104 -189
- package/dist/index.d.ts +89 -5
- package/dist/index.js +243 -9
- package/dist/index.js.map +1 -1
- package/dist/react/index.d.ts +579 -23
- package/dist/react/index.js +2042 -7
- package/dist/react/index.js.map +1 -1
- package/dist/{reduced-BmBzKH94.d.ts → reduced-BBUusld6.d.ts} +9 -2
- package/dist/reveal-DEvp6U6T.d.ts +2381 -0
- package/dist/{store-DYb3tTsZ.d.ts → store-DjkTBX7f.d.ts} +2 -2
- package/package.json +1 -1
- package/registry.json +406 -1
- package/src/auto/auto-init.ts +98 -0
- package/src/components/activity-feed/README.md +56 -0
- package/src/components/activity-feed/activity-feed.css +239 -0
- package/src/components/activity-feed/element.ts +36 -0
- package/src/components/activity-feed/engine.ts +351 -0
- package/src/components/activity-feed/react.tsx +32 -0
- package/src/components/attachment/README.md +27 -0
- package/src/components/attachment/attachment.css +265 -0
- package/src/components/attachment/element.ts +50 -0
- package/src/components/attachment/engine.ts +469 -0
- package/src/components/attachment/react.tsx +65 -0
- package/src/components/breadcrumb/README.md +38 -0
- package/src/components/breadcrumb/breadcrumb.css +109 -0
- package/src/components/breadcrumb/element.ts +27 -0
- package/src/components/breadcrumb/engine.ts +249 -0
- package/src/components/breadcrumb/react.tsx +30 -0
- package/src/components/chart/README.md +24 -0
- package/src/components/chart/chart.css +295 -0
- package/src/components/chart/element.ts +41 -0
- package/src/components/chart/engine.ts +811 -0
- package/src/components/chart/react.tsx +50 -0
- package/src/components/chart-tooltip/README.md +53 -0
- package/src/components/chart-tooltip/chart-tooltip.css +167 -0
- package/src/components/chart-tooltip/element.ts +37 -0
- package/src/components/chart-tooltip/engine.ts +442 -0
- package/src/components/chart-tooltip/react.tsx +47 -0
- package/src/components/code-block/README.md +19 -0
- package/src/components/code-block/code-block.css +263 -0
- package/src/components/code-block/element.ts +34 -0
- package/src/components/code-block/engine.ts +254 -0
- package/src/components/code-block/highlight.ts +244 -0
- package/src/components/code-block/react.tsx +94 -0
- package/src/components/color-area/README.md +50 -0
- package/src/components/color-area/color-area.css +81 -0
- package/src/components/color-area/element.ts +26 -0
- package/src/components/color-area/engine.ts +246 -0
- package/src/components/color-area/react.tsx +42 -0
- package/src/components/color-field/README.md +43 -0
- package/src/components/color-field/color-field.css +66 -0
- package/src/components/color-field/element.ts +26 -0
- package/src/components/color-field/engine.ts +174 -0
- package/src/components/color-field/react.tsx +42 -0
- package/src/components/color-picker/README.md +45 -0
- package/src/components/color-picker/color-picker.css +130 -0
- package/src/components/color-picker/element.ts +45 -0
- package/src/components/color-picker/engine.ts +314 -0
- package/src/components/color-picker/react.tsx +47 -0
- package/src/components/color-slider/README.md +55 -0
- package/src/components/color-slider/color-slider.css +112 -0
- package/src/components/color-slider/element.ts +26 -0
- package/src/components/color-slider/engine.ts +234 -0
- package/src/components/color-slider/react.tsx +45 -0
- package/src/components/command-search/README.md +15 -0
- package/src/components/command-search/command-search.css +251 -0
- package/src/components/command-search/element.ts +36 -0
- package/src/components/command-search/engine.ts +356 -0
- package/src/components/command-search/match.ts +53 -0
- package/src/components/command-search/react.tsx +66 -0
- package/src/components/context-menu/README.md +31 -0
- package/src/components/context-menu/context-menu.css +22 -0
- package/src/components/context-menu/element.ts +40 -0
- package/src/components/context-menu/engine.ts +153 -0
- package/src/components/context-menu/react.tsx +57 -0
- package/src/components/credit-card/README.md +20 -0
- package/src/components/credit-card/card.ts +77 -0
- package/src/components/credit-card/credit-card.css +287 -0
- package/src/components/credit-card/element.ts +33 -0
- package/src/components/credit-card/engine.ts +410 -0
- package/src/components/credit-card/react.tsx +36 -0
- package/src/components/data-table/README.md +83 -0
- package/src/components/data-table/data-table.css +590 -0
- package/src/components/data-table/element.ts +54 -0
- package/src/components/data-table/engine.ts +1059 -0
- package/src/components/data-table/react.tsx +94 -0
- package/src/components/date-range-picker/README.md +51 -0
- package/src/components/date-range-picker/date-range-picker.css +167 -0
- package/src/components/date-range-picker/element.ts +52 -0
- package/src/components/date-range-picker/engine.ts +352 -0
- package/src/components/date-range-picker/react.tsx +57 -0
- package/src/components/date-time-picker/README.md +48 -0
- package/src/components/date-time-picker/date-time-picker.css +177 -0
- package/src/components/date-time-picker/element.ts +47 -0
- package/src/components/date-time-picker/engine.ts +350 -0
- package/src/components/date-time-picker/react.tsx +54 -0
- package/src/components/dialog/README.md +103 -102
- package/src/components/dialog/element.ts +123 -118
- package/src/components/dialog/engine.ts +449 -432
- package/src/components/drawer/README.md +28 -0
- package/src/components/drawer/drawer.css +57 -0
- package/src/components/drawer/element.ts +21 -0
- package/src/components/drawer/engine.ts +56 -0
- package/src/components/drawer/react.tsx +85 -0
- package/src/components/editable-table/README.md +67 -0
- package/src/components/editable-table/editable-table.css +200 -0
- package/src/components/editable-table/element.ts +45 -0
- package/src/components/editable-table/engine.ts +775 -0
- package/src/components/editable-table/react.tsx +79 -0
- package/src/components/empty-state/README.md +41 -0
- package/src/components/empty-state/element.ts +23 -0
- package/src/components/empty-state/empty-state.css +60 -0
- package/src/components/empty-state/engine.ts +232 -0
- package/src/components/empty-state/react.tsx +34 -0
- package/src/components/file-explorer/README.md +67 -0
- package/src/components/file-explorer/element.ts +39 -0
- package/src/components/file-explorer/engine.ts +1307 -0
- package/src/components/file-explorer/file-explorer.css +632 -0
- package/src/components/file-explorer/react.tsx +77 -0
- package/src/components/filter-builder/README.md +47 -0
- package/src/components/filter-builder/element.ts +34 -0
- package/src/components/filter-builder/engine.ts +365 -0
- package/src/components/filter-builder/filter-builder.css +231 -0
- package/src/components/filter-builder/react.tsx +36 -0
- package/src/components/hold-confirm/README.md +13 -0
- package/src/components/hold-confirm/element.ts +24 -0
- package/src/components/hold-confirm/engine.ts +216 -0
- package/src/components/hold-confirm/hold-confirm.css +86 -0
- package/src/components/hold-confirm/react.tsx +28 -0
- package/src/components/hover-card/README.md +6 -2
- package/src/components/hover-card/engine.ts +68 -6
- package/src/components/hover-card/hover-card.css +13 -7
- package/src/components/image-preview/README.md +16 -0
- package/src/components/image-preview/element.ts +26 -0
- package/src/components/image-preview/engine.ts +325 -0
- package/src/components/image-preview/image-preview.css +194 -0
- package/src/components/image-preview/react.tsx +43 -0
- package/src/components/json-viewer/README.md +56 -0
- package/src/components/json-viewer/element.ts +37 -0
- package/src/components/json-viewer/engine.ts +440 -0
- package/src/components/json-viewer/json-viewer.css +271 -0
- package/src/components/json-viewer/react.tsx +56 -0
- package/src/components/like-button/README.md +13 -0
- package/src/components/like-button/element.ts +47 -0
- package/src/components/like-button/engine.ts +145 -0
- package/src/components/like-button/like-button.css +77 -0
- package/src/components/like-button/react.tsx +39 -0
- package/src/components/link-preview/README.md +19 -0
- package/src/components/link-preview/element.ts +29 -0
- package/src/components/link-preview/engine.ts +192 -0
- package/src/components/link-preview/link-preview.css +274 -0
- package/src/components/link-preview/react.tsx +101 -0
- package/src/components/loading-button/README.md +45 -0
- package/src/components/loading-button/element.ts +34 -0
- package/src/components/loading-button/engine.ts +201 -0
- package/src/components/loading-button/loading-button.css +76 -0
- package/src/components/loading-button/react.tsx +43 -0
- package/src/components/multi-select/README.md +48 -0
- package/src/components/multi-select/element.ts +28 -0
- package/src/components/multi-select/engine.ts +294 -0
- package/src/components/multi-select/multi-select.css +266 -0
- package/src/components/multi-select/react.tsx +39 -0
- package/src/components/notification-bell/README.md +14 -0
- package/src/components/notification-bell/element.ts +48 -0
- package/src/components/notification-bell/engine.ts +202 -0
- package/src/components/notification-bell/notification-bell.css +126 -0
- package/src/components/notification-bell/react.tsx +57 -0
- package/src/components/password-strength/README.md +17 -0
- package/src/components/password-strength/element.ts +22 -0
- package/src/components/password-strength/engine.ts +212 -0
- package/src/components/password-strength/password-strength.css +182 -0
- package/src/components/password-strength/react.tsx +36 -0
- package/src/components/password-strength/score.ts +62 -0
- package/src/components/popover/README.md +44 -0
- package/src/components/popover/element.ts +31 -0
- package/src/components/popover/engine.ts +114 -0
- package/src/components/popover/popover.css +24 -0
- package/src/components/popover/react.tsx +50 -0
- package/src/components/progress/README.md +17 -0
- package/src/components/progress/element.ts +30 -0
- package/src/components/progress/engine.ts +173 -0
- package/src/components/progress/progress.css +139 -0
- package/src/components/progress/react.tsx +35 -0
- package/src/components/questionnaire/README.md +32 -0
- package/src/components/questionnaire/element.ts +118 -0
- package/src/components/questionnaire/engine.ts +255 -0
- package/src/components/questionnaire/questionnaire.css +216 -0
- package/src/components/questionnaire/react.tsx +140 -0
- package/src/components/range-calendar/README.md +58 -0
- package/src/components/range-calendar/element.ts +42 -0
- package/src/components/range-calendar/engine.ts +390 -0
- package/src/components/range-calendar/range-calendar.css +185 -0
- package/src/components/range-calendar/react.tsx +56 -0
- package/src/components/range-slider/README.md +23 -0
- package/src/components/range-slider/element.ts +53 -0
- package/src/components/range-slider/engine.ts +316 -0
- package/src/components/range-slider/range-slider.css +191 -0
- package/src/components/range-slider/react.tsx +66 -0
- package/src/components/resizable-panel/README.md +61 -0
- package/src/components/resizable-panel/element.ts +36 -0
- package/src/components/resizable-panel/engine.ts +551 -0
- package/src/components/resizable-panel/react.tsx +74 -0
- package/src/components/resizable-panel/resizable-panel.css +242 -0
- package/src/components/rich-text-editor/README.md +57 -0
- package/src/components/rich-text-editor/element.ts +34 -0
- package/src/components/rich-text-editor/engine.ts +673 -0
- package/src/components/rich-text-editor/react.tsx +60 -0
- package/src/components/rich-text-editor/rich-text-editor.css +283 -0
- package/src/components/scratch-card/README.md +15 -0
- package/src/components/scratch-card/element.ts +30 -0
- package/src/components/scratch-card/engine.ts +257 -0
- package/src/components/scratch-card/react.tsx +40 -0
- package/src/components/scratch-card/scratch-card.css +74 -0
- package/src/components/skeleton/README.md +15 -0
- package/src/components/skeleton/element.ts +32 -0
- package/src/components/skeleton/engine.ts +104 -0
- package/src/components/skeleton/react.tsx +41 -0
- package/src/components/skeleton/skeleton.css +107 -0
- package/src/components/split-view/README.md +50 -0
- package/src/components/split-view/element.ts +34 -0
- package/src/components/split-view/engine.ts +114 -0
- package/src/components/split-view/react.tsx +63 -0
- package/src/components/split-view/split-view.css +18 -0
- package/src/components/star-rating/README.md +14 -0
- package/src/components/star-rating/element.ts +26 -0
- package/src/components/star-rating/engine.ts +217 -0
- package/src/components/star-rating/react.tsx +33 -0
- package/src/components/star-rating/star-rating.css +79 -0
- package/src/components/stat-card/README.md +42 -0
- package/src/components/stat-card/element.ts +40 -0
- package/src/components/stat-card/engine.ts +283 -0
- package/src/components/stat-card/react.tsx +36 -0
- package/src/components/stat-card/stat-card.css +163 -0
- package/src/components/swipe-actions/README.md +19 -0
- package/src/components/swipe-actions/element.ts +26 -0
- package/src/components/swipe-actions/engine.ts +260 -0
- package/src/components/swipe-actions/react.tsx +80 -0
- package/src/components/swipe-actions/swipe-actions.css +104 -0
- package/src/components/tag-input/README.md +42 -0
- package/src/components/tag-input/element.ts +39 -0
- package/src/components/tag-input/engine.ts +313 -0
- package/src/components/tag-input/react.tsx +54 -0
- package/src/components/tag-input/tag-input.css +243 -0
- package/src/components/time-field/README.md +54 -0
- package/src/components/time-field/element.ts +38 -0
- package/src/components/time-field/engine.ts +110 -0
- package/src/components/time-field/react.tsx +45 -0
- package/src/components/time-field/time-field.css +87 -0
- package/src/components/timeline/README.md +57 -0
- package/src/components/timeline/element.ts +31 -0
- package/src/components/timeline/engine.ts +300 -0
- package/src/components/timeline/react.tsx +59 -0
- package/src/components/timeline/timeline.css +218 -0
- package/src/components/tooltip/README.md +46 -0
- package/src/components/tooltip/element.ts +22 -0
- package/src/components/tooltip/engine.ts +288 -0
- package/src/components/tooltip/react.tsx +30 -0
- package/src/components/tooltip/tooltip.css +78 -0
- package/src/components/tree-view/README.md +61 -0
- package/src/components/tree-view/element.ts +32 -0
- package/src/components/tree-view/engine.ts +569 -0
- package/src/components/tree-view/react.tsx +78 -0
- package/src/components/tree-view/tree-view.css +209 -0
- package/src/components/virtual-list/README.md +81 -0
- package/src/components/virtual-list/element.ts +42 -0
- package/src/components/virtual-list/engine.ts +678 -0
- package/src/components/virtual-list/react.tsx +101 -0
- package/src/components/virtual-list/virtual-list.css +194 -0
- package/src/core/chips.ts +196 -0
- package/src/core/color.ts +304 -0
- package/src/core/date-range.ts +67 -0
- package/src/core/dates.ts +11 -1
- package/src/core/files.ts +107 -0
- package/src/core/filter.ts +229 -0
- package/src/core/gsap.ts +80 -65
- package/src/core/listbox.ts +332 -0
- package/src/core/mark.ts +29 -0
- package/src/core/position.ts +89 -0
- package/src/core/relative-time.ts +77 -0
- package/src/core/segment-field.ts +373 -0
- package/src/core/segments.ts +153 -0
- package/src/core/tree.ts +116 -0
- package/src/core/virtual.ts +79 -0
- package/src/css/tokens.css +186 -182
- package/src/elements/index.ts +147 -0
- package/src/index.ts +72 -0
- package/src/motion/micro.ts +248 -0
- package/src/motion/sheet.ts +88 -65
- package/src/motion/surface.ts +9 -0
- package/src/react/index.ts +57 -0
- package/dist/chunk-IKQ5FODN.js.map +0 -1
- package/dist/chunk-J6OCFNGU.js +0 -177
- package/dist/chunk-J6OCFNGU.js.map +0 -1
- package/dist/chunk-TFNRIZHU.js +0 -3977
- package/dist/chunk-TFNRIZHU.js.map +0 -1
- package/dist/chunk-XAKC2QY7.js.map +0 -1
- package/dist/reveal-jsX-uwUz.d.ts +0 -625
package/dist/react/index.d.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { useLayoutEffect, RefObject, DependencyList, ReactNode, CSSProperties, Component, ButtonHTMLAttributes, DialogHTMLAttributes, HTMLAttributes, MutableRefObject, ContextType, TextareaHTMLAttributes, MouseEvent } from 'react';
|
|
2
|
+
import { useLayoutEffect, RefObject, DependencyList, ReactNode, CSSProperties, Component, ButtonHTMLAttributes, DialogHTMLAttributes, HTMLAttributes, MutableRefObject, ContextType, TextareaHTMLAttributes, MouseEvent, FormHTMLAttributes, InputHTMLAttributes, Ref, ReactElement } from 'react';
|
|
3
3
|
import { I as Instance } from '../types-BkS_raL8.js';
|
|
4
|
-
import {
|
|
5
|
-
export {
|
|
6
|
-
import {
|
|
4
|
+
import { b9 as SpringCardsOptions, a4 as CurvedCarouselOptions, C as CurvedCarouselInstance, aN as PileOptions, bo as WordsOptions, bn as WordsInstance, ao as FlowOptions, an as FlowInstance, aP as PopOptions, aO as PopInstance, al as FitTextOptions, ak as FitTextInstance, be as StretchFooterOptions, aR as RadialMenuOptions, aQ as RadialMenuInstance, bg as TabsOptions, bf as TabsInstance, a3 as CounterOptions, a2 as CounterInstance, aY as RevealRecipeOptions, aX as RevealInstance, aT as ReflowOptions, aS as ReflowInstance, b2 as SlotTextOptions, b1 as SlotTextInstance, b7 as SortableOptions, b5 as SortableInstance, aI as MaskTextOptions, aH as MaskTextInstance, $ as CascadeOptions, _ as CascadeInstance, bi as TextRollOptions, bh as TextRollInstance, aC as LettersOptions, aB as LettersInstance, aK as ParallaxOptions, aJ as ParallaxInstance, a6 as DepthGridOptions, a5 as DepthGridInstance, au as FrameZoomOptions, at as FrameZoomInstance, a1 as ContrastOptions, a0 as ContrastInstance, aG as MarqueeOptions, aF as MarqueeInstance, Z as CardDockOptions, Y as CardDockInstance, b4 as SnapStripOptions, b3 as SnapStripInstance, ah as FillTextOptions, ag as FillTextInstance, T as TicketMenuOptions, ay as InfiniteReelOptions, ax as InfiniteReelInstance, aW as RepelBentoOptions, aV as RepelBentoInstance, a_ as RotatorOptions, aZ as RotatorInstance, aa as DragRulerOptions, a9 as DragRulerInstance, a8 as DockPillOptions, a7 as DockPillInstance, aA as JoinedCtaOptions, az as JoinedCtaInstance, aw as ImageZoomOptions, av as ImageZoomInstance, as as FontCycleOptions, ar as FontCycleInstance, bk as ThumbnailNavOptions, bj as ThumbnailNavInstance, W as ActionButtonOptions, V as ActionButtonInstance, aj as FilmHeroOptions, ai as FilmHeroInstance, af as EditorialRevealOptions, ae as EditorialRevealInstance, bm as WeightHoverOptions, bl as WeightHoverInstance, bb as StickerOptions, ba as StickerInstance, b0 as ScrollDockOptions, a$ as ScrollDockInstance, aE as LocalClockOptions, aD as LocalClockInstance, ad as DrawerSide } from '../reduced-BBUusld6.js';
|
|
5
|
+
export { U as MK_HEAD_SCRIPT, aM as PileLayer, aU as ReorderDetail, bu as moveItem, bv as pileLayers, bw as pileStyle } from '../reduced-BBUusld6.js';
|
|
6
|
+
import { bS as MenuInstance, b8 as DialogOptions, b6 as DialogInstance, cd as QuantityOptions, b$ as PaginationOptions, bC as HoverCardOptions, bI as InputOtpOptions, cT as StudioDockOptions, cS as StudioDockInstance, d7 as TrailerOptions, d6 as TrailerInstance, am as CalendarOptions, cH as SlotPickerOptions, a9 as AttachmentOptions, ac as AttachmentStatus, a7 as AttachmentInstance, cD as SkeletonOptions, ce as QuestionnaireAnswers, cg as QuestionnaireLabels, cf as QuestionnaireInstance, aA as CodeBlockOptions, ba as DialogVariant, aO as ContextMenuInstance, bN as LinkPreviewOptions, ca as ProgressOptions, cl as RangeSliderOptions, cm as RangeValue$2, ar as ChartOptions, aq as ChartInstance, aT as CreditCardOptions, aR as CreditCardInstance, aL as CommandItem, aM as CommandSearchInstance, bA as HoldConfirmOptions, bG as ImagePreviewOptions, bF as ImagePreviewInstance, bX as NotificationBellInstance, c4 as PasswordStrengthOptions, cz as ScratchCardOptions, cy as ScratchCardInstance, cP as StarRatingOptions, aK as ColorSliderOptions, aC as ColorAreaOptions, aF as ColorFieldOptions, aI as ColorPickerOptions, c_ as TimeFieldOptions, cj as RangeCalendarOptions, b0 as DateInput, b3 as DateRangePickerOptions, d5 as TooltipOptions, c8 as PopoverOptions, bQ as LoadingButtonOptions, bR as LoadingState, ag as BreadcrumbOptions, af as BreadcrumbItem, bi as EmptyStateOptions, cR as StatCardOptions, av as ChartTooltipOptions, bW as MultiSelectOptions, cY as TagInputOptions, b5 as DateTimePickerOptions, bs as FilterBuilderOptions, bv as FilterGroup, d2 as TimelineOptions, d0 as TimelineEvent, a3 as ActivityFeedOptions, a4 as ActivityItem, da as TreeViewOptions, d8 as TreeNode, d9 as TreeViewInstance, bn as FileExplorerOptions, bl as FileEntry, bm as FileExplorerInstance, bL as JsonViewerOptions, bK as JsonViewerInstance, dd as VirtualListOptions, df as VirtualScrollOptions, co as ResizablePanelOptions, cn as ResizablePanelInstance, cN as SplitViewOptions, cM as SplitViewInstance, aY as DataRow, a$ as DataTableOptions, a_ as DataTableInstance, bd as EditableTableOptions, bc as EditableTableInstance, cu as RichTextEditorOptions, ct as RichTextEditorInstance } from '../reveal-DEvp6U6T.js';
|
|
7
|
+
export { a1 as ActivityActor, a5 as ActivityKind, aV as DataAction, aW as DataColumn, aZ as DataSort, bb as EditableColumn, be as EditorKind, bk as FileChange, bq as FileView, cs as RichCommand, cv as RowChange, cw as RowId, d3 as TimelineStatus } from '../reveal-DEvp6U6T.js';
|
|
7
8
|
import { LiquidBlendOptions, ShaderEffectInstance, MatcapOptions, ShaderGrainOptions, ShaderBlurOptions, ParticleHeroOptions, ParticleHeroInstance } from '../gl/index.js';
|
|
8
9
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
10
|
import { T as ThemeState, s as setTheme, a as setMode, I as InitThemeOptions, b as ThemeMode } from '../theme-Bjf9qIIy.js';
|
|
10
11
|
export { M as MK_THEME_HEAD_SCRIPT, t as themeHeadScript } from '../theme-Bjf9qIIy.js';
|
|
11
|
-
import {
|
|
12
|
-
export {
|
|
12
|
+
import { m as ThemePickerOptions, s as ToasterLabels, a as ChatLabels, C as ChatInstance, u as capturePending, c as ChatRole, j as NavStyle, f as CursorVariant, e as CursorOptions, g as IslandOptions, I as IslandInstance } from '../store-DjkTBX7f.js';
|
|
13
|
+
export { N as NAV_STYLES, n as ToastAction, p as ToastOptions, q as ToastTone, w as clearToasts, E as dismissToast, L as toast } from '../store-DjkTBX7f.js';
|
|
13
14
|
import { C as CapturedLayout } from '../confetti-BSX1CLLV.js';
|
|
14
15
|
export { A as ANIMATIONS, b as AnimationName, d as ConfettiOptions, e as animate, g as confetti, l as leave } from '../confetti-BSX1CLLV.js';
|
|
15
16
|
import 'gsap/SplitText';
|
|
@@ -225,15 +226,15 @@ interface SurfaceRootProps extends SurfaceOptions {
|
|
|
225
226
|
onOpenChange?: (open: boolean) => void;
|
|
226
227
|
children?: ReactNode;
|
|
227
228
|
}
|
|
228
|
-
declare function Root$
|
|
229
|
+
declare function Root$6(props: SurfaceRootProps): react_jsx_runtime.JSX.Element;
|
|
229
230
|
/** A button that opens the dialog and is the shape it grows from. */
|
|
230
|
-
declare function Trigger$
|
|
231
|
+
declare function Trigger$2({ onClick, children, ...props }: ButtonHTMLAttributes<HTMLButtonElement>): react_jsx_runtime.JSX.Element;
|
|
231
232
|
interface DialogContentProps extends Omit<DialogHTMLAttributes<HTMLDialogElement>, 'open'> {
|
|
232
233
|
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
233
234
|
/** Skip the base class (style it yourself). */
|
|
234
235
|
unstyled?: boolean;
|
|
235
236
|
}
|
|
236
|
-
declare function Content$
|
|
237
|
+
declare function Content$2({ size, unstyled, className, children, ...props }: DialogContentProps): react_jsx_runtime.JSX.Element;
|
|
237
238
|
declare function Close({ children, label, ...props }: ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
238
239
|
label?: string;
|
|
239
240
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -246,9 +247,9 @@ declare function Handle({ children, ...props }: ButtonHTMLAttributes<HTMLButtonE
|
|
|
246
247
|
* </Dialog.Content></Dialog.Root>
|
|
247
248
|
*/
|
|
248
249
|
declare const Dialog: {
|
|
249
|
-
Root: typeof Root$
|
|
250
|
-
Trigger: typeof Trigger$
|
|
251
|
-
Content: typeof Content$
|
|
250
|
+
Root: typeof Root$6;
|
|
251
|
+
Trigger: typeof Trigger$2;
|
|
252
|
+
Content: typeof Content$2;
|
|
252
253
|
Header: ({ children, ...props }: HTMLAttributes<HTMLElement>) => react_jsx_runtime.JSX.Element;
|
|
253
254
|
Title: ({ children, ...props }: HTMLAttributes<HTMLElement>) => react_jsx_runtime.JSX.Element;
|
|
254
255
|
Description: ({ children, ...props }: HTMLAttributes<HTMLElement>) => react_jsx_runtime.JSX.Element;
|
|
@@ -271,18 +272,18 @@ interface MenuRootProps extends Omit<SurfaceRootProps, 'placement' | 'backdrop'
|
|
|
271
272
|
closeOnSelect?: boolean;
|
|
272
273
|
children?: ReactNode;
|
|
273
274
|
}
|
|
274
|
-
declare function Root$
|
|
275
|
-
declare function Trigger({ onClick, children, ...props }: ButtonHTMLAttributes<HTMLButtonElement>): react_jsx_runtime.JSX.Element;
|
|
276
|
-
declare function Content({ className, children, ...props }: Omit<DialogHTMLAttributes<HTMLDialogElement>, 'open'>): react_jsx_runtime.JSX.Element;
|
|
275
|
+
declare function Root$5({ onSelect, closeOnSelect, ticket, children, ...props }: MenuRootProps): react_jsx_runtime.JSX.Element;
|
|
276
|
+
declare function Trigger$1({ onClick, children, ...props }: ButtonHTMLAttributes<HTMLButtonElement>): react_jsx_runtime.JSX.Element;
|
|
277
|
+
declare function Content$1({ className, children, ...props }: Omit<DialogHTMLAttributes<HTMLDialogElement>, 'open'>): react_jsx_runtime.JSX.Element;
|
|
277
278
|
declare function Item({ value, children, ...props }: ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
278
279
|
value?: string;
|
|
279
280
|
}): react_jsx_runtime.JSX.Element;
|
|
280
281
|
declare function Separator(): react_jsx_runtime.JSX.Element;
|
|
281
282
|
/** options menu: <Menu.Root onSelect><Menu.Trigger/><Menu.Content><Menu.Item value/>…</Menu.Content></Menu.Root>. */
|
|
282
283
|
declare const Menu: {
|
|
283
|
-
Root: typeof Root$
|
|
284
|
-
Trigger: typeof Trigger;
|
|
285
|
-
Content: typeof Content;
|
|
284
|
+
Root: typeof Root$5;
|
|
285
|
+
Trigger: typeof Trigger$1;
|
|
286
|
+
Content: typeof Content$1;
|
|
286
287
|
Item: typeof Item;
|
|
287
288
|
Separator: typeof Separator;
|
|
288
289
|
};
|
|
@@ -314,7 +315,7 @@ interface ChatRootProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
314
315
|
labels?: ChatLabels;
|
|
315
316
|
children?: ReactNode;
|
|
316
317
|
}
|
|
317
|
-
declare function Root$
|
|
318
|
+
declare function Root$4({ onSend, animateExisting, labels, className, children, ...props }: ChatRootProps): react_jsx_runtime.JSX.Element;
|
|
318
319
|
interface ChatMessagesProps {
|
|
319
320
|
/** Waiting for an answer: "Pensando…" shows after 500 ms and morphs into the next assistant message. */
|
|
320
321
|
pending?: boolean;
|
|
@@ -358,7 +359,7 @@ declare function Confirm({ children, ...props }: HTMLAttributes<HTMLDivElement>)
|
|
|
358
359
|
* <Chat.Message role>)}</Chat.Messages><Chat.Composer /></Chat.Root>.
|
|
359
360
|
*/
|
|
360
361
|
declare const Chat: {
|
|
361
|
-
Root: typeof Root$
|
|
362
|
+
Root: typeof Root$4;
|
|
362
363
|
Messages: typeof Messages;
|
|
363
364
|
Message: typeof Message;
|
|
364
365
|
Composer: typeof Composer;
|
|
@@ -402,7 +403,7 @@ interface StepsProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
|
402
403
|
duration?: number;
|
|
403
404
|
children?: ReactNode;
|
|
404
405
|
}
|
|
405
|
-
declare function Root({ index, onChange, busy, duration, className, children, ...props }: StepsProps): react_jsx_runtime.JSX.Element;
|
|
406
|
+
declare function Root$3({ index, onChange, busy, duration, className, children, ...props }: StepsProps): react_jsx_runtime.JSX.Element;
|
|
406
407
|
declare function Step({ children, ...props }: HTMLAttributes<HTMLElement>): react_jsx_runtime.JSX.Element;
|
|
407
408
|
/** The step number; the engine rolls it (React only writes the first value). */
|
|
408
409
|
declare function Counter(props: HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
@@ -410,7 +411,7 @@ declare function Counter(props: HTMLAttributes<HTMLSpanElement>): react_jsx_runt
|
|
|
410
411
|
* onboarding: <Steps index={i} busy={working}><ChatBackground /><Steps.Counter />
|
|
411
412
|
* <Steps.Step><h2 data-mk-flow-item>…</h2></Steps.Step>…</Steps>. Steps must be direct children.
|
|
412
413
|
*/
|
|
413
|
-
declare const Steps: typeof Root & {
|
|
414
|
+
declare const Steps: typeof Root$3 & {
|
|
414
415
|
Step: typeof Step;
|
|
415
416
|
Counter: typeof Counter;
|
|
416
417
|
};
|
|
@@ -572,4 +573,559 @@ declare const useScrollDock: (ref: RefObject<HTMLElement | null>, options?: Scro
|
|
|
572
573
|
|
|
573
574
|
declare const useLocalClock: (ref: RefObject<HTMLElement | null>, options?: LocalClockOptions, deps?: DependencyList) => RefObject<LocalClockInstance | null>;
|
|
574
575
|
|
|
575
|
-
|
|
576
|
+
interface AttachmentUpload {
|
|
577
|
+
progress: number;
|
|
578
|
+
status?: AttachmentStatus;
|
|
579
|
+
}
|
|
580
|
+
interface AttachmentProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'>, AttachmentOptions {
|
|
581
|
+
/** Upload state by file id, reported by the app (from onFiles ids). */
|
|
582
|
+
uploads?: Record<string, AttachmentUpload>;
|
|
583
|
+
/** Receives the live instance (addFiles, remove, setProgress…). */
|
|
584
|
+
instanceRef?: MutableRefObject<AttachmentInstance | null>;
|
|
585
|
+
}
|
|
586
|
+
/**
|
|
587
|
+
* <Attachment multiple accept="image/*,.pdf" maxSize={5_000_000} onFiles={upload} uploads={progressById} />.
|
|
588
|
+
* The engine draws the chooser and cards; picked files survive rerenders and option changes.
|
|
589
|
+
*/
|
|
590
|
+
declare function Attachment({ accept, multiple, maxFiles, maxSize, disabled, name, initialFiles, hint, labels, onFiles, onRemove, onReject, uploads, instanceRef, className, ...props }: AttachmentProps): react_jsx_runtime.JSX.Element;
|
|
591
|
+
|
|
592
|
+
interface SkeletonProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'>, SkeletonOptions {
|
|
593
|
+
/** The real content, shown when loading ends. */
|
|
594
|
+
children?: ReactNode;
|
|
595
|
+
/** Custom placeholder instead of the shape's bones. */
|
|
596
|
+
placeholder?: ReactNode;
|
|
597
|
+
}
|
|
598
|
+
/**
|
|
599
|
+
* <Skeleton loading={pending} shape="card" label="Cargando perfil"><ProfileCard /></Skeleton>.
|
|
600
|
+
* React owns placeholder and content; the engine only toggles hidden and the busy state.
|
|
601
|
+
*/
|
|
602
|
+
declare function Skeleton({ loading, animation, shape, lines, label, placeholder, children, className, ...props }: SkeletonProps): react_jsx_runtime.JSX.Element;
|
|
603
|
+
|
|
604
|
+
type QuestionType = 'text' | 'textarea' | 'single' | 'multiple';
|
|
605
|
+
interface QuestionOption {
|
|
606
|
+
value: string;
|
|
607
|
+
label: string;
|
|
608
|
+
}
|
|
609
|
+
interface Question {
|
|
610
|
+
/** Field name and answer key. */
|
|
611
|
+
id: string;
|
|
612
|
+
label: string;
|
|
613
|
+
type: QuestionType;
|
|
614
|
+
options?: Array<string | QuestionOption>;
|
|
615
|
+
required?: boolean;
|
|
616
|
+
description?: string;
|
|
617
|
+
placeholder?: string;
|
|
618
|
+
}
|
|
619
|
+
interface QuestionnaireProps extends Omit<FormHTMLAttributes<HTMLFormElement>, 'onChange' | 'children'> {
|
|
620
|
+
questions: Question[];
|
|
621
|
+
/** Answers the fields start with. */
|
|
622
|
+
defaultAnswers?: QuestionnaireAnswers;
|
|
623
|
+
labels?: QuestionnaireLabels & {
|
|
624
|
+
next?: string;
|
|
625
|
+
prev?: string;
|
|
626
|
+
finish?: string;
|
|
627
|
+
restart?: string;
|
|
628
|
+
step?: (index: number, count: number) => ReactNode;
|
|
629
|
+
};
|
|
630
|
+
onChange?: (index: number, answers: QuestionnaireAnswers) => void;
|
|
631
|
+
onComplete?: (answers: QuestionnaireAnswers) => void;
|
|
632
|
+
/** Shown after the last step; a function receives the answers. */
|
|
633
|
+
complete?: ReactNode | ((answers: QuestionnaireAnswers) => ReactNode);
|
|
634
|
+
instanceRef?: {
|
|
635
|
+
current: QuestionnaireInstance | null;
|
|
636
|
+
};
|
|
637
|
+
}
|
|
638
|
+
/**
|
|
639
|
+
* <Questionnaire questions={[{ id: 'name', label: 'Nombre', type: 'text', required: true }, …]} onComplete={save} />.
|
|
640
|
+
* Fields are native and uncontrolled, so answers survive steps and rerenders; the app owns persistence.
|
|
641
|
+
*/
|
|
642
|
+
declare function Questionnaire({ questions, defaultAnswers, labels, onChange, onComplete, complete, instanceRef, className, ...props }: QuestionnaireProps): react_jsx_runtime.JSX.Element;
|
|
643
|
+
|
|
644
|
+
/** `onCopy` is the copy result (not the DOM clipboard event). */
|
|
645
|
+
interface CodeBlockProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'title' | 'onCopy'>, Omit<CodeBlockOptions, 'code'> {
|
|
646
|
+
code: string;
|
|
647
|
+
}
|
|
648
|
+
/**
|
|
649
|
+
* <CodeBlock code={source} language="ts" title="main.ts" lineNumbers />.
|
|
650
|
+
* React renders the highlighted lines (text only); the engine copies the current text and owns the feedback.
|
|
651
|
+
*/
|
|
652
|
+
declare function CodeBlock({ code, language, title, lineNumbers, highlight, highlightLines, copyLabel, copiedLabel, errorLabel, onCopy, className, ...props }: CodeBlockProps): react_jsx_runtime.JSX.Element;
|
|
653
|
+
|
|
654
|
+
interface ContextMenuProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onSelect'> {
|
|
655
|
+
/** The options: <ContextMenu.Item value="…">, <ContextMenu.Separator />. */
|
|
656
|
+
menu: ReactNode;
|
|
657
|
+
/** Accessible name of the menu. */
|
|
658
|
+
label?: string;
|
|
659
|
+
onSelect?: (value: string, item: HTMLElement) => void;
|
|
660
|
+
onOpenChange?: (open: boolean) => void;
|
|
661
|
+
closeOnSelect?: boolean;
|
|
662
|
+
overrideEditable?: boolean;
|
|
663
|
+
longPress?: number;
|
|
664
|
+
variant?: Exclude<DialogVariant, 'sheet' | 'drawer'>;
|
|
665
|
+
instanceRef?: {
|
|
666
|
+
current: ContextMenuInstance | null;
|
|
667
|
+
};
|
|
668
|
+
}
|
|
669
|
+
declare function Root$2({ menu, label, onSelect, onOpenChange, closeOnSelect, overrideEditable, longPress, variant, instanceRef, className, children, ...props }: ContextMenuProps): react_jsx_runtime.JSX.Element;
|
|
670
|
+
/**
|
|
671
|
+
* context menu for React: the children are the area that answers a right click,
|
|
672
|
+
* Menu key, Shift+F10 or long press; `menu` holds the options.
|
|
673
|
+
* <ContextMenu menu={<><ContextMenu.Item value="rename">Renombrar</ContextMenu.Item><ContextMenu.Separator /></>} onSelect={run}>…</ContextMenu>
|
|
674
|
+
*/
|
|
675
|
+
declare const ContextMenu: typeof Root$2 & {
|
|
676
|
+
Item: ({ value, children, ...props }: react.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
677
|
+
value?: string;
|
|
678
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
679
|
+
Separator: () => react_jsx_runtime.JSX.Element;
|
|
680
|
+
};
|
|
681
|
+
|
|
682
|
+
interface DrawerRootProps extends Omit<SurfaceRootProps, 'variant' | 'placement' | 'float' | 'anchor' | 'animateContent'> {
|
|
683
|
+
side?: DrawerSide;
|
|
684
|
+
children?: ReactNode;
|
|
685
|
+
}
|
|
686
|
+
declare function Root$1({ side, children, ...props }: DrawerRootProps): react_jsx_runtime.JSX.Element;
|
|
687
|
+
/** A button that opens the drawer; focus returns to it on close. */
|
|
688
|
+
declare function Trigger({ onClick, children, ...props }: ButtonHTMLAttributes<HTMLButtonElement>): react_jsx_runtime.JSX.Element;
|
|
689
|
+
declare function Content({ className, children, ...props }: Omit<DialogHTMLAttributes<HTMLDialogElement>, 'open'>): react_jsx_runtime.JSX.Element;
|
|
690
|
+
/**
|
|
691
|
+
* drawer for React (the Dialog parts inside):
|
|
692
|
+
* <Drawer.Root side="left"><Drawer.Trigger>Filtros</Drawer.Trigger><Drawer.Content>
|
|
693
|
+
* <Drawer.Header><Drawer.Title>…</Drawer.Title><Drawer.Close /></Drawer.Header>
|
|
694
|
+
* <Drawer.Body>…</Drawer.Body><Drawer.Footer>…</Drawer.Footer>
|
|
695
|
+
* </Drawer.Content></Drawer.Root>
|
|
696
|
+
*/
|
|
697
|
+
declare const Drawer: {
|
|
698
|
+
Root: typeof Root$1;
|
|
699
|
+
Trigger: typeof Trigger;
|
|
700
|
+
Content: typeof Content;
|
|
701
|
+
Header: ({ children, ...props }: react.HTMLAttributes<HTMLElement>) => react_jsx_runtime.JSX.Element;
|
|
702
|
+
Title: ({ children, ...props }: react.HTMLAttributes<HTMLElement>) => react_jsx_runtime.JSX.Element;
|
|
703
|
+
Description: ({ children, ...props }: react.HTMLAttributes<HTMLElement>) => react_jsx_runtime.JSX.Element;
|
|
704
|
+
Actions: ({ children, ...props }: react.HTMLAttributes<HTMLElement>) => react_jsx_runtime.JSX.Element;
|
|
705
|
+
Body: ({ children, ...props }: react.HTMLAttributes<HTMLElement>) => react_jsx_runtime.JSX.Element;
|
|
706
|
+
Footer: ({ children, ...props }: react.HTMLAttributes<HTMLElement>) => react_jsx_runtime.JSX.Element;
|
|
707
|
+
Close: ({ children, label, ...props }: ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
708
|
+
label?: string;
|
|
709
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
710
|
+
};
|
|
711
|
+
/** Open state of the surrounding <Drawer.Root>. */
|
|
712
|
+
declare function useDrawer(): {
|
|
713
|
+
open: boolean;
|
|
714
|
+
setOpen: (open: boolean) => void;
|
|
715
|
+
side: DrawerSide;
|
|
716
|
+
instance: react.MutableRefObject<DialogInstance | null>;
|
|
717
|
+
};
|
|
718
|
+
|
|
719
|
+
interface LinkPreviewProps extends Omit<HTMLAttributes<HTMLElement>, 'title'>, LinkPreviewOptions {
|
|
720
|
+
}
|
|
721
|
+
/**
|
|
722
|
+
* <LinkPreview url="https://…" title="…" description="…" image="/thumb.jpg" siteName="Blog" />, or
|
|
723
|
+
* variant="hover" for a link that previews the card on pointer, focus or tap. Metadata comes from the app.
|
|
724
|
+
*/
|
|
725
|
+
declare function LinkPreview({ url, title, description, image, imageAlt, siteName, variant, label, target, openDelay, closeDelay, placement, onOpenChange, className, ...props }: LinkPreviewProps): react_jsx_runtime.JSX.Element;
|
|
726
|
+
|
|
727
|
+
interface ProgressProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'>, ProgressOptions {
|
|
728
|
+
}
|
|
729
|
+
/** <Progress value={42} label="Subida" showValue />; value={null} is indeterminate. The engine owns the drawing and ARIA. */
|
|
730
|
+
declare function Progress({ value, min, max, label, variant, showValue, formatValue, className, ...props }: ProgressProps): react_jsx_runtime.JSX.Element;
|
|
731
|
+
|
|
732
|
+
interface RangeSliderProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'onInput' | 'defaultValue'>, RangeSliderOptions {
|
|
733
|
+
/** Uncontrolled start; an array makes an interval. */
|
|
734
|
+
defaultValue?: RangeValue$2;
|
|
735
|
+
/** Show the formatted value beside the track (default true). */
|
|
736
|
+
showOutput?: boolean;
|
|
737
|
+
}
|
|
738
|
+
/**
|
|
739
|
+
* <RangeSlider min={0} max={100} defaultValue={[20, 80]} label="Precio" onChange={setRange} />.
|
|
740
|
+
* Controlled with `value`; otherwise the edited value survives rerenders and new bounds.
|
|
741
|
+
*/
|
|
742
|
+
declare function RangeSlider({ min, max, step, value, defaultValue, disabled, name, label, formatValue, onInput, onChange, showOutput, className, ...props }: RangeSliderProps): react_jsx_runtime.JSX.Element;
|
|
743
|
+
|
|
744
|
+
interface ChartProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onSelect' | 'children'>, ChartOptions {
|
|
745
|
+
instanceRef?: {
|
|
746
|
+
current: ChartInstance | null;
|
|
747
|
+
};
|
|
748
|
+
}
|
|
749
|
+
/**
|
|
750
|
+
* <Chart type="bar" stacked labels={weeks} series={[{ name: 'Ana', values }]} formatValue={money} label="Sesiones por semana" />.
|
|
751
|
+
* Data changes redraw in place; the selection survives when its point still exists.
|
|
752
|
+
*/
|
|
753
|
+
declare function Chart({ type, labels, series, points, stacked, formatValue, label, height, emptyLabel, legend, tooltip, onSelect, instanceRef, className, ...props }: ChartProps): react_jsx_runtime.JSX.Element;
|
|
754
|
+
|
|
755
|
+
interface CreditCardProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'children'>, CreditCardOptions {
|
|
756
|
+
instanceRef?: MutableRefObject<CreditCardInstance | null>;
|
|
757
|
+
}
|
|
758
|
+
/**
|
|
759
|
+
* <CreditCard onComplete={() => setReady(true)} /> inside a <form>: the engine makes the card and the
|
|
760
|
+
* native cc-* fields; the app reads the form when it submits. Callbacks carry no card data.
|
|
761
|
+
*/
|
|
762
|
+
declare function CreditCard({ labels, names, tilt, onChange, onComplete, instanceRef, className, ...props }: CreditCardProps): react_jsx_runtime.JSX.Element;
|
|
763
|
+
|
|
764
|
+
interface CommandSearchProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'onSelect' | 'children'> {
|
|
765
|
+
items: CommandItem[];
|
|
766
|
+
placeholder?: string;
|
|
767
|
+
emptyLabel?: string;
|
|
768
|
+
label?: string;
|
|
769
|
+
shortcut?: boolean;
|
|
770
|
+
limit?: number;
|
|
771
|
+
/** The trigger's content (default: «Buscar» and the shortcut). null hides the trigger. */
|
|
772
|
+
trigger?: ReactNode;
|
|
773
|
+
onSelect?: (item: CommandItem) => void;
|
|
774
|
+
onOpenChange?: (open: boolean) => void;
|
|
775
|
+
instanceRef?: MutableRefObject<CommandSearchInstance | null>;
|
|
776
|
+
}
|
|
777
|
+
/** <CommandSearch items={commands} onSelect={(item) => navigate(item.id)} />: ⌘K / Ctrl+K or the trigger opens it. */
|
|
778
|
+
declare function CommandSearch({ items, placeholder, emptyLabel, label, shortcut, limit, trigger, onSelect, onOpenChange, instanceRef, className, ...props }: CommandSearchProps): react_jsx_runtime.JSX.Element;
|
|
779
|
+
|
|
780
|
+
interface HoldConfirmProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'onClick'>, HoldConfirmOptions {
|
|
781
|
+
children?: ReactNode;
|
|
782
|
+
}
|
|
783
|
+
/**
|
|
784
|
+
* <HoldConfirm onConfirm={removeAccount}>Eliminar cuenta</HoldConfirm>: hold the button to confirm.
|
|
785
|
+
* The engine moves the label into its own span, so pass plain text or inline content.
|
|
786
|
+
*/
|
|
787
|
+
declare function HoldConfirm({ duration, resetAfter, holdingLabel, doneLabel, hint, disabled, onConfirm, className, children, ...props }: HoldConfirmProps): react_jsx_runtime.JSX.Element;
|
|
788
|
+
|
|
789
|
+
interface PreviewImage {
|
|
790
|
+
src: string;
|
|
791
|
+
/** Smaller image for the thumbnail (default: src). */
|
|
792
|
+
thumb?: string;
|
|
793
|
+
alt: string;
|
|
794
|
+
caption?: string;
|
|
795
|
+
}
|
|
796
|
+
interface ImagePreviewProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>, ImagePreviewOptions {
|
|
797
|
+
images: PreviewImage[];
|
|
798
|
+
instanceRef?: MutableRefObject<ImagePreviewInstance | null>;
|
|
799
|
+
}
|
|
800
|
+
/** <ImagePreview images={[{ src, thumb, alt, caption }]} />: a grid of thumbnails that open a viewer. */
|
|
801
|
+
declare function ImagePreview({ images, labels, loop, onChange, onOpenChange, instanceRef, className, ...props }: ImagePreviewProps): react_jsx_runtime.JSX.Element;
|
|
802
|
+
|
|
803
|
+
interface LikeButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onChange' | 'children'> {
|
|
804
|
+
/** Controlled state; without it the button keeps its own. */
|
|
805
|
+
liked?: boolean;
|
|
806
|
+
defaultLiked?: boolean;
|
|
807
|
+
count?: number;
|
|
808
|
+
label?: string;
|
|
809
|
+
hideCount?: boolean;
|
|
810
|
+
onChange?: (liked: boolean, count: number) => void;
|
|
811
|
+
}
|
|
812
|
+
/** <LikeButton count={128} onChange={(liked, count) => save(liked)} />. */
|
|
813
|
+
declare function LikeButton({ liked, defaultLiked, count, label, hideCount, onChange, className, ...props }: LikeButtonProps): react_jsx_runtime.JSX.Element;
|
|
814
|
+
|
|
815
|
+
interface NotificationBellProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
|
|
816
|
+
/** Unread count. A higher count than before rings the bell. */
|
|
817
|
+
count?: number;
|
|
818
|
+
/** The newest message: a new value rings the bell and shows it. */
|
|
819
|
+
message?: string;
|
|
820
|
+
label?: string;
|
|
821
|
+
messageDuration?: number;
|
|
822
|
+
max?: number;
|
|
823
|
+
onOpen?: () => void;
|
|
824
|
+
instanceRef?: MutableRefObject<NotificationBellInstance | null>;
|
|
825
|
+
}
|
|
826
|
+
/** <NotificationBell count={unread} message={latest} onOpen={openPanel} />. */
|
|
827
|
+
declare function NotificationBell({ count, message, label, messageDuration, max, onOpen, instanceRef, className, ...props }: NotificationBellProps): react_jsx_runtime.JSX.Element;
|
|
828
|
+
|
|
829
|
+
interface PasswordStrengthProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'onChange'>, Omit<PasswordStrengthOptions, 'onChange'> {
|
|
830
|
+
onStrength?: PasswordStrengthOptions['onChange'];
|
|
831
|
+
/** The text of the field as it changes. */
|
|
832
|
+
onValueChange?: (value: string) => void;
|
|
833
|
+
}
|
|
834
|
+
/** <PasswordStrength name="password" aria-label="Contraseña" requireScore={3} onStrength={setResult} />. The field stays uncontrolled. */
|
|
835
|
+
declare function PasswordStrength({ minLength, score, requireScore, labels, onStrength, onValueChange, className, ...props }: PasswordStrengthProps): react_jsx_runtime.JSX.Element;
|
|
836
|
+
|
|
837
|
+
interface ScratchCardProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'onProgress'>, ScratchCardOptions {
|
|
838
|
+
/** What the cover hides. */
|
|
839
|
+
children?: ReactNode;
|
|
840
|
+
instanceRef?: MutableRefObject<ScratchCardInstance | null>;
|
|
841
|
+
}
|
|
842
|
+
/** <ScratchCard onReveal={claim}><Coupon code="OTOÑO25" /></ScratchCard>. */
|
|
843
|
+
declare function ScratchCard({ threshold, brush, coverLabel, revealLabel, revealedLabel, celebrate, onProgress, onReveal, instanceRef, className, children, ...props }: ScratchCardProps): react_jsx_runtime.JSX.Element;
|
|
844
|
+
|
|
845
|
+
interface StarRatingProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'>, Omit<StarRatingOptions, 'value'> {
|
|
846
|
+
/** Controlled value; without it the stars keep their own (defaultValue). */
|
|
847
|
+
value?: number;
|
|
848
|
+
defaultValue?: number;
|
|
849
|
+
}
|
|
850
|
+
/** <StarRating value={stars} onChange={setStars} allowClear /> or <StarRating readonly value={4.5} />. */
|
|
851
|
+
declare function StarRating({ value, defaultValue, max, name, label, labels, readonly, allowClear, disabled, onChange, className, ...props }: StarRatingProps): react_jsx_runtime.JSX.Element;
|
|
852
|
+
|
|
853
|
+
interface SwipeAction {
|
|
854
|
+
id: string;
|
|
855
|
+
label: string;
|
|
856
|
+
/** Glyph or icon inside the round button. */
|
|
857
|
+
icon?: ReactNode;
|
|
858
|
+
tone?: 'neutral' | 'danger' | 'accent';
|
|
859
|
+
/** The row folds away after it runs (the app then removes it). */
|
|
860
|
+
remove?: boolean;
|
|
861
|
+
/** Run by a long swipe on its side. */
|
|
862
|
+
primary?: boolean;
|
|
863
|
+
}
|
|
864
|
+
interface SwipeRowProps extends Omit<HTMLAttributes<HTMLLIElement>, 'children'> {
|
|
865
|
+
left?: SwipeAction[];
|
|
866
|
+
right?: SwipeAction[];
|
|
867
|
+
children?: ReactNode;
|
|
868
|
+
}
|
|
869
|
+
/** One row: its face (children) and the actions behind each side. */
|
|
870
|
+
declare function Row({ left, right, children, ...props }: SwipeRowProps): react_jsx_runtime.JSX.Element;
|
|
871
|
+
interface SwipeActionsProps extends Omit<HTMLAttributes<HTMLUListElement>, 'onChange'> {
|
|
872
|
+
fullSwipe?: number;
|
|
873
|
+
/** An action ran (a removing one after its row folded away): update your data here. */
|
|
874
|
+
onAction?: (action: string, row: HTMLElement) => void;
|
|
875
|
+
children?: ReactNode;
|
|
876
|
+
}
|
|
877
|
+
declare function Root({ fullSwipe, onAction, className, children, ...props }: SwipeActionsProps): react_jsx_runtime.JSX.Element;
|
|
878
|
+
/**
|
|
879
|
+
* <SwipeActions onAction={(id, row) => …}><SwipeActions.Row key={mail.id} data-id={mail.id} right={[{ id: 'delete', label: 'Eliminar', remove: true, tone: 'danger' }]}>…</SwipeActions.Row></SwipeActions>
|
|
880
|
+
*/
|
|
881
|
+
declare const SwipeActions: typeof Root & {
|
|
882
|
+
Row: typeof Row;
|
|
883
|
+
};
|
|
884
|
+
|
|
885
|
+
interface ColorSliderProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onInput' | 'onChange' | 'defaultValue'>, Omit<ColorSliderOptions, 'value'> {
|
|
886
|
+
/** Controlled colour; without it the slider keeps its own (defaultValue). */
|
|
887
|
+
value?: string;
|
|
888
|
+
defaultValue?: string;
|
|
889
|
+
}
|
|
890
|
+
/** <ColorSlider channel="hue" value={color} onInput={setColor} />. */
|
|
891
|
+
declare function ColorSlider({ value, defaultValue, channel, label, orientation, step, showValue, name, disabled, onInput, onChange, className, ...props }: ColorSliderProps): react_jsx_runtime.JSX.Element;
|
|
892
|
+
|
|
893
|
+
interface ColorAreaProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onInput' | 'onChange' | 'defaultValue'>, Omit<ColorAreaOptions, 'value'> {
|
|
894
|
+
/** Controlled colour; without it the area keeps its own (defaultValue). */
|
|
895
|
+
value?: string;
|
|
896
|
+
defaultValue?: string;
|
|
897
|
+
}
|
|
898
|
+
/** <ColorArea value={color} onInput={setColor} />. */
|
|
899
|
+
declare function ColorArea({ value, defaultValue, label, step, name, disabled, onInput, onChange, className, ...props }: ColorAreaProps): react_jsx_runtime.JSX.Element;
|
|
900
|
+
|
|
901
|
+
interface ColorFieldProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'>, Omit<ColorFieldOptions, 'value'> {
|
|
902
|
+
/** Controlled colour; without it the field keeps its own (defaultValue). */
|
|
903
|
+
value?: string;
|
|
904
|
+
defaultValue?: string;
|
|
905
|
+
}
|
|
906
|
+
/** <ColorField value={color} onChange={setColor} format="rgb" />. The engine creates the input. */
|
|
907
|
+
declare function ColorField({ value, defaultValue, format, alpha, label, name, disabled, readOnly, onChange, className, ...props }: ColorFieldProps): react_jsx_runtime.JSX.Element;
|
|
908
|
+
|
|
909
|
+
interface ColorPickerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onInput' | 'onChange' | 'defaultValue'>, Omit<ColorPickerOptions, 'value'> {
|
|
910
|
+
/** Controlled colour; without it the picker keeps its own (defaultValue). */
|
|
911
|
+
value?: string;
|
|
912
|
+
defaultValue?: string;
|
|
913
|
+
}
|
|
914
|
+
/** <ColorPicker value={color} onInput={setColor} alpha /> or <ColorPicker inline … />. */
|
|
915
|
+
declare function ColorPicker({ value, defaultValue, alpha, format, swatches, label, name, disabled, inline, eyedropper, onInput, onChange, className, ...props }: ColorPickerProps): react_jsx_runtime.JSX.Element;
|
|
916
|
+
|
|
917
|
+
interface TimeFieldProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'>, Omit<TimeFieldOptions, 'value'> {
|
|
918
|
+
/** Controlled time ('HH:MM', 24 h); without it the field keeps its own (defaultValue). */
|
|
919
|
+
value?: string | null;
|
|
920
|
+
defaultValue?: string | null;
|
|
921
|
+
}
|
|
922
|
+
/** <TimeField value={time} onChange={setTime} minuteStep={15} />. */
|
|
923
|
+
declare function TimeField({ value, defaultValue, locale, hourCycle, seconds, minuteStep, min, max, label, name, disabled, readOnly, onChange, className, ...props }: TimeFieldProps): react_jsx_runtime.JSX.Element;
|
|
924
|
+
|
|
925
|
+
type RangeValue$1 = {
|
|
926
|
+
start: DateInput;
|
|
927
|
+
end: DateInput;
|
|
928
|
+
} | null;
|
|
929
|
+
interface RangeCalendarProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'>, Omit<RangeCalendarOptions, 'value'> {
|
|
930
|
+
/** Controlled range; without it the calendar keeps its own (defaultValue). */
|
|
931
|
+
value?: RangeValue$1;
|
|
932
|
+
defaultValue?: RangeValue$1;
|
|
933
|
+
}
|
|
934
|
+
/** <RangeCalendar value={range} onChange={setRange} visibleMonths={2} />. */
|
|
935
|
+
declare function RangeCalendar({ value, defaultValue, month, visibleMonths, firstDay, min, max, unavailable, locale, today, labels, onChange, className, ...props }: RangeCalendarProps): react_jsx_runtime.JSX.Element;
|
|
936
|
+
|
|
937
|
+
type RangeValue = {
|
|
938
|
+
start: DateInput;
|
|
939
|
+
end: DateInput;
|
|
940
|
+
} | null;
|
|
941
|
+
interface DateRangePickerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'>, Omit<DateRangePickerOptions, 'value'> {
|
|
942
|
+
/** Controlled range; without it the picker keeps its own (defaultValue). */
|
|
943
|
+
value?: RangeValue;
|
|
944
|
+
defaultValue?: RangeValue;
|
|
945
|
+
}
|
|
946
|
+
/** <DateRangePicker value={range} onChange={setRange} presets={[…]} />. */
|
|
947
|
+
declare function DateRangePicker({ value, defaultValue, min, max, unavailable, firstDay, locale, today, label, name, presets, disabled, onChange, className, ...props }: DateRangePickerProps): react_jsx_runtime.JSX.Element;
|
|
948
|
+
|
|
949
|
+
interface TooltipProps extends HTMLAttributes<HTMLSpanElement>, TooltipOptions {
|
|
950
|
+
}
|
|
951
|
+
/** <Tooltip content="Copiar enlace"><button>…</button></Tooltip>: the first focusable child is the trigger. */
|
|
952
|
+
declare function Tooltip({ content, placement, openDelay, closeDelay, interactive, arrow, onOpenChange, className, children, ...props }: TooltipProps): react_jsx_runtime.JSX.Element;
|
|
953
|
+
|
|
954
|
+
interface PopoverProps extends Omit<HTMLAttributes<HTMLDivElement>, 'content'>, PopoverOptions {
|
|
955
|
+
/** The control that opens it (a button). */
|
|
956
|
+
trigger: ReactNode;
|
|
957
|
+
/** Controlled open state (optional). */
|
|
958
|
+
open?: boolean;
|
|
959
|
+
/** Extra class for the panel. */
|
|
960
|
+
panelClassName?: string;
|
|
961
|
+
}
|
|
962
|
+
interface PopoverHandle {
|
|
963
|
+
open(): void;
|
|
964
|
+
close(): void;
|
|
965
|
+
}
|
|
966
|
+
/** <Popover trigger={<button>Filtros</button>}>…</Popover>: the panel grows out of the trigger. */
|
|
967
|
+
declare const Popover: react.ForwardRefExoticComponent<PopoverProps & react.RefAttributes<PopoverHandle>>;
|
|
968
|
+
|
|
969
|
+
interface LoadingButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick'>, Omit<LoadingButtonOptions, 'action'> {
|
|
970
|
+
/** Runs on click; its promise drives loading → success / error. */
|
|
971
|
+
action?: () => unknown;
|
|
972
|
+
/** Controlled state (optional): drive it yourself instead of `action`. */
|
|
973
|
+
state?: LoadingState;
|
|
974
|
+
}
|
|
975
|
+
/** <LoadingButton action={save} className="mk-button">Guardar</LoadingButton>. */
|
|
976
|
+
declare function LoadingButton({ action, state, labels, compact, resetAfter, onStateChange, className, children, type, ...props }: LoadingButtonProps): react_jsx_runtime.JSX.Element;
|
|
977
|
+
|
|
978
|
+
interface BreadcrumbProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'>, Omit<BreadcrumbOptions, 'items'> {
|
|
979
|
+
items: BreadcrumbItem[];
|
|
980
|
+
}
|
|
981
|
+
/** <Breadcrumb items={path} onNavigate={(item, i, event) => { event.preventDefault(); go(item.href) }} />. */
|
|
982
|
+
declare function Breadcrumb({ items, label, maxItems, onNavigate, className, ...props }: BreadcrumbProps): react_jsx_runtime.JSX.Element;
|
|
983
|
+
|
|
984
|
+
interface EmptyStateProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title' | 'children'>, EmptyStateOptions {
|
|
985
|
+
}
|
|
986
|
+
/** <EmptyState illustration="search" title="Sin resultados" actions={[{ id: 'clear', label: 'Borrar filtros' }]} onAction={…} />. */
|
|
987
|
+
declare function EmptyState({ illustration, title, description, actions, loop, onAction, className, ...props }: EmptyStateProps): react_jsx_runtime.JSX.Element;
|
|
988
|
+
|
|
989
|
+
interface StatCardProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'>, StatCardOptions {
|
|
990
|
+
}
|
|
991
|
+
/** <StatCard label="Ingresos" value={128400} previous={118900} format={{ style: 'currency', currency: 'MXN' }} series={week} />. */
|
|
992
|
+
declare function StatCard({ label, value, previous, format, locale, positive, comparison, series, target, countOnView, className, ...props }: StatCardProps): react_jsx_runtime.JSX.Element;
|
|
993
|
+
|
|
994
|
+
interface ChartTooltipProps extends HTMLAttributes<HTMLDivElement>, ChartTooltipOptions {
|
|
995
|
+
}
|
|
996
|
+
/**
|
|
997
|
+
* <ChartTooltip share><Chart tooltip={false} … /></ChartTooltip>, or over any chart with labels, series,
|
|
998
|
+
* inset, min and max.
|
|
999
|
+
*/
|
|
1000
|
+
declare function ChartTooltip({ labels, series, align, inset, min, max, formatValue, delta, share, total, sort, pin, label, onIndexChange, className, children, ...props }: ChartTooltipProps): react_jsx_runtime.JSX.Element;
|
|
1001
|
+
|
|
1002
|
+
interface MultiSelectProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'>, MultiSelectOptions {
|
|
1003
|
+
/** Controlled values; without it the field keeps its own (defaultValue). */
|
|
1004
|
+
value?: string[];
|
|
1005
|
+
defaultValue?: string[];
|
|
1006
|
+
}
|
|
1007
|
+
/** <MultiSelect options={people} value={chosen} onChange={setChosen} max={3} />. */
|
|
1008
|
+
declare function MultiSelect({ options, value, defaultValue, placeholder, label, name, max, closeOnSelect, disabled, onChange, className, ...props }: MultiSelectProps): react_jsx_runtime.JSX.Element;
|
|
1009
|
+
|
|
1010
|
+
interface TagInputProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'>, TagInputOptions {
|
|
1011
|
+
/** Controlled tags; without it the field keeps its own (defaultValue). */
|
|
1012
|
+
value?: string[];
|
|
1013
|
+
defaultValue?: string[];
|
|
1014
|
+
}
|
|
1015
|
+
/** <TagInput value={tags} onChange={setTags} suggestions={known} max={8} />. */
|
|
1016
|
+
declare function TagInput({ value, defaultValue, suggestions, placeholder, label, name, max, restrict, allowDuplicates, validate, transform, disabled, onChange, className, ...props }: TagInputProps): react_jsx_runtime.JSX.Element;
|
|
1017
|
+
|
|
1018
|
+
interface DateTimePickerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'>, Omit<DateTimePickerOptions, 'value'> {
|
|
1019
|
+
/** Controlled value (Date or 'YYYY-MM-DDTHH:MM'); without it the picker keeps its own (defaultValue). */
|
|
1020
|
+
value?: DateInput | null;
|
|
1021
|
+
defaultValue?: DateInput | null;
|
|
1022
|
+
}
|
|
1023
|
+
/** <DateTimePicker value={when} onChange={setWhen} minuteStep={15} />. */
|
|
1024
|
+
declare function DateTimePicker({ value, defaultValue, min, max, locale, hourCycle, minuteStep, firstDay, unavailable, today, label, name, disabled, onChange, className, ...props }: DateTimePickerProps): react_jsx_runtime.JSX.Element;
|
|
1025
|
+
|
|
1026
|
+
interface FilterBuilderProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'>, FilterBuilderOptions {
|
|
1027
|
+
/** Controlled filter; without it the builder keeps its own (defaultValue). */
|
|
1028
|
+
value?: FilterGroup;
|
|
1029
|
+
defaultValue?: FilterGroup;
|
|
1030
|
+
}
|
|
1031
|
+
/** <FilterBuilder fields={fields} value={filter} onChange={setFilter} />. */
|
|
1032
|
+
declare function FilterBuilder({ fields, value, defaultValue, maxDepth, label, summary, onChange, className, ...props }: FilterBuilderProps): react_jsx_runtime.JSX.Element;
|
|
1033
|
+
|
|
1034
|
+
interface TimelineProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'>, Omit<TimelineOptions, 'events'> {
|
|
1035
|
+
events: TimelineEvent[];
|
|
1036
|
+
}
|
|
1037
|
+
/**
|
|
1038
|
+
* <Timeline events={history} group />. Changing `events` updates in place: an event added at either end grows in,
|
|
1039
|
+
* one that changes state recolours its dot, one that goes folds away.
|
|
1040
|
+
*/
|
|
1041
|
+
declare function Timeline({ events, layout, group, relative, locale, label, className, ...props }: TimelineProps): react_jsx_runtime.JSX.Element;
|
|
1042
|
+
|
|
1043
|
+
interface ActivityFeedProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'>, Omit<ActivityFeedOptions, 'items'> {
|
|
1044
|
+
/** Initial entries; later activity goes through the handle (prepend / append). */
|
|
1045
|
+
items?: ActivityItem[];
|
|
1046
|
+
}
|
|
1047
|
+
interface ActivityFeedHandle {
|
|
1048
|
+
prepend(items: ActivityItem[]): void;
|
|
1049
|
+
append(items: ActivityItem[]): void;
|
|
1050
|
+
}
|
|
1051
|
+
/** <ActivityFeed ref={feed} items={recent} onLoadMore={loadOlder} />, then feed.current.prepend(live). */
|
|
1052
|
+
declare const ActivityFeed: react.ForwardRefExoticComponent<ActivityFeedProps & react.RefAttributes<ActivityFeedHandle>>;
|
|
1053
|
+
|
|
1054
|
+
interface TreeViewProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onSelect' | 'children'>, Omit<TreeViewOptions, 'nodes'> {
|
|
1055
|
+
nodes: TreeNode[];
|
|
1056
|
+
}
|
|
1057
|
+
type TreeViewHandle = Pick<TreeViewInstance, 'expand' | 'collapse' | 'expandAll' | 'collapseAll' | 'reveal' | 'filter'>;
|
|
1058
|
+
/** <TreeView nodes={tree} checkable checked={ids} onCheck={setIds} search />. */
|
|
1059
|
+
declare const TreeView: react.ForwardRefExoticComponent<TreeViewProps & react.RefAttributes<TreeViewHandle>>;
|
|
1060
|
+
|
|
1061
|
+
interface FileExplorerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'children'>, Omit<FileExplorerOptions, 'files'> {
|
|
1062
|
+
files: FileEntry[];
|
|
1063
|
+
}
|
|
1064
|
+
type FileExplorerHandle = Pick<FileExplorerInstance, 'open' | 'up' | 'setView' | 'select' | 'createFolder' | 'rename' | 'remove' | 'move'>;
|
|
1065
|
+
/**
|
|
1066
|
+
* <FileExplorer files={files} onChange={setFiles} onOpen={preview} />. Hand back what onChange gives (or nothing:
|
|
1067
|
+
* the explorer keeps its own copy); different files from the app replace the shown ones.
|
|
1068
|
+
*/
|
|
1069
|
+
declare const FileExplorer: react.ForwardRefExoticComponent<FileExplorerProps & react.RefAttributes<FileExplorerHandle>>;
|
|
1070
|
+
|
|
1071
|
+
interface JsonViewerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onSelect' | 'onCopy' | 'children'>, JsonViewerOptions {
|
|
1072
|
+
}
|
|
1073
|
+
type JsonViewerHandle = Pick<JsonViewerInstance, 'expandAll' | 'collapseAll' | 'reveal' | 'filter' | 'copy'>;
|
|
1074
|
+
/** <JsonViewer data={response} expandDepth={2} search />. New data keeps what was open and flashes what changed. */
|
|
1075
|
+
declare const JsonViewer: react.ForwardRefExoticComponent<JsonViewerProps & react.RefAttributes<JsonViewerHandle>>;
|
|
1076
|
+
|
|
1077
|
+
interface VirtualListProps<T> extends Omit<HTMLAttributes<HTMLDivElement>, 'onSelect' | 'children'>, Omit<VirtualListOptions<T>, 'items' | 'renderItem' | 'onRange'> {
|
|
1078
|
+
items: T[];
|
|
1079
|
+
/** A row's content; without it, its text. */
|
|
1080
|
+
renderItem?: (item: T, index: number) => ReactNode;
|
|
1081
|
+
}
|
|
1082
|
+
interface VirtualListHandle {
|
|
1083
|
+
scrollToIndex(index: number, options?: VirtualScrollOptions): void;
|
|
1084
|
+
}
|
|
1085
|
+
declare const VirtualList: <T>(props: VirtualListProps<T> & {
|
|
1086
|
+
ref?: Ref<VirtualListHandle>;
|
|
1087
|
+
}) => ReactElement;
|
|
1088
|
+
|
|
1089
|
+
interface ResizablePanelProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onResize'>, ResizablePanelOptions {
|
|
1090
|
+
}
|
|
1091
|
+
type ResizablePanelHandle = Pick<ResizablePanelInstance, 'setSizes' | 'collapse' | 'expand' | 'toggle' | 'reset'>;
|
|
1092
|
+
/**
|
|
1093
|
+
* <ResizablePanel sizes={[25, 75]} collapsible={[0]} onResizeEnd={save}><aside /><main /></ResizablePanel>.
|
|
1094
|
+
* New `sizes` glide there; adding or taking away a panel starts it again.
|
|
1095
|
+
*/
|
|
1096
|
+
declare const ResizablePanel: react.ForwardRefExoticComponent<ResizablePanelProps & react.RefAttributes<ResizablePanelHandle>>;
|
|
1097
|
+
|
|
1098
|
+
interface SplitViewProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'children'>, SplitViewOptions {
|
|
1099
|
+
/** The two areas. */
|
|
1100
|
+
children: [ReactNode, ReactNode];
|
|
1101
|
+
}
|
|
1102
|
+
type SplitViewHandle = Pick<SplitViewInstance, 'setRatio' | 'collapse' | 'expand' | 'toggle'>;
|
|
1103
|
+
/** <SplitView ratio={0.35} stackBelow={640} labels={['Bandeja', 'Mensaje']}><List /><Detail /></SplitView>. A new `ratio` glides there. */
|
|
1104
|
+
declare const SplitView: react.ForwardRefExoticComponent<SplitViewProps & react.RefAttributes<SplitViewHandle>>;
|
|
1105
|
+
|
|
1106
|
+
interface DataTableProps<T extends DataRow> extends Omit<HTMLAttributes<HTMLDivElement>, 'children'>, Omit<DataTableOptions<T>, 'rows'> {
|
|
1107
|
+
rows: T[];
|
|
1108
|
+
}
|
|
1109
|
+
type DataTableHandle<T extends DataRow = DataRow> = Pick<DataTableInstance<T>, 'sortBy' | 'setPage' | 'setPageSize' | 'setQuery' | 'setFilter' | 'setColumnVisible' | 'select' | 'removeRows' | 'updateRow'>;
|
|
1110
|
+
declare const DataTable: <T extends DataRow>(props: DataTableProps<T> & {
|
|
1111
|
+
ref?: Ref<DataTableHandle<T>>;
|
|
1112
|
+
}) => ReactElement;
|
|
1113
|
+
|
|
1114
|
+
interface EditableTableProps<T extends DataRow> extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'children'>, Omit<EditableTableOptions<T>, 'rows'> {
|
|
1115
|
+
rows: T[];
|
|
1116
|
+
}
|
|
1117
|
+
type EditableTableHandle<T extends DataRow = DataRow> = Pick<EditableTableInstance<T>, 'edit' | 'setValue' | 'addRow' | 'removeRows' | 'save' | 'discard'>;
|
|
1118
|
+
declare const EditableTable: <T extends DataRow>(props: EditableTableProps<T> & {
|
|
1119
|
+
ref?: Ref<EditableTableHandle<T>>;
|
|
1120
|
+
}) => ReactElement;
|
|
1121
|
+
|
|
1122
|
+
interface RichTextEditorProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'children' | 'defaultValue'>, RichTextEditorOptions {
|
|
1123
|
+
}
|
|
1124
|
+
type RichTextEditorHandle = Pick<RichTextEditorInstance, 'focus' | 'exec' | 'setValue'>;
|
|
1125
|
+
/**
|
|
1126
|
+
* <RichTextEditor value={html} onChange={(html) => setHtml(html)} maxLength={500} />.
|
|
1127
|
+
* `value` is the first content; later a different value from the app replaces it (the echo of onChange does not).
|
|
1128
|
+
*/
|
|
1129
|
+
declare const RichTextEditor: react.ForwardRefExoticComponent<RichTextEditorProps & react.RefAttributes<RichTextEditorHandle>>;
|
|
1130
|
+
|
|
1131
|
+
export { ActivityFeed, type ActivityFeedHandle, type ActivityFeedProps, ActivityItem, AnimatedNumber, type AnimatedNumberProps, Attachment, type AttachmentProps, type AttachmentUpload, Breadcrumb, type BreadcrumbProps, Calendar, type CalendarProps, Chart, type ChartProps, ChartTooltip, type ChartTooltipProps, Chat, ChatBackground, type ChatBackgroundProps, type ChatComposerProps, type ChatMessageProps, type ChatMessagesProps, type ChatRootProps, CodeBlock, type CodeBlockProps, ColorArea, type ColorAreaProps, ColorField, type ColorFieldProps, ColorPicker, type ColorPickerProps, ColorSlider, type ColorSliderProps, CommandItem, CommandSearch, type CommandSearchProps, ContextMenu, type ContextMenuProps, CreditCard, type CreditCardProps, Cursor, type CursorProps, DataRow, DataTable, type DataTableHandle, type DataTableProps, DateRangePicker, type DateRangePickerProps, DateTimePicker, type DateTimePickerProps, Dialog, type DialogContentProps, Drawer, type DrawerRootProps, EditableTable, type EditableTableHandle, type EditableTableProps, EmptyState, type EmptyStateProps, FileEntry, FileExplorer, type FileExplorerHandle, type FileExplorerProps, FilterBuilder, type FilterBuilderProps, FlipGroup, type FlipGroupProps, Frost, type FrostProps, HoldConfirm, type HoldConfirmProps, HoverCard, type HoverCardProps, ImagePreview, type ImagePreviewProps, InputOtp, type InputOtpProps, Island, IslandDots, type IslandPanel, type IslandProps, JsonViewer, type JsonViewerHandle, type JsonViewerProps, LikeButton, type LikeButtonProps, LinkPreview, type LinkPreviewProps, LoadingButton, type LoadingButtonProps, Menu, type MenuRootProps, MkIcon, MultiSelect, type MultiSelectProps, Nav, type NavItem, type NavProps, NavStyle, NotificationBell, type NotificationBellProps, Pagination, type PaginationProps, PasswordStrength, type PasswordStrengthProps, Popover, type PopoverProps, type PreviewImage, Progress, type ProgressProps, Quantity, type QuantityProps, type Question, type QuestionOption, type QuestionType, Questionnaire, type QuestionnaireProps, RangeCalendar, type RangeCalendarProps, RangeSlider, type RangeSliderProps, ResizablePanel, type ResizablePanelHandle, type ResizablePanelProps, RichTextEditor, type RichTextEditorHandle, type RichTextEditorProps, ScratchCard, type ScratchCardProps, Skeleton, type SkeletonProps, SlotPicker, type SlotPickerProps, SlotText, type SlotTextProps, SplitView, type SplitViewHandle, type SplitViewProps, StarRating, type StarRatingProps, StatCard, type StatCardProps, Steps, type StepsProps, StudioDock, type StudioDockProps, type SurfaceRootProps, type SwipeAction, SwipeActions, type SwipeActionsProps, type SwipeRowProps, TagInput, type TagInputProps, type ThemeContextValue, ThemePicker, type ThemePickerProps, ThemeProvider, type ThemeProviderProps, TimeField, type TimeFieldProps, Timeline, TimelineEvent, type TimelineProps, Toaster, type ToasterProps, Tooltip, type TooltipProps, Trailer, type TrailerProps, TreeNode, TreeView, type TreeViewHandle, type TreeViewProps, type UseStretchFooterOptions, VirtualList, type VirtualListHandle, type VirtualListProps, useActionButton, useCardDock, useCascade, useChat, useContrast, useCounter, useCurvedCarousel, useDepthGrid, useDetails, useDialog, useDockPill, useDragRuler, useDrawer, useEditorialReveal, useFillText, useFilmHero, useFitText, useFlow, useFontCycle, useFrameZoom, useImageZoom, useInfiniteReel, useIsomorphicLayoutEffect, useJoinedCta, useLatest, useLetters, useLiquidBlend, useLocalClock, useMarquee, useMaskText, useMatcap, useParallax, useParticleHero, usePile, usePop, useRadialMenu, useRecipe, useReflow, useRepelBento, useReveal, useRotator, useScrollDock, useShaderBlur, useShaderGrain, useSlotText, useSnapStrip, useSortable, useSpringCards, useSticker, useStretchFooter, useStudioDock, useTabs, useTextRoll, useTheme, useThumbnailNav, useTicketMenu, useTrailer, useWeightHover, useWords };
|