csstype-extra 0.1.24 → 0.1.26

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/index.d.ts +8 -4
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "csstype-extra",
3
3
  "type": "module",
4
- "version": "0.1.24",
4
+ "version": "0.1.26",
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.3",
27
+ "@biomejs/biome": "^2.4",
28
28
  "@types/bun": "latest",
29
29
  "@types/css-tree": "^2.3.11",
30
- "css-tree": "^3.1.0",
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
@@ -2211,8 +2215,8 @@ export namespace Property {
2211
2215
  | 'inter-character'
2212
2216
  | Globals
2213
2217
  | (string & {})
2214
- export type Rx = number | Globals | (string & {})
2215
- export type Ry = number | Globals | (string & {})
2218
+ export type Rx = TLengthPercentage | 'auto' | Globals | (string & {})
2219
+ export type Ry = TLengthPercentage | 'auto' | Globals | (string & {})
2216
2220
  export type Scale = 'none' | number | Globals | (string & {})
2217
2221
  export type ScrollBehavior = 'auto' | 'smooth' | Globals | (string & {})
2218
2222
  export type ScrollInitialTarget = 'none' | 'nearest' | Globals | (string & {})
@@ -4155,7 +4159,7 @@ export type TKeyframeSelector =
4155
4159
  export type TKeyframesName = (string & {}) | Globals
4156
4160
  export type TLayerName = "'.'" | Globals
4157
4161
  export type TLeaderType = 'dotted' | 'solid' | 'space' | (string & {}) | Globals
4158
- export type TLengthPercentage = number | Globals
4162
+ export type TLengthPercentage = number | Globals | keyof CustomLength
4159
4163
  export type TLineNameList = TLineNames | TNameRepeat | Globals
4160
4164
  export type TLineNames = "'['" | "']'" | Globals
4161
4165
  export type TLineStyle =
@@ -4661,7 +4665,7 @@ export type TSelfPosition =
4661
4665
  | 'flex-start'
4662
4666
  | 'flex-end'
4663
4667
  | Globals
4664
- export type TShadow = 'inset' | number | TColor | Globals
4668
+ export type TShadow = 'inset' | number | TColor | Globals | keyof CustomShadows
4665
4669
  export type TShadowT = number | TColor | Globals
4666
4670
  export type TShape = Globals
4667
4671
  export type TShapeBox = TVisualBox | 'margin-box' | Globals