@abstraks-dev/ui-library 1.4.0 → 2.0.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.
@@ -7,8 +7,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
7
7
  describe('Hero Component', () => {
8
8
  test('renders hero with default props', () => {
9
9
  (0, _react2.render)(/*#__PURE__*/_react.default.createElement(_Hero.Hero, null, "Hero Content"));
10
- const animation = _react2.screen.getByTestId('animation');
11
- const hero = (0, _react2.within)(animation).getByTestId('hero');
10
+ const hero = _react2.screen.getByTestId('hero');
12
11
  expect(hero).toBeInTheDocument();
13
12
  expect(hero).toHaveClass('hero-wrapper');
14
13
  expect(_react2.screen.getByText('Hero Content')).toBeInTheDocument();
@@ -17,30 +16,26 @@ describe('Hero Component', () => {
17
16
  (0, _react2.render)(/*#__PURE__*/_react.default.createElement(_Hero.Hero, {
18
17
  componentName: "custom-hero"
19
18
  }, "Custom Hero"));
20
- const animation = _react2.screen.getByTestId('animation');
21
- const hero = (0, _react2.within)(animation).getByTestId('hero');
19
+ const hero = _react2.screen.getByTestId('hero');
22
20
  expect(hero).toHaveClass('custom-hero-wrapper');
23
21
  });
24
22
  test('renders with additional className', () => {
25
23
  (0, _react2.render)(/*#__PURE__*/_react.default.createElement(_Hero.Hero, {
26
24
  additionalClassName: "extra-class"
27
25
  }, "Styled Hero"));
28
- const animation = _react2.screen.getByTestId('animation');
29
- const hero = (0, _react2.within)(animation).getByTestId('hero');
26
+ const hero = _react2.screen.getByTestId('hero');
30
27
  expect(hero).toHaveClass('hero-wrapper', 'extra-class');
31
28
  });
32
29
  test('renders with background image', () => {
33
30
  (0, _react2.render)(/*#__PURE__*/_react.default.createElement(_Hero.Hero, {
34
31
  background: "/path/to/image.jpg"
35
32
  }, "Hero with Background"));
36
- const animation = _react2.screen.getByTestId('animation');
37
- const hero = (0, _react2.within)(animation).getByTestId('hero');
33
+ const hero = _react2.screen.getByTestId('hero');
38
34
  expect(hero).toHaveStyle('background-image: url(/path/to/image.jpg)');
39
35
  });
40
36
  test('renders inner hero container', () => {
41
37
  (0, _react2.render)(/*#__PURE__*/_react.default.createElement(_Hero.Hero, null, "Inner Content"));
42
- const animation = _react2.screen.getByTestId('animation');
43
- const hero = (0, _react2.within)(animation).getByTestId('hero');
38
+ const hero = _react2.screen.getByTestId('hero');
44
39
  const innerContainer = hero.querySelector('.hero');
45
40
  expect(innerContainer).toBeInTheDocument();
46
41
  expect(innerContainer).toHaveTextContent('Inner Content');
@@ -53,8 +48,7 @@ describe('Hero Component', () => {
53
48
  });
54
49
  test('renders without background image', () => {
55
50
  (0, _react2.render)(/*#__PURE__*/_react.default.createElement(_Hero.Hero, null, "No Background"));
56
- const animation = _react2.screen.getByTestId('animation');
57
- const hero = (0, _react2.within)(animation).getByTestId('hero');
51
+ const hero = _react2.screen.getByTestId('hero');
58
52
  // Should not have background-image style at all
59
53
  expect(hero.style.backgroundImage).toBe('');
60
54
  });
@@ -65,8 +59,7 @@ describe('Hero Component', () => {
65
59
  additionalClassName: "home-hero large",
66
60
  background: "/hero-bg.png"
67
61
  }, "Landing Page Hero"));
68
- const animation = _react2.screen.getByTestId('animation');
69
- const hero = (0, _react2.within)(animation).getByTestId('landing-hero');
62
+ const hero = _react2.screen.getByTestId('landing-hero');
70
63
  expect(hero).toHaveClass('landing-hero-wrapper', 'home-hero', 'large');
71
64
  expect(hero).toHaveStyle('background-image: url(/hero-bg.png)');
72
65
  expect(_react2.screen.getByText('Landing Page Hero')).toBeInTheDocument();
@@ -60,10 +60,7 @@ const Avatar = exports.Avatar = /*#__PURE__*/(0, _react.forwardRef)(({
60
60
  const handleImageLoad = event => {
61
61
  onLoad?.(event);
62
62
  };
63
- return /*#__PURE__*/_react.default.createElement(_Animation.AnimatedDiv, {
64
- fadingEntrances: "fadeIn",
65
- duration: "faster"
66
- }, /*#__PURE__*/_react.default.createElement("div", _extends({
63
+ return /*#__PURE__*/_react.default.createElement("div", _extends({
67
64
  className: `${componentName} ${componentName}--${size} ${additionalClassName} ${isClickable ? `${componentName}--clickable` : ''} ${hasHoverEffect ? `${componentName}--hoverable` : ''} ${isLoading ? `${componentName}--loading` : ''} ${className}`.trim(),
68
65
  "data-testid": componentName,
69
66
  role: isClickable ? 'button' : role,
@@ -123,7 +120,7 @@ const Avatar = exports.Avatar = /*#__PURE__*/(0, _react.forwardRef)(({
123
120
  d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"
124
121
  })))), isClickable && /*#__PURE__*/_react.default.createElement("span", {
125
122
  className: "sr-only"
126
- }, "Press Enter or Space to interact with this avatar")));
123
+ }, "Press Enter or Space to interact with this avatar"));
127
124
  });
128
125
  Avatar.propTypes = {
129
126
  source: _propTypes.string,
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = exports.Button = void 0;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
- var _Animation = require("./Animation");
9
8
  var _propTypes = require("prop-types");
10
9
  var _icons = require("../icons");
11
10
  var _ssrSafeId = require("../utils/ssrSafeId");
@@ -121,10 +120,7 @@ const Button = exports.Button = /*#__PURE__*/(0, _react.forwardRef)(({
121
120
  }, children), iconTrailing && /*#__PURE__*/_react.default.createElement("span", {
122
121
  className: `${componentName}__icon ${componentName}__icon--trailing`
123
122
  }, iconTrailing));
124
- return /*#__PURE__*/_react.default.createElement(_Animation.AnimatedDiv, {
125
- fadingEntrances: "fadeIn",
126
- duration: "faster"
127
- }, /*#__PURE__*/_react.default.createElement("button", _extends({}, restProps, {
123
+ return /*#__PURE__*/_react.default.createElement("button", _extends({}, restProps, {
128
124
  ref: ref,
129
125
  id: finalId,
130
126
  className: getClassNames(),
@@ -148,7 +144,7 @@ const Button = exports.Button = /*#__PURE__*/(0, _react.forwardRef)(({
148
144
  role: role
149
145
  }), buttonContent, /*#__PURE__*/_react.default.createElement("span", {
150
146
  className: "sr-only"
151
- }, isLoading ? 'Button is loading, please wait' : 'Press Enter or Space to activate this button')));
147
+ }, isLoading ? 'Button is loading, please wait' : 'Press Enter or Space to activate this button'));
152
148
  });
153
149
 
154
150
  // Configure component PropTypes
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = exports.Card = void 0;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
- var _Animation = require("./Animation");
9
8
  var _propTypes = require("prop-types");
10
9
  var _Heading = _interopRequireDefault(require("./Heading"));
11
10
  var _Avatar = _interopRequireDefault(require("./Avatar"));
@@ -123,14 +122,11 @@ const Card = exports.Card = /*#__PURE__*/(0, _react.forwardRef)(({
123
122
  componentName: "card-title"
124
123
  }, title), subTitle && /*#__PURE__*/_react.default.createElement(_Paragraph.Paragraph, {
125
124
  componentName: "card-subtitle"
126
- }, subTitle), bodyCopy && /*#__PURE__*/_react.default.createElement(_Animation.AnimatedDiv, {
127
- fadingEntrances: "fadeIn",
128
- duration: "faster"
129
- }, /*#__PURE__*/_react.default.createElement("div", {
125
+ }, subTitle), bodyCopy && /*#__PURE__*/_react.default.createElement("div", {
130
126
  className: `${componentName}__body`
131
127
  }, /*#__PURE__*/_react.default.createElement(_Paragraph.Paragraph, {
132
128
  className: `${componentName}__body-copy`
133
- }, bodyCopy), children)));
129
+ }, bodyCopy), children));
134
130
  });
135
131
 
136
132
  // Set display name for debugging
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = exports.Hero = void 0;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
- var _Animation = require("./Animation");
9
8
  var _propTypes = require("prop-types");
10
9
  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); }
