@flamingo-stack/openframe-frontend-core 0.0.702 → 0.0.703-snapshot.20261006080901
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/{chunk-CYYTD5ZK.cjs → chunk-262YQFOS.cjs} +47 -47
- package/dist/{chunk-SAA7B3DA.js → chunk-2G546OND.js} +500 -67
- package/dist/{chunk-6JPQDYYY.js → chunk-2JDVL7UV.js} +2614 -2001
- package/dist/{chunk-ASN65P3F.cjs → chunk-4DQMTBMK.cjs} +15 -15
- package/dist/{chunk-CZ34HXDW.js → chunk-4KGXLVCF.js} +686 -725
- package/dist/{chunk-TCZCMD5Q.js → chunk-5HBHO5TB.js} +1 -1
- package/dist/{chunk-446KS5BG.js → chunk-5QJDM6UV.js} +5 -5
- package/dist/{chunk-UJJWTJ6S.js → chunk-6WQIUQUC.js} +30 -16
- package/dist/{chunk-YR6JPJF4.js → chunk-6XIF2Z7I.js} +4 -4
- package/dist/{chunk-YGRHITPY.cjs → chunk-7JIL3WOH.cjs} +24 -24
- package/dist/{chunk-RS7HWAYX.js → chunk-7LFIKJX2.js} +3 -3
- package/dist/{chunk-4OGAXAEG.cjs → chunk-ABU3TGXA.cjs} +3 -3
- package/dist/{chunk-3WSFIV5G.cjs → chunk-AMYY3PNL.cjs} +69 -55
- package/dist/{chunk-BRXOGCH3.cjs → chunk-BIZNSF3U.cjs} +3 -3
- package/dist/{chunk-2A4XES7R.cjs → chunk-BM5MVGH3.cjs} +3 -3
- package/dist/{chunk-IIMICN7L.cjs → chunk-C3BWIU7R.cjs} +4 -44
- package/dist/{chunk-LZNJH23A.cjs → chunk-C7XGRLT5.cjs} +12 -12
- package/dist/{chunk-6YCXA7CN.js → chunk-CH5232HV.js} +20 -19
- package/dist/{chunk-UIBSSVON.cjs → chunk-D7BTSVMS.cjs} +2 -2
- package/dist/{chunk-BO5ZHDA4.js → chunk-ERCV6HHJ.js} +7 -7
- package/dist/{chunk-5V6O73EH.js → chunk-FLKJYMVB.js} +3 -3
- package/dist/{chunk-Z5HDCZAS.js → chunk-FXENTYE5.js} +15 -15
- package/dist/{chunk-HIXGAY2L.cjs → chunk-HFJW24JJ.cjs} +121 -121
- package/dist/{chunk-HPJ4XS2L.js → chunk-HJAYVKWQ.js} +24 -24
- package/dist/{chunk-PLK6GHN7.js → chunk-I7DFUQMN.js} +10 -10
- package/dist/{chunk-KJ5LWATV.js → chunk-IHU5ANUY.js} +7 -7
- package/dist/{chunk-AEQANLBW.cjs → chunk-IZGDG5X6.cjs} +505 -72
- package/dist/{chunk-2V4Z44G6.js → chunk-JEYRXT5L.js} +17 -17
- package/dist/{chunk-B3LZJ6J3.cjs → chunk-L3IC42IF.cjs} +32 -32
- package/dist/{chunk-RTGPIHVO.cjs → chunk-LDPEQGKT.cjs} +2243 -1630
- package/dist/{chunk-FD4DBTFO.cjs → chunk-LTSTC3N5.cjs} +1253 -1292
- package/dist/{chunk-OGLCD3UL.js → chunk-MFFCUVWG.js} +6 -6
- package/dist/{chunk-3L7KCOGO.cjs → chunk-MGGGBHYD.cjs} +30 -30
- package/dist/{chunk-QFW3RUZS.cjs → chunk-MI3JUJ75.cjs} +33 -33
- package/dist/{chunk-EMCQGFXD.cjs → chunk-MMOODW57.cjs} +28 -27
- package/dist/{chunk-Q76ZTHNV.js → chunk-MP2C3LJ4.js} +1 -1
- package/dist/{chunk-E3DH543A.cjs → chunk-N3TO7JV3.cjs} +98 -98
- package/dist/{chunk-2T6QWNXU.js → chunk-NDESEPW5.js} +99 -11
- package/dist/{chunk-ETFFEA3J.js → chunk-NRLJUBCS.js} +7 -7
- package/dist/{chunk-HUOLB7ZN.cjs → chunk-OHFS7VOU.cjs} +9 -9
- package/dist/{chunk-MWUBBBWZ.js → chunk-QVSFBSWV.js} +10 -10
- package/dist/{chunk-MDBHZBW7.cjs → chunk-RKV5B7EU.cjs} +92 -4
- package/dist/{chunk-3G76LRGL.cjs → chunk-SYXQLETR.cjs} +29 -29
- package/dist/{chunk-FHM7GD5B.cjs → chunk-UK62YTH6.cjs} +28 -14
- package/dist/{chunk-HUMWQMCU.js → chunk-UT4YHQZW.js} +3 -3
- package/dist/{chunk-NGJCWEYX.cjs → chunk-VHCACDKP.cjs} +46 -46
- package/dist/{chunk-5FFNNJM7.js → chunk-VR2ZLFCP.js} +1 -1
- package/dist/{chunk-IZKOQVXO.js → chunk-VTASHWER.js} +14 -14
- package/dist/{chunk-64O4L7WN.js → chunk-WUJNYGO2.js} +11 -51
- package/dist/{chunk-JOY6HVPV.js → chunk-XATTBO5X.js} +25 -11
- package/dist/{chunk-L7KZA7ZD.cjs → chunk-XIFOBQRQ.cjs} +6 -6
- package/dist/{chunk-CXDJUKC6.cjs → chunk-XJKZ4IKT.cjs} +4 -4
- package/dist/{chunk-XCIFHW4E.cjs → chunk-XOYH2YQE.cjs} +2 -2
- package/dist/{chunk-HYFLTFFB.js → chunk-ZQFZSFQI.js} +2 -2
- package/dist/components/case-studies/index.cjs +24 -24
- package/dist/components/case-studies/index.js +10 -10
- package/dist/components/chat/chat-archive-page.d.ts +3 -3
- package/dist/components/chat/chat-archive-page.d.ts.map +1 -1
- package/dist/components/chat/chat-nav-sidebar.d.ts +4 -0
- package/dist/components/chat/chat-nav-sidebar.d.ts.map +1 -1
- package/dist/components/chat/chat-panel-header.d.ts +3 -2
- package/dist/components/chat/chat-panel-header.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.d.ts +36 -2
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +14 -6
- package/dist/components/chat/index.d.ts +4 -1
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +13 -5
- package/dist/components/chat/mingo-archive-list.d.ts +17 -0
- package/dist/components/chat/mingo-archive-list.d.ts.map +1 -0
- package/dist/components/chat/mingo-chat-header.d.ts +31 -0
- package/dist/components/chat/mingo-chat-header.d.ts.map +1 -0
- package/dist/components/chat/mingo-chat-rail.d.ts +54 -0
- package/dist/components/chat/mingo-chat-rail.d.ts.map +1 -0
- package/dist/components/chat/model-display.d.ts.map +1 -1
- package/dist/components/contact/contact-form.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +11 -11
- package/dist/components/contact/index.js +10 -10
- package/dist/components/content-loading-container.d.ts +1 -1
- package/dist/components/content-loading-container.d.ts.map +1 -1
- package/dist/components/docs/index.cjs +14 -14
- package/dist/components/docs/index.js +13 -13
- package/dist/components/docs/skeletons.d.ts.map +1 -1
- package/dist/components/embeds/index.cjs +11 -11
- package/dist/components/embeds/index.js +10 -10
- package/dist/components/faq/index.cjs +12 -12
- package/dist/components/faq/index.js +11 -11
- package/dist/components/features/figma-prototype-viewer.d.ts.map +1 -1
- package/dist/components/features/index.cjs +10 -10
- package/dist/components/features/index.js +9 -9
- package/dist/components/features/media-gallery-manager.d.ts.map +1 -1
- package/dist/components/features/parallax-image-showcase.d.ts.map +1 -1
- package/dist/components/features/policy-configuration-panel.d.ts.map +1 -1
- package/dist/components/features/section-selector.d.ts.map +1 -1
- package/dist/components/help-center-pages/index.cjs +119 -119
- package/dist/components/help-center-pages/index.js +39 -39
- package/dist/components/help-center-pages/trust-center-sections.d.ts +2 -2
- package/dist/components/help-center-pages/trust-center-sections.d.ts.map +1 -1
- package/dist/components/index.cjs +94 -86
- package/dist/components/index.js +32 -24
- package/dist/components/layout/article-detail-layout.d.ts +1 -1
- package/dist/components/layout/article-detail-layout.d.ts.map +1 -1
- package/dist/components/layout/page-container.d.ts.map +1 -1
- package/dist/components/layout/title-block.d.ts +2 -2
- package/dist/components/layout/title-block.d.ts.map +1 -1
- package/dist/components/loading/page-layout-skeleton.d.ts.map +1 -1
- package/dist/components/loading/unified-skeleton.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/booking-form.d.ts +4 -4
- package/dist/components/meeting-scheduler/booking-form.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/context-panel.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +127 -127
- package/dist/components/meeting-scheduler/index.d.ts +2 -2
- package/dist/components/meeting-scheduler/index.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.js +50 -50
- package/dist/components/navigation/app-header.d.ts +4 -0
- package/dist/components/navigation/app-header.d.ts.map +1 -1
- package/dist/components/navigation/app-layout-drawer.d.ts.map +1 -1
- package/dist/components/navigation/app-layout-side-panel.d.ts +142 -0
- package/dist/components/navigation/app-layout-side-panel.d.ts.map +1 -0
- package/dist/components/navigation/app-layout.d.ts +11 -1
- package/dist/components/navigation/app-layout.d.ts.map +1 -1
- package/dist/components/navigation/header-mingo-button.d.ts +4 -1
- package/dist/components/navigation/header-mingo-button.d.ts.map +1 -1
- package/dist/components/navigation/index.cjs +13 -13
- package/dist/components/navigation/index.d.ts +1 -0
- package/dist/components/navigation/index.d.ts.map +1 -1
- package/dist/components/navigation/index.js +12 -12
- package/dist/components/navigation/navigation-sidebar.d.ts +8 -1
- package/dist/components/navigation/navigation-sidebar.d.ts.map +1 -1
- package/dist/components/navigation/sliding-sidebar.d.ts.map +1 -1
- package/dist/components/onboarding-guides/index.cjs +14 -14
- package/dist/components/onboarding-guides/index.js +13 -13
- package/dist/components/persistent-filter-controls.d.ts.map +1 -1
- package/dist/components/related-content/index.cjs +7 -7
- package/dist/components/related-content/index.js +6 -6
- package/dist/components/shared/detail-page-skeleton.d.ts.map +1 -1
- package/dist/components/tickets/help-center-create-form.d.ts +4 -4
- package/dist/components/tickets/index.cjs +15 -15
- package/dist/components/tickets/index.js +14 -14
- package/dist/components/ui/announcement-bar-view.d.ts.map +1 -1
- package/dist/components/ui/breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/checkbox-block.d.ts.map +1 -1
- package/dist/components/ui/dashboard-info-card.d.ts +1 -1
- package/dist/components/ui/dashboard-info-card.d.ts.map +1 -1
- package/dist/components/ui/data-table/data-table-body.d.ts +2 -2
- package/dist/components/ui/data-table/data-table-skeleton.d.ts +2 -2
- package/dist/components/ui/data-table/data-table-skeleton.d.ts.map +1 -1
- package/dist/components/ui/data-table/utils.d.ts +2 -2
- package/dist/components/ui/dialog.d.ts.map +1 -1
- package/dist/components/ui/drawer.d.ts +7 -3
- package/dist/components/ui/drawer.d.ts.map +1 -1
- package/dist/components/ui/entity-image.d.ts +2 -2
- package/dist/components/ui/file-manager/index.cjs +36 -36
- package/dist/components/ui/file-manager/index.js +3 -3
- package/dist/components/ui/filter-modal.d.ts.map +1 -1
- package/dist/components/ui/index.cjs +18 -10
- package/dist/components/ui/index.js +17 -9
- package/dist/components/ui/info-card-row.d.ts.map +1 -1
- package/dist/components/ui/menubar.d.ts +1 -1
- package/dist/components/ui/menubar.d.ts.map +1 -1
- package/dist/components/ui/modal-v2.d.ts.map +1 -1
- package/dist/components/ui/modal.d.ts.map +1 -1
- package/dist/components/ui/no-data/no-data-actions.d.ts.map +1 -1
- package/dist/components/ui/no-data/no-data-styles.d.ts +1 -1
- package/dist/components/ui/no-data/no-data-styles.d.ts.map +1 -1
- package/dist/components/ui/page-actions.d.ts.map +1 -1
- package/dist/components/ui/panel-resize-handle.d.ts +25 -0
- package/dist/components/ui/panel-resize-handle.d.ts.map +1 -0
- package/dist/components/ui/sheet.d.ts.map +1 -1
- package/dist/components/ui/table/table-skeleton.d.ts +1 -1
- package/dist/components/ui/table/table-skeleton.d.ts.map +1 -1
- package/dist/hooks/index.cjs +23 -9
- package/dist/hooks/index.js +24 -10
- package/dist/hooks/ui/index.d.ts +1 -0
- package/dist/hooks/ui/index.d.ts.map +1 -1
- package/dist/hooks/ui/use-content-breakpoint.d.ts +32 -0
- package/dist/hooks/ui/use-content-breakpoint.d.ts.map +1 -0
- package/dist/hooks/ui/use-isomorphic-layout-effect.d.ts +2 -2
- package/dist/hooks/ui/use-isomorphic-layout-effect.d.ts.map +1 -1
- package/dist/hooks/ui/use-media-query.d.ts.map +1 -1
- package/dist/hooks/ui/use-resizable-panel-size.d.ts +46 -0
- package/dist/hooks/ui/use-resizable-panel-size.d.ts.map +1 -0
- package/dist/index.cjs +39 -17
- package/dist/index.js +41 -19
- package/dist/styles/layout-steps.d.ts +30 -0
- package/dist/styles/layout-steps.d.ts.map +1 -0
- package/dist/tailwind.config.cjs +36 -11
- package/dist/tailwind.config.js +36 -11
- package/eslint-config/README.md +9 -0
- package/eslint-config/base.js +17 -1
- package/eslint-config/layout-variants.js +57 -0
- package/package.json +3 -1
- package/src/ODS_TOKEN_RULES.md +40 -0
- package/src/components/chat/chat-archive-page.tsx +9 -7
- package/src/components/chat/chat-nav-sidebar.tsx +10 -4
- package/src/components/chat/chat-panel-header.tsx +8 -5
- package/src/components/chat/embeddable-chat.tsx +686 -494
- package/src/components/chat/index.ts +4 -0
- package/src/components/chat/mingo-archive-list.tsx +108 -0
- package/src/components/chat/mingo-chat-header.tsx +104 -0
- package/src/components/chat/mingo-chat-rail.tsx +361 -0
- package/src/components/chat/model-display.tsx +8 -1
- package/src/components/contact/contact-form.tsx +11 -9
- package/src/components/content-loading-container.tsx +4 -2
- package/src/components/docs/doc-viewer.tsx +7 -7
- package/src/components/docs/skeletons.tsx +7 -4
- package/src/components/dynamic-skeleton.tsx +1 -1
- package/src/components/embeds/claude-embed.tsx +1 -1
- package/src/components/embeds/embed-viewer-frame.tsx +4 -4
- package/src/components/embeds/figma-embed.tsx +2 -2
- package/src/components/embeds/google-sheets-viewer.tsx +1 -1
- package/src/components/embeds/pdf-viewer.tsx +3 -3
- package/src/components/empty-state.tsx +6 -6
- package/src/components/faq/faq-section.tsx +2 -2
- package/src/components/faq-accordion.tsx +1 -1
- package/src/components/features/board/board-column-header.tsx +1 -1
- package/src/components/features/command-box.tsx +3 -3
- package/src/components/features/entity-video-section.tsx +2 -2
- package/src/components/features/figma-prototype-viewer.tsx +4 -1
- package/src/components/features/media-gallery-manager.tsx +3 -1
- package/src/components/features/parallax-image-showcase.tsx +9 -6
- package/src/components/features/policy-configuration-panel.tsx +9 -7
- package/src/components/features/provider-button.tsx +1 -1
- package/src/components/features/section-selector.tsx +11 -6
- package/src/components/features/select-button.tsx +4 -4
- package/src/components/features/seo-editor-preview.tsx +2 -2
- package/src/components/features/video-ratio-tabs.tsx +3 -3
- package/src/components/features/waitlist-form.tsx +1 -1
- package/src/components/help-center-pages/trust-center-page.tsx +1 -1
- package/src/components/help-center-pages/trust-center-sections.tsx +14 -14
- package/src/components/icon-display.tsx +1 -1
- package/src/components/layout/article-detail-layout.tsx +4 -2
- package/src/components/layout/list-page-layout.tsx +2 -2
- package/src/components/layout/page-container.tsx +26 -14
- package/src/components/layout/page-heading.tsx +1 -1
- package/src/components/layout/page-layout.tsx +1 -1
- package/src/components/layout/title-block.tsx +13 -13
- package/src/components/loading/card-skeleton.tsx +11 -11
- package/src/components/loading/category-vendor-selector-skeleton.tsx +1 -1
- package/src/components/loading/content-skeleton.tsx +6 -6
- package/src/components/loading/device-card-skeleton.tsx +1 -1
- package/src/components/loading/margin-report-skeleton.tsx +7 -7
- package/src/components/loading/msp-profile-form-skeleton.tsx +3 -3
- package/src/components/loading/organization-card-skeleton.tsx +2 -2
- package/src/components/loading/page-layout-skeleton.tsx +80 -68
- package/src/components/loading/unified-skeleton.tsx +16 -6
- package/src/components/media-carousel.tsx +3 -3
- package/src/components/meeting-scheduler/booking-form.tsx +9 -8
- package/src/components/meeting-scheduler/context-panel.tsx +8 -6
- package/src/components/meeting-scheduler/directory.tsx +4 -4
- package/src/components/meeting-scheduler/index.tsx +15 -15
- package/src/components/meeting-scheduler/slot-picker.tsx +12 -12
- package/src/components/navigation/app-header.tsx +6 -0
- package/src/components/navigation/app-layout-drawer.tsx +14 -237
- package/src/components/navigation/app-layout-side-panel.tsx +594 -0
- package/src/components/navigation/app-layout.tsx +69 -4
- package/src/components/navigation/header-mingo-button.tsx +13 -3
- package/src/components/navigation/index.ts +5 -0
- package/src/components/navigation/navigation-sidebar.tsx +17 -3
- package/src/components/navigation/sliding-sidebar.tsx +2 -1
- package/src/components/pagination.tsx +3 -3
- package/src/components/persistent-filter-controls.tsx +6 -2
- package/src/components/platform/ScriptArguments.tsx +1 -1
- package/src/components/platform/ScriptInfoSection.tsx +4 -4
- package/src/components/shared/article-author-byline.tsx +1 -1
- package/src/components/shared/delivery/delivery-lists.tsx +2 -2
- package/src/components/shared/delivery/delivery-row.tsx +7 -7
- package/src/components/shared/delivery/delivery-table.tsx +3 -3
- package/src/components/shared/detail-page-skeleton.tsx +11 -5
- package/src/components/shared/dev-section/dev-card-row.tsx +6 -6
- package/src/components/shared/dev-section/dev-section-view.tsx +1 -1
- package/src/components/shared/product-release/product-release-card-skeleton.tsx +8 -8
- package/src/components/shared/product-release/product-release-card.tsx +9 -9
- package/src/components/shared/product-release/product-releases-view.tsx +1 -1
- package/src/components/shared/product-release/release-detail-page.tsx +5 -5
- package/src/components/shared/roadmap/roadmap-grid-skeleton.tsx +1 -1
- package/src/components/shared/roadmap/roadmap-grid.tsx +3 -3
- package/src/components/tickets/help-center-card.tsx +1 -1
- package/src/components/tickets/help-center-create-form.tsx +12 -12
- package/src/components/ui/announcement-bar-view.tsx +2 -10
- package/src/components/ui/benefit-card.tsx +18 -18
- package/src/components/ui/brand-association-grid.tsx +4 -4
- package/src/components/ui/breadcrumb.tsx +4 -1
- package/src/components/ui/card.tsx +1 -1
- package/src/components/ui/checkbox-block.tsx +9 -7
- package/src/components/ui/content-loader.tsx +3 -3
- package/src/components/ui/cursor-pagination.tsx +3 -3
- package/src/components/ui/dashboard-info-card.tsx +13 -9
- package/src/components/ui/data-attribution.tsx +2 -2
- package/src/components/ui/data-table/data-table-body.tsx +2 -2
- package/src/components/ui/data-table/data-table-header.tsx +15 -15
- package/src/components/ui/data-table/data-table-skeleton.tsx +6 -6
- package/src/components/ui/data-table/utils.ts +5 -5
- package/src/components/ui/dialog.tsx +4 -1
- package/src/components/ui/drawer.tsx +43 -189
- package/src/components/ui/duration-input.tsx +1 -1
- package/src/components/ui/entity-image.tsx +3 -3
- package/src/components/ui/feature-card.tsx +10 -10
- package/src/components/ui/file-manager/file-manager-action-bar.tsx +1 -1
- package/src/components/ui/file-manager/file-manager.tsx +1 -1
- package/src/components/ui/filter-modal.tsx +8 -1
- package/src/components/ui/highlight-card.tsx +7 -7
- package/src/components/ui/info-card-row.tsx +10 -6
- package/src/components/ui/modal-v2.tsx +7 -2
- package/src/components/ui/modal.tsx +3 -2
- package/src/components/ui/no-data/no-data-actions.tsx +10 -4
- package/src/components/ui/no-data/no-data-styles.ts +1 -1
- package/src/components/ui/no-data/no-data.tsx +1 -1
- package/src/components/ui/organization-card.tsx +1 -1
- package/src/components/ui/page-actions.tsx +34 -5
- package/src/components/ui/panel-resize-handle.tsx +184 -0
- package/src/components/ui/progress-bar.tsx +2 -2
- package/src/components/ui/query-report-table/query-report-table.tsx +1 -1
- package/src/components/ui/search-input.tsx +2 -2
- package/src/components/ui/service-card.tsx +2 -2
- package/src/components/ui/sheet.tsx +2 -1
- package/src/components/ui/skeleton.tsx +3 -3
- package/src/components/ui/stacked-rows-panel.tsx +4 -4
- package/src/components/ui/tab-navigation.tsx +2 -2
- package/src/components/ui/tab-selector.tsx +2 -2
- package/src/components/ui/table/table-header.tsx +3 -3
- package/src/components/ui/table/table-skeleton.tsx +3 -3
- package/src/components/ui/table/utils.ts +5 -5
- package/src/components/ui/tag-search-input.tsx +3 -3
- package/src/components/ui/tags-manager.tsx +5 -5
- package/src/components/ui/test-run.tsx +2 -2
- package/src/components/ui/ticket-info-section.tsx +1 -1
- package/src/components/ui/ticket-notes-section.tsx +1 -1
- package/src/components/ui/ticket-status-config-row.tsx +15 -15
- package/src/hooks/ui/index.ts +1 -0
- package/src/hooks/ui/use-content-breakpoint.ts +58 -0
- package/src/hooks/ui/use-media-query.ts +3 -2
- package/src/hooks/ui/use-resizable-panel-size.ts +114 -0
- package/src/styles/index.css +2 -0
- package/src/styles/layout-steps.ts +14 -0
- package/src/styles/ods-colors.css +15 -0
- package/src/styles/ods-content-area-tokens.css +27 -0
- package/src/styles/ods-content-area.css +31 -0
- package/src/styles/ods-effects.css +4 -2
- package/src/styles/ods-responsive-tokens.css +14 -4
- package/tailwind.config.ts +42 -7
|
@@ -23,10 +23,10 @@ import {
|
|
|
23
23
|
useLocalStorage,
|
|
24
24
|
useNotificationPermission,
|
|
25
25
|
useToast
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-IHU5ANUY.js";
|
|
27
27
|
import {
|
|
28
28
|
Pagination
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-UT4YHQZW.js";
|
|
30
30
|
import {
|
|
31
31
|
Checkbox
|
|
32
32
|
} from "./chunk-PLWMIU72.js";
|
|
@@ -60,6 +60,7 @@ import {
|
|
|
60
60
|
ModalTwoColumn,
|
|
61
61
|
NO_BROKEN_LINKS,
|
|
62
62
|
OVERLAY_BACKDROP_CLASS,
|
|
63
|
+
PanelResizeHandle,
|
|
63
64
|
ScrollFadeOverlay,
|
|
64
65
|
ScrollShadow,
|
|
65
66
|
SimpleMarkdownRenderer,
|
|
@@ -94,12 +95,12 @@ import {
|
|
|
94
95
|
useCaptions,
|
|
95
96
|
useCollapsible,
|
|
96
97
|
useIsHydrated,
|
|
98
|
+
useResizablePanelSize,
|
|
97
99
|
useScrollFade
|
|
98
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-2JDVL7UV.js";
|
|
99
101
|
import {
|
|
100
102
|
NEAR_VIEWPORT_ROOT_MARGIN,
|
|
101
103
|
ToolIcon,
|
|
102
|
-
clamp,
|
|
103
104
|
createHeadingIdDeduper,
|
|
104
105
|
scanHeadings,
|
|
105
106
|
slugifyHeadingBase,
|
|
@@ -108,11 +109,8 @@ import {
|
|
|
108
109
|
useAutoplay,
|
|
109
110
|
useDebounce,
|
|
110
111
|
useInView,
|
|
111
|
-
useLgUp,
|
|
112
|
-
useMdUp,
|
|
113
|
-
useMediaQuery,
|
|
114
112
|
useNearViewport
|
|
115
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-WUJNYGO2.js";
|
|
116
114
|
import {
|
|
117
115
|
usePathname,
|
|
118
116
|
useRouter,
|
|
@@ -264,19 +262,25 @@ import {
|
|
|
264
262
|
mediaNameKey,
|
|
265
263
|
personFirstName,
|
|
266
264
|
personInitials
|
|
267
|
-
} from "./chunk-
|
|
265
|
+
} from "./chunk-CH5232HV.js";
|
|
268
266
|
import {
|
|
269
267
|
next_image_default
|
|
270
268
|
} from "./chunk-FBZMAPWO.js";
|
|
271
269
|
import {
|
|
270
|
+
ViewportBreakpoints,
|
|
271
|
+
breakpoints,
|
|
272
272
|
createLocalStorageAdapter,
|
|
273
273
|
embedAuthedFetch,
|
|
274
274
|
subscribeEmbedCredentialChange,
|
|
275
275
|
useAuthedImageSrc,
|
|
276
|
+
useContentLgUp,
|
|
277
|
+
useContentMdUp,
|
|
276
278
|
useImageEdgeColor,
|
|
277
279
|
useIsTruncated,
|
|
278
|
-
useIsomorphicLayoutEffect
|
|
279
|
-
|
|
280
|
+
useIsomorphicLayoutEffect,
|
|
281
|
+
useMdUp,
|
|
282
|
+
useMediaQuery
|
|
283
|
+
} from "./chunk-NDESEPW5.js";
|
|
280
284
|
import {
|
|
281
285
|
OpenFrameLogo
|
|
282
286
|
} from "./chunk-O43V3EOS.js";
|
|
@@ -293,7 +297,7 @@ import {
|
|
|
293
297
|
Label,
|
|
294
298
|
RequiredMark,
|
|
295
299
|
Skeleton
|
|
296
|
-
} from "./chunk-
|
|
300
|
+
} from "./chunk-FLKJYMVB.js";
|
|
297
301
|
import {
|
|
298
302
|
CheckboxCheckmarkIcon,
|
|
299
303
|
SearchIcon
|
|
@@ -512,7 +516,6 @@ AllowedDomainsInput.displayName = "AllowedDomainsInput";
|
|
|
512
516
|
|
|
513
517
|
// src/components/ui/announcement-bar-view.tsx
|
|
514
518
|
import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
515
|
-
var MD_QUERY = "(min-width: 800px)";
|
|
516
519
|
function AnnouncementBarView({
|
|
517
520
|
startAdornment,
|
|
518
521
|
title,
|
|
@@ -524,7 +527,7 @@ function AnnouncementBarView({
|
|
|
524
527
|
style
|
|
525
528
|
}) {
|
|
526
529
|
const handleContentClick = onContentClick ? () => {
|
|
527
|
-
if (!window.matchMedia(
|
|
530
|
+
if (!window.matchMedia(breakpoints.md).matches) onContentClick();
|
|
528
531
|
} : void 0;
|
|
529
532
|
return /* @__PURE__ */ jsxs2("div", { className: cn("flex min-h-11 w-full max-w-full items-center", className), style, children: [
|
|
530
533
|
/* @__PURE__ */ jsxs2(
|
|
@@ -1291,10 +1294,10 @@ var CheckboxBlock = forwardRef4(
|
|
|
1291
1294
|
className: cn(
|
|
1292
1295
|
"flex w-full items-center gap-[var(--spacing-system-s)] rounded-md ring-1 ring-inset",
|
|
1293
1296
|
// Trailing content stacks full-width below the text on mobile.
|
|
1294
|
-
trailing && "flex-wrap md:flex-nowrap",
|
|
1297
|
+
trailing && "flex-wrap content-md:flex-nowrap",
|
|
1295
1298
|
"p-[var(--spacing-system-sf)]",
|
|
1296
|
-
!description && "min-h-[44px] md:min-h-[48px]",
|
|
1297
|
-
description && "min-h-[60px] md:min-h-[64px]",
|
|
1299
|
+
!description && "min-h-[44px] content-md:min-h-[48px]",
|
|
1300
|
+
description && "min-h-[60px] content-md:min-h-[64px]",
|
|
1298
1301
|
"bg-ods-card ring-ods-border",
|
|
1299
1302
|
"cursor-pointer transition-colors duration-200",
|
|
1300
1303
|
// States mirror Input: hover / active move the BACKGROUND, the ring
|
|
@@ -1323,7 +1326,7 @@ var CheckboxBlock = forwardRef4(
|
|
|
1323
1326
|
"aria-required": required || void 0,
|
|
1324
1327
|
"aria-invalid": error ? true : void 0,
|
|
1325
1328
|
className: cn(
|
|
1326
|
-
"h-4 w-4 shrink-0 md:h-6 md:w-6",
|
|
1329
|
+
"h-4 w-4 shrink-0 content-md:h-6 content-md:w-6",
|
|
1327
1330
|
"rounded-[6px] border-2",
|
|
1328
1331
|
error ? "border-ods-error" : "border-[var(--color-border-strong)]",
|
|
1329
1332
|
"bg-ods-card",
|
|
@@ -1335,7 +1338,7 @@ var CheckboxBlock = forwardRef4(
|
|
|
1335
1338
|
"disabled:data-[state=unchecked]:border-ods-border disabled:data-[state=unchecked]:bg-ods-bg",
|
|
1336
1339
|
"data-[state=checked]:border-[var(--color-accent-primary)] data-[state=checked]:bg-[var(--color-accent-primary)]"
|
|
1337
1340
|
),
|
|
1338
|
-
children: /* @__PURE__ */ jsx9(CheckboxPrimitive.Indicator, { className: "flex items-center justify-center text-ods-text-on-accent", children: /* @__PURE__ */ jsx9(CheckboxCheckmarkIcon, { className: "h-2 w-2 md:h-2.5 md:w-2.5" }) })
|
|
1341
|
+
children: /* @__PURE__ */ jsx9(CheckboxPrimitive.Indicator, { className: "flex items-center justify-center text-ods-text-on-accent", children: /* @__PURE__ */ jsx9(CheckboxCheckmarkIcon, { className: "h-2 w-2 content-md:h-2.5 content-md:w-2.5" }) })
|
|
1339
1342
|
}
|
|
1340
1343
|
),
|
|
1341
1344
|
/* @__PURE__ */ jsxs5(
|
|
@@ -1353,7 +1356,7 @@ var CheckboxBlock = forwardRef4(
|
|
|
1353
1356
|
"span",
|
|
1354
1357
|
{
|
|
1355
1358
|
className: cn(
|
|
1356
|
-
"!leading-5 text-h4 md:!leading-6",
|
|
1359
|
+
"!leading-5 text-h4 content-md:!leading-6",
|
|
1357
1360
|
"select-none text-ods-text-primary",
|
|
1358
1361
|
truncateLabel ? "block truncate" : "break-words"
|
|
1359
1362
|
),
|
|
@@ -1367,7 +1370,7 @@ var CheckboxBlock = forwardRef4(
|
|
|
1367
1370
|
]
|
|
1368
1371
|
}
|
|
1369
1372
|
),
|
|
1370
|
-
trailing && /* @__PURE__ */ jsx9("div", { className: "flex w-full shrink-0 items-center md:ml-auto md:w-auto", children: trailing })
|
|
1373
|
+
trailing && /* @__PURE__ */ jsx9("div", { className: "flex w-full shrink-0 items-center content-md:ml-auto content-md:w-auto", children: trailing })
|
|
1371
1374
|
]
|
|
1372
1375
|
}
|
|
1373
1376
|
),
|
|
@@ -2587,7 +2590,7 @@ function DurationInput({ value, onChange, invalid, className }) {
|
|
|
2587
2590
|
}
|
|
2588
2591
|
},
|
|
2589
2592
|
className: cn(
|
|
2590
|
-
"flex h-11 w-full items-center gap-[var(--spacing-system-xxs)] rounded-md border border-ods-border bg-ods-card px-[var(--spacing-system-sf)] transition-colors duration-200 md:h-12",
|
|
2593
|
+
"flex h-11 w-full items-center gap-[var(--spacing-system-xxs)] rounded-md border border-ods-border bg-ods-card px-[var(--spacing-system-sf)] transition-colors duration-200 content-md:h-12",
|
|
2591
2594
|
"cursor-text focus-within:border-ods-accent",
|
|
2592
2595
|
invalid && "border-ods-error focus-within:border-ods-error",
|
|
2593
2596
|
className
|
|
@@ -2727,7 +2730,7 @@ var ProgressBar = ({
|
|
|
2727
2730
|
mobileHeight = 8,
|
|
2728
2731
|
inverted = false
|
|
2729
2732
|
}) => {
|
|
2730
|
-
const isMdUp =
|
|
2733
|
+
const isMdUp = useContentMdUp() ?? true;
|
|
2731
2734
|
const effectiveSegmentWidth = isMdUp ? segmentWidth : mobileSegmentWidth;
|
|
2732
2735
|
const effectiveHeight = isMdUp ? height : mobileHeight;
|
|
2733
2736
|
const containerRef = useRef4(null);
|
|
@@ -3418,7 +3421,7 @@ import React2 from "react";
|
|
|
3418
3421
|
|
|
3419
3422
|
// src/components/ui/no-data/no-data-styles.ts
|
|
3420
3423
|
import { cva } from "class-variance-authority";
|
|
3421
|
-
var noDataIconClasses = "inline-flex shrink-0 items-center justify-center [&_svg]:h-4 [&_svg]:w-4 md:[&_svg]:h-6 md:[&_svg]:w-6";
|
|
3424
|
+
var noDataIconClasses = "inline-flex shrink-0 items-center justify-center [&_svg]:h-4 [&_svg]:w-4 content-md:[&_svg]:h-6 content-md:[&_svg]:w-6";
|
|
3422
3425
|
var noDataActionsVariants = cva("overflow-hidden rounded-md", {
|
|
3423
3426
|
variants: {
|
|
3424
3427
|
variant: {
|
|
@@ -3437,13 +3440,13 @@ var NoDataAction = React2.forwardRef(function NoDataActionImpl({ icon, label, ch
|
|
|
3437
3440
|
ref,
|
|
3438
3441
|
className: cn(
|
|
3439
3442
|
"flex flex-1 items-center gap-[var(--spacing-system-s)] p-[var(--spacing-system-m)] text-ods-text-secondary",
|
|
3440
|
-
"md:w-[224px] md:flex-none md:flex-col md:items-start md:gap-[var(--spacing-system-xs)]",
|
|
3443
|
+
"content-md:w-[224px] content-md:flex-none content-md:flex-col content-md:items-start content-md:gap-[var(--spacing-system-xs)]",
|
|
3441
3444
|
className
|
|
3442
3445
|
),
|
|
3443
3446
|
...props,
|
|
3444
3447
|
children: [
|
|
3445
3448
|
icon && /* @__PURE__ */ jsx25("span", { className: cn(noDataIconClasses, "text-ods-text-primary"), children: icon }),
|
|
3446
|
-
/* @__PURE__ */ jsx25("span", { className: "min-w-0 flex-1 break-words text-h6 md:w-full md:flex-none", children: label ?? children })
|
|
3449
|
+
/* @__PURE__ */ jsx25("span", { className: "min-w-0 flex-1 break-words text-h6 content-md:w-full content-md:flex-none", children: label ?? children })
|
|
3447
3450
|
]
|
|
3448
3451
|
}
|
|
3449
3452
|
);
|
|
@@ -3455,14 +3458,18 @@ var NoDataActions = React2.forwardRef(function NoDataActionsImpl({ actions, vari
|
|
|
3455
3458
|
"div",
|
|
3456
3459
|
{
|
|
3457
3460
|
ref,
|
|
3458
|
-
className: cn(
|
|
3461
|
+
className: cn(
|
|
3462
|
+
noDataActionsVariants({ variant }),
|
|
3463
|
+
"flex w-full flex-col content-md:w-auto content-md:flex-row",
|
|
3464
|
+
className
|
|
3465
|
+
),
|
|
3459
3466
|
...props,
|
|
3460
3467
|
children: blocks.map((block, index) => /* @__PURE__ */ jsxs18(React2.Fragment, { children: [
|
|
3461
3468
|
index > 0 && /* @__PURE__ */ jsx25(
|
|
3462
3469
|
"div",
|
|
3463
3470
|
{
|
|
3464
3471
|
"aria-hidden": "true",
|
|
3465
|
-
className: "shrink-0 self-stretch border-t border-ods-border md:border-l md:border-t-0"
|
|
3472
|
+
className: "shrink-0 self-stretch border-t border-ods-border content-md:border-l content-md:border-t-0"
|
|
3466
3473
|
}
|
|
3467
3474
|
),
|
|
3468
3475
|
block
|
|
@@ -3521,7 +3528,7 @@ var NoData = React4.forwardRef(function NoDataImpl({
|
|
|
3521
3528
|
leftIcon: buttonIcon,
|
|
3522
3529
|
onClick: onButtonClick,
|
|
3523
3530
|
...buttonProps,
|
|
3524
|
-
className: cn("w-full md:w-auto", buttonProps?.className),
|
|
3531
|
+
className: cn("w-full content-md:w-auto", buttonProps?.className),
|
|
3525
3532
|
children: buttonLabel
|
|
3526
3533
|
}
|
|
3527
3534
|
) : null);
|
|
@@ -4181,7 +4188,7 @@ function TagsManager({
|
|
|
4181
4188
|
"label",
|
|
4182
4189
|
{
|
|
4183
4190
|
className: cn(
|
|
4184
|
-
"flex min-h-11 w-full cursor-text flex-wrap items-center gap-2 rounded-[6px] border px-3 py-1 md:min-h-12",
|
|
4191
|
+
"flex min-h-11 w-full cursor-text flex-wrap items-center gap-2 rounded-[6px] border px-3 py-1 content-md:min-h-12",
|
|
4185
4192
|
"transition-colors duration-200",
|
|
4186
4193
|
"border-ods-border bg-ods-card",
|
|
4187
4194
|
"group",
|
|
@@ -4197,7 +4204,7 @@ function TagsManager({
|
|
|
4197
4204
|
"span",
|
|
4198
4205
|
{
|
|
4199
4206
|
className: cn(
|
|
4200
|
-
"flex-shrink-0 text-ods-text-secondary transition-colors duration-200 [&_svg]:size-4 md:[&_svg]:size-6",
|
|
4207
|
+
"flex-shrink-0 text-ods-text-secondary transition-colors duration-200 [&_svg]:size-4 content-md:[&_svg]:size-6",
|
|
4201
4208
|
open && "text-ods-accent"
|
|
4202
4209
|
),
|
|
4203
4210
|
children: /* @__PURE__ */ jsx34(SearchIcon, {})
|
|
@@ -4248,7 +4255,7 @@ function TagsManager({
|
|
|
4248
4255
|
{
|
|
4249
4256
|
type: "button",
|
|
4250
4257
|
onClick: handleClearAll,
|
|
4251
|
-
className: "flex flex-shrink-0 items-center justify-center transition-opacity hover:opacity-70 [&_svg]:size-4 md:[&_svg]:size-6",
|
|
4258
|
+
className: "flex flex-shrink-0 items-center justify-center transition-opacity hover:opacity-70 [&_svg]:size-4 content-md:[&_svg]:size-6",
|
|
4252
4259
|
"aria-label": "Clear all tags",
|
|
4253
4260
|
children: /* @__PURE__ */ jsx34(XmarkCircleIcon, { className: "text-ods-text-secondary" })
|
|
4254
4261
|
}
|
|
@@ -4328,7 +4335,7 @@ function TagsManager({
|
|
|
4328
4335
|
"aria-selected": isSelected,
|
|
4329
4336
|
tabIndex: 0,
|
|
4330
4337
|
className: cn(
|
|
4331
|
-
"flex h-11 cursor-pointer items-center border-b border-ods-border px-4 transition-colors last:border-b-0 md:h-12",
|
|
4338
|
+
"flex h-11 cursor-pointer items-center border-b border-ods-border px-4 transition-colors last:border-b-0 content-md:h-12",
|
|
4332
4339
|
"text-h4",
|
|
4333
4340
|
isSelected ? "text-ods-accent" : "text-ods-text-primary",
|
|
4334
4341
|
"group/item hover:bg-ods-bg-hover"
|
|
@@ -4386,7 +4393,7 @@ function TagsManager({
|
|
|
4386
4393
|
"aria-selected": false,
|
|
4387
4394
|
tabIndex: 0,
|
|
4388
4395
|
className: cn(
|
|
4389
|
-
"flex h-11 cursor-pointer items-center gap-2 px-4 transition-colors text-h4 md:h-12",
|
|
4396
|
+
"flex h-11 cursor-pointer items-center gap-2 px-4 transition-colors text-h4 content-md:h-12",
|
|
4390
4397
|
"hover:bg-ods-bg-hover",
|
|
4391
4398
|
isCreating && "pointer-events-none opacity-50"
|
|
4392
4399
|
),
|
|
@@ -4691,7 +4698,7 @@ var DialogContent = forwardRef13(({ className, children, ...props }, ref) => /*
|
|
|
4691
4698
|
),
|
|
4692
4699
|
...props,
|
|
4693
4700
|
children: [
|
|
4694
|
-
/* @__PURE__ */ jsx37("div", { className: "grid min-h-0 gap-[var(--spacing-system-mf)] overflow-y-auto", children }),
|
|
4701
|
+
/* @__PURE__ */ jsx37("div", { className: "grid min-h-0 gap-[var(--spacing-system-mf)] overflow-y-auto", children: /* @__PURE__ */ jsx37(ViewportBreakpoints, { children }) }),
|
|
4695
4702
|
/* @__PURE__ */ jsxs28(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
4696
4703
|
/* @__PURE__ */ jsx37(X3, { className: "h-4 w-4" }),
|
|
4697
4704
|
/* @__PURE__ */ jsx37("span", { className: "sr-only", children: "Close" })
|
|
@@ -5097,7 +5104,7 @@ var SheetContent = forwardRef15(
|
|
|
5097
5104
|
({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxs32(SheetPortal, { children: [
|
|
5098
5105
|
/* @__PURE__ */ jsx43(SheetOverlay, {}),
|
|
5099
5106
|
/* @__PURE__ */ jsxs32(SheetPrimitive.Content, { ref, className: cn(sheetVariants({ side }), className), ...props, children: [
|
|
5100
|
-
children,
|
|
5107
|
+
/* @__PURE__ */ jsx43(ViewportBreakpoints, { children }),
|
|
5101
5108
|
/* @__PURE__ */ jsxs32(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
|
|
5102
5109
|
/* @__PURE__ */ jsx43(X4, { className: "h-4 w-4" }),
|
|
5103
5110
|
/* @__PURE__ */ jsx43("span", { className: "sr-only", children: "Close" })
|
|
@@ -5169,7 +5176,10 @@ var BreadcrumbList = forwardRef17(({ className, ...props }, ref) => /* @__PURE__
|
|
|
5169
5176
|
"ol",
|
|
5170
5177
|
{
|
|
5171
5178
|
ref,
|
|
5172
|
-
className: cn(
|
|
5179
|
+
className: cn(
|
|
5180
|
+
"flex flex-wrap items-center gap-1.5 break-words text-ods-text-muted text-h6 content-md:gap-2.5",
|
|
5181
|
+
className
|
|
5182
|
+
),
|
|
5173
5183
|
...props
|
|
5174
5184
|
}
|
|
5175
5185
|
));
|
|
@@ -5682,7 +5692,7 @@ var TabBar = memo(function TabBarImpl({
|
|
|
5682
5692
|
tab.icon,
|
|
5683
5693
|
{
|
|
5684
5694
|
className: cn(
|
|
5685
|
-
"h-4 w-4 transition-colors md:h-6 md:w-6",
|
|
5695
|
+
"h-4 w-4 transition-colors content-md:h-6 content-md:w-6",
|
|
5686
5696
|
isActive ? "text-ods-accent" : "text-ods-text-secondary"
|
|
5687
5697
|
)
|
|
5688
5698
|
}
|
|
@@ -5693,7 +5703,7 @@ var TabBar = memo(function TabBarImpl({
|
|
|
5693
5703
|
// the label (there's no icon corner to anchor to).
|
|
5694
5704
|
/* @__PURE__ */ jsx50(StatusDot, { indicator: tab.indicator, className: "shrink-0" })
|
|
5695
5705
|
) : null,
|
|
5696
|
-
tab.sublabel ? /* @__PURE__ */ jsxs38("span", { className: "flex min-w-0 flex-col items-start text-left md:flex-row md:items-baseline md:gap-[var(--spacing-system-xsf)]", children: [
|
|
5706
|
+
tab.sublabel ? /* @__PURE__ */ jsxs38("span", { className: "flex min-w-0 flex-col items-start text-left content-md:flex-row content-md:items-baseline content-md:gap-[var(--spacing-system-xsf)]", children: [
|
|
5697
5707
|
/* @__PURE__ */ jsx50(
|
|
5698
5708
|
"span",
|
|
5699
5709
|
{
|
|
@@ -6314,12 +6324,12 @@ function EmbedViewerFrame({
|
|
|
6314
6324
|
isFullscreen && "overflow-auto bg-ods-bg p-[var(--spacing-system-mf)]"
|
|
6315
6325
|
),
|
|
6316
6326
|
children: [
|
|
6317
|
-
/* @__PURE__ */ jsxs42("div", { className: "flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between", children: [
|
|
6327
|
+
/* @__PURE__ */ jsxs42("div", { className: "flex flex-col gap-3 content-sm:flex-row content-sm:items-center content-sm:justify-between", children: [
|
|
6318
6328
|
/* @__PURE__ */ jsxs42("div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
6319
6329
|
icon,
|
|
6320
6330
|
titleVariant === "h3" ? /* @__PURE__ */ jsx57("h2", { className: "truncate text-ods-text-primary text-h3", children: title }) : /* @__PURE__ */ jsx57("span", { className: "truncate font-semibold text-ods-text-primary text-h6", children: title })
|
|
6321
6331
|
] }),
|
|
6322
|
-
fullscreenControl && src ? /* @__PURE__ */ jsxs42("div", { className: "flex flex-col gap-[var(--spacing-system-xsf)] sm:flex-row sm:items-center", children: [
|
|
6332
|
+
fullscreenControl && src ? /* @__PURE__ */ jsxs42("div", { className: "flex flex-col gap-[var(--spacing-system-xsf)] content-sm:flex-row content-sm:items-center", children: [
|
|
6323
6333
|
actions,
|
|
6324
6334
|
/* @__PURE__ */ jsx57(
|
|
6325
6335
|
Button,
|
|
@@ -6329,7 +6339,7 @@ function EmbedViewerFrame({
|
|
|
6329
6339
|
onClick: toggleFullscreen,
|
|
6330
6340
|
"aria-label": isFullscreen ? "Exit fullscreen" : "Enter fullscreen",
|
|
6331
6341
|
leftIcon: isFullscreen ? /* @__PURE__ */ jsx57(Minimize2, { className: "h-4 w-4" }) : /* @__PURE__ */ jsx57(Maximize2, { className: "h-4 w-4" }),
|
|
6332
|
-
className: "w-full sm:w-auto",
|
|
6342
|
+
className: "w-full content-sm:w-auto",
|
|
6333
6343
|
children: isFullscreen ? "Exit fullscreen" : "Fullscreen"
|
|
6334
6344
|
}
|
|
6335
6345
|
)
|
|
@@ -6404,7 +6414,7 @@ function ClaudeEmbed({ url, kind = "artifact", title, height, loading = "lazy" }
|
|
|
6404
6414
|
openInNewTab: true,
|
|
6405
6415
|
leftIcon: /* @__PURE__ */ jsx58(ClaudeIcon, { className: "h-4 w-4" }),
|
|
6406
6416
|
rightIcon: /* @__PURE__ */ jsx58(ExternalLink, { className: "h-4 w-4" }),
|
|
6407
|
-
className: "w-full sm:w-auto",
|
|
6417
|
+
className: "w-full content-sm:w-auto",
|
|
6408
6418
|
children: "Open in Claude"
|
|
6409
6419
|
}
|
|
6410
6420
|
),
|
|
@@ -6483,7 +6493,7 @@ function FigmaEmbed({ url, title, height, loading = "lazy" }) {
|
|
|
6483
6493
|
icon: /* @__PURE__ */ jsx59(FigmaIcon, { className: "h-5 w-5 shrink-0" }),
|
|
6484
6494
|
title: heading,
|
|
6485
6495
|
titleVariant: "h6",
|
|
6486
|
-
actions: /* @__PURE__ */ jsxs43("div", { className: "flex flex-col gap-2 sm:flex-row sm:items-center", children: [
|
|
6496
|
+
actions: /* @__PURE__ */ jsxs43("div", { className: "flex flex-col gap-2 content-sm:flex-row content-sm:items-center", children: [
|
|
6487
6497
|
isSlides && embedSrc && /* @__PURE__ */ jsx59(SlidesViewToggle, { view, onChange: setView }),
|
|
6488
6498
|
originalUrl && /* @__PURE__ */ jsx59(
|
|
6489
6499
|
Button,
|
|
@@ -6494,7 +6504,7 @@ function FigmaEmbed({ url, title, height, loading = "lazy" }) {
|
|
|
6494
6504
|
openInNewTab: true,
|
|
6495
6505
|
leftIcon: /* @__PURE__ */ jsx59(FigmaIcon, { className: "h-4 w-4" }),
|
|
6496
6506
|
rightIcon: /* @__PURE__ */ jsx59(ExternalLink2, { className: "h-4 w-4" }),
|
|
6497
|
-
className: "w-full sm:w-auto",
|
|
6507
|
+
className: "w-full content-sm:w-auto",
|
|
6498
6508
|
children: "Open in Figma"
|
|
6499
6509
|
}
|
|
6500
6510
|
)
|
|
@@ -7348,7 +7358,7 @@ var MediaCarousel = memo2(function MediaCarouselImpl({
|
|
|
7348
7358
|
{
|
|
7349
7359
|
variant: "transparent",
|
|
7350
7360
|
onClick: prevSlide,
|
|
7351
|
-
className: "absolute left-3 top-1/2 z-10 h-auto -translate-y-1/2 rounded-full bg-black/50 p-2 text-ods-text-on-dark opacity-0 transition-opacity duration-200 hover:bg-black/70 group-hover:opacity-100 md:h-auto",
|
|
7361
|
+
className: "absolute left-3 top-1/2 z-10 h-auto -translate-y-1/2 rounded-full bg-black/50 p-2 text-ods-text-on-dark opacity-0 transition-opacity duration-200 hover:bg-black/70 group-hover:opacity-100 content-md:h-auto",
|
|
7352
7362
|
"aria-label": "Previous media",
|
|
7353
7363
|
children: /* @__PURE__ */ jsx64(ChevronLeftIcon, {})
|
|
7354
7364
|
}
|
|
@@ -7358,7 +7368,7 @@ var MediaCarousel = memo2(function MediaCarouselImpl({
|
|
|
7358
7368
|
{
|
|
7359
7369
|
variant: "transparent",
|
|
7360
7370
|
onClick: nextSlide,
|
|
7361
|
-
className: "absolute right-3 top-1/2 z-10 h-auto -translate-y-1/2 rounded-full bg-black/50 p-2 text-ods-text-on-dark opacity-0 transition-opacity duration-200 hover:bg-black/70 group-hover:opacity-100 md:h-auto",
|
|
7371
|
+
className: "absolute right-3 top-1/2 z-10 h-auto -translate-y-1/2 rounded-full bg-black/50 p-2 text-ods-text-on-dark opacity-0 transition-opacity duration-200 hover:bg-black/70 group-hover:opacity-100 content-md:h-auto",
|
|
7362
7372
|
"aria-label": "Next media",
|
|
7363
7373
|
children: /* @__PURE__ */ jsx64(ChevronRightIcon, {})
|
|
7364
7374
|
}
|
|
@@ -7376,7 +7386,7 @@ var MediaCarousel = memo2(function MediaCarouselImpl({
|
|
|
7376
7386
|
"aria-current": isActive ? "true" : void 0,
|
|
7377
7387
|
"aria-label": `Go to slide ${index + 1}`,
|
|
7378
7388
|
onClick: () => selectSlide(index),
|
|
7379
|
-
className: "flex h-6 w-6 shrink-0 items-center justify-center rounded-full p-0 md:h-6",
|
|
7389
|
+
className: "flex h-6 w-6 shrink-0 items-center justify-center rounded-full p-0 content-md:h-6",
|
|
7380
7390
|
children: /* @__PURE__ */ jsx64(
|
|
7381
7391
|
"span",
|
|
7382
7392
|
{
|
|
@@ -8509,11 +8519,11 @@ var CELL_ITEMS_ALIGN = {
|
|
|
8509
8519
|
right: "items-end"
|
|
8510
8520
|
};
|
|
8511
8521
|
var HIDE_CLASS = {
|
|
8512
|
-
md: "hidden md:flex",
|
|
8513
|
-
lg: "hidden lg:flex",
|
|
8514
|
-
xl: "hidden xl:flex"
|
|
8522
|
+
md: "hidden content-md:flex",
|
|
8523
|
+
lg: "hidden content-lg:flex",
|
|
8524
|
+
xl: "hidden content-xl:flex"
|
|
8515
8525
|
};
|
|
8516
|
-
var ROW_CLASS = "flex items-center gap-[var(--spacing-system-m)] px-[var(--spacing-system-m)] min-h-14 md:min-h-20 border-b border-ods-border last:border-b-0";
|
|
8526
|
+
var ROW_CLASS = "flex items-center gap-[var(--spacing-system-m)] px-[var(--spacing-system-m)] min-h-14 content-md:min-h-20 border-b border-ods-border last:border-b-0";
|
|
8517
8527
|
function CellValue({ column }) {
|
|
8518
8528
|
const valueNode = /* @__PURE__ */ jsx70(
|
|
8519
8529
|
"div",
|
|
@@ -9403,111 +9413,119 @@ function FilterModal({
|
|
|
9403
9413
|
const hasFilterGroups = filterGroups.length > 0;
|
|
9404
9414
|
const hasTagFilter = !!tagFilterKeys && tagFilterKeys.length > 0 && !!onTagsChange;
|
|
9405
9415
|
const isEmpty = !isLoading && !hasSort && !hasFilterGroups && !hasTagFilter && !dateFilter;
|
|
9406
|
-
return /* @__PURE__ */ jsxs60(
|
|
9407
|
-
|
|
9408
|
-
|
|
9409
|
-
|
|
9410
|
-
|
|
9411
|
-
|
|
9412
|
-
|
|
9413
|
-
|
|
9414
|
-
|
|
9415
|
-
|
|
9416
|
-
|
|
9417
|
-
|
|
9418
|
-
|
|
9419
|
-
|
|
9420
|
-
|
|
9421
|
-
|
|
9422
|
-
|
|
9423
|
-
|
|
9424
|
-
|
|
9425
|
-
|
|
9426
|
-
|
|
9427
|
-
|
|
9428
|
-
|
|
9429
|
-
|
|
9430
|
-
|
|
9431
|
-
|
|
9432
|
-
]
|
|
9433
|
-
},
|
|
9434
|
-
row
|
|
9435
|
-
)) })
|
|
9436
|
-
] }, group)) }) : isEmpty ? /* @__PURE__ */ jsxs60("div", { className: "flex h-[240px] flex-col items-center justify-center gap-6 p-6", children: [
|
|
9437
|
-
/* @__PURE__ */ jsx79(Filter02Icon, { className: "text-ods-text-secondary", size: 24 }),
|
|
9438
|
-
/* @__PURE__ */ jsxs60("div", { className: "flex flex-col items-center text-center text-ods-text-secondary", children: [
|
|
9439
|
-
/* @__PURE__ */ jsx79("p", { className: "text-h4", children: emptyStateTitle }),
|
|
9440
|
-
/* @__PURE__ */ jsx79("p", { className: "text-h6", children: emptyStateDescription })
|
|
9441
|
-
] })
|
|
9442
|
-
] }) : /* @__PURE__ */ jsxs60(Fragment12, { children: [
|
|
9443
|
-
sortConfig && sortConfig.columns.length > 0 && /* @__PURE__ */ jsxs60("div", { className: "flex flex-col gap-1", children: [
|
|
9444
|
-
/* @__PURE__ */ jsx79("span", { className: "text-ods-text-secondary text-h5", children: sortConfig.title || "Sort By" }),
|
|
9445
|
-
/* @__PURE__ */ jsx79("div", { className: "overflow-hidden rounded-md border border-ods-border", children: sortConfig.columns.map((column) => /* @__PURE__ */ jsx79(
|
|
9446
|
-
SortColumnItem,
|
|
9447
|
-
{
|
|
9448
|
-
column,
|
|
9449
|
-
currentDirection: getColumnDirection(column.key),
|
|
9450
|
-
onSort: (direction) => onSort?.(column.key, direction),
|
|
9451
|
-
onClear: onSortClear ? () => onSortClear(column.key) : void 0
|
|
9452
|
-
},
|
|
9453
|
-
column.key
|
|
9454
|
-
)) })
|
|
9455
|
-
] }),
|
|
9456
|
-
filterGroups.map((group) => {
|
|
9457
|
-
if (group.options.length === 0) return null;
|
|
9458
|
-
const groupSelection = selectedFilters[group.id] || [];
|
|
9459
|
-
return /* @__PURE__ */ jsxs60("div", { className: "flex flex-col gap-1", children: [
|
|
9460
|
-
/* @__PURE__ */ jsx79("span", { className: "text-ods-text-secondary text-h5", children: group.title }),
|
|
9461
|
-
/* @__PURE__ */ jsx79("div", { className: "overflow-hidden rounded-md border border-ods-border", children: group.options.map((option) => /* @__PURE__ */ jsx79(
|
|
9462
|
-
FilterCheckboxItem,
|
|
9416
|
+
return /* @__PURE__ */ jsxs60(
|
|
9417
|
+
Modal,
|
|
9418
|
+
{
|
|
9419
|
+
isOpen,
|
|
9420
|
+
onClose,
|
|
9421
|
+
className: cn("max-h-[90vh] max-w-none md:max-w-[min(42rem,calc(100vw-2rem))]", className),
|
|
9422
|
+
children: [
|
|
9423
|
+
/* @__PURE__ */ jsx79(ModalHeader, { children: /* @__PURE__ */ jsx79(ModalTitle, { children: title }) }),
|
|
9424
|
+
/* @__PURE__ */ jsx79(
|
|
9425
|
+
ModalContent,
|
|
9426
|
+
{
|
|
9427
|
+
className: cn(
|
|
9428
|
+
"flex min-h-0 flex-1 flex-col",
|
|
9429
|
+
!isEmpty && "md:rounded-md md:border md:border-ods-border md:bg-ods-bg md:px-3"
|
|
9430
|
+
),
|
|
9431
|
+
children: /* @__PURE__ */ jsxs60("div", { className: "relative flex min-h-0 flex-1 flex-col", children: [
|
|
9432
|
+
/* @__PURE__ */ jsx79(
|
|
9433
|
+
"div",
|
|
9434
|
+
{
|
|
9435
|
+
ref: scrollRef,
|
|
9436
|
+
onScroll: updateFade,
|
|
9437
|
+
className: "flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto md:py-3",
|
|
9438
|
+
children: isLoading ? /* @__PURE__ */ jsx79(Fragment12, { children: [0, 1].map((group) => /* @__PURE__ */ jsxs60("div", { className: "flex flex-col gap-1", children: [
|
|
9439
|
+
/* @__PURE__ */ jsx79(Skeleton, { className: "h-5 w-24" }),
|
|
9440
|
+
/* @__PURE__ */ jsx79("div", { className: "overflow-hidden rounded-md border border-ods-border", children: [0, 1, 2].map((row) => /* @__PURE__ */ jsxs60(
|
|
9441
|
+
"div",
|
|
9463
9442
|
{
|
|
9464
|
-
|
|
9465
|
-
|
|
9466
|
-
|
|
9467
|
-
|
|
9443
|
+
className: "flex items-center gap-3 border-b border-ods-border bg-ods-card px-4 py-3 last:border-b-0",
|
|
9444
|
+
children: [
|
|
9445
|
+
/* @__PURE__ */ jsx79(Skeleton, { className: "h-6 w-6 shrink-0 rounded-[6px]" }),
|
|
9446
|
+
/* @__PURE__ */ jsx79(Skeleton, { className: "h-4 max-w-[60%] flex-1" }),
|
|
9447
|
+
/* @__PURE__ */ jsx79(Skeleton, { className: "h-4 w-10 shrink-0" })
|
|
9448
|
+
]
|
|
9468
9449
|
},
|
|
9469
|
-
|
|
9450
|
+
row
|
|
9470
9451
|
)) })
|
|
9471
|
-
] }, group
|
|
9472
|
-
|
|
9473
|
-
|
|
9474
|
-
|
|
9475
|
-
|
|
9476
|
-
|
|
9477
|
-
|
|
9478
|
-
|
|
9479
|
-
|
|
9480
|
-
|
|
9481
|
-
|
|
9482
|
-
|
|
9483
|
-
|
|
9484
|
-
|
|
9485
|
-
|
|
9486
|
-
|
|
9487
|
-
|
|
9488
|
-
|
|
9489
|
-
|
|
9490
|
-
|
|
9491
|
-
|
|
9492
|
-
|
|
9493
|
-
|
|
9494
|
-
className: "gap-[
|
|
9495
|
-
|
|
9496
|
-
|
|
9497
|
-
|
|
9498
|
-
|
|
9499
|
-
|
|
9500
|
-
|
|
9501
|
-
|
|
9502
|
-
|
|
9452
|
+
] }, group)) }) : isEmpty ? /* @__PURE__ */ jsxs60("div", { className: "flex h-[240px] flex-col items-center justify-center gap-6 p-6", children: [
|
|
9453
|
+
/* @__PURE__ */ jsx79(Filter02Icon, { className: "text-ods-text-secondary", size: 24 }),
|
|
9454
|
+
/* @__PURE__ */ jsxs60("div", { className: "flex flex-col items-center text-center text-ods-text-secondary", children: [
|
|
9455
|
+
/* @__PURE__ */ jsx79("p", { className: "text-h4", children: emptyStateTitle }),
|
|
9456
|
+
/* @__PURE__ */ jsx79("p", { className: "text-h6", children: emptyStateDescription })
|
|
9457
|
+
] })
|
|
9458
|
+
] }) : /* @__PURE__ */ jsxs60(Fragment12, { children: [
|
|
9459
|
+
sortConfig && sortConfig.columns.length > 0 && /* @__PURE__ */ jsxs60("div", { className: "flex flex-col gap-1", children: [
|
|
9460
|
+
/* @__PURE__ */ jsx79("span", { className: "text-ods-text-secondary text-h5", children: sortConfig.title || "Sort By" }),
|
|
9461
|
+
/* @__PURE__ */ jsx79("div", { className: "overflow-hidden rounded-md border border-ods-border", children: sortConfig.columns.map((column) => /* @__PURE__ */ jsx79(
|
|
9462
|
+
SortColumnItem,
|
|
9463
|
+
{
|
|
9464
|
+
column,
|
|
9465
|
+
currentDirection: getColumnDirection(column.key),
|
|
9466
|
+
onSort: (direction) => onSort?.(column.key, direction),
|
|
9467
|
+
onClear: onSortClear ? () => onSortClear(column.key) : void 0
|
|
9468
|
+
},
|
|
9469
|
+
column.key
|
|
9470
|
+
)) })
|
|
9471
|
+
] }),
|
|
9472
|
+
filterGroups.map((group) => {
|
|
9473
|
+
if (group.options.length === 0) return null;
|
|
9474
|
+
const groupSelection = selectedFilters[group.id] || [];
|
|
9475
|
+
return /* @__PURE__ */ jsxs60("div", { className: "flex flex-col gap-1", children: [
|
|
9476
|
+
/* @__PURE__ */ jsx79("span", { className: "text-ods-text-secondary text-h5", children: group.title }),
|
|
9477
|
+
/* @__PURE__ */ jsx79("div", { className: "overflow-hidden rounded-md border border-ods-border", children: group.options.map((option) => /* @__PURE__ */ jsx79(
|
|
9478
|
+
FilterCheckboxItem,
|
|
9479
|
+
{
|
|
9480
|
+
label: option.label,
|
|
9481
|
+
count: option.count,
|
|
9482
|
+
checked: groupSelection.includes(option.id),
|
|
9483
|
+
onChange: (checked) => handleFilterToggle(group.id, option.id, checked)
|
|
9484
|
+
},
|
|
9485
|
+
option.id
|
|
9486
|
+
)) })
|
|
9487
|
+
] }, group.id);
|
|
9488
|
+
}),
|
|
9489
|
+
tagFilterKeys && tagFilterKeys.length > 0 && onTagsChange && /* @__PURE__ */ jsx79(
|
|
9490
|
+
TagKeyValueFilter,
|
|
9491
|
+
{
|
|
9492
|
+
keys: tagFilterKeys,
|
|
9493
|
+
selectedTags: pendingTags,
|
|
9494
|
+
onTagsChange: setPendingTags,
|
|
9495
|
+
keysTitle: tagFilterTitle
|
|
9496
|
+
}
|
|
9497
|
+
),
|
|
9498
|
+
dateFilter && /* @__PURE__ */ jsxs60("div", { className: "flex flex-col gap-1", children: [
|
|
9499
|
+
/* @__PURE__ */ jsx79("span", { className: "text-ods-text-secondary text-h5", children: dateFilter.title ?? "Date" }),
|
|
9500
|
+
/* @__PURE__ */ jsx79(
|
|
9501
|
+
DateFilterPanel,
|
|
9502
|
+
{
|
|
9503
|
+
mode: "range",
|
|
9504
|
+
sort: draftDateSort,
|
|
9505
|
+
onSortChange: setDraftDateSort,
|
|
9506
|
+
selected: draftDateRange,
|
|
9507
|
+
onSelect: (value) => setDraftDateRange(value),
|
|
9508
|
+
fromDate: dateFilter.fromDate,
|
|
9509
|
+
toDate: dateFilter.toDate,
|
|
9510
|
+
className: "gap-[var(--spacing-system-xxs)]"
|
|
9511
|
+
}
|
|
9512
|
+
)
|
|
9513
|
+
] })
|
|
9514
|
+
] })
|
|
9515
|
+
}
|
|
9516
|
+
),
|
|
9517
|
+
/* @__PURE__ */ jsx79(ScrollFadeOverlay, { edge: "top", visible: fadeTop }),
|
|
9518
|
+
/* @__PURE__ */ jsx79(ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom })
|
|
9519
|
+
] })
|
|
9520
|
+
}
|
|
9521
|
+
),
|
|
9522
|
+
/* @__PURE__ */ jsxs60(ModalFooter, { children: [
|
|
9523
|
+
/* @__PURE__ */ jsx79(Button, { variant: "outline", className: "h-11 flex-1", onClick: handleReset, children: resetButtonText }),
|
|
9524
|
+
/* @__PURE__ */ jsx79(Button, { variant: "accent", className: "h-11 flex-1", onClick: handleApply, children: applyButtonText })
|
|
9503
9525
|
] })
|
|
9504
|
-
|
|
9505
|
-
|
|
9506
|
-
|
|
9507
|
-
/* @__PURE__ */ jsx79(Button, { variant: "outline", className: "h-11 flex-1", onClick: handleReset, children: resetButtonText }),
|
|
9508
|
-
/* @__PURE__ */ jsx79(Button, { variant: "accent", className: "h-11 flex-1", onClick: handleApply, children: applyButtonText })
|
|
9509
|
-
] })
|
|
9510
|
-
] });
|
|
9526
|
+
]
|
|
9527
|
+
}
|
|
9528
|
+
);
|
|
9511
9529
|
}
|
|
9512
9530
|
|
|
9513
9531
|
// src/components/ui/page-actions.tsx
|
|
@@ -9704,14 +9722,14 @@ function IconButtonsVariant({
|
|
|
9704
9722
|
const mobileMenuGroups = [{ items: actions.flatMap(actionToMenuItems) }, ...menuActions ?? []];
|
|
9705
9723
|
const hasMobileMenuItems = mobileMenuGroups.some((g) => g.items.length > 0);
|
|
9706
9724
|
return /* @__PURE__ */ jsxs61(Fragment13, { children: [
|
|
9707
|
-
/* @__PURE__ */ jsxs61("div", { className: cn("hidden items-center md:flex", ACTIONS_GAP, className), children: [
|
|
9725
|
+
/* @__PURE__ */ jsxs61("div", { className: cn("hidden items-center content-md:flex", ACTIONS_GAP, className), children: [
|
|
9708
9726
|
selector,
|
|
9709
9727
|
loading ? /* @__PURE__ */ jsx80(ActionSkeletons, { actions: desktopActions }) : /* @__PURE__ */ jsxs61(Fragment13, { children: [
|
|
9710
9728
|
desktopActions.map((action, idx) => /* @__PURE__ */ jsx80(React6.Fragment, { children: renderActionButton(action) }, actionKey(action, idx))),
|
|
9711
9729
|
hasMenuActions && /* @__PURE__ */ jsx80(ActionsMenuDropdown, { groups: menuActions })
|
|
9712
9730
|
] })
|
|
9713
9731
|
] }),
|
|
9714
|
-
/* @__PURE__ */ jsx80("div", { className: cn("flex md:hidden", className), children: loading ? /* @__PURE__ */ jsx80(MobileTriggerSkeleton, {}) : useSingleActionMobile && singleAction ? renderActionButton(singleAction, { iconOnly: true }) : hasMobileMenuItems ? /* @__PURE__ */ jsx80(ActionsMenuDropdown, { groups: mobileMenuGroups }) : null })
|
|
9732
|
+
/* @__PURE__ */ jsx80("div", { className: cn("flex content-md:hidden", className), children: loading ? /* @__PURE__ */ jsx80(MobileTriggerSkeleton, {}) : useSingleActionMobile && singleAction ? renderActionButton(singleAction, { iconOnly: true }) : hasMobileMenuItems ? /* @__PURE__ */ jsx80(ActionsMenuDropdown, { groups: mobileMenuGroups }) : null })
|
|
9715
9733
|
] });
|
|
9716
9734
|
}
|
|
9717
9735
|
function PrimaryButtonsVariant({
|
|
@@ -9726,11 +9744,12 @@ function PrimaryButtonsVariant({
|
|
|
9726
9744
|
});
|
|
9727
9745
|
const desktopActions = sortedActions.filter((a) => !a.showOnlyMobile);
|
|
9728
9746
|
return /* @__PURE__ */ jsxs61(Fragment13, { children: [
|
|
9729
|
-
/* @__PURE__ */ jsx80("div", { className: cn("hidden items-center md:flex", ACTIONS_GAP, className), children: loading ? (
|
|
9747
|
+
/* @__PURE__ */ jsx80("div", { className: cn("hidden items-center md:content-md:flex", ACTIONS_GAP, className), children: loading ? (
|
|
9730
9748
|
// No overflow trigger in this variant — an unknown action set settles
|
|
9731
9749
|
// into a labelled button, not a square one.
|
|
9732
9750
|
/* @__PURE__ */ jsx80(ActionSkeletons, { actions: desktopActions, emptyFallback: "label" })
|
|
9733
9751
|
) : desktopActions.map((action, idx) => /* @__PURE__ */ jsx80(React6.Fragment, { children: renderActionButton(action) }, `desktop-${actionKey(action, idx)}`)) }),
|
|
9752
|
+
/* @__PURE__ */ jsx80("div", { className: cn("hidden items-center md:content-max-md:flex", ACTIONS_GAP, className), children: loading ? /* @__PURE__ */ jsx80(MobileTriggerSkeleton, {}) : /* @__PURE__ */ jsx80(CompactPrimaryActions, { actions: desktopActions }) }),
|
|
9734
9753
|
/* @__PURE__ */ jsx80(MobileBottomActions, { actions: sortedActions, loading })
|
|
9735
9754
|
] });
|
|
9736
9755
|
}
|
|
@@ -9746,14 +9765,14 @@ function MenuPrimaryVariant({
|
|
|
9746
9765
|
const mobileMenuGroups = [{ items: actions.flatMap(actionToMenuItems) }, ...menuActions];
|
|
9747
9766
|
const hasMobileMenuItems = mobileMenuGroups.some((g) => g.items.length > 0);
|
|
9748
9767
|
return /* @__PURE__ */ jsxs61(Fragment13, { children: [
|
|
9749
|
-
/* @__PURE__ */ jsxs61("div", { className: cn("hidden items-center md:flex", ACTIONS_GAP, className), children: [
|
|
9768
|
+
/* @__PURE__ */ jsxs61("div", { className: cn("hidden items-center content-md:flex", ACTIONS_GAP, className), children: [
|
|
9750
9769
|
selector,
|
|
9751
9770
|
loading ? /* @__PURE__ */ jsx80(ActionSkeletons, { actions: desktopActions }) : /* @__PURE__ */ jsxs61(Fragment13, { children: [
|
|
9752
9771
|
hasMenuActions && /* @__PURE__ */ jsx80(ActionsMenuDropdown, { groups: menuActions }),
|
|
9753
9772
|
desktopActions.map((action, idx) => /* @__PURE__ */ jsx80(React6.Fragment, { children: renderActionButton({ ...action, variant: action.variant || "accent" }) }, `desktop-${actionKey(action, idx)}`))
|
|
9754
9773
|
] })
|
|
9755
9774
|
] }),
|
|
9756
|
-
/* @__PURE__ */ jsx80("div", { className: cn("flex md:hidden", className), children: loading ? /* @__PURE__ */ jsx80(MobileTriggerSkeleton, {}) : hasMobileMenuItems || selector ? (
|
|
9775
|
+
/* @__PURE__ */ jsx80("div", { className: cn("flex content-md:hidden", className), children: loading ? /* @__PURE__ */ jsx80(MobileTriggerSkeleton, {}) : hasMobileMenuItems || selector ? (
|
|
9757
9776
|
// The selector rides into the menu as its header row: on mobile the
|
|
9758
9777
|
// title row has no room for it, and hiding it entirely (what
|
|
9759
9778
|
// `icon-buttons` does) would leave no way to switch views at all.
|
|
@@ -9761,6 +9780,15 @@ function MenuPrimaryVariant({
|
|
|
9761
9780
|
) : null })
|
|
9762
9781
|
] });
|
|
9763
9782
|
}
|
|
9783
|
+
function CompactPrimaryActions({ actions }) {
|
|
9784
|
+
const foldable = actions.filter((action) => action.variant !== "accent" && !!action.label);
|
|
9785
|
+
const fold = foldable.length > 1;
|
|
9786
|
+
const inline = fold ? actions.filter((action) => !foldable.includes(action)) : actions;
|
|
9787
|
+
return /* @__PURE__ */ jsxs61(Fragment13, { children: [
|
|
9788
|
+
fold && /* @__PURE__ */ jsx80(ActionsMenuDropdown, { groups: [{ items: foldable.flatMap(actionToMenuItems) }] }),
|
|
9789
|
+
inline.map((action, idx) => /* @__PURE__ */ jsx80(React6.Fragment, { children: renderActionButton(action) }, `compact-${actionKey(action, idx)}`))
|
|
9790
|
+
] });
|
|
9791
|
+
}
|
|
9764
9792
|
function MobileBottomActions({ actions, loading }) {
|
|
9765
9793
|
return /* @__PURE__ */ jsx80(
|
|
9766
9794
|
"div",
|
|
@@ -9855,9 +9883,16 @@ function renderAdvancedPageContainer({
|
|
|
9855
9883
|
return /* @__PURE__ */ jsx81("div", { className: cn("flex items-end justify-between gap-4"), children: headerContent });
|
|
9856
9884
|
}
|
|
9857
9885
|
if (variant === "detail") {
|
|
9858
|
-
return /* @__PURE__ */ jsxs62("div", { className: "flex items-end justify-between gap-4 md:flex-col md:items-start md:justify-start lg:flex-row lg:items-end lg:justify-between", children: [
|
|
9886
|
+
return /* @__PURE__ */ jsxs62("div", { className: "flex items-end justify-between gap-4 content-md:flex-col content-md:items-start content-md:justify-start content-lg:flex-row content-lg:items-end content-lg:justify-between", children: [
|
|
9859
9887
|
/* @__PURE__ */ jsxs62("div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
9860
|
-
backButton && /* @__PURE__ */ jsx81(
|
|
9888
|
+
backButton && /* @__PURE__ */ jsx81(
|
|
9889
|
+
BackButton,
|
|
9890
|
+
{
|
|
9891
|
+
onClick: backButton.onClick,
|
|
9892
|
+
label: backButton.label,
|
|
9893
|
+
className: "hidden content-md:inline-flex"
|
|
9894
|
+
}
|
|
9895
|
+
),
|
|
9861
9896
|
title && /* @__PURE__ */ jsx81("h1", { className: "text-ods-text-primary text-h2", children: accentSentenceMarks(title) }),
|
|
9862
9897
|
subtitle && /* @__PURE__ */ jsx81("div", { className: "text-ods-text-secondary text-h6", children: subtitle })
|
|
9863
9898
|
] }),
|
|
@@ -9868,9 +9903,16 @@ function renderAdvancedPageContainer({
|
|
|
9868
9903
|
] });
|
|
9869
9904
|
}
|
|
9870
9905
|
if (variant === "list") {
|
|
9871
|
-
return /* @__PURE__ */ jsxs62("div", { className: "flex items-center justify-between gap-4 md:flex-col md:items-start md:justify-start lg:flex-row lg:items-center lg:justify-between", children: [
|
|
9906
|
+
return /* @__PURE__ */ jsxs62("div", { className: "flex items-center justify-between gap-4 content-md:flex-col content-md:items-start content-md:justify-start content-lg:flex-row content-lg:items-center content-lg:justify-between", children: [
|
|
9872
9907
|
/* @__PURE__ */ jsxs62("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
9873
|
-
backButton && /* @__PURE__ */ jsx81(
|
|
9908
|
+
backButton && /* @__PURE__ */ jsx81(
|
|
9909
|
+
BackButton,
|
|
9910
|
+
{
|
|
9911
|
+
onClick: backButton.onClick,
|
|
9912
|
+
label: backButton.label,
|
|
9913
|
+
className: "hidden content-md:inline-flex"
|
|
9914
|
+
}
|
|
9915
|
+
),
|
|
9874
9916
|
title && /* @__PURE__ */ jsx81("h1", { className: "text-ods-text-primary text-h2", children: accentSentenceMarks(title) }),
|
|
9875
9917
|
subtitle && /* @__PURE__ */ jsx81("div", { className: "text-ods-text-secondary text-h6", children: subtitle })
|
|
9876
9918
|
] }),
|
|
@@ -9881,9 +9923,16 @@ function renderAdvancedPageContainer({
|
|
|
9881
9923
|
] });
|
|
9882
9924
|
}
|
|
9883
9925
|
if (variant === "form") {
|
|
9884
|
-
return /* @__PURE__ */ jsxs62("div", { className: "flex items-end justify-between gap-4 md:flex-col md:items-start md:justify-start lg:flex-row lg:items-end lg:justify-between", children: [
|
|
9926
|
+
return /* @__PURE__ */ jsxs62("div", { className: "flex items-end justify-between gap-4 content-md:flex-col content-md:items-start content-md:justify-start content-lg:flex-row content-lg:items-end content-lg:justify-between", children: [
|
|
9885
9927
|
/* @__PURE__ */ jsxs62("div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
9886
|
-
backButton && /* @__PURE__ */ jsx81(
|
|
9928
|
+
backButton && /* @__PURE__ */ jsx81(
|
|
9929
|
+
BackButton,
|
|
9930
|
+
{
|
|
9931
|
+
onClick: backButton.onClick,
|
|
9932
|
+
label: backButton.label,
|
|
9933
|
+
className: "hidden content-md:inline-flex"
|
|
9934
|
+
}
|
|
9935
|
+
),
|
|
9887
9936
|
title && /* @__PURE__ */ jsx81("h1", { className: "text-ods-text-primary text-h2", children: accentSentenceMarks(title) })
|
|
9888
9937
|
] }),
|
|
9889
9938
|
(headerActions || actions) && /* @__PURE__ */ jsxs62("div", { className: "flex shrink-0 items-center gap-4", children: [
|
|
@@ -9892,7 +9941,7 @@ function renderAdvancedPageContainer({
|
|
|
9892
9941
|
] })
|
|
9893
9942
|
] });
|
|
9894
9943
|
}
|
|
9895
|
-
return /* @__PURE__ */ jsxs62("div", { className: "flex items-center justify-between gap-4 md:flex-col md:items-start md:justify-start lg:flex-row lg:items-center lg:justify-between", children: [
|
|
9944
|
+
return /* @__PURE__ */ jsxs62("div", { className: "flex items-center justify-between gap-4 content-md:flex-col content-md:items-start content-md:justify-start content-lg:flex-row content-lg:items-center content-lg:justify-between", children: [
|
|
9896
9945
|
(title || subtitle) && /* @__PURE__ */ jsxs62("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
9897
9946
|
title && /* @__PURE__ */ jsx81("h1", { className: "text-ods-text-primary text-h2", children: accentSentenceMarks(title) }),
|
|
9898
9947
|
subtitle && /* @__PURE__ */ jsx81("div", { className: "text-ods-text-secondary text-h6", children: subtitle })
|
|
@@ -9907,25 +9956,25 @@ function renderAdvancedPageContainer({
|
|
|
9907
9956
|
const baseClasses = ["flex flex-col w-full", backgroundClasses2[background], paddingClasses[padding]];
|
|
9908
9957
|
switch (variant) {
|
|
9909
9958
|
case "list":
|
|
9910
|
-
return cn(baseClasses, "gap-4 md:gap-6", className);
|
|
9959
|
+
return cn(baseClasses, "gap-4 content-md:gap-6", className);
|
|
9911
9960
|
case "detail":
|
|
9912
|
-
return cn(baseClasses, "gap-4 md:gap-6", className);
|
|
9961
|
+
return cn(baseClasses, "gap-4 content-md:gap-6", className);
|
|
9913
9962
|
case "form":
|
|
9914
|
-
return cn(baseClasses, "gap-6 md:gap-10", className);
|
|
9963
|
+
return cn(baseClasses, "gap-6 content-md:gap-10", className);
|
|
9915
9964
|
case "content":
|
|
9916
9965
|
default:
|
|
9917
|
-
return cn(baseClasses, "gap-4 md:gap-6", className);
|
|
9966
|
+
return cn(baseClasses, "gap-4 content-md:gap-6", className);
|
|
9918
9967
|
}
|
|
9919
9968
|
};
|
|
9920
9969
|
const getContentClasses = () => {
|
|
9921
|
-
const mobilePadding = needsBottomPadding ? "pb-28 md:pb-0" : "";
|
|
9970
|
+
const mobilePadding = needsBottomPadding ? "pb-28 content-md:pb-0" : "";
|
|
9922
9971
|
switch (variant) {
|
|
9923
9972
|
case "detail":
|
|
9924
9973
|
return cn("flex-1 overflow-auto", mobilePadding, contentClassName);
|
|
9925
9974
|
case "list":
|
|
9926
|
-
return cn("flex flex-col gap-4 md:gap-6", mobilePadding, contentClassName);
|
|
9975
|
+
return cn("flex flex-col gap-4 content-md:gap-6", mobilePadding, contentClassName);
|
|
9927
9976
|
case "form":
|
|
9928
|
-
return cn("flex flex-col gap-4 md:gap-10", mobilePadding, contentClassName);
|
|
9977
|
+
return cn("flex flex-col gap-4 content-md:gap-10", mobilePadding, contentClassName);
|
|
9929
9978
|
case "content":
|
|
9930
9979
|
default:
|
|
9931
9980
|
return cn("flex-1", mobilePadding, contentClassName);
|
|
@@ -10006,7 +10055,7 @@ function ListPageLayout({
|
|
|
10006
10055
|
onChange: (e) => setLocalSearchValue(e.target.value),
|
|
10007
10056
|
value: localSearchValue,
|
|
10008
10057
|
className: "flex-1",
|
|
10009
|
-
startAdornment: /* @__PURE__ */ jsx82(SearchIcon, { className: "h-4 w-4 md:h-6 md:w-6" })
|
|
10058
|
+
startAdornment: /* @__PURE__ */ jsx82(SearchIcon, { className: "h-4 w-4 content-md:h-6 content-md:w-6" })
|
|
10010
10059
|
}
|
|
10011
10060
|
),
|
|
10012
10061
|
hasMobileFilter && /* @__PURE__ */ jsx82(
|
|
@@ -10014,7 +10063,7 @@ function ListPageLayout({
|
|
|
10014
10063
|
{
|
|
10015
10064
|
variant: "outline",
|
|
10016
10065
|
size: "icon",
|
|
10017
|
-
className: "md:hidden",
|
|
10066
|
+
className: "content-md:hidden",
|
|
10018
10067
|
onClick: () => setMobileFilterOpen(true),
|
|
10019
10068
|
"aria-label": "Open filters",
|
|
10020
10069
|
children: /* @__PURE__ */ jsx82(Filter02Icon, {})
|
|
@@ -10046,7 +10095,7 @@ function ListPageLayout({
|
|
|
10046
10095
|
// src/components/ui/entity-image.tsx
|
|
10047
10096
|
import React7 from "react";
|
|
10048
10097
|
import { jsx as jsx83 } from "react/jsx-runtime";
|
|
10049
|
-
var ENTITY_IMAGE_SIZE = "size-[52px] md:size-[60px]";
|
|
10098
|
+
var ENTITY_IMAGE_SIZE = "size-[52px] content-md:size-[60px]";
|
|
10050
10099
|
function EntityImage({ src, alt, fallbackText, sizeClassName, className }) {
|
|
10051
10100
|
const resolvedSrc = useAuthedImageSrc(src);
|
|
10052
10101
|
const [failedSrc, setFailedSrc] = React7.useState(null);
|
|
@@ -10087,7 +10136,7 @@ function EntityImage({ src, alt, fallbackText, sizeClassName, className }) {
|
|
|
10087
10136
|
|
|
10088
10137
|
// src/components/layout/title-block.tsx
|
|
10089
10138
|
import { jsx as jsx84, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
10090
|
-
var TITLE_BLOCK_MIN_HEIGHT = "min-h-11 md:min-h-12";
|
|
10139
|
+
var TITLE_BLOCK_MIN_HEIGHT = "min-h-11 content-md:min-h-12";
|
|
10091
10140
|
function TitleTextSkeleton({ widthClass, heightClass }) {
|
|
10092
10141
|
return /* @__PURE__ */ jsx84(
|
|
10093
10142
|
"span",
|
|
@@ -10098,8 +10147,8 @@ function TitleTextSkeleton({ widthClass, heightClass }) {
|
|
|
10098
10147
|
);
|
|
10099
10148
|
}
|
|
10100
10149
|
var TITLE_SKELETON_SIZE = {
|
|
10101
|
-
h1: { width: "w-56 md:w-80 lg:w-96", height: "h-7 md:h-8 lg:h-9" },
|
|
10102
|
-
h2: { width: "w-48 md:w-72", height: "h-4 md:h-6" }
|
|
10150
|
+
h1: { width: "w-56 content-md:w-80 content-lg:w-96", height: "h-7 content-md:h-8 content-lg:h-9" },
|
|
10151
|
+
h2: { width: "w-48 content-md:w-72", height: "h-4 content-md:h-6" }
|
|
10103
10152
|
};
|
|
10104
10153
|
function TitleBlock({
|
|
10105
10154
|
title,
|
|
@@ -10137,14 +10186,14 @@ function TitleBlock({
|
|
|
10137
10186
|
"flex items-end justify-between gap-[var(--spacing-system-m)]",
|
|
10138
10187
|
// md+: one wrapping row — actions stay inline with a short title and
|
|
10139
10188
|
// wrap to a second row only when the title overflows (ClickUp 86ahd6uy5).
|
|
10140
|
-
"md:flex-wrap md:content-end",
|
|
10189
|
+
"content-md:flex-wrap content-md:content-end",
|
|
10141
10190
|
"pt-[var(--spacing-system-l)]",
|
|
10142
10191
|
variant === "card" ? cn(
|
|
10143
10192
|
"border-b border-ods-border bg-ods-card",
|
|
10144
10193
|
"px-[var(--spacing-system-l)] pb-[var(--spacing-system-l)]",
|
|
10145
|
-
"md:border-b-0 md:bg-transparent",
|
|
10146
|
-
"md:px-0 md:pb-0",
|
|
10147
|
-
"md:mb-[var(--spacing-system-l)]"
|
|
10194
|
+
"content-md:border-b-0 content-md:bg-transparent",
|
|
10195
|
+
"content-md:px-0 content-md:pb-0",
|
|
10196
|
+
"content-md:mb-[var(--spacing-system-l)]"
|
|
10148
10197
|
) : "mb-[var(--spacing-system-l)]",
|
|
10149
10198
|
className
|
|
10150
10199
|
),
|
|
@@ -10153,11 +10202,11 @@ function TitleBlock({
|
|
|
10153
10202
|
"div",
|
|
10154
10203
|
{
|
|
10155
10204
|
className: cn(
|
|
10156
|
-
"flex min-w-0 flex-1 flex-col justify-center gap-[var(--spacing-system-xs)] md:max-w-full md:flex-none",
|
|
10205
|
+
"flex min-w-0 flex-1 flex-col justify-center gap-[var(--spacing-system-xs)] content-md:max-w-full content-md:flex-none",
|
|
10157
10206
|
TITLE_BLOCK_MIN_HEIGHT
|
|
10158
10207
|
),
|
|
10159
10208
|
children: [
|
|
10160
|
-
backButton && /* @__PURE__ */ jsx84(BackButton, { onClick: backButton.onClick, label: backButton.label, className: "hidden md:inline-flex" }),
|
|
10209
|
+
backButton && /* @__PURE__ */ jsx84(BackButton, { onClick: backButton.onClick, label: backButton.label, className: "hidden content-md:inline-flex" }),
|
|
10161
10210
|
image || hasSubtitleRow || loading ? /* @__PURE__ */ jsxs64("div", { className: "flex w-full min-w-0 items-center gap-[var(--spacing-system-m)]", children: [
|
|
10162
10211
|
image && /* @__PURE__ */ jsx84(EntityImage, { src: image.src, alt: image.alt, fallbackText: image.alt || title }),
|
|
10163
10212
|
/* @__PURE__ */ jsxs64("div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
|
|
@@ -10191,7 +10240,7 @@ function TitleBlock({
|
|
|
10191
10240
|
ref: subtitleRef,
|
|
10192
10241
|
className: "truncate text-ods-text-secondary text-h6",
|
|
10193
10242
|
"aria-hidden": !loading && !subtitle ? true : void 0,
|
|
10194
|
-
children: loading ? /* @__PURE__ */ jsx84(TitleTextSkeleton, { widthClass: "w-28 md:w-36", heightClass: "h-2.5 md:h-3" }) : subtitle || "\xA0"
|
|
10243
|
+
children: loading ? /* @__PURE__ */ jsx84(TitleTextSkeleton, { widthClass: "w-28 content-md:w-36", heightClass: "h-2.5 content-md:h-3" }) : subtitle || "\xA0"
|
|
10195
10244
|
}
|
|
10196
10245
|
) })
|
|
10197
10246
|
] })
|
|
@@ -10275,7 +10324,7 @@ function PageLayout({
|
|
|
10275
10324
|
{
|
|
10276
10325
|
className: cn(
|
|
10277
10326
|
"flex flex-1 flex-col gap-[var(--spacing-system-l)]",
|
|
10278
|
-
needsBottomPadding && "pb-28 md:pb-0",
|
|
10327
|
+
needsBottomPadding && "pb-28 content-md:pb-0",
|
|
10279
10328
|
contentClassName
|
|
10280
10329
|
),
|
|
10281
10330
|
children
|
|
@@ -10295,7 +10344,7 @@ function PageShell({ children, schemas, contentClassName }) {
|
|
|
10295
10344
|
function ArticleDetailLayout({ children, schemas, contentClassName }) {
|
|
10296
10345
|
return /* @__PURE__ */ jsxs66("main", { className: "bg-ods-bg", children: [
|
|
10297
10346
|
schemas,
|
|
10298
|
-
/* @__PURE__ */ jsx86("div", { className: cn("mx-auto max-w-[1280px] px-6 py-6 md:px-20 md:py-10", contentClassName), children })
|
|
10347
|
+
/* @__PURE__ */ jsx86("div", { className: cn("mx-auto max-w-[1280px] px-6 py-6 content-md:px-20 content-md:py-10", contentClassName), children })
|
|
10299
10348
|
] });
|
|
10300
10349
|
}
|
|
10301
10350
|
|
|
@@ -12250,9 +12299,9 @@ var BenefitCard = ({
|
|
|
12250
12299
|
const baseStyles = "flex items-start justify-start relative";
|
|
12251
12300
|
const variantStyles2 = {
|
|
12252
12301
|
default: {
|
|
12253
|
-
container: "gap-[var(--spacing-system-xsf)] bg-ods-bg p-[var(--spacing-system-xsf)] md:p-[var(--spacing-system-mf)]",
|
|
12254
|
-
title: "font-body font-bold text-body-md md:text-body-lg text-ods-text-primary",
|
|
12255
|
-
description: "font-body font-medium text-body-sm md:text-body-md text-ods-text-secondary"
|
|
12302
|
+
container: "gap-[var(--spacing-system-xsf)] bg-ods-bg p-[var(--spacing-system-xsf)] content-md:p-[var(--spacing-system-mf)]",
|
|
12303
|
+
title: "font-body font-bold text-body-md content-md:text-body-lg text-ods-text-primary",
|
|
12304
|
+
description: "font-body font-medium text-body-sm content-md:text-body-md text-ods-text-secondary"
|
|
12256
12305
|
},
|
|
12257
12306
|
dark: {
|
|
12258
12307
|
container: "gap-[var(--spacing-system-xsf)] bg-transparent p-0 shadow-[0px_48px_80px_0px_rgba(0,0,0,0.24)]",
|
|
@@ -12280,9 +12329,9 @@ function benefitCardBorderClass(index, totalItems, columns) {
|
|
|
12280
12329
|
const isLastInRow = (index + 1) % 4 === 0;
|
|
12281
12330
|
const isInLastRow = index >= totalItems - 4;
|
|
12282
12331
|
return cn(
|
|
12283
|
-
!isLastInRow && "border-ods-border md:border-r",
|
|
12284
|
-
!isInLastRow && "border-b md:border-b lg:border-b-0",
|
|
12285
|
-
index < 2 && "lg:border-b-0"
|
|
12332
|
+
!isLastInRow && "border-ods-border content-md:border-r",
|
|
12333
|
+
!isInLastRow && "border-b content-md:border-b content-lg:border-b-0",
|
|
12334
|
+
index < 2 && "content-lg:border-b-0"
|
|
12286
12335
|
);
|
|
12287
12336
|
} else if (columns === 3) {
|
|
12288
12337
|
const isLastInMdRow = (index + 1) % 2 === 0;
|
|
@@ -12292,21 +12341,21 @@ function benefitCardBorderClass(index, totalItems, columns) {
|
|
|
12292
12341
|
return cn(
|
|
12293
12342
|
"border-ods-border",
|
|
12294
12343
|
!isLastItem && "border-b",
|
|
12295
|
-
isInLastMdRow && "md:border-b-0",
|
|
12296
|
-
!isLastInMdRow && !isLastItem && "md:border-r",
|
|
12297
|
-
isLastInMdRow && "md:border-r-0",
|
|
12298
|
-
isInLastLgRow && "lg:border-b-0",
|
|
12299
|
-
!isInLastMdRow && !isInLastLgRow && "lg:border-b",
|
|
12300
|
-
!isLastInLgRow && !isLastItem && "lg:border-r",
|
|
12301
|
-
isLastInLgRow && "lg:border-r-0"
|
|
12344
|
+
isInLastMdRow && "content-md:border-b-0",
|
|
12345
|
+
!isLastInMdRow && !isLastItem && "content-md:border-r",
|
|
12346
|
+
isLastInMdRow && "content-md:border-r-0",
|
|
12347
|
+
isInLastLgRow && "content-lg:border-b-0",
|
|
12348
|
+
!isInLastMdRow && !isInLastLgRow && "content-lg:border-b",
|
|
12349
|
+
!isLastInLgRow && !isLastItem && "content-lg:border-r",
|
|
12350
|
+
isLastInLgRow && "content-lg:border-r-0"
|
|
12302
12351
|
);
|
|
12303
12352
|
} else {
|
|
12304
|
-
return isLastItem ? "border-b-0" : "border-b md:border-b-0 md:border-r border-ods-border";
|
|
12353
|
+
return isLastItem ? "border-b-0" : "border-b content-md:border-b-0 content-md:border-r border-ods-border";
|
|
12305
12354
|
}
|
|
12306
12355
|
}
|
|
12307
12356
|
var BenefitCardGrid = ({ children, className = "", columns = 2 }) => {
|
|
12308
12357
|
const childrenArray = React8.Children.toArray(children);
|
|
12309
|
-
const gridClass = columns === 4 ? "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4" : columns === 3 ? "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3" : "flex flex-col md:flex-row";
|
|
12358
|
+
const gridClass = columns === 4 ? "grid grid-cols-1 content-md:grid-cols-2 content-lg:grid-cols-4" : columns === 3 ? "grid grid-cols-1 content-md:grid-cols-2 content-lg:grid-cols-3" : "flex flex-col content-md:flex-row";
|
|
12310
12359
|
return /* @__PURE__ */ jsx89(
|
|
12311
12360
|
"div",
|
|
12312
12361
|
{
|
|
@@ -12357,22 +12406,22 @@ function BrandAssociationGrid({
|
|
|
12357
12406
|
className = "",
|
|
12358
12407
|
cardClassName = "bg-ods-card border border-ods-border rounded-lg p-0 overflow-hidden"
|
|
12359
12408
|
}) {
|
|
12360
|
-
const gridCols = columns === 2 ? "grid-cols-1 md:grid-cols-2" : "grid-cols-1 md:grid-cols-3";
|
|
12409
|
+
const gridCols = columns === 2 ? "grid-cols-1 content-md:grid-cols-2" : "grid-cols-1 content-md:grid-cols-3";
|
|
12361
12410
|
const itemsPerRow = columns;
|
|
12362
12411
|
const rows = Math.ceil(items.length / itemsPerRow);
|
|
12363
12412
|
const getBorderClasses = (isLastRow, isLastInRow, globalIndex) => {
|
|
12364
12413
|
let classes = "";
|
|
12365
12414
|
if (!isLastInRow) {
|
|
12366
|
-
classes += " md:border-r border-ods-border";
|
|
12415
|
+
classes += " content-md:border-r border-ods-border";
|
|
12367
12416
|
}
|
|
12368
12417
|
const isLastItem = globalIndex === items.length - 1;
|
|
12369
12418
|
if (!isLastItem) {
|
|
12370
12419
|
classes += " border-b border-ods-border";
|
|
12371
12420
|
}
|
|
12372
12421
|
if (!isLastRow) {
|
|
12373
|
-
classes += " md:border-b border-ods-border";
|
|
12422
|
+
classes += " content-md:border-b border-ods-border";
|
|
12374
12423
|
} else {
|
|
12375
|
-
classes += " md:border-b-0";
|
|
12424
|
+
classes += " content-md:border-b-0";
|
|
12376
12425
|
}
|
|
12377
12426
|
return classes;
|
|
12378
12427
|
};
|
|
@@ -12647,17 +12696,21 @@ function DashboardInfoCard({
|
|
|
12647
12696
|
const size = typeof progressSize === "number" ? { base: 24, md: progressSize } : progressSize ?? { base: 24, md: 56 };
|
|
12648
12697
|
const { base, md, lg } = size;
|
|
12649
12698
|
const rings = [
|
|
12650
|
-
{
|
|
12699
|
+
{
|
|
12700
|
+
key: "base",
|
|
12701
|
+
size: base,
|
|
12702
|
+
className: md !== void 0 ? "content-md:hidden" : lg !== void 0 ? "content-lg:hidden" : ""
|
|
12703
|
+
}
|
|
12651
12704
|
];
|
|
12652
12705
|
if (md !== void 0) {
|
|
12653
12706
|
rings.push({
|
|
12654
12707
|
key: "md",
|
|
12655
12708
|
size: md,
|
|
12656
|
-
className: lg !== void 0 ? "hidden md:block lg:hidden" : "hidden md:block"
|
|
12709
|
+
className: lg !== void 0 ? "hidden content-md:block content-lg:hidden" : "hidden content-md:block"
|
|
12657
12710
|
});
|
|
12658
12711
|
}
|
|
12659
12712
|
if (lg !== void 0) {
|
|
12660
|
-
rings.push({ key: "lg", size: lg, className: "hidden lg:block" });
|
|
12713
|
+
rings.push({ key: "lg", size: lg, className: "hidden content-lg:block" });
|
|
12661
12714
|
}
|
|
12662
12715
|
return /* @__PURE__ */ jsx96(Fragment14, { children: rings.map((ring) => /* @__PURE__ */ jsx96(
|
|
12663
12716
|
CircularProgress,
|
|
@@ -12671,14 +12724,14 @@ function DashboardInfoCard({
|
|
|
12671
12724
|
)) });
|
|
12672
12725
|
};
|
|
12673
12726
|
const cardContent = /* @__PURE__ */ jsxs72(Fragment14, { children: [
|
|
12674
|
-
icon && /* @__PURE__ */ jsx96("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 md:size-14", children: /* @__PURE__ */ jsx96("span", { className: "flex size-4 items-center justify-center md:size-6 [&>*]:size-full", children: icon }) }),
|
|
12727
|
+
icon && /* @__PURE__ */ jsx96("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__ */ jsx96("span", { className: "flex size-4 items-center justify-center content-md:size-6 [&>*]:size-full", children: icon }) }),
|
|
12675
12728
|
/* @__PURE__ */ jsxs72("div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
12676
12729
|
/* @__PURE__ */ jsxs72("div", { className: "flex items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
12677
12730
|
loading ? /* @__PURE__ */ jsx96("p", { className: "text-h5", children: /* @__PURE__ */ jsx96("span", { className: "block h-[1lh] w-20 animate-pulse rounded bg-ods-border" }) }) : titleSlot ?? (title !== void 0 && /* @__PURE__ */ jsx96("p", { className: "truncate text-ods-text-secondary text-h5", children: title })),
|
|
12678
12731
|
titleTag
|
|
12679
12732
|
] }),
|
|
12680
12733
|
/* @__PURE__ */ jsxs72("div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
12681
|
-
/* @__PURE__ */ jsx96("p", { className: cn("truncate text-ods-text-primary text-h3 md:text-h2", valueClassName), children: loading ? /* @__PURE__ */ jsx96("span", { className: "block h-[1lh] w-24 animate-pulse rounded bg-ods-border" }) : formattedValue }),
|
|
12734
|
+
/* @__PURE__ */ jsx96("p", { className: cn("truncate text-ods-text-primary text-h3 content-md:text-h2", valueClassName), children: loading ? /* @__PURE__ */ jsx96("span", { className: "block h-[1lh] w-24 animate-pulse rounded bg-ods-border" }) : formattedValue }),
|
|
12682
12735
|
subValue && /* @__PURE__ */ jsx96("p", { className: "text-ods-text-secondary text-h6", children: subValue }),
|
|
12683
12736
|
renderPercentage(),
|
|
12684
12737
|
tooltip && /* @__PURE__ */ jsx96(FloatingTooltip, { content: tooltip, side: "top", children: /* @__PURE__ */ jsx96("span", { className: "cursor-help text-ods-text-secondary", children: /* @__PURE__ */ jsx96(QuestionCircleIcon, { size: 20 }) }) })
|
|
@@ -12687,8 +12740,8 @@ function DashboardInfoCard({
|
|
|
12687
12740
|
] }),
|
|
12688
12741
|
renderProgress()
|
|
12689
12742
|
] });
|
|
12690
|
-
const baseClassName = "bg-ods-card border border-ods-border rounded-md p-[var(--spacing-system-xsf)] md:p-[var(--spacing-system-m)] h-16 md:h-[104px] flex gap-[var(--spacing-system-s)] md:gap-[var(--spacing-system-m)] items-center transition-all";
|
|
12691
|
-
const captionClassName = caption ? "h-auto md:h-auto" : void 0;
|
|
12743
|
+
const baseClassName = "bg-ods-card border border-ods-border rounded-md p-[var(--spacing-system-xsf)] content-md:p-[var(--spacing-system-m)] h-16 content-md:h-[104px] flex gap-[var(--spacing-system-s)] content-md:gap-[var(--spacing-system-m)] items-center transition-all";
|
|
12744
|
+
const captionClassName = caption ? "h-auto content-md:h-auto" : void 0;
|
|
12692
12745
|
if (href) {
|
|
12693
12746
|
return /* @__PURE__ */ jsx96(
|
|
12694
12747
|
next_link_default,
|
|
@@ -12710,17 +12763,17 @@ function DashboardInfoCard({
|
|
|
12710
12763
|
|
|
12711
12764
|
// src/components/ui/info-card-row.tsx
|
|
12712
12765
|
import { jsx as jsx97, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
12713
|
-
var CELL = "flex items-center gap-[var(--spacing-system-s)] min-w-0 p-[var(--spacing-system-xsf)] md:p-[var(--spacing-system-m)] min-h-[60px] md:min-h-[76px]";
|
|
12766
|
+
var CELL = "flex items-center gap-[var(--spacing-system-s)] min-w-0 p-[var(--spacing-system-xsf)] content-md:p-[var(--spacing-system-m)] min-h-[60px] content-md:min-h-[76px]";
|
|
12714
12767
|
function StatCell({ section, className }) {
|
|
12715
12768
|
return /* @__PURE__ */ jsxs73("div", { className: cn(CELL, "flex-1", className), children: [
|
|
12716
12769
|
/* @__PURE__ */ jsxs73("div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
12717
12770
|
/* @__PURE__ */ jsx97("p", { className: "truncate uppercase text-ods-text-secondary text-h5", children: section.title }),
|
|
12718
12771
|
/* @__PURE__ */ jsxs73("div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-s)]", children: [
|
|
12719
12772
|
/* @__PURE__ */ jsx97("p", { className: "min-w-0 flex-1 truncate text-ods-text-primary text-h3", children: section.caption }),
|
|
12720
|
-
section.icon && /* @__PURE__ */ jsx97("div", { className: "flex size-6 shrink-0 items-center justify-center md:hidden", children: section.icon })
|
|
12773
|
+
section.icon && /* @__PURE__ */ jsx97("div", { className: "flex size-6 shrink-0 items-center justify-center content-md:hidden", children: section.icon })
|
|
12721
12774
|
] })
|
|
12722
12775
|
] }),
|
|
12723
|
-
section.icon && /* @__PURE__ */ jsx97("div", { className: "hidden size-6 shrink-0 items-center justify-center md:flex", children: section.icon })
|
|
12776
|
+
section.icon && /* @__PURE__ */ jsx97("div", { className: "hidden size-6 shrink-0 items-center justify-center content-md:flex", children: section.icon })
|
|
12724
12777
|
] });
|
|
12725
12778
|
}
|
|
12726
12779
|
function InfoCardRow({ lead, stats, className }) {
|
|
@@ -12728,18 +12781,24 @@ function InfoCardRow({ lead, stats, className }) {
|
|
|
12728
12781
|
"div",
|
|
12729
12782
|
{
|
|
12730
12783
|
className: cn(
|
|
12731
|
-
"flex shrink-0 flex-col overflow-hidden rounded-md border border-ods-border bg-ods-card md:flex-row",
|
|
12784
|
+
"flex shrink-0 flex-col overflow-hidden rounded-md border border-ods-border bg-ods-card content-md:flex-row",
|
|
12732
12785
|
className
|
|
12733
12786
|
),
|
|
12734
12787
|
children: [
|
|
12735
|
-
/* @__PURE__ */ jsxs73(
|
|
12736
|
-
|
|
12737
|
-
|
|
12738
|
-
|
|
12739
|
-
|
|
12740
|
-
|
|
12741
|
-
|
|
12742
|
-
|
|
12788
|
+
/* @__PURE__ */ jsxs73(
|
|
12789
|
+
"div",
|
|
12790
|
+
{
|
|
12791
|
+
className: cn(CELL, "border-b border-ods-border content-md:flex-1 content-md:border-b-0 content-md:border-r"),
|
|
12792
|
+
children: [
|
|
12793
|
+
lead.icon && /* @__PURE__ */ jsx97("div", { className: "flex size-10 shrink-0 items-center justify-center overflow-hidden rounded-sm border border-ods-border [&>*]:size-full [&_img]:object-cover", children: lead.icon }),
|
|
12794
|
+
/* @__PURE__ */ jsxs73("div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
|
|
12795
|
+
/* @__PURE__ */ jsx97("p", { className: "truncate text-ods-text-primary text-h3", children: lead.title }),
|
|
12796
|
+
/* @__PURE__ */ jsx97("p", { className: "truncate text-ods-text-secondary text-h6", children: lead.caption })
|
|
12797
|
+
] })
|
|
12798
|
+
]
|
|
12799
|
+
}
|
|
12800
|
+
),
|
|
12801
|
+
/* @__PURE__ */ jsxs73("div", { className: "flex content-md:flex-1", children: [
|
|
12743
12802
|
/* @__PURE__ */ jsx97(StatCell, { section: stats[0], className: "border-r border-ods-border" }),
|
|
12744
12803
|
/* @__PURE__ */ jsx97(StatCell, { section: stats[1] })
|
|
12745
12804
|
] })
|
|
@@ -12898,7 +12957,7 @@ function DeviceCardCompact({ deviceName, organization, className, ...props }) {
|
|
|
12898
12957
|
// src/components/ui/data-attribution.tsx
|
|
12899
12958
|
import { jsx as jsx101, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
12900
12959
|
function DataAttribution({ icon, source, lastUpdated }) {
|
|
12901
|
-
return /* @__PURE__ */ jsxs77("div", { className: "flex shrink-0 flex-col gap-[var(--spacing-system-xxs)] text-ods-text-primary text-h6 sm:flex-row sm:items-center sm:gap-[var(--spacing-system-sf)]", children: [
|
|
12960
|
+
return /* @__PURE__ */ jsxs77("div", { className: "flex shrink-0 flex-col gap-[var(--spacing-system-xxs)] text-ods-text-primary text-h6 content-sm:flex-row content-sm:items-center content-sm:gap-[var(--spacing-system-sf)]", children: [
|
|
12902
12961
|
/* @__PURE__ */ jsxs77("div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
12903
12962
|
icon,
|
|
12904
12963
|
/* @__PURE__ */ jsxs77("span", { children: [
|
|
@@ -12906,7 +12965,7 @@ function DataAttribution({ icon, source, lastUpdated }) {
|
|
|
12906
12965
|
source
|
|
12907
12966
|
] })
|
|
12908
12967
|
] }),
|
|
12909
|
-
/* @__PURE__ */ jsx101("span", { className: "hidden text-ods-text-secondary sm:inline", "aria-hidden": "true", children: "\xB7" }),
|
|
12968
|
+
/* @__PURE__ */ jsx101("span", { className: "hidden text-ods-text-secondary content-sm:inline", "aria-hidden": "true", children: "\xB7" }),
|
|
12910
12969
|
/* @__PURE__ */ jsxs77("span", { className: "text-ods-text-secondary", children: [
|
|
12911
12970
|
"Last updated: ",
|
|
12912
12971
|
lastUpdated ? formatDate(lastUpdated) : "Never"
|
|
@@ -12991,19 +13050,19 @@ function ComplianceLogo({
|
|
|
12991
13050
|
// src/components/ui/feature-card.tsx
|
|
12992
13051
|
import { jsx as jsx103, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
12993
13052
|
var GRID_COLUMNS = {
|
|
12994
|
-
2: "grid-cols-1 md:grid-cols-2",
|
|
12995
|
-
3: "grid-cols-1 md:grid-cols-3",
|
|
12996
|
-
4: "grid-cols-1 md:grid-cols-2 lg:grid-cols-4"
|
|
13053
|
+
2: "grid-cols-1 content-md:grid-cols-2",
|
|
13054
|
+
3: "grid-cols-1 content-md:grid-cols-3",
|
|
13055
|
+
4: "grid-cols-1 content-md:grid-cols-2 content-lg:grid-cols-4"
|
|
12997
13056
|
};
|
|
12998
13057
|
function fourColumnBorders(index, count) {
|
|
12999
13058
|
const classes = ["border-ods-border"];
|
|
13000
13059
|
if (index < count - 1) classes.push("border-b");
|
|
13001
13060
|
const mdRows = Math.ceil(count / 2);
|
|
13002
13061
|
const lgRows = Math.ceil(count / 4);
|
|
13003
|
-
classes.push(index % 2 === 0 && index < count - 1 ? "md:border-r" : "md:border-r-0");
|
|
13004
|
-
classes.push(Math.floor(index / 2) < mdRows - 1 ? "md:border-b" : "md:border-b-0");
|
|
13005
|
-
classes.push(index % 4 !== 3 && index < count - 1 ? "lg:border-r" : "lg:border-r-0");
|
|
13006
|
-
classes.push(Math.floor(index / 4) < lgRows - 1 ? "lg:border-b" : "lg:border-b-0");
|
|
13062
|
+
classes.push(index % 2 === 0 && index < count - 1 ? "content-md:border-r" : "content-md:border-r-0");
|
|
13063
|
+
classes.push(Math.floor(index / 2) < mdRows - 1 ? "content-md:border-b" : "content-md:border-b-0");
|
|
13064
|
+
classes.push(index % 4 !== 3 && index < count - 1 ? "content-lg:border-r" : "content-lg:border-r-0");
|
|
13065
|
+
classes.push(Math.floor(index / 4) < lgRows - 1 ? "content-lg:border-b" : "content-lg:border-b-0");
|
|
13007
13066
|
return ` ${classes.join(" ")}`;
|
|
13008
13067
|
}
|
|
13009
13068
|
function LineBar({ width }) {
|
|
@@ -13033,16 +13092,16 @@ function FeatureCardGrid({
|
|
|
13033
13092
|
if (columns === 4) return fourColumnBorders(globalIndex, items.length);
|
|
13034
13093
|
let classes = "";
|
|
13035
13094
|
if (!isLastInRow) {
|
|
13036
|
-
classes += " md:border-r border-ods-border";
|
|
13095
|
+
classes += " content-md:border-r border-ods-border";
|
|
13037
13096
|
}
|
|
13038
13097
|
const isLastItem = globalIndex === items.length - 1;
|
|
13039
13098
|
if (!isLastItem) {
|
|
13040
13099
|
classes += " border-b border-ods-border";
|
|
13041
13100
|
}
|
|
13042
13101
|
if (!isLastRow) {
|
|
13043
|
-
classes += " md:border-b border-ods-border";
|
|
13102
|
+
classes += " content-md:border-b border-ods-border";
|
|
13044
13103
|
} else {
|
|
13045
|
-
classes += " md:border-b-0";
|
|
13104
|
+
classes += " content-md:border-b-0";
|
|
13046
13105
|
}
|
|
13047
13106
|
return classes;
|
|
13048
13107
|
};
|
|
@@ -13238,11 +13297,11 @@ import { jsx as jsx106, jsxs as jsxs82 } from "react/jsx-runtime";
|
|
|
13238
13297
|
function HighlightCard({ item, className = "" }) {
|
|
13239
13298
|
const mobileWidth = item.category.length * 12;
|
|
13240
13299
|
const desktopWidth = item.category.length * 14;
|
|
13241
|
-
return /* @__PURE__ */ jsx106("div", { className: `relative bg-ods-bg p-6 md:p-10 ${className}`, children: /* @__PURE__ */ jsxs82("div", { className: "relative", children: [
|
|
13300
|
+
return /* @__PURE__ */ jsx106("div", { className: `relative bg-ods-bg p-6 content-md:p-10 ${className}`, children: /* @__PURE__ */ jsxs82("div", { className: "relative", children: [
|
|
13242
13301
|
/* @__PURE__ */ jsx106(
|
|
13243
13302
|
"div",
|
|
13244
13303
|
{
|
|
13245
|
-
className: "absolute left-[80px] top-0 h-8 rounded-md md:hidden",
|
|
13304
|
+
className: "absolute left-[80px] top-0 h-8 rounded-md content-md:hidden",
|
|
13246
13305
|
style: {
|
|
13247
13306
|
backgroundColor: item.highlightBg,
|
|
13248
13307
|
width: `${mobileWidth}px`
|
|
@@ -13252,7 +13311,7 @@ function HighlightCard({ item, className = "" }) {
|
|
|
13252
13311
|
/* @__PURE__ */ jsx106(
|
|
13253
13312
|
"div",
|
|
13254
13313
|
{
|
|
13255
|
-
className: "absolute left-[95px] top-0 hidden h-10 rounded-md md:block",
|
|
13314
|
+
className: "absolute left-[95px] top-0 hidden h-10 rounded-md content-md:block",
|
|
13256
13315
|
style: {
|
|
13257
13316
|
backgroundColor: item.highlightBg,
|
|
13258
13317
|
width: `${desktopWidth}px`
|
|
@@ -13273,22 +13332,22 @@ function HighlightCardGrid({
|
|
|
13273
13332
|
className = "",
|
|
13274
13333
|
cardClassName = "bg-ods-card border border-ods-border rounded-lg p-0 overflow-hidden"
|
|
13275
13334
|
}) {
|
|
13276
|
-
const gridCols = columns === 2 ? "grid-cols-1 md:grid-cols-2" : "grid-cols-1 md:grid-cols-3";
|
|
13335
|
+
const gridCols = columns === 2 ? "grid-cols-1 content-md:grid-cols-2" : "grid-cols-1 content-md:grid-cols-3";
|
|
13277
13336
|
const itemsPerRow = columns;
|
|
13278
13337
|
const rows = Math.ceil(items.length / itemsPerRow);
|
|
13279
13338
|
const getBorderClasses = (isLastRow, isLastInRow, globalIndex) => {
|
|
13280
13339
|
let classes = "";
|
|
13281
13340
|
if (!isLastInRow) {
|
|
13282
|
-
classes += " md:border-r border-ods-border";
|
|
13341
|
+
classes += " content-md:border-r border-ods-border";
|
|
13283
13342
|
}
|
|
13284
13343
|
const isLastItem = globalIndex === items.length - 1;
|
|
13285
13344
|
if (!isLastItem) {
|
|
13286
13345
|
classes += " border-b border-ods-border";
|
|
13287
13346
|
}
|
|
13288
13347
|
if (!isLastRow) {
|
|
13289
|
-
classes += " md:border-b border-ods-border";
|
|
13348
|
+
classes += " content-md:border-b border-ods-border";
|
|
13290
13349
|
} else {
|
|
13291
|
-
classes += " md:border-b-0";
|
|
13350
|
+
classes += " content-md:border-b-0";
|
|
13292
13351
|
}
|
|
13293
13352
|
return classes;
|
|
13294
13353
|
};
|
|
@@ -13552,7 +13611,7 @@ function OrganizationCard({
|
|
|
13552
13611
|
] })
|
|
13553
13612
|
] }),
|
|
13554
13613
|
organization.description && /* @__PURE__ */ jsx110("div", { className: "h-12 w-full overflow-hidden", children: /* @__PURE__ */ jsx110("p", { className: "line-clamp-2 text-ods-text-primary text-h4", title: organization.description, children: organization.description }) }),
|
|
13555
|
-
customFooter ? customFooter : footerStats && footerStats.length > 0 ? /* @__PURE__ */ jsx110("div", { className: "flex w-full min-w-0 items-center justify-between gap-2", children: /* @__PURE__ */ jsx110("div", { className: "flex min-w-0 flex-shrink items-center gap-3 md:gap-4", children: footerStats.map((stat, index) => /* @__PURE__ */ jsxs84("div", { className: "flex flex-shrink-0 items-center gap-1", children: [
|
|
13614
|
+
customFooter ? customFooter : footerStats && footerStats.length > 0 ? /* @__PURE__ */ jsx110("div", { className: "flex w-full min-w-0 items-center justify-between gap-2", children: /* @__PURE__ */ jsx110("div", { className: "flex min-w-0 flex-shrink items-center gap-3 content-md:gap-4", children: footerStats.map((stat, index) => /* @__PURE__ */ jsxs84("div", { className: "flex flex-shrink-0 items-center gap-1", children: [
|
|
13556
13615
|
stat.icon,
|
|
13557
13616
|
/* @__PURE__ */ jsx110("span", { className: "text-ods-text-primary text-h6", children: typeof stat.value === "number" ? stat.value.toLocaleString() : stat.value }),
|
|
13558
13617
|
stat.label && /* @__PURE__ */ jsx110("span", { className: "text-ods-text-secondary text-h6", children: stat.label })
|
|
@@ -13612,12 +13671,12 @@ function ServiceCardRowItem({ row }) {
|
|
|
13612
13671
|
window.open(row.href, "_blank", "noopener,noreferrer");
|
|
13613
13672
|
};
|
|
13614
13673
|
return /* @__PURE__ */ jsxs85("div", { className: "flex min-w-0 items-center gap-3", children: [
|
|
13615
|
-
row.label && /* @__PURE__ */ jsx111("div", { className: "w-20 shrink-0 text-ods-text-primary text-h6 md:w-24", children: row.label }),
|
|
13674
|
+
row.label && /* @__PURE__ */ jsx111("div", { className: "w-20 shrink-0 text-ods-text-primary text-h6 content-md:w-24", children: row.label }),
|
|
13616
13675
|
/* @__PURE__ */ jsxs85(
|
|
13617
13676
|
"div",
|
|
13618
13677
|
{
|
|
13619
13678
|
className: cn(
|
|
13620
|
-
"flex h-12 min-w-0 flex-1 items-center justify-between rounded-md border border-ods-border bg-ods-bg px-3 md:px-4",
|
|
13679
|
+
"flex h-12 min-w-0 flex-1 items-center justify-between rounded-md border border-ods-border bg-ods-bg px-3 content-md:px-4",
|
|
13621
13680
|
row.monospace ? "font-mono" : ""
|
|
13622
13681
|
),
|
|
13623
13682
|
children: [
|
|
@@ -13858,7 +13917,7 @@ function ContentLoader({
|
|
|
13858
13917
|
const renderCardSkeleton = () => /* @__PURE__ */ jsxs89("div", { className: "animate-pulse", children: [
|
|
13859
13918
|
showTitle && /* @__PURE__ */ jsx116("div", { className: "mb-6 h-8 w-64 rounded bg-ods-skeleton" }),
|
|
13860
13919
|
/* @__PURE__ */ jsxs89("div", { className: "rounded-lg border border-ods-border bg-ods-card p-6", children: [
|
|
13861
|
-
/* @__PURE__ */ jsx116("div", { className: "mb-6 grid grid-cols-1 gap-6 md:grid-cols-4", children: Array.from({ length: items }).map((_, i) => /* @__PURE__ */ jsxs89("div", { children: [
|
|
13920
|
+
/* @__PURE__ */ jsx116("div", { className: "mb-6 grid grid-cols-1 gap-6 content-md:grid-cols-4", children: Array.from({ length: items }).map((_, i) => /* @__PURE__ */ jsxs89("div", { children: [
|
|
13862
13921
|
/* @__PURE__ */ jsx116("div", { className: "mb-2 h-4 w-20 rounded bg-ods-skeleton" }),
|
|
13863
13922
|
/* @__PURE__ */ jsx116("div", { className: "h-6 w-32 rounded bg-ods-skeleton" })
|
|
13864
13923
|
] }, i)) }),
|
|
@@ -13874,8 +13933,8 @@ function ContentLoader({
|
|
|
13874
13933
|
] });
|
|
13875
13934
|
const renderDetailSkeleton = () => /* @__PURE__ */ jsxs89("div", { className: "animate-pulse", children: [
|
|
13876
13935
|
showTitle && /* @__PURE__ */ jsx116("div", { className: "mb-6 h-8 w-64 rounded bg-ods-skeleton" }),
|
|
13877
|
-
/* @__PURE__ */ jsx116("div", { className: "rounded-lg border border-ods-border bg-ods-card p-6", children: /* @__PURE__ */ jsxs89("div", { className: "grid grid-cols-1 gap-6 lg:grid-cols-3", children: [
|
|
13878
|
-
/* @__PURE__ */ jsxs89("div", { className: "lg:col-span-2", children: [
|
|
13936
|
+
/* @__PURE__ */ jsx116("div", { className: "rounded-lg border border-ods-border bg-ods-card p-6", children: /* @__PURE__ */ jsxs89("div", { className: "grid grid-cols-1 gap-6 content-lg:grid-cols-3", children: [
|
|
13937
|
+
/* @__PURE__ */ jsxs89("div", { className: "content-lg:col-span-2", children: [
|
|
13879
13938
|
/* @__PURE__ */ jsx116("div", { className: "mb-4 h-64 rounded bg-ods-skeleton" }),
|
|
13880
13939
|
/* @__PURE__ */ jsx116("div", { className: "space-y-2", children: Array.from({ length: 3 }).map((_, i) => /* @__PURE__ */ jsx116("div", { className: "h-4 rounded bg-ods-skeleton" }, i)) })
|
|
13881
13940
|
] }),
|
|
@@ -13981,7 +14040,7 @@ function CursorPagination({
|
|
|
13981
14040
|
className: cn(compact && "h-8 px-3"),
|
|
13982
14041
|
leftIcon: /* @__PURE__ */ jsx117(ResetIcon, { className: "h-4 w-4" }),
|
|
13983
14042
|
"aria-label": "Go to first page",
|
|
13984
|
-
children: /* @__PURE__ */ jsx117("span", { className: compact ? "hidden md:inline" : "", children: resetButtonLabel })
|
|
14043
|
+
children: /* @__PURE__ */ jsx117("span", { className: compact ? "hidden content-md:inline" : "", children: resetButtonLabel })
|
|
13985
14044
|
}
|
|
13986
14045
|
) : hasPreviousPage !== void 0 && onPrevious && /* @__PURE__ */ jsx117(
|
|
13987
14046
|
Button,
|
|
@@ -13993,7 +14052,7 @@ function CursorPagination({
|
|
|
13993
14052
|
className: cn(compact && "h-8 px-3"),
|
|
13994
14053
|
leftIcon: /* @__PURE__ */ jsx117(ChevronLeft2, { className: "h-4 w-4" }),
|
|
13995
14054
|
"aria-label": "Go to previous page",
|
|
13996
|
-
children: /* @__PURE__ */ jsx117("span", { className: compact ? "hidden md:inline" : "", children: "Previous" })
|
|
14055
|
+
children: /* @__PURE__ */ jsx117("span", { className: compact ? "hidden content-md:inline" : "", children: "Previous" })
|
|
13997
14056
|
}
|
|
13998
14057
|
),
|
|
13999
14058
|
/* @__PURE__ */ jsx117(
|
|
@@ -14006,7 +14065,7 @@ function CursorPagination({
|
|
|
14006
14065
|
className: cn(compact && "h-8 px-3"),
|
|
14007
14066
|
rightIcon: /* @__PURE__ */ jsx117(ChevronRight4, { className: "h-4 w-4" }),
|
|
14008
14067
|
"aria-label": "Go to next page",
|
|
14009
|
-
children: /* @__PURE__ */ jsx117("span", { className: compact ? "hidden md:inline" : "", children: "Next" })
|
|
14068
|
+
children: /* @__PURE__ */ jsx117("span", { className: compact ? "hidden content-md:inline" : "", children: "Next" })
|
|
14010
14069
|
}
|
|
14011
14070
|
)
|
|
14012
14071
|
] })
|
|
@@ -14134,29 +14193,29 @@ function DataTableRoot({ table, children, className }) {
|
|
|
14134
14193
|
var BREAKPOINT_ORDER = ["md", "lg", "xl", "2xl"];
|
|
14135
14194
|
function getHideClasses(hideAt) {
|
|
14136
14195
|
if (!hideAt) return "";
|
|
14137
|
-
const
|
|
14138
|
-
if (
|
|
14139
|
-
return `hidden
|
|
14196
|
+
const breakpoints2 = Array.isArray(hideAt) ? hideAt : [hideAt];
|
|
14197
|
+
if (breakpoints2.length === 1) {
|
|
14198
|
+
return `hidden content-${breakpoints2[0]}:flex`;
|
|
14140
14199
|
}
|
|
14141
|
-
const maxIdx = Math.max(...
|
|
14142
|
-
const hideClasses =
|
|
14200
|
+
const maxIdx = Math.max(...breakpoints2.map((bp) => BREAKPOINT_ORDER.indexOf(bp)));
|
|
14201
|
+
const hideClasses = breakpoints2.map((bp) => `content-${bp}:hidden`).join(" ");
|
|
14143
14202
|
const showBreakpoint = BREAKPOINT_ORDER[maxIdx + 1];
|
|
14144
|
-
return showBreakpoint ? `${hideClasses}
|
|
14203
|
+
return showBreakpoint ? `${hideClasses} content-${showBreakpoint}:flex` : hideClasses;
|
|
14145
14204
|
}
|
|
14146
14205
|
function getHideAtVisibility(hideAt) {
|
|
14147
14206
|
const steps = BREAKPOINT_ORDER.length + 1;
|
|
14148
14207
|
if (!hideAt) return Array.from({ length: steps }, () => true);
|
|
14149
|
-
const
|
|
14150
|
-
if (
|
|
14151
|
-
const showFrom = BREAKPOINT_ORDER.indexOf(
|
|
14208
|
+
const breakpoints2 = Array.isArray(hideAt) ? hideAt : [hideAt];
|
|
14209
|
+
if (breakpoints2.length === 1) {
|
|
14210
|
+
const showFrom = BREAKPOINT_ORDER.indexOf(breakpoints2[0]) + 1;
|
|
14152
14211
|
return Array.from({ length: steps }, (_, step) => step >= showFrom);
|
|
14153
14212
|
}
|
|
14154
|
-
const maxIdx = Math.max(...
|
|
14213
|
+
const maxIdx = Math.max(...breakpoints2.map((bp) => BREAKPOINT_ORDER.indexOf(bp)));
|
|
14155
14214
|
const showBreakpoint = BREAKPOINT_ORDER[maxIdx + 1];
|
|
14156
14215
|
const visible = [true];
|
|
14157
14216
|
for (const bp of BREAKPOINT_ORDER) {
|
|
14158
14217
|
let state = visible[visible.length - 1];
|
|
14159
|
-
if (
|
|
14218
|
+
if (breakpoints2.includes(bp)) state = false;
|
|
14160
14219
|
if (bp === showBreakpoint) state = true;
|
|
14161
14220
|
visible.push(state);
|
|
14162
14221
|
}
|
|
@@ -14181,7 +14240,7 @@ var multiSelectFilterFn = (row, columnId, filterValue) => {
|
|
|
14181
14240
|
|
|
14182
14241
|
// src/components/ui/data-table/data-table-skeleton.tsx
|
|
14183
14242
|
import { Fragment as Fragment19, jsx as jsx119, jsxs as jsxs91 } from "react/jsx-runtime";
|
|
14184
|
-
var ROW_HEIGHT_DESKTOP = "h-[66px] md:h-[78px]";
|
|
14243
|
+
var ROW_HEIGHT_DESKTOP = "h-[66px] content-md:h-[78px]";
|
|
14185
14244
|
var ROW_HEIGHT_MOBILE = "h-[66px]";
|
|
14186
14245
|
var ROW_SHELL_CLASSES = "items-center gap-[var(--spacing-system-mf)] px-[var(--spacing-system-mf)]";
|
|
14187
14246
|
var ROW_STACK_CLASSES = "flex w-full flex-col gap-[var(--spacing-system-xsf)]";
|
|
@@ -14203,7 +14262,7 @@ function DataTableSkeleton({ rows = 10, className, rowClassName, rowHeightClassN
|
|
|
14203
14262
|
"div",
|
|
14204
14263
|
{
|
|
14205
14264
|
className: cn(
|
|
14206
|
-
"hidden py-0 md:flex",
|
|
14265
|
+
"hidden py-0 content-md:flex",
|
|
14207
14266
|
ROW_SHELL_CLASSES,
|
|
14208
14267
|
rowHeightClassName ? "h-full" : ROW_HEIGHT_DESKTOP,
|
|
14209
14268
|
rowClassName
|
|
@@ -14237,7 +14296,7 @@ function DataTableSkeleton({ rows = 10, className, rowClassName, rowHeightClassN
|
|
|
14237
14296
|
"div",
|
|
14238
14297
|
{
|
|
14239
14298
|
className: cn(
|
|
14240
|
-
"flex justify-start py-0 md:hidden",
|
|
14299
|
+
"flex justify-start py-0 content-md:hidden",
|
|
14241
14300
|
ROW_SHELL_CLASSES,
|
|
14242
14301
|
rowHeightClassName ? "h-full" : ROW_HEIGHT_MOBILE,
|
|
14243
14302
|
rowClassName
|
|
@@ -14294,7 +14353,7 @@ function PlaceholderRows({
|
|
|
14294
14353
|
"div",
|
|
14295
14354
|
{
|
|
14296
14355
|
className: cn(
|
|
14297
|
-
"hidden py-0 md:flex",
|
|
14356
|
+
"hidden py-0 content-md:flex",
|
|
14298
14357
|
ROW_SHELL_CLASSES,
|
|
14299
14358
|
innerHeightClassName ?? (rowHeightClassName ? "h-full" : ROW_HEIGHT_DESKTOP)
|
|
14300
14359
|
)
|
|
@@ -14304,7 +14363,7 @@ function PlaceholderRows({
|
|
|
14304
14363
|
"div",
|
|
14305
14364
|
{
|
|
14306
14365
|
className: cn(
|
|
14307
|
-
"flex justify-start py-0 md:hidden",
|
|
14366
|
+
"flex justify-start py-0 content-md:hidden",
|
|
14308
14367
|
ROW_SHELL_CLASSES,
|
|
14309
14368
|
innerHeightClassName ?? (rowHeightClassName ? "h-full" : ROW_HEIGHT_MOBILE)
|
|
14310
14369
|
)
|
|
@@ -14396,17 +14455,17 @@ function getHideClasses2(hideAt) {
|
|
|
14396
14455
|
if (!hideAt) {
|
|
14397
14456
|
return "";
|
|
14398
14457
|
}
|
|
14399
|
-
const
|
|
14458
|
+
const breakpoints2 = Array.isArray(hideAt) ? hideAt : [hideAt];
|
|
14400
14459
|
const breakpointOrder = ["md", "lg", "xl", "2xl"];
|
|
14401
|
-
const maxBreakpointIndex = Math.max(...
|
|
14402
|
-
if (
|
|
14403
|
-
return `hidden
|
|
14460
|
+
const maxBreakpointIndex = Math.max(...breakpoints2.map((bp) => breakpointOrder.indexOf(bp)));
|
|
14461
|
+
if (breakpoints2.length === 1) {
|
|
14462
|
+
return `hidden content-${breakpoints2[0]}:flex`;
|
|
14404
14463
|
}
|
|
14405
|
-
const hideClasses =
|
|
14464
|
+
const hideClasses = breakpoints2.map((bp) => `content-${bp}:hidden`).join(" ");
|
|
14406
14465
|
const nextBreakpointIndex = maxBreakpointIndex + 1;
|
|
14407
14466
|
const showBreakpoint = breakpointOrder[nextBreakpointIndex];
|
|
14408
14467
|
if (showBreakpoint) {
|
|
14409
|
-
return `${hideClasses}
|
|
14468
|
+
return `${hideClasses} content-${showBreakpoint}:flex`;
|
|
14410
14469
|
}
|
|
14411
14470
|
return hideClasses;
|
|
14412
14471
|
}
|
|
@@ -14458,12 +14517,12 @@ function TableHeader({
|
|
|
14458
14517
|
}
|
|
14459
14518
|
return sortDirection === "asc" ? /* @__PURE__ */ jsx122(Arrow01UpIcon, { className: "h-4 w-4 text-ods-accent" }) : /* @__PURE__ */ jsx122(Arrow01DownIcon, { className: "h-4 w-4 text-ods-accent" });
|
|
14460
14519
|
};
|
|
14461
|
-
const isLgUp =
|
|
14520
|
+
const isLgUp = useContentLgUp() ?? false;
|
|
14462
14521
|
return /* @__PURE__ */ jsxs93(
|
|
14463
14522
|
"div",
|
|
14464
14523
|
{
|
|
14465
14524
|
className: cn(
|
|
14466
|
-
"relative hidden h-11 items-center gap-4 px-4 py-3 md:flex",
|
|
14525
|
+
"relative hidden h-11 items-center gap-4 px-4 py-3 content-md:flex",
|
|
14467
14526
|
stickyHeader && `sticky z-10 bg-ods-bg ${stickyHeaderOffset || "top-0"}`,
|
|
14468
14527
|
className
|
|
14469
14528
|
),
|
|
@@ -14576,7 +14635,7 @@ function TableCell({ children, align = "left", className, width }) {
|
|
|
14576
14635
|
|
|
14577
14636
|
// src/components/ui/table/table-skeleton.tsx
|
|
14578
14637
|
import { Fragment as Fragment21, jsx as jsx124, jsxs as jsxs94 } from "react/jsx-runtime";
|
|
14579
|
-
var ROW_HEIGHT_DESKTOP2 = "h-[66px] md:h-[78px]";
|
|
14638
|
+
var ROW_HEIGHT_DESKTOP2 = "h-[66px] content-md:h-[78px]";
|
|
14580
14639
|
var COMPACT_ROW_MIN_HEIGHT = "min-h-[56px]";
|
|
14581
14640
|
var ROW_HEIGHT_MOBILE2 = "h-[66px]";
|
|
14582
14641
|
function TableCardSkeleton({
|
|
@@ -14601,7 +14660,7 @@ function TableCardSkeleton({
|
|
|
14601
14660
|
"div",
|
|
14602
14661
|
{
|
|
14603
14662
|
className: cn(
|
|
14604
|
-
"hidden items-center gap-4 px-4 md:flex",
|
|
14663
|
+
"hidden items-center gap-4 px-4 content-md:flex",
|
|
14605
14664
|
compact ? cn("py-2", COMPACT_ROW_MIN_HEIGHT) : cn("py-0", ROW_HEIGHT_DESKTOP2),
|
|
14606
14665
|
rowClassName
|
|
14607
14666
|
),
|
|
@@ -14622,7 +14681,7 @@ function TableCardSkeleton({
|
|
|
14622
14681
|
"div",
|
|
14623
14682
|
{
|
|
14624
14683
|
className: cn(
|
|
14625
|
-
"flex items-center justify-start gap-3 px-3 md:hidden",
|
|
14684
|
+
"flex items-center justify-start gap-3 px-3 content-md:hidden",
|
|
14626
14685
|
// Mirror the real row on mobile too: a compact row is
|
|
14627
14686
|
// content-sized with a floor, a normal row a fixed height.
|
|
14628
14687
|
// Hard-wiring ROW_HEIGHT_MOBILE made every COMPACT table jump
|
|
@@ -15335,7 +15394,7 @@ function QueryReportTable({
|
|
|
15335
15394
|
showExport && data.length > 0 && /* @__PURE__ */ jsx132(
|
|
15336
15395
|
Button,
|
|
15337
15396
|
{
|
|
15338
|
-
className: "bg-ods-card max-md:hidden",
|
|
15397
|
+
className: "bg-ods-card content-max-md:hidden",
|
|
15339
15398
|
variant: "outline",
|
|
15340
15399
|
leftIcon: /* @__PURE__ */ jsx132(Download02Icon, { size: 18, className: "text-ods-text-secondary" }),
|
|
15341
15400
|
onClick: handleExport,
|
|
@@ -15764,7 +15823,7 @@ function DataTableHeader({
|
|
|
15764
15823
|
"div",
|
|
15765
15824
|
{
|
|
15766
15825
|
className: cn(
|
|
15767
|
-
"hidden md:flex md:flex-col",
|
|
15826
|
+
"hidden content-md:flex content-md:flex-col",
|
|
15768
15827
|
stickyHeader && `sticky z-10 bg-ods-bg ${stickyHeaderOffset ?? "top-0"}`,
|
|
15769
15828
|
className
|
|
15770
15829
|
),
|
|
@@ -15782,7 +15841,7 @@ function DataTableHeader({
|
|
|
15782
15841
|
// the absolute placement. Safe as a `max-lg:` override: nothing
|
|
15783
15842
|
// else in this string sets margin or height, so it competes only
|
|
15784
15843
|
// with unprefixed defaults, never with a `md:`/`lg:` class.
|
|
15785
|
-
"max-lg:ml-auto max-lg:h-12 lg:absolute lg:inset-y-0 lg:right-[var(--spacing-system-mf)]"
|
|
15844
|
+
"content-max-lg:ml-auto content-max-lg:h-12 content-lg:absolute content-lg:inset-y-0 content-lg:right-[var(--spacing-system-mf)]"
|
|
15786
15845
|
)
|
|
15787
15846
|
),
|
|
15788
15847
|
children: rightSlot
|
|
@@ -15796,16 +15855,16 @@ function keepsCellOnTablet(meta) {
|
|
|
15796
15855
|
return Boolean(meta?.filter) || meta?.sortable === true || meta?.alwaysShowHeader === true;
|
|
15797
15856
|
}
|
|
15798
15857
|
var SHOW_FROM = {
|
|
15799
|
-
md: "md:flex",
|
|
15800
|
-
lg: "lg:flex",
|
|
15801
|
-
xl: "xl:flex",
|
|
15802
|
-
"2xl": "2xl:flex"
|
|
15858
|
+
md: "content-md:flex",
|
|
15859
|
+
lg: "content-lg:flex",
|
|
15860
|
+
xl: "content-xl:flex",
|
|
15861
|
+
"2xl": "content-2xl:flex"
|
|
15803
15862
|
};
|
|
15804
15863
|
var HIDE_FROM = {
|
|
15805
|
-
md: "md:hidden",
|
|
15806
|
-
lg: "lg:hidden",
|
|
15807
|
-
xl: "xl:hidden",
|
|
15808
|
-
"2xl": "2xl:hidden"
|
|
15864
|
+
md: "content-md:hidden",
|
|
15865
|
+
lg: "content-lg:hidden",
|
|
15866
|
+
xl: "content-xl:hidden",
|
|
15867
|
+
"2xl": "content-2xl:hidden"
|
|
15809
15868
|
};
|
|
15810
15869
|
var LG_STEP = BREAKPOINT_ORDER.indexOf("lg") + 1;
|
|
15811
15870
|
function getCellVisibilityClasses(keepOnTablet, hideAt) {
|
|
@@ -15862,7 +15921,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
15862
15921
|
//
|
|
15863
15922
|
// `[&&]` doubles the class in the selector (`.cls.cls`, specificity 0-2-0),
|
|
15864
15923
|
// and it is load-bearing: consumers routinely write a RESPONSIVE width
|
|
15865
|
-
// (`w-[80px] md:w-1/5` is the common shape), and between md and lg that
|
|
15924
|
+
// (`w-[80px] content-md:w-1/5` is the common shape), and between md and lg that
|
|
15866
15925
|
// `md:` rule and this `max-lg:` one both match. At equal specificity source
|
|
15867
15926
|
// order decides, and Tailwind emits the `max-lg` block BEFORE the `md` one
|
|
15868
15927
|
// — the same ordering documented for visibility above — so the tablet would
|
|
@@ -15873,7 +15932,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
15873
15932
|
// consumer that genuinely needs a tablet width can still take it back with a
|
|
15874
15933
|
// more specific rule — `!important` could only be answered with another one.
|
|
15875
15934
|
meta?.width || "min-w-0 flex-1",
|
|
15876
|
-
keepOnTablet && "max-lg:[&&]:w-auto max-lg:[&&]:flex-none max-lg:[&&]:basis-auto",
|
|
15935
|
+
keepOnTablet && "content-max-lg:[&&]:w-auto content-max-lg:[&&]:flex-none content-max-lg:[&&]:basis-auto",
|
|
15877
15936
|
meta?.headerClassName
|
|
15878
15937
|
),
|
|
15879
15938
|
children: filterTrigger ? (
|
|
@@ -15893,7 +15952,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
15893
15952
|
"flex h-12 w-full select-none items-center gap-[var(--spacing-system-xsf)] rounded-sm transition-colors duration-200",
|
|
15894
15953
|
// Same "always, neutralized below lg" shape as the width above.
|
|
15895
15954
|
alignJustify(align),
|
|
15896
|
-
keepOnTablet && "max-lg:justify-start",
|
|
15955
|
+
keepOnTablet && "content-max-lg:justify-start",
|
|
15897
15956
|
canSort && "group cursor-pointer"
|
|
15898
15957
|
),
|
|
15899
15958
|
onClick: canSort ? () => onSortChange?.(column.id) : void 0,
|
|
@@ -16230,7 +16289,7 @@ import {
|
|
|
16230
16289
|
import { jsx as jsx142, jsxs as jsxs109 } from "react/jsx-runtime";
|
|
16231
16290
|
var containerStyles = cn(
|
|
16232
16291
|
// Layout & spacing — matches lib Input component
|
|
16233
|
-
"flex h-11 cursor-text items-center gap-2 rounded-[6px] border px-3 md:h-12",
|
|
16292
|
+
"flex h-11 cursor-text items-center gap-2 rounded-[6px] border px-3 content-md:h-12",
|
|
16234
16293
|
"has-[:focus-visible]:outline-none",
|
|
16235
16294
|
"group",
|
|
16236
16295
|
"transition-colors duration-200",
|
|
@@ -16491,7 +16550,7 @@ function SearchInput({
|
|
|
16491
16550
|
setIsOpen(true);
|
|
16492
16551
|
},
|
|
16493
16552
|
children: [
|
|
16494
|
-
/* @__PURE__ */ jsx142("span", { className: "flex-shrink-0 text-ods-text-secondary transition-colors duration-200 group-has-[:focus]:text-ods-accent [&_svg]:size-4 md:[&_svg]:size-6", children: startAdornment !== void 0 ? startAdornment : /* @__PURE__ */ jsx142(SearchIcon, {}) }),
|
|
16553
|
+
/* @__PURE__ */ jsx142("span", { className: "flex-shrink-0 text-ods-text-secondary transition-colors duration-200 group-has-[:focus]:text-ods-accent [&_svg]:size-4 content-md:[&_svg]:size-6", children: startAdornment !== void 0 ? startAdornment : /* @__PURE__ */ jsx142(SearchIcon, {}) }),
|
|
16495
16554
|
/* @__PURE__ */ jsxs109("div", { ref: middleRef, className: "flex min-w-0 flex-1 items-center gap-2 overflow-hidden", children: [
|
|
16496
16555
|
visibleChips.map((chip) => /* @__PURE__ */ jsx142(
|
|
16497
16556
|
Tag,
|
|
@@ -16801,7 +16860,7 @@ function TagSearchInput({
|
|
|
16801
16860
|
"div",
|
|
16802
16861
|
{
|
|
16803
16862
|
className: cn(
|
|
16804
|
-
"flex h-11 cursor-text items-center rounded-[6px] border md:h-12",
|
|
16863
|
+
"flex h-11 cursor-text items-center rounded-[6px] border content-md:h-12",
|
|
16805
16864
|
"transition-colors duration-200",
|
|
16806
16865
|
"border-ods-border bg-ods-card",
|
|
16807
16866
|
"has-[:focus]:border-ods-accent",
|
|
@@ -16820,7 +16879,7 @@ function TagSearchInput({
|
|
|
16820
16879
|
if (!disabled) inputRef.current?.focus();
|
|
16821
16880
|
},
|
|
16822
16881
|
children: [
|
|
16823
|
-
/* @__PURE__ */ jsx144("div", { className: "flex shrink-0 items-center pl-3", children: /* @__PURE__ */ jsx144(SearchIcon, { className: "size-4 text-ods-text-secondary md:size-6" }) }),
|
|
16882
|
+
/* @__PURE__ */ jsx144("div", { className: "flex shrink-0 items-center pl-3", children: /* @__PURE__ */ jsx144(SearchIcon, { className: "size-4 text-ods-text-secondary content-md:size-6" }) }),
|
|
16824
16883
|
/* @__PURE__ */ jsxs111("div", { ref: middleRef, className: "flex min-w-0 flex-1 items-center gap-2 overflow-hidden px-2", children: [
|
|
16825
16884
|
visibleTags.map((tag) => /* @__PURE__ */ jsx144(
|
|
16826
16885
|
Tag,
|
|
@@ -16877,7 +16936,7 @@ function TagSearchInput({
|
|
|
16877
16936
|
onClick: handleClearAll,
|
|
16878
16937
|
className: "flex shrink-0 cursor-pointer items-center justify-center pr-3 transition-opacity hover:opacity-70",
|
|
16879
16938
|
"aria-label": "Clear all",
|
|
16880
|
-
children: /* @__PURE__ */ jsx144(XmarkCircleIcon, { className: "size-4 text-ods-text-secondary md:size-6" })
|
|
16939
|
+
children: /* @__PURE__ */ jsx144(XmarkCircleIcon, { className: "size-4 text-ods-text-secondary content-md:size-6" })
|
|
16881
16940
|
}
|
|
16882
16941
|
)
|
|
16883
16942
|
]
|
|
@@ -18086,7 +18145,7 @@ function TicketStatusConfigRow({
|
|
|
18086
18145
|
{
|
|
18087
18146
|
className: cn(
|
|
18088
18147
|
// Transparent background — only the border outlines the row.
|
|
18089
|
-
"flex w-full items-start gap-3 rounded-md border border-ods-border md:gap-[var(--spacing-system-m)]",
|
|
18148
|
+
"flex w-full items-start gap-3 rounded-md border border-ods-border content-md:gap-[var(--spacing-system-m)]",
|
|
18090
18149
|
"p-[var(--spacing-system-m)]",
|
|
18091
18150
|
// The dragged row travels over its siblings, so it needs an opaque back.
|
|
18092
18151
|
isDragging && "bg-ods-bg opacity-70 shadow-lg"
|
|
@@ -18096,7 +18155,7 @@ function TicketStatusConfigRow({
|
|
|
18096
18155
|
"div",
|
|
18097
18156
|
{
|
|
18098
18157
|
className: cn(
|
|
18099
|
-
"flex h-11 w-8 shrink-0 items-center justify-center text-ods-text-secondary md:h-12",
|
|
18158
|
+
"flex h-11 w-8 shrink-0 items-center justify-center text-ods-text-secondary content-md:h-12",
|
|
18100
18159
|
fieldRowOffset
|
|
18101
18160
|
),
|
|
18102
18161
|
children: isSystem ? /* @__PURE__ */ jsx150(DraggerIcon, { size: 24, "aria-hidden": true, className: "opacity-40" }) : /* @__PURE__ */ jsx150(
|
|
@@ -18115,13 +18174,13 @@ function TicketStatusConfigRow({
|
|
|
18115
18174
|
"div",
|
|
18116
18175
|
{
|
|
18117
18176
|
className: cn(
|
|
18118
|
-
"min-w-0 flex-1 items-start gap-x-3 gap-y-[var(--spacing-system-m)] md:gap-x-[var(--spacing-system-m)]",
|
|
18177
|
+
"min-w-0 flex-1 items-start gap-x-3 gap-y-[var(--spacing-system-m)] content-md:gap-x-[var(--spacing-system-m)]",
|
|
18119
18178
|
isSystem ? "flex flex-wrap" : (
|
|
18120
18179
|
// Mobile custom rows are a strict two-column grid, per the mock:
|
|
18121
18180
|
// fields (name / color / hex, all one width) on the left, the
|
|
18122
18181
|
// controls and the chip stacked in the right column. From md up
|
|
18123
18182
|
// the same children flow as a wrapping flex row.
|
|
18124
|
-
"grid grid-cols-[minmax(0,1fr)_auto] md:flex md:flex-wrap"
|
|
18183
|
+
"grid grid-cols-[minmax(0,1fr)_auto] content-md:flex content-md:flex-wrap"
|
|
18125
18184
|
)
|
|
18126
18185
|
),
|
|
18127
18186
|
children: [
|
|
@@ -18139,17 +18198,17 @@ function TicketStatusConfigRow({
|
|
|
18139
18198
|
}
|
|
18140
18199
|
)
|
|
18141
18200
|
] }),
|
|
18142
|
-
showColorPicker ? /* @__PURE__ */ jsxs116("div", { className: "order-3 flex min-w-0 grow basis-full flex-col gap-[var(--spacing-system-xxs)] md:order-2 md:basis-0", children: [
|
|
18201
|
+
showColorPicker ? /* @__PURE__ */ jsxs116("div", { className: "order-3 flex min-w-0 grow basis-full flex-col gap-[var(--spacing-system-xxs)] content-md:order-2 content-md:basis-0", children: [
|
|
18143
18202
|
/* @__PURE__ */ jsx150(Label, { variant: "large", children: "Color" }),
|
|
18144
18203
|
/* @__PURE__ */ jsx150(ColorPresetSelect, { value: color, presetKey, onChange: onColorChange }),
|
|
18145
18204
|
isCustomColor && /* @__PURE__ */ jsx150("div", { className: "mt-[var(--spacing-system-xxs)] flex min-w-0", children: /* @__PURE__ */ jsx150(ColorPickerInput, { value: color, onChange: (next) => onColorChange({ color: next, preset: void 0 }) }) })
|
|
18146
|
-
] }) : /* @__PURE__ */ jsx150("div", { "aria-hidden": true, className: "hidden min-w-0 grow basis-0 lg:order-2 lg:block" }),
|
|
18147
|
-
/* @__PURE__ */ jsx150("div", { "aria-hidden": true, className: "hidden min-w-0 grow basis-0 lg:order-3 lg:block" }),
|
|
18205
|
+
] }) : /* @__PURE__ */ jsx150("div", { "aria-hidden": true, className: "hidden min-w-0 grow basis-0 content-lg:order-2 content-lg:block" }),
|
|
18206
|
+
/* @__PURE__ */ jsx150("div", { "aria-hidden": true, className: "hidden min-w-0 grow basis-0 content-lg:order-3 content-lg:block" }),
|
|
18148
18207
|
isSystem ? /* @__PURE__ */ jsx150(
|
|
18149
18208
|
"div",
|
|
18150
18209
|
{
|
|
18151
18210
|
className: cn(
|
|
18152
|
-
"order-2 flex h-11 min-w-0 grow basis-0 items-center justify-end md:h-12 lg:order-4",
|
|
18211
|
+
"order-2 flex h-11 min-w-0 grow basis-0 items-center justify-end content-md:h-12 content-lg:order-4",
|
|
18153
18212
|
fieldRowOffset
|
|
18154
18213
|
),
|
|
18155
18214
|
children: chip
|
|
@@ -18159,26 +18218,26 @@ function TicketStatusConfigRow({
|
|
|
18159
18218
|
"div",
|
|
18160
18219
|
{
|
|
18161
18220
|
className: cn(
|
|
18162
|
-
"hidden h-12 min-w-0 grow basis-0 items-center justify-end lg:order-4 lg:flex",
|
|
18221
|
+
"hidden h-12 min-w-0 grow basis-0 items-center justify-end content-lg:order-4 content-lg:flex",
|
|
18163
18222
|
fieldRowOffset
|
|
18164
18223
|
),
|
|
18165
18224
|
children: chip
|
|
18166
18225
|
}
|
|
18167
18226
|
),
|
|
18168
|
-
/* @__PURE__ */ jsx150("div", { className: "hidden min-w-0 basis-full items-center justify-end md:order-4 md:flex lg:hidden", children: chip }),
|
|
18169
|
-
/* @__PURE__ */ jsx150("div", { className: cn("order-4 flex h-11 min-w-0 items-center md:hidden", fieldRowOffset), children: chip })
|
|
18227
|
+
/* @__PURE__ */ jsx150("div", { className: "hidden min-w-0 basis-full items-center justify-end content-md:order-4 content-md:flex content-lg:hidden", children: chip }),
|
|
18228
|
+
/* @__PURE__ */ jsx150("div", { className: cn("order-4 flex h-11 min-w-0 items-center content-md:hidden", fieldRowOffset), children: chip })
|
|
18170
18229
|
] }),
|
|
18171
18230
|
/* @__PURE__ */ jsxs116(
|
|
18172
18231
|
"div",
|
|
18173
18232
|
{
|
|
18174
18233
|
className: cn(
|
|
18175
|
-
"flex h-11 shrink-0 items-center justify-end gap-[var(--spacing-system-s)] md:h-12 lg:order-5",
|
|
18176
|
-
isSystem ? "order-3" : "order-2 md:order-3",
|
|
18234
|
+
"flex h-11 shrink-0 items-center justify-end gap-[var(--spacing-system-s)] content-md:h-12 content-lg:order-5",
|
|
18235
|
+
isSystem ? "order-3" : "order-2 content-md:order-3",
|
|
18177
18236
|
fieldRowOffset
|
|
18178
18237
|
),
|
|
18179
18238
|
children: [
|
|
18180
18239
|
!isSystem && moveButtons,
|
|
18181
|
-
isSystem ? /* @__PURE__ */ jsx150("div", { className: "flex w-11 justify-center md:w-12", children: /* @__PURE__ */ jsx150(TouchFriendlyTooltip, { content: systemTooltip, children: /* @__PURE__ */ jsx150(
|
|
18240
|
+
isSystem ? /* @__PURE__ */ jsx150("div", { className: "flex w-11 justify-center content-md:w-12", children: /* @__PURE__ */ jsx150(TouchFriendlyTooltip, { content: systemTooltip, children: /* @__PURE__ */ jsx150(
|
|
18182
18241
|
"button",
|
|
18183
18242
|
{
|
|
18184
18243
|
type: "button",
|
|
@@ -18195,7 +18254,7 @@ function TicketStatusConfigRow({
|
|
|
18195
18254
|
"aria-label": "Delete status",
|
|
18196
18255
|
disabled: deleteDisabled,
|
|
18197
18256
|
onClick: deleteDisabled ? void 0 : onDelete,
|
|
18198
|
-
className: cn("size-11 md:size-12", deleteDisabled && "pointer-events-none"),
|
|
18257
|
+
className: cn("size-11 content-md:size-12", deleteDisabled && "pointer-events-none"),
|
|
18199
18258
|
children: /* @__PURE__ */ jsx150(TrashIcon, { className: "text-ods-error" })
|
|
18200
18259
|
}
|
|
18201
18260
|
) }) })
|
|
@@ -18225,7 +18284,7 @@ var SKELETON_COLUMNS = 6;
|
|
|
18225
18284
|
function TestResultsSkeleton() {
|
|
18226
18285
|
return /* @__PURE__ */ jsx151(ScrollShadow, { axis: "horizontal", children: /* @__PURE__ */ jsxs117("div", { className: "flex w-max min-w-full flex-col", children: [
|
|
18227
18286
|
/* @__PURE__ */ jsx151("div", { className: "flex items-center gap-[var(--spacing-system-mf)] px-[var(--spacing-system-mf)]", children: Array.from({ length: SKELETON_COLUMNS }).map((_, i) => /* @__PURE__ */ jsx151("div", { className: "flex h-12 w-[160px] shrink-0 items-center", children: /* @__PURE__ */ jsx151("div", { className: "h-4 w-3/4 animate-pulse rounded-sm bg-ods-bg-surface" }) }, `skeleton-header-${i}`)) }),
|
|
18228
|
-
/* @__PURE__ */ jsx151("div", { className: "animate-pulse overflow-hidden rounded-[6px] border border-ods-border bg-ods-card", children: /* @__PURE__ */ jsx151("div", { className: "flex h-[66px] items-center gap-[var(--spacing-system-mf)] px-[var(--spacing-system-mf)] md:h-[78px]", children: Array.from({ length: SKELETON_COLUMNS }).map((_, i) => /* @__PURE__ */ jsx151("div", { className: "w-[160px] shrink-0", children: /* @__PURE__ */ jsx151("div", { className: "h-5 w-3/4 rounded-sm bg-ods-bg-surface" }) }, `skeleton-cell-${i}`)) }) })
|
|
18287
|
+
/* @__PURE__ */ jsx151("div", { className: "animate-pulse overflow-hidden rounded-[6px] border border-ods-border bg-ods-card", children: /* @__PURE__ */ jsx151("div", { className: "flex h-[66px] items-center gap-[var(--spacing-system-mf)] px-[var(--spacing-system-mf)] content-md:h-[78px]", children: Array.from({ length: SKELETON_COLUMNS }).map((_, i) => /* @__PURE__ */ jsx151("div", { className: "w-[160px] shrink-0", children: /* @__PURE__ */ jsx151("div", { className: "h-5 w-3/4 rounded-sm bg-ods-bg-surface" }) }, `skeleton-cell-${i}`)) }) })
|
|
18229
18288
|
] }) });
|
|
18230
18289
|
}
|
|
18231
18290
|
function TestResultsTable({ rows, loading }) {
|
|
@@ -18605,7 +18664,7 @@ function TicketNotesSection({
|
|
|
18605
18664
|
onClick: handleSend,
|
|
18606
18665
|
disabled: !noteText.trim() || isAddingNote,
|
|
18607
18666
|
className: cn(
|
|
18608
|
-
"flex h-11 w-11 shrink-0 items-center justify-center rounded-[6px] md:h-12 md:w-12",
|
|
18667
|
+
"flex h-11 w-11 shrink-0 items-center justify-center rounded-[6px] content-md:h-12 content-md:w-12",
|
|
18609
18668
|
"border border-ods-border bg-ods-card",
|
|
18610
18669
|
"transition-colors hover:bg-ods-bg-hover",
|
|
18611
18670
|
"disabled:cursor-not-allowed disabled:opacity-50"
|
|
@@ -18669,7 +18728,7 @@ function TicketInfoSection({
|
|
|
18669
18728
|
isAddingNote
|
|
18670
18729
|
}) {
|
|
18671
18730
|
return /* @__PURE__ */ jsxs122("div", { className: cn("overflow-hidden rounded-[6px] border border-ods-border", className), children: [
|
|
18672
|
-
/* @__PURE__ */ jsxs122("div", { className: "grid grid-cols-2 items-center gap-4 border-b border-ods-border bg-ods-card px-4 py-3 lg:grid-cols-[1fr_1fr_1fr_auto]", children: [
|
|
18731
|
+
/* @__PURE__ */ jsxs122("div", { className: "grid grid-cols-2 items-center gap-4 border-b border-ods-border bg-ods-card px-4 py-3 content-lg:grid-cols-[1fr_1fr_1fr_auto]", children: [
|
|
18673
18732
|
/* @__PURE__ */ jsxs122("div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
18674
18733
|
/* @__PURE__ */ jsx156(
|
|
18675
18734
|
SquareAvatar,
|
|
@@ -21092,7 +21151,7 @@ function ProviderButton({ provider, onClick, disabled = false, loading = false }
|
|
|
21092
21151
|
variant: "outline",
|
|
21093
21152
|
size: "default",
|
|
21094
21153
|
leftIcon: isLoading ? null : /* @__PURE__ */ jsx191(IconComponent, { className: "h-5 w-5" }),
|
|
21095
|
-
className: `h-[56px] w-full !font-bold !text-h6 hover:bg-ods-bg-hover md:!w-full ${isLoading ? "cursor-wait" : "cursor-pointer"} `,
|
|
21154
|
+
className: `h-[56px] w-full !font-bold !text-h6 hover:bg-ods-bg-hover content-md:!w-full ${isLoading ? "cursor-wait" : "cursor-pointer"} `,
|
|
21096
21155
|
"aria-label": config.displayName,
|
|
21097
21156
|
children: isLoading ? "Signing in..." : config.displayName
|
|
21098
21157
|
}
|
|
@@ -21461,7 +21520,7 @@ function CommandBox({
|
|
|
21461
21520
|
}
|
|
21462
21521
|
)
|
|
21463
21522
|
] }) : commandText,
|
|
21464
|
-
(primaryAction || secondaryAction) && /* @__PURE__ */ jsxs153("div", { className: "mt-4 flex flex-col gap-3 md:flex-row md:justify-end", children: [
|
|
21523
|
+
(primaryAction || secondaryAction) && /* @__PURE__ */ jsxs153("div", { className: "mt-4 flex flex-col gap-3 content-md:flex-row content-md:justify-end", children: [
|
|
21465
21524
|
secondaryAction && /* @__PURE__ */ jsx196(
|
|
21466
21525
|
Button,
|
|
21467
21526
|
{
|
|
@@ -21470,7 +21529,7 @@ function CommandBox({
|
|
|
21470
21529
|
onClick: secondaryAction.onClick,
|
|
21471
21530
|
disabled: secondaryAction.disabled,
|
|
21472
21531
|
loading: secondaryAction.loading,
|
|
21473
|
-
className: "w-full md:w-auto",
|
|
21532
|
+
className: "w-full content-md:w-auto",
|
|
21474
21533
|
children: secondaryAction.label
|
|
21475
21534
|
}
|
|
21476
21535
|
),
|
|
@@ -21482,7 +21541,7 @@ function CommandBox({
|
|
|
21482
21541
|
onClick: primaryAction.onClick,
|
|
21483
21542
|
disabled: primaryAction.disabled,
|
|
21484
21543
|
loading: primaryAction.loading,
|
|
21485
|
-
className: "w-full md:w-auto",
|
|
21544
|
+
className: "w-full content-md:w-auto",
|
|
21486
21545
|
children: primaryAction.label
|
|
21487
21546
|
}
|
|
21488
21547
|
)
|
|
@@ -21583,7 +21642,7 @@ var SectionButton = ({
|
|
|
21583
21642
|
isActive && activeButtonClassName,
|
|
21584
21643
|
layout === "vertical" ? (
|
|
21585
21644
|
// Strip below lg: a compact, non-shrinking tab. Side list from lg: the full card.
|
|
21586
|
-
"!h-auto !min-h-12 shrink-0 !px-[var(--spacing-system-mf)] !py-[var(--spacing-system-sf)] lg:!min-h-[var(--section-min-height)] lg:shrink lg:!py-[var(--spacing-system-mf)]"
|
|
21645
|
+
"!h-auto !min-h-12 shrink-0 !px-[var(--spacing-system-mf)] !py-[var(--spacing-system-sf)] content-lg:!min-h-[var(--section-min-height)] content-lg:shrink content-lg:!py-[var(--spacing-system-mf)]"
|
|
21587
21646
|
) : "!h-auto !min-h-[76px] !whitespace-normal !text-left"
|
|
21588
21647
|
),
|
|
21589
21648
|
style: {
|
|
@@ -21603,7 +21662,16 @@ var SectionButton = ({
|
|
|
21603
21662
|
section.number && /* @__PURE__ */ jsx198("span", { className: cn(numberClasses, "shrink-0 text-h3"), children: section.number }),
|
|
21604
21663
|
/* @__PURE__ */ jsxs155("div", { className: "min-w-0 flex-1 text-left", children: [
|
|
21605
21664
|
/* @__PURE__ */ jsxs155("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
21606
|
-
/* @__PURE__ */ jsx198(
|
|
21665
|
+
/* @__PURE__ */ jsx198(
|
|
21666
|
+
"p",
|
|
21667
|
+
{
|
|
21668
|
+
className: cn(
|
|
21669
|
+
titleClasses,
|
|
21670
|
+
"whitespace-nowrap text-h4 content-lg:whitespace-normal content-lg:break-words"
|
|
21671
|
+
),
|
|
21672
|
+
children: section.title
|
|
21673
|
+
}
|
|
21674
|
+
),
|
|
21607
21675
|
section.badge && /* @__PURE__ */ jsx198(
|
|
21608
21676
|
StatusBadge,
|
|
21609
21677
|
{
|
|
@@ -21613,7 +21681,7 @@ var SectionButton = ({
|
|
|
21613
21681
|
}
|
|
21614
21682
|
)
|
|
21615
21683
|
] }),
|
|
21616
|
-
section.description && showDescription && /* @__PURE__ */ jsx198("p", { className: cn(subtitleClasses, "mt-1 hidden whitespace-normal break-words text-h6 lg:block"), children: section.description })
|
|
21684
|
+
section.description && showDescription && /* @__PURE__ */ jsx198("p", { className: cn(subtitleClasses, "mt-1 hidden whitespace-normal break-words text-h6 content-lg:block"), children: section.description })
|
|
21617
21685
|
] })
|
|
21618
21686
|
] })
|
|
21619
21687
|
) : (
|
|
@@ -21653,7 +21721,7 @@ var SectionSelector = ({
|
|
|
21653
21721
|
showDescription = true
|
|
21654
21722
|
}) => {
|
|
21655
21723
|
const containerClasses = cn(
|
|
21656
|
-
layout === "wrap" ? "flex flex-wrap gap-2 md:gap-4 lg:gap-6" : "flex flex-row gap-[var(--spacing-system-xsf)] overflow-x-auto [scrollbar-width:none] lg:flex-col lg:overflow-visible [&::-webkit-scrollbar]:hidden",
|
|
21724
|
+
layout === "wrap" ? "flex flex-wrap gap-2 content-md:gap-4 content-lg:gap-6" : "flex flex-row gap-[var(--spacing-system-xsf)] overflow-x-auto [scrollbar-width:none] content-lg:flex-col content-lg:overflow-visible [&::-webkit-scrollbar]:hidden",
|
|
21657
21725
|
className
|
|
21658
21726
|
);
|
|
21659
21727
|
const listRef = useRef29(null);
|
|
@@ -21686,7 +21754,7 @@ var SectionSelector = ({
|
|
|
21686
21754
|
case "full":
|
|
21687
21755
|
return "w-full";
|
|
21688
21756
|
case "responsive":
|
|
21689
|
-
return "w-full md:w-[calc(50%-8px)] lg:w-auto";
|
|
21757
|
+
return "w-full content-md:w-[calc(50%-8px)] content-lg:w-auto";
|
|
21690
21758
|
default:
|
|
21691
21759
|
return "";
|
|
21692
21760
|
}
|
|
@@ -21846,7 +21914,10 @@ function UnifiedUI({ state, handlers, config, iframeRef }) {
|
|
|
21846
21914
|
return /* @__PURE__ */ jsxs156(
|
|
21847
21915
|
"div",
|
|
21848
21916
|
{
|
|
21849
|
-
className: cn(
|
|
21917
|
+
className: cn(
|
|
21918
|
+
config.hideControls ? "" : "grid grid-cols-1 gap-10 content-lg:grid-cols-[296px_1fr]",
|
|
21919
|
+
config.className
|
|
21920
|
+
),
|
|
21850
21921
|
children: [
|
|
21851
21922
|
showSectionSelector && !config.hideControls && /* @__PURE__ */ jsx199("div", { style: { zIndex: 10 }, children: /* @__PURE__ */ jsx199(
|
|
21852
21923
|
SectionSelector,
|
|
@@ -22904,90 +22975,96 @@ function MediaGalleryManager({
|
|
|
22904
22975
|
] }),
|
|
22905
22976
|
/* @__PURE__ */ jsx204("p", { className: "text-ods-text-secondary text-h6", children: "Drag to reorder" })
|
|
22906
22977
|
] }),
|
|
22907
|
-
/* @__PURE__ */ jsxs159(
|
|
22908
|
-
|
|
22909
|
-
|
|
22910
|
-
|
|
22911
|
-
|
|
22912
|
-
|
|
22913
|
-
|
|
22914
|
-
|
|
22915
|
-
|
|
22916
|
-
|
|
22917
|
-
|
|
22918
|
-
|
|
22919
|
-
|
|
22920
|
-
|
|
22921
|
-
|
|
22922
|
-
|
|
22923
|
-
|
|
22924
|
-
|
|
22925
|
-
|
|
22926
|
-
"aria-label": `Remove ${item.title || "media"}`,
|
|
22927
|
-
onClick: () => onChange(media.filter((_, i) => i !== index)),
|
|
22928
|
-
className: "h-8 w-8 border-ods-error bg-ods-error p-0 hover:bg-ods-error-hover",
|
|
22929
|
-
children: /* @__PURE__ */ jsx204(Trash23, { className: "h-4 w-4 text-ods-text-on-dark" })
|
|
22930
|
-
}
|
|
22931
|
-
) }),
|
|
22932
|
-
/* @__PURE__ */ jsx204("div", { className: "relative aspect-video overflow-hidden rounded-lg bg-ods-bg", children: isVideoItem(item) ? (
|
|
22933
|
-
// <Video> SSOT (MuxPlayer): plays Mux HLS and MP4 alike; fit="cover" crops to the cell.
|
|
22934
|
-
/* @__PURE__ */ jsx204(Video, { kind: "file", url: item.media_url, fit: "cover", className: "h-full w-full" })
|
|
22935
|
-
) : /* @__PURE__ */ jsx204(
|
|
22936
|
-
next_image_default,
|
|
22937
|
-
{
|
|
22938
|
-
src: item.media_url,
|
|
22939
|
-
alt: item.title || "Media",
|
|
22940
|
-
fill: true,
|
|
22941
|
-
className: "object-cover",
|
|
22942
|
-
sizes: "(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"
|
|
22943
|
-
}
|
|
22944
|
-
) }),
|
|
22945
|
-
editableDetails ? /* @__PURE__ */ jsxs159("div", { className: "space-y-2 p-3", children: [
|
|
22946
|
-
/* @__PURE__ */ jsxs159("div", { className: "flex items-center gap-2", children: [
|
|
22947
|
-
isVideoItem(item) ? /* @__PURE__ */ jsx204(VideoIcon, { className: "h-5 w-5 text-ods-text-secondary" }) : /* @__PURE__ */ jsx204(ImageIcon2, { className: "h-5 w-5 text-ods-text-secondary" }),
|
|
22948
|
-
/* @__PURE__ */ jsxs159(
|
|
22949
|
-
Select,
|
|
22978
|
+
/* @__PURE__ */ jsxs159(
|
|
22979
|
+
"div",
|
|
22980
|
+
{
|
|
22981
|
+
className: cn("grid grid-cols-1 gap-4 content-md:grid-cols-2", columns === 3 && "content-lg:grid-cols-3"),
|
|
22982
|
+
children: [
|
|
22983
|
+
media.map((item, index) => /* @__PURE__ */ jsxs159(
|
|
22984
|
+
Card,
|
|
22985
|
+
{
|
|
22986
|
+
className: "group relative border-ods-border transition-colors hover:border-ods-accent/30",
|
|
22987
|
+
draggable: true,
|
|
22988
|
+
onDragStart: () => setDraggedIndex(index),
|
|
22989
|
+
onDragOver: (event) => {
|
|
22990
|
+
if (!isFileDrag(event)) event.preventDefault();
|
|
22991
|
+
},
|
|
22992
|
+
onDrop: (event) => handleTileDrop(event, index),
|
|
22993
|
+
children: [
|
|
22994
|
+
/* @__PURE__ */ jsx204("div", { className: "absolute left-2 top-2 z-10 cursor-move opacity-0 transition-opacity group-hover:opacity-100", children: /* @__PURE__ */ jsx204(GripVertical, { className: "h-4 w-4 text-ods-text-on-dark drop-shadow" }) }),
|
|
22995
|
+
/* @__PURE__ */ jsx204("div", { className: "absolute right-2 top-2 z-10 opacity-0 transition-opacity group-hover:opacity-100", children: /* @__PURE__ */ jsx204(
|
|
22996
|
+
Button,
|
|
22950
22997
|
{
|
|
22951
|
-
|
|
22952
|
-
|
|
22953
|
-
|
|
22954
|
-
|
|
22955
|
-
|
|
22956
|
-
|
|
22957
|
-
|
|
22958
|
-
/* @__PURE__ */ jsx204(SelectItem, { value: "screenshot", children: "Screenshot" }),
|
|
22959
|
-
/* @__PURE__ */ jsx204(SelectItem, { value: "demo", children: "Demo" })
|
|
22960
|
-
] })
|
|
22961
|
-
]
|
|
22998
|
+
type: "button",
|
|
22999
|
+
variant: "outline",
|
|
23000
|
+
size: "small-legacy",
|
|
23001
|
+
"aria-label": `Remove ${item.title || "media"}`,
|
|
23002
|
+
onClick: () => onChange(media.filter((_, i) => i !== index)),
|
|
23003
|
+
className: "h-8 w-8 border-ods-error bg-ods-error p-0 hover:bg-ods-error-hover",
|
|
23004
|
+
children: /* @__PURE__ */ jsx204(Trash23, { className: "h-4 w-4 text-ods-text-on-dark" })
|
|
22962
23005
|
}
|
|
22963
|
-
)
|
|
22964
|
-
|
|
22965
|
-
|
|
22966
|
-
|
|
22967
|
-
|
|
22968
|
-
|
|
22969
|
-
|
|
22970
|
-
|
|
22971
|
-
|
|
22972
|
-
|
|
22973
|
-
|
|
22974
|
-
|
|
22975
|
-
|
|
22976
|
-
|
|
22977
|
-
|
|
22978
|
-
|
|
22979
|
-
|
|
22980
|
-
|
|
22981
|
-
|
|
22982
|
-
|
|
22983
|
-
|
|
22984
|
-
|
|
22985
|
-
|
|
22986
|
-
|
|
22987
|
-
|
|
22988
|
-
|
|
22989
|
-
|
|
22990
|
-
|
|
23006
|
+
) }),
|
|
23007
|
+
/* @__PURE__ */ jsx204("div", { className: "relative aspect-video overflow-hidden rounded-lg bg-ods-bg", children: isVideoItem(item) ? (
|
|
23008
|
+
// <Video> SSOT (MuxPlayer): plays Mux HLS and MP4 alike; fit="cover" crops to the cell.
|
|
23009
|
+
/* @__PURE__ */ jsx204(Video, { kind: "file", url: item.media_url, fit: "cover", className: "h-full w-full" })
|
|
23010
|
+
) : /* @__PURE__ */ jsx204(
|
|
23011
|
+
next_image_default,
|
|
23012
|
+
{
|
|
23013
|
+
src: item.media_url,
|
|
23014
|
+
alt: item.title || "Media",
|
|
23015
|
+
fill: true,
|
|
23016
|
+
className: "object-cover",
|
|
23017
|
+
sizes: "(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"
|
|
23018
|
+
}
|
|
23019
|
+
) }),
|
|
23020
|
+
editableDetails ? /* @__PURE__ */ jsxs159("div", { className: "space-y-2 p-3", children: [
|
|
23021
|
+
/* @__PURE__ */ jsxs159("div", { className: "flex items-center gap-2", children: [
|
|
23022
|
+
isVideoItem(item) ? /* @__PURE__ */ jsx204(VideoIcon, { className: "h-5 w-5 text-ods-text-secondary" }) : /* @__PURE__ */ jsx204(ImageIcon2, { className: "h-5 w-5 text-ods-text-secondary" }),
|
|
23023
|
+
/* @__PURE__ */ jsxs159(
|
|
23024
|
+
Select,
|
|
23025
|
+
{
|
|
23026
|
+
value: item.media_type,
|
|
23027
|
+
onValueChange: (value) => update(index, { media_type: value }),
|
|
23028
|
+
children: [
|
|
23029
|
+
/* @__PURE__ */ jsx204(SelectTrigger, { className: "h-8 bg-ods-bg text-h6", children: /* @__PURE__ */ jsx204(SelectValue, {}) }),
|
|
23030
|
+
/* @__PURE__ */ jsxs159(SelectContent, { className: "bg-ods-card", children: [
|
|
23031
|
+
/* @__PURE__ */ jsx204(SelectItem, { value: "image", children: "Image" }),
|
|
23032
|
+
/* @__PURE__ */ jsx204(SelectItem, { value: "video", children: "Video" }),
|
|
23033
|
+
/* @__PURE__ */ jsx204(SelectItem, { value: "screenshot", children: "Screenshot" }),
|
|
23034
|
+
/* @__PURE__ */ jsx204(SelectItem, { value: "demo", children: "Demo" })
|
|
23035
|
+
] })
|
|
23036
|
+
]
|
|
23037
|
+
}
|
|
23038
|
+
)
|
|
23039
|
+
] }),
|
|
23040
|
+
/* @__PURE__ */ jsx204(
|
|
23041
|
+
Input,
|
|
23042
|
+
{
|
|
23043
|
+
placeholder: "Title (optional)",
|
|
23044
|
+
value: item.title ?? "",
|
|
23045
|
+
onChange: (event) => update(index, { title: event.target.value }),
|
|
23046
|
+
onKeyDown: (event) => event.key === "Enter" && event.preventDefault(),
|
|
23047
|
+
className: "h-8 bg-ods-bg text-h6"
|
|
23048
|
+
}
|
|
23049
|
+
)
|
|
23050
|
+
] }) : /* @__PURE__ */ jsxs159("div", { className: "p-3", children: [
|
|
23051
|
+
/* @__PURE__ */ jsxs159("div", { className: "mb-1 flex items-center gap-2", children: [
|
|
23052
|
+
isVideoItem(item) ? /* @__PURE__ */ jsx204(VideoIcon, { className: "h-4 w-4 text-ods-text-secondary" }) : /* @__PURE__ */ jsx204(ImageIcon2, { className: "h-4 w-4 text-ods-text-secondary" }),
|
|
23053
|
+
/* @__PURE__ */ jsx204("span", { className: "capitalize text-ods-text-primary text-h6", children: item.media_type })
|
|
23054
|
+
] }),
|
|
23055
|
+
item.title && /* @__PURE__ */ jsx204("p", { className: "truncate text-ods-text-secondary text-h6", children: item.title })
|
|
23056
|
+
] })
|
|
23057
|
+
]
|
|
23058
|
+
},
|
|
23059
|
+
item.id ?? `${item.media_url}-${index}`
|
|
23060
|
+
)),
|
|
23061
|
+
pending.map((name, index) => /* @__PURE__ */ jsxs159(Card, { className: "border-ods-border", "aria-busy": "true", children: [
|
|
23062
|
+
/* @__PURE__ */ jsx204("div", { className: "flex aspect-video items-center justify-center rounded-lg bg-ods-bg", children: /* @__PURE__ */ jsx204(Loader26, { className: "h-8 w-8 animate-spin text-ods-accent" }) }),
|
|
23063
|
+
/* @__PURE__ */ jsx204("p", { className: "truncate p-3 text-ods-text-secondary text-h6", children: name })
|
|
23064
|
+
] }, `pending-${name}-${index}`))
|
|
23065
|
+
]
|
|
23066
|
+
}
|
|
23067
|
+
)
|
|
22991
23068
|
] })
|
|
22992
23069
|
] });
|
|
22993
23070
|
}
|
|
@@ -23099,7 +23176,7 @@ var ParallaxImageShowcase = ({
|
|
|
23099
23176
|
const centerImage = images.find((img) => img.position === "center");
|
|
23100
23177
|
const rightImage = images.find((img) => img.position === "right");
|
|
23101
23178
|
if (layout === "grid") {
|
|
23102
|
-
return /* @__PURE__ */ jsx207("div", { ref: componentRef, className: `relative flex h-full w-full items-center ${className}`, children: /* @__PURE__ */ jsxs161("div", { className: "grid w-full grid-cols-1 gap-4 md:grid-cols-3", children: [
|
|
23179
|
+
return /* @__PURE__ */ jsx207("div", { ref: componentRef, className: `relative flex h-full w-full items-center ${className}`, children: /* @__PURE__ */ jsxs161("div", { className: "grid w-full grid-cols-1 gap-4 content-md:grid-cols-3", children: [
|
|
23103
23180
|
leftImage && /* @__PURE__ */ jsx207(
|
|
23104
23181
|
motion.div,
|
|
23105
23182
|
{
|
|
@@ -23172,23 +23249,30 @@ var ParallaxImageShowcase = ({
|
|
|
23172
23249
|
return /* @__PURE__ */ jsxs161("div", { ref: componentRef, className: `relative h-full w-full overflow-hidden ${className}`, children: [
|
|
23173
23250
|
logoElement && /* @__PURE__ */ jsx207("div", { className: "absolute left-1/2 top-4 z-30 -translate-x-1/2 scale-50", children: logoElement }),
|
|
23174
23251
|
/* @__PURE__ */ jsxs161("div", { className: "absolute inset-x-0 top-32 h-80", children: [
|
|
23175
|
-
leftImage && /* @__PURE__ */ jsxs161(
|
|
23176
|
-
|
|
23177
|
-
|
|
23178
|
-
|
|
23179
|
-
|
|
23180
|
-
|
|
23181
|
-
|
|
23182
|
-
|
|
23183
|
-
|
|
23184
|
-
|
|
23185
|
-
|
|
23186
|
-
|
|
23187
|
-
|
|
23252
|
+
leftImage && /* @__PURE__ */ jsxs161(
|
|
23253
|
+
motion.div,
|
|
23254
|
+
{
|
|
23255
|
+
className: "absolute left-20 z-10 h-full w-full content-lg:w-1/2",
|
|
23256
|
+
style: { x, y, rotate },
|
|
23257
|
+
children: [
|
|
23258
|
+
/* @__PURE__ */ jsx207(
|
|
23259
|
+
next_image_default,
|
|
23260
|
+
{
|
|
23261
|
+
src: leftImage.src,
|
|
23262
|
+
alt: leftImage.alt,
|
|
23263
|
+
fill: true,
|
|
23264
|
+
sizes: "50vw",
|
|
23265
|
+
className: "ods-card/50 border border-ods-border object-cover object-[left_top]"
|
|
23266
|
+
}
|
|
23267
|
+
),
|
|
23268
|
+
/* @__PURE__ */ jsx207("div", { className: "absolute inset-0 shadow-2xl" })
|
|
23269
|
+
]
|
|
23270
|
+
}
|
|
23271
|
+
),
|
|
23188
23272
|
centerImage && /* @__PURE__ */ jsxs161(
|
|
23189
23273
|
motion.div,
|
|
23190
23274
|
{
|
|
23191
|
-
className: "absolute right-20 top-20 z-20 h-full w-full lg:w-1/2",
|
|
23275
|
+
className: "absolute right-20 top-20 z-20 h-full w-full content-lg:w-1/2",
|
|
23192
23276
|
style: { x, y, rotate },
|
|
23193
23277
|
children: [
|
|
23194
23278
|
/* @__PURE__ */ jsx207(
|
|
@@ -23212,7 +23296,7 @@ var ParallaxImageShowcase = ({
|
|
|
23212
23296
|
rightImage && /* @__PURE__ */ jsx207(
|
|
23213
23297
|
motion.div,
|
|
23214
23298
|
{
|
|
23215
|
-
className: "absolute right-[5%] top-[5%] z-[1] h-[60%] w-[80%] lg:right-[-15%] lg:top-[-10%] lg:h-[85%] lg:w-[120%]",
|
|
23299
|
+
className: "absolute right-[5%] top-[5%] z-[1] h-[60%] w-[80%] content-lg:right-[-15%] content-lg:top-[-10%] content-lg:h-[85%] content-lg:w-[120%]",
|
|
23216
23300
|
style: {
|
|
23217
23301
|
x,
|
|
23218
23302
|
y,
|
|
@@ -23233,7 +23317,7 @@ var ParallaxImageShowcase = ({
|
|
|
23233
23317
|
centerImage && /* @__PURE__ */ jsx207(
|
|
23234
23318
|
motion.div,
|
|
23235
23319
|
{
|
|
23236
|
-
className: "absolute bottom-[10%] right-[0%] z-[2] h-[55%] w-[75%] lg:bottom-[-15%] lg:right-[-20%] lg:h-[80%] lg:w-[100%]",
|
|
23320
|
+
className: "absolute bottom-[10%] right-[0%] z-[2] h-[55%] w-[75%] content-lg:bottom-[-15%] content-lg:right-[-20%] content-lg:h-[80%] content-lg:w-[100%]",
|
|
23237
23321
|
style: {
|
|
23238
23322
|
x,
|
|
23239
23323
|
y,
|
|
@@ -23254,7 +23338,7 @@ var ParallaxImageShowcase = ({
|
|
|
23254
23338
|
leftImage && /* @__PURE__ */ jsx207(
|
|
23255
23339
|
motion.div,
|
|
23256
23340
|
{
|
|
23257
|
-
className: "absolute left-[-5%] top-[10%] z-[3] h-[65%] w-[85%] lg:left-[-25%] lg:top-[0%] lg:h-[90%] lg:w-[110%]",
|
|
23341
|
+
className: "absolute left-[-5%] top-[10%] z-[3] h-[65%] w-[85%] content-lg:left-[-25%] content-lg:top-[0%] content-lg:h-[90%] content-lg:w-[110%]",
|
|
23258
23342
|
style: {
|
|
23259
23343
|
x,
|
|
23260
23344
|
y,
|
|
@@ -23426,7 +23510,7 @@ function VendorCardContent({ showMetadata }) {
|
|
|
23426
23510
|
/* @__PURE__ */ jsx210(TextSkeleton.Body, { className: "w-2/3" })
|
|
23427
23511
|
] }) }),
|
|
23428
23512
|
showMetadata && /* @__PURE__ */ jsxs164("div", { className: "flex w-full min-w-0 items-center justify-between gap-2", children: [
|
|
23429
|
-
/* @__PURE__ */ jsxs164("div", { className: "flex min-w-0 flex-shrink items-center gap-3 md:gap-4", children: [
|
|
23513
|
+
/* @__PURE__ */ jsxs164("div", { className: "flex min-w-0 flex-shrink items-center gap-3 content-md:gap-4", children: [
|
|
23430
23514
|
/* @__PURE__ */ jsxs164("div", { className: "flex flex-shrink-0 items-center gap-1", children: [
|
|
23431
23515
|
/* @__PURE__ */ jsx210(MediaSkeleton.Icon, { size: "sm", className: "h-5 w-5" }),
|
|
23432
23516
|
/* @__PURE__ */ jsx210(TextSkeleton.Caption, { className: "w-8" })
|
|
@@ -23447,7 +23531,7 @@ function BlogCardContent({ showActions, showMetadata }) {
|
|
|
23447
23531
|
return /* @__PURE__ */ jsxs164(Fragment36, { children: [
|
|
23448
23532
|
/* @__PURE__ */ jsx210("div", { className: "blog-card-image-container relative aspect-[1200/630] w-full overflow-hidden bg-ods-bg", children: /* @__PURE__ */ jsx210(MediaSkeleton.CardImage, {}) }),
|
|
23449
23533
|
/* @__PURE__ */ jsxs164("div", { className: "flex flex-grow flex-col p-4", children: [
|
|
23450
|
-
/* @__PURE__ */ jsx210("div", { className: "mb-3 flex min-h-[50.4px] items-center md:min-h-[56px] lg:min-h-[61.6px]", children: /* @__PURE__ */ jsxs164("div", { className: "w-full space-y-1", children: [
|
|
23534
|
+
/* @__PURE__ */ jsx210("div", { className: "mb-3 flex min-h-[50.4px] items-center content-md:min-h-[56px] content-lg:min-h-[61.6px]", children: /* @__PURE__ */ jsxs164("div", { className: "w-full space-y-1", children: [
|
|
23451
23535
|
/* @__PURE__ */ jsx210(TextSkeleton.Subheading, { className: "w-full" }),
|
|
23452
23536
|
/* @__PURE__ */ jsx210(TextSkeleton.Subheading, { className: "w-3/4" })
|
|
23453
23537
|
] }) }),
|
|
@@ -23455,7 +23539,7 @@ function BlogCardContent({ showActions, showMetadata }) {
|
|
|
23455
23539
|
/* @__PURE__ */ jsx210(InteractiveSkeleton.Chip, { className: "w-16" }),
|
|
23456
23540
|
/* @__PURE__ */ jsx210(InteractiveSkeleton.Chip, { className: "w-12" })
|
|
23457
23541
|
] }),
|
|
23458
|
-
/* @__PURE__ */ jsx210("div", { className: "mb-3 flex min-h-[42px] items-center md:min-h-[45px] lg:min-h-[48px]", children: /* @__PURE__ */ jsxs164("div", { className: "w-full space-y-1", children: [
|
|
23542
|
+
/* @__PURE__ */ jsx210("div", { className: "mb-3 flex min-h-[42px] items-center content-md:min-h-[45px] content-lg:min-h-[48px]", children: /* @__PURE__ */ jsxs164("div", { className: "w-full space-y-1", children: [
|
|
23459
23543
|
/* @__PURE__ */ jsx210(TextSkeleton.Body, { className: "w-full" }),
|
|
23460
23544
|
/* @__PURE__ */ jsx210(TextSkeleton.Body, { className: "w-1/2" })
|
|
23461
23545
|
] }) }),
|
|
@@ -23475,19 +23559,19 @@ function BlogCardContent({ showActions, showMetadata }) {
|
|
|
23475
23559
|
] });
|
|
23476
23560
|
}
|
|
23477
23561
|
function CategoryCardContent() {
|
|
23478
|
-
return /* @__PURE__ */ jsxs164("div", { className: "space-y-4 p-4 md:p-6", children: [
|
|
23479
|
-
/* @__PURE__ */ jsx210("div", { className: "flex gap-2 md:gap-3", children: Array.from({ length: 6 }).map((_, index) => /* @__PURE__ */ jsx210(MediaSkeleton.Icon, { size: "lg", className: "flex-shrink-0" }, index)) }),
|
|
23562
|
+
return /* @__PURE__ */ jsxs164("div", { className: "space-y-4 p-4 content-md:p-6", children: [
|
|
23563
|
+
/* @__PURE__ */ jsx210("div", { className: "flex gap-2 content-md:gap-3", children: Array.from({ length: 6 }).map((_, index) => /* @__PURE__ */ jsx210(MediaSkeleton.Icon, { size: "lg", className: "flex-shrink-0" }, index)) }),
|
|
23480
23564
|
/* @__PURE__ */ jsxs164("div", { className: "space-y-2", children: [
|
|
23481
23565
|
/* @__PURE__ */ jsxs164("div", { className: "space-y-1", children: [
|
|
23482
23566
|
/* @__PURE__ */ jsx210(TextSkeleton.Subheading, { className: "w-3/4" }),
|
|
23483
23567
|
/* @__PURE__ */ jsx210(TextSkeleton.Caption, { className: "w-1/2" })
|
|
23484
23568
|
] }),
|
|
23485
|
-
/* @__PURE__ */ jsxs164("div", { className: "flex items-start justify-between gap-4 md:items-end md:gap-6", children: [
|
|
23569
|
+
/* @__PURE__ */ jsxs164("div", { className: "flex items-start justify-between gap-4 content-md:items-end content-md:gap-6", children: [
|
|
23486
23570
|
/* @__PURE__ */ jsxs164("div", { className: "flex-1 space-y-2", children: [
|
|
23487
23571
|
/* @__PURE__ */ jsx210(TextSkeleton.Body, { className: "w-full" }),
|
|
23488
23572
|
/* @__PURE__ */ jsx210(TextSkeleton.Body, { className: "w-2/3" })
|
|
23489
23573
|
] }),
|
|
23490
|
-
/* @__PURE__ */ jsx210(InteractiveSkeleton.Button, { className: "h-10 w-10 flex-shrink-0 md:h-12 md:w-12" })
|
|
23574
|
+
/* @__PURE__ */ jsx210(InteractiveSkeleton.Button, { className: "h-10 w-10 flex-shrink-0 content-md:h-12 content-md:w-12" })
|
|
23491
23575
|
] })
|
|
23492
23576
|
] })
|
|
23493
23577
|
] });
|
|
@@ -23519,11 +23603,11 @@ function CardSkeletonGrid({
|
|
|
23519
23603
|
"div",
|
|
23520
23604
|
{
|
|
23521
23605
|
className: cn(
|
|
23522
|
-
"grid gap-4 md:gap-6",
|
|
23606
|
+
"grid gap-4 content-md:gap-6",
|
|
23523
23607
|
// Responsive grid based on card type
|
|
23524
|
-
variant === "vendor" && "grid-cols-1 md:grid-cols-2 lg:grid-cols-3",
|
|
23525
|
-
variant === "blog" && "grid-cols-1 md:grid-cols-2",
|
|
23526
|
-
variant === "category" && "grid-cols-1 md:grid-cols-2 lg:grid-cols-4",
|
|
23608
|
+
variant === "vendor" && "grid-cols-1 content-md:grid-cols-2 content-lg:grid-cols-3",
|
|
23609
|
+
variant === "blog" && "grid-cols-1 content-md:grid-cols-2",
|
|
23610
|
+
variant === "category" && "grid-cols-1 content-md:grid-cols-2 content-lg:grid-cols-4",
|
|
23527
23611
|
variant === "alternative" && "grid-cols-1",
|
|
23528
23612
|
className
|
|
23529
23613
|
),
|
|
@@ -23537,11 +23621,11 @@ function CardSkeletonGrid({
|
|
|
23537
23621
|
// src/components/loading/page-layout-skeleton.tsx
|
|
23538
23622
|
import { Fragment as Fragment37, jsx as jsx211, jsxs as jsxs165 } from "react/jsx-runtime";
|
|
23539
23623
|
function AnnouncementBarSkeleton() {
|
|
23540
|
-
return /* @__PURE__ */ jsx211("div", { className: "relative w-full animate-pulse bg-ods-skeleton", children: /* @__PURE__ */ jsx211("div", { className: "relative flex w-full flex-row items-center", children: /* @__PURE__ */ jsxs165("div", { className: "relative box-border flex w-full flex-row items-center justify-start gap-4 py-3 pl-4 pr-12 md:gap-6 md:py-4 md:pl-6 md:pr-16", children: [
|
|
23541
|
-
/* @__PURE__ */ jsx211("div", { className: "relative h-6 w-6 shrink-0 rounded bg-ods-border md:h-8 md:w-8" }),
|
|
23542
|
-
/* @__PURE__ */ jsxs165("div", { className: "min-w-0 flex-1 space-y-1 md:space-y-2", children: [
|
|
23543
|
-
/* @__PURE__ */ jsx211("div", { className: "h-[14px] w-3/4 max-w-md rounded bg-ods-border md:h-[18px]" }),
|
|
23544
|
-
/* @__PURE__ */ jsx211("div", { className: "hidden h-[12px] w-full max-w-lg rounded bg-ods-border md:block md:h-[18px]" })
|
|
23624
|
+
return /* @__PURE__ */ jsx211("div", { className: "relative w-full animate-pulse bg-ods-skeleton", children: /* @__PURE__ */ jsx211("div", { className: "relative flex w-full flex-row items-center", children: /* @__PURE__ */ jsxs165("div", { className: "relative box-border flex w-full flex-row items-center justify-start gap-4 py-3 pl-4 pr-12 content-md:gap-6 content-md:py-4 content-md:pl-6 content-md:pr-16", children: [
|
|
23625
|
+
/* @__PURE__ */ jsx211("div", { className: "relative h-6 w-6 shrink-0 rounded bg-ods-border content-md:h-8 content-md:w-8" }),
|
|
23626
|
+
/* @__PURE__ */ jsxs165("div", { className: "min-w-0 flex-1 space-y-1 content-md:space-y-2", children: [
|
|
23627
|
+
/* @__PURE__ */ jsx211("div", { className: "h-[14px] w-3/4 max-w-md rounded bg-ods-border content-md:h-[18px]" }),
|
|
23628
|
+
/* @__PURE__ */ jsx211("div", { className: "hidden h-[12px] w-full max-w-lg rounded bg-ods-border content-md:block content-md:h-[18px]" })
|
|
23545
23629
|
] }),
|
|
23546
23630
|
/* @__PURE__ */ jsx211("div", { className: "absolute right-2 top-2 h-6 w-6 rounded bg-ods-border" })
|
|
23547
23631
|
] }) }) });
|
|
@@ -23550,17 +23634,17 @@ function HeroSkeleton() {
|
|
|
23550
23634
|
return /* @__PURE__ */ jsxs165(
|
|
23551
23635
|
"section",
|
|
23552
23636
|
{
|
|
23553
|
-
className: "flex w-full animate-pulse flex-col items-center justify-center px-4 py-12 text-center md:px-8 md:py-20",
|
|
23637
|
+
className: "flex w-full animate-pulse flex-col items-center justify-center px-4 py-12 text-center content-md:px-8 content-md:py-20",
|
|
23554
23638
|
style: {
|
|
23555
23639
|
background: "radial-gradient(circle at 50% 0%, #242323 0%, #1A1A1A 100%)"
|
|
23556
23640
|
},
|
|
23557
23641
|
children: [
|
|
23558
|
-
/* @__PURE__ */ jsx211(TextSkeleton.Heading, { className: "mb-4 h-12 w-full max-w-4xl md:mb-6 md:h-20 lg:h-24" }),
|
|
23559
|
-
/* @__PURE__ */ jsxs165("div", { className: "mb-8 w-full max-w-4xl space-y-3 px-2 md:mb-10", children: [
|
|
23560
|
-
/* @__PURE__ */ jsx211(TextSkeleton.Body, { className: "h-5 md:h-7" }),
|
|
23561
|
-
/* @__PURE__ */ jsx211(TextSkeleton.Body, { className: "mx-auto h-5 w-3/4 md:h-7" })
|
|
23642
|
+
/* @__PURE__ */ jsx211(TextSkeleton.Heading, { className: "mb-4 h-12 w-full max-w-4xl content-md:mb-6 content-md:h-20 content-lg:h-24" }),
|
|
23643
|
+
/* @__PURE__ */ jsxs165("div", { className: "mb-8 w-full max-w-4xl space-y-3 px-2 content-md:mb-10", children: [
|
|
23644
|
+
/* @__PURE__ */ jsx211(TextSkeleton.Body, { className: "h-5 content-md:h-7" }),
|
|
23645
|
+
/* @__PURE__ */ jsx211(TextSkeleton.Body, { className: "mx-auto h-5 w-3/4 content-md:h-7" })
|
|
23562
23646
|
] }),
|
|
23563
|
-
/* @__PURE__ */ jsx211(InteractiveSkeleton.Button, { className: "h-12 w-full md:w-64" })
|
|
23647
|
+
/* @__PURE__ */ jsx211(InteractiveSkeleton.Button, { className: "h-12 w-full content-md:w-64" })
|
|
23564
23648
|
]
|
|
23565
23649
|
}
|
|
23566
23650
|
);
|
|
@@ -23570,9 +23654,9 @@ function SearchContainerSkeleton({
|
|
|
23570
23654
|
showFilters = true
|
|
23571
23655
|
}) {
|
|
23572
23656
|
return /* @__PURE__ */ jsxs165("div", { className: cn("space-y-4", className || ""), children: [
|
|
23573
|
-
/* @__PURE__ */ jsxs165("div", { className: "flex gap-2 md:gap-4", children: [
|
|
23657
|
+
/* @__PURE__ */ jsxs165("div", { className: "flex gap-2 content-md:gap-4", children: [
|
|
23574
23658
|
/* @__PURE__ */ jsx211(InteractiveSkeleton.Input, { className: "flex-1" }),
|
|
23575
|
-
/* @__PURE__ */ jsx211(InteractiveSkeleton.Button, { className: "w-32 md:w-40" })
|
|
23659
|
+
/* @__PURE__ */ jsx211(InteractiveSkeleton.Button, { className: "w-32 content-md:w-40" })
|
|
23576
23660
|
] }),
|
|
23577
23661
|
showFilters && /* @__PURE__ */ jsxs165("div", { className: "flex flex-wrap gap-2", children: [
|
|
23578
23662
|
/* @__PURE__ */ jsx211(InteractiveSkeleton.Chip, {}),
|
|
@@ -23596,7 +23680,7 @@ function CategorySidebarSkeleton({ className }) {
|
|
|
23596
23680
|
{ type: "file", width: "w-28" },
|
|
23597
23681
|
{ type: "file", width: "w-36" }
|
|
23598
23682
|
];
|
|
23599
|
-
return /* @__PURE__ */ jsxs165("div", { className: cn("w-full lg:w-[320px]", className), children: [
|
|
23683
|
+
return /* @__PURE__ */ jsxs165("div", { className: cn("w-full content-lg:w-[320px]", className), children: [
|
|
23600
23684
|
/* @__PURE__ */ jsx211(UnifiedSkeleton, { className: "mb-4 h-[14px] w-24 rounded" }),
|
|
23601
23685
|
/* @__PURE__ */ jsx211("div", { className: "space-y-1.5", children: items.map((item, index) => /* @__PURE__ */ jsxs165(
|
|
23602
23686
|
"div",
|
|
@@ -23632,7 +23716,16 @@ function BreadcrumbSkeleton({ className }) {
|
|
|
23632
23716
|
] });
|
|
23633
23717
|
}
|
|
23634
23718
|
function ResultsHeaderSkeleton({ className }) {
|
|
23635
|
-
return /* @__PURE__ */ jsx211(
|
|
23719
|
+
return /* @__PURE__ */ jsx211(
|
|
23720
|
+
"div",
|
|
23721
|
+
{
|
|
23722
|
+
className: cn(
|
|
23723
|
+
"mb-6 flex flex-col items-start justify-between gap-4 content-md:flex-row content-md:items-center",
|
|
23724
|
+
className
|
|
23725
|
+
),
|
|
23726
|
+
children: /* @__PURE__ */ jsx211("div", { className: "space-y-1", children: /* @__PURE__ */ jsx211(TextSkeleton.Body, { className: "w-48" }) })
|
|
23727
|
+
}
|
|
23728
|
+
);
|
|
23636
23729
|
}
|
|
23637
23730
|
function TwoColumnLayoutSkeleton({
|
|
23638
23731
|
className,
|
|
@@ -23646,13 +23739,13 @@ function TwoColumnLayoutSkeleton({
|
|
|
23646
23739
|
"div",
|
|
23647
23740
|
{
|
|
23648
23741
|
className: cn(
|
|
23649
|
-
"grid grid-cols-1 gap-6 lg:grid-cols-[320px_1fr] lg:gap-8",
|
|
23650
|
-
sidebarPosition === "right" && "lg:grid-cols-[1fr_320px]",
|
|
23742
|
+
"grid grid-cols-1 gap-6 content-lg:grid-cols-[320px_1fr] content-lg:gap-8",
|
|
23743
|
+
sidebarPosition === "right" && "content-lg:grid-cols-[1fr_320px]",
|
|
23651
23744
|
className
|
|
23652
23745
|
),
|
|
23653
23746
|
children: sidebarPosition === "left" ? /* @__PURE__ */ jsxs165(Fragment37, { children: [
|
|
23654
|
-
/* @__PURE__ */ jsx211("aside", { className: "order-2 lg:order-1", children: sidebar }),
|
|
23655
|
-
/* @__PURE__ */ jsx211("main", { className: "order-1 lg:order-2", children: main })
|
|
23747
|
+
/* @__PURE__ */ jsx211("aside", { className: "order-2 content-lg:order-1", children: sidebar }),
|
|
23748
|
+
/* @__PURE__ */ jsx211("main", { className: "order-1 content-lg:order-2", children: main })
|
|
23656
23749
|
] }) : /* @__PURE__ */ jsxs165(Fragment37, { children: [
|
|
23657
23750
|
/* @__PURE__ */ jsx211("main", { className: "order-1", children: main }),
|
|
23658
23751
|
/* @__PURE__ */ jsx211("aside", { className: "order-2", children: sidebar })
|
|
@@ -23662,7 +23755,7 @@ function TwoColumnLayoutSkeleton({
|
|
|
23662
23755
|
}
|
|
23663
23756
|
function ArticleLayoutSkeleton({ className }) {
|
|
23664
23757
|
return /* @__PURE__ */ jsxs165("article", { className: cn("mx-auto max-w-4xl", className), children: [
|
|
23665
|
-
/* @__PURE__ */ jsxs165("header", { className: "mb-8 space-y-4 md:mb-12 md:space-y-6", children: [
|
|
23758
|
+
/* @__PURE__ */ jsxs165("header", { className: "mb-8 space-y-4 content-md:mb-12 content-md:space-y-6", children: [
|
|
23666
23759
|
/* @__PURE__ */ jsxs165("div", { className: "flex gap-2", children: [
|
|
23667
23760
|
/* @__PURE__ */ jsx211(InteractiveSkeleton.Chip, {}),
|
|
23668
23761
|
/* @__PURE__ */ jsx211(InteractiveSkeleton.Chip, { className: "w-16" })
|
|
@@ -23680,7 +23773,7 @@ function ArticleLayoutSkeleton({ className }) {
|
|
|
23680
23773
|
/* @__PURE__ */ jsx211(TextSkeleton.Caption, { className: "w-16" })
|
|
23681
23774
|
] })
|
|
23682
23775
|
] }),
|
|
23683
|
-
/* @__PURE__ */ jsx211("div", { className: "mb-8 md:mb-12", children: /* @__PURE__ */ jsx211(MediaSkeleton.CardImage, { className: "h-64 w-full md:h-96" }) }),
|
|
23776
|
+
/* @__PURE__ */ jsx211("div", { className: "mb-8 content-md:mb-12", children: /* @__PURE__ */ jsx211(MediaSkeleton.CardImage, { className: "h-64 w-full content-md:h-96" }) }),
|
|
23684
23777
|
/* @__PURE__ */ jsxs165("div", { className: "prose prose-invert max-w-none space-y-6", children: [
|
|
23685
23778
|
Array.from({ length: 12 }).map((_, index) => /* @__PURE__ */ jsxs165("div", { className: "space-y-2", children: [
|
|
23686
23779
|
/* @__PURE__ */ jsx211(TextSkeleton.Body, { className: "w-full" }),
|
|
@@ -23699,17 +23792,17 @@ function ArticleLayoutSkeleton({ className }) {
|
|
|
23699
23792
|
] });
|
|
23700
23793
|
}
|
|
23701
23794
|
function VendorDetailLayoutSkeleton({ className }) {
|
|
23702
|
-
return /* @__PURE__ */ jsx211("main", { className: cn("min-h-screen bg-ods-bg", className), children: /* @__PURE__ */ jsxs165("div", { className: "mx-auto max-w-[1920px] px-6 py-6 md:px-20 md:py-10", children: [
|
|
23795
|
+
return /* @__PURE__ */ jsx211("main", { className: cn("min-h-screen bg-ods-bg", className), children: /* @__PURE__ */ jsxs165("div", { className: "mx-auto max-w-[1920px] px-6 py-6 content-md:px-20 content-md:py-10", children: [
|
|
23703
23796
|
/* @__PURE__ */ jsx211(BreadcrumbSkeleton, { className: "mb-6" }),
|
|
23704
|
-
/* @__PURE__ */ jsxs165("div", { className: "flex flex-col lg:flex-row lg:gap-10", children: [
|
|
23797
|
+
/* @__PURE__ */ jsxs165("div", { className: "flex flex-col content-lg:flex-row content-lg:gap-10", children: [
|
|
23705
23798
|
/* @__PURE__ */ jsxs165("div", { className: "min-w-0 flex-1", children: [
|
|
23706
23799
|
/* @__PURE__ */ jsxs165("div", { className: "mb-10", children: [
|
|
23707
23800
|
/* @__PURE__ */ jsxs165("div", { className: "mb-6 flex gap-6", children: [
|
|
23708
23801
|
/* @__PURE__ */ jsx211("div", { className: "h-20 w-20 flex-shrink-0 animate-pulse rounded-lg border border-ods-border bg-ods-card" }),
|
|
23709
23802
|
/* @__PURE__ */ jsxs165("div", { className: "flex flex-col gap-3", children: [
|
|
23710
23803
|
/* @__PURE__ */ jsxs165("div", { className: "flex flex-col gap-2", children: [
|
|
23711
|
-
/* @__PURE__ */ jsx211("div", { className: "h-12 w-80 max-w-full animate-pulse rounded bg-ods-skeleton md:h-16 lg:h-20" }),
|
|
23712
|
-
/* @__PURE__ */ jsx211("div", { className: "h-5 w-32 animate-pulse rounded bg-ods-skeleton md:h-6" })
|
|
23804
|
+
/* @__PURE__ */ jsx211("div", { className: "h-12 w-80 max-w-full animate-pulse rounded bg-ods-skeleton content-md:h-16 content-lg:h-20" }),
|
|
23805
|
+
/* @__PURE__ */ jsx211("div", { className: "h-5 w-32 animate-pulse rounded bg-ods-skeleton content-md:h-6" })
|
|
23713
23806
|
] }),
|
|
23714
23807
|
/* @__PURE__ */ jsxs165("div", { className: "flex items-center gap-2", children: [
|
|
23715
23808
|
/* @__PURE__ */ jsx211("div", { className: "h-8 w-20 animate-pulse rounded bg-ods-skeleton" }),
|
|
@@ -23717,10 +23810,10 @@ function VendorDetailLayoutSkeleton({ className }) {
|
|
|
23717
23810
|
] })
|
|
23718
23811
|
] })
|
|
23719
23812
|
] }),
|
|
23720
|
-
/* @__PURE__ */ jsx211("div", { className: "mb-2 h-[300px] w-full animate-pulse rounded-lg border border-ods-border bg-ods-card md:h-[400px] lg:h-[500px]" }),
|
|
23813
|
+
/* @__PURE__ */ jsx211("div", { className: "mb-2 h-[300px] w-full animate-pulse rounded-lg border border-ods-border bg-ods-card content-md:h-[400px] content-lg:h-[500px]" }),
|
|
23721
23814
|
/* @__PURE__ */ jsx211("div", { className: "text-center", children: /* @__PURE__ */ jsx211("div", { className: "mx-auto h-4 w-24 animate-pulse rounded bg-ods-skeleton" }) })
|
|
23722
23815
|
] }),
|
|
23723
|
-
/* @__PURE__ */ jsx211("div", { className: "mb-10 lg:hidden", children: /* @__PURE__ */ jsxs165("div", { className: "space-y-4", children: [
|
|
23816
|
+
/* @__PURE__ */ jsx211("div", { className: "mb-10 content-lg:hidden", children: /* @__PURE__ */ jsxs165("div", { className: "space-y-4", children: [
|
|
23724
23817
|
/* @__PURE__ */ jsx211("div", { className: "h-12 animate-pulse rounded-lg border border-ods-border bg-ods-card" }),
|
|
23725
23818
|
/* @__PURE__ */ jsxs165("div", { className: "space-y-2", children: [
|
|
23726
23819
|
/* @__PURE__ */ jsx211("div", { className: "h-12 animate-pulse rounded-lg border border-ods-border bg-ods-card" }),
|
|
@@ -23749,7 +23842,7 @@ function VendorDetailLayoutSkeleton({ className }) {
|
|
|
23749
23842
|
] })
|
|
23750
23843
|
] }) }),
|
|
23751
23844
|
/* @__PURE__ */ jsxs165("div", { className: "mb-20 flex flex-col gap-6", children: [
|
|
23752
|
-
/* @__PURE__ */ jsx211("div", { className: "h-8 w-48 animate-pulse rounded bg-ods-skeleton md:h-10" }),
|
|
23845
|
+
/* @__PURE__ */ jsx211("div", { className: "h-8 w-48 animate-pulse rounded bg-ods-skeleton content-md:h-10" }),
|
|
23753
23846
|
/* @__PURE__ */ jsxs165("div", { className: "flex flex-col gap-4", children: [
|
|
23754
23847
|
/* @__PURE__ */ jsx211("div", { className: "h-5 w-48 animate-pulse rounded bg-ods-skeleton" }),
|
|
23755
23848
|
/* @__PURE__ */ jsx211("div", { className: "flex flex-wrap gap-2", children: Array.from({ length: 6 }).map((_, i) => /* @__PURE__ */ jsx211(
|
|
@@ -23772,8 +23865,8 @@ function VendorDetailLayoutSkeleton({ className }) {
|
|
|
23772
23865
|
] })
|
|
23773
23866
|
] }),
|
|
23774
23867
|
/* @__PURE__ */ jsxs165("div", { className: "mb-20 flex flex-col gap-6", children: [
|
|
23775
|
-
/* @__PURE__ */ jsx211("div", { className: "h-8 w-64 animate-pulse rounded bg-ods-skeleton md:h-10" }),
|
|
23776
|
-
/* @__PURE__ */ jsx211("div", { className: "rounded-lg border border-ods-border bg-ods-card p-6 md:p-8", children: /* @__PURE__ */ jsxs165("div", { className: "space-y-4", children: [
|
|
23868
|
+
/* @__PURE__ */ jsx211("div", { className: "h-8 w-64 animate-pulse rounded bg-ods-skeleton content-md:h-10" }),
|
|
23869
|
+
/* @__PURE__ */ jsx211("div", { className: "rounded-lg border border-ods-border bg-ods-card p-6 content-md:p-8", children: /* @__PURE__ */ jsxs165("div", { className: "space-y-4", children: [
|
|
23777
23870
|
/* @__PURE__ */ jsx211("div", { className: "h-6 animate-pulse rounded bg-ods-skeleton" }),
|
|
23778
23871
|
/* @__PURE__ */ jsx211("div", { className: "h-6 animate-pulse rounded bg-ods-skeleton" }),
|
|
23779
23872
|
/* @__PURE__ */ jsx211("div", { className: "h-6 w-5/6 animate-pulse rounded bg-ods-skeleton" }),
|
|
@@ -23781,8 +23874,8 @@ function VendorDetailLayoutSkeleton({ className }) {
|
|
|
23781
23874
|
] }) })
|
|
23782
23875
|
] }),
|
|
23783
23876
|
/* @__PURE__ */ jsxs165("div", { className: "mb-20 flex flex-col gap-6", children: [
|
|
23784
|
-
/* @__PURE__ */ jsx211("div", { className: "h-8 w-72 animate-pulse rounded bg-ods-skeleton md:h-10" }),
|
|
23785
|
-
/* @__PURE__ */ jsx211("div", { className: "grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3", children: Array.from({ length: 6 }).map((_, i) => /* @__PURE__ */ jsxs165("div", { className: "flex gap-4 rounded-lg border border-ods-border bg-ods-card p-4", children: [
|
|
23877
|
+
/* @__PURE__ */ jsx211("div", { className: "h-8 w-72 animate-pulse rounded bg-ods-skeleton content-md:h-10" }),
|
|
23878
|
+
/* @__PURE__ */ jsx211("div", { className: "grid grid-cols-1 gap-6 content-md:grid-cols-2 content-lg:grid-cols-3", children: Array.from({ length: 6 }).map((_, i) => /* @__PURE__ */ jsxs165("div", { className: "flex gap-4 rounded-lg border border-ods-border bg-ods-card p-4", children: [
|
|
23786
23879
|
/* @__PURE__ */ jsx211("div", { className: "h-12 w-12 flex-shrink-0 animate-pulse rounded bg-ods-skeleton" }),
|
|
23787
23880
|
/* @__PURE__ */ jsxs165("div", { className: "flex-1 space-y-2", children: [
|
|
23788
23881
|
/* @__PURE__ */ jsx211("div", { className: "h-5 w-3/4 animate-pulse rounded bg-ods-skeleton" }),
|
|
@@ -23791,8 +23884,8 @@ function VendorDetailLayoutSkeleton({ className }) {
|
|
|
23791
23884
|
] }, i)) })
|
|
23792
23885
|
] }),
|
|
23793
23886
|
/* @__PURE__ */ jsxs165("div", { className: "mb-20 flex flex-col gap-6", children: [
|
|
23794
|
-
/* @__PURE__ */ jsx211("div", { className: "h-8 w-80 animate-pulse rounded bg-ods-skeleton md:h-10" }),
|
|
23795
|
-
/* @__PURE__ */ jsxs165("div", { className: "grid grid-cols-1 gap-6 lg:grid-cols-2", children: [
|
|
23887
|
+
/* @__PURE__ */ jsx211("div", { className: "h-8 w-80 animate-pulse rounded bg-ods-skeleton content-md:h-10" }),
|
|
23888
|
+
/* @__PURE__ */ jsxs165("div", { className: "grid grid-cols-1 gap-6 content-lg:grid-cols-2", children: [
|
|
23796
23889
|
/* @__PURE__ */ jsxs165("div", { className: "flex flex-col gap-6", children: [
|
|
23797
23890
|
/* @__PURE__ */ jsx211("div", { className: "h-5 w-16 animate-pulse rounded bg-ods-skeleton" }),
|
|
23798
23891
|
Array.from({ length: 3 }).map((_, i) => /* @__PURE__ */ jsxs165("div", { className: "flex gap-3 rounded-lg border border-ods-border bg-ods-card p-4", children: [
|
|
@@ -23816,8 +23909,8 @@ function VendorDetailLayoutSkeleton({ className }) {
|
|
|
23816
23909
|
] })
|
|
23817
23910
|
] }),
|
|
23818
23911
|
/* @__PURE__ */ jsxs165("div", { className: "mb-20 flex flex-col gap-6", children: [
|
|
23819
|
-
/* @__PURE__ */ jsx211("div", { className: "h-8 w-72 animate-pulse rounded bg-ods-skeleton md:h-10" }),
|
|
23820
|
-
/* @__PURE__ */ jsx211("div", { className: "grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3", children: Array.from({ length: 6 }).map((_, i) => /* @__PURE__ */ jsxs165("div", { className: "space-y-4 rounded-lg border border-ods-border bg-ods-card p-6", children: [
|
|
23912
|
+
/* @__PURE__ */ jsx211("div", { className: "h-8 w-72 animate-pulse rounded bg-ods-skeleton content-md:h-10" }),
|
|
23913
|
+
/* @__PURE__ */ jsx211("div", { className: "grid grid-cols-1 gap-6 content-md:grid-cols-2 content-lg:grid-cols-3", children: Array.from({ length: 6 }).map((_, i) => /* @__PURE__ */ jsxs165("div", { className: "space-y-4 rounded-lg border border-ods-border bg-ods-card p-6", children: [
|
|
23821
23914
|
/* @__PURE__ */ jsxs165("div", { className: "flex items-start gap-4", children: [
|
|
23822
23915
|
/* @__PURE__ */ jsx211("div", { className: "h-16 w-16 flex-shrink-0 animate-pulse rounded-lg border border-ods-border bg-ods-bg" }),
|
|
23823
23916
|
/* @__PURE__ */ jsxs165("div", { className: "flex-1 space-y-2", children: [
|
|
@@ -23839,7 +23932,7 @@ function VendorDetailLayoutSkeleton({ className }) {
|
|
|
23839
23932
|
/* @__PURE__ */ jsx211("div", { className: "h-12 animate-pulse rounded-md bg-ods-skeleton" })
|
|
23840
23933
|
] }),
|
|
23841
23934
|
/* @__PURE__ */ jsxs165("div", { className: "mb-20 flex flex-col gap-6", children: [
|
|
23842
|
-
/* @__PURE__ */ jsx211("div", { className: "h-8 w-64 animate-pulse rounded bg-ods-skeleton md:h-10" }),
|
|
23935
|
+
/* @__PURE__ */ jsx211("div", { className: "h-8 w-64 animate-pulse rounded bg-ods-skeleton content-md:h-10" }),
|
|
23843
23936
|
/* @__PURE__ */ jsx211("div", { className: "space-y-3", children: /* @__PURE__ */ jsxs165("div", { className: "flex gap-3", children: [
|
|
23844
23937
|
/* @__PURE__ */ jsxs165("div", { className: "flex-1 overflow-hidden rounded-lg border border-ods-border bg-ods-bg", children: [
|
|
23845
23938
|
/* @__PURE__ */ jsxs165("div", { className: "border-b border-ods-border p-3", children: [
|
|
@@ -23876,7 +23969,7 @@ function VendorDetailLayoutSkeleton({ className }) {
|
|
|
23876
23969
|
] }, i)) })
|
|
23877
23970
|
] })
|
|
23878
23971
|
] }),
|
|
23879
|
-
/* @__PURE__ */ jsx211("div", { className: "hidden w-[290px] flex-shrink-0 lg:block", children: /* @__PURE__ */ jsxs165("div", { className: "space-y-4", children: [
|
|
23972
|
+
/* @__PURE__ */ jsx211("div", { className: "hidden w-[290px] flex-shrink-0 content-lg:block", children: /* @__PURE__ */ jsxs165("div", { className: "space-y-4", children: [
|
|
23880
23973
|
/* @__PURE__ */ jsx211("div", { className: "h-12 animate-pulse rounded-lg border border-ods-border bg-ods-card" }),
|
|
23881
23974
|
/* @__PURE__ */ jsxs165("div", { className: "space-y-2", children: [
|
|
23882
23975
|
/* @__PURE__ */ jsx211("div", { className: "h-12 animate-pulse rounded-lg border border-ods-border bg-ods-card" }),
|
|
@@ -23912,9 +24005,9 @@ function StatsSectionSkeleton({ className, columns = 3 }) {
|
|
|
23912
24005
|
"div",
|
|
23913
24006
|
{
|
|
23914
24007
|
className: cn(
|
|
23915
|
-
"mb-12 grid gap-6 md:mb-16",
|
|
23916
|
-
columns === 3 && "grid-cols-1 md:grid-cols-3",
|
|
23917
|
-
columns === 4 && "grid-cols-1 md:grid-cols-2 lg:grid-cols-4",
|
|
24008
|
+
"mb-12 grid gap-6 content-md:mb-16",
|
|
24009
|
+
columns === 3 && "grid-cols-1 content-md:grid-cols-3",
|
|
24010
|
+
columns === 4 && "grid-cols-1 content-md:grid-cols-2 content-lg:grid-cols-4",
|
|
23918
24011
|
className
|
|
23919
24012
|
),
|
|
23920
24013
|
children: Array.from({ length: columns }).map((_, i) => /* @__PURE__ */ jsx211("div", { className: "rounded-lg border border-ods-border bg-ods-card p-6", children: /* @__PURE__ */ jsxs165("div", { className: "space-y-4", children: [
|
|
@@ -23929,66 +24022,80 @@ function StatsSectionSkeleton({ className, columns = 3 }) {
|
|
|
23929
24022
|
);
|
|
23930
24023
|
}
|
|
23931
24024
|
function BlogCardGridSkeleton({ className }) {
|
|
23932
|
-
return /* @__PURE__ */ jsx211("div", { className: cn("space-y-6", className), children: /* @__PURE__ */ jsx211(CardSkeletonGrid, { count: 4, variant: "blog", className: "grid-cols-1 md:grid-cols-2" }) });
|
|
24025
|
+
return /* @__PURE__ */ jsx211("div", { className: cn("space-y-6", className), children: /* @__PURE__ */ jsx211(CardSkeletonGrid, { count: 4, variant: "blog", className: "grid-cols-1 content-md:grid-cols-2" }) });
|
|
23933
24026
|
}
|
|
23934
24027
|
function VendorGridSkeleton({ className }) {
|
|
23935
|
-
return /* @__PURE__ */ jsx211("div", { className: cn("space-y-6", className), children: /* @__PURE__ */ jsx211(
|
|
24028
|
+
return /* @__PURE__ */ jsx211("div", { className: cn("space-y-6", className), children: /* @__PURE__ */ jsx211(
|
|
24029
|
+
CardSkeletonGrid,
|
|
24030
|
+
{
|
|
24031
|
+
count: 12,
|
|
24032
|
+
variant: "vendor",
|
|
24033
|
+
className: "grid-cols-1 content-md:grid-cols-2 content-lg:grid-cols-3"
|
|
24034
|
+
}
|
|
24035
|
+
) });
|
|
23936
24036
|
}
|
|
23937
24037
|
function SlackCommunitySkeleton() {
|
|
23938
|
-
return /* @__PURE__ */ jsx211(
|
|
23939
|
-
|
|
23940
|
-
|
|
23941
|
-
|
|
23942
|
-
|
|
23943
|
-
|
|
23944
|
-
|
|
23945
|
-
|
|
23946
|
-
]
|
|
23947
|
-
|
|
23948
|
-
|
|
23949
|
-
|
|
23950
|
-
|
|
23951
|
-
|
|
23952
|
-
|
|
23953
|
-
|
|
23954
|
-
|
|
23955
|
-
/* @__PURE__ */ jsx211("div", { className: "
|
|
23956
|
-
|
|
23957
|
-
|
|
23958
|
-
|
|
23959
|
-
|
|
23960
|
-
|
|
23961
|
-
|
|
23962
|
-
|
|
23963
|
-
] }),
|
|
23964
|
-
/* @__PURE__ */ jsxs165("div", { className: "flex justify-between", children: [
|
|
23965
|
-
/* @__PURE__ */ jsx211("div", { className: "h-3 w-20 rounded bg-ods-skeleton" }),
|
|
23966
|
-
/* @__PURE__ */ jsx211("div", { className: "h-3 w-8 rounded bg-ods-skeleton" })
|
|
23967
|
-
] })
|
|
23968
|
-
] }) })
|
|
23969
|
-
] }) }),
|
|
23970
|
-
/* @__PURE__ */ jsxs165("div", { className: "flex h-[450px] min-h-[450px] min-w-0 flex-1 animate-pulse flex-col rounded-lg border border-ods-border bg-ods-card md:h-[500px] md:min-h-[500px] lg:h-[600px] lg:min-h-[600px]", children: [
|
|
23971
|
-
/* @__PURE__ */ jsxs165("div", { className: "flex h-[56px] flex-shrink-0 items-center justify-between border-b border-ods-border bg-ods-bg p-4 md:h-[60px] md:p-6", children: [
|
|
23972
|
-
/* @__PURE__ */ jsxs165("div", { className: "flex items-center gap-2", children: [
|
|
23973
|
-
/* @__PURE__ */ jsx211("div", { className: "h-3 w-3 rounded bg-ods-skeleton md:h-4 md:w-4" }),
|
|
23974
|
-
/* @__PURE__ */ jsx211("div", { className: "h-3 w-24 rounded bg-ods-skeleton md:h-4 md:w-32" })
|
|
23975
|
-
] }),
|
|
23976
|
-
/* @__PURE__ */ jsx211("div", { className: "h-3 w-12 rounded bg-ods-skeleton md:w-16" })
|
|
23977
|
-
] }),
|
|
23978
|
-
/* @__PURE__ */ jsx211("div", { className: "min-h-[280px] flex-1 space-y-3 overflow-hidden bg-ods-bg p-4 md:min-h-[320px] md:space-y-4 md:p-6 lg:min-h-[420px]", children: Array.from({ length: 6 }).map((_, i) => /* @__PURE__ */ jsxs165("div", { className: "flex gap-2 md:gap-3", children: [
|
|
23979
|
-
/* @__PURE__ */ jsx211("div", { className: "h-10 w-10 flex-shrink-0 rounded-lg bg-ods-skeleton md:h-12 md:w-12" }),
|
|
23980
|
-
/* @__PURE__ */ jsxs165("div", { className: "flex-1", children: [
|
|
23981
|
-
/* @__PURE__ */ jsxs165("div", { className: "mb-1 flex items-center gap-2", children: [
|
|
23982
|
-
/* @__PURE__ */ jsx211("div", { className: "h-3 w-16 rounded bg-ods-skeleton md:w-20" }),
|
|
23983
|
-
/* @__PURE__ */ jsx211("div", { className: "h-3 w-12 rounded bg-ods-skeleton md:w-16" })
|
|
24038
|
+
return /* @__PURE__ */ jsx211(
|
|
24039
|
+
"section",
|
|
24040
|
+
{
|
|
24041
|
+
className: "w-full bg-ods-bg px-4 py-12 content-md:px-20 content-md:py-20 content-lg:px-20",
|
|
24042
|
+
"aria-label": "Slack Community Loading",
|
|
24043
|
+
children: /* @__PURE__ */ jsxs165("div", { className: "flex w-full flex-col gap-4 content-md:gap-6", children: [
|
|
24044
|
+
/* @__PURE__ */ jsx211("div", { className: "w-full", children: /* @__PURE__ */ jsx211("div", { className: "h-8 max-w-md animate-pulse rounded-lg bg-ods-skeleton content-md:h-12 content-lg:h-14" }) }),
|
|
24045
|
+
/* @__PURE__ */ jsxs165("div", { className: "flex w-full min-w-0 flex-col gap-4 content-md:gap-6 content-lg:flex-row content-lg:items-start content-lg:justify-end", children: [
|
|
24046
|
+
/* @__PURE__ */ jsx211("div", { className: "flex w-full flex-shrink-0 animate-pulse flex-col overflow-hidden rounded border border-ods-border bg-ods-bg content-lg:w-[290px] content-lg:max-w-[290px]", children: /* @__PURE__ */ jsxs165("div", { className: "space-y-4 p-4", children: [
|
|
24047
|
+
/* @__PURE__ */ jsxs165("div", { className: "flex flex-col gap-2", children: [
|
|
24048
|
+
/* @__PURE__ */ jsxs165("div", { className: "flex items-center justify-between", children: [
|
|
24049
|
+
/* @__PURE__ */ jsx211("div", { className: "h-4 w-24 rounded bg-ods-skeleton" }),
|
|
24050
|
+
/* @__PURE__ */ jsx211("div", { className: "h-3 w-16 rounded bg-ods-skeleton" })
|
|
24051
|
+
] }),
|
|
24052
|
+
/* @__PURE__ */ jsx211("div", { className: "h-3 w-32 rounded bg-ods-skeleton" })
|
|
24053
|
+
] }),
|
|
24054
|
+
/* @__PURE__ */ jsxs165("div", { className: "flex flex-col gap-1", children: [
|
|
24055
|
+
/* @__PURE__ */ jsx211("div", { className: "mb-2 h-3 w-16 rounded bg-ods-skeleton" }),
|
|
24056
|
+
Array.from({ length: 5 }).map((_, i) => /* @__PURE__ */ jsxs165("div", { className: "flex min-h-[48px] items-center gap-2 px-2 py-3", children: [
|
|
24057
|
+
/* @__PURE__ */ jsx211("div", { className: "h-4 w-4 rounded bg-ods-skeleton" }),
|
|
24058
|
+
/* @__PURE__ */ jsxs165("div", { className: "flex-1", children: [
|
|
24059
|
+
/* @__PURE__ */ jsx211("div", { className: "mb-1 h-3 w-24 rounded bg-ods-skeleton" }),
|
|
24060
|
+
/* @__PURE__ */ jsx211("div", { className: "h-2 w-16 rounded bg-ods-skeleton" })
|
|
24061
|
+
] })
|
|
24062
|
+
] }, i))
|
|
23984
24063
|
] }),
|
|
23985
|
-
/* @__PURE__ */ jsx211("div", { className: "
|
|
24064
|
+
/* @__PURE__ */ jsx211("div", { className: "mt-2 border-t border-ods-border pt-3", children: /* @__PURE__ */ jsxs165("div", { className: "space-y-2", children: [
|
|
24065
|
+
/* @__PURE__ */ jsxs165("div", { className: "flex justify-between", children: [
|
|
24066
|
+
/* @__PURE__ */ jsx211("div", { className: "h-3 w-16 rounded bg-ods-skeleton" }),
|
|
24067
|
+
/* @__PURE__ */ jsx211("div", { className: "h-3 w-8 rounded bg-ods-skeleton" })
|
|
24068
|
+
] }),
|
|
24069
|
+
/* @__PURE__ */ jsxs165("div", { className: "flex justify-between", children: [
|
|
24070
|
+
/* @__PURE__ */ jsx211("div", { className: "h-3 w-20 rounded bg-ods-skeleton" }),
|
|
24071
|
+
/* @__PURE__ */ jsx211("div", { className: "h-3 w-8 rounded bg-ods-skeleton" })
|
|
24072
|
+
] })
|
|
24073
|
+
] }) })
|
|
24074
|
+
] }) }),
|
|
24075
|
+
/* @__PURE__ */ jsxs165("div", { className: "flex h-[450px] min-h-[450px] min-w-0 flex-1 animate-pulse flex-col rounded-lg border border-ods-border bg-ods-card content-md:h-[500px] content-md:min-h-[500px] content-lg:h-[600px] content-lg:min-h-[600px]", children: [
|
|
24076
|
+
/* @__PURE__ */ jsxs165("div", { className: "flex h-[56px] flex-shrink-0 items-center justify-between border-b border-ods-border bg-ods-bg p-4 content-md:h-[60px] content-md:p-6", children: [
|
|
24077
|
+
/* @__PURE__ */ jsxs165("div", { className: "flex items-center gap-2", children: [
|
|
24078
|
+
/* @__PURE__ */ jsx211("div", { className: "h-3 w-3 rounded bg-ods-skeleton content-md:h-4 content-md:w-4" }),
|
|
24079
|
+
/* @__PURE__ */ jsx211("div", { className: "h-3 w-24 rounded bg-ods-skeleton content-md:h-4 content-md:w-32" })
|
|
24080
|
+
] }),
|
|
24081
|
+
/* @__PURE__ */ jsx211("div", { className: "h-3 w-12 rounded bg-ods-skeleton content-md:w-16" })
|
|
24082
|
+
] }),
|
|
24083
|
+
/* @__PURE__ */ jsx211("div", { className: "min-h-[280px] flex-1 space-y-3 overflow-hidden bg-ods-bg p-4 content-md:min-h-[320px] content-md:space-y-4 content-md:p-6 content-lg:min-h-[420px]", children: Array.from({ length: 6 }).map((_, i) => /* @__PURE__ */ jsxs165("div", { className: "flex gap-2 content-md:gap-3", children: [
|
|
24084
|
+
/* @__PURE__ */ jsx211("div", { className: "h-10 w-10 flex-shrink-0 rounded-lg bg-ods-skeleton content-md:h-12 content-md:w-12" }),
|
|
24085
|
+
/* @__PURE__ */ jsxs165("div", { className: "flex-1", children: [
|
|
24086
|
+
/* @__PURE__ */ jsxs165("div", { className: "mb-1 flex items-center gap-2", children: [
|
|
24087
|
+
/* @__PURE__ */ jsx211("div", { className: "h-3 w-16 rounded bg-ods-skeleton content-md:w-20" }),
|
|
24088
|
+
/* @__PURE__ */ jsx211("div", { className: "h-3 w-12 rounded bg-ods-skeleton content-md:w-16" })
|
|
24089
|
+
] }),
|
|
24090
|
+
/* @__PURE__ */ jsx211("div", { className: "h-3 w-full rounded bg-ods-skeleton content-md:h-4" })
|
|
24091
|
+
] })
|
|
24092
|
+
] }, i)) }),
|
|
24093
|
+
/* @__PURE__ */ jsx211("div", { className: "h-[72px] flex-shrink-0 border-t border-ods-border bg-ods-card p-4 content-md:h-[80px] content-md:p-6", children: /* @__PURE__ */ jsx211("div", { className: "flex items-end justify-center gap-3 content-md:justify-end", children: /* @__PURE__ */ jsx211("div", { className: "h-10 w-28 rounded-lg bg-ods-skeleton content-md:h-12 content-md:w-32" }) }) })
|
|
23986
24094
|
] })
|
|
23987
|
-
] }
|
|
23988
|
-
/* @__PURE__ */ jsx211("div", { className: "h-[72px] flex-shrink-0 border-t border-ods-border bg-ods-card p-4 md:h-[80px] md:p-6", children: /* @__PURE__ */ jsx211("div", { className: "flex items-end justify-center gap-3 md:justify-end", children: /* @__PURE__ */ jsx211("div", { className: "h-10 w-28 rounded-lg bg-ods-skeleton md:h-12 md:w-32" }) }) })
|
|
24095
|
+
] })
|
|
23989
24096
|
] })
|
|
23990
|
-
|
|
23991
|
-
|
|
24097
|
+
}
|
|
24098
|
+
);
|
|
23992
24099
|
}
|
|
23993
24100
|
|
|
23994
24101
|
// src/components/content-loading-container.tsx
|
|
@@ -23998,7 +24105,7 @@ function ContentLoadingContainer({
|
|
|
23998
24105
|
children,
|
|
23999
24106
|
skeletonComponent,
|
|
24000
24107
|
className,
|
|
24001
|
-
minHeight = "min-h-[300px] md:min-h-[800px]",
|
|
24108
|
+
minHeight = "min-h-[300px] content-md:min-h-[800px]",
|
|
24002
24109
|
loadingOpacity = 1,
|
|
24003
24110
|
transitionDuration = 300
|
|
24004
24111
|
}) {
|
|
@@ -24050,7 +24157,7 @@ function useContentLoading(isLoading) {
|
|
|
24050
24157
|
return contentType === "vendor" ? 12 : 6;
|
|
24051
24158
|
};
|
|
24052
24159
|
const getMinHeight = (contentType) => {
|
|
24053
|
-
return contentType === "vendor" ? "min-h-[400px] md:min-h-[900px]" : "min-h-[300px] md:min-h-[800px]";
|
|
24160
|
+
return contentType === "vendor" ? "min-h-[400px] content-md:min-h-[900px]" : "min-h-[300px] content-md:min-h-[800px]";
|
|
24054
24161
|
};
|
|
24055
24162
|
return {
|
|
24056
24163
|
containerProps,
|
|
@@ -24074,7 +24181,7 @@ function ListSkeleton({
|
|
|
24074
24181
|
return /* @__PURE__ */ jsx213("div", { className: cn("space-y-3", className), children: Array.from({ length: items }).map((_, index) => /* @__PURE__ */ jsxs167("div", { className: "flex items-center justify-between", children: [
|
|
24075
24182
|
/* @__PURE__ */ jsxs167("div", { className: "flex items-center gap-3", children: [
|
|
24076
24183
|
showIcons && /* @__PURE__ */ jsx213(MediaSkeleton.Icon, { size: "sm" }),
|
|
24077
|
-
/* @__PURE__ */ jsx213(TextSkeleton.Body, { className: "w-32 md:w-48" })
|
|
24184
|
+
/* @__PURE__ */ jsx213(TextSkeleton.Body, { className: "w-32 content-md:w-48" })
|
|
24078
24185
|
] }),
|
|
24079
24186
|
showActions && /* @__PURE__ */ jsxs167("div", { className: "flex items-center gap-2", children: [
|
|
24080
24187
|
/* @__PURE__ */ jsx213(TextSkeleton.Caption, { className: "w-8" }),
|
|
@@ -24121,10 +24228,10 @@ function NavigationSkeleton({
|
|
|
24121
24228
|
return /* @__PURE__ */ jsx213(
|
|
24122
24229
|
"nav",
|
|
24123
24230
|
{
|
|
24124
|
-
className: cn("flex gap-4 md:gap-6", !horizontal && "flex-col", className),
|
|
24231
|
+
className: cn("flex gap-4 content-md:gap-6", !horizontal && "flex-col", className),
|
|
24125
24232
|
role: "status",
|
|
24126
24233
|
"aria-label": "Loading navigation",
|
|
24127
|
-
children: Array.from({ length: items }).map((_, index) => /* @__PURE__ */ jsx213(TextSkeleton.Body, { className: "w-16 md:w-20" }, index))
|
|
24234
|
+
children: Array.from({ length: items }).map((_, index) => /* @__PURE__ */ jsx213(TextSkeleton.Body, { className: "w-16 content-md:w-20" }, index))
|
|
24128
24235
|
}
|
|
24129
24236
|
);
|
|
24130
24237
|
}
|
|
@@ -24242,9 +24349,9 @@ function PricingSkeleton({ className, plans = 3 }) {
|
|
|
24242
24349
|
{
|
|
24243
24350
|
className: cn(
|
|
24244
24351
|
"grid gap-6",
|
|
24245
|
-
plans === 2 && "grid-cols-1 md:grid-cols-2",
|
|
24246
|
-
plans === 3 && "grid-cols-1 md:grid-cols-3",
|
|
24247
|
-
plans === 4 && "grid-cols-1 md:grid-cols-2 lg:grid-cols-4",
|
|
24352
|
+
plans === 2 && "grid-cols-1 content-md:grid-cols-2",
|
|
24353
|
+
plans === 3 && "grid-cols-1 content-md:grid-cols-3",
|
|
24354
|
+
plans === 4 && "grid-cols-1 content-md:grid-cols-2 content-lg:grid-cols-4",
|
|
24248
24355
|
className
|
|
24249
24356
|
),
|
|
24250
24357
|
children: Array.from({ length: plans }).map((_, index) => /* @__PURE__ */ jsx213("div", { className: "rounded-lg border border-ods-border bg-ods-card p-6", children: /* @__PURE__ */ jsxs167("div", { className: "space-y-4", children: [
|
|
@@ -24288,15 +24395,15 @@ function MspProfileFormSkeleton({ className, fields = 4 }) {
|
|
|
24288
24395
|
return /* @__PURE__ */ jsxs169(
|
|
24289
24396
|
"div",
|
|
24290
24397
|
{
|
|
24291
|
-
className: cn("grid grid-cols-1 items-stretch gap-6 md:grid-cols-2", className),
|
|
24398
|
+
className: cn("grid grid-cols-1 items-stretch gap-6 content-md:grid-cols-2", className),
|
|
24292
24399
|
role: "status",
|
|
24293
24400
|
"aria-label": "Loading MSP profile form",
|
|
24294
24401
|
children: [
|
|
24295
24402
|
/* @__PURE__ */ jsxs169("div", { className: "flex h-full flex-col space-y-2", children: [
|
|
24296
24403
|
/* @__PURE__ */ jsx215(TextSkeleton.Body, { className: "w-28" }),
|
|
24297
|
-
/* @__PURE__ */ jsx215("div", { className: "min-h-[180px] flex-1 md:min-h-full", children: /* @__PURE__ */ jsx215(UnifiedSkeleton, { className: "h-full w-full rounded-lg", "aria-label": "Loading company logo" }) })
|
|
24404
|
+
/* @__PURE__ */ jsx215("div", { className: "min-h-[180px] flex-1 content-md:min-h-full", children: /* @__PURE__ */ jsx215(UnifiedSkeleton, { className: "h-full w-full rounded-lg", "aria-label": "Loading company logo" }) })
|
|
24298
24405
|
] }),
|
|
24299
|
-
/* @__PURE__ */ jsx215("div", { className: "grid grid-cols-1 gap-4 md:grid-cols-2", children: Array.from({ length: fields }).map((_, idx) => /* @__PURE__ */ jsxs169("div", { className: "flex flex-col space-y-2", children: [
|
|
24406
|
+
/* @__PURE__ */ jsx215("div", { className: "grid grid-cols-1 gap-4 content-md:grid-cols-2", children: Array.from({ length: fields }).map((_, idx) => /* @__PURE__ */ jsxs169("div", { className: "flex flex-col space-y-2", children: [
|
|
24300
24407
|
/* @__PURE__ */ jsx215(TextSkeleton.Body, { className: "w-40" }),
|
|
24301
24408
|
/* @__PURE__ */ jsx215(InteractiveSkeleton.Input, {})
|
|
24302
24409
|
] }, idx)) })
|
|
@@ -24346,7 +24453,7 @@ function CategoryVendorSelectorSkeleton({ subcategories = 3, className }) {
|
|
|
24346
24453
|
] }),
|
|
24347
24454
|
/* @__PURE__ */ jsx217("div", { className: "space-y-6", children: Array.from({ length: subcategories }).map((_, idx) => /* @__PURE__ */ jsxs171("div", { className: "space-y-2", children: [
|
|
24348
24455
|
/* @__PURE__ */ jsx217(TextSkeleton.Subheading, { className: "w-1/3" }),
|
|
24349
|
-
/* @__PURE__ */ jsx217("div", { className: "grid grid-cols-2 gap-4 md:grid-cols-3", children: Array.from({ length: 2 }).map((__, j) => /* @__PURE__ */ jsx217(UnifiedSkeleton, { className: "h-20 rounded-lg" }, j)) })
|
|
24456
|
+
/* @__PURE__ */ jsx217("div", { className: "grid grid-cols-2 gap-4 content-md:grid-cols-3", children: Array.from({ length: 2 }).map((__, j) => /* @__PURE__ */ jsx217(UnifiedSkeleton, { className: "h-20 rounded-lg" }, j)) })
|
|
24350
24457
|
] }, idx)) })
|
|
24351
24458
|
]
|
|
24352
24459
|
}
|
|
@@ -24373,13 +24480,13 @@ function WizardLayoutSkeleton({ steps = 6, className }) {
|
|
|
24373
24480
|
import { jsx as jsx219, jsxs as jsxs173 } from "react/jsx-runtime";
|
|
24374
24481
|
function MarginReportSkeleton({ animate = true, description, overlayContent }) {
|
|
24375
24482
|
return /* @__PURE__ */ jsxs173("main", { className: `bg-ods-bg ${animate ? "animate-pulse" : ""} relative min-h-screen`, children: [
|
|
24376
|
-
/* @__PURE__ */ jsxs173("div", { className: "mx-auto max-w-[1920px] space-y-10 px-6 py-6 md:px-20 md:py-10", children: [
|
|
24483
|
+
/* @__PURE__ */ jsxs173("div", { className: "mx-auto max-w-[1920px] space-y-10 px-6 py-6 content-md:px-20 content-md:py-10", children: [
|
|
24377
24484
|
/* @__PURE__ */ jsxs173("div", { className: "space-y-3", children: [
|
|
24378
24485
|
/* @__PURE__ */ jsx219("div", { className: "h-10 w-72 rounded bg-ods-skeleton" }),
|
|
24379
24486
|
/* @__PURE__ */ jsx219("div", { className: "h-4 w-80 rounded bg-ods-skeleton" })
|
|
24380
24487
|
] }),
|
|
24381
|
-
/* @__PURE__ */ jsx219("div", { className: "grid grid-cols-1 gap-6 md:grid-cols-3", children: Array.from({ length: 3 }).map((_, i) => /* @__PURE__ */ jsx219("div", { className: "h-32 rounded border border-ods-border bg-ods-card" }, i)) }),
|
|
24382
|
-
/* @__PURE__ */ jsxs173("div", { className: "grid grid-cols-1 gap-6 md:grid-cols-2", children: [
|
|
24488
|
+
/* @__PURE__ */ jsx219("div", { className: "grid grid-cols-1 gap-6 content-md:grid-cols-3", children: Array.from({ length: 3 }).map((_, i) => /* @__PURE__ */ jsx219("div", { className: "h-32 rounded border border-ods-border bg-ods-card" }, i)) }),
|
|
24489
|
+
/* @__PURE__ */ jsxs173("div", { className: "grid grid-cols-1 gap-6 content-md:grid-cols-2", children: [
|
|
24383
24490
|
/* @__PURE__ */ jsxs173("div", { className: "flex animate-pulse items-center gap-4 rounded-lg border border-ods-border bg-ods-card p-6", children: [
|
|
24384
24491
|
/* @__PURE__ */ jsx219("div", { className: "h-14 w-14 rounded-lg bg-ods-skeleton" }),
|
|
24385
24492
|
/* @__PURE__ */ jsxs173("div", { className: "flex-1 space-y-2", children: [
|
|
@@ -24401,7 +24508,7 @@ function MarginReportSkeleton({ animate = true, description, overlayContent }) {
|
|
|
24401
24508
|
/* @__PURE__ */ jsx219("div", { className: "mt-4 h-4 w-40 rounded bg-ods-skeleton" })
|
|
24402
24509
|
] })
|
|
24403
24510
|
] }),
|
|
24404
|
-
/* @__PURE__ */ jsx219("div", { className: "grid grid-cols-1 gap-6 md:grid-cols-2", children: ["Commercial Stack", "Open-Source Stack"].map((label, idx) => /* @__PURE__ */ jsxs173(
|
|
24511
|
+
/* @__PURE__ */ jsx219("div", { className: "grid grid-cols-1 gap-6 content-md:grid-cols-2", children: ["Commercial Stack", "Open-Source Stack"].map((label, idx) => /* @__PURE__ */ jsxs173(
|
|
24405
24512
|
"div",
|
|
24406
24513
|
{
|
|
24407
24514
|
className: "flex animate-pulse flex-col overflow-hidden rounded-lg border border-ods-border bg-ods-card",
|
|
@@ -24422,7 +24529,7 @@ function MarginReportSkeleton({ animate = true, description, overlayContent }) {
|
|
|
24422
24529
|
/* @__PURE__ */ jsx219("div", { className: "h-12 w-12 flex-shrink-0 rounded-lg bg-ods-skeleton" }),
|
|
24423
24530
|
/* @__PURE__ */ jsxs173("div", { className: "flex min-w-0 flex-col", children: [
|
|
24424
24531
|
/* @__PURE__ */ jsx219("div", { className: "h-4 w-32 rounded bg-ods-skeleton" }),
|
|
24425
|
-
/* @__PURE__ */ jsx219("div", { className: "mt-1 hidden h-3 w-24 rounded bg-ods-skeleton md:block" })
|
|
24532
|
+
/* @__PURE__ */ jsx219("div", { className: "mt-1 hidden h-3 w-24 rounded bg-ods-skeleton content-md:block" })
|
|
24426
24533
|
] })
|
|
24427
24534
|
] }),
|
|
24428
24535
|
/* @__PURE__ */ jsxs173("div", { className: "flex flex-shrink-0 items-center gap-1", children: [
|
|
@@ -24438,7 +24545,7 @@ function MarginReportSkeleton({ animate = true, description, overlayContent }) {
|
|
|
24438
24545
|
idx
|
|
24439
24546
|
)) }),
|
|
24440
24547
|
/* @__PURE__ */ jsx219("div", { className: "h-6 w-60 rounded bg-ods-skeleton" }),
|
|
24441
|
-
/* @__PURE__ */ jsx219("div", { className: "grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3", children: Array.from({ length: 3 }).map((_, i) => /* @__PURE__ */ jsx219("div", { className: "h-48 rounded border border-ods-border bg-ods-card" }, i)) }),
|
|
24548
|
+
/* @__PURE__ */ jsx219("div", { className: "grid grid-cols-1 gap-6 content-md:grid-cols-2 content-lg:grid-cols-3", children: Array.from({ length: 3 }).map((_, i) => /* @__PURE__ */ jsx219("div", { className: "h-48 rounded border border-ods-border bg-ods-card" }, i)) }),
|
|
24442
24549
|
/* @__PURE__ */ jsxs173("div", { className: "space-y-6 rounded-3xl border border-ods-border p-8", children: [
|
|
24443
24550
|
/* @__PURE__ */ jsxs173("div", { className: "flex items-start gap-6", children: [
|
|
24444
24551
|
/* @__PURE__ */ jsxs173("div", { className: "min-w-0 flex-1 space-y-2", children: [
|
|
@@ -24447,7 +24554,7 @@ function MarginReportSkeleton({ animate = true, description, overlayContent }) {
|
|
|
24447
24554
|
] }),
|
|
24448
24555
|
/* @__PURE__ */ jsx219("div", { className: "h-12 w-12 shrink-0 rounded-md bg-ods-skeleton" })
|
|
24449
24556
|
] }),
|
|
24450
|
-
/* @__PURE__ */ jsx219("div", { className: "grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3", children: Array.from({ length: 3 }).map((_, i) => /* @__PURE__ */ jsx219("div", { className: "h-32 rounded border border-ods-border bg-ods-card" }, i)) })
|
|
24557
|
+
/* @__PURE__ */ jsx219("div", { className: "grid grid-cols-1 gap-6 content-md:grid-cols-2 content-lg:grid-cols-3", children: Array.from({ length: 3 }).map((_, i) => /* @__PURE__ */ jsx219("div", { className: "h-32 rounded border border-ods-border bg-ods-card" }, i)) })
|
|
24451
24558
|
] })
|
|
24452
24559
|
] }),
|
|
24453
24560
|
overlayContent && /* @__PURE__ */ jsx219("div", { className: "pointer-events-none absolute inset-0 z-10 rounded-lg bg-ods-card/80", children: /* @__PURE__ */ jsxs173("div", { className: "pointer-events-auto fixed left-1/2 top-1/2 flex -translate-x-1/2 -translate-y-1/2 flex-col items-center gap-4 px-4 text-center", children: [
|
|
@@ -24627,7 +24734,7 @@ var SkeletonPresets = {
|
|
|
24627
24734
|
/**
|
|
24628
24735
|
* Vendor grid skeleton (specific to the app)
|
|
24629
24736
|
*/
|
|
24630
|
-
VendorGrid: ({ items = 6 }) => /* @__PURE__ */ jsx221("div", { className: "grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3", children: Array.from({ length: items }, (_, index) => /* @__PURE__ */ jsxs175("div", { className: "space-y-3 rounded-lg border border-ods-border bg-ods-card p-4", children: [
|
|
24737
|
+
VendorGrid: ({ items = 6 }) => /* @__PURE__ */ jsx221("div", { className: "grid grid-cols-1 gap-6 content-md:grid-cols-2 content-lg:grid-cols-3", children: Array.from({ length: items }, (_, index) => /* @__PURE__ */ jsxs175("div", { className: "space-y-3 rounded-lg border border-ods-border bg-ods-card p-4", children: [
|
|
24631
24738
|
/* @__PURE__ */ jsxs175("div", { className: "flex items-center gap-3", children: [
|
|
24632
24739
|
/* @__PURE__ */ jsx221(DynamicSkeleton, { variant: "avatar", size: "md" }),
|
|
24633
24740
|
/* @__PURE__ */ jsxs175("div", { className: "flex-1", children: [
|
|
@@ -24765,7 +24872,7 @@ function OrganizationCardSkeleton({
|
|
|
24765
24872
|
/* @__PURE__ */ jsx223(TextSkeleton.Body, { className: "w-2/3" })
|
|
24766
24873
|
] }) }),
|
|
24767
24874
|
showFooter && /* @__PURE__ */ jsxs176("div", { className: "flex w-full min-w-0 items-center justify-between gap-2", children: [
|
|
24768
|
-
/* @__PURE__ */ jsxs176("div", { className: "flex min-w-0 flex-shrink items-center gap-3 md:gap-4", children: [
|
|
24875
|
+
/* @__PURE__ */ jsxs176("div", { className: "flex min-w-0 flex-shrink items-center gap-3 content-md:gap-4", children: [
|
|
24769
24876
|
/* @__PURE__ */ jsxs176("div", { className: "flex flex-shrink-0 items-center gap-1", children: [
|
|
24770
24877
|
/* @__PURE__ */ jsx223(MediaSkeleton.Icon, { size: "sm", className: "h-5 w-5" }),
|
|
24771
24878
|
/* @__PURE__ */ jsx223(TextSkeleton.Caption, { className: "w-8" })
|
|
@@ -24794,7 +24901,7 @@ function OrganizationCardSkeletonGrid({
|
|
|
24794
24901
|
return /* @__PURE__ */ jsx223(
|
|
24795
24902
|
"div",
|
|
24796
24903
|
{
|
|
24797
|
-
className: cn("grid grid-cols-1 gap-4 md:grid-cols-2 md:gap-6 lg:grid-cols-3", className),
|
|
24904
|
+
className: cn("grid grid-cols-1 gap-4 content-md:grid-cols-2 content-md:gap-6 content-lg:grid-cols-3", className),
|
|
24798
24905
|
role: "status",
|
|
24799
24906
|
"aria-label": `Loading ${count} organization cards`,
|
|
24800
24907
|
children: Array.from({ length: count }, (_, index) => /* @__PURE__ */ jsx223(
|
|
@@ -24842,7 +24949,7 @@ function DeviceCardSkeletonGrid({ count = 12, className }) {
|
|
|
24842
24949
|
return /* @__PURE__ */ jsx224(
|
|
24843
24950
|
"div",
|
|
24844
24951
|
{
|
|
24845
|
-
className: cn("grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-4", className),
|
|
24952
|
+
className: cn("grid grid-cols-1 gap-4 content-md:grid-cols-2 content-lg:grid-cols-4", className),
|
|
24846
24953
|
role: "status",
|
|
24847
24954
|
"aria-label": `Loading ${count} device cards`,
|
|
24848
24955
|
children: Array.from({ length: count }, (_, index) => /* @__PURE__ */ jsx224(DeviceCardSkeleton, {}, index))
|
|
@@ -25088,7 +25195,7 @@ var SelectButton = React12.forwardRef(
|
|
|
25088
25195
|
disabled,
|
|
25089
25196
|
onClick,
|
|
25090
25197
|
className: cn(
|
|
25091
|
-
"group flex h-11 items-center gap-1 rounded-[6px] border px-3 py-3 transition-colors duration-200 md:h-16 md:gap-2 md:px-4",
|
|
25198
|
+
"group flex h-11 items-center gap-1 rounded-[6px] border px-3 py-3 transition-colors duration-200 content-md:h-16 content-md:gap-2 content-md:px-4",
|
|
25092
25199
|
"w-full text-left font-body",
|
|
25093
25200
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ods-focus",
|
|
25094
25201
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
@@ -25103,7 +25210,7 @@ var SelectButton = React12.forwardRef(
|
|
|
25103
25210
|
"span",
|
|
25104
25211
|
{
|
|
25105
25212
|
className: cn(
|
|
25106
|
-
"flex size-4 shrink-0 items-center justify-center md:size-6",
|
|
25213
|
+
"flex size-4 shrink-0 items-center justify-center content-md:size-6",
|
|
25107
25214
|
selected ? "text-ods-accent" : "text-ods-text-secondary"
|
|
25108
25215
|
),
|
|
25109
25216
|
children: icon
|
|
@@ -25126,7 +25233,7 @@ var SelectButton = React12.forwardRef(
|
|
|
25126
25233
|
"span",
|
|
25127
25234
|
{
|
|
25128
25235
|
className: cn(
|
|
25129
|
-
"hidden truncate text-h6 md:flex",
|
|
25236
|
+
"hidden truncate text-h6 content-md:flex",
|
|
25130
25237
|
selected ? "text-ods-accent" : "text-ods-text-secondary"
|
|
25131
25238
|
),
|
|
25132
25239
|
title: description,
|
|
@@ -25135,7 +25242,7 @@ var SelectButton = React12.forwardRef(
|
|
|
25135
25242
|
)
|
|
25136
25243
|
] }),
|
|
25137
25244
|
tag && /* @__PURE__ */ jsx226(Tag, { variant: tagVariant, className: "shrink-0", label: tag }),
|
|
25138
|
-
selected && /* @__PURE__ */ jsx226(CheckCircleIcon, { className: "size-4 shrink-0 text-ods-accent md:size-6" })
|
|
25245
|
+
selected && /* @__PURE__ */ jsx226(CheckCircleIcon, { className: "size-4 shrink-0 text-ods-accent content-md:size-6" })
|
|
25139
25246
|
]
|
|
25140
25247
|
}
|
|
25141
25248
|
);
|
|
@@ -25243,7 +25350,7 @@ function SEOEditorPreview({
|
|
|
25243
25350
|
};
|
|
25244
25351
|
return /* @__PURE__ */ jsxs181("div", { className: cn("space-y-6 rounded-lg border border-ods-border bg-ods-card p-6", className), children: [
|
|
25245
25352
|
/* @__PURE__ */ jsx228("h3", { className: "text-ods-text-primary text-h5", children: "SEO & Open Graph" }),
|
|
25246
|
-
/* @__PURE__ */ jsxs181("div", { className: "grid grid-cols-1 gap-4 lg:grid-cols-2", children: [
|
|
25353
|
+
/* @__PURE__ */ jsxs181("div", { className: "grid grid-cols-1 gap-4 content-lg:grid-cols-2", children: [
|
|
25247
25354
|
/* @__PURE__ */ jsxs181("div", { className: "space-y-2", children: [
|
|
25248
25355
|
/* @__PURE__ */ jsx228(
|
|
25249
25356
|
Field,
|
|
@@ -25315,7 +25422,7 @@ function SEOEditorPreview({
|
|
|
25315
25422
|
}
|
|
25316
25423
|
)
|
|
25317
25424
|
] }),
|
|
25318
|
-
/* @__PURE__ */ jsxs181("div", { className: "grid grid-cols-1 gap-4 lg:grid-cols-2", children: [
|
|
25425
|
+
/* @__PURE__ */ jsxs181("div", { className: "grid grid-cols-1 gap-4 content-lg:grid-cols-2", children: [
|
|
25319
25426
|
/* @__PURE__ */ jsxs181("div", { className: "space-y-2", children: [
|
|
25320
25427
|
/* @__PURE__ */ jsx228(
|
|
25321
25428
|
Field,
|
|
@@ -28089,12 +28196,12 @@ var PolicyRow = ({ policy, categoryId, editMode, onPermissionChange }) => {
|
|
|
28089
28196
|
const handleChange = (level) => {
|
|
28090
28197
|
if (level) onPermissionChange(categoryId, policy.id, level);
|
|
28091
28198
|
};
|
|
28092
|
-
return /* @__PURE__ */ jsxs202("div", { className: "flex items-start gap-[var(--spacing-system-m)] border-b border-ods-border bg-ods-bg px-[var(--spacing-system-m)] py-[var(--spacing-system-sf)] last:border-b-0 md:items-center", children: [
|
|
28199
|
+
return /* @__PURE__ */ jsxs202("div", { className: "flex items-start gap-[var(--spacing-system-m)] border-b border-ods-border bg-ods-bg px-[var(--spacing-system-m)] py-[var(--spacing-system-sf)] last:border-b-0 content-md:items-center", children: [
|
|
28093
28200
|
/* @__PURE__ */ jsx255("div", { className: "flex h-8 w-8 shrink-0 items-center justify-center rounded-md border border-ods-border bg-ods-bg", children: /* @__PURE__ */ jsx255(ToolIcon, { toolType: policy.toolName, size: 16 }) }),
|
|
28094
28201
|
/* @__PURE__ */ jsxs202("div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
28095
28202
|
/* @__PURE__ */ jsx255("p", { className: "truncate text-ods-text-primary text-h4", title: policy.name, children: policy.name }),
|
|
28096
28203
|
/* @__PURE__ */ jsx255("p", { className: "break-all text-ods-text-secondary text-h6", children: policy.commandPattern }),
|
|
28097
|
-
editMode ? /* @__PURE__ */ jsx255("div", { className: "mt-[var(--spacing-system-xsf)] md:hidden", children: /* @__PURE__ */ jsx255(
|
|
28204
|
+
editMode ? /* @__PURE__ */ jsx255("div", { className: "mt-[var(--spacing-system-xsf)] content-md:hidden", children: /* @__PURE__ */ jsx255(
|
|
28098
28205
|
ApprovalLevelDropdown,
|
|
28099
28206
|
{
|
|
28100
28207
|
value: policy.approvalLevel,
|
|
@@ -28102,9 +28209,9 @@ var PolicyRow = ({ policy, categoryId, editMode, onPermissionChange }) => {
|
|
|
28102
28209
|
triggerClassName: "w-full",
|
|
28103
28210
|
contentClassName: POLICY_LEVEL_WIDTH
|
|
28104
28211
|
}
|
|
28105
|
-
) }) : policy.approvalLevel ? /* @__PURE__ */ jsx255("span", { className: "text-ods-text-primary text-h4 md:hidden", children: getApprovalLevelLabel(policy.approvalLevel) }) : null
|
|
28212
|
+
) }) : policy.approvalLevel ? /* @__PURE__ */ jsx255("span", { className: "text-ods-text-primary text-h4 content-md:hidden", children: getApprovalLevelLabel(policy.approvalLevel) }) : null
|
|
28106
28213
|
] }),
|
|
28107
|
-
/* @__PURE__ */ jsx255("div", { className: "hidden shrink-0 md:block", children: editMode ? /* @__PURE__ */ jsx255(
|
|
28214
|
+
/* @__PURE__ */ jsx255("div", { className: "hidden shrink-0 content-md:block", children: editMode ? /* @__PURE__ */ jsx255(
|
|
28108
28215
|
ApprovalLevelDropdown,
|
|
28109
28216
|
{
|
|
28110
28217
|
value: policy.approvalLevel,
|
|
@@ -28132,7 +28239,7 @@ var CategorySection = ({ category, editMode, isExpanded, bulkLevel, onToggle, on
|
|
|
28132
28239
|
category.policies.length,
|
|
28133
28240
|
" Configurations"
|
|
28134
28241
|
] }),
|
|
28135
|
-
editMode && /* @__PURE__ */ jsx255("div", { className: "mt-[var(--spacing-system-xsf)] md:hidden", onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ jsx255(
|
|
28242
|
+
editMode && /* @__PURE__ */ jsx255("div", { className: "mt-[var(--spacing-system-xsf)] content-md:hidden", onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ jsx255(
|
|
28136
28243
|
ApprovalLevelDropdown,
|
|
28137
28244
|
{
|
|
28138
28245
|
value: bulkLevel,
|
|
@@ -28143,7 +28250,7 @@ var CategorySection = ({ category, editMode, isExpanded, bulkLevel, onToggle, on
|
|
|
28143
28250
|
}
|
|
28144
28251
|
) })
|
|
28145
28252
|
] }),
|
|
28146
|
-
editMode ? /* @__PURE__ */ jsx255("div", { className: "hidden shrink-0 md:block", onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ jsx255(
|
|
28253
|
+
editMode ? /* @__PURE__ */ jsx255("div", { className: "hidden shrink-0 content-md:block", onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ jsx255(
|
|
28147
28254
|
ApprovalLevelDropdown,
|
|
28148
28255
|
{
|
|
28149
28256
|
value: bulkLevel,
|
|
@@ -28156,7 +28263,7 @@ var CategorySection = ({ category, editMode, isExpanded, bulkLevel, onToggle, on
|
|
|
28156
28263
|
"div",
|
|
28157
28264
|
{
|
|
28158
28265
|
className: cn(
|
|
28159
|
-
"hidden shrink-0 px-[var(--spacing-system-sf)] py-[var(--spacing-system-xsf)] md:block",
|
|
28266
|
+
"hidden shrink-0 px-[var(--spacing-system-sf)] py-[var(--spacing-system-xsf)] content-md:block",
|
|
28160
28267
|
CATEGORY_LEVEL_WIDTH
|
|
28161
28268
|
)
|
|
28162
28269
|
}
|
|
@@ -28452,7 +28559,7 @@ function WaitlistForm({
|
|
|
28452
28559
|
disabled: isSubmitting,
|
|
28453
28560
|
leftIcon: /* @__PURE__ */ jsx256(OpenFrameLogo, {}),
|
|
28454
28561
|
onClick: handleSubmit,
|
|
28455
|
-
className: "w-full md:w-auto",
|
|
28562
|
+
className: "w-full content-md:w-auto",
|
|
28456
28563
|
children: isSuccess ? successLabel : submitLabel
|
|
28457
28564
|
}
|
|
28458
28565
|
)
|
|
@@ -28823,15 +28930,7 @@ var appLayoutDrawerPanelVariants = cva7(
|
|
|
28823
28930
|
);
|
|
28824
28931
|
var HORIZONTAL_SIDES = /* @__PURE__ */ new Set(["left", "right"]);
|
|
28825
28932
|
var PERSIST_CLOSED_HOLD = "data-[state=closed]:fill-mode-forwards";
|
|
28826
|
-
function
|
|
28827
|
-
enabled,
|
|
28828
|
-
isHorizontal,
|
|
28829
|
-
minSize,
|
|
28830
|
-
maxSize,
|
|
28831
|
-
defaultSize,
|
|
28832
|
-
storageKey,
|
|
28833
|
-
container
|
|
28834
|
-
}) {
|
|
28933
|
+
function useContainerExtent(enabled, isHorizontal, container) {
|
|
28835
28934
|
const [available, setAvailable] = useState69(0);
|
|
28836
28935
|
useEffect39(() => {
|
|
28837
28936
|
if (!enabled || !container) return void 0;
|
|
@@ -28843,147 +28942,7 @@ function useContainedResizableSize({
|
|
|
28843
28942
|
ro.observe(container);
|
|
28844
28943
|
return () => ro.disconnect();
|
|
28845
28944
|
}, [enabled, container, isHorizontal]);
|
|
28846
|
-
|
|
28847
|
-
(value) => {
|
|
28848
|
-
const effectiveMax = available > 0 ? Math.min(maxSize, available - 40) : maxSize;
|
|
28849
|
-
return clamp(value, minSize, Math.max(minSize, effectiveMax));
|
|
28850
|
-
},
|
|
28851
|
-
[available, minSize, maxSize]
|
|
28852
|
-
);
|
|
28853
|
-
const readInitial = useCallback24(() => {
|
|
28854
|
-
if (!enabled) return defaultSize;
|
|
28855
|
-
if (typeof window === "undefined") return defaultSize;
|
|
28856
|
-
if (!storageKey) return defaultSize;
|
|
28857
|
-
try {
|
|
28858
|
-
const raw = window.localStorage.getItem(storageKey);
|
|
28859
|
-
if (!raw) return defaultSize;
|
|
28860
|
-
const parsed = parseFloat(raw);
|
|
28861
|
-
if (!Number.isFinite(parsed)) return defaultSize;
|
|
28862
|
-
return parsed;
|
|
28863
|
-
} catch {
|
|
28864
|
-
return defaultSize;
|
|
28865
|
-
}
|
|
28866
|
-
}, [enabled, storageKey, defaultSize]);
|
|
28867
|
-
const [rawSize, setSizeRaw] = useState69(readInitial);
|
|
28868
|
-
const size = enabled ? clampToContainer(rawSize) : rawSize;
|
|
28869
|
-
const setSize = useCallback24((next) => setSizeRaw(clampToContainer(next)), [clampToContainer]);
|
|
28870
|
-
useEffect39(() => {
|
|
28871
|
-
if (!enabled || !storageKey || typeof window === "undefined") return;
|
|
28872
|
-
try {
|
|
28873
|
-
window.localStorage.setItem(storageKey, String(Math.round(size)));
|
|
28874
|
-
} catch {
|
|
28875
|
-
}
|
|
28876
|
-
}, [enabled, size, storageKey]);
|
|
28877
|
-
return { size, setSize, clampSize: clampToContainer };
|
|
28878
|
-
}
|
|
28879
|
-
function finishDrag(startRef, dragSizeRef, commit) {
|
|
28880
|
-
if (!startRef.current) return;
|
|
28881
|
-
startRef.current = null;
|
|
28882
|
-
if (dragSizeRef.current !== null) commit(dragSizeRef.current);
|
|
28883
|
-
dragSizeRef.current = null;
|
|
28884
|
-
document.body.style.cursor = "";
|
|
28885
|
-
document.body.style.userSelect = "";
|
|
28886
|
-
}
|
|
28887
|
-
function AppLayoutDrawerResizeHandle({
|
|
28888
|
-
side,
|
|
28889
|
-
size,
|
|
28890
|
-
minSize,
|
|
28891
|
-
maxSize,
|
|
28892
|
-
onSize,
|
|
28893
|
-
clampSize,
|
|
28894
|
-
panelRef,
|
|
28895
|
-
ariaLabel
|
|
28896
|
-
}) {
|
|
28897
|
-
const isHorizontal = HORIZONTAL_SIDES.has(side);
|
|
28898
|
-
const startRef = useRef37(null);
|
|
28899
|
-
const dragSizeRef = useRef37(null);
|
|
28900
|
-
const onSizeRef = useRef37(onSize);
|
|
28901
|
-
useEffect39(() => {
|
|
28902
|
-
onSizeRef.current = onSize;
|
|
28903
|
-
}, [onSize]);
|
|
28904
|
-
useEffect39(() => () => finishDrag(startRef, dragSizeRef, onSizeRef.current), []);
|
|
28905
|
-
const direction = side === "right" || side === "bottom" ? -1 : 1;
|
|
28906
|
-
const handlePointerDown = (e) => {
|
|
28907
|
-
if (e.button !== 0 && e.pointerType === "mouse") return;
|
|
28908
|
-
e.preventDefault();
|
|
28909
|
-
startRef.current = { x: e.clientX, y: e.clientY, size };
|
|
28910
|
-
e.currentTarget.setPointerCapture(e.pointerId);
|
|
28911
|
-
document.body.style.cursor = isHorizontal ? "col-resize" : "row-resize";
|
|
28912
|
-
document.body.style.userSelect = "none";
|
|
28913
|
-
};
|
|
28914
|
-
const handlePointerMove = (e) => {
|
|
28915
|
-
const start = startRef.current;
|
|
28916
|
-
const panel = panelRef.current;
|
|
28917
|
-
if (!start || !panel) return;
|
|
28918
|
-
const delta = isHorizontal ? e.clientX - start.x : e.clientY - start.y;
|
|
28919
|
-
const next = clampSize(start.size + delta * direction);
|
|
28920
|
-
dragSizeRef.current = next;
|
|
28921
|
-
panel.style[isHorizontal ? "width" : "height"] = `${next}px`;
|
|
28922
|
-
e.currentTarget.setAttribute("aria-valuenow", String(Math.round(next)));
|
|
28923
|
-
};
|
|
28924
|
-
const endDrag = (e) => {
|
|
28925
|
-
if (!startRef.current) return;
|
|
28926
|
-
finishDrag(startRef, dragSizeRef, onSize);
|
|
28927
|
-
try {
|
|
28928
|
-
e.currentTarget.releasePointerCapture(e.pointerId);
|
|
28929
|
-
} catch {
|
|
28930
|
-
}
|
|
28931
|
-
};
|
|
28932
|
-
const handleKeyDown = (e) => {
|
|
28933
|
-
const step = e.shiftKey ? 40 : 16;
|
|
28934
|
-
if (isHorizontal) {
|
|
28935
|
-
if (e.key === "ArrowLeft") {
|
|
28936
|
-
e.preventDefault();
|
|
28937
|
-
onSize(size + step * (side === "right" ? 1 : -1));
|
|
28938
|
-
} else if (e.key === "ArrowRight") {
|
|
28939
|
-
e.preventDefault();
|
|
28940
|
-
onSize(size + step * (side === "right" ? -1 : 1));
|
|
28941
|
-
}
|
|
28942
|
-
} else {
|
|
28943
|
-
if (e.key === "ArrowUp") {
|
|
28944
|
-
e.preventDefault();
|
|
28945
|
-
onSize(size + step * (side === "bottom" ? 1 : -1));
|
|
28946
|
-
} else if (e.key === "ArrowDown") {
|
|
28947
|
-
e.preventDefault();
|
|
28948
|
-
onSize(size + step * (side === "bottom" ? -1 : 1));
|
|
28949
|
-
}
|
|
28950
|
-
}
|
|
28951
|
-
if (e.key === "Home") {
|
|
28952
|
-
e.preventDefault();
|
|
28953
|
-
onSize(minSize);
|
|
28954
|
-
} else if (e.key === "End") {
|
|
28955
|
-
e.preventDefault();
|
|
28956
|
-
onSize(maxSize);
|
|
28957
|
-
}
|
|
28958
|
-
};
|
|
28959
|
-
const trackPosition = side === "right" ? "right-full top-4 bottom-4 w-6 items-center justify-end pr-1" : side === "left" ? "left-full top-4 bottom-4 w-6 items-center justify-start pl-1" : side === "bottom" ? "bottom-full left-4 right-4 h-6 justify-center items-end pb-1" : "top-full left-4 right-4 h-6 justify-center items-start pt-1";
|
|
28960
|
-
const cursorClass = isHorizontal ? "cursor-col-resize" : "cursor-row-resize";
|
|
28961
|
-
const gripClass = isHorizontal ? "h-10 w-1" : "w-10 h-1";
|
|
28962
|
-
return /* @__PURE__ */ jsx258(
|
|
28963
|
-
"div",
|
|
28964
|
-
{
|
|
28965
|
-
role: "separator",
|
|
28966
|
-
tabIndex: 0,
|
|
28967
|
-
"aria-orientation": isHorizontal ? "vertical" : "horizontal",
|
|
28968
|
-
"aria-valuenow": Math.round(size),
|
|
28969
|
-
"aria-valuemin": minSize,
|
|
28970
|
-
"aria-valuemax": maxSize,
|
|
28971
|
-
"aria-label": ariaLabel ?? (isHorizontal ? "Resize panel width" : "Resize panel height"),
|
|
28972
|
-
onPointerDown: handlePointerDown,
|
|
28973
|
-
onPointerMove: handlePointerMove,
|
|
28974
|
-
onPointerUp: endDrag,
|
|
28975
|
-
onPointerCancel: endDrag,
|
|
28976
|
-
onLostPointerCapture: endDrag,
|
|
28977
|
-
onKeyDown: handleKeyDown,
|
|
28978
|
-
className: cn(
|
|
28979
|
-
"group absolute z-20 flex touch-none select-none",
|
|
28980
|
-
"outline-none ring-0 focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0",
|
|
28981
|
-
trackPosition,
|
|
28982
|
-
cursorClass
|
|
28983
|
-
),
|
|
28984
|
-
children: /* @__PURE__ */ jsx258("div", { "aria-hidden": true, className: cn("rounded-full bg-ods-border", gripClass) })
|
|
28985
|
-
}
|
|
28986
|
-
);
|
|
28945
|
+
return available;
|
|
28987
28946
|
}
|
|
28988
28947
|
var AppLayoutDrawerContent = forwardRef30(
|
|
28989
28948
|
({
|
|
@@ -29078,14 +29037,15 @@ var AppLayoutDrawerContent = forwardRef30(
|
|
|
29078
29037
|
return () => mq.removeEventListener("change", update);
|
|
29079
29038
|
}, [mobileBreakpoint]);
|
|
29080
29039
|
const panelRef = useRef37(null);
|
|
29081
|
-
const
|
|
29040
|
+
const available = useContainerExtent(resizable, isHorizontal, portalContainer);
|
|
29041
|
+
const { size, setSize, clampSize } = useResizablePanelSize({
|
|
29082
29042
|
enabled: resizable,
|
|
29083
|
-
isHorizontal,
|
|
29084
29043
|
minSize,
|
|
29085
29044
|
maxSize,
|
|
29086
29045
|
defaultSize: initialSize,
|
|
29087
|
-
|
|
29088
|
-
|
|
29046
|
+
available,
|
|
29047
|
+
reserve: 40,
|
|
29048
|
+
storageKey
|
|
29089
29049
|
});
|
|
29090
29050
|
const applyInlineSize = resizable && !isMobile;
|
|
29091
29051
|
const sizeStyle = applyInlineSize ? isHorizontal ? { width: size } : { height: size } : {};
|
|
@@ -29139,8 +29099,9 @@ var AppLayoutDrawerContent = forwardRef30(
|
|
|
29139
29099
|
...props,
|
|
29140
29100
|
children: [
|
|
29141
29101
|
applyInlineSize && (!persist || open) ? /* @__PURE__ */ jsx258(
|
|
29142
|
-
|
|
29102
|
+
PanelResizeHandle,
|
|
29143
29103
|
{
|
|
29104
|
+
variant: "inLayout",
|
|
29144
29105
|
side: resolvedSide,
|
|
29145
29106
|
size,
|
|
29146
29107
|
minSize,
|
|
@@ -31438,7 +31399,7 @@ function BoardColumnHeader({
|
|
|
31438
31399
|
const count = column.total ?? column.tickets.length;
|
|
31439
31400
|
const tagStatus = column.statusKey ?? column.id;
|
|
31440
31401
|
const useStatusVariant = resolveTicketStatus(tagStatus) !== null;
|
|
31441
|
-
const actionClass = "h-8 w-8 p-0 md:h-8 md:w-8";
|
|
31402
|
+
const actionClass = "h-8 w-8 p-0 content-md:h-8 content-md:w-8";
|
|
31442
31403
|
if (collapsed) {
|
|
31443
31404
|
return /* @__PURE__ */ jsxs221("div", { className: "flex h-full flex-col items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
31444
31405
|
onToggleCollapse && /* @__PURE__ */ jsx278(
|