@hopper-ui/styled-system 0.2.1 → 0.2.3

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.
Files changed (87) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/StyledSystemProvider.css +132 -1
  3. package/dist/StyledSystemProvider.d.ts +42 -4
  4. package/dist/StyledSystemProvider.js +26 -26
  5. package/dist/chunk-3YM73BQP.js +6 -0
  6. package/dist/chunk-7KCN3W6N.js +11 -0
  7. package/dist/chunk-AHDDZ2BQ.js +28 -0
  8. package/dist/chunk-BEEGWFNF.js +32 -0
  9. package/dist/chunk-GRF2SIQE.js +59 -0
  10. package/dist/chunk-GYREQTEK.js +30 -0
  11. package/dist/chunk-I37Y2R7V.js +4 -0
  12. package/dist/chunk-J4KAMS5Q.js +270 -0
  13. package/dist/chunk-JFESGV6Z.js +26 -0
  14. package/dist/chunk-JM7JTLPS.js +84 -0
  15. package/dist/chunk-KUUJ37DW.js +96 -0
  16. package/dist/chunk-LU33LZMJ.js +55 -0
  17. package/dist/chunk-O7PTTVQH.js +715 -0
  18. package/dist/chunk-Q3NLRNZN.js +881 -0
  19. package/dist/chunk-QWLE5PCU.js +29 -0
  20. package/dist/chunk-RIORU7JO.js +28 -0
  21. package/dist/chunk-S33PIM5T.js +41 -0
  22. package/dist/chunk-STEDL5VQ.js +25 -0
  23. package/dist/chunk-U3SI5QXV.js +911 -0
  24. package/dist/chunk-U5R6ZXH3.js +46 -0
  25. package/dist/chunk-V7X6ANEM.js +14 -0
  26. package/dist/chunk-X5OXC6DN.js +9 -0
  27. package/dist/chunk-XTX4KVWI.js +19 -0
  28. package/dist/chunk-XUHDFZZL.js +10 -0
  29. package/dist/chunk-YPIK2HRL.js +6 -0
  30. package/dist/chunk-ZFDLWGCR.js +39 -0
  31. package/dist/chunk-ZUVKM5DV.js +13 -0
  32. package/dist/color-scheme/ColorSchemeContext.d.ts +12 -0
  33. package/dist/color-scheme/ColorSchemeContext.js +2 -0
  34. package/dist/color-scheme/useColorScheme.d.ts +6 -0
  35. package/dist/color-scheme/useColorScheme.js +3 -0
  36. package/dist/color-scheme/useColorSchemeValue.d.ts +3 -0
  37. package/dist/color-scheme/useColorSchemeValue.js +3 -0
  38. package/dist/global-styles/BodyStyleProvider.d.ts +5 -0
  39. package/dist/global-styles/BodyStyleProvider.js +9 -0
  40. package/dist/html-wrappers/html.css +132 -0
  41. package/dist/{StyledSystemProvider-173b78af.d.ts → html-wrappers/html.d.ts} +8 -53
  42. package/dist/html-wrappers/html.js +11 -0
  43. package/dist/html-wrappers/htmlElement.css +132 -0
  44. package/dist/html-wrappers/htmlElement.d.ts +12 -0
  45. package/dist/html-wrappers/htmlElement.js +10 -0
  46. package/dist/index.css +132 -1
  47. package/dist/index.d.ts +23 -2385
  48. package/dist/index.js +27 -26
  49. package/dist/responsive/BreakpointContext.d.ts +10 -0
  50. package/dist/responsive/BreakpointContext.js +3 -0
  51. package/dist/responsive/BreakpointProvider.d.ts +12 -0
  52. package/dist/responsive/BreakpointProvider.js +6 -0
  53. package/dist/responsive/Breakpoints.d.ts +10 -0
  54. package/dist/responsive/Breakpoints.js +2 -0
  55. package/dist/responsive/useResponsiveValue.d.ts +11 -0
  56. package/dist/responsive/useResponsiveValue.js +5 -0
  57. package/dist/styled-system-props.d.ts +1246 -3
  58. package/dist/styled-system-props.js +2 -3
  59. package/dist/styled-system-root-css-class.js +2 -3
  60. package/dist/tokens/TokenProvider.d.ts +20 -0
  61. package/dist/tokens/TokenProvider.js +9 -0
  62. package/dist/tokens/generated/dark-semantic-tokens.d.ts +272 -0
  63. package/dist/tokens/generated/dark-semantic-tokens.js +2 -0
  64. package/dist/tokens/generated/light-semantic-tokens.d.ts +883 -0
  65. package/dist/tokens/generated/light-semantic-tokens.js +2 -0
  66. package/dist/tokens/generated/styled-system-to-token-mappings.d.ts +913 -0
  67. package/dist/tokens/generated/styled-system-to-token-mappings.js +2 -0
  68. package/dist/{styled-system-props-1c231c50.d.ts → tokens/token-mappings.d.ts} +2 -1258
  69. package/dist/tokens/token-mappings.js +7 -0
  70. package/dist/tokens/tokens.d.ts +1154 -0
  71. package/dist/tokens/tokens.js +4 -0
  72. package/dist/useStyledSystem.css +125 -1
  73. package/dist/useStyledSystem.d.ts +4 -1
  74. package/dist/useStyledSystem.js +9 -5
  75. package/dist/utils/assertion.d.ts +15 -0
  76. package/dist/utils/assertion.js +2 -0
  77. package/dist/utils/useInsertStyleElement.d.ts +6 -0
  78. package/dist/utils/useInsertStyleElement.js +4 -0
  79. package/dist/utils/useIsomorphicInsertionEffect.d.ts +16 -0
  80. package/dist/utils/useIsomorphicInsertionEffect.js +2 -0
  81. package/dist/utils/useIsomorphicLayoutEffect.d.ts +16 -0
  82. package/dist/utils/useIsomorphicLayoutEffect.js +2 -0
  83. package/dist/utils/useMediaQuery.d.ts +4 -0
  84. package/dist/utils/useMediaQuery.js +2 -0
  85. package/dist/utils/useThemeComputedStyle.d.ts +14 -0
  86. package/dist/utils/useThemeComputedStyle.js +3 -0
  87. package/package.json +2 -2