11
10
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
@@ -97,10 +96,7 @@ const Hero = exports.Hero = /*#__PURE__*/(0, _react.forwardRef)(({
97
96
  'aria-describedby': `${testId}-bg-description`
98
97
  })
99
98
  };
100
- return /*#__PURE__*/_react.default.createElement(_Animation.AnimatedDiv, {
101
- fadingEntrances: "fadeIn",
102
- duration: "faster"
103
- }, /*#__PURE__*/_react.default.createElement("section", _extends({
99
+ return /*#__PURE__*/_react.default.createElement("section", _extends({
104
100
  ref: ref,
105
101
  className: heroClasses,
106
102
  "data-testid": testId || finalComponentName,
@@ -115,7 +111,7 @@ const Hero = exports.Hero = /*#__PURE__*/(0, _react.forwardRef)(({
115
111
  "aria-hidden": "true"
116
112
  }), /*#__PURE__*/_react.default.createElement("div", {
117
113
  className: finalComponentName
118
- }, children)));
114
+ }, children));
119
115
  });
120
116
  Hero.propTypes = {
121
117
  // ===========================================
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = exports.Paragraph = void 0;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
- var _Animation = require("./Animation");
9
8
  var _propTypes = require("prop-types");
10
9
  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); }
11
10
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
@@ -66,15 +65,12 @@ const Paragraph = exports.Paragraph = /*#__PURE__*/(0, _react.forwardRef)(({
66
65
 
67
66
  // Build CSS classes: root class is componentName, then size, then className
68
67
  const paragraphClasses = [finalComponentName, size !== 'medium' && `${finalComponentName}--${size}`, finalClassName].filter(Boolean).join(' ').trim();
69
- return /*#__PURE__*/_react.default.createElement(_Animation.AnimatedDiv, {
70
- fadingEntrances: "fadeIn",
71
- duration: "faster"
72
- }, /*#__PURE__*/_react.default.createElement("p", _extends({
68
+ return /*#__PURE__*/_react.default.createElement("p", _extends({
73
69
  ref: ref,
74
70
  id: finalId,
75
71
  className: paragraphClasses,
76
72
  "data-testid": testId || 'paragraph'
77
- }, restProps), children));
73
+ }, restProps), children);
78
74
  });
79
75
 
80
76
  // Set display name for debugging
@@ -5,25 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = exports.Select = void 0;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
- var _propTypes = _interopRequireDefault(require("prop-types"));
8
+ var _propTypes = require("prop-types");
9
9
  var _Label = require("./Label");
10
10
  var _Error = require("./Error");
11
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
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); }
13
12
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
14
- const {
15
- string,
16
- number,
17
- bool,
18
- arrayOf,
19
- oneOfType,
20
- shape,
21
- element,
22
- func,
23
- object
24
- } = _propTypes.default;
25
- // components
26
-
27
13
  /**
28
14
  * Select - Accessible dropdown selection component with comprehensive form support
29
15
  *
@@ -254,18 +240,18 @@ Select.propTypes = {
254
240
  * The name attribute for the select input (required for form submission)
255
241
  * Used to identify the field in form data and for accessibility
256
242
  */
