@blerp/design 1.3.17 → 1.4.2

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 (128) hide show
  1. package/dist/cjs/Blerp/BlerpImageRow.js +176 -57
  2. package/dist/cjs/Blerp/BlerpSavePopup.js +44 -40
  3. package/dist/cjs/Blerp/BlerpTitleRow.js +36 -19
  4. package/dist/cjs/Blerp/BlerpTopRow.js +110 -44
  5. package/dist/cjs/Blerp.js +9 -16
  6. package/dist/cjs/BlerpAudioContextProvider.js +2 -2
  7. package/dist/cjs/BlerpListView.js +318 -168
  8. package/dist/cjs/BlerpListViewPremium.js +155 -130
  9. package/dist/cjs/BlerpListViewSkeleton.js +60 -13
  10. package/dist/cjs/BlerpSkeleton.js +32 -9
  11. package/dist/cjs/CollectionCard.js +139 -60
  12. package/dist/cjs/CollectionListViewPremium.js +368 -297
  13. package/dist/cjs/CollectionSkeleton.js +74 -13
  14. package/dist/cjs/Dropdown.js +272 -172
  15. package/dist/cjs/EllipsisLoader.js +66 -21
  16. package/dist/cjs/GroupCard.js +64 -57
  17. package/dist/cjs/Icons/Icons.js +288 -426
  18. package/dist/cjs/ImageEditor.js +247 -0
  19. package/dist/cjs/ImageUpload.js +226 -0
  20. package/dist/cjs/NewBlerp.js +354 -160
  21. package/dist/cjs/NewBlerpTest.js +10 -792
  22. package/dist/cjs/NewCollectionModal.js +294 -310
  23. package/dist/cjs/PremiumCollectionCard.js +191 -454
  24. package/dist/cjs/PurchaseModals/CheckoutModal.js +1 -1
  25. package/dist/cjs/PurchaseModals/PremiumBlerpCheckoutModal.js +1 -1
  26. package/dist/cjs/PurchaseModals/PremiumCollectionCheckoutModal.js +1 -1
  27. package/dist/cjs/PurchaseModals/PremiumSubscriptionCheckoutModal.js +1 -1
  28. package/dist/cjs/ReactionButtons.js +26 -13
  29. package/dist/cjs/SnackbarContextProvider.js +200 -116
  30. package/dist/cjs/Theme.js +217 -90
  31. package/dist/cjs/Toggle.js +86 -32
  32. package/dist/cjs/UserCard.js +13 -32
  33. package/dist/cjs/UserPage/LibraryControls.js +180 -93
  34. package/dist/cjs/UserPage/UserLibraryHeader.js +23 -14
  35. package/dist/cjs/UserPage/UserProfileHeader.js +120 -105
  36. package/dist/cjs/UsernameWithPopout.js +12 -8
  37. package/dist/cjs/colors.js +15 -8
  38. package/dist/cjs/helpers.js +131 -0
  39. package/dist/cjs/index.js +92 -58
  40. package/dist/cjs/neo-components/Autocomplete.js +285 -0
  41. package/dist/cjs/neo-components/BottomNavigation.js +120 -0
  42. package/dist/cjs/neo-components/Box.js +48 -0
  43. package/dist/cjs/neo-components/Button.js +206 -0
  44. package/dist/cjs/neo-components/CircularProgress.js +92 -0
  45. package/dist/cjs/neo-components/Container.js +75 -0
  46. package/dist/cjs/neo-components/Dialog.js +441 -0
  47. package/dist/cjs/neo-components/Fab.js +237 -0
  48. package/dist/cjs/neo-components/FormControls.js +1057 -0
  49. package/dist/cjs/neo-components/Grid.js +256 -0
  50. package/dist/cjs/neo-components/IconButton.js +111 -0
  51. package/dist/cjs/neo-components/Input.js +495 -0
  52. package/dist/cjs/neo-components/Layout.js +1214 -0
  53. package/dist/cjs/neo-components/Misc.js +868 -0
  54. package/dist/cjs/neo-components/Navigation.js +1616 -0
  55. package/dist/cjs/neo-components/Paper.js +256 -0
  56. package/dist/cjs/neo-components/Stack.js +194 -0
  57. package/dist/cjs/neo-components/Stepper.js +291 -0
  58. package/dist/cjs/neo-components/Text.js +290 -0
  59. package/dist/cjs/neo-components/ThemeProvider.js +731 -0
  60. package/dist/cjs/neo-components/ToggleButton.js +223 -0
  61. package/dist/cjs/neo-components/createTheme.js +306 -0
  62. package/dist/cjs/neo-components/withSx.js +171 -0
  63. package/dist/cjs/neo-utils/sxToStyle.js +508 -0
  64. package/dist/esm/Blerp/BlerpImageRow.js +166 -46
  65. package/dist/esm/Blerp/BlerpSavePopup.js +35 -27
  66. package/dist/esm/Blerp/BlerpTitleRow.js +32 -13
  67. package/dist/esm/Blerp/BlerpTopRow.js +85 -16
  68. package/dist/esm/Blerp.js +4 -12
  69. package/dist/esm/BlerpAudioContextProvider.js +1 -2
  70. package/dist/esm/BlerpListView.js +313 -160
  71. package/dist/esm/BlerpListViewPremium.js +135 -109
  72. package/dist/esm/BlerpListViewSkeleton.js +60 -11
  73. package/dist/esm/BlerpSkeleton.js +32 -7
  74. package/dist/esm/CollectionCard.js +118 -38
  75. package/dist/esm/CollectionListViewPremium.js +367 -294
  76. package/dist/esm/CollectionSkeleton.js +73 -11
  77. package/dist/esm/Dropdown.js +260 -161
  78. package/dist/esm/EllipsisLoader.js +63 -18
  79. package/dist/esm/GroupCard.js +54 -46
  80. package/dist/esm/Icons/Icons.js +226 -367
  81. package/dist/esm/ImageEditor.js +240 -0
  82. package/dist/esm/ImageUpload.js +217 -0
  83. package/dist/esm/NewBlerp.js +282 -79
  84. package/dist/esm/NewBlerpTest.js +11 -781
  85. package/dist/esm/NewCollectionModal.js +289 -304
  86. package/dist/esm/PremiumCollectionCard.js +192 -451
  87. package/dist/esm/PurchaseModals/CheckoutModal.js +1 -1
  88. package/dist/esm/PurchaseModals/PremiumBlerpCheckoutModal.js +1 -1
  89. package/dist/esm/PurchaseModals/PremiumCollectionCheckoutModal.js +1 -1
  90. package/dist/esm/PurchaseModals/PremiumSubscriptionCheckoutModal.js +1 -1
  91. package/dist/esm/ReactionButtons.js +23 -8
  92. package/dist/esm/SnackbarContextProvider.js +196 -110
  93. package/dist/esm/Theme.js +187 -66
  94. package/dist/esm/Toggle.js +84 -29
  95. package/dist/esm/UserCard.js +1 -20
  96. package/dist/esm/UserPage/LibraryControls.js +159 -65
  97. package/dist/esm/UserPage/UserLibraryHeader.js +18 -10
  98. package/dist/esm/UserPage/UserProfileHeader.js +100 -79
  99. package/dist/esm/UsernameWithPopout.js +7 -4
  100. package/dist/esm/colors.js +11 -9
  101. package/dist/esm/helpers.js +122 -0
  102. package/dist/esm/icons.js +1 -1
  103. package/dist/esm/index.js +32 -2
  104. package/dist/esm/neo-components/Autocomplete.js +274 -0
  105. package/dist/esm/neo-components/BottomNavigation.js +109 -0
  106. package/dist/esm/neo-components/Box.js +36 -0
  107. package/dist/esm/neo-components/Button.js +194 -0
  108. package/dist/esm/neo-components/CircularProgress.js +81 -0
  109. package/dist/esm/neo-components/Container.js +63 -0
  110. package/dist/esm/neo-components/Dialog.js +423 -0
  111. package/dist/esm/neo-components/Fab.js +225 -0
  112. package/dist/esm/neo-components/FormControls.js +1041 -0
  113. package/dist/esm/neo-components/Grid.js +244 -0
  114. package/dist/esm/neo-components/IconButton.js +99 -0
  115. package/dist/esm/neo-components/Input.js +480 -0
  116. package/dist/esm/neo-components/Layout.js +1180 -0
  117. package/dist/esm/neo-components/Misc.js +850 -0
  118. package/dist/esm/neo-components/Navigation.js +1594 -0
  119. package/dist/esm/neo-components/Paper.js +243 -0
  120. package/dist/esm/neo-components/Stack.js +182 -0
  121. package/dist/esm/neo-components/Stepper.js +278 -0
  122. package/dist/esm/neo-components/Text.js +277 -0
  123. package/dist/esm/neo-components/ThemeProvider.js +718 -0
  124. package/dist/esm/neo-components/ToggleButton.js +214 -0
  125. package/dist/esm/neo-components/createTheme.js +297 -0
  126. package/dist/esm/neo-components/withSx.js +160 -0
  127. package/dist/esm/neo-utils/sxToStyle.js +502 -0
  128. package/package.json +19 -15
