Skip to content

Commit 66fb9a7

Browse files
authored
Remove theme itzbund from docs (#272)
The A11y and PO reviews will only take place after all other DoD steps have been completed by the Developer: - [x] Meaningful pull request title for the release notes - [x] Pull request is linked to an issue and all changes relate to the issue - [x] Tests to protect this code implemented (if applicable) - [x] Manual test performed successfully (if applicable) - [x] Documentation or migration has been updated (if applicable)
2 parents 2140c30 + 212e0c6 commit 66fb9a7

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

docs/10-get-started/1-first-steps.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,10 @@ kolibri.plugin.ts
168168
import type { Plugin } from 'vue';
169169
import { defineCustomElements } from '@public-ui/components/dist/loader';
170170
import { register } from '@public-ui/components';
171-
import { ITZBund } from '@public-ui/themes';
171+
import { DEFAULT } from '@public-ui/theme-default';
172172
export const ComponentLibrary: Plugin = {
173173
install() {
174-
register(ITZBund, defineCustomElements)
174+
register(DEFAULT, defineCustomElements)
175175
.then(() => console.log('Components registered'))
176176
.catch(console.warn);
177177
},
@@ -357,8 +357,8 @@ Sofern Schriftarten und/oder Icons verwendet werden, müssen diese, wie oben bes
357357
<script type="module">
358358
import { register } from 'https://unpkg.com/@public-ui/components/dist/esm/index.js';
359359
import { defineCustomElements } from 'https://unpkg.com/@public-ui/components/dist/loader/index.js';
360-
import { ITZBund } from 'https://unpkg.com/@public-ui/themes/dist/index.mjs';
361-
register(ITZBund, defineCustomElements).catch(console.warn);
360+
import { DEFAULT } from 'https://unpkg.com/@public-ui/theme-default/dist/index.mjs';
361+
register(DEFAULT, defineCustomElements).catch(console.warn);
362362
</script>
363363
```
364364

src/shares/theme.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import type { SelectOption } from '@public-ui/components';
22

3-
export type Theme = 'unstyled' | 'default' | 'ecl-ec' | 'ecl-eu' | 'itzbund';
3+
export type Theme = 'unstyled' | 'default' | 'ecl-ec' | 'ecl-eu';
44

55
export const isTheme = (value: unknown) => {
66
console.log('typeof value', typeof value);
77
return (
88
typeof value === 'string' &&
9-
(value === 'unstyled' || value === 'default' || value === 'ecl-ec' || value === 'ecl-eu' || value === 'itzbund')
9+
(value === 'unstyled' || value === 'default' || value === 'ecl-ec' || value === 'ecl-eu')
1010
);
1111
};
1212

@@ -32,8 +32,4 @@ export const THEME_OPTIONS: SelectOption<Theme>[] = [
3232
label: 'European Union (ECL)',
3333
value: 'ecl-eu',
3434
},
35-
{
36-
label: 'Informationstechnikzentrum Bund',
37-
value: 'itzbund',
38-
},
3935
];

src/theme/Root.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { register } from '@public-ui/components';
22
import { defineCustomElements } from '@public-ui/components/dist/loader';
3-
import { DEFAULT, ECL_EC, ECL_EU, ITZBund } from '@public-ui/themes';
3+
import { DEFAULT, ECL_EC, ECL_EU } from '@public-ui/themes';
44
import type { FunctionComponent, PropsWithChildren } from 'react';
55
import React, { useEffect, useState } from 'react';
66
import type { Theme } from '../shares/theme';
@@ -9,7 +9,7 @@ export const Root: FunctionComponent<PropsWithChildren> = (props) => {
99
const [theme] = useState<Theme>('default');
1010

1111
useEffect(() => {
12-
register([DEFAULT, ECL_EC, ECL_EU, ITZBund], [defineCustomElements], {
12+
register([DEFAULT, ECL_EC, ECL_EU], [defineCustomElements], {
1313
theme: {
1414
detect: 'auto',
1515
},

0 commit comments

Comments
 (0)