@astryxdesign/cli 0.0.0-bootstrap.0 → 0.1.0-canary.0b5b49f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +354 -0
- package/LICENSE +21 -0
- package/README.md +397 -1
- package/bin/astryx.mjs +87 -0
- package/docs/color.doc.mjs +88 -0
- package/docs/elevation.doc.mjs +86 -0
- package/docs/getting-started.doc.mjs +180 -0
- package/docs/icons.doc.mjs +121 -0
- package/docs/illustrations.doc.mjs +86 -0
- package/docs/migration.doc.mjs +250 -0
- package/docs/motion.doc.mjs +158 -0
- package/docs/principles.doc.dense.mjs +14 -0
- package/docs/principles.doc.mjs +93 -0
- package/docs/principles.doc.zh.mjs +14 -0
- package/docs/shape.doc.mjs +76 -0
- package/docs/spacing.doc.mjs +86 -0
- package/docs/styling-libraries.doc.mjs +465 -0
- package/docs/styling.doc.mjs +359 -0
- package/docs/theme.doc.dense.mjs +21 -0
- package/docs/theme.doc.mjs +604 -0
- package/docs/theme.doc.zh.mjs +19 -0
- package/docs/tokens.doc.dense.mjs +16 -0
- package/docs/tokens.doc.mjs +1076 -0
- package/docs/tokens.doc.zh.mjs +16 -0
- package/docs/typography.doc.mjs +228 -0
- package/docs/working-with-ai.doc.mjs +198 -0
- package/package.json +76 -5
- package/src/api/component.mjs +394 -0
- package/src/api/discover.mjs +165 -0
- package/src/api/docs.mjs +163 -0
- package/src/api/doctor.mjs +537 -0
- package/src/api/error.mjs +38 -0
- package/src/api/hook.mjs +196 -0
- package/src/api/index.mjs +29 -0
- package/src/api/search.mjs +363 -0
- package/src/api/template.mjs +567 -0
- package/src/api/template.test.mjs +78 -0
- package/src/cli-exit-codes.test.mjs +177 -0
- package/src/codemods/__tests__/registry.test.mjs +60 -0
- package/src/codemods/__tests__/rename-imperative-ref-to-handleRef.test.mjs +65 -0
- package/src/codemods/__tests__/rename-isStreaming-to-isStopShown.test.mjs +58 -0
- package/src/codemods/__tests__/rename-section-wash-to-muted.test.mjs +103 -0
- package/src/codemods/__tests__/toolbar-density-to-size.test.mjs +69 -0
- package/src/codemods/__tests__/validation.test.mjs +108 -0
- package/src/codemods/ensure-jscodeshift.mjs +86 -0
- package/src/codemods/registry.mjs +60 -0
- package/src/codemods/runner.mjs +380 -0
- package/src/codemods/transforms/v0.0.10/__tests__/remove-size-props.test.mjs +144 -0
- package/src/codemods/transforms/v0.0.10/index.mjs +19 -0
- package/src/codemods/transforms/v0.0.10/remove-size-props.mjs +94 -0
- package/src/codemods/transforms/v0.0.12/__tests__/add-is-icon-only.test.mjs +193 -0
- package/src/codemods/transforms/v0.0.12/add-is-icon-only.mjs +316 -0
- package/src/codemods/transforms/v0.0.12/index.mjs +24 -0
- package/src/codemods/transforms/v0.0.13/__tests__/icon-name-deprecations.test.mjs +81 -0
- package/src/codemods/transforms/v0.0.13/__tests__/rename-attachments-to-drawer.test.mjs +126 -0
- package/src/codemods/transforms/v0.0.13/icon-name-deprecations.mjs +130 -0
- package/src/codemods/transforms/v0.0.13/index.mjs +37 -0
- package/src/codemods/transforms/v0.0.13/rename-attachments-to-drawer.mjs +166 -0
- package/src/codemods/transforms/v0.0.13/toolbar-density-to-size.mjs +159 -0
- package/src/codemods/transforms/v0.0.14/__tests__/rename-action-props.test.mjs +129 -0
- package/src/codemods/transforms/v0.0.14/__tests__/rename-status-variants.test.mjs +205 -0
- package/src/codemods/transforms/v0.0.14/index.mjs +37 -0
- package/src/codemods/transforms/v0.0.14/rename-action-props.mjs +160 -0
- package/src/codemods/transforms/v0.0.14/rename-section-wash-to-muted.mjs +131 -0
- package/src/codemods/transforms/v0.0.14/rename-status-variants.mjs +248 -0
- package/src/codemods/transforms/v0.0.15/__tests__/drop-xds-prefix-imports.test.mjs +137 -0
- package/src/codemods/transforms/v0.0.15/__tests__/migrate-item-children-to-endcontent.test.mjs +95 -0
- package/src/codemods/transforms/v0.0.15/__tests__/migrate-selector-children-to-render-option.test.mjs +109 -0
- package/src/codemods/transforms/v0.0.15/__tests__/migrate-theme-selectors-to-data-attrs.test.mjs +44 -0
- package/src/codemods/transforms/v0.0.15/__tests__/rename-date-picker-to-input.test.mjs +110 -0
- package/src/codemods/transforms/v0.0.15/__tests__/rename-stack-element-to-as.test.mjs +71 -0
- package/src/codemods/transforms/v0.0.15/drop-xds-prefix-imports.mjs +226 -0
- package/src/codemods/transforms/v0.0.15/index.mjs +87 -0
- package/src/codemods/transforms/v0.0.15/migrate-item-children-to-endcontent.mjs +129 -0
- package/src/codemods/transforms/v0.0.15/migrate-selector-children-to-render-option.mjs +189 -0
- package/src/codemods/transforms/v0.0.15/migrate-theme-selectors-to-data-attrs.mjs +235 -0
- package/src/codemods/transforms/v0.0.15/rename-date-picker-to-input.mjs +114 -0
- package/src/codemods/transforms/v0.0.15/rename-imperative-ref-to-handleRef.mjs +67 -0
- package/src/codemods/transforms/v0.0.15/rename-isStreaming-to-isStopShown.mjs +51 -0
- package/src/codemods/transforms/v0.0.15/rename-stack-element-to-as.mjs +41 -0
- package/src/codemods/transforms/v0.0.2/__tests__/migrate-badge-dot-to-statusdot.test.mjs +137 -0
- package/src/codemods/transforms/v0.0.2/__tests__/migrate-gap-to-numeric.test.mjs +161 -0
- package/src/codemods/transforms/v0.0.2/__tests__/migrate-isFullBleed-to-padding.test.mjs +137 -0
- package/src/codemods/transforms/v0.0.2/__tests__/migrate-useXDSIcon-to-getIcon.test.mjs +110 -0
- package/src/codemods/transforms/v0.0.2/__tests__/rename-banner-endButton-to-endContent.test.mjs +61 -0
- package/src/codemods/transforms/v0.0.2/__tests__/rename-form-tooltip-startIcon.test.mjs +130 -0
- package/src/codemods/transforms/v0.0.2/__tests__/rename-isShown-to-isOpen.test.mjs +89 -0
- package/src/codemods/transforms/v0.0.2/__tests__/rename-selector-items-to-options.test.mjs +74 -0
- package/src/codemods/transforms/v0.0.2/__tests__/rename-sidenav-header-to-heading.test.mjs +140 -0
- package/src/codemods/transforms/v0.0.2/__tests__/rename-topnav-title-to-heading.test.mjs +116 -0
- package/src/codemods/transforms/v0.0.2/__tests__/unify-uncontrolled-to-defaultX.test.mjs +79 -0
- package/src/codemods/transforms/v0.0.2/__tests__/unify-visibility-to-onOpenChange.test.mjs +130 -0
- package/src/codemods/transforms/v0.0.2/index.mjs +106 -0
- package/src/codemods/transforms/v0.0.2/migrate-badge-dot-to-statusdot.mjs +228 -0
- package/src/codemods/transforms/v0.0.2/migrate-gap-to-numeric.mjs +121 -0
- package/src/codemods/transforms/v0.0.2/migrate-isFullBleed-to-padding.mjs +106 -0
- package/src/codemods/transforms/v0.0.2/migrate-useXDSIcon-to-getIcon.mjs +122 -0
- package/src/codemods/transforms/v0.0.2/rename-banner-endButton-to-endContent.mjs +33 -0
- package/src/codemods/transforms/v0.0.2/rename-form-tooltip-startIcon.mjs +53 -0
- package/src/codemods/transforms/v0.0.2/rename-isShown-to-isOpen.mjs +38 -0
- package/src/codemods/transforms/v0.0.2/rename-selector-items-to-options.mjs +34 -0
- package/src/codemods/transforms/v0.0.2/rename-sidenav-header-to-heading.mjs +84 -0
- package/src/codemods/transforms/v0.0.2/rename-topnav-title-to-heading.mjs +73 -0
- package/src/codemods/transforms/v0.0.2/unify-uncontrolled-to-defaultX.mjs +56 -0
- package/src/codemods/transforms/v0.0.2/unify-visibility-to-onOpenChange.mjs +102 -0
- package/src/codemods/transforms/v0.0.6/__tests__/migrate-collapse-to-collapsible.test.mjs +72 -0
- package/src/codemods/transforms/v0.0.6/__tests__/migrate-radius-tokens.test.mjs +86 -0
- package/src/codemods/transforms/v0.0.6/__tests__/migrate-shadow-tokens.test.mjs +107 -0
- package/src/codemods/transforms/v0.0.6/__tests__/migrate-skeleton-radius.test.mjs +75 -0
- package/src/codemods/transforms/v0.0.6/__tests__/migrate-token-names.test.mjs +267 -0
- package/src/codemods/transforms/v0.0.6/index.mjs +62 -0
- package/src/codemods/transforms/v0.0.6/migrate-badge-children-to-label.mjs +91 -0
- package/src/codemods/transforms/v0.0.6/migrate-collapse-to-collapsible.mjs +145 -0
- package/src/codemods/transforms/v0.0.6/migrate-radius-tokens.mjs +82 -0
- package/src/codemods/transforms/v0.0.6/migrate-shadow-tokens.mjs +111 -0
- package/src/codemods/transforms/v0.0.6/migrate-skeleton-radius.mjs +77 -0
- package/src/codemods/transforms/v0.0.6/migrate-token-names.mjs +158 -0
- package/src/codemods/transforms/v0.0.7/__tests__/rename-banner-variant-to-container.test.mjs +85 -0
- package/src/codemods/transforms/v0.0.7/index.mjs +19 -0
- package/src/codemods/transforms/v0.0.7/rename-banner-variant-to-container.mjs +53 -0
- package/src/codemods/transforms/v0.0.8/__tests__/migrate-token-renames.test.mjs +321 -0
- package/src/codemods/transforms/v0.0.8/__tests__/rename-endslot-to-endcontent.test.mjs +98 -0
- package/src/codemods/transforms/v0.0.8/index.mjs +28 -0
- package/src/codemods/transforms/v0.0.8/migrate-token-renames.mjs +307 -0
- package/src/codemods/transforms/v0.0.8/rename-endslot-to-endcontent.mjs +59 -0
- package/src/commands/agent-docs.mjs +509 -0
- package/src/commands/agent-docs.path-safety.test.mjs +66 -0
- package/src/commands/agent-docs.test.mjs +495 -0
- package/src/commands/build-theme.import-path.test.mjs +115 -0
- package/src/commands/build-theme.mjs +874 -0
- package/src/commands/build-theme.path-safety.test.mjs +117 -0
- package/src/commands/build-theme.prose.test.mjs +135 -0
- package/src/commands/component/index.mjs +224 -0
- package/src/commands/component-package.test.mjs +123 -0
- package/src/commands/component-resolution.test.mjs +177 -0
- package/src/commands/component.test.mjs +659 -0
- package/src/commands/detail-levels.test.mjs +133 -0
- package/src/commands/discover.mjs +143 -0
- package/src/commands/docs.mjs +149 -0
- package/src/commands/docs.test.mjs +101 -0
- package/src/commands/doctor.mjs +85 -0
- package/src/commands/doctor.test.mjs +292 -0
- package/src/commands/external-showcase.test.mjs +121 -0
- package/src/commands/gap-report.mjs +456 -0
- package/src/commands/gap-report.test.mjs +163 -0
- package/src/commands/hook/index.mjs +163 -0
- package/src/commands/import-hint-correctness.test.mjs +182 -0
- package/src/commands/init.mjs +254 -0
- package/src/commands/interactive-guard.test.mjs +69 -0
- package/src/commands/json-contract.test.mjs +227 -0
- package/src/commands/search.mjs +100 -0
- package/src/commands/search.test.mjs +202 -0
- package/src/commands/swizzle-gap-safety.test.mjs +273 -0
- package/src/commands/swizzle.mjs +389 -0
- package/src/commands/swizzle.path-safety.test.mjs +117 -0
- package/src/commands/swizzle.test.mjs +53 -0
- package/src/commands/template.mjs +196 -0
- package/src/commands/template.path-safety.test.mjs +82 -0
- package/src/commands/template.test.mjs +62 -0
- package/src/commands/upgrade.mjs +353 -0
- package/src/commands/upgrade.test.mjs +146 -0
- package/src/index.mjs +334 -0
- package/src/lib/cli-error.mjs +162 -0
- package/src/lib/cli-error.test.mjs +199 -0
- package/src/lib/component-discovery.mjs +485 -0
- package/src/lib/component-format.mjs +545 -0
- package/src/lib/component-format.test.mjs +53 -0
- package/src/lib/component-loader.mjs +107 -0
- package/src/lib/component-loader.test.mjs +107 -0
- package/src/lib/config.mjs +74 -0
- package/src/lib/error-codes.mjs +197 -0
- package/src/lib/error-codes.test.mjs +152 -0
- package/src/lib/hook-discovery.mjs +228 -0
- package/src/lib/hook-format.mjs +247 -0
- package/src/lib/json-contract.test.mjs +168 -0
- package/src/lib/json-shim.mjs +321 -0
- package/src/lib/json-shim.test.mjs +226 -0
- package/src/lib/json.mjs +147 -0
- package/src/lib/manifest.mjs +248 -0
- package/src/lib/manifest.test.mjs +176 -0
- package/src/lib/node-version.mjs +69 -0
- package/src/lib/node-version.test.mjs +91 -0
- package/src/lib/package-scanner.mjs +94 -0
- package/src/lib/parse.mjs +43 -0
- package/src/lib/resolve-theme.mjs +147 -0
- package/src/lib/string-utils.mjs +192 -0
- package/src/types/api.contract.assert.ts +97 -0
- package/src/types/api.d.ts +206 -0
- package/src/types/base.d.ts +164 -0
- package/src/types/component.d.ts +93 -0
- package/src/types/discover.d.ts +59 -0
- package/src/types/docs.d.ts +40 -0
- package/src/types/doctor.d.ts +42 -0
- package/src/types/error-codes.d.ts +58 -0
- package/src/types/gap-report.d.ts +29 -0
- package/src/types/hook.d.ts +59 -0
- package/src/types/index.d.ts +16 -0
- package/src/types/manifest.d.ts +73 -0
- package/src/types/search.d.ts +53 -0
- package/src/types/swizzle.d.ts +30 -0
- package/src/types/template.d.ts +70 -0
- package/src/types/theme.d.ts +23 -0
- package/src/types/upgrade.d.ts +35 -0
- package/src/update-hint-commands.test.mjs +54 -0
- package/src/utils/github.mjs +274 -0
- package/src/utils/interactive.mjs +76 -0
- package/src/utils/interactive.test.mjs +68 -0
- package/src/utils/package-manager.mjs +74 -0
- package/src/utils/package-manager.test.mjs +113 -0
- package/src/utils/path-safety.mjs +185 -0
- package/src/utils/path-safety.test.mjs +137 -0
- package/src/utils/paths.mjs +159 -0
- package/src/utils/paths.test.mjs +211 -0
- package/src/utils/semver.mjs +72 -0
- package/src/utils/semver.test.mjs +67 -0
- package/src/utils/update-check.mjs +104 -0
- package/src/utils/update-check.test.mjs +199 -0
- package/templates/blocks/components/AlertDialog/AlertDialogAsyncAction.doc.mjs +14 -0
- package/templates/blocks/components/AlertDialog/AlertDialogAsyncAction.tsx +27 -0
- package/templates/blocks/components/AlertDialog/AlertDialogDeleteConfirmation.doc.mjs +17 -0
- package/templates/blocks/components/AlertDialog/AlertDialogDeleteConfirmation.tsx +35 -0
- package/templates/blocks/components/AppShell/AppShellContentOnly.doc.mjs +14 -0
- package/templates/blocks/components/AppShell/AppShellContentOnly.tsx +30 -0
- package/templates/blocks/components/AppShell/AppShellMobileHookUsage.doc.mjs +14 -0
- package/templates/blocks/components/AppShell/AppShellMobileHookUsage.tsx +63 -0
- package/templates/blocks/components/AppShell/AppShellShowcase.doc.mjs +15 -0
- package/templates/blocks/components/AppShell/AppShellShowcase.tsx +72 -0
- package/templates/blocks/components/AppShell/AppShellSideNavOnly.doc.mjs +14 -0
- package/templates/blocks/components/AppShell/AppShellSideNavOnly.tsx +76 -0
- package/templates/blocks/components/AppShell/AppShellTopNavOnly.doc.mjs +14 -0
- package/templates/blocks/components/AppShell/AppShellTopNavOnly.tsx +57 -0
- package/templates/blocks/components/AppShell/AppShellTopNavWithSideNav.doc.mjs +14 -0
- package/templates/blocks/components/AppShell/AppShellTopNavWithSideNav.tsx +83 -0
- package/templates/blocks/components/AppShell/AppShellWithBanner.doc.mjs +14 -0
- package/templates/blocks/components/AppShell/AppShellWithBanner.tsx +93 -0
- package/templates/blocks/components/AspectRatio/AspectRatioCircleImage.doc.mjs +13 -0
- package/templates/blocks/components/AspectRatio/AspectRatioCircleImage.tsx +24 -0
- package/templates/blocks/components/AspectRatio/AspectRatioImageGallery.doc.mjs +13 -0
- package/templates/blocks/components/AspectRatio/AspectRatioImageGallery.tsx +44 -0
- package/templates/blocks/components/AspectRatio/AspectRatioShowcase.doc.mjs +15 -0
- package/templates/blocks/components/AspectRatio/AspectRatioShowcase.tsx +62 -0
- package/templates/blocks/components/AspectRatio/AspectRatioSquareImage.doc.mjs +13 -0
- package/templates/blocks/components/AspectRatio/AspectRatioSquareImage.tsx +24 -0
- package/templates/blocks/components/AspectRatio/AspectRatioWidescreen.doc.mjs +13 -0
- package/templates/blocks/components/AspectRatio/AspectRatioWidescreen.tsx +24 -0
- package/templates/blocks/components/AspectRatio/AspectRatioWithSkeleton.doc.mjs +13 -0
- package/templates/blocks/components/AspectRatio/AspectRatioWithSkeleton.tsx +17 -0
- package/templates/blocks/components/Avatar/AvatarFallbackChain.doc.mjs +14 -0
- package/templates/blocks/components/Avatar/AvatarFallbackChain.tsx +47 -0
- package/templates/blocks/components/Avatar/AvatarGroup.doc.mjs +13 -0
- package/templates/blocks/components/Avatar/AvatarGroup.tsx +62 -0
- package/templates/blocks/components/Avatar/AvatarInitialsFallback.doc.mjs +13 -0
- package/templates/blocks/components/Avatar/AvatarInitialsFallback.tsx +29 -0
- package/templates/blocks/components/Avatar/AvatarShowcase.doc.mjs +15 -0
- package/templates/blocks/components/Avatar/AvatarShowcase.tsx +37 -0
- package/templates/blocks/components/Avatar/AvatarUserCard.doc.mjs +13 -0
- package/templates/blocks/components/Avatar/AvatarUserCard.tsx +57 -0
- package/templates/blocks/components/Avatar/AvatarWithImage.doc.mjs +13 -0
- package/templates/blocks/components/Avatar/AvatarWithImage.tsx +31 -0
- package/templates/blocks/components/Avatar/AvatarWithStatus.doc.mjs +13 -0
- package/templates/blocks/components/Avatar/AvatarWithStatus.tsx +33 -0
- package/templates/blocks/components/AvatarGroup/AvatarGroupShowcase.doc.mjs +14 -0
- package/templates/blocks/components/AvatarGroup/AvatarGroupShowcase.tsx +58 -0
- package/templates/blocks/components/AvatarGroupOverflow/AvatarGroupOverflowCustomText.doc.mjs +13 -0
- package/templates/blocks/components/AvatarGroupOverflow/AvatarGroupOverflowCustomText.tsx +35 -0
- package/templates/blocks/components/AvatarGroupOverflow/AvatarGroupOverflowDefault.doc.mjs +13 -0
- package/templates/blocks/components/AvatarGroupOverflow/AvatarGroupOverflowDefault.tsx +35 -0
- package/templates/blocks/components/AvatarGroupOverflow/AvatarGroupOverflowShowcase.doc.mjs +14 -0
- package/templates/blocks/components/AvatarGroupOverflow/AvatarGroupOverflowShowcase.tsx +48 -0
- package/templates/blocks/components/AvatarStatusDot/AvatarStatusDotShowcase.doc.mjs +15 -0
- package/templates/blocks/components/AvatarStatusDot/AvatarStatusDotShowcase.tsx +28 -0
- package/templates/blocks/components/Badge/BadgeCategoryTags.doc.mjs +13 -0
- package/templates/blocks/components/Badge/BadgeCategoryTags.tsx +37 -0
- package/templates/blocks/components/Badge/BadgeCountBadges.doc.mjs +13 -0
- package/templates/blocks/components/Badge/BadgeCountBadges.tsx +29 -0
- package/templates/blocks/components/Badge/BadgeShowcase.doc.mjs +15 -0
- package/templates/blocks/components/Badge/BadgeShowcase.tsx +27 -0
- package/templates/blocks/components/Badge/BadgeStatusLabels.doc.mjs +13 -0
- package/templates/blocks/components/Badge/BadgeStatusLabels.tsx +33 -0
- package/templates/blocks/components/Banner/BannerCollapsibleContent.doc.mjs +13 -0
- package/templates/blocks/components/Banner/BannerCollapsibleContent.tsx +31 -0
- package/templates/blocks/components/Banner/BannerDismissable.doc.mjs +13 -0
- package/templates/blocks/components/Banner/BannerDismissable.tsx +31 -0
- package/templates/blocks/components/Banner/BannerSectionVariant.doc.mjs +13 -0
- package/templates/blocks/components/Banner/BannerSectionVariant.tsx +30 -0
- package/templates/blocks/components/Banner/BannerShowcase.doc.mjs +15 -0
- package/templates/blocks/components/Banner/BannerShowcase.tsx +32 -0
- package/templates/blocks/components/Banner/BannerStatuses.doc.mjs +13 -0
- package/templates/blocks/components/Banner/BannerStatuses.tsx +33 -0
- package/templates/blocks/components/Banner/BannerWithActionButton.doc.mjs +13 -0
- package/templates/blocks/components/Banner/BannerWithActionButton.tsx +34 -0
- package/templates/blocks/components/Blockquote/BlockquoteShowcase.doc.mjs +15 -0
- package/templates/blocks/components/Blockquote/BlockquoteShowcase.tsx +28 -0
- package/templates/blocks/components/BreadcrumbItem/BreadcrumbItemShowcase.doc.mjs +15 -0
- package/templates/blocks/components/BreadcrumbItem/BreadcrumbItemShowcase.tsx +75 -0
- package/templates/blocks/components/Breadcrumbs/BreadcrumbsCustomSeparator.doc.mjs +13 -0
- package/templates/blocks/components/Breadcrumbs/BreadcrumbsCustomSeparator.tsx +32 -0
- package/templates/blocks/components/Breadcrumbs/BreadcrumbsDeepHierarchy.doc.mjs +13 -0
- package/templates/blocks/components/Breadcrumbs/BreadcrumbsDeepHierarchy.tsx +27 -0
- package/templates/blocks/components/Breadcrumbs/BreadcrumbsShowcase.doc.mjs +15 -0
- package/templates/blocks/components/Breadcrumbs/BreadcrumbsShowcase.tsx +15 -0
- package/templates/blocks/components/Breadcrumbs/BreadcrumbsSupportingVariant.doc.mjs +13 -0
- package/templates/blocks/components/Breadcrumbs/BreadcrumbsSupportingVariant.tsx +34 -0
- package/templates/blocks/components/Breadcrumbs/BreadcrumbsWithIcons.doc.mjs +13 -0
- package/templates/blocks/components/Breadcrumbs/BreadcrumbsWithIcons.tsx +25 -0
- package/templates/blocks/components/Button/ButtonShowcase.doc.mjs +15 -0
- package/templates/blocks/components/Button/ButtonShowcase.tsx +17 -0
- package/templates/blocks/components/Button/ButtonSizeVariants.doc.mjs +13 -0
- package/templates/blocks/components/Button/ButtonSizeVariants.tsx +45 -0
- package/templates/blocks/components/Button/ButtonVariants.doc.mjs +13 -0
- package/templates/blocks/components/Button/ButtonVariants.tsx +61 -0
- package/templates/blocks/components/Button/ButtonWithEndSlot.doc.mjs +13 -0
- package/templates/blocks/components/Button/ButtonWithEndSlot.tsx +35 -0
- package/templates/blocks/components/Button/ButtonWithIcon.doc.mjs +13 -0
- package/templates/blocks/components/Button/ButtonWithIcon.tsx +46 -0
- package/templates/blocks/components/ButtonGroup/ButtonGroupShowcase.doc.mjs +13 -0
- package/templates/blocks/components/ButtonGroup/ButtonGroupShowcase.tsx +38 -0
- package/templates/blocks/components/Calendar/CalendarConstraints.doc.mjs +13 -0
- package/templates/blocks/components/Calendar/CalendarConstraints.tsx +34 -0
- package/templates/blocks/components/Calendar/CalendarRangeWithValue.doc.mjs +13 -0
- package/templates/blocks/components/Calendar/CalendarRangeWithValue.tsx +31 -0
- package/templates/blocks/components/Calendar/CalendarShowcase.doc.mjs +15 -0
- package/templates/blocks/components/Calendar/CalendarShowcase.tsx +13 -0
- package/templates/blocks/components/Calendar/CalendarSingle.doc.mjs +13 -0
- package/templates/blocks/components/Calendar/CalendarSingle.tsx +26 -0
- package/templates/blocks/components/Calendar/CalendarTwoMonths.doc.mjs +13 -0
- package/templates/blocks/components/Calendar/CalendarTwoMonths.tsx +32 -0
- package/templates/blocks/components/Card/CardCallout.doc.mjs +13 -0
- package/templates/blocks/components/Card/CardCallout.tsx +30 -0
- package/templates/blocks/components/Card/CardShowcase.doc.mjs +15 -0
- package/templates/blocks/components/Card/CardShowcase.tsx +21 -0
- package/templates/blocks/components/Card/CardVariants.doc.mjs +13 -0
- package/templates/blocks/components/Card/CardVariants.tsx +39 -0
- package/templates/blocks/components/Card/CardWithInnerLayout.doc.mjs +13 -0
- package/templates/blocks/components/Card/CardWithInnerLayout.tsx +44 -0
- package/templates/blocks/components/Card/CardWithSimpleContent.doc.mjs +13 -0
- package/templates/blocks/components/Card/CardWithSimpleContent.tsx +24 -0
- package/templates/blocks/components/Card/ClickableCardShowcase.doc.mjs +15 -0
- package/templates/blocks/components/Card/ClickableCardShowcase.tsx +21 -0
- package/templates/blocks/components/Card/ClickableCardWithNestedButton.doc.mjs +14 -0
- package/templates/blocks/components/Card/ClickableCardWithNestedButton.tsx +24 -0
- package/templates/blocks/components/Card/SelectableCardMulti.doc.mjs +14 -0
- package/templates/blocks/components/Card/SelectableCardMulti.tsx +48 -0
- package/templates/blocks/components/Card/SelectableCardShowcase.doc.mjs +15 -0
- package/templates/blocks/components/Card/SelectableCardShowcase.tsx +46 -0
- package/templates/blocks/components/Carousel/CarouselCards.doc.mjs +13 -0
- package/templates/blocks/components/Carousel/CarouselCards.tsx +55 -0
- package/templates/blocks/components/Carousel/CarouselShowcase.doc.mjs +15 -0
- package/templates/blocks/components/Carousel/CarouselShowcase.tsx +48 -0
- package/templates/blocks/components/Carousel/CarouselSnap.doc.mjs +13 -0
- package/templates/blocks/components/Carousel/CarouselSnap.tsx +43 -0
- package/templates/blocks/components/Center/CenterHorizontal.doc.mjs +13 -0
- package/templates/blocks/components/Center/CenterHorizontal.tsx +65 -0
- package/templates/blocks/components/Center/CenterInsideACard.doc.mjs +13 -0
- package/templates/blocks/components/Center/CenterInsideACard.tsx +28 -0
- package/templates/blocks/components/Center/CenterShowcase.doc.mjs +15 -0
- package/templates/blocks/components/Center/CenterShowcase.tsx +20 -0
- package/templates/blocks/components/ChatComposer/ChatComposerAttachments.doc.mjs +13 -0
- package/templates/blocks/components/ChatComposer/ChatComposerAttachments.tsx +29 -0
- package/templates/blocks/components/ChatComposer/ChatComposerFooterActions.doc.mjs +13 -0
- package/templates/blocks/components/ChatComposer/ChatComposerFooterActions.tsx +76 -0
- package/templates/blocks/components/ChatComposer/ChatComposerFullFeatured.doc.mjs +13 -0
- package/templates/blocks/components/ChatComposer/ChatComposerFullFeatured.tsx +124 -0
- package/templates/blocks/components/ChatComposer/ChatComposerShowcase.doc.mjs +13 -0
- package/templates/blocks/components/ChatComposer/ChatComposerShowcase.tsx +17 -0
- package/templates/blocks/components/ChatComposer/ChatComposerSimple.doc.mjs +13 -0
- package/templates/blocks/components/ChatComposer/ChatComposerSimple.tsx +18 -0
- package/templates/blocks/components/ChatComposer/ChatComposerStreaming.doc.mjs +13 -0
- package/templates/blocks/components/ChatComposer/ChatComposerStreaming.tsx +46 -0
- package/templates/blocks/components/ChatComposer/ChatComposerValidation.doc.mjs +13 -0
- package/templates/blocks/components/ChatComposer/ChatComposerValidation.tsx +43 -0
- package/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerAttachments.doc.mjs +13 -0
- package/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerAttachments.tsx +73 -0
- package/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerCollapsible.doc.mjs +13 -0
- package/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerCollapsible.tsx +27 -0
- package/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerFeedback.doc.mjs +13 -0
- package/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerFeedback.tsx +57 -0
- package/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerShowcase.doc.mjs +14 -0
- package/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerShowcase.tsx +50 -0
- package/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerWithProgress.doc.mjs +13 -0
- package/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerWithProgress.tsx +53 -0
- package/templates/blocks/components/ChatComposerInput/ChatComposerInputControlledInput.doc.mjs +14 -0
- package/templates/blocks/components/ChatComposerInput/ChatComposerInputControlledInput.tsx +31 -0
- package/templates/blocks/components/ChatComposerInput/ChatComposerInputDisabled.doc.mjs +14 -0
- package/templates/blocks/components/ChatComposerInput/ChatComposerInputDisabled.tsx +20 -0
- package/templates/blocks/components/ChatComposerInput/ChatComposerInputMentionTrigger.doc.mjs +14 -0
- package/templates/blocks/components/ChatComposerInput/ChatComposerInputMentionTrigger.tsx +63 -0
- package/templates/blocks/components/ChatComposerInput/ChatComposerInputMultipleTriggers.doc.mjs +14 -0
- package/templates/blocks/components/ChatComposerInput/ChatComposerInputMultipleTriggers.tsx +77 -0
- package/templates/blocks/components/ChatComposerInput/ChatComposerInputShowcase.doc.mjs +13 -0
- package/templates/blocks/components/ChatComposerInput/ChatComposerInputShowcase.tsx +19 -0
- package/templates/blocks/components/ChatComposerInput/ChatComposerInputSlashCommands.doc.mjs +14 -0
- package/templates/blocks/components/ChatComposerInput/ChatComposerInputSlashCommands.tsx +55 -0
- package/templates/blocks/components/ChatDictation/ChatDictationDictationInComposer.doc.mjs +13 -0
- package/templates/blocks/components/ChatDictation/ChatDictationDictationInComposer.tsx +46 -0
- package/templates/blocks/components/ChatDictation/ChatDictationDictationStates.doc.mjs +13 -0
- package/templates/blocks/components/ChatDictation/ChatDictationDictationStates.tsx +82 -0
- package/templates/blocks/components/ChatDictation/ChatDictationSizes.doc.mjs +13 -0
- package/templates/blocks/components/ChatDictation/ChatDictationSizes.tsx +63 -0
- package/templates/blocks/components/ChatDictationButton/ChatDictationButtonShowcase.doc.mjs +14 -0
- package/templates/blocks/components/ChatDictationButton/ChatDictationButtonShowcase.tsx +72 -0
- package/templates/blocks/components/ChatLayout/ChatLayoutPanelChat.doc.mjs +13 -0
- package/templates/blocks/components/ChatLayout/ChatLayoutPanelChat.tsx +63 -0
- package/templates/blocks/components/ChatLayout/ChatLayoutShowcase.doc.mjs +13 -0
- package/templates/blocks/components/ChatLayout/ChatLayoutShowcase.tsx +44 -0
- package/templates/blocks/components/ChatLayoutScrollButton/ChatLayoutScrollButtonLabels.doc.mjs +13 -0
- package/templates/blocks/components/ChatLayoutScrollButton/ChatLayoutScrollButtonLabels.tsx +33 -0
- package/templates/blocks/components/ChatLayoutScrollButton/ChatLayoutScrollButtonStates.doc.mjs +14 -0
- package/templates/blocks/components/ChatLayoutScrollButton/ChatLayoutScrollButtonStates.tsx +42 -0
- package/templates/blocks/components/ChatMessage/ChatMessageAvatarName.doc.mjs +13 -0
- package/templates/blocks/components/ChatMessage/ChatMessageAvatarName.tsx +72 -0
- package/templates/blocks/components/ChatMessage/ChatMessageGhost.doc.mjs +13 -0
- package/templates/blocks/components/ChatMessage/ChatMessageGhost.tsx +63 -0
- package/templates/blocks/components/ChatMessage/ChatMessageMultiBubble.doc.mjs +13 -0
- package/templates/blocks/components/ChatMessage/ChatMessageMultiBubble.tsx +66 -0
- package/templates/blocks/components/ChatMessage/ChatMessageShowcase.doc.mjs +14 -0
- package/templates/blocks/components/ChatMessage/ChatMessageShowcase.tsx +55 -0
- package/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleDensity.doc.mjs +13 -0
- package/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleDensity.tsx +41 -0
- package/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleGrouping.doc.mjs +13 -0
- package/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleGrouping.tsx +63 -0
- package/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleMetadata.doc.mjs +13 -0
- package/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleMetadata.tsx +70 -0
- package/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleShowcase.doc.mjs +14 -0
- package/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleShowcase.tsx +48 -0
- package/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleVariants.doc.mjs +13 -0
- package/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleVariants.tsx +43 -0
- package/templates/blocks/components/ChatMessageList/ChatMessageListDensity.doc.mjs +13 -0
- package/templates/blocks/components/ChatMessageList/ChatMessageListDensity.tsx +67 -0
- package/templates/blocks/components/ChatMessageList/ChatMessageListFullFeatured.doc.mjs +13 -0
- package/templates/blocks/components/ChatMessageList/ChatMessageListFullFeatured.tsx +105 -0
- package/templates/blocks/components/ChatMessageList/ChatMessageListShowcase.doc.mjs +14 -0
- package/templates/blocks/components/ChatMessageList/ChatMessageListShowcase.tsx +75 -0
- package/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataFooter.doc.mjs +13 -0
- package/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataFooter.tsx +94 -0
- package/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataShowcase.doc.mjs +14 -0
- package/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataShowcase.tsx +129 -0
- package/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataStatus.doc.mjs +13 -0
- package/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataStatus.tsx +41 -0
- package/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataTimestamp.doc.mjs +13 -0
- package/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataTimestamp.tsx +43 -0
- package/templates/blocks/components/ChatSendButton/ChatSendButtonCustomIcon.doc.mjs +13 -0
- package/templates/blocks/components/ChatSendButton/ChatSendButtonCustomIcon.tsx +46 -0
- package/templates/blocks/components/ChatSendButton/ChatSendButtonInComposer.doc.mjs +13 -0
- package/templates/blocks/components/ChatSendButton/ChatSendButtonInComposer.tsx +25 -0
- package/templates/blocks/components/ChatSendButton/ChatSendButtonShowcase.doc.mjs +14 -0
- package/templates/blocks/components/ChatSendButton/ChatSendButtonShowcase.tsx +22 -0
- package/templates/blocks/components/ChatSendButton/ChatSendButtonStates.doc.mjs +13 -0
- package/templates/blocks/components/ChatSendButton/ChatSendButtonStates.tsx +22 -0
- package/templates/blocks/components/ChatSystemMessage/ChatSystemMessageShowcase.doc.mjs +14 -0
- package/templates/blocks/components/ChatSystemMessage/ChatSystemMessageShowcase.tsx +21 -0
- package/templates/blocks/components/ChatSystemMessage/ChatSystemMessageStatusUpdates.doc.mjs +13 -0
- package/templates/blocks/components/ChatSystemMessage/ChatSystemMessageStatusUpdates.tsx +37 -0
- package/templates/blocks/components/ChatSystemMessage/ChatSystemMessageVariants.doc.mjs +13 -0
- package/templates/blocks/components/ChatSystemMessage/ChatSystemMessageVariants.tsx +38 -0
- package/templates/blocks/components/ChatSystemMessage/ChatSystemMessageWithIcon.doc.mjs +13 -0
- package/templates/blocks/components/ChatSystemMessage/ChatSystemMessageWithIcon.tsx +38 -0
- package/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextBasic.doc.mjs +13 -0
- package/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextBasic.tsx +29 -0
- package/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextColors.doc.mjs +13 -0
- package/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextColors.tsx +30 -0
- package/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextShowcase.doc.mjs +13 -0
- package/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextShowcase.tsx +30 -0
- package/templates/blocks/components/ChatToolCalls/ChatToolCallsInteractiveToolCalls.doc.mjs +13 -0
- package/templates/blocks/components/ChatToolCalls/ChatToolCallsInteractiveToolCalls.tsx +70 -0
- package/templates/blocks/components/ChatToolCalls/ChatToolCallsShowcase.doc.mjs +13 -0
- package/templates/blocks/components/ChatToolCalls/ChatToolCallsShowcase.tsx +35 -0
- package/templates/blocks/components/ChatToolCalls/ChatToolCallsStatuses.doc.mjs +13 -0
- package/templates/blocks/components/ChatToolCalls/ChatToolCallsStatuses.tsx +44 -0
- package/templates/blocks/components/ChatToolCalls/ChatToolCallsToolCallsWithNodes.doc.mjs +13 -0
- package/templates/blocks/components/ChatToolCalls/ChatToolCallsToolCallsWithNodes.tsx +49 -0
- package/templates/blocks/components/CheckboxInput/CheckboxInputBasic.doc.mjs +13 -0
- package/templates/blocks/components/CheckboxInput/CheckboxInputBasic.tsx +46 -0
- package/templates/blocks/components/CheckboxInput/CheckboxInputIndeterminateState.doc.mjs +13 -0
- package/templates/blocks/components/CheckboxInput/CheckboxInputIndeterminateState.tsx +64 -0
- package/templates/blocks/components/CheckboxInput/CheckboxInputShowcase.doc.mjs +15 -0
- package/templates/blocks/components/CheckboxInput/CheckboxInputShowcase.tsx +27 -0
- package/templates/blocks/components/CheckboxInput/CheckboxInputStatusVariations.doc.mjs +13 -0
- package/templates/blocks/components/CheckboxInput/CheckboxInputStatusVariations.tsx +45 -0
- package/templates/blocks/components/CheckboxList/CheckboxListSelectAllPattern.doc.mjs +14 -0
- package/templates/blocks/components/CheckboxList/CheckboxListSelectAllPattern.tsx +53 -0
- package/templates/blocks/components/CheckboxList/CheckboxListShowcase.doc.mjs +13 -0
- package/templates/blocks/components/CheckboxList/CheckboxListShowcase.tsx +33 -0
- package/templates/blocks/components/CheckboxList/CheckboxListWithEndContent.doc.mjs +14 -0
- package/templates/blocks/components/CheckboxList/CheckboxListWithEndContent.tsx +37 -0
- package/templates/blocks/components/CheckboxListItem/CheckboxListItemShowcase.doc.mjs +15 -0
- package/templates/blocks/components/CheckboxListItem/CheckboxListItemShowcase.tsx +40 -0
- package/templates/blocks/components/Citation/CitationInlineText.doc.mjs +14 -0
- package/templates/blocks/components/Citation/CitationInlineText.tsx +42 -0
- package/templates/blocks/components/Citation/CitationShowcase.doc.mjs +15 -0
- package/templates/blocks/components/Citation/CitationShowcase.tsx +62 -0
- package/templates/blocks/components/Citation/CitationSourceList.doc.mjs +14 -0
- package/templates/blocks/components/Citation/CitationSourceList.tsx +49 -0
- package/templates/blocks/components/Code/CodeAcrossTextSizes.doc.mjs +14 -0
- package/templates/blocks/components/Code/CodeAcrossTextSizes.tsx +27 -0
- package/templates/blocks/components/Code/CodeInlineInParagraph.doc.mjs +14 -0
- package/templates/blocks/components/Code/CodeInlineInParagraph.tsx +23 -0
- package/templates/blocks/components/Code/CodeShowcase.doc.mjs +15 -0
- package/templates/blocks/components/Code/CodeShowcase.tsx +22 -0
- package/templates/blocks/components/Code/CodeVariousContent.doc.mjs +14 -0
- package/templates/blocks/components/Code/CodeVariousContent.tsx +29 -0
- package/templates/blocks/components/CodeBlock/CodeBlockBashCommand.doc.mjs +14 -0
- package/templates/blocks/components/CodeBlock/CodeBlockBashCommand.tsx +25 -0
- package/templates/blocks/components/CodeBlock/CodeBlockHighlightedLines.doc.mjs +14 -0
- package/templates/blocks/components/CodeBlock/CodeBlockHighlightedLines.tsx +30 -0
- package/templates/blocks/components/CodeBlock/CodeBlockJSONConfig.doc.mjs +14 -0
- package/templates/blocks/components/CodeBlock/CodeBlockJSONConfig.tsx +29 -0
- package/templates/blocks/components/CodeBlock/CodeBlockScrollableBlock.doc.mjs +14 -0
- package/templates/blocks/components/CodeBlock/CodeBlockScrollableBlock.tsx +22 -0
- package/templates/blocks/components/CodeBlock/CodeBlockShowcase.doc.mjs +15 -0
- package/templates/blocks/components/CodeBlock/CodeBlockShowcase.tsx +31 -0
- package/templates/blocks/components/Collapsible/CollapsibleControlledAccordion.doc.mjs +13 -0
- package/templates/blocks/components/Collapsible/CollapsibleControlledAccordion.tsx +43 -0
- package/templates/blocks/components/Collapsible/CollapsibleHookUsage.doc.mjs +14 -0
- package/templates/blocks/components/Collapsible/CollapsibleHookUsage.tsx +46 -0
- package/templates/blocks/components/Collapsible/CollapsibleMultipleAccordion.doc.mjs +13 -0
- package/templates/blocks/components/Collapsible/CollapsibleMultipleAccordion.tsx +41 -0
- package/templates/blocks/components/Collapsible/CollapsibleShowcase.doc.mjs +16 -0
- package/templates/blocks/components/Collapsible/CollapsibleShowcase.tsx +34 -0
- package/templates/blocks/components/Collapsible/CollapsibleSingleAccordion.doc.mjs +13 -0
- package/templates/blocks/components/Collapsible/CollapsibleSingleAccordion.tsx +40 -0
- package/templates/blocks/components/Collapsible/CollapsibleWithoutCard.doc.mjs +13 -0
- package/templates/blocks/components/Collapsible/CollapsibleWithoutCard.tsx +35 -0
- package/templates/blocks/components/CollapsibleGroup/CollapsibleGroupShowcase.doc.mjs +15 -0
- package/templates/blocks/components/CollapsibleGroup/CollapsibleGroupShowcase.tsx +43 -0
- package/templates/blocks/components/CommandPalette/CommandPaletteAsyncSearch.doc.mjs +14 -0
- package/templates/blocks/components/CommandPalette/CommandPaletteAsyncSearch.tsx +47 -0
- package/templates/blocks/components/CommandPalette/CommandPaletteAutoGrouped.doc.mjs +14 -0
- package/templates/blocks/components/CommandPalette/CommandPaletteAutoGrouped.tsx +33 -0
- package/templates/blocks/components/CommandPalette/CommandPaletteCustomFooter.doc.mjs +13 -0
- package/templates/blocks/components/CommandPalette/CommandPaletteCustomFooter.tsx +36 -0
- package/templates/blocks/components/CommandPalette/CommandPalettePickerMode.doc.mjs +14 -0
- package/templates/blocks/components/CommandPalette/CommandPalettePickerMode.tsx +41 -0
- package/templates/blocks/components/CommandPalette/CommandPaletteRichItems.doc.mjs +14 -0
- package/templates/blocks/components/CommandPalette/CommandPaletteRichItems.tsx +61 -0
- package/templates/blocks/components/CommandPalette/CommandPaletteShowcase.doc.mjs +14 -0
- package/templates/blocks/components/CommandPalette/CommandPaletteShowcase.tsx +31 -0
- package/templates/blocks/components/CommandPaletteFooter/CommandPaletteFooterShowcase.doc.mjs +14 -0
- package/templates/blocks/components/CommandPaletteFooter/CommandPaletteFooterShowcase.tsx +39 -0
- package/templates/blocks/components/CommandPaletteGroup/CommandPaletteGroupShowcase.doc.mjs +14 -0
- package/templates/blocks/components/CommandPaletteGroup/CommandPaletteGroupShowcase.tsx +68 -0
- package/templates/blocks/components/CommandPaletteItem/CommandPaletteItemShowcase.doc.mjs +14 -0
- package/templates/blocks/components/CommandPaletteItem/CommandPaletteItemShowcase.tsx +85 -0
- package/templates/blocks/components/ContextMenu/ContextMenuShowcase.doc.mjs +14 -0
- package/templates/blocks/components/ContextMenu/ContextMenuShowcase.tsx +31 -0
- package/templates/blocks/components/DateInput/DateInputClearable.doc.mjs +14 -0
- package/templates/blocks/components/DateInput/DateInputClearable.tsx +33 -0
- package/templates/blocks/components/DateInput/DateInputDateRange.doc.mjs +14 -0
- package/templates/blocks/components/DateInput/DateInputDateRange.tsx +45 -0
- package/templates/blocks/components/DateInput/DateInputShowcase.doc.mjs +15 -0
- package/templates/blocks/components/DateInput/DateInputShowcase.tsx +26 -0
- package/templates/blocks/components/DateInput/DateInputWithDescription.doc.mjs +14 -0
- package/templates/blocks/components/DateInput/DateInputWithDescription.tsx +30 -0
- package/templates/blocks/components/DateInput/DateInputWithValidation.doc.mjs +14 -0
- package/templates/blocks/components/DateInput/DateInputWithValidation.tsx +45 -0
- package/templates/blocks/components/DateRangeInput/DateRangeInputShowcase.doc.mjs +15 -0
- package/templates/blocks/components/DateRangeInput/DateRangeInputShowcase.tsx +39 -0
- package/templates/blocks/components/DateTimeInput/DateTimeInputShowcase.doc.mjs +15 -0
- package/templates/blocks/components/DateTimeInput/DateTimeInputShowcase.tsx +26 -0
- package/templates/blocks/components/Dialog/DialogConfirmationDialog.doc.mjs +16 -0
- package/templates/blocks/components/Dialog/DialogConfirmationDialog.tsx +67 -0
- package/templates/blocks/components/Dialog/DialogFormDialog.doc.mjs +15 -0
- package/templates/blocks/components/Dialog/DialogFormDialog.tsx +84 -0
- package/templates/blocks/components/Dialog/DialogFullscreenDialog.doc.mjs +14 -0
- package/templates/blocks/components/Dialog/DialogFullscreenDialog.tsx +99 -0
- package/templates/blocks/components/Dialog/DialogScrollingContent.doc.mjs +15 -0
- package/templates/blocks/components/Dialog/DialogScrollingContent.tsx +84 -0
- package/templates/blocks/components/Dialog/DialogShowcase.doc.mjs +15 -0
- package/templates/blocks/components/Dialog/DialogShowcase.tsx +23 -0
- package/templates/blocks/components/Dialog/DialogWithSubtitle.doc.mjs +15 -0
- package/templates/blocks/components/Dialog/DialogWithSubtitle.tsx +62 -0
- package/templates/blocks/components/DialogHeader/DialogHeaderShowcase.doc.mjs +15 -0
- package/templates/blocks/components/DialogHeader/DialogHeaderShowcase.tsx +32 -0
- package/templates/blocks/components/Divider/DividerFullBleed.doc.mjs +14 -0
- package/templates/blocks/components/Divider/DividerFullBleed.tsx +39 -0
- package/templates/blocks/components/Divider/DividerShowcase.doc.mjs +15 -0
- package/templates/blocks/components/Divider/DividerShowcase.tsx +23 -0
- package/templates/blocks/components/Divider/DividerVariants.doc.mjs +14 -0
- package/templates/blocks/components/Divider/DividerVariants.tsx +37 -0
- package/templates/blocks/components/Divider/DividerVertical.doc.mjs +14 -0
- package/templates/blocks/components/Divider/DividerVertical.tsx +57 -0
- package/templates/blocks/components/DropdownMenu/DropdownMenuActions.doc.mjs +14 -0
- package/templates/blocks/components/DropdownMenu/DropdownMenuActions.tsx +33 -0
- package/templates/blocks/components/DropdownMenu/DropdownMenuNoChevron.doc.mjs +14 -0
- package/templates/blocks/components/DropdownMenu/DropdownMenuNoChevron.tsx +40 -0
- package/templates/blocks/components/DropdownMenu/DropdownMenuShowcase.doc.mjs +15 -0
- package/templates/blocks/components/DropdownMenu/DropdownMenuShowcase.tsx +24 -0
- package/templates/blocks/components/DropdownMenu/DropdownMenuWithDisabledItems.doc.mjs +14 -0
- package/templates/blocks/components/DropdownMenu/DropdownMenuWithDisabledItems.tsx +35 -0
- package/templates/blocks/components/DropdownMenu/DropdownMenuWithSections.doc.mjs +14 -0
- package/templates/blocks/components/DropdownMenu/DropdownMenuWithSections.tsx +51 -0
- package/templates/blocks/components/DropdownMenuItem/DropdownMenuItemShowcase.doc.mjs +15 -0
- package/templates/blocks/components/DropdownMenuItem/DropdownMenuItemShowcase.tsx +94 -0
- package/templates/blocks/components/EmptyState/EmptyStateActions.doc.mjs +14 -0
- package/templates/blocks/components/EmptyState/EmptyStateActions.tsx +24 -0
- package/templates/blocks/components/EmptyState/EmptyStateCompact.doc.mjs +14 -0
- package/templates/blocks/components/EmptyState/EmptyStateCompact.tsx +26 -0
- package/templates/blocks/components/EmptyState/EmptyStateContainer.doc.mjs +14 -0
- package/templates/blocks/components/EmptyState/EmptyStateContainer.tsx +27 -0
- package/templates/blocks/components/EmptyState/EmptyStateShowcase.doc.mjs +15 -0
- package/templates/blocks/components/EmptyState/EmptyStateShowcase.tsx +19 -0
- package/templates/blocks/components/Field/FieldRequired.doc.mjs +14 -0
- package/templates/blocks/components/Field/FieldRequired.tsx +34 -0
- package/templates/blocks/components/Field/FieldShowcase.doc.mjs +15 -0
- package/templates/blocks/components/Field/FieldShowcase.tsx +43 -0
- package/templates/blocks/components/Field/FieldStatusVariants.doc.mjs +14 -0
- package/templates/blocks/components/Field/FieldStatusVariants.tsx +48 -0
- package/templates/blocks/components/Field/FieldWithDescription.doc.mjs +14 -0
- package/templates/blocks/components/Field/FieldWithDescription.tsx +34 -0
- package/templates/blocks/components/FieldLabel/FieldLabelShowcase.doc.mjs +15 -0
- package/templates/blocks/components/FieldLabel/FieldLabelShowcase.tsx +42 -0
- package/templates/blocks/components/FieldStatus/FieldStatusShowcase.doc.mjs +15 -0
- package/templates/blocks/components/FieldStatus/FieldStatusShowcase.tsx +28 -0
- package/templates/blocks/components/FileInput/FileInputShowcase.doc.mjs +12 -0
- package/templates/blocks/components/FileInput/FileInputShowcase.tsx +18 -0
- package/templates/blocks/components/FormLayout/FormLayoutHorizontal.doc.mjs +13 -0
- package/templates/blocks/components/FormLayout/FormLayoutHorizontal.tsx +24 -0
- package/templates/blocks/components/FormLayout/FormLayoutHorizontalLabels.doc.mjs +13 -0
- package/templates/blocks/components/FormLayout/FormLayoutHorizontalLabels.tsx +38 -0
- package/templates/blocks/components/FormLayout/FormLayoutMixedControls.doc.mjs +13 -0
- package/templates/blocks/components/FormLayout/FormLayoutMixedControls.tsx +39 -0
- package/templates/blocks/components/FormLayout/FormLayoutNested.doc.mjs +13 -0
- package/templates/blocks/components/FormLayout/FormLayoutNested.tsx +31 -0
- package/templates/blocks/components/FormLayout/FormLayoutShowcase.doc.mjs +15 -0
- package/templates/blocks/components/FormLayout/FormLayoutShowcase.tsx +31 -0
- package/templates/blocks/components/Grid/GridDashboardLayout.doc.mjs +13 -0
- package/templates/blocks/components/Grid/GridDashboardLayout.tsx +51 -0
- package/templates/blocks/components/Grid/GridGalleryExample.doc.mjs +13 -0
- package/templates/blocks/components/Grid/GridGalleryExample.tsx +40 -0
- package/templates/blocks/components/Grid/GridResponsiveAutoFit.doc.mjs +13 -0
- package/templates/blocks/components/Grid/GridResponsiveAutoFit.tsx +82 -0
- package/templates/blocks/components/Grid/GridShowcase.doc.mjs +13 -0
- package/templates/blocks/components/Grid/GridShowcase.tsx +16 -0
- package/templates/blocks/components/Grid/GridWithGridSpan.doc.mjs +13 -0
- package/templates/blocks/components/Grid/GridWithGridSpan.tsx +96 -0
- package/templates/blocks/components/GridSpan/GridSpanShowcase.doc.mjs +15 -0
- package/templates/blocks/components/GridSpan/GridSpanShowcase.tsx +52 -0
- package/templates/blocks/components/HStack/HStackShowcase.doc.mjs +14 -0
- package/templates/blocks/components/HStack/HStackShowcase.tsx +44 -0
- package/templates/blocks/components/Heading/HeadingCardGrid.doc.mjs +14 -0
- package/templates/blocks/components/Heading/HeadingCardGrid.tsx +24 -0
- package/templates/blocks/components/Heading/HeadingPageLayout.doc.mjs +14 -0
- package/templates/blocks/components/Heading/HeadingPageLayout.tsx +34 -0
- package/templates/blocks/components/Heading/HeadingShowcase.doc.mjs +13 -0
- package/templates/blocks/components/Heading/HeadingShowcase.tsx +19 -0
- package/templates/blocks/components/Heading/HeadingTruncation.doc.mjs +14 -0
- package/templates/blocks/components/Heading/HeadingTruncation.tsx +23 -0
- package/templates/blocks/components/Hooks/useStreamingTextHookUsage.doc.mjs +14 -0
- package/templates/blocks/components/Hooks/useStreamingTextHookUsage.tsx +31 -0
- package/templates/blocks/components/HoverCard/HoverCardHookUsage.doc.mjs +14 -0
- package/templates/blocks/components/HoverCard/HoverCardHookUsage.tsx +41 -0
- package/templates/blocks/components/HoverCard/HoverCardInlineTextHoverCard.doc.mjs +14 -0
- package/templates/blocks/components/HoverCard/HoverCardInlineTextHoverCard.tsx +47 -0
- package/templates/blocks/components/HoverCard/HoverCardInteractiveContent.doc.mjs +14 -0
- package/templates/blocks/components/HoverCard/HoverCardInteractiveContent.tsx +42 -0
- package/templates/blocks/components/HoverCard/HoverCardProfileHoverCard.doc.mjs +14 -0
- package/templates/blocks/components/HoverCard/HoverCardProfileHoverCard.tsx +43 -0
- package/templates/blocks/components/HoverCard/HoverCardShowcase.doc.mjs +16 -0
- package/templates/blocks/components/HoverCard/HoverCardShowcase.tsx +41 -0
- package/templates/blocks/components/Icon/IconNonSemanticColors.doc.mjs +14 -0
- package/templates/blocks/components/Icon/IconNonSemanticColors.tsx +33 -0
- package/templates/blocks/components/Icon/IconSemanticColors.doc.mjs +14 -0
- package/templates/blocks/components/Icon/IconSemanticColors.tsx +46 -0
- package/templates/blocks/components/Icon/IconShowcase.doc.mjs +13 -0
- package/templates/blocks/components/Icon/IconShowcase.tsx +9 -0
- package/templates/blocks/components/Icon/IconSizes.doc.mjs +14 -0
- package/templates/blocks/components/Icon/IconSizes.tsx +30 -0
- package/templates/blocks/components/Icon/IconStatusIcons.doc.mjs +14 -0
- package/templates/blocks/components/Icon/IconStatusIcons.tsx +27 -0
- package/templates/blocks/components/IconButton/IconButtonActionBar.doc.mjs +13 -0
- package/templates/blocks/components/IconButton/IconButtonActionBar.tsx +39 -0
- package/templates/blocks/components/IconButton/IconButtonLoadingToggle.doc.mjs +13 -0
- package/templates/blocks/components/IconButton/IconButtonLoadingToggle.tsx +42 -0
- package/templates/blocks/components/IconButton/IconButtonShowcase.doc.mjs +15 -0
- package/templates/blocks/components/IconButton/IconButtonShowcase.tsx +15 -0
- package/templates/blocks/components/IconButton/IconButtonTooltipIconButton.doc.mjs +13 -0
- package/templates/blocks/components/IconButton/IconButtonTooltipIconButton.tsx +32 -0
- package/templates/blocks/components/InputGroup/InputGroupShowcase.doc.mjs +13 -0
- package/templates/blocks/components/InputGroup/InputGroupShowcase.tsx +39 -0
- package/templates/blocks/components/Item/ItemBasicItem.doc.mjs +14 -0
- package/templates/blocks/components/Item/ItemBasicItem.tsx +29 -0
- package/templates/blocks/components/Item/ItemShowcase.doc.mjs +13 -0
- package/templates/blocks/components/Item/ItemShowcase.tsx +47 -0
- package/templates/blocks/components/Item/ItemWithMedia.doc.mjs +14 -0
- package/templates/blocks/components/Item/ItemWithMedia.tsx +38 -0
- package/templates/blocks/components/Item/ItemWithMetadata.doc.mjs +14 -0
- package/templates/blocks/components/Item/ItemWithMetadata.tsx +36 -0
- package/templates/blocks/components/Kbd/KbdInlineInstructions.doc.mjs +13 -0
- package/templates/blocks/components/Kbd/KbdInlineInstructions.tsx +27 -0
- package/templates/blocks/components/Kbd/KbdMenuShortcuts.doc.mjs +13 -0
- package/templates/blocks/components/Kbd/KbdMenuShortcuts.tsx +31 -0
- package/templates/blocks/components/Kbd/KbdModifierCombos.doc.mjs +13 -0
- package/templates/blocks/components/Kbd/KbdModifierCombos.tsx +33 -0
- package/templates/blocks/components/Kbd/KbdShowcase.doc.mjs +13 -0
- package/templates/blocks/components/Kbd/KbdShowcase.tsx +9 -0
- package/templates/blocks/components/Layer/LayerHookUsage.doc.mjs +14 -0
- package/templates/blocks/components/Layer/LayerHookUsage.tsx +37 -0
- package/templates/blocks/components/Layout/LayoutBasicCardLayout.doc.mjs +14 -0
- package/templates/blocks/components/Layout/LayoutBasicCardLayout.tsx +65 -0
- package/templates/blocks/components/Layout/LayoutContentOnlyLayout.doc.mjs +14 -0
- package/templates/blocks/components/Layout/LayoutContentOnlyLayout.tsx +28 -0
- package/templates/blocks/components/Layout/LayoutContentWidth.doc.mjs +14 -0
- package/templates/blocks/components/Layout/LayoutContentWidth.tsx +54 -0
- package/templates/blocks/components/Layout/LayoutDualPanelLayout.doc.mjs +14 -0
- package/templates/blocks/components/Layout/LayoutDualPanelLayout.tsx +66 -0
- package/templates/blocks/components/Layout/LayoutFullBleedContent.doc.mjs +14 -0
- package/templates/blocks/components/Layout/LayoutFullBleedContent.tsx +49 -0
- package/templates/blocks/components/Layout/LayoutShowcase.doc.mjs +13 -0
- package/templates/blocks/components/Layout/LayoutShowcase.tsx +64 -0
- package/templates/blocks/components/Layout/LayoutSidebarLayout.doc.mjs +14 -0
- package/templates/blocks/components/Layout/LayoutSidebarLayout.tsx +65 -0
- package/templates/blocks/components/LayoutContent/LayoutContentShowcase.doc.mjs +15 -0
- package/templates/blocks/components/LayoutContent/LayoutContentShowcase.tsx +56 -0
- package/templates/blocks/components/LayoutFooter/LayoutFooterShowcase.doc.mjs +15 -0
- package/templates/blocks/components/LayoutFooter/LayoutFooterShowcase.tsx +53 -0
- package/templates/blocks/components/LayoutHeader/LayoutHeaderShowcase.doc.mjs +15 -0
- package/templates/blocks/components/LayoutHeader/LayoutHeaderShowcase.tsx +57 -0
- package/templates/blocks/components/LayoutPanel/LayoutPanelShowcase.doc.mjs +15 -0
- package/templates/blocks/components/LayoutPanel/LayoutPanelShowcase.tsx +50 -0
- package/templates/blocks/components/Lightbox/LightboxShowcase.doc.mjs +15 -0
- package/templates/blocks/components/Lightbox/LightboxShowcase.tsx +22 -0
- package/templates/blocks/components/Link/LinkExternalLinks.doc.mjs +14 -0
- package/templates/blocks/components/Link/LinkExternalLinks.tsx +32 -0
- package/templates/blocks/components/Link/LinkInlineLink.doc.mjs +13 -0
- package/templates/blocks/components/Link/LinkInlineLink.tsx +16 -0
- package/templates/blocks/components/Link/LinkShowcase.doc.mjs +15 -0
- package/templates/blocks/components/Link/LinkShowcase.tsx +12 -0
- package/templates/blocks/components/Link/LinksWithTooltips.doc.mjs +14 -0
- package/templates/blocks/components/Link/LinksWithTooltips.tsx +32 -0
- package/templates/blocks/components/List/ListBasicList.doc.mjs +13 -0
- package/templates/blocks/components/List/ListBasicList.tsx +15 -0
- package/templates/blocks/components/List/ListBulletedFeatures.doc.mjs +13 -0
- package/templates/blocks/components/List/ListBulletedFeatures.tsx +15 -0
- package/templates/blocks/components/List/ListMessageList.doc.mjs +14 -0
- package/templates/blocks/components/List/ListMessageList.tsx +34 -0
- package/templates/blocks/components/List/ListOrderedSteps.doc.mjs +13 -0
- package/templates/blocks/components/List/ListOrderedSteps.tsx +24 -0
- package/templates/blocks/components/List/ListShowcase.doc.mjs +13 -0
- package/templates/blocks/components/List/ListShowcase.tsx +15 -0
- package/templates/blocks/components/ListItem/ListItemBasicItem.doc.mjs +14 -0
- package/templates/blocks/components/ListItem/ListItemBasicItem.tsx +18 -0
- package/templates/blocks/components/ListItem/ListItemShowcase.doc.mjs +15 -0
- package/templates/blocks/components/ListItem/ListItemShowcase.tsx +40 -0
- package/templates/blocks/components/ListItem/ListItemWithMedia.doc.mjs +14 -0
- package/templates/blocks/components/ListItem/ListItemWithMedia.tsx +35 -0
- package/templates/blocks/components/ListItem/ListItemWithMetadata.doc.mjs +14 -0
- package/templates/blocks/components/ListItem/ListItemWithMetadata.tsx +37 -0
- package/templates/blocks/components/Markdown/MarkdownCitedContent.doc.mjs +13 -0
- package/templates/blocks/components/Markdown/MarkdownCitedContent.tsx +54 -0
- package/templates/blocks/components/Markdown/MarkdownCompactAIResponse.doc.mjs +13 -0
- package/templates/blocks/components/Markdown/MarkdownCompactAIResponse.tsx +34 -0
- package/templates/blocks/components/Markdown/MarkdownDataTable.doc.mjs +13 -0
- package/templates/blocks/components/Markdown/MarkdownDataTable.tsx +25 -0
- package/templates/blocks/components/Markdown/MarkdownRichContent.doc.mjs +13 -0
- package/templates/blocks/components/Markdown/MarkdownRichContent.tsx +32 -0
- package/templates/blocks/components/Markdown/MarkdownShowcase.doc.mjs +15 -0
- package/templates/blocks/components/Markdown/MarkdownShowcase.tsx +28 -0
- package/templates/blocks/components/MediaTheme/MediaThemeImageOverlay.doc.mjs +21 -0
- package/templates/blocks/components/MediaTheme/MediaThemeImageOverlay.tsx +57 -0
- package/templates/blocks/components/MediaTheme/MediaThemeLightScrim.doc.mjs +21 -0
- package/templates/blocks/components/MediaTheme/MediaThemeLightScrim.tsx +55 -0
- package/templates/blocks/components/MediaTheme/MediaThemeShowcase.doc.mjs +23 -0
- package/templates/blocks/components/MediaTheme/MediaThemeShowcase.tsx +55 -0
- package/templates/blocks/components/MetadataList/MetadataListBasicMetadata.doc.mjs +13 -0
- package/templates/blocks/components/MetadataList/MetadataListBasicMetadata.tsx +15 -0
- package/templates/blocks/components/MetadataList/MetadataListCollapsibleMetadata.doc.mjs +14 -0
- package/templates/blocks/components/MetadataList/MetadataListCollapsibleMetadata.tsx +18 -0
- package/templates/blocks/components/MetadataList/MetadataListHorizontalMetadata.doc.mjs +14 -0
- package/templates/blocks/components/MetadataList/MetadataListHorizontalMetadata.tsx +16 -0
- package/templates/blocks/components/MetadataList/MetadataListMultiColumnMetadata.doc.mjs +14 -0
- package/templates/blocks/components/MetadataList/MetadataListMultiColumnMetadata.tsx +25 -0
- package/templates/blocks/components/MetadataList/MetadataListShowcase.doc.mjs +13 -0
- package/templates/blocks/components/MetadataList/MetadataListShowcase.tsx +15 -0
- package/templates/blocks/components/MetadataListItem/MetadataListItemShowcase.doc.mjs +15 -0
- package/templates/blocks/components/MetadataListItem/MetadataListItemShowcase.tsx +28 -0
- package/templates/blocks/components/MobileNav/MobileNavBasicMobileNav.doc.mjs +13 -0
- package/templates/blocks/components/MobileNav/MobileNavBasicMobileNav.tsx +58 -0
- package/templates/blocks/components/MobileNav/MobileNavEndSideMobileNav.doc.mjs +13 -0
- package/templates/blocks/components/MobileNav/MobileNavEndSideMobileNav.tsx +32 -0
- package/templates/blocks/components/MobileNav/MobileNavShowcase.doc.mjs +13 -0
- package/templates/blocks/components/MobileNav/MobileNavShowcase.tsx +38 -0
- package/templates/blocks/components/MobileNav/MobileNavWithoutTitleMobileNav.doc.mjs +13 -0
- package/templates/blocks/components/MobileNav/MobileNavWithoutTitleMobileNav.tsx +36 -0
- package/templates/blocks/components/MobileNavToggle/MobileNavToggleShowcase.doc.mjs +14 -0
- package/templates/blocks/components/MobileNavToggle/MobileNavToggleShowcase.tsx +42 -0
- package/templates/blocks/components/MoreMenu/MoreMenuDefaultMoreMenu.doc.mjs +14 -0
- package/templates/blocks/components/MoreMenu/MoreMenuDefaultMoreMenu.tsx +17 -0
- package/templates/blocks/components/MoreMenu/MoreMenuInToolbar.doc.mjs +14 -0
- package/templates/blocks/components/MoreMenu/MoreMenuInToolbar.tsx +67 -0
- package/templates/blocks/components/MoreMenu/MoreMenuShowcase.doc.mjs +15 -0
- package/templates/blocks/components/MoreMenu/MoreMenuShowcase.tsx +23 -0
- package/templates/blocks/components/MoreMenu/MoreMenuWithDividers.doc.mjs +14 -0
- package/templates/blocks/components/MoreMenu/MoreMenuWithDividers.tsx +24 -0
- package/templates/blocks/components/MoreMenu/MoreMenuWithSections.doc.mjs +14 -0
- package/templates/blocks/components/MoreMenu/MoreMenuWithSections.tsx +38 -0
- package/templates/blocks/components/MultiSelector/MultiSelectorColumnVisibilitySelector.doc.mjs +14 -0
- package/templates/blocks/components/MultiSelector/MultiSelectorColumnVisibilitySelector.tsx +40 -0
- package/templates/blocks/components/MultiSelector/MultiSelectorForm.doc.mjs +14 -0
- package/templates/blocks/components/MultiSelector/MultiSelectorForm.tsx +44 -0
- package/templates/blocks/components/MultiSelector/MultiSelectorSearchableMultiSelector.doc.mjs +14 -0
- package/templates/blocks/components/MultiSelector/MultiSelectorSearchableMultiSelector.tsx +36 -0
- package/templates/blocks/components/MultiSelector/MultiSelectorSectionedMultiSelector.doc.mjs +14 -0
- package/templates/blocks/components/MultiSelector/MultiSelectorSectionedMultiSelector.tsx +39 -0
- package/templates/blocks/components/MultiSelector/MultiSelectorShowcase.doc.mjs +13 -0
- package/templates/blocks/components/MultiSelector/MultiSelectorShowcase.tsx +17 -0
- package/templates/blocks/components/NavIcon/NavIconShowcase.doc.mjs +14 -0
- package/templates/blocks/components/NavIcon/NavIconShowcase.tsx +17 -0
- package/templates/blocks/components/NumberInput/NumberInputClearableNumberInput.doc.mjs +13 -0
- package/templates/blocks/components/NumberInput/NumberInputClearableNumberInput.tsx +23 -0
- package/templates/blocks/components/NumberInput/NumberInputRangeNumberInput.doc.mjs +13 -0
- package/templates/blocks/components/NumberInput/NumberInputRangeNumberInput.tsx +23 -0
- package/templates/blocks/components/NumberInput/NumberInputShowcase.doc.mjs +15 -0
- package/templates/blocks/components/NumberInput/NumberInputShowcase.tsx +16 -0
- package/templates/blocks/components/NumberInput/NumberInputStatuses.doc.mjs +13 -0
- package/templates/blocks/components/NumberInput/NumberInputStatuses.tsx +38 -0
- package/templates/blocks/components/NumberInput/NumberInputWithUnits.doc.mjs +13 -0
- package/templates/blocks/components/NumberInput/NumberInputWithUnits.tsx +23 -0
- package/templates/blocks/components/Outline/OutlineControlled.doc.mjs +14 -0
- package/templates/blocks/components/Outline/OutlineControlled.tsx +54 -0
- package/templates/blocks/components/Outline/OutlineDeepNesting.doc.mjs +14 -0
- package/templates/blocks/components/Outline/OutlineDeepNesting.tsx +26 -0
- package/templates/blocks/components/Outline/OutlineDensity.doc.mjs +14 -0
- package/templates/blocks/components/Outline/OutlineDensity.tsx +43 -0
- package/templates/blocks/components/OverflowList/OverflowListCollapseFromStartList.doc.mjs +13 -0
- package/templates/blocks/components/OverflowList/OverflowListCollapseFromStartList.tsx +33 -0
- package/templates/blocks/components/OverflowList/OverflowListOverflowBadges.doc.mjs +13 -0
- package/templates/blocks/components/OverflowList/OverflowListOverflowBadges.tsx +35 -0
- package/templates/blocks/components/OverflowList/OverflowListOverflowDropdownActions.doc.mjs +13 -0
- package/templates/blocks/components/OverflowList/OverflowListOverflowDropdownActions.tsx +50 -0
- package/templates/blocks/components/OverflowList/OverflowListShowcase.doc.mjs +15 -0
- package/templates/blocks/components/OverflowList/OverflowListShowcase.tsx +28 -0
- package/templates/blocks/components/Overlay/OverlayBottomStrip.doc.mjs +14 -0
- package/templates/blocks/components/Overlay/OverlayBottomStrip.tsx +51 -0
- package/templates/blocks/components/Overlay/OverlayHoverReveal.doc.mjs +14 -0
- package/templates/blocks/components/Overlay/OverlayHoverReveal.tsx +39 -0
- package/templates/blocks/components/Overlay/OverlayShowcase.doc.mjs +15 -0
- package/templates/blocks/components/Overlay/OverlayShowcase.tsx +50 -0
- package/templates/blocks/components/Pagination/PaginationDotsCarousel.doc.mjs +14 -0
- package/templates/blocks/components/Pagination/PaginationDotsCarousel.tsx +103 -0
- package/templates/blocks/components/Pagination/PaginationPageSize.doc.mjs +14 -0
- package/templates/blocks/components/Pagination/PaginationPageSize.tsx +68 -0
- package/templates/blocks/components/Pagination/PaginationVariants.doc.mjs +15 -0
- package/templates/blocks/components/Pagination/PaginationVariants.tsx +52 -0
- package/templates/blocks/components/Pagination/PaginationWithTable.doc.mjs +14 -0
- package/templates/blocks/components/Pagination/PaginationWithTable.tsx +66 -0
- package/templates/blocks/components/Popover/PopoverConfirmAction.doc.mjs +14 -0
- package/templates/blocks/components/Popover/PopoverConfirmAction.tsx +48 -0
- package/templates/blocks/components/Popover/PopoverFilterPanel.doc.mjs +14 -0
- package/templates/blocks/components/Popover/PopoverFilterPanel.tsx +82 -0
- package/templates/blocks/components/Popover/PopoverHookUsage.doc.mjs +14 -0
- package/templates/blocks/components/Popover/PopoverHookUsage.tsx +37 -0
- package/templates/blocks/components/Popover/PopoverKeyboardShortcuts.doc.mjs +14 -0
- package/templates/blocks/components/Popover/PopoverKeyboardShortcuts.tsx +39 -0
- package/templates/blocks/components/Popover/PopoverSettingsPanel.doc.mjs +14 -0
- package/templates/blocks/components/Popover/PopoverSettingsPanel.tsx +49 -0
- package/templates/blocks/components/Popover/PopoverShowcase.doc.mjs +14 -0
- package/templates/blocks/components/Popover/PopoverShowcase.tsx +37 -0
- package/templates/blocks/components/PowerSearch/PowerSearchContentSearch.doc.mjs +14 -0
- package/templates/blocks/components/PowerSearch/PowerSearchContentSearch.tsx +74 -0
- package/templates/blocks/components/PowerSearch/PowerSearchFullFeatured.doc.mjs +14 -0
- package/templates/blocks/components/PowerSearch/PowerSearchFullFeatured.tsx +102 -0
- package/templates/blocks/components/PowerSearch/PowerSearchPresetFilters.doc.mjs +14 -0
- package/templates/blocks/components/PowerSearch/PowerSearchPresetFilters.tsx +77 -0
- package/templates/blocks/components/PowerSearch/PowerSearchSearchWithTable.doc.mjs +14 -0
- package/templates/blocks/components/PowerSearch/PowerSearchSearchWithTable.tsx +103 -0
- package/templates/blocks/components/PowerSearch/PowerSearchShowcase.doc.mjs +15 -0
- package/templates/blocks/components/PowerSearch/PowerSearchShowcase.tsx +63 -0
- package/templates/blocks/components/ProgressBar/ProgressBarCustomFormat.doc.mjs +14 -0
- package/templates/blocks/components/ProgressBar/ProgressBarCustomFormat.tsx +28 -0
- package/templates/blocks/components/ProgressBar/ProgressBarIndeterminate.doc.mjs +14 -0
- package/templates/blocks/components/ProgressBar/ProgressBarIndeterminate.tsx +9 -0
- package/templates/blocks/components/ProgressBar/ProgressBarSemanticVariants.doc.mjs +14 -0
- package/templates/blocks/components/ProgressBar/ProgressBarSemanticVariants.tsx +43 -0
- package/templates/blocks/components/ProgressBar/ProgressBarShowcase.doc.mjs +15 -0
- package/templates/blocks/components/ProgressBar/ProgressBarShowcase.tsx +9 -0
- package/templates/blocks/components/ProgressBar/ProgressBarWithValueLabel.doc.mjs +14 -0
- package/templates/blocks/components/ProgressBar/ProgressBarWithValueLabel.tsx +16 -0
- package/templates/blocks/components/RadioList/RadioListHorizontalLayout.doc.mjs +14 -0
- package/templates/blocks/components/RadioList/RadioListHorizontalLayout.tsx +22 -0
- package/templates/blocks/components/RadioList/RadioListPricingTier.doc.mjs +14 -0
- package/templates/blocks/components/RadioList/RadioListPricingTier.tsx +43 -0
- package/templates/blocks/components/RadioList/RadioListShowcase.doc.mjs +13 -0
- package/templates/blocks/components/RadioList/RadioListShowcase.tsx +13 -0
- package/templates/blocks/components/RadioList/RadioListWithDescriptions.doc.mjs +14 -0
- package/templates/blocks/components/RadioList/RadioListWithDescriptions.tsx +34 -0
- package/templates/blocks/components/RadioList/RadioListWithValidation.doc.mjs +14 -0
- package/templates/blocks/components/RadioList/RadioListWithValidation.tsx +27 -0
- package/templates/blocks/components/RadioListItem/RadioListItemShowcase.doc.mjs +15 -0
- package/templates/blocks/components/RadioListItem/RadioListItemShowcase.tsx +36 -0
- package/templates/blocks/components/Resizable/ResizableShowcase.doc.mjs +17 -0
- package/templates/blocks/components/Resizable/ResizableShowcase.tsx +57 -0
- package/templates/blocks/components/Section/SectionVariants.doc.mjs +15 -0
- package/templates/blocks/components/Section/SectionVariants.tsx +46 -0
- package/templates/blocks/components/Section/SectionWashHighlight.doc.mjs +14 -0
- package/templates/blocks/components/Section/SectionWashHighlight.tsx +57 -0
- package/templates/blocks/components/Section/SectionWithDividers.doc.mjs +14 -0
- package/templates/blocks/components/Section/SectionWithDividers.tsx +38 -0
- package/templates/blocks/components/SegmentedControl/SegmentedControlDisabledItem.doc.mjs +14 -0
- package/templates/blocks/components/SegmentedControl/SegmentedControlDisabledItem.tsx +23 -0
- package/templates/blocks/components/SegmentedControl/SegmentedControlFillLayout.doc.mjs +14 -0
- package/templates/blocks/components/SegmentedControl/SegmentedControlFillLayout.tsx +26 -0
- package/templates/blocks/components/SegmentedControl/SegmentedControlIconOnly.doc.mjs +14 -0
- package/templates/blocks/components/SegmentedControl/SegmentedControlIconOnly.tsx +53 -0
- package/templates/blocks/components/SegmentedControl/SegmentedControlShowcase.doc.mjs +13 -0
- package/templates/blocks/components/SegmentedControl/SegmentedControlShowcase.tsx +18 -0
- package/templates/blocks/components/SegmentedControl/SegmentedControlWithIcons.doc.mjs +14 -0
- package/templates/blocks/components/SegmentedControl/SegmentedControlWithIcons.tsx +53 -0
- package/templates/blocks/components/SegmentedControlItem/SegmentedControlItemShowcase.doc.mjs +15 -0
- package/templates/blocks/components/SegmentedControlItem/SegmentedControlItemShowcase.tsx +43 -0
- package/templates/blocks/components/Selector/SelectorClearable.doc.mjs +14 -0
- package/templates/blocks/components/Selector/SelectorClearable.tsx +26 -0
- package/templates/blocks/components/Selector/SelectorShowcase.doc.mjs +13 -0
- package/templates/blocks/components/Selector/SelectorShowcase.tsx +17 -0
- package/templates/blocks/components/Selector/SelectorWithSections.doc.mjs +14 -0
- package/templates/blocks/components/Selector/SelectorWithSections.tsx +46 -0
- package/templates/blocks/components/Selector/SelectorWithStatus.doc.mjs +14 -0
- package/templates/blocks/components/Selector/SelectorWithStatus.tsx +53 -0
- package/templates/blocks/components/SelectorOption/SelectorOptionShowcase.doc.mjs +15 -0
- package/templates/blocks/components/SelectorOption/SelectorOptionShowcase.tsx +43 -0
- package/templates/blocks/components/SideNav/SideNavEndContent.doc.mjs +14 -0
- package/templates/blocks/components/SideNav/SideNavEndContent.tsx +93 -0
- package/templates/blocks/components/SideNav/SideNavNestedItems.doc.mjs +14 -0
- package/templates/blocks/components/SideNav/SideNavNestedItems.tsx +46 -0
- package/templates/blocks/components/SideNav/SideNavShowcase.doc.mjs +13 -0
- package/templates/blocks/components/SideNav/SideNavShowcase.tsx +76 -0
- package/templates/blocks/components/SideNav/SideNavWithHeaderMenu.doc.mjs +14 -0
- package/templates/blocks/components/SideNav/SideNavWithHeaderMenu.tsx +73 -0
- package/templates/blocks/components/SideNavCollapseButton/SideNavCollapseButtonShowcase.doc.mjs +14 -0
- package/templates/blocks/components/SideNavCollapseButton/SideNavCollapseButtonShowcase.tsx +43 -0
- package/templates/blocks/components/SideNavHeading/SideNavHeadingShowcase.doc.mjs +14 -0
- package/templates/blocks/components/SideNavHeading/SideNavHeadingShowcase.tsx +43 -0
- package/templates/blocks/components/SideNavItem/SideNavItemShowcase.doc.mjs +14 -0
- package/templates/blocks/components/SideNavItem/SideNavItemShowcase.tsx +57 -0
- package/templates/blocks/components/SideNavSection/SideNavSectionShowcase.doc.mjs +14 -0
- package/templates/blocks/components/SideNavSection/SideNavSectionShowcase.tsx +58 -0
- package/templates/blocks/components/Skeleton/SkeletonCardSkeleton.doc.mjs +14 -0
- package/templates/blocks/components/Skeleton/SkeletonCardSkeleton.tsx +26 -0
- package/templates/blocks/components/Skeleton/SkeletonShowcase.doc.mjs +15 -0
- package/templates/blocks/components/Skeleton/SkeletonShowcase.tsx +25 -0
- package/templates/blocks/components/Skeleton/SkeletonStaggeredList.doc.mjs +14 -0
- package/templates/blocks/components/Skeleton/SkeletonStaggeredList.tsx +18 -0
- package/templates/blocks/components/Skeleton/SkeletonTableRowSkeleton.doc.mjs +14 -0
- package/templates/blocks/components/Skeleton/SkeletonTableRowSkeleton.tsx +21 -0
- package/templates/blocks/components/Slider/SliderFormattedValue.doc.mjs +14 -0
- package/templates/blocks/components/Slider/SliderFormattedValue.tsx +23 -0
- package/templates/blocks/components/Slider/SliderRangeSlider.doc.mjs +14 -0
- package/templates/blocks/components/Slider/SliderRangeSlider.tsx +18 -0
- package/templates/blocks/components/Slider/SliderShowcase.doc.mjs +15 -0
- package/templates/blocks/components/Slider/SliderShowcase.tsx +9 -0
- package/templates/blocks/components/Slider/SliderWithMarks.doc.mjs +14 -0
- package/templates/blocks/components/Slider/SliderWithMarks.tsx +25 -0
- package/templates/blocks/components/Slider/SliderWithStatus.doc.mjs +14 -0
- package/templates/blocks/components/Slider/SliderWithStatus.tsx +37 -0
- package/templates/blocks/components/Spinner/SpinnerOnMedia.doc.mjs +14 -0
- package/templates/blocks/components/Spinner/SpinnerOnMedia.tsx +22 -0
- package/templates/blocks/components/Spinner/SpinnerShowcase.doc.mjs +15 -0
- package/templates/blocks/components/Spinner/SpinnerShowcase.tsx +9 -0
- package/templates/blocks/components/Spinner/SpinnerSizes.doc.mjs +13 -0
- package/templates/blocks/components/Spinner/SpinnerSizes.tsx +17 -0
- package/templates/blocks/components/Spinner/SpinnerWithLabel.doc.mjs +14 -0
- package/templates/blocks/components/Spinner/SpinnerWithLabel.tsx +29 -0
- package/templates/blocks/components/Stack/StackAlignment.doc.mjs +14 -0
- package/templates/blocks/components/Stack/StackAlignment.tsx +48 -0
- package/templates/blocks/components/Stack/StackDirections.doc.mjs +15 -0
- package/templates/blocks/components/Stack/StackDirections.tsx +23 -0
- package/templates/blocks/components/Stack/StackFillItem.doc.mjs +14 -0
- package/templates/blocks/components/Stack/StackFillItem.tsx +45 -0
- package/templates/blocks/components/StackItem/StackItemShowcase.doc.mjs +15 -0
- package/templates/blocks/components/StackItem/StackItemShowcase.tsx +35 -0
- package/templates/blocks/components/StatusDot/StatusDotPulsing.doc.mjs +14 -0
- package/templates/blocks/components/StatusDot/StatusDotPulsing.tsx +18 -0
- package/templates/blocks/components/StatusDot/StatusDotShowcase.doc.mjs +15 -0
- package/templates/blocks/components/StatusDot/StatusDotShowcase.tsx +18 -0
- package/templates/blocks/components/StatusDot/StatusDotStatusIndicators.doc.mjs +15 -0
- package/templates/blocks/components/StatusDot/StatusDotStatusIndicators.tsx +27 -0
- package/templates/blocks/components/StatusDot/StatusDotVariants.doc.mjs +14 -0
- package/templates/blocks/components/StatusDot/StatusDotVariants.tsx +18 -0
- package/templates/blocks/components/Switch/SwitchDisabled.doc.mjs +13 -0
- package/templates/blocks/components/Switch/SwitchDisabled.tsx +19 -0
- package/templates/blocks/components/Switch/SwitchSettingsPanel.doc.mjs +14 -0
- package/templates/blocks/components/Switch/SwitchSettingsPanel.tsx +42 -0
- package/templates/blocks/components/Switch/SwitchShowcase.doc.mjs +15 -0
- package/templates/blocks/components/Switch/SwitchShowcase.tsx +17 -0
- package/templates/blocks/components/Switch/SwitchWithDescription.doc.mjs +13 -0
- package/templates/blocks/components/Switch/SwitchWithDescription.tsx +18 -0
- package/templates/blocks/components/Switch/SwitchWithStatus.doc.mjs +14 -0
- package/templates/blocks/components/Switch/SwitchWithStatus.tsx +47 -0
- package/templates/blocks/components/SyntaxTheme/SyntaxThemeDarkPreset.doc.mjs +14 -0
- package/templates/blocks/components/SyntaxTheme/SyntaxThemeDarkPreset.tsx +19 -0
- package/templates/blocks/components/SyntaxTheme/SyntaxThemeLightPreset.doc.mjs +14 -0
- package/templates/blocks/components/SyntaxTheme/SyntaxThemeLightPreset.tsx +18 -0
- package/templates/blocks/components/SyntaxTheme/SyntaxThemeShowcase.doc.mjs +15 -0
- package/templates/blocks/components/SyntaxTheme/SyntaxThemeShowcase.tsx +30 -0
- package/templates/blocks/components/Tab/TabShowcase.doc.mjs +15 -0
- package/templates/blocks/components/Tab/TabShowcase.tsx +18 -0
- package/templates/blocks/components/TabList/TabListShowcase.doc.mjs +13 -0
- package/templates/blocks/components/TabList/TabListShowcase.tsx +15 -0
- package/templates/blocks/components/TabList/TabListTabsFillLayout.doc.mjs +14 -0
- package/templates/blocks/components/TabList/TabListTabsFillLayout.tsx +19 -0
- package/templates/blocks/components/TabList/TabListTabsWithActions.doc.mjs +14 -0
- package/templates/blocks/components/TabList/TabListTabsWithActions.tsx +71 -0
- package/templates/blocks/components/TabList/TabListTabsWithBadge.doc.mjs +14 -0
- package/templates/blocks/components/TabList/TabListTabsWithBadge.tsx +26 -0
- package/templates/blocks/components/TabList/TabListTabsWithIcons.doc.mjs +13 -0
- package/templates/blocks/components/TabList/TabListTabsWithIcons.tsx +32 -0
- package/templates/blocks/components/TabList/TabListTabsWithMenu.doc.mjs +14 -0
- package/templates/blocks/components/TabList/TabListTabsWithMenu.tsx +24 -0
- package/templates/blocks/components/TabList/TabListTabsWithStatusDot.doc.mjs +14 -0
- package/templates/blocks/components/TabList/TabListTabsWithStatusDot.tsx +26 -0
- package/templates/blocks/components/TabMenu/TabMenuShowcase.doc.mjs +15 -0
- package/templates/blocks/components/TabMenu/TabMenuShowcase.tsx +22 -0
- package/templates/blocks/components/Table/TableColumnSettingsTable.doc.mjs +16 -0
- package/templates/blocks/components/Table/TableColumnSettingsTable.tsx +129 -0
- package/templates/blocks/components/Table/TableFilterableTable.doc.mjs +16 -0
- package/templates/blocks/components/Table/TableFilterableTable.tsx +108 -0
- package/templates/blocks/components/Table/TableGridDividersTable.doc.mjs +14 -0
- package/templates/blocks/components/Table/TableGridDividersTable.tsx +57 -0
- package/templates/blocks/components/Table/TableInCard.doc.mjs +14 -0
- package/templates/blocks/components/Table/TableInCard.tsx +45 -0
- package/templates/blocks/components/Table/TableInlineFilterTable.doc.mjs +15 -0
- package/templates/blocks/components/Table/TableInlineFilterTable.tsx +109 -0
- package/templates/blocks/components/Table/TablePaginatedTable.doc.mjs +16 -0
- package/templates/blocks/components/Table/TablePaginatedTable.tsx +81 -0
- package/templates/blocks/components/Table/TableResizableTable.doc.mjs +14 -0
- package/templates/blocks/components/Table/TableResizableTable.tsx +59 -0
- package/templates/blocks/components/Table/TableRichCellTable.doc.mjs +14 -0
- package/templates/blocks/components/Table/TableRichCellTable.tsx +87 -0
- package/templates/blocks/components/Table/TableSelectableTable.doc.mjs +16 -0
- package/templates/blocks/components/Table/TableSelectableTable.tsx +54 -0
- package/templates/blocks/components/Table/TableShowcase.doc.mjs +15 -0
- package/templates/blocks/components/Table/TableShowcase.tsx +54 -0
- package/templates/blocks/components/Table/TableSortableTable.doc.mjs +16 -0
- package/templates/blocks/components/Table/TableSortableTable.tsx +71 -0
- package/templates/blocks/components/Table/TableStripedTable.doc.mjs +14 -0
- package/templates/blocks/components/Table/TableStripedTable.tsx +63 -0
- package/templates/blocks/components/Text/TextColors.doc.mjs +13 -0
- package/templates/blocks/components/Text/TextColors.tsx +26 -0
- package/templates/blocks/components/Text/TextHeadingLevels.doc.mjs +13 -0
- package/templates/blocks/components/Text/TextHeadingLevels.tsx +20 -0
- package/templates/blocks/components/Text/TextInline.doc.mjs +13 -0
- package/templates/blocks/components/Text/TextInline.tsx +14 -0
- package/templates/blocks/components/Text/TextShowcase.doc.mjs +13 -0
- package/templates/blocks/components/Text/TextShowcase.tsx +18 -0
- package/templates/blocks/components/Text/TextTruncation.doc.mjs +13 -0
- package/templates/blocks/components/Text/TextTruncation.tsx +39 -0
- package/templates/blocks/components/Text/TextTypes.doc.mjs +13 -0
- package/templates/blocks/components/Text/TextTypes.tsx +37 -0
- package/templates/blocks/components/Text/TextWeight.doc.mjs +13 -0
- package/templates/blocks/components/Text/TextWeight.tsx +25 -0
- package/templates/blocks/components/Text/TextWordBreak.doc.mjs +13 -0
- package/templates/blocks/components/Text/TextWordBreak.tsx +38 -0
- package/templates/blocks/components/Text/TextWrap.doc.mjs +13 -0
- package/templates/blocks/components/Text/TextWrap.tsx +66 -0
- package/templates/blocks/components/TextArea/TextAreaCharacterCount.doc.mjs +13 -0
- package/templates/blocks/components/TextArea/TextAreaCharacterCount.tsx +25 -0
- package/templates/blocks/components/TextArea/TextAreaShowcase.doc.mjs +15 -0
- package/templates/blocks/components/TextArea/TextAreaShowcase.tsx +18 -0
- package/templates/blocks/components/TextArea/TextAreaStates.doc.mjs +13 -0
- package/templates/blocks/components/TextArea/TextAreaStates.tsx +36 -0
- package/templates/blocks/components/TextArea/TextAreaValidation.doc.mjs +13 -0
- package/templates/blocks/components/TextArea/TextAreaValidation.tsx +54 -0
- package/templates/blocks/components/TextArea/TextAreaWithIcon.doc.mjs +13 -0
- package/templates/blocks/components/TextArea/TextAreaWithIcon.tsx +24 -0
- package/templates/blocks/components/TextInput/TextInputIcon.doc.mjs +13 -0
- package/templates/blocks/components/TextInput/TextInputIcon.tsx +48 -0
- package/templates/blocks/components/TextInput/TextInputSearch.doc.mjs +13 -0
- package/templates/blocks/components/TextInput/TextInputSearch.tsx +36 -0
- package/templates/blocks/components/TextInput/TextInputShowcase.doc.mjs +13 -0
- package/templates/blocks/components/TextInput/TextInputShowcase.tsx +18 -0
- package/templates/blocks/components/TextInput/TextInputSizes.doc.mjs +13 -0
- package/templates/blocks/components/TextInput/TextInputSizes.tsx +41 -0
- package/templates/blocks/components/TextInput/TextInputStates.doc.mjs +13 -0
- package/templates/blocks/components/TextInput/TextInputStates.tsx +68 -0
- package/templates/blocks/components/TextInput/TextInputTypes.doc.mjs +13 -0
- package/templates/blocks/components/TextInput/TextInputTypes.tsx +65 -0
- package/templates/blocks/components/Theme/ThemeApply.doc.mjs +14 -0
- package/templates/blocks/components/Theme/ThemeApply.tsx +39 -0
- package/templates/blocks/components/Theme/ThemeNested.doc.mjs +14 -0
- package/templates/blocks/components/Theme/ThemeNested.tsx +64 -0
- package/templates/blocks/components/Theme/ThemeShowcase.doc.mjs +24 -0
- package/templates/blocks/components/Theme/ThemeShowcase.tsx +75 -0
- package/templates/blocks/components/Theme/ThemeSwitcher.doc.mjs +22 -0
- package/templates/blocks/components/Theme/ThemeSwitcher.tsx +73 -0
- package/templates/blocks/components/Theme/useThemeHookUsage.doc.mjs +14 -0
- package/templates/blocks/components/Theme/useThemeHookUsage.tsx +47 -0
- package/templates/blocks/components/Thumbnail/ThumbnailDisabled.doc.mjs +13 -0
- package/templates/blocks/components/Thumbnail/ThumbnailDisabled.tsx +43 -0
- package/templates/blocks/components/Thumbnail/ThumbnailGallery.doc.mjs +13 -0
- package/templates/blocks/components/Thumbnail/ThumbnailGallery.tsx +47 -0
- package/templates/blocks/components/Thumbnail/ThumbnailRemovable.doc.mjs +13 -0
- package/templates/blocks/components/Thumbnail/ThumbnailRemovable.tsx +44 -0
- package/templates/blocks/components/Thumbnail/ThumbnailShowcase.doc.mjs +15 -0
- package/templates/blocks/components/Thumbnail/ThumbnailShowcase.tsx +15 -0
- package/templates/blocks/components/Thumbnail/ThumbnailStates.doc.mjs +13 -0
- package/templates/blocks/components/Thumbnail/ThumbnailStates.tsx +54 -0
- package/templates/blocks/components/TimeInput/TimeInputConstrained.doc.mjs +13 -0
- package/templates/blocks/components/TimeInput/TimeInputConstrained.tsx +26 -0
- package/templates/blocks/components/TimeInput/TimeInputFormats.doc.mjs +13 -0
- package/templates/blocks/components/TimeInput/TimeInputFormats.tsx +35 -0
- package/templates/blocks/components/TimeInput/TimeInputIncrement.doc.mjs +13 -0
- package/templates/blocks/components/TimeInput/TimeInputIncrement.tsx +24 -0
- package/templates/blocks/components/TimeInput/TimeInputShowcase.doc.mjs +15 -0
- package/templates/blocks/components/TimeInput/TimeInputShowcase.tsx +18 -0
- package/templates/blocks/components/TimeInput/TimeInputStates.doc.mjs +13 -0
- package/templates/blocks/components/TimeInput/TimeInputStates.tsx +43 -0
- package/templates/blocks/components/Timestamp/TimestampAutoFormat.doc.mjs +13 -0
- package/templates/blocks/components/Timestamp/TimestampAutoFormat.tsx +34 -0
- package/templates/blocks/components/Timestamp/TimestampColors.doc.mjs +14 -0
- package/templates/blocks/components/Timestamp/TimestampColors.tsx +40 -0
- package/templates/blocks/components/Timestamp/TimestampFormats.doc.mjs +13 -0
- package/templates/blocks/components/Timestamp/TimestampFormats.tsx +36 -0
- package/templates/blocks/components/Timestamp/TimestampRelativeFormat.doc.mjs +13 -0
- package/templates/blocks/components/Timestamp/TimestampRelativeFormat.tsx +26 -0
- package/templates/blocks/components/Timestamp/TimestampShowcase.doc.mjs +13 -0
- package/templates/blocks/components/Timestamp/TimestampShowcase.tsx +9 -0
- package/templates/blocks/components/Timestamp/TimestampTimezone.doc.mjs +13 -0
- package/templates/blocks/components/Timestamp/TimestampTimezone.tsx +34 -0
- package/templates/blocks/components/Toast/ToastAction.doc.mjs +13 -0
- package/templates/blocks/components/Toast/ToastAction.tsx +48 -0
- package/templates/blocks/components/Toast/ToastDeduplication.doc.mjs +13 -0
- package/templates/blocks/components/Toast/ToastDeduplication.tsx +54 -0
- package/templates/blocks/components/Toast/ToastDismiss.doc.mjs +13 -0
- package/templates/blocks/components/Toast/ToastDismiss.tsx +50 -0
- package/templates/blocks/components/Toast/ToastShowcase.doc.mjs +17 -0
- package/templates/blocks/components/Toast/ToastShowcase.tsx +30 -0
- package/templates/blocks/components/Toast/ToastStacking.doc.mjs +13 -0
- package/templates/blocks/components/Toast/ToastStacking.tsx +47 -0
- package/templates/blocks/components/Toast/ToastTypes.doc.mjs +13 -0
- package/templates/blocks/components/Toast/ToastTypes.tsx +54 -0
- package/templates/blocks/components/ToggleButton/ToggleButtonColor.doc.mjs +13 -0
- package/templates/blocks/components/ToggleButton/ToggleButtonColor.tsx +140 -0
- package/templates/blocks/components/ToggleButton/ToggleButtonGroup.doc.mjs +13 -0
- package/templates/blocks/components/ToggleButton/ToggleButtonGroup.tsx +81 -0
- package/templates/blocks/components/ToggleButton/ToggleButtonIconSwap.doc.mjs +13 -0
- package/templates/blocks/components/ToggleButton/ToggleButtonIconSwap.tsx +51 -0
- package/templates/blocks/components/ToggleButton/ToggleButtonLabel.doc.mjs +13 -0
- package/templates/blocks/components/ToggleButton/ToggleButtonLabel.tsx +58 -0
- package/templates/blocks/components/ToggleButton/ToggleButtonShowcase.doc.mjs +13 -0
- package/templates/blocks/components/ToggleButton/ToggleButtonShowcase.tsx +45 -0
- package/templates/blocks/components/ToggleButton/ToggleButtonStates.doc.mjs +13 -0
- package/templates/blocks/components/ToggleButton/ToggleButtonStates.tsx +105 -0
- package/templates/blocks/components/ToggleButtonGroup/ToggleButtonGroupShowcase.doc.mjs +15 -0
- package/templates/blocks/components/ToggleButtonGroup/ToggleButtonGroupShowcase.tsx +45 -0
- package/templates/blocks/components/Token/TokenClickable.doc.mjs +13 -0
- package/templates/blocks/components/Token/TokenClickable.tsx +23 -0
- package/templates/blocks/components/Token/TokenColors.doc.mjs +13 -0
- package/templates/blocks/components/Token/TokenColors.tsx +52 -0
- package/templates/blocks/components/Token/TokenEndContent.doc.mjs +13 -0
- package/templates/blocks/components/Token/TokenEndContent.tsx +35 -0
- package/templates/blocks/components/Token/TokenIcon.doc.mjs +13 -0
- package/templates/blocks/components/Token/TokenIcon.tsx +46 -0
- package/templates/blocks/components/Token/TokenRemovable.doc.mjs +13 -0
- package/templates/blocks/components/Token/TokenRemovable.tsx +34 -0
- package/templates/blocks/components/Token/TokenShowcase.doc.mjs +13 -0
- package/templates/blocks/components/Token/TokenShowcase.tsx +22 -0
- package/templates/blocks/components/Tokenizer/TokenizerClear.doc.mjs +13 -0
- package/templates/blocks/components/Tokenizer/TokenizerClear.tsx +49 -0
- package/templates/blocks/components/Tokenizer/TokenizerCreatable.doc.mjs +13 -0
- package/templates/blocks/components/Tokenizer/TokenizerCreatable.tsx +72 -0
- package/templates/blocks/components/Tokenizer/TokenizerEndContent.doc.mjs +13 -0
- package/templates/blocks/components/Tokenizer/TokenizerEndContent.tsx +51 -0
- package/templates/blocks/components/Tokenizer/TokenizerIcon.doc.mjs +13 -0
- package/templates/blocks/components/Tokenizer/TokenizerIcon.tsx +50 -0
- package/templates/blocks/components/Tokenizer/TokenizerMaxEntries.doc.mjs +13 -0
- package/templates/blocks/components/Tokenizer/TokenizerMaxEntries.tsx +59 -0
- package/templates/blocks/components/Tokenizer/TokenizerOverflow.doc.mjs +13 -0
- package/templates/blocks/components/Tokenizer/TokenizerOverflow.tsx +67 -0
- package/templates/blocks/components/Tokenizer/TokenizerShowcase.doc.mjs +15 -0
- package/templates/blocks/components/Tokenizer/TokenizerShowcase.tsx +32 -0
- package/templates/blocks/components/Tokenizer/TokenizerStates.doc.mjs +13 -0
- package/templates/blocks/components/Tokenizer/TokenizerStates.tsx +82 -0
- package/templates/blocks/components/Toolbar/ToolbarBulkActions.doc.mjs +14 -0
- package/templates/blocks/components/Toolbar/ToolbarBulkActions.tsx +83 -0
- package/templates/blocks/components/Toolbar/ToolbarCardHeader.doc.mjs +14 -0
- package/templates/blocks/components/Toolbar/ToolbarCardHeader.tsx +49 -0
- package/templates/blocks/components/Toolbar/ToolbarSizes.doc.mjs +14 -0
- package/templates/blocks/components/Toolbar/ToolbarSizes.tsx +51 -0
- package/templates/blocks/components/Toolbar/ToolbarTableFilter.doc.mjs +14 -0
- package/templates/blocks/components/Toolbar/ToolbarTableFilter.tsx +83 -0
- package/templates/blocks/components/Toolbar/ToolbarThreeSlot.doc.mjs +15 -0
- package/templates/blocks/components/Toolbar/ToolbarThreeSlot.tsx +47 -0
- package/templates/blocks/components/Toolbar/ToolbarWithTabs.doc.mjs +14 -0
- package/templates/blocks/components/Toolbar/ToolbarWithTabs.tsx +49 -0
- package/templates/blocks/components/Tooltip/TooltipActionBarTooltips.doc.mjs +14 -0
- package/templates/blocks/components/Tooltip/TooltipActionBarTooltips.tsx +26 -0
- package/templates/blocks/components/Tooltip/TooltipHookUsage.doc.mjs +16 -0
- package/templates/blocks/components/Tooltip/TooltipHookUsage.tsx +25 -0
- package/templates/blocks/components/Tooltip/TooltipInlineTextTooltips.doc.mjs +14 -0
- package/templates/blocks/components/Tooltip/TooltipInlineTextTooltips.tsx +21 -0
- package/templates/blocks/components/Tooltip/TooltipShowcase.doc.mjs +13 -0
- package/templates/blocks/components/Tooltip/TooltipShowcase.tsx +14 -0
- package/templates/blocks/components/TopNav/TopNavCenteredNavigation.doc.mjs +14 -0
- package/templates/blocks/components/TopNav/TopNavCenteredNavigation.tsx +47 -0
- package/templates/blocks/components/TopNav/TopNavEnterpriseDashboard.doc.mjs +14 -0
- package/templates/blocks/components/TopNav/TopNavEnterpriseDashboard.tsx +61 -0
- package/templates/blocks/components/TopNav/TopNavHoverMenu.doc.mjs +14 -0
- package/templates/blocks/components/TopNav/TopNavHoverMenu.tsx +79 -0
- package/templates/blocks/components/TopNav/TopNavMegaMenu.doc.mjs +14 -0
- package/templates/blocks/components/TopNav/TopNavMegaMenu.tsx +97 -0
- package/templates/blocks/components/TopNav/TopNavMultipleDropdowns.doc.mjs +14 -0
- package/templates/blocks/components/TopNav/TopNavMultipleDropdowns.tsx +62 -0
- package/templates/blocks/components/TopNav/TopNavShowcase.doc.mjs +13 -0
- package/templates/blocks/components/TopNav/TopNavShowcase.tsx +53 -0
- package/templates/blocks/components/TopNav/TopNavWithLogo.doc.mjs +14 -0
- package/templates/blocks/components/TopNav/TopNavWithLogo.tsx +39 -0
- package/templates/blocks/components/TopNavHeading/TopNavHeadingShowcase.doc.mjs +14 -0
- package/templates/blocks/components/TopNavHeading/TopNavHeadingShowcase.tsx +51 -0
- package/templates/blocks/components/TopNavItem/TopNavItemShowcase.doc.mjs +14 -0
- package/templates/blocks/components/TopNavItem/TopNavItemShowcase.tsx +48 -0
- package/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuShowcase.doc.mjs +14 -0
- package/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuShowcase.tsx +74 -0
- package/templates/blocks/components/TopNavMegaMenuFeaturedCard/TopNavMegaMenuFeaturedCardShowcase.doc.mjs +14 -0
- package/templates/blocks/components/TopNavMegaMenuFeaturedCard/TopNavMegaMenuFeaturedCardShowcase.tsx +16 -0
- package/templates/blocks/components/TopNavMegaMenuItem/TopNavMegaMenuItemShowcase.doc.mjs +14 -0
- package/templates/blocks/components/TopNavMegaMenuItem/TopNavMegaMenuItemShowcase.tsx +69 -0
- package/templates/blocks/components/TopNavMenu/TopNavMenuShowcase.doc.mjs +14 -0
- package/templates/blocks/components/TopNavMenu/TopNavMenuShowcase.tsx +63 -0
- package/templates/blocks/components/TreeList/TreeListFileTreeWithIcons.doc.mjs +14 -0
- package/templates/blocks/components/TreeList/TreeListFileTreeWithIcons.tsx +42 -0
- package/templates/blocks/components/TreeList/TreeListInteractiveSettings.doc.mjs +14 -0
- package/templates/blocks/components/TreeList/TreeListInteractiveSettings.tsx +40 -0
- package/templates/blocks/components/TreeList/TreeListMailboxTree.doc.mjs +14 -0
- package/templates/blocks/components/TreeList/TreeListMailboxTree.tsx +39 -0
- package/templates/blocks/components/TreeList/TreeListNavigationTree.doc.mjs +14 -0
- package/templates/blocks/components/TreeList/TreeListNavigationTree.tsx +26 -0
- package/templates/blocks/components/TreeList/TreeListShowcase.doc.mjs +13 -0
- package/templates/blocks/components/TreeList/TreeListShowcase.tsx +44 -0
- package/templates/blocks/components/TreeListBranches/TreeListBranchesShowcase.doc.mjs +14 -0
- package/templates/blocks/components/TreeListBranches/TreeListBranchesShowcase.tsx +64 -0
- package/templates/blocks/components/TreeListItem/TreeListItemShowcase.doc.mjs +14 -0
- package/templates/blocks/components/TreeListItem/TreeListItemShowcase.tsx +60 -0
- package/templates/blocks/components/Typeahead/TypeaheadLimitedResults.doc.mjs +14 -0
- package/templates/blocks/components/Typeahead/TypeaheadLimitedResults.tsx +42 -0
- package/templates/blocks/components/Typeahead/TypeaheadSearchField.doc.mjs +14 -0
- package/templates/blocks/components/Typeahead/TypeaheadSearchField.tsx +43 -0
- package/templates/blocks/components/Typeahead/TypeaheadShowcase.doc.mjs +13 -0
- package/templates/blocks/components/Typeahead/TypeaheadShowcase.tsx +35 -0
- package/templates/blocks/components/Typeahead/TypeaheadWithHelperText.doc.mjs +14 -0
- package/templates/blocks/components/Typeahead/TypeaheadWithHelperText.tsx +41 -0
- package/templates/blocks/components/Typeahead/TypeaheadWithValidation.doc.mjs +14 -0
- package/templates/blocks/components/Typeahead/TypeaheadWithValidation.tsx +41 -0
- package/templates/blocks/components/TypeaheadItem/TypeaheadItemShowcase.doc.mjs +15 -0
- package/templates/blocks/components/TypeaheadItem/TypeaheadItemShowcase.tsx +50 -0
- package/templates/blocks/components/VStack/VStackShowcase.doc.mjs +14 -0
- package/templates/blocks/components/VStack/VStackShowcase.tsx +38 -0
- package/templates/pages/ai-chat/page.tsx +751 -0
- package/templates/pages/ai-chat/template.doc.mjs +11 -0
- package/templates/pages/ai-chat-landing/page.tsx +482 -0
- package/templates/pages/ai-chat-landing/template.doc.mjs +11 -0
- package/templates/pages/blank/page.tsx +18 -0
- package/templates/pages/blank/template.doc.mjs +12 -0
- package/templates/pages/centered-hero/page.tsx +84 -0
- package/templates/pages/centered-hero/template.doc.mjs +12 -0
- package/templates/pages/classic-gallery/page.tsx +168 -0
- package/templates/pages/classic-gallery/template.doc.mjs +12 -0
- package/templates/pages/contact-form/page.tsx +298 -0
- package/templates/pages/contact-form/template.doc.mjs +12 -0
- package/templates/pages/dashboard/page.tsx +808 -0
- package/templates/pages/dashboard/template.doc.mjs +12 -0
- package/templates/pages/dashboard-portfolio/page.tsx +775 -0
- package/templates/pages/dashboard-portfolio/template.doc.mjs +12 -0
- package/templates/pages/detail-page/page.tsx +638 -0
- package/templates/pages/detail-page/template.doc.mjs +11 -0
- package/templates/pages/documentation/page.tsx +278 -0
- package/templates/pages/documentation/template.doc.mjs +11 -0
- package/templates/pages/documentation-design/page.tsx +760 -0
- package/templates/pages/documentation-design/template.doc.mjs +11 -0
- package/templates/pages/documentation-technical/page.tsx +257 -0
- package/templates/pages/documentation-technical/template.doc.mjs +11 -0
- package/templates/pages/editor/page.tsx +982 -0
- package/templates/pages/editor/template.doc.mjs +11 -0
- package/templates/pages/file-explorer/page.tsx +537 -0
- package/templates/pages/file-explorer/template.doc.mjs +11 -0
- package/templates/pages/form-two-column/page.tsx +244 -0
- package/templates/pages/form-two-column/template.doc.mjs +11 -0
- package/templates/pages/gallery-hero/page.tsx +105 -0
- package/templates/pages/gallery-hero/template.doc.mjs +12 -0
- package/templates/pages/ide/page.tsx +475 -0
- package/templates/pages/ide/template.doc.mjs +12 -0
- package/templates/pages/library/page.tsx +521 -0
- package/templates/pages/library/template.doc.mjs +11 -0
- package/templates/pages/login/page.tsx +104 -0
- package/templates/pages/login/template.doc.mjs +12 -0
- package/templates/pages/login-card/page.tsx +218 -0
- package/templates/pages/login-card/template.doc.mjs +11 -0
- package/templates/pages/login-split/page.tsx +273 -0
- package/templates/pages/login-split/template.doc.mjs +11 -0
- package/templates/pages/login-sso/page.tsx +289 -0
- package/templates/pages/login-sso/template.doc.mjs +11 -0
- package/templates/pages/mixed-gallery/page.tsx +153 -0
- package/templates/pages/mixed-gallery/template.doc.mjs +11 -0
- package/templates/pages/payment-form/page.tsx +989 -0
- package/templates/pages/payment-form/template.doc.mjs +11 -0
- package/templates/pages/product-detail/page.tsx +312 -0
- package/templates/pages/product-detail/template.doc.mjs +11 -0
- package/templates/pages/product-gallery/page.tsx +165 -0
- package/templates/pages/product-gallery/template.doc.mjs +12 -0
- package/templates/pages/settings/page.tsx +230 -0
- package/templates/pages/settings/template.doc.mjs +11 -0
- package/templates/pages/settings-dialog/page.tsx +846 -0
- package/templates/pages/settings-dialog/template.doc.mjs +13 -0
- package/templates/pages/settings-sidebar/page.tsx +863 -0
- package/templates/pages/settings-sidebar/template.doc.mjs +12 -0
- package/templates/pages/side-gallery/page.tsx +153 -0
- package/templates/pages/side-gallery/template.doc.mjs +11 -0
- package/templates/pages/table/page.tsx +85 -0
- package/templates/pages/table/template.doc.mjs +12 -0
- package/templates/pages/table-grouped/page.tsx +1220 -0
- package/templates/pages/table-grouped/template.doc.mjs +12 -0
- package/templates/pages/table-page/page.tsx +441 -0
- package/templates/pages/table-page/template.doc.mjs +12 -0
- package/templates/pages/table-page-chart/page.tsx +587 -0
- package/templates/pages/table-page-chart/template.doc.mjs +13 -0
- package/templates/pages/table-page-heatmap-status/page.tsx +475 -0
- package/templates/pages/table-page-heatmap-status/template.doc.mjs +13 -0
- package/templates/pages/table-page-shoe-store-heatmap/page.tsx +945 -0
- package/templates/pages/table-page-shoe-store-heatmap/template.doc.mjs +13 -0
- package/templates/pages/theme-showcase/page.tsx +1288 -0
- package/templates/pages/theme-showcase/template.doc.mjs +16 -0
|
@@ -0,0 +1,1220 @@
|
|
|
1
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
|
|
3
|
+
'use client';
|
|
4
|
+
|
|
5
|
+
import React, {useState, useMemo} from 'react';
|
|
6
|
+
import {useResizable, ResizeHandle} from '@astryxdesign/core/Resizable';
|
|
7
|
+
import type {ResizableProps} from '@astryxdesign/core/Resizable';
|
|
8
|
+
import * as stylex from '@stylexjs/stylex';
|
|
9
|
+
import {
|
|
10
|
+
Layout,
|
|
11
|
+
LayoutContent,
|
|
12
|
+
LayoutFooter,
|
|
13
|
+
LayoutHeader,
|
|
14
|
+
LayoutPanel,
|
|
15
|
+
VStack,
|
|
16
|
+
HStack,
|
|
17
|
+
StackItem,
|
|
18
|
+
} from '@astryxdesign/core/Layout';
|
|
19
|
+
import {Text, Heading} from '@astryxdesign/core/Text';
|
|
20
|
+
import {TextInput} from '@astryxdesign/core/TextInput';
|
|
21
|
+
import {Button} from '@astryxdesign/core/Button';
|
|
22
|
+
import {Badge} from '@astryxdesign/core/Badge';
|
|
23
|
+
import {Avatar} from '@astryxdesign/core/Avatar';
|
|
24
|
+
import {Selector} from '@astryxdesign/core/Selector';
|
|
25
|
+
import {PowerSearch} from '@astryxdesign/core/PowerSearch';
|
|
26
|
+
import type {PowerSearchConfig, PowerSearchFilter} from '@astryxdesign/core/PowerSearch';
|
|
27
|
+
import {Dialog, DialogHeader} from '@astryxdesign/core/Dialog';
|
|
28
|
+
import {Popover} from '@astryxdesign/core/Popover';
|
|
29
|
+
import {RadioList, RadioListItem} from '@astryxdesign/core/RadioList';
|
|
30
|
+
import {DropdownMenu} from '@astryxdesign/core/DropdownMenu';
|
|
31
|
+
import {Center} from '@astryxdesign/core/Center';
|
|
32
|
+
import {Icon} from '@astryxdesign/core/Icon';
|
|
33
|
+
import {StatusDot} from '@astryxdesign/core/StatusDot';
|
|
34
|
+
import {Divider} from '@astryxdesign/core/Divider';
|
|
35
|
+
import {MetadataList, MetadataListItem} from '@astryxdesign/core/MetadataList';
|
|
36
|
+
import {
|
|
37
|
+
Table,
|
|
38
|
+
TableRow,
|
|
39
|
+
TableCell,
|
|
40
|
+
proportional,
|
|
41
|
+
pixel,
|
|
42
|
+
resolveColumnWidths,
|
|
43
|
+
} from '@astryxdesign/core/Table';
|
|
44
|
+
import type {TableColumn} from '@astryxdesign/core/Table';
|
|
45
|
+
import {
|
|
46
|
+
ChevronRightIcon,
|
|
47
|
+
ChevronDownIcon,
|
|
48
|
+
PencilIcon,
|
|
49
|
+
DocumentDuplicateIcon,
|
|
50
|
+
ArrowRightIcon,
|
|
51
|
+
TagIcon,
|
|
52
|
+
UserIcon,
|
|
53
|
+
TrashIcon,
|
|
54
|
+
EllipsisHorizontalIcon,
|
|
55
|
+
} from '@heroicons/react/24/outline';
|
|
56
|
+
import {XMarkIcon} from '@heroicons/react/24/outline';
|
|
57
|
+
import {ChartBarIcon} from '@heroicons/react/24/solid';
|
|
58
|
+
|
|
59
|
+
const pageStyles = stylex.create({
|
|
60
|
+
groupHeaderRow: {
|
|
61
|
+
cursor: 'pointer',
|
|
62
|
+
backgroundColor: 'var(--color-background-muted)',
|
|
63
|
+
},
|
|
64
|
+
groupHeaderCell: {
|
|
65
|
+
padding: 'var(--spacing-3) var(--spacing-4)',
|
|
66
|
+
},
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
// Types
|
|
70
|
+
type TaskStatus = 'in_progress' | 'todo' | 'backlog' | 'done';
|
|
71
|
+
type TaskPriority = 'urgent' | 'high' | 'medium' | 'low' | 'none';
|
|
72
|
+
|
|
73
|
+
interface TaskRow extends Record<string, unknown> {
|
|
74
|
+
id: string;
|
|
75
|
+
taskId: string;
|
|
76
|
+
title: string;
|
|
77
|
+
subtitle: string;
|
|
78
|
+
status: TaskStatus;
|
|
79
|
+
priority: TaskPriority;
|
|
80
|
+
project: string;
|
|
81
|
+
tags: string[];
|
|
82
|
+
created: string;
|
|
83
|
+
createdISO: string;
|
|
84
|
+
updated: string;
|
|
85
|
+
updatedISO: string;
|
|
86
|
+
assignee: string;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
const STATUS_DOT_VARIANT: Record<
|
|
90
|
+
TaskStatus,
|
|
91
|
+
'success' | 'accent' | 'neutral' | 'warning'
|
|
92
|
+
> = {
|
|
93
|
+
in_progress: 'accent',
|
|
94
|
+
todo: 'warning',
|
|
95
|
+
backlog: 'neutral',
|
|
96
|
+
done: 'success',
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
const PRIORITY_COLOR: Record<
|
|
100
|
+
TaskPriority,
|
|
101
|
+
'primary' | 'secondary' | 'disabled'
|
|
102
|
+
> = {
|
|
103
|
+
urgent: 'primary',
|
|
104
|
+
high: 'primary',
|
|
105
|
+
medium: 'secondary',
|
|
106
|
+
low: 'disabled',
|
|
107
|
+
none: 'disabled',
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
// Mock data matching a task tracker
|
|
111
|
+
const allTasks: TaskRow[] = [
|
|
112
|
+
{
|
|
113
|
+
id: '1',
|
|
114
|
+
taskId: 'T235040469',
|
|
115
|
+
title: 'Update user interface',
|
|
116
|
+
subtitle: 'Update payment gateway integration',
|
|
117
|
+
status: 'in_progress',
|
|
118
|
+
priority: 'medium',
|
|
119
|
+
project: 'Payment gateway integration 2.0',
|
|
120
|
+
tags: [],
|
|
121
|
+
created: 'Jul 3',
|
|
122
|
+
createdISO: '2025-07-03',
|
|
123
|
+
updated: 'Jul 3',
|
|
124
|
+
updatedISO: '2025-07-03',
|
|
125
|
+
assignee: 'Olivia Martin',
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
id: '2',
|
|
129
|
+
taskId: 'T235040470',
|
|
130
|
+
title: 'Use Projects to organize work for features or releases',
|
|
131
|
+
subtitle: '',
|
|
132
|
+
status: 'in_progress',
|
|
133
|
+
priority: 'medium',
|
|
134
|
+
project: '',
|
|
135
|
+
tags: [],
|
|
136
|
+
created: 'Jul 1',
|
|
137
|
+
createdISO: '2025-07-01',
|
|
138
|
+
updated: 'Jul 3',
|
|
139
|
+
updatedISO: '2025-07-03',
|
|
140
|
+
assignee: 'Jackson Lee',
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
id: '3',
|
|
144
|
+
taskId: 'T235040471',
|
|
145
|
+
title: 'Use Cycles to focus work over n-weeks',
|
|
146
|
+
subtitle: '',
|
|
147
|
+
status: 'in_progress',
|
|
148
|
+
priority: 'medium',
|
|
149
|
+
project: '',
|
|
150
|
+
tags: [],
|
|
151
|
+
created: 'Jul 1',
|
|
152
|
+
createdISO: '2025-07-01',
|
|
153
|
+
updated: 'Jul 3',
|
|
154
|
+
updatedISO: '2025-07-03',
|
|
155
|
+
assignee: 'Isabella Nguyen',
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
id: '4',
|
|
159
|
+
taskId: 'T235040472',
|
|
160
|
+
title: 'Testing code',
|
|
161
|
+
subtitle: 'Update payment gateway integration',
|
|
162
|
+
status: 'todo',
|
|
163
|
+
priority: 'medium',
|
|
164
|
+
project: 'Payment gateway integration 2.0',
|
|
165
|
+
tags: [],
|
|
166
|
+
created: 'Jul 3',
|
|
167
|
+
createdISO: '2025-07-03',
|
|
168
|
+
updated: 'Jul 3',
|
|
169
|
+
updatedISO: '2025-07-03',
|
|
170
|
+
assignee: 'William Kim',
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
id: '5',
|
|
174
|
+
taskId: 'T235040473',
|
|
175
|
+
title: 'Update backend code',
|
|
176
|
+
subtitle: 'Update payment gateway integration',
|
|
177
|
+
status: 'todo',
|
|
178
|
+
priority: 'medium',
|
|
179
|
+
project: 'Payment gateway integration 2.0',
|
|
180
|
+
tags: [],
|
|
181
|
+
created: 'Jul 3',
|
|
182
|
+
createdISO: '2025-07-03',
|
|
183
|
+
updated: 'Jul 3',
|
|
184
|
+
updatedISO: '2025-07-03',
|
|
185
|
+
assignee: 'Sofia Davis',
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
id: '6',
|
|
189
|
+
taskId: 'T235040474',
|
|
190
|
+
title: 'Update front end code',
|
|
191
|
+
subtitle: 'Update payment gateway integration',
|
|
192
|
+
status: 'todo',
|
|
193
|
+
priority: 'medium',
|
|
194
|
+
project: 'Payment gateway integration 2.0',
|
|
195
|
+
tags: [],
|
|
196
|
+
created: 'Jul 3',
|
|
197
|
+
createdISO: '2025-07-03',
|
|
198
|
+
updated: 'Jul 3',
|
|
199
|
+
updatedISO: '2025-07-03',
|
|
200
|
+
assignee: 'Mia Wilson',
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
id: '7',
|
|
204
|
+
taskId: 'T235040475',
|
|
205
|
+
title: 'Update payment gateway integration',
|
|
206
|
+
subtitle: '',
|
|
207
|
+
status: 'todo',
|
|
208
|
+
priority: 'high',
|
|
209
|
+
project: 'Payment gateway integration 2.0',
|
|
210
|
+
tags: ['Improvement', '3rd Party'],
|
|
211
|
+
created: 'Jul 3',
|
|
212
|
+
createdISO: '2025-07-03',
|
|
213
|
+
updated: 'Jul 3',
|
|
214
|
+
updatedISO: '2025-07-03',
|
|
215
|
+
assignee: 'Lucas Brown',
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
id: '8',
|
|
219
|
+
taskId: 'T235040476',
|
|
220
|
+
title: 'Update payment gateway backend code',
|
|
221
|
+
subtitle: '',
|
|
222
|
+
status: 'todo',
|
|
223
|
+
priority: 'medium',
|
|
224
|
+
project: '',
|
|
225
|
+
tags: [],
|
|
226
|
+
created: 'Jul 3',
|
|
227
|
+
createdISO: '2025-07-03',
|
|
228
|
+
updated: 'Jul 3',
|
|
229
|
+
updatedISO: '2025-07-03',
|
|
230
|
+
assignee: 'Ethan Jones',
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
id: '9',
|
|
234
|
+
taskId: 'T235040477',
|
|
235
|
+
title: 'Invite your teammates',
|
|
236
|
+
subtitle: '',
|
|
237
|
+
status: 'todo',
|
|
238
|
+
priority: 'low',
|
|
239
|
+
project: '',
|
|
240
|
+
tags: [],
|
|
241
|
+
created: 'Jul 1',
|
|
242
|
+
createdISO: '2025-07-01',
|
|
243
|
+
updated: 'Jul 1',
|
|
244
|
+
updatedISO: '2025-07-01',
|
|
245
|
+
assignee: 'Ava Taylor',
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
id: '10',
|
|
249
|
+
taskId: 'T235040478',
|
|
250
|
+
title: 'Next steps',
|
|
251
|
+
subtitle: '',
|
|
252
|
+
status: 'todo',
|
|
253
|
+
priority: 'none',
|
|
254
|
+
project: '',
|
|
255
|
+
tags: [],
|
|
256
|
+
created: 'Jul 1',
|
|
257
|
+
createdISO: '2025-07-01',
|
|
258
|
+
updated: 'Jul 3',
|
|
259
|
+
updatedISO: '2025-07-03',
|
|
260
|
+
assignee: 'Noah Garcia',
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
id: '11',
|
|
264
|
+
taskId: 'T235040479',
|
|
265
|
+
title: 'Welcome to Linear',
|
|
266
|
+
subtitle: '',
|
|
267
|
+
status: 'backlog',
|
|
268
|
+
priority: 'none',
|
|
269
|
+
project: '',
|
|
270
|
+
tags: [],
|
|
271
|
+
created: 'Jul 1',
|
|
272
|
+
createdISO: '2025-07-01',
|
|
273
|
+
updated: 'Jul 3',
|
|
274
|
+
updatedISO: '2025-07-03',
|
|
275
|
+
assignee: 'Olivia Martin',
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
id: '12',
|
|
279
|
+
taskId: 'T235040480',
|
|
280
|
+
title: 'Connect GitHub or GitLab',
|
|
281
|
+
subtitle: '',
|
|
282
|
+
status: 'backlog',
|
|
283
|
+
priority: 'none',
|
|
284
|
+
project: '',
|
|
285
|
+
tags: [],
|
|
286
|
+
created: 'Jul 1',
|
|
287
|
+
createdISO: '2025-07-01',
|
|
288
|
+
updated: 'Jul 3',
|
|
289
|
+
updatedISO: '2025-07-03',
|
|
290
|
+
assignee: 'Jackson Lee',
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
id: '13',
|
|
294
|
+
taskId: 'T235040481',
|
|
295
|
+
title: 'Customize settings',
|
|
296
|
+
subtitle: '',
|
|
297
|
+
status: 'backlog',
|
|
298
|
+
priority: 'none',
|
|
299
|
+
project: '',
|
|
300
|
+
tags: [],
|
|
301
|
+
created: 'Jul 1',
|
|
302
|
+
createdISO: '2025-07-01',
|
|
303
|
+
updated: 'Jul 3',
|
|
304
|
+
updatedISO: '2025-07-03',
|
|
305
|
+
assignee: 'Isabella Nguyen',
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
id: '14',
|
|
309
|
+
taskId: 'T235040482',
|
|
310
|
+
title: 'Try 3 ways to navigate: Command menu, keyboard or mouse',
|
|
311
|
+
subtitle: '',
|
|
312
|
+
status: 'done',
|
|
313
|
+
priority: 'none',
|
|
314
|
+
project: '',
|
|
315
|
+
tags: [],
|
|
316
|
+
created: 'Jul 1',
|
|
317
|
+
createdISO: '2025-07-01',
|
|
318
|
+
updated: 'Jul 3',
|
|
319
|
+
updatedISO: '2025-07-03',
|
|
320
|
+
assignee: 'William Kim',
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
id: '15',
|
|
324
|
+
taskId: 'T235040483',
|
|
325
|
+
title: 'Connect to Slack',
|
|
326
|
+
subtitle: '',
|
|
327
|
+
status: 'done',
|
|
328
|
+
priority: 'none',
|
|
329
|
+
project: '',
|
|
330
|
+
tags: [],
|
|
331
|
+
created: 'Jul 1',
|
|
332
|
+
createdISO: '2025-07-01',
|
|
333
|
+
updated: 'Jul 3',
|
|
334
|
+
updatedISO: '2025-07-03',
|
|
335
|
+
assignee: 'Sofia Davis',
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
id: '16',
|
|
339
|
+
taskId: 'T235040484',
|
|
340
|
+
title: 'Migrate database schema to v2',
|
|
341
|
+
subtitle: 'Payment gateway integration',
|
|
342
|
+
status: 'in_progress',
|
|
343
|
+
priority: 'high',
|
|
344
|
+
project: 'Payment gateway integration 2.0',
|
|
345
|
+
tags: [],
|
|
346
|
+
created: 'Jul 4',
|
|
347
|
+
createdISO: '2025-07-04',
|
|
348
|
+
updated: 'Jul 5',
|
|
349
|
+
updatedISO: '2025-07-05',
|
|
350
|
+
assignee: 'Lucas Brown',
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
id: '17',
|
|
354
|
+
taskId: 'T235040485',
|
|
355
|
+
title: 'Write integration tests for checkout flow',
|
|
356
|
+
subtitle: '',
|
|
357
|
+
status: 'in_progress',
|
|
358
|
+
priority: 'medium',
|
|
359
|
+
project: 'Payment gateway integration 2.0',
|
|
360
|
+
tags: [],
|
|
361
|
+
created: 'Jul 4',
|
|
362
|
+
createdISO: '2025-07-04',
|
|
363
|
+
updated: 'Jul 5',
|
|
364
|
+
updatedISO: '2025-07-05',
|
|
365
|
+
assignee: 'Ethan Jones',
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
id: '18',
|
|
369
|
+
taskId: 'T235040486',
|
|
370
|
+
title: 'Set up CI/CD pipeline for staging',
|
|
371
|
+
subtitle: '',
|
|
372
|
+
status: 'in_progress',
|
|
373
|
+
priority: 'high',
|
|
374
|
+
project: '',
|
|
375
|
+
tags: [],
|
|
376
|
+
created: 'Jul 2',
|
|
377
|
+
createdISO: '2025-07-02',
|
|
378
|
+
updated: 'Jul 5',
|
|
379
|
+
updatedISO: '2025-07-05',
|
|
380
|
+
assignee: 'Ava Taylor',
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
id: '19',
|
|
384
|
+
taskId: 'T235040487',
|
|
385
|
+
title: 'Add rate limiting to public API endpoints',
|
|
386
|
+
subtitle: '',
|
|
387
|
+
status: 'todo',
|
|
388
|
+
priority: 'urgent',
|
|
389
|
+
project: '',
|
|
390
|
+
tags: [],
|
|
391
|
+
created: 'Jul 5',
|
|
392
|
+
createdISO: '2025-07-05',
|
|
393
|
+
updated: 'Jul 5',
|
|
394
|
+
updatedISO: '2025-07-05',
|
|
395
|
+
assignee: 'Noah Garcia',
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
id: '20',
|
|
399
|
+
taskId: 'T235040488',
|
|
400
|
+
title: 'Refactor auth middleware to support OAuth2',
|
|
401
|
+
subtitle: '',
|
|
402
|
+
status: 'todo',
|
|
403
|
+
priority: 'high',
|
|
404
|
+
project: '',
|
|
405
|
+
tags: [],
|
|
406
|
+
created: 'Jul 4',
|
|
407
|
+
createdISO: '2025-07-04',
|
|
408
|
+
updated: 'Jul 5',
|
|
409
|
+
updatedISO: '2025-07-05',
|
|
410
|
+
assignee: 'Olivia Martin',
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
id: '21',
|
|
414
|
+
taskId: 'T235040489',
|
|
415
|
+
title: 'Design error pages for 404 and 500',
|
|
416
|
+
subtitle: '',
|
|
417
|
+
status: 'todo',
|
|
418
|
+
priority: 'low',
|
|
419
|
+
project: '',
|
|
420
|
+
tags: [],
|
|
421
|
+
created: 'Jul 3',
|
|
422
|
+
createdISO: '2025-07-03',
|
|
423
|
+
updated: 'Jul 4',
|
|
424
|
+
updatedISO: '2025-07-04',
|
|
425
|
+
assignee: 'Mia Wilson',
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
id: '22',
|
|
429
|
+
taskId: 'T235040490',
|
|
430
|
+
title: 'Audit third-party dependencies for vulnerabilities',
|
|
431
|
+
subtitle: '',
|
|
432
|
+
status: 'todo',
|
|
433
|
+
priority: 'medium',
|
|
434
|
+
project: '',
|
|
435
|
+
tags: [],
|
|
436
|
+
created: 'Jul 5',
|
|
437
|
+
createdISO: '2025-07-05',
|
|
438
|
+
updated: 'Jul 5',
|
|
439
|
+
updatedISO: '2025-07-05',
|
|
440
|
+
assignee: 'Jackson Lee',
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
id: '23',
|
|
444
|
+
taskId: 'T235040491',
|
|
445
|
+
title: 'Implement webhook retry logic with exponential backoff',
|
|
446
|
+
subtitle: 'Payment gateway integration',
|
|
447
|
+
status: 'todo',
|
|
448
|
+
priority: 'medium',
|
|
449
|
+
project: 'Payment gateway integration 2.0',
|
|
450
|
+
tags: [],
|
|
451
|
+
created: 'Jul 4',
|
|
452
|
+
createdISO: '2025-07-04',
|
|
453
|
+
updated: 'Jul 5',
|
|
454
|
+
updatedISO: '2025-07-05',
|
|
455
|
+
assignee: 'William Kim',
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
id: '24',
|
|
459
|
+
taskId: 'T235040492',
|
|
460
|
+
title: 'Add dark mode support to dashboard',
|
|
461
|
+
subtitle: '',
|
|
462
|
+
status: 'backlog',
|
|
463
|
+
priority: 'low',
|
|
464
|
+
project: '',
|
|
465
|
+
tags: [],
|
|
466
|
+
created: 'Jul 2',
|
|
467
|
+
createdISO: '2025-07-02',
|
|
468
|
+
updated: 'Jul 3',
|
|
469
|
+
updatedISO: '2025-07-03',
|
|
470
|
+
assignee: 'Sofia Davis',
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
id: '25',
|
|
474
|
+
taskId: 'T235040493',
|
|
475
|
+
title: 'Create onboarding flow for new team members',
|
|
476
|
+
subtitle: '',
|
|
477
|
+
status: 'backlog',
|
|
478
|
+
priority: 'none',
|
|
479
|
+
project: '',
|
|
480
|
+
tags: [],
|
|
481
|
+
created: 'Jul 1',
|
|
482
|
+
createdISO: '2025-07-01',
|
|
483
|
+
updated: 'Jul 2',
|
|
484
|
+
updatedISO: '2025-07-02',
|
|
485
|
+
assignee: 'Isabella Nguyen',
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
id: '26',
|
|
489
|
+
taskId: 'T235040494',
|
|
490
|
+
title: 'Set up error tracking with Sentry',
|
|
491
|
+
subtitle: '',
|
|
492
|
+
status: 'backlog',
|
|
493
|
+
priority: 'medium',
|
|
494
|
+
project: '',
|
|
495
|
+
tags: [],
|
|
496
|
+
created: 'Jul 3',
|
|
497
|
+
createdISO: '2025-07-03',
|
|
498
|
+
updated: 'Jul 4',
|
|
499
|
+
updatedISO: '2025-07-04',
|
|
500
|
+
assignee: 'Ethan Jones',
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
id: '27',
|
|
504
|
+
taskId: 'T235040495',
|
|
505
|
+
title: 'Improve search performance with indexing',
|
|
506
|
+
subtitle: '',
|
|
507
|
+
status: 'backlog',
|
|
508
|
+
priority: 'low',
|
|
509
|
+
project: '',
|
|
510
|
+
tags: [],
|
|
511
|
+
created: 'Jul 2',
|
|
512
|
+
createdISO: '2025-07-02',
|
|
513
|
+
updated: 'Jul 3',
|
|
514
|
+
updatedISO: '2025-07-03',
|
|
515
|
+
assignee: 'Ava Taylor',
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
id: '28',
|
|
519
|
+
taskId: 'T235040496',
|
|
520
|
+
title: 'Write API documentation for v2 endpoints',
|
|
521
|
+
subtitle: '',
|
|
522
|
+
status: 'done',
|
|
523
|
+
priority: 'medium',
|
|
524
|
+
project: '',
|
|
525
|
+
tags: [],
|
|
526
|
+
created: 'Jun 28',
|
|
527
|
+
createdISO: '2025-06-28',
|
|
528
|
+
updated: 'Jul 3',
|
|
529
|
+
updatedISO: '2025-07-03',
|
|
530
|
+
assignee: 'Noah Garcia',
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
id: '29',
|
|
534
|
+
taskId: 'T235040497',
|
|
535
|
+
title: 'Set up staging environment',
|
|
536
|
+
subtitle: '',
|
|
537
|
+
status: 'done',
|
|
538
|
+
priority: 'high',
|
|
539
|
+
project: '',
|
|
540
|
+
tags: [],
|
|
541
|
+
created: 'Jun 25',
|
|
542
|
+
createdISO: '2025-06-25',
|
|
543
|
+
updated: 'Jul 1',
|
|
544
|
+
updatedISO: '2025-07-01',
|
|
545
|
+
assignee: 'Lucas Brown',
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
id: '30',
|
|
549
|
+
taskId: 'T235040498',
|
|
550
|
+
title: 'Fix flaky end-to-end tests in CI',
|
|
551
|
+
subtitle: '',
|
|
552
|
+
status: 'done',
|
|
553
|
+
priority: 'medium',
|
|
554
|
+
project: '',
|
|
555
|
+
tags: [],
|
|
556
|
+
created: 'Jun 30',
|
|
557
|
+
createdISO: '2025-06-30',
|
|
558
|
+
updated: 'Jul 2',
|
|
559
|
+
updatedISO: '2025-07-02',
|
|
560
|
+
assignee: 'Mia Wilson',
|
|
561
|
+
},
|
|
562
|
+
];
|
|
563
|
+
|
|
564
|
+
const STATUS_LABEL: Record<TaskStatus, string> = {
|
|
565
|
+
in_progress: 'In Progress',
|
|
566
|
+
todo: 'Todo',
|
|
567
|
+
backlog: 'Backlog',
|
|
568
|
+
done: 'Done',
|
|
569
|
+
};
|
|
570
|
+
|
|
571
|
+
const GROUP_ORDER: TaskStatus[] = ['in_progress', 'todo', 'backlog', 'done'];
|
|
572
|
+
|
|
573
|
+
type GroupByField = 'status' | 'priority' | 'project' | 'assignee' | 'none';
|
|
574
|
+
|
|
575
|
+
const GROUP_BY_OPTIONS: {value: GroupByField; label: string}[] = [
|
|
576
|
+
{value: 'none', label: 'None'},
|
|
577
|
+
{value: 'status', label: 'Status'},
|
|
578
|
+
{value: 'priority', label: 'Priority'},
|
|
579
|
+
{value: 'project', label: 'Project'},
|
|
580
|
+
{value: 'assignee', label: 'Assignee'},
|
|
581
|
+
];
|
|
582
|
+
|
|
583
|
+
function groupTasks(
|
|
584
|
+
tasks: TaskRow[],
|
|
585
|
+
groupBy: GroupByField,
|
|
586
|
+
): Map<string, TaskRow[]> {
|
|
587
|
+
if (groupBy === 'none') {
|
|
588
|
+
return new Map([['All', tasks]]);
|
|
589
|
+
}
|
|
590
|
+
const map = new Map<string, TaskRow[]>();
|
|
591
|
+
for (const task of tasks) {
|
|
592
|
+
const key = String(task[groupBy]) || '—';
|
|
593
|
+
let group = map.get(key);
|
|
594
|
+
if (!group) {
|
|
595
|
+
group = [];
|
|
596
|
+
map.set(key, group);
|
|
597
|
+
}
|
|
598
|
+
group.push(task);
|
|
599
|
+
}
|
|
600
|
+
return map;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
function getGroupLabel(groupBy: GroupByField, key: string): string {
|
|
604
|
+
if (groupBy === 'status') {
|
|
605
|
+
return STATUS_LABEL[key as TaskStatus] ?? key;
|
|
606
|
+
}
|
|
607
|
+
if (groupBy === 'priority') {
|
|
608
|
+
const labels: Record<string, string> = {
|
|
609
|
+
urgent: 'Urgent',
|
|
610
|
+
high: 'High',
|
|
611
|
+
medium: 'Medium',
|
|
612
|
+
low: 'Low',
|
|
613
|
+
none: 'No priority',
|
|
614
|
+
};
|
|
615
|
+
return labels[key] ?? key;
|
|
616
|
+
}
|
|
617
|
+
return key;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
const columns: TableColumn<TaskRow>[] = [
|
|
621
|
+
{
|
|
622
|
+
key: 'status',
|
|
623
|
+
header: '',
|
|
624
|
+
width: pixel(44),
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
key: 'title',
|
|
628
|
+
header: 'Issue',
|
|
629
|
+
width: proportional(1),
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
key: 'project',
|
|
633
|
+
header: 'Project',
|
|
634
|
+
width: pixel(180),
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
key: 'created',
|
|
638
|
+
header: 'Created',
|
|
639
|
+
width: pixel(72),
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
key: 'updated',
|
|
643
|
+
header: 'Updated',
|
|
644
|
+
width: pixel(72),
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
key: 'assignee',
|
|
648
|
+
header: 'Assignee',
|
|
649
|
+
width: pixel(52),
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
key: 'actions',
|
|
653
|
+
header: '',
|
|
654
|
+
width: pixel(56),
|
|
655
|
+
},
|
|
656
|
+
];
|
|
657
|
+
|
|
658
|
+
const powerSearchConfig: PowerSearchConfig = {
|
|
659
|
+
name: 'IssueSearch',
|
|
660
|
+
fields: [
|
|
661
|
+
{
|
|
662
|
+
key: 'status',
|
|
663
|
+
label: 'Status',
|
|
664
|
+
operators: [
|
|
665
|
+
{
|
|
666
|
+
key: 'is',
|
|
667
|
+
label: 'is',
|
|
668
|
+
value: {
|
|
669
|
+
type: 'enum',
|
|
670
|
+
values: [
|
|
671
|
+
{value: 'in_progress', label: 'In Progress'},
|
|
672
|
+
{value: 'todo', label: 'Todo'},
|
|
673
|
+
{value: 'backlog', label: 'Backlog'},
|
|
674
|
+
{value: 'done', label: 'Done'},
|
|
675
|
+
],
|
|
676
|
+
},
|
|
677
|
+
},
|
|
678
|
+
],
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
key: 'priority',
|
|
682
|
+
label: 'Priority',
|
|
683
|
+
operators: [
|
|
684
|
+
{
|
|
685
|
+
key: 'is',
|
|
686
|
+
label: 'is',
|
|
687
|
+
value: {
|
|
688
|
+
type: 'enum',
|
|
689
|
+
values: [
|
|
690
|
+
{value: 'urgent', label: 'Urgent'},
|
|
691
|
+
{value: 'high', label: 'High'},
|
|
692
|
+
{value: 'medium', label: 'Medium'},
|
|
693
|
+
{value: 'low', label: 'Low'},
|
|
694
|
+
{value: 'none', label: 'None'},
|
|
695
|
+
],
|
|
696
|
+
},
|
|
697
|
+
},
|
|
698
|
+
],
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
key: 'title',
|
|
702
|
+
label: 'Title',
|
|
703
|
+
operators: [
|
|
704
|
+
{key: 'contains', label: 'contains', value: {type: 'string'}},
|
|
705
|
+
],
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
key: 'assignee',
|
|
709
|
+
label: 'Assignee',
|
|
710
|
+
operators: [
|
|
711
|
+
{key: 'contains', label: 'contains', value: {type: 'string'}},
|
|
712
|
+
],
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
key: 'project',
|
|
716
|
+
label: 'Project',
|
|
717
|
+
operators: [
|
|
718
|
+
{key: 'contains', label: 'contains', value: {type: 'string'}},
|
|
719
|
+
],
|
|
720
|
+
},
|
|
721
|
+
],
|
|
722
|
+
};
|
|
723
|
+
|
|
724
|
+
const PRIORITY_LABEL: Record<TaskPriority, string> = {
|
|
725
|
+
urgent: 'Urgent',
|
|
726
|
+
high: 'High',
|
|
727
|
+
medium: 'Medium',
|
|
728
|
+
low: 'Low',
|
|
729
|
+
none: 'None',
|
|
730
|
+
};
|
|
731
|
+
|
|
732
|
+
function TaskDetailPanel({
|
|
733
|
+
task,
|
|
734
|
+
onClose,
|
|
735
|
+
resizable,
|
|
736
|
+
}: {
|
|
737
|
+
task: TaskRow | null;
|
|
738
|
+
onClose: () => void;
|
|
739
|
+
resizable: ResizableProps;
|
|
740
|
+
}) {
|
|
741
|
+
if (!task) {
|
|
742
|
+
return null;
|
|
743
|
+
}
|
|
744
|
+
return (
|
|
745
|
+
// Panel owns the separator (its full-height left border). The adjacent
|
|
746
|
+
// ResizeHandle is kept divider-less + isAlwaysVisible={false} so its
|
|
747
|
+
// always-on pill doesn't float above the panel as a stray stub.
|
|
748
|
+
<LayoutPanel
|
|
749
|
+
hasDivider
|
|
750
|
+
resizable={resizable}
|
|
751
|
+
padding={4}
|
|
752
|
+
role="complementary"
|
|
753
|
+
label="Task details">
|
|
754
|
+
<VStack gap={4}>
|
|
755
|
+
<HStack gap={2} vAlign="center">
|
|
756
|
+
<StackItem size="fill">
|
|
757
|
+
<Text type="supporting" color="secondary">
|
|
758
|
+
{task.taskId}
|
|
759
|
+
</Text>
|
|
760
|
+
</StackItem>
|
|
761
|
+
<Button
|
|
762
|
+
label="Close panel"
|
|
763
|
+
variant="ghost"
|
|
764
|
+
size="sm"
|
|
765
|
+
icon={<Icon icon={XMarkIcon} size="sm" />}
|
|
766
|
+
isIconOnly
|
|
767
|
+
onClick={onClose}
|
|
768
|
+
/>
|
|
769
|
+
</HStack>
|
|
770
|
+
|
|
771
|
+
<VStack gap={1}>
|
|
772
|
+
<Heading level={3}>{task.title}</Heading>
|
|
773
|
+
{task.subtitle && (
|
|
774
|
+
<Text type="body" color="secondary">
|
|
775
|
+
{task.subtitle}
|
|
776
|
+
</Text>
|
|
777
|
+
)}
|
|
778
|
+
</VStack>
|
|
779
|
+
|
|
780
|
+
<MetadataList label={{position: 'start'}}>
|
|
781
|
+
<MetadataListItem label="Status">
|
|
782
|
+
<HStack gap={2} vAlign="center">
|
|
783
|
+
<StatusDot
|
|
784
|
+
variant={STATUS_DOT_VARIANT[task.status]}
|
|
785
|
+
label={STATUS_LABEL[task.status]}
|
|
786
|
+
/>
|
|
787
|
+
<Text type="body">{STATUS_LABEL[task.status]}</Text>
|
|
788
|
+
</HStack>
|
|
789
|
+
</MetadataListItem>
|
|
790
|
+
<MetadataListItem label="Priority">
|
|
791
|
+
<HStack gap={2} vAlign="center">
|
|
792
|
+
<Icon
|
|
793
|
+
icon={ChartBarIcon}
|
|
794
|
+
size="sm"
|
|
795
|
+
color={PRIORITY_COLOR[task.priority]}
|
|
796
|
+
/>
|
|
797
|
+
<Text type="body">{PRIORITY_LABEL[task.priority]}</Text>
|
|
798
|
+
</HStack>
|
|
799
|
+
</MetadataListItem>
|
|
800
|
+
<MetadataListItem label="Assignee">
|
|
801
|
+
<HStack gap={2} vAlign="center">
|
|
802
|
+
<Avatar name={task.assignee} size="xsmall" />
|
|
803
|
+
<Text type="body">{task.assignee}</Text>
|
|
804
|
+
</HStack>
|
|
805
|
+
</MetadataListItem>
|
|
806
|
+
<MetadataListItem label="Project">
|
|
807
|
+
{task.project || '\u2014'}
|
|
808
|
+
</MetadataListItem>
|
|
809
|
+
<MetadataListItem label="Created">
|
|
810
|
+
{task.created}
|
|
811
|
+
</MetadataListItem>
|
|
812
|
+
<MetadataListItem label="Updated">
|
|
813
|
+
{task.updated}
|
|
814
|
+
</MetadataListItem>
|
|
815
|
+
</MetadataList>
|
|
816
|
+
|
|
817
|
+
{task.tags.length > 0 && (
|
|
818
|
+
<>
|
|
819
|
+
<Divider />
|
|
820
|
+
<VStack gap={2}>
|
|
821
|
+
<Text type="label">Labels</Text>
|
|
822
|
+
<HStack gap={2}>
|
|
823
|
+
{task.tags.map(tag => (
|
|
824
|
+
<Badge key={tag} variant="neutral" label={tag} />
|
|
825
|
+
))}
|
|
826
|
+
</HStack>
|
|
827
|
+
</VStack>
|
|
828
|
+
</>
|
|
829
|
+
)}
|
|
830
|
+
</VStack>
|
|
831
|
+
</LayoutPanel>
|
|
832
|
+
);
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
export default function DataTableTemplate() {
|
|
836
|
+
const [search, _setSearch] = useState('');
|
|
837
|
+
const [priorityFilter, _setPriorityFilter] = useState('all');
|
|
838
|
+
const [dialogOpen, setDialogOpen] = useState(false);
|
|
839
|
+
const [selectedTask, setSelectedTask] = useState<TaskRow | null>(null);
|
|
840
|
+
const [powerSearchFilters, setPowerSearchFilters] = useState<
|
|
841
|
+
ReadonlyArray<PowerSearchFilter>
|
|
842
|
+
>([]);
|
|
843
|
+
const [groupBy, setGroupBy] = useState<GroupByField>('status');
|
|
844
|
+
const [expandedGroups, setExpandedGroups] = useState<Set<string>>(
|
|
845
|
+
() => new Set(GROUP_ORDER as string[]),
|
|
846
|
+
);
|
|
847
|
+
|
|
848
|
+
const filtered = useMemo(() => {
|
|
849
|
+
let data = allTasks;
|
|
850
|
+
if (search.trim()) {
|
|
851
|
+
const q = search.toLowerCase();
|
|
852
|
+
data = data.filter(
|
|
853
|
+
t =>
|
|
854
|
+
t.title.toLowerCase().includes(q) ||
|
|
855
|
+
t.taskId.toLowerCase().includes(q) ||
|
|
856
|
+
t.subtitle.toLowerCase().includes(q),
|
|
857
|
+
);
|
|
858
|
+
}
|
|
859
|
+
if (priorityFilter !== 'all') {
|
|
860
|
+
data = data.filter(t => t.priority === priorityFilter);
|
|
861
|
+
}
|
|
862
|
+
return data;
|
|
863
|
+
}, [search, priorityFilter]);
|
|
864
|
+
|
|
865
|
+
const grouped = useMemo(
|
|
866
|
+
() => groupTasks(filtered, groupBy),
|
|
867
|
+
[filtered, groupBy],
|
|
868
|
+
);
|
|
869
|
+
|
|
870
|
+
const groupKeys = useMemo(() => Array.from(grouped.keys()), [grouped]);
|
|
871
|
+
|
|
872
|
+
React.useEffect(() => {
|
|
873
|
+
setExpandedGroups(new Set(groupKeys));
|
|
874
|
+
}, [groupKeys]);
|
|
875
|
+
|
|
876
|
+
const toggleGroup = (key: string) => {
|
|
877
|
+
setExpandedGroups(prev => {
|
|
878
|
+
const next = new Set(prev);
|
|
879
|
+
if (next.has(key)) {
|
|
880
|
+
next.delete(key);
|
|
881
|
+
} else {
|
|
882
|
+
next.add(key);
|
|
883
|
+
}
|
|
884
|
+
return next;
|
|
885
|
+
});
|
|
886
|
+
};
|
|
887
|
+
|
|
888
|
+
const detailPanel = useResizable({
|
|
889
|
+
defaultSize: 360,
|
|
890
|
+
minSizePx: 280,
|
|
891
|
+
maxSizePx: 500,
|
|
892
|
+
});
|
|
893
|
+
|
|
894
|
+
const COL_COUNT = columns.length;
|
|
895
|
+
const resolvedWidths = resolveColumnWidths(columns);
|
|
896
|
+
|
|
897
|
+
return (
|
|
898
|
+
<>
|
|
899
|
+
<Layout
|
|
900
|
+
height="fill"
|
|
901
|
+
header={
|
|
902
|
+
<LayoutHeader hasDivider padding={4}>
|
|
903
|
+
<VStack gap={4}>
|
|
904
|
+
<HStack gap={3} vAlign="center">
|
|
905
|
+
<StackItem size="fill">
|
|
906
|
+
<Heading level={1}>All Issues</Heading>
|
|
907
|
+
</StackItem>
|
|
908
|
+
<Button
|
|
909
|
+
label="Create issue"
|
|
910
|
+
variant="primary"
|
|
911
|
+
size="lg"
|
|
912
|
+
onClick={() => setDialogOpen(true)}
|
|
913
|
+
/>
|
|
914
|
+
</HStack>
|
|
915
|
+
<HStack gap={2} vAlign="center">
|
|
916
|
+
<StackItem size="fill">
|
|
917
|
+
<PowerSearch
|
|
918
|
+
config={powerSearchConfig}
|
|
919
|
+
filters={powerSearchFilters}
|
|
920
|
+
onChange={newFilters => setPowerSearchFilters(newFilters)}
|
|
921
|
+
placeholder="Filter issues..."
|
|
922
|
+
resultCount={`${filtered.length} issue${filtered.length !== 1 ? 's' : ''}`}
|
|
923
|
+
/>
|
|
924
|
+
</StackItem>
|
|
925
|
+
<Popover
|
|
926
|
+
placement="below"
|
|
927
|
+
alignment="end"
|
|
928
|
+
width={320}
|
|
929
|
+
label="Grouping options"
|
|
930
|
+
content={
|
|
931
|
+
<VStack gap={4}>
|
|
932
|
+
<RadioList
|
|
933
|
+
label="Group by"
|
|
934
|
+
value={groupBy}
|
|
935
|
+
onChange={v => setGroupBy(v as GroupByField)}>
|
|
936
|
+
{GROUP_BY_OPTIONS.map(opt => (
|
|
937
|
+
<RadioListItem
|
|
938
|
+
key={opt.value}
|
|
939
|
+
value={opt.value}
|
|
940
|
+
label={opt.label}
|
|
941
|
+
/>
|
|
942
|
+
))}
|
|
943
|
+
</RadioList>
|
|
944
|
+
</VStack>
|
|
945
|
+
}>
|
|
946
|
+
<Button
|
|
947
|
+
label="View Options"
|
|
948
|
+
variant="secondary"
|
|
949
|
+
size="md"
|
|
950
|
+
/>
|
|
951
|
+
</Popover>
|
|
952
|
+
</HStack>
|
|
953
|
+
</VStack>
|
|
954
|
+
</LayoutHeader>
|
|
955
|
+
}
|
|
956
|
+
content={
|
|
957
|
+
<LayoutContent role="main" padding={0}>
|
|
958
|
+
<Table
|
|
959
|
+
columns={columns}
|
|
960
|
+
density="balanced"
|
|
961
|
+
dividers="rows"
|
|
962
|
+
textOverflow="truncate"
|
|
963
|
+
hasHover>
|
|
964
|
+
<colgroup>
|
|
965
|
+
{columns.map(col => (
|
|
966
|
+
<col
|
|
967
|
+
key={col.key}
|
|
968
|
+
style={resolvedWidths.columns.get(col.key)?.style}
|
|
969
|
+
/>
|
|
970
|
+
))}
|
|
971
|
+
</colgroup>
|
|
972
|
+
{groupKeys.map(key => {
|
|
973
|
+
const tasks = grouped.get(key);
|
|
974
|
+
if (!tasks || tasks.length === 0) {
|
|
975
|
+
return null;
|
|
976
|
+
}
|
|
977
|
+
const isExpanded = expandedGroups.has(key);
|
|
978
|
+
|
|
979
|
+
return (
|
|
980
|
+
<React.Fragment key={key}>
|
|
981
|
+
{groupBy !== 'none' && (
|
|
982
|
+
<TableRow
|
|
983
|
+
role="button"
|
|
984
|
+
tabIndex={0}
|
|
985
|
+
onClick={() => toggleGroup(key)}
|
|
986
|
+
onKeyDown={e => {
|
|
987
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
988
|
+
e.preventDefault();
|
|
989
|
+
toggleGroup(key);
|
|
990
|
+
}
|
|
991
|
+
}}
|
|
992
|
+
xstyle={[pageStyles.groupHeaderRow]}>
|
|
993
|
+
<TableCell
|
|
994
|
+
colSpan={COL_COUNT}
|
|
995
|
+
xstyle={pageStyles.groupHeaderCell}>
|
|
996
|
+
<HStack gap={2} vAlign="center">
|
|
997
|
+
<Icon
|
|
998
|
+
icon={
|
|
999
|
+
isExpanded ? ChevronDownIcon : ChevronRightIcon
|
|
1000
|
+
}
|
|
1001
|
+
size="sm"
|
|
1002
|
+
color="secondary"
|
|
1003
|
+
/>
|
|
1004
|
+
<Text type="body" weight="bold">
|
|
1005
|
+
{getGroupLabel(groupBy, key)}
|
|
1006
|
+
</Text>
|
|
1007
|
+
<Badge
|
|
1008
|
+
variant="neutral"
|
|
1009
|
+
label={String(tasks.length)}
|
|
1010
|
+
/>
|
|
1011
|
+
</HStack>
|
|
1012
|
+
</TableCell>
|
|
1013
|
+
</TableRow>
|
|
1014
|
+
)}
|
|
1015
|
+
{(groupBy === 'none' || isExpanded) &&
|
|
1016
|
+
tasks.map(task => (
|
|
1017
|
+
<TableRow
|
|
1018
|
+
key={task.id}
|
|
1019
|
+
onClick={() => setSelectedTask(task)}>
|
|
1020
|
+
<TableCell>
|
|
1021
|
+
<Center axis="horizontal">
|
|
1022
|
+
<StatusDot
|
|
1023
|
+
variant={STATUS_DOT_VARIANT[task.status]}
|
|
1024
|
+
label={STATUS_LABEL[task.status]}
|
|
1025
|
+
/>
|
|
1026
|
+
</Center>
|
|
1027
|
+
</TableCell>
|
|
1028
|
+
<TableCell>
|
|
1029
|
+
<HStack gap={3} vAlign="center">
|
|
1030
|
+
<Icon
|
|
1031
|
+
icon={ChartBarIcon}
|
|
1032
|
+
size="sm"
|
|
1033
|
+
color={PRIORITY_COLOR[task.priority]}
|
|
1034
|
+
/>
|
|
1035
|
+
<Text type="supporting" color="secondary">
|
|
1036
|
+
{task.taskId}
|
|
1037
|
+
</Text>
|
|
1038
|
+
<Text type="body" maxLines={1}>
|
|
1039
|
+
{task.title}
|
|
1040
|
+
</Text>
|
|
1041
|
+
{task.subtitle && (
|
|
1042
|
+
<Text
|
|
1043
|
+
type="body"
|
|
1044
|
+
color="secondary"
|
|
1045
|
+
maxLines={1}>
|
|
1046
|
+
› {task.subtitle}
|
|
1047
|
+
</Text>
|
|
1048
|
+
)}
|
|
1049
|
+
</HStack>
|
|
1050
|
+
</TableCell>
|
|
1051
|
+
<TableCell>
|
|
1052
|
+
{task.project ? (
|
|
1053
|
+
<Text type="body" maxLines={1}>
|
|
1054
|
+
{task.project}
|
|
1055
|
+
</Text>
|
|
1056
|
+
) : (
|
|
1057
|
+
<Text type="supporting" color="secondary">
|
|
1058
|
+
—
|
|
1059
|
+
</Text>
|
|
1060
|
+
)}
|
|
1061
|
+
</TableCell>
|
|
1062
|
+
<TableCell>
|
|
1063
|
+
<Text type="supporting" color="secondary">
|
|
1064
|
+
{task.created}
|
|
1065
|
+
</Text>
|
|
1066
|
+
</TableCell>
|
|
1067
|
+
<TableCell>
|
|
1068
|
+
<Text type="supporting" color="secondary">
|
|
1069
|
+
{task.updated}
|
|
1070
|
+
</Text>
|
|
1071
|
+
</TableCell>
|
|
1072
|
+
<TableCell>
|
|
1073
|
+
<Avatar name={task.assignee} size="xsmall" />
|
|
1074
|
+
</TableCell>
|
|
1075
|
+
<TableCell>
|
|
1076
|
+
<DropdownMenu
|
|
1077
|
+
button={{
|
|
1078
|
+
label: 'Actions',
|
|
1079
|
+
variant: 'ghost',
|
|
1080
|
+
size: 'sm',
|
|
1081
|
+
icon: (
|
|
1082
|
+
<Icon
|
|
1083
|
+
icon={EllipsisHorizontalIcon}
|
|
1084
|
+
size="sm"
|
|
1085
|
+
/>
|
|
1086
|
+
),
|
|
1087
|
+
isIconOnly: true,
|
|
1088
|
+
}}
|
|
1089
|
+
hasChevron={false}
|
|
1090
|
+
items={[
|
|
1091
|
+
{
|
|
1092
|
+
label: 'Edit issue',
|
|
1093
|
+
icon: PencilIcon,
|
|
1094
|
+
onClick: () => {},
|
|
1095
|
+
},
|
|
1096
|
+
{
|
|
1097
|
+
label: 'Assign to...',
|
|
1098
|
+
icon: UserIcon,
|
|
1099
|
+
onClick: () => {},
|
|
1100
|
+
},
|
|
1101
|
+
{
|
|
1102
|
+
label: 'Add label',
|
|
1103
|
+
icon: TagIcon,
|
|
1104
|
+
onClick: () => {},
|
|
1105
|
+
},
|
|
1106
|
+
{
|
|
1107
|
+
label: 'Duplicate',
|
|
1108
|
+
icon: DocumentDuplicateIcon,
|
|
1109
|
+
onClick: () => {},
|
|
1110
|
+
},
|
|
1111
|
+
{
|
|
1112
|
+
label: 'Move to project',
|
|
1113
|
+
icon: ArrowRightIcon,
|
|
1114
|
+
onClick: () => {},
|
|
1115
|
+
},
|
|
1116
|
+
{type: 'divider' as const},
|
|
1117
|
+
{
|
|
1118
|
+
label: 'Delete issue',
|
|
1119
|
+
icon: TrashIcon,
|
|
1120
|
+
onClick: () => {},
|
|
1121
|
+
},
|
|
1122
|
+
]}
|
|
1123
|
+
/>
|
|
1124
|
+
</TableCell>
|
|
1125
|
+
</TableRow>
|
|
1126
|
+
))}
|
|
1127
|
+
</React.Fragment>
|
|
1128
|
+
);
|
|
1129
|
+
})}
|
|
1130
|
+
</Table>
|
|
1131
|
+
</LayoutContent>
|
|
1132
|
+
}
|
|
1133
|
+
end={
|
|
1134
|
+
selectedTask && (
|
|
1135
|
+
<>
|
|
1136
|
+
<ResizeHandle
|
|
1137
|
+
resizable={detailPanel.props}
|
|
1138
|
+
isReversed
|
|
1139
|
+
isAlwaysVisible={false}
|
|
1140
|
+
/>
|
|
1141
|
+
<TaskDetailPanel
|
|
1142
|
+
task={selectedTask}
|
|
1143
|
+
onClose={() => setSelectedTask(null)}
|
|
1144
|
+
resizable={detailPanel.props}
|
|
1145
|
+
/>
|
|
1146
|
+
</>
|
|
1147
|
+
)
|
|
1148
|
+
}
|
|
1149
|
+
/>
|
|
1150
|
+
<Dialog isOpen={dialogOpen} onOpenChange={open => setDialogOpen(open)}>
|
|
1151
|
+
<Layout
|
|
1152
|
+
header={
|
|
1153
|
+
<DialogHeader
|
|
1154
|
+
title="Create Issue"
|
|
1155
|
+
onOpenChange={open => setDialogOpen(open)}
|
|
1156
|
+
/>
|
|
1157
|
+
}
|
|
1158
|
+
content={
|
|
1159
|
+
<LayoutContent padding={4}>
|
|
1160
|
+
<VStack gap={4}>
|
|
1161
|
+
<TextInput
|
|
1162
|
+
label="Title"
|
|
1163
|
+
placeholder="Issue title"
|
|
1164
|
+
value=""
|
|
1165
|
+
onChange={() => {}}
|
|
1166
|
+
/>
|
|
1167
|
+
<Selector
|
|
1168
|
+
label="Status"
|
|
1169
|
+
value="todo"
|
|
1170
|
+
options={[
|
|
1171
|
+
{value: 'in_progress', label: 'In Progress'},
|
|
1172
|
+
{value: 'todo', label: 'Todo'},
|
|
1173
|
+
{value: 'backlog', label: 'Backlog'},
|
|
1174
|
+
]}
|
|
1175
|
+
onChange={() => {}}
|
|
1176
|
+
/>
|
|
1177
|
+
<Selector
|
|
1178
|
+
label="Priority"
|
|
1179
|
+
value="none"
|
|
1180
|
+
options={[
|
|
1181
|
+
{value: 'urgent', label: 'Urgent'},
|
|
1182
|
+
{value: 'high', label: 'High'},
|
|
1183
|
+
{value: 'medium', label: 'Medium'},
|
|
1184
|
+
{value: 'low', label: 'Low'},
|
|
1185
|
+
{value: 'none', label: 'No priority'},
|
|
1186
|
+
]}
|
|
1187
|
+
onChange={() => {}}
|
|
1188
|
+
/>
|
|
1189
|
+
<TextInput
|
|
1190
|
+
label="Project"
|
|
1191
|
+
placeholder="Project name"
|
|
1192
|
+
value=""
|
|
1193
|
+
onChange={() => {}}
|
|
1194
|
+
/>
|
|
1195
|
+
</VStack>
|
|
1196
|
+
</LayoutContent>
|
|
1197
|
+
}
|
|
1198
|
+
footer={
|
|
1199
|
+
<LayoutFooter hasDivider>
|
|
1200
|
+
<HStack gap={2} hAlign="end">
|
|
1201
|
+
<Button
|
|
1202
|
+
label="Cancel"
|
|
1203
|
+
variant="secondary"
|
|
1204
|
+
size="md"
|
|
1205
|
+
onClick={() => setDialogOpen(false)}
|
|
1206
|
+
/>
|
|
1207
|
+
<Button
|
|
1208
|
+
label="Create"
|
|
1209
|
+
variant="primary"
|
|
1210
|
+
size="md"
|
|
1211
|
+
onClick={() => setDialogOpen(false)}
|
|
1212
|
+
/>
|
|
1213
|
+
</HStack>
|
|
1214
|
+
</LayoutFooter>
|
|
1215
|
+
}
|
|
1216
|
+
/>
|
|
1217
|
+
</Dialog>
|
|
1218
|
+
</>
|
|
1219
|
+
);
|
|
1220
|
+
}
|