@raspberrypifoundation/design-system-react 2.5.0 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/design-system-react.css +1 -1
- package/dist/design-system-react.js +782 -687
- package/dist/design-system-react.umd.cjs +6 -6
- package/dist/scss/components/modal.scss +95 -0
- package/dist/scss/design-system-core.scss +4 -0
- package/dist/scss/properties/colors/_utilities.scss +4 -0
- package/dist/types/lib/main.d.ts +20 -0
- package/dist/types/lib/main.d.ts.map +1 -0
- package/dist/types/src/components/Accordion/Accordion.spec.d.ts +2 -0
- package/dist/types/src/components/Accordion/Accordion.spec.d.ts.map +1 -0
- package/dist/types/src/components/Accordion/index.d.ts +17 -0
- package/dist/types/src/components/Accordion/index.d.ts.map +1 -0
- package/dist/types/src/components/Alert/Alert.spec.d.ts +2 -0
- package/dist/types/src/components/Alert/Alert.spec.d.ts.map +1 -0
- package/dist/types/src/components/Alert/index.d.ts +27 -0
- package/dist/types/src/components/Alert/index.d.ts.map +1 -0
- package/dist/types/src/components/Button/Button.spec.d.ts +2 -0
- package/dist/types/src/components/Button/Button.spec.d.ts.map +1 -0
- package/dist/types/src/components/Button/index.d.ts +39 -0
- package/dist/types/src/components/Button/index.d.ts.map +1 -0
- package/dist/types/src/components/Form/CheckboxInput/index.d.ts +27 -0
- package/dist/types/src/components/Form/CheckboxInput/index.d.ts.map +1 -0
- package/dist/types/src/components/Form/Fieldset/Fieldset.spec.d.ts +2 -0
- package/dist/types/src/components/Form/Fieldset/Fieldset.spec.d.ts.map +1 -0
- package/dist/types/src/components/Form/Fieldset/index.d.ts +21 -0
- package/dist/types/src/components/Form/Fieldset/index.d.ts.map +1 -0
- package/dist/types/src/components/Form/InputField/index.d.ts +21 -0
- package/dist/types/src/components/Form/InputField/index.d.ts.map +1 -0
- package/dist/types/src/components/Form/InputLabel/InputLabel.spec.d.ts +2 -0
- package/dist/types/src/components/Form/InputLabel/InputLabel.spec.d.ts.map +1 -0
- package/dist/types/src/components/Form/InputLabel/index.d.ts +17 -0
- package/dist/types/src/components/Form/InputLabel/index.d.ts.map +1 -0
- package/dist/types/src/components/Form/RadioInput/RadioInput.spec.d.ts +2 -0
- package/dist/types/src/components/Form/RadioInput/RadioInput.spec.d.ts.map +1 -0
- package/dist/types/src/components/Form/RadioInput/index.d.ts +25 -0
- package/dist/types/src/components/Form/RadioInput/index.d.ts.map +1 -0
- package/dist/types/src/components/Form/SearchInput/SearchInput.spec.d.ts +2 -0
- package/dist/types/src/components/Form/SearchInput/SearchInput.spec.d.ts.map +1 -0
- package/dist/types/src/components/Form/SearchInput/index.d.ts +27 -0
- package/dist/types/src/components/Form/SearchInput/index.d.ts.map +1 -0
- package/dist/types/src/components/Form/SelectInput/SelectInput.spec.d.ts +2 -0
- package/dist/types/src/components/Form/SelectInput/SelectInput.spec.d.ts.map +1 -0
- package/dist/types/src/components/Form/SelectInput/index.d.ts +31 -0
- package/dist/types/src/components/Form/SelectInput/index.d.ts.map +1 -0
- package/dist/types/src/components/Form/TextInput/TextInput.spec.d.ts +2 -0
- package/dist/types/src/components/Form/TextInput/TextInput.spec.d.ts.map +1 -0
- package/dist/types/src/components/Form/TextInput/index.d.ts +27 -0
- package/dist/types/src/components/Form/TextInput/index.d.ts.map +1 -0
- package/dist/types/src/components/Form/TextareaInput/TextareaInput.spec.d.ts +2 -0
- package/dist/types/src/components/Form/TextareaInput/TextareaInput.spec.d.ts.map +1 -0
- package/dist/types/src/components/Form/TextareaInput/index.d.ts +29 -0
- package/dist/types/src/components/Form/TextareaInput/index.d.ts.map +1 -0
- package/dist/types/src/components/MaterialSymbols/index.d.ts +2 -0
- package/dist/types/src/components/MaterialSymbols/index.d.ts.map +1 -0
- package/dist/types/src/components/Modal/Modal.types.d.ts +45 -0
- package/dist/types/src/components/Modal/Modal.types.d.ts.map +1 -0
- package/dist/types/src/components/Modal/index.d.ts +6 -0
- package/dist/types/src/components/Modal/index.d.ts.map +1 -0
- package/dist/types/src/components/ProgressBar/index.d.ts +17 -0
- package/dist/types/src/components/ProgressBar/index.d.ts.map +1 -0
- package/dist/types/src/components/Table/BodyCell/BodyCell.spec.d.ts +2 -0
- package/dist/types/src/components/Table/BodyCell/BodyCell.spec.d.ts.map +1 -0
- package/dist/types/src/components/Table/BodyCell/index.d.ts +11 -0
- package/dist/types/src/components/Table/BodyCell/index.d.ts.map +1 -0
- package/dist/types/src/components/Table/HeaderCell/HeaderCell.spec.d.ts +2 -0
- package/dist/types/src/components/Table/HeaderCell/HeaderCell.spec.d.ts.map +1 -0
- package/dist/types/src/components/Table/HeaderCell/index.d.ts +13 -0
- package/dist/types/src/components/Table/HeaderCell/index.d.ts.map +1 -0
- package/dist/types/src/components/Table/Table/Table.spec.d.ts +2 -0
- package/dist/types/src/components/Table/Table/Table.spec.d.ts.map +1 -0
- package/dist/types/src/components/Table/Table/index.d.ts +15 -0
- package/dist/types/src/components/Table/Table/index.d.ts.map +1 -0
- package/dist/types/src/components/Tag/Tag.spec.d.ts +2 -0
- package/dist/types/src/components/Tag/Tag.spec.d.ts.map +1 -0
- package/dist/types/src/components/Tag/index.d.ts +19 -0
- package/dist/types/src/components/Tag/index.d.ts.map +1 -0
- package/dist/types/src/hooks/useDialog.d.ts +5 -0
- package/dist/types/src/hooks/useDialog.d.ts.map +1 -0
- package/dist/types/src/stories/Accordion.stories.d.ts +15 -0
- package/dist/types/src/stories/Accordion.stories.d.ts.map +1 -0
- package/dist/types/src/stories/Alert.stories.d.ts +92 -0
- package/dist/types/src/stories/Alert.stories.d.ts.map +1 -0
- package/dist/types/src/stories/Button.stories.d.ts +132 -0
- package/dist/types/src/stories/Button.stories.d.ts.map +1 -0
- package/dist/types/src/stories/Modal/ExampleModal/ExampleModal.d.ts +2 -0
- package/dist/types/src/stories/Modal/ExampleModal/ExampleModal.d.ts.map +1 -0
- package/dist/types/src/stories/Modal/ExampleModal/ExampleModal.stories.d.ts +7 -0
- package/dist/types/src/stories/Modal/ExampleModal/ExampleModal.stories.d.ts.map +1 -0
- package/dist/types/src/stories/Modal/Modal.stories.d.ts +26 -0
- package/dist/types/src/stories/Modal/Modal.stories.d.ts.map +1 -0
- package/dist/types/src/stories/Modal/Modal.stories.helpers.d.ts +3 -0
- package/dist/types/src/stories/Modal/Modal.stories.helpers.d.ts.map +1 -0
- package/dist/types/src/stories/ProgressBar.stories.d.ts +93 -0
- package/dist/types/src/stories/ProgressBar.stories.d.ts.map +1 -0
- package/dist/types/src/stories/Tag.stories.d.ts +53 -0
- package/dist/types/src/stories/Tag.stories.d.ts.map +1 -0
- package/dist/types/src/stories/forms/CheckboxInput.stories.d.ts +30 -0
- package/dist/types/src/stories/forms/CheckboxInput.stories.d.ts.map +1 -0
- package/dist/types/src/stories/forms/Fieldset.stories.d.ts +57 -0
- package/dist/types/src/stories/forms/Fieldset.stories.d.ts.map +1 -0
- package/dist/types/src/stories/forms/InputLabel.stories.d.ts +25 -0
- package/dist/types/src/stories/forms/InputLabel.stories.d.ts.map +1 -0
- package/dist/types/src/stories/forms/RadioInput.stories.d.ts +51 -0
- package/dist/types/src/stories/forms/RadioInput.stories.d.ts.map +1 -0
- package/dist/types/src/stories/forms/SearchInput.stories.d.ts +40 -0
- package/dist/types/src/stories/forms/SearchInput.stories.d.ts.map +1 -0
- package/dist/types/src/stories/forms/SelectInput.stories.d.ts +52 -0
- package/dist/types/src/stories/forms/SelectInput.stories.d.ts.map +1 -0
- package/dist/types/src/stories/forms/TextInput.stories.d.ts +37 -0
- package/dist/types/src/stories/forms/TextInput.stories.d.ts.map +1 -0
- package/dist/types/src/stories/forms/TextareaInput.stories.d.ts +52 -0
- package/dist/types/src/stories/forms/TextareaInput.stories.d.ts.map +1 -0
- package/dist/types/src/stories/table/Table.stories.d.ts +22 -0
- package/dist/types/src/stories/table/Table.stories.d.ts.map +1 -0
- package/package.json +24 -9
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
(function(A,
|
|
1
|
+
(function(A,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],n):(A=typeof globalThis<"u"?globalThis:A||self,n(A["RPF Design System React"]={},A.jsxRuntime,A.React))})(this,function(A,n,V){"use strict";function he(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}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
|
|
5
|
+
*/var ve;function Ve(){return ve||(ve=1,function(r){(function(){var i={}.hasOwnProperty;function l(){for(var t="",d=0;d<arguments.length;d++){var c=arguments[d];c&&(t=o(t,s(c)))}return t}function s(t){if(typeof t=="string"||typeof t=="number")return t;if(typeof t!="object")return"";if(Array.isArray(t))return l.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)i.call(t,c)&&t[c]&&(d=o(d,c));return d}function o(t,d){return d?t?t+" "+d:t+d:t}r.exports?(l.default=l,r.exports=l):window.classNames=l})()}(ee)),ee.exports}var He=Ve();const R=he(He);var X={exports:{}},G={exports:{}},P={};/** @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
|
|
12
|
+
*/var ge;function Je(){if(ge)return P;ge=1;var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103,l=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,o=r?Symbol.for("react.strict_mode"):60108,t=r?Symbol.for("react.profiler"):60114,d=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,h=r?Symbol.for("react.async_mode"):60111,g=r?Symbol.for("react.concurrent_mode"):60111,b=r?Symbol.for("react.forward_ref"):60112,m=r?Symbol.for("react.suspense"):60113,q=r?Symbol.for("react.suspense_list"):60120,j=r?Symbol.for("react.memo"):60115,k=r?Symbol.for("react.lazy"):60116,N=r?Symbol.for("react.block"):60121,$=r?Symbol.for("react.fundamental"):60117,D=r?Symbol.for("react.responder"):60118,U=r?Symbol.for("react.scope"):60119;function M(f){if(typeof f=="object"&&f!==null){var W=f.$$typeof;switch(W){case i:switch(f=f.type,f){case h:case g:case s:case t:case o:case m:return f;default:switch(f=f&&f.$$typeof,f){case c:case b:case k:case j:case d:return f;default:return W}}case l:return W}}}function I(f){return M(f)===g}return P.AsyncMode=h,P.ConcurrentMode=g,P.ContextConsumer=c,P.ContextProvider=d,P.Element=i,P.ForwardRef=b,P.Fragment=s,P.Lazy=k,P.Memo=j,P.Portal=l,P.Profiler=t,P.StrictMode=o,P.Suspense=m,P.isAsyncMode=function(f){return I(f)||M(f)===h},P.isConcurrentMode=I,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===i},P.isForwardRef=function(f){return M(f)===b},P.isFragment=function(f){return M(f)===s},P.isLazy=function(f){return M(f)===k},P.isMemo=function(f){return M(f)===j},P.isPortal=function(f){return M(f)===l},P.isProfiler=function(f){return M(f)===t},P.isStrictMode=function(f){return M(f)===o},P.isSuspense=function(f){return M(f)===m},P.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===s||f===g||f===t||f===o||f===m||f===q||typeof f=="object"&&f!==null&&(f.$$typeof===k||f.$$typeof===j||f.$$typeof===d||f.$$typeof===c||f.$$typeof===b||f.$$typeof===$||f.$$typeof===D||f.$$typeof===U||f.$$typeof===N)},P.typeOf=M,P}var w={};/** @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
|
|
19
|
+
*/var me;function Xe(){return me||(me=1,process.env.NODE_ENV!=="production"&&function(){var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103,l=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,o=r?Symbol.for("react.strict_mode"):60108,t=r?Symbol.for("react.profiler"):60114,d=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,h=r?Symbol.for("react.async_mode"):60111,g=r?Symbol.for("react.concurrent_mode"):60111,b=r?Symbol.for("react.forward_ref"):60112,m=r?Symbol.for("react.suspense"):60113,q=r?Symbol.for("react.suspense_list"):60120,j=r?Symbol.for("react.memo"):60115,k=r?Symbol.for("react.lazy"):60116,N=r?Symbol.for("react.block"):60121,$=r?Symbol.for("react.fundamental"):60117,D=r?Symbol.for("react.responder"):60118,U=r?Symbol.for("react.scope"):60119;function M(u){return typeof u=="string"||typeof u=="function"||u===s||u===g||u===t||u===o||u===m||u===q||typeof u=="object"&&u!==null&&(u.$$typeof===k||u.$$typeof===j||u.$$typeof===d||u.$$typeof===c||u.$$typeof===b||u.$$typeof===$||u.$$typeof===D||u.$$typeof===U||u.$$typeof===N)}function I(u){if(typeof u=="object"&&u!==null){var L=u.$$typeof;switch(L){case i:var Q=u.type;switch(Q){case h:case g:case s:case t:case o:case m:return Q;default:var Be=Q&&Q.$$typeof;switch(Be){case c:case b:case k:case j:case d:return Be;default:return L}}case l:return L}}}var f=h,W=g,le=c,ce=d,fe=i,ue=b,K=s,de=k,pe=j,H=l,ye=t,Y=o,B=m,Z=!1;function be(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)||I(u)===h}function a(u){return I(u)===g}function p(u){return I(u)===c}function E(u){return I(u)===d}function T(u){return typeof u=="object"&&u!==null&&u.$$typeof===i}function y(u){return I(u)===b}function O(u){return I(u)===s}function v(u){return I(u)===k}function _(u){return I(u)===j}function S(u){return I(u)===l}function x(u){return I(u)===t}function C(u){return I(u)===o}function F(u){return I(u)===m}w.AsyncMode=f,w.ConcurrentMode=W,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=Y,w.Suspense=B,w.isAsyncMode=be,w.isConcurrentMode=a,w.isContextConsumer=p,w.isContextProvider=E,w.isElement=T,w.isForwardRef=y,w.isFragment=O,w.isLazy=v,w.isMemo=_,w.isPortal=S,w.isProfiler=x,w.isStrictMode=C,w.isSuspense=F,w.isValidElementType=M,w.typeOf=I}()),w}var Te;function _e(){return Te||(Te=1,process.env.NODE_ENV==="production"?G.exports=Je():G.exports=Xe()),G.exports}/*
|
|
20
20
|
object-assign
|
|
21
21
|
(c) Sindre Sorhus
|
|
22
22
|
@license MIT
|
|
23
|
-
*/var
|
|
24
|
-
Valid keys: `+JSON.stringify(Object.keys(a),null," "));var c=Y(v,P,y,O,b+"."+P,o);if(c)return c}return null}return $(p)}function U(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(U);if(a===null||u(a))return!0;var p=E(a);if(p){var T=p.call(a),h;if(p!==a.entries){for(;!(h=T.next()).done;)if(!U(h.value))return!1}else for(;!(h=T.next()).done;){var y=h.value;if(y&&!U(y[1]))return!1}}else return!1;return!0;default:return!1}}function de(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":de(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 K(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 ye(a){return!a.constructor||!a.constructor.name?q:a.constructor.name}return I.checkPropTypes=f,I.resetWarningCache=f.resetWarningCache,I.PropTypes=I,I},se}var oe,we;function Qe(){if(we)return oe;we=1;var r=te();function l(){}function o(){}return o.resetWarningCache=l,oe=function(){function s(d,u,g,_,m,E){if(E!==r){var q=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 q.name="Invariant Violation",q}}s.isRequired=s;function f(){return s}var n={array:s,bigint:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:f,element:s,elementType:s,instanceOf:f,node:s,objectOf:f,oneOf:f,oneOfType:f,shape:f,exact:f,checkPropTypes:o,resetWarningCache:l};return n.PropTypes=n,n},oe}var xe;function er(){if(xe)return H.exports;if(xe=1,process.env.NODE_ENV!=="production"){var r=Te(),l=!0;H.exports=Ze()(r.isElement,l)}else H.exports=Qe()();return H.exports}var rr=er();const e=be(rr),Ne=({content:r,title:l,className:o,id:s="accordion"})=>{const f=M("rpf-accordion",o);return t.jsxs("details",{className:f,id:`${s}`,children:[t.jsxs("summary",{className:"rpf-accordion__title",role:"button",children:[l,t.jsx("span",{className:"rpf-accordion__icon"})]}),t.jsx("p",{className:"rpf-accordion__text",children:r})]})};Ne.propTypes={content:e.string.isRequired,title:e.string.isRequired,id:e.string,className:e.string};const X=({text:r,href:l,title:o,className:s,type:f="primary",variant:n="",size:d="default",icon:u="",iconOnly:g=!1,iconPosition:_="left",fullWidth:m=!1,disabled:E=!1,onClick:q=()=>{},"aria-label":I="",linkComponent:k})=>{const N=u&&g,$=M("rpf-button",{[`rpf-button--${f}`]:f,"rpf-button--danger":n==="danger","rpf-button--sm":d==="small","rpf-button--icon-only":N,"rpf-button--full-width":m,disabled:E},s);let F="rpf-button__icon";Ue.isValidElement(u)?(F+=" icon",console.warn("DEPRECATED: icons as React elements will not be supported in future releases")):F+=" material-symbols-sharp";const z=i=>u&&_===i&&t.jsx("span",{className:F,children:u}),R=()=>r&&!N&&t.jsx("span",{className:"text",children:r}),j=t.jsxs(t.Fragment,{children:[z("left"),R(),z("right")]});if(l){const i=k||"a",L=k?{to:l}:{href:l,role:"button"};return t.jsx(i,{className:$,...L,onClick:q,"aria-label":I,children:j})}return t.jsx("button",{className:$,title:o,onClick:q,disabled:E,"aria-label":I,children:j})};X.propTypes={type:e.string,className:e.string,disabled:e.bool,icon:e.oneOfType([e.string,e.element]),href:e.string,onClick:e.func,text:e.string,iconOnly:e.bool,title:e.string,iconPosition:e.oneOf(["left","right"]),size:e.oneOf(["default","small"]),"aria-label":e.string,fullWidth:e.bool,variant:e.string,linkComponent:e.elementType};const Ae=({title:r,text:l,titleChildren:o,children:s,type:f,actions:n,onClose:d})=>t.jsxs("div",{className:`rpf-alert rpf-alert--${f}`,children:[t.jsxs("div",{className:"rpf-alert__header",children:[t.jsx("span",{className:"rpf-alert__icon material-symbols-sharp"}),(r||o)&&t.jsxs(t.Fragment,{children:[!o&&r&&t.jsx("p",{className:"rpf-alert__title",children:r}),o&&t.jsx("div",{className:"rpf-alert__title",children:o})]}),!!d&&t.jsx("div",{className:"rpf-alert__close",children:t.jsx(X,{type:"tertiary",icon:"close",size:"small",iconOnly:!0,onClick:d})})]}),(l||s||n)&&t.jsxs("div",{className:"rpf-alert__body",children:[!s&&l&&t.jsx("p",{children:l}),s&&t.jsx("div",{children:s}),n&&n.length>0&&t.jsx("div",{className:"rpf-alert__actions",children:n.map(u=>t.jsx(X,{text:u.label,size:"small",type:"tertiary",href:u.href,onClick:u.onClick},u.key||u.label))})]})]});Ae.propTypes={title:e.string,text:e.string,type:e.oneOf(["error","warning","information","success"]),actions:e.arrayOf(e.shape({href:e.string,label:e.string,onClick:e.func})),titleChildren:e.node,children:e.node,onClose:e.func};const qe=({id:r,label:l,name:o,checked:s=!1,disabled:f=!1,error:n="",onChange:d=()=>{},value:u="",className:g=""})=>t.jsxs(t.Fragment,{children:[t.jsxs("label",{className:M("rpf-input-checkbox",{"rpf-input-checkbox--error":n,className:g}),children:[t.jsx("input",{checked:!!s,disabled:f,id:r,name:o,onChange:d,type:"checkbox",value:u}),l]}),n&&t.jsxs("div",{className:"rpf-error-message",children:[t.jsx("span",{className:"rpf-error-message__icon material-symbols-sharp",children:"error"}),n]})]});qe.propTypes={checked:e.bool,disabled:e.bool,error:e.string,id:e.string.isRequired,label:e.oneOfType([e.string,e.object]).isRequired,name:e.string.isRequired,onChange:e.func,value:e.string,className:e.string};const Ie=({disabled:r=!1,errorText:l="",fullWidth:o=!1,legendText:s,legendHintText:f="",children:n})=>t.jsxs("fieldset",{className:M("rpf-fieldset",{"rpf-fieldset--disabled":r,"rpf-fieldset--full-width":o,"rpf-fieldset--error":l}),disabled:r,children:[t.jsxs("legend",{className:"rpf-label",children:[s,f.length>0?t.jsx("small",{className:"rpf-label__hint",children:f}):null]}),t.jsx("div",{className:"rpf-fieldset__inputs",children:n}),l.length>0?t.jsxs("div",{className:"rpf-error-message",children:[t.jsx("span",{className:"rpf-error-message__icon material-symbols-sharp",children:"error"}),l]}):null]});Ie.propTypes={disabled:e.bool,errorText:e.string,fullWidth:e.bool,legendText:e.string.isRequired,legendHintText:e.string,children:e.node};const V=({id:r,label:l,children:o,disabled:s=!1,error:f="",hint:n=""})=>t.jsxs("div",{className:"rpf-input-field",children:[(l||n)&&t.jsxs("label",{htmlFor:r,className:M("rpf-label",{"rpf-label--disabled":s}),children:[l,t.jsx("small",{className:"rpf-label__hint",children:n})]}),o,f&&t.jsxs("div",{className:"rpf-error-message",children:[t.jsx("span",{className:"rpf-error-message__icon material-symbols-sharp",children:"error"}),f]})]});V.propTypes={disabled:e.bool,error:e.string,hint:e.oneOfType([e.string,e.object]),label:e.oneOfType([e.string,e.object]).isRequired,id:e.string.isRequired,children:e.node};const je=({label:r,inputFieldId:l,disabled:o=!1,hint:s=""})=>t.jsx("div",{className:"rpf-label",children:t.jsxs("label",{htmlFor:l,className:M("rpf-label",{"rpf-label--disabled":o}),children:[r,s&&t.jsx("div",{className:"rpf-label__hint",children:s})]})});je.propTypes={disabled:e.bool,hint:e.oneOfType([e.string,e.object]),label:e.oneOfType([e.string,e.object]).isRequired,inputFieldId:e.string.isRequired};const $e=({text:r="",percent:l,complete:o=!1,className:s})=>t.jsx("div",{className:M("rpf-progress-bar",{"rpf-progress-bar--complete":o,className:s}),children:t.jsxs("label",{className:"rpf-progress-bar__label",children:[t.jsx("span",{children:r}),t.jsx("progress",{className:"rpf-progress-bar__bar",value:l,max:"100",children:`${l}%`})]})});$e.propTypes={text:e.string,percent:e.number.isRequired,complete:e.bool,className:e.string};const Re=({id:r,label:l,name:o,checked:s=!1,disabled:f=!1,fullWidth:n=!1,onChange:d=()=>{},value:u=""})=>t.jsx(t.Fragment,{children:t.jsxs("label",{className:M("rpf-input-radio",{"rpf-input-radio--disabled":f,"rpf-input--full-width":n}),children:[t.jsx("input",{checked:!!s,disabled:f,id:r,name:o,onChange:d,type:"radio",value:u}),l]})});Re.propTypes={checked:e.bool,disabled:e.bool,fullWidth:e.bool,id:e.string.isRequired,label:e.oneOfType([e.string,e.object]).isRequired,name:e.string.isRequired,onChange:e.func,value:e.string};const Me=({label:r,inputFieldId:l,disabled:o=!1,error:s="",hint:f="",placeholder:n="",defaultValue:d="",onClick:u=()=>{},onChange:g=_=>{}})=>t.jsx("search",{children:t.jsxs("form",{className:"rpf-input-field",onSubmit:u,children:[t.jsxs("label",{htmlFor:l,className:M("rpf-label",{"rpf-label--disabled":o}),children:[r,f&&t.jsx("small",{className:"rpf-label__hint",children:f})]}),t.jsxs("div",{className:"rpf-input-search-container",children:[t.jsx("input",{className:M("rpf-input rpf-input-search",{"rpf-input--disabled":o,"rpf-input--error":s}),disabled:o,id:l,name:"search",type:"search","aria-label":"Search",defaultValue:d,placeholder:n,onChange:g}),t.jsx("button",{type:"submit",className:M("rpf-button rpf-button-search",{"rpf-button--disabled":o,"rpf-button--error":s}),disabled:o,onClick:u,children:t.jsx("span",{className:"rpf-button__icon material-symbols-sharp",children:"search"})})]}),s&&t.jsxs("div",{className:"rpf-error-message",children:[t.jsx("span",{className:"rpf-error-message__icon material-symbols-sharp",children:"info"}),s]})]})});Me.propTypes={disabled:e.bool,error:e.string,hint:e.string,inputFieldId:e.string.isRequired,label:e.string.isRequired,onClick:e.func,onChange:e.func,placeholder:e.string,defaultValue:e.string};const ke=({id:r,label:l,name:o,options:s,disabled:f=!1,error:n="",fullWidth:d=!1,hint:u="",onChange:g=()=>{},placeholder:_="",value:m=""})=>t.jsx(V,{id:r,disabled:f,error:n,hint:u,label:l,children:t.jsxs("select",{className:M("rpf-input rpf-input-select",{"rpf-input--error":n,"rpf-input--full-width":d}),disabled:f,id:r,name:o,onChange:g,type:"text",value:m,children:[!m&&!!_&&t.jsx("option",{value:"",disabled:!0,children:_}),s.map(E=>t.jsx("option",{value:E.key,children:E.value},E.key))]})});ke.propTypes={disabled:e.bool,error:e.string,fullWidth:e.bool,hint:e.oneOfType([e.string,e.object]),label:e.oneOfType([e.string,e.object]).isRequired,id:e.string.isRequired,name:e.string.isRequired,onChange:e.func,options:e.array.isRequired,placeholder:e.string,value:e.string};const Fe=({headerRow:r,bodyRows:l,fullWidth:o})=>t.jsx("div",{"data-testid":"table-container",className:M("rpf-table",{"rpf-table--full-width":o}),children:t.jsxs("table",{className:M("rpf-table__table",{"rpf-table__table--full-width":o}),children:[t.jsx("thead",{children:t.jsx("tr",{className:"rpf-table-row",children:r})}),t.jsx("tbody",{children:l.map((s,f)=>t.jsx("tr",{className:"rpf-table-row",children:s},f))})]})});Fe.propTypes={headerRow:e.node.isRequired,bodyRows:e.arrayOf(e.node).isRequired,fullWidth:e.bool};const Ye=({children:r})=>t.jsx("td",{className:"rpf-table-cell rpf-table-cell--body",children:t.jsx("div",{className:"rpf-table-cell__content",children:r})});Ye.propTypes={children:e.node};const De=({sortDirection:r,children:l})=>{if(r!==void 0){const s=r==="up"?"arrow_drop_up":"arrow_drop_down";l=t.jsxs("div",{className:"rpf-table-cell__sort-header",children:[l,t.jsx("span",{className:"material-symbols-sharp",children:s})]})}const o=r!==void 0?"rpf-table-cell--sortable-header":"rpf-table-cell--header";return t.jsx("th",{className:`rpf-table-cell ${o}`,children:t.jsx("div",{className:"rpf-table-cell__content",children:l})})};De.propTypes={sortDirection:e.oneOf(["up","down"]),children:e.node};const We=({text:r,variant:l,secondary:o,icon:s,iconPosition:f})=>(s&&(s=t.jsx("span",{className:"rpf-tag__icon material-symbols-sharp",children:s})),s&&!f&&(f="left"),l&&l!=="default"?l=`rpf-tag--${l}`:l=null,t.jsxs("span",{className:M("rpf-tag",l,{"rpf-tag--secondary":o}),children:[f==="left"&&s,r,f==="right"&&s]}));We.propTypes={text:e.string.isRequired,variant:e.oneOf(["default","information","success","warning","error"]),secondary:e.bool,icon:e.string,iconPosition:e.oneOf(["left","right"])};const Le=({id:r,label:l,name:o,value:s,disabled:f=!1,readOnly:n=!1,error:d="",fullWidth:u=!1,hint:g="",onChange:_=()=>{}})=>t.jsx(V,{id:r,disabled:f,error:d,hint:g,label:l,children:t.jsx("textarea",{className:M("rpf-input rpf-input-textarea",{"rpf-input--error":d,"rpf-input--full-width":u,"rpf-input--disabled":f}),disabled:f,readOnly:n,id:r,name:o,onChange:_,type:"text",value:s})});Le.propTypes={disabled:e.bool,readOnly:e.bool,error:e.string,fullWidth:e.bool,hint:e.oneOfType([e.string,e.object]),label:e.oneOfType([e.string,e.object]).isRequired,id:e.string.isRequired,name:e.string.isRequired,onChange:e.func,value:e.string.isRequired};const ze=({id:r,label:l,name:o,value:s,disabled:f=!1,error:n="",fullWidth:d=!1,hint:u="",onChange:g=()=>{}})=>t.jsx(V,{id:r,disabled:f,error:n,hint:u,label:l,children:t.jsx("input",{className:M("rpf-input rpf-input-text",{"rpf-input--error":n,"rpf-input--full-width":d}),disabled:f,id:r,name:o,onChange:g,type:"text",value:s})});ze.propTypes={disabled:e.bool,error:e.string,fullWidth:e.bool,hint:e.oneOfType([e.string,e.object]),label:e.oneOfType([e.string,e.object]).isRequired,id:e.string.isRequired,name:e.string.isRequired,onChange:e.func,value:e.string.isRequired},A.Accordion=Ne,A.Alert=Ae,A.Button=X,A.CheckboxInput=qe,A.Fieldset=Ie,A.InputField=V,A.InputLabel=je,A.ProgressBar=$e,A.RadioInput=Re,A.SearchInput=Me,A.SelectInput=ke,A.Table=Fe,A.TableBodyCell=Ye,A.TableHeaderCell=De,A.Tag=We,A.TextInput=ze,A.TextareaInput=Le,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})});
|
|
23
|
+
*/var re,Ee;function Ge(){if(Ee)return re;Ee=1;var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;function s(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function o(){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 g={};return"abcdefghijklmnopqrst".split("").forEach(function(b){g[b]=b}),Object.keys(Object.assign({},g)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return re=o()?Object.assign:function(t,d){for(var c,h=s(t),g,b=1;b<arguments.length;b++){c=Object(arguments[b]);for(var m in c)i.call(c,m)&&(h[m]=c[m]);if(r){g=r(c);for(var q=0;q<g.length;q++)l.call(c,g[q])&&(h[g[q]]=c[g[q]])}}return h},re}var ne,Oe;function te(){if(Oe)return ne;Oe=1;var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ne=r,ne}var ae,Se;function Ce(){return Se||(Se=1,ae=Function.call.bind(Object.prototype.hasOwnProperty)),ae}var se,Pe;function Ke(){if(Pe)return se;Pe=1;var r=function(){};if(process.env.NODE_ENV!=="production"){var i=te(),l={},s=Ce();r=function(t){var d="Warning: "+t;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}}}function o(t,d,c,h,g){if(process.env.NODE_ENV!=="production"){for(var b in t)if(s(t,b)){var m;try{if(typeof t[b]!="function"){var q=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 q.name="Invariant Violation",q}m=t[b](d,b,h,c,null,i)}catch(k){m=k}if(m&&!(m instanceof Error)&&r((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 l)){l[m.message]=!0;var j=g?g():"";r("Failed "+c+" type: "+m.message+(j??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(l={})},se=o,se}var oe,we;function Ze(){if(we)return oe;we=1;var r=_e(),i=Ge(),l=te(),s=Ce(),o=Ke(),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 g=typeof Symbol=="function"&&Symbol.iterator,b="@@iterator";function m(a){var p=a&&(g&&a[g]||a[b]);if(typeof p=="function")return p}var q="<<anonymous>>",j={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:U(),arrayOf:M,element:I(),elementType:f(),instanceOf:W,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 T(O,v,_,S,x,C,F){if(S=S||q,C=C||_,F!==l){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 L=S+":"+_;!p[L]&&E<3&&(t("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[L]=!0,E++)}}return v[_]==null?O?v[_]===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:a(v,_,S,x,C)}var y=T.bind(null,!1);return y.isRequired=T.bind(null,!0),y}function D(a){function p(E,T,y,O,v,_){var S=E[T],x=Y(S);if(x!==a){var C=B(S);return new N("Invalid "+O+" `"+v+"` of type "+("`"+C+"` supplied to `"+y+"`, expected ")+("`"+a+"`."),{expectedType:a})}return null}return $(p)}function U(){return $(d)}function M(a){function p(E,T,y,O,v){if(typeof a!="function")return new N("Property `"+v+"` of component `"+y+"` has invalid PropType notation inside arrayOf.");var _=E[T];if(!Array.isArray(_)){var S=Y(_);return new N("Invalid "+O+" `"+v+"` of type "+("`"+S+"` supplied to `"+y+"`, expected an array."))}for(var x=0;x<_.length;x++){var C=a(_,x,y,O,v+"["+x+"]",l);if(C instanceof Error)return C}return null}return $(p)}function I(){function a(p,E,T,y,O){var v=p[E];if(!c(v)){var _=Y(v);return new N("Invalid "+y+" `"+O+"` of type "+("`"+_+"` supplied to `"+T+"`, expected a single ReactElement."))}return null}return $(a)}function f(){function a(p,E,T,y,O){var v=p[E];if(!r.isValidElementType(v)){var _=Y(v);return new N("Invalid "+y+" `"+O+"` of type "+("`"+_+"` supplied to `"+T+"`, expected a single ReactElement type."))}return null}return $(a)}function W(a){function p(E,T,y,O,v){if(!(E[T]instanceof a)){var _=a.name||q,S=be(E[T]);return new N("Invalid "+O+" `"+v+"` of type "+("`"+S+"` 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,T,y,O,v){for(var _=E[T],S=0;S<a.length;S++)if(k(_,a[S]))return null;var x=JSON.stringify(a,function(F,u){var L=B(u);return L==="symbol"?String(u):u});return new N("Invalid "+O+" `"+v+"` of value `"+String(_)+"` "+("supplied to `"+y+"`, expected one of "+x+"."))}return $(p)}function ce(a){function p(E,T,y,O,v){if(typeof a!="function")return new N("Property `"+v+"` of component `"+y+"` has invalid PropType notation inside objectOf.");var _=E[T],S=Y(_);if(S!=="object")return new N("Invalid "+O+" `"+v+"` of type "+("`"+S+"` supplied to `"+y+"`, expected an object."));for(var x in _)if(s(_,x)){var C=a(_,x,y,O,v+"."+x,l);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 T(y,O,v,_,S){for(var x=[],C=0;C<a.length;C++){var F=a[C],u=F(y,O,v,_,S,l);if(u==null)return null;u.data&&s(u.data,"expectedType")&&x.push(u.data.expectedType)}var L=x.length>0?", expected one of type ["+x.join(", ")+"]":"";return new N("Invalid "+_+" `"+S+"` supplied to "+("`"+v+"`"+L+"."))}return $(T)}function ue(){function a(p,E,T,y,O){return H(p[E])?null:new N("Invalid "+y+" `"+O+"` supplied to "+("`"+T+"`, expected a ReactNode."))}return $(a)}function K(a,p,E,T,y){return new N((a||"React class")+": "+p+" type `"+E+"."+T+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+y+"`.")}function de(a){function p(E,T,y,O,v){var _=E[T],S=Y(_);if(S!=="object")return new N("Invalid "+O+" `"+v+"` of type `"+S+"` "+("supplied to `"+y+"`, expected `object`."));for(var x in a){var C=a[x];if(typeof C!="function")return K(y,O,v,x,B(C));var F=C(_,x,y,O,v+"."+x,l);if(F)return F}return null}return $(p)}function pe(a){function p(E,T,y,O,v){var _=E[T],S=Y(_);if(S!=="object")return new N("Invalid "+O+" `"+v+"` of type `"+S+"` "+("supplied to `"+y+"`, expected `object`."));var x=i({},E[T],a);for(var C in x){var F=a[C];if(s(a,C)&&typeof F!="function")return K(y,O,v,C,B(F));if(!F)return new N("Invalid "+O+" `"+v+"` key `"+C+"` supplied to `"+y+"`.\nBad object: "+JSON.stringify(E[T],null," ")+`
|
|
24
|
+
Valid keys: `+JSON.stringify(Object.keys(a),null," "));var u=F(_,C,y,O,v+"."+C,l);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),T;if(p!==a.entries){for(;!(T=E.next()).done;)if(!H(T.value))return!1}else for(;!(T=E.next()).done;){var y=T.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 Y(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=Y(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 be(a){return!a.constructor||!a.constructor.name?q:a.constructor.name}return j.checkPropTypes=o,j.resetWarningCache=o.resetWarningCache,j.PropTypes=j,j},oe}var ie,xe;function Qe(){if(xe)return ie;xe=1;var r=te();function i(){}function l(){}return l.resetWarningCache=i,ie=function(){function s(d,c,h,g,b,m){if(m!==r){var q=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 q.name="Invariant Violation",q}}s.isRequired=s;function o(){return s}var t={array:s,bigint:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:o,element:s,elementType:s,instanceOf:o,node:s,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:l,resetWarningCache:i};return t.PropTypes=t,t},ie}var Ne;function er(){if(Ne)return X.exports;if(Ne=1,process.env.NODE_ENV!=="production"){var r=_e(),i=!0;X.exports=Ze()(r.isElement,i)}else X.exports=Qe()();return X.exports}var rr=er();const e=he(rr),Ae=({content:r,title:i,className:l,id:s="accordion"})=>{const o=R("rpf-accordion",l);return n.jsxs("details",{className:o,id:`${s}`,children:[n.jsxs("summary",{className:"rpf-accordion__title",role:"button",children:[i,n.jsx("span",{className:"rpf-accordion__icon"})]}),n.jsx("p",{className:"rpf-accordion__text",children:r})]})};Ae.propTypes={content:e.string.isRequired,title:e.string.isRequired,id:e.string,className:e.string};const z=({text:r,href:i,title:l,className:s,type:o="primary",variant:t="",size:d="default",icon:c="",iconOnly:h=!1,iconPosition:g="left",fullWidth:b=!1,disabled:m=!1,onClick:q=()=>{},"aria-label":j="",linkComponent:k})=>{const N=c&&h,$=R("rpf-button",{[`rpf-button--${o}`]:o,"rpf-button--danger":t==="danger","rpf-button--sm":d==="small","rpf-button--icon-only":N,"rpf-button--full-width":b,disabled:m},s);let D="rpf-button__icon";V.isValidElement(c)?(D+=" icon",console.warn("DEPRECATED: icons as React elements will not be supported in future releases")):D+=" material-symbols-sharp";const U=f=>c&&g===f&&n.jsx("span",{className:D,children:c}),M=()=>r&&!N&&n.jsx("span",{className:"text",children:r}),I=n.jsxs(n.Fragment,{children:[U("left"),M(),U("right")]});if(i){const f=k||"a",W=k?{to:i}:{href:i,role:"button"};return n.jsx(f,{className:$,...W,onClick:q,"aria-label":j,children:I})}return n.jsx("button",{className:$,title:l,onClick:q,disabled:m,"aria-label":j,children:I})};z.propTypes={type:e.string,className:e.string,disabled:e.bool,icon:e.oneOfType([e.string,e.element]),href:e.string,onClick:e.func,text:e.string,iconOnly:e.bool,title:e.string,iconPosition:e.oneOf(["left","right"]),size:e.oneOf(["default","small"]),"aria-label":e.string,fullWidth:e.bool,variant:e.string,linkComponent:e.elementType};const qe=({title:r,text:i,titleChildren:l,children:s,type:o,actions:t,onClose:d})=>n.jsxs("div",{className:`rpf-alert rpf-alert--${o}`,children:[n.jsxs("div",{className:"rpf-alert__header",children:[n.jsx("span",{className:"rpf-alert__icon material-symbols-sharp"}),(r||l)&&n.jsxs(n.Fragment,{children:[!l&&r&&n.jsx("p",{className:"rpf-alert__title",children:r}),l&&n.jsx("div",{className:"rpf-alert__title",children:l})]}),!!d&&n.jsx("div",{className:"rpf-alert__close",children:n.jsx(z,{type:"tertiary",icon:"close",size:"small",iconOnly:!0,onClick:d})})]}),(i||s||t)&&n.jsxs("div",{className:"rpf-alert__body",children:[!s&&i&&n.jsx("p",{children:i}),s&&n.jsx("div",{children:s}),t&&t.length>0&&n.jsx("div",{className:"rpf-alert__actions",children:t.map(c=>n.jsx(z,{text:c.label,size:"small",type:"tertiary",href:c.href,onClick:c.onClick},c.key||c.label))})]})]});qe.propTypes={title:e.string,text:e.string,type:e.oneOf(["error","warning","information","success"]),actions:e.arrayOf(e.shape({href:e.string,label:e.string,onClick:e.func})),titleChildren:e.node,children:e.node,onClose:e.func};const je=({id:r,label:i,name:l,checked:s=!1,disabled:o=!1,error:t="",onChange:d=()=>{},value:c="",className:h=""})=>n.jsxs(n.Fragment,{children:[n.jsxs("label",{className:R("rpf-input-checkbox",{"rpf-input-checkbox--error":t,className:h}),children:[n.jsx("input",{checked:!!s,disabled:o,id:r,name:l,onChange:d,type:"checkbox",value:c}),i]}),t&&n.jsxs("div",{className:"rpf-error-message",children:[n.jsx("span",{className:"rpf-error-message__icon material-symbols-sharp",children:"error"}),t]})]});je.propTypes={checked:e.bool,disabled:e.bool,error:e.string,id:e.string.isRequired,label:e.oneOfType([e.string,e.object]).isRequired,name:e.string.isRequired,onChange:e.func,value:e.string,className:e.string};const Ie=({disabled:r=!1,errorText:i="",fullWidth:l=!1,legendText:s,legendHintText:o="",children:t})=>n.jsxs("fieldset",{className:R("rpf-fieldset",{"rpf-fieldset--disabled":r,"rpf-fieldset--full-width":l,"rpf-fieldset--error":i}),disabled:r,children:[n.jsxs("legend",{className:"rpf-label",children:[s,o.length>0?n.jsx("small",{className:"rpf-label__hint",children:o}):null]}),n.jsx("div",{className:"rpf-fieldset__inputs",children:t}),i.length>0?n.jsxs("div",{className:"rpf-error-message",children:[n.jsx("span",{className:"rpf-error-message__icon material-symbols-sharp",children:"error"}),i]}):null]});Ie.propTypes={disabled:e.bool,errorText:e.string,fullWidth:e.bool,legendText:e.string.isRequired,legendHintText:e.string,children:e.node};const J=({id:r,label:i,children:l,disabled:s=!1,error:o="",hint:t=""})=>n.jsxs("div",{className:"rpf-input-field",children:[(i||t)&&n.jsxs("label",{htmlFor:r,className:R("rpf-label",{"rpf-label--disabled":s}),children:[i,n.jsx("small",{className:"rpf-label__hint",children:t})]}),l,o&&n.jsxs("div",{className:"rpf-error-message",children:[n.jsx("span",{className:"rpf-error-message__icon material-symbols-sharp",children:"error"}),o]})]});J.propTypes={disabled:e.bool,error:e.string,hint:e.oneOfType([e.string,e.object]),label:e.oneOfType([e.string,e.object]).isRequired,id:e.string.isRequired,children:e.node};const $e=({label:r,inputFieldId:i,disabled:l=!1,hint:s=""})=>n.jsx("div",{className:"rpf-label",children:n.jsxs("label",{htmlFor:i,className:R("rpf-label",{"rpf-label--disabled":l}),children:[r,s&&n.jsx("div",{className:"rpf-label__hint",children:s})]})});$e.propTypes={disabled:e.bool,hint:e.oneOfType([e.string,e.object]),label:e.oneOfType([e.string,e.object]).isRequired,inputFieldId:e.string.isRequired};const Me=({id:r,label:i,name:l,checked:s=!1,disabled:o=!1,fullWidth:t=!1,onChange:d=()=>{},value:c=""})=>n.jsx(n.Fragment,{children:n.jsxs("label",{className:R("rpf-input-radio",{"rpf-input-radio--disabled":o,"rpf-input--full-width":t}),children:[n.jsx("input",{checked:!!s,disabled:o,id:r,name:l,onChange:d,type:"radio",value:c}),i]})});Me.propTypes={checked:e.bool,disabled:e.bool,fullWidth:e.bool,id:e.string.isRequired,label:e.oneOfType([e.string,e.object]).isRequired,name:e.string.isRequired,onChange:e.func,value:e.string};const ke=({label:r,inputFieldId:i,disabled:l=!1,error:s="",hint:o="",placeholder:t="",defaultValue:d="",onClick:c=()=>{},onChange:h=g=>{}})=>n.jsx("search",{children:n.jsxs("form",{className:"rpf-input-field",onSubmit:c,children:[n.jsxs("label",{htmlFor:i,className:R("rpf-label",{"rpf-label--disabled":l}),children:[r,o&&n.jsx("small",{className:"rpf-label__hint",children:o})]}),n.jsxs("div",{className:"rpf-input-search-container",children:[n.jsx("input",{className:R("rpf-input rpf-input-search",{"rpf-input--disabled":l,"rpf-input--error":s}),disabled:l,id:i,name:"search",type:"search","aria-label":"Search",defaultValue:d,placeholder:t,onChange:h}),n.jsx("button",{type:"submit",className:R("rpf-button rpf-button-search",{"rpf-button--disabled":l,"rpf-button--error":s}),disabled:l,onClick:c,children:n.jsx("span",{className:"rpf-button__icon material-symbols-sharp",children:"search"})})]}),s&&n.jsxs("div",{className:"rpf-error-message",children:[n.jsx("span",{className:"rpf-error-message__icon material-symbols-sharp",children:"info"}),s]})]})});ke.propTypes={disabled:e.bool,error:e.string,hint:e.string,inputFieldId:e.string.isRequired,label:e.string.isRequired,onClick:e.func,onChange:e.func,placeholder:e.string,defaultValue:e.string};const Re=({id:r,label:i,name:l,options:s,disabled:o=!1,error:t="",fullWidth:d=!1,hint:c="",onChange:h=()=>{},placeholder:g="",value:b=""})=>n.jsx(J,{id:r,disabled:o,error:t,hint:c,label:i,children:n.jsxs("select",{className:R("rpf-input rpf-input-select",{"rpf-input--error":t,"rpf-input--full-width":d}),disabled:o,id:r,name:l,onChange:h,type:"text",value:b,children:[!b&&!!g&&n.jsx("option",{value:"",disabled:!0,children:g}),s.map(m=>n.jsx("option",{value:m.key,children:m.value},m.key))]})});Re.propTypes={disabled:e.bool,error:e.string,fullWidth:e.bool,hint:e.oneOfType([e.string,e.object]),label:e.oneOfType([e.string,e.object]).isRequired,id:e.string.isRequired,name:e.string.isRequired,onChange:e.func,options:e.array.isRequired,placeholder:e.string,value:e.string};const De=({id:r,label:i,name:l,value:s,disabled:o=!1,readOnly:t=!1,error:d="",fullWidth:c=!1,hint:h="",onChange:g=()=>{}})=>n.jsx(J,{id:r,disabled:o,error:d,hint:h,label:i,children:n.jsx("textarea",{className:R("rpf-input rpf-input-textarea",{"rpf-input--error":d,"rpf-input--full-width":c,"rpf-input--disabled":o}),disabled:o,readOnly:t,id:r,name:l,onChange:g,type:"text",value:s})});De.propTypes={disabled:e.bool,readOnly:e.bool,error:e.string,fullWidth:e.bool,hint:e.oneOfType([e.string,e.object]),label:e.oneOfType([e.string,e.object]).isRequired,id:e.string.isRequired,name:e.string.isRequired,onChange:e.func,value:e.string.isRequired};const Fe=({id:r,label:i,name:l,value:s,disabled:o=!1,error:t="",fullWidth:d=!1,hint:c="",onChange:h=()=>{}})=>n.jsx(J,{id:r,disabled:o,error:t,hint:c,label:i,children:n.jsx("input",{className:R("rpf-input rpf-input-text",{"rpf-input--error":t,"rpf-input--full-width":d}),disabled:o,id:r,name:l,onChange:h,type:"text",value:s})});Fe.propTypes={disabled:e.bool,error:e.string,fullWidth:e.bool,hint:e.oneOfType([e.string,e.object]),label:e.oneOfType([e.string,e.object]).isRequired,id:e.string.isRequired,name:e.string.isRequired,onChange:e.func,value:e.string.isRequired};function nr(r,i){const l=V.useRef(null),s=V.useRef(null);return V.useEffect(()=>{const o=l.current;o&&(r&&!o.open?o.showModal():!r&&o.open&&o.close())},[r]),V.useEffect(()=>{const o=l.current;if(!o)return;const t=()=>i(!1),d=c=>{c.preventDefault(),i(!1)};return o.addEventListener("close",t),o.addEventListener("cancel",d),()=>{o.removeEventListener("close",t),o.removeEventListener("cancel",d)}},[i]),V.useEffect(()=>{const o=l.current,t=s.current;if(!o||!t)return;const d=c=>{r&&!t.contains(c.target)&&i(!1)};return o.addEventListener("mousedown",d),()=>o.removeEventListener("mousedown",d)},[r,i]),{dialogRef:l,contentRef:s}}const tr=({isOpen:r,setIsOpen:i,heading:l,children:s,primaryButtonLink:o,primaryButtonText:t,onClickPrimaryButton:d,secondaryButtonText:c,secondaryButtonLink:h,onClickSecondaryButton:g,tertiaryButtonText:b,tertiaryButtonLink:m,onClickTertiaryButton:q,showCloseButton:j=!0})=>{const{dialogRef:k,contentRef:N}=nr(r,i);return n.jsx("dialog",{ref:k,className:"rpf-modal","aria-labelledby":"modal-heading","aria-describedby":"modal-description",children:n.jsxs("div",{ref:N,className:"rpf-modal__wrapper",children:[n.jsxs("div",{className:"rpf-modal__header",children:[n.jsx("h2",{className:"rpf-modal__title",id:"modal-heading",children:l}),j&&n.jsx(z,{icon:"close",iconOnly:!0,"aria-label":"Close modal",type:"tertiary",onClick:()=>i(!1)})]}),n.jsx("div",{id:"modal-description",className:"rpf-modal__content",tabIndex:0,children:s}),n.jsxs("div",{className:"rpf-modal__buttons",children:[n.jsx(z,{text:t,href:o,onClick:d,type:"primary"}),c&&n.jsx(z,{text:c,href:h,onClick:g,type:"secondary"}),b&&n.jsx(z,{text:b,href:m,onClick:q,type:"tertiary"})]})]})})},Ye=({text:r="",percent:i,complete:l=!1,className:s})=>n.jsx("div",{className:R("rpf-progress-bar",{"rpf-progress-bar--complete":l,className:s}),children:n.jsxs("label",{className:"rpf-progress-bar__label",children:[n.jsx("span",{children:r}),n.jsx("progress",{className:"rpf-progress-bar__bar",value:i,max:"100",children:`${i}%`})]})});Ye.propTypes={text:e.string,percent:e.number.isRequired,complete:e.bool,className:e.string};const Le=({children:r})=>n.jsx("td",{className:"rpf-table-cell rpf-table-cell--body",children:n.jsx("div",{className:"rpf-table-cell__content",children:r})});Le.propTypes={children:e.node};const We=({sortDirection:r,children:i})=>{if(r!==void 0){const s=r==="up"?"arrow_drop_up":"arrow_drop_down";i=n.jsxs("div",{className:"rpf-table-cell__sort-header",children:[i,n.jsx("span",{className:"material-symbols-sharp",children:s})]})}const l=r!==void 0?"rpf-table-cell--sortable-header":"rpf-table-cell--header";return n.jsx("th",{className:`rpf-table-cell ${l}`,children:n.jsx("div",{className:"rpf-table-cell__content",children:i})})};We.propTypes={sortDirection:e.oneOf(["up","down"]),children:e.node};const ze=({headerRow:r,bodyRows:i,fullWidth:l})=>n.jsx("div",{"data-testid":"table-container",className:R("rpf-table",{"rpf-table--full-width":l}),children:n.jsxs("table",{className:R("rpf-table__table",{"rpf-table__table--full-width":l}),children:[n.jsx("thead",{children:n.jsx("tr",{className:"rpf-table-row",children:r})}),n.jsx("tbody",{children:i.map((s,o)=>n.jsx("tr",{className:"rpf-table-row",children:s},o))})]})});ze.propTypes={headerRow:e.node.isRequired,bodyRows:e.arrayOf(e.node).isRequired,fullWidth:e.bool};const Ue=({text:r,variant:i,secondary:l,icon:s,iconPosition:o})=>(s&&(s=n.jsx("span",{className:"rpf-tag__icon material-symbols-sharp",children:s})),s&&!o&&(o="left"),i&&i!=="default"?i=`rpf-tag--${i}`:i=null,n.jsxs("span",{className:R("rpf-tag",i,{"rpf-tag--secondary":l}),children:[o==="left"&&s,r,o==="right"&&s]}));Ue.propTypes={text:e.string.isRequired,variant:e.oneOf(["default","information","success","warning","error"]),secondary:e.bool,icon:e.string,iconPosition:e.oneOf(["left","right"])},A.Accordion=Ae,A.Alert=qe,A.Button=z,A.CheckboxInput=je,A.Fieldset=Ie,A.InputField=J,A.InputLabel=$e,A.Modal=tr,A.ProgressBar=Ye,A.RadioInput=Me,A.SearchInput=ke,A.SelectInput=Re,A.Table=ze,A.TableBodyCell=Le,A.TableHeaderCell=We,A.Tag=Ue,A.TextInput=Fe,A.TextareaInput=De,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
@use '../mixins/typography' as typography;
|
|
2
|
+
@forward '../properties/font-size';
|
|
3
|
+
@forward '../properties/colors/utilities';
|
|
4
|
+
|
|
5
|
+
:root,
|
|
6
|
+
:host {
|
|
7
|
+
--rpf-modal-background-color: var(--rpf-white);
|
|
8
|
+
--rpf-modal-border-color: var(--rpf-grey-150);
|
|
9
|
+
--rpf-modal-max-block-size: calc(100vh - 2 * var(--space-10));
|
|
10
|
+
--rpf-modal-mobile-max-block-size: calc(100dvh - 2 * var(--space-2));
|
|
11
|
+
--rpf-modal-max-inline-size: calc(100vw - 2 * var(--space-10));
|
|
12
|
+
--rpf-modal-mobile-max-inline-size: calc(100vw - 2 * var(--space-2));
|
|
13
|
+
--rpf-modal-border-radius: var(--space-1);
|
|
14
|
+
--rpf-modal-content-padding: var(--space-3);
|
|
15
|
+
--rpf-modal-backdrop-color: var(--rpf-overlay);
|
|
16
|
+
--rpf-modal-buttons-flex-direction: row-reverse;
|
|
17
|
+
--rpf-modal-buttons-justify-content: flex-start;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.rpf-modal {
|
|
21
|
+
background-color: var(--rpf-modal-background-color);
|
|
22
|
+
border: none;
|
|
23
|
+
border-radius: var(--rpf-modal-border-radius);
|
|
24
|
+
margin-inline: auto;
|
|
25
|
+
min-inline-size: 15rem;
|
|
26
|
+
inline-size: 100%;
|
|
27
|
+
padding: 0;
|
|
28
|
+
|
|
29
|
+
max-inline-size: var(--rpf-modal-mobile-max-inline-size);
|
|
30
|
+
max-block-size: var(--rpf-modal-mobile-max-block-size);
|
|
31
|
+
|
|
32
|
+
@media (min-width: 30rem) {
|
|
33
|
+
max-inline-size: var(--rpf-modal-max-inline-size);
|
|
34
|
+
max-block-size: var(--rpf-modal-max-block-size);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&__wrapper {
|
|
38
|
+
display: grid;
|
|
39
|
+
grid-template-rows: auto minmax(0, 1fr) auto; /* header | content | buttons */
|
|
40
|
+
block-size: 100%;
|
|
41
|
+
max-block-size: inherit;
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&__header {
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
align-self: stretch;
|
|
49
|
+
border-block-end: 1px solid var(--rpf-modal-border-color);
|
|
50
|
+
gap: var(--space-1);
|
|
51
|
+
padding: var(--space-1);
|
|
52
|
+
padding-inline-start: var(--space-2);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&__title {
|
|
56
|
+
@include typography.style-2(bold);
|
|
57
|
+
flex: 1 0 0;
|
|
58
|
+
margin: 0;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&__content {
|
|
62
|
+
overflow-y: auto;
|
|
63
|
+
align-items: center;
|
|
64
|
+
border-block-end: 1px solid var(--rpf-modal-border-color);
|
|
65
|
+
display: flex;
|
|
66
|
+
flex-direction: column;
|
|
67
|
+
padding: var(--rpf-modal-content-padding);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&__buttons {
|
|
71
|
+
align-items: center;
|
|
72
|
+
display: flex;
|
|
73
|
+
flex-direction: column;
|
|
74
|
+
gap: var(--space-2);
|
|
75
|
+
padding: var(--space-2);
|
|
76
|
+
|
|
77
|
+
.rpf-button {
|
|
78
|
+
justify-content: center;
|
|
79
|
+
inline-size: 100%;
|
|
80
|
+
}
|
|
81
|
+
@media (width > 34rem) {
|
|
82
|
+
flex-direction: var(--rpf-modal-buttons-flex-direction);
|
|
83
|
+
gap: var(--space-2);
|
|
84
|
+
justify-content: var(--rpf-modal-buttons-justify-content);
|
|
85
|
+
.rpf-button {
|
|
86
|
+
inline-size: auto;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&::backdrop {
|
|
92
|
+
background-color: var(--rpf-modal-backdrop-color);
|
|
93
|
+
backdrop-filter: blur(2px);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
@use 'properties/colors/_greys';
|
|
11
11
|
@use 'properties/colors/_inputs' as inputs_colors;
|
|
12
12
|
@use 'properties/colors/_text';
|
|
13
|
+
@use 'properties/colors/_utilities';
|
|
14
|
+
|
|
13
15
|
|
|
14
16
|
@use 'components/alert';
|
|
15
17
|
@use 'components/accordion';
|
|
@@ -20,6 +22,8 @@
|
|
|
20
22
|
@use 'components/menu';
|
|
21
23
|
@use 'components/link';
|
|
22
24
|
@use 'components/burger-menu';
|
|
25
|
+
@use 'components/modal';
|
|
26
|
+
|
|
23
27
|
|
|
24
28
|
@use 'components/forms/error-message';
|
|
25
29
|
@use 'components/forms/fieldset';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export { default as Accordion } from "../src/components/Accordion";
|
|
2
|
+
export { default as Alert } from "../src/components/Alert";
|
|
3
|
+
export { default as Button } from "../src/components/Button";
|
|
4
|
+
export { default as CheckboxInput } from "../src/components/Form/CheckboxInput";
|
|
5
|
+
export { default as Fieldset } from "../src/components/Form/Fieldset";
|
|
6
|
+
export { default as InputField } from "../src/components/Form/InputField";
|
|
7
|
+
export { default as InputLabel } from "../src/components/Form/InputLabel";
|
|
8
|
+
export { default as RadioInput } from "../src/components/Form/RadioInput";
|
|
9
|
+
export { default as SearchInput } from "../src/components/Form/SearchInput";
|
|
10
|
+
export { default as SelectInput } from "../src/components/Form/SelectInput";
|
|
11
|
+
export { default as TextareaInput } from "../src/components/Form/TextareaInput";
|
|
12
|
+
export { default as TextInput } from "../src/components/Form/TextInput";
|
|
13
|
+
export { default as Modal } from "../src/components/Modal";
|
|
14
|
+
export type { ModalProps } from "../src/components/Modal/Modal.types";
|
|
15
|
+
export { default as ProgressBar } from "../src/components/ProgressBar";
|
|
16
|
+
export { default as TableBodyCell } from "../src/components/Table/BodyCell";
|
|
17
|
+
export { default as TableHeaderCell } from "../src/components/Table/HeaderCell";
|
|
18
|
+
export { default as Table } from "../src/components/Table/Table";
|
|
19
|
+
export { default as Tag } from "../src/components/Tag";
|
|
20
|
+
//# sourceMappingURL=main.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../lib/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAC3D,YAAY,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Accordion.spec.d.ts","sourceRoot":"","sources":["../../../../../src/components/Accordion/Accordion.spec.jsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export function Accordion({ content, title, className, id }: {
|
|
2
|
+
content: any;
|
|
3
|
+
title: any;
|
|
4
|
+
className: any;
|
|
5
|
+
id?: string | undefined;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export namespace Accordion {
|
|
8
|
+
namespace propTypes {
|
|
9
|
+
let content: PropTypes.Validator<string>;
|
|
10
|
+
let title: PropTypes.Validator<string>;
|
|
11
|
+
let id: PropTypes.Requireable<string>;
|
|
12
|
+
let className: PropTypes.Requireable<string>;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export default Accordion;
|
|
16
|
+
import PropTypes from "prop-types";
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Accordion/index.jsx"],"names":[],"mappings":"AAMO;;;;;4CAYN;;;;;;;;;;sBAjBqB,YAAY"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Alert.spec.d.ts","sourceRoot":"","sources":["../../../../../src/components/Alert/Alert.spec.jsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export function Alert({ title, text, titleChildren, children, type, actions, onClose }: {
|
|
2
|
+
title: any;
|
|
3
|
+
text: any;
|
|
4
|
+
titleChildren: any;
|
|
5
|
+
children: any;
|
|
6
|
+
type: any;
|
|
7
|
+
actions: any;
|
|
8
|
+
onClose: any;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export namespace Alert {
|
|
11
|
+
namespace propTypes {
|
|
12
|
+
let title: PropTypes.Requireable<string>;
|
|
13
|
+
let text: PropTypes.Requireable<string>;
|
|
14
|
+
let type: PropTypes.Requireable<string>;
|
|
15
|
+
let actions: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
16
|
+
href: PropTypes.Requireable<string>;
|
|
17
|
+
label: PropTypes.Requireable<string>;
|
|
18
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
19
|
+
}> | null | undefined)[]>;
|
|
20
|
+
let titleChildren: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
21
|
+
let children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
22
|
+
let onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export default Alert;
|
|
26
|
+
import PropTypes from "prop-types";
|
|
27
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Alert/index.jsx"],"names":[],"mappings":"AAMO;;;;;;;;4CA4CN;;;;;;;;;;;;;;;;;sBAjDqB,YAAY"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.spec.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/Button.spec.jsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export function Button({ text, href, title, className, type, variant, size, icon, iconOnly, iconPosition, fullWidth, disabled, onClick, "aria-label": ariaLabel, linkComponent, }: {
|
|
2
|
+
text: any;
|
|
3
|
+
href: any;
|
|
4
|
+
title: any;
|
|
5
|
+
className: any;
|
|
6
|
+
type?: string | undefined;
|
|
7
|
+
variant?: string | undefined;
|
|
8
|
+
size?: string | undefined;
|
|
9
|
+
icon?: string | undefined;
|
|
10
|
+
iconOnly?: boolean | undefined;
|
|
11
|
+
iconPosition?: string | undefined;
|
|
12
|
+
fullWidth?: boolean | undefined;
|
|
13
|
+
disabled?: boolean | undefined;
|
|
14
|
+
onClick?: (() => void) | undefined;
|
|
15
|
+
"aria-label"?: string | undefined;
|
|
16
|
+
linkComponent: any;
|
|
17
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export namespace Button {
|
|
19
|
+
let propTypes: {
|
|
20
|
+
type: PropTypes.Requireable<string>;
|
|
21
|
+
className: PropTypes.Requireable<string>;
|
|
22
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
23
|
+
icon: PropTypes.Requireable<NonNullable<string | PropTypes.ReactElementLike | null | undefined>>;
|
|
24
|
+
href: PropTypes.Requireable<string>;
|
|
25
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
26
|
+
text: PropTypes.Requireable<string>;
|
|
27
|
+
iconOnly: PropTypes.Requireable<boolean>;
|
|
28
|
+
title: PropTypes.Requireable<string>;
|
|
29
|
+
iconPosition: PropTypes.Requireable<string>;
|
|
30
|
+
size: PropTypes.Requireable<string>;
|
|
31
|
+
"aria-label": PropTypes.Requireable<string>;
|
|
32
|
+
fullWidth: PropTypes.Requireable<boolean>;
|
|
33
|
+
variant: PropTypes.Requireable<string>;
|
|
34
|
+
linkComponent: PropTypes.Requireable<PropTypes.ReactComponentLike>;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export default Button;
|
|
38
|
+
import PropTypes from "prop-types";
|
|
39
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/index.jsx"],"names":[],"mappings":"AAMO;;;;;;;;;;;;;;;;4CAwFN;;;;;;;;;;;;;;;;;;;;;sBA7FqB,YAAY"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export function CheckboxInput({ id, label, name, checked, disabled, error, onChange, value, className, }: {
|
|
2
|
+
id: any;
|
|
3
|
+
label: any;
|
|
4
|
+
name: any;
|
|
5
|
+
checked?: boolean | undefined;
|
|
6
|
+
disabled?: boolean | undefined;
|
|
7
|
+
error?: string | undefined;
|
|
8
|
+
onChange?: (() => void) | undefined;
|
|
9
|
+
value?: string | undefined;
|
|
10
|
+
className?: string | undefined;
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export namespace CheckboxInput {
|
|
13
|
+
namespace propTypes {
|
|
14
|
+
let checked: PropTypes.Requireable<boolean>;
|
|
15
|
+
let disabled: PropTypes.Requireable<boolean>;
|
|
16
|
+
let error: PropTypes.Requireable<string>;
|
|
17
|
+
let id: PropTypes.Validator<string>;
|
|
18
|
+
let label: PropTypes.Validator<NonNullable<NonNullable<string | object | null | undefined>>>;
|
|
19
|
+
let name: PropTypes.Validator<string>;
|
|
20
|
+
let onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
21
|
+
let value: PropTypes.Requireable<string>;
|
|
22
|
+
let className: PropTypes.Requireable<string>;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export default CheckboxInput;
|
|
26
|
+
import PropTypes from "prop-types";
|
|
27
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/CheckboxInput/index.jsx"],"names":[],"mappings":"AAMO;;;;;;;;;;4CAsCN;;;;;;;;;;;;;;;sBA3CqB,YAAY"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Fieldset.spec.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/Fieldset/Fieldset.spec.jsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export function Fieldset({ disabled, errorText, fullWidth, legendText, legendHintText, children, }: {
|
|
2
|
+
disabled?: boolean | undefined;
|
|
3
|
+
errorText?: string | undefined;
|
|
4
|
+
fullWidth?: boolean | undefined;
|
|
5
|
+
legendText: any;
|
|
6
|
+
legendHintText?: string | undefined;
|
|
7
|
+
children: any;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export namespace Fieldset {
|
|
10
|
+
namespace propTypes {
|
|
11
|
+
let disabled: PropTypes.Requireable<boolean>;
|
|
12
|
+
let errorText: PropTypes.Requireable<string>;
|
|
13
|
+
let fullWidth: PropTypes.Requireable<boolean>;
|
|
14
|
+
let legendText: PropTypes.Validator<string>;
|
|
15
|
+
let legendHintText: PropTypes.Requireable<string>;
|
|
16
|
+
let children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export default Fieldset;
|
|
20
|
+
import PropTypes from "prop-types";
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/Fieldset/index.jsx"],"names":[],"mappings":"AAKO;;;;;;;4CAmCN;;;;;;;;;;;;sBAvCqB,YAAY"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export function InputField({ id, label, children, disabled, error, hint, }: {
|
|
2
|
+
id: any;
|
|
3
|
+
label: any;
|
|
4
|
+
children: any;
|
|
5
|
+
disabled?: boolean | undefined;
|
|
6
|
+
error?: string | undefined;
|
|
7
|
+
hint?: string | undefined;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export namespace InputField {
|
|
10
|
+
namespace propTypes {
|
|
11
|
+
let disabled: PropTypes.Requireable<boolean>;
|
|
12
|
+
let error: PropTypes.Requireable<string>;
|
|
13
|
+
let hint: PropTypes.Requireable<NonNullable<string | object | null | undefined>>;
|
|
14
|
+
let label: PropTypes.Validator<NonNullable<NonNullable<string | object | null | undefined>>>;
|
|
15
|
+
let id: PropTypes.Validator<string>;
|
|
16
|
+
let children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export default InputField;
|
|
20
|
+
import PropTypes from "prop-types";
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/InputField/index.jsx"],"names":[],"mappings":"AAKO;;;;;;;4CA8BN;;;;;;;;;;;;sBAlCqB,YAAY"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputLabel.spec.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/InputLabel/InputLabel.spec.jsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export function InputLabel({ label, inputFieldId, disabled, hint, }: {
|
|
2
|
+
label: any;
|
|
3
|
+
inputFieldId: any;
|
|
4
|
+
disabled?: boolean | undefined;
|
|
5
|
+
hint?: string | undefined;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export namespace InputLabel {
|
|
8
|
+
namespace propTypes {
|
|
9
|
+
let disabled: PropTypes.Requireable<boolean>;
|
|
10
|
+
let hint: PropTypes.Requireable<NonNullable<string | object | null | undefined>>;
|
|
11
|
+
let label: PropTypes.Validator<NonNullable<NonNullable<string | object | null | undefined>>>;
|
|
12
|
+
let inputFieldId: PropTypes.Validator<string>;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export default InputLabel;
|
|
16
|
+
import PropTypes from "prop-types";
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/InputLabel/index.jsx"],"names":[],"mappings":"AAKO;;;;;4CAiBN;;;;;;;;;;sBArBqB,YAAY"}
|