@krak-stack/registry 0.10.20 → 0.11.1
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/CHANGELOG.md +83 -3
- package/README.md +11 -8
- package/dist/components/agent/index.d.ts +454 -0
- package/dist/components/agent/react.d.ts +55 -0
- package/dist/components/agent/react.js +2594 -0
- package/dist/components/agent/schema.d.ts +55 -0
- package/dist/components/animated-list/classes.d.ts +9 -0
- package/dist/components/animated-list/html.d.ts +11 -0
- package/dist/components/animated-list/html.js +533 -0
- package/dist/components/animated-list/index.d.ts +205 -0
- package/dist/components/animated-list/react.d.ts +11 -0
- package/dist/components/animated-list/react.js +711 -0
- package/dist/components/animated-list/schema.d.ts +44 -0
- package/dist/components/animated-number/html.d.ts +19 -0
- package/dist/components/animated-number/html.js +101 -0
- package/dist/components/animated-number/index.d.ts +80 -0
- package/dist/components/{ui/animated-number.d.ts → animated-number/react.d.ts} +2 -7
- package/dist/components/animated-number/react.js +278 -0
- package/dist/components/animated-number/schema.d.ts +9 -0
- package/dist/components/app-brand/classes.d.ts +11 -0
- package/dist/components/app-brand/html.d.ts +26 -0
- package/dist/components/app-brand/html.js +78 -0
- package/dist/components/app-brand/react.d.ts +12 -0
- package/dist/components/app-brand/react.js +86 -0
- package/dist/components/app-brand/schema.d.ts +36 -0
- package/dist/components/app-switcher/classes.d.ts +15 -0
- package/dist/components/app-switcher/html.d.ts +72 -0
- package/dist/components/app-switcher/html.js +327 -0
- package/dist/components/app-switcher/index.d.ts +47 -0
- package/dist/components/app-switcher/react.d.ts +12 -0
- package/dist/components/{ui/app-switcher.js → app-switcher/react.js} +84 -15
- package/dist/components/app-switcher/schema.d.ts +39 -0
- package/dist/components/async-action-button/classes.d.ts +11 -0
- package/dist/components/async-action-button/html.d.ts +46 -0
- package/dist/components/async-action-button/html.js +266 -0
- package/dist/components/async-action-button/index.d.ts +73 -0
- package/dist/components/async-action-button/react.d.ts +10 -0
- package/dist/components/async-action-button/react.js +378 -0
- package/dist/components/async-action-button/schema.d.ts +28 -0
- package/dist/{services/events/client/audit-log-table.d.ts → components/audit-log-table/react.d.ts} +2 -2
- package/dist/{services/events/client/audit-log-table.js → components/audit-log-table/react.js} +2180 -909
- package/dist/components/auto-height/html.d.ts +8 -0
- package/dist/components/auto-height/html.js +81 -0
- package/dist/components/auto-height/index.d.ts +2 -0
- package/dist/components/{ui/auto-height.d.ts → auto-height/react.d.ts} +2 -4
- package/dist/components/auto-height/react.js +75 -0
- package/dist/components/auto-height/schema.d.ts +7 -0
- package/dist/components/bulk-list-input/classes.d.ts +7 -0
- package/dist/components/bulk-list-input/html.d.ts +41 -0
- package/dist/components/bulk-list-input/html.js +265 -0
- package/dist/components/bulk-list-input/index.d.ts +76 -0
- package/dist/components/bulk-list-input/react.d.ts +12 -0
- package/dist/components/{ui/bulk-list-input.js → bulk-list-input/react.js} +71 -4
- package/dist/components/bulk-list-input/schema.d.ts +33 -0
- package/dist/components/choice-cards/classes.d.ts +19 -0
- package/dist/components/choice-cards/html.d.ts +76 -0
- package/dist/components/choice-cards/html.js +237 -0
- package/dist/components/choice-cards/index.d.ts +1 -0
- package/dist/components/choice-cards/react.d.ts +21 -0
- package/dist/components/{ui/choice-cards.js → choice-cards/react.js} +29 -10
- package/dist/components/choice-cards/schema.d.ts +100 -0
- package/dist/components/code-block/classes.d.ts +13 -0
- package/dist/components/code-block/html.d.ts +21 -0
- package/dist/components/code-block/html.js +381 -0
- package/dist/components/code-block/index.d.ts +4 -0
- package/dist/components/code-block/react.d.ts +4 -0
- package/dist/components/code-block/react.js +493 -0
- package/dist/components/code-block/schema.d.ts +29 -0
- package/dist/components/color-input/classes.d.ts +9 -0
- package/dist/components/color-input/html.d.ts +48 -0
- package/dist/components/color-input/html.js +187 -0
- package/dist/components/color-input/index.d.ts +88 -0
- package/dist/components/color-input/react.d.ts +7 -0
- package/dist/components/{ui/color-picker.js → color-input/react.js} +165 -233
- package/dist/components/color-input/schema.d.ts +40 -0
- package/dist/components/copy-button/html.d.ts +48 -0
- package/dist/components/copy-button/html.js +266 -0
- package/dist/components/copy-button/index.d.ts +73 -0
- package/dist/components/copy-button/react.d.ts +12 -0
- package/dist/components/copy-button/react.js +388 -0
- package/dist/components/copy-button/schema.d.ts +37 -0
- package/dist/components/copy-value/html.d.ts +37 -0
- package/dist/components/copy-value/html.js +426 -0
- package/dist/components/copy-value/index.d.ts +57 -0
- package/dist/components/copy-value/react.d.ts +9 -0
- package/dist/components/copy-value/react.js +682 -0
- package/dist/components/copy-value/schema.d.ts +45 -0
- package/dist/components/cron-input/classes.d.ts +25 -0
- package/dist/components/cron-input/html.d.ts +36 -0
- package/dist/components/cron-input/html.js +204 -0
- package/dist/components/cron-input/index.d.ts +59 -0
- package/dist/components/cron-input/react.d.ts +7 -0
- package/dist/components/{ui/cron-expression-editor.js → cron-input/react.js} +126 -54
- package/dist/components/cron-input/schema.d.ts +24 -0
- package/dist/components/danger-confirmation/classes.d.ts +7 -0
- package/dist/components/danger-confirmation/html.d.ts +39 -0
- package/dist/components/danger-confirmation/html.js +227 -0
- package/dist/components/danger-confirmation/index.d.ts +113 -0
- package/dist/components/{ui/danger-confirmation.d.ts → danger-confirmation/react.d.ts} +3 -12
- package/dist/components/danger-confirmation/react.js +550 -0
- package/dist/components/danger-confirmation/schema.d.ts +34 -0
- package/dist/components/data-table/classes.d.ts +63 -0
- package/dist/components/data-table/html.d.ts +1938 -0
- package/dist/components/data-table/html.js +2682 -0
- package/dist/components/data-table/index.d.ts +2686 -0
- package/dist/components/data-table/react.d.ts +578 -0
- package/dist/components/{ui/data-table.js → data-table/react.js} +2174 -897
- package/dist/components/data-table/schema.d.ts +3012 -0
- package/dist/components/date-input/classes.d.ts +17 -0
- package/dist/components/date-input/html.d.ts +60 -0
- package/dist/components/date-input/html.js +418 -0
- package/dist/components/date-input/index.d.ts +91 -0
- package/dist/components/date-input/react.d.ts +10 -0
- package/dist/components/{ui/date-picker.js → date-input/react.js} +233 -79
- package/dist/components/date-input/schema.d.ts +41 -0
- package/dist/components/editable-text/classes.d.ts +17 -0
- package/dist/components/editable-text/html.d.ts +51 -0
- package/dist/components/editable-text/html.js +370 -0
- package/dist/components/editable-text/index.d.ts +143 -0
- package/dist/components/editable-text/react.d.ts +6 -0
- package/dist/components/editable-text/react.js +499 -0
- package/dist/components/editable-text/schema.d.ts +31 -0
- package/dist/components/editing-locale-switcher/classes.d.ts +7 -0
- package/dist/components/editing-locale-switcher/html.d.ts +27 -0
- package/dist/components/editing-locale-switcher/html.js +250 -0
- package/dist/components/editing-locale-switcher/index.d.ts +52 -0
- package/dist/components/editing-locale-switcher/react.d.ts +7 -0
- package/dist/components/{ui/editing-locale-switcher.js → editing-locale-switcher/react.js} +63 -10
- package/dist/components/editing-locale-switcher/schema.d.ts +16 -0
- package/dist/components/{ui/effect-form.d.ts → effect-form/react.d.ts} +2 -2
- package/dist/components/{ui/effect-form.js → effect-form/react.js} +302 -76
- package/dist/components/effectcn/alert-dialog.d.ts +13 -0
- package/dist/components/effectcn/button.d.ts +31 -0
- package/dist/components/effectcn/calendar.d.ts +12 -0
- package/dist/components/effectcn/checkbox.d.ts +10 -0
- package/dist/components/effectcn/combobox.d.ts +25 -0
- package/dist/components/effectcn/dialog.d.ts +19 -0
- package/dist/components/effectcn/field.d.ts +11 -0
- package/dist/components/effectcn/file-drop.d.ts +8 -0
- package/dist/components/effectcn/input.d.ts +26 -0
- package/dist/components/effectcn/menu.d.ts +85 -0
- package/dist/components/effectcn/menubar.d.ts +8 -0
- package/dist/components/effectcn/popover.d.ts +18 -0
- package/dist/components/effectcn/scroll-area.d.ts +12 -0
- package/dist/components/effectcn/select.d.ts +68 -0
- package/dist/components/effectcn/toast.d.ts +29 -0
- package/dist/components/email-composer/index.d.ts +229 -0
- package/dist/components/email-composer/labels.d.ts +12 -0
- package/dist/components/email-composer/react.d.ts +5 -0
- package/dist/components/{ui/email-composer.js → email-composer/react.js} +618 -135
- package/dist/components/email-composer/schema.d.ts +42 -0
- package/dist/components/email-editor/classes.d.ts +21 -0
- package/dist/components/email-editor/html.d.ts +360 -0
- package/dist/components/email-editor/html.js +1706 -0
- package/dist/components/email-editor/index.d.ts +693 -0
- package/dist/components/{ui/email-editor.d.ts → email-editor/labels.d.ts} +1 -21
- package/dist/components/email-editor/legacy-editor.html.d.ts +160 -0
- package/dist/components/email-editor/react.d.ts +11 -0
- package/dist/components/{ui/email-editor.js → email-editor/react.js} +778 -256
- package/dist/components/email-editor/schema.d.ts +162 -0
- package/dist/components/error-component/classes.d.ts +7 -0
- package/dist/components/error-component/html.d.ts +120 -0
- package/dist/components/error-component/html.js +346 -0
- package/dist/components/error-component/index.d.ts +69 -0
- package/dist/components/error-component/react.d.ts +8 -0
- package/dist/components/error-component/react.js +744 -0
- package/dist/components/error-component/schema.d.ts +56 -0
- package/dist/components/file-input/classes.d.ts +7 -0
- package/dist/components/file-input/html.d.ts +95 -0
- package/dist/components/file-input/html.js +368 -0
- package/dist/components/file-input/index.d.ts +99 -0
- package/dist/components/file-input/react.d.ts +11 -0
- package/dist/components/{ui/file-picker.js → file-input/react.js} +122 -19
- package/dist/components/file-input/schema.d.ts +37 -0
- package/dist/components/{ui/form.d.ts → form/react.d.ts} +7 -7
- package/dist/components/{ui/form.js → form/react.js} +300 -74
- package/dist/components/icon-input/html.d.ts +55 -0
- package/dist/components/icon-input/html.js +538 -0
- package/dist/components/icon-input/index.d.ts +143 -0
- package/dist/components/icon-input/react.d.ts +6 -0
- package/dist/components/{ui/icon-input.js → icon-input/react.js} +459 -89
- package/dist/components/icon-input/schema.d.ts +23 -0
- package/dist/components/image-crop-editor/classes.d.ts +19 -0
- package/dist/components/image-crop-editor/html.d.ts +66 -0
- package/dist/components/image-crop-editor/html.js +561 -0
- package/dist/components/image-crop-editor/index.d.ts +183 -0
- package/dist/components/image-crop-editor/react.d.ts +8 -0
- package/dist/components/image-crop-editor/react.js +802 -0
- package/dist/components/image-crop-editor/schema.d.ts +54 -0
- package/dist/components/krakstack-provider/html.d.ts +17 -0
- package/dist/components/krakstack-provider/html.js +37 -0
- package/dist/components/krakstack-provider/index.d.ts +7 -0
- package/dist/components/krakstack-provider/react.d.ts +8 -0
- package/dist/components/{ui/krakstack-provider.js → krakstack-provider/react.js} +14 -5
- package/dist/components/krakstack-provider/schema.d.ts +6 -0
- package/dist/components/loading/classes.d.ts +5 -0
- package/dist/components/loading/html.d.ts +18 -0
- package/dist/components/loading/html.js +166 -0
- package/dist/components/loading/index.d.ts +6 -0
- package/dist/components/loading/react.d.ts +4 -0
- package/dist/components/loading/react.js +51 -0
- package/dist/components/loading/schema.d.ts +23 -0
- package/dist/components/locale-switcher/html.d.ts +22 -0
- package/dist/components/locale-switcher/html.js +264 -0
- package/dist/components/locale-switcher/index.d.ts +50 -0
- package/dist/components/locale-switcher/react.d.ts +7 -0
- package/dist/components/{ui/locale-switcher.js → locale-switcher/react.js} +55 -22
- package/dist/components/locale-switcher/schema.d.ts +12 -0
- package/dist/components/map-menu/classes.d.ts +13 -0
- package/dist/components/map-menu/google-maps.d.ts +80 -0
- package/dist/components/map-menu/google-viewport.d.ts +7 -0
- package/dist/components/map-menu/html.d.ts +274 -0
- package/dist/components/map-menu/html.js +934 -0
- package/dist/components/map-menu/index.d.ts +246 -0
- package/dist/components/map-menu/map.d.ts +47 -0
- package/dist/components/map-menu/react.d.ts +40 -0
- package/dist/components/{ui/map-menu.js → map-menu/react.js} +321 -83
- package/dist/components/map-menu/schema.d.ts +132 -0
- package/dist/components/markdown/classes.d.ts +1 -0
- package/dist/components/markdown/html.d.ts +23 -0
- package/dist/components/markdown/html.js +510 -0
- package/dist/components/markdown/index.d.ts +6 -0
- package/dist/components/markdown/react.d.ts +3 -0
- package/dist/components/markdown/react.js +546 -0
- package/dist/components/markdown/schema.d.ts +20 -0
- package/dist/components/notification-menu/classes.d.ts +11 -0
- package/dist/components/notification-menu/html.d.ts +67 -0
- package/dist/components/notification-menu/html.js +425 -0
- package/dist/components/notification-menu/index.d.ts +132 -0
- package/dist/components/notification-menu/react.d.ts +57 -0
- package/dist/components/notification-menu/react.js +829 -0
- package/dist/components/notification-menu/schema.d.ts +59 -0
- package/dist/components/pagination/classes.d.ts +19 -0
- package/dist/components/pagination/html.d.ts +49 -0
- package/dist/components/pagination/html.js +387 -0
- package/dist/components/pagination/index.d.ts +109 -0
- package/dist/components/pagination/react.d.ts +9 -0
- package/dist/components/{ui/pagination.js → pagination/react.js} +123 -23
- package/dist/components/pagination/schema.d.ts +36 -0
- package/dist/components/phone-number-input/classes.d.ts +17 -0
- package/dist/components/phone-number-input/html.d.ts +52 -0
- package/dist/components/phone-number-input/html.js +655 -0
- package/dist/components/phone-number-input/index.d.ts +59 -0
- package/dist/components/phone-number-input/react.d.ts +11 -0
- package/dist/components/{ui/phone-number-input.js → phone-number-input/react.js} +368 -138
- package/dist/components/phone-number-input/schema.d.ts +31 -0
- package/dist/components/presence-transition/html.d.ts +13 -0
- package/dist/components/presence-transition/html.js +128 -0
- package/dist/components/presence-transition/index.d.ts +57 -0
- package/dist/components/{ui/presence-transition.d.ts → presence-transition/react.d.ts} +3 -5
- package/dist/components/presence-transition/react.js +293 -0
- package/dist/components/presence-transition/schema.d.ts +7 -0
- package/dist/components/registry-previews/component-example.d.ts +31 -0
- package/dist/components/registry-previews/component-example.js +679 -0
- package/dist/components/registry-previews/html-preview.d.ts +17 -0
- package/dist/components/registry-previews/html-preview.js +83 -0
- package/dist/components/rich-text-editor/classes.d.ts +15 -0
- package/dist/components/rich-text-editor/engine.d.ts +9 -0
- package/dist/components/rich-text-editor/html.d.ts +246 -0
- package/dist/components/rich-text-editor/html.js +830 -0
- package/dist/components/rich-text-editor/index.d.ts +453 -0
- package/dist/components/rich-text-editor/labels.d.ts +42 -0
- package/dist/components/rich-text-editor/react.d.ts +19 -0
- package/dist/components/{ui/rich-text-editor.js → rich-text-editor/react.js} +521 -100
- package/dist/components/rich-text-editor/schema.d.ts +116 -0
- package/dist/components/search-menu/classes.d.ts +9 -0
- package/dist/components/search-menu/html.d.ts +127 -0
- package/dist/components/search-menu/html.js +432 -0
- package/dist/components/search-menu/index.d.ts +85 -0
- package/dist/components/search-menu/react.d.ts +18 -0
- package/dist/components/{ui/search-menu.js → search-menu/react.js} +290 -31
- package/dist/components/search-menu/schema.d.ts +78 -0
- package/dist/components/select-with-custom-input/classes.d.ts +17 -0
- package/dist/components/select-with-custom-input/html.d.ts +60 -0
- package/dist/components/select-with-custom-input/html.js +238 -0
- package/dist/components/select-with-custom-input/index.d.ts +114 -0
- package/dist/components/select-with-custom-input/react.d.ts +7 -0
- package/dist/components/{ui/select-with-custom-input.js → select-with-custom-input/react.js} +127 -22
- package/dist/components/select-with-custom-input/schema.d.ts +54 -0
- package/dist/components/sidebar-layout/classes.d.ts +21 -0
- package/dist/components/sidebar-layout/html.d.ts +97 -0
- package/dist/components/sidebar-layout/html.js +361 -0
- package/dist/components/sidebar-layout/index.d.ts +57 -0
- package/dist/components/sidebar-layout/react.d.ts +30 -0
- package/dist/components/{ui/sidebar-layout.js → sidebar-layout/react.js} +353 -39
- package/dist/components/sidebar-layout/schema.d.ts +54 -0
- package/dist/components/stats-card/classes.d.ts +11 -0
- package/dist/components/stats-card/html.d.ts +15 -0
- package/dist/components/stats-card/html.js +55 -0
- package/dist/components/stats-card/react.d.ts +7 -0
- package/dist/components/{ui/stats-card.js → stats-card/react.js} +19 -15
- package/dist/components/stats-card/schema.d.ts +14 -0
- package/dist/components/stepper/classes.d.ts +39 -0
- package/dist/components/stepper/html.d.ts +107 -0
- package/dist/components/stepper/html.js +397 -0
- package/dist/components/stepper/index.d.ts +83 -0
- package/dist/components/stepper/react.d.ts +17 -0
- package/dist/components/{ui/stepper.js → stepper/react.js} +120 -21
- package/dist/components/stepper/schema.d.ts +52 -0
- package/dist/components/support/classes.d.ts +55 -0
- package/dist/components/support/form.d.ts +19 -0
- package/dist/components/support/html.d.ts +266 -0
- package/dist/components/support/html.js +604 -0
- package/dist/components/support/index.d.ts +226 -0
- package/dist/components/support/multipart.d.ts +21 -0
- package/dist/components/support/react.d.ts +54 -0
- package/dist/components/support/react.js +1252 -0
- package/dist/components/support/schema.d.ts +69 -0
- package/dist/components/support.d.ts +1 -66
- package/dist/components/theme-switcher/html.d.ts +28 -0
- package/dist/components/theme-switcher/html.js +288 -0
- package/dist/components/theme-switcher/index.d.ts +59 -0
- package/dist/components/{ui/theme-switcher.d.ts → theme-switcher/react.d.ts} +4 -12
- package/dist/components/{ui/theme-switcher.js → theme-switcher/react.js} +69 -35
- package/dist/components/theme-switcher/schema.d.ts +33 -0
- package/dist/components/time-input/classes.d.ts +23 -0
- package/dist/components/time-input/html.d.ts +75 -0
- package/dist/components/time-input/html.js +571 -0
- package/dist/components/time-input/index.d.ts +164 -0
- package/dist/components/time-input/react.d.ts +7 -0
- package/dist/components/{ui/time-picker.js → time-input/react.js} +286 -114
- package/dist/components/time-input/schema.d.ts +96 -0
- package/dist/components/timezone-input/classes.d.ts +13 -0
- package/dist/components/timezone-input/html.d.ts +58 -0
- package/dist/components/timezone-input/html.js +804 -0
- package/dist/components/timezone-input/index.d.ts +170 -0
- package/dist/components/timezone-input/react.d.ts +9 -0
- package/dist/components/{ui/timezone-select.js → timezone-input/react.js} +493 -106
- package/dist/components/timezone-input/schema.d.ts +43 -0
- package/dist/components/toast/classes.d.ts +7 -0
- package/dist/components/toast/html.d.ts +34 -0
- package/dist/components/toast/html.js +280 -0
- package/dist/components/toast/index.d.ts +10 -0
- package/dist/components/toast/react.d.ts +9 -0
- package/dist/components/{ui/toast.js → toast/react.js} +35 -15
- package/dist/components/toast/schema.d.ts +24 -0
- package/dist/{services/events/client/tracking-notice.d.ts → components/tracking-notice/react.d.ts} +7 -1
- package/dist/{services/events/client/tracking-notice.js → components/tracking-notice/react.js} +13 -7
- package/dist/components/ui/animated-list.d.ts +1 -21
- package/dist/components/ui/app-brand.d.ts +1 -33
- package/dist/components/ui/async-action-button.d.ts +1 -17
- package/dist/components/ui/code-block.d.ts +1 -14
- package/dist/components/ui/copy-button.d.ts +1 -21
- package/dist/components/ui/data-table.d.ts +1 -584
- package/dist/components/ui/krakstack-provider.d.ts +1 -9
- package/dist/components/ui/loading.d.ts +1 -13
- package/dist/components/ui/pagination.d.ts +1 -47
- package/dist/components/ui/rich-text-editor.d.ts +1 -72
- package/dist/components/ui/search-menu.d.ts +1 -36
- package/dist/components/ui/sidebar-layout.d.ts +1 -40
- package/dist/components/ui/virtualized-combobox.d.ts +1 -59
- package/dist/components/unsaved-changes-guard/html.d.ts +34 -0
- package/dist/components/unsaved-changes-guard/html.js +172 -0
- package/dist/components/unsaved-changes-guard/index.d.ts +56 -0
- package/dist/components/unsaved-changes-guard/react.d.ts +4 -0
- package/dist/components/{ui/unsaved-changes-guard.js → unsaved-changes-guard/react.js} +74 -11
- package/dist/components/unsaved-changes-guard/schema.d.ts +37 -0
- package/dist/components/upload-attachment/classes.d.ts +11 -0
- package/dist/components/upload-attachment/html.d.ts +84 -0
- package/dist/components/upload-attachment/html.js +312 -0
- package/dist/components/upload-attachment/index.d.ts +72 -0
- package/dist/components/upload-attachment/react.d.ts +9 -0
- package/dist/components/{ui/upload-attachment.js → upload-attachment/react.js} +114 -17
- package/dist/components/upload-attachment/schema.d.ts +53 -0
- package/dist/components/virtualized-combobox/classes.d.ts +7 -0
- package/dist/components/virtualized-combobox/html.d.ts +97 -0
- package/dist/components/virtualized-combobox/html.js +310 -0
- package/dist/components/virtualized-combobox/index.d.ts +182 -0
- package/dist/components/virtualized-combobox/react.d.ts +31 -0
- package/dist/components/{ui/virtualized-combobox.js → virtualized-combobox/react.js} +160 -40
- package/dist/components/virtualized-combobox/schema.d.ts +92 -0
- package/dist/components/webhook-delivery-table/html.d.ts +216 -0
- package/dist/components/webhook-delivery-table/html.js +3008 -0
- package/dist/components/webhook-delivery-table/index.d.ts +405 -0
- package/dist/components/webhook-delivery-table/react.d.ts +13 -0
- package/dist/{services/webhooks/client/delivery-table.js → components/webhook-delivery-table/react.js} +2461 -948
- package/dist/components/webhook-delivery-table/schema.d.ts +134 -0
- package/dist/lib/docs.d.ts +17 -1
- package/dist/lib/docs.integrations.server.js +358 -73
- package/dist/lib/docs.js +863 -295
- package/dist/lib/docs.server.js +342 -57
- package/dist/lib/documentation-toolkit.d.ts +4 -4
- package/dist/lib/documentation-toolkit.js +354 -69
- package/dist/lib/effect-ui-adapter/model-runtime.d.ts +17 -0
- package/dist/lib/effect-ui-adapter/use-model.d.ts +9 -0
- package/dist/lib/effectcn-form.d.ts +3 -0
- package/dist/lib/effectcn-form.js +54 -0
- package/dist/lib/email-composer/index.d.ts +12 -0
- package/dist/lib/email-composer/schema.d.ts +14 -0
- package/dist/lib/httpapi-toolkit.d.ts +1 -1
- package/dist/lib/lucide-effect.d.ts +39 -0
- package/dist/lib/markdown/content.d.ts +1 -12
- package/dist/lib/rich-text/model.d.ts +5 -0
- package/dist/lib/webfetch-toolkit.d.ts +1 -1
- package/dist/services/agent/client/index.js +697 -181
- package/dist/services/agent/client/widget.d.ts +1 -55
- package/dist/services/notification/client/index.js +138 -27
- package/dist/services/notification/client/notification-menu.d.ts +1 -85
- package/dist/services/notification/public.js +138 -27
- package/dist/services/opentelemetry/browser.js +15 -9
- package/dist/services/webhooks/index.d.ts +4 -3
- package/package.json +181 -142
- package/dist/components/support-dialog.js +0 -881
- package/dist/components/support.js +0 -881
- package/dist/components/ui/animated-list.js +0 -414
- package/dist/components/ui/animated-number.js +0 -75
- package/dist/components/ui/app-brand.js +0 -126
- package/dist/components/ui/app-switcher.d.ts +0 -26
- package/dist/components/ui/async-action-button.js +0 -149
- package/dist/components/ui/auto-height.js +0 -86
- package/dist/components/ui/bulk-list-input.d.ts +0 -25
- package/dist/components/ui/choice-cards.d.ts +0 -33
- package/dist/components/ui/code-block.js +0 -221
- package/dist/components/ui/color-picker.d.ts +0 -31
- package/dist/components/ui/copy-button.js +0 -138
- package/dist/components/ui/copy-value.d.ts +0 -24
- package/dist/components/ui/copy-value.js +0 -352
- package/dist/components/ui/cron-expression-editor.d.ts +0 -16
- package/dist/components/ui/cron-expression-editor.schema.d.ts +0 -7
- package/dist/components/ui/danger-confirmation.js +0 -398
- package/dist/components/ui/date-picker.d.ts +0 -33
- package/dist/components/ui/date-picker.schema.d.ts +0 -9
- package/dist/components/ui/editable-text.d.ts +0 -19
- package/dist/components/ui/editable-text.js +0 -341
- package/dist/components/ui/editing-locale-switcher.d.ts +0 -11
- package/dist/components/ui/error-component.d.ts +0 -34
- package/dist/components/ui/error-component.js +0 -387
- package/dist/components/ui/file-picker.d.ts +0 -37
- package/dist/components/ui/icon-input.d.ts +0 -58
- package/dist/components/ui/image-crop-editor.d.ts +0 -41
- package/dist/components/ui/image-crop-editor.js +0 -417
- package/dist/components/ui/loading.js +0 -39
- package/dist/components/ui/locale-switcher.d.ts +0 -11
- package/dist/components/ui/map-menu-map.d.ts +0 -115
- package/dist/components/ui/map-menu.d.ts +0 -87
- package/dist/components/ui/phone-number-input.d.ts +0 -22
- package/dist/components/ui/phone-number-input.schema.d.ts +0 -7
- package/dist/components/ui/presence-transition.js +0 -94
- package/dist/components/ui/select-with-custom-input.d.ts +0 -36
- package/dist/components/ui/stats-card.d.ts +0 -12
- package/dist/components/ui/stepper.d.ts +0 -37
- package/dist/components/ui/time-picker.d.ts +0 -50
- package/dist/components/ui/time-picker.schema.d.ts +0 -28
- package/dist/components/ui/timezone-select.d.ts +0 -57
- package/dist/components/ui/timezone-select.schema.d.ts +0 -9
- package/dist/components/ui/toast.d.ts +0 -18
- package/dist/components/ui/unsaved-changes-guard.d.ts +0 -16
- package/dist/components/ui/upload-attachment.d.ts +0 -39
- package/dist/services/notification/persistence/drizzle.d.ts +0 -868
- package/dist/services/notification/persistence/drizzle.js +0 -214
- package/dist/services/notification/persistence/index.d.ts +0 -2
- package/dist/services/notification/persistence/index.js +0 -227
- package/dist/services/notification/persistence/schema.d.ts +0 -143
- package/dist/services/notification/persistence/schema.js +0 -118
- package/dist/services/webhooks/client/delivery-table.d.ts +0 -62
|
@@ -1,17 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { Button } from "./button.js";
|
|
3
|
-
export type AsyncActionButtonMessages = {
|
|
4
|
-
pending: string;
|
|
5
|
-
success: string;
|
|
6
|
-
retry: string;
|
|
7
|
-
error: string;
|
|
8
|
-
};
|
|
9
|
-
export type AsyncActionButtonProps = Omit<ComponentProps<typeof Button>, "onClick" | "type" | "render" | "nativeButton" | "aria-busy"> & {
|
|
10
|
-
onAction: () => Promise<void>;
|
|
11
|
-
onPendingChange?: (pending: boolean) => void;
|
|
12
|
-
containerClassName?: string;
|
|
13
|
-
locale?: string;
|
|
14
|
-
messages?: Partial<Record<string, Partial<AsyncActionButtonMessages>>>;
|
|
15
|
-
};
|
|
16
|
-
/** Runs only on activation. Failures stay local; raw error details are never rendered. */
|
|
17
|
-
export declare const AsyncActionButton: ({ onAction, onPendingChange, children, disabled, locale: override, messages, containerClassName, ...props }: AsyncActionButtonProps) => import("react").JSX.Element;
|
|
1
|
+
export * from "../async-action-button/react.js";
|
|
@@ -1,14 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export type CodeBlockMessages = CopyButtonMessages & {
|
|
3
|
-
codeDescription: (language: string) => string;
|
|
4
|
-
};
|
|
5
|
-
export type CodeBlockMessageTranslations = Partial<Record<string, Partial<CodeBlockMessages>>>;
|
|
6
|
-
export declare const codeBlockMessages: (locale?: string, translations?: CodeBlockMessageTranslations) => CodeBlockMessages;
|
|
7
|
-
type CodeBlockProps = {
|
|
8
|
-
code: string;
|
|
9
|
-
language?: string;
|
|
10
|
-
locale?: string;
|
|
11
|
-
messages?: CodeBlockMessageTranslations;
|
|
12
|
-
};
|
|
13
|
-
export declare function CodeBlock({ code, language, locale: localeOverride, messages, }: CodeBlockProps): import("react").JSX.Element;
|
|
14
|
-
export {};
|
|
1
|
+
export * from "../code-block/react.js";
|
|
@@ -1,21 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { ComponentProps } from "react";
|
|
3
|
-
export type CopyButtonMessages = {
|
|
4
|
-
copy: string;
|
|
5
|
-
copied: string;
|
|
6
|
-
copyFailed: string;
|
|
7
|
-
};
|
|
8
|
-
export type CopyButtonMessageTranslations = Partial<Record<string, Partial<CopyButtonMessages>>>;
|
|
9
|
-
export declare const copyButtonMessages: (locale?: string, translations?: CopyButtonMessageTranslations) => CopyButtonMessages;
|
|
10
|
-
type CopyButtonProps = Omit<ComponentProps<typeof Button>, "children" | "onClick"> & {
|
|
11
|
-
value: string;
|
|
12
|
-
valueDescription?: string;
|
|
13
|
-
copyVariant?: "default" | "sm" | "large";
|
|
14
|
-
locale?: string;
|
|
15
|
-
messages?: CopyButtonMessageTranslations;
|
|
16
|
-
onCopied?: () => void;
|
|
17
|
-
onCopyError?: (error: Error) => void;
|
|
18
|
-
resetDelay?: number;
|
|
19
|
-
};
|
|
20
|
-
export declare function CopyButton({ value, valueDescription, copyVariant, locale: localeOverride, messages, onCopied, onCopyError, resetDelay, disabled, size, "aria-label": ariaLabel, ...props }: CopyButtonProps): import("react").JSX.Element;
|
|
21
|
-
export {};
|
|
1
|
+
export * from "../copy-button/react.js";
|
|
@@ -1,584 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { type PaginationMessages } from "./pagination.js";
|
|
3
|
-
import { ColumnFilter, type QueryType } from "../../lib/query.js";
|
|
4
|
-
/** Presentation only. Popup classes are applied inside portals, not to their triggers. */
|
|
5
|
-
export type DataTableClassNames = {
|
|
6
|
-
table?: Partial<Record<"content" | "header" | "body" | "row" | "head" | "cell", string>>;
|
|
7
|
-
toolbar?: Partial<Record<"content" | "search" | "trigger", string>>;
|
|
8
|
-
menu?: Partial<Record<"content" | "subContent" | "label" | "item" | "separator" | "subTrigger", string>>;
|
|
9
|
-
popup?: Partial<Record<"select" | "tooltip", string>>;
|
|
10
|
-
pagination?: string;
|
|
11
|
-
gallery?: string;
|
|
12
|
-
feedback?: Partial<Record<"loading" | "empty" | "error", string>>;
|
|
13
|
-
};
|
|
14
|
-
type RowData = object;
|
|
15
|
-
export type DataTableView = "table" | "gallery";
|
|
16
|
-
export type DataTablePublicState = QueryType;
|
|
17
|
-
export interface DataTableValueGetterParams<TData extends RowData> {
|
|
18
|
-
data: TData;
|
|
19
|
-
rowId: string;
|
|
20
|
-
rowIndex: number;
|
|
21
|
-
colDef: DataTableColDef<TData>;
|
|
22
|
-
}
|
|
23
|
-
export interface DataTableCellRendererParams<TData extends RowData> extends DataTableValueGetterParams<TData> {
|
|
24
|
-
value: unknown;
|
|
25
|
-
}
|
|
26
|
-
export interface DataTableListItem {
|
|
27
|
-
icon?: ReactNode;
|
|
28
|
-
imageSrc?: string;
|
|
29
|
-
label: string;
|
|
30
|
-
value?: string;
|
|
31
|
-
}
|
|
32
|
-
export interface DataTableReferenceItem {
|
|
33
|
-
label: string;
|
|
34
|
-
icon?: ReactNode;
|
|
35
|
-
iconClassName?: string;
|
|
36
|
-
/** Secondary text, such as a user's email or a record identifier. */
|
|
37
|
-
description?: string | null;
|
|
38
|
-
imageSrc?: string | null;
|
|
39
|
-
}
|
|
40
|
-
export interface DataTableReferenceOptions<TData> {
|
|
41
|
-
getItem: (row: TData) => DataTableReferenceItem | null | undefined;
|
|
42
|
-
emptyLabel?: ReactNode;
|
|
43
|
-
imageVariant?: "circle" | "square";
|
|
44
|
-
}
|
|
45
|
-
export declare const DataTableReferenceCell: ({ item, emptyLabel, imageVariant, }: {
|
|
46
|
-
item: DataTableReferenceItem | null | undefined;
|
|
47
|
-
emptyLabel?: ReactNode;
|
|
48
|
-
imageVariant?: "circle" | "square";
|
|
49
|
-
}) => string | number | bigint | boolean | import("react").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | null;
|
|
50
|
-
export interface DataTableListOption extends DataTableListItem {
|
|
51
|
-
value: string;
|
|
52
|
-
}
|
|
53
|
-
export type DataTableItemAction<TItem> = DataTableRowAction<TItem> & {
|
|
54
|
-
closeOnClick?: boolean;
|
|
55
|
-
disabled?: (item: TItem) => boolean;
|
|
56
|
-
};
|
|
57
|
-
export interface DataTableListItemContext<TData> {
|
|
58
|
-
item: DataTableListItem;
|
|
59
|
-
row: TData;
|
|
60
|
-
}
|
|
61
|
-
export interface DataTableListOptions {
|
|
62
|
-
emptyLabel: ReactNode;
|
|
63
|
-
display?: "list" | "icon" | undefined;
|
|
64
|
-
locale?: string | undefined;
|
|
65
|
-
messages?: DataTableMessageTranslations | undefined;
|
|
66
|
-
visibleCount?: number | undefined;
|
|
67
|
-
}
|
|
68
|
-
export type DataTableListColumn<TData> = DataTableListOptions & {
|
|
69
|
-
/** Includes items not loaded in the preview; the dropdown only shows supplied items. */
|
|
70
|
-
getTotalCount?: (row: TData) => number;
|
|
71
|
-
/** Optional primary action for items without submenu actions. */
|
|
72
|
-
onItemClick?: (context: DataTableListItemContext<TData>) => void;
|
|
73
|
-
/** Optional secondary actions shown in each item's submenu. */
|
|
74
|
-
itemActions?: readonly DataTableItemAction<DataTableListItemContext<TData>>[];
|
|
75
|
-
actionsLabel?: string;
|
|
76
|
-
} & ({
|
|
77
|
-
getItems: (row: TData) => readonly DataTableListItem[];
|
|
78
|
-
getOptions?: never;
|
|
79
|
-
manageLabel?: never;
|
|
80
|
-
onAdd?: never;
|
|
81
|
-
onRemove?: never;
|
|
82
|
-
} | {
|
|
83
|
-
/** Editable lists require stable values for selected and available items. */
|
|
84
|
-
getItems: (row: TData) => readonly DataTableListOption[];
|
|
85
|
-
getOptions: (row: TData) => readonly DataTableListOption[];
|
|
86
|
-
manageLabel: string;
|
|
87
|
-
onAdd?: (input: {
|
|
88
|
-
value: string;
|
|
89
|
-
row: TData;
|
|
90
|
-
}) => void;
|
|
91
|
-
onRemove?: (input: {
|
|
92
|
-
value: string;
|
|
93
|
-
row: TData;
|
|
94
|
-
}) => void;
|
|
95
|
-
});
|
|
96
|
-
export interface DataTableListSummaryProps extends DataTableListOptions {
|
|
97
|
-
items: readonly (string | DataTableListItem)[];
|
|
98
|
-
totalCount?: number | undefined;
|
|
99
|
-
}
|
|
100
|
-
interface EditableDataTableListCellProps extends DataTableListOptions {
|
|
101
|
-
manageLabel: string;
|
|
102
|
-
onAdd?: ((value: string) => void) | undefined;
|
|
103
|
-
onRemove?: ((value: string) => void) | undefined;
|
|
104
|
-
options: readonly DataTableListOption[];
|
|
105
|
-
items: readonly DataTableListOption[];
|
|
106
|
-
totalCount?: number | undefined;
|
|
107
|
-
}
|
|
108
|
-
interface DataTableListCellActionsProps {
|
|
109
|
-
onItemClick?: ((item: DataTableListItem) => void) | undefined;
|
|
110
|
-
actionsLabel?: string | undefined;
|
|
111
|
-
itemActions?: readonly DataTableItemAction<DataTableListItem>[] | undefined;
|
|
112
|
-
}
|
|
113
|
-
export type DataTableListCellProps = DataTableListCellActionsProps & (EditableDataTableListCellProps | (DataTableListSummaryProps & {
|
|
114
|
-
options?: never;
|
|
115
|
-
manageLabel?: never;
|
|
116
|
-
onAdd?: never;
|
|
117
|
-
onRemove?: never;
|
|
118
|
-
}));
|
|
119
|
-
export interface DataTableDateOptions {
|
|
120
|
-
/** Defaults to the DataTable locale, or English outside a DataTable. */
|
|
121
|
-
locale?: string;
|
|
122
|
-
/** Defaults to UTC. Calendar-only strings retain their date in every zone. */
|
|
123
|
-
timeZone?: string;
|
|
124
|
-
dateStyle?: Intl.DateTimeFormatOptions["dateStyle"];
|
|
125
|
-
emptyLabel?: ReactNode;
|
|
126
|
-
/** Placement of missing or invalid dates, independent of sort direction. */
|
|
127
|
-
nulls?: "first" | "last";
|
|
128
|
-
/** ISO by default; applies to both CSV and JSON exports. */
|
|
129
|
-
exportFormat?: "iso" | "formatted";
|
|
130
|
-
}
|
|
131
|
-
export interface DataTableDateTimeOptions extends DataTableDateOptions {
|
|
132
|
-
timeStyle?: Intl.DateTimeFormatOptions["timeStyle"];
|
|
133
|
-
hour12?: boolean;
|
|
134
|
-
}
|
|
135
|
-
type DataTableDateType = {
|
|
136
|
-
type: "date";
|
|
137
|
-
typeOptions?: DataTableDateOptions;
|
|
138
|
-
} | {
|
|
139
|
-
type: "dateTime";
|
|
140
|
-
typeOptions?: DataTableDateTimeOptions;
|
|
141
|
-
};
|
|
142
|
-
export type DataTableNumberOptions = Omit<Intl.NumberFormatOptions, "style" | "currency"> & {
|
|
143
|
-
locale?: string;
|
|
144
|
-
emptyLabel?: ReactNode;
|
|
145
|
-
nulls?: "first" | "last";
|
|
146
|
-
exportFormat?: "raw" | "formatted";
|
|
147
|
-
} & ({
|
|
148
|
-
style?: "decimal" | "percent";
|
|
149
|
-
currency?: never;
|
|
150
|
-
} | {
|
|
151
|
-
style: "currency";
|
|
152
|
-
currency: string;
|
|
153
|
-
});
|
|
154
|
-
export interface DataTableBooleanOptions<TData> {
|
|
155
|
-
/** Optional localized labels for search and formatted exports. */
|
|
156
|
-
trueLabel?: string;
|
|
157
|
-
falseLabel?: string;
|
|
158
|
-
emptyLabel?: ReactNode;
|
|
159
|
-
nulls?: "first" | "last";
|
|
160
|
-
exportFormat?: "raw" | "formatted";
|
|
161
|
-
getAriaLabel?: (row: TData) => string;
|
|
162
|
-
/** Without a callback, the checkbox is read-only. Updates remain caller-owned. */
|
|
163
|
-
onChange?: (input: {
|
|
164
|
-
value: boolean;
|
|
165
|
-
row: TData;
|
|
166
|
-
}) => void;
|
|
167
|
-
disabled?: (row: TData) => boolean;
|
|
168
|
-
}
|
|
169
|
-
type DataTableColumnType<TData> = {
|
|
170
|
-
type?: undefined;
|
|
171
|
-
typeOptions?: never;
|
|
172
|
-
} | DataTableDateType | {
|
|
173
|
-
type: "number";
|
|
174
|
-
typeOptions?: DataTableNumberOptions;
|
|
175
|
-
} | {
|
|
176
|
-
type: "boolean";
|
|
177
|
-
typeOptions?: DataTableBooleanOptions<TData>;
|
|
178
|
-
} | {
|
|
179
|
-
type: "reference";
|
|
180
|
-
typeOptions: DataTableReferenceOptions<TData>;
|
|
181
|
-
} | {
|
|
182
|
-
type: "list";
|
|
183
|
-
typeOptions: DataTableListColumn<TData>;
|
|
184
|
-
};
|
|
185
|
-
export type DataTableColDef<TData extends RowData> = DataTableBaseColDef<TData> & DataTableColumnType<TData>;
|
|
186
|
-
/** A logical field within one visual column. IDs are local to the parent column. */
|
|
187
|
-
export type DataTableColumnField<TData extends RowData> = Pick<DataTableBaseColDef<TData>, "headerName" | "comparator" | "sortable" | "searchable" | "filterable" | "filterOptions" | "filterValueGetter"> & {
|
|
188
|
-
id: string;
|
|
189
|
-
valueGetter: NonNullable<DataTableBaseColDef<TData>["valueGetter"]>;
|
|
190
|
-
/** Exclude a field from export without removing it from search or sorting. */
|
|
191
|
-
export?: boolean;
|
|
192
|
-
} & DataTableColumnType<TData>;
|
|
193
|
-
export interface DataTableFilterOption {
|
|
194
|
-
value: string;
|
|
195
|
-
label: string;
|
|
196
|
-
/** Optional application-owned count (for example, actionable requests). */
|
|
197
|
-
count?: number;
|
|
198
|
-
}
|
|
199
|
-
export interface DataTableBaseColDef<TData extends RowData> {
|
|
200
|
-
field?: keyof TData & string;
|
|
201
|
-
colId?: string;
|
|
202
|
-
headerName: ReactNode;
|
|
203
|
-
valueGetter?: (params: DataTableValueGetterParams<TData>) => unknown;
|
|
204
|
-
/** Independently searchable, sortable, and exported values; display stays combined.
|
|
205
|
-
* Sort state and JSON exports use stable IDs such as `learner.email`.
|
|
206
|
-
* Hiding the visual column also hides its fields from export.
|
|
207
|
-
*/
|
|
208
|
-
fields?: readonly DataTableColumnField<TData>[];
|
|
209
|
-
valueFormatter?: (params: DataTableCellRendererParams<TData>) => ReactNode;
|
|
210
|
-
cellRenderer?: (params: DataTableCellRendererParams<TData>) => ReactNode;
|
|
211
|
-
sortable?: boolean;
|
|
212
|
-
comparator?: (left: unknown, right: unknown, leftData: TData, rightData: TData) => number;
|
|
213
|
-
searchable?: boolean;
|
|
214
|
-
/** Typed filters are inferred from the column type. Parent false disables all fields. */
|
|
215
|
-
filterable?: boolean;
|
|
216
|
-
/** Offer a multi-select filter instead of free text; values match the model value. */
|
|
217
|
-
filterOptions?: readonly DataTableFilterOption[];
|
|
218
|
-
/** A stable scalar value for filtering, independent of display/search/export. */
|
|
219
|
-
filterValueGetter?: DataTableBaseColDef<TData>["valueGetter"];
|
|
220
|
-
hideable?: boolean;
|
|
221
|
-
resizable?: boolean;
|
|
222
|
-
width?: number;
|
|
223
|
-
minWidth?: number;
|
|
224
|
-
maxWidth?: number;
|
|
225
|
-
truncate?: boolean;
|
|
226
|
-
}
|
|
227
|
-
export interface DataTableStatus {
|
|
228
|
-
loading?: boolean;
|
|
229
|
-
error?: ReactNode;
|
|
230
|
-
empty?: ReactNode;
|
|
231
|
-
}
|
|
232
|
-
export type DataTableRowAction<TData> = {
|
|
233
|
-
id?: string;
|
|
234
|
-
name: string;
|
|
235
|
-
icon?: ReactNode;
|
|
236
|
-
variant?: "default" | "destructive";
|
|
237
|
-
onClick: (data: TData) => void;
|
|
238
|
-
visible?: (data: TData) => boolean;
|
|
239
|
-
};
|
|
240
|
-
export type DataTableBulkAction<TData> = DataTableRowAction<TData[]>;
|
|
241
|
-
export type DataTableGroupAction = Omit<DataTableRowAction<string>, "id">;
|
|
242
|
-
export interface DataTableGroupingField<TData> {
|
|
243
|
-
id: string;
|
|
244
|
-
label: string;
|
|
245
|
-
getGroupId: (row: TData) => string;
|
|
246
|
-
getRowGroupIds?: (row: TData) => readonly string[];
|
|
247
|
-
getGroupIds?: () => readonly string[];
|
|
248
|
-
renderGroupLabel?: (groupId: string, rows: TData[]) => ReactNode;
|
|
249
|
-
renderEmptyGroup?: (groupId: string) => ReactNode;
|
|
250
|
-
onMoveToGroup?: (row: TData, groupId: string) => void;
|
|
251
|
-
actionsLabel?: string;
|
|
252
|
-
actions?: readonly DataTableGroupAction[];
|
|
253
|
-
}
|
|
254
|
-
export interface DataTableGroupingFeature<TData> {
|
|
255
|
-
fields: readonly DataTableGroupingField<TData>[];
|
|
256
|
-
initial?: readonly string[];
|
|
257
|
-
getRowLabel?: (row: TData) => string;
|
|
258
|
-
}
|
|
259
|
-
export type DataTablePaginationFeature = false | {
|
|
260
|
-
mode: "client";
|
|
261
|
-
pageSizes?: readonly number[];
|
|
262
|
-
} | {
|
|
263
|
-
mode: "server";
|
|
264
|
-
rowCount: number;
|
|
265
|
-
pageSizes?: readonly number[];
|
|
266
|
-
};
|
|
267
|
-
export interface DataTableVirtualizationOptions {
|
|
268
|
-
/** "page" uses window scrolling; "internal" fills a height-constrained flex column. Defaults to "table" (capped viewport). */
|
|
269
|
-
scroll?: "table" | "internal" | "page";
|
|
270
|
-
/** Maximum viewport height in pixels for "table" mode only. Defaults to 480. */
|
|
271
|
-
height?: number;
|
|
272
|
-
/** Initial row height in pixels, before measuring. Defaults to 64. */
|
|
273
|
-
estimateRowHeight?: number;
|
|
274
|
-
/** Extra rows rendered on each side of the viewport. Defaults to 5. */
|
|
275
|
-
overscan?: number;
|
|
276
|
-
}
|
|
277
|
-
export interface DataTableExportAction {
|
|
278
|
-
id: string;
|
|
279
|
-
label: string;
|
|
280
|
-
icon?: ReactNode;
|
|
281
|
-
disabled?: boolean;
|
|
282
|
-
/** The app owns fetching, authorization, field selection, and downloading. */
|
|
283
|
-
onExport: () => void | Promise<void>;
|
|
284
|
-
}
|
|
285
|
-
export interface DataTableExportFeature {
|
|
286
|
-
baseName: string;
|
|
287
|
-
/** Defaults to all filtered, sorted rows. Both scopes use only loaded rows. */
|
|
288
|
-
scope?: "currentPage" | "filteredRows";
|
|
289
|
-
/** Set false to offer only app-provided actions. Defaults to true. */
|
|
290
|
-
builtIn?: boolean;
|
|
291
|
-
actions?: readonly DataTableExportAction[];
|
|
292
|
-
onError?: (error: unknown, action: DataTableExportAction) => void;
|
|
293
|
-
}
|
|
294
|
-
export interface DataTableGalleryFeature<TData> {
|
|
295
|
-
name: string;
|
|
296
|
-
description?: string;
|
|
297
|
-
/** Column IDs in display order. Custom cell renderers own their presentation. */
|
|
298
|
-
tags?: readonly string[];
|
|
299
|
-
/** Legacy single-tag configuration. Used when tags is not supplied. */
|
|
300
|
-
tag?: string;
|
|
301
|
-
tagIcon?: ReactNode;
|
|
302
|
-
/** Optional cover image. Missing or failed images leave a text-only card. */
|
|
303
|
-
image?: {
|
|
304
|
-
getSrc: (row: TData) => string | null | undefined;
|
|
305
|
-
/** Omit for a decorative image; the card title already identifies the row. */
|
|
306
|
-
getAlt?: (row: TData) => string;
|
|
307
|
-
};
|
|
308
|
-
}
|
|
309
|
-
export interface DataTableFeatures<TData> {
|
|
310
|
-
toolbar?: false | {
|
|
311
|
-
/** Additional `MenubarMenu` controls rendered at the start of the toolbar. */
|
|
312
|
-
items: ReactNode;
|
|
313
|
-
};
|
|
314
|
-
search?: boolean;
|
|
315
|
-
filtering?: boolean;
|
|
316
|
-
sorting?: boolean;
|
|
317
|
-
/** Disabled by default. Opt in to client- or server-side pagination. */
|
|
318
|
-
pagination?: DataTablePaginationFeature;
|
|
319
|
-
/** Opt in to windowing flat table rows. Gallery, grouping, and drag keep their normal rendering. */
|
|
320
|
-
/** Defaults to automatic virtualization at 100 displayed rows. Set false to opt out. */
|
|
321
|
-
virtualization?: boolean | DataTableVirtualizationOptions;
|
|
322
|
-
columnVisibility?: boolean;
|
|
323
|
-
selection?: false | {
|
|
324
|
-
getRowId?: (row: TData) => string;
|
|
325
|
-
isRowSelectable?: (row: TData) => boolean;
|
|
326
|
-
onSelectionChange?: (rows: TData[]) => void;
|
|
327
|
-
bulkActions?: false | {
|
|
328
|
-
label?: string;
|
|
329
|
-
items: readonly DataTableBulkAction<TData>[];
|
|
330
|
-
};
|
|
331
|
-
};
|
|
332
|
-
rowActions?: false | {
|
|
333
|
-
label?: string;
|
|
334
|
-
items: readonly DataTableRowAction<TData>[];
|
|
335
|
-
};
|
|
336
|
-
export?: false | DataTableExportFeature;
|
|
337
|
-
gallery?: false | DataTableGalleryFeature<TData>;
|
|
338
|
-
grouping?: false | DataTableGroupingFeature<TData>;
|
|
339
|
-
reordering?: false | {
|
|
340
|
-
onReorder: (rows: TData[]) => void;
|
|
341
|
-
getRowLabel?: (row: TData) => string;
|
|
342
|
-
handleLabel?: string;
|
|
343
|
-
};
|
|
344
|
-
refresh?: false | (() => void);
|
|
345
|
-
}
|
|
346
|
-
export type DataTableMessages = PaginationMessages & {
|
|
347
|
-
actions: string;
|
|
348
|
-
addItem: string;
|
|
349
|
-
empty: string;
|
|
350
|
-
loading: string;
|
|
351
|
-
filter: string;
|
|
352
|
-
filters: string;
|
|
353
|
-
filtersClear: string;
|
|
354
|
-
filterClear: string;
|
|
355
|
-
filterApply: string;
|
|
356
|
-
filterValue: string;
|
|
357
|
-
filterOperator: string;
|
|
358
|
-
filterContains: string;
|
|
359
|
-
filterEquals: string;
|
|
360
|
-
filterStartsWith: string;
|
|
361
|
-
filterEndsWith: string;
|
|
362
|
-
filterMin: string;
|
|
363
|
-
filterMax: string;
|
|
364
|
-
filterFrom: string;
|
|
365
|
-
filterTo: string;
|
|
366
|
-
filterTrue: string;
|
|
367
|
-
filterFalse: string;
|
|
368
|
-
filterInvalid: string;
|
|
369
|
-
export: string;
|
|
370
|
-
exportCsv: string;
|
|
371
|
-
exportJson: string;
|
|
372
|
-
exportFailed?: string;
|
|
373
|
-
refresh: string;
|
|
374
|
-
view: string;
|
|
375
|
-
tableView: string;
|
|
376
|
-
galleryView: string;
|
|
377
|
-
columns: string;
|
|
378
|
-
groupBy: string;
|
|
379
|
-
sortAsc: string;
|
|
380
|
-
sortDesc: string;
|
|
381
|
-
sortClear: string;
|
|
382
|
-
sortBy: string;
|
|
383
|
-
hideColumn: string;
|
|
384
|
-
reorder: string;
|
|
385
|
-
removeItem: string;
|
|
386
|
-
moveUp: string;
|
|
387
|
-
moveDown: string;
|
|
388
|
-
resizeColumn: (column: string) => string;
|
|
389
|
-
listDetails: string;
|
|
390
|
-
selectAllRows: string;
|
|
391
|
-
selectRow: string;
|
|
392
|
-
selected: string;
|
|
393
|
-
};
|
|
394
|
-
export type DataTableMessageOverrides = Partial<DataTableMessages>;
|
|
395
|
-
export type DataTableMessageTranslations = Partial<Record<string, DataTableMessageOverrides>>;
|
|
396
|
-
export declare const dataTableMessages: (locale?: string, translations?: DataTableMessageTranslations) => {
|
|
397
|
-
pageSize: string;
|
|
398
|
-
results: (count: number) => string;
|
|
399
|
-
selectedOf: (selected: number, total: number) => string;
|
|
400
|
-
pageOf: (page: number, total: number) => string;
|
|
401
|
-
goToFirstPage: string;
|
|
402
|
-
goToPreviousPage: string;
|
|
403
|
-
goToNextPage: string;
|
|
404
|
-
goToLastPage: string;
|
|
405
|
-
actions: string;
|
|
406
|
-
addItem: string;
|
|
407
|
-
empty: string;
|
|
408
|
-
loading: string;
|
|
409
|
-
filter: string;
|
|
410
|
-
filters: string;
|
|
411
|
-
filtersClear: string;
|
|
412
|
-
filterClear: string;
|
|
413
|
-
filterApply: string;
|
|
414
|
-
filterValue: string;
|
|
415
|
-
filterOperator: string;
|
|
416
|
-
filterContains: string;
|
|
417
|
-
filterEquals: string;
|
|
418
|
-
filterStartsWith: string;
|
|
419
|
-
filterEndsWith: string;
|
|
420
|
-
filterMin: string;
|
|
421
|
-
filterMax: string;
|
|
422
|
-
filterFrom: string;
|
|
423
|
-
filterTo: string;
|
|
424
|
-
filterTrue: string;
|
|
425
|
-
filterFalse: string;
|
|
426
|
-
filterInvalid: string;
|
|
427
|
-
export: string;
|
|
428
|
-
exportCsv: string;
|
|
429
|
-
exportJson: string;
|
|
430
|
-
exportFailed: string;
|
|
431
|
-
refresh: string;
|
|
432
|
-
view: string;
|
|
433
|
-
tableView: string;
|
|
434
|
-
galleryView: string;
|
|
435
|
-
columns: string;
|
|
436
|
-
groupBy: string;
|
|
437
|
-
sortAsc: string;
|
|
438
|
-
sortDesc: string;
|
|
439
|
-
sortClear: string;
|
|
440
|
-
sortBy: string;
|
|
441
|
-
hideColumn: string;
|
|
442
|
-
reorder: string;
|
|
443
|
-
removeItem: string;
|
|
444
|
-
moveUp: string;
|
|
445
|
-
moveDown: string;
|
|
446
|
-
resizeColumn: (column: string) => string;
|
|
447
|
-
listDetails: string;
|
|
448
|
-
selectAllRows: string;
|
|
449
|
-
selectRow: string;
|
|
450
|
-
selected: string;
|
|
451
|
-
} | {
|
|
452
|
-
pageSize: string;
|
|
453
|
-
results: (count: number) => string;
|
|
454
|
-
selectedOf: (selected: number, total: number) => string;
|
|
455
|
-
pageOf: (page: number, total: number) => string;
|
|
456
|
-
goToFirstPage: string;
|
|
457
|
-
goToPreviousPage: string;
|
|
458
|
-
goToNextPage: string;
|
|
459
|
-
goToLastPage: string;
|
|
460
|
-
actions: string;
|
|
461
|
-
addItem: string;
|
|
462
|
-
empty: string;
|
|
463
|
-
loading: string;
|
|
464
|
-
filter: string;
|
|
465
|
-
filters: string;
|
|
466
|
-
filtersClear: string;
|
|
467
|
-
filterClear: string;
|
|
468
|
-
filterApply: string;
|
|
469
|
-
filterValue: string;
|
|
470
|
-
filterOperator: string;
|
|
471
|
-
filterContains: string;
|
|
472
|
-
filterEquals: string;
|
|
473
|
-
filterStartsWith: string;
|
|
474
|
-
filterEndsWith: string;
|
|
475
|
-
filterMin: string;
|
|
476
|
-
filterMax: string;
|
|
477
|
-
filterFrom: string;
|
|
478
|
-
filterTo: string;
|
|
479
|
-
filterTrue: string;
|
|
480
|
-
filterFalse: string;
|
|
481
|
-
filterInvalid: string;
|
|
482
|
-
export: string;
|
|
483
|
-
exportCsv: string;
|
|
484
|
-
exportJson: string;
|
|
485
|
-
exportFailed: string;
|
|
486
|
-
refresh: string;
|
|
487
|
-
view: string;
|
|
488
|
-
tableView: string;
|
|
489
|
-
galleryView: string;
|
|
490
|
-
columns: string;
|
|
491
|
-
groupBy: string;
|
|
492
|
-
sortAsc: string;
|
|
493
|
-
sortDesc: string;
|
|
494
|
-
sortClear: string;
|
|
495
|
-
sortBy: string;
|
|
496
|
-
hideColumn: string;
|
|
497
|
-
reorder: string;
|
|
498
|
-
removeItem: string;
|
|
499
|
-
moveUp: string;
|
|
500
|
-
moveDown: string;
|
|
501
|
-
resizeColumn: (column: string) => string;
|
|
502
|
-
listDetails: string;
|
|
503
|
-
selectAllRows: string;
|
|
504
|
-
selectRow: string;
|
|
505
|
-
selected: string;
|
|
506
|
-
};
|
|
507
|
-
export interface DataTableProps<TData extends RowData> {
|
|
508
|
-
className?: string;
|
|
509
|
-
classNames?: DataTableClassNames;
|
|
510
|
-
rowData: readonly TData[];
|
|
511
|
-
columnDefs: readonly DataTableColDef<TData>[];
|
|
512
|
-
getRowId?: (row: TData) => string;
|
|
513
|
-
state?: DataTablePublicState;
|
|
514
|
-
initialState?: Partial<DataTablePublicState> & {
|
|
515
|
-
/** Initial visibility defaults; saved user preferences take precedence. */
|
|
516
|
-
columnVisibility?: Readonly<Record<string, boolean>>;
|
|
517
|
-
/** Initial view only; a saved user preference takes precedence. */
|
|
518
|
-
view?: DataTableView;
|
|
519
|
-
};
|
|
520
|
-
locale?: string;
|
|
521
|
-
onStateChange?: (state: DataTablePublicState) => void;
|
|
522
|
-
status?: DataTableStatus;
|
|
523
|
-
features?: DataTableFeatures<TData>;
|
|
524
|
-
onRowClicked?: (row: TData) => void;
|
|
525
|
-
messages?: DataTableMessageTranslations;
|
|
526
|
-
}
|
|
527
|
-
export interface DataTableColumn<TData extends RowData> {
|
|
528
|
-
id: string;
|
|
529
|
-
colDef: DataTableColDef<TData>;
|
|
530
|
-
width: number;
|
|
531
|
-
}
|
|
532
|
-
export interface DataTableModelRow<TData extends RowData> {
|
|
533
|
-
id: string;
|
|
534
|
-
data: TData;
|
|
535
|
-
index: number;
|
|
536
|
-
values: ReadonlyMap<string, unknown>;
|
|
537
|
-
}
|
|
538
|
-
export interface DataTableModel<TData extends RowData> {
|
|
539
|
-
columns: readonly DataTableColumn<TData>[];
|
|
540
|
-
visibleColumns: readonly DataTableColumn<TData>[];
|
|
541
|
-
rows: readonly DataTableModelRow<TData>[];
|
|
542
|
-
filteredRows: readonly DataTableModelRow<TData>[];
|
|
543
|
-
sortedRows: readonly DataTableModelRow<TData>[];
|
|
544
|
-
pageRows: readonly DataTableModelRow<TData>[];
|
|
545
|
-
pageCount: number;
|
|
546
|
-
totalRows: number;
|
|
547
|
-
}
|
|
548
|
-
export declare const normalizeDataTableColumns: <TData extends RowData>(columnDefs: readonly DataTableColDef<TData>[], columnSizing?: Readonly<Record<string, number>>) => DataTableColumn<TData>[];
|
|
549
|
-
/** Resolve logical sort targets without adding visual columns. */
|
|
550
|
-
export declare const getDataTableSortColumns: <TData extends RowData>(columns: readonly DataTableColumn<TData>[]) => DataTableColumn<TData>[];
|
|
551
|
-
/** Expand only visible columns, retaining field labels and typed export formats. */
|
|
552
|
-
export declare const getDataTableExportColumns: <TData extends RowData>(visibleColumns: readonly DataTableColumn<TData>[]) => DataTableColumn<TData>[];
|
|
553
|
-
export declare const getDataTableWidth: <TData extends RowData>(columns: readonly DataTableColumn<TData>[], utilityColumns?: number) => number;
|
|
554
|
-
export declare const buildDataTableRows: <TData extends RowData>(rowData: readonly TData[], columns: readonly DataTableColumn<TData>[], getRowId?: (row: TData) => string) => DataTableModelRow<TData>[];
|
|
555
|
-
export declare const getDataTableExportValue: <TData extends RowData>(row: DataTableModelRow<TData>, column: DataTableColumn<TData>, locale?: string) => unknown;
|
|
556
|
-
export declare const filterDataTableRows: <TData extends RowData>(rows: readonly DataTableModelRow<TData>[], columns: readonly DataTableColumn<TData>[], globalFilter: string, locale?: string) => DataTableModelRow<TData>[];
|
|
557
|
-
export declare const getDataTableFilterColumns: <TData extends RowData>(columns: readonly DataTableColumn<TData>[]) => DataTableColumn<TData>[];
|
|
558
|
-
/** AND across columns, OR within a multi-select filter. Unknown/stale IDs are ignored. */
|
|
559
|
-
export declare const filterDataTableColumnRows: <TData extends RowData>(rows: readonly DataTableModelRow<TData>[], columns: readonly DataTableColumn<TData>[], filters: readonly ColumnFilter[]) => DataTableModelRow<TData>[];
|
|
560
|
-
export declare const sortDataTableRows: <TData extends RowData>(rows: readonly DataTableModelRow<TData>[], columns: readonly DataTableColumn<TData>[], sorting: NonNullable<QueryType["sort"]>) => DataTableModelRow<TData>[];
|
|
561
|
-
export declare const paginateDataTableRows: <TData extends RowData>(rows: readonly DataTableModelRow<TData>[], pagination: Pick<QueryType, "page" | "pageSize">) => DataTableModelRow<TData>[];
|
|
562
|
-
export declare const reorderDataTableRows: <TData extends RowData>(rows: readonly DataTableModelRow<TData>[], sourceRowId: string, targetRowId: string) => TData[];
|
|
563
|
-
type GroupSection<TData extends RowData> = {
|
|
564
|
-
key: string;
|
|
565
|
-
groupId: string;
|
|
566
|
-
depth: number;
|
|
567
|
-
field: DataTableGroupingField<TData>;
|
|
568
|
-
rows: DataTableModelRow<TData>[];
|
|
569
|
-
children: GroupSection<TData>[];
|
|
570
|
-
};
|
|
571
|
-
export declare const groupDataTableRows: <TData extends RowData>(rows: readonly DataTableModelRow<TData>[], fields: readonly DataTableGroupingField<TData>[], depth?: number, parentKey?: string) => GroupSection<TData>[];
|
|
572
|
-
export declare const getDataTableSelectableRows: <TData extends RowData>(model: DataTableModel<TData>, grouped: boolean, isRowSelectable?: (row: TData) => boolean) => DataTableModelRow<TData>[];
|
|
573
|
-
export type CsvValue = string | number | boolean | null | undefined;
|
|
574
|
-
export declare const downloadCsv: (headers: CsvValue[], data: CsvValue[][], fileName?: string) => void;
|
|
575
|
-
export declare const downloadJson: <TData>(data: TData, fileName?: string) => void;
|
|
576
|
-
export declare const DataTableRowActions: <TData>({ actions, row, title, }: {
|
|
577
|
-
actions: readonly DataTableRowAction<TData>[];
|
|
578
|
-
row: TData;
|
|
579
|
-
title?: string;
|
|
580
|
-
}) => import("react").JSX.Element | null;
|
|
581
|
-
export declare const DataTable: <TData extends RowData>(props: DataTableProps<TData>) => import("react").JSX.Element;
|
|
582
|
-
export declare const DataTableListCell: (props: DataTableListCellProps) => import("react").JSX.Element;
|
|
583
|
-
export declare const DataTableListSummary: (props: DataTableListSummaryProps) => import("react").JSX.Element;
|
|
584
|
-
export {};
|
|
1
|
+
export * from "../data-table/react.js";
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export type KrakstackProviderProps = {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
locale: string;
|
|
5
|
-
locales?: readonly string[];
|
|
6
|
-
};
|
|
7
|
-
export declare const KrakstackProvider: ({ children, locale, locales, }: KrakstackProviderProps) => import("react").JSX.Element;
|
|
8
|
-
export declare const useKrakstackLocale: (locale?: string) => string;
|
|
9
|
-
export declare const useKrakstackLocales: (locales?: readonly string[]) => readonly string[];
|
|
1
|
+
export * from "../krakstack-provider/react.js";
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export type LoadingMessages = {
|
|
3
|
-
loading: string;
|
|
4
|
-
};
|
|
5
|
-
export type LoadingMessageTranslations = Partial<Record<string, Partial<LoadingMessages>>>;
|
|
6
|
-
export declare function Loading({ className, label, locale: localeOverride, messages, variant, }: {
|
|
7
|
-
className?: string | undefined;
|
|
8
|
-
label?: string | undefined;
|
|
9
|
-
locale?: string | undefined;
|
|
10
|
-
messages?: LoadingMessageTranslations | undefined;
|
|
11
|
-
variant?: LoadingVariant | undefined;
|
|
12
|
-
}): import("react").JSX.Element;
|
|
13
|
-
export {};
|
|
1
|
+
export * from "../loading/react.js";
|