@hopper-ui/components 0.0.11 → 0.1.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 (96) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/HopperProvider/src/HopperProvider.d.ts +26 -0
  3. package/dist/HopperProvider/src/HopperProvider.js +1 -0
  4. package/dist/HopperProvider/src/index.d.ts +3 -0
  5. package/dist/HopperProvider/src/index.js +1 -0
  6. package/dist/IconList/src/IconList.css +8 -0
  7. package/dist/IconList/src/IconList.d.ts +21 -0
  8. package/dist/IconList/src/IconList.js +3 -0
  9. package/dist/IconList/src/IconListContext.d.ts +10 -0
  10. package/dist/IconList/src/IconListContext.js +1 -0
  11. package/dist/IconList/src/index.css +8 -0
  12. package/dist/IconList/src/index.d.ts +7 -0
  13. package/dist/IconList/src/index.js +3 -0
  14. package/dist/Label/src/Label.css +79 -0
  15. package/dist/Label/src/Label.d.ts +21 -0
  16. package/dist/Label/src/Label.js +3 -0
  17. package/dist/Label/src/LabelContext.d.ts +8 -0
  18. package/dist/Label/src/LabelContext.js +1 -0
  19. package/dist/Label/src/index.css +79 -0
  20. package/dist/Label/src/index.d.ts +5 -0
  21. package/dist/Label/src/index.js +3 -0
  22. package/dist/Spinner/src/Spinner.css +148 -0
  23. package/dist/Spinner/src/Spinner.d.ts +21 -0
  24. package/dist/Spinner/src/Spinner.js +6 -0
  25. package/dist/Spinner/src/SpinnerContext.d.ts +10 -0
  26. package/dist/Spinner/src/SpinnerContext.js +1 -0
  27. package/dist/Spinner/src/index.css +148 -0
  28. package/dist/Spinner/src/index.d.ts +7 -0
  29. package/dist/Spinner/src/index.js +6 -0
  30. package/dist/Text/src/Text.css +79 -0
  31. package/dist/Text/src/Text.d.ts +21 -0
  32. package/dist/Text/src/Text.js +3 -0
  33. package/dist/Text/src/TextContext.d.ts +8 -0
  34. package/dist/Text/src/TextContext.js +1 -0
  35. package/dist/Text/src/index.css +79 -0
  36. package/dist/Text/src/index.d.ts +5 -0
  37. package/dist/Text/src/index.js +3 -0
  38. package/dist/buttons/src/Button.css +468 -0
  39. package/dist/buttons/src/Button.d.ts +35 -0
  40. package/dist/buttons/src/Button.js +14 -0
  41. package/dist/buttons/src/ButtonContext.d.ts +8 -0
  42. package/dist/buttons/src/ButtonContext.js +1 -0
  43. package/dist/buttons/src/index.css +468 -0
  44. package/dist/buttons/src/index.d.ts +5 -0
  45. package/dist/buttons/src/index.js +14 -0
  46. package/dist/chunk-4ZYV2XLW.js +7 -0
  47. package/dist/chunk-65JPI4FL.js +14 -0
  48. package/dist/chunk-A2IN7HC4.js +53 -0
  49. package/dist/chunk-CMJUZLSA.js +46 -0
  50. package/dist/chunk-DHVVYSLB.js +7 -0
  51. package/dist/chunk-GXUPEV64.js +24 -0
  52. package/dist/chunk-HVKOIMMW.js +7 -0
  53. package/dist/chunk-JGYEQS4H.js +90 -0
  54. package/dist/chunk-KVDXQMWI.js +15 -0
  55. package/dist/chunk-LQICWONC.js +1 -0
  56. package/dist/chunk-M36KANKC.js +7 -0
  57. package/dist/chunk-OE5BLFZI.js +7 -0
  58. package/dist/chunk-SNIF7MEM.js +1 -0
  59. package/dist/chunk-TNWWLZEQ.js +47 -0
  60. package/dist/chunk-TVFC2MJ4.js +58 -0
  61. package/dist/chunk-WMTWFKKP.js +7 -0
  62. package/dist/chunk-YLDA2M2E.js +33 -0
  63. package/dist/chunk-Z34Z6LYX.js +141 -0
  64. package/dist/chunk-ZWU6DRRZ.js +15 -0
  65. package/dist/intl/src/index.d.ts +1 -0
  66. package/dist/intl/src/index.js +1 -0
  67. package/dist/intl/src/useLocalizedString.d.ts +26 -0
  68. package/dist/intl/src/useLocalizedString.js +1 -0
  69. package/dist/layout/src/Flex.d.ts +37 -0
  70. package/dist/layout/src/Flex.js +1 -0
  71. package/dist/layout/src/Grid.d.ts +77 -0
  72. package/dist/layout/src/Grid.js +55 -0
  73. package/dist/layout/src/Inline.d.ts +26 -0
  74. package/dist/layout/src/Inline.js +30 -0
  75. package/dist/layout/src/Stack.d.ts +26 -0
  76. package/dist/layout/src/Stack.js +28 -0
  77. package/dist/utils/src/SlotProvider.d.ts +14 -0
  78. package/dist/utils/src/SlotProvider.js +1 -0
  79. package/dist/utils/src/composeClassnameRenderProps.d.ts +9 -0
  80. package/dist/utils/src/composeClassnameRenderProps.js +1 -0
  81. package/dist/utils/src/cssModule.d.ts +15 -0
  82. package/dist/utils/src/cssModule.js +1 -0
  83. package/dist/utils/src/index.d.ts +11 -0
  84. package/dist/utils/src/index.js +6 -0
  85. package/dist/utils/src/isTextOnlyChildren.d.ts +9 -0
  86. package/dist/utils/src/isTextOnlyChildren.js +1 -0
  87. package/dist/utils/src/sizeAdapter.d.ts +20 -0
  88. package/dist/utils/src/sizeAdapter.js +1 -0
  89. package/dist/utils/src/types.d.ts +31 -0
  90. package/dist/utils/src/types.js +1 -0
  91. package/package.json +13 -4
  92. package/dist/HopperProvider.d.ts +0 -13
  93. package/dist/HopperProvider.js +0 -1
  94. package/dist/chunk-LBJUDVVS.js +0 -9
  95. package/dist/index.d.ts +0 -3
  96. package/dist/index.js +0 -1