@@ -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,19 @@
1
+ import { useMediaQuery } from './chunk-STEDL5VQ.js';
2
+
3
+ // src/color-scheme/useColorScheme.ts
4
+ function useColorScheme(colorScheme, defaultColorScheme) {
5
+ const matchesLight = useMediaQuery("(prefers-color-scheme: light)");
6
+ const matchesDark = useMediaQuery("(prefers-color-scheme: dark)");
7
+ if (colorScheme === "system") {
8
+ if (matchesLight) {
9
+ return "light";
10
+ }
11
+ if (matchesDark) {
12
+ return "dark";
13
+ }
14
+ return defaultColorScheme != null ? defaultColorScheme : "light";
15
+ }
16
+ return colorScheme;
17
+ }
18
+
19
+ export { useColorScheme };
@@ -0,0 +1,10 @@
1
+ // src/responsive/Breakpoints.ts
2
+ var Breakpoints = {
3
+ xs: 640,
4
+ sm: 768,
5
+ md: 1024,
6
+ lg: 1280,
7
+ xl: 1440
8
+ };
9
+
10
+ export { Breakpoints };
@@ -0,0 +1,6 @@
1
+ import { useInsertionEffect, useEffect } from 'react';
2
+
3
+ // src/utils/useIsomorphicInsertionEffect.ts
4
+ var useIsomorphicInsertionEffect = typeof window !== "undefined" ? useInsertionEffect : useEffect;
5
+
6
+ export { useIsomorphicInsertionEffect };
@@ -0,0 +1,39 @@
1
+ import { htmlElement } from './chunk-QWLE5PCU.js';
2
+
3
+ // src/html-wrappers/html.ts
4
+ var Address = htmlElement("address");
5
+ var Article = htmlElement("article");
6
+ var Aside = htmlElement("aside");
7
+ var HtmlFooter = htmlElement("footer");
8
+ var HtmlH1 = htmlElement("h1");
9
+ var HtmlH2 = htmlElement("h2");
10
+ var HtmlH3 = htmlElement("h3");
11
+ var HtmlH4 = htmlElement("h4");
12
+ var HtmlH5 = htmlElement("h5");
13
+ var HtmlH6 = htmlElement("h6");
14
+ var HtmlHeader = htmlElement("header");
15
+ var Main = htmlElement("main");
16
+ var Nav = htmlElement("nav");
17
+ var HtmlSection = htmlElement("section");
18
+ var Div = htmlElement("div");
19
+ var HtmlParagraph = htmlElement("p");
20
+ var OL = htmlElement("ol");
21
+ var UL = htmlElement("ul");
22
+ var LI = htmlElement("li");
23
+ var A = htmlElement("a");
24
+ var Span = htmlElement("span");
25
+ var Img = htmlElement("img");
26
+ var Table = htmlElement("table");
27
+ var THead = htmlElement("thead");
28
+ var TBody = htmlElement("tbody");
29
+ var TFoot = htmlElement("tfoot");
30
+ var TH = htmlElement("th");
31
+ var TR = htmlElement("tr");
32
+ var TD = htmlElement("td");
33
+ var HtmlButton = htmlElement("button");
34
+ var HtmlForm = htmlElement("form");
35
+ var HtmlInput = htmlElement("input");
36
+ var HtmlLabel = htmlElement("label");
37
+ var HtmlTextArea = htmlElement("textarea");
38
+
39
+ 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 };
@@ -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,2 @@
1
+ export { ColorSchemeContext, useColorSchemeContext } from '../chunk-V7X6ANEM.js';
2
+ import '../chunk-JFESGV6Z.js';
@@ -0,0 +1,6 @@
1
+ import { ColorSchemeOrSystem, ColorScheme } from './ColorSchemeContext.js';
2
+ import 'react';
3
+
4
+ declare function useColorScheme(colorScheme: ColorSchemeOrSystem, defaultColorScheme: ColorScheme): ColorScheme;
5
+
6
+ export { useColorScheme };
@@ -0,0 +1,3 @@
1
+ export { useColorScheme } from '../chunk-XTX4KVWI.js';
2
+ import '../chunk-STEDL5VQ.js';
3
+ import '../chunk-JFESGV6Z.js';
@@ -0,0 +1,3 @@
1
+ declare function useColorSchemeValue(lightColor: string, darkColor: string): string;
2
+
3
+ export { useColorSchemeValue };
@@ -0,0 +1,3 @@
1
+ export { useColorSchemeValue } from '../chunk-X5OXC6DN.js';
2
+ import '../chunk-V7X6ANEM.js';
3
+ import '../chunk-JFESGV6Z.js';
@@ -0,0 +1,5 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ declare function BodyStyleProvider(): react_jsx_runtime.JSX.Element;
4
+
5
+ export { BodyStyleProvider };
@@ -0,0 +1,9 @@
1
+ export { BodyStyleProvider } from '../chunk-GRF2SIQE.js';
2
+ import '../chunk-3YM73BQP.js';
3
+ import '../chunk-AHDDZ2BQ.js';
4
+ import '../chunk-RIORU7JO.js';
5
+ import '../chunk-YPIK2HRL.js';
6
+ import '../chunk-JM7JTLPS.js';
7
+ import '../chunk-U5R6ZXH3.js';
8
+ import '../chunk-V7X6ANEM.js';
9
+ import '../chunk-JFESGV6Z.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___WO7Si:hover {
3
+ --hop-b-hover: initial;
4
+ border: var(--hop-b-hover) !important;
5
+ }
6
+ .UseStyledSystem-module__hop-bb-hover___J7koW:hover {
7
+ --hop-bb-hover: initial;
8
+ border-bottom: var(--hop-bb-hover) !important;
9
+ }
10
+ .UseStyledSystem-module__hop-bl-hover___H6X11:hover {
11
+ --hop-bl-hover: initial;
12
+ border-left: var(--hop-bl-hover) !important;
13
+ }
14
+ .UseStyledSystem-module__hop-br-hover___2ecDN:hover {
15
+ --hop-br-hover: initial;
16
+ border-right: var(--hop-br-hover) !important;
17
+ }
18
+ .UseStyledSystem-module__hop-bt-hover___m-WBU:hover {
19
+ --hop-bt-hover: initial;
20
+ border-top: var(--hop-bt-hover) !important;
21
+ }
22
+ .UseStyledSystem-module__hop-b-focus___k8BIX:focus-visible {
23
+ --hop-b-focus: initial;
24
+ border: var(--hop-b-focus) !important;
25
+ }
26
+ .UseStyledSystem-module__hop-bb-focus___vY533:focus-visible {
27
+ --hop-bb-focus: initial;
28
+ border-bottom: var(--hop-bb-focus) !important;
29
+ }
30
+ .UseStyledSystem-module__hop-bl-focus___FMQH5:focus-visible {
31
+ --hop-bl-focus: initial;
32
+ border-left: var(--hop-bl-focus) !important;
33
+ }
34
+ .UseStyledSystem-module__hop-br-focus___QOQgk:focus-visible {
35
+ --hop-br-focus: initial;
36
+ border-right: var(--hop-br-focus) !important;
37
+ }
38
+ .UseStyledSystem-module__hop-bt-focus___PGkY1:focus-visible {
39
+ --hop-bt-focus: initial;
40
+ border-top: var(--hop-bt-focus) !important;
41
+ }
42
+ .UseStyledSystem-module__hop-b-active___XYsR5:active {
43
+ --hop-b-active: initial;
44
+ border: var(--hop-b-active) !important;
45
+ }
46
+ .UseStyledSystem-module__hop-bb-active___48kbq:active {
47
+ --hop-bb-active: initial;
48
+ border-bottom: var(--hop-bb-active) !important;
49
+ }
50
+ .UseStyledSystem-module__hop-bl-active___49LJt:active {
51
+ --hop-bl-active: initial;
52
+ border-left: var(--hop-bl-active) !important;
53
+ }
54
+ .UseStyledSystem-module__hop-br-active___QGaMg:active {
55
+ --hop-br-active: initial;
56
+ border-right: var(--hop-br-active) !important;
57
+ }
58
+ .UseStyledSystem-module__hop-bt-active___4y2V1:active {
59
+ --hop-bt-active: initial;
60
+ border-top: var(--hop-bt-active) !important;
61
+ }
62
+ .UseStyledSystem-module__hop-bg-hover___dUflJ:hover {
63
+ --hop-bg-hover: initial;
64
+ background-color: var(--hop-bg-hover) !important;
65
+ }
66
+ .UseStyledSystem-module__hop-bg-focus___RAUcc:focus-visible {
67
+ --hop-bg-focus: initial;
68
+ background-color: var(--hop-bg-focus) !important;
69
+ }
70
+ .UseStyledSystem-module__hop-bg-active___3hBq4:active {
71
+ --hop-bg-active: initial;
72
+ background-color: var(--hop-bg-active) !important;
73
+ }
74
+ .UseStyledSystem-module__hop-bs-hover___iugX-:hover {
75
+ --hop-bs-hover: initial;
76
+ box-shadow: var(--hop-bs-hover) !important;
77
+ }
78
+ .UseStyledSystem-module__hop-bs-focus___kk-Qr:focus-visible {
79
+ --hop-bs-focus: initial;
80
+ box-shadow: var(--hop-bs-focus) !important;
81
+ }
82
+ .UseStyledSystem-module__hop-bs-active___X8-Nt:active {
83
+ --hop-bs-active: initial;
84
+ box-shadow: var(--hop-bs-active) !important;
85
+ }
86
+ .UseStyledSystem-module__hop-c-hover___pzags:hover {
87
+ --hop-c-hover: initial;
88
+ color: var(--hop-c-hover) !important;
89
+ }
90
+ .UseStyledSystem-module__hop-c-focus___IgZlq:focus-visible {
91
+ --hop-c-focus: initial;
92
+ color: var(--hop-c-focus) !important;
93
+ }
94
+ .UseStyledSystem-module__hop-c-active___s2HIc:active {
95
+ --hop-c-active: initial;
96
+ color: var(--hop-c-active) !important;
97
+ }
98
+ .UseStyledSystem-module__hop-cs-hover___q-t-p:hover {
99
+ --hop-cs-hover: initial;
100
+ cursor: var(--hop-cs-hover) !important;
101
+ }
102
+ .UseStyledSystem-module__hop-f-hover___PS8fe:hover {
103
+ --hop-f-hover: initial;
104
+ fill: var(--hop-f-hover) !important;
105
+ }
106
+ .UseStyledSystem-module__hop-f-focus___JOUzD:focus-visible {
107
+ --hop-f-focus: initial;
108
+ fill: var(--hop-f-focus) !important;
109
+ }
110
+ .UseStyledSystem-module__hop-o-hover___NTBNQ:hover {
111
+ --hop-o-hover: initial;
112
+ opacity: var(--hop-o-hover) !important;
113
+ }
114
+ .UseStyledSystem-module__hop-o-focus___odjgO:focus-visible {
115
+ --hop-o-focus: initial;
116
+ opacity: var(--hop-o-focus) !important;
117
+ }
118
+ .UseStyledSystem-module__hop-o-active___wrBCC:active {
119
+ --hop-o-active: initial;
120
+ opacity: var(--hop-o-active) !important;
121
+ }
122
+ .UseStyledSystem-module__hop-ol-focus___dRdaA: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___JSyz-),
129
+ :where(.htmlElement-module__html-element___JSyz-::after),
130
+ :where(.htmlElement-module__html-element___JSyz-::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 { ElementRef, ComponentProps, ReactNode } from 'react';
4
- import { aB as StyledComponentProps, B as Breakpoint } from './styled-system-props-1c231c50.js';
5
-
6
- type ColorScheme = "light" | "dark";
7
- type ColorSchemeOrSystem = ColorScheme | "system";
8
- interface ColorSchemeContextType {
9
- colorScheme: ColorScheme;
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
- declare const DefaultUnsupportedMatchMediaBreakpoint: Breakpoint;
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,11 @@
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-ZFDLWGCR.js';
2
+ import '../chunk-QWLE5PCU.js';
3
+ import '../chunk-O7PTTVQH.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';
11
+ import '../chunk-JFESGV6Z.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___WO7Si:hover {
3
+ --hop-b-hover: initial;
4
+ border: var(--hop-b-hover) !important;
5
+ }
6
+ .UseStyledSystem-module__hop-bb-hover___J7koW:hover {
7
+ --hop-bb-hover: initial;
8
+ border-bottom: var(--hop-bb-hover) !important;
9
+ }
10
+ .UseStyledSystem-module__hop-bl-hover___H6X11:hover {
11
+ --hop-bl-hover: initial;
12
+ border-left: var(--hop-bl-hover) !important;
13
+ }
14
+ .UseStyledSystem-module__hop-br-hover___2ecDN:hover {
15
+ --hop-br-hover: initial;
16
+ border-right: var(--hop-br-hover) !important;
17
+ }
18
+ .UseStyledSystem-module__hop-bt-hover___m-WBU:hover {
19
+ --hop-bt-hover: initial;
20
+ border-top: var(--hop-bt-hover) !important;
21
+ }
22
+ .UseStyledSystem-module__hop-b-focus___k8BIX:focus-visible {
23
+ --hop-b-focus: initial;
24
+ border: var(--hop-b-focus) !important;
25
+ }
26
+ .UseStyledSystem-module__hop-bb-focus___vY533:focus-visible {
27
+ --hop-bb-focus: initial;
28
+ border-bottom: var(--hop-bb-focus) !important;
29
+ }
30
+ .UseStyledSystem-module__hop-bl-focus___FMQH5:focus-visible {
31
+ --hop-bl-focus: initial;
32
+ border-left: var(--hop-bl-focus) !important;
33
+ }
34
+ .UseStyledSystem-module__hop-br-focus___QOQgk:focus-visible {
35
+ --hop-br-focus: initial;
36
+ border-right: var(--hop-br-focus) !important;
37
+ }
38
+ .UseStyledSystem-module__hop-bt-focus___PGkY1:focus-visible {
39
+ --hop-bt-focus: initial;
40
+ border-top: var(--hop-bt-focus) !important;
41
+ }
42
+ .UseStyledSystem-module__hop-b-active___XYsR5:active {
43
+ --hop-b-active: initial;
44
+ border: var(--hop-b-active) !important;
45
+ }
46
+ .UseStyledSystem-module__hop-bb-active___48kbq:active {
47
+ --hop-bb-active: initial;
48
+ border-bottom: var(--hop-bb-active) !important;
49
+ }
50
+ .UseStyledSystem-module__hop-bl-active___49LJt:active {
51
+ --hop-bl-active: initial;
52
+ border-left: var(--hop-bl-active) !important;
53
+ }
54
+ .UseStyledSystem-module__hop-br-active___QGaMg:active {
55
+ --hop-br-active: initial;
56
+ border-right: var(--hop-br-active) !important;
57
+ }
58
+ .UseStyledSystem-module__hop-bt-active___4y2V1:active {
59
+ --hop-bt-active: initial;
60
+ border-top: var(--hop-bt-active) !important;
61
+ }
62
+ .UseStyledSystem-module__hop-bg-hover___dUflJ:hover {
63
+ --hop-bg-hover: initial;
64
+ background-color: var(--hop-bg-hover) !important;
65
+ }
66
+ .UseStyledSystem-module__hop-bg-focus___RAUcc:focus-visible {
67
+ --hop-bg-focus: initial;
68
+ background-color: var(--hop-bg-focus) !important;
69
+ }
70
+ .UseStyledSystem-module__hop-bg-active___3hBq4:active {
71
+ --hop-bg-active: initial;
72
+ background-color: var(--hop-bg-active) !important;
73
+ }
74
+ .UseStyledSystem-module__hop-bs-hover___iugX-:hover {
75
+ --hop-bs-hover: initial;
76
+ box-shadow: var(--hop-bs-hover) !important;
77
+ }
78
+ .UseStyledSystem-module__hop-bs-focus___kk-Qr:focus-visible {
79
+ --hop-bs-focus: initial;
80
+ box-shadow: var(--hop-bs-focus) !important;
81
+ }
82
+ .UseStyledSystem-module__hop-bs-active___X8-Nt:active {
83
+ --hop-bs-active: initial;
84
+ box-shadow: var(--hop-bs-active) !important;
85
+ }
86
+ .UseStyledSystem-module__hop-c-hover___pzags:hover {
87
+ --hop-c-hover: initial;
88
+ color: var(--hop-c-hover) !important;
89
+ }
90
+ .UseStyledSystem-module__hop-c-focus___IgZlq:focus-visible {
91
+ --hop-c-focus: initial;
92
+ color: var(--hop-c-focus) !important;
93
+ }
94
+ .UseStyledSystem-module__hop-c-active___s2HIc:active {
95
+ --hop-c-active: initial;
96
+ color: var(--hop-c-active) !important;
97
+ }
98
+ .UseStyledSystem-module__hop-cs-hover___q-t-p:hover {
99
+ --hop-cs-hover: initial;
100
+ cursor: var(--hop-cs-hover) !important;
101
+ }
102
+ .UseStyledSystem-module__hop-f-hover___PS8fe:hover {
103
+ --hop-f-hover: initial;
104
+ fill: var(--hop-f-hover) !important;
105
+ }
106
+ .UseStyledSystem-module__hop-f-focus___JOUzD:focus-visible {
107
+ --hop-f-focus: initial;
108
+ fill: var(--hop-f-focus) !important;
109
+ }
110
+ .UseStyledSystem-module__hop-o-hover___NTBNQ:hover {
111
+ --hop-o-hover: initial;
112
+ opacity: var(--hop-o-hover) !important;
113
+ }
114
+ .UseStyledSystem-module__hop-o-focus___odjgO:focus-visible {
115
+ --hop-o-focus: initial;
116
+ opacity: var(--hop-o-focus) !important;
117
+ }
118
+ .UseStyledSystem-module__hop-o-active___wrBCC:active {
119
+ --hop-o-active: initial;
120
+ opacity: var(--hop-o-active) !important;
121
+ }
122
+ .UseStyledSystem-module__hop-ol-focus___dRdaA: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___JSyz-),
129
+ :where(.htmlElement-module__html-element___JSyz-::after),
130
+ :where(.htmlElement-module__html-element___JSyz-::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,10 @@
1
+ export { htmlElement } from '../chunk-QWLE5PCU.js';
2
+ import '../chunk-O7PTTVQH.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';
10
+ import '../chunk-JFESGV6Z.js';