@flamingo-stack/openframe-frontend-core 0.0.711 → 0.0.713
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-2NASBO7O.js +1137 -0
- package/dist/{chunk-RQRX4YC3.cjs → chunk-2RKFMUNW.cjs} +46 -46
- package/dist/chunk-2Y7QZAB2.cjs +158 -0
- package/dist/chunk-34I6XI3N.js +136 -0
- package/dist/{chunk-VWFZRMQR.js → chunk-3BB3IEJI.js} +13 -7
- package/dist/chunk-3K5ZLZE7.js +292 -0
- package/dist/chunk-3LU4UFPS.cjs +14 -0
- package/dist/{chunk-G47AP6LX.cjs → chunk-3QGUDPIH.cjs} +35 -33
- package/dist/{chunk-3UNL26CD.cjs → chunk-3RKBJT6K.cjs} +8 -6
- package/dist/chunk-4HJRHEXD.cjs +1612 -0
- package/dist/{chunk-JPG7OHEG.js → chunk-4QFWGLZO.js} +1 -1
- package/dist/chunk-4R2L3DSA.js +14 -0
- package/dist/{chunk-VMMHJFHG.js → chunk-6F4QOCGB.js} +10 -8
- package/dist/{chunk-Q6B35Y7O.js → chunk-6MNAIQNR.js} +22 -113
- package/dist/{chunk-KUC673HM.js → chunk-6T3BTD6Q.js} +204 -982
- package/dist/{chunk-F57ECE2I.js → chunk-6YPTUHM7.js} +4 -4
- package/dist/chunk-AAYNCJMW.cjs +48 -0
- package/dist/{chunk-FXJ3WWUB.js → chunk-ADBE7QF3.js} +5 -252
- package/dist/chunk-AECTRMGQ.cjs +334 -0
- package/dist/chunk-AGVXKD4K.js +334 -0
- package/dist/chunk-AL2GUHAJ.cjs +18 -0
- package/dist/{chunk-WMX26HB5.js → chunk-APJZBDQN.js} +12 -12
- package/dist/chunk-AUMKE74M.cjs +16 -0
- package/dist/chunk-B4NCVYEQ.cjs +292 -0
- package/dist/{chunk-WJUIXU6Y.js → chunk-CGHOH3GN.js} +28 -22
- package/dist/chunk-CMGFZHCN.js +233 -0
- package/dist/chunk-CMZ3QTFQ.js +1207 -0
- package/dist/chunk-CPA2CKRZ.cjs +125 -0
- package/dist/chunk-CYUUHFXL.js +41 -0
- package/dist/chunk-DC4RTYWK.cjs +1122 -0
- package/dist/{chunk-NF7GNGYG.js → chunk-DDWFCWOE.js} +5 -7
- package/dist/{chunk-QA6TROME.cjs → chunk-EOKSKJSS.cjs} +25 -83
- package/dist/{chunk-6NTPY5QA.cjs → chunk-ETYLOZOB.cjs} +978 -2413
- package/dist/{chunk-6AMIRXKM.cjs → chunk-F2EACDOR.cjs} +93 -87
- package/dist/chunk-F5BPGWGT.cjs +931 -0
- package/dist/chunk-FFT56TYB.cjs +401 -0
- package/dist/chunk-FYEJTF5Y.js +125 -0
- package/dist/chunk-G3GRYDMS.js +16 -0
- package/dist/chunk-G6OHIX5C.cjs +100 -0
- package/dist/{chunk-UDFRUKLC.cjs → chunk-GEDY7HQI.cjs} +2 -2
- package/dist/chunk-GQ7JJUIT.cjs +1207 -0
- package/dist/chunk-H3PKYE4N.js +18 -0
- package/dist/{chunk-EQWD4IJE.js → chunk-H4J72PRA.js} +74 -46
- package/dist/{chunk-AGDVEUVL.js → chunk-H5R7U2D2.js} +206 -5
- package/dist/{chunk-7AM6C6XH.cjs → chunk-HETQETPV.cjs} +9641 -9678
- package/dist/{chunk-Y2GSOUCS.cjs → chunk-HWVUR735.cjs} +2 -2
- package/dist/chunk-II4QMH26.cjs +35 -0
- package/dist/{chunk-XWEBHS7O.cjs → chunk-IJKMILMG.cjs} +82 -54
- package/dist/chunk-ILNN6QRW.js +1612 -0
- package/dist/{chunk-6GLQLTJI.js → chunk-IU4IO3CG.js} +35 -27
- package/dist/chunk-IYVFSLWJ.js +931 -0
- package/dist/{chunk-EX6GGCAC.cjs → chunk-J7YIQJPS.cjs} +15 -15
- package/dist/chunk-JHQ334WS.js +655 -0
- package/dist/{chunk-WCVZCGK5.cjs → chunk-JO5TLJPM.cjs} +129 -907
- package/dist/{chunk-PRX7HVLE.cjs → chunk-JVCAK4W3.cjs} +210 -9
- package/dist/chunk-KBJJQFYU.js +1122 -0
- package/dist/chunk-KEKCQENI.js +48 -0
- package/dist/{chunk-P6G3JZNC.cjs → chunk-KGAFUXGZ.cjs} +57 -148
- package/dist/chunk-KHXZFLIN.cjs +41 -0
- package/dist/{chunk-C4HRRB3V.cjs → chunk-KMB7JHGG.cjs} +23 -17
- package/dist/{chunk-K4PTDK34.js → chunk-KPUHSVJU.js} +322 -428
- package/dist/chunk-KT3U3ZRP.cjs +1137 -0
- package/dist/chunk-L2VUINHN.js +35 -0
- package/dist/{chunk-PLYEKV3N.cjs → chunk-MA4Q5RBP.cjs} +6 -6
- package/dist/chunk-NPAQSMRY.js +2087 -0
- package/dist/{chunk-IFWLJ66M.js → chunk-NQWJAOHO.js} +6 -4
- package/dist/{chunk-FYOKS5RI.cjs → chunk-OQKRXLTZ.cjs} +4719 -6351
- package/dist/chunk-P3JMAMHP.js +401 -0
- package/dist/{chunk-62KNLDXK.js → chunk-P6QCJXLD.js} +3 -3
- package/dist/chunk-PPXR22YC.cjs +2087 -0
- package/dist/chunk-PSVSEN4J.cjs +655 -0
- package/dist/{chunk-CDM7OSFB.cjs → chunk-QQQ46DFT.cjs} +125 -117
- package/dist/{chunk-FEMAJES4.cjs → chunk-QU4AHNRL.cjs} +41 -39
- package/dist/{chunk-2JTGK64G.js → chunk-RBVUIOIM.js} +12 -10
- package/dist/{chunk-SMAAV3HL.js → chunk-ROBQ5TR7.js} +10541 -10578
- package/dist/{chunk-TKZXHVBG.js → chunk-RRYNHAEL.js} +5 -5
- package/dist/{chunk-5HB7FLCV.js → chunk-STPC2AQU.js} +8338 -9970
- package/dist/{chunk-6K7QZDA6.cjs → chunk-TC4W7QDC.cjs} +8 -8
- package/dist/{chunk-FI6GMDO7.js → chunk-TTVOLEUS.js} +3605 -5040
- package/dist/{chunk-LM7TXMLU.cjs → chunk-ULWVKHSI.cjs} +8 -255
- package/dist/chunk-WANCBTUE.js +71 -0
- package/dist/{chunk-BIZNSF3U.cjs → chunk-WBNAEYTQ.cjs} +2 -51
- package/dist/chunk-WFPCCBOM.cjs +71 -0
- package/dist/chunk-WI6FHKD7.js +158 -0
- package/dist/chunk-WMNCVLES.js +100 -0
- package/dist/{chunk-UT4YHQZW.js → chunk-WSDT7LYL.js} +0 -49
- package/dist/chunk-WVOTC7HW.cjs +136 -0
- package/dist/chunk-XXBLN4BP.cjs +233 -0
- package/dist/{chunk-4IBPRIQH.js → chunk-YBQQNDC7.js} +1 -1
- package/dist/{chunk-QGZPZ3RL.js → chunk-YBS5QGON.js} +70 -128
- package/dist/{chunk-K6Y5NX6L.cjs → chunk-YIUSW4DB.cjs} +114 -220
- package/dist/{chunk-YD4LJZV4.cjs → chunk-ZX7SCPLO.cjs} +6 -8
- package/dist/cloud-tenants-HRJYNUJM.cjs +117 -0
- package/dist/cloud-tenants-SM7WLEGG.js +117 -0
- package/dist/components/case-studies/index.cjs +45 -29
- package/dist/components/case-studies/index.js +32 -16
- package/dist/components/chat/ask-prompts.d.ts +64 -0
- package/dist/components/chat/ask-prompts.d.ts.map +1 -0
- package/dist/components/chat/entity-cards/case-study-card.d.ts +6 -3
- package/dist/components/chat/entity-cards/case-study-card.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +27 -8
- package/dist/components/chat/index.d.ts +1 -0
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +57 -38
- package/dist/components/chat/quick-action-chip.d.ts +7 -3
- package/dist/components/chat/quick-action-chip.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +29 -13
- package/dist/components/contact/index.js +28 -12
- package/dist/components/docs/index.cjs +33 -16
- package/dist/components/docs/index.js +33 -16
- package/dist/components/docs/use-scroll-spy.d.ts +23 -1
- package/dist/components/docs/use-scroll-spy.d.ts.map +1 -1
- package/dist/components/embeds/index.cjs +29 -13
- package/dist/components/embeds/index.js +28 -12
- package/dist/components/faq/faq-section.d.ts +8 -1
- package/dist/components/faq/faq-section.d.ts.map +1 -1
- package/dist/components/faq/index.cjs +30 -14
- package/dist/components/faq/index.js +29 -13
- package/dist/components/features/approval-level.d.ts +49 -0
- package/dist/components/features/approval-level.d.ts.map +1 -0
- package/dist/components/features/array-entry-manager.d.ts +5 -1
- package/dist/components/features/array-entry-manager.d.ts.map +1 -1
- package/dist/components/features/board/board.d.ts +2 -0
- package/dist/components/features/board/board.d.ts.map +1 -1
- package/dist/components/features/board/ticket-card.d.ts.map +1 -1
- package/dist/components/features/board/touch-board.d.ts +1 -1
- package/dist/components/features/board/touch-board.d.ts.map +1 -1
- package/dist/components/features/board/types.d.ts +3 -0
- package/dist/components/features/board/types.d.ts.map +1 -1
- package/dist/components/features/board/use-board-collapse.d.ts +6 -1
- package/dist/components/features/board/use-board-collapse.d.ts.map +1 -1
- package/dist/components/features/capability-explorer.d.ts +94 -0
- package/dist/components/features/capability-explorer.d.ts.map +1 -0
- package/dist/components/features/cloud-tenants/index.d.ts +14 -0
- package/dist/components/features/cloud-tenants/index.d.ts.map +1 -0
- package/dist/components/features/cloud-tenants/tenant-access-cell.d.ts +9 -0
- package/dist/components/features/cloud-tenants/tenant-access-cell.d.ts.map +1 -0
- package/dist/components/features/cloud-tenants/tenant-cell.d.ts +8 -0
- package/dist/components/features/cloud-tenants/tenant-cell.d.ts.map +1 -0
- package/dist/components/features/cloud-tenants/tenant-customer-cell.d.ts +9 -0
- package/dist/components/features/cloud-tenants/tenant-customer-cell.d.ts.map +1 -0
- package/dist/components/features/cloud-tenants/tenant-presentation.d.ts +42 -0
- package/dist/components/features/cloud-tenants/tenant-presentation.d.ts.map +1 -0
- package/dist/components/features/cloud-tenants/tenant-row.d.ts +22 -0
- package/dist/components/features/cloud-tenants/tenant-row.d.ts.map +1 -0
- package/dist/components/features/cloud-tenants/tenants-table-columns.d.ts +42 -0
- package/dist/components/features/cloud-tenants/tenants-table-columns.d.ts.map +1 -0
- package/dist/components/features/cloud-tenants/tenants-table-view.d.ts +26 -0
- package/dist/components/features/cloud-tenants/tenants-table-view.d.ts.map +1 -0
- package/dist/components/features/devices/device-last-online.d.ts +3 -0
- package/dist/components/features/devices/device-last-online.d.ts.map +1 -0
- package/dist/components/features/devices/device-name.d.ts +42 -0
- package/dist/components/features/devices/device-name.d.ts.map +1 -0
- package/dist/components/features/devices/device-selector/device-selection-mode-radio.d.ts +26 -0
- package/dist/components/features/devices/device-selector/device-selection-mode-radio.d.ts.map +1 -0
- package/dist/components/features/devices/device-selector/device-selector-skeleton.d.ts +25 -0
- package/dist/components/features/devices/device-selector/device-selector-skeleton.d.ts.map +1 -0
- package/dist/components/features/devices/device-selector/device-selector.d.ts +38 -0
- package/dist/components/features/devices/device-selector/device-selector.d.ts.map +1 -0
- package/dist/components/features/devices/device-selector/device-selector.types.d.ts +133 -0
- package/dist/components/features/devices/device-selector/device-selector.types.d.ts.map +1 -0
- package/dist/components/features/devices/device-selector/narrowing.d.ts +13 -0
- package/dist/components/features/devices/device-selector/narrowing.d.ts.map +1 -0
- package/dist/components/features/devices/device-selector/use-device-selector.d.ts +17 -0
- package/dist/components/features/devices/device-selector/use-device-selector.d.ts.map +1 -0
- package/dist/components/features/devices/device-status.d.ts +23 -0
- package/dist/components/features/devices/device-status.d.ts.map +1 -0
- package/dist/components/features/devices/device-statuses.d.ts +40 -0
- package/dist/components/features/devices/device-statuses.d.ts.map +1 -0
- package/dist/components/features/devices/device-tags-filter-button.d.ts +22 -0
- package/dist/components/features/devices/device-tags-filter-button.d.ts.map +1 -0
- package/dist/components/features/devices/device-type-icon.d.ts +11 -0
- package/dist/components/features/devices/device-type-icon.d.ts.map +1 -0
- package/dist/components/features/devices/device-type-tile.d.ts +9 -0
- package/dist/components/features/devices/device-type-tile.d.ts.map +1 -0
- package/dist/components/features/devices/devices-filter-toolbar.d.ts +46 -0
- package/dist/components/features/devices/devices-filter-toolbar.d.ts.map +1 -0
- package/dist/components/features/devices/devices-grid-filters.d.ts +25 -0
- package/dist/components/features/devices/devices-grid-filters.d.ts.map +1 -0
- package/dist/components/features/devices/devices-grid.d.ts +12 -0
- package/dist/components/features/devices/devices-grid.d.ts.map +1 -0
- package/dist/components/features/devices/devices-list.d.ts +131 -0
- package/dist/components/features/devices/devices-list.d.ts.map +1 -0
- package/dist/components/features/devices/devices-panel-header.d.ts +46 -0
- package/dist/components/features/devices/devices-panel-header.d.ts.map +1 -0
- package/dist/components/features/devices/devices-panel-view.d.ts +79 -0
- package/dist/components/features/devices/devices-panel-view.d.ts.map +1 -0
- package/dist/components/features/devices/devices-table-columns.d.ts +76 -0
- package/dist/components/features/devices/devices-table-columns.d.ts.map +1 -0
- package/dist/components/features/devices/devices-view-config.d.ts +25 -0
- package/dist/components/features/devices/devices-view-config.d.ts.map +1 -0
- package/dist/components/features/devices/index.d.ts +24 -0
- package/dist/components/features/devices/index.d.ts.map +1 -0
- package/dist/components/features/devices/types.d.ts +68 -0
- package/dist/components/features/devices/types.d.ts.map +1 -0
- package/dist/components/features/devices/use-tag-filter-modal.d.ts +50 -0
- package/dist/components/features/devices/use-tag-filter-modal.d.ts.map +1 -0
- package/dist/components/features/index.cjs +235 -12
- package/dist/components/features/index.d.ts +8 -0
- package/dist/components/features/index.d.ts.map +1 -1
- package/dist/components/features/index.js +274 -51
- package/dist/components/features/knowledge-base/index.d.ts +7 -0
- package/dist/components/features/knowledge-base/index.d.ts.map +1 -0
- package/dist/components/features/knowledge-base/knowledge-base-article-view.d.ts +44 -0
- package/dist/components/features/knowledge-base/knowledge-base-article-view.d.ts.map +1 -0
- package/dist/components/features/knowledge-base/knowledge-base-item-icon.d.ts +13 -0
- package/dist/components/features/knowledge-base/knowledge-base-item-icon.d.ts.map +1 -0
- package/dist/components/features/knowledge-base/knowledge-base-status.d.ts +8 -0
- package/dist/components/features/knowledge-base/knowledge-base-status.d.ts.map +1 -0
- package/dist/components/features/knowledge-base/knowledge-base-table.d.ts +52 -0
- package/dist/components/features/knowledge-base/knowledge-base-table.d.ts.map +1 -0
- package/dist/components/features/logs/index.d.ts +12 -0
- package/dist/components/features/logs/index.d.ts.map +1 -0
- package/dist/components/features/logs/log-drawer.d.ts +29 -0
- package/dist/components/features/logs/log-drawer.d.ts.map +1 -0
- package/dist/components/features/logs/log-source-labels.d.ts +11 -0
- package/dist/components/features/logs/log-source-labels.d.ts.map +1 -0
- package/dist/components/features/logs/logs-page-view.d.ts +32 -0
- package/dist/components/features/logs/logs-page-view.d.ts.map +1 -0
- package/dist/components/features/logs/logs-table-columns.d.ts +15 -0
- package/dist/components/features/logs/logs-table-columns.d.ts.map +1 -0
- package/dist/components/features/logs/logs-table-view.d.ts +64 -0
- package/dist/components/features/logs/logs-table-view.d.ts.map +1 -0
- package/dist/components/features/logs/types.d.ts +52 -0
- package/dist/components/features/logs/types.d.ts.map +1 -0
- package/dist/components/features/policies/compute-policy-summary.d.ts +37 -0
- package/dist/components/features/policies/compute-policy-summary.d.ts.map +1 -0
- package/dist/components/features/policies/index.d.ts +8 -0
- package/dist/components/features/policies/index.d.ts.map +1 -0
- package/dist/components/features/policies/policies-table.d.ts +34 -0
- package/dist/components/features/policies/policies-table.d.ts.map +1 -0
- package/dist/components/features/policies/policy-summary-cards.d.ts +17 -0
- package/dist/components/features/policies/policy-summary-cards.d.ts.map +1 -0
- package/dist/components/features/policies/policy-table-row.d.ts +37 -0
- package/dist/components/features/policies/policy-table-row.d.ts.map +1 -0
- package/dist/components/features/policy-configuration-panel.d.ts.map +1 -1
- package/dist/components/features/remote-session/index.d.ts +8 -0
- package/dist/components/features/remote-session/index.d.ts.map +1 -1
- package/dist/components/features/remote-session/remote-desktop-chat-message-row.d.ts +21 -0
- package/dist/components/features/remote-session/remote-desktop-chat-message-row.d.ts.map +1 -0
- package/dist/components/features/remote-session/remote-desktop-chat-panel.d.ts +31 -0
- package/dist/components/features/remote-session/remote-desktop-chat-panel.d.ts.map +1 -0
- package/dist/components/features/remote-session/remote-desktop-fullscreen-toolbar.d.ts +21 -0
- package/dist/components/features/remote-session/remote-desktop-fullscreen-toolbar.d.ts.map +1 -0
- package/dist/components/features/remote-session/remote-desktop-view.d.ts +50 -0
- package/dist/components/features/remote-session/remote-desktop-view.d.ts.map +1 -0
- package/dist/components/features/software/index.d.ts +8 -0
- package/dist/components/features/software/index.d.ts.map +1 -0
- package/dist/components/features/software/package-managers.d.ts +30 -0
- package/dist/components/features/software/package-managers.d.ts.map +1 -0
- package/dist/components/features/software/package-search-field-placeholder.d.ts +7 -0
- package/dist/components/features/software/package-search-field-placeholder.d.ts.map +1 -0
- package/dist/components/features/software/schedule-fields.d.ts +34 -0
- package/dist/components/features/software/schedule-fields.d.ts.map +1 -0
- package/dist/components/features/software/software-action-copy.d.ts +25 -0
- package/dist/components/features/software/software-action-copy.d.ts.map +1 -0
- package/dist/components/features/software/software-action-form.d.ts +71 -0
- package/dist/components/features/software/software-action-form.d.ts.map +1 -0
- package/dist/components/features/software/software-row-fields.d.ts +23 -0
- package/dist/components/features/software/software-row-fields.d.ts.map +1 -0
- package/dist/components/features/software/software-row.d.ts +18 -0
- package/dist/components/features/software/software-row.d.ts.map +1 -0
- package/dist/components/features/sortable-list/index.d.ts +1 -0
- package/dist/components/features/sortable-list/index.d.ts.map +1 -1
- package/dist/components/features/sortable-list/sortable-drag-handle.d.ts +21 -0
- package/dist/components/features/sortable-list/sortable-drag-handle.d.ts.map +1 -0
- package/dist/components/help-center-pages/index.cjs +133 -114
- package/dist/components/help-center-pages/index.js +58 -39
- package/dist/components/index.cjs +328 -82
- package/dist/components/index.js +459 -213
- package/dist/components/layout/page-heading.d.ts +12 -3
- package/dist/components/layout/page-heading.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +120 -98
- package/dist/components/meeting-scheduler/index.js +50 -28
- package/dist/components/navigation/index.cjs +36 -17
- package/dist/components/navigation/index.d.ts +3 -0
- package/dist/components/navigation/index.d.ts.map +1 -1
- package/dist/components/navigation/index.js +36 -17
- package/dist/components/navigation/mingo-ai-button.d.ts +23 -10
- package/dist/components/navigation/mingo-ai-button.d.ts.map +1 -1
- package/dist/components/navigation/sticky-section-nav.d.ts +14 -1
- package/dist/components/navigation/sticky-section-nav.d.ts.map +1 -1
- package/dist/components/onboarding-guides/index.cjs +32 -16
- package/dist/components/onboarding-guides/index.js +31 -15
- package/dist/components/product-demo/cast.d.ts +58 -0
- package/dist/components/product-demo/cast.d.ts.map +1 -0
- package/dist/components/product-demo/fixtures/cloud-tenants.d.ts +10 -0
- package/dist/components/product-demo/fixtures/cloud-tenants.d.ts.map +1 -0
- package/dist/components/product-demo/fixtures/devices.d.ts +14 -0
- package/dist/components/product-demo/fixtures/devices.d.ts.map +1 -0
- package/dist/components/product-demo/fixtures/knowledge.d.ts +14 -0
- package/dist/components/product-demo/fixtures/knowledge.d.ts.map +1 -0
- package/dist/components/product-demo/fixtures/logs.d.ts +15 -0
- package/dist/components/product-demo/fixtures/logs.d.ts.map +1 -0
- package/dist/components/product-demo/fixtures/policies.d.ts +13 -0
- package/dist/components/product-demo/fixtures/policies.d.ts.map +1 -0
- package/dist/components/product-demo/fixtures/remote-session.d.ts +20 -0
- package/dist/components/product-demo/fixtures/remote-session.d.ts.map +1 -0
- package/dist/components/product-demo/fixtures/shared.d.ts +156 -0
- package/dist/components/product-demo/fixtures/shared.d.ts.map +1 -0
- package/dist/components/product-demo/fixtures/software-update.d.ts +19 -0
- package/dist/components/product-demo/fixtures/software-update.d.ts.map +1 -0
- package/dist/components/product-demo/fixtures/tickets-board.d.ts +8 -0
- package/dist/components/product-demo/fixtures/tickets-board.d.ts.map +1 -0
- package/dist/components/product-demo/index.cjs +112 -0
- package/dist/components/product-demo/index.d.ts +6 -0
- package/dist/components/product-demo/index.d.ts.map +1 -0
- package/dist/components/product-demo/index.js +112 -0
- package/dist/components/product-demo/product-screen.d.ts +22 -0
- package/dist/components/product-demo/product-screen.d.ts.map +1 -0
- package/dist/components/product-demo/registry.d.ts +13 -0
- package/dist/components/product-demo/registry.d.ts.map +1 -0
- package/dist/components/product-demo/screen-keys.cjs +25 -0
- package/dist/components/product-demo/screen-keys.d.ts +27 -0
- package/dist/components/product-demo/screen-keys.d.ts.map +1 -0
- package/dist/components/product-demo/screen-keys.js +20 -0
- package/dist/components/product-demo/screens/cloud-tenants.d.ts +8 -0
- package/dist/components/product-demo/screens/cloud-tenants.d.ts.map +1 -0
- package/dist/components/product-demo/screens/devices.d.ts +10 -0
- package/dist/components/product-demo/screens/devices.d.ts.map +1 -0
- package/dist/components/product-demo/screens/knowledge.d.ts +9 -0
- package/dist/components/product-demo/screens/knowledge.d.ts.map +1 -0
- package/dist/components/product-demo/screens/logs.d.ts +4 -0
- package/dist/components/product-demo/screens/logs.d.ts.map +1 -0
- package/dist/components/product-demo/screens/policies.d.ts +8 -0
- package/dist/components/product-demo/screens/policies.d.ts.map +1 -0
- package/dist/components/product-demo/screens/remote-desktop-picture.d.ts +11 -0
- package/dist/components/product-demo/screens/remote-desktop-picture.d.ts.map +1 -0
- package/dist/components/product-demo/screens/remote-session.d.ts +8 -0
- package/dist/components/product-demo/screens/remote-session.d.ts.map +1 -0
- package/dist/components/product-demo/screens/software-update.d.ts +12 -0
- package/dist/components/product-demo/screens/software-update.d.ts.map +1 -0
- package/dist/components/product-demo/screens/tickets-board.d.ts +4 -0
- package/dist/components/product-demo/screens/tickets-board.d.ts.map +1 -0
- package/dist/components/product-demo/types.d.ts +9 -0
- package/dist/components/product-demo/types.d.ts.map +1 -0
- package/dist/components/related-content/index.cjs +14 -8
- package/dist/components/related-content/index.js +13 -7
- package/dist/components/tickets/index.cjs +36 -20
- package/dist/components/tickets/index.js +35 -19
- package/dist/components/ui/file-manager/index.cjs +38 -34
- package/dist/components/ui/file-manager/index.js +8 -4
- package/dist/components/ui/index.cjs +57 -17
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +141 -101
- package/dist/components/ui/product-screen-frame.d.ts +45 -0
- package/dist/components/ui/product-screen-frame.d.ts.map +1 -0
- package/dist/components/ui/radio-group.d.ts +5 -0
- package/dist/components/ui/radio-group.d.ts.map +1 -1
- package/dist/components/ui/snap-carousel.d.ts +11 -1
- package/dist/components/ui/snap-carousel.d.ts.map +1 -1
- package/dist/components/ui/tag.d.ts +1 -1
- package/dist/components/ui/tag.d.ts.map +1 -1
- package/dist/devices-6XKQTQM5.cjs +81 -0
- package/dist/devices-LXSFGGEZ.js +81 -0
- package/dist/hooks/index.cjs +17 -8
- package/dist/hooks/index.js +32 -23
- package/dist/hooks/ui/index.d.ts +1 -0
- package/dist/hooks/ui/index.d.ts.map +1 -1
- package/dist/hooks/ui/use-header-height.d.ts +12 -0
- package/dist/hooks/ui/use-header-height.d.ts.map +1 -1
- package/dist/hooks/ui/use-sticky-toolbar.d.ts +29 -0
- package/dist/hooks/ui/use-sticky-toolbar.d.ts.map +1 -0
- package/dist/hooks/use-location-hash.d.ts +2 -2
- package/dist/hooks/use-location-hash.d.ts.map +1 -1
- package/dist/hooks/use-scroll-to-hash.d.ts +7 -0
- package/dist/hooks/use-scroll-to-hash.d.ts.map +1 -1
- package/dist/index.cjs +284 -25
- package/dist/index.js +737 -478
- package/dist/knowledge-7PDZLXPO.cjs +108 -0
- package/dist/knowledge-Q4SPFOTN.js +108 -0
- package/dist/logs-SZ4VB4FE.js +216 -0
- package/dist/logs-TO3NELGJ.cjs +216 -0
- package/dist/policies-533GQVFM.cjs +121 -0
- package/dist/policies-LB7VW2UB.js +121 -0
- package/dist/remote-session-GSGZOFDX.js +196 -0
- package/dist/remote-session-R6VAFESR.cjs +196 -0
- package/dist/software-update-DT2XSG7M.cjs +179 -0
- package/dist/software-update-ENZNVGKP.js +179 -0
- package/dist/tickets-board-BHLPAVNJ.cjs +137 -0
- package/dist/tickets-board-PYDNELSK.js +137 -0
- package/dist/types/case-study.d.ts +15 -1
- package/dist/types/case-study.d.ts.map +1 -1
- package/dist/utils/date-utils.d.ts +5 -0
- package/dist/utils/date-utils.d.ts.map +1 -1
- package/dist/utils/index.cjs +45 -2
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +41 -3
- package/dist/utils/open-in-new-tab.d.ts +7 -0
- package/dist/utils/open-in-new-tab.d.ts.map +1 -0
- package/dist/utils/same-page-hash-nav.d.ts +31 -0
- package/dist/utils/same-page-hash-nav.d.ts.map +1 -1
- package/dist/utils/scroll-into-view.d.ts +14 -1
- package/dist/utils/scroll-into-view.d.ts.map +1 -1
- package/package.json +13 -1
- package/src/components/chat/ask-prompts.tsx +226 -0
- package/src/components/chat/embeddable-chat.tsx +36 -2
- package/src/components/chat/entity-cards/case-study-card.tsx +122 -46
- package/src/components/chat/index.ts +1 -0
- package/src/components/chat/quick-action-chip.tsx +33 -9
- package/src/components/docs/use-scroll-spy.ts +93 -18
- package/src/components/faq/faq-section.tsx +82 -43
- package/src/components/features/approval-level.tsx +149 -0
- package/src/components/features/array-entry-manager.tsx +10 -1
- package/src/components/features/board/board.tsx +4 -1
- package/src/components/features/board/ticket-card.tsx +11 -1
- package/src/components/features/board/touch-board.tsx +2 -1
- package/src/components/features/board/types.ts +3 -0
- package/src/components/features/board/use-board-collapse.ts +7 -2
- package/src/components/features/capability-explorer.tsx +412 -0
- package/src/components/features/cloud-tenants/index.ts +28 -0
- package/src/components/features/cloud-tenants/tenant-access-cell.tsx +24 -0
- package/src/components/features/cloud-tenants/tenant-cell.tsx +26 -0
- package/src/components/features/cloud-tenants/tenant-customer-cell.tsx +27 -0
- package/src/components/features/cloud-tenants/tenant-presentation.ts +111 -0
- package/src/components/features/cloud-tenants/tenant-row.ts +21 -0
- package/src/components/features/cloud-tenants/tenants-table-columns.ts +30 -0
- package/src/components/features/cloud-tenants/tenants-table-view.tsx +142 -0
- package/src/components/features/devices/device-last-online.ts +6 -0
- package/src/components/features/devices/device-name.ts +51 -0
- package/src/components/features/devices/device-selector/device-selection-mode-radio.tsx +107 -0
- package/src/components/features/devices/device-selector/device-selector-skeleton.tsx +32 -0
- package/src/components/features/devices/device-selector/device-selector.tsx +799 -0
- package/src/components/features/devices/device-selector/device-selector.types.ts +138 -0
- package/src/components/features/devices/device-selector/narrowing.ts +33 -0
- package/src/components/features/devices/device-selector/use-device-selector.ts +51 -0
- package/src/components/features/devices/device-status.ts +102 -0
- package/src/components/features/devices/device-statuses.ts +88 -0
- package/src/components/features/devices/device-tags-filter-button.tsx +49 -0
- package/src/components/features/devices/device-type-icon.tsx +29 -0
- package/src/components/features/devices/device-type-tile.tsx +17 -0
- package/src/components/features/devices/devices-filter-toolbar.tsx +114 -0
- package/src/components/features/devices/devices-grid-filters.tsx +99 -0
- package/src/components/features/devices/devices-grid.tsx +86 -0
- package/src/components/features/devices/devices-list.tsx +357 -0
- package/src/components/features/devices/devices-panel-header.tsx +97 -0
- package/src/components/features/devices/devices-panel-view.tsx +261 -0
- package/src/components/features/devices/devices-table-columns.tsx +356 -0
- package/src/components/features/devices/devices-view-config.tsx +38 -0
- package/src/components/features/devices/index.ts +89 -0
- package/src/components/features/devices/types.ts +74 -0
- package/src/components/features/devices/use-tag-filter-modal.ts +109 -0
- package/src/components/features/index.ts +10 -0
- package/src/components/features/knowledge-base/index.ts +19 -0
- package/src/components/features/knowledge-base/knowledge-base-article-view.tsx +134 -0
- package/src/components/features/knowledge-base/knowledge-base-item-icon.ts +14 -0
- package/src/components/features/knowledge-base/knowledge-base-status.ts +12 -0
- package/src/components/features/knowledge-base/knowledge-base-table.tsx +180 -0
- package/src/components/features/logs/index.ts +20 -0
- package/src/components/features/logs/log-drawer.tsx +138 -0
- package/src/components/features/logs/log-source-labels.ts +25 -0
- package/src/components/features/logs/logs-page-view.tsx +100 -0
- package/src/components/features/logs/logs-table-columns.ts +16 -0
- package/src/components/features/logs/logs-table-view.tsx +509 -0
- package/src/components/features/logs/types.ts +71 -0
- package/src/components/features/policies/compute-policy-summary.ts +115 -0
- package/src/components/features/policies/index.ts +14 -0
- package/src/components/features/policies/policies-table.tsx +235 -0
- package/src/components/features/policies/policy-summary-cards.tsx +69 -0
- package/src/components/features/policies/policy-table-row.ts +37 -0
- package/src/components/features/policy-configuration-panel.tsx +3 -12
- package/src/components/features/remote-session/index.ts +8 -0
- package/src/components/features/remote-session/remote-desktop-chat-message-row.tsx +56 -0
- package/src/components/features/remote-session/remote-desktop-chat-panel.tsx +102 -0
- package/src/components/features/remote-session/remote-desktop-fullscreen-toolbar.tsx +119 -0
- package/src/components/features/remote-session/remote-desktop-view.tsx +209 -0
- package/src/components/features/software/index.ts +39 -0
- package/src/components/features/software/package-managers.ts +54 -0
- package/src/components/features/software/package-search-field-placeholder.tsx +23 -0
- package/src/components/features/software/schedule-fields.tsx +105 -0
- package/src/components/features/software/software-action-copy.ts +70 -0
- package/src/components/features/software/software-action-form.tsx +199 -0
- package/src/components/features/software/software-row-fields.tsx +105 -0
- package/src/components/features/software/software-row.ts +22 -0
- package/src/components/features/sortable-list/index.ts +1 -0
- package/src/components/features/sortable-list/sortable-drag-handle.tsx +41 -0
- package/src/components/layout/page-heading.tsx +23 -6
- package/src/components/navigation/index.ts +5 -0
- package/src/components/navigation/mingo-ai-button.tsx +37 -13
- package/src/components/navigation/sticky-section-nav.tsx +99 -1
- package/src/components/product-demo/cast.tsx +78 -0
- package/src/components/product-demo/fixtures/cloud-tenants.ts +63 -0
- package/src/components/product-demo/fixtures/devices.ts +87 -0
- package/src/components/product-demo/fixtures/knowledge.ts +48 -0
- package/src/components/product-demo/fixtures/logs.ts +103 -0
- package/src/components/product-demo/fixtures/policies.ts +77 -0
- package/src/components/product-demo/fixtures/remote-session.ts +65 -0
- package/src/components/product-demo/fixtures/shared.ts +53 -0
- package/src/components/product-demo/fixtures/software-update.ts +63 -0
- package/src/components/product-demo/fixtures/tickets-board.ts +100 -0
- package/src/components/product-demo/index.ts +7 -0
- package/src/components/product-demo/product-screen.tsx +94 -0
- package/src/components/product-demo/registry.ts +20 -0
- package/src/components/product-demo/screen-keys.ts +31 -0
- package/src/components/product-demo/screens/cloud-tenants.tsx +23 -0
- package/src/components/product-demo/screens/devices.tsx +41 -0
- package/src/components/product-demo/screens/knowledge.tsx +27 -0
- package/src/components/product-demo/screens/logs.tsx +113 -0
- package/src/components/product-demo/screens/policies.tsx +29 -0
- package/src/components/product-demo/screens/remote-desktop-picture.tsx +118 -0
- package/src/components/product-demo/screens/remote-session.tsx +46 -0
- package/src/components/product-demo/screens/software-update.tsx +97 -0
- package/src/components/product-demo/screens/tickets-board.tsx +28 -0
- package/src/components/product-demo/types.ts +10 -0
- package/src/components/ui/index.ts +1 -0
- package/src/components/ui/product-screen-frame.tsx +136 -0
- package/src/components/ui/radio-group.tsx +16 -4
- package/src/components/ui/snap-carousel.tsx +26 -1
- package/src/components/ui/tag.tsx +5 -0
- package/src/hooks/ui/index.ts +1 -0
- package/src/hooks/ui/use-header-height.ts +51 -2
- package/src/hooks/ui/use-sticky-toolbar.ts +60 -0
- package/src/hooks/use-location-hash.ts +9 -5
- package/src/hooks/use-scroll-to-hash.ts +9 -1
- package/src/types/case-study.ts +21 -1
- package/src/utils/date-utils.ts +8 -1
- package/src/utils/index.ts +5 -0
- package/src/utils/open-in-new-tab.ts +12 -0
- package/src/utils/same-page-hash-nav.ts +57 -0
- package/src/utils/scroll-into-view.ts +21 -5
- package/dist/chunk-BM5MVGH3.cjs +0 -499
- package/dist/chunk-CUME3VTQ.js +0 -144
- package/dist/chunk-CZ7Y7UG4.js +0 -732
- package/dist/chunk-FLKJYMVB.js +0 -499
- package/dist/chunk-OF6GEI5A.cjs +0 -144
- package/dist/chunk-UVTD52MD.cjs +0 -732
package/dist/chunk-BM5MVGH3.cjs
DELETED
|
@@ -1,499 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var _chunk3ATAYP36cjs = require('./chunk-3ATAYP36.cjs');
|
|
5
|
-
|
|
6
|
-
// src/components/ui/label.tsx
|
|
7
|
-
var _reactlabel = require('@radix-ui/react-label'); var LabelPrimitive = _interopRequireWildcard(_reactlabel);
|
|
8
|
-
var _classvarianceauthority = require('class-variance-authority');
|
|
9
|
-
var _react = require('react');
|
|
10
|
-
var _jsxruntime = require('react/jsx-runtime');
|
|
11
|
-
var labelVariants = _classvarianceauthority.cva.call(void 0, "block text-ods-text-primary text-h6", {
|
|
12
|
-
variants: {
|
|
13
|
-
variant: {
|
|
14
|
-
default: "",
|
|
15
|
-
/** @deprecated alias of `default` — the three small scales converged on text-h6. */
|
|
16
|
-
small: "",
|
|
17
|
-
/** @deprecated alias of `default`. */
|
|
18
|
-
medium: "",
|
|
19
|
-
large: "text-h4"
|
|
20
|
-
},
|
|
21
|
-
spacing: {
|
|
22
|
-
none: "",
|
|
23
|
-
tight: "mb-0.5",
|
|
24
|
-
normal: "mb-2",
|
|
25
|
-
loose: "mb-3"
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
defaultVariants: {
|
|
29
|
-
variant: "default",
|
|
30
|
-
spacing: "none"
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
var Label = _react.forwardRef.call(void 0, ({ className, variant, spacing, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, LabelPrimitive.Root, { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, labelVariants({ variant, spacing }), className), ...props }));
|
|
34
|
-
Label.displayName = LabelPrimitive.Root.displayName;
|
|
35
|
-
|
|
36
|
-
// src/components/ui/required-mark.tsx
|
|
37
|
-
|
|
38
|
-
function RequiredMark() {
|
|
39
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": true, className: "text-ods-accent", children: "*" });
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
// src/components/ui/field-wrapper.tsx
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
var errorVariantClasses = {
|
|
46
|
-
error: "text-ods-error",
|
|
47
|
-
warning: "text-ods-warning",
|
|
48
|
-
success: "text-ods-success",
|
|
49
|
-
muted: "text-ods-text-secondary"
|
|
50
|
-
};
|
|
51
|
-
var FieldWrapper = _react.forwardRef.call(void 0,
|
|
52
|
-
({
|
|
53
|
-
label,
|
|
54
|
-
htmlFor,
|
|
55
|
-
error,
|
|
56
|
-
errorVariant = "error",
|
|
57
|
-
errorSlot = false,
|
|
58
|
-
labelVariant = "default",
|
|
59
|
-
required = false,
|
|
60
|
-
className,
|
|
61
|
-
children
|
|
62
|
-
}, ref) => {
|
|
63
|
-
const hasChrome = label != null || error != null || errorSlot;
|
|
64
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, hasChrome ? "relative flex w-full flex-col" : "contents", className), children: [
|
|
65
|
-
label && // Default is text-h6, NOT text-h4: `Field` (ui/field.tsx) renders its label via
|
|
66
|
-
// `Label variant="small"` = text-h6, and every form that mixes
|
|
67
|
-
// Field-wrapped controls with `label=`-prop controls showed two label
|
|
68
|
-
// sizes side by side — the exact inconsistency the admin editors kept
|
|
69
|
-
// reporting. One label scale, owned here and in Field together.
|
|
70
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Label, { className: "mb-1", htmlFor, variant: labelVariant, children: [
|
|
71
|
-
label,
|
|
72
|
-
required && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RequiredMark, {})
|
|
73
|
-
] }),
|
|
74
|
-
children,
|
|
75
|
-
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
76
|
-
"p",
|
|
77
|
-
{
|
|
78
|
-
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
79
|
-
"absolute bottom-0 left-0 right-0 translate-y-full truncate text-h6",
|
|
80
|
-
errorVariantClasses[errorVariant]
|
|
81
|
-
),
|
|
82
|
-
title: error,
|
|
83
|
-
children: error
|
|
84
|
-
}
|
|
85
|
-
)
|
|
86
|
-
] });
|
|
87
|
-
}
|
|
88
|
-
);
|
|
89
|
-
FieldWrapper.displayName = "FieldWrapper";
|
|
90
|
-
|
|
91
|
-
// src/components/ui/input.tsx
|
|
92
|
-
var _lucidereact = require('lucide-react');
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
var invalidBorderClasses = {
|
|
96
|
-
error: "border-ods-error hover:border-ods-error has-[:focus]:border-ods-error",
|
|
97
|
-
warning: "!border-ods-warning hover:!border-ods-warning has-[:focus]:!border-ods-warning"
|
|
98
|
-
};
|
|
99
|
-
var Input = _react.forwardRef.call(void 0, (allProps, ref) => {
|
|
100
|
-
const {
|
|
101
|
-
className,
|
|
102
|
-
type,
|
|
103
|
-
invalid = false,
|
|
104
|
-
startAdornment,
|
|
105
|
-
endAdornment,
|
|
106
|
-
label,
|
|
107
|
-
labelVariant,
|
|
108
|
-
error,
|
|
109
|
-
errorVariant = "error",
|
|
110
|
-
loading = false,
|
|
111
|
-
...props
|
|
112
|
-
} = allProps;
|
|
113
|
-
const errorSlot = "error" in allProps;
|
|
114
|
-
const variantIsInvalid = errorVariant === "error" || errorVariant === "warning";
|
|
115
|
-
const isInvalid = invalid || !!error && variantIsInvalid;
|
|
116
|
-
if (type === "range") {
|
|
117
|
-
const rangeInput = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
118
|
-
"input",
|
|
119
|
-
{
|
|
120
|
-
type: "range",
|
|
121
|
-
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
122
|
-
"h-1 w-full cursor-pointer appearance-none rounded-full bg-white/30",
|
|
123
|
-
// Webkit (Chrome/Safari) thumb
|
|
124
|
-
"[&::-webkit-slider-thumb]:appearance-none",
|
|
125
|
-
"[&::-webkit-slider-thumb]:h-3 [&::-webkit-slider-thumb]:w-3",
|
|
126
|
-
"[&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:bg-white",
|
|
127
|
-
"[&::-webkit-slider-thumb]:cursor-pointer [&::-webkit-slider-thumb]:shadow-sm",
|
|
128
|
-
// Firefox thumb
|
|
129
|
-
"[&::-moz-range-thumb]:h-3 [&::-moz-range-thumb]:w-3",
|
|
130
|
-
"[&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:bg-white",
|
|
131
|
-
"[&::-moz-range-thumb]:cursor-pointer [&::-moz-range-thumb]:border-0",
|
|
132
|
-
// Firefox track
|
|
133
|
-
"[&::-moz-range-track]:bg-transparent",
|
|
134
|
-
// Disabled
|
|
135
|
-
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
136
|
-
className
|
|
137
|
-
),
|
|
138
|
-
ref,
|
|
139
|
-
...props
|
|
140
|
-
}
|
|
141
|
-
);
|
|
142
|
-
return label ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
143
|
-
FieldWrapper,
|
|
144
|
-
{
|
|
145
|
-
label,
|
|
146
|
-
labelVariant,
|
|
147
|
-
error,
|
|
148
|
-
errorVariant,
|
|
149
|
-
errorSlot,
|
|
150
|
-
children: rangeInput
|
|
151
|
-
}
|
|
152
|
-
) : rangeInput;
|
|
153
|
-
}
|
|
154
|
-
const content = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
155
|
-
"label",
|
|
156
|
-
{
|
|
157
|
-
"data-invalid": isInvalid || void 0,
|
|
158
|
-
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
159
|
-
// Layout & spacing
|
|
160
|
-
"flex h-11 w-full cursor-text items-center gap-2 rounded-[6px] border px-3 md:h-12",
|
|
161
|
-
// Focus-within states
|
|
162
|
-
"has-[:focus-visible]:outline-none",
|
|
163
|
-
"group",
|
|
164
|
-
// Animations & touch UX
|
|
165
|
-
"transition-colors duration-200",
|
|
166
|
-
// Theme palette
|
|
167
|
-
"border-ods-border bg-ods-card has-[:focus]:border-ods-accent",
|
|
168
|
-
// Hover & active (not disabled)
|
|
169
|
-
!props.disabled && "hover:border-ods-border-hover hover:bg-ods-bg-hover active:border-ods-border-active active:bg-ods-bg-active",
|
|
170
|
-
// Disabled. The adornments (and any icon inside them) carry their own
|
|
171
|
-
// `text-ods-text-secondary`, so grey them from here — a disabled field
|
|
172
|
-
// must read as one flat colour, not grey text next to a live icon.
|
|
173
|
-
// Scoped to the DIRECT span children (the two adornment wrappers): a
|
|
174
|
-
// descendant rule would also repaint whatever the caller renders INSIDE
|
|
175
|
-
// an adornment, which is passed verbatim precisely so it can own its
|
|
176
|
-
// colour (a `Tag` there went invisible against its own fill).
|
|
177
|
-
props.disabled && "!cursor-not-allowed bg-ods-bg",
|
|
178
|
-
"has-[:disabled]:[&>span]:text-ods-text-disabled has-[:disabled]:[&_svg]:text-ods-text-disabled",
|
|
179
|
-
// Invalid
|
|
180
|
-
isInvalid && invalidBorderClasses[variantIsInvalid ? errorVariant : "error"],
|
|
181
|
-
className
|
|
182
|
-
),
|
|
183
|
-
children: [
|
|
184
|
-
startAdornment && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex-shrink-0 text-ods-text-secondary transition-colors duration-200 text-h6 group-has-[:focus]:text-ods-accent group-data-[invalid]:text-ods-error [&_svg]:size-4 md:[&_svg]:size-6", children: startAdornment }),
|
|
185
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
186
|
-
"input",
|
|
187
|
-
{
|
|
188
|
-
type,
|
|
189
|
-
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
190
|
-
// Layout
|
|
191
|
-
"min-w-0 flex-1 border-none bg-transparent outline-none",
|
|
192
|
-
// Typography
|
|
193
|
-
"text-h4",
|
|
194
|
-
// Colors
|
|
195
|
-
"text-ods-text-primary placeholder:text-ods-text-secondary",
|
|
196
|
-
// File input adjustments
|
|
197
|
-
"file:border-0 file:bg-transparent",
|
|
198
|
-
// Disabled
|
|
199
|
-
"disabled:cursor-not-allowed disabled:text-ods-text-disabled disabled:placeholder:text-ods-border",
|
|
200
|
-
// Touch
|
|
201
|
-
"touch-manipulation",
|
|
202
|
-
// Autofill override
|
|
203
|
-
"[&:-webkit-autofill]:[-webkit-box-shadow:0_0_0_9999px_transparent_inset] [&:-webkit-autofill]:[-webkit-text-fill-color:var(--color-text-primary)] [&:-webkit-autofill]:[caret-color:var(--color-text-primary)] [&:-webkit-autofill]:[transition:background-color_9999s_ease-in-out_0s]"
|
|
204
|
-
),
|
|
205
|
-
ref,
|
|
206
|
-
...props
|
|
207
|
-
}
|
|
208
|
-
),
|
|
209
|
-
loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "size-4 flex-shrink-0 animate-spin text-ods-text-secondary md:size-6" }),
|
|
210
|
-
!loading && endAdornment && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex-shrink-0 text-ods-text-secondary transition-colors duration-200 text-h6 group-has-[:focus]:text-ods-accent group-data-[invalid]:text-ods-error [&_svg]:size-4 md:[&_svg]:size-6", children: endAdornment })
|
|
211
|
-
]
|
|
212
|
-
}
|
|
213
|
-
);
|
|
214
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
215
|
-
FieldWrapper,
|
|
216
|
-
{
|
|
217
|
-
label,
|
|
218
|
-
labelVariant,
|
|
219
|
-
error,
|
|
220
|
-
errorVariant,
|
|
221
|
-
errorSlot,
|
|
222
|
-
children: content
|
|
223
|
-
}
|
|
224
|
-
);
|
|
225
|
-
});
|
|
226
|
-
Input.displayName = "Input";
|
|
227
|
-
|
|
228
|
-
// src/components/ui/dropdown-menu.tsx
|
|
229
|
-
var _reactdropdownmenu = require('@radix-ui/react-dropdown-menu'); var DropdownMenuPrimitive = _interopRequireWildcard(_reactdropdownmenu);
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
// src/components/ui/portal-container.tsx
|
|
234
|
-
|
|
235
|
-
var PortalContainerContext = _react.createContext.call(void 0, null);
|
|
236
|
-
function usePortalContainer() {
|
|
237
|
-
return _react.useContext.call(void 0, PortalContainerContext);
|
|
238
|
-
}
|
|
239
|
-
var CollisionBoundaryContext = _react.createContext.call(void 0, null);
|
|
240
|
-
function useCollisionBoundary() {
|
|
241
|
-
return _react.useContext.call(void 0, CollisionBoundaryContext);
|
|
242
|
-
}
|
|
243
|
-
var COLLISION_PADDING_PX = 8;
|
|
244
|
-
|
|
245
|
-
// src/components/ui/dropdown-menu.tsx
|
|
246
|
-
|
|
247
|
-
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
248
|
-
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
249
|
-
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
250
|
-
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
251
|
-
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
252
|
-
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
253
|
-
var DropdownMenuSubTrigger = _react.forwardRef.call(void 0, ({ className, inset, children, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
254
|
-
DropdownMenuPrimitive.SubTrigger,
|
|
255
|
-
{
|
|
256
|
-
ref,
|
|
257
|
-
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
258
|
-
"flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 outline-none text-h6 hover:bg-ods-bg-hover focus:bg-ods-bg-hover data-[state=open]:bg-ods-bg-hover [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
259
|
-
inset && "pl-8",
|
|
260
|
-
className
|
|
261
|
-
),
|
|
262
|
-
...props,
|
|
263
|
-
children: [
|
|
264
|
-
children,
|
|
265
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "ml-auto" })
|
|
266
|
-
]
|
|
267
|
-
}
|
|
268
|
-
));
|
|
269
|
-
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
270
|
-
var DropdownMenuSubContent = _react.forwardRef.call(void 0, ({ className, collisionBoundary, collisionPadding, hideWhenDetached, ...props }, ref) => {
|
|
271
|
-
const container = usePortalContainer();
|
|
272
|
-
const boundary = useCollisionBoundary();
|
|
273
|
-
const resolvedBoundary = _nullishCoalesce(_nullishCoalesce(collisionBoundary, () => ( boundary)), () => ( void 0));
|
|
274
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuPrimitive.Portal, { container: _nullishCoalesce(container, () => ( void 0)), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
275
|
-
DropdownMenuPrimitive.SubContent,
|
|
276
|
-
{
|
|
277
|
-
ref,
|
|
278
|
-
collisionBoundary: resolvedBoundary,
|
|
279
|
-
collisionPadding: _nullishCoalesce(collisionPadding, () => ( (resolvedBoundary ? COLLISION_PADDING_PX : void 0))),
|
|
280
|
-
hideWhenDetached: _nullishCoalesce(hideWhenDetached, () => ( (resolvedBoundary ? true : void 0))),
|
|
281
|
-
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
282
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-ods-border bg-ods-card p-1 text-ods-text-primary shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
283
|
-
className
|
|
284
|
-
),
|
|
285
|
-
...props
|
|
286
|
-
}
|
|
287
|
-
) });
|
|
288
|
-
});
|
|
289
|
-
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
290
|
-
var DropdownMenuContent = _react.forwardRef.call(void 0, ({ className, sideOffset = 4, collisionBoundary, collisionPadding, hideWhenDetached, ...props }, ref) => {
|
|
291
|
-
const container = usePortalContainer();
|
|
292
|
-
const boundary = useCollisionBoundary();
|
|
293
|
-
const resolvedBoundary = _nullishCoalesce(_nullishCoalesce(collisionBoundary, () => ( boundary)), () => ( void 0));
|
|
294
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuPrimitive.Portal, { container: _nullishCoalesce(container, () => ( void 0)), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
295
|
-
DropdownMenuPrimitive.Content,
|
|
296
|
-
{
|
|
297
|
-
ref,
|
|
298
|
-
sideOffset,
|
|
299
|
-
collisionBoundary: resolvedBoundary,
|
|
300
|
-
collisionPadding: _nullishCoalesce(collisionPadding, () => ( (resolvedBoundary ? COLLISION_PADDING_PX : void 0))),
|
|
301
|
-
hideWhenDetached: _nullishCoalesce(hideWhenDetached, () => ( (resolvedBoundary ? true : void 0))),
|
|
302
|
-
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
303
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-ods-border bg-ods-card p-1 text-ods-text-primary shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
304
|
-
className
|
|
305
|
-
),
|
|
306
|
-
...props
|
|
307
|
-
}
|
|
308
|
-
) });
|
|
309
|
-
});
|
|
310
|
-
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
311
|
-
var DropdownMenuItem = _react.forwardRef.call(void 0, ({ className, inset, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
312
|
-
DropdownMenuPrimitive.Item,
|
|
313
|
-
{
|
|
314
|
-
ref,
|
|
315
|
-
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
316
|
-
"relative flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-ods-text-primary outline-none transition-colors text-h6 hover:bg-ods-bg-hover hover:text-ods-text-primary focus:bg-ods-bg-hover focus:text-ods-text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
317
|
-
inset && "pl-8",
|
|
318
|
-
className
|
|
319
|
-
),
|
|
320
|
-
...props
|
|
321
|
-
}
|
|
322
|
-
));
|
|
323
|
-
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
324
|
-
var DropdownMenuCheckboxItem = _react.forwardRef.call(void 0, ({ className, children, checked, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
325
|
-
DropdownMenuPrimitive.CheckboxItem,
|
|
326
|
-
{
|
|
327
|
-
ref,
|
|
328
|
-
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
329
|
-
"relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-ods-text-primary outline-none transition-colors text-h6 hover:bg-ods-bg-hover hover:text-ods-text-primary focus:bg-ods-bg-hover focus:text-ods-text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
330
|
-
className
|
|
331
|
-
),
|
|
332
|
-
checked,
|
|
333
|
-
...props,
|
|
334
|
-
children: [
|
|
335
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Check, { className: "h-4 w-4" }) }) }),
|
|
336
|
-
children
|
|
337
|
-
]
|
|
338
|
-
}
|
|
339
|
-
));
|
|
340
|
-
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
341
|
-
var DropdownMenuRadioItem = _react.forwardRef.call(void 0, ({ className, children, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
342
|
-
DropdownMenuPrimitive.RadioItem,
|
|
343
|
-
{
|
|
344
|
-
ref,
|
|
345
|
-
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
346
|
-
"relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-ods-text-primary outline-none transition-colors text-h6 hover:bg-ods-bg-hover hover:text-ods-text-primary focus:bg-ods-bg-hover focus:text-ods-text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
347
|
-
className
|
|
348
|
-
),
|
|
349
|
-
...props,
|
|
350
|
-
children: [
|
|
351
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Circle, { className: "h-2 w-2 fill-ods-accent" }) }) }),
|
|
352
|
-
children
|
|
353
|
-
]
|
|
354
|
-
}
|
|
355
|
-
));
|
|
356
|
-
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
357
|
-
var DropdownMenuLabel = _react.forwardRef.call(void 0, ({ className, inset, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
358
|
-
DropdownMenuPrimitive.Label,
|
|
359
|
-
{
|
|
360
|
-
ref,
|
|
361
|
-
className: _chunk3ATAYP36cjs.cn.call(void 0, "px-2 py-1.5 font-semibold text-ods-text-secondary text-h6", inset && "pl-8", className),
|
|
362
|
-
...props
|
|
363
|
-
}
|
|
364
|
-
));
|
|
365
|
-
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
366
|
-
var DropdownMenuSeparator = _react.forwardRef.call(void 0, ({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuPrimitive.Separator, { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, "-mx-1 my-1 h-px bg-ods-border", className), ...props }));
|
|
367
|
-
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
368
|
-
var DropdownMenuShortcut = ({ className, ...props }) => {
|
|
369
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3ATAYP36cjs.cn.call(void 0, "ml-auto text-ods-text-secondary opacity-60 text-h6", className), ...props });
|
|
370
|
-
};
|
|
371
|
-
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
372
|
-
|
|
373
|
-
// src/components/ui/skeleton.tsx
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
var Skeleton = _react.forwardRef.call(void 0, ({ className, ...props }, ref) => {
|
|
377
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, "animate-pulse rounded-md bg-ods-border", className), ...props });
|
|
378
|
-
});
|
|
379
|
-
Skeleton.displayName = "Skeleton";
|
|
380
|
-
var SkeletonText = _react.forwardRef.call(void 0, ({ lines = 1, className, ...props }, ref) => {
|
|
381
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, "space-y-2", className), ...props, children: Array.from({ length: lines }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
382
|
-
Skeleton,
|
|
383
|
-
{
|
|
384
|
-
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
385
|
-
"h-4",
|
|
386
|
-
i === lines - 1 && lines > 1 && "w-3/4"
|
|
387
|
-
// Last line shorter for multi-line
|
|
388
|
-
)
|
|
389
|
-
},
|
|
390
|
-
i
|
|
391
|
-
)) });
|
|
392
|
-
});
|
|
393
|
-
SkeletonText.displayName = "SkeletonText";
|
|
394
|
-
var SkeletonCard = _react.forwardRef.call(void 0,
|
|
395
|
-
({ showImage = false, className, ...props }, ref) => {
|
|
396
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, "overflow-hidden rounded-lg border border-ods-border", className), ...props, children: [
|
|
397
|
-
showImage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "h-48 w-full" }),
|
|
398
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "p-6", children: [
|
|
399
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "mb-4 h-6 w-3/4" }),
|
|
400
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SkeletonText, { lines: 3 })
|
|
401
|
-
] })
|
|
402
|
-
] });
|
|
403
|
-
}
|
|
404
|
-
);
|
|
405
|
-
SkeletonCard.displayName = "SkeletonCard";
|
|
406
|
-
var SkeletonGrid = _react.forwardRef.call(void 0,
|
|
407
|
-
({ columns = 3, items = 6, showImages = false, className, ...props }, ref) => {
|
|
408
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
409
|
-
"div",
|
|
410
|
-
{
|
|
411
|
-
ref,
|
|
412
|
-
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
413
|
-
`grid grid-cols-1 gap-6`,
|
|
414
|
-
columns === 2 && "content-md:grid-cols-2",
|
|
415
|
-
columns === 3 && "content-md:grid-cols-3",
|
|
416
|
-
columns === 4 && "content-md:grid-cols-4",
|
|
417
|
-
className
|
|
418
|
-
),
|
|
419
|
-
...props,
|
|
420
|
-
children: Array.from({ length: items }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SkeletonCard, { showImage: showImages }, i))
|
|
421
|
-
}
|
|
422
|
-
);
|
|
423
|
-
}
|
|
424
|
-
);
|
|
425
|
-
SkeletonGrid.displayName = "SkeletonGrid";
|
|
426
|
-
var SkeletonButton = _react.forwardRef.call(void 0,
|
|
427
|
-
({ size = "default", className, ...props }, ref) => {
|
|
428
|
-
const sizeClasses = {
|
|
429
|
-
sm: "h-8 w-20",
|
|
430
|
-
default: "h-10 w-32",
|
|
431
|
-
lg: "h-12 w-40"
|
|
432
|
-
};
|
|
433
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, "rounded-lg", sizeClasses[size], className), ...props });
|
|
434
|
-
}
|
|
435
|
-
);
|
|
436
|
-
SkeletonButton.displayName = "SkeletonButton";
|
|
437
|
-
var SkeletonHeading = _react.forwardRef.call(void 0, ({ level = 1, className, ...props }, ref) => {
|
|
438
|
-
const heightClasses = {
|
|
439
|
-
1: "h-12",
|
|
440
|
-
2: "h-10",
|
|
441
|
-
3: "h-8",
|
|
442
|
-
4: "h-7",
|
|
443
|
-
5: "h-6",
|
|
444
|
-
6: "h-5"
|
|
445
|
-
};
|
|
446
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, heightClasses[level], "w-3/4", className), ...props });
|
|
447
|
-
});
|
|
448
|
-
SkeletonHeading.displayName = "SkeletonHeading";
|
|
449
|
-
var SkeletonList = _react.forwardRef.call(void 0, ({ items = 5, className, ...props }, ref) => {
|
|
450
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, "space-y-3", className), ...props, children: Array.from({ length: items }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
451
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "h-10 w-10 flex-shrink-0 rounded-full" }),
|
|
452
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1", children: [
|
|
453
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "mb-1 h-4 w-1/3" }),
|
|
454
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "h-3 w-1/2" })
|
|
455
|
-
] })
|
|
456
|
-
] }, i)) });
|
|
457
|
-
});
|
|
458
|
-
SkeletonList.displayName = "SkeletonList";
|
|
459
|
-
var SkeletonNavigation = _react.forwardRef.call(void 0,
|
|
460
|
-
({ items = 6, className, ...props }, ref) => {
|
|
461
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, "flex items-center gap-6", className), ...props, children: Array.from({ length: items }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "h-5 w-20" }, i)) });
|
|
462
|
-
}
|
|
463
|
-
);
|
|
464
|
-
SkeletonNavigation.displayName = "SkeletonNavigation";
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
exports.Label = Label; exports.RequiredMark = RequiredMark; exports.FieldWrapper = FieldWrapper; exports.Input = Input; exports.PortalContainerContext = PortalContainerContext; exports.usePortalContainer = usePortalContainer; exports.CollisionBoundaryContext = CollisionBoundaryContext; exports.useCollisionBoundary = useCollisionBoundary; exports.COLLISION_PADDING_PX = COLLISION_PADDING_PX; exports.DropdownMenu = DropdownMenu; exports.DropdownMenuTrigger = DropdownMenuTrigger; exports.DropdownMenuGroup = DropdownMenuGroup; exports.DropdownMenuPortal = DropdownMenuPortal; exports.DropdownMenuSub = DropdownMenuSub; exports.DropdownMenuRadioGroup = DropdownMenuRadioGroup; exports.DropdownMenuSubTrigger = DropdownMenuSubTrigger; exports.DropdownMenuSubContent = DropdownMenuSubContent; exports.DropdownMenuContent = DropdownMenuContent; exports.DropdownMenuItem = DropdownMenuItem; exports.DropdownMenuCheckboxItem = DropdownMenuCheckboxItem; exports.DropdownMenuRadioItem = DropdownMenuRadioItem; exports.DropdownMenuLabel = DropdownMenuLabel; exports.DropdownMenuSeparator = DropdownMenuSeparator; exports.DropdownMenuShortcut = DropdownMenuShortcut; exports.Skeleton = Skeleton; exports.SkeletonText = SkeletonText; exports.SkeletonCard = SkeletonCard; exports.SkeletonGrid = SkeletonGrid; exports.SkeletonButton = SkeletonButton; exports.SkeletonHeading = SkeletonHeading; exports.SkeletonList = SkeletonList; exports.SkeletonNavigation = SkeletonNavigation;
|
package/dist/chunk-CUME3VTQ.js
DELETED
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
embedAuthedFetch,
|
|
4
|
-
hasEmbedAuthAdapter
|
|
5
|
-
} from "./chunk-FXJ3WWUB.js";
|
|
6
|
-
|
|
7
|
-
// src/utils/search-params.ts
|
|
8
|
-
function positiveInt(raw, fallback, { min = 1, max } = {}) {
|
|
9
|
-
const capped = (v) => max == null ? v : Math.min(v, max);
|
|
10
|
-
if (raw === null || raw === void 0 || raw === "") {
|
|
11
|
-
return typeof fallback === "number" ? capped(fallback) : fallback;
|
|
12
|
-
}
|
|
13
|
-
const n = Math.trunc(Number(raw));
|
|
14
|
-
if (!Number.isFinite(n) || n < min) {
|
|
15
|
-
return typeof fallback === "number" ? capped(fallback) : fallback;
|
|
16
|
-
}
|
|
17
|
-
return capped(n);
|
|
18
|
-
}
|
|
19
|
-
var PAGE_PARAM_LIMITS = { maxPage: 1e4, maxPageSize: 100 };
|
|
20
|
-
function pageCount(total, pageSize) {
|
|
21
|
-
if (!Number.isFinite(total) || !Number.isFinite(pageSize) || pageSize <= 0) return 1;
|
|
22
|
-
return Math.max(1, Math.ceil(total / pageSize));
|
|
23
|
-
}
|
|
24
|
-
function clampPageToTotal(page, totalPages) {
|
|
25
|
-
return Math.min(page, Math.max(1, totalPages));
|
|
26
|
-
}
|
|
27
|
-
function defineParamSchema(schema) {
|
|
28
|
-
return schema;
|
|
29
|
-
}
|
|
30
|
-
function fromKeys(keys, value) {
|
|
31
|
-
return Object.fromEntries(keys.map((k) => [k, value]));
|
|
32
|
-
}
|
|
33
|
-
function firstParamValue(input, key) {
|
|
34
|
-
if (!input) return void 0;
|
|
35
|
-
if (input instanceof URLSearchParams) return input.get(key) ?? void 0;
|
|
36
|
-
const value = input[key];
|
|
37
|
-
return Array.isArray(value) ? value[0] : value;
|
|
38
|
-
}
|
|
39
|
-
function allParamValues(input, key) {
|
|
40
|
-
if (!input) return [];
|
|
41
|
-
const raw = input instanceof URLSearchParams ? input.getAll(key) : input[key];
|
|
42
|
-
const list = Array.isArray(raw) ? raw : raw === void 0 ? [] : [raw];
|
|
43
|
-
if (list.length === 1 && list[0]?.includes(",")) return list[0].split(",").filter(Boolean);
|
|
44
|
-
return list.filter((v) => v !== void 0 && v !== "");
|
|
45
|
-
}
|
|
46
|
-
function coerceScalar(raw, config) {
|
|
47
|
-
if (raw === void 0 || raw === "") return void 0;
|
|
48
|
-
switch (config.type) {
|
|
49
|
-
case "int": {
|
|
50
|
-
const int = config;
|
|
51
|
-
return positiveInt(raw, int.default, { min: int.min, max: int.max });
|
|
52
|
-
}
|
|
53
|
-
case "number": {
|
|
54
|
-
const n = Number(raw);
|
|
55
|
-
return Number.isFinite(n) ? n : void 0;
|
|
56
|
-
}
|
|
57
|
-
case "boolean":
|
|
58
|
-
return raw === "true" || raw === "1";
|
|
59
|
-
case "object":
|
|
60
|
-
try {
|
|
61
|
-
return JSON.parse(raw);
|
|
62
|
-
} catch {
|
|
63
|
-
return void 0;
|
|
64
|
-
}
|
|
65
|
-
default:
|
|
66
|
-
return raw;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
function parseSchemaParams(schema, input, options) {
|
|
70
|
-
const absent = options?.absent === "null" ? null : void 0;
|
|
71
|
-
const out = {};
|
|
72
|
-
for (const [key, config] of Object.entries(schema)) {
|
|
73
|
-
if (config.type === "array") {
|
|
74
|
-
const values = allParamValues(input, key);
|
|
75
|
-
out[key] = values.length > 0 ? values : config.default ?? [];
|
|
76
|
-
continue;
|
|
77
|
-
}
|
|
78
|
-
const coerced = coerceScalar(firstParamValue(input, key), config);
|
|
79
|
-
out[key] = coerced !== void 0 ? coerced : config.default ?? absent;
|
|
80
|
-
}
|
|
81
|
-
return out;
|
|
82
|
-
}
|
|
83
|
-
function shouldIncludeInUrl(value, config) {
|
|
84
|
-
if (value === null || value === void 0) return false;
|
|
85
|
-
if (Array.isArray(value) && value.length === 0) return false;
|
|
86
|
-
if (value === "") return false;
|
|
87
|
-
const fromDefault = config && "default" in config ? config.default : void 0;
|
|
88
|
-
const fromLegacy = config && "defaultValue" in config ? config.defaultValue : void 0;
|
|
89
|
-
const declared = fromDefault !== void 0 ? fromDefault : fromLegacy;
|
|
90
|
-
if (declared !== void 0 && value === declared) return false;
|
|
91
|
-
return true;
|
|
92
|
-
}
|
|
93
|
-
function createSearchParams(params, { arrayJoin } = {}) {
|
|
94
|
-
const search = new URLSearchParams();
|
|
95
|
-
for (const [key, value] of Object.entries(params)) {
|
|
96
|
-
if (!shouldIncludeInUrl(value, void 0)) continue;
|
|
97
|
-
if (Array.isArray(value)) {
|
|
98
|
-
const items = value.filter((v) => v !== null && v !== void 0 && v !== "");
|
|
99
|
-
if (items.length === 0) continue;
|
|
100
|
-
if (arrayJoin) search.set(key, items.join(arrayJoin));
|
|
101
|
-
else for (const item of items) search.append(key, String(item));
|
|
102
|
-
continue;
|
|
103
|
-
}
|
|
104
|
-
if (typeof value === "object") {
|
|
105
|
-
search.set(key, JSON.stringify(value));
|
|
106
|
-
continue;
|
|
107
|
-
}
|
|
108
|
-
search.set(key, String(value));
|
|
109
|
-
}
|
|
110
|
-
return search;
|
|
111
|
-
}
|
|
112
|
-
function serializeSchemaParams(schema, params, options) {
|
|
113
|
-
const kept = {};
|
|
114
|
-
for (const [key, value] of Object.entries(params)) {
|
|
115
|
-
if (shouldIncludeInUrl(value, schema[key])) kept[key] = value;
|
|
116
|
-
}
|
|
117
|
-
return createSearchParams(kept, options).toString();
|
|
118
|
-
}
|
|
119
|
-
function withQuery(path, queryString) {
|
|
120
|
-
return queryString ? `${path}?${queryString}` : path;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
// src/utils/embed-content-fetch.ts
|
|
124
|
-
var contentFetch = (input, init) => {
|
|
125
|
-
if (!hasEmbedAuthAdapter()) return fetch(input, init);
|
|
126
|
-
const url = typeof input === "string" ? input : input instanceof URL ? input.href : input.url;
|
|
127
|
-
return embedAuthedFetch(url, init);
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
export {
|
|
131
|
-
contentFetch,
|
|
132
|
-
positiveInt,
|
|
133
|
-
PAGE_PARAM_LIMITS,
|
|
134
|
-
pageCount,
|
|
135
|
-
clampPageToTotal,
|
|
136
|
-
defineParamSchema,
|
|
137
|
-
fromKeys,
|
|
138
|
-
firstParamValue,
|
|
139
|
-
parseSchemaParams,
|
|
140
|
-
shouldIncludeInUrl,
|
|
141
|
-
createSearchParams,
|
|
142
|
-
serializeSchemaParams,
|
|
143
|
-
withQuery
|
|
144
|
-
};
|