@ug666/ui-react 0.3.0-beta.1 → 0.3.0-beta.3
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/LICENSE +21 -0
- package/dist/RELEASE_PROVENANCE.json +8 -0
- package/dist/THIRD_PARTY_NOTICES.txt +98 -0
- package/dist/ai/SKILL.md +242 -0
- package/dist/ai/manifest.json +815 -0
- package/dist/ai/references/components/accordion.md +41 -0
- package/dist/ai/references/components/admin-shell.md +27 -0
- package/dist/ai/references/components/alert.md +40 -0
- package/dist/ai/references/components/app-tabs.md +27 -0
- package/dist/ai/references/components/attachment-list.md +27 -0
- package/dist/ai/references/components/autocomplete.md +41 -0
- package/dist/ai/references/components/avatar-group.md +39 -0
- package/dist/ai/references/components/avatar.md +39 -0
- package/dist/ai/references/components/backtop.md +40 -0
- package/dist/ai/references/components/badge.md +43 -0
- package/dist/ai/references/components/bar-chart.md +41 -0
- package/dist/ai/references/components/breadcrumb.md +41 -0
- package/dist/ai/references/components/button.md +39 -0
- package/dist/ai/references/components/calendar.md +42 -0
- package/dist/ai/references/components/card.md +39 -0
- package/dist/ai/references/components/carousel.md +41 -0
- package/dist/ai/references/components/cascader.md +43 -0
- package/dist/ai/references/components/checkbox.md +40 -0
- package/dist/ai/references/components/collapse.md +41 -0
- package/dist/ai/references/components/color-picker.md +42 -0
- package/dist/ai/references/components/config-provider.md +39 -0
- package/dist/ai/references/components/confirm-dialog.md +27 -0
- package/dist/ai/references/components/container.md +39 -0
- package/dist/ai/references/components/context-menu.md +40 -0
- package/dist/ai/references/components/conversation-list.md +27 -0
- package/dist/ai/references/components/copy-field.md +27 -0
- package/dist/ai/references/components/data-panel.md +43 -0
- package/dist/ai/references/components/data-table-identity.md +27 -0
- package/dist/ai/references/components/data-table-toolbar.md +27 -0
- package/dist/ai/references/components/data-table.md +32 -0
- package/dist/ai/references/components/date-picker.md +42 -0
- package/dist/ai/references/components/date-range-picker.md +43 -0
- package/dist/ai/references/components/date-time-picker.md +40 -0
- package/dist/ai/references/components/descriptions.md +40 -0
- package/dist/ai/references/components/dialog.md +40 -0
- package/dist/ai/references/components/dock.md +41 -0
- package/dist/ai/references/components/donut-chart.md +41 -0
- package/dist/ai/references/components/drawer.md +41 -0
- package/dist/ai/references/components/dropdown.md +42 -0
- package/dist/ai/references/components/empty-state.md +40 -0
- package/dist/ai/references/components/fab.md +41 -0
- package/dist/ai/references/components/feature-grid.md +27 -0
- package/dist/ai/references/components/fieldset.md +41 -0
- package/dist/ai/references/components/file-input.md +41 -0
- package/dist/ai/references/components/form.md +42 -0
- package/dist/ai/references/components/gauge-chart.md +41 -0
- package/dist/ai/references/components/heatmap-chart.md +41 -0
- package/dist/ai/references/components/icon.md +39 -0
- package/dist/ai/references/components/image.md +41 -0
- package/dist/ai/references/components/index.md +171 -0
- package/dist/ai/references/components/indicator.md +41 -0
- package/dist/ai/references/components/infinite-scroll.md +42 -0
- package/dist/ai/references/components/input.md +42 -0
- package/dist/ai/references/components/join.md +40 -0
- package/dist/ai/references/components/kbd.md +40 -0
- package/dist/ai/references/components/label.md +39 -0
- package/dist/ai/references/components/landing-hero.md +27 -0
- package/dist/ai/references/components/layout.md +39 -0
- package/dist/ai/references/components/link.md +41 -0
- package/dist/ai/references/components/list.md +41 -0
- package/dist/ai/references/components/loading.md +40 -0
- package/dist/ai/references/components/message.md +27 -0
- package/dist/ai/references/components/modal.md +42 -0
- package/dist/ai/references/components/navbar.md +41 -0
- package/dist/ai/references/components/navigation-menu.md +41 -0
- package/dist/ai/references/components/notification.md +41 -0
- package/dist/ai/references/components/number-input.md +40 -0
- package/dist/ai/references/components/otp-input.md +40 -0
- package/dist/ai/references/components/page-header.md +27 -0
- package/dist/ai/references/components/pagination.md +42 -0
- package/dist/ai/references/components/popconfirm.md +42 -0
- package/dist/ai/references/components/popover.md +41 -0
- package/dist/ai/references/components/progress.md +41 -0
- package/dist/ai/references/components/prompt-composer.md +27 -0
- package/dist/ai/references/components/quick-access.md +30 -0
- package/dist/ai/references/components/radar-chart.md +41 -0
- package/dist/ai/references/components/radial-progress.md +41 -0
- package/dist/ai/references/components/radio.md +40 -0
- package/dist/ai/references/components/ranking-list.md +41 -0
- package/dist/ai/references/components/rating.md +42 -0
- package/dist/ai/references/components/result.md +40 -0
- package/dist/ai/references/components/scrollbar.md +39 -0
- package/dist/ai/references/components/select.md +41 -0
- package/dist/ai/references/components/selection-list.md +29 -0
- package/dist/ai/references/components/separator.md +39 -0
- package/dist/ai/references/components/sheet.md +40 -0
- package/dist/ai/references/components/sidebar.md +46 -0
- package/dist/ai/references/components/skeleton.md +40 -0
- package/dist/ai/references/components/slider.md +40 -0
- package/dist/ai/references/components/space.md +39 -0
- package/dist/ai/references/components/spinner.md +41 -0
- package/dist/ai/references/components/splitter.md +39 -0
- package/dist/ai/references/components/stack.md +41 -0
- package/dist/ai/references/components/stacked-bar-chart.md +41 -0
- package/dist/ai/references/components/statistic-card.md +41 -0
- package/dist/ai/references/components/statistic.md +41 -0
- package/dist/ai/references/components/steps.md +40 -0
- package/dist/ai/references/components/switch.md +40 -0
- package/dist/ai/references/components/table.md +41 -0
- package/dist/ai/references/components/tabs.md +41 -0
- package/dist/ai/references/components/tag.md +39 -0
- package/dist/ai/references/components/text.md +39 -0
- package/dist/ai/references/components/textarea.md +40 -0
- package/dist/ai/references/components/theme-configurator-dialog.md +27 -0
- package/dist/ai/references/components/theme-configurator.md +27 -0
- package/dist/ai/references/components/theme-controller.md +41 -0
- package/dist/ai/references/components/time-picker.md +42 -0
- package/dist/ai/references/components/time-range-picker.md +41 -0
- package/dist/ai/references/components/time-select.md +40 -0
- package/dist/ai/references/components/timeline.md +41 -0
- package/dist/ai/references/components/toast.md +39 -0
- package/dist/ai/references/components/tooltip.md +39 -0
- package/dist/ai/references/components/transfer.md +41 -0
- package/dist/ai/references/components/tree-select.md +45 -0
- package/dist/ai/references/components/tree-table.md +27 -0
- package/dist/ai/references/components/tree.md +43 -0
- package/dist/ai/references/components/trend-chart.md +41 -0
- package/dist/ai/references/components/upload.md +43 -0
- package/dist/ai/references/components.md +97 -0
- package/dist/ai/references/examples/data-table.md +50 -0
- package/dist/ai/references/release.md +158 -0
- package/dist/ai/ui-react.zip +0 -0
- package/dist/aliases.d.ts +62 -14
- package/dist/aliases.d.ts.map +1 -1
- package/dist/blocks/feature-grid.d.ts +8 -0
- package/dist/blocks/feature-grid.d.ts.map +1 -1
- package/dist/blocks/index.cjs +1 -467
- package/dist/blocks/index.cjs.map +1 -1
- package/dist/blocks/index.js +1 -194
- package/dist/blocks/index.js.map +1 -1
- package/dist/blocks/landing-hero.d.ts +6 -0
- package/dist/blocks/landing-hero.d.ts.map +1 -1
- package/dist/chunk-2EJWWTLH.cjs +1 -0
- package/dist/chunk-2EJWWTLH.cjs.map +1 -0
- package/dist/chunk-3A5O2NHW.cjs +1 -0
- package/dist/chunk-3A5O2NHW.cjs.map +1 -0
- package/dist/chunk-3LSTRFSY.js +1 -0
- package/dist/chunk-3LSTRFSY.js.map +1 -0
- package/dist/chunk-AQJWS45G.js +1 -0
- package/dist/chunk-AQJWS45G.js.map +1 -0
- package/dist/chunk-D63UPGP5.cjs +1 -0
- package/dist/chunk-D63UPGP5.cjs.map +1 -0
- package/dist/chunk-DJDACMBD.js +1 -0
- package/dist/chunk-DJDACMBD.js.map +1 -0
- package/dist/chunk-EYSM2SU5.cjs +1 -0
- package/dist/chunk-EYSM2SU5.cjs.map +1 -0
- package/dist/chunk-HCGUPREG.cjs +1 -0
- package/dist/chunk-HCGUPREG.cjs.map +1 -0
- package/dist/chunk-IOUGF444.cjs +1 -0
- package/dist/chunk-IOUGF444.cjs.map +1 -0
- package/dist/chunk-JJQENNZW.cjs +1 -0
- package/dist/chunk-JJQENNZW.cjs.map +1 -0
- package/dist/chunk-KNWHIFJE.js +1 -0
- package/dist/chunk-KNWHIFJE.js.map +1 -0
- package/dist/chunk-PZ4UH6BC.js +1 -0
- package/dist/chunk-PZ4UH6BC.js.map +1 -0
- package/dist/chunk-TWOBEV2L.js +1 -0
- package/dist/chunk-TWOBEV2L.js.map +1 -0
- package/dist/chunk-V4VCVCOX.js +1 -0
- package/dist/chunk-V4VCVCOX.js.map +1 -0
- package/dist/chunk-WQHHSYYD.js +1 -0
- package/dist/chunk-WQHHSYYD.js.map +1 -0
- package/dist/chunk-X4EMYHLY.cjs +1 -0
- package/dist/chunk-X4EMYHLY.cjs.map +1 -0
- package/dist/chunk-XN7GQRSF.js +1 -0
- package/dist/chunk-XN7GQRSF.js.map +1 -0
- package/dist/chunk-YI5JDPI2.cjs +1 -0
- package/dist/chunk-YI5JDPI2.cjs.map +1 -0
- package/dist/components/accordion.d.ts +8 -2
- package/dist/components/accordion.d.ts.map +1 -1
- package/dist/components/alert.d.ts +4 -5
- package/dist/components/alert.d.ts.map +1 -1
- package/dist/components/autocomplete.d.ts +21 -0
- package/dist/components/autocomplete.d.ts.map +1 -0
- package/dist/components/avatar.d.ts +4 -5
- package/dist/components/avatar.d.ts.map +1 -1
- package/dist/components/backtop.d.ts +11 -0
- package/dist/components/backtop.d.ts.map +1 -0
- package/dist/components/badge.d.ts +21 -2
- package/dist/components/badge.d.ts.map +1 -1
- package/dist/components/bar-chart.d.ts +23 -0
- package/dist/components/bar-chart.d.ts.map +1 -0
- package/dist/components/breadcrumb.d.ts +5 -1
- package/dist/components/breadcrumb.d.ts.map +1 -1
- package/dist/components/button-group.d.ts.map +1 -1
- package/dist/components/button.d.ts +12 -7
- package/dist/components/button.d.ts.map +1 -1
- package/dist/components/calendar.d.ts +40 -0
- package/dist/components/calendar.d.ts.map +1 -0
- package/dist/components/card.d.ts +8 -1
- package/dist/components/card.d.ts.map +1 -1
- package/dist/components/carousel.d.ts +29 -0
- package/dist/components/carousel.d.ts.map +1 -0
- package/dist/components/cascader.d.ts +54 -0
- package/dist/components/cascader.d.ts.map +1 -0
- package/dist/components/checkbox-group.d.ts.map +1 -1
- package/dist/components/checkbox.d.ts +4 -2
- package/dist/components/checkbox.d.ts.map +1 -1
- package/dist/components/collapsible.d.ts +23 -0
- package/dist/components/collapsible.d.ts.map +1 -0
- package/dist/components/color-picker.d.ts +19 -0
- package/dist/components/color-picker.d.ts.map +1 -0
- package/dist/components/config-provider.d.ts +2 -0
- package/dist/components/config-provider.d.ts.map +1 -1
- package/dist/components/context/form-context.d.ts.map +1 -1
- package/dist/components/context-menu.d.ts +1 -1
- package/dist/components/context-menu.d.ts.map +1 -1
- package/dist/components/data-panel.d.ts +38 -0
- package/dist/components/data-panel.d.ts.map +1 -0
- package/dist/components/date-picker.d.ts +16 -0
- package/dist/components/date-picker.d.ts.map +1 -0
- package/dist/components/date-range-picker.d.ts +42 -0
- package/dist/components/date-range-picker.d.ts.map +1 -0
- package/dist/components/date-time-picker.d.ts +12 -0
- package/dist/components/date-time-picker.d.ts.map +1 -0
- package/dist/components/descriptions.d.ts.map +1 -1
- package/dist/components/dialog.d.ts +9 -0
- package/dist/components/dialog.d.ts.map +1 -1
- package/dist/components/dock.d.ts +29 -0
- package/dist/components/dock.d.ts.map +1 -0
- package/dist/components/donut-chart.d.ts +30 -0
- package/dist/components/donut-chart.d.ts.map +1 -0
- package/dist/components/drawer.d.ts +11 -2
- package/dist/components/drawer.d.ts.map +1 -1
- package/dist/components/dropdown.d.ts +9 -1
- package/dist/components/dropdown.d.ts.map +1 -1
- package/dist/components/empty-state.d.ts +3 -0
- package/dist/components/empty-state.d.ts.map +1 -1
- package/dist/components/fab.d.ts +38 -0
- package/dist/components/fab.d.ts.map +1 -0
- package/dist/components/fieldset.d.ts +13 -0
- package/dist/components/fieldset.d.ts.map +1 -0
- package/dist/components/file-input.d.ts +17 -0
- package/dist/components/file-input.d.ts.map +1 -0
- package/dist/components/form.d.ts +2 -2
- package/dist/components/form.d.ts.map +1 -1
- package/dist/components/gauge-chart.d.ts +19 -0
- package/dist/components/gauge-chart.d.ts.map +1 -0
- package/dist/components/heatmap-chart.d.ts +28 -0
- package/dist/components/heatmap-chart.d.ts.map +1 -0
- package/dist/components/image-viewer.d.ts +15 -0
- package/dist/components/image-viewer.d.ts.map +1 -0
- package/dist/components/image.d.ts +14 -0
- package/dist/components/image.d.ts.map +1 -0
- package/dist/components/index.cjs +1 -8684
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.ts +49 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +1 -391
- package/dist/components/indicator.d.ts +20 -0
- package/dist/components/indicator.d.ts.map +1 -0
- package/dist/components/infinite-scroll.d.ts +20 -0
- package/dist/components/infinite-scroll.d.ts.map +1 -0
- package/dist/components/input.d.ts.map +1 -1
- package/dist/components/join.d.ts +20 -0
- package/dist/components/join.d.ts.map +1 -0
- package/dist/components/kbd.d.ts +8 -0
- package/dist/components/kbd.d.ts.map +1 -0
- package/dist/components/label.d.ts.map +1 -1
- package/dist/components/list.d.ts +21 -0
- package/dist/components/list.d.ts.map +1 -0
- package/dist/components/loading.d.ts +10 -0
- package/dist/components/loading.d.ts.map +1 -0
- package/dist/components/modal.d.ts +20 -3
- package/dist/components/modal.d.ts.map +1 -1
- package/dist/components/navbar.d.ts +23 -0
- package/dist/components/navbar.d.ts.map +1 -0
- package/dist/components/navigation-menu.d.ts +15 -0
- package/dist/components/navigation-menu.d.ts.map +1 -1
- package/dist/components/notification.d.ts +22 -0
- package/dist/components/notification.d.ts.map +1 -0
- package/dist/components/number-input.d.ts +4 -2
- package/dist/components/number-input.d.ts.map +1 -1
- package/dist/components/otp-input.d.ts +13 -3
- package/dist/components/otp-input.d.ts.map +1 -1
- package/dist/components/pagination.d.ts +12 -9
- package/dist/components/pagination.d.ts.map +1 -1
- package/dist/components/popconfirm.d.ts +20 -0
- package/dist/components/popconfirm.d.ts.map +1 -0
- package/dist/components/popover.d.ts +3 -2
- package/dist/components/popover.d.ts.map +1 -1
- package/dist/components/progress.d.ts +9 -0
- package/dist/components/progress.d.ts.map +1 -1
- package/dist/components/radar-chart.d.ts +24 -0
- package/dist/components/radar-chart.d.ts.map +1 -0
- package/dist/components/radial-progress.d.ts +18 -0
- package/dist/components/radial-progress.d.ts.map +1 -0
- package/dist/components/radio.d.ts +15 -6
- package/dist/components/radio.d.ts.map +1 -1
- package/dist/components/ranking-list.d.ts +31 -0
- package/dist/components/ranking-list.d.ts.map +1 -0
- package/dist/components/rating.d.ts +20 -0
- package/dist/components/rating.d.ts.map +1 -0
- package/dist/components/result.d.ts +13 -0
- package/dist/components/result.d.ts.map +1 -0
- package/dist/components/select.d.ts +2 -2
- package/dist/components/select.d.ts.map +1 -1
- package/dist/components/sheet.d.ts +11 -0
- package/dist/components/sheet.d.ts.map +1 -1
- package/dist/components/sidebar.d.ts +46 -10
- package/dist/components/sidebar.d.ts.map +1 -1
- package/dist/components/skeleton.d.ts +4 -5
- package/dist/components/skeleton.d.ts.map +1 -1
- package/dist/components/slider.d.ts.map +1 -1
- package/dist/components/space.d.ts.map +1 -1
- package/dist/components/spinner.d.ts +8 -5
- package/dist/components/spinner.d.ts.map +1 -1
- package/dist/components/splitter.d.ts +1 -0
- package/dist/components/splitter.d.ts.map +1 -1
- package/dist/components/stack.d.ts +16 -0
- package/dist/components/stack.d.ts.map +1 -0
- package/dist/components/stacked-bar-chart.d.ts +25 -0
- package/dist/components/stacked-bar-chart.d.ts.map +1 -0
- package/dist/components/statistic-card.d.ts +50 -0
- package/dist/components/statistic-card.d.ts.map +1 -0
- package/dist/components/statistic.d.ts +6 -1
- package/dist/components/statistic.d.ts.map +1 -1
- package/dist/components/steps.d.ts +3 -1
- package/dist/components/steps.d.ts.map +1 -1
- package/dist/components/switch.d.ts.map +1 -1
- package/dist/components/table.d.ts +15 -1
- package/dist/components/table.d.ts.map +1 -1
- package/dist/components/tabs.d.ts +13 -0
- package/dist/components/tabs.d.ts.map +1 -1
- package/dist/components/tag.d.ts +9 -4
- package/dist/components/tag.d.ts.map +1 -1
- package/dist/components/text.d.ts.map +1 -1
- package/dist/components/textarea.d.ts.map +1 -1
- package/dist/components/theme-controller.d.ts +24 -0
- package/dist/components/theme-controller.d.ts.map +1 -0
- package/dist/components/time-picker.d.ts +8 -0
- package/dist/components/time-picker.d.ts.map +1 -0
- package/dist/components/time-range-picker.d.ts +30 -0
- package/dist/components/time-range-picker.d.ts.map +1 -0
- package/dist/components/time-select.d.ts +15 -0
- package/dist/components/time-select.d.ts.map +1 -0
- package/dist/components/timeline.d.ts +22 -0
- package/dist/components/timeline.d.ts.map +1 -0
- package/dist/components/toast.d.ts +52 -6
- package/dist/components/toast.d.ts.map +1 -1
- package/dist/components/tooltip.d.ts +5 -2
- package/dist/components/tooltip.d.ts.map +1 -1
- package/dist/components/transfer.d.ts +51 -0
- package/dist/components/transfer.d.ts.map +1 -0
- package/dist/components/tree-select.d.ts +29 -0
- package/dist/components/tree-select.d.ts.map +1 -0
- package/dist/components/tree.d.ts +56 -0
- package/dist/components/tree.d.ts.map +1 -0
- package/dist/components/trend-chart.d.ts +43 -0
- package/dist/components/trend-chart.d.ts.map +1 -0
- package/dist/components/upload.d.ts +28 -0
- package/dist/components/upload.d.ts.map +1 -0
- package/dist/essentials.cjs +1 -0
- package/dist/essentials.cjs.map +1 -0
- package/dist/essentials.css +2 -0
- package/dist/essentials.d.ts +9 -0
- package/dist/essentials.d.ts.map +1 -0
- package/dist/essentials.js +1 -0
- package/dist/essentials.js.map +1 -0
- package/dist/hooks/index.cjs +1 -553
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.js +1 -32
- package/dist/hooks/use-copy-to-clipboard.d.ts.map +1 -1
- package/dist/hooks/use-escape-key.d.ts +8 -1
- package/dist/hooks/use-escape-key.d.ts.map +1 -1
- package/dist/hooks/use-event-listener.d.ts +6 -7
- package/dist/hooks/use-event-listener.d.ts.map +1 -1
- package/dist/hooks/use-form.d.ts +17 -16
- package/dist/hooks/use-form.d.ts.map +1 -1
- package/dist/hooks/use-local-storage.d.ts.map +1 -1
- package/dist/hooks/use-media-query.d.ts.map +1 -1
- package/dist/hooks/use-pagination.d.ts.map +1 -1
- package/dist/index.cjs +1 -9206
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +64 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -419
- package/dist/internal/data-table-header.d.ts +20 -0
- package/dist/internal/data-table-header.d.ts.map +1 -0
- package/dist/internal/date-time/date-mode-panel.d.ts +9 -0
- package/dist/internal/date-time/date-mode-panel.d.ts.map +1 -0
- package/dist/internal/date-time/date-time-control.d.ts +33 -0
- package/dist/internal/date-time/date-time-control.d.ts.map +1 -0
- package/dist/internal/date-time/date-time-range-control.d.ts +27 -0
- package/dist/internal/date-time/date-time-range-control.d.ts.map +1 -0
- package/dist/internal/date-time/time-panel.d.ts +8 -0
- package/dist/internal/date-time/time-panel.d.ts.map +1 -0
- package/dist/internal/navigation/admin-horizontal-navigation.d.ts +9 -0
- package/dist/internal/navigation/admin-horizontal-navigation.d.ts.map +1 -0
- package/dist/internal/navigation/sidebar-navigation.d.ts +55 -0
- package/dist/internal/navigation/sidebar-navigation.d.ts.map +1 -0
- package/dist/internal/overlay/use-floating-layout-observer.d.ts +8 -0
- package/dist/internal/overlay/use-floating-layout-observer.d.ts.map +1 -0
- package/dist/internal/overlay/use-overlay-focus.d.ts +9 -0
- package/dist/internal/overlay/use-overlay-focus.d.ts.map +1 -0
- package/dist/internal/overlay/use-portal-container.d.ts.map +1 -0
- package/dist/internal/overlay/use-presence.d.ts +13 -0
- package/dist/internal/overlay/use-presence.d.ts.map +1 -0
- package/dist/internal/selection/option-window.d.ts +9 -0
- package/dist/internal/selection/option-window.d.ts.map +1 -0
- package/dist/internal/selection/use-cascader-lazy.d.ts +8 -0
- package/dist/internal/selection/use-cascader-lazy.d.ts.map +1 -0
- package/dist/internal/selection/use-transfer-remote.d.ts +20 -0
- package/dist/internal/selection/use-transfer-remote.d.ts.map +1 -0
- package/dist/internal/selection/use-tree-data.d.ts +8 -0
- package/dist/internal/selection/use-tree-data.d.ts.map +1 -0
- package/dist/patterns/admin-shell.d.ts +68 -2
- package/dist/patterns/admin-shell.d.ts.map +1 -1
- package/dist/patterns/app-tabs.d.ts +33 -0
- package/dist/patterns/app-tabs.d.ts.map +1 -0
- package/dist/patterns/attachment-list.d.ts +36 -0
- package/dist/patterns/attachment-list.d.ts.map +1 -0
- package/dist/patterns/confirm-dialog.d.ts.map +1 -1
- package/dist/patterns/conversation-list.d.ts +27 -0
- package/dist/patterns/conversation-list.d.ts.map +1 -0
- package/dist/patterns/copy-field.d.ts +6 -0
- package/dist/patterns/copy-field.d.ts.map +1 -1
- package/dist/patterns/data-table-identity.d.ts +14 -0
- package/dist/patterns/data-table-identity.d.ts.map +1 -0
- package/dist/patterns/data-table-toolbar.d.ts +18 -0
- package/dist/patterns/data-table-toolbar.d.ts.map +1 -0
- package/dist/patterns/data-table.d.ts +69 -0
- package/dist/patterns/data-table.d.ts.map +1 -0
- package/dist/patterns/index.cjs +1 -1206
- package/dist/patterns/index.cjs.map +1 -1
- package/dist/patterns/index.d.ts +14 -1
- package/dist/patterns/index.d.ts.map +1 -1
- package/dist/patterns/index.js +1 -375
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/message.d.ts +30 -0
- package/dist/patterns/message.d.ts.map +1 -0
- package/dist/patterns/page-header.d.ts +4 -0
- package/dist/patterns/page-header.d.ts.map +1 -1
- package/dist/patterns/prompt-composer.d.ts +55 -0
- package/dist/patterns/prompt-composer.d.ts.map +1 -0
- package/dist/patterns/quick-access.d.ts +39 -0
- package/dist/patterns/quick-access.d.ts.map +1 -0
- package/dist/patterns/selection-list.d.ts +34 -0
- package/dist/patterns/selection-list.d.ts.map +1 -0
- package/dist/patterns/theme-configurator-dialog.d.ts +21 -0
- package/dist/patterns/theme-configurator-dialog.d.ts.map +1 -0
- package/dist/patterns/theme-configurator.d.ts +24 -0
- package/dist/patterns/theme-configurator.d.ts.map +1 -0
- package/dist/patterns/tree-table.d.ts +18 -0
- package/dist/patterns/tree-table.d.ts.map +1 -0
- package/dist/primitives/index.cjs +1 -2161
- package/dist/primitives/index.cjs.map +1 -1
- package/dist/primitives/index.d.ts +6 -2
- package/dist/primitives/index.d.ts.map +1 -1
- package/dist/primitives/index.js +1 -107
- package/dist/styles.css +1 -4364
- package/dist/theme.cjs +1 -161
- package/dist/theme.cjs.map +1 -1
- package/dist/theme.d.ts +7 -0
- package/dist/theme.d.ts.map +1 -1
- package/dist/theme.js +1 -19
- package/dist/themes/default.css +1 -80
- package/dist/themes/mecha.css +1 -195
- package/dist/themes/minimal.css +1 -160
- package/dist/tokens.css +1 -1240
- package/package.json +21 -17
- package/dist/chunk-AKWJMDCW.js +0 -467
- package/dist/chunk-AKWJMDCW.js.map +0 -1
- package/dist/chunk-F23X4N6B.js +0 -11
- package/dist/chunk-F23X4N6B.js.map +0 -1
- package/dist/chunk-HGO3GZ56.js +0 -1777
- package/dist/chunk-HGO3GZ56.js.map +0 -1
- package/dist/chunk-HXIWD5LQ.js +0 -319
- package/dist/chunk-HXIWD5LQ.js.map +0 -1
- package/dist/chunk-M6J4PLF4.js +0 -521
- package/dist/chunk-M6J4PLF4.js.map +0 -1
- package/dist/chunk-N3Z7R6GG.js +0 -139
- package/dist/chunk-N3Z7R6GG.js.map +0 -1
- package/dist/chunk-UXWCK6M7.js +0 -5757
- package/dist/chunk-UXWCK6M7.js.map +0 -1
- package/dist/internal/use-overlay-focus.d.ts +0 -8
- package/dist/internal/use-overlay-focus.d.ts.map +0 -1
- package/dist/internal/use-portal-container.d.ts.map +0 -1
- package/dist/labs/file-preview.d.ts +0 -44
- package/dist/labs/file-preview.d.ts.map +0 -1
- package/dist/labs/index.cjs +0 -224
- package/dist/labs/index.cjs.map +0 -1
- package/dist/labs/index.d.ts +0 -14
- package/dist/labs/index.d.ts.map +0 -1
- package/dist/labs/index.js +0 -188
- package/dist/labs/index.js.map +0 -1
- package/dist/labs/model-card.d.ts +0 -50
- package/dist/labs/model-card.d.ts.map +0 -1
- /package/dist/internal/{use-portal-container.d.ts → overlay/use-portal-container.d.ts} +0 -0
package/dist/blocks/index.cjs
CHANGED
|
@@ -1,467 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/blocks/index.ts
|
|
21
|
-
var blocks_exports = {};
|
|
22
|
-
__export(blocks_exports, {
|
|
23
|
-
FeatureGrid: () => FeatureGrid,
|
|
24
|
-
LandingHero: () => LandingHero,
|
|
25
|
-
UGFeatureGrid: () => FeatureGrid,
|
|
26
|
-
UGLandingHero: () => LandingHero
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(blocks_exports);
|
|
29
|
-
|
|
30
|
-
// src/blocks/feature-grid.tsx
|
|
31
|
-
var import_react = require("react");
|
|
32
|
-
var import_lucide_react = require("lucide-react");
|
|
33
|
-
|
|
34
|
-
// src/internal/cn.ts
|
|
35
|
-
var import_clsx = require("clsx");
|
|
36
|
-
var import_tailwind_merge = require("tailwind-merge");
|
|
37
|
-
function cn(...inputs) {
|
|
38
|
-
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// src/blocks/feature-grid.tsx
|
|
42
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
43
|
-
var columnClasses = {
|
|
44
|
-
2: "lg:grid-cols-2",
|
|
45
|
-
3: "lg:grid-cols-3",
|
|
46
|
-
4: "lg:grid-cols-4"
|
|
47
|
-
};
|
|
48
|
-
var columnVariant = {
|
|
49
|
-
2: "two",
|
|
50
|
-
3: "three",
|
|
51
|
-
4: "four"
|
|
52
|
-
};
|
|
53
|
-
var FeatureGrid = (0, import_react.forwardRef)(
|
|
54
|
-
({ title, description, features, columns = 3, className, ...props }, ref) => {
|
|
55
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
56
|
-
"section",
|
|
57
|
-
{
|
|
58
|
-
ref,
|
|
59
|
-
...props,
|
|
60
|
-
"data-ug": "feature-grid",
|
|
61
|
-
"data-state": "default",
|
|
62
|
-
"data-variant": columnVariant[columns],
|
|
63
|
-
"data-size": "md",
|
|
64
|
-
className: cn(
|
|
65
|
-
"bg-surface-0 px-[var(--content-gap)] py-[var(--section-gap)] sm:px-[calc(var(--content-gap)*1.25)] lg:px-[calc(var(--content-gap)*1.5)]",
|
|
66
|
-
className
|
|
67
|
-
),
|
|
68
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mx-auto w-full max-w-7xl space-y-[calc(var(--section-gap)*0.8)]", children: [
|
|
69
|
-
title || description ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { "data-ug-slot": "header", className: "max-w-3xl space-y-[calc(var(--content-gap)*0.5)]", children: [
|
|
70
|
-
title ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { "data-ug-slot": "title", className: "break-words text-3xl font-bold leading-tight text-text-primary", children: title }) : null,
|
|
71
|
-
description ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { "data-ug-slot": "description", className: "text-sm leading-6 text-text-secondary", children: description }) : null
|
|
72
|
-
] }) : null,
|
|
73
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { "data-ug-slot": "grid", className: cn("grid gap-[calc(var(--content-gap)*0.8)] md:grid-cols-2", columnClasses[columns]), children: features.map((feature, index) => {
|
|
74
|
-
const Icon = feature.icon;
|
|
75
|
-
const content = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
76
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex min-w-0 items-start justify-between gap-[calc(var(--content-gap)*0.6)]", children: [
|
|
77
|
-
Icon ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
78
|
-
"span",
|
|
79
|
-
{
|
|
80
|
-
"data-ug-slot": "icon",
|
|
81
|
-
className: "flex h-[var(--control-height-lg)] w-[var(--control-height-lg)] shrink-0 items-center justify-center rounded-[var(--radius-control)] bg-primary-soft text-primary-soft-fg",
|
|
82
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, { size: 20, "aria-hidden": "true", focusable: "false" })
|
|
83
|
-
}
|
|
84
|
-
) : null,
|
|
85
|
-
feature.meta ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { "data-ug-slot": "meta", className: "shrink-0 text-xs font-medium text-text-tertiary", children: feature.meta }) : null
|
|
86
|
-
] }),
|
|
87
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { "data-ug-slot": "content", className: "min-w-0 space-y-[calc(var(--content-gap)*0.4)]", children: [
|
|
88
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h3", { "data-ug-slot": "item-title", className: "break-words text-base font-semibold text-text-primary", children: feature.title }),
|
|
89
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { "data-ug-slot": "item-description", className: "text-sm leading-6 text-text-secondary", children: feature.description })
|
|
90
|
-
] }),
|
|
91
|
-
feature.href ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { "data-ug-slot": "item-action", className: "inline-flex items-center gap-[calc(var(--content-gap)*0.25)] text-sm font-medium text-primary", children: [
|
|
92
|
-
"\u67E5\u770B\u8BE6\u60C5",
|
|
93
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ArrowRight, { size: 14, "aria-hidden": "true", focusable: "false" })
|
|
94
|
-
] }) : null
|
|
95
|
-
] });
|
|
96
|
-
if (feature.href) {
|
|
97
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
98
|
-
"a",
|
|
99
|
-
{
|
|
100
|
-
href: feature.href,
|
|
101
|
-
"data-ug-slot": "item",
|
|
102
|
-
"data-state": "interactive",
|
|
103
|
-
className: "flex min-w-0 flex-col gap-[var(--content-gap)] rounded-[var(--radius-panel)] border border-border-base bg-surface-1 p-[var(--content-gap)] transition-colors hover:border-primary/35 hover:bg-surface-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",
|
|
104
|
-
children: content
|
|
105
|
-
},
|
|
106
|
-
index
|
|
107
|
-
);
|
|
108
|
-
}
|
|
109
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
110
|
-
"article",
|
|
111
|
-
{
|
|
112
|
-
"data-ug-slot": "item",
|
|
113
|
-
"data-state": "static",
|
|
114
|
-
className: "flex min-w-0 flex-col gap-[var(--content-gap)] rounded-[var(--radius-panel)] border border-border-base bg-surface-1 p-[var(--content-gap)]",
|
|
115
|
-
children: content
|
|
116
|
-
},
|
|
117
|
-
index
|
|
118
|
-
);
|
|
119
|
-
}) })
|
|
120
|
-
] })
|
|
121
|
-
}
|
|
122
|
-
);
|
|
123
|
-
}
|
|
124
|
-
);
|
|
125
|
-
FeatureGrid.displayName = "FeatureGrid";
|
|
126
|
-
|
|
127
|
-
// src/blocks/landing-hero.tsx
|
|
128
|
-
var import_react5 = require("react");
|
|
129
|
-
var import_lucide_react3 = require("lucide-react");
|
|
130
|
-
|
|
131
|
-
// src/components/button.tsx
|
|
132
|
-
var import_react4 = require("react");
|
|
133
|
-
var import_lucide_react2 = require("lucide-react");
|
|
134
|
-
var import_class_variance_authority = require("class-variance-authority");
|
|
135
|
-
|
|
136
|
-
// src/internal/button-group-context.ts
|
|
137
|
-
var import_react2 = require("react");
|
|
138
|
-
var ButtonGroupContext = (0, import_react2.createContext)({});
|
|
139
|
-
var ButtonGroupProvider = ButtonGroupContext.Provider;
|
|
140
|
-
function useButtonGroup() {
|
|
141
|
-
return (0, import_react2.useContext)(ButtonGroupContext);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
// src/components/config-provider.tsx
|
|
145
|
-
var import_react3 = require("react");
|
|
146
|
-
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
147
|
-
function resolveDisabled(disabled, configDisabled) {
|
|
148
|
-
return disabled ?? configDisabled;
|
|
149
|
-
}
|
|
150
|
-
var defaultConfig = {
|
|
151
|
-
namespace: "ug",
|
|
152
|
-
size: "medium",
|
|
153
|
-
disabled: false,
|
|
154
|
-
button: {},
|
|
155
|
-
link: {}
|
|
156
|
-
};
|
|
157
|
-
var ConfigContext = (0, import_react3.createContext)(defaultConfig);
|
|
158
|
-
function useUIConfig() {
|
|
159
|
-
return (0, import_react3.useContext)(ConfigContext);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
// src/components/button.tsx
|
|
163
|
-
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
164
|
-
var buttonVariants = (0, import_class_variance_authority.cva)(
|
|
165
|
-
"inline-flex items-center justify-center gap-[var(--button-icon-gap)] whitespace-nowrap border-solid border-transparent font-[var(--button-font-weight)] transition-[background,border-color,color,box-shadow,opacity] duration-[var(--motion-duration-base)] ease-[var(--motion-easing-standard)] motion-reduce:transition-none focus-visible:outline-none focus-visible:ring-[length:var(--button-focus-ring-width)] focus-visible:ring-primary focus-visible:ring-offset-[length:var(--button-focus-ring-offset)] disabled:pointer-events-none disabled:cursor-not-allowed select-none",
|
|
166
|
-
{
|
|
167
|
-
variants: {
|
|
168
|
-
variant: {
|
|
169
|
-
solid: "",
|
|
170
|
-
soft: "",
|
|
171
|
-
// 蓝绿主按钮
|
|
172
|
-
primary: "bg-[var(--button-primary-solid)] text-[hsl(var(--button-solid-fg))] shadow-xs hover:bg-[var(--button-primary-solid-hover)] active:bg-[var(--button-primary-solid-active)] focus-visible:ring-primary",
|
|
173
|
-
// 成功绿按钮 (主流框架标准绿)
|
|
174
|
-
success: "bg-[var(--button-success-solid)] text-[hsl(var(--button-solid-fg))] shadow-xs hover:bg-[var(--button-success-solid-hover)] active:bg-[var(--button-success-solid-active)] focus-visible:ring-success",
|
|
175
|
-
// 警告黄/橙按钮 (主流框架标准橙)
|
|
176
|
-
warning: "bg-[var(--button-warning-solid)] text-[hsl(var(--button-solid-fg))] shadow-xs hover:bg-[var(--button-warning-solid-hover)] active:bg-[var(--button-warning-solid-active)] focus-visible:ring-warning",
|
|
177
|
-
// 危险红按钮 (主流框架标准红)
|
|
178
|
-
danger: "bg-[var(--button-danger-solid)] text-[hsl(var(--button-solid-fg))] shadow-xs hover:bg-[var(--button-danger-solid-hover)] active:bg-[var(--button-danger-solid-active)] focus-visible:ring-danger",
|
|
179
|
-
destructive: "bg-[var(--button-danger-solid)] text-[hsl(var(--button-solid-fg))] shadow-xs hover:bg-[var(--button-danger-solid-hover)] active:bg-[var(--button-danger-solid-active)] focus-visible:ring-danger",
|
|
180
|
-
// 信息蓝按钮 (主流框架标准蓝)
|
|
181
|
-
info: "bg-[var(--button-info-solid)] text-[hsl(var(--button-solid-fg))] shadow-xs hover:bg-[var(--button-info-solid-hover)] active:bg-[var(--button-info-solid-active)] focus-visible:ring-info",
|
|
182
|
-
// 默认按钮:经典白底/浅灰底 + 1px 标准边框,Hover 时变主色
|
|
183
|
-
default: "border-border-base bg-surface-1 text-text-primary shadow-xs hover:border-primary active:bg-surface-2 focus-visible:ring-primary/40",
|
|
184
|
-
outline: "bg-transparent",
|
|
185
|
-
// 次要按钮:柔和背景
|
|
186
|
-
secondary: "border-border-base bg-surface-2 text-text-primary shadow-xs hover:bg-surface-3 active:bg-surface-3 focus-visible:ring-primary/40",
|
|
187
|
-
// 虚线按钮:标准 1px 虚线框
|
|
188
|
-
dashed: "border-dashed bg-transparent",
|
|
189
|
-
// 幽灵与文本按钮的视觉由语义色映射控制
|
|
190
|
-
ghost: "",
|
|
191
|
-
text: "",
|
|
192
|
-
link: ""
|
|
193
|
-
},
|
|
194
|
-
size: {
|
|
195
|
-
default: "h-[var(--control-height-md)] px-[var(--control-padding-x-md)] py-0",
|
|
196
|
-
sm: "h-[var(--control-height-sm)] px-[var(--control-padding-x-sm)] py-0",
|
|
197
|
-
lg: "h-[var(--control-height-lg)] px-[var(--control-padding-x-lg)] py-0",
|
|
198
|
-
icon: "h-[var(--control-height-md)] w-[var(--control-height-md)] p-0"
|
|
199
|
-
},
|
|
200
|
-
shape: {
|
|
201
|
-
default: "rounded-[var(--radius-control)]",
|
|
202
|
-
circle: "!rounded-full !p-0 aspect-square",
|
|
203
|
-
round: "!rounded-full"
|
|
204
|
-
},
|
|
205
|
-
block: {
|
|
206
|
-
true: "w-full flex",
|
|
207
|
-
false: ""
|
|
208
|
-
}
|
|
209
|
-
},
|
|
210
|
-
defaultVariants: {
|
|
211
|
-
variant: "default",
|
|
212
|
-
size: "default",
|
|
213
|
-
shape: "default",
|
|
214
|
-
block: false
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
);
|
|
218
|
-
var TONE_VARIANT_CLASSES = {
|
|
219
|
-
neutral: {
|
|
220
|
-
solid: "border-border-strong bg-surface-3 text-text-primary shadow-xs hover:bg-surface-2 active:bg-surface-3 focus-visible:ring-primary/40",
|
|
221
|
-
soft: "bg-surface-2 text-text-primary shadow-xs hover:bg-surface-3 active:bg-surface-3 focus-visible:ring-primary/40",
|
|
222
|
-
outline: "border-border-strong bg-transparent text-text-primary shadow-xs hover:border-primary active:bg-surface-2 focus-visible:ring-primary/40",
|
|
223
|
-
dashed: "border-border-strong text-text-primary hover:border-primary active:bg-surface-2 focus-visible:ring-primary/40",
|
|
224
|
-
ghost: "text-text-primary hover:bg-surface-2 active:bg-surface-3 focus-visible:ring-primary/40",
|
|
225
|
-
text: "text-text-primary hover:opacity-80 active:opacity-70 focus-visible:ring-primary/40",
|
|
226
|
-
link: "text-text-primary focus-visible:ring-primary/40"
|
|
227
|
-
},
|
|
228
|
-
primary: {
|
|
229
|
-
solid: "bg-[var(--button-primary-solid)] text-[hsl(var(--button-solid-fg))] shadow-xs hover:bg-[var(--button-primary-solid-hover)] active:bg-[var(--button-primary-solid-active)] focus-visible:ring-primary",
|
|
230
|
-
soft: "bg-primary-soft text-text-primary hover:shadow-sm active:bg-primary-soft focus-visible:ring-primary/40",
|
|
231
|
-
outline: "border-primary bg-transparent text-text-primary hover:bg-primary-soft active:bg-primary-soft focus-visible:ring-primary/40",
|
|
232
|
-
dashed: "border-primary text-text-primary hover:bg-primary-soft active:bg-primary-soft focus-visible:ring-primary/40",
|
|
233
|
-
ghost: "text-text-primary hover:bg-primary-soft active:bg-primary-soft focus-visible:ring-primary/40",
|
|
234
|
-
text: "text-text-primary hover:opacity-80 active:opacity-70 focus-visible:ring-primary/40",
|
|
235
|
-
link: "text-text-primary focus-visible:ring-primary/40"
|
|
236
|
-
},
|
|
237
|
-
success: {
|
|
238
|
-
solid: "bg-[var(--button-success-solid)] text-[hsl(var(--button-solid-fg))] shadow-xs hover:bg-[var(--button-success-solid-hover)] active:bg-[var(--button-success-solid-active)] focus-visible:ring-success",
|
|
239
|
-
soft: "bg-success-soft text-text-primary hover:shadow-sm active:bg-success-soft focus-visible:ring-success/40",
|
|
240
|
-
outline: "border-success bg-transparent text-text-primary hover:bg-success-soft active:bg-success-soft focus-visible:ring-success/40",
|
|
241
|
-
dashed: "border-success text-text-primary hover:bg-success-soft active:bg-success-soft focus-visible:ring-success/40",
|
|
242
|
-
ghost: "text-text-primary hover:bg-success-soft active:bg-success-soft focus-visible:ring-success/40",
|
|
243
|
-
text: "text-text-primary hover:opacity-80 active:opacity-70 focus-visible:ring-success/40",
|
|
244
|
-
link: "text-text-primary focus-visible:ring-success/40"
|
|
245
|
-
},
|
|
246
|
-
warning: {
|
|
247
|
-
solid: "bg-[var(--button-warning-solid)] text-[hsl(var(--button-solid-fg))] shadow-xs hover:bg-[var(--button-warning-solid-hover)] active:bg-[var(--button-warning-solid-active)] focus-visible:ring-warning",
|
|
248
|
-
soft: "bg-warning-soft text-text-primary hover:shadow-sm active:bg-warning-soft focus-visible:ring-warning/40",
|
|
249
|
-
outline: "border-warning bg-transparent text-text-primary hover:bg-warning-soft active:bg-warning-soft focus-visible:ring-warning/40",
|
|
250
|
-
dashed: "border-warning text-text-primary hover:bg-warning-soft active:bg-warning-soft focus-visible:ring-warning/40",
|
|
251
|
-
ghost: "text-text-primary hover:bg-warning-soft active:bg-warning-soft focus-visible:ring-warning/40",
|
|
252
|
-
text: "text-text-primary hover:opacity-80 active:opacity-70 focus-visible:ring-warning/40",
|
|
253
|
-
link: "text-text-primary focus-visible:ring-warning/40"
|
|
254
|
-
},
|
|
255
|
-
danger: {
|
|
256
|
-
solid: "bg-[var(--button-danger-solid)] text-[hsl(var(--button-solid-fg))] shadow-xs hover:bg-[var(--button-danger-solid-hover)] active:bg-[var(--button-danger-solid-active)] focus-visible:ring-danger",
|
|
257
|
-
soft: "bg-danger-soft text-text-primary hover:shadow-sm active:bg-danger-soft focus-visible:ring-danger/40",
|
|
258
|
-
outline: "border-danger bg-transparent text-text-primary hover:bg-danger-soft active:bg-danger-soft focus-visible:ring-danger/40",
|
|
259
|
-
dashed: "border-danger text-text-primary hover:bg-danger-soft active:bg-danger-soft focus-visible:ring-danger/40",
|
|
260
|
-
ghost: "text-text-primary hover:bg-danger-soft active:bg-danger-soft focus-visible:ring-danger/40",
|
|
261
|
-
text: "text-text-primary hover:opacity-80 active:opacity-70 focus-visible:ring-danger/40",
|
|
262
|
-
link: "text-text-primary focus-visible:ring-danger/40"
|
|
263
|
-
},
|
|
264
|
-
info: {
|
|
265
|
-
solid: "bg-[var(--button-info-solid)] text-[hsl(var(--button-solid-fg))] shadow-xs hover:bg-[var(--button-info-solid-hover)] active:bg-[var(--button-info-solid-active)] focus-visible:ring-info",
|
|
266
|
-
soft: "bg-info-soft text-text-primary hover:shadow-sm active:bg-info-soft focus-visible:ring-info/40",
|
|
267
|
-
outline: "border-info bg-transparent text-text-primary hover:bg-info-soft active:bg-info-soft focus-visible:ring-info/40",
|
|
268
|
-
dashed: "border-info text-text-primary hover:bg-info-soft active:bg-info-soft focus-visible:ring-info/40",
|
|
269
|
-
ghost: "text-text-primary hover:bg-info-soft active:bg-info-soft focus-visible:ring-info/40",
|
|
270
|
-
text: "text-text-primary hover:opacity-80 active:opacity-70 focus-visible:ring-info/40",
|
|
271
|
-
link: "text-text-primary focus-visible:ring-info/40"
|
|
272
|
-
}
|
|
273
|
-
};
|
|
274
|
-
var VARIANT_LAYOUT_CLASSES = {
|
|
275
|
-
text: "px-[var(--control-padding-x-sm)]",
|
|
276
|
-
link: "h-auto p-0 underline-offset-4 hover:underline"
|
|
277
|
-
};
|
|
278
|
-
var CONFIG_SIZE_TO_BUTTON_SIZE = {
|
|
279
|
-
small: "sm",
|
|
280
|
-
medium: "default",
|
|
281
|
-
large: "lg"
|
|
282
|
-
};
|
|
283
|
-
var LEGACY_VARIANT_TONES = {
|
|
284
|
-
primary: "primary",
|
|
285
|
-
success: "success",
|
|
286
|
-
warning: "warning",
|
|
287
|
-
danger: "danger",
|
|
288
|
-
destructive: "danger",
|
|
289
|
-
info: "info"
|
|
290
|
-
};
|
|
291
|
-
function isToneVariant(variant) {
|
|
292
|
-
return ["solid", "soft", "outline", "dashed", "ghost", "text", "link"].includes(variant);
|
|
293
|
-
}
|
|
294
|
-
function getButtonState(loading, disabled) {
|
|
295
|
-
const states = [];
|
|
296
|
-
if (loading) states.push("loading");
|
|
297
|
-
if (disabled || loading) states.push("disabled");
|
|
298
|
-
return states.length > 0 ? states.join(" ") : void 0;
|
|
299
|
-
}
|
|
300
|
-
var Button = (0, import_react4.forwardRef)(
|
|
301
|
-
({
|
|
302
|
-
className,
|
|
303
|
-
variant,
|
|
304
|
-
tone,
|
|
305
|
-
size,
|
|
306
|
-
shape,
|
|
307
|
-
block,
|
|
308
|
-
loading = false,
|
|
309
|
-
loadingText,
|
|
310
|
-
loadingIcon,
|
|
311
|
-
loadingPlacement = "start",
|
|
312
|
-
disabled,
|
|
313
|
-
type = "button",
|
|
314
|
-
style,
|
|
315
|
-
children,
|
|
316
|
-
...props
|
|
317
|
-
}, ref) => {
|
|
318
|
-
const group = useButtonGroup();
|
|
319
|
-
const config = useUIConfig();
|
|
320
|
-
const resolvedVariant = variant ?? group.variant ?? config.button.variant ?? "default";
|
|
321
|
-
const resolvedTone = tone ?? group.tone ?? config.button.tone ?? LEGACY_VARIANT_TONES[resolvedVariant] ?? (resolvedVariant === "solid" || resolvedVariant === "soft" ? "primary" : "neutral");
|
|
322
|
-
const resolvedSize = size ?? group.size ?? CONFIG_SIZE_TO_BUTTON_SIZE[config.size];
|
|
323
|
-
const resolvedShape = shape ?? group.shape ?? config.button.shape ?? "default";
|
|
324
|
-
const resolvedDisabled = resolveDisabled(
|
|
325
|
-
disabled,
|
|
326
|
-
group.disabled ?? config.disabled
|
|
327
|
-
);
|
|
328
|
-
const state = getButtonState(loading, resolvedDisabled);
|
|
329
|
-
const loader = loadingIcon ?? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_lucide_react2.Loader2, { className: "animate-spin motion-reduce:animate-none", size: resolvedSize === "sm" ? 14 : 16 });
|
|
330
|
-
const label = loading && loadingText !== void 0 ? loadingText : children;
|
|
331
|
-
const toneClasses = isToneVariant(resolvedVariant) ? TONE_VARIANT_CLASSES[resolvedTone][resolvedVariant] : void 0;
|
|
332
|
-
const loaderNode = loading ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { "data-ug-slot": "loader", className: "inline-flex shrink-0 items-center justify-center", "aria-hidden": "true", children: loader }) : null;
|
|
333
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
334
|
-
"button",
|
|
335
|
-
{
|
|
336
|
-
ref,
|
|
337
|
-
...props,
|
|
338
|
-
type,
|
|
339
|
-
style: { fontWeight: "var(--button-font-weight)", ...style },
|
|
340
|
-
className: cn(
|
|
341
|
-
buttonVariants({
|
|
342
|
-
variant: resolvedVariant,
|
|
343
|
-
size: resolvedSize,
|
|
344
|
-
shape: resolvedShape,
|
|
345
|
-
block
|
|
346
|
-
}),
|
|
347
|
-
toneClasses,
|
|
348
|
-
VARIANT_LAYOUT_CLASSES[resolvedVariant],
|
|
349
|
-
className
|
|
350
|
-
),
|
|
351
|
-
disabled: resolvedDisabled || loading,
|
|
352
|
-
"aria-busy": loading || void 0,
|
|
353
|
-
"data-ug": "button",
|
|
354
|
-
"data-state": state,
|
|
355
|
-
"data-variant": resolvedVariant,
|
|
356
|
-
"data-tone": resolvedTone,
|
|
357
|
-
"data-size": resolvedSize,
|
|
358
|
-
"data-shape": resolvedShape,
|
|
359
|
-
"data-block": block ? "true" : void 0,
|
|
360
|
-
"data-ug-namespace": config.namespace,
|
|
361
|
-
children: [
|
|
362
|
-
loadingPlacement === "start" ? loaderNode : null,
|
|
363
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { "data-ug-slot": "label", className: "inline-flex min-w-0 items-center justify-center gap-[var(--button-icon-gap)]", children: label }),
|
|
364
|
-
loadingPlacement === "end" ? loaderNode : null
|
|
365
|
-
]
|
|
366
|
-
}
|
|
367
|
-
);
|
|
368
|
-
}
|
|
369
|
-
);
|
|
370
|
-
Button.displayName = "Button";
|
|
371
|
-
|
|
372
|
-
// src/blocks/landing-hero.tsx
|
|
373
|
-
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
374
|
-
function HeroAction({
|
|
375
|
-
label,
|
|
376
|
-
href,
|
|
377
|
-
icon: Icon = import_lucide_react3.ArrowRight,
|
|
378
|
-
variant = "primary",
|
|
379
|
-
className,
|
|
380
|
-
disabled,
|
|
381
|
-
onClick,
|
|
382
|
-
...props
|
|
383
|
-
}) {
|
|
384
|
-
if (href && !disabled) {
|
|
385
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
386
|
-
"a",
|
|
387
|
-
{
|
|
388
|
-
href,
|
|
389
|
-
onClick: (event) => onClick?.(event),
|
|
390
|
-
className: cn(
|
|
391
|
-
"inline-flex min-h-[var(--control-height-md)] items-center justify-center gap-[calc(var(--content-gap)*0.5)] rounded-[var(--radius-control)] px-[var(--control-padding-x-md)] text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
392
|
-
variant === "outline" ? "border border-border-strong bg-surface-1 text-text-primary hover:bg-surface-2" : "bg-primary text-primary-fg hover:bg-primary-hover",
|
|
393
|
-
className
|
|
394
|
-
),
|
|
395
|
-
children: [
|
|
396
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { "data-ug-slot": "action-label", children: label }),
|
|
397
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { size: 16, "aria-hidden": "true", focusable: "false", "data-ug-slot": "action-icon" })
|
|
398
|
-
]
|
|
399
|
-
}
|
|
400
|
-
);
|
|
401
|
-
}
|
|
402
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(Button, { variant, className, disabled, onClick, ...props, children: [
|
|
403
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { "data-ug-slot": "action-label", children: label }),
|
|
404
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { size: 16, "aria-hidden": "true", focusable: "false", "data-ug-slot": "action-icon" })
|
|
405
|
-
] });
|
|
406
|
-
}
|
|
407
|
-
var LandingHero = (0, import_react5.forwardRef)(
|
|
408
|
-
({
|
|
409
|
-
eyebrow,
|
|
410
|
-
title,
|
|
411
|
-
description,
|
|
412
|
-
media,
|
|
413
|
-
primaryAction,
|
|
414
|
-
secondaryAction,
|
|
415
|
-
stats,
|
|
416
|
-
children,
|
|
417
|
-
className,
|
|
418
|
-
...props
|
|
419
|
-
}, ref) => {
|
|
420
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
421
|
-
"section",
|
|
422
|
-
{
|
|
423
|
-
ref,
|
|
424
|
-
className: cn(
|
|
425
|
-
"relative isolate overflow-hidden border-b border-border-base bg-surface-0",
|
|
426
|
-
className
|
|
427
|
-
),
|
|
428
|
-
...props,
|
|
429
|
-
"data-ug": "landing-hero",
|
|
430
|
-
"data-state": "default",
|
|
431
|
-
"data-variant": media ? "media" : "default",
|
|
432
|
-
"data-size": "md",
|
|
433
|
-
children: [
|
|
434
|
-
media ? /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
435
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "absolute inset-0 -z-20 overflow-hidden", "data-ug-slot": "media", children: media }),
|
|
436
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "absolute inset-0 -z-10 bg-surface-0/78", "aria-hidden": "true", "data-ug-slot": "overlay" })
|
|
437
|
-
] }) : null,
|
|
438
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "mx-auto flex min-h-[calc(var(--control-height-lg)*10)] w-full max-w-7xl flex-col justify-center px-[var(--content-gap)] py-[calc(var(--content-gap)*4)] sm:px-[calc(var(--content-gap)*1.25)] lg:px-[calc(var(--content-gap)*1.5)]", "data-ug-slot": "container", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "max-w-4xl space-y-[calc(var(--content-gap)*1.75)]", "data-ug-slot": "content", children: [
|
|
439
|
-
eyebrow ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "inline-flex rounded-[var(--radius-control)] border border-primary/25 bg-primary-soft px-[var(--control-padding-x-sm)] py-[calc(var(--content-gap)*0.25)] text-xs font-semibold text-primary-soft-fg", "data-ug-slot": "eyebrow", children: eyebrow }) : null,
|
|
440
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "space-y-[var(--content-gap)]", children: [
|
|
441
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("h1", { className: "max-w-4xl break-words text-4xl font-bold leading-tight text-text-primary sm:text-5xl lg:text-6xl", "data-ug-slot": "title", children: title }),
|
|
442
|
-
description ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { className: "max-w-2xl text-base leading-7 text-text-secondary sm:text-lg", "data-ug-slot": "description", children: description }) : null
|
|
443
|
-
] }),
|
|
444
|
-
primaryAction || secondaryAction ? /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "flex flex-wrap items-center gap-[calc(var(--content-gap)*0.75)]", "data-ug-slot": "actions", children: [
|
|
445
|
-
primaryAction ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(HeroAction, { ...primaryAction }) : null,
|
|
446
|
-
secondaryAction ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(HeroAction, { variant: "outline", ...secondaryAction }) : null
|
|
447
|
-
] }) : null,
|
|
448
|
-
stats?.length ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("dl", { className: "grid max-w-2xl gap-[var(--content-gap)] sm:grid-cols-3", "data-ug-slot": "stats", children: stats.map((stat, index) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "border-l border-border-base pl-[var(--content-gap)]", "data-ug-slot": "stat", children: [
|
|
449
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("dt", { className: "text-xs font-medium text-text-tertiary", "data-ug-slot": "stat-label", children: stat.label }),
|
|
450
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("dd", { className: "mt-[calc(var(--content-gap)*0.25)] text-2xl font-bold text-text-primary", "data-ug-slot": "stat-value", children: stat.value })
|
|
451
|
-
] }, index)) }) : null,
|
|
452
|
-
children ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "min-w-0", "data-ug-slot": "footer", children }) : null
|
|
453
|
-
] }) })
|
|
454
|
-
]
|
|
455
|
-
}
|
|
456
|
-
);
|
|
457
|
-
}
|
|
458
|
-
);
|
|
459
|
-
LandingHero.displayName = "LandingHero";
|
|
460
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
461
|
-
0 && (module.exports = {
|
|
462
|
-
FeatureGrid,
|
|
463
|
-
LandingHero,
|
|
464
|
-
UGFeatureGrid,
|
|
465
|
-
UGLandingHero
|
|
466
|
-
});
|
|
467
|
-
//# sourceMappingURL=index.cjs.map
|
|
1
|
+
"use strict";function _optionalChain(a){let e,l=a[0],t=1;for(;t<a.length;){const i=a[t],r=a[t+1];if(t+=2,("optionalAccess"===i||"optionalCall"===i)&&null==l)return;"access"===i||"optionalAccess"===i?(e=l,l=r(l)):"call"!==i&&"optionalCall"!==i||(l=r((...a)=>l.call(e,...a)),e=void 0)}return l}Object.defineProperty(exports,"__esModule",{value:!0});var a=require("../chunk-EYSM2SU5.cjs"),e=require("react"),l=require("lucide-react"),t=require("react/jsx-runtime"),i={2:"lg:grid-cols-2",3:"lg:grid-cols-3",4:"lg:grid-cols-4"},r={2:"two",3:"three",4:"four"},s=e.forwardRef.call(void 0,({title:e,description:s,features:c,columns:o=3,showIcon:n=!0,showAction:d=!0,actionLabel:x="查看详情",bordered:v=!0,className:u,...g},m)=>{const p=a.cn.call(void 0,"flex min-w-0 flex-col gap-[var(--content-gap)] rounded-[var(--radius-panel)] bg-surface-1 p-[var(--content-gap)]",v?"border border-border-base":"border border-transparent");return t.jsx.call(void 0,"section",{ref:m,...g,"data-ug":"feature-grid","data-state":"default","data-variant":r[o],"data-size":"md",className:a.cn.call(void 0,"bg-surface-0 px-[var(--content-gap)] py-[var(--section-gap)] sm:px-[calc(var(--content-gap)*1.25)] lg:px-[calc(var(--content-gap)*1.5)]",u),children:t.jsxs.call(void 0,"div",{className:"mx-auto w-full max-w-7xl space-y-[calc(var(--section-gap)*0.8)]",children:[e||s?t.jsxs.call(void 0,"div",{"data-ug-slot":"header",className:"max-w-3xl space-y-[calc(var(--content-gap)*0.5)]",children:[e?t.jsx.call(void 0,"h2",{"data-ug-slot":"title",className:"break-words text-3xl font-bold leading-tight text-text-primary",children:e}):null,s?t.jsx.call(void 0,"p",{"data-ug-slot":"description",className:"text-sm leading-6 text-text-secondary",children:s}):null]}):null,t.jsx.call(void 0,"div",{"data-ug-slot":"grid",className:a.cn.call(void 0,"grid gap-[calc(var(--content-gap)*0.8)] md:grid-cols-2",i[o]),children:c.map((e,i)=>{const r=e.icon,s=n&&Boolean(r)||Boolean(e.meta),c=t.jsxs.call(void 0,t.Fragment,{children:[s?t.jsxs.call(void 0,"div",{className:"flex min-w-0 items-start justify-between gap-[calc(var(--content-gap)*0.6)]",children:[n&&r?t.jsx.call(void 0,"span",{"data-ug-slot":"icon",className:"flex h-[var(--control-height-lg)] w-[var(--control-height-lg)] shrink-0 items-center justify-center rounded-[var(--radius-control)] bg-primary-soft text-primary-soft-fg",children:t.jsx.call(void 0,r,{size:20,"aria-hidden":"true",focusable:"false"})}):null,e.meta?t.jsx.call(void 0,"span",{"data-ug-slot":"meta",className:"shrink-0 text-xs font-medium text-text-tertiary",children:e.meta}):null]}):null,t.jsxs.call(void 0,"div",{"data-ug-slot":"content",className:"min-w-0 flex-1 space-y-[calc(var(--content-gap)*0.4)]",children:[t.jsx.call(void 0,"h3",{"data-ug-slot":"item-title",className:"break-words text-base font-semibold text-text-primary",children:e.title}),t.jsx.call(void 0,"p",{"data-ug-slot":"item-description",className:"text-sm leading-6 text-text-secondary",children:e.description})]}),d&&e.href?t.jsxs.call(void 0,"span",{"data-ug-slot":"item-action",className:"inline-flex items-center gap-[calc(var(--content-gap)*0.25)] text-sm font-medium text-primary",children:[x,t.jsx.call(void 0,l.ArrowRight,{size:14,"aria-hidden":"true",focusable:"false"})]}):null]});return e.href?t.jsx.call(void 0,"a",{href:e.href,"data-ug-slot":"item","data-state":"interactive",className:a.cn.call(void 0,p,"hover:border-primary/35 hover:bg-surface-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2"),children:c},i):t.jsx.call(void 0,"article",{"data-ug-slot":"item","data-state":"static",className:p,children:c},i)})})]})})});function HeroAction({label:e,href:i,icon:r=l.ArrowRight,variant:s="primary",className:c,disabled:o,onClick:n,...d}){return i&&!o?t.jsxs.call(void 0,"a",{href:i,onClick:a=>_optionalChain([n,"optionalCall",e=>e(a)]),className:a.cn.call(void 0,"inline-flex min-h-[var(--control-height-md)] items-center justify-center gap-[calc(var(--content-gap)*0.5)] rounded-[var(--radius-control)] px-[var(--control-padding-x-md)] text-sm font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","outline"===s?"border border-border-strong bg-surface-1 text-text-primary hover:bg-surface-2":"bg-primary text-primary-fg hover:bg-primary-hover",c),children:[t.jsx.call(void 0,"span",{"data-ug-slot":"action-label",children:e}),t.jsx.call(void 0,r,{size:16,"aria-hidden":"true",focusable:"false","data-ug-slot":"action-icon"})]}):t.jsxs.call(void 0,a.Button,{variant:s,className:c,disabled:o,onClick:n,...d,children:[t.jsx.call(void 0,"span",{"data-ug-slot":"action-label",children:e}),t.jsx.call(void 0,r,{size:16,"aria-hidden":"true",focusable:"false","data-ug-slot":"action-icon"})]})}s.displayName="FeatureGrid";var c=e.forwardRef.call(void 0,({eyebrow:e,title:l,description:i,media:r,primaryAction:s,secondaryAction:c,stats:o,align:n="start",bordered:d=!0,showStats:x=!0,children:v,className:u,...g},m)=>{const p="center"===n;return t.jsxs.call(void 0,"section",{ref:m,className:a.cn.call(void 0,"relative isolate overflow-hidden bg-surface-0",d&&"border-b border-border-base",u),...g,"data-ug":"landing-hero","data-align":n,"data-state":"default","data-variant":r?"media":"default","data-size":"md",children:[r?t.jsxs.call(void 0,t.Fragment,{children:[t.jsx.call(void 0,"div",{className:"absolute inset-0 -z-20 overflow-hidden","data-ug-slot":"media",children:r}),t.jsx.call(void 0,"div",{className:"absolute inset-0 -z-10 bg-surface-0/78","aria-hidden":"true","data-ug-slot":"overlay"})]}):null,t.jsx.call(void 0,"div",{className:a.cn.call(void 0,"mx-auto flex min-h-[calc(var(--control-height-lg)*10)] w-full max-w-7xl flex-col justify-center px-[var(--content-gap)] py-[calc(var(--content-gap)*4)] sm:px-[calc(var(--content-gap)*1.25)] lg:px-[calc(var(--content-gap)*1.5)]",p&&"items-center text-center"),"data-ug-slot":"container",children:t.jsxs.call(void 0,"div",{className:a.cn.call(void 0,"max-w-4xl space-y-[calc(var(--content-gap)*1.75)]",p&&"flex flex-col items-center"),"data-ug-slot":"content",children:[e?t.jsx.call(void 0,"div",{className:"inline-flex rounded-[var(--radius-control)] border border-primary/25 bg-primary-soft px-[var(--control-padding-x-sm)] py-[calc(var(--content-gap)*0.25)] text-xs font-semibold text-primary-soft-fg","data-ug-slot":"eyebrow",children:e}):null,t.jsxs.call(void 0,"div",{className:"space-y-[var(--content-gap)]",children:[t.jsx.call(void 0,"h1",{className:"max-w-4xl break-words text-4xl font-bold leading-tight text-text-primary sm:text-5xl lg:text-6xl","data-ug-slot":"title",children:l}),i?t.jsx.call(void 0,"p",{className:a.cn.call(void 0,"max-w-2xl text-base leading-7 text-text-secondary sm:text-lg",p&&"mx-auto"),"data-ug-slot":"description",children:i}):null]}),s||c?t.jsxs.call(void 0,"div",{className:a.cn.call(void 0,"flex flex-wrap items-center gap-[calc(var(--content-gap)*0.75)]",p&&"justify-center"),"data-ug-slot":"actions",children:[s?t.jsx.call(void 0,HeroAction,{...s}):null,c?t.jsx.call(void 0,HeroAction,{variant:"outline",...c}):null]}):null,x&&_optionalChain([o,"optionalAccess",a=>a.length])?t.jsx.call(void 0,"dl",{className:"grid max-w-2xl gap-[var(--content-gap)] text-left sm:grid-cols-3","data-ug-slot":"stats",children:o.map((a,e)=>t.jsxs.call(void 0,"div",{className:"border-l border-border-base pl-[var(--content-gap)]","data-ug-slot":"stat",children:[t.jsx.call(void 0,"dt",{className:"text-xs font-medium text-text-tertiary","data-ug-slot":"stat-label",children:a.label}),t.jsx.call(void 0,"dd",{className:"mt-[calc(var(--content-gap)*0.25)] text-2xl font-bold text-text-primary","data-ug-slot":"stat-value",children:a.value})]},e))}):null,v?t.jsx.call(void 0,"div",{className:"min-w-0","data-ug-slot":"footer",children:v}):null]})})]})});c.displayName="LandingHero",exports.FeatureGrid=s,exports.LandingHero=c,exports.UGFeatureGrid=s,exports.UGLandingHero=c;//# sourceMappingURL=index.cjs.map
|