@raspberrypifoundation/design-system-react 2.7.0 → 2.7.1

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.
@@ -1,24 +1,59 @@
1
- (function(A,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],r):(A=typeof globalThis<"u"?globalThis:A||self,r(A["RPF Design System React"]={},A.jsxRuntime,A.React))})(this,function(A,r,V){"use strict";function be(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ee={exports:{}};/*!
1
+ (function(A,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],t):(A=typeof globalThis<"u"?globalThis:A||self,t(A["RPF Design System React"]={},A.jsxRuntime,A.React))})(this,function(A,t,F){"use strict";function be(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ee={exports:{}};/*!
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
5
- */var ve;function Fe(){return ve||(ve=1,function(e){(function(){var l={}.hasOwnProperty;function i(){for(var t="",d=0;d<arguments.length;d++){var c=arguments[d];c&&(t=n(t,o(c)))}return t}function o(t){if(typeof t=="string"||typeof t=="number")return t;if(typeof t!="object")return"";if(Array.isArray(t))return i.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var d="";for(var c in t)l.call(t,c)&&t[c]&&(d=n(d,c));return d}function n(t,d){return d?t?t+" "+d:t+d:t}e.exports?(i.default=i,e.exports=i):window.classNames=i})()}(ee)),ee.exports}var Le=Fe();const Y=be(Le);var X={exports:{}},G={exports:{}},P={};/** @license React v16.13.1
5
+ */var me;function Fe(){return me||(me=1,function(e){(function(){var n={}.hasOwnProperty;function i(){for(var r="",f=0;f<arguments.length;f++){var l=arguments[f];l&&(r=o(r,a(l)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return i.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var f="";for(var l in r)n.call(r,l)&&r[l]&&(f=o(f,l));return f}function o(r,f){return f?r?r+" "+f:r+f:r}e.exports?(i.default=i,e.exports=i):window.classNames=i})()}(ee)),ee.exports}var Re=Fe();const L=be(Re);var Z={exports:{}},K={exports:{}},O={};/** @license React v16.13.1
6
6
  * react-is.production.min.js
7
7
  *
8
8
  * Copyright (c) Facebook, Inc. and its affiliates.
9
9
  *
10
10
  * This source code is licensed under the MIT license found in the
11
11
  * LICENSE file in the root directory of this source tree.
12
- */var me;function Re(){if(me)return P;me=1;var e=typeof Symbol=="function"&&Symbol.for,l=e?Symbol.for("react.element"):60103,i=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,t=e?Symbol.for("react.profiler"):60114,d=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,T=e?Symbol.for("react.concurrent_mode"):60111,b=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,j=e?Symbol.for("react.suspense_list"):60120,I=e?Symbol.for("react.memo"):60115,k=e?Symbol.for("react.lazy"):60116,N=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,F=e?Symbol.for("react.responder"):60118,z=e?Symbol.for("react.scope"):60119;function M(f){if(typeof f=="object"&&f!==null){var L=f.$$typeof;switch(L){case l:switch(f=f.type,f){case h:case T:case o:case t:case n:case m:return f;default:switch(f=f&&f.$$typeof,f){case c:case b:case k:case I:case d:return f;default:return L}}case i:return L}}}function q(f){return M(f)===T}return P.AsyncMode=h,P.ConcurrentMode=T,P.ContextConsumer=c,P.ContextProvider=d,P.Element=l,P.ForwardRef=b,P.Fragment=o,P.Lazy=k,P.Memo=I,P.Portal=i,P.Profiler=t,P.StrictMode=n,P.Suspense=m,P.isAsyncMode=function(f){return q(f)||M(f)===h},P.isConcurrentMode=q,P.isContextConsumer=function(f){return M(f)===c},P.isContextProvider=function(f){return M(f)===d},P.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===l},P.isForwardRef=function(f){return M(f)===b},P.isFragment=function(f){return M(f)===o},P.isLazy=function(f){return M(f)===k},P.isMemo=function(f){return M(f)===I},P.isPortal=function(f){return M(f)===i},P.isProfiler=function(f){return M(f)===t},P.isStrictMode=function(f){return M(f)===n},P.isSuspense=function(f){return M(f)===m},P.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===o||f===T||f===t||f===n||f===m||f===j||typeof f=="object"&&f!==null&&(f.$$typeof===k||f.$$typeof===I||f.$$typeof===d||f.$$typeof===c||f.$$typeof===b||f.$$typeof===$||f.$$typeof===F||f.$$typeof===z||f.$$typeof===N)},P.typeOf=M,P}var w={};/** @license React v16.13.1
12
+ */var ge;function Ue(){if(ge)return O;ge=1;var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,i=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,r=e?Symbol.for("react.profiler"):60114,f=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,y=e?Symbol.for("react.async_mode"):60111,b=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,j=e?Symbol.for("react.suspense_list"):60120,I=e?Symbol.for("react.memo"):60115,M=e?Symbol.for("react.lazy"):60116,N=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,D=e?Symbol.for("react.responder"):60118,z=e?Symbol.for("react.scope"):60119;function k(u){if(typeof u=="object"&&u!==null){var W=u.$$typeof;switch(W){case n:switch(u=u.type,u){case y:case b:case a:case r:case o:case g:return u;default:switch(u=u&&u.$$typeof,u){case l:case h:case M:case I:case f:return u;default:return W}}case i:return W}}}function q(u){return k(u)===b}return O.AsyncMode=y,O.ConcurrentMode=b,O.ContextConsumer=l,O.ContextProvider=f,O.Element=n,O.ForwardRef=h,O.Fragment=a,O.Lazy=M,O.Memo=I,O.Portal=i,O.Profiler=r,O.StrictMode=o,O.Suspense=g,O.isAsyncMode=function(u){return q(u)||k(u)===y},O.isConcurrentMode=q,O.isContextConsumer=function(u){return k(u)===l},O.isContextProvider=function(u){return k(u)===f},O.isElement=function(u){return typeof u=="object"&&u!==null&&u.$$typeof===n},O.isForwardRef=function(u){return k(u)===h},O.isFragment=function(u){return k(u)===a},O.isLazy=function(u){return k(u)===M},O.isMemo=function(u){return k(u)===I},O.isPortal=function(u){return k(u)===i},O.isProfiler=function(u){return k(u)===r},O.isStrictMode=function(u){return k(u)===o},O.isSuspense=function(u){return k(u)===g},O.isValidElementType=function(u){return typeof u=="string"||typeof u=="function"||u===a||u===b||u===r||u===o||u===g||u===j||typeof u=="object"&&u!==null&&(u.$$typeof===M||u.$$typeof===I||u.$$typeof===f||u.$$typeof===l||u.$$typeof===h||u.$$typeof===$||u.$$typeof===D||u.$$typeof===z||u.$$typeof===N)},O.typeOf=k,O}var P={};/** @license React v16.13.1
13
13
  * react-is.development.js
14
14
  *
15
15
  * Copyright (c) Facebook, Inc. and its affiliates.
16
16
  *
17
17
  * This source code is licensed under the MIT license found in the
18
18
  * LICENSE file in the root directory of this source tree.
19
- */var ge;function De(){return ge||(ge=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,l=e?Symbol.for("react.element"):60103,i=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,t=e?Symbol.for("react.profiler"):60114,d=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,T=e?Symbol.for("react.concurrent_mode"):60111,b=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,j=e?Symbol.for("react.suspense_list"):60120,I=e?Symbol.for("react.memo"):60115,k=e?Symbol.for("react.lazy"):60116,N=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,F=e?Symbol.for("react.responder"):60118,z=e?Symbol.for("react.scope"):60119;function M(u){return typeof u=="string"||typeof u=="function"||u===o||u===T||u===t||u===n||u===m||u===j||typeof u=="object"&&u!==null&&(u.$$typeof===k||u.$$typeof===I||u.$$typeof===d||u.$$typeof===c||u.$$typeof===b||u.$$typeof===$||u.$$typeof===F||u.$$typeof===z||u.$$typeof===N)}function q(u){if(typeof u=="object"&&u!==null){var W=u.$$typeof;switch(W){case l:var Q=u.type;switch(Q){case h:case T:case o:case t:case n:case m:return Q;default:var Ye=Q&&Q.$$typeof;switch(Ye){case c:case b:case k:case I:case d:return Ye;default:return W}}case i:return W}}}var f=h,L=T,le=c,ce=d,fe=l,ue=b,K=o,de=k,pe=I,H=i,ye=t,D=n,B=m,Z=!1;function he(u){return Z||(Z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),a(u)||q(u)===h}function a(u){return q(u)===T}function p(u){return q(u)===c}function E(u){return q(u)===d}function g(u){return typeof u=="object"&&u!==null&&u.$$typeof===l}function y(u){return q(u)===b}function S(u){return q(u)===o}function v(u){return q(u)===k}function _(u){return q(u)===I}function O(u){return q(u)===i}function x(u){return q(u)===t}function C(u){return q(u)===n}function R(u){return q(u)===m}w.AsyncMode=f,w.ConcurrentMode=L,w.ContextConsumer=le,w.ContextProvider=ce,w.Element=fe,w.ForwardRef=ue,w.Fragment=K,w.Lazy=de,w.Memo=pe,w.Portal=H,w.Profiler=ye,w.StrictMode=D,w.Suspense=B,w.isAsyncMode=he,w.isConcurrentMode=a,w.isContextConsumer=p,w.isContextProvider=E,w.isElement=g,w.isForwardRef=y,w.isFragment=S,w.isLazy=v,w.isMemo=_,w.isPortal=O,w.isProfiler=x,w.isStrictMode=C,w.isSuspense=R,w.isValidElementType=M,w.typeOf=q}()),w}var _e;function Te(){return _e||(_e=1,process.env.NODE_ENV==="production"?G.exports=Re():G.exports=De()),G.exports}/*
19
+ */var _e;function ze(){return _e||(_e=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,i=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,r=e?Symbol.for("react.profiler"):60114,f=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,y=e?Symbol.for("react.async_mode"):60111,b=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,j=e?Symbol.for("react.suspense_list"):60120,I=e?Symbol.for("react.memo"):60115,M=e?Symbol.for("react.lazy"):60116,N=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,D=e?Symbol.for("react.responder"):60118,z=e?Symbol.for("react.scope"):60119;function k(d){return typeof d=="string"||typeof d=="function"||d===a||d===b||d===r||d===o||d===g||d===j||typeof d=="object"&&d!==null&&(d.$$typeof===M||d.$$typeof===I||d.$$typeof===f||d.$$typeof===l||d.$$typeof===h||d.$$typeof===$||d.$$typeof===D||d.$$typeof===z||d.$$typeof===N)}function q(d){if(typeof d=="object"&&d!==null){var U=d.$$typeof;switch(U){case n:var Q=d.type;switch(Q){case y:case b:case a:case r:case o:case g:return Q;default:var Ye=Q&&Q.$$typeof;switch(Ye){case l:case h:case M:case I:case f:return Ye;default:return U}}case i:return U}}}var u=y,W=b,le=l,fe=f,ue=n,de=h,X=a,pe=M,ye=I,H=i,he=r,R=o,V=g,G=!1;function ve(d){return G||(G=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),s(d)||q(d)===y}function s(d){return q(d)===b}function p(d){return q(d)===l}function E(d){return q(d)===f}function _(d){return typeof d=="object"&&d!==null&&d.$$typeof===n}function v(d){return q(d)===h}function w(d){return q(d)===a}function m(d){return q(d)===M}function T(d){return q(d)===I}function S(d){return q(d)===i}function x(d){return q(d)===r}function C(d){return q(d)===o}function Y(d){return q(d)===g}P.AsyncMode=u,P.ConcurrentMode=W,P.ContextConsumer=le,P.ContextProvider=fe,P.Element=ue,P.ForwardRef=de,P.Fragment=X,P.Lazy=pe,P.Memo=ye,P.Portal=H,P.Profiler=he,P.StrictMode=R,P.Suspense=V,P.isAsyncMode=ve,P.isConcurrentMode=s,P.isContextConsumer=p,P.isContextProvider=E,P.isElement=_,P.isForwardRef=v,P.isFragment=w,P.isLazy=m,P.isMemo=T,P.isPortal=S,P.isProfiler=x,P.isStrictMode=C,P.isSuspense=Y,P.isValidElementType=k,P.typeOf=q}()),P}var Te;function Ee(){return Te||(Te=1,process.env.NODE_ENV==="production"?K.exports=Ue():K.exports=ze()),K.exports}/*
20
20
  object-assign
21
21
  (c) Sindre Sorhus
22
22
  @license MIT
23
- */var re,Ee;function We(){if(Ee)return re;Ee=1;var e=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function o(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function n(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var d={},c=0;c<10;c++)d["_"+String.fromCharCode(c)]=c;var h=Object.getOwnPropertyNames(d).map(function(b){return d[b]});if(h.join("")!=="0123456789")return!1;var T={};return"abcdefghijklmnopqrst".split("").forEach(function(b){T[b]=b}),Object.keys(Object.assign({},T)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return re=n()?Object.assign:function(t,d){for(var c,h=o(t),T,b=1;b<arguments.length;b++){c=Object(arguments[b]);for(var m in c)l.call(c,m)&&(h[m]=c[m]);if(e){T=e(c);for(var j=0;j<T.length;j++)i.call(c,T[j])&&(h[T[j]]=c[T[j]])}}return h},re}var te,Se;function ne(){if(Se)return te;Se=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return te=e,te}var ae,Oe;function Ce(){return Oe||(Oe=1,ae=Function.call.bind(Object.prototype.hasOwnProperty)),ae}var se,Pe;function ze(){if(Pe)return se;Pe=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var l=ne(),i={},o=Ce();e=function(t){var d="Warning: "+t;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}}}function n(t,d,c,h,T){if(process.env.NODE_ENV!=="production"){for(var b in t)if(o(t,b)){var m;try{if(typeof t[b]!="function"){var j=Error((h||"React class")+": "+c+" type `"+b+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[b]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw j.name="Invariant Violation",j}m=t[b](d,b,h,c,null,l)}catch(k){m=k}if(m&&!(m instanceof Error)&&e((h||"React class")+": type specification of "+c+" `"+b+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in i)){i[m.message]=!0;var I=T?T():"";e("Failed "+c+" type: "+m.message+(I??""))}}}}return n.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(i={})},se=n,se}var oe,we;function Ue(){if(we)return oe;we=1;var e=Te(),l=We(),i=ne(),o=Ce(),n=ze(),t=function(){};process.env.NODE_ENV!=="production"&&(t=function(c){var h="Warning: "+c;typeof console<"u"&&console.error(h);try{throw new Error(h)}catch{}});function d(){return null}return oe=function(c,h){var T=typeof Symbol=="function"&&Symbol.iterator,b="@@iterator";function m(a){var p=a&&(T&&a[T]||a[b]);if(typeof p=="function")return p}var j="<<anonymous>>",I={array:F("array"),bigint:F("bigint"),bool:F("boolean"),func:F("function"),number:F("number"),object:F("object"),string:F("string"),symbol:F("symbol"),any:z(),arrayOf:M,element:q(),elementType:f(),instanceOf:L,node:ue(),objectOf:ce,oneOf:le,oneOfType:fe,shape:de,exact:pe};function k(a,p){return a===p?a!==0||1/a===1/p:a!==a&&p!==p}function N(a,p){this.message=a,this.data=p&&typeof p=="object"?p:{},this.stack=""}N.prototype=Error.prototype;function $(a){if(process.env.NODE_ENV!=="production")var p={},E=0;function g(S,v,_,O,x,C,R){if(O=O||j,C=C||_,R!==i){if(h){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var W=O+":"+_;!p[W]&&E<3&&(t("You are manually calling a React.PropTypes validation function for the `"+C+"` prop on `"+O+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),p[W]=!0,E++)}}return v[_]==null?S?v[_]===null?new N("The "+x+" `"+C+"` is marked as required "+("in `"+O+"`, but its value is `null`.")):new N("The "+x+" `"+C+"` is marked as required in "+("`"+O+"`, but its value is `undefined`.")):null:a(v,_,O,x,C)}var y=g.bind(null,!1);return y.isRequired=g.bind(null,!0),y}function F(a){function p(E,g,y,S,v,_){var O=E[g],x=D(O);if(x!==a){var C=B(O);return new N("Invalid "+S+" `"+v+"` of type "+("`"+C+"` supplied to `"+y+"`, expected ")+("`"+a+"`."),{expectedType:a})}return null}return $(p)}function z(){return $(d)}function M(a){function p(E,g,y,S,v){if(typeof a!="function")return new N("Property `"+v+"` of component `"+y+"` has invalid PropType notation inside arrayOf.");var _=E[g];if(!Array.isArray(_)){var O=D(_);return new N("Invalid "+S+" `"+v+"` of type "+("`"+O+"` supplied to `"+y+"`, expected an array."))}for(var x=0;x<_.length;x++){var C=a(_,x,y,S,v+"["+x+"]",i);if(C instanceof Error)return C}return null}return $(p)}function q(){function a(p,E,g,y,S){var v=p[E];if(!c(v)){var _=D(v);return new N("Invalid "+y+" `"+S+"` of type "+("`"+_+"` supplied to `"+g+"`, expected a single ReactElement."))}return null}return $(a)}function f(){function a(p,E,g,y,S){var v=p[E];if(!e.isValidElementType(v)){var _=D(v);return new N("Invalid "+y+" `"+S+"` of type "+("`"+_+"` supplied to `"+g+"`, expected a single ReactElement type."))}return null}return $(a)}function L(a){function p(E,g,y,S,v){if(!(E[g]instanceof a)){var _=a.name||j,O=he(E[g]);return new N("Invalid "+S+" `"+v+"` of type "+("`"+O+"` supplied to `"+y+"`, expected ")+("instance of `"+_+"`."))}return null}return $(p)}function le(a){if(!Array.isArray(a))return process.env.NODE_ENV!=="production"&&(arguments.length>1?t("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):t("Invalid argument supplied to oneOf, expected an array.")),d;function p(E,g,y,S,v){for(var _=E[g],O=0;O<a.length;O++)if(k(_,a[O]))return null;var x=JSON.stringify(a,function(R,u){var W=B(u);return W==="symbol"?String(u):u});return new N("Invalid "+S+" `"+v+"` of value `"+String(_)+"` "+("supplied to `"+y+"`, expected one of "+x+"."))}return $(p)}function ce(a){function p(E,g,y,S,v){if(typeof a!="function")return new N("Property `"+v+"` of component `"+y+"` has invalid PropType notation inside objectOf.");var _=E[g],O=D(_);if(O!=="object")return new N("Invalid "+S+" `"+v+"` of type "+("`"+O+"` supplied to `"+y+"`, expected an object."));for(var x in _)if(o(_,x)){var C=a(_,x,y,S,v+"."+x,i);if(C instanceof Error)return C}return null}return $(p)}function fe(a){if(!Array.isArray(a))return process.env.NODE_ENV!=="production"&&t("Invalid argument supplied to oneOfType, expected an instance of array."),d;for(var p=0;p<a.length;p++){var E=a[p];if(typeof E!="function")return t("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Z(E)+" at index "+p+"."),d}function g(y,S,v,_,O){for(var x=[],C=0;C<a.length;C++){var R=a[C],u=R(y,S,v,_,O,i);if(u==null)return null;u.data&&o(u.data,"expectedType")&&x.push(u.data.expectedType)}var W=x.length>0?", expected one of type ["+x.join(", ")+"]":"";return new N("Invalid "+_+" `"+O+"` supplied to "+("`"+v+"`"+W+"."))}return $(g)}function ue(){function a(p,E,g,y,S){return H(p[E])?null:new N("Invalid "+y+" `"+S+"` supplied to "+("`"+g+"`, expected a ReactNode."))}return $(a)}function K(a,p,E,g,y){return new N((a||"React class")+": "+p+" type `"+E+"."+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+y+"`.")}function de(a){function p(E,g,y,S,v){var _=E[g],O=D(_);if(O!=="object")return new N("Invalid "+S+" `"+v+"` of type `"+O+"` "+("supplied to `"+y+"`, expected `object`."));for(var x in a){var C=a[x];if(typeof C!="function")return K(y,S,v,x,B(C));var R=C(_,x,y,S,v+"."+x,i);if(R)return R}return null}return $(p)}function pe(a){function p(E,g,y,S,v){var _=E[g],O=D(_);if(O!=="object")return new N("Invalid "+S+" `"+v+"` of type `"+O+"` "+("supplied to `"+y+"`, expected `object`."));var x=l({},E[g],a);for(var C in x){var R=a[C];if(o(a,C)&&typeof R!="function")return K(y,S,v,C,B(R));if(!R)return new N("Invalid "+S+" `"+v+"` key `"+C+"` supplied to `"+y+"`.\nBad object: "+JSON.stringify(E[g],null," ")+`
24
- Valid keys: `+JSON.stringify(Object.keys(a),null," "));var u=R(_,C,y,S,v+"."+C,i);if(u)return u}return null}return $(p)}function H(a){switch(typeof a){case"number":case"string":case"undefined":return!0;case"boolean":return!a;case"object":if(Array.isArray(a))return a.every(H);if(a===null||c(a))return!0;var p=m(a);if(p){var E=p.call(a),g;if(p!==a.entries){for(;!(g=E.next()).done;)if(!H(g.value))return!1}else for(;!(g=E.next()).done;){var y=g.value;if(y&&!H(y[1]))return!1}}else return!1;return!0;default:return!1}}function ye(a,p){return a==="symbol"?!0:p?p["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&p instanceof Symbol:!1}function D(a){var p=typeof a;return Array.isArray(a)?"array":a instanceof RegExp?"object":ye(p,a)?"symbol":p}function B(a){if(typeof a>"u"||a===null)return""+a;var p=D(a);if(p==="object"){if(a instanceof Date)return"date";if(a instanceof RegExp)return"regexp"}return p}function Z(a){var p=B(a);switch(p){case"array":case"object":return"an "+p;case"boolean":case"date":case"regexp":return"a "+p;default:return p}}function he(a){return!a.constructor||!a.constructor.name?j:a.constructor.name}return I.checkPropTypes=n,I.resetWarningCache=n.resetWarningCache,I.PropTypes=I,I},oe}var ie,xe;function Be(){if(xe)return ie;xe=1;var e=ne();function l(){}function i(){}return i.resetWarningCache=l,ie=function(){function o(d,c,h,T,b,m){if(m!==e){var j=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw j.name="Invariant Violation",j}}o.isRequired=o;function n(){return o}var t={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:n,element:o,elementType:o,instanceOf:n,node:o,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:i,resetWarningCache:l};return t.PropTypes=t,t},ie}var Ne;function Ve(){if(Ne)return X.exports;if(Ne=1,process.env.NODE_ENV!=="production"){var e=Te(),l=!0;X.exports=Ue()(e.isElement,l)}else X.exports=Be()();return X.exports}var He=Ve();const s=be(He),Ae=({content:e,title:l,className:i,id:o="accordion"})=>{const n=Y("rpf-accordion",i);return r.jsxs("details",{className:n,id:`${o}`,children:[r.jsxs("summary",{className:"rpf-accordion__title",role:"button",children:[l,r.jsx("span",{className:"rpf-accordion__icon"})]}),r.jsx("p",{className:"rpf-accordion__text",children:e})]})};Ae.propTypes={content:s.string.isRequired,title:s.string.isRequired,id:s.string,className:s.string};const U=({text:e,href:l,title:i,className:o,type:n="primary",variant:t="",size:d="default",icon:c="",iconOnly:h=!1,iconPosition:T="left",fullWidth:b=!1,disabled:m=!1,onClick:j=()=>{},"aria-label":I="",linkComponent:k})=>{const N=c&&h,$=Y("rpf-button",{[`rpf-button--${n}`]:n,"rpf-button--danger":t==="danger","rpf-button--sm":d==="small","rpf-button--icon-only":N,"rpf-button--full-width":b,disabled:m},o);let F="rpf-button__icon";V.isValidElement(c)?(F+=" icon",console.warn("DEPRECATED: icons as React elements will not be supported in future releases")):F+=" material-symbols-sharp";const z=(f,L)=>!L||T!==f?null:typeof L=="string"?r.jsx("span",{className:F,children:L}):L,M=()=>e&&!N&&r.jsx("span",{className:"text",children:e}),q=r.jsxs(r.Fragment,{children:[z("left",c),M(),z("right",c)]});if(l){const f=k||"a",L=k?{to:l}:{href:l,role:"button"};return r.jsx(f,{className:$,...L,onClick:j,"aria-label":I,children:q})}return r.jsx("button",{className:$,title:i,onClick:j,disabled:m,"aria-label":I,children:q})},Je=({title:e,text:l,titleChildren:i,children:o,type:n,actions:t,onClose:d})=>r.jsxs("div",{className:`rpf-alert rpf-alert--${n}`,children:[r.jsxs("div",{className:"rpf-alert__header",children:[r.jsx("span",{className:"rpf-alert__icon material-symbols-sharp"}),i?r.jsx("div",{className:"rpf-alert__title",children:i}):e?r.jsx("p",{className:"rpf-alert__title",children:e}):null,!!d&&r.jsx("div",{className:"rpf-alert__close",children:r.jsx(U,{type:"tertiary",icon:"close",size:"small",iconOnly:!0,onClick:d})})]}),(l||o||t)&&r.jsxs("div",{className:"rpf-alert__body",children:[l?r.jsx("p",{children:l}):o?r.jsx("div",{children:o}):null,t&&t.length>0&&r.jsx("div",{className:"rpf-alert__actions",children:t.map((c,h)=>r.jsx(U,{text:c.label,size:"small",type:"tertiary",href:c.href,onClick:c.onClick},h))})]})]}),Xe=({id:e,label:l,name:i,checked:o=!1,disabled:n=!1,error:t="",onChange:d=()=>{},value:c="",className:h=""})=>r.jsxs(r.Fragment,{children:[r.jsxs("label",{className:Y("rpf-input-checkbox",{"rpf-input-checkbox--error":t,className:h}),children:[r.jsx("input",{checked:!!o,disabled:n,id:e,name:i,onChange:d,type:"checkbox",value:c}),l]}),t&&r.jsxs("div",{className:"rpf-error-message",children:[r.jsx("span",{className:"rpf-error-message__icon material-symbols-sharp",children:"error"}),t]})]}),je=({disabled:e=!1,errorText:l="",fullWidth:i=!1,legendText:o,legendHintText:n="",children:t})=>r.jsxs("fieldset",{className:Y("rpf-fieldset",{"rpf-fieldset--disabled":e,"rpf-fieldset--full-width":i,"rpf-fieldset--error":l}),disabled:e,children:[r.jsxs("legend",{className:"rpf-label",children:[o,n.length>0?r.jsx("small",{className:"rpf-label__hint",children:n}):null]}),r.jsx("div",{className:"rpf-fieldset__inputs",children:t}),l.length>0?r.jsxs("div",{className:"rpf-error-message",children:[r.jsx("span",{className:"rpf-error-message__icon material-symbols-sharp",children:"error"}),l]}):null]});je.propTypes={disabled:s.bool,errorText:s.string,fullWidth:s.bool,legendText:s.string.isRequired,legendHintText:s.string,children:s.node};const J=({id:e,label:l,children:i,disabled:o=!1,error:n="",hint:t=""})=>r.jsxs("div",{className:"rpf-input-field",children:[(l||t)&&r.jsxs("label",{htmlFor:e,className:Y("rpf-label",{"rpf-label--disabled":o}),children:[l,r.jsx("small",{className:"rpf-label__hint",children:t})]}),i,n&&r.jsxs("div",{className:"rpf-error-message",children:[r.jsx("span",{className:"rpf-error-message__icon material-symbols-sharp",children:"error"}),n]})]});J.propTypes={disabled:s.bool,error:s.string,hint:s.oneOfType([s.string,s.object]),label:s.oneOfType([s.string,s.object]).isRequired,id:s.string.isRequired,children:s.node};const Ie=({label:e,inputFieldId:l,disabled:i=!1,hint:o=""})=>r.jsx("div",{className:"rpf-label",children:r.jsxs("label",{htmlFor:l,className:Y("rpf-label",{"rpf-label--disabled":i}),children:[e,o&&r.jsx("div",{className:"rpf-label__hint",children:o})]})});Ie.propTypes={disabled:s.bool,hint:s.oneOfType([s.string,s.object]),label:s.oneOfType([s.string,s.object]).isRequired,inputFieldId:s.string.isRequired};const qe=({id:e,label:l,name:i,checked:o=!1,disabled:n=!1,fullWidth:t=!1,onChange:d=()=>{},value:c=""})=>r.jsx(r.Fragment,{children:r.jsxs("label",{className:Y("rpf-input-radio",{"rpf-input-radio--disabled":n,"rpf-input--full-width":t}),children:[r.jsx("input",{checked:!!o,disabled:n,id:e,name:i,onChange:d,type:"radio",value:c}),l]})});qe.propTypes={checked:s.bool,disabled:s.bool,fullWidth:s.bool,id:s.string.isRequired,label:s.oneOfType([s.string,s.object]).isRequired,name:s.string.isRequired,onChange:s.func,value:s.string};const Ge=({label:e,inputFieldId:l,disabled:i=!1,error:o="",hint:n="",placeholder:t="",defaultValue:d="",onClick:c=()=>{},onChange:h=()=>{}})=>r.jsx("search",{children:r.jsxs("form",{className:"rpf-input-field",onSubmit:c,children:[r.jsxs("label",{htmlFor:l,className:Y("rpf-label",{"rpf-label--disabled":i}),children:[e,n&&r.jsx("small",{className:"rpf-label__hint",children:n})]}),r.jsxs("div",{className:"rpf-input-search-container",children:[r.jsx("input",{className:Y("rpf-input rpf-input-search",{"rpf-input--disabled":i,"rpf-input--error":o}),disabled:i,id:l,name:"search",type:"search","aria-label":"Search",defaultValue:d,placeholder:t,onChange:h}),r.jsx("button",{type:"submit",className:Y("rpf-button rpf-button-search",{"rpf-button--disabled":i,"rpf-button--error":o}),disabled:i,onClick:c,children:r.jsx("span",{className:"rpf-button__icon material-symbols-sharp",children:"search"})})]}),o&&r.jsxs("div",{className:"rpf-error-message",children:[r.jsx("span",{className:"rpf-error-message__icon material-symbols-sharp",children:"info"}),o]})]})}),$e=({id:e,label:l,name:i,options:o,disabled:n=!1,error:t="",fullWidth:d=!1,hint:c="",onChange:h=()=>{},placeholder:T="",value:b=""})=>r.jsx(J,{id:e,disabled:n,error:t,hint:c,label:l,children:r.jsxs("select",{className:Y("rpf-input rpf-input-select",{"rpf-input--error":t,"rpf-input--full-width":d}),disabled:n,id:e,name:i,onChange:h,type:"text",value:b,children:[!b&&!!T&&r.jsx("option",{value:"",disabled:!0,children:T}),o.map(m=>r.jsx("option",{value:m.key,children:m.value},m.key))]})});$e.propTypes={disabled:s.bool,error:s.string,fullWidth:s.bool,hint:s.oneOfType([s.string,s.object]),label:s.oneOfType([s.string,s.object]).isRequired,id:s.string.isRequired,name:s.string.isRequired,onChange:s.func,options:s.array.isRequired,placeholder:s.string,value:s.string};const Me=({id:e,label:l,name:i,value:o,disabled:n=!1,readOnly:t=!1,error:d="",fullWidth:c=!1,hint:h="",onChange:T=()=>{}})=>r.jsx(J,{id:e,disabled:n,error:d,hint:h,label:l,children:r.jsx("textarea",{className:Y("rpf-input rpf-input-textarea",{"rpf-input--error":d,"rpf-input--full-width":c,"rpf-input--disabled":n}),disabled:n,readOnly:t,id:e,name:i,onChange:T,type:"text",value:o})});Me.propTypes={disabled:s.bool,readOnly:s.bool,error:s.string,fullWidth:s.bool,hint:s.oneOfType([s.string,s.object]),label:s.oneOfType([s.string,s.object]).isRequired,id:s.string.isRequired,name:s.string.isRequired,onChange:s.func,value:s.string.isRequired};const ke=({id:e,label:l,name:i,value:o,disabled:n=!1,error:t="",fullWidth:d=!1,hint:c="",onChange:h=()=>{}})=>r.jsx(J,{id:e,disabled:n,error:t,hint:c,label:l,children:r.jsx("input",{className:Y("rpf-input rpf-input-text",{"rpf-input--error":t,"rpf-input--full-width":d}),disabled:n,id:e,name:i,onChange:h,type:"text",value:o})});ke.propTypes={disabled:s.bool,error:s.string,fullWidth:s.bool,hint:s.oneOfType([s.string,s.object]),label:s.oneOfType([s.string,s.object]).isRequired,id:s.string.isRequired,name:s.string.isRequired,onChange:s.func,value:s.string.isRequired};function Ke(e,l){const i=V.useRef(null),o=V.useRef(null);return V.useEffect(()=>{const n=i.current;n&&(e&&!n.open?n.showModal():!e&&n.open&&n.close())},[e]),V.useEffect(()=>{const n=i.current;if(!n)return;const t=()=>l(!1),d=c=>{c.preventDefault(),l(!1)};return n.addEventListener("close",t),n.addEventListener("cancel",d),()=>{n.removeEventListener("close",t),n.removeEventListener("cancel",d)}},[l]),V.useEffect(()=>{const n=i.current,t=o.current;if(!n||!t)return;const d=c=>{e&&!t.contains(c.target)&&l(!1)};return n.addEventListener("mousedown",d),()=>n.removeEventListener("mousedown",d)},[e,l]),{dialogRef:i,contentRef:o}}const Ze=({isOpen:e,setIsOpen:l,heading:i,children:o,primaryButtonLink:n,primaryButtonText:t,onClickPrimaryButton:d,secondaryButtonText:c,secondaryButtonLink:h,onClickSecondaryButton:T,tertiaryButtonText:b,tertiaryButtonLink:m,onClickTertiaryButton:j,showCloseButton:I=!0})=>{const{dialogRef:k,contentRef:N}=Ke(e,l);return r.jsx("dialog",{ref:k,className:"rpf-modal","aria-labelledby":"modal-heading","aria-describedby":"modal-description",children:r.jsxs("div",{ref:N,className:"rpf-modal__wrapper",children:[r.jsxs("div",{className:"rpf-modal__header",children:[r.jsx("h2",{className:"rpf-modal__title",id:"modal-heading",children:i}),I&&r.jsx(U,{icon:"close",iconOnly:!0,"aria-label":"Close modal",type:"tertiary",onClick:()=>l(!1)})]}),r.jsx("div",{id:"modal-description",className:"rpf-modal__content",tabIndex:0,children:o}),r.jsxs("div",{className:"rpf-modal__buttons",children:[r.jsx(U,{text:t,href:n,onClick:d,type:"primary"}),c&&r.jsx(U,{text:c,href:h,onClick:T,type:"secondary"}),b&&r.jsx(U,{text:b,href:m,onClick:j,type:"tertiary"})]})]})})},Qe=({text:e="",percent:l,complete:i=!1,className:o})=>r.jsx("div",{className:Y("rpf-progress-bar",{"rpf-progress-bar--complete":i,className:o}),children:r.jsxs("label",{className:"rpf-progress-bar__label",children:[r.jsx("span",{children:e}),r.jsx("progress",{className:"rpf-progress-bar__bar",value:l,max:"100",children:`${l}%`})]})}),er=({children:e})=>r.jsx("td",{className:"rpf-table-cell rpf-table-cell--body",children:r.jsx("div",{className:"rpf-table-cell__content",children:e})}),rr=({sortDirection:e,children:l,onClick:i})=>{const o=e==="up"?"arrow_drop_up":e==="down"?"arrow_drop_down":null,n=e!==void 0?"rpf-table-cell--sortable-header":"rpf-table-cell--header";return r.jsx("th",{className:`rpf-table-cell ${n}`,"aria-sort":e==="up"?"ascending":e==="down"?"descending":"none",children:r.jsx("div",{className:"rpf-table-cell__content",children:e?r.jsxs("button",{className:"rpf-table-cell__sort-header",onClick:i,children:[l,r.jsx("span",{className:"material-symbols-sharp",children:o})]}):r.jsx(r.Fragment,{children:l})})})},tr=({headerRow:e,bodyRows:l,fullWidth:i})=>r.jsx("div",{"data-testid":"table-container",className:Y("rpf-table",{"rpf-table--full-width":i}),children:r.jsxs("table",{className:Y("rpf-table__table",{"rpf-table__table--full-width":i}),children:[r.jsx("thead",{children:r.jsx("tr",{className:"rpf-table-row",children:e})}),r.jsx("tbody",{children:l.map((o,n)=>r.jsx("tr",{className:"rpf-table-row",children:o},n))})]})}),nr=({text:e,variant:l,secondary:i,icon:o,iconPosition:n})=>{const t=o?r.jsx("span",{className:"rpf-tag__icon material-symbols-sharp",children:o}):null;o&&!n&&(n="left");const d=l&&l!=="default"?`rpf-tag--${l}`:null;return r.jsxs("span",{className:Y("rpf-tag",d,{"rpf-tag--secondary":i}),children:[n==="left"&&t,e,n==="right"&&t]})};A.Accordion=Ae,A.Alert=Je,A.Button=U,A.CheckboxInput=Xe,A.Fieldset=je,A.InputField=J,A.InputLabel=Ie,A.Modal=Ze,A.ProgressBar=Qe,A.RadioInput=qe,A.SearchInput=Ge,A.SelectInput=$e,A.Table=tr,A.TableBodyCell=er,A.TableHeaderCell=rr,A.Tag=nr,A.TextInput=ke,A.TextareaInput=Me,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})});
23
+ */var re,we;function Be(){if(we)return re;we=1;var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(r){if(r==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(r)}function o(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de",Object.getOwnPropertyNames(r)[0]==="5")return!1;for(var f={},l=0;l<10;l++)f["_"+String.fromCharCode(l)]=l;var y=Object.getOwnPropertyNames(f).map(function(h){return f[h]});if(y.join("")!=="0123456789")return!1;var b={};return"abcdefghijklmnopqrst".split("").forEach(function(h){b[h]=h}),Object.keys(Object.assign({},b)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return re=o()?Object.assign:function(r,f){for(var l,y=a(r),b,h=1;h<arguments.length;h++){l=Object(arguments[h]);for(var g in l)n.call(l,g)&&(y[g]=l[g]);if(e){b=e(l);for(var j=0;j<b.length;j++)i.call(l,b[j])&&(y[b[j]]=l[b[j]])}}return y},re}var te,Se;function ne(){if(Se)return te;Se=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return te=e,te}var ae,Ce;function Oe(){return Ce||(Ce=1,ae=Function.call.bind(Object.prototype.hasOwnProperty)),ae}var oe,Pe;function Ve(){if(Pe)return oe;Pe=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var n=ne(),i={},a=Oe();e=function(r){var f="Warning: "+r;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}}}function o(r,f,l,y,b){if(process.env.NODE_ENV!=="production"){for(var h in r)if(a(r,h)){var g;try{if(typeof r[h]!="function"){var j=Error((y||"React class")+": "+l+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw j.name="Invariant Violation",j}g=r[h](f,h,y,l,null,n)}catch(M){g=M}if(g&&!(g instanceof Error)&&e((y||"React class")+": type specification of "+l+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in i)){i[g.message]=!0;var I=b?b():"";e("Failed "+l+" type: "+g.message+(I??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(i={})},oe=o,oe}var se,xe;function He(){if(xe)return se;xe=1;var e=Ee(),n=Be(),i=ne(),a=Oe(),o=Ve(),r=function(){};process.env.NODE_ENV!=="production"&&(r=function(l){var y="Warning: "+l;typeof console<"u"&&console.error(y);try{throw new Error(y)}catch{}});function f(){return null}return se=function(l,y){var b=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function g(s){var p=s&&(b&&s[b]||s[h]);if(typeof p=="function")return p}var j="<<anonymous>>",I={array:D("array"),bigint:D("bigint"),bool:D("boolean"),func:D("function"),number:D("number"),object:D("object"),string:D("string"),symbol:D("symbol"),any:z(),arrayOf:k,element:q(),elementType:u(),instanceOf:W,node:de(),objectOf:fe,oneOf:le,oneOfType:ue,shape:pe,exact:ye};function M(s,p){return s===p?s!==0||1/s===1/p:s!==s&&p!==p}function N(s,p){this.message=s,this.data=p&&typeof p=="object"?p:{},this.stack=""}N.prototype=Error.prototype;function $(s){if(process.env.NODE_ENV!=="production")var p={},E=0;function _(w,m,T,S,x,C,Y){if(S=S||j,C=C||T,Y!==i){if(y){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var U=S+":"+T;!p[U]&&E<3&&(r("You are manually calling a React.PropTypes validation function for the `"+C+"` prop on `"+S+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),p[U]=!0,E++)}}return m[T]==null?w?m[T]===null?new N("The "+x+" `"+C+"` is marked as required "+("in `"+S+"`, but its value is `null`.")):new N("The "+x+" `"+C+"` is marked as required in "+("`"+S+"`, but its value is `undefined`.")):null:s(m,T,S,x,C)}var v=_.bind(null,!1);return v.isRequired=_.bind(null,!0),v}function D(s){function p(E,_,v,w,m,T){var S=E[_],x=R(S);if(x!==s){var C=V(S);return new N("Invalid "+w+" `"+m+"` of type "+("`"+C+"` supplied to `"+v+"`, expected ")+("`"+s+"`."),{expectedType:s})}return null}return $(p)}function z(){return $(f)}function k(s){function p(E,_,v,w,m){if(typeof s!="function")return new N("Property `"+m+"` of component `"+v+"` has invalid PropType notation inside arrayOf.");var T=E[_];if(!Array.isArray(T)){var S=R(T);return new N("Invalid "+w+" `"+m+"` of type "+("`"+S+"` supplied to `"+v+"`, expected an array."))}for(var x=0;x<T.length;x++){var C=s(T,x,v,w,m+"["+x+"]",i);if(C instanceof Error)return C}return null}return $(p)}function q(){function s(p,E,_,v,w){var m=p[E];if(!l(m)){var T=R(m);return new N("Invalid "+v+" `"+w+"` of type "+("`"+T+"` supplied to `"+_+"`, expected a single ReactElement."))}return null}return $(s)}function u(){function s(p,E,_,v,w){var m=p[E];if(!e.isValidElementType(m)){var T=R(m);return new N("Invalid "+v+" `"+w+"` of type "+("`"+T+"` supplied to `"+_+"`, expected a single ReactElement type."))}return null}return $(s)}function W(s){function p(E,_,v,w,m){if(!(E[_]instanceof s)){var T=s.name||j,S=ve(E[_]);return new N("Invalid "+w+" `"+m+"` of type "+("`"+S+"` supplied to `"+v+"`, expected ")+("instance of `"+T+"`."))}return null}return $(p)}function le(s){if(!Array.isArray(s))return process.env.NODE_ENV!=="production"&&(arguments.length>1?r("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):r("Invalid argument supplied to oneOf, expected an array.")),f;function p(E,_,v,w,m){for(var T=E[_],S=0;S<s.length;S++)if(M(T,s[S]))return null;var x=JSON.stringify(s,function(Y,d){var U=V(d);return U==="symbol"?String(d):d});return new N("Invalid "+w+" `"+m+"` of value `"+String(T)+"` "+("supplied to `"+v+"`, expected one of "+x+"."))}return $(p)}function fe(s){function p(E,_,v,w,m){if(typeof s!="function")return new N("Property `"+m+"` of component `"+v+"` has invalid PropType notation inside objectOf.");var T=E[_],S=R(T);if(S!=="object")return new N("Invalid "+w+" `"+m+"` of type "+("`"+S+"` supplied to `"+v+"`, expected an object."));for(var x in T)if(a(T,x)){var C=s(T,x,v,w,m+"."+x,i);if(C instanceof Error)return C}return null}return $(p)}function ue(s){if(!Array.isArray(s))return process.env.NODE_ENV!=="production"&&r("Invalid argument supplied to oneOfType, expected an instance of array."),f;for(var p=0;p<s.length;p++){var E=s[p];if(typeof E!="function")return r("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+G(E)+" at index "+p+"."),f}function _(v,w,m,T,S){for(var x=[],C=0;C<s.length;C++){var Y=s[C],d=Y(v,w,m,T,S,i);if(d==null)return null;d.data&&a(d.data,"expectedType")&&x.push(d.data.expectedType)}var U=x.length>0?", expected one of type ["+x.join(", ")+"]":"";return new N("Invalid "+T+" `"+S+"` supplied to "+("`"+m+"`"+U+"."))}return $(_)}function de(){function s(p,E,_,v,w){return H(p[E])?null:new N("Invalid "+v+" `"+w+"` supplied to "+("`"+_+"`, expected a ReactNode."))}return $(s)}function X(s,p,E,_,v){return new N((s||"React class")+": "+p+" type `"+E+"."+_+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+v+"`.")}function pe(s){function p(E,_,v,w,m){var T=E[_],S=R(T);if(S!=="object")return new N("Invalid "+w+" `"+m+"` of type `"+S+"` "+("supplied to `"+v+"`, expected `object`."));for(var x in s){var C=s[x];if(typeof C!="function")return X(v,w,m,x,V(C));var Y=C(T,x,v,w,m+"."+x,i);if(Y)return Y}return null}return $(p)}function ye(s){function p(E,_,v,w,m){var T=E[_],S=R(T);if(S!=="object")return new N("Invalid "+w+" `"+m+"` of type `"+S+"` "+("supplied to `"+v+"`, expected `object`."));var x=n({},E[_],s);for(var C in x){var Y=s[C];if(a(s,C)&&typeof Y!="function")return X(v,w,m,C,V(Y));if(!Y)return new N("Invalid "+w+" `"+m+"` key `"+C+"` supplied to `"+v+"`.\nBad object: "+JSON.stringify(E[_],null," ")+`
24
+ Valid keys: `+JSON.stringify(Object.keys(s),null," "));var d=Y(T,C,v,w,m+"."+C,i);if(d)return d}return null}return $(p)}function H(s){switch(typeof s){case"number":case"string":case"undefined":return!0;case"boolean":return!s;case"object":if(Array.isArray(s))return s.every(H);if(s===null||l(s))return!0;var p=g(s);if(p){var E=p.call(s),_;if(p!==s.entries){for(;!(_=E.next()).done;)if(!H(_.value))return!1}else for(;!(_=E.next()).done;){var v=_.value;if(v&&!H(v[1]))return!1}}else return!1;return!0;default:return!1}}function he(s,p){return s==="symbol"?!0:p?p["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&p instanceof Symbol:!1}function R(s){var p=typeof s;return Array.isArray(s)?"array":s instanceof RegExp?"object":he(p,s)?"symbol":p}function V(s){if(typeof s>"u"||s===null)return""+s;var p=R(s);if(p==="object"){if(s instanceof Date)return"date";if(s instanceof RegExp)return"regexp"}return p}function G(s){var p=V(s);switch(p){case"array":case"object":return"an "+p;case"boolean":case"date":case"regexp":return"a "+p;default:return p}}function ve(s){return!s.constructor||!s.constructor.name?j:s.constructor.name}return I.checkPropTypes=o,I.resetWarningCache=o.resetWarningCache,I.PropTypes=I,I},se}var ie,Ne;function Je(){if(Ne)return ie;Ne=1;var e=ne();function n(){}function i(){}return i.resetWarningCache=n,ie=function(){function a(f,l,y,b,h,g){if(g!==e){var j=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw j.name="Invariant Violation",j}}a.isRequired=a;function o(){return a}var r={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:o,element:a,elementType:a,instanceOf:o,node:a,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:i,resetWarningCache:n};return r.PropTypes=r,r},ie}var Ae;function Ze(){if(Ae)return Z.exports;if(Ae=1,process.env.NODE_ENV!=="production"){var e=Ee(),n=!0;Z.exports=He()(e.isElement,n)}else Z.exports=Je()();return Z.exports}var Ke=Ze();const c=be(Ke),je=({content:e,title:n,className:i,id:a="accordion"})=>{const o=L("rpf-accordion",i);return t.jsxs("details",{className:o,id:`${a}`,children:[t.jsxs("summary",{className:"rpf-accordion__title",role:"button",children:[n,t.jsx("span",{className:"rpf-accordion__icon"})]}),t.jsx("p",{className:"rpf-accordion__text",children:e})]})};je.propTypes={content:c.string.isRequired,title:c.string.isRequired,id:c.string,className:c.string};const B=({text:e,href:n,title:i,className:a,type:o="primary",variant:r="",size:f="default",icon:l="",iconOnly:y=!1,iconPosition:b="left",fullWidth:h=!1,disabled:g=!1,onClick:j=()=>{},"aria-label":I="",linkComponent:M})=>{const N=l&&y,$=L("rpf-button",{[`rpf-button--${o}`]:o,"rpf-button--danger":r==="danger","rpf-button--sm":f==="small","rpf-button--icon-only":N,"rpf-button--full-width":h,disabled:g},a);let D="rpf-button__icon";F.isValidElement(l)?(D+=" icon",console.warn("DEPRECATED: icons as React elements will not be supported in future releases")):D+=" material-symbols-sharp";const z=(u,W)=>!W||b!==u?null:typeof W=="string"?t.jsx("span",{className:D,children:W}):W,k=()=>e&&!N&&t.jsx("span",{className:"text",children:e}),q=t.jsxs(t.Fragment,{children:[z("left",l),k(),z("right",l)]});if(n){const u=M||"a",W=M?{to:n}:{href:n,role:"button"};return t.jsx(u,{className:$,...W,onClick:j,"aria-label":I,children:q})}return t.jsx("button",{className:$,title:i,onClick:j,disabled:g,"aria-label":I,children:q})},Xe=({title:e,text:n,titleChildren:i,children:a,type:o,actions:r,onClose:f})=>t.jsxs("div",{className:`rpf-alert rpf-alert--${o}`,children:[t.jsxs("div",{className:"rpf-alert__header",children:[t.jsx("span",{className:"rpf-alert__icon material-symbols-sharp"}),i?t.jsx("div",{className:"rpf-alert__title",children:i}):e?t.jsx("p",{className:"rpf-alert__title",children:e}):null,!!f&&t.jsx("div",{className:"rpf-alert__close",children:t.jsx(B,{type:"tertiary",icon:"close",size:"small",iconOnly:!0,onClick:f})})]}),(n||a||r)&&t.jsxs("div",{className:"rpf-alert__body",children:[n?t.jsx("p",{children:n}):a?t.jsx("div",{children:a}):null,r&&r.length>0&&t.jsx("div",{className:"rpf-alert__actions",children:r.map((l,y)=>t.jsx(B,{text:l.label,size:"small",type:"tertiary",href:l.href,onClick:l.onClick},y))})]})]}),Ge=({id:e,label:n,name:i,checked:a=!1,disabled:o=!1,error:r="",onChange:f=()=>{},value:l="",className:y=""})=>t.jsxs(t.Fragment,{children:[t.jsxs("label",{className:L("rpf-input-checkbox",{"rpf-input-checkbox--error":r,className:y}),children:[t.jsx("input",{checked:!!a,disabled:o,id:e,name:i,onChange:f,type:"checkbox",value:l}),n]}),r&&t.jsxs("div",{className:"rpf-error-message",children:[t.jsx("span",{className:"rpf-error-message__icon material-symbols-sharp",children:"error"}),r]})]}),Ie=({disabled:e=!1,errorText:n="",fullWidth:i=!1,legendText:a,legendHintText:o="",children:r})=>t.jsxs("fieldset",{className:L("rpf-fieldset",{"rpf-fieldset--disabled":e,"rpf-fieldset--full-width":i,"rpf-fieldset--error":n}),disabled:e,children:[t.jsxs("legend",{className:"rpf-label",children:[a,o.length>0?t.jsx("small",{className:"rpf-label__hint",children:o}):null]}),t.jsx("div",{className:"rpf-fieldset__inputs",children:r}),n.length>0?t.jsxs("div",{className:"rpf-error-message",children:[t.jsx("span",{className:"rpf-error-message__icon material-symbols-sharp",children:"error"}),n]}):null]});Ie.propTypes={disabled:c.bool,errorText:c.string,fullWidth:c.bool,legendText:c.string.isRequired,legendHintText:c.string,children:c.node};const J=({id:e,label:n,children:i,disabled:a=!1,error:o="",hint:r=""})=>t.jsxs("div",{className:"rpf-input-field",children:[(n||r)&&t.jsxs("label",{htmlFor:e,className:L("rpf-label",{"rpf-label--disabled":a}),children:[n,t.jsx("small",{className:"rpf-label__hint",children:r})]}),i,o&&t.jsxs("div",{className:"rpf-error-message",children:[t.jsx("span",{className:"rpf-error-message__icon material-symbols-sharp",children:"error"}),o]})]});J.propTypes={disabled:c.bool,error:c.string,hint:c.oneOfType([c.string,c.object]),label:c.oneOfType([c.string,c.object]).isRequired,id:c.string.isRequired,children:c.node};const qe=({label:e,inputFieldId:n,disabled:i=!1,hint:a=""})=>t.jsx("div",{className:"rpf-label",children:t.jsxs("label",{htmlFor:n,className:L("rpf-label",{"rpf-label--disabled":i}),children:[e,a&&t.jsx("div",{className:"rpf-label__hint",children:a})]})});qe.propTypes={disabled:c.bool,hint:c.oneOfType([c.string,c.object]),label:c.oneOfType([c.string,c.object]).isRequired,inputFieldId:c.string.isRequired};const $e=({id:e,label:n,name:i,checked:a=!1,disabled:o=!1,fullWidth:r=!1,onChange:f=()=>{},value:l=""})=>t.jsx(t.Fragment,{children:t.jsxs("label",{className:L("rpf-input-radio",{"rpf-input-radio--disabled":o,"rpf-input--full-width":r}),children:[t.jsx("input",{checked:!!a,disabled:o,id:e,name:i,onChange:f,type:"radio",value:l}),n]})});$e.propTypes={checked:c.bool,disabled:c.bool,fullWidth:c.bool,id:c.string.isRequired,label:c.oneOfType([c.string,c.object]).isRequired,name:c.string.isRequired,onChange:c.func,value:c.string};const Qe=({label:e,inputFieldId:n,disabled:i=!1,error:a="",hint:o="",placeholder:r="",defaultValue:f="",onClick:l=()=>{},onChange:y=()=>{}})=>t.jsx("search",{children:t.jsxs("form",{className:"rpf-input-field",onSubmit:l,children:[t.jsxs("label",{htmlFor:n,className:L("rpf-label",{"rpf-label--disabled":i}),children:[e,o&&t.jsx("small",{className:"rpf-label__hint",children:o})]}),t.jsxs("div",{className:"rpf-input-search-container",children:[t.jsx("input",{className:L("rpf-input rpf-input-search",{"rpf-input--disabled":i,"rpf-input--error":a}),disabled:i,id:n,name:"search",type:"search","aria-label":"Search",defaultValue:f,placeholder:r,onChange:y}),t.jsx("button",{type:"submit",className:L("rpf-button rpf-button-search",{"rpf-button--disabled":i,"rpf-button--error":a}),disabled:i,onClick:l,children:t.jsx("span",{className:"rpf-button__icon material-symbols-sharp",children:"search"})})]}),a&&t.jsxs("div",{className:"rpf-error-message",children:[t.jsx("span",{className:"rpf-error-message__icon material-symbols-sharp",children:"info"}),a]})]})}),ke=({id:e,label:n,name:i,options:a,disabled:o=!1,error:r="",fullWidth:f=!1,hint:l="",onChange:y=()=>{},placeholder:b="",value:h=""})=>t.jsx(J,{id:e,disabled:o,error:r,hint:l,label:n,children:t.jsxs("select",{className:L("rpf-input rpf-input-select",{"rpf-input--error":r,"rpf-input--full-width":f}),disabled:o,id:e,name:i,onChange:y,type:"text",value:h,children:[!h&&!!b&&t.jsx("option",{value:"",disabled:!0,children:b}),a.map(g=>t.jsx("option",{value:g.key,children:g.value},g.key))]})});ke.propTypes={disabled:c.bool,error:c.string,fullWidth:c.bool,hint:c.oneOfType([c.string,c.object]),label:c.oneOfType([c.string,c.object]).isRequired,id:c.string.isRequired,name:c.string.isRequired,onChange:c.func,options:c.array.isRequired,placeholder:c.string,value:c.string};const Me=({id:e,label:n,name:i,value:a,disabled:o=!1,readOnly:r=!1,error:f="",fullWidth:l=!1,hint:y="",onChange:b=()=>{}})=>t.jsx(J,{id:e,disabled:o,error:f,hint:y,label:n,children:t.jsx("textarea",{className:L("rpf-input rpf-input-textarea",{"rpf-input--error":f,"rpf-input--full-width":l,"rpf-input--disabled":o}),disabled:o,readOnly:r,id:e,name:i,onChange:b,type:"text",value:a})});Me.propTypes={disabled:c.bool,readOnly:c.bool,error:c.string,fullWidth:c.bool,hint:c.oneOfType([c.string,c.object]),label:c.oneOfType([c.string,c.object]).isRequired,id:c.string.isRequired,name:c.string.isRequired,onChange:c.func,value:c.string.isRequired};const Le=({id:e,label:n,name:i,value:a,disabled:o=!1,error:r="",fullWidth:f=!1,hint:l="",onChange:y=()=>{}})=>t.jsx(J,{id:e,disabled:o,error:r,hint:l,label:n,children:t.jsx("input",{className:L("rpf-input rpf-input-text",{"rpf-input--error":r,"rpf-input--full-width":f}),disabled:o,id:e,name:i,onChange:y,type:"text",value:a})});Le.propTypes={disabled:c.bool,error:c.string,fullWidth:c.bool,hint:c.oneOfType([c.string,c.object]),label:c.oneOfType([c.string,c.object]).isRequired,id:c.string.isRequired,name:c.string.isRequired,onChange:c.func,value:c.string.isRequired};function er(e,n){const i=F.useRef(null),a=F.useRef(null);return F.useEffect(()=>{const o=i.current;o&&(e&&!o.open?o.showModal():!e&&o.open&&o.close())},[e]),F.useEffect(()=>{const o=i.current;if(!o)return;const r=()=>n(!1),f=l=>{l.preventDefault(),n(!1)};return o.addEventListener("close",r),o.addEventListener("cancel",f),()=>{o.removeEventListener("close",r),o.removeEventListener("cancel",f)}},[n]),F.useEffect(()=>{const o=i.current,r=a.current;if(!o||!r)return;const f=l=>{e&&!r.contains(l.target)&&n(!1)};return o.addEventListener("mousedown",f),()=>o.removeEventListener("mousedown",f)},[e,n]),{dialogRef:i,contentRef:a}}const rr=({isOpen:e,setIsOpen:n,heading:i,children:a,primaryButtonLink:o,primaryButtonText:r,onClickPrimaryButton:f,secondaryButtonText:l,secondaryButtonLink:y,onClickSecondaryButton:b,tertiaryButtonText:h,tertiaryButtonLink:g,onClickTertiaryButton:j,showCloseButton:I=!0})=>{const{dialogRef:M,contentRef:N}=er(e,n);return t.jsx("dialog",{ref:M,className:"rpf-modal","aria-labelledby":"modal-heading","aria-describedby":"modal-description",children:t.jsxs("div",{ref:N,className:"rpf-modal__wrapper",children:[t.jsxs("div",{className:"rpf-modal__header",children:[t.jsx("h2",{className:"rpf-modal__title",id:"modal-heading",children:i}),I&&t.jsx(B,{icon:"close",iconOnly:!0,"aria-label":"Close modal",type:"tertiary",onClick:()=>n(!1)})]}),t.jsx("div",{id:"modal-description",className:"rpf-modal__content",tabIndex:0,children:a}),t.jsxs("div",{className:"rpf-modal__buttons",children:[t.jsx(B,{text:r,href:o,onClick:f,type:"primary"}),l&&t.jsx(B,{text:l,href:y,onClick:b,type:"secondary"}),h&&t.jsx(B,{text:h,href:g,onClick:j,type:"tertiary"})]})]})})},tr=({text:e="",percent:n,complete:i=!1,className:a})=>t.jsx("div",{className:L("rpf-progress-bar",{"rpf-progress-bar--complete":i,className:a}),children:t.jsxs("label",{className:"rpf-progress-bar__label",children:[t.jsx("span",{children:e}),t.jsx("progress",{className:"rpf-progress-bar__bar",value:n,max:"100",children:`${n}%`})]})}),nr=({children:e})=>t.jsx("td",{className:"rpf-table-cell rpf-table-cell--body",children:t.jsx("div",{className:"rpf-table-cell__content",children:e})});/**
25
+ * @license lucide-react v0.553.0 - ISC
26
+ *
27
+ * This source code is licensed under the ISC license.
28
+ * See the LICENSE file in the root directory of this source tree.
29
+ */const ar=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),or=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,i,a)=>a?a.toUpperCase():i.toLowerCase()),De=e=>{const n=or(e);return n.charAt(0).toUpperCase()+n.slice(1)},We=(...e)=>e.filter((n,i,a)=>!!n&&n.trim()!==""&&a.indexOf(n)===i).join(" ").trim(),sr=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0};/**
30
+ * @license lucide-react v0.553.0 - ISC
31
+ *
32
+ * This source code is licensed under the ISC license.
33
+ * See the LICENSE file in the root directory of this source tree.
34
+ */var ir={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
35
+ * @license lucide-react v0.553.0 - ISC
36
+ *
37
+ * This source code is licensed under the ISC license.
38
+ * See the LICENSE file in the root directory of this source tree.
39
+ */const cr=F.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:i=2,absoluteStrokeWidth:a,className:o="",children:r,iconNode:f,...l},y)=>F.createElement("svg",{ref:y,...ir,width:n,height:n,stroke:e,strokeWidth:a?Number(i)*24/Number(n):i,className:We("lucide",o),...!r&&!sr(l)&&{"aria-hidden":"true"},...l},[...f.map(([b,h])=>F.createElement(b,h)),...Array.isArray(r)?r:[r]]));/**
40
+ * @license lucide-react v0.553.0 - ISC
41
+ *
42
+ * This source code is licensed under the ISC license.
43
+ * See the LICENSE file in the root directory of this source tree.
44
+ */const ce=(e,n)=>{const i=F.forwardRef(({className:a,...o},r)=>F.createElement(cr,{ref:r,iconNode:n,className:We(`lucide-${ar(De(e))}`,`lucide-${e}`,a),...o}));return i.displayName=De(e),i};/**
45
+ * @license lucide-react v0.553.0 - ISC
46
+ *
47
+ * This source code is licensed under the ISC license.
48
+ * See the LICENSE file in the root directory of this source tree.
49
+ */const lr=ce("arrow-down-up",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"m21 8-4-4-4 4",key:"1c9v7m"}],["path",{d:"M17 4v16",key:"7dpous"}]]);/**
50
+ * @license lucide-react v0.553.0 - ISC
51
+ *
52
+ * This source code is licensed under the ISC license.
53
+ * See the LICENSE file in the root directory of this source tree.
54
+ */const fr=ce("arrow-down-wide-narrow",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h10",key:"1w87gc"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h4",key:"q8tih4"}]]);/**
55
+ * @license lucide-react v0.553.0 - ISC
56
+ *
57
+ * This source code is licensed under the ISC license.
58
+ * See the LICENSE file in the root directory of this source tree.
59
+ */const ur=ce("arrow-up-narrow-wide",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h4",key:"q8tih4"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h10",key:"jvxblo"}]]),dr=(e,n)=>{if(e)return n==="up"?"ascending":n==="down"?"descending":"none"},pr=({sortDirection:e,children:n,onClick:i})=>{const a=!!i,o=e==="up"?ur:e==="down"?fr:lr,r=dr(a,e),f=a?"rpf-table-cell--sortable-header":"rpf-table-cell--header";return t.jsx("th",{className:`rpf-table-cell ${f}`,"aria-sort":r,children:t.jsx("div",{className:"rpf-table-cell__content",children:a?t.jsxs("button",{className:"rpf-table-cell__sort-header",onClick:i,children:[n,t.jsx(o,{size:20})]}):t.jsx(t.Fragment,{children:n})})})},yr=({headerRow:e,bodyRows:n,fullWidth:i})=>t.jsx("div",{"data-testid":"table-container",className:L("rpf-table",{"rpf-table--full-width":i}),children:t.jsxs("table",{className:L("rpf-table__table",{"rpf-table__table--full-width":i}),children:[t.jsx("thead",{children:t.jsx("tr",{className:"rpf-table-row",children:e})}),t.jsx("tbody",{children:n.map((a,o)=>t.jsx("tr",{className:"rpf-table-row",children:a},o))})]})}),hr=({text:e,variant:n,secondary:i,icon:a,iconPosition:o})=>{const r=a?t.jsx("span",{className:"rpf-tag__icon material-symbols-sharp",children:a}):null;a&&!o&&(o="left");const f=n&&n!=="default"?`rpf-tag--${n}`:null;return t.jsxs("span",{className:L("rpf-tag",f,{"rpf-tag--secondary":i}),children:[o==="left"&&r,e,o==="right"&&r]})};A.Accordion=je,A.Alert=Xe,A.Button=B,A.CheckboxInput=Ge,A.Fieldset=Ie,A.InputField=J,A.InputLabel=qe,A.Modal=rr,A.ProgressBar=tr,A.RadioInput=$e,A.SearchInput=Qe,A.SelectInput=ke,A.Table=yr,A.TableBodyCell=nr,A.TableHeaderCell=pr,A.Tag=hr,A.TextInput=Le,A.TextareaInput=Me,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})});
@@ -1 +1 @@
1
- {"version":3,"file":"BodyCell.spec.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Table/BodyCell/BodyCell.spec.jsx"],"names":[],"mappings":""}
1
+ {"version":3,"file":"BodyCell.spec.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Table/BodyCell/BodyCell.spec.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export declare const getAriaSort: (isSortable: boolean, sortDirection?: "up" | "down" | null) => "ascending" | "descending" | "none" | undefined;
2
+ //# sourceMappingURL=HeaderCell.helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderCell.helpers.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Table/HeaderCell/HeaderCell.helpers.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,GACtB,YAAY,OAAO,EACnB,gBAAgB,IAAI,GAAG,MAAM,GAAG,IAAI,KACnC,WAAW,GAAG,YAAY,GAAG,MAAM,GAAG,SAKxC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"HeaderCell.spec.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Table/HeaderCell/HeaderCell.spec.jsx"],"names":[],"mappings":""}
1
+ {"version":3,"file":"HeaderCell.spec.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Table/HeaderCell/HeaderCell.spec.tsx"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Table/HeaderCell/index.tsx"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,eAAO,MAAM,UAAU,GAAI,uCAIxB,eAAe,4CAoCjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Table/HeaderCell/index.tsx"],"names":[],"mappings":"AAMA,OAAO,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,eAAO,MAAM,UAAU,GAAI,uCAIxB,eAAe,4CA8BjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Table.spec.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Table/Table/Table.spec.jsx"],"names":[],"mappings":""}
1
+ {"version":3,"file":"Table.spec.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Table/Table/Table.spec.tsx"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"Table.stories.d.ts","sourceRoot":"","sources":["../../../../../src/stories/table/Table.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAMvD,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAGrD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,KAAK,CAO5B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,KAAK,CAAC,CAAC;AAsCpC,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAKvB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,KA6CjC,CAAC"}
1
+ {"version":3,"file":"Table.stories.d.ts","sourceRoot":"","sources":["../../../../../src/stories/table/Table.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAMvD,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAGrD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,KAAK,CAO5B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,KAAK,CAAC,CAAC;AAsCpC,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAKvB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,KA8DjC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raspberrypifoundation/design-system-react",
3
- "version": "2.7.0",
3
+ "version": "2.7.1",
4
4
  "type": "module",
5
5
  "main": "./dist/design-system-react.umd.cjs",
6
6
  "module": "./dist/design-system-react.js",
@@ -41,7 +41,8 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "@raspberrypifoundation/design-system-core": "^2.4.0",
44
- "classnames": "^2.5.1"
44
+ "classnames": "^2.5.1",
45
+ "lucide-react": "^0.553.0"
45
46
  },
46
47
  "devDependencies": {
47
48
  "@eslint/js": "^9.15.0",