@hopper-ui/components 0.1.1 → 1.0.1

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 (199) hide show
  1. package/CHANGELOG.md +117 -0
  2. package/dist/HopperProvider/src/HopperProvider.d.ts +33 -1
  3. package/dist/HopperProvider/src/HopperProvider.js +2 -1
  4. package/dist/HopperProvider/src/index.d.ts +1 -0
  5. package/dist/HopperProvider/src/index.js +2 -1
  6. package/dist/IconList/src/IconList.css +4 -4
  7. package/dist/IconList/src/IconList.js +2 -1
  8. package/dist/IconList/src/IconListContext.js +1 -0
  9. package/dist/IconList/src/index.css +4 -4
  10. package/dist/IconList/src/index.js +2 -1
  11. package/dist/Label/src/Label.css +11 -11
  12. package/dist/Label/src/Label.js +2 -1
  13. package/dist/Label/src/LabelContext.js +1 -0
  14. package/dist/Label/src/index.css +11 -11
  15. package/dist/Label/src/index.js +2 -1
  16. package/dist/Link/src/Link.css +165 -0
  17. package/dist/Link/src/Link.d.ts +33 -0
  18. package/dist/Link/src/Link.js +11 -0
  19. package/dist/Link/src/LinkContext.d.ts +8 -0
  20. package/dist/Link/src/LinkContext.js +2 -0
  21. package/dist/Link/src/index.css +165 -0
  22. package/dist/Link/src/index.d.ts +5 -0
  23. package/dist/Link/src/index.js +11 -0
  24. package/dist/Spinner/src/Spinner.css +80 -80
  25. package/dist/Spinner/src/Spinner.d.ts +1 -0
  26. package/dist/Spinner/src/Spinner.js +3 -2
  27. package/dist/Spinner/src/SpinnerContext.js +1 -0
  28. package/dist/Spinner/src/index.css +80 -80
  29. package/dist/Spinner/src/index.js +3 -2
  30. package/dist/Text/src/Text.css +11 -11
  31. package/dist/Text/src/Text.d.ts +2 -3
  32. package/dist/Text/src/Text.js +4 -1
  33. package/dist/Text/src/TextContext.js +1 -0
  34. package/dist/Text/src/index.css +11 -11
  35. package/dist/Text/src/index.d.ts +1 -1
  36. package/dist/Text/src/index.js +4 -1
  37. package/dist/buttons/src/Button.css +557 -358
  38. package/dist/buttons/src/Button.d.ts +15 -10
  39. package/dist/buttons/src/Button.js +12 -8
  40. package/dist/buttons/src/ButtonContext.d.ts +6 -2
  41. package/dist/buttons/src/ButtonContext.js +1 -0
  42. package/dist/buttons/src/ButtonGroup.css +38 -0
  43. package/dist/buttons/src/ButtonGroup.d.ts +40 -0
  44. package/dist/buttons/src/ButtonGroup.js +83 -0
  45. package/dist/buttons/src/ButtonGroupContext.d.ts +9 -0
  46. package/dist/buttons/src/ButtonGroupContext.js +2 -0
  47. package/dist/buttons/src/index.css +557 -358
  48. package/dist/buttons/src/index.d.ts +2 -1
  49. package/dist/buttons/src/index.js +12 -8
  50. package/dist/checkbox/src/Checkbox.css +292 -0
  51. package/dist/checkbox/src/Checkbox.d.ts +20 -0
  52. package/dist/checkbox/src/Checkbox.js +11 -0
  53. package/dist/checkbox/src/CheckboxContext.d.ts +8 -0
  54. package/dist/checkbox/src/CheckboxContext.js +2 -0
  55. package/dist/checkbox/src/CheckboxField.css +119 -0
  56. package/dist/checkbox/src/CheckboxField.d.ts +26 -0
  57. package/dist/checkbox/src/CheckboxField.js +7 -0
  58. package/dist/checkbox/src/CheckboxFieldContext.d.ts +10 -0
  59. package/dist/checkbox/src/CheckboxFieldContext.js +2 -0
  60. package/dist/checkbox/src/CheckboxGroup.css +568 -0
  61. package/dist/checkbox/src/CheckboxGroup.d.ts +30 -0
  62. package/dist/checkbox/src/CheckboxGroup.js +12 -0
  63. package/dist/checkbox/src/CheckboxGroupContext.d.ts +8 -0
  64. package/dist/checkbox/src/CheckboxGroupContext.js +2 -0
  65. package/dist/checkbox/src/CheckboxList.d.ts +17 -0
  66. package/dist/checkbox/src/CheckboxList.js +3 -0
  67. package/dist/checkbox/src/CheckboxListContext.d.ts +10 -0
  68. package/dist/checkbox/src/CheckboxListContext.js +2 -0
  69. package/dist/checkbox/src/index.css +568 -0
  70. package/dist/checkbox/src/index.d.ts +13 -0
  71. package/dist/checkbox/src/index.js +20 -0
  72. package/dist/chip/src/Chip.css +261 -0
  73. package/dist/chip/src/Chip.d.ts +27 -0
  74. package/dist/chip/src/Chip.js +10 -0
  75. package/dist/chip/src/ChipContext.d.ts +10 -0
  76. package/dist/chip/src/ChipContext.js +2 -0
  77. package/dist/chip/src/index.css +261 -0
  78. package/dist/chip/src/index.d.ts +7 -0
  79. package/dist/chip/src/index.js +10 -0
  80. package/dist/chunk-2EAZPH3M.js +7 -0
  81. package/dist/chunk-3FT5XSWV.js +124 -0
  82. package/dist/chunk-3KIUEBO3.js +69 -0
  83. package/dist/chunk-3LRBUQC2.js +43 -0
  84. package/dist/chunk-4VVNSXIB.js +7 -0
  85. package/dist/chunk-5MBJWRZD.js +7 -0
  86. package/dist/chunk-6EMOC7TA.js +83 -0
  87. package/dist/chunk-A7TZHALP.js +7 -0
  88. package/dist/chunk-ACVMW6YD.js +7 -0
  89. package/dist/{chunk-YLDA2M2E.js → chunk-ANVMQBBG.js} +2 -1
  90. package/dist/chunk-BIVAOAN2.js +101 -0
  91. package/dist/chunk-BPM4ETTB.js +35 -0
  92. package/dist/chunk-CE3ABLD2.js +92 -0
  93. package/dist/chunk-CJFCOPMQ.js +57 -0
  94. package/dist/chunk-DGLAGYBD.js +7 -0
  95. package/dist/chunk-EADFYPVX.js +93 -0
  96. package/dist/chunk-ESVVLTEN.js +7 -0
  97. package/dist/chunk-FD4HMY5A.js +91 -0
  98. package/dist/chunk-FU5CCPLP.js +7 -0
  99. package/dist/{chunk-JGYEQS4H.js → chunk-G7RKLBFT.js} +7 -7
  100. package/dist/chunk-H234F7HP.js +83 -0
  101. package/dist/chunk-H5YTU3U7.js +20 -0
  102. package/dist/chunk-H7VJS4MX.js +7 -0
  103. package/dist/chunk-HUJ3PTM7.js +58 -0
  104. package/dist/chunk-HXI3MEEK.js +27 -0
  105. package/dist/chunk-KKFX7YII.js +83 -0
  106. package/dist/chunk-N7YDPVZL.js +7 -0
  107. package/dist/chunk-NH3IVMXB.js +43 -0
  108. package/dist/chunk-NKHMUPAP.js +43 -0
  109. package/dist/chunk-SC4G54ML.js +186 -0
  110. package/dist/{chunk-CMJUZLSA.js → chunk-TRS7R4W3.js} +7 -7
  111. package/dist/chunk-VJQ7M2BK.js +7 -0
  112. package/dist/chunk-VYNBJRJW.js +101 -0
  113. package/dist/chunk-WDUQUPTE.js +7 -0
  114. package/dist/chunk-WTKIUAHI.js +7 -0
  115. package/dist/{chunk-A2IN7HC4.js → chunk-YFTLWL74.js} +8 -9
  116. package/dist/chunk-YHBJAXUY.js +7 -0
  117. package/dist/chunk-YSQDPG26.js +27 -0
  118. package/dist/chunk-ZGNK4GWA.js +7 -0
  119. package/dist/chunk-ZUMAL5WB.js +104 -0
  120. package/dist/errorMessage/src/ErrorMessage.css +102 -0
  121. package/dist/errorMessage/src/ErrorMessage.d.ts +20 -0
  122. package/dist/errorMessage/src/ErrorMessage.js +9 -0
  123. package/dist/errorMessage/src/ErrorMessageContext.d.ts +9 -0
  124. package/dist/errorMessage/src/ErrorMessageContext.js +2 -0
  125. package/dist/errorMessage/src/index.css +102 -0
  126. package/dist/errorMessage/src/index.d.ts +6 -0
  127. package/dist/errorMessage/src/index.js +9 -0
  128. package/dist/helperMessage/src/HelperMessage.css +94 -0
  129. package/dist/helperMessage/src/HelperMessage.d.ts +20 -0
  130. package/dist/helperMessage/src/HelperMessage.js +8 -0
  131. package/dist/helperMessage/src/HelperMessageContext.d.ts +9 -0
  132. package/dist/helperMessage/src/HelperMessageContext.js +2 -0
  133. package/dist/helperMessage/src/index.css +94 -0
  134. package/dist/helperMessage/src/index.d.ts +6 -0
  135. package/dist/helperMessage/src/index.js +8 -0
  136. package/dist/{intl → i18n}/src/index.d.ts +1 -0
  137. package/dist/i18n/src/index.js +2 -0
  138. package/dist/i18n/src/useLocalizedString.d.ts +9 -0
  139. package/dist/i18n/src/useLocalizedString.js +2 -0
  140. package/dist/layout/src/Flex.js +1 -0
  141. package/dist/layout/src/Grid.js +1 -1
  142. package/dist/layout/src/Inline.js +1 -0
  143. package/dist/layout/src/Stack.js +1 -0
  144. package/dist/radio/src/Radio.css +293 -0
  145. package/dist/radio/src/Radio.d.ts +20 -0
  146. package/dist/radio/src/Radio.js +11 -0
  147. package/dist/radio/src/RadioContext.d.ts +8 -0
  148. package/dist/radio/src/RadioContext.js +2 -0
  149. package/dist/radio/src/RadioField.css +119 -0
  150. package/dist/radio/src/RadioField.d.ts +26 -0
  151. package/dist/radio/src/RadioField.js +7 -0
  152. package/dist/radio/src/RadioFieldContext.d.ts +10 -0
  153. package/dist/radio/src/RadioFieldContext.js +2 -0
  154. package/dist/radio/src/RadioGroup.css +570 -0
  155. package/dist/radio/src/RadioGroup.d.ts +30 -0
  156. package/dist/radio/src/RadioGroup.js +12 -0
  157. package/dist/radio/src/RadioGroupContext.d.ts +8 -0
  158. package/dist/radio/src/RadioGroupContext.js +2 -0
  159. package/dist/radio/src/RadioList.d.ts +17 -0
  160. package/dist/radio/src/RadioList.js +3 -0
  161. package/dist/radio/src/RadioListContext.d.ts +10 -0
  162. package/dist/radio/src/RadioListContext.js +2 -0
  163. package/dist/radio/src/index.css +570 -0
  164. package/dist/radio/src/index.d.ts +13 -0
  165. package/dist/radio/src/index.js +20 -0
  166. package/dist/switch/src/Switch.css +236 -0
  167. package/dist/switch/src/Switch.d.ts +20 -0
  168. package/dist/switch/src/Switch.js +11 -0
  169. package/dist/switch/src/SwitchContext.d.ts +8 -0
  170. package/dist/switch/src/SwitchContext.js +2 -0
  171. package/dist/switch/src/SwitchField.css +119 -0
  172. package/dist/switch/src/SwitchField.d.ts +26 -0
  173. package/dist/switch/src/SwitchField.js +7 -0
  174. package/dist/switch/src/SwitchFieldContext.d.ts +10 -0
  175. package/dist/switch/src/SwitchFieldContext.js +2 -0
  176. package/dist/switch/src/index.css +276 -0
  177. package/dist/switch/src/index.d.ts +9 -0
  178. package/dist/switch/src/index.js +13 -0
  179. package/dist/utils/src/ClearSlots.d.ts +28 -0
  180. package/dist/utils/src/ClearSlots.js +2 -0
  181. package/dist/utils/src/SlotProvider.js +1 -0
  182. package/dist/utils/src/composeClassnameRenderProps.js +1 -0
  183. package/dist/utils/src/cssModule.js +1 -0
  184. package/dist/utils/src/index.d.ts +7 -2
  185. package/dist/utils/src/index.js +5 -1
  186. package/dist/utils/src/isTextOnlyChildren.js +1 -0
  187. package/dist/utils/src/sizeAdapter.d.ts +1 -1
  188. package/dist/utils/src/types.d.ts +17 -5
  189. package/dist/utils/src/useRenderProps.d.ts +843 -0
  190. package/dist/utils/src/useRenderProps.js +2 -0
  191. package/dist/utils/src/useSlot.d.ts +8 -0
  192. package/dist/utils/src/useSlot.js +2 -0
  193. package/package.json +32 -27
  194. package/dist/chunk-GXUPEV64.js +0 -24
  195. package/dist/chunk-TNWWLZEQ.js +0 -47
  196. package/dist/chunk-Z34Z6LYX.js +0 -141
  197. package/dist/intl/src/index.js +0 -1
  198. package/dist/intl/src/useLocalizedString.d.ts +0 -26
  199. package/dist/intl/src/useLocalizedString.js +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,122 @@
