@hopper-ui/styled-system 0.2.2 → 0.2.4

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 (59) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/StyledSystemProvider.css +34 -34
  3. package/dist/StyledSystemProvider.js +19 -18
  4. package/dist/{chunk-ZO3DYLQJ.js → chunk-6Z3ODGLS.js} +3 -3
  5. package/dist/{chunk-IK6W4ZXH.js → chunk-A47SIZVA.js} +2 -2
  6. package/dist/{chunk-JQBON2KA.js → chunk-AHDDZ2BQ.js} +10 -5
  7. package/dist/{chunk-OHW5NUAW.js → chunk-C3BQSQFB.js} +3 -3
  8. package/dist/{chunk-Q3NLRNZN.js → chunk-HAB2KYRH.js} +1 -0
  9. package/dist/{chunk-35LDZFKX.js → chunk-HM4X5E4X.js} +2 -2
  10. package/dist/{chunk-RIR7BXVF.js → chunk-I7U75XRH.js} +18 -14
  11. package/dist/chunk-JFESGV6Z.js +26 -0
  12. package/dist/{chunk-ZQUJDDQL.js → chunk-LTBVOC66.js} +1 -1
  13. package/dist/{chunk-7HCELIKZ.js → chunk-NTEKQGZI.js} +7 -7
  14. package/dist/{chunk-U3SI5QXV.js → chunk-PCGVOTW3.js} +1 -0
  15. package/dist/{chunk-JBWKRDVA.js → chunk-RIORU7JO.js} +3 -2
  16. package/dist/{chunk-GYREQTEK.js → chunk-SFOVKOPG.js} +1 -1
  17. package/dist/{chunk-KUUJ37DW.js → chunk-T2LQYER5.js} +2 -2
  18. package/dist/{chunk-ZUVKM5DV.js → chunk-VBKLISDI.js} +4 -5
  19. package/dist/{chunk-IP7TYBR3.js → chunk-XTX4KVWI.js} +1 -1
  20. package/dist/{chunk-FYKLSVLR.js → chunk-Y5XP6E4D.js} +1 -1
  21. package/dist/{chunk-LU33LZMJ.js → chunk-Z33MPMW6.js} +1 -1
  22. package/dist/{chunk-2ITAI3PJ.js → chunk-ZKEMKHXY.js} +2 -1
  23. package/dist/color-scheme/ColorSchemeContext.js +1 -0
  24. package/dist/color-scheme/useColorScheme.js +2 -1
  25. package/dist/color-scheme/useColorSchemeValue.js +1 -0
  26. package/dist/global-styles/BodyStyleProvider.js +5 -4
  27. package/dist/html-wrappers/html.css +34 -34
  28. package/dist/html-wrappers/html.js +8 -7
  29. package/dist/html-wrappers/htmlElement.css +34 -34
  30. package/dist/html-wrappers/htmlElement.js +7 -6
  31. package/dist/index.css +34 -34
  32. package/dist/index.js +19 -18
  33. package/dist/responsive/BreakpointContext.d.ts +1 -1
  34. package/dist/responsive/BreakpointContext.js +2 -2
  35. package/dist/responsive/BreakpointProvider.js +3 -3
  36. package/dist/responsive/Breakpoints.js +1 -0
  37. package/dist/responsive/useResponsiveValue.js +3 -2
  38. package/dist/styled-system-props.js +1 -0
  39. package/dist/styled-system-root-css-class.js +2 -1
  40. package/dist/tokens/TokenProvider.js +7 -6
  41. package/dist/tokens/generated/dark-semantic-tokens.d.ts +1 -0
  42. package/dist/tokens/generated/dark-semantic-tokens.js +2 -1
  43. package/dist/tokens/generated/light-semantic-tokens.d.ts +1 -0
  44. package/dist/tokens/generated/light-semantic-tokens.js +2 -1
  45. package/dist/tokens/generated/styled-system-to-token-mappings.d.ts +1 -0
  46. package/dist/tokens/generated/styled-system-to-token-mappings.js +2 -1
  47. package/dist/tokens/token-mappings.d.ts +2 -0
  48. package/dist/tokens/token-mappings.js +5 -4
  49. package/dist/tokens/tokens.d.ts +2 -0
  50. package/dist/tokens/tokens.js +4 -3
  51. package/dist/useStyledSystem.css +31 -31
  52. package/dist/useStyledSystem.js +6 -5
  53. package/dist/utils/assertion.js +1 -0
  54. package/dist/utils/useInsertStyleElement.js +2 -1
  55. package/dist/utils/useIsomorphicInsertionEffect.js +1 -0
  56. package/dist/utils/useIsomorphicLayoutEffect.js +1 -0
  57. package/dist/utils/useMediaQuery.js +1 -0
  58. package/dist/utils/useThemeComputedStyle.js +2 -1
  59. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @hopper-ui/styled-system
2
2
 
3
+ ## 0.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 20515b9: Modify the breakpoint context to not throw, so components can render even if no provider has been declared
8
+
9
+ ## 0.2.3
10
+
11
+ ### Patch Changes
12
+
13
+ - 7f259c1: Changed build target to target ES2019
14
+ - eb5de30: Updated neutral surface strong value in dark mode
15
+
3
16
  ## 0.2.2
4
17
 
5
18
  ### Patch Changes
