@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.
Files changed (181) hide show
  1. package/app-bar/OscdAppBar.d.ts +47 -0
  2. package/app-bar/OscdAppBar.js +150 -0
  3. package/app-bar/OscdAppBar.js.map +1 -0
  4. package/app-bar/oscd-app-bar.d.ts +12 -0
  5. package/app-bar/oscd-app-bar.js +9 -0
  6. package/app-bar/oscd-app-bar.js.map +1 -0
  7. package/button/OscdFilledButton.d.ts +38 -0
  8. package/button/OscdFilledButton.js +45 -0
  9. package/button/OscdFilledButton.js.map +1 -0
  10. package/button/OscdFilledButton.spec.d.ts +6 -0
  11. package/button/OscdFilledButton.spec.js +79 -0
  12. package/button/OscdFilledButton.spec.js.map +1 -0
  13. package/button/OscdOutlinedButton.d.ts +40 -0
  14. package/button/OscdOutlinedButton.js +37 -0
  15. package/button/OscdOutlinedButton.js.map +1 -0
  16. package/button/OscdTextButton.d.ts +38 -0
  17. package/button/OscdTextButton.js +35 -0
  18. package/button/OscdTextButton.js.map +1 -0
  19. package/button/oscd-filled-button.d.ts +7 -0
  20. package/button/oscd-filled-button.js +4 -0
  21. package/button/oscd-filled-button.js.map +1 -0
  22. package/button/oscd-outlined-button.d.ts +12 -0
  23. package/button/oscd-outlined-button.js +9 -0
  24. package/button/oscd-outlined-button.js.map +1 -0
  25. package/button/oscd-text-button.d.ts +12 -0
  26. package/button/oscd-text-button.js +9 -0
  27. package/button/oscd-text-button.js.map +1 -0
  28. package/dialog/OscdDialog.d.ts +42 -0
  29. package/dialog/OscdDialog.js +49 -0
  30. package/dialog/OscdDialog.js.map +1 -0
  31. package/dialog/oscd-dialog.d.ts +7 -0
  32. package/dialog/oscd-dialog.js +4 -0
  33. package/dialog/oscd-dialog.js.map +1 -0
  34. package/divider/OscdDivider.d.ts +26 -0
  35. package/divider/OscdDivider.js +22 -0
  36. package/divider/OscdDivider.js.map +1 -0
  37. package/divider/oscd-divider.d.ts +7 -0
  38. package/divider/oscd-divider.js +4 -0
  39. package/divider/oscd-divider.js.map +1 -0
  40. package/elevation/OscdElevation.d.ts +24 -0
  41. package/elevation/OscdElevation.js +20 -0
  42. package/elevation/OscdElevation.js.map +1 -0
  43. package/elevation/oscd-elevation.d.ts +12 -0
  44. package/elevation/oscd-elevation.js +9 -0
  45. package/elevation/oscd-elevation.js.map +1 -0
  46. package/field/OscdFilledField.d.ts +21 -0
  47. package/field/OscdFilledField.js +18 -0
  48. package/field/OscdFilledField.js.map +1 -0
  49. package/field/OscdOutlinedField.d.ts +23 -0
  50. package/field/OscdOutlinedField.js +20 -0
  51. package/field/OscdOutlinedField.js.map +1 -0
  52. package/field/oscd-filled-field.d.ts +7 -0
  53. package/field/oscd-filled-field.js +4 -0
  54. package/field/oscd-filled-field.js.map +1 -0
  55. package/field/oscd-outlined-field.d.ts +7 -0
  56. package/field/oscd-outlined-field.js +4 -0
  57. package/field/oscd-outlined-field.js.map +1 -0
  58. package/icon/OscdIcon.d.ts +24 -0
  59. package/icon/OscdIcon.js +20 -0
  60. package/icon/OscdIcon.js.map +1 -0
  61. package/icon/oscd-icon.d.ts +7 -0
  62. package/icon/oscd-icon.js +4 -0
  63. package/icon/oscd-icon.js.map +1 -0
  64. package/iconbutton/OscdFilledIconButton.d.ts +39 -0
  65. package/iconbutton/OscdFilledIconButton.js +37 -0
  66. package/iconbutton/OscdFilledIconButton.js.map +1 -0
  67. package/iconbutton/OscdFilledTonalIconButton.d.ts +39 -0
  68. package/iconbutton/OscdFilledTonalIconButton.js +37 -0
  69. package/iconbutton/OscdFilledTonalIconButton.js.map +1 -0
  70. package/iconbutton/OscdIconButton.d.ts +38 -0
  71. package/iconbutton/OscdIconButton.js +36 -0
  72. package/iconbutton/OscdIconButton.js.map +1 -0
  73. package/iconbutton/OscdOutlinedIconButton.d.ts +38 -0
  74. package/iconbutton/OscdOutlinedIconButton.js +36 -0
  75. package/iconbutton/OscdOutlinedIconButton.js.map +1 -0
  76. package/iconbutton/oscd-filled-icon-button.d.ts +7 -0
  77. package/iconbutton/oscd-filled-icon-button.js +4 -0
  78. package/iconbutton/oscd-filled-icon-button.js.map +1 -0
  79. package/iconbutton/oscd-filled-tonal-icon-button.d.ts +7 -0
  80. package/iconbutton/oscd-filled-tonal-icon-button.js +4 -0
  81. package/iconbutton/oscd-filled-tonal-icon-button.js.map +1 -0
  82. package/iconbutton/oscd-icon-button.d.ts +7 -0
  83. package/iconbutton/oscd-icon-button.js +4 -0
  84. package/iconbutton/oscd-icon-button.js.map +1 -0
  85. package/iconbutton/oscd-outlined-icon-button.d.ts +7 -0
  86. package/iconbutton/oscd-outlined-icon-button.js +4 -0
  87. package/iconbutton/oscd-outlined-icon-button.js.map +1 -0
  88. package/list/OscdList.d.ts +34 -0
  89. package/list/OscdList.js +44 -0
  90. package/list/OscdList.js.map +1 -0
  91. package/list/OscdListItem.d.ts +52 -0
  92. package/list/OscdListItem.js +78 -0
  93. package/list/OscdListItem.js.map +1 -0
  94. package/list/oscd-list-item.d.ts +7 -0
  95. package/list/oscd-list-item.js +4 -0
  96. package/list/oscd-list-item.js.map +1 -0
  97. package/list/oscd-list.d.ts +7 -0
  98. package/list/oscd-list.js +4 -0
  99. package/list/oscd-list.js.map +1 -0
  100. package/menu/OscdMenu.d.ts +68 -0
  101. package/menu/OscdMenu.js +62 -0
  102. package/menu/OscdMenu.js.map +1 -0
  103. package/menu/OscdMenuItem.d.ts +32 -0
  104. package/menu/OscdMenuItem.js +26 -0
  105. package/menu/OscdMenuItem.js.map +1 -0
  106. package/menu/oscd-menu-item.d.ts +7 -0
  107. package/menu/oscd-menu-item.js +4 -0
  108. package/menu/oscd-menu-item.js.map +1 -0
  109. package/menu/oscd-menu.d.ts +7 -0
  110. package/menu/oscd-menu.js +4 -0
  111. package/menu/oscd-menu.js.map +1 -0
  112. package/navigation-drawer/OscdNavigationDrawer.d.ts +21 -0
  113. package/navigation-drawer/OscdNavigationDrawer.js +43 -0
  114. package/navigation-drawer/OscdNavigationDrawer.js.map +1 -0
  115. package/navigation-drawer/OscdNavigationDrawerHeader.d.ts +15 -0
  116. package/navigation-drawer/OscdNavigationDrawerHeader.js +66 -0
  117. package/navigation-drawer/OscdNavigationDrawerHeader.js.map +1 -0
  118. package/navigation-drawer/oscd-navigation-drawer-header.d.ts +7 -0
  119. package/navigation-drawer/oscd-navigation-drawer-header.js +4 -0
  120. package/navigation-drawer/oscd-navigation-drawer-header.js.map +1 -0
  121. package/navigation-drawer/oscd-navigation-drawer.d.ts +7 -0
  122. package/navigation-drawer/oscd-navigation-drawer.js +4 -0
  123. package/navigation-drawer/oscd-navigation-drawer.js.map +1 -0
  124. package/package.json +13 -7
  125. package/select/OscdFilledSelect.d.ts +42 -0
  126. package/select/OscdFilledSelect.js +39 -0
  127. package/select/OscdFilledSelect.js.map +1 -0
  128. package/select/OscdOutlinedSelect.d.ts +42 -0
  129. package/select/OscdOutlinedSelect.js +39 -0
  130. package/select/OscdOutlinedSelect.js.map +1 -0
  131. package/select/OscdSelectOption.d.ts +46 -0
  132. package/select/OscdSelectOption.js +41 -0
  133. package/select/OscdSelectOption.js.map +1 -0
  134. package/select/oscd-filled-select.d.ts +7 -0
  135. package/select/oscd-filled-select.js +4 -0
  136. package/select/oscd-filled-select.js.map +1 -0
  137. package/select/oscd-outlined-select.d.ts +7 -0
  138. package/select/oscd-outlined-select.js +4 -0
  139. package/select/oscd-outlined-select.js.map +1 -0
  140. package/select/oscd-select-option.d.ts +7 -0
  141. package/select/oscd-select-option.js +4 -0
  142. package/select/oscd-select-option.js.map +1 -0
  143. package/tabs/OscdPrimaryTab.d.ts +22 -0
  144. package/tabs/OscdPrimaryTab.js +19 -0
  145. package/tabs/OscdPrimaryTab.js.map +1 -0
  146. package/tabs/OscdSecondaryTab.d.ts +22 -0
  147. package/tabs/OscdSecondaryTab.js +19 -0
  148. package/tabs/OscdSecondaryTab.js.map +1 -0
  149. package/tabs/OscdTabs.d.ts +22 -0
  150. package/tabs/OscdTabs.js +18 -0
  151. package/tabs/OscdTabs.js.map +1 -0
  152. package/tabs/oscd-primary-tab.d.ts +7 -0
  153. package/tabs/oscd-primary-tab.js +4 -0
  154. package/tabs/oscd-primary-tab.js.map +1 -0
  155. package/tabs/oscd-secondary-tab.d.ts +7 -0
  156. package/tabs/oscd-secondary-tab.js +4 -0
  157. package/tabs/oscd-secondary-tab.js.map +1 -0
  158. package/tabs/oscd-tabs.d.ts +7 -0
  159. package/tabs/oscd-tabs.js +4 -0
  160. package/tabs/oscd-tabs.js.map +1 -0
  161. package/textfield/OscdFilledTextField.d.ts +30 -0
  162. package/textfield/OscdFilledTextField.js +30 -0
  163. package/textfield/OscdFilledTextField.js.map +1 -0
  164. package/textfield/OscdOutlinedTextField.d.ts +28 -0
  165. package/textfield/OscdOutlinedTextField.js +28 -0
  166. package/textfield/OscdOutlinedTextField.js.map +1 -0
  167. package/textfield/oscd-filled-text-field.d.ts +7 -0
  168. package/textfield/oscd-filled-text-field.js +4 -0
  169. package/textfield/oscd-filled-text-field.js.map +1 -0
  170. package/textfield/oscd-outlined-text-field.d.ts +7 -0
  171. package/textfield/oscd-outlined-text-field.js +4 -0
  172. package/textfield/oscd-outlined-text-field.js.map +1 -0
  173. package/utils/storybook/getStorybookHelpers.d.ts +4 -0
  174. package/utils/storybook/getStorybookHelpers.js +53 -0
  175. package/utils/storybook/getStorybookHelpers.js.map +1 -0
  176. package/utils/storybook/scopedWcDecorator.d.ts +2 -0
  177. package/utils/storybook/scopedWcDecorator.js +37 -0
  178. package/utils/storybook/scopedWcDecorator.js.map +1 -0
  179. package/utils/storybook/themingDecorator.d.ts +6 -0
  180. package/utils/storybook/themingDecorator.js +100 -0
  181. 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,7 @@
