@omicronenergy/oscd-ui 0.0.2 → 0.0.3
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/app-bar/OscdAppBar.d.ts +45 -0
- package/app-bar/OscdAppBar.js +142 -0
- package/app-bar/OscdAppBar.js.map +1 -0
- package/app-bar/OscdAppBar.stories.d.ts +10 -0
- package/app-bar/OscdAppBar.stories.js +85 -0
- package/app-bar/OscdAppBar.stories.js.map +1 -0
- package/app-bar/oscd-app-bar.d.ts +12 -0
- package/app-bar/oscd-app-bar.js +14 -0
- package/app-bar/oscd-app-bar.js.map +1 -0
- package/button/OscdButton.stories.d.ts +7 -0
- package/button/OscdButton.stories.js +60 -0
- package/button/OscdButton.stories.js.map +1 -0
- package/button/OscdFilledButton.d.ts +40 -0
- package/button/OscdFilledButton.js +42 -0
- package/button/OscdFilledButton.js.map +1 -0
- package/button/OscdFilledButton.spec.d.ts +6 -0
- package/button/OscdFilledButton.spec.js +75 -0
- package/button/OscdFilledButton.spec.js.map +1 -0
- package/button/OscdOutlinedButton.d.ts +42 -0
- package/button/OscdOutlinedButton.js +34 -0
- package/button/OscdOutlinedButton.js.map +1 -0
- package/button/OscdTextButton.d.ts +40 -0
- package/button/OscdTextButton.js +32 -0
- package/button/OscdTextButton.js.map +1 -0
- package/button/oscd-filled-button.d.ts +2 -0
- package/button/oscd-filled-button.js +4 -0
- package/button/oscd-filled-button.js.map +1 -0
- package/button/oscd-outlined-button.d.ts +7 -0
- package/button/oscd-outlined-button.js +9 -0
- package/button/oscd-outlined-button.js.map +1 -0
- package/button/oscd-text-button.d.ts +7 -0
- package/button/oscd-text-button.js +9 -0
- package/button/oscd-text-button.js.map +1 -0
- package/dialog/OscdDialog.d.ts +47 -0
- package/dialog/OscdDialog.js +38 -0
- package/dialog/OscdDialog.js.map +1 -0
- package/dialog/OscdDialog.stories.d.ts +5 -0
- package/dialog/OscdDialog.stories.js +50 -0
- package/dialog/OscdDialog.stories.js.map +1 -0
- package/dialog/oscd-dialog.d.ts +2 -0
- package/dialog/oscd-dialog.js +4 -0
- package/dialog/oscd-dialog.js.map +1 -0
- package/divider/OscdDivider.d.ts +30 -0
- package/divider/OscdDivider.js +21 -0
- package/divider/OscdDivider.js.map +1 -0
- package/divider/OscdDivider.stories.d.ts +5 -0
- package/divider/OscdDivider.stories.js +28 -0
- package/divider/OscdDivider.stories.js.map +1 -0
- package/divider/oscd-divider.d.ts +2 -0
- package/divider/oscd-divider.js +4 -0
- package/divider/oscd-divider.js.map +1 -0
- package/elevation/OscdElevation.d.ts +28 -0
- package/elevation/OscdElevation.js +19 -0
- package/elevation/OscdElevation.js.map +1 -0
- package/elevation/oscd-elevation.d.ts +7 -0
- package/elevation/oscd-elevation.js +9 -0
- package/elevation/oscd-elevation.js.map +1 -0
- package/field/OscdFilledField.d.ts +24 -0
- package/field/OscdFilledField.js +16 -0
- package/field/OscdFilledField.js.map +1 -0
- package/field/OscdOutlinedField.d.ts +24 -0
- package/field/OscdOutlinedField.js +16 -0
- package/field/OscdOutlinedField.js.map +1 -0
- package/field/oscd-filled-field.d.ts +2 -0
- package/field/oscd-filled-field.js +4 -0
- package/field/oscd-filled-field.js.map +1 -0
- package/field/oscd-outlined-field.d.ts +2 -0
- package/field/oscd-outlined-field.js +4 -0
- package/field/oscd-outlined-field.js.map +1 -0
- package/icon/OscdIcon.d.ts +25 -0
- package/icon/OscdIcon.js +16 -0
- package/icon/OscdIcon.js.map +1 -0
- package/icon/OscdIcon.stories.d.ts +5 -0
- package/icon/OscdIcon.stories.js +54 -0
- package/icon/OscdIcon.stories.js.map +1 -0
- package/icon/oscd-icon.d.ts +2 -0
- package/icon/oscd-icon.js +4 -0
- package/icon/oscd-icon.js.map +1 -0
- package/iconbutton/OscdFilledIconButton.d.ts +44 -0
- package/iconbutton/OscdFilledIconButton.js +37 -0
- package/iconbutton/OscdFilledIconButton.js.map +1 -0
- package/iconbutton/OscdFilledTonalIconButton.d.ts +44 -0
- package/iconbutton/OscdFilledTonalIconButton.js +37 -0
- package/iconbutton/OscdFilledTonalIconButton.js.map +1 -0
- package/iconbutton/OscdIconButton.d.ts +43 -0
- package/iconbutton/OscdIconButton.js +36 -0
- package/iconbutton/OscdIconButton.js.map +1 -0
- package/iconbutton/OscdIconButton.stories.d.ts +7 -0
- package/iconbutton/OscdIconButton.stories.js +101 -0
- package/iconbutton/OscdIconButton.stories.js.map +1 -0
- package/iconbutton/OutlinedIconButton.d.ts +43 -0
- package/iconbutton/OutlinedIconButton.js +36 -0
- package/iconbutton/OutlinedIconButton.js.map +1 -0
- package/iconbutton/oscd-filled-icon-button.d.ts +2 -0
- package/iconbutton/oscd-filled-icon-button.js +4 -0
- package/iconbutton/oscd-filled-icon-button.js.map +1 -0
- package/iconbutton/oscd-filled-tonal-icon-button.d.ts +2 -0
- package/iconbutton/oscd-filled-tonal-icon-button.js +4 -0
- package/iconbutton/oscd-filled-tonal-icon-button.js.map +1 -0
- package/iconbutton/oscd-icon-button.d.ts +2 -0
- package/iconbutton/oscd-icon-button.js +4 -0
- package/iconbutton/oscd-icon-button.js.map +1 -0
- package/iconbutton/oscd-outlined-icon-button.d.ts +2 -0
- package/iconbutton/oscd-outlined-icon-button.js +4 -0
- package/iconbutton/oscd-outlined-icon-button.js.map +1 -0
- package/list/OscdList.d.ts +39 -0
- package/list/OscdList.js +44 -0
- package/list/OscdList.js.map +1 -0
- package/list/OscdList.stories.d.ts +5 -0
- package/list/OscdList.stories.js +30 -0
- package/list/OscdList.stories.js.map +1 -0
- package/list/OscdListItem.d.ts +59 -0
- package/list/OscdListItem.js +80 -0
- package/list/OscdListItem.js.map +1 -0
- package/list/oscd-list-item.d.ts +2 -0
- package/list/oscd-list-item.js +4 -0
- package/list/oscd-list-item.js.map +1 -0
- package/list/oscd-list.d.ts +2 -0
- package/list/oscd-list.js +4 -0
- package/list/oscd-list.js.map +1 -0
- package/menu/OscdMenu.d.ts +73 -0
- package/menu/OscdMenu.js +62 -0
- package/menu/OscdMenu.js.map +1 -0
- package/menu/OscdMenu.stories.d.ts +5 -0
- package/menu/OscdMenu.stories.js +29 -0
- package/menu/OscdMenu.stories.js.map +1 -0
- package/menu/OscdMenuItem.d.ts +37 -0
- package/menu/OscdMenuItem.js +26 -0
- package/menu/OscdMenuItem.js.map +1 -0
- package/menu/OscdMenuItem.stories.d.ts +5 -0
- package/menu/OscdMenuItem.stories.js +37 -0
- package/menu/OscdMenuItem.stories.js.map +1 -0
- package/menu/oscd-menu-item.d.ts +2 -0
- package/menu/oscd-menu-item.js +4 -0
- package/menu/oscd-menu-item.js.map +1 -0
- package/menu/oscd-menu.d.ts +1 -0
- package/menu/oscd-menu.js +4 -0
- package/menu/oscd-menu.js.map +1 -0
- package/navigation-drawer/OscdNavigationDrawer.d.ts +15 -0
- package/navigation-drawer/OscdNavigationDrawer.js +37 -0
- package/navigation-drawer/OscdNavigationDrawer.js.map +1 -0
- package/navigation-drawer/OscdNavigationDrawer.stories.d.ts +5 -0
- package/navigation-drawer/OscdNavigationDrawer.stories.js +97 -0
- package/navigation-drawer/OscdNavigationDrawer.stories.js.map +1 -0
- package/navigation-drawer/OscdNavigationDrawerHeader.d.ts +15 -0
- package/navigation-drawer/OscdNavigationDrawerHeader.js +61 -0
- package/navigation-drawer/OscdNavigationDrawerHeader.js.map +1 -0
- package/navigation-drawer/OscdNavigationDrawerHeader.stories.d.ts +5 -0
- package/navigation-drawer/OscdNavigationDrawerHeader.stories.js +35 -0
- package/navigation-drawer/OscdNavigationDrawerHeader.stories.js.map +1 -0
- package/navigation-drawer/oscd-navigation-drawer-header.d.ts +2 -0
- package/navigation-drawer/oscd-navigation-drawer-header.js +4 -0
- package/navigation-drawer/oscd-navigation-drawer-header.js.map +1 -0
- package/navigation-drawer/oscd-navigation-drawer.d.ts +7 -0
- package/navigation-drawer/oscd-navigation-drawer.js +4 -0
- package/navigation-drawer/oscd-navigation-drawer.js.map +1 -0
- package/package.json +3 -2
- package/select/OscdFilledSelect.d.ts +47 -0
- package/select/OscdFilledSelect.js +39 -0
- package/select/OscdFilledSelect.js.map +1 -0
- package/select/OscdFilledSelect.stories.d.ts +5 -0
- package/select/OscdFilledSelect.stories.js +29 -0
- package/select/OscdFilledSelect.stories.js.map +1 -0
- package/select/OscdOutlinedSelect.d.ts +47 -0
- package/select/OscdOutlinedSelect.js +39 -0
- package/select/OscdOutlinedSelect.js.map +1 -0
- package/select/OscdOutlinedSelect.stories.d.ts +5 -0
- package/select/OscdOutlinedSelect.stories.js +29 -0
- package/select/OscdOutlinedSelect.stories.js.map +1 -0
- package/select/OscdSelectOption.d.ts +51 -0
- package/select/OscdSelectOption.js +41 -0
- package/select/OscdSelectOption.js.map +1 -0
- package/select/oscd-filled-select.d.ts +2 -0
- package/select/oscd-filled-select.js +4 -0
- package/select/oscd-filled-select.js.map +1 -0
- package/select/oscd-outlined-select.d.ts +2 -0
- package/select/oscd-outlined-select.js +4 -0
- package/select/oscd-outlined-select.js.map +1 -0
- package/select/oscd-select-option.d.ts +2 -0
- package/select/oscd-select-option.js +4 -0
- package/select/oscd-select-option.js.map +1 -0
- package/tabs/OscdPrimaryTab.d.ts +26 -0
- package/tabs/OscdPrimaryTab.js +18 -0
- package/tabs/OscdPrimaryTab.js.map +1 -0
- package/tabs/OscdPrimaryTab.stories.d.ts +5 -0
- package/tabs/OscdPrimaryTab.stories.js +33 -0
- package/tabs/OscdPrimaryTab.stories.js.map +1 -0
- package/tabs/OscdSecondaryTab.d.ts +26 -0
- package/tabs/OscdSecondaryTab.js +18 -0
- package/tabs/OscdSecondaryTab.js.map +1 -0
- package/tabs/OscdSecondaryTab.stories.d.ts +5 -0
- package/tabs/OscdSecondaryTab.stories.js +33 -0
- package/tabs/OscdSecondaryTab.stories.js.map +1 -0
- package/tabs/OscdTabs.d.ts +26 -0
- package/tabs/OscdTabs.js +17 -0
- package/tabs/OscdTabs.js.map +1 -0
- package/tabs/OscdTabs.stories.d.ts +5 -0
- package/tabs/OscdTabs.stories.js +29 -0
- package/tabs/OscdTabs.stories.js.map +1 -0
- package/tabs/oscd-primary-tab.d.ts +2 -0
- package/tabs/oscd-primary-tab.js +4 -0
- package/tabs/oscd-primary-tab.js.map +1 -0
- package/tabs/oscd-secondary-tab.d.ts +2 -0
- package/tabs/oscd-secondary-tab.js +4 -0
- package/tabs/oscd-secondary-tab.js.map +1 -0
- package/tabs/oscd-tabs.d.ts +2 -0
- package/tabs/oscd-tabs.js +4 -0
- package/tabs/oscd-tabs.js.map +1 -0
- package/textfield/OscdFilledTextField.d.ts +31 -0
- package/textfield/OscdFilledTextField.js +30 -0
- package/textfield/OscdFilledTextField.js.map +1 -0
- package/textfield/OscdOutlinedTextField.d.ts +27 -0
- package/textfield/OscdOutlinedTextField.js +24 -0
- package/textfield/OscdOutlinedTextField.js.map +1 -0
- package/textfield/oscd-filled-text-field.d.ts +2 -0
- package/textfield/oscd-filled-text-field.js +4 -0
- package/textfield/oscd-filled-text-field.js.map +1 -0
- package/textfield/oscd-outlined-text-field.d.ts +2 -0
- package/textfield/oscd-outlined-text-field.js +4 -0
- package/textfield/oscd-outlined-text-field.js.map +1 -0
- package/theming/AllComponents.stories.d.ts +5 -0
- package/theming/AllComponents.stories.js +309 -0
- package/theming/AllComponents.stories.js.map +1 -0
- package/utils/storybook/getStorybookHelpers.d.ts +4 -0
- package/utils/storybook/getStorybookHelpers.js +53 -0
- package/utils/storybook/getStorybookHelpers.js.map +1 -0
- package/utils/storybook/scopedWcDecorator.d.ts +2 -0
- package/utils/storybook/scopedWcDecorator.js +27 -0
- package/utils/storybook/scopedWcDecorator.js.map +1 -0
- package/utils/storybook/themingDecorator.d.ts +17 -0
- package/utils/storybook/themingDecorator.js +100 -0
- package/utils/storybook/themingDecorator.js.map +1 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { OutlinedButton } from '@material/web/button/internal/outlined-button.js';
|
|
7
|
+
import { styles as outlinedStyles } from '@material/web/button/internal/outlined-styles.js';
|
|
8
|
+
import { styles as sharedStyles } from '@material/web/button/internal/shared-styles.js';
|
|
9
|
+
/**
|
|
10
|
+
* @summary Buttons help people take action, such as sending an email, sharing a
|
|
11
|
+
* document, or liking a comment.
|
|
12
|
+
*
|
|
13
|
+
* @description
|
|
14
|
+
* __Emphasis:__ Medium emphasis – For important actions that don’t distract
|
|
15
|
+
* from other onscreen elements.
|
|
16
|
+
*
|
|
17
|
+
* __Rationale:__ Use an outlined button for actions that need attention but
|
|
18
|
+
* aren’t the primary action, such as “See all” or “Add to cart.” This is also
|
|
19
|
+
* the button to use for giving someone the opportunity to change their mind or
|
|
20
|
+
* escape a flow.
|
|
21
|
+
*
|
|
22
|
+
* __Example usages:__
|
|
23
|
+
* - Reply
|
|
24
|
+
* - View all
|
|
25
|
+
* - Add to cart
|
|
26
|
+
* - Take out of trash
|
|
27
|
+
*
|
|
28
|
+
* @final
|
|
29
|
+
* @suppress {visibility}
|
|
30
|
+
*/
|
|
31
|
+
export class OscdOutlinedButton extends OutlinedButton {
|
|
32
|
+
static styles = [sharedStyles, outlinedStyles];
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=OscdOutlinedButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OscdOutlinedButton.js","sourceRoot":"","sources":["OscdOutlinedButton.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,OAAO,EAAC,cAAc,EAAC,MAAM,kDAAkD,CAAC;AAChF,OAAO,EAAC,MAAM,IAAI,cAAc,EAAC,MAAM,kDAAkD,CAAC;AAC1F,OAAO,EAAC,MAAM,IAAI,YAAY,EAAC,MAAM,gDAAgD,CAAC;AAQtF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,OAAO,kBAAmB,SAAQ,cAAc;IACpD,MAAM,CAAU,MAAM,GAAwB,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * @license\n * Copyright 2025 OMICRON Electronics GmbH\n * SPDX-License-Identifier: Apache-2.0\n */\nimport {CSSResultOrNative} from 'lit';\n\nimport {OutlinedButton} from '@material/web/button/internal/outlined-button.js';\nimport {styles as outlinedStyles} from '@material/web/button/internal/outlined-styles.js';\nimport {styles as sharedStyles} from '@material/web/button/internal/shared-styles.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'md-outlined-button': OscdOutlinedButton;\n }\n}\n\n/**\n * @summary Buttons help people take action, such as sending an email, sharing a\n * document, or liking a comment.\n *\n * @description\n * __Emphasis:__ Medium emphasis – For important actions that don’t distract\n * from other onscreen elements.\n *\n * __Rationale:__ Use an outlined button for actions that need attention but\n * aren’t the primary action, such as “See all” or “Add to cart.” This is also\n * the button to use for giving someone the opportunity to change their mind or\n * escape a flow.\n *\n * __Example usages:__\n * - Reply\n * - View all\n * - Add to cart\n * - Take out of trash\n *\n * @final\n * @suppress {visibility}\n */\nexport class OscdOutlinedButton extends OutlinedButton {\n static override styles: CSSResultOrNative[] = [sharedStyles, outlinedStyles];\n}\n"]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @license
|
|
8
|
+
* Copyright 2025 OMICRON Electronics GmbH
|
|
9
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
10
|
+
*/
|
|
11
|
+
import { CSSResultOrNative } from "lit";
|
|
12
|
+
import { TextButton } from "@material/web/button/internal/text-button.js";
|
|
13
|
+
declare global {
|
|
14
|
+
interface HTMLElementTagNameMap {
|
|
15
|
+
"oscd-text-button": OscdTextButton;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @summary Buttons help people take action, such as sending an email, sharing a
|
|
20
|
+
* document, or liking a comment.
|
|
21
|
+
*
|
|
22
|
+
* @description
|
|
23
|
+
* __Emphasis:__ Low emphasis – For optional or supplementary actions with the
|
|
24
|
+
* least amount of prominence
|
|
25
|
+
*
|
|
26
|
+
* __Rationale:__ Text buttons have less visual prominence, so should be used
|
|
27
|
+
* for low emphasis actions, such as an alternative option.
|
|
28
|
+
*
|
|
29
|
+
* __Example usages:__
|
|
30
|
+
* - Learn more
|
|
31
|
+
* - View all
|
|
32
|
+
* - Change account
|
|
33
|
+
* - Turn on
|
|
34
|
+
*
|
|
35
|
+
* @final
|
|
36
|
+
* @suppress {visibility}
|
|
37
|
+
*/
|
|
38
|
+
export declare class OscdTextButton extends TextButton {
|
|
39
|
+
static styles: CSSResultOrNative[];
|
|
40
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { styles as sharedStyles } from "@material/web/button/internal/shared-styles.js";
|
|
7
|
+
import { TextButton } from "@material/web/button/internal/text-button.js";
|
|
8
|
+
import { styles as textStyles } from "@material/web/button/internal/text-styles.js";
|
|
9
|
+
/**
|
|
10
|
+
* @summary Buttons help people take action, such as sending an email, sharing a
|
|
11
|
+
* document, or liking a comment.
|
|
12
|
+
*
|
|
13
|
+
* @description
|
|
14
|
+
* __Emphasis:__ Low emphasis – For optional or supplementary actions with the
|
|
15
|
+
* least amount of prominence
|
|
16
|
+
*
|
|
17
|
+
* __Rationale:__ Text buttons have less visual prominence, so should be used
|
|
18
|
+
* for low emphasis actions, such as an alternative option.
|
|
19
|
+
*
|
|
20
|
+
* __Example usages:__
|
|
21
|
+
* - Learn more
|
|
22
|
+
* - View all
|
|
23
|
+
* - Change account
|
|
24
|
+
* - Turn on
|
|
25
|
+
*
|
|
26
|
+
* @final
|
|
27
|
+
* @suppress {visibility}
|
|
28
|
+
*/
|
|
29
|
+
export class OscdTextButton extends TextButton {
|
|
30
|
+
static styles = [sharedStyles, textStyles];
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=OscdTextButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OscdTextButton.js","sourceRoot":"","sources":["OscdTextButton.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAC1E,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAQpF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,OAAO,cAAe,SAAQ,UAAU;IAC5C,MAAM,CAAU,MAAM,GAAwB,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * @license\n * Copyright 2025 OMICRON Electronics GmbH\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { CSSResultOrNative } from \"lit\";\nimport { styles as sharedStyles } from \"@material/web/button/internal/shared-styles.js\";\nimport { TextButton } from \"@material/web/button/internal/text-button.js\";\nimport { styles as textStyles } from \"@material/web/button/internal/text-styles.js\";\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"oscd-text-button\": OscdTextButton;\n }\n}\n\n/**\n * @summary Buttons help people take action, such as sending an email, sharing a\n * document, or liking a comment.\n *\n * @description\n * __Emphasis:__ Low emphasis – For optional or supplementary actions with the\n * least amount of prominence\n *\n * __Rationale:__ Text buttons have less visual prominence, so should be used\n * for low emphasis actions, such as an alternative option.\n *\n * __Example usages:__\n * - Learn more\n * - View all\n * - Change account\n * - Turn on\n *\n * @final\n * @suppress {visibility}\n */\nexport class OscdTextButton extends TextButton {\n static override styles: CSSResultOrNative[] = [sharedStyles, textStyles];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oscd-filled-button.js","sourceRoot":"","sources":["oscd-filled-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,cAAc,CAAC,MAAM,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,CAAC","sourcesContent":["import { OscdFilledButton } from \"./OscdFilledButton\";\n\ncustomElements.define(\"oscd-filled-button\", OscdFilledButton);\nexport { OscdFilledButton };\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 OMICRON Electronics GmbH
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { OscdOutlinedButton } from "./OscdOutlinedButton";
|
|
7
|
+
customElements.define("oscd-outlined-button", OscdOutlinedButton);
|
|
8
|
+
export { OscdOutlinedButton };
|
|
9
|
+
//# sourceMappingURL=oscd-outlined-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oscd-outlined-button.js","sourceRoot":"","sources":["oscd-outlined-button.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,cAAc,CAAC,MAAM,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2025 OMICRON Electronics GmbH\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { OscdOutlinedButton } from \"./OscdOutlinedButton\";\n\ncustomElements.define(\"oscd-outlined-button\", OscdOutlinedButton);\nexport { OscdOutlinedButton };\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 OMICRON Electronics GmbH
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { OscdTextButton } from "./OscdTextButton";
|
|
7
|
+
customElements.define("oscd-text-button", OscdTextButton);
|
|
8
|
+
export { OscdTextButton };
|
|
9
|
+
//# sourceMappingURL=oscd-text-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oscd-text-button.js","sourceRoot":"","sources":["oscd-text-button.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAc,CAAC,MAAM,CAAC,kBAAkB,EAAE,cAAc,CAAC,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2025 OMICRON Electronics GmbH\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { OscdTextButton } from \"./OscdTextButton\";\n\ncustomElements.define(\"oscd-text-button\", OscdTextButton);\nexport { OscdTextButton };\n"]}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @license
|
|
8
|
+
* Copyright 2025 OMICRON Electronics GmbH
|
|
9
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
10
|
+
*/
|
|
11
|
+
import { CSSResultOrNative } from "lit";
|
|
12
|
+
import { Dialog } from "@material/web/dialog/internal/dialog.js";
|
|
13
|
+
declare global {
|
|
14
|
+
interface HTMLElementTagNameMap {
|
|
15
|
+
"oscd-dialog": OscdDialog;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @summary Dialogs can require an action, communicate information, or help
|
|
20
|
+
* users accomplish a task. There are two types of dialogs: basic and
|
|
21
|
+
* full-screen.
|
|
22
|
+
*
|
|
23
|
+
* @description
|
|
24
|
+
* A dialog is a modal window that appears in front of app content to provide
|
|
25
|
+
* critical information or ask for a decision. Dialogs disable all app
|
|
26
|
+
* functionality when they appear, and remain on screen until confirmed,
|
|
27
|
+
* dismissed, or a required action has been taken.
|
|
28
|
+
*
|
|
29
|
+
* Dialogs are purposefully interruptive, so they should be used sparingly.
|
|
30
|
+
* A less disruptive alternative is to use a menu, which provides options
|
|
31
|
+
* without interrupting a user’s experience.
|
|
32
|
+
*
|
|
33
|
+
* On mobile devices only, complex dialogs should be displayed fullscreen.
|
|
34
|
+
*
|
|
35
|
+
* __Example usages:__
|
|
36
|
+
* - Common use cases for basic dialogs include alerts, quick selection, and
|
|
37
|
+
* confirmation.
|
|
38
|
+
* - More complex dialogs may contain actions that require a series of tasks
|
|
39
|
+
* to complete. One example is creating a calendar entry with the event title,
|
|
40
|
+
* date, location, and time.
|
|
41
|
+
*
|
|
42
|
+
* @final
|
|
43
|
+
* @suppress {visibility}
|
|
44
|
+
*/
|
|
45
|
+
export declare class OscdDialog extends Dialog {
|
|
46
|
+
static styles: CSSResultOrNative[];
|
|
47
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { Dialog } from "@material/web/dialog/internal/dialog.js";
|
|
7
|
+
import { styles } from "@material/web/dialog/internal/dialog-styles.js";
|
|
8
|
+
/**
|
|
9
|
+
* @summary Dialogs can require an action, communicate information, or help
|
|
10
|
+
* users accomplish a task. There are two types of dialogs: basic and
|
|
11
|
+
* full-screen.
|
|
12
|
+
*
|
|
13
|
+
* @description
|
|
14
|
+
* A dialog is a modal window that appears in front of app content to provide
|
|
15
|
+
* critical information or ask for a decision. Dialogs disable all app
|
|
16
|
+
* functionality when they appear, and remain on screen until confirmed,
|
|
17
|
+
* dismissed, or a required action has been taken.
|
|
18
|
+
*
|
|
19
|
+
* Dialogs are purposefully interruptive, so they should be used sparingly.
|
|
20
|
+
* A less disruptive alternative is to use a menu, which provides options
|
|
21
|
+
* without interrupting a user’s experience.
|
|
22
|
+
*
|
|
23
|
+
* On mobile devices only, complex dialogs should be displayed fullscreen.
|
|
24
|
+
*
|
|
25
|
+
* __Example usages:__
|
|
26
|
+
* - Common use cases for basic dialogs include alerts, quick selection, and
|
|
27
|
+
* confirmation.
|
|
28
|
+
* - More complex dialogs may contain actions that require a series of tasks
|
|
29
|
+
* to complete. One example is creating a calendar entry with the event title,
|
|
30
|
+
* date, location, and time.
|
|
31
|
+
*
|
|
32
|
+
* @final
|
|
33
|
+
* @suppress {visibility}
|
|
34
|
+
*/
|
|
35
|
+
export class OscdDialog extends Dialog {
|
|
36
|
+
static styles = [styles];
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=OscdDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OscdDialog.js","sourceRoot":"","sources":["OscdDialog.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,OAAO,EAAE,MAAM,EAAE,MAAM,yCAAyC,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,gDAAgD,CAAC;AAQxE;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,OAAO,UAAW,SAAQ,MAAM;IACpC,MAAM,CAAU,MAAM,GAAwB,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * @license\n * Copyright 2025 OMICRON Electronics GmbH\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { CSSResultOrNative } from \"lit\";\nimport { Dialog } from \"@material/web/dialog/internal/dialog.js\";\nimport { styles } from \"@material/web/dialog/internal/dialog-styles.js\";\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"oscd-dialog\": OscdDialog;\n }\n}\n\n/**\n * @summary Dialogs can require an action, communicate information, or help\n * users accomplish a task. There are two types of dialogs: basic and\n * full-screen.\n *\n * @description\n * A dialog is a modal window that appears in front of app content to provide\n * critical information or ask for a decision. Dialogs disable all app\n * functionality when they appear, and remain on screen until confirmed,\n * dismissed, or a required action has been taken.\n *\n * Dialogs are purposefully interruptive, so they should be used sparingly.\n * A less disruptive alternative is to use a menu, which provides options\n * without interrupting a user’s experience.\n *\n * On mobile devices only, complex dialogs should be displayed fullscreen.\n *\n * __Example usages:__\n * - Common use cases for basic dialogs include alerts, quick selection, and\n * confirmation.\n * - More complex dialogs may contain actions that require a series of tasks\n * to complete. One example is creating a calendar entry with the event title,\n * date, location, and time.\n *\n * @final\n * @suppress {visibility}\n */\nexport class OscdDialog extends Dialog {\n static override styles: CSSResultOrNative[] = [styles];\n}\n"]}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import { OscdDialog } from "dialog/OscdDialog";
|
|
3
|
+
import { OscdFilledButton } from "button/OscdFilledButton";
|
|
4
|
+
import { scopedWcDecorator } from "utils/storybook/scopedWcDecorator.js";
|
|
5
|
+
const meta = {
|
|
6
|
+
title: "Open SCD/Dialog",
|
|
7
|
+
component: "oscd-dialog",
|
|
8
|
+
tags: ["autodocs"],
|
|
9
|
+
decorators: [scopedWcDecorator],
|
|
10
|
+
parameters: {
|
|
11
|
+
layout: "centered",
|
|
12
|
+
scopedElements: {
|
|
13
|
+
"oscd-dialog": OscdDialog,
|
|
14
|
+
"oscd-filled-button": OscdFilledButton,
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
render: ({ open }) => html `
|
|
18
|
+
<oscd-dialog ?open=${open}>
|
|
19
|
+
<div slot="headline">Confirm Action</div>
|
|
20
|
+
<div slot="content">
|
|
21
|
+
Are you sure you want to proceed with this operation? This action cannot
|
|
22
|
+
be undone.
|
|
23
|
+
</div>
|
|
24
|
+
<div slot="actions">
|
|
25
|
+
<oscd-filled-button @click=${() => console.log("Cancelled")}
|
|
26
|
+
>Cancel</oscd-filled-button
|
|
27
|
+
>
|
|
28
|
+
<oscd-filled-button @click=${() => console.log("Confirmed")}
|
|
29
|
+
>Confirm</oscd-filled-button
|
|
30
|
+
>
|
|
31
|
+
</div>
|
|
32
|
+
</oscd-dialog>
|
|
33
|
+
`,
|
|
34
|
+
argTypes: {
|
|
35
|
+
open: {
|
|
36
|
+
control: { type: "boolean" },
|
|
37
|
+
description: "Defines whether the dialog is open or closed.",
|
|
38
|
+
table: {
|
|
39
|
+
defaultValue: { summary: "true" },
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
export default meta;
|
|
45
|
+
export const Default = {
|
|
46
|
+
args: {
|
|
47
|
+
open: true,
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=OscdDialog.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OscdDialog.stories.js","sourceRoot":"","sources":["OscdDialog.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAG3B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAEzE,MAAM,IAAI,GAAS;IACjB,KAAK,EAAE,iBAAiB;IACxB,SAAS,EAAE,aAAa;IACxB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE,CAAC,iBAAiB,CAAC;IAC/B,UAAU,EAAE;QACV,MAAM,EAAE,UAAU;QAClB,cAAc,EAAE;YACd,aAAa,EAAE,UAAU;YACzB,oBAAoB,EAAE,gBAAgB;SACvC;KACF;IACD,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAA;yBACH,IAAI;;;;;;;qCAOQ,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC;;;qCAG9B,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC;;;;;GAKhE;IACD,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;YAC5B,WAAW,EAAE,+CAA+C;YAC5D,KAAK,EAAE;gBACL,YAAY,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;aAClC;SACF;KACF;CACF,CAAC;AAEF,eAAe,IAAI,CAAC;AAGpB,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE;QACJ,IAAI,EAAE,IAAI;KACX;CACF,CAAC","sourcesContent":["import { html } from \"lit\";\nimport type { Meta, StoryObj } from \"@storybook/web-components\";\n\nimport { OscdDialog } from \"dialog/OscdDialog\";\nimport { OscdFilledButton } from \"button/OscdFilledButton\";\nimport { scopedWcDecorator } from \"utils/storybook/scopedWcDecorator.js\";\n\nconst meta: Meta = {\n title: \"Open SCD/Dialog\",\n component: \"oscd-dialog\",\n tags: [\"autodocs\"],\n decorators: [scopedWcDecorator],\n parameters: {\n layout: \"centered\",\n scopedElements: {\n \"oscd-dialog\": OscdDialog,\n \"oscd-filled-button\": OscdFilledButton,\n },\n },\n render: ({ open }) => html`\n <oscd-dialog ?open=${open}>\n <div slot=\"headline\">Confirm Action</div>\n <div slot=\"content\">\n Are you sure you want to proceed with this operation? This action cannot\n be undone.\n </div>\n <div slot=\"actions\">\n <oscd-filled-button @click=${() => console.log(\"Cancelled\")}\n >Cancel</oscd-filled-button\n >\n <oscd-filled-button @click=${() => console.log(\"Confirmed\")}\n >Confirm</oscd-filled-button\n >\n </div>\n </oscd-dialog>\n `,\n argTypes: {\n open: {\n control: { type: \"boolean\" },\n description: \"Defines whether the dialog is open or closed.\",\n table: {\n defaultValue: { summary: \"true\" },\n },\n },\n },\n};\n\nexport default meta;\ntype Story = StoryObj;\n\nexport const Default: Story = {\n args: {\n open: true,\n },\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oscd-dialog.js","sourceRoot":"","sources":["oscd-dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,cAAc,CAAC,MAAM,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,CAAC","sourcesContent":["import { OscdDialog } from \"./OscdDialog\";\n\ncustomElements.define(\"oscd-dialog\", OscdDialog);\nexport { OscdDialog };\n"]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @license
|
|
8
|
+
* Copyright 2025 OMICRON Electronics GmbH
|
|
9
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
10
|
+
*/
|
|
11
|
+
import { CSSResultOrNative } from "lit";
|
|
12
|
+
import { Divider } from "@material/web/divider/internal/divider.js";
|
|
13
|
+
declare global {
|
|
14
|
+
interface HTMLElementTagNameMap {
|
|
15
|
+
"oscd-divider": OscdDivider;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @summary A divider is a thin line that groups content in lists and
|
|
20
|
+
* containers.
|
|
21
|
+
*
|
|
22
|
+
* @description Dividers can reinforce tapability, such as when used to separate
|
|
23
|
+
* list items or define tappable regions in an accordion.
|
|
24
|
+
*
|
|
25
|
+
* @final
|
|
26
|
+
* @suppress {visibility}
|
|
27
|
+
*/
|
|
28
|
+
export declare class OscdDivider extends Divider {
|
|
29
|
+
static styles: CSSResultOrNative[];
|
|
30
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { Divider } from "@material/web/divider/internal/divider.js";
|
|
7
|
+
import { styles } from "@material/web/divider/internal/divider-styles.js";
|
|
8
|
+
/**
|
|
9
|
+
* @summary A divider is a thin line that groups content in lists and
|
|
10
|
+
* containers.
|
|
11
|
+
*
|
|
12
|
+
* @description Dividers can reinforce tapability, such as when used to separate
|
|
13
|
+
* list items or define tappable regions in an accordion.
|
|
14
|
+
*
|
|
15
|
+
* @final
|
|
16
|
+
* @suppress {visibility}
|
|
17
|
+
*/
|
|
18
|
+
export class OscdDivider extends Divider {
|
|
19
|
+
static styles = [styles];
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=OscdDivider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OscdDivider.js","sourceRoot":"","sources":["OscdDivider.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,OAAO,EAAE,OAAO,EAAE,MAAM,2CAA2C,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,kDAAkD,CAAC;AAQ1E;;;;;;;;;GASG;AACH,MAAM,OAAO,WAAY,SAAQ,OAAO;IACtC,MAAM,CAAU,MAAM,GAAwB,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2023 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * @license\n * Copyright 2025 OMICRON Electronics GmbH\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { CSSResultOrNative } from \"lit\";\n\nimport { Divider } from \"@material/web/divider/internal/divider.js\";\nimport { styles } from \"@material/web/divider/internal/divider-styles.js\";\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"oscd-divider\": OscdDivider;\n }\n}\n\n/**\n * @summary A divider is a thin line that groups content in lists and\n * containers.\n *\n * @description Dividers can reinforce tapability, such as when used to separate\n * list items or define tappable regions in an accordion.\n *\n * @final\n * @suppress {visibility}\n */\nexport class OscdDivider extends Divider {\n static override styles: CSSResultOrNative[] = [styles];\n}\n"]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import { OscdDivider } from "divider/OscdDivider";
|
|
3
|
+
import { scopedWcDecorator } from "utils/storybook/scopedWcDecorator.js";
|
|
4
|
+
const meta = {
|
|
5
|
+
title: "Open SCD/Divider",
|
|
6
|
+
component: "oscd-divider",
|
|
7
|
+
tags: ["autodocs"],
|
|
8
|
+
decorators: [scopedWcDecorator],
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: "centered",
|
|
11
|
+
scopedElements: {
|
|
12
|
+
"oscd-divider": OscdDivider,
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
render: () => html `
|
|
16
|
+
<div>
|
|
17
|
+
<p>Above the divider</p>
|
|
18
|
+
<oscd-divider></oscd-divider>
|
|
19
|
+
<p>Below the divider</p>
|
|
20
|
+
</div>
|
|
21
|
+
`,
|
|
22
|
+
argTypes: {},
|
|
23
|
+
};
|
|
24
|
+
export default meta;
|
|
25
|
+
export const Default = {
|
|
26
|
+
args: {},
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=OscdDivider.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OscdDivider.stories.js","sourceRoot":"","sources":["OscdDivider.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAG3B,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAEzE,MAAM,IAAI,GAAS;IACjB,KAAK,EAAE,kBAAkB;IACzB,SAAS,EAAE,cAAc;IACzB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE,CAAC,iBAAiB,CAAC;IAC/B,UAAU,EAAE;QACV,MAAM,EAAE,UAAU;QAClB,cAAc,EAAE;YACd,cAAc,EAAE,WAAW;SAC5B;KACF;IACD,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI,CAAA;;;;;;GAMjB;IACD,QAAQ,EAAE,EAAE;CACb,CAAC;AAEF,eAAe,IAAI,CAAC;AAGpB,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE,EAAE;CACT,CAAC","sourcesContent":["import { html } from \"lit\";\nimport type { Meta, StoryObj } from \"@storybook/web-components\";\n\nimport { OscdDivider } from \"divider/OscdDivider\";\nimport { scopedWcDecorator } from \"utils/storybook/scopedWcDecorator.js\";\n\nconst meta: Meta = {\n title: \"Open SCD/Divider\",\n component: \"oscd-divider\",\n tags: [\"autodocs\"],\n decorators: [scopedWcDecorator],\n parameters: {\n layout: \"centered\",\n scopedElements: {\n \"oscd-divider\": OscdDivider,\n },\n },\n render: () => html`\n <div>\n <p>Above the divider</p>\n <oscd-divider></oscd-divider>\n <p>Below the divider</p>\n </div>\n `,\n argTypes: {},\n};\n\nexport default meta;\ntype Story = StoryObj;\n\nexport const Default: Story = {\n args: {},\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oscd-divider.js","sourceRoot":"","sources":["oscd-divider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,cAAc,CAAC,MAAM,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,CAAC","sourcesContent":["import { OscdDivider } from \"./OscdDivider.js\";\n\ncustomElements.define(\"oscd-divider\", OscdDivider);\nexport { OscdDivider };\n"]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2022 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @license
|
|
8
|
+
* Copyright 2025 OMICRON Electronics GmbH
|
|
9
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
10
|
+
*/
|
|
11
|
+
import { CSSResultOrNative } from 'lit';
|
|
12
|
+
import { Elevation } from '@material/web/elevation/internal/elevation.js';
|
|
13
|
+
declare global {
|
|
14
|
+
interface HTMLElementTagNameMap {
|
|
15
|
+
'md-elevation': OscdElevation;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* The `<md-elevation>` custom element with default styles.
|
|
20
|
+
*
|
|
21
|
+
* Elevation is the relative distance between two surfaces along the z-axis.
|
|
22
|
+
*
|
|
23
|
+
* @final
|
|
24
|
+
* @suppress {visibility}
|
|
25
|
+
*/
|
|
26
|
+
export declare class OscdElevation extends Elevation {
|
|
27
|
+
static styles: CSSResultOrNative[];
|
|
28
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2022 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { Elevation } from '@material/web/elevation/internal/elevation.js';
|
|
7
|
+
import { styles } from '@material/web/elevation/internal/elevation-styles.js';
|
|
8
|
+
/**
|
|
9
|
+
* The `<md-elevation>` custom element with default styles.
|
|
10
|
+
*
|
|
11
|
+
* Elevation is the relative distance between two surfaces along the z-axis.
|
|
12
|
+
*
|
|
13
|
+
* @final
|
|
14
|
+
* @suppress {visibility}
|
|
15
|
+
*/
|
|
16
|
+
export class OscdElevation extends Elevation {
|
|
17
|
+
static styles = [styles];
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=OscdElevation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OscdElevation.js","sourceRoot":"","sources":["OscdElevation.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,OAAO,EAAC,SAAS,EAAC,MAAM,+CAA+C,CAAC;AACxE,OAAO,EAAC,MAAM,EAAC,MAAM,sDAAsD,CAAC;AAQ5E;;;;;;;GAOG;AACH,MAAM,OAAO,aAAc,SAAQ,SAAS;IAC1C,MAAM,CAAU,MAAM,GAAwB,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * @license\n * Copyright 2025 OMICRON Electronics GmbH\n * SPDX-License-Identifier: Apache-2.0\n */\nimport {CSSResultOrNative} from 'lit';\n\nimport {Elevation} from '@material/web/elevation/internal/elevation.js';\nimport {styles} from '@material/web/elevation/internal/elevation-styles.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'md-elevation': OscdElevation;\n }\n}\n\n/**\n * The `<md-elevation>` custom element with default styles.\n *\n * Elevation is the relative distance between two surfaces along the z-axis.\n *\n * @final\n * @suppress {visibility}\n */\nexport class OscdElevation extends Elevation {\n static override styles: CSSResultOrNative[] = [styles];\n}\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 OMICRON Electronics GmbH
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { OscdElevation } from "./OscdElevation";
|
|
7
|
+
customElements.define("oscd-elevation", OscdElevation);
|
|
8
|
+
export { OscdElevation };
|
|
9
|
+
//# sourceMappingURL=oscd-elevation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oscd-elevation.js","sourceRoot":"","sources":["oscd-elevation.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,cAAc,CAAC,MAAM,CAAC,gBAAgB,EAAE,aAAa,CAAC,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2025 OMICRON Electronics GmbH\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { OscdElevation } from \"./OscdElevation\";\n\ncustomElements.define(\"oscd-elevation\", OscdElevation);\nexport { OscdElevation };\n"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @license
|
|
8
|
+
* Copyright 2025 OMICRON Electronics GmbH
|
|
9
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
10
|
+
*/
|
|
11
|
+
import { CSSResultOrNative } from "lit";
|
|
12
|
+
import { FilledField } from "@material/web/field/internal/filled-field.js";
|
|
13
|
+
declare global {
|
|
14
|
+
interface HTMLElementTagNameMap {
|
|
15
|
+
"oscd-filled-field": OscdFilledField;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @final
|
|
20
|
+
* @suppress {visibility}
|
|
21
|
+
*/
|
|
22
|
+
export declare class OscdFilledField extends FilledField {
|
|
23
|
+
static styles: CSSResultOrNative[];
|
|
24
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { FilledField } from "@material/web/field/internal/filled-field.js";
|
|
7
|
+
import { styles as filledStyles } from "@material/web/field/internal/filled-styles.js";
|
|
8
|
+
import { styles as sharedStyles } from "@material/web/field/internal/shared-styles.js";
|
|
9
|
+
/**
|
|
10
|
+
* @final
|
|
11
|
+
* @suppress {visibility}
|
|
12
|
+
*/
|
|
13
|
+
export class OscdFilledField extends FilledField {
|
|
14
|
+
static styles = [sharedStyles, filledStyles];
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=OscdFilledField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OscdFilledField.js","sourceRoot":"","sources":["OscdFilledField.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,WAAW,EAAE,MAAM,8CAA8C,CAAC;AAC3E,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAQvF;;;GAGG;AACH,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAC9C,MAAM,CAAU,MAAM,GAAwB,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * @license\n * Copyright 2025 OMICRON Electronics GmbH\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { CSSResultOrNative } from \"lit\";\nimport { FilledField } from \"@material/web/field/internal/filled-field.js\";\nimport { styles as filledStyles } from \"@material/web/field/internal/filled-styles.js\";\nimport { styles as sharedStyles } from \"@material/web/field/internal/shared-styles.js\";\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"oscd-filled-field\": OscdFilledField;\n }\n}\n\n/**\n * @final\n * @suppress {visibility}\n */\nexport class OscdFilledField extends FilledField {\n static override styles: CSSResultOrNative[] = [sharedStyles, filledStyles];\n}\n"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @license
|
|
8
|
+
* Copyright 2025 OMICRON Electronics GmbH
|
|
9
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
10
|
+
*/
|
|
11
|
+
import { CSSResultOrNative } from "lit";
|
|
12
|
+
import { OutlinedField } from "@material/web/field/internal/outlined-field.js";
|
|
13
|
+
declare global {
|
|
14
|
+
interface HTMLElementTagNameMap {
|
|
15
|
+
"oscd-outlined-field": OscdOutlinedField;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @final
|
|
20
|
+
* @suppress {visibility}
|
|
21
|
+
*/
|
|
22
|
+
export declare class OscdOutlinedField extends OutlinedField {
|
|
23
|
+
static styles: CSSResultOrNative[];
|
|
24
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { OutlinedField } from "@material/web/field/internal/outlined-field.js";
|
|
7
|
+
import { styles as outlinedStyles } from "@material/web/field/internal/outlined-styles.js";
|
|
8
|
+
import { styles as sharedStyles } from "@material/web/field/internal/shared-styles.js";
|
|
9
|
+
/**
|
|
10
|
+
* @final
|
|
11
|
+
* @suppress {visibility}
|
|
12
|
+
*/
|
|
13
|
+
export class OscdOutlinedField extends OutlinedField {
|
|
14
|
+
static styles = [sharedStyles, outlinedStyles];
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=OscdOutlinedField.js.map
|