themelia-ui 2.0.0 → 2.0.1
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/.agents/skills/themelia-ui/references/components/INDEX.json +1 -2
- package/.agents/skills/themelia-ui/references/components/base--qr-code.md +2 -2
- package/.agents/skills/themelia-ui/references/components/base--typography.md +1 -1
- package/.agents/skills/themelia-ui/references/components/features--schema-form.md +1 -1
- package/.agents/skills/themelia-ui/references/components/features--theme-tweaker.md +3 -2
- package/.agents/skills/themelia-ui/references/components/theming.md +3 -2
- package/.agents/skills/themelia-ui/references/components/ui-provider.md +1 -0
- package/.agents/skills/themelia-ui/references/migration.md +16 -1
- package/.agents/skills/themelia-ui/references/theming.md +1 -1
- package/CHANGELOG.md +52 -0
- package/README.md +1 -1
- package/dist/{accordion-DLW9FGTP.js → accordion-B4zNzH7s.js} +3 -4
- package/dist/accordion-VazE3cHZ.cjs +1 -0
- package/dist/{action-menu-DqQX1_H8.js → action-menu-BrMchcyt.js} +4 -4
- package/dist/{action-menu-BFDQbOMx.cjs → action-menu-CO6DZ2xa.cjs} +1 -1
- package/dist/admin/patterns/access.cjs +1 -1
- package/dist/admin/patterns/access.js +9 -9
- package/dist/admin/patterns/commerce.cjs +1 -1
- package/dist/admin/patterns/commerce.js +20 -19
- package/dist/{alert-dialog-BPePUOHx.cjs → alert-dialog-ByJw3YGj.cjs} +1 -1
- package/dist/{alert-dialog-DzqaOiE5.js → alert-dialog-ZHkE0QEz.js} +1 -1
- package/dist/{avatar-2v-o_zEv.js → avatar-C30TNJoy.js} +1 -1
- package/dist/{avatar-Cdw0zuGn.cjs → avatar-b2IaEzda.cjs} +1 -1
- package/dist/base/accordion.cjs +1 -1
- package/dist/base/accordion.js +1 -1
- package/dist/base/action-menu.cjs +1 -1
- package/dist/base/action-menu.js +1 -1
- package/dist/base/alert-dialog.cjs +1 -1
- package/dist/base/alert-dialog.js +1 -1
- package/dist/base/avatar.cjs +1 -1
- package/dist/base/avatar.js +1 -1
- package/dist/base/batch-action-bar.cjs +1 -1
- package/dist/base/batch-action-bar.js +1 -1
- package/dist/base/buttons.cjs +1 -1
- package/dist/base/buttons.js +1 -1
- package/dist/base/cards.cjs +1 -1
- package/dist/base/cards.js +1 -1
- package/dist/base/carousel.cjs +1 -1
- package/dist/base/carousel.js +1 -1
- package/dist/base/choice-inputs.cjs +1 -1
- package/dist/base/choice-inputs.js +1 -1
- package/dist/base/combobox.cjs +1 -1
- package/dist/base/combobox.js +1 -1
- package/dist/base/command.cjs +1 -1
- package/dist/base/command.js +1 -1
- package/dist/base/context-menu.cjs +1 -1
- package/dist/base/context-menu.js +2 -2
- package/dist/base/copyable.cjs +1 -1
- package/dist/base/copyable.js +1 -1
- package/dist/base/date-pickers.cjs +1 -1
- package/dist/base/date-pickers.js +1 -1
- package/dist/base/dialog.cjs +1 -1
- package/dist/base/dialog.js +1 -1
- package/dist/base/display.cjs +1 -1
- package/dist/base/display.js +1 -1
- package/dist/base/dropdown-menu.cjs +1 -1
- package/dist/base/dropdown-menu.js +1 -1
- package/dist/base/feedback.cjs +1 -1
- package/dist/base/feedback.js +1 -1
- package/dist/base/forms-numeric.cjs +1 -1
- package/dist/base/forms-numeric.js +1 -1
- package/dist/base/forms.cjs +1 -1
- package/dist/base/forms.js +1 -1
- package/dist/base/hover-card.cjs +1 -1
- package/dist/base/hover-card.js +1 -1
- package/dist/base/input-group.cjs +1 -1
- package/dist/base/input-group.js +1 -1
- package/dist/base/item.cjs +1 -1
- package/dist/base/item.js +1 -1
- package/dist/base/label.cjs +1 -1
- package/dist/base/label.js +1 -1
- package/dist/base/navigation-menu.cjs +1 -1
- package/dist/base/navigation-menu.js +1 -1
- package/dist/base/navigation.cjs +1 -1
- package/dist/base/navigation.js +1 -1
- package/dist/base/otp-input.cjs +1 -1
- package/dist/base/otp-input.js +1 -1
- package/dist/base/overlay.cjs +1 -1
- package/dist/base/overlay.js +1 -1
- package/dist/base/popover-menu.cjs +1 -1
- package/dist/base/popover-menu.js +1 -1
- package/dist/base/popover.cjs +1 -1
- package/dist/base/popover.js +1 -1
- package/dist/base/qr-code.cjs +1 -1
- package/dist/base/qr-code.js +47 -43
- package/dist/base/repeaters.cjs +1 -1
- package/dist/base/repeaters.js +1 -1
- package/dist/base/sheet.cjs +1 -1
- package/dist/base/sheet.js +1 -1
- package/dist/base/sidebar.cjs +1 -1
- package/dist/base/sidebar.js +1 -1
- package/dist/base/skeleton.cjs +1 -1
- package/dist/base/skeleton.js +1 -1
- package/dist/base/table.cjs +1 -1
- package/dist/base/table.js +1 -1
- package/dist/base/timeline.cjs +1 -1
- package/dist/base/timeline.js +1 -1
- package/dist/base/toaster.cjs +1 -1
- package/dist/base/toaster.js +1 -1
- package/dist/base/toolbar.cjs +1 -1
- package/dist/base/toolbar.js +1 -1
- package/dist/base/tooltip.cjs +1 -1
- package/dist/base/tooltip.js +1 -1
- package/dist/base/typography.cjs +1 -1
- package/dist/base/typography.js +1 -1
- package/dist/base/upload.cjs +1 -1
- package/dist/base/upload.js +1 -1
- package/dist/base/value-inputs.cjs +1 -1
- package/dist/base/value-inputs.js +1 -1
- package/dist/{batch-action-bar-Cvnz248b.cjs → batch-action-bar-BMIiHBU8.cjs} +1 -1
- package/dist/{batch-action-bar-BRCopWlT.js → batch-action-bar-CAIjntVw.js} +2 -2
- package/dist/{buttons-CMsvnL6-.cjs → buttons-Dwl42fIr.cjs} +1 -1
- package/dist/{buttons-Corm-KHK.js → buttons-riLAPVQV.js} +4 -3
- package/dist/{cards-CEtNjl6A.js → cards-CcwLsQQS.js} +8 -9
- package/dist/cards-DQPevRTY.cjs +1 -0
- package/dist/{choice-inputs-Ca9PoQwa.js → choice-inputs-BjZYCdzk.js} +7 -7
- package/dist/{choice-inputs-CySnLjfA.cjs → choice-inputs-C8LMAkh8.cjs} +1 -1
- package/dist/combobox-bDQg27j0.cjs +1 -0
- package/dist/{combobox-Dl1xWnR7.js → combobox-exdUS4qj.js} +8 -9
- package/dist/{command-DWZf3CPI.js → command-Dv84KSRv.js} +3 -3
- package/dist/{command-BSvB58XI.cjs → command-Geb5eIzu.cjs} +1 -1
- package/dist/{comments-CVD4jB9V.cjs → comments-CV9tvSAi.cjs} +1 -1
- package/dist/{comments-CIZ1L-DR.js → comments-CqdhAH1O.js} +485 -491
- package/dist/components/base/buttons/button.d.cts +1 -1
- package/dist/components/base/buttons/button.d.ts +1 -1
- package/dist/components/base/qr-code/qr-code.d.cts +2 -2
- package/dist/components/base/qr-code/qr-code.d.ts +2 -2
- package/dist/components/base/typography/rich-text/rich-text.d.cts +1 -0
- package/dist/components/base/typography/rich-text/rich-text.d.ts +1 -0
- package/dist/{copyable-Bbd_Tsxc.cjs → copyable-CMhsv_91.cjs} +1 -1
- package/dist/{copyable-CRdTLtmK.js → copyable-uzkCHMzl.js} +3 -3
- package/dist/core.css +1 -1
- package/dist/css/access.css +1 -1
- package/dist/css/accordion.css +1 -1
- package/dist/css/action-menu.css +1 -1
- package/dist/css/activities.css +1 -1
- package/dist/css/ai-chat.css +1 -1
- package/dist/css/analytics.css +1 -1
- package/dist/css/app-shell.css +1 -1
- package/dist/css/async-preview.css +1 -1
- package/dist/css/auth.css +1 -1
- package/dist/css/avatar.css +1 -1
- package/dist/css/badge.css +1 -1
- package/dist/css/batch-action-bar.css +1 -1
- package/dist/css/buttons.css +1 -1
- package/dist/css/cards.css +1 -1
- package/dist/css/carousel.css +1 -1
- package/dist/css/chart.css +1 -1
- package/dist/css/choice-inputs.css +1 -1
- package/dist/css/combobox.css +1 -1
- package/dist/css/combobox2.css +1 -1
- package/dist/css/command.css +1 -1
- package/dist/css/comments.css +1 -1
- package/dist/css/commerce.css +1 -1
- package/dist/css/copyable.css +1 -1
- package/dist/css/data-view.css +1 -1
- package/dist/css/date-pickers.css +1 -1
- package/dist/css/display.css +1 -1
- package/dist/css/dropdown-menu.css +1 -1
- package/dist/css/event-calendar.css +1 -1
- package/dist/css/feedback.css +1 -1
- package/dist/css/filters.css +1 -1
- package/dist/css/forms.css +1 -1
- package/dist/css/global-search.css +1 -1
- package/dist/css/header.css +1 -1
- package/dist/css/hover-card.css +1 -1
- package/dist/css/input-group.css +1 -1
- package/dist/css/item.css +1 -1
- package/dist/css/kanban.css +1 -1
- package/dist/css/label.css +1 -1
- package/dist/css/map.css +1 -1
- package/dist/css/media-library.css +1 -1
- package/dist/css/mentions.css +1 -1
- package/dist/css/navigation-menu.css +1 -1
- package/dist/css/navigation.css +1 -1
- package/dist/css/navigation2.css +1 -1
- package/dist/css/overlay.css +1 -1
- package/dist/css/popover-menu.css +1 -1
- package/dist/css/popover.css +1 -1
- package/dist/css/products.css +1 -1
- package/dist/css/qr-code.css +1 -1
- package/dist/css/repeaters.css +1 -1
- package/dist/css/resource-assignment.css +1 -1
- package/dist/css/resource.css +1 -1
- package/dist/css/rich-text-editor.css +1 -1
- package/dist/css/schema-form.css +1 -1
- package/dist/css/sidebar2.css +1 -1
- package/dist/css/skeleton.css +1 -1
- package/dist/css/styles.css +1 -1
- package/dist/css/sync.css +1 -1
- package/dist/css/table.css +1 -1
- package/dist/css/table2.css +1 -1
- package/dist/css/text-inputs.css +1 -1
- package/dist/css/theme-tweaker.css +1 -1
- package/dist/css/timeline.css +1 -1
- package/dist/css/toaster.css +1 -1
- package/dist/css/toggle.css +1 -1
- package/dist/css/toolbar.css +1 -1
- package/dist/css/tooltip.css +1 -1
- package/dist/css/typography.css +1 -1
- package/dist/css/upload.css +1 -1
- package/dist/css/value-inputs.css +1 -1
- package/dist/css/workspace.css +1 -1
- package/dist/{date-pickers-Dy9BVNnb.js → date-pickers-1_Ah7qWO.js} +5 -5
- package/dist/{date-pickers-C6rE7fLo.cjs → date-pickers-DejXe5oe.cjs} +1 -1
- package/dist/{dialog-CLwUz8Gb.js → dialog-CXugTX8t.js} +1 -1
- package/dist/{dialog-Bf7tBRkZ.cjs → dialog-DZ9_m_qc.cjs} +1 -1
- package/dist/display-CFj87iEn.cjs +1 -0
- package/dist/{display-DVhYS75K.js → display-Dehpw83R.js} +6 -5
- package/dist/{dropdown-menu-CIXxWTpw.js → dropdown-menu-BdgB__AC.js} +1 -1
- package/dist/{dropdown-menu-0OW7zJto.cjs → dropdown-menu-DCf_EqVG.cjs} +1 -1
- package/dist/features/actions.cjs +1 -1
- package/dist/features/actions.js +1 -1
- package/dist/features/activities.cjs +1 -1
- package/dist/features/activities.js +361 -363
- package/dist/features/ai-chat.cjs +2 -2
- package/dist/features/ai-chat.js +11 -10
- package/dist/features/async-preview.cjs +1 -1
- package/dist/features/async-preview.js +4 -4
- package/dist/features/combobox.cjs +1 -1
- package/dist/features/combobox.js +5 -5
- package/dist/features/comments.cjs +1 -1
- package/dist/features/comments.js +1 -1
- package/dist/features/data-view.cjs +1 -1
- package/dist/features/data-view.js +6 -6
- package/dist/features/event-calendar.cjs +1 -1
- package/dist/features/event-calendar.js +10 -10
- package/dist/features/filters.cjs +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.cjs +1 -1
- package/dist/features/global-search.js +8 -8
- package/dist/features/kanban.cjs +1 -1
- package/dist/features/kanban.js +4 -5
- package/dist/features/map.cjs +1 -1
- package/dist/features/map.js +318 -317
- package/dist/features/media-library.cjs +1 -1
- package/dist/features/media-library.js +751 -771
- package/dist/features/mentions.cjs +1 -1
- package/dist/features/mentions.js +1 -1
- package/dist/features/overlays.cjs +1 -1
- package/dist/features/overlays.js +1 -1
- package/dist/features/products.cjs +1 -1
- package/dist/features/products.js +15 -15
- package/dist/features/resource-assignment.cjs +1 -1
- package/dist/features/resource-assignment.js +6 -6
- package/dist/features/resource.cjs +1 -1
- package/dist/features/resource.js +6 -6
- package/dist/features/rich-text-editor.cjs +1 -1
- package/dist/features/rich-text-editor.js +1 -1
- package/dist/features/schema-form.cjs +1 -1
- package/dist/features/schema-form.css +1 -1
- package/dist/features/schema-form.js +207 -223
- package/dist/features/sync.cjs +1 -1
- package/dist/features/sync.js +3 -3
- package/dist/features/table.cjs +1 -1
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.cjs +2 -2
- package/dist/features/theme-tweaker.js +105 -124
- package/dist/{feedback-BmquisO3.js → feedback-C8QtkdHc.js} +3 -3
- package/dist/feedback-IpUFKqgv.cjs +1 -0
- package/dist/{filters-BD0zRwCE.js → filters-BMKZHnBA.js} +22 -17
- package/dist/filters-Ct07D74Q.cjs +1 -0
- package/dist/{forms-zF9SP3Ai.js → forms-C-d0-GML.js} +5 -7
- package/dist/forms-mJ0fjWEl.cjs +1 -0
- package/dist/{forms-numeric-B1cqc9Vn.cjs → forms-numeric-B7TRpwvH.cjs} +1 -1
- package/dist/{forms-numeric-DzxBaEg1.js → forms-numeric-MKOgf5BF.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/{input-group-Bnc24cRI.cjs → input-group-HplgNyti.cjs} +1 -1
- package/dist/{input-group-CTSiVEGd.js → input-group-xFaO6qrB.js} +2 -2
- package/dist/{item-Cye3hJmr.cjs → item-BxPJsxh2.cjs} +1 -1
- package/dist/{item-OVu-oGxQ.js → item-C7Wfarcx.js} +2 -2
- package/dist/{label-Cr4NpRvn.cjs → label-B8WTGCTZ.cjs} +1 -1
- package/dist/{label-DYJT1uER.js → label-DumoMDm6.js} +1 -1
- package/dist/layout/app-shell.cjs +1 -1
- package/dist/layout/app-shell.js +1 -1
- package/dist/layout/auth.cjs +1 -1
- package/dist/layout/auth.js +4 -2
- package/dist/layout/header.cjs +1 -1
- package/dist/layout/header.js +10 -10
- package/dist/layout/navigation.cjs +1 -1
- package/dist/layout/navigation.js +1 -1
- package/dist/layout/page.cjs +1 -1
- package/dist/layout/page.js +4 -4
- package/dist/layout/settings.cjs +1 -1
- package/dist/layout/settings.js +2 -2
- package/dist/layout/sidebar.cjs +1 -1
- package/dist/layout/sidebar.js +7 -7
- package/dist/layout/workspace.cjs +1 -1
- package/dist/layout/workspace.js +6 -7
- package/dist/lib/theming/recipes.d.cts +5 -2
- package/dist/lib/theming/recipes.d.ts +5 -2
- package/dist/lib/ui-provider/types.d.cts +4 -1
- package/dist/lib/ui-provider/types.d.ts +4 -1
- package/dist/{mentions-DbQAE-Ug.cjs → mentions-Ckm9Ct-r.cjs} +1 -1
- package/dist/{mentions-BU1sDupC.js → mentions-D_b-yVXN.js} +5 -5
- package/dist/{navigation-D00jGH59.js → navigation-COnv0B1H.js} +6 -5
- package/dist/navigation-D_hEWZYv.cjs +1 -0
- package/dist/{navigation-BRv9Xerv.js → navigation-DwNUlszz.js} +17 -15
- package/dist/navigation-UfUJU2LC.cjs +1 -0
- package/dist/{overlay-Bdri8Z7E.js → overlay-A5bE-8n5.js} +2 -2
- package/dist/{overlay-D1wEvshK.cjs → overlay-BtQz_AN3.cjs} +1 -1
- package/dist/{overlays-CaBkEKRc.js → overlays-DX9ux-XL.js} +7 -7
- package/dist/{overlays-BnWOasE6.cjs → overlays-MmLNLV9f.cjs} +1 -1
- package/dist/patterns/analytics.cjs +1 -1
- package/dist/patterns/analytics.js +41 -44
- package/dist/patterns/onboarding.cjs +1 -1
- package/dist/patterns/onboarding.js +4 -4
- package/dist/patterns/timelines.cjs +1 -1
- package/dist/patterns/timelines.js +1 -1
- package/dist/{popover-Dt8IXXKy.js → popover-CM1nxkAM.js} +2 -2
- package/dist/{popover-menu-BeNyDDo1.js → popover-menu-BCs5CLkw.js} +4 -4
- package/dist/{popover-menu-Cm10om_m.cjs → popover-menu-DcDdf9H2.cjs} +1 -1
- package/dist/{popover-BUebuMJK.cjs → popover-rLMSEj5V.cjs} +1 -1
- package/dist/{primitives-B2aeaudR.js → primitives-BnXNg-Kr.js} +2 -2
- package/dist/{primitives-BP7kGVYZ.cjs → primitives-kywiHMJE.cjs} +1 -1
- package/dist/primitives.cjs +1 -1
- package/dist/primitives.js +1 -1
- package/dist/{repeaters-BIvKI1CQ.cjs → repeaters-B4dnWxUE.cjs} +1 -1
- package/dist/{repeaters-C43GWEE_.js → repeaters-B4oohPvd.js} +4 -4
- package/dist/{rich-text-editor-CqqHeJDp.cjs → rich-text-editor-7GYD-4Qq.cjs} +1 -1
- package/dist/{rich-text-editor-CVo4FB26.js → rich-text-editor-CgsfAGMo.js} +3 -3
- package/dist/{sheet-BP2BmI-Z.js → sheet-3sbsGFus.js} +2 -2
- package/dist/{sheet-FA8TfP1E.cjs → sheet-B4_LNS7m.cjs} +1 -1
- package/dist/{sidebar-C-TSBDj5.cjs → sidebar--uZUOGHE.cjs} +1 -1
- package/dist/{sidebar-DOmsOhCp.js → sidebar-BMgoyRxy.js} +10 -9
- package/dist/{skeleton-vN_fsg7X.js → skeleton-Bxqw8kwa.js} +1 -1
- package/dist/{skeleton-3RdcmQ7K.cjs → skeleton-DeuQS4AK.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/styles/SCOPES.md +28 -9
- package/dist/styles/TOKENS.md +165 -9
- package/dist/styles/index.css +0 -1
- package/dist/styles/map.css +14 -8
- package/dist/styles/mentions.css +37 -44
- package/dist/styles/tailwind.css +2 -1
- package/dist/styles/themes/default.css +16 -14
- package/dist/styles/theming/colors.css +28 -22
- package/dist/styles/theming/feedback.css +0 -1
- package/dist/styles/theming/focus.css +15 -8
- package/dist/styles/theming/motion.css +8 -5
- package/dist/styles/theming/overlay.css +7 -0
- package/dist/styles/theming/sizing.css +8 -4
- package/dist/styles/theming/text.css +3 -1
- package/dist/styles/theming/typography.css +3 -0
- package/dist/styles/tokens/components.css +1 -1
- package/dist/styles/tokens/states.css +4 -4
- package/dist/{table-B9zwmrtt.cjs → table-3abrkeib.cjs} +1 -1
- package/dist/{table-CzsDKBR2.js → table-BXL7IP5P.js} +1 -1
- package/dist/{table-CaFQyjTz.cjs → table-CXRnlkV5.cjs} +1 -1
- package/dist/{table-CtUahid0.js → table-DszexXEh.js} +14 -14
- package/dist/tailwind.css +2 -1
- package/dist/{theming-B52zPV1p.cjs → theming-8U04chn7.cjs} +1 -1
- package/dist/{theming-y5FKH_La.js → theming-D6KRU7hO.js} +9 -9
- package/dist/theming.cjs +1 -1
- package/dist/theming.js +1 -1
- package/dist/{timeline-B3f7rEXh.cjs → timeline-CzAIDLzd.cjs} +1 -1
- package/dist/{timeline-DskNs3lw.js → timeline-ptWoY2GY.js} +2 -2
- package/dist/{timelines-wlcL01Rf.js → timelines-BquC31uF.js} +4 -4
- package/dist/{timelines-DJdBmWPj.cjs → timelines-DLsQhK72.cjs} +1 -1
- package/dist/{toaster-D3Fsaf3I.cjs → toaster-BVTOrAb5.cjs} +1 -1
- package/dist/{toaster-CaTwpule.js → toaster-DOBJDiXt.js} +1 -1
- package/dist/tokens.json +8 -7
- package/dist/{toolbar-CvUhAFhi.js → toolbar-3GLSD7Fi.js} +1 -1
- package/dist/{toolbar-Bap7y244.cjs → toolbar-aZKjtFDt.cjs} +1 -1
- package/dist/{tooltip-Dewu4Ynm.cjs → tooltip-CEcUVmor.cjs} +1 -1
- package/dist/{tooltip-B82dN7Oy.js → tooltip-DksScngC.js} +1 -1
- package/dist/{typography-B8Iurhy1.js → typography-BkxEiwQ1.js} +1 -1
- package/dist/{typography-LMez-POJ.cjs → typography-Cf5zEv4y.cjs} +1 -1
- package/dist/ui-provider-DI1VxMDT.cjs +1 -0
- package/dist/{ui-provider-BzyJxcKH.js → ui-provider-gNDv-ZRY.js} +4 -1
- package/dist/ui-provider.cjs +1 -1
- package/dist/ui-provider.js +1 -1
- package/dist/{upload-5tzkI0NC.cjs → upload-Bg8tyH5a.cjs} +1 -1
- package/dist/{upload-BL8HIPbS.js → upload-wTBh4QQx.js} +4 -4
- package/dist/{value-inputs-DzErolfh.cjs → value-inputs-B6ZURTUl.cjs} +1 -1
- package/dist/{value-inputs-DQGHd7k8.js → value-inputs-DnQKmVqW.js} +4 -4
- package/docs/generated/component-index.json +1 -2
- package/docs/generated/components/base--qr-code.md +2 -2
- package/docs/generated/components/base--typography.md +1 -1
- package/docs/generated/components/features--schema-form.md +1 -1
- package/docs/generated/components/features--theme-tweaker.md +3 -2
- package/docs/generated/components/theming.md +3 -2
- package/docs/generated/components/ui-provider.md +1 -0
- package/docs/generated/migration-codemod.json +28 -3
- package/docs/generated/migration.md +72 -3
- package/docs/generated/profiles.md +1 -1
- package/docs/learn/migration.md +16 -1
- package/docs/learn/theming.md +1 -1
- package/package.json +1 -1
- package/src/styles/SCOPES.md +28 -9
- package/src/styles/TOKENS.md +165 -9
- package/dist/accordion-BH9vNfdb.cjs +0 -1
- package/dist/cards-CO5LHALb.cjs +0 -1
- package/dist/combobox-CTUFSblt.cjs +0 -1
- package/dist/display-BUiiuPS9.cjs +0 -1
- package/dist/feedback-Da53xAUT.cjs +0 -1
- package/dist/filters-B8dkhzan.cjs +0 -1
- package/dist/forms-BEQN1X5A.cjs +0 -1
- package/dist/navigation-BaIANCwE.cjs +0 -1
- package/dist/navigation-BmZabEfZ.cjs +0 -1
- package/dist/styles/theming/mentions.css +0 -33
- package/dist/ui-provider-B3v22pQY.cjs +0 -1
|
@@ -2,26 +2,26 @@
|
|
|
2
2
|
import "../core.css";
|
|
3
3
|
import "../css/theme-tweaker.css";
|
|
4
4
|
import { t as e } from "../cx--CBrhWH0.js";
|
|
5
|
-
import { a as t, o as n } from "../typography-
|
|
6
|
-
import { _ as r, a as i, h as a, p as o, v as s } from "../feedback-
|
|
7
|
-
import { S as c, x as l } from "../ui-provider-
|
|
8
|
-
import { c as u } from "../buttons-
|
|
9
|
-
import { d, l as f } from "../display-
|
|
5
|
+
import { a as t, o as n } from "../typography-BkxEiwQ1.js";
|
|
6
|
+
import { _ as r, a as i, h as a, p as o, v as s } from "../feedback-C8QtkdHc.js";
|
|
7
|
+
import { S as c, x as l } from "../ui-provider-gNDv-ZRY.js";
|
|
8
|
+
import { c as u } from "../buttons-riLAPVQV.js";
|
|
9
|
+
import { d, l as f } from "../display-Dehpw83R.js";
|
|
10
10
|
import { i as ee, o as p } from "../structure-D0WGQAP3.js";
|
|
11
|
-
import { B as m } from "../primitives-
|
|
11
|
+
import { B as m } from "../primitives-BnXNg-Kr.js";
|
|
12
12
|
import { t as h } from "../badge-D34FkKLD.js";
|
|
13
|
-
import { c as te, i as g, r as ne, t as _, u as re } from "../item-
|
|
14
|
-
import { u as v } from "../forms-
|
|
13
|
+
import { c as te, i as g, r as ne, t as _, u as re } from "../item-C7Wfarcx.js";
|
|
14
|
+
import { u as v } from "../forms-C-d0-GML.js";
|
|
15
15
|
import { t as ie } from "../strings-Co9_qArR.js";
|
|
16
16
|
import { l as y } from "../text-inputs-BBpgIQEI.js";
|
|
17
|
-
import { d as ae, f as oe, p as se, u as ce } from "../navigation-
|
|
18
|
-
import { n as le, s as b } from "../choice-inputs-
|
|
19
|
-
import { l as x, o as ue } from "../value-inputs-
|
|
20
|
-
import { t as de } from "../accordion-
|
|
21
|
-
import { n as fe } from "../overlay-
|
|
22
|
-
import { u as pe } from "../forms-numeric-
|
|
23
|
-
import { i as me, r as he } from "../overlays-
|
|
24
|
-
import { n as ge, r as _e, t as ve } from "../theming-
|
|
17
|
+
import { d as ae, f as oe, p as se, u as ce } from "../navigation-COnv0B1H.js";
|
|
18
|
+
import { n as le, s as b } from "../choice-inputs-BjZYCdzk.js";
|
|
19
|
+
import { l as x, o as ue } from "../value-inputs-DnQKmVqW.js";
|
|
20
|
+
import { t as de } from "../accordion-B4zNzH7s.js";
|
|
21
|
+
import { n as fe } from "../overlay-A5bE-8n5.js";
|
|
22
|
+
import { u as pe } from "../forms-numeric-MKOgf5BF.js";
|
|
23
|
+
import { i as me, r as he } from "../overlays-DX9ux-XL.js";
|
|
24
|
+
import { n as ge, r as _e, t as ve } from "../theming-D6KRU7hO.js";
|
|
25
25
|
import { CheckCircle2Icon as ye, CopyIcon as be, DownloadIcon as xe, InfoIcon as Se, LayoutGridIcon as Ce, MoonIcon as we, PaletteIcon as S, RotateCcwIcon as Te, SearchIcon as Ee, Settings2Icon as De, ShapesIcon as Oe, ShieldCheckIcon as ke, SunIcon as Ae, TypeIcon as je } from "lucide-react";
|
|
26
26
|
import { forwardRef as Me, useEffect as Ne, useId as C, useImperativeHandle as Pe, useMemo as w, useRef as Fe, useState as T } from "react";
|
|
27
27
|
import { jsx as E, jsxs as D } from "react/jsx-runtime";
|
|
@@ -272,7 +272,6 @@ var Ue = Me(function({ theme: t, mode: n = t.mode, className: r, style: i, child
|
|
|
272
272
|
empty: "theme-tweaker__empty___qgrD1",
|
|
273
273
|
providerSettings: "theme-tweaker__providerSettings___4aCH6",
|
|
274
274
|
settingsGrid: "theme-tweaker__settingsGrid___h_Q0S",
|
|
275
|
-
exportDialog: "theme-tweaker__exportDialog___kVwdr",
|
|
276
275
|
exportFooter: "theme-tweaker__exportFooter___WpVsY",
|
|
277
276
|
exportBlock: "theme-tweaker__exportBlock___8xaZs",
|
|
278
277
|
exportBlockHeader: "theme-tweaker__exportBlockHeader___Xpy0a",
|
|
@@ -293,58 +292,52 @@ function H(e, t) {
|
|
|
293
292
|
label: t.options[e] ?? e.replaceAll("-", " ").replace(/\b\w/g, (e) => e.toUpperCase())
|
|
294
293
|
}));
|
|
295
294
|
}
|
|
296
|
-
function Ge({ config: t, onChange:
|
|
297
|
-
let
|
|
298
|
-
|
|
299
|
-
...
|
|
295
|
+
function Ge({ config: t, onChange: n, strings: o = B, className: c }) {
|
|
296
|
+
let l = I(t), u = (e, t, r) => {
|
|
297
|
+
n({
|
|
298
|
+
...l,
|
|
300
299
|
[e]: {
|
|
301
|
-
...
|
|
302
|
-
[t]:
|
|
300
|
+
...l[e],
|
|
301
|
+
[t]: r
|
|
303
302
|
}
|
|
304
303
|
});
|
|
305
|
-
},
|
|
306
|
-
|
|
307
|
-
...
|
|
304
|
+
}, d = (e, t) => {
|
|
305
|
+
n({
|
|
306
|
+
...l,
|
|
308
307
|
[e]: t
|
|
309
308
|
});
|
|
310
309
|
};
|
|
311
310
|
return /* @__PURE__ */ D(p, {
|
|
312
311
|
gap: "lg",
|
|
313
|
-
className: e("ui-config-settings--component", V.providerSettings,
|
|
312
|
+
className: e("ui-config-settings--component", V.providerSettings, c),
|
|
314
313
|
children: [
|
|
315
|
-
/* @__PURE__ */
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
weight: "semibold",
|
|
319
|
-
children: c.title
|
|
320
|
-
}), /* @__PURE__ */ E(n, {
|
|
321
|
-
type: "secondary",
|
|
322
|
-
children: c.description
|
|
323
|
-
})]
|
|
314
|
+
/* @__PURE__ */ E(f, {
|
|
315
|
+
title: o.title,
|
|
316
|
+
description: o.description
|
|
324
317
|
}),
|
|
325
318
|
/* @__PURE__ */ D(a, {
|
|
326
319
|
tone: "info",
|
|
327
320
|
role: "note",
|
|
328
321
|
children: [
|
|
329
322
|
/* @__PURE__ */ E(Se, { "aria-hidden": !0 }),
|
|
330
|
-
/* @__PURE__ */ E(s, { children:
|
|
331
|
-
/* @__PURE__ */ E(r, { children:
|
|
323
|
+
/* @__PURE__ */ E(s, { children: o.boundaryTitle }),
|
|
324
|
+
/* @__PURE__ */ E(r, { children: o.boundaryDescription }),
|
|
332
325
|
/* @__PURE__ */ E(i, { items: [
|
|
333
326
|
{
|
|
334
|
-
label:
|
|
335
|
-
value:
|
|
327
|
+
label: o.summary.locale,
|
|
328
|
+
value: l.formatting?.locale ?? o.options.default
|
|
336
329
|
},
|
|
337
330
|
{
|
|
338
|
-
label:
|
|
339
|
-
value:
|
|
331
|
+
label: o.summary.currency,
|
|
332
|
+
value: l.money?.defaultCurrency ?? o.options.default
|
|
340
333
|
},
|
|
341
334
|
{
|
|
342
|
-
label:
|
|
343
|
-
value:
|
|
335
|
+
label: o.summary.density,
|
|
336
|
+
value: o.options[l.density ?? "default"] ?? l.density
|
|
344
337
|
},
|
|
345
338
|
{
|
|
346
|
-
label:
|
|
347
|
-
value:
|
|
339
|
+
label: o.summary.textSize,
|
|
340
|
+
value: o.options[l.typography?.defaultTextSize ?? "sm"] ?? l.typography?.defaultTextSize
|
|
348
341
|
}
|
|
349
342
|
] })
|
|
350
343
|
]
|
|
@@ -357,34 +350,34 @@ function Ge({ config: t, onChange: o, strings: c = B, className: l }) {
|
|
|
357
350
|
items: [
|
|
358
351
|
{
|
|
359
352
|
value: "regional",
|
|
360
|
-
title:
|
|
361
|
-
description:
|
|
353
|
+
title: o.sections.regional.title,
|
|
354
|
+
description: o.sections.regional.description,
|
|
362
355
|
content: /* @__PURE__ */ D("div", {
|
|
363
356
|
className: V.settingsGrid,
|
|
364
357
|
children: [
|
|
365
358
|
/* @__PURE__ */ E(v, {
|
|
366
|
-
label:
|
|
359
|
+
label: o.labels.locale,
|
|
367
360
|
children: /* @__PURE__ */ E(y, {
|
|
368
|
-
value:
|
|
369
|
-
onChange: (e) =>
|
|
361
|
+
value: l.formatting?.locale ?? "",
|
|
362
|
+
onChange: (e) => u("formatting", "locale", e.target.value)
|
|
370
363
|
})
|
|
371
364
|
}),
|
|
372
365
|
/* @__PURE__ */ E(v, {
|
|
373
|
-
label:
|
|
366
|
+
label: o.labels.firstDay,
|
|
374
367
|
children: /* @__PURE__ */ E(b, {
|
|
375
|
-
value: String(
|
|
368
|
+
value: String(l.dates?.weekStartsOn ?? 1),
|
|
376
369
|
options: We.map((e, t) => ({
|
|
377
370
|
value: String(t),
|
|
378
|
-
label:
|
|
371
|
+
label: o.options[e] ?? e
|
|
379
372
|
})),
|
|
380
|
-
onValueChange: (e) => e !== void 0 &&
|
|
373
|
+
onValueChange: (e) => e !== void 0 && u("dates", "weekStartsOn", Number(e))
|
|
381
374
|
})
|
|
382
375
|
}),
|
|
383
376
|
/* @__PURE__ */ E(v, {
|
|
384
|
-
label:
|
|
377
|
+
label: o.labels.dateFormat,
|
|
385
378
|
children: /* @__PURE__ */ E(y, {
|
|
386
|
-
value:
|
|
387
|
-
onChange: (e) =>
|
|
379
|
+
value: l.dates?.format ?? "",
|
|
380
|
+
onChange: (e) => u("dates", "format", e.target.value),
|
|
388
381
|
className: V.monoInput
|
|
389
382
|
})
|
|
390
383
|
})
|
|
@@ -393,78 +386,77 @@ function Ge({ config: t, onChange: o, strings: c = B, className: l }) {
|
|
|
393
386
|
},
|
|
394
387
|
{
|
|
395
388
|
value: "presentation",
|
|
396
|
-
title:
|
|
397
|
-
description:
|
|
389
|
+
title: o.sections.presentation.title,
|
|
390
|
+
description: o.sections.presentation.description,
|
|
398
391
|
content: /* @__PURE__ */ D("div", {
|
|
399
392
|
className: V.settingsGrid,
|
|
400
393
|
children: [
|
|
401
394
|
/* @__PURE__ */ E(v, {
|
|
402
|
-
label:
|
|
395
|
+
label: o.labels.colorScheme,
|
|
403
396
|
children: /* @__PURE__ */ E(b, {
|
|
404
|
-
value:
|
|
397
|
+
value: l.colorScheme,
|
|
405
398
|
options: H([
|
|
406
399
|
"light",
|
|
407
400
|
"dark",
|
|
408
401
|
"system"
|
|
409
|
-
],
|
|
410
|
-
onValueChange: (e) => e !== void 0 &&
|
|
402
|
+
], o),
|
|
403
|
+
onValueChange: (e) => e !== void 0 && d("colorScheme", e)
|
|
411
404
|
})
|
|
412
405
|
}),
|
|
413
406
|
/* @__PURE__ */ E(le, {
|
|
414
|
-
label:
|
|
415
|
-
description:
|
|
416
|
-
value:
|
|
417
|
-
onValueChange: (e) =>
|
|
407
|
+
label: o.labels.darkMenus,
|
|
408
|
+
description: o.darkMenusDescription,
|
|
409
|
+
value: l.overlay?.darkMenus ?? !0,
|
|
410
|
+
onValueChange: (e) => u("overlay", "darkMenus", e)
|
|
418
411
|
}),
|
|
419
412
|
/* @__PURE__ */ E(v, {
|
|
420
|
-
label:
|
|
413
|
+
label: o.labels.density,
|
|
421
414
|
children: /* @__PURE__ */ E(b, {
|
|
422
|
-
value:
|
|
415
|
+
value: l.density,
|
|
423
416
|
options: H([
|
|
424
417
|
"compact",
|
|
425
418
|
"default",
|
|
426
419
|
"comfortable"
|
|
427
|
-
],
|
|
428
|
-
onValueChange: (e) => e !== void 0 &&
|
|
420
|
+
], o),
|
|
421
|
+
onValueChange: (e) => e !== void 0 && d("density", e)
|
|
429
422
|
})
|
|
430
423
|
}),
|
|
431
424
|
/* @__PURE__ */ E(v, {
|
|
432
|
-
label:
|
|
425
|
+
label: o.labels.textSize,
|
|
433
426
|
children: /* @__PURE__ */ E(b, {
|
|
434
|
-
value:
|
|
427
|
+
value: l.typography?.defaultTextSize,
|
|
435
428
|
options: H([
|
|
436
429
|
"inherit",
|
|
437
|
-
"xxs",
|
|
438
430
|
"xs",
|
|
439
431
|
"pxs",
|
|
440
432
|
"sm",
|
|
441
433
|
"base",
|
|
442
434
|
"lg",
|
|
443
435
|
"xl"
|
|
444
|
-
],
|
|
445
|
-
onValueChange: (e) => e !== void 0 &&
|
|
436
|
+
], o),
|
|
437
|
+
onValueChange: (e) => e !== void 0 && u("typography", "defaultTextSize", e)
|
|
446
438
|
})
|
|
447
439
|
}),
|
|
448
440
|
/* @__PURE__ */ E(v, {
|
|
449
|
-
label:
|
|
441
|
+
label: o.labels.scale,
|
|
450
442
|
children: /* @__PURE__ */ E(x, {
|
|
451
|
-
"aria-label":
|
|
452
|
-
value:
|
|
443
|
+
"aria-label": o.labels.scale,
|
|
444
|
+
value: l.scale ?? 1,
|
|
453
445
|
min: .75,
|
|
454
446
|
max: 1.35,
|
|
455
447
|
step: .025,
|
|
456
|
-
onValueChange: (e) =>
|
|
448
|
+
onValueChange: (e) => d("scale", e)
|
|
457
449
|
})
|
|
458
450
|
}),
|
|
459
451
|
/* @__PURE__ */ E(v, {
|
|
460
|
-
label:
|
|
452
|
+
label: o.labels.typographyScale,
|
|
461
453
|
children: /* @__PURE__ */ E(x, {
|
|
462
|
-
"aria-label":
|
|
463
|
-
value:
|
|
454
|
+
"aria-label": o.labels.typographyScale,
|
|
455
|
+
value: l.typography?.scale ?? 1,
|
|
464
456
|
min: .85,
|
|
465
457
|
max: 1.25,
|
|
466
458
|
step: .025,
|
|
467
|
-
onValueChange: (e) =>
|
|
459
|
+
onValueChange: (e) => u("typography", "scale", e)
|
|
468
460
|
})
|
|
469
461
|
})
|
|
470
462
|
]
|
|
@@ -472,62 +464,62 @@ function Ge({ config: t, onChange: o, strings: c = B, className: l }) {
|
|
|
472
464
|
},
|
|
473
465
|
{
|
|
474
466
|
value: "money",
|
|
475
|
-
title:
|
|
476
|
-
description:
|
|
467
|
+
title: o.sections.money.title,
|
|
468
|
+
description: o.sections.money.description,
|
|
477
469
|
content: /* @__PURE__ */ D("div", {
|
|
478
470
|
className: V.settingsGrid,
|
|
479
471
|
children: [
|
|
480
472
|
/* @__PURE__ */ E(v, {
|
|
481
|
-
label:
|
|
473
|
+
label: o.labels.defaultCurrency,
|
|
482
474
|
children: /* @__PURE__ */ E(y, {
|
|
483
|
-
value:
|
|
484
|
-
onChange: (e) =>
|
|
475
|
+
value: l.money?.defaultCurrency ?? "",
|
|
476
|
+
onChange: (e) => u("money", "defaultCurrency", e.target.value.toUpperCase())
|
|
485
477
|
})
|
|
486
478
|
}),
|
|
487
479
|
/* @__PURE__ */ E(v, {
|
|
488
|
-
label:
|
|
480
|
+
label: o.labels.displayCurrency,
|
|
489
481
|
children: /* @__PURE__ */ E(y, {
|
|
490
|
-
value:
|
|
491
|
-
placeholder:
|
|
492
|
-
onChange: (e) =>
|
|
482
|
+
value: l.money?.displayCurrency ?? "",
|
|
483
|
+
placeholder: o.displayCurrencyPlaceholder,
|
|
484
|
+
onChange: (e) => u("money", "displayCurrency", e.target.value.toUpperCase() || void 0)
|
|
493
485
|
})
|
|
494
486
|
}),
|
|
495
487
|
/* @__PURE__ */ E(v, {
|
|
496
|
-
label:
|
|
488
|
+
label: o.labels.moneyFormat,
|
|
497
489
|
children: /* @__PURE__ */ E(b, {
|
|
498
|
-
value:
|
|
490
|
+
value: l.money?.formatMode,
|
|
499
491
|
options: H([
|
|
500
492
|
"decimal",
|
|
501
493
|
"with-code",
|
|
502
494
|
"with-symbol"
|
|
503
|
-
],
|
|
504
|
-
onValueChange: (e) => e !== void 0 &&
|
|
495
|
+
], o),
|
|
496
|
+
onValueChange: (e) => e !== void 0 && u("money", "formatMode", e)
|
|
505
497
|
})
|
|
506
498
|
}),
|
|
507
499
|
/* @__PURE__ */ E(le, {
|
|
508
|
-
label:
|
|
509
|
-
description:
|
|
510
|
-
value:
|
|
511
|
-
onValueChange: (e) =>
|
|
500
|
+
label: o.labels.dualPricing,
|
|
501
|
+
description: o.dualPricingDescription,
|
|
502
|
+
value: l.money?.dualPricingEnabled ?? !1,
|
|
503
|
+
onValueChange: (e) => u("money", "dualPricingEnabled", e)
|
|
512
504
|
}),
|
|
513
505
|
/* @__PURE__ */ E(v, {
|
|
514
|
-
label:
|
|
506
|
+
label: o.labels.dualPricingMode,
|
|
515
507
|
children: /* @__PURE__ */ E(b, {
|
|
516
|
-
value:
|
|
508
|
+
value: l.money?.displayMode,
|
|
517
509
|
options: H([
|
|
518
510
|
"primary-only",
|
|
519
511
|
"dual",
|
|
520
512
|
"dynamic"
|
|
521
|
-
],
|
|
522
|
-
onValueChange: (e) => e !== void 0 &&
|
|
513
|
+
], o),
|
|
514
|
+
onValueChange: (e) => e !== void 0 && u("money", "displayMode", e)
|
|
523
515
|
})
|
|
524
516
|
}),
|
|
525
517
|
/* @__PURE__ */ E(v, {
|
|
526
|
-
label:
|
|
518
|
+
label: o.labels.dualPricingLayout,
|
|
527
519
|
children: /* @__PURE__ */ E(b, {
|
|
528
|
-
value:
|
|
529
|
-
options: H(["inline", "stacked"],
|
|
530
|
-
onValueChange: (e) => e !== void 0 &&
|
|
520
|
+
value: l.money?.layout,
|
|
521
|
+
options: H(["inline", "stacked"], o),
|
|
522
|
+
onValueChange: (e) => e !== void 0 && u("money", "layout", e)
|
|
531
523
|
})
|
|
532
524
|
})
|
|
533
525
|
]
|
|
@@ -565,30 +557,19 @@ var U = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
|
|
|
565
557
|
"--font-serif",
|
|
566
558
|
"--font-mono"
|
|
567
559
|
], W = [
|
|
568
|
-
"xxs",
|
|
569
560
|
"xs",
|
|
570
561
|
"pxs",
|
|
571
562
|
"sm",
|
|
572
563
|
"base",
|
|
573
564
|
"lg",
|
|
574
565
|
"xl",
|
|
575
|
-
"2xl"
|
|
576
|
-
"3xl",
|
|
577
|
-
"4xl",
|
|
578
|
-
"5xl",
|
|
579
|
-
"6xl",
|
|
580
|
-
"7xl",
|
|
581
|
-
"8xl",
|
|
582
|
-
"9xl"
|
|
566
|
+
"2xl"
|
|
583
567
|
].flatMap((e) => [`--text-${e}`, `--text-${e}--line-height`]), Ye = [
|
|
584
|
-
"--shadow-2xs",
|
|
585
568
|
"--shadow-xs",
|
|
586
569
|
"--shadow-sm",
|
|
587
|
-
"--shadow",
|
|
588
570
|
"--shadow-md",
|
|
589
571
|
"--shadow-lg",
|
|
590
|
-
"--shadow-xl"
|
|
591
|
-
"--shadow-2xl"
|
|
572
|
+
"--shadow-xl"
|
|
592
573
|
], G = [
|
|
593
574
|
"--density-scale",
|
|
594
575
|
"--height-control",
|
|
@@ -1637,7 +1618,7 @@ var Z = Me(function({ value: r, defaultValue: i, onValueChange: a, onModeChange:
|
|
|
1637
1618
|
showConfirm: !1,
|
|
1638
1619
|
width: "xl",
|
|
1639
1620
|
surfaceStyle: z(k),
|
|
1640
|
-
className:
|
|
1621
|
+
className: k.mode,
|
|
1641
1622
|
footer: /* @__PURE__ */ D("div", {
|
|
1642
1623
|
className: V.exportFooter,
|
|
1643
1624
|
children: [/* @__PURE__ */ D(u, {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./css/feedback.css";
|
|
2
2
|
import { t as e } from "./cvm-DtsCA8iZ.js";
|
|
3
3
|
import { t } from "./cx--CBrhWH0.js";
|
|
4
|
-
import { a as n, o as r } from "./typography-
|
|
5
|
-
import { c as i } from "./buttons-
|
|
4
|
+
import { a as n, o as r } from "./typography-BkxEiwQ1.js";
|
|
5
|
+
import { c as i } from "./buttons-riLAPVQV.js";
|
|
6
6
|
import { CircleAlertIcon as a, CircleCheckIcon as o, InfoIcon as s, Loader2Icon as c, SearchIcon as l, TriangleAlertIcon as u } from "lucide-react";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
@@ -79,7 +79,7 @@ function v({ className: e, ...n }) {
|
|
|
79
79
|
return /* @__PURE__ */ d(r, {
|
|
80
80
|
tag: "div",
|
|
81
81
|
size: "inherit",
|
|
82
|
-
type: "
|
|
82
|
+
type: "secondary",
|
|
83
83
|
"data-slot": "alert-description",
|
|
84
84
|
className: t("alert-description--component", p.description, e),
|
|
85
85
|
...n
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./rolldown-runtime-BocRIvOZ.cjs"),t=require("./cvm-CHrYqf6y.cjs"),n=require("./typography-Cf5zEv4y.cjs"),r=require("./buttons-Dwl42fIr.cjs");let i=require("lucide-react"),a=require("react");a=e.t(a,1);let o=require("react/jsx-runtime"),s=require("clsx");var c={root:`alert__root___fMmtV`,toneNeutral:`alert__toneNeutral___Dx451`,tonePrimary:`alert__tonePrimary___FkiRU`,toneSecondary:`alert__toneSecondary___yC2JY`,toneInfo:`alert__toneInfo___ut4gd`,toneSuccess:`alert__toneSuccess___czn5l`,toneWarning:`alert__toneWarning___HmaKX`,toneDestructive:`alert__toneDestructive___T52t-`,variantInverse:`alert__variantInverse___qWtkf`,title:`alert__title___GxGhO`,description:`alert__description___8yaK5`,action:`alert__action___hwzlx`},l=t.t(c.root,{variants:{tone:{neutral:c.toneNeutral,primary:c.tonePrimary,secondary:c.toneSecondary,destructive:c.toneDestructive,warning:c.toneWarning,success:c.toneSuccess,info:c.toneInfo},variant:{default:void 0,inverse:c.variantInverse}},defaultVariants:{tone:`neutral`,variant:`default`}}),u={neutral:null,primary:null,secondary:null,destructive:(0,o.jsx)(i.CircleAlertIcon,{"aria-hidden":!0}),warning:(0,o.jsx)(i.TriangleAlertIcon,{"aria-hidden":!0}),success:(0,o.jsx)(i.CircleCheckIcon,{"aria-hidden":!0}),info:(0,o.jsx)(i.InfoIcon,{"aria-hidden":!0})};function d({className:e,tone:t,variant:n,icon:r,children:i,...a}){let c=r===void 0?u[t??`neutral`]:r;return(0,o.jsxs)(`div`,{"data-slot":`alert`,"data-tone":t??`neutral`,"data-variant":n??`default`,role:t===`destructive`?`alert`:`status`,className:(0,s.clsx)(`alert--component`,l({tone:t,variant:n,className:e})),...a,children:[c||null,i]})}function f({className:e,...t}){return(0,o.jsx)(n.o,{tag:`div`,size:`inherit`,type:`inherit`,weight:`medium`,"data-slot":`alert-title`,className:(0,s.clsx)(`alert-title--component`,c.title,e),...t})}function p({className:e,...t}){return(0,o.jsx)(n.o,{tag:`div`,size:`inherit`,type:`secondary`,"data-slot":`alert-description`,className:(0,s.clsx)(`alert-description--component`,c.description,e),...t})}function m({className:e,...t}){return(0,o.jsx)(`div`,{"data-slot":`alert-action`,className:(0,s.clsx)(`alert-action--component`,c.action,e),...t})}var h={title:`Nothing here yet`,description:`Once data lands, it will show up in this view.`,ariaLabel:`Empty state`},g={root:`empty__root___dGVWo`,padSm:`empty__padSm___j1xaw`,padMd:`empty__padMd___PAUNy`,padLg:`empty__padLg___vkd3q`,bordered:`empty__bordered___qUxGJ`,media:`empty__media___v646r`,mediaIcon:`empty__mediaIcon___7LMpP`,mediaIconSoft:`empty__mediaIconSoft___cL1VI`,mediaIllustration:`empty__mediaIllustration___INASq`,content:`empty__content___UzGGp`,actions:`empty__actions___sULu9`,description:`empty__description___tmyDN`},_={sm:g.padSm,md:g.padMd,lg:g.padLg},v={none:void 0,icon:g.mediaIcon,"icon-soft":g.mediaIconSoft,illustration:g.mediaIllustration};function y({media:e,mediaVariant:t=`none`,renderMedia:r,title:i,description:a,action:c,footer:l,padding:u=`md`,border:d=!1,className:f,children:p,strings:m,"aria-label":y,...b}){let x={...h,...m},S=r?r({mediaVariant:t}):e,C=i??x.title,w=a===!1?null:a??x.description;return(0,o.jsxs)(`div`,{"data-slot":`empty`,role:`status`,"aria-label":y??x.ariaLabel,className:(0,s.clsx)(`empty--component`,g.root,_[u],d&&g.bordered,f),...b,children:[!!S&&(0,o.jsx)(`div`,{"data-slot":`empty-media`,"data-variant":t,className:(0,s.clsx)(`empty--media`,g.media,v[t]),children:S}),!!(C||w)&&(0,o.jsxs)(`div`,{className:g.content,children:[!!C&&(0,o.jsx)(n.a,{level:3,size:`base`,"data-slot":`empty-title`,className:`empty--title`,children:C}),!!w&&(0,o.jsx)(n.o,{align:`center`,type:`secondary`,"data-slot":`empty-description`,className:(0,s.clsx)(`empty--description`,g.description),children:w})]}),p,!!c&&(0,o.jsx)(`div`,{"data-slot":`empty-actions`,className:(0,s.clsx)(`empty--actions`,g.actions),children:c}),!!l&&(0,o.jsx)(n.o,{align:`center`,tag:`div`,size:`xs`,type:`secondary`,"data-slot":`empty-footer`,className:`empty--footer`,children:l})]})}var b={lineWide:`empty-illustrations__lineWide___QaFrX`,lineNarrow:`empty-illustrations__lineNarrow___M4qYk`,lineShort:`empty-illustrations__lineShort___cmQXA`,stack:`empty-illustrations__stack____EA-u`,stackBack:`empty-illustrations__stackBack___qYSjR`,stackMid:`empty-illustrations__stackMid___1E91B`,stackFront:`empty-illustrations__stackFront___Kp3as`,stackThumb:`empty-illustrations__stackThumb___xrHXy`,stackLines:`empty-illustrations__stackLines___P74LH`,stackFade:`empty-illustrations__stackFade___z3xS2`,docs:`empty-illustrations__docs___SJJ5j`,doc:`empty-illustrations__doc___BEYbp`,docBack:`empty-illustrations__docBack___cCs6s`,docFront:`empty-illustrations__docFront___gJTKl`,docStatus:`empty-illustrations__docStatus___Y220r`,docDot:`empty-illustrations__docDot___WVkma`,inbox:`empty-illustrations__inbox___6HlVX`,inboxCheck:`empty-illustrations__inboxCheck___Da4DN`,inboxTray:`empty-illustrations__inboxTray___2Mzt3`,inboxLip:`empty-illustrations__inboxLip___kneND`,inboxRow:`empty-illustrations__inboxRow___7gq3M`,inboxLines:`empty-illustrations__inboxLines___e2QMA`,inboxDot:`empty-illustrations__inboxDot___bCn-J`,glass:`empty-illustrations__glass___tiO45`,users:`empty-illustrations__users___eo-XD`,userLeft:`empty-illustrations__userLeft___AaDLI`,userCentre:`empty-illustrations__userCentre___PIKxD`,userRight:`empty-illustrations__userRight___CKDSo`};function x({className:e}){return(0,o.jsxs)(`div`,{"aria-hidden":!0,className:(0,s.clsx)(`stacked-cards-illustration--component`,b.stack,e),children:[(0,o.jsx)(`div`,{className:b.stackBack}),(0,o.jsx)(`div`,{className:b.stackMid}),(0,o.jsxs)(`div`,{className:b.stackFront,children:[(0,o.jsx)(`div`,{className:b.stackThumb}),(0,o.jsxs)(`div`,{className:b.stackLines,children:[(0,o.jsx)(`div`,{className:b.lineWide}),(0,o.jsx)(`div`,{className:b.lineNarrow})]})]}),(0,o.jsx)(`div`,{className:b.stackFade})]})}function S({className:e}){return(0,o.jsxs)(`div`,{"aria-hidden":!0,className:(0,s.clsx)(`document-stack-illustration--component`,b.docs,e),children:[(0,o.jsxs)(`div`,{className:(0,s.clsx)(b.doc,b.docBack),children:[(0,o.jsx)(`div`,{className:b.lineWide}),(0,o.jsx)(`div`,{className:b.lineNarrow}),(0,o.jsx)(`div`,{className:b.lineNarrow})]}),(0,o.jsxs)(`div`,{className:(0,s.clsx)(b.doc,b.docFront),children:[(0,o.jsx)(`div`,{className:b.lineWide}),(0,o.jsx)(`div`,{className:b.lineNarrow}),(0,o.jsx)(`div`,{className:b.lineNarrow}),(0,o.jsxs)(`div`,{className:b.docStatus,children:[(0,o.jsx)(`div`,{className:b.docDot}),(0,o.jsx)(`div`,{className:b.lineNarrow})]})]})]})}function C({className:e}){return(0,o.jsxs)(`div`,{"aria-hidden":!0,className:(0,s.clsx)(`inbox-clean-illustration--component`,b.inbox,e),children:[(0,o.jsx)(`div`,{className:b.inboxCheck,children:(0,o.jsx)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,o.jsx)(`path`,{d:`M3 8l3 3 7-7`})})}),(0,o.jsxs)(`div`,{className:b.inboxTray,children:[(0,o.jsx)(`div`,{className:b.inboxLip}),(0,o.jsxs)(`div`,{className:b.inboxRow,children:[(0,o.jsxs)(`div`,{className:b.inboxLines,children:[(0,o.jsx)(`div`,{className:b.lineNarrow}),(0,o.jsx)(`div`,{className:b.lineShort})]}),(0,o.jsx)(`div`,{className:b.inboxDot})]})]})]})}function w({className:e}){return(0,o.jsx)(`div`,{"aria-hidden":!0,className:(0,s.clsx)(`search-glass-illustration--component`,b.glass,e),children:(0,o.jsx)(i.SearchIcon,{"data-sized":!0})})}function T({className:e}){return(0,o.jsxs)(`div`,{"aria-hidden":!0,className:(0,s.clsx)(`users-circle-illustration--component`,b.users,e),children:[(0,o.jsx)(`div`,{className:b.userLeft}),(0,o.jsx)(`div`,{className:b.userCentre}),(0,o.jsx)(`div`,{className:b.userRight})]})}var E=100;function D(e,t=E){let n=Number.isFinite(t)&&t>0?t:E,r=Number.isFinite(e)?Math.min(Math.max(e,0),n):0;return{max:n,value:r,percent:r/n*100}}var O={root:`progress__root___UAJQP`,fill:`progress__fill___zwP00`,indeterminate:`progress__indeterminate___tACin`,toneSuccess:`progress__toneSuccess___d5mVc`,toneWarning:`progress__toneWarning___BhMDu`,toneDestructive:`progress__toneDestructive___zC91j`,toneInfo:`progress__toneInfo___-kq0j`},k=t.t(O.root,{variants:{tone:{primary:void 0,success:O.toneSuccess,warning:O.toneWarning,destructive:O.toneDestructive,info:O.toneInfo}},defaultVariants:{tone:`primary`}});function A({value:e,max:t=100,tone:n,label:r,className:i,...a}){let c=e===void 0,l=D(e??0,t);return(0,o.jsx)(`div`,{"data-slot":`progress`,role:`progressbar`,"aria-label":r,"aria-valuemin":c?void 0:0,"aria-valuemax":c?void 0:l.max,"aria-valuenow":c?void 0:l.value,className:(0,s.clsx)(`progress--component`,k({tone:n}),i),...a,children:c?(0,o.jsx)(`div`,{className:O.indeterminate}):(0,o.jsx)(`div`,{className:O.fill,style:{width:`${l.percent}%`}})})}var j={root:`progress-circle__root___qXPEI`,inner:`progress-circle__inner___3uHyP`,toneSuccess:`progress-circle__toneSuccess___TdCmG`,toneWarning:`progress-circle__toneWarning___NrBgt`,toneDestructive:`progress-circle__toneDestructive___59HIW`,toneInfo:`progress-circle__toneInfo___-Bo-Z`},M=t.t(j.root,{variants:{tone:{primary:void 0,success:j.toneSuccess,warning:j.toneWarning,destructive:j.toneDestructive,info:j.toneInfo}},defaultVariants:{tone:`primary`}});function N({value:e,max:t=100,tone:n,label:r,children:i,className:a,style:c,...l}){let u=D(e,t);return(0,o.jsx)(`div`,{"data-slot":`progress-circle`,role:`progressbar`,"aria-label":r,"aria-valuemin":0,"aria-valuemax":u.max,"aria-valuenow":u.value,className:(0,s.clsx)(`progress-circle--component`,M({tone:n}),a),style:{"--progress-sweep":`${u.percent}%`,...c},...l,children:(0,o.jsx)(`span`,{className:j.inner,children:i})})}var P={alertMeta:`feedback__alertMeta___fIN0s`,alertMetaItem:`feedback__alertMetaItem___j3sgm`,alertMetaLabel:`feedback__alertMetaLabel___27nw-`,alertMetaValue:`feedback__alertMetaValue___vWC_q`,state:`feedback__state___jyrdN`,stateIcon:`feedback__stateIcon___dPggL`,stateIconError:`feedback__stateIconError___1F4Tp`,stateSpinner:`feedback__stateSpinner___yVGSc`};function F({items:e,className:t,...n}){return e.length===0?null:(0,o.jsx)(`dl`,{className:(0,s.clsx)(`alert-metadata--component`,P.alertMeta,t),...n,children:e.map((e,t)=>(0,o.jsxs)(`div`,{className:P.alertMetaItem,children:[(0,o.jsx)(`dt`,{className:P.alertMetaLabel,children:e.label}),(0,o.jsx)(`dd`,{className:P.alertMetaValue,children:e.value})]},t))})}var I={label:`Loading…`},L={title:`Something went wrong`,description:`The data could not be loaded.`,retry:`Try again`};function R({label:e,strings:t,className:r,...a}){let c={...I,...t};return(0,o.jsxs)(`div`,{role:`status`,"aria-live":`polite`,className:(0,s.clsx)(`loading-state--component`,P.state,r),...a,children:[(0,o.jsx)(i.Loader2Icon,{"aria-hidden":!0,className:(0,s.clsx)(P.stateIcon,P.stateSpinner)}),(0,o.jsx)(n.o,{type:`secondary`,size:`sm`,children:e??c.label})]})}function z({title:e,description:t,onRetry:a,action:c,strings:l,className:u,...d}){let f={...L,...l};return(0,o.jsxs)(`div`,{role:`alert`,className:(0,s.clsx)(`error-state--component`,P.state,u),...d,children:[(0,o.jsx)(i.TriangleAlertIcon,{"aria-hidden":!0,className:(0,s.clsx)(P.stateIcon,P.stateIconError)}),(0,o.jsx)(n.o,{weight:`medium`,children:e??f.title}),(0,o.jsx)(n.o,{type:`secondary`,size:`sm`,children:t??f.description}),c??(a?(0,o.jsx)(r.c,{tone:`neutral`,buttonStyle:`outline`,onClick:a,children:f.retry}):null)]})}Object.defineProperty(exports,"_",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,"g",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"h",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return R}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return L}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return z}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,"v",{enumerable:!0,get:function(){return f}});
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import "./css/filters.css";
|
|
2
2
|
import { t as e } from "./cx--CBrhWH0.js";
|
|
3
|
-
import { o as t } from "./typography-
|
|
4
|
-
import { n } from "./feedback-
|
|
5
|
-
import { d as r } from "./ui-provider-
|
|
6
|
-
import { c as i, t as a } from "./buttons-
|
|
7
|
-
import { g as o, l as s, r as c, t as l, u } from "./dropdown-menu-
|
|
3
|
+
import { o as t } from "./typography-BkxEiwQ1.js";
|
|
4
|
+
import { n } from "./feedback-C8QtkdHc.js";
|
|
5
|
+
import { d as r } from "./ui-provider-gNDv-ZRY.js";
|
|
6
|
+
import { c as i, t as a } from "./buttons-riLAPVQV.js";
|
|
7
|
+
import { g as o, l as s, r as c, t as l, u } from "./dropdown-menu-BdgB__AC.js";
|
|
8
8
|
import { t as d } from "./use-latest-CF0678ae.js";
|
|
9
|
-
import { B as f } from "./primitives-
|
|
9
|
+
import { B as f } from "./primitives-BnXNg-Kr.js";
|
|
10
10
|
import { t as p } from "./badge-D34FkKLD.js";
|
|
11
|
-
import { i as m, r as h, t as g, u as _ } from "./item-
|
|
11
|
+
import { i as m, r as h, t as g, u as _ } from "./item-C7Wfarcx.js";
|
|
12
12
|
import { t as v } from "./use-debounce-yN5BxUpQ.js";
|
|
13
13
|
import { t as y } from "./use-mobile-DwY2vtnf.js";
|
|
14
14
|
import { t as b } from "./strings-Co9_qArR.js";
|
|
15
15
|
import { l as x } from "./text-inputs-BBpgIQEI.js";
|
|
16
|
-
import { n as S } from "./navigation-
|
|
17
|
-
import { s as C } from "./choice-inputs-
|
|
18
|
-
import { s as w } from "./value-inputs-
|
|
19
|
-
import { a as T, o as E } from "./date-pickers-
|
|
20
|
-
import { c as D, r as O, t as k } from "./popover-
|
|
21
|
-
import { a as A, c as j, l as M, o as ee, s as te, t as ne, u as re } from "./overlay-
|
|
22
|
-
import { a as ie, i as ae, o as N, r as oe, s as se, t as ce } from "./command-
|
|
23
|
-
import { n as le } from "./popover-menu-
|
|
24
|
-
import { t as ue } from "./sheet-
|
|
16
|
+
import { n as S } from "./navigation-COnv0B1H.js";
|
|
17
|
+
import { s as C } from "./choice-inputs-BjZYCdzk.js";
|
|
18
|
+
import { s as w } from "./value-inputs-DnQKmVqW.js";
|
|
19
|
+
import { a as T, o as E } from "./date-pickers-1_Ah7qWO.js";
|
|
20
|
+
import { c as D, r as O, t as k } from "./popover-CM1nxkAM.js";
|
|
21
|
+
import { a as A, c as j, l as M, o as ee, s as te, t as ne, u as re } from "./overlay-A5bE-8n5.js";
|
|
22
|
+
import { a as ie, i as ae, o as N, r as oe, s as se, t as ce } from "./command-Dv84KSRv.js";
|
|
23
|
+
import { n as le } from "./popover-menu-BCs5CLkw.js";
|
|
24
|
+
import { t as ue } from "./sheet-3sbsGFus.js";
|
|
25
25
|
import { t as de } from "./spinner-Bv-2R-7S.js";
|
|
26
26
|
import { t as P } from "./use-synced-state-DnZ4lW4g.js";
|
|
27
27
|
import { ArrowLeftIcon as fe, CalendarIcon as pe, ChevronDownIcon as me, ChevronRightIcon as he, ListFilterIcon as ge, SearchIcon as _e, XIcon as ve } from "lucide-react";
|
|
@@ -106,6 +106,7 @@ var G = {
|
|
|
106
106
|
className: G.errorBoundaryHead,
|
|
107
107
|
children: [/* @__PURE__ */ V(t, {
|
|
108
108
|
tag: "span",
|
|
109
|
+
type: "inherit",
|
|
109
110
|
weight: "semibold",
|
|
110
111
|
children: o.title
|
|
111
112
|
}), /* @__PURE__ */ V(i, {
|
|
@@ -118,9 +119,13 @@ var G = {
|
|
|
118
119
|
children: /* @__PURE__ */ V(ve, {})
|
|
119
120
|
})]
|
|
120
121
|
}),
|
|
121
|
-
/* @__PURE__ */ V(t, {
|
|
122
|
+
/* @__PURE__ */ V(t, {
|
|
123
|
+
type: "inherit",
|
|
124
|
+
children: o.describe(a)
|
|
125
|
+
}),
|
|
122
126
|
/* @__PURE__ */ V(f, {
|
|
123
127
|
size: "xs",
|
|
128
|
+
type: "inherit",
|
|
124
129
|
className: G.errorBoundaryDetail,
|
|
125
130
|
children: this.state.error.message
|
|
126
131
|
})
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./typography-Cf5zEv4y.cjs"),t=require("./feedback-IpUFKqgv.cjs"),n=require("./ui-provider-DI1VxMDT.cjs"),r=require("./buttons-Dwl42fIr.cjs"),i=require("./dropdown-menu-DCf_EqVG.cjs"),a=require("./use-latest-BT2X4Opg.cjs"),o=require("./primitives-kywiHMJE.cjs"),s=require("./badge-BRX7GXRH.cjs"),c=require("./item-BxPJsxh2.cjs"),l=require("./use-debounce-CKfx87CG.cjs"),u=require("./use-mobile-COk5j6jT.cjs"),d=require("./strings-BiKL6k6b.cjs"),f=require("./text-inputs-D4w3Z2-F.cjs"),p=require("./navigation-UfUJU2LC.cjs"),m=require("./choice-inputs-C8LMAkh8.cjs"),h=require("./value-inputs-B6ZURTUl.cjs"),g=require("./date-pickers-DejXe5oe.cjs"),_=require("./popover-rLMSEj5V.cjs"),v=require("./overlay-BtQz_AN3.cjs"),y=require("./command-Geb5eIzu.cjs"),b=require("./popover-menu-DcDdf9H2.cjs"),x=require("./sheet-B4_LNS7m.cjs"),S=require("./spinner-ChYwza6q.cjs"),C=require("./use-synced-state-CoPfjLRG.cjs");let w=require("lucide-react"),T=require("react"),E=require("react/jsx-runtime"),D=require("date-fns"),O=require("clsx");var k=(0,T.createContext)(void 0),A=(0,T.createContext)(0);function j(){return(0,T.useContext)(A)}function M(){let e=(0,T.useContext)(k);if(!e)throw Error(`useFilters must be used inside <FilterProvider>.`);return e}function N(e){let{isNavigating:t}=M(),[n,r]=(0,T.useState)(e),[i,a]=(0,T.useState)(t);return i!==t&&(a(t),t&&r(e)),[n,r]}var P={layout:`filters__layout___woKZr`,bar:`filters__bar___5h1VZ`,applying:`filters__applying___SIwlJ`,viewSelect:`filters__viewSelect___xxKAI`,tabs:`filters__tabs___Jq1Sh`,searchInput:`filters__searchInput___716Z8`,mobileSheet:`filters__mobileSheet___zRJI-`,mobileBody:`filters__mobileBody___JtwHf`,mobileFilters:`filters__mobileFilters___oPluw`,mobileFilterRow:`filters__mobileFilterRow___bsZJh`,mobileValue:`filters__mobileValue___bIymH`,mobileFilter:`filters__mobileFilter___Aokoo`,mobileEditor:`filters__mobileEditor___hLiAv`,mobileOperator:`filters__mobileOperator___g2TYV`,clear:`filters__clear___UG_dE`,loadingChip:`filters__loadingChip___JjnwV`,pill:`filters__pill___SyiSi`,pillAnchor:`filters__pillAnchor___Z-Q8z`,segment:`filters__segment___fDEuQ`,segmentClear:`filters__segmentClear___-XQRp`,segmentGlyph:`filters__segmentGlyph___bfzxg`,pillIcon:`filters__pillIcon___G5Edm`,pillDivider:`filters__pillDivider___zoTuZ`,pillValue:`filters__pillValue___4_puN`,operatorStatic:`filters__operatorStatic___a8FHc`,valueDisplay:`filters__valueDisplay___LkLmF`,valueGlyph:`filters__valueGlyph___npbBs`,valueIcons:`filters__valueIcons___624aN`,valueIcon:`filters__valueIcon___Cz2Rn`,valueIconCount:`filters__valueIconCount___tw6sZ`,editorPopover:`filters__editorPopover___oRlHx`,editor:`filters__editor___kbr4v`,editorHeader:`filters__editorHeader___fPckp`,editorBody:`filters__editorBody___SeZQD`,rangeBody:`filters__rangeBody___Ef6fU`,editorList:`filters__editorList___UwhjF`,editorFooter:`filters__editorFooter___HeVuc`,optionBody:`filters__optionBody___XPuQI`,errorBoundary:`filters__errorBoundary___mJQZT`,errorBoundaryHead:`filters__errorBoundaryHead___84GD1`,errorBoundaryDetail:`filters__errorBoundaryDetail___KL14X`},F=class extends T.Component{state={error:null};static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.props.onError(e,{phase:`render`,filterKey:this.props.filterKey,info:t.componentStack??void 0})}retry=()=>this.setState({error:null});render(){let{children:t,fallback:n,filterKey:i,labels:a,className:s}=this.props;return this.state.error?n||(0,E.jsxs)(`div`,{className:(0,O.clsx)(`filter-error-boundary--component`,P.errorBoundary,s),children:[(0,E.jsxs)(`div`,{className:P.errorBoundaryHead,children:[(0,E.jsx)(e.o,{tag:`span`,type:`inherit`,weight:`semibold`,children:a.title}),(0,E.jsx)(r.c,{type:`button`,tone:`destructive`,buttonStyle:`ghost`,iconOnly:!0,"aria-label":a.retry,onClick:this.retry,children:(0,E.jsx)(w.XIcon,{})})]}),(0,E.jsx)(e.o,{type:`inherit`,children:a.describe(i)}),(0,E.jsx)(o.B,{size:`xs`,type:`inherit`,className:P.errorBoundaryDetail,children:this.state.error.message})]}):t}};function I(e){let{strings:t,reportError:n}=M(),r=(0,T.useMemo)(()=>({title:t.error.title,describe:t.error.describe,retry:t.error.retry}),[t]);return(0,E.jsx)(F,{...e,labels:r,onError:n})}function L(){let e=new Map,t=new Map,n=new Map,r=e=>{let t=n.get(e);t!==void 0&&(clearTimeout(t),n.delete(e))};return{getOptions:t=>e.get(t),setOptions(t,i,a){if(r(t),e.set(t,i),!Number.isFinite(a)||a<=0)return;let o=setTimeout(()=>{e.delete(t),n.delete(t)},a);o.unref?.(),n.set(t,o)},deleteOptions(t){r(t),e.delete(t)},getLabel:(e,n)=>t.get(e)?.get(n),rememberLabels(e,n){let r=t.get(e);r||(r=new Map,t.set(e,r));let i=!1;for(let e of n)r.has(e.value)||(i=!0),r.set(e.value,e);return i},clear(){for(let e of[...n.keys()])r(e);e.clear(),t.clear()}}}var ee=(0,T.createContext)(null);function R(){return(0,T.useContext)(ee)}var z={SELECT:`select`,MULTI_SELECT:`multi_select`,ASYNC_SELECT:`async_select`,SEARCH:`search`,RANGE:`range`,DATE:`date`,TAGS:`tags`},B={EQUALS:`equals`,CONTAINS:`contains`,IN:`in`,NOT_IN:`not_in`,NOT:`not`,BEFORE:`before`,AFTER:`after`,BETWEEN:`between`,GT:`gt`,LT:`lt`,GTE:`gte`,LTE:`lte`,HAS:`has`,HAS_ANY:`has_any`,HAS_ALL:`has_all`};function te(e){return e}function V(e){return[{label:e.contains,value:B.CONTAINS},{label:e.equals,value:B.EQUALS},{label:e.notContains,value:B.NOT}]}function ne(e){return[{label:e.is,value:B.EQUALS},{label:e.isNot,value:B.NOT}]}function re(e){return[{label:e.equals,value:B.EQUALS},{label:e.greaterThan,value:B.GT},{label:e.lessThan,value:B.LT},{label:e.between,value:B.BETWEEN}]}function ie(e){return[{label:e.before,value:B.BEFORE},{label:e.after,value:B.AFTER},{label:e.between,value:B.BETWEEN}]}function ae(e){return[{label:e.has,value:B.HAS},{label:e.hasAny,value:B.HAS_ANY},{label:e.hasAll,value:B.HAS_ALL}]}function H(e,t){switch(e){case z.SEARCH:return V(t);case z.TAGS:return ae(t);case z.SELECT:case z.MULTI_SELECT:case z.ASYNC_SELECT:return ne(t);case z.RANGE:return re(t);case z.DATE:return ie(t);default:return V(t)}}function U(e){switch(e){case z.SEARCH:return B.CONTAINS;case z.TAGS:return B.HAS;case z.DATE:return B.BEFORE;default:return B.EQUALS}}var W={loading:`Loading`,loadingOptions:e=>`Loading ${e} options…`,applying:`Updating results…`,savedViews:`Saved views`,customView:`Custom view`,mobileFilters:`Filters`,filterSummary:e=>e===0?`No filters applied`:`${e} ${e===1?`filter`:`filters`} applied`,done:`Done`,clearFilter:e=>`Clear: ${e}`,addFilter:`Add filter`,clear:`Clear`,edit:`Edit`,confirm:`Apply`,clearFilters:`Clear filters`,selectDate:`Select a date`,searchPlaceholder:e=>`Search ${e}…`,noOptionsFound:`No options found.`,selected:(e,t)=>`${e} ${t} selected`,nothingSelected:`Any`,enterTags:`Add a tag and press Enter`,searchFilters:`Search filters…`,noFiltersAvailable:`No filters available.`,availableFilters:`Add a filter`,activeFilters:`Applied`,backToFilters:`Back to filters`,options:e=>`${e} ${e===1?`option`:`options`}`,operator:`Comparison`,operators:{contains:`contains`,equals:`is`,notContains:`does not contain`,is:`is`,isNot:`is not`,greaterThan:`greater than`,lessThan:`less than`,before:`before`,after:`after`,between:`between`,has:`has`,hasAny:`has any of`,hasAll:`has all of`},min:`Min`,max:`Max`,fetchError:`Could not load options.`,retryFetch:`Try again`,minQueryHint:e=>`Type at least ${e} character${e===1?``:`s`}…`,searching:`Searching…`,error:{title:`This filter could not be shown`,describe:e=>e?`Something went wrong in the “${e}” filter.`:`Something went wrong in this filter.`,retry:`Try again`},validation:{required:`This filter needs a value.`,minValue:e=>`Must be at least ${e}.`,maxValue:e=>`Must be at most ${e}.`,invalidFormat:`That is not a valid value.`}};function G(e,t){return e.options?.find(e=>e.value===t)}function oe(e,t,n){let r=e.validation;if(e.type===z.DATE&&Array.isArray(t)&&t.every(e=>typeof e==`string`)||!r)return!0;if(r.required&&(!t||Array.isArray(t)&&t.length===0))return n.validation.required;if(typeof t==`number`){if(r.min!==void 0&&t<r.min)return n.validation.minValue(r.min);if(r.max!==void 0&&t>r.max)return n.validation.maxValue(r.max)}if(r.pattern&&typeof t==`string`&&!r.pattern.test(t))return n.validation.invalidFormat;if(r.custom){let e=r.custom(t);if(typeof e==`string`||!e)return e}return!0}function se(e,t,n,r){if(t.length===0)return n.nothingSelected;if(e.format)return e.format(t);let i=t.map(t=>G(e,t)?.label??r?.(t)??t);return i.length===1?i[0]:i.length===2?i.join(`, `):n.selected(t.length,(e.pluralLabel??e.label).toLowerCase())}function ce({children:e,filters:t,activeFilters:n,onFilterChange:r,navigating:i=!1,strings:o,onError:s,cache:c}){let[l,u]=(0,T.useState)(0),f=(0,T.useMemo)(()=>d.t(W,o),[o]),p=(0,T.useRef)(t),m=(0,T.useRef)(r),h=a.t(s);(0,T.useEffect)(()=>{p.current=t},[t]),(0,T.useEffect)(()=>{m.current=r},[r]);let[g]=(0,T.useState)(L),_=c??g;(0,T.useEffect)(()=>{if(c===void 0)return()=>g.clear()},[c,g]);let[,v]=(0,T.useState)(0),y=(0,T.useCallback)((e,t)=>{h.current?.(e,t)},[h]),b=(0,T.useCallback)(e=>m.current([...n,e]),[n]),x=(0,T.useCallback)(e=>m.current(n.filter(t=>t.id!==e&&t.key!==e)),[n]),S=(0,T.useCallback)((e,t)=>m.current(n.map(n=>n.id===e||n.key===e?{...n,...t}:n)),[n]),C=(0,T.useCallback)(()=>{u(e=>e+1),m.current([])},[]),w=(0,T.useCallback)(e=>{u(e=>e+1),m.current(e)},[]),D=(0,T.useCallback)(e=>p.current.find(t=>t.key===e),[]),O=(0,T.useCallback)(e=>n.find(t=>t.key===e)?.value??[],[n]),j=(0,T.useCallback)((e,t)=>{let r=n.find(t=>t.key===e);if(t.length===0){r&&x(e);return}if(r){S(e,{value:t});return}let i=p.current.find(t=>t.key===e);b({id:e,key:e,value:t,operator:i?.operator??i?.operators?.[0]?.value??(i?U(i.type):`equals`)})},[n,b,x,S]),M=(0,T.useCallback)(e=>n.some(t=>t.key===e&&t.value.length>0),[n]),N=(0,T.useCallback)(e=>{let t=n.find(t=>t.key===e);if(t)return t.operator;let r=p.current.find(t=>t.key===e);return r?r.operator??r.operators?.[0]?.value??U(r.type):`equals`},[n]),P=(0,T.useCallback)((e,t)=>{n.some(t=>t.key===e)&&S(e,{operator:t})},[n,S]),F=(0,T.useCallback)((e,t)=>{let n=p.current.find(t=>t.key===e);if(!n)return!1;try{return oe(n,t,f)}catch(t){return y(t,{phase:`validate`,filterKey:e}),f.validation.invalidFormat}},[f,y]),I=(0,T.useCallback)(e=>p.current.filter(t=>t.dependencies?.some(t=>t.key===e)),[]),R=(0,T.useCallback)((e,t)=>{_.rememberLabels(e,t)&&v(e=>e+1)},[_]),z=(0,T.useCallback)((e,t)=>_.getLabel(e,t)?.label,[_]),B=(0,T.useMemo)(()=>({activeFilters:n,filters:t,addFilter:b,removeFilter:x,updateFilter:S,clearFilters:C,replaceFilters:w,getFilterByKey:D,getFilterValue:O,setFilterValue:j,isFilterActive:M,getFilterOperator:N,setFilterOperator:P,validateFilter:F,getDependentFilters:I,isNavigating:i,strings:f,cacheAsyncOptions:R,getAsyncOptionLabel:z,reportError:y}),[n,b,R,C,f,t,z,I,D,N,O,M,i,x,w,y,P,j,S,F]);return(0,E.jsx)(ee.Provider,{value:_,children:(0,E.jsx)(A.Provider,{value:l,children:(0,E.jsx)(k.Provider,{value:B,children:e})})})}function le(e,t,n,r={}){let i=e.asyncConfig,o=a.t(r.onError),s=R(),[c]=(0,T.useState)(L),u=s??c,d=(l.t(t,i?.debounceMs??e.delay??300)??``).trim(),f=i?.limit??10,p=i?.minQueryLength??0,m=i?.preload??!0,h=i?.staleTime??6e4,g=d.length>0&&d.length<p,_=n&&!!i&&!g&&d.length>=p&&(d.length>0||m),v=`${e.key}::${d}`,[y,b]=(0,T.useState)(0),x=u.getOptions(v),[S,C]=(0,T.useState)(x??[]),[w,E]=(0,T.useState)(!1),[D,O]=(0,T.useState)(!1),k=x??S,A=w&&_&&!!i&&!x,j=D&&!x,M=(0,T.useRef)(0);(0,T.useEffect)(()=>{if(!_||!i||x)return;let t=++M.current,n=new AbortController;return E(!0),O(!1),i.fetcher({query:d,limit:f,signal:n.signal}).then(e=>{if(t!==M.current)return;let n=e.map(e=>i.mapToOption(e));u.setOptions(v,n,h),C(n)}).catch(n=>{t===M.current&&(n instanceof Error&&n.name===`AbortError`||(O(!0),C([]),o.current?.(n,{phase:`fetch-options`,filterKey:e.key})))}).finally(()=>{t===M.current&&E(!1)}),()=>n.abort()},[y,u,x,v,i,e.key,f,d,_,h,o]);let N=(0,T.useCallback)(()=>{u.deleteOptions(v),b(e=>e+1)},[u,v]);return{options:k,isLoading:A&&k.length===0,isFetching:A,isError:j,refetch:N,isBelowMinQuery:g,minQueryLength:p}}var ue=`yyyy-MM-dd`;function K({filter:t,showBack:n,onBack:i}){let{strings:a}=M();return(0,E.jsxs)(`div`,{className:P.editorHeader,children:[n&&(0,E.jsx)(r.c,{type:`button`,tone:`neutral`,buttonStyle:`ghost`,iconOnly:!0,onClick:i,"aria-label":a.backToFilters,children:(0,E.jsx)(w.ArrowLeftIcon,{})}),(0,E.jsx)(e.o,{tag:`span`,weight:`semibold`,truncate:!0,children:t.label})]})}function q({count:t,filter:n,onApply:i}){let{strings:a}=M();return(0,E.jsxs)(`div`,{className:P.editorFooter,children:[(0,E.jsx)(e.o,{size:`xs`,type:`secondary`,children:a.selected(t,((t===1?n.label:n.pluralLabel??n.label)??``).toLowerCase())}),(0,E.jsx)(r.c,{type:`button`,onClick:i,children:a.confirm})]})}function de(e,t){return e.includes(t)?e.filter(e=>e!==t):[...e,t]}function J(e,t){return JSON.stringify([...e].sort())===JSON.stringify([...t].sort())}function fe({filter:e,value:t,onValueChange:n,onBack:r,onClose:i,triggerSource:a=`chip`,hook:o,options:s,multiple:c,source:l}){let{strings:u,reportError:d}=M(),[f,p]=C.t(t),m=!J(f,t),h=t=>{try{n(t),i()}catch(t){d(t,{phase:`apply`,filterKey:e.key})}},g=!l.onSearchChange;return(0,E.jsxs)(`div`,{className:(0,O.clsx)(o,P.editor),children:[(0,E.jsx)(K,{filter:e,showBack:a===`toolbar`,onBack:r}),(0,E.jsx)(b.n,{...l,label:e.label,items:s.map(e=>({value:e.value,label:e.label,description:e.description||void 0,icon:e.icon,disabled:e.disabled,selected:f.includes(e.value),searchValue:g?e.label:void 0})),onSelect:({value:t})=>{if(!c){p([t]),e.closeOnSelect&&h([t]);return}p(e=>de(e,t))},strings:{searchPlaceholder:u.searchPlaceholder(e.label.toLowerCase()),empty:u.noOptionsFound,loading:u.searching,error:u.fetchError,retry:u.retryFetch,formatTypeToSearch:u.minQueryHint}}),m&&(0,E.jsx)(q,{count:f.length,filter:e,onApply:()=>h(f)})]})}function pe(e){let t=e.filter.options??[];return(0,E.jsx)(fe,{...e,hook:`select-filter-editor--component`,options:t,multiple:e.filter.multiple===!0||e.filter.type===z.MULTI_SELECT,source:{search:t.length>5}})}function me(e){let{filter:t}=e,{cacheAsyncOptions:n,reportError:r}=M(),[i,a]=(0,T.useState)(``),o=le(t,i,!0,{onError:r});return(0,T.useEffect)(()=>{o.options.length>0&&n(t.key,o.options)},[o.options,n,t.key]),(0,E.jsx)(fe,{...e,hook:`async-filter-editor--component`,options:o.options,multiple:t.multiple===!0,source:{searchValue:i,onSearchChange:a,minSearchLength:o.minQueryLength,loading:o.isLoading,error:o.isError,onRetry:o.refetch}})}function he({filter:e,value:t,onValueChange:n,onBack:r,triggerSource:i=`chip`}){let a=u.t(),{isNavigating:o}=M(),s=e.dateFormat?.param??ue,c=e=>{if(!e)return;let t=(0,D.parse)(e,s,new Date);return(0,D.isValid)(t)?t:void 0},l=e=>e&&(0,D.isValid)(e)?(0,D.format)(e,s):void 0,d=e.operator===B.BETWEEN;return(0,E.jsxs)(`div`,{className:(0,O.clsx)(`date-filter-editor--component`,P.editor),children:[(0,E.jsx)(K,{filter:e,showBack:i===`toolbar`,onBack:r}),(0,E.jsx)(`div`,{className:P.editorBody,children:d?(0,E.jsx)(g.a,{disabled:o,numberOfMonths:a?1:2,value:{from:c(t[0]),to:c(t[1])},onValueChange:e=>{n([l(e?.from),l(e?.to)].filter(e=>!!e))}}):(0,E.jsx)(g.o,{disabled:o,value:c(t[0]),onValueChange:e=>{let t=l(e);n(t?[t]:[])}})})]})}function ge({filter:e,value:t,onValueChange:n,onBack:r,onClose:i,triggerSource:a=`chip`}){let{strings:o}=M(),[s,c]=C.t(t),l=!J(s,t);return(0,E.jsxs)(`div`,{className:(0,O.clsx)(`tags-filter-editor--component`,P.editor),children:[(0,E.jsx)(K,{filter:e,showBack:a===`toolbar`,onBack:r}),(0,E.jsx)(`div`,{className:P.editorBody,children:(0,E.jsx)(h.s,{value:s,onValueChange:c,placeholder:e.placeholder??o.enterTags,maxTags:e.maxSelected})}),l&&(0,E.jsx)(q,{count:s.length,filter:e,onApply:()=>{n(s),i()}})]})}function _e({filter:e,value:t,onValueChange:n,onBack:r,onClose:i,triggerSource:a=`chip`}){let{strings:o}=M(),[s,c]=C.t(t),[l,u]=[s[0]??``,s[1]??``],d=e=>c([e,s[1]??``]),p=e=>c([s[0]??``,e]),m=e.operator===B.BETWEEN,h=(0,T.useMemo)(()=>(m?[l,u]:[l]).filter(e=>e.trim().length>0),[m,u,l]),g=!J(h,t);return(0,E.jsxs)(`div`,{className:P.editor,children:[(0,E.jsx)(K,{filter:e,showBack:a===`toolbar`,onBack:r}),(0,E.jsxs)(`div`,{className:(0,O.clsx)(`range-filter-editor--component`,P.editorBody,P.rangeBody),children:[(0,E.jsx)(f.l,{type:`number`,value:l,onChange:e=>d(e.target.value),placeholder:o.min,"aria-label":o.min}),m&&(0,E.jsx)(f.l,{type:`number`,value:u,onChange:e=>p(e.target.value),placeholder:o.max,"aria-label":o.max})]}),g&&(0,E.jsx)(q,{count:h.length,filter:e,onApply:()=>{n(h),i()}})]})}function Y(e){let{getFilterOperator:t}=M(),n={...e,filter:{...e.filter,operator:t(e.filter.key)}};switch(e.filter.type){case z.DATE:return(0,E.jsx)(he,{...n});case z.TAGS:return(0,E.jsx)(ge,{...n});case z.RANGE:return(0,E.jsx)(_e,{...n});case z.ASYNC_SELECT:return(0,E.jsx)(me,{...n});default:return(0,E.jsx)(pe,{...n})}}function X({operator:t,operators:n,onOperatorChange:r}){let{strings:a,isNavigating:o}=M(),[s,c]=N(!1),l=n.find(e=>e.value===t)??n[0];return n.length<=1?(0,E.jsx)(e.o,{tag:`span`,type:`secondary`,className:P.operatorStatic,children:l?.label}):(0,E.jsxs)(i.t,{open:s&&!o,onOpenChange:c,children:[(0,E.jsx)(i.g,{disabled:o,render:t=>(0,E.jsxs)(`button`,{...t,type:`button`,"aria-label":a.operator,className:P.segment,onClick:e=>{e.stopPropagation(),t.onClick?.(e)},children:[(0,E.jsx)(e.o,{tag:`span`,type:`secondary`,children:l?.label}),(0,E.jsx)(w.ChevronDownIcon,{"aria-hidden":!0,className:P.segmentGlyph})]})}),(0,E.jsx)(i.r,{align:`start`,children:(0,E.jsx)(i.l,{value:t,onValueChange:e=>{r(e),c(!1)},children:n.map(e=>(0,E.jsx)(i.u,{value:e.value,children:e.label},e.value))})})]})}function Z({filter:t,value:n,className:r}){let{strings:i,getAsyncOptionLabel:a}=M(),o=se(t,n,i,e=>a(t.key,e));if(n.length===0)return(0,E.jsx)(e.o,{tag:`span`,type:`secondary`,truncate:!0,className:r,children:i.nothingSelected});let s=n.slice(0,2).map(e=>G(t,e)?.icon).filter(Boolean);return(0,E.jsxs)(`span`,{className:(0,O.clsx)(`filter-value-display--component`,P.valueDisplay,r),children:[t.type===z.DATE&&(0,E.jsx)(w.CalendarIcon,{"aria-hidden":!0,className:P.valueGlyph}),s.length>0&&(0,E.jsxs)(`span`,{className:P.valueIcons,children:[s.map((e,t)=>(0,E.jsx)(`span`,{className:P.valueIcon,children:e},t)),n.length>2&&(0,E.jsx)(`span`,{className:P.valueIconCount,children:(0,E.jsxs)(e.o,{tag:`span`,size:`xs`,weight:`medium`,numeric:!0,children:[`+`,n.length-2]})})]}),(0,E.jsx)(e.o,{tag:`span`,weight:`medium`,truncate:!0,children:o})]})}function ve({filter:t,value:n,active:r,operator:i,operators:a,onOperatorChange:o,onValueChange:s,onClear:c,className:l}){let{strings:u,isNavigating:d}=M(),[f,p]=N(!1),m=(0,T.useRef)(!1);return(0,E.jsxs)(_.t,{open:f&&!d,onOpenChange:e=>{e&&m.current||p(e)},children:[(0,E.jsxs)(`div`,{role:`group`,"aria-label":t.label,"data-active":r||void 0,className:(0,O.clsx)(`filter-pill--component`,P.pill,t.displayConfig?.className,l),children:[(0,E.jsx)(_.c,{render:(0,E.jsx)(`span`,{}),nativeButton:!1,disabled:d,tabIndex:-1,"aria-hidden":`true`,className:P.pillAnchor}),(0,E.jsxs)(`button`,{type:`button`,disabled:d,className:P.segment,onClick:()=>{m.current||p(!0)},children:[!!t.icon&&(0,E.jsx)(`span`,{className:P.pillIcon,children:t.icon}),(0,E.jsx)(e.o,{tag:`span`,weight:`semibold`,children:t.label})]}),(0,E.jsx)(`span`,{"aria-hidden":!0,className:P.pillDivider}),(0,E.jsx)(X,{operator:i,operators:a,onOperatorChange:e=>{m.current=!0,o(e),p(!1),window.setTimeout(()=>{m.current=!1},100)}}),(0,E.jsx)(`span`,{"aria-hidden":!0,className:P.pillDivider}),(0,E.jsx)(`button`,{type:`button`,disabled:d,className:(0,O.clsx)(P.segment,P.pillValue),"aria-label":`${u.edit}: ${t.label}`,onClick:()=>{m.current||p(!0)},children:(0,E.jsx)(Z,{filter:t,value:n})}),r&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`span`,{"aria-hidden":!0,className:P.pillDivider}),(0,E.jsx)(`button`,{type:`button`,disabled:d,className:(0,O.clsx)(P.segment,P.segmentClear),"aria-label":`${u.clear}: ${t.label}`,onClick:e=>{e.stopPropagation(),p(!1),c()},children:(0,E.jsx)(w.XIcon,{"aria-hidden":!0,className:P.segmentGlyph})})]})]}),(0,E.jsx)(_.r,{align:`start`,inset:`flush`,className:P.editorPopover,children:(0,E.jsx)(Y,{filter:t,value:n,onValueChange:s,onBack:()=>p(!1),onClose:()=>p(!1),triggerSource:`chip`})})]})}function ye({filters:i,loadingFilters:a,showClearFilters:o=!0}){let[l,u]=(0,T.useState)(!1),[d,f]=(0,T.useState)(null),p=(0,T.useId)(),m=(0,T.useId)(),h=(0,T.useRef)(null),g=(0,T.useRef)(null),{activeFilters:_,strings:y,isNavigating:b,getFilterValue:S,setFilterValue:C,getFilterOperator:D,setFilterOperator:O,clearFilters:k}=M(),A=i.find(e=>e.key===d),j=_.filter(e=>e.value.length>0).length,N=y.mobileFilters??W.mobileFilters,F=(y.filterSummary??W.filterSummary)(j),I=()=>f(null),L=e=>{u(e),e||I()};return(0,T.useLayoutEffect)(()=>{if(!l||b)return;let e=h.current;if(d){g.current=d;let t=e?.querySelector(`[data-filter-editor]`);(t?.querySelector(`input`)??t?.querySelector(`[cmdk-root]`)??t?.querySelector(`button`))?.focus()}else g.current&&[...e?.querySelectorAll(`[data-filter-key]`)??[]].find(e=>e.dataset.filterKey===g.current)?.focus()},[l,d,b]),(0,E.jsxs)(v.t,{open:l,onOpenChange:L,children:[(0,E.jsx)(v.a,{render:(0,E.jsxs)(r.c,{tone:`neutral`,buttonStyle:`outline`,disabled:b,className:`filter-sheet--trigger`,children:[(0,E.jsx)(w.ListFilterIcon,{}),N,j>0&&(0,E.jsx)(s.t,{tone:`neutral`,children:j})]})}),(0,E.jsx)(x.t,{side:`block-end`,size:`lg`,inset:`5vw`,"aria-labelledby":p,"aria-describedby":m,className:`filter-sheet--component ${P.mobileSheet}`,children:(0,E.jsxs)(n.d,{children:[(0,E.jsxs)(v.u,{children:[(0,E.jsx)(v.s,{id:p,children:N}),(0,E.jsx)(v.o,{id:m,children:F})]}),(0,E.jsxs)(v.l,{className:P.mobileBody,children:[b&&(0,E.jsx)(t.n,{label:y.applying,className:P.applying}),(0,E.jsx)(`div`,{ref:h,inert:b||void 0,"aria-busy":b||void 0,children:A?(0,E.jsxs)(`div`,{"data-filter-editor":!0,className:P.mobileEditor,children:[(0,E.jsxs)(`div`,{className:P.mobileOperator,children:[(0,E.jsx)(e.o,{size:`xs`,type:`secondary`,children:y.operator}),(0,E.jsx)(X,{operator:D(A.key),operators:A.operators?.length?A.operators:H(A.type,y.operators),onOperatorChange:e=>O(A.key,e)})]}),(0,E.jsx)(Y,{filter:A,value:S(A.key),onValueChange:e=>C(A.key,e),onBack:I,onClose:I,triggerSource:`toolbar`},A.key)]}):(0,E.jsx)(`div`,{className:P.mobileFilters,children:i.map(t=>(0,E.jsxs)(`div`,{className:P.mobileFilterRow,children:[(0,E.jsxs)(c.t,{"data-filter-key":t.key,className:P.mobileFilter,render:(0,E.jsx)(`button`,{type:`button`,disabled:b||a?.[t.key],onClick:()=>f(t.key)}),children:[(0,E.jsxs)(c.r,{children:[(0,E.jsx)(c.u,{children:t.label}),(0,E.jsxs)(c.i,{className:P.mobileValue,children:[S(t.key).length>0&&(0,E.jsx)(e.o,{tag:`span`,size:`inherit`,type:`inherit`,children:(t.operators?.length?t.operators:H(t.type,y.operators)).find(e=>e.value===D(t.key))?.label}),(0,E.jsx)(Z,{filter:t,value:S(t.key)})]})]}),(0,E.jsx)(w.ChevronRightIcon,{"aria-hidden":!0})]}),S(t.key).length>0&&(0,E.jsx)(r.c,{iconOnly:!0,tone:`neutral`,buttonStyle:`ghost`,disabled:b,"aria-label":(y.clearFilter??W.clearFilter)(t.label),onClick:e=>{e.currentTarget.parentElement?.querySelector(`[data-filter-key]`)?.focus(),C(t.key,[])},children:(0,E.jsx)(w.XIcon,{})})]},t.key))})})]}),!A&&(0,E.jsxs)(v.c,{children:[o&&_.length>0&&(0,E.jsx)(r.c,{tone:`neutral`,buttonStyle:`ghost`,disabled:b,onClick:k,children:y.clearFilters}),(0,E.jsx)(r.c,{onClick:()=>L(!1),children:y.done??W.done})]})]})})]})}function be(e,t){return e.presets.filter(e=>e.value.length>0).map(e=>({id:e.key,key:e.key,operator:e.operator??t(e.key),value:e.value}))}function xe({tabs:e,display:t=`tabs`,label:n,className:r}){let{activeFilters:i,filters:a,replaceFilters:o,isNavigating:c,strings:l}=M(),u=e=>{let t=a.find(t=>t.key===e);return t?t.operator??t.operators?.[0]?.value??U(t.type):`equals`},d=e.find(e=>{let t=be(e,u);return t.length===i.length&&t.every(e=>i.some(t=>t.key===e.key&&t.operator===e.operator&&JSON.stringify(e.operator===`between`?t.value:[...t.value].sort())===JSON.stringify(e.operator===`between`?e.value:[...e.value].sort())))}),f=t=>{if(c)return;let n=e.find(e=>e.id===t);n&&o(be(n,u))};return t===`select`?(0,E.jsx)(m.s,{"aria-label":n??l.savedViews,value:d?.id??null,placeholder:l.customView,options:e.map(e=>({value:e.id,label:e.label})),onValueChange:f,disabled:c,className:(0,O.clsx)(`filter-tabs--component`,P.viewSelect,r)}):(0,E.jsx)(p.n,{value:d?.id,onValueChange:f,strings:{label:n??l.savedViews},items:e.map(e=>({id:e.id,label:e.label,disabled:c,badge:e.count===void 0?void 0:(0,E.jsx)(s.t,{tone:`neutral`,children:e.count})})),className:(0,O.clsx)(`filter-tabs--component`,r??P.tabs)})}function Se({availableFilters:t,labelVisibility:n=`hidden`,className:i}){let{strings:a,getFilterValue:o,setFilterValue:s,isNavigating:c}=M(),[l,u]=N(!1),[d,f]=N(null),p=n===`hidden`?(0,E.jsx)(r.t,{type:`button`,tone:`neutral`,buttonStyle:`outline`,iconOnly:!0,tooltip:a.addFilter,side:`bottom`,className:i,children:(0,E.jsx)(w.ListFilterIcon,{})}):(0,E.jsxs)(r.c,{type:`button`,tone:`neutral`,buttonStyle:`outline`,className:i,children:[(0,E.jsx)(w.ListFilterIcon,{}),a.addFilter]});return(0,E.jsxs)(_.t,{open:l&&!c,onOpenChange:e=>{u(e),e||f(null)},children:[(0,E.jsx)(_.c,{disabled:c,render:p}),(0,E.jsx)(_.r,{align:`start`,inset:`flush`,className:P.editorPopover,children:d?(0,E.jsx)(Y,{filter:d,value:o(d.key),onValueChange:e=>s(d.key,e),onBack:()=>f(null),onClose:()=>u(!1),triggerSource:`toolbar`}):(0,E.jsxs)(y.t,{children:[(0,E.jsx)(y.a,{placeholder:a.searchFilters}),(0,E.jsxs)(y.s,{className:P.editorList,children:[(0,E.jsx)(y.r,{children:a.noFiltersAvailable}),(0,E.jsx)(y.i,{heading:a.availableFilters,children:t.map(t=>(0,E.jsxs)(y.o,{value:t.label,onSelect:()=>f(t),children:[t.icon,(0,E.jsxs)(`span`,{className:P.optionBody,children:[(0,E.jsx)(e.o,{tag:`span`,children:t.label}),(0,E.jsx)(e.o,{tag:`span`,size:`xs`,type:`secondary`,children:t.type===z.DATE?a.selectDate:t.options?a.options(t.options.length):t.description??``})]})]},t.key))})]})]})})]})}function Ce({filter:e,className:t}){let{getFilterValue:n,setFilterValue:r,isNavigating:i,strings:a}=M(),o=n(e.key)[0]??``,[s,c]=C.t(o),u=j(),[d,p]=(0,T.useState)(u);u!==d&&(p(u),c(o));let m=l.t(s,e.delay??300);return(0,T.useEffect)(()=>{if(i||m!==s)return;let t=m.trim()?m:``;t!==o&&r(e.key,t?[t]:[])},[o,m,s,e.key,i,r]),(0,E.jsx)(f.l,{value:s,disabled:i,onChange:e=>c(e.target.value),placeholder:e.placeholder??a.searchPlaceholder(e.label.toLowerCase()),"aria-label":e.label,startIcon:w.SearchIcon,clearable:!0,onClear:()=>c(``),className:(0,O.clsx)(`search-filter--component`,P.searchInput,t)})}function we({filters:e,className:t}){return e.length===0?null:(0,E.jsx)(E.Fragment,{children:e.map(e=>(0,E.jsx)(Ce,{filter:e,className:(0,O.clsx)(`search-filters--component`,t)},e.key))})}function Te({dynamicFilterOptions:e}={}){let{filters:t,isFilterActive:n}=M(),r=(0,T.useMemo)(()=>e?t.map(t=>{let n=e[t.key];return Array.isArray(n)?{...t,options:n}:t}):t,[e,t]);return(0,T.useMemo)(()=>{let e=r.filter(e=>e.type===z.SEARCH),t=[...r.filter(e=>e.type!==z.SEARCH&&!e.displayConfig?.hidden&&e.displayConfig?.display!==`hidden`)].sort((e,t)=>(e.displayConfig?.priority??0)-(t.displayConfig?.priority??0)),i=t.filter(e=>n(e.key)),a=t.filter(e=>!n(e.key)&&e.displayConfig?.display===`always`),o=t.filter(e=>!n(e.key)&&e.displayConfig?.display!==`always`);return{processedFilters:r,searchFilters:e,alwaysVisibleFilters:a,activeFilters:i,popoverFilters:o,activeFilterKeys:i.map(e=>e.key),hasActive:i.length>0||e.some(e=>n(e.key))}},[n,r])}function Ee({className:n,dynamicFilterOptions:i,loadingFilters:a,variant:o=`default`,showClearFilters:s=!0,tabs:c,mobilePresentation:l=`sheet`}){let d=u.t()&&l===`sheet`,{getFilterValue:f,setFilterValue:p,isFilterActive:m,clearFilters:h,getFilterOperator:g,setFilterOperator:_,isNavigating:v,strings:y}=M(),b=Te({dynamicFilterOptions:i}),x=[...b.activeFilters,...b.alwaysVisibleFilters,...b.popoverFilters].sort((e,t)=>(e.displayConfig?.priority??0)-(t.displayConfig?.priority??0)||b.processedFilters.indexOf(e)-b.processedFilters.indexOf(t)),C=e=>e.operators?.length?e.operators:H(e.type,y.operators),w=e=>(0,E.jsx)(ve,{filter:e,value:f(e.key),active:m(e.key),operator:g(e.key),operators:C(e),onOperatorChange:t=>_(e.key,t),onValueChange:t=>p(e.key,t),onClear:()=>p(e.key,[])},e.key);return(0,E.jsxs)(`div`,{"data-slot":`filter-layout`,"data-variant":o,"aria-busy":v||void 0,className:(0,O.clsx)(`filter-layout--component`,P.layout,n),children:[!!c?.length&&(0,E.jsx)(xe,{tabs:c,display:d?`select`:`tabs`}),(0,E.jsxs)(`div`,{className:P.bar,"data-mobile":d||void 0,"data-busy":v||void 0,children:[(0,E.jsx)(we,{filters:b.searchFilters}),d?x.length>0&&(0,E.jsx)(ye,{filters:x,loadingFilters:a,showClearFilters:s}):(0,E.jsxs)(E.Fragment,{children:[Object.entries(a??{}).filter(([,e])=>e).map(([t])=>{let n=b.processedFilters.find(e=>e.key===t)?.label??t;return(0,E.jsxs)(`span`,{className:P.loadingChip,children:[(0,E.jsx)(S.t,{}),(0,E.jsx)(e.o,{tag:`span`,type:`secondary`,children:y.loadingOptions(n)})]},`loading-${t}`)}),b.activeFilters.map(w),b.alwaysVisibleFilters.map(w),b.popoverFilters.length>0&&(0,E.jsx)(Se,{availableFilters:b.popoverFilters}),s&&b.hasActive&&(0,E.jsx)(r.c,{type:`button`,tone:`neutral`,buttonStyle:`ghost`,disabled:v,onClick:h,className:P.clear,children:y.clearFilters})]})]}),v&&(0,E.jsx)(t.n,{label:y.applying,className:P.applying})]})}var De=`__op`,Oe=[`page`],ke=new Set(Object.values(B));function Q(e){let t={};if(!e)return t;if(e instanceof URLSearchParams)return e.forEach((e,n)=>{t[n]=[...t[n]??[],e]}),t;for(let[n,r]of Object.entries(e)){let e=(Array.isArray(r)?r:[r]).filter(e=>e!=null&&String(e).length>0).map(String);e.length>0&&(t[n]=e)}return t}function $(e){let t={};for(let[n,r]of Object.entries(e))r.length!==0&&(t[n]=r.length===1?r[0]:r);return t}function Ae(e,t,n){let r=e[t]??[];return n===`comma`?r.flatMap(e=>e.split(`,`)):r}function je(e){return e.operator??e.operators?.[0]?.value??U(e.type)}function Me(e){return e.type===z.MULTI_SELECT||e.type===z.TAGS||e.multiple===!0}function Ne(e,t,n={}){let r=n.operatorSuffix??De,i=n.arrayFormat??`repeat`,a=Q(t);return e.flatMap(e=>{let t=Ae(a,e.key,i).map(e=>e.trim()).filter(e=>e.length>0);if(t.length===0)return[];let[n]=a[`${e.key}${r}`]??[],o=n&&ke.has(n)?n:je(e);return[{id:e.key,key:e.key,operator:o,value:Me(e)?t:[t[0]]}]})}function Pe(e,t,n,r={}){let i=r.operatorSuffix??De,a=r.arrayFormat??`repeat`,o=r.preserveUnrelated??!0,s=r.includeOperators??`changed`,c=r.resetPageKeys??Oe,l=o?Q(n):{},u=new Map(e.map(e=>[e.key,e]));for(let t of e)delete l[t.key],delete l[`${t.key}${i}`];for(let e of c)delete l[e];for(let e of t){let t=u.get(e.key);if(!t)continue;let n=e.value.map(e=>e.trim()).filter(e=>e.length>0);if(n.length===0)continue;l[e.key]=a===`comma`?[n.join(`,`)]:n;let r=e.operator===je(t);(s===`always`||s===`changed`&&!r)&&(l[`${e.key}${i}`]=[e.operator])}return $(l)}function Fe(e,t,n={}){let r=n.preserveUnrelated??!0,i=n.resetPageKeys??Oe,a=r?Q(e):{},o=Q(t);for(let e of i)delete a[e];for(let[e,t]of Object.entries(o))t.length===0?delete a[e]:a[e]=t;return $(a)}function Ie(e){return t=>{if(t==null||typeof t==`string`&&t.length===0)return!0;let n=e.safeParse(t);return n.success?!0:n.error?.issues?.[0]?.message??n.error?.message??!1}}function Le(e,t){return n=>e(n)?!0:t}Object.defineProperty(exports,"A",{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,"B",{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,"C",{enumerable:!0,get:function(){return se}}),Object.defineProperty(exports,"D",{enumerable:!0,get:function(){return ie}}),Object.defineProperty(exports,"E",{enumerable:!0,get:function(){return W}}),Object.defineProperty(exports,"F",{enumerable:!0,get:function(){return z}}),Object.defineProperty(exports,"I",{enumerable:!0,get:function(){return te}}),Object.defineProperty(exports,"L",{enumerable:!0,get:function(){return L}}),Object.defineProperty(exports,"M",{enumerable:!0,get:function(){return ae}}),Object.defineProperty(exports,"N",{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,"O",{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,"P",{enumerable:!0,get:function(){return B}}),Object.defineProperty(exports,"R",{enumerable:!0,get:function(){return R}}),Object.defineProperty(exports,"S",{enumerable:!0,get:function(){return ce}}),Object.defineProperty(exports,"T",{enumerable:!0,get:function(){return oe}}),Object.defineProperty(exports,"_",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return Pe}}),Object.defineProperty(exports,"b",{enumerable:!0,get:function(){return ge}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return Ce}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return xe}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return ve}}),Object.defineProperty(exports,"g",{enumerable:!0,get:function(){return he}}),Object.defineProperty(exports,"h",{enumerable:!0,get:function(){return me}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return Ne}}),Object.defineProperty(exports,"j",{enumerable:!0,get:function(){return ne}}),Object.defineProperty(exports,"k",{enumerable:!0,get:function(){return re}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return we}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return X}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return Ie}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return Ee}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return Z}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return Fe}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return Te}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return Le}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return Se}}),Object.defineProperty(exports,"v",{enumerable:!0,get:function(){return _e}}),Object.defineProperty(exports,"w",{enumerable:!0,get:function(){return G}}),Object.defineProperty(exports,"x",{enumerable:!0,get:function(){return le}}),Object.defineProperty(exports,"y",{enumerable:!0,get:function(){return pe}}),Object.defineProperty(exports,"z",{enumerable:!0,get:function(){return I}});
|