@oxyhq/bloom 0.9.1 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/lib/commonjs/admonition/index.js +2 -2
  2. package/lib/commonjs/admonition/index.js.map +1 -1
  3. package/lib/commonjs/alert-dialog/AlertDialog.js +5 -5
  4. package/lib/commonjs/alert-dialog/AlertDialog.js.map +1 -1
  5. package/lib/commonjs/button/Button.js +71 -12
  6. package/lib/commonjs/button/Button.js.map +1 -1
  7. package/lib/commonjs/button/Button.web.js +431 -0
  8. package/lib/commonjs/button/Button.web.js.map +1 -0
  9. package/lib/commonjs/button/index.js +25 -1
  10. package/lib/commonjs/button/index.js.map +1 -1
  11. package/lib/commonjs/button/index.web.js +67 -0
  12. package/lib/commonjs/button/index.web.js.map +1 -0
  13. package/lib/commonjs/index.js +70 -70
  14. package/lib/commonjs/index.js.map +1 -1
  15. package/lib/commonjs/index.web.js +84 -84
  16. package/lib/commonjs/index.web.js.map +1 -1
  17. package/lib/commonjs/menu/index.js +2 -2
  18. package/lib/commonjs/menu/index.js.map +1 -1
  19. package/lib/commonjs/search-input/index.js +2 -2
  20. package/lib/commonjs/search-input/index.js.map +1 -1
  21. package/lib/commonjs/select/index.js +4 -4
  22. package/lib/commonjs/select/index.js.map +1 -1
  23. package/lib/module/admonition/index.js +1 -1
  24. package/lib/module/admonition/index.js.map +1 -1
  25. package/lib/module/alert-dialog/AlertDialog.js +1 -1
  26. package/lib/module/alert-dialog/AlertDialog.js.map +1 -1
  27. package/lib/module/button/Button.js +70 -11
  28. package/lib/module/button/Button.js.map +1 -1
  29. package/lib/module/button/Button.web.js +426 -0
  30. package/lib/module/button/Button.web.js.map +1 -0
  31. package/lib/module/button/index.js +1 -1
  32. package/lib/module/button/index.js.map +1 -1
  33. package/lib/module/button/index.web.js +17 -0
  34. package/lib/module/button/index.web.js.map +1 -0
  35. package/lib/module/index.js +1 -1
  36. package/lib/module/index.js.map +1 -1
  37. package/lib/module/index.web.js +1 -1
  38. package/lib/module/index.web.js.map +1 -1
  39. package/lib/module/menu/index.js +1 -1
  40. package/lib/module/menu/index.js.map +1 -1
  41. package/lib/module/search-input/index.js +1 -1
  42. package/lib/module/search-input/index.js.map +1 -1
  43. package/lib/module/select/index.js +1 -1
  44. package/lib/module/select/index.js.map +1 -1
  45. package/lib/typescript/commonjs/button/Button.d.ts +3 -0
  46. package/lib/typescript/commonjs/button/Button.d.ts.map +1 -1
  47. package/lib/typescript/commonjs/button/Button.web.d.ts +14 -0
  48. package/lib/typescript/commonjs/button/Button.web.d.ts.map +1 -0
  49. package/lib/typescript/commonjs/button/index.d.ts +1 -1
  50. package/lib/typescript/commonjs/button/index.d.ts.map +1 -1
  51. package/lib/typescript/commonjs/button/index.web.d.ts +3 -0
  52. package/lib/typescript/commonjs/button/index.web.d.ts.map +1 -0
  53. package/lib/typescript/commonjs/button/types.d.ts +72 -2
  54. package/lib/typescript/commonjs/button/types.d.ts.map +1 -1
  55. package/lib/typescript/commonjs/index.web.d.ts +1 -1
  56. package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
  57. package/lib/typescript/module/button/Button.d.ts +3 -0
  58. package/lib/typescript/module/button/Button.d.ts.map +1 -1
  59. package/lib/typescript/module/button/Button.web.d.ts +14 -0
  60. package/lib/typescript/module/button/Button.web.d.ts.map +1 -0
  61. package/lib/typescript/module/button/index.d.ts +1 -1
  62. package/lib/typescript/module/button/index.d.ts.map +1 -1
  63. package/lib/typescript/module/button/index.web.d.ts +3 -0
  64. package/lib/typescript/module/button/index.web.d.ts.map +1 -0
  65. package/lib/typescript/module/button/types.d.ts +72 -2
  66. package/lib/typescript/module/button/types.d.ts.map +1 -1
  67. package/lib/typescript/module/index.web.d.ts +1 -1
  68. package/lib/typescript/module/index.web.d.ts.map +1 -1
  69. package/package.json +8 -1
  70. package/src/__tests__/Button.web.test.tsx +201 -0
  71. package/src/button/Button.tsx +77 -12
  72. package/src/button/Button.web.tsx +472 -0
  73. package/src/button/index.ts +4 -0
  74. package/src/button/index.web.ts +27 -0
  75. package/src/button/types.ts +98 -2
  76. package/src/index.web.ts +1 -1
