@statistikzh/leu 0.0.2 → 0.1.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/.github/workflows/release-please.yml +20 -1
- package/CHANGELOG.md +12 -0
- package/babel.config.json +3 -0
- package/dist/{Button-83c6df93.js → Button.js} +58 -50
- package/dist/ButtonGroup.js +75 -0
- package/dist/Checkbox.js +60 -57
- package/dist/CheckboxGroup.js +35 -41
- package/dist/{Chip-60af1402.js → Chip-389013ff.js} +12 -13
- package/dist/ChipGroup.js +27 -34
- package/dist/ChipLink.js +18 -19
- package/dist/ChipRemovable.js +9 -13
- package/dist/ChipSelectable.js +42 -44
- package/dist/Dropdown.js +75 -0
- package/dist/Input.js +112 -122
- package/dist/Menu.js +33 -0
- package/dist/MenuItem.js +171 -0
- package/dist/Pagination.js +193 -0
- package/dist/Radio.js +26 -22
- package/dist/RadioGroup.js +75 -105
- package/dist/Select.js +103 -337
- package/dist/Table.js +294 -8
- package/dist/defineElement-ba770aed.js +44 -0
- package/dist/icon-03e86700.js +136 -0
- package/dist/index.js +14 -9
- package/dist/leu-button-group.js +8 -0
- package/dist/leu-button.js +7 -0
- package/dist/leu-checkbox-group.js +1 -1
- package/dist/leu-checkbox.js +2 -2
- package/dist/leu-chip-group.js +1 -1
- package/dist/leu-chip-link.js +2 -2
- package/dist/leu-chip-removable.js +3 -3
- package/dist/leu-chip-selectable.js +2 -2
- package/dist/leu-dropdown.js +10 -0
- package/dist/leu-input.js +2 -2
- package/dist/leu-menu-item.js +6 -0
- package/dist/leu-menu.js +5 -0
- package/dist/leu-pagination.js +8 -0
- package/dist/leu-radio-group.js +1 -1
- package/dist/leu-radio.js +1 -1
- package/dist/leu-select.js +5 -3
- package/dist/leu-table.js +5 -4
- package/index.js +7 -3
- package/package.json +3 -1
- package/rollup.config.js +26 -9
- package/.github/workflows/publish.yml +0 -19
- package/dist/Table-72d305d7.js +0 -506
- package/dist/defineElement-47d4f665.js +0 -15
- package/dist/icon-b68c7e1e.js +0 -202
package/dist/leu-chip-group.js
CHANGED
package/dist/leu-chip-link.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineChipRemovableElements } from './ChipRemovable.js';
|
|
2
|
+
import './defineElement-ba770aed.js';
|
|
2
3
|
import 'lit';
|
|
3
|
-
import './
|
|
4
|
-
import './
|
|
5
|
-
import './icon-b68c7e1e.js';
|
|
4
|
+
import './Chip-389013ff.js';
|
|
5
|
+
import './icon-03e86700.js';
|
|
6
6
|
|
|
7
7
|
defineChipRemovableElements();
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { defineDropdownElements } from './Dropdown.js';
|
|
2
|
+
import './defineElement-ba770aed.js';
|
|
3
|
+
import 'lit';
|
|
4
|
+
import './Button.js';
|
|
5
|
+
import 'lit/directives/class-map.js';
|
|
6
|
+
import './icon-03e86700.js';
|
|
7
|
+
import './Menu.js';
|
|
8
|
+
import './MenuItem.js';
|
|
9
|
+
|
|
10
|
+
defineDropdownElements();
|
package/dist/leu-input.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineInputElements } from './Input.js';
|
|
2
|
+
import './defineElement-ba770aed.js';
|
|
2
3
|
import 'lit';
|
|
3
4
|
import 'lit/directives/class-map.js';
|
|
4
5
|
import 'lit/directives/if-defined.js';
|
|
5
6
|
import 'lit/directives/ref.js';
|
|
6
|
-
import './icon-
|
|
7
|
-
import './defineElement-47d4f665.js';
|
|
7
|
+
import './icon-03e86700.js';
|
|
8
8
|
|
|
9
9
|
defineInputElements();
|
package/dist/leu-menu.js
ADDED
package/dist/leu-radio-group.js
CHANGED
package/dist/leu-radio.js
CHANGED
package/dist/leu-select.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { defineSelectElements } from './Select.js';
|
|
2
|
+
import './defineElement-ba770aed.js';
|
|
2
3
|
import 'lit';
|
|
3
4
|
import 'lit/directives/class-map.js';
|
|
4
5
|
import 'lit/directives/map.js';
|
|
5
6
|
import 'lit/directives/if-defined.js';
|
|
6
7
|
import 'lit/directives/ref.js';
|
|
7
|
-
import './icon-
|
|
8
|
-
import './
|
|
9
|
-
import './
|
|
8
|
+
import './icon-03e86700.js';
|
|
9
|
+
import './Button.js';
|
|
10
|
+
import './Menu.js';
|
|
11
|
+
import './MenuItem.js';
|
|
10
12
|
import './Input.js';
|
|
11
13
|
|
|
12
14
|
defineSelectElements();
|
package/dist/leu-table.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineTableElements } from './Table.js';
|
|
2
|
+
import './defineElement-ba770aed.js';
|
|
2
3
|
import 'lit';
|
|
3
4
|
import 'lit/directives/class-map.js';
|
|
4
5
|
import 'lit/directives/style-map.js';
|
|
5
6
|
import 'lit/directives/ref.js';
|
|
6
|
-
import './icon-
|
|
7
|
-
import './
|
|
8
|
-
import './Button
|
|
7
|
+
import './icon-03e86700.js';
|
|
8
|
+
import './Pagination.js';
|
|
9
|
+
import './Button.js';
|
|
9
10
|
|
|
10
11
|
defineTableElements();
|
package/index.js
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
export * from "./src/components/button/Button.js"
|
|
2
|
+
export * from "./src/components/button-group/ButtonGroup.js"
|
|
1
3
|
export * from "./src/components/checkbox/Checkbox.js"
|
|
2
4
|
export * from "./src/components/checkbox/CheckboxGroup.js"
|
|
5
|
+
export * from "./src/components/chip/exports.js"
|
|
6
|
+
export * from "./src/components/dropdown/Dropdown.js"
|
|
3
7
|
export * from "./src/components/input/Input.js"
|
|
8
|
+
export * from "./src/components/menu/Menu.js"
|
|
9
|
+
export * from "./src/components/menu/MenuItem.js"
|
|
10
|
+
export * from "./src/components/pagination/Pagination.js"
|
|
4
11
|
export * from "./src/components/radio/Radio.js"
|
|
5
12
|
export * from "./src/components/radio/RadioGroup.js"
|
|
6
13
|
export * from "./src/components/select/Select.js"
|
|
7
|
-
export * from "./src/components/button/Button.js"
|
|
8
|
-
export * from "./src/components/pagination/Pagination.js"
|
|
9
14
|
export * from "./src/components/table/Table.js"
|
|
10
|
-
export * from "./src/components/chip/exports.js"
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "UI component library of the canton of zurich",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "statistikzh",
|
|
6
|
-
"version": "0.0
|
|
6
|
+
"version": "0.1.0",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"module": "dist/index.js",
|
|
@@ -29,11 +29,13 @@
|
|
|
29
29
|
"lit": "^3.0.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
+
"@babel/preset-env": "^7.23.3",
|
|
32
33
|
"@commitlint/cli": "^17.7.1",
|
|
33
34
|
"@commitlint/config-conventional": "^17.7.0",
|
|
34
35
|
"@custom-elements-manifest/analyzer": "^0.4.17",
|
|
35
36
|
"@open-wc/eslint-config": "^9.2.1",
|
|
36
37
|
"@open-wc/testing": "^3.1.6",
|
|
38
|
+
"@rollup/plugin-babel": "^6.0.4",
|
|
37
39
|
"@rollup/plugin-json": "^6.0.0",
|
|
38
40
|
"@web/dev-server": "^0.1.34",
|
|
39
41
|
"@web/dev-server-rollup": "^0.5.2",
|
package/rollup.config.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import postcss from "rollup-plugin-postcss"
|
|
2
2
|
import postcssLit from "rollup-plugin-postcss-lit"
|
|
3
|
+
import { babel } from "@rollup/plugin-babel"
|
|
3
4
|
|
|
4
5
|
export const plugins = [
|
|
5
6
|
{
|
|
@@ -19,12 +20,32 @@ export const plugins = [
|
|
|
19
20
|
export default {
|
|
20
21
|
input: [
|
|
21
22
|
"index.js",
|
|
23
|
+
"./src/components/button/leu-button.js",
|
|
24
|
+
"./src/components/button/Button.js",
|
|
25
|
+
"./src/components/button-group/leu-button-group.js",
|
|
26
|
+
"./src/components/button-group/ButtonGroup.js",
|
|
22
27
|
"./src/components/checkbox/leu-checkbox.js",
|
|
23
28
|
"./src/components/checkbox/leu-checkbox-group.js",
|
|
24
29
|
"./src/components/checkbox/Checkbox.js",
|
|
25
30
|
"./src/components/checkbox/CheckboxGroup.js",
|
|
31
|
+
"./src/components/chip/leu-chip-group.js",
|
|
32
|
+
"./src/components/chip/leu-chip-link.js",
|
|
33
|
+
"./src/components/chip/leu-chip-removable.js",
|
|
34
|
+
"./src/components/chip/leu-chip-selectable.js",
|
|
35
|
+
"./src/components/chip/ChipGroup.js",
|
|
36
|
+
"./src/components/chip/ChipLink.js",
|
|
37
|
+
"./src/components/chip/ChipRemovable.js",
|
|
38
|
+
"./src/components/chip/ChipSelectable.js",
|
|
39
|
+
"./src/components/dropdown/leu-dropdown.js",
|
|
40
|
+
"./src/components/dropdown/Dropdown.js",
|
|
26
41
|
"./src/components/input/leu-input.js",
|
|
27
42
|
"./src/components/input/Input.js",
|
|
43
|
+
"./src/components/menu/leu-menu.js",
|
|
44
|
+
"./src/components/menu/leu-menu-item.js",
|
|
45
|
+
"./src/components/menu/Menu.js",
|
|
46
|
+
"./src/components/menu/MenuItem.js",
|
|
47
|
+
"./src/components/pagination/leu-pagination.js",
|
|
48
|
+
"./src/components/pagination/Pagination.js",
|
|
28
49
|
"./src/components/radio/leu-radio.js",
|
|
29
50
|
"./src/components/radio/leu-radio-group.js",
|
|
30
51
|
"./src/components/radio/Radio.js",
|
|
@@ -33,21 +54,17 @@ export default {
|
|
|
33
54
|
"./src/components/select/Select.js",
|
|
34
55
|
"./src/components/table/leu-table.js",
|
|
35
56
|
"./src/components/table/Table.js",
|
|
36
|
-
"./src/components/chip/leu-chip-group.js",
|
|
37
|
-
"./src/components/chip/leu-chip-link.js",
|
|
38
|
-
"./src/components/chip/leu-chip-removable.js",
|
|
39
|
-
"./src/components/chip/leu-chip-selectable.js",
|
|
40
|
-
"./src/components/chip/ChipGroup.js",
|
|
41
|
-
"./src/components/chip/ChipLink.js",
|
|
42
|
-
"./src/components/chip/ChipRemovable.js",
|
|
43
|
-
"./src/components/chip/ChipSelectable.js",
|
|
44
57
|
],
|
|
45
58
|
output: {
|
|
46
59
|
dir: "./dist/",
|
|
47
60
|
format: "esm",
|
|
48
61
|
entryFileNames: "[name].js",
|
|
49
62
|
},
|
|
50
|
-
plugins:
|
|
63
|
+
plugins: [
|
|
64
|
+
babel({ babelHelpers: "bundled" }),
|
|
65
|
+
...plugins.map((p) => p.plugin(...p.args)),
|
|
66
|
+
],
|
|
67
|
+
external: /^lit(\/.*\.js)?$/,
|
|
51
68
|
}
|
|
52
69
|
|
|
53
70
|
// TODO: add a second config for a bundle with esbuild
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
name: Publish Package to npmjs
|
|
2
|
-
on:
|
|
3
|
-
release:
|
|
4
|
-
types: [published]
|
|
5
|
-
jobs:
|
|
6
|
-
build:
|
|
7
|
-
runs-on: ubuntu-latest
|
|
8
|
-
steps:
|
|
9
|
-
- uses: actions/checkout@v4
|
|
10
|
-
# Setup .npmrc file to publish to npm
|
|
11
|
-
- uses: actions/setup-node@v3
|
|
12
|
-
with:
|
|
13
|
-
node-version: "20.x"
|
|
14
|
-
registry-url: "https://registry.npmjs.org"
|
|
15
|
-
- run: npm ci
|
|
16
|
-
- run: npm run build
|
|
17
|
-
- run: npm publish --access public
|
|
18
|
-
env:
|
|
19
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|