@hopper-ui/styled-system 1.0.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 +6 -0
- package/dist/StyledSystemProvider.css +34 -34
- package/dist/StyledSystemProvider.d.ts +2 -2
- package/dist/StyledSystemProvider.js +13 -13
- package/dist/{chunk-HPTCF3O5.js → chunk-2BSH225N.js} +1 -1
- package/dist/{chunk-IZYWFDT7.js → chunk-37HGVAAN.js} +3 -3
- package/dist/{chunk-ACHT4RXQ.js → chunk-DRFY5W7M.js} +2 -2
- package/dist/{chunk-Y6PI5JPG.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-XISFZQD3.js → chunk-KHRJTNYB.js} +1 -1
- package/dist/{chunk-PCGVOTW3.js → chunk-KKVEOD5L.js} +1 -1
- package/dist/{chunk-I37Y2R7V.js → chunk-QMDDVBCZ.js} +1 -1
- package/dist/{chunk-36LPB7RX.js → chunk-TJX3I2ER.js} +4 -4
- package/dist/{chunk-RG533UHT.js → chunk-WQHLUUDG.js} +4 -4
- package/dist/{chunk-7WKPFXQZ.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 +2 -2
- package/dist/html-wrappers/html.js +6 -6
- package/dist/html-wrappers/htmlElement.css +34 -34
- package/dist/html-wrappers/htmlElement.d.ts +3 -3
- package/dist/html-wrappers/htmlElement.js +5 -5
- package/dist/index.css +34 -34
- package/dist/index.d.ts +5 -5
- package/dist/index.js +13 -13
- package/dist/{styled-system-props.d.ts → styledSystemProps.d.ts} +1 -1
- 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.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 +2 -2
- package/dist/useStyledSystem.js +4 -4
- package/package.json +18 -19
- 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/dist/tokens/{token-mappings.d.ts → tokenMappings.d.ts} +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___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,11 +3,11 @@ 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 './
|
|
6
|
+
import './styledSystemProps.js';
|
|
7
7
|
import 'csstype';
|
|
8
8
|
import './responsive/useResponsiveValue.js';
|
|
9
9
|
import './responsive/Breakpoints.js';
|
|
10
|
-
import './tokens/
|
|
10
|
+
import './tokens/tokenMappings.js';
|
|
11
11
|
import 'react/jsx-runtime';
|
|
12
12
|
|
|
13
13
|
declare const GlobalStyledSystemProviderCssSelector = "hop-StyledSystemProvider";
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
export { GlobalStyledSystemProviderCssSelector, _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';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { parseResponsiveSystemValue, ColorExpressionTypes, DefaultBorderWidthAndStyle, SizingMapping, BackgroundColorMapping, BorderMapping, BorderRadiusMapping, BoxShadowMapping, TextColorMapping, SimpleMarginMapping, IconColorMapping, FontFamilyMapping, FontSizeMapping, FontWeightMapping, LineHeightMapping, ComplexMarginMapping, ComplexPaddingMapping, SimplePaddingMapping } from './chunk-
|
|
1
|
+
import { parseResponsiveSystemValue, ColorExpressionTypes, DefaultBorderWidthAndStyle, SizingMapping, BackgroundColorMapping, BorderMapping, BorderRadiusMapping, BoxShadowMapping, TextColorMapping, SimpleMarginMapping, IconColorMapping, FontFamilyMapping, FontSizeMapping, FontWeightMapping, LineHeightMapping, ComplexMarginMapping, ComplexPaddingMapping, SimplePaddingMapping } from './chunk-DRFY5W7M.js';
|
|
2
2
|
import { parseResponsiveValue } from './chunk-SFOVKOPG.js';
|
|
3
3
|
import { useBreakpointContext } from './chunk-VBKLISDI.js';
|
|
4
4
|
import { isNil } from './chunk-U5R6ZXH3.js';
|
|
5
|
-
import { UnsafePrefix } from './chunk-
|
|
5
|
+
import { UnsafePrefix } from './chunk-QMDDVBCZ.js';
|
|
6
6
|
import { __privateAdd, __publicField, __privateSet, __privateGet } from './chunk-6LX4VMOV.js';
|
|
7
7
|
|
|
8
8
|
// css-module:./UseStyledSystem.module.css#css-module
|
|
9
|
-
var UseStyledSystem_module_default = { "hop-b-hover": "UseStyledSystem-module__hop-b-
|
|
9
|
+
var UseStyledSystem_module_default = { "hop-b-hover": "UseStyledSystem-module__hop-b-hover___v8kki", "hop-bb-hover": "UseStyledSystem-module__hop-bb-hover___s6F81", "hop-bl-hover": "UseStyledSystem-module__hop-bl-hover___tO04m", "hop-br-hover": "UseStyledSystem-module__hop-br-hover___OWDdB", "hop-bt-hover": "UseStyledSystem-module__hop-bt-hover___vZ-JR", "hop-b-focus": "UseStyledSystem-module__hop-b-focus___eLvPm", "hop-bb-focus": "UseStyledSystem-module__hop-bb-focus___RQ0ux", "hop-bl-focus": "UseStyledSystem-module__hop-bl-focus___b4F4D", "hop-br-focus": "UseStyledSystem-module__hop-br-focus___YvZ0-", "hop-bt-focus": "UseStyledSystem-module__hop-bt-focus___kmT9B", "hop-b-active": "UseStyledSystem-module__hop-b-active___jKktg", "hop-bb-active": "UseStyledSystem-module__hop-bb-active___F9aRL", "hop-bl-active": "UseStyledSystem-module__hop-bl-active___7b6w-", "hop-br-active": "UseStyledSystem-module__hop-br-active___a76LS", "hop-bt-active": "UseStyledSystem-module__hop-bt-active___Y8R5g", "hop-bg-hover": "UseStyledSystem-module__hop-bg-hover___rjc8F", "hop-bg-focus": "UseStyledSystem-module__hop-bg-focus___0R4Lu", "hop-bg-active": "UseStyledSystem-module__hop-bg-active___pmKdb", "hop-bs-hover": "UseStyledSystem-module__hop-bs-hover___-OvG-", "hop-bs-focus": "UseStyledSystem-module__hop-bs-focus___JiReX", "hop-bs-active": "UseStyledSystem-module__hop-bs-active___Jmvvh", "hop-c-hover": "UseStyledSystem-module__hop-c-hover___YhtkL", "hop-c-focus": "UseStyledSystem-module__hop-c-focus___Aq77N", "hop-c-active": "UseStyledSystem-module__hop-c-active___QQsU9", "hop-cs-hover": "UseStyledSystem-module__hop-cs-hover___S7jfy", "hop-f-hover": "UseStyledSystem-module__hop-f-hover___5m-9L", "hop-f-focus": "UseStyledSystem-module__hop-f-focus___LLUi6", "hop-o-hover": "UseStyledSystem-module__hop-o-hover___bjLYo", "hop-o-focus": "UseStyledSystem-module__hop-o-focus___eIchf", "hop-o-active": "UseStyledSystem-module__hop-o-active___qCLhG", "hop-ol-focus": "UseStyledSystem-module__hop-ol-focus___UcPDK" };
|
|
10
10
|
|
|
11
11
|
// src/useStyledSystem.ts
|
|
12
12
|
function createSystemValueHandler(systemValues) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { HopperVariablePrefix, HopperColors, DataVizColors, BackgroundColors, TextColors, IconColors, Elevation, FontSize, FontWeight, LineHeight, FontFamily, Shape, CoreSpace, SemanticSimplePaddingSpace, SemanticComplexPaddingSpace, SemanticSimpleMarginSpace, SemanticComplexMarginSpace } from './chunk-
|
|
1
|
+
import { HopperVariablePrefix, HopperColors, DataVizColors, BackgroundColors, TextColors, IconColors, Elevation, FontSize, FontWeight, LineHeight, FontFamily, Shape, CoreSpace, SemanticSimplePaddingSpace, SemanticComplexPaddingSpace, SemanticSimpleMarginSpace, SemanticComplexMarginSpace } from './chunk-KKVEOD5L.js';
|
|
2
2
|
import { parseResponsiveValue } from './chunk-SFOVKOPG.js';
|
|
3
3
|
import { isNil, isObject } from './chunk-U5R6ZXH3.js';
|
|
4
4
|
|
|
5
|
-
// src/tokens/
|
|
5
|
+
// src/tokens/tokenMappings.ts
|
|
6
6
|
var ColorExpressionTypes = [
|
|
7
7
|
"#",
|
|
8
8
|
"rgb",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var package_default = {
|
|
3
3
|
name: "@hopper-ui/styled-system",
|
|
4
4
|
author: "Workleap",
|
|
5
|
-
version: "1.
|
|
5
|
+
version: "1.1.0",
|
|
6
6
|
description: "The styled-system package.",
|
|
7
7
|
license: "Apache-2.0",
|
|
8
8
|
repository: {
|
|
@@ -44,40 +44,39 @@ var package_default = {
|
|
|
44
44
|
"react-dom": "*"
|
|
45
45
|
},
|
|
46
46
|
dependencies: {
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
"@react-aria/ssr": "^3.9.2",
|
|
48
|
+
clsx: "^2.1.0"
|
|
49
49
|
},
|
|
50
50
|
devDependencies: {
|
|
51
51
|
"@hopper-ui/tokens": "workspace:*",
|
|
52
|
-
"@swc/core": "1.
|
|
53
|
-
"@swc/helpers": "0.5.
|
|
54
|
-
"@swc/jest": "0.2.
|
|
55
|
-
"@testing-library/jest-dom": "6.
|
|
56
|
-
"@testing-library/react": "14.
|
|
57
|
-
"@types/jest": "29.5.
|
|
58
|
-
"@types/react": "18.2.
|
|
59
|
-
"@types/react-dom": "18.2.
|
|
52
|
+
"@swc/core": "1.4.8",
|
|
53
|
+
"@swc/helpers": "0.5.7",
|
|
54
|
+
"@swc/jest": "0.2.36",
|
|
55
|
+
"@testing-library/jest-dom": "6.4.2",
|
|
56
|
+
"@testing-library/react": "14.2.2",
|
|
57
|
+
"@types/jest": "29.5.12",
|
|
58
|
+
"@types/react": "18.2.67",
|
|
59
|
+
"@types/react-dom": "18.2.22",
|
|
60
60
|
"@types/react-test-renderer": "18.0.7",
|
|
61
|
-
"@workleap/eslint-plugin": "3.
|
|
62
|
-
"@workleap/swc-configs": "2.
|
|
63
|
-
"@workleap/tsup-configs": "3.0.
|
|
61
|
+
"@workleap/eslint-plugin": "3.1.0",
|
|
62
|
+
"@workleap/swc-configs": "2.2.3",
|
|
63
|
+
"@workleap/tsup-configs": "3.0.4",
|
|
64
64
|
"@workleap/typescript-configs": "3.0.2",
|
|
65
65
|
"identity-obj-proxy": "3.0.0",
|
|
66
66
|
jest: "29.7.0",
|
|
67
67
|
"jest-environment-jsdom": "29.7.0",
|
|
68
|
-
postcss: "8.4.
|
|
68
|
+
postcss: "8.4.37",
|
|
69
69
|
"postcss-modules": "6.0.0",
|
|
70
70
|
react: "18.2.0",
|
|
71
71
|
"react-dom": "18.2.0",
|
|
72
72
|
"react-test-renderer": "18.2.0",
|
|
73
73
|
"ts-jest": "29.1.2",
|
|
74
|
-
tsup: "8.0.
|
|
75
|
-
|
|
76
|
-
typescript: "5.3.3"
|
|
74
|
+
tsup: "8.0.2",
|
|
75
|
+
typescript: "5.4.2"
|
|
77
76
|
}
|
|
78
77
|
};
|
|
79
78
|
|
|
80
|
-
// src/
|
|
79
|
+
// src/styledSystemRootCssClass.ts
|
|
81
80
|
var HopperRootCssClass = "hop";
|
|
82
81
|
var StyledSystemRootCssClass = `${HopperRootCssClass}-${package_default.version.replaceAll(".", "-")}`;
|
|
83
82
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DarkSemanticTokens } from './chunk-
|
|
2
|
-
import { CoreTokens, SemanticTokens } from './chunk-
|
|
1
|
+
import { DarkSemanticTokens } from './chunk-IMYR3NDP.js';
|
|
2
|
+
import { CoreTokens, SemanticTokens } from './chunk-JKXZGQAL.js';
|
|
3
3
|
|
|
4
4
|
// src/tokens/tokens.ts
|
|
5
5
|
var Tokens = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// src/tokens/generated/
|
|
1
|
+
// src/tokens/generated/lightSemanticTokens.ts
|
|
2
2
|
var CoreTokens = {
|
|
3
3
|
"--hop-coastal-25": "#f0f8ff",
|
|
4
4
|
"--hop-coastal-50": "#d9efff",
|
|
@@ -166,6 +166,14 @@ var CoreTokens = {
|
|
|
166
166
|
"--hop-line-height-1-33": "1.3333333",
|
|
167
167
|
"--hop-line-height-1-4285": "1.4285714",
|
|
168
168
|
"--hop-line-height-1-50": "1.5",
|
|
169
|
+
"--hop-easing-duration-1": "100ms",
|
|
170
|
+
"--hop-easing-duration-2": "200ms",
|
|
171
|
+
"--hop-easing-duration-3": "300ms",
|
|
172
|
+
"--hop-easing-duration-4": "500ms",
|
|
173
|
+
"--hop-easing-duration-5": "800ms",
|
|
174
|
+
"--hop-easing-productive": "cubic-bezier(0.22, 0.61, 0.36, 1)",
|
|
175
|
+
"--hop-easing-focus": "cubic-bezier(0.46, 0.03, 0.52, 0.96)",
|
|
176
|
+
"--hop-easing-expressive": "cubic-bezier(0.72, -0.66, 0.15, 1.5)",
|
|
169
177
|
"--hop-border-radius-0": "0",
|
|
170
178
|
"--hop-border-radius-1": "0.25rem",
|
|
171
179
|
"--hop-border-radius-2": "0.5rem",
|
|
@@ -744,38 +752,56 @@ var SemanticTokens = {
|
|
|
744
752
|
"--hop-heading-3xl-font-size": "var(--hop-font-size-360)",
|
|
745
753
|
"--hop-heading-3xl-font-weight": "var(--hop-font-weight-680)",
|
|
746
754
|
"--hop-heading-3xl-line-height": "var(--hop-line-height-1-33)",
|
|
755
|
+
"--hop-heading-3xl-top-offset": "-0.9375rem",
|
|
756
|
+
"--hop-heading-3xl-bottom-offset": "-0.5625rem",
|
|
747
757
|
"--hop-heading-2xl-font-family": "var(--hop-font-family-primary)",
|
|
748
758
|
"--hop-heading-2xl-font-size": "var(--hop-font-size-320)",
|
|
749
759
|
"--hop-heading-2xl-font-weight": "var(--hop-font-weight-580)",
|
|
750
760
|
"--hop-heading-2xl-line-height": "var(--hop-line-height-1-25)",
|
|
761
|
+
"--hop-heading-2xl-top-offset": "-0.6667rem",
|
|
762
|
+
"--hop-heading-2xl-bottom-offset": "-0.3334rem",
|
|
751
763
|
"--hop-heading-xl-font-family": "var(--hop-font-family-primary)",
|
|
752
764
|
"--hop-heading-xl-font-size": "var(--hop-font-size-280)",
|
|
753
765
|
"--hop-heading-xl-font-weight": "var(--hop-font-weight-680)",
|
|
754
766
|
"--hop-heading-xl-line-height": "var(--hop-line-height-1-14)",
|
|
767
|
+
"--hop-heading-xl-top-offset": "-0.5rem",
|
|
768
|
+
"--hop-heading-xl-bottom-offset": "-0.1875rem",
|
|
755
769
|
"--hop-heading-lg-font-family": "var(--hop-font-family-primary)",
|
|
756
770
|
"--hop-heading-lg-font-size": "var(--hop-font-size-240)",
|
|
757
771
|
"--hop-heading-lg-font-weight": "var(--hop-font-weight-680)",
|
|
758
772
|
"--hop-heading-lg-line-height": "var(--hop-line-height-1-33)",
|
|
773
|
+
"--hop-heading-lg-top-offset": "-0.5625rem",
|
|
774
|
+
"--hop-heading-lg-bottom-offset": "-0.3125rem",
|
|
759
775
|
"--hop-heading-md-font-family": "var(--hop-font-family-primary)",
|
|
760
776
|
"--hop-heading-md-font-size": "var(--hop-font-size-200)",
|
|
761
777
|
"--hop-heading-md-font-weight": "var(--hop-font-weight-580)",
|
|
762
778
|
"--hop-heading-md-line-height": "var(--hop-line-height-1-20)",
|
|
779
|
+
"--hop-heading-md-top-offset": "-0.3333rem",
|
|
780
|
+
"--hop-heading-md-bottom-offset": "-0.125rem",
|
|
763
781
|
"--hop-heading-sm-font-family": "var(--hop-font-family-primary)",
|
|
764
782
|
"--hop-heading-sm-font-size": "var(--hop-font-size-180)",
|
|
765
783
|
"--hop-heading-sm-font-weight": "var(--hop-font-weight-580)",
|
|
766
784
|
"--hop-heading-sm-line-height": "var(--hop-line-height-1-33)",
|
|
785
|
+
"--hop-heading-sm-top-offset": "-0.375rem",
|
|
786
|
+
"--hop-heading-sm-bottom-offset": "-0.1875rem",
|
|
767
787
|
"--hop-heading-xs-font-family": "var(--hop-font-family-primary)",
|
|
768
788
|
"--hop-heading-xs-font-size": "var(--hop-font-size-160)",
|
|
769
789
|
"--hop-heading-xs-font-weight": "var(--hop-font-weight-410)",
|
|
770
790
|
"--hop-heading-xs-line-height": "var(--hop-line-height-1-50)",
|
|
791
|
+
"--hop-heading-xs-top-offset": "-0.4166rem",
|
|
792
|
+
"--hop-heading-xs-bottom-offset": "-0.25rem",
|
|
771
793
|
"--hop-heading-xs-medium-font-family": "var(--hop-font-family-primary)",
|
|
772
794
|
"--hop-heading-xs-medium-font-size": "var(--hop-font-size-160)",
|
|
773
795
|
"--hop-heading-xs-medium-font-weight": "var(--hop-font-weight-580)",
|
|
774
796
|
"--hop-heading-xs-medium-line-height": "var(--hop-line-height-1-50)",
|
|
797
|
+
"--hop-heading-xs-medium-top-offset": "-0.4166rem",
|
|
798
|
+
"--hop-heading-xs-medium-bottom-offset": "-0.25rem",
|
|
775
799
|
"--hop-overline-font-family": "var(--hop-font-family-tertiary)",
|
|
776
800
|
"--hop-overline-font-size": "var(--hop-font-size-120)",
|
|
777
801
|
"--hop-overline-font-weight": "var(--hop-font-weight-400)",
|
|
778
802
|
"--hop-overline-line-height": "var(--hop-line-height-1-33)",
|
|
803
|
+
"--hop-overline-top-offset": "-0.25rem",
|
|
804
|
+
"--hop-overline-bottom-offset": "-0.125rem",
|
|
779
805
|
"--hop-body-2xl-font-family": "var(--hop-font-family-secondary)",
|
|
780
806
|
"--hop-body-2xl-font-size": "var(--hop-font-size-320)",
|
|
781
807
|
"--hop-body-2xl-font-weight": "var(--hop-font-weight-410)",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { BodyStyleProvider } from './chunk-
|
|
2
|
-
import { Div } from './chunk-
|
|
1
|
+
import { BodyStyleProvider } from './chunk-2BSH225N.js';
|
|
2
|
+
import { Div } from './chunk-KHRJTNYB.js';
|
|
3
3
|
import { BreakpointProvider, DefaultUnsupportedMatchMediaBreakpoint } from './chunk-MCUHAIA4.js';
|
|
4
|
-
import { TokenProvider } from './chunk-
|
|
5
|
-
import { HopperRootCssClass, StyledSystemRootCssClass } from './chunk-
|
|
4
|
+
import { TokenProvider } from './chunk-YZ3QMR47.js';
|
|
5
|
+
import { HopperRootCssClass, StyledSystemRootCssClass } from './chunk-FQYMSLSL.js';
|
|
6
6
|
import { useColorScheme } from './chunk-KLNF34G6.js';
|
|
7
7
|
import { ColorSchemeContext } from './chunk-V7X6ANEM.js';
|
|
8
8
|
import clsx from 'clsx';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { useStyledSystem } from './chunk-
|
|
1
|
+
import { useStyledSystem } from './chunk-37HGVAAN.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 = { "
|
|
8
|
-
var GlobalHtmlElementCssSelector = "hop-
|
|
7
|
+
var htmlElement_module_default = { "hop-HtmlElement": "htmlElement-module__hop-HtmlElement___cSA3Z" };
|
|
8
|
+
var GlobalHtmlElementCssSelector = "hop-HtmlElement";
|
|
9
9
|
var GlobalHtmlElementSpecificCssSelector = (elementType) => `${GlobalHtmlElementCssSelector}-${elementType}`;
|
|
10
10
|
function htmlElement(elementType) {
|
|
11
11
|
return forwardRef((props, ref) => {
|
|
@@ -14,7 +14,7 @@ function htmlElement(elementType) {
|
|
|
14
14
|
const As = elementType;
|
|
15
15
|
const classNames = clsx(
|
|
16
16
|
className,
|
|
17
|
-
htmlElement_module_default["
|
|
17
|
+
htmlElement_module_default["hop-HtmlElement"],
|
|
18
18
|
GlobalHtmlElementCssSelector,
|
|
19
19
|
GlobalHtmlElementSpecificCssSelector(elementType),
|
|
20
20
|
stylingProps.className
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Tokens } from './chunk-
|
|
1
|
+
import { Tokens } from './chunk-FTYCODSC.js';
|
|
2
2
|
import { useInsertStyleElement } from './chunk-RIORU7JO.js';
|
|
3
|
-
import { StyledSystemRootCssClass } from './chunk-
|
|
3
|
+
import { StyledSystemRootCssClass } from './chunk-FQYMSLSL.js';
|
|
4
4
|
|
|
5
5
|
// src/tokens/TokenProvider.tsx
|
|
6
6
|
function TokenProvider() {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { BodyStyleProvider } from '../chunk-
|
|
1
|
+
export { BodyStyleProvider } from '../chunk-2BSH225N.js';
|
|
2
2
|
import '../chunk-3YM73BQP.js';
|
|
3
3
|
import '../chunk-B6ZBFYWJ.js';
|
|
4
4
|
import '../chunk-RIORU7JO.js';
|
|
5
5
|
import '../chunk-YPIK2HRL.js';
|
|
6
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-FQYMSLSL.js';
|
|
7
7
|
import '../chunk-U5R6ZXH3.js';
|
|
8
8
|
import '../chunk-V7X6ANEM.js';
|
|
9
9
|
import '../chunk-6LX4VMOV.js';
|