@@ -0,0 +1,431 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.TextButton = exports.SecondaryButton = exports.PrimaryButton = exports.OutlineButton = exports.LinkButton = exports.InverseButton = exports.IconButton = exports.GhostButton = exports.DestructiveButton = exports.Button = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _useTheme = require("../theme/use-theme.js");
9
+ var _SpinnerIconWeb = require("../loading/SpinnerIcon.web.js");
10
+ var _jsxRuntime = require("react/jsx-runtime");
11
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
12
+ // ---------------------------------------------------------------------------
13
+ // Geometry — mirrors the native (`Button.tsx`) impl exactly so the web button
14
+ // is pixel-consistent with native. Sizes below are the resolved primitives;
15
+ // the shadcn-style aliases (`sm | md | lg | icon`) are normalized first.
16
+ // ---------------------------------------------------------------------------
17
+
18
+ const SIZE_CONFIG = {
19
+ small: {
20
+ paddingVertical: 6,
21
+ paddingHorizontal: 12,
22
+ fontSize: 14,
23
+ minHeight: 32
24
+ },
25
+ medium: {
26
+ paddingVertical: 8,
27
+ paddingHorizontal: 16,
28
+ fontSize: 15,
29
+ minHeight: 40
30
+ },
31
+ large: {
32
+ paddingVertical: 12,
33
+ paddingHorizontal: 20,
34
+ fontSize: 16,
35
+ minHeight: 48
36
+ }
37
+ };
38
+ const SIZE_ALIAS = {
39
+ small: 'small',
40
+ medium: 'medium',
41
+ large: 'large',
42
+ sm: 'small',
43
+ md: 'medium',
44
+ lg: 'large',
45
+ icon: 'medium'
46
+ };
47
+
48
+ // Fully-rounded (pill/capsule) corner radius — large enough to stay a perfect
49
+ // capsule at any button height. Mirrors native `PILL_RADIUS` so web and native
50
+ // produce the SAME fully-rounded shape. The icon variant reuses it too: a square
51
+ // button with this radius renders as a perfect circle.
52
+ const PILL_RADIUS = 999;
53
+ const ICON_RADIUS = PILL_RADIUS;
54
+ const PRESS_SCALE = 0.97;
55
+
56
+ /** Variants that get a tactile press-scale (matches native `SCALE_VARIANTS`). */
57
+ const SCALE_VARIANTS = new Set(['primary', 'secondary', 'inverse', 'destructive']);
58
+
59
+ // ---------------------------------------------------------------------------
60
+ // Per-state CSS injection
61
+ //
62
+ // Inline styles cannot express `:hover` / `:focus-visible` / `:active` /
63
+ // `:disabled`, and the keyboard-focus ring MUST be a `:focus-visible` rule
64
+ // (not always-on) for correct mouse-vs-keyboard behavior. We inject one static
65
+ // stylesheet (keyed by id, once) that defines the interaction behavior for the
66
+ // base `bloom-btn` class; per-instance resolved colors stay inline.
67
+ // ---------------------------------------------------------------------------
68
+
69
+ const STYLE_ID = 'bloom-button-web-css';
70
+
71
+ /**
72
+ * The focus ring color is read from a CSS custom property the component sets
73
+ * inline per-instance (`--bloom-btn-ring`), so the static rule can theme itself
74
+ * from the resolved token without a per-instance stylesheet.
75
+ */
76
+ const BLOOM_BUTTON_CSS = `
77
+ .bloom-btn {
78
+ appearance: none;
79
+ -webkit-appearance: none;
80
+ box-sizing: border-box;
81
+ display: inline-flex;
82
+ align-items: center;
83
+ justify-content: center;
84
+ flex-direction: row;
85
+ gap: 8px;
86
+ position: relative;
87
+ margin: 0;
88
+ border: none;
89
+ background: transparent;
90
+ font-family: inherit;
91
+ text-decoration: none;
92
+ cursor: pointer;
93
+ user-select: none;
94
+ outline: none;
95
+ transition: opacity 120ms ease, transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
96
+ }
97
+ .bloom-btn:disabled,
98
+ .bloom-btn[aria-disabled="true"] {
99
+ cursor: default;
100
+ opacity: 0.5;
101
+ }
102
+ .bloom-btn:not(:disabled):not([aria-disabled="true"]):hover {
103
+ opacity: 0.9;
104
+ }
105
+ .bloom-btn:not(:disabled):not([aria-disabled="true"]):active {
106
+ transform: scale(var(--bloom-btn-press-scale, 1));
107
+ }
108
+ .bloom-btn:focus-visible {
109
+ outline: 2px solid var(--bloom-btn-ring, currentColor);
110
+ outline-offset: 2px;
111
+ }
112
+ .bloom-btn--link:not(:disabled):not([aria-disabled="true"]):hover {
113
+ opacity: 1;
114
+ text-decoration: underline;
115
+ }
116
+ `;
117
+ function useButtonCss() {
118
+ (0, _react.useEffect)(() => {
119
+ if (typeof document === 'undefined') return;
120
+ if (document.getElementById(STYLE_ID)) return;
121
+ const style = document.createElement('style');
122
+ style.id = STYLE_ID;
123
+ style.textContent = BLOOM_BUTTON_CSS;
124
+ document.head.appendChild(style);
125
+ }, []);
126
+ }
127
+
128
+ // ---------------------------------------------------------------------------
129
+ // Variant styling — all colors come from the SAME Bloom theme tokens native
130
+ // uses, so primary/secondary/etc. look identical across platforms. The added
131
+ // web variants (`outline | link | destructive`) are styled from those tokens
132
+ // too (no new palette).
133
+ // ---------------------------------------------------------------------------
134
+
135
+ function resolveVariantStyle(variant, size, theme) {
136
+ const c = theme.colors;
137
+ const sizeConfig = SIZE_CONFIG[size];
138
+ switch (variant) {
139
+ case 'primary':
140
+ return {
141
+ container: {
142
+ backgroundColor: c.primary,
143
+ borderRadius: PILL_RADIUS
144
+ },
145
+ textColor: c.primaryForeground,
146
+ ringColor: c.primary
147
+ };
148
+ case 'destructive':
149
+ return {
150
+ container: {
151
+ backgroundColor: c.negative,
152
+ borderRadius: PILL_RADIUS
153
+ },
154
+ textColor: c.negativeForeground,
155
+ ringColor: c.negative
156
+ };
157
+ case 'inverse':
158
+ return {
159
+ container: {
160
+ backgroundColor: '#FFFFFF',
161
+ borderRadius: PILL_RADIUS
162
+ },
163
+ textColor: '#000000',
164
+ ringColor: c.primary
165
+ };
166
+ case 'secondary':
167
+ case 'outline':
168
+ return {
169
+ container: {
170
+ backgroundColor: 'transparent',
171
+ borderWidth: 1,
172
+ borderStyle: 'solid',
173
+ borderColor: c.border,
174
+ borderRadius: PILL_RADIUS
175
+ },
176
+ textColor: c.text,
177
+ ringColor: c.primary
178
+ };
179
+ case 'ghost':
180
+ return {
181
+ container: {
182
+ backgroundColor: 'transparent',
183
+ borderRadius: PILL_RADIUS
184
+ },
185
+ textColor: c.primary,
186
+ ringColor: c.primary
187
+ };
188
+ case 'icon':
189
+ return {
190
+ container: {
191
+ backgroundColor: c.background,
192
+ borderWidth: 1,
193
+ borderStyle: 'solid',
194
+ borderColor: c.border,
195
+ borderRadius: ICON_RADIUS,
196
+ padding: 8,
197
+ width: sizeConfig.minHeight,
198
+ height: sizeConfig.minHeight
199
+ },
200
+ textColor: c.text,
201
+ ringColor: c.primary
202
+ };
203
+ case 'text':
204
+ case 'link':
205
+ default:
206
+ return {
207
+ container: {
208
+ backgroundColor: 'transparent',
209
+ borderRadius: PILL_RADIUS
210
+ },
211
+ textColor: c.primary,
212
+ ringColor: c.primary
213
+ };
214
+ }
215
+ }
216
+
217
+ // ---------------------------------------------------------------------------
218
+ // Component
219
+ // ---------------------------------------------------------------------------
220
+
221
+ const ButtonWebComponent = ({
222
+ onPress,
223
+ onClick,
224
+ children,
225
+ disabled = false,
226
+ variant = 'primary',
227
+ size: sizeProp = 'medium',
228
+ style,
229
+ icon,
230
+ iconPosition = 'left',
231
+ loading = false,
232
+ loadingColor,
233
+ accessibilityLabel,
234
+ 'aria-label': ariaLabelProp,
235
+ accessibilityHint,
236
+ testID,
237
+ className,
238
+ type = 'button',
239
+ asChild = false,
240
+ id,
241
+ name,
242
+ value,
243
+ title,
244
+ autoFocus,
245
+ tabIndex,
246
+ fullWidth = false
247
+ }) => {
248
+ useButtonCss();
249
+ const theme = (0, _useTheme.useTheme)();
250
+ const reactId = (0, _react.useId)();
251
+ const resolvedId = id ?? `bloom-btn-${reactId}`;
252
+
253
+ // `size="icon"` shorthand also selects the icon variant unless the caller
254
+ // explicitly picked one — mirrors native + shadcn behavior.
255
+ const resolvedVariant = sizeProp === 'icon' && variant === 'primary' ? 'icon' : variant;
256
+ const size = SIZE_ALIAS[sizeProp];
257
+ const isIcon = resolvedVariant === 'icon';
258
+ const isInteractionBlocked = disabled || loading;
259
+ const variantStyle = (0, _react.useMemo)(() => resolveVariantStyle(resolvedVariant, size, theme), [resolvedVariant, size, theme]);
260
+ const sizeConfig = SIZE_CONFIG[size];
261
+ const containerStyle = (0, _react.useMemo)(() => {
262
+ const base = {
263
+ fontSize: sizeConfig.fontSize,
264
+ fontWeight: 'bold',
265
+ color: variantStyle.textColor,
266
+ width: fullWidth ? '100%' : undefined,
267
+ // CSS custom props consumed by the static stylesheet.
268
+ ['--bloom-btn-ring']: variantStyle.ringColor,
269
+ ['--bloom-btn-press-scale']: SCALE_VARIANTS.has(resolvedVariant) ? PRESS_SCALE : 1,
270
+ ...variantStyle.container
271
+ };
272
+ if (!isIcon) {
273
+ base.paddingTop = sizeConfig.paddingVertical;
274
+ base.paddingBottom = sizeConfig.paddingVertical;
275
+ base.paddingLeft = sizeConfig.paddingHorizontal;
276
+ base.paddingRight = sizeConfig.paddingHorizontal;
277
+ base.minHeight = sizeConfig.minHeight;
278
+ }
279
+ if (resolvedVariant === 'text' || resolvedVariant === 'link') {
280
+ base.paddingTop = 4;
281
+ base.paddingBottom = 4;
282
+ base.paddingLeft = 8;
283
+ base.paddingRight = 8;
284
+ base.minHeight = undefined;
285
+ }
286
+ return base;
287
+ }, [sizeConfig, variantStyle, fullWidth, isIcon, resolvedVariant]);
288
+ const handleClick = (0, _react.useCallback)(event => {
289
+ if (isInteractionBlocked) {
290
+ event.preventDefault();
291
+ return;
292
+ }
293
+ onClick?.(event);
294
+ onPress?.();
295
+ }, [isInteractionBlocked, onClick, onPress]);
296
+ const ariaLabel = ariaLabelProp ?? accessibilityLabel;
297
+ const composedClassName = ['bloom-btn'].concat(resolvedVariant === 'link' ? ['bloom-btn--link'] : []).concat(className ? [className] : []).join(' ');
298
+ const spinnerColor = loadingColor ?? variantStyle.textColor;
299
+ const content = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
300
+ children: [iconPosition === 'left' && icon, children != null && (typeof children === 'string' || typeof children === 'number' ? /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
301
+ children: children
302
+ }) : children), iconPosition === 'right' && icon]
303
+ });
304
+ const body = loading ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
305
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
306
+ "aria-hidden": "true",
307
+ style: {
308
+ display: 'inline-flex',
309
+ alignItems: 'center',
310
+ justifyContent: 'center',
311
+ gap: 8,
312
+ opacity: 0,
313
+ pointerEvents: 'none'
314
+ },
315
+ children: content
316
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
317
+ "aria-hidden": "true",
318
+ style: {
319
+ position: 'absolute',
320
+ inset: 0,
321
+ display: 'inline-flex',
322
+ alignItems: 'center',
323
+ justifyContent: 'center',
324
+ pointerEvents: 'none'
325
+ },
326
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SpinnerIconWeb.SpinnerIcon, {
327
+ size: Math.round(sizeConfig.fontSize * 1.2),
328
+ color: spinnerColor
329
+ })
330
+ })]
331
+ }) : content;
332
+
333
+ // asChild: render the provided child element (e.g. <a> / router <Link>) with
334
+ // the button styling and handlers merged in. Used for link-buttons.
335
+ if (asChild && /*#__PURE__*/_react.default.isValidElement(children)) {
336
+ const child = children;
337
+ const childProps = child.props;
338
+ return /*#__PURE__*/_react.default.cloneElement(child, {
339
+ className: [composedClassName, childProps.className].filter(Boolean).join(' '),
340
+ style: {
341
+ ...containerStyle,
342
+ ...style,
343
+ ...childProps.style
344
+ },
345
+ onClick: event => {
346
+ if (isInteractionBlocked) {
347
+ event.preventDefault();
348
+ return;
349
+ }
350
+ childProps.onClick?.(event);
351
+ onClick?.(event);
352
+ onPress?.();
353
+ },
354
+ 'aria-disabled': isInteractionBlocked || undefined,
355
+ 'aria-busy': loading || undefined,
356
+ 'aria-label': ariaLabel ?? childProps['aria-label'],
357
+ title: title ?? childProps.title,
358
+ id: childProps.id ?? resolvedId,
359
+ tabIndex: isInteractionBlocked ? -1 : childProps.tabIndex
360
+ });
361
+ }
362
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
363
+ id: resolvedId,
364
+ type: type,
365
+ name: name,
366
+ value: value,
367
+ className: composedClassName,
368
+ style: {
369
+ ...containerStyle,
370
+ ...style
371
+ },
372
+ onClick: handleClick,
373
+ disabled: disabled && !loading,
374
+ "aria-disabled": isInteractionBlocked || undefined,
375
+ "aria-busy": loading || undefined,
376
+ "aria-label": ariaLabel,
377
+ title: title ?? accessibilityHint,
378
+ autoFocus: autoFocus,
379
+ tabIndex: tabIndex,
380
+ "data-testid": testID,
381
+ children: body
382
+ });
383
+ };
384
+ const Button = exports.Button = /*#__PURE__*/(0, _react.memo)(ButtonWebComponent);
385
+ Button.displayName = 'Button';
386
+ const PrimaryButton = exports.PrimaryButton = /*#__PURE__*/(0, _react.memo)(props => /*#__PURE__*/(0, _jsxRuntime.jsx)(Button, {
387
+ ...props,
388
+ variant: "primary"
389
+ }));
390
+ PrimaryButton.displayName = 'PrimaryButton';
391
+ const SecondaryButton = exports.SecondaryButton = /*#__PURE__*/(0, _react.memo)(props => /*#__PURE__*/(0, _jsxRuntime.jsx)(Button, {
392
+ ...props,
393
+ variant: "secondary"
394
+ }));
395
+ SecondaryButton.displayName = 'SecondaryButton';
396
+ const IconButton = exports.IconButton = /*#__PURE__*/(0, _react.memo)(props => /*#__PURE__*/(0, _jsxRuntime.jsx)(Button, {
397
+ ...props,
398
+ variant: "icon"
399
+ }));
400
+ IconButton.displayName = 'IconButton';
401
+ const GhostButton = exports.GhostButton = /*#__PURE__*/(0, _react.memo)(props => /*#__PURE__*/(0, _jsxRuntime.jsx)(Button, {
402
+ ...props,
403
+ variant: "ghost"
404
+ }));
405
+ GhostButton.displayName = 'GhostButton';
406
+ const InverseButton = exports.InverseButton = /*#__PURE__*/(0, _react.memo)(props => /*#__PURE__*/(0, _jsxRuntime.jsx)(Button, {
407
+ ...props,
408
+ variant: "inverse"
409
+ }));
410
+ InverseButton.displayName = 'InverseButton';
411
+ const TextButton = exports.TextButton = /*#__PURE__*/(0, _react.memo)(props => /*#__PURE__*/(0, _jsxRuntime.jsx)(Button, {
412
+ ...props,
413
+ variant: "text"
414
+ }));
415
+ TextButton.displayName = 'TextButton';
416
+ const OutlineButton = exports.OutlineButton = /*#__PURE__*/(0, _react.memo)(props => /*#__PURE__*/(0, _jsxRuntime.jsx)(Button, {
417
+ ...props,
418
+ variant: "outline"
419
+ }));
420
+ OutlineButton.displayName = 'OutlineButton';
421
+ const LinkButton = exports.LinkButton = /*#__PURE__*/(0, _react.memo)(props => /*#__PURE__*/(0, _jsxRuntime.jsx)(Button, {
422
+ ...props,
423
+ variant: "link"
424
+ }));
425
+ LinkButton.displayName = 'LinkButton';
426
+ const DestructiveButton = exports.DestructiveButton = /*#__PURE__*/(0, _react.memo)(props => /*#__PURE__*/(0, _jsxRuntime.jsx)(Button, {
427
+ ...props,
428
+ variant: "destructive"
429
+ }));
430
+ DestructiveButton.displayName = 'DestructiveButton';
431
+ //# sourceMappingURL=Button.web.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_useTheme","_SpinnerIconWeb","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","SIZE_CONFIG","small","paddingVertical","paddingHorizontal","fontSize","minHeight","medium","large","SIZE_ALIAS","sm","md","lg","icon","PILL_RADIUS","ICON_RADIUS","PRESS_SCALE","SCALE_VARIANTS","Set","STYLE_ID","BLOOM_BUTTON_CSS","useButtonCss","useEffect","document","getElementById","style","createElement","id","textContent","head","appendChild","resolveVariantStyle","variant","size","theme","c","colors","sizeConfig","container","backgroundColor","primary","borderRadius","textColor","primaryForeground","ringColor","negative","negativeForeground","borderWidth","borderStyle","borderColor","border","text","background","padding","width","height","ButtonWebComponent","onPress","onClick","children","disabled","sizeProp","iconPosition","loading","loadingColor","accessibilityLabel","ariaLabelProp","accessibilityHint","testID","className","type","asChild","name","value","title","autoFocus","tabIndex","fullWidth","useTheme","reactId","useId","resolvedId","resolvedVariant","isIcon","isInteractionBlocked","variantStyle","useMemo","containerStyle","base","fontWeight","color","undefined","paddingTop","paddingBottom","paddingLeft","paddingRight","handleClick","useCallback","event","preventDefault","ariaLabel","composedClassName","concat","join","spinnerColor","content","jsxs","Fragment","jsx","body","display","alignItems","justifyContent","gap","opacity","pointerEvents","position","inset","SpinnerIcon","Math","round","React","isValidElement","child","childProps","props","cloneElement","filter","Boolean","Button","exports","memo","displayName","PrimaryButton","SecondaryButton","IconButton","GhostButton","InverseButton","TextButton","OutlineButton","LinkButton","DestructiveButton"],"sourceRoot":"../../../src","sources":["button/Button.web.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAWA,IAAAC,SAAA,GAAAD,OAAA;AAEA,IAAAE,eAAA,GAAAF,OAAA;AAAyD,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,wBAAAK,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAP,uBAAA,YAAAA,CAAAK,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC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;
10
10
  }
