@nordhealth/components 3.18.0 → 3.18.1-alpha.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/README.md +11 -11
- package/custom-elements.json +2584 -2584
- package/lib/DatePicker.js +1 -1
- package/lib/Dropdown.js +1 -1
- package/lib/Icon.js.map +1 -1
- package/lib/{Popout-CqmQIaOr.js → Popout-8ZXIGZFg.js} +2 -2
- package/lib/{Popout-CqmQIaOr.js.map → Popout-8ZXIGZFg.js.map} +1 -1
- package/lib/Popout.js +1 -1
- package/lib/Qrcode.js.map +1 -1
- package/lib/Radio.js +1 -1
- package/lib/Radio.js.map +1 -1
- package/lib/Toggle.js +1 -1
- package/lib/Toggle.js.map +1 -1
- package/lib/Tooltip.js +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.js.map +1 -1
- package/lib/class-map-BQZJmA_8.js.map +1 -1
- package/lib/collection-CJHuUy_1.js.map +1 -1
- package/lib/custom-element-CDWT-yC_.js.map +1 -1
- package/lib/directive-DQ0jBES2.js.map +1 -1
- package/lib/if-defined-C2kZHWU2.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/positioning-BIzQxDMX.js +2 -0
- package/lib/positioning-BIzQxDMX.js.map +1 -0
- package/lib/property-DeTTNf1t.js.map +1 -1
- package/lib/query-hiZs21fO.js.map +1 -1
- package/lib/ref-BYkj-TPb.js.map +1 -1
- package/lib/src/avatar/Avatar.d.ts +3 -3
- package/lib/src/badge/Badge.d.ts +1 -1
- package/lib/src/banner/Banner.d.ts +1 -1
- package/lib/src/button-group/ButtonGroup.d.ts +1 -1
- package/lib/src/calendar/Calendar.d.ts +1 -1
- package/lib/src/card/Card.d.ts +1 -1
- package/lib/src/checkbox/Checkbox.d.ts +1 -1
- package/lib/src/command-menu/CommandMenu.d.ts +1 -1
- package/lib/src/command-menu/CommandMenuAction.d.ts +1 -1
- package/lib/src/date-picker/DatePicker.d.ts +1 -1
- package/lib/src/drawer/Drawer.d.ts +1 -1
- package/lib/src/dropdown/Dropdown.d.ts +1 -1
- package/lib/src/dropdown-group/DropdownGroup.d.ts +1 -1
- package/lib/src/empty-state/EmptyState.d.ts +1 -1
- package/lib/src/fieldset/Fieldset.d.ts +1 -1
- package/lib/src/footer/Footer.d.ts +1 -1
- package/lib/src/header/Header.d.ts +1 -1
- package/lib/src/icon/Icon.d.ts +1 -1
- package/lib/src/input/Input.d.ts +1 -1
- package/lib/src/layout/Layout.d.ts +1 -1
- package/lib/src/modal/Modal.d.ts +1 -1
- package/lib/src/nav-group/NavGroup.d.ts +1 -1
- package/lib/src/nav-toggle/NavToggle.d.ts +1 -1
- package/lib/src/navigation/Navigation.d.ts +1 -1
- package/lib/src/notification/Notification.d.ts +1 -1
- package/lib/src/notification-group/NotificationGroup.d.ts +1 -1
- package/lib/src/popout/Popout.d.ts +1 -1
- package/lib/src/progress-bar/ProgressBar.d.ts +1 -1
- package/lib/src/qrcode/Qrcode.d.ts +1 -1
- package/lib/src/radio/Radio.d.ts +1 -1
- package/lib/src/range/Range.d.ts +1 -1
- package/lib/src/segmented-control/SegmentedControl.d.ts +1 -1
- package/lib/src/segmented-control-item/SegmentedControlItem.d.ts +1 -1
- package/lib/src/select/Select.d.ts +1 -1
- package/lib/src/skeleton/Skeleton.d.ts +1 -1
- package/lib/src/spinner/Spinner.d.ts +1 -1
- package/lib/src/stack/Stack.d.ts +1 -1
- package/lib/src/tab/Tab.d.ts +1 -1
- package/lib/src/tab-group/TabGroup.d.ts +1 -1
- package/lib/src/tab-panel/TabPanel.d.ts +1 -1
- package/lib/src/tag/Tag.d.ts +1 -1
- package/lib/src/tag-group/TagGroup.d.ts +1 -1
- package/lib/src/textarea/Textarea.d.ts +1 -1
- package/lib/src/toast/Toast.d.ts +1 -1
- package/lib/src/toast-group/ToastGroup.d.ts +1 -1
- package/lib/src/toggle/Toggle.d.ts +1 -1
- package/lib/src/tooltip/Tooltip.d.ts +1 -1
- package/lib/src/top-bar/TopBar.d.ts +1 -1
- package/lib/src/visually-hidden/VisuallyHidden.d.ts +1 -1
- package/lib/state-BFYKuryf.js.map +1 -1
- package/lib/style-map-VR90KNpY.js.map +1 -1
- package/lib/tinykeys.module-_6MZt7MP.js.map +1 -1
- package/package.json +48 -48
- package/lib/positioning-CHP-_dKQ.js +0 -2
- package/lib/positioning-CHP-_dKQ.js.map +0 -1
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ For detailed information on what docker is, what is does, how it works etc, plea
|
|
|
21
21
|
Once docker is installed, run the following command in the components directory:
|
|
22
22
|
|
|
23
23
|
```sh
|
|
24
|
-
|
|
24
|
+
pnpm build:docker
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
This will create, install, and build all the necessary parts for running tests inside a docker container. The result of this process is cached, and will be used whenever tests are run.
|
|
@@ -34,17 +34,17 @@ Once this is complete, you can use the commands below to run tests in a docker c
|
|
|
34
34
|
|
|
35
35
|
The following are the most commonly used commands during development:
|
|
36
36
|
|
|
37
|
-
- `
|
|
38
|
-
- `
|
|
39
|
-
- `
|
|
40
|
-
- `INCLUDE_VISUAL_REGRESSION=false
|
|
41
|
-
- `
|
|
42
|
-
- `
|
|
43
|
-
- `
|
|
37
|
+
- `pnpm start` - Compile components, start watching for changes, start local development server on port 3333.
|
|
38
|
+
- `pnpm build` - Builds the project.
|
|
39
|
+
- `pnpm test` - Run all tests once, including visual regression.
|
|
40
|
+
- `INCLUDE_VISUAL_REGRESSION=false pnpm test` - Run all tests once, excluding visual regression.
|
|
41
|
+
- `pnpm test -- [path/glob for test file]` - Run specific tests file. e.g. `pnpm test -- **/Button.test.ts`
|
|
42
|
+
- `pnpm test:watch` - Run all tests and watch for changes.
|
|
43
|
+
- `pnpm test:capture` - Updates screenshot snapshots.
|
|
44
44
|
|
|
45
45
|
## Development server
|
|
46
46
|
|
|
47
|
-
The local development server started by `
|
|
47
|
+
The local development server started by `pnpm 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.
|
|
48
48
|
|
|
49
49
|
Component usage examples are available via the dev server using the URL structure `http://localhost:3333/[component]/[example]/` e.g. `/button/basic/`. This is mapped to the file path `/button/usage/basic.html`. These pages get reloaded on any change.
|
|
50
50
|
|
|
@@ -60,13 +60,13 @@ It is possible to change the theme used in an example via a query string e.g. `/
|
|
|
60
60
|
## To create a new component
|
|
61
61
|
|
|
62
62
|
```sh
|
|
63
|
-
|
|
63
|
+
pnpm scaffold [component-name]
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
e.g.
|
|
67
67
|
|
|
68
68
|
```sh
|
|
69
|
-
|
|
69
|
+
pnpm scaffold date-picker
|
|
70
70
|
```
|
|
71
71
|
|
|
72
72
|
## License
|