themelia-react-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/CHANGELOG.md +351 -0
- package/README.md +26 -13
- package/dist/{accordion-CQXVcd7Q.js → accordion-B6a3vVgA.js} +84 -82
- package/dist/accordion-B6a3vVgA.js.map +1 -0
- package/dist/action-menu-TzCoSlwL.js +280 -0
- package/dist/action-menu-TzCoSlwL.js.map +1 -0
- package/dist/{affordance-geometry.generated-CCIXb2A1.js → affordance-geometry.generated-B5iu-Mkr.js} +3 -2
- package/dist/affordance-geometry.generated-B5iu-Mkr.js.map +1 -0
- package/dist/{ai-artifact-2PQ2fItc.js → ai-artifact-BMJdv-6q.js} +379 -376
- package/dist/ai-artifact-BMJdv-6q.js.map +1 -0
- package/dist/{app-shell-BE_j8-AT.js → app-shell-ZK5RWdo6.js} +4 -4
- package/dist/{app-shell-BE_j8-AT.js.map → app-shell-ZK5RWdo6.js.map} +1 -1
- package/dist/attachment-BtfhGm8i.js +245 -0
- package/dist/attachment-BtfhGm8i.js.map +1 -0
- package/dist/{auth-M3vGMgDR.js → auth-CYxKfo69.js} +237 -235
- package/dist/auth-CYxKfo69.js.map +1 -0
- package/dist/{avatar-djdaaQ_s.js → avatar-BBnEJIx8.js} +66 -65
- package/dist/avatar-BBnEJIx8.js.map +1 -0
- package/dist/badge-MrKVNzW9.js +93 -0
- package/dist/badge-MrKVNzW9.js.map +1 -0
- package/dist/base/accordion.js +1 -1
- package/dist/base/action-menu.js +1 -1
- package/dist/base/attachment.js +1 -1
- package/dist/base/avatar.js +1 -1
- package/dist/base/badge.js +1 -1
- package/dist/base/batch-action-bar.js +3 -0
- package/dist/base/buttons.js +2 -3
- package/dist/base/cards.js +2 -2
- package/dist/base/carousel.js +13 -13
- package/dist/base/carousel.js.map +1 -1
- package/dist/base/cascader.js +103 -115
- package/dist/base/cascader.js.map +1 -1
- package/dist/base/chart.js +1 -1
- package/dist/base/choice-inputs.js +3 -3
- package/dist/base/code-block.js +1 -1
- package/dist/base/combobox.js +1 -1
- package/dist/base/command.js +1 -1
- package/dist/base/copyable.js +1 -1
- package/dist/base/date-pickers.js +2 -2
- package/dist/base/display.js +7 -7
- package/dist/base/feedback.js +3 -3
- package/dist/base/forms-numeric.js +1 -1
- package/dist/base/forms.js +2 -2
- package/dist/base/inline-edit.js +17 -17
- package/dist/base/inline-edit.js.map +1 -1
- package/dist/base/item.js +1 -1
- package/dist/base/media-gallery.js +1 -1
- package/dist/base/metadata-list.js +3 -0
- package/dist/base/navigation.js +7 -7
- package/dist/base/popover-menu.js +1 -1
- package/dist/base/popover.js +1 -1
- package/dist/base/qr-code.js +1 -1
- package/dist/base/repeaters.js +171 -170
- package/dist/base/repeaters.js.map +1 -1
- package/dist/base/sheet.js +1 -1
- package/dist/base/sidebar.js +1 -1
- package/dist/base/signature-pad.js +147 -137
- package/dist/base/signature-pad.js.map +1 -1
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +1 -1
- package/dist/base/structure.js +1 -1
- package/dist/base/table.js +1 -1
- package/dist/base/text-inputs.js +2 -2
- package/dist/base/toaster.js +2 -2
- package/dist/base/tree.js +1 -1
- package/dist/base/upload-queue.js +1 -1
- package/dist/base/upload.js +3 -3
- package/dist/base/value-inputs.js +2 -2
- package/dist/batch-action-bar-BZGDG-Si.js +104 -0
- package/dist/batch-action-bar-BZGDG-Si.js.map +1 -0
- package/dist/blocks/admin.js +173 -171
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +266 -263
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +440 -438
- package/dist/blocks/analytics.js.map +1 -1
- package/dist/blocks/collaboration.js +1 -1
- package/dist/blocks/commerce/receipt.js +1 -1
- package/dist/blocks/commerce.js +1945 -1266
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +3 -2
- package/dist/blocks/onboarding.js +50 -49
- package/dist/blocks/onboarding.js.map +1 -1
- package/dist/blocks/planning.js +25 -25
- package/dist/blocks/planning.js.map +1 -1
- package/dist/blocks/timelines.js +1 -1
- package/dist/breadcrumbs-D5t7I023.js +129 -0
- package/dist/breadcrumbs-D5t7I023.js.map +1 -0
- package/dist/{button-R9CCoH7A.js → button-QYwiyhD2.js} +15 -14
- package/dist/button-QYwiyhD2.js.map +1 -0
- package/dist/{button-BS3KDg00.js → buttons-SbIcm1HJ.js} +200 -213
- package/dist/buttons-SbIcm1HJ.js.map +1 -0
- package/dist/{cards-QoJ4syG9.js → cards-CiiHpKYd.js} +8 -8
- package/dist/cards-CiiHpKYd.js.map +1 -0
- package/dist/{chart-DwYRKKc-.js → chart-QfrARkXl.js} +5 -5
- package/dist/{chart-DwYRKKc-.js.map → chart-QfrARkXl.js.map} +1 -1
- package/dist/checkbox-DhB6K0bK.js +36 -0
- package/dist/checkbox-DhB6K0bK.js.map +1 -0
- package/dist/choice-inputs-t6w3ATNz.js +766 -0
- package/dist/choice-inputs-t6w3ATNz.js.map +1 -0
- package/dist/code-block-Dgbu-CU3.js +185 -0
- package/dist/code-block-Dgbu-CU3.js.map +1 -0
- package/dist/{collapsible-oMUGM4tr.js → collapsible-D8AEGU1-.js} +4 -4
- package/dist/{collapsible-oMUGM4tr.js.map → collapsible-D8AEGU1-.js.map} +1 -1
- package/dist/{collection-content-Ys-OZOkY.js → collection-content-uK16Grv0.js} +3 -3
- package/dist/{collection-content-Ys-OZOkY.js.map → collection-content-uK16Grv0.js.map} +1 -1
- package/dist/{combobox-6dvVny2q.js → combobox-2Ic8N9bL.js} +74 -68
- package/dist/combobox-2Ic8N9bL.js.map +1 -0
- package/dist/{combobox-CB7039j7.js → combobox-DLl0bfiq.js} +307 -305
- package/dist/combobox-DLl0bfiq.js.map +1 -0
- package/dist/{command-kPMPjIxJ.js → command-kNR20o7x.js} +7 -7
- package/dist/{command-kPMPjIxJ.js.map → command-kNR20o7x.js.map} +1 -1
- package/dist/{comments-You0Bzbr.js → comments-BpDuCUUu.js} +341 -339
- package/dist/comments-BpDuCUUu.js.map +1 -0
- package/dist/components/base/action-menu/action-menu.d.ts +21 -4
- package/dist/components/base/action-menu/action-menu.recipes.d.ts +21 -0
- package/dist/components/base/action-menu/index.d.ts +1 -0
- package/dist/components/base/badge/badge.recipes.d.ts +4 -4
- package/dist/components/base/batch-action-bar/batch-action-bar.d.ts +50 -0
- package/dist/components/base/batch-action-bar/batch-action-bar.strings.d.ts +20 -0
- package/dist/components/base/batch-action-bar/index.d.ts +8 -0
- package/dist/components/base/buttons/button-group.recipes.d.ts +1 -1
- package/dist/components/base/buttons/button.recipes.d.ts +2 -2
- package/dist/components/base/choice-inputs/checkbox.d.ts +2 -2
- package/dist/components/base/choice-inputs/choice-types.d.ts +18 -6
- package/dist/components/base/display/alert-dialog.d.ts +6 -5
- package/dist/components/base/display/dialog.d.ts +4 -8
- package/dist/components/base/display/icon-badge/icon-badge.d.ts +1 -1
- package/dist/components/base/forms/form-sizing.d.ts +15 -12
- package/dist/components/base/metadata-list/index.d.ts +12 -0
- package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.d.ts +28 -25
- package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-value.d.ts +2 -2
- package/dist/components/base/navigation/index.d.ts +1 -1
- package/dist/components/base/navigation/page-header/index.d.ts +1 -0
- package/dist/components/base/navigation/page-header/page-header-commands.d.ts +73 -0
- package/dist/components/base/navigation/page-header/page-header.d.ts +26 -3
- package/dist/components/base/sheet/sheet.d.ts +4 -8
- package/dist/components/base/signature-pad/signature-pad.types.d.ts +5 -1
- package/dist/components/base/signature-pad/signature-pad.utils.d.ts +11 -3
- package/dist/components/base/text-inputs/field-clear-button.d.ts +6 -0
- package/dist/components/base/upload/upload.recipes.d.ts +25 -3
- package/dist/components/base/value-inputs/index.d.ts +5 -5
- package/dist/components/base/value-inputs/tags-input.d.ts +36 -12
- package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
- package/dist/components/blocks/commerce/address-card/types.d.ts +2 -1
- package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +3 -1
- package/dist/components/blocks/commerce/cart-summary/index.d.ts +2 -2
- package/dist/components/blocks/commerce/cart-summary/types.d.ts +6 -1
- package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +3 -1
- package/dist/components/blocks/commerce/discount-stack/index.d.ts +2 -2
- package/dist/components/blocks/commerce/discount-stack/types.d.ts +16 -4
- package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +5 -0
- package/dist/components/blocks/commerce/fulfillment-group/index.d.ts +2 -0
- package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +43 -0
- package/dist/components/blocks/commerce/index.d.ts +13 -5
- package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-header/types.d.ts +4 -2
- package/dist/components/blocks/commerce/invoice-mini/invoice-mini.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-mini/types.d.ts +2 -1
- package/dist/components/blocks/commerce/order-customer/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-customer/order-customer.d.ts +5 -0
- package/dist/components/blocks/commerce/order-customer/types.d.ts +48 -0
- package/dist/components/blocks/commerce/order-header/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-header/order-header.d.ts +5 -0
- package/dist/components/blocks/commerce/order-header/types.d.ts +37 -0
- package/dist/components/blocks/commerce/order-line-item/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-line-item/order-line-item.d.ts +5 -0
- package/dist/components/blocks/commerce/order-line-item/types.d.ts +46 -0
- package/dist/components/blocks/commerce/order-summary/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-summary/order-summary.d.ts +5 -0
- package/dist/components/blocks/commerce/order-summary/types.d.ts +42 -0
- package/dist/components/blocks/commerce/order-transactions/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-transactions/order-transactions.d.ts +5 -0
- package/dist/components/blocks/commerce/order-transactions/types.d.ts +46 -0
- package/dist/components/blocks/commerce/payment-method/index.d.ts +2 -2
- package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +9 -1
- package/dist/components/blocks/commerce/payment-method/types.d.ts +12 -1
- package/dist/components/blocks/commerce/refund-status/index.d.ts +2 -2
- package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +3 -1
- package/dist/components/blocks/commerce/refund-status/types.d.ts +6 -3
- package/dist/components/blocks/commerce/shared/address-lines.d.ts +21 -0
- package/dist/components/blocks/commerce/shared/line-thumbnail.d.ts +9 -0
- package/dist/components/blocks/commerce/shared/order-status.d.ts +51 -0
- package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +1 -1
- package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +27 -6
- package/dist/components/blocks/commerce/summary-panel/amount-row.d.ts +2 -0
- package/dist/components/blocks/commerce/summary-panel/index.d.ts +3 -0
- package/dist/components/blocks/commerce/summary-panel/summary-panel.d.ts +2 -0
- package/dist/components/blocks/commerce/summary-panel/types.d.ts +26 -0
- package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +1 -1
- package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +2 -1
- package/dist/components/blocks/data-display/metadata/index.d.ts +30 -4
- package/dist/components/features/activities/partials/activity-row.d.ts +6 -2
- package/dist/components/features/activities/partials/tone-tokens.d.ts +0 -6
- package/dist/components/features/global-search/partials/global-search-group-heading.d.ts +15 -0
- package/dist/components/features/global-search/partials/tone-palettes.d.ts +0 -5
- package/dist/components/features/kanban/kanban.d.ts +1 -1
- package/dist/components/features/kanban/kanban.strings.d.ts +1 -1
- package/dist/components/features/kanban/kanban.types.d.ts +2 -2
- package/dist/components/features/media-library/hooks/use-media-library.d.ts +1 -1
- package/dist/components/features/media-library/index.d.ts +1 -1
- package/dist/components/features/media-library/media-library.d.ts +1 -1
- package/dist/components/features/media-library/media-library.strings.d.ts +4 -0
- package/dist/components/features/media-library/media-library.types.d.ts +74 -1
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +3 -3
- package/dist/components/features/mentions/partials/mention-kind-toggles.d.ts +16 -0
- package/dist/components/features/overlays/alert-dialog.d.ts +1 -1
- package/dist/components/features/overlays/dialog.d.ts +1 -1
- package/dist/components/features/overlays/index.d.ts +1 -1
- package/dist/components/features/overlays/overlay-tone-icon.d.ts +3 -3
- package/dist/components/features/overlays/overlays.types.d.ts +20 -0
- package/dist/components/features/products/components/product-contract-overview.d.ts +5 -0
- package/dist/components/features/products/components/product-details-card.d.ts +5 -0
- package/dist/components/features/products/components/product-operations-card.d.ts +5 -0
- package/dist/components/features/products/components/product-option-action-menu.d.ts +5 -0
- package/dist/components/features/products/components/product-options-summary.d.ts +5 -0
- package/dist/components/features/products/components/product-policies-card.d.ts +5 -0
- package/dist/components/features/products/components/product-quote-preview-card.d.ts +5 -0
- package/dist/components/features/products/components/product-readiness-card.d.ts +5 -0
- package/dist/components/features/products/components/product-structure-card.d.ts +5 -0
- package/dist/components/features/products/components/product-variant-action-menu.d.ts +23 -1
- package/dist/components/features/products/products.types.d.ts +9 -2
- package/dist/components/features/resource/index.d.ts +1 -1
- package/dist/components/features/resource/resource.d.ts +1 -1
- package/dist/components/features/resource/resource.types.d.ts +34 -6
- package/dist/components/features/rich-text-editor/index.d.ts +2 -1
- package/dist/components/features/rich-text-editor/partials/image-nodes.d.ts +13 -0
- package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +66 -0
- package/dist/components/features/rich-text-editor/partials/inline-reference-node.d.ts +19 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +1 -1
- package/dist/components/features/rich-text-editor/rich-text-editor.strings.d.ts +14 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +45 -0
- package/dist/components/features/rich-text-editor/use-rich-text-images.d.ts +18 -0
- package/dist/components/features/sync/index.d.ts +26 -3
- package/dist/components/features/table/data-table.d.ts +1 -1
- package/dist/components/features/table/table.types.d.ts +32 -7
- package/dist/components/layout/page/index.d.ts +1 -1
- package/dist/components/layout/page/page.types.d.ts +33 -36
- package/dist/components/layout/page/partials/page-actions.d.ts +1 -0
- package/dist/components/layout/page/partials/page-header.d.ts +1 -1
- package/dist/components/layout/settings/settings.d.ts +16 -2
- package/dist/components/layout/workspace/workspace.types.d.ts +21 -4
- package/dist/components/typography/rich-text/index.d.ts +1 -1
- package/dist/components/typography/rich-text/rich-text-tree.d.ts +19 -0
- package/dist/components/typography/rich-text/rich-text.d.ts +16 -0
- package/dist/components/typography/text-link.d.ts +4 -3
- package/dist/components/ui/checkbox.d.ts +4 -3
- package/dist/components/ui/overlay.recipes.d.ts +0 -9
- package/dist/components/ui/switch.d.ts +2 -2
- package/dist/{containers-D_L4mTVb.js → containers-DmWiJa2I.js} +36 -35
- package/dist/containers-DmWiJa2I.js.map +1 -0
- package/dist/{copyable-DDjTeW_j.js → copyable-B3Gwgdqc.js} +6 -6
- package/dist/{copyable-DDjTeW_j.js.map → copyable-B3Gwgdqc.js.map} +1 -1
- package/dist/data-display-DafIvCl5.js +960 -0
- package/dist/data-display-DafIvCl5.js.map +1 -0
- package/dist/{date-uf3z37Nm.js → date-BgK3bTdo.js} +5 -5
- package/dist/{date-uf3z37Nm.js.map → date-BgK3bTdo.js.map} +1 -1
- package/dist/date-picker-CF-DtUpF.js +1529 -0
- package/dist/date-picker-CF-DtUpF.js.map +1 -0
- package/dist/{date-pickers-CnFCb0n2.js → date-pickers-BmzxJl5l.js} +19 -19
- package/dist/{date-pickers-CnFCb0n2.js.map → date-pickers-BmzxJl5l.js.map} +1 -1
- package/dist/{display-DrdvPwF0.js → display-DsQTVzMz.js} +88 -87
- package/dist/display-DsQTVzMz.js.map +1 -0
- package/dist/{dropdown-menu-CURh59jb.js → dropdown-menu-E2qmdC7o.js} +7 -7
- package/dist/{dropdown-menu-CURh59jb.js.map → dropdown-menu-E2qmdC7o.js.map} +1 -1
- package/dist/features/activities.js +414 -501
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +170 -169
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/async-preview.js +8 -8
- package/dist/features/async-preview.js.map +1 -1
- package/dist/features/combobox.js +1 -1
- package/dist/features/comments.js +1 -1
- package/dist/features/data-view.js +139 -138
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer/engine.js +1 -1
- package/dist/features/email-composer.js +73 -71
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +278 -275
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +307 -310
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +95 -97
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map.js +56 -57
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +918 -825
- package/dist/features/media-library.js.map +1 -1
- package/dist/features/mentions.js +1 -1
- package/dist/features/overlays.js +1 -1
- package/dist/features/products.js +1115 -1122
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +202 -194
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +25 -25
- package/dist/features/resource-assignment.js.map +1 -1
- package/dist/features/resource.js +77 -69
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +30 -11
- package/dist/features/rich-text-editor.js.map +1 -1
- package/dist/features/schema-form.js +33 -33
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +3 -3
- package/dist/features/sync.js +3 -3
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +397 -396
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/{feedback-C7nR0UtT.js → feedback-qNuMBtRH.js} +84 -83
- package/dist/feedback-qNuMBtRH.js.map +1 -0
- package/dist/{field-affordance-recipes-CkOCdE2y.js → field-affordance-recipes-qQeIf4lG.js} +8 -6
- package/dist/field-affordance-recipes-qQeIf4lG.js.map +1 -0
- package/dist/field-state-recipes-BVA2CWHo.js +12 -0
- package/dist/field-state-recipes-BVA2CWHo.js.map +1 -0
- package/dist/{filters-Da-gNPsE.js → filters-BkHH53uv.js} +565 -563
- package/dist/filters-BkHH53uv.js.map +1 -0
- package/dist/focus-recipes-B653VaLq.js +12 -0
- package/dist/focus-recipes-B653VaLq.js.map +1 -0
- package/dist/{form-field-VZRULhUK.js → form-field-DUt4UxSV.js} +4 -4
- package/dist/{form-field-VZRULhUK.js.map → form-field-DUt4UxSV.js.map} +1 -1
- package/dist/{form-sizing-uWP4lzVh.js → form-sizing-By94KzXE.js} +19 -15
- package/dist/form-sizing-By94KzXE.js.map +1 -0
- package/dist/{forms-DDeEnXSY.js → forms-Bzha-Y3B.js} +22 -22
- package/dist/{forms-DDeEnXSY.js.map → forms-Bzha-Y3B.js.map} +1 -1
- package/dist/{forms-numeric-D3CO60IF.js → forms-numeric-C0bvjRPZ.js} +265 -264
- package/dist/forms-numeric-C0bvjRPZ.js.map +1 -0
- package/dist/{header-2ycNqGOR.js → header-BOefOKd1.js} +47 -51
- package/dist/header-BOefOKd1.js.map +1 -0
- package/dist/{hooks-DQ5SPwZw.js → hooks-9k_TtmKh.js} +2 -2
- package/dist/{hooks-DQ5SPwZw.js.map → hooks-9k_TtmKh.js.map} +1 -1
- package/dist/{http-CdEIHyQf.js → http-D_6rOnzU.js} +2 -2
- package/dist/{http-CdEIHyQf.js.map → http-D_6rOnzU.js.map} +1 -1
- package/dist/icon-badge-CAuKupo9.js +55 -0
- package/dist/icon-badge-CAuKupo9.js.map +1 -0
- package/dist/index.js +7 -7
- package/dist/input-DWhBBBww.js +262 -0
- package/dist/input-DWhBBBww.js.map +1 -0
- package/dist/{input-BoLm9Hks.js → input-Ddi_LSYv.js} +3 -3
- package/dist/{input-BoLm9Hks.js.map → input-Ddi_LSYv.js.map} +1 -1
- package/dist/interaction-recipes-CHr0dJUs.js +24 -0
- package/dist/interaction-recipes-CHr0dJUs.js.map +1 -0
- package/dist/{item-xzh8Df65.js → item-DEmDiTlD.js} +98 -97
- package/dist/item-DEmDiTlD.js.map +1 -0
- package/dist/layer-recipes-CCpklYME.js +13 -0
- package/dist/layer-recipes-CCpklYME.js.map +1 -0
- package/dist/layout/app-shell.js +1 -1
- package/dist/layout/auth.js +1 -1
- package/dist/layout/containers.js +1 -1
- package/dist/layout/header.js +1 -1
- package/dist/layout/hooks.js +1 -1
- package/dist/layout/navigation.js +1 -1
- package/dist/layout/page.js +1 -1
- package/dist/layout/settings.js +1 -1
- package/dist/layout/sidebar.js +2 -2
- package/dist/layout/workspace.js +1 -1
- package/dist/layout.js +10 -10
- package/dist/lib/affordance-geometry.generated.d.ts +1 -0
- package/dist/lib/field-affordance-recipes.d.ts +6 -1
- package/dist/lib/field-state-recipes.d.ts +9 -8
- package/dist/lib/focus-recipes.d.ts +24 -0
- package/dist/lib/interaction-recipes.d.ts +35 -0
- package/dist/lib/layer-recipes.d.ts +19 -0
- package/dist/lib/motion-recipes.d.ts +1 -0
- package/dist/lib/overlay-anatomy-recipes.d.ts +1 -0
- package/dist/lib/safe-image-src.d.ts +10 -0
- package/dist/lib/sanitize-html.d.ts +15 -3
- package/dist/lib/surface-recipes.d.ts +47 -7
- package/dist/lib/token-merge.generated.d.ts +9 -6
- package/dist/lib/tone-recipes.d.ts +79 -0
- package/dist/lib/ui-provider/hooks.d.ts +2 -1
- package/dist/lib/ui-provider/index.d.ts +2 -2
- package/dist/lib/ui-provider/types.d.ts +9 -0
- package/dist/lib/utils.js +1 -1
- package/dist/media-gallery-DcTtAaeC.js +203 -0
- package/dist/media-gallery-DcTtAaeC.js.map +1 -0
- package/dist/mentions-D-uyCh01.js +568 -0
- package/dist/mentions-D-uyCh01.js.map +1 -0
- package/dist/{message-YfFmbXNP.js → message-CdHgIWKf.js} +5 -5
- package/dist/{message-YfFmbXNP.js.map → message-CdHgIWKf.js.map} +1 -1
- package/dist/metadata-list-X5rYAKSB.js +394 -0
- package/dist/metadata-list-X5rYAKSB.js.map +1 -0
- package/dist/{motion-recipes-B6jKXEcN.js → motion-recipes-ChBg4HBq.js} +3 -2
- package/dist/{motion-recipes-B6jKXEcN.js.map → motion-recipes-ChBg4HBq.js.map} +1 -1
- package/dist/navigation-D3KwXmaq.js +145 -0
- package/dist/navigation-D3KwXmaq.js.map +1 -0
- package/dist/navigation-HJf5zxlH.js +268 -0
- package/dist/navigation-HJf5zxlH.js.map +1 -0
- package/dist/{navigation-row-recipes-DlU-4QYO.js → navigation-row-recipes-BVowojQw.js} +2 -2
- package/dist/{navigation-row-recipes-DlU-4QYO.js.map → navigation-row-recipes-BVowojQw.js.map} +1 -1
- package/dist/{number-CKRBYmZK.js → number-DMhe-Vsk.js} +5 -5
- package/dist/{number-CKRBYmZK.js.map → number-DMhe-Vsk.js.map} +1 -1
- package/dist/overflow-tab-bar-sQHXLlwQ.js +280 -0
- package/dist/overflow-tab-bar-sQHXLlwQ.js.map +1 -0
- package/dist/overlay.recipes-8GHqmlb4.js +6 -0
- package/dist/overlay.recipes-8GHqmlb4.js.map +1 -0
- package/dist/overlays-I0axtYA6.js +999 -0
- package/dist/overlays-I0axtYA6.js.map +1 -0
- package/dist/page-B5dTH9gE.js +224 -0
- package/dist/page-B5dTH9gE.js.map +1 -0
- package/dist/page-header-commands-DjzFEq3E.js +126 -0
- package/dist/page-header-commands-DjzFEq3E.js.map +1 -0
- package/dist/{pagination-Cm0jqa3I.js → pagination-3bPA_a6K.js} +15 -15
- package/dist/{pagination-Cm0jqa3I.js.map → pagination-3bPA_a6K.js.map} +1 -1
- package/dist/{popover-Dcv_9jxr.js → popover-Di55PyAI.js} +8 -8
- package/dist/popover-Di55PyAI.js.map +1 -0
- package/dist/{popover-menu-DnRFKnHP.js → popover-menu-B71Tn2Qz.js} +6 -6
- package/dist/{popover-menu-DnRFKnHP.js.map → popover-menu-B71Tn2Qz.js.map} +1 -1
- package/dist/{popover.recipes-wmbvL8Ah.js → popover.recipes-Bdyhj2db.js} +2 -2
- package/dist/{popover.recipes-wmbvL8Ah.js.map → popover.recipes-Bdyhj2db.js.map} +1 -1
- package/dist/{primitives-BHrwQXFC.js → primitives-B-CkiEMU.js} +5 -5
- package/dist/{primitives-BHrwQXFC.js.map → primitives-B-CkiEMU.js.map} +1 -1
- package/dist/primitives.js +4 -4
- package/dist/{progress-Br9WTFya.js → progress-rnS8-uAW.js} +9 -9
- package/dist/{progress-Br9WTFya.js.map → progress-rnS8-uAW.js.map} +1 -1
- package/dist/{receipt-CV89q1fs.js → receipt-D0oswZ0p.js} +6 -6
- package/dist/{receipt-CV89q1fs.js.map → receipt-D0oswZ0p.js.map} +1 -1
- package/dist/rich-text-DvGulsNJ.js +78 -0
- package/dist/rich-text-DvGulsNJ.js.map +1 -0
- package/dist/rich-text-editor-sMU_Scqm.js +1204 -0
- package/dist/rich-text-editor-sMU_Scqm.js.map +1 -0
- package/dist/rich-text-editor.recipes-CadiF_Uu.js +88 -0
- package/dist/rich-text-editor.recipes-CadiF_Uu.js.map +1 -0
- package/dist/rich-text-editor.strings-CB59ekH2.js +38 -0
- package/dist/rich-text-editor.strings-CB59ekH2.js.map +1 -0
- package/dist/safe-image-src-C6kQSMBZ.js +17 -0
- package/dist/safe-image-src-C6kQSMBZ.js.map +1 -0
- package/dist/sanitize-html-DsQmI48u.js +92 -0
- package/dist/sanitize-html-DsQmI48u.js.map +1 -0
- package/dist/scroll-area-Bt_vXY2b.js +48 -0
- package/dist/scroll-area-Bt_vXY2b.js.map +1 -0
- package/dist/{separator-Do5GWDYi.js → separator-C8DlRGwF.js} +3 -3
- package/dist/{separator-Do5GWDYi.js.map → separator-C8DlRGwF.js.map} +1 -1
- package/dist/{separator-BMEvwnSX.js → separator-CYHnjsAb.js} +2 -2
- package/dist/{separator-BMEvwnSX.js.map → separator-CYHnjsAb.js.map} +1 -1
- package/dist/services/actions/action-adapters.d.ts +18 -0
- package/dist/services/actions/index.d.ts +1 -1
- package/dist/services/actions.js +16 -4
- package/dist/services/actions.js.map +1 -1
- package/dist/settings-CQW3b-Cu.js +170 -0
- package/dist/settings-CQW3b-Cu.js.map +1 -0
- package/dist/sheet-4SEvVYzA.js +210 -0
- package/dist/sheet-4SEvVYzA.js.map +1 -0
- package/dist/{sidebar-Crc9M9JV.js → sidebar-C7WWR29L.js} +180 -179
- package/dist/sidebar-C7WWR29L.js.map +1 -0
- package/dist/{sidebar-Cb8WzOvE.js → sidebar-d7Dg80ln.js} +16 -16
- package/dist/sidebar-d7Dg80ln.js.map +1 -0
- package/dist/{skeleton-DVMXr15h.js → skeleton-Cz890JZF.js} +9 -9
- package/dist/{skeleton-DVMXr15h.js.map → skeleton-Cz890JZF.js.map} +1 -1
- package/dist/smart-card-lFKxn5Hu.js +595 -0
- package/dist/smart-card-lFKxn5Hu.js.map +1 -0
- package/dist/{spinner-CmTAbEp0.js → spinner-fa3h1Aif.js} +7 -7
- package/dist/{spinner-CmTAbEp0.js.map → spinner-fa3h1Aif.js.map} +1 -1
- package/dist/{structure-hzCW-XsV.js → structure-DC2dygdA.js} +2 -2
- package/dist/{structure-hzCW-XsV.js.map → structure-DC2dygdA.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/surface-recipes-BKRVW8Os.js +43 -0
- package/dist/surface-recipes-BKRVW8Os.js.map +1 -0
- package/dist/{table-D6zKeYQX.js → table-CIKyLUsy.js} +59 -58
- package/dist/table-CIKyLUsy.js.map +1 -0
- package/dist/table-CrcLN9Io.js +1458 -0
- package/dist/table-CrcLN9Io.js.map +1 -0
- package/dist/{tabs-Dk8E_knt.js → tabs-DwBJfjxX.js} +58 -57
- package/dist/tabs-DwBJfjxX.js.map +1 -0
- package/dist/{text-inputs-BFpku0Qd.js → text-inputs-aaK9wcDT.js} +74 -79
- package/dist/text-inputs-aaK9wcDT.js.map +1 -0
- package/dist/theme.css +3 -3
- package/dist/{timelines-CxuAFIc2.js → timelines-C_SBwHNP.js} +153 -150
- package/dist/timelines-C_SBwHNP.js.map +1 -0
- package/dist/tone-recipes-CPoExcTE.js +70 -0
- package/dist/tone-recipes-CPoExcTE.js.map +1 -0
- package/dist/tooltip-CsfgrfS7.js +111 -0
- package/dist/tooltip-CsfgrfS7.js.map +1 -0
- package/dist/{tree-BotPlyiD.js → tree-BiKhg8AY.js} +68 -66
- package/dist/tree-BiKhg8AY.js.map +1 -0
- package/dist/typography/rich-text.js +1 -1
- package/dist/typography-DTRkE9zL.js +117 -0
- package/dist/typography-DTRkE9zL.js.map +1 -0
- package/dist/typography.js +1 -1
- package/dist/{ui-provider-D2_TeLqw.js → ui-provider-1D_NSYzO.js} +11 -3
- package/dist/ui-provider-1D_NSYzO.js.map +1 -0
- package/dist/ui-provider.js +3 -3
- package/dist/{upload-B0WHW7ak.js → upload-BO8-CLN6.js} +209 -209
- package/dist/upload-BO8-CLN6.js.map +1 -0
- package/dist/{upload-queue-BHZ_wBfd.js → upload-queue-EOC8g1gf.js} +109 -111
- package/dist/upload-queue-EOC8g1gf.js.map +1 -0
- package/dist/upload.recipes-BbxTqrCT.js +61 -0
- package/dist/upload.recipes-BbxTqrCT.js.map +1 -0
- package/dist/{usage-card-U0YBLTNT.js → usage-card-obRaBskq.js} +46 -46
- package/dist/{usage-card-U0YBLTNT.js.map → usage-card-obRaBskq.js.map} +1 -1
- package/dist/{utils-Cospvlj1.js → utils-l5LpDw2z.js} +56 -24
- package/dist/utils-l5LpDw2z.js.map +1 -0
- package/dist/value-inputs-TAYMX111.js +947 -0
- package/dist/value-inputs-TAYMX111.js.map +1 -0
- package/dist/{value-typography-Deb3yQZg.js → value-typography-b8wpz1eX.js} +2 -2
- package/dist/{value-typography-Deb3yQZg.js.map → value-typography-b8wpz1eX.js.map} +1 -1
- package/dist/workspace-DH0v0KcB.js +407 -0
- package/dist/workspace-DH0v0KcB.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +19 -20
- package/docs/consumer-skill/examples/app-layout.tsx +1 -1
- package/docs/consumer-skill/examples/composition.tsx +3 -3
- package/docs/consumer-skill/examples/detail.tsx +59 -12
- package/docs/consumer-skill/examples/edit.tsx +1 -1
- package/docs/consumer-skill/examples/receipt.tsx +2 -2
- package/docs/consumer-skill/examples/scoped-directory.tsx +1 -1
- package/docs/consumer-skill/examples/website.tsx +1 -1
- package/docs/consumer-skill/references/agents-md.md +33 -0
- package/docs/consumer-skill/references/analytics.md +1 -1
- package/docs/consumer-skill/references/composition.md +51 -8
- package/docs/consumer-skill/references/design-contract.md +12 -3
- package/docs/consumer-skill/references/installation.md +11 -1
- package/docs/consumer-skill/references/public-api.json +847 -447
- package/docs/consumer-skill/references/review.md +25 -5
- package/docs/consumer-skill/references/theming.md +8 -4
- package/docs/consumer-skill/references/tokens.json +1 -1
- package/docs/consumer-skill/references/workflows.md +29 -10
- package/docs/consumer-skill/scripts/composition-policy.mjs +41 -11
- package/docs/consumer-skill/scripts/surface-policy.mjs +139 -5
- package/package.json +10 -2
- package/dist/accordion-CQXVcd7Q.js.map +0 -1
- package/dist/action-menu-BTpyPWJ2.js +0 -264
- package/dist/action-menu-BTpyPWJ2.js.map +0 -1
- package/dist/affordance-geometry.generated-CCIXb2A1.js.map +0 -1
- package/dist/ai-artifact-2PQ2fItc.js.map +0 -1
- package/dist/attachment-q69dlt5Y.js +0 -244
- package/dist/attachment-q69dlt5Y.js.map +0 -1
- package/dist/auth-M3vGMgDR.js.map +0 -1
- package/dist/avatar-djdaaQ_s.js.map +0 -1
- package/dist/badge-0tATj-tW.js +0 -92
- package/dist/badge-0tATj-tW.js.map +0 -1
- package/dist/breadcrumbs-BG_FfMK4.js +0 -128
- package/dist/breadcrumbs-BG_FfMK4.js.map +0 -1
- package/dist/button-BS3KDg00.js.map +0 -1
- package/dist/button-R9CCoH7A.js.map +0 -1
- package/dist/buttons-DS0ZIwJ_.js +0 -99
- package/dist/buttons-DS0ZIwJ_.js.map +0 -1
- package/dist/cards-QoJ4syG9.js.map +0 -1
- package/dist/checkbox-B7ygNTYp.js +0 -35
- package/dist/checkbox-B7ygNTYp.js.map +0 -1
- package/dist/choice-inputs-DrJ17tpL.js +0 -752
- package/dist/choice-inputs-DrJ17tpL.js.map +0 -1
- package/dist/code-block-CD0B7M93.js +0 -183
- package/dist/code-block-CD0B7M93.js.map +0 -1
- package/dist/combobox-6dvVny2q.js.map +0 -1
- package/dist/combobox-CB7039j7.js.map +0 -1
- package/dist/comments-You0Bzbr.js.map +0 -1
- package/dist/components/layout/page/partials/page-header-commands.d.ts +0 -13
- package/dist/containers-D_L4mTVb.js.map +0 -1
- package/dist/data-display-3xWQUnMA.js +0 -1335
- package/dist/data-display-3xWQUnMA.js.map +0 -1
- package/dist/date-picker-DrDFj8Lo.js +0 -1527
- package/dist/date-picker-DrDFj8Lo.js.map +0 -1
- package/dist/display-DrdvPwF0.js.map +0 -1
- package/dist/feedback-C7nR0UtT.js.map +0 -1
- package/dist/field-affordance-recipes-CkOCdE2y.js.map +0 -1
- package/dist/field-state-recipes-C-MFBX_8.js +0 -11
- package/dist/field-state-recipes-C-MFBX_8.js.map +0 -1
- package/dist/filters-Da-gNPsE.js.map +0 -1
- package/dist/form-sizing-uWP4lzVh.js.map +0 -1
- package/dist/forms-numeric-D3CO60IF.js.map +0 -1
- package/dist/header-2ycNqGOR.js.map +0 -1
- package/dist/icon-badge-DKlaKXoo.js +0 -53
- package/dist/icon-badge-DKlaKXoo.js.map +0 -1
- package/dist/input-DhQdBnV3.js +0 -255
- package/dist/input-DhQdBnV3.js.map +0 -1
- package/dist/item-xzh8Df65.js.map +0 -1
- package/dist/media-gallery-DQUQ0m3O.js +0 -201
- package/dist/media-gallery-DQUQ0m3O.js.map +0 -1
- package/dist/mentions-DwnO1hh4.js +0 -564
- package/dist/mentions-DwnO1hh4.js.map +0 -1
- package/dist/navigation-Cbp5V8gG.js +0 -264
- package/dist/navigation-Cbp5V8gG.js.map +0 -1
- package/dist/navigation-Cs1npsPm.js +0 -300
- package/dist/navigation-Cs1npsPm.js.map +0 -1
- package/dist/overlay.recipes-CNO2S9V6.js +0 -34
- package/dist/overlay.recipes-CNO2S9V6.js.map +0 -1
- package/dist/overlays-DhZO7N-I.js +0 -994
- package/dist/overlays-DhZO7N-I.js.map +0 -1
- package/dist/page-C6R_8jFt.js +0 -325
- package/dist/page-C6R_8jFt.js.map +0 -1
- package/dist/page-header-hUTzcRZX.js +0 -112
- package/dist/page-header-hUTzcRZX.js.map +0 -1
- package/dist/popover-Dcv_9jxr.js.map +0 -1
- package/dist/rich-text-editor-CF8QYt5p.js +0 -574
- package/dist/rich-text-editor-CF8QYt5p.js.map +0 -1
- package/dist/rich-text-editor.recipes-CnrbmTS1.js +0 -81
- package/dist/rich-text-editor.recipes-CnrbmTS1.js.map +0 -1
- package/dist/rich-text-editor.strings-BpnIQgMl.js +0 -25
- package/dist/rich-text-editor.strings-BpnIQgMl.js.map +0 -1
- package/dist/rich-text-j-FGAeZW.js +0 -32
- package/dist/rich-text-j-FGAeZW.js.map +0 -1
- package/dist/sanitize-html-BG9FGe-j.js +0 -64
- package/dist/sanitize-html-BG9FGe-j.js.map +0 -1
- package/dist/scroll-area-DRdr16Pt.js +0 -47
- package/dist/scroll-area-DRdr16Pt.js.map +0 -1
- package/dist/settings-DHk0L2MF.js +0 -161
- package/dist/settings-DHk0L2MF.js.map +0 -1
- package/dist/sheet-DRFNY1_D.js +0 -207
- package/dist/sheet-DRFNY1_D.js.map +0 -1
- package/dist/sidebar-Cb8WzOvE.js.map +0 -1
- package/dist/sidebar-Crc9M9JV.js.map +0 -1
- package/dist/smart-card-Bek-TwUp.js +0 -599
- package/dist/smart-card-Bek-TwUp.js.map +0 -1
- package/dist/surface-recipes-DOdoBXGm.js +0 -28
- package/dist/surface-recipes-DOdoBXGm.js.map +0 -1
- package/dist/table-D6zKeYQX.js.map +0 -1
- package/dist/table-Dn4XSrSB.js +0 -1444
- package/dist/table-Dn4XSrSB.js.map +0 -1
- package/dist/tabs-Dk8E_knt.js.map +0 -1
- package/dist/text-inputs-BFpku0Qd.js.map +0 -1
- package/dist/timelines-CxuAFIc2.js.map +0 -1
- package/dist/tree-BotPlyiD.js.map +0 -1
- package/dist/typography-CAr3dQhX.js +0 -116
- package/dist/typography-CAr3dQhX.js.map +0 -1
- package/dist/ui-provider-D2_TeLqw.js.map +0 -1
- package/dist/upload-B0WHW7ak.js.map +0 -1
- package/dist/upload-queue-BHZ_wBfd.js.map +0 -1
- package/dist/use-file-drop-target-BX7GnhoQ.js +0 -39
- package/dist/use-file-drop-target-BX7GnhoQ.js.map +0 -1
- package/dist/utils-Cospvlj1.js.map +0 -1
- package/dist/value-inputs-CjfzGMsN.js +0 -854
- package/dist/value-inputs-CjfzGMsN.js.map +0 -1
- package/dist/workspace-YoFjXi6i.js +0 -394
- package/dist/workspace-YoFjXi6i.js.map +0 -1
- /package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.strings.d.ts +0 -0
package/dist/blocks/admin.js
CHANGED
|
@@ -1,22 +1,26 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { t } from "../
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
2
|
+
import { m as e } from "../ui-provider-1D_NSYzO.js";
|
|
3
|
+
import { useStrings as t } from "../lib/strings.js";
|
|
4
|
+
import { t as n } from "../utils-l5LpDw2z.js";
|
|
5
|
+
import { n as r } from "../buttons-SbIcm1HJ.js";
|
|
6
|
+
import { a as i, s as a } from "../typography-DTRkE9zL.js";
|
|
7
|
+
import { a as o, i as s } from "../text.styles-g4He6UIW.js";
|
|
8
|
+
import { r as c, t as l } from "../structure-DC2dygdA.js";
|
|
9
|
+
import { r as u } from "../tone-recipes-CPoExcTE.js";
|
|
10
|
+
import { h as d, m as f, p, v as m } from "../smart-card-lFKxn5Hu.js";
|
|
11
|
+
import { n as h } from "../action-menu-TzCoSlwL.js";
|
|
12
|
+
import { m as g } from "../primitives-B-CkiEMU.js";
|
|
13
|
+
import { t as _ } from "../icon-badge-CAuKupo9.js";
|
|
14
|
+
import { t as v } from "../badge-MrKVNzW9.js";
|
|
15
|
+
import { t as y } from "../input-DWhBBBww.js";
|
|
16
|
+
import { t as b } from "../copyable-B3Gwgdqc.js";
|
|
17
|
+
import { t as ee } from "../form-field-DUt4UxSV.js";
|
|
18
|
+
import { s as te } from "../choice-inputs-t6w3ATNz.js";
|
|
19
|
+
import { t as ne } from "../checkbox-DhB6K0bK.js";
|
|
20
|
+
import { n as re } from "../display-DsQTVzMz.js";
|
|
21
|
+
import { n as x, r as S, t as C } from "../collapsible-D8AEGU1-.js";
|
|
22
|
+
import { c as w, n as T, o as E, r as D, t as O } from "../item-DEmDiTlD.js";
|
|
23
|
+
import { forwardRef as k, useCallback as A, useMemo as ie, useState as j } from "react";
|
|
20
24
|
import { jsx as M, jsxs as N } from "react/jsx-runtime";
|
|
21
25
|
import { Check as P, ChevronRight as F, Copy as I, KeyRound as L, Minus as R, Plus as z, Trash2 as B } from "lucide-react";
|
|
22
26
|
import { toast as V } from "sonner";
|
|
@@ -29,44 +33,44 @@ var H = {
|
|
|
29
33
|
};
|
|
30
34
|
//#endregion
|
|
31
35
|
//#region src/components/blocks/admin/role-permission/role-permission.tsx
|
|
32
|
-
function U({ roleName:
|
|
33
|
-
let p =
|
|
34
|
-
return /* @__PURE__ */ N(
|
|
36
|
+
function U({ roleName: e, description: o, memberCount: s, sections: c, onEdit: u, className: d, strings: f }) {
|
|
37
|
+
let p = t(H, f);
|
|
38
|
+
return /* @__PURE__ */ N(l, {
|
|
35
39
|
gap: "2xl",
|
|
36
40
|
"data-component": "role-permission",
|
|
37
41
|
"data-slot": "role-permission",
|
|
38
|
-
className:
|
|
42
|
+
className: n("role-permission--component", d),
|
|
39
43
|
children: [
|
|
40
|
-
/* @__PURE__ */ N(
|
|
44
|
+
/* @__PURE__ */ N(l, {
|
|
41
45
|
gap: "normal",
|
|
42
46
|
className: "role-permission--header",
|
|
43
|
-
children: [/* @__PURE__ */ N(
|
|
47
|
+
children: [/* @__PURE__ */ N(l, {
|
|
44
48
|
direction: "horizontal",
|
|
45
49
|
wrap: !0,
|
|
46
50
|
align: "center",
|
|
47
51
|
gap: "sm",
|
|
48
|
-
children: [/* @__PURE__ */ M(
|
|
52
|
+
children: [/* @__PURE__ */ M(a, {
|
|
49
53
|
weight: "semibold",
|
|
50
|
-
children:
|
|
51
|
-
}),
|
|
52
|
-
}), !!
|
|
54
|
+
children: e
|
|
55
|
+
}), s !== void 0 && /* @__PURE__ */ M(v, { children: p.formatMemberCount(s) })]
|
|
56
|
+
}), !!o && /* @__PURE__ */ M(a, {
|
|
53
57
|
size: "xs",
|
|
54
58
|
type: "secondary",
|
|
55
|
-
children:
|
|
59
|
+
children: o
|
|
56
60
|
})]
|
|
57
61
|
}),
|
|
58
|
-
/* @__PURE__ */ M(
|
|
62
|
+
/* @__PURE__ */ M(l, {
|
|
59
63
|
gap: "xl",
|
|
60
|
-
children:
|
|
64
|
+
children: c.map((e) => /* @__PURE__ */ N(l, {
|
|
61
65
|
gap: "md",
|
|
62
|
-
children: [/* @__PURE__ */ M(
|
|
66
|
+
children: [/* @__PURE__ */ M(i, { children: e.name }), /* @__PURE__ */ M("div", {
|
|
63
67
|
className: "flex flex-wrap gap-space-md",
|
|
64
68
|
children: e.permissions.map((e) => /* @__PURE__ */ N("div", {
|
|
65
69
|
className: "flex items-center gap-space-sm",
|
|
66
70
|
children: [/* @__PURE__ */ M("span", {
|
|
67
71
|
role: "img",
|
|
68
72
|
"aria-label": `${e.label}: ${e.active ? p.permissionAllowed : p.permissionDenied}`,
|
|
69
|
-
className:
|
|
73
|
+
className: n("inline-flex size-icon-sm shrink-0", e.active ? "text-success" : "text-muted-foreground"),
|
|
70
74
|
children: e.active ? /* @__PURE__ */ M(P, {
|
|
71
75
|
className: "size-full",
|
|
72
76
|
"aria-hidden": !0
|
|
@@ -74,7 +78,7 @@ function U({ roleName: a, description: s, memberCount: c, sections: l, onEdit: u
|
|
|
74
78
|
className: "size-full",
|
|
75
79
|
"aria-hidden": !0
|
|
76
80
|
})
|
|
77
|
-
}), /* @__PURE__ */ M(
|
|
81
|
+
}), /* @__PURE__ */ M(a, {
|
|
78
82
|
className: e.active ? "text-foreground" : "text-muted-foreground",
|
|
79
83
|
children: e.label
|
|
80
84
|
})]
|
|
@@ -84,7 +88,7 @@ function U({ roleName: a, description: s, memberCount: c, sections: l, onEdit: u
|
|
|
84
88
|
}),
|
|
85
89
|
!!u && /* @__PURE__ */ M("div", {
|
|
86
90
|
className: "role-permission--actions",
|
|
87
|
-
children: /* @__PURE__ */ M(
|
|
91
|
+
children: /* @__PURE__ */ M(r, {
|
|
88
92
|
tone: "neutral",
|
|
89
93
|
buttonStyle: "outline",
|
|
90
94
|
size: "sm",
|
|
@@ -108,23 +112,23 @@ var W = {
|
|
|
108
112
|
copyToastSuccess: "Copied to clipboard",
|
|
109
113
|
copyToastError: "Failed to copy",
|
|
110
114
|
emptyMessage: "No keys yet."
|
|
111
|
-
}, G =
|
|
112
|
-
let h =
|
|
115
|
+
}, G = "sm", K = k(function({ items: e, defaultOpen: i = !0, open: o, onOpenChange: s, onAdd: c, onDelete: l, onCopy: u, title: d, className: f, strings: p }, m) {
|
|
116
|
+
let h = t(W, p), g = o !== void 0, [_, v] = j(i), y = g ? o : _, b = A((e) => {
|
|
113
117
|
g || v(e), s?.(e);
|
|
114
118
|
}, [g, s]);
|
|
115
119
|
return /* @__PURE__ */ M("div", {
|
|
116
120
|
ref: m,
|
|
117
121
|
"data-component": "api-key-list",
|
|
118
122
|
"data-slot": "api-key-list",
|
|
119
|
-
className:
|
|
120
|
-
children: /* @__PURE__ */ N(
|
|
123
|
+
className: n("api-key-list--component @container/api-key-list min-w-0", f),
|
|
124
|
+
children: /* @__PURE__ */ N(C, {
|
|
121
125
|
open: y,
|
|
122
|
-
onOpenChange:
|
|
126
|
+
onOpenChange: b,
|
|
123
127
|
children: [/* @__PURE__ */ N("div", {
|
|
124
128
|
className: "flex items-center gap-space-md",
|
|
125
|
-
children: [/* @__PURE__ */ M(
|
|
129
|
+
children: [/* @__PURE__ */ M(S, {
|
|
126
130
|
asChild: !0,
|
|
127
|
-
children: /* @__PURE__ */ N(
|
|
131
|
+
children: /* @__PURE__ */ N(r, {
|
|
128
132
|
type: "button",
|
|
129
133
|
tone: "secondary",
|
|
130
134
|
buttonStyle: "ghost",
|
|
@@ -132,31 +136,31 @@ var W = {
|
|
|
132
136
|
className: "h-action flex-1 justify-start gap-space-md rounded-inner px-0 py-0 text-left",
|
|
133
137
|
children: [/* @__PURE__ */ M(F, {
|
|
134
138
|
"aria-hidden": "true",
|
|
135
|
-
className:
|
|
136
|
-
}), /* @__PURE__ */ M(
|
|
139
|
+
className: n("size-icon text-muted-foreground transition-transform", y && "rotate-90")
|
|
140
|
+
}), /* @__PURE__ */ M(a, {
|
|
137
141
|
tag: "span",
|
|
138
142
|
weight: "semibold",
|
|
139
143
|
children: d ?? h.title
|
|
140
144
|
})]
|
|
141
145
|
})
|
|
142
|
-
}), !!c && /* @__PURE__ */ M(
|
|
146
|
+
}), !!c && /* @__PURE__ */ M(r, {
|
|
143
147
|
tone: "secondary",
|
|
144
148
|
buttonStyle: "ghost",
|
|
145
|
-
size:
|
|
149
|
+
size: G,
|
|
146
150
|
iconOnly: !0,
|
|
147
151
|
onClick: c,
|
|
148
152
|
"aria-label": h.addAria,
|
|
149
153
|
children: /* @__PURE__ */ M(z, { className: "size-icon" })
|
|
150
154
|
})]
|
|
151
|
-
}), /* @__PURE__ */ M(
|
|
155
|
+
}), /* @__PURE__ */ M(x, {
|
|
152
156
|
className: "pt-space-lg",
|
|
153
|
-
children:
|
|
157
|
+
children: e.length === 0 ? /* @__PURE__ */ M(a, {
|
|
154
158
|
type: "secondary",
|
|
155
159
|
children: h.emptyMessage
|
|
156
|
-
}) : /* @__PURE__ */ M(
|
|
160
|
+
}) : /* @__PURE__ */ M(E, {
|
|
157
161
|
role: "list",
|
|
158
162
|
className: "gap-0",
|
|
159
|
-
children:
|
|
163
|
+
children: e.map((e) => /* @__PURE__ */ M(q, {
|
|
160
164
|
item: e,
|
|
161
165
|
onDelete: l,
|
|
162
166
|
onCopy: u,
|
|
@@ -172,11 +176,11 @@ var W = {
|
|
|
172
176
|
})
|
|
173
177
|
});
|
|
174
178
|
});
|
|
175
|
-
|
|
176
|
-
function
|
|
177
|
-
let [u,
|
|
179
|
+
K.displayName = "ApiKeyList";
|
|
180
|
+
function q({ item: e, onDelete: t, onCopy: n, copyMenuLabel: r, copiedMenuLabel: i, deleteMenuLabel: o, rowMenuAria: s, copyToastSuccess: c, copyToastError: l }) {
|
|
181
|
+
let [u, d] = j(!1), f = A(async () => {
|
|
178
182
|
try {
|
|
179
|
-
await navigator.clipboard.writeText(e.value),
|
|
183
|
+
await navigator.clipboard.writeText(e.value), d(!0), setTimeout(() => d(!1), 1500), V.success(c), n?.(e.id, e);
|
|
180
184
|
} catch {
|
|
181
185
|
V.error(l);
|
|
182
186
|
}
|
|
@@ -185,12 +189,12 @@ function K({ item: e, onDelete: t, onCopy: n, copyMenuLabel: i, copiedMenuLabel:
|
|
|
185
189
|
n,
|
|
186
190
|
c,
|
|
187
191
|
l
|
|
188
|
-
]),
|
|
192
|
+
]), p = e.displayValue ?? e.value, m = [...e.copyable === !1 ? [] : [{
|
|
189
193
|
id: "copy",
|
|
190
|
-
label: u ?
|
|
194
|
+
label: u ? i : r,
|
|
191
195
|
icon: I,
|
|
192
196
|
onClick: () => {
|
|
193
|
-
|
|
197
|
+
f();
|
|
194
198
|
},
|
|
195
199
|
disabled: e.disabled
|
|
196
200
|
}], ...t ? [{
|
|
@@ -201,15 +205,15 @@ function K({ item: e, onDelete: t, onCopy: n, copyMenuLabel: i, copiedMenuLabel:
|
|
|
201
205
|
disabled: e.disabled,
|
|
202
206
|
onClick: () => t(e.id, e)
|
|
203
207
|
}] : []];
|
|
204
|
-
return /* @__PURE__ */ N(
|
|
208
|
+
return /* @__PURE__ */ N(O, {
|
|
205
209
|
size: "sm",
|
|
206
210
|
role: "listitem",
|
|
207
211
|
"data-slot": "api-key-row",
|
|
208
212
|
className: "flex-nowrap",
|
|
209
213
|
children: [
|
|
210
|
-
!!e.icon && /* @__PURE__ */ M(
|
|
214
|
+
!!e.icon && /* @__PURE__ */ M(w, {
|
|
211
215
|
variant: "icon",
|
|
212
|
-
children: /* @__PURE__ */ M(
|
|
216
|
+
children: /* @__PURE__ */ M(_, {
|
|
213
217
|
size: "sm",
|
|
214
218
|
shape: "square",
|
|
215
219
|
tone: "neutral",
|
|
@@ -217,124 +221,119 @@ function K({ item: e, onDelete: t, onCopy: n, copyMenuLabel: i, copiedMenuLabel:
|
|
|
217
221
|
children: e.icon
|
|
218
222
|
})
|
|
219
223
|
}),
|
|
220
|
-
/* @__PURE__ */ N(
|
|
224
|
+
/* @__PURE__ */ N(D, {
|
|
221
225
|
className: "min-w-0 flex-row items-center gap-space-md",
|
|
222
|
-
children: [/* @__PURE__ */ M(
|
|
226
|
+
children: [/* @__PURE__ */ M(a, {
|
|
223
227
|
tag: "span",
|
|
224
228
|
weight: "medium",
|
|
225
229
|
className: "w-20 shrink-0 truncate @md/api-key-list:w-24",
|
|
226
230
|
children: e.name
|
|
227
|
-
}), /* @__PURE__ */ M(
|
|
231
|
+
}), /* @__PURE__ */ M(g, {
|
|
228
232
|
className: "min-w-0 flex-1 truncate rounded-inner bg-muted px-space-md py-space-xs",
|
|
229
|
-
children:
|
|
233
|
+
children: p
|
|
230
234
|
})]
|
|
231
235
|
}),
|
|
232
|
-
/* @__PURE__ */ M(
|
|
236
|
+
/* @__PURE__ */ M(T, {
|
|
233
237
|
className: "shrink-0",
|
|
234
|
-
children: /* @__PURE__ */ M(
|
|
235
|
-
actions:
|
|
238
|
+
children: /* @__PURE__ */ M(h, {
|
|
239
|
+
actions: m,
|
|
236
240
|
srText: s,
|
|
237
241
|
align: "end",
|
|
238
242
|
closeOnSelect: !0,
|
|
239
|
-
buttonProps: {
|
|
240
|
-
buttonStyle: "ghost",
|
|
241
|
-
tone: "secondary",
|
|
242
|
-
size: "sm",
|
|
243
|
-
className: "size-action-sm"
|
|
244
|
-
}
|
|
243
|
+
buttonProps: { size: G }
|
|
245
244
|
})
|
|
246
245
|
})
|
|
247
246
|
]
|
|
248
247
|
});
|
|
249
248
|
}
|
|
250
|
-
|
|
249
|
+
q.displayName = "ApiKeyRow";
|
|
251
250
|
//#endregion
|
|
252
251
|
//#region src/components/blocks/admin/action-surfaces/index.tsx
|
|
253
|
-
function
|
|
254
|
-
return /* @__PURE__ */ M(
|
|
252
|
+
function J({ title: e, description: t, confirmation: r, action: i, icon: o, padding: s = "md", surface: c = "card", className: d }) {
|
|
253
|
+
return /* @__PURE__ */ M(re, {
|
|
255
254
|
"data-component": "sensitive-action-card",
|
|
256
255
|
"data-slot": "sensitive-action-card",
|
|
257
|
-
padding:
|
|
258
|
-
surface:
|
|
259
|
-
className:
|
|
256
|
+
padding: s,
|
|
257
|
+
surface: c,
|
|
258
|
+
className: n("sensitive-action-card--component", u.destructive.edge, d),
|
|
260
259
|
contentClassName: "sensitive-action-card--content grid gap-space-lg",
|
|
261
|
-
children: /* @__PURE__ */ N(
|
|
260
|
+
children: /* @__PURE__ */ N(l, {
|
|
262
261
|
direction: "horizontal",
|
|
263
262
|
align: "start",
|
|
264
263
|
gap: "lg",
|
|
265
264
|
className: "min-w-0",
|
|
266
265
|
children: [
|
|
267
|
-
!!
|
|
268
|
-
icon:
|
|
266
|
+
!!o && /* @__PURE__ */ M(_, {
|
|
267
|
+
icon: o,
|
|
269
268
|
tone: "destructive",
|
|
270
269
|
shape: "square",
|
|
271
270
|
size: "md"
|
|
272
271
|
}),
|
|
273
|
-
/* @__PURE__ */ N(
|
|
272
|
+
/* @__PURE__ */ N(l, {
|
|
274
273
|
gap: "normal",
|
|
275
274
|
className: "min-w-0 flex-1",
|
|
276
275
|
children: [
|
|
277
|
-
/* @__PURE__ */ M(
|
|
276
|
+
/* @__PURE__ */ M(a, {
|
|
278
277
|
weight: "semibold",
|
|
279
278
|
children: e
|
|
280
279
|
}),
|
|
281
|
-
!!
|
|
280
|
+
!!t && /* @__PURE__ */ M(a, {
|
|
282
281
|
type: "secondary",
|
|
283
|
-
children:
|
|
282
|
+
children: t
|
|
284
283
|
}),
|
|
285
|
-
!!
|
|
284
|
+
!!r && /* @__PURE__ */ M(a, {
|
|
286
285
|
tag: "div",
|
|
287
286
|
type: "secondary",
|
|
288
287
|
role: "note",
|
|
289
288
|
className: "sensitive-action-card--confirmation",
|
|
290
|
-
children:
|
|
289
|
+
children: r
|
|
291
290
|
})
|
|
292
291
|
]
|
|
293
292
|
}),
|
|
294
|
-
!!
|
|
293
|
+
!!i && /* @__PURE__ */ M("div", {
|
|
295
294
|
className: "shrink-0",
|
|
296
|
-
children:
|
|
295
|
+
children: i
|
|
297
296
|
})
|
|
298
297
|
]
|
|
299
298
|
})
|
|
300
299
|
});
|
|
301
300
|
}
|
|
302
|
-
var
|
|
301
|
+
var Y = {
|
|
303
302
|
title: "Secret created",
|
|
304
303
|
description: "Copy this value now. It may not be shown again.",
|
|
305
304
|
copySuccess: "Secret copied"
|
|
306
305
|
};
|
|
307
|
-
function
|
|
308
|
-
let h =
|
|
309
|
-
return /* @__PURE__ */ N(
|
|
306
|
+
function X({ value: e, displayValue: r, title: i, description: o, action: s, className: c, strings: u }) {
|
|
307
|
+
let h = t(Y, u);
|
|
308
|
+
return /* @__PURE__ */ N(p, {
|
|
310
309
|
"data-component": "copyable-secret-alert",
|
|
311
310
|
"data-slot": "copyable-secret-alert",
|
|
312
311
|
tone: "success",
|
|
313
|
-
className:
|
|
312
|
+
className: n("copyable-secret-alert--component", c),
|
|
314
313
|
children: [
|
|
315
314
|
/* @__PURE__ */ M(L, { className: "size-icon" }),
|
|
316
|
-
/* @__PURE__ */ M(
|
|
317
|
-
/* @__PURE__ */ M(
|
|
315
|
+
/* @__PURE__ */ M(m, { children: i ?? h.title }),
|
|
316
|
+
/* @__PURE__ */ M(d, { children: /* @__PURE__ */ N(l, {
|
|
318
317
|
render: /* @__PURE__ */ M("span", {}),
|
|
319
318
|
gap: "md",
|
|
320
|
-
children: [/* @__PURE__ */ M(
|
|
319
|
+
children: [/* @__PURE__ */ M(a, {
|
|
321
320
|
tag: "span",
|
|
322
321
|
type: "secondary",
|
|
323
|
-
children:
|
|
324
|
-
}), /* @__PURE__ */ M(
|
|
325
|
-
value:
|
|
326
|
-
displayValue:
|
|
322
|
+
children: o ?? h.description
|
|
323
|
+
}), /* @__PURE__ */ M(b, {
|
|
324
|
+
value: e,
|
|
325
|
+
displayValue: r ?? e,
|
|
327
326
|
mono: !0,
|
|
328
327
|
truncate: !0,
|
|
329
328
|
className: "copyable-secret-alert--value max-w-full rounded-inner bg-background px-space-md py-space-xs",
|
|
330
329
|
strings: { success: h.copySuccess }
|
|
331
330
|
})]
|
|
332
331
|
}) }),
|
|
333
|
-
!!
|
|
332
|
+
!!s && /* @__PURE__ */ M(f, { children: s })
|
|
334
333
|
]
|
|
335
334
|
});
|
|
336
335
|
}
|
|
337
|
-
var
|
|
336
|
+
var Z = {
|
|
338
337
|
title: "API tokens",
|
|
339
338
|
description: "Create and revoke access tokens.",
|
|
340
339
|
nameLabel: "Token name",
|
|
@@ -345,20 +344,20 @@ var X = {
|
|
|
345
344
|
createdTitle: "Token created",
|
|
346
345
|
createdDescription: "Copy this token now. It will not be shown again."
|
|
347
346
|
};
|
|
348
|
-
function
|
|
349
|
-
let F = e(
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
]),
|
|
354
|
-
|
|
355
|
-
}, [
|
|
356
|
-
|
|
357
|
-
}, [
|
|
358
|
-
let n = t === !0 ? Array.from(/* @__PURE__ */ new Set([...
|
|
359
|
-
|
|
360
|
-
}, [
|
|
361
|
-
|
|
347
|
+
function Q({ tokens: u, abilities: d = [], createdToken: f, name: p, defaultName: m = "", onNameChange: h, selectedAbilities: g, defaultSelectedAbilities: _ = [], onSelectedAbilitiesChange: v, onCreateToken: b, onRevokeToken: x, onRevokeAllTokens: S, onAfterMutate: C, onError: w, creating: T = !1, revokingAll: E = !1, disabled: D = !1, className: O, strings: k }) {
|
|
348
|
+
let P = t(Z, k), { defaultTextSize: F } = e(), I = n(te, o[F ?? "sm"], s.normal), L = p !== void 0, R = g !== void 0, [B, V] = j(m), [H, U] = j([..._]), [W, G] = j(null), q = L ? p : B, J = ie(() => R ? [...g] : H, [
|
|
349
|
+
H,
|
|
350
|
+
R,
|
|
351
|
+
g
|
|
352
|
+
]), Y = T || W === "create", Q = E || W === "revoke-all", ae = A((e) => {
|
|
353
|
+
L || V(e), h?.(e);
|
|
354
|
+
}, [L, h]), oe = A((e) => {
|
|
355
|
+
R || U(e), v?.(e);
|
|
356
|
+
}, [R, v]), se = A((e, t) => {
|
|
357
|
+
let n = t === !0 ? Array.from(/* @__PURE__ */ new Set([...J, e])) : J.filter((t) => t !== e);
|
|
358
|
+
oe(n);
|
|
359
|
+
}, [J, oe]), $ = A(async (e, t, n) => {
|
|
360
|
+
G(e);
|
|
362
361
|
try {
|
|
363
362
|
await t(), C?.({
|
|
364
363
|
type: e,
|
|
@@ -367,87 +366,90 @@ function Z({ tokens: s, abilities: c = [], createdToken: l, name: u, defaultName
|
|
|
367
366
|
} catch (t) {
|
|
368
367
|
w?.(t, { phase: e });
|
|
369
368
|
} finally {
|
|
370
|
-
|
|
369
|
+
G(null);
|
|
371
370
|
}
|
|
372
|
-
}, [C, w]),
|
|
371
|
+
}, [C, w]), ce = A(() => {
|
|
373
372
|
if (!b) return;
|
|
374
373
|
let e = {
|
|
375
|
-
name:
|
|
376
|
-
abilities:
|
|
374
|
+
name: q,
|
|
375
|
+
abilities: J
|
|
377
376
|
};
|
|
378
377
|
$("create", () => b(e), e);
|
|
379
378
|
}, [
|
|
380
379
|
b,
|
|
380
|
+
J,
|
|
381
381
|
q,
|
|
382
|
-
K,
|
|
383
382
|
$
|
|
384
|
-
]),
|
|
383
|
+
]), le = A((e, t) => {
|
|
385
384
|
x && $("revoke", () => x(e, t), t);
|
|
386
|
-
}, [x, $]),
|
|
385
|
+
}, [x, $]), ue = A(() => {
|
|
387
386
|
S && $("revoke-all", S);
|
|
388
387
|
}, [S, $]);
|
|
389
|
-
return /* @__PURE__ */ N(
|
|
388
|
+
return /* @__PURE__ */ N(re, {
|
|
390
389
|
"data-component": "api-token-manager",
|
|
391
390
|
"data-slot": "api-token-manager",
|
|
392
|
-
title:
|
|
393
|
-
description:
|
|
394
|
-
headerAction: S ? /* @__PURE__ */ M(
|
|
391
|
+
title: P.title,
|
|
392
|
+
description: P.description,
|
|
393
|
+
headerAction: S ? /* @__PURE__ */ M(r, {
|
|
395
394
|
type: "button",
|
|
396
395
|
tone: "destructive",
|
|
397
396
|
buttonStyle: "outline",
|
|
398
|
-
loading:
|
|
399
|
-
disabled: D ||
|
|
400
|
-
onClick:
|
|
401
|
-
children:
|
|
397
|
+
loading: Q,
|
|
398
|
+
disabled: D || u.length === 0,
|
|
399
|
+
onClick: ue,
|
|
400
|
+
children: P.revokeAll
|
|
402
401
|
}) : void 0,
|
|
403
|
-
className:
|
|
404
|
-
children: [/* @__PURE__ */ N(
|
|
402
|
+
className: n("api-token-manager--component", O),
|
|
403
|
+
children: [/* @__PURE__ */ N(l, {
|
|
405
404
|
gap: "xl",
|
|
406
405
|
className: "api-token-manager--content",
|
|
407
|
-
children: [!!
|
|
408
|
-
value:
|
|
409
|
-
displayValue:
|
|
410
|
-
title:
|
|
411
|
-
description:
|
|
406
|
+
children: [!!f && /* @__PURE__ */ M(X, {
|
|
407
|
+
value: f.value,
|
|
408
|
+
displayValue: f.displayValue,
|
|
409
|
+
title: f.name ?? P.createdTitle,
|
|
410
|
+
description: P.createdDescription
|
|
412
411
|
}), /* @__PURE__ */ M("div", {
|
|
413
412
|
className: "api-token-manager--form",
|
|
414
|
-
children: /* @__PURE__ */ N(
|
|
413
|
+
children: /* @__PURE__ */ N(l, {
|
|
415
414
|
gap: "lg",
|
|
416
415
|
children: [
|
|
417
|
-
/* @__PURE__ */ M(
|
|
418
|
-
label:
|
|
419
|
-
children: /* @__PURE__ */ M(
|
|
420
|
-
value:
|
|
421
|
-
placeholder:
|
|
422
|
-
onChange: (e) =>
|
|
423
|
-
disabled: D ||
|
|
416
|
+
/* @__PURE__ */ M(ee, {
|
|
417
|
+
label: P.nameLabel,
|
|
418
|
+
children: /* @__PURE__ */ M(y, {
|
|
419
|
+
value: q,
|
|
420
|
+
placeholder: P.namePlaceholder,
|
|
421
|
+
onChange: (e) => ae(e.currentTarget.value),
|
|
422
|
+
disabled: D || Y
|
|
424
423
|
})
|
|
425
424
|
}),
|
|
426
|
-
|
|
425
|
+
d.length > 0 && /* @__PURE__ */ N(l, {
|
|
427
426
|
gap: "md",
|
|
428
427
|
className: "api-token-manager--abilities",
|
|
429
|
-
children: [/* @__PURE__ */ M(
|
|
428
|
+
children: [/* @__PURE__ */ M(i, { children: P.abilitiesLabel }), /* @__PURE__ */ M(c, {
|
|
430
429
|
columns: {
|
|
431
430
|
base: 1,
|
|
432
431
|
sm: 2
|
|
433
432
|
},
|
|
434
433
|
gap: "md",
|
|
435
|
-
children:
|
|
436
|
-
let t =
|
|
434
|
+
children: d.map((e) => {
|
|
435
|
+
let t = J.includes(e.id);
|
|
437
436
|
return /* @__PURE__ */ N("label", {
|
|
438
|
-
className: "flex min-w-0 items-start gap-space-md rounded-radius border border-border
|
|
439
|
-
children: [/* @__PURE__ */ M(
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
437
|
+
className: "flex min-w-0 items-start gap-space-md rounded-radius border border-border bg-background px-row-x py-row-y",
|
|
438
|
+
children: [/* @__PURE__ */ M("span", {
|
|
439
|
+
className: I,
|
|
440
|
+
children: /* @__PURE__ */ M(ne, {
|
|
441
|
+
checked: t,
|
|
442
|
+
disabled: D || Y || e.disabled,
|
|
443
|
+
onCheckedChange: (t) => se(e.id, t)
|
|
444
|
+
})
|
|
445
|
+
}), /* @__PURE__ */ N(l, {
|
|
444
446
|
render: /* @__PURE__ */ M("span", {}),
|
|
445
447
|
gap: "dense",
|
|
446
|
-
children: [/* @__PURE__ */ M(
|
|
448
|
+
children: [/* @__PURE__ */ M(a, {
|
|
447
449
|
tag: "span",
|
|
448
450
|
weight: "medium",
|
|
449
451
|
children: e.label
|
|
450
|
-
}), !!e.description && /* @__PURE__ */ M(
|
|
452
|
+
}), !!e.description && /* @__PURE__ */ M(a, {
|
|
451
453
|
tag: "span",
|
|
452
454
|
size: "xs",
|
|
453
455
|
type: "secondary",
|
|
@@ -458,30 +460,30 @@ function Z({ tokens: s, abilities: c = [], createdToken: l, name: u, defaultName
|
|
|
458
460
|
})
|
|
459
461
|
})]
|
|
460
462
|
}),
|
|
461
|
-
/* @__PURE__ */ M(
|
|
463
|
+
/* @__PURE__ */ M(l, {
|
|
462
464
|
direction: "horizontal",
|
|
463
465
|
gap: "none",
|
|
464
466
|
justify: "end",
|
|
465
|
-
children: /* @__PURE__ */ N(
|
|
467
|
+
children: /* @__PURE__ */ N(r, {
|
|
466
468
|
type: "button",
|
|
467
469
|
tone: "primary",
|
|
468
|
-
loading:
|
|
469
|
-
disabled: D || !b ||
|
|
470
|
-
onClick:
|
|
471
|
-
children: [/* @__PURE__ */ M(z, { className: "size-icon" }),
|
|
470
|
+
loading: Y,
|
|
471
|
+
disabled: D || !b || q.trim().length === 0,
|
|
472
|
+
onClick: ce,
|
|
473
|
+
children: [/* @__PURE__ */ M(z, { className: "size-icon" }), P.create]
|
|
472
474
|
})
|
|
473
475
|
})
|
|
474
476
|
]
|
|
475
477
|
})
|
|
476
478
|
})]
|
|
477
|
-
}), /* @__PURE__ */ M(
|
|
478
|
-
items:
|
|
479
|
-
onDelete: x ?
|
|
479
|
+
}), /* @__PURE__ */ M(K, {
|
|
480
|
+
items: u,
|
|
481
|
+
onDelete: x ? le : void 0
|
|
480
482
|
})]
|
|
481
483
|
});
|
|
482
484
|
}
|
|
483
|
-
|
|
485
|
+
Q.displayName = "ApiTokenManager";
|
|
484
486
|
//#endregion
|
|
485
|
-
export {
|
|
487
|
+
export { K as ApiKeyList, Q as ApiTokenManager, X as CopyableSecretAlert, U as RolePermission, J as SensitiveActionCard, W as defaultApiKeyListStrings, Z as defaultApiTokenManagerStrings, Y as defaultCopyableSecretAlertStrings };
|
|
486
488
|
|
|
487
489
|
//# sourceMappingURL=admin.js.map
|