@raspberrypifoundation/design-system-react 2.7.2 → 2.7.3
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 -1
- package/dist/design-system-react.js +399 -429
- package/dist/design-system-react.umd.cjs +13 -13
- package/dist/types/src/components/Form/CheckboxInput/CheckboxInput.types.d.ts +1 -11
- package/dist/types/src/components/Form/CheckboxInput/CheckboxInput.types.d.ts.map +1 -1
- package/dist/types/src/components/Form/CheckboxInput/index.d.ts +1 -1
- package/dist/types/src/components/Form/CheckboxInput/index.d.ts.map +1 -1
- package/dist/types/src/components/Form/RadioInput/RadioInput.types.d.ts +3 -11
- package/dist/types/src/components/Form/RadioInput/RadioInput.types.d.ts.map +1 -1
- package/dist/types/src/components/Form/RadioInput/index.d.ts +1 -1
- package/dist/types/src/components/Form/RadioInput/index.d.ts.map +1 -1
- package/dist/types/src/components/Form/SelectInput/SelectInput.types.d.ts +1 -7
- package/dist/types/src/components/Form/SelectInput/SelectInput.types.d.ts.map +1 -1
- package/dist/types/src/components/Form/SelectInput/index.d.ts +1 -1
- package/dist/types/src/components/Form/SelectInput/index.d.ts.map +1 -1
- package/dist/types/src/components/Form/TextInput/TextInput.types.d.ts +1 -7
- package/dist/types/src/components/Form/TextInput/TextInput.types.d.ts.map +1 -1
- package/dist/types/src/components/Form/TextInput/index.d.ts +1 -1
- package/dist/types/src/components/Form/TextInput/index.d.ts.map +1 -1
- package/dist/types/src/stories/forms/RadioInput.stories.d.ts +4 -0
- package/dist/types/src/stories/forms/RadioInput.stories.d.ts.map +1 -1
- package/dist/types/src/stories/forms/TextInput.stories.d.ts +4 -0
- package/dist/types/src/stories/forms/TextInput.stories.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
(function(
|
|
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 me;function
|
|
5
|
+
*/var me;function ke(){return me||(me=1,function(e){(function(){var n={}.hasOwnProperty;function i(){for(var r="",u=0;u<arguments.length;u++){var c=arguments[u];c&&(r=o(r,a(c)))}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 u="";for(var c in r)n.call(r,c)&&r[c]&&(u=o(u,c));return u}function o(r,u){return u?r?r+" "+u:r+u:r}e.exports?(i.default=i,e.exports=i):window.classNames=i})()}(ee)),ee.exports}var qe=ke();const q=be(qe);var J={exports:{}},R={exports:{}},C={};/** @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 _e;function Le(){if(_e)return C;_e=1;var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,
|
|
12
|
+
*/var _e;function Le(){if(_e)return C;_e=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,u=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,v=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,E=e?Symbol.for("react.suspense"):60113,N=e?Symbol.for("react.suspense_list"):60120,I=e?Symbol.for("react.memo"):60115,k=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,L=e?Symbol.for("react.responder"):60118,z=e?Symbol.for("react.scope"):60119;function M(l){if(typeof l=="object"&&l!==null){var D=l.$$typeof;switch(D){case n:switch(l=l.type,l){case h:case v:case a:case r:case o:case E:return l;default:switch(l=l&&l.$$typeof,l){case c:case p:case k:case I:case u:return l;default:return D}}case i:return D}}}function j(l){return M(l)===v}return C.AsyncMode=h,C.ConcurrentMode=v,C.ContextConsumer=c,C.ContextProvider=u,C.Element=n,C.ForwardRef=p,C.Fragment=a,C.Lazy=k,C.Memo=I,C.Portal=i,C.Profiler=r,C.StrictMode=o,C.Suspense=E,C.isAsyncMode=function(l){return j(l)||M(l)===h},C.isConcurrentMode=j,C.isContextConsumer=function(l){return M(l)===c},C.isContextProvider=function(l){return M(l)===u},C.isElement=function(l){return typeof l=="object"&&l!==null&&l.$$typeof===n},C.isForwardRef=function(l){return M(l)===p},C.isFragment=function(l){return M(l)===a},C.isLazy=function(l){return M(l)===k},C.isMemo=function(l){return M(l)===I},C.isPortal=function(l){return M(l)===i},C.isProfiler=function(l){return M(l)===r},C.isStrictMode=function(l){return M(l)===o},C.isSuspense=function(l){return M(l)===E},C.isValidElementType=function(l){return typeof l=="string"||typeof l=="function"||l===a||l===v||l===r||l===o||l===E||l===N||typeof l=="object"&&l!==null&&(l.$$typeof===k||l.$$typeof===I||l.$$typeof===u||l.$$typeof===c||l.$$typeof===p||l.$$typeof===$||l.$$typeof===L||l.$$typeof===z||l.$$typeof===x)},C.typeOf=M,C}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,n=e?Symbol.for("react.element"):60103,
|
|
19
|
+
*/var ge;function De(){return ge||(ge=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,u=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,v=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,E=e?Symbol.for("react.suspense"):60113,N=e?Symbol.for("react.suspense_list"):60120,I=e?Symbol.for("react.memo"):60115,k=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,L=e?Symbol.for("react.responder"):60118,z=e?Symbol.for("react.scope"):60119;function M(f){return typeof f=="string"||typeof f=="function"||f===a||f===v||f===r||f===o||f===E||f===N||typeof f=="object"&&f!==null&&(f.$$typeof===k||f.$$typeof===I||f.$$typeof===u||f.$$typeof===c||f.$$typeof===p||f.$$typeof===$||f.$$typeof===L||f.$$typeof===z||f.$$typeof===x)}function j(f){if(typeof f=="object"&&f!==null){var U=f.$$typeof;switch(U){case n:var Q=f.type;switch(Q){case h:case v:case a:case r:case o:case E:return Q;default:var Me=Q&&Q.$$typeof;switch(Me){case c:case p:case k:case I:case u:return Me;default:return U}}case i:return U}}}var l=h,D=v,le=c,fe=u,ue=n,de=p,X=a,pe=k,ye=I,H=i,he=r,W=o,V=E,G=!1;function ve(f){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(f)||j(f)===h}function s(f){return j(f)===v}function d(f){return j(f)===c}function g(f){return j(f)===u}function m(f){return typeof f=="object"&&f!==null&&f.$$typeof===n}function y(f){return j(f)===p}function T(f){return j(f)===a}function b(f){return j(f)===k}function _(f){return j(f)===I}function w(f){return j(f)===i}function O(f){return j(f)===r}function S(f){return j(f)===o}function Y(f){return j(f)===E}P.AsyncMode=l,P.ConcurrentMode=D,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=W,P.Suspense=V,P.isAsyncMode=ve,P.isConcurrentMode=s,P.isContextConsumer=d,P.isContextProvider=g,P.isElement=m,P.isForwardRef=y,P.isFragment=T,P.isLazy=b,P.isMemo=_,P.isPortal=w,P.isProfiler=O,P.isStrictMode=S,P.isSuspense=Y,P.isValidElementType=M,P.typeOf=j}()),P}var Ee;function Te(){return Ee||(Ee=1,process.env.NODE_ENV==="production"?R.exports=Le():R.exports=De()),R.exports}/*
|
|
20
20
|
object-assign
|
|
21
21
|
(c) Sindre Sorhus
|
|
22
22
|
@license MIT
|
|
23
|
-
*/var re,we;function Ye(){if(we)return re;we=1;var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,
|
|
24
|
-
Valid keys: `+JSON.stringify(Object.keys(s),null," "));var u=Y(g,S,h,T,b+"."+S,c);if(u)return u}return null}return $(d)}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||i(s))return!0;var d=m(s);if(d){var E=d.call(s),_;if(d!==s.entries){for(;!(_=E.next()).done;)if(!H(_.value))return!1}else for(;!(_=E.next()).done;){var h=_.value;if(h&&!H(h[1]))return!1}}else return!1;return!0;default:return!1}}function he(s,d){return s==="symbol"?!0:d?d["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&d instanceof Symbol:!1}function W(s){var d=typeof s;return Array.isArray(s)?"array":s instanceof RegExp?"object":he(d,s)?"symbol":d}function V(s){if(typeof s>"u"||s===null)return""+s;var d=W(s);if(d==="object"){if(s instanceof Date)return"date";if(s instanceof RegExp)return"regexp"}return d}function G(s){var d=V(s);switch(d){case"array":case"object":return"an "+d;case"boolean":case"date":case"regexp":return"a "+d;default:return d}}function ve(s){return!s.constructor||!s.constructor.name?A:s.constructor.name}return I.checkPropTypes=o,I.resetWarningCache=o.resetWarningCache,I.PropTypes=I,I},se}var ce,xe;function Ue(){if(xe)return ce;xe=1;var e=ne();function n(){}function c(){}return c.resetWarningCache=n,ce=function(){function a(l,i,p,v,y,m){if(m!==e){var A=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 A.name="Invariant Violation",A}}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:c,resetWarningCache:n};return r.PropTypes=r,r},ce}var Ae;function ze(){if(Ae)return J.exports;if(Ae=1,process.env.NODE_ENV!=="production"){var e=Te(),n=!0;J.exports=We()(e.isElement,n)}else J.exports=Ue()();return J.exports}var Be=ze();const Z=be(Be),Ie=({content:e,title:n,className:c,id:a="accordion"})=>{const o=q("rpf-accordion",c);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})]})};Ie.propTypes={content:Z.string.isRequired,title:Z.string.isRequired,id:Z.string,className:Z.string};const B=({text:e,href:n,title:c,className:a,type:o="primary",variant:r="",size:l="default",icon:i="",iconOnly:p=!1,iconPosition:v="left",fullWidth:y=!1,disabled:m=!1,onClick:A=()=>{},"aria-label":I="",linkComponent:M})=>{const N=i&&p,$=q("rpf-button",{[`rpf-button--${o}`]:o,"rpf-button--danger":r==="danger","rpf-button--sm":l==="small","rpf-button--icon-only":N,"rpf-button--full-width":y,disabled:m},a);let L="rpf-button__icon";F.isValidElement(i)?(L+=" icon",console.warn("DEPRECATED: icons as React elements will not be supported in future releases")):L+=" material-symbols-sharp";const z=(f,D)=>!D||v!==f?null:typeof D=="string"?t.jsx("span",{className:L,children:D}):D,k=()=>e&&!N&&t.jsx("span",{className:"text",children:e}),j=t.jsxs(t.Fragment,{children:[z("left",i),k(),z("right",i)]});if(n){const f=M||"a",D=M?{to:n}:{href:n,role:"button"};return t.jsx(f,{className:$,...D,onClick:A,"aria-label":I,children:j})}return t.jsx("button",{className:$,title:c,onClick:A,disabled:m,"aria-label":I,children:j})},Ve=({title:e,text:n,titleChildren:c,children:a,type:o,actions:r,onClose:l})=>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"}),c?t.jsx("div",{className:"rpf-alert__title",children:c}):e?t.jsx("p",{className:"rpf-alert__title",children:e}):null,!!l&&t.jsx("div",{className:"rpf-alert__close",children:t.jsx(B,{type:"tertiary",icon:"close",size:"small",iconOnly:!0,onClick:l})})]}),(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((i,p)=>t.jsx(B,{text:i.label,size:"small",type:"tertiary",href:i.href,onClick:i.onClick},p))})]})]}),He=({id:e,label:n,name:c,checked:a=!1,disabled:o=!1,error:r="",onChange:l=()=>{},value:i="",className:p=""})=>t.jsxs(t.Fragment,{children:[t.jsxs("label",{className:q("rpf-input-checkbox",{"rpf-input-checkbox--error":r,className:p}),children:[t.jsx("input",{checked:!!a,disabled:o,id:e,name:c,onChange:l,type:"checkbox",value:i}),n]}),r&&t.jsxs("div",{className:"rpf-error-message",children:[t.jsx("span",{className:"rpf-error-message__icon material-symbols-sharp",children:"error"}),r]})]}),Je=({disabled:e=!1,errorText:n="",fullWidth:c=!1,legendText:a,legendHintText:o="",children:r})=>t.jsxs("fieldset",{className:q("rpf-fieldset",{"rpf-fieldset--disabled":e,"rpf-fieldset--full-width":c,"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]}),K=({id:e,label:n,children:c,disabled:a=!1,error:o="",hint:r=""})=>t.jsxs("div",{className:"rpf-input-field",children:[(n||r)&&t.jsxs("label",{htmlFor:e,className:q("rpf-label",{"rpf-label--disabled":a}),children:[n,t.jsx("small",{className:"rpf-label__hint",children:r})]}),c,o&&t.jsxs("div",{className:"rpf-error-message",children:[t.jsx("span",{className:"rpf-error-message__icon material-symbols-sharp",children:"error"}),o]})]}),Re=({label:e,inputFieldId:n,disabled:c=!1,hint:a=""})=>t.jsx("div",{className:"rpf-label",children:t.jsxs("label",{htmlFor:n,className:q("rpf-label",{"rpf-label--disabled":c}),children:[e,a&&t.jsx("div",{className:"rpf-label__hint",children:a})]})}),Ze=({id:e,label:n,name:c,checked:a=!1,disabled:o=!1,fullWidth:r=!1,onChange:l=()=>{},value:i=""})=>t.jsxs("label",{className:q("rpf-input-radio",{"rpf-input-radio--disabled":o,"rpf-input--full-width":r}),children:[t.jsx("input",{checked:!!a,disabled:o,id:e,name:c,onChange:l,type:"radio",value:i}),n]}),Ke=({label:e,inputFieldId:n,disabled:c=!1,error:a="",hint:o="",placeholder:r="",defaultValue:l="",onClick:i=()=>{},onChange:p=()=>{}})=>t.jsx("search",{children:t.jsxs("form",{className:"rpf-input-field",onSubmit:i,children:[t.jsxs("label",{htmlFor:n,className:q("rpf-label",{"rpf-label--disabled":c}),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:q("rpf-input rpf-input-search",{"rpf-input--disabled":c,"rpf-input--error":a}),disabled:c,id:n,name:"search",type:"search","aria-label":"Search",defaultValue:l,placeholder:r,onChange:p}),t.jsx("button",{type:"submit",className:q("rpf-button rpf-button-search",{"rpf-button--disabled":c,"rpf-button--error":a}),disabled:c,onClick:i,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]})]})}),Xe=({id:e,label:n,name:c,options:a,disabled:o=!1,error:r="",fullWidth:l=!1,hint:i="",onChange:p=()=>{},placeholder:v="",value:y=""})=>t.jsx(K,{id:e,disabled:o,error:r,hint:i,label:n,children:t.jsxs("select",{className:q("rpf-input rpf-input-select",{"rpf-input--error":r,"rpf-input--full-width":l}),disabled:o,id:e,name:c,onChange:p,value:y,children:[!y&&!!v&&t.jsx("option",{value:"",disabled:!0,children:v}),a.map(m=>t.jsx("option",{value:m.key,children:m.value},m.key))]})}),Ge=({id:e,label:n,name:c,value:a,disabled:o=!1,readOnly:r=!1,error:l="",fullWidth:i=!1,hint:p="",onChange:v=()=>{}})=>t.jsx(K,{id:e,disabled:o,error:l,hint:p,label:n,children:t.jsx("textarea",{className:q("rpf-input rpf-input-textarea",{"rpf-input--error":l,"rpf-input--full-width":i,"rpf-input--disabled":o}),disabled:o,readOnly:r,id:e,name:c,onChange:v,value:a})}),Qe=({id:e,label:n,name:c,value:a,disabled:o=!1,error:r="",fullWidth:l=!1,hint:i="",onChange:p=()=>{}})=>t.jsx(K,{id:e,disabled:o,error:r,hint:i,label:n,children:t.jsx("input",{className:q("rpf-input rpf-input-text",{"rpf-input--error":r,"rpf-input--full-width":l}),disabled:o,id:e,name:c,onChange:p,type:"text",value:a})});function er(e,n){const c=F.useRef(null),a=F.useRef(null);return F.useEffect(()=>{const o=c.current;o&&(e&&!o.open?o.showModal():!e&&o.open&&o.close())},[e]),F.useEffect(()=>{const o=c.current;if(!o)return;const r=()=>n(!1),l=i=>{i.preventDefault(),n(!1)};return o.addEventListener("close",r),o.addEventListener("cancel",l),()=>{o.removeEventListener("close",r),o.removeEventListener("cancel",l)}},[n]),F.useEffect(()=>{const o=c.current,r=a.current;if(!o||!r)return;const l=i=>{e&&!r.contains(i.target)&&n(!1)};return o.addEventListener("mousedown",l),()=>o.removeEventListener("mousedown",l)},[e,n]),{dialogRef:c,contentRef:a}}const rr=({isOpen:e,setIsOpen:n,heading:c,children:a,primaryButtonLink:o,primaryButtonText:r,onClickPrimaryButton:l,secondaryButtonText:i,secondaryButtonLink:p,onClickSecondaryButton:v,tertiaryButtonText:y,tertiaryButtonLink:m,onClickTertiaryButton:A,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:c}),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:l,type:"primary"}),i&&t.jsx(B,{text:i,href:p,onClick:v,type:"secondary"}),y&&t.jsx(B,{text:y,href:m,onClick:A,type:"tertiary"})]})]})})},tr=({text:e="",percent:n,complete:c=!1,className:a})=>t.jsx("div",{className:q("rpf-progress-bar",{"rpf-progress-bar--complete":c,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})});/**
|
|
23
|
+
*/var re,we;function Ye(){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 u={},c=0;c<10;c++)u["_"+String.fromCharCode(c)]=c;var h=Object.getOwnPropertyNames(u).map(function(p){return u[p]});if(h.join("")!=="0123456789")return!1;var v={};return"abcdefghijklmnopqrst".split("").forEach(function(p){v[p]=p}),Object.keys(Object.assign({},v)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return re=o()?Object.assign:function(r,u){for(var c,h=a(r),v,p=1;p<arguments.length;p++){c=Object(arguments[p]);for(var E in c)n.call(c,E)&&(h[E]=c[E]);if(e){v=e(c);for(var N=0;N<v.length;N++)i.call(c,v[N])&&(h[v[N]]=c[v[N]])}}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,Ce;function Pe(){return Ce||(Ce=1,ae=Function.call.bind(Object.prototype.hasOwnProperty)),ae}var oe,Oe;function Fe(){if(Oe)return oe;Oe=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var n=ne(),i={},a=Pe();e=function(r){var u="Warning: "+r;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}}}function o(r,u,c,h,v){if(process.env.NODE_ENV!=="production"){for(var p in r)if(a(r,p)){var E;try{if(typeof r[p]!="function"){var N=Error((h||"React class")+": "+c+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw N.name="Invariant Violation",N}E=r[p](u,p,h,c,null,n)}catch(k){E=k}if(E&&!(E instanceof Error)&&e((h||"React class")+": type specification of "+c+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof E+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),E instanceof Error&&!(E.message in i)){i[E.message]=!0;var I=v?v():"";e("Failed "+c+" type: "+E.message+(I??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(i={})},oe=o,oe}var se,Ne;function We(){if(Ne)return se;Ne=1;var e=Te(),n=Ye(),i=ne(),a=Pe(),o=Fe(),r=function(){};process.env.NODE_ENV!=="production"&&(r=function(c){var h="Warning: "+c;typeof console<"u"&&console.error(h);try{throw new Error(h)}catch{}});function u(){return null}return se=function(c,h){var v=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function E(s){var d=s&&(v&&s[v]||s[p]);if(typeof d=="function")return d}var N="<<anonymous>>",I={array:L("array"),bigint:L("bigint"),bool:L("boolean"),func:L("function"),number:L("number"),object:L("object"),string:L("string"),symbol:L("symbol"),any:z(),arrayOf:M,element:j(),elementType:l(),instanceOf:D,node:de(),objectOf:fe,oneOf:le,oneOfType:ue,shape:pe,exact:ye};function k(s,d){return s===d?s!==0||1/s===1/d:s!==s&&d!==d}function x(s,d){this.message=s,this.data=d&&typeof d=="object"?d:{},this.stack=""}x.prototype=Error.prototype;function $(s){if(process.env.NODE_ENV!=="production")var d={},g=0;function m(T,b,_,w,O,S,Y){if(w=w||N,S=S||_,Y!==i){if(h){var f=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 f.name="Invariant Violation",f}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var U=w+":"+_;!d[U]&&g<3&&(r("You are manually calling a React.PropTypes validation function for the `"+S+"` prop on `"+w+"`. 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."),d[U]=!0,g++)}}return b[_]==null?T?b[_]===null?new x("The "+O+" `"+S+"` is marked as required "+("in `"+w+"`, but its value is `null`.")):new x("The "+O+" `"+S+"` is marked as required in "+("`"+w+"`, but its value is `undefined`.")):null:s(b,_,w,O,S)}var y=m.bind(null,!1);return y.isRequired=m.bind(null,!0),y}function L(s){function d(g,m,y,T,b,_){var w=g[m],O=W(w);if(O!==s){var S=V(w);return new x("Invalid "+T+" `"+b+"` of type "+("`"+S+"` supplied to `"+y+"`, expected ")+("`"+s+"`."),{expectedType:s})}return null}return $(d)}function z(){return $(u)}function M(s){function d(g,m,y,T,b){if(typeof s!="function")return new x("Property `"+b+"` of component `"+y+"` has invalid PropType notation inside arrayOf.");var _=g[m];if(!Array.isArray(_)){var w=W(_);return new x("Invalid "+T+" `"+b+"` of type "+("`"+w+"` supplied to `"+y+"`, expected an array."))}for(var O=0;O<_.length;O++){var S=s(_,O,y,T,b+"["+O+"]",i);if(S instanceof Error)return S}return null}return $(d)}function j(){function s(d,g,m,y,T){var b=d[g];if(!c(b)){var _=W(b);return new x("Invalid "+y+" `"+T+"` of type "+("`"+_+"` supplied to `"+m+"`, expected a single ReactElement."))}return null}return $(s)}function l(){function s(d,g,m,y,T){var b=d[g];if(!e.isValidElementType(b)){var _=W(b);return new x("Invalid "+y+" `"+T+"` of type "+("`"+_+"` supplied to `"+m+"`, expected a single ReactElement type."))}return null}return $(s)}function D(s){function d(g,m,y,T,b){if(!(g[m]instanceof s)){var _=s.name||N,w=ve(g[m]);return new x("Invalid "+T+" `"+b+"` of type "+("`"+w+"` supplied to `"+y+"`, expected ")+("instance of `"+_+"`."))}return null}return $(d)}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.")),u;function d(g,m,y,T,b){for(var _=g[m],w=0;w<s.length;w++)if(k(_,s[w]))return null;var O=JSON.stringify(s,function(Y,f){var U=V(f);return U==="symbol"?String(f):f});return new x("Invalid "+T+" `"+b+"` of value `"+String(_)+"` "+("supplied to `"+y+"`, expected one of "+O+"."))}return $(d)}function fe(s){function d(g,m,y,T,b){if(typeof s!="function")return new x("Property `"+b+"` of component `"+y+"` has invalid PropType notation inside objectOf.");var _=g[m],w=W(_);if(w!=="object")return new x("Invalid "+T+" `"+b+"` of type "+("`"+w+"` supplied to `"+y+"`, expected an object."));for(var O in _)if(a(_,O)){var S=s(_,O,y,T,b+"."+O,i);if(S instanceof Error)return S}return null}return $(d)}function ue(s){if(!Array.isArray(s))return process.env.NODE_ENV!=="production"&&r("Invalid argument supplied to oneOfType, expected an instance of array."),u;for(var d=0;d<s.length;d++){var g=s[d];if(typeof g!="function")return r("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+G(g)+" at index "+d+"."),u}function m(y,T,b,_,w){for(var O=[],S=0;S<s.length;S++){var Y=s[S],f=Y(y,T,b,_,w,i);if(f==null)return null;f.data&&a(f.data,"expectedType")&&O.push(f.data.expectedType)}var U=O.length>0?", expected one of type ["+O.join(", ")+"]":"";return new x("Invalid "+_+" `"+w+"` supplied to "+("`"+b+"`"+U+"."))}return $(m)}function de(){function s(d,g,m,y,T){return H(d[g])?null:new x("Invalid "+y+" `"+T+"` supplied to "+("`"+m+"`, expected a ReactNode."))}return $(s)}function X(s,d,g,m,y){return new x((s||"React class")+": "+d+" type `"+g+"."+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+y+"`.")}function pe(s){function d(g,m,y,T,b){var _=g[m],w=W(_);if(w!=="object")return new x("Invalid "+T+" `"+b+"` of type `"+w+"` "+("supplied to `"+y+"`, expected `object`."));for(var O in s){var S=s[O];if(typeof S!="function")return X(y,T,b,O,V(S));var Y=S(_,O,y,T,b+"."+O,i);if(Y)return Y}return null}return $(d)}function ye(s){function d(g,m,y,T,b){var _=g[m],w=W(_);if(w!=="object")return new x("Invalid "+T+" `"+b+"` of type `"+w+"` "+("supplied to `"+y+"`, expected `object`."));var O=n({},g[m],s);for(var S in O){var Y=s[S];if(a(s,S)&&typeof Y!="function")return X(y,T,b,S,V(Y));if(!Y)return new x("Invalid "+T+" `"+b+"` key `"+S+"` supplied to `"+y+"`.\nBad object: "+JSON.stringify(g[m],null," ")+`
|
|
24
|
+
Valid keys: `+JSON.stringify(Object.keys(s),null," "));var f=Y(_,S,y,T,b+"."+S,i);if(f)return f}return null}return $(d)}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||c(s))return!0;var d=E(s);if(d){var g=d.call(s),m;if(d!==s.entries){for(;!(m=g.next()).done;)if(!H(m.value))return!1}else for(;!(m=g.next()).done;){var y=m.value;if(y&&!H(y[1]))return!1}}else return!1;return!0;default:return!1}}function he(s,d){return s==="symbol"?!0:d?d["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&d instanceof Symbol:!1}function W(s){var d=typeof s;return Array.isArray(s)?"array":s instanceof RegExp?"object":he(d,s)?"symbol":d}function V(s){if(typeof s>"u"||s===null)return""+s;var d=W(s);if(d==="object"){if(s instanceof Date)return"date";if(s instanceof RegExp)return"regexp"}return d}function G(s){var d=V(s);switch(d){case"array":case"object":return"an "+d;case"boolean":case"date":case"regexp":return"a "+d;default:return d}}function ve(s){return!s.constructor||!s.constructor.name?N:s.constructor.name}return I.checkPropTypes=o,I.resetWarningCache=o.resetWarningCache,I.PropTypes=I,I},se}var ie,xe;function Ue(){if(xe)return ie;xe=1;var e=ne();function n(){}function i(){}return i.resetWarningCache=n,ie=function(){function a(u,c,h,v,p,E){if(E!==e){var N=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 N.name="Invariant Violation",N}}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 J.exports;if(Ae=1,process.env.NODE_ENV!=="production"){var e=Te(),n=!0;J.exports=We()(e.isElement,n)}else J.exports=Ue()();return J.exports}var Be=ze();const Z=be(Be),Ie=({content:e,title:n,className:i,id:a="accordion"})=>{const o=q("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})]})};Ie.propTypes={content:Z.string.isRequired,title:Z.string.isRequired,id:Z.string,className:Z.string};const B=({text:e,href:n,title:i,className:a,type:o="primary",variant:r="",size:u="default",icon:c="",iconOnly:h=!1,iconPosition:v="left",fullWidth:p=!1,disabled:E=!1,onClick:N=()=>{},"aria-label":I="",linkComponent:k})=>{const x=c&&h,$=q("rpf-button",{[`rpf-button--${o}`]:o,"rpf-button--danger":r==="danger","rpf-button--sm":u==="small","rpf-button--icon-only":x,"rpf-button--full-width":p,disabled:E},a);let L="rpf-button__icon";F.isValidElement(c)?(L+=" icon",console.warn("DEPRECATED: icons as React elements will not be supported in future releases")):L+=" material-symbols-sharp";const z=(l,D)=>!D||v!==l?null:typeof D=="string"?t.jsx("span",{className:L,children:D}):D,M=()=>e&&!x&&t.jsx("span",{className:"text",children:e}),j=t.jsxs(t.Fragment,{children:[z("left",c),M(),z("right",c)]});if(n){const l=k||"a",D=k?{to:n}:{href:n,role:"button"};return t.jsx(l,{className:$,...D,onClick:N,"aria-label":I,children:j})}return t.jsx("button",{className:$,title:i,onClick:N,disabled:E,"aria-label":I,children:j})},Ve=({title:e,text:n,titleChildren:i,children:a,type:o,actions:r,onClose:u})=>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,!!u&&t.jsx("div",{className:"rpf-alert__close",children:t.jsx(B,{type:"tertiary",icon:"close",size:"small",iconOnly:!0,onClick:u})})]}),(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((c,h)=>t.jsx(B,{text:c.label,size:"small",type:"tertiary",href:c.href,onClick:c.onClick},h))})]})]}),He=({label:e,id:n,name:i,error:a="",...o})=>{const{className:r,...u}=o;return t.jsxs(t.Fragment,{children:[t.jsxs("label",{className:q("rpf-input-checkbox",{"rpf-input-checkbox--error":a,className:r}),children:[t.jsx("input",{id:n,name:i,type:"checkbox",...u}),e]}),a&&t.jsxs("div",{className:"rpf-error-message",children:[t.jsx("span",{className:"rpf-error-message__icon material-symbols-sharp",children:"error"}),a]})]})},Je=({disabled:e=!1,errorText:n="",fullWidth:i=!1,legendText:a,legendHintText:o="",children:r})=>t.jsxs("fieldset",{className:q("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]}),K=({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:q("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]})]}),Re=({label:e,inputFieldId:n,disabled:i=!1,hint:a=""})=>t.jsx("div",{className:"rpf-label",children:t.jsxs("label",{htmlFor:n,className:q("rpf-label",{"rpf-label--disabled":i}),children:[e,a&&t.jsx("div",{className:"rpf-label__hint",children:a})]})}),Ze=({label:e,id:n,name:i,fullWidth:a=!1,...o})=>t.jsxs("label",{className:q("rpf-input-radio",{"rpf-input-radio--disabled":o.disabled,"rpf-input--full-width":a}),children:[t.jsx("input",{type:"radio",id:n,name:i,...o}),e]}),Ke=({label:e,inputFieldId:n,disabled:i=!1,error:a="",hint:o="",placeholder:r="",defaultValue:u="",onClick:c=()=>{},onChange:h=()=>{}})=>t.jsx("search",{children:t.jsxs("form",{className:"rpf-input-field",onSubmit:c,children:[t.jsxs("label",{htmlFor:n,className:q("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:q("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:u,placeholder:r,onChange:h}),t.jsx("button",{type:"submit",className:q("rpf-button rpf-button-search",{"rpf-button--disabled":i,"rpf-button--error":a}),disabled:i,onClick:c,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]})]})}),Xe=({id:e,label:n,name:i,options:a,disabled:o=!1,error:r="",fullWidth:u=!1,hint:c="",onChange:h=()=>{},placeholder:v="",value:p="",...E})=>t.jsx(K,{id:e,disabled:o,error:r,hint:c,label:n,children:t.jsxs("select",{className:q("rpf-input rpf-input-select",{"rpf-input--error":r,"rpf-input--full-width":u}),disabled:o,id:e,name:i,onChange:h,value:p,...E,children:[!p&&!!v&&t.jsx("option",{value:"",disabled:!0,children:v}),a.map(N=>t.jsx("option",{value:N.key,children:N.value},N.key))]})}),Ge=({id:e,label:n,name:i,value:a,disabled:o=!1,readOnly:r=!1,error:u="",fullWidth:c=!1,hint:h="",onChange:v=()=>{}})=>t.jsx(K,{id:e,disabled:o,error:u,hint:h,label:n,children:t.jsx("textarea",{className:q("rpf-input rpf-input-textarea",{"rpf-input--error":u,"rpf-input--full-width":c,"rpf-input--disabled":o}),disabled:o,readOnly:r,id:e,name:i,onChange:v,value:a})}),Qe=({id:e,name:n,label:i,error:a="",fullWidth:o=!1,hint:r="",type:u="text",...c})=>t.jsx(K,{id:e,disabled:c.disabled,error:a,hint:r,label:i,children:t.jsx("input",{className:q("rpf-input rpf-input-text",{"rpf-input--error":a,"rpf-input--full-width":o}),id:e,name:n,type:u,...c})});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),u=c=>{c.preventDefault(),n(!1)};return o.addEventListener("close",r),o.addEventListener("cancel",u),()=>{o.removeEventListener("close",r),o.removeEventListener("cancel",u)}},[n]),F.useEffect(()=>{const o=i.current,r=a.current;if(!o||!r)return;const u=c=>{e&&!r.contains(c.target)&&n(!1)};return o.addEventListener("mousedown",u),()=>o.removeEventListener("mousedown",u)},[e,n]),{dialogRef:i,contentRef:a}}const rr=({isOpen:e,setIsOpen:n,heading:i,children:a,primaryButtonLink:o,primaryButtonText:r,onClickPrimaryButton:u,secondaryButtonText:c,secondaryButtonLink:h,onClickSecondaryButton:v,tertiaryButtonText:p,tertiaryButtonLink:E,onClickTertiaryButton:N,showCloseButton:I=!0})=>{const{dialogRef:k,contentRef:x}=er(e,n);return t.jsx("dialog",{ref:k,className:"rpf-modal","aria-labelledby":"modal-heading","aria-describedby":"modal-description",children:t.jsxs("div",{ref:x,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:u,type:"primary"}),c&&t.jsx(B,{text:c,href:h,onClick:v,type:"secondary"}),p&&t.jsx(B,{text:p,href:E,onClick:N,type:"tertiary"})]})]})})},tr=({text:e="",percent:n,complete:i=!1,className:a})=>t.jsx("div",{className:q("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
25
|
* @license lucide-react v0.553.0 - ISC
|
|
26
26
|
*
|
|
27
27
|
* This source code is licensed under the ISC license.
|
|
28
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,
|
|
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()),je=e=>{const n=or(e);return n.charAt(0).toUpperCase()+n.slice(1)},$e=(...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
30
|
* @license lucide-react v0.553.0 - ISC
|
|
31
31
|
*
|
|
32
32
|
* This source code is licensed under the ISC license.
|
|
33
33
|
* See the LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/var
|
|
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
35
|
* @license lucide-react v0.553.0 - ISC
|
|
36
36
|
*
|
|
37
37
|
* This source code is licensed under the ISC license.
|
|
38
38
|
* See the LICENSE file in the root directory of this source tree.
|
|
39
|
-
*/const
|
|
39
|
+
*/const cr=F.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:i=2,absoluteStrokeWidth:a,className:o="",children:r,iconNode:u,...c},h)=>F.createElement("svg",{ref:h,...ir,width:n,height:n,stroke:e,strokeWidth:a?Number(i)*24/Number(n):i,className:$e("lucide",o),...!r&&!sr(c)&&{"aria-hidden":"true"},...c},[...u.map(([v,p])=>F.createElement(v,p)),...Array.isArray(r)?r:[r]]));/**
|
|
40
40
|
* @license lucide-react v0.553.0 - ISC
|
|
41
41
|
*
|
|
42
42
|
* This source code is licensed under the ISC license.
|
|
43
43
|
* See the LICENSE file in the root directory of this source tree.
|
|
44
|
-
*/const
|
|
44
|
+
*/const ce=(e,n)=>{const i=F.forwardRef(({className:a,...o},r)=>F.createElement(cr,{ref:r,iconNode:n,className:$e(`lucide-${ar(je(e))}`,`lucide-${e}`,a),...o}));return i.displayName=je(e),i};/**
|
|
45
45
|
* @license lucide-react v0.553.0 - ISC
|
|
46
46
|
*
|
|
47
47
|
* This source code is licensed under the ISC license.
|
|
48
48
|
* See the LICENSE file in the root directory of this source tree.
|
|
49
|
-
*/const lr=
|
|
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
50
|
* @license lucide-react v0.553.0 - ISC
|
|
51
51
|
*
|
|
52
52
|
* This source code is licensed under the ISC license.
|
|
53
53
|
* See the LICENSE file in the root directory of this source tree.
|
|
54
|
-
*/const fr=
|
|
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
55
|
* @license lucide-react v0.553.0 - ISC
|
|
56
56
|
*
|
|
57
57
|
* This source code is licensed under the ISC license.
|
|
58
58
|
* See the LICENSE file in the root directory of this source tree.
|
|
59
|
-
*/const ur=
|
|
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),u=a?"rpf-table-cell--sortable-header":"rpf-table-cell--header";return t.jsx("th",{className:`rpf-table-cell ${u}`,"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:q("rpf-table",{"rpf-table--full-width":i}),children:t.jsxs("table",{className:q("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 u=n&&n!=="default"?`rpf-tag--${n}`:null;return t.jsxs("span",{className:q("rpf-tag",u,{"rpf-tag--secondary":i}),children:[o==="left"&&r,e,o==="right"&&r]})};A.Accordion=Ie,A.Alert=Ve,A.Button=B,A.CheckboxInput=He,A.Fieldset=Je,A.InputField=K,A.InputLabel=Re,A.Modal=rr,A.ProgressBar=tr,A.RadioInput=Ze,A.SearchInput=Ke,A.SelectInput=Xe,A.Table=yr,A.TableBodyCell=nr,A.TableHeaderCell=pr,A.Tag=hr,A.TextInput=Qe,A.TextareaInput=Ge,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -4,21 +4,11 @@ export type CheckboxInputProps = {
|
|
|
4
4
|
id: string;
|
|
5
5
|
/** Name attribute for the checkbox input */
|
|
6
6
|
name: string;
|
|
7
|
-
/** Whether the checkbox is disabled */
|
|
8
|
-
disabled?: boolean;
|
|
9
7
|
/** Error message to display */
|
|
10
8
|
error?: string;
|
|
11
9
|
/** Label text or `ReactNode` for the checkbox */
|
|
12
10
|
label: string | ReactNode;
|
|
13
11
|
/** Whether the checkbox is checked (controlled) */
|
|
14
12
|
isChecked?: boolean;
|
|
15
|
-
|
|
16
|
-
value?: string;
|
|
17
|
-
/** Additional CSS class name */
|
|
18
|
-
className?: string;
|
|
19
|
-
/** Whether the checkbox is checked (uncontrolled) */
|
|
20
|
-
checked?: boolean;
|
|
21
|
-
/** Callback function when checkbox state changes */
|
|
22
|
-
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
23
|
-
};
|
|
13
|
+
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "id" | "name">;
|
|
24
14
|
//# sourceMappingURL=CheckboxInput.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxInput.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/CheckboxInput/CheckboxInput.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,+CAA+C;IAC/C,EAAE,EAAE,MAAM,CAAC;IACX,4CAA4C;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb
|
|
1
|
+
{"version":3,"file":"CheckboxInput.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/CheckboxInput/CheckboxInput.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,+CAA+C;IAC/C,EAAE,EAAE,MAAM,CAAC;IACX,4CAA4C;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iDAAiD;IACjD,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,mDAAmD;IACnD,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,GAAG,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "@/components/MaterialSymbols";
|
|
2
2
|
import "./CheckboxInput.scss";
|
|
3
3
|
import type { CheckboxInputProps } from "./CheckboxInput.types";
|
|
4
|
-
export declare const CheckboxInput: ({
|
|
4
|
+
export declare const CheckboxInput: ({ label, id, name, error, ...props }: CheckboxInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export default CheckboxInput;
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/CheckboxInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAC;AAGtC,OAAO,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,eAAO,MAAM,aAAa,GAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/CheckboxInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAC;AAGtC,OAAO,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,eAAO,MAAM,aAAa,GAAI,sCAM3B,kBAAkB,4CAwBpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1,19 +1,11 @@
|
|
|
1
1
|
export type RadioInputProps = {
|
|
2
|
-
/** Whether the radio input is checked or not */
|
|
3
|
-
checked?: boolean;
|
|
4
|
-
/** Whether the input is disabled */
|
|
5
|
-
disabled?: boolean;
|
|
6
2
|
/** Whether the radio input is full width */
|
|
7
3
|
fullWidth?: boolean;
|
|
8
|
-
/** The radio input id */
|
|
9
|
-
id: string;
|
|
10
4
|
/** The label text for the radio input */
|
|
11
5
|
label: string;
|
|
6
|
+
/** The radio input id */
|
|
7
|
+
id: string;
|
|
12
8
|
/** Name attribute for the radio input */
|
|
13
9
|
name: string;
|
|
14
|
-
|
|
15
|
-
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
16
|
-
/** Value attribute for the radio input */
|
|
17
|
-
value?: string;
|
|
18
|
-
};
|
|
10
|
+
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "id" | "name">;
|
|
19
11
|
//# sourceMappingURL=RadioInput.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioInput.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/RadioInput/RadioInput.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC5B,
|
|
1
|
+
{"version":3,"file":"RadioInput.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/RadioInput/RadioInput.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC5B,4CAA4C;IAC5C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,yCAAyC;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,yBAAyB;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;CACd,GAAG,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./RadioInput.scss";
|
|
2
2
|
import type { RadioInputProps } from "./RadioInput.types";
|
|
3
|
-
export declare const RadioInput: ({
|
|
3
|
+
export declare const RadioInput: ({ label, id, name, fullWidth, ...props }: RadioInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default RadioInput;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/RadioInput/index.tsx"],"names":[],"mappings":"AAEA,OAAO,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,eAAO,MAAM,UAAU,GAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/RadioInput/index.tsx"],"names":[],"mappings":"AAEA,OAAO,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,eAAO,MAAM,UAAU,GAAI,0CAMxB,eAAe,4CAUjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
export type SelectInputProps = {
|
|
2
|
-
/** Whether the select input is disabled */
|
|
3
|
-
disabled?: boolean;
|
|
4
2
|
/** Error message to display */
|
|
5
3
|
error?: string;
|
|
6
4
|
/** Hint text to be displayed below the title */
|
|
@@ -13,15 +11,11 @@ export type SelectInputProps = {
|
|
|
13
11
|
fullWidth?: boolean;
|
|
14
12
|
/** Name attribute for the select input */
|
|
15
13
|
name: string;
|
|
16
|
-
/** Callback function when input state changes */
|
|
17
|
-
onChange?: (e: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
18
14
|
/** Options to populate the select input dropdown menu */
|
|
19
15
|
options: Array<SelectOption>;
|
|
20
16
|
/** Optional placeholder string to display when no input chosen */
|
|
21
17
|
placeholder?: string;
|
|
22
|
-
|
|
23
|
-
value?: string;
|
|
24
|
-
};
|
|
18
|
+
} & Omit<React.SelectHTMLAttributes<HTMLSelectElement>, "id" | "name">;
|
|
25
19
|
type SelectOption = {
|
|
26
20
|
key: string;
|
|
27
21
|
value: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectInput.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/SelectInput/SelectInput.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG;IAC7B
|
|
1
|
+
{"version":3,"file":"SelectInput.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/SelectInput/SelectInput.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gDAAgD;IAChD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,0CAA0C;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,gCAAgC;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,6CAA6C;IAC7C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,0DAA0D;IAC1D,OAAO,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IAC7B,kEAAkE;IAClE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC,CAAC;AAEvE,KAAK,YAAY,GAAG;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "@/components/MaterialSymbols";
|
|
2
2
|
import "./SelectInput.scss";
|
|
3
3
|
import type { SelectInputProps } from "./SelectInput.types";
|
|
4
|
-
export declare const SelectInput: ({ id, label, name, options, disabled, error, fullWidth, hint, onChange, placeholder, value, }: SelectInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const SelectInput: ({ id, label, name, options, disabled, error, fullWidth, hint, onChange, placeholder, value, ...props }: SelectInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export default SelectInput;
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/SelectInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAC;AAItC,OAAO,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,eAAO,MAAM,WAAW,GAAI
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/SelectInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAC;AAItC,OAAO,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,eAAO,MAAM,WAAW,GAAI,wGAazB,gBAAgB,4CAgClB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
export type TextInputProps = {
|
|
2
|
-
/** Whether the input is disabled */
|
|
3
|
-
disabled?: boolean;
|
|
4
2
|
/** Error message to display */
|
|
5
3
|
error?: string;
|
|
6
4
|
/** Whether the input is full width */
|
|
@@ -13,9 +11,5 @@ export type TextInputProps = {
|
|
|
13
11
|
id: string;
|
|
14
12
|
/** Name attribute for the text input */
|
|
15
13
|
name: string;
|
|
16
|
-
|
|
17
|
-
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
18
|
-
/** Value attribute for the text input */
|
|
19
|
-
value: string;
|
|
20
|
-
};
|
|
14
|
+
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "id" | "name">;
|
|
21
15
|
//# sourceMappingURL=TextInput.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInput.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/TextInput/TextInput.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IAC3B
|
|
1
|
+
{"version":3,"file":"TextInput.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/TextInput/TextInput.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IAC3B,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,yCAAyC;IACzC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,8BAA8B;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,wCAAwC;IACxC,IAAI,EAAE,MAAM,CAAC;CACd,GAAG,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "@/components/MaterialSymbols";
|
|
2
2
|
import "./TextInput.scss";
|
|
3
3
|
import type { TextInputProps } from "./TextInput.types";
|
|
4
|
-
export declare const TextInput: ({ id,
|
|
4
|
+
export declare const TextInput: ({ id, name, label, error, fullWidth, hint, type, ...props }: TextInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export default TextInput;
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/TextInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAC;AAItC,OAAO,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,eAAO,MAAM,SAAS,GAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/TextInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAC;AAItC,OAAO,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,eAAO,MAAM,SAAS,GAAI,6DASvB,cAAc,4CAmBhB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -26,4 +26,8 @@ export declare const Checked: Story;
|
|
|
26
26
|
* disabled and fullWidth makes the input greyed out and stretch across the available space
|
|
27
27
|
*/
|
|
28
28
|
export declare const DisabledAndFullWidth: Story;
|
|
29
|
+
/**
|
|
30
|
+
* Input field attributes can be used in the RadioInput component, for example `required`
|
|
31
|
+
*/
|
|
32
|
+
export declare const Required: Story;
|
|
29
33
|
//# sourceMappingURL=RadioInput.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioInput.stories.d.ts","sourceRoot":"","sources":["../../../../../src/stories/forms/RadioInput.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;
|
|
1
|
+
{"version":3,"file":"RadioInput.stories.d.ts","sourceRoot":"","sources":["../../../../../src/stories/forms/RadioInput.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AAInF,UAAU,mBAAoB,SAAQ,eAAe;IACnD,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,mBAAmB,CAsBnC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,mBAAmB,CAAC,CAAC;AAE3C;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,KAIvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,KAItB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAKlC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,KA8BtB,CAAC"}
|
|
@@ -15,4 +15,8 @@ export declare const Error: Story;
|
|
|
15
15
|
* fullWidth makes the input stretch across the available space
|
|
16
16
|
*/
|
|
17
17
|
export declare const FullWidth: Story;
|
|
18
|
+
/**
|
|
19
|
+
* Input field attributes can be used in the TextInput component, for example `type=` and `required`
|
|
20
|
+
*/
|
|
21
|
+
export declare const EmailInput: Story;
|
|
18
22
|
//# sourceMappingURL=TextInput.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInput.stories.d.ts","sourceRoot":"","sources":["../../../../../src/stories/forms/TextInput.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"TextInput.stories.d.ts","sourceRoot":"","sources":["../../../../../src/stories/forms/TextInput.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAE5D,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CAchC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAC;AAExC;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,KAAK,EAAE,KAKnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,KAIvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,KA6BxB,CAAC"}
|