@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.
Files changed (233) hide show
  1. package/README.md +100 -0
  2. package/package.json +163 -15
  3. package/app-bar/OscdAppBar.d.ts +0 -45
  4. package/app-bar/OscdAppBar.js +0 -142
  5. package/app-bar/OscdAppBar.js.map +0 -1
  6. package/app-bar/OscdAppBar.stories.d.ts +0 -10
  7. package/app-bar/OscdAppBar.stories.js +0 -85
  8. package/app-bar/OscdAppBar.stories.js.map +0 -1
  9. package/app-bar/oscd-app-bar.d.ts +0 -12
  10. package/app-bar/oscd-app-bar.js +0 -14
  11. package/app-bar/oscd-app-bar.js.map +0 -1
  12. package/button/OscdButton.stories.d.ts +0 -7
  13. package/button/OscdButton.stories.js +0 -60
  14. package/button/OscdButton.stories.js.map +0 -1
  15. package/button/OscdFilledButton.d.ts +0 -40
  16. package/button/OscdFilledButton.js +0 -42
  17. package/button/OscdFilledButton.js.map +0 -1
  18. package/button/OscdFilledButton.spec.d.ts +0 -6
  19. package/button/OscdFilledButton.spec.js +0 -75
  20. package/button/OscdFilledButton.spec.js.map +0 -1
  21. package/button/OscdOutlinedButton.d.ts +0 -42
  22. package/button/OscdOutlinedButton.js +0 -34
  23. package/button/OscdOutlinedButton.js.map +0 -1
  24. package/button/OscdTextButton.d.ts +0 -40
  25. package/button/OscdTextButton.js +0 -32
  26. package/button/OscdTextButton.js.map +0 -1
  27. package/button/oscd-filled-button.d.ts +0 -2
  28. package/button/oscd-filled-button.js +0 -4
  29. package/button/oscd-filled-button.js.map +0 -1
  30. package/button/oscd-outlined-button.d.ts +0 -7
  31. package/button/oscd-outlined-button.js +0 -9
  32. package/button/oscd-outlined-button.js.map +0 -1
  33. package/button/oscd-text-button.d.ts +0 -7
  34. package/button/oscd-text-button.js +0 -9
  35. package/button/oscd-text-button.js.map +0 -1
  36. package/dialog/OscdDialog.d.ts +0 -47
  37. package/dialog/OscdDialog.js +0 -38
  38. package/dialog/OscdDialog.js.map +0 -1
  39. package/dialog/OscdDialog.stories.d.ts +0 -5
  40. package/dialog/OscdDialog.stories.js +0 -50
  41. package/dialog/OscdDialog.stories.js.map +0 -1
  42. package/dialog/oscd-dialog.d.ts +0 -2
  43. package/dialog/oscd-dialog.js +0 -4
  44. package/dialog/oscd-dialog.js.map +0 -1
  45. package/divider/OscdDivider.d.ts +0 -30
  46. package/divider/OscdDivider.js +0 -21
  47. package/divider/OscdDivider.js.map +0 -1
  48. package/divider/OscdDivider.stories.d.ts +0 -5
  49. package/divider/OscdDivider.stories.js +0 -28
  50. package/divider/OscdDivider.stories.js.map +0 -1
  51. package/divider/oscd-divider.d.ts +0 -2
  52. package/divider/oscd-divider.js +0 -4
  53. package/divider/oscd-divider.js.map +0 -1
  54. package/elevation/OscdElevation.d.ts +0 -28
  55. package/elevation/OscdElevation.js +0 -19
  56. package/elevation/OscdElevation.js.map +0 -1
  57. package/elevation/oscd-elevation.d.ts +0 -7
  58. package/elevation/oscd-elevation.js +0 -9
  59. package/elevation/oscd-elevation.js.map +0 -1
  60. package/field/OscdFilledField.d.ts +0 -24
  61. package/field/OscdFilledField.js +0 -16
  62. package/field/OscdFilledField.js.map +0 -1
  63. package/field/OscdOutlinedField.d.ts +0 -24
  64. package/field/OscdOutlinedField.js +0 -16
  65. package/field/OscdOutlinedField.js.map +0 -1
  66. package/field/oscd-filled-field.d.ts +0 -2
  67. package/field/oscd-filled-field.js +0 -4
  68. package/field/oscd-filled-field.js.map +0 -1
  69. package/field/oscd-outlined-field.d.ts +0 -2
  70. package/field/oscd-outlined-field.js +0 -4
  71. package/field/oscd-outlined-field.js.map +0 -1
  72. package/icon/OscdIcon.d.ts +0 -25
  73. package/icon/OscdIcon.js +0 -16
  74. package/icon/OscdIcon.js.map +0 -1
  75. package/icon/OscdIcon.stories.d.ts +0 -5
  76. package/icon/OscdIcon.stories.js +0 -54
  77. package/icon/OscdIcon.stories.js.map +0 -1
  78. package/icon/oscd-icon.d.ts +0 -2
  79. package/icon/oscd-icon.js +0 -4
  80. package/icon/oscd-icon.js.map +0 -1
  81. package/iconbutton/OscdFilledIconButton.d.ts +0 -44
  82. package/iconbutton/OscdFilledIconButton.js +0 -37
  83. package/iconbutton/OscdFilledIconButton.js.map +0 -1
  84. package/iconbutton/OscdFilledTonalIconButton.d.ts +0 -44
  85. package/iconbutton/OscdFilledTonalIconButton.js +0 -37
  86. package/iconbutton/OscdFilledTonalIconButton.js.map +0 -1
  87. package/iconbutton/OscdIconButton.d.ts +0 -43
  88. package/iconbutton/OscdIconButton.js +0 -36
  89. package/iconbutton/OscdIconButton.js.map +0 -1
  90. package/iconbutton/OscdIconButton.stories.d.ts +0 -7
  91. package/iconbutton/OscdIconButton.stories.js +0 -101
  92. package/iconbutton/OscdIconButton.stories.js.map +0 -1
  93. package/iconbutton/OutlinedIconButton.d.ts +0 -43
  94. package/iconbutton/OutlinedIconButton.js +0 -36
  95. package/iconbutton/OutlinedIconButton.js.map +0 -1
  96. package/iconbutton/oscd-filled-icon-button.d.ts +0 -2
  97. package/iconbutton/oscd-filled-icon-button.js +0 -4
  98. package/iconbutton/oscd-filled-icon-button.js.map +0 -1
  99. package/iconbutton/oscd-filled-tonal-icon-button.d.ts +0 -2
  100. package/iconbutton/oscd-filled-tonal-icon-button.js +0 -4
  101. package/iconbutton/oscd-filled-tonal-icon-button.js.map +0 -1
  102. package/iconbutton/oscd-icon-button.d.ts +0 -2
  103. package/iconbutton/oscd-icon-button.js +0 -4
  104. package/iconbutton/oscd-icon-button.js.map +0 -1
  105. package/iconbutton/oscd-outlined-icon-button.d.ts +0 -2
  106. package/iconbutton/oscd-outlined-icon-button.js +0 -4
  107. package/iconbutton/oscd-outlined-icon-button.js.map +0 -1
  108. package/list/OscdList.d.ts +0 -39
  109. package/list/OscdList.js +0 -44
  110. package/list/OscdList.js.map +0 -1
  111. package/list/OscdList.stories.d.ts +0 -5
  112. package/list/OscdList.stories.js +0 -30
  113. package/list/OscdList.stories.js.map +0 -1
  114. package/list/OscdListItem.d.ts +0 -59
  115. package/list/OscdListItem.js +0 -80
  116. package/list/OscdListItem.js.map +0 -1
  117. package/list/oscd-list-item.d.ts +0 -2
  118. package/list/oscd-list-item.js +0 -4
  119. package/list/oscd-list-item.js.map +0 -1
  120. package/list/oscd-list.d.ts +0 -2
  121. package/list/oscd-list.js +0 -4
  122. package/list/oscd-list.js.map +0 -1
  123. package/menu/OscdMenu.d.ts +0 -73
  124. package/menu/OscdMenu.js +0 -62
  125. package/menu/OscdMenu.js.map +0 -1
  126. package/menu/OscdMenu.stories.d.ts +0 -5
  127. package/menu/OscdMenu.stories.js +0 -29
  128. package/menu/OscdMenu.stories.js.map +0 -1
  129. package/menu/OscdMenuItem.d.ts +0 -37
  130. package/menu/OscdMenuItem.js +0 -26
  131. package/menu/OscdMenuItem.js.map +0 -1
  132. package/menu/OscdMenuItem.stories.d.ts +0 -5
  133. package/menu/OscdMenuItem.stories.js +0 -37
  134. package/menu/OscdMenuItem.stories.js.map +0 -1
  135. package/menu/oscd-menu-item.d.ts +0 -2
  136. package/menu/oscd-menu-item.js +0 -4
  137. package/menu/oscd-menu-item.js.map +0 -1
  138. package/menu/oscd-menu.d.ts +0 -1
  139. package/menu/oscd-menu.js +0 -4
  140. package/menu/oscd-menu.js.map +0 -1
  141. package/navigation-drawer/OscdNavigationDrawer.d.ts +0 -15
  142. package/navigation-drawer/OscdNavigationDrawer.js +0 -37
  143. package/navigation-drawer/OscdNavigationDrawer.js.map +0 -1
  144. package/navigation-drawer/OscdNavigationDrawer.stories.d.ts +0 -5
  145. package/navigation-drawer/OscdNavigationDrawer.stories.js +0 -97
  146. package/navigation-drawer/OscdNavigationDrawer.stories.js.map +0 -1
  147. package/navigation-drawer/OscdNavigationDrawerHeader.d.ts +0 -15
  148. package/navigation-drawer/OscdNavigationDrawerHeader.js +0 -61
  149. package/navigation-drawer/OscdNavigationDrawerHeader.js.map +0 -1
  150. package/navigation-drawer/OscdNavigationDrawerHeader.stories.d.ts +0 -5
  151. package/navigation-drawer/OscdNavigationDrawerHeader.stories.js +0 -35
  152. package/navigation-drawer/OscdNavigationDrawerHeader.stories.js.map +0 -1
  153. package/navigation-drawer/oscd-navigation-drawer-header.d.ts +0 -2
  154. package/navigation-drawer/oscd-navigation-drawer-header.js +0 -4
  155. package/navigation-drawer/oscd-navigation-drawer-header.js.map +0 -1
  156. package/navigation-drawer/oscd-navigation-drawer.d.ts +0 -7
  157. package/navigation-drawer/oscd-navigation-drawer.js +0 -4
  158. package/navigation-drawer/oscd-navigation-drawer.js.map +0 -1
  159. package/select/OscdFilledSelect.d.ts +0 -47
  160. package/select/OscdFilledSelect.js +0 -39
  161. package/select/OscdFilledSelect.js.map +0 -1
  162. package/select/OscdFilledSelect.stories.d.ts +0 -5
  163. package/select/OscdFilledSelect.stories.js +0 -29
  164. package/select/OscdFilledSelect.stories.js.map +0 -1
  165. package/select/OscdOutlinedSelect.d.ts +0 -47
  166. package/select/OscdOutlinedSelect.js +0 -39
  167. package/select/OscdOutlinedSelect.js.map +0 -1
  168. package/select/OscdOutlinedSelect.stories.d.ts +0 -5
  169. package/select/OscdOutlinedSelect.stories.js +0 -29
  170. package/select/OscdOutlinedSelect.stories.js.map +0 -1
  171. package/select/OscdSelectOption.d.ts +0 -51
  172. package/select/OscdSelectOption.js +0 -41
  173. package/select/OscdSelectOption.js.map +0 -1
  174. package/select/oscd-filled-select.d.ts +0 -2
  175. package/select/oscd-filled-select.js +0 -4
  176. package/select/oscd-filled-select.js.map +0 -1
  177. package/select/oscd-outlined-select.d.ts +0 -2
  178. package/select/oscd-outlined-select.js +0 -4
  179. package/select/oscd-outlined-select.js.map +0 -1
  180. package/select/oscd-select-option.d.ts +0 -2
  181. package/select/oscd-select-option.js +0 -4
  182. package/select/oscd-select-option.js.map +0 -1
  183. package/tabs/OscdPrimaryTab.d.ts +0 -26
  184. package/tabs/OscdPrimaryTab.js +0 -18
  185. package/tabs/OscdPrimaryTab.js.map +0 -1
  186. package/tabs/OscdPrimaryTab.stories.d.ts +0 -5
  187. package/tabs/OscdPrimaryTab.stories.js +0 -33
  188. package/tabs/OscdPrimaryTab.stories.js.map +0 -1
  189. package/tabs/OscdSecondaryTab.d.ts +0 -26
  190. package/tabs/OscdSecondaryTab.js +0 -18
  191. package/tabs/OscdSecondaryTab.js.map +0 -1
  192. package/tabs/OscdSecondaryTab.stories.d.ts +0 -5
  193. package/tabs/OscdSecondaryTab.stories.js +0 -33
  194. package/tabs/OscdSecondaryTab.stories.js.map +0 -1
  195. package/tabs/OscdTabs.d.ts +0 -26
  196. package/tabs/OscdTabs.js +0 -17
  197. package/tabs/OscdTabs.js.map +0 -1
  198. package/tabs/OscdTabs.stories.d.ts +0 -5
  199. package/tabs/OscdTabs.stories.js +0 -29
  200. package/tabs/OscdTabs.stories.js.map +0 -1
  201. package/tabs/oscd-primary-tab.d.ts +0 -2
  202. package/tabs/oscd-primary-tab.js +0 -4
  203. package/tabs/oscd-primary-tab.js.map +0 -1
  204. package/tabs/oscd-secondary-tab.d.ts +0 -2
  205. package/tabs/oscd-secondary-tab.js +0 -4
  206. package/tabs/oscd-secondary-tab.js.map +0 -1
  207. package/tabs/oscd-tabs.d.ts +0 -2
  208. package/tabs/oscd-tabs.js +0 -4
  209. package/tabs/oscd-tabs.js.map +0 -1
  210. package/textfield/OscdFilledTextField.d.ts +0 -31
  211. package/textfield/OscdFilledTextField.js +0 -30
  212. package/textfield/OscdFilledTextField.js.map +0 -1
  213. package/textfield/OscdOutlinedTextField.d.ts +0 -27
  214. package/textfield/OscdOutlinedTextField.js +0 -24
  215. package/textfield/OscdOutlinedTextField.js.map +0 -1
  216. package/textfield/oscd-filled-text-field.d.ts +0 -2
  217. package/textfield/oscd-filled-text-field.js +0 -4
  218. package/textfield/oscd-filled-text-field.js.map +0 -1
  219. package/textfield/oscd-outlined-text-field.d.ts +0 -2
  220. package/textfield/oscd-outlined-text-field.js +0 -4
  221. package/textfield/oscd-outlined-text-field.js.map +0 -1
  222. package/theming/AllComponents.stories.d.ts +0 -5
  223. package/theming/AllComponents.stories.js +0 -309
  224. package/theming/AllComponents.stories.js.map +0 -1
  225. package/utils/storybook/getStorybookHelpers.d.ts +0 -4
  226. package/utils/storybook/getStorybookHelpers.js +0 -53
  227. package/utils/storybook/getStorybookHelpers.js.map +0 -1
  228. package/utils/storybook/scopedWcDecorator.d.ts +0 -2
  229. package/utils/storybook/scopedWcDecorator.js +0 -27
  230. package/utils/storybook/scopedWcDecorator.js.map +0 -1
  231. package/utils/storybook/themingDecorator.d.ts +0 -17
  232. package/utils/storybook/themingDecorator.js +0 -100
  233. 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"]}
