@statistikzh/leu 0.3.0 → 0.5.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/deploy-github-pages.yaml +33 -0
- package/.storybook/main.js +27 -1
- package/.storybook/manager-head.html +1 -0
- package/.storybook/manager.js +9 -0
- package/.storybook/preview-head.html +1 -1
- package/.storybook/preview.js +59 -6
- package/.storybook/static/logo.svg +19 -0
- package/.storybook/theme.js +7 -0
- package/CHANGELOG.md +54 -0
- package/README.md +1 -1
- package/custom-elements-manifest.config.js +46 -0
- package/dist/Accordion.d.ts +31 -0
- package/dist/Accordion.d.ts.map +1 -0
- package/dist/Accordion.js +257 -0
- package/dist/Breadcrumb.d.ts +69 -0
- package/dist/Breadcrumb.d.ts.map +1 -0
- package/dist/Breadcrumb.js +392 -0
- package/dist/Button-da11d064.d.ts +84 -0
- package/dist/Button-da11d064.d.ts.map +1 -0
- package/dist/Button-da11d064.js +542 -0
- package/dist/Button.d.ts +2 -0
- package/dist/Button.d.ts.map +1 -0
- package/dist/Button.js +6 -423
- package/dist/ButtonGroup.d.ts +24 -0
- package/dist/ButtonGroup.d.ts.map +1 -0
- package/dist/ButtonGroup.js +72 -43
- package/dist/Checkbox.d.ts +13 -0
- package/dist/Checkbox.d.ts.map +1 -0
- package/dist/Checkbox.js +101 -84
- package/dist/CheckboxGroup.d.ts +13 -0
- package/dist/CheckboxGroup.d.ts.map +1 -0
- package/dist/CheckboxGroup.js +41 -37
- package/dist/Chip.d.ts +5 -0
- package/dist/Chip.d.ts.map +1 -0
- package/dist/{Chip-5f70d04f.js → Chip.js} +21 -6
- package/dist/ChipGroup.d.ts +28 -0
- package/dist/ChipGroup.d.ts.map +1 -0
- package/dist/ChipGroup.js +64 -10
- package/dist/ChipLink.d.ts +15 -0
- package/dist/ChipLink.d.ts.map +1 -0
- package/dist/ChipLink.js +4 -7
- package/dist/ChipRemovable.d.ts +13 -0
- package/dist/ChipRemovable.d.ts.map +1 -0
- package/dist/ChipRemovable.js +5 -8
- package/dist/ChipSelectable.d.ts +22 -0
- package/dist/ChipSelectable.d.ts.map +1 -0
- package/dist/ChipSelectable.js +8 -11
- package/dist/Dropdown.d.ts +15 -0
- package/dist/Dropdown.d.ts.map +1 -0
- package/dist/Dropdown.js +73 -26
- package/dist/Input.d.ts +154 -0
- package/dist/Input.d.ts.map +1 -0
- package/dist/Input.js +42 -35
- package/dist/Menu.d.ts +8 -0
- package/dist/Menu.d.ts.map +1 -0
- package/dist/Menu.js +2 -5
- package/dist/MenuItem.d.ts +21 -0
- package/dist/MenuItem.d.ts.map +1 -0
- package/dist/MenuItem.js +32 -17
- package/dist/Pagination.d.ts +27 -0
- package/dist/Pagination.d.ts.map +1 -0
- package/dist/Pagination.js +121 -89
- package/dist/Popup.d.ts +18 -0
- package/dist/Popup.d.ts.map +1 -0
- package/dist/Popup.js +215 -0
- package/dist/Radio.d.ts +12 -0
- package/dist/Radio.d.ts.map +1 -0
- package/dist/Radio.js +9 -8
- package/dist/RadioGroup.d.ts +20 -0
- package/dist/RadioGroup.d.ts.map +1 -0
- package/dist/RadioGroup.js +41 -39
- package/dist/ScrollTop.d.ts +19 -0
- package/dist/ScrollTop.d.ts.map +1 -0
- package/dist/ScrollTop.js +122 -0
- package/dist/Select.d.ts +98 -0
- package/dist/Select.d.ts.map +1 -0
- package/dist/Select.js +79 -122
- package/dist/Table.d.ts +48 -0
- package/dist/Table.d.ts.map +1 -0
- package/dist/Table.js +141 -121
- package/dist/VisuallyHidden.d.ts +8 -0
- package/dist/VisuallyHidden.d.ts.map +1 -0
- package/dist/VisuallyHidden.js +28 -0
- package/dist/_rollupPluginBabelHelpers-20f659f4.d.ts +3 -0
- package/dist/_rollupPluginBabelHelpers-20f659f4.d.ts.map +1 -0
- package/dist/{defineElement-ba770aed.js → _rollupPluginBabelHelpers-20f659f4.js} +1 -15
- package/dist/defineElement-40372b4b.d.ts +9 -0
- package/dist/defineElement-40372b4b.d.ts.map +1 -0
- package/dist/defineElement-40372b4b.js +15 -0
- package/dist/icon-03e86700.d.ts +11 -0
- package/dist/icon-03e86700.d.ts.map +1 -0
- package/dist/index.js.d.ts +21 -0
- package/dist/index.js.d.ts.map +1 -0
- package/dist/index.js.js +42 -0
- package/dist/leu-accordion.d.ts +3 -0
- package/dist/leu-accordion.d.ts.map +1 -0
- package/dist/leu-accordion.js +9 -0
- package/dist/leu-breadcrumb.d.ts +3 -0
- package/dist/leu-breadcrumb.d.ts.map +1 -0
- package/dist/leu-breadcrumb.js +23 -0
- package/dist/leu-button-group.d.ts +3 -0
- package/dist/leu-button-group.d.ts.map +1 -0
- package/dist/leu-button-group.js +6 -6
- package/dist/leu-button.d.ts +3 -0
- package/dist/leu-button.d.ts.map +1 -0
- package/dist/leu-button.js +7 -3
- package/dist/leu-checkbox-group.d.ts +3 -0
- package/dist/leu-checkbox-group.d.ts.map +1 -0
- package/dist/leu-checkbox-group.js +6 -3
- package/dist/leu-checkbox.d.ts +3 -0
- package/dist/leu-checkbox.d.ts.map +1 -0
- package/dist/leu-checkbox.js +6 -3
- package/dist/leu-chip-group.d.ts +3 -0
- package/dist/leu-chip-group.d.ts.map +1 -0
- package/dist/leu-chip-group.js +7 -3
- package/dist/leu-chip-link.d.ts +3 -0
- package/dist/leu-chip-link.d.ts.map +1 -0
- package/dist/leu-chip-link.js +7 -4
- package/dist/leu-chip-removable.d.ts +3 -0
- package/dist/leu-chip-removable.d.ts.map +1 -0
- package/dist/leu-chip-removable.js +7 -4
- package/dist/leu-chip-selectable.d.ts +3 -0
- package/dist/leu-chip-selectable.d.ts.map +1 -0
- package/dist/leu-chip-selectable.js +7 -4
- package/dist/leu-dropdown.d.ts +3 -0
- package/dist/leu-dropdown.d.ts.map +1 -0
- package/dist/leu-dropdown.js +15 -4
- package/dist/leu-input.d.ts +3 -0
- package/dist/leu-input.d.ts.map +1 -0
- package/dist/leu-input.js +7 -3
- package/dist/leu-menu-item.d.ts +3 -0
- package/dist/leu-menu-item.d.ts.map +1 -0
- package/dist/leu-menu-item.js +8 -3
- package/dist/leu-menu.d.ts +3 -0
- package/dist/leu-menu.d.ts.map +1 -0
- package/dist/leu-menu.js +6 -3
- package/dist/leu-pagination.d.ts +3 -0
- package/dist/leu-pagination.d.ts.map +1 -0
- package/dist/leu-pagination.js +12 -4
- package/dist/leu-popup.d.ts +3 -0
- package/dist/leu-popup.d.ts.map +1 -0
- package/dist/leu-popup.js +9 -0
- package/dist/leu-radio-group.d.ts +3 -0
- package/dist/leu-radio-group.d.ts.map +1 -0
- package/dist/leu-radio-group.js +6 -3
- package/dist/leu-radio.d.ts +3 -0
- package/dist/leu-radio.d.ts.map +1 -0
- package/dist/leu-radio.js +6 -3
- package/dist/leu-scroll-top.d.ts +3 -0
- package/dist/leu-scroll-top.d.ts.map +1 -0
- package/dist/leu-scroll-top.js +14 -0
- package/dist/leu-select.d.ts +3 -0
- package/dist/leu-select.d.ts.map +1 -0
- package/dist/leu-select.js +16 -4
- package/dist/leu-table.d.ts +3 -0
- package/dist/leu-table.d.ts.map +1 -0
- package/dist/leu-table.js +13 -4
- package/dist/leu-visually-hidden.d.ts +3 -0
- package/dist/leu-visually-hidden.d.ts.map +1 -0
- package/dist/leu-visually-hidden.js +8 -0
- package/dist/theme.css +386 -2
- package/dist/utils-65469421.d.ts +16 -0
- package/dist/utils-65469421.d.ts.map +1 -0
- package/dist/utils-65469421.js +35 -0
- package/index.js +3 -0
- package/package.json +47 -17
- package/postcss.config.cjs +2 -0
- package/rollup.config.js +21 -40
- package/scripts/generate-component/templates/[Name].js +0 -5
- package/scripts/generate-component/templates/[name].css +3 -3
- package/scripts/generate-component/templates/[namespace]-[name].js +5 -2
- package/scripts/postcss-leu-font-styles.cjs +160 -0
- package/src/components/accordion/Accordion.js +0 -6
- package/src/components/accordion/accordion.css +2 -2
- package/src/components/accordion/leu-accordion.js +5 -2
- package/src/components/accordion/stories/accordion.stories.js +8 -4
- package/src/components/accordion/test/accordion.test.js +95 -3
- package/src/components/breadcrumb/Breadcrumb.js +311 -0
- package/src/components/breadcrumb/breadcrumb.css +103 -0
- package/src/components/breadcrumb/leu-breadcrumb.js +6 -0
- package/src/components/breadcrumb/stories/breadcrumb.stories.js +73 -0
- package/src/components/breadcrumb/test/breadcrumb.test.js +141 -0
- package/src/components/button/Button.js +76 -20
- package/src/components/button/button.css +13 -5
- package/src/components/button/leu-button.js +5 -2
- package/src/components/button/stories/button.stories.js +79 -105
- package/src/components/button/test/button.test.js +184 -3
- package/src/components/button-group/ButtonGroup.js +76 -40
- package/src/components/button-group/leu-button-group.js +5 -2
- package/src/components/button-group/stories/button-group.stories.js +19 -6
- package/src/components/button-group/test/button-group.test.js +87 -4
- package/src/components/checkbox/Checkbox.js +6 -85
- package/src/components/checkbox/CheckboxGroup.js +8 -38
- package/src/components/checkbox/checkbox-group.css +29 -0
- package/src/components/checkbox/checkbox.css +76 -0
- package/src/components/checkbox/leu-checkbox-group.js +5 -2
- package/src/components/checkbox/leu-checkbox.js +5 -2
- package/src/components/checkbox/stories/checkbox-group.stories.js +44 -21
- package/src/components/checkbox/stories/checkbox.stories.js +7 -1
- package/src/components/checkbox/test/checkbox-group.test.js +124 -0
- package/src/components/checkbox/test/checkbox.test.js +72 -59
- package/src/components/chip/Chip.js +1 -0
- package/src/components/chip/ChipGroup.js +42 -7
- package/src/components/chip/ChipLink.js +1 -6
- package/src/components/chip/ChipRemovable.js +2 -7
- package/src/components/chip/ChipSelectable.js +5 -10
- package/src/components/chip/chip-group.css +12 -2
- package/src/components/chip/chip.css +14 -3
- package/src/components/chip/exports.js +4 -10
- package/src/components/chip/leu-chip-group.js +5 -2
- package/src/components/chip/leu-chip-link.js +5 -2
- package/src/components/chip/leu-chip-removable.js +5 -2
- package/src/components/chip/leu-chip-selectable.js +5 -2
- package/src/components/chip/stories/chip-group.stories.js +110 -44
- package/src/components/chip/stories/chip-link.stories.js +16 -4
- package/src/components/chip/stories/chip-removable.stories.js +15 -4
- package/src/components/chip/stories/chip-selectable.stories.js +13 -3
- package/src/components/chip/test/chip-group.test.js +124 -0
- package/src/components/chip/test/chip-link.test.js +58 -0
- package/src/components/chip/test/chip-removable.test.js +79 -0
- package/src/components/chip/test/chip-selectable.test.js +95 -0
- package/src/components/chip/test/chip.test.js +1 -1
- package/src/components/dropdown/Dropdown.js +72 -24
- package/src/components/dropdown/dropdown.css +1 -2
- package/src/components/dropdown/leu-dropdown.js +5 -2
- package/src/components/dropdown/stories/dropdown.stories.js +11 -5
- package/src/components/dropdown/test/dropdown.test.js +6 -6
- package/src/components/icon/icon.js +1 -1
- package/src/components/icon/test/icon.test.js +66 -0
- package/src/components/input/Input.js +25 -28
- package/src/components/input/input.css +11 -8
- package/src/components/input/leu-input.js +5 -2
- package/src/components/input/stories/input.stories.js +21 -2
- package/src/components/input/test/input.test.js +432 -4
- package/src/components/menu/Menu.js +0 -5
- package/src/components/menu/MenuItem.js +20 -13
- package/src/components/menu/leu-menu-item.js +5 -2
- package/src/components/menu/leu-menu.js +5 -2
- package/src/components/menu/menu-item.css +7 -4
- package/src/components/menu/stories/menu-item.stories.js +13 -4
- package/src/components/menu/stories/menu.stories.js +11 -5
- package/src/components/menu/test/menu-item.test.js +180 -0
- package/src/components/menu/test/menu.test.js +10 -2
- package/src/components/pagination/Pagination.js +118 -99
- package/src/components/pagination/leu-pagination.js +5 -2
- package/src/components/pagination/pagination.css +6 -1
- package/src/components/pagination/stories/pagination.stories.js +30 -9
- package/src/components/pagination/test/pagination.test.js +191 -5
- package/src/components/popup/Popup.js +200 -0
- package/src/components/popup/leu-popup.js +6 -0
- package/src/components/popup/popup.css +27 -0
- package/src/components/popup/stories/popup.stories.js +58 -0
- package/src/components/popup/test/popup.test.js +29 -0
- package/src/components/radio/Radio.js +2 -6
- package/src/components/radio/RadioGroup.js +6 -38
- package/src/components/radio/leu-radio-group.js +5 -2
- package/src/components/radio/leu-radio.js +5 -2
- package/src/components/radio/radio-group.css +29 -0
- package/src/components/radio/radio.css +1 -1
- package/src/components/radio/stories/radio-group.stories.js +38 -19
- package/src/components/radio/stories/radio.stories.js +7 -1
- package/src/components/radio/test/radio-group.test.js +86 -0
- package/src/components/radio/test/radio.test.js +108 -17
- package/src/components/scroll-top/ScrollTop.js +87 -0
- package/src/components/scroll-top/leu-scroll-top.js +6 -0
- package/src/components/scroll-top/scroll-top.css +34 -0
- package/src/components/scroll-top/stories/scroll-top.stories.js +217 -0
- package/src/components/scroll-top/test/scroll-top.test.js +22 -0
- package/src/components/select/Select.js +58 -37
- package/src/components/select/leu-select.js +5 -2
- package/src/components/select/select.css +15 -15
- package/src/components/select/stories/select.stories.js +15 -168
- package/src/components/select/test/fixtures.js +162 -0
- package/src/components/select/test/select.test.js +236 -12
- package/src/components/table/Table.js +43 -118
- package/src/components/table/leu-table.js +5 -2
- package/src/components/table/stories/table.stories.js +20 -10
- package/src/components/table/table.css +99 -0
- package/src/components/table/test/table.test.js +1 -1
- package/src/components/visually-hidden/VisuallyHidden.js +13 -0
- package/src/components/visually-hidden/leu-visually-hidden.js +6 -0
- package/src/components/visually-hidden/stories/visually-hidden.stories.js +22 -0
- package/src/components/visually-hidden/test/visually-hidden.test.js +36 -0
- package/src/components/visually-hidden/visually-hidden.css +10 -0
- package/src/lib/defineElement.js +1 -1
- package/src/lib/hasSlotController.js +5 -3
- package/src/lib/utils.js +35 -0
- package/src/styles/custom-properties.css +6 -2
- package/src/styles/font-definitions.json +202 -0
- package/stylelint.config.mjs +2 -0
- package/tsconfig.build.json +21 -0
- package/tsconfig.json +16 -0
- package/{web-dev-server-storybook.config.mjs → web-dev-server.config.mjs} +1 -2
- package/web-test-runner.config.mjs +15 -2
- package/dist/index.js +0 -26
package/dist/theme.css
CHANGED
|
@@ -42,10 +42,394 @@
|
|
|
42
42
|
--leu-color-func-red: #d93c1a;
|
|
43
43
|
--leu-color-func-green: #1a7f1f;
|
|
44
44
|
|
|
45
|
-
--leu-font-regular: HelveticaNowRegular, Helvetica, sans-serif; /* stylelint-disable-line value-keyword-case */
|
|
46
|
-
--leu-font-black: HelveticaNowBlack, Arial Black, Helvetica, sans-serif; /* stylelint-disable-line value-keyword-case */
|
|
45
|
+
--leu-font-family-regular: HelveticaNowRegular, Helvetica, sans-serif; /* stylelint-disable-line value-keyword-case */
|
|
46
|
+
--leu-font-family-black: HelveticaNowBlack, Arial Black, Helvetica, sans-serif; /* stylelint-disable-line value-keyword-case */
|
|
47
47
|
|
|
48
48
|
--leu-box-shadow-short: 0px 0px 2px var(--leu-color-black-transp-40);
|
|
49
49
|
--leu-box-shadow-regular: 0px 0px 16px var(--leu-color-black-transp-20);
|
|
50
50
|
--leu-box-shadow-long: 0px 0px 80px var(--leu-color-black-transp-20);
|
|
51
|
+
|
|
52
|
+
--leu-t-30-regular-font-size: 0.75rem;
|
|
53
|
+
|
|
54
|
+
--leu-t-30-regular-line-height: 1.5;
|
|
55
|
+
|
|
56
|
+
--leu-t-30-regular-spacing: 0.5625rem;
|
|
57
|
+
|
|
58
|
+
--leu-t-30-regular-font: var(--leu-t-30-regular-font-size) / var(--leu-t-30-regular-line-height) var(--leu-font-family-regular);
|
|
59
|
+
|
|
60
|
+
--leu-t-30-black-font-size: 0.75rem;
|
|
61
|
+
|
|
62
|
+
--leu-t-30-black-line-height: 1.5;
|
|
63
|
+
|
|
64
|
+
--leu-t-30-black-spacing: 0.5625rem;
|
|
65
|
+
|
|
66
|
+
--leu-t-30-black-font: var(--leu-t-30-black-font-size) / var(--leu-t-30-black-line-height) var(--leu-font-family-black);
|
|
67
|
+
|
|
68
|
+
--leu-t-35-regular-font-size: 0.875rem;
|
|
69
|
+
|
|
70
|
+
--leu-t-35-regular-line-height: 1.4;
|
|
71
|
+
|
|
72
|
+
--leu-t-35-regular-spacing: 0.625rem;
|
|
73
|
+
|
|
74
|
+
--leu-t-35-regular-font: var(--leu-t-35-regular-font-size) / var(--leu-t-35-regular-line-height) var(--leu-font-family-regular);
|
|
75
|
+
|
|
76
|
+
--leu-t-35-black-font-size: 0.875rem;
|
|
77
|
+
|
|
78
|
+
--leu-t-35-black-line-height: 1.4;
|
|
79
|
+
|
|
80
|
+
--leu-t-35-black-spacing: 0.625rem;
|
|
81
|
+
|
|
82
|
+
--leu-t-35-black-font: var(--leu-t-35-black-font-size) / var(--leu-t-35-black-line-height) var(--leu-font-family-black);
|
|
83
|
+
|
|
84
|
+
--leu-t-40-regular-font-size: 1rem;
|
|
85
|
+
|
|
86
|
+
--leu-t-40-regular-line-height: 1.5;
|
|
87
|
+
|
|
88
|
+
--leu-t-40-regular-spacing: 0.75rem;
|
|
89
|
+
|
|
90
|
+
--leu-t-40-regular-font: var(--leu-t-40-regular-font-size) / var(--leu-t-40-regular-line-height) var(--leu-font-family-regular);
|
|
91
|
+
|
|
92
|
+
--leu-t-40-black-font-size: 1rem;
|
|
93
|
+
|
|
94
|
+
--leu-t-40-black-line-height: 1.5;
|
|
95
|
+
|
|
96
|
+
--leu-t-40-black-spacing: 0.75rem;
|
|
97
|
+
|
|
98
|
+
--leu-t-40-black-font: var(--leu-t-40-black-font-size) / var(--leu-t-40-black-line-height) var(--leu-font-family-black);
|
|
99
|
+
|
|
100
|
+
--leu-t-45-regular-font-size: 1.125rem;
|
|
101
|
+
|
|
102
|
+
--leu-t-45-regular-line-height: 1.5;
|
|
103
|
+
|
|
104
|
+
--leu-t-45-regular-spacing: 0.8125rem;
|
|
105
|
+
|
|
106
|
+
--leu-t-45-regular-font: var(--leu-t-45-regular-font-size) / var(--leu-t-45-regular-line-height) var(--leu-font-family-regular);
|
|
107
|
+
|
|
108
|
+
--leu-t-45-black-font-size: 1.125rem;
|
|
109
|
+
|
|
110
|
+
--leu-t-45-black-line-height: 1.3;
|
|
111
|
+
|
|
112
|
+
--leu-t-45-black-spacing: 0.75rem;
|
|
113
|
+
|
|
114
|
+
--leu-t-45-black-font: var(--leu-t-45-black-font-size) / var(--leu-t-45-black-line-height) var(--leu-font-family-black);
|
|
115
|
+
|
|
116
|
+
--leu-t-50-regular-font-size: 1.25rem;
|
|
117
|
+
|
|
118
|
+
--leu-t-50-regular-line-height: 1.5;
|
|
119
|
+
|
|
120
|
+
--leu-t-50-regular-spacing: 0.9375rem;
|
|
121
|
+
|
|
122
|
+
--leu-t-50-regular-font: var(--leu-t-50-regular-font-size) / var(--leu-t-50-regular-line-height) var(--leu-font-family-regular);
|
|
123
|
+
|
|
124
|
+
--leu-t-50-black-font-size: 1.25rem;
|
|
125
|
+
|
|
126
|
+
--leu-t-50-black-line-height: 1.3;
|
|
127
|
+
|
|
128
|
+
--leu-t-50-black-spacing: 0.8125rem;
|
|
129
|
+
|
|
130
|
+
--leu-t-50-black-font: var(--leu-t-50-black-font-size) / var(--leu-t-50-black-line-height) var(--leu-font-family-black);
|
|
131
|
+
|
|
132
|
+
--leu-t-60-regular-font-size: 1.5rem;
|
|
133
|
+
|
|
134
|
+
--leu-t-60-regular-line-height: 1.5;
|
|
135
|
+
|
|
136
|
+
--leu-t-60-regular-spacing: 1.125rem;
|
|
137
|
+
|
|
138
|
+
--leu-t-60-regular-font: var(--leu-t-60-regular-font-size) / var(--leu-t-60-regular-line-height) var(--leu-font-family-regular);
|
|
139
|
+
|
|
140
|
+
--leu-t-60-black-font-size: 1.5rem;
|
|
141
|
+
|
|
142
|
+
--leu-t-60-black-line-height: 1.3;
|
|
143
|
+
|
|
144
|
+
--leu-t-60-black-spacing: 0.9375rem;
|
|
145
|
+
|
|
146
|
+
--leu-t-60-black-font: var(--leu-t-60-black-font-size) / var(--leu-t-60-black-line-height) var(--leu-font-family-black);
|
|
147
|
+
|
|
148
|
+
--leu-t-70-black-font-size: 1.75rem;
|
|
149
|
+
|
|
150
|
+
--leu-t-70-black-line-height: 1.2;
|
|
151
|
+
|
|
152
|
+
--leu-t-70-black-spacing: 1.0625rem;
|
|
153
|
+
|
|
154
|
+
--leu-t-70-black-font: var(--leu-t-70-black-font-size) / var(--leu-t-70-black-line-height) var(--leu-font-family-black);
|
|
155
|
+
|
|
156
|
+
--leu-t-80-black-font-size: 2rem;
|
|
157
|
+
|
|
158
|
+
--leu-t-80-black-line-height: 1.2;
|
|
159
|
+
|
|
160
|
+
--leu-t-80-black-spacing: 1.1875rem;
|
|
161
|
+
|
|
162
|
+
--leu-t-80-black-font: var(--leu-t-80-black-font-size) / var(--leu-t-80-black-line-height) var(--leu-font-family-black);
|
|
163
|
+
|
|
164
|
+
--leu-t-100-black-font-size: 2.5rem;
|
|
165
|
+
|
|
166
|
+
--leu-t-100-black-line-height: 1.2;
|
|
167
|
+
|
|
168
|
+
--leu-t-100-black-spacing: 1.5rem;
|
|
169
|
+
|
|
170
|
+
--leu-t-100-black-font: var(--leu-t-100-black-font-size) / var(--leu-t-100-black-line-height) var(--leu-font-family-black);
|
|
171
|
+
|
|
172
|
+
--leu-t-120-black-font-size: 3rem;
|
|
173
|
+
|
|
174
|
+
--leu-t-120-black-line-height: 1;
|
|
175
|
+
|
|
176
|
+
--leu-t-120-black-spacing: 1.5rem;
|
|
177
|
+
|
|
178
|
+
--leu-t-120-black-font: var(--leu-t-120-black-font-size) / var(--leu-t-120-black-line-height) var(--leu-font-family-black);
|
|
179
|
+
|
|
180
|
+
--leu-t-140-black-font-size: 3.5rem;
|
|
181
|
+
|
|
182
|
+
--leu-t-140-black-line-height: 1;
|
|
183
|
+
|
|
184
|
+
--leu-t-140-black-spacing: 1.75rem;
|
|
185
|
+
|
|
186
|
+
--leu-t-140-black-font: var(--leu-t-140-black-font-size) / var(--leu-t-140-black-line-height) var(--leu-font-family-black);
|
|
187
|
+
|
|
188
|
+
--leu-t-180-black-font-size: 4.5rem;
|
|
189
|
+
|
|
190
|
+
--leu-t-180-black-line-height: 1;
|
|
191
|
+
|
|
192
|
+
--leu-t-180-black-spacing: 2.25rem;
|
|
193
|
+
|
|
194
|
+
--leu-t-180-black-font: var(--leu-t-180-black-font-size) / var(--leu-t-180-black-line-height) var(--leu-font-family-black);
|
|
195
|
+
|
|
196
|
+
--leu-t-curve-35-black-font-size: var(--leu-t-30-black-font-size);
|
|
197
|
+
|
|
198
|
+
--leu-t-curve-35-black-line-height: var(--leu-t-30-black-line-height);
|
|
199
|
+
|
|
200
|
+
--leu-t-curve-35-black-spacing: var(--leu-t-30-black-spacing);
|
|
201
|
+
|
|
202
|
+
--leu-t-curve-35-black-font: var(--leu-t-30-black-font);
|
|
203
|
+
|
|
204
|
+
--leu-t-curve-45-black-font-size: var(--leu-t-35-black-font-size);
|
|
205
|
+
|
|
206
|
+
--leu-t-curve-45-black-line-height: var(--leu-t-35-black-line-height);
|
|
207
|
+
|
|
208
|
+
--leu-t-curve-45-black-spacing: var(--leu-t-35-black-spacing);
|
|
209
|
+
|
|
210
|
+
--leu-t-curve-45-black-font: var(--leu-t-35-black-font);
|
|
211
|
+
|
|
212
|
+
--leu-t-curve-50-black-font-size: var(--leu-t-40-black-font-size);
|
|
213
|
+
|
|
214
|
+
--leu-t-curve-50-black-line-height: var(--leu-t-40-black-line-height);
|
|
215
|
+
|
|
216
|
+
--leu-t-curve-50-black-spacing: var(--leu-t-40-black-spacing);
|
|
217
|
+
|
|
218
|
+
--leu-t-curve-50-black-font: var(--leu-t-40-black-font);
|
|
219
|
+
|
|
220
|
+
--leu-t-curve-60-black-font-size: var(--leu-t-45-black-font-size);
|
|
221
|
+
|
|
222
|
+
--leu-t-curve-60-black-line-height: var(--leu-t-45-black-line-height);
|
|
223
|
+
|
|
224
|
+
--leu-t-curve-60-black-spacing: var(--leu-t-45-black-spacing);
|
|
225
|
+
|
|
226
|
+
--leu-t-curve-60-black-font: var(--leu-t-45-black-font);
|
|
227
|
+
|
|
228
|
+
--leu-t-curve-70-black-font-size: var(--leu-t-45-black-font-size);
|
|
229
|
+
|
|
230
|
+
--leu-t-curve-70-black-line-height: var(--leu-t-45-black-line-height);
|
|
231
|
+
|
|
232
|
+
--leu-t-curve-70-black-spacing: var(--leu-t-45-black-spacing);
|
|
233
|
+
|
|
234
|
+
--leu-t-curve-70-black-font: var(--leu-t-45-black-font);
|
|
235
|
+
|
|
236
|
+
--leu-t-curve-80-black-font-size: var(--leu-t-45-black-font-size);
|
|
237
|
+
|
|
238
|
+
--leu-t-curve-80-black-line-height: var(--leu-t-45-black-line-height);
|
|
239
|
+
|
|
240
|
+
--leu-t-curve-80-black-spacing: var(--leu-t-45-black-spacing);
|
|
241
|
+
|
|
242
|
+
--leu-t-curve-80-black-font: var(--leu-t-45-black-font);
|
|
243
|
+
|
|
244
|
+
--leu-t-curve-120-black-font-size: var(--leu-t-60-black-font-size);
|
|
245
|
+
|
|
246
|
+
--leu-t-curve-120-black-line-height: var(--leu-t-60-black-line-height);
|
|
247
|
+
|
|
248
|
+
--leu-t-curve-120-black-spacing: var(--leu-t-60-black-spacing);
|
|
249
|
+
|
|
250
|
+
--leu-t-curve-120-black-font: var(--leu-t-60-black-font);
|
|
251
|
+
|
|
252
|
+
--leu-t-curve-180-black-font-size: var(--leu-t-70-black-font-size);
|
|
253
|
+
|
|
254
|
+
--leu-t-curve-180-black-line-height: var(--leu-t-70-black-line-height);
|
|
255
|
+
|
|
256
|
+
--leu-t-curve-180-black-spacing: var(--leu-t-70-black-spacing);
|
|
257
|
+
|
|
258
|
+
--leu-t-curve-180-black-font: var(--leu-t-70-black-font);
|
|
259
|
+
}
|
|
260
|
+
@media (min-width: 600px) {
|
|
261
|
+
:root {
|
|
262
|
+
--leu-t-curve-35-black-font-size: var(--leu-t-35-black-font-size);
|
|
263
|
+
--leu-t-curve-35-black-line-height: var(--leu-t-35-black-line-height);
|
|
264
|
+
--leu-t-curve-35-black-spacing: var(--leu-t-35-black-spacing);
|
|
265
|
+
--leu-t-curve-35-black-font: var(--leu-t-35-black-font);
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
@media (min-width: 600px) {
|
|
269
|
+
:root {
|
|
270
|
+
--leu-t-curve-45-black-font-size: var(--leu-t-40-black-font-size);
|
|
271
|
+
--leu-t-curve-45-black-line-height: var(--leu-t-40-black-line-height);
|
|
272
|
+
--leu-t-curve-45-black-spacing: var(--leu-t-40-black-spacing);
|
|
273
|
+
--leu-t-curve-45-black-font: var(--leu-t-40-black-font);
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
@media (min-width: 1024px) {
|
|
277
|
+
:root {
|
|
278
|
+
--leu-t-curve-45-black-font-size: var(--leu-t-45-black-font-size);
|
|
279
|
+
--leu-t-curve-45-black-line-height: var(--leu-t-45-black-line-height);
|
|
280
|
+
--leu-t-curve-45-black-spacing: var(--leu-t-45-black-spacing);
|
|
281
|
+
--leu-t-curve-45-black-font: var(--leu-t-45-black-font);
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
@media (min-width: 400px) {
|
|
285
|
+
:root {
|
|
286
|
+
--leu-t-curve-50-black-font-size: var(--leu-t-45-black-font-size);
|
|
287
|
+
--leu-t-curve-50-black-line-height: var(--leu-t-45-black-line-height);
|
|
288
|
+
--leu-t-curve-50-black-spacing: var(--leu-t-45-black-spacing);
|
|
289
|
+
--leu-t-curve-50-black-font: var(--leu-t-45-black-font);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
@media (min-width: 1280px) {
|
|
293
|
+
:root {
|
|
294
|
+
--leu-t-curve-50-black-font-size: var(--leu-t-50-black-font-size);
|
|
295
|
+
--leu-t-curve-50-black-line-height: var(--leu-t-50-black-line-height);
|
|
296
|
+
--leu-t-curve-50-black-spacing: var(--leu-t-50-black-spacing);
|
|
297
|
+
--leu-t-curve-50-black-font: var(--leu-t-50-black-font);
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
@media (min-width: 600px) {
|
|
301
|
+
:root {
|
|
302
|
+
--leu-t-curve-60-black-font-size: var(--leu-t-50-black-font-size);
|
|
303
|
+
--leu-t-curve-60-black-line-height: var(--leu-t-50-black-line-height);
|
|
304
|
+
--leu-t-curve-60-black-spacing: var(--leu-t-50-black-spacing);
|
|
305
|
+
--leu-t-curve-60-black-font: var(--leu-t-50-black-font);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
@media (min-width: 1280px) {
|
|
309
|
+
:root {
|
|
310
|
+
--leu-t-curve-60-black-font-size: var(--leu-t-60-black-font-size);
|
|
311
|
+
--leu-t-curve-60-black-line-height: var(--leu-t-60-black-line-height);
|
|
312
|
+
--leu-t-curve-60-black-spacing: var(--leu-t-60-black-spacing);
|
|
313
|
+
--leu-t-curve-60-black-font: var(--leu-t-60-black-font);
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
@media (min-width: 400px) {
|
|
317
|
+
:root {
|
|
318
|
+
--leu-t-curve-70-black-font-size: var(--leu-t-50-black-font-size);
|
|
319
|
+
--leu-t-curve-70-black-line-height: var(--leu-t-50-black-line-height);
|
|
320
|
+
--leu-t-curve-70-black-spacing: var(--leu-t-50-black-spacing);
|
|
321
|
+
--leu-t-curve-70-black-font: var(--leu-t-50-black-font);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
@media (min-width: 1024px) {
|
|
325
|
+
:root {
|
|
326
|
+
--leu-t-curve-70-black-font-size: var(--leu-t-60-black-font-size);
|
|
327
|
+
--leu-t-curve-70-black-line-height: var(--leu-t-60-black-line-height);
|
|
328
|
+
--leu-t-curve-70-black-spacing: var(--leu-t-60-black-spacing);
|
|
329
|
+
--leu-t-curve-70-black-font: var(--leu-t-60-black-font);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
@media (min-width: 1280px) {
|
|
333
|
+
:root {
|
|
334
|
+
--leu-t-curve-70-black-font-size: var(--leu-t-70-black-font-size);
|
|
335
|
+
--leu-t-curve-70-black-line-height: var(--leu-t-70-black-line-height);
|
|
336
|
+
--leu-t-curve-70-black-spacing: var(--leu-t-70-black-spacing);
|
|
337
|
+
--leu-t-curve-70-black-font: var(--leu-t-70-black-font);
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
@media (min-width: 600px) {
|
|
341
|
+
:root {
|
|
342
|
+
--leu-t-curve-80-black-font-size: var(--leu-t-60-black-font-size);
|
|
343
|
+
--leu-t-curve-80-black-line-height: var(--leu-t-60-black-line-height);
|
|
344
|
+
--leu-t-curve-80-black-spacing: var(--leu-t-60-black-spacing);
|
|
345
|
+
--leu-t-curve-80-black-font: var(--leu-t-60-black-font);
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
@media (min-width: 1024px) {
|
|
349
|
+
:root {
|
|
350
|
+
--leu-t-curve-80-black-font-size: var(--leu-t-70-black-font-size);
|
|
351
|
+
--leu-t-curve-80-black-line-height: var(--leu-t-70-black-line-height);
|
|
352
|
+
--leu-t-curve-80-black-spacing: var(--leu-t-70-black-spacing);
|
|
353
|
+
--leu-t-curve-80-black-font: var(--leu-t-70-black-font);
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
@media (min-width: 1280px) {
|
|
357
|
+
:root {
|
|
358
|
+
--leu-t-curve-80-black-font-size: var(--leu-t-80-black-font-size);
|
|
359
|
+
--leu-t-curve-80-black-line-height: var(--leu-t-80-black-line-height);
|
|
360
|
+
--leu-t-curve-80-black-spacing: var(--leu-t-80-black-spacing);
|
|
361
|
+
--leu-t-curve-80-black-font: var(--leu-t-80-black-font);
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
@media (min-width: 600px) {
|
|
365
|
+
:root {
|
|
366
|
+
--leu-t-curve-120-black-font-size: var(--leu-t-70-black-font-size);
|
|
367
|
+
--leu-t-curve-120-black-line-height: var(--leu-t-70-black-line-height);
|
|
368
|
+
--leu-t-curve-120-black-spacing: var(--leu-t-70-black-spacing);
|
|
369
|
+
--leu-t-curve-120-black-font: var(--leu-t-70-black-font);
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
@media (min-width: 840px) {
|
|
373
|
+
:root {
|
|
374
|
+
--leu-t-curve-120-black-font-size: var(--leu-t-80-black-font-size);
|
|
375
|
+
--leu-t-curve-120-black-line-height: var(--leu-t-80-black-line-height);
|
|
376
|
+
--leu-t-curve-120-black-spacing: var(--leu-t-80-black-spacing);
|
|
377
|
+
--leu-t-curve-120-black-font: var(--leu-t-80-black-font);
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
@media (min-width: 1024px) {
|
|
381
|
+
:root {
|
|
382
|
+
--leu-t-curve-120-black-font-size: var(--leu-t-100-black-font-size);
|
|
383
|
+
--leu-t-curve-120-black-line-height: var(--leu-t-100-black-line-height);
|
|
384
|
+
--leu-t-curve-120-black-spacing: var(--leu-t-100-black-spacing);
|
|
385
|
+
--leu-t-curve-120-black-font: var(--leu-t-100-black-font);
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
@media (min-width: 1280px) {
|
|
389
|
+
:root {
|
|
390
|
+
--leu-t-curve-120-black-font-size: var(--leu-t-120-black-font-size);
|
|
391
|
+
--leu-t-curve-120-black-line-height: var(--leu-t-120-black-line-height);
|
|
392
|
+
--leu-t-curve-120-black-spacing: var(--leu-t-120-black-spacing);
|
|
393
|
+
--leu-t-curve-120-black-font: var(--leu-t-120-black-font);
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
@media (min-width: 400px) {
|
|
397
|
+
:root {
|
|
398
|
+
--leu-t-curve-180-black-font-size: var(--leu-t-80-black-font-size);
|
|
399
|
+
--leu-t-curve-180-black-line-height: var(--leu-t-80-black-line-height);
|
|
400
|
+
--leu-t-curve-180-black-spacing: var(--leu-t-80-black-spacing);
|
|
401
|
+
--leu-t-curve-180-black-font: var(--leu-t-80-black-font);
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
@media (min-width: 600px) {
|
|
405
|
+
:root {
|
|
406
|
+
--leu-t-curve-180-black-font-size: var(--leu-t-100-black-font-size);
|
|
407
|
+
--leu-t-curve-180-black-line-height: var(--leu-t-100-black-line-height);
|
|
408
|
+
--leu-t-curve-180-black-spacing: var(--leu-t-100-black-spacing);
|
|
409
|
+
--leu-t-curve-180-black-font: var(--leu-t-100-black-font);
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
@media (min-width: 840px) {
|
|
413
|
+
:root {
|
|
414
|
+
--leu-t-curve-180-black-font-size: var(--leu-t-120-black-font-size);
|
|
415
|
+
--leu-t-curve-180-black-line-height: var(--leu-t-120-black-line-height);
|
|
416
|
+
--leu-t-curve-180-black-spacing: var(--leu-t-120-black-spacing);
|
|
417
|
+
--leu-t-curve-180-black-font: var(--leu-t-120-black-font);
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
@media (min-width: 1024px) {
|
|
421
|
+
:root {
|
|
422
|
+
--leu-t-curve-180-black-font-size: var(--leu-t-140-black-font-size);
|
|
423
|
+
--leu-t-curve-180-black-line-height: var(--leu-t-140-black-line-height);
|
|
424
|
+
--leu-t-curve-180-black-spacing: var(--leu-t-140-black-spacing);
|
|
425
|
+
--leu-t-curve-180-black-font: var(--leu-t-140-black-font);
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
@media (min-width: 1280px) {
|
|
429
|
+
:root {
|
|
430
|
+
--leu-t-curve-180-black-font-size: var(--leu-t-180-black-font-size);
|
|
431
|
+
--leu-t-curve-180-black-line-height: var(--leu-t-180-black-line-height);
|
|
432
|
+
--leu-t-curve-180-black-spacing: var(--leu-t-180-black-spacing);
|
|
433
|
+
--leu-t-curve-180-black-font: var(--leu-t-180-black-font);
|
|
434
|
+
}
|
|
51
435
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Return a debounced function that delays invoking func until after wait milliseconds have elapsed since the last time the debounced function was invoked.
|
|
3
|
+
* @param {Function} func - Your function
|
|
4
|
+
* @param {Number} timeout - Default is 500 ms
|
|
5
|
+
* @returns {Function} - Your function wrapped in a timeout function
|
|
6
|
+
*/
|
|
7
|
+
declare function debounce(func: Function, timeout?: number): Function;
|
|
8
|
+
/**
|
|
9
|
+
* Return a throttled function that only invokes func at most once per every wait milliseconds.
|
|
10
|
+
* @param {Function} func - Your function
|
|
11
|
+
* @param {Number} timeout - Default is 500 ms
|
|
12
|
+
* @returns {Function} - Your function wrapped in a timeout function
|
|
13
|
+
*/
|
|
14
|
+
declare function throttle(func: Function, timeout?: number): Function;
|
|
15
|
+
export { debounce as d, throttle as t };
|
|
16
|
+
//# sourceMappingURL=utils-65469421.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils-65469421.d.ts","sourceRoot":"","sources":["utils-65469421.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,sEAQC;AAED;;;;;GAKG;AACH,sEAUC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Return a debounced function that delays invoking func until after wait milliseconds have elapsed since the last time the debounced function was invoked.
|
|
3
|
+
* @param {Function} func - Your function
|
|
4
|
+
* @param {Number} timeout - Default is 500 ms
|
|
5
|
+
* @returns {Function} - Your function wrapped in a timeout function
|
|
6
|
+
*/
|
|
7
|
+
const debounce = function debounce(func, timeout = 500) {
|
|
8
|
+
let timer = null;
|
|
9
|
+
return (...args) => {
|
|
10
|
+
clearTimeout(timer);
|
|
11
|
+
timer = setTimeout(() => {
|
|
12
|
+
func.apply(this, args);
|
|
13
|
+
}, timeout);
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Return a throttled function that only invokes func at most once per every wait milliseconds.
|
|
19
|
+
* @param {Function} func - Your function
|
|
20
|
+
* @param {Number} timeout - Default is 500 ms
|
|
21
|
+
* @returns {Function} - Your function wrapped in a timeout function
|
|
22
|
+
*/
|
|
23
|
+
const throttle = function throttle(func, timeout = 500) {
|
|
24
|
+
let timer = null;
|
|
25
|
+
return (...args) => {
|
|
26
|
+
if (timer === null) {
|
|
27
|
+
func(...args);
|
|
28
|
+
timer = setTimeout(() => {
|
|
29
|
+
timer = null;
|
|
30
|
+
}, timeout);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export { debounce as d, throttle as t };
|
package/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * from "./src/components/accordion/Accordion.js"
|
|
2
|
+
export * from "./src/components/breadcrumb/Breadcrumb.js"
|
|
1
3
|
export * from "./src/components/button/Button.js"
|
|
2
4
|
export * from "./src/components/button-group/ButtonGroup.js"
|
|
3
5
|
export * from "./src/components/checkbox/Checkbox.js"
|
|
@@ -8,6 +10,7 @@ export * from "./src/components/input/Input.js"
|
|
|
8
10
|
export * from "./src/components/menu/Menu.js"
|
|
9
11
|
export * from "./src/components/menu/MenuItem.js"
|
|
10
12
|
export * from "./src/components/pagination/Pagination.js"
|
|
13
|
+
export * from "./src/components/popup/Popup.js"
|
|
11
14
|
export * from "./src/components/radio/Radio.js"
|
|
12
15
|
export * from "./src/components/radio/RadioGroup.js"
|
|
13
16
|
export * from "./src/components/select/Select.js"
|
package/package.json
CHANGED
|
@@ -3,61 +3,88 @@
|
|
|
3
3
|
"description": "UI component library of the canton of zurich",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "statistikzh",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.5.0",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"module": "dist/index.js",
|
|
10
|
+
"types": "dist/index.d.ts",
|
|
11
|
+
"customElements": "dist/custom-elements.json",
|
|
12
|
+
"web-types": "./dist/web-types.json",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"default": "./dist/index.js",
|
|
16
|
+
"types": "./dist/index.d.ts"
|
|
17
|
+
},
|
|
18
|
+
"./*": "./dist/*"
|
|
19
|
+
},
|
|
10
20
|
"repository": {
|
|
11
21
|
"type": "git",
|
|
12
22
|
"url": "https://github.com/statistikzh/leu.git"
|
|
13
23
|
},
|
|
14
24
|
"homepage": "https://github.com/statistikzh/leu/",
|
|
15
25
|
"scripts": {
|
|
16
|
-
"analyze": "cem analyze --
|
|
17
|
-
"build": "rimraf dist && npm run build:js && npm run build:css",
|
|
26
|
+
"analyze": "cem analyze --config custom-elements-manifest.config.js",
|
|
27
|
+
"build": "rimraf dist && npm run build:js && npm run build:types && npm run build:css",
|
|
18
28
|
"build:js": "rollup -c rollup.config.js",
|
|
19
|
-
"build:
|
|
29
|
+
"build:types": "tsc -p tsconfig.build.json",
|
|
30
|
+
"build:css": "postcss src/styles/theme.css -o dist/theme.css && cp dist/theme.css .storybook/static/",
|
|
31
|
+
"watch:css": "nodemon --watch 'src/styles/*' -e css --exec npm run build:css",
|
|
20
32
|
"lint": "npm run lint:eslint && npm run lint:prettier",
|
|
21
33
|
"lint:eslint": "eslint --ext .js,.mjs,.html . --ignore-path .gitignore ",
|
|
22
34
|
"lint:prettier": "prettier \"**/*.{js,mjs,md,html,json}\" --check --ignore-path .gitignore",
|
|
23
35
|
"lint:stylelint": "stylelint \"**/*.{js,css}\" --ignore-path .gitignore",
|
|
36
|
+
"lint:types": "tsc",
|
|
24
37
|
"format": "npm run format:eslint && npm run format:prettier",
|
|
25
38
|
"format:eslint": "eslint --ext .js,.mjs,.html . --fix --ignore-path .gitignore",
|
|
26
39
|
"format:prettier": "prettier \"**/*.{js,mjs,md,html,json}\" --write --ignore-path .gitignore",
|
|
27
40
|
"test": "web-test-runner --coverage",
|
|
28
41
|
"test:watch": "web-test-runner --watch",
|
|
29
42
|
"prepare": "husky install",
|
|
30
|
-
"storybook": "npm run
|
|
31
|
-
"
|
|
43
|
+
"storybook": "npm run storybook:start",
|
|
44
|
+
"storybook:start": "npm run analyze && npm run watch:css & storybook dev -p 8080 --no-open",
|
|
45
|
+
"storybook:build": "npm run analyze && npm run build:css && storybook build --output-dir docs"
|
|
32
46
|
},
|
|
33
47
|
"dependencies": {
|
|
48
|
+
"@floating-ui/dom": "^1.6.3",
|
|
34
49
|
"lit": "^3.0.2"
|
|
35
50
|
},
|
|
36
51
|
"devDependencies": {
|
|
37
52
|
"@babel/preset-env": "^7.23.3",
|
|
38
53
|
"@commitlint/cli": "^17.7.1",
|
|
39
54
|
"@commitlint/config-conventional": "^17.7.0",
|
|
40
|
-
"@custom-elements-manifest/analyzer": "^0.
|
|
55
|
+
"@custom-elements-manifest/analyzer": "^0.9.2",
|
|
41
56
|
"@open-wc/eslint-config": "^9.2.1",
|
|
42
|
-
"@open-wc/testing": "^
|
|
57
|
+
"@open-wc/testing": "^4.0.0",
|
|
43
58
|
"@rollup/plugin-babel": "^6.0.4",
|
|
59
|
+
"@rollup/plugin-commonjs": "^25.0.7",
|
|
44
60
|
"@rollup/plugin-json": "^6.0.0",
|
|
61
|
+
"@rollup/plugin-typescript": "^11.1.6",
|
|
62
|
+
"@storybook/addon-designs": "^7.0.9",
|
|
63
|
+
"@storybook/addon-essentials": "^7.6.17",
|
|
64
|
+
"@storybook/addon-links": "^7.6.17",
|
|
65
|
+
"@storybook/blocks": "^7.6.17",
|
|
66
|
+
"@storybook/web-components": "^7.6.17",
|
|
45
67
|
"@web/dev-server": "^0.1.34",
|
|
46
68
|
"@web/dev-server-rollup": "^0.5.2",
|
|
47
|
-
"@web/
|
|
48
|
-
"@web/storybook-builder": "^0.1.0",
|
|
69
|
+
"@web/storybook-builder": "^0.1.6",
|
|
49
70
|
"@web/storybook-framework-web-components": "^0.1.1",
|
|
50
|
-
"@web/test-runner": "^0.
|
|
51
|
-
"@web/test-runner-commands": "^0.
|
|
52
|
-
"@web/test-runner-playwright": "^0.
|
|
71
|
+
"@web/test-runner": "^0.18.0",
|
|
72
|
+
"@web/test-runner-commands": "^0.9.0",
|
|
73
|
+
"@web/test-runner-playwright": "^0.11.0",
|
|
74
|
+
"@whitespace/storybook-addon-html": "^5.1.6",
|
|
53
75
|
"arg": "^5.0.2",
|
|
76
|
+
"custom-element-jet-brains-integration": "^1.4.4",
|
|
77
|
+
"custom-element-vs-code-integration": "^1.2.3",
|
|
78
|
+
"custom-element-vuejs-integration": "^1.1.0",
|
|
54
79
|
"es-dev-server": "^2.1.0",
|
|
55
|
-
"esbuild": "^0.
|
|
80
|
+
"esbuild": "^0.20.0",
|
|
56
81
|
"eslint": "^8.31.0",
|
|
57
82
|
"eslint-config-prettier": "^8.3.0",
|
|
58
83
|
"eslint-plugin-storybook": "^0.6.14",
|
|
84
|
+
"glob": "^10.3.10",
|
|
59
85
|
"husky": "^8.0.0",
|
|
60
86
|
"lint-staged": "^10.5.4",
|
|
87
|
+
"nodemon": "^3.0.2",
|
|
61
88
|
"postcss": "^8.4.31",
|
|
62
89
|
"postcss-cli": "^10.1.0",
|
|
63
90
|
"postcss-import": "^15.1.0",
|
|
@@ -66,16 +93,19 @@
|
|
|
66
93
|
"prettier": "^2.4.1",
|
|
67
94
|
"react": "^18.2.0",
|
|
68
95
|
"react-dom": "^18.2.0",
|
|
96
|
+
"react-syntax-highlighter": "^15.5.0",
|
|
69
97
|
"rimraf": "^5.0.5",
|
|
70
98
|
"rollup": "^3.29.4",
|
|
71
99
|
"rollup-plugin-esbuild": "^6.0.2",
|
|
72
100
|
"rollup-plugin-postcss": "^4.0.2",
|
|
73
101
|
"rollup-plugin-postcss-lit": "^2.1.0",
|
|
74
|
-
"
|
|
102
|
+
"sinon": "^17.0.1",
|
|
103
|
+
"storybook": "^7.6.17",
|
|
75
104
|
"stylelint": "^15.10.3",
|
|
76
|
-
"stylelint-config-standard": "^34.0.0"
|
|
105
|
+
"stylelint-config-standard": "^34.0.0",
|
|
106
|
+
"tslib": "^2.6.2",
|
|
107
|
+
"typescript": "^5.4.3"
|
|
77
108
|
},
|
|
78
|
-
"customElements": "custom-elements.json",
|
|
79
109
|
"prettier": {
|
|
80
110
|
"semi": false
|
|
81
111
|
},
|
package/postcss.config.cjs
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
const postcssPresetEnv = require("postcss-preset-env")
|
|
2
2
|
const atImport = require("postcss-import")
|
|
3
|
+
const leuFontStyles = require("./scripts/postcss-leu-font-styles.cjs")
|
|
3
4
|
|
|
4
5
|
module.exports = {
|
|
5
6
|
stage: 2,
|
|
6
7
|
plugins: [
|
|
7
8
|
atImport(),
|
|
9
|
+
leuFontStyles(),
|
|
8
10
|
postcssPresetEnv({
|
|
9
11
|
features: {
|
|
10
12
|
"custom-media-queries": true,
|