@hopper-ui/styled-system 0.2.3 → 0.2.5
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 +12 -0
- package/dist/StyledSystemProvider.css +34 -34
- package/dist/StyledSystemProvider.js +15 -15
- package/dist/{chunk-BEEGWFNF.js → chunk-6GS5PMAA.js} +2 -2
- package/dist/{chunk-7KCN3W6N.js → chunk-A47SIZVA.js} +2 -2
- package/dist/{chunk-ZFDLWGCR.js → chunk-AO47VFHO.js} +1 -1
- package/dist/{chunk-Q3NLRNZN.js → chunk-HAB2KYRH.js} +1 -0
- package/dist/{chunk-U3SI5QXV.js → chunk-PCGVOTW3.js} +1 -0
- package/dist/{chunk-S33PIM5T.js → chunk-PMMWXOEJ.js} +8 -7
- package/dist/{chunk-JM7JTLPS.js → chunk-R63UWTVG.js} +1 -1
- package/dist/{chunk-QWLE5PCU.js → chunk-RPR22E2F.js} +2 -2
- package/dist/{chunk-O7PTTVQH.js → chunk-RS5A44EK.js} +52 -31
- package/dist/{chunk-GYREQTEK.js → chunk-SFOVKOPG.js} +1 -1
- package/dist/{chunk-KUUJ37DW.js → chunk-T2LQYER5.js} +2 -2
- package/dist/{chunk-ZUVKM5DV.js → chunk-VBKLISDI.js} +4 -5
- package/dist/{chunk-GRF2SIQE.js → chunk-YWNXC6UL.js} +1 -1
- package/dist/{chunk-LU33LZMJ.js → chunk-Z33MPMW6.js} +1 -1
- package/dist/{chunk-J4KAMS5Q.js → chunk-ZKEMKHXY.js} +1 -0
- package/dist/global-styles/BodyStyleProvider.js +2 -2
- package/dist/html-wrappers/html.css +34 -34
- package/dist/html-wrappers/html.js +7 -7
- package/dist/html-wrappers/htmlElement.css +34 -34
- package/dist/html-wrappers/htmlElement.js +6 -6
- package/dist/index.css +34 -34
- package/dist/index.js +15 -15
- package/dist/responsive/BreakpointContext.d.ts +1 -1
- package/dist/responsive/BreakpointContext.js +1 -2
- package/dist/responsive/BreakpointProvider.js +2 -3
- package/dist/responsive/useResponsiveValue.js +2 -2
- package/dist/styled-system-props.d.ts +82 -2
- package/dist/styled-system-root-css-class.js +1 -1
- package/dist/tokens/TokenProvider.js +5 -5
- package/dist/tokens/generated/dark-semantic-tokens.d.ts +1 -0
- package/dist/tokens/generated/dark-semantic-tokens.js +1 -1
- package/dist/tokens/generated/light-semantic-tokens.d.ts +1 -0
- package/dist/tokens/generated/light-semantic-tokens.js +1 -1
- package/dist/tokens/generated/styled-system-to-token-mappings.d.ts +1 -0
- package/dist/tokens/generated/styled-system-to-token-mappings.js +1 -1
- package/dist/tokens/token-mappings.d.ts +2 -0
- package/dist/tokens/token-mappings.js +4 -4
- package/dist/tokens/tokens.d.ts +2 -0
- package/dist/tokens/tokens.js +3 -3
- package/dist/useStyledSystem.css +31 -31
- package/dist/useStyledSystem.js +5 -5
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @hopper-ui/styled-system
|
|
2
2
|
|
|
3
|
+
## 0.2.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f5729c5: Modified the isStyledSystemProps to returns true when the UNSAFE\_ props are passed
|
|
8
|
+
|
|
9
|
+
## 0.2.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 20515b9: Modify the breakpoint context to not throw, so components can render even if no provider has been declared
|
|
14
|
+
|
|
3
15
|
## 0.2.3
|
|
4
16
|
|
|
5
17
|
### 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___ELiam: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___mZbsF: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___ceyGf: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___1koop: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___XYjzz: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___eKqPu: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___sLRKs: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___ql2vz: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___bOlUU: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___iUUrS: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___qHy5D: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___ZZKAA: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___FCKS3: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___o8t8T: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___GogIA: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___CTlws: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___iPjbs: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___8Fos8: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___gLQZn: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___VbuiX: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___cTySx: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___sziqQ: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___pLFyI: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___GOSR5: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___F9NUH: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___p0BS-: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___Fq-NB: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___KGrys: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___cGXdz: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___qwlbA: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___9PPfW: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___BT41p),
|
|
129
|
+
:where(.htmlElement-module__html-element___BT41p::after),
|
|
130
|
+
:where(.htmlElement-module__html-element___BT41p::before) {
|
|
131
131
|
box-sizing: border-box;
|
|
132
132
|
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export { StyledSystemProvider } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-QWLE5PCU.js';
|
|
4
|
-
import './chunk-GRF2SIQE.js';
|
|
1
|
+
export { StyledSystemProvider } from './chunk-PMMWXOEJ.js';
|
|
2
|
+
import './chunk-YWNXC6UL.js';
|
|
5
3
|
import './chunk-3YM73BQP.js';
|
|
6
4
|
import './chunk-AHDDZ2BQ.js';
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
5
|
+
import './chunk-AO47VFHO.js';
|
|
6
|
+
import './chunk-RPR22E2F.js';
|
|
7
|
+
import './chunk-Z33MPMW6.js';
|
|
8
|
+
import './chunk-6GS5PMAA.js';
|
|
9
|
+
import './chunk-A47SIZVA.js';
|
|
10
|
+
import './chunk-ZKEMKHXY.js';
|
|
11
|
+
import './chunk-HAB2KYRH.js';
|
|
12
12
|
import './chunk-RIORU7JO.js';
|
|
13
13
|
import './chunk-YPIK2HRL.js';
|
|
14
|
-
import './chunk-
|
|
15
|
-
import './chunk-
|
|
16
|
-
import './chunk-
|
|
17
|
-
import './chunk-
|
|
18
|
-
import './chunk-
|
|
19
|
-
import './chunk-
|
|
14
|
+
import './chunk-R63UWTVG.js';
|
|
15
|
+
import './chunk-RS5A44EK.js';
|
|
16
|
+
import './chunk-T2LQYER5.js';
|
|
17
|
+
import './chunk-PCGVOTW3.js';
|
|
18
|
+
import './chunk-SFOVKOPG.js';
|
|
19
|
+
import './chunk-VBKLISDI.js';
|
|
20
20
|
import './chunk-XUHDFZZL.js';
|
|
21
21
|
import './chunk-U5R6ZXH3.js';
|
|
22
22
|
import './chunk-I37Y2R7V.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Tokens } from './chunk-
|
|
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-R63UWTVG.js';
|
|
4
4
|
|
|
5
5
|
// src/tokens/TokenProvider.tsx
|
|
6
6
|
function TokenProvider() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DarkSemanticTokens } from './chunk-
|
|
2
|
-
import { CoreTokens, SemanticTokens } from './chunk-
|
|
1
|
+
import { DarkSemanticTokens } from './chunk-ZKEMKHXY.js';
|
|
2
|
+
import { CoreTokens, SemanticTokens } from './chunk-HAB2KYRH.js';
|
|
3
3
|
|
|
4
4
|
// src/tokens/tokens.ts
|
|
5
5
|
var Tokens = {
|
|
@@ -392,6 +392,7 @@ var SemanticTokens = {
|
|
|
392
392
|
"--hop-neutral-border-hover": "var(--hop-rock-300)",
|
|
393
393
|
"--hop-neutral-border-active": "var(--hop-rock-800)",
|
|
394
394
|
"--hop-neutral-surface-weak-hover": "var(--hop-rock-75)",
|
|
395
|
+
"--hop-neutral-surface-weak-active": "var(--hop-rock-50)",
|
|
395
396
|
"--hop-neutral-border-weakest": "var(--hop-rock-50)",
|
|
396
397
|
"--hop-neutral-surface-weakest": "var(--hop-rock-25)",
|
|
397
398
|
"--hop-warning-icon-weakest": "var(--hop-koi-100)",
|
|
@@ -221,6 +221,7 @@ var BackgroundColors = {
|
|
|
221
221
|
"neutral-strong": "neutral-surface-strong",
|
|
222
222
|
"neutral-hover": "neutral-surface-hover",
|
|
223
223
|
"neutral-weak-hover": "neutral-surface-weak-hover",
|
|
224
|
+
"neutral-weak-active": "neutral-surface-weak-active",
|
|
224
225
|
"neutral-weakest": "neutral-surface-weakest",
|
|
225
226
|
"warning": "warning-surface",
|
|
226
227
|
"warning-strong": "warning-surface-strong",
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { BreakpointProvider, DefaultUnsupportedMatchMediaBreakpoint } from './chunk-
|
|
4
|
-
import { TokenProvider } from './chunk-
|
|
5
|
-
import { HopperRootCssClass, StyledSystemRootCssClass } from './chunk-
|
|
1
|
+
import { BodyStyleProvider } from './chunk-YWNXC6UL.js';
|
|
2
|
+
import { Div } from './chunk-AO47VFHO.js';
|
|
3
|
+
import { BreakpointProvider, DefaultUnsupportedMatchMediaBreakpoint } from './chunk-Z33MPMW6.js';
|
|
4
|
+
import { TokenProvider } from './chunk-6GS5PMAA.js';
|
|
5
|
+
import { HopperRootCssClass, StyledSystemRootCssClass } from './chunk-R63UWTVG.js';
|
|
6
6
|
import { useColorScheme } from './chunk-XTX4KVWI.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';
|
|
10
11
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
11
12
|
|
|
12
13
|
function StyledSystemProvider({ children, withBodyStyle = false, withCssVariables = true, colorScheme = "light", defaultColorScheme = "light", unsupportedMatchMediaBreakpoint = DefaultUnsupportedMatchMediaBreakpoint, className, ...rest }) {
|
|
@@ -22,7 +23,7 @@ function StyledSystemProvider({ children, withBodyStyle = false, withCssVariable
|
|
|
22
23
|
`${StyledSystemRootCssClass}-${computedColorScheme}`,
|
|
23
24
|
className
|
|
24
25
|
);
|
|
25
|
-
return /* @__PURE__ */ jsx(
|
|
26
|
+
return /* @__PURE__ */ jsx(SSRProvider, { children: /* @__PURE__ */ jsx(
|
|
26
27
|
ColorSchemeContext.Provider,
|
|
27
28
|
{
|
|
28
29
|
value: {
|
|
@@ -35,7 +36,7 @@ function StyledSystemProvider({ children, withBodyStyle = false, withCssVariable
|
|
|
35
36
|
children
|
|
36
37
|
] }) })
|
|
37
38
|
}
|
|
38
|
-
);
|
|
39
|
+
) });
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
export { StyledSystemProvider };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { useStyledSystem } from './chunk-
|
|
1
|
+
import { useStyledSystem } from './chunk-RS5A44EK.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___BT41p" };
|
|
8
8
|
function htmlElement(elementType) {
|
|
9
9
|
return forwardRef((props, ref) => {
|
|
10
10
|
const { className, children, ...rest } = useStyledSystem(props);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { parseResponsiveSystemValue, ColorExpressionTypes, DefaultBorderWidthAndStyle, BackgroundColorMapping, BorderMapping, BorderRadiusMapping, BoxShadowMapping, TextColorMapping, SimpleMarginMapping, IconColorMapping, FontFamilyMapping, FontSizeMapping, FontWeightMapping, SizingMapping, LineHeightMapping, ComplexMarginMapping, ComplexPaddingMapping, SimplePaddingMapping } from './chunk-
|
|
2
|
-
import { parseResponsiveValue } from './chunk-
|
|
3
|
-
import { useBreakpointContext } from './chunk-
|
|
1
|
+
import { parseResponsiveSystemValue, ColorExpressionTypes, DefaultBorderWidthAndStyle, BackgroundColorMapping, BorderMapping, BorderRadiusMapping, BoxShadowMapping, TextColorMapping, SimpleMarginMapping, IconColorMapping, FontFamilyMapping, FontSizeMapping, FontWeightMapping, SizingMapping, LineHeightMapping, ComplexMarginMapping, ComplexPaddingMapping, SimplePaddingMapping } from './chunk-T2LQYER5.js';
|
|
2
|
+
import { parseResponsiveValue } from './chunk-SFOVKOPG.js';
|
|
3
|
+
import { useBreakpointContext } from './chunk-VBKLISDI.js';
|
|
4
4
|
import { isNil } from './chunk-U5R6ZXH3.js';
|
|
5
5
|
import { UnsafePrefix } from './chunk-I37Y2R7V.js';
|
|
6
6
|
import { __privateAdd, __publicField, __privateSet, __privateGet } from './chunk-JFESGV6Z.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___ELiam", "hop-bb-hover": "UseStyledSystem-module__hop-bb-hover___mZbsF", "hop-bl-hover": "UseStyledSystem-module__hop-bl-hover___ceyGf", "hop-br-hover": "UseStyledSystem-module__hop-br-hover___1koop", "hop-bt-hover": "UseStyledSystem-module__hop-bt-hover___XYjzz", "hop-b-focus": "UseStyledSystem-module__hop-b-focus___eKqPu", "hop-bb-focus": "UseStyledSystem-module__hop-bb-focus___sLRKs", "hop-bl-focus": "UseStyledSystem-module__hop-bl-focus___ql2vz", "hop-br-focus": "UseStyledSystem-module__hop-br-focus___bOlUU", "hop-bt-focus": "UseStyledSystem-module__hop-bt-focus___iUUrS", "hop-b-active": "UseStyledSystem-module__hop-b-active___qHy5D", "hop-bb-active": "UseStyledSystem-module__hop-bb-active___ZZKAA", "hop-bl-active": "UseStyledSystem-module__hop-bl-active___FCKS3", "hop-br-active": "UseStyledSystem-module__hop-br-active___o8t8T", "hop-bt-active": "UseStyledSystem-module__hop-bt-active___GogIA", "hop-bg-hover": "UseStyledSystem-module__hop-bg-hover___CTlws", "hop-bg-focus": "UseStyledSystem-module__hop-bg-focus___iPjbs", "hop-bg-active": "UseStyledSystem-module__hop-bg-active___8Fos8", "hop-bs-hover": "UseStyledSystem-module__hop-bs-hover___gLQZn", "hop-bs-focus": "UseStyledSystem-module__hop-bs-focus___VbuiX", "hop-bs-active": "UseStyledSystem-module__hop-bs-active___cTySx", "hop-c-hover": "UseStyledSystem-module__hop-c-hover___sziqQ", "hop-c-focus": "UseStyledSystem-module__hop-c-focus___pLFyI", "hop-c-active": "UseStyledSystem-module__hop-c-active___GOSR5", "hop-cs-hover": "UseStyledSystem-module__hop-cs-hover___F9NUH", "hop-f-hover": "UseStyledSystem-module__hop-f-hover___p0BS-", "hop-f-focus": "UseStyledSystem-module__hop-f-focus___Fq-NB", "hop-o-hover": "UseStyledSystem-module__hop-o-hover___KGrys", "hop-o-focus": "UseStyledSystem-module__hop-o-focus___cGXdz", "hop-o-active": "UseStyledSystem-module__hop-o-active___qwlbA", "hop-ol-focus": "UseStyledSystem-module__hop-ol-focus___9PPfW" };
|
|
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,5 +1,5 @@
|
|
|
1
|
-
import { HopperVariablePrefix, HopperColors, DataVizColors, BackgroundColors, TextColors, IconColors, Elevation, FontSize, FontWeight, LineHeight, FontFamily, Shape, CoreSpace, SemanticSimplePaddingSpace, SemanticComplexPaddingSpace, SemanticSimpleMarginSpace, SemanticComplexMarginSpace } from './chunk-
|
|
2
|
-
import { parseResponsiveValue } from './chunk-
|
|
1
|
+
import { HopperVariablePrefix, HopperColors, DataVizColors, BackgroundColors, TextColors, IconColors, Elevation, FontSize, FontWeight, LineHeight, FontFamily, Shape, CoreSpace, SemanticSimplePaddingSpace, SemanticComplexPaddingSpace, SemanticSimpleMarginSpace, SemanticComplexMarginSpace } from './chunk-PCGVOTW3.js';
|
|
2
|
+
import { parseResponsiveValue } from './chunk-SFOVKOPG.js';
|
|
3
3
|
import { isNil } from './chunk-U5R6ZXH3.js';
|
|
4
4
|
|
|
5
5
|
// src/tokens/token-mappings.ts
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { isNil } from './chunk-U5R6ZXH3.js';
|
|
2
1
|
import { createContext, useContext } from 'react';
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
// src/responsive/BreakpointContext.tsx
|
|
4
|
+
var BreakpointContext = createContext({
|
|
5
|
+
matchedBreakpoints: []
|
|
6
|
+
});
|
|
5
7
|
function useBreakpointContext() {
|
|
6
8
|
const context = useContext(BreakpointContext);
|
|
7
|
-
if (isNil(context)) {
|
|
8
|
-
throw new Error("useBreakpointContext must be used within a BreakpointProvider");
|
|
9
|
-
}
|
|
10
9
|
return context;
|
|
11
10
|
}
|
|
12
11
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useIsomorphicLayoutEffect } from './chunk-3YM73BQP.js';
|
|
2
2
|
import { ThemeComputedStyle } from './chunk-AHDDZ2BQ.js';
|
|
3
3
|
import { useInsertStyleElement } from './chunk-RIORU7JO.js';
|
|
4
|
-
import { StyledSystemRootCssClass } from './chunk-
|
|
4
|
+
import { StyledSystemRootCssClass } from './chunk-R63UWTVG.js';
|
|
5
5
|
import { isNil } from './chunk-U5R6ZXH3.js';
|
|
6
6
|
import { useColorSchemeContext } from './chunk-V7X6ANEM.js';
|
|
7
7
|
import { useRef, useState } from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BreakpointContext } from './chunk-
|
|
1
|
+
import { BreakpointContext } from './chunk-VBKLISDI.js';
|
|
2
2
|
import { Breakpoints } from './chunk-XUHDFZZL.js';
|
|
3
3
|
import { supportsMatchMedia } from './chunk-STEDL5VQ.js';
|
|
4
4
|
import { useCallback, useState, useEffect } from 'react';
|
|
@@ -182,6 +182,7 @@ var DarkSemanticTokens = {
|
|
|
182
182
|
"--hop-neutral-border-hover": "var(--hop-rock-300)",
|
|
183
183
|
"--hop-neutral-border-active": "var(--hop-toad-25)",
|
|
184
184
|
"--hop-neutral-surface-weak-hover": "var(--hop-rock-700)",
|
|
185
|
+
"--hop-neutral-surface-weak-active": "var(--hop-rock-800)",
|
|
185
186
|
"--hop-neutral-border-weakest": "var(--hop-rock-800)",
|
|
186
187
|
"--hop-neutral-surface-weakest": "var(--hop-rock-900)",
|
|
187
188
|
"--hop-warning-icon-weakest": "var(--hop-koi-200)",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { BodyStyleProvider } from '../chunk-
|
|
1
|
+
export { BodyStyleProvider } from '../chunk-YWNXC6UL.js';
|
|
2
2
|
import '../chunk-3YM73BQP.js';
|
|
3
3
|
import '../chunk-AHDDZ2BQ.js';
|
|
4
4
|
import '../chunk-RIORU7JO.js';
|
|
5
5
|
import '../chunk-YPIK2HRL.js';
|
|
6
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-R63UWTVG.js';
|
|
7
7
|
import '../chunk-U5R6ZXH3.js';
|
|
8
8
|
import '../chunk-V7X6ANEM.js';
|
|
9
9
|
import '../chunk-JFESGV6Z.js';
|