1
1
  # @hopper-ui/components
2
2
 
3
+ ## 1.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [75db68e]
8
+ - @hopper-ui/icons@2.1.0
9
+
10
+ ## 1.0.0
11
+
12
+ ### Major Changes
13
+
14
+ - c5c6b30: ## @hopper-ui/tokens
15
+
16
+ **Added**
17
+
18
+ | Token |
19
+ | ------------------------------------- |
20
+ | danger-text-selected |
21
+ | danger-border-selected |
22
+ | danger-icon-selected |
23
+ | danger-icon-weak-hover |
24
+ | danger-icon-weak-press |
25
+ | danger-surface-selected |
26
+ | danger-surface-weak-hover |
27
+ | danger-surface-weak-press |
28
+ | danger-text-weak-hover |
29
+ | danger-text-weak-press |
30
+ | decorative-option5-surface-weak-hover |
31
+ | neutral-surface-weak-selected |
32
+ | neutral-surface-weakest-selected |
33
+ | neutral-border-selected |
34
+ | neutral-icon-selected |
35
+ | neutral-icon-strong-hover |
36
+ | neutral-icon-weak-press |
37
+ | neutral-surface-selected |
38
+ | neutral-text-weak-hover |
39
+ | neutral-text-weak-press |
40
+ | primary-border-selected |
41
+ | primary-icon-selected |
42
+ | primary-surface-selected |
43
+ | primary-surface-strong-selected |
44
+ | primary-surface-weak-hover |
45
+ | primary-surface-weak-press |
46
+ | primary-text-selected |
47
+ | upsell-border-selected |
48
+ | upsell-icon-selected |
49
+ | upsell-icon-hover |
50
+ | upsell-icon-weak-hover |
51
+ | upsell-icon-weak-press |
52
+ | upsell-surface-selected |
53
+ | upsell-surface-weak-hover |
54
+ | upsell-surface-weak-press |
55
+ | upsell-text-selected |
56
+ | upsell-text-weak |
57
+ | upsell-text-weak-hover |
58
+ | upsell-text-weak-press |
59
+
60
+ **Renamed**
61
+
62
+ Use this as a reference to fix all breaking changes.
63
+
64
+ | Old Token name | New Token name |
65
+ | ----------------------------- | ---------------------------- |
66
+ | danger-border-active | danger-border-press |
67
+ | danger-icon-active | danger-icon-press |
68
+ | danger-text-active | danger-text-press |
69
+ | danger-surface-active | danger-surface-press |
70
+ | neutral-border-active | neutral-border-press |
71
+ | neutral-icon-active | neutral-icon-press |
72
+ | neutral-surface-active | neutral-surface-press |
73
+ | neutral-surface-weak-active | neutral-surface-weak-press |
74
+ | neutral-text-active | neutral-text-press |
75
+ | primary-border-active | primary-border-press |
76
+ | primary-icon-active | primary-icon-press |
77
+ | primary-surface-active | primary-surface-press |
78
+ | primary-text-active | primary-text-press |
79
+ | primary-surface-strong-active | primary-surface-strong-press |
80
+ | upsell-border-active | upsell-border-press |
81
+ | upsell-icon-active | upsell-icon-press |
82
+ | upsell-surface-active | upsell-surface-press |
83
+ | upsell-text-active | upsell-text-press |
84
+
85
+ **Updated**
86
+
87
+ | Token |
88
+ | ---------------------------- |
89
+ | danger-surface-hover |
90
+ | danger-surface-strong |
91
+ | danger-surface-strong-hover |
92
+ | danger-text-weak |
93
+ | status-progress-text |
94
+ | status-progress-icon |
95
+ | primary-surface-strong-hover |
96
+ | primary-text |
97
+ | primary-surface-hover |
98
+ | upsell-surface-hover |
99
+ | upsell-surface-weak |
100
+ | upsell-text |
101
+ | upsell-icon |
102
+ | upsell-text-hover |
103
+
104
+ ## @hopper-ui/components
105
+
106
+ - Added a press state to Links
107
+ - Added a press state to Buttons
108
+ - Added a press state to Checkbbox
109
+ - Added a press state to Switch
110
+ - Added a press state to Radio
111
+ - Added numerous tests to test Pressed States of components
112
+
113
+ ### Patch Changes
114
+
115
+ - Updated dependencies [73037f3]
116
+ - Updated dependencies [c5c6b30]
117
+ - @hopper-ui/icons@2.0.0
118
+ - @hopper-ui/styled-system@2.0.0
119
+
3
120
  ## 0.1.1
