@hopper-ui/styled-system 0.3.0 → 1.1.0
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 +4 -4
- package/dist/StyledSystemProvider.js +13 -13
- package/dist/{chunk-SE26VHVR.js → chunk-2BSH225N.js} +1 -1
- package/dist/{chunk-P2EJTPCQ.js → chunk-37HGVAAN.js} +48 -470
- package/dist/{chunk-T2LQYER5.js → chunk-DRFY5W7M.js} +57 -13
- package/dist/{chunk-64BX3HCB.js → chunk-FQYMSLSL.js} +18 -19
- package/dist/{chunk-TAIACQMV.js → chunk-FTYCODSC.js} +2 -2
- package/dist/{chunk-ZKEMKHXY.js → chunk-IMYR3NDP.js} +1 -1
- package/dist/{chunk-3IK64CCG.js → chunk-JKXZGQAL.js} +27 -1
- package/dist/{chunk-GM53YQQK.js → chunk-KHRJTNYB.js} +35 -1
- package/dist/{chunk-PCGVOTW3.js → chunk-KKVEOD5L.js} +1 -1
- package/dist/{chunk-I37Y2R7V.js → chunk-QMDDVBCZ.js} +1 -1
- package/dist/{chunk-XFDSFXFS.js → chunk-TJX3I2ER.js} +5 -5
- package/dist/chunk-WQHLUUDG.js +37 -0
- package/dist/{chunk-D4JUIZCP.js → chunk-YZ3QMR47.js} +2 -2
- package/dist/global-styles/BodyStyleProvider.js +2 -2
- package/dist/html-wrappers/html.css +34 -34
- package/dist/html-wrappers/html.d.ts +36 -37
- package/dist/html-wrappers/html.js +6 -6
- package/dist/html-wrappers/htmlElement.css +34 -34
- package/dist/html-wrappers/htmlElement.d.ts +6 -4
- package/dist/html-wrappers/htmlElement.js +5 -5
- package/dist/index.css +34 -34
- package/dist/index.d.ts +8 -8
- package/dist/index.js +13 -13
- package/dist/{styled-system-props.d.ts → styledSystemProps.d.ts} +4 -6
- package/dist/styledSystemProps.js +2 -0
- package/dist/{styled-system-root-css-class.js → styledSystemRootCssClass.js} +1 -1
- package/dist/tokens/TokenProvider.js +5 -5
- package/dist/tokens/generated/darkSemanticTokens.js +2 -0
- package/dist/tokens/generated/{light-semantic-tokens.d.ts → lightSemanticTokens.d.ts} +26 -0
- package/dist/tokens/generated/lightSemanticTokens.js +2 -0
- package/dist/tokens/generated/{styled-system-to-token-mappings.js → styledSystemToTokenMappings.js} +1 -1
- package/dist/tokens/{token-mappings.d.ts → tokenMappings.d.ts} +54 -11
- package/dist/tokens/{token-mappings.js → tokenMappings.js} +2 -2
- package/dist/tokens/tokens.d.ts +28 -2
- package/dist/tokens/tokens.js +3 -3
- package/dist/useStyledSystem.css +31 -31
- package/dist/useStyledSystem.d.ts +9 -6
- package/dist/useStyledSystem.js +4 -4
- package/package.json +18 -19
- package/dist/chunk-3JABKEIH.js +0 -29
- package/dist/styled-system-props.js +0 -2
- package/dist/tokens/generated/dark-semantic-tokens.js +0 -2
- package/dist/tokens/generated/light-semantic-tokens.js +0 -2
- /package/dist/{styled-system-root-css-class.d.ts → styledSystemRootCssClass.d.ts} +0 -0
- /package/dist/tokens/generated/{dark-semantic-tokens.d.ts → darkSemanticTokens.d.ts} +0 -0
- /package/dist/tokens/generated/{styled-system-to-token-mappings.d.ts → styledSystemToTokenMappings.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @hopper-ui/styled-system
|
|
2
2
|
|
|
3
|
+
## 1.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 6a2fe45: Added offset tokens to semantic Typographic composite tokens
|
|
8
|
+
|
|
9
|
+
## 1.0.0
|
|
10
|
+
|
|
11
|
+
### Major Changes
|
|
12
|
+
|
|
13
|
+
- 93a1a16: - Changed the useStyledSystem hook to return an object containing the className and the style, instead of merging it with the input props.
|
|
14
|
+
- Added some sizing options while we wait for the sizing tokens
|
|
15
|
+
|
|
3
16
|
## 0.3.0
|
|
4
17
|
|
|
5
18
|
### Minor 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___v8kki: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___s6F81: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___tO04m: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___OWDdB: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___vZ-JR: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___eLvPm: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___RQ0ux: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___b4F4D: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___YvZ0-: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___kmT9B: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___jKktg: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___F9aRL: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___7b6w-: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___a76LS: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___Y8R5g: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___rjc8F: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___0R4Lu: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___pmKdb: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___-OvG-: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___JiReX: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___Jmvvh: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___YhtkL: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___Aq77N: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___QQsU9: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___S7jfy: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___5m-9L: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___LLUi6: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___bjLYo: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___eIchf: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___qCLhG: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___UcPDK: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-
|
|
129
|
-
:where(.htmlElement-
|
|
130
|
-
:where(.htmlElement-
|
|
128
|
+
:where(.htmlElement-module__hop-HtmlElement___cSA3Z),
|
|
129
|
+
:where(.htmlElement-module__hop-HtmlElement___cSA3Z::after),
|
|
130
|
+
:where(.htmlElement-module__hop-HtmlElement___cSA3Z::before) {
|
|
131
131
|
box-sizing: border-box;
|
|
132
132
|
}
|
|
@@ -3,14 +3,14 @@ import { ReactNode } from 'react';
|
|
|
3
3
|
import { ColorSchemeOrSystem, ColorScheme } from './color-scheme/ColorSchemeContext.js';
|
|
4
4
|
import { DivProps } from './html-wrappers/html.js';
|
|
5
5
|
import { BreakpointProviderProps } from './responsive/BreakpointProvider.js';
|
|
6
|
-
import './
|
|
7
|
-
import './styled-system-props.js';
|
|
6
|
+
import './styledSystemProps.js';
|
|
8
7
|
import 'csstype';
|
|
9
8
|
import './responsive/useResponsiveValue.js';
|
|
10
9
|
import './responsive/Breakpoints.js';
|
|
11
|
-
import './tokens/
|
|
10
|
+
import './tokens/tokenMappings.js';
|
|
12
11
|
import 'react/jsx-runtime';
|
|
13
12
|
|
|
13
|
+
declare const GlobalStyledSystemProviderCssSelector = "hop-StyledSystemProvider";
|
|
14
14
|
interface StyledSystemProviderProps extends BreakpointProviderProps, DivProps {
|
|
15
15
|
/** The children of the component */
|
|
16
16
|
children: ReactNode;
|
|
@@ -41,4 +41,4 @@ interface StyledSystemProviderProps extends BreakpointProviderProps, DivProps {
|
|
|
41
41
|
*/
|
|
42
42
|
declare const _StyledSystemProvider: react.ForwardRefExoticComponent<Omit<StyledSystemProviderProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
43
43
|
|
|
44
|
-
export { _StyledSystemProvider as StyledSystemProvider, type StyledSystemProviderProps };
|
|
44
|
+
export { GlobalStyledSystemProviderCssSelector, _StyledSystemProvider as StyledSystemProvider, type StyledSystemProviderProps };
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
export { _StyledSystemProvider as StyledSystemProvider } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { GlobalStyledSystemProviderCssSelector, _StyledSystemProvider as StyledSystemProvider } from './chunk-TJX3I2ER.js';
|
|
2
|
+
import './chunk-2BSH225N.js';
|
|
3
3
|
import './chunk-3YM73BQP.js';
|
|
4
4
|
import './chunk-B6ZBFYWJ.js';
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
5
|
+
import './chunk-KHRJTNYB.js';
|
|
6
|
+
import './chunk-WQHLUUDG.js';
|
|
7
7
|
import './chunk-MCUHAIA4.js';
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
8
|
+
import './chunk-YZ3QMR47.js';
|
|
9
|
+
import './chunk-FTYCODSC.js';
|
|
10
|
+
import './chunk-IMYR3NDP.js';
|
|
11
|
+
import './chunk-JKXZGQAL.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-
|
|
14
|
+
import './chunk-FQYMSLSL.js';
|
|
15
|
+
import './chunk-37HGVAAN.js';
|
|
16
|
+
import './chunk-DRFY5W7M.js';
|
|
17
|
+
import './chunk-KKVEOD5L.js';
|
|
18
18
|
import './chunk-SFOVKOPG.js';
|
|
19
19
|
import './chunk-VBKLISDI.js';
|
|
20
20
|
import './chunk-XUHDFZZL.js';
|
|
21
21
|
import './chunk-U5R6ZXH3.js';
|
|
22
|
-
import './chunk-
|
|
22
|
+
import './chunk-QMDDVBCZ.js';
|
|
23
23
|
import './chunk-KLNF34G6.js';
|
|
24
24
|
import './chunk-M4X2T3D3.js';
|
|
25
25
|
import './chunk-V7X6ANEM.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useIsomorphicLayoutEffect } from './chunk-3YM73BQP.js';
|
|
2
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-FQYMSLSL.js';
|
|
5
5
|
import { isNil } from './chunk-U5R6ZXH3.js';
|
|
6
6
|
import { useColorSchemeContext } from './chunk-V7X6ANEM.js';
|
|
7
7
|
import { useRef, useState } from 'react';
|