@omicronenergy/oscd-ui 0.0.3 → 0.0.5
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/README.md +100 -0
- package/package.json +163 -15
- package/app-bar/OscdAppBar.d.ts +0 -45
- package/app-bar/OscdAppBar.js +0 -142
- package/app-bar/OscdAppBar.js.map +0 -1
- package/app-bar/OscdAppBar.stories.d.ts +0 -10
- package/app-bar/OscdAppBar.stories.js +0 -85
- package/app-bar/OscdAppBar.stories.js.map +0 -1
- package/app-bar/oscd-app-bar.d.ts +0 -12
- package/app-bar/oscd-app-bar.js +0 -14
- package/app-bar/oscd-app-bar.js.map +0 -1
- package/button/OscdButton.stories.d.ts +0 -7
- package/button/OscdButton.stories.js +0 -60
- package/button/OscdButton.stories.js.map +0 -1
- package/button/OscdFilledButton.d.ts +0 -40
- package/button/OscdFilledButton.js +0 -42
- package/button/OscdFilledButton.js.map +0 -1
- package/button/OscdFilledButton.spec.d.ts +0 -6
- package/button/OscdFilledButton.spec.js +0 -75
- package/button/OscdFilledButton.spec.js.map +0 -1
- package/button/OscdOutlinedButton.d.ts +0 -42
- package/button/OscdOutlinedButton.js +0 -34
- package/button/OscdOutlinedButton.js.map +0 -1
- package/button/OscdTextButton.d.ts +0 -40
- package/button/OscdTextButton.js +0 -32
- package/button/OscdTextButton.js.map +0 -1
- package/button/oscd-filled-button.d.ts +0 -2
- package/button/oscd-filled-button.js +0 -4
- package/button/oscd-filled-button.js.map +0 -1
- package/button/oscd-outlined-button.d.ts +0 -7
- package/button/oscd-outlined-button.js +0 -9
- package/button/oscd-outlined-button.js.map +0 -1
- package/button/oscd-text-button.d.ts +0 -7
- package/button/oscd-text-button.js +0 -9
- package/button/oscd-text-button.js.map +0 -1
- package/dialog/OscdDialog.d.ts +0 -47
- package/dialog/OscdDialog.js +0 -38
- package/dialog/OscdDialog.js.map +0 -1
- package/dialog/OscdDialog.stories.d.ts +0 -5
- package/dialog/OscdDialog.stories.js +0 -50
- package/dialog/OscdDialog.stories.js.map +0 -1
- package/dialog/oscd-dialog.d.ts +0 -2
- package/dialog/oscd-dialog.js +0 -4
- package/dialog/oscd-dialog.js.map +0 -1
- package/divider/OscdDivider.d.ts +0 -30
- package/divider/OscdDivider.js +0 -21
- package/divider/OscdDivider.js.map +0 -1
- package/divider/OscdDivider.stories.d.ts +0 -5
- package/divider/OscdDivider.stories.js +0 -28
- package/divider/OscdDivider.stories.js.map +0 -1
- package/divider/oscd-divider.d.ts +0 -2
- package/divider/oscd-divider.js +0 -4
- package/divider/oscd-divider.js.map +0 -1
- package/elevation/OscdElevation.d.ts +0 -28
- package/elevation/OscdElevation.js +0 -19
- package/elevation/OscdElevation.js.map +0 -1
- package/elevation/oscd-elevation.d.ts +0 -7
- package/elevation/oscd-elevation.js +0 -9
- package/elevation/oscd-elevation.js.map +0 -1
- package/field/OscdFilledField.d.ts +0 -24
- package/field/OscdFilledField.js +0 -16
- package/field/OscdFilledField.js.map +0 -1
- package/field/OscdOutlinedField.d.ts +0 -24
- package/field/OscdOutlinedField.js +0 -16
- package/field/OscdOutlinedField.js.map +0 -1
- package/field/oscd-filled-field.d.ts +0 -2
- package/field/oscd-filled-field.js +0 -4
- package/field/oscd-filled-field.js.map +0 -1
- package/field/oscd-outlined-field.d.ts +0 -2
- package/field/oscd-outlined-field.js +0 -4
- package/field/oscd-outlined-field.js.map +0 -1
- package/icon/OscdIcon.d.ts +0 -25
- package/icon/OscdIcon.js +0 -16
- package/icon/OscdIcon.js.map +0 -1
- package/icon/OscdIcon.stories.d.ts +0 -5
- package/icon/OscdIcon.stories.js +0 -54
- package/icon/OscdIcon.stories.js.map +0 -1
- package/icon/oscd-icon.d.ts +0 -2
- package/icon/oscd-icon.js +0 -4
- package/icon/oscd-icon.js.map +0 -1
- package/iconbutton/OscdFilledIconButton.d.ts +0 -44
- package/iconbutton/OscdFilledIconButton.js +0 -37
- package/iconbutton/OscdFilledIconButton.js.map +0 -1
- package/iconbutton/OscdFilledTonalIconButton.d.ts +0 -44
- package/iconbutton/OscdFilledTonalIconButton.js +0 -37
- package/iconbutton/OscdFilledTonalIconButton.js.map +0 -1
- package/iconbutton/OscdIconButton.d.ts +0 -43
- package/iconbutton/OscdIconButton.js +0 -36
- package/iconbutton/OscdIconButton.js.map +0 -1
- package/iconbutton/OscdIconButton.stories.d.ts +0 -7
- package/iconbutton/OscdIconButton.stories.js +0 -101
- package/iconbutton/OscdIconButton.stories.js.map +0 -1
- package/iconbutton/OutlinedIconButton.d.ts +0 -43
- package/iconbutton/OutlinedIconButton.js +0 -36
- package/iconbutton/OutlinedIconButton.js.map +0 -1
- package/iconbutton/oscd-filled-icon-button.d.ts +0 -2
- package/iconbutton/oscd-filled-icon-button.js +0 -4
- package/iconbutton/oscd-filled-icon-button.js.map +0 -1
- package/iconbutton/oscd-filled-tonal-icon-button.d.ts +0 -2
- package/iconbutton/oscd-filled-tonal-icon-button.js +0 -4
- package/iconbutton/oscd-filled-tonal-icon-button.js.map +0 -1
- package/iconbutton/oscd-icon-button.d.ts +0 -2
- package/iconbutton/oscd-icon-button.js +0 -4
- package/iconbutton/oscd-icon-button.js.map +0 -1
- package/iconbutton/oscd-outlined-icon-button.d.ts +0 -2
- package/iconbutton/oscd-outlined-icon-button.js +0 -4
- package/iconbutton/oscd-outlined-icon-button.js.map +0 -1
- package/list/OscdList.d.ts +0 -39
- package/list/OscdList.js +0 -44
- package/list/OscdList.js.map +0 -1
- package/list/OscdList.stories.d.ts +0 -5
- package/list/OscdList.stories.js +0 -30
- package/list/OscdList.stories.js.map +0 -1
- package/list/OscdListItem.d.ts +0 -59
- package/list/OscdListItem.js +0 -80
- package/list/OscdListItem.js.map +0 -1
- package/list/oscd-list-item.d.ts +0 -2
- package/list/oscd-list-item.js +0 -4
- package/list/oscd-list-item.js.map +0 -1
- package/list/oscd-list.d.ts +0 -2
- package/list/oscd-list.js +0 -4
- package/list/oscd-list.js.map +0 -1
- package/menu/OscdMenu.d.ts +0 -73
- package/menu/OscdMenu.js +0 -62
- package/menu/OscdMenu.js.map +0 -1
- package/menu/OscdMenu.stories.d.ts +0 -5
- package/menu/OscdMenu.stories.js +0 -29
- package/menu/OscdMenu.stories.js.map +0 -1
- package/menu/OscdMenuItem.d.ts +0 -37
- package/menu/OscdMenuItem.js +0 -26
- package/menu/OscdMenuItem.js.map +0 -1
- package/menu/OscdMenuItem.stories.d.ts +0 -5
- package/menu/OscdMenuItem.stories.js +0 -37
- package/menu/OscdMenuItem.stories.js.map +0 -1
- package/menu/oscd-menu-item.d.ts +0 -2
- package/menu/oscd-menu-item.js +0 -4
- package/menu/oscd-menu-item.js.map +0 -1
- package/menu/oscd-menu.d.ts +0 -1
- package/menu/oscd-menu.js +0 -4
- package/menu/oscd-menu.js.map +0 -1
- package/navigation-drawer/OscdNavigationDrawer.d.ts +0 -15
- package/navigation-drawer/OscdNavigationDrawer.js +0 -37
- package/navigation-drawer/OscdNavigationDrawer.js.map +0 -1
- package/navigation-drawer/OscdNavigationDrawer.stories.d.ts +0 -5
- package/navigation-drawer/OscdNavigationDrawer.stories.js +0 -97
- package/navigation-drawer/OscdNavigationDrawer.stories.js.map +0 -1
- package/navigation-drawer/OscdNavigationDrawerHeader.d.ts +0 -15
- package/navigation-drawer/OscdNavigationDrawerHeader.js +0 -61
- package/navigation-drawer/OscdNavigationDrawerHeader.js.map +0 -1
- package/navigation-drawer/OscdNavigationDrawerHeader.stories.d.ts +0 -5
- package/navigation-drawer/OscdNavigationDrawerHeader.stories.js +0 -35
- package/navigation-drawer/OscdNavigationDrawerHeader.stories.js.map +0 -1
- package/navigation-drawer/oscd-navigation-drawer-header.d.ts +0 -2
- package/navigation-drawer/oscd-navigation-drawer-header.js +0 -4
- package/navigation-drawer/oscd-navigation-drawer-header.js.map +0 -1
- package/navigation-drawer/oscd-navigation-drawer.d.ts +0 -7
- package/navigation-drawer/oscd-navigation-drawer.js +0 -4
- package/navigation-drawer/oscd-navigation-drawer.js.map +0 -1
- package/select/OscdFilledSelect.d.ts +0 -47
- package/select/OscdFilledSelect.js +0 -39
- package/select/OscdFilledSelect.js.map +0 -1
- package/select/OscdFilledSelect.stories.d.ts +0 -5
- package/select/OscdFilledSelect.stories.js +0 -29
- package/select/OscdFilledSelect.stories.js.map +0 -1
- package/select/OscdOutlinedSelect.d.ts +0 -47
- package/select/OscdOutlinedSelect.js +0 -39
- package/select/OscdOutlinedSelect.js.map +0 -1
- package/select/OscdOutlinedSelect.stories.d.ts +0 -5
- package/select/OscdOutlinedSelect.stories.js +0 -29
- package/select/OscdOutlinedSelect.stories.js.map +0 -1
- package/select/OscdSelectOption.d.ts +0 -51
- package/select/OscdSelectOption.js +0 -41
- package/select/OscdSelectOption.js.map +0 -1
- package/select/oscd-filled-select.d.ts +0 -2
- package/select/oscd-filled-select.js +0 -4
- package/select/oscd-filled-select.js.map +0 -1
- package/select/oscd-outlined-select.d.ts +0 -2
- package/select/oscd-outlined-select.js +0 -4
- package/select/oscd-outlined-select.js.map +0 -1
- package/select/oscd-select-option.d.ts +0 -2
- package/select/oscd-select-option.js +0 -4
- package/select/oscd-select-option.js.map +0 -1
- package/tabs/OscdPrimaryTab.d.ts +0 -26
- package/tabs/OscdPrimaryTab.js +0 -18
- package/tabs/OscdPrimaryTab.js.map +0 -1
- package/tabs/OscdPrimaryTab.stories.d.ts +0 -5
- package/tabs/OscdPrimaryTab.stories.js +0 -33
- package/tabs/OscdPrimaryTab.stories.js.map +0 -1
- package/tabs/OscdSecondaryTab.d.ts +0 -26
- package/tabs/OscdSecondaryTab.js +0 -18
- package/tabs/OscdSecondaryTab.js.map +0 -1
- package/tabs/OscdSecondaryTab.stories.d.ts +0 -5
- package/tabs/OscdSecondaryTab.stories.js +0 -33
- package/tabs/OscdSecondaryTab.stories.js.map +0 -1
- package/tabs/OscdTabs.d.ts +0 -26
- package/tabs/OscdTabs.js +0 -17
- package/tabs/OscdTabs.js.map +0 -1
- package/tabs/OscdTabs.stories.d.ts +0 -5
- package/tabs/OscdTabs.stories.js +0 -29
- package/tabs/OscdTabs.stories.js.map +0 -1
- package/tabs/oscd-primary-tab.d.ts +0 -2
- package/tabs/oscd-primary-tab.js +0 -4
- package/tabs/oscd-primary-tab.js.map +0 -1
- package/tabs/oscd-secondary-tab.d.ts +0 -2
- package/tabs/oscd-secondary-tab.js +0 -4
- package/tabs/oscd-secondary-tab.js.map +0 -1
- package/tabs/oscd-tabs.d.ts +0 -2
- package/tabs/oscd-tabs.js +0 -4
- package/tabs/oscd-tabs.js.map +0 -1
- package/textfield/OscdFilledTextField.d.ts +0 -31
- package/textfield/OscdFilledTextField.js +0 -30
- package/textfield/OscdFilledTextField.js.map +0 -1
- package/textfield/OscdOutlinedTextField.d.ts +0 -27
- package/textfield/OscdOutlinedTextField.js +0 -24
- package/textfield/OscdOutlinedTextField.js.map +0 -1
- package/textfield/oscd-filled-text-field.d.ts +0 -2
- package/textfield/oscd-filled-text-field.js +0 -4
- package/textfield/oscd-filled-text-field.js.map +0 -1
- package/textfield/oscd-outlined-text-field.d.ts +0 -2
- package/textfield/oscd-outlined-text-field.js +0 -4
- package/textfield/oscd-outlined-text-field.js.map +0 -1
- package/theming/AllComponents.stories.d.ts +0 -5
- package/theming/AllComponents.stories.js +0 -309
- package/theming/AllComponents.stories.js.map +0 -1
- package/utils/storybook/getStorybookHelpers.d.ts +0 -4
- package/utils/storybook/getStorybookHelpers.js +0 -53
- package/utils/storybook/getStorybookHelpers.js.map +0 -1
- package/utils/storybook/scopedWcDecorator.d.ts +0 -2
- package/utils/storybook/scopedWcDecorator.js +0 -27
- package/utils/storybook/scopedWcDecorator.js.map +0 -1
- package/utils/storybook/themingDecorator.d.ts +0 -17
- package/utils/storybook/themingDecorator.js +0 -100
- package/utils/storybook/themingDecorator.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
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"]}
|
package/dialog/oscd-dialog.d.ts
DELETED
package/dialog/oscd-dialog.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
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"]}
|
package/divider/OscdDivider.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
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
|
-
}
|
package/divider/OscdDivider.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"]}
|
|
@@ -1,28 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"]}
|
package/divider/oscd-divider.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
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"]}
|
|
@@ -1,28 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"]}
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"]}
|
|
@@ -1,24 +0,0 @@
|
|
|
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
|
-
}
|
package/field/OscdFilledField.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"]}
|
|
@@ -1,24 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OscdOutlinedField.js","sourceRoot":"","sources":["OscdOutlinedField.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,aAAa,EAAE,MAAM,gDAAgD,CAAC;AAC/E,OAAO,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,iDAAiD,CAAC;AAC3F,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAQvF;;;GAGG;AACH,MAAM,OAAO,iBAAkB,SAAQ,aAAa;IAClD,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\";\nimport { OutlinedField } from \"@material/web/field/internal/outlined-field.js\";\nimport { styles as outlinedStyles } from \"@material/web/field/internal/outlined-styles.js\";\nimport { styles as sharedStyles } from \"@material/web/field/internal/shared-styles.js\";\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"oscd-outlined-field\": OscdOutlinedField;\n }\n}\n\n/**\n * @final\n * @suppress {visibility}\n */\nexport class OscdOutlinedField extends OutlinedField {\n static override styles: CSSResultOrNative[] = [sharedStyles, outlinedStyles];\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"oscd-filled-field.js","sourceRoot":"","sources":["oscd-filled-field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,cAAc,CAAC,MAAM,CAAC,mBAAmB,EAAE,eAAe,CAAC,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,CAAC","sourcesContent":["import { OscdFilledField } from \"./OscdFilledField\";\n\ncustomElements.define(\"oscd-filled-field\", OscdFilledField);\nexport { OscdFilledField };\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"oscd-outlined-field.js","sourceRoot":"","sources":["oscd-outlined-field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,cAAc,CAAC,MAAM,CAAC,qBAAqB,EAAE,iBAAiB,CAAC,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,CAAC","sourcesContent":["import { OscdOutlinedField } from \"./OscdOutlinedField\";\n\ncustomElements.define(\"oscd-outlined-field\", OscdOutlinedField);\nexport { OscdOutlinedField };\n"]}
|
package/icon/OscdIcon.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
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 { Icon } from "@material/web/icon/internal/icon.js";
|
|
13
|
-
declare global {
|
|
14
|
-
interface HTMLElementTagNameMap {
|
|
15
|
-
"oscd-icon": OscdIcon;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* @final
|
|
20
|
-
* @suppress {visibility}
|
|
21
|
-
*/
|
|
22
|
-
export declare class OscdIcon extends Icon {
|
|
23
|
-
/** @nocollapse */
|
|
24
|
-
static styles: CSSResultOrNative[];
|
|
25
|
-
}
|
package/icon/OscdIcon.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2021 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { Icon } from "@material/web/icon/internal/icon.js";
|
|
7
|
-
import { styles } from "@material/web/icon/internal/icon-styles.js";
|
|
8
|
-
/**
|
|
9
|
-
* @final
|
|
10
|
-
* @suppress {visibility}
|
|
11
|
-
*/
|
|
12
|
-
export class OscdIcon extends Icon {
|
|
13
|
-
/** @nocollapse */
|
|
14
|
-
static styles = [styles];
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=OscdIcon.js.map
|
package/icon/OscdIcon.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OscdIcon.js","sourceRoot":"","sources":["OscdIcon.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,IAAI,EAAE,MAAM,qCAAqC,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,4CAA4C,CAAC;AAQpE;;;GAGG;AACH,MAAM,OAAO,QAAS,SAAQ,IAAI;IAChC,kBAAkB;IAClB,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 */\nimport { CSSResultOrNative } from \"lit\";\nimport { Icon } from \"@material/web/icon/internal/icon.js\";\nimport { styles } from \"@material/web/icon/internal/icon-styles.js\";\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"oscd-icon\": OscdIcon;\n }\n}\n\n/**\n * @final\n * @suppress {visibility}\n */\nexport class OscdIcon extends Icon {\n /** @nocollapse */\n static override styles: CSSResultOrNative[] = [styles];\n}\n"]}
|
package/icon/OscdIcon.stories.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { html } from "lit";
|
|
2
|
-
import { OscdIcon } from "icon/OscdIcon";
|
|
3
|
-
import { scopedWcDecorator } from "utils/storybook/scopedWcDecorator.js";
|
|
4
|
-
const meta = {
|
|
5
|
-
title: "Open SCD/Icon",
|
|
6
|
-
component: "oscd-icon",
|
|
7
|
-
tags: ["autodocs"],
|
|
8
|
-
decorators: [scopedWcDecorator],
|
|
9
|
-
parameters: {
|
|
10
|
-
layout: "centered",
|
|
11
|
-
scopedElements: {
|
|
12
|
-
"oscd-icon": OscdIcon,
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
render: (args) => {
|
|
16
|
-
const { icon, iconSize, color } = args;
|
|
17
|
-
return html `
|
|
18
|
-
<oscd-icon style="--md-icon-size:${iconSize ?? "40"}px; color:${color}">
|
|
19
|
-
${icon}</oscd-icon
|
|
20
|
-
>
|
|
21
|
-
`;
|
|
22
|
-
},
|
|
23
|
-
argTypes: {
|
|
24
|
-
icon: {
|
|
25
|
-
control: { type: "text" },
|
|
26
|
-
description: "Icon name",
|
|
27
|
-
table: {
|
|
28
|
-
defaultValue: { summary: "menu" },
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
iconSize: {
|
|
32
|
-
control: { type: "number" },
|
|
33
|
-
description: "Icon Size",
|
|
34
|
-
table: {
|
|
35
|
-
defaultValue: { summary: "40" },
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
color: {
|
|
39
|
-
control: { type: "color" },
|
|
40
|
-
description: "Icon Color",
|
|
41
|
-
table: {
|
|
42
|
-
defaultValue: { summary: "var(--md-sys-color-primary)" },
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
};
|
|
47
|
-
export default meta;
|
|
48
|
-
export const Default = {
|
|
49
|
-
args: {
|
|
50
|
-
icon: "menu",
|
|
51
|
-
iconSize: "40",
|
|
52
|
-
},
|
|
53
|
-
};
|
|
54
|
-
//# sourceMappingURL=OscdIcon.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OscdIcon.stories.js","sourceRoot":"","sources":["OscdIcon.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAG3B,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAEzE,MAAM,IAAI,GAAS;IACjB,KAAK,EAAE,eAAe;IACtB,SAAS,EAAE,WAAW;IACtB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE,CAAC,iBAAiB,CAAC;IAC/B,UAAU,EAAE;QACV,MAAM,EAAE,UAAU;QAClB,cAAc,EAAE;YACd,WAAW,EAAE,QAAQ;SACtB;KACF;IACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;QACf,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;QACvC,OAAO,IAAI,CAAA;yCAC0B,QAAQ,IAAI,IAAI,aAAa,KAAK;UACjE,IAAI;;KAET,CAAC;IACJ,CAAC;IACD,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;YACzB,WAAW,EAAE,WAAW;YACxB,KAAK,EAAE;gBACL,YAAY,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;aAClC;SACF;QACD,QAAQ,EAAE;YACR,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC3B,WAAW,EAAE,WAAW;YACxB,KAAK,EAAE;gBACL,YAAY,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;aAChC;SACF;QACD,KAAK,EAAE;YACL,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;YAC1B,WAAW,EAAE,YAAY;YACzB,KAAK,EAAE;gBACL,YAAY,EAAE,EAAE,OAAO,EAAE,6BAA6B,EAAE;aACzD;SACF;KACF;CACF,CAAC;AAEF,eAAe,IAAI,CAAC;AAGpB,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACf;CACF,CAAC","sourcesContent":["import { html } from \"lit\";\nimport type { Meta, StoryObj } from \"@storybook/web-components\";\n\nimport { OscdIcon } from \"icon/OscdIcon\";\nimport { scopedWcDecorator } from \"utils/storybook/scopedWcDecorator.js\";\n\nconst meta: Meta = {\n title: \"Open SCD/Icon\",\n component: \"oscd-icon\",\n tags: [\"autodocs\"],\n decorators: [scopedWcDecorator],\n parameters: {\n layout: \"centered\",\n scopedElements: {\n \"oscd-icon\": OscdIcon,\n },\n },\n render: (args) => {\n const { icon, iconSize, color } = args;\n return html`\n <oscd-icon style=\"--md-icon-size:${iconSize ?? \"40\"}px; color:${color}\">\n ${icon}</oscd-icon\n >\n `;\n },\n argTypes: {\n icon: {\n control: { type: \"text\" },\n description: \"Icon name\",\n table: {\n defaultValue: { summary: \"menu\" },\n },\n },\n iconSize: {\n control: { type: \"number\" },\n description: \"Icon Size\",\n table: {\n defaultValue: { summary: \"40\" },\n },\n },\n color: {\n control: { type: \"color\" },\n description: \"Icon Color\",\n table: {\n defaultValue: { summary: \"var(--md-sys-color-primary)\" },\n },\n },\n },\n};\n\nexport default meta;\ntype Story = StoryObj;\n\nexport const Default: Story = {\n args: {\n icon: \"menu\",\n iconSize: \"40\",\n },\n};\n"]}
|
package/icon/oscd-icon.d.ts
DELETED
package/icon/oscd-icon.js
DELETED
package/icon/oscd-icon.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"oscd-icon.js","sourceRoot":"","sources":["oscd-icon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,cAAc,CAAC,MAAM,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,CAAC","sourcesContent":["import { OscdIcon } from \"./OscdIcon\";\n\ncustomElements.define(\"oscd-icon\", OscdIcon);\nexport { OscdIcon };\n"]}
|
|
@@ -1,44 +0,0 @@
|
|
|
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 { IconButton } from "@material/web/iconbutton/internal/icon-button.js";
|
|
13
|
-
declare global {
|
|
14
|
-
interface HTMLElementTagNameMap {
|
|
15
|
-
"oscd-filled-icon-button": OscdFilledIconButton;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* @summary Icon buttons help people take supplementary actions with a single
|
|
20
|
-
* tap.
|
|
21
|
-
*
|
|
22
|
-
* @description
|
|
23
|
-
* __Emphasis:__ Low emphasis – For optional or supplementary actions with the
|
|
24
|
-
* least amount of prominence.
|
|
25
|
-
*
|
|
26
|
-
* __Rationale:__ The most compact and unobtrusive type of button, icon buttons
|
|
27
|
-
* are used for optional supplementary actions such as "Bookmark" or "Star."
|
|
28
|
-
*
|
|
29
|
-
* __Example usages:__
|
|
30
|
-
* - Add to Favorites
|
|
31
|
-
* - Print
|
|
32
|
-
*
|
|
33
|
-
* @final
|
|
34
|
-
* @suppress {visibility}
|
|
35
|
-
*/
|
|
36
|
-
export declare class OscdFilledIconButton extends IconButton {
|
|
37
|
-
static styles: CSSResultOrNative[];
|
|
38
|
-
protected getRenderClasses(): {
|
|
39
|
-
filled: boolean;
|
|
40
|
-
"toggle-filled": boolean;
|
|
41
|
-
'flip-icon': boolean;
|
|
42
|
-
selected: boolean;
|
|
43
|
-
};
|
|
44
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { styles } from "@material/web/iconbutton/internal/filled-styles.js";
|
|
7
|
-
import { IconButton } from "@material/web/iconbutton/internal/icon-button.js";
|
|
8
|
-
import { styles as sharedStyles } from "@material/web/iconbutton/internal/shared-styles.js";
|
|
9
|
-
/**
|
|
10
|
-
* @summary Icon buttons help people take supplementary actions with a single
|
|
11
|
-
* tap.
|
|
12
|
-
*
|
|
13
|
-
* @description
|
|
14
|
-
* __Emphasis:__ Low emphasis – For optional or supplementary actions with the
|
|
15
|
-
* least amount of prominence.
|
|
16
|
-
*
|
|
17
|
-
* __Rationale:__ The most compact and unobtrusive type of button, icon buttons
|
|
18
|
-
* are used for optional supplementary actions such as "Bookmark" or "Star."
|
|
19
|
-
*
|
|
20
|
-
* __Example usages:__
|
|
21
|
-
* - Add to Favorites
|
|
22
|
-
* - Print
|
|
23
|
-
*
|
|
24
|
-
* @final
|
|
25
|
-
* @suppress {visibility}
|
|
26
|
-
*/
|
|
27
|
-
export class OscdFilledIconButton extends IconButton {
|
|
28
|
-
static styles = [sharedStyles, styles];
|
|
29
|
-
getRenderClasses() {
|
|
30
|
-
return {
|
|
31
|
-
...super.getRenderClasses(),
|
|
32
|
-
filled: true,
|
|
33
|
-
"toggle-filled": this.toggle,
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
//# sourceMappingURL=OscdFilledIconButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OscdFilledIconButton.js","sourceRoot":"","sources":["OscdFilledIconButton.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,kDAAkD,CAAC;AAC9E,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,oDAAoD,CAAC;AAQ5F;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,OAAO,oBAAqB,SAAQ,UAAU;IAClD,MAAM,CAAU,MAAM,GAAwB,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAElD,gBAAgB;QACjC,OAAO;YACL,GAAG,KAAK,CAAC,gBAAgB,EAAE;YAC3B,MAAM,EAAE,IAAI;YACZ,eAAe,EAAE,IAAI,CAAC,MAAM;SAC7B,CAAC;IACJ,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\";\nimport { styles } from \"@material/web/iconbutton/internal/filled-styles.js\";\nimport { IconButton } from \"@material/web/iconbutton/internal/icon-button.js\";\nimport { styles as sharedStyles } from \"@material/web/iconbutton/internal/shared-styles.js\";\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"oscd-filled-icon-button\": OscdFilledIconButton;\n }\n}\n\n/**\n * @summary Icon buttons help people take supplementary actions with a single\n * tap.\n *\n * @description\n * __Emphasis:__ Low emphasis – For optional or supplementary actions with the\n * least amount of prominence.\n *\n * __Rationale:__ The most compact and unobtrusive type of button, icon buttons\n * are used for optional supplementary actions such as \"Bookmark\" or \"Star.\"\n *\n * __Example usages:__\n * - Add to Favorites\n * - Print\n *\n * @final\n * @suppress {visibility}\n */\nexport class OscdFilledIconButton extends IconButton {\n static override styles: CSSResultOrNative[] = [sharedStyles, styles];\n\n protected override getRenderClasses() {\n return {\n ...super.getRenderClasses(),\n filled: true,\n \"toggle-filled\": this.toggle,\n };\n }\n}\n"]}
|
|
@@ -1,44 +0,0 @@
|
|
|
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 { IconButton } from "@material/web/iconbutton/internal/icon-button.js";
|
|
13
|
-
declare global {
|
|
14
|
-
interface HTMLElementTagNameMap {
|
|
15
|
-
"oscd-filled-tonal-icon-button": OscdFilledTonalIconButton;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* @summary Icon buttons help people take supplementary actions with a single
|
|
20
|
-
* tap.
|
|
21
|
-
*
|
|
22
|
-
* @description
|
|
23
|
-
* __Emphasis:__ Low emphasis – For optional or supplementary actions with the
|
|
24
|
-
* least amount of prominence.
|
|
25
|
-
*
|
|
26
|
-
* __Rationale:__ The most compact and unobtrusive type of button, icon buttons
|
|
27
|
-
* are used for optional supplementary actions such as "Bookmark" or "Star."
|
|
28
|
-
*
|
|
29
|
-
* __Example usages:__
|
|
30
|
-
* - Add to Favorites
|
|
31
|
-
* - Print
|
|
32
|
-
*
|
|
33
|
-
* @final
|
|
34
|
-
* @suppress {visibility}
|
|
35
|
-
*/
|
|
36
|
-
export declare class OscdFilledTonalIconButton extends IconButton {
|
|
37
|
-
static styles: CSSResultOrNative[];
|
|
38
|
-
protected getRenderClasses(): {
|
|
39
|
-
"filled-tonal": boolean;
|
|
40
|
-
"toggle-filled-tonal": boolean;
|
|
41
|
-
'flip-icon': boolean;
|
|
42
|
-
selected: boolean;
|
|
43
|
-
};
|
|
44
|
-
}
|