@hopper-ui/styled-system 0.2.0 → 0.2.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 +132 -1
- package/dist/StyledSystemProvider.d.ts +42 -4
- package/dist/StyledSystemProvider.js +25 -26
- package/dist/chunk-2ITAI3PJ.js +270 -0
- package/dist/chunk-35LDZFKX.js +29 -0
- package/dist/chunk-3YM73BQP.js +6 -0
- package/dist/chunk-7HCELIKZ.js +41 -0
- package/dist/chunk-FYKLSVLR.js +39 -0
- package/dist/chunk-GYREQTEK.js +30 -0
- package/dist/chunk-I37Y2R7V.js +4 -0
- package/dist/chunk-IK6W4ZXH.js +11 -0
- package/dist/chunk-IP7TYBR3.js +19 -0
- package/dist/chunk-JBWKRDVA.js +27 -0
- package/dist/chunk-JQBON2KA.js +23 -0
- package/dist/chunk-KUUJ37DW.js +96 -0
- package/dist/chunk-LU33LZMJ.js +55 -0
- package/dist/chunk-OHW5NUAW.js +59 -0
- package/dist/chunk-Q3NLRNZN.js +881 -0
- package/dist/chunk-RIR7BXVF.js +711 -0
- package/dist/chunk-STEDL5VQ.js +25 -0
- package/dist/chunk-U3SI5QXV.js +911 -0
- package/dist/chunk-U5R6ZXH3.js +46 -0
- package/dist/chunk-V7X6ANEM.js +14 -0
- package/dist/chunk-X5OXC6DN.js +9 -0
- package/dist/chunk-XUHDFZZL.js +10 -0
- package/dist/chunk-YPIK2HRL.js +6 -0
- package/dist/chunk-ZO3DYLQJ.js +32 -0
- package/dist/chunk-ZQUJDDQL.js +84 -0
- package/dist/chunk-ZUVKM5DV.js +13 -0
- package/dist/color-scheme/ColorSchemeContext.d.ts +12 -0
- package/dist/color-scheme/ColorSchemeContext.js +1 -0
- package/dist/color-scheme/useColorScheme.d.ts +6 -0
- package/dist/color-scheme/useColorScheme.js +2 -0
- package/dist/color-scheme/useColorSchemeValue.d.ts +3 -0
- package/dist/color-scheme/useColorSchemeValue.js +2 -0
- package/dist/global-styles/BodyStyleProvider.d.ts +5 -0
- package/dist/global-styles/BodyStyleProvider.js +8 -0
- package/dist/html-wrappers/html.css +132 -0
- package/dist/{StyledSystemProvider-173b78af.d.ts → html-wrappers/html.d.ts} +8 -53
- package/dist/html-wrappers/html.js +10 -0
- package/dist/html-wrappers/htmlElement.css +132 -0
- package/dist/html-wrappers/htmlElement.d.ts +12 -0
- package/dist/html-wrappers/htmlElement.js +9 -0
- package/dist/index.css +132 -1
- package/dist/index.d.ts +23 -2385
- package/dist/index.js +26 -26
- package/dist/responsive/BreakpointContext.d.ts +10 -0
- package/dist/responsive/BreakpointContext.js +2 -0
- package/dist/responsive/BreakpointProvider.d.ts +12 -0
- package/dist/responsive/BreakpointProvider.js +5 -0
- package/dist/responsive/Breakpoints.d.ts +10 -0
- package/dist/responsive/Breakpoints.js +1 -0
- package/dist/responsive/useResponsiveValue.d.ts +11 -0
- package/dist/responsive/useResponsiveValue.js +4 -0
- package/dist/styled-system-props.d.ts +1246 -3
- package/dist/styled-system-props.js +1 -3
- package/dist/styled-system-root-css-class.js +1 -3
- package/dist/tokens/TokenProvider.d.ts +20 -0
- package/dist/tokens/TokenProvider.js +8 -0
- package/dist/tokens/generated/dark-semantic-tokens.d.ts +272 -0
- package/dist/tokens/generated/dark-semantic-tokens.js +1 -0
- package/dist/tokens/generated/light-semantic-tokens.d.ts +883 -0
- package/dist/tokens/generated/light-semantic-tokens.js +1 -0
- package/dist/tokens/generated/styled-system-to-token-mappings.d.ts +913 -0
- package/dist/tokens/generated/styled-system-to-token-mappings.js +1 -0
- package/dist/{styled-system-props-1c231c50.d.ts → tokens/token-mappings.d.ts} +2 -1258
- package/dist/tokens/token-mappings.js +6 -0
- package/dist/tokens/tokens.d.ts +1154 -0
- package/dist/tokens/tokens.js +3 -0
- package/dist/useStyledSystem.css +125 -1
- package/dist/useStyledSystem.d.ts +4 -1
- package/dist/useStyledSystem.js +8 -5
- package/dist/utils/assertion.d.ts +15 -0
- package/dist/utils/assertion.js +1 -0
- package/dist/utils/useInsertStyleElement.d.ts +6 -0
- package/dist/utils/useInsertStyleElement.js +3 -0
- package/dist/utils/useIsomorphicInsertionEffect.d.ts +16 -0
- package/dist/utils/useIsomorphicInsertionEffect.js +1 -0
- package/dist/utils/useIsomorphicLayoutEffect.d.ts +16 -0
- package/dist/utils/useIsomorphicLayoutEffect.js +1 -0
- package/dist/utils/useMediaQuery.d.ts +4 -0
- package/dist/utils/useMediaQuery.js +1 -0
- package/dist/utils/useThemeComputedStyle.d.ts +14 -0
- package/dist/utils/useThemeComputedStyle.js +2 -0
- package/package.json +4 -4
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// src/utils/assertion.ts
|
|
2
|
+
function isNull(value) {
|
|
3
|
+
return value == null;
|
|
4
|
+
}
|
|
5
|
+
function isUndefined(value) {
|
|
6
|
+
return typeof value === "undefined" || value === void 0;
|
|
7
|
+
}
|
|
8
|
+
function isDefined(value) {
|
|
9
|
+
return typeof value !== "undefined" && value !== void 0;
|
|
10
|
+
}
|
|
11
|
+
function isNil(value) {
|
|
12
|
+
return isNull(value) || isUndefined(value);
|
|
13
|
+
}
|
|
14
|
+
function isNilOrEmpty(value) {
|
|
15
|
+
return isNil(value) || value === "";
|
|
16
|
+
}
|
|
17
|
+
function isString(value) {
|
|
18
|
+
return Object.prototype.toString.call(value) === "[object String]";
|
|
19
|
+
}
|
|
20
|
+
function isNumber(value) {
|
|
21
|
+
return typeof value === "number";
|
|
22
|
+
}
|
|
23
|
+
function isArray(value) {
|
|
24
|
+
return Array.isArray(value);
|
|
25
|
+
}
|
|
26
|
+
function isEmptyArray(value) {
|
|
27
|
+
return isArray(value) && value.length === 0;
|
|
28
|
+
}
|
|
29
|
+
function isFunction(value) {
|
|
30
|
+
return typeof value === "function";
|
|
31
|
+
}
|
|
32
|
+
function isObject(value) {
|
|
33
|
+
return typeof value === "object" && !Array.isArray(value) && value != null;
|
|
34
|
+
}
|
|
35
|
+
function isPlainObject(value) {
|
|
36
|
+
if (Object.prototype.toString.call(value) !== "[object Object]") {
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
const prototype = Object.getPrototypeOf(value);
|
|
40
|
+
return prototype === null || prototype === Object.prototype;
|
|
41
|
+
}
|
|
42
|
+
function isPromise(value) {
|
|
43
|
+
return !isNil(value) && !isNil(value.then);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export { isArray, isDefined, isEmptyArray, isFunction, isNil, isNilOrEmpty, isNull, isNumber, isObject, isPlainObject, isPromise, isString, isUndefined };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createContext, useContext } from 'react';
|
|
2
|
+
|
|
3
|
+
// src/color-scheme/ColorSchemeContext.ts
|
|
4
|
+
var ColorSchemeContext = createContext({
|
|
5
|
+
colorScheme: "light",
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
7
|
+
setColorScheme: () => {
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
function useColorSchemeContext() {
|
|
11
|
+
return useContext(ColorSchemeContext);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { ColorSchemeContext, useColorSchemeContext };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { useColorSchemeContext } from './chunk-V7X6ANEM.js';
|
|
2
|
+
|
|
3
|
+
// src/color-scheme/useColorSchemeValue.ts
|
|
4
|
+
function useColorSchemeValue(lightColor, darkColor) {
|
|
5
|
+
const { colorScheme } = useColorSchemeContext();
|
|
6
|
+
return colorScheme === "dark" ? darkColor : lightColor;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export { useColorSchemeValue };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Tokens } from './chunk-IK6W4ZXH.js';
|
|
2
|
+
import { useInsertStyleElement } from './chunk-JBWKRDVA.js';
|
|
3
|
+
import { StyledSystemRootCssClass } from './chunk-ZQUJDDQL.js';
|
|
4
|
+
|
|
5
|
+
// src/tokens/TokenProvider.tsx
|
|
6
|
+
function TokenProvider() {
|
|
7
|
+
useInsertStyleElement(
|
|
8
|
+
`hop-tokens-${StyledSystemRootCssClass}`,
|
|
9
|
+
tokensToCssString(`.hop.${StyledSystemRootCssClass}`, Tokens.Core),
|
|
10
|
+
false
|
|
11
|
+
);
|
|
12
|
+
useInsertStyleElement(
|
|
13
|
+
`hop-tokens-semantic-${StyledSystemRootCssClass}`,
|
|
14
|
+
tokensToCssString(`.hop.${StyledSystemRootCssClass}`, Tokens.Semantic),
|
|
15
|
+
false
|
|
16
|
+
);
|
|
17
|
+
useInsertStyleElement(
|
|
18
|
+
`hop-tokens-semantic-dark-${StyledSystemRootCssClass}`,
|
|
19
|
+
tokensToCssString(`.hop.${StyledSystemRootCssClass}.${StyledSystemRootCssClass}-dark`, Tokens.DarkSemantic),
|
|
20
|
+
false
|
|
21
|
+
);
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
function tokensToCssString(selector, tokens) {
|
|
25
|
+
const cssValues = Object.entries(tokens).reduce((acc, [key, value]) => {
|
|
26
|
+
return `${acc} ${key}: ${value};`;
|
|
27
|
+
}, "");
|
|
28
|
+
return `${selector} {${cssValues}
|
|
29
|
+
}`;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { TokenProvider };
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
// package.json
|
|
2
|
+
var package_default = {
|
|
3
|
+
name: "@hopper-ui/styled-system",
|
|
4
|
+
author: "Workleap",
|
|
5
|
+
version: "0.2.2",
|
|
6
|
+
description: "The styled-system package.",
|
|
7
|
+
license: "Apache-2.0",
|
|
8
|
+
repository: {
|
|
9
|
+
type: "git",
|
|
10
|
+
url: "git+https://github.com/gsoft-inc/wl-hopper.git",
|
|
11
|
+
directory: "packages/styled-system"
|
|
12
|
+
},
|
|
13
|
+
publishConfig: {
|
|
14
|
+
access: "public",
|
|
15
|
+
provenance: true
|
|
16
|
+
},
|
|
17
|
+
type: "module",
|
|
18
|
+
sideEffects: [
|
|
19
|
+
"*.css"
|
|
20
|
+
],
|
|
21
|
+
main: "dist/index.js",
|
|
22
|
+
types: "dist/index.d.ts",
|
|
23
|
+
style: "dist/index.css",
|
|
24
|
+
exports: {
|
|
25
|
+
".": {
|
|
26
|
+
import: "./dist/index.js",
|
|
27
|
+
types: "./dist/index.d.ts",
|
|
28
|
+
default: "./dist/index.js"
|
|
29
|
+
},
|
|
30
|
+
"./index.css": "./dist/index.css"
|
|
31
|
+
},
|
|
32
|
+
files: [
|
|
33
|
+
"/dist",
|
|
34
|
+
"CHANGELOG.md",
|
|
35
|
+
"README.md"
|
|
36
|
+
],
|
|
37
|
+
scripts: {
|
|
38
|
+
dev: "tsup --config ./tsup.dev.ts",
|
|
39
|
+
build: "tsup --config ./tsup.build.ts",
|
|
40
|
+
test: "jest"
|
|
41
|
+
},
|
|
42
|
+
peerDependencies: {
|
|
43
|
+
react: "*",
|
|
44
|
+
"react-dom": "*"
|
|
45
|
+
},
|
|
46
|
+
dependencies: {
|
|
47
|
+
clsx: "2.0.0",
|
|
48
|
+
"react-aria": "3.30.0"
|
|
49
|
+
},
|
|
50
|
+
devDependencies: {
|
|
51
|
+
"@hopper-ui/tokens": "workspace:*",
|
|
52
|
+
"@swc/core": "1.3.96",
|
|
53
|
+
"@swc/helpers": "0.5.3",
|
|
54
|
+
"@swc/jest": "0.2.29",
|
|
55
|
+
"@testing-library/jest-dom": "6.1.4",
|
|
56
|
+
"@testing-library/react": "14.1.0",
|
|
57
|
+
"@types/jest": "29.5.8",
|
|
58
|
+
"@types/react-dom": "18.2.17",
|
|
59
|
+
"@types/react-test-renderer": "18.0.6",
|
|
60
|
+
"@types/react": "18.2.38",
|
|
61
|
+
"@workleap/eslint-plugin": "3.0.0",
|
|
62
|
+
"@workleap/swc-configs": "2.1.2",
|
|
63
|
+
"@workleap/tsup-configs": "3.0.1",
|
|
64
|
+
"@workleap/typescript-configs": "3.0.2",
|
|
65
|
+
"identity-obj-proxy": "3.0.0",
|
|
66
|
+
"jest-environment-jsdom": "29.7.0",
|
|
67
|
+
jest: "29.7.0",
|
|
68
|
+
"postcss-modules": "6.0.0",
|
|
69
|
+
postcss: "8.4.31",
|
|
70
|
+
"react-dom": "18.2.0",
|
|
71
|
+
"react-test-renderer": "18.2.0",
|
|
72
|
+
react: "18.2.0",
|
|
73
|
+
"ts-jest": "29.1.1",
|
|
74
|
+
tsup: "7.2.0",
|
|
75
|
+
"type-fest": "4.7.1",
|
|
76
|
+
typescript: "5.2.2"
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
// src/styled-system-root-css-class.ts
|
|
81
|
+
var HopperRootCssClass = "hop";
|
|
82
|
+
var StyledSystemRootCssClass = `${HopperRootCssClass}-${package_default.version.replaceAll(".", "-")}`;
|
|
83
|
+
|
|
84
|
+
export { HopperRootCssClass, StyledSystemRootCssClass };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { isNil } from './chunk-U5R6ZXH3.js';
|
|
2
|
+
import { createContext, useContext } from 'react';
|
|
3
|
+
|
|
4
|
+
var BreakpointContext = createContext(void 0);
|
|
5
|
+
function useBreakpointContext() {
|
|
6
|
+
const context = useContext(BreakpointContext);
|
|
7
|
+
if (isNil(context)) {
|
|
8
|
+
throw new Error("useBreakpointContext must be used within a BreakpointProvider");
|
|
9
|
+
}
|
|
10
|
+
return context;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { BreakpointContext, useBreakpointContext };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
|
|
3
|
+
type ColorScheme = "light" | "dark";
|
|
4
|
+
type ColorSchemeOrSystem = ColorScheme | "system";
|
|
5
|
+
interface ColorSchemeContextType {
|
|
6
|
+
colorScheme: ColorScheme;
|
|
7
|
+
setColorScheme: (newColorScheme: ColorScheme) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const ColorSchemeContext: react.Context<ColorSchemeContextType>;
|
|
10
|
+
declare function useColorSchemeContext(): ColorSchemeContextType;
|
|
11
|
+
|
|
12
|
+
export { ColorScheme, ColorSchemeContext, ColorSchemeContextType, ColorSchemeOrSystem, useColorSchemeContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ColorSchemeContext, useColorSchemeContext } from '../chunk-V7X6ANEM.js';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { BodyStyleProvider } from '../chunk-OHW5NUAW.js';
|
|
2
|
+
import '../chunk-3YM73BQP.js';
|
|
3
|
+
import '../chunk-JQBON2KA.js';
|
|
4
|
+
import '../chunk-JBWKRDVA.js';
|
|
5
|
+
import '../chunk-YPIK2HRL.js';
|
|
6
|
+
import '../chunk-ZQUJDDQL.js';
|
|
7
|
+
import '../chunk-U5R6ZXH3.js';
|
|
8
|
+
import '../chunk-V7X6ANEM.js';
|
|
@@ -0,0 +1,132 @@
|
|
|
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-hover___J4CU8:hover {
|
|
3
|
+
--hop-b-hover: initial;
|
|
4
|
+
border: var(--hop-b-hover) !important;
|
|
5
|
+
}
|
|
6
|
+
.UseStyledSystem-module__hop-bb-hover___kSFWj:hover {
|
|
7
|
+
--hop-bb-hover: initial;
|
|
8
|
+
border-bottom: var(--hop-bb-hover) !important;
|
|
9
|
+
}
|
|
10
|
+
.UseStyledSystem-module__hop-bl-hover___1Cezh:hover {
|
|
11
|
+
--hop-bl-hover: initial;
|
|
12
|
+
border-left: var(--hop-bl-hover) !important;
|
|
13
|
+
}
|
|
14
|
+
.UseStyledSystem-module__hop-br-hover___6QimZ:hover {
|
|
15
|
+
--hop-br-hover: initial;
|
|
16
|
+
border-right: var(--hop-br-hover) !important;
|
|
17
|
+
}
|
|
18
|
+
.UseStyledSystem-module__hop-bt-hover___t7jJb:hover {
|
|
19
|
+
--hop-bt-hover: initial;
|
|
20
|
+
border-top: var(--hop-bt-hover) !important;
|
|
21
|
+
}
|
|
22
|
+
.UseStyledSystem-module__hop-b-focus___GAcvC:focus-visible {
|
|
23
|
+
--hop-b-focus: initial;
|
|
24
|
+
border: var(--hop-b-focus) !important;
|
|
25
|
+
}
|
|
26
|
+
.UseStyledSystem-module__hop-bb-focus___tRcZ7:focus-visible {
|
|
27
|
+
--hop-bb-focus: initial;
|
|
28
|
+
border-bottom: var(--hop-bb-focus) !important;
|
|
29
|
+
}
|
|
30
|
+
.UseStyledSystem-module__hop-bl-focus___tHmqH:focus-visible {
|
|
31
|
+
--hop-bl-focus: initial;
|
|
32
|
+
border-left: var(--hop-bl-focus) !important;
|
|
33
|
+
}
|
|
34
|
+
.UseStyledSystem-module__hop-br-focus___o38Ur:focus-visible {
|
|
35
|
+
--hop-br-focus: initial;
|
|
36
|
+
border-right: var(--hop-br-focus) !important;
|
|
37
|
+
}
|
|
38
|
+
.UseStyledSystem-module__hop-bt-focus___Iuh-n:focus-visible {
|
|
39
|
+
--hop-bt-focus: initial;
|
|
40
|
+
border-top: var(--hop-bt-focus) !important;
|
|
41
|
+
}
|
|
42
|
+
.UseStyledSystem-module__hop-b-active___T6lcA:active {
|
|
43
|
+
--hop-b-active: initial;
|
|
44
|
+
border: var(--hop-b-active) !important;
|
|
45
|
+
}
|
|
46
|
+
.UseStyledSystem-module__hop-bb-active___GMekS:active {
|
|
47
|
+
--hop-bb-active: initial;
|
|
48
|
+
border-bottom: var(--hop-bb-active) !important;
|
|
49
|
+
}
|
|
50
|
+
.UseStyledSystem-module__hop-bl-active___yAT0P:active {
|
|
51
|
+
--hop-bl-active: initial;
|
|
52
|
+
border-left: var(--hop-bl-active) !important;
|
|
53
|
+
}
|
|
54
|
+
.UseStyledSystem-module__hop-br-active___gjJ1X:active {
|
|
55
|
+
--hop-br-active: initial;
|
|
56
|
+
border-right: var(--hop-br-active) !important;
|
|
57
|
+
}
|
|
58
|
+
.UseStyledSystem-module__hop-bt-active___-jY1M:active {
|
|
59
|
+
--hop-bt-active: initial;
|
|
60
|
+
border-top: var(--hop-bt-active) !important;
|
|
61
|
+
}
|
|
62
|
+
.UseStyledSystem-module__hop-bg-hover___YImIc:hover {
|
|
63
|
+
--hop-bg-hover: initial;
|
|
64
|
+
background-color: var(--hop-bg-hover) !important;
|
|
65
|
+
}
|
|
66
|
+
.UseStyledSystem-module__hop-bg-focus___Cop9n:focus-visible {
|
|
67
|
+
--hop-bg-focus: initial;
|
|
68
|
+
background-color: var(--hop-bg-focus) !important;
|
|
69
|
+
}
|
|
70
|
+
.UseStyledSystem-module__hop-bg-active___5O85P:active {
|
|
71
|
+
--hop-bg-active: initial;
|
|
72
|
+
background-color: var(--hop-bg-active) !important;
|
|
73
|
+
}
|
|
74
|
+
.UseStyledSystem-module__hop-bs-hover___8Oj0h:hover {
|
|
75
|
+
--hop-bs-hover: initial;
|
|
76
|
+
box-shadow: var(--hop-bs-hover) !important;
|
|
77
|
+
}
|
|
78
|
+
.UseStyledSystem-module__hop-bs-focus___r9l2R:focus-visible {
|
|
79
|
+
--hop-bs-focus: initial;
|
|
80
|
+
box-shadow: var(--hop-bs-focus) !important;
|
|
81
|
+
}
|
|
82
|
+
.UseStyledSystem-module__hop-bs-active___XyHmm:active {
|
|
83
|
+
--hop-bs-active: initial;
|
|
84
|
+
box-shadow: var(--hop-bs-active) !important;
|
|
85
|
+
}
|
|
86
|
+
.UseStyledSystem-module__hop-c-hover___yYnaZ:hover {
|
|
87
|
+
--hop-c-hover: initial;
|
|
88
|
+
color: var(--hop-c-hover) !important;
|
|
89
|
+
}
|
|
90
|
+
.UseStyledSystem-module__hop-c-focus___Z9ASb:focus-visible {
|
|
91
|
+
--hop-c-focus: initial;
|
|
92
|
+
color: var(--hop-c-focus) !important;
|
|
93
|
+
}
|
|
94
|
+
.UseStyledSystem-module__hop-c-active___zk1Gb:active {
|
|
95
|
+
--hop-c-active: initial;
|
|
96
|
+
color: var(--hop-c-active) !important;
|
|
97
|
+
}
|
|
98
|
+
.UseStyledSystem-module__hop-cs-hover___jOiBf:hover {
|
|
99
|
+
--hop-cs-hover: initial;
|
|
100
|
+
cursor: var(--hop-cs-hover) !important;
|
|
101
|
+
}
|
|
102
|
+
.UseStyledSystem-module__hop-f-hover___huyDo:hover {
|
|
103
|
+
--hop-f-hover: initial;
|
|
104
|
+
fill: var(--hop-f-hover) !important;
|
|
105
|
+
}
|
|
106
|
+
.UseStyledSystem-module__hop-f-focus___5-VRH:focus-visible {
|
|
107
|
+
--hop-f-focus: initial;
|
|
108
|
+
fill: var(--hop-f-focus) !important;
|
|
109
|
+
}
|
|
110
|
+
.UseStyledSystem-module__hop-o-hover___Ntq4o:hover {
|
|
111
|
+
--hop-o-hover: initial;
|
|
112
|
+
opacity: var(--hop-o-hover) !important;
|
|
113
|
+
}
|
|
114
|
+
.UseStyledSystem-module__hop-o-focus___Xxebb:focus-visible {
|
|
115
|
+
--hop-o-focus: initial;
|
|
116
|
+
opacity: var(--hop-o-focus) !important;
|
|
117
|
+
}
|
|
118
|
+
.UseStyledSystem-module__hop-o-active___uJ6oe:active {
|
|
119
|
+
--hop-o-active: initial;
|
|
120
|
+
opacity: var(--hop-o-active) !important;
|
|
121
|
+
}
|
|
122
|
+
.UseStyledSystem-module__hop-ol-focus___iZ2fp:focus-visible {
|
|
123
|
+
--hop-ol-focus: initial;
|
|
124
|
+
color: var(--hop-ol-focus) !important;
|
|
125
|
+
}
|
|
126
|
+
|
|
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-element___xmRSa),
|
|
129
|
+
:where(.htmlElement-module__html-element___xmRSa::after),
|
|
130
|
+
:where(.htmlElement-module__html-element___xmRSa::before) {
|
|
131
|
+
box-sizing: border-box;
|
|
132
|
+
}
|
|
@@ -1,19 +1,11 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as react from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
setColorScheme: (newColorScheme: ColorScheme) => void;
|
|
11
|
-
}
|
|
12
|
-
declare const ColorSchemeContext: react.Context<ColorSchemeContextType>;
|
|
13
|
-
declare function useColorSchemeContext(): ColorSchemeContextType;
|
|
14
|
-
|
|
15
|
-
type HtmlElementProps<T extends keyof JSX.IntrinsicElements> = StyledComponentProps<T>;
|
|
16
|
-
declare function htmlElement<T extends keyof JSX.IntrinsicElements>(elementType: T): react.ForwardRefExoticComponent<react.PropsWithoutRef<HtmlElementProps<T>> & react.RefAttributes<ElementRef<T>>>;
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import { HtmlElementProps } from './htmlElement.js';
|
|
4
|
+
import '../styled-system-props.js';
|
|
5
|
+
import 'csstype';
|
|
6
|
+
import '../responsive/useResponsiveValue.js';
|
|
7
|
+
import '../responsive/Breakpoints.js';
|
|
8
|
+
import '../tokens/token-mappings.js';
|
|
17
9
|
|
|
18
10
|
/**
|
|
19
11
|
* A specialized wrapping component for HTML `address` element that allows style props.
|
|
@@ -186,41 +178,4 @@ type HtmlInputProps = ComponentProps<typeof HtmlInput>;
|
|
|
186
178
|
type HtmlLabelProps = ComponentProps<typeof HtmlLabel>;
|
|
187
179
|
type HtmlTextAreaProps = ComponentProps<typeof HtmlTextArea>;
|
|
188
180
|
|
|
189
|
-
|
|
190
|
-
interface BreakpointProviderProps {
|
|
191
|
-
children: ReactNode;
|
|
192
|
-
unsupportedMatchMediaBreakpoint?: Breakpoint;
|
|
193
|
-
}
|
|
194
|
-
declare function BreakpointProvider({ children, unsupportedMatchMediaBreakpoint }: BreakpointProviderProps): react_jsx_runtime.JSX.Element;
|
|
195
|
-
|
|
196
|
-
interface StyledSystemProviderProps extends BreakpointProviderProps, DivProps {
|
|
197
|
-
/** The children of the component */
|
|
198
|
-
children: ReactNode;
|
|
199
|
-
/**
|
|
200
|
-
* Determines whether the styles should be added to the document's body
|
|
201
|
-
* By default, it is set to `false`. If set to `true`, it will apply additional styling to the document's body.
|
|
202
|
-
*/
|
|
203
|
-
withBodyStyle?: boolean;
|
|
204
|
-
/**
|
|
205
|
-
* The color scheme to use.
|
|
206
|
-
*/
|
|
207
|
-
colorScheme: ColorSchemeOrSystem;
|
|
208
|
-
/**
|
|
209
|
-
* Default color scheme to use when a user preferred color scheme (system) is not available.
|
|
210
|
-
*/
|
|
211
|
-
defaultColorScheme?: ColorScheme;
|
|
212
|
-
/**
|
|
213
|
-
* Determines whether token CSS variables should be added to the document's head
|
|
214
|
-
* By default, it is set to `true`, you should not change it unless you want to manage CSS variables via `.css` files
|
|
215
|
-
*/
|
|
216
|
-
withCssVariables?: boolean;
|
|
217
|
-
}
|
|
218
|
-
/**
|
|
219
|
-
* StyledSystemProvider is required to be rendered at the root of your application. It is responsible for:
|
|
220
|
-
* - Adding CSS variables to the document
|
|
221
|
-
* - Managing color scheme (light, dark, auto)
|
|
222
|
-
* - Optionally adding body styles to the document
|
|
223
|
-
*/
|
|
224
|
-
declare function StyledSystemProvider({ children, withBodyStyle, withCssVariables, colorScheme, defaultColorScheme, unsupportedMatchMediaBreakpoint, className, ...rest }: StyledSystemProviderProps): react_jsx_runtime.JSX.Element;
|
|
225
|
-
|
|
226
|
-
export { TH as $, Address as A, NavProps as B, ColorSchemeOrSystem as C, HtmlSectionProps as D, Div as E, HtmlParagraph as F, DivProps as G, HtmlFooter as H, HtmlParagraphProps as I, OLProps as J, ULProps as K, LI as L, Main as M, Nav as N, OL as O, LIProps as P, A as Q, AProps as R, Span as S, SpanProps as T, UL as U, Img as V, ImgProps as W, Table as X, THead as Y, TBody as Z, TFoot as _, ColorScheme as a, TR as a0, TD as a1, TableProps as a2, THeadProps as a3, TBodyProps as a4, TFootProps as a5, THProps as a6, TRProps as a7, TDProps as a8, HtmlButton as a9, HtmlForm as aa, HtmlInput as ab, HtmlLabel as ac, HtmlTextArea as ad, HtmlButtonProps as ae, HtmlFormProps as af, HtmlInputProps as ag, HtmlLabelProps as ah, HtmlTextAreaProps as ai, HtmlElementProps as aj, htmlElement as ak, DefaultUnsupportedMatchMediaBreakpoint as al, BreakpointProviderProps as am, BreakpointProvider as an, StyledSystemProviderProps as ao, StyledSystemProvider as ap, ColorSchemeContextType as b, ColorSchemeContext as c, Article as d, Aside as e, HtmlH1 as f, HtmlH2 as g, HtmlH3 as h, HtmlH4 as i, HtmlH5 as j, HtmlH6 as k, HtmlHeader as l, HtmlSection as m, AddressProps as n, ArticleProps as o, AsideProps as p, HtmlFooterProps as q, HtmlH1Props as r, HtmlH2Props as s, HtmlH3Props as t, useColorSchemeContext as u, HtmlH4Props as v, HtmlH5Props as w, HtmlH6Props as x, HtmlHeaderProps as y, MainProps as z };
|
|
181
|
+
export { A, AProps, Address, AddressProps, Article, ArticleProps, Aside, AsideProps, Div, DivProps, HtmlButton, HtmlButtonProps, HtmlFooter, HtmlFooterProps, HtmlForm, HtmlFormProps, HtmlH1, HtmlH1Props, HtmlH2, HtmlH2Props, HtmlH3, HtmlH3Props, HtmlH4, HtmlH4Props, HtmlH5, HtmlH5Props, HtmlH6, HtmlH6Props, HtmlHeader, HtmlHeaderProps, HtmlInput, HtmlInputProps, HtmlLabel, HtmlLabelProps, HtmlParagraph, HtmlParagraphProps, HtmlSection, HtmlSectionProps, HtmlTextArea, HtmlTextAreaProps, Img, ImgProps, LI, LIProps, Main, MainProps, Nav, NavProps, OL, OLProps, Span, SpanProps, TBody, TBodyProps, TD, TDProps, TFoot, TFootProps, TH, THProps, THead, THeadProps, TR, TRProps, Table, TableProps, UL, ULProps };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { A, Address, Article, Aside, Div, HtmlButton, HtmlFooter, HtmlForm, HtmlH1, HtmlH2, HtmlH3, HtmlH4, HtmlH5, HtmlH6, HtmlHeader, HtmlInput, HtmlLabel, HtmlParagraph, HtmlSection, HtmlTextArea, Img, LI, Main, Nav, OL, Span, TBody, TD, TFoot, TH, THead, TR, Table, UL } from '../chunk-FYKLSVLR.js';
|
|
2
|
+
import '../chunk-35LDZFKX.js';
|
|
3
|
+
import '../chunk-RIR7BXVF.js';
|
|
4
|
+
import '../chunk-KUUJ37DW.js';
|
|
5
|
+
import '../chunk-U3SI5QXV.js';
|
|
6
|
+
import '../chunk-GYREQTEK.js';
|
|
7
|
+
import '../chunk-ZUVKM5DV.js';
|
|
8
|
+
import '../chunk-XUHDFZZL.js';
|
|
9
|
+
import '../chunk-U5R6ZXH3.js';
|
|
10
|
+
import '../chunk-I37Y2R7V.js';
|
|
@@ -0,0 +1,132 @@
|
|
|
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-hover___J4CU8:hover {
|
|
3
|
+
--hop-b-hover: initial;
|
|
4
|
+
border: var(--hop-b-hover) !important;
|
|
5
|
+
}
|
|
6
|
+
.UseStyledSystem-module__hop-bb-hover___kSFWj:hover {
|
|
7
|
+
--hop-bb-hover: initial;
|
|
8
|
+
border-bottom: var(--hop-bb-hover) !important;
|
|
9
|
+
}
|
|
10
|
+
.UseStyledSystem-module__hop-bl-hover___1Cezh:hover {
|
|
11
|
+
--hop-bl-hover: initial;
|
|
12
|
+
border-left: var(--hop-bl-hover) !important;
|
|
13
|
+
}
|
|
14
|
+
.UseStyledSystem-module__hop-br-hover___6QimZ:hover {
|
|
15
|
+
--hop-br-hover: initial;
|
|
16
|
+
border-right: var(--hop-br-hover) !important;
|
|
17
|
+
}
|
|
18
|
+
.UseStyledSystem-module__hop-bt-hover___t7jJb:hover {
|
|
19
|
+
--hop-bt-hover: initial;
|
|
20
|
+
border-top: var(--hop-bt-hover) !important;
|
|
21
|
+
}
|
|
22
|
+
.UseStyledSystem-module__hop-b-focus___GAcvC:focus-visible {
|
|
23
|
+
--hop-b-focus: initial;
|
|
24
|
+
border: var(--hop-b-focus) !important;
|
|
25
|
+
}
|
|
26
|
+
.UseStyledSystem-module__hop-bb-focus___tRcZ7:focus-visible {
|
|
27
|
+
--hop-bb-focus: initial;
|
|
28
|
+
border-bottom: var(--hop-bb-focus) !important;
|
|
29
|
+
}
|
|
30
|
+
.UseStyledSystem-module__hop-bl-focus___tHmqH:focus-visible {
|
|
31
|
+
--hop-bl-focus: initial;
|
|
32
|
+
border-left: var(--hop-bl-focus) !important;
|
|
33
|
+
}
|
|
34
|
+
.UseStyledSystem-module__hop-br-focus___o38Ur:focus-visible {
|
|
35
|
+
--hop-br-focus: initial;
|
|
36
|
+
border-right: var(--hop-br-focus) !important;
|
|
37
|
+
}
|
|
38
|
+
.UseStyledSystem-module__hop-bt-focus___Iuh-n:focus-visible {
|
|
39
|
+
--hop-bt-focus: initial;
|
|
40
|
+
border-top: var(--hop-bt-focus) !important;
|
|
41
|
+
}
|
|
42
|
+
.UseStyledSystem-module__hop-b-active___T6lcA:active {
|
|
43
|
+
--hop-b-active: initial;
|
|
44
|
+
border: var(--hop-b-active) !important;
|
|
45
|
+
}
|
|
46
|
+
.UseStyledSystem-module__hop-bb-active___GMekS:active {
|
|
47
|
+
--hop-bb-active: initial;
|
|
48
|
+
border-bottom: var(--hop-bb-active) !important;
|
|
49
|
+
}
|
|
50
|
+
.UseStyledSystem-module__hop-bl-active___yAT0P:active {
|
|
51
|
+
--hop-bl-active: initial;
|
|
52
|
+
border-left: var(--hop-bl-active) !important;
|
|
53
|
+
}
|
|
54
|
+
.UseStyledSystem-module__hop-br-active___gjJ1X:active {
|
|
55
|
+
--hop-br-active: initial;
|
|
56
|
+
border-right: var(--hop-br-active) !important;
|
|
57
|
+
}
|
|
58
|
+
.UseStyledSystem-module__hop-bt-active___-jY1M:active {
|
|
59
|
+
--hop-bt-active: initial;
|
|
60
|
+
border-top: var(--hop-bt-active) !important;
|
|
61
|
+
}
|
|
62
|
+
.UseStyledSystem-module__hop-bg-hover___YImIc:hover {
|
|
63
|
+
--hop-bg-hover: initial;
|
|
64
|
+
background-color: var(--hop-bg-hover) !important;
|
|
65
|
+
}
|
|
66
|
+
.UseStyledSystem-module__hop-bg-focus___Cop9n:focus-visible {
|
|
67
|
+
--hop-bg-focus: initial;
|
|
68
|
+
background-color: var(--hop-bg-focus) !important;
|
|
69
|
+
}
|
|
70
|
+
.UseStyledSystem-module__hop-bg-active___5O85P:active {
|
|
71
|
+
--hop-bg-active: initial;
|
|
72
|
+
background-color: var(--hop-bg-active) !important;
|
|
73
|
+
}
|
|
74
|
+
.UseStyledSystem-module__hop-bs-hover___8Oj0h:hover {
|
|
75
|
+
--hop-bs-hover: initial;
|
|
76
|
+
box-shadow: var(--hop-bs-hover) !important;
|
|
77
|
+
}
|
|
78
|
+
.UseStyledSystem-module__hop-bs-focus___r9l2R:focus-visible {
|
|
79
|
+
--hop-bs-focus: initial;
|
|
80
|
+
box-shadow: var(--hop-bs-focus) !important;
|
|
81
|
+
}
|
|
82
|
+
.UseStyledSystem-module__hop-bs-active___XyHmm:active {
|
|
83
|
+
--hop-bs-active: initial;
|
|
84
|
+
box-shadow: var(--hop-bs-active) !important;
|
|
85
|
+
}
|
|
86
|
+
.UseStyledSystem-module__hop-c-hover___yYnaZ:hover {
|
|
87
|
+
--hop-c-hover: initial;
|
|
88
|
+
color: var(--hop-c-hover) !important;
|
|
89
|
+
}
|
|
90
|
+
.UseStyledSystem-module__hop-c-focus___Z9ASb:focus-visible {
|
|
91
|
+
--hop-c-focus: initial;
|
|
92
|
+
color: var(--hop-c-focus) !important;
|
|
93
|
+
}
|
|
94
|
+
.UseStyledSystem-module__hop-c-active___zk1Gb:active {
|
|
95
|
+
--hop-c-active: initial;
|
|
96
|
+
color: var(--hop-c-active) !important;
|
|
97
|
+
}
|
|
98
|
+
.UseStyledSystem-module__hop-cs-hover___jOiBf:hover {
|
|
99
|
+
--hop-cs-hover: initial;
|
|
100
|
+
cursor: var(--hop-cs-hover) !important;
|
|
101
|
+
}
|
|
102
|
+
.UseStyledSystem-module__hop-f-hover___huyDo:hover {
|
|
103
|
+
--hop-f-hover: initial;
|
|
104
|
+
fill: var(--hop-f-hover) !important;
|
|
105
|
+
}
|
|
106
|
+
.UseStyledSystem-module__hop-f-focus___5-VRH:focus-visible {
|
|
107
|
+
--hop-f-focus: initial;
|
|
108
|
+
fill: var(--hop-f-focus) !important;
|
|
109
|
+
}
|
|
110
|
+
.UseStyledSystem-module__hop-o-hover___Ntq4o:hover {
|
|
111
|
+
--hop-o-hover: initial;
|
|
112
|
+
opacity: var(--hop-o-hover) !important;
|
|
113
|
+
}
|
|
114
|
+
.UseStyledSystem-module__hop-o-focus___Xxebb:focus-visible {
|
|
115
|
+
--hop-o-focus: initial;
|
|
116
|
+
opacity: var(--hop-o-focus) !important;
|
|
117
|
+
}
|
|
118
|
+
.UseStyledSystem-module__hop-o-active___uJ6oe:active {
|
|
119
|
+
--hop-o-active: initial;
|
|
120
|
+
opacity: var(--hop-o-active) !important;
|
|
121
|
+
}
|
|
122
|
+
.UseStyledSystem-module__hop-ol-focus___iZ2fp:focus-visible {
|
|
123
|
+
--hop-ol-focus: initial;
|
|
124
|
+
color: var(--hop-ol-focus) !important;
|
|
125
|
+
}
|
|
126
|
+
|
|
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-element___xmRSa),
|
|
129
|
+
:where(.htmlElement-module__html-element___xmRSa::after),
|
|
130
|
+
:where(.htmlElement-module__html-element___xmRSa::before) {
|
|
131
|
+
box-sizing: border-box;
|
|
132
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ElementRef } from 'react';
|
|
3
|
+
import { StyledComponentProps } from '../styled-system-props.js';
|
|
4
|
+
import 'csstype';
|
|
5
|
+
import '../responsive/useResponsiveValue.js';
|
|
6
|
+
import '../responsive/Breakpoints.js';
|
|
7
|
+
import '../tokens/token-mappings.js';
|
|
8
|
+
|
|
9
|
+
type HtmlElementProps<T extends keyof JSX.IntrinsicElements> = StyledComponentProps<T>;
|
|
10
|
+
declare function htmlElement<T extends keyof JSX.IntrinsicElements>(elementType: T): react.ForwardRefExoticComponent<react.PropsWithoutRef<HtmlElementProps<T>> & react.RefAttributes<ElementRef<T>>>;
|
|
11
|
+
|
|
12
|
+
export { HtmlElementProps, htmlElement };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { htmlElement } from '../chunk-35LDZFKX.js';
|
|
2
|
+
import '../chunk-RIR7BXVF.js';
|
|
3
|
+
import '../chunk-KUUJ37DW.js';
|
|
4
|
+
import '../chunk-U3SI5QXV.js';
|
|
5
|
+
import '../chunk-GYREQTEK.js';
|
|
6
|
+
import '../chunk-ZUVKM5DV.js';
|
|
7
|
+
import '../chunk-XUHDFZZL.js';
|
|
8
|
+
import '../chunk-U5R6ZXH3.js';
|
|
9
|
+
import '../chunk-I37Y2R7V.js';
|