@hopper-ui/styled-system 2.5.8 → 2.5.9

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.
@@ -1,4 +1,4 @@
1
- import { Globals, DataType, Property } from 'csstype';
1
+ import { Property, Globals, DataType } from 'csstype';
2
2
  import { Breakpoint } from '../responsive/Breakpoints.js';
3
3
  import { ResponsiveProp } from '../responsive/useResponsiveValue.js';
4
4
 
@@ -2150,39 +2150,39 @@ declare const IconColorMapping: {
2150
2150
  "success-weakest": string;
2151
2151
  "warning-weakest": string;
2152
2152
  };
2153
- declare const BoxShadowMapping: Record<"none" | "core_none" | "core_sm" | "core_md" | "core_lg" | "raised" | "lifted" | "floating", string>;
2154
- declare const FontSizeMapping: Record<"core_160" | "core_240" | "core_320" | "core_480" | "heading-3xl" | "heading-2xl" | "heading-xl" | "heading-lg" | "heading-md" | "heading-sm" | "heading-xs" | "heading-xs-medium" | "overline" | "body-2xl" | "body-xl" | "body-lg" | "body-lg-medium" | "body-lg-semibold" | "body-lg-bold" | "body-lg-underline" | "body-md" | "body-md-medium" | "body-md-semibold" | "body-md-bold" | "body-md-underline" | "body-sm" | "body-sm-medium" | "body-sm-semibold" | "body-sm-bold" | "body-sm-underline" | "body-xs" | "body-xs-medium" | "body-xs-semibold" | "body-xs-bold" | "body-xs-underline" | "accent-lg" | "accent-sm" | "core_120" | "core_140" | "core_180" | "core_200" | "core_280" | "core_360", string>;
2155
- declare const FontWeightMapping: Record<"core_400" | "heading-3xl" | "heading-2xl" | "heading-xl" | "heading-lg" | "heading-md" | "heading-sm" | "heading-xs" | "heading-xs-medium" | "overline" | "body-2xl" | "body-xl" | "body-lg" | "body-lg-medium" | "body-lg-semibold" | "body-lg-bold" | "body-lg-underline" | "body-md" | "body-md-medium" | "body-md-semibold" | "body-md-bold" | "body-md-underline" | "body-sm" | "body-sm-medium" | "body-sm-semibold" | "body-sm-bold" | "body-sm-underline" | "body-xs" | "body-xs-medium" | "body-xs-semibold" | "body-xs-bold" | "body-xs-underline" | "accent-lg" | "accent-sm" | "core_410" | "core_505" | "core_580" | "core_590" | "core_680" | "core_690", string>;
2153
+ declare const BoxShadowMapping: Record<"core_none" | "core_sm" | "core_md" | "core_lg" | "none" | "raised" | "lifted" | "floating", string>;
2154
+ declare const FontSizeMapping: Record<"core_120" | "core_140" | "core_160" | "core_180" | "core_200" | "core_240" | "core_280" | "core_320" | "core_360" | "core_480" | "heading-3xl" | "heading-2xl" | "heading-xl" | "heading-lg" | "heading-md" | "heading-sm" | "heading-xs" | "heading-xs-medium" | "overline" | "body-2xl" | "body-xl" | "body-lg" | "body-lg-medium" | "body-lg-semibold" | "body-lg-bold" | "body-lg-underline" | "body-md" | "body-md-medium" | "body-md-semibold" | "body-md-bold" | "body-md-underline" | "body-sm" | "body-sm-medium" | "body-sm-semibold" | "body-sm-bold" | "body-sm-underline" | "body-xs" | "body-xs-medium" | "body-xs-semibold" | "body-xs-bold" | "body-xs-underline" | "accent-lg" | "accent-sm", string>;
2155
+ declare const FontWeightMapping: Record<"heading-3xl" | "heading-2xl" | "heading-xl" | "heading-lg" | "heading-md" | "heading-sm" | "heading-xs" | "heading-xs-medium" | "overline" | "body-2xl" | "body-xl" | "body-lg" | "body-lg-medium" | "body-lg-semibold" | "body-lg-bold" | "body-lg-underline" | "body-md" | "body-md-medium" | "body-md-semibold" | "body-md-bold" | "body-md-underline" | "body-sm" | "body-sm-medium" | "body-sm-semibold" | "body-sm-bold" | "body-sm-underline" | "body-xs" | "body-xs-medium" | "body-xs-semibold" | "body-xs-bold" | "body-xs-underline" | "accent-lg" | "accent-sm" | "core_400" | "core_410" | "core_505" | "core_580" | "core_590" | "core_680" | "core_690", string>;
2156
2156
  declare const LineHeightMapping: Record<"heading-3xl" | "heading-2xl" | "heading-xl" | "heading-lg" | "heading-md" | "heading-sm" | "heading-xs" | "heading-xs-medium" | "overline" | "body-2xl" | "body-xl" | "body-lg" | "body-lg-medium" | "body-lg-semibold" | "body-lg-bold" | "body-lg-underline" | "body-md" | "body-md-medium" | "body-md-semibold" | "body-md-bold" | "body-md-underline" | "body-sm" | "body-sm-medium" | "body-sm-semibold" | "body-sm-bold" | "body-sm-underline" | "body-xs" | "body-xs-medium" | "body-xs-semibold" | "body-xs-bold" | "body-xs-underline" | "accent-lg" | "accent-sm" | "core_1-125" | "core_1-14" | "core_1-20" | "core_1-25" | "core_1-33" | "core_1-4285" | "core_1-50", string>;
