@equisoft/design-elements-react 9.9.7-snapshot.20260114195701 → 9.9.7-snapshot.20260114214150
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/dist/bundle.js +2 -2
- package/package.json +3 -3
package/dist/bundle.js
CHANGED
|
@@ -814,7 +814,7 @@
|
|
|
814
814
|
}
|
|
815
815
|
`,v=(0,d.default)(c.Avatar)`
|
|
816
816
|
margin-right: ${({avatarOnly:e})=>e?0:"var(--spacing-1x)"};
|
|
817
|
-
`;function g(e){return e.find(e=>!e.disabled)}t.UserProfile=({ariaLabel:e,buttonAriaLabel:t,className:n,defaultOpen:a=!1,id:r,inverted:i=!0,tag:o,onMenuVisibilityChanged:d,options:c,userEmail:p,username:b,variant:y="avatar-only"})=>{const{t:w}=(0,s.useTranslation)("user-profile"),{isMobile:M}=(0,m.useDeviceContext)(),E=g(c),C=(0,u.useRef)(null),k=M||"avatar-only"===y;return(0,l.jsx)(h,Object.assign({ariaLabel:e||w("ariaLabel"),buttonAriaLabel:t,className:n,"data-testid":"user-profile",defaultOpen:a,dropdownMenuWidth:"auto",hasCaret:!k,id:r,icon:(0,l.jsx)(v,{avatarOnly:k,username:b}),inverted:i,tag:o,isMobile:M},k?{}:{label:b},{onMenuVisibilityChanged:d,firstItemRef:C,render:e=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(f.GroupItem,{id:"user-label",children:(0,l.jsx)(f.LabelItem,{label:b,description:p})}),(0,l.jsx)(f.GroupItem,{id:"user-actions",children:c.map(t=>(0,l.jsx)(f.NavItem,{"data-testid":`action-${t.value}`,ref:E===t?C:void 0,value:t.value,href:t.href,label:t.label,isHtmlLink:t.isHtmlLink,isExternalLink:t.isExternalLink,lozenge:t.lozenge,disabled:t.disabled,target:t.target,onClick:t.disabled?void 0:n=>{var a;null===(a=t.onClick)||void 0===a||a.call(t,n),e()}},t.value))})]})}))};try{t.getFirstFocusableItem.displayName="getFirstFocusableItem",t.getFirstFocusableItem.__docgenInfo={description:"",displayName:"getFirstFocusableItem",props:{length:{defaultValue:null,description:"Gets or sets the length of the array. This is a number one higher than the highest index in the array.",name:"length",required:!0,type:{name:"number"}},toString:{defaultValue:null,description:"Returns a string representation of an array.",name:"toString",required:!1,type:{name:"() => string"}},toLocaleString:{defaultValue:null,description:"Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.",name:"toLocaleString",required:!1,type:{name:"{ (): string; (locales: string | string[], options?: (NumberFormatOptions & DateTimeFormatOptions)): string; }"}},pop:{defaultValue:null,description:"Removes the last element from an array and returns it.\nIf the array is empty, undefined is returned and the array is not modified.",name:"pop",required:!0,type:{name:"() => NavItemProps | undefined"}},push:{defaultValue:null,description:"Appends new elements to the end of an array, and returns the new length of the array.\n@param items New elements to add to the array.",name:"push",required:!0,type:{name:"(...items: NavItemProps[]) => number"}},concat:{defaultValue:null,description:"Combines two or more arrays.\nThis method returns a new array without modifying any existing arrays.\n@param items Additional arrays and/or items to add to the end of the array.\n@param items Additional arrays and/or items to add to the end of the array.",name:"concat",required:!0,type:{name:"{ (...items: ConcatArray<NavItemProps>[]): NavItemProps[]; (...items: (NavItemProps | ConcatArray<NavItemProps>)[]): NavItemProps[]; }"}},join:{defaultValue:null,description:"Adds all the elements of an array into a string, separated by the specified separator string.\n@param separator A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma.",name:"join",required:!0,type:{name:"(separator?: string | undefined) => string"}},reverse:{defaultValue:null,description:"Reverses the elements in an array in place.\nThis method mutates the array and returns a reference to the same array.",name:"reverse",required:!0,type:{name:"() => NavItemProps[]"}},shift:{defaultValue:null,description:"Removes the first element from an array and returns it.\nIf the array is empty, undefined is returned and the array is not modified.",name:"shift",required:!0,type:{name:"() => NavItemProps | undefined"}},slice:{defaultValue:null,description:"Returns a copy of a section of an array.\nFor both start and end, a negative index can be used to indicate an offset from the end of the array.\nFor example, -2 refers to the second to last element of the array.\n@param start The beginning index of the specified portion of the array.\nIf start is undefined, then the slice begins at index 0.\n@param end The end index of the specified portion of the array. This is exclusive of the element at the index 'end'.\nIf end is undefined, then the slice extends to the end of the array.",name:"slice",required:!0,type:{name:"(start?: number | undefined, end?: number | undefined) => NavItemProps[]"}},sort:{defaultValue:null,description:"Sorts an array in place.\nThis method mutates the array and returns a reference to the same array.\n@param compareFn Function used to determine the order of the elements. It is expected to return\na negative value if the first argument is less than the second argument, zero if they're equal, and a positive\nvalue otherwise. If omitted, the elements are sorted in ascending, UTF-16 code unit order.\n```ts\n[11,2,22,1].sort((a, b) => a - b)\n```",name:"sort",required:!0,type:{name:"(compareFn?: ((a: NavItemProps, b: NavItemProps) => number) | undefined) => NavItemProps[]"}},splice:{defaultValue:null,description:"Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.\n@param start The zero-based location in the array from which to start removing elements.\n@param deleteCount The number of elements to remove. Omitting this argument will remove all elements from the start\nparamater location to end of the array. If value of this argument is either a negative number, zero, undefined, or a type\nthat cannot be converted to an integer, the function will evaluate the argument as zero and not remove any elements.\n@returns An array containing the elements that were deleted.\n@param start The zero-based location in the array from which to start removing elements.\n@param deleteCount The number of elements to remove. If value of this argument is either a negative number, zero,\nundefined, or a type that cannot be converted to an integer, the function will evaluate the argument as zero and\nnot remove any elements.\n@param items Elements to insert into the array in place of the deleted elements.\n@returns An array containing the elements that were deleted.",name:"splice",required:!0,type:{name:"{ (start: number, deleteCount?: number | undefined): NavItemProps[]; (start: number, deleteCount: number, ...items: NavItemProps[]): NavItemProps[]; }"}},unshift:{defaultValue:null,description:"Inserts new elements at the start of an array, and returns the new length of the array.\n@param items Elements to insert at the start of the array.",name:"unshift",required:!0,type:{name:"(...items: NavItemProps[]) => number"}},indexOf:{defaultValue:null,description:"Returns the index of the first occurrence of a value in an array, or -1 if it is not present.\n@param searchElement The value to locate in the array.\n@param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.",name:"indexOf",required:!0,type:{name:"(searchElement: NavItemProps, fromIndex?: number | undefined) => number"}},lastIndexOf:{defaultValue:null,description:"Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.\n@param searchElement The value to locate in the array.\n@param fromIndex The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array.",name:"lastIndexOf",required:!0,type:{name:"(searchElement: NavItemProps, fromIndex?: number | undefined) => number"}},every:{defaultValue:null,description:"Determines whether all the members of an array satisfy the specified test.\n@param predicate A function that accepts up to three arguments. The every method calls\nthe predicate function for each element in the array until the predicate returns a value\nwhich is coercible to the Boolean value false, or until the end of the array.\n@param thisArg An object to which the this keyword can refer in the predicate function.\nIf thisArg is omitted, undefined is used as the this value.\n@param predicate A function that accepts up to three arguments. The every method calls\nthe predicate function for each element in the array until the predicate returns a value\nwhich is coercible to the Boolean value false, or until the end of the array.\n@param thisArg An object to which the this keyword can refer in the predicate function.\nIf thisArg is omitted, undefined is used as the this value.",name:"every",required:!0,type:{name:"{ <S extends NavItemProps>(predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => value is S, thisArg?: any): this is S[]; (predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => unknown, thisArg?: any): boolean; }"}},some:{defaultValue:null,description:"Determines whether the specified callback function returns true for any element of an array.\n@param predicate A function that accepts up to three arguments. The some method calls\nthe predicate function for each element in the array until the predicate returns a value\nwhich is coercible to the Boolean value true, or until the end of the array.\n@param thisArg An object to which the this keyword can refer in the predicate function.\nIf thisArg is omitted, undefined is used as the this value.",name:"some",required:!0,type:{name:"(predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => unknown, thisArg?: any) => boolean"}},forEach:{defaultValue:null,description:"Performs the specified action for each element in an array.\n@param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.",name:"forEach",required:!0,type:{name:"(callbackfn: (value: NavItemProps, index: number, array: NavItemProps[]) => void, thisArg?: any) => void"}},map:{defaultValue:null,description:"Calls a defined callback function on each element of an array, and returns an array that contains the results.\n@param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.",name:"map",required:!0,type:{name:"<U>(callbackfn: (value: NavItemProps, index: number, array: NavItemProps[]) => U, thisArg?: any) => U[]"}},filter:{defaultValue:null,description:"Returns the elements of an array that meet the condition specified in a callback function.\n@param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.\n@param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.",name:"filter",required:!0,type:{name:"{ <S extends NavItemProps>(predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => value is S, thisArg?: any): S[]; (predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => unknown, thisArg?: any): NavItemProps[]; }"}},reduce:{defaultValue:null,description:"Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n@param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n@param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.",name:"reduce",required:!0,type:{name:"{ (callbackfn: (previousValue: NavItemProps, currentValue: NavItemProps, currentIndex: number, array: NavItemProps[]) => NavItemProps): NavItemProps; (callbackfn: (previousValue: NavItemProps, currentValue: NavItemProps, currentIndex: number, array: NavItemProps[]) => NavItemProps, initialValue: NavItemProps): NavIt..."}},reduceRight:{defaultValue:null,description:"Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n@param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n@param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.",name:"reduceRight",required:!0,type:{name:"{ (callbackfn: (previousValue: NavItemProps, currentValue: NavItemProps, currentIndex: number, array: NavItemProps[]) => NavItemProps): NavItemProps; (callbackfn: (previousValue: NavItemProps, currentValue: NavItemProps, currentIndex: number, array: NavItemProps[]) => NavItemProps, initialValue: NavItemProps): NavIt..."}},find:{defaultValue:null,description:"Returns the value of the first element in the array where predicate is true, and undefined\notherwise.\n@param predicate find calls predicate once for each element of the array, in ascending\norder, until it finds one where predicate returns true. If such an element is found, find\nimmediately returns that element value. Otherwise, find returns undefined.\n@param thisArg If provided, it will be used as the this value for each invocation of\npredicate. If it is not provided, undefined is used instead.",name:"find",required:!0,type:{name:"{ <S extends NavItemProps>(predicate: (value: NavItemProps, index: number, obj: NavItemProps[]) => value is S, thisArg?: any): S | undefined; (predicate: (value: NavItemProps, index: number, obj: NavItemProps[]) => unknown, thisArg?: any): NavItemProps | undefined; }"}},findIndex:{defaultValue:null,description:"Returns the index of the first element in the array where predicate is true, and -1\notherwise.\n@param predicate find calls predicate once for each element of the array, in ascending\norder, until it finds one where predicate returns true. If such an element is found,\nfindIndex immediately returns that element index. Otherwise, findIndex returns -1.\n@param thisArg If provided, it will be used as the this value for each invocation of\npredicate. If it is not provided, undefined is used instead.",name:"findIndex",required:!0,type:{name:"(predicate: (value: NavItemProps, index: number, obj: NavItemProps[]) => unknown, thisArg?: any) => number"}},fill:{defaultValue:null,description:"Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n@param value value to fill array section with\n@param start index to start filling the array at. If start is negative, it is treated as\nlength+start where length is the length of the array.\n@param end index to stop filling the array at. If end is negative, it is treated as\nlength+end.",name:"fill",required:!0,type:{name:"(value: NavItemProps, start?: number | undefined, end?: number | undefined) => NavItemProps[]"}},copyWithin:{defaultValue:null,description:"Returns the this object after copying a section of the array identified by start and end\nto the same array starting at position target\n@param target If target is negative, it is treated as length+target where length is the\nlength of the array.\n@param start If start is negative, it is treated as length+start. If end is negative, it\nis treated as length+end.\n@param end If not specified, length of the this object is used as its default value.",name:"copyWithin",required:!0,type:{name:"(target: number, start: number, end?: number | undefined) => NavItemProps[]"}},entries:{defaultValue:null,description:"Returns an iterable of key, value pairs for every entry in the array",name:"entries",required:!0,type:{name:"() => ArrayIterator<[number, NavItemProps]>"}},keys:{defaultValue:null,description:"Returns an iterable of keys in the array",name:"keys",required:!0,type:{name:"() => ArrayIterator<number>"}},values:{defaultValue:null,description:"Returns an iterable of values in the array",name:"values",required:!0,type:{name:"() => ArrayIterator<NavItemProps>"}},includes:{defaultValue:null,description:"Determines whether an array includes a certain element, returning true or false as appropriate.\n@param searchElement The element to search for.\n@param fromIndex The position in this array at which to begin searching for searchElement.",name:"includes",required:!0,type:{name:"(searchElement: NavItemProps, fromIndex?: number | undefined) => boolean"}},flatMap:{defaultValue:null,description:"Calls a defined callback function on each element of an array. Then, flattens the result into\na new array.\nThis is identical to a map followed by flat with depth 1.\n@param callback A function that accepts up to three arguments. The flatMap method calls the\ncallback function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callback function. If\nthisArg is omitted, undefined is used as the this value.",name:"flatMap",required:!0,type:{name:"<U, This = undefined>(callback: (this: This, value: NavItemProps, index: number, array: NavItemProps[]) => U | readonly U[], thisArg?: This | undefined) => U[]"}},flat:{defaultValue:null,description:"Returns a new array with all sub-array elements concatenated into it recursively up to the\nspecified depth.\n@param depth The maximum recursion depth",name:"flat",required:!0,type:{name:"<A, D extends number = 1>(this: A, depth?: D | undefined) => FlatArray<A, D>[]"}},"__@iterator@64528":{defaultValue:null,description:"Iterator",name:"__@iterator@64528",required:!0,type:{name:"() => ArrayIterator<NavItemProps>"}},"__@unscopables@66144":{defaultValue:null,description:"Is an object whose properties have the value 'true'\nwhen they will be absent when used in a 'with' statement.",name:"__@unscopables@66144",required:!0,type:{name:"{ [x: number]: boolean | undefined; length?: boolean | undefined; toString?: boolean | undefined; toLocaleString?: boolean | undefined; pop?: boolean | undefined; push?: boolean | undefined; ... 28 more ...; readonly [Symbol.unscopables]?: boolean | undefined; }"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/user-profile/user-profile.tsx#getFirstFocusableItem"]={docgenInfo:t.getFirstFocusableItem.__docgenInfo,name:"getFirstFocusableItem",path:"src/components/user-profile/user-profile.tsx#getFirstFocusableItem"})}catch(e){}try{t.UserProfile.displayName="UserProfile",t.UserProfile.__docgenInfo={description:"",displayName:"UserProfile",props:{ariaLabel:{defaultValue:{value:"'User menu'"},description:"Sets nav's description",name:"ariaLabel",required:!1,type:{name:"string"}},buttonAriaLabel:{defaultValue:null,description:"",name:"buttonAriaLabel",required:!1,type:{name:"string"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},defaultOpen:{defaultValue:{value:!1},description:"Sets menu open by default",name:"defaultOpen",required:!1,type:{name:"boolean"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},inverted:{defaultValue:{value:!0},description:"",name:"inverted",required:!1,type:{name:"boolean"}},tag:{defaultValue:null,description:"Set wrapper element tag",name:"tag",required:!1,type:{name:"enum",value:[{value:'"div"'},{value:'"nav"'}]}},options:{defaultValue:null,description:"",name:"options",required:!0,type:{name:"NavItemProps[]"}},username:{defaultValue:null,description:"",name:"username",required:!0,type:{name:"string"}},userEmail:{defaultValue:null,description:"",name:"userEmail",required:!1,type:{name:"string"}},onMenuVisibilityChanged:{defaultValue:null,description:"",name:"onMenuVisibilityChanged",required:!1,type:{name:"((isOpen: boolean) => void)"}},variant:{defaultValue:{value:"avatar-only"},description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"avatar-only"'},{value:'"full-name"'}]}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/user-profile/user-profile.tsx#UserProfile"]={docgenInfo:t.UserProfile.__docgenInfo,name:"UserProfile",path:"src/components/user-profile/user-profile.tsx#UserProfile"})}catch(e){}},17412(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NavItem=t.LabelItem=t.ItemContent=t.GroupItem=t.ExternalItem=void 0;var a=n(41895);Object.defineProperty(t,"ExternalItem",{enumerable:!0,get:function(){return a.ExternalItem}});var r=n(29817);Object.defineProperty(t,"GroupItem",{enumerable:!0,get:function(){return r.GroupItem}});var i=n(55179);Object.defineProperty(t,"ItemContent",{enumerable:!0,get:function(){return i.ItemContent}});var o=n(38060);Object.defineProperty(t,"LabelItem",{enumerable:!0,get:function(){return o.LabelItem}});var l=n(5859);Object.defineProperty(t,"NavItem",{enumerable:!0,get:function(){return l.NavItem}})},17419(e,t,n){"use strict";t.isSameISOWeek=function(e,t,n){return(0,a.isSameWeek)(e,t,{...n,weekStartsOn:1})};var a=n(624)},17448(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>l});var a,r,i=n(39155);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},o.apply(null,arguments)}const l=function(e){return i.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,className:"copy_svg__feather copy_svg__feather-copy",viewBox:"0 0 24 24"},e),a||(a=i.createElement("rect",{width:13,height:13,x:9,y:9,rx:2,ry:2})),r||(r=i.createElement("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})))}},17461(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Accordion=t.StyledAccordionGroup=void 0;const r=n(31085),i=n(39155),o=a(n(88694)),l=n(66642),u=n(28353);t.StyledAccordionGroup=o.default.div`
|
|
817
|
+
`;function g(e){return e.find(e=>!e.disabled)}t.UserProfile=({ariaLabel:e,buttonAriaLabel:t,className:n,defaultOpen:a=!1,id:r,inverted:i=!0,tag:o,onMenuVisibilityChanged:d,options:c,userEmail:p,username:b,variant:y="avatar-only"})=>{const{t:w}=(0,s.useTranslation)("user-profile"),{isMobile:M}=(0,m.useDeviceContext)(),E=g(c),C=(0,u.useRef)(null),k=M||"avatar-only"===y;return(0,l.jsx)(h,Object.assign({ariaLabel:e||w("ariaLabel"),buttonAriaLabel:t,className:n,"data-testid":"user-profile",defaultOpen:a,dropdownMenuWidth:"auto",hasCaret:!k,id:r,icon:(0,l.jsx)(v,{avatarOnly:k,username:b}),inverted:i,tag:o,isMobile:M},k?{}:{label:b},{onMenuVisibilityChanged:d,firstItemRef:C,render:e=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(f.GroupItem,{id:"user-label",children:(0,l.jsx)(f.LabelItem,{label:b,description:p})}),(0,l.jsx)(f.GroupItem,{id:"user-actions",children:c.map(t=>(0,l.jsx)(f.NavItem,{"data-testid":`action-${t.value}`,ref:E===t?C:void 0,value:t.value,href:t.href,label:t.label,isHtmlLink:t.isHtmlLink,isExternalLink:t.isExternalLink,lozenge:t.lozenge,disabled:t.disabled,target:t.target,onClick:t.disabled?void 0:n=>{var a;null===(a=t.onClick)||void 0===a||a.call(t,n),e()}},t.value))})]})}))};try{t.getFirstFocusableItem.displayName="getFirstFocusableItem",t.getFirstFocusableItem.__docgenInfo={description:"",displayName:"getFirstFocusableItem",props:{length:{defaultValue:null,description:"Gets or sets the length of the array. This is a number one higher than the highest index in the array.",name:"length",required:!0,type:{name:"number"}},toString:{defaultValue:null,description:"Returns a string representation of an array.",name:"toString",required:!1,type:{name:"() => string"}},toLocaleString:{defaultValue:null,description:"Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.",name:"toLocaleString",required:!1,type:{name:"{ (): string; (locales: string | string[], options?: (NumberFormatOptions & DateTimeFormatOptions)): string; }"}},pop:{defaultValue:null,description:"Removes the last element from an array and returns it.\nIf the array is empty, undefined is returned and the array is not modified.",name:"pop",required:!0,type:{name:"() => NavItemProps | undefined"}},push:{defaultValue:null,description:"Appends new elements to the end of an array, and returns the new length of the array.\n@param items New elements to add to the array.",name:"push",required:!0,type:{name:"(...items: NavItemProps[]) => number"}},concat:{defaultValue:null,description:"Combines two or more arrays.\nThis method returns a new array without modifying any existing arrays.\n@param items Additional arrays and/or items to add to the end of the array.\n@param items Additional arrays and/or items to add to the end of the array.",name:"concat",required:!0,type:{name:"{ (...items: ConcatArray<NavItemProps>[]): NavItemProps[]; (...items: (NavItemProps | ConcatArray<NavItemProps>)[]): NavItemProps[]; }"}},join:{defaultValue:null,description:"Adds all the elements of an array into a string, separated by the specified separator string.\n@param separator A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma.",name:"join",required:!0,type:{name:"(separator?: string | undefined) => string"}},reverse:{defaultValue:null,description:"Reverses the elements in an array in place.\nThis method mutates the array and returns a reference to the same array.",name:"reverse",required:!0,type:{name:"() => NavItemProps[]"}},shift:{defaultValue:null,description:"Removes the first element from an array and returns it.\nIf the array is empty, undefined is returned and the array is not modified.",name:"shift",required:!0,type:{name:"() => NavItemProps | undefined"}},slice:{defaultValue:null,description:"Returns a copy of a section of an array.\nFor both start and end, a negative index can be used to indicate an offset from the end of the array.\nFor example, -2 refers to the second to last element of the array.\n@param start The beginning index of the specified portion of the array.\nIf start is undefined, then the slice begins at index 0.\n@param end The end index of the specified portion of the array. This is exclusive of the element at the index 'end'.\nIf end is undefined, then the slice extends to the end of the array.",name:"slice",required:!0,type:{name:"(start?: number | undefined, end?: number | undefined) => NavItemProps[]"}},sort:{defaultValue:null,description:"Sorts an array in place.\nThis method mutates the array and returns a reference to the same array.\n@param compareFn Function used to determine the order of the elements. It is expected to return\na negative value if the first argument is less than the second argument, zero if they're equal, and a positive\nvalue otherwise. If omitted, the elements are sorted in ascending, UTF-16 code unit order.\n```ts\n[11,2,22,1].sort((a, b) => a - b)\n```",name:"sort",required:!0,type:{name:"(compareFn?: ((a: NavItemProps, b: NavItemProps) => number) | undefined) => NavItemProps[]"}},splice:{defaultValue:null,description:"Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.\n@param start The zero-based location in the array from which to start removing elements.\n@param deleteCount The number of elements to remove. Omitting this argument will remove all elements from the start\nparamater location to end of the array. If value of this argument is either a negative number, zero, undefined, or a type\nthat cannot be converted to an integer, the function will evaluate the argument as zero and not remove any elements.\n@returns An array containing the elements that were deleted.\n@param start The zero-based location in the array from which to start removing elements.\n@param deleteCount The number of elements to remove. If value of this argument is either a negative number, zero,\nundefined, or a type that cannot be converted to an integer, the function will evaluate the argument as zero and\nnot remove any elements.\n@param items Elements to insert into the array in place of the deleted elements.\n@returns An array containing the elements that were deleted.",name:"splice",required:!0,type:{name:"{ (start: number, deleteCount?: number | undefined): NavItemProps[]; (start: number, deleteCount: number, ...items: NavItemProps[]): NavItemProps[]; }"}},unshift:{defaultValue:null,description:"Inserts new elements at the start of an array, and returns the new length of the array.\n@param items Elements to insert at the start of the array.",name:"unshift",required:!0,type:{name:"(...items: NavItemProps[]) => number"}},indexOf:{defaultValue:null,description:"Returns the index of the first occurrence of a value in an array, or -1 if it is not present.\n@param searchElement The value to locate in the array.\n@param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.",name:"indexOf",required:!0,type:{name:"(searchElement: NavItemProps, fromIndex?: number | undefined) => number"}},lastIndexOf:{defaultValue:null,description:"Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.\n@param searchElement The value to locate in the array.\n@param fromIndex The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array.",name:"lastIndexOf",required:!0,type:{name:"(searchElement: NavItemProps, fromIndex?: number | undefined) => number"}},every:{defaultValue:null,description:"Determines whether all the members of an array satisfy the specified test.\n@param predicate A function that accepts up to three arguments. The every method calls\nthe predicate function for each element in the array until the predicate returns a value\nwhich is coercible to the Boolean value false, or until the end of the array.\n@param thisArg An object to which the this keyword can refer in the predicate function.\nIf thisArg is omitted, undefined is used as the this value.\n@param predicate A function that accepts up to three arguments. The every method calls\nthe predicate function for each element in the array until the predicate returns a value\nwhich is coercible to the Boolean value false, or until the end of the array.\n@param thisArg An object to which the this keyword can refer in the predicate function.\nIf thisArg is omitted, undefined is used as the this value.",name:"every",required:!0,type:{name:"{ <S extends NavItemProps>(predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => value is S, thisArg?: any): this is S[]; (predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => unknown, thisArg?: any): boolean; }"}},some:{defaultValue:null,description:"Determines whether the specified callback function returns true for any element of an array.\n@param predicate A function that accepts up to three arguments. The some method calls\nthe predicate function for each element in the array until the predicate returns a value\nwhich is coercible to the Boolean value true, or until the end of the array.\n@param thisArg An object to which the this keyword can refer in the predicate function.\nIf thisArg is omitted, undefined is used as the this value.",name:"some",required:!0,type:{name:"(predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => unknown, thisArg?: any) => boolean"}},forEach:{defaultValue:null,description:"Performs the specified action for each element in an array.\n@param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.",name:"forEach",required:!0,type:{name:"(callbackfn: (value: NavItemProps, index: number, array: NavItemProps[]) => void, thisArg?: any) => void"}},map:{defaultValue:null,description:"Calls a defined callback function on each element of an array, and returns an array that contains the results.\n@param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.",name:"map",required:!0,type:{name:"<U>(callbackfn: (value: NavItemProps, index: number, array: NavItemProps[]) => U, thisArg?: any) => U[]"}},filter:{defaultValue:null,description:"Returns the elements of an array that meet the condition specified in a callback function.\n@param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.\n@param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.",name:"filter",required:!0,type:{name:"{ <S extends NavItemProps>(predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => value is S, thisArg?: any): S[]; (predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => unknown, thisArg?: any): NavItemProps[]; }"}},reduce:{defaultValue:null,description:"Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n@param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n@param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.",name:"reduce",required:!0,type:{name:"{ (callbackfn: (previousValue: NavItemProps, currentValue: NavItemProps, currentIndex: number, array: NavItemProps[]) => NavItemProps): NavItemProps; (callbackfn: (previousValue: NavItemProps, currentValue: NavItemProps, currentIndex: number, array: NavItemProps[]) => NavItemProps, initialValue: NavItemProps): NavIt..."}},reduceRight:{defaultValue:null,description:"Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n@param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n@param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.",name:"reduceRight",required:!0,type:{name:"{ (callbackfn: (previousValue: NavItemProps, currentValue: NavItemProps, currentIndex: number, array: NavItemProps[]) => NavItemProps): NavItemProps; (callbackfn: (previousValue: NavItemProps, currentValue: NavItemProps, currentIndex: number, array: NavItemProps[]) => NavItemProps, initialValue: NavItemProps): NavIt..."}},find:{defaultValue:null,description:"Returns the value of the first element in the array where predicate is true, and undefined\notherwise.\n@param predicate find calls predicate once for each element of the array, in ascending\norder, until it finds one where predicate returns true. If such an element is found, find\nimmediately returns that element value. Otherwise, find returns undefined.\n@param thisArg If provided, it will be used as the this value for each invocation of\npredicate. If it is not provided, undefined is used instead.",name:"find",required:!0,type:{name:"{ <S extends NavItemProps>(predicate: (value: NavItemProps, index: number, obj: NavItemProps[]) => value is S, thisArg?: any): S | undefined; (predicate: (value: NavItemProps, index: number, obj: NavItemProps[]) => unknown, thisArg?: any): NavItemProps | undefined; }"}},findIndex:{defaultValue:null,description:"Returns the index of the first element in the array where predicate is true, and -1\notherwise.\n@param predicate find calls predicate once for each element of the array, in ascending\norder, until it finds one where predicate returns true. If such an element is found,\nfindIndex immediately returns that element index. Otherwise, findIndex returns -1.\n@param thisArg If provided, it will be used as the this value for each invocation of\npredicate. If it is not provided, undefined is used instead.",name:"findIndex",required:!0,type:{name:"(predicate: (value: NavItemProps, index: number, obj: NavItemProps[]) => unknown, thisArg?: any) => number"}},fill:{defaultValue:null,description:"Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n@param value value to fill array section with\n@param start index to start filling the array at. If start is negative, it is treated as\nlength+start where length is the length of the array.\n@param end index to stop filling the array at. If end is negative, it is treated as\nlength+end.",name:"fill",required:!0,type:{name:"(value: NavItemProps, start?: number | undefined, end?: number | undefined) => NavItemProps[]"}},copyWithin:{defaultValue:null,description:"Returns the this object after copying a section of the array identified by start and end\nto the same array starting at position target\n@param target If target is negative, it is treated as length+target where length is the\nlength of the array.\n@param start If start is negative, it is treated as length+start. If end is negative, it\nis treated as length+end.\n@param end If not specified, length of the this object is used as its default value.",name:"copyWithin",required:!0,type:{name:"(target: number, start: number, end?: number | undefined) => NavItemProps[]"}},entries:{defaultValue:null,description:"Returns an iterable of key, value pairs for every entry in the array",name:"entries",required:!0,type:{name:"() => ArrayIterator<[number, NavItemProps]>"}},keys:{defaultValue:null,description:"Returns an iterable of keys in the array",name:"keys",required:!0,type:{name:"() => ArrayIterator<number>"}},values:{defaultValue:null,description:"Returns an iterable of values in the array",name:"values",required:!0,type:{name:"() => ArrayIterator<NavItemProps>"}},includes:{defaultValue:null,description:"Determines whether an array includes a certain element, returning true or false as appropriate.\n@param searchElement The element to search for.\n@param fromIndex The position in this array at which to begin searching for searchElement.",name:"includes",required:!0,type:{name:"(searchElement: NavItemProps, fromIndex?: number | undefined) => boolean"}},flatMap:{defaultValue:null,description:"Calls a defined callback function on each element of an array. Then, flattens the result into\na new array.\nThis is identical to a map followed by flat with depth 1.\n@param callback A function that accepts up to three arguments. The flatMap method calls the\ncallback function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callback function. If\nthisArg is omitted, undefined is used as the this value.",name:"flatMap",required:!0,type:{name:"<U, This = undefined>(callback: (this: This, value: NavItemProps, index: number, array: NavItemProps[]) => U | readonly U[], thisArg?: This | undefined) => U[]"}},flat:{defaultValue:null,description:"Returns a new array with all sub-array elements concatenated into it recursively up to the\nspecified depth.\n@param depth The maximum recursion depth",name:"flat",required:!0,type:{name:"<A, D extends number = 1>(this: A, depth?: D | undefined) => FlatArray<A, D>[]"}},"__@iterator@64528":{defaultValue:null,description:"Iterator",name:"__@iterator@64528",required:!0,type:{name:"() => ArrayIterator<NavItemProps>"}},"__@unscopables@66102":{defaultValue:null,description:"Is an object whose properties have the value 'true'\nwhen they will be absent when used in a 'with' statement.",name:"__@unscopables@66102",required:!0,type:{name:"{ [x: number]: boolean | undefined; length?: boolean | undefined; toString?: boolean | undefined; toLocaleString?: boolean | undefined; pop?: boolean | undefined; push?: boolean | undefined; ... 28 more ...; readonly [Symbol.unscopables]?: boolean | undefined; }"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/user-profile/user-profile.tsx#getFirstFocusableItem"]={docgenInfo:t.getFirstFocusableItem.__docgenInfo,name:"getFirstFocusableItem",path:"src/components/user-profile/user-profile.tsx#getFirstFocusableItem"})}catch(e){}try{t.UserProfile.displayName="UserProfile",t.UserProfile.__docgenInfo={description:"",displayName:"UserProfile",props:{ariaLabel:{defaultValue:{value:"'User menu'"},description:"Sets nav's description",name:"ariaLabel",required:!1,type:{name:"string"}},buttonAriaLabel:{defaultValue:null,description:"",name:"buttonAriaLabel",required:!1,type:{name:"string"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},defaultOpen:{defaultValue:{value:!1},description:"Sets menu open by default",name:"defaultOpen",required:!1,type:{name:"boolean"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},inverted:{defaultValue:{value:!0},description:"",name:"inverted",required:!1,type:{name:"boolean"}},tag:{defaultValue:null,description:"Set wrapper element tag",name:"tag",required:!1,type:{name:"enum",value:[{value:'"div"'},{value:'"nav"'}]}},options:{defaultValue:null,description:"",name:"options",required:!0,type:{name:"NavItemProps[]"}},username:{defaultValue:null,description:"",name:"username",required:!0,type:{name:"string"}},userEmail:{defaultValue:null,description:"",name:"userEmail",required:!1,type:{name:"string"}},onMenuVisibilityChanged:{defaultValue:null,description:"",name:"onMenuVisibilityChanged",required:!1,type:{name:"((isOpen: boolean) => void)"}},variant:{defaultValue:{value:"avatar-only"},description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"avatar-only"'},{value:'"full-name"'}]}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/user-profile/user-profile.tsx#UserProfile"]={docgenInfo:t.UserProfile.__docgenInfo,name:"UserProfile",path:"src/components/user-profile/user-profile.tsx#UserProfile"})}catch(e){}},17412(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NavItem=t.LabelItem=t.ItemContent=t.GroupItem=t.ExternalItem=void 0;var a=n(41895);Object.defineProperty(t,"ExternalItem",{enumerable:!0,get:function(){return a.ExternalItem}});var r=n(29817);Object.defineProperty(t,"GroupItem",{enumerable:!0,get:function(){return r.GroupItem}});var i=n(55179);Object.defineProperty(t,"ItemContent",{enumerable:!0,get:function(){return i.ItemContent}});var o=n(38060);Object.defineProperty(t,"LabelItem",{enumerable:!0,get:function(){return o.LabelItem}});var l=n(5859);Object.defineProperty(t,"NavItem",{enumerable:!0,get:function(){return l.NavItem}})},17419(e,t,n){"use strict";t.isSameISOWeek=function(e,t,n){return(0,a.isSameWeek)(e,t,{...n,weekStartsOn:1})};var a=n(624)},17448(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>l});var a,r,i=n(39155);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},o.apply(null,arguments)}const l=function(e){return i.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,className:"copy_svg__feather copy_svg__feather-copy",viewBox:"0 0 24 24"},e),a||(a=i.createElement("rect",{width:13,height:13,x:9,y:9,rx:2,ry:2})),r||(r=i.createElement("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})))}},17461(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Accordion=t.StyledAccordionGroup=void 0;const r=n(31085),i=n(39155),o=a(n(88694)),l=n(66642),u=n(28353);t.StyledAccordionGroup=o.default.div`
|
|
818
818
|
display: flex;
|
|
819
819
|
flex-direction: column;
|
|
820
820
|
justify-content: flex-start;
|
|
@@ -1505,7 +1505,7 @@
|
|
|
1505
1505
|
display: block;
|
|
1506
1506
|
margin: 0 var(--spacing-2x);
|
|
1507
1507
|
}
|
|
1508
|
-
`;t.GroupItem=e=>{var{id:n,children:r,ordered:o,label:u}=e,s=a(e,["id","children","ordered","label"]);const c=(0,l.useDataAttributes)(s);return(0,i.jsxs)(i.Fragment,{children:[u&&(0,i.jsx)(t.StyledHeading,{id:n,type:"small",tag:"h3",bold:!0,children:u}),(0,i.jsx)(d,Object.assign({"aria-labelledby":n,as:o?"ol":"ul"},c,{children:r}))]})};try{t.StyledHeading.displayName="StyledHeading",t.StyledHeading.__docgenInfo={description:"",displayName:"StyledHeading",props:{type:{defaultValue:null,description:"",name:"type",required:!0,type:{name:"enum",value:[{value:'"small"'},{value:'"xsmall"'},{value:'"medium"'},{value:'"large"'},{value:'"xlarge"'},{value:'"subtitle"'}]}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLHeadingElement | null) => void) | RefObject<HTMLHeadingElement> | null"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"Key | null"}},tag:{defaultValue:null,description:"",name:"tag",required:!1,type:{name:"enum",value:[{value:'"h1"'},{value:'"h2"'},{value:'"h3"'},{value:'"h4"'},{value:'"h5"'},{value:'"h6"'}]}},
|
|
1508
|
+
`;t.GroupItem=e=>{var{id:n,children:r,ordered:o,label:u}=e,s=a(e,["id","children","ordered","label"]);const c=(0,l.useDataAttributes)(s);return(0,i.jsxs)(i.Fragment,{children:[u&&(0,i.jsx)(t.StyledHeading,{id:n,type:"small",tag:"h3",bold:!0,children:u}),(0,i.jsx)(d,Object.assign({"aria-labelledby":n,as:o?"ol":"ul"},c,{children:r}))]})};try{t.StyledHeading.displayName="StyledHeading",t.StyledHeading.__docgenInfo={description:"",displayName:"StyledHeading",props:{type:{defaultValue:null,description:"",name:"type",required:!0,type:{name:"enum",value:[{value:'"small"'},{value:'"xsmall"'},{value:'"medium"'},{value:'"large"'},{value:'"xlarge"'},{value:'"subtitle"'}]}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLHeadingElement | null) => void) | RefObject<HTMLHeadingElement> | null"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"Key | null"}},bold:{defaultValue:null,description:"",name:"bold",required:!1,type:{name:"boolean"}},tag:{defaultValue:null,description:"",name:"tag",required:!1,type:{name:"enum",value:[{value:'"h1"'},{value:'"h2"'},{value:'"h3"'},{value:'"h4"'},{value:'"h5"'},{value:'"h6"'}]}},noMargin:{defaultValue:null,description:"",name:"noMargin",required:!1,type:{name:"boolean"}},theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/dropdown-menu/list-items/group-item.tsx#StyledHeading"]={docgenInfo:t.StyledHeading.__docgenInfo,name:"StyledHeading",path:"src/components/dropdown-menu/list-items/group-item.tsx#StyledHeading"})}catch(e){}try{t.GroupItem.displayName="GroupItem",t.GroupItem.__docgenInfo={description:"",displayName:"GroupItem",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},ordered:{defaultValue:null,description:"",name:"ordered",required:!1,type:{name:"boolean"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/dropdown-menu/list-items/group-item.tsx#GroupItem"]={docgenInfo:t.GroupItem.__docgenInfo,name:"GroupItem",path:"src/components/dropdown-menu/list-items/group-item.tsx#GroupItem"})}catch(e){}},30033(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>o});var a,r=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},i.apply(null,arguments)}const o=function(e){return r.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,className:"alert-octagon_svg__feather alert-octagon_svg__feather-alert-octagon",viewBox:"0 0 24 24"},e),a||(a=r.createElement("path",{d:"M7.86 2h8.28L22 7.86v8.28L16.14 22H7.86L2 16.14V7.86zM12 8v4M12 16h.01"})))}},30073(e,t){"use strict";t.safelyAccessDocument=function(e){return e||("undefined"!=typeof document?document:null)}},30152(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultLinkTokens=void 0,t.defaultLinkTokens={"external-link-visited-text-color":"color-link-content-visited","route-link-visited-text-color":"color-link-content-visited","route-link-text-color":"color-link-content","route-link-disabled-text-color":"color-link-content-disabled","route-link-hover-text-color":"color-link-content-hover","skip-link-text-color":"color-link-content","skip-link-background-color":"color-background","link-text-color":"color-link-content","link-disabled-text-color":"color-link-content-disabled","link-hover-text-color":"color-link-content-hover","link-visited-text-color":"color-link-content-visited","link-icon-color":"color-link-content","link-disabled-icon-color":"color-link-content-disabled","link-hover-icon-color":"color-link-content-hover","link-visited-icon-color":"color-link-content-visited"}},30194(e,t){"use strict";t.formatRelative=void 0;const n={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"};t.formatRelative=(e,t,a,r)=>n[e]},30215(e,t,n){"use strict";t.previousWednesday=function(e,t){return(0,a.previousDay)(e,3,t)};var a=n(77989)},30398(e,t,n){"use strict";t.hi=void 0;var a=n(11364),r=n(27887),i=n(58505),o=n(74801),l=n(63011);t.hi={code:"hi",formatDistance:a.formatDistance,formatLong:r.formatLong,formatRelative:i.formatRelative,localize:o.localize,match:l.match,options:{weekStartsOn:0,firstWeekContainsDate:4}}},30439(e,t,n){"use strict";t.ug=void 0;var a=n(99729),r=n(9738),i=n(87400),o=n(58912),l=n(36448);t.ug={code:"ug",formatDistance:a.formatDistance,formatLong:r.formatLong,formatRelative:i.formatRelative,localize:o.localize,match:l.match,options:{weekStartsOn:0,firstWeekContainsDate:1}}},30668(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useBreadcrumbLayoutEffect=function({overflow:e,shownRoutes:t,history:n,setHiddenRoutes:r,setShownRoutes:i}){(0,a.useLayoutEffect)(()=>{if(e.horizontal&&t.length>0){const e=n[n.length-1],a=Math.max(0,t.length-2),o=n.slice(a,n.length-1),l=Math.max(t.length-2,0),u=n.slice(0,l);u.length>0?u.push(e):o.push(e),r(o),i(u)}},[i,e.horizontal,n,t.length,r,t])};const a=n(39155);try{t.useBreadcrumbLayoutEffect.displayName="useBreadcrumbLayoutEffect",t.useBreadcrumbLayoutEffect.__docgenInfo={description:"",displayName:"useBreadcrumbLayoutEffect",props:{overflow:{defaultValue:null,description:"",name:"overflow",required:!0,type:{name:"Overflow"}},shownRoutes:{defaultValue:null,description:"",name:"shownRoutes",required:!0,type:{name:"NavListOption[]"}},history:{defaultValue:null,description:"",name:"history",required:!0,type:{name:"NavListOption[]"}},setHiddenRoutes:{defaultValue:null,description:"",name:"setHiddenRoutes",required:!0,type:{name:"(value: NavListOption[] | ((prevState: NavListOption[]) => NavListOption[])) => void"}},setShownRoutes:{defaultValue:null,description:"",name:"setShownRoutes",required:!0,type:{name:"(value: NavListOption[] | ((prevState: NavListOption[]) => NavListOption[])) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/breadcrumb/use-breadcrumb-layout-effect.tsx#useBreadcrumbLayoutEffect"]={docgenInfo:t.useBreadcrumbLayoutEffect.__docgenInfo,name:"useBreadcrumbLayoutEffect",path:"src/components/breadcrumb/use-breadcrumb-layout-effect.tsx#useBreadcrumbLayoutEffect"})}catch(e){}},30811(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useFont=function(e){(0,r.useEffect)(()=>e?(i.default.use(),()=>i.default.unuse()):()=>{},[e])};const r=n(39155),i=a(n(13124));try{t.useFont.displayName="useFont",t.useFont.__docgenInfo={description:"",displayName:"useFont",props:{valueOf:{defaultValue:null,description:"Returns the primitive value of the specified object.",name:"valueOf",required:!1,type:{name:"() => boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/styles/font-loader.tsx#useFont"]={docgenInfo:t.useFont.__docgenInfo,name:"useFont",path:"src/styles/font-loader.tsx#useFont"})}catch(e){}},30855(e,t,n){"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},30878(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>l});var a,r,i=n(39155);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},o.apply(null,arguments)}const l=function(e){return i.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,className:"check-circle_svg__feather check-circle_svg__feather-check-circle",viewBox:"0 0 24 24"},e),a||(a=i.createElement("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"})),r||(r=i.createElement("path",{d:"M22 4 12 14.01l-3-3"})))}},30897(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SkipLink=void 0;const r=n(31085),i=a(n(88694)),o=n(78785),l=n(56818),u=n(44529),d=i.default.a`
|
|
1509
1509
|
${({$isMobile:e})=>(0,l.getBaseButtonStyles)({$isMobile:e})};
|
|
1510
1510
|
|
|
1511
1511
|
background: ${({theme:e})=>e.component["skip-link-background-color"]};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equisoft/design-elements-react",
|
|
3
|
-
"version": "9.9.7-snapshot.
|
|
3
|
+
"version": "9.9.7-snapshot.20260114214150",
|
|
4
4
|
"description": "React implementation of the Equisoft design system.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"main": "dist/bundle.js",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"@types/react-dom": "18.3.7",
|
|
73
73
|
"@types/react-modal": "3.16.3",
|
|
74
74
|
"@types/styled-components": "5.1.36",
|
|
75
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
76
|
-
"@typescript-eslint/parser": "8.
|
|
75
|
+
"@typescript-eslint/eslint-plugin": "8.53.0",
|
|
76
|
+
"@typescript-eslint/parser": "8.53.0",
|
|
77
77
|
"cross-env": "10.1.0",
|
|
78
78
|
"css-loader": "7.1.2",
|
|
79
79
|
"eslint": "8.57.1",
|