@mgamadeus/ddd-admin-ui 0.0.0-stage → 0.1.0-rc.2
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/.claude/skills/ddd-admin-ui-specialist/SKILL.md +159 -0
- package/CHANGELOG.md +33 -0
- package/LICENSE +21 -0
- package/README.md +239 -2
- package/STANDARDS.md +385 -0
- package/dist/cli/ddd-admin-ui.d.ts +3 -0
- package/dist/cli/ddd-admin-ui.d.ts.map +1 -0
- package/dist/cli/ddd-admin-ui.js +18 -0
- package/dist/cli/ddd-admin-ui.js.map +1 -0
- package/dist/cli/linkSkills.d.ts +25 -0
- package/dist/cli/linkSkills.d.ts.map +1 -0
- package/dist/cli/linkSkills.js +76 -0
- package/dist/cli/linkSkills.js.map +1 -0
- package/dist/components.css +187 -0
- package/dist/form/DrawerFooter.d.ts +18 -0
- package/dist/form/DrawerFooter.d.ts.map +1 -0
- package/dist/form/DrawerFooter.js +47 -0
- package/dist/form/DrawerFooter.js.map +1 -0
- package/dist/form/Form.d.ts +28 -0
- package/dist/form/Form.d.ts.map +1 -0
- package/dist/form/Form.js +20 -0
- package/dist/form/Form.js.map +1 -0
- package/dist/form/FormActions.d.ts +35 -0
- package/dist/form/FormActions.d.ts.map +1 -0
- package/dist/form/FormActions.js +80 -0
- package/dist/form/FormActions.js.map +1 -0
- package/dist/form/FormDrawer.d.ts +36 -0
- package/dist/form/FormDrawer.d.ts.map +1 -0
- package/dist/form/FormDrawer.js +31 -0
- package/dist/form/FormDrawer.js.map +1 -0
- package/dist/form/FormErrors.d.ts +22 -0
- package/dist/form/FormErrors.d.ts.map +1 -0
- package/dist/form/FormErrors.js +46 -0
- package/dist/form/FormErrors.js.map +1 -0
- package/dist/form/FormField.d.ts +74 -0
- package/dist/form/FormField.d.ts.map +1 -0
- package/dist/form/FormField.js +46 -0
- package/dist/form/FormField.js.map +1 -0
- package/dist/form/FormHeader.d.ts +20 -0
- package/dist/form/FormHeader.d.ts.map +1 -0
- package/dist/form/FormHeader.js +9 -0
- package/dist/form/FormHeader.js.map +1 -0
- package/dist/form/FormJumpBar.d.ts +20 -0
- package/dist/form/FormJumpBar.d.ts.map +1 -0
- package/dist/form/FormJumpBar.js +49 -0
- package/dist/form/FormJumpBar.js.map +1 -0
- package/dist/form/FormSubmitButton.d.ts +17 -0
- package/dist/form/FormSubmitButton.d.ts.map +1 -0
- package/dist/form/FormSubmitButton.js +14 -0
- package/dist/form/FormSubmitButton.js.map +1 -0
- package/dist/form/FormWrapper.d.ts +13 -0
- package/dist/form/FormWrapper.d.ts.map +1 -0
- package/dist/form/FormWrapper.js +15 -0
- package/dist/form/FormWrapper.js.map +1 -0
- package/dist/form/drawerSlots.d.ts +10 -0
- package/dist/form/drawerSlots.d.ts.map +1 -0
- package/dist/form/drawerSlots.js +7 -0
- package/dist/form/drawerSlots.js.map +1 -0
- package/dist/form/fieldLabels.d.ts +17 -0
- package/dist/form/fieldLabels.d.ts.map +1 -0
- package/dist/form/fieldLabels.js +20 -0
- package/dist/form/fieldLabels.js.map +1 -0
- package/dist/form/formPanelClasses.d.ts +3 -0
- package/dist/form/formPanelClasses.d.ts.map +1 -0
- package/dist/form/formPanelClasses.js +3 -0
- package/dist/form/formPanelClasses.js.map +1 -0
- package/dist/form/index.d.ts +58 -0
- package/dist/form/index.d.ts.map +1 -0
- package/dist/form/index.js +34 -0
- package/dist/form/index.js.map +1 -0
- package/dist/form/useConfirmDialog.d.ts +9 -0
- package/dist/form/useConfirmDialog.d.ts.map +1 -0
- package/dist/form/useConfirmDialog.js +29 -0
- package/dist/form/useConfirmDialog.js.map +1 -0
- package/dist/glass/ActionRow.d.ts +27 -0
- package/dist/glass/ActionRow.d.ts.map +1 -0
- package/dist/glass/ActionRow.js +22 -0
- package/dist/glass/ActionRow.js.map +1 -0
- package/dist/glass/CollapsibleCard.d.ts +36 -0
- package/dist/glass/CollapsibleCard.d.ts.map +1 -0
- package/dist/glass/CollapsibleCard.js +27 -0
- package/dist/glass/CollapsibleCard.js.map +1 -0
- package/dist/glass/GlassGroup.d.ts +26 -0
- package/dist/glass/GlassGroup.d.ts.map +1 -0
- package/dist/glass/GlassGroup.js +34 -0
- package/dist/glass/GlassGroup.js.map +1 -0
- package/dist/glass/GlassPill.d.ts +23 -0
- package/dist/glass/GlassPill.d.ts.map +1 -0
- package/dist/glass/GlassPill.js +20 -0
- package/dist/glass/GlassPill.js.map +1 -0
- package/dist/glass/QuickFilterPills.d.ts +38 -0
- package/dist/glass/QuickFilterPills.d.ts.map +1 -0
- package/dist/glass/QuickFilterPills.js +30 -0
- package/dist/glass/QuickFilterPills.js.map +1 -0
- package/dist/glass/index.d.ts +11 -0
- package/dist/glass/index.d.ts.map +1 -0
- package/dist/glass/index.js +7 -0
- package/dist/glass/index.js.map +1 -0
- package/dist/i18n/Translate.d.ts +8 -0
- package/dist/i18n/Translate.d.ts.map +1 -0
- package/dist/i18n/Translate.js +9 -0
- package/dist/i18n/Translate.js.map +1 -0
- package/dist/i18n/format.d.ts +13 -0
- package/dist/i18n/format.d.ts.map +1 -0
- package/dist/i18n/format.js +15 -0
- package/dist/i18n/format.js.map +1 -0
- package/dist/i18n/hints.json +130 -0
- package/dist/i18n/index.d.ts +7 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/index.js +7 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/i18n/localeFormat.d.ts +10 -0
- package/dist/i18n/localeFormat.d.ts.map +1 -0
- package/dist/i18n/localeFormat.js +36 -0
- package/dist/i18n/localeFormat.js.map +1 -0
- package/dist/i18n/plural.d.ts +15 -0
- package/dist/i18n/plural.d.ts.map +1 -0
- package/dist/i18n/plural.js +95 -0
- package/dist/i18n/plural.js.map +1 -0
- package/dist/i18n/serverMessages.d.ts +26 -0
- package/dist/i18n/serverMessages.d.ts.map +1 -0
- package/dist/i18n/serverMessages.js +146 -0
- package/dist/i18n/serverMessages.js.map +1 -0
- package/dist/i18n/store.d.ts +36 -0
- package/dist/i18n/store.d.ts.map +1 -0
- package/dist/i18n/store.js +36 -0
- package/dist/i18n/store.js.map +1 -0
- package/dist/i18n/useTranslate.d.ts +17 -0
- package/dist/i18n/useTranslate.d.ts.map +1 -0
- package/dist/i18n/useTranslate.js +22 -0
- package/dist/i18n/useTranslate.js.map +1 -0
- package/dist/i18n-keys.json +1069 -0
- package/dist/list/ChipToggleGroup.d.ts +36 -0
- package/dist/list/ChipToggleGroup.d.ts.map +1 -0
- package/dist/list/ChipToggleGroup.js +34 -0
- package/dist/list/ChipToggleGroup.js.map +1 -0
- package/dist/list/Combobox.d.ts +32 -0
- package/dist/list/Combobox.d.ts.map +1 -0
- package/dist/list/Combobox.js +27 -0
- package/dist/list/Combobox.js.map +1 -0
- package/dist/list/EmptyValue.d.ts +14 -0
- package/dist/list/EmptyValue.d.ts.map +1 -0
- package/dist/list/EmptyValue.js +11 -0
- package/dist/list/EmptyValue.js.map +1 -0
- package/dist/list/EntityListBody.d.ts +27 -0
- package/dist/list/EntityListBody.d.ts.map +1 -0
- package/dist/list/EntityListBody.js +24 -0
- package/dist/list/EntityListBody.js.map +1 -0
- package/dist/list/EntityListBulkBar.d.ts +38 -0
- package/dist/list/EntityListBulkBar.d.ts.map +1 -0
- package/dist/list/EntityListBulkBar.js +19 -0
- package/dist/list/EntityListBulkBar.js.map +1 -0
- package/dist/list/EntityListCard.d.ts +22 -0
- package/dist/list/EntityListCard.d.ts.map +1 -0
- package/dist/list/EntityListCard.js +15 -0
- package/dist/list/EntityListCard.js.map +1 -0
- package/dist/list/EntityListEmpty.d.ts +13 -0
- package/dist/list/EntityListEmpty.d.ts.map +1 -0
- package/dist/list/EntityListEmpty.js +11 -0
- package/dist/list/EntityListEmpty.js.map +1 -0
- package/dist/list/EntityListGrid.d.ts +29 -0
- package/dist/list/EntityListGrid.d.ts.map +1 -0
- package/dist/list/EntityListGrid.js +21 -0
- package/dist/list/EntityListGrid.js.map +1 -0
- package/dist/list/EntityListLoadMore.d.ts +15 -0
- package/dist/list/EntityListLoadMore.d.ts.map +1 -0
- package/dist/list/EntityListLoadMore.js +27 -0
- package/dist/list/EntityListLoadMore.js.map +1 -0
- package/dist/list/EntityListStatus.d.ts +11 -0
- package/dist/list/EntityListStatus.d.ts.map +1 -0
- package/dist/list/EntityListStatus.js +22 -0
- package/dist/list/EntityListStatus.js.map +1 -0
- package/dist/list/EntityListTable.d.ts +34 -0
- package/dist/list/EntityListTable.d.ts.map +1 -0
- package/dist/list/EntityListTable.js +43 -0
- package/dist/list/EntityListTable.js.map +1 -0
- package/dist/list/EntityListToolbar.d.ts +39 -0
- package/dist/list/EntityListToolbar.d.ts.map +1 -0
- package/dist/list/EntityListToolbar.js +25 -0
- package/dist/list/EntityListToolbar.js.map +1 -0
- package/dist/list/EntityListViewToggle.d.ts +17 -0
- package/dist/list/EntityListViewToggle.d.ts.map +1 -0
- package/dist/list/EntityListViewToggle.js +38 -0
- package/dist/list/EntityListViewToggle.js.map +1 -0
- package/dist/list/MultiSelect.d.ts +33 -0
- package/dist/list/MultiSelect.d.ts.map +1 -0
- package/dist/list/MultiSelect.js +60 -0
- package/dist/list/MultiSelect.js.map +1 -0
- package/dist/list/SearchField.d.ts +24 -0
- package/dist/list/SearchField.d.ts.map +1 -0
- package/dist/list/SearchField.js +42 -0
- package/dist/list/SearchField.js.map +1 -0
- package/dist/list/StatusBadge.d.ts +34 -0
- package/dist/list/StatusBadge.d.ts.map +1 -0
- package/dist/list/StatusBadge.js +44 -0
- package/dist/list/StatusBadge.js.map +1 -0
- package/dist/list/Tag.d.ts +16 -0
- package/dist/list/Tag.d.ts.map +1 -0
- package/dist/list/Tag.js +15 -0
- package/dist/list/Tag.js.map +1 -0
- package/dist/list/cells.d.ts +53 -0
- package/dist/list/cells.d.ts.map +1 -0
- package/dist/list/cells.js +62 -0
- package/dist/list/cells.js.map +1 -0
- package/dist/list/filterClasses.d.ts +8 -0
- package/dist/list/filterClasses.d.ts.map +1 -0
- package/dist/list/filterClasses.js +8 -0
- package/dist/list/filterClasses.js.map +1 -0
- package/dist/list/filterOptions.d.ts +7 -0
- package/dist/list/filterOptions.d.ts.map +1 -0
- package/dist/list/filterOptions.js +7 -0
- package/dist/list/filterOptions.js.map +1 -0
- package/dist/list/filters.d.ts +78 -0
- package/dist/list/filters.d.ts.map +1 -0
- package/dist/list/filters.js +54 -0
- package/dist/list/filters.js.map +1 -0
- package/dist/list/index.d.ts +89 -0
- package/dist/list/index.d.ts.map +1 -0
- package/dist/list/index.js +51 -0
- package/dist/list/index.js.map +1 -0
- package/dist/list/types.d.ts +59 -0
- package/dist/list/types.d.ts.map +1 -0
- package/dist/list/types.js +3 -0
- package/dist/list/types.js.map +1 -0
- package/dist/logic/browser/prepareImageFile.d.ts +18 -0
- package/dist/logic/browser/prepareImageFile.d.ts.map +1 -0
- package/dist/logic/browser/prepareImageFile.js +26 -0
- package/dist/logic/browser/prepareImageFile.js.map +1 -0
- package/dist/logic/index.d.ts +57 -0
- package/dist/logic/index.d.ts.map +1 -0
- package/dist/logic/index.js +39 -0
- package/dist/logic/index.js.map +1 -0
- package/dist/logic/pure/conditions.d.ts +46 -0
- package/dist/logic/pure/conditions.d.ts.map +1 -0
- package/dist/logic/pure/conditions.js +39 -0
- package/dist/logic/pure/conditions.js.map +1 -0
- package/dist/logic/pure/confirm.d.ts +19 -0
- package/dist/logic/pure/confirm.d.ts.map +1 -0
- package/dist/logic/pure/confirm.js +10 -0
- package/dist/logic/pure/confirm.js.map +1 -0
- package/dist/logic/pure/displayMode.d.ts +12 -0
- package/dist/logic/pure/displayMode.d.ts.map +1 -0
- package/dist/logic/pure/displayMode.js +11 -0
- package/dist/logic/pure/displayMode.js.map +1 -0
- package/dist/logic/pure/entityDrawer.d.ts +24 -0
- package/dist/logic/pure/entityDrawer.d.ts.map +1 -0
- package/dist/logic/pure/entityDrawer.js +3 -0
- package/dist/logic/pure/entityDrawer.js.map +1 -0
- package/dist/logic/pure/fieldPath.d.ts +9 -0
- package/dist/logic/pure/fieldPath.d.ts.map +1 -0
- package/dist/logic/pure/fieldPath.js +17 -0
- package/dist/logic/pure/fieldPath.js.map +1 -0
- package/dist/logic/pure/formValues.d.ts +14 -0
- package/dist/logic/pure/formValues.d.ts.map +1 -0
- package/dist/logic/pure/formValues.js +82 -0
- package/dist/logic/pure/formValues.js.map +1 -0
- package/dist/logic/pure/format.d.ts +15 -0
- package/dist/logic/pure/format.d.ts.map +1 -0
- package/dist/logic/pure/format.js +53 -0
- package/dist/logic/pure/format.js.map +1 -0
- package/dist/logic/pure/locales.d.ts +27 -0
- package/dist/logic/pure/locales.d.ts.map +1 -0
- package/dist/logic/pure/locales.js +50 -0
- package/dist/logic/pure/locales.js.map +1 -0
- package/dist/logic/pure/notify.d.ts +42 -0
- package/dist/logic/pure/notify.d.ts.map +1 -0
- package/dist/logic/pure/notify.js +52 -0
- package/dist/logic/pure/notify.js.map +1 -0
- package/dist/logic/pure/rowActivation.d.ts +6 -0
- package/dist/logic/pure/rowActivation.d.ts.map +1 -0
- package/dist/logic/pure/rowActivation.js +7 -0
- package/dist/logic/pure/rowActivation.js.map +1 -0
- package/dist/logic/pure/runSequential.d.ts +31 -0
- package/dist/logic/pure/runSequential.d.ts.map +1 -0
- package/dist/logic/pure/runSequential.js +47 -0
- package/dist/logic/pure/runSequential.js.map +1 -0
- package/dist/logic/pure/schemas.d.ts +14 -0
- package/dist/logic/pure/schemas.d.ts.map +1 -0
- package/dist/logic/pure/schemas.js +6 -0
- package/dist/logic/pure/schemas.js.map +1 -0
- package/dist/logic/pure/serverViolations.d.ts +35 -0
- package/dist/logic/pure/serverViolations.d.ts.map +1 -0
- package/dist/logic/pure/serverViolations.js +77 -0
- package/dist/logic/pure/serverViolations.js.map +1 -0
- package/dist/logic/pure/status.d.ts +21 -0
- package/dist/logic/pure/status.d.ts.map +1 -0
- package/dist/logic/pure/status.js +3 -0
- package/dist/logic/pure/status.js.map +1 -0
- package/dist/logic/pure/submitError.d.ts +11 -0
- package/dist/logic/pure/submitError.d.ts.map +1 -0
- package/dist/logic/pure/submitError.js +9 -0
- package/dist/logic/pure/submitError.js.map +1 -0
- package/dist/logic/pure/translationState.d.ts +29 -0
- package/dist/logic/pure/translationState.d.ts.map +1 -0
- package/dist/logic/pure/translationState.js +88 -0
- package/dist/logic/pure/translationState.js.map +1 -0
- package/dist/logic/pure/urlListState.d.ts +18 -0
- package/dist/logic/pure/urlListState.d.ts.map +1 -0
- package/dist/logic/pure/urlListState.js +3 -0
- package/dist/logic/pure/urlListState.js.map +1 -0
- package/dist/logic/react/conditionHooks.d.ts +20 -0
- package/dist/logic/react/conditionHooks.d.ts.map +1 -0
- package/dist/logic/react/conditionHooks.js +51 -0
- package/dist/logic/react/conditionHooks.js.map +1 -0
- package/dist/logic/react/useCopyToClipboard.d.ts +9 -0
- package/dist/logic/react/useCopyToClipboard.d.ts.map +1 -0
- package/dist/logic/react/useCopyToClipboard.js +28 -0
- package/dist/logic/react/useCopyToClipboard.js.map +1 -0
- package/dist/logic/react/useDebouncedValue.d.ts +3 -0
- package/dist/logic/react/useDebouncedValue.d.ts.map +1 -0
- package/dist/logic/react/useDebouncedValue.js +12 -0
- package/dist/logic/react/useDebouncedValue.js.map +1 -0
- package/dist/logic/react/useEntityDrawer.d.ts +54 -0
- package/dist/logic/react/useEntityDrawer.d.ts.map +1 -0
- package/dist/logic/react/useEntityDrawer.js +81 -0
- package/dist/logic/react/useEntityDrawer.js.map +1 -0
- package/dist/logic/react/useEntityTranslations.d.ts +57 -0
- package/dist/logic/react/useEntityTranslations.d.ts.map +1 -0
- package/dist/logic/react/useEntityTranslations.js +50 -0
- package/dist/logic/react/useEntityTranslations.js.map +1 -0
- package/dist/logic/react/useFormDirty.d.ts +15 -0
- package/dist/logic/react/useFormDirty.d.ts.map +1 -0
- package/dist/logic/react/useFormDirty.js +17 -0
- package/dist/logic/react/useFormDirty.js.map +1 -0
- package/dist/logic/react/useGrowingWindowList.d.ts +50 -0
- package/dist/logic/react/useGrowingWindowList.d.ts.map +1 -0
- package/dist/logic/react/useGrowingWindowList.js +38 -0
- package/dist/logic/react/useGrowingWindowList.js.map +1 -0
- package/dist/logic/react/useHydrated.d.ts +7 -0
- package/dist/logic/react/useHydrated.d.ts.map +1 -0
- package/dist/logic/react/useHydrated.js +12 -0
- package/dist/logic/react/useHydrated.js.map +1 -0
- package/dist/logic/react/useInfiniteScrollSentinel.d.ts +6 -0
- package/dist/logic/react/useInfiniteScrollSentinel.d.ts.map +1 -0
- package/dist/logic/react/useInfiniteScrollSentinel.js +24 -0
- package/dist/logic/react/useInfiniteScrollSentinel.js.map +1 -0
- package/dist/logic/react/useLocaleName.d.ts +3 -0
- package/dist/logic/react/useLocaleName.d.ts.map +1 -0
- package/dist/logic/react/useLocaleName.js +10 -0
- package/dist/logic/react/useLocaleName.js.map +1 -0
- package/dist/logic/react/useRowActivation.d.ts +12 -0
- package/dist/logic/react/useRowActivation.d.ts.map +1 -0
- package/dist/logic/react/useRowActivation.js +35 -0
- package/dist/logic/react/useRowActivation.js.map +1 -0
- package/dist/logic/react/useRowSelection.d.ts +40 -0
- package/dist/logic/react/useRowSelection.d.ts.map +1 -0
- package/dist/logic/react/useRowSelection.js +70 -0
- package/dist/logic/react/useRowSelection.js.map +1 -0
- package/dist/logic/react/useTranslationRunner.d.ts +27 -0
- package/dist/logic/react/useTranslationRunner.d.ts.map +1 -0
- package/dist/logic/react/useTranslationRunner.js +57 -0
- package/dist/logic/react/useTranslationRunner.js.map +1 -0
- package/dist/logic/react/useUnsavedChangesGuard.d.ts +30 -0
- package/dist/logic/react/useUnsavedChangesGuard.d.ts.map +1 -0
- package/dist/logic/react/useUnsavedChangesGuard.js +66 -0
- package/dist/logic/react/useUnsavedChangesGuard.js.map +1 -0
- package/dist/logic/react/useUrlListState.d.ts +39 -0
- package/dist/logic/react/useUrlListState.d.ts.map +1 -0
- package/dist/logic/react/useUrlListState.js +96 -0
- package/dist/logic/react/useUrlListState.js.map +1 -0
- package/dist/media/FormMediaItemField.d.ts +38 -0
- package/dist/media/FormMediaItemField.d.ts.map +1 -0
- package/dist/media/FormMediaItemField.js +35 -0
- package/dist/media/FormMediaItemField.js.map +1 -0
- package/dist/media/MediaItemField.d.ts +20 -0
- package/dist/media/MediaItemField.d.ts.map +1 -0
- package/dist/media/MediaItemField.js +15 -0
- package/dist/media/MediaItemField.js.map +1 -0
- package/dist/media/MediaItemPickerDialog.d.ts +48 -0
- package/dist/media/MediaItemPickerDialog.d.ts.map +1 -0
- package/dist/media/MediaItemPickerDialog.js +36 -0
- package/dist/media/MediaItemPickerDialog.js.map +1 -0
- package/dist/media/MediaPreview.d.ts +16 -0
- package/dist/media/MediaPreview.d.ts.map +1 -0
- package/dist/media/MediaPreview.js +20 -0
- package/dist/media/MediaPreview.js.map +1 -0
- package/dist/media/index.d.ts +18 -0
- package/dist/media/index.d.ts.map +1 -0
- package/dist/media/index.js +9 -0
- package/dist/media/index.js.map +1 -0
- package/dist/media/types.d.ts +24 -0
- package/dist/media/types.d.ts.map +1 -0
- package/dist/media/types.js +2 -0
- package/dist/media/types.js.map +1 -0
- package/dist/next/index.d.ts +8 -0
- package/dist/next/index.d.ts.map +1 -0
- package/dist/next/index.js +8 -0
- package/dist/next/index.js.map +1 -0
- package/dist/next/listViewParam.d.ts +3 -0
- package/dist/next/listViewParam.d.ts.map +1 -0
- package/dist/next/listViewParam.js +3 -0
- package/dist/next/listViewParam.js.map +1 -0
- package/dist/next/searchParamsWriter.d.ts +31 -0
- package/dist/next/searchParamsWriter.d.ts.map +1 -0
- package/dist/next/searchParamsWriter.js +87 -0
- package/dist/next/searchParamsWriter.js.map +1 -0
- package/dist/next/storage.d.ts +11 -0
- package/dist/next/storage.d.ts.map +1 -0
- package/dist/next/storage.js +34 -0
- package/dist/next/storage.js.map +1 -0
- package/dist/next/useListViewParam.d.ts +12 -0
- package/dist/next/useListViewParam.d.ts.map +1 -0
- package/dist/next/useListViewParam.js +45 -0
- package/dist/next/useListViewParam.js.map +1 -0
- package/dist/next/useNextDrawerUrlAdapter.d.ts +11 -0
- package/dist/next/useNextDrawerUrlAdapter.d.ts.map +1 -0
- package/dist/next/useNextDrawerUrlAdapter.js +28 -0
- package/dist/next/useNextDrawerUrlAdapter.js.map +1 -0
- package/dist/next/useNextUrlStateAdapter.d.ts +20 -0
- package/dist/next/useNextUrlStateAdapter.d.ts.map +1 -0
- package/dist/next/useNextUrlStateAdapter.js +28 -0
- package/dist/next/useNextUrlStateAdapter.js.map +1 -0
- package/dist/notify-sonner/Toaster.d.ts +8 -0
- package/dist/notify-sonner/Toaster.d.ts.map +1 -0
- package/dist/notify-sonner/Toaster.js +24 -0
- package/dist/notify-sonner/Toaster.js.map +1 -0
- package/dist/notify-sonner/index.d.ts +3 -0
- package/dist/notify-sonner/index.d.ts.map +1 -0
- package/dist/notify-sonner/index.js +4 -0
- package/dist/notify-sonner/index.js.map +1 -0
- package/dist/notify-sonner/sonnerNotifications.d.ts +4 -0
- package/dist/notify-sonner/sonnerNotifications.d.ts.map +1 -0
- package/dist/notify-sonner/sonnerNotifications.js +29 -0
- package/dist/notify-sonner/sonnerNotifications.js.map +1 -0
- package/dist/page/DefinitionList.d.ts +24 -0
- package/dist/page/DefinitionList.d.ts.map +1 -0
- package/dist/page/DefinitionList.js +20 -0
- package/dist/page/DefinitionList.js.map +1 -0
- package/dist/page/DetailHeader.d.ts +26 -0
- package/dist/page/DetailHeader.d.ts.map +1 -0
- package/dist/page/DetailHeader.js +14 -0
- package/dist/page/DetailHeader.js.map +1 -0
- package/dist/page/EditableCard.d.ts +39 -0
- package/dist/page/EditableCard.d.ts.map +1 -0
- package/dist/page/EditableCard.js +21 -0
- package/dist/page/EditableCard.js.map +1 -0
- package/dist/page/EntityDetailShell.d.ts +48 -0
- package/dist/page/EntityDetailShell.d.ts.map +1 -0
- package/dist/page/EntityDetailShell.js +25 -0
- package/dist/page/EntityDetailShell.js.map +1 -0
- package/dist/page/EntityListPage.d.ts +30 -0
- package/dist/page/EntityListPage.d.ts.map +1 -0
- package/dist/page/EntityListPage.js +12 -0
- package/dist/page/EntityListPage.js.map +1 -0
- package/dist/page/EntityMetadata.d.ts +21 -0
- package/dist/page/EntityMetadata.d.ts.map +1 -0
- package/dist/page/EntityMetadata.js +39 -0
- package/dist/page/EntityMetadata.js.map +1 -0
- package/dist/page/EntityTabs.d.ts +38 -0
- package/dist/page/EntityTabs.d.ts.map +1 -0
- package/dist/page/EntityTabs.js +51 -0
- package/dist/page/EntityTabs.js.map +1 -0
- package/dist/page/PageFrame.d.ts +25 -0
- package/dist/page/PageFrame.d.ts.map +1 -0
- package/dist/page/PageFrame.js +11 -0
- package/dist/page/PageFrame.js.map +1 -0
- package/dist/page/PageHeader.d.ts +27 -0
- package/dist/page/PageHeader.d.ts.map +1 -0
- package/dist/page/PageHeader.js +16 -0
- package/dist/page/PageHeader.js.map +1 -0
- package/dist/page/PageLayout.d.ts +15 -0
- package/dist/page/PageLayout.d.ts.map +1 -0
- package/dist/page/PageLayout.js +10 -0
- package/dist/page/PageLayout.js.map +1 -0
- package/dist/page/PageToolbar.d.ts +73 -0
- package/dist/page/PageToolbar.d.ts.map +1 -0
- package/dist/page/PageToolbar.js +49 -0
- package/dist/page/PageToolbar.js.map +1 -0
- package/dist/page/SectionHeader.d.ts +27 -0
- package/dist/page/SectionHeader.d.ts.map +1 -0
- package/dist/page/SectionHeader.js +14 -0
- package/dist/page/SectionHeader.js.map +1 -0
- package/dist/page/StatusCallout.d.ts +28 -0
- package/dist/page/StatusCallout.d.ts.map +1 -0
- package/dist/page/StatusCallout.js +35 -0
- package/dist/page/StatusCallout.js.map +1 -0
- package/dist/page/index.d.ts +29 -0
- package/dist/page/index.d.ts.map +1 -0
- package/dist/page/index.js +20 -0
- package/dist/page/index.js.map +1 -0
- package/dist/page/links.d.ts +18 -0
- package/dist/page/links.d.ts.map +1 -0
- package/dist/page/links.js +4 -0
- package/dist/page/links.js.map +1 -0
- package/dist/primitives/alert.d.ts +17 -0
- package/dist/primitives/alert.d.ts.map +1 -0
- package/dist/primitives/alert.js +36 -0
- package/dist/primitives/alert.js.map +1 -0
- package/dist/primitives/badge.d.ts +10 -0
- package/dist/primitives/badge.d.ts.map +1 -0
- package/dist/primitives/badge.js +30 -0
- package/dist/primitives/badge.js.map +1 -0
- package/dist/primitives/breadcrumb.d.ts +12 -0
- package/dist/primitives/breadcrumb.d.ts.map +1 -0
- package/dist/primitives/breadcrumb.js +33 -0
- package/dist/primitives/breadcrumb.js.map +1 -0
- package/dist/primitives/button.d.ts +12 -0
- package/dist/primitives/button.d.ts.map +1 -0
- package/dist/primitives/button.js +51 -0
- package/dist/primitives/button.js.map +1 -0
- package/dist/primitives/card.d.ts +10 -0
- package/dist/primitives/card.d.ts.map +1 -0
- package/dist/primitives/card.js +29 -0
- package/dist/primitives/card.js.map +1 -0
- package/dist/primitives/checkbox.d.ts +5 -0
- package/dist/primitives/checkbox.d.ts.map +1 -0
- package/dist/primitives/checkbox.js +11 -0
- package/dist/primitives/checkbox.js.map +1 -0
- package/dist/primitives/cn.d.ts +4 -0
- package/dist/primitives/cn.d.ts.map +1 -0
- package/dist/primitives/cn.js +5 -0
- package/dist/primitives/cn.js.map +1 -0
- package/dist/primitives/collapsible.d.ts +6 -0
- package/dist/primitives/collapsible.d.ts.map +1 -0
- package/dist/primitives/collapsible.js +14 -0
- package/dist/primitives/collapsible.js.map +1 -0
- package/dist/primitives/command.d.ts +19 -0
- package/dist/primitives/command.d.ts.map +1 -0
- package/dist/primitives/command.js +38 -0
- package/dist/primitives/command.js.map +1 -0
- package/dist/primitives/dialog.d.ts +18 -0
- package/dist/primitives/dialog.d.ts.map +1 -0
- package/dist/primitives/dialog.js +44 -0
- package/dist/primitives/dialog.js.map +1 -0
- package/dist/primitives/dropdown-menu.d.ts +23 -0
- package/dist/primitives/dropdown-menu.d.ts.map +1 -0
- package/dist/primitives/dropdown-menu.js +48 -0
- package/dist/primitives/dropdown-menu.js.map +1 -0
- package/dist/primitives/fieldSurface.d.ts +23 -0
- package/dist/primitives/fieldSurface.d.ts.map +1 -0
- package/dist/primitives/fieldSurface.js +23 -0
- package/dist/primitives/fieldSurface.js.map +1 -0
- package/dist/primitives/index.d.ts +26 -0
- package/dist/primitives/index.d.ts.map +1 -0
- package/dist/primitives/index.js +27 -0
- package/dist/primitives/index.js.map +1 -0
- package/dist/primitives/input.d.ts +12 -0
- package/dist/primitives/input.d.ts.map +1 -0
- package/dist/primitives/input.js +20 -0
- package/dist/primitives/input.js.map +1 -0
- package/dist/primitives/label.d.ts +5 -0
- package/dist/primitives/label.d.ts.map +1 -0
- package/dist/primitives/label.js +10 -0
- package/dist/primitives/label.js.map +1 -0
- package/dist/primitives/listSurface.d.ts +8 -0
- package/dist/primitives/listSurface.d.ts.map +1 -0
- package/dist/primitives/listSurface.js +8 -0
- package/dist/primitives/listSurface.js.map +1 -0
- package/dist/primitives/popover.d.ts +11 -0
- package/dist/primitives/popover.d.ts.map +1 -0
- package/dist/primitives/popover.js +31 -0
- package/dist/primitives/popover.js.map +1 -0
- package/dist/primitives/portal.d.ts +16 -0
- package/dist/primitives/portal.d.ts.map +1 -0
- package/dist/primitives/portal.js +9 -0
- package/dist/primitives/portal.js.map +1 -0
- package/dist/primitives/select.d.ts +21 -0
- package/dist/primitives/select.d.ts.map +1 -0
- package/dist/primitives/select.js +50 -0
- package/dist/primitives/select.js.map +1 -0
- package/dist/primitives/separator.d.ts +5 -0
- package/dist/primitives/separator.d.ts.map +1 -0
- package/dist/primitives/separator.js +10 -0
- package/dist/primitives/separator.js.map +1 -0
- package/dist/primitives/sheet.d.ts +15 -0
- package/dist/primitives/sheet.d.ts.map +1 -0
- package/dist/primitives/sheet.js +46 -0
- package/dist/primitives/sheet.js.map +1 -0
- package/dist/primitives/skeleton.d.ts +3 -0
- package/dist/primitives/skeleton.d.ts.map +1 -0
- package/dist/primitives/skeleton.js +7 -0
- package/dist/primitives/skeleton.js.map +1 -0
- package/dist/primitives/switch.d.ts +7 -0
- package/dist/primitives/switch.d.ts.map +1 -0
- package/dist/primitives/switch.js +10 -0
- package/dist/primitives/switch.js.map +1 -0
- package/dist/primitives/table.d.ts +11 -0
- package/dist/primitives/table.d.ts.map +1 -0
- package/dist/primitives/table.js +30 -0
- package/dist/primitives/table.js.map +1 -0
- package/dist/primitives/textarea.d.ts +4 -0
- package/dist/primitives/textarea.d.ts.map +1 -0
- package/dist/primitives/textarea.js +11 -0
- package/dist/primitives/textarea.js.map +1 -0
- package/dist/primitives/tooltip.d.ts +8 -0
- package/dist/primitives/tooltip.d.ts.map +1 -0
- package/dist/primitives/tooltip.js +21 -0
- package/dist/primitives/tooltip.js.map +1 -0
- package/dist/provider/AdminUiProvider.d.ts +9 -0
- package/dist/provider/AdminUiProvider.d.ts.map +1 -0
- package/dist/provider/AdminUiProvider.js +47 -0
- package/dist/provider/AdminUiProvider.js.map +1 -0
- package/dist/provider/adminUiContext.d.ts +6 -0
- package/dist/provider/adminUiContext.d.ts.map +1 -0
- package/dist/provider/adminUiContext.js +9 -0
- package/dist/provider/adminUiContext.js.map +1 -0
- package/dist/provider/index.d.ts +5 -0
- package/dist/provider/index.d.ts.map +1 -0
- package/dist/provider/index.js +5 -0
- package/dist/provider/index.js.map +1 -0
- package/dist/provider/storageKey.d.ts +4 -0
- package/dist/provider/storageKey.d.ts.map +1 -0
- package/dist/provider/storageKey.js +3 -0
- package/dist/provider/storageKey.js.map +1 -0
- package/dist/provider/types.d.ts +65 -0
- package/dist/provider/types.d.ts.map +1 -0
- package/dist/provider/types.js +2 -0
- package/dist/provider/types.js.map +1 -0
- package/dist/scripts/build-i18n-manifest.mjs +138 -0
- package/dist/scripts/check-radix.mjs +131 -0
- package/dist/scripts/check-tokens.mjs +236 -0
- package/dist/theme.css +48 -0
- package/dist/tokens.json +401 -0
- package/dist/translations/FormTranslatableFields.d.ts +30 -0
- package/dist/translations/FormTranslatableFields.d.ts.map +1 -0
- package/dist/translations/FormTranslatableFields.js +58 -0
- package/dist/translations/FormTranslatableFields.js.map +1 -0
- package/dist/translations/TranslatableField.d.ts +48 -0
- package/dist/translations/TranslatableField.d.ts.map +1 -0
- package/dist/translations/TranslatableField.js +44 -0
- package/dist/translations/TranslatableField.js.map +1 -0
- package/dist/translations/TranslatableInput.d.ts +14 -0
- package/dist/translations/TranslatableInput.d.ts.map +1 -0
- package/dist/translations/TranslatableInput.js +15 -0
- package/dist/translations/TranslatableInput.js.map +1 -0
- package/dist/translations/TranslatableMarkdown.d.ts +21 -0
- package/dist/translations/TranslatableMarkdown.d.ts.map +1 -0
- package/dist/translations/TranslatableMarkdown.js +12 -0
- package/dist/translations/TranslatableMarkdown.js.map +1 -0
- package/dist/translations/TranslationControls.d.ts +22 -0
- package/dist/translations/TranslationControls.d.ts.map +1 -0
- package/dist/translations/TranslationControls.js +31 -0
- package/dist/translations/TranslationControls.js.map +1 -0
- package/dist/translations/index.d.ts +31 -0
- package/dist/translations/index.d.ts.map +1 -0
- package/dist/translations/index.js +18 -0
- package/dist/translations/index.js.map +1 -0
- package/package.json +156 -3
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Checks a host's built stylesheet against tokens.json: every colour role's utilities exist, every required custom
|
|
3
|
+
// property is declared on :root (and on .dark when themed), declared colour values fit how the stylesheet uses them,
|
|
4
|
+
// the layer defaults of components.css are present, and the data attributes components.css reads appear in its rules.
|
|
5
|
+
//
|
|
6
|
+
// Colour values follow use: a role property read only inside a channel function (`hsl(var(--card))`,
|
|
7
|
+
// `rgb(var(--x) / 0.5)`, `oklch(…)`) may hold channels (`0 0% 100%`); a property read anywhere else (a plain
|
|
8
|
+
// `background-color: var(--card)`, inside `color-mix()` or `light-dark()`, which take whole colours) must hold a colour.
|
|
9
|
+
// A custom property that passes another one on (`--surface: var(--card)`) takes the uses of the receiving property.
|
|
10
|
+
// A role property that nothing reads is held to the strict rule.
|
|
11
|
+
//
|
|
12
|
+
// Usage: node check-tokens.mjs <built.css | directory of .css files> [tokens.json]
|
|
13
|
+
// Exit 0 when everything is provided; exit 1 with one line per missing item otherwise; exit 2 on bad arguments.
|
|
14
|
+
//
|
|
15
|
+
// The parser is a small tolerant one (no dependency): it strips comments, honours strings and nested blocks, and reads
|
|
16
|
+
// selectors and declarations of style rules at any depth (@layer, @media, @supports). Limits: it does not evaluate
|
|
17
|
+
// `var()`, cascade order or media conditions; a property counts as declared when any rule for the scope declares it;
|
|
18
|
+
// a colour value passes as a hex colour, a colour function (rgb, hsl, hwb, lab, lch, oklab, oklch, color, color-mix,
|
|
19
|
+
// light-dark), a `var()` reference or a single keyword (named colours are not checked against the CSS list).
|
|
20
|
+
|
|
21
|
+
import { existsSync, readdirSync, readFileSync, statSync } from 'node:fs';
|
|
22
|
+
import { dirname, join, resolve } from 'node:path';
|
|
23
|
+
import { fileURLToPath } from 'node:url';
|
|
24
|
+
|
|
25
|
+
const [cssArg, tokensArg] = process.argv.slice(2);
|
|
26
|
+
if (!cssArg) {
|
|
27
|
+
console.error('usage: node check-tokens.mjs <built.css | directory of .css files> [tokens.json]');
|
|
28
|
+
process.exit(2);
|
|
29
|
+
}
|
|
30
|
+
const tokensPath = resolve(tokensArg ?? join(dirname(fileURLToPath(import.meta.url)), '..', 'tokens.json'));
|
|
31
|
+
const cssPath = resolve(cssArg);
|
|
32
|
+
if (!existsSync(cssPath) || !existsSync(tokensPath)) {
|
|
33
|
+
console.error(`not found: ${existsSync(cssPath) ? tokensPath : cssPath}`);
|
|
34
|
+
process.exit(2);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const cssFiles = statSync(cssPath).isDirectory()
|
|
38
|
+
? readdirSync(cssPath)
|
|
39
|
+
.filter(name => name.endsWith('.css'))
|
|
40
|
+
.map(name => join(cssPath, name))
|
|
41
|
+
: [cssPath];
|
|
42
|
+
const tokens = JSON.parse(readFileSync(tokensPath, 'utf8'));
|
|
43
|
+
|
|
44
|
+
/** Style rules as `{ selector, declarations: Map<property, value> }`, at any nesting depth. */
|
|
45
|
+
const parseRules = source => {
|
|
46
|
+
const text = source.replace(/\/\*[\s\S]*?\*\//g, '');
|
|
47
|
+
const rules = [];
|
|
48
|
+
const stack = [];
|
|
49
|
+
let buffer = '';
|
|
50
|
+
let quote = null;
|
|
51
|
+
for (let index = 0; index < text.length; index += 1) {
|
|
52
|
+
const char = text[index];
|
|
53
|
+
if (quote) {
|
|
54
|
+
buffer += char;
|
|
55
|
+
if (char === '\\') {
|
|
56
|
+
buffer += text[index + 1] ?? '';
|
|
57
|
+
index += 1;
|
|
58
|
+
} else if (char === quote) quote = null;
|
|
59
|
+
continue;
|
|
60
|
+
}
|
|
61
|
+
if (char === '\\') {
|
|
62
|
+
// an escaped character in a selector (`.content-\[\'x\'\]`, `.w-1\/2`): never a quote or a brace
|
|
63
|
+
buffer += char + (text[index + 1] ?? '');
|
|
64
|
+
index += 1;
|
|
65
|
+
continue;
|
|
66
|
+
}
|
|
67
|
+
if (char === '"' || char === "'") {
|
|
68
|
+
quote = char;
|
|
69
|
+
buffer += char;
|
|
70
|
+
continue;
|
|
71
|
+
}
|
|
72
|
+
if (char === '{') {
|
|
73
|
+
const prelude = buffer.trim();
|
|
74
|
+
buffer = '';
|
|
75
|
+
const rule = prelude.startsWith('@') ? null : { selector: prelude, declarations: new Map() };
|
|
76
|
+
if (rule) rules.push(rule);
|
|
77
|
+
stack.push(rule);
|
|
78
|
+
continue;
|
|
79
|
+
}
|
|
80
|
+
if (char === ';' || char === '}') {
|
|
81
|
+
const current = stack[stack.length - 1];
|
|
82
|
+
const chunk = buffer.trim();
|
|
83
|
+
buffer = '';
|
|
84
|
+
if (current && chunk.includes(':')) {
|
|
85
|
+
const colon = chunk.indexOf(':');
|
|
86
|
+
current.declarations.set(chunk.slice(0, colon).trim(), chunk.slice(colon + 1).trim());
|
|
87
|
+
}
|
|
88
|
+
if (char === '}') stack.pop();
|
|
89
|
+
continue;
|
|
90
|
+
}
|
|
91
|
+
buffer += char;
|
|
92
|
+
}
|
|
93
|
+
return rules;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
const rules = cssFiles.flatMap(file => parseRules(readFileSync(file, 'utf8')));
|
|
97
|
+
|
|
98
|
+
/** Every class name in the selectors, unescaped (`hover\:bg-card\/90` → `hover:bg-card/90`). */
|
|
99
|
+
const classNames = new Set();
|
|
100
|
+
for (const rule of rules) {
|
|
101
|
+
for (const match of rule.selector.matchAll(/\.((?:\\.|[A-Za-z0-9_-])+)/g)) {
|
|
102
|
+
classNames.add(match[1].replace(/\\(.)/g, '$1'));
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
/** A utility is provided when it exists bare or under any variant (`hover:bg-tint`, `dark:bg-input/30`). */
|
|
106
|
+
const hasUtility = utility => {
|
|
107
|
+
if (classNames.has(utility)) return true;
|
|
108
|
+
for (const name of classNames) if (name.endsWith(`:${utility}`)) return true;
|
|
109
|
+
return false;
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
const selectorParts = rule => rule.selector.split(',').map(part => part.trim());
|
|
113
|
+
const isRootSelector = part => /^(:root|html|:host|:where\(:root\))$/.test(part);
|
|
114
|
+
const isDarkSelector = part => /^(:root|html)?\.dark$/.test(part);
|
|
115
|
+
const declaredIn = (property, predicate) =>
|
|
116
|
+
rules.some(rule => rule.declarations.has(property) && selectorParts(rule).some(predicate));
|
|
117
|
+
|
|
118
|
+
const missing = [];
|
|
119
|
+
|
|
120
|
+
for (const [role, definition] of Object.entries(tokens.colors ?? {})) {
|
|
121
|
+
const absent = (definition.utilities ?? []).filter(utility => !hasUtility(utility));
|
|
122
|
+
if (absent.length > 0) missing.push(`colour role "${role}": no rule for ${absent.join(', ')}`);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
for (const [property, definition] of Object.entries(tokens.properties ?? {})) {
|
|
126
|
+
if (definition.required === false) continue;
|
|
127
|
+
if (!declaredIn(property, isRootSelector)) missing.push(`property ${property}: not declared on :root`);
|
|
128
|
+
if (definition.themed && !declaredIn(property, isDarkSelector)) {
|
|
129
|
+
missing.push(`property ${property}: themed, but not declared on .dark`);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/** Functions whose arguments are colour channels, so `fn(var(--x))` needs channels in `--x`, not a colour. */
|
|
134
|
+
const CHANNEL_FUNCTIONS = new Set(['rgb', 'rgba', 'hsl', 'hsla', 'hwb', 'lab', 'lch', 'oklab', 'oklch', 'color']);
|
|
135
|
+
|
|
136
|
+
/** Every `var(--name…)` in a value, with the innermost enclosing function other than `var` (`null` at top level). */
|
|
137
|
+
const varReads = value => {
|
|
138
|
+
const reads = [];
|
|
139
|
+
const stack = [];
|
|
140
|
+
const pattern = /([A-Za-z-]*)\(|\)/g;
|
|
141
|
+
let match = pattern.exec(value);
|
|
142
|
+
while (match !== null) {
|
|
143
|
+
if (match[0] === ')') stack.pop();
|
|
144
|
+
else {
|
|
145
|
+
const name = match[1].toLowerCase();
|
|
146
|
+
if (name === 'var') {
|
|
147
|
+
const property = /^\s*(--[A-Za-z0-9_-]+)/.exec(value.slice(pattern.lastIndex));
|
|
148
|
+
const outer = stack.filter(item => item !== 'var');
|
|
149
|
+
if (property) reads.push({ property: property[1], within: outer.length > 0 ? outer[outer.length - 1] : null });
|
|
150
|
+
}
|
|
151
|
+
stack.push(name);
|
|
152
|
+
}
|
|
153
|
+
match = pattern.exec(value);
|
|
154
|
+
}
|
|
155
|
+
return reads;
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
/** Per custom property: where it is read, as `{ declaredOn, within, selector }`. */
|
|
159
|
+
const readsOf = new Map();
|
|
160
|
+
for (const rule of rules) {
|
|
161
|
+
for (const [declaredOn, value] of rule.declarations) {
|
|
162
|
+
for (const read of varReads(value)) {
|
|
163
|
+
const list = readsOf.get(read.property) ?? [];
|
|
164
|
+
list.push({ declaredOn, within: read.within, selector: rule.selector });
|
|
165
|
+
readsOf.set(read.property, list);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* The first read of `property` that needs a whole colour (`null` when every read is inside a channel function), as
|
|
172
|
+
* text for the report. A read passed on to another custom property counts as that property's reads.
|
|
173
|
+
*/
|
|
174
|
+
const colourRead = (property, seen = new Set()) => {
|
|
175
|
+
if (seen.has(property)) return null;
|
|
176
|
+
seen.add(property);
|
|
177
|
+
const reads = readsOf.get(property) ?? [];
|
|
178
|
+
if (reads.length === 0) return 'read nowhere';
|
|
179
|
+
for (const read of reads) {
|
|
180
|
+
if (read.within !== null && CHANNEL_FUNCTIONS.has(read.within)) continue;
|
|
181
|
+
if (read.within === null && read.declaredOn.startsWith('--')) {
|
|
182
|
+
const onward = colourRead(read.declaredOn, seen);
|
|
183
|
+
if (onward !== null && onward !== 'read nowhere') return `passed to ${read.declaredOn}, ${onward}`;
|
|
184
|
+
continue;
|
|
185
|
+
}
|
|
186
|
+
return `read as ${read.declaredOn}: ${read.within ? `${read.within}(var(${property}))` : `var(${property})`} in "${read.selector}"`;
|
|
187
|
+
}
|
|
188
|
+
return null;
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
/** Channels of a colour function: numbers, percentages, angles, `none`, separated by spaces, commas or `/`. */
|
|
192
|
+
const isChannelValue = value =>
|
|
193
|
+
/^(?:[+-]?(?:\d+\.?\d*|\.\d+)(?:%|deg|rad|grad|turn)?|none)(?:\s*[\s,/]\s*(?:[+-]?(?:\d+\.?\d*|\.\d+)(?:%|deg|rad|grad|turn)?|none))*$/i.test(
|
|
194
|
+
value.replace(/\s*!important\s*$/, '').trim()
|
|
195
|
+
);
|
|
196
|
+
|
|
197
|
+
/** Does a declared value read as a colour? (see the limits above) */
|
|
198
|
+
const isColourValue = value => {
|
|
199
|
+
const trimmed = value.replace(/\s*!important\s*$/, '').trim();
|
|
200
|
+
if (/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(trimmed)) return true;
|
|
201
|
+
if (/^(?:rgba?|hsla?|hwb|lab|lch|oklab|oklch|color|color-mix|light-dark|var)\(.*\)$/i.test(trimmed)) return true;
|
|
202
|
+
return /^[a-z]+$/i.test(trimmed);
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
for (const role of Object.keys(tokens.colors ?? {})) {
|
|
206
|
+
for (const property of [`--${role}`, `--color-${role}`]) {
|
|
207
|
+
for (const rule of rules) {
|
|
208
|
+
const value = rule.declarations.get(property);
|
|
209
|
+
if (value === undefined || isColourValue(value)) continue;
|
|
210
|
+
const needsColour = colourRead(property);
|
|
211
|
+
if (needsColour === null && isChannelValue(value)) continue;
|
|
212
|
+
const why = needsColour === null ? 'neither a colour nor channels' : `not a colour, but ${needsColour}`;
|
|
213
|
+
missing.push(`colour role "${role}": ${property} in "${rule.selector}" is ${why} (${value})`);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
for (const [property, definition] of Object.entries(tokens.layers ?? {})) {
|
|
219
|
+
const declared = rules.some(rule => rule.declarations.get(property) === String(definition.default));
|
|
220
|
+
if (!declared) missing.push(`layer ${property}: default ${definition.default} not declared (is components.css imported?)`);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
for (const [attribute, definition] of Object.entries(tokens.dataAttributes ?? {})) {
|
|
224
|
+
if (definition.readBy !== 'components.css') continue;
|
|
225
|
+
if (!rules.some(rule => rule.selector.includes(`[${attribute}`))) {
|
|
226
|
+
missing.push(`data attribute ${attribute}: no rule reads it (is components.css imported?)`);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
const checked = `${Object.keys(tokens.colors ?? {}).length} colour roles, ${Object.keys(tokens.properties ?? {}).length} properties, ${Object.keys(tokens.layers ?? {}).length} layers, ${Object.keys(tokens.dataAttributes ?? {}).length} data attributes`;
|
|
231
|
+
if (missing.length > 0) {
|
|
232
|
+
console.log(`check-tokens: ${missing.length} missing (${checked}; ${cssFiles.length} css file(s))`);
|
|
233
|
+
for (const line of missing) console.log(` missing: ${line}`);
|
|
234
|
+
process.exit(1);
|
|
235
|
+
}
|
|
236
|
+
console.log(`check-tokens: ok (${checked}; ${cssFiles.length} css file(s), ${rules.length} rules)`);
|
package/dist/theme.css
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*
|
|
2
|
+
The Tailwind theme binding of the blocks and primitives for a host whose colours are complete values under bare
|
|
3
|
+
names (`--card: #fff`). It registers each colour role once (`--color-<role>`), which generates `bg-*`, `text-*`,
|
|
4
|
+
`border-*` and `ring-*`, the radii derived from `--radius`, and the raised surface shadow. A host with another colour
|
|
5
|
+
encoding provides the same utility names its own way instead of importing this file. Import it after `tailwindcss`.
|
|
6
|
+
*/
|
|
7
|
+
@theme inline {
|
|
8
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
9
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
10
|
+
--radius-lg: var(--radius);
|
|
11
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
12
|
+
|
|
13
|
+
--color-background: var(--background);
|
|
14
|
+
--color-foreground: var(--foreground);
|
|
15
|
+
--color-card: var(--card);
|
|
16
|
+
--color-card-foreground: var(--card-foreground);
|
|
17
|
+
--color-popover: var(--popover);
|
|
18
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
19
|
+
--color-primary: var(--primary);
|
|
20
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
21
|
+
--color-primary-emphasis: var(--primary-emphasis);
|
|
22
|
+
--color-secondary: var(--secondary);
|
|
23
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
24
|
+
--color-muted: var(--muted);
|
|
25
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
26
|
+
--color-accent: var(--accent);
|
|
27
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
28
|
+
--color-destructive: var(--destructive);
|
|
29
|
+
--color-success: var(--success);
|
|
30
|
+
--color-warning: var(--warning);
|
|
31
|
+
--color-info: var(--info);
|
|
32
|
+
--color-brand: var(--brand);
|
|
33
|
+
--color-brand-emphasis: var(--brand-emphasis);
|
|
34
|
+
--color-brand-light: var(--brand-light);
|
|
35
|
+
--color-border: var(--border);
|
|
36
|
+
--color-input: var(--input);
|
|
37
|
+
--color-ring: var(--ring);
|
|
38
|
+
--color-brand-ink: var(--brand-ink);
|
|
39
|
+
--color-tint: var(--tint);
|
|
40
|
+
--color-tint-strong: var(--tint-strong);
|
|
41
|
+
--color-segment-active: var(--segment-active);
|
|
42
|
+
--color-field-edge: var(--field-edge);
|
|
43
|
+
--color-field-edge-strong: var(--field-edge-strong);
|
|
44
|
+
|
|
45
|
+
/* The raised surface shadow as a theme shadow (`shadow-surface-raised`), so it composes with a `ring-*` (the list
|
|
46
|
+
surface: raised shadow + a faint ink ring) instead of one box-shadow replacing the other. */
|
|
47
|
+
--shadow-surface-raised: var(--surface-shadow-raised);
|
|
48
|
+
}
|
package/dist/tokens.json
ADDED
|
@@ -0,0 +1,401 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "The host contract of the blocks and primitives: colour roles (utilities the host's Tailwind build must provide), plain custom properties on :root (and .dark when themed), the layer defaults components.css sets, the data attributes the CSS reads. Checked against a built stylesheet by scripts/check-tokens.mjs.",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"colors": {
|
|
5
|
+
"background": {
|
|
6
|
+
"meaning": "page backdrop",
|
|
7
|
+
"themed": true,
|
|
8
|
+
"utilities": [
|
|
9
|
+
"bg-background",
|
|
10
|
+
"ring-offset-background",
|
|
11
|
+
"text-background"
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
"foreground": {
|
|
15
|
+
"meaning": "default text on background and card",
|
|
16
|
+
"themed": true,
|
|
17
|
+
"utilities": [
|
|
18
|
+
"bg-foreground",
|
|
19
|
+
"bg-foreground/15",
|
|
20
|
+
"bg-foreground/5",
|
|
21
|
+
"fill-foreground",
|
|
22
|
+
"ring-foreground/5",
|
|
23
|
+
"text-foreground"
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
"card": {
|
|
27
|
+
"meaning": "surface fill; components.css mixes it with --surface-alpha",
|
|
28
|
+
"themed": true,
|
|
29
|
+
"utilities": [
|
|
30
|
+
"bg-card",
|
|
31
|
+
"bg-card/90"
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
"card-foreground": {
|
|
35
|
+
"meaning": "text on card",
|
|
36
|
+
"themed": true,
|
|
37
|
+
"utilities": [
|
|
38
|
+
"text-card-foreground"
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
"popover": {
|
|
42
|
+
"meaning": "menus, selects, popovers",
|
|
43
|
+
"themed": true,
|
|
44
|
+
"utilities": [
|
|
45
|
+
"bg-popover"
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"popover-foreground": {
|
|
49
|
+
"meaning": "text on popover",
|
|
50
|
+
"themed": true,
|
|
51
|
+
"utilities": [
|
|
52
|
+
"text-popover-foreground"
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
"primary": {
|
|
56
|
+
"meaning": "action fill (buttons, active chips, counters)",
|
|
57
|
+
"themed": true,
|
|
58
|
+
"utilities": [
|
|
59
|
+
"bg-primary",
|
|
60
|
+
"bg-primary/15",
|
|
61
|
+
"bg-primary/25",
|
|
62
|
+
"bg-primary/90",
|
|
63
|
+
"border-primary",
|
|
64
|
+
"text-primary",
|
|
65
|
+
"via-primary"
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
"primary-foreground": {
|
|
69
|
+
"meaning": "text on a primary fill",
|
|
70
|
+
"themed": true,
|
|
71
|
+
"utilities": [
|
|
72
|
+
"bg-primary-foreground",
|
|
73
|
+
"bg-primary-foreground/60",
|
|
74
|
+
"text-primary-foreground"
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
"primary-emphasis": {
|
|
78
|
+
"meaning": "primary as legible text on background, card and accent",
|
|
79
|
+
"themed": true,
|
|
80
|
+
"utilities": [
|
|
81
|
+
"text-primary-emphasis"
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
"secondary": {
|
|
85
|
+
"meaning": "quiet fill",
|
|
86
|
+
"themed": true,
|
|
87
|
+
"utilities": [
|
|
88
|
+
"bg-secondary",
|
|
89
|
+
"bg-secondary/90"
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
"secondary-foreground": {
|
|
93
|
+
"meaning": "text on secondary",
|
|
94
|
+
"themed": true,
|
|
95
|
+
"utilities": [
|
|
96
|
+
"text-secondary-foreground"
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
"muted": {
|
|
100
|
+
"meaning": "quiet fill, skeletons",
|
|
101
|
+
"themed": true,
|
|
102
|
+
"utilities": [
|
|
103
|
+
"bg-muted",
|
|
104
|
+
"bg-muted/30",
|
|
105
|
+
"bg-muted/50",
|
|
106
|
+
"bg-muted/80"
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
"muted-foreground": {
|
|
110
|
+
"meaning": "secondary text (at least 4.5:1 on card)",
|
|
111
|
+
"themed": true,
|
|
112
|
+
"utilities": [
|
|
113
|
+
"bg-muted-foreground",
|
|
114
|
+
"bg-muted-foreground/30",
|
|
115
|
+
"text-muted-foreground"
|
|
116
|
+
]
|
|
117
|
+
},
|
|
118
|
+
"accent": {
|
|
119
|
+
"meaning": "light tint of primary (hover, primary Tag)",
|
|
120
|
+
"themed": true,
|
|
121
|
+
"utilities": [
|
|
122
|
+
"bg-accent"
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
"accent-foreground": {
|
|
126
|
+
"meaning": "text on accent",
|
|
127
|
+
"themed": true,
|
|
128
|
+
"utilities": [
|
|
129
|
+
"text-accent-foreground"
|
|
130
|
+
]
|
|
131
|
+
},
|
|
132
|
+
"destructive": {
|
|
133
|
+
"meaning": "danger fill and danger text",
|
|
134
|
+
"themed": true,
|
|
135
|
+
"utilities": [
|
|
136
|
+
"bg-destructive",
|
|
137
|
+
"bg-destructive/10",
|
|
138
|
+
"bg-destructive/15",
|
|
139
|
+
"bg-destructive/60",
|
|
140
|
+
"bg-destructive/90",
|
|
141
|
+
"border-destructive",
|
|
142
|
+
"border-destructive/40",
|
|
143
|
+
"ring-destructive/20",
|
|
144
|
+
"ring-destructive/40",
|
|
145
|
+
"text-destructive"
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
"success": {
|
|
149
|
+
"meaning": "success fill and text (status tone)",
|
|
150
|
+
"themed": true,
|
|
151
|
+
"utilities": [
|
|
152
|
+
"bg-success",
|
|
153
|
+
"bg-success/10",
|
|
154
|
+
"bg-success/15",
|
|
155
|
+
"text-success"
|
|
156
|
+
]
|
|
157
|
+
},
|
|
158
|
+
"warning": {
|
|
159
|
+
"meaning": "warning fill and text",
|
|
160
|
+
"themed": true,
|
|
161
|
+
"utilities": [
|
|
162
|
+
"bg-warning",
|
|
163
|
+
"bg-warning/10",
|
|
164
|
+
"bg-warning/15",
|
|
165
|
+
"text-warning"
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
"info": {
|
|
169
|
+
"meaning": "info fill and text",
|
|
170
|
+
"themed": true,
|
|
171
|
+
"utilities": [
|
|
172
|
+
"bg-info",
|
|
173
|
+
"bg-info/10",
|
|
174
|
+
"bg-info/15",
|
|
175
|
+
"text-info"
|
|
176
|
+
]
|
|
177
|
+
},
|
|
178
|
+
"brand": {
|
|
179
|
+
"meaning": "identity fill and marks (with /15 tints)",
|
|
180
|
+
"themed": true,
|
|
181
|
+
"utilities": [
|
|
182
|
+
"bg-brand",
|
|
183
|
+
"bg-brand/15"
|
|
184
|
+
]
|
|
185
|
+
},
|
|
186
|
+
"brand-emphasis": {
|
|
187
|
+
"meaning": "brand as legible text",
|
|
188
|
+
"themed": true,
|
|
189
|
+
"utilities": [
|
|
190
|
+
"text-brand-emphasis"
|
|
191
|
+
]
|
|
192
|
+
},
|
|
193
|
+
"brand-light": {
|
|
194
|
+
"meaning": "light brand tint (brand Tag)",
|
|
195
|
+
"themed": true,
|
|
196
|
+
"utilities": [
|
|
197
|
+
"bg-brand-light"
|
|
198
|
+
]
|
|
199
|
+
},
|
|
200
|
+
"brand-ink": {
|
|
201
|
+
"meaning": "brand text at least 4.5:1 (action rows, two-tone titles)",
|
|
202
|
+
"themed": true,
|
|
203
|
+
"utilities": [
|
|
204
|
+
"text-brand-ink"
|
|
205
|
+
]
|
|
206
|
+
},
|
|
207
|
+
"border": {
|
|
208
|
+
"meaning": "hairline; also the default border colour",
|
|
209
|
+
"themed": true,
|
|
210
|
+
"utilities": [
|
|
211
|
+
"bg-border",
|
|
212
|
+
"border-border"
|
|
213
|
+
]
|
|
214
|
+
},
|
|
215
|
+
"input": {
|
|
216
|
+
"meaning": "field border, dark-mode field fill",
|
|
217
|
+
"themed": true,
|
|
218
|
+
"utilities": [
|
|
219
|
+
"bg-input",
|
|
220
|
+
"bg-input/30",
|
|
221
|
+
"bg-input/50",
|
|
222
|
+
"bg-input/80",
|
|
223
|
+
"border-input"
|
|
224
|
+
]
|
|
225
|
+
},
|
|
226
|
+
"ring": {
|
|
227
|
+
"meaning": "focus ring",
|
|
228
|
+
"themed": true,
|
|
229
|
+
"utilities": [
|
|
230
|
+
"border-ring",
|
|
231
|
+
"ring-ring",
|
|
232
|
+
"ring-ring/50"
|
|
233
|
+
]
|
|
234
|
+
},
|
|
235
|
+
"tint": {
|
|
236
|
+
"meaning": "ink at about 6 %, alpha baked in (no /modifier)",
|
|
237
|
+
"themed": true,
|
|
238
|
+
"utilities": [
|
|
239
|
+
"bg-tint"
|
|
240
|
+
]
|
|
241
|
+
},
|
|
242
|
+
"tint-strong": {
|
|
243
|
+
"meaning": "ink at about 10 %, alpha baked in",
|
|
244
|
+
"themed": true,
|
|
245
|
+
"utilities": [
|
|
246
|
+
"bg-tint-strong"
|
|
247
|
+
]
|
|
248
|
+
},
|
|
249
|
+
"segment-active": {
|
|
250
|
+
"meaning": "active pill of segmented tabs and toggles",
|
|
251
|
+
"themed": true,
|
|
252
|
+
"utilities": [
|
|
253
|
+
"bg-segment-active"
|
|
254
|
+
]
|
|
255
|
+
},
|
|
256
|
+
"field-edge": {
|
|
257
|
+
"meaning": "form field edge at rest (about 2:1), alpha baked in",
|
|
258
|
+
"themed": true,
|
|
259
|
+
"utilities": [
|
|
260
|
+
"border-field-edge"
|
|
261
|
+
]
|
|
262
|
+
},
|
|
263
|
+
"field-edge-strong": {
|
|
264
|
+
"meaning": "field edge on hover and while open (about 3:1)",
|
|
265
|
+
"themed": true,
|
|
266
|
+
"utilities": [
|
|
267
|
+
"border-field-edge-strong"
|
|
268
|
+
]
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
"properties": {
|
|
272
|
+
"--nav-h": {
|
|
273
|
+
"syntax": "<length>",
|
|
274
|
+
"meaning": "height of the fixed top chrome; sticky offsets and full-height frames",
|
|
275
|
+
"themed": false,
|
|
276
|
+
"required": true
|
|
277
|
+
},
|
|
278
|
+
"--content-max": {
|
|
279
|
+
"syntax": "<length-percentage> | none",
|
|
280
|
+
"meaning": "max width of wide forms",
|
|
281
|
+
"themed": false,
|
|
282
|
+
"required": true
|
|
283
|
+
},
|
|
284
|
+
"--radius": {
|
|
285
|
+
"syntax": "<length>",
|
|
286
|
+
"meaning": "base radius; the theme radii sm–xl derive from it",
|
|
287
|
+
"themed": false,
|
|
288
|
+
"required": true
|
|
289
|
+
},
|
|
290
|
+
"--surface-alpha": {
|
|
291
|
+
"syntax": "<percentage>",
|
|
292
|
+
"meaning": "share of the card colour in a .surface",
|
|
293
|
+
"themed": true,
|
|
294
|
+
"required": true
|
|
295
|
+
},
|
|
296
|
+
"--surface-shadow": {
|
|
297
|
+
"syntax": "<shadow>",
|
|
298
|
+
"meaning": "shadow of a .surface and of list cards",
|
|
299
|
+
"themed": true,
|
|
300
|
+
"required": true
|
|
301
|
+
},
|
|
302
|
+
"--surface-shadow-raised": {
|
|
303
|
+
"syntax": "<shadow>",
|
|
304
|
+
"meaning": "shadow of open lists and floating panels (shadow-surface-raised)",
|
|
305
|
+
"themed": true,
|
|
306
|
+
"required": true
|
|
307
|
+
},
|
|
308
|
+
"--glass-alpha": {
|
|
309
|
+
"syntax": "<percentage>",
|
|
310
|
+
"meaning": "share of the card colour in the sticky glass bars (.glass-bar)",
|
|
311
|
+
"themed": true,
|
|
312
|
+
"required": true
|
|
313
|
+
},
|
|
314
|
+
"--surface-glass-alpha": {
|
|
315
|
+
"syntax": "<percentage>",
|
|
316
|
+
"meaning": "share of the card colour in .surface-glass",
|
|
317
|
+
"themed": true,
|
|
318
|
+
"required": true
|
|
319
|
+
},
|
|
320
|
+
"--surface-glass-strong-alpha": {
|
|
321
|
+
"syntax": "<percentage>",
|
|
322
|
+
"meaning": "share of the card colour in .surface-glass-strong and the glass toolbar controls",
|
|
323
|
+
"themed": true,
|
|
324
|
+
"required": true
|
|
325
|
+
},
|
|
326
|
+
"--glass-shadow": {
|
|
327
|
+
"syntax": "<shadow>",
|
|
328
|
+
"meaning": "shadow of the glass tone",
|
|
329
|
+
"themed": true,
|
|
330
|
+
"required": true
|
|
331
|
+
},
|
|
332
|
+
"--glass-control-shadow": {
|
|
333
|
+
"syntax": "<shadow>",
|
|
334
|
+
"meaning": "short shadow of the filter controls on the list toolbar; one value for both themes by default, a host may set a dark value (otherwise .dark inherits it)",
|
|
335
|
+
"themed": false,
|
|
336
|
+
"required": true
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
"layers": {
|
|
340
|
+
"--layer-raised": {
|
|
341
|
+
"default": 10,
|
|
342
|
+
"meaning": "sticky table header, search field icons"
|
|
343
|
+
},
|
|
344
|
+
"--layer-sticky": {
|
|
345
|
+
"default": 20,
|
|
346
|
+
"meaning": "sticky form actions and form jump bar"
|
|
347
|
+
},
|
|
348
|
+
"--layer-overlay": {
|
|
349
|
+
"default": 50,
|
|
350
|
+
"meaning": "dialog and sheet overlay and content"
|
|
351
|
+
},
|
|
352
|
+
"--layer-popover": {
|
|
353
|
+
"default": 50,
|
|
354
|
+
"meaning": "popover, select, dropdown menu, tooltip; equal to the overlay layer, so a later portal paints on top"
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
"dataAttributes": {
|
|
358
|
+
"data-page-frame": {
|
|
359
|
+
"setBy": "PageFrame",
|
|
360
|
+
"readBy": "host shell"
|
|
361
|
+
},
|
|
362
|
+
"data-wide-content": {
|
|
363
|
+
"setBy": "EntityListGrid",
|
|
364
|
+
"readBy": "host shell"
|
|
365
|
+
},
|
|
366
|
+
"data-form-actions": {
|
|
367
|
+
"setBy": "FormActions",
|
|
368
|
+
"readBy": "components.css"
|
|
369
|
+
},
|
|
370
|
+
"data-list-toolbar": {
|
|
371
|
+
"setBy": "EntityListCard",
|
|
372
|
+
"readBy": "components.css"
|
|
373
|
+
},
|
|
374
|
+
"data-list-empty": {
|
|
375
|
+
"setBy": "EntityListEmpty",
|
|
376
|
+
"readBy": "components.css"
|
|
377
|
+
},
|
|
378
|
+
"data-entity-grid": {
|
|
379
|
+
"setBy": "EntityListGrid",
|
|
380
|
+
"readBy": "components.css"
|
|
381
|
+
},
|
|
382
|
+
"data-slot": {
|
|
383
|
+
"setBy": "primitives",
|
|
384
|
+
"readBy": "components.css"
|
|
385
|
+
},
|
|
386
|
+
"data-variant": {
|
|
387
|
+
"setBy": "primitives",
|
|
388
|
+
"readBy": "components.css"
|
|
389
|
+
},
|
|
390
|
+
"data-control": {
|
|
391
|
+
"setBy": "primitives and SearchField",
|
|
392
|
+
"readBy": "components.css"
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
"hostRequirements": [
|
|
396
|
+
"dark mode: a `.dark` class on an ancestor; the `dark:` variant is defined by the host",
|
|
397
|
+
"default border colour = the `border` role",
|
|
398
|
+
"animation utilities animate-in/out, fade-*, zoom-*, slide-in-from-* (tw-animate-css or equivalent)",
|
|
399
|
+
"colour roles under bare names (`--card: #fff`) can use theme.css as the binding; any other encoding provides the same utility names its own way"
|
|
400
|
+
]
|
|
401
|
+
}
|