257
- name: string.isRequired,
243
+ name: _propTypes.string.isRequired,
258
244
  /**
259
245
  * The label text displayed above the select (required for accessibility)
260
246
  * Should clearly describe what the user is selecting
261
247
  */
262
- label: string.isRequired,
248
+ label: _propTypes.string.isRequired,
263
249
  /**
264
250
  * Function called when selection changes (required)
265
251
  * Receives the change event as parameter
266
252
  * @param {Event} event - The change event from the select
267
253
  */
268
- onChange: func.isRequired,
254
+ onChange: _propTypes.func.isRequired,
269
255
  // ==============
270
256
  // Content Props
271
257
  // ==============
@@ -273,7 +259,7 @@ Select.propTypes = {
273
259
  * Current selected value(s) - string for single select, array for multiple
274
260
  * Controls the select input (controlled component)
275
261
  */
276
- value: oneOfType([string, number, arrayOf(string)]),
262
+ value: (0, _propTypes.oneOfType)([_propTypes.string, _propTypes.number, (0, _propTypes.arrayOf)(_propTypes.string)]),
277
263
  /**
278
264
  * Array of options for the select dropdown
279
265
  * Can be strings, objects with {value, label}, or React elements
@@ -287,21 +273,21 @@ Select.propTypes = {
287
273
  * { value: 'ca', label: 'Canada', disabled: true }
288
274
  * ]
289
275
  */
290
- options: arrayOf(oneOfType([string, shape({
291
- value: oneOfType([string, number]).isRequired,
292
- label: string,
293
- disabled: bool
294
- }), element])),
276
+ options: (0, _propTypes.arrayOf)((0, _propTypes.oneOfType)([_propTypes.string, (0, _propTypes.shape)({
277
+ value: (0, _propTypes.oneOfType)([_propTypes.string, _propTypes.number]).isRequired,
278
+ label: _propTypes.string,
279
+ disabled: _propTypes.bool
280
+ }), _propTypes.element])),
295
281
  /**
296
282
  * Placeholder text shown when no option is selected
297
283
  * Not applicable for multiple selects
298
284
  */
299
- placeholder: string,
285
+ placeholder: _propTypes.string,
300
286
  /**
301
287
  * Additional help text displayed below the label
302
288
  * Provides context or instructions for the user
303
289
  */
304
- helpText: string,
290
+ helpText: _propTypes.string,
305
291
  // =============
306
292
  // Layout Props
307
293
  // =============
@@ -309,17 +295,17 @@ Select.propTypes = {
309
295
  * Whether to hide the label visually (but keep it for screen readers)
310
296
  * Use when layout constraints require hidden labels
311
297
  */
312
- hideLabel: bool,
298
+ hideLabel: _propTypes.bool,
313
299
  /**
314
300
  * Whether multiple options can be selected
315
301
  * Changes the select behavior and value type
316
302
  */
317
- multiple: bool,
303
+ multiple: _propTypes.bool,
318
304
  /**
319
305
  * Number of visible options (for multiple selects)
320
306
  * Controls the height of the select box
321
307
  */
322
- size: number,
308
+ size: _propTypes.number,
323
309
  // ==================
324
310
  // Validation Props
325
311
  // ==================
@@ -327,22 +313,22 @@ Select.propTypes = {
327
313
  * Whether selection is required for form validation
328
314
  * Adds visual indicator and accessibility attributes
329
315
  */
330
- required: bool,
316
+ required: _propTypes.bool,
331
317
  /**
332
318
  * Whether the select is in an error state
333
319
  * Shows error styling and sets aria-invalid
334
320
  */
335
- error: bool,
321
+ error: _propTypes.bool,
336
322
  /**
337
323
  * Error message to display when error is true
338
324
  * Announced by screen readers for accessibility
339
325
  */
340
- errorText: string,
326
+ errorText: _propTypes.string,
341
327
  /**
342
328
  * Whether the select is disabled
343
329
  * Prevents user interaction and excludes from form submission
344
330
  */
345
- disabled: bool,
331
+ disabled: _propTypes.bool,
346
332
  // ====================
347
333
  // Accessibility Props
348
334
  // ====================
@@ -350,27 +336,27 @@ Select.propTypes = {
350
336
  * Unique identifier for the select element
351
337
  * Generated automatically if not provided
352
338
  */
353
- id: string,
339
+ id: _propTypes.string,
354
340
  /**
355
341
  * Accessible label for screen readers when hideLabel is true
356
342
  * Should be provided when label is hidden visually
357
343
  */
358
- ariaLabel: string,
344
+ ariaLabel: _propTypes.string,
359
345
  /**
360
346
  * Space-separated IDs of elements that describe this select
361
347
  * Used for additional context or instructions
362
348
  */
363
- ariaDescribedBy: string,
349
+ ariaDescribedBy: _propTypes.string,
364
350
  /**
365
351
  * Explicitly set aria-required (usually handled by required prop)
366
352
  * Override for custom validation scenarios
367
353
  */
368
- ariaRequired: bool,
354
+ ariaRequired: _propTypes.bool,
369
355
  /**
370
356
  * Tab order position for keyboard navigation
371
357
  * Usually managed automatically by DOM order
372
358
  */
373
- tabIndex: number,
359
+ tabIndex: _propTypes.number,
374
360
  // ================
375
361
  // Event Handlers
376
362
  // ================
@@ -378,17 +364,17 @@ Select.propTypes = {
378
364
  * Function called when select receives focus
379
365
  * @param {Event} event - The focus event
380
366
  */
381
- onFocus: func,
367
+ onFocus: _propTypes.func,
382
368
  /**
383
369
  * Function called when select loses focus
384
370
  * @param {Event} event - The blur event
385
371
  */
386
- onBlur: func,
372
+ onBlur: _propTypes.func,
387
373
  /**
388
374
  * Function called on keydown events
389
375
  * @param {KeyboardEvent} event - The keyboard event
390
376
  */
391
- onKeyDown: func,
377
+ onKeyDown: _propTypes.func,
392
378
  // ==============
393
379
  // Styling Props
394
380
  // ==============
@@ -396,12 +382,12 @@ Select.propTypes = {
396
382
  * Additional CSS classes to apply to the wrapper
397
383
  * Merged with default component classes
398
384
  */
399
- className: string,
385
+ className: _propTypes.string,
400
386
  /**
401
387
  * Inline styles for the select element
402
388
  * Use sparingly - prefer CSS classes
403
389
  */
404
- style: object,
390
+ style: _propTypes.object,
405
391
  // ==============
406
392
  // Testing Props
407
393
  // ==============
@@ -409,12 +395,12 @@ Select.propTypes = {
409
395
  * Test ID for automated testing frameworks
410
396
  * Applied as data-testid attribute
411
397
  */
412
- 'data-testid': string,
398
+ 'data-testid': _propTypes.string,
413
399
  /**
414
400
  * Cypress test selector
415
401
  * Applied as data-cy attribute
416
402
  */
417
- 'data-cy': string
403
+ 'data-cy': _propTypes.string
418
404
  };
419
405
 
420
406
  // Set display name for better debugging and dev tools
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = exports.Tabs = void 0;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
- var _Animation = require("./Animation");
9
8
  var _propTypes = require("prop-types");
10
9
  var _ssrSafeId = require("../utils/ssrSafeId");
11
10
  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); }
@@ -185,10 +184,7 @@ const Tabs = exports.Tabs = /*#__PURE__*/(0, _react.forwardRef)(({
185
184
  tabIndex: isActive ? 0 : -1
186
185
  }, tabPanelProps, tab.panelProps), isActive && /*#__PURE__*/_react.default.createElement("div", {
187
186
  className: `${baseClass}__panel-content`
188
- }, /*#__PURE__*/_react.default.createElement(_Animation.AnimatedDiv, {
189
- fadingEntrances: "fadeIn",
190
- duration: "faster"
191
- }, typeof tab.content === 'function' ? tab.content() : tab.content)));
187
+ }, typeof tab.content === 'function' ? tab.content() : tab.content));
192
188
  })));
