@hopper-ui/styled-system 0.0.0 → 0.2.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.
Files changed (39) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +38 -17
  3. package/dist/StyledSystemProvider-173b78af.d.ts +226 -0
  4. package/dist/StyledSystemProvider.css +1 -0
  5. package/dist/StyledSystemProvider.d.ts +5 -28
  6. package/dist/StyledSystemProvider.js +11 -9
  7. package/dist/index.css +1 -0
  8. package/dist/index.d.ts +2387 -12
  9. package/dist/index.js +10 -8
  10. package/dist/styled-system-props-1c231c50.d.ts +3403 -0
  11. package/dist/styled-system-props.d.ts +3 -0
  12. package/dist/styled-system-props.js +3 -0
  13. package/dist/styled-system-root-css-class.js +2 -2
  14. package/dist/useStyledSystem.css +1 -0
  15. package/dist/useStyledSystem.d.ts +24 -0
  16. package/dist/useStyledSystem.js +5 -0
  17. package/package.json +29 -17
  18. package/dist/global-styles/BodyStyleProvider.d.ts +0 -5
  19. package/dist/global-styles/BodyStyleProvider.js +0 -23
  20. package/dist/tokens/TokenProvider.d.ts +0 -20
  21. package/dist/tokens/TokenProvider.js +0 -6
  22. package/dist/tokens/generated/dark-semantic-tokens.d.ts +0 -258
  23. package/dist/tokens/generated/dark-semantic-tokens.js +0 -3
  24. package/dist/tokens/generated/light-tokens.d.ts +0 -609
  25. package/dist/tokens/generated/light-tokens.js +0 -3
  26. package/dist/tokens/tokens.d.ts +0 -866
  27. package/dist/tokens/tokens.js +0 -3
  28. package/dist/utils/assertion.d.ts +0 -15
  29. package/dist/utils/assertion.js +0 -3
  30. package/dist/utils/clsx.d.ts +0 -6
  31. package/dist/utils/clsx.js +0 -3
  32. package/dist/utils/useInsertStyleElement.d.ts +0 -6
  33. package/dist/utils/useInsertStyleElement.js +0 -5
  34. package/dist/utils/useIsomorphicInsertionEffect.d.ts +0 -16
  35. package/dist/utils/useIsomorphicInsertionEffect.js +0 -5
  36. package/dist/utils/useIsomorphicLayoutEffect.d.ts +0 -16
  37. package/dist/utils/useIsomorphicLayoutEffect.js +0 -5
  38. package/dist/utils/useThemeComputedStyle.d.ts +0 -14
  39. package/dist/utils/useThemeComputedStyle.js +0 -3
package/CHANGELOG.md ADDED
@@ -0,0 +1,13 @@
1
+ # @hopper-ui/styled-system
2
+
3
+ ## 0.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 0c4a1c7: Added main, types and style to the package.json
8
+
9
+ ## 0.1.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 7ef9681: Updated styled system exports
package/README.md CHANGED
@@ -1,19 +1,40 @@
1
1
  # @hopper-ui/styled-system
2
2
 
