Skip to content

Commit

Permalink
chore: update kolibri
Browse files Browse the repository at this point in the history
  • Loading branch information
deleonio committed Aug 18, 2023
1 parent c3f708c commit 00d1330
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 12 deletions.
19 changes: 10 additions & 9 deletions dev/src/components/LiveEditorCompact.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,17 +106,18 @@ export function LiveEditorCompact(props: Props) {
{element &&
element.attributes.map((attribute: Attribute) => (
<>
{!AttributeBlackList.includes(attribute.name) && (
<AttributeInput
key={attribute.name}
attribute={attribute}
update={updateConfig}
value={config[attribute.name]}
></AttributeInput>
)}
{!AttributeBlackList.includes(attribute.name) &&
!attribute.description.startsWith('Deprecated:') && (
<AttributeInput
key={attribute.name}
attribute={attribute}
update={updateConfig}
value={config[attribute.name]}
></AttributeInput>
)}
</>
))}
{element && element.slots.length === 0 && (
{element && element.attributes.length === 0 && (
<span className="text-gray-500">Keine Properties vorhanden</span>
)}
</div>
Expand Down
6 changes: 6 additions & 0 deletions dev/src/shares/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export type Theme =
| 'bmf'
| 'by'
| 'bzst'
| 'default'
| 'desy-v1'
| 'desy-v2'
| 'ecl-ec'
Expand All @@ -24,6 +25,7 @@ export const isTheme = (value: unknown) => {
value === 'bmf' ||
value === 'by' ||
value === 'bzst' ||
value === 'default' ||
value === 'desy-v1' ||
value === 'desy-v2' ||
value === 'ecl-ec' ||
Expand All @@ -45,6 +47,10 @@ export const THEME_OPTIONS: SelectOption<Theme>[] = [
label: 'Unstyled',
value: 'unstyled',
},
{
label: 'Default',
value: 'default',
},
// {
// disabled: true,
// label: 'Bundesamt für Migration und Flüchtlinge',
Expand Down
2 changes: 1 addition & 1 deletion dev/src/theme/Navbar/ThemeSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const ThemeSelect: FunctionComponent = () => {
_hideLabel
_id="theme-toggle"
_label="Theme auswählen"
_list={THEME_OPTIONS}
_options={THEME_OPTIONS}
_value={[getTheme()]}
/>
);
Expand Down
4 changes: 2 additions & 2 deletions dev/src/theme/Root.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { TH } from '@public-oss/kolibri-themes';
import { register } from '@public-ui/components';
import { applyPolyfills, defineCustomElements } from '@public-ui/components/dist/loader';
import { BMF, ECL_EC, ECL_EU, ITZBund } from '@public-ui/themes';
import { BMF, DEFAULT, ECL_EC, ECL_EU, ITZBund } from '@public-ui/themes';
import React, { FunctionComponent, PropsWithChildren, useEffect, useState } from 'react';
import { Theme } from '../shares/theme';

Expand All @@ -11,7 +11,7 @@ export const Root: FunctionComponent<PropsWithChildren> = (props) => {
useEffect(() => {
Promise.all([
applyPolyfills(),
register([BMF, ECL_EC, ECL_EU, ITZBund, TH], [defineCustomElements], {
register([BMF, DEFAULT, ECL_EC, ECL_EU, ITZBund, TH], [defineCustomElements], {
theme: {
detect: 'auto',
},
Expand Down

0 comments on commit 00d1330

Please sign in to comment.