-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1213 from City-of-Helsinki/release-3.4.0
Release 3.4.0
- Loading branch information
Showing
206 changed files
with
3,715 additions
and
1,191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
lib/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.* | ||
lib | ||
index.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Development | ||
|
||
The `hds-js` is a custom export from the [hds-react](https://github.com/City-of-Helsinki/helsinki-design-system/tree/development/packages/react) package. It has no own source files; the files are hand-picked from the React-version. | ||
|
||
## Adding files to the bundle | ||
|
||
Add required exports to the `index.ts` and run `yarn update:hds-js` from the `packages/react` folder. | ||
|
||
## Building | ||
|
||
The bundle is built with the `rollup.config.js` in the `hds-react` package. Rollup makes sure React or CSS are not included in this bundle. | ||
|
||
The build command is in the `hds-react` package. Use `yarn build:hds-js`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2023 City of Helsinki | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# hds-js [![npm](https://img.shields.io/npm/v/hds-js?style=flat-square)](https://www.npmjs.com/package/hds-js) [![npm bundle size](https://img.shields.io/bundlephobia/minzip/hds-js?label=gzipped%20size&style=flat-square)](https://bundlephobia.com/result?p=hds-js) | ||
|
||
Hds-js contains vanilla js exported from the [hds-react](https://github.com/City-of-Helsinki/helsinki-design-system/tree/development/packages/react) package of the Helsinki Design System. It has no own source; the files are hand-picked from the React version. React or CSS are not included. This package does not include any UI components either. | ||
|
||
## Getting started | ||
|
||
Install the package. | ||
|
||
```bash | ||
yarn add hds-js | ||
``` | ||
|
||
### Using the components | ||
|
||
JS | ||
|
||
```js | ||
import { cookieController } from 'hds-js'; | ||
``` | ||
|
||
## Development | ||
|
||
Read more [here](DEVELOPMENT.md). | ||
|
||
## Documentation | ||
|
||
Read more [here](https://hds.hel.fi/). | ||
|
||
## Built with | ||
|
||
- [TypeScript](https://www.typescriptlang.org/) support. | ||
- Bundled with [Rollup](https://github.com/rollup/rollup), compiled with [Babel](https://github.com/babel/babel). | ||
- Source files are in the [hds-react](https://github.com/City-of-Helsinki/helsinki-design-system/tree/development/packages/react) package. | ||
|
||
## Supported browsers | ||
|
||
The supported browser versions are listed in the [hds-react README](https://github.com/City-of-Helsinki/helsinki-design-system/blob/development/packages/react/README.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export * from '../react/src/components/cookieConsent/cookieConsentController'; | ||
export * from '../react/src/components/cookieConsent/cookieController'; | ||
export * from '../react/src/components/cookieConsent/getContent'; | ||
export * from '../react/src/components/login/index.vanilla-js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"name": "hds-js", | ||
"version": "3.4.0", | ||
"description": "Vanilla js for the Helsinki Design System", | ||
"homepage": "https://github.com/City-of-Helsinki/helsinki-design-system#readme", | ||
"license": "MIT", | ||
"main": "./cjs/index.js", | ||
"module": "./index.js", | ||
"esnext": "./index.js", | ||
"types": "./index.d.ts", | ||
"sideEffects": [ | ||
"base.min-*" | ||
], | ||
"dependencies": { | ||
"await-to-js": "^3.0.0", | ||
"cookie": "^0.4.1", | ||
"http-status-typed": "^1.0.1", | ||
"jwt-decode": "^3.1.2", | ||
"lodash.isobject": "3.0.2", | ||
"lodash.isundefined": "3.0.1", | ||
"lodash.pick": "^4.4.0", | ||
"oidc-client-ts": "^2.2.2" | ||
}, | ||
"scripts": { | ||
"prepublishOnly": "cp -r ./lib/. ." | ||
} | ||
} |
Binary file added
BIN
+92 KB
...eference/chrome_iphone7_Components_Container_Aligns_Wit_Custom_Width_Header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-270 Bytes
(100%)
packages/react/.loki/reference/chrome_iphone7_Components_Footer_Custom_Section.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-285 Bytes
(100%)
packages/react/.loki/reference/chrome_iphone7_Components_Footer_Custom_theme.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-63.1 KB
packages/react/.loki/reference/chrome_iphone7_Components_Footer_Default.png
Binary file not shown.
Binary file modified
BIN
-200 Bytes
(100%)
packages/react/.loki/reference/chrome_iphone7_Components_Footer_Example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-280 Bytes
(100%)
packages/react/.loki/reference/chrome_iphone7_Components_Footer_No_navigation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-274 Bytes
(100%)
packages/react/.loki/reference/chrome_iphone7_Components_Footer_Sitemap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-210 Bytes
(100%)
packages/react/.loki/reference/chrome_iphone7_Components_Footer_Utility_Groups.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-514 Bytes
(96%)
...ct/.loki/reference/chrome_iphone7_Components_Header_Manual_Language_Options.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-21.1 KB
.../.loki/reference/chrome_iphone7_Components_Header_Minimal_With_Localization.png
Binary file not shown.
Binary file removed
BIN
-11.7 KB
...ages/react/.loki/reference/chrome_iphone7_Components_Header_With_Action_Bar.png
Binary file not shown.
Binary file modified
BIN
-389 Bytes
(98%)
.../reference/chrome_iphone7_Components_Header_With_Full_Features_Custom_Theme.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-18.2 KB
...ki/reference/chrome_iphone7_Components_Header_With_Full_Features_Dark_Theme.png
Binary file not shown.
Binary file removed
BIN
-21 KB
packages/react/.loki/reference/chrome_iphone7_Components_Header_With_Skip_Link.png
Binary file not shown.
Binary file removed
BIN
-997 KB
packages/react/.loki/reference/chrome_iphone7_Components_Koros_Shifted.png
Binary file not shown.
Binary file removed
BIN
-3.71 KB
packages/react/.loki/reference/chrome_iphone7_Components_Koros_Storm.png
Binary file not shown.
3 changes: 0 additions & 3 deletions
3
...ct/.loki/reference/chrome_iphone7_Components_NavigationLinkDropdown_Example.png
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-3.85 KB
...ages/react/.loki/reference/chrome_iphone7_Components_NavigationLink_Default.png
Binary file not shown.
3 changes: 0 additions & 3 deletions
3
...eact/.loki/reference/chrome_iphone7_Components_NavigationLink_With_Dropdown.png
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...oki/reference/chrome_iphone7_Components_NavigationLink_With_Nested_Dropdown.png
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-3.97 KB
...ges/react/.loki/reference/chrome_iphone7_Components_Navigation_Custom_theme.png
Binary file not shown.
Binary file removed
BIN
-3.73 KB
packages/react/.loki/reference/chrome_iphone7_Components_Navigation_Default.png
Binary file not shown.
Binary file removed
BIN
-3.73 KB
...s/react/.loki/reference/chrome_iphone7_Components_Navigation_Dropdown_Links.png
Binary file not shown.
Binary file removed
BIN
-3.73 KB
packages/react/.loki/reference/chrome_iphone7_Components_Navigation_Example.png
Diff not rendered.
Binary file removed
BIN
-3.73 KB
packages/react/.loki/reference/chrome_iphone7_Components_Navigation_Inline.png
Diff not rendered.
Binary file removed
BIN
-32.6 KB
.../.loki/reference/chrome_iphone7_Components_StatusLabel_With_Rounded_Corners.png
Diff not rendered.
Binary file added
BIN
+6.59 KB
...s/react/.loki/reference/chrome_iphone7_Components_TextInput_As_search_input.png
Oops, something went wrong.
Binary file added
BIN
+10.1 KB
...ence/chrome_iphone7_Components_TextInput_As_search_input_with_default_value.png
Oops, something went wrong.
Binary file added
BIN
+37.4 KB
...reference/chrome_laptop_Components_Container_Aligns_Wit_Custom_Width_Header.png
Oops, something went wrong.
Binary file modified
BIN
-82 Bytes
(100%)
packages/react/.loki/reference/chrome_laptop_Components_Footer_Custom_Section.png
Oops, something went wrong.
Binary file modified
BIN
-125 Bytes
(99%)
packages/react/.loki/reference/chrome_laptop_Components_Footer_Custom_theme.png
Oops, something went wrong.
Binary file removed
BIN
-23.2 KB
packages/react/.loki/reference/chrome_laptop_Components_Footer_Default.png
Diff not rendered.
Binary file modified
BIN
-77 Bytes
(100%)
packages/react/.loki/reference/chrome_laptop_Components_Footer_Example.png
Oops, something went wrong.
Binary file modified
BIN
-78 Bytes
(100%)
packages/react/.loki/reference/chrome_laptop_Components_Footer_No_navigation.png
Oops, something went wrong.
Binary file modified
BIN
-79 Bytes
(100%)
packages/react/.loki/reference/chrome_laptop_Components_Footer_Sitemap.png
Oops, something went wrong.
Binary file modified
BIN
-78 Bytes
(100%)
packages/react/.loki/reference/chrome_laptop_Components_Footer_Utility_Groups.png
Oops, something went wrong.
Binary file modified
BIN
+485 Bytes
(100%)
...act/.loki/reference/chrome_laptop_Components_Header_Manual_Language_Options.png
Oops, something went wrong.
Binary file removed
BIN
-15.9 KB
...t/.loki/reference/chrome_laptop_Components_Header_Minimal_With_Localization.png
Diff not rendered.
Binary file removed
BIN
-14.2 KB
packages/react/.loki/reference/chrome_laptop_Components_Header_With_Action_Bar.png
Diff not rendered.
Binary file modified
BIN
-240 Bytes
(99%)
...i/reference/chrome_laptop_Components_Header_With_Full_Features_Custom_Theme.png
Oops, something went wrong.
Binary file removed
BIN
-20.4 KB
...oki/reference/chrome_laptop_Components_Header_With_Full_Features_Dark_Theme.png
Diff not rendered.
Binary file removed
BIN
-13.1 KB
packages/react/.loki/reference/chrome_laptop_Components_Header_With_Skip_Link.png
Diff not rendered.
Binary file removed
BIN
-3.17 MB
packages/react/.loki/reference/chrome_laptop_Components_Koros_Shifted.png
Diff not rendered.
Binary file removed
BIN
-2.57 KB
packages/react/.loki/reference/chrome_laptop_Components_Koros_Storm.png
Diff not rendered.
3 changes: 0 additions & 3 deletions
3
...act/.loki/reference/chrome_laptop_Components_NavigationLinkDropdown_Example.png
Diff not rendered.
Binary file removed
BIN
-1.63 KB
packages/react/.loki/reference/chrome_laptop_Components_NavigationLink_Default.png
Diff not rendered.
3 changes: 0 additions & 3 deletions
3
...react/.loki/reference/chrome_laptop_Components_NavigationLink_With_Dropdown.png
Diff not rendered.
3 changes: 0 additions & 3 deletions
3
...loki/reference/chrome_laptop_Components_NavigationLink_With_Nested_Dropdown.png
Diff not rendered.
Binary file removed
BIN
-10.6 KB
...ages/react/.loki/reference/chrome_laptop_Components_Navigation_Custom_theme.png
Diff not rendered.
Binary file removed
BIN
-10 KB
packages/react/.loki/reference/chrome_laptop_Components_Navigation_Default.png
Diff not rendered.
Binary file removed
BIN
-10.3 KB
...es/react/.loki/reference/chrome_laptop_Components_Navigation_Dropdown_Links.png
Diff not rendered.
Binary file removed
BIN
-11.9 KB
packages/react/.loki/reference/chrome_laptop_Components_Navigation_Example.png
Diff not rendered.
Binary file removed
BIN
-9.04 KB
packages/react/.loki/reference/chrome_laptop_Components_Navigation_Inline.png
Diff not rendered.
Binary file removed
BIN
-10.3 KB
...t/.loki/reference/chrome_laptop_Components_StatusLabel_With_Rounded_Corners.png
Diff not rendered.
Binary file added
BIN
+2.87 KB
...es/react/.loki/reference/chrome_laptop_Components_TextInput_As_search_input.png
Oops, something went wrong.
Binary file added
BIN
+4.36 KB
...rence/chrome_laptop_Components_TextInput_As_search_input_with_default_value.png
Oops, something went wrong.
Oops, something went wrong.