@hopper-ui/styled-system 2.0.0 → 2.0.2
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 +14 -14
- package/dist/chunk-2UOTJGT6.js +12 -0
- package/dist/{chunk-XEJOSGGW.js → chunk-3QZI66SR.js} +4 -4
- package/dist/{chunk-DVOV55CD.js → chunk-4E7VQIC5.js} +130 -103
- package/dist/{chunk-B6ZBFYWJ.js → chunk-6IPAN22Z.js} +3 -3
- package/dist/chunk-7STOSQRA.js +8 -0
- package/dist/{chunk-EF3UX45A.js → chunk-CFIMNXX5.js} +2 -2
- package/dist/{chunk-BA7JHGU6.js → chunk-F7KWE6J5.js} +2 -2
- package/dist/{chunk-Y7GWSHYF.js → chunk-FAICHNEU.js} +117 -90
- package/dist/{chunk-YJKWZYVH.js → chunk-LKOZVSXD.js} +129 -102
- package/dist/{chunk-5GX5VZFT.js → chunk-NJIDLCB7.js} +1 -1
- package/dist/{chunk-VJNKYHHT.js → chunk-QLYSVZLZ.js} +2 -2
- package/dist/{chunk-AZ44JR7G.js → chunk-RU6U3SMC.js} +1 -1
- package/dist/{chunk-REAV6RA4.js → chunk-XGLTD52P.js} +8 -8
- package/dist/{chunk-SSBFBJJN.js → chunk-XOHK7VFY.js} +5 -5
- package/dist/{chunk-GZ3MQOPA.js → chunk-ZAHZAEAR.js} +2 -2
- package/dist/color-scheme/ColorSchemeContext.js +1 -1
- package/dist/color-scheme/useColorScheme.js +1 -1
- 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.js +6 -6
- package/dist/html-wrappers/htmlElement.css +34 -34
- package/dist/html-wrappers/htmlElement.js +5 -5
- package/dist/index.css +34 -34
- package/dist/index.d.ts +1 -0
- package/dist/index.js +15 -14
- package/dist/responsive/BreakpointContext.js +1 -1
- package/dist/responsive/BreakpointProvider.js +1 -1
- package/dist/responsive/Breakpoints.js +1 -1
- package/dist/responsive/useResponsiveValue.js +1 -1
- package/dist/styledSystemProps.js +1 -1
- package/dist/styledSystemRootCssClass.js +2 -2
- package/dist/tokens/TokenProvider.js +6 -6
- package/dist/tokens/generated/darkSemanticTokens.d.ts +129 -102
- package/dist/tokens/generated/darkSemanticTokens.js +2 -2
- package/dist/tokens/generated/lightSemanticTokens.d.ts +129 -102
- package/dist/tokens/generated/lightSemanticTokens.js +2 -2
- package/dist/tokens/generated/styledSystemToTokenMappings.d.ts +117 -90
- package/dist/tokens/generated/styledSystemToTokenMappings.js +2 -2
- package/dist/tokens/tokenMappings.d.ts +145 -113
- package/dist/tokens/tokenMappings.js +3 -3
- package/dist/tokens/tokens.d.ts +258 -204
- package/dist/tokens/tokens.js +4 -4
- package/dist/useStyledSystem.css +31 -31
- package/dist/useStyledSystem.js +4 -4
- package/dist/utils/assertion.js +1 -1
- package/dist/utils/slot.d.ts +20 -0
- package/dist/utils/slot.js +2 -0
- 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 +1 -1
- package/dist/utils/useThemeComputedStyle.js +2 -2
- package/package.json +9 -9
- package/dist/chunk-6LX4VMOV.js +0 -26
package/dist/useStyledSystem.css
CHANGED
|
@@ -1,125 +1,125 @@
|
|
|
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___ByQqv: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___Xeioa: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___Cxjz3: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___L4OWT: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___xCq-6: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___5ey6Q: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___dzkqR: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___j2NSy: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___m2UpF: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___617Ma: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___vHP2d: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___5YpAB: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___AYzyh: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___EZc9-: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___3bAw6: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___NONEn: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___9qrlQ: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___AJVse: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___2wpw8: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___0o-5R: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___ETL48: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___vMN-7: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___epcDl: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___UoikK: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___WHpUN: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___FczO1: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___lAOOH: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___a-6up: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___E9zOT: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___ArZQU: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___rwEXJ:focus-visible {
|
|
123
123
|
--hop-ol-focus: initial;
|
|
124
124
|
color: var(--hop-ol-focus) !important;
|
|
125
125
|
}
|
package/dist/useStyledSystem.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { isStyledSystemProp, useStyledSystem } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
export { isStyledSystemProp, useStyledSystem } from './chunk-XOHK7VFY.js';
|
|
2
|
+
import './chunk-NJIDLCB7.js';
|
|
3
|
+
import './chunk-FAICHNEU.js';
|
|
4
4
|
import './chunk-SFOVKOPG.js';
|
|
5
5
|
import './chunk-VBKLISDI.js';
|
|
6
6
|
import './chunk-XUHDFZZL.js';
|
|
7
7
|
import './chunk-U5R6ZXH3.js';
|
|
8
8
|
import './chunk-QMDDVBCZ.js';
|
|
9
|
-
import './chunk-
|
|
9
|
+
import './chunk-2UOTJGT6.js';
|
package/dist/utils/assertion.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { isArray, isDefined, isEmptyArray, isFunction, isNil, isNilOrEmpty, isNull, isNumber, isObject, isPlainObject, isPromise, isString, isUndefined } from '../chunk-U5R6ZXH3.js';
|
|
2
|
-
import '../chunk-
|
|
2
|
+
import '../chunk-2UOTJGT6.js';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE IS MEANT TO BE TEMPORARY. This function's only utility is to allow us to use Hopper components in Orbiter.
|
|
3
|
+
* TODO: Once Orbiter is gone, this file and function should be removed.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* This methods allows us to define a slot name for a component. This is useful for Orbiter to know where to place the component.
|
|
7
|
+
* @example
|
|
8
|
+
* // In Orbiter's codebase, they load slot's content using the useSlots hook.
|
|
9
|
+
* const { button } = useSlots(children, useMemo(() => ({
|
|
10
|
+
* button: {
|
|
11
|
+
* className: "o-ui-dialog-button"
|
|
12
|
+
* },
|
|
13
|
+
* }), [sizeValue, disabled, loading]));
|
|
14
|
+
*
|
|
15
|
+
* // In Hopper, our button component should be wrapped in the slot function.
|
|
16
|
+
* const _Button = slot("button", forwardRef(Button));
|
|
17
|
+
*/
|
|
18
|
+
declare function slot<P>(slotName: string, ElementType: P): P;
|
|
19
|
+
|
|
20
|
+
export { slot };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { useIsomorphicInsertionEffect } from '../chunk-YPIK2HRL.js';
|
|
2
|
-
import '../chunk-
|
|
2
|
+
import '../chunk-2UOTJGT6.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { useIsomorphicLayoutEffect } from '../chunk-3YM73BQP.js';
|
|
2
|
-
import '../chunk-
|
|
2
|
+
import '../chunk-2UOTJGT6.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { supportsMatchMedia, useMediaQuery } from '../chunk-T6JS7L6B.js';
|
|
2
|
-
import '../chunk-
|
|
2
|
+
import '../chunk-2UOTJGT6.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { ThemeComputedStyle } from '../chunk-
|
|
1
|
+
export { ThemeComputedStyle } from '../chunk-6IPAN22Z.js';
|
|
2
2
|
import '../chunk-U5R6ZXH3.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-2UOTJGT6.js';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hopper-ui/styled-system",
|
|
3
3
|
"author": "Workleap",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.2",
|
|
5
5
|
"description": "The styled-system package.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": {
|
|
@@ -38,17 +38,17 @@
|
|
|
38
38
|
"react-dom": "^18"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@react-aria/ssr": "^3.9.
|
|
41
|
+
"@react-aria/ssr": "^3.9.4",
|
|
42
42
|
"clsx": "^2.1.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@swc/core": "1.5.
|
|
45
|
+
"@swc/core": "1.5.25",
|
|
46
46
|
"@swc/helpers": "0.5.11",
|
|
47
47
|
"@swc/jest": "0.2.36",
|
|
48
48
|
"@testing-library/jest-dom": "6.4.5",
|
|
49
|
-
"@testing-library/react": "
|
|
49
|
+
"@testing-library/react": "16.0.0",
|
|
50
50
|
"@types/jest": "29.5.12",
|
|
51
|
-
"@types/react": "18.3.
|
|
51
|
+
"@types/react": "18.3.3",
|
|
52
52
|
"@types/react-dom": "18.3.0",
|
|
53
53
|
"@types/react-test-renderer": "18.3.0",
|
|
54
54
|
"@workleap/eslint-plugin": "3.2.2",
|
|
@@ -59,16 +59,16 @@
|
|
|
59
59
|
"identity-obj-proxy": "3.0.0",
|
|
60
60
|
"jest": "29.7.0",
|
|
61
61
|
"jest-environment-jsdom": "29.7.0",
|
|
62
|
-
"jest-fail-on-console": "3.
|
|
62
|
+
"jest-fail-on-console": "3.3.0",
|
|
63
63
|
"postcss": "8.4.38",
|
|
64
64
|
"postcss-modules": "6.0.0",
|
|
65
65
|
"react": "18.3.1",
|
|
66
66
|
"react-dom": "18.3.1",
|
|
67
67
|
"react-test-renderer": "18.3.1",
|
|
68
|
-
"ts-jest": "29.1.
|
|
69
|
-
"tsup": "8.0
|
|
68
|
+
"ts-jest": "29.1.4",
|
|
69
|
+
"tsup": "8.1.0",
|
|
70
70
|
"typescript": "5.4.5",
|
|
71
|
-
"@hopper-ui/tokens": "4.0.
|
|
71
|
+
"@hopper-ui/tokens": "4.0.2"
|
|
72
72
|
},
|
|
73
73
|
"scripts": {
|
|
74
74
|
"dev": "tsup --config ./tsup.dev.ts",
|
package/dist/chunk-6LX4VMOV.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
-
var __publicField = (obj, key, value) => {
|
|
4
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
-
return value;
|
|
6
|
-
};
|
|
7
|
-
var __accessCheck = (obj, member, msg) => {
|
|
8
|
-
if (!member.has(obj))
|
|
9
|
-
throw TypeError("Cannot " + msg);
|
|
10
|
-
};
|
|
11
|
-
var __privateGet = (obj, member, getter) => {
|
|
12
|
-
__accessCheck(obj, member, "read from private field");
|
|
13
|
-
return getter ? getter.call(obj) : member.get(obj);
|
|
14
|
-
};
|
|
15
|
-
var __privateAdd = (obj, member, value) => {
|
|
16
|
-
if (member.has(obj))
|
|
17
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
18
|
-
member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
19
|
-
};
|
|
20
|
-
var __privateSet = (obj, member, value, setter) => {
|
|
21
|
-
__accessCheck(obj, member, "write to private field");
|
|
22
|
-
setter ? setter.call(obj, value) : member.set(obj, value);
|
|
23
|
-
return value;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export { __privateAdd, __privateGet, __privateSet, __publicField };
|