@conloca/cms-spa 0.1.15 → 0.1.16
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/App-Bk1LNxbS.mjs +10851 -0
- package/dist/App-Bk1LNxbS.mjs.map +1 -0
- package/dist/App.d.ts +35 -0
- package/dist/App.d.ts.map +1 -0
- package/dist/App.js +52 -0
- package/dist/CmsSpaApp.d.ts +13 -0
- package/dist/CmsSpaApp.d.ts.map +1 -0
- package/dist/CmsSpaApp.js +33 -0
- package/dist/cn-dlASUkDY.mjs +10 -0
- package/dist/cn-dlASUkDY.mjs.map +1 -0
- package/dist/components/CMSDashboard.d.ts +2 -0
- package/dist/components/CMSDashboard.d.ts.map +1 -0
- package/dist/components/CMSDashboard.js +20 -0
- package/dist/components/CMSLayout.d.ts +2 -0
- package/dist/components/CMSLayout.d.ts.map +1 -0
- package/dist/components/CMSLayout.js +15 -0
- package/dist/components/ConlocaLogo.d.ts +2 -0
- package/dist/components/ConlocaLogo.d.ts.map +1 -0
- package/dist/components/ConlocaLogo.js +4 -0
- package/dist/components/GitStatusPanel.d.ts +25 -0
- package/dist/components/GitStatusPanel.d.ts.map +1 -0
- package/dist/components/GitStatusPanel.js +77 -0
- package/dist/components/MobileTopBar.d.ts +6 -0
- package/dist/components/MobileTopBar.d.ts.map +1 -0
- package/dist/components/MobileTopBar.js +6 -0
- package/dist/components/Sidebar.d.ts +8 -0
- package/dist/components/Sidebar.d.ts.map +1 -0
- package/dist/components/Sidebar.js +40 -0
- package/dist/components/UserAvatar.d.ts +2 -0
- package/dist/components/UserAvatar.d.ts.map +1 -0
- package/dist/components/UserAvatar.js +14 -0
- package/dist/components/cards/DataEntryCard.d.ts +14 -0
- package/dist/components/cards/DataEntryCard.d.ts.map +1 -0
- package/dist/components/cards/DataEntryCard.js +32 -0
- package/dist/components/cards/SectionCard.d.ts +15 -0
- package/dist/components/cards/SectionCard.d.ts.map +1 -0
- package/dist/components/cards/SectionCard.js +10 -0
- package/dist/components/cards/index.d.ts +2 -0
- package/dist/components/cards/index.d.ts.map +1 -0
- package/dist/components/cards/index.js +1 -0
- package/dist/components/dashboard/RecentActivity.d.ts +2 -0
- package/dist/components/dashboard/RecentActivity.d.ts.map +1 -0
- package/dist/components/dashboard/RecentActivity.js +58 -0
- package/dist/components/dialog.d.ts +53 -0
- package/dist/components/dialog.d.ts.map +1 -0
- package/dist/components/dialog.js +56 -0
- package/dist/components/dialogs/BlockPropertiesDialog.d.ts +12 -0
- package/dist/components/dialogs/BlockPropertiesDialog.d.ts.map +1 -0
- package/dist/components/dialogs/BlockPropertiesDialog.js +42 -0
- package/dist/components/dialogs/ConflictDialog.d.ts +10 -0
- package/dist/components/dialogs/ConflictDialog.d.ts.map +1 -0
- package/dist/components/dialogs/ConflictDialog.js +29 -0
- package/dist/components/dialogs/CreateDataDialog.d.ts +9 -0
- package/dist/components/dialogs/CreateDataDialog.d.ts.map +1 -0
- package/dist/components/dialogs/CreateDataDialog.js +20 -0
- package/dist/components/dialogs/CreateFolderDialog.d.ts +9 -0
- package/dist/components/dialogs/CreateFolderDialog.d.ts.map +1 -0
- package/dist/components/dialogs/CreateFolderDialog.js +33 -0
- package/dist/components/dialogs/CreatePageDialog.d.ts +10 -0
- package/dist/components/dialogs/CreatePageDialog.d.ts.map +1 -0
- package/dist/components/dialogs/CreatePageDialog.js +155 -0
- package/dist/components/dialogs/DataPropertiesDialog.d.ts +10 -0
- package/dist/components/dialogs/DataPropertiesDialog.d.ts.map +1 -0
- package/dist/components/dialogs/DataPropertiesDialog.js +38 -0
- package/dist/components/dialogs/DeleteConfirmDialog.d.ts +12 -0
- package/dist/components/dialogs/DeleteConfirmDialog.d.ts.map +1 -0
- package/dist/components/dialogs/DeleteConfirmDialog.js +7 -0
- package/dist/components/dialogs/ErrorModal.d.ts +14 -0
- package/dist/components/dialogs/ErrorModal.d.ts.map +1 -0
- package/dist/components/dialogs/ErrorModal.js +38 -0
- package/dist/components/dialogs/MoveFolderDialog.d.ts +11 -0
- package/dist/components/dialogs/MoveFolderDialog.d.ts.map +1 -0
- package/dist/components/dialogs/MoveFolderDialog.js +45 -0
- package/dist/components/dialogs/PageMetadataDialog.d.ts +10 -0
- package/dist/components/dialogs/PageMetadataDialog.d.ts.map +1 -0
- package/dist/components/dialogs/PageMetadataDialog.js +85 -0
- package/dist/components/dialogs/UnsavedChangesDialog.d.ts +8 -0
- package/dist/components/dialogs/UnsavedChangesDialog.d.ts.map +1 -0
- package/dist/components/dialogs/UnsavedChangesDialog.js +6 -0
- package/dist/components/dialogs/index.d.ts +9 -0
- package/dist/components/dialogs/index.d.ts.map +1 -0
- package/dist/components/dialogs/index.js +8 -0
- package/dist/components/editor/BlockEditor.d.ts +8 -0
- package/dist/components/editor/BlockEditor.d.ts.map +1 -0
- package/dist/components/editor/BlockEditor.js +262 -0
- package/dist/components/editor/BlockWrappers.d.ts +15 -0
- package/dist/components/editor/BlockWrappers.d.ts.map +1 -0
- package/dist/components/editor/BlockWrappers.js +29 -0
- package/dist/components/editor/CMSMDXEditor.d.ts +13 -0
- package/dist/components/editor/CMSMDXEditor.d.ts.map +1 -0
- package/dist/components/editor/CMSMDXEditor.js +123 -0
- package/dist/components/editor/ContentDiff.d.ts +10 -0
- package/dist/components/editor/ContentDiff.d.ts.map +1 -0
- package/dist/components/editor/ContentDiff.js +51 -0
- package/dist/components/editor/CreateBlockDialog.d.ts +26 -0
- package/dist/components/editor/CreateBlockDialog.d.ts.map +1 -0
- package/dist/components/editor/CreateBlockDialog.js +131 -0
- package/dist/components/editor/DrawerItemOverride.d.ts +8 -0
- package/dist/components/editor/DrawerItemOverride.d.ts.map +1 -0
- package/dist/components/editor/DrawerItemOverride.js +41 -0
- package/dist/components/editor/EditorChromeToggles.d.ts +16 -0
- package/dist/components/editor/EditorChromeToggles.d.ts.map +1 -0
- package/dist/components/editor/EditorChromeToggles.js +16 -0
- package/dist/components/editor/GenericBlock.d.ts +3 -0
- package/dist/components/editor/GenericBlock.d.ts.map +1 -0
- package/dist/components/editor/GenericBlock.js +1067 -0
- package/dist/components/editor/ImagePickerDialog.d.ts +6 -0
- package/dist/components/editor/ImagePickerDialog.d.ts.map +1 -0
- package/dist/components/editor/ImagePickerDialog.js +24 -0
- package/dist/components/editor/JsxPropsPanel.d.ts +16 -0
- package/dist/components/editor/JsxPropsPanel.d.ts.map +1 -0
- package/dist/components/editor/JsxPropsPanel.js +145 -0
- package/dist/components/editor/LocaleSelector.d.ts +9 -0
- package/dist/components/editor/LocaleSelector.d.ts.map +1 -0
- package/dist/components/editor/LocaleSelector.js +13 -0
- package/dist/components/editor/MDXLivePreview.d.ts +14 -0
- package/dist/components/editor/MDXLivePreview.d.ts.map +1 -0
- package/dist/components/editor/MDXLivePreview.js +103 -0
- package/dist/components/editor/MdxPageEditor.d.ts +10 -0
- package/dist/components/editor/MdxPageEditor.d.ts.map +1 -0
- package/dist/components/editor/MdxPageEditor.js +297 -0
- package/dist/components/editor/PageEditor.d.ts +18 -0
- package/dist/components/editor/PageEditor.d.ts.map +1 -0
- package/dist/components/editor/PageEditor.js +288 -0
- package/dist/components/editor/PageEditorHeaderActions.d.ts +16 -0
- package/dist/components/editor/PageEditorHeaderActions.d.ts.map +1 -0
- package/dist/components/editor/PageEditorHeaderActions.js +19 -0
- package/dist/components/editor/PageEditorWrapper.d.ts +7 -0
- package/dist/components/editor/PageEditorWrapper.d.ts.map +1 -0
- package/dist/components/editor/PageEditorWrapper.js +319 -0
- package/dist/components/editor/SearchableSelect.d.ts +34 -0
- package/dist/components/editor/SearchableSelect.d.ts.map +1 -0
- package/dist/components/editor/SearchableSelect.js +116 -0
- package/dist/components/editor/host-wrapper-plugin.d.ts +51 -0
- package/dist/components/editor/host-wrapper-plugin.d.ts.map +1 -0
- package/dist/components/editor/host-wrapper-plugin.js +37 -0
- package/dist/components/editor/index.d.ts +9 -0
- package/dist/components/editor/index.d.ts.map +1 -0
- package/dist/components/editor/index.js +7 -0
- package/dist/components/editor/insert-menu/InsertMdxComponentButton.d.ts +15 -0
- package/dist/components/editor/insert-menu/InsertMdxComponentButton.d.ts.map +1 -0
- package/dist/components/editor/insert-menu/InsertMdxComponentButton.js +90 -0
- package/dist/components/editor/insert-menu/SlashMenuPlugin.d.ts +12 -0
- package/dist/components/editor/insert-menu/SlashMenuPlugin.d.ts.map +1 -0
- package/dist/components/editor/insert-menu/SlashMenuPlugin.js +106 -0
- package/dist/components/editor/insert-menu/insert-payload.d.ts +76 -0
- package/dist/components/editor/insert-menu/insert-payload.d.ts.map +1 -0
- package/dist/components/editor/insert-menu/insert-payload.js +94 -0
- package/dist/components/editor/insert-menu/mdx-components-plugin.d.ts +8 -0
- package/dist/components/editor/insert-menu/mdx-components-plugin.d.ts.map +1 -0
- package/dist/components/editor/insert-menu/mdx-components-plugin.js +13 -0
- package/dist/components/editors/DataEditor.d.ts +19 -0
- package/dist/components/editors/DataEditor.d.ts.map +1 -0
- package/dist/components/editors/DataEditor.js +139 -0
- package/dist/components/fields/ContentBlockSelectorField.d.ts +14 -0
- package/dist/components/fields/ContentBlockSelectorField.d.ts.map +1 -0
- package/dist/components/fields/ContentBlockSelectorField.js +105 -0
- package/dist/components/fields/ImageField.d.ts +16 -0
- package/dist/components/fields/ImageField.d.ts.map +1 -0
- package/dist/components/fields/ImageField.js +39 -0
- package/dist/components/fields/MDXEditField.d.ts +17 -0
- package/dist/components/fields/MDXEditField.d.ts.map +1 -0
- package/dist/components/fields/MDXEditField.js +28 -0
- package/dist/components/forms/ChipArrayField.d.ts +12 -0
- package/dist/components/forms/ChipArrayField.d.ts.map +1 -0
- package/dist/components/forms/ChipArrayField.js +40 -0
- package/dist/components/forms/HintForm.d.ts +22 -0
- package/dist/components/forms/HintForm.d.ts.map +1 -0
- package/dist/components/forms/HintForm.js +162 -0
- package/dist/components/forms/SchemaForm.d.ts +15 -0
- package/dist/components/forms/SchemaForm.d.ts.map +1 -0
- package/dist/components/forms/SchemaForm.js +106 -0
- package/dist/components/index.d.ts +8 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +13 -0
- package/dist/components/media/AssetCard.d.ts +14 -0
- package/dist/components/media/AssetCard.d.ts.map +1 -0
- package/dist/components/media/AssetCard.js +31 -0
- package/dist/components/media/AssetDetailSidebar.d.ts +11 -0
- package/dist/components/media/AssetDetailSidebar.d.ts.map +1 -0
- package/dist/components/media/AssetDetailSidebar.js +101 -0
- package/dist/components/media/BulkActionBar.d.ts +9 -0
- package/dist/components/media/BulkActionBar.d.ts.map +1 -0
- package/dist/components/media/BulkActionBar.js +8 -0
- package/dist/components/media/FolderNav.d.ts +7 -0
- package/dist/components/media/FolderNav.d.ts.map +1 -0
- package/dist/components/media/FolderNav.js +12 -0
- package/dist/components/media/FolderTreeSidebar.d.ts +9 -0
- package/dist/components/media/FolderTreeSidebar.d.ts.map +1 -0
- package/dist/components/media/FolderTreeSidebar.js +41 -0
- package/dist/components/media/ImagePicker.d.ts +14 -0
- package/dist/components/media/ImagePicker.d.ts.map +1 -0
- package/dist/components/media/ImagePicker.js +45 -0
- package/dist/components/media/MediaLibrary.d.ts +35 -0
- package/dist/components/media/MediaLibrary.d.ts.map +1 -0
- package/dist/components/media/MediaLibrary.js +100 -0
- package/dist/components/media/MediaToolbar.d.ts +21 -0
- package/dist/components/media/MediaToolbar.d.ts.map +1 -0
- package/dist/components/media/MediaToolbar.js +6 -0
- package/dist/components/media/UploadModal.d.ts +9 -0
- package/dist/components/media/UploadModal.d.ts.map +1 -0
- package/dist/components/media/UploadModal.js +42 -0
- package/dist/components/media/UploadZone.d.ts +8 -0
- package/dist/components/media/UploadZone.d.ts.map +1 -0
- package/dist/components/media/UploadZone.js +22 -0
- package/dist/components/media/index.d.ts +11 -0
- package/dist/components/media/index.d.ts.map +1 -0
- package/dist/components/media/index.js +10 -0
- package/dist/components/pages/BlockList.d.ts +2 -0
- package/dist/components/pages/BlockList.d.ts.map +1 -0
- package/dist/components/pages/BlockList.js +280 -0
- package/dist/components/pages/DataList.d.ts +7 -0
- package/dist/components/pages/DataList.d.ts.map +1 -0
- package/dist/components/pages/DataList.js +244 -0
- package/dist/components/pages/MediaPage.d.ts +8 -0
- package/dist/components/pages/MediaPage.d.ts.map +1 -0
- package/dist/components/pages/MediaPage.js +107 -0
- package/dist/components/pages/PageList.d.ts +7 -0
- package/dist/components/pages/PageList.d.ts.map +1 -0
- package/dist/components/pages/PageList.js +308 -0
- package/dist/components/pages/index.d.ts +3 -0
- package/dist/components/pages/index.d.ts.map +1 -0
- package/dist/components/pages/index.js +2 -0
- package/dist/components/puck/MDXContent.d.ts +10 -0
- package/dist/components/puck/MDXContent.d.ts.map +1 -0
- package/dist/components/puck/MDXContent.js +80 -0
- package/dist/components/puck/index.d.ts +2 -0
- package/dist/components/puck/index.d.ts.map +1 -0
- package/dist/components/puck/index.js +1 -0
- package/dist/components/toast.d.ts +44 -0
- package/dist/components/toast.d.ts.map +1 -0
- package/dist/components/toast.js +7 -0
- package/dist/components/ui/Banner.d.ts +76 -0
- package/dist/components/ui/Banner.d.ts.map +1 -0
- package/dist/components/ui/Banner.js +49 -0
- package/dist/components/ui/Button.d.ts +25 -0
- package/dist/components/ui/Button.d.ts.map +1 -0
- package/dist/components/ui/Button.js +33 -0
- package/dist/components/ui/Card.d.ts +72 -0
- package/dist/components/ui/Card.d.ts.map +1 -0
- package/dist/components/ui/Card.js +49 -0
- package/dist/components/ui/FieldError.d.ts +24 -0
- package/dist/components/ui/FieldError.d.ts.map +1 -0
- package/dist/components/ui/FieldError.js +17 -0
- package/dist/components/ui/IconButton.d.ts +13 -0
- package/dist/components/ui/IconButton.d.ts.map +1 -0
- package/dist/components/ui/IconButton.js +10 -0
- package/dist/components/ui/Input.d.ts +37 -0
- package/dist/components/ui/Input.d.ts.map +1 -0
- package/dist/components/ui/Input.js +9 -0
- package/dist/components/ui/SaveIndicator.d.ts +8 -0
- package/dist/components/ui/SaveIndicator.d.ts.map +1 -0
- package/dist/components/ui/SaveIndicator.js +32 -0
- package/dist/components/ui/Select.d.ts +8 -0
- package/dist/components/ui/Select.d.ts.map +1 -0
- package/dist/components/ui/Select.js +9 -0
- package/dist/components/ui/Separator.d.ts +7 -0
- package/dist/components/ui/Separator.d.ts.map +1 -0
- package/dist/components/ui/Separator.js +8 -0
- package/dist/components/ui/Textarea.d.ts +8 -0
- package/dist/components/ui/Textarea.d.ts.map +1 -0
- package/dist/components/ui/Textarea.js +5 -0
- package/dist/components/ui/Tooltip.d.ts +9 -0
- package/dist/components/ui/Tooltip.d.ts.map +1 -0
- package/dist/components/ui/Tooltip.js +7 -0
- package/dist/components/ui/index.d.ts +14 -0
- package/dist/components/ui/index.d.ts.map +1 -0
- package/dist/components/ui/index.js +17 -0
- package/dist/data-schemas.d.mts +0 -1
- package/dist/data-schemas.d.mts.map +1 -1
- package/dist/data-schemas.d.ts +22 -0
- package/dist/data-schemas.d.ts.map +1 -0
- package/dist/data-schemas.js +51 -0
- package/dist/data-schemas.mjs +3 -4
- package/dist/data-schemas.mjs.map +1 -1
- package/dist/dev-entry.d.ts +2 -0
- package/dist/dev-entry.d.ts.map +1 -0
- package/dist/dev-entry.js +19 -0
- package/dist/dialog.d.mts +56 -0
- package/dist/dialog.d.mts.map +1 -0
- package/dist/dialog.mjs +67 -0
- package/dist/dialog.mjs.map +1 -0
- package/dist/hooks/index.d.ts +10 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +7 -0
- package/dist/hooks/useCanvasTheme.d.ts +12 -0
- package/dist/hooks/useCanvasTheme.d.ts.map +1 -0
- package/dist/hooks/useCanvasTheme.js +33 -0
- package/dist/hooks/useClickOutside.d.ts +7 -0
- package/dist/hooks/useClickOutside.d.ts.map +1 -0
- package/dist/hooks/useClickOutside.js +18 -0
- package/dist/hooks/useDialogState.d.ts +23 -0
- package/dist/hooks/useDialogState.d.ts.map +1 -0
- package/dist/hooks/useDialogState.js +31 -0
- package/dist/hooks/useEditorPref.d.ts +2 -0
- package/dist/hooks/useEditorPref.d.ts.map +1 -0
- package/dist/hooks/useEditorPref.js +49 -0
- package/dist/hooks/useErrorModal.d.ts +15 -0
- package/dist/hooks/useErrorModal.d.ts.map +1 -0
- package/dist/hooks/useErrorModal.js +35 -0
- package/dist/hooks/useSiteBaseUrl.d.ts +10 -0
- package/dist/hooks/useSiteBaseUrl.d.ts.map +1 -0
- package/dist/hooks/useSiteBaseUrl.js +14 -0
- package/dist/hooks/useTheme.d.ts +13 -0
- package/dist/hooks/useTheme.d.ts.map +1 -0
- package/dist/hooks/useTheme.js +69 -0
- package/dist/hooks/useUnsavedChangesGuard.d.ts +16 -0
- package/dist/hooks/useUnsavedChangesGuard.d.ts.map +1 -0
- package/dist/hooks/useUnsavedChangesGuard.js +29 -0
- package/dist/hooks/useUpload.d.ts +10 -0
- package/dist/hooks/useUpload.d.ts.map +1 -0
- package/dist/hooks/useUpload.js +42 -0
- package/dist/hooks/useUploadFlow.d.ts +42 -0
- package/dist/hooks/useUploadFlow.d.ts.map +1 -0
- package/dist/hooks/useUploadFlow.js +148 -0
- package/dist/host-style-probe.d.ts +22 -0
- package/dist/host-style-probe.d.ts.map +1 -0
- package/dist/host-style-probe.js +508 -0
- package/dist/index.d.mts +167 -39
- package/dist/index.d.mts.map +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12 -0
- package/dist/index.mjs +36 -2
- package/dist/index.mjs.map +1 -0
- package/dist/lib/utils.d.ts +13 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +47 -0
- package/dist/main-spa-781YUplS.mjs +46 -0
- package/dist/main-spa-781YUplS.mjs.map +1 -0
- package/dist/main-spa.d.ts +8 -0
- package/dist/main-spa.d.ts.map +1 -0
- package/dist/main-spa.js +61 -0
- package/dist/main.d.mts +1 -1
- package/dist/main.d.ts +2 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +13 -0
- package/dist/main.mjs +11 -5681
- package/dist/main.mjs.map +1 -1
- package/dist/mdx-components.d.mts +207 -0
- package/dist/mdx-components.d.mts.map +1 -0
- package/dist/mdx-components.d.ts +204 -0
- package/dist/mdx-components.d.ts.map +1 -0
- package/dist/mdx-components.js +217 -0
- package/dist/mdx-components.mjs +208 -0
- package/dist/mdx-components.mjs.map +1 -0
- package/dist/media/AssetScopePill.d.ts +30 -0
- package/dist/media/AssetScopePill.d.ts.map +1 -0
- package/dist/media/AssetScopePill.js +30 -0
- package/dist/media/MediaIssueBadge.d.ts +33 -0
- package/dist/media/MediaIssueBadge.d.ts.map +1 -0
- package/dist/media/MediaIssueBadge.js +54 -0
- package/dist/media/types.d.ts +101 -0
- package/dist/media/types.d.ts.map +1 -0
- package/dist/media/types.js +1 -0
- package/dist/media/use-asset-scope.d.ts +25 -0
- package/dist/media/use-asset-scope.d.ts.map +1 -0
- package/dist/media/use-asset-scope.js +54 -0
- package/dist/media/use-media-issue.d.ts +24 -0
- package/dist/media/use-media-issue.d.ts.map +1 -0
- package/dist/media/use-media-issue.js +49 -0
- package/dist/mock-puck-config.d.mts +23 -0
- package/dist/mock-puck-config.d.mts.map +1 -0
- package/dist/mock-puck-config.d.ts +21 -0
- package/dist/mock-puck-config.d.ts.map +1 -0
- package/dist/mock-puck-config.js +73 -0
- package/dist/mock-puck-config.mjs +125 -0
- package/dist/mock-puck-config.mjs.map +1 -0
- package/dist/page-schemas.d.mts +139 -6
- package/dist/page-schemas.d.mts.map +1 -1
- package/dist/page-schemas.d.ts +156 -0
- package/dist/page-schemas.d.ts.map +1 -0
- package/dist/page-schemas.js +118 -0
- package/dist/page-schemas.mjs +74 -6
- package/dist/page-schemas.mjs.map +1 -1
- package/dist/puck-config.d.mts +0 -1
- package/dist/puck-config.d.mts.map +1 -1
- package/dist/puck-config.d.ts +31 -0
- package/dist/puck-config.d.ts.map +1 -0
- package/dist/puck-config.js +50 -0
- package/dist/puck-config.mjs +3 -4
- package/dist/puck-config.mjs.map +1 -1
- package/dist/selected-block.d.ts +61 -0
- package/dist/selected-block.d.ts.map +1 -0
- package/dist/selected-block.js +64 -0
- package/dist/site-styles.d.mts +90 -8
- package/dist/site-styles.d.mts.map +1 -1
- package/dist/site-styles.d.ts +121 -0
- package/dist/site-styles.d.ts.map +1 -0
- package/dist/site-styles.js +253 -0
- package/dist/site-styles.mjs +187 -5
- package/dist/site-styles.mjs.map +1 -1
- package/dist/spa/main.css +690 -127
- package/dist/toast.d.mts +7 -0
- package/dist/toast.d.mts.map +1 -0
- package/dist/toast.mjs +16 -0
- package/dist/toast.mjs.map +1 -0
- package/dist/types.d.ts +57 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +1 -0
- package/dist/ui-CIacC6Mv.mjs +318 -0
- package/dist/ui-CIacC6Mv.mjs.map +1 -0
- package/dist/ui-config.d.ts +70 -0
- package/dist/ui-config.d.ts.map +1 -0
- package/dist/ui-config.js +44 -0
- package/dist/ui.d.mts +290 -0
- package/dist/ui.d.mts.map +1 -0
- package/dist/ui.mjs +2 -0
- package/dist/utils/asset-url.d.ts +3 -0
- package/dist/utils/asset-url.d.ts.map +1 -0
- package/dist/utils/asset-url.js +7 -0
- package/dist/utils/cn.d.ts +3 -0
- package/dist/utils/cn.d.ts.map +1 -0
- package/dist/utils/cn.js +5 -0
- package/dist/utils/format-date.d.ts +15 -0
- package/dist/utils/format-date.d.ts.map +1 -0
- package/dist/utils/format-date.js +37 -0
- package/dist/utils/mdast-to-html.d.ts +55 -0
- package/dist/utils/mdast-to-html.d.ts.map +1 -0
- package/dist/utils/mdast-to-html.js +206 -0
- package/dist/utils/mdast-tree.d.ts +104 -0
- package/dist/utils/mdast-tree.d.ts.map +1 -0
- package/dist/utils/mdast-tree.js +285 -0
- package/dist/utils/pageMetadata.d.ts +67 -0
- package/dist/utils/pageMetadata.d.ts.map +1 -0
- package/dist/utils/pageMetadata.js +161 -0
- package/dist/utils/slugify.d.ts +12 -0
- package/dist/utils/slugify.d.ts.map +1 -0
- package/dist/utils/slugify.js +17 -0
- package/dist/utils/zodIntrospect.d.ts +24 -0
- package/dist/utils/zodIntrospect.d.ts.map +1 -0
- package/dist/utils/zodIntrospect.js +88 -0
- package/package.json +148 -35
- package/styles/styles.css.d.ts +2 -0
- package/styles/tailwind-theme.css +126 -0
- package/styles/tailwind-theme.css.d.ts +2 -0
- package/dist/puck-C9_F3_cJ.mjs +0 -1589
- package/dist/puck-C9_F3_cJ.mjs.map +0 -1
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Visual palette. The names are semantic ("what is the user being
|
|
4
|
+
* told?") rather than chromatic ("what color is it?"). Two semantic
|
|
5
|
+
* variants can share a palette — e.g. a support-session banner and
|
|
6
|
+
* a success banner are both `success` (green) because the visual
|
|
7
|
+
* weight is the same; the copy carries the meaning.
|
|
8
|
+
*
|
|
9
|
+
* - `info` — azure. Neutral announcements, transient progress,
|
|
10
|
+
* read-only context the user should be aware of.
|
|
11
|
+
* - `warning` — yellow. User-actionable but not catastrophic.
|
|
12
|
+
* Offline state, upstream divergence, provisioning in flight.
|
|
13
|
+
* - `error` — red. Something failed or is blocking. The default
|
|
14
|
+
* ARIA role flips to `alert` for this variant.
|
|
15
|
+
* - `success` — green. Operation succeeded, or persistent context
|
|
16
|
+
* the user can lean on (support session, deploy live).
|
|
17
|
+
*
|
|
18
|
+
* Colors are sourced from the cms-spa Tailwind theme tokens
|
|
19
|
+
* (`{color}-{02..11}`) so dark mode is automatic. Matches the
|
|
20
|
+
* inline-alert palette already used by `BlockWrappers`,
|
|
21
|
+
* `MDXEditField`, `DataEditor`, and `MDXContent` so any host that
|
|
22
|
+
* mixes inline alerts and strip banners reads as one design system.
|
|
23
|
+
*/
|
|
24
|
+
export type BannerVariant = 'info' | 'warning' | 'error' | 'success';
|
|
25
|
+
export interface BannerProps extends Omit<ComponentProps<'div'>, 'title'> {
|
|
26
|
+
/** Visual palette. Required — there's no neutral default that
|
|
27
|
+
* would make sense across the four uses. */
|
|
28
|
+
variant: BannerVariant;
|
|
29
|
+
/** Leading icon. Conventionally a lucide icon at `h-4 w-4`;
|
|
30
|
+
* Banner wraps it in a `flex-shrink-0` so a long description
|
|
31
|
+
* doesn't squeeze it. Pass `<Loader2 className="animate-spin" />`
|
|
32
|
+
* for the loading-state idiom — there is no separate `loading`
|
|
33
|
+
* prop because that would just be a one-import shortcut. */
|
|
34
|
+
icon?: ReactNode;
|
|
35
|
+
/** Bold lead text. Rendered as `<strong>` with right margin so
|
|
36
|
+
* the description flows inline on the same row. */
|
|
37
|
+
title?: ReactNode;
|
|
38
|
+
/** Trailing actions cluster (typically `<Button>`s). Banner wraps
|
|
39
|
+
* them in a `flex items-center gap-2 flex-shrink-0` cluster so
|
|
40
|
+
* they always sit on the right edge. */
|
|
41
|
+
actions?: ReactNode;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Banner primitive.
|
|
45
|
+
*
|
|
46
|
+
* Replaces the per-component restating of the
|
|
47
|
+
* `flex items-start gap-3 px-6 py-3 text-sm border-b bg-{color}-11
|
|
48
|
+
* ... border-{color}-08 ... text-{color}-02 ...` pattern that hosts
|
|
49
|
+
* had been hand-rolling at every banner / alert site. Centralising
|
|
50
|
+
* the surface:
|
|
51
|
+
*
|
|
52
|
+
* - locks the variant palette (one place to change yellow / green /
|
|
53
|
+
* red treatments across every host)
|
|
54
|
+
* - aligns with the inline-alert vocabulary already used inside
|
|
55
|
+
* cms-spa (`BlockWrappers`, `MDXEditField`, etc.) so a "strip"
|
|
56
|
+
* banner at the top of the shell and an "inline" alert inside an
|
|
57
|
+
* editor block read as one design system
|
|
58
|
+
* - dodges the CSS cascade-layer fight on raw atomic classes (see
|
|
59
|
+
* the `Card` primitive's JSDoc for context)
|
|
60
|
+
*
|
|
61
|
+
* Layout is deliberately one-row: icon + title + description +
|
|
62
|
+
* actions, vertically centered (`items-center`). Multi-row or
|
|
63
|
+
* footer content (a `<details>` disclosure, a secondary description
|
|
64
|
+
* block, etc.) is the caller's job — render Banner with the row
|
|
65
|
+
* content, then put the footer below via the parent's layout. If
|
|
66
|
+
* a future banner has genuinely multi-line description that needs
|
|
67
|
+
* top-aligned chrome, add an `align` prop then; do not flip the
|
|
68
|
+
* default — every existing banner reads better centered.
|
|
69
|
+
*
|
|
70
|
+
* ARIA role defaults: `alert` for `error`, `status` for everything
|
|
71
|
+
* else. Override via the standard `role` prop when the default is
|
|
72
|
+
* wrong (e.g. a non-error loading variant that should still be
|
|
73
|
+
* announced assertively).
|
|
74
|
+
*/
|
|
75
|
+
export declare function Banner({ variant, icon, title, actions, className, role, children, ...rest }: BannerProps): import("react/jsx-runtime").JSX.Element;
|
|
76
|
+
//# sourceMappingURL=Banner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Banner.d.ts","sourceRoot":"","sources":["../../../src/components/ui/Banner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;AAgBrE,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IACvE;gDAC4C;IAC5C,OAAO,EAAE,aAAa,CAAC;IACvB;;;;gEAI4D;IAC5D,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;uDACmD;IACnD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;4CAEwC;IACxC,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,MAAM,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,WAAW,2CAexG"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../../utils/cn';
|
|
3
|
+
const VARIANT_CLASS = {
|
|
4
|
+
info: 'bg-azure-11 dark:bg-azure-02 border-azure-08 dark:border-azure-03 text-azure-02 dark:text-azure-09',
|
|
5
|
+
warning: 'bg-yellow-11 dark:bg-yellow-02 border-yellow-08 dark:border-yellow-03 text-yellow-02 dark:text-yellow-09',
|
|
6
|
+
error: 'bg-red-11 dark:bg-red-02 border-red-08 dark:border-red-03 text-red-04 dark:text-red-08',
|
|
7
|
+
success: 'bg-green-11 dark:bg-green-02 border-green-08 dark:border-green-03 text-green-02 dark:text-green-09',
|
|
8
|
+
};
|
|
9
|
+
const DEFAULT_ROLE = {
|
|
10
|
+
info: 'status',
|
|
11
|
+
warning: 'status',
|
|
12
|
+
error: 'alert',
|
|
13
|
+
success: 'status',
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Banner primitive.
|
|
17
|
+
*
|
|
18
|
+
* Replaces the per-component restating of the
|
|
19
|
+
* `flex items-start gap-3 px-6 py-3 text-sm border-b bg-{color}-11
|
|
20
|
+
* ... border-{color}-08 ... text-{color}-02 ...` pattern that hosts
|
|
21
|
+
* had been hand-rolling at every banner / alert site. Centralising
|
|
22
|
+
* the surface:
|
|
23
|
+
*
|
|
24
|
+
* - locks the variant palette (one place to change yellow / green /
|
|
25
|
+
* red treatments across every host)
|
|
26
|
+
* - aligns with the inline-alert vocabulary already used inside
|
|
27
|
+
* cms-spa (`BlockWrappers`, `MDXEditField`, etc.) so a "strip"
|
|
28
|
+
* banner at the top of the shell and an "inline" alert inside an
|
|
29
|
+
* editor block read as one design system
|
|
30
|
+
* - dodges the CSS cascade-layer fight on raw atomic classes (see
|
|
31
|
+
* the `Card` primitive's JSDoc for context)
|
|
32
|
+
*
|
|
33
|
+
* Layout is deliberately one-row: icon + title + description +
|
|
34
|
+
* actions, vertically centered (`items-center`). Multi-row or
|
|
35
|
+
* footer content (a `<details>` disclosure, a secondary description
|
|
36
|
+
* block, etc.) is the caller's job — render Banner with the row
|
|
37
|
+
* content, then put the footer below via the parent's layout. If
|
|
38
|
+
* a future banner has genuinely multi-line description that needs
|
|
39
|
+
* top-aligned chrome, add an `align` prop then; do not flip the
|
|
40
|
+
* default — every existing banner reads better centered.
|
|
41
|
+
*
|
|
42
|
+
* ARIA role defaults: `alert` for `error`, `status` for everything
|
|
43
|
+
* else. Override via the standard `role` prop when the default is
|
|
44
|
+
* wrong (e.g. a non-error loading variant that should still be
|
|
45
|
+
* announced assertively).
|
|
46
|
+
*/
|
|
47
|
+
export function Banner({ variant, icon, title, actions, className, role, children, ...rest }) {
|
|
48
|
+
return (_jsxs("div", { role: role ?? DEFAULT_ROLE[variant], className: cn('flex items-center gap-3 text-sm border-b px-6 py-3', VARIANT_CLASS[variant], className), ...rest, children: [icon ? _jsx("span", { className: "flex-shrink-0 inline-flex items-center h-5", children: icon }) : null, _jsxs("div", { className: "flex-1 min-w-0", children: [title ? _jsx("strong", { className: "font-semibold mr-2", children: title }) : null, children] }), actions ? _jsx("div", { className: "flex items-center gap-2 flex-shrink-0", children: actions }) : null] }));
|
|
49
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ButtonHTMLAttributes, Ref } from 'react';
|
|
2
|
+
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
|
+
variant?: 'primary' | 'outline' | 'ghost' | 'destructive' | 'tonal';
|
|
4
|
+
size?: 'default' | 'sm';
|
|
5
|
+
ref?: Ref<HTMLButtonElement>;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Variants:
|
|
9
|
+
*
|
|
10
|
+
* - `primary` — solid azure fill, white text. Default action.
|
|
11
|
+
* - `outline` — bordered, panel-background, grey text. Secondary on
|
|
12
|
+
* panel surfaces.
|
|
13
|
+
* - `ghost` — no resting fill, grey text. Tertiary on panel surfaces.
|
|
14
|
+
* - `tonal` — soft grey fill (grey-11 / dark:grey-03), grey text. The
|
|
15
|
+
* "soft secondary" used on chrome surfaces (host shells, toolbars)
|
|
16
|
+
* where `outline` would compete with the surface border and `ghost`
|
|
17
|
+
* would visually disappear against the chrome's own grey wash.
|
|
18
|
+
* Sized for compact toolbar usage; pairs naturally with
|
|
19
|
+
* `size="sm"`.
|
|
20
|
+
* - `destructive` — solid red fill, white text. Confirms a destructive
|
|
21
|
+
* action.
|
|
22
|
+
*/
|
|
23
|
+
export declare function Button({ variant, size, type, className, ref, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAGvD,UAAU,WAAY,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IACnE,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,aAAa,GAAG,OAAO,CAAC;IACpE,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IACxB,GAAG,CAAC,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAC;CAC9B;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,MAAM,CAAC,EACrB,OAAmB,EACnB,IAAgB,EAChB,IAAe,EACf,SAAS,EACT,GAAG,EACH,GAAG,KAAK,EACT,EAAE,WAAW,2CAiBb"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../../utils/cn';
|
|
3
|
+
/**
|
|
4
|
+
* Variants:
|
|
5
|
+
*
|
|
6
|
+
* - `primary` — solid azure fill, white text. Default action.
|
|
7
|
+
* - `outline` — bordered, panel-background, grey text. Secondary on
|
|
8
|
+
* panel surfaces.
|
|
9
|
+
* - `ghost` — no resting fill, grey text. Tertiary on panel surfaces.
|
|
10
|
+
* - `tonal` — soft grey fill (grey-11 / dark:grey-03), grey text. The
|
|
11
|
+
* "soft secondary" used on chrome surfaces (host shells, toolbars)
|
|
12
|
+
* where `outline` would compete with the surface border and `ghost`
|
|
13
|
+
* would visually disappear against the chrome's own grey wash.
|
|
14
|
+
* Sized for compact toolbar usage; pairs naturally with
|
|
15
|
+
* `size="sm"`.
|
|
16
|
+
* - `destructive` — solid red fill, white text. Confirms a destructive
|
|
17
|
+
* action.
|
|
18
|
+
*/
|
|
19
|
+
export function Button({ variant = 'primary', size = 'default', type = 'button', className, ref, ...props }) {
|
|
20
|
+
const base = 'rounded-md transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed';
|
|
21
|
+
const sizes = {
|
|
22
|
+
default: 'px-4 py-2',
|
|
23
|
+
sm: 'px-3 py-1.5 text-sm',
|
|
24
|
+
};
|
|
25
|
+
const variants = {
|
|
26
|
+
primary: 'bg-azure-04 text-white hover:bg-azure-03',
|
|
27
|
+
outline: 'border border-line bg-panel text-grey-04 dark:text-grey-07 hover:bg-hover hover:text-grey-01 dark:hover:text-grey-12',
|
|
28
|
+
ghost: 'text-grey-04 dark:text-grey-07 hover:bg-hover hover:text-grey-01 dark:hover:text-grey-12',
|
|
29
|
+
tonal: 'bg-grey-11 dark:bg-grey-03 text-grey-04 dark:text-grey-07 hover:bg-grey-10 dark:hover:bg-hover hover:text-grey-01 dark:hover:text-grey-12',
|
|
30
|
+
destructive: 'bg-red-04 text-white hover:bg-red-03',
|
|
31
|
+
};
|
|
32
|
+
return _jsx("button", { ref: ref, type: type, className: cn(base, sizes[size], variants[variant], className), ...props });
|
|
33
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Surface vocabulary shared with `Dialog.Content` so any host
|
|
4
|
+
* shell that mixes plain cards and dialog panels reads as one
|
|
5
|
+
* design system rather than two.
|
|
6
|
+
*
|
|
7
|
+
* - `panel` — opaque-white-on-light, opaque-grey-on-dark, with a
|
|
8
|
+
* border. The default for pre-auth screens, account menus, and
|
|
9
|
+
* any anchored popover. Matches `Dialog.Content surface="panel"`
|
|
10
|
+
* verbatim so a panel that turns into a dialog (or vice versa)
|
|
11
|
+
* doesn't visually jump.
|
|
12
|
+
* - `elevated` — borderless white-on-light, near-black-on-dark.
|
|
13
|
+
* For floating surfaces that read as "lifted off the page"
|
|
14
|
+
* (think menu portals); kept as a separate variant rather than
|
|
15
|
+
* folding into `panel` so the absence of a border is explicit.
|
|
16
|
+
*/
|
|
17
|
+
export type CardSurface = 'panel' | 'elevated';
|
|
18
|
+
/**
|
|
19
|
+
* Inner padding scale. The pre-auth `LoginScreen` card uses `xl`;
|
|
20
|
+
* tight popovers (account menu) use `sm`; the default `md` covers
|
|
21
|
+
* most cases. `none` exists for callers that want to manage
|
|
22
|
+
* padding internally (e.g. a header row + body split where the
|
|
23
|
+
* dividing line should extend to the card edge).
|
|
24
|
+
*/
|
|
25
|
+
export type CardPadding = 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
26
|
+
/**
|
|
27
|
+
* Border radius. `md` is the conventional Conloca card radius and
|
|
28
|
+
* matches `Dialog.Content surface="panel"`. `lg` is reserved for
|
|
29
|
+
* overlay-style surfaces; `sm` for tight chips that have card
|
|
30
|
+
* affordances (rare).
|
|
31
|
+
*/
|
|
32
|
+
export type CardRadius = 'sm' | 'md' | 'lg';
|
|
33
|
+
/**
|
|
34
|
+
* Drop-shadow scale. `sm` is the default for resting cards; `lg`
|
|
35
|
+
* matches the dialog overlay treatment. `none` exists so callers
|
|
36
|
+
* can stack cards inside larger surfaces without a double shadow.
|
|
37
|
+
*/
|
|
38
|
+
export type CardShadow = 'none' | 'sm' | 'md' | 'lg';
|
|
39
|
+
export interface CardProps extends ComponentProps<'div'> {
|
|
40
|
+
/** Visual surface treatment. Default `panel`. */
|
|
41
|
+
surface?: CardSurface;
|
|
42
|
+
/** Inner padding scale. Default `md`. */
|
|
43
|
+
padding?: CardPadding;
|
|
44
|
+
/** Corner radius. Default `md`. */
|
|
45
|
+
radius?: CardRadius;
|
|
46
|
+
/** Drop shadow scale. Default `sm`. */
|
|
47
|
+
shadow?: CardShadow;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Generic card surface primitive.
|
|
51
|
+
*
|
|
52
|
+
* Hosted shells (pre-auth screens, account menus, banner panels,
|
|
53
|
+
* etc.) compose this rather than restating
|
|
54
|
+
* `bg-white dark:bg-grey-02 border border-grey-09 ... rounded-md
|
|
55
|
+
* shadow-sm` at every call site. Centralising the surface here:
|
|
56
|
+
*
|
|
57
|
+
* - keeps the visual vocabulary aligned with `Dialog.Content`
|
|
58
|
+
* (same `panel` classes — see `SURFACE_CLASS`)
|
|
59
|
+
* - prevents drift (no more "this screen has px-8 py-10, that one
|
|
60
|
+
* has px-6 py-8 and nobody noticed")
|
|
61
|
+
* - dodges the CSS cascade-layer fight that bites raw Tailwind
|
|
62
|
+
* `px-*` / `py-*` classes on consumers outside cms-spa. Card's
|
|
63
|
+
* classes are compiled into cms-spa's bundle alongside the
|
|
64
|
+
* Tailwind preflight reset, so they resolve in the same layer
|
|
65
|
+
* and the reset's `* { padding: 0 }` doesn't win.
|
|
66
|
+
*
|
|
67
|
+
* Layout (`flex`, `gap-*`, `max-w-*`, alignment) stays on the
|
|
68
|
+
* caller via `className` — Card owns the surface; the caller owns
|
|
69
|
+
* what's inside and how the card sits on the page.
|
|
70
|
+
*/
|
|
71
|
+
export declare function Card({ surface, padding, radius, shadow, className, ...rest }: CardProps): import("react/jsx-runtime").JSX.Element;
|
|
72
|
+
//# sourceMappingURL=Card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/components/ui/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,UAAU,CAAC;AAE/C;;;;;;GAMG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE7D;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE5C;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AA4BrD,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,KAAK,CAAC;IACtD,iDAAiD;IACjD,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,yCAAyC;IACzC,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,mCAAmC;IACnC,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,uCAAuC;IACvC,MAAM,CAAC,EAAE,UAAU,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,IAAI,CAAC,EACnB,OAAiB,EACjB,OAAc,EACd,MAAa,EACb,MAAa,EACb,SAAS,EACT,GAAG,IAAI,EACR,EAAE,SAAS,2CAaX"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../../utils/cn';
|
|
3
|
+
const SURFACE_CLASS = {
|
|
4
|
+
panel: 'bg-white dark:bg-grey-02 border border-grey-09 dark:border-grey-03',
|
|
5
|
+
elevated: 'bg-white dark:bg-grey-01',
|
|
6
|
+
};
|
|
7
|
+
const PADDING_CLASS = {
|
|
8
|
+
none: '',
|
|
9
|
+
sm: 'p-2',
|
|
10
|
+
md: 'p-4',
|
|
11
|
+
lg: 'p-6',
|
|
12
|
+
xl: 'px-8 py-10',
|
|
13
|
+
};
|
|
14
|
+
const RADIUS_CLASS = {
|
|
15
|
+
sm: 'rounded-sm',
|
|
16
|
+
md: 'rounded-md',
|
|
17
|
+
lg: 'rounded-lg',
|
|
18
|
+
};
|
|
19
|
+
const SHADOW_CLASS = {
|
|
20
|
+
none: '',
|
|
21
|
+
sm: 'shadow-sm',
|
|
22
|
+
md: 'shadow-md',
|
|
23
|
+
lg: 'shadow-lg',
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Generic card surface primitive.
|
|
27
|
+
*
|
|
28
|
+
* Hosted shells (pre-auth screens, account menus, banner panels,
|
|
29
|
+
* etc.) compose this rather than restating
|
|
30
|
+
* `bg-white dark:bg-grey-02 border border-grey-09 ... rounded-md
|
|
31
|
+
* shadow-sm` at every call site. Centralising the surface here:
|
|
32
|
+
*
|
|
33
|
+
* - keeps the visual vocabulary aligned with `Dialog.Content`
|
|
34
|
+
* (same `panel` classes — see `SURFACE_CLASS`)
|
|
35
|
+
* - prevents drift (no more "this screen has px-8 py-10, that one
|
|
36
|
+
* has px-6 py-8 and nobody noticed")
|
|
37
|
+
* - dodges the CSS cascade-layer fight that bites raw Tailwind
|
|
38
|
+
* `px-*` / `py-*` classes on consumers outside cms-spa. Card's
|
|
39
|
+
* classes are compiled into cms-spa's bundle alongside the
|
|
40
|
+
* Tailwind preflight reset, so they resolve in the same layer
|
|
41
|
+
* and the reset's `* { padding: 0 }` doesn't win.
|
|
42
|
+
*
|
|
43
|
+
* Layout (`flex`, `gap-*`, `max-w-*`, alignment) stays on the
|
|
44
|
+
* caller via `className` — Card owns the surface; the caller owns
|
|
45
|
+
* what's inside and how the card sits on the page.
|
|
46
|
+
*/
|
|
47
|
+
export function Card({ surface = 'panel', padding = 'md', radius = 'md', shadow = 'sm', className, ...rest }) {
|
|
48
|
+
return (_jsx("div", { className: cn(SURFACE_CLASS[surface], PADDING_CLASS[padding], RADIUS_CLASS[radius], SHADOW_CLASS[shadow], className), ...rest }));
|
|
49
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
interface FieldErrorProps {
|
|
3
|
+
/**
|
|
4
|
+
* Optional id so the form field can wire `aria-describedby` to the
|
|
5
|
+
* error message for assistive tech.
|
|
6
|
+
*/
|
|
7
|
+
id?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Inline form-error message: small alert-circle icon + red text-xs body.
|
|
13
|
+
*
|
|
14
|
+
* Renders with `role="alert"` so the browser surfaces the message to
|
|
15
|
+
* assistive tech the moment it appears. Pair with `aria-invalid` on
|
|
16
|
+
* the field and `aria-describedby` pointing at this element's id.
|
|
17
|
+
*
|
|
18
|
+
* Layout: `inline-flex items-center gap-2`. Drop-in replacement for the
|
|
19
|
+
* `<AlertCircle h-3 w-3 /> + text-xs text-red-04` pattern that was
|
|
20
|
+
* being hand-rolled across hosted-shell form fields.
|
|
21
|
+
*/
|
|
22
|
+
export declare function FieldError({ id, className, children }: FieldErrorProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=FieldError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FieldError.d.ts","sourceRoot":"","sources":["../../../src/components/ui/FieldError.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,UAAU,eAAe;IACvB;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,UAAU,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,eAAe,2CAOtE"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { AlertCircle } from 'lucide-react';
|
|
3
|
+
import { cn } from '../../utils/cn';
|
|
4
|
+
/**
|
|
5
|
+
* Inline form-error message: small alert-circle icon + red text-xs body.
|
|
6
|
+
*
|
|
7
|
+
* Renders with `role="alert"` so the browser surfaces the message to
|
|
8
|
+
* assistive tech the moment it appears. Pair with `aria-invalid` on
|
|
9
|
+
* the field and `aria-describedby` pointing at this element's id.
|
|
10
|
+
*
|
|
11
|
+
* Layout: `inline-flex items-center gap-2`. Drop-in replacement for the
|
|
12
|
+
* `<AlertCircle h-3 w-3 /> + text-xs text-red-04` pattern that was
|
|
13
|
+
* being hand-rolled across hosted-shell form fields.
|
|
14
|
+
*/
|
|
15
|
+
export function FieldError({ id, className, children }) {
|
|
16
|
+
return (_jsxs("span", { id: id, role: "alert", className: cn('inline-flex items-center gap-2 text-xs text-red-04', className), children: [_jsx(AlertCircle, { "aria-hidden": true, className: "h-3 w-3 flex-shrink-0" }), _jsx("span", { children: children })] }));
|
|
17
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { LucideIcon } from 'lucide-react';
|
|
2
|
+
interface IconButtonProps {
|
|
3
|
+
icon: LucideIcon;
|
|
4
|
+
onClick?: () => void;
|
|
5
|
+
ariaLabel: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
iconSize?: string;
|
|
9
|
+
variant?: 'default' | 'ghost';
|
|
10
|
+
}
|
|
11
|
+
export declare function IconButton({ icon: Icon, onClick, ariaLabel, title, className, iconSize, variant, }: IconButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=IconButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../src/components/ui/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG/C,UAAU,eAAe;IACvB,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;CAC/B;AAED,wBAAgB,UAAU,CAAC,EACzB,IAAI,EAAE,IAAI,EACV,OAAO,EACP,SAAS,EACT,KAAK,EACL,SAAS,EACT,QAAoB,EACpB,OAAmB,GACpB,EAAE,eAAe,2CAkBjB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../../utils/cn';
|
|
3
|
+
export function IconButton({ icon: Icon, onClick, ariaLabel, title, className, iconSize = 'h-4 w-4', variant = 'default', }) {
|
|
4
|
+
const baseClasses = 'p-2 rounded-md transition-all duration-150 cursor-pointer';
|
|
5
|
+
const variantClasses = {
|
|
6
|
+
default: 'text-grey-03 dark:text-grey-09 hover:bg-hover hover:text-grey-01 dark:hover:text-grey-12',
|
|
7
|
+
ghost: 'text-grey-04 dark:text-grey-07 hover:bg-hover hover:text-grey-01 dark:hover:text-grey-12',
|
|
8
|
+
};
|
|
9
|
+
return (_jsx("button", { type: "button", onClick: onClick, className: cn(baseClasses, variantClasses[variant], className), "aria-label": ariaLabel, title: title || ariaLabel, children: _jsx(Icon, { className: iconSize }) }));
|
|
10
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { InputHTMLAttributes, Ref } from 'react';
|
|
2
|
+
interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
3
|
+
/**
|
|
4
|
+
* Visual size:
|
|
5
|
+
* - `default` — comfortable padding, body type.
|
|
6
|
+
* - `sm` — same padding, smaller (text-sm) type. Width-flexible.
|
|
7
|
+
* - `xs` — height-locked at `h-8` with `text-sm`. The chrome-strip
|
|
8
|
+
* size; pairs with `Button size="sm"` so toolbars and inline form
|
|
9
|
+
* rows align cleanly.
|
|
10
|
+
*/
|
|
11
|
+
size?: 'default' | 'sm' | 'xs';
|
|
12
|
+
/**
|
|
13
|
+
* Surface the input sits on:
|
|
14
|
+
* - `panel` (default) — `bg-panel` / `border-line`. Use inside
|
|
15
|
+
* panel-tone surfaces (cms-spa dialogs and side panels) where
|
|
16
|
+
* the input should read recessed against the panel.
|
|
17
|
+
* - `elevated` — `bg-white dark:bg-grey-01`, explicit grey border.
|
|
18
|
+
* Use inside chrome surfaces (host strips, panel-toned dialogs)
|
|
19
|
+
* where `bg-panel` (which collapses to `grey-02` in dark mode)
|
|
20
|
+
* would blend with the surface itself. The elevated bg is
|
|
21
|
+
* blacker than the strip's grey-02 in dark mode, restoring the
|
|
22
|
+
* contrast that the panel surface erases.
|
|
23
|
+
*/
|
|
24
|
+
surface?: 'panel' | 'elevated';
|
|
25
|
+
/**
|
|
26
|
+
* When true, drops the default `w-full` so the input is laid out at
|
|
27
|
+
* its native intrinsic width (driven by the HTML `size` attribute
|
|
28
|
+
* or any `min-w-*` className). Use inside inline-flex form rows or
|
|
29
|
+
* flex columns where the input shouldn't dominate the row width.
|
|
30
|
+
*/
|
|
31
|
+
intrinsic?: boolean;
|
|
32
|
+
error?: boolean;
|
|
33
|
+
ref?: Ref<HTMLInputElement>;
|
|
34
|
+
}
|
|
35
|
+
export declare function Input({ size, surface, intrinsic, error, className, ref, ...props }: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export {};
|
|
37
|
+
//# sourceMappingURL=Input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/ui/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAGtD,UAAU,UAAW,SAAQ,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC9E;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,GAAG,IAAI,CAAC;IAC/B;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;IAC/B;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;CAC7B;AAED,wBAAgB,KAAK,CAAC,EACpB,IAAgB,EAChB,OAAiB,EACjB,SAAiB,EACjB,KAAK,EACL,SAAS,EACT,GAAG,EACH,GAAG,KAAK,EACT,EAAE,UAAU,2CAoBZ"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../../utils/cn';
|
|
3
|
+
export function Input({ size = 'default', surface = 'panel', intrinsic = false, error, className, ref, ...props }) {
|
|
4
|
+
return (_jsx("input", { ref: ref, className: cn(intrinsic ? null : 'w-full', 'rounded-md border text-grey-01 dark:text-grey-12', 'focus:outline-none focus:ring-2 focus:ring-azure-04', size === 'xs' ? 'h-8 px-3 text-sm' : size === 'sm' ? 'px-3 py-2 text-sm' : 'px-3 py-2', surface === 'elevated' ? 'bg-white dark:bg-grey-01' : 'bg-panel', error
|
|
5
|
+
? 'border-red-04 focus:ring-red-04'
|
|
6
|
+
: surface === 'elevated'
|
|
7
|
+
? 'border-grey-09 dark:border-grey-04'
|
|
8
|
+
: 'border-line', className), ...props }));
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SaveState } from '../../types';
|
|
2
|
+
interface SaveIndicatorProps {
|
|
3
|
+
state: SaveState;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function SaveIndicator({ state, className }: SaveIndicatorProps): import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=SaveIndicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SaveIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/ui/SaveIndicator.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAG7C,UAAU,kBAAkB;IAC1B,KAAK,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,kBAAkB,kDAkCrE"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { AlertTriangle, Check, Loader2, X } from 'lucide-react';
|
|
3
|
+
import { cn } from '../../utils/cn';
|
|
4
|
+
export function SaveIndicator({ state, className }) {
|
|
5
|
+
const stateConfig = {
|
|
6
|
+
idle: null,
|
|
7
|
+
saving: {
|
|
8
|
+
icon: _jsx(Loader2, { className: "lucide lucide-loader-2 h-4 w-4 animate-spin" }),
|
|
9
|
+
text: 'Saving...',
|
|
10
|
+
className: 'text-grey-04',
|
|
11
|
+
},
|
|
12
|
+
saved: {
|
|
13
|
+
icon: _jsx(Check, { className: "lucide lucide-check h-4 w-4" }),
|
|
14
|
+
text: 'Saved',
|
|
15
|
+
className: 'text-green-06',
|
|
16
|
+
},
|
|
17
|
+
error: {
|
|
18
|
+
icon: _jsx(X, { className: "lucide lucide-x h-4 w-4" }),
|
|
19
|
+
text: 'Error',
|
|
20
|
+
className: 'text-red-04',
|
|
21
|
+
},
|
|
22
|
+
conflict: {
|
|
23
|
+
icon: _jsx(AlertTriangle, { className: "lucide lucide-alert-triangle h-4 w-4" }),
|
|
24
|
+
text: 'Conflict',
|
|
25
|
+
className: 'text-yellow-06',
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
const config = stateConfig[state];
|
|
29
|
+
if (!config)
|
|
30
|
+
return null;
|
|
31
|
+
return (_jsxs("div", { className: cn('flex items-center gap-2', config.className, className), "data-testid": `save-indicator-${state}`, children: [config.icon, _jsx("span", { className: "text-sm", children: config.text })] }));
|
|
32
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Ref, SelectHTMLAttributes } from 'react';
|
|
2
|
+
interface SelectProps extends Omit<SelectHTMLAttributes<HTMLSelectElement>, 'size'> {
|
|
3
|
+
size?: 'default' | 'sm';
|
|
4
|
+
ref?: Ref<HTMLSelectElement>;
|
|
5
|
+
}
|
|
6
|
+
export declare function Select({ size, className, children, ref, ...props }: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=Select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/ui/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAGvD,UAAU,WAAY,SAAQ,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IACjF,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IACxB,GAAG,CAAC,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAC;CAC9B;AAED,wBAAgB,MAAM,CAAC,EAAE,IAAgB,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,2CAoB3F"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../../utils/cn';
|
|
3
|
+
export function Select({ size = 'default', className, children, ref, ...props }) {
|
|
4
|
+
return (_jsx("select", { ref: ref, className: cn(
|
|
5
|
+
// appearance-none removes the native OS chrome (white box on dark themes,
|
|
6
|
+
// platform-default fonts). The custom chevron is painted via background-image
|
|
7
|
+
// so the select still looks like a dropdown without the cross-OS inconsistency.
|
|
8
|
+
'w-full appearance-none rounded-md border bg-panel border-line text-grey-01 dark:text-grey-12', 'pr-8 bg-no-repeat bg-[length:1.25rem_1.25rem] bg-[right_0.5rem_center]', "bg-[url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' viewBox='0 0 20 20'><path stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/></svg>\")]", 'focus:outline-none focus:ring-2 focus:ring-azure-04', size === 'sm' ? 'px-3 py-1.5 text-sm' : 'px-3 py-2', className), ...props, children: children }));
|
|
9
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface SeparatorProps {
|
|
2
|
+
className?: string;
|
|
3
|
+
orientation?: 'vertical' | 'horizontal';
|
|
4
|
+
}
|
|
5
|
+
export declare function Separator({ className, orientation }: SeparatorProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=Separator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Separator.d.ts","sourceRoot":"","sources":["../../../src/components/ui/Separator.tsx"],"names":[],"mappings":"AAEA,UAAU,cAAc;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;CACzC;AAED,wBAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,WAAwB,EAAE,EAAE,cAAc,2CAkBhF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../../utils/cn';
|
|
3
|
+
export function Separator({ className, orientation = 'vertical' }) {
|
|
4
|
+
if (orientation === 'horizontal') {
|
|
5
|
+
return (_jsx("div", { className: cn('w-full h-px bg-grey-09 dark:bg-grey-04', className), role: "separator", "aria-orientation": "horizontal" }));
|
|
6
|
+
}
|
|
7
|
+
return (_jsx("div", { className: cn('h-5 w-px bg-grey-09 dark:bg-grey-04', className), role: "separator", "aria-orientation": "vertical" }));
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Ref, TextareaHTMLAttributes } from 'react';
|
|
2
|
+
interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
3
|
+
error?: boolean;
|
|
4
|
+
ref?: Ref<HTMLTextAreaElement>;
|
|
5
|
+
}
|
|
6
|
+
export declare function Textarea({ error, className, ref, ...props }: TextareaProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=Textarea.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/components/ui/Textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,sBAAsB,EAAE,MAAM,OAAO,CAAC;AAGzD,UAAU,aAAc,SAAQ,sBAAsB,CAAC,mBAAmB,CAAC;IACzE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,GAAG,CAAC,EAAE,GAAG,CAAC,mBAAmB,CAAC,CAAC;CAChC;AAED,wBAAgB,QAAQ,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,2CAa1E"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../../utils/cn';
|
|
3
|
+
export function Textarea({ error, className, ref, ...props }) {
|
|
4
|
+
return (_jsx("textarea", { ref: ref, className: cn('w-full px-3 py-2 rounded-md border bg-panel text-grey-01 dark:text-grey-12', 'focus:outline-none focus:ring-2 focus:ring-azure-04', error ? 'border-red-04 focus:ring-red-04' : 'border-line', className), ...props }));
|
|
5
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
interface TooltipProps {
|
|
3
|
+
content: string;
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function Tooltip({ content, children, className }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=Tooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/ui/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAEjD,UAAU,YAAY;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,OAAO,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAc,EAAE,EAAE,YAAY,2CAqB1E"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
export function Tooltip({ content, children, className = '' }) {
|
|
4
|
+
const [isVisible, setIsVisible] = useState(false);
|
|
5
|
+
return (_jsxs("div", { className: "relative inline-block", children: [_jsx("div", { onMouseEnter: () => setIsVisible(true), onMouseLeave: () => setIsVisible(false), children: children }), isVisible && (_jsxs("div", { className: `absolute z-10 px-3 py-2 text-sm text-white bg-grey-01 rounded-lg shadow-sm
|
|
6
|
+
bottom-full left-1/2 transform -translate-x-1/2 mb-2 whitespace-nowrap ${className}`, children: [content, _jsx("div", { className: "absolute top-full left-1/2 transform -translate-x-1/2 -mt-1", children: _jsx("div", { className: "w-0 h-0 border-l-4 border-r-4 border-t-4 border-l-transparent border-r-transparent border-t-grey-01" }) })] }))] }));
|
|
7
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { ConlocaLogo } from '../ConlocaLogo';
|
|
2
|
+
export type { BannerProps, BannerVariant } from './Banner';
|
|
3
|
+
export { Banner } from './Banner';
|
|
4
|
+
export { Button } from './Button';
|
|
5
|
+
export { Card } from './Card';
|
|
6
|
+
export { FieldError } from './FieldError';
|
|
7
|
+
export { IconButton } from './IconButton';
|
|
8
|
+
export { Input } from './Input';
|
|
9
|
+
export { SaveIndicator } from './SaveIndicator';
|
|
10
|
+
export { Select } from './Select';
|
|
11
|
+
export { Separator } from './Separator';
|
|
12
|
+
export { Textarea } from './Textarea';
|
|
13
|
+
export { Tooltip } from './Tooltip';
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ui/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
|