@hopper-ui/styled-system 0.2.4 → 0.2.6
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/CHANGELOG.md +13 -0
- package/dist/StyledSystemProvider.css +34 -34
- package/dist/StyledSystemProvider.d.ts +1 -1
- package/dist/StyledSystemProvider.js +12 -12
- package/dist/{chunk-I7U75XRH.js → chunk-5XPS6ZZ7.js} +50 -29
- package/dist/{chunk-NTEKQGZI.js → chunk-7XB4VCCJ.js} +6 -6
- package/dist/{chunk-6Z3ODGLS.js → chunk-AMNZEPOY.js} +1 -1
- package/dist/{chunk-AHDDZ2BQ.js → chunk-B6ZBFYWJ.js} +1 -1
- package/dist/{chunk-Y5XP6E4D.js → chunk-BTJMZT3L.js} +1 -1
- package/dist/{chunk-LTBVOC66.js → chunk-HZFB352P.js} +18 -18
- package/dist/{chunk-XTX4KVWI.js → chunk-KLNF34G6.js} +1 -1
- package/dist/{chunk-STEDL5VQ.js → chunk-M4X2T3D3.js} +1 -1
- package/dist/{chunk-Z33MPMW6.js → chunk-MCUHAIA4.js} +2 -2
- package/dist/{chunk-HM4X5E4X.js → chunk-UTFGHZHA.js} +2 -2
- package/dist/{chunk-C3BQSQFB.js → chunk-Z7O4JONV.js} +2 -2
- package/dist/color-scheme/ColorSchemeContext.d.ts +1 -1
- package/dist/color-scheme/ColorSchemeContext.js +1 -1
- package/dist/color-scheme/useColorScheme.js +3 -3
- package/dist/color-scheme/useColorSchemeValue.js +1 -1
- package/dist/global-styles/BodyStyleProvider.js +4 -4
- package/dist/html-wrappers/html.css +34 -34
- package/dist/html-wrappers/html.d.ts +1 -1
- package/dist/html-wrappers/html.js +4 -4
- package/dist/html-wrappers/htmlElement.css +34 -34
- package/dist/html-wrappers/htmlElement.d.ts +1 -1
- package/dist/html-wrappers/htmlElement.js +3 -3
- package/dist/index.css +34 -34
- package/dist/index.js +12 -12
- package/dist/responsive/BreakpointContext.d.ts +1 -1
- package/dist/responsive/BreakpointContext.js +1 -1
- package/dist/responsive/BreakpointProvider.d.ts +1 -1
- package/dist/responsive/BreakpointProvider.js +3 -3
- package/dist/responsive/Breakpoints.d.ts +1 -1
- package/dist/responsive/Breakpoints.js +1 -1
- package/dist/responsive/useResponsiveValue.d.ts +1 -1
- package/dist/responsive/useResponsiveValue.js +1 -1
- package/dist/styled-system-props.d.ts +83 -3
- package/dist/styled-system-props.js +1 -1
- package/dist/styled-system-root-css-class.js +2 -2
- package/dist/tokens/TokenProvider.js +3 -3
- package/dist/tokens/generated/dark-semantic-tokens.js +1 -1
- package/dist/tokens/generated/light-semantic-tokens.js +1 -1
- package/dist/tokens/generated/styled-system-to-token-mappings.js +1 -1
- package/dist/tokens/token-mappings.d.ts +1 -1
- package/dist/tokens/token-mappings.js +1 -1
- package/dist/tokens/tokens.d.ts +1 -1
- package/dist/tokens/tokens.js +1 -1
- package/dist/useStyledSystem.css +31 -31
- package/dist/useStyledSystem.js +2 -2
- package/dist/utils/assertion.js +1 -1
- package/dist/utils/useInsertStyleElement.js +1 -1
- package/dist/utils/useIsomorphicInsertionEffect.js +1 -1
- package/dist/utils/useIsomorphicLayoutEffect.js +1 -1
- package/dist/utils/useMediaQuery.js +2 -2
- package/dist/utils/useThemeComputedStyle.js +2 -2
- package/package.json +19 -19
- /package/dist/{chunk-JFESGV6Z.js → chunk-6LX4VMOV.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @hopper-ui/styled-system
|
|
2
2
|
|
|
3
|
+
## 0.2.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 2639596: Updated some dependencies + move some to peer dependency.
|
|
8
|
+
Fixed a warning that was being thrown in the console regarding SSR.
|
|
9
|
+
|
|
10
|
+
## 0.2.5
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- f5729c5: Modified the isStyledSystemProps to returns true when the UNSAFE\_ props are passed
|
|
15
|
+
|
|
3
16
|
## 0.2.4
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -1,132 +1,132 @@
|
|
|
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-
|
|
2
|
+
.UseStyledSystem-module__hop-b-hover___GVP3r:hover {
|
|
3
3
|
--hop-b-hover: initial;
|
|
4
4
|
border: var(--hop-b-hover) !important;
|
|
5
5
|
}
|
|
6
|
-
.UseStyledSystem-module__hop-bb-
|
|
6
|
+
.UseStyledSystem-module__hop-bb-hover___idnOk:hover {
|
|
7
7
|
--hop-bb-hover: initial;
|
|
8
8
|
border-bottom: var(--hop-bb-hover) !important;
|
|
9
9
|
}
|
|
10
|
-
.UseStyledSystem-module__hop-bl-
|
|
10
|
+
.UseStyledSystem-module__hop-bl-hover___xhKyA:hover {
|
|
11
11
|
--hop-bl-hover: initial;
|
|
12
12
|
border-left: var(--hop-bl-hover) !important;
|
|
13
13
|
}
|
|
14
|
-
.UseStyledSystem-module__hop-br-
|
|
14
|
+
.UseStyledSystem-module__hop-br-hover___qYvoG:hover {
|
|
15
15
|
--hop-br-hover: initial;
|
|
16
16
|
border-right: var(--hop-br-hover) !important;
|
|
17
17
|
}
|
|
18
|
-
.UseStyledSystem-module__hop-bt-
|
|
18
|
+
.UseStyledSystem-module__hop-bt-hover___3HGdJ:hover {
|
|
19
19
|
--hop-bt-hover: initial;
|
|
20
20
|
border-top: var(--hop-bt-hover) !important;
|
|
21
21
|
}
|
|
22
|
-
.UseStyledSystem-module__hop-b-
|
|
22
|
+
.UseStyledSystem-module__hop-b-focus___v2Wwi:focus-visible {
|
|
23
23
|
--hop-b-focus: initial;
|
|
24
24
|
border: var(--hop-b-focus) !important;
|
|
25
25
|
}
|
|
26
|
-
.UseStyledSystem-module__hop-bb-
|
|
26
|
+
.UseStyledSystem-module__hop-bb-focus___itBFq:focus-visible {
|
|
27
27
|
--hop-bb-focus: initial;
|
|
28
28
|
border-bottom: var(--hop-bb-focus) !important;
|
|
29
29
|
}
|
|
30
|
-
.UseStyledSystem-module__hop-bl-
|
|
30
|
+
.UseStyledSystem-module__hop-bl-focus___dT6WS:focus-visible {
|
|
31
31
|
--hop-bl-focus: initial;
|
|
32
32
|
border-left: var(--hop-bl-focus) !important;
|
|
33
33
|
}
|
|
34
|
-
.UseStyledSystem-module__hop-br-
|
|
34
|
+
.UseStyledSystem-module__hop-br-focus___FPZjN:focus-visible {
|
|
35
35
|
--hop-br-focus: initial;
|
|
36
36
|
border-right: var(--hop-br-focus) !important;
|
|
37
37
|
}
|
|
38
|
-
.UseStyledSystem-module__hop-bt-
|
|
38
|
+
.UseStyledSystem-module__hop-bt-focus___SBwfM:focus-visible {
|
|
39
39
|
--hop-bt-focus: initial;
|
|
40
40
|
border-top: var(--hop-bt-focus) !important;
|
|
41
41
|
}
|
|
42
|
-
.UseStyledSystem-module__hop-b-
|
|
42
|
+
.UseStyledSystem-module__hop-b-active___vI8-0:active {
|
|
43
43
|
--hop-b-active: initial;
|
|
44
44
|
border: var(--hop-b-active) !important;
|
|
45
45
|
}
|
|
46
|
-
.UseStyledSystem-module__hop-bb-
|
|
46
|
+
.UseStyledSystem-module__hop-bb-active___50sg5:active {
|
|
47
47
|
--hop-bb-active: initial;
|
|
48
48
|
border-bottom: var(--hop-bb-active) !important;
|
|
49
49
|
}
|
|
50
|
-
.UseStyledSystem-module__hop-bl-
|
|
50
|
+
.UseStyledSystem-module__hop-bl-active___jTAz1:active {
|
|
51
51
|
--hop-bl-active: initial;
|
|
52
52
|
border-left: var(--hop-bl-active) !important;
|
|
53
53
|
}
|
|
54
|
-
.UseStyledSystem-module__hop-br-
|
|
54
|
+
.UseStyledSystem-module__hop-br-active___0EeBh:active {
|
|
55
55
|
--hop-br-active: initial;
|
|
56
56
|
border-right: var(--hop-br-active) !important;
|
|
57
57
|
}
|
|
58
|
-
.UseStyledSystem-module__hop-bt-
|
|
58
|
+
.UseStyledSystem-module__hop-bt-active___RXq33:active {
|
|
59
59
|
--hop-bt-active: initial;
|
|
60
60
|
border-top: var(--hop-bt-active) !important;
|
|
61
61
|
}
|
|
62
|
-
.UseStyledSystem-module__hop-bg-
|
|
62
|
+
.UseStyledSystem-module__hop-bg-hover___w134R:hover {
|
|
63
63
|
--hop-bg-hover: initial;
|
|
64
64
|
background-color: var(--hop-bg-hover) !important;
|
|
65
65
|
}
|
|
66
|
-
.UseStyledSystem-module__hop-bg-
|
|
66
|
+
.UseStyledSystem-module__hop-bg-focus___GcLCI:focus-visible {
|
|
67
67
|
--hop-bg-focus: initial;
|
|
68
68
|
background-color: var(--hop-bg-focus) !important;
|
|
69
69
|
}
|
|
70
|
-
.UseStyledSystem-module__hop-bg-
|
|
70
|
+
.UseStyledSystem-module__hop-bg-active___rdOhL:active {
|
|
71
71
|
--hop-bg-active: initial;
|
|
72
72
|
background-color: var(--hop-bg-active) !important;
|
|
73
73
|
}
|
|
74
|
-
.UseStyledSystem-module__hop-bs-
|
|
74
|
+
.UseStyledSystem-module__hop-bs-hover___y-aEQ:hover {
|
|
75
75
|
--hop-bs-hover: initial;
|
|
76
76
|
box-shadow: var(--hop-bs-hover) !important;
|
|
77
77
|
}
|
|
78
|
-
.UseStyledSystem-module__hop-bs-
|
|
78
|
+
.UseStyledSystem-module__hop-bs-focus___qMKoc:focus-visible {
|
|
79
79
|
--hop-bs-focus: initial;
|
|
80
80
|
box-shadow: var(--hop-bs-focus) !important;
|
|
81
81
|
}
|
|
82
|
-
.UseStyledSystem-module__hop-bs-
|
|
82
|
+
.UseStyledSystem-module__hop-bs-active___8MtLu:active {
|
|
83
83
|
--hop-bs-active: initial;
|
|
84
84
|
box-shadow: var(--hop-bs-active) !important;
|
|
85
85
|
}
|
|
86
|
-
.UseStyledSystem-module__hop-c-
|
|
86
|
+
.UseStyledSystem-module__hop-c-hover___m3q2O:hover {
|
|
87
87
|
--hop-c-hover: initial;
|
|
88
88
|
color: var(--hop-c-hover) !important;
|
|
89
89
|
}
|
|
90
|
-
.UseStyledSystem-module__hop-c-
|
|
90
|
+
.UseStyledSystem-module__hop-c-focus___ToVnJ:focus-visible {
|
|
91
91
|
--hop-c-focus: initial;
|
|
92
92
|
color: var(--hop-c-focus) !important;
|
|
93
93
|
}
|
|
94
|
-
.UseStyledSystem-module__hop-c-
|
|
94
|
+
.UseStyledSystem-module__hop-c-active___PorM-:active {
|
|
95
95
|
--hop-c-active: initial;
|
|
96
96
|
color: var(--hop-c-active) !important;
|
|
97
97
|
}
|
|
98
|
-
.UseStyledSystem-module__hop-cs-
|
|
98
|
+
.UseStyledSystem-module__hop-cs-hover___lQTKe:hover {
|
|
99
99
|
--hop-cs-hover: initial;
|
|
100
100
|
cursor: var(--hop-cs-hover) !important;
|
|
101
101
|
}
|
|
102
|
-
.UseStyledSystem-module__hop-f-
|
|
102
|
+
.UseStyledSystem-module__hop-f-hover___KvbSc:hover {
|
|
103
103
|
--hop-f-hover: initial;
|
|
104
104
|
fill: var(--hop-f-hover) !important;
|
|
105
105
|
}
|
|
106
|
-
.UseStyledSystem-module__hop-f-
|
|
106
|
+
.UseStyledSystem-module__hop-f-focus___eFUxf:focus-visible {
|
|
107
107
|
--hop-f-focus: initial;
|
|
108
108
|
fill: var(--hop-f-focus) !important;
|
|
109
109
|
}
|
|
110
|
-
.UseStyledSystem-module__hop-o-
|
|
110
|
+
.UseStyledSystem-module__hop-o-hover___WyG8r:hover {
|
|
111
111
|
--hop-o-hover: initial;
|
|
112
112
|
opacity: var(--hop-o-hover) !important;
|
|
113
113
|
}
|
|
114
|
-
.UseStyledSystem-module__hop-o-
|
|
114
|
+
.UseStyledSystem-module__hop-o-focus___NDLtq:focus-visible {
|
|
115
115
|
--hop-o-focus: initial;
|
|
116
116
|
opacity: var(--hop-o-focus) !important;
|
|
117
117
|
}
|
|
118
|
-
.UseStyledSystem-module__hop-o-
|
|
118
|
+
.UseStyledSystem-module__hop-o-active___L-qyl:active {
|
|
119
119
|
--hop-o-active: initial;
|
|
120
120
|
opacity: var(--hop-o-active) !important;
|
|
121
121
|
}
|
|
122
|
-
.UseStyledSystem-module__hop-ol-
|
|
122
|
+
.UseStyledSystem-module__hop-ol-focus___Yw8fd:focus-visible {
|
|
123
123
|
--hop-ol-focus: initial;
|
|
124
124
|
color: var(--hop-ol-focus) !important;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
/* css-module:/home/runner/work/wl-hopper/wl-hopper/packages/styled-system/src/html-wrappers/htmlElement.module.css/#css-module-data */
|
|
128
|
-
:where(.htmlElement-module__html-
|
|
129
|
-
:where(.htmlElement-module__html-
|
|
130
|
-
:where(.htmlElement-module__html-
|
|
128
|
+
:where(.htmlElement-module__html-element___mTHcW),
|
|
129
|
+
:where(.htmlElement-module__html-element___mTHcW::after),
|
|
130
|
+
:where(.htmlElement-module__html-element___mTHcW::before) {
|
|
131
131
|
box-sizing: border-box;
|
|
132
132
|
}
|
|
@@ -40,4 +40,4 @@ interface StyledSystemProviderProps extends BreakpointProviderProps, DivProps {
|
|
|
40
40
|
*/
|
|
41
41
|
declare function StyledSystemProvider({ children, withBodyStyle, withCssVariables, colorScheme, defaultColorScheme, unsupportedMatchMediaBreakpoint, className, ...rest }: StyledSystemProviderProps): react_jsx_runtime.JSX.Element;
|
|
42
42
|
|
|
43
|
-
export { StyledSystemProvider, StyledSystemProviderProps };
|
|
43
|
+
export { StyledSystemProvider, type StyledSystemProviderProps };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export { StyledSystemProvider } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-HM4X5E4X.js';
|
|
4
|
-
import './chunk-C3BQSQFB.js';
|
|
1
|
+
export { StyledSystemProvider } from './chunk-7XB4VCCJ.js';
|
|
2
|
+
import './chunk-Z7O4JONV.js';
|
|
5
3
|
import './chunk-3YM73BQP.js';
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
4
|
+
import './chunk-B6ZBFYWJ.js';
|
|
5
|
+
import './chunk-BTJMZT3L.js';
|
|
6
|
+
import './chunk-UTFGHZHA.js';
|
|
7
|
+
import './chunk-MCUHAIA4.js';
|
|
8
|
+
import './chunk-AMNZEPOY.js';
|
|
9
9
|
import './chunk-A47SIZVA.js';
|
|
10
10
|
import './chunk-ZKEMKHXY.js';
|
|
11
11
|
import './chunk-HAB2KYRH.js';
|
|
12
12
|
import './chunk-RIORU7JO.js';
|
|
13
13
|
import './chunk-YPIK2HRL.js';
|
|
14
|
-
import './chunk-
|
|
15
|
-
import './chunk-
|
|
14
|
+
import './chunk-HZFB352P.js';
|
|
15
|
+
import './chunk-5XPS6ZZ7.js';
|
|
16
16
|
import './chunk-T2LQYER5.js';
|
|
17
17
|
import './chunk-PCGVOTW3.js';
|
|
18
18
|
import './chunk-SFOVKOPG.js';
|
|
@@ -20,7 +20,7 @@ import './chunk-VBKLISDI.js';
|
|
|
20
20
|
import './chunk-XUHDFZZL.js';
|
|
21
21
|
import './chunk-U5R6ZXH3.js';
|
|
22
22
|
import './chunk-I37Y2R7V.js';
|
|
23
|
-
import './chunk-
|
|
24
|
-
import './chunk-
|
|
23
|
+
import './chunk-KLNF34G6.js';
|
|
24
|
+
import './chunk-M4X2T3D3.js';
|
|
25
25
|
import './chunk-V7X6ANEM.js';
|
|
26
|
-
import './chunk-
|
|
26
|
+
import './chunk-6LX4VMOV.js';
|
|
@@ -3,11 +3,11 @@ import { parseResponsiveValue } from './chunk-SFOVKOPG.js';
|
|
|
3
3
|
import { useBreakpointContext } from './chunk-VBKLISDI.js';
|
|
4
4
|
import { isNil } from './chunk-U5R6ZXH3.js';
|
|
5
5
|
import { UnsafePrefix } from './chunk-I37Y2R7V.js';
|
|
6
|
-
import { __privateAdd, __publicField, __privateSet, __privateGet } from './chunk-
|
|
6
|
+
import { __privateAdd, __publicField, __privateSet, __privateGet } from './chunk-6LX4VMOV.js';
|
|
7
7
|
import { useMemo } from 'react';
|
|
8
8
|
|
|
9
9
|
// css-module:./UseStyledSystem.module.css#css-module
|
|
10
|
-
var UseStyledSystem_module_default = { "hop-b-hover": "UseStyledSystem-module__hop-b-
|
|
10
|
+
var UseStyledSystem_module_default = { "hop-b-hover": "UseStyledSystem-module__hop-b-hover___GVP3r", "hop-bb-hover": "UseStyledSystem-module__hop-bb-hover___idnOk", "hop-bl-hover": "UseStyledSystem-module__hop-bl-hover___xhKyA", "hop-br-hover": "UseStyledSystem-module__hop-br-hover___qYvoG", "hop-bt-hover": "UseStyledSystem-module__hop-bt-hover___3HGdJ", "hop-b-focus": "UseStyledSystem-module__hop-b-focus___v2Wwi", "hop-bb-focus": "UseStyledSystem-module__hop-bb-focus___itBFq", "hop-bl-focus": "UseStyledSystem-module__hop-bl-focus___dT6WS", "hop-br-focus": "UseStyledSystem-module__hop-br-focus___FPZjN", "hop-bt-focus": "UseStyledSystem-module__hop-bt-focus___SBwfM", "hop-b-active": "UseStyledSystem-module__hop-b-active___vI8-0", "hop-bb-active": "UseStyledSystem-module__hop-bb-active___50sg5", "hop-bl-active": "UseStyledSystem-module__hop-bl-active___jTAz1", "hop-br-active": "UseStyledSystem-module__hop-br-active___0EeBh", "hop-bt-active": "UseStyledSystem-module__hop-bt-active___RXq33", "hop-bg-hover": "UseStyledSystem-module__hop-bg-hover___w134R", "hop-bg-focus": "UseStyledSystem-module__hop-bg-focus___GcLCI", "hop-bg-active": "UseStyledSystem-module__hop-bg-active___rdOhL", "hop-bs-hover": "UseStyledSystem-module__hop-bs-hover___y-aEQ", "hop-bs-focus": "UseStyledSystem-module__hop-bs-focus___qMKoc", "hop-bs-active": "UseStyledSystem-module__hop-bs-active___8MtLu", "hop-c-hover": "UseStyledSystem-module__hop-c-hover___m3q2O", "hop-c-focus": "UseStyledSystem-module__hop-c-focus___ToVnJ", "hop-c-active": "UseStyledSystem-module__hop-c-active___PorM-", "hop-cs-hover": "UseStyledSystem-module__hop-cs-hover___lQTKe", "hop-f-hover": "UseStyledSystem-module__hop-f-hover___KvbSc", "hop-f-focus": "UseStyledSystem-module__hop-f-focus___eFUxf", "hop-o-hover": "UseStyledSystem-module__hop-o-hover___WyG8r", "hop-o-focus": "UseStyledSystem-module__hop-o-focus___NDLtq", "hop-o-active": "UseStyledSystem-module__hop-o-active___L-qyl", "hop-ol-focus": "UseStyledSystem-module__hop-ol-focus___Yw8fd" };
|
|
11
11
|
|
|
12
12
|
// src/useStyledSystem.ts
|
|
13
13
|
function createSystemValueHandler(systemValues) {
|
|
@@ -234,7 +234,8 @@ var PropsHandlers = {
|
|
|
234
234
|
zIndex: createPassthroughHandler()
|
|
235
235
|
};
|
|
236
236
|
function isStyledSystemProp(name) {
|
|
237
|
-
|
|
237
|
+
const cssProperty = name.replace(UnsafePrefix, "");
|
|
238
|
+
return !isNil(PropsHandlers[cssProperty]);
|
|
238
239
|
}
|
|
239
240
|
var _classes, _style;
|
|
240
241
|
var StylingContext = class {
|
|
@@ -279,6 +280,7 @@ function useStyledSystem(props) {
|
|
|
279
280
|
backgroundRepeat,
|
|
280
281
|
backgroundSize,
|
|
281
282
|
border,
|
|
283
|
+
borderActive,
|
|
282
284
|
borderBottom,
|
|
283
285
|
borderBottomActive,
|
|
284
286
|
borderBottomFocus,
|
|
@@ -287,7 +289,6 @@ function useStyledSystem(props) {
|
|
|
287
289
|
borderBottomRightRadius,
|
|
288
290
|
borderFocus,
|
|
289
291
|
borderHover,
|
|
290
|
-
borderActive,
|
|
291
292
|
borderLeft,
|
|
292
293
|
borderLeftActive,
|
|
293
294
|
borderLeftFocus,
|
|
@@ -401,17 +402,10 @@ function useStyledSystem(props) {
|
|
|
401
402
|
textOverflow,
|
|
402
403
|
textTransform,
|
|
403
404
|
top,
|
|
404
|
-
transition,
|
|
405
405
|
transform,
|
|
406
406
|
transformOrigin,
|
|
407
407
|
transformStyle,
|
|
408
|
-
|
|
409
|
-
visibility,
|
|
410
|
-
whiteSpace,
|
|
411
|
-
width,
|
|
412
|
-
willChange,
|
|
413
|
-
wordBreak,
|
|
414
|
-
zIndex,
|
|
408
|
+
transition,
|
|
415
409
|
UNSAFE_backgroundColor,
|
|
416
410
|
UNSAFE_backgroundColorActive,
|
|
417
411
|
UNSAFE_backgroundColorFocus,
|
|
@@ -442,15 +436,25 @@ function useStyledSystem(props) {
|
|
|
442
436
|
UNSAFE_borderTopLeftRadius,
|
|
443
437
|
UNSAFE_borderTopRightRadius,
|
|
444
438
|
UNSAFE_boxShadow,
|
|
439
|
+
UNSAFE_boxShadowActive,
|
|
440
|
+
UNSAFE_boxShadowFocus,
|
|
441
|
+
UNSAFE_boxShadowHover,
|
|
445
442
|
UNSAFE_color,
|
|
443
|
+
UNSAFE_colorActive,
|
|
444
|
+
UNSAFE_colorFocus,
|
|
445
|
+
UNSAFE_colorHover,
|
|
446
446
|
UNSAFE_columnGap,
|
|
447
447
|
UNSAFE_fill,
|
|
448
|
+
UNSAFE_fillFocus,
|
|
449
|
+
UNSAFE_fillHover,
|
|
448
450
|
UNSAFE_fontFamily,
|
|
449
451
|
UNSAFE_fontSize,
|
|
450
452
|
UNSAFE_fontWeight,
|
|
451
453
|
UNSAFE_gap,
|
|
452
454
|
UNSAFE_gridAutoColumns,
|
|
453
455
|
UNSAFE_gridAutoRows,
|
|
456
|
+
UNSAFE_gridColumnSpan,
|
|
457
|
+
UNSAFE_gridRowSpan,
|
|
454
458
|
UNSAFE_gridTemplateColumns,
|
|
455
459
|
UNSAFE_gridTemplateRows,
|
|
456
460
|
UNSAFE_height,
|
|
@@ -476,6 +480,13 @@ function useStyledSystem(props) {
|
|
|
476
480
|
UNSAFE_rowGap,
|
|
477
481
|
UNSAFE_stroke,
|
|
478
482
|
UNSAFE_width,
|
|
483
|
+
verticalAlign,
|
|
484
|
+
visibility,
|
|
485
|
+
whiteSpace,
|
|
486
|
+
width,
|
|
487
|
+
willChange,
|
|
488
|
+
wordBreak,
|
|
489
|
+
zIndex,
|
|
479
490
|
...rest
|
|
480
491
|
} = props;
|
|
481
492
|
const { matchedBreakpoints } = useBreakpointContext();
|
|
@@ -506,14 +517,20 @@ function useStyledSystem(props) {
|
|
|
506
517
|
backgroundRepeat,
|
|
507
518
|
backgroundSize,
|
|
508
519
|
border,
|
|
520
|
+
borderActive,
|
|
509
521
|
borderBottom,
|
|
510
522
|
borderBottomActive,
|
|
511
523
|
borderBottomFocus,
|
|
512
524
|
borderBottomHover,
|
|
525
|
+
borderBottomLeftRadius,
|
|
526
|
+
borderBottomRightRadius,
|
|
527
|
+
borderFocus,
|
|
528
|
+
borderHover,
|
|
513
529
|
borderLeft,
|
|
514
530
|
borderLeftActive,
|
|
515
531
|
borderLeftFocus,
|
|
516
532
|
borderLeftHover,
|
|
533
|
+
borderRadius,
|
|
517
534
|
borderRight,
|
|
518
535
|
borderRightActive,
|
|
519
536
|
borderRightFocus,
|
|
@@ -522,20 +539,13 @@ function useStyledSystem(props) {
|
|
|
522
539
|
borderTopActive,
|
|
523
540
|
borderTopFocus,
|
|
524
541
|
borderTopHover,
|
|
525
|
-
borderActive,
|
|
526
|
-
borderFocus,
|
|
527
|
-
borderHover,
|
|
528
|
-
borderRadius,
|
|
529
|
-
borderBottomLeftRadius,
|
|
530
|
-
borderBottomRightRadius,
|
|
531
542
|
borderTopLeftRadius,
|
|
532
543
|
borderTopRightRadius,
|
|
544
|
+
bottom,
|
|
533
545
|
boxShadow,
|
|
534
546
|
boxShadowActive,
|
|
535
547
|
boxShadowFocus,
|
|
536
548
|
boxShadowHover,
|
|
537
|
-
bottom,
|
|
538
|
-
matchedBreakpoints,
|
|
539
549
|
className,
|
|
540
550
|
color,
|
|
541
551
|
colorActive,
|
|
@@ -594,6 +604,7 @@ function useStyledSystem(props) {
|
|
|
594
604
|
marginTop,
|
|
595
605
|
marginX,
|
|
596
606
|
marginY,
|
|
607
|
+
matchedBreakpoints,
|
|
597
608
|
maxHeight,
|
|
598
609
|
maxWidth,
|
|
599
610
|
minHeight,
|
|
@@ -629,17 +640,10 @@ function useStyledSystem(props) {
|
|
|
629
640
|
textOverflow,
|
|
630
641
|
textTransform,
|
|
631
642
|
top,
|
|
632
|
-
transition,
|
|
633
643
|
transform,
|
|
634
644
|
transformOrigin,
|
|
635
645
|
transformStyle,
|
|
636
|
-
|
|
637
|
-
visibility,
|
|
638
|
-
whiteSpace,
|
|
639
|
-
width,
|
|
640
|
-
willChange,
|
|
641
|
-
wordBreak,
|
|
642
|
-
zIndex,
|
|
646
|
+
transition,
|
|
643
647
|
UNSAFE_backgroundColor,
|
|
644
648
|
UNSAFE_backgroundColorActive,
|
|
645
649
|
UNSAFE_backgroundColorFocus,
|
|
@@ -670,15 +674,25 @@ function useStyledSystem(props) {
|
|
|
670
674
|
UNSAFE_borderTopLeftRadius,
|
|
671
675
|
UNSAFE_borderTopRightRadius,
|
|
672
676
|
UNSAFE_boxShadow,
|
|
677
|
+
UNSAFE_boxShadowActive,
|
|
678
|
+
UNSAFE_boxShadowFocus,
|
|
679
|
+
UNSAFE_boxShadowHover,
|
|
673
680
|
UNSAFE_color,
|
|
681
|
+
UNSAFE_colorActive,
|
|
682
|
+
UNSAFE_colorFocus,
|
|
683
|
+
UNSAFE_colorHover,
|
|
674
684
|
UNSAFE_columnGap,
|
|
675
685
|
UNSAFE_fill,
|
|
686
|
+
UNSAFE_fillFocus,
|
|
687
|
+
UNSAFE_fillHover,
|
|
676
688
|
UNSAFE_fontFamily,
|
|
677
689
|
UNSAFE_fontSize,
|
|
678
690
|
UNSAFE_fontWeight,
|
|
679
691
|
UNSAFE_gap,
|
|
680
692
|
UNSAFE_gridAutoColumns,
|
|
681
693
|
UNSAFE_gridAutoRows,
|
|
694
|
+
UNSAFE_gridColumnSpan,
|
|
695
|
+
UNSAFE_gridRowSpan,
|
|
682
696
|
UNSAFE_gridTemplateColumns,
|
|
683
697
|
UNSAFE_gridTemplateRows,
|
|
684
698
|
UNSAFE_height,
|
|
@@ -703,7 +717,14 @@ function useStyledSystem(props) {
|
|
|
703
717
|
UNSAFE_paddingY,
|
|
704
718
|
UNSAFE_rowGap,
|
|
705
719
|
UNSAFE_stroke,
|
|
706
|
-
UNSAFE_width
|
|
720
|
+
UNSAFE_width,
|
|
721
|
+
verticalAlign,
|
|
722
|
+
visibility,
|
|
723
|
+
whiteSpace,
|
|
724
|
+
width,
|
|
725
|
+
willChange,
|
|
726
|
+
wordBreak,
|
|
727
|
+
zIndex
|
|
707
728
|
]);
|
|
708
729
|
return {
|
|
709
730
|
...rest,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { BreakpointProvider, DefaultUnsupportedMatchMediaBreakpoint } from './chunk-
|
|
4
|
-
import { TokenProvider } from './chunk-
|
|
5
|
-
import { HopperRootCssClass, StyledSystemRootCssClass } from './chunk-
|
|
6
|
-
import { useColorScheme } from './chunk-
|
|
1
|
+
import { BodyStyleProvider } from './chunk-Z7O4JONV.js';
|
|
2
|
+
import { Div } from './chunk-BTJMZT3L.js';
|
|
3
|
+
import { BreakpointProvider, DefaultUnsupportedMatchMediaBreakpoint } from './chunk-MCUHAIA4.js';
|
|
4
|
+
import { TokenProvider } from './chunk-AMNZEPOY.js';
|
|
5
|
+
import { HopperRootCssClass, StyledSystemRootCssClass } from './chunk-HZFB352P.js';
|
|
6
|
+
import { useColorScheme } from './chunk-KLNF34G6.js';
|
|
7
7
|
import { ColorSchemeContext } from './chunk-V7X6ANEM.js';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import { useState, useCallback } from 'react';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Tokens } from './chunk-A47SIZVA.js';
|
|
2
2
|
import { useInsertStyleElement } from './chunk-RIORU7JO.js';
|
|
3
|
-
import { StyledSystemRootCssClass } from './chunk-
|
|
3
|
+
import { StyledSystemRootCssClass } from './chunk-HZFB352P.js';
|
|
4
4
|
|
|
5
5
|
// src/tokens/TokenProvider.tsx
|
|
6
6
|
function TokenProvider() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isNil } from './chunk-U5R6ZXH3.js';
|
|
2
|
-
import { __privateAdd, __privateSet, __privateGet } from './chunk-
|
|
2
|
+
import { __privateAdd, __privateSet, __privateGet } from './chunk-6LX4VMOV.js';
|
|
3
3
|
|
|
4
4
|
// src/utils/useThemeComputedStyle.ts
|
|
5
5
|
var _componentRef, _scope;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var package_default = {
|
|
3
3
|
name: "@hopper-ui/styled-system",
|
|
4
4
|
author: "Workleap",
|
|
5
|
-
version: "0.2.
|
|
5
|
+
version: "0.2.6",
|
|
6
6
|
description: "The styled-system package.",
|
|
7
7
|
license: "Apache-2.0",
|
|
8
8
|
repository: {
|
|
@@ -44,36 +44,36 @@ var package_default = {
|
|
|
44
44
|
"react-dom": "*"
|
|
45
45
|
},
|
|
46
46
|
dependencies: {
|
|
47
|
-
clsx: "2.
|
|
48
|
-
"react-aria": "3.
|
|
47
|
+
clsx: "^2.1.0",
|
|
48
|
+
"@react-aria/ssr": "^3.9.1"
|
|
49
49
|
},
|
|
50
50
|
devDependencies: {
|
|
51
51
|
"@hopper-ui/tokens": "workspace:*",
|
|
52
|
-
"@swc/core": "1.3.
|
|
52
|
+
"@swc/core": "1.3.106",
|
|
53
53
|
"@swc/helpers": "0.5.3",
|
|
54
|
-
"@swc/jest": "0.2.
|
|
55
|
-
"@testing-library/jest-dom": "6.
|
|
56
|
-
"@testing-library/react": "14.1.
|
|
57
|
-
"@types/jest": "29.5.
|
|
58
|
-
"@types/react
|
|
59
|
-
"@types/react-
|
|
60
|
-
"@types/react": "18.
|
|
54
|
+
"@swc/jest": "0.2.31",
|
|
55
|
+
"@testing-library/jest-dom": "6.3.0",
|
|
56
|
+
"@testing-library/react": "14.1.2",
|
|
57
|
+
"@types/jest": "29.5.11",
|
|
58
|
+
"@types/react": "18.2.48",
|
|
59
|
+
"@types/react-dom": "18.2.18",
|
|
60
|
+
"@types/react-test-renderer": "18.0.7",
|
|
61
61
|
"@workleap/eslint-plugin": "3.0.0",
|
|
62
62
|
"@workleap/swc-configs": "2.1.2",
|
|
63
63
|
"@workleap/tsup-configs": "3.0.1",
|
|
64
64
|
"@workleap/typescript-configs": "3.0.2",
|
|
65
65
|
"identity-obj-proxy": "3.0.0",
|
|
66
|
-
"jest-environment-jsdom": "29.7.0",
|
|
67
66
|
jest: "29.7.0",
|
|
67
|
+
"jest-environment-jsdom": "29.7.0",
|
|
68
|
+
postcss: "8.4.33",
|
|
68
69
|
"postcss-modules": "6.0.0",
|
|
69
|
-
|
|
70
|
+
react: "18.2.0",
|
|
70
71
|
"react-dom": "18.2.0",
|
|
71
72
|
"react-test-renderer": "18.2.0",
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
typescript: "5.2.2"
|
|
73
|
+
"ts-jest": "29.1.2",
|
|
74
|
+
tsup: "8.0.1",
|
|
75
|
+
"type-fest": "4.10.1",
|
|
76
|
+
typescript: "5.3.3"
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
79
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BreakpointContext } from './chunk-VBKLISDI.js';
|
|
2
2
|
import { Breakpoints } from './chunk-XUHDFZZL.js';
|
|
3
|
-
import { supportsMatchMedia } from './chunk-
|
|
3
|
+
import { supportsMatchMedia } from './chunk-M4X2T3D3.js';
|
|
4
4
|
import { useCallback, useState, useEffect } from 'react';
|
|
5
|
-
import { useIsSSR } from 'react-aria';
|
|
5
|
+
import { useIsSSR } from '@react-aria/ssr';
|
|
6
6
|
import { jsx } from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
var DefaultUnsupportedMatchMediaBreakpoint = "lg";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { useStyledSystem } from './chunk-
|
|
1
|
+
import { useStyledSystem } from './chunk-5XPS6ZZ7.js';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
6
|
// css-module:./htmlElement.module.css#css-module
|
|
7
|
-
var htmlElement_module_default = { "html-element": "htmlElement-module__html-
|
|
7
|
+
var htmlElement_module_default = { "html-element": "htmlElement-module__html-element___mTHcW" };
|
|
8
8
|
function htmlElement(elementType) {
|
|
9
9
|
return forwardRef((props, ref) => {
|
|
10
10
|
const { className, children, ...rest } = useStyledSystem(props);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useIsomorphicLayoutEffect } from './chunk-3YM73BQP.js';
|
|
2
|
-
import { ThemeComputedStyle } from './chunk-
|
|
2
|
+
import { ThemeComputedStyle } from './chunk-B6ZBFYWJ.js';
|
|
3
3
|
import { useInsertStyleElement } from './chunk-RIORU7JO.js';
|
|
4
|
-
import { StyledSystemRootCssClass } from './chunk-
|
|
4
|
+
import { StyledSystemRootCssClass } from './chunk-HZFB352P.js';
|
|
5
5
|
import { isNil } from './chunk-U5R6ZXH3.js';
|
|
6
6
|
import { useColorSchemeContext } from './chunk-V7X6ANEM.js';
|
|
7
7
|
import { useRef, useState } from 'react';
|
|
@@ -9,4 +9,4 @@ interface ColorSchemeContextType {
|
|
|
9
9
|
declare const ColorSchemeContext: react.Context<ColorSchemeContextType>;
|
|
10
10
|
declare function useColorSchemeContext(): ColorSchemeContextType;
|
|
11
11
|
|
|
12
|
-
export { ColorScheme, ColorSchemeContext, ColorSchemeContextType, ColorSchemeOrSystem, useColorSchemeContext };
|
|
12
|
+
export { type ColorScheme, ColorSchemeContext, type ColorSchemeContextType, type ColorSchemeOrSystem, useColorSchemeContext };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { ColorSchemeContext, useColorSchemeContext } from '../chunk-V7X6ANEM.js';
|
|
2
|
-
import '../chunk-
|
|
2
|
+
import '../chunk-6LX4VMOV.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { useColorScheme } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { useColorScheme } from '../chunk-KLNF34G6.js';
|
|
2
|
+
import '../chunk-M4X2T3D3.js';
|
|
3
|
+
import '../chunk-6LX4VMOV.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { BodyStyleProvider } from '../chunk-
|
|
1
|
+
export { BodyStyleProvider } from '../chunk-Z7O4JONV.js';
|
|
2
2
|
import '../chunk-3YM73BQP.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-B6ZBFYWJ.js';
|
|
4
4
|
import '../chunk-RIORU7JO.js';
|
|
5
5
|
import '../chunk-YPIK2HRL.js';
|
|
6
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-HZFB352P.js';
|
|
7
7
|
import '../chunk-U5R6ZXH3.js';
|
|
8
8
|
import '../chunk-V7X6ANEM.js';
|
|
9
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-6LX4VMOV.js';
|