4
121
 
5
122
  ### Patch Changes
@@ -1,5 +1,6 @@
1
1
  import * as react from 'react';
2
2
  import { StyledSystemProviderProps } from '@hopper-ui/styled-system';
3
+ import { Href, RouterOptions } from '@react-types/shared';
3
4
 
4
5
  declare const GlobalHopperProviderCssSelector = "hop-HopperProvider";
5
6
  interface HopperProviderProps extends StyledSystemProviderProps {
@@ -10,8 +11,39 @@ interface HopperProviderProps extends StyledSystemProviderProps {
10
11
  locale?: string;
11
12
  /**
12
13
  * Set this up once in the root of your app, and any Hopper component with the href prop will automatically navigate using your router.
14
+ * This prop should be set to a function received from your router for performing a client side navigation programmatically.
15
+ * @example
16
+ * import {RouterProvider} from 'react-aria-components';
17
+ * import {useNavigate, useHref} from 'your-router';
18
+ *
19
+ * function App() {
20
+ * let navigate = useNavigate();
21
+ *
22
+ * return (
23
+ * <RouterProvider navigate={navigate} useHref={useHref}>
24
+ * // ...
25
+ * </RouterProvider>
26
+ * );
27
+ * }
13
28
  */
14
- navigate?: (path: string) => void;
29
+ navigate?: (path: Href, routerOptions: RouterOptions | undefined) => void;
30
+ /**
31
+ * useHref is an optional prop that converts a router-specific href to a native HTML href, e.g. prepending a base path.
32
+ * @example
33
+ * import {RouterProvider} from 'react-aria-components';
34
+ * import {useNavigate, useHref} from 'your-router';
35
+ *
36
+ * function App() {
37
+ * let navigate = useNavigate();
38
+ *
39
+ * return (
40
+ * <RouterProvider navigate={navigate} useHref={useHref}>
41
+ * // ...
42
+ * </RouterProvider>
43
+ * );
44
+ * }
45
+ */
46
+ useHref?: (href: Href) => string;
15
47
  }
16
48
  /**
17
49
  * HopperProvider is required to be rendered at the root of your application. It is responsible for:
@@ -1 +1,2 @@
1
- export { GlobalHopperProviderCssSelector, _HopperProvider as HopperProvider } from '../../chunk-YLDA2M2E.js';
1
+ export { GlobalHopperProviderCssSelector, _HopperProvider as HopperProvider } from '../../chunk-ANVMQBBG.js';
2
+ import '../../chunk-YSQDPG26.js';
@@ -1,3 +1,4 @@
1
1
  export { GlobalHopperProviderCssSelector, HopperProvider, HopperProviderProps } from './HopperProvider.js';
2
2
  import 'react';
3
3
  import '@hopper-ui/styled-system';
4
+ import '@react-types/shared';
@@ -1 +1,2 @@
1
- export { GlobalHopperProviderCssSelector, _HopperProvider as HopperProvider } from '../../chunk-YLDA2M2E.js';
1
+ export { GlobalHopperProviderCssSelector, _HopperProvider as HopperProvider } from '../../chunk-ANVMQBBG.js';
2
+ import '../../chunk-YSQDPG26.js';
@@ -1,8 +1,8 @@
1
- /* src/IconList/src/IconList.module.css */
2
- .hop-IconList {
1
+ /* css-module:/home/runner/work/wl-hopper/wl-hopper/packages/components/src/IconList/src/IconList.module.css/#css-module-data */
2
+ .IconList-module__hop-IconList___xoL0K {
3
3
  --hop-IconList-gap: var(--hop-space-inline-xs);
4
- box-sizing: border-box;
5
4
  display: flex;
6
- flex-flow: wrap;
5
+ flex-wrap: wrap;
7
6
  gap: var(--hop-IconList-gap);
7
+ box-sizing: border-box;
8
8
  }
@@ -1,3 +1,4 @@
1
- export { GlobalIconListCssSelector, _IconList as IconList } from '../../chunk-A2IN7HC4.js';
1
+ export { GlobalIconListCssSelector, _IconList as IconList } from '../../chunk-YFTLWL74.js';
2
2
  import '../../chunk-M36KANKC.js';
3
3
  import '../../chunk-DHVVYSLB.js';
4
+ import '../../chunk-YSQDPG26.js';
@@ -1 +1,2 @@
1
1
  export { IconListContext } from '../../chunk-DHVVYSLB.js';
2
+ import '../../chunk-YSQDPG26.js';
@@ -1,8 +1,8 @@
1
- /* src/IconList/src/IconList.module.css */
2
- .hop-IconList {
1
+ /* css-module:/home/runner/work/wl-hopper/wl-hopper/packages/components/src/IconList/src/IconList.module.css/#css-module-data */
2
+ .IconList-module__hop-IconList___xoL0K {
3
3
  --hop-IconList-gap: var(--hop-space-inline-xs);
4
- box-sizing: border-box;
5
4
  display: flex;
6
- flex-flow: wrap;
5
+ flex-wrap: wrap;
7
6
  gap: var(--hop-IconList-gap);
7
+ box-sizing: border-box;
8
8
  }
@@ -1,3 +1,4 @@
1
- export { GlobalIconListCssSelector, _IconList as IconList } from '../../chunk-A2IN7HC4.js';
1
+ export { GlobalIconListCssSelector, _IconList as IconList } from '../../chunk-YFTLWL74.js';
2
2
  import '../../chunk-M36KANKC.js';
3
3
  export { IconListContext } from '../../chunk-DHVVYSLB.js';
4
+ import '../../chunk-YSQDPG26.js';
@@ -1,5 +1,5 @@
1
- /* src/Label/src/Label.module.css */
2
- .hop-Label {
1
+ /* css-module:/home/runner/work/wl-hopper/wl-hopper/packages/components/src/Label/src/Label.module.css/#css-module-data */
2
+ .Label-module__hop-Label___qOIKf {
3
3
  --hop-Label-xs-font-size: var(--hop-body-xs-font-size);
4
4
  --hop-Label-xs-font-family: var(--hop-body-xs-font-family);
5
5
  --hop-Label-xs-font-weight: var(--hop-body-xs-font-weight);
@@ -29,49 +29,49 @@
29
29
  --hop-Label-inherit-size-font-weight: inherit;
30
30
  --hop-Label-inherit-size-line-height: inherit;
31
31
  }
32
- :where(.hop-Label) {
33
- font-size: var(--font-size, --hop-Label-md-font-size);
32
+ :where(.Label-module__hop-Label___qOIKf) {
34
33
  font-family: var(--font-family, --hop-Label-md-font-family);
34
+ font-size: var(--font-size, --hop-Label-md-font-size);
35
35
  font-weight: var(--font-weight, --hop-Label-md-font-weight);
36
36
  line-height: var(--line-height, --hop-Label-md-line-height);
37
37
  }
38
- :where(.hop-Label--xs) {
38
+ :where(.Label-module__hop-Label--xs___YPM1S) {
39
39
  --font-size: var(--hop-Label-xs-font-size);
40
40
  --font-family: var(--hop-Label-xs-font-family);
41
41
  --font-weight: var(--hop-Label-xs-font-weight);
42
42
  --line-height: var(--hop-Label-xs-line-height);
43
43
  }
44
- :where(.hop-Label--sm) {
44
+ :where(.Label-module__hop-Label--sm___uUjjd) {
45
45
  --font-size: var(--hop-Label-sm-font-size);
46
46
  --font-family: var(--hop-Label-sm-font-family);
47
47
  --font-weight: var(--hop-Label-sm-font-weight);
48
48
  --line-height: var(--hop-Label-sm-line-height);
49
49
  }
50
- :where(.hop-Label--md) {
50
+ :where(.Label-module__hop-Label--md___q3H4q) {
51
51
  --font-size: var(--hop-Label-md-font-size);
52
52
  --font-family: var(--hop-Label-md-font-family);
53
53
  --font-weight: var(--hop-Label-md-font-weight);
54
54
  --line-height: var(--hop-Label-md-line-height);
55
55
  }
56
- :where(.hop-Label--lg) {
56
+ :where(.Label-module__hop-Label--lg___xJQna) {
57
57
  --font-size: var(--hop-Label-lg-font-size);
58
58
  --font-family: var(--hop-Label-lg-font-family);
59
59
  --font-weight: var(--hop-Label-lg-font-weight);
60
60
  --line-height: var(--hop-Label-lg-line-height);
61
61
  }
62
- :where(.hop-Label--xl) {
62
+ :where(.Label-module__hop-Label--xl___eXF1C) {
63
63
  --font-size: var(--hop-Label-xl-font-size);
64
64
  --font-family: var(--hop-Label-xl-font-family);
65
65
  --font-weight: var(--hop-Label-xl-font-weight);
66
66
  --line-height: var(--hop-Label-xl-line-height);
67
67
  }
68
- :where(.hop-Label--2xl) {
68
+ :where(.Label-module__hop-Label--2xl___E1Iq6) {
69
69
  --font-size: var(--hop-Label-2xl-font-size);
70
70
  --font-family: var(--hop-Label-2xl-font-family);
71
71
  --font-weight: var(--hop-Label-2xl-font-weight);
72
72
  --line-height: var(--hop-Label-2xl-line-height);
73
73
  }
74
- :where(.hop-Label--inherit) {
74
+ :where(.Label-module__hop-Label--inherit___zl7QA) {
75
75
  --font-size: var(--hop-Label-inherit-size-font-size);
76
76
  --font-family: var(--hop-Label-inherit-size-font-family);
77
77
  --font-weight: var(--hop-Label-inherit-size-font-weight);
@@ -1,3 +1,4 @@
1
- export { GlobalLabelCssSelector, _Label as Label } from '../../chunk-CMJUZLSA.js';
1
+ export { GlobalLabelCssSelector, _Label as Label } from '../../chunk-TRS7R4W3.js';
2
2
  import '../../chunk-KVDXQMWI.js';
3
3
  import '../../chunk-HVKOIMMW.js';
4
+ import '../../chunk-YSQDPG26.js';
@@ -1 +1,2 @@
1
1
  export { LabelContext } from '../../chunk-HVKOIMMW.js';
2
+ import '../../chunk-YSQDPG26.js';
@@ -1,5 +1,5 @@
1
- /* src/Label/src/Label.module.css */
2
- .hop-Label {
1
+ /* css-module:/home/runner/work/wl-hopper/wl-hopper/packages/components/src/Label/src/Label.module.css/#css-module-data */
2
+ .Label-module__hop-Label___qOIKf {
3
3
  --hop-Label-xs-font-size: var(--hop-body-xs-font-size);
4
4
  --hop-Label-xs-font-family: var(--hop-body-xs-font-family);
5
5
  --hop-Label-xs-font-weight: var(--hop-body-xs-font-weight);
@@ -29,49 +29,49 @@
29
29
  --hop-Label-inherit-size-font-weight: inherit;
30
30
  --hop-Label-inherit-size-line-height: inherit;
31
31
  }
32
- :where(.hop-Label) {
33
- font-size: var(--font-size, --hop-Label-md-font-size);
32
+ :where(.Label-module__hop-Label___qOIKf) {
34
33
  font-family: var(--font-family, --hop-Label-md-font-family);
34
+ font-size: var(--font-size, --hop-Label-md-font-size);
35
35
  font-weight: var(--font-weight, --hop-Label-md-font-weight);
36
36
  line-height: var(--line-height, --hop-Label-md-line-height);
37
37
  }
38
- :where(.hop-Label--xs) {
38
+ :where(.Label-module__hop-Label--xs___YPM1S) {
39
39
  --font-size: var(--hop-Label-xs-font-size);
40
40
  --font-family: var(--hop-Label-xs-font-family);
41
41
  --font-weight: var(--hop-Label-xs-font-weight);
42
42
  --line-height: var(--hop-Label-xs-line-height);
43
43
  }
44
- :where(.hop-Label--sm) {
44
+ :where(.Label-module__hop-Label--sm___uUjjd) {
45
45
  --font-size: var(--hop-Label-sm-font-size);
46
46
  --font-family: var(--hop-Label-sm-font-family);
47
47
  --font-weight: var(--hop-Label-sm-font-weight);
48
48
  --line-height: var(--hop-Label-sm-line-height);
49
49
  }
50
- :where(.hop-Label--md) {
50
+ :where(.Label-module__hop-Label--md___q3H4q) {
51
51
  --font-size: var(--hop-Label-md-font-size);
52
52
  --font-family: var(--hop-Label-md-font-family);
53
53
  --font-weight: var(--hop-Label-md-font-weight);
54
54
  --line-height: var(--hop-Label-md-line-height);
55
55
  }
56
- :where(.hop-Label--lg) {
56
+ :where(.Label-module__hop-Label--lg___xJQna) {
57
57
  --font-size: var(--hop-Label-lg-font-size);
58
58
  --font-family: var(--hop-Label-lg-font-family);
59
59
  --font-weight: var(--hop-Label-lg-font-weight);
60
60
  --line-height: var(--hop-Label-lg-line-height);
61
61
  }
62
- :where(.hop-Label--xl) {
62
+ :where(.Label-module__hop-Label--xl___eXF1C) {
63
63
  --font-size: var(--hop-Label-xl-font-size);
64
64
  --font-family: var(--hop-Label-xl-font-family);
65
65
  --font-weight: var(--hop-Label-xl-font-weight);
66
66
  --line-height: var(--hop-Label-xl-line-height);
67
67
  }
68
- :where(.hop-Label--2xl) {
68
+ :where(.Label-module__hop-Label--2xl___E1Iq6) {
69
69
  --font-size: var(--hop-Label-2xl-font-size);
70
70
  --font-family: var(--hop-Label-2xl-font-family);
71
71
  --font-weight: var(--hop-Label-2xl-font-weight);
72
72
  --line-height: var(--hop-Label-2xl-line-height);
73
73
  }
74
- :where(.hop-Label--inherit) {
74
+ :where(.Label-module__hop-Label--inherit___zl7QA) {
75
75
  --font-size: var(--hop-Label-inherit-size-font-size);
76
76
  --font-family: var(--hop-Label-inherit-size-font-family);
77
77
  --font-weight: var(--hop-Label-inherit-size-font-weight);
@@ -1,3 +1,4 @@
1
- export { GlobalLabelCssSelector, _Label as Label } from '../../chunk-CMJUZLSA.js';
1
+ export { GlobalLabelCssSelector, _Label as Label } from '../../chunk-TRS7R4W3.js';
2
2
  import '../../chunk-KVDXQMWI.js';
3
3
  export { LabelContext } from '../../chunk-HVKOIMMW.js';
4
+ import '../../chunk-YSQDPG26.js';
@@ -0,0 +1,165 @@
1
+ /* css-module:/home/runner/work/wl-hopper/wl-hopper/packages/components/src/IconList/src/IconList.module.css/#css-module-data */
2
+ .IconList-module__hop-IconList___xoL0K {
3
+ --hop-IconList-gap: var(--hop-space-inline-xs);
4
+ display: flex;
5
+ flex-wrap: wrap;
6
+ gap: var(--hop-IconList-gap);
7
+ box-sizing: border-box;
8
+ }
9
+
10
+ /* css-module:/home/runner/work/wl-hopper/wl-hopper/packages/components/src/Text/src/Text.module.css/#css-module-data */
11
+ .Text-module__hop-Text___eHjGr {
12
+ --hop-Text-xs-font-size: var(--hop-body-xs-font-size);
13
+ --hop-Text-xs-font-family: var(--hop-body-xs-font-family);
14
+ --hop-Text-xs-font-weight: var(--hop-body-xs-font-weight);
15
+ --hop-Text-xs-line-height: var(--hop-body-xs-line-height);
16
+ --hop-Text-sm-font-size: var(--hop-body-sm-font-size);
17
+ --hop-Text-sm-font-family: var(--hop-body-sm-font-family);
18
+ --hop-Text-sm-font-weight: var(--hop-body-sm-font-weight);
19
+ --hop-Text-sm-line-height: var(--hop-body-sm-line-height);
20
+ --hop-Text-md-font-size: var(--hop-body-md-font-size);
21
+ --hop-Text-md-font-family: var(--hop-body-md-font-family);
22
+ --hop-Text-md-font-weight: var(--hop-body-md-font-weight);
23
+ --hop-Text-md-line-height: var(--hop-body-md-line-height);
24
+ --hop-Text-lg-font-size: var(--hop-body-lg-font-size);
25
+ --hop-Text-lg-font-family: var(--hop-body-lg-font-family);
26
+ --hop-Text-lg-font-weight: var(--hop-body-lg-font-weight);
27
+ --hop-Text-lg-line-height: var(--hop-body-lg-line-height);
28
+ --hop-Text-xl-font-size: var(--hop-body-xl-font-size);
29
+ --hop-Text-xl-font-family: var(--hop-body-xl-font-family);
30
+ --hop-Text-xl-font-weight: var(--hop-body-xl-font-weight);
31
+ --hop-Text-xl-line-height: var(--hop-body-xl-line-height);
32
+ --hop-Text-2xl-font-size: var(--hop-body-2xl-font-size);
33
+ --hop-Text-2xl-font-family: var(--hop-body-2xl-font-family);
34
+ --hop-Text-2xl-font-weight: var(--hop-body-2xl-font-weight);
35
+ --hop-Text-2xl-line-height: var(--hop-body-2xl-line-height);
36
+ --hop-Text-inherit-size-font-size: inherit;
37
+ --hop-Text-inherit-size-font-family: inherit;
38
+ --hop-Text-inherit-size-font-weight: inherit;
39
+ --hop-Text-inherit-size-line-height: inherit;
40
+ }
41
+ :where(.Text-module__hop-Text___eHjGr) {
42
+ font-family: var(--font-family);
43
+ font-size: var(--font-size);
44
+ font-weight: var(--font-weight);
45
+ line-height: var(--line-height);
46
+ }
47
+ :where(.Text-module__hop-Text--xs___6lQf3) {
48
+ --font-size: var(--hop-Text-xs-font-size);
49
+ --font-family: var(--hop-Text-xs-font-family);
50
+ --font-weight: var(--hop-Text-xs-font-weight);
51
+ --line-height: var(--hop-Text-xs-line-height);
52
+ }
53
+ :where(.Text-module__hop-Text--sm___79uWV) {
54
+ --font-size: var(--hop-Text-sm-font-size);
55
+ --font-family: var(--hop-Text-sm-font-family);
56
+ --font-weight: var(--hop-Text-sm-font-weight);
57
+ --line-height: var(--hop-Text-sm-line-height);
58
+ }
59
+ :where(.Text-module__hop-Text--md___kaNdx) {
60
+ --font-size: var(--hop-Text-md-font-size);
61
+ --font-family: var(--hop-Text-md-font-family);
62
+ --font-weight: var(--hop-Text-md-font-weight);
63
+ --line-height: var(--hop-Text-md-line-height);
64
+ }
65
+ :where(.Text-module__hop-Text--lg___DD3l0) {
66
+ --font-size: var(--hop-Text-lg-font-size);
67
+ --font-family: var(--hop-Text-lg-font-family);
68
+ --font-weight: var(--hop-Text-lg-font-weight);
69
+ --line-height: var(--hop-Text-lg-line-height);
70
+ }
71
+ :where(.Text-module__hop-Text--xl___CU19-) {
72
+ --font-size: var(--hop-Text-xl-font-size);
73
+ --font-family: var(--hop-Text-xl-font-family);
74
+ --font-weight: var(--hop-Text-xl-font-weight);
75
+ --line-height: var(--hop-Text-xl-line-height);
76
+ }
77
+ :where(.Text-module__hop-Text--2xl___Zif3-) {
78
+ --font-size: var(--hop-Text-2xl-font-size);
79
+ --font-family: var(--hop-Text-2xl-font-family);
80
+ --font-weight: var(--hop-Text-2xl-font-weight);
81
+ --line-height: var(--hop-Text-2xl-line-height);
82
+ }
83
+ :where(.Text-module__hop-Text--inherit___NWdla) {
84
+ --font-size: var(--hop-Text-inherit-size-font-size);
85
+ --font-family: var(--hop-Text-inherit-size-font-family);
86
+ --font-weight: var(--hop-Text-inherit-size-font-weight);
87
+ --line-height: var(--hop-Text-inherit-size-line-height);
88
+ }
89
+
90
+ /* css-module:/home/runner/work/wl-hopper/wl-hopper/packages/components/src/Link/src/Link.module.css/#css-module-data */
91
+ .Link-module__hop-Link___oiI-Z {
92
+ --hop-Link-border-radius: var(--hop-shape-rounded-sm);
93
+ --hop-Link-focus-ring-color: var(--hop-primary-border-focus);
94
+ --hop-Link-color-disabled: var(--hop-neutral-text-disabled);
95
+ --hop-Link-column-gap: var(--hop-space-inline-xs);
96
+ --hop-Link-primary-text-color: var(--hop-primary-text);
97
+ --hop-Link-primary-text-disabled-color: var(--hop-primary-text-disabled);
98
+ --hop-Link-primary-text-hover-color: var(--hop-primary-text-hover);
99
+ --hop-Link-primary-text-pressed-color: var(--hop-primary-text-press);
100
+ --hop-Link-neutral-text-color: var(--hop-neutral-text);
101
+ --hop-Link-neutral-text-disabled-color: var(--hop-neutral-text-disabled);
102
+ --hop-Link-neutral-text-hover-color: var(--hop-neutral-text-hover);
103
+ --hop-Link-neutral-text-pressed-color: var(--hop-neutral-text-press);
104
+ cursor: pointer;
105
+ display: inline-flex;
106
+ column-gap: var(--hop-Link-column-gap);
107
+ align-items: center;
108
+ box-sizing: border-box;
109
+ inline-size: fit-content;
110
+ text-decoration: none;
111
+ text-underline-offset: 0.125rem;
112
+ border-radius: var(--hop-Link-border-radius);
113
+ outline: none;
114
+ outline-offset: 0.125rem;
115
+ }
116
+ .Link-module__hop-Link___oiI-Z[data-focus-visible] {
117
+ outline: 0.125rem solid var(--hop-Link-focus-ring-color);
118
+ }
119
+ .Link-module__hop-Link___oiI-Z[data-disabled] {
120
+ cursor: default;
121
+ }
122
+ .Link-module__hop-Link--quiet___Hf4-m[data-focus-visible],
123
+ .Link-module__hop-Link--quiet___Hf4-m[data-hovered] {
124
+ text-decoration: underline;
125
+ }
126
+ .Link-module__hop-Link___oiI-Z:not(.Link-module__hop-Link--quiet___Hf4-m) {
127
+ text-decoration: underline;
128
+ }
129
+ .Link-module__hop-Link--primary___Oi-l- {
130
+ color: var(--hop-Link-primary-text-color);
131
+ }
132
+ .Link-module__hop-Link--primary___Oi-l-[data-disabled] {
133
+ color: var(--hop-Link-primary-text-disabled-color);
134
+ }
135
+ .Link-module__hop-Link--primary___Oi-l-:not([data-disabled])[data-focus-visible],
136
+ .Link-module__hop-Link--primary___Oi-l-:not([data-disabled])[data-hovered] {
137
+ color: var(--hop-Link-primary-text-hover-color);
138
+ }
139
+ .Link-module__hop-Link--primary___Oi-l-:not([data-disabled])[data-pressed] {
140
+ color: var(--hop-Link-primary-text-pressed-color);
141
+ }
142
+ .Link-module__hop-Link--secondary___r8H7h {
143
+ color: var(--hop-Link-neutral-text-color);
144
+ }
145
+ .Link-module__hop-Link--secondary___r8H7h[data-disabled] {
146
+ color: var(--hop-Link-neutral-text-disabled-color);
147
+ }
148
+ .Link-module__hop-Link--secondary___r8H7h:not([data-disabled])[data-focus-visible],
149
+ .Link-module__hop-Link--secondary___r8H7h:not([data-disabled])[data-hovered] {
150
+ color: var(--hop-Link-neutral-text-hover-color);
151
+ }
152
+ .Link-module__hop-Link--secondary___r8H7h:not([data-disabled])[data-pressed] {
153
+ color: var(--hop-Link-neutral-text-pressed-color);
154
+ }
155
+ .Link-module__hop-Link__icon___JBrAN,
156
+ .Link-module__hop-Link__icon-list___GKemr {
157
+ order: 2;
158
+ }
159
+ .Link-module__hop-Link__text___-0Fhk {
160
+ order: 1;
161
+ }
162
+ .Link-module__hop-Link__start-icon___QQAbh,
163
+ .Link-module__hop-Link__start-icon-list___hA3bc {
164
+ order: 0;
165
+ }
@@ -0,0 +1,33 @@
1
+ import * as react from 'react';
2
+ import { StyledComponentProps, ResponsiveProp } from '@hopper-ui/styled-system';
3
+ import { LinkProps as LinkProps$1 } from 'react-aria-components';
4
+
5
+ declare const GlobalLinkCssSelector = "hop-Link";
6
+ interface LinkProps extends StyledComponentProps<LinkProps$1> {
7
+ /**
8
+ * The visual style of the link.
9
+ * @default "primary"
10
+ */
11
+ variant?: "primary" | "secondary";
12
+ /**
13
+ * Size of the link.
14
+ * @default "inherit"
15
+ */
16
+ size?: ResponsiveProp<"inherit" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl">;
17
+ /**
18
+ * Whether the link should be displayed with a quiet style.
19
+ */
20
+ isQuiet?: boolean;
21
+ /**
22
+ * Whether the link should open in a new tab.
23
+ */
24
+ isExternal?: boolean;
25
+ }
26
+ /**
27
+ * Links allow users to navigate to a different location. They can be presented inline inside a paragraph, as standalone text or as an image.
28
+ *
29
+ * [View Documentation](TODO)
30
+ */
31
+ declare const _Link: react.ForwardRefExoticComponent<LinkProps & react.RefAttributes<HTMLAnchorElement>>;
32
+
33
+ export { GlobalLinkCssSelector, _Link as Link, type LinkProps };
@@ -0,0 +1,11 @@
1
+ export { GlobalLinkCssSelector, _Link as Link } from '../../chunk-3FT5XSWV.js';
2
+ import '../../chunk-ZWU6DRRZ.js';
3
+ import '../../chunk-4VVNSXIB.js';
4
+ import '../../chunk-65JPI4FL.js';
5
+ import '../../chunk-HUJ3PTM7.js';
6
+ import '../../chunk-HXI3MEEK.js';
7
+ import '../../chunk-OE5BLFZI.js';
8
+ import '../../chunk-KVDXQMWI.js';
9
+ import '../../chunk-M36KANKC.js';
10
+ import '../../chunk-DHVVYSLB.js';
11
+ import '../../chunk-YSQDPG26.js';
@@ -0,0 +1,8 @@
1
+ import { LinkProps } from './Link.js';
2
+ import * as react from 'react';
3
+ import { ContextValue } from 'react-aria-components';
4
+ import '@hopper-ui/styled-system';
5
+
6
+ declare const LinkContext: react.Context<ContextValue<LinkProps, HTMLAnchorElement>>;
7
+
8
+ export { LinkContext };
@@ -0,0 +1,2 @@
1
+ export { LinkContext } from '../../chunk-4VVNSXIB.js';
2
+ import '../../chunk-YSQDPG26.js';