@rookcom/monarch-react 0.0.0-canary-20261103180711
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 +14 -0
- package/README.md +5 -0
- package/dist/components/actions/button/button.d.ts +32 -0
- package/dist/components/actions/button/button.d.ts.map +1 -0
- package/dist/components/actions/button/button.js +30 -0
- package/dist/components/actions/button/button.js.map +1 -0
- package/dist/components/actions/button/index.d.ts +2 -0
- package/dist/components/actions/button/index.d.ts.map +1 -0
- package/dist/components/actions/button/index.js +2 -0
- package/dist/components/actions/button/index.js.map +1 -0
- package/dist/components/actions/copy-button/copy-button.d.ts +71 -0
- package/dist/components/actions/copy-button/copy-button.d.ts.map +1 -0
- package/dist/components/actions/copy-button/copy-button.js +150 -0
- package/dist/components/actions/copy-button/copy-button.js.map +1 -0
- package/dist/components/actions/copy-button/index.d.ts +2 -0
- package/dist/components/actions/copy-button/index.d.ts.map +1 -0
- package/dist/components/actions/copy-button/index.js +2 -0
- package/dist/components/actions/copy-button/index.js.map +1 -0
- package/dist/components/actions/copy-field/copy-field.d.ts +47 -0
- package/dist/components/actions/copy-field/copy-field.d.ts.map +1 -0
- package/dist/components/actions/copy-field/copy-field.js +37 -0
- package/dist/components/actions/copy-field/copy-field.js.map +1 -0
- package/dist/components/actions/copy-field/index.d.ts +2 -0
- package/dist/components/actions/copy-field/index.d.ts.map +1 -0
- package/dist/components/actions/copy-field/index.js +2 -0
- package/dist/components/actions/copy-field/index.js.map +1 -0
- package/dist/components/data-display/badge/badge.d.ts +13 -0
- package/dist/components/data-display/badge/badge.d.ts.map +1 -0
- package/dist/components/data-display/badge/badge.js +7 -0
- package/dist/components/data-display/badge/badge.js.map +1 -0
- package/dist/components/data-display/badge/index.d.ts +2 -0
- package/dist/components/data-display/badge/index.d.ts.map +1 -0
- package/dist/components/data-display/badge/index.js +2 -0
- package/dist/components/data-display/badge/index.js.map +1 -0
- package/dist/components/data-display/card/card.d.ts +18 -0
- package/dist/components/data-display/card/card.d.ts.map +1 -0
- package/dist/components/data-display/card/card.js +21 -0
- package/dist/components/data-display/card/card.js.map +1 -0
- package/dist/components/data-display/card/index.d.ts +2 -0
- package/dist/components/data-display/card/index.d.ts.map +1 -0
- package/dist/components/data-display/card/index.js +2 -0
- package/dist/components/data-display/card/index.js.map +1 -0
- package/dist/components/data-display/description-list/description-list.d.ts +17 -0
- package/dist/components/data-display/description-list/description-list.d.ts.map +1 -0
- package/dist/components/data-display/description-list/description-list.js +10 -0
- package/dist/components/data-display/description-list/description-list.js.map +1 -0
- package/dist/components/data-display/description-list/index.d.ts +2 -0
- package/dist/components/data-display/description-list/index.d.ts.map +1 -0
- package/dist/components/data-display/description-list/index.js +2 -0
- package/dist/components/data-display/description-list/index.js.map +1 -0
- package/dist/components/data-display/progress-bar/index.d.ts +2 -0
- package/dist/components/data-display/progress-bar/index.d.ts.map +1 -0
- package/dist/components/data-display/progress-bar/index.js +2 -0
- package/dist/components/data-display/progress-bar/index.js.map +1 -0
- package/dist/components/data-display/progress-bar/progress-bar.d.ts +14 -0
- package/dist/components/data-display/progress-bar/progress-bar.d.ts.map +1 -0
- package/dist/components/data-display/progress-bar/progress-bar.js +12 -0
- package/dist/components/data-display/progress-bar/progress-bar.js.map +1 -0
- package/dist/components/data-display/stat-card/index.d.ts +2 -0
- package/dist/components/data-display/stat-card/index.d.ts.map +1 -0
- package/dist/components/data-display/stat-card/index.js +2 -0
- package/dist/components/data-display/stat-card/index.js.map +1 -0
- package/dist/components/data-display/stat-card/stat-card.d.ts +19 -0
- package/dist/components/data-display/stat-card/stat-card.d.ts.map +1 -0
- package/dist/components/data-display/stat-card/stat-card.js +11 -0
- package/dist/components/data-display/stat-card/stat-card.js.map +1 -0
- package/dist/components/data-display/status-badge/index.d.ts +2 -0
- package/dist/components/data-display/status-badge/index.d.ts.map +1 -0
- package/dist/components/data-display/status-badge/index.js +2 -0
- package/dist/components/data-display/status-badge/index.js.map +1 -0
- package/dist/components/data-display/status-badge/status-badge.d.ts +169 -0
- package/dist/components/data-display/status-badge/status-badge.d.ts.map +1 -0
- package/dist/components/data-display/status-badge/status-badge.js +139 -0
- package/dist/components/data-display/status-badge/status-badge.js.map +1 -0
- package/dist/components/data-grid/data-table/data-table.d.ts +53 -0
- package/dist/components/data-grid/data-table/data-table.d.ts.map +1 -0
- package/dist/components/data-grid/data-table/data-table.js +47 -0
- package/dist/components/data-grid/data-table/data-table.js.map +1 -0
- package/dist/components/data-grid/data-table/index.d.ts +2 -0
- package/dist/components/data-grid/data-table/index.d.ts.map +1 -0
- package/dist/components/data-grid/data-table/index.js +2 -0
- package/dist/components/data-grid/data-table/index.js.map +1 -0
- package/dist/components/feedback/alert/alert.d.ts +17 -0
- package/dist/components/feedback/alert/alert.d.ts.map +1 -0
- package/dist/components/feedback/alert/alert.js +17 -0
- package/dist/components/feedback/alert/alert.js.map +1 -0
- package/dist/components/feedback/alert/index.d.ts +2 -0
- package/dist/components/feedback/alert/index.d.ts.map +1 -0
- package/dist/components/feedback/alert/index.js +2 -0
- package/dist/components/feedback/alert/index.js.map +1 -0
- package/dist/components/feedback/empty-state/empty-state.d.ts +17 -0
- package/dist/components/feedback/empty-state/empty-state.d.ts.map +1 -0
- package/dist/components/feedback/empty-state/empty-state.js +10 -0
- package/dist/components/feedback/empty-state/empty-state.js.map +1 -0
- package/dist/components/feedback/empty-state/index.d.ts +2 -0
- package/dist/components/feedback/empty-state/index.d.ts.map +1 -0
- package/dist/components/feedback/empty-state/index.js +2 -0
- package/dist/components/feedback/empty-state/index.js.map +1 -0
- package/dist/components/feedback/error-state/error-state.d.ts +23 -0
- package/dist/components/feedback/error-state/error-state.d.ts.map +1 -0
- package/dist/components/feedback/error-state/error-state.js +15 -0
- package/dist/components/feedback/error-state/error-state.js.map +1 -0
- package/dist/components/feedback/error-state/index.d.ts +2 -0
- package/dist/components/feedback/error-state/index.d.ts.map +1 -0
- package/dist/components/feedback/error-state/index.js +2 -0
- package/dist/components/feedback/error-state/index.js.map +1 -0
- package/dist/components/feedback/skeleton/index.d.ts +2 -0
- package/dist/components/feedback/skeleton/index.d.ts.map +1 -0
- package/dist/components/feedback/skeleton/index.js +2 -0
- package/dist/components/feedback/skeleton/index.js.map +1 -0
- package/dist/components/feedback/skeleton/skeleton.d.ts +12 -0
- package/dist/components/feedback/skeleton/skeleton.d.ts.map +1 -0
- package/dist/components/feedback/skeleton/skeleton.js +10 -0
- package/dist/components/feedback/skeleton/skeleton.js.map +1 -0
- package/dist/components/feedback/spinner/index.d.ts +2 -0
- package/dist/components/feedback/spinner/index.d.ts.map +1 -0
- package/dist/components/feedback/spinner/index.js +2 -0
- package/dist/components/feedback/spinner/index.js.map +1 -0
- package/dist/components/feedback/spinner/spinner.d.ts +12 -0
- package/dist/components/feedback/spinner/spinner.d.ts.map +1 -0
- package/dist/components/feedback/spinner/spinner.js +10 -0
- package/dist/components/feedback/spinner/spinner.js.map +1 -0
- package/dist/components/feedback/toast/index.d.ts +2 -0
- package/dist/components/feedback/toast/index.d.ts.map +1 -0
- package/dist/components/feedback/toast/index.js +2 -0
- package/dist/components/feedback/toast/index.js.map +1 -0
- package/dist/components/feedback/toast/toast.d.ts +40 -0
- package/dist/components/feedback/toast/toast.d.ts.map +1 -0
- package/dist/components/feedback/toast/toast.js +67 -0
- package/dist/components/feedback/toast/toast.js.map +1 -0
- package/dist/components/forms/checkbox/checkbox.d.ts +15 -0
- package/dist/components/forms/checkbox/checkbox.d.ts.map +1 -0
- package/dist/components/forms/checkbox/checkbox.js +23 -0
- package/dist/components/forms/checkbox/checkbox.js.map +1 -0
- package/dist/components/forms/checkbox/index.d.ts +2 -0
- package/dist/components/forms/checkbox/index.d.ts.map +1 -0
- package/dist/components/forms/checkbox/index.js +2 -0
- package/dist/components/forms/checkbox/index.js.map +1 -0
- package/dist/components/forms/combobox/combobox.d.ts +35 -0
- package/dist/components/forms/combobox/combobox.d.ts.map +1 -0
- package/dist/components/forms/combobox/combobox.js +152 -0
- package/dist/components/forms/combobox/combobox.js.map +1 -0
- package/dist/components/forms/combobox/index.d.ts +2 -0
- package/dist/components/forms/combobox/index.d.ts.map +1 -0
- package/dist/components/forms/combobox/index.js +2 -0
- package/dist/components/forms/combobox/index.js.map +1 -0
- package/dist/components/forms/form-field/form-field.d.ts +65 -0
- package/dist/components/forms/form-field/form-field.d.ts.map +1 -0
- package/dist/components/forms/form-field/form-field.js +101 -0
- package/dist/components/forms/form-field/form-field.js.map +1 -0
- package/dist/components/forms/form-field/index.d.ts +2 -0
- package/dist/components/forms/form-field/index.d.ts.map +1 -0
- package/dist/components/forms/form-field/index.js +2 -0
- package/dist/components/forms/form-field/index.js.map +1 -0
- package/dist/components/forms/segmented-control/index.d.ts +2 -0
- package/dist/components/forms/segmented-control/index.d.ts.map +1 -0
- package/dist/components/forms/segmented-control/index.js +2 -0
- package/dist/components/forms/segmented-control/index.js.map +1 -0
- package/dist/components/forms/segmented-control/segmented-control.d.ts +62 -0
- package/dist/components/forms/segmented-control/segmented-control.d.ts.map +1 -0
- package/dist/components/forms/segmented-control/segmented-control.js +139 -0
- package/dist/components/forms/segmented-control/segmented-control.js.map +1 -0
- package/dist/components/forms/select/index.d.ts +2 -0
- package/dist/components/forms/select/index.d.ts.map +1 -0
- package/dist/components/forms/select/index.js +2 -0
- package/dist/components/forms/select/index.js.map +1 -0
- package/dist/components/forms/select/select.d.ts +27 -0
- package/dist/components/forms/select/select.d.ts.map +1 -0
- package/dist/components/forms/select/select.js +39 -0
- package/dist/components/forms/select/select.js.map +1 -0
- package/dist/components/forms/switch/index.d.ts +2 -0
- package/dist/components/forms/switch/index.d.ts.map +1 -0
- package/dist/components/forms/switch/index.js +2 -0
- package/dist/components/forms/switch/index.js.map +1 -0
- package/dist/components/forms/switch/switch.d.ts +13 -0
- package/dist/components/forms/switch/switch.d.ts.map +1 -0
- package/dist/components/forms/switch/switch.js +21 -0
- package/dist/components/forms/switch/switch.js.map +1 -0
- package/dist/components/forms/text-field/index.d.ts +2 -0
- package/dist/components/forms/text-field/index.d.ts.map +1 -0
- package/dist/components/forms/text-field/index.js +2 -0
- package/dist/components/forms/text-field/index.js.map +1 -0
- package/dist/components/forms/text-field/text-field.d.ts +15 -0
- package/dist/components/forms/text-field/text-field.d.ts.map +1 -0
- package/dist/components/forms/text-field/text-field.js +14 -0
- package/dist/components/forms/text-field/text-field.js.map +1 -0
- package/dist/components/identity/avatar/avatar.d.ts +16 -0
- package/dist/components/identity/avatar/avatar.d.ts.map +1 -0
- package/dist/components/identity/avatar/avatar.js +28 -0
- package/dist/components/identity/avatar/avatar.js.map +1 -0
- package/dist/components/identity/avatar/index.d.ts +2 -0
- package/dist/components/identity/avatar/index.d.ts.map +1 -0
- package/dist/components/identity/avatar/index.js +2 -0
- package/dist/components/identity/avatar/index.js.map +1 -0
- package/dist/components/layout/separator/index.d.ts +2 -0
- package/dist/components/layout/separator/index.d.ts.map +1 -0
- package/dist/components/layout/separator/index.js +2 -0
- package/dist/components/layout/separator/index.js.map +1 -0
- package/dist/components/layout/separator/separator.d.ts +4 -0
- package/dist/components/layout/separator/separator.d.ts.map +1 -0
- package/dist/components/layout/separator/separator.js +9 -0
- package/dist/components/layout/separator/separator.js.map +1 -0
- package/dist/components/layout/visually-hidden/index.d.ts +2 -0
- package/dist/components/layout/visually-hidden/index.d.ts.map +1 -0
- package/dist/components/layout/visually-hidden/index.js +2 -0
- package/dist/components/layout/visually-hidden/index.js.map +1 -0
- package/dist/components/layout/visually-hidden/visually-hidden.d.ts +4 -0
- package/dist/components/layout/visually-hidden/visually-hidden.d.ts.map +1 -0
- package/dist/components/layout/visually-hidden/visually-hidden.js +7 -0
- package/dist/components/layout/visually-hidden/visually-hidden.js.map +1 -0
- package/dist/components/navigation/breadcrumb/breadcrumb.d.ts +19 -0
- package/dist/components/navigation/breadcrumb/breadcrumb.d.ts.map +1 -0
- package/dist/components/navigation/breadcrumb/breadcrumb.js +19 -0
- package/dist/components/navigation/breadcrumb/breadcrumb.js.map +1 -0
- package/dist/components/navigation/breadcrumb/index.d.ts +2 -0
- package/dist/components/navigation/breadcrumb/index.d.ts.map +1 -0
- package/dist/components/navigation/breadcrumb/index.js +2 -0
- package/dist/components/navigation/breadcrumb/index.js.map +1 -0
- package/dist/components/navigation/link/index.d.ts +2 -0
- package/dist/components/navigation/link/index.d.ts.map +1 -0
- package/dist/components/navigation/link/index.js +2 -0
- package/dist/components/navigation/link/index.js.map +1 -0
- package/dist/components/navigation/link/link.d.ts +13 -0
- package/dist/components/navigation/link/link.d.ts.map +1 -0
- package/dist/components/navigation/link/link.js +18 -0
- package/dist/components/navigation/link/link.js.map +1 -0
- package/dist/components/navigation/pagination/index.d.ts +2 -0
- package/dist/components/navigation/pagination/index.d.ts.map +1 -0
- package/dist/components/navigation/pagination/index.js +2 -0
- package/dist/components/navigation/pagination/index.js.map +1 -0
- package/dist/components/navigation/pagination/pagination.d.ts +18 -0
- package/dist/components/navigation/pagination/pagination.d.ts.map +1 -0
- package/dist/components/navigation/pagination/pagination.js +40 -0
- package/dist/components/navigation/pagination/pagination.js.map +1 -0
- package/dist/components/navigation/tabs/index.d.ts +2 -0
- package/dist/components/navigation/tabs/index.d.ts.map +1 -0
- package/dist/components/navigation/tabs/index.js +2 -0
- package/dist/components/navigation/tabs/index.js.map +1 -0
- package/dist/components/navigation/tabs/tabs.d.ts +12 -0
- package/dist/components/navigation/tabs/tabs.d.ts.map +1 -0
- package/dist/components/navigation/tabs/tabs.js +17 -0
- package/dist/components/navigation/tabs/tabs.js.map +1 -0
- package/dist/components/overlays/dialog/dialog.d.ts +22 -0
- package/dist/components/overlays/dialog/dialog.d.ts.map +1 -0
- package/dist/components/overlays/dialog/dialog.js +33 -0
- package/dist/components/overlays/dialog/dialog.js.map +1 -0
- package/dist/components/overlays/dialog/index.d.ts +2 -0
- package/dist/components/overlays/dialog/index.d.ts.map +1 -0
- package/dist/components/overlays/dialog/index.js +2 -0
- package/dist/components/overlays/dialog/index.js.map +1 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu.d.ts +24 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu.d.ts.map +1 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu.js +41 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu.js.map +1 -0
- package/dist/components/overlays/dropdown-menu/index.d.ts +2 -0
- package/dist/components/overlays/dropdown-menu/index.d.ts.map +1 -0
- package/dist/components/overlays/dropdown-menu/index.js +2 -0
- package/dist/components/overlays/dropdown-menu/index.js.map +1 -0
- package/dist/components/overlays/popover/index.d.ts +2 -0
- package/dist/components/overlays/popover/index.d.ts.map +1 -0
- package/dist/components/overlays/popover/index.js +2 -0
- package/dist/components/overlays/popover/index.js.map +1 -0
- package/dist/components/overlays/popover/popover.d.ts +8 -0
- package/dist/components/overlays/popover/popover.d.ts.map +1 -0
- package/dist/components/overlays/popover/popover.js +14 -0
- package/dist/components/overlays/popover/popover.js.map +1 -0
- package/dist/components/overlays/tooltip/index.d.ts +2 -0
- package/dist/components/overlays/tooltip/index.d.ts.map +1 -0
- package/dist/components/overlays/tooltip/index.js +2 -0
- package/dist/components/overlays/tooltip/index.js.map +1 -0
- package/dist/components/overlays/tooltip/tooltip.d.ts +20 -0
- package/dist/components/overlays/tooltip/tooltip.d.ts.map +1 -0
- package/dist/components/overlays/tooltip/tooltip.js +12 -0
- package/dist/components/overlays/tooltip/tooltip.js.map +1 -0
- package/dist/components/technical/secret-field/index.d.ts +2 -0
- package/dist/components/technical/secret-field/index.d.ts.map +1 -0
- package/dist/components/technical/secret-field/index.js +2 -0
- package/dist/components/technical/secret-field/index.js.map +1 -0
- package/dist/components/technical/secret-field/secret-field.d.ts +38 -0
- package/dist/components/technical/secret-field/secret-field.d.ts.map +1 -0
- package/dist/components/technical/secret-field/secret-field.js +42 -0
- package/dist/components/technical/secret-field/secret-field.js.map +1 -0
- package/dist/components/typography/kbd/index.d.ts +2 -0
- package/dist/components/typography/kbd/index.d.ts.map +1 -0
- package/dist/components/typography/kbd/index.js +2 -0
- package/dist/components/typography/kbd/index.js.map +1 -0
- package/dist/components/typography/kbd/kbd.d.ts +4 -0
- package/dist/components/typography/kbd/kbd.d.ts.map +1 -0
- package/dist/components/typography/kbd/kbd.js +7 -0
- package/dist/components/typography/kbd/kbd.js.map +1 -0
- package/dist/index.d.ts +43 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +46 -0
- package/dist/index.js.map +1 -0
- package/dist/internal/cx.d.ts +3 -0
- package/dist/internal/cx.d.ts.map +1 -0
- package/dist/internal/cx.js +6 -0
- package/dist/internal/cx.js.map +1 -0
- package/dist/internal/icons.d.ts +20 -0
- package/dist/internal/icons.d.ts.map +1 -0
- package/dist/internal/icons.js +63 -0
- package/dist/internal/icons.js.map +1 -0
- package/dist/manifest.json +4484 -0
- package/dist/patterns/actions/toolbar/index.d.ts +2 -0
- package/dist/patterns/actions/toolbar/index.d.ts.map +1 -0
- package/dist/patterns/actions/toolbar/index.js +2 -0
- package/dist/patterns/actions/toolbar/index.js.map +1 -0
- package/dist/patterns/actions/toolbar/toolbar.d.ts +20 -0
- package/dist/patterns/actions/toolbar/toolbar.d.ts.map +1 -0
- package/dist/patterns/actions/toolbar/toolbar.js +46 -0
- package/dist/patterns/actions/toolbar/toolbar.js.map +1 -0
- package/dist/patterns/layout/page-header/index.d.ts +2 -0
- package/dist/patterns/layout/page-header/index.d.ts.map +1 -0
- package/dist/patterns/layout/page-header/index.js +2 -0
- package/dist/patterns/layout/page-header/index.js.map +1 -0
- package/dist/patterns/layout/page-header/page-header.d.ts +17 -0
- package/dist/patterns/layout/page-header/page-header.d.ts.map +1 -0
- package/dist/patterns/layout/page-header/page-header.js +7 -0
- package/dist/patterns/layout/page-header/page-header.js.map +1 -0
- package/dist/patterns/layout/settings-section/index.d.ts +2 -0
- package/dist/patterns/layout/settings-section/index.d.ts.map +1 -0
- package/dist/patterns/layout/settings-section/index.js +2 -0
- package/dist/patterns/layout/settings-section/index.js.map +1 -0
- package/dist/patterns/layout/settings-section/settings-section.d.ts +33 -0
- package/dist/patterns/layout/settings-section/settings-section.d.ts.map +1 -0
- package/dist/patterns/layout/settings-section/settings-section.js +15 -0
- package/dist/patterns/layout/settings-section/settings-section.js.map +1 -0
- package/dist/patterns/layout/split-layout/index.d.ts +2 -0
- package/dist/patterns/layout/split-layout/index.d.ts.map +1 -0
- package/dist/patterns/layout/split-layout/index.js +2 -0
- package/dist/patterns/layout/split-layout/index.js.map +1 -0
- package/dist/patterns/layout/split-layout/split-layout.d.ts +21 -0
- package/dist/patterns/layout/split-layout/split-layout.d.ts.map +1 -0
- package/dist/patterns/layout/split-layout/split-layout.js +10 -0
- package/dist/patterns/layout/split-layout/split-layout.js.map +1 -0
- package/dist/patterns/search/filter-bar/filter-bar.d.ts +25 -0
- package/dist/patterns/search/filter-bar/filter-bar.d.ts.map +1 -0
- package/dist/patterns/search/filter-bar/filter-bar.js +13 -0
- package/dist/patterns/search/filter-bar/filter-bar.js.map +1 -0
- package/dist/patterns/search/filter-bar/index.d.ts +2 -0
- package/dist/patterns/search/filter-bar/index.d.ts.map +1 -0
- package/dist/patterns/search/filter-bar/index.js +2 -0
- package/dist/patterns/search/filter-bar/index.js.map +1 -0
- package/dist/styles.css +2437 -0
- package/package.json +72 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef, useCallback, useId, useState } from 'react';
|
|
4
|
+
import { cx } from '../../../internal/cx.js';
|
|
5
|
+
import { EyeGlyph, EyeOffGlyph } from '../../../internal/icons.js';
|
|
6
|
+
import { IconButton } from '../../actions/button/index.js';
|
|
7
|
+
import { CopyButton } from '../../actions/copy-button/index.js';
|
|
8
|
+
import { useFieldContext } from '../../forms/form-field/index.js';
|
|
9
|
+
import { Input } from '../../forms/text-field/index.js';
|
|
10
|
+
/**
|
|
11
|
+
* A masked secret (API key, token, signing secret) with reveal/hide and an
|
|
12
|
+
* optional copy button. Never prefilled by the browser or password managers.
|
|
13
|
+
* Supports the "set, not shown" state for secrets the server never returns.
|
|
14
|
+
*/
|
|
15
|
+
export const SecretField = forwardRef(function SecretField({ label, revealed: revealedProp, defaultRevealed = false, onRevealedChange, revealable = true, copyable = false, isSet = false, setPlaceholder = 'Saved. Enter a new value to replace it', setDescription = 'A value is saved and hidden. Leave blank to keep it.', onCopy, onCopyError, size = 'md', className, style, placeholder, disabled, value, defaultValue, onChange, 'aria-describedby': describedBy, ...rest }, ref) {
|
|
16
|
+
const field = useFieldContext();
|
|
17
|
+
const setId = `mn-secret-${useId()}`;
|
|
18
|
+
const [revealedState, setRevealedState] = useState(defaultRevealed);
|
|
19
|
+
const revealed = revealedProp ?? revealedState;
|
|
20
|
+
const setRevealed = useCallback((next) => {
|
|
21
|
+
if (revealedProp === undefined)
|
|
22
|
+
setRevealedState(next);
|
|
23
|
+
onRevealedChange?.(next);
|
|
24
|
+
}, [revealedProp, onRevealedChange]);
|
|
25
|
+
// Track the current text so copy works in uncontrolled mode too.
|
|
26
|
+
const [innerValue, setInnerValue] = useState(() => String(defaultValue ?? ''));
|
|
27
|
+
const current = value !== undefined ? String(value) : innerValue;
|
|
28
|
+
const empty = current === '';
|
|
29
|
+
// A saved-but-hidden secret has nothing to reveal until the user types a new one.
|
|
30
|
+
const hasPlainText = !empty;
|
|
31
|
+
const name = label;
|
|
32
|
+
const actions = (revealable ? 1 : 0) + (copyable ? 1 : 0);
|
|
33
|
+
const buttonSize = size === 'lg' ? 'sm' : 'xs';
|
|
34
|
+
return (_jsxs("div", { className: cx('mn-secret-field', className), style: style, "data-revealed": revealed || undefined, "data-set": isSet || undefined, "data-size": size, "data-actions": actions, children: [_jsx(Input, { ref: ref, ...rest, ...(field ? {} : { 'aria-label': label }), ...(value !== undefined ? { value } : {}), ...(defaultValue !== undefined ? { defaultValue } : {}), onChange: (event) => {
|
|
35
|
+
if (value === undefined)
|
|
36
|
+
setInnerValue(event.currentTarget.value);
|
|
37
|
+
onChange?.(event);
|
|
38
|
+
}, size: size, disabled: disabled, type: revealed ? 'text' : 'password', placeholder: isSet && empty ? setPlaceholder : placeholder, "aria-describedby": cx(describedBy, isSet ? setId : undefined), autoComplete: rest.autoComplete ?? 'off', autoCorrect: "off", autoCapitalize: "off", spellCheck: false, "data-1p-ignore": "", "data-lpignore": "true", "data-bwignore": "", "data-form-type": "other", className: "mn-secret-field__control" }), isSet ? (_jsx("span", { id: setId, className: "mn-visually-hidden", children: setDescription })) : null, _jsxs("span", { className: "mn-secret-field__actions", children: [revealable ? (_jsx(IconButton, { label: `Show ${name}`, icon: revealed ? _jsx(EyeOffGlyph, {}) : _jsx(EyeGlyph, {}), size: buttonSize, "aria-pressed": revealed,
|
|
39
|
+
// Nothing to show while the field is empty (including a saved-but-hidden secret).
|
|
40
|
+
disabled: disabled || !hasPlainText, onClick: () => setRevealed(!revealed), className: "mn-secret-field__toggle" })) : null, copyable ? (_jsx(CopyButton, { value: () => current, label: "Copy", target: name, iconOnly: true, size: buttonSize, disabled: disabled || !hasPlainText, ...(onCopy ? { onCopy } : {}), ...(onCopyError ? { onCopyError } : {}), className: "mn-secret-field__copy" })) : null] })] }));
|
|
41
|
+
});
|
|
42
|
+
//# sourceMappingURL=secret-field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secret-field.js","sourceRoot":"","sources":["../../../../src/components/technical/secret-field/secret-field.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,EAAE,EAAE,EAAE,MAAM,yBAAyB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,eA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AC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KAC1B,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EACxC,SAAS,EAAC,uBAAuB,GACjC,CACH,CAAC,CAAC,CAAC,IAAI,IACH,IACH,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/kbd/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/typography/kbd/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kbd.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/kbd/kbd.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,sDAAsD;AACtD,wBAAgB,GAAG,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,cAAc,CAAC,WAAW,CAAC,+BAEtE"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cx } from '../../../internal/cx.js';
|
|
3
|
+
/** A keyboard key or shortcut, e.g. <Kbd>⌘K</Kbd>. */
|
|
4
|
+
export function Kbd({ className, ...rest }) {
|
|
5
|
+
return _jsx("kbd", { ...rest, className: cx('mn-kbd', className) });
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=kbd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kbd.js","sourceRoot":"","sources":["../../../../src/components/typography/kbd/kbd.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,EAAE,EAAE,MAAM,yBAAyB,CAAC;AAE7C,sDAAsD;AACtD,MAAM,UAAU,GAAG,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAA+B;IACrE,OAAO,iBAAS,IAAI,EAAE,SAAS,EAAE,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC,GAAI,CAAC;AAC/D,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export { cx } from './internal/cx.js';
|
|
2
|
+
export { Button, IconButton, type ButtonProps, type IconButtonProps, type ButtonVariant, type ButtonSize, } from './components/actions/button/index.js';
|
|
3
|
+
export { Spinner, type SpinnerProps } from './components/feedback/spinner/index.js';
|
|
4
|
+
export { VisuallyHidden } from './components/layout/visually-hidden/index.js';
|
|
5
|
+
export { Kbd } from './components/typography/kbd/index.js';
|
|
6
|
+
export { Field, FieldLabel, FieldDescription, FieldError, useFieldControl, useFieldContext, type FieldProps, type FieldLabelProps, type FieldControlProps, } from './components/forms/form-field/index.js';
|
|
7
|
+
export { Input, Textarea, type InputProps, type TextareaProps, type ControlSize, } from './components/forms/text-field/index.js';
|
|
8
|
+
export { Checkbox, type CheckboxProps } from './components/forms/checkbox/index.js';
|
|
9
|
+
export { Switch, type SwitchProps } from './components/forms/switch/index.js';
|
|
10
|
+
export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectItem, SelectLabel, SelectSeparator, type SelectTriggerProps, } from './components/forms/select/index.js';
|
|
11
|
+
export { Badge, type BadgeProps, type Tone } from './components/data-display/badge/index.js';
|
|
12
|
+
export { Avatar, initials, type AvatarProps } from './components/identity/avatar/index.js';
|
|
13
|
+
export { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter, type CardProps, type CardTitleProps, } from './components/data-display/card/index.js';
|
|
14
|
+
export { Skeleton, type SkeletonProps } from './components/feedback/skeleton/index.js';
|
|
15
|
+
export { EmptyState, type EmptyStateProps } from './components/feedback/empty-state/index.js';
|
|
16
|
+
export { Alert, type AlertProps } from './components/feedback/alert/index.js';
|
|
17
|
+
export { Dialog, DialogTrigger, DialogClose, DialogContent, DialogHeader, DialogTitle, DialogDescription, DialogBody, DialogFooter, type DialogContentProps, } from './components/overlays/dialog/index.js';
|
|
18
|
+
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuGroup, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, type DropdownMenuItemProps, } from './components/overlays/dropdown-menu/index.js';
|
|
19
|
+
export { Tooltip, TooltipProvider, type TooltipProps, } from './components/overlays/tooltip/index.js';
|
|
20
|
+
export { Popover, PopoverTrigger, PopoverAnchor, PopoverClose, PopoverContent, } from './components/overlays/popover/index.js';
|
|
21
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent, type TabsListProps, } from './components/navigation/tabs/index.js';
|
|
22
|
+
export { ToastProvider, useToast, type ToastOptions, type ToastHandle, type ToastTone, type ToastProviderProps, } from './components/feedback/toast/index.js';
|
|
23
|
+
export { Table, TableHeader, TableBody, TableRow, TableHead, TableCell, TableCaption, TableSelectCell, SortButton, type TableProps, type TableRowProps, type TableHeadProps, type TableCellProps, type TableSelectCellProps, type SortButtonProps, type SortDirection, } from './components/data-grid/data-table/index.js';
|
|
24
|
+
export { Breadcrumb, type BreadcrumbProps, type BreadcrumbItem, } from './components/navigation/breadcrumb/index.js';
|
|
25
|
+
export { Pagination, pageWindow, type PaginationProps, } from './components/navigation/pagination/index.js';
|
|
26
|
+
export { Combobox, type ComboboxProps, type ComboboxOption, } from './components/forms/combobox/index.js';
|
|
27
|
+
export { Separator } from './components/layout/separator/index.js';
|
|
28
|
+
export { Progress, type ProgressProps } from './components/data-display/progress-bar/index.js';
|
|
29
|
+
export { Link, type LinkProps } from './components/navigation/link/index.js';
|
|
30
|
+
export { DescriptionList, DescriptionItem, type DescriptionListProps, type DescriptionItemProps, } from './components/data-display/description-list/index.js';
|
|
31
|
+
export { StatCard, type StatCardProps } from './components/data-display/stat-card/index.js';
|
|
32
|
+
export { ErrorState, LoadingState, type ErrorStateProps, type LoadingStateProps, } from './components/feedback/error-state/index.js';
|
|
33
|
+
export { CopyButton, useCopyToClipboard, writeToClipboard, type CopyButtonProps, type CopyStatus, type CopyValue, type UseCopyToClipboardOptions, type UseCopyToClipboardResult, } from './components/actions/copy-button/index.js';
|
|
34
|
+
export { CopyField, type CopyFieldProps } from './components/actions/copy-field/index.js';
|
|
35
|
+
export { SecretField, type SecretFieldProps } from './components/technical/secret-field/index.js';
|
|
36
|
+
export { StatusBadge, StatusRegistryProvider, builtInStatuses, checkStatusColor, defineStatuses, formatStatusLabel, resolveStatus, type StatusBadgeProps, type StatusRegistryProviderProps, type StatusDefinition, type StatusRegistry, type StatusTone, type StatusColorCheck, type BuiltInStatus, } from './components/data-display/status-badge/index.js';
|
|
37
|
+
export { SegmentedControl, ToggleGroup, type SegmentedControlProps, type ToggleGroupProps, type SegmentedOption, type SegmentedControlSize, } from './components/forms/segmented-control/index.js';
|
|
38
|
+
export { PageHeader, type PageHeaderProps } from './patterns/layout/page-header/index.js';
|
|
39
|
+
export { Toolbar, ToolbarGroup, type ToolbarProps } from './patterns/actions/toolbar/index.js';
|
|
40
|
+
export { FilterBar, FilterChip, type FilterBarProps, type FilterChipProps, } from './patterns/search/filter-bar/index.js';
|
|
41
|
+
export { SettingsSection, SettingsRow, type SettingsSectionProps, type SettingsRowProps, } from './patterns/layout/settings-section/index.js';
|
|
42
|
+
export { SplitLayout, type SplitLayoutProps } from './patterns/layout/split-layout/index.js';
|
|
43
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CA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gB,EACrB,KAAK,aAAa,GACnB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,oBAAoB,GAC1B,MAAM,+CAA+C,CAAC;AAGvD,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,wCAAwC,CAAC;AAC1F,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAC/F,OAAO,EACL,SAAS,EACT,UAAU,EACV,KAAK,cAAc,EACnB,KAAK,eAAe,GACrB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,eAAe,EACf,WAAW,EACX,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,GACtB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,yCAAyC,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// Public API of @rookcom/monarch-react. Every export here is covered by the
|
|
2
|
+
// API stability policy in docs/governance/versioning.md.
|
|
3
|
+
export { cx } from './internal/cx.js';
|
|
4
|
+
export { Button, IconButton, } from './components/actions/button/index.js';
|
|
5
|
+
export { Spinner } from './components/feedback/spinner/index.js';
|
|
6
|
+
export { VisuallyHidden } from './components/layout/visually-hidden/index.js';
|
|
7
|
+
export { Kbd } from './components/typography/kbd/index.js';
|
|
8
|
+
export { Field, FieldLabel, FieldDescription, FieldError, useFieldControl, useFieldContext, } from './components/forms/form-field/index.js';
|
|
9
|
+
export { Input, Textarea, } from './components/forms/text-field/index.js';
|
|
10
|
+
export { Checkbox } from './components/forms/checkbox/index.js';
|
|
11
|
+
export { Switch } from './components/forms/switch/index.js';
|
|
12
|
+
export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectItem, SelectLabel, SelectSeparator, } from './components/forms/select/index.js';
|
|
13
|
+
export { Badge } from './components/data-display/badge/index.js';
|
|
14
|
+
export { Avatar, initials } from './components/identity/avatar/index.js';
|
|
15
|
+
export { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter, } from './components/data-display/card/index.js';
|
|
16
|
+
export { Skeleton } from './components/feedback/skeleton/index.js';
|
|
17
|
+
export { EmptyState } from './components/feedback/empty-state/index.js';
|
|
18
|
+
export { Alert } from './components/feedback/alert/index.js';
|
|
19
|
+
export { Dialog, DialogTrigger, DialogClose, DialogContent, DialogHeader, DialogTitle, DialogDescription, DialogBody, DialogFooter, } from './components/overlays/dialog/index.js';
|
|
20
|
+
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuGroup, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, } from './components/overlays/dropdown-menu/index.js';
|
|
21
|
+
export { Tooltip, TooltipProvider, } from './components/overlays/tooltip/index.js';
|
|
22
|
+
export { Popover, PopoverTrigger, PopoverAnchor, PopoverClose, PopoverContent, } from './components/overlays/popover/index.js';
|
|
23
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent, } from './components/navigation/tabs/index.js';
|
|
24
|
+
export { ToastProvider, useToast, } from './components/feedback/toast/index.js';
|
|
25
|
+
export { Table, TableHeader, TableBody, TableRow, TableHead, TableCell, TableCaption, TableSelectCell, SortButton, } from './components/data-grid/data-table/index.js';
|
|
26
|
+
export { Breadcrumb, } from './components/navigation/breadcrumb/index.js';
|
|
27
|
+
export { Pagination, pageWindow, } from './components/navigation/pagination/index.js';
|
|
28
|
+
export { Combobox, } from './components/forms/combobox/index.js';
|
|
29
|
+
export { Separator } from './components/layout/separator/index.js';
|
|
30
|
+
export { Progress } from './components/data-display/progress-bar/index.js';
|
|
31
|
+
export { Link } from './components/navigation/link/index.js';
|
|
32
|
+
export { DescriptionList, DescriptionItem, } from './components/data-display/description-list/index.js';
|
|
33
|
+
export { StatCard } from './components/data-display/stat-card/index.js';
|
|
34
|
+
export { ErrorState, LoadingState, } from './components/feedback/error-state/index.js';
|
|
35
|
+
export { CopyButton, useCopyToClipboard, writeToClipboard, } from './components/actions/copy-button/index.js';
|
|
36
|
+
export { CopyField } from './components/actions/copy-field/index.js';
|
|
37
|
+
export { SecretField } from './components/technical/secret-field/index.js';
|
|
38
|
+
export { StatusBadge, StatusRegistryProvider, builtInStatuses, checkStatusColor, defineStatuses, formatStatusLabel, resolveStatus, } from './components/data-display/status-badge/index.js';
|
|
39
|
+
export { SegmentedControl, ToggleGroup, } from './components/forms/segmented-control/index.js';
|
|
40
|
+
// Patterns: compositions of the components above for recurring Rook screens.
|
|
41
|
+
export { PageHeader } from './patterns/layout/page-header/index.js';
|
|
42
|
+
export { Toolbar, ToolbarGroup } from './patterns/actions/toolbar/index.js';
|
|
43
|
+
export { FilterBar, FilterChip, } from './patterns/search/filter-bar/index.js';
|
|
44
|
+
export { SettingsSection, SettingsRow, } from './patterns/layout/settings-section/index.js';
|
|
45
|
+
export { SplitLayout } from './patterns/layout/split-layout/index.js';
|
|
46
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,yDAAyD;AACzD,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AACtC,OAAO,EACL,MAAM,EACN,UAAU,GAKX,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAqB,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAC;AAC9E,OAAO,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAC3D,OAAO,EACL,KAAK,EACL,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,eAAe,EACf,eAAe,G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,OAAO,EAAE,YAAY,EAAqB,MAAM,qCAAqC,CAAC;AAC/F,OAAO,EACL,SAAS,EACT,UAAU,GAGX,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,eAAe,EACf,WAAW,GAGZ,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,WAAW,EAAyB,MAAM,yCAAyC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cx.d.ts","sourceRoot":"","sources":["../../src/internal/cx.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,wBAAgB,EAAE,CAAC,GAAG,KAAK,EAAE,KAAK,CAAC,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC,GAAG,MAAM,GAAG,SAAS,CAGzF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cx.js","sourceRoot":"","sources":["../../src/internal/cx.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,MAAM,UAAU,EAAE,CAAC,GAAG,KAA+C;IACnE,MAAM,GAAG,GAAG,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC5C,OAAO,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC;AACtC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** Internal glyphs. Monarch ships no icon set; apps keep using lucide-react. */
|
|
2
|
+
import type { SVGProps } from 'react';
|
|
3
|
+
export declare function CheckGlyph(props: SVGProps<SVGSVGElement>): import("react").JSX.Element;
|
|
4
|
+
export declare function DashGlyph(props: SVGProps<SVGSVGElement>): import("react").JSX.Element;
|
|
5
|
+
export declare function ChevronDownGlyph(props: SVGProps<SVGSVGElement>): import("react").JSX.Element;
|
|
6
|
+
export declare function ChevronRightGlyph(props: SVGProps<SVGSVGElement>): import("react").JSX.Element;
|
|
7
|
+
export declare function CloseGlyph(props: SVGProps<SVGSVGElement>): import("react").JSX.Element;
|
|
8
|
+
export declare function DotGlyph(props: SVGProps<SVGSVGElement>): import("react").JSX.Element;
|
|
9
|
+
export declare function InfoGlyph(props: SVGProps<SVGSVGElement>): import("react").JSX.Element;
|
|
10
|
+
export declare function WarningGlyph(props: SVGProps<SVGSVGElement>): import("react").JSX.Element;
|
|
11
|
+
export declare function SuccessGlyph(props: SVGProps<SVGSVGElement>): import("react").JSX.Element;
|
|
12
|
+
export declare function CopyGlyph(props: SVGProps<SVGSVGElement>): import("react").JSX.Element;
|
|
13
|
+
export declare function EyeGlyph(props: SVGProps<SVGSVGElement>): import("react").JSX.Element;
|
|
14
|
+
export declare function EyeOffGlyph(props: SVGProps<SVGSVGElement>): import("react").JSX.Element;
|
|
15
|
+
export declare function ErrorGlyph(props: SVGProps<SVGSVGElement>): import("react").JSX.Element;
|
|
16
|
+
/** A half-filled circle: "partly working". */
|
|
17
|
+
export declare function PartialGlyph(props: SVGProps<SVGSVGElement>): import("react").JSX.Element;
|
|
18
|
+
export declare function WrenchGlyph(props: SVGProps<SVGSVGElement>): import("react").JSX.Element;
|
|
19
|
+
export declare function HelpGlyph(props: SVGProps<SVGSVGElement>): import("react").JSX.Element;
|
|
20
|
+
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../src/internal/icons.tsx"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAetC,wBAAgB,UAAU,CAAC,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,+BAMxD;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,+BAMvD;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,+BAM9D;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,+BAM/D;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,+BAMxD;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,+BAMtD;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,+BAOvD;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,+BAO1D;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,+BAO1D;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,+BAOvD;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,+BAOtD;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,+BAOzD;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,+BAOxD;AAED,8CAA8C;AAC9C,wBAAgB,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,+BAO1D;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,+BAMzD;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,+BAOvD"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
const base = {
|
|
3
|
+
width: 16,
|
|
4
|
+
height: 16,
|
|
5
|
+
viewBox: '0 0 16 16',
|
|
6
|
+
fill: 'none',
|
|
7
|
+
stroke: 'currentColor',
|
|
8
|
+
strokeWidth: 1.75,
|
|
9
|
+
strokeLinecap: 'round',
|
|
10
|
+
strokeLinejoin: 'round',
|
|
11
|
+
'aria-hidden': true,
|
|
12
|
+
focusable: false,
|
|
13
|
+
};
|
|
14
|
+
export function CheckGlyph(props) {
|
|
15
|
+
return (_jsx("svg", { ...base, ...props, children: _jsx("path", { d: "M3.5 8.5l3 3 6-7" }) }));
|
|
16
|
+
}
|
|
17
|
+
export function DashGlyph(props) {
|
|
18
|
+
return (_jsx("svg", { ...base, ...props, children: _jsx("path", { d: "M4 8h8" }) }));
|
|
19
|
+
}
|
|
20
|
+
export function ChevronDownGlyph(props) {
|
|
21
|
+
return (_jsx("svg", { ...base, ...props, children: _jsx("path", { d: "M4 6l4 4 4-4" }) }));
|
|
22
|
+
}
|
|
23
|
+
export function ChevronRightGlyph(props) {
|
|
24
|
+
return (_jsx("svg", { ...base, ...props, children: _jsx("path", { d: "M6 4l4 4-4 4" }) }));
|
|
25
|
+
}
|
|
26
|
+
export function CloseGlyph(props) {
|
|
27
|
+
return (_jsx("svg", { ...base, ...props, children: _jsx("path", { d: "M4 4l8 8M12 4l-8 8" }) }));
|
|
28
|
+
}
|
|
29
|
+
export function DotGlyph(props) {
|
|
30
|
+
return (_jsx("svg", { ...base, ...props, children: _jsx("circle", { cx: "8", cy: "8", r: "2.5", fill: "currentColor", stroke: "none" }) }));
|
|
31
|
+
}
|
|
32
|
+
export function InfoGlyph(props) {
|
|
33
|
+
return (_jsxs("svg", { ...base, ...props, children: [_jsx("circle", { cx: "8", cy: "8", r: "6.25" }), _jsx("path", { d: "M8 7.25v3.5M8 5.25h.01" })] }));
|
|
34
|
+
}
|
|
35
|
+
export function WarningGlyph(props) {
|
|
36
|
+
return (_jsxs("svg", { ...base, ...props, children: [_jsx("path", { d: "M8 2.25l6.25 11H1.75z" }), _jsx("path", { d: "M8 6.5v3M8 11.25h.01" })] }));
|
|
37
|
+
}
|
|
38
|
+
export function SuccessGlyph(props) {
|
|
39
|
+
return (_jsxs("svg", { ...base, ...props, children: [_jsx("circle", { cx: "8", cy: "8", r: "6.25" }), _jsx("path", { d: "M5.5 8.25l1.75 1.75 3.25-3.75" })] }));
|
|
40
|
+
}
|
|
41
|
+
export function CopyGlyph(props) {
|
|
42
|
+
return (_jsxs("svg", { ...base, ...props, children: [_jsx("rect", { x: "5.25", y: "5.25", width: "8", height: "8", rx: "1.5" }), _jsx("path", { d: "M10.75 5.25V3.75a1.5 1.5 0 0 0-1.5-1.5h-5.5a1.5 1.5 0 0 0-1.5 1.5v5.5a1.5 1.5 0 0 0 1.5 1.5h1.5" })] }));
|
|
43
|
+
}
|
|
44
|
+
export function EyeGlyph(props) {
|
|
45
|
+
return (_jsxs("svg", { ...base, ...props, children: [_jsx("path", { d: "M1.75 8s2.25-4.5 6.25-4.5S14.25 8 14.25 8 12 12.5 8 12.5 1.75 8 1.75 8z" }), _jsx("circle", { cx: "8", cy: "8", r: "1.75" })] }));
|
|
46
|
+
}
|
|
47
|
+
export function EyeOffGlyph(props) {
|
|
48
|
+
return (_jsxs("svg", { ...base, ...props, children: [_jsx("path", { d: "M6.6 3.65A6 6 0 0 1 8 3.5c4 0 6.25 4.5 6.25 4.5a11 11 0 0 1-1.6 2.2M9.4 9.4a1.75 1.75 0 0 1-2.8-2.05M4.2 4.95A10.6 10.6 0 0 0 1.75 8S4 12.5 8 12.5a5.9 5.9 0 0 0 3.05-.85" }), _jsx("path", { d: "M2 2l12 12" })] }));
|
|
49
|
+
}
|
|
50
|
+
export function ErrorGlyph(props) {
|
|
51
|
+
return (_jsxs("svg", { ...base, ...props, children: [_jsx("circle", { cx: "8", cy: "8", r: "6.25" }), _jsx("path", { d: "M6 6l4 4M10 6l-4 4" })] }));
|
|
52
|
+
}
|
|
53
|
+
/** A half-filled circle: "partly working". */
|
|
54
|
+
export function PartialGlyph(props) {
|
|
55
|
+
return (_jsxs("svg", { ...base, ...props, children: [_jsx("circle", { cx: "8", cy: "8", r: "6.25" }), _jsx("path", { d: "M8 1.75a6.25 6.25 0 0 1 0 12.5z", fill: "currentColor" })] }));
|
|
56
|
+
}
|
|
57
|
+
export function WrenchGlyph(props) {
|
|
58
|
+
return (_jsx("svg", { ...base, ...props, children: _jsx("path", { d: "M9.9 2.4a3.25 3.25 0 0 0-3.6 4.4L2.4 10.7a1.4 1.4 0 0 0 2 2l3.9-3.9a3.25 3.25 0 0 0 4.4-3.6l-2 2-1.9-.5-.5-1.9z" }) }));
|
|
59
|
+
}
|
|
60
|
+
export function HelpGlyph(props) {
|
|
61
|
+
return (_jsxs("svg", { ...base, ...props, children: [_jsx("circle", { cx: "8", cy: "8", r: "6.25", strokeDasharray: "2.2 1.8" }), _jsx("path", { d: "M6.4 6.3a1.65 1.65 0 0 1 3.2.55c0 1.1-1.6 1.4-1.6 2.4M8 11.25h.01" })] }));
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=icons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.js","sourceRoot":"","sources":["../../src/internal/icons.tsx"],"names":[],"mappings":";AAGA,MAAM,IAAI,GAAG;IACX,KAAK,EAAE,EAAE;IACT,MAAM,EAAE,EAAE;IACV,OAAO,EAAE,WAAW;IACpB,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,cAAc;IACtB,WAAW,EAAE,IAAI;IACjB,aAAa,EAAE,OAAO;IACtB,cAAc,EAAE,OAAO;IACvB,aAAa,EAAE,IAAI;IACnB,SAAS,EAAE,KAAK;CACR,CAAC;AAEX,MAAM,UAAU,UAAU,CAAC,KAA8B;IACvD,OAAO,CACL,iBAAS,IAAI,KAAM,KAAK,YACtB,eAAM,CAAC,EAAC,kBAAkB,GAAG,GACzB,CACP,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,KAA8B;IACtD,OAAO,CACL,iBAAS,IAAI,KAAM,KAAK,YACtB,eAAM,CAAC,EAAC,QAAQ,GAAG,GACf,CACP,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,KAA8B;IAC7D,OAAO,CACL,iBAAS,IAAI,KAAM,KAAK,YACtB,eAAM,CAAC,EAAC,cAAc,GAAG,GACrB,C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