2157
- declare const FontFamilyMapping: Record<"core_primary" | "core_secondary" | "core_tertiary" | "heading-3xl" | "heading-2xl" | "heading-xl" | "heading-lg" | "heading-md" | "heading-sm" | "heading-xs" | "heading-xs-medium" | "overline" | "body-2xl" | "body-xl" | "body-lg" | "body-lg-medium" | "body-lg-semibold" | "body-lg-bold" | "body-lg-underline" | "body-md" | "body-md-medium" | "body-md-semibold" | "body-md-bold" | "body-md-underline" | "body-sm" | "body-sm-medium" | "body-sm-semibold" | "body-sm-bold" | "body-sm-underline" | "body-xs" | "body-xs-medium" | "body-xs-semibold" | "body-xs-bold" | "body-xs-underline" | "accent-lg" | "accent-sm", string>;
2158
- declare const BorderRadiusMapping: Record<"circle" | "core_0" | "core_1" | "core_2" | "core_3" | "core_4" | "core_9999" | "pill" | "rounded-lg" | "rounded-md" | "rounded-sm", string>;
2157
+ declare const FontFamilyMapping: Record<"heading-3xl" | "heading-2xl" | "heading-xl" | "heading-lg" | "heading-md" | "heading-sm" | "heading-xs" | "heading-xs-medium" | "overline" | "body-2xl" | "body-xl" | "body-lg" | "body-lg-medium" | "body-lg-semibold" | "body-lg-bold" | "body-lg-underline" | "body-md" | "body-md-medium" | "body-md-semibold" | "body-md-bold" | "body-md-underline" | "body-sm" | "body-sm-medium" | "body-sm-semibold" | "body-sm-bold" | "body-sm-underline" | "body-xs" | "body-xs-medium" | "body-xs-semibold" | "body-xs-bold" | "body-xs-underline" | "accent-lg" | "accent-sm" | "core_primary" | "core_secondary" | "core_tertiary", string>;
2158
+ declare const BorderRadiusMapping: Record<"core_0" | "core_1" | "core_2" | "core_3" | "core_4" | "core_9999" | "circle" | "pill" | "rounded-lg" | "rounded-md" | "rounded-sm", string>;
2159
2159
  declare const SpaceMapping: {
2160
+ core_160: string;
2161
+ core_240: string;
2162
+ core_320: string;
2163
+ core_480: string;
2164
+ core_400: string;
2160
2165
  core_0: string;
2161
2166
  core_10: string;
2162
2167
  core_20: string;
2163
2168
  core_40: string;
2164
2169
  core_80: string;
2165
- core_160: string;
2166
- core_240: string;
2167
- core_320: string;
2168
- core_400: string;
2169
- core_480: string;
2170
2170
  core_640: string;
2171
2171
  core_800: string;
2172
2172
  core_960: string;
2173
2173
  core_1280: string;
2174
2174
  };
