From 2a4908dad05848aea2ca67206b94f7f103252b84 Mon Sep 17 00:00:00 2001 From: Ryan Atkinson Date: Sat, 21 Dec 2024 22:00:13 -0700 Subject: [PATCH] add a todo --- src/lib/css_class_helpers.test.ts | 2 +- src/lib/css_classes.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/css_class_helpers.test.ts b/src/lib/css_class_helpers.test.ts index a8bee6e7..1797a683 100644 --- a/src/lib/css_class_helpers.test.ts +++ b/src/lib/css_class_helpers.test.ts @@ -1,7 +1,7 @@ import {test} from 'uvu'; import * as assert from 'uvu/assert'; -import {collect_css_classes} from './css_class_helpers.js'; +import {collect_css_classes} from '$lib/css_class_helpers.js'; const values: Array<[contents: string, expected: Array]> = [ // `class=` attribute diff --git a/src/lib/css_classes.ts b/src/lib/css_classes.ts index ff885145..6bed76ca 100644 --- a/src/lib/css_classes.ts +++ b/src/lib/css_classes.ts @@ -1,4 +1,6 @@ -import type {Css_Class_Declaration} from './css_class_helpers.js'; +import type {Css_Class_Declaration} from '$lib/css_class_helpers.js'; + +// TODO support iterpretable class names, for e.g. arbitrary numbers - lots here, UnoCSS is similar // TODO add animation support, either as a separate thing or rename `css_classes_by_name` to be more generic, like `css_by_name` - need to collect `animation: foo ...` names like we do classes