@@ -1,2 +0,0 @@
1
- import { OscdDialog } from "./OscdDialog";
2
- export { OscdDialog };
@@ -1,4 +0,0 @@
1
- import { OscdDialog } from "./OscdDialog";
2
- customElements.define("oscd-dialog", OscdDialog);
3
- export { OscdDialog };
4
- //# sourceMappingURL=oscd-dialog.js.map
@@ -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"]}
@@ -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
- }
@@ -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,5 +0,0 @@
1
- import type { Meta, StoryObj } from "@storybook/web-components";
2
- declare const meta: Meta;
3
- export default meta;
4
- type Story = StoryObj;
5
- export declare const Default: Story;
@@ -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"]}
@@ -1,2 +0,0 @@
1
- import { OscdDivider } from "./OscdDivider.js";
2
- export { OscdDivider };
@@ -1,4 +0,0 @@
1
- import { OscdDivider } from "./OscdDivider.js";
2
- customElements.define("oscd-divider", OscdDivider);
3
- export { OscdDivider };
4
- //# sourceMappingURL=oscd-divider.js.map
@@ -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,7 +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
- export { OscdElevation };
@@ -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
- }
@@ -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,2 +0,0 @@
1
- import { OscdFilledField } from "./OscdFilledField";
2
- export { OscdFilledField };
@@ -1,4 +0,0 @@
1
- import { OscdFilledField } from "./OscdFilledField";
2
- customElements.define("oscd-filled-field", OscdFilledField);
3
- export { OscdFilledField };
4
- //# sourceMappingURL=oscd-filled-field.js.map
@@ -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,2 +0,0 @@
1
- import { OscdOutlinedField } from "./OscdOutlinedField";
2
- export { OscdOutlinedField };
@@ -1,4 +0,0 @@
1
- import { OscdOutlinedField } from "./OscdOutlinedField";
2
- customElements.define("oscd-outlined-field", OscdOutlinedField);
3
- export { OscdOutlinedField };
4
- //# sourceMappingURL=oscd-outlined-field.js.map
@@ -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"]}
@@ -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
@@ -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"]}
@@ -1,5 +0,0 @@
1
- import type { Meta, StoryObj } from "@storybook/web-components";
2
- declare const meta: Meta;
3
- export default meta;
4
- type Story = StoryObj;
5
- export declare const Default: Story;
@@ -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"]}
@@ -1,2 +0,0 @@
1
- import { OscdIcon } from "./OscdIcon";
2
- export { OscdIcon };
package/icon/oscd-icon.js DELETED
@@ -1,4 +0,0 @@
1
- import { OscdIcon } from "./OscdIcon";
2
- customElements.define("oscd-icon", OscdIcon);
3
- export { OscdIcon };
4
- //# sourceMappingURL=oscd-icon.js.map
@@ -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
- }