@odx/foundation 1.0.0-beta.122 → 1.0.0-beta.123
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.
|
@@ -14,9 +14,24 @@ export declare const EmptyStateSize: Pick<{
|
|
|
14
14
|
readonly LG: "lg";
|
|
15
15
|
readonly XL: "xl";
|
|
16
16
|
readonly XXL: "xxl";
|
|
17
|
-
}, "SM" | "MD">;
|
|
17
|
+
}, "SM" | "MD" | "LG">;
|
|
18
|
+
export type EmptyStateVariant = ValuesOf<typeof EmptyStateVariant>;
|
|
19
|
+
export declare const EmptyStateVariant: Pick<{
|
|
20
|
+
readonly NEUTRAL: "neutral";
|
|
21
|
+
readonly NEUTRAL_SUBTLE: "neutral-subtle";
|
|
22
|
+
readonly PRIMARY: "primary";
|
|
23
|
+
readonly PRIMARY_SUBTLE: "primary-subtle";
|
|
24
|
+
readonly ACCENT: "accent";
|
|
25
|
+
readonly ACCENT_SUBTLE: "accent-subtle";
|
|
26
|
+
readonly SUCCESS: "success";
|
|
27
|
+
readonly WARNING: "warning";
|
|
28
|
+
readonly DANGER: "danger";
|
|
29
|
+
readonly DANGER_SUBTLE: "danger-subtle";
|
|
30
|
+
readonly GHOST: "ghost";
|
|
31
|
+
}, "NEUTRAL" | "NEUTRAL_SUBTLE" | "DANGER">;
|
|
18
32
|
export declare class OdxEmptyState extends CustomElement {
|
|
19
33
|
icon?: OdxIconName;
|
|
20
34
|
size: EmptyStateSize;
|
|
35
|
+
variant: EmptyStateVariant;
|
|
21
36
|
protected render(): TemplateResult | string;
|
|
22
37
|
}
|
package/dist/components.js
CHANGED
|
@@ -1374,27 +1374,29 @@ class OdxContentBox extends CustomElement {
|
|
|
1374
1374
|
}
|
|
1375
1375
|
}
|
|
1376
1376
|
|
|
1377
|
-
const styles$T = ":host{--max-inline-size:
|
|
1377
|
+
const styles$T = ":host{--max-inline-size: 40ch;--icon-size: var(--odx-size-225);--_content-gap: var(--odx-spacing-25);display:flex;flex-direction:column;align-items:center;margin-inline:auto;block-size:100%;text-align:center}.actions{flex-direction:row-reverse}.content{row-gap:var(--_content-gap);max-inline-size:var(--max-inline-size)}.icon{font-size:var(--icon-size)}:host,:host([size=\"md\"]){gap:var(--odx-spacing-75);padding:var(--odx-size-75)}:host([size=\"sm\"]){--max-inline-size: 30ch;--icon-size: var(--odx-size-150);--_content-gap: var(--odx-size-12);gap:var(--odx-spacing-50);padding:var(--odx-size-50);.description{line-height:var(--odx-typography-line-height-1);font-size:var(--odx-typography-font-size-1)}}:host([size=\"md\"]){.description{line-height:var(--odx-typography-line-height-2);font-size:var(--odx-typography-font-size-2)}}:host([size=\"lg\"]){--max-inline-size: 50ch;--icon-size: var(--odx-size-300);--_content-gap: var(--odx-size-37);gap:var(--odx-spacing-100);padding:var(--odx-size-150);.title{line-height:var(--odx-breakpoint-line-height-heading-5);font-size:var(--odx-breakpoint-font-size-heading-5)}}:host([variant=\"neutral-subtle\"]){.icon,.description{color:var(--odx-color-foreground-rest-subtle)}}:host([variant=\"danger\"]){.icon{color:var(--odx-color-foreground-danger-rest)}}";
|
|
1378
1378
|
|
|
1379
|
-
const EmptyStateSize = pick(Size, ["SM", "MD"]);
|
|
1379
|
+
const EmptyStateSize = pick(Size, ["SM", "MD", "LG"]);
|
|
1380
|
+
const EmptyStateVariant = pick(Variant, ["NEUTRAL", "NEUTRAL_SUBTLE", "DANGER"]);
|
|
1380
1381
|
const _OdxEmptyState = class _OdxEmptyState extends CustomElement {
|
|
1381
1382
|
constructor() {
|
|
1382
1383
|
super(...arguments);
|
|
1383
1384
|
this.size = EmptyStateSize.MD;
|
|
1385
|
+
this.variant = EmptyStateVariant.NEUTRAL;
|
|
1384
1386
|
}
|
|
1385
1387
|
static {
|
|
1386
1388
|
customElement("odx-empty-state", styles$T)(_OdxEmptyState);
|
|
1387
1389
|
}
|
|
1388
1390
|
render() {
|
|
1389
1391
|
return html`
|
|
1390
|
-
<div class="content odx-stack odx-align-center
|
|
1391
|
-
<slot name="title"></slot>
|
|
1392
|
+
<div class="content odx-stack odx-align-center">
|
|
1392
1393
|
${when(this.icon, (icon) => html`<odx-icon class="icon" name=${icon}></odx-icon>`)}
|
|
1393
|
-
<
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1394
|
+
<odx-title class="title">
|
|
1395
|
+
<slot></slot>
|
|
1396
|
+
</odx-title>
|
|
1397
|
+
${optionalSlot(this, "description")}
|
|
1397
1398
|
</div>
|
|
1399
|
+
${optionalSlot(this, "actions", "odx-cluster odx-justify-center")}
|
|
1398
1400
|
`;
|
|
1399
1401
|
}
|
|
1400
1402
|
};
|
|
@@ -1404,6 +1406,9 @@ __decorateClass([
|
|
|
1404
1406
|
__decorateClass([
|
|
1405
1407
|
property({ reflect: true, useDefault: true })
|
|
1406
1408
|
], _OdxEmptyState.prototype, "size", 2);
|
|
1409
|
+
__decorateClass([
|
|
1410
|
+
property({ reflect: true, useDefault: true })
|
|
1411
|
+
], _OdxEmptyState.prototype, "variant", 2);
|
|
1407
1412
|
let OdxEmptyState = _OdxEmptyState;
|
|
1408
1413
|
|
|
1409
1414
|
const styles$S = ":host{display:block}";
|
|
@@ -4547,4 +4552,4 @@ class OdxVisuallyHidden extends CustomElement {
|
|
|
4547
4552
|
}
|
|
4548
4553
|
}
|
|
4549
4554
|
|
|
4550
|
-
export { AccordionIndicatorPosition, AccordionItemSize, AnchorObserver, AreaHeaderSize, AutoGridMode, AvatarShape, AvatarSize, AvatarVariant, BadgeVariant, BaseFormat, ButtonSize, ButtonVariant, CheckboxGroupLayout, ChipVariant, DropdownPlacement, EmptyStateSize, GradientOverlaySize, HighlightVariant, InlineMessageVariant, KpiSize, KpiVariant, LOADING_OVERLAY_HOST_DIRECTIVE, LogoSize, ModalLayout, NavigationItemSize, OdxAccordion, OdxAccordionItem, OdxAccordionPanel, OdxActionButton, OdxAnchorNavigation, OdxAreaHeader, OdxAutoGrid, OdxAutocomplete, OdxAvatar, OdxBadge, OdxBreadcrumbs, OdxBreadcrumbsItem, OdxButton, OdxButtonGroup, OdxCard, OdxCheckbox, OdxCheckboxGroup, OdxChip, OdxContentBox, OdxDropdown, OdxEmptyState, OdxFormField, OdxFormatBytes, OdxFormatDate, OdxFormatNumber, OdxGradientOverlay, OdxHeader, OdxHeaderActions, OdxHighlight, OdxIconButton, OdxImage, OdxInlineMessage, OdxInput, OdxKpi, OdxLineClamp, OdxLink, OdxList, OdxListItem, OdxLoadingOverlay, OdxLoadingSpinner, OdxLogo, OdxMainMenu, OdxMainMenuButton, OdxMainMenuSubtitle, OdxMainMenuTitle, OdxMenu, OdxMenuItem, OdxMenuLabel, OdxModal, OdxNavigationItem, OdxOption, OdxPage, OdxPageLayout, OdxPagination, OdxPopover, OdxProgressBar, OdxProgressRing, OdxRadioButton, OdxRadioGroup, OdxRailNavigation, OdxRelativeTime, OdxSearchBar, OdxSelect, OdxSeparator, OdxSkeleton, OdxSlider, OdxSliderHandle, OdxSliderMarks, OdxSpacer, OdxSpinbox, OdxStatus, OdxSwitch, OdxTable, OdxTableBody, OdxTableCell, OdxTableCheckboxCell, OdxTableHeader, OdxTableHeaderCell, OdxTableRow, OdxText, OdxTitle, OdxToast, OdxToggleButton, OdxToggleButtonGroup, OdxToggleContent, OdxTooltip, OdxTranslate, OdxVisuallyHidden, PageAlignment, PageLayout, ProgressRingSize, RadioGroupLayout, SearchBarBehavior, SearchEvent, SeparatorAlign, SkeletonShape, SkeletonSize, SliderLabelVisibility, SliderTrackVisibility, StatusVariant, TextSize, TextVariant, TitleSize, ToastVariant, TooltipPlacement, TooltipSize, sliderContext, tableContext };
|
|
4555
|
+
export { AccordionIndicatorPosition, AccordionItemSize, AnchorObserver, AreaHeaderSize, AutoGridMode, AvatarShape, AvatarSize, AvatarVariant, BadgeVariant, BaseFormat, ButtonSize, ButtonVariant, CheckboxGroupLayout, ChipVariant, DropdownPlacement, EmptyStateSize, EmptyStateVariant, GradientOverlaySize, HighlightVariant, InlineMessageVariant, KpiSize, KpiVariant, LOADING_OVERLAY_HOST_DIRECTIVE, LogoSize, ModalLayout, NavigationItemSize, OdxAccordion, OdxAccordionItem, OdxAccordionPanel, OdxActionButton, OdxAnchorNavigation, OdxAreaHeader, OdxAutoGrid, OdxAutocomplete, OdxAvatar, OdxBadge, OdxBreadcrumbs, OdxBreadcrumbsItem, OdxButton, OdxButtonGroup, OdxCard, OdxCheckbox, OdxCheckboxGroup, OdxChip, OdxContentBox, OdxDropdown, OdxEmptyState, OdxFormField, OdxFormatBytes, OdxFormatDate, OdxFormatNumber, OdxGradientOverlay, OdxHeader, OdxHeaderActions, OdxHighlight, OdxIconButton, OdxImage, OdxInlineMessage, OdxInput, OdxKpi, OdxLineClamp, OdxLink, OdxList, OdxListItem, OdxLoadingOverlay, OdxLoadingSpinner, OdxLogo, OdxMainMenu, OdxMainMenuButton, OdxMainMenuSubtitle, OdxMainMenuTitle, OdxMenu, OdxMenuItem, OdxMenuLabel, OdxModal, OdxNavigationItem, OdxOption, OdxPage, OdxPageLayout, OdxPagination, OdxPopover, OdxProgressBar, OdxProgressRing, OdxRadioButton, OdxRadioGroup, OdxRailNavigation, OdxRelativeTime, OdxSearchBar, OdxSelect, OdxSeparator, OdxSkeleton, OdxSlider, OdxSliderHandle, OdxSliderMarks, OdxSpacer, OdxSpinbox, OdxStatus, OdxSwitch, OdxTable, OdxTableBody, OdxTableCell, OdxTableCheckboxCell, OdxTableHeader, OdxTableHeaderCell, OdxTableRow, OdxText, OdxTitle, OdxToast, OdxToggleButton, OdxToggleButtonGroup, OdxToggleContent, OdxTooltip, OdxTranslate, OdxVisuallyHidden, PageAlignment, PageLayout, ProgressRingSize, RadioGroupLayout, SearchBarBehavior, SearchEvent, SeparatorAlign, SkeletonShape, SkeletonSize, SliderLabelVisibility, SliderTrackVisibility, StatusVariant, TextSize, TextVariant, TitleSize, ToastVariant, TooltipPlacement, TooltipSize, sliderContext, tableContext };
|
package/dist/lib/utils/lit.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { nothing, ReactiveElement, TemplateResult } from 'lit';
|
|
2
2
|
export declare const optionalAttr: <T>(value: T) => NonNullable<T>;
|
|
3
|
-
export declare function optionalSlot(host: ReactiveElement, slotName: string): TemplateResult | typeof nothing;
|
|
3
|
+
export declare function optionalSlot(host: ReactiveElement, slotName: string, classNames?: string): TemplateResult | typeof nothing;
|
package/dist/main.js
CHANGED
|
@@ -5,7 +5,7 @@ import { r as round, u as uniqBy, R as RovingTabindexController, m as minBy, p a
|
|
|
5
5
|
|
|
6
6
|
const name = "@odx/foundation";
|
|
7
7
|
const displayName = "ODX Design System Foundation";
|
|
8
|
-
const version = "1.0.0-beta.
|
|
8
|
+
const version = "1.0.0-beta.123";
|
|
9
9
|
const pkg = {
|
|
10
10
|
name,
|
|
11
11
|
displayName,
|
|
@@ -929,10 +929,10 @@ class ExpandableItemManager {
|
|
|
929
929
|
const optionalAttr = (value) => {
|
|
930
930
|
return value == null || value === "" ? nothing : value;
|
|
931
931
|
};
|
|
932
|
-
function optionalSlot(host, slotName) {
|
|
932
|
+
function optionalSlot(host, slotName, classNames) {
|
|
933
933
|
if (host.querySelector(`[slot="${slotName}"]`)) {
|
|
934
934
|
return html`
|
|
935
|
-
<div class="${slotName}">
|
|
935
|
+
<div class="${slotName}${classNames ? ` ${classNames}` : ""}">
|
|
936
936
|
<slot name="${slotName}" @slotchange="${() => host.requestUpdate()}"></slot>
|
|
937
937
|
</div>
|
|
938
938
|
`;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@odx/foundation",
|
|
3
3
|
"displayName": "ODX Design System Foundation",
|
|
4
4
|
"description": "A library of Web Component building blocks for ODX",
|
|
5
|
-
"version": "1.0.0-beta.
|
|
5
|
+
"version": "1.0.0-beta.123",
|
|
6
6
|
"author": "Drägerwerk AG & Co.KGaA",
|
|
7
7
|
"license": "SEE LICENSE IN LICENSE",
|
|
8
8
|
"homepage": "https://odx.draeger.com",
|