3
- Ideas from PandaCSS
4
- - Patterns/JSX Patterns (HStack VStack Truncate)
5
- - divider
6
- - flex
7
- - gloat
8
- - grid
9
- - gridItem
10
- - hstack
11
- - stack
12
- - truncate
13
- - vstack
14
- - wrap
15
- - CSS Variables in style
16
- - either a vars prop, cssVars props, or style={{vars: {}}}
17
- - Negative values for token scale
18
- - margin={-2} should be valid
19
- - Pseudos could be generated from usage and added to a style tag dynamically, like the GlobalStyleProvider
3
+ Hopper's styled-system offers a collection of utility functions that add style props to your React components. These style props are in sync on hopper-ui's design tokens, are type safe, and support responsive styles.
4
+
5
+ [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](../../LICENSE)
6
+ [![npm version](https://img.shields.io/npm/v/@hopper-ui/styled-system)](https://www.npmjs.com/package/@hopper-ui/styled-system)
7
+
8
+ ## Installation
9
+
10
+ Install the following packages:
11
+
12
+ **With pnpm**
13
+
14
+ ```shell
15
+ pnpm add @hopper-ui/styled-system
16
+ ```
17
+
18
+ **With yarn**
19
+
20
+ ```shell
21
+ yarn add -D @hopper-ui/styled-system
22
+ ```
23
+
24
+ **With npm**
25
+
26
+ ```shell
27
+ npm install -D @hopper-ui/styled-system
28
+ ```
29
+
30
+ ## Usage
31
+
32
+ View the [user's documentation](https://hopper.workleap.design/).
33
+
34
+ ## 🤝 Contributing
35
+
36
+ View the [contributor's documentation](https://github.com/gsoft-inc/wl-hopper/blob/main/CONTRIBUTING.md).
37
+
38
+ ## License
39
+
40
+ Copyright © 2023, Workleap. This code is licensed under the Apache License, Version 2.0. You may obtain a copy of this license at https://github.com/gsoft-inc/workleap-license/blob/master/LICENSE.
@@ -0,0 +1,226 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ 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>>>;
17
+
18
+ /**
19
+ * A specialized wrapping component for HTML `address` element that allows style props.
20
+ */
21
+ declare const Address: react.ForwardRefExoticComponent<Omit<HtmlElementProps<"address">, "ref"> & react.RefAttributes<HTMLElement>>;
22
+ /**
23
+ * A specialized wrapping component for HTML `article` element that allows style props.
24
+ */
25
+ declare const Article: react.ForwardRefExoticComponent<Omit<HtmlElementProps<"article">, "ref"> & react.RefAttributes<HTMLElement>>;
26
+ /**
27
+ * A specialized wrapping component for HTML `aside` element that allows style props.
28
+ */
29
+ declare const Aside: react.ForwardRefExoticComponent<Omit<HtmlElementProps<"aside">, "ref"> & react.RefAttributes<HTMLElement>>;
30
+ /**
31
+ * A specialized wrapping component for HTML `footer` element that allows style props.
32
+ */
33
+ declare const HtmlFooter: react.ForwardRefExoticComponent<Omit<HtmlElementProps<"footer">, "ref"> & react.RefAttributes<HTMLElement>>;
34
+ /**
35
+ * A specialized wrapping component for HTML `h1` element that allows style props.
36
+ */
37
+ declare const HtmlH1: react.ForwardRefExoticComponent<Omit<HtmlElementProps<"h1">, "ref"> & react.RefAttributes<HTMLHeadingElement>>;
38
+ /**
39
+ * A specialized wrapping component for HTML `h2` element that allows style props.
40
+ */
41
+ declare const HtmlH2: react.ForwardRefExoticComponent<Omit<HtmlElementProps<"h2">, "ref"> & react.RefAttributes<HTMLHeadingElement>>;
42
+ /**
43
+ * A specialized wrapping component for HTML `h3` element that allows style props.
44
+ */
45
+ declare const HtmlH3: react.ForwardRefExoticComponent<Omit<HtmlElementProps<"h3">, "ref"> & react.RefAttributes<HTMLHeadingElement>>;
46
+ /**
47
+ * A specialized wrapping component for HTML `h4` element that allows style props.
48
+ */
49
+ declare const HtmlH4: react.ForwardRefExoticComponent<Omit<HtmlElementProps<"h4">, "ref"> & react.RefAttributes<HTMLHeadingElement>>;
50
+ /**
51
+ * A specialized wrapping component for HTML `h5` element that allows style props.
52
+ */
53
+ declare const HtmlH5: react.ForwardRefExoticComponent<Omit<HtmlElementProps<"h5">, "ref"> & react.RefAttributes<HTMLHeadingElement>>;
54
+ /**
55
+ * A specialized wrapping component for HTML `h6` element that allows style props.
56
+ */
57
+ declare const HtmlH6: react.ForwardRefExoticComponent<Omit<HtmlElementProps<"h6">, "ref"> & react.RefAttributes<HTMLHeadingElement>>;
58
+ /**
59
+ * A specialized wrapping component for HTML `header` element that allows style props.
60
+ */
61
+ declare const HtmlHeader: react.ForwardRefExoticComponent<Omit<HtmlElementProps<"header">, "ref"> & react.RefAttributes<HTMLElement>>;
62
+ /**
63
+ * A specialized wrapping component for HTML `main` element that allows style props.
64
+ */
65
+ declare const Main: react.ForwardRefExoticComponent<Omit<HtmlElementProps<"main">, "ref"> & react.RefAttributes<HTMLElement>>;
66
+ /**
67
+ * A specialized wrapping component for HTML `nav` element that allows style props.
68
+ */
69
+ declare const Nav: react.ForwardRefExoticComponent<Omit<HtmlElementProps<"nav">, "ref"> & react.RefAttributes<HTMLElement>>;
70
+ /**
71
+ * A specialized wrapping component for HTML `section` element that allows style props.
72
+ */
73
+ declare const HtmlSection: react.ForwardRefExoticComponent<Omit<HtmlElementProps<"section">, "ref"> & react.RefAttributes<HTMLElement>>;
74
+ type AddressProps = ComponentProps<typeof Address>;
75
+ type ArticleProps = ComponentProps<typeof Article>;
76
+ type AsideProps = ComponentProps<typeof Aside>;
77
+ type HtmlFooterProps = ComponentProps<typeof HtmlFooter>;
78
+ type HtmlH1Props = ComponentProps<typeof HtmlH1>;
79
+ type HtmlH2Props = ComponentProps<typeof HtmlH2>;
80
+ type HtmlH3Props = ComponentProps<typeof HtmlH3>;
81
+ type HtmlH4Props = ComponentProps<typeof HtmlH4>;
82
+ type HtmlH5Props = ComponentProps<typeof HtmlH5>;
83
+ type HtmlH6Props = ComponentProps<typeof HtmlH6>;
84
+ type HtmlHeaderProps = ComponentProps<typeof HtmlHeader>;
85
+ type MainProps = ComponentProps<typeof Main>;
86
+ type NavProps = ComponentProps<typeof Nav>;
87
+ type HtmlSectionProps = ComponentProps<typeof HtmlSection>;
88
+ /**
89
+ * A specialized wrapping component for HTML `div` element that allows style props.
90
+ */
91
+ declare const Div: react.ForwardRefExoticComponent<Omit<HtmlElementProps<"div">, "ref"> & react.RefAttributes<HTMLDivElement>>;
92
+ /**
93
+ * A specialized wrapping component for HTML `p` element that allows style props.
94
+ */
95
+ declare const HtmlParagraph: react.ForwardRefExoticComponent<Omit<HtmlElementProps<"p">, "ref"> & react.RefAttributes<HTMLParagraphElement>>;
96
+ /**
97
+ * A specialized wrapping component for HTML `ol` element that allows style props.
98
+ */
99
+ declare const OL: react.ForwardRefExoticComponent<Omit<HtmlElementProps<"ol">, "ref"> & react.RefAttributes<HTMLOListElement>>;
100
+ /**
101
+ * A specialized wrapping component for HTML `ul` element that allows style props.
102
+ */
103
+ declare const UL: react.ForwardRefExoticComponent<Omit<HtmlElementProps<"ul">, "ref"> & react.RefAttributes<HTMLUListElement>>;
104
+ /**
105
+ * A specialized wrapping component for HTML `li` element that allows style props.
106
+ */
107
+ declare const LI: react.ForwardRefExoticComponent<Omit<HtmlElementProps<"li">, "ref"> & react.RefAttributes<HTMLLIElement>>;
108
+ type DivProps = ComponentProps<typeof Div>;
109
+ type HtmlParagraphProps = ComponentProps<typeof HtmlParagraph>;
110
+ type OLProps = ComponentProps<typeof OL>;
111
+ type ULProps = ComponentProps<typeof UL>;
112
+ type LIProps = ComponentProps<typeof LI>;
113
+ /**
114
+ * A specialized wrapping component for HTML `anchor` element that allows style props.
115
+ */
116
+ declare const A: react.ForwardRefExoticComponent<Omit<HtmlElementProps<"a">, "ref"> & react.RefAttributes<HTMLAnchorElement>>;
117
+ /**
118
+ * A specialized wrapping component for HTML `span` element that allows style props.
119
+ */
120
+ declare const Span: react.ForwardRefExoticComponent<Omit<HtmlElementProps<"span">, "ref"> & react.RefAttributes<HTMLSpanElement>>;
121
+ type AProps = ComponentProps<typeof A>;
122
+ type SpanProps = ComponentProps<typeof Span>;
123
+ /**
124
+ * A specialized wrapping component for HTML `img` element that allows style props.
125
+ */
126
+ declare const Img: react.ForwardRefExoticComponent<Omit<HtmlElementProps<"img">, "ref"> & react.RefAttributes<HTMLImageElement>>;
127
+ type ImgProps = ComponentProps<typeof Img>;
128
+ /**
129
+ * A specialized wrapping component for HTML `table` element that allows style props.
130
+ */
131
+ declare const Table: react.ForwardRefExoticComponent<Omit<HtmlElementProps<"table">, "ref"> & react.RefAttributes<HTMLTableElement>>;
132
+ /**
133
+ * A specialized wrapping component for HTML `thead` element that allows style props.
134
+ */
135
+ declare const THead: react.ForwardRefExoticComponent<Omit<HtmlElementProps<"thead">, "ref"> & react.RefAttributes<HTMLTableSectionElement>>;
136
+ /**
137
+ * A specialized wrapping component for HTML `tbody` element that allows style props.
138
+ */
139
+ declare const TBody: react.ForwardRefExoticComponent<Omit<HtmlElementProps<"tbody">, "ref"> & react.RefAttributes<HTMLTableSectionElement>>;
140
+ /**
141
+ * A specialized wrapping component for HTML `tfoot` element that allows style props.
142
+ */
143
+ declare const TFoot: react.ForwardRefExoticComponent<Omit<HtmlElementProps<"tfoot">, "ref"> & react.RefAttributes<HTMLTableSectionElement>>;
144
+ /**
145
+ * A specialized wrapping component for HTML `th` element that allows style props.
146
+ */
147
+ declare const TH: react.ForwardRefExoticComponent<Omit<HtmlElementProps<"th">, "ref"> & react.RefAttributes<HTMLTableHeaderCellElement>>;
148
+ /**
149
+ * A specialized wrapping component for HTML `tr` element that allows style props.
150
+ */
151
+ declare const TR: react.ForwardRefExoticComponent<Omit<HtmlElementProps<"tr">, "ref"> & react.RefAttributes<HTMLTableRowElement>>;
152
+ /**
153
+ * A specialized wrapping component for HTML `td` element that allows style props.
154
+ */
155
+ declare const TD: react.ForwardRefExoticComponent<Omit<HtmlElementProps<"td">, "ref"> & react.RefAttributes<HTMLTableDataCellElement>>;
156
+ type TableProps = ComponentProps<typeof Table>;
157
+ type THeadProps = ComponentProps<typeof THead>;
158
+ type TBodyProps = ComponentProps<typeof TBody>;
159
+ type TFootProps = ComponentProps<typeof TFoot>;
160
+ type THProps = ComponentProps<typeof TH>;
161
+ type TRProps = ComponentProps<typeof TR>;
162
+ type TDProps = ComponentProps<typeof TD>;
163
+ /**
164
+ * A specialized wrapping component for HTML `button` element that allows style props.
165
+ */
166
+ declare const HtmlButton: react.ForwardRefExoticComponent<Omit<HtmlElementProps<"button">, "ref"> & react.RefAttributes<HTMLButtonElement>>;
167
+ /**
168
+ * A specialized wrapping component for HTML `form` element that allows style props.
169
+ */
170
+ declare const HtmlForm: react.ForwardRefExoticComponent<Omit<HtmlElementProps<"form">, "ref"> & react.RefAttributes<HTMLFormElement>>;
171
+ /**
172
+ * A specialized wrapping component for HTML `input` element that allows style props.
173
+ */
174
+ declare const HtmlInput: react.ForwardRefExoticComponent<Omit<HtmlElementProps<"input">, "ref"> & react.RefAttributes<HTMLInputElement>>;
175
+ /**
176
+ * A specialized wrapping component for HTML `label` element that allows style props.
177
+ */
178
+ declare const HtmlLabel: react.ForwardRefExoticComponent<Omit<HtmlElementProps<"label">, "ref"> & react.RefAttributes<HTMLLabelElement>>;
179
+ /**
180
+ * A specialized wrapping component for HTML `textarea` element that allows style props.
181
+ */
182
+ declare const HtmlTextArea: react.ForwardRefExoticComponent<Omit<HtmlElementProps<"textarea">, "ref"> & react.RefAttributes<HTMLTextAreaElement>>;
183
+ type HtmlButtonProps = ComponentProps<typeof HtmlButton>;
184
+ type HtmlFormProps = ComponentProps<typeof HtmlForm>;
185
+ type HtmlInputProps = ComponentProps<typeof HtmlInput>;
186
+ type HtmlLabelProps = ComponentProps<typeof HtmlLabel>;
187
+ type HtmlTextAreaProps = ComponentProps<typeof HtmlTextArea>;
188
+
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 };
@@ -0,0 +1 @@
1
+ .UseStyledSystem-module__hop-b-hover___CfKj8:hover{--hop-b-hover: initial;border:var(--hop-b-hover)!important}.UseStyledSystem-module__hop-bb-hover___Hu3-Q:hover{--hop-bb-hover: initial;border-bottom:var(--hop-bb-hover)!important}.UseStyledSystem-module__hop-bl-hover___CzOAl:hover{--hop-bl-hover: initial;border-left:var(--hop-bl-hover)!important}.UseStyledSystem-module__hop-br-hover___vKdvf:hover{--hop-br-hover: initial;border-right:var(--hop-br-hover)!important}.UseStyledSystem-module__hop-bt-hover___i82Tb:hover{--hop-bt-hover: initial;border-top:var(--hop-bt-hover)!important}.UseStyledSystem-module__hop-b-focus___y3r5B:focus-visible{--hop-b-focus: initial;border:var(--hop-b-focus)!important}.UseStyledSystem-module__hop-bb-focus___UzwTX:focus-visible{--hop-bb-focus: initial;border-bottom:var(--hop-bb-focus)!important}.UseStyledSystem-module__hop-bl-focus___u-OfB:focus-visible{--hop-bl-focus: initial;border-left:var(--hop-bl-focus)!important}.UseStyledSystem-module__hop-br-focus___wBhUY:focus-visible{--hop-br-focus: initial;border-right:var(--hop-br-focus)!important}.UseStyledSystem-module__hop-bt-focus___MnZa1:focus-visible{--hop-bt-focus: initial;border-top:var(--hop-bt-focus)!important}.UseStyledSystem-module__hop-b-active___JDXLg:active{--hop-b-active: initial;border:var(--hop-b-active)!important}.UseStyledSystem-module__hop-bb-active___40n0M:active{--hop-bb-active: initial;border-bottom:var(--hop-bb-active)!important}.UseStyledSystem-module__hop-bl-active___TkJsC:active{--hop-bl-active: initial;border-left:var(--hop-bl-active)!important}.UseStyledSystem-module__hop-br-active___TmbHF:active{--hop-br-active: initial;border-right:var(--hop-br-active)!important}.UseStyledSystem-module__hop-bt-active___r8vje:active{--hop-bt-active: initial;border-top:var(--hop-bt-active)!important}.UseStyledSystem-module__hop-bg-hover___LA70G:hover{--hop-bg-hover: initial;background-color:var(--hop-bg-hover)!important}.UseStyledSystem-module__hop-bg-focus___6R-wa:focus-visible{--hop-bg-focus: initial;background-color:var(--hop-bg-focus)!important}.UseStyledSystem-module__hop-bg-active___vfqXn:active{--hop-bg-active: initial;background-color:var(--hop-bg-active)!important}.UseStyledSystem-module__hop-bs-hover___vRDwD:hover{--hop-bs-hover: initial;box-shadow:var(--hop-bs-hover)!important}.UseStyledSystem-module__hop-bs-focus___Nk99m:focus-visible{--hop-bs-focus: initial;box-shadow:var(--hop-bs-focus)!important}.UseStyledSystem-module__hop-bs-active___SYvR1:active{--hop-bs-active: initial;box-shadow:var(--hop-bs-active)!important}.UseStyledSystem-module__hop-c-hover___oebME:hover{--hop-c-hover: initial;color:var(--hop-c-hover)!important}.UseStyledSystem-module__hop-c-focus___m3au4:focus-visible{--hop-c-focus: initial;color:var(--hop-c-focus)!important}.UseStyledSystem-module__hop-c-active___qgNTm:active{--hop-c-active: initial;color:var(--hop-c-active)!important}.UseStyledSystem-module__hop-cs-hover___cvviM:hover{--hop-cs-hover: initial;cursor:var(--hop-cs-hover)!important}.UseStyledSystem-module__hop-f-hover___8xdeJ:hover{--hop-f-hover: initial;fill:var(--hop-f-hover)!important}.UseStyledSystem-module__hop-f-focus___6Ah2L:focus-visible{--hop-f-focus: initial;fill:var(--hop-f-focus)!important}.UseStyledSystem-module__hop-o-hover___cyKhF:hover{--hop-o-hover: initial;opacity:var(--hop-o-hover)!important}.UseStyledSystem-module__hop-o-focus___Kg5kM:focus-visible{--hop-o-focus: initial;opacity:var(--hop-o-focus)!important}.UseStyledSystem-module__hop-o-active___-Crm-:active{--hop-o-active: initial;opacity:var(--hop-o-active)!important}.UseStyledSystem-module__hop-ol-focus___XyC84:focus-visible{--hop-ol-focus: initial;color:var(--hop-ol-focus)!important}:where(.htmlElement-module__html-element___EOSRs),:where(.htmlElement-module__html-element___EOSRs:after),:where(.htmlElement-module__html-element___EOSRs:before){box-sizing:border-box}
@@ -1,28 +1,5 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ComponentProps, ReactNode } from 'react';
3
-
4
- interface StyledSystemProviderProps extends ComponentProps<"div"> {
5
- /** The children of the component */
6
- children: ReactNode;
7
- /**
8
- * Determines whether the styles should be added to the document's body
9
- * By default, it is set to `false`. If set to `true`, it will apply additional styling to the document's body.
10
- */
11
- withBodyStyle?: boolean;
12
- /** The color scheme to use. */
13
- colorScheme?: "light" | "dark";
14
- /**
15
- * Determines whether token CSS variables should be added to the document's head
16
- * By default, it is set to `true`, you should not change it unless you want to manage CSS variables via `.css` files
17
- */
18
- withCssVariables?: boolean;
19
- }
20
- /**
21
- * StyledSystemProvider is required to be rendered at the root of your application. It is responsible for:
22
- * - Adding CSS variables to the document
23
- * - Managing color scheme (light, dark, auto)
24
- * - Optionally adding body styles to the document
25
- */
26
- declare function StyledSystemProvider({ children, withBodyStyle, withCssVariables, colorScheme, className, ...rest }: StyledSystemProviderProps): react_jsx_runtime.JSX.Element;
27
-
28
- export { StyledSystemProvider, StyledSystemProviderProps };
1
+ import 'react/jsx-runtime';
2
+ import 'react';
3
+ export { ap as StyledSystemProvider, ao as StyledSystemProviderProps } from './StyledSystemProvider-173b78af.js';
4
+ import './styled-system-props-1c231c50.js';
5
+ import 'csstype';