1
+ import { OscdFilledSelect } from './OscdFilledSelect.js';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'oscd-filled-select': OscdFilledSelect;
5
+ }
6
+ }
7
+ export { OscdFilledSelect };
@@ -0,0 +1,4 @@
1
+ import { OscdFilledSelect } from './OscdFilledSelect.js';
2
+ customElements.define('oscd-filled-select', OscdFilledSelect);
3
+ export { OscdFilledSelect };
4
+ //# sourceMappingURL=oscd-filled-select.js.map
@@ -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,7 @@
1
+ import { OscdOutlinedSelect } from './OscdOutlinedSelect.js';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'oscd-outlined-select': OscdOutlinedSelect;
5
+ }
6
+ }
7
+ export { OscdOutlinedSelect };
@@ -0,0 +1,4 @@
1
+ import { OscdOutlinedSelect } from './OscdOutlinedSelect.js';
2
+ customElements.define('oscd-outlined-select', OscdOutlinedSelect);
3
+ export { OscdOutlinedSelect };
4
+ //# sourceMappingURL=oscd-outlined-select.js.map
@@ -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,7 @@
1
+ import { OscdSelectOption } from './OscdSelectOption.js';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'oscd-select-option': OscdSelectOption;
5
+ }
6
+ }
7
+ export { OscdSelectOption };
@@ -0,0 +1,4 @@
1
+ import { OscdSelectOption } from './OscdSelectOption.js';
2
+ customElements.define('oscd-select-option', OscdSelectOption);
3
+ export { OscdSelectOption };
4
+ //# sourceMappingURL=oscd-select-option.js.map
@@ -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
+ }
@@ -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,7 @@
1
+ import { OscdPrimaryTab } from './OscdPrimaryTab.js';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'oscd-primary-tab': OscdPrimaryTab;
5
+ }
6
+ }
7
+ export { OscdPrimaryTab };
@@ -0,0 +1,4 @@
1
+ import { OscdPrimaryTab } from './OscdPrimaryTab.js';
2
+ customElements.define('oscd-primary-tab', OscdPrimaryTab);
3
+ export { OscdPrimaryTab };
4
+ //# sourceMappingURL=oscd-primary-tab.js.map
@@ -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,7 @@
1
+ import { OscdSecondaryTab } from './OscdSecondaryTab.js';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'oscd-secondary-tab': OscdSecondaryTab;
5
+ }
6
+ }
7
+ export { OscdSecondaryTab };
@@ -0,0 +1,4 @@
1
+ import { OscdSecondaryTab } from './OscdSecondaryTab.js';
2
+ customElements.define('oscd-secondary-tab', OscdSecondaryTab);
3
+ export { OscdSecondaryTab };
4
+ //# sourceMappingURL=oscd-secondary-tab.js.map
@@ -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,7 @@
1
+ import { OscdTabs } from './OscdTabs.js';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'oscd-tabs': OscdTabs;
5
+ }
6
+ }
7
+ export { OscdTabs };
@@ -0,0 +1,4 @@
1
+ import { OscdTabs } from './OscdTabs.js';
2
+ customElements.define('oscd-tabs', OscdTabs);
3
+ export { OscdTabs };
4
+ //# sourceMappingURL=oscd-tabs.js.map
@@ -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,7 @@
1
+ import { OscdFilledTextField } from './OscdFilledTextField.js';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'oscd-filled-text-field': OscdFilledTextField;
5
+ }
6
+ }
7
+ export { OscdFilledTextField };
@@ -0,0 +1,4 @@
1
+ import { OscdFilledTextField } from './OscdFilledTextField.js';
2
+ customElements.define('oscd-filled-text-field', OscdFilledTextField);
3
+ export { OscdFilledTextField };
4
+ //# sourceMappingURL=oscd-filled-text-field.js.map
@@ -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,7 @@
1
+ import { OscdOutlinedTextField } from './OscdOutlinedTextField.js';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'oscd-outlined-text-field': OscdOutlinedTextField;
5
+ }
6
+ }
7
+ export { OscdOutlinedTextField };
@@ -0,0 +1,4 @@
1
+ import { OscdOutlinedTextField } from './OscdOutlinedTextField.js';
2
+ customElements.define('oscd-outlined-text-field', OscdOutlinedTextField);
3
+ export { OscdOutlinedTextField };
4
+ //# sourceMappingURL=oscd-outlined-text-field.js.map
@@ -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"]}
@@ -0,0 +1,2 @@
1
+ import { DecoratorFunction } from 'storybook/internal/types';
2
+ export declare const scopedWcDecorator: DecoratorFunction;