@hanzo/ui 8.0.27 → 8.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/backends/gui/aspect-ratio.cjs +15 -0
- package/dist/backends/gui/aspect-ratio.d.ts +1 -0
- package/dist/backends/gui/aspect-ratio.d.ts.map +1 -0
- package/dist/backends/gui/aspect-ratio.js +13 -0
- package/dist/backends/gui/aspect-ratio.js.map +1 -0
- package/dist/backends/gui/avatar.cjs +20 -0
- package/dist/backends/gui/avatar.d.ts +1 -0
- package/dist/backends/gui/avatar.d.ts.map +1 -0
- package/dist/backends/gui/avatar.js +16 -0
- package/dist/backends/gui/avatar.js.map +1 -0
- package/dist/backends/gui/badge.cjs +80 -0
- package/dist/backends/gui/badge.d.ts +1 -0
- package/dist/backends/gui/badge.d.ts.map +1 -0
- package/dist/backends/gui/badge.js +76 -0
- package/dist/backends/gui/badge.js.map +1 -0
- package/dist/backends/gui/button.cjs +114 -0
- package/dist/backends/gui/button.d.ts +4 -24
- package/dist/backends/gui/button.d.ts.map +1 -0
- package/dist/backends/gui/button.js +111 -0
- package/dist/backends/gui/button.js.map +1 -0
- package/dist/backends/gui/card.cjs +49 -0
- package/dist/backends/gui/card.d.ts +1 -0
- package/dist/backends/gui/card.d.ts.map +1 -0
- package/dist/backends/gui/card.js +41 -0
- package/dist/backends/gui/card.js.map +1 -0
- package/dist/backends/gui/checkbox.cjs +16 -0
- package/dist/backends/gui/checkbox.d.ts +2 -1
- package/dist/backends/gui/checkbox.d.ts.map +1 -0
- package/dist/backends/gui/checkbox.js +14 -0
- package/dist/backends/gui/checkbox.js.map +1 -0
- package/dist/backends/gui/collapsible.cjs +15 -0
- package/dist/backends/gui/collapsible.d.ts +1 -0
- package/dist/backends/gui/collapsible.d.ts.map +1 -0
- package/dist/backends/gui/collapsible.js +11 -0
- package/dist/backends/gui/collapsible.js.map +1 -0
- package/dist/backends/gui/command.cjs +198 -0
- package/dist/backends/gui/command.d.ts +2 -1
- package/dist/backends/gui/command.d.ts.map +1 -0
- package/dist/backends/gui/command.js +188 -0
- package/dist/backends/gui/command.js.map +1 -0
- package/dist/backends/gui/command.logic.cjs +49 -0
- package/dist/backends/gui/command.logic.d.ts +1 -0
- package/dist/backends/gui/command.logic.d.ts.map +1 -0
- package/dist/backends/gui/command.logic.js +45 -0
- package/dist/backends/gui/command.logic.js.map +1 -0
- package/dist/backends/gui/dialog.cjs +41 -0
- package/dist/backends/gui/dialog.d.ts +1 -0
- package/dist/backends/gui/dialog.d.ts.map +1 -0
- package/dist/backends/gui/dialog.js +30 -0
- package/dist/backends/gui/dialog.js.map +1 -0
- package/dist/backends/gui/dropdown-menu.cjs +168 -0
- package/dist/backends/gui/dropdown-menu.d.ts +7 -6
- package/dist/backends/gui/dropdown-menu.d.ts.map +1 -0
- package/dist/backends/gui/dropdown-menu.js +119 -0
- package/dist/backends/gui/dropdown-menu.js.map +1 -0
- package/dist/backends/gui/gesture.cjs +74 -0
- package/dist/backends/gui/gesture.d.ts +68 -0
- package/dist/backends/gui/gesture.d.ts.map +1 -0
- package/dist/backends/gui/gesture.js +69 -0
- package/dist/backends/gui/gesture.js.map +1 -0
- package/dist/backends/gui/index.cjs +134 -0
- package/dist/backends/gui/index.d.ts +25 -24
- package/dist/backends/gui/index.d.ts.map +1 -0
- package/dist/backends/gui/index.js +41 -0
- package/dist/backends/gui/index.js.map +1 -0
- package/dist/backends/gui/ink.cjs +14 -0
- package/dist/backends/gui/ink.d.ts +1 -0
- package/dist/backends/gui/ink.d.ts.map +1 -0
- package/dist/backends/gui/ink.js +11 -0
- package/dist/backends/gui/ink.js.map +1 -0
- package/dist/backends/gui/input.cjs +39 -0
- package/dist/backends/gui/input.d.ts +1 -0
- package/dist/backends/gui/input.d.ts.map +1 -0
- package/dist/backends/gui/input.js +37 -0
- package/dist/backends/gui/input.js.map +1 -0
- package/dist/backends/gui/label.cjs +10 -0
- package/dist/backends/gui/label.d.ts +1 -0
- package/dist/backends/gui/label.d.ts.map +1 -0
- package/dist/backends/gui/label.js +8 -0
- package/dist/backends/gui/label.js.map +1 -0
- package/dist/backends/gui/popover.cjs +39 -0
- package/dist/backends/gui/popover.d.ts +1 -0
- package/dist/backends/gui/popover.d.ts.map +1 -0
- package/dist/backends/gui/popover.js +33 -0
- package/dist/backends/gui/popover.js.map +1 -0
- package/dist/backends/gui/progress.cjs +10 -0
- package/dist/backends/gui/progress.d.ts +1 -0
- package/dist/backends/gui/progress.d.ts.map +1 -0
- package/dist/backends/gui/progress.js +8 -0
- package/dist/backends/gui/progress.js.map +1 -0
- package/dist/backends/gui/resizable.cjs +174 -0
- package/dist/backends/gui/resizable.d.ts +5 -3
- package/dist/backends/gui/resizable.d.ts.map +1 -0
- package/dist/backends/gui/resizable.js +168 -0
- package/dist/backends/gui/resizable.js.map +1 -0
- package/dist/backends/gui/resizable.logic.cjs +46 -0
- package/dist/backends/gui/resizable.logic.d.ts +1 -0
- package/dist/backends/gui/resizable.logic.d.ts.map +1 -0
- package/dist/backends/gui/resizable.logic.js +43 -0
- package/dist/backends/gui/resizable.logic.js.map +1 -0
- package/dist/backends/gui/scroll-area.cjs +126 -0
- package/dist/backends/gui/scroll-area.d.ts +1 -0
- package/dist/backends/gui/scroll-area.d.ts.map +1 -0
- package/dist/backends/gui/scroll-area.js +123 -0
- package/dist/backends/gui/scroll-area.js.map +1 -0
- package/dist/backends/gui/select.cjs +54 -0
- package/dist/backends/gui/select.d.ts +1 -0
- package/dist/backends/gui/select.d.ts.map +1 -0
- package/dist/backends/gui/select.js +43 -0
- package/dist/backends/gui/select.js.map +1 -0
- package/dist/backends/gui/separator.cjs +10 -0
- package/dist/backends/gui/separator.d.ts +1 -0
- package/dist/backends/gui/separator.d.ts.map +1 -0
- package/dist/backends/gui/separator.js +8 -0
- package/dist/backends/gui/separator.js.map +1 -0
- package/dist/backends/gui/slider.cjs +13 -0
- package/dist/backends/gui/slider.d.ts +2 -1
- package/dist/backends/gui/slider.d.ts.map +1 -0
- package/dist/backends/gui/slider.js +11 -0
- package/dist/backends/gui/slider.js.map +1 -0
- package/dist/backends/gui/slot.cjs +20 -0
- package/dist/backends/gui/slot.d.ts +10 -0
- package/dist/backends/gui/slot.d.ts.map +1 -0
- package/dist/backends/gui/slot.js +16 -0
- package/dist/backends/gui/slot.js.map +1 -0
- package/dist/backends/gui/switch.cjs +13 -0
- package/dist/backends/gui/switch.d.ts +2 -1
- package/dist/backends/gui/switch.d.ts.map +1 -0
- package/dist/backends/gui/switch.js +11 -0
- package/dist/backends/gui/switch.js.map +1 -0
- package/dist/backends/gui/tabs.cjs +19 -0
- package/dist/backends/gui/tabs.d.ts +1 -0
- package/dist/backends/gui/tabs.d.ts.map +1 -0
- package/dist/backends/gui/tabs.js +14 -0
- package/dist/backends/gui/tabs.js.map +1 -0
- package/dist/backends/gui/textarea.cjs +50 -0
- package/dist/backends/gui/textarea.d.ts +9 -1
- package/dist/backends/gui/textarea.d.ts.map +1 -0
- package/dist/backends/gui/textarea.js +15 -0
- package/dist/backends/gui/textarea.js.map +1 -0
- package/dist/backends/gui/toaster.cjs +13 -0
- package/dist/backends/gui/toaster.d.ts +1 -0
- package/dist/backends/gui/toaster.d.ts.map +1 -0
- package/dist/backends/gui/toaster.js +10 -0
- package/dist/backends/gui/toaster.js.map +1 -0
- package/dist/backends/gui/tooltip.cjs +22 -0
- package/dist/backends/gui/tooltip.d.ts +1 -0
- package/dist/backends/gui/tooltip.d.ts.map +1 -0
- package/dist/backends/gui/tooltip.js +17 -0
- package/dist/backends/gui/tooltip.js.map +1 -0
- package/dist/canvas.cjs +27 -15
- package/dist/canvas.d.ts +1 -0
- package/dist/canvas.d.ts.map +1 -0
- package/dist/canvas.js +10 -2
- package/dist/canvas.js.map +1 -1
- package/dist/cd/layout.cjs +143 -0
- package/dist/cd/layout.d.ts +1 -0
- package/dist/cd/layout.d.ts.map +1 -0
- package/dist/cd/layout.js +141 -0
- package/dist/cd/layout.js.map +1 -0
- package/dist/cd/status.cjs +132 -0
- package/dist/cd/status.d.ts +2 -1
- package/dist/cd/status.d.ts.map +1 -0
- package/dist/cd/status.js +120 -0
- package/dist/cd/status.js.map +1 -0
- package/dist/cd/time.cjs +60 -0
- package/dist/cd/time.d.ts +1 -0
- package/dist/cd/time.d.ts.map +1 -0
- package/dist/cd/time.js +56 -0
- package/dist/cd/time.js.map +1 -0
- package/dist/cd/types.cjs +19 -0
- package/dist/cd/types.d.ts +1 -0
- package/dist/cd/types.d.ts.map +1 -0
- package/dist/cd/types.js +19 -0
- package/dist/cd/types.js.map +1 -0
- package/dist/chat/Code.cjs +70 -0
- package/dist/chat/Code.d.ts +25 -0
- package/dist/chat/Code.d.ts.map +1 -0
- package/dist/chat/Code.js +67 -0
- package/dist/chat/Code.js.map +1 -0
- package/dist/chat/Composer.cjs +56 -0
- package/dist/chat/Composer.d.ts +30 -0
- package/dist/chat/Composer.d.ts.map +1 -0
- package/dist/chat/Composer.js +53 -0
- package/dist/chat/Composer.js.map +1 -0
- package/dist/chat/Header.cjs +49 -0
- package/dist/chat/Header.d.ts +46 -0
- package/dist/chat/Header.d.ts.map +1 -0
- package/dist/chat/Header.js +43 -0
- package/dist/chat/Header.js.map +1 -0
- package/dist/chat/Message.cjs +27 -0
- package/dist/chat/Message.d.ts +14 -0
- package/dist/chat/Message.d.ts.map +1 -0
- package/dist/chat/Message.js +25 -0
- package/dist/chat/Message.js.map +1 -0
- package/dist/chat/Sidebar.cjs +81 -0
- package/dist/chat/Sidebar.d.ts +79 -0
- package/dist/chat/Sidebar.d.ts.map +1 -0
- package/dist/chat/Sidebar.js +71 -0
- package/dist/chat/Sidebar.js.map +1 -0
- package/dist/chat/Sources.cjs +25 -0
- package/dist/chat/Sources.d.ts +23 -0
- package/dist/chat/Sources.d.ts.map +1 -0
- package/dist/chat/Sources.js +22 -0
- package/dist/chat/Sources.js.map +1 -0
- package/dist/chat/Thread.cjs +42 -0
- package/dist/chat/Thread.d.ts +11 -0
- package/dist/chat/Thread.d.ts.map +1 -0
- package/dist/chat/Thread.js +40 -0
- package/dist/chat/Thread.js.map +1 -0
- package/dist/chat/index.cjs +58 -0
- package/dist/chat/index.d.ts +30 -0
- package/dist/chat/index.d.ts.map +1 -0
- package/dist/chat/index.js +30 -0
- package/dist/chat/index.js.map +1 -0
- package/dist/chat/send.cjs +44 -0
- package/dist/chat/send.d.ts +32 -0
- package/dist/chat/send.d.ts.map +1 -0
- package/dist/chat/send.js +40 -0
- package/dist/chat/send.js.map +1 -0
- package/dist/chat/stick.cjs +19 -0
- package/dist/chat/stick.d.ts +24 -0
- package/dist/chat/stick.d.ts.map +1 -0
- package/dist/chat/stick.js +16 -0
- package/dist/chat/stick.js.map +1 -0
- package/dist/core/cn.cjs +15 -0
- package/dist/core/cn.d.ts +3 -1
- package/dist/core/cn.d.ts.map +1 -0
- package/dist/core/cn.js +13 -0
- package/dist/core/cn.js.map +1 -0
- package/dist/core/fonts.cjs +26 -0
- package/dist/core/fonts.d.ts +1 -0
- package/dist/core/fonts.d.ts.map +1 -0
- package/dist/core/fonts.js +24 -0
- package/dist/core/fonts.js.map +1 -0
- package/dist/core/index.cjs +31 -92
- package/dist/core/index.d.ts +4 -3
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +8 -13
- package/dist/core/index.js.map +1 -1
- package/dist/core/tokens.cjs +35 -77
- package/dist/core/tokens.d.ts +1 -0
- package/dist/core/tokens.d.ts.map +1 -0
- package/dist/core/tokens.js +15 -3
- package/dist/core/tokens.js.map +1 -1
- package/dist/dashboard.cjs +24 -15
- package/dist/dashboard.d.ts +1 -0
- package/dist/dashboard.d.ts.map +1 -0
- package/dist/dashboard.js +7 -2
- package/dist/dashboard.js.map +1 -1
- package/dist/data.cjs +28 -15
- package/dist/data.d.ts +1 -0
- package/dist/data.d.ts.map +1 -0
- package/dist/data.js +11 -2
- package/dist/data.js.map +1 -1
- package/dist/framework/CollectionBuilder.cjs +77 -0
- package/dist/framework/CollectionBuilder.d.ts +3 -2
- package/dist/framework/CollectionBuilder.d.ts.map +1 -0
- package/dist/framework/CollectionBuilder.js +75 -0
- package/dist/framework/CollectionBuilder.js.map +1 -0
- package/dist/framework/CollectionsBrowser.cjs +107 -0
- package/dist/framework/CollectionsBrowser.d.ts +3 -2
- package/dist/framework/CollectionsBrowser.d.ts.map +1 -0
- package/dist/framework/CollectionsBrowser.js +105 -0
- package/dist/framework/CollectionsBrowser.js.map +1 -0
- package/dist/framework/DocTypeDetail.cjs +187 -0
- package/dist/framework/DocTypeDetail.d.ts +2 -1
- package/dist/framework/DocTypeDetail.d.ts.map +1 -0
- package/dist/framework/DocTypeDetail.js +185 -0
- package/dist/framework/DocTypeDetail.js.map +1 -0
- package/dist/framework/DocTypeRecords.cjs +130 -0
- package/dist/framework/DocTypeRecords.d.ts +4 -3
- package/dist/framework/DocTypeRecords.d.ts.map +1 -0
- package/dist/framework/DocTypeRecords.js +128 -0
- package/dist/framework/DocTypeRecords.js.map +1 -0
- package/dist/framework/MediaGrid.cjs +134 -0
- package/dist/framework/MediaGrid.d.ts +4 -3
- package/dist/framework/MediaGrid.d.ts.map +1 -0
- package/dist/framework/MediaGrid.js +132 -0
- package/dist/framework/MediaGrid.js.map +1 -0
- package/dist/framework/RecordCards.cjs +47 -0
- package/dist/framework/RecordCards.d.ts +1 -0
- package/dist/framework/RecordCards.d.ts.map +1 -0
- package/dist/framework/RecordCards.js +45 -0
- package/dist/framework/RecordCards.js.map +1 -0
- package/dist/framework/builder-logic.cjs +169 -0
- package/dist/framework/builder-logic.d.ts +2 -1
- package/dist/framework/builder-logic.d.ts.map +1 -0
- package/dist/framework/builder-logic.js +156 -0
- package/dist/framework/builder-logic.js.map +1 -0
- package/dist/framework/client.cjs +95 -0
- package/dist/framework/client.d.ts +2 -1
- package/dist/framework/client.d.ts.map +1 -0
- package/dist/framework/client.js +91 -0
- package/dist/framework/client.js.map +1 -0
- package/dist/framework/core.cjs +36 -213
- package/dist/framework/core.d.ts +7 -6
- package/dist/framework/core.d.ts.map +1 -0
- package/dist/framework/core.js +20 -3
- package/dist/framework/core.js.map +1 -1
- package/dist/framework/data.cjs +41 -0
- package/dist/framework/data.d.ts +3 -2
- package/dist/framework/data.d.ts.map +1 -0
- package/dist/framework/data.js +38 -0
- package/dist/framework/data.js.map +1 -0
- package/dist/framework/fields.cjs +358 -0
- package/dist/framework/fields.d.ts +2 -1
- package/dist/framework/fields.d.ts.map +1 -0
- package/dist/framework/fields.js +335 -0
- package/dist/framework/fields.js.map +1 -0
- package/dist/framework/index.cjs +58 -1341
- package/dist/framework/index.d.ts +10 -9
- package/dist/framework/index.d.ts.map +1 -0
- package/dist/framework/index.js +35 -1119
- package/dist/framework/index.js.map +1 -1
- package/dist/framework/media.cjs +133 -0
- package/dist/framework/media.d.ts +2 -1
- package/dist/framework/media.d.ts.map +1 -0
- package/dist/framework/media.js +124 -0
- package/dist/framework/media.js.map +1 -0
- package/dist/framework/parts.cjs +60 -0
- package/dist/framework/parts.d.ts +1 -0
- package/dist/framework/parts.d.ts.map +1 -0
- package/dist/framework/parts.js +51 -0
- package/dist/framework/parts.js.map +1 -0
- package/dist/framework/responsive.cjs +62 -0
- package/dist/framework/responsive.d.ts +1 -0
- package/dist/framework/responsive.d.ts.map +1 -0
- package/dist/framework/responsive.js +58 -0
- package/dist/framework/responsive.js.map +1 -0
- package/dist/framework/types.cjs +20 -0
- package/dist/framework/types.d.ts +1 -0
- package/dist/framework/types.d.ts.map +1 -0
- package/dist/framework/types.js +18 -0
- package/dist/framework/types.js.map +1 -0
- package/dist/gitops.cjs +21 -15
- package/dist/gitops.d.ts +1 -0
- package/dist/gitops.d.ts.map +1 -0
- package/dist/gitops.js +4 -2
- package/dist/gitops.js.map +1 -1
- package/dist/gui-config.cjs +145 -113
- package/dist/gui-config.d.ts +1 -0
- package/dist/gui-config.d.ts.map +1 -0
- package/dist/gui-config.js +140 -105
- package/dist/gui-config.js.map +1 -1
- package/dist/index.cjs +41 -375
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +23 -5
- package/dist/index.js.map +1 -1
- package/dist/models/ModelSelector.cjs +58 -0
- package/dist/models/ModelSelector.d.ts +10 -6
- package/dist/models/ModelSelector.d.ts.map +1 -0
- package/dist/models/ModelSelector.js +56 -0
- package/dist/models/ModelSelector.js.map +1 -0
- package/dist/models/catalog.cjs +191 -0
- package/dist/models/catalog.d.ts +1 -0
- package/dist/models/catalog.d.ts.map +1 -0
- package/dist/models/catalog.js +185 -0
- package/dist/models/catalog.js.map +1 -0
- package/dist/models/index.cjs +16 -225
- package/dist/models/index.d.ts +6 -5
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/index.js +7 -217
- package/dist/models/index.js.map +1 -1
- package/dist/models/types.cjs +8 -0
- package/dist/models/types.d.ts +1 -0
- package/dist/models/types.d.ts.map +1 -0
- package/dist/models/types.js +8 -0
- package/dist/models/types.js.map +1 -0
- package/dist/oss/blueprint.cjs +96 -0
- package/dist/oss/blueprint.d.ts +1 -0
- package/dist/oss/blueprint.d.ts.map +1 -0
- package/dist/oss/blueprint.js +94 -0
- package/dist/oss/blueprint.js.map +1 -0
- package/dist/oss/catalog.cjs +174 -0
- package/dist/oss/catalog.d.ts +1 -0
- package/dist/oss/catalog.d.ts.map +1 -0
- package/dist/oss/catalog.js +165 -0
- package/dist/oss/catalog.js.map +1 -0
- package/dist/oss.cjs +27 -189
- package/dist/oss.d.ts +3 -2
- package/dist/oss.d.ts.map +1 -0
- package/dist/oss.js +12 -179
- package/dist/oss.js.map +1 -1
- package/dist/primitives/AspectRatio.cjs +8 -14
- package/dist/primitives/AspectRatio.d.ts +2 -1
- package/dist/primitives/AspectRatio.d.ts.map +1 -0
- package/dist/primitives/AspectRatio.js +4 -4
- package/dist/primitives/AspectRatio.js.map +1 -1
- package/dist/primitives/Avatar.cjs +8 -14
- package/dist/primitives/Avatar.d.ts +2 -1
- package/dist/primitives/Avatar.d.ts.map +1 -0
- package/dist/primitives/Avatar.js +4 -4
- package/dist/primitives/Avatar.js.map +1 -1
- package/dist/primitives/AvatarFallback.cjs +8 -14
- package/dist/primitives/AvatarFallback.d.ts +2 -1
- package/dist/primitives/AvatarFallback.d.ts.map +1 -0
- package/dist/primitives/AvatarFallback.js +4 -4
- package/dist/primitives/AvatarFallback.js.map +1 -1
- package/dist/primitives/AvatarImage.cjs +8 -14
- package/dist/primitives/AvatarImage.d.ts +2 -1
- package/dist/primitives/AvatarImage.d.ts.map +1 -0
- package/dist/primitives/AvatarImage.js +4 -4
- package/dist/primitives/AvatarImage.js.map +1 -1
- package/dist/primitives/Badge.cjs +8 -14
- package/dist/primitives/Badge.d.ts +2 -1
- package/dist/primitives/Badge.d.ts.map +1 -0
- package/dist/primitives/Badge.js +4 -4
- package/dist/primitives/Badge.js.map +1 -1
- package/dist/primitives/Button.cjs +8 -14
- package/dist/primitives/Button.d.ts +2 -1
- package/dist/primitives/Button.d.ts.map +1 -0
- package/dist/primitives/Button.js +4 -4
- package/dist/primitives/Button.js.map +1 -1
- package/dist/primitives/Card.cjs +8 -14
- package/dist/primitives/Card.d.ts +2 -1
- package/dist/primitives/Card.d.ts.map +1 -0
- package/dist/primitives/Card.js +4 -4
- package/dist/primitives/Card.js.map +1 -1
- package/dist/primitives/CardAction.cjs +8 -14
- package/dist/primitives/CardAction.d.ts +2 -1
- package/dist/primitives/CardAction.d.ts.map +1 -0
- package/dist/primitives/CardAction.js +4 -4
- package/dist/primitives/CardAction.js.map +1 -1
- package/dist/primitives/CardContent.cjs +8 -14
- package/dist/primitives/CardContent.d.ts +2 -1
- package/dist/primitives/CardContent.d.ts.map +1 -0
- package/dist/primitives/CardContent.js +4 -4
- package/dist/primitives/CardContent.js.map +1 -1
- package/dist/primitives/CardDescription.cjs +8 -14
- package/dist/primitives/CardDescription.d.ts +2 -1
- package/dist/primitives/CardDescription.d.ts.map +1 -0
- package/dist/primitives/CardDescription.js +4 -4
- package/dist/primitives/CardDescription.js.map +1 -1
- package/dist/primitives/CardFooter.cjs +8 -14
- package/dist/primitives/CardFooter.d.ts +2 -1
- package/dist/primitives/CardFooter.d.ts.map +1 -0
- package/dist/primitives/CardFooter.js +4 -4
- package/dist/primitives/CardFooter.js.map +1 -1
- package/dist/primitives/CardHeader.cjs +8 -14
- package/dist/primitives/CardHeader.d.ts +2 -1
- package/dist/primitives/CardHeader.d.ts.map +1 -0
- package/dist/primitives/CardHeader.js +4 -4
- package/dist/primitives/CardHeader.js.map +1 -1
- package/dist/primitives/CardTitle.cjs +8 -14
- package/dist/primitives/CardTitle.d.ts +2 -1
- package/dist/primitives/CardTitle.d.ts.map +1 -0
- package/dist/primitives/CardTitle.js +4 -4
- package/dist/primitives/CardTitle.js.map +1 -1
- package/dist/primitives/Checkbox.cjs +8 -14
- package/dist/primitives/Checkbox.d.ts +2 -1
- package/dist/primitives/Checkbox.d.ts.map +1 -0
- package/dist/primitives/Checkbox.js +4 -4
- package/dist/primitives/Checkbox.js.map +1 -1
- package/dist/primitives/Collapsible.cjs +8 -14
- package/dist/primitives/Collapsible.d.ts +2 -1
- package/dist/primitives/Collapsible.d.ts.map +1 -0
- package/dist/primitives/Collapsible.js +4 -4
- package/dist/primitives/Collapsible.js.map +1 -1
- package/dist/primitives/CollapsibleContent.cjs +8 -14
- package/dist/primitives/CollapsibleContent.d.ts +2 -1
- package/dist/primitives/CollapsibleContent.d.ts.map +1 -0
- package/dist/primitives/CollapsibleContent.js +4 -4
- package/dist/primitives/CollapsibleContent.js.map +1 -1
- package/dist/primitives/CollapsibleTrigger.cjs +8 -14
- package/dist/primitives/CollapsibleTrigger.d.ts +2 -1
- package/dist/primitives/CollapsibleTrigger.d.ts.map +1 -0
- package/dist/primitives/CollapsibleTrigger.js +4 -4
- package/dist/primitives/CollapsibleTrigger.js.map +1 -1
- package/dist/primitives/Command.cjs +8 -14
- package/dist/primitives/Command.d.ts +2 -1
- package/dist/primitives/Command.d.ts.map +1 -0
- package/dist/primitives/Command.js +4 -4
- package/dist/primitives/Command.js.map +1 -1
- package/dist/primitives/CommandDialog.cjs +8 -14
- package/dist/primitives/CommandDialog.d.ts +2 -1
- package/dist/primitives/CommandDialog.d.ts.map +1 -0
- package/dist/primitives/CommandDialog.js +4 -4
- package/dist/primitives/CommandDialog.js.map +1 -1
- package/dist/primitives/CommandEmpty.cjs +8 -14
- package/dist/primitives/CommandEmpty.d.ts +2 -1
- package/dist/primitives/CommandEmpty.d.ts.map +1 -0
- package/dist/primitives/CommandEmpty.js +4 -4
- package/dist/primitives/CommandEmpty.js.map +1 -1
- package/dist/primitives/CommandGroup.cjs +8 -14
- package/dist/primitives/CommandGroup.d.ts +2 -1
- package/dist/primitives/CommandGroup.d.ts.map +1 -0
- package/dist/primitives/CommandGroup.js +4 -4
- package/dist/primitives/CommandGroup.js.map +1 -1
- package/dist/primitives/CommandInput.cjs +8 -14
- package/dist/primitives/CommandInput.d.ts +2 -1
- package/dist/primitives/CommandInput.d.ts.map +1 -0
- package/dist/primitives/CommandInput.js +4 -4
- package/dist/primitives/CommandInput.js.map +1 -1
- package/dist/primitives/CommandItem.cjs +8 -14
- package/dist/primitives/CommandItem.d.ts +2 -1
- package/dist/primitives/CommandItem.d.ts.map +1 -0
- package/dist/primitives/CommandItem.js +4 -4
- package/dist/primitives/CommandItem.js.map +1 -1
- package/dist/primitives/CommandList.cjs +8 -14
- package/dist/primitives/CommandList.d.ts +2 -1
- package/dist/primitives/CommandList.d.ts.map +1 -0
- package/dist/primitives/CommandList.js +4 -4
- package/dist/primitives/CommandList.js.map +1 -1
- package/dist/primitives/CommandSeparator.cjs +8 -14
- package/dist/primitives/CommandSeparator.d.ts +2 -1
- package/dist/primitives/CommandSeparator.d.ts.map +1 -0
- package/dist/primitives/CommandSeparator.js +4 -4
- package/dist/primitives/CommandSeparator.js.map +1 -1
- package/dist/primitives/CommandShortcut.cjs +8 -14
- package/dist/primitives/CommandShortcut.d.ts +2 -1
- package/dist/primitives/CommandShortcut.d.ts.map +1 -0
- package/dist/primitives/CommandShortcut.js +4 -4
- package/dist/primitives/CommandShortcut.js.map +1 -1
- package/dist/primitives/Dialog.cjs +8 -14
- package/dist/primitives/Dialog.d.ts +2 -1
- package/dist/primitives/Dialog.d.ts.map +1 -0
- package/dist/primitives/Dialog.js +4 -4
- package/dist/primitives/Dialog.js.map +1 -1
- package/dist/primitives/DialogClose.cjs +8 -14
- package/dist/primitives/DialogClose.d.ts +2 -1
- package/dist/primitives/DialogClose.d.ts.map +1 -0
- package/dist/primitives/DialogClose.js +4 -4
- package/dist/primitives/DialogClose.js.map +1 -1
- package/dist/primitives/DialogContent.cjs +8 -14
- package/dist/primitives/DialogContent.d.ts +2 -1
- package/dist/primitives/DialogContent.d.ts.map +1 -0
- package/dist/primitives/DialogContent.js +4 -4
- package/dist/primitives/DialogContent.js.map +1 -1
- package/dist/primitives/DialogDescription.cjs +8 -14
- package/dist/primitives/DialogDescription.d.ts +2 -1
- package/dist/primitives/DialogDescription.d.ts.map +1 -0
- package/dist/primitives/DialogDescription.js +4 -4
- package/dist/primitives/DialogDescription.js.map +1 -1
- package/dist/primitives/DialogFooter.cjs +8 -14
- package/dist/primitives/DialogFooter.d.ts +2 -1
- package/dist/primitives/DialogFooter.d.ts.map +1 -0
- package/dist/primitives/DialogFooter.js +4 -4
- package/dist/primitives/DialogFooter.js.map +1 -1
- package/dist/primitives/DialogHeader.cjs +8 -14
- package/dist/primitives/DialogHeader.d.ts +2 -1
- package/dist/primitives/DialogHeader.d.ts.map +1 -0
- package/dist/primitives/DialogHeader.js +4 -4
- package/dist/primitives/DialogHeader.js.map +1 -1
- package/dist/primitives/DialogOverlay.cjs +8 -14
- package/dist/primitives/DialogOverlay.d.ts +2 -1
- package/dist/primitives/DialogOverlay.d.ts.map +1 -0
- package/dist/primitives/DialogOverlay.js +4 -4
- package/dist/primitives/DialogOverlay.js.map +1 -1
- package/dist/primitives/DialogPortal.cjs +8 -14
- package/dist/primitives/DialogPortal.d.ts +2 -1
- package/dist/primitives/DialogPortal.d.ts.map +1 -0
- package/dist/primitives/DialogPortal.js +4 -4
- package/dist/primitives/DialogPortal.js.map +1 -1
- package/dist/primitives/DialogTitle.cjs +8 -14
- package/dist/primitives/DialogTitle.d.ts +2 -1
- package/dist/primitives/DialogTitle.d.ts.map +1 -0
- package/dist/primitives/DialogTitle.js +4 -4
- package/dist/primitives/DialogTitle.js.map +1 -1
- package/dist/primitives/DialogTrigger.cjs +8 -14
- package/dist/primitives/DialogTrigger.d.ts +2 -1
- package/dist/primitives/DialogTrigger.d.ts.map +1 -0
- package/dist/primitives/DialogTrigger.js +4 -4
- package/dist/primitives/DialogTrigger.js.map +1 -1
- package/dist/primitives/DropdownMenu.cjs +8 -14
- package/dist/primitives/DropdownMenu.d.ts +2 -1
- package/dist/primitives/DropdownMenu.d.ts.map +1 -0
- package/dist/primitives/DropdownMenu.js +4 -4
- package/dist/primitives/DropdownMenu.js.map +1 -1
- package/dist/primitives/DropdownMenuCheckboxItem.cjs +8 -14
- package/dist/primitives/DropdownMenuCheckboxItem.d.ts +2 -1
- package/dist/primitives/DropdownMenuCheckboxItem.d.ts.map +1 -0
- package/dist/primitives/DropdownMenuCheckboxItem.js +4 -4
- package/dist/primitives/DropdownMenuCheckboxItem.js.map +1 -1
- package/dist/primitives/DropdownMenuContent.cjs +8 -14
- package/dist/primitives/DropdownMenuContent.d.ts +2 -1
- package/dist/primitives/DropdownMenuContent.d.ts.map +1 -0
- package/dist/primitives/DropdownMenuContent.js +4 -4
- package/dist/primitives/DropdownMenuContent.js.map +1 -1
- package/dist/primitives/DropdownMenuGroup.cjs +8 -14
- package/dist/primitives/DropdownMenuGroup.d.ts +2 -1
- package/dist/primitives/DropdownMenuGroup.d.ts.map +1 -0
- package/dist/primitives/DropdownMenuGroup.js +4 -4
- package/dist/primitives/DropdownMenuGroup.js.map +1 -1
- package/dist/primitives/DropdownMenuItem.cjs +8 -14
- package/dist/primitives/DropdownMenuItem.d.ts +2 -1
- package/dist/primitives/DropdownMenuItem.d.ts.map +1 -0
- package/dist/primitives/DropdownMenuItem.js +4 -4
- package/dist/primitives/DropdownMenuItem.js.map +1 -1
- package/dist/primitives/DropdownMenuLabel.cjs +8 -14
- package/dist/primitives/DropdownMenuLabel.d.ts +2 -1
- package/dist/primitives/DropdownMenuLabel.d.ts.map +1 -0
- package/dist/primitives/DropdownMenuLabel.js +4 -4
- package/dist/primitives/DropdownMenuLabel.js.map +1 -1
- package/dist/primitives/DropdownMenuPortal.cjs +8 -14
- package/dist/primitives/DropdownMenuPortal.d.ts +2 -1
- package/dist/primitives/DropdownMenuPortal.d.ts.map +1 -0
- package/dist/primitives/DropdownMenuPortal.js +4 -4
- package/dist/primitives/DropdownMenuPortal.js.map +1 -1
- package/dist/primitives/DropdownMenuRadioGroup.cjs +8 -14
- package/dist/primitives/DropdownMenuRadioGroup.d.ts +2 -1
- package/dist/primitives/DropdownMenuRadioGroup.d.ts.map +1 -0
- package/dist/primitives/DropdownMenuRadioGroup.js +4 -4
- package/dist/primitives/DropdownMenuRadioGroup.js.map +1 -1
- package/dist/primitives/DropdownMenuRadioItem.cjs +8 -14
- package/dist/primitives/DropdownMenuRadioItem.d.ts +2 -1
- package/dist/primitives/DropdownMenuRadioItem.d.ts.map +1 -0
- package/dist/primitives/DropdownMenuRadioItem.js +4 -4
- package/dist/primitives/DropdownMenuRadioItem.js.map +1 -1
- package/dist/primitives/DropdownMenuSeparator.cjs +8 -14
- package/dist/primitives/DropdownMenuSeparator.d.ts +2 -1
- package/dist/primitives/DropdownMenuSeparator.d.ts.map +1 -0
- package/dist/primitives/DropdownMenuSeparator.js +4 -4
- package/dist/primitives/DropdownMenuSeparator.js.map +1 -1
- package/dist/primitives/DropdownMenuShortcut.cjs +8 -14
- package/dist/primitives/DropdownMenuShortcut.d.ts +2 -1
- package/dist/primitives/DropdownMenuShortcut.d.ts.map +1 -0
- package/dist/primitives/DropdownMenuShortcut.js +4 -4
- package/dist/primitives/DropdownMenuShortcut.js.map +1 -1
- package/dist/primitives/DropdownMenuSub.cjs +8 -14
- package/dist/primitives/DropdownMenuSub.d.ts +2 -1
- package/dist/primitives/DropdownMenuSub.d.ts.map +1 -0
- package/dist/primitives/DropdownMenuSub.js +4 -4
- package/dist/primitives/DropdownMenuSub.js.map +1 -1
- package/dist/primitives/DropdownMenuSubContent.cjs +8 -14
- package/dist/primitives/DropdownMenuSubContent.d.ts +2 -1
- package/dist/primitives/DropdownMenuSubContent.d.ts.map +1 -0
- package/dist/primitives/DropdownMenuSubContent.js +4 -4
- package/dist/primitives/DropdownMenuSubContent.js.map +1 -1
- package/dist/primitives/DropdownMenuSubTrigger.cjs +8 -14
- package/dist/primitives/DropdownMenuSubTrigger.d.ts +2 -1
- package/dist/primitives/DropdownMenuSubTrigger.d.ts.map +1 -0
- package/dist/primitives/DropdownMenuSubTrigger.js +4 -4
- package/dist/primitives/DropdownMenuSubTrigger.js.map +1 -1
- package/dist/primitives/DropdownMenuTrigger.cjs +8 -14
- package/dist/primitives/DropdownMenuTrigger.d.ts +2 -1
- package/dist/primitives/DropdownMenuTrigger.d.ts.map +1 -0
- package/dist/primitives/DropdownMenuTrigger.js +4 -4
- package/dist/primitives/DropdownMenuTrigger.js.map +1 -1
- package/dist/primitives/Input.cjs +8 -14
- package/dist/primitives/Input.d.ts +2 -1
- package/dist/primitives/Input.d.ts.map +1 -0
- package/dist/primitives/Input.js +4 -4
- package/dist/primitives/Input.js.map +1 -1
- package/dist/primitives/Label.cjs +8 -14
- package/dist/primitives/Label.d.ts +2 -1
- package/dist/primitives/Label.d.ts.map +1 -0
- package/dist/primitives/Label.js +4 -4
- package/dist/primitives/Label.js.map +1 -1
- package/dist/primitives/Popover.cjs +8 -14
- package/dist/primitives/Popover.d.ts +2 -1
- package/dist/primitives/Popover.d.ts.map +1 -0
- package/dist/primitives/Popover.js +4 -4
- package/dist/primitives/Popover.js.map +1 -1
- package/dist/primitives/PopoverAnchor.cjs +8 -14
- package/dist/primitives/PopoverAnchor.d.ts +2 -1
- package/dist/primitives/PopoverAnchor.d.ts.map +1 -0
- package/dist/primitives/PopoverAnchor.js +4 -4
- package/dist/primitives/PopoverAnchor.js.map +1 -1
- package/dist/primitives/PopoverClose.cjs +8 -14
- package/dist/primitives/PopoverClose.d.ts +2 -1
- package/dist/primitives/PopoverClose.d.ts.map +1 -0
- package/dist/primitives/PopoverClose.js +4 -4
- package/dist/primitives/PopoverClose.js.map +1 -1
- package/dist/primitives/PopoverContent.cjs +8 -14
- package/dist/primitives/PopoverContent.d.ts +2 -1
- package/dist/primitives/PopoverContent.d.ts.map +1 -0
- package/dist/primitives/PopoverContent.js +4 -4
- package/dist/primitives/PopoverContent.js.map +1 -1
- package/dist/primitives/PopoverTrigger.cjs +8 -14
- package/dist/primitives/PopoverTrigger.d.ts +2 -1
- package/dist/primitives/PopoverTrigger.d.ts.map +1 -0
- package/dist/primitives/PopoverTrigger.js +4 -4
- package/dist/primitives/PopoverTrigger.js.map +1 -1
- package/dist/primitives/Progress.cjs +8 -14
- package/dist/primitives/Progress.d.ts +2 -1
- package/dist/primitives/Progress.d.ts.map +1 -0
- package/dist/primitives/Progress.js +4 -4
- package/dist/primitives/Progress.js.map +1 -1
- package/dist/primitives/ResizableHandle.cjs +8 -14
- package/dist/primitives/ResizableHandle.d.ts +2 -1
- package/dist/primitives/ResizableHandle.d.ts.map +1 -0
- package/dist/primitives/ResizableHandle.js +4 -4
- package/dist/primitives/ResizableHandle.js.map +1 -1
- package/dist/primitives/ResizablePanel.cjs +8 -14
- package/dist/primitives/ResizablePanel.d.ts +2 -1
- package/dist/primitives/ResizablePanel.d.ts.map +1 -0
- package/dist/primitives/ResizablePanel.js +4 -4
- package/dist/primitives/ResizablePanel.js.map +1 -1
- package/dist/primitives/ResizablePanelGroup.cjs +8 -14
- package/dist/primitives/ResizablePanelGroup.d.ts +2 -1
- package/dist/primitives/ResizablePanelGroup.d.ts.map +1 -0
- package/dist/primitives/ResizablePanelGroup.js +4 -4
- package/dist/primitives/ResizablePanelGroup.js.map +1 -1
- package/dist/primitives/ScrollArea.cjs +8 -14
- package/dist/primitives/ScrollArea.d.ts +2 -1
- package/dist/primitives/ScrollArea.d.ts.map +1 -0
- package/dist/primitives/ScrollArea.js +4 -4
- package/dist/primitives/ScrollArea.js.map +1 -1
- package/dist/primitives/ScrollBar.cjs +8 -14
- package/dist/primitives/ScrollBar.d.ts +2 -1
- package/dist/primitives/ScrollBar.d.ts.map +1 -0
- package/dist/primitives/ScrollBar.js +4 -4
- package/dist/primitives/ScrollBar.js.map +1 -1
- package/dist/primitives/Select.cjs +8 -14
- package/dist/primitives/Select.d.ts +2 -1
- package/dist/primitives/Select.d.ts.map +1 -0
- package/dist/primitives/Select.js +4 -4
- package/dist/primitives/Select.js.map +1 -1
- package/dist/primitives/SelectContent.cjs +8 -14
- package/dist/primitives/SelectContent.d.ts +2 -1
- package/dist/primitives/SelectContent.d.ts.map +1 -0
- package/dist/primitives/SelectContent.js +4 -4
- package/dist/primitives/SelectContent.js.map +1 -1
- package/dist/primitives/SelectGroup.cjs +8 -14
- package/dist/primitives/SelectGroup.d.ts +2 -1
- package/dist/primitives/SelectGroup.d.ts.map +1 -0
- package/dist/primitives/SelectGroup.js +4 -4
- package/dist/primitives/SelectGroup.js.map +1 -1
- package/dist/primitives/SelectItem.cjs +8 -14
- package/dist/primitives/SelectItem.d.ts +2 -1
- package/dist/primitives/SelectItem.d.ts.map +1 -0
- package/dist/primitives/SelectItem.js +4 -4
- package/dist/primitives/SelectItem.js.map +1 -1
- package/dist/primitives/SelectLabel.cjs +8 -14
- package/dist/primitives/SelectLabel.d.ts +2 -1
- package/dist/primitives/SelectLabel.d.ts.map +1 -0
- package/dist/primitives/SelectLabel.js +4 -4
- package/dist/primitives/SelectLabel.js.map +1 -1
- package/dist/primitives/SelectScrollDownButton.cjs +8 -14
- package/dist/primitives/SelectScrollDownButton.d.ts +2 -1
- package/dist/primitives/SelectScrollDownButton.d.ts.map +1 -0
- package/dist/primitives/SelectScrollDownButton.js +4 -4
- package/dist/primitives/SelectScrollDownButton.js.map +1 -1
- package/dist/primitives/SelectScrollUpButton.cjs +8 -14
- package/dist/primitives/SelectScrollUpButton.d.ts +2 -1
- package/dist/primitives/SelectScrollUpButton.d.ts.map +1 -0
- package/dist/primitives/SelectScrollUpButton.js +4 -4
- package/dist/primitives/SelectScrollUpButton.js.map +1 -1
- package/dist/primitives/SelectSeparator.cjs +8 -14
- package/dist/primitives/SelectSeparator.d.ts +2 -1
- package/dist/primitives/SelectSeparator.d.ts.map +1 -0
- package/dist/primitives/SelectSeparator.js +4 -4
- package/dist/primitives/SelectSeparator.js.map +1 -1
- package/dist/primitives/SelectTrigger.cjs +8 -14
- package/dist/primitives/SelectTrigger.d.ts +2 -1
- package/dist/primitives/SelectTrigger.d.ts.map +1 -0
- package/dist/primitives/SelectTrigger.js +4 -4
- package/dist/primitives/SelectTrigger.js.map +1 -1
- package/dist/primitives/SelectValue.cjs +8 -14
- package/dist/primitives/SelectValue.d.ts +2 -1
- package/dist/primitives/SelectValue.d.ts.map +1 -0
- package/dist/primitives/SelectValue.js +4 -4
- package/dist/primitives/SelectValue.js.map +1 -1
- package/dist/primitives/Separator.cjs +8 -14
- package/dist/primitives/Separator.d.ts +2 -1
- package/dist/primitives/Separator.d.ts.map +1 -0
- package/dist/primitives/Separator.js +4 -4
- package/dist/primitives/Separator.js.map +1 -1
- package/dist/primitives/Slider.cjs +8 -14
- package/dist/primitives/Slider.d.ts +2 -1
- package/dist/primitives/Slider.d.ts.map +1 -0
- package/dist/primitives/Slider.js +4 -4
- package/dist/primitives/Slider.js.map +1 -1
- package/dist/primitives/Switch.cjs +8 -14
- package/dist/primitives/Switch.d.ts +2 -1
- package/dist/primitives/Switch.d.ts.map +1 -0
- package/dist/primitives/Switch.js +4 -4
- package/dist/primitives/Switch.js.map +1 -1
- package/dist/primitives/Tabs.cjs +8 -14
- package/dist/primitives/Tabs.d.ts +2 -1
- package/dist/primitives/Tabs.d.ts.map +1 -0
- package/dist/primitives/Tabs.js +4 -4
- package/dist/primitives/Tabs.js.map +1 -1
- package/dist/primitives/TabsContent.cjs +8 -14
- package/dist/primitives/TabsContent.d.ts +2 -1
- package/dist/primitives/TabsContent.d.ts.map +1 -0
- package/dist/primitives/TabsContent.js +4 -4
- package/dist/primitives/TabsContent.js.map +1 -1
- package/dist/primitives/TabsList.cjs +8 -14
- package/dist/primitives/TabsList.d.ts +2 -1
- package/dist/primitives/TabsList.d.ts.map +1 -0
- package/dist/primitives/TabsList.js +4 -4
- package/dist/primitives/TabsList.js.map +1 -1
- package/dist/primitives/TabsTrigger.cjs +8 -14
- package/dist/primitives/TabsTrigger.d.ts +2 -1
- package/dist/primitives/TabsTrigger.d.ts.map +1 -0
- package/dist/primitives/TabsTrigger.js +4 -4
- package/dist/primitives/TabsTrigger.js.map +1 -1
- package/dist/primitives/Textarea.cjs +8 -14
- package/dist/primitives/Textarea.d.ts +2 -1
- package/dist/primitives/Textarea.d.ts.map +1 -0
- package/dist/primitives/Textarea.js +4 -4
- package/dist/primitives/Textarea.js.map +1 -1
- package/dist/primitives/Toaster.cjs +8 -14
- package/dist/primitives/Toaster.d.ts +2 -1
- package/dist/primitives/Toaster.d.ts.map +1 -0
- package/dist/primitives/Toaster.js +4 -4
- package/dist/primitives/Toaster.js.map +1 -1
- package/dist/primitives/Tooltip.cjs +8 -14
- package/dist/primitives/Tooltip.d.ts +2 -1
- package/dist/primitives/Tooltip.d.ts.map +1 -0
- package/dist/primitives/Tooltip.js +4 -4
- package/dist/primitives/Tooltip.js.map +1 -1
- package/dist/primitives/TooltipContent.cjs +8 -14
- package/dist/primitives/TooltipContent.d.ts +2 -1
- package/dist/primitives/TooltipContent.d.ts.map +1 -0
- package/dist/primitives/TooltipContent.js +4 -4
- package/dist/primitives/TooltipContent.js.map +1 -1
- package/dist/primitives/TooltipProvider.cjs +8 -14
- package/dist/primitives/TooltipProvider.d.ts +2 -1
- package/dist/primitives/TooltipProvider.d.ts.map +1 -0
- package/dist/primitives/TooltipProvider.js +4 -4
- package/dist/primitives/TooltipProvider.js.map +1 -1
- package/dist/primitives/TooltipTrigger.cjs +8 -14
- package/dist/primitives/TooltipTrigger.d.ts +2 -1
- package/dist/primitives/TooltipTrigger.d.ts.map +1 -0
- package/dist/primitives/TooltipTrigger.js +4 -4
- package/dist/primitives/TooltipTrigger.js.map +1 -1
- package/dist/primitives/badgeVariants.cjs +8 -14
- package/dist/primitives/badgeVariants.d.ts +2 -1
- package/dist/primitives/badgeVariants.d.ts.map +1 -0
- package/dist/primitives/badgeVariants.js +4 -4
- package/dist/primitives/badgeVariants.js.map +1 -1
- package/dist/primitives/bases/data/index.cjs +28 -15
- package/dist/primitives/bases/data/index.d.ts +1 -0
- package/dist/primitives/bases/data/index.d.ts.map +1 -0
- package/dist/primitives/bases/data/index.js +11 -2
- package/dist/primitives/bases/data/index.js.map +1 -1
- package/dist/primitives/buttonVariants.cjs +8 -14
- package/dist/primitives/buttonVariants.d.ts +2 -1
- package/dist/primitives/buttonVariants.d.ts.map +1 -0
- package/dist/primitives/buttonVariants.js +4 -4
- package/dist/primitives/buttonVariants.js.map +1 -1
- package/dist/primitives/index.cjs +20 -370
- package/dist/primitives/index.d.ts +2 -1
- package/dist/primitives/index.d.ts.map +1 -0
- package/dist/primitives/index.js +4 -4
- package/dist/primitives/index.js.map +1 -1
- package/dist/primitives/toast.cjs +8 -14
- package/dist/primitives/toast.d.ts +2 -1
- package/dist/primitives/toast.d.ts.map +1 -0
- package/dist/primitives/toast.js +4 -4
- package/dist/primitives/toast.js.map +1 -1
- package/dist/product/AnimatedLogo.cjs +102 -0
- package/dist/product/AnimatedLogo.d.ts +2 -1
- package/dist/product/AnimatedLogo.d.ts.map +1 -0
- package/dist/product/AnimatedLogo.js +100 -0
- package/dist/product/AnimatedLogo.js.map +1 -0
- package/dist/product/AppHeader.cjs +55 -0
- package/dist/product/AppHeader.d.ts +2 -1
- package/dist/product/AppHeader.d.ts.map +1 -0
- package/dist/product/AppHeader.js +53 -0
- package/dist/product/AppHeader.js.map +1 -0
- package/dist/product/BackendState.cjs +80 -0
- package/dist/product/BackendState.d.ts +1 -0
- package/dist/product/BackendState.d.ts.map +1 -0
- package/dist/product/BackendState.js +76 -0
- package/dist/product/BackendState.js.map +1 -0
- package/dist/product/BrandMark.cjs +19 -0
- package/dist/product/BrandMark.d.ts +1 -0
- package/dist/product/BrandMark.d.ts.map +1 -0
- package/dist/product/BrandMark.js +17 -0
- package/dist/product/BrandMark.js.map +1 -0
- package/dist/product/Charts.cjs +243 -0
- package/dist/product/Charts.d.ts +1 -0
- package/dist/product/Charts.d.ts.map +1 -0
- package/dist/product/Charts.js +235 -0
- package/dist/product/Charts.js.map +1 -0
- package/dist/product/ComboBox.cjs +44 -0
- package/dist/product/ComboBox.d.ts +3 -2
- package/dist/product/ComboBox.d.ts.map +1 -0
- package/dist/product/ComboBox.js +42 -0
- package/dist/product/ComboBox.js.map +1 -0
- package/dist/product/CommerceResource.cjs +39 -0
- package/dist/product/CommerceResource.d.ts +2 -1
- package/dist/product/CommerceResource.d.ts.map +1 -0
- package/dist/product/CommerceResource.js +37 -0
- package/dist/product/CommerceResource.js.map +1 -0
- package/dist/product/ConfirmDelete.cjs +42 -0
- package/dist/product/ConfirmDelete.d.ts +1 -0
- package/dist/product/ConfirmDelete.d.ts.map +1 -0
- package/dist/product/ConfirmDelete.js +40 -0
- package/dist/product/ConfirmDelete.js.map +1 -0
- package/dist/product/DataTable.cjs +58 -0
- package/dist/product/DataTable.d.ts +1 -0
- package/dist/product/DataTable.d.ts.map +1 -0
- package/dist/product/DataTable.js +56 -0
- package/dist/product/DataTable.js.map +1 -0
- package/dist/product/Donut.cjs +25 -0
- package/dist/product/Donut.d.ts +1 -0
- package/dist/product/Donut.d.ts.map +1 -0
- package/dist/product/Donut.js +23 -0
- package/dist/product/Donut.js.map +1 -0
- package/dist/product/EmptyState.cjs +30 -0
- package/dist/product/EmptyState.d.ts +2 -1
- package/dist/product/EmptyState.d.ts.map +1 -0
- package/dist/product/EmptyState.js +28 -0
- package/dist/product/EmptyState.js.map +1 -0
- package/dist/product/FadeIn.cjs +9 -0
- package/dist/product/FadeIn.d.ts +1 -0
- package/dist/product/FadeIn.d.ts.map +1 -0
- package/dist/product/FadeIn.js +7 -0
- package/dist/product/FadeIn.js.map +1 -0
- package/dist/product/Field.cjs +111 -0
- package/dist/product/Field.d.ts +1 -0
- package/dist/product/Field.d.ts.map +1 -0
- package/dist/product/Field.js +104 -0
- package/dist/product/Field.js.map +1 -0
- package/dist/product/Filters.cjs +31 -0
- package/dist/product/Filters.d.ts +1 -0
- package/dist/product/Filters.d.ts.map +1 -0
- package/dist/product/Filters.js +28 -0
- package/dist/product/Filters.js.map +1 -0
- package/dist/product/HanzoMark.cjs +16 -0
- package/dist/product/HanzoMark.d.ts +1 -0
- package/dist/product/HanzoMark.d.ts.map +1 -0
- package/dist/product/HanzoMark.js +14 -0
- package/dist/product/HanzoMark.js.map +1 -0
- package/dist/product/Metric.cjs +96 -0
- package/dist/product/Metric.d.ts +1 -0
- package/dist/product/Metric.d.ts.map +1 -0
- package/dist/product/Metric.js +85 -0
- package/dist/product/Metric.js.map +1 -0
- package/dist/product/OrgMark.cjs +50 -0
- package/dist/product/OrgMark.d.ts +2 -1
- package/dist/product/OrgMark.d.ts.map +1 -0
- package/dist/product/OrgMark.js +47 -0
- package/dist/product/OrgMark.js.map +1 -0
- package/dist/product/OrgSwitcher.cjs +140 -0
- package/dist/product/OrgSwitcher.d.ts +2 -1
- package/dist/product/OrgSwitcher.d.ts.map +1 -0
- package/dist/product/OrgSwitcher.js +138 -0
- package/dist/product/OrgSwitcher.js.map +1 -0
- package/dist/product/PageHeader.cjs +15 -0
- package/dist/product/PageHeader.d.ts +1 -0
- package/dist/product/PageHeader.d.ts.map +1 -0
- package/dist/product/PageHeader.js +13 -0
- package/dist/product/PageHeader.js.map +1 -0
- package/dist/product/PrimaryButton.cjs +31 -0
- package/dist/product/PrimaryButton.d.ts +1 -0
- package/dist/product/PrimaryButton.d.ts.map +1 -0
- package/dist/product/PrimaryButton.js +29 -0
- package/dist/product/PrimaryButton.js.map +1 -0
- package/dist/product/ProductIcon.cjs +36 -0
- package/dist/product/ProductIcon.d.ts +2 -1
- package/dist/product/ProductIcon.d.ts.map +1 -0
- package/dist/product/ProductIcon.js +34 -0
- package/dist/product/ProductIcon.js.map +1 -0
- package/dist/product/ProviderLogo.cjs +84 -0
- package/dist/product/ProviderLogo.d.ts +1 -0
- package/dist/product/ProviderLogo.d.ts.map +1 -0
- package/dist/product/ProviderLogo.js +81 -0
- package/dist/product/ProviderLogo.js.map +1 -0
- package/dist/product/Reorder.cjs +82 -0
- package/dist/product/Reorder.d.ts +1 -0
- package/dist/product/Reorder.d.ts.map +1 -0
- package/dist/product/Reorder.js +78 -0
- package/dist/product/Reorder.js.map +1 -0
- package/dist/product/SelectMenu.cjs +19 -0
- package/dist/product/SelectMenu.d.ts +1 -0
- package/dist/product/SelectMenu.d.ts.map +1 -0
- package/dist/product/SelectMenu.js +17 -0
- package/dist/product/SelectMenu.js.map +1 -0
- package/dist/product/SiteFooter.cjs +17 -0
- package/dist/product/SiteFooter.d.ts +2 -1
- package/dist/product/SiteFooter.d.ts.map +1 -0
- package/dist/product/SiteFooter.js +15 -0
- package/dist/product/SiteFooter.js.map +1 -0
- package/dist/product/SiteNav.cjs +124 -0
- package/dist/product/SiteNav.d.ts +1 -0
- package/dist/product/SiteNav.d.ts.map +1 -0
- package/dist/product/SiteNav.js +122 -0
- package/dist/product/SiteNav.js.map +1 -0
- package/dist/product/SlideOver.cjs +129 -0
- package/dist/product/SlideOver.d.ts +2 -1
- package/dist/product/SlideOver.d.ts.map +1 -0
- package/dist/product/SlideOver.js +126 -0
- package/dist/product/SlideOver.js.map +1 -0
- package/dist/product/StatusTag.cjs +49 -0
- package/dist/product/StatusTag.d.ts +1 -0
- package/dist/product/StatusTag.d.ts.map +1 -0
- package/dist/product/StatusTag.js +47 -0
- package/dist/product/StatusTag.js.map +1 -0
- package/dist/product/ThemeToggle.cjs +120 -0
- package/dist/product/ThemeToggle.d.ts +1 -0
- package/dist/product/ThemeToggle.d.ts.map +1 -0
- package/dist/product/ThemeToggle.js +84 -0
- package/dist/product/ThemeToggle.js.map +1 -0
- package/dist/product/ThemeToggleNext.cjs +20 -0
- package/dist/product/ThemeToggleNext.d.ts +2 -1
- package/dist/product/ThemeToggleNext.d.ts.map +1 -0
- package/dist/product/ThemeToggleNext.js +19 -0
- package/dist/product/ThemeToggleNext.js.map +1 -0
- package/dist/product/Toast.cjs +90 -0
- package/dist/product/Toast.d.ts +1 -0
- package/dist/product/Toast.d.ts.map +1 -0
- package/dist/product/Toast.js +87 -0
- package/dist/product/Toast.js.map +1 -0
- package/dist/product/accent.cjs +97 -0
- package/dist/product/accent.d.ts +1 -0
- package/dist/product/accent.d.ts.map +1 -0
- package/dist/product/accent.js +90 -0
- package/dist/product/accent.js.map +1 -0
- package/dist/product/animatedLogo.logic.cjs +52 -0
- package/dist/product/animatedLogo.logic.d.ts +1 -0
- package/dist/product/animatedLogo.logic.d.ts.map +1 -0
- package/dist/product/animatedLogo.logic.js +47 -0
- package/dist/product/animatedLogo.logic.js.map +1 -0
- package/dist/product/brand.cjs +91 -0
- package/dist/product/brand.d.ts +1 -0
- package/dist/product/brand.d.ts.map +1 -0
- package/dist/product/brand.js +88 -0
- package/dist/product/brand.js.map +1 -0
- package/dist/product/color.cjs +6 -0
- package/dist/product/color.d.ts +1 -0
- package/dist/product/color.d.ts.map +1 -0
- package/dist/product/color.js +3 -0
- package/dist/product/color.js.map +1 -0
- package/dist/product/combobox/filter.cjs +31 -0
- package/dist/product/combobox/filter.d.ts +1 -0
- package/dist/product/combobox/filter.d.ts.map +1 -0
- package/dist/product/combobox/filter.js +28 -0
- package/dist/product/combobox/filter.js.map +1 -0
- package/dist/product/host.cjs +20 -0
- package/dist/product/host.d.ts +1 -0
- package/dist/product/host.d.ts.map +1 -0
- package/dist/product/host.js +16 -0
- package/dist/product/host.js.map +1 -0
- package/dist/product/index.cjs +120 -2490
- package/dist/product/index.d.ts +42 -41
- package/dist/product/index.d.ts.map +1 -0
- package/dist/product/index.js +88 -2168
- package/dist/product/index.js.map +1 -1
- package/dist/product/instrument.cjs +79 -0
- package/dist/product/instrument.d.ts +1 -0
- package/dist/product/instrument.d.ts.map +1 -0
- package/dist/product/instrument.js +72 -0
- package/dist/product/instrument.js.map +1 -0
- package/dist/product/menu/ContextMenu.cjs +26 -0
- package/dist/product/menu/ContextMenu.d.ts +2 -1
- package/dist/product/menu/ContextMenu.d.ts.map +1 -0
- package/dist/product/menu/ContextMenu.js +24 -0
- package/dist/product/menu/ContextMenu.js.map +1 -0
- package/dist/product/menu/FloatingMenu.cjs +87 -0
- package/dist/product/menu/FloatingMenu.d.ts +1 -0
- package/dist/product/menu/FloatingMenu.d.ts.map +1 -0
- package/dist/product/menu/FloatingMenu.js +85 -0
- package/dist/product/menu/FloatingMenu.js.map +1 -0
- package/dist/product/menu/index.cjs +30 -0
- package/dist/product/menu/index.d.ts +6 -5
- package/dist/product/menu/index.d.ts.map +1 -0
- package/dist/product/menu/index.js +19 -0
- package/dist/product/menu/index.js.map +1 -0
- package/dist/product/menu/items.cjs +92 -0
- package/dist/product/menu/items.d.ts +2 -1
- package/dist/product/menu/items.d.ts.map +1 -0
- package/dist/product/menu/items.js +85 -0
- package/dist/product/menu/items.js.map +1 -0
- package/dist/product/menu/portal-theme.cjs +13 -0
- package/dist/product/menu/portal-theme.d.ts +1 -0
- package/dist/product/menu/portal-theme.d.ts.map +1 -0
- package/dist/product/menu/portal-theme.js +12 -0
- package/dist/product/menu/portal-theme.js.map +1 -0
- package/dist/product/menu/roving.cjs +31 -0
- package/dist/product/menu/roving.d.ts +1 -0
- package/dist/product/menu/roving.d.ts.map +1 -0
- package/dist/product/menu/roving.js +29 -0
- package/dist/product/menu/roving.js.map +1 -0
- package/dist/product/scope.cjs +102 -0
- package/dist/product/scope.d.ts +1 -0
- package/dist/product/scope.d.ts.map +1 -0
- package/dist/product/scope.js +99 -0
- package/dist/product/scope.js.map +1 -0
- package/dist/product/social/CampaignCard.cjs +17 -0
- package/dist/product/social/CampaignCard.d.ts +1 -0
- package/dist/product/social/CampaignCard.d.ts.map +1 -0
- package/dist/product/social/CampaignCard.js +15 -0
- package/dist/product/social/CampaignCard.js.map +1 -0
- package/dist/product/social/ChannelBadge.cjs +24 -0
- package/dist/product/social/ChannelBadge.d.ts +2 -1
- package/dist/product/social/ChannelBadge.d.ts.map +1 -0
- package/dist/product/social/ChannelBadge.js +22 -0
- package/dist/product/social/ChannelBadge.js.map +1 -0
- package/dist/product/social/PostAgenda.cjs +40 -0
- package/dist/product/social/PostAgenda.d.ts +2 -1
- package/dist/product/social/PostAgenda.d.ts.map +1 -0
- package/dist/product/social/PostAgenda.js +38 -0
- package/dist/product/social/PostAgenda.js.map +1 -0
- package/dist/product/social/PostCard.cjs +19 -0
- package/dist/product/social/PostCard.d.ts +2 -1
- package/dist/product/social/PostCard.d.ts.map +1 -0
- package/dist/product/social/PostCard.js +17 -0
- package/dist/product/social/PostCard.js.map +1 -0
- package/dist/product/social/PostComposer.cjs +64 -0
- package/dist/product/social/PostComposer.d.ts +2 -1
- package/dist/product/social/PostComposer.d.ts.map +1 -0
- package/dist/product/social/PostComposer.js +61 -0
- package/dist/product/social/PostComposer.js.map +1 -0
- package/dist/product/social/ProviderReadinessList.cjs +16 -0
- package/dist/product/social/ProviderReadinessList.d.ts +2 -1
- package/dist/product/social/ProviderReadinessList.d.ts.map +1 -0
- package/dist/product/social/ProviderReadinessList.js +14 -0
- package/dist/product/social/ProviderReadinessList.js.map +1 -0
- package/dist/product/social/SocialResource.cjs +147 -0
- package/dist/product/social/SocialResource.d.ts +2 -1
- package/dist/product/social/SocialResource.d.ts.map +1 -0
- package/dist/product/social/SocialResource.js +145 -0
- package/dist/product/social/SocialResource.js.map +1 -0
- package/dist/product/social/SocialSummaryBar.cjs +20 -0
- package/dist/product/social/SocialSummaryBar.d.ts +2 -1
- package/dist/product/social/SocialSummaryBar.d.ts.map +1 -0
- package/dist/product/social/SocialSummaryBar.js +18 -0
- package/dist/product/social/SocialSummaryBar.js.map +1 -0
- package/dist/product/social/ViewToggle.cjs +23 -0
- package/dist/product/social/ViewToggle.d.ts +1 -0
- package/dist/product/social/ViewToggle.d.ts.map +1 -0
- package/dist/product/social/ViewToggle.js +21 -0
- package/dist/product/social/ViewToggle.js.map +1 -0
- package/dist/product/social/api.cjs +137 -53
- package/dist/product/social/api.d.ts +1 -0
- package/dist/product/social/api.d.ts.map +1 -0
- package/dist/product/social/api.js +126 -3
- package/dist/product/social/api.js.map +1 -1
- package/dist/product/social/format.cjs +39 -0
- package/dist/product/social/format.d.ts +1 -0
- package/dist/product/social/format.d.ts.map +1 -0
- package/dist/product/social/format.js +34 -0
- package/dist/product/social/format.js.map +1 -0
- package/dist/product/social/index.cjs +38 -112
- package/dist/product/social/index.d.ts +12 -11
- package/dist/product/social/index.d.ts.map +1 -0
- package/dist/product/social/index.js +22 -6
- package/dist/product/social/index.js.map +1 -1
- package/dist/product/surfaces.data.cjs +25 -0
- package/dist/product/surfaces.data.d.ts +1 -0
- package/dist/product/surfaces.data.d.ts.map +1 -0
- package/dist/product/surfaces.data.js +22 -0
- package/dist/product/surfaces.data.js.map +1 -0
- package/dist/telemetry.cjs +31 -15
- package/dist/telemetry.d.ts +1 -0
- package/dist/telemetry.d.ts.map +1 -0
- package/dist/telemetry.js +14 -2
- package/dist/telemetry.js.map +1 -1
- package/dist/theme.css +70 -45
- package/dist/usage.cjs +24 -15
- package/dist/usage.d.ts +1 -0
- package/dist/usage.d.ts.map +1 -0
- package/dist/usage.js +7 -2
- package/dist/usage.js.map +1 -1
- package/package.json +16 -13
- package/dist/ThemeToggleNext-AEDLHX5X.js +0 -5
- package/dist/ThemeToggleNext-AEDLHX5X.js.map +0 -1
- package/dist/ThemeToggleNext-N6ASYJ6J.cjs +0 -20
- package/dist/ThemeToggleNext-N6ASYJ6J.cjs.map +0 -1
- package/dist/canvas.cjs.map +0 -1
- package/dist/chunk-2U3MNE4I.js +0 -4
- package/dist/chunk-2U3MNE4I.js.map +0 -1
- package/dist/chunk-3NG33DV2.cjs +0 -607
- package/dist/chunk-3NG33DV2.cjs.map +0 -1
- package/dist/chunk-6DDY6XZI.js +0 -53
- package/dist/chunk-6DDY6XZI.js.map +0 -1
- package/dist/chunk-6KZWRBK2.cjs +0 -1498
- package/dist/chunk-6KZWRBK2.cjs.map +0 -1
- package/dist/chunk-77AMCLN4.js +0 -100
- package/dist/chunk-77AMCLN4.js.map +0 -1
- package/dist/chunk-7XDEUEWI.cjs +0 -44
- package/dist/chunk-7XDEUEWI.cjs.map +0 -1
- package/dist/chunk-7ZNK6JSS.js +0 -831
- package/dist/chunk-7ZNK6JSS.js.map +0 -1
- package/dist/chunk-ARV3P4CE.cjs +0 -105
- package/dist/chunk-ARV3P4CE.cjs.map +0 -1
- package/dist/chunk-DC52DQ27.cjs +0 -303
- package/dist/chunk-DC52DQ27.cjs.map +0 -1
- package/dist/chunk-FVQXROBK.js +0 -37
- package/dist/chunk-FVQXROBK.js.map +0 -1
- package/dist/chunk-GVCOAJLO.js +0 -397
- package/dist/chunk-GVCOAJLO.js.map +0 -1
- package/dist/chunk-MWBFAV3D.cjs +0 -105
- package/dist/chunk-MWBFAV3D.cjs.map +0 -1
- package/dist/chunk-NQUA5YRQ.cjs +0 -55
- package/dist/chunk-NQUA5YRQ.cjs.map +0 -1
- package/dist/chunk-ONVERVFG.cjs +0 -851
- package/dist/chunk-ONVERVFG.cjs.map +0 -1
- package/dist/chunk-P2QU5MN5.js +0 -555
- package/dist/chunk-P2QU5MN5.js.map +0 -1
- package/dist/chunk-PI3GSHLU.js +0 -263
- package/dist/chunk-PI3GSHLU.js.map +0 -1
- package/dist/chunk-QHC2ZNAF.js +0 -11
- package/dist/chunk-QHC2ZNAF.js.map +0 -1
- package/dist/chunk-QV52JQHR.cjs +0 -77
- package/dist/chunk-QV52JQHR.cjs.map +0 -1
- package/dist/chunk-RBS5AYO4.cjs +0 -13
- package/dist/chunk-RBS5AYO4.cjs.map +0 -1
- package/dist/chunk-RCMDRI6V.js +0 -1401
- package/dist/chunk-RCMDRI6V.js.map +0 -1
- package/dist/chunk-WHJR5S4L.cjs +0 -418
- package/dist/chunk-WHJR5S4L.cjs.map +0 -1
- package/dist/chunk-ZGTJCJ55.js +0 -93
- package/dist/chunk-ZGTJCJ55.js.map +0 -1
- package/dist/components.d.ts +0 -1
- package/dist/core/index.cjs.map +0 -1
- package/dist/core/tokens.cjs.map +0 -1
- package/dist/dashboard.cjs.map +0 -1
- package/dist/data.cjs.map +0 -1
- package/dist/framework/core.cjs.map +0 -1
- package/dist/framework/index.cjs.map +0 -1
- package/dist/gitops.cjs.map +0 -1
- package/dist/gui-config.cjs.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/models/index.cjs.map +0 -1
- package/dist/oss.cjs.map +0 -1
- package/dist/primitives/AspectRatio.cjs.map +0 -1
- package/dist/primitives/Avatar.cjs.map +0 -1
- package/dist/primitives/AvatarFallback.cjs.map +0 -1
- package/dist/primitives/AvatarImage.cjs.map +0 -1
- package/dist/primitives/Badge.cjs.map +0 -1
- package/dist/primitives/Button.cjs.map +0 -1
- package/dist/primitives/Card.cjs.map +0 -1
- package/dist/primitives/CardAction.cjs.map +0 -1
- package/dist/primitives/CardContent.cjs.map +0 -1
- package/dist/primitives/CardDescription.cjs.map +0 -1
- package/dist/primitives/CardFooter.cjs.map +0 -1
- package/dist/primitives/CardHeader.cjs.map +0 -1
- package/dist/primitives/CardTitle.cjs.map +0 -1
- package/dist/primitives/Checkbox.cjs.map +0 -1
- package/dist/primitives/Collapsible.cjs.map +0 -1
- package/dist/primitives/CollapsibleContent.cjs.map +0 -1
- package/dist/primitives/CollapsibleTrigger.cjs.map +0 -1
- package/dist/primitives/Command.cjs.map +0 -1
- package/dist/primitives/CommandDialog.cjs.map +0 -1
- package/dist/primitives/CommandEmpty.cjs.map +0 -1
- package/dist/primitives/CommandGroup.cjs.map +0 -1
- package/dist/primitives/CommandInput.cjs.map +0 -1
- package/dist/primitives/CommandItem.cjs.map +0 -1
- package/dist/primitives/CommandList.cjs.map +0 -1
- package/dist/primitives/CommandSeparator.cjs.map +0 -1
- package/dist/primitives/CommandShortcut.cjs.map +0 -1
- package/dist/primitives/Dialog.cjs.map +0 -1
- package/dist/primitives/DialogClose.cjs.map +0 -1
- package/dist/primitives/DialogContent.cjs.map +0 -1
- package/dist/primitives/DialogDescription.cjs.map +0 -1
- package/dist/primitives/DialogFooter.cjs.map +0 -1
- package/dist/primitives/DialogHeader.cjs.map +0 -1
- package/dist/primitives/DialogOverlay.cjs.map +0 -1
- package/dist/primitives/DialogPortal.cjs.map +0 -1
- package/dist/primitives/DialogTitle.cjs.map +0 -1
- package/dist/primitives/DialogTrigger.cjs.map +0 -1
- package/dist/primitives/DropdownMenu.cjs.map +0 -1
- package/dist/primitives/DropdownMenuCheckboxItem.cjs.map +0 -1
- package/dist/primitives/DropdownMenuContent.cjs.map +0 -1
- package/dist/primitives/DropdownMenuGroup.cjs.map +0 -1
- package/dist/primitives/DropdownMenuItem.cjs.map +0 -1
- package/dist/primitives/DropdownMenuLabel.cjs.map +0 -1
- package/dist/primitives/DropdownMenuPortal.cjs.map +0 -1
- package/dist/primitives/DropdownMenuRadioGroup.cjs.map +0 -1
- package/dist/primitives/DropdownMenuRadioItem.cjs.map +0 -1
- package/dist/primitives/DropdownMenuSeparator.cjs.map +0 -1
- package/dist/primitives/DropdownMenuShortcut.cjs.map +0 -1
- package/dist/primitives/DropdownMenuSub.cjs.map +0 -1
- package/dist/primitives/DropdownMenuSubContent.cjs.map +0 -1
- package/dist/primitives/DropdownMenuSubTrigger.cjs.map +0 -1
- package/dist/primitives/DropdownMenuTrigger.cjs.map +0 -1
- package/dist/primitives/Input.cjs.map +0 -1
- package/dist/primitives/Label.cjs.map +0 -1
- package/dist/primitives/Popover.cjs.map +0 -1
- package/dist/primitives/PopoverAnchor.cjs.map +0 -1
- package/dist/primitives/PopoverClose.cjs.map +0 -1
- package/dist/primitives/PopoverContent.cjs.map +0 -1
- package/dist/primitives/PopoverTrigger.cjs.map +0 -1
- package/dist/primitives/Progress.cjs.map +0 -1
- package/dist/primitives/ResizableHandle.cjs.map +0 -1
- package/dist/primitives/ResizablePanel.cjs.map +0 -1
- package/dist/primitives/ResizablePanelGroup.cjs.map +0 -1
- package/dist/primitives/ScrollArea.cjs.map +0 -1
- package/dist/primitives/ScrollBar.cjs.map +0 -1
- package/dist/primitives/Select.cjs.map +0 -1
- package/dist/primitives/SelectContent.cjs.map +0 -1
- package/dist/primitives/SelectGroup.cjs.map +0 -1
- package/dist/primitives/SelectItem.cjs.map +0 -1
- package/dist/primitives/SelectLabel.cjs.map +0 -1
- package/dist/primitives/SelectScrollDownButton.cjs.map +0 -1
- package/dist/primitives/SelectScrollUpButton.cjs.map +0 -1
- package/dist/primitives/SelectSeparator.cjs.map +0 -1
- package/dist/primitives/SelectTrigger.cjs.map +0 -1
- package/dist/primitives/SelectValue.cjs.map +0 -1
- package/dist/primitives/Separator.cjs.map +0 -1
- package/dist/primitives/Slider.cjs.map +0 -1
- package/dist/primitives/Switch.cjs.map +0 -1
- package/dist/primitives/Tabs.cjs.map +0 -1
- package/dist/primitives/TabsContent.cjs.map +0 -1
- package/dist/primitives/TabsList.cjs.map +0 -1
- package/dist/primitives/TabsTrigger.cjs.map +0 -1
- package/dist/primitives/Textarea.cjs.map +0 -1
- package/dist/primitives/Toaster.cjs.map +0 -1
- package/dist/primitives/Tooltip.cjs.map +0 -1
- package/dist/primitives/TooltipContent.cjs.map +0 -1
- package/dist/primitives/TooltipProvider.cjs.map +0 -1
- package/dist/primitives/TooltipTrigger.cjs.map +0 -1
- package/dist/primitives/badgeVariants.cjs.map +0 -1
- package/dist/primitives/bases/data/index.cjs.map +0 -1
- package/dist/primitives/buttonVariants.cjs.map +0 -1
- package/dist/primitives/index.cjs.map +0 -1
- package/dist/primitives/toast.cjs.map +0 -1
- package/dist/product/index.cjs.map +0 -1
- package/dist/product/social/api.cjs.map +0 -1
- package/dist/product/social/index.cjs.map +0 -1
- package/dist/telemetry.cjs.map +0 -1
- package/dist/usage.cjs.map +0 -1
package/dist/framework/index.cjs
CHANGED
|
@@ -1,1341 +1,58 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
function
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
function ErrorBar({ message }) {
|
|
60
|
-
return /* @__PURE__ */ jsxRuntime.jsx(gui.Card, { borderWidth: 1, borderColor: "$red7", bg: "$red2", p: "$3", maxW: 620, children: /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { gap: "$2", items: "flex-start", children: [
|
|
61
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.TriangleAlert, { size: 15 }),
|
|
62
|
-
/* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$3", color: "$red11", flex: 1, children: message })
|
|
63
|
-
] }) });
|
|
64
|
-
}
|
|
65
|
-
function Loading({ label, size = "small" }) {
|
|
66
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { items: "center", justify: "center", gap: "$3", py: "$8", children: [
|
|
67
|
-
/* @__PURE__ */ jsxRuntime.jsx(gui.Spinner, { size }),
|
|
68
|
-
label ? /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$3", color: "$color11", children: label }) : null
|
|
69
|
-
] });
|
|
70
|
-
}
|
|
71
|
-
function Meta({ children }) {
|
|
72
|
-
return /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$2", color: "$color10", numberOfLines: 1, children });
|
|
73
|
-
}
|
|
74
|
-
var WRAP_ANYWHERE = { overflowWrap: "anywhere", wordBreak: "break-word" };
|
|
75
|
-
function Panel({ children, phone }) {
|
|
76
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
77
|
-
gui.Card,
|
|
78
|
-
{
|
|
79
|
-
borderWidth: 1,
|
|
80
|
-
borderColor: "$borderColor",
|
|
81
|
-
p: phone ? "$3" : "$4",
|
|
82
|
-
maxW: 760,
|
|
83
|
-
width: "100%",
|
|
84
|
-
style: WRAP_ANYWHERE,
|
|
85
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(gui.YStack, { gap: "$3", children })
|
|
86
|
-
}
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
var TYPE_OPTIONS = chunk3NG33DV2_cjs.BUILDER_FIELD_TYPES.map((t) => ({ key: t.type, label: t.label }));
|
|
90
|
-
function CollectionBuilder({ client, module, existing, onSaved, onCancel }) {
|
|
91
|
-
const editing = Boolean(existing);
|
|
92
|
-
const [name, setName] = react.useState(existing?.name ?? "");
|
|
93
|
-
const [fields, setFields] = react.useState(
|
|
94
|
-
() => existing ? chunk3NG33DV2_cjs.fieldsFromDocType(existing) : chunk3NG33DV2_cjs.starterFields()
|
|
95
|
-
);
|
|
96
|
-
const [busy, setBusy] = react.useState(false);
|
|
97
|
-
const [saveError, setSaveError] = react.useState(null);
|
|
98
|
-
const [showErrors, setShowErrors] = react.useState(false);
|
|
99
|
-
const { phone, onLayout } = useContainerLayout();
|
|
100
|
-
const validation = react.useMemo(() => chunk3NG33DV2_cjs.validateBuilder(name, fields), [name, fields]);
|
|
101
|
-
const patch = react.useCallback((key, next) => {
|
|
102
|
-
setFields((fs) => fs.map((f) => f.key === key ? { ...f, ...next } : f));
|
|
103
|
-
}, []);
|
|
104
|
-
const addField = react.useCallback(() => setFields((fs) => [...fs, chunk3NG33DV2_cjs.blankField()]), []);
|
|
105
|
-
const removeField = react.useCallback((key) => setFields((fs) => fs.filter((f) => f.key !== key)), []);
|
|
106
|
-
const move = react.useCallback((key, dir) => setFields((fs) => chunk3NG33DV2_cjs.moveField(fs, key, dir)), []);
|
|
107
|
-
const save = react.useCallback(async () => {
|
|
108
|
-
setShowErrors(true);
|
|
109
|
-
if (!validation.ok) return;
|
|
110
|
-
setBusy(true);
|
|
111
|
-
setSaveError(null);
|
|
112
|
-
try {
|
|
113
|
-
const dt = chunk3NG33DV2_cjs.toDocType(name, module, fields);
|
|
114
|
-
if (editing) await client.doctypes.update(name, dt);
|
|
115
|
-
else await client.doctypes.create(dt);
|
|
116
|
-
onSaved(name);
|
|
117
|
-
} catch (e) {
|
|
118
|
-
setSaveError(chunkWHJR5S4L_cjs.classifyBackend(e).message);
|
|
119
|
-
} finally {
|
|
120
|
-
setBusy(false);
|
|
121
|
-
}
|
|
122
|
-
}, [client, editing, fields, module, name, onSaved, validation.ok]);
|
|
123
|
-
const iconBtn = (icon, label, onPress, disabled, danger) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
124
|
-
gui.Button,
|
|
125
|
-
{
|
|
126
|
-
size: phone ? "$3" : "$1",
|
|
127
|
-
circular: true,
|
|
128
|
-
minW: phone ? TAP : void 0,
|
|
129
|
-
minH: phone ? TAP : void 0,
|
|
130
|
-
"aria-label": label,
|
|
131
|
-
icon,
|
|
132
|
-
disabled,
|
|
133
|
-
onPress,
|
|
134
|
-
...danger ? { theme: "red" } : {}
|
|
135
|
-
}
|
|
136
|
-
);
|
|
137
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(gui.Card, { onLayout, borderWidth: 1, borderColor: "$borderColor", p: phone ? "$3" : "$4", gap: "$4", maxW: 820, width: "100%", children: [
|
|
138
|
-
/* @__PURE__ */ jsxRuntime.jsxs(gui.YStack, { gap: "$2", children: [
|
|
139
|
-
/* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$5", fontWeight: "800", children: editing ? `Edit ${name}` : "New collection" }),
|
|
140
|
-
/* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$2", color: "$color10", children: "A content type on the Hanzo Framework \u2014 name it and define its fields. Every field type is available; a rich-text field gives a full WYSIWYG body." })
|
|
141
|
-
] }),
|
|
142
|
-
/* @__PURE__ */ jsxRuntime.jsxs(gui.YStack, { gap: "$1.5", width: "100%", children: [
|
|
143
|
-
/* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$1", color: "$color11", textTransform: "uppercase", letterSpacing: 0.4, children: "Collection" }),
|
|
144
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
145
|
-
gui.Input,
|
|
146
|
-
{
|
|
147
|
-
width: "100%",
|
|
148
|
-
minH: phone ? TAP : void 0,
|
|
149
|
-
size: phone ? "$4" : "$3",
|
|
150
|
-
placeholder: "e.g. Recipe or LandingPage",
|
|
151
|
-
value: name,
|
|
152
|
-
onChangeText: setName,
|
|
153
|
-
disabled: busy || editing,
|
|
154
|
-
autoCapitalize: "none"
|
|
155
|
-
}
|
|
156
|
-
),
|
|
157
|
-
editing ? /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$1", color: "$color9", children: "A collection\u2019s name is its identity and can\u2019t change." }) : null
|
|
158
|
-
] }),
|
|
159
|
-
/* @__PURE__ */ jsxRuntime.jsxs(gui.YStack, { gap: "$2", width: "100%", children: [
|
|
160
|
-
/* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { items: "center", justify: "space-between", children: [
|
|
161
|
-
/* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$3", fontWeight: "700", color: "$color11", children: "Fields" }),
|
|
162
|
-
/* @__PURE__ */ jsxRuntime.jsxs(gui.Text, { fontSize: "$1", color: "$color9", children: [
|
|
163
|
-
fields.length,
|
|
164
|
-
" field",
|
|
165
|
-
fields.length === 1 ? "" : "s"
|
|
166
|
-
] })
|
|
167
|
-
] }),
|
|
168
|
-
/* @__PURE__ */ jsxRuntime.jsx(gui.YStack, { gap: "$2", width: "100%", children: fields.map((f, i) => {
|
|
169
|
-
const err = showErrors ? validation.fieldErrors[f.key] : void 0;
|
|
170
|
-
const fname = f.label.trim() ? chunk3NG33DV2_cjs.fieldNameFromLabel(f.label) : "";
|
|
171
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
172
|
-
gui.YStack,
|
|
173
|
-
{
|
|
174
|
-
borderWidth: 1,
|
|
175
|
-
borderColor: err ? "$red7" : "$borderColor",
|
|
176
|
-
rounded: "$4",
|
|
177
|
-
p: "$3",
|
|
178
|
-
gap: "$2",
|
|
179
|
-
bg: "$color1",
|
|
180
|
-
width: "100%",
|
|
181
|
-
children: [
|
|
182
|
-
/* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { gap: "$2", items: "center", width: "100%", children: [
|
|
183
|
-
phone ? null : /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.GripVertical, { size: 15, opacity: 0.5 }),
|
|
184
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
185
|
-
gui.Input,
|
|
186
|
-
{
|
|
187
|
-
flex: 1,
|
|
188
|
-
minW: 0,
|
|
189
|
-
minH: phone ? TAP : void 0,
|
|
190
|
-
size: phone ? "$4" : "$3",
|
|
191
|
-
placeholder: "Field name (e.g. Title)",
|
|
192
|
-
value: f.label,
|
|
193
|
-
onChangeText: (v) => patch(f.key, { label: v }),
|
|
194
|
-
disabled: busy,
|
|
195
|
-
autoCapitalize: "none"
|
|
196
|
-
}
|
|
197
|
-
),
|
|
198
|
-
phone ? null : /* @__PURE__ */ jsxRuntime.jsx(gui.YStack, { minW: 150, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
199
|
-
chunkNQUA5YRQ_cjs.SelectMenu,
|
|
200
|
-
{
|
|
201
|
-
required: true,
|
|
202
|
-
ariaLabel: "Field type",
|
|
203
|
-
options: TYPE_OPTIONS,
|
|
204
|
-
value: f.type,
|
|
205
|
-
onChange: (v) => v && patch(f.key, { type: v }),
|
|
206
|
-
disabled: busy,
|
|
207
|
-
minWidth: 150
|
|
208
|
-
}
|
|
209
|
-
) })
|
|
210
|
-
] }),
|
|
211
|
-
phone ? /* @__PURE__ */ jsxRuntime.jsx(gui.YStack, { width: "100%", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
212
|
-
chunkNQUA5YRQ_cjs.SelectMenu,
|
|
213
|
-
{
|
|
214
|
-
required: true,
|
|
215
|
-
ariaLabel: "Field type",
|
|
216
|
-
options: TYPE_OPTIONS,
|
|
217
|
-
value: f.type,
|
|
218
|
-
onChange: (v) => v && patch(f.key, { type: v }),
|
|
219
|
-
disabled: busy,
|
|
220
|
-
minWidth: 0,
|
|
221
|
-
minHeight: TAP
|
|
222
|
-
}
|
|
223
|
-
) }) : null,
|
|
224
|
-
/* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { gap: "$4", items: "center", justify: "space-between", flexWrap: "wrap", width: "100%", children: [
|
|
225
|
-
/* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { gap: "$4", items: "center", children: [
|
|
226
|
-
/* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { gap: "$2", items: "center", minH: phone ? TAP : void 0, children: [
|
|
227
|
-
/* @__PURE__ */ jsxRuntime.jsx(chunkWHJR5S4L_cjs.FieldSwitch, { checked: f.required, onChange: (v) => patch(f.key, { required: v }), disabled: busy }),
|
|
228
|
-
/* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$2", color: "$color10", children: "Required" })
|
|
229
|
-
] }),
|
|
230
|
-
/* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { gap: "$2", items: "center", minH: phone ? TAP : void 0, children: [
|
|
231
|
-
/* @__PURE__ */ jsxRuntime.jsx(chunkWHJR5S4L_cjs.FieldSwitch, { checked: f.inListView, onChange: (v) => patch(f.key, { inListView: v }), disabled: busy }),
|
|
232
|
-
/* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$2", color: "$color10", children: "In list" })
|
|
233
|
-
] })
|
|
234
|
-
] }),
|
|
235
|
-
/* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { gap: "$2", children: [
|
|
236
|
-
iconBtn(/* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.ArrowUp, { size: 14 }), "Move field up", () => move(f.key, -1), busy || i === 0),
|
|
237
|
-
iconBtn(/* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.ArrowDown, { size: 14 }), "Move field down", () => move(f.key, 1), busy || i === fields.length - 1),
|
|
238
|
-
iconBtn(/* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.Trash2, { size: 14 }), "Remove field", () => removeField(f.key), busy, true)
|
|
239
|
-
] })
|
|
240
|
-
] }),
|
|
241
|
-
chunk3NG33DV2_cjs.fieldNeedsOptions(f.type) ? /* @__PURE__ */ jsxRuntime.jsxs(gui.YStack, { gap: "$1.5", width: "100%", children: [
|
|
242
|
-
/* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$1", color: "$color10", textTransform: "uppercase", letterSpacing: 0.4, children: f.type === "Select" ? "Options" : f.type === "Link" ? "Relates to" : "Child type" }),
|
|
243
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
244
|
-
gui.Input,
|
|
245
|
-
{
|
|
246
|
-
width: "100%",
|
|
247
|
-
minH: phone ? TAP : void 0,
|
|
248
|
-
size: phone ? "$4" : "$2",
|
|
249
|
-
placeholder: f.type === "Select" ? "One per line \u2014 Draft / Published" : "Collection name (e.g. Author)",
|
|
250
|
-
value: f.options,
|
|
251
|
-
onChangeText: (v) => patch(f.key, { options: v }),
|
|
252
|
-
multiline: f.type === "Select",
|
|
253
|
-
numberOfLines: f.type === "Select" ? 3 : 1,
|
|
254
|
-
disabled: busy,
|
|
255
|
-
autoCapitalize: "none"
|
|
256
|
-
}
|
|
257
|
-
)
|
|
258
|
-
] }) : null,
|
|
259
|
-
/* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { items: "center", justify: "space-between", gap: "$2", flexWrap: "wrap", children: [
|
|
260
|
-
fname ? /* @__PURE__ */ jsxRuntime.jsxs(gui.Text, { fontSize: "$1", color: "$color8", children: [
|
|
261
|
-
"field: ",
|
|
262
|
-
fname
|
|
263
|
-
] }) : /* @__PURE__ */ jsxRuntime.jsx(gui.YStack, {}),
|
|
264
|
-
err ? /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { gap: "$1", items: "center", children: [
|
|
265
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.TriangleAlert, { size: 12 }),
|
|
266
|
-
/* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$1", color: "$red11", children: err })
|
|
267
|
-
] }) : null
|
|
268
|
-
] })
|
|
269
|
-
]
|
|
270
|
-
},
|
|
271
|
-
f.key
|
|
272
|
-
);
|
|
273
|
-
}) }),
|
|
274
|
-
/* @__PURE__ */ jsxRuntime.jsx(gui.XStack, { width: phone ? "100%" : void 0, children: /* @__PURE__ */ jsxRuntime.jsx(Action, { phone, icon: /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.Plus, { size: 14 }), onPress: addField, disabled: busy, children: "Add field" }) })
|
|
275
|
-
] }),
|
|
276
|
-
showErrors && validation.formError ? /* @__PURE__ */ jsxRuntime.jsx(ErrorBar, { message: validation.formError }) : null,
|
|
277
|
-
saveError ? /* @__PURE__ */ jsxRuntime.jsx(ErrorBar, { message: saveError }) : null,
|
|
278
|
-
/* @__PURE__ */ jsxRuntime.jsxs(Actions, { phone, children: [
|
|
279
|
-
/* @__PURE__ */ jsxRuntime.jsx(Action, { phone, disabled: busy, onPress: onCancel, children: "Cancel" }),
|
|
280
|
-
/* @__PURE__ */ jsxRuntime.jsx(Action, { phone, primary: true, disabled: busy, onPress: save, children: busy ? "Saving\u2026" : editing ? "Save collection" : "Create collection" })
|
|
281
|
-
] })
|
|
282
|
-
] });
|
|
283
|
-
}
|
|
284
|
-
function CollectionsBrowser({
|
|
285
|
-
client,
|
|
286
|
-
module,
|
|
287
|
-
label,
|
|
288
|
-
subtitle,
|
|
289
|
-
onOpen,
|
|
290
|
-
setupDescription,
|
|
291
|
-
setupBullets,
|
|
292
|
-
renderBuilder,
|
|
293
|
-
icon = lucideIcons2.Boxes
|
|
294
|
-
}) {
|
|
295
|
-
const [state, setState] = react.useState({ phase: "loading" });
|
|
296
|
-
const [busy, setBusy] = react.useState(false);
|
|
297
|
-
const [creating, setCreating] = react.useState(false);
|
|
298
|
-
const [actionError, setActionError] = react.useState(null);
|
|
299
|
-
const { phone, onLayout } = useContainerLayout();
|
|
300
|
-
const load = react.useCallback(
|
|
301
|
-
async (signal) => {
|
|
302
|
-
setState({ phase: "loading" });
|
|
303
|
-
try {
|
|
304
|
-
const [dts, mod] = await Promise.all([
|
|
305
|
-
client.doctypes.list(),
|
|
306
|
-
client.modules.get(module).catch(() => null)
|
|
307
|
-
// lane may not be registered on an older engine
|
|
308
|
-
]);
|
|
309
|
-
if (signal.cancelled) return;
|
|
310
|
-
setState({
|
|
311
|
-
phase: "ready",
|
|
312
|
-
collections: chunk3NG33DV2_cjs.moduleDoctypes(dts, module),
|
|
313
|
-
registered: Boolean(mod && mod.doctypes.length)
|
|
314
|
-
});
|
|
315
|
-
} catch (e) {
|
|
316
|
-
if (!signal.cancelled) setState({ phase: "error", error: chunkWHJR5S4L_cjs.classifyBackend(e) });
|
|
317
|
-
}
|
|
318
|
-
},
|
|
319
|
-
[client, module]
|
|
320
|
-
);
|
|
321
|
-
react.useEffect(() => {
|
|
322
|
-
const signal = { cancelled: false };
|
|
323
|
-
void load(signal);
|
|
324
|
-
return () => {
|
|
325
|
-
signal.cancelled = true;
|
|
326
|
-
};
|
|
327
|
-
}, [load]);
|
|
328
|
-
const reload = react.useCallback(() => void load({ cancelled: false }), [load]);
|
|
329
|
-
const install = react.useCallback(async () => {
|
|
330
|
-
setBusy(true);
|
|
331
|
-
setActionError(null);
|
|
332
|
-
try {
|
|
333
|
-
await client.modules.install(module);
|
|
334
|
-
reload();
|
|
335
|
-
} catch (e) {
|
|
336
|
-
setActionError(chunkWHJR5S4L_cjs.classifyBackend(e).message);
|
|
337
|
-
} finally {
|
|
338
|
-
setBusy(false);
|
|
339
|
-
}
|
|
340
|
-
}, [client, module, reload]);
|
|
341
|
-
if (state.phase === "loading") {
|
|
342
|
-
return /* @__PURE__ */ jsxRuntime.jsx(gui.YStack, { onLayout, width: "100%", children: /* @__PURE__ */ jsxRuntime.jsx(Loading, { label: `Loading ${label}\u2026` }) });
|
|
343
|
-
}
|
|
344
|
-
if (state.phase === "error") {
|
|
345
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(gui.YStack, { onLayout, gap: "$3", width: "100%", children: [
|
|
346
|
-
/* @__PURE__ */ jsxRuntime.jsx(chunkWHJR5S4L_cjs.PageHeader, { title: label, subtitle }),
|
|
347
|
-
/* @__PURE__ */ jsxRuntime.jsx(chunkWHJR5S4L_cjs.BackendStateCard, { state: state.error, onRetry: reload, hint: "framework \xB7 GET /v1/framework/doctypes" })
|
|
348
|
-
] });
|
|
349
|
-
}
|
|
350
|
-
const { collections } = state;
|
|
351
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(gui.YStack, { onLayout, gap: "$3", width: "100%", children: [
|
|
352
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
353
|
-
chunkWHJR5S4L_cjs.PageHeader,
|
|
354
|
-
{
|
|
355
|
-
title: label,
|
|
356
|
-
subtitle,
|
|
357
|
-
actions: collections.length && !creating ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
358
|
-
Action,
|
|
359
|
-
{
|
|
360
|
-
phone,
|
|
361
|
-
primary: true,
|
|
362
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.Plus, { size: 15 }),
|
|
363
|
-
onPress: () => {
|
|
364
|
-
setCreating(true);
|
|
365
|
-
setActionError(null);
|
|
366
|
-
},
|
|
367
|
-
children: "New collection"
|
|
368
|
-
}
|
|
369
|
-
) : void 0
|
|
370
|
-
}
|
|
371
|
-
),
|
|
372
|
-
actionError ? /* @__PURE__ */ jsxRuntime.jsx(ErrorBar, { message: actionError }) : null,
|
|
373
|
-
creating ? (renderBuilder ?? ((p) => /* @__PURE__ */ jsxRuntime.jsx(CollectionBuilder, { client, module, ...p })))({
|
|
374
|
-
onSaved: (name) => {
|
|
375
|
-
setCreating(false);
|
|
376
|
-
onOpen(name);
|
|
377
|
-
},
|
|
378
|
-
onCancel: () => setCreating(false)
|
|
379
|
-
}) : null,
|
|
380
|
-
collections.length === 0 && !creating ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
381
|
-
chunkWHJR5S4L_cjs.EmptyState,
|
|
382
|
-
{
|
|
383
|
-
icon,
|
|
384
|
-
title: `Set up ${label}`,
|
|
385
|
-
description: setupDescription ?? `${label} is a set of collections on the Hanzo Framework \u2014 typed documents, per organization.`,
|
|
386
|
-
bullets: setupBullets ?? [
|
|
387
|
-
`Installs the default ${label} collections into your organization`,
|
|
388
|
-
"Every record is a document on the framework \u2014 versioned, permissioned, per-org",
|
|
389
|
-
"Add your own collections and fields any time"
|
|
390
|
-
],
|
|
391
|
-
primary: state.registered ? { label: busy ? "Setting up\u2026" : `Set up ${label}`, onPress: install } : void 0,
|
|
392
|
-
secondary: { label: "New collection", onPress: () => setCreating(true) }
|
|
393
|
-
}
|
|
394
|
-
) : !creating ? (
|
|
395
|
-
// A fixed 240px card is a 240px column on a 390px phone with dead space
|
|
396
|
-
// beside it. `flexBasis` + `flexGrow` makes each card fill the row on a
|
|
397
|
-
// phone and settle back to a 240px tile once the box can hold several.
|
|
398
|
-
/* @__PURE__ */ jsxRuntime.jsx(gui.XStack, { gap: "$3", flexWrap: "wrap", width: "100%", children: collections.map((dt) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
399
|
-
gui.YStack,
|
|
400
|
-
{
|
|
401
|
-
onPress: () => onOpen(dt.name),
|
|
402
|
-
hoverStyle: { borderColor: "$color8" },
|
|
403
|
-
pressStyle: { bg: "$color3" },
|
|
404
|
-
cursor: "pointer",
|
|
405
|
-
borderWidth: 1,
|
|
406
|
-
borderColor: "$borderColor",
|
|
407
|
-
rounded: "$4",
|
|
408
|
-
p: "$4",
|
|
409
|
-
gap: "$2",
|
|
410
|
-
minH: 88,
|
|
411
|
-
grow: phone ? 1 : 0,
|
|
412
|
-
flexBasis: phone ? "100%" : 240,
|
|
413
|
-
maxW: phone ? void 0 : 240,
|
|
414
|
-
children: [
|
|
415
|
-
/* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { gap: "$2", items: "center", children: [
|
|
416
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.Boxes, { size: 16 }),
|
|
417
|
-
/* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$4", fontWeight: "700", flex: 1, minW: 0, numberOfLines: 1, children: dt.name })
|
|
418
|
-
] }),
|
|
419
|
-
/* @__PURE__ */ jsxRuntime.jsxs(Meta, { children: [
|
|
420
|
-
dt.fields?.length ?? 0,
|
|
421
|
-
" field",
|
|
422
|
-
(dt.fields?.length ?? 0) === 1 ? "" : "s",
|
|
423
|
-
dt.isSubmittable ? " \xB7 submittable" : ""
|
|
424
|
-
] })
|
|
425
|
-
]
|
|
426
|
-
},
|
|
427
|
-
dt.name
|
|
428
|
-
)) })
|
|
429
|
-
) : null
|
|
430
|
-
] });
|
|
431
|
-
}
|
|
432
|
-
function MediaGrid({
|
|
433
|
-
client,
|
|
434
|
-
dt,
|
|
435
|
-
docs,
|
|
436
|
-
media,
|
|
437
|
-
onOpen,
|
|
438
|
-
onChanged,
|
|
439
|
-
toolbarExtra,
|
|
440
|
-
accept = "image/*,application/pdf,video/*,audio/*"
|
|
441
|
-
}) {
|
|
442
|
-
const fileField = chunk3NG33DV2_cjs.mediaFileField(dt);
|
|
443
|
-
const inputRef = react.useRef(null);
|
|
444
|
-
const [busy, setBusy] = react.useState(false);
|
|
445
|
-
const [progress, setProgress] = react.useState(null);
|
|
446
|
-
const [error, setError] = react.useState(null);
|
|
447
|
-
const { phone, onLayout } = useContainerLayout();
|
|
448
|
-
const upload = react.useCallback(
|
|
449
|
-
async (files) => {
|
|
450
|
-
const list = Array.from(files);
|
|
451
|
-
if (list.length === 0) return;
|
|
452
|
-
setBusy(true);
|
|
453
|
-
setError(null);
|
|
454
|
-
setProgress({ done: 0, total: list.length });
|
|
455
|
-
try {
|
|
456
|
-
for (let i = 0; i < list.length; i += 1) {
|
|
457
|
-
const facts = await media.upload(list[i]);
|
|
458
|
-
await client.records.create(dt.name, chunk3NG33DV2_cjs.mediaDocPayload(dt, facts));
|
|
459
|
-
setProgress({ done: i + 1, total: list.length });
|
|
460
|
-
}
|
|
461
|
-
onChanged();
|
|
462
|
-
} catch (e) {
|
|
463
|
-
setError(chunkWHJR5S4L_cjs.classifyBackend(e).message);
|
|
464
|
-
} finally {
|
|
465
|
-
setBusy(false);
|
|
466
|
-
setProgress(null);
|
|
467
|
-
}
|
|
468
|
-
},
|
|
469
|
-
[client, dt, media, onChanged]
|
|
470
|
-
);
|
|
471
|
-
const pick = () => inputRef.current?.click();
|
|
472
|
-
const onInput = (e) => {
|
|
473
|
-
if (e.target.files) void upload(e.target.files);
|
|
474
|
-
e.target.value = "";
|
|
475
|
-
};
|
|
476
|
-
const HiddenInput = /* @__PURE__ */ jsxRuntime.jsx("input", { ref: inputRef, type: "file", multiple: true, accept, style: { display: "none" }, onChange: onInput });
|
|
477
|
-
const uploadLabel = busy ? progress ? `Uploading ${progress.done}/${progress.total}\u2026` : "Uploading\u2026" : "Upload";
|
|
478
|
-
if (docs.length === 0) {
|
|
479
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(gui.YStack, { onLayout, gap: "$3", width: "100%", children: [
|
|
480
|
-
HiddenInput,
|
|
481
|
-
toolbarExtra ? /* @__PURE__ */ jsxRuntime.jsx(gui.XStack, { justify: phone ? "flex-start" : "flex-end", gap: "$2", width: "100%", children: toolbarExtra }) : null,
|
|
482
|
-
error ? /* @__PURE__ */ jsxRuntime.jsx(ErrorBar, { message: error }) : null,
|
|
483
|
-
/* @__PURE__ */ jsxRuntime.jsx(DropZone, { busy, onDrop: upload, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
484
|
-
chunkWHJR5S4L_cjs.EmptyState,
|
|
485
|
-
{
|
|
486
|
-
icon: lucideIcons2.Image,
|
|
487
|
-
title: "No media yet",
|
|
488
|
-
description: "Drag files here, or upload \u2014 images and files go to your organization's object storage and become reusable media you can attach to any record.",
|
|
489
|
-
primary: { label: uploadLabel, onPress: pick }
|
|
490
|
-
}
|
|
491
|
-
) })
|
|
492
|
-
] });
|
|
493
|
-
}
|
|
494
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(gui.YStack, { onLayout, gap: "$3", width: "100%", children: [
|
|
495
|
-
HiddenInput,
|
|
496
|
-
/* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { gap: "$2", items: "center", flexWrap: "wrap", justify: phone ? "flex-start" : "flex-end", width: "100%", children: [
|
|
497
|
-
toolbarExtra,
|
|
498
|
-
/* @__PURE__ */ jsxRuntime.jsx(Action, { phone, primary: true, icon: /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.Upload, { size: 15 }), disabled: busy, onPress: pick, children: uploadLabel })
|
|
499
|
-
] }),
|
|
500
|
-
error ? /* @__PURE__ */ jsxRuntime.jsx(ErrorBar, { message: error }) : null,
|
|
501
|
-
/* @__PURE__ */ jsxRuntime.jsx(DropZone, { busy, onDrop: upload, children: /* @__PURE__ */ jsxRuntime.jsx(gui.XStack, { gap: "$3", flexWrap: "wrap", width: "100%", children: docs.map((d) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
502
|
-
MediaCard,
|
|
503
|
-
{
|
|
504
|
-
doc: d,
|
|
505
|
-
dt,
|
|
506
|
-
fileField,
|
|
507
|
-
media,
|
|
508
|
-
phone,
|
|
509
|
-
onOpen: () => onOpen(String(d.name)),
|
|
510
|
-
onDelete: async () => {
|
|
511
|
-
setBusy(true);
|
|
512
|
-
setError(null);
|
|
513
|
-
try {
|
|
514
|
-
await media.remove(d[fileField]);
|
|
515
|
-
await client.records.remove(dt.name, String(d.name));
|
|
516
|
-
onChanged();
|
|
517
|
-
} catch (e) {
|
|
518
|
-
setError(chunkWHJR5S4L_cjs.classifyBackend(e).message);
|
|
519
|
-
} finally {
|
|
520
|
-
setBusy(false);
|
|
521
|
-
}
|
|
522
|
-
},
|
|
523
|
-
disabled: busy
|
|
524
|
-
},
|
|
525
|
-
String(d.name)
|
|
526
|
-
)) }) })
|
|
527
|
-
] });
|
|
528
|
-
}
|
|
529
|
-
function MediaCard({
|
|
530
|
-
doc,
|
|
531
|
-
dt,
|
|
532
|
-
fileField,
|
|
533
|
-
media,
|
|
534
|
-
phone,
|
|
535
|
-
onOpen,
|
|
536
|
-
onDelete,
|
|
537
|
-
disabled
|
|
538
|
-
}) {
|
|
539
|
-
const [url, setUrl] = react.useState("");
|
|
540
|
-
const [confirming, setConfirming] = react.useState(false);
|
|
541
|
-
const raw = String(doc[fileField] ?? "");
|
|
542
|
-
const title = chunk3NG33DV2_cjs.titleOf(doc, dt);
|
|
543
|
-
react.useEffect(() => {
|
|
544
|
-
let cancelled = false;
|
|
545
|
-
void media.resolveUrl(raw).then((u) => {
|
|
546
|
-
if (!cancelled) setUrl(u);
|
|
547
|
-
});
|
|
548
|
-
return () => {
|
|
549
|
-
cancelled = true;
|
|
550
|
-
};
|
|
551
|
-
}, [raw, media]);
|
|
552
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
553
|
-
gui.YStack,
|
|
554
|
-
{
|
|
555
|
-
borderWidth: 1,
|
|
556
|
-
borderColor: "$borderColor",
|
|
557
|
-
rounded: "$4",
|
|
558
|
-
grow: 0,
|
|
559
|
-
flexBasis: phone ? "47%" : 200,
|
|
560
|
-
maxW: phone ? void 0 : 200,
|
|
561
|
-
minW: 140,
|
|
562
|
-
overflow: "hidden",
|
|
563
|
-
hoverStyle: { borderColor: "$color8" },
|
|
564
|
-
children: [
|
|
565
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
566
|
-
gui.YStack,
|
|
567
|
-
{
|
|
568
|
-
height: phone ? 110 : 130,
|
|
569
|
-
bg: "$color3",
|
|
570
|
-
items: "center",
|
|
571
|
-
justify: "center",
|
|
572
|
-
overflow: "hidden",
|
|
573
|
-
cursor: "pointer",
|
|
574
|
-
pressStyle: { opacity: 0.8 },
|
|
575
|
-
onPress: onOpen,
|
|
576
|
-
children: url && (chunk3NG33DV2_cjs.looksLikeImage(raw) || chunk3NG33DV2_cjs.looksLikeImage(url)) ? (
|
|
577
|
-
// eslint-disable-next-line @next/next/no-img-element
|
|
578
|
-
/* @__PURE__ */ jsxRuntime.jsx("img", { src: url, alt: String(doc.alt ?? title), style: { width: "100%", height: "100%", objectFit: "cover" } })
|
|
579
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.Image, { size: 28 })
|
|
580
|
-
}
|
|
581
|
-
),
|
|
582
|
-
/* @__PURE__ */ jsxRuntime.jsxs(gui.YStack, { p: "$3", gap: "$1", children: [
|
|
583
|
-
/* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$3", fontWeight: "700", numberOfLines: 1, children: title }),
|
|
584
|
-
/* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { justify: "space-between", items: "center", gap: "$2", children: [
|
|
585
|
-
/* @__PURE__ */ jsxRuntime.jsx(Meta, { children: String(doc.mime ?? "file") }),
|
|
586
|
-
confirming ? /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { gap: "$1", children: [
|
|
587
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
588
|
-
gui.Button,
|
|
589
|
-
{
|
|
590
|
-
size: phone ? "$3" : "$1",
|
|
591
|
-
minH: phone ? TAP : void 0,
|
|
592
|
-
theme: "red",
|
|
593
|
-
disabled,
|
|
594
|
-
onPress: () => {
|
|
595
|
-
setConfirming(false);
|
|
596
|
-
void onDelete();
|
|
597
|
-
},
|
|
598
|
-
children: "Delete"
|
|
599
|
-
}
|
|
600
|
-
),
|
|
601
|
-
/* @__PURE__ */ jsxRuntime.jsx(gui.Button, { size: phone ? "$3" : "$1", minH: phone ? TAP : void 0, disabled, onPress: () => setConfirming(false), children: "No" })
|
|
602
|
-
] }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
603
|
-
gui.Button,
|
|
604
|
-
{
|
|
605
|
-
size: phone ? "$3" : "$1",
|
|
606
|
-
circular: true,
|
|
607
|
-
chromeless: true,
|
|
608
|
-
minW: phone ? TAP : void 0,
|
|
609
|
-
minH: phone ? TAP : void 0,
|
|
610
|
-
"aria-label": `Delete ${title}`,
|
|
611
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.Trash2, { size: phone ? 16 : 13 }),
|
|
612
|
-
disabled,
|
|
613
|
-
onPress: () => setConfirming(true)
|
|
614
|
-
}
|
|
615
|
-
)
|
|
616
|
-
] })
|
|
617
|
-
] })
|
|
618
|
-
]
|
|
619
|
-
}
|
|
620
|
-
);
|
|
621
|
-
}
|
|
622
|
-
function DropZone({
|
|
623
|
-
children,
|
|
624
|
-
busy,
|
|
625
|
-
onDrop
|
|
626
|
-
}) {
|
|
627
|
-
const [over, setOver] = react.useState(false);
|
|
628
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
629
|
-
gui.YStack,
|
|
630
|
-
{
|
|
631
|
-
width: "100%",
|
|
632
|
-
onDragOver: (e) => {
|
|
633
|
-
e.preventDefault();
|
|
634
|
-
if (!busy) setOver(true);
|
|
635
|
-
},
|
|
636
|
-
onDragLeave: () => setOver(false),
|
|
637
|
-
onDrop: (e) => {
|
|
638
|
-
e.preventDefault();
|
|
639
|
-
setOver(false);
|
|
640
|
-
if (!busy && e.dataTransfer?.files?.length) void onDrop(e.dataTransfer.files);
|
|
641
|
-
},
|
|
642
|
-
rounded: "$4",
|
|
643
|
-
p: over ? "$3" : 0,
|
|
644
|
-
borderWidth: over ? 2 : 0,
|
|
645
|
-
borderColor: "$color8",
|
|
646
|
-
style: { borderStyle: "dashed" },
|
|
647
|
-
children
|
|
648
|
-
}
|
|
649
|
-
);
|
|
650
|
-
}
|
|
651
|
-
function headline(record, titleField) {
|
|
652
|
-
const t = titleField ? record[titleField] : void 0;
|
|
653
|
-
if (typeof t === "string" && t.trim()) return t;
|
|
654
|
-
if (typeof t === "number") return String(t);
|
|
655
|
-
const name = record.name ?? record.id;
|
|
656
|
-
return typeof name === "string" && name ? name : "Untitled";
|
|
657
|
-
}
|
|
658
|
-
function RecordCards({
|
|
659
|
-
titleField,
|
|
660
|
-
fields,
|
|
661
|
-
cardFields: cardFields2,
|
|
662
|
-
records,
|
|
663
|
-
loading,
|
|
664
|
-
empty,
|
|
665
|
-
onOpen,
|
|
666
|
-
onCreate,
|
|
667
|
-
createLabel = "New record",
|
|
668
|
-
toolbarExtra
|
|
669
|
-
}) {
|
|
670
|
-
const [query, setQuery] = react.useState("");
|
|
671
|
-
const visible = react.useMemo(() => data.searchRecords(records, query, fields), [records, query, fields]);
|
|
672
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(gui.YStack, { testID: "doctype-cards", gap: "$3", width: "100%", children: [
|
|
673
|
-
/* @__PURE__ */ jsxRuntime.jsxs(gui.YStack, { gap: "$2", width: "100%", children: [
|
|
674
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
675
|
-
gui.XStack,
|
|
676
|
-
{
|
|
677
|
-
items: "center",
|
|
678
|
-
gap: "$2",
|
|
679
|
-
px: "$3",
|
|
680
|
-
minH: 44,
|
|
681
|
-
rounded: "$3",
|
|
682
|
-
borderWidth: 1,
|
|
683
|
-
borderColor: "$borderColor",
|
|
684
|
-
width: "100%",
|
|
685
|
-
children: [
|
|
686
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.Search, { size: 15, opacity: 0.6 }),
|
|
687
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
688
|
-
gui.Input,
|
|
689
|
-
{
|
|
690
|
-
unstyled: true,
|
|
691
|
-
flex: 1,
|
|
692
|
-
minW: 0,
|
|
693
|
-
height: 42,
|
|
694
|
-
fontSize: "$3",
|
|
695
|
-
color: "$color12",
|
|
696
|
-
placeholder: "Search",
|
|
697
|
-
value: query,
|
|
698
|
-
onChangeText: setQuery,
|
|
699
|
-
autoCapitalize: "none"
|
|
700
|
-
}
|
|
701
|
-
)
|
|
702
|
-
]
|
|
703
|
-
}
|
|
704
|
-
),
|
|
705
|
-
/* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { gap: "$2", items: "center", flexWrap: "wrap", width: "100%", children: [
|
|
706
|
-
onCreate ? /* @__PURE__ */ jsxRuntime.jsx(Action, { phone: true, primary: true, onPress: onCreate, children: createLabel }) : null,
|
|
707
|
-
toolbarExtra
|
|
708
|
-
] })
|
|
709
|
-
] }),
|
|
710
|
-
loading ? /* @__PURE__ */ jsxRuntime.jsx(Loading, { label: "Loading records\u2026" }) : null,
|
|
711
|
-
!loading && visible.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(gui.Card, { borderWidth: 1, borderColor: "$borderColor", p: "$4", width: "100%", children: /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$3", color: "$color10", children: query ? `No records match \u201C${query}\u201D.` : empty ?? "No records yet." }) }) : null,
|
|
712
|
-
/* @__PURE__ */ jsxRuntime.jsx(gui.YStack, { gap: "$2", width: "100%", children: visible.map((rec, i) => {
|
|
713
|
-
const key = String(rec.name ?? rec.id ?? i);
|
|
714
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
715
|
-
gui.Card,
|
|
716
|
-
{
|
|
717
|
-
borderWidth: 1,
|
|
718
|
-
borderColor: "$borderColor",
|
|
719
|
-
rounded: "$3",
|
|
720
|
-
p: "$3",
|
|
721
|
-
width: "100%",
|
|
722
|
-
cursor: onOpen ? "pointer" : void 0,
|
|
723
|
-
pressStyle: onOpen ? { bg: "$color3" } : void 0,
|
|
724
|
-
hoverStyle: onOpen ? { borderColor: "$color8" } : void 0,
|
|
725
|
-
onPress: onOpen ? () => onOpen(rec) : void 0,
|
|
726
|
-
style: WRAP_ANYWHERE,
|
|
727
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(gui.YStack, { gap: "$2", width: "100%", children: [
|
|
728
|
-
/* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { items: "center", gap: "$2", width: "100%", children: [
|
|
729
|
-
/* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$4", fontWeight: "700", flex: 1, minW: 0, numberOfLines: 2, children: headline(rec, titleField) }),
|
|
730
|
-
onOpen ? /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.ChevronRight, { size: 16, opacity: 0.5 }) : null
|
|
731
|
-
] }),
|
|
732
|
-
cardFields2.map((f) => (
|
|
733
|
-
// Label above value: a two-column row forces the value into a
|
|
734
|
-
// sliver at 390px. Stacked, every field type gets the full width.
|
|
735
|
-
/* @__PURE__ */ jsxRuntime.jsxs(gui.YStack, { gap: "$0.5", width: "100%", children: [
|
|
736
|
-
/* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$1", color: "$color10", textTransform: "uppercase", letterSpacing: 0.4, children: f.label }),
|
|
737
|
-
/* @__PURE__ */ jsxRuntime.jsx(gui.XStack, { width: "100%", flexWrap: "wrap", children: /* @__PURE__ */ jsxRuntime.jsx(data.FieldDisplay, { field: f, value: rec[f.name] }) })
|
|
738
|
-
] }, f.name)
|
|
739
|
-
))
|
|
740
|
-
] })
|
|
741
|
-
},
|
|
742
|
-
key
|
|
743
|
-
);
|
|
744
|
-
}) }),
|
|
745
|
-
visible.length ? /* @__PURE__ */ jsxRuntime.jsxs(Meta, { children: [
|
|
746
|
-
visible.length,
|
|
747
|
-
" of ",
|
|
748
|
-
records.length,
|
|
749
|
-
" record",
|
|
750
|
-
records.length === 1 ? "" : "s"
|
|
751
|
-
] }) : null
|
|
752
|
-
] });
|
|
753
|
-
}
|
|
754
|
-
function DocTypeRecords({
|
|
755
|
-
client,
|
|
756
|
-
doctype,
|
|
757
|
-
onOpen,
|
|
758
|
-
onCreate,
|
|
759
|
-
project,
|
|
760
|
-
title,
|
|
761
|
-
media,
|
|
762
|
-
renderMedia,
|
|
763
|
-
limit = 200
|
|
764
|
-
}) {
|
|
765
|
-
const [state, setState] = react.useState({ phase: "loading" });
|
|
766
|
-
const [mutationError, setMutationError] = react.useState(null);
|
|
767
|
-
const { phone, onLayout } = useContainerLayout();
|
|
768
|
-
const load = react.useCallback(
|
|
769
|
-
async (signal) => {
|
|
770
|
-
setState({ phase: "loading" });
|
|
771
|
-
try {
|
|
772
|
-
const dt = await client.doctypes.get(doctype);
|
|
773
|
-
const linkOptions = await chunk3NG33DV2_cjs.loadLinkOptions(client, dt);
|
|
774
|
-
const filters = project && chunk3NG33DV2_cjs.hasProjectField(dt) ? { [chunk3NG33DV2_cjs.PROJECT_FIELD]: project } : void 0;
|
|
775
|
-
const docs = await client.records.list(doctype, { limit, ...filters ? { filters } : {} });
|
|
776
|
-
if (signal.cancelled) return;
|
|
777
|
-
const records = docs.map((d) => chunk3NG33DV2_cjs.enrichLinks(chunk3NG33DV2_cjs.toRecord(d, dt), dt, linkOptions));
|
|
778
|
-
setState({ phase: "ready", dt, fields: chunk3NG33DV2_cjs.docTypeToFields(dt), docs, records, linkOptions });
|
|
779
|
-
} catch (e) {
|
|
780
|
-
if (!signal.cancelled) setState({ phase: "error", error: chunkWHJR5S4L_cjs.classifyBackend(e) });
|
|
781
|
-
}
|
|
782
|
-
},
|
|
783
|
-
[client, doctype, project, limit]
|
|
784
|
-
);
|
|
785
|
-
react.useEffect(() => {
|
|
786
|
-
const signal = { cancelled: false };
|
|
787
|
-
void load(signal);
|
|
788
|
-
return () => {
|
|
789
|
-
signal.cancelled = true;
|
|
790
|
-
};
|
|
791
|
-
}, [load]);
|
|
792
|
-
const reload = react.useCallback(() => void load({ cancelled: false }), [load]);
|
|
793
|
-
const ready = state.phase === "ready" ? state : void 0;
|
|
794
|
-
const fieldOptions = react.useMemo(
|
|
795
|
-
() => ready ? chunk3NG33DV2_cjs.makeFieldOptions(ready.linkOptions) : void 0,
|
|
796
|
-
[ready]
|
|
797
|
-
);
|
|
798
|
-
const [view, setView] = react.useState(void 0);
|
|
799
|
-
const dtName = ready?.dt.name;
|
|
800
|
-
react.useEffect(() => {
|
|
801
|
-
if (!ready) return;
|
|
802
|
-
setView({
|
|
803
|
-
id: `doctype:${ready.dt.name}`,
|
|
804
|
-
name: ready.dt.name,
|
|
805
|
-
kind: "table",
|
|
806
|
-
filters: [],
|
|
807
|
-
sorts: [],
|
|
808
|
-
hiddenFields: chunk3NG33DV2_cjs.listHiddenFields(ready.dt)
|
|
809
|
-
});
|
|
810
|
-
}, [dtName]);
|
|
811
|
-
const cards = react.useMemo(
|
|
812
|
-
() => ready ? chunk3NG33DV2_cjs.cardFields(ready.dt, ready.fields) : [],
|
|
813
|
-
[ready]
|
|
814
|
-
);
|
|
815
|
-
const onEditCommit = react.useCallback(
|
|
816
|
-
async (record, field, value) => {
|
|
817
|
-
if (state.phase !== "ready") return;
|
|
818
|
-
const name = typeof record.name === "string" ? record.name : "";
|
|
819
|
-
if (!name) return;
|
|
820
|
-
setMutationError(null);
|
|
821
|
-
try {
|
|
822
|
-
const body = chunk3NG33DV2_cjs.savePayload({ ...record, [field.name]: value }, state.dt);
|
|
823
|
-
const saved = await client.records.update(doctype, name, body);
|
|
824
|
-
const next = chunk3NG33DV2_cjs.enrichLinks(chunk3NG33DV2_cjs.toRecord(saved, state.dt), state.dt, state.linkOptions);
|
|
825
|
-
setState((s) => s.phase === "ready" ? { ...s, records: s.records.map((r) => r.name === name ? next : r) } : s);
|
|
826
|
-
} catch (e) {
|
|
827
|
-
setMutationError(chunkWHJR5S4L_cjs.classifyBackend(e).message);
|
|
828
|
-
throw e;
|
|
829
|
-
}
|
|
830
|
-
},
|
|
831
|
-
[client, doctype, state]
|
|
832
|
-
);
|
|
833
|
-
if (state.phase === "error") {
|
|
834
|
-
return /* @__PURE__ */ jsxRuntime.jsx(gui.YStack, { onLayout, width: "100%", children: /* @__PURE__ */ jsxRuntime.jsx(chunkWHJR5S4L_cjs.BackendStateCard, { state: state.error, onRetry: reload, hint: `framework \xB7 GET /v1/framework/${doctype}` }) });
|
|
835
|
-
}
|
|
836
|
-
const refresh = phone ? /* @__PURE__ */ jsxRuntime.jsx(Action, { phone: true, icon: /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.RefreshCw, { size: 15 }), onPress: reload, children: "Refresh" }) : /* @__PURE__ */ jsxRuntime.jsx(gui.Button, { size: "$2", minH: TAP - 12, icon: /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.RefreshCw, { size: 15 }), onPress: reload, children: "Refresh" });
|
|
837
|
-
if (ready && (media || renderMedia) && chunk3NG33DV2_cjs.isMediaDoctype(ready.dt)) {
|
|
838
|
-
return /* @__PURE__ */ jsxRuntime.jsx(gui.YStack, { onLayout, width: "100%", children: renderMedia ? renderMedia({ dt: ready.dt, docs: ready.docs, onOpen, onChanged: reload, toolbarExtra: refresh }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
839
|
-
MediaGrid,
|
|
840
|
-
{
|
|
841
|
-
client,
|
|
842
|
-
dt: ready.dt,
|
|
843
|
-
docs: ready.docs,
|
|
844
|
-
media,
|
|
845
|
-
onOpen,
|
|
846
|
-
onChanged: reload,
|
|
847
|
-
toolbarExtra: refresh
|
|
848
|
-
}
|
|
849
|
-
) });
|
|
850
|
-
}
|
|
851
|
-
const openByKey = (r) => onOpen(String(r.name ?? r.id ?? ""));
|
|
852
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(gui.YStack, { onLayout, gap: "$3", width: "100%", children: [
|
|
853
|
-
mutationError ? /* @__PURE__ */ jsxRuntime.jsx(ErrorBar, { message: mutationError }) : null,
|
|
854
|
-
phone ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
855
|
-
RecordCards,
|
|
856
|
-
{
|
|
857
|
-
titleField: ready?.dt.titleField,
|
|
858
|
-
fields: ready?.fields ?? [],
|
|
859
|
-
cardFields: cards,
|
|
860
|
-
records: ready?.records ?? [],
|
|
861
|
-
loading: state.phase === "loading",
|
|
862
|
-
empty: `No records in ${doctype} yet.`,
|
|
863
|
-
onOpen: openByKey,
|
|
864
|
-
onCreate,
|
|
865
|
-
toolbarExtra: refresh
|
|
866
|
-
}
|
|
867
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(gui.YStack, { testID: "doctype-table", width: "100%", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
868
|
-
data.RecordsView,
|
|
869
|
-
{
|
|
870
|
-
title,
|
|
871
|
-
fields: ready?.fields ?? [],
|
|
872
|
-
records: ready?.records ?? [],
|
|
873
|
-
loading: state.phase === "loading",
|
|
874
|
-
view,
|
|
875
|
-
onViewChange: setView,
|
|
876
|
-
onOpen: openByKey,
|
|
877
|
-
onCreate,
|
|
878
|
-
createLabel: "New record",
|
|
879
|
-
onEditCommit,
|
|
880
|
-
fieldOptions,
|
|
881
|
-
toolbarExtra: refresh,
|
|
882
|
-
titleField: ready?.dt.titleField,
|
|
883
|
-
empty: `No records in ${doctype} yet.`
|
|
884
|
-
}
|
|
885
|
-
) })
|
|
886
|
-
] });
|
|
887
|
-
}
|
|
888
|
-
function DocTypeDetail({ client, doctype, name, project, onBack, onView }) {
|
|
889
|
-
const isNew = name === "new";
|
|
890
|
-
const [state, setState] = react.useState({ phase: "loading" });
|
|
891
|
-
const [editing, setEditing] = react.useState(isNew);
|
|
892
|
-
const [draft, setDraft] = react.useState({});
|
|
893
|
-
const [busy, setBusy] = react.useState(false);
|
|
894
|
-
const [saveError, setSaveError] = react.useState(null);
|
|
895
|
-
const [confirmingDelete, setConfirmingDelete] = react.useState(false);
|
|
896
|
-
const { phone, onLayout } = useContainerLayout();
|
|
897
|
-
const load = react.useCallback(
|
|
898
|
-
async (signal) => {
|
|
899
|
-
setState({ phase: "loading" });
|
|
900
|
-
try {
|
|
901
|
-
const dt2 = await client.doctypes.get(doctype);
|
|
902
|
-
const linkOptions = await chunk3NG33DV2_cjs.loadLinkOptions(client, dt2);
|
|
903
|
-
const doc = isNew ? null : await client.records.get(doctype, name);
|
|
904
|
-
if (signal.cancelled) return;
|
|
905
|
-
const record2 = doc ? chunk3NG33DV2_cjs.enrichLinks(chunk3NG33DV2_cjs.toRecord(doc, dt2), dt2, linkOptions) : null;
|
|
906
|
-
setState({ phase: "ready", dt: dt2, record: record2, linkOptions });
|
|
907
|
-
const seed = chunk3NG33DV2_cjs.newDraft(dt2);
|
|
908
|
-
if (record2 == null && project && chunk3NG33DV2_cjs.hasProjectField(dt2)) seed[chunk3NG33DV2_cjs.PROJECT_FIELD] = project;
|
|
909
|
-
setDraft(record2 ? { ...record2 } : seed);
|
|
910
|
-
setEditing(isNew);
|
|
911
|
-
setSaveError(null);
|
|
912
|
-
setConfirmingDelete(false);
|
|
913
|
-
} catch (e) {
|
|
914
|
-
if (!signal.cancelled) setState({ phase: "error", error: chunkWHJR5S4L_cjs.classifyBackend(e) });
|
|
915
|
-
}
|
|
916
|
-
},
|
|
917
|
-
[client, doctype, name, isNew, project]
|
|
918
|
-
);
|
|
919
|
-
react.useEffect(() => {
|
|
920
|
-
const signal = { cancelled: false };
|
|
921
|
-
void load(signal);
|
|
922
|
-
return () => {
|
|
923
|
-
signal.cancelled = true;
|
|
924
|
-
};
|
|
925
|
-
}, [load]);
|
|
926
|
-
const reload = react.useCallback(() => void load({ cancelled: false }), [load]);
|
|
927
|
-
const ready = state.phase === "ready" ? state : void 0;
|
|
928
|
-
const dt = ready?.dt;
|
|
929
|
-
const record = ready?.record ?? null;
|
|
930
|
-
const fields = react.useMemo(() => dt ? chunk3NG33DV2_cjs.docTypeToFields(dt, { editing: !isNew }) : [], [dt, isNew]);
|
|
931
|
-
const fieldOptions = react.useMemo(() => ready ? chunk3NG33DV2_cjs.makeFieldOptions(ready.linkOptions) : void 0, [ready]);
|
|
932
|
-
const title = dt ? isNew ? `New ${doctype}` : chunk3NG33DV2_cjs.titleOf(record ?? {}, dt) : doctype;
|
|
933
|
-
const onChange = react.useCallback((field, value) => {
|
|
934
|
-
setDraft((d) => ({ ...d, [field]: value }));
|
|
935
|
-
}, []);
|
|
936
|
-
const reflect = react.useCallback(
|
|
937
|
-
(saved) => {
|
|
938
|
-
if (!dt || !ready) return;
|
|
939
|
-
const next = chunk3NG33DV2_cjs.enrichLinks(chunk3NG33DV2_cjs.toRecord(saved, dt), dt, ready.linkOptions);
|
|
940
|
-
setState({ phase: "ready", dt, record: next, linkOptions: ready.linkOptions });
|
|
941
|
-
setDraft({ ...next });
|
|
942
|
-
},
|
|
943
|
-
[dt, ready]
|
|
944
|
-
);
|
|
945
|
-
const save = react.useCallback(async () => {
|
|
946
|
-
if (!dt) return;
|
|
947
|
-
setBusy(true);
|
|
948
|
-
setSaveError(null);
|
|
949
|
-
try {
|
|
950
|
-
const body = chunk3NG33DV2_cjs.savePayload(draft, dt);
|
|
951
|
-
if (isNew) {
|
|
952
|
-
const created = await client.records.create(doctype, body);
|
|
953
|
-
if (created.name) onView(String(created.name));
|
|
954
|
-
else onBack();
|
|
955
|
-
return;
|
|
956
|
-
}
|
|
957
|
-
if (!record?.name) throw new Error("This record has no name to update.");
|
|
958
|
-
reflect(await client.records.update(doctype, String(record.name), body));
|
|
959
|
-
setEditing(false);
|
|
960
|
-
} catch (e) {
|
|
961
|
-
setSaveError(chunkWHJR5S4L_cjs.classifyBackend(e).message);
|
|
962
|
-
} finally {
|
|
963
|
-
setBusy(false);
|
|
964
|
-
}
|
|
965
|
-
}, [client, doctype, draft, dt, isNew, onBack, onView, record, reflect]);
|
|
966
|
-
const run = react.useCallback(
|
|
967
|
-
async (op) => {
|
|
968
|
-
setBusy(true);
|
|
969
|
-
setSaveError(null);
|
|
970
|
-
try {
|
|
971
|
-
const saved = await op();
|
|
972
|
-
if (saved) reflect(saved);
|
|
973
|
-
} catch (e) {
|
|
974
|
-
setSaveError(chunkWHJR5S4L_cjs.classifyBackend(e).message);
|
|
975
|
-
} finally {
|
|
976
|
-
setBusy(false);
|
|
977
|
-
}
|
|
978
|
-
},
|
|
979
|
-
[reflect]
|
|
980
|
-
);
|
|
981
|
-
const remove = react.useCallback(async () => {
|
|
982
|
-
if (!record?.name) return;
|
|
983
|
-
setBusy(true);
|
|
984
|
-
setSaveError(null);
|
|
985
|
-
try {
|
|
986
|
-
await client.records.remove(doctype, String(record.name));
|
|
987
|
-
onBack();
|
|
988
|
-
} catch (e) {
|
|
989
|
-
setSaveError(chunkWHJR5S4L_cjs.classifyBackend(e).message);
|
|
990
|
-
setBusy(false);
|
|
991
|
-
setConfirmingDelete(false);
|
|
992
|
-
}
|
|
993
|
-
}, [client, doctype, onBack, record]);
|
|
994
|
-
const backButton = /* @__PURE__ */ jsxRuntime.jsx(Action, { phone, icon: /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.ArrowLeft, { size: 15 }), onPress: onBack, children: "Back" });
|
|
995
|
-
if (state.phase === "loading") {
|
|
996
|
-
return /* @__PURE__ */ jsxRuntime.jsx(gui.YStack, { onLayout, width: "100%", children: /* @__PURE__ */ jsxRuntime.jsx(Loading, { label: `Loading ${doctype}\u2026` }) });
|
|
997
|
-
}
|
|
998
|
-
if (state.phase === "error") {
|
|
999
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(gui.YStack, { onLayout, gap: "$3", width: "100%", children: [
|
|
1000
|
-
/* @__PURE__ */ jsxRuntime.jsx(gui.XStack, { children: backButton }),
|
|
1001
|
-
/* @__PURE__ */ jsxRuntime.jsx(chunkWHJR5S4L_cjs.BackendStateCard, { state: state.error, onRetry: reload, hint: `framework \xB7 ${doctype}/${name}` })
|
|
1002
|
-
] });
|
|
1003
|
-
}
|
|
1004
|
-
if (!dt) {
|
|
1005
|
-
return /* @__PURE__ */ jsxRuntime.jsx(gui.YStack, { onLayout, gap: "$3", width: "100%", children: /* @__PURE__ */ jsxRuntime.jsx(gui.XStack, { children: backButton }) });
|
|
1006
|
-
}
|
|
1007
|
-
const draftDoc = chunk3NG33DV2_cjs.isDraft(record);
|
|
1008
|
-
const statusF = chunk3NG33DV2_cjs.statusField(dt);
|
|
1009
|
-
const status = record ? String(record[statusF] ?? "") : "";
|
|
1010
|
-
const docstatus = record ? Number(record.docstatus ?? 0) : 0;
|
|
1011
|
-
const canEdit = !editing && !isNew && draftDoc;
|
|
1012
|
-
const canDelete = !editing && !isNew && draftDoc;
|
|
1013
|
-
const canPublish = canEdit && Boolean(statusF);
|
|
1014
|
-
const canSubmit = !editing && !isNew && Boolean(dt.isSubmittable) && draftDoc;
|
|
1015
|
-
const canCancel = !editing && !isNew && Boolean(dt.isSubmittable) && docstatus === chunk3NG33DV2_cjs.SUBMITTED;
|
|
1016
|
-
const lifecycle = docstatus === chunk3NG33DV2_cjs.SUBMITTED ? " \xB7 submitted" : docstatus === chunk3NG33DV2_cjs.CANCELLED ? " \xB7 cancelled" : "";
|
|
1017
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(gui.YStack, { onLayout, gap: "$3", width: "100%", children: [
|
|
1018
|
-
/* @__PURE__ */ jsxRuntime.jsxs(gui.YStack, { gap: "$3", width: "100%", children: [
|
|
1019
|
-
/* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { items: "center", gap: "$3", width: "100%", flexWrap: "wrap", children: [
|
|
1020
|
-
phone ? null : backButton,
|
|
1021
|
-
/* @__PURE__ */ jsxRuntime.jsxs(gui.YStack, { flex: 1, minW: 200, children: [
|
|
1022
|
-
/* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$6", fontWeight: "800", numberOfLines: 2, children: title }),
|
|
1023
|
-
/* @__PURE__ */ jsxRuntime.jsxs(gui.Text, { fontSize: "$2", color: "$color10", numberOfLines: 1, children: [
|
|
1024
|
-
doctype,
|
|
1025
|
-
status ? ` \xB7 ${status}` : "",
|
|
1026
|
-
lifecycle
|
|
1027
|
-
] })
|
|
1028
|
-
] })
|
|
1029
|
-
] }),
|
|
1030
|
-
/* @__PURE__ */ jsxRuntime.jsxs(Actions, { phone, children: [
|
|
1031
|
-
phone ? backButton : null,
|
|
1032
|
-
editing ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1033
|
-
!isNew ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1034
|
-
Action,
|
|
1035
|
-
{
|
|
1036
|
-
phone,
|
|
1037
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.X, { size: 15 }),
|
|
1038
|
-
disabled: busy,
|
|
1039
|
-
onPress: () => {
|
|
1040
|
-
setDraft(record ? { ...record } : {});
|
|
1041
|
-
setEditing(false);
|
|
1042
|
-
setSaveError(null);
|
|
1043
|
-
},
|
|
1044
|
-
children: "Cancel"
|
|
1045
|
-
}
|
|
1046
|
-
) : null,
|
|
1047
|
-
/* @__PURE__ */ jsxRuntime.jsx(Action, { phone, primary: true, icon: /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.Save, { size: 15 }), disabled: busy, onPress: save, children: busy ? "Saving\u2026" : isNew ? "Create" : "Save" })
|
|
1048
|
-
] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1049
|
-
canDelete ? /* @__PURE__ */ jsxRuntime.jsx(Action, { phone, danger: true, icon: /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.Trash2, { size: 15 }), disabled: busy, onPress: () => setConfirmingDelete(true), children: "Delete" }) : null,
|
|
1050
|
-
canCancel ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1051
|
-
Action,
|
|
1052
|
-
{
|
|
1053
|
-
phone,
|
|
1054
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.Ban, { size: 15 }),
|
|
1055
|
-
disabled: busy,
|
|
1056
|
-
onPress: () => run(() => client.records.cancel(doctype, String(record.name))),
|
|
1057
|
-
children: "Cancel doc"
|
|
1058
|
-
}
|
|
1059
|
-
) : null,
|
|
1060
|
-
canSubmit ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1061
|
-
Action,
|
|
1062
|
-
{
|
|
1063
|
-
phone,
|
|
1064
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.Send, { size: 15 }),
|
|
1065
|
-
disabled: busy,
|
|
1066
|
-
onPress: () => run(() => client.records.submit(doctype, String(record.name))),
|
|
1067
|
-
children: "Submit"
|
|
1068
|
-
}
|
|
1069
|
-
) : null,
|
|
1070
|
-
canPublish ? status === "Published" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1071
|
-
Action,
|
|
1072
|
-
{
|
|
1073
|
-
phone,
|
|
1074
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.PenOff, { size: 15 }),
|
|
1075
|
-
disabled: busy,
|
|
1076
|
-
onPress: () => run(
|
|
1077
|
-
async () => client.records.update(doctype, String(record.name), chunk3NG33DV2_cjs.savePayload({ ...record, [statusF]: "Draft" }, dt))
|
|
1078
|
-
),
|
|
1079
|
-
children: "Unpublish"
|
|
1080
|
-
}
|
|
1081
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
1082
|
-
Action,
|
|
1083
|
-
{
|
|
1084
|
-
phone,
|
|
1085
|
-
primary: true,
|
|
1086
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.Globe, { size: 15 }),
|
|
1087
|
-
disabled: busy,
|
|
1088
|
-
onPress: () => run(
|
|
1089
|
-
async () => client.records.update(
|
|
1090
|
-
doctype,
|
|
1091
|
-
String(record.name),
|
|
1092
|
-
chunk3NG33DV2_cjs.savePayload({ ...record, [statusF]: "Published" }, dt)
|
|
1093
|
-
)
|
|
1094
|
-
),
|
|
1095
|
-
children: "Publish"
|
|
1096
|
-
}
|
|
1097
|
-
) : null,
|
|
1098
|
-
canEdit ? /* @__PURE__ */ jsxRuntime.jsx(Action, { phone, primary: true, icon: /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.Pencil, { size: 15 }), onPress: () => setEditing(true), children: "Edit" }) : null
|
|
1099
|
-
] })
|
|
1100
|
-
] })
|
|
1101
|
-
] }),
|
|
1102
|
-
!editing && !isNew && !draftDoc ? /* @__PURE__ */ jsxRuntime.jsx(gui.Card, { borderWidth: 1, borderColor: "$borderColor", bg: "$color2", p: "$3", maxW: 620, children: /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$2", color: "$color11", children: docstatus === chunk3NG33DV2_cjs.SUBMITTED ? "This document is submitted. Cancel it to make further changes \u2014 the engine refuses edits and deletes on a submitted document." : "This document is cancelled. It is kept as a record and can no longer be edited or deleted." }) }) : null,
|
|
1103
|
-
confirmingDelete ? /* @__PURE__ */ jsxRuntime.jsxs(gui.Card, { borderWidth: 1, borderColor: "$red7", bg: "$red2", p: "$3", gap: "$3", maxW: 620, children: [
|
|
1104
|
-
/* @__PURE__ */ jsxRuntime.jsxs(gui.Text, { fontSize: "$3", fontWeight: "700", children: [
|
|
1105
|
-
"Delete \u201C",
|
|
1106
|
-
title,
|
|
1107
|
-
"\u201D? This cannot be undone."
|
|
1108
|
-
] }),
|
|
1109
|
-
/* @__PURE__ */ jsxRuntime.jsxs(Actions, { phone, children: [
|
|
1110
|
-
/* @__PURE__ */ jsxRuntime.jsx(Action, { phone, danger: true, disabled: busy, onPress: remove, children: busy ? "Deleting\u2026" : "Confirm delete" }),
|
|
1111
|
-
/* @__PURE__ */ jsxRuntime.jsx(Action, { phone, disabled: busy, onPress: () => setConfirmingDelete(false), children: "Keep" })
|
|
1112
|
-
] })
|
|
1113
|
-
] }) : null,
|
|
1114
|
-
saveError ? /* @__PURE__ */ jsxRuntime.jsx(ErrorBar, { message: saveError }) : null,
|
|
1115
|
-
/* @__PURE__ */ jsxRuntime.jsx(Panel, { phone, children: editing ? /* @__PURE__ */ jsxRuntime.jsx(data.RecordForm, { fields, values: draft, onChange, fieldOptions }) : record ? /* @__PURE__ */ jsxRuntime.jsx(data.RecordDetail, { title, fields, record, fieldOptions }) : null })
|
|
1116
|
-
] });
|
|
1117
|
-
}
|
|
1118
|
-
|
|
1119
|
-
Object.defineProperty(exports, "BUILDER_FIELD_TYPES", {
|
|
1120
|
-
enumerable: true,
|
|
1121
|
-
get: function () { return chunk3NG33DV2_cjs.BUILDER_FIELD_TYPES; }
|
|
1122
|
-
});
|
|
1123
|
-
Object.defineProperty(exports, "CANCELLED", {
|
|
1124
|
-
enumerable: true,
|
|
1125
|
-
get: function () { return chunk3NG33DV2_cjs.CANCELLED; }
|
|
1126
|
-
});
|
|
1127
|
-
Object.defineProperty(exports, "DRAFT", {
|
|
1128
|
-
enumerable: true,
|
|
1129
|
-
get: function () { return chunk3NG33DV2_cjs.DRAFT; }
|
|
1130
|
-
});
|
|
1131
|
-
Object.defineProperty(exports, "PROJECT_FIELD", {
|
|
1132
|
-
enumerable: true,
|
|
1133
|
-
get: function () { return chunk3NG33DV2_cjs.PROJECT_FIELD; }
|
|
1134
|
-
});
|
|
1135
|
-
Object.defineProperty(exports, "REDACTED_MARKER", {
|
|
1136
|
-
enumerable: true,
|
|
1137
|
-
get: function () { return chunk3NG33DV2_cjs.REDACTED_MARKER; }
|
|
1138
|
-
});
|
|
1139
|
-
Object.defineProperty(exports, "SUBMITTED", {
|
|
1140
|
-
enumerable: true,
|
|
1141
|
-
get: function () { return chunk3NG33DV2_cjs.SUBMITTED; }
|
|
1142
|
-
});
|
|
1143
|
-
Object.defineProperty(exports, "autonameSource", {
|
|
1144
|
-
enumerable: true,
|
|
1145
|
-
get: function () { return chunk3NG33DV2_cjs.autonameSource; }
|
|
1146
|
-
});
|
|
1147
|
-
Object.defineProperty(exports, "blankField", {
|
|
1148
|
-
enumerable: true,
|
|
1149
|
-
get: function () { return chunk3NG33DV2_cjs.blankField; }
|
|
1150
|
-
});
|
|
1151
|
-
Object.defineProperty(exports, "cardFields", {
|
|
1152
|
-
enumerable: true,
|
|
1153
|
-
get: function () { return chunk3NG33DV2_cjs.cardFields; }
|
|
1154
|
-
});
|
|
1155
|
-
Object.defineProperty(exports, "createFrameworkClient", {
|
|
1156
|
-
enumerable: true,
|
|
1157
|
-
get: function () { return chunk3NG33DV2_cjs.createFrameworkClient; }
|
|
1158
|
-
});
|
|
1159
|
-
Object.defineProperty(exports, "createMediaUploader", {
|
|
1160
|
-
enumerable: true,
|
|
1161
|
-
get: function () { return chunk3NG33DV2_cjs.createMediaUploader; }
|
|
1162
|
-
});
|
|
1163
|
-
Object.defineProperty(exports, "docTypeToFields", {
|
|
1164
|
-
enumerable: true,
|
|
1165
|
-
get: function () { return chunk3NG33DV2_cjs.docTypeToFields; }
|
|
1166
|
-
});
|
|
1167
|
-
Object.defineProperty(exports, "enrichLinks", {
|
|
1168
|
-
enumerable: true,
|
|
1169
|
-
get: function () { return chunk3NG33DV2_cjs.enrichLinks; }
|
|
1170
|
-
});
|
|
1171
|
-
Object.defineProperty(exports, "fieldNameFromLabel", {
|
|
1172
|
-
enumerable: true,
|
|
1173
|
-
get: function () { return chunk3NG33DV2_cjs.fieldNameFromLabel; }
|
|
1174
|
-
});
|
|
1175
|
-
Object.defineProperty(exports, "fieldNeedsOptions", {
|
|
1176
|
-
enumerable: true,
|
|
1177
|
-
get: function () { return chunk3NG33DV2_cjs.fieldNeedsOptions; }
|
|
1178
|
-
});
|
|
1179
|
-
Object.defineProperty(exports, "fieldTypeLabel", {
|
|
1180
|
-
enumerable: true,
|
|
1181
|
-
get: function () { return chunk3NG33DV2_cjs.fieldTypeLabel; }
|
|
1182
|
-
});
|
|
1183
|
-
Object.defineProperty(exports, "fieldsFromDocType", {
|
|
1184
|
-
enumerable: true,
|
|
1185
|
-
get: function () { return chunk3NG33DV2_cjs.fieldsFromDocType; }
|
|
1186
|
-
});
|
|
1187
|
-
Object.defineProperty(exports, "hasProjectField", {
|
|
1188
|
-
enumerable: true,
|
|
1189
|
-
get: function () { return chunk3NG33DV2_cjs.hasProjectField; }
|
|
1190
|
-
});
|
|
1191
|
-
Object.defineProperty(exports, "humanize", {
|
|
1192
|
-
enumerable: true,
|
|
1193
|
-
get: function () { return chunk3NG33DV2_cjs.humanize; }
|
|
1194
|
-
});
|
|
1195
|
-
Object.defineProperty(exports, "imageDimensions", {
|
|
1196
|
-
enumerable: true,
|
|
1197
|
-
get: function () { return chunk3NG33DV2_cjs.imageDimensions; }
|
|
1198
|
-
});
|
|
1199
|
-
Object.defineProperty(exports, "isDraft", {
|
|
1200
|
-
enumerable: true,
|
|
1201
|
-
get: function () { return chunk3NG33DV2_cjs.isDraft; }
|
|
1202
|
-
});
|
|
1203
|
-
Object.defineProperty(exports, "isMediaDoctype", {
|
|
1204
|
-
enumerable: true,
|
|
1205
|
-
get: function () { return chunk3NG33DV2_cjs.isMediaDoctype; }
|
|
1206
|
-
});
|
|
1207
|
-
Object.defineProperty(exports, "isRef", {
|
|
1208
|
-
enumerable: true,
|
|
1209
|
-
get: function () { return chunk3NG33DV2_cjs.isRef; }
|
|
1210
|
-
});
|
|
1211
|
-
Object.defineProperty(exports, "isValidDoctypeName", {
|
|
1212
|
-
enumerable: true,
|
|
1213
|
-
get: function () { return chunk3NG33DV2_cjs.isValidDoctypeName; }
|
|
1214
|
-
});
|
|
1215
|
-
Object.defineProperty(exports, "joinKey", {
|
|
1216
|
-
enumerable: true,
|
|
1217
|
-
get: function () { return chunk3NG33DV2_cjs.joinKey; }
|
|
1218
|
-
});
|
|
1219
|
-
Object.defineProperty(exports, "linkFields", {
|
|
1220
|
-
enumerable: true,
|
|
1221
|
-
get: function () { return chunk3NG33DV2_cjs.linkFields; }
|
|
1222
|
-
});
|
|
1223
|
-
Object.defineProperty(exports, "listHiddenFields", {
|
|
1224
|
-
enumerable: true,
|
|
1225
|
-
get: function () { return chunk3NG33DV2_cjs.listHiddenFields; }
|
|
1226
|
-
});
|
|
1227
|
-
Object.defineProperty(exports, "listQuery", {
|
|
1228
|
-
enumerable: true,
|
|
1229
|
-
get: function () { return chunk3NG33DV2_cjs.listQuery; }
|
|
1230
|
-
});
|
|
1231
|
-
Object.defineProperty(exports, "listedFieldNames", {
|
|
1232
|
-
enumerable: true,
|
|
1233
|
-
get: function () { return chunk3NG33DV2_cjs.listedFieldNames; }
|
|
1234
|
-
});
|
|
1235
|
-
Object.defineProperty(exports, "loadLinkOptions", {
|
|
1236
|
-
enumerable: true,
|
|
1237
|
-
get: function () { return chunk3NG33DV2_cjs.loadLinkOptions; }
|
|
1238
|
-
});
|
|
1239
|
-
Object.defineProperty(exports, "looksLikeImage", {
|
|
1240
|
-
enumerable: true,
|
|
1241
|
-
get: function () { return chunk3NG33DV2_cjs.looksLikeImage; }
|
|
1242
|
-
});
|
|
1243
|
-
Object.defineProperty(exports, "makeFieldOptions", {
|
|
1244
|
-
enumerable: true,
|
|
1245
|
-
get: function () { return chunk3NG33DV2_cjs.makeFieldOptions; }
|
|
1246
|
-
});
|
|
1247
|
-
Object.defineProperty(exports, "mediaDocPayload", {
|
|
1248
|
-
enumerable: true,
|
|
1249
|
-
get: function () { return chunk3NG33DV2_cjs.mediaDocPayload; }
|
|
1250
|
-
});
|
|
1251
|
-
Object.defineProperty(exports, "mediaFileField", {
|
|
1252
|
-
enumerable: true,
|
|
1253
|
-
get: function () { return chunk3NG33DV2_cjs.mediaFileField; }
|
|
1254
|
-
});
|
|
1255
|
-
Object.defineProperty(exports, "mediaKey", {
|
|
1256
|
-
enumerable: true,
|
|
1257
|
-
get: function () { return chunk3NG33DV2_cjs.mediaKey; }
|
|
1258
|
-
});
|
|
1259
|
-
Object.defineProperty(exports, "mediaRef", {
|
|
1260
|
-
enumerable: true,
|
|
1261
|
-
get: function () { return chunk3NG33DV2_cjs.mediaRef; }
|
|
1262
|
-
});
|
|
1263
|
-
Object.defineProperty(exports, "moduleDoctypes", {
|
|
1264
|
-
enumerable: true,
|
|
1265
|
-
get: function () { return chunk3NG33DV2_cjs.moduleDoctypes; }
|
|
1266
|
-
});
|
|
1267
|
-
Object.defineProperty(exports, "moveField", {
|
|
1268
|
-
enumerable: true,
|
|
1269
|
-
get: function () { return chunk3NG33DV2_cjs.moveField; }
|
|
1270
|
-
});
|
|
1271
|
-
Object.defineProperty(exports, "newDraft", {
|
|
1272
|
-
enumerable: true,
|
|
1273
|
-
get: function () { return chunk3NG33DV2_cjs.newDraft; }
|
|
1274
|
-
});
|
|
1275
|
-
Object.defineProperty(exports, "newKey", {
|
|
1276
|
-
enumerable: true,
|
|
1277
|
-
get: function () { return chunk3NG33DV2_cjs.newKey; }
|
|
1278
|
-
});
|
|
1279
|
-
Object.defineProperty(exports, "parseRef", {
|
|
1280
|
-
enumerable: true,
|
|
1281
|
-
get: function () { return chunk3NG33DV2_cjs.parseRef; }
|
|
1282
|
-
});
|
|
1283
|
-
Object.defineProperty(exports, "rows", {
|
|
1284
|
-
enumerable: true,
|
|
1285
|
-
get: function () { return chunk3NG33DV2_cjs.rows; }
|
|
1286
|
-
});
|
|
1287
|
-
Object.defineProperty(exports, "savePayload", {
|
|
1288
|
-
enumerable: true,
|
|
1289
|
-
get: function () { return chunk3NG33DV2_cjs.savePayload; }
|
|
1290
|
-
});
|
|
1291
|
-
Object.defineProperty(exports, "slugify", {
|
|
1292
|
-
enumerable: true,
|
|
1293
|
-
get: function () { return chunk3NG33DV2_cjs.slugify; }
|
|
1294
|
-
});
|
|
1295
|
-
Object.defineProperty(exports, "starterFields", {
|
|
1296
|
-
enumerable: true,
|
|
1297
|
-
get: function () { return chunk3NG33DV2_cjs.starterFields; }
|
|
1298
|
-
});
|
|
1299
|
-
Object.defineProperty(exports, "statusField", {
|
|
1300
|
-
enumerable: true,
|
|
1301
|
-
get: function () { return chunk3NG33DV2_cjs.statusField; }
|
|
1302
|
-
});
|
|
1303
|
-
Object.defineProperty(exports, "titleOf", {
|
|
1304
|
-
enumerable: true,
|
|
1305
|
-
get: function () { return chunk3NG33DV2_cjs.titleOf; }
|
|
1306
|
-
});
|
|
1307
|
-
Object.defineProperty(exports, "toDocField", {
|
|
1308
|
-
enumerable: true,
|
|
1309
|
-
get: function () { return chunk3NG33DV2_cjs.toDocField; }
|
|
1310
|
-
});
|
|
1311
|
-
Object.defineProperty(exports, "toDocType", {
|
|
1312
|
-
enumerable: true,
|
|
1313
|
-
get: function () { return chunk3NG33DV2_cjs.toDocType; }
|
|
1314
|
-
});
|
|
1315
|
-
Object.defineProperty(exports, "toRecord", {
|
|
1316
|
-
enumerable: true,
|
|
1317
|
-
get: function () { return chunk3NG33DV2_cjs.toRecord; }
|
|
1318
|
-
});
|
|
1319
|
-
Object.defineProperty(exports, "validateBuilder", {
|
|
1320
|
-
enumerable: true,
|
|
1321
|
-
get: function () { return chunk3NG33DV2_cjs.validateBuilder; }
|
|
1322
|
-
});
|
|
1323
|
-
exports.Action = Action;
|
|
1324
|
-
exports.Actions = Actions;
|
|
1325
|
-
exports.CollectionBuilder = CollectionBuilder;
|
|
1326
|
-
exports.CollectionsBrowser = CollectionsBrowser;
|
|
1327
|
-
exports.DocTypeDetail = DocTypeDetail;
|
|
1328
|
-
exports.DocTypeRecords = DocTypeRecords;
|
|
1329
|
-
exports.ErrorBar = ErrorBar;
|
|
1330
|
-
exports.GRID_MIN = GRID_MIN;
|
|
1331
|
-
exports.Loading = Loading;
|
|
1332
|
-
exports.MediaGrid = MediaGrid;
|
|
1333
|
-
exports.Meta = Meta;
|
|
1334
|
-
exports.Panel = Panel;
|
|
1335
|
-
exports.RecordCards = RecordCards;
|
|
1336
|
-
exports.TABLE_MIN = TABLE_MIN;
|
|
1337
|
-
exports.TAP = TAP;
|
|
1338
|
-
exports.layoutFor = layoutFor;
|
|
1339
|
-
exports.useContainerLayout = useContainerLayout;
|
|
1340
|
-
//# sourceMappingURL=index.cjs.map
|
|
1341
|
-
//# sourceMappingURL=index.cjs.map
|
|
1
|
+
'use client';"use strict";
|
|
2
|
+
// @hanzo/ui/framework — the ONE renderer for the Hanzo Framework DocType engine.
|
|
3
|
+
//
|
|
4
|
+
// The engine (`hanzoai/cloud clients/framework`, live at `/v1/framework/*`, also
|
|
5
|
+
// published as github.com/hanzoai/framework) is metadata-driven: a CMS Page, an
|
|
6
|
+
// ERP Sales Order, a Helpdesk Ticket and a CRM Company are the same kind of thing
|
|
7
|
+
// — a DocType with typed fields. So they get the same renderer. An "app lane" is a
|
|
8
|
+
// `module` filter over the DocType registry plus its own copy; there is no
|
|
9
|
+
// per-lane list, form, detail or builder to drift.
|
|
10
|
+
//
|
|
11
|
+
// import { CollectionsBrowser, DocTypeRecords, DocTypeDetail } from '@hanzo/ui/framework'
|
|
12
|
+
//
|
|
13
|
+
// HOST-AGNOSTIC. Nothing here picks an origin, a credential or a router: the host
|
|
14
|
+
// injects a `FrameworkTransport` (→ `createFrameworkClient`), an optional
|
|
15
|
+
// `MediaStore` (→ `createMediaUploader`) and plain `onOpen`/`onCreate`/`onBack`
|
|
16
|
+
// callbacks. The console mounts it on its user-bearer `/v1` proxy; anything else
|
|
17
|
+
// mounts it elsewhere.
|
|
18
|
+
//
|
|
19
|
+
// MOBILE FIRST. The phone layout is the DEFAULT, not the fallback: the first paint
|
|
20
|
+
// (SSR included) is the stacked card list, and the desktop table is the
|
|
21
|
+
// enhancement applied once the container measures wide enough (`responsive.ts`).
|
|
22
|
+
// Every control meets the 44px tap floor at phone width.
|
|
23
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
24
|
+
if (k2 === undefined) k2 = k;
|
|
25
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
26
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
27
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
28
|
+
}
|
|
29
|
+
Object.defineProperty(o, k2, desc);
|
|
30
|
+
}) : (function(o, m, k, k2) {
|
|
31
|
+
if (k2 === undefined) k2 = k;
|
|
32
|
+
o[k2] = m[k];
|
|
33
|
+
}));
|
|
34
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
35
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.Panel = exports.Meta = exports.Loading = exports.ErrorBar = exports.Actions = exports.Action = void 0;
|
|
39
|
+
// The wire contract + the pure mapping. Its own entry too (`@hanzo/ui/framework/core`)
|
|
40
|
+
// so a data layer can bind the engine without loading a component tree.
|
|
41
|
+
__exportStar(require("./core.cjs"), exports);
|
|
42
|
+
__exportStar(require("./responsive.cjs"), exports);
|
|
43
|
+
// The views.
|
|
44
|
+
__exportStar(require("./CollectionsBrowser.cjs"), exports);
|
|
45
|
+
__exportStar(require("./DocTypeRecords.cjs"), exports);
|
|
46
|
+
__exportStar(require("./RecordCards.cjs"), exports);
|
|
47
|
+
__exportStar(require("./DocTypeDetail.cjs"), exports);
|
|
48
|
+
__exportStar(require("./CollectionBuilder.cjs"), exports);
|
|
49
|
+
__exportStar(require("./MediaGrid.cjs"), exports);
|
|
50
|
+
// The shared pieces, exported so a lane can build one more surface in the same
|
|
51
|
+
// idiom instead of inventing a second button.
|
|
52
|
+
var parts_1 = require("./parts.cjs");
|
|
53
|
+
Object.defineProperty(exports, "Action", { enumerable: true, get: function () { return parts_1.Action; } });
|
|
54
|
+
Object.defineProperty(exports, "Actions", { enumerable: true, get: function () { return parts_1.Actions; } });
|
|
55
|
+
Object.defineProperty(exports, "ErrorBar", { enumerable: true, get: function () { return parts_1.ErrorBar; } });
|
|
56
|
+
Object.defineProperty(exports, "Loading", { enumerable: true, get: function () { return parts_1.Loading; } });
|
|
57
|
+
Object.defineProperty(exports, "Meta", { enumerable: true, get: function () { return parts_1.Meta; } });
|
|
58
|
+
Object.defineProperty(exports, "Panel", { enumerable: true, get: function () { return parts_1.Panel; } });
|