@astryxdesign/cli 0.0.0-bootstrap.0 → 0.0.15
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 +266 -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 +360 -0
- package/docs/theme.doc.dense.mjs +21 -0
- package/docs/theme.doc.mjs +584 -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 +80 -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 +492 -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 +291 -0
- package/templates/pages/documentation/template.doc.mjs +11 -0
- package/templates/pages/documentation-design/page.tsx +735 -0
- package/templates/pages/documentation-design/template.doc.mjs +11 -0
- package/templates/pages/documentation-technical/page.tsx +215 -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 +261 -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 +544 -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,1288 @@
|
|
|
1
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
|
|
3
|
+
'use client';
|
|
4
|
+
|
|
5
|
+
import {type CSSProperties, type ReactNode} from 'react';
|
|
6
|
+
import * as stylex from '@stylexjs/stylex';
|
|
7
|
+
import {
|
|
8
|
+
Plus,
|
|
9
|
+
Search,
|
|
10
|
+
Tag,
|
|
11
|
+
Folder,
|
|
12
|
+
MapPin,
|
|
13
|
+
List,
|
|
14
|
+
LayoutGrid,
|
|
15
|
+
ShoppingBag,
|
|
16
|
+
Banknote,
|
|
17
|
+
Mic,
|
|
18
|
+
CreditCard,
|
|
19
|
+
Lock,
|
|
20
|
+
X,
|
|
21
|
+
Download,
|
|
22
|
+
Smartphone,
|
|
23
|
+
Wallet,
|
|
24
|
+
User,
|
|
25
|
+
} from 'lucide-react';
|
|
26
|
+
import {Text, Heading} from '@astryxdesign/core/Text';
|
|
27
|
+
import {VStack, HStack} from '@astryxdesign/core/Layout';
|
|
28
|
+
import {useAppShellMobile} from '@astryxdesign/core/AppShell';
|
|
29
|
+
import {Grid, GridSpan} from '@astryxdesign/core/Grid';
|
|
30
|
+
import {Card} from '@astryxdesign/core/Card';
|
|
31
|
+
import {Button} from '@astryxdesign/core/Button';
|
|
32
|
+
import {Link} from '@astryxdesign/core/Link';
|
|
33
|
+
import {Badge} from '@astryxdesign/core/Badge';
|
|
34
|
+
import {Banner} from '@astryxdesign/core/Banner';
|
|
35
|
+
import {Divider} from '@astryxdesign/core/Divider';
|
|
36
|
+
import {CheckboxInput} from '@astryxdesign/core/CheckboxInput';
|
|
37
|
+
import {Item} from '@astryxdesign/core/Item';
|
|
38
|
+
import {Table, proportional, pixel} from '@astryxdesign/core/Table';
|
|
39
|
+
import {TextInput} from '@astryxdesign/core/TextInput';
|
|
40
|
+
import {Selector} from '@astryxdesign/core/Selector';
|
|
41
|
+
import {RadioList, RadioListItem} from '@astryxdesign/core/RadioList';
|
|
42
|
+
import {SelectableCard} from '@astryxdesign/core/SelectableCard';
|
|
43
|
+
import {MoreMenu} from '@astryxdesign/core/MoreMenu';
|
|
44
|
+
import {Center} from '@astryxdesign/core/Center';
|
|
45
|
+
import {Section} from '@astryxdesign/core/Section';
|
|
46
|
+
import {AspectRatio} from '@astryxdesign/core/AspectRatio';
|
|
47
|
+
import {NumberInput} from '@astryxdesign/core/NumberInput';
|
|
48
|
+
import {OverflowList} from '@astryxdesign/core/OverflowList';
|
|
49
|
+
import {TopNav, TopNavHeading, TopNavItem} from '@astryxdesign/core/TopNav';
|
|
50
|
+
import {
|
|
51
|
+
ChatComposer,
|
|
52
|
+
ChatMessage,
|
|
53
|
+
ChatMessageBubble,
|
|
54
|
+
ChatMessageList,
|
|
55
|
+
ChatSystemMessage,
|
|
56
|
+
} from '@astryxdesign/core/Chat';
|
|
57
|
+
|
|
58
|
+
// Styles passed to Astryx components via their `xstyle` prop. These are
|
|
59
|
+
// applied by the components themselves, so they work in compiled builds
|
|
60
|
+
// and in the live playground preview alike.
|
|
61
|
+
const styles = stylex.create({
|
|
62
|
+
card: {
|
|
63
|
+
backgroundColor: 'var(--color-background-body)',
|
|
64
|
+
color: 'var(--color-text-primary)',
|
|
65
|
+
minWidth: 0,
|
|
66
|
+
borderColor: 'transparent',
|
|
67
|
+
},
|
|
68
|
+
checkoutStack: {
|
|
69
|
+
minWidth: 0,
|
|
70
|
+
width: '100%',
|
|
71
|
+
},
|
|
72
|
+
paymentCardContent: {
|
|
73
|
+
minWidth: 0,
|
|
74
|
+
width: '100%',
|
|
75
|
+
textAlign: 'center',
|
|
76
|
+
wordBreak: 'break-word',
|
|
77
|
+
},
|
|
78
|
+
inventoryCard: {
|
|
79
|
+
backgroundColor: 'var(--color-background-surface)',
|
|
80
|
+
color: 'var(--color-text-primary)',
|
|
81
|
+
overflow: 'hidden',
|
|
82
|
+
},
|
|
83
|
+
inventoryHeader: {
|
|
84
|
+
paddingBlock: 'var(--spacing-6)',
|
|
85
|
+
paddingInline: 'var(--spacing-6)',
|
|
86
|
+
},
|
|
87
|
+
inventoryFilterRow: {
|
|
88
|
+
paddingBlock: 'var(--spacing-4)',
|
|
89
|
+
paddingInline: 'var(--spacing-6)',
|
|
90
|
+
width: '100%',
|
|
91
|
+
overflowX: 'auto' as const,
|
|
92
|
+
},
|
|
93
|
+
// Inset the table by --spacing-6 (the card is padding={0}) so its edge lines
|
|
94
|
+
// up with the header/filter row in every theme's spacing scale.
|
|
95
|
+
inventoryTableWrap: {
|
|
96
|
+
paddingInline: 'var(--spacing-6)',
|
|
97
|
+
paddingBlockEnd: 'var(--spacing-2)',
|
|
98
|
+
},
|
|
99
|
+
searchInput: {
|
|
100
|
+
flex: 1,
|
|
101
|
+
minWidth: 0,
|
|
102
|
+
maxWidth: 240,
|
|
103
|
+
},
|
|
104
|
+
activityCard: {
|
|
105
|
+
backgroundColor: 'var(--color-background-surface)',
|
|
106
|
+
color: 'var(--color-text-primary)',
|
|
107
|
+
minWidth: 0,
|
|
108
|
+
height: '100%',
|
|
109
|
+
},
|
|
110
|
+
chatCard: {
|
|
111
|
+
backgroundColor: 'var(--color-background-surface)',
|
|
112
|
+
color: 'var(--color-text-primary)',
|
|
113
|
+
minWidth: 0,
|
|
114
|
+
overflow: 'hidden',
|
|
115
|
+
display: 'flex',
|
|
116
|
+
flexDirection: 'column' as const,
|
|
117
|
+
},
|
|
118
|
+
chatHeader: {
|
|
119
|
+
paddingBlock: 'var(--spacing-4)',
|
|
120
|
+
paddingInline: 'var(--spacing-4)',
|
|
121
|
+
},
|
|
122
|
+
activityCardStack: {
|
|
123
|
+
height: '100%',
|
|
124
|
+
},
|
|
125
|
+
activityListFade: {
|
|
126
|
+
flex: 1,
|
|
127
|
+
minHeight: 0,
|
|
128
|
+
overflow: 'hidden',
|
|
129
|
+
maskImage:
|
|
130
|
+
'linear-gradient(to bottom, black calc(100% - 48px), transparent)',
|
|
131
|
+
WebkitMaskImage:
|
|
132
|
+
'linear-gradient(to bottom, black calc(100% - 48px), transparent)',
|
|
133
|
+
marginInline: 'calc(var(--spacing-2) * -1)',
|
|
134
|
+
},
|
|
135
|
+
content: {
|
|
136
|
+
maxWidth: 960,
|
|
137
|
+
marginInline: 'auto',
|
|
138
|
+
minWidth: 0,
|
|
139
|
+
},
|
|
140
|
+
contentFluid: {
|
|
141
|
+
maxWidth: 880,
|
|
142
|
+
},
|
|
143
|
+
heroText: {
|
|
144
|
+
textAlign: 'center' as const,
|
|
145
|
+
maxWidth: 560,
|
|
146
|
+
},
|
|
147
|
+
// Hero headline painted with the theme's accent-text ink. Text has no
|
|
148
|
+
// 'accent' color value, so we set the dedicated --color-text-accent token
|
|
149
|
+
// directly (distinct from --color-accent / the 'active' color).
|
|
150
|
+
heroHeadline: {
|
|
151
|
+
color: 'var(--color-text-accent)',
|
|
152
|
+
},
|
|
153
|
+
centerText: {
|
|
154
|
+
textAlign: 'center',
|
|
155
|
+
},
|
|
156
|
+
cardStack: {
|
|
157
|
+
height: '100%',
|
|
158
|
+
},
|
|
159
|
+
cardDescription: {
|
|
160
|
+
flex: 1,
|
|
161
|
+
},
|
|
162
|
+
quantityInput: {
|
|
163
|
+
// minWidth (not a hard width) so the field grows to fit the digit + the
|
|
164
|
+
// theme's input padding. A fixed 40px was too tight on themes with larger
|
|
165
|
+
// padding / bigger type scale (e.g. Matcha, Y2K), clipping the value.
|
|
166
|
+
minWidth: 64,
|
|
167
|
+
flexShrink: 0,
|
|
168
|
+
},
|
|
169
|
+
cartButton: {
|
|
170
|
+
flex: 1,
|
|
171
|
+
},
|
|
172
|
+
});
|
|
173
|
+
|
|
174
|
+
// Styles applied directly to plain DOM elements via the `style` prop.
|
|
175
|
+
// Kept as inline styles (rather than stylex.create) so they render in the
|
|
176
|
+
// playground preview, which can't compile StyleX — `stylex.props()` is a
|
|
177
|
+
// no-op there, so raw `{...stylex.props(...)}` on a <div>/<img> would lose
|
|
178
|
+
// these declarations. All are static (no media/pseudo variants), so inline
|
|
179
|
+
// styles reproduce them exactly.
|
|
180
|
+
const inlineStyles: Record<string, CSSProperties> = {
|
|
181
|
+
inventoryBannerWrap: {
|
|
182
|
+
paddingInline: 'var(--spacing-6)',
|
|
183
|
+
paddingBottom: 'var(--spacing-4)',
|
|
184
|
+
},
|
|
185
|
+
thumbnail: {
|
|
186
|
+
width: 40,
|
|
187
|
+
height: 40,
|
|
188
|
+
borderRadius: 'var(--radius-element)',
|
|
189
|
+
objectFit: 'cover',
|
|
190
|
+
display: 'block',
|
|
191
|
+
flexShrink: 0,
|
|
192
|
+
},
|
|
193
|
+
thumbnailFallback: {
|
|
194
|
+
width: 40,
|
|
195
|
+
height: 40,
|
|
196
|
+
borderRadius: 'var(--radius-element)',
|
|
197
|
+
backgroundColor: 'var(--color-background-muted)',
|
|
198
|
+
color: 'var(--color-text-secondary)',
|
|
199
|
+
display: 'flex',
|
|
200
|
+
alignItems: 'center',
|
|
201
|
+
justifyContent: 'center',
|
|
202
|
+
fontSize: 'var(--font-size-sm)',
|
|
203
|
+
fontWeight: 600,
|
|
204
|
+
flexShrink: 0,
|
|
205
|
+
},
|
|
206
|
+
kpiValue: {
|
|
207
|
+
fontSize: 24,
|
|
208
|
+
fontWeight: 700,
|
|
209
|
+
lineHeight: 1.1,
|
|
210
|
+
color: 'var(--color-text-primary)',
|
|
211
|
+
fontFamily: 'var(--font-family-heading)',
|
|
212
|
+
letterSpacing: '-0.01em',
|
|
213
|
+
},
|
|
214
|
+
chatBody: {
|
|
215
|
+
flex: 1,
|
|
216
|
+
minHeight: 0,
|
|
217
|
+
overflow: 'hidden',
|
|
218
|
+
},
|
|
219
|
+
chatSuggestions: {
|
|
220
|
+
paddingInline: 'var(--spacing-4)',
|
|
221
|
+
paddingBottom: 'var(--spacing-2)',
|
|
222
|
+
},
|
|
223
|
+
chatComposer: {
|
|
224
|
+
paddingInline: 'var(--spacing-4)',
|
|
225
|
+
paddingBottom: 'var(--spacing-4)',
|
|
226
|
+
},
|
|
227
|
+
activityIcon: {
|
|
228
|
+
width: 32,
|
|
229
|
+
height: 32,
|
|
230
|
+
borderRadius: 'var(--radius-full)',
|
|
231
|
+
backgroundColor: 'var(--color-background-muted)',
|
|
232
|
+
color: 'var(--color-text-secondary)',
|
|
233
|
+
display: 'flex',
|
|
234
|
+
alignItems: 'center',
|
|
235
|
+
justifyContent: 'center',
|
|
236
|
+
flexShrink: 0,
|
|
237
|
+
},
|
|
238
|
+
productImage: {
|
|
239
|
+
width: '100%',
|
|
240
|
+
height: '100%',
|
|
241
|
+
objectFit: 'cover',
|
|
242
|
+
},
|
|
243
|
+
cardBody: {
|
|
244
|
+
padding: 'var(--spacing-4)',
|
|
245
|
+
flex: 1,
|
|
246
|
+
display: 'flex',
|
|
247
|
+
flexDirection: 'column',
|
|
248
|
+
},
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
const PRODUCT_IMAGE_KEYS = ['watch', 'headphones', 'backpack'];
|
|
252
|
+
|
|
253
|
+
/** Categorical badge variants usable for showcase product/inventory tags. */
|
|
254
|
+
export type ShowcaseBadgeVariant =
|
|
255
|
+
| 'blue'
|
|
256
|
+
| 'cyan'
|
|
257
|
+
| 'green'
|
|
258
|
+
| 'orange'
|
|
259
|
+
| 'pink'
|
|
260
|
+
| 'purple'
|
|
261
|
+
| 'red'
|
|
262
|
+
| 'teal'
|
|
263
|
+
| 'yellow';
|
|
264
|
+
|
|
265
|
+
export interface ProductSpec {
|
|
266
|
+
name: string;
|
|
267
|
+
description: string;
|
|
268
|
+
badge: string;
|
|
269
|
+
badgeVariant: ShowcaseBadgeVariant;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
const DEFAULT_PRODUCTS: ProductSpec[] = [
|
|
273
|
+
{
|
|
274
|
+
name: 'Minimalist Watch',
|
|
275
|
+
description: 'Clean design meets everyday durability.',
|
|
276
|
+
badge: 'New',
|
|
277
|
+
badgeVariant: 'blue',
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
name: 'Wireless Headphones',
|
|
281
|
+
description: 'Immersive sound, all-day comfort.',
|
|
282
|
+
badge: 'Popular',
|
|
283
|
+
badgeVariant: 'green',
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
name: 'Canvas Backpack',
|
|
287
|
+
description: 'Water-resistant canvas with a quiet, modern profile.',
|
|
288
|
+
badge: 'Limited',
|
|
289
|
+
badgeVariant: 'yellow',
|
|
290
|
+
},
|
|
291
|
+
];
|
|
292
|
+
|
|
293
|
+
// Neutral product photos, served from the shared astryx asset CDN so the
|
|
294
|
+
// scaffolded template renders real imagery without needing local public assets.
|
|
295
|
+
const NEUTRAL_CDN = 'https://lookaside.facebook.com/assets/astryx';
|
|
296
|
+
const DEFAULT_IMAGES: Record<string, string> = {
|
|
297
|
+
watch: `${NEUTRAL_CDN}/Neutral-Watch.png`,
|
|
298
|
+
headphones: `${NEUTRAL_CDN}/Neutral-Headphones.png`,
|
|
299
|
+
backpack: `${NEUTRAL_CDN}/Neutral-Backpack.png`,
|
|
300
|
+
wallet: `${NEUTRAL_CDN}/Neutral-Wallet.png`,
|
|
301
|
+
tumbler: `${NEUTRAL_CDN}/Neutral-Tumbler.png`,
|
|
302
|
+
throw_: `${NEUTRAL_CDN}/Neutral-Blanket.png`,
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
export interface ThemeShowcaseProps {
|
|
306
|
+
/** Product card images keyed by slot (watch/headphones/backpack/…). */
|
|
307
|
+
images?: Record<string, string>;
|
|
308
|
+
/** The three hero product cards. Defaults to the neutral store products. */
|
|
309
|
+
products?: ProductSpec[];
|
|
310
|
+
/** Inventory table rows. Defaults to the neutral store inventory. */
|
|
311
|
+
inventory?: InventoryRow[];
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
// Default export is the route page (sandbox renders this as a Next.js page, so
|
|
315
|
+
// it must take no props / satisfy PageProps). It renders the store with the
|
|
316
|
+
// neutral defaults. Consumers that need per-theme content import the named
|
|
317
|
+
// `ThemeShowcaseStore` below and pass images/products/inventory.
|
|
318
|
+
export default function ThemeShowcase() {
|
|
319
|
+
return <ThemeShowcaseStore />;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
export function ThemeShowcaseStore({
|
|
323
|
+
images = DEFAULT_IMAGES,
|
|
324
|
+
products = DEFAULT_PRODUCTS,
|
|
325
|
+
inventory = DEFAULT_INVENTORY,
|
|
326
|
+
}: ThemeShowcaseProps = {}) {
|
|
327
|
+
const {isMobile} = useAppShellMobile();
|
|
328
|
+
return (
|
|
329
|
+
<div
|
|
330
|
+
style={{
|
|
331
|
+
minHeight: '100%',
|
|
332
|
+
backgroundColor: 'var(--color-background-body)',
|
|
333
|
+
}}>
|
|
334
|
+
<StorePreview images={images} products={products} isMobile={isMobile} />
|
|
335
|
+
<div
|
|
336
|
+
style={{
|
|
337
|
+
padding: 'var(--spacing-6)',
|
|
338
|
+
backgroundColor: 'var(--color-background-surface)',
|
|
339
|
+
}}>
|
|
340
|
+
<CardShowcase
|
|
341
|
+
images={images}
|
|
342
|
+
inventory={inventory}
|
|
343
|
+
isMobile={isMobile}
|
|
344
|
+
/>
|
|
345
|
+
</div>
|
|
346
|
+
</div>
|
|
347
|
+
);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
function CardShowcase({
|
|
351
|
+
images,
|
|
352
|
+
inventory,
|
|
353
|
+
isMobile,
|
|
354
|
+
}: {
|
|
355
|
+
images: Record<string, string>;
|
|
356
|
+
inventory: InventoryRow[];
|
|
357
|
+
isMobile: boolean;
|
|
358
|
+
}) {
|
|
359
|
+
const columns = isMobile ? 1 : ({minWidth: 200, repeat: 'fit'} as const);
|
|
360
|
+
|
|
361
|
+
return (
|
|
362
|
+
<VStack gap={8}>
|
|
363
|
+
<Grid columns={columns} gap={4}>
|
|
364
|
+
<GridSpan columns={1}>
|
|
365
|
+
<CheckoutCard isMobile={isMobile} />
|
|
366
|
+
</GridSpan>
|
|
367
|
+
<GridSpan columns={isMobile ? 1 : 2}>
|
|
368
|
+
<ChatCard />
|
|
369
|
+
</GridSpan>
|
|
370
|
+
</Grid>
|
|
371
|
+
<Grid columns={columns} gap={4}>
|
|
372
|
+
<GridSpan columns={isMobile ? 1 : 3}>
|
|
373
|
+
<InventoryCard images={images} inventory={inventory} />
|
|
374
|
+
</GridSpan>
|
|
375
|
+
<GridSpan columns={1}>
|
|
376
|
+
<LatestActivityCard isMobile={isMobile} />
|
|
377
|
+
</GridSpan>
|
|
378
|
+
</Grid>
|
|
379
|
+
</VStack>
|
|
380
|
+
);
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
function StorePreview({
|
|
384
|
+
images,
|
|
385
|
+
products,
|
|
386
|
+
isMobile,
|
|
387
|
+
}: {
|
|
388
|
+
images: Record<string, string>;
|
|
389
|
+
products: ProductSpec[];
|
|
390
|
+
isMobile: boolean;
|
|
391
|
+
}) {
|
|
392
|
+
return (
|
|
393
|
+
<div data-theme-preview="true">
|
|
394
|
+
<VStack gap={0}>
|
|
395
|
+
<TopNav
|
|
396
|
+
label="Theme preview navigation"
|
|
397
|
+
heading={<TopNavHeading heading="Studio" />}
|
|
398
|
+
centerContent={
|
|
399
|
+
isMobile ? undefined : (
|
|
400
|
+
<>
|
|
401
|
+
<TopNavItem label="Shop" href="#" isSelected />
|
|
402
|
+
<TopNavItem label="New In" href="#" />
|
|
403
|
+
<TopNavItem label="Stories" href="#" />
|
|
404
|
+
<TopNavItem label="Help" href="#" />
|
|
405
|
+
</>
|
|
406
|
+
)
|
|
407
|
+
}
|
|
408
|
+
endContent={
|
|
409
|
+
<HStack gap={2} vAlign="center">
|
|
410
|
+
<HStack gap={0.5}>
|
|
411
|
+
<Button
|
|
412
|
+
label="Search"
|
|
413
|
+
tooltip="Search"
|
|
414
|
+
variant="ghost"
|
|
415
|
+
isIconOnly
|
|
416
|
+
icon={<Search size={20} />}
|
|
417
|
+
href="#"
|
|
418
|
+
/>
|
|
419
|
+
<Button
|
|
420
|
+
label="Account"
|
|
421
|
+
tooltip="Account"
|
|
422
|
+
variant="ghost"
|
|
423
|
+
isIconOnly
|
|
424
|
+
icon={<User size={20} />}
|
|
425
|
+
href="#"
|
|
426
|
+
/>
|
|
427
|
+
<Button
|
|
428
|
+
label="Cart"
|
|
429
|
+
tooltip="Cart"
|
|
430
|
+
variant="ghost"
|
|
431
|
+
isIconOnly
|
|
432
|
+
icon={<ShoppingBag size={20} />}
|
|
433
|
+
href="#"
|
|
434
|
+
/>
|
|
435
|
+
</HStack>
|
|
436
|
+
<Button label="Sign in" variant="primary" href="#" />
|
|
437
|
+
</HStack>
|
|
438
|
+
}
|
|
439
|
+
/>
|
|
440
|
+
|
|
441
|
+
<Section padding={6} variant="transparent">
|
|
442
|
+
<VStack gap={10} xstyle={[styles.content, styles.contentFluid]}>
|
|
443
|
+
<Center>
|
|
444
|
+
<VStack gap={4} hAlign="center" xstyle={styles.heroText}>
|
|
445
|
+
<Text type="display-2" xstyle={styles.heroHeadline}>
|
|
446
|
+
Little joys,
|
|
447
|
+
<br />
|
|
448
|
+
everywhere you go
|
|
449
|
+
</Text>
|
|
450
|
+
<Text type="body" color="secondary">
|
|
451
|
+
We believe the smallest details are the ones that matter most.
|
|
452
|
+
Turn an ordinary day into something worth remembering.
|
|
453
|
+
</Text>
|
|
454
|
+
</VStack>
|
|
455
|
+
</Center>
|
|
456
|
+
|
|
457
|
+
<Grid columns={isMobile ? 1 : {minWidth: 200, max: 3}} gap={4}>
|
|
458
|
+
{products.map((p, i) => (
|
|
459
|
+
<Card key={p.name} padding={0} height="100%">
|
|
460
|
+
<VStack gap={0} xstyle={styles.cardStack}>
|
|
461
|
+
<AspectRatio ratio={1}>
|
|
462
|
+
<img
|
|
463
|
+
src={images[PRODUCT_IMAGE_KEYS[i]]}
|
|
464
|
+
alt={p.name}
|
|
465
|
+
style={inlineStyles.productImage}
|
|
466
|
+
/>
|
|
467
|
+
</AspectRatio>
|
|
468
|
+
<div style={inlineStyles.cardBody}>
|
|
469
|
+
<VStack
|
|
470
|
+
gap={2}
|
|
471
|
+
hAlign="center"
|
|
472
|
+
xstyle={styles.cardStack}>
|
|
473
|
+
<HStack>
|
|
474
|
+
<Badge label={p.badge} variant={p.badgeVariant} />
|
|
475
|
+
</HStack>
|
|
476
|
+
<Heading level={2} xstyle={styles.centerText}>
|
|
477
|
+
{p.name}
|
|
478
|
+
</Heading>
|
|
479
|
+
<Text
|
|
480
|
+
type="supporting"
|
|
481
|
+
color="secondary"
|
|
482
|
+
xstyle={[styles.cardDescription, styles.centerText]}>
|
|
483
|
+
{p.description}
|
|
484
|
+
</Text>
|
|
485
|
+
<HStack gap={2} vAlign="center" hAlign="center">
|
|
486
|
+
<NumberInput
|
|
487
|
+
label="Quantity"
|
|
488
|
+
isLabelHidden
|
|
489
|
+
value={1}
|
|
490
|
+
onChange={() => {}}
|
|
491
|
+
min={1}
|
|
492
|
+
max={99}
|
|
493
|
+
size="sm"
|
|
494
|
+
xstyle={styles.quantityInput}
|
|
495
|
+
/>
|
|
496
|
+
<Button
|
|
497
|
+
label="Add to cart"
|
|
498
|
+
variant="secondary"
|
|
499
|
+
size="sm"
|
|
500
|
+
href="#"
|
|
501
|
+
xstyle={styles.cartButton}
|
|
502
|
+
/>
|
|
503
|
+
</HStack>
|
|
504
|
+
</VStack>
|
|
505
|
+
</div>
|
|
506
|
+
</VStack>
|
|
507
|
+
</Card>
|
|
508
|
+
))}
|
|
509
|
+
</Grid>
|
|
510
|
+
</VStack>
|
|
511
|
+
</Section>
|
|
512
|
+
</VStack>
|
|
513
|
+
</div>
|
|
514
|
+
);
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
function CheckoutCard({isMobile}: {isMobile: boolean}) {
|
|
518
|
+
return (
|
|
519
|
+
<Card padding={5} xstyle={styles.card}>
|
|
520
|
+
<VStack gap={4} xstyle={styles.checkoutStack}>
|
|
521
|
+
<Heading level={2}>Checkout</Heading>
|
|
522
|
+
|
|
523
|
+
<VStack gap={3} xstyle={styles.checkoutStack}>
|
|
524
|
+
<TextInput
|
|
525
|
+
label="Email"
|
|
526
|
+
placeholder="you@studio.com"
|
|
527
|
+
value=""
|
|
528
|
+
onChange={() => {}}
|
|
529
|
+
size="lg"
|
|
530
|
+
/>
|
|
531
|
+
|
|
532
|
+
<RadioList
|
|
533
|
+
label="Shipping method"
|
|
534
|
+
description="Delivery time may vary based on location and availability."
|
|
535
|
+
value="economy"
|
|
536
|
+
onChange={() => {}}>
|
|
537
|
+
<RadioListItem
|
|
538
|
+
value="economy"
|
|
539
|
+
label="Economy Shipping"
|
|
540
|
+
description="Delivered in 5–7 business days"
|
|
541
|
+
endContent={
|
|
542
|
+
<Text type="body" weight="bold">
|
|
543
|
+
$12.00
|
|
544
|
+
</Text>
|
|
545
|
+
}
|
|
546
|
+
/>
|
|
547
|
+
<RadioListItem
|
|
548
|
+
value="standard"
|
|
549
|
+
label="Standard Shipping"
|
|
550
|
+
description="Delivered in 3–5 business days"
|
|
551
|
+
endContent={
|
|
552
|
+
<Text type="body" weight="bold">
|
|
553
|
+
$16.00
|
|
554
|
+
</Text>
|
|
555
|
+
}
|
|
556
|
+
/>
|
|
557
|
+
<RadioListItem
|
|
558
|
+
value="express"
|
|
559
|
+
label="Express Shipping"
|
|
560
|
+
description="Delivered in 1–2 business days"
|
|
561
|
+
endContent={
|
|
562
|
+
<Text type="body" weight="bold">
|
|
563
|
+
$24.00
|
|
564
|
+
</Text>
|
|
565
|
+
}
|
|
566
|
+
/>
|
|
567
|
+
</RadioList>
|
|
568
|
+
|
|
569
|
+
<VStack gap={2} xstyle={styles.checkoutStack}>
|
|
570
|
+
<Text type="supporting" weight="bold">
|
|
571
|
+
Payment method
|
|
572
|
+
</Text>
|
|
573
|
+
<Grid columns={isMobile ? 1 : {minWidth: 70, max: 3}} gap={2}>
|
|
574
|
+
<SelectableCard
|
|
575
|
+
label="Pay with card"
|
|
576
|
+
isSelected={true}
|
|
577
|
+
onChange={() => {}}
|
|
578
|
+
padding={3}>
|
|
579
|
+
<VStack
|
|
580
|
+
gap={1}
|
|
581
|
+
hAlign="center"
|
|
582
|
+
xstyle={styles.paymentCardContent}>
|
|
583
|
+
<CreditCard size={20} />
|
|
584
|
+
<Text type="supporting" weight="bold">
|
|
585
|
+
Card
|
|
586
|
+
</Text>
|
|
587
|
+
</VStack>
|
|
588
|
+
</SelectableCard>
|
|
589
|
+
<SelectableCard
|
|
590
|
+
label="Pay with Apple Pay"
|
|
591
|
+
isSelected={false}
|
|
592
|
+
onChange={() => {}}
|
|
593
|
+
padding={3}>
|
|
594
|
+
<VStack
|
|
595
|
+
gap={1}
|
|
596
|
+
hAlign="center"
|
|
597
|
+
xstyle={styles.paymentCardContent}>
|
|
598
|
+
<Smartphone size={20} />
|
|
599
|
+
<Text type="supporting" weight="bold">
|
|
600
|
+
Apple Pay
|
|
601
|
+
</Text>
|
|
602
|
+
</VStack>
|
|
603
|
+
</SelectableCard>
|
|
604
|
+
<SelectableCard
|
|
605
|
+
label="Pay with Google Pay"
|
|
606
|
+
isSelected={false}
|
|
607
|
+
onChange={() => {}}
|
|
608
|
+
padding={3}>
|
|
609
|
+
<VStack
|
|
610
|
+
gap={1}
|
|
611
|
+
hAlign="center"
|
|
612
|
+
xstyle={styles.paymentCardContent}>
|
|
613
|
+
<Wallet size={20} />
|
|
614
|
+
<Text type="supporting" weight="bold">
|
|
615
|
+
Google Pay
|
|
616
|
+
</Text>
|
|
617
|
+
</VStack>
|
|
618
|
+
</SelectableCard>
|
|
619
|
+
</Grid>
|
|
620
|
+
</VStack>
|
|
621
|
+
|
|
622
|
+
<TextInput
|
|
623
|
+
label="Card number"
|
|
624
|
+
placeholder="1234 1234 1234 1234"
|
|
625
|
+
value=""
|
|
626
|
+
onChange={() => {}}
|
|
627
|
+
startIcon={<CreditCard size={16} />}
|
|
628
|
+
size="lg"
|
|
629
|
+
/>
|
|
630
|
+
|
|
631
|
+
<Grid columns={isMobile ? 1 : {minWidth: 90, max: 2}} gap={2}>
|
|
632
|
+
<TextInput
|
|
633
|
+
label="Expiry"
|
|
634
|
+
placeholder="MM / YY"
|
|
635
|
+
value=""
|
|
636
|
+
onChange={() => {}}
|
|
637
|
+
size="lg"
|
|
638
|
+
/>
|
|
639
|
+
<TextInput
|
|
640
|
+
label="CVC"
|
|
641
|
+
placeholder="123"
|
|
642
|
+
value=""
|
|
643
|
+
onChange={() => {}}
|
|
644
|
+
size="lg"
|
|
645
|
+
/>
|
|
646
|
+
</Grid>
|
|
647
|
+
|
|
648
|
+
<Selector
|
|
649
|
+
label="Country"
|
|
650
|
+
value="us"
|
|
651
|
+
onChange={() => {}}
|
|
652
|
+
size="lg"
|
|
653
|
+
options={[
|
|
654
|
+
{value: 'us', label: 'United States'},
|
|
655
|
+
{value: 'ca', label: 'Canada'},
|
|
656
|
+
{value: 'uk', label: 'United Kingdom'},
|
|
657
|
+
{value: 'de', label: 'Germany'},
|
|
658
|
+
{value: 'jp', label: 'Japan'},
|
|
659
|
+
{value: 'au', label: 'Australia'},
|
|
660
|
+
]}
|
|
661
|
+
/>
|
|
662
|
+
</VStack>
|
|
663
|
+
|
|
664
|
+
<CheckboxInput
|
|
665
|
+
label="Securely save my information for 1-click checkout"
|
|
666
|
+
description="Pay faster on Studio and everywhere Link is accepted."
|
|
667
|
+
value={true}
|
|
668
|
+
onChange={() => {}}
|
|
669
|
+
/>
|
|
670
|
+
|
|
671
|
+
<Button
|
|
672
|
+
variant="primary"
|
|
673
|
+
size="lg"
|
|
674
|
+
label="Pay now"
|
|
675
|
+
icon={<Lock size={16} />}
|
|
676
|
+
/>
|
|
677
|
+
</VStack>
|
|
678
|
+
</Card>
|
|
679
|
+
);
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
const SUGGESTED_QUESTIONS = [
|
|
683
|
+
'Reschedule delivery',
|
|
684
|
+
'Update shipping address',
|
|
685
|
+
'Start a return',
|
|
686
|
+
];
|
|
687
|
+
|
|
688
|
+
function ChatCard() {
|
|
689
|
+
return (
|
|
690
|
+
<Card padding={0} xstyle={styles.chatCard}>
|
|
691
|
+
<HStack
|
|
692
|
+
hAlign="between"
|
|
693
|
+
vAlign="center"
|
|
694
|
+
gap={3}
|
|
695
|
+
xstyle={styles.chatHeader}>
|
|
696
|
+
<Heading level={2}>Studio AI</Heading>
|
|
697
|
+
|
|
698
|
+
<HStack gap={1} vAlign="center">
|
|
699
|
+
<Button
|
|
700
|
+
variant="ghost"
|
|
701
|
+
size="sm"
|
|
702
|
+
isIconOnly
|
|
703
|
+
label="Export conversation"
|
|
704
|
+
tooltip="Export conversation"
|
|
705
|
+
icon={<Download size={16} />}
|
|
706
|
+
/>
|
|
707
|
+
<Button
|
|
708
|
+
variant="ghost"
|
|
709
|
+
size="sm"
|
|
710
|
+
isIconOnly
|
|
711
|
+
label="Close chat"
|
|
712
|
+
tooltip="Close chat"
|
|
713
|
+
icon={<X size={16} />}
|
|
714
|
+
/>
|
|
715
|
+
</HStack>
|
|
716
|
+
</HStack>
|
|
717
|
+
|
|
718
|
+
<Divider variant="subtle" />
|
|
719
|
+
|
|
720
|
+
<div style={inlineStyles.chatBody}>
|
|
721
|
+
<ChatMessageList>
|
|
722
|
+
<ChatSystemMessage>Today</ChatSystemMessage>
|
|
723
|
+
|
|
724
|
+
<ChatMessage sender="user">
|
|
725
|
+
<ChatMessageBubble variant="filled">
|
|
726
|
+
Where’s my order?
|
|
727
|
+
</ChatMessageBubble>
|
|
728
|
+
</ChatMessage>
|
|
729
|
+
|
|
730
|
+
<ChatMessage sender="assistant">
|
|
731
|
+
<VStack gap={3}>
|
|
732
|
+
<Text type="body">
|
|
733
|
+
Your order #1043 — the Minimalist Watch and Linen Throw —
|
|
734
|
+
shipped this morning from the Aisle 3 warehouse and is currently
|
|
735
|
+
in transit with UPS. It’s on track to arrive at your address by
|
|
736
|
+
end of day tomorrow.
|
|
737
|
+
</Text>
|
|
738
|
+
<Text type="body">
|
|
739
|
+
Let me know if you’d like to reschedule the delivery, redirect
|
|
740
|
+
it to a pickup point, or start a return once it arrives.
|
|
741
|
+
</Text>
|
|
742
|
+
</VStack>
|
|
743
|
+
</ChatMessage>
|
|
744
|
+
|
|
745
|
+
<ChatMessage sender="user">
|
|
746
|
+
<ChatMessageBubble variant="filled">
|
|
747
|
+
Can you show me the full details?
|
|
748
|
+
</ChatMessageBubble>
|
|
749
|
+
</ChatMessage>
|
|
750
|
+
|
|
751
|
+
<ChatMessage sender="assistant">
|
|
752
|
+
<VStack gap={3}>
|
|
753
|
+
<Text type="body">
|
|
754
|
+
Here’s everything I have on order #1043:
|
|
755
|
+
</Text>
|
|
756
|
+
<Card padding={3}>
|
|
757
|
+
<VStack gap={1}>
|
|
758
|
+
<Item
|
|
759
|
+
label="Items"
|
|
760
|
+
description="Minimalist Watch · Linen Throw"
|
|
761
|
+
endContent={
|
|
762
|
+
<Text type="body" weight="bold">
|
|
763
|
+
$248
|
|
764
|
+
</Text>
|
|
765
|
+
}
|
|
766
|
+
/>
|
|
767
|
+
<Item
|
|
768
|
+
label="Shipping"
|
|
769
|
+
description="UPS Ground"
|
|
770
|
+
endContent={
|
|
771
|
+
<Text type="body" weight="bold">
|
|
772
|
+
$12
|
|
773
|
+
</Text>
|
|
774
|
+
}
|
|
775
|
+
/>
|
|
776
|
+
<Item
|
|
777
|
+
label="Estimated arrival"
|
|
778
|
+
description="Tomorrow by 8pm"
|
|
779
|
+
endContent={<Badge variant="green" label="On time" />}
|
|
780
|
+
/>
|
|
781
|
+
<Item
|
|
782
|
+
label="Tracking"
|
|
783
|
+
description="UPS 1Z 999 AA1 0123 4567 84"
|
|
784
|
+
endContent={<Link href="#">Track →</Link>}
|
|
785
|
+
/>
|
|
786
|
+
</VStack>
|
|
787
|
+
</Card>
|
|
788
|
+
</VStack>
|
|
789
|
+
</ChatMessage>
|
|
790
|
+
</ChatMessageList>
|
|
791
|
+
</div>
|
|
792
|
+
|
|
793
|
+
<div style={inlineStyles.chatSuggestions}>
|
|
794
|
+
<HStack gap={1} hAlign="center" wrap="wrap">
|
|
795
|
+
{SUGGESTED_QUESTIONS.map(question => (
|
|
796
|
+
<Button
|
|
797
|
+
key={question}
|
|
798
|
+
variant="secondary"
|
|
799
|
+
size="sm"
|
|
800
|
+
label={question}
|
|
801
|
+
/>
|
|
802
|
+
))}
|
|
803
|
+
</HStack>
|
|
804
|
+
</div>
|
|
805
|
+
|
|
806
|
+
<div style={inlineStyles.chatComposer}>
|
|
807
|
+
<ChatComposer
|
|
808
|
+
value=""
|
|
809
|
+
onChange={() => {}}
|
|
810
|
+
onSubmit={() => {}}
|
|
811
|
+
placeholder="Ask Studio AI…"
|
|
812
|
+
footerActions={
|
|
813
|
+
<Button
|
|
814
|
+
variant="ghost"
|
|
815
|
+
size="md"
|
|
816
|
+
isIconOnly
|
|
817
|
+
label="Attach"
|
|
818
|
+
tooltip="Attach"
|
|
819
|
+
icon={<Plus size={16} />}
|
|
820
|
+
/>
|
|
821
|
+
}
|
|
822
|
+
sendActions={
|
|
823
|
+
<Button
|
|
824
|
+
variant="ghost"
|
|
825
|
+
size="md"
|
|
826
|
+
isIconOnly
|
|
827
|
+
label="Voice input"
|
|
828
|
+
tooltip="Voice input"
|
|
829
|
+
icon={<Mic size={16} />}
|
|
830
|
+
/>
|
|
831
|
+
}
|
|
832
|
+
/>
|
|
833
|
+
</div>
|
|
834
|
+
</Card>
|
|
835
|
+
);
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
interface ActivityRow {
|
|
839
|
+
id: string;
|
|
840
|
+
icon: ReactNode;
|
|
841
|
+
label: string;
|
|
842
|
+
detail: string;
|
|
843
|
+
time: string;
|
|
844
|
+
amount: number;
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
const ACTIVITY: ActivityRow[] = [
|
|
848
|
+
{
|
|
849
|
+
id: '1',
|
|
850
|
+
icon: <ShoppingBag size={16} />,
|
|
851
|
+
label: 'Order #1043',
|
|
852
|
+
detail: 'Placed · 1:59 pm',
|
|
853
|
+
time: '1:59 pm',
|
|
854
|
+
amount: 248,
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
id: '2',
|
|
858
|
+
icon: <Banknote size={16} />,
|
|
859
|
+
label: 'Order #1041',
|
|
860
|
+
detail: 'Refunded · 12:40 pm',
|
|
861
|
+
time: '12:40 pm',
|
|
862
|
+
amount: -89,
|
|
863
|
+
},
|
|
864
|
+
{
|
|
865
|
+
id: '3',
|
|
866
|
+
icon: <ShoppingBag size={16} />,
|
|
867
|
+
label: 'Order #1040',
|
|
868
|
+
detail: 'Placed · 10:30 am',
|
|
869
|
+
time: '10:30 am',
|
|
870
|
+
amount: 156,
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
id: '4',
|
|
874
|
+
icon: <ShoppingBag size={16} />,
|
|
875
|
+
label: 'Order #1038',
|
|
876
|
+
detail: 'Placed · 9:11 am',
|
|
877
|
+
time: '9:11 am',
|
|
878
|
+
amount: 412,
|
|
879
|
+
},
|
|
880
|
+
{
|
|
881
|
+
id: '5',
|
|
882
|
+
icon: <ShoppingBag size={16} />,
|
|
883
|
+
label: 'Order #1037',
|
|
884
|
+
detail: 'Placed · 8:42 am',
|
|
885
|
+
time: '8:42 am',
|
|
886
|
+
amount: 95,
|
|
887
|
+
},
|
|
888
|
+
];
|
|
889
|
+
|
|
890
|
+
function formatAmount(amount: number): string {
|
|
891
|
+
const sign = amount < 0 ? '−' : '+';
|
|
892
|
+
return sign + '$' + Math.abs(amount).toLocaleString();
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
function LatestActivityCard({isMobile}: {isMobile: boolean}) {
|
|
896
|
+
return (
|
|
897
|
+
<Card padding={5} xstyle={styles.activityCard}>
|
|
898
|
+
<VStack gap={4} xstyle={styles.activityCardStack}>
|
|
899
|
+
<Heading level={2}>Revenue</Heading>
|
|
900
|
+
|
|
901
|
+
<Grid columns={isMobile ? 1 : 2} gap={3}>
|
|
902
|
+
<VStack gap={0}>
|
|
903
|
+
<span style={inlineStyles.kpiValue}>18K</span>
|
|
904
|
+
<Text type="supporting" color="secondary">
|
|
905
|
+
Monthly revenue
|
|
906
|
+
</Text>
|
|
907
|
+
</VStack>
|
|
908
|
+
<VStack gap={0}>
|
|
909
|
+
<span style={inlineStyles.kpiValue}>+12%</span>
|
|
910
|
+
<Text type="supporting" color="secondary">
|
|
911
|
+
Order growth
|
|
912
|
+
</Text>
|
|
913
|
+
</VStack>
|
|
914
|
+
</Grid>
|
|
915
|
+
|
|
916
|
+
<Divider variant="subtle" />
|
|
917
|
+
|
|
918
|
+
<HStack hAlign="between" vAlign="center">
|
|
919
|
+
<Heading level={3}>Activity</Heading>
|
|
920
|
+
<Link href="#">See all</Link>
|
|
921
|
+
</HStack>
|
|
922
|
+
|
|
923
|
+
<VStack gap={1} xstyle={styles.activityListFade}>
|
|
924
|
+
{ACTIVITY.map(item => (
|
|
925
|
+
<Item
|
|
926
|
+
key={item.id}
|
|
927
|
+
startContent={
|
|
928
|
+
<div style={inlineStyles.activityIcon} aria-hidden="true">
|
|
929
|
+
{item.icon}
|
|
930
|
+
</div>
|
|
931
|
+
}
|
|
932
|
+
label={item.label}
|
|
933
|
+
description={item.detail}
|
|
934
|
+
endContent={
|
|
935
|
+
<Text
|
|
936
|
+
type="body"
|
|
937
|
+
weight="bold"
|
|
938
|
+
color={item.amount < 0 ? 'secondary' : 'primary'}>
|
|
939
|
+
{formatAmount(item.amount)}
|
|
940
|
+
</Text>
|
|
941
|
+
}
|
|
942
|
+
href="#"
|
|
943
|
+
/>
|
|
944
|
+
))}
|
|
945
|
+
</VStack>
|
|
946
|
+
</VStack>
|
|
947
|
+
</Card>
|
|
948
|
+
);
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
type TagSpec = {label: string; variant: ShowcaseBadgeVariant};
|
|
952
|
+
|
|
953
|
+
export interface InventoryRow extends Record<string, unknown> {
|
|
954
|
+
id: string;
|
|
955
|
+
name: string;
|
|
956
|
+
meta: string;
|
|
957
|
+
available: number;
|
|
958
|
+
location: string;
|
|
959
|
+
tags: TagSpec[];
|
|
960
|
+
imageKey?: string;
|
|
961
|
+
thumbnailFallback: string;
|
|
962
|
+
selected: boolean;
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
const DEFAULT_INVENTORY: InventoryRow[] = [
|
|
966
|
+
{
|
|
967
|
+
id: 'a',
|
|
968
|
+
name: 'Minimalist Watch',
|
|
969
|
+
meta: 'Stainless steel, sapphire crystal',
|
|
970
|
+
available: 42,
|
|
971
|
+
location: 'Aisle 3',
|
|
972
|
+
tags: [{label: 'New', variant: 'blue'}],
|
|
973
|
+
imageKey: 'watch',
|
|
974
|
+
thumbnailFallback: 'M',
|
|
975
|
+
selected: false,
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
id: 'b',
|
|
979
|
+
name: 'Wireless Headphones',
|
|
980
|
+
meta: 'ANC, 30hr battery',
|
|
981
|
+
available: 128,
|
|
982
|
+
location: 'Aisle 1',
|
|
983
|
+
tags: [{label: 'Popular', variant: 'green'}],
|
|
984
|
+
imageKey: 'headphones',
|
|
985
|
+
thumbnailFallback: 'W',
|
|
986
|
+
selected: true,
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
id: 'c',
|
|
990
|
+
name: 'Canvas Backpack',
|
|
991
|
+
meta: 'Water-resistant, 25L',
|
|
992
|
+
available: 63,
|
|
993
|
+
location: 'Aisle 2',
|
|
994
|
+
tags: [{label: 'Limited', variant: 'yellow'}],
|
|
995
|
+
imageKey: 'backpack',
|
|
996
|
+
thumbnailFallback: 'C',
|
|
997
|
+
selected: false,
|
|
998
|
+
},
|
|
999
|
+
{
|
|
1000
|
+
id: 'd',
|
|
1001
|
+
name: 'Leather Wallet',
|
|
1002
|
+
meta: 'Full-grain, RFID blocking',
|
|
1003
|
+
available: 15,
|
|
1004
|
+
location: 'Aisle 4',
|
|
1005
|
+
tags: [{label: 'Leather', variant: 'yellow'}],
|
|
1006
|
+
imageKey: 'wallet',
|
|
1007
|
+
thumbnailFallback: 'L',
|
|
1008
|
+
selected: true,
|
|
1009
|
+
},
|
|
1010
|
+
{
|
|
1011
|
+
id: 'e',
|
|
1012
|
+
name: 'Travel Tumbler',
|
|
1013
|
+
meta: 'Vacuum insulated, 16oz',
|
|
1014
|
+
available: 87,
|
|
1015
|
+
location: 'Aisle 5',
|
|
1016
|
+
tags: [{label: 'Drinkware', variant: 'green'}],
|
|
1017
|
+
imageKey: 'tumbler',
|
|
1018
|
+
thumbnailFallback: 'T',
|
|
1019
|
+
selected: false,
|
|
1020
|
+
},
|
|
1021
|
+
{
|
|
1022
|
+
id: 'f',
|
|
1023
|
+
name: 'Linen Throw',
|
|
1024
|
+
meta: 'Heavyweight, oat',
|
|
1025
|
+
available: 24,
|
|
1026
|
+
location: 'Aisle 6',
|
|
1027
|
+
tags: [{label: 'Home', variant: 'orange'}],
|
|
1028
|
+
imageKey: 'throw_',
|
|
1029
|
+
thumbnailFallback: 'L',
|
|
1030
|
+
selected: true,
|
|
1031
|
+
},
|
|
1032
|
+
];
|
|
1033
|
+
|
|
1034
|
+
const LOW_STOCK_THRESHOLD = 25;
|
|
1035
|
+
|
|
1036
|
+
function SelectCell({row}: {row: InventoryRow}) {
|
|
1037
|
+
return (
|
|
1038
|
+
<CheckboxInput
|
|
1039
|
+
label={'Select ' + row.name}
|
|
1040
|
+
isLabelHidden
|
|
1041
|
+
value={row.selected}
|
|
1042
|
+
onChange={() => {}}
|
|
1043
|
+
/>
|
|
1044
|
+
);
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
function ItemCell({
|
|
1048
|
+
row,
|
|
1049
|
+
images,
|
|
1050
|
+
}: {
|
|
1051
|
+
row: InventoryRow;
|
|
1052
|
+
images: Record<string, string>;
|
|
1053
|
+
}) {
|
|
1054
|
+
const thumbnailSrc = row.imageKey ? images[row.imageKey] : undefined;
|
|
1055
|
+
return (
|
|
1056
|
+
<HStack gap={3} vAlign="center">
|
|
1057
|
+
{thumbnailSrc ? (
|
|
1058
|
+
<img src={thumbnailSrc} alt="" style={inlineStyles.thumbnail} />
|
|
1059
|
+
) : (
|
|
1060
|
+
<div style={inlineStyles.thumbnailFallback} aria-hidden="true">
|
|
1061
|
+
{row.thumbnailFallback}
|
|
1062
|
+
</div>
|
|
1063
|
+
)}
|
|
1064
|
+
<VStack gap={0} style={{minWidth: 0}}>
|
|
1065
|
+
<Text type="body" weight="bold">
|
|
1066
|
+
{row.name}
|
|
1067
|
+
</Text>
|
|
1068
|
+
<Text type="supporting" color="secondary">
|
|
1069
|
+
{row.meta}
|
|
1070
|
+
</Text>
|
|
1071
|
+
</VStack>
|
|
1072
|
+
</HStack>
|
|
1073
|
+
);
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
function TagsCell({row}: {row: InventoryRow}) {
|
|
1077
|
+
return (
|
|
1078
|
+
<HStack gap={1} wrap="wrap" hAlign="end">
|
|
1079
|
+
{row.tags.map(tag => (
|
|
1080
|
+
<Badge key={tag.label} label={tag.label} variant={tag.variant} />
|
|
1081
|
+
))}
|
|
1082
|
+
</HStack>
|
|
1083
|
+
);
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
function ActionsCell() {
|
|
1087
|
+
return (
|
|
1088
|
+
<MoreMenu
|
|
1089
|
+
label="Row actions"
|
|
1090
|
+
size="sm"
|
|
1091
|
+
items={[
|
|
1092
|
+
{label: 'Edit'},
|
|
1093
|
+
{label: 'Duplicate'},
|
|
1094
|
+
{label: 'Move to…'},
|
|
1095
|
+
{type: 'divider'},
|
|
1096
|
+
{label: 'Delete'},
|
|
1097
|
+
]}
|
|
1098
|
+
/>
|
|
1099
|
+
);
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
function InventoryCard({
|
|
1103
|
+
images,
|
|
1104
|
+
inventory,
|
|
1105
|
+
}: {
|
|
1106
|
+
images: Record<string, string>;
|
|
1107
|
+
inventory: InventoryRow[];
|
|
1108
|
+
}) {
|
|
1109
|
+
const lowStockCount = inventory.filter(
|
|
1110
|
+
row => row.available < LOW_STOCK_THRESHOLD,
|
|
1111
|
+
).length;
|
|
1112
|
+
return (
|
|
1113
|
+
<Card padding={0} xstyle={styles.inventoryCard}>
|
|
1114
|
+
<HStack
|
|
1115
|
+
hAlign="between"
|
|
1116
|
+
vAlign="center"
|
|
1117
|
+
xstyle={styles.inventoryHeader}>
|
|
1118
|
+
<Heading level={2}>Inventory</Heading>
|
|
1119
|
+
<Button
|
|
1120
|
+
label="Add item"
|
|
1121
|
+
variant="primary"
|
|
1122
|
+
size="sm"
|
|
1123
|
+
icon={<Plus size={16} />}
|
|
1124
|
+
/>
|
|
1125
|
+
</HStack>
|
|
1126
|
+
|
|
1127
|
+
<Divider variant="subtle" />
|
|
1128
|
+
|
|
1129
|
+
<HStack
|
|
1130
|
+
gap={3}
|
|
1131
|
+
vAlign="center"
|
|
1132
|
+
hAlign="between"
|
|
1133
|
+
xstyle={styles.inventoryFilterRow}>
|
|
1134
|
+
<HStack gap={2} vAlign="center" style={{flex: 1, minWidth: 0}}>
|
|
1135
|
+
<TextInput
|
|
1136
|
+
label="Search inventory"
|
|
1137
|
+
isLabelHidden
|
|
1138
|
+
placeholder="Type and hit enter…"
|
|
1139
|
+
value=""
|
|
1140
|
+
onChange={() => {}}
|
|
1141
|
+
startIcon={<Search size={16} />}
|
|
1142
|
+
xstyle={styles.searchInput}
|
|
1143
|
+
/>
|
|
1144
|
+
<OverflowList
|
|
1145
|
+
gap={2}
|
|
1146
|
+
overflowRenderer={() => (
|
|
1147
|
+
<Button
|
|
1148
|
+
label="Filters"
|
|
1149
|
+
variant="ghost"
|
|
1150
|
+
size="sm"
|
|
1151
|
+
icon={<Tag size={16} />}
|
|
1152
|
+
/>
|
|
1153
|
+
)}>
|
|
1154
|
+
<Selector
|
|
1155
|
+
label="Categories"
|
|
1156
|
+
isLabelHidden
|
|
1157
|
+
placeholder="Categories"
|
|
1158
|
+
size="sm"
|
|
1159
|
+
startIcon={<Folder size={16} />}
|
|
1160
|
+
value={undefined}
|
|
1161
|
+
onChange={() => {}}
|
|
1162
|
+
options={['Wearables', 'Audio', 'Bags', 'Drinkware', 'Home']}
|
|
1163
|
+
/>
|
|
1164
|
+
<Selector
|
|
1165
|
+
label="Locations"
|
|
1166
|
+
isLabelHidden
|
|
1167
|
+
placeholder="Locations"
|
|
1168
|
+
size="sm"
|
|
1169
|
+
startIcon={<MapPin size={16} />}
|
|
1170
|
+
value={undefined}
|
|
1171
|
+
onChange={() => {}}
|
|
1172
|
+
options={[
|
|
1173
|
+
'Aisle 1',
|
|
1174
|
+
'Aisle 2',
|
|
1175
|
+
'Aisle 3',
|
|
1176
|
+
'Aisle 4',
|
|
1177
|
+
'Aisle 5',
|
|
1178
|
+
'Aisle 6',
|
|
1179
|
+
]}
|
|
1180
|
+
/>
|
|
1181
|
+
<Selector
|
|
1182
|
+
label="Tags"
|
|
1183
|
+
isLabelHidden
|
|
1184
|
+
placeholder="Tags"
|
|
1185
|
+
size="sm"
|
|
1186
|
+
startIcon={<Tag size={16} />}
|
|
1187
|
+
value={undefined}
|
|
1188
|
+
onChange={() => {}}
|
|
1189
|
+
options={[
|
|
1190
|
+
'New',
|
|
1191
|
+
'Popular',
|
|
1192
|
+
'Limited',
|
|
1193
|
+
'Leather',
|
|
1194
|
+
'Drinkware',
|
|
1195
|
+
'Home',
|
|
1196
|
+
]}
|
|
1197
|
+
/>
|
|
1198
|
+
</OverflowList>
|
|
1199
|
+
</HStack>
|
|
1200
|
+
<HStack gap={1} vAlign="center">
|
|
1201
|
+
<Button
|
|
1202
|
+
variant="ghost"
|
|
1203
|
+
size="sm"
|
|
1204
|
+
isIconOnly
|
|
1205
|
+
label="List view"
|
|
1206
|
+
tooltip="List view"
|
|
1207
|
+
icon={<List size={18} />}
|
|
1208
|
+
/>
|
|
1209
|
+
<Button
|
|
1210
|
+
variant="ghost"
|
|
1211
|
+
size="sm"
|
|
1212
|
+
isIconOnly
|
|
1213
|
+
label="Grid view"
|
|
1214
|
+
tooltip="Grid view"
|
|
1215
|
+
icon={<LayoutGrid size={18} />}
|
|
1216
|
+
/>
|
|
1217
|
+
</HStack>
|
|
1218
|
+
</HStack>
|
|
1219
|
+
|
|
1220
|
+
{lowStockCount > 0 && (
|
|
1221
|
+
<div style={inlineStyles.inventoryBannerWrap}>
|
|
1222
|
+
<Banner
|
|
1223
|
+
status="warning"
|
|
1224
|
+
title={lowStockCount + ' items are running low'}
|
|
1225
|
+
/>
|
|
1226
|
+
</div>
|
|
1227
|
+
)}
|
|
1228
|
+
|
|
1229
|
+
<div {...stylex.props(styles.inventoryTableWrap)}>
|
|
1230
|
+
<Table<InventoryRow>
|
|
1231
|
+
data={inventory}
|
|
1232
|
+
columns={[
|
|
1233
|
+
{
|
|
1234
|
+
key: 'select',
|
|
1235
|
+
header: '',
|
|
1236
|
+
// Wide enough that the control + the theme's cell padding (up to
|
|
1237
|
+
// --spacing-4 = 16px/side on spacious density) fit inside the cell,
|
|
1238
|
+
// so the control's hover background doesn't overflow toward the
|
|
1239
|
+
// card's clipped (rounded) edge on larger-padding themes.
|
|
1240
|
+
width: pixel(64),
|
|
1241
|
+
renderCell: row => <SelectCell row={row} />,
|
|
1242
|
+
},
|
|
1243
|
+
{
|
|
1244
|
+
key: 'item',
|
|
1245
|
+
header: 'Item',
|
|
1246
|
+
// Lower min-width (default 120) so the table fits its container on
|
|
1247
|
+
// larger-spacing themes instead of overflowing the actions column.
|
|
1248
|
+
width: proportional(3, {minWidth: 80}),
|
|
1249
|
+
renderCell: row => <ItemCell row={row} images={images} />,
|
|
1250
|
+
},
|
|
1251
|
+
{
|
|
1252
|
+
key: 'available',
|
|
1253
|
+
header: 'Available',
|
|
1254
|
+
width: pixel(100),
|
|
1255
|
+
renderCell: row => <Text type="body">{row.available}</Text>,
|
|
1256
|
+
},
|
|
1257
|
+
{
|
|
1258
|
+
key: 'location',
|
|
1259
|
+
header: 'Location',
|
|
1260
|
+
width: pixel(100),
|
|
1261
|
+
renderCell: row => <Text type="body">{row.location}</Text>,
|
|
1262
|
+
},
|
|
1263
|
+
{
|
|
1264
|
+
key: 'tags',
|
|
1265
|
+
header: 'Tags',
|
|
1266
|
+
width: proportional(2, {minWidth: 80}),
|
|
1267
|
+
align: 'end',
|
|
1268
|
+
renderCell: row => <TagsCell row={row} />,
|
|
1269
|
+
},
|
|
1270
|
+
{
|
|
1271
|
+
key: 'actions',
|
|
1272
|
+
header: '',
|
|
1273
|
+
// Match the select column: fit the sm more-menu button + cell
|
|
1274
|
+
// padding so its hover background stays clear of the card's
|
|
1275
|
+
// clipped rounded edge across themes.
|
|
1276
|
+
width: pixel(64),
|
|
1277
|
+
align: 'end',
|
|
1278
|
+
renderCell: () => <ActionsCell />,
|
|
1279
|
+
},
|
|
1280
|
+
]}
|
|
1281
|
+
density="spacious"
|
|
1282
|
+
dividers="rows"
|
|
1283
|
+
hasHover
|
|
1284
|
+
/>
|
|
1285
|
+
</div>
|
|
1286
|
+
</Card>
|
|
1287
|
+
);
|
|
1288
|
+
}
|