csstype-extra 0.1.22 → 0.1.25
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/package.json +3 -3
- package/src/index.d.ts +97 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "csstype-extra",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.25",
|
|
5
5
|
"description": "Strict TypeScript types for style based on MDN data",
|
|
6
6
|
"repository": "https://github.com/dev-five-git/csstypes",
|
|
7
7
|
"author": "devfive",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
],
|
|
25
25
|
"types": "src/index.d.ts",
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@biomejs/biome": "^2.
|
|
27
|
+
"@biomejs/biome": "^2.4",
|
|
28
28
|
"@types/bun": "latest",
|
|
29
29
|
"@types/css-tree": "^2.3.11",
|
|
30
|
-
"css-tree": "^3.1
|
|
30
|
+
"css-tree": "^3.2.1",
|
|
31
31
|
"husky": "^9.1"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
package/src/index.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
// biome-ignore lint/suspicious/noEmptyInterface: gen
|
|
2
2
|
export interface CustomColors {}
|
|
3
|
+
// biome-ignore lint/suspicious/noEmptyInterface: gen
|
|
4
|
+
export interface CustomLength {}
|
|
5
|
+
// biome-ignore lint/suspicious/noEmptyInterface: gen
|
|
6
|
+
export interface CustomShadows {}
|
|
3
7
|
export as namespace CSS
|
|
4
8
|
export interface StandardLonghandProperties {
|
|
5
9
|
accentColor?: Property.AccentColor | undefined
|
|
@@ -23,6 +27,7 @@ export interface StandardLonghandProperties {
|
|
|
23
27
|
animationRangeStart?: Property.AnimationRangeStart | undefined
|
|
24
28
|
animationTimeline?: Property.AnimationTimeline | undefined
|
|
25
29
|
animationTimingFunction?: Property.AnimationTimingFunction | undefined
|
|
30
|
+
animationTrigger?: Property.AnimationTrigger | undefined
|
|
26
31
|
appearance?: Property.Appearance | undefined
|
|
27
32
|
aspectRatio?: Property.AspectRatio | undefined
|
|
28
33
|
backdropFilter?: Property.BackdropFilter | undefined
|
|
@@ -447,6 +452,20 @@ export interface StandardLonghandProperties {
|
|
|
447
452
|
textWrapMode?: Property.TextWrapMode | undefined
|
|
448
453
|
textWrapStyle?: Property.TextWrapStyle | undefined
|
|
449
454
|
timelineScope?: Property.TimelineScope | undefined
|
|
455
|
+
timelineTriggerActivationRangeEnd?:
|
|
456
|
+
| Property.TimelineTriggerActivationRangeEnd
|
|
457
|
+
| undefined
|
|
458
|
+
timelineTriggerActivationRangeStart?:
|
|
459
|
+
| Property.TimelineTriggerActivationRangeStart
|
|
460
|
+
| undefined
|
|
461
|
+
timelineTriggerActiveRangeEnd?:
|
|
462
|
+
| Property.TimelineTriggerActiveRangeEnd
|
|
463
|
+
| undefined
|
|
464
|
+
timelineTriggerActiveRangeStart?:
|
|
465
|
+
| Property.TimelineTriggerActiveRangeStart
|
|
466
|
+
| undefined
|
|
467
|
+
timelineTriggerName?: Property.TimelineTriggerName | undefined
|
|
468
|
+
timelineTriggerSource?: Property.TimelineTriggerSource | undefined
|
|
450
469
|
top?: Property.Top | undefined
|
|
451
470
|
touchAction?: Property.TouchAction | undefined
|
|
452
471
|
transform?: Property.Transform | undefined
|
|
@@ -459,6 +478,7 @@ export interface StandardLonghandProperties {
|
|
|
459
478
|
transitionProperty?: Property.TransitionProperty | undefined
|
|
460
479
|
transitionTimingFunction?: Property.TransitionTimingFunction | undefined
|
|
461
480
|
translate?: Property.Translate | undefined
|
|
481
|
+
triggerScope?: Property.TriggerScope | undefined
|
|
462
482
|
unicodeBidi?: Property.UnicodeBidi | undefined
|
|
463
483
|
userSelect?: Property.UserSelect | undefined
|
|
464
484
|
vectorEffect?: Property.VectorEffect | undefined
|
|
@@ -559,6 +579,11 @@ export interface StandardShorthandProperties {
|
|
|
559
579
|
textDecoration?: Property.TextDecoration | undefined
|
|
560
580
|
textEmphasis?: Property.TextEmphasis | undefined
|
|
561
581
|
textWrap?: Property.TextWrap | undefined
|
|
582
|
+
timelineTrigger?: Property.TimelineTrigger | undefined
|
|
583
|
+
timelineTriggerActivationRange?:
|
|
584
|
+
| Property.TimelineTriggerActivationRange
|
|
585
|
+
| undefined
|
|
586
|
+
timelineTriggerActiveRange?: Property.TimelineTriggerActiveRange | undefined
|
|
562
587
|
transition?: Property.Transition | undefined
|
|
563
588
|
viewTimeline?: Property.ViewTimeline | undefined
|
|
564
589
|
}
|
|
@@ -949,6 +974,11 @@ export namespace Property {
|
|
|
949
974
|
| TEasingFunction
|
|
950
975
|
| Globals
|
|
951
976
|
| (string & {})
|
|
977
|
+
export type AnimationTrigger =
|
|
978
|
+
| 'none'
|
|
979
|
+
| TAnimationAction
|
|
980
|
+
| Globals
|
|
981
|
+
| (string & {})
|
|
952
982
|
export type Appearance =
|
|
953
983
|
| 'none'
|
|
954
984
|
| 'auto'
|
|
@@ -2546,6 +2576,41 @@ export namespace Property {
|
|
|
2546
2576
|
| Globals
|
|
2547
2577
|
| (string & {})
|
|
2548
2578
|
export type TimelineScope = 'none' | Globals | (string & {})
|
|
2579
|
+
export type TimelineTriggerActivationRangeEnd =
|
|
2580
|
+
| 'normal'
|
|
2581
|
+
| TLengthPercentage
|
|
2582
|
+
| TTimelineRangeName
|
|
2583
|
+
| TLengthPercentage
|
|
2584
|
+
| Globals
|
|
2585
|
+
| (string & {})
|
|
2586
|
+
export type TimelineTriggerActivationRangeStart =
|
|
2587
|
+
| 'normal'
|
|
2588
|
+
| TLengthPercentage
|
|
2589
|
+
| TTimelineRangeName
|
|
2590
|
+
| TLengthPercentage
|
|
2591
|
+
| Globals
|
|
2592
|
+
| (string & {})
|
|
2593
|
+
export type TimelineTriggerActiveRangeEnd =
|
|
2594
|
+
| 'auto'
|
|
2595
|
+
| 'normal'
|
|
2596
|
+
| TLengthPercentage
|
|
2597
|
+
| TTimelineRangeName
|
|
2598
|
+
| TLengthPercentage
|
|
2599
|
+
| Globals
|
|
2600
|
+
| (string & {})
|
|
2601
|
+
export type TimelineTriggerActiveRangeStart =
|
|
2602
|
+
| 'auto'
|
|
2603
|
+
| 'normal'
|
|
2604
|
+
| TLengthPercentage
|
|
2605
|
+
| TTimelineRangeName
|
|
2606
|
+
| TLengthPercentage
|
|
2607
|
+
| Globals
|
|
2608
|
+
| (string & {})
|
|
2609
|
+
export type TimelineTriggerName = 'none' | Globals | (string & {})
|
|
2610
|
+
export type TimelineTriggerSource =
|
|
2611
|
+
| TSingleAnimationTimeline
|
|
2612
|
+
| Globals
|
|
2613
|
+
| (string & {})
|
|
2549
2614
|
export type Top = 'auto' | TLengthPercentage | Globals | (string & {})
|
|
2550
2615
|
export type TouchAction =
|
|
2551
2616
|
| 'auto'
|
|
@@ -2610,6 +2675,7 @@ export namespace Property {
|
|
|
2610
2675
|
| number
|
|
2611
2676
|
| Globals
|
|
2612
2677
|
| (string & {})
|
|
2678
|
+
export type TriggerScope = 'none' | 'all' | Globals | (string & {})
|
|
2613
2679
|
export type UnicodeBidi =
|
|
2614
2680
|
| 'normal'
|
|
2615
2681
|
| 'embed'
|
|
@@ -3020,6 +3086,25 @@ export namespace Property {
|
|
|
3020
3086
|
| Property.TextWrapStyle
|
|
3021
3087
|
| Globals
|
|
3022
3088
|
| (string & {})
|
|
3089
|
+
export type TimelineTrigger =
|
|
3090
|
+
| 'none'
|
|
3091
|
+
| Property.TimelineTriggerName
|
|
3092
|
+
| Property.TimelineTriggerSource
|
|
3093
|
+
| Property.TimelineTriggerActivationRange
|
|
3094
|
+
| "'/'"
|
|
3095
|
+
| Property.TimelineTriggerActiveRange
|
|
3096
|
+
| Globals
|
|
3097
|
+
| (string & {})
|
|
3098
|
+
export type TimelineTriggerActivationRange =
|
|
3099
|
+
| Property.TimelineTriggerActivationRangeStart
|
|
3100
|
+
| Property.TimelineTriggerActivationRangeEnd
|
|
3101
|
+
| Globals
|
|
3102
|
+
| (string & {})
|
|
3103
|
+
export type TimelineTriggerActiveRange =
|
|
3104
|
+
| Property.TimelineTriggerActiveRangeStart
|
|
3105
|
+
| Property.TimelineTriggerActiveRangeEnd
|
|
3106
|
+
| Globals
|
|
3107
|
+
| (string & {})
|
|
3023
3108
|
export type Transition = TSingleTransition | Globals | (string & {})
|
|
3024
3109
|
export type ViewTimeline =
|
|
3025
3110
|
| Property.ViewTimelineName
|
|
@@ -3566,6 +3651,16 @@ export type TAngularColorStopList =
|
|
|
3566
3651
|
| TAngularColorStop
|
|
3567
3652
|
| Globals
|
|
3568
3653
|
export type TAnimateableFeature = 'scroll-position' | 'contents' | Globals
|
|
3654
|
+
export type TAnimationAction =
|
|
3655
|
+
| 'none'
|
|
3656
|
+
| 'play'
|
|
3657
|
+
| 'play-once'
|
|
3658
|
+
| 'play-forwards'
|
|
3659
|
+
| 'play-backwards'
|
|
3660
|
+
| 'pause'
|
|
3661
|
+
| 'reset'
|
|
3662
|
+
| 'replay'
|
|
3663
|
+
| Globals
|
|
3569
3664
|
export type TAttachment = 'scroll' | 'fixed' | 'local' | Globals
|
|
3570
3665
|
export type TAttrMatcher =
|
|
3571
3666
|
| "'~'"
|
|
@@ -4064,7 +4159,7 @@ export type TKeyframeSelector =
|
|
|
4064
4159
|
export type TKeyframesName = (string & {}) | Globals
|
|
4065
4160
|
export type TLayerName = "'.'" | Globals
|
|
4066
4161
|
export type TLeaderType = 'dotted' | 'solid' | 'space' | (string & {}) | Globals
|
|
4067
|
-
export type TLengthPercentage = number | Globals
|
|
4162
|
+
export type TLengthPercentage = number | Globals | keyof CustomLength
|
|
4068
4163
|
export type TLineNameList = TLineNames | TNameRepeat | Globals
|
|
4069
4164
|
export type TLineNames = "'['" | "']'" | Globals
|
|
4070
4165
|
export type TLineStyle =
|
|
@@ -4570,7 +4665,7 @@ export type TSelfPosition =
|
|
|
4570
4665
|
| 'flex-start'
|
|
4571
4666
|
| 'flex-end'
|
|
4572
4667
|
| Globals
|
|
4573
|
-
export type TShadow = 'inset' | number | TColor | Globals
|
|
4668
|
+
export type TShadow = 'inset' | number | TColor | Globals | keyof CustomShadows
|
|
4574
4669
|
export type TShadowT = number | TColor | Globals
|
|
4575
4670
|
export type TShape = Globals
|
|
4576
4671
|
export type TShapeBox = TVisualBox | 'margin-box' | Globals
|