@omicronenergy/oscd-ui 0.0.5 → 0.0.6
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 +47 -0
- package/app-bar/OscdAppBar.js +150 -0
- package/app-bar/OscdAppBar.js.map +1 -0
- package/app-bar/oscd-app-bar.d.ts +12 -0
- package/app-bar/oscd-app-bar.js +9 -0
- package/app-bar/oscd-app-bar.js.map +1 -0
- package/button/OscdFilledButton.d.ts +38 -0
- package/button/OscdFilledButton.js +45 -0
- package/button/OscdFilledButton.js.map +1 -0
- package/button/OscdFilledButton.spec.d.ts +6 -0
- package/button/OscdFilledButton.spec.js +79 -0
- package/button/OscdFilledButton.spec.js.map +1 -0
- package/button/OscdOutlinedButton.d.ts +40 -0
- package/button/OscdOutlinedButton.js +37 -0
- package/button/OscdOutlinedButton.js.map +1 -0
- package/button/OscdTextButton.d.ts +38 -0
- package/button/OscdTextButton.js +35 -0
- package/button/OscdTextButton.js.map +1 -0
- package/button/oscd-filled-button.d.ts +7 -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 +12 -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 +12 -0
- package/button/oscd-text-button.js +9 -0
- package/button/oscd-text-button.js.map +1 -0
- package/dialog/OscdDialog.d.ts +42 -0
- package/dialog/OscdDialog.js +49 -0
- package/dialog/OscdDialog.js.map +1 -0
- package/dialog/oscd-dialog.d.ts +7 -0
- package/dialog/oscd-dialog.js +4 -0
- package/dialog/oscd-dialog.js.map +1 -0
- package/divider/OscdDivider.d.ts +26 -0
- package/divider/OscdDivider.js +22 -0
- package/divider/OscdDivider.js.map +1 -0
- package/divider/oscd-divider.d.ts +7 -0
- package/divider/oscd-divider.js +4 -0
- package/divider/oscd-divider.js.map +1 -0
- package/elevation/OscdElevation.d.ts +24 -0
- package/elevation/OscdElevation.js +20 -0
- package/elevation/OscdElevation.js.map +1 -0
- package/elevation/oscd-elevation.d.ts +12 -0
- package/elevation/oscd-elevation.js +9 -0
- package/elevation/oscd-elevation.js.map +1 -0
- package/field/OscdFilledField.d.ts +21 -0
- package/field/OscdFilledField.js +18 -0
- package/field/OscdFilledField.js.map +1 -0
- package/field/OscdOutlinedField.d.ts +23 -0
- package/field/OscdOutlinedField.js +20 -0
- package/field/OscdOutlinedField.js.map +1 -0
- package/field/oscd-filled-field.d.ts +7 -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 +7 -0
- package/field/oscd-outlined-field.js +4 -0
- package/field/oscd-outlined-field.js.map +1 -0
- package/icon/OscdIcon.d.ts +24 -0
- package/icon/OscdIcon.js +20 -0
- package/icon/OscdIcon.js.map +1 -0
- package/icon/oscd-icon.d.ts +7 -0
- package/icon/oscd-icon.js +4 -0
- package/icon/oscd-icon.js.map +1 -0
- package/iconbutton/OscdFilledIconButton.d.ts +39 -0
- package/iconbutton/OscdFilledIconButton.js +37 -0
- package/iconbutton/OscdFilledIconButton.js.map +1 -0
- package/iconbutton/OscdFilledTonalIconButton.d.ts +39 -0
- package/iconbutton/OscdFilledTonalIconButton.js +37 -0
- package/iconbutton/OscdFilledTonalIconButton.js.map +1 -0
- package/iconbutton/OscdIconButton.d.ts +38 -0
- package/iconbutton/OscdIconButton.js +36 -0
- package/iconbutton/OscdIconButton.js.map +1 -0
- package/iconbutton/OscdOutlinedIconButton.d.ts +38 -0
- package/iconbutton/OscdOutlinedIconButton.js +36 -0
- package/iconbutton/OscdOutlinedIconButton.js.map +1 -0
- package/iconbutton/oscd-filled-icon-button.d.ts +7 -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 +7 -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 +7 -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 +7 -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 +34 -0
- package/list/OscdList.js +44 -0
- package/list/OscdList.js.map +1 -0
- package/list/OscdListItem.d.ts +52 -0
- package/list/OscdListItem.js +78 -0
- package/list/OscdListItem.js.map +1 -0
- package/list/oscd-list-item.d.ts +7 -0
- package/list/oscd-list-item.js +4 -0
- package/list/oscd-list-item.js.map +1 -0
- package/list/oscd-list.d.ts +7 -0
- package/list/oscd-list.js +4 -0
- package/list/oscd-list.js.map +1 -0
- package/menu/OscdMenu.d.ts +68 -0
- package/menu/OscdMenu.js +62 -0
- package/menu/OscdMenu.js.map +1 -0
- package/menu/OscdMenuItem.d.ts +32 -0
- package/menu/OscdMenuItem.js +26 -0
- package/menu/OscdMenuItem.js.map +1 -0
- package/menu/oscd-menu-item.d.ts +7 -0
- package/menu/oscd-menu-item.js +4 -0
- package/menu/oscd-menu-item.js.map +1 -0
- package/menu/oscd-menu.d.ts +7 -0
- package/menu/oscd-menu.js +4 -0
- package/menu/oscd-menu.js.map +1 -0
- package/navigation-drawer/OscdNavigationDrawer.d.ts +21 -0
- package/navigation-drawer/OscdNavigationDrawer.js +43 -0
- package/navigation-drawer/OscdNavigationDrawer.js.map +1 -0
- package/navigation-drawer/OscdNavigationDrawerHeader.d.ts +15 -0
- package/navigation-drawer/OscdNavigationDrawerHeader.js +66 -0
- package/navigation-drawer/OscdNavigationDrawerHeader.js.map +1 -0
- package/navigation-drawer/oscd-navigation-drawer-header.d.ts +7 -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 +13 -7
- package/select/OscdFilledSelect.d.ts +42 -0
- package/select/OscdFilledSelect.js +39 -0
- package/select/OscdFilledSelect.js.map +1 -0
- package/select/OscdOutlinedSelect.d.ts +42 -0
- package/select/OscdOutlinedSelect.js +39 -0
- package/select/OscdOutlinedSelect.js.map +1 -0
- package/select/OscdSelectOption.d.ts +46 -0
- package/select/OscdSelectOption.js +41 -0
- package/select/OscdSelectOption.js.map +1 -0
- package/select/oscd-filled-select.d.ts +7 -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 +7 -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 +7 -0
- package/select/oscd-select-option.js +4 -0
- package/select/oscd-select-option.js.map +1 -0
- package/tabs/OscdPrimaryTab.d.ts +22 -0
- package/tabs/OscdPrimaryTab.js +19 -0
- package/tabs/OscdPrimaryTab.js.map +1 -0
- package/tabs/OscdSecondaryTab.d.ts +22 -0
- package/tabs/OscdSecondaryTab.js +19 -0
- package/tabs/OscdSecondaryTab.js.map +1 -0
- package/tabs/OscdTabs.d.ts +22 -0
- package/tabs/OscdTabs.js +18 -0
- package/tabs/OscdTabs.js.map +1 -0
- package/tabs/oscd-primary-tab.d.ts +7 -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 +7 -0
- package/tabs/oscd-secondary-tab.js +4 -0
- package/tabs/oscd-secondary-tab.js.map +1 -0
- package/tabs/oscd-tabs.d.ts +7 -0
- package/tabs/oscd-tabs.js +4 -0
- package/tabs/oscd-tabs.js.map +1 -0
- package/textfield/OscdFilledTextField.d.ts +30 -0
- package/textfield/OscdFilledTextField.js +30 -0
- package/textfield/OscdFilledTextField.js.map +1 -0
- package/textfield/OscdOutlinedTextField.d.ts +28 -0
- package/textfield/OscdOutlinedTextField.js +28 -0
- package/textfield/OscdOutlinedTextField.js.map +1 -0
- package/textfield/oscd-filled-text-field.d.ts +7 -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 +7 -0
- package/textfield/oscd-outlined-text-field.js +4 -0
- package/textfield/oscd-outlined-text-field.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 +37 -0
- package/utils/storybook/scopedWcDecorator.js.map +1 -0
- package/utils/storybook/themingDecorator.d.ts +6 -0
- package/utils/storybook/themingDecorator.js +100 -0
- package/utils/storybook/themingDecorator.js.map +1 -0
|
@@ -0,0 +1,46 @@
|
|
|
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 { SelectOptionEl } from '@material/web/select/internal/selectoption/select-option.js';
|
|
13
|
+
export { type SelectOption } from '@material/web/select/internal/selectoption/select-option.js';
|
|
14
|
+
/**
|
|
15
|
+
* @tag oscd-select-option
|
|
16
|
+
* @summary
|
|
17
|
+
* Select menus display a list of choices on temporary surfaces and display the
|
|
18
|
+
* currently selected menu item above the menu.
|
|
19
|
+
*
|
|
20
|
+
* The select component allows users to choose a value from a fixed list of
|
|
21
|
+
* available options. Composed of an interactive anchor button and a menu, it is
|
|
22
|
+
* analogous to the native HTML `<select>` element. This is the option that
|
|
23
|
+
* can be placed inside of an oscd-select.
|
|
24
|
+
*
|
|
25
|
+
* This component is a subclass of `oscd-menu-item` and can accept the same slots,
|
|
26
|
+
* properties, and events as `oscd-menu-item`.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```html
|
|
30
|
+
* <oscd-outlined-select label="fruits">
|
|
31
|
+
* <!-- An empty selected option will give select an "un-filled" state -->
|
|
32
|
+
* <oscd-select-option selected></oscd-select-option>
|
|
33
|
+
* <oscd-select-option value="apple" headline="Apple"></oscd-select-option>
|
|
34
|
+
* <oscd-select-option value="banana" headline="Banana"></oscd-select-option>
|
|
35
|
+
* <oscd-select-option value="kiwi" headline="Kiwi"></oscd-select-option>
|
|
36
|
+
* <oscd-select-option value="orange" headline="Orange"></oscd-select-option>
|
|
37
|
+
* <oscd-select-option value="tomato" headline="Tomato"></oscd-select-option>
|
|
38
|
+
* </oscd-outlined-select>
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* @final
|
|
42
|
+
* @suppress {visibility}
|
|
43
|
+
*/
|
|
44
|
+
export declare class OscdSelectOption extends SelectOptionEl {
|
|
45
|
+
static styles: CSSResultOrNative[];
|
|
46
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { styles } from '@material/web/menu/internal/menuitem/menu-item-styles.js';
|
|
7
|
+
import { SelectOptionEl } from '@material/web/select/internal/selectoption/select-option.js';
|
|
8
|
+
/**
|
|
9
|
+
* @tag oscd-select-option
|
|
10
|
+
* @summary
|
|
11
|
+
* Select menus display a list of choices on temporary surfaces and display the
|
|
12
|
+
* currently selected menu item above the menu.
|
|
13
|
+
*
|
|
14
|
+
* The select component allows users to choose a value from a fixed list of
|
|
15
|
+
* available options. Composed of an interactive anchor button and a menu, it is
|
|
16
|
+
* analogous to the native HTML `<select>` element. This is the option that
|
|
17
|
+
* can be placed inside of an oscd-select.
|
|
18
|
+
*
|
|
19
|
+
* This component is a subclass of `oscd-menu-item` and can accept the same slots,
|
|
20
|
+
* properties, and events as `oscd-menu-item`.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```html
|
|
24
|
+
* <oscd-outlined-select label="fruits">
|
|
25
|
+
* <!-- An empty selected option will give select an "un-filled" state -->
|
|
26
|
+
* <oscd-select-option selected></oscd-select-option>
|
|
27
|
+
* <oscd-select-option value="apple" headline="Apple"></oscd-select-option>
|
|
28
|
+
* <oscd-select-option value="banana" headline="Banana"></oscd-select-option>
|
|
29
|
+
* <oscd-select-option value="kiwi" headline="Kiwi"></oscd-select-option>
|
|
30
|
+
* <oscd-select-option value="orange" headline="Orange"></oscd-select-option>
|
|
31
|
+
* <oscd-select-option value="tomato" headline="Tomato"></oscd-select-option>
|
|
32
|
+
* </oscd-outlined-select>
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* @final
|
|
36
|
+
* @suppress {visibility}
|
|
37
|
+
*/
|
|
38
|
+
export class OscdSelectOption extends SelectOptionEl {
|
|
39
|
+
static styles = [styles];
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=OscdSelectOption.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OscdSelectOption.js","sourceRoot":"","sources":["OscdSelectOption.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,MAAM,EAAE,MAAM,0DAA0D,CAAC;AAElF,OAAO,EAAE,cAAc,EAAE,MAAM,6DAA6D,CAAC;AAI7F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,OAAO,gBAAiB,SAAQ,cAAc;IAClD,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 { styles } from '@material/web/menu/internal/menuitem/menu-item-styles.js';\n\nimport { SelectOptionEl } from '@material/web/select/internal/selectoption/select-option.js';\n\nexport { type SelectOption } from '@material/web/select/internal/selectoption/select-option.js';\n\n/**\n * @tag oscd-select-option\n * @summary\n * Select menus display a list of choices on temporary surfaces and display the\n * currently selected menu item above the menu.\n *\n * The select component allows users to choose a value from a fixed list of\n * available options. Composed of an interactive anchor button and a menu, it is\n * analogous to the native HTML `<select>` element. This is the option that\n * can be placed inside of an oscd-select.\n *\n * This component is a subclass of `oscd-menu-item` and can accept the same slots,\n * properties, and events as `oscd-menu-item`.\n *\n * @example\n * ```html\n * <oscd-outlined-select label=\"fruits\">\n * <!-- An empty selected option will give select an \"un-filled\" state -->\n * <oscd-select-option selected></oscd-select-option>\n * <oscd-select-option value=\"apple\" headline=\"Apple\"></oscd-select-option>\n * <oscd-select-option value=\"banana\" headline=\"Banana\"></oscd-select-option>\n * <oscd-select-option value=\"kiwi\" headline=\"Kiwi\"></oscd-select-option>\n * <oscd-select-option value=\"orange\" headline=\"Orange\"></oscd-select-option>\n * <oscd-select-option value=\"tomato\" headline=\"Tomato\"></oscd-select-option>\n * </oscd-outlined-select>\n * ```\n *\n * @final\n * @suppress {visibility}\n */\nexport class OscdSelectOption extends SelectOptionEl {\n static override styles: CSSResultOrNative[] = [styles];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oscd-filled-select.js","sourceRoot":"","sources":["oscd-filled-select.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAQzD,cAAc,CAAC,MAAM,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,CAAC","sourcesContent":["import { OscdFilledSelect } from './OscdFilledSelect.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'oscd-filled-select': OscdFilledSelect;\n }\n}\n\ncustomElements.define('oscd-filled-select', OscdFilledSelect);\nexport { OscdFilledSelect };\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oscd-outlined-select.js","sourceRoot":"","sources":["oscd-outlined-select.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAQ7D,cAAc,CAAC,MAAM,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,CAAC","sourcesContent":["import { OscdOutlinedSelect } from './OscdOutlinedSelect.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'oscd-outlined-select': OscdOutlinedSelect;\n }\n}\n\ncustomElements.define('oscd-outlined-select', OscdOutlinedSelect);\nexport { OscdOutlinedSelect };\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oscd-select-option.js","sourceRoot":"","sources":["oscd-select-option.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAQzD,cAAc,CAAC,MAAM,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,CAAC","sourcesContent":["import { OscdSelectOption } from './OscdSelectOption.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'oscd-select-option': OscdSelectOption;\n }\n}\n\ncustomElements.define('oscd-select-option', OscdSelectOption);\nexport { OscdSelectOption };\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
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 { PrimaryTab } from '@material/web/tabs/internal/primary-tab.js';
|
|
13
|
+
/**
|
|
14
|
+
* @tag oscd-primary-tab
|
|
15
|
+
* @summary Tab allow users to display a tab within a Tabs.
|
|
16
|
+
*
|
|
17
|
+
* @final
|
|
18
|
+
* @suppress {visibility}
|
|
19
|
+
*/
|
|
20
|
+
export declare class OscdPrimaryTab extends PrimaryTab {
|
|
21
|
+
static styles: CSSResultOrNative[];
|
|
22
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { PrimaryTab } from '@material/web/tabs/internal/primary-tab.js';
|
|
7
|
+
import { styles as primaryStyles } from '@material/web/tabs/internal/primary-tab-styles.js';
|
|
8
|
+
import { styles as sharedStyles } from '@material/web/tabs/internal/tab-styles.js';
|
|
9
|
+
/**
|
|
10
|
+
* @tag oscd-primary-tab
|
|
11
|
+
* @summary Tab allow users to display a tab within a Tabs.
|
|
12
|
+
*
|
|
13
|
+
* @final
|
|
14
|
+
* @suppress {visibility}
|
|
15
|
+
*/
|
|
16
|
+
export class OscdPrimaryTab extends PrimaryTab {
|
|
17
|
+
static styles = [sharedStyles, primaryStyles];
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=OscdPrimaryTab.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OscdPrimaryTab.js","sourceRoot":"","sources":["OscdPrimaryTab.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,UAAU,EAAE,MAAM,4CAA4C,CAAC;AACxE,OAAO,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,mDAAmD,CAAC;AAC5F,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAEnF;;;;;;GAMG;AACH,MAAM,OAAO,cAAe,SAAQ,UAAU;IAC5C,MAAM,CAAU,MAAM,GAAwB,CAAC,YAAY,EAAE,aAAa,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';\nimport { PrimaryTab } from '@material/web/tabs/internal/primary-tab.js';\nimport { styles as primaryStyles } from '@material/web/tabs/internal/primary-tab-styles.js';\nimport { styles as sharedStyles } from '@material/web/tabs/internal/tab-styles.js';\n\n/**\n * @tag oscd-primary-tab\n * @summary Tab allow users to display a tab within a Tabs.\n *\n * @final\n * @suppress {visibility}\n */\nexport class OscdPrimaryTab extends PrimaryTab {\n static override styles: CSSResultOrNative[] = [sharedStyles, primaryStyles];\n}\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
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 { SecondaryTab } from '@material/web/tabs/internal/secondary-tab.js';
|
|
13
|
+
/**
|
|
14
|
+
* @tag oscd-secondary-tab
|
|
15
|
+
* @summary Tab allow users to display a tab within a Tabs.
|
|
16
|
+
*
|
|
17
|
+
* @final
|
|
18
|
+
* @suppress {visibility}
|
|
19
|
+
*/
|
|
20
|
+
export declare class OscdSecondaryTab extends SecondaryTab {
|
|
21
|
+
static styles: CSSResultOrNative[];
|
|
22
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { SecondaryTab } from '@material/web/tabs/internal/secondary-tab.js';
|
|
7
|
+
import { styles as secondaryStyles } from '@material/web/tabs/internal/secondary-tab-styles.js';
|
|
8
|
+
import { styles as sharedStyles } from '@material/web/tabs/internal/tab-styles.js';
|
|
9
|
+
/**
|
|
10
|
+
* @tag oscd-secondary-tab
|
|
11
|
+
* @summary Tab allow users to display a tab within a Tabs.
|
|
12
|
+
*
|
|
13
|
+
* @final
|
|
14
|
+
* @suppress {visibility}
|
|
15
|
+
*/
|
|
16
|
+
export class OscdSecondaryTab extends SecondaryTab {
|
|
17
|
+
static styles = [sharedStyles, secondaryStyles];
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=OscdSecondaryTab.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OscdSecondaryTab.js","sourceRoot":"","sources":["OscdSecondaryTab.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AAC5E,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,qDAAqD,CAAC;AAChG,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAEnF;;;;;;GAMG;AACH,MAAM,OAAO,gBAAiB,SAAQ,YAAY;IAChD,MAAM,CAAU,MAAM,GAAwB,CAAC,YAAY,EAAE,eAAe,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';\nimport { SecondaryTab } from '@material/web/tabs/internal/secondary-tab.js';\nimport { styles as secondaryStyles } from '@material/web/tabs/internal/secondary-tab-styles.js';\nimport { styles as sharedStyles } from '@material/web/tabs/internal/tab-styles.js';\n\n/**\n * @tag oscd-secondary-tab\n * @summary Tab allow users to display a tab within a Tabs.\n *\n * @final\n * @suppress {visibility}\n */\nexport class OscdSecondaryTab extends SecondaryTab {\n static override styles: CSSResultOrNative[] = [sharedStyles, secondaryStyles];\n}\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
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 { Tabs } from '@material/web/tabs/internal/tabs.js';
|
|
13
|
+
/**
|
|
14
|
+
* @tag oscd-tabs
|
|
15
|
+
* @summary Tabs displays a list of selectable tabs.
|
|
16
|
+
*
|
|
17
|
+
* @final
|
|
18
|
+
* @suppress {visibility}
|
|
19
|
+
*/
|
|
20
|
+
export declare class OscdTabs extends Tabs {
|
|
21
|
+
static styles: CSSResultOrNative[];
|
|
22
|
+
}
|
package/tabs/OscdTabs.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { Tabs } from '@material/web/tabs/internal/tabs.js';
|
|
7
|
+
import { styles } from '@material/web/tabs/internal/tabs-styles.js';
|
|
8
|
+
/**
|
|
9
|
+
* @tag oscd-tabs
|
|
10
|
+
* @summary Tabs displays a list of selectable tabs.
|
|
11
|
+
*
|
|
12
|
+
* @final
|
|
13
|
+
* @suppress {visibility}
|
|
14
|
+
*/
|
|
15
|
+
export class OscdTabs extends Tabs {
|
|
16
|
+
static styles = [styles];
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=OscdTabs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OscdTabs.js","sourceRoot":"","sources":["OscdTabs.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,IAAI,EAAE,MAAM,qCAAqC,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,4CAA4C,CAAC;AAEpE;;;;;;GAMG;AACH,MAAM,OAAO,QAAS,SAAQ,IAAI;IAChC,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';\nimport { Tabs } from '@material/web/tabs/internal/tabs.js';\nimport { styles } from '@material/web/tabs/internal/tabs-styles.js';\n\n/**\n * @tag oscd-tabs\n * @summary Tabs displays a list of selectable tabs.\n *\n * @final\n * @suppress {visibility}\n */\nexport class OscdTabs extends Tabs {\n static override styles: CSSResultOrNative[] = [styles];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oscd-primary-tab.js","sourceRoot":"","sources":["oscd-primary-tab.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAQrD,cAAc,CAAC,MAAM,CAAC,kBAAkB,EAAE,cAAc,CAAC,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,CAAC","sourcesContent":["import { OscdPrimaryTab } from './OscdPrimaryTab.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'oscd-primary-tab': OscdPrimaryTab;\n }\n}\n\ncustomElements.define('oscd-primary-tab', OscdPrimaryTab);\nexport { OscdPrimaryTab };\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oscd-secondary-tab.js","sourceRoot":"","sources":["oscd-secondary-tab.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAQzD,cAAc,CAAC,MAAM,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,CAAC","sourcesContent":["import { OscdSecondaryTab } from './OscdSecondaryTab.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'oscd-secondary-tab': OscdSecondaryTab;\n }\n}\n\ncustomElements.define('oscd-secondary-tab', OscdSecondaryTab);\nexport { OscdSecondaryTab };\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oscd-tabs.js","sourceRoot":"","sources":["oscd-tabs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAQzC,cAAc,CAAC,MAAM,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,CAAC","sourcesContent":["import { OscdTabs } from './OscdTabs.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'oscd-tabs': OscdTabs;\n }\n}\n\ncustomElements.define('oscd-tabs', OscdTabs);\nexport { OscdTabs };\n"]}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 { FilledTextField } from '@material/web/textfield/internal/filled-text-field.js';
|
|
13
|
+
import { OscdFilledField } from '../field/OscdFilledField.js';
|
|
14
|
+
declare const OscdFilledTextField_base: typeof FilledTextField & import("@open-wc/scoped-elements/lit-element.js").ScopedElementsHostConstructor;
|
|
15
|
+
/**
|
|
16
|
+
* @tag oscd-filled-text-field
|
|
17
|
+
* @summary A Material Design filled text field component.
|
|
18
|
+
* This component is a wrapper around the `FilledTextField` from Material Web Components,
|
|
19
|
+
* providing a scoped element that uses the `OscdFilledField` as its field.
|
|
20
|
+
* @final
|
|
21
|
+
* @suppress {visibility}
|
|
22
|
+
*/
|
|
23
|
+
export declare class OscdFilledTextField extends OscdFilledTextField_base {
|
|
24
|
+
static styles: CSSResultOrNative[];
|
|
25
|
+
static get scopedElements(): {
|
|
26
|
+
'oscd-filled-field': typeof OscdFilledField;
|
|
27
|
+
};
|
|
28
|
+
protected readonly fieldTag: import("lit-html/static.js").StaticValue;
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { literal } from 'lit/static-html.js';
|
|
7
|
+
import { styles as filledStyles } from '@material/web/textfield/internal/filled-styles.js';
|
|
8
|
+
import { FilledTextField } from '@material/web/textfield/internal/filled-text-field.js';
|
|
9
|
+
import { styles as sharedStyles } from '@material/web/textfield/internal/shared-styles.js';
|
|
10
|
+
import { ScopedElementsMixin } from '@open-wc/scoped-elements/lit-element.js';
|
|
11
|
+
import { OscdFilledField } from '../field/OscdFilledField.js';
|
|
12
|
+
// export { type TextFieldType as OscdTextFieldType } from "@material/web/textfield/internal/text-field.js";
|
|
13
|
+
/**
|
|
14
|
+
* @tag oscd-filled-text-field
|
|
15
|
+
* @summary A Material Design filled text field component.
|
|
16
|
+
* This component is a wrapper around the `FilledTextField` from Material Web Components,
|
|
17
|
+
* providing a scoped element that uses the `OscdFilledField` as its field.
|
|
18
|
+
* @final
|
|
19
|
+
* @suppress {visibility}
|
|
20
|
+
*/
|
|
21
|
+
export class OscdFilledTextField extends ScopedElementsMixin(FilledTextField) {
|
|
22
|
+
static styles = [sharedStyles, filledStyles];
|
|
23
|
+
static get scopedElements() {
|
|
24
|
+
return {
|
|
25
|
+
'oscd-filled-field': OscdFilledField,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
fieldTag = literal `oscd-filled-field`;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=OscdFilledTextField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OscdFilledTextField.js","sourceRoot":"","sources":["OscdFilledTextField.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,mDAAmD,CAAC;AAC3F,OAAO,EAAE,eAAe,EAAE,MAAM,uDAAuD,CAAC;AACxF,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,mDAAmD,CAAC;AAC3F,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE9D,4GAA4G;AAE5G;;;;;;;GAOG;AACH,MAAM,OAAO,mBAAoB,SAAQ,mBAAmB,CAAC,eAAe,CAAC;IAC3E,MAAM,CAAU,MAAM,GAAwB,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;IAE3E,MAAM,KAAK,cAAc;QACvB,OAAO;YACL,mBAAmB,EAAE,eAAe;SACrC,CAAC;IACJ,CAAC;IAE2B,QAAQ,GAAG,OAAO,CAAA,mBAAmB,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 { literal } from 'lit/static-html.js';\nimport { styles as filledStyles } from '@material/web/textfield/internal/filled-styles.js';\nimport { FilledTextField } from '@material/web/textfield/internal/filled-text-field.js';\nimport { styles as sharedStyles } from '@material/web/textfield/internal/shared-styles.js';\nimport { ScopedElementsMixin } from '@open-wc/scoped-elements/lit-element.js';\nimport { OscdFilledField } from '../field/OscdFilledField.js';\n\n// export { type TextFieldType as OscdTextFieldType } from \"@material/web/textfield/internal/text-field.js\";\n\n/**\n * @tag oscd-filled-text-field\n * @summary A Material Design filled text field component.\n * This component is a wrapper around the `FilledTextField` from Material Web Components,\n * providing a scoped element that uses the `OscdFilledField` as its field.\n * @final\n * @suppress {visibility}\n */\nexport class OscdFilledTextField extends ScopedElementsMixin(FilledTextField) {\n static override styles: CSSResultOrNative[] = [sharedStyles, filledStyles];\n\n static get scopedElements() {\n return {\n 'oscd-filled-field': OscdFilledField,\n };\n }\n\n protected override readonly fieldTag = literal`oscd-filled-field`;\n}\n"]}
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { OutlinedTextField } from '@material/web/textfield/internal/outlined-text-field.js';
|
|
13
|
+
import { OscdOutlinedField } from '../field/OscdOutlinedField.js';
|
|
14
|
+
declare const OscdOutlinedTextField_base: typeof OutlinedTextField & import("@open-wc/scoped-elements/lit-element.js").ScopedElementsHostConstructor;
|
|
15
|
+
/**
|
|
16
|
+
* @tag oscd-outlined-text-field
|
|
17
|
+
* @summary A Material Design outlined text field component.
|
|
18
|
+
* @final
|
|
19
|
+
* @suppress {visibility}
|
|
20
|
+
*/
|
|
21
|
+
export declare class OscdOutlinedTextField extends OscdOutlinedTextField_base {
|
|
22
|
+
static styles: CSSResultOrNative[];
|
|
23
|
+
static get scopedElements(): {
|
|
24
|
+
'oscd-outlined-field': typeof OscdOutlinedField;
|
|
25
|
+
};
|
|
26
|
+
protected readonly fieldTag: import("lit-html/static.js").StaticValue;
|
|
27
|
+
}
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { ScopedElementsMixin } from '@open-wc/scoped-elements/lit-element.js';
|
|
7
|
+
import { literal } from 'lit/static-html.js';
|
|
8
|
+
import { styles as outlinedStyles } from '@material/web/textfield/internal/outlined-styles.js';
|
|
9
|
+
import { OutlinedTextField } from '@material/web/textfield/internal/outlined-text-field.js';
|
|
10
|
+
import { styles as sharedStyles } from '@material/web/textfield/internal/shared-styles.js';
|
|
11
|
+
import { OscdOutlinedField } from '../field/OscdOutlinedField.js';
|
|
12
|
+
// export { type TextFieldType } from "@material/web/textfield/internal/text-field.js";
|
|
13
|
+
/**
|
|
14
|
+
* @tag oscd-outlined-text-field
|
|
15
|
+
* @summary A Material Design outlined text field component.
|
|
16
|
+
* @final
|
|
17
|
+
* @suppress {visibility}
|
|
18
|
+
*/
|
|
19
|
+
export class OscdOutlinedTextField extends ScopedElementsMixin(OutlinedTextField) {
|
|
20
|
+
static styles = [sharedStyles, outlinedStyles];
|
|
21
|
+
static get scopedElements() {
|
|
22
|
+
return {
|
|
23
|
+
'oscd-outlined-field': OscdOutlinedField,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
fieldTag = literal `oscd-outlined-field`;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=OscdOutlinedTextField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OscdOutlinedTextField.js","sourceRoot":"","sources":["OscdOutlinedTextField.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,qDAAqD,CAAC;AAC/F,OAAO,EAAE,iBAAiB,EAAE,MAAM,yDAAyD,CAAC;AAC5F,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,mDAAmD,CAAC;AAC3F,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,uFAAuF;AAEvF;;;;;GAKG;AACH,MAAM,OAAO,qBAAsB,SAAQ,mBAAmB,CAC5D,iBAAiB,CAClB;IACC,MAAM,CAAU,MAAM,GAAwB,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;IAE7E,MAAM,KAAK,cAAc;QACvB,OAAO;YACL,qBAAqB,EAAE,iBAAiB;SACzC,CAAC;IACJ,CAAC;IAE2B,QAAQ,GAAG,OAAO,CAAA,qBAAqB,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 { ScopedElementsMixin } from '@open-wc/scoped-elements/lit-element.js';\nimport { literal } from 'lit/static-html.js';\nimport { styles as outlinedStyles } from '@material/web/textfield/internal/outlined-styles.js';\nimport { OutlinedTextField } from '@material/web/textfield/internal/outlined-text-field.js';\nimport { styles as sharedStyles } from '@material/web/textfield/internal/shared-styles.js';\nimport { OscdOutlinedField } from '../field/OscdOutlinedField.js';\n\n// export { type TextFieldType } from \"@material/web/textfield/internal/text-field.js\";\n\n/**\n * @tag oscd-outlined-text-field\n * @summary A Material Design outlined text field component.\n * @final\n * @suppress {visibility}\n */\nexport class OscdOutlinedTextField extends ScopedElementsMixin(\n OutlinedTextField,\n) {\n static override styles: CSSResultOrNative[] = [sharedStyles, outlinedStyles];\n\n static get scopedElements() {\n return {\n 'oscd-outlined-field': OscdOutlinedField,\n };\n }\n\n protected override readonly fieldTag = literal`oscd-outlined-field`;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oscd-filled-text-field.js","sourceRoot":"","sources":["oscd-filled-text-field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAQ/D,cAAc,CAAC,MAAM,CAAC,wBAAwB,EAAE,mBAAmB,CAAC,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,CAAC","sourcesContent":["import { OscdFilledTextField } from './OscdFilledTextField.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'oscd-filled-text-field': OscdFilledTextField;\n }\n}\n\ncustomElements.define('oscd-filled-text-field', OscdFilledTextField);\nexport { OscdFilledTextField };\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oscd-outlined-text-field.js","sourceRoot":"","sources":["oscd-outlined-text-field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAOnE,cAAc,CAAC,MAAM,CAAC,0BAA0B,EAAE,qBAAqB,CAAC,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,CAAC","sourcesContent":["import { OscdOutlinedTextField } from './OscdOutlinedTextField.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'oscd-outlined-text-field': OscdOutlinedTextField;\n }\n}\ncustomElements.define('oscd-outlined-text-field', OscdOutlinedTextField);\nexport { OscdOutlinedTextField };\n"]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { StoryOptions, StoryHelpers } from '@wc-toolkit/storybook-helpers';
|
|
2
|
+
import { DecoratorFunction } from 'storybook/internal/types';
|
|
3
|
+
export declare const storybookHelperDecorator: DecoratorFunction;
|
|
4
|
+
export declare const getStorybookHelpers: <T>(tagName: string, options?: StoryOptions) => StoryHelpers<T>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { getStorybookHelpers as wcToolkitGetStorybookHelpers } from '@wc-toolkit/storybook-helpers';
|
|
2
|
+
import { html } from 'lit';
|
|
3
|
+
/*
|
|
4
|
+
* This is a Decorator/Helper utility for enriching Storybook stories with CSS variable support.
|
|
5
|
+
* It allows you to define CSS variables in JSDocs, which are then included in the custom-element-manifest.json
|
|
6
|
+
* which is then used to extract the CSS variables and make them available in Storybook.
|
|
7
|
+
*/
|
|
8
|
+
/*
|
|
9
|
+
* The decorator injects a style block into the story that sets these CSS variables based on the args provided in the story.
|
|
10
|
+
*/
|
|
11
|
+
export const storybookHelperDecorator = (storyFn, context) => {
|
|
12
|
+
const args = context.args || {};
|
|
13
|
+
const variableDeclarations = Object.entries(args)
|
|
14
|
+
.filter(([key]) => key.startsWith('--'))
|
|
15
|
+
.map(([key, value]) => `${key.replace(/-state$/, '')}: ${value};`)
|
|
16
|
+
.join('\n');
|
|
17
|
+
const styles = `* {\n${variableDeclarations}\n}`;
|
|
18
|
+
return html `
|
|
19
|
+
<style>
|
|
20
|
+
${styles}
|
|
21
|
+
</style>
|
|
22
|
+
${storyFn()}
|
|
23
|
+
`;
|
|
24
|
+
};
|
|
25
|
+
/*
|
|
26
|
+
* The "getStorybookHelpers" is a thin wrapper around the wcToolkit's getStorybookHelpers function,
|
|
27
|
+
* which adds support for CSS variables in the argTypes.
|
|
28
|
+
* It modifies the argTypes to include controls for CSS variables, allowing users to change them in the Storybook UI.
|
|
29
|
+
*/
|
|
30
|
+
export const getStorybookHelpers = (tagName, options) => {
|
|
31
|
+
const { argTypes, ...rest } = wcToolkitGetStorybookHelpers(tagName, options);
|
|
32
|
+
const updatedArgTypes = Object.entries(argTypes).reduce((acc, [argTypeKey, argTypeValue]) => {
|
|
33
|
+
if (argTypeKey.startsWith('--')) {
|
|
34
|
+
acc[argTypeKey] = {
|
|
35
|
+
...argTypeValue,
|
|
36
|
+
control: { type: argTypeKey.includes('color') ? 'color' : 'text' },
|
|
37
|
+
table: {
|
|
38
|
+
// @ts-ignore
|
|
39
|
+
category: 'CSS Variables',
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
acc[argTypeKey] = argTypeValue;
|
|
45
|
+
}
|
|
46
|
+
return acc;
|
|
47
|
+
}, {});
|
|
48
|
+
return {
|
|
49
|
+
...rest,
|
|
50
|
+
argTypes: updatedArgTypes,
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=getStorybookHelpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getStorybookHelpers.js","sourceRoot":"","sources":["getStorybookHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,IAAI,4BAA4B,EAAE,MAAM,+BAA+B,CAAC;AAGpG,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAG3B;;;;GAIG;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAsB,CACzD,OAAO,EACP,OAAO,EACP,EAAE;IACF,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC;IAEhC,MAAM,oBAAoB,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC;SAC9C,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;SACvC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,GAAG,GAAG,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,KAAK,KAAK,GAAG,CAAC;SACjE,IAAI,CAAC,IAAI,CAAC,CAAC;IACd,MAAM,MAAM,GAAG,QAAQ,oBAAoB,KAAK,CAAC;IACjD,OAAO,IAAI,CAAA;;QAEL,MAAM;;MAER,OAAO,EAAE;GACZ,CAAC;AACJ,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CACjC,OAAe,EACf,OAAsB,EACL,EAAE;IACnB,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,4BAA4B,CACxD,OAAO,EACP,OAAO,CACR,CAAC;IAEF,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,MAAM,CACrD,CACE,GAA6D,EAC7D,CAAC,UAAU,EAAE,YAAY,CAAC,EAC1B,EAAE;QACF,IAAI,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;YAChC,GAAG,CAAC,UAAU,CAAC,GAAG;gBAChB,GAAG,YAAY;gBACf,OAAO,EAAE,EAAE,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,EAAE;gBAClE,KAAK,EAAE;oBACL,aAAa;oBACb,QAAQ,EAAE,eAAe;iBAC1B;aACF,CAAC;QACJ,CAAC;aAAM,CAAC;YACN,GAAG,CAAC,UAAU,CAAC,GAAG,YAAY,CAAC;QACjC,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC,EACD,EAA8D,CAC/D,CAAC;IACF,OAAO;QACL,GAAG,IAAI;QACP,QAAQ,EAAE,eAAe;KACP,CAAC;AACvB,CAAC,CAAC","sourcesContent":["import { getStorybookHelpers as wcToolkitGetStorybookHelpers } from '@wc-toolkit/storybook-helpers';\nimport type { StoryOptions, StoryHelpers } from '@wc-toolkit/storybook-helpers';\n\nimport { html } from 'lit';\nimport { DecoratorFunction } from 'storybook/internal/types';\n\n/*\n * This is a Decorator/Helper utility for enriching Storybook stories with CSS variable support.\n * It allows you to define CSS variables in JSDocs, which are then included in the custom-element-manifest.json\n * which is then used to extract the CSS variables and make them available in Storybook.\n */\n\n/*\n * The decorator injects a style block into the story that sets these CSS variables based on the args provided in the story.\n */\nexport const storybookHelperDecorator: DecoratorFunction = (\n storyFn,\n context,\n) => {\n const args = context.args || {};\n\n const variableDeclarations = Object.entries(args)\n .filter(([key]) => key.startsWith('--'))\n .map(([key, value]) => `${key.replace(/-state$/, '')}: ${value};`)\n .join('\\n');\n const styles = `* {\\n${variableDeclarations}\\n}`;\n return html`\n <style>\n ${styles}\n </style>\n ${storyFn()}\n `;\n};\n\n/*\n * The \"getStorybookHelpers\" is a thin wrapper around the wcToolkit's getStorybookHelpers function,\n * which adds support for CSS variables in the argTypes.\n * It modifies the argTypes to include controls for CSS variables, allowing users to change them in the Storybook UI.\n */\nexport const getStorybookHelpers = <T>(\n tagName: string,\n options?: StoryOptions,\n): StoryHelpers<T> => {\n const { argTypes, ...rest } = wcToolkitGetStorybookHelpers<T>(\n tagName,\n options,\n );\n\n const updatedArgTypes = Object.entries(argTypes).reduce(\n (\n acc: Record<string, (typeof argTypes)[keyof typeof argTypes]>,\n [argTypeKey, argTypeValue],\n ) => {\n if (argTypeKey.startsWith('--')) {\n acc[argTypeKey] = {\n ...argTypeValue,\n control: { type: argTypeKey.includes('color') ? 'color' : 'text' },\n table: {\n // @ts-ignore\n category: 'CSS Variables',\n },\n };\n } else {\n acc[argTypeKey] = argTypeValue;\n }\n return acc;\n },\n {} as Record<string, (typeof argTypes)[keyof typeof argTypes]>,\n );\n return {\n ...rest,\n argTypes: updatedArgTypes,\n } as StoryHelpers<T>;\n};\n"]}
|