@flamingo-stack/openframe-frontend-core 0.0.748 → 0.0.750
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/export-map.json +1 -1
- package/dist/{chunk-7Y3VMMJB.cjs → chunk-2J2OBP4N.cjs} +26 -18
- package/dist/chunk-2YXOD2KL.cjs +137 -0
- package/dist/{chunk-BEC43GHL.cjs → chunk-34TWK3JE.cjs} +3 -3
- package/dist/{chunk-BBM2ICOY.cjs → chunk-3TELPOVH.cjs} +2 -2
- package/dist/{chunk-G2ELX3DG.cjs → chunk-45YRDD7W.cjs} +22 -19
- package/dist/{chunk-4AZHFLOM.cjs → chunk-4O2KYY4K.cjs} +3 -3
- package/dist/{chunk-6XP6RNFD.cjs → chunk-6KEJQR6L.cjs} +1875 -2116
- package/dist/{chunk-JNBOQ7F2.cjs → chunk-7RCTOWBA.cjs} +24 -24
- package/dist/{chunk-U6XWGK53.cjs → chunk-ALPRQ3ZX.cjs} +56 -46
- package/dist/{chunk-TRXCQADV.cjs → chunk-AW6GP3JK.cjs} +103 -98
- package/dist/{chunk-GE4PCDNZ.cjs → chunk-BO6ZOAPB.cjs} +12 -12
- package/dist/{chunk-HNLI4OU5.cjs → chunk-C6LPOYDM.cjs} +24 -24
- package/dist/{chunk-4MGZYY6U.cjs → chunk-CLAJIQ7E.cjs} +26 -18
- package/dist/{chunk-EH3LOWGY.cjs → chunk-CNUZLOVA.cjs} +48 -40
- package/dist/{chunk-QPSQ5WLG.cjs → chunk-DGEB5GUZ.cjs} +2 -2
- package/dist/{chunk-OZUJYBQ2.cjs → chunk-E3KFEOFA.cjs} +9 -6
- package/dist/{chunk-PSSGIZXZ.cjs → chunk-FHT7SMA7.cjs} +49 -46
- package/dist/{chunk-JOPFX3PJ.cjs → chunk-FP6HAJQV.cjs} +137 -122
- package/dist/{chunk-YKJQM2O6.cjs → chunk-GVETSV7H.cjs} +56 -53
- package/dist/{chunk-UNR74CAC.cjs → chunk-HOEVD6EN.cjs} +4 -4
- package/dist/{chunk-H34A2765.cjs → chunk-JPUTILTV.cjs} +104 -118
- package/dist/{chunk-46EIXJFC.cjs → chunk-KVSEWACW.cjs} +44 -27
- package/dist/{chunk-AKTPO2DN.cjs → chunk-L4UI63K6.cjs} +2 -2
- package/dist/{chunk-PSIKUDUV.cjs → chunk-LVO7FALW.cjs} +5 -5
- package/dist/{chunk-L2RMTGOK.cjs → chunk-MGF3FUKD.cjs} +7 -7
- package/dist/{chunk-P7KTAXXE.cjs → chunk-OFO75R2O.cjs} +169 -175
- package/dist/{chunk-B27QEHYR.cjs → chunk-P6F6PHVK.cjs} +9 -9
- package/dist/chunk-RB6BSE3O.cjs +21 -0
- package/dist/chunk-UGCRLRCT.cjs +25 -0
- package/dist/{chunk-BBTSJYTR.cjs → chunk-V3UJ6NDR.cjs} +243 -429
- package/dist/{chunk-ZNUSYMH7.cjs → chunk-WZX26ODJ.cjs} +121 -121
- package/dist/{chunk-YIRX6C7V.cjs → chunk-XJ3J4UIS.cjs} +57 -22
- package/dist/{chunk-D4XZL27V.cjs → chunk-YL62VAHC.cjs} +6 -6
- package/dist/{cloud-tenants-V5727B7F.cjs → cloud-tenants-E4JSG3GH.cjs} +16 -14
- package/dist/components/case-studies/index.cjs +29 -27
- package/dist/components/categories-cart.d.ts.map +1 -1
- package/dist/components/categories-cart.js +2 -7
- package/dist/components/chat/chat-container.js +4 -4
- package/dist/components/chat/chat-context-picker.d.ts.map +1 -1
- package/dist/components/chat/chat-context-picker.js +2 -1
- package/dist/components/chat/chat-message-row.d.ts.map +1 -1
- package/dist/components/chat/chat-message-row.js +6 -5
- package/dist/components/chat/chat-message-skeleton.d.ts +3 -1
- package/dist/components/chat/chat-message-skeleton.d.ts.map +1 -1
- package/dist/components/chat/chat-message-skeleton.js +8 -5
- package/dist/components/chat/chat-sidebar-skeleton.d.ts.map +1 -1
- package/dist/components/chat/chat-sidebar-skeleton.js +4 -3
- package/dist/components/chat/chat-top-navigation.js +4 -4
- package/dist/components/chat/context-items-list.d.ts.map +1 -1
- package/dist/components/chat/context-items-list.js +5 -3
- package/dist/components/chat/entity-cards/admin-content-card-grid.d.ts +24 -1
- package/dist/components/chat/entity-cards/admin-content-card-grid.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/admin-content-card-grid.js +46 -15
- package/dist/components/chat/entity-cards/admin-content-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/admin-content-card.js +2 -1
- package/dist/components/chat/entity-cards/blog-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/blog-card.js +13 -12
- package/dist/components/chat/entity-cards/campaign-card-admin.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/campaign-card-admin.js +5 -4
- package/dist/components/chat/entity-cards/case-study-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/case-study-card.js +19 -18
- package/dist/components/chat/entity-cards/chat-ticket-item.js +5 -5
- package/dist/components/chat/entity-cards/customer-interview-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/customer-interview-card.js +15 -14
- package/dist/components/chat/entity-cards/data-room-doc-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/data-room-doc-card.js +7 -6
- package/dist/components/chat/entity-cards/design-doc-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/design-doc-card.js +0 -2
- package/dist/components/chat/entity-cards/generic-entity-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/generic-entity-card.js +8 -7
- package/dist/components/chat/entity-cards/github-activity-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/github-activity-card.js +11 -10
- package/dist/components/chat/entity-cards/hubspot-ticket-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/hubspot-ticket-card.js +16 -15
- package/dist/components/chat/entity-cards/index.d.ts +1 -1
- package/dist/components/chat/entity-cards/index.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/index.js +2 -0
- package/dist/components/chat/entity-cards/investor-update-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/investor-update-card.js +12 -11
- package/dist/components/chat/entity-cards/onboarding-guide-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/onboarding-guide-card.js +25 -30
- package/dist/components/chat/entity-cards/program-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/program-card.js +29 -28
- package/dist/components/chat/entity-cards/roadmap-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/roadmap-card.js +37 -39
- package/dist/components/chat/entity-cards/slack-message-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/slack-message-card.js +12 -11
- package/dist/components/chat/guide-welcome.js +2 -2
- package/dist/components/chat/index.cjs +13 -9
- package/dist/components/chat/mingo-archive-list.d.ts.map +1 -1
- package/dist/components/chat/mingo-archive-list.js +2 -1
- package/dist/components/chat/mingo-chat-history.d.ts +4 -2
- package/dist/components/chat/mingo-chat-history.d.ts.map +1 -1
- package/dist/components/chat/mingo-chat-history.js +11 -5
- package/dist/components/chat/mingo-chat-rail.d.ts.map +1 -1
- package/dist/components/chat/mingo-chat-rail.js +2 -1
- package/dist/components/chat/mingo-info-card.d.ts.map +1 -1
- package/dist/components/chat/mingo-info-card.js +6 -5
- package/dist/components/chat/mingo-onboarding-card-skeleton.d.ts +3 -1
- package/dist/components/chat/mingo-onboarding-card-skeleton.d.ts.map +1 -1
- package/dist/components/chat/mingo-onboarding-card-skeleton.js +12 -12
- package/dist/components/chat/model-display.js +4 -4
- package/dist/components/chat/msp-organization-card-skeleton.js +5 -5
- package/dist/components/chat/quick-action-chip.d.ts +3 -3
- package/dist/components/chat/quick-action-chip.d.ts.map +1 -1
- package/dist/components/chat/quick-action-chip.js +12 -6
- package/dist/components/chat/utils/compact-card-classes.d.ts +4 -4
- package/dist/components/chat/utils/compact-card-classes.d.ts.map +1 -1
- package/dist/components/chat/utils/compact-card-classes.js +2 -2
- package/dist/components/contact/index.cjs +17 -15
- package/dist/components/content-loading-container.d.ts +1 -1
- package/dist/components/content-loading-container.d.ts.map +1 -1
- package/dist/components/content-loading-container.js +6 -7
- package/dist/components/docs/doc-viewer.d.ts.map +1 -1
- package/dist/components/docs/doc-viewer.js +3 -2
- package/dist/components/docs/index.cjs +20 -18
- package/dist/components/docs/skeletons.d.ts +7 -8
- package/dist/components/docs/skeletons.d.ts.map +1 -1
- package/dist/components/docs/skeletons.js +62 -61
- package/dist/components/embeds/embed-iframe.d.ts +6 -6
- package/dist/components/embeds/embed-iframe.d.ts.map +1 -1
- package/dist/components/embeds/embed-iframe.js +9 -4
- package/dist/components/embeds/index.cjs +19 -15
- package/dist/components/embeds/index.d.ts +2 -2
- package/dist/components/embeds/index.d.ts.map +1 -1
- package/dist/components/embeds/index.js +2 -1
- package/dist/components/embeds/linkedin-embed-client.d.ts.map +1 -1
- package/dist/components/embeds/linkedin-embed-client.js +7 -6
- package/dist/components/embeds/markdown-image.d.ts.map +1 -1
- package/dist/components/embeds/markdown-image.js +5 -3
- package/dist/components/embeds/og-link-preview.d.ts +19 -18
- package/dist/components/embeds/og-link-preview.d.ts.map +1 -1
- package/dist/components/embeds/og-link-preview.js +143 -88
- package/dist/components/embeds/reddit-embed-client.d.ts.map +1 -1
- package/dist/components/embeds/reddit-embed-client.js +10 -9
- package/dist/components/embeds/twitter-embed-client.d.ts.map +1 -1
- package/dist/components/embeds/twitter-embed-client.js +10 -9
- package/dist/components/faq/faq-section.d.ts.map +1 -1
- package/dist/components/faq/faq-section.js +9 -5
- package/dist/components/faq/index.cjs +18 -16
- package/dist/components/features/auth/login-form.d.ts +34 -21
- package/dist/components/features/auth/login-form.d.ts.map +1 -1
- package/dist/components/features/auth/login-form.js +77 -39
- package/dist/components/features/auth/sso-providers.d.ts +7 -1
- package/dist/components/features/auth/sso-providers.d.ts.map +1 -1
- package/dist/components/features/auth/sso-providers.js +22 -4
- package/dist/components/features/board/ticket-card-skeleton.js +8 -8
- package/dist/components/features/capability-explorer.d.ts +3 -1
- package/dist/components/features/capability-explorer.d.ts.map +1 -1
- package/dist/components/features/capability-explorer.js +27 -24
- package/dist/components/features/devices/device-selector/device-selector-skeleton.d.ts +5 -2
- package/dist/components/features/devices/device-selector/device-selector-skeleton.d.ts.map +1 -1
- package/dist/components/features/devices/device-selector/device-selector-skeleton.js +2 -2
- package/dist/components/features/devices/device-selector/device-selector.d.ts +1 -1
- package/dist/components/features/devices/device-selector/device-selector.d.ts.map +1 -1
- package/dist/components/features/devices/device-selector/device-selector.js +2 -0
- package/dist/components/features/devices/device-selector/device-selector.types.d.ts +2 -0
- package/dist/components/features/devices/device-selector/device-selector.types.d.ts.map +1 -1
- package/dist/components/features/devices/devices-grid.d.ts +3 -1
- package/dist/components/features/devices/devices-grid.d.ts.map +1 -1
- package/dist/components/features/devices/devices-grid.js +3 -2
- package/dist/components/features/devices/devices-panel-view.d.ts +6 -1
- package/dist/components/features/devices/devices-panel-view.d.ts.map +1 -1
- package/dist/components/features/devices/devices-panel-view.js +4 -1
- package/dist/components/features/devices/devices-table-columns.d.ts +3 -1
- package/dist/components/features/devices/devices-table-columns.d.ts.map +1 -1
- package/dist/components/features/devices/devices-table-columns.js +2 -0
- package/dist/components/features/index.cjs +18 -14
- package/dist/components/features/logs/logs-table-view.d.ts +3 -1
- package/dist/components/features/logs/logs-table-view.d.ts.map +1 -1
- package/dist/components/features/logs/logs-table-view.js +2 -2
- package/dist/components/features/model-token-rates.d.ts +4 -1
- package/dist/components/features/model-token-rates.d.ts.map +1 -1
- package/dist/components/features/model-token-rates.js +18 -23
- package/dist/components/features/notifications/index.d.ts +2 -2
- package/dist/components/features/notifications/index.d.ts.map +1 -1
- package/dist/components/features/notifications/index.js +2 -1
- package/dist/components/features/notifications/notification-drawer.d.ts.map +1 -1
- package/dist/components/features/notifications/notification-drawer.js +9 -16
- package/dist/components/features/notifications/notification-tile.d.ts +14 -0
- package/dist/components/features/notifications/notification-tile.d.ts.map +1 -1
- package/dist/components/features/notifications/notification-tile.js +36 -1
- package/dist/components/features/policies/policy-summary-cards.js +2 -2
- package/dist/components/features/push-button-selector.d.ts.map +1 -1
- package/dist/components/features/push-button-selector.js +12 -7
- package/dist/components/features/remote-session/remote-desktop-view.d.ts +4 -1
- package/dist/components/features/remote-session/remote-desktop-view.d.ts.map +1 -1
- package/dist/components/features/remote-session/remote-desktop-view.js +14 -10
- package/dist/components/features/waitlist-form.d.ts.map +1 -1
- package/dist/components/features/waitlist-form.js +6 -5
- package/dist/components/help-center-pages/download-apps-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/download-apps-page.js +2 -1
- package/dist/components/help-center-pages/index.cjs +127 -119
- package/dist/components/help-center-pages/trust-center-page.d.ts +4 -1
- package/dist/components/help-center-pages/trust-center-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/trust-center-page.js +3 -2
- package/dist/components/help-center-pages/trust-center-sections.d.ts +4 -1
- package/dist/components/help-center-pages/trust-center-sections.d.ts.map +1 -1
- package/dist/components/help-center-pages/trust-center-sections.js +5 -2
- package/dist/components/index.cjs +70 -112
- package/dist/components/index.d.ts +0 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +0 -2
- package/dist/components/layout/title-block.d.ts.map +1 -1
- package/dist/components/layout/title-block.js +18 -11
- package/dist/components/loading/card-skeleton.d.ts +6 -3
- package/dist/components/loading/card-skeleton.d.ts.map +1 -1
- package/dist/components/loading/card-skeleton.js +7 -27
- package/dist/components/loading/category-card-skeleton.d.ts.map +1 -1
- package/dist/components/loading/category-card-skeleton.js +2 -4
- package/dist/components/loading/category-vendor-selector-skeleton.d.ts +3 -1
- package/dist/components/loading/category-vendor-selector-skeleton.d.ts.map +1 -1
- package/dist/components/loading/category-vendor-selector-skeleton.js +9 -4
- package/dist/components/loading/device-card-skeleton.d.ts +18 -9
- package/dist/components/loading/device-card-skeleton.d.ts.map +1 -1
- package/dist/components/loading/device-card-skeleton.js +30 -21
- package/dist/components/loading/index.d.ts +3 -4
- package/dist/components/loading/index.d.ts.map +1 -1
- package/dist/components/loading/index.js +6 -29
- package/dist/components/loading/loading-region.d.ts +33 -0
- package/dist/components/loading/loading-region.d.ts.map +1 -0
- package/dist/components/loading/loading-region.js +22 -0
- package/dist/components/loading/margin-report-skeleton.d.ts +3 -1
- package/dist/components/loading/margin-report-skeleton.d.ts.map +1 -1
- package/dist/components/loading/margin-report-skeleton.js +70 -61
- package/dist/components/loading/msp-profile-form-skeleton.d.ts +3 -1
- package/dist/components/loading/msp-profile-form-skeleton.d.ts.map +1 -1
- package/dist/components/loading/msp-profile-form-skeleton.js +6 -5
- package/dist/components/loading/organization-card-skeleton.d.ts +3 -1
- package/dist/components/loading/organization-card-skeleton.d.ts.map +1 -1
- package/dist/components/loading/organization-card-skeleton.js +5 -5
- package/dist/components/loading/organization-icon-skeleton.d.ts.map +1 -1
- package/dist/components/loading/organization-icon-skeleton.js +2 -1
- package/dist/components/loading/page-layout-skeleton.d.ts +21 -6
- package/dist/components/loading/page-layout-skeleton.d.ts.map +1 -1
- package/dist/components/loading/page-layout-skeleton.js +283 -266
- package/dist/components/loading/settings-form-skeleton.d.ts +17 -0
- package/dist/components/loading/settings-form-skeleton.d.ts.map +1 -0
- package/dist/components/loading/settings-form-skeleton.js +42 -0
- package/dist/components/loading/unified-skeleton.d.ts +11 -4
- package/dist/components/loading/unified-skeleton.d.ts.map +1 -1
- package/dist/components/loading/unified-skeleton.js +14 -89
- package/dist/components/loading/wizard-layout-skeleton.d.ts +3 -1
- package/dist/components/loading/wizard-layout-skeleton.d.ts.map +1 -1
- package/dist/components/loading/wizard-layout-skeleton.js +3 -2
- package/dist/components/media-carousel.d.ts.map +1 -1
- package/dist/components/media-carousel.js +2 -1
- package/dist/components/meeting-scheduler/booking-form.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/booking-form.js +14 -8
- package/dist/components/meeting-scheduler/context-panel.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/context-panel.js +8 -7
- package/dist/components/meeting-scheduler/directory.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/directory.js +10 -9
- package/dist/components/meeting-scheduler/index.cjs +85 -75
- package/dist/components/meeting-scheduler/index.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.js +3 -2
- package/dist/components/meeting-scheduler/modal-header.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/modal-header.js +8 -7
- package/dist/components/meeting-scheduler/slot-picker.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/slot-picker.js +4 -3
- package/dist/components/navigation/app-header.d.ts.map +1 -1
- package/dist/components/navigation/app-header.js +8 -7
- package/dist/components/navigation/index.cjs +19 -17
- package/dist/components/navigation/multi-level-navigation.d.ts.map +1 -1
- package/dist/components/navigation/multi-level-navigation.js +3 -2
- package/dist/components/navigation/navigation-sidebar-item.d.ts.map +1 -1
- package/dist/components/navigation/navigation-sidebar-item.js +3 -2
- package/dist/components/onboarding-guides/index.cjs +19 -17
- package/dist/components/onboarding-guides/onboarding-guides-catalog-skeleton.d.ts +4 -1
- package/dist/components/onboarding-guides/onboarding-guides-catalog-skeleton.d.ts.map +1 -1
- package/dist/components/onboarding-guides/onboarding-guides-catalog-skeleton.js +12 -8
- package/dist/components/product-demo/index.cjs +16 -15
- package/dist/components/product-demo/product-screen.d.ts.map +1 -1
- package/dist/components/product-demo/product-screen.js +4 -4
- package/dist/components/profile/ProfileLoadingSkeleton.d.ts +3 -1
- package/dist/components/profile/ProfileLoadingSkeleton.d.ts.map +1 -1
- package/dist/components/profile/ProfileLoadingSkeleton.js +10 -8
- package/dist/components/related-content/index.cjs +7 -5
- package/dist/components/related-content/related-content-section.d.ts.map +1 -1
- package/dist/components/related-content/related-content-section.js +3 -2
- package/dist/components/shared/delivery/delivery-table.d.ts.map +1 -1
- package/dist/components/shared/delivery/delivery-table.js +8 -7
- package/dist/components/shared/detail-page-skeleton.d.ts +5 -1
- package/dist/components/shared/detail-page-skeleton.d.ts.map +1 -1
- package/dist/components/shared/detail-page-skeleton.js +18 -14
- package/dist/components/shared/dev-section/dev-card-row.d.ts +3 -1
- package/dist/components/shared/dev-section/dev-card-row.d.ts.map +1 -1
- package/dist/components/shared/dev-section/dev-card-row.js +22 -9
- package/dist/components/shared/legal-document/legal-document-page.d.ts.map +1 -1
- package/dist/components/shared/legal-document/legal-document-page.js +8 -7
- package/dist/components/shared/onboarding/onboarding-step-card.d.ts.map +1 -1
- package/dist/components/shared/onboarding/onboarding-step-card.js +3 -2
- package/dist/components/shared/onboarding/onboarding-walkthrough.d.ts.map +1 -1
- package/dist/components/shared/onboarding/onboarding-walkthrough.js +2 -1
- package/dist/components/shared/product-release/index.d.ts +0 -1
- package/dist/components/shared/product-release/index.d.ts.map +1 -1
- package/dist/components/shared/product-release/index.js +1 -3
- package/dist/components/shared/product-release/product-release-card-skeleton.d.ts.map +1 -1
- package/dist/components/shared/product-release/product-release-card-skeleton.js +21 -20
- package/dist/components/shared/product-release/product-releases-view.d.ts.map +1 -1
- package/dist/components/shared/product-release/product-releases-view.js +2 -1
- package/dist/components/shared/roadmap/roadmap-grid-skeleton.d.ts +6 -13
- package/dist/components/shared/roadmap/roadmap-grid-skeleton.d.ts.map +1 -1
- package/dist/components/shared/roadmap/roadmap-grid-skeleton.js +13 -25
- package/dist/components/tickets/help-center-create-form.d.ts +4 -1
- package/dist/components/tickets/help-center-create-form.d.ts.map +1 -1
- package/dist/components/tickets/help-center-create-form.js +38 -26
- package/dist/components/tickets/index.cjs +22 -20
- package/dist/components/tickets/ticket-center.d.ts.map +1 -1
- package/dist/components/tickets/ticket-center.js +13 -10
- package/dist/components/tickets/ticket-detail-drawer.d.ts.map +1 -1
- package/dist/components/tickets/ticket-detail-drawer.js +2 -1
- package/dist/components/ui/admin-form-drawer.d.ts.map +1 -1
- package/dist/components/ui/admin-form-drawer.js +6 -8
- package/dist/components/ui/admin-form-modal.d.ts.map +1 -1
- package/dist/components/ui/admin-form-modal.js +12 -11
- package/dist/components/ui/analyzing-state.d.ts +1 -1
- package/dist/components/ui/analyzing-state.d.ts.map +1 -1
- package/dist/components/ui/analyzing-state.js +4 -10
- package/dist/components/ui/content-loader.d.ts +5 -1
- package/dist/components/ui/content-loader.d.ts.map +1 -1
- package/dist/components/ui/content-loader.js +27 -23
- package/dist/components/ui/dashboard-info-card.d.ts +17 -3
- package/dist/components/ui/dashboard-info-card.d.ts.map +1 -1
- package/dist/components/ui/dashboard-info-card.js +30 -10
- package/dist/components/ui/data-attribution.d.ts +6 -0
- package/dist/components/ui/data-attribution.d.ts.map +1 -1
- package/dist/components/ui/data-attribution.js +12 -1
- package/dist/components/ui/data-table/data-table-body.d.ts +6 -1
- package/dist/components/ui/data-table/data-table-body.d.ts.map +1 -1
- package/dist/components/ui/data-table/data-table-body.js +3 -1
- package/dist/components/ui/data-table/data-table-infinite-footer.d.ts.map +1 -1
- package/dist/components/ui/data-table/data-table-infinite-footer.js +3 -1
- package/dist/components/ui/data-table/data-table-skeleton.d.ts.map +1 -1
- package/dist/components/ui/data-table/data-table-skeleton.js +7 -5
- package/dist/components/ui/feature-card.d.ts.map +1 -1
- package/dist/components/ui/feature-card.js +7 -9
- package/dist/components/ui/file-manager/file-manager-skeleton.d.ts +3 -1
- package/dist/components/ui/file-manager/file-manager-skeleton.d.ts.map +1 -1
- package/dist/components/ui/file-manager/file-manager-skeleton.js +27 -21
- package/dist/components/ui/file-manager/file-manager-table.js +10 -10
- package/dist/components/ui/file-manager/index.cjs +45 -36
- package/dist/components/ui/filter-modal.d.ts.map +1 -1
- package/dist/components/ui/filter-modal.js +5 -5
- package/dist/components/ui/filter-pill-row.d.ts +10 -0
- package/dist/components/ui/filter-pill-row.d.ts.map +1 -1
- package/dist/components/ui/filter-pill-row.js +8 -1
- package/dist/components/ui/index.cjs +19 -28
- package/dist/components/ui/index.d.ts +0 -1
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +0 -1
- package/dist/components/ui/layout-hold.d.ts +5 -4
- package/dist/components/ui/layout-hold.d.ts.map +1 -1
- package/dist/components/ui/layout-hold.js +20 -29
- package/dist/components/ui/markdown/base-components.js +1 -1
- package/dist/components/ui/page-actions.d.ts.map +1 -1
- package/dist/components/ui/page-actions.js +6 -8
- package/dist/components/ui/photo-wall.d.ts.map +1 -1
- package/dist/components/ui/photo-wall.js +11 -18
- package/dist/components/ui/query-report-table/query-report-table-skeleton.d.ts +1 -1
- package/dist/components/ui/query-report-table/query-report-table-skeleton.d.ts.map +1 -1
- package/dist/components/ui/query-report-table/query-report-table-skeleton.js +28 -18
- package/dist/components/ui/query-report-table/query-report-table.d.ts +1 -1
- package/dist/components/ui/query-report-table/query-report-table.d.ts.map +1 -1
- package/dist/components/ui/query-report-table/query-report-table.js +3 -1
- package/dist/components/ui/query-report-table/types.d.ts +4 -0
- package/dist/components/ui/query-report-table/types.d.ts.map +1 -1
- package/dist/components/ui/skeleton-surface.d.ts +7 -0
- package/dist/components/ui/skeleton-surface.d.ts.map +1 -0
- package/dist/components/ui/skeleton-surface.js +5 -0
- package/dist/components/ui/table/table-skeleton.d.ts.map +1 -1
- package/dist/components/ui/table/table-skeleton.js +11 -13
- package/dist/components/ui/test-run.d.ts +6 -4
- package/dist/components/ui/test-run.d.ts.map +1 -1
- package/dist/components/ui/test-run.js +9 -5
- package/dist/{devices-WWMXIIHI.cjs → devices-AVRQGB2N.cjs} +17 -15
- package/dist/{embeddable-chat-IJHCGQ24.cjs → embeddable-chat-SNYQSMS7.cjs} +79 -77
- package/dist/index.cjs +24 -31
- package/dist/{knowledge-JZP4RIXB.cjs → knowledge-S3CNISQH.cjs} +17 -15
- package/dist/{logs-WIRYFNUC.cjs → logs-WDLOKDXT.cjs} +24 -22
- package/dist/{policies-X7OJYA7G.cjs → policies-STML7NEZ.cjs} +20 -18
- package/dist/{remote-session-IYT4LWJC.cjs → remote-session-ZKP2W3IS.cjs} +9 -7
- package/dist/{scripts-GRMT2NGW.cjs → scripts-HO53VYGX.cjs} +23 -21
- package/dist/{software-update-G3QOB7RT.cjs → software-update-4VTK7LWQ.cjs} +20 -18
- package/dist/{tickets-board-4MT6ZB4F.cjs → tickets-board-BNW4AYFL.cjs} +11 -10
- package/package.json +1 -1
- package/src/components/categories-cart.tsx +2 -4
- package/src/components/chat/chat-container.tsx +4 -4
- package/src/components/chat/chat-context-picker.tsx +3 -2
- package/src/components/chat/chat-message-row.tsx +6 -7
- package/src/components/chat/chat-message-skeleton.tsx +11 -6
- package/src/components/chat/chat-sidebar-skeleton.tsx +4 -3
- package/src/components/chat/chat-top-navigation.tsx +4 -4
- package/src/components/chat/context-items-list.tsx +9 -3
- package/src/components/chat/entity-cards/admin-content-card-grid.tsx +65 -18
- package/src/components/chat/entity-cards/admin-content-card.tsx +2 -1
- package/src/components/chat/entity-cards/blog-card.tsx +13 -12
- package/src/components/chat/entity-cards/campaign-card-admin.tsx +5 -4
- package/src/components/chat/entity-cards/case-study-card.tsx +19 -18
- package/src/components/chat/entity-cards/chat-ticket-item.tsx +5 -5
- package/src/components/chat/entity-cards/customer-interview-card.tsx +15 -14
- package/src/components/chat/entity-cards/data-room-doc-card.tsx +7 -6
- package/src/components/chat/entity-cards/design-doc-card.tsx +0 -2
- package/src/components/chat/entity-cards/generic-entity-card.tsx +8 -7
- package/src/components/chat/entity-cards/github-activity-card.tsx +11 -10
- package/src/components/chat/entity-cards/hubspot-ticket-card.tsx +16 -15
- package/src/components/chat/entity-cards/index.ts +2 -0
- package/src/components/chat/entity-cards/investor-update-card.tsx +12 -11
- package/src/components/chat/entity-cards/onboarding-guide-card.tsx +21 -22
- package/src/components/chat/entity-cards/program-card.tsx +29 -28
- package/src/components/chat/entity-cards/roadmap-card.tsx +22 -23
- package/src/components/chat/entity-cards/slack-message-card.tsx +12 -11
- package/src/components/chat/guide-welcome.tsx +2 -2
- package/src/components/chat/mingo-archive-list.tsx +2 -1
- package/src/components/chat/mingo-chat-history.tsx +18 -9
- package/src/components/chat/mingo-chat-rail.tsx +2 -1
- package/src/components/chat/mingo-info-card.tsx +6 -5
- package/src/components/chat/mingo-onboarding-card-skeleton.tsx +15 -13
- package/src/components/chat/model-display.tsx +4 -4
- package/src/components/chat/msp-organization-card-skeleton.tsx +5 -5
- package/src/components/chat/quick-action-chip.tsx +17 -14
- package/src/components/chat/utils/compact-card-classes.ts +4 -5
- package/src/components/content-loading-container.tsx +7 -8
- package/src/components/docs/doc-viewer.tsx +3 -2
- package/src/components/docs/skeletons.tsx +64 -63
- package/src/components/embeds/embed-iframe.tsx +16 -9
- package/src/components/embeds/index.ts +2 -2
- package/src/components/embeds/linkedin-embed-client.tsx +7 -6
- package/src/components/embeds/markdown-image.tsx +5 -3
- package/src/components/embeds/og-link-preview.tsx +162 -79
- package/src/components/embeds/reddit-embed-client.tsx +10 -9
- package/src/components/embeds/twitter-embed-client.tsx +10 -9
- package/src/components/faq/faq-section.tsx +13 -6
- package/src/components/features/auth/login-form.tsx +121 -64
- package/src/components/features/auth/sso-providers.tsx +21 -0
- package/src/components/features/board/ticket-card-skeleton.tsx +8 -8
- package/src/components/features/capability-explorer.tsx +61 -30
- package/src/components/features/devices/device-selector/device-selector-skeleton.tsx +9 -3
- package/src/components/features/devices/device-selector/device-selector.tsx +2 -0
- package/src/components/features/devices/device-selector/device-selector.types.ts +2 -0
- package/src/components/features/devices/devices-grid.tsx +4 -1
- package/src/components/features/devices/devices-panel-view.tsx +9 -1
- package/src/components/features/devices/devices-table-columns.tsx +4 -0
- package/src/components/features/logs/logs-table-view.tsx +4 -2
- package/src/components/features/model-token-rates.tsx +27 -24
- package/src/components/features/notifications/index.ts +2 -2
- package/src/components/features/notifications/notification-drawer.tsx +7 -10
- package/src/components/features/notifications/notification-tile.tsx +57 -0
- package/src/components/features/policies/policy-summary-cards.tsx +2 -2
- package/src/components/features/push-button-selector.tsx +20 -11
- package/src/components/features/remote-session/remote-desktop-view.tsx +26 -16
- package/src/components/features/waitlist-form.tsx +6 -5
- package/src/components/help-center-pages/download-apps-page.tsx +3 -2
- package/src/components/help-center-pages/trust-center-page.tsx +6 -2
- package/src/components/help-center-pages/trust-center-sections.tsx +9 -3
- package/src/components/index.ts +0 -2
- package/src/components/layout/title-block.tsx +17 -15
- package/src/components/loading/card-skeleton.tsx +14 -46
- package/src/components/loading/category-card-skeleton.tsx +2 -4
- package/src/components/loading/category-vendor-selector-skeleton.tsx +12 -5
- package/src/components/loading/device-card-skeleton.tsx +58 -51
- package/src/components/loading/index.ts +5 -19
- package/src/components/loading/loading-region.tsx +60 -0
- package/src/components/loading/margin-report-skeleton.tsx +45 -34
- package/src/components/loading/msp-profile-form-skeleton.tsx +9 -6
- package/src/components/loading/organization-card-skeleton.tsx +8 -6
- package/src/components/loading/organization-icon-skeleton.tsx +3 -2
- package/src/components/loading/page-layout-skeleton.tsx +162 -133
- package/src/components/loading/settings-form-skeleton.tsx +52 -0
- package/src/components/loading/unified-skeleton.tsx +26 -71
- package/src/components/loading/wizard-layout-skeleton.tsx +6 -3
- package/src/components/media-carousel.tsx +2 -1
- package/src/components/meeting-scheduler/booking-form.tsx +10 -7
- package/src/components/meeting-scheduler/context-panel.tsx +8 -7
- package/src/components/meeting-scheduler/directory.tsx +10 -9
- package/src/components/meeting-scheduler/index.tsx +5 -4
- package/src/components/meeting-scheduler/modal-header.tsx +8 -7
- package/src/components/meeting-scheduler/slot-picker.tsx +4 -3
- package/src/components/navigation/app-header.tsx +8 -7
- package/src/components/navigation/multi-level-navigation.tsx +3 -2
- package/src/components/navigation/navigation-sidebar-item.tsx +3 -2
- package/src/components/onboarding-guides/onboarding-guides-catalog-skeleton.tsx +17 -10
- package/src/components/product-demo/product-screen.tsx +4 -4
- package/src/components/profile/ProfileLoadingSkeleton.tsx +13 -9
- package/src/components/related-content/related-content-section.tsx +5 -4
- package/src/components/shared/delivery/delivery-table.tsx +8 -7
- package/src/components/shared/detail-page-skeleton.tsx +22 -14
- package/src/components/shared/dev-section/dev-card-row.tsx +23 -10
- package/src/components/shared/legal-document/legal-document-page.tsx +8 -7
- package/src/components/shared/onboarding/onboarding-step-card.tsx +3 -2
- package/src/components/shared/onboarding/onboarding-walkthrough.tsx +2 -1
- package/src/components/shared/product-release/index.ts +0 -1
- package/src/components/shared/product-release/product-release-card-skeleton.tsx +23 -25
- package/src/components/shared/product-release/product-releases-view.tsx +3 -2
- package/src/components/shared/roadmap/roadmap-grid-skeleton.tsx +14 -56
- package/src/components/tickets/help-center-create-form.tsx +23 -12
- package/src/components/tickets/ticket-center.tsx +17 -11
- package/src/components/tickets/ticket-detail-drawer.tsx +3 -2
- package/src/components/ui/admin-form-drawer.tsx +7 -7
- package/src/components/ui/admin-form-modal.tsx +9 -8
- package/src/components/ui/analyzing-state.tsx +5 -8
- package/src/components/ui/content-loader.tsx +31 -23
- package/src/components/ui/dashboard-info-card.tsx +81 -20
- package/src/components/ui/data-attribution.tsx +18 -0
- package/src/components/ui/data-table/data-table-body.tsx +9 -2
- package/src/components/ui/data-table/data-table-infinite-footer.tsx +4 -2
- package/src/components/ui/data-table/data-table-skeleton.tsx +8 -5
- package/src/components/ui/feature-card.tsx +27 -11
- package/src/components/ui/file-manager/file-manager-skeleton.tsx +30 -22
- package/src/components/ui/file-manager/file-manager-table.tsx +10 -10
- package/src/components/ui/filter-modal.tsx +5 -5
- package/src/components/ui/filter-pill-row.tsx +19 -0
- package/src/components/ui/index.ts +0 -1
- package/src/components/ui/layout-hold.tsx +30 -38
- package/src/components/ui/markdown/base-components.tsx +1 -1
- package/src/components/ui/page-actions.tsx +10 -8
- package/src/components/ui/photo-wall.tsx +4 -7
- package/src/components/ui/query-report-table/query-report-table-skeleton.tsx +13 -7
- package/src/components/ui/query-report-table/query-report-table.tsx +2 -0
- package/src/components/ui/query-report-table/types.ts +4 -0
- package/src/components/ui/skeleton-surface.ts +6 -0
- package/src/components/ui/table/table-skeleton.tsx +11 -13
- package/src/components/ui/test-run.tsx +30 -22
- package/src/styles/ods-colors.css +2 -2
- package/dist/chunk-5M5C6UV4.cjs +0 -125
- package/dist/components/dynamic-skeleton.d.ts +0 -108
- package/dist/components/dynamic-skeleton.d.ts.map +0 -1
- package/dist/components/dynamic-skeleton.js +0 -221
- package/dist/components/loading/content-skeleton.d.ts +0 -73
- package/dist/components/loading/content-skeleton.d.ts.map +0 -1
- package/dist/components/loading/content-skeleton.js +0 -217
- package/dist/components/loading/users-grid-skeleton.d.ts +0 -7
- package/dist/components/loading/users-grid-skeleton.d.ts.map +0 -1
- package/dist/components/loading/users-grid-skeleton.js +0 -13
- package/dist/components/shared/product-release/release-detail-skeleton.d.ts +0 -2
- package/dist/components/shared/product-release/release-detail-skeleton.d.ts.map +0 -1
- package/dist/components/shared/product-release/release-detail-skeleton.js +0 -9
- package/dist/components/skeleton.d.ts +0 -4
- package/dist/components/skeleton.d.ts.map +0 -1
- package/dist/components/skeleton.js +0 -9
- package/dist/components/ui/skeleton.d.ts +0 -44
- package/dist/components/ui/skeleton.d.ts.map +0 -1
- package/dist/components/ui/skeleton.js +0 -103
- package/dist/components/vendor-page-skeleton.d.ts +0 -2
- package/dist/components/vendor-page-skeleton.d.ts.map +0 -1
- package/dist/components/vendor-page-skeleton.js +0 -9
- package/src/components/dynamic-skeleton.tsx +0 -365
- package/src/components/loading/content-skeleton.tsx +0 -374
- package/src/components/loading/users-grid-skeleton.tsx +0 -36
- package/src/components/shared/product-release/release-detail-skeleton.tsx +0 -7
- package/src/components/skeleton.tsx +0 -8
- package/src/components/ui/skeleton.tsx +0 -173
- package/src/components/vendor-page-skeleton.tsx +0 -7
|
@@ -3,6 +3,7 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import Link from "../../embed-shims/next-link.js";
|
|
4
4
|
import { cn } from "../../utils/cn.js";
|
|
5
5
|
import { QuestionCircleIcon } from "../icons-v2-generated/signs-and-symbols/question-circle-icon.js";
|
|
6
|
+
import { UnifiedSkeleton } from "../loading/unified-skeleton.js";
|
|
6
7
|
import { CircularProgress } from "./circular-progress.js";
|
|
7
8
|
import { FloatingTooltip } from "./floating-tooltip.js";
|
|
8
9
|
import { Tag } from "./tag.js";
|
|
@@ -24,13 +25,19 @@ function DashboardInfoCard({
|
|
|
24
25
|
valueClassName,
|
|
25
26
|
subValue,
|
|
26
27
|
caption,
|
|
27
|
-
loading = false
|
|
28
|
+
loading = false,
|
|
29
|
+
loadingShowsPercentage = false,
|
|
30
|
+
loadingShowsSubValue = false
|
|
28
31
|
}) {
|
|
29
32
|
const formattedValue = typeof value === "number" ? value.toLocaleString() : value;
|
|
33
|
+
const percentageAsTag = percentageDisplay === "tag" || percentageDisplay === "auto" && (progressVariant === "warning" || progressVariant === "error");
|
|
30
34
|
const renderPercentage = () => {
|
|
35
|
+
if (loading) {
|
|
36
|
+
if (!loadingShowsPercentage) return null;
|
|
37
|
+
return percentageAsTag ? /* @__PURE__ */ jsx(UnifiedSkeleton, { className: "h-8 w-12 shrink-0 rounded-md" }) : /* @__PURE__ */ jsx("p", { className: "text-h4", children: /* @__PURE__ */ jsx(UnifiedSkeleton, { as: "span", className: "block h-[1lh] w-12 rounded" }) });
|
|
38
|
+
}
|
|
31
39
|
if (percentage === void 0) return null;
|
|
32
|
-
|
|
33
|
-
if (asTag) {
|
|
40
|
+
if (percentageAsTag) {
|
|
34
41
|
const tagVariant = progressVariant === "warning" || progressVariant === "error" ? progressVariant : progressVariant === "success" ? "success" : "grey";
|
|
35
42
|
return /* @__PURE__ */ jsx(Tag, { variant: tagVariant, label: `${percentage}%` });
|
|
36
43
|
}
|
|
@@ -41,10 +48,10 @@ function DashboardInfoCard({
|
|
|
41
48
|
] });
|
|
42
49
|
};
|
|
43
50
|
const renderProgress = () => {
|
|
44
|
-
if (!showProgress || percentage === void 0) return null;
|
|
51
|
+
if (!showProgress || percentage === void 0 && !loading) return null;
|
|
45
52
|
const strokeFor = (size2) => Math.max(2, Math.round(size2 * 10 / 56));
|
|
46
53
|
const common = {
|
|
47
|
-
percentage,
|
|
54
|
+
percentage: percentage ?? 0,
|
|
48
55
|
variant: progressVariant,
|
|
49
56
|
overflow: progressOverflow,
|
|
50
57
|
showLabel: false
|
|
@@ -68,6 +75,18 @@ function DashboardInfoCard({
|
|
|
68
75
|
if (lg !== void 0) {
|
|
69
76
|
rings.push({ key: "lg", size: lg, className: "hidden content-lg:block" });
|
|
70
77
|
}
|
|
78
|
+
if (loading) {
|
|
79
|
+
return /* @__PURE__ */ jsx(Fragment, { children: rings.map((ring) => /* @__PURE__ */ jsx(
|
|
80
|
+
UnifiedSkeleton,
|
|
81
|
+
{
|
|
82
|
+
variant: "circular",
|
|
83
|
+
width: ring.size,
|
|
84
|
+
height: ring.size,
|
|
85
|
+
className: cn("shrink-0", ring.className)
|
|
86
|
+
},
|
|
87
|
+
ring.key
|
|
88
|
+
)) });
|
|
89
|
+
}
|
|
71
90
|
return /* @__PURE__ */ jsx(Fragment, { children: rings.map((ring) => /* @__PURE__ */ jsx(
|
|
72
91
|
CircularProgress,
|
|
73
92
|
{
|
|
@@ -83,16 +102,16 @@ function DashboardInfoCard({
|
|
|
83
102
|
icon && /* @__PURE__ */ jsx("div", { className: "flex size-8 shrink-0 items-center justify-center rounded-sm border border-ods-border bg-ods-bg p-[var(--spacing-system-xxs)] text-ods-text-primary content-md:size-14", children: /* @__PURE__ */ jsx("span", { className: "flex size-4 items-center justify-center content-md:size-6 [&>*]:size-full", children: icon }) }),
|
|
84
103
|
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
85
104
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
86
|
-
|
|
105
|
+
titleSlot ?? (title !== void 0 ? /* @__PURE__ */ jsx("p", { className: "truncate text-ods-text-secondary text-h5", children: title }) : loading && /* @__PURE__ */ jsx("p", { className: "text-h5", children: /* @__PURE__ */ jsx(UnifiedSkeleton, { as: "span", className: "block h-[1lh] w-20 rounded" }) })),
|
|
87
106
|
titleTag
|
|
88
107
|
] }),
|
|
89
108
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
90
|
-
/* @__PURE__ */ jsx("p", { className: cn("truncate text-ods-text-primary text-h3 content-md:text-h2", valueClassName), children: loading ? /* @__PURE__ */ jsx("span",
|
|
91
|
-
subValue && /* @__PURE__ */ jsx("p", { className: "text-ods-text-secondary text-h6", children: subValue }),
|
|
109
|
+
/* @__PURE__ */ jsx("p", { className: cn("truncate text-ods-text-primary text-h3 content-md:text-h2", valueClassName), children: loading ? /* @__PURE__ */ jsx(UnifiedSkeleton, { as: "span", className: "block h-[1lh] w-24 rounded" }) : formattedValue }),
|
|
110
|
+
loading ? loadingShowsSubValue && /* @__PURE__ */ jsx("p", { className: "text-h6", children: /* @__PURE__ */ jsx(UnifiedSkeleton, { as: "span", className: "block h-[1lh] w-16 rounded" }) }) : subValue && /* @__PURE__ */ jsx("p", { className: "text-ods-text-secondary text-h6", children: subValue }),
|
|
92
111
|
renderPercentage(),
|
|
93
112
|
tooltip && /* @__PURE__ */ jsx(FloatingTooltip, { content: tooltip, side: "top", children: /* @__PURE__ */ jsx("span", { className: "cursor-help text-ods-text-secondary", children: /* @__PURE__ */ jsx(QuestionCircleIcon, { size: 20 }) }) })
|
|
94
113
|
] }),
|
|
95
|
-
caption && /* @__PURE__ */ jsx("p", { className: "line-clamp-2 min-h-[2lh] text-ods-text-secondary text-h6", children: loading ? /* @__PURE__ */ jsx("span",
|
|
114
|
+
caption && /* @__PURE__ */ jsx("p", { className: "line-clamp-2 min-h-[2lh] text-ods-text-secondary text-h6", children: loading ? /* @__PURE__ */ jsx(UnifiedSkeleton, { as: "span", className: "block h-[1lh] w-32 rounded" }) : caption })
|
|
96
115
|
] }),
|
|
97
116
|
renderProgress()
|
|
98
117
|
] });
|
|
@@ -103,6 +122,7 @@ function DashboardInfoCard({
|
|
|
103
122
|
Link,
|
|
104
123
|
{
|
|
105
124
|
href,
|
|
125
|
+
"aria-busy": loading || void 0,
|
|
106
126
|
className: cn(
|
|
107
127
|
baseClassName,
|
|
108
128
|
captionClassName,
|
|
@@ -114,7 +134,7 @@ function DashboardInfoCard({
|
|
|
114
134
|
}
|
|
115
135
|
);
|
|
116
136
|
}
|
|
117
|
-
return /* @__PURE__ */ jsx("div", { className: cn(baseClassName, captionClassName, className), children: cardContent });
|
|
137
|
+
return /* @__PURE__ */ jsx("div", { "aria-busy": loading || void 0, className: cn(baseClassName, captionClassName, className), children: cardContent });
|
|
118
138
|
}
|
|
119
139
|
export {
|
|
120
140
|
DashboardInfoCard
|
|
@@ -16,4 +16,10 @@ export interface DataAttributionProps {
|
|
|
16
16
|
* same text.
|
|
17
17
|
*/
|
|
18
18
|
export declare function DataAttribution({ icon, source, lastUpdated, action }: DataAttributionProps): import("react").JSX.Element;
|
|
19
|
+
/**
|
|
20
|
+
* `DataAttribution` while its date loads: the same line (two lines below
|
|
21
|
+
* `content-sm`, one row above it) with text bars, so the line does not move
|
|
22
|
+
* when it fills in.
|
|
23
|
+
*/
|
|
24
|
+
export declare function DataAttributionSkeleton(): import("react").JSX.Element;
|
|
19
25
|
//# sourceMappingURL=data-attribution.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-attribution.d.ts","sourceRoot":"","sources":["../../../src/components/ui/data-attribution.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"data-attribution.d.ts","sourceRoot":"","sources":["../../../src/components/ui/data-attribution.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,MAAM,WAAW,oBAAoB;IACnC,yFAAyF;IACzF,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,yEAAyE;IACzE,MAAM,EAAE,MAAM,CAAC;IACf,0EAA0E;IAC1E,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,8GAA8G;IAC9G,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB;AAcD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,oBAAoB,+BAY1F;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,gCAUtC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { formatDate } from "../../utils/format.js";
|
|
4
|
+
import { TextSkeleton, UnifiedSkeleton } from "../loading/unified-skeleton.js";
|
|
4
5
|
const LINE_CLASS = "flex shrink-0 flex-col gap-[var(--spacing-system-xsf)] text-ods-text-primary text-h6 content-sm:flex-row content-sm:items-center content-sm:gap-[var(--spacing-system-sf)]";
|
|
5
6
|
const ITEM_CLASS = "flex items-center gap-[var(--spacing-system-xsf)]";
|
|
6
7
|
function Separator() {
|
|
@@ -23,6 +24,16 @@ function DataAttribution({ icon, source, lastUpdated, action }) {
|
|
|
23
24
|
action ? /* @__PURE__ */ jsx("div", { className: "flex content-sm:pl-[var(--spacing-system-xs)]", children: action }) : null
|
|
24
25
|
] });
|
|
25
26
|
}
|
|
27
|
+
function DataAttributionSkeleton() {
|
|
28
|
+
return /* @__PURE__ */ jsxs("div", { className: LINE_CLASS, "aria-hidden": "true", children: [
|
|
29
|
+
/* @__PURE__ */ jsxs("div", { className: ITEM_CLASS, children: [
|
|
30
|
+
/* @__PURE__ */ jsx(UnifiedSkeleton, { className: "size-4 rounded" }),
|
|
31
|
+
/* @__PURE__ */ jsx(TextSkeleton.Body, { className: "w-40" })
|
|
32
|
+
] }),
|
|
33
|
+
/* @__PURE__ */ jsx(TextSkeleton.Body, { className: "w-52" })
|
|
34
|
+
] });
|
|
35
|
+
}
|
|
26
36
|
export {
|
|
27
|
-
DataAttribution
|
|
37
|
+
DataAttribution,
|
|
38
|
+
DataAttributionSkeleton
|
|
28
39
|
};
|
|
@@ -9,6 +9,11 @@ export interface DataTableBodyProps<T = unknown> {
|
|
|
9
9
|
emptyState?: NoDataProps;
|
|
10
10
|
/** Skeleton row count when loading. Default `10`. */
|
|
11
11
|
skeletonRows?: number;
|
|
12
|
+
/**
|
|
13
|
+
* The loading state announces itself (`LoadingRegion`: aria-busy plus one "Loading results" status).
|
|
14
|
+
* `false` when the table sits inside a loading region of its own (a page skeleton). Default `true`.
|
|
15
|
+
*/
|
|
16
|
+
loadingRegion?: boolean;
|
|
12
17
|
className?: string;
|
|
13
18
|
/**
|
|
14
19
|
* Per-row class name. Prefer `useCallback` for function form to avoid
|
|
@@ -76,5 +81,5 @@ export interface DataTableBodyProps<T = unknown> {
|
|
|
76
81
|
* `onRowClick` / `rowHref` / `rowClassName` (if function) with `useCallback`
|
|
77
82
|
* in the consumer to get the full benefit.
|
|
78
83
|
*/
|
|
79
|
-
export declare function DataTableBody<T = unknown>({ loading, emptyMessage, emptyState, skeletonRows, className, rowClassName, compact, rowHeightClassName, onRowClick, rowHref, minRows, renderSubRow, }: DataTableBodyProps<T>): import("react").JSX.Element;
|
|
84
|
+
export declare function DataTableBody<T = unknown>({ loading, emptyMessage, emptyState, skeletonRows, loadingRegion, className, rowClassName, compact, rowHeightClassName, onRowClick, rowHref, minRows, renderSubRow, }: DataTableBodyProps<T>): import("react").JSX.Element;
|
|
80
85
|
//# sourceMappingURL=data-table-body.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-table-body.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/data-table/data-table-body.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAwB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"data-table-body.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/data-table/data-table-body.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAwB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAI7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAO9C,MAAM,WAAW,kBAAkB,CAAC,CAAC,GAAG,OAAO;IAC7C,oEAAoE;IACpE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,2GAA2G;IAC3G,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iGAAiG;IACjG,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,qDAAqD;IACrD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;;;;;OAUG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC,CAAC;IAC7D,wBAAwB;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;OAGG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;IAC/B;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjD;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,SAAS,CAAC;CACvC;AAKD;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,CAAC,GAAG,OAAO,EAAE,EACzC,OAAO,EACP,YAAY,EACZ,UAAU,EACV,YAAiB,EACjB,aAAoB,EACpB,SAAS,EACT,YAAY,EACZ,OAAO,EACP,kBAAkB,EAClB,UAAU,EACV,OAAO,EACP,OAAO,EACP,YAAY,GACb,EAAE,kBAAkB,CAAC,CAAC,CAAC,+BAwFvB"}
|
|
@@ -3,6 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { useSyncExternalStore } from "react";
|
|
4
4
|
import { useIsomorphicLayoutEffect } from "../../../hooks/ui/use-isomorphic-layout-effect.js";
|
|
5
5
|
import { cn } from "../../../utils/cn.js";
|
|
6
|
+
import { LoadingRegion } from "../../loading/loading-region.js";
|
|
6
7
|
import { useDataTableContext } from "./data-table.js";
|
|
7
8
|
import { DataTableEmpty } from "./data-table-empty.js";
|
|
8
9
|
import { useDataTableLoadMoreStore } from "./data-table-load-more.js";
|
|
@@ -14,6 +15,7 @@ function DataTableBody({
|
|
|
14
15
|
emptyMessage,
|
|
15
16
|
emptyState,
|
|
16
17
|
skeletonRows = 10,
|
|
18
|
+
loadingRegion = true,
|
|
17
19
|
className,
|
|
18
20
|
rowClassName,
|
|
19
21
|
compact,
|
|
@@ -31,7 +33,7 @@ function DataTableBody({
|
|
|
31
33
|
useIsomorphicLayoutEffect(() => hasRows ? loadMore.registerRowsBody() : void 0, [loadMore, hasRows]);
|
|
32
34
|
const skeletonRowClassName = typeof rowClassName === "string" ? rowClassName : void 0;
|
|
33
35
|
if (loading && !hasRows) {
|
|
34
|
-
return /* @__PURE__ */ jsx("
|
|
36
|
+
return /* @__PURE__ */ jsx(LoadingRegion, { label: "Loading results", announce: loadingRegion, className: cn(ROW_STACK_CLASSES, className), children: /* @__PURE__ */ jsx(
|
|
35
37
|
DataTableSkeleton,
|
|
36
38
|
{
|
|
37
39
|
rows: skeletonRows,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-table-infinite-footer.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/data-table/data-table-infinite-footer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"data-table-infinite-footer.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/data-table/data-table-infinite-footer.tsx"],"names":[],"mappings":"AAUA,MAAM,WAAW,4BAA4B;IAC3C,WAAW,EAAE,OAAO,CAAC;IACrB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,uDAAuD;IACvD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;;;;;;;OAUG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAmCD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,WAAW,EACX,kBAAkB,EAClB,UAAU,EACV,YAAgB,EAChB,UAAgC,EAChC,WAAW,GACZ,EAAE,4BAA4B,+BAwF9B"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useEffect, useRef, useState, useSyncExternalStore } from "react";
|
|
4
4
|
import { useIsomorphicLayoutEffect } from "../../../hooks/ui/use-isomorphic-layout-effect.js";
|
|
5
|
+
import { LoadingRegion } from "../../loading/loading-region.js";
|
|
5
6
|
import { Button } from "../button/index.js";
|
|
6
7
|
import { useOptionalDataTableContext } from "./data-table.js";
|
|
7
8
|
import { useDataTableLoadMoreStore } from "./data-table-load-more.js";
|
|
@@ -67,7 +68,8 @@ function DataTableInfiniteFooter({
|
|
|
67
68
|
return () => observer.disconnect();
|
|
68
69
|
}, [hasNextPage, isFetchingNextPage, isStalled, rootMargin]);
|
|
69
70
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
70
|
-
isFetchingNextPage && !bodyDrawsRows &&
|
|
71
|
+
isFetchingNextPage && !bodyDrawsRows && // Busy, without a second status: the footer's own one below says "Loading more results".
|
|
72
|
+
/* @__PURE__ */ jsx(LoadingRegion, { status: false, className: ROW_STACK_CLASSES, children: /* @__PURE__ */ jsx(DataTableSkeleton, { rows: skeletonRows }) }),
|
|
71
73
|
isStalled && /* @__PURE__ */ jsx("div", { className: "flex justify-center pt-[var(--spacing-system-mf)]", children: /* @__PURE__ */ jsx(Button, { variant: "outline", onClick: onLoadMore, children: "Load more" }) }),
|
|
72
74
|
/* @__PURE__ */ jsx("div", { role: "status", className: "sr-only", children: isFetchingNextPage ? "Loading more results" : "" }),
|
|
73
75
|
hasNextPage && /* @__PURE__ */ jsx("div", { ref: sentinelRef, className: "h-1", "aria-hidden": "true" })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-table-skeleton.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/data-table/data-table-skeleton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"data-table-skeleton.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/data-table/data-table-skeleton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,iCAAiC,CAAC;AACjE,eAAO,MAAM,iBAAiB,aAAa,CAAC;AAE5C;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,8EAA8E,CAAC;AAE7G;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,yDAAyD,CAAC;AAExF,MAAM,WAAW,sBAAsB;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;;OAMG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,wBAAgB,iBAAiB,CAAC,EAAE,IAAS,EAAE,SAAS,EAAE,YAAY,EAAE,kBAAkB,EAAE,EAAE,sBAAsB,+BAoEnH;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,KAAK,EACL,YAAY,EACZ,kBAAkB,EAClB,oBAAoB,EACpB,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,EAAE,SAAS,CAAC;CACrB,+BA0BA;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,kBAAkB,EAClB,oBAAoB,GACrB,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,wDAAwD;IACxD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;kFAC8E;IAC9E,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,+BAuCA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { cn } from "../../../utils/cn.js";
|
|
4
|
+
import { UnifiedSkeleton } from "../../loading/unified-skeleton.js";
|
|
4
5
|
import { useDataTableContext } from "./data-table.js";
|
|
5
6
|
import { getHideClasses } from "./utils.js";
|
|
6
7
|
const ROW_HEIGHT_DESKTOP = "h-[66px] content-md:h-[78px]";
|
|
@@ -14,8 +15,9 @@ function DataTableSkeleton({ rows = 10, className, rowClassName, rowHeightClassN
|
|
|
14
15
|
return /* @__PURE__ */ jsx(Fragment, { children: Array.from({ length: rows }).map((_, index) => /* @__PURE__ */ jsxs(
|
|
15
16
|
"div",
|
|
16
17
|
{
|
|
18
|
+
"aria-hidden": "true",
|
|
17
19
|
className: cn(
|
|
18
|
-
"relative
|
|
20
|
+
"relative overflow-hidden rounded-md border border-ods-border bg-ods-card",
|
|
19
21
|
// The slot height sits on the card, matching a real row.
|
|
20
22
|
rowHeightClassName,
|
|
21
23
|
className
|
|
@@ -46,8 +48,8 @@ function DataTableSkeleton({ rows = 10, className, rowClassName, rowHeightClassN
|
|
|
46
48
|
getHideClasses(meta?.hideAt)
|
|
47
49
|
),
|
|
48
50
|
children: [
|
|
49
|
-
/* @__PURE__ */ jsx(
|
|
50
|
-
index % 2 === 0 && column.id === firstColumnId && /* @__PURE__ */ jsx(
|
|
51
|
+
/* @__PURE__ */ jsx(UnifiedSkeleton, { className: "mb-[var(--spacing-system-xxs)] h-5 w-3/4 rounded-sm" }),
|
|
52
|
+
index % 2 === 0 && column.id === firstColumnId && /* @__PURE__ */ jsx(UnifiedSkeleton, { className: "h-4 w-1/2 rounded-sm opacity-60" })
|
|
51
53
|
]
|
|
52
54
|
},
|
|
53
55
|
column.id
|
|
@@ -65,8 +67,8 @@ function DataTableSkeleton({ rows = 10, className, rowClassName, rowHeightClassN
|
|
|
65
67
|
rowClassName
|
|
66
68
|
),
|
|
67
69
|
children: /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 flex-col justify-center py-[var(--spacing-system-sf)]", children: [
|
|
68
|
-
/* @__PURE__ */ jsx(
|
|
69
|
-
/* @__PURE__ */ jsx(
|
|
70
|
+
/* @__PURE__ */ jsx(UnifiedSkeleton, { className: "mb-[var(--spacing-system-xsf)] h-4 w-3/4 rounded-sm" }),
|
|
71
|
+
/* @__PURE__ */ jsx(UnifiedSkeleton, { className: "h-3 w-1/2 rounded-sm opacity-60" })
|
|
70
72
|
] })
|
|
71
73
|
}
|
|
72
74
|
)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature-card.d.ts","sourceRoot":"","sources":["../../../src/components/ui/feature-card.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"feature-card.d.ts","sourceRoot":"","sources":["../../../src/components/ui/feature-card.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAClF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,uEAAuE;IACvE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;QAC5B,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAC;KAC3E,CAAC;IACF,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB;;;OAGG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEzB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB,8EAA8E;IAC9E,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,0GAA0G;IAC1G,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,4DAA4D;IAC5D,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,8DAA8D;IAC9D,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AA0BD,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,OAAW,EACX,SAAc,EAGd,aAAsE,EACtE,aAAqC,EACrC,WAAkB,EAClB,cAAsB,EACtB,OAAY,EACZ,OAAe,EACf,cAAmB,EACnB,iBAAsB,EACtB,eAAmC,GACpC,EAAE,oBAAoB,qBAkMtB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { UnifiedSkeleton } from "../loading/unified-skeleton.js";
|
|
3
4
|
import { Card } from "./card.js";
|
|
4
5
|
import { StatusBadge } from "./status-badge.js";
|
|
5
6
|
const GRID_COLUMNS = {
|
|
@@ -18,9 +19,6 @@ function fourColumnBorders(index, count) {
|
|
|
18
19
|
classes.push(Math.floor(index / 4) < lgRows - 1 ? "content-lg:border-b" : "content-lg:border-b-0");
|
|
19
20
|
return ` ${classes.join(" ")}`;
|
|
20
21
|
}
|
|
21
|
-
function LineBar({ width }) {
|
|
22
|
-
return /* @__PURE__ */ jsx("span", { className: `block h-[1lh] ${width} animate-pulse rounded bg-ods-border` });
|
|
23
|
-
}
|
|
24
22
|
function FeatureCardGrid({
|
|
25
23
|
items,
|
|
26
24
|
columns = 3,
|
|
@@ -120,15 +118,15 @@ function FeatureCardGrid({
|
|
|
120
118
|
item.media ? /* @__PURE__ */ jsxs("div", { className: "flex gap-[var(--spacing-system-lf)]", children: [
|
|
121
119
|
/* @__PURE__ */ jsx("div", { className: "shrink-0", children: item.media }),
|
|
122
120
|
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 flex-col gap-[var(--spacing-system-xsf)]", children: [
|
|
123
|
-
item.eyebrow && /* @__PURE__ */ jsx("span", { className: "text-ods-text-secondary text-h5", children: loading ? /* @__PURE__ */ jsx(
|
|
124
|
-
/* @__PURE__ */ jsx("h3", { className: `text-ods-text-primary text-h2 ${titleClassName}`, children: loading ? /* @__PURE__ */ jsx(
|
|
125
|
-
item.subtitle && /* @__PURE__ */ jsx("p", { className: `text-h4 ${accentClassName} ${subtitleClassName}`, children: loading ? /* @__PURE__ */ jsx(
|
|
121
|
+
item.eyebrow && /* @__PURE__ */ jsx("span", { className: "text-ods-text-secondary text-h5", children: loading ? /* @__PURE__ */ jsx(UnifiedSkeleton, { as: "span", className: "block h-[1lh] w-6 rounded" }) : item.eyebrow }),
|
|
122
|
+
/* @__PURE__ */ jsx("h3", { className: `text-ods-text-primary text-h2 ${titleClassName}`, children: loading ? /* @__PURE__ */ jsx(UnifiedSkeleton, { as: "span", className: "block h-[1lh] w-1/2 rounded" }) : item.title }),
|
|
123
|
+
item.subtitle && /* @__PURE__ */ jsx("p", { className: `text-h4 ${accentClassName} ${subtitleClassName}`, children: loading ? /* @__PURE__ */ jsx(UnifiedSkeleton, { as: "span", className: "block h-[1lh] w-3/4 rounded" }) : item.subtitle }),
|
|
126
124
|
item.content
|
|
127
125
|
] })
|
|
128
126
|
] }) : item.eyebrow || item.subtitle ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-[var(--spacing-system-xsf)]", children: [
|
|
129
|
-
item.eyebrow && /* @__PURE__ */ jsx("span", { className: "text-ods-text-secondary text-h5", children: loading ? /* @__PURE__ */ jsx(
|
|
130
|
-
/* @__PURE__ */ jsx("h3", { className: `whitespace-pre-line text-ods-text-primary text-h2 ${titleClassName}`, children: loading ? /* @__PURE__ */ jsx(
|
|
131
|
-
item.subtitle && /* @__PURE__ */ jsx("p", { className: `text-h4 ${accentClassName} ${subtitleClassName}`, children: loading ? /* @__PURE__ */ jsx(
|
|
127
|
+
item.eyebrow && /* @__PURE__ */ jsx("span", { className: "text-ods-text-secondary text-h5", children: loading ? /* @__PURE__ */ jsx(UnifiedSkeleton, { as: "span", className: "block h-[1lh] w-6 rounded" }) : item.eyebrow }),
|
|
128
|
+
/* @__PURE__ */ jsx("h3", { className: `whitespace-pre-line text-ods-text-primary text-h2 ${titleClassName}`, children: loading ? /* @__PURE__ */ jsx(UnifiedSkeleton, { as: "span", className: "block h-[1lh] w-1/2 rounded" }) : item.title }),
|
|
129
|
+
item.subtitle && /* @__PURE__ */ jsx("p", { className: `text-h4 ${accentClassName} ${subtitleClassName}`, children: loading ? /* @__PURE__ */ jsx(UnifiedSkeleton, { as: "span", className: "block h-[1lh] w-3/4 rounded" }) : item.subtitle })
|
|
132
130
|
] }) : /* @__PURE__ */ jsx("h3", { className: "whitespace-pre-line text-ods-text-primary text-h2", children: item.title }),
|
|
133
131
|
!item.media && item.content,
|
|
134
132
|
item.footer && /* @__PURE__ */ jsx("div", { className: "mt-auto", children: item.footer })
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
interface FileManagerSkeletonProps {
|
|
2
|
+
/** The loading state announces itself (`LoadingRegion`). `false` inside another loading region. Default `true`. */
|
|
3
|
+
region?: boolean;
|
|
2
4
|
rows?: number;
|
|
3
5
|
showSearch?: boolean;
|
|
4
6
|
showActions?: boolean;
|
|
5
7
|
}
|
|
6
|
-
export declare function FileManagerSkeleton({ rows, showSearch, showActions }: FileManagerSkeletonProps): import("react").JSX.Element;
|
|
8
|
+
export declare function FileManagerSkeleton({ region, rows, showSearch, showActions, }: FileManagerSkeletonProps): import("react").JSX.Element;
|
|
7
9
|
export {};
|
|
8
10
|
//# sourceMappingURL=file-manager-skeleton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-manager-skeleton.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/file-manager/file-manager-skeleton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"file-manager-skeleton.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/file-manager/file-manager-skeleton.tsx"],"names":[],"mappings":"AAKA,UAAU,wBAAwB;IAChC,mHAAmH;IACnH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,wBAAgB,mBAAmB,CAAC,EAClC,MAAa,EACb,IAAQ,EACR,UAAiB,EACjB,WAAkB,GACnB,EAAE,wBAAwB,+BA2F1B"}
|
|
@@ -1,44 +1,50 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
4
|
-
|
|
3
|
+
import { LoadingRegion } from "../../loading/loading-region.js";
|
|
4
|
+
import { UnifiedSkeleton } from "../../loading/unified-skeleton.js";
|
|
5
|
+
function FileManagerSkeleton({
|
|
6
|
+
region = true,
|
|
7
|
+
rows = 8,
|
|
8
|
+
showSearch = true,
|
|
9
|
+
showActions = true
|
|
10
|
+
}) {
|
|
5
11
|
const rowPlaceholders = Array.from({ length: rows });
|
|
6
|
-
return /* @__PURE__ */ jsx("
|
|
12
|
+
return /* @__PURE__ */ jsx(LoadingRegion, { label: "Loading files", announce: region, className: "flex h-full flex-col bg-ods-bg", children: /* @__PURE__ */ jsxs("div", { className: "flex min-h-0 flex-1 flex-col space-y-6 py-6", children: [
|
|
7
13
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-start justify-between gap-4", children: [
|
|
8
14
|
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
|
|
9
|
-
/* @__PURE__ */ jsx(
|
|
10
|
-
/* @__PURE__ */ jsx(
|
|
11
|
-
/* @__PURE__ */ jsx(
|
|
12
|
-
/* @__PURE__ */ jsx(
|
|
13
|
-
/* @__PURE__ */ jsx(
|
|
15
|
+
/* @__PURE__ */ jsx(UnifiedSkeleton, { className: "h-5 w-12" }),
|
|
16
|
+
/* @__PURE__ */ jsx(UnifiedSkeleton, { className: "h-4 w-4 rounded-full" }),
|
|
17
|
+
/* @__PURE__ */ jsx(UnifiedSkeleton, { className: "h-5 w-20" }),
|
|
18
|
+
/* @__PURE__ */ jsx(UnifiedSkeleton, { className: "h-4 w-4 rounded-full" }),
|
|
19
|
+
/* @__PURE__ */ jsx(UnifiedSkeleton, { className: "h-5 w-24" })
|
|
14
20
|
] }),
|
|
15
21
|
showActions && /* @__PURE__ */ jsxs("div", { className: "flex flex-shrink-0 items-center gap-2", children: [
|
|
16
|
-
/* @__PURE__ */ jsx(
|
|
17
|
-
/* @__PURE__ */ jsx(
|
|
18
|
-
/* @__PURE__ */ jsx(
|
|
19
|
-
/* @__PURE__ */ jsx(
|
|
22
|
+
/* @__PURE__ */ jsx(UnifiedSkeleton, { className: "h-9 w-24" }),
|
|
23
|
+
/* @__PURE__ */ jsx(UnifiedSkeleton, { className: "h-9 w-20" }),
|
|
24
|
+
/* @__PURE__ */ jsx(UnifiedSkeleton, { className: "h-9 w-20" }),
|
|
25
|
+
/* @__PURE__ */ jsx(UnifiedSkeleton, { className: "h-9 w-28" })
|
|
20
26
|
] })
|
|
21
27
|
] }),
|
|
22
|
-
showSearch && /* @__PURE__ */ jsx(
|
|
28
|
+
showSearch && /* @__PURE__ */ jsx(UnifiedSkeleton, { className: "h-10 w-full rounded-lg" }),
|
|
23
29
|
/* @__PURE__ */ jsx("div", { className: "min-h-0 flex-1", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col rounded-lg border border-ods-border bg-ods-bg", children: [
|
|
24
30
|
/* @__PURE__ */ jsxs("div", { className: "flex h-12 items-center rounded-t-lg border-b border-ods-border bg-ods-bg-surface px-4", children: [
|
|
25
|
-
/* @__PURE__ */ jsx("div", { className: "mr-4", children: /* @__PURE__ */ jsx(
|
|
31
|
+
/* @__PURE__ */ jsx("div", { className: "mr-4", children: /* @__PURE__ */ jsx(UnifiedSkeleton, { className: "h-5 w-5 rounded" }) }),
|
|
26
32
|
/* @__PURE__ */ jsx("div", { className: "flex min-w-0 flex-1 items-center gap-3 text-ods-text-secondary text-h5", children: "NAME" }),
|
|
27
33
|
/* @__PURE__ */ jsx("div", { className: "w-24 shrink-0 pr-4 text-ods-text-secondary text-h5", children: "SIZE" }),
|
|
28
34
|
/* @__PURE__ */ jsx("div", { className: "w-36 shrink-0 pl-4 text-ods-text-secondary text-h5", children: "EDITED" }),
|
|
29
35
|
/* @__PURE__ */ jsx("div", { className: "flex w-48 shrink-0 justify-end pl-4" })
|
|
30
36
|
] }),
|
|
31
37
|
/* @__PURE__ */ jsx("div", { className: "min-h-0 flex-1 divide-y divide-ods-border overflow-auto rounded-b-lg", children: rowPlaceholders.map((_, idx) => /* @__PURE__ */ jsxs("div", { className: "flex h-16 items-center border-ods-border bg-ods-card px-4", children: [
|
|
32
|
-
/* @__PURE__ */ jsx("div", { className: "mr-4", children: /* @__PURE__ */ jsx(
|
|
38
|
+
/* @__PURE__ */ jsx("div", { className: "mr-4", children: /* @__PURE__ */ jsx(UnifiedSkeleton, { className: "h-5 w-5 rounded" }) }),
|
|
33
39
|
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-3", children: [
|
|
34
|
-
/* @__PURE__ */ jsx(
|
|
35
|
-
/* @__PURE__ */ jsx("div", { className: "flex min-w-0 flex-col", children: /* @__PURE__ */ jsx(
|
|
40
|
+
/* @__PURE__ */ jsx(UnifiedSkeleton, { className: "h-6 w-6 rounded" }),
|
|
41
|
+
/* @__PURE__ */ jsx("div", { className: "flex min-w-0 flex-col", children: /* @__PURE__ */ jsx(UnifiedSkeleton, { className: "h-4 w-32" }) })
|
|
36
42
|
] }),
|
|
37
|
-
/* @__PURE__ */ jsx("div", { className: "w-24 shrink-0 pr-4", children: /* @__PURE__ */ jsx(
|
|
38
|
-
/* @__PURE__ */ jsx("div", { className: "w-36 shrink-0 pl-4", children: /* @__PURE__ */ jsx(
|
|
43
|
+
/* @__PURE__ */ jsx("div", { className: "w-24 shrink-0 pr-4", children: /* @__PURE__ */ jsx(UnifiedSkeleton, { className: "h-4 w-16" }) }),
|
|
44
|
+
/* @__PURE__ */ jsx("div", { className: "w-36 shrink-0 pl-4", children: /* @__PURE__ */ jsx(UnifiedSkeleton, { className: "h-4 w-24" }) }),
|
|
39
45
|
/* @__PURE__ */ jsxs("div", { className: "flex w-48 shrink-0 items-center justify-end gap-1 pl-4", children: [
|
|
40
|
-
/* @__PURE__ */ jsx(
|
|
41
|
-
/* @__PURE__ */ jsx(
|
|
46
|
+
/* @__PURE__ */ jsx(UnifiedSkeleton, { className: "h-8 w-8 rounded" }),
|
|
47
|
+
/* @__PURE__ */ jsx(UnifiedSkeleton, { className: "h-8 w-8 rounded" })
|
|
42
48
|
] })
|
|
43
49
|
] }, idx)) })
|
|
44
50
|
] }) })
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
4
4
|
import { cn } from "../../../utils/cn.js";
|
|
5
|
+
import { UnifiedSkeleton } from "../../loading/unified-skeleton.js";
|
|
5
6
|
import { Checkbox } from "../checkbox.js";
|
|
6
|
-
import { Skeleton } from "../skeleton.js";
|
|
7
7
|
import { FileManagerEmpty } from "./file-manager-empty.js";
|
|
8
8
|
import { FileManagerTableRow } from "./file-manager-table-row.js";
|
|
9
9
|
function FileManagerTable({
|
|
@@ -60,26 +60,26 @@ function FileManagerTable({
|
|
|
60
60
|
const skeletonRows = 8;
|
|
61
61
|
return /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col rounded-lg border border-ods-border bg-ods-bg", className), children: [
|
|
62
62
|
/* @__PURE__ */ jsxs("div", { className: "flex h-12 items-center rounded-t-lg border-b border-ods-border bg-ods-bg-surface px-4", children: [
|
|
63
|
-
showCheckboxes && /* @__PURE__ */ jsx("div", { className: "mr-4", children: /* @__PURE__ */ jsx(
|
|
63
|
+
showCheckboxes && /* @__PURE__ */ jsx("div", { className: "mr-4", children: /* @__PURE__ */ jsx(UnifiedSkeleton, { className: "h-5 w-5 rounded" }) }),
|
|
64
64
|
/* @__PURE__ */ jsx("div", { className: "flex min-w-0 flex-1 items-center gap-3 text-ods-text-secondary text-h5", children: "NAME" }),
|
|
65
65
|
/* @__PURE__ */ jsx("div", { className: "w-24 shrink-0 pr-4 text-ods-text-secondary text-h5", children: "SIZE" }),
|
|
66
66
|
/* @__PURE__ */ jsx("div", { className: "w-36 shrink-0 pl-4 text-ods-text-secondary text-h5", children: "EDITED" }),
|
|
67
67
|
/* @__PURE__ */ jsx("div", { className: "flex w-48 shrink-0 justify-end pl-4" })
|
|
68
68
|
] }),
|
|
69
69
|
/* @__PURE__ */ jsx("div", { className: "flex-1 divide-y divide-ods-border overflow-auto rounded-b-lg", children: Array.from({ length: skeletonRows }).map((_, idx) => /* @__PURE__ */ jsxs("div", { className: "group flex h-16 items-center border-ods-border bg-ods-card px-4", children: [
|
|
70
|
-
showCheckboxes && /* @__PURE__ */ jsx("div", { className: "mr-4", children: /* @__PURE__ */ jsx(
|
|
70
|
+
showCheckboxes && /* @__PURE__ */ jsx("div", { className: "mr-4", children: /* @__PURE__ */ jsx(UnifiedSkeleton, { className: "h-5 w-5 rounded" }) }),
|
|
71
71
|
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-3", children: [
|
|
72
|
-
/* @__PURE__ */ jsx(
|
|
72
|
+
/* @__PURE__ */ jsx(UnifiedSkeleton, { className: "h-6 w-6 rounded" }),
|
|
73
73
|
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-col", children: [
|
|
74
|
-
/* @__PURE__ */ jsx(
|
|
75
|
-
isSearchResult && /* @__PURE__ */ jsx(
|
|
74
|
+
/* @__PURE__ */ jsx(UnifiedSkeleton, { className: "h-4 w-32" }),
|
|
75
|
+
isSearchResult && /* @__PURE__ */ jsx(UnifiedSkeleton, { className: "mt-1 h-3 w-48" })
|
|
76
76
|
] })
|
|
77
77
|
] }),
|
|
78
|
-
/* @__PURE__ */ jsx("div", { className: "w-24 shrink-0 pr-4", children: /* @__PURE__ */ jsx(
|
|
79
|
-
/* @__PURE__ */ jsx("div", { className: "w-36 shrink-0 pl-4", children: /* @__PURE__ */ jsx(
|
|
78
|
+
/* @__PURE__ */ jsx("div", { className: "w-24 shrink-0 pr-4", children: /* @__PURE__ */ jsx(UnifiedSkeleton, { className: "h-4 w-16" }) }),
|
|
79
|
+
/* @__PURE__ */ jsx("div", { className: "w-36 shrink-0 pl-4", children: /* @__PURE__ */ jsx(UnifiedSkeleton, { className: "h-4 w-24" }) }),
|
|
80
80
|
/* @__PURE__ */ jsxs("div", { className: "flex w-48 shrink-0 items-center justify-end gap-1 pl-4", children: [
|
|
81
|
-
/* @__PURE__ */ jsx(
|
|
82
|
-
/* @__PURE__ */ jsx(
|
|
81
|
+
/* @__PURE__ */ jsx(UnifiedSkeleton, { className: "h-8 w-8 rounded" }),
|
|
82
|
+
/* @__PURE__ */ jsx(UnifiedSkeleton, { className: "h-8 w-8 rounded" })
|
|
83
83
|
] })
|
|
84
84
|
] }, idx)) })
|
|
85
85
|
] });
|