@nordhealth/react 1.6.1 → 1.7.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 +24 -12
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/next.d.ts +24 -12
- package/lib/next.js +1 -1
- package/lib/next.js.map +1 -1
- package/package.json +3 -3
package/lib/index.d.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as Components from "@nordhealth/components";
|
|
3
|
-
export declare const Avatar: React.ForwardRefExoticComponent<Partial<Omit<Components.Avatar, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
} & React.RefAttributes<unknown>>;
|
|
6
3
|
export declare const Button: React.ForwardRefExoticComponent<Partial<Omit<Components.Button, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
7
4
|
children?: React.ReactNode;
|
|
8
5
|
} & React.RefAttributes<unknown>>;
|
|
@@ -12,15 +9,18 @@ export declare const Banner: React.ForwardRefExoticComponent<Partial<Omit<Compon
|
|
|
12
9
|
export declare const Badge: React.ForwardRefExoticComponent<Partial<Omit<Components.Badge, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
13
10
|
children?: React.ReactNode;
|
|
14
11
|
} & React.RefAttributes<unknown>>;
|
|
12
|
+
export declare const Avatar: React.ForwardRefExoticComponent<Partial<Omit<Components.Avatar, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
} & React.RefAttributes<unknown>>;
|
|
15
|
+
export declare const Card: React.ForwardRefExoticComponent<Partial<Omit<Components.Card, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
} & React.RefAttributes<unknown>>;
|
|
15
18
|
export declare const Calendar: React.ForwardRefExoticComponent<Partial<Omit<Components.Calendar, "children">> & Partial<{
|
|
16
19
|
onNordFocusDate: (e: Event) => void;
|
|
17
20
|
onChange: (e: Event) => void;
|
|
18
21
|
}> & Omit<React.HTMLAttributes<HTMLElement>, "onChange" | "onNordFocusDate"> & {
|
|
19
22
|
children?: React.ReactNode;
|
|
20
23
|
} & React.RefAttributes<unknown>>;
|
|
21
|
-
export declare const Card: React.ForwardRefExoticComponent<Partial<Omit<Components.Card, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
22
|
-
children?: React.ReactNode;
|
|
23
|
-
} & React.RefAttributes<unknown>>;
|
|
24
24
|
export declare const Checkbox: React.ForwardRefExoticComponent<Partial<Omit<Components.Checkbox, "children">> & Partial<{
|
|
25
25
|
onInput: (e: Event) => void;
|
|
26
26
|
onChange: (e: Event) => void;
|
|
@@ -110,12 +110,24 @@ export declare const Select: React.ForwardRefExoticComponent<Partial<Omit<Compon
|
|
|
110
110
|
}> & Omit<React.HTMLAttributes<HTMLElement>, "onChange" | "onInput"> & {
|
|
111
111
|
children?: React.ReactNode;
|
|
112
112
|
} & React.RefAttributes<unknown>>;
|
|
113
|
+
export declare const Skeleton: React.ForwardRefExoticComponent<Partial<Omit<Components.Skeleton, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
114
|
+
children?: React.ReactNode;
|
|
115
|
+
} & React.RefAttributes<unknown>>;
|
|
113
116
|
export declare const Spinner: React.ForwardRefExoticComponent<Partial<Omit<Components.Spinner, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
114
117
|
children?: React.ReactNode;
|
|
115
118
|
} & React.RefAttributes<unknown>>;
|
|
116
119
|
export declare const Stack: React.ForwardRefExoticComponent<Partial<Omit<Components.Stack, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
117
120
|
children?: React.ReactNode;
|
|
118
121
|
} & React.RefAttributes<unknown>>;
|
|
122
|
+
export declare const Tab: React.ForwardRefExoticComponent<Partial<Omit<Components.Tab, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
123
|
+
children?: React.ReactNode;
|
|
124
|
+
} & React.RefAttributes<unknown>>;
|
|
125
|
+
export declare const TabGroup: React.ForwardRefExoticComponent<Partial<Omit<Components.TabGroup, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
126
|
+
children?: React.ReactNode;
|
|
127
|
+
} & React.RefAttributes<unknown>>;
|
|
128
|
+
export declare const TabPanel: React.ForwardRefExoticComponent<Partial<Omit<Components.TabPanel, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
129
|
+
children?: React.ReactNode;
|
|
130
|
+
} & React.RefAttributes<unknown>>;
|
|
119
131
|
export declare const Table: React.ForwardRefExoticComponent<Partial<Omit<Components.Table, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
120
132
|
children?: React.ReactNode;
|
|
121
133
|
} & React.RefAttributes<unknown>>;
|
|
@@ -125,15 +137,15 @@ export declare const Textarea: React.ForwardRefExoticComponent<Partial<Omit<Comp
|
|
|
125
137
|
}> & Omit<React.HTMLAttributes<HTMLElement>, "onChange" | "onInput"> & {
|
|
126
138
|
children?: React.ReactNode;
|
|
127
139
|
} & React.RefAttributes<unknown>>;
|
|
128
|
-
export declare const Tooltip: React.ForwardRefExoticComponent<Partial<Omit<Components.Tooltip, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
129
|
-
children?: React.ReactNode;
|
|
130
|
-
} & React.RefAttributes<unknown>>;
|
|
131
|
-
export declare const VisuallyHidden: React.ForwardRefExoticComponent<Partial<Omit<Components.VisuallyHidden, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
132
|
-
children?: React.ReactNode;
|
|
133
|
-
} & React.RefAttributes<unknown>>;
|
|
134
140
|
export declare const Toggle: React.ForwardRefExoticComponent<Partial<Omit<Components.Toggle, "children">> & Partial<{
|
|
135
141
|
onInput: (e: Event) => void;
|
|
136
142
|
onChange: (e: Event) => void;
|
|
137
143
|
}> & Omit<React.HTMLAttributes<HTMLElement>, "onChange" | "onInput"> & {
|
|
138
144
|
children?: React.ReactNode;
|
|
139
145
|
} & React.RefAttributes<unknown>>;
|
|
146
|
+
export declare const Tooltip: React.ForwardRefExoticComponent<Partial<Omit<Components.Tooltip, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
147
|
+
children?: React.ReactNode;
|
|
148
|
+
} & React.RefAttributes<unknown>>;
|
|
149
|
+
export declare const VisuallyHidden: React.ForwardRefExoticComponent<Partial<Omit<Components.VisuallyHidden, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
150
|
+
children?: React.ReactNode;
|
|
151
|
+
} & 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-
|
|
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-button",o.Button,{}),s=a(n,"nord-banner",o.Banner,{}),i=a(n,"nord-badge",o.Badge,{}),l=a(n,"nord-avatar",o.Avatar,{}),p=a(n,"nord-card",o.Card,{}),c=a(n,"nord-calendar",o.Calendar,{onNordFocusDate:"nord-focus-date",onChange:"change"}),h=a(n,"nord-checkbox",o.Checkbox,{onInput:"input",onChange:"change"}),u=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-dropdown",o.Dropdown,{}),v=a(n,"nord-dropdown-group",o.DropdownGroup,{}),b=a(n,"nord-dropdown-item",o.DropdownItem,{}),C=a(n,"nord-empty-state",o.EmptyState,{}),f=a(n,"nord-fieldset",o.Fieldset,{}),y=a(n,"nord-header",o.Header,{}),w=a(n,"nord-icon",o.Icon,{}),I=a(n,"nord-input",o.Input,{onInput:"input",onChange:"change"}),N=a(n,"nord-layout",o.Layout,{}),k=a(n,"nord-modal",o.Modal,{onClose:"close",onCancel:"cancel"}),T=a(n,"nord-nav-group",o.NavGroup,{}),S=a(n,"nord-nav-item",o.NavItem,{onToggle:"toggle"}),D=a(n,"nord-navigation",o.Navigation,{}),E=a(n,"nord-popout",o.Popout,{onOpen:"open",onClose:"close"}),x=a(n,"nord-progress-bar",o.ProgressBar,{}),M=a(n,"nord-radio",o.Radio,{onInput:"input",onChange:"change"}),O=a(n,"nord-select",o.Select,{onInput:"input",onChange:"change"}),R=a(n,"nord-skeleton",o.Skeleton,{}),B=a(n,"nord-spinner",o.Spinner,{}),L=a(n,"nord-stack",o.Stack,{}),P=a(n,"nord-tab",o.Tab,{}),G=a(n,"nord-tab-group",o.TabGroup,{}),H=a(n,"nord-tab-panel",o.TabPanel,{}),j=a(n,"nord-table",o.Table,{}),F=a(n,"nord-textarea",o.Textarea,{onInput:"input",onChange:"change"}),$=a(n,"nord-toggle",o.Toggle,{onInput:"input",onChange:"change"}),_=a(n,"nord-tooltip",o.Tooltip,{}),A=a(n,"nord-visually-hidden",o.VisuallyHidden,{});export{l as Avatar,i as Badge,s as Banner,d as Button,c as Calendar,p as Card,h as Checkbox,u as CommandMenu,g as DatePicker,m as Dropdown,v as DropdownGroup,b as DropdownItem,C as EmptyState,f as Fieldset,y as Header,w as Icon,I as Input,N as Layout,k as Modal,T as NavGroup,S as NavItem,D as Navigation,E as Popout,x as ProgressBar,M as Radio,O as Select,R as Skeleton,B as Spinner,L as Stack,P as Tab,G as TabGroup,H as TabPanel,j as Table,F as Textarea,$ as Toggle,_ as Tooltip,A 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 Button = createComponent(React, \"nord-button\", Components.Button, {})\n\nexport const Banner = createComponent(React, \"nord-banner\", Components.Banner, {})\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 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 Spinner = createComponent(React, \"nord-spinner\", Components.Spinner, {})\n\nexport const Stack = createComponent(React, \"nord-stack\", Components.Stack, {})\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 Tooltip = createComponent(React, \"nord-tooltip\", Components.Tooltip, {})\n\nexport const VisuallyHidden = createComponent(React, \"nord-visually-hidden\", Components.VisuallyHidden, {})\n\nexport const Toggle = createComponent(React, \"nord-toggle\", Components.Toggle, { onInput: \"input\", onChange: \"change\" })\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","Button","Banner","Badge","Calendar","onNordFocusDate","onChange","Card","Checkbox","onInput","CommandMenu","onOpen","onClose","onNordSelect","DatePicker","Dropdown","DropdownGroup","DropdownItem","EmptyState","Fieldset","Header","Icon","Input","Layout","Modal","onCancel","NavGroup","NavItem","onToggle","Navigation","Popout","ProgressBar","Radio","Select","Spinner","Stack","Table","Textarea","Tooltip","VisuallyHidden","Toggle"],"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,EAAEK,YAAYP,OAAE,IAASE,IAAID,EAAEQ,OAAOV,GAAGJ,EAAEe,oBAAoBX,EAAEG,KAApN,CAA0NP,EAAEQ,EAAEH,GAAGL,EAAEI,GAAGC,GAAGA,EAAE,CAACH,EAAEG,EAAEC,EAAEC,EAAEC,KAAK,MAAMQ,EAAEd,EAAEe,UAAUC,EAAEhB,EAAEiB,cAAcC,EAAE,IAAInB,IAAIoB,OAAOC,KAAK,MAAMf,EAAEA,EAAE,KAAK,IAAI,MAAML,KAAKI,EAAEiB,UAAUrB,KAAKsB,YAAYD,YAAYvB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B,QAAS,CAAEC,SAAU,WAElFC,EAAa/B,EAAgBC,EAAO,kBAAmBC,EAAW6B,WAAY,IAE9EC,EAAShC,EAAgBC,EAAO,cAAeC,EAAW8B,OAAQ,CAAEnB,OAAQ,OAAQC,QAAS,UAE7FmB,EAAcjC,EAAgBC,EAAO,oBAAqBC,EAAW+B,YAAa,IAElFC,EAAQlC,EAAgBC,EAAO,aAAcC,EAAWgC,MAAO,CAAEvB,QAAS,QAASH,SAAU,WAE7F2B,EAASnC,EAAgBC,EAAO,cAAeC,EAAWiC,OAAQ,CAAExB,QAAS,QAASH,SAAU,WAEhG4B,EAAUpC,EAAgBC,EAAO,eAAgBC,EAAWkC,QAAS,IAErEC,EAAQrC,EAAgBC,EAAO,aAAcC,EAAWmC,MAAO,IAE/DC,EAAQtC,EAAgBC,EAAO,aAAcC,EAAWoC,MAAO,IAE/DC,EAAWvC,EAAgBC,EAAO,gBAAiBC,EAAWqC,SAAU,CACnF5B,QAAS,QACTH,SAAU,WAGCgC,EAAUxC,EAAgBC,EAAO,eAAgBC,EAAWsC,QAAS,IAErEC,EAAiBzC,EAAgBC,EAAO,uBAAwBC,EAAWuC,eAAgB,IAE3FC,EAAS1C,EAAgBC,EAAO,cAAeC,EAAWwC,OAAQ,CAAE/B,QAAS,QAASH,SAAU"}
|
|
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 Button = createComponent(React, \"nord-button\", Components.Button, {})\n\nexport const Banner = createComponent(React, \"nord-banner\", Components.Banner, {})\n\nexport const Badge = createComponent(React, \"nord-badge\", Components.Badge, {})\n\nexport const Avatar = createComponent(React, \"nord-avatar\", Components.Avatar, {})\n\nexport const Card = createComponent(React, \"nord-card\", Components.Card, {})\n\nexport const Calendar = createComponent(React, \"nord-calendar\", Components.Calendar, {\n onNordFocusDate: \"nord-focus-date\",\n onChange: \"change\",\n})\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 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 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","Button","createComponent","React","Components","Banner","Badge","Avatar","Card","Calendar","onNordFocusDate","onChange","Checkbox","onInput","CommandMenu","onOpen","onClose","onNordSelect","DatePicker","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","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,IAAIK,KAAK,IAAIJ,EAAED,EAAEG,IAAIL,QAAG,IAASC,OAAE,IAASE,GAA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C,EAAWyC,SAAU,CACnFhC,QAAS,QACTF,SAAU,WAGCmC,EAAS5C,EAAgBC,EAAO,cAAeC,EAAW0C,OAAQ,CAAEjC,QAAS,QAASF,SAAU,WAEhGoC,EAAU7C,EAAgBC,EAAO,eAAgBC,EAAW2C,QAAS,IAErEC,EAAiB9C,EAAgBC,EAAO,uBAAwBC,EAAW4C,eAAgB"}
|
package/lib/next.d.ts
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export declare const Avatar: React.ForwardRefExoticComponent<Partial<Omit<import("@nordhealth/components").Avatar, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
} & React.RefAttributes<unknown>>;
|
|
5
2
|
export declare const Button: React.ForwardRefExoticComponent<Partial<Omit<import("@nordhealth/components").Button, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
6
3
|
children?: React.ReactNode;
|
|
7
4
|
} & React.RefAttributes<unknown>>;
|
|
@@ -11,15 +8,18 @@ export declare const Banner: React.ForwardRefExoticComponent<Partial<Omit<import
|
|
|
11
8
|
export declare const Badge: React.ForwardRefExoticComponent<Partial<Omit<import("@nordhealth/components").Badge, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
12
9
|
children?: React.ReactNode;
|
|
13
10
|
} & React.RefAttributes<unknown>>;
|
|
11
|
+
export declare const Avatar: React.ForwardRefExoticComponent<Partial<Omit<import("@nordhealth/components").Avatar, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
} & React.RefAttributes<unknown>>;
|
|
14
|
+
export declare const Card: React.ForwardRefExoticComponent<Partial<Omit<import("@nordhealth/components").Card, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
} & React.RefAttributes<unknown>>;
|
|
14
17
|
export declare const Calendar: React.ForwardRefExoticComponent<Partial<Omit<import("@nordhealth/components").Calendar, "children">> & Partial<{
|
|
15
18
|
onNordFocusDate: (e: Event) => void;
|
|
16
19
|
onChange: (e: Event) => void;
|
|
17
20
|
}> & Omit<React.HTMLAttributes<HTMLElement>, "onChange" | "onNordFocusDate"> & {
|
|
18
21
|
children?: React.ReactNode;
|
|
19
22
|
} & React.RefAttributes<unknown>>;
|
|
20
|
-
export declare const Card: React.ForwardRefExoticComponent<Partial<Omit<import("@nordhealth/components").Card, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
21
|
-
children?: React.ReactNode;
|
|
22
|
-
} & React.RefAttributes<unknown>>;
|
|
23
23
|
export declare const Checkbox: React.ForwardRefExoticComponent<Partial<Omit<import("@nordhealth/components").Checkbox, "children">> & Partial<{
|
|
24
24
|
onInput: (e: Event) => void;
|
|
25
25
|
onChange: (e: Event) => void;
|
|
@@ -109,12 +109,24 @@ export declare const Select: React.ForwardRefExoticComponent<Partial<Omit<import
|
|
|
109
109
|
}> & Omit<React.HTMLAttributes<HTMLElement>, "onChange" | "onInput"> & {
|
|
110
110
|
children?: React.ReactNode;
|
|
111
111
|
} & React.RefAttributes<unknown>>;
|
|
112
|
+
export declare const Skeleton: React.ForwardRefExoticComponent<Partial<Omit<import("@nordhealth/components").Skeleton, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
113
|
+
children?: React.ReactNode;
|
|
114
|
+
} & React.RefAttributes<unknown>>;
|
|
112
115
|
export declare const Spinner: React.ForwardRefExoticComponent<Partial<Omit<import("@nordhealth/components").Spinner, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
113
116
|
children?: React.ReactNode;
|
|
114
117
|
} & React.RefAttributes<unknown>>;
|
|
115
118
|
export declare const Stack: React.ForwardRefExoticComponent<Partial<Omit<import("@nordhealth/components").Stack, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
116
119
|
children?: React.ReactNode;
|
|
117
120
|
} & React.RefAttributes<unknown>>;
|
|
121
|
+
export declare const Tab: React.ForwardRefExoticComponent<Partial<Omit<import("@nordhealth/components").Tab, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
122
|
+
children?: React.ReactNode;
|
|
123
|
+
} & React.RefAttributes<unknown>>;
|
|
124
|
+
export declare const TabGroup: React.ForwardRefExoticComponent<Partial<Omit<import("@nordhealth/components").TabGroup, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
125
|
+
children?: React.ReactNode;
|
|
126
|
+
} & React.RefAttributes<unknown>>;
|
|
127
|
+
export declare const TabPanel: React.ForwardRefExoticComponent<Partial<Omit<import("@nordhealth/components").TabPanel, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
128
|
+
children?: React.ReactNode;
|
|
129
|
+
} & React.RefAttributes<unknown>>;
|
|
118
130
|
export declare const Table: React.ForwardRefExoticComponent<Partial<Omit<import("@nordhealth/components").Table, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
119
131
|
children?: React.ReactNode;
|
|
120
132
|
} & React.RefAttributes<unknown>>;
|
|
@@ -124,15 +136,15 @@ export declare const Textarea: React.ForwardRefExoticComponent<Partial<Omit<impo
|
|
|
124
136
|
}> & Omit<React.HTMLAttributes<HTMLElement>, "onChange" | "onInput"> & {
|
|
125
137
|
children?: React.ReactNode;
|
|
126
138
|
} & React.RefAttributes<unknown>>;
|
|
127
|
-
export declare const Tooltip: React.ForwardRefExoticComponent<Partial<Omit<import("@nordhealth/components").Tooltip, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
128
|
-
children?: React.ReactNode;
|
|
129
|
-
} & React.RefAttributes<unknown>>;
|
|
130
|
-
export declare const VisuallyHidden: React.ForwardRefExoticComponent<Partial<Omit<import("@nordhealth/components").VisuallyHidden, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
131
|
-
children?: React.ReactNode;
|
|
132
|
-
} & React.RefAttributes<unknown>>;
|
|
133
139
|
export declare const Toggle: React.ForwardRefExoticComponent<Partial<Omit<import("@nordhealth/components").Toggle, "children">> & Partial<{
|
|
134
140
|
onInput: (e: Event) => void;
|
|
135
141
|
onChange: (e: Event) => void;
|
|
136
142
|
}> & Omit<React.HTMLAttributes<HTMLElement>, "onChange" | "onInput"> & {
|
|
137
143
|
children?: React.ReactNode;
|
|
138
144
|
} & React.RefAttributes<unknown>>;
|
|
145
|
+
export declare const Tooltip: React.ForwardRefExoticComponent<Partial<Omit<import("@nordhealth/components").Tooltip, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
146
|
+
children?: React.ReactNode;
|
|
147
|
+
} & React.RefAttributes<unknown>>;
|
|
148
|
+
export declare const VisuallyHidden: React.ForwardRefExoticComponent<Partial<Omit<import("@nordhealth/components").VisuallyHidden, "children">> & Partial<{}> & Omit<React.HTMLAttributes<HTMLElement>, never> & {
|
|
149
|
+
children?: React.ReactNode;
|
|
150
|
+
} & React.RefAttributes<unknown>>;
|
package/lib/next.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"react";import
|
|
1
|
+
import e from"react";import a from"next/dynamic";function r(r){const o=a((()=>import("./index.js").then((a=>{const o=a[r],t=({innerRef:a,...r})=>e.createElement(o,{ref:a,...r});return t.displayName=`Wrapped${r}`,t}))),{ssr:!1}),t=e.forwardRef(((a,r)=>e.createElement(o,{...a,innerRef:r})));return t.displayName=`Forwarded${r}`,t}const o=r("Button"),t=r("Banner"),n=r("Badge"),d=r("Avatar"),i=r("Card"),p=r("Calendar"),l=r("Checkbox"),m=r("CommandMenu"),c=r("DatePicker"),s=r("Dropdown"),u=r("DropdownGroup"),f=r("DropdownItem"),T=r("EmptyState"),y=r("Fieldset"),b=r("Header"),g=r("Icon"),w=r("Input"),x=r("Layout"),N=r("Modal"),S=r("NavGroup"),k=r("NavItem"),v=r("Navigation"),B=r("Popout"),C=r("ProgressBar"),D=r("Radio"),I=r("Select"),P=r("Skeleton"),R=r("Spinner"),E=r("Stack"),G=r("Tab"),h=r("TabGroup"),F=r("TabPanel"),H=r("Table"),M=r("Textarea"),$=r("Toggle"),j=r("Tooltip"),A=r("VisuallyHidden");export{d as Avatar,n as Badge,t as Banner,o as Button,p as Calendar,i as Card,l as Checkbox,m as CommandMenu,c as DatePicker,s as Dropdown,u as DropdownGroup,f as DropdownItem,T as EmptyState,y as Fieldset,b as Header,g as Icon,w as Input,x as Layout,N as Modal,S as NavGroup,k as NavItem,v as Navigation,B as Popout,C as ProgressBar,D as Radio,I as Select,P as Skeleton,R as Spinner,E as Stack,G as Tab,h as TabGroup,F as TabPanel,H as Table,M as Textarea,$ as Toggle,j as Tooltip,A 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
|
|
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 Button = createLazy(\"Button\")\nexport const Banner = createLazy(\"Banner\")\nexport const Badge = createLazy(\"Badge\")\nexport const Avatar = createLazy(\"Avatar\")\nexport const Card = createLazy(\"Card\")\nexport const Calendar = createLazy(\"Calendar\")\nexport const Checkbox = createLazy(\"Checkbox\")\nexport const CommandMenu = createLazy(\"CommandMenu\")\nexport const DatePicker = createLazy(\"DatePicker\")\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 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\")\n"],"names":["createLazy","component","Wrapped","dynamic","import","then","module","Component","innerRef","props","React","ref","displayName","ssr","Forwarded","forwardRef","Button","Banner","Badge","Avatar","Card","Calendar","Checkbox","CommandMenu","DatePicker","Dropdown","DropdownGroup","DropdownItem","EmptyState","Fieldset","Header","Icon","Input","Layout","Modal","NavGroup","NavItem","Navigation","Popout","ProgressBar","Radio","Select","Skeleton","Spinner","Stack","Tab","TabGroup","TabPanel","Table","Textarea","Toggle","Tooltip","VisuallyHidden"],"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,EAAQlB,EAAW,SACnBmB,EAASnB,EAAW,UACpBoB,EAAOpB,EAAW,QAClBqB,EAAWrB,EAAW,YACtBsB,EAAWtB,EAAW,YACtBuB,EAAcvB,EAAW,eACzBwB,EAAaxB,EAAW,cACxByB,EAAWzB,EAAW,YACtB0B,EAAgB1B,EAAW,iBAC3B2B,EAAe3B,EAAW,gBAC1B4B,EAAa5B,EAAW,cACxB6B,EAAW7B,EAAW,YACtB8B,EAAS9B,EAAW,UACpB+B,EAAO/B,EAAW,QAClBgC,EAAQhC,EAAW,SACnBiC,EAASjC,EAAW,UACpBkC,EAAQlC,EAAW,SACnBmC,EAAWnC,EAAW,YACtBoC,EAAUpC,EAAW,WACrBqC,EAAarC,EAAW,cACxBsC,EAAStC,EAAW,UACpBuC,EAAcvC,EAAW,eACzBwC,EAAQxC,EAAW,SACnByC,EAASzC,EAAW,UACpB0C,EAAW1C,EAAW,YACtB2C,EAAU3C,EAAW,WACrB4C,EAAQ5C,EAAW,SACnB6C,EAAM7C,EAAW,OACjB8C,EAAW9C,EAAW,YACtB+C,EAAW/C,EAAW,YACtBgD,EAAQhD,EAAW,SACnBiD,EAAWjD,EAAW,YACtBkD,EAASlD,EAAW,UACpBmD,EAAUnD,EAAW,WACrBoD,EAAiBpD,EAAW"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nordhealth/react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.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.7.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": "b80c323b513a243b95ca4f57ee3e1fb50cfa6b38"
|
|
47
47
|
}
|