@hopper-ui/styled-system 0.2.5 → 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 +7 -0
- package/dist/StyledSystemProvider.css +34 -34
- package/dist/StyledSystemProvider.d.ts +1 -1
- package/dist/StyledSystemProvider.js +12 -12
- package/dist/{chunk-RS5A44EK.js → chunk-5XPS6ZZ7.js} +2 -2
- package/dist/{chunk-PMMWXOEJ.js → chunk-7XB4VCCJ.js} +8 -9
- package/dist/{chunk-6GS5PMAA.js → chunk-AMNZEPOY.js} +1 -1
- package/dist/{chunk-AHDDZ2BQ.js → chunk-B6ZBFYWJ.js} +1 -1
- package/dist/{chunk-AO47VFHO.js → chunk-BTJMZT3L.js} +1 -1
- package/dist/{chunk-R63UWTVG.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-RPR22E2F.js → chunk-UTFGHZHA.js} +2 -2
- package/dist/{chunk-YWNXC6UL.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 +1 -1
- 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,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-
|
|
1
|
+
export { StyledSystemProvider } from './chunk-7XB4VCCJ.js';
|
|
2
|
+
import './chunk-Z7O4JONV.js';
|
|
3
3
|
import './chunk-3YM73BQP.js';
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
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) {
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { BodyStyleProvider } from './chunk-
|
|
2
|
-
import { Div } from './chunk-
|
|
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';
|
|
10
|
-
import { SSRProvider } from 'react-aria';
|
|
11
10
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
12
11
|
|
|
13
12
|
function StyledSystemProvider({ children, withBodyStyle = false, withCssVariables = true, colorScheme = "light", defaultColorScheme = "light", unsupportedMatchMediaBreakpoint = DefaultUnsupportedMatchMediaBreakpoint, className, ...rest }) {
|
|
@@ -23,7 +22,7 @@ function StyledSystemProvider({ children, withBodyStyle = false, withCssVariable
|
|
|
23
22
|
`${StyledSystemRootCssClass}-${computedColorScheme}`,
|
|
24
23
|
className
|
|
25
24
|
);
|
|
26
|
-
return /* @__PURE__ */ jsx(
|
|
25
|
+
return /* @__PURE__ */ jsx(
|
|
27
26
|
ColorSchemeContext.Provider,
|
|
28
27
|
{
|
|
29
28
|
value: {
|
|
@@ -36,7 +35,7 @@ function StyledSystemProvider({ children, withBodyStyle = false, withCssVariable
|
|
|
36
35
|
children
|
|
37
36
|
] }) })
|
|
38
37
|
}
|
|
39
|
-
)
|
|
38
|
+
);
|
|
40
39
|
}
|
|
41
40
|
|
|
42
41
|
export { StyledSystemProvider };
|
|
@@ -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';
|
|
@@ -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
|
}
|