2175
2175
  declare const SimplePaddingMapping: {
2176
+ core_160: string;
2177
+ core_240: string;
2178
+ core_320: string;
2179
+ core_480: string;
2180
+ core_400: string;
2176
2181
  core_0: string;
2177
2182
  core_10: string;
2178
2183
  core_20: string;
2179
2184
  core_40: string;
2180
2185
  core_80: string;
2181
- core_160: string;
2182
- core_240: string;
2183
- core_320: string;
2184
- core_400: string;
2185
- core_480: string;
2186
2186
  core_640: string;
2187
2187
  core_800: string;
2188
2188
  core_960: string;
@@ -2200,16 +2200,16 @@ declare const ComplexPaddingMapping: {
2200
2200
  "inset-stretch-sm": string;
2201
2201
  "inset-stretch-md": string;
2202
2202
  "inset-stretch-lg": string;
2203
+ core_160: string;
2204
+ core_240: string;
2205
+ core_320: string;
2206
+ core_480: string;
2207
+ core_400: string;
2203
2208
  core_0: string;
2204
2209
  core_10: string;
2205
2210
  core_20: string;
2206
2211
  core_40: string;
2207
2212
  core_80: string;
2208
- core_160: string;
2209
- core_240: string;
2210
- core_320: string;
2211
- core_400: string;
2212
- core_480: string;
2213
2213
  core_640: string;
2214
2214
  core_800: string;
2215
2215
  core_960: string;
@@ -2221,16 +2221,16 @@ declare const ComplexPaddingMapping: {
2221
2221
  "inset-xl": string;
2222
2222
  };
2223
2223
  declare const SimpleMarginMapping: {
2224
+ core_160: string;
2225
+ core_240: string;
2226
+ core_320: string;
2227
+ core_480: string;
2228
+ core_400: string;
2224
2229
  core_0: string;
2225
2230
  core_10: string;
2226
2231
  core_20: string;
2227
2232
  core_40: string;
2228
2233
  core_80: string;
2229
- core_160: string;
2230
- core_240: string;
2231
- core_320: string;
2232
- core_400: string;
2233
- core_480: string;
2234
2234
  core_640: string;
2235
2235
  core_800: string;
2236
2236
  core_960: string;
@@ -2247,16 +2247,16 @@ declare const SimpleMarginMapping: {
2247
2247
  "inline-xl": string;
2248
2248
  };
2249
2249
  declare const ComplexMarginMapping: {
2250
+ core_160: string;
2251
+ core_240: string;
2252
+ core_320: string;
2253
+ core_480: string;
2254
+ core_400: string;
2250
2255
  core_0: string;
2251
2256
  core_10: string;
2252
2257
  core_20: string;
2253
2258
  core_40: string;
2254
2259
  core_80: string;
2255
- core_160: string;
2256
- core_240: string;
2257
- core_320: string;
2258
- core_400: string;
2259
- core_480: string;
2260
2260
  core_640: string;
2261
2261
  core_800: string;
2262
2262
  core_960: string;
@@ -2296,16 +2296,16 @@ declare const SizingMapping: {
2296
2296
  "3/6": string;
2297
2297
  "4/6": string;
2298
2298
  "5/6": string;
2299
+ core_160: string;
2300
+ core_240: string;
2301
+ core_320: string;
2302
+ core_480: string;
2303
+ core_400: string;
2299
2304
  core_0: string;
2300
2305
  core_10: string;
2301
2306
  core_20: string;
2302
2307
  core_40: string;
2303
2308
  core_80: string;
2304
- core_160: string;
2305
- core_240: string;
2306
- core_320: string;
2307
- core_400: string;
2308
- core_480: string;
2309
2309
  core_640: string;
2310
2310
  core_800: string;
2311
2311
  core_960: string;
@@ -1,125 +1,125 @@
1
1
  /* css-module:/home/runner/work/wl-hopper/wl-hopper/packages/styled-system/src/UseStyledSystem.module.css/#css-module-data */
2
- .UseStyledSystem-module__hop-b-hover___X67pb:hover {
2
+ .UseStyledSystem-module__hop-b-hover___-uv5U:hover {
3
3
  --hop-b-hover: initial;
4
4
  border: var(--hop-b-hover) !important;
5
5
  }
6
- .UseStyledSystem-module__hop-bb-hover___MfJWq:hover {
6
+ .UseStyledSystem-module__hop-bb-hover___Nw9pk:hover {
7
7
  --hop-bb-hover: initial;
8
8
  border-bottom: var(--hop-bb-hover) !important;
9
9
  }
10
- .UseStyledSystem-module__hop-bl-hover___nWtAM:hover {
10
+ .UseStyledSystem-module__hop-bl-hover___ScFa8:hover {
11
11
  --hop-bl-hover: initial;
12
12
  border-left: var(--hop-bl-hover) !important;
13
13
  }
14
- .UseStyledSystem-module__hop-br-hover___BXYMY:hover {
14
+ .UseStyledSystem-module__hop-br-hover___nyZRP:hover {
15
15
  --hop-br-hover: initial;
16
16
  border-right: var(--hop-br-hover) !important;
17
17
  }
18
- .UseStyledSystem-module__hop-bt-hover___mUbSk:hover {
18
+ .UseStyledSystem-module__hop-bt-hover___mIvCc:hover {
19
19
  --hop-bt-hover: initial;
20
20
  border-top: var(--hop-bt-hover) !important;
21
21
  }
22
- .UseStyledSystem-module__hop-b-focus___aP7Oi:focus-visible {
22
+ .UseStyledSystem-module__hop-b-focus___QVDv2:focus-visible {
23
23
  --hop-b-focus: initial;
24
24
  border: var(--hop-b-focus) !important;
25
25
  }
26
- .UseStyledSystem-module__hop-bb-focus___XF9lp:focus-visible {
26
+ .UseStyledSystem-module__hop-bb-focus___2wtGI:focus-visible {
27
27
  --hop-bb-focus: initial;
28
28
  border-bottom: var(--hop-bb-focus) !important;
29
29
  }
30
- .UseStyledSystem-module__hop-bl-focus___aJJ2P:focus-visible {
30
+ .UseStyledSystem-module__hop-bl-focus___DdQyO:focus-visible {
31
31
  --hop-bl-focus: initial;
32
32
  border-left: var(--hop-bl-focus) !important;
33
33
  }
34
- .UseStyledSystem-module__hop-br-focus___gES2N:focus-visible {
34
+ .UseStyledSystem-module__hop-br-focus___l6hbv:focus-visible {
35
35
  --hop-br-focus: initial;
36
36
  border-right: var(--hop-br-focus) !important;
37
37
  }
38
- .UseStyledSystem-module__hop-bt-focus___0n1z3:focus-visible {
38
+ .UseStyledSystem-module__hop-bt-focus___lIHzR:focus-visible {
39
39
  --hop-bt-focus: initial;
40
40
  border-top: var(--hop-bt-focus) !important;
41
41
  }
42
- .UseStyledSystem-module__hop-b-active___kOfhP:active {
42
+ .UseStyledSystem-module__hop-b-active___FX491:active {
43
43
  --hop-b-active: initial;
44
44
  border: var(--hop-b-active) !important;
45
45
  }
46
- .UseStyledSystem-module__hop-bb-active___Oy6gA:active {
46
+ .UseStyledSystem-module__hop-bb-active___3p2de:active {
47
47
  --hop-bb-active: initial;
48
48
  border-bottom: var(--hop-bb-active) !important;
49
49
  }
50
- .UseStyledSystem-module__hop-bl-active___NH4P7:active {
50
+ .UseStyledSystem-module__hop-bl-active___bD5ln:active {
51
51
  --hop-bl-active: initial;
52
52
  border-left: var(--hop-bl-active) !important;
53
53
  }
54
- .UseStyledSystem-module__hop-br-active___qU8SO:active {
54
+ .UseStyledSystem-module__hop-br-active___Z2w-2:active {
55
55
  --hop-br-active: initial;
56
56
  border-right: var(--hop-br-active) !important;
57
57
  }
58
- .UseStyledSystem-module__hop-bt-active___G3GT0:active {
58
+ .UseStyledSystem-module__hop-bt-active___cXrGo:active {
59
59
  --hop-bt-active: initial;
60
60
  border-top: var(--hop-bt-active) !important;
61
61
  }
62
- .UseStyledSystem-module__hop-bg-hover___DUwk1:hover {
62
+ .UseStyledSystem-module__hop-bg-hover___IM2SP:hover {
63
63
  --hop-bg-hover: initial;
64
64
  background-color: var(--hop-bg-hover) !important;
65
65
  }
66
- .UseStyledSystem-module__hop-bg-focus___VU-3I:focus-visible {
66
+ .UseStyledSystem-module__hop-bg-focus___-8NKC:focus-visible {
67
67
  --hop-bg-focus: initial;
68
68
  background-color: var(--hop-bg-focus) !important;
69
69
  }
70
- .UseStyledSystem-module__hop-bg-active___idxA4:active {
70
+ .UseStyledSystem-module__hop-bg-active___PbRjo:active {
71
71
  --hop-bg-active: initial;
72
72
  background-color: var(--hop-bg-active) !important;
73
73
  }
74
- .UseStyledSystem-module__hop-bs-hover___9ubu-:hover {
74
+ .UseStyledSystem-module__hop-bs-hover___uRazj:hover {
75
75
  --hop-bs-hover: initial;
76
76
  box-shadow: var(--hop-bs-hover) !important;
77
77
  }
78
- .UseStyledSystem-module__hop-bs-focus___k3hRq:focus-visible {
78
+ .UseStyledSystem-module__hop-bs-focus___WPb5b:focus-visible {
79
79
  --hop-bs-focus: initial;
80
80
  box-shadow: var(--hop-bs-focus) !important;
81
81
  }
82
- .UseStyledSystem-module__hop-bs-active___87-J6:active {
82
+ .UseStyledSystem-module__hop-bs-active___d-Ztc:active {
83
83
  --hop-bs-active: initial;
84
84
  box-shadow: var(--hop-bs-active) !important;
85
85
  }
86
- .UseStyledSystem-module__hop-c-hover___4ibV3:hover {
86
+ .UseStyledSystem-module__hop-c-hover___jWw7H:hover {
87
87
  --hop-c-hover: initial;
88
88
  color: var(--hop-c-hover) !important;
89
89
  }
90
- .UseStyledSystem-module__hop-c-focus___a6fcM:focus-visible {
90
+ .UseStyledSystem-module__hop-c-focus___Y1k28:focus-visible {
91
91
  --hop-c-focus: initial;
92
92
  color: var(--hop-c-focus) !important;
93
93
  }
94
- .UseStyledSystem-module__hop-c-active___76Xn2:active {
94
+ .UseStyledSystem-module__hop-c-active___9usqR:active {
95
95
  --hop-c-active: initial;
96
96
  color: var(--hop-c-active) !important;
97
97
  }
98
- .UseStyledSystem-module__hop-cs-hover___aMCvn:hover {
98
+ .UseStyledSystem-module__hop-cs-hover___1iWyj:hover {
99
99
  --hop-cs-hover: initial;
100
100
  cursor: var(--hop-cs-hover) !important;
101
101
  }
102
- .UseStyledSystem-module__hop-f-hover___z6hl5:hover {
102
+ .UseStyledSystem-module__hop-f-hover___G8m3j:hover {
103
103
  --hop-f-hover: initial;
104
104
  fill: var(--hop-f-hover) !important;
105
105
  }
106
- .UseStyledSystem-module__hop-f-focus___Y71R2:focus-visible {
106
+ .UseStyledSystem-module__hop-f-focus___S7xBy:focus-visible {
107
107
  --hop-f-focus: initial;
108
108
  fill: var(--hop-f-focus) !important;
109
109
  }
110
- .UseStyledSystem-module__hop-o-hover___FtsIM:hover {
110
+ .UseStyledSystem-module__hop-o-hover___TuFfD:hover {
111
111
  --hop-o-hover: initial;
112
112
  opacity: var(--hop-o-hover) !important;
113
113
  }
114
- .UseStyledSystem-module__hop-o-focus___7KGdn:focus-visible {
114
+ .UseStyledSystem-module__hop-o-focus___CYGDn:focus-visible {
115
115
  --hop-o-focus: initial;
116
116
  opacity: var(--hop-o-focus) !important;
117
117
  }
118
- .UseStyledSystem-module__hop-o-active___DiuAQ:active {
118
+ .UseStyledSystem-module__hop-o-active___z5Riy:active {
119
119
  --hop-o-active: initial;
120
120
  opacity: var(--hop-o-active) !important;
121
121
  }
122
- .UseStyledSystem-module__hop-ol-focus___ScZWG:focus-visible {
122
+ .UseStyledSystem-module__hop-ol-focus___-9JTf:focus-visible {
123
123
  --hop-ol-focus: initial;
124
124
  color: var(--hop-ol-focus) !important;
125
125
  }
@@ -1,12 +1,13 @@
1
1
  import { CSSProperties } from 'react';
2
2
  import { Breakpoint } from './responsive/Breakpoints.js';
3
3
  import { ResponsiveProp } from './responsive/useResponsiveValue.js';
4
- import { StyledSystemProps } from './styledSystemProps.js';
4
+ import { StyledSystemProps, UnsafeStyledSystemProps } from './styledSystemProps.js';
5
5
  import 'csstype';
6
6
  import './tokens/tokenMappings.js';
7
7
 
8
8
  type PropHandler = (name: string, value: ResponsiveProp<string | number | string[]>, context: StylingContext) => void;
9
- declare const PropsHandlers: Record<string, PropHandler>;
9
+ type PropsHandlersKey = keyof Omit<StyledSystemProps, keyof UnsafeStyledSystemProps>;
10
+ declare const PropsHandlers: Record<PropsHandlersKey, PropHandler>;
10
11
  declare function isStyledSystemProp(name: string): name is keyof typeof PropsHandlers;
11
12
  declare class StylingContext {
12
13
  #private;
@@ -1,4 +1,4 @@
1
- export { isStyledSystemProp, useStyledSystem } from './chunk-KJNJQLNN.js';
1
+ export { isStyledSystemProp, useStyledSystem } from './chunk-VQE64NVW.js';
2
2
  import './chunk-7TNCJ3OQ.js';
3
3
  import './chunk-MSH55T2T.js';
4
4
  import './chunk-SFOVKOPG.js';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hopper-ui/styled-system",
3
3
  "author": "Workleap",
4
- "version": "2.5.8",
4
+ "version": "2.5.9",
5
5
  "description": "The styled-system package.",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {