Skip to content

Commit 96ed4db

Browse files
committed
feat: add selector type
1 parent bef297c commit 96ed4db

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/types/selector.d.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
export type SelectorAttributeOperator = '=' | '~=' | '|=' | '^=' | '$=' | '*='
2+
3+
export type SelectorCombinator = ' ' | '>' | '+' | '~' | '||' | '|' | ','
4+
5+
export type SelectorPseudoClass =
6+
| 'active' | 'any-link' | 'autofill' | 'buffering' | 'blank' | 'checked'
7+
| 'current' | 'default' | 'defined' | 'dir' | 'disabled' | 'empty'
8+
| 'enabled' | 'first' | 'first-child' | 'first-of-type' | 'focus' | 'focus-visible'
9+
| 'focus-within' | 'fullscreen' | 'hover' | 'future' | 'has' | 'host' | 'host-context'
10+
| 'hover' | 'indeterminate' | 'in-range' | 'invalid' | 'is' | 'lang'
11+
| 'last-child' | 'last-of-type' | 'left' | 'link' | 'local-link' | 'modal' | 'muted' | 'not'
12+
| 'nth-child' | 'nth-last-child' | 'nth-last-of-type' | 'not-of-type' | 'only-child'
13+
| 'only-of-type' | 'optional' | 'out-of-range' | 'past' | 'paused' | 'picture-in-picture'
14+
| 'placeholder-shown' | 'playing' | 'popover-open' | 'ready-only' | 'read-write'
15+
| 'required' | 'right' | 'root' | 'scope' | 'seeking' | 'stalled' | 'target' | 'target-within'
16+
| 'user-invalid' | 'user-valid' | 'valid' | 'visited' | 'volume-locked' | 'where'
17+
18+
export type SelectorPseudoElement =
19+
| 'before' | 'after' | 'backdrop' | 'cue' | 'cue-region' | 'file-selector-button'
20+
| 'first-letter' | 'first-line' | 'highlight' | 'marker' | 'part' | 'placeholder'
21+
| 'selection' | 'slotted'

0 commit comments

Comments
 (0)