@entifix/react-controls 0.1.0-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 +7 -0
- package/dist/i18n/catalog/en.d.ts +10 -0
- package/dist/i18n/catalog/en.d.ts.map +1 -0
- package/dist/i18n/catalog/en.js +211 -0
- package/dist/i18n/catalog/en.js.map +1 -0
- package/dist/i18n/catalog/es.d.ts +275 -0
- package/dist/i18n/catalog/es.d.ts.map +1 -0
- package/dist/i18n/catalog/es.js +261 -0
- package/dist/i18n/catalog/es.js.map +1 -0
- package/dist/i18n/catalog/index.d.ts +403 -0
- package/dist/i18n/catalog/index.d.ts.map +1 -0
- package/dist/i18n/catalog/index.js +23 -0
- package/dist/i18n/catalog/index.js.map +1 -0
- package/dist/i18n/entity-labels.d.ts +29 -0
- package/dist/i18n/entity-labels.d.ts.map +1 -0
- package/dist/i18n/entity-labels.js +49 -0
- package/dist/i18n/entity-labels.js.map +1 -0
- package/dist/i18n/fallback-catalogs.d.ts +5 -0
- package/dist/i18n/fallback-catalogs.d.ts.map +1 -0
- package/dist/i18n/fallback-catalogs.js +34 -0
- package/dist/i18n/fallback-catalogs.js.map +1 -0
- package/dist/i18n/i18n-context.d.ts +62 -0
- package/dist/i18n/i18n-context.d.ts.map +1 -0
- package/dist/i18n/i18n-context.js +128 -0
- package/dist/i18n/i18n-context.js.map +1 -0
- package/dist/i18n/index.d.ts +5 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/index.js +6 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/i18n/spec-support/catalogs.d.ts +2 -0
- package/dist/i18n/spec-support/catalogs.d.ts.map +1 -0
- package/dist/i18n/spec-support/catalogs.js +142 -0
- package/dist/i18n/spec-support/catalogs.js.map +1 -0
- package/dist/i18next/index.d.ts +20 -0
- package/dist/i18next/index.d.ts.map +1 -0
- package/dist/i18next/index.js +60 -0
- package/dist/i18next/index.js.map +1 -0
- package/dist/index.d.ts +46 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +47 -0
- package/dist/index.js.map +1 -0
- package/dist/preferences/index.d.ts +7 -0
- package/dist/preferences/index.d.ts.map +1 -0
- package/dist/preferences/index.js +8 -0
- package/dist/preferences/index.js.map +1 -0
- package/dist/preferences/indexeddb-ui-preferences-state.d.ts +16 -0
- package/dist/preferences/indexeddb-ui-preferences-state.d.ts.map +1 -0
- package/dist/preferences/indexeddb-ui-preferences-state.js +50 -0
- package/dist/preferences/indexeddb-ui-preferences-state.js.map +1 -0
- package/dist/preferences/local-storage-ui-preferences-state.d.ts +16 -0
- package/dist/preferences/local-storage-ui-preferences-state.d.ts.map +1 -0
- package/dist/preferences/local-storage-ui-preferences-state.js +51 -0
- package/dist/preferences/local-storage-ui-preferences-state.js.map +1 -0
- package/dist/preferences/ui-preferences-context.d.ts +16 -0
- package/dist/preferences/ui-preferences-context.d.ts.map +1 -0
- package/dist/preferences/ui-preferences-context.js +31 -0
- package/dist/preferences/ui-preferences-context.js.map +1 -0
- package/dist/preferences/ui-preferences-state.d.ts +23 -0
- package/dist/preferences/ui-preferences-state.d.ts.map +1 -0
- package/dist/preferences/ui-preferences-state.js +5 -0
- package/dist/preferences/ui-preferences-state.js.map +1 -0
- package/dist/preferences/use-ui-preference.d.ts +20 -0
- package/dist/preferences/use-ui-preference.d.ts.map +1 -0
- package/dist/preferences/use-ui-preference.js +72 -0
- package/dist/preferences/use-ui-preference.js.map +1 -0
- package/dist/preferences/use-viewport-mode.d.ts +33 -0
- package/dist/preferences/use-viewport-mode.d.ts.map +1 -0
- package/dist/preferences/use-viewport-mode.js +53 -0
- package/dist/preferences/use-viewport-mode.js.map +1 -0
- package/dist/primitives.d.ts +25 -0
- package/dist/primitives.d.ts.map +1 -0
- package/dist/primitives.js +54 -0
- package/dist/primitives.js.map +1 -0
- package/dist/theme/index.d.ts +3 -0
- package/dist/theme/index.d.ts.map +1 -0
- package/dist/theme/index.js +4 -0
- package/dist/theme/index.js.map +1 -0
- package/dist/theme/theme-context.d.ts +26 -0
- package/dist/theme/theme-context.d.ts.map +1 -0
- package/dist/theme/theme-context.js +79 -0
- package/dist/theme/theme-context.js.map +1 -0
- package/dist/theme/types.d.ts +22 -0
- package/dist/theme/types.d.ts.map +1 -0
- package/dist/theme/types.js +6 -0
- package/dist/theme/types.js.map +1 -0
- package/dist/ui/actions/action-surfaces.d.ts +59 -0
- package/dist/ui/actions/action-surfaces.d.ts.map +1 -0
- package/dist/ui/actions/action-surfaces.js +109 -0
- package/dist/ui/actions/action-surfaces.js.map +1 -0
- package/dist/ui/actions/index.d.ts +2 -0
- package/dist/ui/actions/index.d.ts.map +1 -0
- package/dist/ui/actions/index.js +3 -0
- package/dist/ui/actions/index.js.map +1 -0
- package/dist/ui/atoms/button/button-link.d.ts +27 -0
- package/dist/ui/atoms/button/button-link.d.ts.map +1 -0
- package/dist/ui/atoms/button/button-link.js +23 -0
- package/dist/ui/atoms/button/button-link.js.map +1 -0
- package/dist/ui/atoms/button/button-recipe.d.ts +19 -0
- package/dist/ui/atoms/button/button-recipe.d.ts.map +1 -0
- package/dist/ui/atoms/button/button-recipe.js +42 -0
- package/dist/ui/atoms/button/button-recipe.js.map +1 -0
- package/dist/ui/atoms/button/button.d.ts +7 -0
- package/dist/ui/atoms/button/button.d.ts.map +1 -0
- package/dist/ui/atoms/button/button.js +22 -0
- package/dist/ui/atoms/button/button.js.map +1 -0
- package/dist/ui/atoms/button/index.d.ts +4 -0
- package/dist/ui/atoms/button/index.d.ts.map +1 -0
- package/dist/ui/atoms/button/index.js +5 -0
- package/dist/ui/atoms/button/index.js.map +1 -0
- package/dist/ui/atoms/cell-value/cell-value.d.ts +12 -0
- package/dist/ui/atoms/cell-value/cell-value.d.ts.map +1 -0
- package/dist/ui/atoms/cell-value/cell-value.js +101 -0
- package/dist/ui/atoms/cell-value/cell-value.js.map +1 -0
- package/dist/ui/atoms/cell-value/index.d.ts +2 -0
- package/dist/ui/atoms/cell-value/index.d.ts.map +1 -0
- package/dist/ui/atoms/cell-value/index.js +3 -0
- package/dist/ui/atoms/cell-value/index.js.map +1 -0
- package/dist/ui/atoms/field/checkbox.d.ts +35 -0
- package/dist/ui/atoms/field/checkbox.d.ts.map +1 -0
- package/dist/ui/atoms/field/checkbox.js +46 -0
- package/dist/ui/atoms/field/checkbox.js.map +1 -0
- package/dist/ui/atoms/field/field.d.ts +4 -0
- package/dist/ui/atoms/field/field.d.ts.map +1 -0
- package/dist/ui/atoms/field/field.js +29 -0
- package/dist/ui/atoms/field/field.js.map +1 -0
- package/dist/ui/atoms/field/index.d.ts +3 -0
- package/dist/ui/atoms/field/index.d.ts.map +1 -0
- package/dist/ui/atoms/field/index.js +4 -0
- package/dist/ui/atoms/field/index.js.map +1 -0
- package/dist/ui/atoms/field-control/field-control.d.ts +50 -0
- package/dist/ui/atoms/field-control/field-control.d.ts.map +1 -0
- package/dist/ui/atoms/field-control/field-control.js +82 -0
- package/dist/ui/atoms/field-control/field-control.js.map +1 -0
- package/dist/ui/atoms/field-control/index.d.ts +2 -0
- package/dist/ui/atoms/field-control/index.d.ts.map +1 -0
- package/dist/ui/atoms/field-control/index.js +3 -0
- package/dist/ui/atoms/field-control/index.js.map +1 -0
- package/dist/ui/atoms/skeleton/index.d.ts +2 -0
- package/dist/ui/atoms/skeleton/index.d.ts.map +1 -0
- package/dist/ui/atoms/skeleton/index.js +3 -0
- package/dist/ui/atoms/skeleton/index.js.map +1 -0
- package/dist/ui/atoms/skeleton/skeleton.d.ts +21 -0
- package/dist/ui/atoms/skeleton/skeleton.d.ts.map +1 -0
- package/dist/ui/atoms/skeleton/skeleton.js +33 -0
- package/dist/ui/atoms/skeleton/skeleton.js.map +1 -0
- package/dist/ui/atoms/table/index.d.ts +2 -0
- package/dist/ui/atoms/table/index.d.ts.map +1 -0
- package/dist/ui/atoms/table/index.js +3 -0
- package/dist/ui/atoms/table/index.js.map +1 -0
- package/dist/ui/atoms/table/table.d.ts +30 -0
- package/dist/ui/atoms/table/table.d.ts.map +1 -0
- package/dist/ui/atoms/table/table.js +84 -0
- package/dist/ui/atoms/table/table.js.map +1 -0
- package/dist/ui/atoms/text/index.d.ts +2 -0
- package/dist/ui/atoms/text/index.d.ts.map +1 -0
- package/dist/ui/atoms/text/index.js +3 -0
- package/dist/ui/atoms/text/index.js.map +1 -0
- package/dist/ui/atoms/text/text.d.ts +86 -0
- package/dist/ui/atoms/text/text.d.ts.map +1 -0
- package/dist/ui/atoms/text/text.js +221 -0
- package/dist/ui/atoms/text/text.js.map +1 -0
- package/dist/ui/layout/_demo.d.ts +6 -0
- package/dist/ui/layout/_demo.d.ts.map +1 -0
- package/dist/ui/layout/_demo.js +11 -0
- package/dist/ui/layout/_demo.js.map +1 -0
- package/dist/ui/layout/_shared.d.ts +9 -0
- package/dist/ui/layout/_shared.d.ts.map +1 -0
- package/dist/ui/layout/_shared.js +30 -0
- package/dist/ui/layout/_shared.js.map +1 -0
- package/dist/ui/layout/box/box.d.ts +10 -0
- package/dist/ui/layout/box/box.d.ts.map +1 -0
- package/dist/ui/layout/box/box.js +28 -0
- package/dist/ui/layout/box/box.js.map +1 -0
- package/dist/ui/layout/box/index.d.ts +2 -0
- package/dist/ui/layout/box/index.d.ts.map +1 -0
- package/dist/ui/layout/box/index.js +3 -0
- package/dist/ui/layout/box/index.js.map +1 -0
- package/dist/ui/layout/center/center.d.ts +13 -0
- package/dist/ui/layout/center/center.d.ts.map +1 -0
- package/dist/ui/layout/center/center.js +22 -0
- package/dist/ui/layout/center/center.js.map +1 -0
- package/dist/ui/layout/center/index.d.ts +2 -0
- package/dist/ui/layout/center/index.d.ts.map +1 -0
- package/dist/ui/layout/center/index.js +3 -0
- package/dist/ui/layout/center/index.js.map +1 -0
- package/dist/ui/layout/cluster/cluster.d.ts +11 -0
- package/dist/ui/layout/cluster/cluster.d.ts.map +1 -0
- package/dist/ui/layout/cluster/cluster.js +19 -0
- package/dist/ui/layout/cluster/cluster.js.map +1 -0
- package/dist/ui/layout/cluster/index.d.ts +2 -0
- package/dist/ui/layout/cluster/index.d.ts.map +1 -0
- package/dist/ui/layout/cluster/index.js +3 -0
- package/dist/ui/layout/cluster/index.js.map +1 -0
- package/dist/ui/layout/cover/cover.d.ts +26 -0
- package/dist/ui/layout/cover/cover.d.ts.map +1 -0
- package/dist/ui/layout/cover/cover.js +57 -0
- package/dist/ui/layout/cover/cover.js.map +1 -0
- package/dist/ui/layout/cover/index.d.ts +2 -0
- package/dist/ui/layout/cover/index.d.ts.map +1 -0
- package/dist/ui/layout/cover/index.js +3 -0
- package/dist/ui/layout/cover/index.js.map +1 -0
- package/dist/ui/layout/grid/grid.d.ts +14 -0
- package/dist/ui/layout/grid/grid.d.ts.map +1 -0
- package/dist/ui/layout/grid/grid.js +25 -0
- package/dist/ui/layout/grid/grid.js.map +1 -0
- package/dist/ui/layout/grid/index.d.ts +2 -0
- package/dist/ui/layout/grid/index.d.ts.map +1 -0
- package/dist/ui/layout/grid/index.js +3 -0
- package/dist/ui/layout/grid/index.js.map +1 -0
- package/dist/ui/layout/sidebar/index.d.ts +2 -0
- package/dist/ui/layout/sidebar/index.d.ts.map +1 -0
- package/dist/ui/layout/sidebar/index.js +3 -0
- package/dist/ui/layout/sidebar/index.js.map +1 -0
- package/dist/ui/layout/sidebar/sidebar.d.ts +33 -0
- package/dist/ui/layout/sidebar/sidebar.d.ts.map +1 -0
- package/dist/ui/layout/sidebar/sidebar.js +54 -0
- package/dist/ui/layout/sidebar/sidebar.js.map +1 -0
- package/dist/ui/layout/switcher/index.d.ts +2 -0
- package/dist/ui/layout/switcher/index.d.ts.map +1 -0
- package/dist/ui/layout/switcher/index.js +3 -0
- package/dist/ui/layout/switcher/index.js.map +1 -0
- package/dist/ui/layout/switcher/switcher.d.ts +15 -0
- package/dist/ui/layout/switcher/switcher.d.ts.map +1 -0
- package/dist/ui/layout/switcher/switcher.js +26 -0
- package/dist/ui/layout/switcher/switcher.js.map +1 -0
- package/dist/ui/molecules/breadcrumbs/breadcrumbs.d.ts +27 -0
- package/dist/ui/molecules/breadcrumbs/breadcrumbs.d.ts.map +1 -0
- package/dist/ui/molecules/breadcrumbs/breadcrumbs.js +50 -0
- package/dist/ui/molecules/breadcrumbs/breadcrumbs.js.map +1 -0
- package/dist/ui/molecules/breadcrumbs/index.d.ts +2 -0
- package/dist/ui/molecules/breadcrumbs/index.d.ts.map +1 -0
- package/dist/ui/molecules/breadcrumbs/index.js +3 -0
- package/dist/ui/molecules/breadcrumbs/index.js.map +1 -0
- package/dist/ui/molecules/bulk-action-bar/bulk-action-bar.d.ts +47 -0
- package/dist/ui/molecules/bulk-action-bar/bulk-action-bar.d.ts.map +1 -0
- package/dist/ui/molecules/bulk-action-bar/bulk-action-bar.js +63 -0
- package/dist/ui/molecules/bulk-action-bar/bulk-action-bar.js.map +1 -0
- package/dist/ui/molecules/bulk-action-bar/index.d.ts +2 -0
- package/dist/ui/molecules/bulk-action-bar/index.d.ts.map +1 -0
- package/dist/ui/molecules/bulk-action-bar/index.js +3 -0
- package/dist/ui/molecules/bulk-action-bar/index.js.map +1 -0
- package/dist/ui/molecules/bulk-result/bulk-result.d.ts +31 -0
- package/dist/ui/molecules/bulk-result/bulk-result.d.ts.map +1 -0
- package/dist/ui/molecules/bulk-result/bulk-result.js +86 -0
- package/dist/ui/molecules/bulk-result/bulk-result.js.map +1 -0
- package/dist/ui/molecules/bulk-result/index.d.ts +2 -0
- package/dist/ui/molecules/bulk-result/index.d.ts.map +1 -0
- package/dist/ui/molecules/bulk-result/index.js +3 -0
- package/dist/ui/molecules/bulk-result/index.js.map +1 -0
- package/dist/ui/molecules/card/card.d.ts +5 -0
- package/dist/ui/molecules/card/card.d.ts.map +1 -0
- package/dist/ui/molecules/card/card.js +14 -0
- package/dist/ui/molecules/card/card.js.map +1 -0
- package/dist/ui/molecules/card/index.d.ts +2 -0
- package/dist/ui/molecules/card/index.d.ts.map +1 -0
- package/dist/ui/molecules/card/index.js +3 -0
- package/dist/ui/molecules/card/index.js.map +1 -0
- package/dist/ui/molecules/column-settings/column-settings.d.ts +29 -0
- package/dist/ui/molecules/column-settings/column-settings.d.ts.map +1 -0
- package/dist/ui/molecules/column-settings/column-settings.js +117 -0
- package/dist/ui/molecules/column-settings/column-settings.js.map +1 -0
- package/dist/ui/molecules/column-settings/index.d.ts +2 -0
- package/dist/ui/molecules/column-settings/index.d.ts.map +1 -0
- package/dist/ui/molecules/column-settings/index.js +3 -0
- package/dist/ui/molecules/column-settings/index.js.map +1 -0
- package/dist/ui/molecules/confirm-dialog/confirm-dialog.d.ts +31 -0
- package/dist/ui/molecules/confirm-dialog/confirm-dialog.d.ts.map +1 -0
- package/dist/ui/molecules/confirm-dialog/confirm-dialog.js +68 -0
- package/dist/ui/molecules/confirm-dialog/confirm-dialog.js.map +1 -0
- package/dist/ui/molecules/confirm-dialog/index.d.ts +2 -0
- package/dist/ui/molecules/confirm-dialog/index.d.ts.map +1 -0
- package/dist/ui/molecules/confirm-dialog/index.js +3 -0
- package/dist/ui/molecules/confirm-dialog/index.js.map +1 -0
- package/dist/ui/molecules/drawer/drawer.d.ts +25 -0
- package/dist/ui/molecules/drawer/drawer.d.ts.map +1 -0
- package/dist/ui/molecules/drawer/drawer.js +60 -0
- package/dist/ui/molecules/drawer/drawer.js.map +1 -0
- package/dist/ui/molecules/drawer/index.d.ts +2 -0
- package/dist/ui/molecules/drawer/index.d.ts.map +1 -0
- package/dist/ui/molecules/drawer/index.js +3 -0
- package/dist/ui/molecules/drawer/index.js.map +1 -0
- package/dist/ui/molecules/entity-link-input/entity-link-input.d.ts +36 -0
- package/dist/ui/molecules/entity-link-input/entity-link-input.d.ts.map +1 -0
- package/dist/ui/molecules/entity-link-input/entity-link-input.js +191 -0
- package/dist/ui/molecules/entity-link-input/entity-link-input.js.map +1 -0
- package/dist/ui/molecules/entity-link-input/index.d.ts +2 -0
- package/dist/ui/molecules/entity-link-input/index.d.ts.map +1 -0
- package/dist/ui/molecules/entity-link-input/index.js +3 -0
- package/dist/ui/molecules/entity-link-input/index.js.map +1 -0
- package/dist/ui/molecules/entity-link-picker/entity-link-picker.d.ts +19 -0
- package/dist/ui/molecules/entity-link-picker/entity-link-picker.d.ts.map +1 -0
- package/dist/ui/molecules/entity-link-picker/entity-link-picker.js +78 -0
- package/dist/ui/molecules/entity-link-picker/entity-link-picker.js.map +1 -0
- package/dist/ui/molecules/entity-link-picker/index.d.ts +2 -0
- package/dist/ui/molecules/entity-link-picker/index.d.ts.map +1 -0
- package/dist/ui/molecules/entity-link-picker/index.js +3 -0
- package/dist/ui/molecules/entity-link-picker/index.js.map +1 -0
- package/dist/ui/molecules/entity-record-card/entity-record-card.d.ts +30 -0
- package/dist/ui/molecules/entity-record-card/entity-record-card.d.ts.map +1 -0
- package/dist/ui/molecules/entity-record-card/entity-record-card.js +39 -0
- package/dist/ui/molecules/entity-record-card/entity-record-card.js.map +1 -0
- package/dist/ui/molecules/entity-record-card/index.d.ts +2 -0
- package/dist/ui/molecules/entity-record-card/index.d.ts.map +1 -0
- package/dist/ui/molecules/entity-record-card/index.js +3 -0
- package/dist/ui/molecules/entity-record-card/index.js.map +1 -0
- package/dist/ui/molecules/filter-builder/filter-builder.d.ts +19 -0
- package/dist/ui/molecules/filter-builder/filter-builder.d.ts.map +1 -0
- package/dist/ui/molecules/filter-builder/filter-builder.js +333 -0
- package/dist/ui/molecules/filter-builder/filter-builder.js.map +1 -0
- package/dist/ui/molecules/filter-builder/filter-operators.d.ts +20 -0
- package/dist/ui/molecules/filter-builder/filter-operators.d.ts.map +1 -0
- package/dist/ui/molecules/filter-builder/filter-operators.js +56 -0
- package/dist/ui/molecules/filter-builder/filter-operators.js.map +1 -0
- package/dist/ui/molecules/filter-builder/index.d.ts +3 -0
- package/dist/ui/molecules/filter-builder/index.d.ts.map +1 -0
- package/dist/ui/molecules/filter-builder/index.js +4 -0
- package/dist/ui/molecules/filter-builder/index.js.map +1 -0
- package/dist/ui/molecules/loading-boundary/index.d.ts +2 -0
- package/dist/ui/molecules/loading-boundary/index.d.ts.map +1 -0
- package/dist/ui/molecules/loading-boundary/index.js +3 -0
- package/dist/ui/molecules/loading-boundary/index.js.map +1 -0
- package/dist/ui/molecules/loading-boundary/loading-boundary.d.ts +27 -0
- package/dist/ui/molecules/loading-boundary/loading-boundary.d.ts.map +1 -0
- package/dist/ui/molecules/loading-boundary/loading-boundary.js +42 -0
- package/dist/ui/molecules/loading-boundary/loading-boundary.js.map +1 -0
- package/dist/ui/molecules/menu/index.d.ts +2 -0
- package/dist/ui/molecules/menu/index.d.ts.map +1 -0
- package/dist/ui/molecules/menu/index.js +3 -0
- package/dist/ui/molecules/menu/index.js.map +1 -0
- package/dist/ui/molecules/menu/menu.d.ts +37 -0
- package/dist/ui/molecules/menu/menu.d.ts.map +1 -0
- package/dist/ui/molecules/menu/menu.js +71 -0
- package/dist/ui/molecules/menu/menu.js.map +1 -0
- package/dist/ui/molecules/pagination/index.d.ts +2 -0
- package/dist/ui/molecules/pagination/index.d.ts.map +1 -0
- package/dist/ui/molecules/pagination/index.js +3 -0
- package/dist/ui/molecules/pagination/index.js.map +1 -0
- package/dist/ui/molecules/pagination/pagination.d.ts +13 -0
- package/dist/ui/molecules/pagination/pagination.d.ts.map +1 -0
- package/dist/ui/molecules/pagination/pagination.js +68 -0
- package/dist/ui/molecules/pagination/pagination.js.map +1 -0
- package/dist/ui/molecules/sort-builder/index.d.ts +2 -0
- package/dist/ui/molecules/sort-builder/index.d.ts.map +1 -0
- package/dist/ui/molecules/sort-builder/index.js +3 -0
- package/dist/ui/molecules/sort-builder/index.js.map +1 -0
- package/dist/ui/molecules/sort-builder/sort-builder.d.ts +18 -0
- package/dist/ui/molecules/sort-builder/sort-builder.d.ts.map +1 -0
- package/dist/ui/molecules/sort-builder/sort-builder.js +185 -0
- package/dist/ui/molecules/sort-builder/sort-builder.js.map +1 -0
- package/dist/ui/molecules/stack/index.d.ts +2 -0
- package/dist/ui/molecules/stack/index.d.ts.map +1 -0
- package/dist/ui/molecules/stack/index.js +3 -0
- package/dist/ui/molecules/stack/index.js.map +1 -0
- package/dist/ui/molecules/stack/stack.d.ts +12 -0
- package/dist/ui/molecules/stack/stack.d.ts.map +1 -0
- package/dist/ui/molecules/stack/stack.js +36 -0
- package/dist/ui/molecules/stack/stack.js.map +1 -0
- package/dist/ui/molecules/tab-strip/index.d.ts +2 -0
- package/dist/ui/molecules/tab-strip/index.d.ts.map +1 -0
- package/dist/ui/molecules/tab-strip/index.js +3 -0
- package/dist/ui/molecules/tab-strip/index.js.map +1 -0
- package/dist/ui/molecules/tab-strip/tab-strip.d.ts +29 -0
- package/dist/ui/molecules/tab-strip/tab-strip.d.ts.map +1 -0
- package/dist/ui/molecules/tab-strip/tab-strip.js +82 -0
- package/dist/ui/molecules/tab-strip/tab-strip.js.map +1 -0
- package/dist/ui/molecules/table-toolbar/index.d.ts +2 -0
- package/dist/ui/molecules/table-toolbar/index.d.ts.map +1 -0
- package/dist/ui/molecules/table-toolbar/index.js +3 -0
- package/dist/ui/molecules/table-toolbar/index.js.map +1 -0
- package/dist/ui/molecules/table-toolbar/table-toolbar.d.ts +13 -0
- package/dist/ui/molecules/table-toolbar/table-toolbar.d.ts.map +1 -0
- package/dist/ui/molecules/table-toolbar/table-toolbar.js +28 -0
- package/dist/ui/molecules/table-toolbar/table-toolbar.js.map +1 -0
- package/dist/ui/molecules/theme-switcher/index.d.ts +2 -0
- package/dist/ui/molecules/theme-switcher/index.d.ts.map +1 -0
- package/dist/ui/molecules/theme-switcher/index.js +3 -0
- package/dist/ui/molecules/theme-switcher/index.js.map +1 -0
- package/dist/ui/molecules/theme-switcher/theme-switcher.d.ts +6 -0
- package/dist/ui/molecules/theme-switcher/theme-switcher.d.ts.map +1 -0
- package/dist/ui/molecules/theme-switcher/theme-switcher.js +24 -0
- package/dist/ui/molecules/theme-switcher/theme-switcher.js.map +1 -0
- package/dist/ui/organisms/command-palette/command-palette.d.ts +67 -0
- package/dist/ui/organisms/command-palette/command-palette.d.ts.map +1 -0
- package/dist/ui/organisms/command-palette/command-palette.js +226 -0
- package/dist/ui/organisms/command-palette/command-palette.js.map +1 -0
- package/dist/ui/organisms/command-palette/index.d.ts +2 -0
- package/dist/ui/organisms/command-palette/index.d.ts.map +1 -0
- package/dist/ui/organisms/command-palette/index.js +3 -0
- package/dist/ui/organisms/command-palette/index.js.map +1 -0
- package/dist/ui/organisms/entity-detail-grid/entity-detail-grid.d.ts +43 -0
- package/dist/ui/organisms/entity-detail-grid/entity-detail-grid.d.ts.map +1 -0
- package/dist/ui/organisms/entity-detail-grid/entity-detail-grid.js +281 -0
- package/dist/ui/organisms/entity-detail-grid/entity-detail-grid.js.map +1 -0
- package/dist/ui/organisms/entity-detail-grid/entity-detail-grid.types.d.ts +49 -0
- package/dist/ui/organisms/entity-detail-grid/entity-detail-grid.types.d.ts.map +1 -0
- package/dist/ui/organisms/entity-detail-grid/entity-detail-grid.types.js +3 -0
- package/dist/ui/organisms/entity-detail-grid/entity-detail-grid.types.js.map +1 -0
- package/dist/ui/organisms/entity-detail-grid/index.d.ts +3 -0
- package/dist/ui/organisms/entity-detail-grid/index.d.ts.map +1 -0
- package/dist/ui/organisms/entity-detail-grid/index.js +4 -0
- package/dist/ui/organisms/entity-detail-grid/index.js.map +1 -0
- package/dist/ui/organisms/entity-form/entity-form-slots.d.ts +53 -0
- package/dist/ui/organisms/entity-form/entity-form-slots.d.ts.map +1 -0
- package/dist/ui/organisms/entity-form/entity-form-slots.js +44 -0
- package/dist/ui/organisms/entity-form/entity-form-slots.js.map +1 -0
- package/dist/ui/organisms/entity-form/entity-form.d.ts +4 -0
- package/dist/ui/organisms/entity-form/entity-form.d.ts.map +1 -0
- package/dist/ui/organisms/entity-form/entity-form.js +494 -0
- package/dist/ui/organisms/entity-form/entity-form.js.map +1 -0
- package/dist/ui/organisms/entity-form/entity-form.types.d.ts +151 -0
- package/dist/ui/organisms/entity-form/entity-form.types.d.ts.map +1 -0
- package/dist/ui/organisms/entity-form/entity-form.types.js +3 -0
- package/dist/ui/organisms/entity-form/entity-form.types.js.map +1 -0
- package/dist/ui/organisms/entity-form/index.d.ts +5 -0
- package/dist/ui/organisms/entity-form/index.d.ts.map +1 -0
- package/dist/ui/organisms/entity-form/index.js +6 -0
- package/dist/ui/organisms/entity-form/index.js.map +1 -0
- package/dist/ui/organisms/entity-form/use-entity-form-fields.d.ts +13 -0
- package/dist/ui/organisms/entity-form/use-entity-form-fields.d.ts.map +1 -0
- package/dist/ui/organisms/entity-form/use-entity-form-fields.js +50 -0
- package/dist/ui/organisms/entity-form/use-entity-form-fields.js.map +1 -0
- package/dist/ui/organisms/entity-table/entity-table-slots.d.ts +55 -0
- package/dist/ui/organisms/entity-table/entity-table-slots.d.ts.map +1 -0
- package/dist/ui/organisms/entity-table/entity-table-slots.js +50 -0
- package/dist/ui/organisms/entity-table/entity-table-slots.js.map +1 -0
- package/dist/ui/organisms/entity-table/entity-table.d.ts +4 -0
- package/dist/ui/organisms/entity-table/entity-table.d.ts.map +1 -0
- package/dist/ui/organisms/entity-table/entity-table.js +529 -0
- package/dist/ui/organisms/entity-table/entity-table.js.map +1 -0
- package/dist/ui/organisms/entity-table/entity-table.types.d.ts +126 -0
- package/dist/ui/organisms/entity-table/entity-table.types.d.ts.map +1 -0
- package/dist/ui/organisms/entity-table/entity-table.types.js +3 -0
- package/dist/ui/organisms/entity-table/entity-table.types.js.map +1 -0
- package/dist/ui/organisms/entity-table/index.d.ts +5 -0
- package/dist/ui/organisms/entity-table/index.d.ts.map +1 -0
- package/dist/ui/organisms/entity-table/index.js +6 -0
- package/dist/ui/organisms/entity-table/index.js.map +1 -0
- package/dist/ui/organisms/entity-table/use-entity-table-columns.d.ts +29 -0
- package/dist/ui/organisms/entity-table/use-entity-table-columns.d.ts.map +1 -0
- package/dist/ui/organisms/entity-table/use-entity-table-columns.js +103 -0
- package/dist/ui/organisms/entity-table/use-entity-table-columns.js.map +1 -0
- package/dist/ui/organisms/top-bar/index.d.ts +2 -0
- package/dist/ui/organisms/top-bar/index.d.ts.map +1 -0
- package/dist/ui/organisms/top-bar/index.js +3 -0
- package/dist/ui/organisms/top-bar/index.js.map +1 -0
- package/dist/ui/organisms/top-bar/top-bar.d.ts +20 -0
- package/dist/ui/organisms/top-bar/top-bar.d.ts.map +1 -0
- package/dist/ui/organisms/top-bar/top-bar.js +43 -0
- package/dist/ui/organisms/top-bar/top-bar.js.map +1 -0
- package/dist/ui/organisms/wizard/index.d.ts +3 -0
- package/dist/ui/organisms/wizard/index.d.ts.map +1 -0
- package/dist/ui/organisms/wizard/index.js +4 -0
- package/dist/ui/organisms/wizard/index.js.map +1 -0
- package/dist/ui/organisms/wizard/wizard.d.ts +21 -0
- package/dist/ui/organisms/wizard/wizard.d.ts.map +1 -0
- package/dist/ui/organisms/wizard/wizard.js +260 -0
- package/dist/ui/organisms/wizard/wizard.js.map +1 -0
- package/dist/ui/organisms/wizard/wizard.types.d.ts +83 -0
- package/dist/ui/organisms/wizard/wizard.types.d.ts.map +1 -0
- package/dist/ui/organisms/wizard/wizard.types.js +3 -0
- package/dist/ui/organisms/wizard/wizard.types.js.map +1 -0
- package/dist/ui/utils/cn.d.ts +4 -0
- package/dist/ui/utils/cn.d.ts.map +1 -0
- package/dist/ui/utils/cn.js +5 -0
- package/dist/ui/utils/cn.js.map +1 -0
- package/dist/ui/utils/use-hotkey.d.ts +31 -0
- package/dist/ui/utils/use-hotkey.d.ts.map +1 -0
- package/dist/ui/utils/use-hotkey.js +69 -0
- package/dist/ui/utils/use-hotkey.js.map +1 -0
- package/package.json +118 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { _ as _extends } from "@swc/helpers/_/_extends";
|
|
3
|
+
import { _ as _object_without_properties_loose } from "@swc/helpers/_/_object_without_properties_loose";
|
|
4
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { useEnumLabel } from '../../../i18n/index.js';
|
|
6
|
+
import { Checkbox, Select, TextInput } from '../field/index.js';
|
|
7
|
+
/** Native input type for the text-like controls; text is the default. */ const INPUT_TYPE = {
|
|
8
|
+
number: 'number',
|
|
9
|
+
date: 'date'
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* The edit-mode inverse of {@link CellValue}: it turns one metadata descriptor
|
|
13
|
+
* into the input that edits it. Centralizing the type→control choice is what
|
|
14
|
+
* lets a form stay generic, the same way `CellValue` keeps a table generic.
|
|
15
|
+
*
|
|
16
|
+
* A relation (`link`/`linkCollection`) is rendered read-only here, deliberately:
|
|
17
|
+
* editing one needs a picker that can search and page the target, which is a
|
|
18
|
+
* different control with different dependencies. So this atom stays a pure
|
|
19
|
+
* type→input map and a relation never falls back to a broken text box.
|
|
20
|
+
*
|
|
21
|
+
* For a to-one `link` that is only half the story — `EntityForm` wires the
|
|
22
|
+
* picker in one level up from its `linkSources`, so the member does get an
|
|
23
|
+
* editor, just not from here. A `linkCollection` has no editor anywhere yet
|
|
24
|
+
* (#26), and read-only is all it gets. A `composition` is the same: its rows
|
|
25
|
+
* need a detail grid (#122), and a text box holding `[object Object]` would be
|
|
26
|
+
* strictly worse than an honest disabled field.
|
|
27
|
+
*
|
|
28
|
+
* A `scalarCollection` is the exception among the collections and falls through
|
|
29
|
+
* to the plain text input on purpose: a `string[]` has a lossless comma form,
|
|
30
|
+
* so the draft it round-trips through *is* editable text. Splitting on the
|
|
31
|
+
* comma is `reconstructEntity`'s half of that same contract.
|
|
32
|
+
*/ export function FieldControl(_0) {
|
|
33
|
+
let { descriptor, value, onChange, id } = _0, aria = _object_without_properties_loose(_0, [
|
|
34
|
+
"descriptor",
|
|
35
|
+
"value",
|
|
36
|
+
"onChange",
|
|
37
|
+
"id"
|
|
38
|
+
]);
|
|
39
|
+
var _INPUT_TYPE_descriptor_type;
|
|
40
|
+
const enumLabel = useEnumLabel();
|
|
41
|
+
const disabled = descriptor.readonly || descriptor.type === 'link' || descriptor.type === 'linkCollection' || descriptor.type === 'composition';
|
|
42
|
+
if (descriptor.type === 'boolean') {
|
|
43
|
+
return /*#__PURE__*/ _jsx(Checkbox, _extends({
|
|
44
|
+
id: id
|
|
45
|
+
}, aria, {
|
|
46
|
+
label: descriptor.label,
|
|
47
|
+
checked: value === 'true',
|
|
48
|
+
disabled: disabled,
|
|
49
|
+
onChange: (event)=>onChange(String(event.currentTarget.checked))
|
|
50
|
+
}));
|
|
51
|
+
}
|
|
52
|
+
if (descriptor.type === 'enum') {
|
|
53
|
+
var _descriptor_enumValues;
|
|
54
|
+
return /*#__PURE__*/ _jsxs(Select, _extends({
|
|
55
|
+
id: id
|
|
56
|
+
}, aria, {
|
|
57
|
+
value: value,
|
|
58
|
+
disabled: disabled,
|
|
59
|
+
onChange: (event)=>onChange(event.currentTarget.value),
|
|
60
|
+
children: [
|
|
61
|
+
/*#__PURE__*/ _jsx("option", {
|
|
62
|
+
value: "",
|
|
63
|
+
children: "—"
|
|
64
|
+
}),
|
|
65
|
+
((_descriptor_enumValues = descriptor.enumValues) != null ? _descriptor_enumValues : []).map((option)=>/*#__PURE__*/ _jsx("option", {
|
|
66
|
+
value: option,
|
|
67
|
+
children: enumLabel(descriptor, option)
|
|
68
|
+
}, option))
|
|
69
|
+
]
|
|
70
|
+
}));
|
|
71
|
+
}
|
|
72
|
+
return /*#__PURE__*/ _jsx(TextInput, _extends({
|
|
73
|
+
id: id
|
|
74
|
+
}, aria, {
|
|
75
|
+
type: (_INPUT_TYPE_descriptor_type = INPUT_TYPE[descriptor.type]) != null ? _INPUT_TYPE_descriptor_type : 'text',
|
|
76
|
+
value: value,
|
|
77
|
+
disabled: disabled,
|
|
78
|
+
onChange: (event)=>onChange(event.currentTarget.value)
|
|
79
|
+
}));
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
//# sourceMappingURL=field-control.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/ui/atoms/field-control/field-control.tsx"],"sourcesContent":["'use client';\n\nimport type { EntityFieldDescriptor, MetaAccessorType } from '@entifix/core';\n\nimport { useEnumLabel } from '../../../i18n/index.js';\nimport { Checkbox, Select, TextInput } from '../field/index.js';\n\nexport interface FieldControlProps {\n descriptor: EntityFieldDescriptor;\n /**\n * ARIA wiring the caller owns, because only the caller knows the shape it is\n * rendered into.\n *\n * A form labels its control with a `<label for>` and needs none of this; a\n * detail grid's cell has no label of its own — the column header is the\n * label, and the cell's message is the description — so it points at both by\n * id. Passing them through here rather than duplicating the type→input map\n * in the grid is what keeps one control deciding what a `date` member looks\n * like.\n */\n 'aria-labelledby'?: string;\n 'aria-describedby'?: string;\n 'aria-invalid'?: boolean;\n /**\n * The draft value as a string — the shape a native input round-trips. A form\n * holds its whole draft as `Record<string, string>` and reconstructs typed\n * values only at submit, so the control never sees a domain value.\n */\n value: string;\n onChange: (value: string) => void;\n id?: string;\n}\n\n/** Native input type for the text-like controls; text is the default. */\nconst INPUT_TYPE: Partial<Record<MetaAccessorType, string>> = {\n number: 'number',\n date: 'date',\n};\n\n/**\n * The edit-mode inverse of {@link CellValue}: it turns one metadata descriptor\n * into the input that edits it. Centralizing the type→control choice is what\n * lets a form stay generic, the same way `CellValue` keeps a table generic.\n *\n * A relation (`link`/`linkCollection`) is rendered read-only here, deliberately:\n * editing one needs a picker that can search and page the target, which is a\n * different control with different dependencies. So this atom stays a pure\n * type→input map and a relation never falls back to a broken text box.\n *\n * For a to-one `link` that is only half the story — `EntityForm` wires the\n * picker in one level up from its `linkSources`, so the member does get an\n * editor, just not from here. A `linkCollection` has no editor anywhere yet\n * (#26), and read-only is all it gets. A `composition` is the same: its rows\n * need a detail grid (#122), and a text box holding `[object Object]` would be\n * strictly worse than an honest disabled field.\n *\n * A `scalarCollection` is the exception among the collections and falls through\n * to the plain text input on purpose: a `string[]` has a lossless comma form,\n * so the draft it round-trips through *is* editable text. Splitting on the\n * comma is `reconstructEntity`'s half of that same contract.\n */\nexport function FieldControl({\n descriptor,\n value,\n onChange,\n id,\n ...aria\n}: FieldControlProps) {\n const enumLabel = useEnumLabel();\n const disabled =\n descriptor.readonly ||\n descriptor.type === 'link' ||\n descriptor.type === 'linkCollection' ||\n descriptor.type === 'composition';\n\n if (descriptor.type === 'boolean') {\n return (\n <Checkbox\n id={id}\n {...aria}\n label={descriptor.label}\n checked={value === 'true'}\n disabled={disabled}\n onChange={event => onChange(String(event.currentTarget.checked))}\n />\n );\n }\n\n if (descriptor.type === 'enum') {\n return (\n <Select\n id={id}\n {...aria}\n value={value}\n disabled={disabled}\n onChange={event => onChange(event.currentTarget.value)}\n >\n <option value=\"\">—</option>\n {(descriptor.enumValues ?? []).map(option => (\n <option key={option} value={option}>\n {enumLabel(descriptor, option)}\n </option>\n ))}\n </Select>\n );\n }\n\n return (\n <TextInput\n id={id}\n {...aria}\n type={INPUT_TYPE[descriptor.type] ?? 'text'}\n value={value}\n disabled={disabled}\n onChange={event => onChange(event.currentTarget.value)}\n />\n );\n}\n"],"names":["useEnumLabel","Checkbox","Select","TextInput","INPUT_TYPE","number","date","FieldControl","descriptor","value","onChange","id","aria","enumLabel","disabled","readonly","type","label","checked","event","String","currentTarget","option","enumValues","map"],"mappings":"AAAA;;;;AAIA,SAASA,YAAY,QAAQ,yBAAyB;AACtD,SAASC,QAAQ,EAAEC,MAAM,EAAEC,SAAS,QAAQ,oBAAoB;AA4BhE,uEAAuE,GACvE,MAAMC,aAAwD;IAC5DC,QAAQ;IACRC,MAAM;AACR;AAEA;;;;;;;;;;;;;;;;;;;;;CAqBC,GACD,OAAO,SAASC,aAAa,EAMT;QANS,EAC3BC,UAAU,EACVC,KAAK,EACLC,QAAQ,EACRC,EAAE,EAEgB,OADfC;;;;;;QA6COR;IA3CV,MAAMS,YAAYb;IAClB,MAAMc,WACJN,WAAWO,QAAQ,IACnBP,WAAWQ,IAAI,KAAK,UACpBR,WAAWQ,IAAI,KAAK,oBACpBR,WAAWQ,IAAI,KAAK;IAEtB,IAAIR,WAAWQ,IAAI,KAAK,WAAW;QACjC,qBACE,KAACf;YACCU,IAAIA;WACAC;YACJK,OAAOT,WAAWS,KAAK;YACvBC,SAAST,UAAU;YACnBK,UAAUA;YACVJ,UAAUS,CAAAA,QAAST,SAASU,OAAOD,MAAME,aAAa,CAACH,OAAO;;IAGpE;IAEA,IAAIV,WAAWQ,IAAI,KAAK,QAAQ;YAUxBR;QATN,qBACE,MAACN;YACCS,IAAIA;WACAC;YACJH,OAAOA;YACPK,UAAUA;YACVJ,UAAUS,CAAAA,QAAST,SAASS,MAAME,aAAa,CAACZ,KAAK;;8BAErD,KAACa;oBAAOb,OAAM;8BAAG;;gBAChB,EAACD,yBAAAA,WAAWe,UAAU,YAArBf,yBAAyB,EAAE,EAAEgB,GAAG,CAACF,CAAAA,uBACjC,KAACA;wBAAoBb,OAAOa;kCACzBT,UAAUL,YAAYc;uBADZA;;;IAMrB;IAEA,qBACE,KAACnB;QACCQ,IAAIA;OACAC;QACJI,IAAI,GAAEZ,8BAAAA,UAAU,CAACI,WAAWQ,IAAI,CAAC,YAA3BZ,8BAA+B;QACrCK,OAAOA;QACPK,UAAUA;QACVJ,UAAUS,CAAAA,QAAST,SAASS,MAAME,aAAa,CAACZ,KAAK;;AAG3D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/atoms/field-control/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/ui/atoms/field-control/index.ts"],"sourcesContent":["export * from './field-control.js';\n"],"names":[],"mappings":"AAAA,cAAc,qBAAqB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/atoms/skeleton/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/ui/atoms/skeleton/index.ts"],"sourcesContent":["export * from './skeleton.js';\n"],"names":[],"mappings":"AAAA,cAAc,gBAAgB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export type SkeletonShape = 'line' | 'block' | 'circle';
|
|
3
|
+
export interface SkeletonProps extends ComponentPropsWithoutRef<'div'> {
|
|
4
|
+
/** `line` for text, `block` for panels, `circle` for avatars. */
|
|
5
|
+
shape?: SkeletonShape;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* A loading placeholder. Pulses to read as "content is coming", holds still for
|
|
9
|
+
* `prefers-reduced-motion`, and is `aria-hidden` so assistive tech skips it. Its
|
|
10
|
+
* dimensions come from the caller (`className` / `style`) so it matches the real
|
|
11
|
+
* content's geometry and the swap causes no layout shift.
|
|
12
|
+
*/
|
|
13
|
+
export declare function Skeleton({ shape, className, ...props }: SkeletonProps): import("react").JSX.Element;
|
|
14
|
+
export interface SkeletonTextProps {
|
|
15
|
+
/** Number of shimmer lines; the last is shortened like a paragraph end. */
|
|
16
|
+
lines?: number;
|
|
17
|
+
className?: string;
|
|
18
|
+
}
|
|
19
|
+
/** A stack of line skeletons standing in for a block of text. */
|
|
20
|
+
export declare function SkeletonText({ lines, className }: SkeletonTextProps): import("react").JSX.Element;
|
|
21
|
+
//# sourceMappingURL=skeleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../../src/ui/atoms/skeleton/skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAItD,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;AAExD,MAAM,WAAW,aAAc,SAAQ,wBAAwB,CAAC,KAAK,CAAC;IACpE,iEAAiE;IACjE,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,EACvB,KAAe,EACf,SAAS,EACT,GAAG,KAAK,EACT,EAAE,aAAa,+BAef;AAED,MAAM,WAAW,iBAAiB;IAChC,2EAA2E;IAC3E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,iEAAiE;AACjE,wBAAgB,YAAY,CAAC,EAAE,KAAS,EAAE,SAAS,EAAE,EAAE,iBAAiB,+BAYvE"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { _ as _extends } from "@swc/helpers/_/_extends";
|
|
2
|
+
import { _ as _object_without_properties_loose } from "@swc/helpers/_/_object_without_properties_loose";
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
import { cn } from '../../utils/cn.js';
|
|
5
|
+
/**
|
|
6
|
+
* A loading placeholder. Pulses to read as "content is coming", holds still for
|
|
7
|
+
* `prefers-reduced-motion`, and is `aria-hidden` so assistive tech skips it. Its
|
|
8
|
+
* dimensions come from the caller (`className` / `style`) so it matches the real
|
|
9
|
+
* content's geometry and the swap causes no layout shift.
|
|
10
|
+
*/ export function Skeleton(_0) {
|
|
11
|
+
let { shape = 'block', className } = _0, props = _object_without_properties_loose(_0, [
|
|
12
|
+
"shape",
|
|
13
|
+
"className"
|
|
14
|
+
]);
|
|
15
|
+
return /*#__PURE__*/ _jsx("div", _extends({
|
|
16
|
+
"aria-hidden": "true",
|
|
17
|
+
"data-testid": "skeleton",
|
|
18
|
+
className: cn('animate-pulse bg-border/60 motion-reduce:animate-none', shape === 'line' && 'h-[1em] rounded-full', shape === 'block' && 'rounded-md', shape === 'circle' && 'aspect-square rounded-full', className)
|
|
19
|
+
}, props));
|
|
20
|
+
}
|
|
21
|
+
/** A stack of line skeletons standing in for a block of text. */ export function SkeletonText({ lines = 3, className }) {
|
|
22
|
+
return /*#__PURE__*/ _jsx("div", {
|
|
23
|
+
className: cn('flex flex-col gap-2xs', className),
|
|
24
|
+
children: Array.from({
|
|
25
|
+
length: lines
|
|
26
|
+
}, (_, index)=>/*#__PURE__*/ _jsx(Skeleton, {
|
|
27
|
+
shape: "line",
|
|
28
|
+
className: index === lines - 1 ? 'w-2/3' : 'w-full'
|
|
29
|
+
}, index))
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=skeleton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/ui/atoms/skeleton/skeleton.tsx"],"sourcesContent":["import type { ComponentPropsWithoutRef } from 'react';\n\nimport { cn } from '../../utils/cn.js';\n\nexport type SkeletonShape = 'line' | 'block' | 'circle';\n\nexport interface SkeletonProps extends ComponentPropsWithoutRef<'div'> {\n /** `line` for text, `block` for panels, `circle` for avatars. */\n shape?: SkeletonShape;\n}\n\n/**\n * A loading placeholder. Pulses to read as \"content is coming\", holds still for\n * `prefers-reduced-motion`, and is `aria-hidden` so assistive tech skips it. Its\n * dimensions come from the caller (`className` / `style`) so it matches the real\n * content's geometry and the swap causes no layout shift.\n */\nexport function Skeleton({\n shape = 'block',\n className,\n ...props\n}: SkeletonProps) {\n return (\n <div\n aria-hidden=\"true\"\n data-testid=\"skeleton\"\n className={cn(\n 'animate-pulse bg-border/60 motion-reduce:animate-none',\n shape === 'line' && 'h-[1em] rounded-full',\n shape === 'block' && 'rounded-md',\n shape === 'circle' && 'aspect-square rounded-full',\n className,\n )}\n {...props}\n />\n );\n}\n\nexport interface SkeletonTextProps {\n /** Number of shimmer lines; the last is shortened like a paragraph end. */\n lines?: number;\n className?: string;\n}\n\n/** A stack of line skeletons standing in for a block of text. */\nexport function SkeletonText({ lines = 3, className }: SkeletonTextProps) {\n return (\n <div className={cn('flex flex-col gap-2xs', className)}>\n {Array.from({ length: lines }, (_, index) => (\n <Skeleton\n key={index}\n shape=\"line\"\n className={index === lines - 1 ? 'w-2/3' : 'w-full'}\n />\n ))}\n </div>\n );\n}\n"],"names":["cn","Skeleton","shape","className","props","div","aria-hidden","data-testid","SkeletonText","lines","Array","from","length","_","index"],"mappings":";;;AAEA,SAASA,EAAE,QAAQ,oBAAoB;AASvC;;;;;CAKC,GACD,OAAO,SAASC,SAAS,EAIT;QAJS,EACvBC,QAAQ,OAAO,EACfC,SAAS,EAEK,OADXC;;;;IAEH,qBACE,KAACC;QACCC,eAAY;QACZC,eAAY;QACZJ,WAAWH,GACT,yDACAE,UAAU,UAAU,wBACpBA,UAAU,WAAW,cACrBA,UAAU,YAAY,8BACtBC;OAEEC;AAGV;AAQA,+DAA+D,GAC/D,OAAO,SAASI,aAAa,EAAEC,QAAQ,CAAC,EAAEN,SAAS,EAAqB;IACtE,qBACE,KAACE;QAAIF,WAAWH,GAAG,yBAAyBG;kBACzCO,MAAMC,IAAI,CAAC;YAAEC,QAAQH;QAAM,GAAG,CAACI,GAAGC,sBACjC,KAACb;gBAECC,OAAM;gBACNC,WAAWW,UAAUL,QAAQ,IAAI,UAAU;eAFtCK;;AAOf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/atoms/table/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/ui/atoms/table/index.ts"],"sourcesContent":["export * from './table.js';\n"],"names":[],"mappings":"AAAA,cAAc,aAAa"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export interface TableProps extends ComponentPropsWithoutRef<'table'> {
|
|
3
|
+
/** Class names for the scroll container wrapping the `<table>`. */
|
|
4
|
+
containerClassName?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Styled table primitive — no entity knowledge, no data fetching. `EntityTable`
|
|
8
|
+
* composes these; anything rendering non-entity tabular data can use them too.
|
|
9
|
+
*
|
|
10
|
+
* Wide tables scroll inside their own container rather than pushing the page
|
|
11
|
+
* sideways.
|
|
12
|
+
*/
|
|
13
|
+
export declare function Table({ className, containerClassName, ...props }: TableProps): import("react").JSX.Element;
|
|
14
|
+
export declare function TableHead({ className, ...props }: ComponentPropsWithoutRef<'thead'>): import("react").JSX.Element;
|
|
15
|
+
export declare function TableBody({ className, ...props }: ComponentPropsWithoutRef<'tbody'>): import("react").JSX.Element;
|
|
16
|
+
export declare function TableRow({ className, ...props }: ComponentPropsWithoutRef<'tr'>): import("react").JSX.Element;
|
|
17
|
+
export type TableCellAlign = 'start' | 'center' | 'end';
|
|
18
|
+
export interface TableHeaderCellProps extends Omit<ComponentPropsWithoutRef<'th'>, 'align'> {
|
|
19
|
+
align?: TableCellAlign;
|
|
20
|
+
}
|
|
21
|
+
export declare function TableHeaderCell({ align, className, ...props }: TableHeaderCellProps): import("react").JSX.Element;
|
|
22
|
+
export interface TableCellProps extends Omit<ComponentPropsWithoutRef<'td'>, 'align'> {
|
|
23
|
+
align?: TableCellAlign;
|
|
24
|
+
}
|
|
25
|
+
export declare function TableCell({ align, className, ...props }: TableCellProps): import("react").JSX.Element;
|
|
26
|
+
/** Full-width message row — empty results, an error, a loading state. */
|
|
27
|
+
export declare function TableMessageRow({ colSpan, className, ...props }: ComponentPropsWithoutRef<'td'> & {
|
|
28
|
+
colSpan: number;
|
|
29
|
+
}): import("react").JSX.Element;
|
|
30
|
+
//# sourceMappingURL=table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../../src/ui/atoms/table/table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAItD,MAAM,WAAW,UAAW,SAAQ,wBAAwB,CAAC,OAAO,CAAC;IACnE,mEAAmE;IACnE,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;GAMG;AACH,wBAAgB,KAAK,CAAC,EAAE,SAAS,EAAE,kBAAkB,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,+BAiB5E;AAED,wBAAgB,SAAS,CAAC,EACxB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,wBAAwB,CAAC,OAAO,CAAC,+BAOnC;AAED,wBAAgB,SAAS,CAAC,EACxB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,wBAAwB,CAAC,OAAO,CAAC,+BAInC;AAED,wBAAgB,QAAQ,CAAC,EACvB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,wBAAwB,CAAC,IAAI,CAAC,+BAUhC;AAED,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;AAUxD,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAChD,wBAAwB,CAAC,IAAI,CAAC,EAC9B,OAAO,CACR;IACC,KAAK,CAAC,EAAE,cAAc,CAAC;CACxB;AAED,wBAAgB,eAAe,CAAC,EAC9B,KAAe,EACf,SAAS,EACT,GAAG,KAAK,EACT,EAAE,oBAAoB,+BAYtB;AAED,MAAM,WAAW,cAAe,SAAQ,IAAI,CAC1C,wBAAwB,CAAC,IAAI,CAAC,EAC9B,OAAO,CACR;IACC,KAAK,CAAC,EAAE,cAAc,CAAC;CACxB;AAED,wBAAgB,SAAS,CAAC,EACxB,KAAe,EACf,SAAS,EACT,GAAG,KAAK,EACT,EAAE,cAAc,+BAOhB;AAED,yEAAyE;AACzE,wBAAgB,eAAe,CAAC,EAC9B,OAAO,EACP,SAAS,EACT,GAAG,KAAK,EACT,EAAE,wBAAwB,CAAC,IAAI,CAAC,GAAG;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,+BAatD"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { _ as _extends } from "@swc/helpers/_/_extends";
|
|
2
|
+
import { _ as _object_without_properties_loose } from "@swc/helpers/_/_object_without_properties_loose";
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
import { cn } from '../../utils/cn.js';
|
|
5
|
+
/**
|
|
6
|
+
* Styled table primitive — no entity knowledge, no data fetching. `EntityTable`
|
|
7
|
+
* composes these; anything rendering non-entity tabular data can use them too.
|
|
8
|
+
*
|
|
9
|
+
* Wide tables scroll inside their own container rather than pushing the page
|
|
10
|
+
* sideways.
|
|
11
|
+
*/ export function Table(_0) {
|
|
12
|
+
let { className, containerClassName } = _0, props = _object_without_properties_loose(_0, [
|
|
13
|
+
"className",
|
|
14
|
+
"containerClassName"
|
|
15
|
+
]);
|
|
16
|
+
return /*#__PURE__*/ _jsx("div", {
|
|
17
|
+
className: cn('w-full overflow-x-auto rounded-xl border border-border bg-surface-elevated', containerClassName),
|
|
18
|
+
children: /*#__PURE__*/ _jsx("table", _extends({
|
|
19
|
+
className: cn('w-full border-collapse text-step-0 text-content', className)
|
|
20
|
+
}, props))
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
export function TableHead(_0) {
|
|
24
|
+
let { className } = _0, props = _object_without_properties_loose(_0, [
|
|
25
|
+
"className"
|
|
26
|
+
]);
|
|
27
|
+
return /*#__PURE__*/ _jsx("thead", _extends({
|
|
28
|
+
className: cn('border-b border-border bg-surface', className)
|
|
29
|
+
}, props));
|
|
30
|
+
}
|
|
31
|
+
export function TableBody(_0) {
|
|
32
|
+
let { className } = _0, props = _object_without_properties_loose(_0, [
|
|
33
|
+
"className"
|
|
34
|
+
]);
|
|
35
|
+
return /*#__PURE__*/ _jsx("tbody", _extends({
|
|
36
|
+
className: cn('divide-y divide-border', className)
|
|
37
|
+
}, props));
|
|
38
|
+
}
|
|
39
|
+
export function TableRow(_0) {
|
|
40
|
+
let { className } = _0, props = _object_without_properties_loose(_0, [
|
|
41
|
+
"className"
|
|
42
|
+
]);
|
|
43
|
+
return /*#__PURE__*/ _jsx("tr", _extends({
|
|
44
|
+
className: cn('transition-colors duration-200 ease-smooth hover:bg-surface', className)
|
|
45
|
+
}, props));
|
|
46
|
+
}
|
|
47
|
+
const ALIGN_CLASS = {
|
|
48
|
+
start: 'text-left',
|
|
49
|
+
center: 'text-center',
|
|
50
|
+
end: 'text-right'
|
|
51
|
+
};
|
|
52
|
+
export function TableHeaderCell(_0) {
|
|
53
|
+
let { align = 'start', className } = _0, props = _object_without_properties_loose(_0, [
|
|
54
|
+
"align",
|
|
55
|
+
"className"
|
|
56
|
+
]);
|
|
57
|
+
return /*#__PURE__*/ _jsx("th", _extends({
|
|
58
|
+
scope: "col",
|
|
59
|
+
className: cn('px-s py-2xs text-step-sm font-semibold whitespace-nowrap text-content-muted', ALIGN_CLASS[align], className)
|
|
60
|
+
}, props));
|
|
61
|
+
}
|
|
62
|
+
export function TableCell(_0) {
|
|
63
|
+
let { align = 'start', className } = _0, props = _object_without_properties_loose(_0, [
|
|
64
|
+
"align",
|
|
65
|
+
"className"
|
|
66
|
+
]);
|
|
67
|
+
return /*#__PURE__*/ _jsx("td", _extends({
|
|
68
|
+
className: cn('px-s py-2xs align-middle', ALIGN_CLASS[align], className)
|
|
69
|
+
}, props));
|
|
70
|
+
}
|
|
71
|
+
/** Full-width message row — empty results, an error, a loading state. */ export function TableMessageRow(_0) {
|
|
72
|
+
let { colSpan, className } = _0, props = _object_without_properties_loose(_0, [
|
|
73
|
+
"colSpan",
|
|
74
|
+
"className"
|
|
75
|
+
]);
|
|
76
|
+
return /*#__PURE__*/ _jsx("tr", {
|
|
77
|
+
children: /*#__PURE__*/ _jsx("td", _extends({
|
|
78
|
+
colSpan: colSpan,
|
|
79
|
+
className: cn('px-s py-m text-center text-step-sm text-content-muted', className)
|
|
80
|
+
}, props))
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
//# sourceMappingURL=table.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/ui/atoms/table/table.tsx"],"sourcesContent":["import type { ComponentPropsWithoutRef } from 'react';\n\nimport { cn } from '../../utils/cn.js';\n\nexport interface TableProps extends ComponentPropsWithoutRef<'table'> {\n /** Class names for the scroll container wrapping the `<table>`. */\n containerClassName?: string;\n}\n\n/**\n * Styled table primitive — no entity knowledge, no data fetching. `EntityTable`\n * composes these; anything rendering non-entity tabular data can use them too.\n *\n * Wide tables scroll inside their own container rather than pushing the page\n * sideways.\n */\nexport function Table({ className, containerClassName, ...props }: TableProps) {\n return (\n <div\n className={cn(\n 'w-full overflow-x-auto rounded-xl border border-border bg-surface-elevated',\n containerClassName,\n )}\n >\n <table\n className={cn(\n 'w-full border-collapse text-step-0 text-content',\n className,\n )}\n {...props}\n />\n </div>\n );\n}\n\nexport function TableHead({\n className,\n ...props\n}: ComponentPropsWithoutRef<'thead'>) {\n return (\n <thead\n className={cn('border-b border-border bg-surface', className)}\n {...props}\n />\n );\n}\n\nexport function TableBody({\n className,\n ...props\n}: ComponentPropsWithoutRef<'tbody'>) {\n return (\n <tbody className={cn('divide-y divide-border', className)} {...props} />\n );\n}\n\nexport function TableRow({\n className,\n ...props\n}: ComponentPropsWithoutRef<'tr'>) {\n return (\n <tr\n className={cn(\n 'transition-colors duration-200 ease-smooth hover:bg-surface',\n className,\n )}\n {...props}\n />\n );\n}\n\nexport type TableCellAlign = 'start' | 'center' | 'end';\n\nconst ALIGN_CLASS: Record<TableCellAlign, string> = {\n start: 'text-left',\n center: 'text-center',\n end: 'text-right',\n};\n\n// `align` shadows the deprecated HTML attribute, which allows a different set\n// of values — omit the native one rather than narrow it.\nexport interface TableHeaderCellProps extends Omit<\n ComponentPropsWithoutRef<'th'>,\n 'align'\n> {\n align?: TableCellAlign;\n}\n\nexport function TableHeaderCell({\n align = 'start',\n className,\n ...props\n}: TableHeaderCellProps) {\n return (\n <th\n scope=\"col\"\n className={cn(\n 'px-s py-2xs text-step-sm font-semibold whitespace-nowrap text-content-muted',\n ALIGN_CLASS[align],\n className,\n )}\n {...props}\n />\n );\n}\n\nexport interface TableCellProps extends Omit<\n ComponentPropsWithoutRef<'td'>,\n 'align'\n> {\n align?: TableCellAlign;\n}\n\nexport function TableCell({\n align = 'start',\n className,\n ...props\n}: TableCellProps) {\n return (\n <td\n className={cn('px-s py-2xs align-middle', ALIGN_CLASS[align], className)}\n {...props}\n />\n );\n}\n\n/** Full-width message row — empty results, an error, a loading state. */\nexport function TableMessageRow({\n colSpan,\n className,\n ...props\n}: ComponentPropsWithoutRef<'td'> & { colSpan: number }) {\n return (\n <tr>\n <td\n colSpan={colSpan}\n className={cn(\n 'px-s py-m text-center text-step-sm text-content-muted',\n className,\n )}\n {...props}\n />\n </tr>\n );\n}\n"],"names":["cn","Table","className","containerClassName","props","div","table","TableHead","thead","TableBody","tbody","TableRow","tr","ALIGN_CLASS","start","center","end","TableHeaderCell","align","th","scope","TableCell","td","TableMessageRow","colSpan"],"mappings":";;;AAEA,SAASA,EAAE,QAAQ,oBAAoB;AAOvC;;;;;;CAMC,GACD,OAAO,SAASC,MAAM,EAAuD;QAAvD,EAAEC,SAAS,EAAEC,kBAAkB,EAAwB,OAAnBC;;;;IACxD,qBACE,KAACC;QACCH,WAAWF,GACT,8EACAG;kBAGF,cAAA,KAACG;YACCJ,WAAWF,GACT,mDACAE;WAEEE;;AAIZ;AAEA,OAAO,SAASG,UAAU,EAGU;QAHV,EACxBL,SAAS,EAEyB,OAD/BE;;;IAEH,qBACE,KAACI;QACCN,WAAWF,GAAG,qCAAqCE;OAC/CE;AAGV;AAEA,OAAO,SAASK,UAAU,EAGU;QAHV,EACxBP,SAAS,EAEyB,OAD/BE;;;IAEH,qBACE,KAACM;QAAMR,WAAWF,GAAG,0BAA0BE;OAAgBE;AAEnE;AAEA,OAAO,SAASO,SAAS,EAGQ;QAHR,EACvBT,SAAS,EAEsB,OAD5BE;;;IAEH,qBACE,KAACQ;QACCV,WAAWF,GACT,+DACAE;OAEEE;AAGV;AAIA,MAAMS,cAA8C;IAClDC,OAAO;IACPC,QAAQ;IACRC,KAAK;AACP;AAWA,OAAO,SAASC,gBAAgB,EAIT;QAJS,EAC9BC,QAAQ,OAAO,EACfhB,SAAS,EAEY,OADlBE;;;;IAEH,qBACE,KAACe;QACCC,OAAM;QACNlB,WAAWF,GACT,+EACAa,WAAW,CAACK,MAAM,EAClBhB;OAEEE;AAGV;AASA,OAAO,SAASiB,UAAU,EAIT;QAJS,EACxBH,QAAQ,OAAO,EACfhB,SAAS,EAEM,OADZE;;;;IAEH,qBACE,KAACkB;QACCpB,WAAWF,GAAG,4BAA4Ba,WAAW,CAACK,MAAM,EAAEhB;OAC1DE;AAGV;AAEA,uEAAuE,GACvE,OAAO,SAASmB,gBAAgB,EAIuB;QAJvB,EAC9BC,OAAO,EACPtB,SAAS,EAE4C,OADlDE;;;;IAEH,qBACE,KAACQ;kBACC,cAAA,KAACU;YACCE,SAASA;YACTtB,WAAWF,GACT,yDACAE;WAEEE;;AAIZ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/atoms/text/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/ui/atoms/text/index.ts"],"sourcesContent":["export * from './text.js';\n"],"names":[],"mappings":"AAAA,cAAc,YAAY"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef, ElementType } from 'react';
|
|
2
|
+
/** Fluid type step (Utopia). Negatives taper below body for fine print. */
|
|
3
|
+
type Step = -2 | -1 | 0 | 1 | 2 | 3;
|
|
4
|
+
/**
|
|
5
|
+
* Three weights, and no fourth.
|
|
6
|
+
*
|
|
7
|
+
* 400 body, 500 secondary emphasis, 600 headings and labels. `bold` (700) was
|
|
8
|
+
* removed: "heading" and "emphatic heading" were never distinct roles here,
|
|
9
|
+
* only different authors — measured, `font-bold` appeared three times against
|
|
10
|
+
* `font-semibold`'s thirteen, all of them headings that had no reason to differ
|
|
11
|
+
* from their neighbours. A fourth weight comes back when a role needs it, not
|
|
12
|
+
* when a screen wants one.
|
|
13
|
+
*/
|
|
14
|
+
type Weight = 'normal' | 'medium' | 'semibold';
|
|
15
|
+
/** Semantic content color. Superset of the legacy `muted` flag. */
|
|
16
|
+
type Tone = 'default' | 'muted' | 'primary' | 'accent';
|
|
17
|
+
type Align = 'start' | 'center' | 'end';
|
|
18
|
+
/** Multi-line clamp (static classes so Tailwind can see them). */
|
|
19
|
+
type Clamp = 1 | 2 | 3 | 4;
|
|
20
|
+
export interface TextProps extends ComponentPropsWithoutRef<'p'> {
|
|
21
|
+
/** Fluid type step (Utopia). Defaults to body (0). */
|
|
22
|
+
step?: Step;
|
|
23
|
+
/** Font weight. */
|
|
24
|
+
weight?: Weight;
|
|
25
|
+
/** Semantic color. */
|
|
26
|
+
tone?: Tone;
|
|
27
|
+
/** Text alignment. */
|
|
28
|
+
align?: Align;
|
|
29
|
+
/** Truncate to a single line with an ellipsis. */
|
|
30
|
+
truncate?: boolean;
|
|
31
|
+
/** Clamp to N lines with an ellipsis. */
|
|
32
|
+
lineClamp?: Clamp;
|
|
33
|
+
/** Shortcut for `tone="muted"`. */
|
|
34
|
+
muted?: boolean;
|
|
35
|
+
as?: ElementType;
|
|
36
|
+
}
|
|
37
|
+
/** Body text with fluid sizing and theme-driven color. */
|
|
38
|
+
export declare function Text({ step, weight, tone, align, truncate, lineClamp, muted, as: Tag, className, ...props }: TextProps): import("react").JSX.Element;
|
|
39
|
+
/** Larger intro paragraph — sets a subject up before the body copy. */
|
|
40
|
+
export declare function Lead({ className, ...props }: Omit<TextProps, 'step'>): import("react").JSX.Element;
|
|
41
|
+
/** Small supporting copy (helper text, meta). */
|
|
42
|
+
export declare function Small({ className, ...props }: Omit<TextProps, 'step' | 'as'>): import("react").JSX.Element;
|
|
43
|
+
/** Caption / fine print — smallest step, muted by default. */
|
|
44
|
+
export declare function Caption({ className, ...props }: Omit<TextProps, 'step' | 'as'>): import("react").JSX.Element;
|
|
45
|
+
/** Overline / eyebrow — uppercase tracked label above a heading. */
|
|
46
|
+
export declare function Overline({ className, ...props }: Omit<TextProps, 'step' | 'as' | 'weight'>): import("react").JSX.Element;
|
|
47
|
+
/** Bold inline emphasis. */
|
|
48
|
+
export declare function Strong({ className, ...props }: ComponentPropsWithoutRef<'strong'>): import("react").JSX.Element;
|
|
49
|
+
/** Italic inline emphasis. */
|
|
50
|
+
export declare function Em({ className, ...props }: ComponentPropsWithoutRef<'em'>): import("react").JSX.Element;
|
|
51
|
+
/** Inline code. */
|
|
52
|
+
export declare function Code({ className, ...props }: ComponentPropsWithoutRef<'code'>): import("react").JSX.Element;
|
|
53
|
+
/** Keyboard key. */
|
|
54
|
+
export declare function Kbd({ className, ...props }: ComponentPropsWithoutRef<'kbd'>): import("react").JSX.Element;
|
|
55
|
+
/** Themed anchor. */
|
|
56
|
+
export declare function Link({ className, children, ...props }: ComponentPropsWithoutRef<'a'>): import("react").JSX.Element;
|
|
57
|
+
/** Pull quote — left border + muted italic body. */
|
|
58
|
+
export declare function Blockquote({ className, ...props }: ComponentPropsWithoutRef<'blockquote'>): import("react").JSX.Element;
|
|
59
|
+
export interface ListProps extends ComponentPropsWithoutRef<'ul'> {
|
|
60
|
+
/** Render an ordered list (`<ol>`) with numeric markers. */
|
|
61
|
+
ordered?: boolean;
|
|
62
|
+
}
|
|
63
|
+
/** Bulleted or numbered list with themed markers and fluid spacing. */
|
|
64
|
+
export declare function List({ ordered, className, ...props }: ListProps): import("react").JSX.Element;
|
|
65
|
+
/** List item — pairs with `List`. */
|
|
66
|
+
export declare function ListItem({ className, ...props }: ComponentPropsWithoutRef<'li'>): import("react").JSX.Element;
|
|
67
|
+
export interface HeadingProps extends ComponentPropsWithoutRef<'h2'> {
|
|
68
|
+
step?: Step;
|
|
69
|
+
weight?: Weight;
|
|
70
|
+
as?: ElementType;
|
|
71
|
+
}
|
|
72
|
+
/** Heading primitive — fluid step + weight, defaults to the largest step. */
|
|
73
|
+
export declare function Heading({ step, weight, as: Tag, className, ...props }: HeadingProps): import("react").JSX.Element;
|
|
74
|
+
/**
|
|
75
|
+
* Semantic heading components (h1–h6) mapped to the fluid type scale.
|
|
76
|
+
* Sizes taper past the four Utopia steps by dropping weight for h5/h6.
|
|
77
|
+
*/
|
|
78
|
+
export type NamedHeadingProps = Omit<HeadingProps, 'as' | 'step'>;
|
|
79
|
+
export declare function HeadingOne(props: NamedHeadingProps): import("react").JSX.Element;
|
|
80
|
+
export declare function HeadingTwo(props: NamedHeadingProps): import("react").JSX.Element;
|
|
81
|
+
export declare function HeadingThree(props: NamedHeadingProps): import("react").JSX.Element;
|
|
82
|
+
export declare function HeadingFour(props: NamedHeadingProps): import("react").JSX.Element;
|
|
83
|
+
export declare function HeadingFive(props: NamedHeadingProps): import("react").JSX.Element;
|
|
84
|
+
export declare function HeadingSix({ className, ...props }: NamedHeadingProps): import("react").JSX.Element;
|
|
85
|
+
export {};
|
|
86
|
+
//# sourceMappingURL=text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../src/ui/atoms/text/text.tsx"],"names":[],"mappings":"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"}
|