@nordhealth/components 1.0.0-alpha.4 → 1.0.0-alpha.43

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.
Files changed (150) hide show
  1. package/LICENSE.md +35 -0
  2. package/README.md +32 -0
  3. package/custom-elements.json +4746 -0
  4. package/lib/Badge.js +2 -0
  5. package/lib/Badge.js.map +1 -0
  6. package/lib/Button.js +2 -0
  7. package/lib/Button.js.map +1 -0
  8. package/lib/Card.js +2 -0
  9. package/lib/Card.js.map +1 -0
  10. package/lib/CommandMenu.js +7 -0
  11. package/lib/CommandMenu.js.map +1 -0
  12. package/lib/CommandMenuAction-b286bcbb.js +7 -0
  13. package/lib/CommandMenuAction-b286bcbb.js.map +1 -0
  14. package/lib/CommandMenuAction.js +2 -0
  15. package/lib/CommandMenuAction.js.map +1 -0
  16. package/lib/DraftComponentMixin-4bb26f5d.js +44 -0
  17. package/lib/DraftComponentMixin-4bb26f5d.js.map +1 -0
  18. package/lib/FormField-ba861a0b.js +2 -0
  19. package/lib/FormField-ba861a0b.js.map +1 -0
  20. package/lib/ICommandMenuAction.js +2 -0
  21. package/lib/ICommandMenuAction.js.map +1 -0
  22. package/lib/Icon-559d954d.js +7 -0
  23. package/lib/Icon-559d954d.js.map +1 -0
  24. package/lib/Icon.js +2 -0
  25. package/lib/Icon.js.map +1 -0
  26. package/lib/Input.js +2 -0
  27. package/lib/Input.js.map +1 -0
  28. package/lib/InputMixin-6c108de4.js +2 -0
  29. package/lib/InputMixin-6c108de4.js.map +1 -0
  30. package/lib/KeyboardController-28c7135b.js +2 -0
  31. package/lib/KeyboardController-28c7135b.js.map +1 -0
  32. package/lib/KeyboardController.js +2 -0
  33. package/lib/KeyboardController.js.map +1 -0
  34. package/lib/Select.js +2 -0
  35. package/lib/Select.js.map +1 -0
  36. package/lib/SlotController-fda28afb.js +2 -0
  37. package/lib/SlotController-fda28afb.js.map +1 -0
  38. package/lib/Spinner.js +2 -0
  39. package/lib/Spinner.js.map +1 -0
  40. package/lib/Stack.js +2 -0
  41. package/lib/Stack.js.map +1 -0
  42. package/lib/Table.js +2 -0
  43. package/lib/Table.js.map +1 -0
  44. package/lib/TextField-bfdc253c.js +2 -0
  45. package/lib/TextField-bfdc253c.js.map +1 -0
  46. package/lib/Textarea.js +2 -0
  47. package/lib/Textarea.js.map +1 -0
  48. package/lib/VisuallyHidden.js +2 -0
  49. package/lib/VisuallyHidden.js.map +1 -0
  50. package/lib/directive-e9ce14b4.js +7 -0
  51. package/lib/directive-e9ce14b4.js.map +1 -0
  52. package/lib/events-731d0007.js +2 -0
  53. package/lib/events-731d0007.js.map +1 -0
  54. package/lib/events.js +2 -0
  55. package/lib/events.js.map +1 -0
  56. package/lib/if-defined-617ae549.js +7 -0
  57. package/lib/if-defined-617ae549.js.map +1 -0
  58. package/lib/index.js +2 -1
  59. package/lib/index.js.map +1 -0
  60. package/lib/property-03f59dce.js +7 -0
  61. package/lib/property-03f59dce.js.map +1 -0
  62. package/lib/ref-65ef7607.js +17 -0
  63. package/lib/ref-65ef7607.js.map +1 -0
  64. package/lib/src/badge/Badge.d.ts +24 -0
  65. package/lib/src/badge/Badge.test.d.ts +1 -0
  66. package/lib/src/button/Button.d.ts +66 -0
  67. package/lib/src/button/Button.test.d.ts +2 -0
  68. package/lib/src/card/Card.d.ts +29 -0
  69. package/lib/src/card/Card.test.d.ts +4 -0
  70. package/lib/src/command-menu/CommandMenu.d.ts +83 -0
  71. package/lib/src/command-menu/CommandMenu.test.d.ts +1 -0
  72. package/lib/src/command-menu/CommandMenuAction.d.ts +25 -0
  73. package/lib/src/command-menu/ICommandMenuAction.d.ts +11 -0
  74. package/lib/src/command-menu/KeyboardController.d.ts +19 -0
  75. package/lib/src/command-menu/events.d.ts +6 -0
  76. package/lib/src/common/collection.d.ts +7 -0
  77. package/lib/src/common/controllers/LightDismissController.d.ts +16 -0
  78. package/lib/src/common/controllers/ShortcutController.d.ts +15 -0
  79. package/lib/src/common/controllers/SlotController.d.ts +9 -0
  80. package/lib/src/common/directives/cond.d.ts +7 -0
  81. package/lib/src/common/events.d.ts +6 -0
  82. package/lib/src/common/focus.d.ts +4 -0
  83. package/lib/src/common/mixins/DraftComponentMixin.d.ts +4 -0
  84. package/lib/src/common/mixins/FocusableMixin.d.ts +11 -0
  85. package/lib/src/common/mixins/FormAssociatedMixin.d.ts +23 -0
  86. package/lib/src/common/mixins/InputMixin.d.ts +10 -0
  87. package/lib/src/common/number.d.ts +5 -0
  88. package/lib/src/common/ref.d.ts +8 -0
  89. package/lib/src/icon/Icon.d.ts +65 -0
  90. package/lib/src/icon/Icon.test.d.ts +1 -0
  91. package/lib/src/index.d.ts +13 -0
  92. package/lib/src/input/Input.d.ts +29 -0
  93. package/lib/src/input/Input.test.d.ts +3 -0
  94. package/lib/src/select/Select.d.ts +29 -0
  95. package/lib/src/select/Select.test.d.ts +1 -0
  96. package/lib/src/spinner/Spinner.d.ts +34 -0
  97. package/lib/src/spinner/Spinner.test.d.ts +2 -0
  98. package/lib/src/stack/Stack.d.ts +32 -0
  99. package/lib/src/stack/Stack.test.d.ts +1 -0
  100. package/lib/src/table/Table.d.ts +35 -0
  101. package/lib/src/table/Table.test.d.ts +6 -0
  102. package/lib/src/textarea/Textarea.d.ts +33 -0
  103. package/lib/src/textarea/Textarea.test.d.ts +1 -0
  104. package/lib/src/visually-hidden/VisuallyHidden.d.ts +21 -0
  105. package/lib/src/visually-hidden/VisuallyHidden.test.d.ts +1 -0
  106. package/lib/unsafe-html-21f62902.js +7 -0
  107. package/lib/unsafe-html-21f62902.js.map +1 -0
  108. package/package.json +126 -41
  109. package/hydrate/index.d.ts +0 -217
  110. package/hydrate/index.js +0 -6224
  111. package/hydrate/package.json +0 -6
  112. package/lib/cjs/index-c624af10.js +0 -1245
  113. package/lib/cjs/index.cjs.js +0 -2
  114. package/lib/cjs/loader.cjs.js +0 -21
  115. package/lib/cjs/nord-button_2.cjs.entry.js +0 -60
  116. package/lib/cjs/nord.cjs.js +0 -19
  117. package/lib/collection/collection-manifest.json +0 -13
  118. package/lib/collection/components/button/button.css +0 -19
  119. package/lib/collection/components/button/button.js +0 -112
  120. package/lib/collection/components/visually-hidden/visually-hidden.css +0 -14
  121. package/lib/collection/components/visually-hidden/visually-hidden.js +0 -19
  122. package/lib/collection/utils/test-utils.js +0 -27
  123. package/lib/esm/index-49c0bb05.js +0 -1218
  124. package/lib/esm/index.js +0 -1
  125. package/lib/esm/loader.js +0 -17
  126. package/lib/esm/nord-button_2.entry.js +0 -55
  127. package/lib/esm/nord.js +0 -17
  128. package/lib/esm/polyfills/core-js.js +0 -11
  129. package/lib/esm/polyfills/css-shim.js +0 -1
  130. package/lib/esm/polyfills/dom.js +0 -79
  131. package/lib/esm/polyfills/es5-html-element.js +0 -1
  132. package/lib/esm/polyfills/index.js +0 -34
  133. package/lib/esm/polyfills/system.js +0 -6
  134. package/lib/index.cjs.js +0 -1
  135. package/lib/loader/cdn.js +0 -3
  136. package/lib/loader/index.cjs.js +0 -3
  137. package/lib/loader/index.d.ts +0 -13
  138. package/lib/loader/index.es2017.js +0 -3
  139. package/lib/loader/index.js +0 -4
  140. package/lib/loader/package.json +0 -10
  141. package/lib/nord/index.esm.js +0 -0
  142. package/lib/nord/nord.css +0 -1
  143. package/lib/nord/nord.esm.js +0 -1
  144. package/lib/nord/p-a883b130.js +0 -1
  145. package/lib/nord/p-b965e3cd.entry.js +0 -1
  146. package/lib/types/components/button/button.d.ts +0 -31
  147. package/lib/types/components/visually-hidden/visually-hidden.d.ts +0 -8
  148. package/lib/types/components.d.ts +0 -75
  149. package/lib/types/stencil-public-runtime.d.ts +0 -1555
  150. package/lib/types/utils/test-utils.d.ts +0 -9
