@verdify/ui 0.1.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 +12 -0
- package/README.md +117 -0
- package/dist/components/accordion/accordion.d.ts +66 -0
- package/dist/components/accordion/accordion.d.ts.map +1 -0
- package/dist/components/accordion/accordion.js +97 -0
- package/dist/components/accordion/accordion.js.map +1 -0
- package/dist/components/accordion/accordion.variants.d.ts +9 -0
- package/dist/components/accordion/accordion.variants.d.ts.map +1 -0
- package/dist/components/accordion/accordion.variants.js +54 -0
- package/dist/components/accordion/accordion.variants.js.map +1 -0
- package/dist/components/accordion/index.d.ts +3 -0
- package/dist/components/accordion/index.d.ts.map +1 -0
- package/dist/components/accordion/index.js +25 -0
- package/dist/components/accordion/index.js.map +1 -0
- package/dist/components/agent-badge/agent-badge.d.ts +56 -0
- package/dist/components/agent-badge/agent-badge.d.ts.map +1 -0
- package/dist/components/agent-badge/agent-badge.js +35 -0
- package/dist/components/agent-badge/agent-badge.js.map +1 -0
- package/dist/components/agent-badge/agent-badge.variants.d.ts +7 -0
- package/dist/components/agent-badge/agent-badge.variants.d.ts.map +1 -0
- package/dist/components/agent-badge/agent-badge.variants.js +35 -0
- package/dist/components/agent-badge/agent-badge.variants.js.map +1 -0
- package/dist/components/agent-badge/index.d.ts +3 -0
- package/dist/components/agent-badge/index.d.ts.map +1 -0
- package/dist/components/agent-badge/index.js +11 -0
- package/dist/components/agent-badge/index.js.map +1 -0
- package/dist/components/alert/alert.d.ts +94 -0
- package/dist/components/alert/alert.d.ts.map +1 -0
- package/dist/components/alert/alert.js +105 -0
- package/dist/components/alert/alert.js.map +1 -0
- package/dist/components/alert/alert.variants.d.ts +15 -0
- package/dist/components/alert/alert.variants.d.ts.map +1 -0
- package/dist/components/alert/alert.variants.js +74 -0
- package/dist/components/alert/alert.variants.js.map +1 -0
- package/dist/components/alert/index.d.ts +3 -0
- package/dist/components/alert/index.d.ts.map +1 -0
- package/dist/components/alert/index.js +37 -0
- package/dist/components/alert/index.js.map +1 -0
- package/dist/components/avatar/avatar.d.ts +56 -0
- package/dist/components/avatar/avatar.d.ts.map +1 -0
- package/dist/components/avatar/avatar.js +107 -0
- package/dist/components/avatar/avatar.js.map +1 -0
- package/dist/components/avatar/avatar.variants.d.ts +11 -0
- package/dist/components/avatar/avatar.variants.d.ts.map +1 -0
- package/dist/components/avatar/avatar.variants.js +48 -0
- package/dist/components/avatar/avatar.variants.js.map +1 -0
- package/dist/components/avatar/index.d.ts +3 -0
- package/dist/components/avatar/index.d.ts.map +1 -0
- package/dist/components/avatar/index.js +15 -0
- package/dist/components/avatar/index.js.map +1 -0
- package/dist/components/badge/badge.d.ts +30 -0
- package/dist/components/badge/badge.d.ts.map +1 -0
- package/dist/components/badge/badge.js +33 -0
- package/dist/components/badge/badge.js.map +1 -0
- package/dist/components/badge/badge.variants.d.ts +7 -0
- package/dist/components/badge/badge.variants.d.ts.map +1 -0
- package/dist/components/badge/badge.variants.js +33 -0
- package/dist/components/badge/badge.variants.js.map +1 -0
- package/dist/components/badge/index.d.ts +3 -0
- package/dist/components/badge/index.d.ts.map +1 -0
- package/dist/components/badge/index.js +8 -0
- package/dist/components/badge/index.js.map +1 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +90 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts.map +1 -0
- package/dist/components/breadcrumb/breadcrumb.js +143 -0
- package/dist/components/breadcrumb/breadcrumb.js.map +1 -0
- package/dist/components/breadcrumb/breadcrumb.variants.d.ts +10 -0
- package/dist/components/breadcrumb/breadcrumb.variants.d.ts.map +1 -0
- package/dist/components/breadcrumb/breadcrumb.variants.js +41 -0
- package/dist/components/breadcrumb/breadcrumb.variants.js.map +1 -0
- package/dist/components/breadcrumb/index.d.ts +3 -0
- package/dist/components/breadcrumb/index.d.ts.map +1 -0
- package/dist/components/breadcrumb/index.js +35 -0
- package/dist/components/breadcrumb/index.js.map +1 -0
- package/dist/components/button/button.d.ts +10 -0
- package/dist/components/button/button.d.ts.map +1 -0
- package/dist/components/button/button.js +42 -0
- package/dist/components/button/button.js.map +1 -0
- package/dist/components/button/button.variants.d.ts +6 -0
- package/dist/components/button/button.variants.d.ts.map +1 -0
- package/dist/components/button/button.variants.js +45 -0
- package/dist/components/button/button.variants.js.map +1 -0
- package/dist/components/button/index.d.ts +3 -0
- package/dist/components/button/index.d.ts.map +1 -0
- package/dist/components/button/index.js +7 -0
- package/dist/components/button/index.js.map +1 -0
- package/dist/components/card/card.d.ts +59 -0
- package/dist/components/card/card.d.ts.map +1 -0
- package/dist/components/card/card.js +101 -0
- package/dist/components/card/card.js.map +1 -0
- package/dist/components/card/card.variants.d.ts +13 -0
- package/dist/components/card/card.variants.d.ts.map +1 -0
- package/dist/components/card/card.variants.js +64 -0
- package/dist/components/card/card.variants.js.map +1 -0
- package/dist/components/card/index.d.ts +3 -0
- package/dist/components/card/index.d.ts.map +1 -0
- package/dist/components/card/index.js +35 -0
- package/dist/components/card/index.js.map +1 -0
- package/dist/components/checkbox/checkbox.d.ts +20 -0
- package/dist/components/checkbox/checkbox.d.ts.map +1 -0
- package/dist/components/checkbox/checkbox.js +102 -0
- package/dist/components/checkbox/checkbox.js.map +1 -0
- package/dist/components/checkbox/checkbox.variants.d.ts +15 -0
- package/dist/components/checkbox/checkbox.variants.d.ts.map +1 -0
- package/dist/components/checkbox/checkbox.variants.js +70 -0
- package/dist/components/checkbox/checkbox.variants.js.map +1 -0
- package/dist/components/checkbox/index.d.ts +3 -0
- package/dist/components/checkbox/index.d.ts.map +1 -0
- package/dist/components/checkbox/index.js +11 -0
- package/dist/components/checkbox/index.js.map +1 -0
- package/dist/components/command-palette/command-palette.d.ts +76 -0
- package/dist/components/command-palette/command-palette.d.ts.map +1 -0
- package/dist/components/command-palette/command-palette.js +271 -0
- package/dist/components/command-palette/command-palette.js.map +1 -0
- package/dist/components/command-palette/command-palette.variants.d.ts +18 -0
- package/dist/components/command-palette/command-palette.variants.d.ts.map +1 -0
- package/dist/components/command-palette/command-palette.variants.js +62 -0
- package/dist/components/command-palette/command-palette.variants.js.map +1 -0
- package/dist/components/command-palette/index.d.ts +3 -0
- package/dist/components/command-palette/index.d.ts.map +1 -0
- package/dist/components/command-palette/index.js +35 -0
- package/dist/components/command-palette/index.js.map +1 -0
- package/dist/components/consent-toggle/consent-toggle.d.ts +107 -0
- package/dist/components/consent-toggle/consent-toggle.d.ts.map +1 -0
- package/dist/components/consent-toggle/consent-toggle.js +68 -0
- package/dist/components/consent-toggle/consent-toggle.js.map +1 -0
- package/dist/components/consent-toggle/consent-toggle.variants.d.ts +10 -0
- package/dist/components/consent-toggle/consent-toggle.variants.d.ts.map +1 -0
- package/dist/components/consent-toggle/consent-toggle.variants.js +29 -0
- package/dist/components/consent-toggle/consent-toggle.variants.js.map +1 -0
- package/dist/components/consent-toggle/index.d.ts +3 -0
- package/dist/components/consent-toggle/index.d.ts.map +1 -0
- package/dist/components/consent-toggle/index.js +19 -0
- package/dist/components/consent-toggle/index.js.map +1 -0
- package/dist/components/credential-card/credential-card.d.ts +144 -0
- package/dist/components/credential-card/credential-card.d.ts.map +1 -0
- package/dist/components/credential-card/credential-card.js +117 -0
- package/dist/components/credential-card/credential-card.js.map +1 -0
- package/dist/components/credential-card/credential-card.variants.d.ts +15 -0
- package/dist/components/credential-card/credential-card.variants.d.ts.map +1 -0
- package/dist/components/credential-card/credential-card.variants.js +48 -0
- package/dist/components/credential-card/credential-card.variants.js.map +1 -0
- package/dist/components/credential-card/index.d.ts +3 -0
- package/dist/components/credential-card/index.d.ts.map +1 -0
- package/dist/components/credential-card/index.js +29 -0
- package/dist/components/credential-card/index.js.map +1 -0
- package/dist/components/data-grid/data-grid.d.ts +247 -0
- package/dist/components/data-grid/data-grid.d.ts.map +1 -0
- package/dist/components/data-grid/data-grid.js +529 -0
- package/dist/components/data-grid/data-grid.js.map +1 -0
- package/dist/components/data-grid/data-grid.variants.d.ts +29 -0
- package/dist/components/data-grid/data-grid.variants.d.ts.map +1 -0
- package/dist/components/data-grid/data-grid.variants.js +110 -0
- package/dist/components/data-grid/data-grid.variants.js.map +1 -0
- package/dist/components/data-grid/index.d.ts +3 -0
- package/dist/components/data-grid/index.d.ts.map +1 -0
- package/dist/components/data-grid/index.js +59 -0
- package/dist/components/data-grid/index.js.map +1 -0
- package/dist/components/dialog/dialog.d.ts +98 -0
- package/dist/components/dialog/dialog.d.ts.map +1 -0
- package/dist/components/dialog/dialog.js +121 -0
- package/dist/components/dialog/dialog.js.map +1 -0
- package/dist/components/dialog/dialog.variants.d.ts +14 -0
- package/dist/components/dialog/dialog.variants.d.ts.map +1 -0
- package/dist/components/dialog/dialog.variants.js +71 -0
- package/dist/components/dialog/dialog.variants.js.map +1 -0
- package/dist/components/dialog/index.d.ts +3 -0
- package/dist/components/dialog/index.d.ts.map +1 -0
- package/dist/components/dialog/index.js +31 -0
- package/dist/components/dialog/index.js.map +1 -0
- package/dist/components/identity-chip/identity-chip.d.ts +121 -0
- package/dist/components/identity-chip/identity-chip.d.ts.map +1 -0
- package/dist/components/identity-chip/identity-chip.js +203 -0
- package/dist/components/identity-chip/identity-chip.js.map +1 -0
- package/dist/components/identity-chip/identity-chip.variants.d.ts +11 -0
- package/dist/components/identity-chip/identity-chip.variants.d.ts.map +1 -0
- package/dist/components/identity-chip/identity-chip.variants.js +61 -0
- package/dist/components/identity-chip/identity-chip.variants.js.map +1 -0
- package/dist/components/identity-chip/index.d.ts +3 -0
- package/dist/components/identity-chip/index.d.ts.map +1 -0
- package/dist/components/identity-chip/index.js +21 -0
- package/dist/components/identity-chip/index.js.map +1 -0
- package/dist/components/input/index.d.ts +3 -0
- package/dist/components/input/index.d.ts.map +1 -0
- package/dist/components/input/index.js +11 -0
- package/dist/components/input/index.js.map +1 -0
- package/dist/components/input/input.d.ts +17 -0
- package/dist/components/input/input.d.ts.map +1 -0
- package/dist/components/input/input.js +71 -0
- package/dist/components/input/input.js.map +1 -0
- package/dist/components/input/input.variants.d.ts +11 -0
- package/dist/components/input/input.variants.d.ts.map +1 -0
- package/dist/components/input/input.variants.js +64 -0
- package/dist/components/input/input.variants.js.map +1 -0
- package/dist/components/label/index.d.ts +3 -0
- package/dist/components/label/index.d.ts.map +1 -0
- package/dist/components/label/index.js +13 -0
- package/dist/components/label/index.js.map +1 -0
- package/dist/components/label/label.d.ts +16 -0
- package/dist/components/label/label.d.ts.map +1 -0
- package/dist/components/label/label.js +27 -0
- package/dist/components/label/label.js.map +1 -0
- package/dist/components/label/label.variants.d.ts +8 -0
- package/dist/components/label/label.variants.d.ts.map +1 -0
- package/dist/components/label/label.variants.js +27 -0
- package/dist/components/label/label.variants.js.map +1 -0
- package/dist/components/menu/index.d.ts +3 -0
- package/dist/components/menu/index.d.ts.map +1 -0
- package/dist/components/menu/index.js +43 -0
- package/dist/components/menu/index.js.map +1 -0
- package/dist/components/menu/menu.d.ts +115 -0
- package/dist/components/menu/menu.d.ts.map +1 -0
- package/dist/components/menu/menu.js +130 -0
- package/dist/components/menu/menu.js.map +1 -0
- package/dist/components/menu/menu.variants.d.ts +13 -0
- package/dist/components/menu/menu.variants.d.ts.map +1 -0
- package/dist/components/menu/menu.variants.js +56 -0
- package/dist/components/menu/menu.variants.js.map +1 -0
- package/dist/components/pagination/index.d.ts +3 -0
- package/dist/components/pagination/index.d.ts.map +1 -0
- package/dist/components/pagination/index.js +37 -0
- package/dist/components/pagination/index.js.map +1 -0
- package/dist/components/pagination/pagination.d.ts +118 -0
- package/dist/components/pagination/pagination.d.ts.map +1 -0
- package/dist/components/pagination/pagination.js +204 -0
- package/dist/components/pagination/pagination.js.map +1 -0
- package/dist/components/pagination/pagination.variants.d.ts +13 -0
- package/dist/components/pagination/pagination.variants.d.ts.map +1 -0
- package/dist/components/pagination/pagination.variants.js +63 -0
- package/dist/components/pagination/pagination.variants.js.map +1 -0
- package/dist/components/popover/index.d.ts +3 -0
- package/dist/components/popover/index.d.ts.map +1 -0
- package/dist/components/popover/index.js +39 -0
- package/dist/components/popover/index.js.map +1 -0
- package/dist/components/popover/popover.d.ts +92 -0
- package/dist/components/popover/popover.d.ts.map +1 -0
- package/dist/components/popover/popover.js +135 -0
- package/dist/components/popover/popover.js.map +1 -0
- package/dist/components/popover/popover.variants.d.ts +9 -0
- package/dist/components/popover/popover.variants.d.ts.map +1 -0
- package/dist/components/popover/popover.variants.js +19 -0
- package/dist/components/popover/popover.variants.js.map +1 -0
- package/dist/components/progress/index.d.ts +3 -0
- package/dist/components/progress/index.d.ts.map +1 -0
- package/dist/components/progress/index.js +23 -0
- package/dist/components/progress/index.js.map +1 -0
- package/dist/components/progress/progress.d.ts +71 -0
- package/dist/components/progress/progress.d.ts.map +1 -0
- package/dist/components/progress/progress.js +91 -0
- package/dist/components/progress/progress.js.map +1 -0
- package/dist/components/progress/progress.variants.d.ts +14 -0
- package/dist/components/progress/progress.variants.d.ts.map +1 -0
- package/dist/components/progress/progress.variants.js +37 -0
- package/dist/components/progress/progress.variants.js.map +1 -0
- package/dist/components/radio/index.d.ts +3 -0
- package/dist/components/radio/index.d.ts.map +1 -0
- package/dist/components/radio/index.js +22 -0
- package/dist/components/radio/index.js.map +1 -0
- package/dist/components/radio/radio.d.ts +23 -0
- package/dist/components/radio/radio.d.ts.map +1 -0
- package/dist/components/radio/radio.js +183 -0
- package/dist/components/radio/radio.js.map +1 -0
- package/dist/components/radio/radio.variants.d.ts +17 -0
- package/dist/components/radio/radio.variants.d.ts.map +1 -0
- package/dist/components/radio/radio.variants.js +60 -0
- package/dist/components/radio/radio.variants.js.map +1 -0
- package/dist/components/select/index.d.ts +3 -0
- package/dist/components/select/index.d.ts.map +1 -0
- package/dist/components/select/index.js +9 -0
- package/dist/components/select/index.js.map +1 -0
- package/dist/components/select/select.d.ts +27 -0
- package/dist/components/select/select.d.ts.map +1 -0
- package/dist/components/select/select.js +145 -0
- package/dist/components/select/select.js.map +1 -0
- package/dist/components/select/select.variants.d.ts +18 -0
- package/dist/components/select/select.variants.d.ts.map +1 -0
- package/dist/components/select/select.variants.js +102 -0
- package/dist/components/select/select.variants.js.map +1 -0
- package/dist/components/separator/index.d.ts +3 -0
- package/dist/components/separator/index.d.ts.map +1 -0
- package/dist/components/separator/index.js +15 -0
- package/dist/components/separator/index.js.map +1 -0
- package/dist/components/separator/separator.d.ts +23 -0
- package/dist/components/separator/separator.d.ts.map +1 -0
- package/dist/components/separator/separator.js +61 -0
- package/dist/components/separator/separator.js.map +1 -0
- package/dist/components/separator/separator.variants.d.ts +13 -0
- package/dist/components/separator/separator.variants.d.ts.map +1 -0
- package/dist/components/separator/separator.variants.js +46 -0
- package/dist/components/separator/separator.variants.js.map +1 -0
- package/dist/components/sheet/index.d.ts +3 -0
- package/dist/components/sheet/index.d.ts.map +1 -0
- package/dist/components/sheet/index.js +31 -0
- package/dist/components/sheet/index.js.map +1 -0
- package/dist/components/sheet/sheet.d.ts +102 -0
- package/dist/components/sheet/sheet.d.ts.map +1 -0
- package/dist/components/sheet/sheet.js +120 -0
- package/dist/components/sheet/sheet.js.map +1 -0
- package/dist/components/sheet/sheet.variants.d.ts +15 -0
- package/dist/components/sheet/sheet.variants.d.ts.map +1 -0
- package/dist/components/sheet/sheet.variants.js +97 -0
- package/dist/components/sheet/sheet.variants.js.map +1 -0
- package/dist/components/sidebar/index.d.ts +3 -0
- package/dist/components/sidebar/index.d.ts.map +1 -0
- package/dist/components/sidebar/index.js +43 -0
- package/dist/components/sidebar/index.js.map +1 -0
- package/dist/components/sidebar/sidebar.d.ts +114 -0
- package/dist/components/sidebar/sidebar.d.ts.map +1 -0
- package/dist/components/sidebar/sidebar.js +202 -0
- package/dist/components/sidebar/sidebar.js.map +1 -0
- package/dist/components/sidebar/sidebar.variants.d.ts +19 -0
- package/dist/components/sidebar/sidebar.variants.d.ts.map +1 -0
- package/dist/components/sidebar/sidebar.variants.js +93 -0
- package/dist/components/sidebar/sidebar.variants.js.map +1 -0
- package/dist/components/skeleton/index.d.ts +3 -0
- package/dist/components/skeleton/index.d.ts.map +1 -0
- package/dist/components/skeleton/index.js +15 -0
- package/dist/components/skeleton/index.js.map +1 -0
- package/dist/components/skeleton/skeleton.d.ts +42 -0
- package/dist/components/skeleton/skeleton.d.ts.map +1 -0
- package/dist/components/skeleton/skeleton.js +54 -0
- package/dist/components/skeleton/skeleton.js.map +1 -0
- package/dist/components/skeleton/skeleton.variants.d.ts +9 -0
- package/dist/components/skeleton/skeleton.variants.d.ts.map +1 -0
- package/dist/components/skeleton/skeleton.variants.js +31 -0
- package/dist/components/skeleton/skeleton.variants.js.map +1 -0
- package/dist/components/spinner/index.d.ts +3 -0
- package/dist/components/spinner/index.d.ts.map +1 -0
- package/dist/components/spinner/index.js +13 -0
- package/dist/components/spinner/index.js.map +1 -0
- package/dist/components/spinner/spinner.d.ts +41 -0
- package/dist/components/spinner/spinner.d.ts.map +1 -0
- package/dist/components/spinner/spinner.js +48 -0
- package/dist/components/spinner/spinner.js.map +1 -0
- package/dist/components/spinner/spinner.variants.d.ts +8 -0
- package/dist/components/spinner/spinner.variants.d.ts.map +1 -0
- package/dist/components/spinner/spinner.variants.js +32 -0
- package/dist/components/spinner/spinner.variants.js.map +1 -0
- package/dist/components/switch/index.d.ts +3 -0
- package/dist/components/switch/index.d.ts.map +1 -0
- package/dist/components/switch/index.js +15 -0
- package/dist/components/switch/index.js.map +1 -0
- package/dist/components/switch/switch.d.ts +20 -0
- package/dist/components/switch/switch.d.ts.map +1 -0
- package/dist/components/switch/switch.js +107 -0
- package/dist/components/switch/switch.js.map +1 -0
- package/dist/components/switch/switch.variants.d.ts +14 -0
- package/dist/components/switch/switch.variants.d.ts.map +1 -0
- package/dist/components/switch/switch.variants.js +69 -0
- package/dist/components/switch/switch.variants.js.map +1 -0
- package/dist/components/table/index.d.ts +3 -0
- package/dist/components/table/index.d.ts.map +1 -0
- package/dist/components/table/index.js +51 -0
- package/dist/components/table/index.js.map +1 -0
- package/dist/components/table/table.d.ts +173 -0
- package/dist/components/table/table.d.ts.map +1 -0
- package/dist/components/table/table.js +172 -0
- package/dist/components/table/table.js.map +1 -0
- package/dist/components/table/table.variants.d.ts +39 -0
- package/dist/components/table/table.variants.d.ts.map +1 -0
- package/dist/components/table/table.variants.js +124 -0
- package/dist/components/table/table.variants.js.map +1 -0
- package/dist/components/tabs/index.d.ts +3 -0
- package/dist/components/tabs/index.d.ts.map +1 -0
- package/dist/components/tabs/index.js +21 -0
- package/dist/components/tabs/index.js.map +1 -0
- package/dist/components/tabs/tabs.d.ts +66 -0
- package/dist/components/tabs/tabs.d.ts.map +1 -0
- package/dist/components/tabs/tabs.js +81 -0
- package/dist/components/tabs/tabs.js.map +1 -0
- package/dist/components/tabs/tabs.variants.d.ts +15 -0
- package/dist/components/tabs/tabs.variants.d.ts.map +1 -0
- package/dist/components/tabs/tabs.variants.js +98 -0
- package/dist/components/tabs/tabs.variants.js.map +1 -0
- package/dist/components/textarea/index.d.ts +3 -0
- package/dist/components/textarea/index.d.ts.map +1 -0
- package/dist/components/textarea/index.js +7 -0
- package/dist/components/textarea/index.js.map +1 -0
- package/dist/components/textarea/textarea.d.ts +18 -0
- package/dist/components/textarea/textarea.d.ts.map +1 -0
- package/dist/components/textarea/textarea.js +136 -0
- package/dist/components/textarea/textarea.js.map +1 -0
- package/dist/components/textarea/textarea.variants.d.ts +6 -0
- package/dist/components/textarea/textarea.variants.d.ts.map +1 -0
- package/dist/components/textarea/textarea.variants.js +53 -0
- package/dist/components/textarea/textarea.variants.js.map +1 -0
- package/dist/components/toast/index.d.ts +3 -0
- package/dist/components/toast/index.d.ts.map +1 -0
- package/dist/components/toast/index.js +43 -0
- package/dist/components/toast/index.js.map +1 -0
- package/dist/components/toast/toast.d.ts +140 -0
- package/dist/components/toast/toast.d.ts.map +1 -0
- package/dist/components/toast/toast.js +123 -0
- package/dist/components/toast/toast.js.map +1 -0
- package/dist/components/toast/toast.variants.d.ts +16 -0
- package/dist/components/toast/toast.variants.d.ts.map +1 -0
- package/dist/components/toast/toast.variants.js +77 -0
- package/dist/components/toast/toast.variants.js.map +1 -0
- package/dist/components/tooltip/index.d.ts +3 -0
- package/dist/components/tooltip/index.d.ts.map +1 -0
- package/dist/components/tooltip/index.js +16 -0
- package/dist/components/tooltip/index.js.map +1 -0
- package/dist/components/tooltip/tooltip.d.ts +81 -0
- package/dist/components/tooltip/tooltip.d.ts.map +1 -0
- package/dist/components/tooltip/tooltip.js +44 -0
- package/dist/components/tooltip/tooltip.js.map +1 -0
- package/dist/components/tooltip/tooltip.variants.d.ts +3 -0
- package/dist/components/tooltip/tooltip.variants.d.ts.map +1 -0
- package/dist/components/tooltip/tooltip.variants.js +7 -0
- package/dist/components/tooltip/tooltip.variants.js.map +1 -0
- package/dist/components/trust-score/index.d.ts +3 -0
- package/dist/components/trust-score/index.d.ts.map +1 -0
- package/dist/components/trust-score/index.js +11 -0
- package/dist/components/trust-score/index.js.map +1 -0
- package/dist/components/trust-score/trust-score.d.ts +100 -0
- package/dist/components/trust-score/trust-score.d.ts.map +1 -0
- package/dist/components/trust-score/trust-score.js +146 -0
- package/dist/components/trust-score/trust-score.js.map +1 -0
- package/dist/components/trust-score/trust-score.variants.d.ts +16 -0
- package/dist/components/trust-score/trust-score.variants.d.ts.map +1 -0
- package/dist/components/trust-score/trust-score.variants.js +50 -0
- package/dist/components/trust-score/trust-score.variants.js.map +1 -0
- package/dist/components/verified-badge/index.d.ts +3 -0
- package/dist/components/verified-badge/index.d.ts.map +1 -0
- package/dist/components/verified-badge/index.js +15 -0
- package/dist/components/verified-badge/index.js.map +1 -0
- package/dist/components/verified-badge/verified-badge.d.ts +55 -0
- package/dist/components/verified-badge/verified-badge.d.ts.map +1 -0
- package/dist/components/verified-badge/verified-badge.js +67 -0
- package/dist/components/verified-badge/verified-badge.js.map +1 -0
- package/dist/components/verified-badge/verified-badge.variants.d.ts +11 -0
- package/dist/components/verified-badge/verified-badge.variants.d.ts.map +1 -0
- package/dist/components/verified-badge/verified-badge.variants.js +45 -0
- package/dist/components/verified-badge/verified-badge.variants.js.map +1 -0
- package/dist/index.d.ts +39 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +322 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/cn.d.ts +3 -0
- package/dist/lib/cn.d.ts.map +1 -0
- package/dist/lib/cn.js +24 -0
- package/dist/lib/cn.js.map +1 -0
- package/package.json +74 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { cn } from "../../lib/cn";
|
|
4
|
+
import {
|
|
5
|
+
verifiedBadgeVariants,
|
|
6
|
+
verifiedBadgeCheckVariants,
|
|
7
|
+
verifiedBadgeCheckStrokeClass,
|
|
8
|
+
VERIFIED_BADGE_REVEAL_KEYFRAME
|
|
9
|
+
} from "./verified-badge.variants";
|
|
10
|
+
const VERIFIED_BADGE_REVEAL_CSS = `@keyframes ${VERIFIED_BADGE_REVEAL_KEYFRAME}{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}`;
|
|
11
|
+
const VerifiedBadge = React.forwardRef(
|
|
12
|
+
function VerifiedBadge2({ className, size, label, labelHidden, "aria-label": ariaLabel, ...props }, ref) {
|
|
13
|
+
const showLabel = !labelHidden && label != null;
|
|
14
|
+
const checkOnly = !showLabel;
|
|
15
|
+
if (process.env.NODE_ENV !== "production" && checkOnly && ariaLabel == null) {
|
|
16
|
+
console.warn(
|
|
17
|
+
'VerifiedBadge: a hidden label needs an `aria-label` stating what was verified (e.g. "ID verified.") \u2014 the verified check alone is not an accessible name.'
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
return (
|
|
21
|
+
// native <span>: inline content in a styled container. No tabIndex, no focus ring — a
|
|
22
|
+
// VerifiedBadge is a result, not a control (spec §6/§7). role="img" only on the check-only
|
|
23
|
+
// marker, so the aria-label naming the claim is valid and announced.
|
|
24
|
+
/* @__PURE__ */ jsxs(
|
|
25
|
+
"span",
|
|
26
|
+
{
|
|
27
|
+
ref,
|
|
28
|
+
className: cn(verifiedBadgeVariants({ size }), className),
|
|
29
|
+
role: checkOnly ? "img" : void 0,
|
|
30
|
+
"aria-label": checkOnly ? ariaLabel : void 0,
|
|
31
|
+
...props,
|
|
32
|
+
children: [
|
|
33
|
+
/* @__PURE__ */ jsxs(
|
|
34
|
+
"span",
|
|
35
|
+
{
|
|
36
|
+
"data-testid": "verified-badge-check",
|
|
37
|
+
className: verifiedBadgeCheckVariants({ size }),
|
|
38
|
+
"aria-hidden": "true",
|
|
39
|
+
children: [
|
|
40
|
+
/* @__PURE__ */ jsx("style", { children: VERIFIED_BADGE_REVEAL_CSS }),
|
|
41
|
+
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", width: "100%", height: "100%", children: /* @__PURE__ */ jsx(
|
|
42
|
+
"path",
|
|
43
|
+
{
|
|
44
|
+
"data-testid": "verified-badge-check-stroke",
|
|
45
|
+
className: verifiedBadgeCheckStrokeClass,
|
|
46
|
+
d: "M3.5 8.5l3 3 6-6.5",
|
|
47
|
+
strokeWidth: 2,
|
|
48
|
+
strokeLinecap: "round",
|
|
49
|
+
strokeLinejoin: "round",
|
|
50
|
+
pathLength: 1,
|
|
51
|
+
style: { strokeDasharray: 1, strokeDashoffset: 0 }
|
|
52
|
+
}
|
|
53
|
+
) })
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
),
|
|
57
|
+
showLabel ? label : null
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
)
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
export {
|
|
65
|
+
VerifiedBadge
|
|
66
|
+
};
|
|
67
|
+
//# sourceMappingURL=verified-badge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/verified-badge/verified-badge.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { cn } from \"../../lib/cn\";\nimport {\n verifiedBadgeVariants,\n verifiedBadgeCheckVariants,\n verifiedBadgeCheckStrokeClass,\n VERIFIED_BADGE_REVEAL_KEYFRAME,\n type VerifiedBadgeVariantProps,\n} from \"./verified-badge.variants\";\n\n// The verified check's one-time DRAW keyframe (spec §4 Reveal). It sweeps the SVG stroke on\n// across the deliberate duration: the path is normalized to pathLength=1 so its whole length\n// is 1 unit, the dash array is 1, and the offset animates from 1 (nothing drawn) to 0 (fully\n// drawn). This is PURE GEOMETRY on the SVG stroke — it binds NO design token (the deliberate\n// duration + verdify easing are bound on the stroke className, the §5 binding site), so it\n// lives here as a component-scoped <style> rather than in the auto-generated tokens preset or\n// the .variants.ts binding file (the Progress travel-keyframe precedent). It plays ONCE: a\n// single iteration that holds its drawn end state, never a loop.\nconst VERIFIED_BADGE_REVEAL_CSS = `@keyframes ${VERIFIED_BADGE_REVEAL_KEYFRAME}{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}`;\n\nexport interface VerifiedBadgeProps\n extends Omit<React.HTMLAttributes<HTMLSpanElement>, \"aria-label\">,\n VerifiedBadgeVariantProps {\n /**\n * Short text naming what was verified (spec §2), a plain statement in sentence case\n * (\"ID verified.\", \"Email verified.\") — no all-caps, no exclamation mark. When present it\n * is the visible name AND the accessible name. Omit it together with {@link labelHidden}\n * for the check-only marker, in which case an {@link \"aria-label\"} carries the full\n * statement (the badge is never nameless to assistive technology).\n */\n label?: React.ReactNode;\n /**\n * Hide the visible label, leaving the check standing alone (spec §3 `label-hidden`): a\n * tight row or a repeated column. The accessible name is STILL required and still states\n * what was verified, so the meaning never rests on the green check alone — supply it via\n * {@link \"aria-label\"}. The check is decorative either way.\n */\n labelHidden?: boolean;\n /**\n * The accessible name when the label is hidden (spec §7). State what was verified\n * (\"ID verified.\"). Required whenever {@link labelHidden} is set — the green check alone is\n * not an accessible name (1.4.1 / 1.3.1). Ignored when a visible {@link label} is present,\n * because the visible text is already the name (never both).\n */\n \"aria-label\"?: string;\n}\n\n/**\n * A VerifiedBadge shows the in-product VERIFIED state of one specific claim — that a proof\n * checked out (spec §1). It reports a RESULT, not an action: it states that something was\n * verified and names what, and it owns the verified-status treatment end to end, so a verified\n * result looks the same everywhere and no screen hand-colors its own.\n *\n * It encodes \"proofs, not documents\": it asserts that a proof passed, never that a document is\n * on file, so its label and its accessible name speak to the claim that was proven (spec §1).\n * It keeps brand and status apart — the verified state is the GREEN verified status, never the\n * brand violet — so it binds nothing from the action (brand) tier (brand != state, spec\n * §3/§5/§8). It carries the ONE deliberate motion in the system: the verified check draws ONCE\n * with the deliberate duration the moment a result first resolves, then holds as a static mark\n * and never animates again (spec §4/§8). Under prefers-reduced-motion the draw is suppressed and\n * the check appears already drawn (spec §4/§7).\n *\n * It has exactly one meaning — verified — so there is NO pending / failed VerifiedBadge: a\n * claim that is pending, expiring, or failed is a generic Badge or an Alert in the matching\n * status color, and only a confirmed verified result earns this molecule and the verified green\n * (spec §3). There is no loading state on the badge itself: while a check is still running, show\n * a Spinner or a Skeleton in its place and mount the VerifiedBadge only once the result is\n * verified — its appearance IS the confirmation (spec §4).\n *\n * It is NON-INTERACTIVE (spec §4/§6): it takes no focus, binds no keys, is never a tab stop, and\n * renders no focus ring or target-size floor. Acting on a verified result — opening the proof,\n * managing the claim — is a SEPARATE control (a Button or link) with its own keyboard model and\n * focus ring; the badge only reports (spec §6).\n */\nexport const VerifiedBadge = React.forwardRef<HTMLSpanElement, VerifiedBadgeProps>(\n function VerifiedBadge(\n { className, size, label, labelHidden, \"aria-label\": ariaLabel, ...props },\n ref,\n ) {\n // The verified statement MUST reach the accessibility tree as text (spec §7): the meaning\n // never rests on the green check alone (1.4.1 / 1.3.1). When a visible label is present it\n // IS the accessible name and no role is needed (the spec default). When the label is hidden\n // — the check stands alone — the name can only be carried by the caller's aria-label; but an\n // aria-label on a roleless <span> is prohibited by ARIA (aria-prohibited-attr) and would be\n // silently dropped, leaving an unnamed green check. So the check-only marker takes role=\"img\"\n // (a graphical element with a text alternative — the same pattern Avatar / AgentBadge use) to\n // make the name valid and announced.\n const showLabel = !labelHidden && label != null;\n const checkOnly = !showLabel;\n\n if (process.env.NODE_ENV !== \"production\" && checkOnly && ariaLabel == null) {\n // never icon-alone: a VerifiedBadge with no visible label AND no aria-label has no\n // accessible name — the green check alone would carry the meaning, the one thing this\n // molecule forbids (spec §7). We cannot invent a name; warn loudly in development so the\n // missing name is fixed rather than shipped as a nameless green check.\n console.warn(\n \"VerifiedBadge: a hidden label needs an `aria-label` stating what was verified \" +\n '(e.g. \"ID verified.\") — the verified check alone is not an accessible name.',\n );\n }\n\n return (\n // native <span>: inline content in a styled container. No tabIndex, no focus ring — a\n // VerifiedBadge is a result, not a control (spec §6/§7). role=\"img\" only on the check-only\n // marker, so the aria-label naming the claim is valid and announced.\n <span\n ref={ref}\n className={cn(verifiedBadgeVariants({ size }), className)}\n role={checkOnly ? \"img\" : undefined}\n aria-label={checkOnly ? ariaLabel : undefined}\n {...props}\n >\n {/* the verified check (spec §2): decorative to assistive technology — the meaning lives\n in the accessible name — so aria-hidden. It draws once on first appearance via the\n stroke animation below and then holds as a static mark. */}\n <span\n data-testid=\"verified-badge-check\"\n className={verifiedBadgeCheckVariants({ size })}\n aria-hidden=\"true\"\n >\n <style>{VERIFIED_BADGE_REVEAL_CSS}</style>\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" width=\"100%\" height=\"100%\">\n {/* the check geometry, normalized to pathLength=1 so the draw keyframe sweeps the\n whole stroke in one unit. Resting state = fully drawn (strokeDashoffset 0): the\n keyframe animates from 1 (undrawn) to 0 and HOLDS (fill-mode forwards), and under\n reduced motion the animation is suppressed so this resting drawn state shows\n immediately. The dash geometry is pure data set inline, not a design token. */}\n <path\n data-testid=\"verified-badge-check-stroke\"\n className={verifiedBadgeCheckStrokeClass}\n d=\"M3.5 8.5l3 3 6-6.5\"\n strokeWidth={2}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n pathLength={1}\n style={{ strokeDasharray: 1, strokeDashoffset: 0 }}\n />\n </svg>\n </span>\n {/* the visible label (spec §2): when present it is the accessible name. A plain\n statement in sentence case; it always reads on its own, so the verified meaning never\n rests on the green check alone (spec §7). */}\n {showLabel ? label : null}\n </span>\n );\n },\n);\n"],"mappings":"AAmHQ,SAKE,KALF;AAnHR,YAAY,WAAW;AACvB,SAAS,UAAU;AACnB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AAUP,MAAM,4BAA4B,cAAc,8BAA8B;AAwDvE,MAAM,gBAAgB,MAAM;AAAA,EACjC,SAASA,eACP,EAAE,WAAW,MAAM,OAAO,aAAa,cAAc,WAAW,GAAG,MAAM,GACzE,KACA;AASA,UAAM,YAAY,CAAC,eAAe,SAAS;AAC3C,UAAM,YAAY,CAAC;AAEnB,QAAI,QAAQ,IAAI,aAAa,gBAAgB,aAAa,aAAa,MAAM;AAK3E,cAAQ;AAAA,QACN;AAAA,MAEF;AAAA,IACF;AAEA;AAAA;AAAA;AAAA;AAAA,MAIE;AAAA,QAAC;AAAA;AAAA,UACC;AAAA,UACA,WAAW,GAAG,sBAAsB,EAAE,KAAK,CAAC,GAAG,SAAS;AAAA,UACxD,MAAM,YAAY,QAAQ;AAAA,UAC1B,cAAY,YAAY,YAAY;AAAA,UACnC,GAAG;AAAA,UAKJ;AAAA;AAAA,cAAC;AAAA;AAAA,gBACC,eAAY;AAAA,gBACZ,WAAW,2BAA2B,EAAE,KAAK,CAAC;AAAA,gBAC9C,eAAY;AAAA,gBAEZ;AAAA,sCAAC,WAAO,qCAA0B;AAAA,kBAClC,oBAAC,SAAI,SAAQ,aAAY,MAAK,QAAO,QAAO,gBAAe,OAAM,QAAO,QAAO,QAM7E;AAAA,oBAAC;AAAA;AAAA,sBACC,eAAY;AAAA,sBACZ,WAAW;AAAA,sBACX,GAAE;AAAA,sBACF,aAAa;AAAA,sBACb,eAAc;AAAA,sBACd,gBAAe;AAAA,sBACf,YAAY;AAAA,sBACZ,OAAO,EAAE,iBAAiB,GAAG,kBAAkB,EAAE;AAAA;AAAA,kBACnD,GACF;AAAA;AAAA;AAAA,YACF;AAAA,YAIC,YAAY,QAAQ;AAAA;AAAA;AAAA,MACvB;AAAA;AAAA,EAEJ;AACF;","names":["VerifiedBadge"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
export declare const verifiedBadgeVariants: (props?: ({
|
|
3
|
+
size?: "md" | "sm" | null | undefined;
|
|
4
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
5
|
+
export declare const verifiedBadgeCheckVariants: (props?: ({
|
|
6
|
+
size?: "md" | "sm" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
+
export declare const VERIFIED_BADGE_REVEAL_KEYFRAME = "verified-check-draw";
|
|
9
|
+
export declare const verifiedBadgeCheckStrokeClass: string;
|
|
10
|
+
export type VerifiedBadgeVariantProps = VariantProps<typeof verifiedBadgeVariants>;
|
|
11
|
+
//# sourceMappingURL=verified-badge.variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verified-badge.variants.d.ts","sourceRoot":"","sources":["../../../src/components/verified-badge/verified-badge.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AA+BlE,eAAO,MAAM,qBAAqB;;8EAyBjC,CAAC;AAUF,eAAO,MAAM,0BAA0B;;8EAQrC,CAAC;AAQH,eAAO,MAAM,8BAA8B,wBAAwB,CAAC;AAmBpE,eAAO,MAAM,6BAA6B,QAKR,CAAC;AAEnC,MAAM,MAAM,yBAAyB,GAAG,YAAY,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { cva } from "class-variance-authority";
|
|
2
|
+
const verifiedBadgeVariants = cva(
|
|
3
|
+
[
|
|
4
|
+
// shape / layout: a pill holding the check + the optional label at the small gap
|
|
5
|
+
"inline-flex items-center gap-(--space-1) rounded-(--radius-full) border px-(--space-1)",
|
|
6
|
+
// global-first: never wrap — the badge stays a single self-contained chip
|
|
7
|
+
"whitespace-nowrap",
|
|
8
|
+
// the verified family: fill, border, and the READABLE label fg all draw from the verified
|
|
9
|
+
// status and from nothing else (spec §5). bg resolves to the one neutral raised surface, so
|
|
10
|
+
// color lives in fg/border (spec §C). The container fg (--color-status-verified-fg, the
|
|
11
|
+
// AA-dark shade in tokens 0.6.0) colors the readable label text; the decorative check glyph
|
|
12
|
+
// overrides it with the bright accent on its own wrapper below.
|
|
13
|
+
"bg-status-verified-bg border-status-verified-border text-status-verified-fg"
|
|
14
|
+
],
|
|
15
|
+
{
|
|
16
|
+
variants: {
|
|
17
|
+
// STRUCTURAL axis = spec §3: size differs only by the LABEL type role (density above
|
|
18
|
+
// the shared floor, DEC-B) — sm takes the caption role, md the body role. There is no
|
|
19
|
+
// height below an a11y floor (the badge is non-interactive: no target-size floor at all).
|
|
20
|
+
size: {
|
|
21
|
+
sm: "text-caption",
|
|
22
|
+
md: "text-body"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
defaultVariants: { size: "md" }
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
const verifiedBadgeCheckVariants = cva("inline-flex shrink-0 text-status-verified-accent", {
|
|
29
|
+
variants: {
|
|
30
|
+
size: {
|
|
31
|
+
sm: "h-(--size-icon-sm) w-(--size-icon-sm)",
|
|
32
|
+
md: "h-(--size-icon-md) w-(--size-icon-md)"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
defaultVariants: { size: "md" }
|
|
36
|
+
});
|
|
37
|
+
const VERIFIED_BADGE_REVEAL_KEYFRAME = "verified-check-draw";
|
|
38
|
+
const verifiedBadgeCheckStrokeClass = "[animation-name:verified-check-draw] [animation-iteration-count:1] [animation-fill-mode:forwards] duration-(--motion-duration-deliberate) ease-(--motion-easing-verdify) motion-reduce:[animation:none]";
|
|
39
|
+
export {
|
|
40
|
+
VERIFIED_BADGE_REVEAL_KEYFRAME,
|
|
41
|
+
verifiedBadgeCheckStrokeClass,
|
|
42
|
+
verifiedBadgeCheckVariants,
|
|
43
|
+
verifiedBadgeVariants
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=verified-badge.variants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/verified-badge/verified-badge.variants.ts"],"sourcesContent":["import { cva, type VariantProps } from \"class-variance-authority\";\n\n// A VerifiedBadge reports the in-product VERIFIED state of one claim — a result, not a\n// control (spec §1/§4/§6). It is a NON-INTERACTIVE pill: no focus ring, no target-size\n// floor, no interactive state transition. It has exactly ONE meaning — verified — so it\n// has NO status variants (no pending / failed VerifiedBadge); a pending or failed claim is\n// a generic Badge or an Alert in the matching status color, never this molecule (spec §3).\n//\n// brand != state (spec §3/§5/§8): the verified result is the GREEN verified status\n// (--color-status-verified-*), and the brand violet (the action tier) is NEVER bound here —\n// the brand is not a status, and the verified green is spent on nothing but a confirmed\n// verified result. The container, check, and label all draw from the verified status family and\n// from nothing else, so the green reads as \"verified\" and only \"verified\".\n//\n// Container fill: --color-status-verified-bg resolves to the ONE neutral raised surface\n// (identical to --color-surface-raised), so the verified MEANING is carried by the fg (the\n// READABLE label text) and the border, never a saturated fill (spec §5/§C).\n//\n// READABLE TEXT vs DECORATIVE GLYPH split (tokens 0.6.0): two distinct verified greens are\n// bound here on purpose. The container fg is --color-status-verified-fg — now the AA-DARK\n// shade that meets the 4.5:1 text floor (1.4.3) on the raised surface — and it colors the\n// READABLE label (the statement \"ID verified.\"), which carries the meaning as text. The\n// decorative check glyph, by contrast, is the aria-hidden signature mark whose meaning is\n// already carried by the adjacent label/accessible name, so it is exempt from the text floor\n// and binds the BRIGHT --color-status-verified-accent on its own wrapper (the moment of\n// theatre stays vivid). The border binds --color-status-verified-fg too — the AA-dark shade\n// clears the 3:1 non-text bar (1.4.11). The earlier token-tier contrast defect (saturated\n// green fg/border below AA on the near-white surface) is RESOLVED at the token tier in 0.6.0;\n// the measured ratios are pinned as AA-passing tripwires in verified-badge.test.tsx.\n// (Hex values are intentionally omitted here: the token-binding gate's raw-hex matcher scans\n// this comment.)\nexport const verifiedBadgeVariants = cva(\n [\n // shape / layout: a pill holding the check + the optional label at the small gap\n \"inline-flex items-center gap-(--space-1) rounded-(--radius-full) border px-(--space-1)\",\n // global-first: never wrap — the badge stays a single self-contained chip\n \"whitespace-nowrap\",\n // the verified family: fill, border, and the READABLE label fg all draw from the verified\n // status and from nothing else (spec §5). bg resolves to the one neutral raised surface, so\n // color lives in fg/border (spec §C). The container fg (--color-status-verified-fg, the\n // AA-dark shade in tokens 0.6.0) colors the readable label text; the decorative check glyph\n // overrides it with the bright accent on its own wrapper below.\n \"bg-status-verified-bg border-status-verified-border text-status-verified-fg\",\n ],\n {\n variants: {\n // STRUCTURAL axis = spec §3: size differs only by the LABEL type role (density above\n // the shared floor, DEC-B) — sm takes the caption role, md the body role. There is no\n // height below an a11y floor (the badge is non-interactive: no target-size floor at all).\n size: {\n sm: \"text-caption\",\n md: \"text-body\",\n },\n },\n defaultVariants: { size: \"md\" },\n },\n);\n\n// The check wrapper (spec §2): the verified check mark sized to match the adjacent icon at\n// each size — the sm icon role at size=sm, the md icon role at size=md (spec §5). It is\n// decorative to assistive technology (aria-hidden, set in tsx); the meaning lives in the\n// accessible name + the readable label. Because it is decorative (meaning carried by the\n// adjacent text), it is EXEMPT from the AA text floor and binds the BRIGHT verified ACCENT\n// (--color-status-verified-accent, tokens 0.6.0) here on the wrapper; the inner SVG draws with\n// currentColor, so the check stays vivid (the moment of theatre) while the readable label keeps\n// the AA-dark container fg.\nexport const verifiedBadgeCheckVariants = cva(\"inline-flex shrink-0 text-status-verified-accent\", {\n variants: {\n size: {\n sm: \"h-(--size-icon-sm) w-(--size-icon-sm)\",\n md: \"h-(--size-icon-md) w-(--size-icon-md)\",\n },\n },\n defaultVariants: { size: \"md\" },\n});\n\n// The keyframe NAME for the check's one-time draw (spec §4 Reveal). The keyframe itself is\n// emitted as a component-scoped <style> from verified-badge.tsx (the Progress precedent): it\n// is PURE GEOMETRY on the SVG stroke (stroke-dashoffset: 1 -> 0, on a path normalized to\n// pathLength=1) and binds NO design token, so it lives in tsx rather than in this binding file\n// or the auto-generated tokens preset. The deliberate duration + verdify easing are bound on\n// the stroke className below (this §5 binding site), so the gate sees the motion tokens here.\nexport const VERIFIED_BADGE_REVEAL_KEYFRAME = \"verified-check-draw\";\n\n// The check STROKE (spec §4 Reveal — THE one moment of theatre in the whole system). The\n// verified check is the product's whole point, so it is the ONE place that spends the\n// deliberate motion duration on the verdify easing. The stroke DRAWS ONCE on first appearance:\n// a single iteration (animation-iteration-count: 1) that HOLDS its drawn end state\n// (animation-fill-mode: forwards), referencing the pure-geometry verified-check-draw keyframe\n// from verified-badge.tsx. It never loops and never replays on re-render or scroll — a CSS\n// mount animation does not restart while its DOM node persists (spec §4/§8). Under\n// prefers-reduced-motion the draw is suppressed entirely (animation: none); the stroke's resting\n// state is already-fully-drawn (stroke-dashoffset 0, set inline in tsx), so a reader who cannot\n// perceive the draw still sees a static, complete check and learns the claim is verified from\n// the static mark + the label + the accessible name, never from the motion (spec §4/§7).\n//\n// The animation properties are KEYWORD arbitrary properties (their bodies start with a letter,\n// not a raw hex/number), so the token-binding gate does not flag them; the deliberate duration\n// and verdify easing are bound via the v4 PAREN shorthand. (The deliberate duration is\n// permitted ONLY inside this verified-badge/ directory — the motion-theatre gate exempts it\n// here; it is the one component the rest of the system is forbidden from borrowing it.)\nexport const verifiedBadgeCheckStrokeClass =\n \"[animation-name:verified-check-draw] \" +\n \"[animation-iteration-count:1] \" +\n \"[animation-fill-mode:forwards] \" +\n \"duration-(--motion-duration-deliberate) ease-(--motion-easing-verdify) \" +\n \"motion-reduce:[animation:none]\";\n\nexport type VerifiedBadgeVariantProps = VariantProps<typeof verifiedBadgeVariants>;\n"],"mappings":"AAAA,SAAS,WAA8B;AA+BhC,MAAM,wBAAwB;AAAA,EACnC;AAAA;AAAA,IAEE;AAAA;AAAA,IAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA;AAAA,EACF;AAAA,EACA;AAAA,IACE,UAAU;AAAA;AAAA;AAAA;AAAA,MAIR,MAAM;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MACN;AAAA,IACF;AAAA,IACA,iBAAiB,EAAE,MAAM,KAAK;AAAA,EAChC;AACF;AAUO,MAAM,6BAA6B,IAAI,oDAAoD;AAAA,EAChG,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IACN;AAAA,EACF;AAAA,EACA,iBAAiB,EAAE,MAAM,KAAK;AAChC,CAAC;AAQM,MAAM,iCAAiC;AAmBvC,MAAM,gCACX;","names":[]}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export { cn } from "./lib/cn";
|
|
2
|
+
export type { ClassValue } from "clsx";
|
|
3
|
+
export { Button, type ButtonProps } from "./components/button";
|
|
4
|
+
export { Label, type LabelProps } from "./components/label";
|
|
5
|
+
export { Switch, type SwitchProps } from "./components/switch";
|
|
6
|
+
export { Select, type SelectProps, type SelectOption } from "./components/select";
|
|
7
|
+
export { Checkbox, type CheckboxProps } from "./components/checkbox";
|
|
8
|
+
export { RadioGroup, Radio, type RadioGroupProps, type RadioProps } from "./components/radio";
|
|
9
|
+
export { Input, type InputProps } from "./components/input";
|
|
10
|
+
export { Textarea, type TextareaProps } from "./components/textarea";
|
|
11
|
+
export { Separator, type SeparatorProps } from "./components/separator";
|
|
12
|
+
export { Card, CardMedia, CardHeader, CardTitle, CardHeaderActions, CardBody, CardFooter, type CardProps, } from "./components/card";
|
|
13
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent, type AccordionProps, type AccordionItemProps, type AccordionTriggerProps, type AccordionContentProps, } from "./components/accordion";
|
|
14
|
+
export { Tabs, TabsList, TabsTab, TabsPanel, type TabsProps, type TabsListProps, type TabsTabProps, type TabsPanelProps, } from "./components/tabs";
|
|
15
|
+
export { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogTitle, DialogDescription, DialogBody, DialogFooter, DialogClose, type DialogProps, type DialogTriggerProps, type DialogContentProps, type DialogHeaderProps, type DialogTitleProps, type DialogDescriptionProps, type DialogBodyProps, type DialogFooterProps, type DialogCloseProps, } from "./components/dialog";
|
|
16
|
+
export { Sheet, SheetTrigger, SheetContent, SheetHeader, SheetTitle, SheetDescription, SheetBody, SheetFooter, SheetClose, type SheetProps, type SheetTriggerProps, type SheetContentProps, type SheetHeaderProps, type SheetTitleProps, type SheetDescriptionProps, type SheetBodyProps, type SheetFooterProps, type SheetCloseProps, } from "./components/sheet";
|
|
17
|
+
export { Badge, type BadgeProps, type BadgeStatus } from "./components/badge";
|
|
18
|
+
export { Spinner, type SpinnerProps } from "./components/spinner";
|
|
19
|
+
export { Skeleton, type SkeletonProps, type SkeletonVariant } from "./components/skeleton";
|
|
20
|
+
export { Progress, type ProgressProps } from "./components/progress";
|
|
21
|
+
export { Alert, AlertIcon, AlertContent, AlertTitle, AlertBody, AlertActions, AlertDismiss, type AlertProps, type AlertDismissProps, } from "./components/alert";
|
|
22
|
+
export { ToastProvider, ToastViewport, Toast, ToastIcon, ToastContent, ToastTitle, ToastDescription, ToastAction, ToastClose, type ToastProviderProps, type ToastViewportProps, type ToastProps, type ToastIconProps, type ToastContentProps, type ToastTitleProps, type ToastDescriptionProps, type ToastActionProps, type ToastCloseProps, } from "./components/toast";
|
|
23
|
+
export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, type BreadcrumbProps, type BreadcrumbListProps, type BreadcrumbItemProps, type BreadcrumbLinkProps, type BreadcrumbPageProps, type BreadcrumbSeparatorProps, type BreadcrumbEllipsisProps, } from "./components/breadcrumb";
|
|
24
|
+
export { Pagination, PaginationList, PaginationItem, PaginationLink, PaginationPrevious, PaginationNext, PaginationStatus, PaginationEllipsis, type PaginationProps, type PaginationListProps, type PaginationItemProps, type PaginationLinkProps, type PaginationPreviousProps, type PaginationNextProps, type PaginationStatusProps, type PaginationEllipsisProps, } from "./components/pagination";
|
|
25
|
+
export { Sidebar, SidebarHeader, SidebarGroup, SidebarItem, SidebarFooter, SidebarCollapseToggle, type SidebarProps, type SidebarHeaderProps, type SidebarGroupProps, type SidebarItemProps, type SidebarFooterProps, type SidebarCollapseToggleProps, } from "./components/sidebar";
|
|
26
|
+
export { Menu, MenuTrigger, MenuContent, MenuItem, MenuGroup, MenuLabel, MenuSeparator, MenuSub, MenuSubTrigger, MenuSubContent, type MenuProps, type MenuTriggerProps, type MenuContentProps, type MenuItemProps, type MenuGroupProps, type MenuLabelProps, type MenuSeparatorProps, type MenuSubProps, type MenuSubTriggerProps, type MenuSubContentProps, } from "./components/menu";
|
|
27
|
+
export { CommandPalette, type CommandPaletteProps, type CommandPaletteItem, type CommandPaletteVariant, } from "./components/command-palette";
|
|
28
|
+
export { Avatar, type AvatarProps, type AvatarShape, type AvatarSize, } from "./components/avatar";
|
|
29
|
+
export { TooltipProvider, Tooltip, TooltipTrigger, TooltipContent, type TooltipProviderProps, type TooltipProps, type TooltipTriggerProps, type TooltipContentProps, type TooltipVariant, } from "./components/tooltip";
|
|
30
|
+
export { Popover, PopoverTrigger, PopoverContent, PopoverHeader, PopoverTitle, PopoverBody, PopoverClose, PopoverArrow, type PopoverProps, type PopoverTriggerProps, type PopoverContentProps, type PopoverHeaderProps, type PopoverTitleProps, type PopoverBodyProps, type PopoverCloseProps, type PopoverArrowProps, } from "./components/popover";
|
|
31
|
+
export { Table, TableCaption, TableHeader, TableBody, TableFooter, TableRow, TableHead, TableRowHeader, TableCell, TableEmpty, type TableProps, type TableCaptionProps, type TableHeaderProps, type TableBodyProps, type TableFooterProps, type TableRowProps, type TableHeadProps, type TableRowHeaderProps, type TableCellProps, type TableEmptyProps, type TableDensity, type TableRule, type TableCellStatus, type TableSortDirection, } from "./components/table";
|
|
32
|
+
export { DataGrid, DataGridHeaderRow, DataGridBody, DataGridRow, DataGridColumnHeader, DataGridCell, DataGridSelectionCell, DataGridSelectAllCell, DataGridBulkActionBar, DataGridBulkAction, DataGridStatusRegion, DataGridEmpty, type DataGridProps, type DataGridHeaderRowProps, type DataGridBodyProps, type DataGridRowProps, type DataGridColumnHeaderProps, type DataGridCellProps, type DataGridSelectionCellProps, type DataGridSelectAllCellProps, type DataGridBulkActionBarProps, type DataGridBulkActionProps, type DataGridStatusRegionProps, type DataGridEmptyProps, type DataGridDensity, type DataGridSelection, type DataGridCellStatus, type DataGridCellControls, type DataGridSortDirection, } from "./components/data-grid";
|
|
33
|
+
export { AgentBadge, type AgentBadgeProps, type AgentBadgeStatus, } from "./components/agent-badge";
|
|
34
|
+
export { TrustScore, type TrustScoreProps, type TrustScoreVariant, type TrustScoreState, } from "./components/trust-score";
|
|
35
|
+
export { VerifiedBadge, type VerifiedBadgeProps, } from "./components/verified-badge";
|
|
36
|
+
export { ConsentToggle, type ConsentToggleProps, type ConsentToggleVariant, } from "./components/consent-toggle";
|
|
37
|
+
export { CredentialCard, type CredentialCardProps, type CredentialKind, type CredentialCardStatus, } from "./components/credential-card";
|
|
38
|
+
export { IdentityChip, type IdentityChipProps, type IdentityChipVariant, type IdentityChipAgent, type IdentityChipVerified, } from "./components/identity-chip";
|
|
39
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
import { cn } from "./lib/cn";
|
|
2
|
+
import { Button } from "./components/button";
|
|
3
|
+
import { Label } from "./components/label";
|
|
4
|
+
import { Switch } from "./components/switch";
|
|
5
|
+
import { Select } from "./components/select";
|
|
6
|
+
import { Checkbox } from "./components/checkbox";
|
|
7
|
+
import { RadioGroup, Radio } from "./components/radio";
|
|
8
|
+
import { Input } from "./components/input";
|
|
9
|
+
import { Textarea } from "./components/textarea";
|
|
10
|
+
import { Separator } from "./components/separator";
|
|
11
|
+
import {
|
|
12
|
+
Card,
|
|
13
|
+
CardMedia,
|
|
14
|
+
CardHeader,
|
|
15
|
+
CardTitle,
|
|
16
|
+
CardHeaderActions,
|
|
17
|
+
CardBody,
|
|
18
|
+
CardFooter
|
|
19
|
+
} from "./components/card";
|
|
20
|
+
import {
|
|
21
|
+
Accordion,
|
|
22
|
+
AccordionItem,
|
|
23
|
+
AccordionTrigger,
|
|
24
|
+
AccordionContent
|
|
25
|
+
} from "./components/accordion";
|
|
26
|
+
import {
|
|
27
|
+
Tabs,
|
|
28
|
+
TabsList,
|
|
29
|
+
TabsTab,
|
|
30
|
+
TabsPanel
|
|
31
|
+
} from "./components/tabs";
|
|
32
|
+
import {
|
|
33
|
+
Dialog,
|
|
34
|
+
DialogTrigger,
|
|
35
|
+
DialogContent,
|
|
36
|
+
DialogHeader,
|
|
37
|
+
DialogTitle,
|
|
38
|
+
DialogDescription,
|
|
39
|
+
DialogBody,
|
|
40
|
+
DialogFooter,
|
|
41
|
+
DialogClose
|
|
42
|
+
} from "./components/dialog";
|
|
43
|
+
import {
|
|
44
|
+
Sheet,
|
|
45
|
+
SheetTrigger,
|
|
46
|
+
SheetContent,
|
|
47
|
+
SheetHeader,
|
|
48
|
+
SheetTitle,
|
|
49
|
+
SheetDescription,
|
|
50
|
+
SheetBody,
|
|
51
|
+
SheetFooter,
|
|
52
|
+
SheetClose
|
|
53
|
+
} from "./components/sheet";
|
|
54
|
+
import { Badge } from "./components/badge";
|
|
55
|
+
import { Spinner } from "./components/spinner";
|
|
56
|
+
import { Skeleton } from "./components/skeleton";
|
|
57
|
+
import { Progress } from "./components/progress";
|
|
58
|
+
import {
|
|
59
|
+
Alert,
|
|
60
|
+
AlertIcon,
|
|
61
|
+
AlertContent,
|
|
62
|
+
AlertTitle,
|
|
63
|
+
AlertBody,
|
|
64
|
+
AlertActions,
|
|
65
|
+
AlertDismiss
|
|
66
|
+
} from "./components/alert";
|
|
67
|
+
import {
|
|
68
|
+
ToastProvider,
|
|
69
|
+
ToastViewport,
|
|
70
|
+
Toast,
|
|
71
|
+
ToastIcon,
|
|
72
|
+
ToastContent,
|
|
73
|
+
ToastTitle,
|
|
74
|
+
ToastDescription,
|
|
75
|
+
ToastAction,
|
|
76
|
+
ToastClose
|
|
77
|
+
} from "./components/toast";
|
|
78
|
+
import {
|
|
79
|
+
Breadcrumb,
|
|
80
|
+
BreadcrumbList,
|
|
81
|
+
BreadcrumbItem,
|
|
82
|
+
BreadcrumbLink,
|
|
83
|
+
BreadcrumbPage,
|
|
84
|
+
BreadcrumbSeparator,
|
|
85
|
+
BreadcrumbEllipsis
|
|
86
|
+
} from "./components/breadcrumb";
|
|
87
|
+
import {
|
|
88
|
+
Pagination,
|
|
89
|
+
PaginationList,
|
|
90
|
+
PaginationItem,
|
|
91
|
+
PaginationLink,
|
|
92
|
+
PaginationPrevious,
|
|
93
|
+
PaginationNext,
|
|
94
|
+
PaginationStatus,
|
|
95
|
+
PaginationEllipsis
|
|
96
|
+
} from "./components/pagination";
|
|
97
|
+
import {
|
|
98
|
+
Sidebar,
|
|
99
|
+
SidebarHeader,
|
|
100
|
+
SidebarGroup,
|
|
101
|
+
SidebarItem,
|
|
102
|
+
SidebarFooter,
|
|
103
|
+
SidebarCollapseToggle
|
|
104
|
+
} from "./components/sidebar";
|
|
105
|
+
import {
|
|
106
|
+
Menu,
|
|
107
|
+
MenuTrigger,
|
|
108
|
+
MenuContent,
|
|
109
|
+
MenuItem,
|
|
110
|
+
MenuGroup,
|
|
111
|
+
MenuLabel,
|
|
112
|
+
MenuSeparator,
|
|
113
|
+
MenuSub,
|
|
114
|
+
MenuSubTrigger,
|
|
115
|
+
MenuSubContent
|
|
116
|
+
} from "./components/menu";
|
|
117
|
+
import {
|
|
118
|
+
CommandPalette
|
|
119
|
+
} from "./components/command-palette";
|
|
120
|
+
import {
|
|
121
|
+
Avatar
|
|
122
|
+
} from "./components/avatar";
|
|
123
|
+
import {
|
|
124
|
+
TooltipProvider,
|
|
125
|
+
Tooltip,
|
|
126
|
+
TooltipTrigger,
|
|
127
|
+
TooltipContent
|
|
128
|
+
} from "./components/tooltip";
|
|
129
|
+
import {
|
|
130
|
+
Popover,
|
|
131
|
+
PopoverTrigger,
|
|
132
|
+
PopoverContent,
|
|
133
|
+
PopoverHeader,
|
|
134
|
+
PopoverTitle,
|
|
135
|
+
PopoverBody,
|
|
136
|
+
PopoverClose,
|
|
137
|
+
PopoverArrow
|
|
138
|
+
} from "./components/popover";
|
|
139
|
+
import {
|
|
140
|
+
Table,
|
|
141
|
+
TableCaption,
|
|
142
|
+
TableHeader,
|
|
143
|
+
TableBody,
|
|
144
|
+
TableFooter,
|
|
145
|
+
TableRow,
|
|
146
|
+
TableHead,
|
|
147
|
+
TableRowHeader,
|
|
148
|
+
TableCell,
|
|
149
|
+
TableEmpty
|
|
150
|
+
} from "./components/table";
|
|
151
|
+
import {
|
|
152
|
+
DataGrid,
|
|
153
|
+
DataGridHeaderRow,
|
|
154
|
+
DataGridBody,
|
|
155
|
+
DataGridRow,
|
|
156
|
+
DataGridColumnHeader,
|
|
157
|
+
DataGridCell,
|
|
158
|
+
DataGridSelectionCell,
|
|
159
|
+
DataGridSelectAllCell,
|
|
160
|
+
DataGridBulkActionBar,
|
|
161
|
+
DataGridBulkAction,
|
|
162
|
+
DataGridStatusRegion,
|
|
163
|
+
DataGridEmpty
|
|
164
|
+
} from "./components/data-grid";
|
|
165
|
+
import {
|
|
166
|
+
AgentBadge
|
|
167
|
+
} from "./components/agent-badge";
|
|
168
|
+
import {
|
|
169
|
+
TrustScore
|
|
170
|
+
} from "./components/trust-score";
|
|
171
|
+
import {
|
|
172
|
+
VerifiedBadge
|
|
173
|
+
} from "./components/verified-badge";
|
|
174
|
+
import {
|
|
175
|
+
ConsentToggle
|
|
176
|
+
} from "./components/consent-toggle";
|
|
177
|
+
import {
|
|
178
|
+
CredentialCard
|
|
179
|
+
} from "./components/credential-card";
|
|
180
|
+
import {
|
|
181
|
+
IdentityChip
|
|
182
|
+
} from "./components/identity-chip";
|
|
183
|
+
export {
|
|
184
|
+
Accordion,
|
|
185
|
+
AccordionContent,
|
|
186
|
+
AccordionItem,
|
|
187
|
+
AccordionTrigger,
|
|
188
|
+
AgentBadge,
|
|
189
|
+
Alert,
|
|
190
|
+
AlertActions,
|
|
191
|
+
AlertBody,
|
|
192
|
+
AlertContent,
|
|
193
|
+
AlertDismiss,
|
|
194
|
+
AlertIcon,
|
|
195
|
+
AlertTitle,
|
|
196
|
+
Avatar,
|
|
197
|
+
Badge,
|
|
198
|
+
Breadcrumb,
|
|
199
|
+
BreadcrumbEllipsis,
|
|
200
|
+
BreadcrumbItem,
|
|
201
|
+
BreadcrumbLink,
|
|
202
|
+
BreadcrumbList,
|
|
203
|
+
BreadcrumbPage,
|
|
204
|
+
BreadcrumbSeparator,
|
|
205
|
+
Button,
|
|
206
|
+
Card,
|
|
207
|
+
CardBody,
|
|
208
|
+
CardFooter,
|
|
209
|
+
CardHeader,
|
|
210
|
+
CardHeaderActions,
|
|
211
|
+
CardMedia,
|
|
212
|
+
CardTitle,
|
|
213
|
+
Checkbox,
|
|
214
|
+
CommandPalette,
|
|
215
|
+
ConsentToggle,
|
|
216
|
+
CredentialCard,
|
|
217
|
+
DataGrid,
|
|
218
|
+
DataGridBody,
|
|
219
|
+
DataGridBulkAction,
|
|
220
|
+
DataGridBulkActionBar,
|
|
221
|
+
DataGridCell,
|
|
222
|
+
DataGridColumnHeader,
|
|
223
|
+
DataGridEmpty,
|
|
224
|
+
DataGridHeaderRow,
|
|
225
|
+
DataGridRow,
|
|
226
|
+
DataGridSelectAllCell,
|
|
227
|
+
DataGridSelectionCell,
|
|
228
|
+
DataGridStatusRegion,
|
|
229
|
+
Dialog,
|
|
230
|
+
DialogBody,
|
|
231
|
+
DialogClose,
|
|
232
|
+
DialogContent,
|
|
233
|
+
DialogDescription,
|
|
234
|
+
DialogFooter,
|
|
235
|
+
DialogHeader,
|
|
236
|
+
DialogTitle,
|
|
237
|
+
DialogTrigger,
|
|
238
|
+
IdentityChip,
|
|
239
|
+
Input,
|
|
240
|
+
Label,
|
|
241
|
+
Menu,
|
|
242
|
+
MenuContent,
|
|
243
|
+
MenuGroup,
|
|
244
|
+
MenuItem,
|
|
245
|
+
MenuLabel,
|
|
246
|
+
MenuSeparator,
|
|
247
|
+
MenuSub,
|
|
248
|
+
MenuSubContent,
|
|
249
|
+
MenuSubTrigger,
|
|
250
|
+
MenuTrigger,
|
|
251
|
+
Pagination,
|
|
252
|
+
PaginationEllipsis,
|
|
253
|
+
PaginationItem,
|
|
254
|
+
PaginationLink,
|
|
255
|
+
PaginationList,
|
|
256
|
+
PaginationNext,
|
|
257
|
+
PaginationPrevious,
|
|
258
|
+
PaginationStatus,
|
|
259
|
+
Popover,
|
|
260
|
+
PopoverArrow,
|
|
261
|
+
PopoverBody,
|
|
262
|
+
PopoverClose,
|
|
263
|
+
PopoverContent,
|
|
264
|
+
PopoverHeader,
|
|
265
|
+
PopoverTitle,
|
|
266
|
+
PopoverTrigger,
|
|
267
|
+
Progress,
|
|
268
|
+
Radio,
|
|
269
|
+
RadioGroup,
|
|
270
|
+
Select,
|
|
271
|
+
Separator,
|
|
272
|
+
Sheet,
|
|
273
|
+
SheetBody,
|
|
274
|
+
SheetClose,
|
|
275
|
+
SheetContent,
|
|
276
|
+
SheetDescription,
|
|
277
|
+
SheetFooter,
|
|
278
|
+
SheetHeader,
|
|
279
|
+
SheetTitle,
|
|
280
|
+
SheetTrigger,
|
|
281
|
+
Sidebar,
|
|
282
|
+
SidebarCollapseToggle,
|
|
283
|
+
SidebarFooter,
|
|
284
|
+
SidebarGroup,
|
|
285
|
+
SidebarHeader,
|
|
286
|
+
SidebarItem,
|
|
287
|
+
Skeleton,
|
|
288
|
+
Spinner,
|
|
289
|
+
Switch,
|
|
290
|
+
Table,
|
|
291
|
+
TableBody,
|
|
292
|
+
TableCaption,
|
|
293
|
+
TableCell,
|
|
294
|
+
TableEmpty,
|
|
295
|
+
TableFooter,
|
|
296
|
+
TableHead,
|
|
297
|
+
TableHeader,
|
|
298
|
+
TableRow,
|
|
299
|
+
TableRowHeader,
|
|
300
|
+
Tabs,
|
|
301
|
+
TabsList,
|
|
302
|
+
TabsPanel,
|
|
303
|
+
TabsTab,
|
|
304
|
+
Textarea,
|
|
305
|
+
Toast,
|
|
306
|
+
ToastAction,
|
|
307
|
+
ToastClose,
|
|
308
|
+
ToastContent,
|
|
309
|
+
ToastDescription,
|
|
310
|
+
ToastIcon,
|
|
311
|
+
ToastProvider,
|
|
312
|
+
ToastTitle,
|
|
313
|
+
ToastViewport,
|
|
314
|
+
Tooltip,
|
|
315
|
+
TooltipContent,
|
|
316
|
+
TooltipProvider,
|
|
317
|
+
TooltipTrigger,
|
|
318
|
+
TrustScore,
|
|
319
|
+
VerifiedBadge,
|
|
320
|
+
cn
|
|
321
|
+
};
|
|
322
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// Public API barrel for @verdify/ui.\n// Components are appended below as each lands (Phase 3+).\nexport { cn } from \"./lib/cn\";\nexport type { ClassValue } from \"clsx\";\n\nexport { Button, type ButtonProps } from \"./components/button\";\nexport { Label, type LabelProps } from \"./components/label\";\nexport { Switch, type SwitchProps } from \"./components/switch\";\nexport { Select, type SelectProps, type SelectOption } from \"./components/select\";\nexport { Checkbox, type CheckboxProps } from \"./components/checkbox\";\nexport { RadioGroup, Radio, type RadioGroupProps, type RadioProps } from \"./components/radio\";\nexport { Input, type InputProps } from \"./components/input\";\nexport { Textarea, type TextareaProps } from \"./components/textarea\";\nexport { Separator, type SeparatorProps } from \"./components/separator\";\nexport {\n Card,\n CardMedia,\n CardHeader,\n CardTitle,\n CardHeaderActions,\n CardBody,\n CardFooter,\n type CardProps,\n} from \"./components/card\";\nexport {\n Accordion,\n AccordionItem,\n AccordionTrigger,\n AccordionContent,\n type AccordionProps,\n type AccordionItemProps,\n type AccordionTriggerProps,\n type AccordionContentProps,\n} from \"./components/accordion\";\nexport {\n Tabs,\n TabsList,\n TabsTab,\n TabsPanel,\n type TabsProps,\n type TabsListProps,\n type TabsTabProps,\n type TabsPanelProps,\n} from \"./components/tabs\";\nexport {\n Dialog,\n DialogTrigger,\n DialogContent,\n DialogHeader,\n DialogTitle,\n DialogDescription,\n DialogBody,\n DialogFooter,\n DialogClose,\n type DialogProps,\n type DialogTriggerProps,\n type DialogContentProps,\n type DialogHeaderProps,\n type DialogTitleProps,\n type DialogDescriptionProps,\n type DialogBodyProps,\n type DialogFooterProps,\n type DialogCloseProps,\n} from \"./components/dialog\";\nexport {\n Sheet,\n SheetTrigger,\n SheetContent,\n SheetHeader,\n SheetTitle,\n SheetDescription,\n SheetBody,\n SheetFooter,\n SheetClose,\n type SheetProps,\n type SheetTriggerProps,\n type SheetContentProps,\n type SheetHeaderProps,\n type SheetTitleProps,\n type SheetDescriptionProps,\n type SheetBodyProps,\n type SheetFooterProps,\n type SheetCloseProps,\n} from \"./components/sheet\";\nexport { Badge, type BadgeProps, type BadgeStatus } from \"./components/badge\";\nexport { Spinner, type SpinnerProps } from \"./components/spinner\";\nexport { Skeleton, type SkeletonProps, type SkeletonVariant } from \"./components/skeleton\";\nexport { Progress, type ProgressProps } from \"./components/progress\";\nexport {\n Alert,\n AlertIcon,\n AlertContent,\n AlertTitle,\n AlertBody,\n AlertActions,\n AlertDismiss,\n type AlertProps,\n type AlertDismissProps,\n} from \"./components/alert\";\nexport {\n ToastProvider,\n ToastViewport,\n Toast,\n ToastIcon,\n ToastContent,\n ToastTitle,\n ToastDescription,\n ToastAction,\n ToastClose,\n type ToastProviderProps,\n type ToastViewportProps,\n type ToastProps,\n type ToastIconProps,\n type ToastContentProps,\n type ToastTitleProps,\n type ToastDescriptionProps,\n type ToastActionProps,\n type ToastCloseProps,\n} from \"./components/toast\";\nexport {\n Breadcrumb,\n BreadcrumbList,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbPage,\n BreadcrumbSeparator,\n BreadcrumbEllipsis,\n type BreadcrumbProps,\n type BreadcrumbListProps,\n type BreadcrumbItemProps,\n type BreadcrumbLinkProps,\n type BreadcrumbPageProps,\n type BreadcrumbSeparatorProps,\n type BreadcrumbEllipsisProps,\n} from \"./components/breadcrumb\";\nexport {\n Pagination,\n PaginationList,\n PaginationItem,\n PaginationLink,\n PaginationPrevious,\n PaginationNext,\n PaginationStatus,\n PaginationEllipsis,\n type PaginationProps,\n type PaginationListProps,\n type PaginationItemProps,\n type PaginationLinkProps,\n type PaginationPreviousProps,\n type PaginationNextProps,\n type PaginationStatusProps,\n type PaginationEllipsisProps,\n} from \"./components/pagination\";\nexport {\n Sidebar,\n SidebarHeader,\n SidebarGroup,\n SidebarItem,\n SidebarFooter,\n SidebarCollapseToggle,\n type SidebarProps,\n type SidebarHeaderProps,\n type SidebarGroupProps,\n type SidebarItemProps,\n type SidebarFooterProps,\n type SidebarCollapseToggleProps,\n} from \"./components/sidebar\";\nexport {\n Menu,\n MenuTrigger,\n MenuContent,\n MenuItem,\n MenuGroup,\n MenuLabel,\n MenuSeparator,\n MenuSub,\n MenuSubTrigger,\n MenuSubContent,\n type MenuProps,\n type MenuTriggerProps,\n type MenuContentProps,\n type MenuItemProps,\n type MenuGroupProps,\n type MenuLabelProps,\n type MenuSeparatorProps,\n type MenuSubProps,\n type MenuSubTriggerProps,\n type MenuSubContentProps,\n} from \"./components/menu\";\nexport {\n CommandPalette,\n type CommandPaletteProps,\n type CommandPaletteItem,\n type CommandPaletteVariant,\n} from \"./components/command-palette\";\nexport {\n Avatar,\n type AvatarProps,\n type AvatarShape,\n type AvatarSize,\n} from \"./components/avatar\";\nexport {\n TooltipProvider,\n Tooltip,\n TooltipTrigger,\n TooltipContent,\n type TooltipProviderProps,\n type TooltipProps,\n type TooltipTriggerProps,\n type TooltipContentProps,\n type TooltipVariant,\n} from \"./components/tooltip\";\nexport {\n Popover,\n PopoverTrigger,\n PopoverContent,\n PopoverHeader,\n PopoverTitle,\n PopoverBody,\n PopoverClose,\n PopoverArrow,\n type PopoverProps,\n type PopoverTriggerProps,\n type PopoverContentProps,\n type PopoverHeaderProps,\n type PopoverTitleProps,\n type PopoverBodyProps,\n type PopoverCloseProps,\n type PopoverArrowProps,\n} from \"./components/popover\";\nexport {\n Table,\n TableCaption,\n TableHeader,\n TableBody,\n TableFooter,\n TableRow,\n TableHead,\n TableRowHeader,\n TableCell,\n TableEmpty,\n type TableProps,\n type TableCaptionProps,\n type TableHeaderProps,\n type TableBodyProps,\n type TableFooterProps,\n type TableRowProps,\n type TableHeadProps,\n type TableRowHeaderProps,\n type TableCellProps,\n type TableEmptyProps,\n type TableDensity,\n type TableRule,\n type TableCellStatus,\n type TableSortDirection,\n} from \"./components/table\";\nexport {\n DataGrid,\n DataGridHeaderRow,\n DataGridBody,\n DataGridRow,\n DataGridColumnHeader,\n DataGridCell,\n DataGridSelectionCell,\n DataGridSelectAllCell,\n DataGridBulkActionBar,\n DataGridBulkAction,\n DataGridStatusRegion,\n DataGridEmpty,\n type DataGridProps,\n type DataGridHeaderRowProps,\n type DataGridBodyProps,\n type DataGridRowProps,\n type DataGridColumnHeaderProps,\n type DataGridCellProps,\n type DataGridSelectionCellProps,\n type DataGridSelectAllCellProps,\n type DataGridBulkActionBarProps,\n type DataGridBulkActionProps,\n type DataGridStatusRegionProps,\n type DataGridEmptyProps,\n type DataGridDensity,\n type DataGridSelection,\n type DataGridCellStatus,\n type DataGridCellControls,\n type DataGridSortDirection,\n} from \"./components/data-grid\";\nexport {\n AgentBadge,\n type AgentBadgeProps,\n type AgentBadgeStatus,\n} from \"./components/agent-badge\";\nexport {\n TrustScore,\n type TrustScoreProps,\n type TrustScoreVariant,\n type TrustScoreState,\n} from \"./components/trust-score\";\nexport {\n VerifiedBadge,\n type VerifiedBadgeProps,\n} from \"./components/verified-badge\";\nexport {\n ConsentToggle,\n type ConsentToggleProps,\n type ConsentToggleVariant,\n} from \"./components/consent-toggle\";\nexport {\n CredentialCard,\n type CredentialCardProps,\n type CredentialKind,\n type CredentialCardStatus,\n} from \"./components/credential-card\";\nexport {\n IdentityChip,\n type IdentityChipProps,\n type IdentityChipVariant,\n type IdentityChipAgent,\n type IdentityChipVerified,\n} from \"./components/identity-chip\";\n"],"mappings":"AAEA,SAAS,UAAU;AAGnB,SAAS,cAAgC;AACzC,SAAS,aAA8B;AACvC,SAAS,cAAgC;AACzC,SAAS,cAAmD;AAC5D,SAAS,gBAAoC;AAC7C,SAAS,YAAY,aAAoD;AACzE,SAAS,aAA8B;AACvC,SAAS,gBAAoC;AAC7C,SAAS,iBAAsC;AAC/C;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAKK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAKK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAUK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAUK;AACP,SAAS,aAAgD;AACzD,SAAS,eAAkC;AAC3C,SAAS,gBAA0D;AACnE,SAAS,gBAAoC;AAC7C;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAGK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAUK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAQK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OASK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAOK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAWK;AACP;AAAA,EACE;AAAA,OAIK;AACP;AAAA,EACE;AAAA,OAIK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAMK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OASK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAeK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAkBK;AACP;AAAA,EACE;AAAA,OAGK;AACP;AAAA,EACE;AAAA,OAIK;AACP;AAAA,EACE;AAAA,OAEK;AACP;AAAA,EACE;AAAA,OAGK;AACP;AAAA,EACE;AAAA,OAIK;AACP;AAAA,EACE;AAAA,OAKK;","names":[]}
|
package/dist/lib/cn.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cn.d.ts","sourceRoot":"","sources":["../../src/lib/cn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,MAAM,CAAC;AA2B7C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC"}
|
package/dist/lib/cn.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import { extendTailwindMerge } from "tailwind-merge";
|
|
3
|
+
const TEXT_ROLES = [
|
|
4
|
+
"display",
|
|
5
|
+
"h1",
|
|
6
|
+
"h2",
|
|
7
|
+
"h3",
|
|
8
|
+
"body-lg",
|
|
9
|
+
"body",
|
|
10
|
+
"caption",
|
|
11
|
+
"label",
|
|
12
|
+
"mono-sm",
|
|
13
|
+
"mono"
|
|
14
|
+
];
|
|
15
|
+
const twMerge = extendTailwindMerge({
|
|
16
|
+
extend: { classGroups: { "font-size": [{ text: [...TEXT_ROLES] }] } }
|
|
17
|
+
});
|
|
18
|
+
function cn(...inputs) {
|
|
19
|
+
return twMerge(clsx(inputs));
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
cn
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=cn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/lib/cn.ts"],"sourcesContent":["import { clsx, type ClassValue } from \"clsx\";\nimport { extendTailwindMerge } from \"tailwind-merge\";\n\n// The @verdify/tokens theme exposes ten custom type-role font sizes as Tailwind v4\n// `--text-{role}` keys, which generate `text-{role}` font-size utilities. tailwind-merge's\n// defaults don't know these role names, so it files `text-label`, `text-body`, … under its\n// `text-color` group and lets a later `text-text-*` / `text-action-*` COLOR utility evict the\n// font-size (verified: `twMerge(\"text-label\", \"text-action-primary-fg\")` drops `text-label`).\n// Registering the roles into the `font-size` group restores the correct font-size-vs-color\n// split so a role and a color coexist. Defined once here; every component reuses this `cn`.\nconst TEXT_ROLES = [\n \"display\",\n \"h1\",\n \"h2\",\n \"h3\",\n \"body-lg\",\n \"body\",\n \"caption\",\n \"label\",\n \"mono-sm\",\n \"mono\",\n] as const;\n\nconst twMerge = extendTailwindMerge({\n extend: { classGroups: { \"font-size\": [{ text: [...TEXT_ROLES] }] } },\n});\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"mappings":"AAAA,SAAS,YAA6B;AACtC,SAAS,2BAA2B;AASpC,MAAM,aAAa;AAAA,EACjB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEA,MAAM,UAAU,oBAAoB;AAAA,EAClC,QAAQ,EAAE,aAAa,EAAE,aAAa,CAAC,EAAE,MAAM,CAAC,GAAG,UAAU,EAAE,CAAC,EAAE,EAAE;AACtE,CAAC;AAEM,SAAS,MAAM,QAAsB;AAC1C,SAAO,QAAQ,KAAK,MAAM,CAAC;AAC7B;","names":[]}
|