@nimbus-ds/patterns 1.33.3 → 1.34.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 +8 -0
- package/dist/CHANGELOG.md +8 -0
- package/dist/ProductUpdates/index.d.ts +51 -6
- package/dist/ProductUpdates/index.js +1 -1
- package/dist/components-props.json +1 -1
- package/dist/index.d.ts +50 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Nimbus is an open-source Design System created by Tiendanube / Nuvesmhop's team to empower and enhance more stories every day, with simplicity, accessibility, consistency and performance.
|
|
4
4
|
|
|
5
|
+
## 2026-03-02 `1.33.0`
|
|
6
|
+
|
|
7
|
+
#### 🎉 New features
|
|
8
|
+
|
|
9
|
+
- `ProductUpdates`: Added `ProductUpdates.Paginator` and `ProductUpdates.Footer` as compound sub-components. ([#155](https://github.com/TiendaNube/nimbus-patterns/pull/155) by [@joacotornello](https://github.com/joacotornello))
|
|
10
|
+
- `ProductUpdates`: Added `tag` prop to render an optional element inline before the title. ([#155](https://github.com/TiendaNube/nimbus-patterns/pull/155) by [@joacotornello](https://github.com/joacotornello))
|
|
11
|
+
- `ProductUpdates`: Added `bodyContentProps` prop to pass extra properties to the popover body container. ([#155](https://github.com/TiendaNube/nimbus-patterns/pull/155) by [@joacotornello](https://github.com/joacotornello))
|
|
12
|
+
|
|
5
13
|
## 2026-02-25 `1.32.3`
|
|
6
14
|
|
|
7
15
|
#### 🐛 Bug fixes
|
package/dist/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Nimbus is an open-source Design System created by Tiendanube / Nuvesmhop's team to empower and enhance more stories every day, with simplicity, accessibility, consistency and performance.
|
|
4
4
|
|
|
5
|
+
## 2026-03-02 `1.33.0`
|
|
6
|
+
|
|
7
|
+
#### 🎉 New features
|
|
8
|
+
|
|
9
|
+
- `ProductUpdates`: Added `ProductUpdates.Paginator` and `ProductUpdates.Footer` as compound sub-components. ([#155](https://github.com/TiendaNube/nimbus-patterns/pull/155) by [@joacotornello](https://github.com/joacotornello))
|
|
10
|
+
- `ProductUpdates`: Added `tag` prop to render an optional element inline before the title. ([#155](https://github.com/TiendaNube/nimbus-patterns/pull/155) by [@joacotornello](https://github.com/joacotornello))
|
|
11
|
+
- `ProductUpdates`: Added `bodyContentProps` prop to pass extra properties to the popover body container. ([#155](https://github.com/TiendaNube/nimbus-patterns/pull/155) by [@joacotornello](https://github.com/joacotornello))
|
|
12
|
+
|
|
5
13
|
## 2026-02-25 `1.32.3`
|
|
6
14
|
|
|
7
15
|
#### 🐛 Bug fixes
|
|
@@ -1,9 +1,49 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v8.1.2
|
|
2
2
|
|
|
3
|
-
import { PopoverProperties } from '@nimbus-ds/components';
|
|
3
|
+
import { BoxProperties, PopoverProperties } from '@nimbus-ds/components';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
6
6
|
|
|
7
|
+
export interface ProductUpdatesPaginatorProperties {
|
|
8
|
+
/**
|
|
9
|
+
* Total number of items/steps in the pagination.
|
|
10
|
+
*/
|
|
11
|
+
totalItems: number;
|
|
12
|
+
/**
|
|
13
|
+
* Zero-based index of the currently active item.
|
|
14
|
+
*/
|
|
15
|
+
activeIndex: number;
|
|
16
|
+
}
|
|
17
|
+
export type ProductUpdatesPaginatorProps = ProductUpdatesPaginatorProperties & Omit<HTMLAttributes<HTMLElement>, "color" | "className" | "style">;
|
|
18
|
+
export declare const ProductUpdatesPaginator: React.FC<ProductUpdatesPaginatorProps>;
|
|
19
|
+
export interface ProductUpdatesFooterProperties {
|
|
20
|
+
/**
|
|
21
|
+
* Optional link rendered on the left side of the footer.
|
|
22
|
+
* @TJS-type React.ReactNode
|
|
23
|
+
*/
|
|
24
|
+
leftLink?: ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* Optional paginator element rendered in the center of the footer.
|
|
27
|
+
* @TJS-type React.ReactNode
|
|
28
|
+
*/
|
|
29
|
+
paginator?: ReactNode;
|
|
30
|
+
/**
|
|
31
|
+
* Optional action button rendered on the right side of the footer.
|
|
32
|
+
* @TJS-type React.ReactNode
|
|
33
|
+
*/
|
|
34
|
+
rightButton?: ReactNode;
|
|
35
|
+
/**
|
|
36
|
+
* When true, renders a full-width divider above the footer content.
|
|
37
|
+
* @default false
|
|
38
|
+
*/
|
|
39
|
+
renderDivider?: boolean;
|
|
40
|
+
}
|
|
41
|
+
export type ProductUpdatesFooterProps = ProductUpdatesFooterProperties & Omit<BoxProperties, "pt" | "children">;
|
|
42
|
+
export declare const ProductUpdatesFooter: React.FC<ProductUpdatesFooterProps>;
|
|
43
|
+
export interface ProductUpdatesComponents {
|
|
44
|
+
Paginator: typeof ProductUpdatesPaginator;
|
|
45
|
+
Footer: typeof ProductUpdatesFooter;
|
|
46
|
+
}
|
|
7
47
|
export interface ProductUpdatesProperties extends Omit<PopoverProperties, "content" | "appearance" | "padding" | "enabledDismiss"> {
|
|
8
48
|
/**
|
|
9
49
|
* Title of the Popover.
|
|
@@ -13,11 +53,20 @@ export interface ProductUpdatesProperties extends Omit<PopoverProperties, "conte
|
|
|
13
53
|
* Content text of the Popover.
|
|
14
54
|
*/
|
|
15
55
|
text: string;
|
|
56
|
+
/**
|
|
57
|
+
* Optional tag element rendered inline before the title.
|
|
58
|
+
* @TJS-type React.ReactNode
|
|
59
|
+
*/
|
|
60
|
+
tag?: ReactNode;
|
|
16
61
|
/**
|
|
17
62
|
* Optional content for the body of the Popover.
|
|
18
63
|
* @TJS-type React.ReactNode
|
|
19
64
|
*/
|
|
20
65
|
bodyContent?: ReactNode;
|
|
66
|
+
/**
|
|
67
|
+
* Optional properties for the content container of the popover body.
|
|
68
|
+
*/
|
|
69
|
+
bodyContentProps?: Omit<BoxProperties, "children">;
|
|
21
70
|
/**
|
|
22
71
|
* Optional bottom link to dismiss the Popover. If unset, an IconButton with an X will appear on the superior right corner.
|
|
23
72
|
* @TJS-type React.ReactNode
|
|
@@ -25,10 +74,6 @@ export interface ProductUpdatesProperties extends Omit<PopoverProperties, "conte
|
|
|
25
74
|
dismissLink?: ReactNode;
|
|
26
75
|
}
|
|
27
76
|
export type ProductUpdatesProps = ProductUpdatesProperties & HTMLAttributes<HTMLElement>;
|
|
28
|
-
export declare const ProductUpdates: React.FC<ProductUpdatesProps
|
|
29
|
-
|
|
30
|
-
export {
|
|
31
|
-
ProductUpdates as default,
|
|
32
|
-
};
|
|
77
|
+
export declare const ProductUpdates: React.FC<ProductUpdatesProps> & ProductUpdatesComponents;
|
|
33
78
|
|
|
34
79
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@nimbus-ds/components"),require("@nimbus-ds/icons")):"function"==typeof define&&define.amd?define(["react","@nimbus-ds/components","@nimbus-ds/icons"],t):"object"==typeof exports?exports["@nimbus-ds/patterns"]=t(require("react"),require("@nimbus-ds/components"),require("@nimbus-ds/icons")):e["@nimbus-ds/patterns"]=t(e.react,e["@nimbus-ds/components"],e["@nimbus-ds/icons"])}(global,((e,t,r)=>(()=>{"use strict";var n={6666:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ProductUpdates=void 0;const n=r(5163).__importStar(r(8156)),o=r(5280),i=r(3215),a=({className:e,style:t,title:r,text:a,bodyContent:c,dismissLink:l,...u})=>{const[s,f]=(0,n.useState)(!!u.visible),p=()=>f(!s),d=n.default.createElement(o.Box,{display:"flex",flexDirection:"column",gap:"2",width:"100%"},n.default.createElement(o.Text,{color:"neutral-background",fontSize:"base",fontWeight:"bold"},r),n.default.createElement(o.Text,{color:"neutral-background",fontSize:"base"},a)),y=l?n.default.createElement(o.Box,{display:"flex",flexDirection:"column",gap:"4",width:"100%"},d,c,n.default.createElement(o.Link,{as:"button",onClick:u?.onVisibility?()=>u?.onVisibility?.(!1):p,appearance:"neutral-background"},l)):n.default.createElement(o.Box,{display:"flex",flexDirection:"column",gap:"4",width:"100%"},n.default.createElement(o.Box,{pr:"8",position:"relative"},d,n.default.createElement(o.Box,{position:"absolute",top:"-16px",right:"-16px"},n.default.createElement(o.IconButton,{onClick:u?.onVisibility?()=>u?.onVisibility?.(!1):p,size:"2.75rem",source:n.default.createElement(o.Icon,{color:"neutral-background",source:n.default.createElement(i.CloseIcon,null)}),borderColor:"transparent",backgroundColor:"transparent"}))),c);return n.default.createElement(o.Popover,{...u,backgroundColor:"primary-interactiveHover",content:y,visible:void 0===u.visible?s:u.visible,onVisibility:u.onVisibility||(e=>f(e)),enabledDismiss:!1,enabledClick:!1})};t.ProductUpdates=a,a.displayName="ProductUpdates"},5163:(e,t,r)=>{r.r(t),r.d(t,{__assign:()=>i,__asyncDelegator:()=>j,__asyncGenerator:()=>P,__asyncValues:()=>S,__await:()=>x,__awaiter:()=>y,__classPrivateFieldGet:()=>C,__classPrivateFieldIn:()=>B,__classPrivateFieldSet:()=>D,__createBinding:()=>v,__decorate:()=>c,__esDecorate:()=>u,__exportStar:()=>m,__extends:()=>o,__generator:()=>b,__importDefault:()=>I,__importStar:()=>k,__makeTemplateObject:()=>E,__metadata:()=>d,__param:()=>l,__propKey:()=>f,__read:()=>_,__rest:()=>a,__runInitializers:()=>s,__setFunctionName:()=>p,__spread:()=>w,__spreadArray:()=>O,__spreadArrays:()=>g,__values:()=>h});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 i=function(){return i=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},i.apply(this,arguments)};function a(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 c(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function l(e,t){return function(r,n){t(r,n,e)}}function u(e,t,r,n,o,i){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var c,l=n.kind,u="getter"===l?"get":"setter"===l?"set":"value",s=!t&&e?n.static?e:e.prototype:null,f=t||(s?Object.getOwnPropertyDescriptor(s,n.name):{}),p=!1,d=r.length-1;d>=0;d--){var y={};for(var b in n)y[b]="access"===b?{}:n[b];for(var b in n.access)y.access[b]=n.access[b];y.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(e||null))};var v=(0,r[d])("accessor"===l?{get:f.get,set:f.set}:f[u],y);if("accessor"===l){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw new TypeError("Object expected");(c=a(v.get))&&(f.get=c),(c=a(v.set))&&(f.set=c),(c=a(v.init))&&o.push(c)}else(c=a(v))&&("field"===l?o.push(c):f[u]=c)}s&&Object.defineProperty(s,n.name,f),p=!0}function s(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,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function c(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,c)}l((n=n.apply(e,t||[])).next())}))}function b(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(l){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,l])}}}var v=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)||v(t,e,r)}function h(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 _(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function w(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(_(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 i=arguments[t],a=0,c=i.length;a<c;a++,o++)n[o]=i[a];return n}function O(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;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 x(e){return this instanceof x?(this.v=e,this):new x(e)}function P(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){i.push([e,t,r,n])>1||c(e,t)}))})}function c(e,t){try{(r=o[e](t)).value instanceof x?Promise.resolve(r.value.v).then(l,u):s(i[0][2],r)}catch(e){s(i[0][3],e)}var r}function l(e){c("next",e)}function u(e){c("throw",e)}function s(e,t){e(t),i.shift(),i.length&&c(i[0][0],i[0][1])}}function j(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:x(e[n](t)),done:!1}:o?o(t):t}:o}}function S(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=h(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 T=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function k(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)&&v(t,e,r);return T(t,e),t}function I(e){return e&&e.__esModule?e:{default:e}}function C(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 B(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)}},5280:e=>{e.exports=t},3215:e=>{e.exports=r},8156:t=>{t.exports=e}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return n[e](r,r.exports,i),r.exports}i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{var e=a;Object.defineProperty(e,"__esModule",{value:!0}),e.ProductUpdates=void 0;const t=i(6666);var r=i(6666);Object.defineProperty(e,"ProductUpdates",{enumerable:!0,get:function(){return r.ProductUpdates}}),e.default=t.ProductUpdates})(),a})()));
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@nimbus-ds/components"),require("@nimbus-ds/icons")):"function"==typeof define&&define.amd?define(["react","@nimbus-ds/components","@nimbus-ds/icons"],t):"object"==typeof exports?exports["@nimbus-ds/patterns"]=t(require("react"),require("@nimbus-ds/components"),require("@nimbus-ds/icons")):e["@nimbus-ds/patterns"]=t(e.react,e["@nimbus-ds/components"],e["@nimbus-ds/icons"])}(global,((e,t,r)=>(()=>{"use strict";var n={6666:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ProductUpdates=void 0;const n=r(5163).__importStar(r(8156)),o=r(5280),a=r(3215),i=r(1880),c=({className:e,style:t,title:r,text:i,tag:c,bodyContent:l,dismissLink:u,bodyContentProps:s,...f})=>{const[d,p]=(0,n.useState)(!!f.visible),y=f?.onVisibility?()=>f.onVisibility?.(!1):()=>p(!d),b=n.default.createElement(o.Box,{display:"flex",flexDirection:"column",gap:"2",width:"100%"},c?n.default.createElement(o.Box,{display:"flex",flexDirection:"row",alignItems:"center",gap:"2"},c,n.default.createElement(o.Text,{color:"neutral-background",fontSize:"base",fontWeight:"bold"},r)):n.default.createElement(o.Text,{color:"neutral-background",fontSize:"base",fontWeight:"bold"},r),n.default.createElement(o.Text,{color:"neutral-background",fontSize:"base"},i)),m=u?n.default.createElement(o.Box,{display:"flex",flexDirection:"column",gap:"4",width:"100%",...s},b,l,n.default.createElement(o.Link,{as:"button",onClick:y,appearance:"neutral-background"},u)):n.default.createElement(o.Box,{display:"flex",flexDirection:"column",gap:"4",width:"100%",...s},n.default.createElement(o.Box,{pr:"8",position:"relative"},b,n.default.createElement(o.Box,{position:"absolute",top:"-16px",right:"-16px"},n.default.createElement(o.IconButton,{onClick:y,"aria-label":"Close",size:"2.75rem",source:n.default.createElement(o.Icon,{color:"neutral-background",source:n.default.createElement(a.CloseIcon,null)}),borderColor:"transparent",backgroundColor:"transparent"}))),l);return n.default.createElement(o.Popover,{...f,backgroundColor:"primary-interactiveHover",content:m,visible:void 0===f.visible?d:f.visible,onVisibility:f.onVisibility||(e=>p(e)),enabledDismiss:!1,enabledClick:!1})};t.ProductUpdates=c,c.Paginator=i.ProductUpdatesPaginator,c.Footer=i.ProductUpdatesFooter,c.displayName="ProductUpdates",c.Paginator.displayName="ProductUpdates.Paginator",c.Footer.displayName="ProductUpdates.Footer"},4096:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=r(5163);n.__exportStar(r(6787),t),n.__exportStar(r(1880),t)},3016:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ProductUpdatesFooter=void 0;const n=r(5163).__importDefault(r(8156)),o=r(5280),a=({leftLink:e,paginator:t,rightButton:r,renderDivider:a,...i})=>n.default.createElement(o.Box,{...i},a&&n.default.createElement(o.Box,null,n.default.createElement(o.Divider,{appearance:"primary",marginLeft:"-16px",marginRight:"-16px",width:"auto"})),n.default.createElement(o.Box,{paddingTop:"4",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",width:"100%"},e&&n.default.createElement(o.Box,{display:"flex",alignItems:"center",flex:"1",mr:"2"},e),t&&n.default.createElement(o.Box,{display:"flex",flex:"2",alignItems:"center",justifyContent:"flex-start"},t),r&&n.default.createElement(o.Box,{display:"flex",alignItems:"center",justifyContent:"flex-end",flex:"1"},r)));t.ProductUpdatesFooter=a,a.displayName="ProductUpdatesFooter"},4743:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ProductUpdatesFooter=void 0;const n=r(3016);var o=r(3016);Object.defineProperty(t,"ProductUpdatesFooter",{enumerable:!0,get:function(){return o.ProductUpdatesFooter}}),t.default=n.ProductUpdatesFooter},649:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ProductUpdatesPaginator=void 0;const n=r(5163).__importDefault(r(8156)),o=r(5280);t.ProductUpdatesPaginator=({totalItems:e,activeIndex:t,...r})=>n.default.createElement(o.Box,{display:"flex",flexDirection:"row",gap:"1-5",alignItems:"center",role:"img","aria-label":`Step ${t+1} of ${e}`,...r},Array.from({length:e},((e,t)=>t)).map((e=>n.default.createElement(o.Box,{key:`paginator-dot-${e}`,width:e===t?"24px":"6px",height:"6px",borderRadius:"full",backgroundColor:e===t?"neutral-background":"primary-textLow","aria-hidden":"true"}))))},8332:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ProductUpdatesPaginator=void 0;const n=r(649);var o=r(649);Object.defineProperty(t,"ProductUpdatesPaginator",{enumerable:!0,get:function(){return o.ProductUpdatesPaginator}}),t.default=n.ProductUpdatesPaginator},1880:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=r(5163);n.__exportStar(r(8332),t),n.__exportStar(r(4743),t)},6787:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ProductUpdates=void 0;const n=r(6666);var o=r(6666);Object.defineProperty(t,"ProductUpdates",{enumerable:!0,get:function(){return o.ProductUpdates}}),t.default=n.ProductUpdates},5163:(e,t,r)=>{r.r(t),r.d(t,{__assign:()=>a,__asyncDelegator:()=>j,__asyncGenerator:()=>O,__asyncValues:()=>E,__await:()=>P,__awaiter:()=>y,__classPrivateFieldGet:()=>T,__classPrivateFieldIn:()=>B,__classPrivateFieldSet:()=>C,__createBinding:()=>m,__decorate:()=>c,__esDecorate:()=>u,__exportStar:()=>v,__extends:()=>o,__generator:()=>b,__importDefault:()=>I,__importStar:()=>k,__makeTemplateObject:()=>S,__metadata:()=>p,__param:()=>l,__propKey:()=>f,__read:()=>h,__rest:()=>i,__runInitializers:()=>s,__setFunctionName:()=>d,__spread:()=>g,__spreadArray:()=>x,__spreadArrays:()=>w,__values:()=>_});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 c(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 c=e.length-1;c>=0;c--)(o=e[c])&&(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 l(e,t){return function(r,n){t(r,n,e)}}function u(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 c,l=n.kind,u="getter"===l?"get":"setter"===l?"set":"value",s=!t&&e?n.static?e:e.prototype:null,f=t||(s?Object.getOwnPropertyDescriptor(s,n.name):{}),d=!1,p=r.length-1;p>=0;p--){var y={};for(var b in n)y[b]="access"===b?{}:n[b];for(var b in n.access)y.access[b]=n.access[b];y.addInitializer=function(e){if(d)throw new TypeError("Cannot add initializers after decoration has completed");a.push(i(e||null))};var m=(0,r[p])("accessor"===l?{get:f.get,set:f.set}:f[u],y);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(c=i(m.get))&&(f.get=c),(c=i(m.set))&&(f.set=c),(c=i(m.init))&&o.push(c)}else(c=i(m))&&("field"===l?o.push(c):f[u]=c)}s&&Object.defineProperty(s,n.name,f),d=!0}function s(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 d(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 p(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{l(n.next(e))}catch(e){a(e)}}function c(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,c)}l((n=n.apply(e,t||[])).next())}))}function b(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:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(l){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,l])}}}var m=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 v(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||m(t,e,r)}function _(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 g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(h(arguments[t]));return e}function w(){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,c=a.length;i<c;i++,o++)n[o]=a[i];return n}function x(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 P(e){return this instanceof P?(this.v=e,this):new P(e)}function O(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||c(e,t)}))})}function c(e,t){try{(r=o[e](t)).value instanceof P?Promise.resolve(r.value.v).then(l,u):s(a[0][2],r)}catch(e){s(a[0][3],e)}var r}function l(e){c("next",e)}function u(e){c("throw",e)}function s(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function j(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:P(e[n](t)),done:!1}:o?o(t):t}:o}}function E(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=_(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 S(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var U=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function k(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)&&m(t,e,r);return U(t,e),t}function I(e){return e&&e.__esModule?e:{default:e}}function T(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 C(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 B(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)}},5280:e=>{e.exports=t},3215:e=>{e.exports=r},8156:t=>{t.exports=e}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return n[e](r,r.exports,a),r.exports}return a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a(4096)})()));
|