package/LICENSE.md ADDED
@@ -0,0 +1,35 @@
1
+ # License
2
+
3
+ This Nord Design System package (the “Package”) is brought to you by Nordhealth Ltd (“Nordhealth”, or “we” or “us”) and all rights, including copyright, in the content of the Package is owned or controlled by Nordhealth.
4
+
5
+ ## Conditions of Using Features on the Package
6
+
7
+ Nordhealth hereby grants you a limited, non-exclusive, revocable license to access and use the Package solely for the purpose of performing your duties for and on behalf of Nordhealth (the “Purpose”).
8
+
9
+ You may not access or use the Package or reproduce, retransmit, disseminate, sell, publish, broadcast or use it for any other reason.
10
+
11
+ If Nordhealth is informed or has any reason to believe that the Package is being used by a user other than in accordance with these Terms of Use, Nordhealth reserves the right to suspend or permanently prevent access by the user to the Package and shall have no liability to the user whatsoever in such event.
12
+
13
+ ## Package Accuracy
14
+
15
+ Nordhealth makes every effort to ensure that the Package is accurate and up-to-date, but Nordhealth does not offer any warranties (whether express, implied or otherwise) as to the reliability, accuracy or completeness of the Package. The Package is provided “as is” and “as available” without express or implied warranty or condition of any kind.
16
+
17
+ ## Privacy
18
+
19
+ The access to the Package and use of it is governed by Nordhealth’s Privacy Policy.
20
+
21
+ ## Intellectual Property Rights
22
+
23
+ You acknowledge and agree that all copyright, rights in data, databases, trade-marks, names, images, logos and other intellectual property rights in the Package (“Intellectual Property Rights”) shall remain at all times vested in Nordhealth and its subsidiaries and that these are protected by copyright and other laws and international treaty provisions.
24
+
25
+ Nothing contained in the Package shall be construed as conferring by implication or otherwise any license or right to use any of the Intellectual Property Rights displayed or subsisting on or in the Package other than in accordance with these Terms of Use.
26
+
27
+ ## Limitation of Liability
28
+
29
+ While Nordhealth takes all reasonable steps to ensure that the Package is properly functioning at all times, Nordhealth does not warrant that this Package will be uninterrupted, timely, secure or error-free, that defects will be corrected, or that this Package is free of software bugs or other defects.
30
+
31
+ Nordhealth shall not be liable to you for any loss or damage you suffer as a result of using this Package. You must take your own precautions (including, but not limited to, installing adequate protective measures to guard against software viruses and ensuring that you retain up-to-date copies of all data) to protect yourself against loss or damage.
32
+
33
+ ## Governing Law
34
+
35
+ Your use of the Package will be governed by and construed in accordance with the laws of Finland.
package/README.md ADDED
@@ -0,0 +1,32 @@
1
+ ![Tests](https://github.com/nordhealth/design-system/workflows/Tests/badge.svg) ![Build and deploy](https://github.com/nordhealth/design-system/workflows/Build%20and%20deploy/badge.svg)
2
+
3
+ # Nord Web Components
4
+
5
+ The component package found from `packages/components` is built with [Lit](https://lit.dev/), a library for building Web Components. The component source code is written in TypeScript, with stylesheets written in CSS.
6
+
7
+ The following are the most commonly used commands during development:
8
+
9
+ - `npm start` - Compile components, start watching for changes, start local development server on port 3333.
10
+ - `npm run build` - Builds the project.
11
+ - `npm test` - Run all tests once.
12
+ - `npm test -- [path/glob for test file]` - Run specific tests file.
13
+ - `npm run test:watch` - Run all tests and watch for changes.
14
+ - `INCLUDE_VISUAL_REGRESSION=true npm test` - Run all tests and including visual regression.
15
+ - `INCLUDE_VISUAL_REGRESSION=true npm test -- --update-visual-baseline` - Updates all failing screenshot snapshots. I sure hope you know what you’re doing. ;-)
16
+
17
+ The local development server started by `npm start` serves a file located at `/packages/components/demo/index.html`. Any local changes or new components are available on this page, so this can be used as a testing ground when developing. Component usage examples are available from the dev server using the URL structure `/[component]/[example]/` e.g. `/button/kitchen-sink/`. These pages get reloaded on any change.
18
+
19
+ ## To create a new component
20
+
21
+ - Add directory for component under `src/[component-name]`.
22
+ - Add `[component-name].ts`.
23
+ - Add `[component-name].css`.
24
+ - Add `[component-name].test.ts`.
25
+
26
+ ## License
27
+
28
+ See license in LICENSE.md
29
+
30
+ ## Copyright
31
+
32
+ Copyright © 2021 Nordhealth Ltd