@nordhealth/react 1.9.0 → 1.11.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/lib/index.d.ts +21 -18
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/next.d.ts +21 -18
- package/lib/next.js +1 -1
- package/lib/next.js.map +1 -1
- package/package.json +3 -3
package/lib/index.d.ts
CHANGED
|
@@ -3,10 +3,13 @@ import * as Components from "@nordhealth/components";
|
|
|
3
3
|
export declare const Avatar: React.ForwardRefExoticComponent<Partial<Omit<Components.Avatar, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
} & React.RefAttributes<unknown>>;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const Banner: React.ForwardRefExoticComponent<Partial<Omit<Components.Banner, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
7
7
|
children?: React.ReactNode;
|
|
8
8
|
} & React.RefAttributes<unknown>>;
|
|
9
|
-
export declare const
|
|
9
|
+
export declare const Button: React.ForwardRefExoticComponent<Partial<Omit<Components.Button, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
} & React.RefAttributes<unknown>>;
|
|
12
|
+
export declare const Badge: React.ForwardRefExoticComponent<Partial<Omit<Components.Badge, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
10
13
|
children?: React.ReactNode;
|
|
11
14
|
} & React.RefAttributes<unknown>>;
|
|
12
15
|
export declare const Calendar: React.ForwardRefExoticComponent<Partial<Omit<Components.Calendar, "children">> & Partial<{
|
|
@@ -15,13 +18,6 @@ export declare const Calendar: React.ForwardRefExoticComponent<Partial<Omit<Comp
|
|
|
15
18
|
}> & Omit<React.HTMLAttributes<HTMLElement>, "onChange" | "onNordFocusDate"> & {
|
|
16
19
|
children?: React.ReactNode;
|
|
17
20
|
} & React.RefAttributes<unknown>>;
|
|
18
|
-
export declare const CommandMenu: React.ForwardRefExoticComponent<Partial<Omit<Components.CommandMenu, "children">> & Partial<{
|
|
19
|
-
onOpen: (e: Event) => void;
|
|
20
|
-
onClose: (e: Event) => void;
|
|
21
|
-
onNordSelect: (e: Event) => void;
|
|
22
|
-
}> & Omit<React.HTMLAttributes<HTMLElement>, "onOpen" | "onClose" | "onNordSelect"> & {
|
|
23
|
-
children?: React.ReactNode;
|
|
24
|
-
} & React.RefAttributes<unknown>>;
|
|
25
21
|
export declare const Card: React.ForwardRefExoticComponent<Partial<Omit<Components.Card, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
26
22
|
children?: React.ReactNode;
|
|
27
23
|
} & React.RefAttributes<unknown>>;
|
|
@@ -31,7 +27,11 @@ export declare const Checkbox: React.ForwardRefExoticComponent<Partial<Omit<Comp
|
|
|
31
27
|
}> & Omit<React.HTMLAttributes<HTMLElement>, "onChange" | "onInput"> & {
|
|
32
28
|
children?: React.ReactNode;
|
|
33
29
|
} & React.RefAttributes<unknown>>;
|
|
34
|
-
export declare const
|
|
30
|
+
export declare const CommandMenu: React.ForwardRefExoticComponent<Partial<Omit<Components.CommandMenu, "children">> & Partial<{
|
|
31
|
+
onOpen: (e: Event) => void;
|
|
32
|
+
onClose: (e: Event) => void;
|
|
33
|
+
onNordSelect: (e: Event) => void;
|
|
34
|
+
}> & Omit<React.HTMLAttributes<HTMLElement>, "onOpen" | "onClose" | "onNordSelect"> & {
|
|
35
35
|
children?: React.ReactNode;
|
|
36
36
|
} & React.RefAttributes<unknown>>;
|
|
37
37
|
export declare const DatePicker: React.ForwardRefExoticComponent<Partial<Omit<Components.DatePicker, "children">> & Partial<{
|
|
@@ -101,6 +101,9 @@ export declare const Popout: React.ForwardRefExoticComponent<Partial<Omit<Compon
|
|
|
101
101
|
export declare const ProgressBar: React.ForwardRefExoticComponent<Partial<Omit<Components.ProgressBar, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
102
102
|
children?: React.ReactNode;
|
|
103
103
|
} & React.RefAttributes<unknown>>;
|
|
104
|
+
export declare const Qrcode: React.ForwardRefExoticComponent<Partial<Omit<Components.Qrcode, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
105
|
+
children?: React.ReactNode;
|
|
106
|
+
} & React.RefAttributes<unknown>>;
|
|
104
107
|
export declare const Radio: React.ForwardRefExoticComponent<Partial<Omit<Components.Radio, "children">> & Partial<{
|
|
105
108
|
onInput: (e: Event) => void;
|
|
106
109
|
onChange: (e: Event) => void;
|
|
@@ -140,14 +143,6 @@ export declare const Textarea: React.ForwardRefExoticComponent<Partial<Omit<Comp
|
|
|
140
143
|
}> & Omit<React.HTMLAttributes<HTMLElement>, "onChange" | "onInput"> & {
|
|
141
144
|
children?: React.ReactNode;
|
|
142
145
|
} & React.RefAttributes<unknown>>;
|
|
143
|
-
export declare const Toast: React.ForwardRefExoticComponent<Partial<Omit<Components.Toast, "children">> & Partial<{
|
|
144
|
-
onDismiss: (e: Event) => void;
|
|
145
|
-
}> & Omit<React.HTMLAttributes<HTMLElement>, "onDismiss"> & {
|
|
146
|
-
children?: React.ReactNode;
|
|
147
|
-
} & React.RefAttributes<unknown>>;
|
|
148
|
-
export declare const ToastGroup: React.ForwardRefExoticComponent<Partial<Omit<Components.ToastGroup, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
149
|
-
children?: React.ReactNode;
|
|
150
|
-
} & React.RefAttributes<unknown>>;
|
|
151
146
|
export declare const Toggle: React.ForwardRefExoticComponent<Partial<Omit<Components.Toggle, "children">> & Partial<{
|
|
152
147
|
onInput: (e: Event) => void;
|
|
153
148
|
onChange: (e: Event) => void;
|
|
@@ -160,3 +155,11 @@ export declare const Tooltip: React.ForwardRefExoticComponent<Partial<Omit<Compo
|
|
|
160
155
|
export declare const VisuallyHidden: React.ForwardRefExoticComponent<Partial<Omit<Components.VisuallyHidden, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
161
156
|
children?: React.ReactNode;
|
|
162
157
|
} & React.RefAttributes<unknown>>;
|
|
158
|
+
export declare const ToastGroup: React.ForwardRefExoticComponent<Partial<Omit<Components.ToastGroup, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
159
|
+
children?: React.ReactNode;
|
|
160
|
+
} & React.RefAttributes<unknown>>;
|
|
161
|
+
export declare const Toast: React.ForwardRefExoticComponent<Partial<Omit<Components.Toast, "children">> & Partial<{
|
|
162
|
+
onDismiss: (e: Event) => void;
|
|
163
|
+
}> & Omit<React.HTMLAttributes<HTMLElement>, "onDismiss"> & {
|
|
164
|
+
children?: React.ReactNode;
|
|
165
|
+
} & React.RefAttributes<unknown>>;
|
package/lib/index.js
CHANGED
|
@@ -3,5 +3,5 @@ import*as n from"react";import*as o from"@nordhealth/components";
|
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2018 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
-
*/const e=new Set(["children","localName","ref","style","className"]),t=new WeakMap,r=(n,o,e,r,a)=>{const d=null==a?void 0:a[o];void 0!==d?e!==r&&((n,o,e)=>{let r=t.get(n);void 0===r&&t.set(n,r=new Map);let a=r.get(o);void 0!==e?void 0===a?(r.set(o,a={handleEvent:e}),n.addEventListener(o,a)):a.handleEvent=e:void 0!==a&&(r.delete(o),n.removeEventListener(o,a))})(n,d,e):n[o]=e},a=(n,o,t,a,d)=>{const s=n.Component,i=n.createElement,l=new Set(Object.keys(null!=a?a:{}));for(const n in t.prototype)n in HTMLElement.prototype||(e.has(n)?console.warn(`${o} contains property ${n} which is a React reserved property. It will be used by React and not set on the element.`):l.add(n));class p extends s{constructor(){super(...arguments),this.t=null}o(n){if(null!==this.t)for(const o in this.i)r(this.t,o,this.props[o],n?n[o]:void 0,a)}componentDidMount(){this.o()}componentDidUpdate(n){this.o(n)}render(){const n=this.props.l;void 0!==this.h&&this.u===n||(this.h=o=>{null===this.t&&(this.t=o),null!==n&&((n,o)=>{"function"==typeof n?n(o):n.current=o})(n,o),this.u=n});const e={ref:this.h};this.i={};for(const[n,o]of Object.entries(this.props))"__forwardedRef"!==n&&(l.has(n)?this.i[n]=o:e["className"===n?"class":n]=o);return i(o,e)}}p.displayName=null!=d?d:t.name;const c=n.forwardRef(((n,o)=>i(p,{...n,l:o},null==n?void 0:n.children)));return c.displayName=p.displayName,c},d=a(n,"nord-avatar",o.Avatar,{}),s=a(n,"nord-
|
|
6
|
+
*/const e=new Set(["children","localName","ref","style","className"]),t=new WeakMap,r=(n,o,e,r,a)=>{const d=null==a?void 0:a[o];void 0!==d?e!==r&&((n,o,e)=>{let r=t.get(n);void 0===r&&t.set(n,r=new Map);let a=r.get(o);void 0!==e?void 0===a?(r.set(o,a={handleEvent:e}),n.addEventListener(o,a)):a.handleEvent=e:void 0!==a&&(r.delete(o),n.removeEventListener(o,a))})(n,d,e):n[o]=e},a=(n,o,t,a,d)=>{const s=n.Component,i=n.createElement,l=new Set(Object.keys(null!=a?a:{}));for(const n in t.prototype)n in HTMLElement.prototype||(e.has(n)?console.warn(`${o} contains property ${n} which is a React reserved property. It will be used by React and not set on the element.`):l.add(n));class p extends s{constructor(){super(...arguments),this.t=null}o(n){if(null!==this.t)for(const o in this.i)r(this.t,o,this.props[o],n?n[o]:void 0,a)}componentDidMount(){this.o()}componentDidUpdate(n){this.o(n)}render(){const n=this.props.l;void 0!==this.h&&this.u===n||(this.h=o=>{null===this.t&&(this.t=o),null!==n&&((n,o)=>{"function"==typeof n?n(o):n.current=o})(n,o),this.u=n});const e={ref:this.h};this.i={};for(const[n,o]of Object.entries(this.props))"__forwardedRef"!==n&&(l.has(n)?this.i[n]=o:e["className"===n?"class":n]=o);return i(o,e)}}p.displayName=null!=d?d:t.name;const c=n.forwardRef(((n,o)=>i(p,{...n,l:o},null==n?void 0:n.children)));return c.displayName=p.displayName,c},d=a(n,"nord-avatar",o.Avatar,{}),s=a(n,"nord-banner",o.Banner,{}),i=a(n,"nord-button",o.Button,{}),l=a(n,"nord-badge",o.Badge,{}),p=a(n,"nord-calendar",o.Calendar,{onNordFocusDate:"nord-focus-date",onChange:"change"}),c=a(n,"nord-card",o.Card,{}),u=a(n,"nord-checkbox",o.Checkbox,{onInput:"input",onChange:"change"}),h=a(n,"nord-command-menu",o.CommandMenu,{onOpen:"open",onClose:"close",onNordSelect:"nord-select"}),g=a(n,"nord-date-picker",o.DatePicker,{onOpen:"open",onClose:"close",onChange:"change",onInput:"input"}),m=a(n,"nord-divider",o.Divider,{}),v=a(n,"nord-dropdown",o.Dropdown,{}),b=a(n,"nord-dropdown-group",o.DropdownGroup,{}),C=a(n,"nord-dropdown-item",o.DropdownItem,{}),f=a(n,"nord-empty-state",o.EmptyState,{}),y=a(n,"nord-fieldset",o.Fieldset,{}),w=a(n,"nord-header",o.Header,{}),I=a(n,"nord-icon",o.Icon,{}),N=a(n,"nord-input",o.Input,{onInput:"input",onChange:"change"}),T=a(n,"nord-layout",o.Layout,{}),k=a(n,"nord-modal",o.Modal,{onClose:"close",onCancel:"cancel"}),D=a(n,"nord-nav-group",o.NavGroup,{}),S=a(n,"nord-nav-item",o.NavItem,{onToggle:"toggle"}),E=a(n,"nord-navigation",o.Navigation,{}),x=a(n,"nord-popout",o.Popout,{onOpen:"open",onClose:"close"}),M=a(n,"nord-progress-bar",o.ProgressBar,{}),O=a(n,"nord-qrcode",o.Qrcode,{}),R=a(n,"nord-radio",o.Radio,{onInput:"input",onChange:"change"}),B=a(n,"nord-select",o.Select,{onInput:"input",onChange:"change"}),G=a(n,"nord-skeleton",o.Skeleton,{}),L=a(n,"nord-spinner",o.Spinner,{}),P=a(n,"nord-stack",o.Stack,{}),H=a(n,"nord-tab",o.Tab,{}),j=a(n,"nord-tab-group",o.TabGroup,{}),F=a(n,"nord-tab-panel",o.TabPanel,{}),$=a(n,"nord-table",o.Table,{}),_=a(n,"nord-textarea",o.Textarea,{onInput:"input",onChange:"change"}),q=a(n,"nord-toggle",o.Toggle,{onInput:"input",onChange:"change"}),A=a(n,"nord-tooltip",o.Tooltip,{}),Q=a(n,"nord-visually-hidden",o.VisuallyHidden,{}),U=a(n,"nord-toast-group",o.ToastGroup,{}),V=a(n,"nord-toast",o.Toast,{onDismiss:"dismiss"});export{d as Avatar,l as Badge,s as Banner,i as Button,p as Calendar,c as Card,u as Checkbox,h as CommandMenu,g as DatePicker,m as Divider,v as Dropdown,b as DropdownGroup,C as DropdownItem,f as EmptyState,y as Fieldset,w as Header,I as Icon,N as Input,T as Layout,k as Modal,D as NavGroup,S as NavItem,E as Navigation,x as Popout,M as ProgressBar,O as Qrcode,R as Radio,B as Select,G as Skeleton,L as Spinner,P as Stack,H as Tab,j as TabGroup,F as TabPanel,$ as Table,_ as Textarea,V as Toast,U as ToastGroup,q as Toggle,A as Tooltip,Q as VisuallyHidden};
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../node_modules/@lit-labs/react/create-component.js","../src/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=new Set([\"children\",\"localName\",\"ref\",\"style\",\"className\"]),e=new WeakMap,n=(t,n,s,o,i)=>{const l=null==i?void 0:i[n];void 0!==l?s!==o&&((t,n,s)=>{let o=e.get(t);void 0===o&&e.set(t,o=new Map);let i=o.get(n);void 0!==s?void 0===i?(o.set(n,i={handleEvent:s}),t.addEventListener(n,i)):i.handleEvent=s:void 0!==i&&(o.delete(n),t.removeEventListener(n,i))})(t,l,s):t[n]=s},s=(e,s,o,i,l)=>{const c=e.Component,r=e.createElement,d=new Set(Object.keys(null!=i?i:{}));for(const e in o.prototype)e in HTMLElement.prototype||(t.has(e)?console.warn(`${s} contains property ${e} which is a React reserved property. It will be used by React and not set on the element.`):d.add(e));class h extends c{constructor(){super(...arguments),this.t=null}o(t){if(null!==this.t)for(const e in this.i)n(this.t,e,this.props[e],t?t[e]:void 0,i)}componentDidMount(){this.o()}componentDidUpdate(t){this.o(t)}render(){const t=this.props.l;void 0!==this.h&&this.u===t||(this.h=e=>{null===this.t&&(this.t=e),null!==t&&((t,e)=>{\"function\"==typeof t?t(e):t.current=e})(t,e),this.u=t});const e={ref:this.h};this.i={};for(const[t,n]of Object.entries(this.props))\"__forwardedRef\"!==t&&(d.has(t)?this.i[t]=n:e[\"className\"===t?\"class\":t]=n);return r(s,e)}}h.displayName=null!=l?l:o.name;const a=e.forwardRef(((t,e)=>r(h,{...t,l:e},null==t?void 0:t.children)));return a.displayName=h.displayName,a};export{s as createComponent};\n//# sourceMappingURL=create-component.js.map\n","import * as React from \"react\"\nimport { createComponent } from \"@lit-labs/react\"\nimport * as Components from \"@nordhealth/components\"\n\nexport const Avatar = createComponent(React, \"nord-avatar\", Components.Avatar, {})\n\nexport const Badge = createComponent(React, \"nord-badge\", Components.Badge, {})\n\nexport const Banner = createComponent(React, \"nord-banner\", Components.Banner, {})\n\nexport const Calendar = createComponent(React, \"nord-calendar\", Components.Calendar, {\n onNordFocusDate: \"nord-focus-date\",\n onChange: \"change\",\n})\n\nexport const CommandMenu = createComponent(React, \"nord-command-menu\", Components.CommandMenu, {\n onOpen: \"open\",\n onClose: \"close\",\n onNordSelect: \"nord-select\",\n})\n\nexport const Card = createComponent(React, \"nord-card\", Components.Card, {})\n\nexport const Checkbox = createComponent(React, \"nord-checkbox\", Components.Checkbox, {\n onInput: \"input\",\n onChange: \"change\",\n})\n\nexport const Button = createComponent(React, \"nord-button\", Components.Button, {})\n\nexport const DatePicker = createComponent(React, \"nord-date-picker\", Components.DatePicker, {\n onOpen: \"open\",\n onClose: \"close\",\n onChange: \"change\",\n onInput: \"input\",\n})\n\nexport const Divider = createComponent(React, \"nord-divider\", Components.Divider, {})\n\nexport const Dropdown = createComponent(React, \"nord-dropdown\", Components.Dropdown, {})\n\nexport const DropdownGroup = createComponent(React, \"nord-dropdown-group\", Components.DropdownGroup, {})\n\nexport const DropdownItem = createComponent(React, \"nord-dropdown-item\", Components.DropdownItem, {})\n\nexport const EmptyState = createComponent(React, \"nord-empty-state\", Components.EmptyState, {})\n\nexport const Fieldset = createComponent(React, \"nord-fieldset\", Components.Fieldset, {})\n\nexport const Header = createComponent(React, \"nord-header\", Components.Header, {})\n\nexport const Icon = createComponent(React, \"nord-icon\", Components.Icon, {})\n\nexport const Input = createComponent(React, \"nord-input\", Components.Input, { onInput: \"input\", onChange: \"change\" })\n\nexport const Layout = createComponent(React, \"nord-layout\", Components.Layout, {})\n\nexport const Modal = createComponent(React, \"nord-modal\", Components.Modal, { onClose: \"close\", onCancel: \"cancel\" })\n\nexport const NavGroup = createComponent(React, \"nord-nav-group\", Components.NavGroup, {})\n\nexport const NavItem = createComponent(React, \"nord-nav-item\", Components.NavItem, { onToggle: \"toggle\" })\n\nexport const Navigation = createComponent(React, \"nord-navigation\", Components.Navigation, {})\n\nexport const Popout = createComponent(React, \"nord-popout\", Components.Popout, { onOpen: \"open\", onClose: \"close\" })\n\nexport const ProgressBar = createComponent(React, \"nord-progress-bar\", Components.ProgressBar, {})\n\nexport const Radio = createComponent(React, \"nord-radio\", Components.Radio, { onInput: \"input\", onChange: \"change\" })\n\nexport const Select = createComponent(React, \"nord-select\", Components.Select, { onInput: \"input\", onChange: \"change\" })\n\nexport const Skeleton = createComponent(React, \"nord-skeleton\", Components.Skeleton, {})\n\nexport const Spinner = createComponent(React, \"nord-spinner\", Components.Spinner, {})\n\nexport const Stack = createComponent(React, \"nord-stack\", Components.Stack, {})\n\nexport const Tab = createComponent(React, \"nord-tab\", Components.Tab, {})\n\nexport const TabGroup = createComponent(React, \"nord-tab-group\", Components.TabGroup, {})\n\nexport const TabPanel = createComponent(React, \"nord-tab-panel\", Components.TabPanel, {})\n\nexport const Table = createComponent(React, \"nord-table\", Components.Table, {})\n\nexport const Textarea = createComponent(React, \"nord-textarea\", Components.Textarea, {\n onInput: \"input\",\n onChange: \"change\",\n})\n\nexport const Toast = createComponent(React, \"nord-toast\", Components.Toast, { onDismiss: \"dismiss\" })\n\nexport const ToastGroup = createComponent(React, \"nord-toast-group\", Components.ToastGroup, {})\n\nexport const Toggle = createComponent(React, \"nord-toggle\", Components.Toggle, { onInput: \"input\", onChange: \"change\" })\n\nexport const Tooltip = createComponent(React, \"nord-tooltip\", Components.Tooltip, {})\n\nexport const VisuallyHidden = createComponent(React, \"nord-visually-hidden\", Components.VisuallyHidden, {})\n"],"names":["t","Set","e","WeakMap","n","s","o","i","l","get","set","Map","handleEvent","addEventListener","delete","removeEventListener","c","Component","r","createElement","d","Object","keys","prototype","HTMLElement","has","console","warn","add","h","constructor","super","arguments","this","props","componentDidMount","componentDidUpdate","render","u","current","ref","entries","displayName","name","a","forwardRef","children","Avatar","createComponent","React","Components","Badge","Banner","Calendar","onNordFocusDate","onChange","CommandMenu","onOpen","onClose","onNordSelect","Card","Checkbox","onInput","Button","DatePicker","Divider","Dropdown","DropdownGroup","DropdownItem","EmptyState","Fieldset","Header","Icon","Input","Layout","Modal","onCancel","NavGroup","NavItem","onToggle","Navigation","Popout","ProgressBar","Radio","Select","Skeleton","Spinner","Stack","Tab","TabGroup","TabPanel","Table","Textarea","Toast","onDismiss","ToastGroup","Toggle","Tooltip","VisuallyHidden"],"mappings":";;;;;GAKA,MAAMA,EAAE,IAAIC,IAAI,CAAC,WAAW,YAAY,MAAM,QAAQ,cAAcC,EAAE,IAAIC,QAAQC,EAAE,CAACJ,EAAEI,EAAEC,EAAEC,EAAEC,KAAK,MAAMC,EAAE,MAAMD,OAAE,EAAOA,EAAEH,QAAG,IAASI,EAAEH,IAAIC,GAAG,EAAEN,EAAEI,EAAEC,KAAK,IAAIC,EAAEJ,EAAEO,IAAIT,QAAG,IAASM,GAAGJ,EAAEQ,IAAIV,EAAEM,EAAE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,EAAO,iBAAkBC,EAAWwC,SAAU,IAEzEC,EAAQ3C,EAAgBC,EAAO,aAAcC,EAAWyC,MAAO,IAE/DC,EAAW5C,EAAgBC,EAAO,gBAAiBC,EAAW0C,SAAU,CACnF9B,QAAS,QACTP,SAAU,WAGCsC,EAAQ7C,EAAgBC,EAAO,aAAcC,EAAW2C,MAAO,CAAEC,UAAW,YAE5EC,EAAa/C,EAAgBC,EAAO,mBAAoBC,EAAW6C,WAAY,IAE/EC,EAAShD,EAAgBC,EAAO,cAAeC,EAAW8C,OAAQ,CAAElC,QAAS,QAASP,SAAU,WAEhG0C,EAAUjD,EAAgBC,EAAO,eAAgBC,EAAW+C,QAAS,IAErEC,EAAiBlD,EAAgBC,EAAO,uBAAwBC,EAAWgD,eAAgB"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../node_modules/@lit-labs/react/create-component.js","../src/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=new Set([\"children\",\"localName\",\"ref\",\"style\",\"className\"]),e=new WeakMap,n=(t,n,s,o,i)=>{const l=null==i?void 0:i[n];void 0!==l?s!==o&&((t,n,s)=>{let o=e.get(t);void 0===o&&e.set(t,o=new Map);let i=o.get(n);void 0!==s?void 0===i?(o.set(n,i={handleEvent:s}),t.addEventListener(n,i)):i.handleEvent=s:void 0!==i&&(o.delete(n),t.removeEventListener(n,i))})(t,l,s):t[n]=s},s=(e,s,o,i,l)=>{const c=e.Component,r=e.createElement,d=new Set(Object.keys(null!=i?i:{}));for(const e in o.prototype)e in HTMLElement.prototype||(t.has(e)?console.warn(`${s} contains property ${e} which is a React reserved property. It will be used by React and not set on the element.`):d.add(e));class h extends c{constructor(){super(...arguments),this.t=null}o(t){if(null!==this.t)for(const e in this.i)n(this.t,e,this.props[e],t?t[e]:void 0,i)}componentDidMount(){this.o()}componentDidUpdate(t){this.o(t)}render(){const t=this.props.l;void 0!==this.h&&this.u===t||(this.h=e=>{null===this.t&&(this.t=e),null!==t&&((t,e)=>{\"function\"==typeof t?t(e):t.current=e})(t,e),this.u=t});const e={ref:this.h};this.i={};for(const[t,n]of Object.entries(this.props))\"__forwardedRef\"!==t&&(d.has(t)?this.i[t]=n:e[\"className\"===t?\"class\":t]=n);return r(s,e)}}h.displayName=null!=l?l:o.name;const a=e.forwardRef(((t,e)=>r(h,{...t,l:e},null==t?void 0:t.children)));return a.displayName=h.displayName,a};export{s as createComponent};\n//# sourceMappingURL=create-component.js.map\n","import * as React from \"react\"\nimport { createComponent } from \"@lit-labs/react\"\nimport * as Components from \"@nordhealth/components\"\n\nexport const Avatar = createComponent(React, \"nord-avatar\", Components.Avatar, {})\n\nexport const Banner = createComponent(React, \"nord-banner\", Components.Banner, {})\n\nexport const Button = createComponent(React, \"nord-button\", Components.Button, {})\n\nexport const Badge = createComponent(React, \"nord-badge\", Components.Badge, {})\n\nexport const Calendar = createComponent(React, \"nord-calendar\", Components.Calendar, {\n onNordFocusDate: \"nord-focus-date\",\n onChange: \"change\",\n})\n\nexport const Card = createComponent(React, \"nord-card\", Components.Card, {})\n\nexport const Checkbox = createComponent(React, \"nord-checkbox\", Components.Checkbox, {\n onInput: \"input\",\n onChange: \"change\",\n})\n\nexport const CommandMenu = createComponent(React, \"nord-command-menu\", Components.CommandMenu, {\n onOpen: \"open\",\n onClose: \"close\",\n onNordSelect: \"nord-select\",\n})\n\nexport const DatePicker = createComponent(React, \"nord-date-picker\", Components.DatePicker, {\n onOpen: \"open\",\n onClose: \"close\",\n onChange: \"change\",\n onInput: \"input\",\n})\n\nexport const Divider = createComponent(React, \"nord-divider\", Components.Divider, {})\n\nexport const Dropdown = createComponent(React, \"nord-dropdown\", Components.Dropdown, {})\n\nexport const DropdownGroup = createComponent(React, \"nord-dropdown-group\", Components.DropdownGroup, {})\n\nexport const DropdownItem = createComponent(React, \"nord-dropdown-item\", Components.DropdownItem, {})\n\nexport const EmptyState = createComponent(React, \"nord-empty-state\", Components.EmptyState, {})\n\nexport const Fieldset = createComponent(React, \"nord-fieldset\", Components.Fieldset, {})\n\nexport const Header = createComponent(React, \"nord-header\", Components.Header, {})\n\nexport const Icon = createComponent(React, \"nord-icon\", Components.Icon, {})\n\nexport const Input = createComponent(React, \"nord-input\", Components.Input, { onInput: \"input\", onChange: \"change\" })\n\nexport const Layout = createComponent(React, \"nord-layout\", Components.Layout, {})\n\nexport const Modal = createComponent(React, \"nord-modal\", Components.Modal, { onClose: \"close\", onCancel: \"cancel\" })\n\nexport const NavGroup = createComponent(React, \"nord-nav-group\", Components.NavGroup, {})\n\nexport const NavItem = createComponent(React, \"nord-nav-item\", Components.NavItem, { onToggle: \"toggle\" })\n\nexport const Navigation = createComponent(React, \"nord-navigation\", Components.Navigation, {})\n\nexport const Popout = createComponent(React, \"nord-popout\", Components.Popout, { onOpen: \"open\", onClose: \"close\" })\n\nexport const ProgressBar = createComponent(React, \"nord-progress-bar\", Components.ProgressBar, {})\n\nexport const Qrcode = createComponent(React, \"nord-qrcode\", Components.Qrcode, {})\n\nexport const Radio = createComponent(React, \"nord-radio\", Components.Radio, { onInput: \"input\", onChange: \"change\" })\n\nexport const Select = createComponent(React, \"nord-select\", Components.Select, { onInput: \"input\", onChange: \"change\" })\n\nexport const Skeleton = createComponent(React, \"nord-skeleton\", Components.Skeleton, {})\n\nexport const Spinner = createComponent(React, \"nord-spinner\", Components.Spinner, {})\n\nexport const Stack = createComponent(React, \"nord-stack\", Components.Stack, {})\n\nexport const Tab = createComponent(React, \"nord-tab\", Components.Tab, {})\n\nexport const TabGroup = createComponent(React, \"nord-tab-group\", Components.TabGroup, {})\n\nexport const TabPanel = createComponent(React, \"nord-tab-panel\", Components.TabPanel, {})\n\nexport const Table = createComponent(React, \"nord-table\", Components.Table, {})\n\nexport const Textarea = createComponent(React, \"nord-textarea\", Components.Textarea, {\n onInput: \"input\",\n onChange: \"change\",\n})\n\nexport const Toggle = createComponent(React, \"nord-toggle\", Components.Toggle, { onInput: \"input\", onChange: \"change\" })\n\nexport const Tooltip = createComponent(React, \"nord-tooltip\", Components.Tooltip, {})\n\nexport const VisuallyHidden = createComponent(React, \"nord-visually-hidden\", Components.VisuallyHidden, {})\n\nexport const ToastGroup = createComponent(React, \"nord-toast-group\", Components.ToastGroup, {})\n\nexport const Toast = createComponent(React, \"nord-toast\", Components.Toast, { onDismiss: \"dismiss\" })\n"],"names":["t","Set","e","WeakMap","n","s","o","i","l","get","set","Map","handleEvent","addEventListener","delete","removeEventListener","c","Component","r","createElement","d","Object","keys","prototype","HTMLElement","has","console","warn","add","h","constructor","super","arguments","this","props","componentDidMount","componentDidUpdate","render","u","current","ref","entries","displayName","name","a","forwardRef","children","Avatar","createComponent","React","Components","Banner","Button","Badge","Calendar","onNordFocusDate","onChange","Card","Checkbox","onInput","CommandMenu","onOpen","onClose","onNordSelect","DatePicker","Divider","Dropdown","DropdownGroup","DropdownItem","EmptyState","Fieldset","Header","Icon","Input","Layout","Modal","onCancel","NavGroup","NavItem","onToggle","Navigation","Popout","ProgressBar","Qrcode","Radio","Select","Skeleton","Spinner","Stack","Tab","TabGroup","TabPanel","Table","Textarea","Toggle","Tooltip","VisuallyHidden","ToastGroup","Toast","onDismiss"],"mappings":";;;;;GAKA,MAAMA,EAAE,IAAIC,IAAI,CAAC,WAAW,YAAY,MAAM,QAAQ,cAAcC,EAAE,IAAIC,QAAQC,EAAE,CAACJ,EAAEI,EAAEC,EAAEC,EAAEC,KAAK,MAAMC,EAAE,MAAMD,OAAE,EAAOA,EAAEH,QAAG,IAASI,EAAEH,IAAIC,GAAG,EAAEN,EAAEI,EAAEC,KAAK,IAAIC,EAAEJ,EAAEO,IAAIT,QAAG,IAASM,GAAGJ,EAAEQ,IAAIV,EAAEM,EAAE,IAAIK,KAAK,IAAIJ,EAAED,EAAEG,IAAIL,QAAG,IAASC,OAAE,IAASE,GAAGD,EAAEI,IAAIN,EAAEG,EAAE,CAACK,YAAYP,IAAIL,EAAEa,iBAAiBT,EAAEG,IAAIA,EA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AgBC,EAAO,gBAAiBC,EAAW2C,SAAU,CACnFlC,QAAS,QACTH,SAAU,WAGCsC,EAAS9C,EAAgBC,EAAO,cAAeC,EAAW4C,OAAQ,CAAEnC,QAAS,QAASH,SAAU,WAEhGuC,EAAU/C,EAAgBC,EAAO,eAAgBC,EAAW6C,QAAS,IAErEC,EAAiBhD,EAAgBC,EAAO,uBAAwBC,EAAW8C,eAAgB,IAE3FC,EAAajD,EAAgBC,EAAO,mBAAoBC,EAAW+C,WAAY,IAE/EC,EAAQlD,EAAgBC,EAAO,aAAcC,EAAWgD,MAAO,CAAEC,UAAW"}
|
package/lib/next.d.ts
CHANGED
|
@@ -2,10 +2,13 @@ import React from "react";
|
|
|
2
2
|
export declare const Avatar: React.ForwardRefExoticComponent<Partial<Omit<import("@nordhealth/components").Avatar, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
3
3
|
children?: React.ReactNode;
|
|
4
4
|
} & React.RefAttributes<unknown>>;
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const Banner: React.ForwardRefExoticComponent<Partial<Omit<import("@nordhealth/components").Banner, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
} & React.RefAttributes<unknown>>;
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const Button: React.ForwardRefExoticComponent<Partial<Omit<import("@nordhealth/components").Button, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
} & React.RefAttributes<unknown>>;
|
|
11
|
+
export declare const Badge: React.ForwardRefExoticComponent<Partial<Omit<import("@nordhealth/components").Badge, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
9
12
|
children?: React.ReactNode;
|
|
10
13
|
} & React.RefAttributes<unknown>>;
|
|
11
14
|
export declare const Calendar: React.ForwardRefExoticComponent<Partial<Omit<import("@nordhealth/components").Calendar, "children">> & Partial<{
|
|
@@ -14,13 +17,6 @@ export declare const Calendar: React.ForwardRefExoticComponent<Partial<Omit<impo
|
|
|
14
17
|
}> & Omit<React.HTMLAttributes<HTMLElement>, "onChange" | "onNordFocusDate"> & {
|
|
15
18
|
children?: React.ReactNode;
|
|
16
19
|
} & React.RefAttributes<unknown>>;
|
|
17
|
-
export declare const CommandMenu: React.ForwardRefExoticComponent<Partial<Omit<import("@nordhealth/components").CommandMenu, "children">> & Partial<{
|
|
18
|
-
onOpen: (e: Event) => void;
|
|
19
|
-
onClose: (e: Event) => void;
|
|
20
|
-
onNordSelect: (e: Event) => void;
|
|
21
|
-
}> & Omit<React.HTMLAttributes<HTMLElement>, "onOpen" | "onClose" | "onNordSelect"> & {
|
|
22
|
-
children?: React.ReactNode;
|
|
23
|
-
} & React.RefAttributes<unknown>>;
|
|
24
20
|
export declare const Card: React.ForwardRefExoticComponent<Partial<Omit<import("@nordhealth/components").Card, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
25
21
|
children?: React.ReactNode;
|
|
26
22
|
} & React.RefAttributes<unknown>>;
|
|
@@ -30,7 +26,11 @@ export declare const Checkbox: React.ForwardRefExoticComponent<Partial<Omit<impo
|
|
|
30
26
|
}> & Omit<React.HTMLAttributes<HTMLElement>, "onChange" | "onInput"> & {
|
|
31
27
|
children?: React.ReactNode;
|
|
32
28
|
} & React.RefAttributes<unknown>>;
|
|
33
|
-
export declare const
|
|
29
|
+
export declare const CommandMenu: React.ForwardRefExoticComponent<Partial<Omit<import("@nordhealth/components").CommandMenu, "children">> & Partial<{
|
|
30
|
+
onOpen: (e: Event) => void;
|
|
31
|
+
onClose: (e: Event) => void;
|
|
32
|
+
onNordSelect: (e: Event) => void;
|
|
33
|
+
}> & Omit<React.HTMLAttributes<HTMLElement>, "onOpen" | "onClose" | "onNordSelect"> & {
|
|
34
34
|
children?: React.ReactNode;
|
|
35
35
|
} & React.RefAttributes<unknown>>;
|
|
36
36
|
export declare const DatePicker: React.ForwardRefExoticComponent<Partial<Omit<import("@nordhealth/components").DatePicker, "children">> & Partial<{
|
|
@@ -100,6 +100,9 @@ export declare const Popout: React.ForwardRefExoticComponent<Partial<Omit<import
|
|
|
100
100
|
export declare const ProgressBar: React.ForwardRefExoticComponent<Partial<Omit<import("@nordhealth/components").ProgressBar, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
101
101
|
children?: React.ReactNode;
|
|
102
102
|
} & React.RefAttributes<unknown>>;
|
|
103
|
+
export declare const Qrcode: React.ForwardRefExoticComponent<Partial<Omit<import("@nordhealth/components").Qrcode, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
104
|
+
children?: React.ReactNode;
|
|
105
|
+
} & React.RefAttributes<unknown>>;
|
|
103
106
|
export declare const Radio: React.ForwardRefExoticComponent<Partial<Omit<import("@nordhealth/components").Radio, "children">> & Partial<{
|
|
104
107
|
onInput: (e: Event) => void;
|
|
105
108
|
onChange: (e: Event) => void;
|
|
@@ -139,14 +142,6 @@ export declare const Textarea: React.ForwardRefExoticComponent<Partial<Omit<impo
|
|
|
139
142
|
}> & Omit<React.HTMLAttributes<HTMLElement>, "onChange" | "onInput"> & {
|
|
140
143
|
children?: React.ReactNode;
|
|
141
144
|
} & React.RefAttributes<unknown>>;
|
|
142
|
-
export declare const Toast: React.ForwardRefExoticComponent<Partial<Omit<import("@nordhealth/components").Toast, "children">> & Partial<{
|
|
143
|
-
onDismiss: (e: Event) => void;
|
|
144
|
-
}> & Omit<React.HTMLAttributes<HTMLElement>, "onDismiss"> & {
|
|
145
|
-
children?: React.ReactNode;
|
|
146
|
-
} & React.RefAttributes<unknown>>;
|
|
147
|
-
export declare const ToastGroup: React.ForwardRefExoticComponent<Partial<Omit<import("@nordhealth/components").ToastGroup, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
148
|
-
children?: React.ReactNode;
|
|
149
|
-
} & React.RefAttributes<unknown>>;
|
|
150
145
|
export declare const Toggle: React.ForwardRefExoticComponent<Partial<Omit<import("@nordhealth/components").Toggle, "children">> & Partial<{
|
|
151
146
|
onInput: (e: Event) => void;
|
|
152
147
|
onChange: (e: Event) => void;
|
|
@@ -159,3 +154,11 @@ export declare const Tooltip: React.ForwardRefExoticComponent<Partial<Omit<impor
|
|
|
159
154
|
export declare const VisuallyHidden: React.ForwardRefExoticComponent<Partial<Omit<import("@nordhealth/components").VisuallyHidden, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
160
155
|
children?: React.ReactNode;
|
|
161
156
|
} & React.RefAttributes<unknown>>;
|
|
157
|
+
export declare const ToastGroup: React.ForwardRefExoticComponent<Partial<Omit<import("@nordhealth/components").ToastGroup, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
158
|
+
children?: React.ReactNode;
|
|
159
|
+
} & React.RefAttributes<unknown>>;
|
|
160
|
+
export declare const Toast: React.ForwardRefExoticComponent<Partial<Omit<import("@nordhealth/components").Toast, "children">> & Partial<{
|
|
161
|
+
onDismiss: (e: Event) => void;
|
|
162
|
+
}> & Omit<React.HTMLAttributes<HTMLElement>, "onDismiss"> & {
|
|
163
|
+
children?: React.ReactNode;
|
|
164
|
+
} & React.RefAttributes<unknown>>;
|
package/lib/next.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"react";import
|
|
1
|
+
import e from"react";import r from"next/dynamic";function a(a){const o=r((()=>import("./index.js").then((r=>{const o=r[a],t=({innerRef:r,...a})=>e.createElement(o,{ref:r,...a});return t.displayName=`Wrapped${a}`,t}))),{ssr:!1}),t=e.forwardRef(((r,a)=>e.createElement(o,{...r,innerRef:a})));return t.displayName=`Forwarded${a}`,t}const o=a("Avatar"),t=a("Banner"),n=a("Button"),d=a("Badge"),i=a("Calendar"),p=a("Card"),l=a("Checkbox"),m=a("CommandMenu"),c=a("DatePicker"),s=a("Divider"),u=a("Dropdown"),T=a("DropdownGroup"),f=a("DropdownItem"),y=a("EmptyState"),b=a("Fieldset"),g=a("Header"),v=a("Icon"),w=a("Input"),x=a("Layout"),D=a("Modal"),N=a("NavGroup"),S=a("NavItem"),k=a("Navigation"),B=a("Popout"),C=a("ProgressBar"),G=a("Qrcode"),I=a("Radio"),P=a("Select"),R=a("Skeleton"),E=a("Spinner"),h=a("Stack"),F=a("Tab"),H=a("TabGroup"),M=a("TabPanel"),$=a("Table"),j=a("Textarea"),A=a("Toggle"),L=a("Tooltip"),Q=a("VisuallyHidden"),V=a("ToastGroup"),W=a("Toast");export{o as Avatar,d as Badge,t as Banner,n as Button,i as Calendar,p as Card,l as Checkbox,m as CommandMenu,c as DatePicker,s as Divider,u as Dropdown,T as DropdownGroup,f as DropdownItem,y as EmptyState,b as Fieldset,g as Header,v as Icon,w as Input,x as Layout,D as Modal,N as NavGroup,S as NavItem,k as Navigation,B as Popout,C as ProgressBar,G as Qrcode,I as Radio,P as Select,R as Skeleton,E as Spinner,h as Stack,F as Tab,H as TabGroup,M as TabPanel,$ as Table,j as Textarea,W as Toast,V as ToastGroup,A as Toggle,L as Tooltip,Q as VisuallyHidden};
|
|
2
2
|
//# sourceMappingURL=next.js.map
|
package/lib/next.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next.js","sources":["../src/next.tsx"],"sourcesContent":["import React from \"react\"\nimport dynamic from \"next/dynamic\"\n\ntype ComponentsModule = typeof import(\"./index.js\")\n\nfunction createLazy<K extends keyof ComponentsModule, T extends ComponentsModule[K]>(component: K) {\n const Wrapped = dynamic(\n () =>\n import(\"./index.js\").then(module => {\n const Component = module[component] as any\n\n // @ts-expect-error innerRef is unknown\n const Wrapped = ({ innerRef, ...props }) => <Component ref={innerRef} {...props} />\n Wrapped.displayName = `Wrapped${component}`\n\n return Wrapped as any\n }),\n { ssr: false }\n )\n\n // @ts-expect-error innerRef is unknown\n const Forwarded = React.forwardRef((props, ref) => <Wrapped {...props} innerRef={ref} />)\n Forwarded.displayName = `Forwarded${component}`\n\n return Forwarded as T\n}\n\nexport const Avatar = createLazy(\"Avatar\")\nexport const
|
|
1
|
+
{"version":3,"file":"next.js","sources":["../src/next.tsx"],"sourcesContent":["import React from \"react\"\nimport dynamic from \"next/dynamic\"\n\ntype ComponentsModule = typeof import(\"./index.js\")\n\nfunction createLazy<K extends keyof ComponentsModule, T extends ComponentsModule[K]>(component: K) {\n const Wrapped = dynamic(\n () =>\n import(\"./index.js\").then(module => {\n const Component = module[component] as any\n\n // @ts-expect-error innerRef is unknown\n const Wrapped = ({ innerRef, ...props }) => <Component ref={innerRef} {...props} />\n Wrapped.displayName = `Wrapped${component}`\n\n return Wrapped as any\n }),\n { ssr: false }\n )\n\n // @ts-expect-error innerRef is unknown\n const Forwarded = React.forwardRef((props, ref) => <Wrapped {...props} innerRef={ref} />)\n Forwarded.displayName = `Forwarded${component}`\n\n return Forwarded as T\n}\n\nexport const Avatar = createLazy(\"Avatar\")\nexport const Banner = createLazy(\"Banner\")\nexport const Button = createLazy(\"Button\")\nexport const Badge = createLazy(\"Badge\")\nexport const Calendar = createLazy(\"Calendar\")\nexport const Card = createLazy(\"Card\")\nexport const Checkbox = createLazy(\"Checkbox\")\nexport const CommandMenu = createLazy(\"CommandMenu\")\nexport const DatePicker = createLazy(\"DatePicker\")\nexport const Divider = createLazy(\"Divider\")\nexport const Dropdown = createLazy(\"Dropdown\")\nexport const DropdownGroup = createLazy(\"DropdownGroup\")\nexport const DropdownItem = createLazy(\"DropdownItem\")\nexport const EmptyState = createLazy(\"EmptyState\")\nexport const Fieldset = createLazy(\"Fieldset\")\nexport const Header = createLazy(\"Header\")\nexport const Icon = createLazy(\"Icon\")\nexport const Input = createLazy(\"Input\")\nexport const Layout = createLazy(\"Layout\")\nexport const Modal = createLazy(\"Modal\")\nexport const NavGroup = createLazy(\"NavGroup\")\nexport const NavItem = createLazy(\"NavItem\")\nexport const Navigation = createLazy(\"Navigation\")\nexport const Popout = createLazy(\"Popout\")\nexport const ProgressBar = createLazy(\"ProgressBar\")\nexport const Qrcode = createLazy(\"Qrcode\")\nexport const Radio = createLazy(\"Radio\")\nexport const Select = createLazy(\"Select\")\nexport const Skeleton = createLazy(\"Skeleton\")\nexport const Spinner = createLazy(\"Spinner\")\nexport const Stack = createLazy(\"Stack\")\nexport const Tab = createLazy(\"Tab\")\nexport const TabGroup = createLazy(\"TabGroup\")\nexport const TabPanel = createLazy(\"TabPanel\")\nexport const Table = createLazy(\"Table\")\nexport const Textarea = createLazy(\"Textarea\")\nexport const Toggle = createLazy(\"Toggle\")\nexport const Tooltip = createLazy(\"Tooltip\")\nexport const VisuallyHidden = createLazy(\"VisuallyHidden\")\nexport const ToastGroup = createLazy(\"ToastGroup\")\nexport const Toast = createLazy(\"Toast\")\n"],"names":["createLazy","component","Wrapped","dynamic","import","then","module","Component","innerRef","props","React","ref","displayName","ssr","Forwarded","forwardRef","Avatar","Banner","Button","Badge","Calendar","Card","Checkbox","CommandMenu","DatePicker","Divider","Dropdown","DropdownGroup","DropdownItem","EmptyState","Fieldset","Header","Icon","Input","Layout","Modal","NavGroup","NavItem","Navigation","Popout","ProgressBar","Qrcode","Radio","Select","Skeleton","Spinner","Stack","Tab","TabGroup","TabPanel","Table","Textarea","Toggle","Tooltip","VisuallyHidden","ToastGroup","Toast"],"mappings":"iDAKA,SAASA,EAA4EC,GACnF,MAAMC,EAAUC,GACd,IACEC,OAAO,cAAcC,MAAKC,IACxB,MAAMC,EAAYD,EAAOL,GAGnBC,EAAU,EAAGM,cAAaC,KAAYC,gBAACH,GAAUI,IAAKH,KAAcC,IAG1E,OAFAP,EAAQU,YAAc,UAAUX,IAEzBC,MAEX,CAAEW,KAAK,IAIHC,EAAYJ,EAAMK,YAAW,CAACN,EAAOE,IAAQD,gBAACR,MAAYO,EAAOD,SAAUG,MAGjF,OAFAG,EAAUF,YAAc,YAAYX,IAE7Ba,QAGIE,EAAShB,EAAW,UACpBiB,EAASjB,EAAW,UACpBkB,EAASlB,EAAW,UACpBmB,EAAQnB,EAAW,SACnBoB,EAAWpB,EAAW,YACtBqB,EAAOrB,EAAW,QAClBsB,EAAWtB,EAAW,YACtBuB,EAAcvB,EAAW,eACzBwB,EAAaxB,EAAW,cACxByB,EAAUzB,EAAW,WACrB0B,EAAW1B,EAAW,YACtB2B,EAAgB3B,EAAW,iBAC3B4B,EAAe5B,EAAW,gBAC1B6B,EAAa7B,EAAW,cACxB8B,EAAW9B,EAAW,YACtB+B,EAAS/B,EAAW,UACpBgC,EAAOhC,EAAW,QAClBiC,EAAQjC,EAAW,SACnBkC,EAASlC,EAAW,UACpBmC,EAAQnC,EAAW,SACnBoC,EAAWpC,EAAW,YACtBqC,EAAUrC,EAAW,WACrBsC,EAAatC,EAAW,cACxBuC,EAASvC,EAAW,UACpBwC,EAAcxC,EAAW,eACzByC,EAASzC,EAAW,UACpB0C,EAAQ1C,EAAW,SACnB2C,EAAS3C,EAAW,UACpB4C,EAAW5C,EAAW,YACtB6C,EAAU7C,EAAW,WACrB8C,EAAQ9C,EAAW,SACnB+C,EAAM/C,EAAW,OACjBgD,EAAWhD,EAAW,YACtBiD,EAAWjD,EAAW,YACtBkD,EAAQlD,EAAW,SACnBmD,EAAWnD,EAAW,YACtBoD,EAASpD,EAAW,UACpBqD,EAAUrD,EAAW,WACrBsD,EAAiBtD,EAAW,kBAC5BuD,EAAavD,EAAW,cACxBwD,EAAQxD,EAAW"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nordhealth/react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"description": "This package includes react wrappers for Nord Design System's web components",
|
|
5
5
|
"author": "Nordhealth <support@nordhealth.design>",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"homepage": "https://github.com/nordhealth/design-system#readme",
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@lit-labs/react": "1.0.4",
|
|
31
|
-
"@nordhealth/components": "^1.
|
|
31
|
+
"@nordhealth/components": "^1.11.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"react": ">=17.0.2"
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"rollup-plugin-summary": "1.3.0",
|
|
44
44
|
"rollup-plugin-terser": "7.0.2"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "807c6fb3a4723f457dd1cba5123efd2b7ba4a665"
|
|
47
47
|
}
|