@@ -0,0 +1,468 @@
1
+ /* src/buttons/src/Button.module.css */
2
+ .hop-Button {
3
+ --hop-Button-padding: 0 var(--hop-space-inset-md);
4
+ --hop-Button-border-radius: var(--hop-shape-rounded-md);
5
+ --hop-Button-focus-ring-color: var(--hop-primary-surface-hover);
6
+ --hop-Button-sm-height: 2rem;
7
+ --hop-Button-md-height: 2.5rem;
8
+ --hop-Button-primary-color: var(--hop-primary-text-strong);
9
+ --hop-Button-primary-color-hover: var(--hop-primary-text-strong-hover);
10
+ --hop-Button-primary-color-pressed: var(--hop-primary-text-active);
11
+ --hop-Button-primary-color-disabled: var(--hop-neutral-text-disabled);
12
+ --hop-Button-primary-background-color: var(--hop-primary-surface-strong);
13
+ --hop-Button-primary-background-color-hover: var(--hop-primary-surface-hover);
14
+ --hop-Button-primary-background-color-pressed: var(--hop-primary-surface-active);
15
+ --hop-Button-primary-background-color-disabled: var(--hop-neutral-surface-disabled);
16
+ --hop-Button-primary-border: 0;
17
+ --hop-Button-primary-border-hover: 0;
18
+ --hop-Button-primary-border-pressed: 0;
19
+ --hop-Button-primary-border-disabled: 0;
20
+ --hop-Button-secondary-color: var(--hop-neutral-text);
21
+ --hop-Button-secondary-color-hover: var(--hop-neutral-text-hover);
22
+ --hop-Button-secondary-color-pressed: var(--hop-neutral-text-active);
23
+ --hop-Button-secondary-color-disabled: var(--hop-neutral-text-disabled);
24
+ --hop-Button-secondary-background-color: var(--hop-neutral-surface);
25
+ --hop-Button-secondary-background-color-hover: var(--hop-neutral-surface-hover);
26
+ --hop-Button-secondary-background-color-pressed: var(--hop-neutral-surface-active);
27
+ --hop-Button-secondary-background-color-disabled: var(--hop-neutral-surface-disabled);
28
+ --hop-Button-secondary-border: 0.0625rem solid var(--hop-neutral-border-strong);
29
+ --hop-Button-secondary-border-hover: 0.0625rem solid var(--hop-neutral-border-strong);
30
+ --hop-Button-secondary-border-pressed: 0.0625rem solid var(--hop-neutral-border-active);
31
+ --hop-Button-secondary-border-disabled: 0;
32
+ --hop-Button-tertiary-color: var(--hop-neutral-text);
33
+ --hop-Button-tertiary-color-hover: var(--hop-neutral-text-hover);
34
+ --hop-Button-tertiary-color-pressed: var(--hop-neutral-text);
35
+ --hop-Button-tertiary-color-disabled: var(--hop-neutral-text-disabled);
36
+ --hop-Button-tertiary-background-color: var(--hop-neutral-surface);
37
+ --hop-Button-tertiary-background-color-hover: var(--hop-neutral-surface-hover);
38
+ --hop-Button-tertiary-background-color-pressed: var(--hop-neutral-surface-weak-active);
39
+ --hop-Button-tertiary-background-color-disabled: var(--hop-neutral-surface);
40
+ --hop-Button-tertiary-border: 0;
41
+ --hop-Button-tertiary-border-hover: 0;
42
+ --hop-Button-tertiary-border-pressed: 0;
43
+ --hop-Button-tertiary-border-disabled: 0;
44
+ --hop-Button-upsell-color: var(--hop-upsell-text);
45
+ --hop-Button-upsell-color-hover: var(--hop-upsell-text-hover);
46
+ --hop-Button-upsell-color-pressed: var(--hop-upsell-text-active);
47
+ --hop-Button-upsell-color-disabled: var(--hop-neutral-text-disabled);
48
+ --hop-Button-upsell-background-color: var(--hop-upsell-surface);
49
+ --hop-Button-upsell-background-color-hover: var(--hop-upsell-surface-hover);
50
+ --hop-Button-upsell-background-color-pressed: var(--hop-upsell-surface-active);
51
+ --hop-Button-upsell-background-color-disabled: var(--hop-neutral-surface-disabled);
52
+ --hop-Button-upsell-border: 0.0625rem solid var(--hop-upsell-surface);
53
+ --hop-Button-upsell-border-hover: 0.0625rem solid var(--hop-upsell-surface-hover);
54
+ --hop-Button-upsell-border-pressed: 0.0625rem solid var(--hop-upsell-border-active);
55
+ --hop-Button-upsell-border-disabled: 0;
56
+ --hop-Button-negative-color: var(--hop-danger-text-strong);
57
+ --hop-Button-negative-color-hover: var(--hop-danger-text-strong-hover);
58
+ --hop-Button-negative-color-pressed: var(--hop-danger-text-active);
59
+ --hop-Button-negative-color-disabled: var(--hop-neutral-text-disabled);
60
+ --hop-Button-negative-background-color: var(--hop-danger-surface-strong);
61
+ --hop-Button-negative-background-color-hover: var(--hop-danger-surface-hover);
62
+ --hop-Button-negative-background-color-pressed: var(--hop-danger-surface-active);
63
+ --hop-Button-negative-background-color-disabled: var(--hop-neutral-surface-disabled);
64
+ --hop-Button-negative-border: 0.0625rem solid var(--hop-danger-surface-strong);
65
+ --hop-Button-negative-border-hover: 0.0625rem solid var(--hop-danger-surface-hover);
66
+ --hop-Button-negative-border-pressed: 0.0625rem solid var(--hop-danger-border-active);
67
+ --hop-Button-negative-border-disabled: 0;
68
+ --inline-size: max-content;
69
+ --block-size: var(--hop-Button-md-height);
70
+ --background-color: var(--hop-primary-surface-strong);
71
+ --color: var(--hop-primary-text-strong);
72
+ --border: 0;
73
+ cursor: pointer;
74
+ display: grid;
75
+ grid-template-areas: "start-icon content end-icon";
76
+ grid-template-columns: auto min-content auto;
77
+ column-gap: var(--hop-space-inline-xs);
78
+ box-sizing: border-box;
79
+ position: relative;
80
+ padding: var(--hop-Button-padding);
81
+ border-radius: var(--hop-Button-border-radius);
82
+ outline: none;
83
+ outline-offset: 0.125rem;
84
+ transition:
85
+ color 0.2s cubic-bezier(0.22, 0.61, 0.36, 1),
86
+ background-color 0.2s cubic-bezier(0.22, 0.61, 0.36, 1),
87
+ border 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
88
+ inline-size: var(--inline-size);
89
+ block-size: var(--block-size);
90
+ background-color: var(--background-color);
91
+ color: var(--color);
92
+ border: var(--border);
93
+ align-items: center;
94
+ }
95
+ .hop-Button[data-disabled] {
96
+ cursor: not-allowed;
97
+ }
98
+ .hop-Button[data-focus-visible] {
99
+ outline: 0.125rem solid var(--hop-Button-focus-ring-color);
100
+ }
101
+ .hop-Button--fluid {
102
+ --inline-size: 100%;
103
+ }
104
+ .hop-Button--sm {
105
+ --block-size: var(--hop-Button-sm-height);
106
+ }
107
+ .hop-Button--primary {
108
+ --background-color: var(--hop-Button-primary-background-color);
109
+ --color: var(--hop-Button-primary-color);
110
+ --border: var(--hop-Button-primary-border);
111
+ }
112
+ .hop-Button--primary[data-disabled]:not([data-loading]) {
113
+ --background-color: var(--hop-Button-primary-background-color-disabled);
114
+ --color: var(--hop-Button-primary-color-disabled);
115
+ --border: var(--hop-Button-primary-border-disabled);
116
+ }
117
+ .hop-Button--primary[data-hovered] {
118
+ --background-color: var(--hop-Button-primary-background-color-hover);
119
+ --color: var(--hop-Button-primary-color-hover);
120
+ --border: var(--hop-Button-primary-border-hover);
121
+ }
122
+ .hop-Button--primary[data-pressed] {
123
+ --background-color: var(--hop-Button-primary-background-color-pressed);
124
+ --color: var(--hop-Button-primary-color-pressed);
125
+ --border: var(--hop-Button-primary-border-pressed);
126
+ }
127
+ .hop-Button--secondary {
128
+ --background-color: var(--hop-Button-secondary-background-color);
129
+ --color: var(--hop-Button-secondary-color);
130
+ --border: var(--hop-Button-secondary-border);
131
+ }
132
+ .hop-Button--secondary[data-disabled]:not([data-loading]) {
133
+ --background-color: var(--hop-Button-secondary-background-color-disabled);
134
+ --color: var(--hop-Button-secondary-color-disabled);
135
+ --border: var(--hop-Button-secondary-border-disabled);
136
+ }
137
+ .hop-Button--secondary[data-hovered] {
138
+ --background-color: var(--hop-Button-secondary-background-color-hover);
139
+ --color: var(--hop-Button-secondary-color-hover);
140
+ --border: var(--hop-Button-secondary-border-hover);
141
+ }
142
+ .hop-Button--secondary[data-pressed] {
143
+ --background-color: var(--hop-Button-secondary-background-color-pressed);
144
+ --color: var(--hop-Button-secondary-color-pressed);
145
+ --border: var(--hop-Button-secondary-border-pressed);
146
+ }
147
+ .hop-Button--tertiary {
148
+ --background-color: var(--hop-Button-tertiary-background-color);
149
+ --color: var(--hop-Button-tertiary-color);
150
+ --border: var(--hop-Button-tertiary-border);
151
+ }
152
+ .hop-Button--tertiary[data-disabled]:not([data-loading]) {
153
+ --background-color: var(--hop-Button-tertiary-background-color-disabled);
154
+ --color: var(--hop-Button-tertiary-color-disabled);
155
+ --border: var(--hop-Button-tertiary-border-disabled);
156
+ }
157
+ .hop-Button--tertiary[data-hovered] {
158
+ --background-color: var(--hop-Button-tertiary-background-color-hover);
159
+ --color: var(--hop-Button-tertiary-color-hover);
160
+ --border: var(--hop-Button-tertiary-border-hover);
161
+ }
162
+ .hop-Button--tertiary[data-pressed] {
163
+ --background-color: var(--hop-Button-tertiary-background-color-pressed);
164
+ --color: var(--hop-Button-tertiary-color-pressed);
165
+ --border: var(--hop-Button-tertiary-border-pressed);
166
+ }
167
+ .hop-Button--upsell {
168
+ --background-color: var(--hop-Button-upsell-background-color);
169
+ --color: var(--hop-Button-upsell-color);
170
+ --border: var(--hop-Button-upsell-border);
171
+ }
172
+ .hop-Button--upsell[data-disabled]:not([data-loading]) {
173
+ --background-color: var(--hop-Button-upsell-background-color-disabled);
174
+ --color: var(--hop-Button-upsell-color-disabled);
175
+ --border: var(--hop-Button-upsell-border-disabled);
176
+ }
177
+ .hop-Button--upsell[data-hovered] {
178
+ --background-color: var(--hop-Button-upsell-background-color-hover);
179
+ --color: var(--hop-Button-upsell-color-hover);
180
+ --border: var(--hop-Button-upsell-border-hover);
181
+ }
182
+ .hop-Button--upsell[data-pressed] {
183
+ --background-color: var(--hop-Button-upsell-background-color-pressed);
184
+ --color: var(--hop-Button-upsell-color-pressed);
185
+ --border: var(--hop-Button-upsell-border-pressed);
186
+ }
187
+ .hop-Button--negative {
188
+ --background-color: var(--hop-Button-negative-background-color);
189
+ --color: var(--hop-Button-negative-color);
190
+ --border: var(--hop-Button-negative-border);
191
+ }
192
+ .hop-Button--negative[data-disabled]:not([data-loading]) {
193
+ --background-color: var(--hop-Button-negative-background-color-disabled);
194
+ --color: var(--hop-Button-negative-color-disabled);
195
+ --border: var(--hop-Button-negative-border-disabled);
196
+ }
197
+ .hop-Button--negative[data-hovered] {
198
+ --background-color: var(--hop-Button-negative-background-color-hover);
199
+ --color: var(--hop-Button-negative-color-hover);
200
+ --border: var(--hop-Button-negative-border-hover);
201
+ }
202
+ .hop-Button--negative[data-pressed] {
203
+ --background-color: var(--hop-Button-negative-background-color-pressed);
204
+ --color: var(--hop-Button-negative-color-pressed);
205
+ --border: var(--hop-Button-negative-border-pressed);
206
+ }
207
+ .hop-Button__Spinner {
208
+ position: absolute;
209
+ justify-self: center;
210
+ color: var(--color);
211
+ }
212
+ .hop-Button__icon,
213
+ .hop-Button__icon-list {
214
+ grid-area: start-icon;
215
+ justify-self: end;
216
+ }
217
+ .hop-Button__text {
218
+ grid-area: content;
219
+ font-weight: var(--hop-font-weight-505);
220
+ overflow: visible;
221
+ text-wrap: nowrap;
222
+ user-select: none;
223
+ }
224
+ .hop-Button__end-icon,
225
+ .hop-Button__end-icon-list {
226
+ grid-area: end-icon;
227
+ }
228
+ .hop-Button[data-loading] > *:not(.hop-Button__Spinner) {
229
+ opacity: 0;
230
+ }
231
+
232
+ /* src/Text/src/Text.module.css */
233
+ .hop-Text {
234
+ --hop-Text-xs-font-size: var(--hop-body-xs-font-size);
235
+ --hop-Text-xs-font-family: var(--hop-body-xs-font-family);
236
+ --hop-Text-xs-font-weight: var(--hop-body-xs-font-weight);
237
+ --hop-Text-xs-line-height: var(--hop-body-xs-line-height);
238
+ --hop-Text-sm-font-size: var(--hop-body-sm-font-size);
239
+ --hop-Text-sm-font-family: var(--hop-body-sm-font-family);
240
+ --hop-Text-sm-font-weight: var(--hop-body-sm-font-weight);
241
+ --hop-Text-sm-line-height: var(--hop-body-sm-line-height);
242
+ --hop-Text-md-font-size: var(--hop-body-md-font-size);
243
+ --hop-Text-md-font-family: var(--hop-body-md-font-family);
244
+ --hop-Text-md-font-weight: var(--hop-body-md-font-weight);
245
+ --hop-Text-md-line-height: var(--hop-body-md-line-height);
246
+ --hop-Text-lg-font-size: var(--hop-body-lg-font-size);
247
+ --hop-Text-lg-font-family: var(--hop-body-lg-font-family);
248
+ --hop-Text-lg-font-weight: var(--hop-body-lg-font-weight);
249
+ --hop-Text-lg-line-height: var(--hop-body-lg-line-height);
250
+ --hop-Text-xl-font-size: var(--hop-body-xl-font-size);
251
+ --hop-Text-xl-font-family: var(--hop-body-xl-font-family);
252
+ --hop-Text-xl-font-weight: var(--hop-body-xl-font-weight);
253
+ --hop-Text-xl-line-height: var(--hop-body-xl-line-height);
254
+ --hop-Text-2xl-font-size: var(--hop-body-2xl-font-size);
255
+ --hop-Text-2xl-font-family: var(--hop-body-2xl-font-family);
256
+ --hop-Text-2xl-font-weight: var(--hop-body-2xl-font-weight);
257
+ --hop-Text-2xl-line-height: var(--hop-body-2xl-line-height);
258
+ --hop-Text-inherit-size-font-size: inherit;
259
+ --hop-Text-inherit-size-font-family: inherit;
260
+ --hop-Text-inherit-size-font-weight: inherit;
261
+ --hop-Text-inherit-size-line-height: inherit;
262
+ }
263
+ :where(.hop-Text) {
264
+ font-size: var(--font-size);
265
+ font-family: var(--font-family);
266
+ font-weight: var(--font-weight);
267
+ line-height: var(--line-height);
268
+ }
269
+ :where(.hop-Text--xs) {
270
+ --font-size: var(--hop-Text-xs-font-size);
271
+ --font-family: var(--hop-Text-xs-font-family);
272
+ --font-weight: var(--hop-Text-xs-font-weight);
273
+ --line-height: var(--hop-Text-xs-line-height);
274
+ }
275
+ :where(.hop-Text--sm) {
276
+ --font-size: var(--hop-Text-sm-font-size);
277
+ --font-family: var(--hop-Text-sm-font-family);
278
+ --font-weight: var(--hop-Text-sm-font-weight);
279
+ --line-height: var(--hop-Text-sm-line-height);
280
+ }
281
+ :where(.hop-Text--md) {
282
+ --font-size: var(--hop-Text-md-font-size);
283
+ --font-family: var(--hop-Text-md-font-family);
284
+ --font-weight: var(--hop-Text-md-font-weight);
285
+ --line-height: var(--hop-Text-md-line-height);
286
+ }
287
+ :where(.hop-Text--lg) {
288
+ --font-size: var(--hop-Text-lg-font-size);
289
+ --font-family: var(--hop-Text-lg-font-family);
290
+ --font-weight: var(--hop-Text-lg-font-weight);
291
+ --line-height: var(--hop-Text-lg-line-height);
292
+ }
293
+ :where(.hop-Text--xl) {
294
+ --font-size: var(--hop-Text-xl-font-size);
295
+ --font-family: var(--hop-Text-xl-font-family);
296
+ --font-weight: var(--hop-Text-xl-font-weight);
297
+ --line-height: var(--hop-Text-xl-line-height);
298
+ }
299
+ :where(.hop-Text--2xl) {
300
+ --font-size: var(--hop-Text-2xl-font-size);
301
+ --font-family: var(--hop-Text-2xl-font-family);
302
+ --font-weight: var(--hop-Text-2xl-font-weight);
303
+ --line-height: var(--hop-Text-2xl-line-height);
304
+ }
305
+ :where(.hop-Text--inherit) {
306
+ --font-size: var(--hop-Text-inherit-size-font-size);
307
+ --font-family: var(--hop-Text-inherit-size-font-family);
308
+ --font-weight: var(--hop-Text-inherit-size-font-weight);
309
+ --line-height: var(--hop-Text-inherit-size-line-height);
310
+ }
311
+
312
+ /* src/IconList/src/IconList.module.css */
313
+ .hop-IconList {
314
+ --hop-IconList-gap: var(--hop-space-inline-xs);
315
+ box-sizing: border-box;
316
+ display: flex;
317
+ flex-flow: wrap;
318
+ gap: var(--hop-IconList-gap);
319
+ }
320
+
321
+ /* src/Spinner/src/Spinner.module.css */
322
+ @keyframes spin {
323
+ 0% {
324
+ transform: rotate(0deg);
325
+ }
326
+ 100% {
327
+ transform: rotate(360deg);
328
+ }
329
+ }
330
+ .hop-Spinner {
331
+ --hop-Spinner-border-radius: var(--hop-shape-circle);
332
+ --hop-Spinner-sm-wheel-size: 1rem;
333
+ --hop-Spinner-md-wheel-size: 1.25rem;
334
+ --hop-Spinner-lg-wheel-size: 1.5rem;
335
+ --hop-Spinner-track-width: 0.125rem;
336
+ --hop-Spinner-track-opacity: 0.2;
337
+ --hop-Spinner-track-border: var(--hop-Spinner-track-width) solid currentcolor;
338
+ --hop-Spinner-fill-animation: spin .8s infinite linear;
339
+ --hop-Spinner-fill-animation-reduced-motion-duration: 2s;
340
+ --hop-Spinner-fill-border: var(--hop-Spinner-track-width) solid transparent;
341
+ --hop-Spinner-fill-border-inline-start: var(--hop-Spinner-track-width) solid currentcolor;
342
+ --hop-Spinner-label-margin-inline-start: var(--hop-space-inline-sm);
343
+ box-sizing: border-box;
344
+ display: grid;
345
+ grid-template-areas: "spinner label";
346
+ grid-template-columns: min-content auto;
347
+ align-items: center;
348
+ }
349
+ .hop-Spinner--sm {
350
+ --width: var(--hop-Spinner-sm-wheel-size);
351
+ --height: var(--hop-Spinner-sm-wheel-size);
352
+ }
353
+ .hop-Spinner--md {
354
+ --width: var(--hop-Spinner-md-wheel-size);
355
+ --height: var(--hop-Spinner-md-wheel-size);
356
+ }
357
+ .hop-Spinner--lg {
358
+ --width: var(--hop-Spinner-lg-wheel-size);
359
+ --height: var(--hop-Spinner-lg-wheel-size);
360
+ }
361
+ .hop-Spinner__track {
362
+ box-sizing: border-box;
363
+ inline-size: var(--width, --hop-Spinner-md-wheel-size);
364
+ block-size: var(--height, --hop-Spinner-md-wheel-size);
365
+ border-radius: var(--hop-Spinner-border-radius);
366
+ border: var(--hop-Spinner-track-border);
367
+ opacity: var(--hop-Spinner-track-opacity);
368
+ grid-area: spinner;
369
+ }
370
+ .hop-Spinner__fill {
371
+ box-sizing: border-box;
372
+ inline-size: var(--width, --hop-Spinner-md-wheel-size);
373
+ block-size: var(--height, --hop-Spinner-md-wheel-size);
374
+ border-radius: var(--hop-Spinner-border-radius);
375
+ border: var( --hop-Spinner-fill-border);
376
+ border-inline-start: var(--hop-Spinner-fill-border-inline-start);
377
+ grid-area: spinner;
378
+ animation: var(--hop-Spinner-fill-animation);
379
+ }
380
+ @media (prefers-reduced-motion: reduce) {
381
+ .hop-Spinner__fill {
382
+ animation-duration: var(--hop-Spinner-fill-animation-reduced-motion-duration);
383
+ }
384
+ }
385
+ .hop-Spinner__label {
386
+ grid-area: label;
387
+ margin-inline-start: var(--hop-Spinner-label-margin-inline-start);
388
+ }
389
+
390
+ /* src/Label/src/Label.module.css */
391
+ .hop-Label {
392
+ --hop-Label-xs-font-size: var(--hop-body-xs-font-size);
393
+ --hop-Label-xs-font-family: var(--hop-body-xs-font-family);
394
+ --hop-Label-xs-font-weight: var(--hop-body-xs-font-weight);
395
+ --hop-Label-xs-line-height: var(--hop-body-xs-line-height);
396
+ --hop-Label-sm-font-size: var(--hop-body-sm-font-size);
397
+ --hop-Label-sm-font-family: var(--hop-body-sm-font-family);
398
+ --hop-Label-sm-font-weight: var(--hop-body-sm-font-weight);
399
+ --hop-Label-sm-line-height: var(--hop-body-sm-line-height);
400
+ --hop-Label-md-font-size: var(--hop-body-md-font-size);
401
+ --hop-Label-md-font-family: var(--hop-body-md-font-family);
402
+ --hop-Label-md-font-weight: var(--hop-body-md-font-weight);
403
+ --hop-Label-md-line-height: var(--hop-body-md-line-height);
404
+ --hop-Label-lg-font-size: var(--hop-body-lg-font-size);
405
+ --hop-Label-lg-font-family: var(--hop-body-lg-font-family);
406
+ --hop-Label-lg-font-weight: var(--hop-body-lg-font-weight);
407
+ --hop-Label-lg-line-height: var(--hop-body-lg-line-height);
408
+ --hop-Label-xl-font-size: var(--hop-body-xl-font-size);
409
+ --hop-Label-xl-font-family: var(--hop-body-xl-font-family);
410
+ --hop-Label-xl-font-weight: var(--hop-body-xl-font-weight);
411
+ --hop-Label-xl-line-height: var(--hop-body-xl-line-height);
412
+ --hop-Label-2xl-font-size: var(--hop-body-2xl-font-size);
413
+ --hop-Label-2xl-font-family: var(--hop-body-2xl-font-family);
414
+ --hop-Label-2xl-font-weight: var(--hop-body-2xl-font-weight);
415
+ --hop-Label-2xl-line-height: var(--hop-body-2xl-line-height);
416
+ --hop-Label-inherit-size-font-size: inherit;
417
+ --hop-Label-inherit-size-font-family: inherit;
418
+ --hop-Label-inherit-size-font-weight: inherit;
419
+ --hop-Label-inherit-size-line-height: inherit;
420
+ }
421
+ :where(.hop-Label) {
422
+ font-size: var(--font-size, --hop-Label-md-font-size);
423
+ font-family: var(--font-family, --hop-Label-md-font-family);
424
+ font-weight: var(--font-weight, --hop-Label-md-font-weight);
425
+ line-height: var(--line-height, --hop-Label-md-line-height);
426
+ }
427
+ :where(.hop-Label--xs) {
428
+ --font-size: var(--hop-Label-xs-font-size);
429
+ --font-family: var(--hop-Label-xs-font-family);
430
+ --font-weight: var(--hop-Label-xs-font-weight);
431
+ --line-height: var(--hop-Label-xs-line-height);
432
+ }
433
+ :where(.hop-Label--sm) {
434
+ --font-size: var(--hop-Label-sm-font-size);
435
+ --font-family: var(--hop-Label-sm-font-family);
436
+ --font-weight: var(--hop-Label-sm-font-weight);
437
+ --line-height: var(--hop-Label-sm-line-height);
438
+ }
439
+ :where(.hop-Label--md) {
440
+ --font-size: var(--hop-Label-md-font-size);
441
+ --font-family: var(--hop-Label-md-font-family);
442
+ --font-weight: var(--hop-Label-md-font-weight);
443
+ --line-height: var(--hop-Label-md-line-height);
444
+ }
445
+ :where(.hop-Label--lg) {
446
+ --font-size: var(--hop-Label-lg-font-size);
447
+ --font-family: var(--hop-Label-lg-font-family);
448
+ --font-weight: var(--hop-Label-lg-font-weight);
449
+ --line-height: var(--hop-Label-lg-line-height);
450
+ }
451
+ :where(.hop-Label--xl) {
452
+ --font-size: var(--hop-Label-xl-font-size);
453
+ --font-family: var(--hop-Label-xl-font-family);
454
+ --font-weight: var(--hop-Label-xl-font-weight);
455
+ --line-height: var(--hop-Label-xl-line-height);
456
+ }
457
+ :where(.hop-Label--2xl) {
458
+ --font-size: var(--hop-Label-2xl-font-size);
459
+ --font-family: var(--hop-Label-2xl-font-family);
460
+ --font-weight: var(--hop-Label-2xl-font-weight);
461
+ --line-height: var(--hop-Label-2xl-line-height);
462
+ }
463
+ :where(.hop-Label--inherit) {
464
+ --font-size: var(--hop-Label-inherit-size-font-size);
465
+ --font-family: var(--hop-Label-inherit-size-font-family);
466
+ --font-weight: var(--hop-Label-inherit-size-font-weight);
467
+ --line-height: var(--hop-Label-inherit-size-line-height);
468
+ }
@@ -0,0 +1,5 @@
1
+ export { Button, ButtonProps, GlobalButtonCssSelector } from './Button.js';
2
+ export { ButtonContext } from './ButtonContext.js';
3
+ import 'react';
4
+ import '@hopper-ui/styled-system';
5
+ import 'react-aria-components';
@@ -0,0 +1,14 @@
1
+ export { _Button as Button, GlobalButtonCssSelector } from '../../chunk-Z34Z6LYX.js';
2
+ import '../../chunk-ZWU6DRRZ.js';
3
+ import '../../chunk-GXUPEV64.js';
4
+ import '../../chunk-JGYEQS4H.js';
5
+ import '../../chunk-65JPI4FL.js';
6
+ import '../../chunk-4ZYV2XLW.js';
7
+ import '../../chunk-TNWWLZEQ.js';
8
+ import '../../chunk-OE5BLFZI.js';
9
+ export { ButtonContext } from '../../chunk-WMTWFKKP.js';
10
+ import '../../chunk-M36KANKC.js';
11
+ import '../../chunk-DHVVYSLB.js';
12
+ import '../../chunk-CMJUZLSA.js';
13
+ import '../../chunk-KVDXQMWI.js';
14
+ import '../../chunk-HVKOIMMW.js';
@@ -0,0 +1,7 @@
1
+ import { createContext } from 'react';
2
+
3
+ // src/Spinner/src/SpinnerContext.ts
4
+ var SpinnerContext = createContext({});
5
+ SpinnerContext.displayName = "SpinnerContext";
6
+
7
+ export { SpinnerContext };
@@ -0,0 +1,14 @@
1
+ import clsx from 'clsx';
2
+ import { composeRenderProps } from 'react-aria-components';
3
+
4
+ // src/utils/src/composeClassnameRenderProps.ts
5
+ function composeClassnameRenderProps(className, ...classes) {
6
+ return composeRenderProps(className, (prev) => {
7
+ return clsx(
8
+ prev,
9
+ ...classes
10
+ );
11
+ });
12
+ }
13
+
14
+ export { composeClassnameRenderProps };
@@ -0,0 +1,53 @@
1
+ import { SlotProvider } from './chunk-M36KANKC.js';
2
+ import { IconListContext } from './chunk-DHVVYSLB.js';
3
+ import { useContextProps } from 'react-aria-components';
4
+ import { forwardRef } from 'react';
5
+ import clsx from 'clsx';
6
+ import { useStyledSystem } from '@hopper-ui/styled-system';
7
+ import { IconContext } from '@hopper-ui/icons';
8
+ import { jsx } from 'react/jsx-runtime';
9
+
10
+ // src/IconList/src/IconList.module.css
11
+ var IconList_default = {};
12
+ var GlobalIconListCssSelector = "hop-IconList";
13
+ var DefaultIconListSlot = "icon";
14
+ function IconList(props, ref) {
15
+ [props, ref] = useContextProps({ ...props, slot: props.slot || DefaultIconListSlot }, ref, IconListContext);
16
+ const { stylingProps, ...ownProps } = useStyledSystem(props);
17
+ const { children, style, className, slot, size, ...otherProps } = ownProps;
18
+ const classNames = clsx(
19
+ className,
20
+ GlobalIconListCssSelector,
21
+ IconList_default["hop-IconList"],
22
+ stylingProps.className
23
+ );
24
+ const mergedStyles = {
25
+ ...stylingProps.style,
26
+ ...style
27
+ };
28
+ return /* @__PURE__ */ jsx(
29
+ "span",
30
+ {
31
+ ...otherProps,
32
+ ref,
33
+ className: classNames,
34
+ style: mergedStyles,
35
+ slot: slot != null ? slot : void 0,
36
+ children: /* @__PURE__ */ jsx(
37
+ SlotProvider,
38
+ {
39
+ values: [
40
+ [IconContext, {
41
+ size
42
+ }]
43
+ ],
44
+ children
45
+ }
46
+ )
47
+ }
48
+ );
49
+ }
50
+ var _IconList = forwardRef(IconList);
51
+ _IconList.displayName = "IconList";
52
+
53
+ export { GlobalIconListCssSelector, _IconList };
@@ -0,0 +1,46 @@
1
+ import { cssModule } from './chunk-KVDXQMWI.js';
2
+ import { LabelContext } from './chunk-HVKOIMMW.js';
3
+ import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
4
+ import { forwardRef } from 'react';
5
+ import { useContextProps, Label as Label$1 } from 'react-aria-components';
6
+ import clsx from 'clsx';
7
+ import { jsx } from 'react/jsx-runtime';
8
+
9
+ // src/Label/src/Label.module.css
10
+ var Label_default = {};
11
+ var GlobalLabelCssSelector = "hop-Label";
12
+ var DefaultLabelSlot = "label";
13
+ function Label(props, ref) {
14
+ [props, ref] = useContextProps({ ...props, slot: props.slot || DefaultLabelSlot }, ref, LabelContext);
15
+ const { stylingProps, ...ownProps } = useStyledSystem(props);
16
+ const { className, size: sizeProp, children, style, ...otherProps } = ownProps;
17
+ const size = useResponsiveValue(sizeProp != null ? sizeProp : "md");
18
+ const classNames = clsx(
19
+ className,
20
+ GlobalLabelCssSelector,
21
+ cssModule(
22
+ Label_default,
23
+ "hop-Label",
24
+ size
25
+ ),
26
+ stylingProps.className
27
+ );
28
+ const mergedStyles = {
29
+ ...stylingProps.style,
30
+ ...style
31
+ };
32
+ return /* @__PURE__ */ jsx(
33
+ Label$1,
34
+ {
35
+ ...otherProps,
36
+ ref,
37
+ className: classNames,
38
+ style: mergedStyles,
39
+ children
40
+ }
41
+ );
42
+ }
43
+ var _Label = forwardRef(Label);
44
+ _Label.displayName = "Label";
45
+
46
+ export { GlobalLabelCssSelector, _Label };
@@ -0,0 +1,7 @@
1
+ import { createContext } from 'react';
2
+
3
+ // src/IconList/src/IconListContext.ts
4
+ var IconListContext = createContext({});
5
+ IconListContext.displayName = "IconListContext";
6
+
7
+ export { IconListContext };
@@ -0,0 +1,24 @@
1
+ import { useLocalizedStringFormatter } from 'react-aria';
2
+
3
+ // src/intl/src/useLocalizedString.tsx
4
+
5
+ // src/intl/intl/en-US.json
6
+ var en_US_default = {
7
+ "button.pending": "pending"
8
+ };
9
+
10
+ // src/intl/intl/fr-CA.json
11
+ var fr_CA_default = {
12
+ "button.pending": "en attente"
13
+ };
14
+
15
+ // src/intl/src/useLocalizedString.tsx
16
+ var Resources = {
17
+ "en-US": en_US_default,
18
+ "fr-CA": fr_CA_default
19
+ };
20
+ function useLocalizedString() {
21
+ return useLocalizedStringFormatter(Resources, "@hopper-ui/components");
22
+ }
23
+
24
+ export { useLocalizedString };
@@ -0,0 +1,7 @@
1
+ import { createContext } from 'react';
2
+
3
+ // src/Label/src/LabelContext.ts
4
+ var LabelContext = createContext({});
5
+ LabelContext.displayName = "LabelContext";
6
+
7
+ export { LabelContext };