193
189
  });
194
190
 
@@ -8,7 +8,6 @@ var _react = _interopRequireWildcard(require("react"));
8
8
  var _propTypes = require("prop-types");
9
9
  var _Label = require("./Label");
10
10
  var _Error = require("./Error");
11
- var _Animation = require("./Animation");
12
11
  var _ssrSafeId = require("../utils/ssrSafeId");
13
12
  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); }
14
13
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); } /*eslint-disable no-unused-vars*/ // components
@@ -110,10 +109,7 @@ const TextInput = exports.TextInput = /*#__PURE__*/(0, _react.forwardRef)(({
110
109
  // Build CSS classes
111
110
  const wrapperClasses = [`${componentName}-wrapper`, finalClassName, `${componentName}-wrapper--${variant}`, `${componentName}-wrapper--${size}`, error && `${componentName}-wrapper--error`, disabled && `${componentName}-wrapper--disabled`, readOnly && `${componentName}-wrapper--readonly`].filter(Boolean).join(' ');
112
111
  const inputClasses = ['input', 'text-input', `text-input--${variant}`, `text-input--${size}`, `text-input--type-${finalType}`, error && 'text-input--error', disabled && 'text-input--disabled', readOnly && 'text-input--readonly'].filter(Boolean).join(' ');
113
- return /*#__PURE__*/_react.default.createElement(_Animation.AnimatedDiv, {
114
- fadingEntrances: "fadeIn",
115
- duration: "faster"
116
- }, /*#__PURE__*/_react.default.createElement("div", {
112
+ return /*#__PURE__*/_react.default.createElement("div", {
117
113
  className: wrapperClasses,
118
114
  "data-testid": `${componentName}-wrapper`
119
115
  }, showLabel && finalLabel && /*#__PURE__*/_react.default.createElement(_Label.Label, {
@@ -158,7 +154,7 @@ const TextInput = exports.TextInput = /*#__PURE__*/(0, _react.forwardRef)(({
158
154
  className: `${componentName}__error`,
159
155
  role: "alert",
160
156
  "aria-live": "polite"
161
- }, errorText)));
157
+ }, errorText));
162
158
  });
163
159
 
164
160
  // Set display name for debugging
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abstraks-dev/ui-library",
3
- "version": "1.4.0",
3
+ "version": "2.0.0",
4
4
  "description": "User Interface library",
5
5
  "main": "dist/index.js",
6
6
  "files": [