@agentage/components 0.0.0-stage → 0.21.0
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/LICENSE +21 -0
- package/README.md +207 -2
- package/dist/components/accordion.context.d.ts +17 -0
- package/dist/components/accordion.context.d.ts.map +1 -0
- package/dist/components/accordion.context.js +14 -0
- package/dist/components/accordion.d.ts +27 -0
- package/dist/components/accordion.d.ts.map +1 -0
- package/dist/components/accordion.js +90 -0
- package/dist/components/accordion.trigger.d.ts +11 -0
- package/dist/components/accordion.trigger.d.ts.map +1 -0
- package/dist/components/accordion.trigger.js +57 -0
- package/dist/components/action-bar.d.ts +29 -0
- package/dist/components/action-bar.d.ts.map +1 -0
- package/dist/components/action-bar.js +119 -0
- package/dist/components/action-bar.parts.d.ts +23 -0
- package/dist/components/action-bar.parts.d.ts.map +1 -0
- package/dist/components/action-bar.parts.js +117 -0
- package/dist/components/alert.d.ts +17 -0
- package/dist/components/alert.d.ts.map +1 -0
- package/dist/components/alert.js +73 -0
- package/dist/components/avatar.d.ts +22 -0
- package/dist/components/avatar.d.ts.map +1 -0
- package/dist/components/avatar.js +82 -0
- package/dist/components/badge.d.ts +20 -0
- package/dist/components/badge.d.ts.map +1 -0
- package/dist/components/badge.js +32 -0
- package/dist/components/breadcrumb.d.ts +12 -0
- package/dist/components/breadcrumb.d.ts.map +1 -0
- package/dist/components/breadcrumb.js +70 -0
- package/dist/components/button.d.ts +17 -0
- package/dist/components/button.d.ts.map +1 -0
- package/dist/components/button.js +43 -0
- package/dist/components/button.variants.d.ts +5 -0
- package/dist/components/button.variants.d.ts.map +1 -0
- package/dist/components/button.variants.js +26 -0
- package/dist/components/card-base.d.ts +10 -0
- package/dist/components/card-base.d.ts.map +1 -0
- package/dist/components/card-base.js +10 -0
- package/dist/components/card-state.d.ts +45 -0
- package/dist/components/card-state.d.ts.map +1 -0
- package/dist/components/card-state.js +137 -0
- package/dist/components/card.d.ts +25 -0
- package/dist/components/card.d.ts.map +1 -0
- package/dist/components/card.js +62 -0
- package/dist/components/card.parts.d.ts +9 -0
- package/dist/components/card.parts.d.ts.map +1 -0
- package/dist/components/card.parts.js +37 -0
- package/dist/components/check-list.d.ts +30 -0
- package/dist/components/check-list.d.ts.map +1 -0
- package/dist/components/check-list.js +88 -0
- package/dist/components/check-list.parts.d.ts +17 -0
- package/dist/components/check-list.parts.d.ts.map +1 -0
- package/dist/components/check-list.parts.js +40 -0
- package/dist/components/checkbox.d.ts +24 -0
- package/dist/components/checkbox.d.ts.map +1 -0
- package/dist/components/checkbox.js +103 -0
- package/dist/components/chip.d.ts +17 -0
- package/dist/components/chip.d.ts.map +1 -0
- package/dist/components/chip.js +93 -0
- package/dist/components/code-block.d.ts +15 -0
- package/dist/components/code-block.d.ts.map +1 -0
- package/dist/components/code-block.js +87 -0
- package/dist/components/collapsible.d.ts +27 -0
- package/dist/components/collapsible.d.ts.map +1 -0
- package/dist/components/collapsible.js +81 -0
- package/dist/components/command.context.d.ts +16 -0
- package/dist/components/command.context.d.ts.map +1 -0
- package/dist/components/command.context.js +13 -0
- package/dist/components/command.d.ts +19 -0
- package/dist/components/command.d.ts.map +1 -0
- package/dist/components/command.js +125 -0
- package/dist/components/command.parts.d.ts +18 -0
- package/dist/components/command.parts.d.ts.map +1 -0
- package/dist/components/command.parts.js +77 -0
- package/dist/components/command.variants.d.ts +6 -0
- package/dist/components/command.variants.d.ts.map +1 -0
- package/dist/components/command.variants.js +23 -0
- package/dist/components/content-block.d.ts +24 -0
- package/dist/components/content-block.d.ts.map +1 -0
- package/dist/components/content-block.diff.d.ts +26 -0
- package/dist/components/content-block.diff.d.ts.map +1 -0
- package/dist/components/content-block.diff.js +110 -0
- package/dist/components/content-block.js +61 -0
- package/dist/components/content-block.parts.d.ts +12 -0
- package/dist/components/content-block.parts.d.ts.map +1 -0
- package/dist/components/content-block.parts.js +52 -0
- package/dist/components/content-blocks.d.ts +61 -0
- package/dist/components/content-blocks.d.ts.map +1 -0
- package/dist/components/content-blocks.js +99 -0
- package/dist/components/content-blocks.meta.d.ts +21 -0
- package/dist/components/content-blocks.meta.d.ts.map +1 -0
- package/dist/components/content-blocks.meta.js +56 -0
- package/dist/components/control.variants.d.ts +10 -0
- package/dist/components/control.variants.d.ts.map +1 -0
- package/dist/components/control.variants.js +25 -0
- package/dist/components/copy-button.d.ts +15 -0
- package/dist/components/copy-button.d.ts.map +1 -0
- package/dist/components/copy-button.js +96 -0
- package/dist/components/count.d.ts +5 -0
- package/dist/components/count.d.ts.map +1 -0
- package/dist/components/count.js +12 -0
- package/dist/components/data-table.body.d.ts +36 -0
- package/dist/components/data-table.body.d.ts.map +1 -0
- package/dist/components/data-table.body.js +112 -0
- package/dist/components/data-table.d.ts +14 -0
- package/dist/components/data-table.d.ts.map +1 -0
- package/dist/components/data-table.group-head.d.ts +17 -0
- package/dist/components/data-table.group-head.d.ts.map +1 -0
- package/dist/components/data-table.group-head.js +40 -0
- package/dist/components/data-table.group.d.ts +27 -0
- package/dist/components/data-table.group.d.ts.map +1 -0
- package/dist/components/data-table.group.js +32 -0
- package/dist/components/data-table.js +115 -0
- package/dist/components/data-table.menu.d.ts +12 -0
- package/dist/components/data-table.menu.d.ts.map +1 -0
- package/dist/components/data-table.menu.js +39 -0
- package/dist/components/data-table.parts.d.ts +28 -0
- package/dist/components/data-table.parts.d.ts.map +1 -0
- package/dist/components/data-table.parts.js +54 -0
- package/dist/components/data-table.selection.d.ts +27 -0
- package/dist/components/data-table.selection.d.ts.map +1 -0
- package/dist/components/data-table.selection.js +42 -0
- package/dist/components/data-table.state.d.ts +8 -0
- package/dist/components/data-table.state.d.ts.map +1 -0
- package/dist/components/data-table.state.js +11 -0
- package/dist/components/data-table.types.d.ts +71 -0
- package/dist/components/data-table.types.d.ts.map +1 -0
- package/dist/components/data-table.types.js +0 -0
- package/dist/components/data-table.variants.d.ts +22 -0
- package/dist/components/data-table.variants.d.ts.map +1 -0
- package/dist/components/data-table.variants.js +91 -0
- package/dist/components/data-tree.d.ts +20 -0
- package/dist/components/data-tree.d.ts.map +1 -0
- package/dist/components/data-tree.js +75 -0
- package/dist/components/data-tree.model.d.ts +35 -0
- package/dist/components/data-tree.model.d.ts.map +1 -0
- package/dist/components/data-tree.model.js +70 -0
- package/dist/components/data-tree.row.d.ts +23 -0
- package/dist/components/data-tree.row.d.ts.map +1 -0
- package/dist/components/data-tree.row.js +109 -0
- package/dist/components/data-view.board-card.d.ts +18 -0
- package/dist/components/data-view.board-card.d.ts.map +1 -0
- package/dist/components/data-view.board-card.js +74 -0
- package/dist/components/data-view.board-head.d.ts +14 -0
- package/dist/components/data-view.board-head.d.ts.map +1 -0
- package/dist/components/data-view.board-head.js +61 -0
- package/dist/components/data-view.board.d.ts +31 -0
- package/dist/components/data-view.board.d.ts.map +1 -0
- package/dist/components/data-view.board.js +120 -0
- package/dist/components/data-view.config.d.ts +70 -0
- package/dist/components/data-view.config.d.ts.map +1 -0
- package/dist/components/data-view.config.js +68 -0
- package/dist/components/data-view.d.ts +10 -0
- package/dist/components/data-view.d.ts.map +1 -0
- package/dist/components/data-view.hooks.d.ts +24 -0
- package/dist/components/data-view.hooks.d.ts.map +1 -0
- package/dist/components/data-view.hooks.js +104 -0
- package/dist/components/data-view.js +117 -0
- package/dist/components/data-view.parts.d.ts +22 -0
- package/dist/components/data-view.parts.d.ts.map +1 -0
- package/dist/components/data-view.parts.js +29 -0
- package/dist/components/data-view.toolbar.d.ts +34 -0
- package/dist/components/data-view.toolbar.d.ts.map +1 -0
- package/dist/components/data-view.toolbar.js +134 -0
- package/dist/components/data-view.types.d.ts +51 -0
- package/dist/components/data-view.types.d.ts.map +1 -0
- package/dist/components/data-view.types.js +0 -0
- package/dist/components/date-picker.d.ts +27 -0
- package/dist/components/date-picker.d.ts.map +1 -0
- package/dist/components/date-picker.js +123 -0
- package/dist/components/date-picker.range.d.ts +18 -0
- package/dist/components/date-picker.range.d.ts.map +1 -0
- package/dist/components/date-picker.range.js +97 -0
- package/dist/components/date-picker.range.parts.d.ts +12 -0
- package/dist/components/date-picker.range.parts.d.ts.map +1 -0
- package/dist/components/date-picker.range.parts.js +80 -0
- package/dist/components/description-list.d.ts +33 -0
- package/dist/components/description-list.d.ts.map +1 -0
- package/dist/components/description-list.js +75 -0
- package/dist/components/description-list.property.d.ts +25 -0
- package/dist/components/description-list.property.d.ts.map +1 -0
- package/dist/components/description-list.property.js +36 -0
- package/dist/components/description-list.variants.d.ts +8 -0
- package/dist/components/description-list.variants.d.ts.map +1 -0
- package/dist/components/description-list.variants.js +74 -0
- package/dist/components/dialog-shell.d.ts +36 -0
- package/dist/components/dialog-shell.d.ts.map +1 -0
- package/dist/components/dialog-shell.js +69 -0
- package/dist/components/dialog.confirm.d.ts +8 -0
- package/dist/components/dialog.confirm.d.ts.map +1 -0
- package/dist/components/dialog.confirm.js +91 -0
- package/dist/components/dialog.d.ts +27 -0
- package/dist/components/dialog.d.ts.map +1 -0
- package/dist/components/dialog.js +53 -0
- package/dist/components/dialog.phrase.d.ts +9 -0
- package/dist/components/dialog.phrase.d.ts.map +1 -0
- package/dist/components/dialog.phrase.js +43 -0
- package/dist/components/dirty-bar.d.ts +30 -0
- package/dist/components/dirty-bar.d.ts.map +1 -0
- package/dist/components/dirty-bar.js +109 -0
- package/dist/components/disclosure.d.ts +24 -0
- package/dist/components/disclosure.d.ts.map +1 -0
- package/dist/components/disclosure.js +34 -0
- package/dist/components/dropdown-menu.d.ts +16 -0
- package/dist/components/dropdown-menu.d.ts.map +1 -0
- package/dist/components/dropdown-menu.items.d.ts +15 -0
- package/dist/components/dropdown-menu.items.d.ts.map +1 -0
- package/dist/components/dropdown-menu.items.js +25 -0
- package/dist/components/dropdown-menu.js +80 -0
- package/dist/components/dropdown-menu.variants.d.ts +2 -0
- package/dist/components/dropdown-menu.variants.d.ts.map +1 -0
- package/dist/components/dropdown-menu.variants.js +1 -0
- package/dist/components/empty-state.d.ts +11 -0
- package/dist/components/empty-state.d.ts.map +1 -0
- package/dist/components/empty-state.js +33 -0
- package/dist/components/entity-card.d.ts +34 -0
- package/dist/components/entity-card.d.ts.map +1 -0
- package/dist/components/entity-card.js +87 -0
- package/dist/components/entity-list.d.ts +30 -0
- package/dist/components/entity-list.d.ts.map +1 -0
- package/dist/components/entity-list.items.d.ts +20 -0
- package/dist/components/entity-list.items.d.ts.map +1 -0
- package/dist/components/entity-list.items.js +59 -0
- package/dist/components/entity-list.js +61 -0
- package/dist/components/entity-list.parts.d.ts +35 -0
- package/dist/components/entity-list.parts.d.ts.map +1 -0
- package/dist/components/entity-list.parts.js +86 -0
- package/dist/components/entity-list.row.d.ts +14 -0
- package/dist/components/entity-list.row.d.ts.map +1 -0
- package/dist/components/entity-list.row.js +58 -0
- package/dist/components/form-field.d.ts +13 -0
- package/dist/components/form-field.d.ts.map +1 -0
- package/dist/components/form-field.js +65 -0
- package/dist/components/form-field.live.d.ts +6 -0
- package/dist/components/form-field.live.d.ts.map +1 -0
- package/dist/components/form-field.live.js +19 -0
- package/dist/components/group-header.d.ts +23 -0
- package/dist/components/group-header.d.ts.map +1 -0
- package/dist/components/group-header.js +81 -0
- package/dist/components/highlight.d.ts +4 -0
- package/dist/components/highlight.d.ts.map +1 -0
- package/dist/components/highlight.js +14 -0
- package/dist/components/icon-button.d.ts +15 -0
- package/dist/components/icon-button.d.ts.map +1 -0
- package/dist/components/icon-button.js +25 -0
- package/dist/components/index.d.ts +155 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +95 -0
- package/dist/components/inline-edit.d.ts +24 -0
- package/dist/components/inline-edit.d.ts.map +1 -0
- package/dist/components/inline-edit.js +68 -0
- package/dist/components/input.d.ts +35 -0
- package/dist/components/input.d.ts.map +1 -0
- package/dist/components/input.js +101 -0
- package/dist/components/kbd.d.ts +5 -0
- package/dist/components/kbd.d.ts.map +1 -0
- package/dist/components/kbd.js +12 -0
- package/dist/components/label.d.ts +5 -0
- package/dist/components/label.d.ts.map +1 -0
- package/dist/components/label.js +16 -0
- package/dist/components/list-toolbar.d.ts +37 -0
- package/dist/components/list-toolbar.d.ts.map +1 -0
- package/dist/components/list-toolbar.filter.d.ts +13 -0
- package/dist/components/list-toolbar.filter.d.ts.map +1 -0
- package/dist/components/list-toolbar.filter.js +65 -0
- package/dist/components/list-toolbar.fit.d.ts +24 -0
- package/dist/components/list-toolbar.fit.d.ts.map +1 -0
- package/dist/components/list-toolbar.fit.js +69 -0
- package/dist/components/list-toolbar.icons.d.ts +10 -0
- package/dist/components/list-toolbar.icons.d.ts.map +1 -0
- package/dist/components/list-toolbar.icons.js +21 -0
- package/dist/components/list-toolbar.js +68 -0
- package/dist/components/list-toolbar.menus.d.ts +26 -0
- package/dist/components/list-toolbar.menus.d.ts.map +1 -0
- package/dist/components/list-toolbar.menus.js +98 -0
- package/dist/components/list-toolbar.parts.d.ts +25 -0
- package/dist/components/list-toolbar.parts.d.ts.map +1 -0
- package/dist/components/list-toolbar.parts.js +72 -0
- package/dist/components/list-toolbar.search.d.ts +8 -0
- package/dist/components/list-toolbar.search.d.ts.map +1 -0
- package/dist/components/list-toolbar.search.js +54 -0
- package/dist/components/list-toolbar.variants.d.ts +11 -0
- package/dist/components/list-toolbar.variants.d.ts.map +1 -0
- package/dist/components/list-toolbar.variants.js +9 -0
- package/dist/components/log-view.d.ts +25 -0
- package/dist/components/log-view.d.ts.map +1 -0
- package/dist/components/log-view.hooks.d.ts +40 -0
- package/dist/components/log-view.hooks.d.ts.map +1 -0
- package/dist/components/log-view.hooks.js +87 -0
- package/dist/components/log-view.js +110 -0
- package/dist/components/log-view.model.d.ts +35 -0
- package/dist/components/log-view.model.d.ts.map +1 -0
- package/dist/components/log-view.model.js +56 -0
- package/dist/components/log-view.row.d.ts +31 -0
- package/dist/components/log-view.row.d.ts.map +1 -0
- package/dist/components/log-view.row.js +127 -0
- package/dist/components/menu.parts.d.ts +26 -0
- package/dist/components/menu.parts.d.ts.map +1 -0
- package/dist/components/menu.parts.js +59 -0
- package/dist/components/menu.selectable.d.ts +24 -0
- package/dist/components/menu.selectable.d.ts.map +1 -0
- package/dist/components/menu.selectable.js +66 -0
- package/dist/components/menu.variants.d.ts +9 -0
- package/dist/components/menu.variants.d.ts.map +1 -0
- package/dist/components/menu.variants.js +16 -0
- package/dist/components/nav-tree.d.ts +22 -0
- package/dist/components/nav-tree.d.ts.map +1 -0
- package/dist/components/nav-tree.js +95 -0
- package/dist/components/nav-tree.variants.d.ts +13 -0
- package/dist/components/nav-tree.variants.d.ts.map +1 -0
- package/dist/components/nav-tree.variants.js +9 -0
- package/dist/components/page-header.d.ts +34 -0
- package/dist/components/page-header.d.ts.map +1 -0
- package/dist/components/page-header.js +115 -0
- package/dist/components/pagination.d.ts +13 -0
- package/dist/components/pagination.d.ts.map +1 -0
- package/dist/components/pagination.js +114 -0
- package/dist/components/popover.d.ts +18 -0
- package/dist/components/popover.d.ts.map +1 -0
- package/dist/components/popover.js +64 -0
- package/dist/components/priority-glyph.d.ts +11 -0
- package/dist/components/priority-glyph.d.ts.map +1 -0
- package/dist/components/priority-glyph.js +75 -0
- package/dist/components/progress.d.ts +30 -0
- package/dist/components/progress.d.ts.map +1 -0
- package/dist/components/progress.js +87 -0
- package/dist/components/progress.meter.d.ts +36 -0
- package/dist/components/progress.meter.d.ts.map +1 -0
- package/dist/components/progress.meter.js +64 -0
- package/dist/components/progress.segments.d.ts +28 -0
- package/dist/components/progress.segments.d.ts.map +1 -0
- package/dist/components/progress.segments.js +59 -0
- package/dist/components/property-date.d.ts +11 -0
- package/dist/components/property-date.d.ts.map +1 -0
- package/dist/components/property-date.format.d.ts +3 -0
- package/dist/components/property-date.format.d.ts.map +1 -0
- package/dist/components/property-date.format.js +7 -0
- package/dist/components/property-date.js +142 -0
- package/dist/components/property-select.d.ts +28 -0
- package/dist/components/property-select.d.ts.map +1 -0
- package/dist/components/property-select.js +68 -0
- package/dist/components/prose.d.ts +6 -0
- package/dist/components/prose.d.ts.map +1 -0
- package/dist/components/prose.js +13 -0
- package/dist/components/radio-group.d.ts +23 -0
- package/dist/components/radio-group.d.ts.map +1 -0
- package/dist/components/radio-group.js +116 -0
- package/dist/components/relative-time.d.ts +12 -0
- package/dist/components/relative-time.d.ts.map +1 -0
- package/dist/components/relative-time.js +30 -0
- package/dist/components/resizable-split-prepaint.d.ts +12 -0
- package/dist/components/resizable-split-prepaint.d.ts.map +1 -0
- package/dist/components/resizable-split-prepaint.js +5 -0
- package/dist/components/resizable-split.context.d.ts +11 -0
- package/dist/components/resizable-split.context.d.ts.map +1 -0
- package/dist/components/resizable-split.context.js +9 -0
- package/dist/components/resizable-split.d.ts +30 -0
- package/dist/components/resizable-split.d.ts.map +1 -0
- package/dist/components/resizable-split.js +85 -0
- package/dist/components/resizable.d.ts +21 -0
- package/dist/components/resizable.d.ts.map +1 -0
- package/dist/components/resizable.js +90 -0
- package/dist/components/resizable.model.d.ts +18 -0
- package/dist/components/resizable.model.d.ts.map +1 -0
- package/dist/components/resizable.model.js +11 -0
- package/dist/components/resizable.parts.d.ts +20 -0
- package/dist/components/resizable.parts.d.ts.map +1 -0
- package/dist/components/resizable.parts.js +36 -0
- package/dist/components/resizable.variants.d.ts +16 -0
- package/dist/components/resizable.variants.d.ts.map +1 -0
- package/dist/components/resizable.variants.js +41 -0
- package/dist/components/row.variants.d.ts +10 -0
- package/dist/components/row.variants.d.ts.map +1 -0
- package/dist/components/row.variants.js +36 -0
- package/dist/components/secret-input.d.ts +20 -0
- package/dist/components/secret-input.d.ts.map +1 -0
- package/dist/components/secret-input.js +94 -0
- package/dist/components/section-index.d.ts +23 -0
- package/dist/components/section-index.d.ts.map +1 -0
- package/dist/components/section-index.js +51 -0
- package/dist/components/section.d.ts +19 -0
- package/dist/components/section.d.ts.map +1 -0
- package/dist/components/section.js +42 -0
- package/dist/components/select.d.ts +28 -0
- package/dist/components/select.d.ts.map +1 -0
- package/dist/components/select.js +120 -0
- package/dist/components/select.keys.d.ts +6 -0
- package/dist/components/select.keys.d.ts.map +1 -0
- package/dist/components/select.keys.js +20 -0
- package/dist/components/select.list.d.ts +26 -0
- package/dist/components/select.list.d.ts.map +1 -0
- package/dist/components/select.list.js +50 -0
- package/dist/components/select.parts.d.ts +53 -0
- package/dist/components/select.parts.d.ts.map +1 -0
- package/dist/components/select.parts.js +95 -0
- package/dist/components/select.variants.d.ts +13 -0
- package/dist/components/select.variants.d.ts.map +1 -0
- package/dist/components/select.variants.js +54 -0
- package/dist/components/sheet.d.ts +27 -0
- package/dist/components/sheet.d.ts.map +1 -0
- package/dist/components/sheet.docked.d.ts +8 -0
- package/dist/components/sheet.docked.d.ts.map +1 -0
- package/dist/components/sheet.docked.js +106 -0
- package/dist/components/sheet.js +61 -0
- package/dist/components/sheet.narrow.d.ts +3 -0
- package/dist/components/sheet.narrow.d.ts.map +1 -0
- package/dist/components/sheet.narrow.js +9 -0
- package/dist/components/sidebar.d.ts +14 -0
- package/dist/components/sidebar.d.ts.map +1 -0
- package/dist/components/sidebar.js +48 -0
- package/dist/components/skeleton.d.ts +10 -0
- package/dist/components/skeleton.d.ts.map +1 -0
- package/dist/components/skeleton.js +21 -0
- package/dist/components/sparkline.d.ts +26 -0
- package/dist/components/sparkline.d.ts.map +1 -0
- package/dist/components/sparkline.js +83 -0
- package/dist/components/spinner.d.ts +10 -0
- package/dist/components/spinner.d.ts.map +1 -0
- package/dist/components/spinner.js +38 -0
- package/dist/components/stat-card.d.ts +9 -0
- package/dist/components/stat-card.d.ts.map +1 -0
- package/dist/components/stat-card.header.d.ts +19 -0
- package/dist/components/stat-card.header.d.ts.map +1 -0
- package/dist/components/stat-card.header.js +43 -0
- package/dist/components/stat-card.js +84 -0
- package/dist/components/stat-card.parts.d.ts +10 -0
- package/dist/components/stat-card.parts.d.ts.map +1 -0
- package/dist/components/stat-card.parts.js +35 -0
- package/dist/components/stat-card.state.d.ts +9 -0
- package/dist/components/stat-card.state.d.ts.map +1 -0
- package/dist/components/stat-card.state.js +51 -0
- package/dist/components/stat-card.types.d.ts +28 -0
- package/dist/components/stat-card.types.d.ts.map +1 -0
- package/dist/components/stat-card.types.js +0 -0
- package/dist/components/status-bar.d.ts +32 -0
- package/dist/components/status-bar.d.ts.map +1 -0
- package/dist/components/status-bar.js +114 -0
- package/dist/components/status-bar.variants.d.ts +12 -0
- package/dist/components/status-bar.variants.d.ts.map +1 -0
- package/dist/components/status-bar.variants.js +63 -0
- package/dist/components/status-glyph.d.ts +15 -0
- package/dist/components/status-glyph.d.ts.map +1 -0
- package/dist/components/status-glyph.js +118 -0
- package/dist/components/status-glyph.status.d.ts +11 -0
- package/dist/components/status-glyph.status.d.ts.map +1 -0
- package/dist/components/status-glyph.status.js +33 -0
- package/dist/components/step-list.d.ts +28 -0
- package/dist/components/step-list.d.ts.map +1 -0
- package/dist/components/step-list.js +70 -0
- package/dist/components/step-list.parts.d.ts +34 -0
- package/dist/components/step-list.parts.d.ts.map +1 -0
- package/dist/components/step-list.parts.js +74 -0
- package/dist/components/switch.d.ts +22 -0
- package/dist/components/switch.d.ts.map +1 -0
- package/dist/components/switch.js +93 -0
- package/dist/components/table.d.ts +19 -0
- package/dist/components/table.d.ts.map +1 -0
- package/dist/components/table.js +73 -0
- package/dist/components/tabs.context.d.ts +19 -0
- package/dist/components/tabs.context.d.ts.map +1 -0
- package/dist/components/tabs.context.js +15 -0
- package/dist/components/tabs.d.ts +23 -0
- package/dist/components/tabs.d.ts.map +1 -0
- package/dist/components/tabs.js +61 -0
- package/dist/components/tabs.trigger.d.ts +12 -0
- package/dist/components/tabs.trigger.d.ts.map +1 -0
- package/dist/components/tabs.trigger.js +69 -0
- package/dist/components/tabs.variants.d.ts +10 -0
- package/dist/components/tabs.variants.d.ts.map +1 -0
- package/dist/components/tabs.variants.js +33 -0
- package/dist/components/toast.d.ts +21 -0
- package/dist/components/toast.d.ts.map +1 -0
- package/dist/components/toast.js +125 -0
- package/dist/components/toggle-group.d.ts +36 -0
- package/dist/components/toggle-group.d.ts.map +1 -0
- package/dist/components/toggle-group.js +68 -0
- package/dist/components/toggle-group.variants.d.ts +13 -0
- package/dist/components/toggle-group.variants.d.ts.map +1 -0
- package/dist/components/toggle-group.variants.js +71 -0
- package/dist/components/tooltip.d.ts +10 -0
- package/dist/components/tooltip.d.ts.map +1 -0
- package/dist/components/tooltip.js +49 -0
- package/dist/components/tree-select.d.ts +26 -0
- package/dist/components/tree-select.d.ts.map +1 -0
- package/dist/components/tree-select.js +102 -0
- package/dist/components/tree-select.model.d.ts +30 -0
- package/dist/components/tree-select.model.d.ts.map +1 -0
- package/dist/components/tree-select.model.js +33 -0
- package/dist/components/tree-select.rows.d.ts +18 -0
- package/dist/components/tree-select.rows.d.ts.map +1 -0
- package/dist/components/tree-select.rows.js +39 -0
- package/dist/components/truncate.d.ts +9 -0
- package/dist/components/truncate.d.ts.map +1 -0
- package/dist/components/truncate.js +31 -0
- package/dist/components/use-split-state.d.ts +17 -0
- package/dist/components/use-split-state.d.ts.map +1 -0
- package/dist/components/use-split-state.js +51 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +96 -0
- package/dist/lib/aria.d.ts +4 -0
- package/dist/lib/aria.d.ts.map +1 -0
- package/dist/lib/aria.js +4 -0
- package/dist/lib/copy-text.d.ts +3 -0
- package/dist/lib/copy-text.d.ts.map +1 -0
- package/dist/lib/copy-text.js +20 -0
- package/dist/lib/cron.d.ts +13 -0
- package/dist/lib/cron.d.ts.map +1 -0
- package/dist/lib/cron.js +131 -0
- package/dist/lib/cron.next.d.ts +9 -0
- package/dist/lib/cron.next.d.ts.map +1 -0
- package/dist/lib/cron.next.js +49 -0
- package/dist/lib/cron.text.d.ts +3 -0
- package/dist/lib/cron.text.d.ts.map +1 -0
- package/dist/lib/cron.text.js +61 -0
- package/dist/lib/drag-reorder.d.ts +33 -0
- package/dist/lib/drag-reorder.d.ts.map +1 -0
- package/dist/lib/drag-reorder.js +61 -0
- package/dist/lib/index.d.ts +2 -0
- package/dist/lib/index.d.ts.map +1 -0
- package/dist/lib/index.js +1 -0
- package/dist/lib/list-controls-storage.d.ts +7 -0
- package/dist/lib/list-controls-storage.d.ts.map +1 -0
- package/dist/lib/list-controls-storage.js +25 -0
- package/dist/lib/list-controls.d.ts +49 -0
- package/dist/lib/list-controls.d.ts.map +1 -0
- package/dist/lib/list-controls.js +44 -0
- package/dist/lib/list-navigation.d.ts +3 -0
- package/dist/lib/list-navigation.d.ts.map +1 -0
- package/dist/lib/list-navigation.js +7 -0
- package/dist/lib/overlay-layer.d.ts +32 -0
- package/dist/lib/overlay-layer.d.ts.map +1 -0
- package/dist/lib/overlay-layer.js +37 -0
- package/dist/lib/panel-sizes.d.ts +18 -0
- package/dist/lib/panel-sizes.d.ts.map +1 -0
- package/dist/lib/panel-sizes.js +25 -0
- package/dist/lib/relative-range.d.ts +23 -0
- package/dist/lib/relative-range.d.ts.map +1 -0
- package/dist/lib/relative-range.js +130 -0
- package/dist/lib/relative-time-format.d.ts +6 -0
- package/dist/lib/relative-time-format.d.ts.map +1 -0
- package/dist/lib/relative-time-format.js +21 -0
- package/dist/lib/split-px.d.ts +23 -0
- package/dist/lib/split-px.d.ts.map +1 -0
- package/dist/lib/split-px.js +30 -0
- package/dist/lib/table-sort.d.ts +11 -0
- package/dist/lib/table-sort.d.ts.map +1 -0
- package/dist/lib/table-sort.js +17 -0
- package/dist/lib/usage-level.d.ts +13 -0
- package/dist/lib/usage-level.d.ts.map +1 -0
- package/dist/lib/usage-level.js +12 -0
- package/dist/lib/use-anchor-position.d.ts +22 -0
- package/dist/lib/use-anchor-position.d.ts.map +1 -0
- package/dist/lib/use-anchor-position.js +41 -0
- package/dist/lib/use-announce.d.ts +6 -0
- package/dist/lib/use-announce.d.ts.map +1 -0
- package/dist/lib/use-announce.js +20 -0
- package/dist/lib/use-cell-stack.d.ts +8 -0
- package/dist/lib/use-cell-stack.d.ts.map +1 -0
- package/dist/lib/use-cell-stack.js +23 -0
- package/dist/lib/use-controlled.d.ts +8 -0
- package/dist/lib/use-controlled.d.ts.map +1 -0
- package/dist/lib/use-controlled.js +22 -0
- package/dist/lib/use-drag-reorder.d.ts +28 -0
- package/dist/lib/use-drag-reorder.d.ts.map +1 -0
- package/dist/lib/use-drag-reorder.js +100 -0
- package/dist/lib/use-flip.d.ts +8 -0
- package/dist/lib/use-flip.d.ts.map +1 -0
- package/dist/lib/use-flip.js +28 -0
- package/dist/lib/use-focus-origin.d.ts +9 -0
- package/dist/lib/use-focus-origin.d.ts.map +1 -0
- package/dist/lib/use-focus-origin.js +15 -0
- package/dist/lib/use-focus-restore.d.ts +7 -0
- package/dist/lib/use-focus-restore.d.ts.map +1 -0
- package/dist/lib/use-focus-restore.js +15 -0
- package/dist/lib/use-focus-trap.d.ts +5 -0
- package/dist/lib/use-focus-trap.d.ts.map +1 -0
- package/dist/lib/use-focus-trap.js +32 -0
- package/dist/lib/use-keep-focus.d.ts +4 -0
- package/dist/lib/use-keep-focus.d.ts.map +1 -0
- package/dist/lib/use-keep-focus.js +20 -0
- package/dist/lib/use-list-controls.d.ts +28 -0
- package/dist/lib/use-list-controls.d.ts.map +1 -0
- package/dist/lib/use-list-controls.js +72 -0
- package/dist/lib/use-mounted.d.ts +3 -0
- package/dist/lib/use-mounted.d.ts.map +1 -0
- package/dist/lib/use-mounted.js +8 -0
- package/dist/lib/use-persisted-state.d.ts +21 -0
- package/dist/lib/use-persisted-state.d.ts.map +1 -0
- package/dist/lib/use-persisted-state.js +52 -0
- package/dist/lib/use-roving-focus.d.ts +14 -0
- package/dist/lib/use-roving-focus.d.ts.map +1 -0
- package/dist/lib/use-roving-focus.js +36 -0
- package/dist/lib/use-scroll-lock.d.ts +6 -0
- package/dist/lib/use-scroll-lock.d.ts.map +1 -0
- package/dist/lib/use-scroll-lock.js +23 -0
- package/dist/lib/use-scroll-spy.d.ts +12 -0
- package/dist/lib/use-scroll-spy.d.ts.map +1 -0
- package/dist/lib/use-scroll-spy.js +34 -0
- package/dist/lib/utils.d.ts +12 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +9 -0
- package/package.json +457 -4
- package/src/styles/base.css +98 -0
- package/src/styles/primitives.css +143 -0
- package/src/styles/theme.css +10 -0
- package/src/styles/tokens.css +344 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const paginationButtonVariants: (props?: ({
|
|
3
|
+
active?: boolean | null | undefined;
|
|
4
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
5
|
+
export interface PaginationProps extends React.HTMLAttributes<HTMLElement> {
|
|
6
|
+
page: number;
|
|
7
|
+
pageCount: number;
|
|
8
|
+
onPageChange: (page: number) => void;
|
|
9
|
+
/** Accessible name for the navigation landmark. Defaults to "Pagination". */
|
|
10
|
+
'aria-label'?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const Pagination: React.ForwardRefExoticComponent<PaginationProps & React.RefAttributes<HTMLElement>>;
|
|
13
|
+
//# sourceMappingURL=pagination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../src/components/pagination.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,eAAO,MAAM,wBAAwB;;8EAkBpC,CAAC;AAEF,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACxE,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,6EAA6E;IAC7E,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAgFD,eAAO,MAAM,UAAU,qFAiEtB,CAAC"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../lib/utils.js";
|
|
3
|
+
import * as t from "react";
|
|
4
|
+
import { cva as n } from "class-variance-authority";
|
|
5
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
6
|
+
// src/components/pagination.tsx
|
|
7
|
+
var a = n([
|
|
8
|
+
"inline-flex size-7 items-center justify-center rounded-lg text-ui tabular-nums transition-colors",
|
|
9
|
+
"hover:bg-accent hover:text-accent-foreground",
|
|
10
|
+
"focus-ring",
|
|
11
|
+
"disabled:pointer-events-none disabled:opacity-50"
|
|
12
|
+
], {
|
|
13
|
+
variants: { active: {
|
|
14
|
+
true: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
15
|
+
false: ""
|
|
16
|
+
} },
|
|
17
|
+
defaultVariants: { active: !1 }
|
|
18
|
+
}), o = () => /* @__PURE__ */ r("svg", {
|
|
19
|
+
width: "16",
|
|
20
|
+
height: "16",
|
|
21
|
+
viewBox: "0 0 24 24",
|
|
22
|
+
fill: "none",
|
|
23
|
+
stroke: "currentColor",
|
|
24
|
+
strokeWidth: "2",
|
|
25
|
+
strokeLinecap: "round",
|
|
26
|
+
strokeLinejoin: "round",
|
|
27
|
+
children: /* @__PURE__ */ r("path", { d: "m15 18-6-6 6-6" })
|
|
28
|
+
}), s = () => /* @__PURE__ */ r("svg", {
|
|
29
|
+
width: "16",
|
|
30
|
+
height: "16",
|
|
31
|
+
viewBox: "0 0 24 24",
|
|
32
|
+
fill: "none",
|
|
33
|
+
stroke: "currentColor",
|
|
34
|
+
strokeWidth: "2",
|
|
35
|
+
strokeLinecap: "round",
|
|
36
|
+
strokeLinejoin: "round",
|
|
37
|
+
children: /* @__PURE__ */ r("path", { d: "m9 18 6-6-6-6" })
|
|
38
|
+
}), c = () => /* @__PURE__ */ i("svg", {
|
|
39
|
+
width: "16",
|
|
40
|
+
height: "16",
|
|
41
|
+
viewBox: "0 0 24 24",
|
|
42
|
+
fill: "none",
|
|
43
|
+
stroke: "currentColor",
|
|
44
|
+
strokeWidth: "2",
|
|
45
|
+
strokeLinecap: "round",
|
|
46
|
+
strokeLinejoin: "round",
|
|
47
|
+
children: [/* @__PURE__ */ r("path", { d: "m11 17-5-5 5-5" }), /* @__PURE__ */ r("path", { d: "m18 17-5-5 5-5" })]
|
|
48
|
+
}), l = () => /* @__PURE__ */ i("svg", {
|
|
49
|
+
width: "16",
|
|
50
|
+
height: "16",
|
|
51
|
+
viewBox: "0 0 24 24",
|
|
52
|
+
fill: "none",
|
|
53
|
+
stroke: "currentColor",
|
|
54
|
+
strokeWidth: "2",
|
|
55
|
+
strokeLinecap: "round",
|
|
56
|
+
strokeLinejoin: "round",
|
|
57
|
+
children: [/* @__PURE__ */ r("path", { d: "m6 17 5-5-5-5" }), /* @__PURE__ */ r("path", { d: "m13 17 5-5-5-5" })]
|
|
58
|
+
}), u = t.forwardRef(({ className: t, disabled: n, active: i, ...o }, s) => /* @__PURE__ */ r("button", {
|
|
59
|
+
ref: s,
|
|
60
|
+
type: "button",
|
|
61
|
+
disabled: n,
|
|
62
|
+
className: e(a({ active: i }), t),
|
|
63
|
+
...o
|
|
64
|
+
}));
|
|
65
|
+
u.displayName = "PaginationButton";
|
|
66
|
+
var d = t.forwardRef(({ page: t, pageCount: n, onPageChange: a, className: d, "aria-label": f, ...p }, m) => {
|
|
67
|
+
let h = t > 1, g = t < n, _ = () => {
|
|
68
|
+
let e = [], r = Math.max(1, t - 2), i = Math.min(n, t + 2);
|
|
69
|
+
for (let t = r; t <= i; t++) e.push(t);
|
|
70
|
+
return e;
|
|
71
|
+
};
|
|
72
|
+
return /* @__PURE__ */ i("nav", {
|
|
73
|
+
ref: m,
|
|
74
|
+
role: "navigation",
|
|
75
|
+
"aria-label": f ?? "Pagination",
|
|
76
|
+
className: e("flex items-center gap-1", d),
|
|
77
|
+
"data-slot": "pagination",
|
|
78
|
+
...p,
|
|
79
|
+
children: [
|
|
80
|
+
/* @__PURE__ */ r(u, {
|
|
81
|
+
onClick: () => a(1),
|
|
82
|
+
disabled: !h,
|
|
83
|
+
"aria-label": "First page",
|
|
84
|
+
children: /* @__PURE__ */ r(c, {})
|
|
85
|
+
}),
|
|
86
|
+
/* @__PURE__ */ r(u, {
|
|
87
|
+
onClick: () => a(t - 1),
|
|
88
|
+
disabled: !h,
|
|
89
|
+
"aria-label": "Previous page",
|
|
90
|
+
children: /* @__PURE__ */ r(o, {})
|
|
91
|
+
}),
|
|
92
|
+
_().map((e) => /* @__PURE__ */ r(u, {
|
|
93
|
+
onClick: () => a(e),
|
|
94
|
+
"aria-current": e === t ? "page" : void 0,
|
|
95
|
+
active: e === t,
|
|
96
|
+
children: e
|
|
97
|
+
}, e)),
|
|
98
|
+
/* @__PURE__ */ r(u, {
|
|
99
|
+
onClick: () => a(t + 1),
|
|
100
|
+
disabled: !g,
|
|
101
|
+
"aria-label": "Next page",
|
|
102
|
+
children: /* @__PURE__ */ r(s, {})
|
|
103
|
+
}),
|
|
104
|
+
/* @__PURE__ */ r(u, {
|
|
105
|
+
onClick: () => a(n),
|
|
106
|
+
disabled: !g,
|
|
107
|
+
"aria-label": "Last page",
|
|
108
|
+
children: /* @__PURE__ */ r(l, {})
|
|
109
|
+
})
|
|
110
|
+
]
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
d.displayName = "Pagination";
|
|
114
|
+
export { d as Pagination, a as paginationButtonVariants };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface PopoverProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'content'> {
|
|
3
|
+
trigger: ReactNode;
|
|
4
|
+
content: ReactNode;
|
|
5
|
+
open?: boolean;
|
|
6
|
+
onOpenChange?: (open: boolean) => void;
|
|
7
|
+
align?: 'start' | 'center' | 'end';
|
|
8
|
+
/** Preferred side; flips when there is no room. Default `top`. */
|
|
9
|
+
side?: 'top' | 'bottom';
|
|
10
|
+
/** Accessible name of the surface; `aria-label` or `aria-labelledby` also work. */
|
|
11
|
+
label?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Non-modal surface anchored to `trigger`. Focus moves in on open and back to the trigger on
|
|
15
|
+
* close; Tab past either end leaves the surface next to the trigger and closes it.
|
|
16
|
+
*/
|
|
17
|
+
export declare const Popover: ({ trigger, content, open: isOpen, onOpenChange, align, side, label, className, onKeyDown, ...props }: PopoverProps) => React.JSX.Element;
|
|
18
|
+
//# sourceMappingURL=popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../src/components/popover.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAyD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAQ9F,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,SAAS,CAAC;IACzF,OAAO,EAAE,SAAS,CAAC;IACnB,OAAO,EAAE,SAAS,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACnC,kEAAkE;IAClE,IAAI,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IACxB,mFAAmF;IACnF,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAKD;;;GAGG;AACH,eAAO,MAAM,OAAO,GAAI,sGAWrB,YAAY,KAAG,KAAK,CAAC,GAAG,CAAC,OAuF3B,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { OverlayLayerProvider as e, useOverlayLayer as t } from "../lib/overlay-layer.js";
|
|
3
|
+
import { useAnchorPosition as n } from "../lib/use-anchor-position.js";
|
|
4
|
+
import { FOCUSABLE_SELECTOR as r } from "../lib/use-focus-trap.js";
|
|
5
|
+
import { useMounted as i } from "../lib/use-mounted.js";
|
|
6
|
+
import { cn as a } from "../lib/utils.js";
|
|
7
|
+
import { isValidElement as o, useCallback as s, useEffect as c, useId as l, useRef as u } from "react";
|
|
8
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
9
|
+
import { Slot as p } from "@radix-ui/react-slot";
|
|
10
|
+
import { createPortal as m } from "react-dom";
|
|
11
|
+
// src/components/popover.tsx
|
|
12
|
+
var h = (e) => Array.from(e?.querySelectorAll(r) ?? []), g = ({ trigger: g, content: _, open: v = !1, onOpenChange: y, align: b = "start", side: x = "top", label: S, className: C, onKeyDown: w, ...T }) => {
|
|
13
|
+
let E = s(() => y?.(!1), [y]), D = u(null), O = u(null), k = i(), A = `${l()}-popover`, j = v && k, M = t(j, {
|
|
14
|
+
refs: [D, O],
|
|
15
|
+
onEscape: E,
|
|
16
|
+
onOutside: E
|
|
17
|
+
}), { top: N, left: P } = n(D, O, j, {
|
|
18
|
+
side: x,
|
|
19
|
+
align: b
|
|
20
|
+
}), F = () => D.current?.querySelector(r) ?? null;
|
|
21
|
+
c(() => {
|
|
22
|
+
if (!j) return;
|
|
23
|
+
let e = O.current;
|
|
24
|
+
return (h(e)[0] ?? e)?.focus(), () => {
|
|
25
|
+
let t = document.activeElement;
|
|
26
|
+
(!t || t === document.body || (e?.contains(t) ?? !1)) && F()?.focus();
|
|
27
|
+
};
|
|
28
|
+
}, [j]);
|
|
29
|
+
let I = (e) => {
|
|
30
|
+
if (w?.(e), e.defaultPrevented || e.key !== "Tab") return;
|
|
31
|
+
let t = h(O.current);
|
|
32
|
+
(e.shiftKey ? t.length === 0 || document.activeElement === t[0] || document.activeElement === O.current : t.length === 0 || document.activeElement === t[t.length - 1]) && (F()?.focus(), e.shiftKey && e.preventDefault(), E());
|
|
33
|
+
}, L = S ?? T["aria-label"], R = o(g);
|
|
34
|
+
return /* @__PURE__ */ f("div", {
|
|
35
|
+
ref: D,
|
|
36
|
+
className: "relative",
|
|
37
|
+
"data-slot": "popover",
|
|
38
|
+
children: [R ? /* @__PURE__ */ d(p, {
|
|
39
|
+
"aria-expanded": v,
|
|
40
|
+
"aria-controls": j ? A : void 0,
|
|
41
|
+
children: g
|
|
42
|
+
}) : g, j && m(/* @__PURE__ */ d(e, {
|
|
43
|
+
layer: M,
|
|
44
|
+
children: /* @__PURE__ */ d("div", {
|
|
45
|
+
ref: O,
|
|
46
|
+
id: A,
|
|
47
|
+
role: "dialog",
|
|
48
|
+
tabIndex: -1,
|
|
49
|
+
style: {
|
|
50
|
+
position: "fixed",
|
|
51
|
+
top: N,
|
|
52
|
+
left: P
|
|
53
|
+
},
|
|
54
|
+
className: a("z-[var(--z-overlay,50)] min-w-60 rounded-lg border border-border bg-popover p-3 text-ui shadow-[var(--shadow-popover)] outline-none", C),
|
|
55
|
+
"data-slot": "popover-content",
|
|
56
|
+
...T,
|
|
57
|
+
"aria-label": L ?? (T["aria-labelledby"] ? void 0 : "Popover"),
|
|
58
|
+
onKeyDown: I,
|
|
59
|
+
children: _
|
|
60
|
+
})
|
|
61
|
+
}), document.body)]
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
export { g as Popover };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type Priority = 'urgent' | 'high' | 'medium' | 'low' | 'none';
|
|
3
|
+
export declare const PRIORITY_LABEL: Record<Priority, string>;
|
|
4
|
+
export interface PriorityGlyphProps extends Omit<React.SVGAttributes<SVGSVGElement>, 'children'> {
|
|
5
|
+
priority: Priority;
|
|
6
|
+
/** Accessible name; defaults to "High priority". Pass `null` when a visible label sits beside it. */
|
|
7
|
+
label?: string | null;
|
|
8
|
+
}
|
|
9
|
+
/** 14 px priority mark: three bars with 3, 2 or 1 lit, a filled "!" square for urgent, a dash for none. */
|
|
10
|
+
export declare const PriorityGlyph: React.ForwardRefExoticComponent<PriorityGlyphProps & React.RefAttributes<SVGSVGElement>>;
|
|
11
|
+
//# sourceMappingURL=priority-glyph.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"priority-glyph.d.ts","sourceRoot":"","sources":["../../src/components/priority-glyph.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,CAAC;AAErE,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAMnD,CAAC;AASF,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,EAAE,UAAU,CAAC;IAC9F,QAAQ,EAAE,QAAQ,CAAC;IACnB,qGAAqG;IACrG,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,2GAA2G;AAC3G,eAAO,MAAM,aAAa,0FAuDzB,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { cn as e } from "../lib/utils.js";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
|
+
// src/components/priority-glyph.tsx
|
|
5
|
+
var a = {
|
|
6
|
+
urgent: "Urgent",
|
|
7
|
+
high: "High",
|
|
8
|
+
medium: "Medium",
|
|
9
|
+
low: "Low",
|
|
10
|
+
none: "No priority"
|
|
11
|
+
}, o = {
|
|
12
|
+
urgent: 3,
|
|
13
|
+
high: 3,
|
|
14
|
+
medium: 2,
|
|
15
|
+
low: 1,
|
|
16
|
+
none: 0
|
|
17
|
+
}, s = [
|
|
18
|
+
{
|
|
19
|
+
x: 1.5,
|
|
20
|
+
y: 8,
|
|
21
|
+
h: 4
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
x: 5.5,
|
|
25
|
+
y: 5,
|
|
26
|
+
h: 7
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
x: 9.5,
|
|
30
|
+
y: 2,
|
|
31
|
+
h: 10
|
|
32
|
+
}
|
|
33
|
+
], c = t.forwardRef(({ priority: t, label: c, className: l, ...u }, d) => {
|
|
34
|
+
let f = c === void 0 ? t === "none" ? a.none : `${a[t]} priority` : c;
|
|
35
|
+
return /* @__PURE__ */ r("svg", {
|
|
36
|
+
ref: d,
|
|
37
|
+
viewBox: "0 0 14 14",
|
|
38
|
+
className: e("inline-block size-3.5 shrink-0 text-muted-foreground", l),
|
|
39
|
+
role: f ? "img" : void 0,
|
|
40
|
+
"aria-label": f ?? void 0,
|
|
41
|
+
"aria-hidden": !f || void 0,
|
|
42
|
+
focusable: "false",
|
|
43
|
+
"data-slot": "priority-glyph",
|
|
44
|
+
"data-priority": t,
|
|
45
|
+
...u,
|
|
46
|
+
children: t === "urgent" ? /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ r("rect", {
|
|
47
|
+
x: "1",
|
|
48
|
+
y: "1",
|
|
49
|
+
width: "12",
|
|
50
|
+
height: "12",
|
|
51
|
+
rx: "3",
|
|
52
|
+
className: "fill-destructive"
|
|
53
|
+
}), /* @__PURE__ */ r("path", {
|
|
54
|
+
d: "M7 3.8v3.8M7 10v.1",
|
|
55
|
+
className: "stroke-background",
|
|
56
|
+
strokeWidth: "1.8",
|
|
57
|
+
strokeLinecap: "round"
|
|
58
|
+
})] }) : t === "none" ? /* @__PURE__ */ r("path", {
|
|
59
|
+
d: "M2.5 7h1M6.5 7h1M10.5 7h1",
|
|
60
|
+
stroke: "currentColor",
|
|
61
|
+
strokeWidth: "1.6",
|
|
62
|
+
strokeLinecap: "round"
|
|
63
|
+
}) : s.map((e, n) => /* @__PURE__ */ r("rect", {
|
|
64
|
+
x: e.x,
|
|
65
|
+
y: e.y,
|
|
66
|
+
width: "3",
|
|
67
|
+
height: e.h,
|
|
68
|
+
rx: "1",
|
|
69
|
+
fill: "currentColor",
|
|
70
|
+
opacity: n < o[t] ? 1 : .3
|
|
71
|
+
}, e.x))
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
c.displayName = "PriorityGlyph";
|
|
75
|
+
export { a as PRIORITY_LABEL, c as PriorityGlyph };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ProgressSegment } from './progress.segments.js';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type { ProgressSegment, ProgressSegmentTone } from './progress.segments.js';
|
|
4
|
+
export declare const progressVariants: (props?: ({
|
|
5
|
+
variant?: "success" | "warning" | "destructive" | "info" | "default" | null | undefined;
|
|
6
|
+
indeterminate?: boolean | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
+
export interface ProgressProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
9
|
+
/** Omit for unknown progress: no `aria-valuenow` and an animated full-width bar. */
|
|
10
|
+
value?: number;
|
|
11
|
+
max?: number;
|
|
12
|
+
variant?: 'default' | 'success' | 'warning' | 'destructive' | 'info';
|
|
13
|
+
/** Name of the bar: the default `aria-label`, and the visible text with `showValue`. */
|
|
14
|
+
label?: string;
|
|
15
|
+
/** Shows the value: beside the bar ("2 of 7 done, 29%"), or on the right of the meter label row. */
|
|
16
|
+
showValue?: boolean;
|
|
17
|
+
/** Value text, visible and in `aria-valuetext`; defaults to the rounded percentage. */
|
|
18
|
+
formatValue?: (value: number, max: number) => string;
|
|
19
|
+
/** Quota meter: `role="meter"`, a label row over the bar, warning past 80 % and destructive past 95 % with a glyph. */
|
|
20
|
+
meter?: boolean;
|
|
21
|
+
/** `md` 8 px track (default), `sm` 6 px. */
|
|
22
|
+
size?: 'sm' | 'md';
|
|
23
|
+
/** Part of whole: one proportional bar per segment with 2 px gaps, in place of value and max. */
|
|
24
|
+
segments?: ProgressSegment[];
|
|
25
|
+
/** With `segments`: a legend row of glyph, name and count. */
|
|
26
|
+
legend?: boolean;
|
|
27
|
+
}
|
|
28
|
+
/** A determinate or indeterminate bar, a quota `meter`, or a part-of-whole bar from `segments`. */
|
|
29
|
+
export declare const Progress: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<HTMLDivElement>>;
|
|
30
|
+
//# sourceMappingURL=progress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../src/components/progress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAoB,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE7E,YAAY,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAEhF,eAAO,MAAM,gBAAgB;;;8EAkB3B,CAAC;AAEH,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACzE,oFAAoF;IACpF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,aAAa,GAAG,MAAM,CAAC;IACrE,wFAAwF;IACxF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oGAAoG;IACpG,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,uFAAuF;IACvF,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;IACrD,uHAAuH;IACvH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,4CAA4C;IAC5C,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,iGAAiG;IACjG,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAC;IAC7B,8DAA8D;IAC9D,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,mGAAmG;AACnG,eAAO,MAAM,QAAQ,sFAsGpB,CAAC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { cn as e } from "../lib/utils.js";
|
|
2
|
+
import { LevelCue as t, ProgressTop as n, progressLevel as r } from "./progress.meter.js";
|
|
3
|
+
import { ProgressSegments as i } from "./progress.segments.js";
|
|
4
|
+
import * as a from "react";
|
|
5
|
+
import { cva as o } from "class-variance-authority";
|
|
6
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
7
|
+
// src/components/progress.tsx
|
|
8
|
+
var l = o("h-full rounded-full transition-all duration-300", {
|
|
9
|
+
variants: {
|
|
10
|
+
variant: {
|
|
11
|
+
default: "bg-primary",
|
|
12
|
+
success: "bg-success",
|
|
13
|
+
warning: "bg-warning",
|
|
14
|
+
destructive: "bg-destructive",
|
|
15
|
+
info: "bg-info"
|
|
16
|
+
},
|
|
17
|
+
indeterminate: {
|
|
18
|
+
true: "w-full motion-safe:animate-pulse",
|
|
19
|
+
false: ""
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
defaultVariants: {
|
|
23
|
+
variant: "default",
|
|
24
|
+
indeterminate: !1
|
|
25
|
+
}
|
|
26
|
+
}), u = a.forwardRef(({ value: o, max: u = 100, variant: d = "default", label: f, showValue: p = !1, formatValue: m, meter: h = !1, size: g = "md", className: _, "aria-label": v, segments: y, legend: b, ...x }, S) => {
|
|
27
|
+
let C = `${a.useId()}-progress-label`;
|
|
28
|
+
if (y) return /* @__PURE__ */ s(i, {
|
|
29
|
+
ref: S,
|
|
30
|
+
segments: y,
|
|
31
|
+
legend: b,
|
|
32
|
+
label: v ?? f,
|
|
33
|
+
className: _,
|
|
34
|
+
...x
|
|
35
|
+
});
|
|
36
|
+
let w = o === void 0, T = o ?? 0, E = u > 0 ? Math.min(100, Math.max(0, T / u * 100)) : 0, D = r(T, u, Math.round(E), {
|
|
37
|
+
meter: h,
|
|
38
|
+
formatValue: m,
|
|
39
|
+
variant: d
|
|
40
|
+
}), O = h, k = w ? void 0 : { width: `${String(E)}%` }, A = f ? `${f}, ${D.text}` : D.text, j = /* @__PURE__ */ s("div", {
|
|
41
|
+
ref: O ? void 0 : S,
|
|
42
|
+
role: h ? "meter" : "progressbar",
|
|
43
|
+
"aria-valuenow": w ? void 0 : Math.min(u, Math.max(0, T)),
|
|
44
|
+
"aria-valuemin": 0,
|
|
45
|
+
"aria-valuemax": u,
|
|
46
|
+
"aria-valuetext": w ? void 0 : D.valueText,
|
|
47
|
+
"aria-label": O ? v : v ?? (p ? A : f),
|
|
48
|
+
"aria-labelledby": O && !v ? C : void 0,
|
|
49
|
+
"data-slot": "progress",
|
|
50
|
+
"data-indeterminate": w || void 0,
|
|
51
|
+
"data-level": D.level,
|
|
52
|
+
className: e("w-full overflow-hidden rounded-full bg-muted", g === "sm" ? "h-1.5" : "h-2", p && !O ? "min-w-0 flex-1" : !O && _),
|
|
53
|
+
...O ? {} : x,
|
|
54
|
+
children: /* @__PURE__ */ s("div", {
|
|
55
|
+
className: e(l({
|
|
56
|
+
variant: D.variant,
|
|
57
|
+
indeterminate: w
|
|
58
|
+
})),
|
|
59
|
+
"data-slot": "progress-fill",
|
|
60
|
+
style: k
|
|
61
|
+
})
|
|
62
|
+
});
|
|
63
|
+
return O ? /* @__PURE__ */ c("div", {
|
|
64
|
+
ref: S,
|
|
65
|
+
className: e("space-y-1.5", _),
|
|
66
|
+
"data-level": D.level,
|
|
67
|
+
"data-slot": "progress-meter",
|
|
68
|
+
...x,
|
|
69
|
+
children: [/* @__PURE__ */ s(n, {
|
|
70
|
+
labelId: C,
|
|
71
|
+
label: f,
|
|
72
|
+
size: g,
|
|
73
|
+
showValue: p,
|
|
74
|
+
info: D
|
|
75
|
+
}), j]
|
|
76
|
+
}) : p ? /* @__PURE__ */ c("span", {
|
|
77
|
+
className: e("inline-flex w-60 items-center gap-1.5 text-xs text-muted-foreground", _),
|
|
78
|
+
"data-slot": "progress-value",
|
|
79
|
+
children: [j, /* @__PURE__ */ c("span", {
|
|
80
|
+
className: "shrink-0",
|
|
81
|
+
"aria-hidden": "true",
|
|
82
|
+
children: [/* @__PURE__ */ s(t, { level: D.level }), A]
|
|
83
|
+
})]
|
|
84
|
+
}) : j;
|
|
85
|
+
});
|
|
86
|
+
u.displayName = "Progress";
|
|
87
|
+
export { u as Progress, l as progressVariants };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { UsageLevel } from '../lib/usage-level.js';
|
|
2
|
+
import { ProgressProps } from './progress.js';
|
|
3
|
+
export declare const usageMeterTrackVariants: (props?: ({
|
|
4
|
+
size?: "sm" | "md" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
export declare const usageMeterLabelVariants: (props?: ({
|
|
7
|
+
size?: "sm" | "md" | null | undefined;
|
|
8
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
|
+
export declare const usageMeterValueVariants: (props?: ({
|
|
10
|
+
level?: "warning" | "default" | "critical" | null | undefined;
|
|
11
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
12
|
+
export interface ProgressLevel {
|
|
13
|
+
level?: UsageLevel;
|
|
14
|
+
/** Bar colour: the level colour of a meter, otherwise `variant`. */
|
|
15
|
+
variant: NonNullable<ProgressProps['variant']>;
|
|
16
|
+
/** Visible value: `formatValue` or the rounded percentage. */
|
|
17
|
+
text: string;
|
|
18
|
+
/** `aria-valuetext`: the value text plus the level word above the warning point. */
|
|
19
|
+
valueText?: string;
|
|
20
|
+
}
|
|
21
|
+
/** Resolves colour, value text and level of a determinate bar. */
|
|
22
|
+
export declare const progressLevel: (value: number, max: number, pct: number, { meter, formatValue, variant }: ProgressProps) => ProgressLevel;
|
|
23
|
+
/** Warning and critical show as a glyph next to the value, not only as colour. */
|
|
24
|
+
export declare const LevelCue: ({ level }: {
|
|
25
|
+
level?: UsageLevel;
|
|
26
|
+
}) => import('react').JSX.Element | null;
|
|
27
|
+
export interface ProgressTopProps {
|
|
28
|
+
labelId: string;
|
|
29
|
+
label?: string;
|
|
30
|
+
size: 'sm' | 'md';
|
|
31
|
+
showValue: boolean;
|
|
32
|
+
info: ProgressLevel;
|
|
33
|
+
}
|
|
34
|
+
/** The label row over the bar: name on the left, value (with the level cue) on the right. */
|
|
35
|
+
export declare const ProgressTop: ({ labelId, label, size, showValue, info }: ProgressTopProps) => import('react').JSX.Element;
|
|
36
|
+
//# sourceMappingURL=progress.meter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.meter.d.ts","sourceRoot":"","sources":["../../src/components/progress.meter.tsx"],"names":[],"mappings":"AACA,OAAO,EAAoC,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGvF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,eAAO,MAAM,uBAAuB;;8EAKlC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;8EAKlC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;8EASlC,CAAC;AAKH,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,oEAAoE;IACpE,OAAO,EAAE,WAAW,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC,CAAC;IAC/C,8DAA8D;IAC9D,IAAI,EAAE,MAAM,CAAC;IACb,oFAAoF;IACpF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,kEAAkE;AAClE,eAAO,MAAM,aAAa,GACxB,OAAO,MAAM,EACb,KAAK,MAAM,EACX,KAAK,MAAM,EACX,iCAA6C,aAAa,KACzD,aAWF,CAAC;AAEF,kFAAkF;AAClF,eAAO,MAAM,QAAQ,GAAI,WAAW;IAAE,KAAK,CAAC,EAAE,UAAU,CAAA;CAAE,uCAQhD,CAAC;AAEX,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,aAAa,CAAC;CACrB;AAED,6FAA6F;AAC7F,eAAO,MAAM,WAAW,GAAI,2CAA2C,gBAAgB,gCAgBtF,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { resolveUsageLevel as e, usageFraction as t } from "../lib/usage-level.js";
|
|
2
|
+
import { cn as n } from "../lib/utils.js";
|
|
3
|
+
import { StatusGlyph as r } from "./status-glyph.js";
|
|
4
|
+
import { cva as i } from "class-variance-authority";
|
|
5
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
|
+
// src/components/progress.meter.tsx
|
|
7
|
+
var s = i("w-full overflow-hidden rounded-full bg-muted", {
|
|
8
|
+
variants: { size: {
|
|
9
|
+
sm: "h-1.5",
|
|
10
|
+
md: "h-2"
|
|
11
|
+
} },
|
|
12
|
+
defaultVariants: { size: "md" }
|
|
13
|
+
}), c = i("flex items-baseline justify-between gap-3", {
|
|
14
|
+
variants: { size: {
|
|
15
|
+
sm: "text-xs",
|
|
16
|
+
md: "text-ui"
|
|
17
|
+
} },
|
|
18
|
+
defaultVariants: { size: "md" }
|
|
19
|
+
}), l = i("tabular-nums", {
|
|
20
|
+
variants: { level: {
|
|
21
|
+
default: "text-muted-foreground",
|
|
22
|
+
warning: "text-warning",
|
|
23
|
+
critical: "text-destructive"
|
|
24
|
+
} },
|
|
25
|
+
defaultVariants: { level: "default" }
|
|
26
|
+
}), u = {
|
|
27
|
+
default: void 0,
|
|
28
|
+
warning: "warning",
|
|
29
|
+
critical: "destructive"
|
|
30
|
+
}, d = {
|
|
31
|
+
default: "",
|
|
32
|
+
warning: "warning",
|
|
33
|
+
critical: "critical"
|
|
34
|
+
}, f = (n, r, i, { meter: a, formatValue: o, variant: s = "default" }) => {
|
|
35
|
+
let c = a ? e(t(n, r)) : void 0, l = o ? o(n, r) : `${String(i)}%`, f = c ? d[c] : "", p = f ? `${l}, ${f}` : l;
|
|
36
|
+
return {
|
|
37
|
+
level: c,
|
|
38
|
+
variant: (c && u[c]) ?? s,
|
|
39
|
+
text: l,
|
|
40
|
+
valueText: o || f ? p : void 0
|
|
41
|
+
};
|
|
42
|
+
}, p = ({ level: e }) => e && e !== "default" ? /* @__PURE__ */ a(r, {
|
|
43
|
+
shape: "alert",
|
|
44
|
+
tone: e === "critical" ? "destructive" : "warning",
|
|
45
|
+
className: "mr-1 inline-block align-[-2px]",
|
|
46
|
+
"data-slot": "progress-level-cue"
|
|
47
|
+
}) : null, m = ({ labelId: e, label: t, size: r, showValue: i, info: s }) => /* @__PURE__ */ o("div", {
|
|
48
|
+
className: c({ size: r }),
|
|
49
|
+
"data-slot": "progress-label-row",
|
|
50
|
+
children: [
|
|
51
|
+
/* @__PURE__ */ a("span", {
|
|
52
|
+
id: e,
|
|
53
|
+
className: "font-medium text-foreground",
|
|
54
|
+
children: t
|
|
55
|
+
}),
|
|
56
|
+
i && /* @__PURE__ */ o("span", {
|
|
57
|
+
className: n(l({ level: s.level ?? "default" })),
|
|
58
|
+
"data-slot": "progress-value-text",
|
|
59
|
+
children: [/* @__PURE__ */ a(p, { level: s.level }), s.text]
|
|
60
|
+
}),
|
|
61
|
+
!i && /* @__PURE__ */ a(p, { level: s.level })
|
|
62
|
+
]
|
|
63
|
+
});
|
|
64
|
+
export { p as LevelCue, m as ProgressTop, f as progressLevel, c as usageMeterLabelVariants, s as usageMeterTrackVariants, l as usageMeterValueVariants };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type ProgressSegmentTone = 'muted' | 'subtle' | 'primary' | 'success' | 'destructive' | 'warning' | 'info';
|
|
3
|
+
export interface ProgressSegment {
|
|
4
|
+
key: string;
|
|
5
|
+
label: string;
|
|
6
|
+
count: number;
|
|
7
|
+
/** Semantic colour; `color` (any CSS colour) wins when given. */
|
|
8
|
+
tone?: ProgressSegmentTone;
|
|
9
|
+
color?: string;
|
|
10
|
+
/** Legend glyph, for example a StatusGlyph; a colour dot by default. */
|
|
11
|
+
glyph?: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export declare const segmentVariants: (props?: ({
|
|
14
|
+
tone?: "muted" | "primary" | "success" | "warning" | "destructive" | "info" | "subtle" | null | undefined;
|
|
15
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
16
|
+
export interface ProgressSegmentsProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
17
|
+
segments: ProgressSegment[];
|
|
18
|
+
/** Legend row under the bar: glyph, name and count per segment. */
|
|
19
|
+
legend?: boolean;
|
|
20
|
+
/** Accessible summary; "Backlog 1, Todo 2, ..." by default. */
|
|
21
|
+
label?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Part-of-whole bar: 8 px high, 2 px gaps, segment widths proportional to their counts and
|
|
25
|
+
* animated when counts change. Zero segments keep their node at zero width.
|
|
26
|
+
*/
|
|
27
|
+
export declare const ProgressSegments: React.ForwardRefExoticComponent<ProgressSegmentsProps & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
//# sourceMappingURL=progress.segments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.segments.d.ts","sourceRoot":"","sources":["../../src/components/progress.segments.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,MAAM,mBAAmB,GAC7B,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,aAAa,GAAG,SAAS,GAAG,MAAM,CAAC;AAElF,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,iEAAiE;IACjE,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wEAAwE;IACxE,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACzB;AAED,eAAO,MAAM,eAAe;;8EAa1B,CAAC;AAEH,MAAM,WAAW,qBAAsB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACjF,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,mEAAmE;IACnE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,+DAA+D;IAC/D,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,8FAoD5B,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { cn as e } from "../lib/utils.js";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { cva as n } from "class-variance-authority";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
// src/components/progress.segments.tsx
|
|
6
|
+
var a = n("", {
|
|
7
|
+
variants: { tone: {
|
|
8
|
+
muted: "bg-muted-foreground/55",
|
|
9
|
+
subtle: "bg-muted-foreground",
|
|
10
|
+
primary: "bg-primary",
|
|
11
|
+
success: "bg-success",
|
|
12
|
+
destructive: "bg-destructive",
|
|
13
|
+
warning: "bg-warning",
|
|
14
|
+
info: "bg-info"
|
|
15
|
+
} },
|
|
16
|
+
defaultVariants: { tone: "muted" }
|
|
17
|
+
}), o = t.forwardRef(({ segments: t, legend: n = !1, label: o, className: s, ...c }, l) => {
|
|
18
|
+
let u = o ?? t.map((e) => `${e.label} ${String(e.count)}`).join(", "), d = !1;
|
|
19
|
+
return /* @__PURE__ */ i("div", {
|
|
20
|
+
ref: l,
|
|
21
|
+
className: e("flex min-w-0 flex-col gap-2", s),
|
|
22
|
+
"data-slot": "segmented-bar",
|
|
23
|
+
...c,
|
|
24
|
+
children: [/* @__PURE__ */ r("div", {
|
|
25
|
+
role: "img",
|
|
26
|
+
"aria-label": u,
|
|
27
|
+
className: "flex h-2 overflow-hidden rounded-[4px]",
|
|
28
|
+
children: t.map((t) => {
|
|
29
|
+
let n = d && t.count > 0;
|
|
30
|
+
return t.count > 0 && (d = !0), /* @__PURE__ */ r("span", {
|
|
31
|
+
className: e("h-full basis-0 transition-[flex-grow,margin] duration-normal ease-out motion-reduce:transition-none", a({ tone: t.tone })),
|
|
32
|
+
style: {
|
|
33
|
+
flexGrow: t.count,
|
|
34
|
+
marginLeft: n ? 2 : 0,
|
|
35
|
+
backgroundColor: t.color
|
|
36
|
+
},
|
|
37
|
+
"data-key": t.key,
|
|
38
|
+
"data-count": t.count
|
|
39
|
+
}, t.key);
|
|
40
|
+
})
|
|
41
|
+
}), n && /* @__PURE__ */ r("ul", {
|
|
42
|
+
className: "m-0 flex list-none flex-wrap gap-x-3.5 gap-y-1.5 p-0 text-xs text-muted-foreground",
|
|
43
|
+
"aria-hidden": "true",
|
|
44
|
+
children: t.map((t) => /* @__PURE__ */ i("li", {
|
|
45
|
+
className: "flex items-center gap-1.5 [&_svg]:size-3.5",
|
|
46
|
+
children: [t.glyph ?? /* @__PURE__ */ r("span", {
|
|
47
|
+
className: e("size-2 rounded-full", a({ tone: t.tone })),
|
|
48
|
+
style: { backgroundColor: t.color }
|
|
49
|
+
}), /* @__PURE__ */ i("span", { children: [
|
|
50
|
+
t.label,
|
|
51
|
+
" ",
|
|
52
|
+
t.count
|
|
53
|
+
] })]
|
|
54
|
+
}, t.key))
|
|
55
|
+
})]
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
o.displayName = "ProgressSegments";
|
|
59
|
+
export { o as ProgressSegments, a as segmentVariants };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface PropertyDateProps {
|
|
3
|
+
value: Date | null;
|
|
4
|
+
onValueChange: (value: Date | null) => void;
|
|
5
|
+
/** "Today" for presets and the overdue check; the current date by default. */
|
|
6
|
+
today?: Date;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
/** A due date: presets, a date field and No date; overdue values show in the destructive tone. */
|
|
10
|
+
export declare const PropertyDate: React.ForwardRefExoticComponent<PropertyDateProps & React.RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
//# sourceMappingURL=property-date.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"property-date.d.ts","sourceRoot":"","sources":["../../src/components/property-date.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAe/B,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,aAAa,EAAE,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;IAC5C,8EAA8E;IAC9E,KAAK,CAAC,EAAE,IAAI,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA2GD,kGAAkG;AAClG,eAAO,MAAM,YAAY,6FAkExB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"property-date.format.d.ts","sourceRoot":"","sources":["../../src/components/property-date.format.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,eAAO,MAAM,kBAAkB,GAAI,GAAG,IAAI,EAAE,QAAO,IAAiB,KAAG,MAKnE,CAAC"}
|