@nordhealth/react 1.0.0-rc.6 → 1.0.0-rc.7

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 CHANGED
@@ -6,7 +6,7 @@ export declare const Avatar: React.ForwardRefExoticComponent<Partial<Omit<Compon
6
6
  export declare const Badge: React.ForwardRefExoticComponent<Partial<Omit<Components.Badge, "children">> & {} & React.HTMLAttributes<HTMLElement> & {
7
7
  children?: React.ReactNode;
8
8
  } & React.RefAttributes<unknown>>;
9
- export declare const Button: React.ForwardRefExoticComponent<Partial<Omit<Components.Button, "children">> & {} & React.HTMLAttributes<HTMLElement> & {
9
+ export declare const Banner: React.ForwardRefExoticComponent<Partial<Omit<Components.Banner, "children">> & {} & React.HTMLAttributes<HTMLElement> & {
10
10
  children?: React.ReactNode;
11
11
  } & React.RefAttributes<unknown>>;
12
12
  export declare const Calendar: React.ForwardRefExoticComponent<Partial<Omit<Components.Calendar, "children">> & {
@@ -15,7 +15,7 @@ export declare const Calendar: React.ForwardRefExoticComponent<Partial<Omit<Comp
15
15
  } & React.HTMLAttributes<HTMLElement> & {
16
16
  children?: React.ReactNode;
17
17
  } & React.RefAttributes<unknown>>;
18
- export declare const Banner: React.ForwardRefExoticComponent<Partial<Omit<Components.Banner, "children">> & {} & React.HTMLAttributes<HTMLElement> & {
18
+ export declare const Button: React.ForwardRefExoticComponent<Partial<Omit<Components.Button, "children">> & {} & React.HTMLAttributes<HTMLElement> & {
19
19
  children?: React.ReactNode;
20
20
  } & React.RefAttributes<unknown>>;
21
21
  export declare const Card: React.ForwardRefExoticComponent<Partial<Omit<Components.Card, "children">> & {} & React.HTMLAttributes<HTMLElement> & {
@@ -48,10 +48,10 @@ export declare const Dropdown: React.ForwardRefExoticComponent<Partial<Omit<Comp
48
48
  export declare const DropdownGroup: React.ForwardRefExoticComponent<Partial<Omit<Components.DropdownGroup, "children">> & {} & React.HTMLAttributes<HTMLElement> & {
49
49
  children?: React.ReactNode;
50
50
  } & React.RefAttributes<unknown>>;
51
- export declare const EmptyState: React.ForwardRefExoticComponent<Partial<Omit<Components.EmptyState, "children">> & {} & React.HTMLAttributes<HTMLElement> & {
51
+ export declare const DropdownItem: React.ForwardRefExoticComponent<Partial<Omit<Components.DropdownItem, "children">> & {} & React.HTMLAttributes<HTMLElement> & {
52
52
  children?: React.ReactNode;
53
53
  } & React.RefAttributes<unknown>>;
54
- export declare const DropdownItem: React.ForwardRefExoticComponent<Partial<Omit<Components.DropdownItem, "children">> & {} & React.HTMLAttributes<HTMLElement> & {
54
+ export declare const EmptyState: React.ForwardRefExoticComponent<Partial<Omit<Components.EmptyState, "children">> & {} & React.HTMLAttributes<HTMLElement> & {
55
55
  children?: React.ReactNode;
56
56
  } & React.RefAttributes<unknown>>;
57
57
  export declare const Fieldset: React.ForwardRefExoticComponent<Partial<Omit<Components.Fieldset, "children">> & {} & React.HTMLAttributes<HTMLElement> & {
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,p=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.`):p.add(n));class l 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))p.has(n)?this.i[n]=o:e["className"===n?"class":n]=o;return i(o,e)}}l.displayName=null!=d?d:t.name;const c=n.forwardRef(((n,o)=>i(l,{...n,l:o},null==n?void 0:n.children)));return c.displayName=l.displayName,c},d=a(n,"nord-avatar",o.Avatar,{}),s=a(n,"nord-badge",o.Badge,{}),i=a(n,"nord-button",o.Button,{}),p=a(n,"nord-calendar",o.Calendar,{onNordFocusDate:"nord-focus-date",onChange:"change"}),l=a(n,"nord-banner",o.Banner,{}),c=a(n,"nord-card",o.Card,{}),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"}),m=a(n,"nord-date-picker",o.DatePicker,{onOpen:"open",onClose:"close",onChange:"change",onInput:"input"}),g=a(n,"nord-dropdown",o.Dropdown,{}),v=a(n,"nord-dropdown-group",o.DropdownGroup,{}),y=a(n,"nord-empty-state",o.EmptyState,{}),f=a(n,"nord-dropdown-item",o.DropdownItem,{}),C=a(n,"nord-fieldset",o.Fieldset,{}),w=a(n,"nord-header",o.Header,{}),b=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-nav-group",o.NavGroup,{}),D=a(n,"nord-nav-item",o.NavItem,{onToggle:"toggle"}),E=a(n,"nord-navigation",o.Navigation,{}),S=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"}),T=a(n,"nord-spinner",o.Spinner,{}),B=a(n,"nord-stack",o.Stack,{}),L=a(n,"nord-table",o.Table,{}),R=a(n,"nord-textarea",o.Textarea,{onInput:"input",onChange:"change"}),H=a(n,"nord-tooltip",o.Tooltip,{}),P=a(n,"nord-visually-hidden",o.VisuallyHidden,{});export{d as Avatar,s as Badge,l as Banner,i as Button,p as Calendar,c as Card,h as Checkbox,u as CommandMenu,m as DatePicker,g as Dropdown,v as DropdownGroup,f as DropdownItem,y as EmptyState,C as Fieldset,w as Header,b as Icon,I as Input,N as Layout,k as NavGroup,D as NavItem,E as Navigation,S as Popout,x as ProgressBar,M as Radio,O as Select,T as Spinner,B as Stack,L as Table,R as Textarea,H as Tooltip,P as VisuallyHidden};
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,p=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.`):p.add(n));class l 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))p.has(n)?this.i[n]=o:e["className"===n?"class":n]=o;return i(o,e)}}l.displayName=null!=d?d:t.name;const c=n.forwardRef(((n,o)=>i(l,{...n,l:o},null==n?void 0:n.children)));return c.displayName=l.displayName,c},d=a(n,"nord-avatar",o.Avatar,{}),s=a(n,"nord-badge",o.Badge,{}),i=a(n,"nord-banner",o.Banner,{}),p=a(n,"nord-calendar",o.Calendar,{onNordFocusDate:"nord-focus-date",onChange:"change"}),l=a(n,"nord-button",o.Button,{}),c=a(n,"nord-card",o.Card,{}),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"}),m=a(n,"nord-date-picker",o.DatePicker,{onOpen:"open",onClose:"close",onChange:"change",onInput:"input"}),g=a(n,"nord-dropdown",o.Dropdown,{}),v=a(n,"nord-dropdown-group",o.DropdownGroup,{}),y=a(n,"nord-dropdown-item",o.DropdownItem,{}),f=a(n,"nord-empty-state",o.EmptyState,{}),C=a(n,"nord-fieldset",o.Fieldset,{}),w=a(n,"nord-header",o.Header,{}),b=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-nav-group",o.NavGroup,{}),D=a(n,"nord-nav-item",o.NavItem,{onToggle:"toggle"}),E=a(n,"nord-navigation",o.Navigation,{}),S=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"}),T=a(n,"nord-spinner",o.Spinner,{}),B=a(n,"nord-stack",o.Stack,{}),L=a(n,"nord-table",o.Table,{}),R=a(n,"nord-textarea",o.Textarea,{onInput:"input",onChange:"change"}),H=a(n,"nord-tooltip",o.Tooltip,{}),P=a(n,"nord-visually-hidden",o.VisuallyHidden,{});export{d as Avatar,s as Badge,i as Banner,l as Button,p as Calendar,c as Card,h as Checkbox,u as CommandMenu,m as DatePicker,g as Dropdown,v as DropdownGroup,y as DropdownItem,f as EmptyState,C as Fieldset,w as Header,b as Icon,I as Input,N as Layout,k as NavGroup,D as NavItem,E as Navigation,S as Popout,x as ProgressBar,M as Radio,O as Select,T as Spinner,B as Stack,L as Table,R as Textarea,H as Tooltip,P 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,h=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.`):h.add(e));class d 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))h.has(t)?this.i[t]=n:e[\"className\"===t?\"class\":t]=n;return r(s,e)}}d.displayName=null!=l?l:o.name;const a=e.forwardRef(((t,e)=>r(d,{...t,l:e},null==t?void 0:t.children)));return a.displayName=d.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 Button = createComponent(React, \"nord-button\", Components.Button, {})\n\nexport const Calendar = createComponent(React, \"nord-calendar\", Components.Calendar, {\n onNordFocusDate: \"nord-focus-date\",\n onChange: \"change\",\n})\n\nexport const Banner = createComponent(React, \"nord-banner\", Components.Banner, {})\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 EmptyState = createComponent(React, \"nord-empty-state\", Components.EmptyState, {})\n\nexport const DropdownItem = createComponent(React, \"nord-dropdown-item\", Components.DropdownItem, {})\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 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"],"names":["t","Set","e","WeakMap","n","s","o","i","l","get","set","Map","handleEvent","addEventListener","delete","removeEventListener","c","Component","r","createElement","h","Object","keys","prototype","HTMLElement","has","console","warn","add","d","constructor","super","arguments","this","props","componentDidMount","componentDidUpdate","render","u","current","ref","entries","displayName","name","a","forwardRef","children","Avatar","createComponent","React","Components","Badge","Button","Calendar","onNordFocusDate","onChange","Banner","Card","Checkbox","onInput","CommandMenu","onOpen","onClose","onNordSelect","DatePicker","Dropdown","DropdownGroup","EmptyState","DropdownItem","Fieldset","Header","Icon","Input","Layout","NavGroup","NavItem","onToggle","Navigation","Popout","ProgressBar","Radio","Select","Spinner","Stack","Table","Textarea","Tooltip","VisuallyHidden"],"mappings":";;;;;GAKA,MAAMA,EAAE,IAAIC,IAAI,CAAC,WAAW,YAAY,MAAM,QAAQ,cAA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gBAAiBC,EAAWmC,SAAU,CACnF1B,QAAS,QACTJ,SAAU,WAGC+B,EAAUtC,EAAgBC,EAAO,eAAgBC,EAAWoC,QAAS,IAErEC,EAAiBvC,EAAgBC,EAAO,uBAAwBC,EAAWqC,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,h=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.`):h.add(e));class d 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))h.has(t)?this.i[t]=n:e[\"className\"===t?\"class\":t]=n;return r(s,e)}}d.displayName=null!=l?l:o.name;const a=e.forwardRef(((t,e)=>r(d,{...t,l:e},null==t?void 0:t.children)));return a.displayName=d.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 Button = createComponent(React, \"nord-button\", Components.Button, {})\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 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"],"names":["t","Set","e","WeakMap","n","s","o","i","l","get","set","Map","handleEvent","addEventListener","delete","removeEventListener","c","Component","r","createElement","h","Object","keys","prototype","HTMLElement","has","console","warn","add","d","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","Button","Card","Checkbox","onInput","CommandMenu","onOpen","onClose","onNordSelect","DatePicker","Dropdown","DropdownGroup","DropdownItem","EmptyState","Fieldset","Header","Icon","Input","Layout","NavGroup","NavItem","onToggle","Navigation","Popout","ProgressBar","Radio","Select","Spinner","Stack","Table","Textarea","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,IAAI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uBAAwBC,EAAWqC,eAAgB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nordhealth/react",
3
- "version": "1.0.0-rc.6",
3
+ "version": "1.0.0-rc.7",
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.2",
31
- "@nordhealth/components": "^1.0.0-rc.6"
31
+ "@nordhealth/components": "^1.0.0-rc.7"
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": "7705baffdfb77a3e457d5ca3c0d80f30a6331cc7"
46
+ "gitHead": "71610711d523543cd5305e3ce16806540909dab8"
47
47
  }