@@ -1,132 +1,132 @@
1
1
  /* css-module:/home/runner/work/wl-hopper/wl-hopper/packages/styled-system/src/UseStyledSystem.module.css/#css-module-data */
2
- .UseStyledSystem-module__hop-b-hover___J4CU8:hover {
2
+ .UseStyledSystem-module__hop-b-hover___hm18j:hover {
3
3
  --hop-b-hover: initial;
4
4
  border: var(--hop-b-hover) !important;
5
5
  }
6
- .UseStyledSystem-module__hop-bb-hover___kSFWj:hover {
6
+ .UseStyledSystem-module__hop-bb-hover___21HKw:hover {
7
7
  --hop-bb-hover: initial;
8
8
  border-bottom: var(--hop-bb-hover) !important;
9
9
  }
10
- .UseStyledSystem-module__hop-bl-hover___1Cezh:hover {
10
+ .UseStyledSystem-module__hop-bl-hover___Grzt6:hover {
11
11
  --hop-bl-hover: initial;
12
12
  border-left: var(--hop-bl-hover) !important;
13
13
  }
14
- .UseStyledSystem-module__hop-br-hover___6QimZ:hover {
14
+ .UseStyledSystem-module__hop-br-hover___G7tk8:hover {
15
15
  --hop-br-hover: initial;
16
16
  border-right: var(--hop-br-hover) !important;
17
17
  }
18
- .UseStyledSystem-module__hop-bt-hover___t7jJb:hover {
18
+ .UseStyledSystem-module__hop-bt-hover___sm1qA:hover {
19
19
  --hop-bt-hover: initial;
20
20
  border-top: var(--hop-bt-hover) !important;
21
21
  }
22
- .UseStyledSystem-module__hop-b-focus___GAcvC:focus-visible {
22
+ .UseStyledSystem-module__hop-b-focus___e1pDZ:focus-visible {
23
23
  --hop-b-focus: initial;
24
24
  border: var(--hop-b-focus) !important;
25
25
  }
26
- .UseStyledSystem-module__hop-bb-focus___tRcZ7:focus-visible {
26
+ .UseStyledSystem-module__hop-bb-focus___n1ebY:focus-visible {
27
27
  --hop-bb-focus: initial;
28
28
  border-bottom: var(--hop-bb-focus) !important;
29
29
  }
30
- .UseStyledSystem-module__hop-bl-focus___tHmqH:focus-visible {
30
+ .UseStyledSystem-module__hop-bl-focus___pkLah:focus-visible {
31
31
  --hop-bl-focus: initial;
32
32
  border-left: var(--hop-bl-focus) !important;
33
33
  }
34
- .UseStyledSystem-module__hop-br-focus___o38Ur:focus-visible {
34
+ .UseStyledSystem-module__hop-br-focus___EIC7F:focus-visible {
35
35
  --hop-br-focus: initial;
36
36
  border-right: var(--hop-br-focus) !important;
37
37
  }
38
- .UseStyledSystem-module__hop-bt-focus___Iuh-n:focus-visible {
38
+ .UseStyledSystem-module__hop-bt-focus___Hs3sj:focus-visible {
39
39
  --hop-bt-focus: initial;
40
40
  border-top: var(--hop-bt-focus) !important;
41
41
  }
42
- .UseStyledSystem-module__hop-b-active___T6lcA:active {
42
+ .UseStyledSystem-module__hop-b-active___ELBnY:active {
43
43
  --hop-b-active: initial;
44
44
  border: var(--hop-b-active) !important;
45
45
  }
46
- .UseStyledSystem-module__hop-bb-active___GMekS:active {
46
+ .UseStyledSystem-module__hop-bb-active___0i1A8:active {
47
47
  --hop-bb-active: initial;
48
48
  border-bottom: var(--hop-bb-active) !important;
49
49
  }
50
- .UseStyledSystem-module__hop-bl-active___yAT0P:active {
50
+ .UseStyledSystem-module__hop-bl-active___fNBrE:active {
51
51
  --hop-bl-active: initial;
52
52
  border-left: var(--hop-bl-active) !important;
53
53
  }
54
- .UseStyledSystem-module__hop-br-active___gjJ1X:active {
54
+ .UseStyledSystem-module__hop-br-active___fmCeI:active {
55
55
  --hop-br-active: initial;
56
56
  border-right: var(--hop-br-active) !important;
57
57
  }
58
- .UseStyledSystem-module__hop-bt-active___-jY1M:active {
58
+ .UseStyledSystem-module__hop-bt-active___gWcN8:active {
59
59
  --hop-bt-active: initial;
60
60
  border-top: var(--hop-bt-active) !important;
61
61
  }
62
- .UseStyledSystem-module__hop-bg-hover___YImIc:hover {
62
+ .UseStyledSystem-module__hop-bg-hover___RJ8bQ:hover {
63
63
  --hop-bg-hover: initial;
64
64
  background-color: var(--hop-bg-hover) !important;
65
65
  }
66
- .UseStyledSystem-module__hop-bg-focus___Cop9n:focus-visible {
66
+ .UseStyledSystem-module__hop-bg-focus___0wFZh:focus-visible {
67
67
  --hop-bg-focus: initial;
68
68
  background-color: var(--hop-bg-focus) !important;
69
69
  }
70
- .UseStyledSystem-module__hop-bg-active___5O85P:active {
70
+ .UseStyledSystem-module__hop-bg-active___ClI7B:active {
71
71
  --hop-bg-active: initial;
72
72
  background-color: var(--hop-bg-active) !important;
73
73
  }
74
- .UseStyledSystem-module__hop-bs-hover___8Oj0h:hover {
74
+ .UseStyledSystem-module__hop-bs-hover___n4AMX:hover {
75
75
  --hop-bs-hover: initial;
76
76
  box-shadow: var(--hop-bs-hover) !important;
77
77
  }
78
- .UseStyledSystem-module__hop-bs-focus___r9l2R:focus-visible {
78
+ .UseStyledSystem-module__hop-bs-focus___EkVlA:focus-visible {
79
79
  --hop-bs-focus: initial;
80
80
  box-shadow: var(--hop-bs-focus) !important;
81
81
  }
82
- .UseStyledSystem-module__hop-bs-active___XyHmm:active {
82
+ .UseStyledSystem-module__hop-bs-active___jUKcJ:active {
83
83
  --hop-bs-active: initial;
84
84
  box-shadow: var(--hop-bs-active) !important;
85
85
  }
86
- .UseStyledSystem-module__hop-c-hover___yYnaZ:hover {
86
+ .UseStyledSystem-module__hop-c-hover___Yszuq:hover {
87
87
  --hop-c-hover: initial;
88
88
  color: var(--hop-c-hover) !important;
89
89
  }
90
- .UseStyledSystem-module__hop-c-focus___Z9ASb:focus-visible {
90
+ .UseStyledSystem-module__hop-c-focus___R-D-d:focus-visible {
91
91
  --hop-c-focus: initial;
92
92
  color: var(--hop-c-focus) !important;
93
93
  }
94
- .UseStyledSystem-module__hop-c-active___zk1Gb:active {
94
+ .UseStyledSystem-module__hop-c-active___iy--9:active {
95
95
  --hop-c-active: initial;
96
96
  color: var(--hop-c-active) !important;
97
97
  }
98
- .UseStyledSystem-module__hop-cs-hover___jOiBf:hover {
98
+ .UseStyledSystem-module__hop-cs-hover___OqIJ2:hover {
99
99
  --hop-cs-hover: initial;
100
100
  cursor: var(--hop-cs-hover) !important;
101
101
  }
102
- .UseStyledSystem-module__hop-f-hover___huyDo:hover {
102
+ .UseStyledSystem-module__hop-f-hover___y-XLH:hover {
103
103
  --hop-f-hover: initial;
104
104
  fill: var(--hop-f-hover) !important;
105
105
  }
106
- .UseStyledSystem-module__hop-f-focus___5-VRH:focus-visible {
106
+ .UseStyledSystem-module__hop-f-focus___NSIK4:focus-visible {
107
107
  --hop-f-focus: initial;
108
108
  fill: var(--hop-f-focus) !important;
109
109
  }
110
- .UseStyledSystem-module__hop-o-hover___Ntq4o:hover {
110
+ .UseStyledSystem-module__hop-o-hover___rxxcZ:hover {
111
111
  --hop-o-hover: initial;
112
112
  opacity: var(--hop-o-hover) !important;
113
113
  }
114
- .UseStyledSystem-module__hop-o-focus___Xxebb:focus-visible {
114
+ .UseStyledSystem-module__hop-o-focus___oO8-E:focus-visible {
115
115
  --hop-o-focus: initial;
116
116
  opacity: var(--hop-o-focus) !important;
117
117
  }
118
- .UseStyledSystem-module__hop-o-active___uJ6oe:active {
118
+ .UseStyledSystem-module__hop-o-active___bYxsk:active {
119
119
  --hop-o-active: initial;
120
120
  opacity: var(--hop-o-active) !important;
121
121
  }
122
- .UseStyledSystem-module__hop-ol-focus___iZ2fp:focus-visible {
122
+ .UseStyledSystem-module__hop-ol-focus___bZPzq:focus-visible {
123
123
  --hop-ol-focus: initial;
124
124
  color: var(--hop-ol-focus) !important;
125
125
  }
126
126
 
127
127
  /* css-module:/home/runner/work/wl-hopper/wl-hopper/packages/styled-system/src/html-wrappers/htmlElement.module.css/#css-module-data */
128
- :where(.htmlElement-module__html-element___xmRSa),
129
- :where(.htmlElement-module__html-element___xmRSa::after),
130
- :where(.htmlElement-module__html-element___xmRSa::before) {
128
+ :where(.htmlElement-module__html-element___o62yV),
129
+ :where(.htmlElement-module__html-element___o62yV::after),
130
+ :where(.htmlElement-module__html-element___o62yV::before) {
131
131
  box-sizing: border-box;
132
132
  }
@@ -1,25 +1,26 @@
1
- export { StyledSystemProvider } from './chunk-7HCELIKZ.js';
2
- import './chunk-OHW5NUAW.js';
1
+ export { StyledSystemProvider } from './chunk-NTEKQGZI.js';
2
+ import './chunk-Y5XP6E4D.js';
3
+ import './chunk-HM4X5E4X.js';
4
+ import './chunk-C3BQSQFB.js';
3
5
  import './chunk-3YM73BQP.js';
4
- import './chunk-JQBON2KA.js';
5
- import './chunk-FYKLSVLR.js';
6
- import './chunk-35LDZFKX.js';
7
- import './chunk-LU33LZMJ.js';
8
- import './chunk-ZO3DYLQJ.js';
9
- import './chunk-IK6W4ZXH.js';
10
- import './chunk-2ITAI3PJ.js';
11
- import './chunk-Q3NLRNZN.js';
12
- import './chunk-JBWKRDVA.js';
6
+ import './chunk-AHDDZ2BQ.js';
7
+ import './chunk-Z33MPMW6.js';
8
+ import './chunk-6Z3ODGLS.js';
9
+ import './chunk-A47SIZVA.js';
10
+ import './chunk-ZKEMKHXY.js';
11
+ import './chunk-HAB2KYRH.js';
12
+ import './chunk-RIORU7JO.js';
13
13
  import './chunk-YPIK2HRL.js';
14
- import './chunk-ZQUJDDQL.js';
15
- import './chunk-RIR7BXVF.js';
16
- import './chunk-KUUJ37DW.js';
17
- import './chunk-U3SI5QXV.js';
18
- import './chunk-GYREQTEK.js';
19
- import './chunk-ZUVKM5DV.js';
14
+ import './chunk-LTBVOC66.js';
15
+ import './chunk-I7U75XRH.js';
16
+ import './chunk-T2LQYER5.js';
17
+ import './chunk-PCGVOTW3.js';
18
+ import './chunk-SFOVKOPG.js';
19
+ import './chunk-VBKLISDI.js';
20
20
  import './chunk-XUHDFZZL.js';
21
21
  import './chunk-U5R6ZXH3.js';
22
22
  import './chunk-I37Y2R7V.js';
23
- import './chunk-IP7TYBR3.js';
23
+ import './chunk-XTX4KVWI.js';
24
24
  import './chunk-STEDL5VQ.js';
25
25
  import './chunk-V7X6ANEM.js';
26
+ import './chunk-JFESGV6Z.js';
@@ -1,6 +1,6 @@
1
- import { Tokens } from './chunk-IK6W4ZXH.js';
2
- import { useInsertStyleElement } from './chunk-JBWKRDVA.js';
3
- import { StyledSystemRootCssClass } from './chunk-ZQUJDDQL.js';
1
+ import { Tokens } from './chunk-A47SIZVA.js';
2
+ import { useInsertStyleElement } from './chunk-RIORU7JO.js';
3
+ import { StyledSystemRootCssClass } from './chunk-LTBVOC66.js';
4
4
 
5
5
  // src/tokens/TokenProvider.tsx
6
6
  function TokenProvider() {
@@ -1,5 +1,5 @@
1
- import { DarkSemanticTokens } from './chunk-2ITAI3PJ.js';
2
- import { CoreTokens, SemanticTokens } from './chunk-Q3NLRNZN.js';
1
+ import { DarkSemanticTokens } from './chunk-ZKEMKHXY.js';
2
+ import { CoreTokens, SemanticTokens } from './chunk-HAB2KYRH.js';
3
3
 
4
4
  // src/tokens/tokens.ts
5
5
  var Tokens = {
@@ -1,15 +1,18 @@
1
1
  import { isNil } from './chunk-U5R6ZXH3.js';
2
+ import { __privateAdd, __privateSet, __privateGet } from './chunk-JFESGV6Z.js';
2
3
 
3
4
  // src/utils/useThemeComputedStyle.ts
5
+ var _componentRef, _scope;
4
6
  var ThemeComputedStyle = class {
5
- #componentRef;
6
- #scope;
7
7
  constructor(componentRef, scope) {
8
- this.#componentRef = componentRef;
9
- this.#scope = scope;
8
+ __privateAdd(this, _componentRef, void 0);
9
+ __privateAdd(this, _scope, void 0);
10
+ __privateSet(this, _componentRef, componentRef);
11
+ __privateSet(this, _scope, scope);
10
12
  }
11
13
  getThemeElement() {
12
- const themeElement = this.#componentRef.current?.closest(this.#scope);
14
+ var _a;
15
+ const themeElement = (_a = __privateGet(this, _componentRef).current) == null ? void 0 : _a.closest(__privateGet(this, _scope));
13
16
  if (isNil(themeElement)) {
14
17
  throw new Error("Cannot find a theme element, is the scope assigned to a DOM element?");
15
18
  }
@@ -19,5 +22,7 @@ var ThemeComputedStyle = class {
19
22
  return window.getComputedStyle(this.getThemeElement()).getPropertyValue(name);
20
23
  }
21
24
  };
25
+ _componentRef = new WeakMap();
26
+ _scope = new WeakMap();
22
27
 
23
28
  export { ThemeComputedStyle };
@@ -1,7 +1,7 @@
1
1
  import { useIsomorphicLayoutEffect } from './chunk-3YM73BQP.js';
2
- import { ThemeComputedStyle } from './chunk-JQBON2KA.js';
3
- import { useInsertStyleElement } from './chunk-JBWKRDVA.js';
4
- import { StyledSystemRootCssClass } from './chunk-ZQUJDDQL.js';
2
+ import { ThemeComputedStyle } from './chunk-AHDDZ2BQ.js';
3
+ import { useInsertStyleElement } from './chunk-RIORU7JO.js';
4
+ import { StyledSystemRootCssClass } from './chunk-LTBVOC66.js';
5
5
  import { isNil } from './chunk-U5R6ZXH3.js';
6
6
  import { useColorSchemeContext } from './chunk-V7X6ANEM.js';
7
7
  import { useRef, useState } from 'react';
@@ -392,6 +392,7 @@ var SemanticTokens = {
392
392
  "--hop-neutral-border-hover": "var(--hop-rock-300)",
393
393
  "--hop-neutral-border-active": "var(--hop-rock-800)",
394
394
  "--hop-neutral-surface-weak-hover": "var(--hop-rock-75)",
395
+ "--hop-neutral-surface-weak-active": "var(--hop-rock-50)",
395
396
  "--hop-neutral-border-weakest": "var(--hop-rock-50)",
396
397
  "--hop-neutral-surface-weakest": "var(--hop-rock-25)",
397
398
  "--hop-warning-icon-weakest": "var(--hop-koi-100)",
@@ -1,10 +1,10 @@
1
- import { useStyledSystem } from './chunk-RIR7BXVF.js';
1
+ import { useStyledSystem } from './chunk-I7U75XRH.js';
2
2
  import clsx from 'clsx';
3
3
  import { forwardRef } from 'react';
4
4
  import { jsx } from 'react/jsx-runtime';
5
5
 
6
6
  // css-module:./htmlElement.module.css#css-module
7
- var htmlElement_module_default = { "html-element": "htmlElement-module__html-element___xmRSa" };
7
+ var htmlElement_module_default = { "html-element": "htmlElement-module__html-element___o62yV" };
8
8
  function htmlElement(elementType) {
9
9
  return forwardRef((props, ref) => {
10
10
  const { className, children, ...rest } = useStyledSystem(props);
@@ -1,12 +1,13 @@
1
- import { parseResponsiveSystemValue, ColorExpressionTypes, DefaultBorderWidthAndStyle, BackgroundColorMapping, BorderMapping, BorderRadiusMapping, BoxShadowMapping, TextColorMapping, SimpleMarginMapping, IconColorMapping, FontFamilyMapping, FontSizeMapping, FontWeightMapping, SizingMapping, LineHeightMapping, ComplexMarginMapping, ComplexPaddingMapping, SimplePaddingMapping } from './chunk-KUUJ37DW.js';
2
- import { parseResponsiveValue } from './chunk-GYREQTEK.js';
3
- import { useBreakpointContext } from './chunk-ZUVKM5DV.js';
1
+ import { parseResponsiveSystemValue, ColorExpressionTypes, DefaultBorderWidthAndStyle, BackgroundColorMapping, BorderMapping, BorderRadiusMapping, BoxShadowMapping, TextColorMapping, SimpleMarginMapping, IconColorMapping, FontFamilyMapping, FontSizeMapping, FontWeightMapping, SizingMapping, LineHeightMapping, ComplexMarginMapping, ComplexPaddingMapping, SimplePaddingMapping } from './chunk-T2LQYER5.js';
2
+ import { parseResponsiveValue } from './chunk-SFOVKOPG.js';
3
+ import { useBreakpointContext } from './chunk-VBKLISDI.js';
4
4
  import { isNil } from './chunk-U5R6ZXH3.js';
5
5
  import { UnsafePrefix } from './chunk-I37Y2R7V.js';
6
+ import { __privateAdd, __publicField, __privateSet, __privateGet } from './chunk-JFESGV6Z.js';
6
7
  import { useMemo } from 'react';
7
8
 
8
9
  // css-module:./UseStyledSystem.module.css#css-module
9
- var UseStyledSystem_module_default = { "hop-b-hover": "UseStyledSystem-module__hop-b-hover___J4CU8", "hop-bb-hover": "UseStyledSystem-module__hop-bb-hover___kSFWj", "hop-bl-hover": "UseStyledSystem-module__hop-bl-hover___1Cezh", "hop-br-hover": "UseStyledSystem-module__hop-br-hover___6QimZ", "hop-bt-hover": "UseStyledSystem-module__hop-bt-hover___t7jJb", "hop-b-focus": "UseStyledSystem-module__hop-b-focus___GAcvC", "hop-bb-focus": "UseStyledSystem-module__hop-bb-focus___tRcZ7", "hop-bl-focus": "UseStyledSystem-module__hop-bl-focus___tHmqH", "hop-br-focus": "UseStyledSystem-module__hop-br-focus___o38Ur", "hop-bt-focus": "UseStyledSystem-module__hop-bt-focus___Iuh-n", "hop-b-active": "UseStyledSystem-module__hop-b-active___T6lcA", "hop-bb-active": "UseStyledSystem-module__hop-bb-active___GMekS", "hop-bl-active": "UseStyledSystem-module__hop-bl-active___yAT0P", "hop-br-active": "UseStyledSystem-module__hop-br-active___gjJ1X", "hop-bt-active": "UseStyledSystem-module__hop-bt-active___-jY1M", "hop-bg-hover": "UseStyledSystem-module__hop-bg-hover___YImIc", "hop-bg-focus": "UseStyledSystem-module__hop-bg-focus___Cop9n", "hop-bg-active": "UseStyledSystem-module__hop-bg-active___5O85P", "hop-bs-hover": "UseStyledSystem-module__hop-bs-hover___8Oj0h", "hop-bs-focus": "UseStyledSystem-module__hop-bs-focus___r9l2R", "hop-bs-active": "UseStyledSystem-module__hop-bs-active___XyHmm", "hop-c-hover": "UseStyledSystem-module__hop-c-hover___yYnaZ", "hop-c-focus": "UseStyledSystem-module__hop-c-focus___Z9ASb", "hop-c-active": "UseStyledSystem-module__hop-c-active___zk1Gb", "hop-cs-hover": "UseStyledSystem-module__hop-cs-hover___jOiBf", "hop-f-hover": "UseStyledSystem-module__hop-f-hover___huyDo", "hop-f-focus": "UseStyledSystem-module__hop-f-focus___5-VRH", "hop-o-hover": "UseStyledSystem-module__hop-o-hover___Ntq4o", "hop-o-focus": "UseStyledSystem-module__hop-o-focus___Xxebb", "hop-o-active": "UseStyledSystem-module__hop-o-active___uJ6oe", "hop-ol-focus": "UseStyledSystem-module__hop-ol-focus___iZ2fp" };
10
+ var UseStyledSystem_module_default = { "hop-b-hover": "UseStyledSystem-module__hop-b-hover___hm18j", "hop-bb-hover": "UseStyledSystem-module__hop-bb-hover___21HKw", "hop-bl-hover": "UseStyledSystem-module__hop-bl-hover___Grzt6", "hop-br-hover": "UseStyledSystem-module__hop-br-hover___G7tk8", "hop-bt-hover": "UseStyledSystem-module__hop-bt-hover___sm1qA", "hop-b-focus": "UseStyledSystem-module__hop-b-focus___e1pDZ", "hop-bb-focus": "UseStyledSystem-module__hop-bb-focus___n1ebY", "hop-bl-focus": "UseStyledSystem-module__hop-bl-focus___pkLah", "hop-br-focus": "UseStyledSystem-module__hop-br-focus___EIC7F", "hop-bt-focus": "UseStyledSystem-module__hop-bt-focus___Hs3sj", "hop-b-active": "UseStyledSystem-module__hop-b-active___ELBnY", "hop-bb-active": "UseStyledSystem-module__hop-bb-active___0i1A8", "hop-bl-active": "UseStyledSystem-module__hop-bl-active___fNBrE", "hop-br-active": "UseStyledSystem-module__hop-br-active___fmCeI", "hop-bt-active": "UseStyledSystem-module__hop-bt-active___gWcN8", "hop-bg-hover": "UseStyledSystem-module__hop-bg-hover___RJ8bQ", "hop-bg-focus": "UseStyledSystem-module__hop-bg-focus___0wFZh", "hop-bg-active": "UseStyledSystem-module__hop-bg-active___ClI7B", "hop-bs-hover": "UseStyledSystem-module__hop-bs-hover___n4AMX", "hop-bs-focus": "UseStyledSystem-module__hop-bs-focus___EkVlA", "hop-bs-active": "UseStyledSystem-module__hop-bs-active___jUKcJ", "hop-c-hover": "UseStyledSystem-module__hop-c-hover___Yszuq", "hop-c-focus": "UseStyledSystem-module__hop-c-focus___R-D-d", "hop-c-active": "UseStyledSystem-module__hop-c-active___iy--9", "hop-cs-hover": "UseStyledSystem-module__hop-cs-hover___OqIJ2", "hop-f-hover": "UseStyledSystem-module__hop-f-hover___y-XLH", "hop-f-focus": "UseStyledSystem-module__hop-f-focus___NSIK4", "hop-o-hover": "UseStyledSystem-module__hop-o-hover___rxxcZ", "hop-o-focus": "UseStyledSystem-module__hop-o-focus___oO8-E", "hop-o-active": "UseStyledSystem-module__hop-o-active___bYxsk", "hop-ol-focus": "UseStyledSystem-module__hop-ol-focus___bZPzq" };
10
11
 
11
12
  // src/useStyledSystem.ts
12
13
  function createSystemValueHandler(systemValues) {
@@ -235,31 +236,34 @@ var PropsHandlers = {
235
236
  function isStyledSystemProp(name) {
236
237
  return !isNil(PropsHandlers[name]);
237
238
  }
239
+ var _classes, _style;
238
240
  var StylingContext = class {
239
- #classes;
240
- #style;
241
- matchedBreakpoints;
242
241
  constructor(className, style, matchedBreakpoints) {
243
- this.#classes = !isNil(className) ? [className] : [];
244
- this.#style = { ...style };
242
+ __privateAdd(this, _classes, void 0);
243
+ __privateAdd(this, _style, void 0);
244
+ __publicField(this, "matchedBreakpoints");
245
+ __privateSet(this, _classes, !isNil(className) ? [className] : []);
246
+ __privateSet(this, _style, { ...style });
245
247
  this.matchedBreakpoints = matchedBreakpoints;
246
248
  }
247
249
  addClass(className) {
248
- if (!this.#classes.includes(className)) {
249
- this.#classes.push(className);
250
+ if (!__privateGet(this, _classes).includes(className)) {
251
+ __privateGet(this, _classes).push(className);
250
252
  }
251
253
  return this;
252
254
  }
253
255
  addStyleValue(name, value) {
254
- this.#style[name] = value;
256
+ __privateGet(this, _style)[name] = value;
255
257
  return this;
256
258
  }
257
259
  computeStyling() {
258
- const className = this.#classes.length !== 0 ? this.#classes.join(" ") : void 0;
259
- const styleValue = Object.keys(this.#style).length !== 0 ? this.#style : void 0;
260
+ const className = __privateGet(this, _classes).length !== 0 ? __privateGet(this, _classes).join(" ") : void 0;
261
+ const styleValue = Object.keys(__privateGet(this, _style)).length !== 0 ? __privateGet(this, _style) : void 0;
260
262
  return { className, style: styleValue };
261
263
  }
262
264
  };
265
+ _classes = new WeakMap();
266
+ _style = new WeakMap();
263
267
  function useStyledSystem(props) {
264
268
  const {
265
269
  alignContent,
@@ -0,0 +1,26 @@
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 };
@@ -2,7 +2,7 @@
2
2
  var package_default = {
3
3
  name: "@hopper-ui/styled-system",
4
4
  author: "Workleap",
5
- version: "0.2.2",
5
+ version: "0.2.4",
6
6
  description: "The styled-system package.",
7
7
  license: "Apache-2.0",
8
8
  repository: {
@@ -1,9 +1,9 @@
1
- import { BodyStyleProvider } from './chunk-OHW5NUAW.js';
2
- import { Div } from './chunk-FYKLSVLR.js';
3
- import { BreakpointProvider, DefaultUnsupportedMatchMediaBreakpoint } from './chunk-LU33LZMJ.js';
4
- import { TokenProvider } from './chunk-ZO3DYLQJ.js';
5
- import { HopperRootCssClass, StyledSystemRootCssClass } from './chunk-ZQUJDDQL.js';
6
- import { useColorScheme } from './chunk-IP7TYBR3.js';
1
+ import { Div } from './chunk-Y5XP6E4D.js';
2
+ import { BodyStyleProvider } from './chunk-C3BQSQFB.js';
3
+ import { BreakpointProvider, DefaultUnsupportedMatchMediaBreakpoint } from './chunk-Z33MPMW6.js';
4
+ import { TokenProvider } from './chunk-6Z3ODGLS.js';
5
+ import { HopperRootCssClass, StyledSystemRootCssClass } from './chunk-LTBVOC66.js';
6
+ import { useColorScheme } from './chunk-XTX4KVWI.js';
7
7
  import { ColorSchemeContext } from './chunk-V7X6ANEM.js';
8
8
  import clsx from 'clsx';
9
9
  import { useState, useCallback } from 'react';
@@ -11,7 +11,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
11
11
 
12
12
  function StyledSystemProvider({ children, withBodyStyle = false, withCssVariables = true, colorScheme = "light", defaultColorScheme = "light", unsupportedMatchMediaBreakpoint = DefaultUnsupportedMatchMediaBreakpoint, className, ...rest }) {
13
13
  const [remoteColorScheme, setRemoteColorScheme] = useState();
14
- const computedColorScheme = useColorScheme(remoteColorScheme ?? colorScheme, defaultColorScheme);
14
+ const computedColorScheme = useColorScheme(remoteColorScheme != null ? remoteColorScheme : colorScheme, defaultColorScheme);
15
15
  const setColorScheme = useCallback((newColorScheme) => {
16
16
  setRemoteColorScheme(newColorScheme);
17
17
  }, [setRemoteColorScheme]);
@@ -221,6 +221,7 @@ var BackgroundColors = {
221
221
  "neutral-strong": "neutral-surface-strong",
222
222
  "neutral-hover": "neutral-surface-hover",
223
223
  "neutral-weak-hover": "neutral-surface-weak-hover",
224
+ "neutral-weak-active": "neutral-surface-weak-active",
224
225
  "neutral-weakest": "neutral-surface-weakest",
225
226
  "warning": "warning-surface",
226
227
  "warning-strong": "warning-surface-strong",
@@ -12,7 +12,7 @@ function useInsertStyleElement(elementId, cssContent, allowUpdates = true) {
12
12
  document.head.appendChild(element);
13
13
  element.innerText = formatInlineCss(cssContent);
14
14
  return () => {
15
- element?.remove();
15
+ element == null ? void 0 : element.remove();
16
16
  };
17
17
  }
18
18
  } else if (allowUpdates) {
@@ -21,7 +21,8 @@ function useInsertStyleElement(elementId, cssContent, allowUpdates = true) {
21
21
  }, [elementId, cssContent]);
22
22
  }
23
23
  function formatInlineCss(str) {
24
- return str?.replace(/(\r\n|\n|\r|\s\s)/gm, "") ?? "";
24
+ var _a;
25
+ return (_a = str == null ? void 0 : str.replace(/(\r\n|\n|\r|\s\s)/gm, "")) != null ? _a : "";
25
26
  }
26
27
 
27
28
  export { useInsertStyleElement };
@@ -1,4 +1,4 @@
1
- import { useBreakpointContext } from './chunk-ZUVKM5DV.js';
1
+ import { useBreakpointContext } from './chunk-VBKLISDI.js';
2
2
  import { Breakpoints } from './chunk-XUHDFZZL.js';
3
3
  import { isObject, isNil } from './chunk-U5R6ZXH3.js';
4
4
 
@@ -1,5 +1,5 @@
1
- import { HopperVariablePrefix, HopperColors, DataVizColors, BackgroundColors, TextColors, IconColors, Elevation, FontSize, FontWeight, LineHeight, FontFamily, Shape, CoreSpace, SemanticSimplePaddingSpace, SemanticComplexPaddingSpace, SemanticSimpleMarginSpace, SemanticComplexMarginSpace } from './chunk-U3SI5QXV.js';
2
- import { parseResponsiveValue } from './chunk-GYREQTEK.js';
1
+ import { HopperVariablePrefix, HopperColors, DataVizColors, BackgroundColors, TextColors, IconColors, Elevation, FontSize, FontWeight, LineHeight, FontFamily, Shape, CoreSpace, SemanticSimplePaddingSpace, SemanticComplexPaddingSpace, SemanticSimpleMarginSpace, SemanticComplexMarginSpace } from './chunk-PCGVOTW3.js';
2
+ import { parseResponsiveValue } from './chunk-SFOVKOPG.js';
3
3
  import { isNil } from './chunk-U5R6ZXH3.js';
4
4
 
5
5
  // src/tokens/token-mappings.ts
@@ -1,12 +1,11 @@
1
- import { isNil } from './chunk-U5R6ZXH3.js';
2
1
  import { createContext, useContext } from 'react';
3
2
 
4
- var BreakpointContext = createContext(void 0);
3
+ // src/responsive/BreakpointContext.tsx
4
+ var BreakpointContext = createContext({
5
+ matchedBreakpoints: []
6
+ });
5
7
  function useBreakpointContext() {
6
8
  const context = useContext(BreakpointContext);
7
- if (isNil(context)) {
8
- throw new Error("useBreakpointContext must be used within a BreakpointProvider");
9
- }
10
9
  return context;
11
10
  }
12
11
 
@@ -11,7 +11,7 @@ function useColorScheme(colorScheme, defaultColorScheme) {
11
11
  if (matchesDark) {
12
12
  return "dark";
13
13
  }
14
- return defaultColorScheme ?? "light";
14
+ return defaultColorScheme != null ? defaultColorScheme : "light";
15
15
  }
16
16
  return colorScheme;
17
17
  }
@@ -1,4 +1,4 @@
1
- import { htmlElement } from './chunk-35LDZFKX.js';
1
+ import { htmlElement } from './chunk-HM4X5E4X.js';
2
2
 
3
3
  // src/html-wrappers/html.ts
4
4
  var Address = htmlElement("address");
@@ -1,4 +1,4 @@
1
- import { BreakpointContext } from './chunk-ZUVKM5DV.js';
1
+ import { BreakpointContext } from './chunk-VBKLISDI.js';
2
2
  import { Breakpoints } from './chunk-XUHDFZZL.js';
3
3
  import { supportsMatchMedia } from './chunk-STEDL5VQ.js';
4
4
  import { useCallback, useState, useEffect } from 'react';
@@ -168,7 +168,7 @@ var DarkSemanticTokens = {
168
168
  "--hop-neutral-border-disabled": "var(--hop-rock-800)",
169
169
  "--hop-neutral-border-strong-hover": "var(--hop-samoyed)",
170
170
  "--hop-neutral-border-strong": "var(--hop-samoyed)",
171
- "--hop-neutral-surface-strong": "var(--hop-samoyed)",
171
+ "--hop-neutral-surface-strong": "var(--hop-toad-25)",
172
172
  "--hop-neutral-surface-hover": "var(--hop-rock-800)",
173
173
  "--hop-neutral-icon-disabled": "var(--hop-rock-500)",
174
174
  "--hop-neutral-icon": "var(--hop-rock-25)",
@@ -182,6 +182,7 @@ var DarkSemanticTokens = {
182
182
  "--hop-neutral-border-hover": "var(--hop-rock-300)",
183
183
  "--hop-neutral-border-active": "var(--hop-toad-25)",
184
184
  "--hop-neutral-surface-weak-hover": "var(--hop-rock-700)",
185
+ "--hop-neutral-surface-weak-active": "var(--hop-rock-800)",
185
186
  "--hop-neutral-border-weakest": "var(--hop-rock-800)",
186
187
  "--hop-neutral-surface-weakest": "var(--hop-rock-900)",
187
188
  "--hop-warning-icon-weakest": "var(--hop-koi-200)",
@@ -1 +1,2 @@
1
1
  export { ColorSchemeContext, useColorSchemeContext } from '../chunk-V7X6ANEM.js';
2
+ import '../chunk-JFESGV6Z.js';
@@ -1,2 +1,3 @@
1
- export { useColorScheme } from '../chunk-IP7TYBR3.js';
1
+ export { useColorScheme } from '../chunk-XTX4KVWI.js';
2
2
  import '../chunk-STEDL5VQ.js';
3
+ import '../chunk-JFESGV6Z.js';
@@ -1,2 +1,3 @@
1
1
  export { useColorSchemeValue } from '../chunk-X5OXC6DN.js';
2
2
  import '../chunk-V7X6ANEM.js';
3
+ import '../chunk-JFESGV6Z.js';
@@ -1,8 +1,9 @@
1
- export { BodyStyleProvider } from '../chunk-OHW5NUAW.js';
1
+ export { BodyStyleProvider } from '../chunk-C3BQSQFB.js';
2
2
  import '../chunk-3YM73BQP.js';
3
- import '../chunk-JQBON2KA.js';
4
- import '../chunk-JBWKRDVA.js';
3
+ import '../chunk-AHDDZ2BQ.js';
4
+ import '../chunk-RIORU7JO.js';
5
5
  import '../chunk-YPIK2HRL.js';
6
- import '../chunk-ZQUJDDQL.js';
6
+ import '../chunk-LTBVOC66.js';
7
7
  import '../chunk-U5R6ZXH3.js';
8
8
  import '../chunk-V7X6ANEM.js';
9
+ import '../chunk-JFESGV6Z.js';