11
11
  });
12
+ Object.defineProperty(exports, "DestructiveButton", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _Button.DestructiveButton;
16
+ }
17
+ });
12
18
  Object.defineProperty(exports, "GhostButton", {
13
19
  enumerable: true,
14
20
  get: function () {
@@ -21,6 +27,24 @@ Object.defineProperty(exports, "IconButton", {
21
27
  return _Button.IconButton;
22
28
  }
23
29
  });
30
+ Object.defineProperty(exports, "InverseButton", {
31
+ enumerable: true,
32
+ get: function () {
33
+ return _Button.InverseButton;
34
+ }
35
+ });
36
+ Object.defineProperty(exports, "LinkButton", {
37
+ enumerable: true,
38
+ get: function () {
39
+ return _Button.LinkButton;
40
+ }
41
+ });
42
+ Object.defineProperty(exports, "OutlineButton", {
43
+ enumerable: true,
44
+ get: function () {
45
+ return _Button.OutlineButton;
46
+ }
47
+ });
24
48
  Object.defineProperty(exports, "PrimaryButton", {
25
49
  enumerable: true,
26
50
  get: function () {
@@ -39,5 +63,5 @@ Object.defineProperty(exports, "TextButton", {
39
63
  return _Button.TextButton;
40
64
  }
41
65
  });
42
- var _Button = require("./Button.js");
66
+ var _Button = require("./Button");
43
67
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_Button","require"],"sourceRoot":"../../../src","sources":["button/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA","ignoreList":[]}
1
+ {"version":3,"names":["_Button","require"],"sourceRoot":"../../../src","sources":["button/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA","ignoreList":[]}
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "Button", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _ButtonWeb.Button;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "DestructiveButton", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _ButtonWeb.DestructiveButton;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "GhostButton", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _ButtonWeb.GhostButton;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "IconButton", {
25
+ enumerable: true,
26
+ get: function () {
27
+ return _ButtonWeb.IconButton;
28
+ }
29
+ });
30
+ Object.defineProperty(exports, "InverseButton", {
31
+ enumerable: true,
32
+ get: function () {
33
+ return _ButtonWeb.InverseButton;
34
+ }
35
+ });
36
+ Object.defineProperty(exports, "LinkButton", {
37
+ enumerable: true,
38
+ get: function () {
39
+ return _ButtonWeb.LinkButton;
40
+ }
41
+ });
42
+ Object.defineProperty(exports, "OutlineButton", {
43
+ enumerable: true,
44
+ get: function () {
45
+ return _ButtonWeb.OutlineButton;
46
+ }
47
+ });
48
+ Object.defineProperty(exports, "PrimaryButton", {
49
+ enumerable: true,
50
+ get: function () {
51
+ return _ButtonWeb.PrimaryButton;
52
+ }
53
+ });
54
+ Object.defineProperty(exports, "SecondaryButton", {
55
+ enumerable: true,
56
+ get: function () {
57
+ return _ButtonWeb.SecondaryButton;
58
+ }
59
+ });
60
+ Object.defineProperty(exports, "TextButton", {
61
+ enumerable: true,
62
+ get: function () {
63
+ return _ButtonWeb.TextButton;
64
+ }
65
+ });
66
+ var _ButtonWeb = require("./Button.web.js");
67
+ //# sourceMappingURL=index.web.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_ButtonWeb","require"],"sourceRoot":"../../../src","sources":["button/index.web.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,IAAAA,UAAA,GAAAC,OAAA","ignoreList":[]}