@nimbus-ds/alert 2.4.0-rc.4 → 2.4.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  The Alert component allows us to communicate about changes or special conditions in pages or sections.
4
4
 
5
+ ## 2025-03-18 `2.4.0`
6
+
7
+ #### 🎉 New features
8
+
9
+ - Adds `use-client` directive to the build output in order to support NextJS applications. ([#276](https://github.com/TiendaNube/nimbus-design-system/pull/276) by [@joacotornello](https://github.com/joacotornello))
10
+
11
+ ### 💡 Others
12
+
13
+ - Rebuild after build process changes to add support for modular imports and Server Components. ([#276](https://github.com/TiendaNube/nimbus-design-system/pull/276) by [@joacotornello](https://github.com/joacotornello))
14
+
5
15
  ## 2023-12-22 `2.3.2`
6
16
 
7
17
  - Update component with new color tokens from `@nimbus-ds/tokens` package. ([#215](https://github.com/TiendaNube/nimbus-design-system/pull/215) by [@juanchigallego](https://github.com/juanchigallego))
@@ -0,0 +1,90 @@
1
+ # Changelog
2
+
3
+ The Alert component allows us to communicate about changes or special conditions in pages or sections.
4
+
5
+ ## 2025-03-18 `2.4.0`
6
+
7
+ #### 🎉 New features
8
+
9
+ - Adds `use-client` directive to the build output in order to support NextJS applications. ([#276](https://github.com/TiendaNube/nimbus-design-system/pull/276) by [@joacotornello](https://github.com/joacotornello))
10
+
11
+ ### 💡 Others
12
+
13
+ - Rebuild after build process changes to add support for modular imports and Server Components. ([#276](https://github.com/TiendaNube/nimbus-design-system/pull/276) by [@joacotornello](https://github.com/joacotornello))
14
+
15
+ ## 2023-12-22 `2.3.2`
16
+
17
+ - Update component with new color tokens from `@nimbus-ds/tokens` package. ([#215](https://github.com/TiendaNube/nimbus-design-system/pull/215) by [@juanchigallego](https://github.com/juanchigallego))
18
+
19
+ ## 2023-03-27 `2.3.1`
20
+
21
+ ### 🐛 Bug fixes
22
+
23
+ - Adjusted internal spacing of components when the alert does not have the removal function. ([#134](https://github.com/TiendaNube/nimbus-design-system/pull/134) by [@juniorconquista](https://github.com/juniorconquista))
24
+
25
+ ## 2023-03-13 `2.3.0`
26
+
27
+ ### 💡 Others
28
+
29
+ - Refactored use of `color tokens` in internal components by removing `.` per `-`. ([#110](https://github.com/TiendaNube/nimbus-design-system/pull/110) by [@juniorconquista](https://github.com/juniorconquista))
30
+ - Refactored style classes to have more semantic names. ([#110](https://github.com/TiendaNube/nimbus-design-system/pull/110) by [@juniorconquista](https://github.com/juniorconquista))
31
+
32
+ ## 2023-02-23 `2.2.0`
33
+
34
+ ### 🎉 New features
35
+
36
+ - Added server side-rendering support to component. ([#105](https://github.com/TiendaNube/nimbus-design-system/pull/105) by [@juniorconquista](https://github.com/juniorconquista))
37
+
38
+ ## 2023-02-16 `2.1.0`
39
+
40
+ ### 🎉 New features
41
+
42
+ - Removed external dependency from `@tiendanube/icons` package to now use internal `@nimbus-ds/icons` package. ([#94](https://github.com/TiendaNube/nimbus-design-system/pull/#94) by [@juniorconquista](https://github.com/juniorconquista))
43
+
44
+ ### 📚 3rd party library updates
45
+
46
+ - Removed `@tiendanube/icons@0.3.1`. ([#94](https://github.com/TiendaNube/nimbus-design-system/pull/#94) by [@juniorconquista](https://github.com/juniorconquista))
47
+
48
+ ## 2022-12-22 `2.0.0`
49
+
50
+ ### 💡 Others
51
+
52
+ - Removed direct dependency on `nimbus-ds/styles` package from component build. ([#69](https://github.com/TiendaNube/nimbus-design-system/pull/69) by [@juniorconquista](https://github.com/juniorconquista))
53
+
54
+ ## 2022-12-07 `1.1.0`
55
+
56
+ ### 🎉 New features
57
+
58
+ - Changed build build to consume inner package `@nimbus-ds/webpack`. ([#63](https://github.com/TiendaNube/nimbus-design-system/pull/63) by [@juniorconquista](https://github.com/juniorconquista))
59
+
60
+ ### 📚 3rd party library updates
61
+
62
+ - Removed `terser-webpack-plugin@5.3.5`. ([#63](https://github.com/TiendaNube/nimbus-design-system/pull/63) by [@juniorconquista](https://github.com/juniorconquista))
63
+ - Removed `ts-loader@9.3.1`. ([#63](https://github.com/TiendaNube/nimbus-design-system/pull/63) by [@juniorconquista](https://github.com/juniorconquista))
64
+ - Removed `webpack-cli@4.10.0`. ([#63](https://github.com/TiendaNube/nimbus-design-system/pull/63) by [@juniorconquista](https://github.com/juniorconquista))
65
+ - Removed `webpack@5.74.0`. ([#63](https://github.com/TiendaNube/nimbus-design-system/pull/63) by [@juniorconquista](https://github.com/juniorconquista))
66
+ - Removed `typescript@4.7.4`. ([#63](https://github.com/TiendaNube/nimbus-design-system/pull/63) by [@juniorconquista](https://github.com/juniorconquista))
67
+
68
+ ## 2022-11-16 `1.0.1`
69
+
70
+ ### 🐛 Bug fixes
71
+
72
+ - Externalizing component build style pack. ([#56](https://github.com/TiendaNube/nimbus-design-system/pull/#56) by [@juniorconquista](https://github.com/juniorconquista))
73
+
74
+ ## 2022-10-26 `1.0.0`
75
+
76
+ ### 📚 3rd party library updates
77
+
78
+ - Added `@vanilla-extract/webpack-plugin@2.1.11`. ([#50](https://github.com/TiendaNube/nimbus-design-system/pull/50) by [@juanchigallego](https://github.com/juanchigallego))
79
+ - Added `terser-webpack-plugin@5.3.5`. ([#50](https://github.com/TiendaNube/nimbus-design-system/pull/50) by [@juanchigallego](https://github.com/juanchigallego))
80
+ - Added `ts-loader@9.3.1`. ([#50](https://github.com/TiendaNube/nimbus-design-system/pull/50) by [@juanchigallego](https://github.com/juanchigallego))
81
+ - Added `typescript@4.7.4`. ([#50](https://github.com/TiendaNube/nimbus-design-system/pull/50) by [@juanchigallego](https://github.com/juanchigallego))
82
+ - Added `webpack@5.74.0`. ([#50](https://github.com/TiendaNube/nimbus-design-system/pull/50) by [@juanchigallego](https://github.com/juanchigallego))
83
+ - Added `webpack-cli@4.10.0`. ([#50](https://github.com/TiendaNube/nimbus-design-system/pull/50) by [@juanchigallego](https://github.com/juanchigallego))
84
+
85
+ ### 🎉 New features
86
+
87
+ - Added `title`, `appearance`, `children`, `onRemove` and `show` properties to the component API. ([#50](https://github.com/TiendaNube/nimbus-design-system/pull/50) by [@juanchigallego](https://github.com/juanchigallego))
88
+ - Added stories to the component. ([#50](https://github.com/TiendaNube/nimbus-design-system/pull/50) by [@juanchigallego](https://github.com/juanchigallego))
89
+ - Created new `Alert.Skeleton` subcomponent. ([#50](https://github.com/TiendaNube/nimbus-design-system/pull/50) by [@juanchigallego](https://github.com/juanchigallego))
90
+ - Added stories to the subcomponent `Alert.Skeleton`. ([#50](https://github.com/TiendaNube/nimbus-design-system/pull/50) by [@juanchigallego](https://github.com/juanchigallego))
package/dist/README.md ADDED
@@ -0,0 +1,61 @@
1
+ # `@nimbus-ds/alert`
2
+
3
+ [![@nimbus-ds/alert](https://img.shields.io/npm/v/@nimbus-ds/alert?label=%40nimbus-ds%2Falert)](https://www.npmjs.com/package/@nimbus-ds/alert)
4
+
5
+ The Alert component allows us to communicate about changes or special conditions in pages or sections.
6
+
7
+ ## Installation
8
+
9
+ ```sh
10
+ $ yarn add @nimbus-ds/alert
11
+ # or
12
+ $ npm install @nimbus-ds/alert
13
+ ```
14
+
15
+ ### Component Anatomy
16
+
17
+ The component consists of a box with rounded corners, plus an icon, an optional close button, and a slot that can hold other components.
18
+
19
+ ## Guidelines
20
+
21
+ We use the component when we need to notify the user about an important event, or that requires an action to solve a problem, to complete some data or to wait for an asynchronous confirmation.
22
+
23
+ ### Variants
24
+
25
+ The component has 5 different variants that can be used according to the message we need to communicate.
26
+
27
+ ### Neutral
28
+
29
+ This variant has a neutral connotation, it can be used to communicate useful information without visual emphasis, which helps the user to understand a resource about its operation.
30
+
31
+ ### Primary
32
+
33
+ This variant has a neutral connotation, it can be used to communicate useful information with visual emphasis, which helps the user to understand a resource about its operation.
34
+
35
+ ### Success
36
+
37
+ This variant has a positive connotation, it can be used to inform that an action performed by the user was successfully performed.
38
+
39
+ ### Warning
40
+
41
+ This variant has an intermediate connotation, it can be used to show relevant information to the user but that does not block its operation, nor does it require immediate attention.
42
+
43
+ ### Danger
44
+
45
+ This variant has a negative connotation, it can be used to show critical information that is affecting the user's operation and requires their attention to solve the problem.
46
+
47
+ ### Recommendation for use
48
+
49
+ - Notify that there is unfilled information or settings in another instance
50
+ - Notify that there are pending payments in another instance
51
+ - Notify that some process is running asynchronously
52
+
53
+ ### Related components
54
+
55
+ - Toast - Can be used to notify users in an informational tone, that is, it just describes that something has happened or is happening.
56
+
57
+ ## Usage
58
+
59
+ View docs [here](https://nimbus.nuvemshop.com.br/documentation/composite-components/alert).
60
+
61
+ <img alt="Nimbus" style="margin-bottom: 30px;" src="https://tiendanube.github.io/design-system-nimbus/static/media/nimbus-logo.ab60bd79.png" height="30" />
package/dist/index.js CHANGED
@@ -1 +1,2 @@
1
+ "use client";
1
2
  !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@nimbus-ds/styles"),require("@nimbus-ds/icons"),require("@nimbus-ds/title"),require("@nimbus-ds/icon"),require("@nimbus-ds/skeleton")):"function"==typeof define&&define.amd?define(["react","@nimbus-ds/styles","@nimbus-ds/icons","@nimbus-ds/title","@nimbus-ds/icon","@nimbus-ds/skeleton"],t):"object"==typeof exports?exports["@nimbus-ds/alert"]=t(require("react"),require("@nimbus-ds/styles"),require("@nimbus-ds/icons"),require("@nimbus-ds/title"),require("@nimbus-ds/icon"),require("@nimbus-ds/skeleton")):e["@nimbus-ds/alert"]=t(e.react,e["@nimbus-ds/styles"],e["@nimbus-ds/icons"],e["@nimbus-ds/title"],e["@nimbus-ds/icon"],e["@nimbus-ds/skeleton"])}(global,((e,t,r,n,o,a)=>(()=>{"use strict";var i={750:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Alert=void 0;const n=r(769).__importDefault(r(155)),o=r(367),a=r(809),i=r(593),s=r(208),c=r(337),l=r(730),u=({className:e,style:t,title:r,appearance:c="neutral",children:u,onRemove:f,show:p=!0,...d})=>{const y=l.alertVariants[c].icon;return p?n.default.createElement("div",{...d,"aria-live":"polite",role:l.alertVariants[c].role,className:o.alert.classnames.appearance[c]},n.default.createElement("div",{className:o.alert.classnames.container},n.default.createElement(s.Icon,{color:`${c}-textLow`,source:n.default.createElement(y,null)}),n.default.createElement("div",{className:o.alert.classnames.container__body},r&&n.default.createElement(i.Title,{as:"h6",color:`${c}-textHigh`,lineHeight:"4"},r),n.default.createElement("div",{className:o.alert.classnames.container__content},u))),f&&n.default.createElement("button",{"aria-label":"Dismiss alert",className:o.alert.classnames.container__close_appearance[c],"data-testid":"dismiss-alert-button",type:"button",onClick:f,tabIndex:0},n.default.createElement(s.Icon,{color:`${c}-textLow`,source:n.default.createElement(a.CloseIcon,null)}))):null};t.Alert=u,u.Skeleton=c.AlertSkeleton,u.displayName="Alert",u.Skeleton.displayName="Alert.Skeleton"},730:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.alertVariants=void 0;const n=r(809);t.alertVariants={neutral:{icon:n.InfoCircleIcon,role:"status"},primary:{icon:n.InfoCircleIcon,role:"status"},success:{icon:n.CheckCircleIcon,role:"status"},warning:{icon:n.ExclamationCircleIcon,role:"alert"},danger:{icon:n.ExclamationTriangleIcon,role:"alert"}}},298:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AlertSkeleton=void 0;const n=r(769).__importDefault(r(155)),o=r(334);t.AlertSkeleton=({width:e,height:t,"data-testid":r})=>n.default.createElement(o.Skeleton,{width:e??"100%",height:t??"4.875rem",borderRadius:"0.5rem","data-testid":r})},447:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AlertSkeleton=void 0;const n=r(298);var o=r(298);Object.defineProperty(t,"AlertSkeleton",{enumerable:!0,get:function(){return o.AlertSkeleton}}),t.default=n.AlertSkeleton},337:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});r(769).__exportStar(r(447),t)},208:e=>{e.exports=o},809:e=>{e.exports=r},334:e=>{e.exports=a},367:e=>{e.exports=t},593:e=>{e.exports=n},155:t=>{t.exports=e},769:(e,t,r)=>{r.r(t),r.d(t,{__addDisposableResource:()=>C,__assign:()=>a,__asyncDelegator:()=>P,__asyncGenerator:()=>S,__asyncValues:()=>x,__await:()=>j,__awaiter:()=>y,__classPrivateFieldGet:()=>I,__classPrivateFieldIn:()=>q,__classPrivateFieldSet:()=>D,__createBinding:()=>b,__decorate:()=>s,__disposeResources:()=>M,__esDecorate:()=>l,__exportStar:()=>m,__extends:()=>o,__generator:()=>_,__importDefault:()=>T,__importStar:()=>A,__makeTemplateObject:()=>E,__metadata:()=>d,__param:()=>c,__propKey:()=>f,__read:()=>h,__rest:()=>i,__runInitializers:()=>u,__setFunctionName:()=>p,__spread:()=>w,__spreadArray:()=>O,__spreadArrays:()=>g,__values:()=>v,default:()=>N});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var a=function(){return a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};function i(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function s(e,t,r,n){var o,a=arguments.length,i=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(i=(a<3?o(i):a>3?o(t,r,i):o(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i}function c(e,t){return function(r,n){t(r,n,e)}}function l(e,t,r,n,o,a){function i(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,c=n.kind,l="getter"===c?"get":"setter"===c?"set":"value",u=!t&&e?n.static?e:e.prototype:null,f=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),p=!1,d=r.length-1;d>=0;d--){var y={};for(var _ in n)y[_]="access"===_?{}:n[_];for(var _ in n.access)y.access[_]=n.access[_];y.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");a.push(i(e||null))};var b=(0,r[d])("accessor"===c?{get:f.get,set:f.set}:f[l],y);if("accessor"===c){if(void 0===b)continue;if(null===b||"object"!=typeof b)throw new TypeError("Object expected");(s=i(b.get))&&(f.get=s),(s=i(b.set))&&(f.set=s),(s=i(b.init))&&o.unshift(s)}else(s=i(b))&&("field"===c?o.unshift(s):f[l]=s)}u&&Object.defineProperty(u,n.name,f),p=!0}function u(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0}function f(e){return"symbol"==typeof e?e:"".concat(e)}function p(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function d(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function y(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((n=n.apply(e,t||[])).next())}))}function _(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}var b=Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function m(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||b(t,e,r)}function v(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function w(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(h(arguments[t]));return e}function g(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)n[o]=a[i];return n}function O(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function j(e){return this instanceof j?(this.v=e,this):new j(e)}function S(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n;function i(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||s(e,t)}))})}function s(e,t){try{(r=o[e](t)).value instanceof j?Promise.resolve(r.value.v).then(c,l):u(a[0][2],r)}catch(e){u(a[0][3],e)}var r}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}}function P(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:j(e[n](t)),done:!1}:o?o(t):t}:o}}function x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=v(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}}function E(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var k=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function A(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&b(t,e,r);return k(t,e),t}function T(e){return e&&e.__esModule?e:{default:e}}function I(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function D(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}function q(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function C(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose]}if("function"!=typeof n)throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var R="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function M(e){function t(t){e.error=e.hasError?new R(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function r(){for(;e.stack.length;){var n=e.stack.pop();try{var o=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(o).then(r,(function(e){return t(e),r()}))}catch(e){t(e)}}if(e.hasError)throw e.error}()}const N={__extends:o,__assign:a,__rest:i,__decorate:s,__param:c,__metadata:d,__awaiter:y,__generator:_,__createBinding:b,__exportStar:m,__values:v,__read:h,__spread:w,__spreadArrays:g,__spreadArray:O,__await:j,__asyncGenerator:S,__asyncDelegator:P,__asyncValues:x,__makeTemplateObject:E,__importStar:A,__importDefault:T,__classPrivateFieldGet:I,__classPrivateFieldSet:D,__classPrivateFieldIn:q,__addDisposableResource:C,__disposeResources:M}}},s={};function c(e){var t=s[e];if(void 0!==t)return t.exports;var r=s[e]={exports:{}};return i[e](r,r.exports,c),r.exports}c.d=(e,t)=>{for(var r in t)c.o(t,r)&&!c.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{var e=l;Object.defineProperty(e,"__esModule",{value:!0}),e.Alert=void 0;const t=c(750);var r=c(750);Object.defineProperty(e,"Alert",{enumerable:!0,get:function(){return r.Alert}}),e.default=t.Alert})(),l})()));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nimbus-ds/alert",
3
- "version": "2.4.0-rc.4",
3
+ "version": "2.4.0",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -14,10 +14,10 @@
14
14
  "version": "yarn version"
15
15
  },
16
16
  "dependencies": {
17
- "@nimbus-ds/icon": "^3.1.0-rc.4",
18
- "@nimbus-ds/icons": "^1.7.0-rc.1",
19
- "@nimbus-ds/skeleton": "^3.1.0-rc.4",
20
- "@nimbus-ds/title": "^3.2.0-rc.4"
17
+ "@nimbus-ds/icon": "^3.0.1",
18
+ "@nimbus-ds/icons": "^1.6.1",
19
+ "@nimbus-ds/skeleton": "^3.0.1",
20
+ "@nimbus-ds/title": "^3.1.3"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "react": "^16.8 || ^17.0 || ^18.0",
@@ -32,9 +32,8 @@
32
32
  "url": "https://github.com/TiendaNube/nimbus-design-system/issues"
33
33
  },
34
34
  "devDependencies": {
35
- "@nimbus-ds/box": "^4.2.0-rc.4",
36
- "@nimbus-ds/button": "^2.6.0-rc.4",
37
- "@nimbus-ds/webpack": "^1.4.1-rc.1"
38
- },
39
- "stableVersion": "2.3.2"
35
+ "@nimbus-ds/box": "^4.1.1",
36
+ "@nimbus-ds/button": "^2.6.0",
37
+ "@nimbus-ds/webpack": "^1.5.0"
38
+ }
40
39
  }