@@ -0,0 +1,256 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var _extends = require('@babel/runtime/helpers/extends');
6
+ var _defineProperty = require('@babel/runtime/helpers/defineProperty');
7
+ var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
8
+ var React = require('react');
9
+ var withSx = require('./withSx.js');
10
+
11
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
12
+
13
+ var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
14
+ var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
15
+ var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
16
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
17
+
18
+ const _excluded = ["container", "item", "spacing", "columns", "xs", "sm", "md", "lg", "xl", "direction", "wrap", "alignItems", "justifyContent", "children", "component", "style"],
19
+ _excluded2 = ["container", "size", "offset", "spacing", "columns", "rowSpacing", "columnSpacing", "children", "component", "style"];
20
+
21
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
22
+
23
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
24
+ /**
25
+ * Hook to get current breakpoint
26
+ */
27
+
28
+ const useBreakpoint = () => {
29
+ const [breakpoint, setBreakpoint] = React.useState('xs');
30
+ React.useEffect(() => {
31
+ const getBreakpoint = () => {
32
+ const width = window.innerWidth;
33
+ if (width >= 1536) return 'xl';
34
+ if (width >= 1200) return 'lg';
35
+ if (width >= 900) return 'md';
36
+ if (width >= 600) return 'sm';
37
+ return 'xs';
38
+ };
39
+
40
+ setBreakpoint(getBreakpoint());
41
+
42
+ const handleResize = () => {
43
+ setBreakpoint(getBreakpoint());
44
+ };
45
+
46
+ window.addEventListener('resize', handleResize);
47
+ return () => window.removeEventListener('resize', handleResize);
48
+ }, []);
49
+ return breakpoint;
50
+ };
51
+ /**
52
+ * Get the active column span based on current breakpoint
53
+ * Falls back to smaller breakpoints if larger ones aren't defined
54
+ */
55
+
56
+
57
+ const getActiveColSpan = (breakpoint, _ref) => {
58
+ let {
59
+ xs,
60
+ sm,
61
+ md,
62
+ lg,
63
+ xl
64
+ } = _ref;
65
+ const breakpoints = ['xs', 'sm', 'md', 'lg', 'xl'];
66
+ const values = {
67
+ xs,
68
+ sm,
69
+ md,
70
+ lg,
71
+ xl
72
+ };
73
+ const currentIndex = breakpoints.indexOf(breakpoint); // Start from current breakpoint and work backwards to find a defined value
74
+
75
+ for (let i = currentIndex; i >= 0; i--) {
76
+ const bp = breakpoints[i];
77
+
78
+ if (values[bp] !== undefined) {
79
+ return values[bp];
80
+ }
81
+ }
82
+
83
+ return undefined;
84
+ };
85
+ /**
86
+ * Grid - Responsive grid layout (replaces MUI Grid)
87
+ * Uses Flexbox for layout with responsive breakpoints
88
+ *
89
+ * Props:
90
+ * - container: Makes this a grid container
91
+ * - item: Makes this a grid item
92
+ * - spacing: Gap between items (uses 8px unit)
93
+ * - xs, sm, md, lg, xl: Responsive column spans (1-12 or 'auto' or true)
94
+ * - columns: Total columns in the grid (default 12)
95
+ */
96
+
97
+
98
+ const BaseGrid = /*#__PURE__*/React__default["default"].forwardRef((_ref2, ref) => {
99
+ let {
100
+ container = false,
101
+ item = false,
102
+ spacing = 0,
103
+ columns = 12,
104
+ xs,
105
+ sm,
106
+ md,
107
+ lg,
108
+ xl,
109
+ direction = 'row',
110
+ wrap = 'wrap',
111
+ alignItems,
112
+ justifyContent,
113
+ children,
114
+ component: Component = 'div',
115
+ style
116
+ } = _ref2,
117
+ props = _objectWithoutProperties__default["default"](_ref2, _excluded);
118
+
119
+ const breakpoint = useBreakpoint(); // Convert spacing to pixels
120
+
121
+ const gap = typeof spacing === 'number' ? spacing * 8 : parseInt(spacing) || 0; // Get the active column span for current breakpoint
122
+
123
+ const activeColSpan = getActiveColSpan(breakpoint, {
124
+ xs,
125
+ sm,
126
+ md,
127
+ lg,
128
+ xl
129
+ }); // Convert column span to width
130
+
131
+ const getColumnWidth = colSpan => {
132
+ if (colSpan === true || colSpan === 'auto') {
133
+ return 'auto';
134
+ }
135
+
136
+ if (typeof colSpan === 'number') {
137
+ return "".concat(colSpan / columns * 100, "%");
138
+ }
139
+
140
+ return undefined;
141
+ };
142
+
143
+ let gridStyle = _objectSpread({}, style);
144
+
145
+ if (container) {
146
+ // Container styles - use flexbox for MUI compatibility
147
+ gridStyle = _objectSpread(_objectSpread(_objectSpread(_objectSpread({
148
+ display: 'flex',
149
+ flexWrap: wrap,
150
+ flexDirection: direction
151
+ }, alignItems && {
152
+ alignItems
153
+ }), justifyContent && {
154
+ justifyContent
155
+ }), gap > 0 && {
156
+ margin: "-".concat(gap / 2, "px"),
157
+ width: "calc(100% + ".concat(gap, "px)")
158
+ }), gridStyle);
159
+ }
160
+
161
+ if (item) {
162
+ // Item styles
163
+ const columnWidth = getColumnWidth(activeColSpan);
164
+ gridStyle = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({
165
+ flexGrow: activeColSpan === true ? 1 : 0,
166
+ flexShrink: 0
167
+ }, columnWidth && columnWidth !== 'auto' && {
168
+ flexBasis: columnWidth,
169
+ maxWidth: columnWidth
170
+ }), activeColSpan === 'auto' && {
171
+ flexBasis: 'auto',
172
+ flexGrow: 0,
173
+ maxWidth: 'none'
174
+ }), activeColSpan === true && {
175
+ flexBasis: 0,
176
+ flexGrow: 1,
177
+ maxWidth: '100%'
178
+ }), gap > 0 && {
179
+ padding: "".concat(gap / 2, "px")
180
+ }), {}, {
181
+ boxSizing: 'border-box'
182
+ }, gridStyle);
183
+ }
184
+
185
+ return /*#__PURE__*/React__default["default"].createElement(Component, _extends__default["default"]({
186
+ ref: ref,
187
+ style: gridStyle
188
+ }, props), children);
189
+ });
190
+ BaseGrid.displayName = 'BaseGrid';
191
+ const Grid = withSx.withSx(BaseGrid);
192
+ /**
193
+ * Grid2 alternative using CSS Grid
194
+ */
195
+
196
+ const BaseGrid2 = /*#__PURE__*/React__default["default"].forwardRef((_ref3, ref) => {
197
+ let {
198
+ container = false,
199
+ size,
200
+ offset,
201
+ spacing = 0,
202
+ columns = 12,
203
+ rowSpacing,
204
+ columnSpacing,
205
+ children,
206
+ component: Component = 'div',
207
+ style
208
+ } = _ref3,
209
+ props = _objectWithoutProperties__default["default"](_ref3, _excluded2);
210
+
211
+ const breakpoint = useBreakpoint();
212
+ const gap = typeof spacing === 'number' ? spacing * 8 : parseInt(spacing) || 0;
213
+ const rowGap = rowSpacing !== undefined ? typeof rowSpacing === 'number' ? rowSpacing * 8 : parseInt(rowSpacing) || 0 : gap;
214
+ const colGap = columnSpacing !== undefined ? typeof columnSpacing === 'number' ? columnSpacing * 8 : parseInt(columnSpacing) || 0 : gap;
215
+
216
+ let gridStyle = _objectSpread({}, style);
217
+
218
+ if (container) {
219
+ gridStyle = _objectSpread({
220
+ display: 'grid',
221
+ gridTemplateColumns: "repeat(".concat(columns, ", 1fr)"),
222
+ rowGap: "".concat(rowGap, "px"),
223
+ columnGap: "".concat(colGap, "px")
224
+ }, gridStyle);
225
+ } else if (size !== undefined) {
226
+ // Grid item with size prop
227
+ const activeSize = typeof size === 'object' ? getActiveColSpan(breakpoint, size) : size;
228
+ const activeOffset = typeof offset === 'object' ? getActiveColSpan(breakpoint, offset) : offset;
229
+
230
+ if (activeSize === 'grow') {
231
+ gridStyle = _objectSpread({
232
+ gridColumn: 'span 1 / -1'
233
+ }, gridStyle);
234
+ } else if (typeof activeSize === 'number') {
235
+ gridStyle = _objectSpread({
236
+ gridColumn: "span ".concat(activeSize)
237
+ }, gridStyle);
238
+ }
239
+
240
+ if (typeof activeOffset === 'number') {
241
+ gridStyle = _objectSpread({
242
+ gridColumnStart: activeOffset + 1
243
+ }, gridStyle);
244
+ }
245
+ }
246
+
247
+ return /*#__PURE__*/React__default["default"].createElement(Component, _extends__default["default"]({
248
+ ref: ref,
249
+ style: gridStyle
250
+ }, props), children);
251
+ });
252
+ BaseGrid2.displayName = 'BaseGrid2';
253
+ withSx.withSx(BaseGrid2);
254
+
255
+ exports.Grid = Grid;
256
+ exports["default"] = Grid;
@@ -0,0 +1,111 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var _extends = require('@babel/runtime/helpers/extends');
6
+ var _defineProperty = require('@babel/runtime/helpers/defineProperty');
7
+ var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
8
+ var React = require('react');
9
+ var withSx = require('./withSx.js');
10
+ var ThemeProvider = require('./ThemeProvider.js');
11
+
12
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
13
+
14
+ var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
15
+ var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
16
+ var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
17
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
18
+
19
+ const _excluded = ["color", "size", "disabled", "edge", "children", "onClick", "component", "href", "style"];
20
+
21
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
22
+
23
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
24
+ /**
25
+ * IconButton - Circular button for icons (replaces MUI IconButton)
26
+ */
27
+
28
+ const BaseIconButton = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
29
+ let {
30
+ color = 'default',
31
+ size = 'medium',
32
+ disabled = false,
33
+ edge,
34
+ children,
35
+ onClick,
36
+ component,
37
+ href,
38
+ style
39
+ } = _ref,
40
+ props = _objectWithoutProperties__default["default"](_ref, _excluded);
41
+
42
+ const {
43
+ colors
44
+ } = ThemeProvider.useTheme(); // Get color value
45
+
46
+ const getColor = () => {
47
+ if (color === 'default') return 'var(--icons-in-active, rgba(0, 0, 0, 0.54))';
48
+ if (color === 'inherit') return 'inherit';
49
+ const colorValue = colors[color];
50
+ return typeof colorValue === 'object' ? colorValue.main : colorValue || color;
51
+ }; // Size mappings
52
+
53
+
54
+ const sizeStyles = {
55
+ small: {
56
+ padding: '5px',
57
+ fontSize: '1.125rem'
58
+ },
59
+ medium: {
60
+ padding: '8px',
61
+ fontSize: '1.5rem'
62
+ },
63
+ large: {
64
+ padding: '12px',
65
+ fontSize: '1.75rem'
66
+ }
67
+ };
68
+
69
+ const buttonStyle = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({
70
+ display: 'inline-flex',
71
+ alignItems: 'center',
72
+ justifyContent: 'center',
73
+ position: 'relative',
74
+ boxSizing: 'border-box',
75
+ backgroundColor: 'transparent',
76
+ outline: 0,
77
+ border: 0,
78
+ margin: 0,
79
+ cursor: disabled ? 'default' : 'pointer',
80
+ userSelect: 'none',
81
+ verticalAlign: 'middle',
82
+ textDecoration: 'none',
83
+ color: getColor(),
84
+ borderRadius: '50%',
85
+ overflow: 'visible',
86
+ transition: 'background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms'
87
+ }, sizeStyles[size]), edge === 'start' && {
88
+ marginLeft: size === 'small' ? '-3px' : '-12px'
89
+ }), edge === 'end' && {
90
+ marginRight: size === 'small' ? '-3px' : '-12px'
91
+ }), disabled && {
92
+ opacity: 0.5,
93
+ pointerEvents: 'none'
94
+ }), style);
95
+
96
+ const Component = component || (href ? 'a' : 'button');
97
+ return /*#__PURE__*/React__default["default"].createElement(Component, _extends__default["default"]({
98
+ ref: ref,
99
+ style: buttonStyle,
100
+ disabled: Component === 'button' ? disabled : undefined,
101
+ "aria-disabled": disabled,
102
+ onClick: disabled ? undefined : onClick,
103
+ href: href,
104
+ type: Component === 'button' ? 'button' : undefined
105
+ }, props), children);
106
+ });
107
+ BaseIconButton.displayName = 'BaseIconButton';
108
+ const IconButton = withSx.withSx(BaseIconButton);
109
+
110
+ exports.IconButton = IconButton;
111
+ exports["default"] = IconButton;